@font-face{font-family:DM Sans;src:url(/static/fonts/dm-sans.ttf) format("truetype");font-weight:100 1000;font-display:swap}@font-face{font-family:DM Serif;src:url(/static/fonts/dm-serif.ttf) format("truetype");font-weight:400;font-display:swap}
:root{--bg:#f8f8f4;--paper:#fffefa;--ink:#292f2b;--muted:#636b64;--line:#dddfd6;--green:#2d5848;--green-dark:#244537;--pale:#e8eee7;--red:#913e43;--serif:"DM Serif",Georgia,serif;--sans:"DM Sans",system-ui,sans-serif;font-family:var(--sans);font-size:100%;color:var(--ink);background:var(--bg);color-scheme:light}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{touch-action:manipulation}button{cursor:pointer;color:inherit}a{color:var(--green)}button:disabled{opacity:.55}.skip{position:fixed;inset:4px auto auto 4px;transform:translateY(-150%);padding:12px;background:white;z-index:100}.skip:focus{transform:none}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #b87942;outline-offset:3px}button:focus:not(:focus-visible),main:focus{outline:none}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:var(--serif);font-weight:400}h1{font-size:clamp(2.35rem,4vw,3.1rem);line-height:1.12;letter-spacing:-.045em}h2{font-size:1.65rem;line-height:1.2;letter-spacing:-.035em}h3{font-size:1.23rem;line-height:1.3}small{font-size:.79rem}.ico{width:19px;height:19px;display:inline-block;flex:none;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}.ico.sm{width:14px;height:14px}.muted,.sub{color:var(--muted)}.sub{line-height:1.5;margin-top:6px;font-size:.94rem}.btn,.icon-btn,.text-btn,.nav-item,.account,.quick,.row-hit,.avatar,.tile-btn{border:0;background:none}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#fffefa;border:1px solid #cdd2c7;border-radius:7px;min-height:40px;padding:8px 14px;font-weight:600;font-size:.88rem;line-height:1.35;text-decoration:none}.btn:hover,.icon-btn:hover{background:#eff1eb}.btn.primary{background:var(--green);border-color:var(--green);color:white}.btn.primary:hover{background:#214635}.btn.berry{background:#8a383e;border-color:#8a383e;color:white}.icon-btn{width:36px;height:36px;display:inline-grid;place-items:center;border-radius:6px}.text-btn{color:var(--green);font-size:.84rem;font-weight:650;padding:6px 0;display:inline-flex;align-items:center;gap:5px}.text-btn:hover{text-decoration:underline}#shell{display:grid;grid-template-columns:238px minmax(0,1fr);min-height:100dvh}#sidebar{position:sticky;top:0;height:100dvh;display:flex;flex-direction:column;background:#f5f5ed;border-inline-end:1px solid var(--line);z-index:15;overflow-y:auto}.brand{height:99px;display:flex;align-items:center;gap:11px;padding:10px 22px;text-decoration:none;color:#294d3d}.brand img{width:43px;height:50px;transform:rotate(-6deg)}.brand span{font:1.8rem/.98 var(--serif);letter-spacing:-.055em;white-space:nowrap}.brand small{display:block;font:700 .59rem/1.3 var(--sans);letter-spacing:.15em;margin-top:8px;color:#646b5f}.nav-group{margin:20px 14px 27px}.nav-heading{font-size:.68rem;font-weight:750;letter-spacing:.14em;text-transform:uppercase;color:#72796e;margin:0 13px 11px}.nav-item{display:flex;align-items:center;gap:12px;text-align:left;padding:11px 13px;min-height:42px;width:100%;margin:3px 0;border-radius:7px;color:#505950;font-weight:500;text-decoration:none;font-size:.9rem}.nav-item:hover{background:#eaeee4}.nav-item.active{color:#244e3e;background:#dfe8dc;font-weight:700}.nav-item.active .ico{stroke-width:2}.aside-bottom{margin-top:auto;padding-top:24px}.side-progress{margin:0 16px 22px;padding:16px 15px 14px;border:1px solid #d5ddcf;border-radius:9px;background:#eaf0e4}.little-line{display:flex;align-items:center;gap:7px;font-size:.82rem;font-weight:650;color:var(--green)}.progress-bar{height:5px;border-radius:5px;background:#d1dccd;overflow:hidden;margin:13px 0 7px}.progress-bar i{height:100%;display:block;background:#577b61;border-radius:5px}.side-progress small{font-size:.75rem;color:#53634e}.account{border-top:1px solid var(--line);width:100%;display:flex;align-items:center;gap:10px;padding:17px 19px;text-align:left}.account:hover{background:#eef0e6}.account strong,.account small{display:block}.account strong{font-size:.86rem}.account small{font-size:.76rem;color:var(--muted);margin-top:2px}.account>.ico{margin-left:auto}.avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#e4e9df;color:#35553f;font-size:.76rem;font-weight:750;border:1px solid #cbd5c3;letter-spacing:.04em}.account .avatar{border-radius:9px;background:#ebe6db;border-color:#ddd7c7;color:#725c45}
.main-shell{min-width:0}.topbar{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(20px,3.1vw,52px);border-bottom:1px solid var(--line);background:#fffefa}.crumb,.top-tools,.season-select{display:flex;align-items:center}.crumb{gap:13px;font-size:.86rem}.crumb strong{font-weight:550}.workspace-label,.crumb-slash{color:#757c73}.crumb-slash{opacity:.63}.top-tools{gap:15px}.season-select{border:1px solid #d9ddd3;border-radius:7px;gap:7px;background:white;padding:0 10px;color:#455244}.season-select>svg{pointer-events:none;width:16px}.season-select select{padding:7px 18px 7px 0;margin-right:-20px;appearance:none;border:0;background:transparent;font-size:.83rem;font-weight:600;cursor:pointer;color:#354436}.season-select .sm{width:13px}.mobile-toggle{display:none}main{max-width:1590px;margin:auto;padding:clamp(22px,2.35vw,40px) clamp(20px,3.1vw,52px) 48px}
.hero{min-height:220px;border-radius:12px;border:1px solid #dedbcc;background:#ede9df url(/static/art/season.webp) center right/cover no-repeat;display:flex;align-items:center;padding:26px clamp(20px,2.8vw,46px);overflow:hidden;position:relative;isolation:isolate}.hero:before{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,rgba(246,241,228,.6),rgba(246,241,228,.23) 44%,transparent 69%)}.hero-content{max-width:57%}.eyebrow{font-size:.67rem;font-weight:750;letter-spacing:.15em;color:#73564b;display:flex;align-items:center;gap:7px;text-transform:uppercase;margin:0 0 10px}.eyebrow .ico{height:14px;width:14px}.hero h1{font-size:clamp(2.65rem,4vw,4rem);color:#293d31;line-height:1.03}.hero p:not(.eyebrow){font-size:.93rem;color:#4d5548;margin:9px 0 18px;line-height:1.5}.actions,.form-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.hero .btn{min-height:37px;font-size:.82rem;padding:8px 13px}.hero .btn:not(.primary){background:#fffcf3d9;border-color:#c9c5b9}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:22px 0}.metric{border:1px solid var(--line);background:var(--paper);padding:17px 18px 16px;border-radius:9px;position:relative}.metric-top{display:flex;align-items:center;gap:9px;font-size:.82rem;color:#495248;font-weight:600}.icon-tile{width:33px;height:33px;display:grid;place-items:center;border-radius:9px;flex:none}.sage{background:#e7eee2;color:#3f664b}.rose{background:#f5e5e4;color:#9a4851}.sand{background:#f3ebd8;color:#8a6b2b}.blue{background:#e6edf0;color:#4b6a75}.lilac{background:#eee9f3;color:#79638a}.metric-value{font:2.65rem/1.06 var(--serif);color:#273c2c;letter-spacing:-.045em;margin:12px 0 5px}.metric small{color:#687065;font-size:.77rem}.dash-grid{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(245px,1fr);gap:20px;align-items:start}.panel{background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:22px}.panel.flush{padding:0;overflow:hidden}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:20px 21px 16px}.panel-head h2,.quick-panel h2{font-size:1.46rem}.quick-panel{padding:20px 19px 7px}.quick-list{margin-top:9px}.quick{display:flex;align-items:center;text-align:left;gap:12px;width:100%;padding:15px 0;border-top:1px solid #e8e8df}.quick:first-child{border:0}.quick>span:nth-child(2){flex:1}.quick strong,.quick small{display:block}.quick strong{font-size:.88rem;font-weight:650}.quick small{font-size:.77rem;color:#687064;margin-top:4px;line-height:1.4}.quick>.ico{width:14px;color:#788073}.quick:hover strong,.name-link:hover{text-decoration:underline;color:var(--green)}.quick .icon-tile{width:38px;height:38px}.table-wrap{overflow:auto;container-type:inline-size;width:100%}table{border-collapse:separate;border-spacing:0;width:100%;font-size:.87rem;text-align:left}thead th{background:#f2f4ec;border-block:1px solid #e0e4d9;font-size:.69rem;font-weight:700;text-transform:uppercase;letter-spacing:.065em;color:#5d675c;padding:10px 14px;white-space:nowrap;text-align:left}thead{position:sticky;top:0;z-index:1}td,tbody th{border-bottom:1px solid #e8e9e1;padding:13px 14px;vertical-align:middle;text-align:left}tr:last-child td,tr:last-child th{border-bottom:0}td:first-child,th:first-child{padding-left:21px}td:last-child,th:last-child{padding-right:18px}.person-cell{display:flex;align-items:center;gap:11px;min-width:0}.initial{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font:1rem/1 var(--serif);flex:none;letter-spacing:-.03em}.name-link{border:0;background:none;text-align:left;padding:0;color:#303b32;font:600 .86rem/1.4 var(--sans)}.person-cell small,.place small{display:block;font-size:.755rem;line-height:1.4;color:#747a70;margin-top:2px;font-weight:400}.place{font-size:.84rem;color:#51594f}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:20px;padding:4px 9px;font-size:.7rem;font-weight:650;white-space:nowrap;line-height:1.3}.badge.sage{background:#e6eee2}.badge.neutral{background:#f1f0e9;color:#6d6d5e}.badge .ico{width:12px;height:12px}.table-foot{padding:12px 21px;background:#fafaf4;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;font-size:.77rem;color:#6d7468}.panel + .panel,.section-gap{margin-top:20px}.page-header{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:4px 0 23px}.page-header p,.page-title+p{color:var(--muted);margin:7px 0 0;line-height:1.5}.page-title{font:400 clamp(2.15rem,3.5vw,3rem)/1.12 var(--serif);letter-spacing:-.04em}.tools{display:flex;gap:10px;flex-wrap:wrap;align-items:center;padding:15px 19px;border-block-end:1px solid var(--line)}.search{display:inline-flex;align-items:center;gap:8px;border:1px solid #cdd3c7;border-radius:7px;background:white;padding:0 10px;flex:1;min-width:160px}.search input{width:100%;height:38px;border:0;outline:0!important;font-size:.87rem}.search .ico{color:#7a8376;width:16px}.search:focus-within{outline:2px solid #9daf98}.tools select,.field select,select.input{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235b6859' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;padding-right:30px}.tools select,.input,.field input:not([type=checkbox]):not([type=radio]),.field select,.field textarea{font:inherit;font-size:.9rem;border:1px solid #cdd2c7;border-radius:6px;padding:9px 11px;background-color:white;color:var(--ink);min-width:0}.tools select,.field select{padding-right:29px}.field{display:grid;gap:6px;align-content:start;min-width:0}.field span,.field>label{font-size:.82rem;font-weight:600;color:#485246}.field textarea{min-height:79px;resize:vertical}.form-stack{display:grid;gap:15px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:13px 15px}.span2{grid-column:1/-1}.notice{border:1px solid #d7dfcb;color:#475a3c;background:#f1f5e9;padding:11px 14px;border-radius:7px;font-size:.88rem;line-height:1.5}.notice.warn{background:#fbf3e1;border-color:#e9d9b7;color:#74562e}.empty{text-align:center;padding:34px 18px;font-size:.9rem;color:var(--muted)}.tile-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(195px,1fr));gap:15px}.tile-btn{display:flex;flex-direction:column;align-items:flex-start;gap:12px;background:var(--paper);border:1px solid var(--line);border-radius:9px;text-align:left;padding:22px}.tile-btn:hover{border-color:#819879}.tile-btn strong{font:1.3rem var(--serif)}.tile-btn small{line-height:1.5;color:var(--muted)}.review-list{display:grid;gap:6px}.review-list button{justify-content:space-between}.checkline{display:flex;align-items:center;gap:7px;font-size:.87rem}.checkline input,input[type=checkbox],input[type=radio]{accent-color:var(--green)}dialog{border:1px solid #cdd2c6;border-radius:12px;color:var(--ink);background:var(--paper);padding:0;width:min(530px,calc(100% - 24px));max-height:90dvh;box-shadow:0 16px 70px #14281e33}dialog.wide{width:min(995px,calc(100% - 24px))}dialog::backdrop{background:#18251d69}.modal-top{display:flex;justify-content:space-between;align-items:center;padding:18px 22px 14px;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:3;background:var(--paper)}.modal-top h2{font-size:1.6rem}#modal-body{padding:21px 22px;min-width:0}.modal-top .icon-btn{flex:none}.form-error,[data-error]{color:#963c43;line-height:1.4}.modal-actions{border-top:1px solid var(--line);padding-top:16px;justify-content:flex-end;margin-top:3px}dialog p{line-height:1.55}#toast{position:fixed;z-index:40;left:50%;bottom:20px;transform:translateX(-50%) translateY(130%);max-width:min(90vw,640px);background:#294b39;color:#fff;border-radius:8px;padding:12px 18px;font-size:.9rem;box-shadow:0 3px 14px #1b2f1e28;transition:transform .15s;visibility:hidden}#toast.show{transform:translateX(-50%) translateY(0);visibility:visible}#drawer-shade{display:none}.switches{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.address-view{white-space:pre-line;font-size:.94rem;line-height:1.6;color:#434c42}.minihead{font-weight:650;font-size:.81rem;color:#67725e;margin:0 0 8px}.diff-box{border:1px solid var(--line);border-radius:8px;background:#f6f7ef;padding:16px}.badge-row{display:flex;gap:6px;flex-wrap:wrap}.profile-layout{max-width:750px}.directory-select{width:18px;height:18px}.details-list{display:grid;gap:10px}.auth-panel details summary{cursor:pointer;font-weight:600;padding:9px 0}.auth-panel .form-actions{justify-content:flex-start}.auth-panel .form-stack{gap:11px}.ready-section{margin-top:22px}.ready-section h2{margin-bottom:12px}
@container(max-width:580px){.dash-table .place-column{display:none}}
@media(min-width:1650px){#shell{grid-template-columns:258px minmax(0,1fr)}.hero{min-height:260px}.metric{padding:22px}.dash-grid{grid-template-columns:2.1fr 1fr}}
@media(max-width:1150px){#shell{grid-template-columns:202px minmax(0,1fr)}.brand{padding-inline:14px}.brand span{font-size:1.68rem}.nav-group{margin-inline:10px}.metrics{gap:9px}.metric{padding:14px}.dash-grid{grid-template-columns:minmax(0,1.65fr) minmax(225px,1fr);gap:13px}.quick-panel{padding-inline:14px}.panel-head{padding-inline:15px}.hero-content{max-width:65%}}
@media(max-width:900px){#shell{grid-template-columns:170px minmax(0,1fr)}.brand{gap:5px;padding-inline:8px}.brand img{width:35px}.brand span{font-size:1.5rem}.brand small{font-size:.52rem}.nav-item{padding-inline:10px;gap:9px}.nav-group{margin-inline:7px}.side-progress{margin-inline:10px}.account{padding-inline:11px}.dash-grid{grid-template-columns:1fr}.quick-list{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.quick:nth-child(2){border:0}.metric-top{gap:7px;font-size:.76rem}.metric .icon-tile{width:27px;height:27px}.metric{padding:12px}.hero{min-height:205px}.hero-content{max-width:68%}.metrics{gap:8px}}
@media(max-width:720px){#shell{display:block}#sidebar{position:fixed;inset:0 auto 0 0;width:240px;transform:translateX(-101%);transition:transform .16s}body.nav-open #sidebar{transform:translateX(0)}body.nav-open #drawer-shade{display:block;position:fixed;inset:0;border:0;background:#18251d70;z-index:14}.mobile-toggle{display:inline-grid}.topbar{height:59px;padding:0 15px 0 8px}.crumb{gap:8px}.top-tools{gap:9px}.top-tools>.avatar{width:32px;height:32px}.season-select{padding-inline:7px}.season-select select{font-size:.77rem}.brand{padding:14px 20px;gap:12px}.brand span{font-size:1.85rem}.brand small{font-size:.6rem}.brand img{width:43px}.nav-group{margin-inline:13px}main{padding:17px 15px 38px}.hero{min-height:204px;padding:20px;background-position:65% center}.hero:before{background:linear-gradient(90deg,#f5efdff5,#f5efe1d9 46%,transparent 80%)}.hero-content{max-width:80%}.hero h1{font-size:2.6rem}.hero p:not(.eyebrow){font-size:.84rem;max-width:270px}.eyebrow{font-size:.61rem}.metrics{grid-template-columns:1fr 1fr;margin:14px 0;gap:10px}.metric{padding:13px 15px}.metric-value{font-size:2.15rem;margin:8px 0 3px}.metric-top{font-size:.81rem}.quick-list{display:block}.quick:nth-child(2){border-top:1px solid var(--line)}.grid2{gap:11px}.page-header{align-items:flex-start;flex-wrap:wrap}.top-tools .ico{width:14px}.brand small{margin-top:7px}.tools{padding:12px}.hero .btn{font-size:.77rem;min-height:36px}.table-wrap .person-cell{gap:7px}.workspace-label,.crumb-slash{display:none}.page-header .actions{margin-top:1px}.panel-head .text-btn{font-size:.78rem}.quick-panel{padding:18px 18px 6px}.modal-top{padding:13px 15px}#modal-body{padding:16px}.grid2.form-small{grid-template-columns:1fr}.side-progress{margin-inline:16px}}
@media(max-width:400px){.hero-content{max-width:90%}.table-wrap .initial{width:28px;height:28px}.hero .actions{gap:5px}.hero .btn{padding:7px 9px}.grid2{grid-template-columns:1fr}.span2{grid-column:auto}.panel-head h2{font-size:1.3rem}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.dash-grid>.panel{margin-top:0}.sample-note{margin-bottom:15px;padding:10px 13px;background:#eff2e9;border:1px solid #d7decd;border-radius:7px;color:#485640;font-size:.8rem;line-height:1.45}.sample-note .text-btn{font-size:inherit;padding:0;text-decoration:underline}.top-tools>.guest-avatar{width:auto;border-radius:7px;height:34px;display:inline-flex;align-items:center;gap:6px;padding:0 10px;background:#edf2e7;font-size:.8rem;letter-spacing:0}.top-tools>.guest-avatar:hover{background:#e1eadc}

/* Navigation, form feedback, and keyboard focus */
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
html:has(dialog[open]), html:has(.nav-open) { overflow: hidden; }
html { scrollbar-gutter: stable; }
#modal, #sidebar { overscroll-behavior: contain; }
#modal { scroll-padding-top: 5.5rem; scroll-padding-bottom: 1.25rem; }
#modal-heading:focus, #view h1:focus { outline: none; }
#discard-dialog { padding: 22px; }
#discard-dialog p { margin-top: 9px; color: var(--muted); }
#discard-dialog .actions { margin-top: 18px; }
#dialog-status.show { margin: 14px 18px 0; background: #e6eee2; color: #244537; padding: 10px 14px; border-radius: 6px; }
.brand-row { display: flex; justify-content: space-between; align-items: center; }
.nav-heading, .workspace-label, .crumb-slash { color: #576252; }
.crumb-slash { opacity: 1; }
.person-cell small, .place small, .field small, .table-foot { color: #586452; }
.sand { color: #71541b; }
.lilac { color: #665076; }
.badge.neutral { color: #57574c; }
.badge { white-space: normal; overflow-wrap: anywhere; }
.search:focus-within, :is(button,a,input,textarea,select,[tabindex]):focus-visible {
  outline-color: #865120;
}
:disabled { cursor: default; }
.btn:disabled[aria-busy=true], form[aria-busy=true] button[type=submit]:disabled { cursor: progress; }
.form-section { min-width: 0; margin: 0; padding: 0 0 18px; border: 0; border-bottom: 1px solid var(--line); }
.form-section legend { margin-bottom: 12px; padding: 0; font: 1.22rem/1.3 var(--serif); }
.form-section .field small { font-weight: 400; }
.grid2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.form-stack .household-season { justify-self: start; }
.field input:disabled { background-color: #f1f2ed !important; color: #646d60 !important; }
.review-list button, .person-cell, .address-view { overflow-wrap: anywhere; }
.empty strong { display: block; color: var(--ink); }
.empty p { margin: 5px 0 10px; }
.panel.flush { min-width: 0; }
.directory-tools { align-items: end; }
.directory-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.directory-filter { display: grid; gap: 4px; font-size: .8rem; font-weight: 650; color: #455140; }
.directory-filter select { max-width: 100%; font: 500 .86rem var(--sans); }
.directory-tools .search { min-height: 40px; }
#filter-toggle, .cell-label, .activity-link span { display: none; }
.list-summary { display: flex; align-items: center; gap: 12px; padding: 4px 18px; min-height: 45px; flex-wrap: wrap; color: var(--muted); font-size: .84rem; }
.page-check { margin-left: auto; display: flex; align-items: center; gap: 7px; min-height: 36px; cursor: pointer; }
.check-target { display: inline-grid; place-items: center; min-height: 36px; min-width: 30px; cursor: pointer; }
.page-check input, .check-target input { width: 17px; height: 17px; margin: 0; }
.selection-bar { background: #edf3e9; border-top: 1px solid var(--line); }
.selection-bar strong { font-size: .88rem; }
.bulk-status-tools { display:flex; flex-wrap:wrap; align-items:center; gap:4px; }
.bulk-status-tools span { font-size:.84rem; font-weight:600; margin-inline-end:4px; }
.bulk-status-options { min-width:0; margin:0; padding:0; border:0; display:flex; flex-wrap:wrap; gap:4px 12px; }
.bulk-status-options legend { font-weight:650; margin-bottom:2px; }
.bulk-status-options label { display:inline-flex; align-items:center; gap:6px; min-height:44px; cursor:pointer; }
.bulk-status-options input { margin:0; accent-color:var(--green); }
.directory-selection-options { margin-inline-start:auto; max-width:100%; display:flex; align-items:center; gap:.45rem; }
.selection-segments { display:flex; min-width:0; border:1px solid var(--line); border-radius:7px; background:#fffefa; }
.selection-segments > * { display:flex; align-items:center; justify-content:center; gap:.3rem; margin:0; min-height:34px; padding:3px .55rem; color:var(--green); font:inherit; font-weight:600; }
.selection-segments button { background:transparent; border:0; border-inline-start:1px solid var(--line); }
.selection-segments small { font-size:.78rem; font-weight:500; font-variant-numeric:tabular-nums; }
.selection-segments .page-check { border-radius:6px 0 0 6px; }
.selection-segments button:last-child { border-radius:0 6px 6px 0; }
.selection-segments :is(button:focus-visible,.page-check:has(:focus-visible)) { outline:2px solid var(--green); outline-offset:-2px; }
@media (hover:hover) {
  .selection-segments :is(button:enabled,.page-check):hover { background:#edf3e9; }
}
.selection-bar { column-gap:16px; row-gap:8px; }
.selection-count small { display:block; font-weight:500; font-size:.8rem; }
.selection-output { margin-inline-start:auto; }
.selection-output summary { cursor:pointer; color:var(--green); font-weight:650; font-size:.85rem; padding-block:10px; }
.selection-output[open] { flex-basis:100%; order:2; }
.selection-output>div { display:flex; flex-wrap:wrap; gap:6px; padding-bottom:4px; }
.selection-clear { margin-inline-start:auto; }
.selection-output:not([open])+.selection-clear { margin-inline-start:0; }
.bulk-status-options label { border:1px solid var(--line); border-radius:6px; padding-inline:10px; }
.bulk-status-options label:has(:checked) { border-color:var(--green); background:#edf3e9; }
.bulk-status-options label:focus-within { outline:2px solid var(--green); outline-offset:2px; }
#bulk-activity [data-summary] { font-size:.9rem; line-height:1.5; }
@media (max-width:1020px) {
  .list-summary .directory-views { margin-inline-start:auto; }
  .selection-bar:not([hidden]) { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:2px 8px; padding-block:6px; }
  .selection-clear { grid-area:1/2; justify-self:end; }
  .selection-count { grid-area:1/1; }
  .bulk-status-tools { grid-column:1/-1; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); }
  .bulk-status-tools span { grid-column:1/-1; }
  .bulk-status-tools .btn { padding-inline:2px; justify-content:center; white-space:nowrap; font-size:.8rem; }
  .selection-output { grid-column:1/-1; margin:0; }
  .selection-output summary { width:fit-content; min-height:44px; align-content:center; }
  .selection-output:not([open]):has(+.selection-history) { grid-column:1; grid-row:3; }
  .selection-output:not([open])+.selection-history { grid-column:2; grid-row:3; }
  .selection-output[open]+.selection-history { grid-column:1/-1; justify-self:end; }
}
@media (max-width:360px) {
  .list-summary .directory-views button { padding-inline:8px; }
  .selection-segments button { flex-direction:column; gap:0; padding-inline:.35rem; }
}
@media (pointer:coarse) {
  .bulk-status-tools .btn, .selection-output summary, .selection-segments > * { min-height:44px; }
}
#selection-quick { position: fixed; z-index: 4; bottom: max(14px,env(safe-area-inset-bottom)); right: max(14px,env(safe-area-inset-right)); min-height: 44px; max-width: calc(100% - 28px); box-shadow: 0 3px 14px #20382f30; }
.directory-panel:has(#selection-quick:not([hidden])) { padding-bottom: 64px; }
body:has(#toast.show) #selection-quick { visibility: hidden; }
.directory-table :is(th,td) { padding-inline: 10px; }
.directory-table :is(th,td):first-child { padding-left: 14px; }
.directory-table :is(th,td):last-child { padding-right: 17px; }
.directory-table td { color: #45503f; font-size: .84rem; }
.directory-table small { display: block; }
.directory-table tbody { overflow-wrap: anywhere; }
.directory-table .row-person { max-width: 280px; }
.directory-table .row-address { line-height: 1.5; }
@media (max-width: 1100px) {
  .directory-tools { align-items: center; }
  #filter-toggle { display: inline-flex; }
  .directory-filters { display: none; flex-basis: 100%; }
  .directory-filters.expanded { display: flex; }
  .directory-filter { flex: 1 1 135px; min-width: 0; }
}
@media (max-width: 1020px) {
  .directory-table, .directory-table tbody { display: block; }
  .directory-table thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .directory-table tbody tr {
    display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr) auto;
    grid-template-areas: "person person checkbox" "address tags tags" "mail action action";
    align-items: start; gap: 12px 10px; border-top: 1px solid var(--line); padding: 15px 18px;
  }
  .directory-table tbody tr:has(.row-received) { grid-template-areas: "person person checkbox" "mail received received" "prior action action"; }
  .directory-table tbody :is(th,td), .directory-table tbody :is(th,td):first-child,
  .directory-table tbody :is(th,td):last-child { min-width: 0; padding: 0; border: 0; }
  .directory-table .row-person { grid-area: person; max-width: none; }
  .row-checkbox { grid-area: checkbox; justify-self: end; }
  .directory-table .row-address { grid-area: address; }
  .row-mail { grid-area: mail; }
  .row-tags { grid-area: tags; }
  .row-action { grid-area: action; justify-self: end; align-self: end; }
  .row-received { grid-area: received; }
  .row-prior { grid-area: prior; }
  .cell-label { display: block; margin-bottom: 3px; color: #53614e; font-size: .74rem; font-weight: 650; }
  .activity-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: auto; min-height: 42px; padding: 0 8px; font-weight: 650; font-size: .84rem; color: var(--green); }
  .activity-link span { display: inline; }
  .directory-table .name-link { font-size: 1rem; }
}
@media (max-width: 720px) {
  html { scrollbar-gutter: auto; }
  #sidebar { width: min(290px,calc(100% - 36px)); }
  .brand-row { padding-right: 10px; }
  .brand-row .brand { padding-inline: 16px 0; }
  .nav-item { min-height: 44px; }
  .topbar { padding-inline: 5px 10px; gap: 5px; }
  .crumb { min-width: 0; gap: 3px; }
  .crumb strong { font-size: .8rem; line-height: 1.2; }
  .top-tools { gap: 6px; flex-shrink: 0; }
  .top-tools>.avatar, .season-select, .btn, .icon-btn, .hero .btn { min-height: 44px; }
  .top-tools>.avatar, .icon-btn { min-width: 44px; }
  .top-tools>.guest-avatar { width: auto; white-space: nowrap; }
  .season-select { position: relative; padding-inline: 0; }
  .season-select .ico { position: absolute; left: 6px; }
  .season-select .ico.sm { left: auto; right: 6px; }
  .season-select select { width: 100%; height: 42px; margin: 0; padding: 0 21px 0 25px; font-size: .85rem; }
  .hero-content { max-width: 94%; }
  .hero-content .actions { row-gap: 6px; }
  .hero .btn { font-size: .82rem; }
  .panel-head .text-btn, .list-summary .text-btn, .selection-bar .text-btn, .checkline, .check-target, .page-check { min-height: 44px; }
  .check-target { min-width: 44px; }
  .directory-filters.expanded { display: grid; grid-template-columns: 1fr 1fr; }
  .directory-filter:first-child { grid-column: 1 / -1; }
  .directory-tools { gap: 8px; }
  .directory-tools .search { flex: 1 1 110px; min-width: 0; }
  .directory-tools #filter-toggle { padding-inline: 12px; }
  .list-summary { padding: 4px 14px; gap: 8px; }
  .directory-table tbody tr { padding: 12px 14px; }
  .directory-table .name-link { min-height: 32px; }
  .directory-table .row-person .person-cell { min-height: 44px; }
  .field input:not([type=checkbox]):not([type=radio]), .field textarea, .field select,
  .search input, .tools select, .input { font-size: 16px; min-height: 44px; }
  dialog { max-width: calc(100% - 16px); max-height: calc(100dvh - 20px); }
  #modal-body { padding-bottom: max(16px,env(safe-area-inset-bottom)); }
  .grid2:has(.diff-box) { grid-template-columns: 1fr; }
  .modal-actions { gap: 8px; }
  .table-foot { padding-inline: 14px; }
  #toast { width: max-content; bottom: max(14px,env(safe-area-inset-bottom)); }
}
@media (max-width: 440px) {
  .crumb strong { display: none; }
  .hero h1 { font-size: clamp(2.05rem,9vw,2.6rem); }
  .grid2 { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
}
@media (forced-colors: active) {
  .badge, .nav-item.active { border: 1px solid currentColor; }
}

.mobile-brand { display: none; }
@media (max-width: 440px) {
  .mobile-brand { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 32px; color: #294d3d; text-decoration: none; }
  .mobile-brand img { width: 25px; height: 30px; transform: rotate(-5deg); }
  .mobile-brand span { font: 1rem var(--serif); letter-spacing: -.04em; }
}
@media (max-width: 365px) {
  .mobile-brand span { display: none; }
}

.term-heading, .term-label { display:flex; align-items:center; gap:5px; min-width:0; }
.term-heading :is(h1,h2,h3) { min-width:0; }
.term-help { display:inline-flex; flex:none; align-items:center; vertical-align:middle; }
.term-trigger {
  display:inline-grid; place-items:center; flex:none; width:28px; height:28px; padding:0;
  border:0; border-radius:50%; background:transparent; color:#506a56; cursor:help;
}
.term-trigger .ico { width:17px; height:17px; }
.term-trigger:hover, .term-trigger[aria-expanded=true] { color:#224936; background:#e5ecdf; }
.term-popup {
  position:fixed; inset:auto; margin:0; z-index:90; width:18.5rem; max-width:calc(100vw - 20px);
  box-sizing:border-box; padding:12px 14px; border:1px solid #335440; border-radius:8px;
  color:#fff; background:#284535; text-align:left; white-space:normal; overflow-wrap:anywhere;
  font:400 .92rem/1.5 var(--sans); letter-spacing:normal; text-transform:none;
  box-shadow:0 5px 18px #17271b33;
}
.term-popup strong, .term-popup span { display:block; color:inherit; font:inherit; }
.term-popup strong { font-weight:700; margin-bottom:3px; }
.term-label label { color:#485246; font-size:.82rem; font-weight:600; }
.term-heading + p { margin-top:6px; }
.modal-top>.term-heading { margin-right:auto; }
@media(max-width:720px) {
  .term-trigger { width:44px; height:44px; }
  .term-label { min-height:44px; }
  .term-label+.field-input { margin-top:-4px; }
}

.term-trigger.term-word { width:auto; min-height:28px; height:auto; line-height:1.4; border-radius:3px; color:#35513d; font:inherit; text-decoration:underline dotted; text-underline-offset:3px; }
@media(max-width:720px) { .term-trigger.term-word { min-height:44px; } }

.term-help .term-popup, .term-help .term-popup :is(strong,span) { color:#fff; }
.term-help .term-popup { font:400 .92rem/1.5 var(--sans); }
.term-help .term-popup strong { font-weight:700; }
@media(max-width:1000px) {
  .hero:before { background:linear-gradient(90deg,#f7f1e4ed 0%,#f7f1e4dc 57%,#f7f1e4bd 78%,#f7f1e414 100%); }
}
#modal[open]:has(.studio-scroll) { display:flex; flex-direction:column; overflow:hidden; }
#modal:has(.studio-scroll) .modal-top, #modal:has(.studio-scroll) #dialog-status { flex:none; }
#modal:has(.studio-scroll) #modal-body { display:flex; flex-direction:column; min-height:0; padding:0; }
#modal-body :is(.st-form,.receipt-form):has(>.studio-scroll) { display:flex; flex-direction:column; min-height:0; gap:0; }
.studio-scroll {
  display:grid; gap:.95rem; min-height:0; overflow:auto; overscroll-behavior:contain;
  padding:20px 22px; scroll-padding:16px;
}
#modal-body .studio-scroll+.st-footer { flex:none; position:static; margin:0; }
@media(max-width:720px) { .studio-scroll { padding:16px; } }

/* Feature guides use the same type and stationery palette as the workspace. */
.workspace-guide {
  display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:36px;
  padding:5px 9px; border:1px solid transparent; border-radius:7px; background:transparent;
  color:#365642; font-weight:650; font-size:.86rem;
}
.workspace-guide .ico { width:17px; height:17px; }
.workspace-guide:hover { background:#edf1e8; border-color:#dce3d5; }
#modal-guide { margin:0 3px 0 6px; flex:none; }
.guide-page-head { display:flex; align-items:center; gap:18px; padding:24px clamp(16px,3vw,38px);
  border:1px solid #d9dece; border-radius:12px; background:linear-gradient(100deg,#eef2e7 0%,#f4f4ea 70%,#f8f5e9 100%); }
.guide-book { display:grid; flex:none; place-items:center; width:54px; height:62px; background:#dce7d3;
  border:1px solid #c1d0b7; border-radius:5px 12px 12px 5px; box-shadow:inset 4px 0 #b8c8ae; color:#36573e; }
.guide-page-head p { margin-top:6px; color:#4c5d49; line-height:1.45; }
.guide-library { margin-top:20px; }
.guide-search { display:flex; max-width:42rem; gap:12px; }
.guide-search .search input { min-height:45px; }
.guide-count { margin:10px 0; color:#55634f; font-size:.88rem; }
.guide-count:empty { margin:0; }
.guide-groups { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:18px; margin-top:18px; }
.guide-group { border:1px solid var(--line); border-radius:10px; background:var(--paper); min-width:0; }
.guide-group-head { display:flex; align-items:center; gap:10px; padding:16px 18px 14px; border-bottom:1px solid var(--line); }
.guide-group-head h2 { font-size:1.3rem; }
.guide-group ul { list-style:none; padding:0; margin:0; }
.guide-group li+li { border-top:1px solid #eaebe2; }
.guide-group li button { background:transparent; border:0; display:flex; gap:10px; align-items:center; justify-content:space-between;
  width:100%; min-height:58px; text-align:left; padding:12px 18px; }
.guide-group li button:hover { background:#f1f4e9; }
.guide-group li:last-child button { border-radius:0 0 10px 10px; }
.guide-group li button:focus-visible { outline-offset:-3px; }
.guide-group li strong,.guide-group li small { display:block; }
.guide-group li strong { font:650 .95rem/1.4 var(--sans); color:#294535; }
.guide-group li small { margin-top:3px; font-size:.85rem; line-height:1.45; color:#586351; }
.guide-group li .ico { color:#587052; }
.guide-empty { grid-column:1/-1; padding:24px; border-radius:10px; border:1px solid var(--line); background:var(--paper); }
.guide-empty p { margin:6px 0 15px; }
#guide-dialog { width:min(620px,calc(100% - 24px)); border-color:#c9d0c2; overflow:auto; overscroll-behavior:contain; }
.guide-dialog-head { position:sticky; z-index:2; top:0; display:flex; align-items:center; justify-content:space-between;
  gap:10px; padding:14px 20px; border-bottom:1px solid var(--line); background:var(--paper); }
.guide-dialog-head .icon-btn { flex:none; }
#guide-title { font-size:1.55rem; overflow-wrap:anywhere; }
#guide-title:focus { outline:none; }
#guide-content { padding:20px 22px 19px; }
#guide-content .guide-groups { grid-template-columns:minmax(0,1fr); }
.guide-intro { display:flex; align-items:center; gap:12px; }
.guide-intro .icon-tile { width:42px; height:42px; }
.guide-intro small { display:block; font-size:.8rem; font-weight:650; color:#51634d; }
.guide-intro p { margin-top:2px; color:#394d3c; line-height:1.4; }
.guide-steps { list-style:none; margin:19px 0 0; padding:0; counter-reset:guide-step; }
.guide-steps li { position:relative; display:grid; grid-template-columns:30px minmax(0,1fr); gap:12px; padding-bottom:18px; counter-increment:guide-step; }
.guide-steps li:not(:last-child):after { position:absolute; z-index:-1; content:""; left:14px; top:28px; bottom:0; border-left:1px solid #d9e1d2; }
.guide-steps li:before { content:counter(guide-step); display:grid; place-items:center; border-radius:50%; width:29px; height:29px;
  background:#e6eee0; color:#345538; font:650 .84rem var(--sans); }
.guide-steps h3 { margin:2px 0 3px; color:#2d4132; font:650 1rem/1.4 var(--sans); }
.guide-steps p { color:#505b4d; line-height:1.54; font-size:.94rem; }
.guide-actions { display:flex; justify-content:space-between; flex-wrap:wrap; gap:9px; border-top:1px solid var(--line); padding-top:13px; }
.guide-actions .text-btn { min-height:42px; }
@media(max-width:920px) { .guide-groups { grid-template-columns:minmax(0,1fr); } }
@media(max-width:720px) {
  .top-tools .workspace-guide { min-width:44px; min-height:44px; padding:0; }
  .top-tools .workspace-guide span { display:none; }
  #modal-guide,.guide-actions .text-btn { min-height:44px; }
  .mobile-brand span { display:none; }
  .guide-book { width:40px; height:47px; }
  .guide-page-head { padding:16px; gap:12px; }
  .guide-group-head,.guide-group li button { padding-inline:14px; }
  .guide-dialog-head { padding:10px 13px; }
  #guide-content { padding:15px; }
}
@media(max-width:365px) {
  .mobile-brand { display:none; }
  #modal-guide { min-width:44px; padding:3px; margin-inline:2px; }
  #modal-guide .ico { display:none; }
  .guide-actions .btn { flex:1 1 100%; }
}

.hero-content { min-width:0; }
.hero h1, .hero-content>p { overflow-wrap:anywhere; }
.hero h1 { font-size:clamp(2.4rem,3.6vw,3.8rem); }
.hero-content>p:not(.eyebrow) { max-width:52ch; }
.address-paths { margin-top:18px; padding:17px 20px 19px; }
.paths-heading, .quick-heading { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:5px 12px; }
.paths-heading h2 { font-size:1.4rem; }
.paths-heading p { color:#515c50; font-size:.9rem; line-height:1.45; margin-top:3px; }
.paths-heading>.btn { border-color:transparent; color:var(--green); }
.path-choices { display:flex; flex-wrap:wrap; gap:8px; margin-top:13px; }
.path-choices .btn { background:#f7f8f0; }
.path-choices .btn:hover { background:#eaf0e3; }
.empty-home { display:block; margin-top:18px; }
.guide-steps { isolation:isolate; }
@media(max-width:720px){
  .hero h1 { font-size:clamp(2.05rem,8vw,2.7rem); }
  .hero-content { max-width:96%; }
  .hero .actions { gap:8px; }
  .hero .btn { padding-inline:10px; }
  .address-paths { padding:14px; }
  .path-choices { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,7.5rem),1fr)); gap:7px; }
  .path-choices .btn { justify-content:flex-start; min-width:0; font-size:.85rem; padding-inline:8px; }
  .paths-heading>.btn { padding-inline:0; text-decoration:underline; text-underline-offset:3px; }
}

.hero:before { background:linear-gradient(90deg,#f7f1e4ed 0%,#f7f1e4dd 52%,#f7f1e487 63%,transparent 78%); }
.hero .eyebrow { color:#523b30; }
.hero p:not(.eyebrow) { color:#344734; }
@media(min-width:721px) and (max-width:1150px) {
  .hero:before { background:linear-gradient(90deg,#f7f1e4f2 0%,#f7f1e4e1 65%,#f7f1e4ad 75%,#f7f1e411 96%); }
}
@media(max-width:720px) {
  .hero:before { background:linear-gradient(90deg,#f7f1e4ed 0%,#f7f1e4de 60%,#f7f1e4b8 100%); }
  .metric-top { min-height:44px; }
}

/* One card can be recorded directly from the season overview. */
.home-receipt { display:flex; align-items:center; gap:12px; width:100%; min-height:56px;
  padding:9px 16px; margin-block:14px; border:1px solid #c4d0c3; border-radius:9px;
  color:var(--green); background:var(--paper); text-align:start; font:600 1rem var(--sans); cursor:pointer; }
.home-receipt:hover { background:#eef3eb; }
.home-receipt>.ico { margin-inline-start:auto; flex:none; }
.receipt-search .field,.receipt-form { min-width:0; }
.receipt-search .search { width:100%; }
.receipt-search .search input { width:100%; min-width:0; }
.receipt-tools,.receipt-context { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.receipt-context { justify-content:space-between; color:var(--muted); font-size:.9rem; }
.receipt-form .receipt-context .text-btn { min-height:40px; }
.receipt-count { margin:0; font-size:.9rem; }
.receipt-match { width:100%; text-align:start; min-height:52px; white-space:normal; }
.receipt-match>span { display:grid; gap:2px; min-width:0; }
.receipt-match small,.receipt-identity p { color:var(--muted); }
.receipt-match>.ico { flex:none; }
.receipt-identity { border-inline-start:3px solid #9aae96; padding-inline-start:12px; }
.receipt-identity h3 { margin:0 0 4px; }
.receipt-identity p,.receipt-diff p,.receipt-sent { margin:0; }
.receipt-identity,.receipt-diff { overflow-wrap:anywhere; }
.receipt-extra { border-block-start:1px solid var(--line); }
.receipt-extra>summary { cursor:pointer; padding-block:12px; font-weight:600; }
.receipt-extra[open]>summary { margin-bottom:5px; }
.receipt-diff { display:grid; gap:12px; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); align-items:start; }
.receipt-sent { color:var(--green); font-size:.9rem; }
.receipt-form .checkline { padding-block:6px; min-height:44px; cursor:pointer; }
.receipt-form .checkline input { width:19px; height:19px; flex:none; }
.receipt-form fieldset { min-width:0; }
@media (max-width:720px), (pointer:coarse) {
  .receipt-match,.receipt-tools .btn,.receipt-form .btn,.receipt-form .receipt-context .text-btn { min-height:44px; }
  .receipt-extra>summary, .hcm-intake summary { min-height:44px; align-content:center; }
  .receipt-form input:not([type=checkbox]),.receipt-form textarea,.receipt-search input { font-size:1rem; }
}
@media(max-width:720px) {
  .receipt-diff { grid-template-columns:1fr; }
  .receipt-form .modal-actions .primary { flex:1 1 auto; }
  .receipt-tools .btn { flex:1 1 auto; }
  .home-receipt { margin-block:10px; }
}
@media(max-width:720px) and (max-height:520px) {
  #modal:has(.receipt-form) .modal-top { position:static; }
}


.receipt-search .field .search { padding-inline-start:12px; }
.receipt-search .field .search input { border:0; background:transparent; font-weight:400; }
.receipt-search .search:focus-within { outline:2px solid var(--green); outline-offset:2px; }
.receipt-search .search input:focus { outline:none; }
@media(pointer:coarse), (max-width:720px) {
  .hero .btn, .panel-head .text-btn, .quick-heading .text-btn, .person-cell .name-link, .directory-table .name-link,
  .sample-note .text-btn, .btn, .icon-btn, .workspace-guide, .nav-item, .term-trigger.term-word,
  .checkline, .check-target, .page-check, .table-foot button, .list-summary button, .selection-bar button,
  .top-tools .avatar, .season-select, .season-select select { min-height:44px; }
  .icon-btn, .term-trigger:not(.term-word), .check-target, .top-tools .avatar { min-width:44px; min-height:44px; }
  #view .field input:not([type=checkbox]), #view .field select, .search input,
  #modal .field input:not([type=checkbox]), #modal .field select, .field textarea,
  .tools select { font-size:1rem; min-height:44px; }
  .topbar { padding-inline-start:max(8px,env(safe-area-inset-left)); padding-inline-end:max(10px,env(safe-area-inset-right)); }
  #sidebar { padding-bottom:env(safe-area-inset-bottom); }
  dialog { max-width:calc(100% - 16px - env(safe-area-inset-left) - env(safe-area-inset-right)); }
}
@media (pointer:coarse) and (max-height:540px) and (min-width:721px) and (max-width:1024px) {
  #shell { display:block; }
  #sidebar { position:fixed; inset:0 auto 0 0; width:290px; transform:translateX(-101%); }
  body.nav-open #sidebar { transform:translateX(0); }
  body.nav-open #drawer-shade { display:block; position:fixed; inset:0; background:#18251d70; z-index:14; }
  .mobile-toggle { display:inline-grid; }
  .topbar { height:54px; }
}
@media(max-height:540px) and (pointer:coarse) {
  #modal .modal-top,.guide-dialog-head { position:static; }
  dialog { max-height:calc(100dvh - 12px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
}


.receipt-form .studio-scroll + .modal-actions { flex:none; margin:0; padding:10px 16px max(10px,env(safe-area-inset-bottom)); }
.receipt-form .studio-scroll .sample-note { margin:0; }

@media(max-width:720px) {
  .topbar { height:auto; min-height:59px; flex-wrap:wrap; padding-block:4px; }
  .top-tools { flex-wrap:wrap; justify-content:flex-end; max-width:100%; margin-inline-start:auto; }
}

@media (min-width:721px) and (max-width:1100px) {
  .topbar { height:auto; min-height:72px; flex-wrap:wrap; gap:6px; padding-block:6px; }
  .top-tools { max-width:100%; flex-wrap:wrap; justify-content:flex-end; margin-inline-start:auto; }
}


@media(max-width:720px) {
  .metrics { grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr)); }
  .page-header>div { min-width:0; max-width:100%; }
  .page-header .term-heading, .home-directory .panel-head { flex-wrap:wrap; }
  .page-header h1 { overflow-wrap:anywhere; }
}
