:root{--bg:#f6f6ef;--paper:#fffefa;--ink:#253d34;--muted:#718079;--green:#276451;--green-dark:#1c4c3d;--sage:#eaf1e8;--line:#e1e6dc;--gold:#b57914;--gold-bg:#fcf0d4;--red:#a14b3e;--red-bg:#faeee9;--shadow:0 10px 35px #354c2f06;--radius:20px;font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:var(--ink);font-synthesis:none;font-size:15px}
*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}a{color:var(--green)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #d6ac56;outline-offset:3px}h1,h2,h3,p{margin:0}h1{font-size:30px;letter-spacing:-1px;line-height:1.35}h2{font-size:19px}h3{font-size:16px}p{line-height:1.7}.muted{color:var(--muted)}.small{font-size:12px}.skip{position:fixed;top:-100px;left:10px;background:white;z-index:99;padding:12px}.skip:focus{top:10px}.boot{min-height:100vh;display:grid;place-content:center;text-align:center;gap:16px}.boot img{margin:auto}.icon{width:20px;height:20px;display:inline-block;vertical-align:middle;flex-shrink:0;stroke-width:1.7}.app-shell{min-height:100vh;padding-left:238px}.sidebar{position:fixed;inset:0 auto 0 0;width:238px;background:#fdfdf8;border-right:1px solid var(--line);padding:32px 23px 22px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);margin-bottom:37px}.brand img{width:44px;height:44px;border-radius:13px}.brand strong{display:block;font-size:21px;letter-spacing:1px}.brand span{font-size:11px;color:var(--muted);letter-spacing:2px}.nav-label{font-size:10px;letter-spacing:2px;color:var(--muted);padding:0 14px;margin-bottom:12px}.nav{display:flex;flex-direction:column;gap:6px}.nav button{display:flex;align-items:center;gap:12px;padding:14px;border:0;background:transparent;color:#65776c;border-radius:12px;text-align:left;font-weight:600;min-height:49px}.nav button.active{color:var(--green);background:#e8f0e6}.nav button:hover{background:#edf2e9}.nav .count{margin-left:auto;background:#dab55d;color:#fff;border-radius:20px;font-size:11px;padding:2px 6px;min-width:20px;text-align:center}.sidebar-bottom{margin-top:auto;padding-top:30px}.family-card{background:#f0f3e9;border:1px solid #e2e9d7;border-radius:15px;padding:15px;margin-bottom:18px}.family-card .leaf{float:right;font-size:22px}.family-card b{display:block;font-size:13px;margin-bottom:5px}.family-card p{font-size:11px;color:#72826f}.profile{display:flex;align-items:center;gap:10px;font-size:12px}.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#e3eadd;color:#4b6d56;font-weight:700;flex-shrink:0}.profile .logout{margin-left:auto;border:0;background:none;color:var(--muted);padding:8px}.workspace{max-width:1510px;margin:auto;padding:31px 40px 50px}.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:31px;gap:12px}.crumb{font-size:12px;color:var(--muted)}.top-actions{display:flex;align-items:center;gap:12px;font-size:12px}.connection{display:flex;align-items:center;gap:6px;color:#718170}.dot{width:6px;height:6px;border-radius:50%;background:#8aac79}.connection.offline .dot{background:#c77b56}.connection.offline{color:#a76745}.page-header{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:27px}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--green);font-weight:700;margin-bottom:9px}.page-header p{font-size:13px;color:var(--muted);margin-top:9px}.button{border:1px solid var(--green);border-radius:11px;background:var(--green);color:white;padding:11px 16px;min-height:43px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-weight:600;text-decoration:none;line-height:1.3;white-space:nowrap}.button:hover{background:var(--green-dark)}.button.secondary{background:var(--paper);color:var(--green);border-color:var(--line)}.button.secondary:hover{background:var(--sage)}.button.ghost{background:transparent;color:var(--muted);border-color:transparent}.button.danger{background:var(--red-bg);border-color:#ead4cd;color:var(--red)}.button.gold{background:var(--gold-bg);color:#8f641a;border-color:#e8d3a5}.button.compact{min-height:34px;padding:7px 11px;font-size:12px}.icon-button{width:38px;height:38px;padding:0;border:1px solid var(--line);border-radius:10px;background:var(--paper);color:var(--muted);display:inline-grid;place-items:center}.hero{display:grid;grid-template-columns:1fr auto;gap:20px;background:#e9eee1;border:1px solid #dfe6d6;border-radius:23px;padding:29px 32px;position:relative;overflow:hidden;margin-bottom:23px}.hero h2{font-size:23px;line-height:1.6}.hero p{font-size:13px;margin-top:9px;color:#688065;max-width:520px}.hero-stats{display:flex;gap:23px;align-items:center;margin-top:24px}.hero-stat{padding-right:24px;border-right:1px solid #cfdac8}.hero-stat:last-child{border:0}.hero-stat strong{font-size:25px;display:block;letter-spacing:-1px}.hero-stat span{font-size:11px;color:#78846f}.hero-art{width:171px;height:154px;align-self:center;position:relative;display:grid;place-items:center}.hero-art .sun{position:absolute;top:0;right:9px;width:67px;height:67px;background:#ead8a1;border-radius:50%;opacity:.8}.hero-art svg{width:150px;height:150px;z-index:1}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:25px}.stat-card{background:var(--paper);border:1px solid var(--line);border-radius:17px;padding:20px}.stat-head{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px}.stat-icon{width:30px;height:30px;border-radius:9px;background:var(--sage);display:grid;place-items:center;color:var(--green)}.stat-card.gold .stat-icon{background:var(--gold-bg);color:var(--gold)}.stat-value{font-size:30px;letter-spacing:-1px;margin-top:14px;font-weight:700}.stat-value small{font-size:12px;font-weight:400;letter-spacing:0;color:var(--muted);margin-left:7px}.stat-sub{margin-top:7px;font-size:11px;color:var(--muted)}.content-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(270px,1fr);gap:22px}.panel{border:1px solid var(--line);background:var(--paper);border-radius:var(--radius);padding:23px;box-shadow:var(--shadow);min-width:0}.panel+.panel{margin-top:20px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.panel-head h2{display:flex;align-items:center;gap:9px;font-size:17px}.panel-head p{color:var(--muted);font-size:12px;margin-top:7px}.link-button{background:transparent;border:0;color:var(--green);padding:5px;font-size:12px;display:inline-flex;align-items:center;gap:5px}.task-list{display:flex;flex-direction:column}.task-row{display:flex;align-items:center;gap:12px;border-top:1px solid #ecede5;padding:16px 0}.task-row:first-child{border-top:0;padding-top:0}.task-row:last-child{padding-bottom:0}.task-mark{width:31px;height:31px;border:1px solid #cfdbce;border-radius:10px;display:grid;place-items:center;color:#6c9574;flex-shrink:0}.task-mark.approved{background:var(--sage);border-color:var(--sage)}.task-mark.pending{background:#fbf1d9;color:#b78a31;border-color:#ecdab3}.task-copy{min-width:0;flex:1}.task-title{font-size:13px;font-weight:650;line-height:1.5;overflow-wrap:anywhere}.task-meta{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:7px;font-size:11px;color:var(--muted)}.pill{font-size:10px;padding:3px 7px;border-radius:5px;background:#edf1e8;color:#6c8267;white-space:nowrap}.pill.pending{background:#f9eed2;color:#9b711e}.pill.rejected{background:var(--red-bg);color:var(--red)}.pill.approved{background:#e8f1e6;color:#48734c}.star{color:#b9831f;font-weight:650;white-space:nowrap;font-size:12px}.section-note{font-size:12px;background:#f2f5ed;border-radius:12px;color:#7c8971;padding:13px 15px;line-height:1.7}.progress-line{height:5px;background:#e3eadc;border-radius:5px;margin-top:18px;overflow:hidden}.progress-line>i{height:100%;display:block;background:#89a274;border-radius:5px}.review-mini{border:1px solid var(--line);border-radius:13px;padding:14px;margin-bottom:11px;display:flex;align-items:center;gap:12px}.review-icon{width:43px;height:43px;background:#edeede;color:#8e9971;border-radius:10px;display:grid;place-items:center;flex-shrink:0}.review-mini .task-copy p{font-size:11px;color:var(--muted);margin-top:4px}.empty{text-align:center;padding:35px 15px;color:var(--muted)}.empty .empty-icon{display:grid;place-items:center;margin:0 auto 13px;width:47px;height:47px;border-radius:15px;background:var(--sage);color:#76936c}.empty h3{color:#63785f;font-size:14px;margin-bottom:7px}.empty p{font-size:12px;max-width:380px;margin:auto}.empty .button{margin-top:17px}.error-banner,.offline-banner{border:1px solid #e9c8bb;background:#fbede7;color:#9a5b43;border-radius:12px;padding:12px 16px;line-height:1.7;font-size:13px;margin-bottom:20px;display:flex;align-items:center;justify-content:space-between;gap:12px}.offline-banner{background:#fcf2dc;border-color:#ead7a8;color:#957330}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-bottom:20px}.segmented{display:inline-flex;gap:3px;padding:4px;background:#e9eee3;border-radius:11px;max-width:100%}.segmented button{border:0;background:none;color:var(--muted);padding:8px 14px;border-radius:8px;font-size:12px;white-space:nowrap}.segmented button.active{background:var(--paper);box-shadow:0 2px 7px #23432508;color:var(--green);font-weight:650}.date-nav{display:flex;align-items:center;gap:9px}.date-nav b{font-size:14px;min-width:145px;text-align:center}.filters{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:18px}.filter{border:1px solid var(--line);color:var(--muted);background:var(--paper);border-radius:100px;padding:7px 13px;font-size:12px}.filter.active{background:var(--green);color:white;border-color:var(--green)}.calendar{border:1px solid var(--line);border-radius:15px;overflow:hidden;background:var(--paper)}.calendar.week,.calendar.three{display:grid;grid-template-columns:repeat(var(--columns),minmax(0,1fr))}.calendar-day{border-right:1px solid var(--line);padding:12px;min-height:320px}.calendar-day:last-child{border-right:0}.day-heading{font-size:11px;color:var(--muted);display:flex;align-items:center;justify-content:space-between;gap:5px;padding-bottom:13px;margin-bottom:12px;border-bottom:1px solid var(--line)}.day-heading strong{font-size:21px;color:var(--ink);font-weight:500}.day-heading.today strong{background:var(--green);color:white;border-radius:50%;width:31px;height:31px;text-align:center;line-height:31px}.calendar-task{display:block;width:100%;border:0;border-left:3px solid #9cb197;background:#edf2e8;color:#536e51;text-align:left;border-radius:5px;padding:9px;margin-bottom:7px;font-size:11px;line-height:1.5;overflow-wrap:anywhere}.calendar-task.pending{border-left-color:#d9b45e;background:#fbf1d9;color:#95732d}.calendar-task.approved{opacity:.7}.calendar-task small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.calendar.month{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.month-head{background:#f1f4ec;color:var(--muted);text-align:center;padding:12px;font-size:11px;border-bottom:1px solid var(--line)}.month-cell{min-height:128px;padding:9px 7px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);overflow:hidden}.month-cell:nth-child(7n){border-right:0}.month-cell.other{background:#f7f8f2;opacity:.65}.month-date{font-size:12px;margin-bottom:8px;color:var(--muted);display:inline-flex;align-items:center;justify-content:center;width:23px;height:23px}.month-date.today{background:var(--green);color:white;border-radius:50%}.month-cell .calendar-task{font-size:10px;padding:4px 5px;margin-bottom:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.more-count{font-size:10px;color:var(--muted);background:none;border:0;padding:2px 4px}.task-group{margin-top:18px}.task-group:first-child{margin-top:0}.group-heading{font-size:12px;padding:10px 12px;background:#f1f4ec;border-radius:9px;margin-bottom:8px;color:#687d60;display:flex;align-items:center;justify-content:space-between}.subtask{margin-left:27px;border-left:2px solid #e4eadd;padding-left:14px}.task-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}.review-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.review-card{background:var(--paper);border:1px solid var(--line);border-radius:19px;overflow:hidden}.review-card-body{padding:21px}.review-card-head{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;margin-bottom:12px}.review-card h3{font-size:16px;line-height:1.6}.review-card .note{font-size:13px;background:#f2f4ec;padding:12px 14px;border-radius:10px;line-height:1.7;margin:15px 0;color:#63735f}.photo-strip{display:flex;gap:8px;padding:0 21px;overflow:auto}.photo-strip:empty{display:none}.photo-button{border:1px solid var(--line);background:#f2f4ed;border-radius:10px;width:110px;height:100px;overflow:hidden;padding:0;flex-shrink:0}.photo-button img{width:100%;height:100%;object-fit:cover}.photo-button.loading{display:grid;place-items:center;color:var(--muted);font-size:11px}.review-footer{display:flex;gap:9px;align-items:center;padding:18px 21px;flex-wrap:wrap}.review-footer .button{flex:1}.ai-result{margin:0 21px 17px;padding:14px;background:#f6f2e4;border:1px solid #ece2c6;border-radius:12px;font-size:12px;line-height:1.8;white-space:pre-wrap}.ai-label{font-size:10px;display:block;color:#957629;margin-bottom:6px}.ledger-total{padding:27px;background:#fcf3de;border:1px solid #eaddba;border-radius:20px;display:flex;justify-content:space-between;align-items:center;margin-bottom:22px;gap:15px}.ledger-total strong{font-size:43px;color:#8e6922;letter-spacing:-2px}.ledger-total strong small{font-size:18px;margin-left:6px;letter-spacing:0}.ledger-total p{font-size:12px;color:#9c895f}.ledger-total .big-star{font-size:70px;line-height:1;color:#dfbb69;opacity:.65}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;font-size:12px}.data-table th{text-align:left;font-weight:500;color:var(--muted);background:#f3f5ee;padding:12px;white-space:nowrap}.data-table td{padding:15px 12px;border-bottom:1px solid #e9ede3;line-height:1.6}.data-table tr:last-child td{border:0}.amount.plus{color:#5c8053;font-weight:700}.amount.minus{color:#b48639;font-weight:700}.rule-row{display:flex;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid #e9ede3}.rule-row:last-child{border:0}.rule-copy{flex:1;min-width:0;font-size:13px}.rule-copy small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.reward-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.reward-card{border:1px solid var(--line);border-radius:18px;background:var(--paper);overflow:hidden}.reward-art{height:116px;display:grid;place-items:center;font-size:45px;background:#edf1e3}.reward-card:nth-child(3n+2) .reward-art{background:#f5eddc}.reward-card:nth-child(3n) .reward-art{background:#e7eee9}.reward-body{padding:19px}.reward-body h3{font-size:15px;margin-bottom:7px}.reward-body p{font-size:12px;color:var(--muted);min-height:40px}.reward-bottom{margin-top:17px;display:flex;align-items:center;justify-content:space-between;gap:8px}.member-row{display:flex;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid #e9ede3}.member-row:last-child{border:0}.member-row .task-copy p{font-size:11px;color:var(--muted);margin-top:4px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.settings-grid .panel+.panel{margin-top:0}.info-row{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;font-size:12px;padding:13px 0;border-bottom:1px solid #e9ede3;line-height:1.7}.info-row:last-child{border:0}.info-row>span:first-child{color:var(--muted)}.code{font-variant-numeric:tabular-nums;font-size:32px;letter-spacing:6px;color:var(--green);padding:20px;text-align:center;background:var(--sage);border-radius:12px;margin:15px 0;overflow-wrap:anywhere}.login-page{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-story{background:#e7ecdf;padding:70px max(30px,8vw);display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}.login-story .brand{margin-bottom:65px}.login-story h1{font-size:43px;line-height:1.6;letter-spacing:-1px;position:relative;z-index:1}.login-story h1 em{font-style:normal;color:#819364}.login-story p{font-size:14px;color:#75816b;margin-top:24px;max-width:330px;position:relative;z-index:1}.login-story .orbit{position:absolute;border:1px solid #d1ddc4;border-radius:50%;width:470px;height:470px;right:-260px;bottom:-130px}.login-story .orbit:before{content:'';position:absolute;inset:55px;border:1px solid #d1ddc4;border-radius:50%}.login-story .orbit:after{content:'✦';position:absolute;left:30px;top:70px;font-size:65px;color:#d8b674}.login-form-wrap{display:flex;align-items:center;justify-content:center;padding:36px}.login-form{width:100%;max-width:385px}.login-form h2{font-size:26px;margin-bottom:12px}.login-form>p{color:var(--muted);font-size:13px;margin-bottom:26px}.login-form .button{width:100%;margin-top:8px}.login-foot{font-size:11px;color:#87917f;line-height:1.8;margin-top:24px;text-align:center}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:17px;min-width:0}.field label,.field-label{font-size:12px;color:#5a6e5a;font-weight:600}.field input,.field select,.field textarea{width:100%;border:1px solid #dbe2d4;border-radius:10px;background:#fffffb;color:var(--ink);padding:12px;min-height:43px}.field textarea{resize:vertical;min-height:85px;line-height:1.6}.field input:focus,.field select:focus,.field textarea:focus{border-color:#97ad84}.field small{font-size:11px;color:var(--muted);line-height:1.6}.fields-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}.check-field{display:flex;align-items:center;gap:9px;font-size:13px;color:#5e715a;margin:15px 0;line-height:1.6}.check-field input{accent-color:var(--green);width:17px;height:17px}.weekdays{display:flex;gap:6px;flex-wrap:wrap}.weekdays label{display:grid;place-items:center;background:#eff3ea;color:#6f8167;width:35px;height:35px;border-radius:9px;font-size:12px;cursor:pointer}.weekdays input{position:absolute;opacity:0;width:1px;height:1px}.weekdays label:has(input:checked){background:var(--green);color:white}.weekdays label:has(input:focus-visible){outline:3px solid #d6ac56}.form-error{font-size:12px;color:var(--red);padding:10px 12px;background:var(--red-bg);border-radius:9px;line-height:1.7;margin-bottom:14px}.form-error:empty{display:none}dialog{border:1px solid var(--line);border-radius:22px;padding:0;background:var(--paper);color:var(--ink);max-width:560px;width:calc(100% - 32px);max-height:calc(100dvh - 44px);box-shadow:0 25px 100px #213d342a}dialog::backdrop{background:#253f3659;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:23px 25px 15px}.dialog-head h2{font-size:20px}.dialog-body{padding:9px 25px 24px;overflow:auto}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:23px}.dialog-note{font-size:12px;color:var(--muted);line-height:1.8;margin:0 0 19px}.photo-full{max-width:100%;max-height:70vh;object-fit:contain;display:block;margin:auto}.full-photo-dialog{max-width:900px}.checkbox-list{display:flex;flex-direction:column;gap:10px}.line-divider{height:1px;background:var(--line);margin:22px 0}#toast{position:fixed;bottom:28px;left:calc(50% + 119px);transform:translateX(-50%);max-width:calc(100% - 35px);background:#254d3f;color:white;padding:12px 20px;border-radius:13px;box-shadow:0 8px 25px #173e3522;z-index:99;font-size:13px;line-height:1.6;opacity:0;pointer-events:none;transition:opacity .2s}#toast.show{opacity:1}.mobile-brand{display:none}.loading-shimmer{animation:pulse 1.4s ease-in-out infinite;background:#e8ede1;border-radius:7px;height:16px}.loading-shimmer.wide{height:130px;margin:20px 0}.loading-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.footer-note{text-align:center;color:#9aa18f;font-size:10px;letter-spacing:1px;margin-top:30px}.danger-text{color:var(--red)}.inline-actions{display:flex;gap:8px;flex-wrap:wrap}.pending-info{background:#fcf2d8;padding:13px;border-radius:10px;color:#94752d;font-size:12px;line-height:1.8;margin-bottom:15px}.install-help{font-size:12px;line-height:1.9;color:var(--muted)}.ai-consent{padding:14px;border-radius:12px;background:#f8f2e2;color:#7e6b45;line-height:1.8;font-size:12px}.page-loading{opacity:.6;pointer-events:none}@keyframes pulse{50%{opacity:.4}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
@media(min-width:1550px){.workspace{padding-left:55px;padding-right:55px}.hero{padding:34px 40px}.stat-card{padding:24px}.content-grid{gap:26px}}
@media(max-width:1150px){.app-shell{padding-left:205px}.sidebar{width:205px;padding-left:17px;padding-right:17px}.workspace{padding:25px}.stats-grid{gap:11px}.stat-card{padding:16px}.content-grid{grid-template-columns:minmax(0,1.4fr) minmax(245px,1fr);gap:16px}.panel{padding:19px}.hero{padding:25px}.hero-art{width:130px}.review-grid{gap:15px}.reward-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.calendar-day{padding:8px}.calendar-task{padding:7px;font-size:10px}#toast{left:calc(50% + 102px)}}
@media(max-width:900px){.content-grid,.settings-grid{grid-template-columns:1fr}.review-grid{grid-template-columns:1fr}.login-story{padding:45px}.login-story h1{font-size:33px}.hero-art{display:none}.hero{grid-template-columns:1fr}.calendar.week{overflow:auto;grid-template-columns:repeat(7,minmax(105px,1fr))}.calendar.month{min-width:0}.month-cell{min-height:107px;padding:6px 4px}.month-cell .calendar-task{font-size:9px}.fields-row{gap:10px}.top-actions .connection{display:none}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){:root{font-size:14px}.app-shell{padding-left:0;padding-bottom:calc(82px + env(safe-area-inset-bottom))}.sidebar{width:auto;inset:auto 0 0;height:auto;padding:7px 7px calc(7px + env(safe-area-inset-bottom));border-right:0;border-top:1px solid var(--line);background:#fffefaed;backdrop-filter:blur(14px)}.sidebar .brand,.nav-label,.sidebar-bottom{display:none}.nav{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0}.nav button{padding:6px 2px;min-height:52px;border-radius:9px;display:flex;flex-direction:column;gap:4px;font-size:10px;font-weight:500;position:relative}.nav .icon{width:21px;height:21px}.nav .count{position:absolute;right:5px;top:0;font-size:8px;padding:1px 4px;min-width:15px;margin:0}.workspace{padding:18px 17px 25px}.topbar{margin-bottom:24px}.crumb{display:none}.mobile-brand{display:flex;gap:7px;align-items:center;font-size:14px;font-weight:700}.mobile-brand img{width:29px;height:29px;border-radius:8px}.top-actions{gap:9px;font-size:11px}.top-actions .icon-button{width:32px;height:32px;border-radius:9px}.page-header{margin-bottom:21px;align-items:flex-start;gap:10px}.eyebrow{font-size:9px;margin-bottom:7px;letter-spacing:1.7px}h1{font-size:25px;letter-spacing:-.5px}.page-header p{font-size:12px;margin-top:7px;line-height:1.7}.page-header>.button{padding:10px;font-size:11px;min-height:36px}.page-header>.button .icon{width:15px;height:15px}.hero{padding:22px;margin-bottom:17px;border-radius:18px}.hero h2{font-size:20px}.hero p{font-size:12px;margin-top:7px}.hero-stats{gap:16px;margin-top:22px}.hero-stat{padding-right:16px}.hero-stat strong{font-size:23px}.hero-stat span{font-size:10px}.stats-grid{gap:11px;margin-bottom:19px}.stat-card{padding:15px;border-radius:15px}.stat-head{font-size:11px}.stat-icon{width:26px;height:26px}.stat-icon .icon{width:16px;height:16px}.stat-value{font-size:26px;margin-top:11px}.stat-value small{font-size:11px}.stat-sub{font-size:10px;line-height:1.6}.panel{padding:18px;border-radius:17px}.panel-head{margin-bottom:17px}.panel-head h2{font-size:16px}.content-grid{gap:17px}.task-title{font-size:13px}.task-meta{font-size:10px}.task-row{padding:15px 0;gap:10px}.task-mark{width:29px;height:29px}.task-actions .button{padding:7px 9px;font-size:10px}.task-actions .icon-button{width:30px;height:30px}.task-actions .icon{width:16px;height:16px}.toolbar{gap:12px;margin-bottom:17px}.toolbar .segmented{width:100%;justify-content:space-between;order:2}.segmented button{padding:8px 10px;font-size:11px}.date-nav{justify-content:space-between;width:100%}.date-nav b{font-size:13px;flex:1}.filters{gap:6px}.filter{padding:7px 11px;font-size:11px}.calendar.three{grid-template-columns:repeat(3,minmax(0,1fr))}.calendar-day{min-height:260px}.calendar.month{margin-left:-7px;margin-right:-7px;border-radius:10px}.month-head{padding:10px 3px;font-size:10px}.month-cell{min-height:100px;padding:4px 3px}.month-date{font-size:11px;margin-bottom:5px}.month-cell .calendar-task{font-size:9px;padding:3px 2px;border-left-width:2px}.calendar-task small{font-size:9px}.review-card-body{padding:18px}.review-card h3{font-size:15px}.photo-strip{padding:0 18px}.review-footer{padding:16px 18px}.review-footer .button{font-size:12px}.review-footer .button.ai{flex-basis:100%}.reward-grid{gap:12px}.reward-art{height:90px;font-size:36px}.reward-body{padding:14px}.reward-body h3{font-size:13px}.reward-body p{font-size:11px;min-height:36px}.reward-bottom{flex-wrap:wrap;gap:10px}.reward-bottom .button{width:100%;font-size:11px}.ledger-total{padding:22px;border-radius:17px}.ledger-total strong{font-size:36px}.ledger-total .big-star{font-size:57px}.data-table{font-size:11px}.data-table th,.data-table td{padding:12px 9px}.data-table .hide-mobile{display:none}.settings-grid{gap:17px}.login-page{grid-template-columns:1fr;display:flex;flex-direction:column;min-height:100dvh}.login-story{padding:28px 30px 32px;min-height:235px;display:block}.login-story .brand{margin-bottom:25px}.login-story .brand img{width:37px;height:37px}.login-story .brand strong{font-size:19px}.login-story h1{font-size:25px;line-height:1.5}.login-story p{display:none}.login-story .orbit{width:350px;height:350px;right:-200px;bottom:-180px}.login-form-wrap{padding:30px 27px 40px;flex:1;align-items:flex-start}.login-form h2{font-size:22px}.login-form>p{font-size:12px;margin-bottom:24px}.login-form .button{min-height:47px}dialog{width:calc(100% - 22px);max-height:calc(100dvh - 28px);border-radius:18px}.dialog-head{padding:20px 20px 13px}.dialog-body{padding:7px 20px 22px}.dialog-head h2{font-size:19px}.fields-row{gap:11px}.field input,.field select,.field textarea{font-size:16px}.field label{font-size:12px}.dialog-actions .button{flex:1}.offline-banner,.error-banner{align-items:flex-start;font-size:12px;padding:12px}.offline-banner .button,.error-banner .button{padding:5px 8px;font-size:11px;min-height:30px}.footer-note{font-size:9px;letter-spacing:.5px}#toast{bottom:calc(91px + env(safe-area-inset-bottom));left:50%;width:max-content}.subtask{margin-left:18px;padding-left:10px}.page-header .inline-actions{justify-content:flex-end}.page-header .inline-actions .button{font-size:11px;padding:9px 11px}.day-heading{font-size:10px}.day-heading strong{font-size:19px}}

.pet-vitals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:17px 0}.pet-vitals span{display:flex;justify-content:space-between;font-size:11px;color:var(--muted)}.pet-vitals b{color:#6c825b}.pet-vitals .progress-line{margin-top:8px;height:5px}
.compact-plan-panel{padding:14px 20px}.compact-list-caption{display:flex;justify-content:space-between;gap:14px;padding:4px 0 12px;border-bottom:1px solid var(--line);color:var(--muted);font-size:11px}.compact-task{padding:12px 0!important;gap:10px}.compact-task .task-title{display:flex;align-items:center;gap:8px;font-size:13px}.compact-task .task-meta{margin-top:5px;font-size:10px;gap:7px}.compact-task .task-mark{width:26px;height:26px;border-radius:8px}.compact-task .task-mark>.icon{width:16px;height:16px}.compact-task .task-actions{gap:8px}.sort-controls{display:flex;gap:3px}.sort-controls .icon-button{width:27px;height:28px;border-color:transparent;background:#f2f5ee}.sort-controls .icon{width:15px;height:15px}.compact-task .task-actions>.icon-button{width:30px;height:30px}.tree-toggle{border:0;background:none;padding:2px;color:var(--green);display:grid;place-items:center}.tree-toggle .icon{width:17px;height:17px}.receipt{font-size:10px;display:inline-block;margin-top:6px;padding:3px 6px;border-radius:5px;line-height:1.5}.receipt.ready{background:#eef4e9;color:#57754f}.receipt.waiting{background:#faf1db;color:#98712e}.deadline-label{color:#a47c36}.policy-box{background:#f4f5ec;border:1px solid #e4e8d7;border-radius:12px;padding:3px 14px 0;margin:2px 0 18px}.policy-box .dialog-note{font-size:11px;line-height:1.9}.compact-task.subtask{margin-left:26px}.video-tile{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;background:#eef0e6;color:#607353;font-size:11px}.video-tile>.icon{width:27px;height:27px}.media-expired{display:flex;align-items:center;justify-content:center;gap:8px;flex-shrink:0;background:#f0f0e8;color:#8a8d7e;border:1px dashed #d8decc;border-radius:10px;padding:12px;font-size:10px;line-height:1.8;min-height:90px;max-width:210px}.evidence-video{display:block;max-width:100%;max-height:70vh;margin:auto;background:#18251f;border-radius:10px}.timely-note{font-size:11px;color:#6b8159;background:#edf3e6;border-radius:9px;padding:10px;margin:10px 0;line-height:1.7}.timely-note.late{color:#96762d;background:#fbf1d8}.scratch-rules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:19px}.scratch-rules .panel+.panel{margin-top:0}.scratch-prize-row{padding:14px;border:1px solid var(--line);border-radius:13px;margin-bottom:14px;background:#fafbf5}.prize-row-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px;font-size:12px}.scratch-prize-row .field:last-child{margin-bottom:0}.probability-total{font-size:11px;color:#5e8154}.probability-total.invalid{color:#aa7334}.v03-settings{margin-top:20px}.device-receipt+.device-receipt{border-top:1px solid var(--line);padding-top:18px;margin-top:18px}.device-receipt h3{font-size:13px}.device-receipt>p{font-size:11px;color:var(--muted);margin:7px 0}.receipt-list{margin:12px 0}.receipt-list>div{display:flex;justify-content:space-between;gap:12px;font-size:10px;line-height:1.8;padding:7px 0;border-top:1px solid #ecefe5}.receipt-list b{font-weight:500;color:#708364;text-align:right}.sync-notice{display:flex;align-items:center;justify-content:space-between;gap:15px;background:#f9f0dc;border:1px solid #eddfbd;color:#93743a;border-radius:12px;padding:12px 15px;font-size:12px;line-height:1.7;margin-bottom:17px}
@media(max-width:900px){.scratch-rules{grid-template-columns:1fr}}
@media(max-width:700px){.compact-plan-panel{padding:10px 13px}.compact-list-caption{font-size:10px;gap:10px}.compact-list-caption span:last-child{max-width:205px;text-align:right}.compact-task{gap:7px;padding:12px 0!important}.compact-task .task-title{font-size:12px;display:block}.compact-task .task-title>.pill{margin-left:5px}.compact-task .task-meta{font-size:9px;gap:5px}.compact-task .task-actions{gap:4px;flex-direction:column}.compact-task .task-actions>.icon-button{width:25px;height:25px}.compact-task .task-actions>.star{font-size:11px}.sort-controls{gap:2px}.sort-controls .icon-button{width:23px;height:24px}.compact-task.subtask{margin-left:15px;padding-left:8px}.compact-task .task-mark{width:23px;height:23px}.receipt{font-size:9px;max-width:100%;margin-top:5px}.receipt-list>div{flex-direction:column;gap:3px}.receipt-list b{text-align:left}.sync-notice{font-size:11px;padding:10px 12px}.scratch-prize-row{padding:12px}.scratch-rules{gap:14px}.v03-settings{margin-top:17px}}

.study-duration{margin:12px 0 9px;font-size:12px;color:#5e7758;gap:6px}.study-duration .icon{width:14px;height:14px}
/* 0.4: direct manipulation, time grid and review rewards */
.drag-handle{border:0;background:transparent;color:#719184;cursor:grab;font-size:28px;width:40px;min-height:48px;flex-shrink:0;touch-action:none;user-select:none;border-radius:8px}
.drag-handle:hover,.drag-handle:focus-visible{background:#e8f0e9;color:#285e4c}.drag-handle:active{cursor:grabbing}
.drag-source{opacity:.3}.drag-ghost{position:fixed;z-index:9999;pointer-events:none;background:#42796b;color:white;border-radius:14px;padding:20px;box-shadow:0 14px 36px #18382e40;font-size:19px;font-weight:700}
.drop-before{box-shadow:0 -4px 0 #42796b}.drop-after{box-shadow:0 4px 0 #42796b}
.priority-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.priority-box{border-radius:20px;padding:16px;min-height:240px;background:#f1f6ef;border:1px solid #d9e5d7}.priority-box h2{font-size:18px;display:flex;justify-content:space-between;margin-bottom:16px}.priority-box h2 span{opacity:.5}.priority-empty{padding:30px;color:#8d9b92;text-align:center}.priority-urgent_important{background:#fff0e8!important;border-color:#f0d6c3!important}.priority-important{background:#edf4e8!important}.priority-urgent{background:#fff5d9!important;border-color:#ebdfb9!important}.priority-later{background:#edf0f6!important;border-color:#d7dfed!important}.priority-box .task-row{background:#ffffffa8;border-radius:10px;padding:8px;margin-bottom:6px}.priority-box .task-meta,.priority-box .receipt{display:none}.priority-box .task-title{font-size:15px}.priority-box .task-actions .star{font-size:12px}
.schedule-scroll{max-height:700px;overflow:auto;border-radius:18px;border:1px solid #dce4d9;background:white}.schedule-grid{display:grid;grid-template-columns:64px repeat(var(--days),minmax(110px,1fr));min-width:660px}.schedule-corner,.schedule-day{position:sticky;top:0;z-index:4;border:0;border-right:1px solid #e0e7db;border-bottom:1px solid #d6e0d1;background:#f1f6ed;padding:15px 4px;text-align:center;color:#456454;font:inherit;font-size:14px;font-weight:700}.schedule-day.is-today{background:#42796b;color:white}.schedule-allday{padding:6px;border-bottom:1px solid #dce4d9;border-right:1px solid #e0e7db;font-size:12px;background:#fafbf7}.schedule-allday button{border:0;background:#e8f0e3;border-radius:5px;text-align:left;padding:5px;margin-bottom:3px;width:100%;color:#365542}.hour-ruler{position:relative;height:1248px;background:#fafbf7}.hour-ruler span{position:absolute;left:7px;font-size:11px;color:#7e8c83}.day-timeline{position:relative;height:1248px;border-right:1px solid #e1e7dc;background:repeating-linear-gradient(to bottom,transparent 0,transparent 51px,#e7ece3 51px,#e7ece3 52px)}.schedule-event{position:absolute;display:flex;flex-direction:column;justify-content:center;text-align:left;border:1px solid #cedfc7;border-radius:6px;padding:4px 5px;color:#304c38;overflow:hidden;max-height:150px}.schedule-event b{font-size:12px;line-height:1.25}.schedule-event small{font-size:10px;opacity:.7}
.bonus-total{padding:22px 0;display:flex;justify-content:space-between;align-items:center}.bonus-total strong{font-size:26px;color:#42796b}.bonus-options{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:18px}.bonus-options .selected{background:#42796b;color:white}
@media(max-width:720px){.priority-grid{grid-template-columns:1fr}.drag-handle{width:32px}.compact-task{padding-left:0!important}.priority-box{min-height:180px}.bonus-options .button{padding:10px}.schedule-scroll{max-height:70vh}}

.schedule-allday{max-height:174px;overflow:auto}.schedule-event b{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}

/* 0.5: a bounded board, direct quadrant movement and family helpers. */
.v05-plan-page>.page-header{margin-bottom:16px}.v05-plan-toolbar{margin-bottom:14px;gap:12px}
.v05-priority-grid{height:clamp(300px,calc(100dvh - 255px),840px);grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr) minmax(0,1fr);gap:12px}
.v05-priority-grid .priority-box{min-height:0;min-width:0;padding:11px;display:flex;flex-direction:column;overflow:hidden;border-radius:15px}
.v05-priority-grid .priority-box h2{font-size:15px;margin:0 0 8px;flex-shrink:0;line-height:24px}
.priority-body{overflow:auto;overscroll-behavior:contain;flex:1;min-height:0;scrollbar-width:thin;padding:3px}
.matrix-task{display:flex;align-items:center;gap:6px;padding:3px 7px 3px 0;min-height:44px;border:1px solid #e0e8da70;background:#ffffffc9;border-radius:9px;margin-bottom:5px}
.matrix-task .drag-handle{width:34px;min-height:37px;font-size:25px}.matrix-task .star{font-size:11px;white-space:nowrap}
.matrix-task-edit{border:0;background:none;flex:1;min-width:0;text-align:left;color:var(--ink);cursor:pointer;padding:5px 2px;display:flex;align-items:center;gap:7px}
.matrix-task-edit b{font-size:13px;font-weight:600;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.4}.matrix-task-edit small{font-size:10px;color:var(--muted);flex-shrink:0}
.priority-box.drop-quadrant{outline:3px solid #42796b;outline-offset:-3px}.drag-ghost{font-size:15px;padding:13px}
.compact-schedule .schedule-grid{min-width:0;grid-template-columns:57px repeat(var(--days),minmax(105px,1fr))}.compact-schedule .hour-ruler,.compact-schedule .day-timeline{height:var(--timeline-height);min-height:0}.compact-schedule .day-timeline{background:repeating-linear-gradient(to bottom,transparent 0,transparent 63px,#e7ece3 63px,#e7ece3 64px)}
.compact-schedule .schedule-event{max-height:none}.compact-schedule{max-height:calc(100dvh - 280px)}
.schedule-slot-time{font-size:12px;color:var(--muted);padding:13px 5px;background:#fafbf7;border-bottom:1px solid var(--line)}.schedule-slot-cell{padding:5px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);min-width:0}.schedule-slot-cell button{display:block;width:100%;text-align:left;color:var(--ink);font:inherit;font-size:13px;line-height:1.5;padding:7px 9px;border:1px solid var(--line);border-radius:7px;margin-bottom:4px;overflow-wrap:anywhere}.schedule-slot-cell button:last-child{margin-bottom:0}
.message-list{display:flex;flex-direction:column;gap:15px}.message-bubble{align-self:flex-start;width:min(92%,650px);background:#f0f5eb;border:1px solid #dfe8d8;border-radius:15px;padding:15px 18px}.message-bubble.from-parent{align-self:flex-end;background:#fbf0d9;border-color:#eadfbd}.message-bubble header{display:flex;gap:15px;justify-content:space-between;font-size:13px}.message-bubble header span{color:var(--muted);font-size:11px}.message-bubble p{white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0;font-size:15px;line-height:1.65}.message-bubble footer{display:flex;gap:15px;justify-content:flex-end;font-size:11px;min-height:15px;margin-top:10px}
.ai-tools-panel .inline-actions{margin-top:16px}.import-task{padding:15px;border:1px solid var(--line);background:#fbfcf7;border-radius:13px;margin:15px 0}.import-task>.check-field{margin-top:0}
.gift-plant-panel{margin-top:22px}.plant-rule{padding:16px 0;border-top:1px solid var(--line);margin-top:15px}.plant-rule-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.plant-rule-heading>.link-button{margin-left:auto}.plant-rule>p{font-size:13px;margin:10px 0;color:var(--muted)}.plant-prizes{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.plant-prizes span{background:#edf2e7;padding:5px 9px;border-radius:8px;font-size:12px}.plant-rule .plant-result{font-weight:700;color:var(--green)}.plant-prize-row{padding:14px;background:#f3f6ed;border:1px solid #dce6d4;border-radius:12px;margin-bottom:12px}
@media(max-width:900px){.v05-plan-page .page-header p{display:none}.v05-priority-grid{height:calc(100dvh - 260px)}.matrix-task-edit{display:block}.matrix-task-edit small{display:block;margin-top:2px}}
@media(max-width:700px){.nav{grid-template-columns:repeat(7,minmax(0,1fr))}.nav button{font-size:9px}.v05-plan-page>.page-header{margin-bottom:10px}.v05-plan-page .eyebrow{display:none}.v05-plan-page h1{font-size:21px}.v05-plan-page .page-header .inline-actions .button{font-size:10px;padding:7px}.v05-plan-toolbar{gap:7px;margin-bottom:8px}.v05-plan-toolbar .segmented{width:100%;overflow:auto;justify-content:flex-start}.v05-plan-toolbar .segmented button{padding:7px 9px;white-space:nowrap}.v05-priority-grid{height:calc(100dvh - 270px);min-height:260px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px}.v05-priority-grid .priority-box{padding:6px;border-radius:11px}.v05-priority-grid .priority-box h2{font-size:11px;line-height:20px;gap:4px;margin-bottom:4px}.matrix-task{gap:1px;padding-right:3px;min-height:42px}.matrix-task .drag-handle{width:27px;font-size:23px;min-height:40px}.matrix-task-edit b{font-size:11px;line-height:1.35}.matrix-task .star{display:none}.priority-body{padding:2px}.priority-empty{font-size:11px;padding:20px 3px}.compact-schedule{max-height:calc(100dvh - 320px)}.message-bubble{width:96%;padding:12px}.message-bubble header{font-size:12px;gap:8px}.message-bubble p{font-size:14px}.plant-rule-heading{gap:7px}}
