/* Plan 011: self-hosted fonts (OFL-1.1, web/dist/fonts/OFL-*.txt), Latin subset; Chinese uses the system fonts below. */
@font-face{font-family:'DM Sans';font-style:normal;font-display:swap;font-weight:100 1000;src:url(./fonts/dm-sans-latin-wght.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Manrope';font-style:normal;font-display:swap;font-weight:200 800;src:url(./fonts/manrope-latin-wght.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
/* @theme-tokens:start
   Plan 011 semantic colour tokens. Colour literals may appear ONLY between these markers
   (test/web-theme-tokens.test.mjs); everything below uses var(--token) or color-mix() of tokens.
   Light "Deeper field" on :root; dark "Evening lawn" when forced ([data-theme=dark], set before first
   paint by theme-boot.js) or when Automatic and the device prefers dark. The two dark blocks must match. */
:root{color-scheme:light;
  --surface-page:#e9ece2;--surface-card:#ffffff;--surface-sunken:#f3f5ee;--surface-hover:#e6ebdd;--surface-sidebar:#1f4a36;
  --on-sidebar:#f2f4e9;--on-sidebar-muted:#b9c9b8;--sidebar-accent:#c9df8f;
  --text:#1b2a21;--text-muted:#56614f;--link:#2e5a24;
  --border-subtle:#cfd6c4;--border-control:#727e68;
  --accent:#1f4a36;--accent-hover:#2b5c45;--on-accent:#ffffff;--accent-tint:#e4ecd6;
  --highlight:#c9df8f;--on-highlight:#2e4a12;
  --focus-ring:#3f7a2e;
  --danger:#a23a2e;--danger-hover:#862e24;--on-danger:#ffffff;--danger-tint:#fbece7;
  --warning:#7a4f10;--warning-tint:#fff3dc;
  --success:#2e6a2a;--success-tint:#e6f0da;
  --info:#24506e;--info-tint:#e8f1f7;
  --shadow:#1b2a21;--backdrop:rgb(18 43 35 / .4);
  --illus-sun:#dfdfaa;--illus-light:#bbd18c;--illus-mid:#95ad6f;--illus-dark:#5f7a4b}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]){color-scheme:dark;
  --surface-page:#121a15;--surface-card:#1f2b24;--surface-sunken:#19241e;--surface-hover:#2a3830;--surface-sidebar:#0b120e;
  --on-sidebar:#e3e9dd;--on-sidebar-muted:#a3ae9f;--sidebar-accent:#9fcf6a;
  --text:#e3e9dd;--text-muted:#a3ae9f;--link:#a9d77a;
  --border-subtle:#34443a;--border-control:#7a8d7e;
  --accent:#9fcf6a;--accent-hover:#b2db84;--on-accent:#13230a;--accent-tint:#2a3d24;
  --highlight:#35502a;--on-highlight:#dcefc0;
  --focus-ring:#b5e08a;
  --danger:#f08a7a;--danger-hover:#f5a598;--on-danger:#2a0d08;--danger-tint:#3a2220;
  --warning:#e8b765;--warning-tint:#352b18;
  --success:#9fcf6a;--success-tint:#23361f;
  --info:#8cc3e8;--info-tint:#1c2e3a;
  --shadow:#000000;--backdrop:rgb(0 0 0 / .6);
  --illus-sun:#b9b98a;--illus-light:#6f8c55;--illus-mid:#56703f;--illus-dark:#2f4427}}
:root[data-theme=dark]{color-scheme:dark;
  --surface-page:#121a15;--surface-card:#1f2b24;--surface-sunken:#19241e;--surface-hover:#2a3830;--surface-sidebar:#0b120e;
  --on-sidebar:#e3e9dd;--on-sidebar-muted:#a3ae9f;--sidebar-accent:#9fcf6a;
  --text:#e3e9dd;--text-muted:#a3ae9f;--link:#a9d77a;
  --border-subtle:#34443a;--border-control:#7a8d7e;
  --accent:#9fcf6a;--accent-hover:#b2db84;--on-accent:#13230a;--accent-tint:#2a3d24;
  --highlight:#35502a;--on-highlight:#dcefc0;
  --focus-ring:#b5e08a;
  --danger:#f08a7a;--danger-hover:#f5a598;--on-danger:#2a0d08;--danger-tint:#3a2220;
  --warning:#e8b765;--warning-tint:#352b18;
  --success:#9fcf6a;--success-tint:#23361f;
  --info:#8cc3e8;--info-tint:#1c2e3a;
  --shadow:#000000;--backdrop:rgb(0 0 0 / .6);
  --illus-sun:#b9b98a;--illus-light:#6f8c55;--illus-mid:#56703f;--illus-dark:#2f4427}
/* @theme-tokens:end */
:root{--sidebar-w:238px;--font:'DM Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-family:var(--font);color:var(--text);background:var(--surface-page);font-size:14px;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default}a{color:inherit}button{color:inherit}button,input,select,textarea{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--focus-ring)}svg{width:20px;height:20px;flex-shrink:0;stroke:currentColor;fill:none;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}button svg{pointer-events:none}h1,h2,h3,p{margin:0}h1,h2,h3,.brand{font-family:'Manrope',var(--font)}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;top:-70px;inset-inline-start:15px;padding:12px;background:var(--surface-card);z-index:10}.skip-link:focus{top:10px}
.sidebar{width:var(--sidebar-w);position:fixed;inset-block:0;inset-inline-start:0;background:var(--surface-sidebar);color:var(--on-sidebar);display:flex;flex-direction:column;padding:37px 24px 22px;overflow-y:auto}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-size:24px;font-weight:750;letter-spacing:-1px;white-space:nowrap}.brand-symbol{display:grid;place-items:center;width:32px;height:36px;color:var(--sidebar-accent)}.brand-symbol svg{width:32px;height:32px;stroke-width:1.7}.brand-light{font-weight:500}.brand-dot{color:var(--sidebar-accent)}.sidebar-label{text-transform:uppercase;font-size:11px;letter-spacing:1.7px;font-weight:600;color:var(--on-sidebar-muted);margin-block:60px 17px;margin-inline:13px 0}.nav-list{display:grid;gap:7px}.nav-item{border:0;border-radius:9px;text-align:start;padding:13px 12px;display:flex;align-items:center;gap:12px;background:transparent;color:var(--on-sidebar-muted);font-weight:500;transition:background .15s,color .15s}.nav-item.active{background:var(--highlight);color:var(--on-highlight)}.nav-item:hover:not(.active){background:color-mix(in srgb,var(--on-sidebar) 8%,transparent);color:var(--on-sidebar)}.nav-item svg{width:19px;height:19px}.nav-count{margin-inline-start:auto;background:color-mix(in srgb,currentColor 12%,transparent);min-width:23px;height:23px;display:grid;place-items:center;border-radius:6px;font-size:11px}.sidebar-garden{position:relative;min-height:150px;height:170px;width:172px;margin:auto auto 0;overflow:hidden}.garden-sun{width:52px;height:52px;background:var(--illus-sun);opacity:.85;border-radius:50%;position:absolute;right:21px;top:30px}.garden-ground{position:absolute;width:195px;height:62px;border-radius:50%;bottom:-37px;left:-14px;background:var(--illus-dark)}.blade{position:absolute;bottom:3px;width:14px;border-radius:100% 0 100% 0;background:var(--illus-mid);transform-origin:bottom}.blade-1{height:80px;left:24px;transform:rotate(-29deg)}.blade-2{height:103px;left:43px;transform:rotate(-14deg);background:var(--illus-light)}.blade-3{height:63px;left:62px;transform:rotate(21deg);background:var(--illus-dark)}.blade-4{height:115px;left:83px;transform:rotate(-19deg)}.blade-5{height:90px;left:99px;transform:rotate(20deg);background:var(--illus-light)}.blade-6{height:65px;left:120px;transform:rotate(26deg)}.blade-7{height:50px;left:137px;transform:rotate(35deg);background:var(--illus-dark)}.sidebar-note{padding:24px 13px 35px}.edition{text-transform:uppercase;font-size:11px;letter-spacing:1.4px;color:var(--on-sidebar-muted);font-weight:600}.sidebar-note p{font-family:'Manrope',var(--font);font-size:19px;line-height:1.55;letter-spacing:-.5px;margin-top:10px;color:var(--on-sidebar)}.save-status{display:flex;gap:8px;align-items:center;border-top:1px solid color-mix(in srgb,var(--on-sidebar) 12%,transparent);padding-top:20px;font-size:11px;color:var(--on-sidebar-muted)}.status-dot{width:5px;height:5px;background:var(--sidebar-accent);border-radius:50%;flex-shrink:0}.save-status>span:last-child{margin-inline-start:auto}.save-status svg{width:12px;height:12px}
.workspace{margin-inline-start:var(--sidebar-w)}.topbar{height:86px;border-bottom:1px solid var(--border-subtle);display:flex;align-items:center;gap:20px;padding:0 44px;background:var(--surface-card)}.breadcrumb{display:flex;align-items:center;gap:12px;color:var(--text-muted);font-size:12px}.breadcrumb svg{width:16px;height:16px}.breadcrumb>.crumb-sep{color:var(--text-muted)}.breadcrumb strong{color:var(--text-muted);font-weight:500}.top-date{margin-inline-start:auto;color:var(--text-muted);font-size:11px}.avatar{display:grid;place-items:center;width:33px;height:33px;background:var(--accent-tint);border:1px solid var(--border-subtle);border-radius:50%;color:var(--link)}.avatar svg{width:18px;height:18px}main{max-width:1430px;margin:0 auto;padding:41px 44px 20px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:32px}.eyebrow{text-transform:uppercase;display:flex;align-items:center;gap:7px;font-size:11px;letter-spacing:1.7px;font-weight:650;color:var(--text-muted)}.eyebrow>.eyebrow-dot{width:5px;height:5px;border-radius:50%;background:var(--link)}h1{font-size:35px;letter-spacing:-1.5px;line-height:1.35;margin:9px 0 9px;font-weight:750}h1>span{color:var(--link)}.page-heading p{font-size:13px;color:var(--text-muted);line-height:1.6}.button{border-radius:8px;padding:12px 17px;min-height:44px;border:1px solid transparent;font-size:12px;font-weight:550;display:inline-flex;align-items:center;justify-content:center;gap:9px;white-space:nowrap;transition:background .15s,transform .15s}.button:active{transform:translateY(1px)}.button svg{width:16px;height:16px}.button-primary{background:var(--accent);color:var(--on-accent);box-shadow:0 3px 5px color-mix(in srgb,var(--shadow) 6%,transparent)}.button-primary:hover{background:var(--accent-hover)}.button-quiet{background:var(--surface-sunken);border-color:var(--border-control);color:var(--text-muted)}.button-quiet:hover{background:var(--surface-hover)}.button-danger{background:var(--danger);color:var(--on-danger)}.button-danger:hover{background:var(--danger-hover)}.icon-button{border:1px solid var(--border-subtle);background:var(--surface-card);border-radius:7px;width:32px;height:32px;display:grid;place-items:center;color:var(--text-muted)}.icon-button:hover{background:var(--surface-hover);color:var(--link)}.icon-button svg{width:17px;height:17px}
.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:32px}.stat-card{background:var(--surface-card);border:1px solid var(--border-subtle);border-radius:11px;min-height:113px;padding:20px;display:flex;align-items:flex-start;gap:13px;position:relative}.stat-icon{height:38px;width:38px;border-radius:10px;background:var(--accent-tint);color:var(--link);display:grid;place-items:center;flex-shrink:0}.stat-icon.warm{background:var(--warning-tint);color:var(--warning)}.stat-icon.sage{background:var(--success-tint);color:var(--success)}.stat-icon svg{width:19px;height:19px}.stat-card>div{display:flex;flex-direction:column;gap:7px}.stat-label{color:var(--text-muted);font-size:11px}.stat-card strong{font-family:'Manrope',var(--font);font-size:26px;font-weight:650;line-height:1;letter-spacing:-1px}.stat-caption{position:absolute;bottom:17px;inset-inline-start:72px;font-size:11px;color:var(--text-muted)}.content-grid{display:grid;grid-template-columns:minmax(0,1fr) 294px;gap:24px;align-items:start}.task-panel{background:var(--surface-card);border:1px solid var(--border-subtle);border-radius:12px;overflow:hidden}.section-heading{display:flex;align-items:center;justify-content:space-between;padding:24px 25px 22px;gap:15px}h2{font-size:16px;letter-spacing:-.5px;font-weight:750}.section-heading h2{display:flex;align-items:center;gap:9px}.section-heading h2>.count-badge{font:500 11px var(--font);color:var(--text-muted);background:var(--accent-tint);padding:4px 7px;border-radius:5px}.section-heading p{font-size:11px;color:var(--text-muted);line-height:1.6;margin-top:7px}.tabs{display:flex;gap:23px;padding:0 25px;border-bottom:1px solid var(--border-subtle)}.tab{background:transparent;border:0;border-bottom:2px solid transparent;padding:0 0 13px;font-size:11px;font-weight:500;white-space:nowrap;color:var(--text-muted)}.tab.active{color:var(--text);border-bottom-color:var(--accent)}.tab .tab-count{background:var(--surface-sunken);border-radius:4px;padding:2px 5px;font-size:11px;margin-inline-start:3px}.list-tools{display:flex;justify-content:space-between;gap:12px;margin:18px 25px 8px}.search-field{display:flex;align-items:center;gap:8px;min-width:0;flex:1}.search-field svg{width:15px;height:15px;color:var(--text-muted)}.search-field input{min-width:0;width:100%;border:0;padding:9px 0;font-size:11px;color:var(--text-muted);background:transparent}.search-field input::placeholder{color:var(--text-muted)}.category-field{max-width:145px}.category-field select{width:100%;border:1px solid var(--border-control);background:var(--surface-card);padding-block:7px;padding-inline:9px 24px;border-radius:6px;color:var(--text-muted);font-size:11px;min-height:33px}.empty-state{padding:41px 22px 46px;text-align:center;min-height:310px;display:flex;flex-direction:column;align-items:center;justify-content:center}.empty-art{width:82px;height:82px;display:grid;place-items:center;background:var(--accent-tint);border:9px solid var(--surface-sunken);border-radius:50%;color:var(--link);margin-bottom:20px;position:relative}.empty-art::after,.empty-art::before{content:'';position:absolute;border-radius:50%;background:var(--illus-light)}.empty-art::after{width:7px;height:7px;top:4px;inset-inline-end:-16px}.empty-art::before{width:4px;height:4px;bottom:7px;inset-inline-start:-15px}.empty-art svg{width:33px;height:33px;stroke-width:1.3}.empty-state h3{font-size:16px;font-weight:650;letter-spacing:-.45px;margin-bottom:9px}.empty-state p{font-size:11px;color:var(--text-muted);line-height:1.8;max-width:250px}.empty-state .button{margin-top:21px;min-height:37px;padding:9px 13px;font-size:11px}.empty-state .button svg{width:14px;height:14px}.list-footer{border-top:1px solid var(--border-subtle);padding:15px 23px;display:flex;align-items:center;justify-content:center;gap:7px;background:var(--surface-card);color:var(--text-muted);font-size:11px}.list-footer svg{width:12px;height:12px}.task-row{display:flex;align-items:flex-start;gap:13px;padding:20px 25px;border-top:1px solid var(--border-subtle);position:relative}.task-check{margin-top:3px;appearance:none;width:20px;height:20px;border:1.5px solid var(--border-control);border-radius:6px;cursor:pointer;flex-shrink:0;background:var(--surface-card);display:grid;place-items:center}.task-check:checked{background:var(--accent);border-color:var(--accent)}.task-check:checked::after{content:'';width:5px;height:9px;border:solid var(--on-accent);border-width:0 1.5px 1.5px 0;transform:rotate(45deg);margin-top:-2px}.task-body{min-width:0;flex:1}.task-title{font-size:13px;font-weight:550;line-height:1.6;overflow-wrap:anywhere}.task-row.is-complete .task-title{text-decoration:line-through;color:var(--text-muted)}.task-meta{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin-top:9px}.category-badge{font-size:11px;background:var(--accent-tint);color:var(--text-muted);border-radius:4px;padding:4px 6px;white-space:nowrap}.category-badge.watering{background:var(--info-tint);color:var(--info)}.category-badge.weeds{background:var(--warning-tint);color:var(--warning)}.category-badge.soil{background:var(--warning-tint);color:var(--warning)}.due-label,.repeat-label{display:inline-flex;align-items:center;gap:4px;font-size:11px;color:var(--text-muted)}.due-label svg,.repeat-label svg{width:11px;height:11px}.due-label.overdue{color:var(--danger)}.due-label.today{color:var(--link);font-weight:600}.task-notes{color:var(--text-muted);font-size:11px;line-height:1.7;margin-top:9px;overflow-wrap:anywhere;white-space:pre-wrap}.task-actions{display:flex;gap:3px;opacity:0;transition:opacity .15s}.task-row:hover .task-actions,.task-row:focus-within .task-actions{opacity:1}.task-actions .icon-button{width:27px;height:28px;border-color:transparent}.task-actions svg{width:14px;height:14px}.task-actions button:last-child:hover{color:var(--danger);background:var(--danger-tint)}.library-panel{background:var(--accent-tint);border:1px solid var(--border-subtle);border-radius:12px;overflow:hidden;scroll-margin-top:20px}.library-panel .section-heading{padding:25px 22px 16px}.library-eyebrow{font-size:11px;letter-spacing:1.5px;margin-bottom:10px;color:var(--text-muted)}.library-panel h2{font-size:15px;letter-spacing:-.5px}.library-panel .section-heading p{font-size:11px;max-width:210px;color:var(--text-muted)}.template-row{display:flex;align-items:center;gap:11px;padding:15px 21px;border-top:1px solid var(--border-subtle)}.template-icon{height:32px;width:32px;display:grid;place-items:center;flex-shrink:0;color:var(--text-muted);background:var(--accent-tint);border:1px solid var(--border-subtle);border-radius:8px}.template-icon svg{width:17px;height:17px}.template-content{min-width:0;flex:1}.template-content h3{font-family:var(--font);font-weight:550;font-size:11px;line-height:1.5;letter-spacing:0}.template-content p{font-size:11px;color:var(--text-muted);line-height:1.55;margin-top:3px}.template-add{width:26px;height:26px;background:var(--accent-tint);border:1px solid var(--border-control);color:var(--text-muted);display:grid;place-items:center;border-radius:50%;flex-shrink:0}.template-add:hover{background:var(--accent-tint);color:var(--link)}.template-add svg{width:13px;height:13px}.library-footnote{padding:18px 22px;background:var(--accent-tint);border-top:1px solid var(--border-subtle);display:flex;gap:9px;align-items:flex-start;color:var(--text-muted)}.library-footnote svg{width:14px;height:14px;margin-top:2px}.library-footnote p{font-size:11px;line-height:1.7}.page-footer{display:flex;gap:15px;justify-content:space-between;margin-top:38px;color:var(--text-muted);font-size:11px;line-height:1.8}.page-footer>span:last-child{display:flex;gap:7px;align-items:center}.page-footer svg{width:12px;height:12px}.footer-dot{margin:0 5px;color:var(--text-muted)}.library-mode{grid-template-columns:1fr}.library-mode .task-panel{display:none}.library-mode .library-panel{max-width:900px}.library-mode #template-list{display:grid;grid-template-columns:1fr 1fr}.library-mode .template-row{min-height:98px}.library-mode .template-row:nth-child(odd){border-inline-end:1px solid var(--border-subtle)}.library-mode .template-content h3{font-size:13px}.library-mode .template-content p{font-size:11px}
dialog{border:1px solid var(--border-subtle);border-radius:16px;padding:0;width:min(480px,calc(100% - 32px));max-height:calc(100dvh - 40px);color:var(--text);box-shadow:0 25px 100px color-mix(in srgb,var(--shadow) 20%,transparent)}dialog::backdrop{background:var(--backdrop);backdrop-filter:blur(3px)}#task-form{padding:28px}.dialog-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px;gap:12px}.dialog-heading h2{font-size:24px;margin-top:7px;letter-spacing:-1px}.dialog-heading .icon-button{align-self:flex-start}.form-field{display:block;font-size:11px;font-weight:550;color:var(--text-muted);margin:0 0 17px}.form-field>input,.form-field>select,.form-field>textarea{display:block;width:100%;margin-top:8px;border:1px solid var(--border-control);background:var(--surface-card);border-radius:7px;padding:11px;color:var(--text);font-size:12px;font-weight:400;min-height:42px}.form-field input::placeholder,.form-field textarea::placeholder{color:var(--text-muted)}.form-field>textarea{resize:vertical;line-height:1.6;max-height:220px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}.optional{margin-inline-start:5px;font-size:11px;color:var(--text-muted);font-weight:400}.field-help{font-size:11px;line-height:1.6;font-weight:400;color:var(--text-muted);display:block;margin-top:7px}.dialog-footer{display:flex;justify-content:flex-end;gap:10px;padding-top:17px;border-top:1px solid var(--border-subtle);margin-top:23px}.form-error{color:var(--danger);background:var(--danger-tint);padding:10px;font-size:11px;line-height:1.7;border-radius:6px}.delete-dialog{padding:28px;max-width:400px}.delete-symbol{display:grid;place-items:center;width:40px;height:40px;background:var(--danger-tint);border-radius:11px;color:var(--danger);margin-bottom:17px}.delete-dialog h2{font-size:21px}.delete-dialog p{margin-top:11px;font-size:12px;line-height:1.8;color:var(--text-muted);overflow-wrap:anywhere}.toast{position:fixed;bottom:28px;inset-inline:var(--sidebar-w) 0;margin-inline:auto;display:flex;align-items:center;gap:10px;background:var(--accent);color:var(--on-accent);padding:15px 17px;border-radius:10px;box-shadow:0 8px 30px color-mix(in srgb,var(--shadow) 15%,transparent);font-size:12px;z-index:20;max-width:calc(100% - var(--sidebar-w) - 35px);width:max-content}.toast>span:first-child{display:flex;color:var(--on-accent)}.toast svg{width:17px;height:17px}.toast button{border:0;background:transparent;color:var(--on-accent);font-size:11px;padding:5px;flex-shrink:0}.toast .toast-close{display:grid;place-items:center;color:var(--on-accent);margin-inline-start:4px}.toast .toast-close svg{width:13px;height:13px}.storage-warning{border:1px solid color-mix(in srgb,var(--warning) 35%,var(--surface-card));background:var(--warning-tint);color:var(--warning);font-size:12px;line-height:1.7;border-radius:8px;padding:14px;margin-bottom:20px}.storage-warning button{margin-inline-start:10px;background:transparent;border:0;text-decoration:underline;color:inherit}
@media(min-width:1600px){main{padding-top:52px}.content-grid{grid-template-columns:minmax(0,1fr) 320px}.stat-card{min-height:122px}.task-row{padding-top:23px;padding-bottom:23px}.template-row{padding-top:18px;padding-bottom:18px}.empty-state{min-height:340px}}
@media(max-width:1200px){:root{--sidebar-w:205px}.sidebar{padding-inline:19px}.brand{font-size:22px;gap:5px}.topbar{padding:0 30px}main{padding:32px 30px 20px}.content-grid{grid-template-columns:minmax(0,1fr) 265px;gap:18px}.stat-card{padding:17px 13px;gap:10px}.stat-caption{inset-inline-start:61px;bottom:15px;font-size:11px}.stat-label{font-size:11px}.tabs{gap:17px;padding:0 20px}.section-heading{padding-inline:20px}.list-tools{margin-inline:20px;gap:7px}.task-row{padding-inline:20px 17px}.template-row{padding-inline:17px;gap:8px}.library-panel .section-heading{padding-inline:18px}.template-icon{width:29px;height:29px}.task-actions{opacity:1}.task-actions .icon-button{width:25px}.category-field{max-width:120px}}
@media(max-width:1030px){:root{--sidebar-w:185px}.sidebar{padding-inline:14px}.brand{font-size:20px}.brand-symbol{width:27px}.brand-symbol svg{width:27px}.sidebar-label{font-size:11px;margin-inline-start:10px}.nav-item{padding:12px 10px;font-size:12px;gap:9px}.sidebar-garden{width:150px}.sidebar-note p{font-size:18px}.save-status{font-size:11px}.content-grid{grid-template-columns:minmax(0,1fr)}.library-panel{margin-top:3px}#template-list{display:grid;grid-template-columns:1fr 1fr}.template-row:nth-child(odd){border-inline-end:1px solid var(--border-subtle)}.template-row{min-height:80px}.library-panel .section-heading p{max-width:none}.library-panel h2{font-size:16px}.template-content h3{font-size:12px}.template-content p{font-size:11px}.library-footnote p br{display:none}.stats{gap:10px}.stat-card{gap:9px;padding:17px 12px}.stat-icon{width:30px;height:30px}.stat-icon svg{width:16px;height:16px}.stat-caption{inset-inline-start:51px;max-width:calc(100% - 60px)}.stat-label{font-size:11px}.topbar{padding-inline:26px}main{padding-inline:26px}}
@media(max-width:700px){:root{--sidebar-w:0px}.sidebar{position:relative;inset:auto;width:100%;height:auto;padding:19px 20px 0;overflow:visible;display:block}.brand{font-size:24px;gap:8px}.brand-symbol svg{width:30px}.sidebar-label,.sidebar-garden,.sidebar-note,.save-status{display:none}.nav-list{display:flex;gap:6px;margin-top:19px}.nav-item{border-radius:7px 7px 0 0;padding:12px 12px;font-size:12px;gap:7px;flex:1;justify-content:center;white-space:nowrap}.nav-item svg{width:15px;height:15px}.nav-count{display:none}.topbar{height:55px;padding:0 20px;gap:10px}.breadcrumb{font-size:12px;gap:8px}.top-date{font-size:12px}.avatar{display:none}main{padding:29px 20px 20px}.page-heading{margin-bottom:25px;align-items:flex-start;gap:10px}.eyebrow{font-size:12px;letter-spacing:1.3px}h1{font-size:29px;letter-spacing:-1.3px;margin:8px 0}.page-heading p{font-size:12px;max-width:190px}.page-heading>.button{font-size:12px;padding:10px 12px;margin-top:22px;min-height:39px;gap:6px}.page-heading>.button svg{width:14px;height:14px}.stats{gap:8px;margin-bottom:22px}.stat-card{padding:14px 11px;min-height:103px;display:block}.stat-icon{position:absolute;inset-inline-end:10px;top:12px;width:23px;height:23px;border-radius:7px}.stat-icon svg{width:13px;height:13px}.stat-card>div{gap:10px}.stat-label{font-size:12px;max-width:65px;line-height:1.5;min-height:26px}.stat-card strong{font-size:24px}.stat-caption{display:none}.section-heading{padding:21px 18px 19px}h2{font-size:15px}.section-heading p{font-size:12px}.tabs{gap:20px;padding:0 18px}.tab{font-size:12px}.list-tools{margin:15px 18px 7px}.search-field input{font-size:12px}.category-field{max-width:125px}.category-field select{font-size:12px}.empty-state{min-height:305px;padding:35px 18px}.task-row{padding:18px;gap:10px}.task-title{font-size:12px}.task-actions{gap:0;opacity:1;flex-direction:column;margin-top:-4px}.task-check{width:19px;height:19px}.task-meta{gap:6px}.task-actions .icon-button{height:26px;width:25px}.library-panel .section-heading{padding:22px 18px 17px}.library-panel h2{font-size:15px}#template-list,.library-mode #template-list{grid-template-columns:1fr}.template-row,.library-mode .template-row{padding:15px 18px;min-height:78px}.template-row:nth-child(odd){border-inline-end:0!important}.template-icon{height:32px;width:32px;margin-inline-end:3px}.template-content h3{font-size:12px}.template-content p{font-size:12px}.template-add{width:29px;height:29px}.library-footnote{padding-inline-start:18px}.page-footer{flex-direction:column;align-items:center;gap:7px;font-size:12px;margin-top:28px}.toast{bottom:18px;width:calc(100% - 32px);max-width:none;font-size:12px;padding:12px 13px;gap:8px}.toast #toast-message{flex:1}.toast svg{width:15px;height:15px}#task-form{padding:23px}.dialog-heading h2{font-size:23px}.form-field>input,.form-field>select,.form-field>textarea{font-size:16px}.form-row{gap:11px}.form-field{font-size:12px}.form-field>input,.form-field>select{padding:10px 8px}.field-help{font-size:12px}.button{font-size:12px}}
@media(max-width:365px){main{padding-inline:14px}.topbar{padding:0 14px}.top-date{font-size:12px}.page-heading>.button{font-size:12px;padding:9px}.page-heading>.button svg{display:none}h1{font-size:27px}.tabs{gap:15px}.stat-icon{display:none}.stat-label{max-width:none}.nav-item{padding-inline:7px}.form-row{grid-template-columns:1fr}.form-row .form-field{margin-bottom:15px}}
/* Keep supporting copy readable at both laptop and phone sizes. */
.stat-label,.section-heading p,.tab{font-size:12px;color:var(--text-muted)}.stat-caption{font-size:11px;color:var(--text-muted)}.task-title{font-size:14px}.task-notes{font-size:12px;color:var(--text-muted)}.category-badge,.due-label,.repeat-label{font-size:11px}.due-label,.repeat-label{color:var(--text-muted)}.search-field input{font-size:12px}.category-field select{font-size:11px}.template-content h3{font-size:12px}.template-content p{font-size:11px;color:var(--text-muted)}.library-panel .section-heading p{font-size:11px;color:var(--text-muted)}.library-footnote p{font-size:11px;line-height:1.8;color:var(--text-muted)}.list-footer{font-size:11px;color:var(--text-muted)}.empty-state p{font-size:12px;color:var(--text-muted)}.page-footer{font-size:11px}.task-meta{gap:8px}.library-footnote p br{display:initial}
@media(max-width:1200px) and (min-width:701px){.stat-label{font-size:11px}.stat-caption{font-size:11px}.category-field{max-width:145px}}
@media(max-width:1030px) and (min-width:701px){.stat-caption{inset-inline-start:16px;bottom:12px;font-size:11px}.stat-label{font-size:11px}.stat-card{padding-bottom:30px}}
@media(max-width:700px){.stat-label{font-size:12px;max-width:70px;padding-inline-end:6px}.stat-icon{inset-inline-end:8px;top:14px;width:20px;height:20px}.tab{font-size:12px}.section-heading p{font-size:12px}.task-title{font-size:14px}.task-notes{font-size:12px}.search-field input{font-size:12px}.category-field select{font-size:12px}.template-content h3{font-size:13px}.template-content p{font-size:12px}.empty-state .button{font-size:12px}.library-footnote p{font-size:12px}.page-footer{font-size:12px}.category-badge,.due-label,.repeat-label{font-size:12px}.tabs{gap:17px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* Internationalisation: language picker, CJK font fallback, right-to-left details. Layout above uses logical properties. */
.language-field{position:relative;display:inline-flex;align-items:center;color:var(--link)}.language-field svg{position:absolute;inset-inline-start:9px;width:15px;height:15px;pointer-events:none}.language-field select{appearance:auto;min-height:36px;border:1px solid var(--border-control);background:var(--surface-card);border-radius:8px;padding-block:6px;padding-inline:30px 8px;color:var(--text);font-size:12px;max-width:9.5rem}
.breadcrumb,.top-date{min-width:0}.breadcrumb strong,.top-date{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:lang(zh){--font:'DM Sans',system-ui,-apple-system,'PingFang SC','Hiragino Sans GB','Microsoft YaHei','Noto Sans CJK SC','Noto Sans SC',sans-serif}:lang(zh) h1,:lang(zh) h2,:lang(zh) h3,:lang(zh) .brand,:lang(zh) .eyebrow,:lang(zh) .sidebar-label,:lang(zh) .edition,:lang(zh) .stat-card strong,:lang(zh) .sidebar-note p{letter-spacing:0}
[dir=rtl] .icon-arrow-right{transform:scaleX(-1)}[dir=rtl] .sidebar-garden{transform:scaleX(-1)}
/* Translated labels vary in length: let the category filter size to its content and shrink the search box instead. */
.category-field,.category-field select{max-width:none!important;width:auto}.category-field{flex:0 1 auto;min-width:0}.category-field select{max-width:100%!important}
@media(max-width:700px){.topbar{gap:8px}.language-field{margin-inline-start:auto;flex-shrink:0}.language-field select{font-size:16px;min-height:36px;padding-block:4px;max-width:none}.top-date{display:none}.breadcrumb{overflow:hidden}}
/* Narrow phones (≈320–420px): stack nav icon over label so translated labels (e.g. "Completadas") fit without horizontal scroll. */
@media(max-width:420px){.nav-list{gap:4px}.nav-item{flex-direction:column;gap:3px;padding:8px 4px 9px;min-width:0;white-space:normal;text-align:center;line-height:1.25;font-size:12px;overflow-wrap:anywhere}.nav-item svg{width:16px;height:16px}.page-heading{flex-wrap:wrap}.page-heading>.button{white-space:normal;text-align:start}}
/* Accounts (M1): header account menu, sign-in / sign-up cards, settings. Mobile first, logical properties only. */
body[data-view=account] main>:not(#account-view):not(.page-footer){display:none!important}
.account-view{display:block;padding-block:4px 12px}
.auth-card{background:var(--surface-card);border:1px solid var(--border-subtle);border-radius:14px;padding:24px 20px;max-width:440px;margin-inline:auto;box-shadow:0 10px 40px color-mix(in srgb,var(--shadow) 6%,transparent)}
.auth-heading{margin-bottom:20px}.auth-heading h1{font-size:26px;letter-spacing:-1px;line-height:1.3;margin:0 0 6px}.auth-heading h1:focus{outline:none}.auth-heading p{font-size:13px;line-height:1.6;color:var(--text-muted)}
.auth-symbol{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--accent-tint);color:var(--link);margin-bottom:14px}.auth-symbol svg{width:22px;height:22px}
.button-block{width:100%;white-space:normal;text-align:center}
.button-google{background:var(--surface-card);border-color:var(--border-control);color:var(--text);font-size:13px;min-height:46px;text-decoration:none}.button-google:hover{background:var(--surface-hover)}.google-mark{width:18px;height:18px}.google-mark path{stroke:none}
.auth-divider{display:flex;align-items:center;gap:12px;margin-block:18px;color:var(--text-muted);font-size:12px}.auth-divider::before,.auth-divider::after{content:'';flex:1;border-block-start:1px solid var(--border-subtle)}
.auth-card fieldset,.settings-card fieldset,.account-dialog fieldset{border:0;margin:0;padding:0;min-width:0}
.auth-field>label{display:block;margin-bottom:8px}.auth-field>input,.input-wrap>input{display:block;width:100%;border:1px solid var(--border-control);background:var(--surface-card);border-radius:7px;padding:11px;color:var(--text);font-size:16px;font-weight:400;min-height:44px}
.auth-field>input[aria-invalid=true],.input-wrap>input[aria-invalid=true]{border-color:var(--danger);background:var(--danger-tint)}
.input-wrap{position:relative}.input-wrap>input{padding-inline-end:48px}
.password-toggle{position:absolute;inset-block:0;inset-inline-end:0;width:46px;display:grid;place-items:center;border:0;background:transparent;color:var(--text-muted);border-radius:0 7px 7px 0}.password-toggle:hover{color:var(--link)}[dir=rtl] .password-toggle{border-radius:7px 0 0 7px}
.field-error{display:flex;gap:6px;align-items:flex-start;margin-top:7px;color:var(--danger);font-size:12px;font-weight:500;line-height:1.5}.field-error svg{width:15px;height:15px;margin-top:1px}
.password-rules{margin:-6px 0 17px;font-size:12px;color:var(--text-muted)}.password-rules ul{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:4px}.password-rules li{display:flex;gap:7px;align-items:center}.password-rules li svg{width:15px;height:15px;color:var(--text-muted)}.password-rules li[data-ok=true]{color:var(--success)}.password-rules li[data-ok=true] svg{color:var(--success)}
.auth-row-end{display:flex;justify-content:flex-end;margin:-6px 0 16px}
.text-link{color:var(--link);font-weight:600;text-decoration:underline;text-underline-offset:3px}.text-link:hover{color:var(--link)}
.text-button{border:0;background:transparent;padding:4px 0;color:inherit;font-weight:650;text-decoration:underline;min-height:32px}
.auth-error{display:flex;gap:8px;align-items:flex-start;margin-bottom:14px;flex-wrap:wrap;font-size:12px;color:var(--danger)}.auth-error svg{width:16px;height:16px;margin-top:2px}.auth-error>span{flex:1;min-width:12rem}.auth-error:focus{outline:2px solid var(--danger)}
.auth-notice{display:flex;gap:8px;align-items:flex-start;background:var(--accent-tint);color:var(--link);border-radius:8px;padding:11px 12px;font-size:12px;line-height:1.6;margin-bottom:16px}.auth-notice.is-warning{background:var(--warning-tint);color:var(--warning)}.auth-notice svg{width:16px;height:16px;margin-top:2px}
.auth-switch{margin-top:18px;text-align:center;font-size:13px;color:var(--text-muted);line-height:1.8}
.auth-privacy{margin-block:14px;font-size:13px;line-height:1.55}.auth-privacy summary{cursor:pointer;color:var(--text-muted);font-weight:600}.auth-privacy p{margin-block:8px 0}
.auth-footnote{display:flex;gap:8px;align-items:flex-start;margin-top:18px;padding-top:16px;border-block-start:1px solid var(--border-subtle);font-size:12px;line-height:1.6;color:var(--text-muted)}.auth-footnote svg{width:15px;height:15px;margin-top:2px}
.auth-lead{font-size:14px;line-height:1.7;margin-bottom:10px;overflow-wrap:anywhere}.auth-muted{font-size:12px;line-height:1.7;color:var(--text-muted);margin-bottom:16px}
.auth-loading{display:flex;flex-direction:column;align-items:center;gap:16px;padding-block:28px;text-align:center}.auth-loading h1{font-size:18px;letter-spacing:-.3px}.auth-loading h1:focus{outline:none}
.spinner{width:16px;height:16px;border-radius:50%;border:2px solid currentColor;border-inline-end-color:transparent;display:inline-block;animation:spin .8s linear infinite;flex-shrink:0}.spinner.is-large{width:32px;height:32px;border-width:3px;color:var(--link)}@keyframes spin{to{transform:rotate(360deg)}}
.button[aria-busy=true]{opacity:.85}
/* Settings */
.settings{max-width:640px;margin-inline:auto}.settings .auth-heading{margin-bottom:18px}
.settings-card{background:var(--surface-card);border:1px solid var(--border-subtle);border-radius:12px;padding:20px;margin-bottom:14px}.settings-card h2{margin-bottom:14px}.settings-card.is-danger{border-color:color-mix(in srgb,var(--danger) 30%,var(--surface-card))}
.settings-label{display:block;font-size:11px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.8px;margin-bottom:5px}:lang(zh) .settings-label{letter-spacing:0}
.settings-email{margin-bottom:16px;display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px}.settings-email .settings-label{flex-basis:100%;margin:0}.settings-value{font-size:14px;overflow-wrap:anywhere;min-width:0}
.verified-badge{display:inline-flex;align-items:center;gap:4px;font-size:11px;color:var(--success);background:var(--success-tint);border-radius:5px;padding:3px 7px}.verified-badge svg{width:13px;height:13px}
.settings-methods{margin-top:18px}.settings-methods ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}.settings-methods li{display:inline-flex;align-items:center;gap:6px;font-size:12px;background:var(--surface-sunken);border-radius:6px;padding:6px 9px}.settings-methods li svg{width:14px;height:14px}
.settings-card .form-field>select{display:block;width:100%;margin-top:8px;border:1px solid var(--border-control);background:var(--surface-card);border-radius:7px;padding:10px;font-size:16px;min-height:44px;color:var(--text)}
.settings-card form .button,.settings-card>.button{width:auto}.settings-actions{display:flex;flex-wrap:wrap;gap:10px}.settings-actions .button,.settings-card>.button{white-space:normal}
/* Header account menu */
.account-menu{position:relative;flex-shrink:0;display:flex;align-items:center}.account-placeholder{display:block;width:36px;height:36px}
.account-signin{min-height:36px;padding:7px 12px;font-size:12px;text-decoration:none;gap:6px}.account-signin svg{width:16px;height:16px}
.account-button{display:flex;align-items:center;gap:8px;border:1px solid var(--border-control);background:var(--surface-card);border-radius:999px;padding-block:3px;padding-inline:3px 12px;min-height:38px;max-width:14rem}.account-button:hover{background:var(--surface-hover)}
.account-initial{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--accent);color:var(--on-accent);font-weight:650;font-size:13px;flex-shrink:0}
.account-name{font-size:12px;font-weight:550;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.account-popover{position:absolute;inset-block-start:calc(100% + 8px);inset-inline-end:0;z-index:30;background:var(--surface-card);border:1px solid var(--border-subtle);border-radius:12px;box-shadow:0 14px 40px color-mix(in srgb,var(--shadow) 13%,transparent);padding:8px;min-width:230px;max-width:min(300px,calc(100vw - 24px))}
.account-who{padding:8px 10px 10px;border-block-end:1px solid var(--border-subtle);margin-bottom:6px;display:grid;gap:2px}.account-who strong{font-size:13px;overflow-wrap:anywhere}.account-email{font-size:12px;color:var(--text-muted);overflow-wrap:anywhere}
.account-menu-item{display:flex;align-items:center;gap:10px;width:100%;border:0;background:transparent;text-align:start;padding:10px;border-radius:8px;font-size:13px;color:var(--text);text-decoration:none;min-height:44px}.account-menu-item:hover,.account-menu-item:focus-visible{background:var(--surface-hover)}.account-menu-item svg{width:17px;height:17px;color:var(--link)}
[dir=rtl] .icon-log-out{transform:scaleX(-1)}
/* Account dialog (sign out everywhere, delete) reuses the task-delete look. */
.account-dialog{padding:24px;max-width:420px}.account-dialog h2{font-size:21px}.account-dialog p{margin-block:10px 16px;font-size:13px;line-height:1.7;color:var(--text-muted)}.account-dialog .dialog-footer{flex-wrap:wrap}.account-dialog .dialog-footer .button{white-space:normal}
@media(min-width:701px){.auth-card{padding:34px 36px;margin-block-start:8px}.auth-field>input,.input-wrap>input,.settings-card .form-field>select{font-size:13px}.settings-card{padding:24px 26px}}
@media(max-width:700px){.account-name{display:none}.account-button{padding-inline:3px;border-radius:50%}.account-signin span{white-space:nowrap}.settings-card form .button,.settings-card>.button,.settings-actions .button{width:100%}}
@media(max-width:365px){.auth-card{padding:20px 14px}.account-signin{padding-inline:8px}.account-signin svg{display:none}.auth-heading h1{font-size:23px}}
.account-button.is-current{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent) inset}.account-menu-item[aria-current=page]{background:var(--highlight);color:var(--on-highlight)}
a.button{text-decoration:none}
/* M2 onboarding, "Your lawn" settings and the planner weather card. Mobile first, logical properties only. */
body[data-view=onboarding] main>:not(#onboarding-view):not(.page-footer){display:none!important}
.onboarding-card{max-width:560px}.onboarding-card fieldset{border:0;margin:0;padding:0;min-width:0}
.onboarding-progress{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.step-count{font-size:12px;font-weight:600;color:var(--text-muted)}
.progress-dots{list-style:none;display:flex;gap:6px;margin:0;padding:0}.progress-dots li{width:28px;height:6px;border-radius:3px;background:var(--border-subtle)}.progress-dots li.is-done{background:var(--link)}.progress-dots li.is-current{background:var(--accent)}
.onboarding-card .auth-heading h1:focus{outline:none}
.onboarding-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:20px}.onboarding-actions .button{min-width:7.5rem}.onboarding-actions .button-primary{margin-inline-start:auto}
.onboarding-skip{margin-top:14px;text-align:center;font-size:13px;color:var(--text-muted)}
.zip-row{display:flex;gap:8px}.zip-row>input{flex:1;min-width:0;width:100%;border:1px solid var(--border-control);background:var(--surface-card);border-radius:7px;padding:11px;color:var(--text);font-size:16px;font-weight:400;min-height:44px;letter-spacing:1px}.zip-row>input[aria-invalid=true]{border-color:var(--danger);background:var(--danger-tint)}.zip-row>.button{flex-shrink:0}
.zip-result{margin-block:-4px 16px}.zip-result:empty{display:none}
.lookup-status{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--text-muted);padding-block:6px}
.place-summary{display:flex;align-items:flex-start;gap:8px;background:var(--accent-tint);border-radius:9px;padding:11px 12px;font-size:13px;line-height:1.5;color:var(--link);margin-top:10px}.place-summary svg{width:17px;height:17px;margin-top:1px;color:var(--link)}
.source-note{display:flex;gap:6px;align-items:flex-start;font-size:11.5px;line-height:1.6;color:var(--text-muted);margin-top:8px}.source-note svg{width:14px;height:14px;margin-top:2px}.source-note a{color:var(--link);text-underline-offset:2px;overflow-wrap:anywhere}
.county-choice{border:0;margin:6px 0 0;padding:0;min-width:0}.county-choice legend{font-size:13px;font-weight:600;line-height:1.5;margin-bottom:8px;padding:0}
.choice-list,.county-choice{display:grid;gap:8px}.choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.choice-row,.choice-tile{display:flex;align-items:flex-start;gap:10px;border:1px solid var(--border-control);background:var(--surface-card);border-radius:10px;padding:12px;cursor:pointer;min-height:48px;transition:border-color .15s,background .15s}
.choice-tile{min-width:0}.choice-tile.is-wide{grid-column:1/-1}
.choice-row:has(input:checked),.choice-tile:has(input:checked){border-color:var(--accent);background:var(--accent-tint);box-shadow:inset 0 0 0 1px var(--accent)}
.choice-row:has(input:focus-visible),.choice-tile:has(input:focus-visible){outline:2px solid var(--focus-ring);outline-offset:2px}
.choice-row input,.choice-tile input{margin:2px 0 0;width:18px;height:18px;accent-color:var(--accent);flex-shrink:0}
.choice-text{display:flex;flex-direction:column;gap:3px;min-width:0}.choice-text strong{font-size:13px;font-weight:650;line-height:1.35;overflow-wrap:anywhere}.choice-text span{font-size:11.5px;line-height:1.45;color:var(--text-muted)}
.rules-link{margin-block:4px 14px;font-size:13px}.rules-link a{display:inline-flex;align-items:center;gap:6px}.rules-link svg{width:15px;height:15px}
#settings-lawn-slot .form-field>select{display:block;width:100%;margin-top:8px}
/* Planner weather card */
.lawn-home{margin-bottom:24px}.lawn-home:empty{display:none}
.weather-card,.weather-prompt{background:var(--surface-card);border:1px solid var(--border-subtle);border-radius:12px;padding:16px}
.weather-prompt{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.weather-prompt>svg{width:22px;height:22px;color:var(--link)}.weather-prompt p{flex:1;min-width:12rem;font-size:13px;line-height:1.5;color:var(--text-muted)}.weather-prompt .button{margin:0}
.weather-head{display:flex;align-items:baseline;justify-content:space-between;gap:4px 12px;flex-wrap:wrap;margin-bottom:12px}.weather-head h2{font-size:15px}.weather-updated{font-size:11.5px;color:var(--text-muted)}
.weather-main{display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center}
.weather-now{display:flex;align-items:center;gap:12px}.weather-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:12px;background:var(--accent-tint);color:var(--link)}.weather-icon svg{width:26px;height:26px}
.weather-now>div{display:flex;flex-direction:column;gap:2px;min-width:0}.weather-temp{font-family:'Manrope',var(--font);font-size:30px;font-weight:700;letter-spacing:-1px;line-height:1.1}.weather-desc{font-size:12.5px;color:var(--text-muted);overflow-wrap:anywhere}
.weather-side{display:flex;flex-direction:column;gap:6px;font-size:12.5px;color:var(--text-muted);min-width:0;flex:1 1 12rem}.weather-rain{display:flex;gap:6px;align-items:flex-start;line-height:1.5}.weather-rain svg{width:15px;height:15px;margin-top:2px;color:var(--info)}
.weather-hint,.weather-stale,.weather-alert{display:flex;gap:8px;align-items:flex-start;border-radius:8px;padding:10px 12px;font-size:12.5px;line-height:1.5;margin-top:12px}.weather-hint svg,.weather-stale svg,.weather-alert svg{width:16px;height:16px;margin-top:1px;flex-shrink:0}
.weather-hint{background:var(--info-tint);color:var(--info)}.weather-stale{background:var(--warning-tint);color:var(--warning);margin-top:0;margin-bottom:12px}.weather-alert{background:var(--danger-tint);color:var(--danger);margin-top:0;margin-bottom:12px}
.weather-card.is-unavailable .button{margin:0 0 4px}
.weather-days{list-style:none;margin:14px 0 0;padding:0 0 4px;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(58px,1fr);gap:6px;overflow-x:auto;scroll-snap-type:inline mandatory;overscroll-behavior-inline:contain}
.weather-day{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 4px;border-radius:9px;background:var(--accent-tint);font-size:11.5px;scroll-snap-align:start;text-align:center;min-width:0}.weather-day svg{width:20px;height:20px;color:var(--link)}.day-name{font-weight:650;color:var(--text-muted);white-space:nowrap}.day-temps{display:flex;flex-direction:column;align-items:center;gap:1px;white-space:nowrap}.day-temps span{color:var(--text-muted)}.day-rain{color:var(--info);font-weight:600}
.weather-meta{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px 14px;margin-top:12px;padding-top:10px;border-block-start:1px solid var(--border-subtle);font-size:12px;color:var(--text-muted)}
.weather-footer{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;min-width:0}.weather-place{display:inline-flex;align-items:center;gap:5px;min-width:0}.weather-place svg{width:14px;height:14px}.weather-footer .rules-link{margin:0;font-size:12px}
.weather-credit{color:var(--link);text-underline-offset:2px}
.weather-card.is-loading{display:grid;gap:10px}.skeleton{height:14px;border-radius:6px;background:linear-gradient(90deg,var(--surface-sunken),var(--surface-hover),var(--surface-sunken));background-size:200% 100%;animation:shimmer 1.4s linear infinite}.skeleton-lg{height:34px;width:45%}.skeleton-strip{height:64px}
@keyframes shimmer{to{background-position:-200% 0}}
@media(min-width:701px){.weather-card,.weather-prompt{padding:20px 22px}.choice-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.zip-row>input{font-size:13px}}
@media(max-width:365px){.choice-grid{grid-template-columns:minmax(0,1fr)}.onboarding-actions .button{min-width:0;padding-inline:12px}.weather-temp{font-size:26px}}
@media(prefers-reduced-motion:reduce){.skeleton{animation:none}}
.lawn-home{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}.weather-ago{color:var(--text-muted)}
.setup-prompt{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;background:var(--warning-tint);border:1px solid color-mix(in srgb,var(--warning) 35%,var(--surface-card));border-radius:12px;padding:14px 16px}.setup-prompt>svg{width:22px;height:22px;color:var(--warning);flex-shrink:0}.setup-prompt>div:first-of-type{flex:1;min-width:12rem}.setup-prompt h2{font-size:14px;margin-bottom:4px}.setup-prompt ul{list-style:none;margin:0;padding:0;font-size:12.5px;color:var(--text-muted);line-height:1.6}.setup-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px}.setup-actions .button{margin:0}.setup-actions .text-link{font-size:12.5px}

/* --- M5 chat (#/chat) ---------------------------------------------------------------------------- */
body[data-view=chat] main>:not(#chat-view){display:none!important}
body[data-view=chat] main{padding-block-end:0}
a.nav-item{text-decoration:none}
.chat-view{}
.chat-gate{max-width:520px;margin:0 auto}
.chat-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:24px;align-items:start}
.chat-sidebar{background:var(--surface-card);border:1px solid var(--border-subtle);border-radius:12px;padding:18px 14px;position:sticky;top:16px;max-height:calc(100vh - 32px);overflow-y:auto}
.chat-sidebar-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-block-end:12px;padding-inline:4px}
.chat-sidebar-head h2{font-size:14px}
.chat-sidebar .chat-new{min-height:36px;padding:7px 10px;font-size:11px}
.chat-list-items{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.chat-list-items li{display:flex;align-items:center;gap:4px;border-radius:8px}
.chat-list-items li.is-current{background:var(--accent-tint)}
.chat-list-link{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;padding:10px 8px;text-decoration:none;border-radius:8px;min-height:44px;justify-content:center}
.chat-list-link:hover{background:var(--surface-hover)}
.chat-list-label{font-size:12px;font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-list-link time{font-size:11px;color:var(--text-muted)}
.chat-list-delete{width:36px;height:36px;border-color:transparent;background:transparent;flex-shrink:0}
.chat-list-delete:hover{color:var(--danger);background:var(--danger-tint)}
.chat-list-empty{font-size:12px;color:var(--text-muted);line-height:1.6;padding:8px 4px;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.chat-list-loading{display:grid;gap:8px}.chat-list-loading .skeleton{height:40px}
.chat-list-more{margin:10px 4px 0}
.chat-main{min-width:0;display:flex;flex-direction:column;min-height:calc(100vh - 86px - 41px)}
.chat-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-block-end:14px}
.chat-head h1{font-size:28px;margin:0 0 6px;outline:none}
.chat-head-text{min-width:0}
.chat-head-actions{display:flex;gap:8px;flex-wrap:wrap}
.chat-head .chat-new{display:none}
.chat-list-toggle{display:none}
.chat-context-chip{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--text-muted);background:var(--surface-card);border:1px solid var(--border-subtle);border-radius:999px;padding:5px 11px;max-width:100%}
.chat-context-chip:empty{display:none}
.chat-context-chip svg{width:14px;height:14px}
.chat-banner{display:flex;gap:12px;align-items:flex-start;background:var(--warning-tint);border:1px solid color-mix(in srgb,var(--warning) 35%,var(--surface-card));color:var(--warning);border-radius:10px;padding:14px 16px;margin-block-end:14px;flex-wrap:wrap;font-size:13px;line-height:1.5}
.chat-banner>div:first-of-type{flex:1;min-width:180px}
.chat-banner p{margin-block-start:2px}
.chat-banner-actions{display:flex;gap:8px;flex-wrap:wrap}
.chat-banner .button{min-height:40px;padding:8px 12px}
.chat-banner.is-offline{background:var(--info-tint);border-color:color-mix(in srgb,var(--info) 25%,var(--surface-card));color:var(--info)}
.chat-log{flex:1;display:flex;flex-direction:column;gap:16px;padding-block:8px 16px}
.chat-log-state{display:flex;flex-direction:column;align-items:center;gap:12px;padding:48px 16px;text-align:center;color:var(--text-muted);font-size:13px}
.chat-log-state svg{width:28px;height:28px}
.chat-empty{display:flex;flex-direction:column;align-items:center;text-align:center;padding:28px 8px;gap:10px}
.chat-empty h2{font-size:18px}
.chat-empty>p{font-size:13px;color:var(--text-muted);line-height:1.6;max-width:440px}
.chat-examples{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:8px;width:100%;max-width:460px}
.chat-example{width:100%;display:flex;align-items:center;gap:10px;text-align:start;background:var(--surface-card);border:1px solid var(--border-subtle);border-radius:10px;padding:12px 14px;min-height:48px;font-size:13px;color:var(--text)}
.chat-example:hover{background:var(--surface-hover);border-color:var(--border-control)}
.chat-example svg{width:16px;height:16px;color:var(--link)}
.chat-msg{display:flex;flex-direction:column;gap:6px;max-width:min(760px,100%)}
.chat-msg.is-user{align-self:flex-end;max-width:min(560px,88%)}
.chat-msg.is-user .chat-bubble{background:var(--accent);color:var(--on-accent);border-radius:14px 14px 4px 14px;padding:11px 14px;font-size:14px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.chat-msg.is-assistant{align-self:flex-start;width:100%}
.chat-msg-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;font-weight:600;color:var(--text-muted)}
.chat-avatar{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--highlight);color:var(--on-highlight)}
.chat-avatar svg,.chat-ico svg{width:15px;height:15px}
.chat-ico{display:inline-flex}
.chat-badge{font-size:11px;font-weight:600;border-radius:999px;padding:3px 8px;background:var(--accent-tint);color:var(--link)}
.chat-badge.is-stopped{background:var(--info-tint);color:var(--info)}
.chat-bubble{background:var(--surface-card);border:1px solid var(--border-subtle);border-radius:4px 14px 14px 14px;padding:14px 16px;font-size:14px;line-height:1.65;overflow-wrap:anywhere;min-width:0}
.chat-msg.is-abstain .chat-bubble{background:var(--warning-tint);border-style:dashed;border-color:color-mix(in srgb,var(--warning) 35%,var(--surface-card))}
.chat-msg.is-error .chat-bubble{border-color:color-mix(in srgb,var(--danger) 30%,var(--surface-card))}
.chat-answer p+p,.chat-answer p+ul,.chat-answer p+ol,.chat-answer ul+p,.chat-answer ol+p{margin-block-start:10px}
.chat-answer ul,.chat-answer ol{margin:6px 0 0;padding-inline-start:22px}
.chat-answer li+li{margin-block-start:4px}
.chat-answer strong{font-weight:650}
.chat-caret{display:inline-block;width:7px;height:15px;background:var(--link);margin-inline-start:2px;vertical-align:text-bottom;animation:chat-blink 1s steps(2,start) infinite}
@keyframes chat-blink{to{visibility:hidden}}
.cite-ref{border:0;background:var(--accent-tint);color:var(--link);font-size:11px;font-weight:650;border-radius:4px;padding:0 3px;margin-inline:1px;vertical-align:super;line-height:1.2;min-width:24px;min-height:20px;text-decoration:underline;text-underline-offset:2px}
.cite-ref:hover{background:var(--accent-tint)}
.chat-thinking{display:flex;align-items:center;gap:10px;color:var(--text-muted);font-size:13px;flex-wrap:wrap}
.chat-position{font-size:11px;background:var(--surface-sunken);border-radius:999px;padding:2px 8px}
.chat-dots{display:inline-flex;gap:4px}
.chat-dots i{width:6px;height:6px;border-radius:50%;background:var(--link);animation:chat-dot 1.2s infinite ease-in-out}
.chat-dots i:nth-child(2){animation-delay:.15s}.chat-dots i:nth-child(3){animation-delay:.3s}
@keyframes chat-dot{0%,80%,100%{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
.chat-slow{display:flex;gap:8px;align-items:flex-start;margin-block-start:10px;font-size:12px;color:var(--warning);background:var(--warning-tint);border-radius:8px;padding:8px 10px}
.chat-slow svg{width:15px;height:15px;margin-block-start:2px}
.chat-muted{color:var(--text-muted);font-size:13px}
.chat-error{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-block-start:10px;font-size:13px;color:var(--danger)}
.chat-error>span:not(.chat-ico){flex:1;min-width:160px}
.chat-error svg{width:16px;height:16px}
.chat-retry{min-height:40px;padding:8px 12px}
.chat-abstain-hint{display:flex;gap:8px;align-items:flex-start;margin-block-start:12px;font-size:13px}
.chat-abstain-hint svg{width:15px;height:15px;margin-block-start:3px;color:var(--link)}
.chat-context{display:flex;gap:6px;align-items:flex-start;margin-block-start:12px;font-size:11px;color:var(--text-muted);line-height:1.5}
.chat-context svg{width:13px;height:13px;margin-block-start:2px}
.chat-sources{margin-block-start:14px;border-block-start:1px solid var(--border-subtle);padding-block-start:12px}
.chat-sources h3{font-size:12px;font-weight:650;margin-block-end:8px;color:var(--text-muted)}
.chat-sources ol{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.chat-sources li{display:flex;gap:8px;align-items:flex-start;font-size:12px;line-height:1.5;border-radius:8px;padding:6px;margin:-6px;outline:none}
.chat-sources li:focus-visible{outline:2px solid var(--focus-ring)}
.chat-sources li.is-flash{animation:chat-flash 1.6s ease-out}
@keyframes chat-flash{from{background:var(--accent-tint)}to{background:transparent}}
.chat-source-n{font-weight:650;color:var(--link);flex-shrink:0;min-width:24px}
.chat-source-body{display:flex;flex-direction:column;gap:2px;min-width:0}
.chat-source-title{font-weight:600;color:var(--link);overflow-wrap:anywhere}
a.chat-source-title{text-underline-offset:2px}
.chat-source-title .chat-ico svg{width:12px;height:12px;margin-inline-start:4px;vertical-align:-1px}
.chat-source-heading{color:var(--text-muted)}
.chat-source-meta{display:flex;flex-wrap:wrap;gap:4px 10px;color:var(--text-muted);font-size:11px}
.chat-source-tag{background:var(--info-tint);color:var(--info);border-radius:4px;padding:0 6px}
.chat-source-tag.is-stale{background:var(--warning-tint);color:var(--warning)}
.chat-source-note{font-size:11px;color:var(--text-muted)}
.chat-excerpt blockquote{margin:6px 0 0;padding:8px 10px;border-inline-start:3px solid var(--border-control);background:var(--accent-tint);font-size:12px;white-space:pre-wrap;color:var(--text-muted)}
.chat-sources .text-button{font-size:11px;padding:4px 0;min-height:28px}
.chat-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.chat-thumb{width:40px;height:40px}
.chat-thumb.is-on{background:var(--accent-tint);color:var(--link);border-color:var(--accent)}
.chat-add-task{min-height:40px;padding:8px 12px}
.chat-composer{position:sticky;bottom:0;background:linear-gradient(to bottom,transparent,var(--surface-page) 14px);padding-block:14px 14px;margin-block-start:auto;z-index:2}
.composer-box{display:flex;align-items:flex-end;gap:8px;background:var(--surface-card);border:1px solid var(--border-control);border-radius:12px;padding:6px;box-shadow:0 4px 14px color-mix(in srgb,var(--shadow) 6%,transparent)}
.composer-box:focus-within{border-color:var(--focus-ring);box-shadow:0 0 0 3px color-mix(in srgb,var(--focus-ring) 35%,transparent)}
.composer-box textarea{flex:1;min-width:0;border:0;resize:none;padding:10px 8px;font-size:15px;line-height:1.5;min-height:44px;max-height:40vh;background:transparent;color:var(--text);outline:none}
.composer-box .button{min-height:44px;flex-shrink:0}
.composer-attach{width:44px;height:44px}
.composer-meta{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:var(--text-muted);padding:6px 4px 0}
.composer-counter{white-space:nowrap;font-variant-numeric:tabular-nums}
.composer-counter[data-level=warn]{color:var(--warning)}
.composer-counter[data-level=over]{color:var(--danger);font-weight:650}
.composer-error{margin:6px 4px 0}
.chat-dialog{max-width:min(520px,calc(100vw - 24px))}
.chat-task-form fieldset{border:0;padding:0;margin:0;min-width:0}
.chat-task-form .form-field{display:flex;flex-direction:column;gap:6px;margin-block-end:14px}
.chat-task-from{display:flex;gap:6px;align-items:center;font-size:11px;color:var(--text-muted);margin-block-end:10px}
.chat-task-from svg{width:14px;height:14px}
@media(max-width:900px){
  .chat-layout{grid-template-columns:minmax(0,1fr)}
  .chat-sidebar{display:none;position:static;max-height:none;order:-1}
  .chat-sidebar.is-open{display:block}
  .chat-list-toggle{display:inline-flex}
  .chat-head .chat-new{display:inline-flex}
  .chat-sidebar-head .chat-new{display:none}
  .chat-main{min-height:calc(100vh - 160px)}
}
@media(max-width:700px){
  .chat-head h1{font-size:23px}
  .chat-head-actions .button{min-height:40px;padding:8px 10px;font-size:12px}
  .composer-box textarea{font-size:16px}
  .chat-bubble{padding:12px 13px}
}
@media(max-width:420px){
  .nav-list{gap:4px}
  .nav-item{flex-direction:column;gap:3px;padding:8px 4px;font-size:12px;white-space:normal;text-align:center;line-height:1.25;min-width:0}
  .chat-send span{display:none}
  .chat-send{padding-inline:12px}
  #chat-composer-help{display:none}
  .composer-meta{justify-content:flex-end}
}
@media(prefers-reduced-motion:reduce){.chat-dots i,.chat-caret,.chat-sources li.is-flash{animation:none}}
.chat-msg.is-user.is-failed .chat-bubble{background:var(--surface-sunken);color:var(--text)}
.chat-failed-note{display:flex;gap:6px;align-items:center;font-size:12px;color:var(--text-muted)}
.chat-failed-note svg{width:14px;height:14px}
/* M3 planner sync: status line, import offer, pending rows, history panel */
.sync-status{display:flex;align-items:center;gap:8px;font-size:12px;line-height:1.5;color:var(--text-muted);margin-block-end:14px}.sync-status svg{width:15px;height:15px;flex-shrink:0}.sync-status .spinner{width:12px;height:12px}.sync-status[data-sync=offline],.sync-status[data-sync=error]{border:1px solid color-mix(in srgb,var(--warning) 35%,var(--surface-card));background:var(--warning-tint);color:var(--warning);border-radius:8px;padding:10px 12px}
.status-dot.is-offline,.status-dot.is-error{background:color-mix(in srgb,var(--warning) 50%,var(--on-sidebar))}.status-dot.is-busy{background:var(--on-sidebar)}
.import-prompt{background:var(--surface-card);border:1px solid var(--border-subtle);border-inline-start:4px solid var(--accent);border-radius:12px;padding:16px 18px;margin-block-end:22px}.import-prompt[data-import=corrupt]{border-color:color-mix(in srgb,var(--warning) 35%,var(--surface-card));border-inline-start-color:var(--warning)}.import-head{display:flex;align-items:flex-start;gap:10px}.import-head svg{width:20px;height:20px;flex-shrink:0;color:var(--link);margin-block-start:2px}.import-head h2{font-size:15px;line-height:1.45;overflow-wrap:anywhere}.import-head h2:focus{outline:none}.import-prompt p{font-size:12px;line-height:1.7;color:var(--text-muted);margin-block-start:8px}.import-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin-block-start:14px}.import-actions .button{min-height:40px}.import-prompt .form-error{display:flex;gap:8px;align-items:flex-start;margin-block-start:10px}.import-prompt .form-error svg{width:15px;height:15px;flex-shrink:0;margin-block-start:3px}.import-errors{list-style:none;margin-block-start:8px;display:grid;gap:5px;font-size:12px;color:var(--danger)}.import-errors li{display:flex;gap:6px;align-items:flex-start;overflow-wrap:anywhere}.import-errors svg{width:13px;height:13px;flex-shrink:0;margin-block-start:3px}.import-reason{color:var(--text-muted)}
.task-row.is-pending{background:var(--surface-card)}.task-row.is-pending .task-check{opacity:.6;cursor:progress}.saving-label{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:var(--link)}.saving-label .spinner{width:10px;height:10px;border-width:1.5px}.task-actions .icon-button:disabled{opacity:.4;cursor:not-allowed}
.task-skeleton{display:grid;gap:14px;padding:24px 25px}.task-skeleton .skeleton{height:44px}
.history-mode .library-panel{display:none}.history-panel{background:var(--surface-card);border:1px solid var(--border-subtle);border-radius:12px;overflow:hidden}.history-panel .section-heading{padding:22px 20px 10px}.history-tools{padding:0 20px 12px}.history-tools .category-field{max-width:none}.history-body{padding:4px 20px 18px;display:grid;gap:12px}.history-empty{justify-items:center;text-align:center;padding-block:24px;color:var(--text-muted);font-size:12px;line-height:1.7}.history-empty svg{width:26px;height:26px;color:var(--link)}.history-sub{font-size:11px;text-transform:uppercase;letter-spacing:1px;color:var(--text-muted);font-weight:650}.history-last{list-style:none;display:grid;gap:6px}.history-last li{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:var(--text-muted)}.history-days{list-style:none;display:grid;gap:14px}.history-day h3{font-size:12px;font-weight:650;color:var(--text-muted);padding-block-end:6px;border-block-end:1px solid var(--border-subtle)}.history-day ul{list-style:none;display:grid;gap:8px;margin-block-start:8px}.history-event{display:flex;gap:8px;align-items:flex-start}.history-event svg{width:15px;height:15px;flex-shrink:0;color:var(--link);margin-block-start:2px}.history-event[data-event-type=reopened] svg{color:var(--warning)}.history-event>div{min-width:0;display:grid;gap:2px}.history-title{font-size:12px;font-weight:550;overflow-wrap:anywhere}.history-meta{font-size:11px;color:var(--text-muted)}.history-more{justify-self:start}
@media(max-width:700px){.import-actions .button{flex:1 1 auto}.sync-status{font-size:12px}.history-panel .section-heading{padding-inline:18px}.history-tools,.history-body{padding-inline:18px}.history-meta{font-size:12px}.history-title{font-size:13px}}
.history-last,.history-days,.history-day ul,.import-errors{padding-inline-start:0;margin-inline:0}
.import-remove{margin-block-start:12px;padding-block-start:12px;border-block-start:1px solid var(--border-subtle)}.import-remove p{margin-block:0 10px}.import-remove .button svg{width:15px;height:15px}.import-removed{display:flex;gap:8px;align-items:center;margin-block-start:10px;font-size:12px;color:var(--text-muted)}.import-removed svg{width:15px;height:15px;flex-shrink:0}.history-title[data-deleted]{font-style:italic;color:var(--text-muted)}
/* M5: chat-origin tag and source links on planner tasks (C6) */
.origin-label{display:inline-flex;align-items:center;gap:4px;font-size:11px;color:var(--link);background:var(--accent-tint);border-radius:4px;padding:3px 6px}
.origin-label svg{width:11px;height:11px}
/* Plan 014: sources are one tap away. One closed disclosure button, shared by task cards, suggestion cards,
   care-plan items and guide pages (chat has its own .chat-sources-toggle). */
.source-toggle{display:inline-flex;align-items:center;gap:6px;border:0;background:none;padding:6px 2px;min-height:32px;font:inherit;font-size:12px;font-weight:650;color:var(--text-muted);border-radius:6px;cursor:pointer;text-align:start}
.source-toggle:hover{color:var(--link);text-decoration:underline;text-underline-offset:2px}
.source-toggle:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}
.source-toggle svg{width:14px;height:14px;flex-shrink:0;transition:transform .15s}
.source-toggle[aria-expanded=false] svg{transform:rotate(-90deg)}
[dir=rtl] .source-toggle[aria-expanded=false] svg{transform:rotate(90deg)}
@media(prefers-reduced-motion:reduce){.source-toggle svg{transition:none}}
.task-sources{font-size:11px;color:var(--text-muted);margin-block-start:4px;overflow-wrap:anywhere;line-height:1.6}
.task-sources-list{margin:0}
.task-sources-list[hidden]{display:none}
.task-sources a{color:var(--link);text-underline-offset:2px}
.task-sources summary{cursor:pointer;font-weight:650}
/* --- M6 photo identification: composer photos, photo cards, My photos, onboarding O2/O5 ----------- */
.photo-picker{margin-block-end:8px}
.photo-strip{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.photo-item{display:flex;align-items:center;gap:10px;background:var(--surface-card);border:1px solid var(--border-subtle);border-radius:10px;padding:6px;min-width:0}
.photo-item.is-error{border-color:color-mix(in srgb,var(--danger) 30%,var(--surface-card));background:var(--danger-tint)}
.photo-thumb{width:52px;height:52px;border-radius:7px;object-fit:cover;flex-shrink:0;background:var(--surface-sunken);display:block}
.photo-thumb.is-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:var(--text-muted)}
.photo-thumb.is-placeholder svg{width:18px;height:18px}
.photo-thumb-format{font-size:11px;font-weight:650;letter-spacing:.3px}
.photo-item-text,.photo-item-progress{flex:1;min-width:0;display:flex;align-items:center;gap:8px;font-size:12px;color:var(--text-muted);overflow-wrap:anywhere}
.photo-item-text svg{width:15px;height:15px;flex-shrink:0}
.photo-item-text.is-done{color:var(--success)}
.photo-item-text.is-error{color:var(--danger)}
.photo-item-text .spinner{width:12px;height:12px}
.photo-item-progress progress{flex:1;min-width:0;height:8px;accent-color:var(--accent)}
.photo-item-percent{font-variant-numeric:tabular-nums;min-width:3.2em;text-align:end}
.photo-item-action{width:44px;height:44px;flex-shrink:0}
.photo-privacy{display:flex;gap:6px;align-items:flex-start;font-size:11px;color:var(--text-muted);margin-block-start:6px;line-height:1.5}
.photo-privacy svg{width:13px;height:13px;margin-block-start:2px;flex-shrink:0}
.photo-notice{margin-block-start:6px}
.chat-composer.is-dragover .composer-box{border-color:var(--focus-ring);box-shadow:0 0 0 3px color-mix(in srgb,var(--focus-ring) 35%,transparent)}
.chat-msg.is-user{align-items:flex-end}
.chat-photos{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end;max-width:100%}
.chat-photos img{width:96px;height:96px;object-fit:cover;border-radius:10px;border:1px solid var(--border-subtle);background:var(--surface-sunken)}
.chat-photo-removed{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--text-muted);background:var(--surface-sunken);border-radius:8px;padding:6px 10px}
.chat-photo-removed svg{width:14px;height:14px}
.chat-photo-removed.is-note{margin-block-end:10px}
.photo-card{border:1px solid var(--border-subtle);background:var(--accent-tint);border-radius:10px;padding:12px 14px;margin-block-end:12px;display:grid;gap:10px;font-size:13px;line-height:1.55;min-width:0}
.photo-card.is-cant-tell{background:var(--warning-tint);border-color:color-mix(in srgb,var(--warning) 35%,var(--surface-card));border-style:dashed}
.photo-card-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.photo-card-head h3{font-size:13px;font-weight:650;color:var(--link);margin:0}
.photo-card-head svg{width:16px;height:16px;color:var(--text-muted)}
.photo-card-tag{font-size:11px;font-weight:600;color:var(--warning);background:var(--warning-tint);border-radius:999px;padding:2px 8px}
.photo-finding{display:grid;gap:4px;padding-block-start:10px;border-block-start:1px solid var(--border-subtle);min-width:0}
.photo-card-head+.photo-finding{border-block-start:0;padding-block-start:0}
.photo-kind{font-size:11px;font-weight:650;text-transform:uppercase;letter-spacing:.5px;color:var(--text-muted)}
.photo-headline{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:0}
.photo-name{font-weight:650;color:var(--text);overflow-wrap:anywhere}
.band-chip{font-size:11px;font-weight:650;border-radius:999px;padding:2px 8px;white-space:nowrap;border:1px solid transparent}
.band-chip[data-band=high]{background:var(--success-tint);color:var(--success);border-color:color-mix(in srgb,var(--success) 35%,var(--surface-card))}
.band-chip[data-band=medium]{background:var(--warning-tint);color:var(--warning);border-color:color-mix(in srgb,var(--warning) 35%,var(--surface-card))}
.band-chip[data-band=low]{background:var(--info-tint);color:var(--info);border-color:color-mix(in srgb,var(--info) 25%,var(--surface-card))}
.photo-also,.photo-compare{font-size:12px;color:var(--text-muted);margin:0}
.photo-evidence{background:var(--surface-card);border-inline-start:3px solid var(--border-control);border-radius:4px;padding:6px 10px}
.photo-evidence-label{font-size:11px;font-weight:650;color:var(--text-muted);margin:0}
.photo-evidence-text{font-size:12px;color:var(--text-muted);margin:2px 0 0;overflow-wrap:anywhere}
.photo-add-task,.photo-save-grass,.photo-retake,.photo-send-without{min-height:40px;padding:8px 12px;justify-self:start;max-width:100%}
.photo-add-task span,.photo-save-grass span,.photo-send-without span,.photo-retake span{white-space:normal;text-align:start}
.photo-save{display:grid;gap:6px;margin-block-start:4px}
.photo-saved{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--success);margin:0}
.photo-saved svg{width:15px;height:15px}
.photo-followup-row{display:grid;gap:4px;padding-block-start:10px;border-block-start:1px solid var(--border-subtle)}
.photo-followup-label{font-size:11px;color:var(--text-muted)}
.photo-followup{display:flex;align-items:center;gap:8px;text-align:start;background:var(--surface-card);border:1px solid var(--border-control);border-radius:999px;padding:8px 14px;min-height:40px;font-size:12px;color:var(--link);max-width:100%;justify-self:start}
.photo-followup:hover{background:var(--surface-hover)}
.photo-followup svg{width:14px;height:14px;flex-shrink:0}
.photo-followup span{overflow-wrap:anywhere}
.photo-card-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:11px;color:var(--text-muted);margin:0}
.photo-not-right{font-size:11px;min-height:32px;padding:4px 0}
.photo-not-right.is-on{font-weight:650;color:var(--danger)}
.photo-cant-body{margin:0}
.photo-tips{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.photo-tips li{display:flex;gap:8px;align-items:flex-start;font-size:12px}
.photo-tips svg{width:14px;height:14px;color:var(--link);margin-block-start:3px;flex-shrink:0}
.photo-card-actions{display:flex;gap:8px;flex-wrap:wrap}
/* My photos (account settings) */
.photo-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}
.photo-tile{position:relative;display:grid;gap:4px;min-width:0}
.photo-tile-view{padding:0;border:1px solid var(--border-subtle);border-radius:10px;overflow:hidden;background:var(--surface-sunken);aspect-ratio:1;display:block;width:100%}
.photo-tile-view img{width:100%;height:100%;object-fit:cover;display:block}
.photo-tile-meta{display:grid;font-size:11px;color:var(--text-muted);line-height:1.4;padding-inline-end:46px;overflow-wrap:anywhere}
.photo-tile-delete{position:absolute;inset-inline-end:0;inset-block-end:0;width:44px;height:44px}
.photo-grid-loading{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.photo-grid-loading .skeleton{height:auto;aspect-ratio:1}
.photo-empty{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--text-muted)}
.photo-empty svg{width:18px;height:18px}
.photo-more{margin-block-start:12px}
.photo-dialog{max-width:min(720px,calc(100vw - 24px));width:min(720px,calc(100% - 24px))}
.photo-dialog form,.photo-view{padding:22px}
.photo-view .dialog-heading{margin-bottom:14px}
.photo-view .dialog-heading h2{font-size:18px;letter-spacing:0;margin:0}
.photo-view-img{display:block;max-width:100%;max-height:65dvh;margin:0 auto 14px;border-radius:8px;object-fit:contain}
/* Onboarding: O2 reference photos and O5 identify with a photo */
.grass-photo{flex-shrink:0;width:56px;height:56px;border-radius:8px;overflow:hidden;background:repeating-linear-gradient(115deg,var(--surface-sunken) 0 6px,var(--accent-tint) 6px 12px);color:var(--text-muted);display:grid;place-items:center}
.grass-photo img{width:100%;height:100%;object-fit:cover;display:block}
.grass-photo svg{width:20px;height:20px}
.grass-credits{margin-block-start:10px;font-size:12px;color:var(--text-muted)}
.grass-credits summary{cursor:pointer;min-height:32px;display:inline-flex;align-items:center;color:var(--link);text-decoration:underline;text-underline-offset:2px}
.grass-credits ul{margin:6px 0 0;padding-inline-start:18px;display:grid;gap:4px;overflow-wrap:anywhere}
.ob-photo{margin-block-start:16px;padding:14px;border:1px solid var(--border-subtle);border-radius:10px;background:var(--surface-card)}
.ob-photo h2{font-size:14px;margin:0 0 8px}
.grass-identify{display:grid;gap:10px;justify-items:start;font-size:13px}
.grass-identify>*{max-width:100%}
.grass-identify-intro{margin:0;color:var(--text-muted);line-height:1.55}
.grass-identify-status{display:grid;gap:6px;width:100%}
.grass-identify-status progress{width:100%;height:8px;accent-color:var(--accent)}
.grass-identify .photo-card{margin:0;width:100%}
.grass-identify .button{max-width:100%}
.grass-identify .button span{white-space:normal;text-align:start}
@media(max-width:420px){
  .chat-photos img{width:76px;height:76px}
  .photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .grass-photo{width:44px;height:44px}
}
.photo-item-text.is-waiting{color:var(--text-muted)}
/* --- M7 "Suggested for you" (suggested-tasks.md §4) ------------------------------------------------ */
.suggest-panel{background:var(--surface-card);border:1px solid var(--border-subtle);border-inline-start:4px solid var(--accent);border-radius:12px;padding:14px 18px 16px;margin-block-end:22px;min-width:0}
.suggest-head{display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap}
.suggest-head h2{margin:0;font-size:16px;flex:1 1 auto;min-width:0}
.suggest-toggle{display:inline-flex;align-items:center;gap:8px;border:0;background:none;padding:6px 0;font:inherit;font-weight:650;color:var(--text);min-height:44px;text-align:start}
.suggest-toggle .suggest-ico svg{width:18px;height:18px;transition:transform .15s}
.suggest-toggle[aria-expanded=false] .suggest-ico svg{transform:rotate(-90deg)}
[dir=rtl] .suggest-toggle[aria-expanded=false] .suggest-ico svg{transform:rotate(90deg)}
.suggest-count{margin-inline-start:2px}
.suggest-chip{font-size:11px;font-weight:650;background:var(--info-tint);color:var(--info);border-radius:999px;padding:3px 9px}
.suggest-hidden-link{font-size:12px;min-height:32px;display:inline-flex;align-items:center}
.suggest-ico{display:inline-flex}.suggest-ico svg{width:15px;height:15px}
.suggest-body{display:grid;gap:10px;margin-block-start:6px}
.suggest-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.suggest-card{border:1px solid var(--border-subtle);border-radius:10px;padding:12px 14px;background:var(--surface-card);display:grid;gap:6px;min-width:0}
.suggest-card.is-busy{opacity:.75}
.suggest-card-head{display:flex;gap:6px;align-items:center}
.suggest-badge{font-size:11px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:var(--link);background:var(--accent-tint);border-radius:4px;padding:2px 7px}
.suggest-badge.is-caution{background:var(--warning-tint);color:var(--warning)}
.suggest-title{font-size:14px;font-weight:650;margin:0;color:var(--text);overflow-wrap:anywhere}
.suggest-because{font-size:12px;color:var(--text-muted);margin:0;overflow-wrap:anywhere}
.suggest-cautions{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.suggest-cautions li{display:flex;gap:6px;align-items:flex-start;font-size:12px;color:var(--warning)}
.suggest-cautions svg{margin-block-start:2px}
.suggest-links{font-size:12px;margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:2px 4px;overflow-wrap:anywhere}
.suggest-links[hidden]{display:none}
.suggest-links a{display:inline-flex;align-items:center;gap:4px;min-height:28px;color:var(--link)}
.suggest-links svg{width:12px;height:12px}
.suggest-stale{font-size:11px;color:var(--warning)}
.suggest-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-block-start:4px}
.suggest-actions .button{min-height:40px;padding:8px 12px;font-size:12px}
.suggest-actions .button span{white-space:normal;text-align:start}
.suggest-menu-wrap{position:relative}
.suggest-menu-button{width:40px;height:40px}
.suggest-menu{position:absolute;inset-inline-end:0;inset-block-start:calc(100% + 4px);z-index:5;background:var(--surface-card);border:1px solid var(--border-subtle);border-radius:10px;box-shadow:0 8px 24px color-mix(in srgb,var(--shadow) 12%,transparent);padding:4px;display:grid;min-width:min(240px,80vw)}
.suggest-menu[hidden]{display:none}
.suggest-menu [role=menuitem]{border:0;background:none;text-align:start;font:inherit;font-size:13px;padding:10px 12px;border-radius:7px;min-height:44px;color:var(--text)}
.suggest-menu [role=menuitem]:hover,.suggest-menu [role=menuitem]:focus-visible{background:var(--accent-tint)}
.suggest-confirm{display:grid;gap:8px;border-block-start:1px dashed color-mix(in srgb,var(--warning) 35%,var(--surface-card));padding-block-start:8px;font-size:13px}
.suggest-confirm p{margin:0}
.suggest-more{justify-self:start;min-height:40px}
.suggest-more-note,.suggest-empty,.suggest-weather-note,.suggest-note{display:flex;gap:8px;align-items:flex-start;font-size:12px;color:var(--text-muted);margin:0;line-height:1.5}
.suggest-empty{font-size:13px;padding:6px 0}
.suggest-note{color:var(--link)}
.suggest-prompts{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.suggest-prompt{display:flex;align-items:center;gap:8px;text-decoration:none;font-size:13px;color:var(--link);background:var(--accent-tint);border:1px solid var(--border-control);border-radius:9px;padding:10px 12px;min-height:44px}
.suggest-prompt>span:nth-child(2){flex:1;min-width:0}
[dir=rtl] .suggest-prompt .icon-arrow-right{transform:scaleX(-1)}
.suggest-error{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:13px;color:var(--danger)}
.suggest-error>span:not(.suggest-ico){flex:1;min-width:160px}
.suggest-loading{display:grid;gap:10px}
.suggest-skeleton{height:96px;border-radius:10px}
.muted-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.muted-list li{display:flex;align-items:center;gap:10px;justify-content:space-between;flex-wrap:wrap;border:1px solid var(--border-subtle);border-radius:9px;padding:8px 10px}
.muted-title{flex:1 1 180px;min-width:0;font-size:13px;overflow-wrap:anywhere}
.muted-empty{font-size:13px;color:var(--text-muted);margin:0}
.origin-label[data-origin=suggestion]{background:var(--accent-tint);color:var(--link)}
@media(max-width:700px){.suggest-panel{padding:12px 14px 14px}.suggest-actions .button{flex:1 1 auto}}
/* Chat sources (owner request 2026-11-17): markers hidden in the text; one collapsed "Sources (N)" per answer */
.chat-sources{margin-block-start:12px;border-block-start:1px solid var(--border-subtle);padding-block-start:6px}
.chat-sources-toggle{display:inline-flex;align-items:center;gap:6px;border:0;background:none;padding:6px 2px;min-height:40px;font:inherit;font-size:12px;font-weight:650;color:var(--text-muted);border-radius:6px}
.chat-sources-toggle:hover{color:var(--link);text-decoration:underline;text-underline-offset:2px}
.chat-sources-toggle .chat-ico svg{width:14px;height:14px;transition:transform .15s}
.chat-sources-toggle[aria-expanded=false] .chat-ico svg{transform:rotate(-90deg)}
[dir=rtl] .chat-sources-toggle[aria-expanded=false] .chat-ico svg{transform:rotate(90deg)}
.chat-sources-list{list-style:none;margin:4px 0 0;padding:0;display:grid;gap:8px}
.chat-sources-list[hidden]{display:none}
.chat-sources-list li{display:flex;flex-direction:column;gap:2px;font-size:12px;line-height:1.5;min-width:0;overflow-wrap:anywhere}
.chat-county-link{display:flex;gap:6px;align-items:flex-start;margin-block-start:10px;font-size:13px;overflow-wrap:anywhere}
.chat-county-link>.chat-ico svg{width:15px;height:15px;margin-block-start:3px;color:var(--link)}
.chat-county-link a .chat-ico svg{width:12px;height:12px;margin-inline-start:4px;vertical-align:-1px}
@media(prefers-reduced-motion:reduce){.chat-sources-toggle .chat-ico svg{transition:none}}

/* Plan 002: feedback button (header, every signed-in screen), feedback dialog, admin inbox. Logical properties only. */
.feedback-button{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;min-height:36px;padding-block:7px;padding-inline:11px;border:1px solid var(--border-control);border-radius:8px;background:var(--surface-sunken);color:var(--text-muted);font-size:12px;font-weight:550}
.feedback-button:hover{background:var(--surface-hover)}.feedback-button svg{width:16px;height:16px}.feedback-button[aria-busy=true]{opacity:.7}
.fb-icon{display:inline-flex}.fb-icon svg{width:16px;height:16px}
body[data-view=admin] main>:not(#admin-view):not(.page-footer){display:none!important}
.feedback-dialog{width:min(520px,calc(100% - 24px));overflow-y:auto}
#feedback-form,.fb-thanks{padding:24px}
.feedback-dialog .dialog-heading{margin-bottom:6px}.feedback-dialog .dialog-heading h2{margin-top:0;font-size:22px}.feedback-dialog h2:focus{outline:none}
.fb-intro{font-size:13px;line-height:1.6;color:var(--text-muted);margin-bottom:16px}
.fb-body,.fb-kinds{border:0;margin:0;padding:0;min-width:0}
.fb-kinds{margin-bottom:16px}.fb-kinds legend{font-size:12px;font-weight:600;color:var(--text-muted);padding:0;margin-bottom:8px}
.fb-kind-row{display:flex;flex-wrap:wrap;gap:8px}
.fb-kind{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding-block:8px;padding-inline:12px 16px;border:1px solid var(--border-control);border-radius:999px;background:var(--surface-card);font-size:13px;cursor:pointer}
.fb-kind input{margin:0;width:16px;height:16px;accent-color:var(--accent)}.fb-kind input:focus-visible{outline:none}
.fb-kind:has(input:checked){background:var(--accent-tint);border-color:var(--accent);color:var(--link);font-weight:600}
.fb-kind:has(input:focus-visible){outline:2px solid var(--focus-ring);outline-offset:2px}
.fb-kind:has(input[aria-invalid=true]){border-color:var(--danger)}
.fb-text{margin-bottom:6px}.fb-text>label{display:block;font-size:12px;font-weight:600;color:var(--text-muted)}
.fb-text>textarea{min-height:120px}
.fb-text-foot{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.fb-text-foot .field-help{flex:1;min-width:0}
.fb-counter{font-size:11px;color:var(--text-muted);margin-top:7px;white-space:nowrap;font-variant-numeric:tabular-nums}
.fb-counter[data-state=near]{color:var(--warning)}.fb-counter[data-state=over]{color:var(--danger);font-weight:600}
.fb-field-error{margin-block:0 12px}
.fb-include{margin-block:14px;padding-block:12px;padding-inline:14px;background:var(--accent-tint);border:1px solid var(--border-subtle);border-radius:10px}
.fb-include h3{font-size:13px;font-weight:650}
.fb-include ul{margin-block:8px 0;padding-inline-start:18px;display:grid;gap:3px;font-size:12px;line-height:1.55;color:var(--text-muted);overflow-wrap:anywhere}
.fb-never{margin-top:8px;font-size:11.5px;line-height:1.55;color:var(--text-muted)}
.fb-contact{margin-bottom:4px}.fb-check{display:flex;gap:9px;align-items:flex-start;font-size:13px;min-height:32px;cursor:pointer}
.fb-check input{margin:2px 0 0;width:18px;height:18px;flex-shrink:0;accent-color:var(--accent)}
.fb-contact .field-help{margin-top:2px;padding-inline-start:27px}
.feedback-dialog .form-error{margin-block:12px 0}.feedback-dialog .form-error .fb-icon svg{width:15px;height:15px}
.feedback-dialog .dialog-footer{flex-wrap:wrap;margin-top:16px}
.fb-thanks{text-align:center}.fb-thanks-symbol{display:inline-grid;place-items:center;width:48px;height:48px;border-radius:14px;background:var(--accent-tint);color:var(--link);margin-bottom:12px}
.fb-thanks-symbol svg{width:24px;height:24px}.fb-thanks h2{font-size:22px;margin-bottom:8px}.fb-thanks p{font-size:13px;line-height:1.7;color:var(--text-muted)}.fb-thanks .dialog-footer{justify-content:center}
.auth-feedback{margin-top:14px;text-align:center;font-size:12.5px;line-height:1.7;color:var(--text-muted)}
/* Admin inbox */
.admin{max-width:960px;margin-inline:auto}
.admin-inbox{padding:0;overflow:hidden}.admin-tabs{padding-block-start:16px;padding-inline:20px}
#admin-panel{padding-block:16px 4px;padding-inline:20px}
.admin-filters{display:flex;flex-wrap:wrap;gap:4px 12px}.admin-filter{flex:1 1 140px;min-width:0;max-width:220px;margin-bottom:10px}
.admin-filter>label{font-size:11px}
.admin-loading{display:flex;gap:10px;align-items:center;padding-block:20px;font-size:13px;color:var(--text-muted)}
.admin-empty{padding-block:24px;font-size:13px;color:var(--text-muted);text-align:center}
.admin-error{align-items:center;margin-block:12px}
.inbox-item{padding-block:16px;border-block-start:1px solid var(--border-subtle);min-width:0}
.inbox-badges{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:11px;margin-bottom:8px}
.inbox-kind,.inbox-status,.inbox-lang{border-radius:5px;padding-block:3px;padding-inline:7px;background:var(--accent-tint);color:var(--text-muted);font-weight:600}
.inbox-kind.kind-problem{background:var(--danger-tint);color:var(--danger)}.inbox-kind.kind-idea{background:var(--info-tint);color:var(--info)}.inbox-kind.kind-answer_down{background:var(--warning-tint);color:var(--warning)}
.inbox-status{background:var(--surface-card);border:1px solid var(--border-subtle);font-weight:500}.inbox-lang{background:transparent;font-weight:500;color:var(--text-muted)}
.inbox-date{color:var(--text-muted);margin-inline-start:auto}
.inbox-text{font-size:13.5px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
.inbox-quote{margin-bottom:8px}.inbox-quote h3{font-size:11px;font-weight:650;color:var(--text-muted);text-transform:uppercase;letter-spacing:.6px;margin-bottom:2px}.inbox-quote p{font-size:13px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.inbox-meta{font-size:11.5px;line-height:1.6;color:var(--text-muted);margin-top:6px;overflow-wrap:anywhere}
.admin-controls{display:flex;flex-wrap:wrap;align-items:flex-start;gap:4px 14px;margin-top:12px}
.admin-status{flex:0 1 180px;min-width:0;margin-bottom:8px}.admin-note{flex:1 1 260px;min-width:0;margin-bottom:8px}
.admin-status>label,.admin-note>label{font-size:11px}
.admin-note>.button{margin-top:8px;min-height:38px;padding-block:8px}
.admin-copy{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;flex-basis:100%}.admin-copy .button{min-height:38px;padding-block:8px;white-space:normal}
.admin-copied{font-size:12px;color:var(--success)}
.admin-fallback{margin-top:8px}.admin-fallback>textarea{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px}
.admin-more{margin-block:12px}
.admin-usage h2{margin-bottom:6px}.admin-usage h3{font-size:13px;margin-bottom:6px}
.table-scroll{max-width:100%;overflow-x:auto;border:1px solid var(--border-subtle);border-radius:8px;margin-bottom:14px}
.table-scroll:focus-visible{outline:2px solid var(--focus-ring)}
.admin-table{border-collapse:collapse;width:100%;font-size:12.5px}
.admin-table th,.admin-table td{padding-block:7px;padding-inline:10px;text-align:start;border-block-end:1px solid var(--border-subtle)}
.admin-table td{text-align:end;font-variant-numeric:tabular-nums}.admin-table thead th{background:var(--accent-tint);font-weight:650;font-size:11.5px}
.admin-table tbody th{font-weight:500}.admin-table tr:last-child>*{border-block-end:0}
.admin-table.is-daily th,.admin-table.is-daily td{white-space:nowrap}
.admin-errors ul{margin:0 0 14px;padding-inline-start:18px;font-size:12.5px;line-height:1.7}.admin-errors code{font-size:12px}
.admin-daily summary{cursor:pointer;font-size:13px;font-weight:600;min-height:32px;display:flex;align-items:center}
@media(max-width:700px){
  .feedback-button{padding:0;width:36px;justify-content:center;border-radius:50%}
  .feedback-button-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  #feedback-form,.fb-thanks{padding:18px}.fb-text>textarea{font-size:16px}
  .admin-tabs{padding-inline:14px}#admin-panel{padding-inline:14px}.admin-filter{max-width:none}
  .admin-status{flex-basis:100%}.admin-note .button,.admin-copy .button{width:100%}
}
@media(max-width:365px){.feedback-dialog .dialog-footer .button{flex:1 1 auto}.fb-kind{padding-inline:10px 12px}}
/* Plan 002 (security M2): rating notice under chat answers. */
.chat-rating-note{flex-basis:100%;margin:0;font-size:11px;line-height:1.5;color:var(--text-muted)}
/* Plan 004: "Reschedule this task" under a chat answer; the "Use my planner in chat answers" switch. */
.chat-reschedule{min-height:40px;padding:8px 12px;white-space:normal;text-align:start}
.setting-switch{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:44px}
.setting-switch label{font-weight:600;font-size:14px;color:var(--text);overflow-wrap:anywhere}
.switch-input{appearance:none;-webkit-appearance:none;position:relative;flex-shrink:0;inline-size:48px;block-size:28px;margin:0;border-radius:999px;background:var(--surface-sunken);border:1px solid var(--border-control);cursor:pointer;transition:background .15s}
.switch-input::before{content:"";position:absolute;inset-block-start:3px;inset-inline-start:3px;inline-size:20px;block-size:20px;border-radius:50%;background:var(--text-muted);box-shadow:0 1px 3px color-mix(in srgb,var(--shadow) 20%,transparent);transition:inset-inline-start .15s}
.switch-input:checked{background:var(--accent);border-color:var(--accent)}
.switch-input:checked::before{inset-inline-start:calc(100% - 23px)}
.switch-input[aria-busy=true]{opacity:.7;cursor:progress}
.switch-input:focus-visible{outline:2px solid var(--focus-ring);outline-offset:3px}
@media(forced-colors:active){.switch-input{border-color:ButtonText}.switch-input::before{background:ButtonText}.switch-input:checked{background:Highlight}}
@media(prefers-reduced-motion:reduce){.switch-input,.switch-input::before{transition:none}}
.setting-status{display:flex;align-items:center;gap:8px;min-block-size:20px;margin-block-start:8px;font-size:13px;color:var(--link)}
.setting-status:empty{display:none}
#settings-chat-slot .field-help{display:block;margin-block-start:6px}
/* Plan 005: in-app notice card (in the page flow, never fixed: it can't cover the task list or chat input). Logical properties only. */
.notices:not(:empty){margin-block-end:18px}
.notice-card{display:flex;align-items:flex-start;gap:12px;background:var(--surface-card);border:1px solid var(--border-subtle);border-inline-start:4px solid var(--accent);border-radius:12px;padding:14px 16px;min-width:0}
.notice-icon{display:grid;place-items:center;flex-shrink:0;width:32px;height:32px;border-radius:9px;background:var(--accent-tint);color:var(--link)}.notice-icon svg{width:17px;height:17px}
.notice-text{flex:1;min-width:0}.notice-title{font-size:14px;line-height:1.45;letter-spacing:0;overflow-wrap:anywhere}.notice-body{font-size:12px;line-height:1.6;color:var(--text-muted);margin-block-start:3px;overflow-wrap:anywhere}
.notice-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}.notice-actions .button{min-height:44px;margin-inline-start:0;white-space:normal}
.notice-dismiss.icon-button{width:44px;height:44px;min-width:44px;border-color:transparent}.notice-dismiss svg{width:15px;height:15px}
@media(max-width:700px){.notice-card{flex-wrap:wrap;padding:12px 13px}.notice-text{flex-basis:calc(100% - 44px)}.notice-actions{flex-basis:100%;justify-content:space-between}.notice-actions .notice-action{flex:1}}
/* Plan 005: Settings → Starter care plan (switch, status) and the questionnaire / preview dialog. */
.cp-ico{display:inline-grid;place-items:center;flex-shrink:0}.cp-ico svg{width:15px;height:15px}
.cp-switch-row{display:flex;align-items:center;justify-content:space-between;gap:14px}.cp-switch-row p{margin:0;font-size:13px;line-height:1.6}
.cp-switch{display:inline-flex;align-items:center;gap:8px;flex-shrink:0;min-height:44px;min-width:44px;padding:4px;border:0;background:transparent;color:var(--text);font-weight:600;font-size:12px;border-radius:999px;cursor:pointer}
.cp-switch:disabled{cursor:default;opacity:.6}.cp-switch:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}
.cp-switch-track{position:relative;display:block;width:46px;height:26px;border-radius:999px;background:var(--border-control);transition:background .15s}
.cp-switch-thumb{position:absolute;inset-block-start:3px;inset-inline-start:3px;width:20px;height:20px;border-radius:50%;background:var(--surface-card);box-shadow:0 1px 3px color-mix(in srgb,var(--shadow) 25%,transparent);transition:inset-inline-start .15s}
.cp-switch[aria-checked=true] .cp-switch-track{background:var(--accent)}.cp-switch[aria-checked=true] .cp-switch-thumb{inset-inline-start:23px}
.care-plan-settings h2:focus{outline:none}.care-plan-settings .cp-loading{margin-block-start:12px}
.cp-status{display:flex;align-items:center;gap:7px;margin-block:14px 4px;font-size:13px;font-weight:600;color:var(--link)}
.care-plan-settings .cp-answers{font-size:12px;color:var(--text-muted);line-height:1.6;margin-block-end:10px}
.care-plan-settings .field-help{margin-block:4px 10px}.care-plan-settings .settings-actions{margin-block-start:8px}
.care-plan-settings .auth-notice,.care-plan-settings .form-error{display:flex;gap:8px;align-items:flex-start;margin-block-start:12px}
.cp-dialog{width:min(560px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain}
.cp-form{padding:22px 22px 0}.cp-form[data-cp-form=noZip],.cp-form[data-cp-form=off],.cp-form[data-cp-form=question]{padding-block-end:20px}
.cp-heading{margin-bottom:10px;align-items:flex-start}.cp-heading .eyebrow{margin:0}.cp-progress{display:block;font-size:12px;color:var(--text-muted);margin-block-start:4px}
.cp-heading .icon-button{width:40px;height:40px;flex-shrink:0}
.cp-dialog h2{font-size:20px;line-height:1.35;letter-spacing:-.4px;margin:0}.cp-dialog h2:focus{outline:none}:lang(zh) .cp-dialog h2{letter-spacing:0}
.cp-fieldset{border:0;margin:0;padding:0;min-width:0}.cp-fieldset legend{padding:0;margin-block-end:14px;width:100%}
.cp-options{display:grid;gap:8px}
.cp-option{display:flex;align-items:flex-start;gap:11px;border:1px solid var(--border-control);border-radius:10px;padding:12px 13px;min-height:48px;cursor:pointer;background:var(--surface-card)}
.cp-option:has(input:checked){border-color:var(--accent);background:var(--accent-tint)}.cp-option:has(input:focus-visible){outline:2px solid var(--focus-ring);outline-offset:2px}
.cp-option input,.cp-item-check input,.cp-off-option input{width:20px;height:20px;flex-shrink:0;margin:1px 0 0;accent-color:var(--accent)}
.cp-option-text{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;min-width:0;font-size:13px;line-height:1.5}.cp-option-label{font-weight:600;overflow-wrap:anywhere}
.cp-recommended{font-size:11px;font-weight:650;color:var(--on-highlight);background:var(--highlight);border-radius:999px;padding:1px 8px}
.cp-option-help{flex-basis:100%;font-size:11px;color:var(--text-muted)}
.cp-footer{justify-content:space-between;align-items:center;flex-wrap:wrap}.cp-footer .button{min-height:44px;white-space:normal}
.cp-summary{display:flex;flex-wrap:wrap;align-items:center;gap:2px 10px;margin-block:8px 4px;font-size:12px;color:var(--text-muted)}.cp-summary .cp-answers{overflow-wrap:anywhere}
.cp-intro{font-size:13px;line-height:1.6;color:var(--text-muted);margin-block:6px 10px}
.cp-items{list-style:none;margin:0;padding:0}
.cp-item{border-block-start:1px solid var(--border-subtle);padding-block:12px}.cp-item:first-child{border-block-start:0}
.cp-item-check{display:flex;align-items:flex-start;gap:10px}.cp-item-label{display:flex;flex-direction:column;gap:2px;min-width:0;cursor:pointer;min-height:24px}
.cp-item.is-locked .cp-item-label{cursor:default}
.cp-item-title{font-size:13px;font-weight:600;line-height:1.45;overflow-wrap:anywhere}.cp-item-due{font-size:11px;color:var(--text-muted)}
.cp-item-why,.cp-item-locked,.cp-item-overlap,.cp-item-sources,.cp-item-county,.cp-item-source{font-size:11px;line-height:1.6;margin-block-start:5px;padding-inline-start:30px;overflow-wrap:anywhere}
.cp-item-why{color:var(--text-muted)}.cp-item-locked{display:flex;gap:6px;color:var(--text-muted)}.cp-item-overlap{display:flex;gap:6px;color:var(--warning)}
.cp-item-locked .cp-ico svg,.cp-item-overlap .cp-ico svg{width:13px;height:13px;margin-block-start:2px}
.cp-item-sources a,.cp-item-county a{display:inline-flex;align-items:center;gap:3px;min-height:24px}.cp-item-sources .cp-ico svg,.cp-item-county .cp-ico svg{width:12px;height:12px}
.cp-item-source .cp-item-sources{padding-inline-start:0;margin-block-start:0}.cp-item-sources[hidden]{display:none}
.cp-source-toggle{font-size:11px}.cp-source-toggle .cp-ico{display:inline-flex}
.cp-preview-loading{display:grid;gap:10px;padding-block:8px}.cp-skeleton{height:46px;border-radius:9px}
.cp-preview-body .form-error,.cp-empty{display:flex;gap:8px;align-items:flex-start;flex-wrap:wrap;margin-block:10px}.cp-empty{font-size:13px;line-height:1.6;color:var(--link)}
.cp-sticky{position:sticky;inset-block-end:0;background:var(--surface-card);margin-inline:-22px;padding:10px 22px 16px;border-block-start:1px solid var(--border-subtle);margin-block-start:8px}
.cp-sticky .dialog-footer{border:0;padding-top:0;margin-top:0}.cp-sticky .cp-error{margin-block-end:10px}
.cp-error{display:flex;gap:8px;align-items:flex-start}.cp-error:focus{outline:none}
.cp-off-option{display:flex;align-items:flex-start;gap:10px;margin-block:14px 0;font-size:13px;line-height:1.5}.cp-off-option label{cursor:pointer}
@media(max-width:420px){.cp-form{padding:18px 16px 0}.cp-sticky{margin-inline:-16px;padding-inline:16px}.cp-dialog h2{font-size:18px}.cp-footer .button{flex:1 1 auto}.cp-switch-row{align-items:flex-start}}
@media(prefers-reduced-motion:reduce){.cp-switch-track,.cp-switch-thumb{transition:none}}
.cp-subheading{font-size:14px;line-height:1.4;letter-spacing:0;margin:0}
.cp-noLonger,.cp-later{border-block-start:1px solid var(--border-subtle);margin-block-start:10px;padding-block-start:12px}
.cp-noLonger .field-help{margin-block:4px 2px}.cp-noLonger-item{padding-block:10px}
.cp-later-list{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:6px}
.cp-later-list li{display:flex;flex-wrap:wrap;gap:2px 8px;font-size:12px;line-height:1.5;color:var(--text-muted);overflow-wrap:anywhere}.cp-later-date{color:var(--text-muted)}

/* --- Plan 011: themes and mobile ------------------------------------------------------------------- */
/* A highlight fill is never the only sign of state (WCAG 1.4.11): active items also get weight and a ring. */
.nav-item.active{font-weight:650;box-shadow:inset 0 0 0 1px var(--on-highlight)}
.account-menu-item[aria-current=page]{font-weight:650;box-shadow:inset 0 0 0 1px var(--on-highlight)}
.chat-list-items li.is-current{box-shadow:inset 0 0 0 1px var(--accent)}.chat-list-items li.is-current .chat-list-label{font-weight:650}
/* Focus ring stays ≥3:1 on dark-on-light and light-on-dark surfaces. */
.sidebar{--focus-ring:var(--on-sidebar)}.toast,.chat-msg.is-user .chat-bubble{--focus-ring:var(--on-accent)}
/* Placeholders read as hints but still meet 4.5:1. */
::placeholder{color:var(--text-muted);opacity:1}
/* Loading and illustration colours in dark */
.chat-photos img,.photo-tile-view,.grass-photo{border-color:var(--border-subtle)}
.button-google{border-color:var(--border-control)}

/* Appearance (Settings) */
.appearance-options{border:0;margin:0;padding:0;min-width:0}
.appearance-options legend{padding:0;margin-block-end:8px}
.appearance-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.appearance-option{display:flex;align-items:center;gap:10px;min-height:48px;padding-block:10px;padding-inline:12px;border:1px solid var(--border-control);border-radius:10px;background:var(--surface-card);cursor:pointer;font-size:14px;min-width:0;overflow-wrap:anywhere}
.appearance-option input{margin:0;width:20px;height:20px;flex-shrink:0;accent-color:var(--accent)}.appearance-option input:focus-visible{outline:none}
.appearance-option:has(input:checked){border-color:var(--accent);background:var(--accent-tint);box-shadow:inset 0 0 0 1px var(--accent);font-weight:650}
.appearance-option:has(input:focus-visible){outline:2px solid var(--focus-ring);outline-offset:2px}
.appearance-option[aria-busy=true]{cursor:progress}
.appearance-swatch{display:inline-block;width:18px;height:18px;border-radius:50%;border:1px solid var(--border-control);flex-shrink:0}
.appearance-swatch.is-light{background:linear-gradient(135deg,var(--surface-card) 50%,var(--surface-page) 50%)}
:root[data-theme=dark] .appearance-swatch.is-light{background:linear-gradient(135deg,var(--text) 50%,var(--text-muted) 50%)}
.appearance-swatch.is-dark{background:linear-gradient(135deg,var(--surface-sidebar) 50%,var(--accent) 50%)}
.appearance-swatch.is-auto{background:conic-gradient(var(--surface-sidebar) 0 50%,var(--surface-card) 0)}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]) .appearance-swatch.is-light{background:linear-gradient(135deg,var(--text) 50%,var(--text-muted) 50%)}}
@media(max-width:420px){.appearance-row{grid-template-columns:minmax(0,1fr)}}

/* Notched phones (viewport-fit=cover): keep content, fixed and sticky bars clear of the notch and home indicator.
   The notch can be on either side after rotating, so the side insets are applied symmetrically (logical, RTL-safe). */
:root{--safe-x:max(env(safe-area-inset-left,0px),env(safe-area-inset-right,0px))}
body{padding-inline:var(--safe-x)}
.sidebar{padding-inline-start:max(24px,var(--safe-x))}
.toast{bottom:calc(28px + env(safe-area-inset-bottom,0px))}
.page-footer{padding-block-end:env(safe-area-inset-bottom,0px)}
.chat-composer{padding-block-end:max(14px,env(safe-area-inset-bottom,0px))}
dialog{max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}
.cp-dialog{max-height:calc(100dvh - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}
.chat-sidebar{max-height:calc(100dvh - 32px)}
.chat-main{min-height:calc(100dvh - 86px - 41px)}
@media(max-width:900px){.chat-main{min-height:calc(100vh - 160px);min-height:calc(100dvh - 160px)}}
@media(max-width:1200px){.sidebar{padding-inline-start:max(19px,var(--safe-x))}}
@media(max-width:1030px){.sidebar{padding-inline-start:max(14px,var(--safe-x))}}
@media(max-width:700px){
  .sidebar{padding-top:max(19px,env(safe-area-inset-top,0px));padding-inline-start:20px}
  .toast{bottom:calc(18px + env(safe-area-inset-bottom,0px))}
  .page-footer{padding-block-end:max(12px,env(safe-area-inset-bottom,0px))}
}
/* The chat composer rides above the on-screen keyboard: viewport.mjs sets --keyboard-inset from visualViewport
   (iOS Safari keeps the layout viewport when the keyboard opens; Android uses interactive-widget=resizes-content). */
.chat-composer{bottom:var(--keyboard-inset,0px)}

/* Task row actions: hidden until hover only where the device can hover with a fine pointer and the row has room. */
.task-actions{opacity:1}
@media(hover:hover) and (pointer:fine) and (min-width:1201px){.task-actions{opacity:0}.task-row:hover .task-actions,.task-row:focus-within .task-actions{opacity:1}}

/* Touch devices: 44px targets and 16px form text (iOS zooms into smaller fields). Phones, tablets and touch
   laptops alike; capability, not width or user agent, decides. */
@media(pointer:coarse){
  input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea{font-size:16px!important}
  .button,.icon-button,.text-button,.chat-list-delete,.chat-thumb,.suggest-menu-button,.chat-new,.chat-list-toggle,
  .account-signin,.feedback-button,.account-button,.composer-attach,.photo-item-action,.notice-dismiss.icon-button,.cp-heading .icon-button,
  .chat-sources-toggle,.source-toggle,.suggest-toggle,.photo-not-right,.suggest-hidden-link,.grass-credits summary,.admin-daily summary,.auth-privacy summary,
  .toast button,.password-toggle,.cite-ref{min-height:44px!important;min-width:44px}
  .icon-button,.chat-thumb,.suggest-menu-button,.feedback-button,.composer-attach,.photo-item-action{min-width:44px!important}
  .language-field select,.category-field select{min-height:44px}
  .task-actions .icon-button{width:44px;height:44px}
  .task-actions{gap:0}
  .template-add{width:44px;height:44px}
  .nav-item{min-height:44px}
  .tab{min-height:44px;display:inline-flex;align-items:flex-end}
  .chat-sources .text-button{min-height:44px}
  .suggest-links a,.cp-item-sources a,.cp-item-county a,.task-sources-list a{min-height:44px}
  .task-sources-list a{display:inline-flex;align-items:center}
  .task-sources summary{min-height:44px;display:flex;align-items:center}
  .fb-check,.cp-item-label{min-height:44px}
  .chat-list-link{min-height:48px}
  /* The task checkbox keeps its 24px look inside a 44px hit area (transparent border, clipped background). */
  .task-check{width:44px;height:44px;margin-block:-10px;margin-inline:-10px;border:10px solid transparent;border-radius:16px;background-clip:padding-box;box-shadow:inset 0 0 0 1.5px var(--border-control)}
  .task-check:checked{border-color:transparent;box-shadow:none;background-color:var(--accent)}
  .account-placeholder{width:44px;height:44px}
  .account-initial{width:36px;height:36px}
  .toast .toast-close{width:44px;height:44px}
}
@media(pointer:coarse) and (max-width:700px){
  .feedback-button{width:44px;height:44px}
  .account-button{min-width:44px;min-height:44px;justify-content:center}
}
@media(forced-colors:active){
  .nav-item.active,.account-menu-item[aria-current=page],.appearance-option:has(input:checked){outline:2px solid Highlight}
  .task-check{border-color:Canvas;box-shadow:inset 0 0 0 2px ButtonText}
  .composer-box,.appearance-option{border-color:ButtonText}
}

/* Phones: secondary text is at least 12px (plan 011 MB9). Generated from every rule above that sets a smaller size. */
@media(max-width:700px){.sidebar-label,.nav-count,.edition,.save-status,.top-date,.eyebrow,.stat-label,.stat-caption,.section-heading h2>.count-badge,.section-heading p,.tab,.tab .tab-count,.search-field input,.category-field select,.empty-state p,.empty-state .button,.list-footer,.category-badge,.due-label,.repeat-label,.task-notes,.library-eyebrow,.library-panel .section-heading p,.template-content h3,.template-content p,.library-footnote p,.page-footer,.library-mode .template-content p,.form-field,.optional,.field-help,.form-error,.toast button,.settings-label,.verified-badge,.source-note,.choice-text span,.weather-updated,.weather-day,.chat-sidebar .chat-new,.chat-list-link time,.chat-disclaimer,.chat-badge,.cite-ref,.chat-position,.chat-context,.chat-source-meta,.chat-source-note,.chat-sources .text-button,.composer-meta,.chat-task-from,.saving-label,.history-sub,.history-last li,.history-meta,.origin-label,.task-sources,.photo-thumb-format,.photo-privacy,.photo-card-tag,.photo-kind,.band-chip,.photo-evidence-label,.photo-followup-label,.photo-card-foot,.photo-not-right,.photo-tile-meta,.suggest-chip,.suggest-badge,.suggest-stale,.fb-counter,.fb-never,.admin-filter>label,.inbox-badges,.inbox-quote h3,.inbox-meta,.admin-status>label,.admin-note>label,.admin-table thead th,.chat-rating-note,.cp-recommended,.cp-option-help,.cp-item-due,.cp-item-why,.cp-item-locked,.cp-item-overlap,.cp-item-sources{font-size:12px}}
/* 430–460px phones: stack the nav icon over its label, like narrower phones, so four tabs always fit. */
@media(max-width:460px){.nav-list{gap:4px}.nav-item{flex-direction:column;gap:3px;padding:8px 4px 9px;min-width:0;white-space:normal;text-align:center;line-height:1.25;overflow-wrap:anywhere}.nav-item svg{width:16px;height:16px}}
/* The ZIP field keeps its width next to "Find" (the full-width settings buttons rule must not apply here). */
.settings-card .zip-row>.button,.settings-card form .zip-row>.button{width:auto;flex-shrink:0}
@media(pointer:coarse){
  .brand{min-height:44px}
  .search-field input,.form-field>input,.form-field>select,.auth-field>input,.input-wrap>input,.zip-row>input{min-height:44px}
  .tab{min-width:44px;justify-content:center}
  .rules-link a,.weather-credit,.auth-row-end .text-link,.weather-footer a,.source-note a{display:inline-flex;align-items:center;min-height:44px}
  /* The settings switch keeps its 48×28 look inside a 64×44 hit area. */
  .switch-input{inline-size:64px;block-size:44px;margin-block:-8px;margin-inline:-8px;border:8px solid transparent;background-clip:padding-box;box-shadow:inset 0 0 0 1px var(--border-control)}
  .switch-input:checked{border-color:transparent;box-shadow:inset 0 0 0 1px var(--accent)}
  .switch-input::before{inset-block-start:4px;inset-inline-start:4px}
  .switch-input:checked::before{inset-inline-start:calc(100% - 24px)}
}
.switch-input:checked::before{background:var(--on-accent)}
/* Long translated category names wrap the filter under the search box instead of crushing it. */
.list-tools{flex-wrap:wrap}.search-field{flex:1 1 9rem}

/* --- Plan 006: lawn guide (#/guide, guide-ui.mjs). Tokens only; logical properties; side list ≥ 960 px,
   pickers and accordions below. Local-rule cards are links only. ------------------------------------------ */
body[data-view=guide] main>:not(#guide-view):not(.page-footer){display:none!important}
.guide-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:24px;align-items:start}
.guide-main{min-width:0;display:grid;gap:14px}
.guide-side{position:sticky;inset-block-start:16px;background:var(--surface-card);border:1px solid var(--border-subtle);border-radius:14px;padding:14px 10px;display:grid;gap:4px;max-height:calc(100dvh - 32px);overflow-y:auto}
.guide-side ul{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.guide-side-label{font-size:12px;text-transform:uppercase;letter-spacing:1.2px;font-weight:650;color:var(--text-muted);margin:12px 10px 4px}
.guide-side-link{display:flex;align-items:center;gap:8px;min-height:40px;padding:8px 10px;border-radius:9px;color:var(--text);text-decoration:none;font-weight:500}
.guide-side-link:hover{background:var(--surface-hover)}
.guide-side-link.is-current{background:var(--accent-tint);font-weight:700;box-shadow:inset 3px 0 0 var(--accent)}
.guide-side-link svg{width:18px;height:18px;flex-shrink:0}
.guide-mine{margin-inline-start:auto;color:var(--success);display:inline-flex}
.guide-mine svg{width:16px;height:16px}
.guide-pickers{display:none}
.guide-page{background:var(--surface-card);border:1px solid var(--border-subtle);border-radius:16px;padding:26px 28px;min-width:0}
.guide-page[aria-busy=true]{display:grid;gap:14px}
.guide-skeleton-title{height:34px;width:55%}
.guide-header{display:flex;flex-wrap:wrap;gap:14px 20px;align-items:flex-start;justify-content:space-between;margin-block-end:12px}
.guide-heading{min-width:0;flex:1 1 18rem}
.guide-header h1{font-size:30px;letter-spacing:-.8px;margin:0 0 6px;outline-offset:4px}
.guide-header-tools{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}
.guide-context,.guide-zip-prompt{display:flex;gap:8px;align-items:flex-start;color:var(--text-muted);margin:4px 0;font-size:14px;line-height:1.5}
.guide-context svg,.guide-zip-prompt svg{width:16px;height:16px;flex-shrink:0;margin-block-start:2px}
.guide-region-source,.guide-make-mine{color:var(--link);margin-inline-start:6px}
.guide-grass-picker,.guide-picker{display:grid;gap:4px;font-size:13px;font-weight:600;color:var(--text-muted)}
.guide-grass-picker select,.guide-picker select{font:inherit;font-weight:500;font-size:14px;color:var(--text);background:var(--surface-card);border:1px solid var(--border-control);border-radius:9px;padding:9px 10px;min-height:40px;max-width:100%}
.guide-summary{font-size:16px;line-height:1.6;color:var(--text);margin:6px 0 16px}
.guide-notice,.guide-fixed{display:flex;gap:10px;align-items:flex-start;background:var(--warning-tint);color:var(--text);border-radius:10px;padding:10px 12px;margin:10px 0;line-height:1.5}
.guide-notice svg,.guide-fixed svg{width:18px;height:18px;flex-shrink:0;color:var(--warning);margin-block-start:2px}
.guide-section{border-block-start:1px solid var(--border-subtle);padding-block:16px 6px;scroll-margin-block-start:16px}
.guide-section-title{font-size:19px;margin:0 0 8px;outline-offset:3px}
.guide-toggle{all:unset;box-sizing:border-box;display:flex;width:100%;align-items:center;justify-content:space-between;gap:10px;min-height:44px;cursor:pointer;font:inherit;font-weight:700;color:var(--text)}
.guide-toggle:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px;border-radius:6px}
.guide-toggle svg{width:20px;height:20px;flex-shrink:0;transition:transform .15s}
.guide-toggle[aria-expanded=false] svg{transform:rotate(-90deg)}
:root[dir=rtl] .guide-toggle[aria-expanded=false] svg{transform:rotate(90deg)}
.guide-text{line-height:1.65;margin:6px 0 10px}
.guide-list{margin:6px 0 10px;padding-inline-start:22px;display:grid;gap:6px;line-height:1.6}
.guide-cites{white-space:nowrap}
.guide-cite{font-size:12px;font-weight:650;color:var(--link);vertical-align:super;line-height:1;margin-inline-start:2px;text-underline-offset:2px}
.guide-grass-tag,.guide-region-label{font-weight:650;color:var(--text)}
.guide-regions{border-collapse:collapse;width:100%;margin:8px 0 12px}
.guide-regions caption{text-align:start;font-size:13px;color:var(--text-muted);font-weight:600;padding-block-end:4px}
.guide-regions th,.guide-regions td{text-align:start;vertical-align:top;padding:8px 10px;border-block-end:1px solid var(--border-subtle);line-height:1.55}
.guide-regions th{white-space:nowrap;font-weight:650;width:1%}
.guide-card{background:var(--surface-sunken);border:1px solid var(--border-subtle);border-radius:12px;padding:14px 16px;margin:10px 0 14px}
.guide-card h2,.guide-card h3{display:flex;gap:8px;align-items:center;font-size:16px;margin:0 0 6px}
.guide-card h2 svg,.guide-card h3 svg{width:18px;height:18px;color:var(--accent)}
.guide-card p{margin:4px 0 8px;line-height:1.55}
.guide-local-links{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:4px}
.guide-local-links a,.guide-external{display:inline-flex;align-items:center;gap:6px;min-height:40px;color:var(--link);font-weight:600;line-height:1.35;text-underline-offset:3px}
.guide-local-links a svg,.guide-external svg{width:15px;height:15px;flex-shrink:0}
.guide-local-note{color:var(--text-muted);font-size:14px}
.guide-updating{display:flex;gap:10px;align-items:flex-start;background:var(--info-tint);color:var(--text);border-radius:10px;padding:12px 14px;margin:6px 0 10px}
.guide-updating svg{width:18px;height:18px;color:var(--info);flex-shrink:0;margin-block-start:2px}
.guide-updating p{margin:0;line-height:1.5}
.guide-actions{display:flex;flex-wrap:wrap;gap:10px;margin:6px 0 12px}
.guide-actions .button,.guide-header-tools .button{text-decoration:none}
.guide-added{display:inline-flex;gap:6px;align-items:center;color:var(--success);font-weight:600;margin:0}
.guide-added svg{width:18px;height:18px}
.guide-added a{color:var(--link)}
.guide-sources{border-block-start:1px solid var(--border-subtle);margin-block-start:10px;padding-block-start:16px}
.guide-sources h2{font-size:15px;margin:0}
.guide-sources-toggle{font-size:15px;min-height:44px;flex-wrap:wrap;color:var(--text)}
.guide-sources-toggle svg{width:18px;height:18px}
.guide-sources-body{margin-block-start:8px}
.guide-region-note{margin:12px 0 0;font-size:13px}
.guide-region-note .guide-region-source{margin-inline-start:0;display:inline-flex;align-items:center;gap:4px}
.guide-region-note svg{width:12px;height:12px}
/* Sources grouped by publication (QA 006-A L-3): each publication once, its cited sections as compact [n] rows. */
.guide-pubs{list-style:none;margin:0;padding:0;display:grid;gap:14px}
.guide-pub{line-height:1.5}
.guide-pub-title{margin:0 0 4px}
.guide-source-list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:2px 14px}
.guide-source-list li{display:flex;gap:6px;border-radius:6px;scroll-margin-block:80px;color:var(--text-muted)}
.guide-source-list li:focus{outline:2px solid var(--focus-ring);outline-offset:2px}
.guide-quote blockquote .guide-source-n{font-style:normal}
.guide-source-n{font-weight:650;color:var(--text-muted);flex-shrink:0}
.guide-source-pub{font-weight:600}
.guide-source-list a{color:var(--link)}
.guide-source-heading,.guide-source-lang{color:var(--text-muted)}
.guide-stale{display:inline-block;background:var(--warning-tint);color:var(--warning);border-radius:6px;padding:0 6px;font-size:13px;font-weight:650}
.guide-quote summary{cursor:pointer;color:var(--link);font-size:13px;font-weight:600;margin-block-start:2px}
.guide-quote blockquote{margin:6px 0 0;padding-inline-start:12px;border-inline-start:3px solid var(--border-subtle);color:var(--text-muted);font-style:italic}
.guide-checked{color:var(--text-muted);font-size:13px;font-weight:400}
.guide-tiles{list-style:none;margin:8px 0 18px;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}
.guide-tile{display:grid;gap:4px;padding:14px 16px;border:1px solid var(--border-subtle);border-radius:12px;text-decoration:none;color:var(--text);background:var(--surface-card);min-height:44px}
.guide-tile:hover{background:var(--surface-hover)}
.guide-tile span{color:var(--text-muted);font-size:14px;line-height:1.45}
.guide-home h2{font-size:17px}
.guide-error{display:grid;justify-items:start;gap:10px}
.guide-error .empty-art{color:var(--danger)}
.guide-offline,.guide-signin-bar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;border-radius:12px;padding:10px 14px;margin:0 0 14px;line-height:1.45}
.guide-offline{background:var(--warning-tint);color:var(--text)}
.guide-signin-bar{background:var(--accent-tint);color:var(--text)}
.guide-offline svg,.guide-signin-bar svg{width:18px;height:18px;flex-shrink:0}
.guide-signin-bar .button{margin-inline-start:auto;text-decoration:none}
/* Comparison (006-B): a table on wide screens, one card per grass on phones (the same fields; CSS shows one). */
.guide-compare{overflow-x:auto;border:1px solid var(--border-subtle);border-radius:12px;margin:8px 0 14px}
.guide-compare:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}
.guide-compare-table{border-collapse:collapse;width:100%;min-width:40rem;table-layout:fixed}
.guide-compare-table th,.guide-compare-table td{text-align:start;vertical-align:top;padding:10px 12px;border-block-end:1px solid var(--border-subtle);line-height:1.5}
.guide-compare-table tbody tr:last-child>*{border-block-end:0}
.guide-compare-table thead th{background:var(--surface-sunken);font-size:13px;font-weight:650;color:var(--text-muted);text-transform:uppercase;letter-spacing:.6px}
.guide-compare-table thead th:first-child,.guide-compare-table tbody th{inline-size:11rem}
.guide-compare-table tbody th{font-weight:650;position:sticky;inset-inline-start:0;background:var(--surface-card)}
.guide-compare-table tr.is-mine>*{background:var(--accent-tint)}
.guide-compare-table a,.guide-compare-card h3 a{color:var(--link)}
.guide-compare-mine{display:block;font-size:12px;font-weight:600;color:var(--text-muted)}
.guide-nodata{color:var(--text-muted)}
.guide-compare-region{display:flex;gap:6px;align-items:center;font-weight:650;margin:4px 0}
.guide-compare-region svg{width:16px;height:16px;color:var(--accent)}
.guide-compare-cards{display:none;list-style:none;margin:8px 0 14px;padding:0;gap:10px}
.guide-compare-card{border:1px solid var(--border-subtle);border-radius:12px;padding:12px 14px;background:var(--surface-card)}
.guide-compare-card.is-mine{border-color:var(--accent);box-shadow:inset 3px 0 0 var(--accent)}
.guide-compare-card h3{font-size:17px;margin:0 0 6px}
.guide-compare-card dl{margin:0;display:grid;gap:8px}
.guide-compare-card dl>div{display:grid;grid-template-columns:minmax(6.5rem,35%) minmax(0,1fr);gap:10px;border-block-start:1px solid var(--border-subtle);padding-block-start:8px}
.guide-compare-card dt{font-weight:650;color:var(--text-muted);font-size:13px}
.guide-compare-card dd{margin:0;line-height:1.5}
@media(max-width:700px){.guide-compare{display:none}.guide-compare-cards{display:grid}}
@media(max-width:380px){.guide-compare-card dl>div{grid-template-columns:minmax(0,1fr);gap:2px}}
.guide-task-dialog{width:min(560px,calc(100vw - 24px))}
.guide-task-dialog form{padding:28px}
.guide-task-dialog fieldset{border:0;padding:0;margin:0;min-width:0}
.guide-task-preview{background:var(--surface-sunken);border-radius:10px;padding:12px 14px;margin:6px 0 14px}
.guide-task-preview p{margin:6px 0 0;white-space:pre-line;color:var(--text-muted);line-height:1.5}
.guide-task-from{display:flex;gap:6px;align-items:center;color:var(--text-muted);margin:0 0 8px}
.guide-task-from svg{width:16px;height:16px}
.guide-task-sources{margin-block:4px 10px}.guide-task-sources p{margin:4px 0 0}
.nav-item .icon-guide{width:19px;height:19px}
@media(max-width:959px){
  .guide-layout{grid-template-columns:minmax(0,1fr)}
  .guide-side{display:none}
  .guide-pickers{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}
  .guide-picker{flex:1 1 9rem;min-width:0}
  .guide-picker select{width:100%}
  .guide-picker-home{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding-inline:4px;color:var(--link);font-weight:600;text-decoration:none;flex-basis:100%}
  .guide-picker-home svg{width:18px;height:18px}
  .guide-picker-home[aria-current=page]{color:var(--text)}
  .guide-section{padding-block:6px}
  .guide-section-title{margin:0}
  .guide-section-body{padding-block-end:6px}
}
@media(max-width:700px){
  .guide-page{padding:18px 16px;border-radius:14px}
  .guide-header h1{font-size:26px}
  .guide-header-tools{width:100%}
  .guide-header-tools>*{flex:1 1 100%}
  .guide-actions .button,.guide-header-tools .button{width:100%;justify-content:center}
  .guide-grass-picker select{width:100%}
  .guide-signin-bar .button{width:100%}
  .guide-task-dialog form{padding:22px 18px}
  .guide-regions th{white-space:normal}
}
@media(pointer:coarse){
  .guide-side-link,.guide-local-links a,.guide-external,.guide-quote summary,.guide-picker-home,.guide-tile{min-height:44px}
  .guide-quote summary{display:inline-flex;align-items:center;min-width:44px}
  .guide-grass-picker select,.guide-picker select{min-height:44px}
  .guide-region-source,.guide-make-mine,.guide-added a,.guide-zip-prompt a{display:inline-flex;align-items:center;min-height:44px}
  .guide-added a{min-width:44px;justify-content:center}
}
@media(prefers-reduced-motion:reduce){.guide-toggle svg{transition:none}}
@media(forced-colors:active){.guide-side-link.is-current{outline:2px solid Highlight}}
/* Five nav tabs on phones (plan 006 adds Guide): narrower gutters so labels such as "Completed" fit whole at 390 px. */
@media(max-width:460px){.sidebar{padding-inline:max(10px,var(--safe-x))}.nav-list{gap:2px}.nav-item{padding-inline:2px}}
/* Focus moved by script to a heading (route change, a section link) draws no ring; keyboard focus still does. */
.guide-view h1:focus:not(:focus-visible),.guide-section-title:focus:not(:focus-visible),.guide-source-list li:focus:not(:focus-visible){outline:none}
/* Plan 006 L4: "Replace your draft with this question?" under the chat composer. */
.chat-prefill-offer{background:var(--info-tint);color:var(--text);border-radius:10px;padding:10px 12px;margin-block:8px 2px;display:grid;gap:8px}
.chat-prefill-text{margin:0;line-height:1.5}
.chat-prefill-text q{font-weight:600}
.chat-prefill-actions{display:flex;flex-wrap:wrap;gap:8px}
/* QA 006-A L-4: on narrow phones the guide pickers and the task dialog's category / due date stack full width,
   so long names ("St. Augustinegrass", "Soil & nutrients") are never cut. */
@media(max-width:460px){
  .guide-picker{flex-basis:100%}
  .guide-task-dialog .form-row{grid-template-columns:minmax(0,1fr)}
  .guide-task-dialog .form-row .form-field{margin-bottom:12px}
}
.guide-picker select,.guide-grass-picker select,.guide-task-dialog select{text-overflow:ellipsis;min-width:0}
@media(max-width:460px){.category-field{max-width:none;flex:1 1 100%}.category-field select{width:100%}}

/* --- Plan 007 Part 1: search (header box, #/search page). Tokens only; logical properties. --------------- */
body[data-view=search] main>:not(#search-view):not(.page-footer){display:none!important}
.header-search{display:flex;align-items:center;gap:8px;flex:1 1 14rem;max-width:380px;margin-inline:auto 4px;background:var(--surface-card);border:1px solid var(--border-control);border-radius:10px;padding-inline:10px;min-height:40px}
.header-search:focus-within{outline:2px solid var(--focus-ring);outline-offset:1px}
.header-search svg{width:16px;height:16px;color:var(--text-muted);flex-shrink:0}
.header-search input{border:0;background:transparent;color:var(--text);font:inherit;font-size:14px;min-width:0;flex:1;padding-block:8px;outline:none}
.header-search input::placeholder{color:var(--text-muted)}
.header-search-link{display:none;place-items:center;flex-shrink:0;width:40px;height:40px;border-radius:10px;color:var(--text);border:1px solid var(--border-control);background:var(--surface-card)}
.header-search-link svg{width:18px;height:18px}
@media(max-width:900px){.header-search{display:none}.header-search-link:not([hidden]){display:grid;margin-inline-start:auto}.top-date{display:none}}
.search-page{display:grid;gap:16px;max-width:900px}
.search-page h1{font-size:30px;letter-spacing:-.8px;margin:0;overflow-wrap:anywhere;outline-offset:4px}
.search-page h1:focus:not(:focus-visible){outline:none}
.search-form{display:grid;gap:6px}
.search-form-label{font-weight:600;color:var(--text-muted);font-size:14px}
.search-form-row{display:flex;gap:10px;align-items:stretch}
.search-form-icon{display:none}
.search-form input{flex:1;min-width:0;font:inherit;font-size:16px;color:var(--text);background:var(--surface-card);border:1px solid var(--border-control);border-radius:10px;padding:10px 12px;min-height:44px}
.search-form .field-error{margin:0}
.search-banner{display:flex;gap:10px;align-items:flex-start;background:var(--warning-tint);color:var(--text);border-radius:10px;padding:10px 12px;margin:0;line-height:1.5}
.search-banner svg{width:18px;height:18px;color:var(--warning);flex-shrink:0;margin-block-start:2px}
.search-filters{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;justify-content:space-between}
.search-chips-wrap{display:flex;flex-wrap:wrap;gap:8px;align-items:center;min-width:0}
.search-filters-label{font-size:13px;font-weight:600;color:var(--text-muted)}
.search-chips{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.search-chip{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:4px 10px 4px 12px;border-radius:999px;background:var(--accent-tint);color:var(--text);text-decoration:none;font-weight:600;font-size:14px;border:1px solid var(--border-control)}
.search-chip:hover{background:var(--surface-hover)}
.search-chip svg{width:14px;height:14px}
.search-types{display:inline-flex;border:1px solid var(--border-control);border-radius:10px;overflow:hidden}
.search-type{display:inline-flex;align-items:center;min-height:36px;padding:4px 12px;color:var(--text);text-decoration:none;font-size:14px;font-weight:500}
.search-type+.search-type{border-inline-start:1px solid var(--border-control)}
.search-type.is-current{background:var(--accent);color:var(--on-accent);font-weight:700}
.search-county{margin:0}
.search-county h2{font-size:16px}
.search-group{display:grid;gap:8px}
.search-group h2{font-size:14px;text-transform:uppercase;letter-spacing:1.1px;color:var(--text-muted);margin:6px 0 0}
.search-group-empty{color:var(--text-muted);margin:0}
.search-hits{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.search-hit{background:var(--surface-card);border:1px solid var(--border-subtle);border-radius:14px;padding:14px 16px;display:grid;gap:6px;min-width:0}
.search-hit-kind{display:inline-flex;gap:6px;align-items:center;font-size:12px;font-weight:650;text-transform:uppercase;letter-spacing:.8px;color:var(--text-muted)}
.search-hit-kind svg{width:14px;height:14px}
.search-hit h3{font-size:17px;margin:0;line-height:1.35;overflow-wrap:anywhere}
.search-hit h3 a{color:var(--link);text-underline-offset:3px}
.search-hit h3 a svg{width:14px;height:14px;margin-inline-start:4px;vertical-align:-1px}
.search-crumb{color:var(--text-muted)}
.search-lang,.search-heading{color:var(--text-muted);font-size:14px}
.search-heading{margin:0}
.search-snippet{margin:0;line-height:1.6;overflow-wrap:anywhere}
.search-snippet mark{background:var(--highlight);color:var(--on-highlight);font-weight:700;border-radius:3px;padding-inline:1px}
.search-hit .guide-stale{justify-self:start;margin:0}
.search-hit-actions{display:flex;flex-wrap:wrap;gap:8px}
.search-hit-actions .button{text-decoration:none}
.search-hit-actions [aria-expanded] svg{transition:transform .15s}
.search-hit-actions [aria-expanded=false] svg{transform:rotate(-90deg)}
:root[dir=rtl] .search-hit-actions [aria-expanded=false] svg{transform:rotate(90deg)}
.search-passage{margin:4px 0 0;padding:8px 12px;border-inline-start:3px solid var(--border-subtle);color:var(--text);background:var(--surface-sunken);border-radius:0 8px 8px 0;line-height:1.6;white-space:pre-line}
.search-passage-state{margin:0;color:var(--text-muted)}
.search-more{justify-self:start;text-decoration:none}
.search-none,.search-error,.search-idle{display:grid;justify-items:start;gap:10px;background:var(--surface-card);border:1px solid var(--border-subtle);border-radius:14px;padding:20px}
.search-none h2{font-size:19px;margin:0;overflow-wrap:anywhere}
.search-none p,.search-idle p,.search-error p{margin:0;line-height:1.55}
.search-none-actions{display:flex;flex-wrap:wrap;gap:10px}
.search-none-actions .button,.search-idle .button{text-decoration:none}
.search-loading{display:grid;gap:10px}
.search-hit-skeleton{display:grid;gap:8px;background:var(--surface-card);border:1px solid var(--border-subtle);border-radius:14px;padding:16px}
.search-hit-skeleton .skeleton:first-child{width:55%;height:18px}
@media(max-width:700px){
  .search-page h1{font-size:24px}
  .search-form-row{flex-direction:column}
  .search-form-row .button,.search-none-actions .button,.search-hit-actions .button{width:100%;justify-content:center}
  .search-filters{flex-direction:column;align-items:stretch}
  .search-types{display:flex}
  .search-type{flex:1;justify-content:center}
  .search-hit{padding:12px 14px}
}
@media(pointer:coarse){
  .search-chip,.search-type,.header-search-link{min-height:44px}
  .header-search-link{width:44px;height:44px;min-width:44px}
  .header-search{min-height:44px}
  .header-search input{min-height:44px;padding-block:0}
  .search-hit h3 a{display:inline-block;min-height:44px;padding-block:8px}
}
@media(prefers-reduced-motion:reduce){.search-hit-actions [aria-expanded] svg{transition:none}}
@media(forced-colors:active){.search-type.is-current{outline:2px solid Highlight}.search-snippet mark{forced-color-adjust:none}}

/* Plan 010: Contact us page, footer links, Inbox badge and the Messages tab of the admin Inbox, and "Delete my
   messages" in Settings. Logical properties only; every colour comes from the tokens above. */
body[data-view=contact] main>:not(#contact-view):not(.page-footer){display:none!important}
.footer-links{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 18px}
.footer-links a{display:inline-flex;align-items:center;min-height:28px;color:var(--link);font-size:12px;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.contact-view{display:block;padding-block:4px 12px}
.contact-page{max-width:860px;margin-inline:auto}
.contact-form{background:var(--surface-card);border:1px solid var(--border-subtle);border-radius:14px;padding:22px 18px}
.contact-body,.contact-topics{border:0;margin:0;padding:0;min-width:0}
.contact-top{display:grid;gap:14px;margin-block-end:16px}.contact-top-main{min-width:0}
.contact-topics legend,.contact-field>label{display:block;font-size:13px;font-weight:650;color:var(--text);padding:0;margin-block-end:8px}
.contact-topic-group{margin-block-end:12px}
.contact-group-name{font-size:12px;font-weight:600;color:var(--text-muted);margin-block-end:6px}
.contact-topic-row{display:flex;flex-wrap:wrap;gap:8px}
.contact-topics>.field-error{margin-block-start:0}
.contact-field{margin-block-end:16px;min-width:0}
.contact-field>input,.contact-field>select,.contact-field>textarea{display:block;inline-size:100%;border:1px solid var(--border-control);background:var(--surface-card);border-radius:7px;padding:11px;color:var(--text);font-size:16px;font-weight:400;min-block-size:44px}
.contact-field>textarea{resize:vertical;line-height:1.6;min-block-size:170px}
.contact-field>[aria-invalid=true]{border-color:var(--danger);background:var(--danger-tint)}
.contact-field .optional{font-size:12px}
.contact-row{display:grid;gap:0 14px}
.contact-message-foot{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.contact-message-foot .fb-counter{font-size:12px}
.contact-hint{display:flex;gap:10px;align-items:flex-start;background:var(--info-tint);color:var(--text);border-radius:8px;padding:11px 12px;font-size:13px;line-height:1.6;margin-block-start:10px}
.contact-hint .fb-icon{color:var(--info);margin-block-start:3px}
.contact-hint-links{display:flex;flex-wrap:wrap;gap:4px 16px;margin-block-start:4px}
.contact-blurb{background:var(--accent-tint);border-radius:10px;padding:14px 16px;font-size:13px;line-height:1.65;color:var(--text)}
.contact-blurb h2{font-size:15px;margin-block-end:6px}
.contact-blurb summary{cursor:pointer;font-weight:650}
.contact-blurb summary+p{margin-block-start:8px}
.contact-extra{position:absolute;inset-inline-start:-9999px;inline-size:1px;block-size:1px;overflow:hidden}
.contact-purpose{font-size:13px;line-height:1.6;color:var(--text-muted);margin-block:4px 14px}
.contact-privacy{margin-block:6px 0}
.contact-offline{display:flex;gap:8px;align-items:flex-start;background:var(--warning-tint);color:var(--warning);border-radius:8px;padding:10px 12px;font-size:13px;line-height:1.6;margin-block-end:12px}
.contact-offline .fb-icon{margin-block-start:2px}
.contact-actions{display:flex}
.contact-send{min-inline-size:180px}
.contact-success .button{margin-block-start:8px}
@media(min-width:701px){
  .contact-form{padding:30px 32px}.contact-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  .contact-field>input,.contact-field>select,.contact-field>textarea{font-size:14px}
}
@media(min-width:1200px){
  .contact-row.has-company{grid-template-columns:repeat(3,minmax(0,1fr))}
  .contact-top.has-blurb{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);align-items:start}
}
@media(max-width:700px){.contact-send{inline-size:100%}}
/* Account menu: how many new messages and feedback items wait in the Inbox (admins only). */
.menu-badge{margin-inline-start:auto;min-inline-size:22px;block-size:22px;padding-inline:6px;display:inline-grid;place-items:center;border-radius:999px;background:var(--accent);color:var(--on-accent);font-size:12px;font-weight:650;font-variant-numeric:tabular-nums}
/* Inbox → Messages */
.inbox-tag{border-radius:5px;padding-block:3px;padding-inline:7px;background:var(--surface-sunken);border:1px solid var(--border-subtle);color:var(--text-muted);font-weight:600}
.inbox-tag.is-alert{background:var(--danger-tint);border-color:transparent;color:var(--danger)}
.inbox-tag.is-warning{background:var(--warning-tint);border-color:transparent;color:var(--warning)}
.contact-item.is-overdue{border-inline-start:3px solid var(--warning);padding-inline-start:12px}
.contact-item-heading{margin:0;font-size:inherit;letter-spacing:0}
.contact-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;inline-size:100%;min-block-size:44px;border:0;background:transparent;text-align:start;padding-block:6px;padding-inline:0;border-radius:8px;color:var(--text)}
.contact-toggle:hover{background:var(--surface-hover)}
.contact-toggle-text{display:flex;flex-direction:column;gap:2px;min-inline-size:0}
.contact-subject{font-size:14px;font-weight:650;overflow-wrap:anywhere}
.contact-from{font-size:13px;font-weight:400;color:var(--text-muted);overflow-wrap:anywhere}
.contact-toggle .fb-icon svg{transition:transform .15s}.contact-toggle[aria-expanded=true] .fb-icon svg{transform:rotate(180deg)}
.contact-detail{padding-block:10px 4px}
.contact-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:8px 18px;margin:0 0 12px}
.contact-fact{min-inline-size:0}
.contact-fact dt{font-size:12px;font-weight:650;color:var(--text-muted)}
.contact-fact dd{margin:0;font-size:13.5px;line-height:1.6;overflow-wrap:anywhere;white-space:pre-wrap}
.contact-actions-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-block-start:8px}
.contact-actions-row a.button{text-decoration:none}
.contact-ask,.contact-confirm{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;background:var(--surface-sunken);border:1px solid var(--border-subtle);border-radius:10px;padding:10px 12px;font-size:13px}
.contact-ask{margin-block-start:10px}
.contact-ask p,.contact-confirm p{flex:1 1 180px;margin:0;font-weight:600}
.contact-filters .contact-spam-filter{align-self:flex-end;margin-block-end:10px;font-size:13px}
.settings-messages{border-block-start:1px solid var(--border-subtle);margin-block-start:6px;padding-block-start:14px}
.settings-messages h3{font-size:14px;margin-block-end:6px}
/* Plan 007 part 2: Settings → Privacy usage-data switch and the signed-out choice inside the privacy note. */
.settings-usage{border-block-start:1px solid var(--border-subtle);margin-block-start:6px;padding-block-start:14px}
.settings-usage:empty,.privacy-usage:empty{display:none}
.settings-usage h3{font-size:14px;margin-block-end:6px;scroll-margin-block-start:16px}
.settings-usage h3:focus-visible{outline:2px solid var(--focus-ring);outline-offset:3px;border-radius:4px}
.settings-usage .settings-actions{margin-block-start:10px}
.settings-usage>.auth-muted{margin-block-start:12px}
.usage-state{margin-block:6px 8px;font-size:13px;font-weight:600;color:var(--text)}
.privacy-usage{border-block-start:1px solid var(--border-subtle);margin-block-start:10px;padding-block-start:2px}
.privacy-usage .setting-switch{margin-block-start:8px}
.privacy-usage .setting-switch label{font-size:13px}
.switch-input:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:700px){.contact-actions-row .button,.contact-ask .button,.contact-confirm .button{flex:1 1 auto}.contact-facts{grid-template-columns:minmax(0,1fr)}}
@media(pointer:coarse){
  .footer-links a{min-height:44px;min-width:44px;justify-content:center}
  .contact-blurb summary{padding-block:12px}
  .contact-hint-links a{display:inline-flex;align-items:center;min-height:44px}
  .contact-spam-filter{min-height:44px}
}
@media(prefers-reduced-motion:reduce){.contact-toggle .fb-icon svg{transition:none}}
