@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Caslon+Text:ital,wght@0,400;0,700;1,400&display=swap');
:root{--green:#173e34;--forest:#12382e;--gold:#c3a46a;--paper:#f5f4ef;--ink:#253d34;--muted:#748078;--line:#e2e6df;--red:#a33d32}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px 'DM Sans',system-ui,sans-serif}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}a{color:inherit;text-decoration:none}button{border:1px solid #ccd5cb;background:#fff;color:var(--ink);border-radius:6px;padding:10px 14px;cursor:pointer;font-weight:600}button:hover{border-color:#6f907b;background:#f4f7f2}button:disabled{opacity:.45;cursor:not-allowed}button.primary,a.primary{background:var(--green);color:white;border:1px solid var(--green);padding:11px 16px;border-radius:6px}.danger{color:var(--red)}.sidebar{position:fixed;inset:0 auto 0 0;width:235px;background:var(--forest);color:#e9eee7;padding:29px 20px;display:flex;flex-direction:column;overflow-y:auto}.brand{display:flex;gap:12px;align-items:center;font:700 23px Georgia,serif;letter-spacing:1.7px}.brandmark{display:grid;place-items:center;width:42px;height:46px;border:1px solid var(--gold);color:var(--gold);font-size:32px}.brand small{display:block;font:8px 'DM Sans',sans-serif;letter-spacing:1.7px;margin-top:7px;color:#b3c6b9}.nav-caption{font-size:8px;letter-spacing:1.5px;color:#8da99c;margin:39px 8px 16px}.sidebar nav{display:grid;gap:4px}.sidebar nav button{text-align:left;background:none;color:#bcd0c2;border:0;font-size:13px;font-weight:500;padding:11px 13px;display:flex;align-items:center;gap:12px}.sidebar nav button.active{background:#2c5144;color:#fff;box-shadow:inset 3px 0 var(--gold)}.nav-icon{width:19px;text-align:center;color:#afc0af}.sidebar-bottom{margin-top:auto;display:grid;gap:13px;font-size:11px;padding:28px 10px 0;color:#b3c7b8}.sidebar-bottom small{font-size:10px;line-height:1.7;color:#87a493;border-top:1px solid #365549;padding-top:17px}.workspace{margin-left:235px}header{min-height:80px;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px 38px;border-bottom:1px solid var(--line);background:#fcfcf8;flex-wrap:wrap}.eyebrow{font-size:9px;font-weight:700;letter-spacing:1.8px;color:#879286}.workspace-label{display:block;font-size:13px;margin-top:5px}.header-actions{display:flex;gap:25px;align-items:center;font-size:11px;color:#637568}header .cloud-status-button{font-size:10px!important;padding:8px;margin-left:auto}main{max-width:1650px;margin:auto;padding:25px 38px 40px}.notice{border-left:3px solid var(--gold);padding:10px 13px;background:#eeede1;color:#657063;font-size:11px;line-height:1.6;border-radius:2px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:27px 0 23px}.page-heading .eyebrow{color:#69806e}h1{font-family:'Libre Caslon Text',Georgia,serif;font-weight:400;font-size:37px;line-height:1.2;letter-spacing:-1px;margin:10px 0 12px}h2{font-size:17px;margin:0 0 13px;letter-spacing:-.3px}h3{font-size:14px;margin:0 0 12px}.page-heading p:not(.eyebrow){max-width:680px;color:var(--muted);font-size:12px;line-height:1.6;margin:0}.actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.period{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-bottom:22px;font-size:11px}.period label{display:flex;gap:8px;align-items:center}.period input{width:140px;padding:7px;background:#fff;border:1px solid var(--line);border-radius:4px}.period button{padding:7px 12px;font-size:11px}.muted{color:var(--muted);font-size:11px;line-height:1.6}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:24px}.card{background:#fff;border:1px solid var(--line);border-radius:8px;padding:22px;min-width:0}.metric-label{font-size:10px;color:#758076;font-weight:600}.metric-value{font:400 29px Georgia,serif;letter-spacing:-.7px;margin:16px 0 11px}.metric-note{font-size:10px;color:#859085}.card.highlight{background:var(--green);color:white;border-color:var(--green)}.highlight .metric-label,.highlight .metric-note{color:#afc5b6}.grid-two{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:20px;margin:20px 0}.panel{background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden;margin-bottom:20px}.panel-head{padding:19px 21px;display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--line)}.panel-body{padding:21px}.panel-head h2{margin:0}.section-label{font-size:9px;text-transform:uppercase;letter-spacing:1.6px;color:#859084}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px}th{text-align:left;padding:12px 18px;background:#fafbf7;font-size:9px;letter-spacing:.8px;text-transform:uppercase;color:#839080;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:15px 18px;border-bottom:1px solid #edf0e9;vertical-align:middle;line-height:1.5}tr:last-child td{border-bottom:0}td .actions button{font-size:10px;padding:6px 8px}.numeric{font-variant-numeric:tabular-nums;white-space:nowrap}.badge{display:inline-block;font-size:9px;font-weight:600;border-radius:4px;padding:4px 7px;background:#edf2e9;color:#55714b;white-space:nowrap}.badge.amber{background:#faf0d7;color:#8b6c25}.badge.red{background:#fae7e2;color:#a54b3b}.badge.gray{background:#eceeea;color:#6c786e}.empty{padding:45px 25px;text-align:center;color:#78887a}.empty strong{display:block;color:#3c5846;font-size:15px;margin:10px}.empty p{max-width:420px;margin:12px auto 20px;font-size:12px;line-height:1.6}.search-row{padding:14px 20px;display:flex;gap:12px;border-bottom:1px solid var(--line)}.search-row input{max-width:370px;width:100%;padding:10px;border:1px solid var(--line);border-radius:5px}.alert-item,.activity-item{padding:13px 0;border-bottom:1px solid var(--line);font-size:12px;line-height:1.6}.alert-item:last-child,.activity-item:last-child{border:0}.alert-item button{float:right;font-size:10px;padding:6px 8px}.activity-item small{display:block;color:var(--muted);font-size:10px}.bar-chart{height:190px;display:flex;align-items:end;gap:10px;padding:25px 5px 10px}.chart-column{flex:1;display:flex;flex-direction:column;justify-content:flex-end;height:100%;min-width:20px}.chart-bar{background:#406d57;border-radius:3px 3px 0 0;min-height:2px}.chart-column small{text-align:center;font-size:8px;color:#8b978c;padding-top:7px}.chart-column span{text-align:center;font-size:9px;margin-bottom:7px}.onboarding{background:#e7eddf;border:1px solid #d5decb;padding:22px;border-radius:8px;margin-bottom:24px}.onboarding h2{font:22px Georgia,serif}.step-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:18px}.step-grid button{text-align:left;font-size:11px;background:#f6f9f0}.step-grid small{display:block;color:#839176;font-size:10px;margin-top:5px}.split{display:flex;justify-content:space-between;gap:20px;align-items:center}footer{padding:20px 38px;border-top:1px solid var(--line);font-size:10px;color:#8b978a;display:flex;justify-content:space-between}dialog{width:min(800px,95vw);max-height:90dvh;overflow:auto;border:1px solid #ccd7cb;border-radius:12px;padding:0;background:#fbfcf8;color:var(--ink);box-shadow:0 25px 100px #0e352c44}dialog::backdrop{background:#0c2e2580;backdrop-filter:blur(3px)}.dialog-top,.dialog-bottom{padding:19px 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:10px}.dialog-bottom{border:0;border-top:1px solid var(--line);justify-content:flex-end;position:sticky;bottom:0;background:#fbfcf8}.dialog-top h2{margin:0}.dialog-top button{border:0;background:none}#editor-fields{padding:23px;display:grid;grid-template-columns:1fr 1fr;gap:15px}#editor-fields>label{display:block;font-size:11px;font-weight:600}#editor-fields input,#editor-fields select,#editor-fields textarea{width:100%;margin-top:6px;border:1px solid #cdd7c9;border-radius:5px;background:#fff;padding:11px;color:var(--ink);font-size:13px}textarea{min-height:90px;resize:vertical}.full{grid-column:1/-1}.line-item{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:7px;align-items:center;margin:8px 0}.line-item button{padding:8px}.line-labels{font-size:10px;color:var(--muted);display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:7px}.error{color:var(--red);font-size:12px;margin:0 24px 15px}.field-help{font-size:10px;line-height:1.7;color:#788b77;font-weight:400}#toast{position:fixed;bottom:25px;right:25px;background:#173e34;color:white;padding:15px 22px;max-width:460px;border-radius:8px;box-shadow:0 8px 35px #12382e33;z-index:20;font-size:12px}.cloud-storage-panel{background:white}.cloud-storage-panel h2{font-size:16px}.trend{color:#9e4d39;font-size:11px}.good{color:#39805c}.category-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.report-value{font-size:25px;font-family:Georgia,serif;margin:10px 0}.subnav{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:20px}.subnav button.active{background:#173e34;color:white}.button-link{color:#2c6d50;text-decoration:underline;cursor:pointer;background:none;border:0;padding:0}.file-row{display:flex;gap:10px;padding:10px 0;align-items:center}.cloud-status-button{align-self:center}.schema-note{padding:14px 20px;color:#7c887c;font-size:11px;background:#f8faf4;line-height:1.7}@media(min-width:1600px){main{padding:34px 55px}.cards{gap:22px}}@media(max-width:1100px){.sidebar{width:195px;padding:23px 14px}.workspace{margin-left:195px}main{padding:22px}.cards{grid-template-columns:repeat(2,1fr)}.grid-two{grid-template-columns:1fr}.step-grid{grid-template-columns:repeat(2,1fr)}header{padding:17px 22px}}@media(max-width:720px){.sidebar{position:static;width:100%;padding:16px}.brand{font-size:21px}.brandmark{height:35px;width:34px}.nav-caption,.sidebar-bottom{display:none}.sidebar nav{display:flex;overflow-x:auto;gap:5px;margin-top:16px}.sidebar nav button{white-space:nowrap;padding:9px}.workspace{margin-left:0}header{padding:13px 16px}.header-actions{gap:12px;font-size:10px}main{padding:17px}.page-heading{align-items:start;flex-direction:column}h1{font-size:31px}.cards{gap:10px}.card{padding:17px}.metric-value{font-size:25px}.category-grid{grid-template-columns:1fr}.period input{width:125px}.period .muted{display:none}.line-item{grid-template-columns:1.5fr 1fr 1fr auto;font-size:11px}#editor-fields{padding:17px;gap:12px}.dialog-top{padding:16px}footer span{display:none}.cloud-storage-panel{font-size:12px!important}}

[hidden]{display:none!important}input:focus,select:focus,textarea:focus,button:focus-visible,a:focus-visible{outline:2px solid #bca164;outline-offset:3px}#cloudMount .cloud-storage-panel{margin-top:0!important}
/* Management identity: the logo is clipped from the restaurant's original photo,
   keeping the original artwork and pixels rather than recreating the lettering. */
.official-brand{display:flex;flex-direction:column;align-items:flex-start;gap:14px;letter-spacing:0;padding:0 9px}.official-logo{display:block;position:relative;overflow:hidden;width:165px;aspect-ratio:540/368;background:#000;border-radius:5px}.official-logo img{position:absolute;width:185.185185%;height:auto;max-width:none;left:-38.888889%;top:-92.391304%}.brand-caption{font:600 8px 'DM Sans',system-ui,sans-serif;letter-spacing:2.05px;color:#8e9fa3}.nav-caption{margin-top:29px}h1{font-family:'DM Sans',system-ui,sans-serif;font-size:36px;font-weight:600;letter-spacing:-1.5px;line-height:1.15}.page-heading{margin-top:31px;margin-bottom:25px}.metric-value,.report-value{font-family:'DM Sans',system-ui,sans-serif;font-weight:600;letter-spacing:-1px}.onboarding h2{font-family:'DM Sans',system-ui,sans-serif;font-weight:500;font-size:21px}.panel,.card,.onboarding{border-radius:10px}.card{padding:23px}.metric-label{font-size:9px;letter-spacing:.65px}.header-actions #theme-toggle{font-size:10px;padding:7px 10px;font-weight:500}.brandmark{display:none}.sidebar{padding-top:23px}.sidebar nav button{border-radius:6px}.sidebar nav button.active{box-shadow:inset 3px 0 #b73f49}.page-heading .eyebrow{letter-spacing:2px}.period{padding-bottom:19px;border-bottom:1px solid var(--line)}
html[data-theme="dark"]{color-scheme:dark;--green:#a93743;--forest:#0b1114;--gold:#bb8d57;--paper:#10171b;--ink:#e2e9ec;--muted:#899ba3;--line:#263239;--red:#f08083}
html[data-theme="dark"] body{background:radial-gradient(ellipse at 90% 0%,#192329 0,transparent 45%),var(--paper);color:var(--ink)}
html[data-theme="dark"] .sidebar{background:#0b1114;border-right:1px solid #233039}
html[data-theme="dark"] .sidebar nav button{color:#8e9fa6;font-weight:500}
html[data-theme="dark"] .sidebar nav button:hover{background:#192329;color:#e5ecee}
html[data-theme="dark"] .sidebar nav button.active{background:linear-gradient(90deg,#332027,#1f2027);color:#f3dfe2;box-shadow:inset 3px 0 #be4651}
html[data-theme="dark"] .nav-caption{color:#586c75}
html[data-theme="dark"] .nav-icon{color:#a9b6bc}
html[data-theme="dark"] .sidebar-bottom{color:#84979f}
html[data-theme="dark"] .sidebar-bottom small{border-color:#253038;color:#576d76}
html[data-theme="dark"] header{background:#10171bee;border-color:#29343b}
html[data-theme="dark"] header .eyebrow{color:#637d89}
html[data-theme="dark"] .header-actions{color:#8b9da5}
html[data-theme="dark"] button{background:#1b252b;color:#cbd7dd;border-color:#34424a;box-shadow:0 1px 2px #0002}
html[data-theme="dark"] button:hover{background:#24323a;border-color:#52636c;color:#fff}
html[data-theme="dark"] button.primary,html[data-theme="dark"] a.primary{background:linear-gradient(135deg,#ad3c48,#8c2c36);border-color:#c04c57;color:#fff;box-shadow:0 3px 12px #94293720}
html[data-theme="dark"] .notice{background:#24251f;border-color:#ad915c;color:#b7b49c}
html[data-theme="dark"] .page-heading .eyebrow{color:#b2767d}
html[data-theme="dark"] .card,html[data-theme="dark"] .panel{background:#172126;border-color:#2a373f;box-shadow:0 6px 24px #00000010}
html[data-theme="dark"] .card.highlight{background:linear-gradient(125deg,#34262d,#1e272f);border-color:#61404a;position:relative}
html[data-theme="dark"] .card.highlight:before{content:"";height:2px;position:absolute;top:0;left:21px;right:21px;background:linear-gradient(90deg,#b84551,transparent)}
html[data-theme="dark"] .metric-label{color:#8398a2}
html[data-theme="dark"] .metric-value{color:#edf2f4}
html[data-theme="dark"] .metric-note{color:#738b96}
html[data-theme="dark"] .highlight .metric-label{color:#bfa0a8}
html[data-theme="dark"] .highlight .metric-note{color:#9e8996}
html[data-theme="dark"] th{background:#141e23;color:#7c929c;border-color:#2c3940}
html[data-theme="dark"] td{border-color:#243138;color:#b7c7ce}
html[data-theme="dark"] tbody tr:hover{background:#1c2a31}
html[data-theme="dark"] .badge{background:#203c33;color:#88c4aa}
html[data-theme="dark"] .badge.amber{background:#393322;color:#ceb779}
html[data-theme="dark"] .badge.red{background:#42272e;color:#e99ca2}
html[data-theme="dark"] .badge.gray{background:#27343b;color:#91a7b2}
html[data-theme="dark"] .onboarding{background:linear-gradient(115deg,#1a282c,#1d242a);border-color:#31464e}
html[data-theme="dark"] .step-grid button{background:#1d2e35;border-color:#344c55;color:#c0d0d7}
html[data-theme="dark"] .step-grid small{color:#6f919d}
html[data-theme="dark"] .empty{color:#81959e}
html[data-theme="dark"] .empty strong{color:#b2c5cf}
html[data-theme="dark"] .bar-chart .chart-bar{background:linear-gradient(0deg,#76434d,#c56b75)}
html[data-theme="dark"] .chart-column small,html[data-theme="dark"] .chart-column span{color:#7f99a6}
html[data-theme="dark"] .period input,html[data-theme="dark"] .search-row input{background:#172228;border-color:#35454e;color:#d5e0e6}
html[data-theme="dark"] .cloud-storage-panel{background:#162127;border-color:#3b505a!important}
html[data-theme="dark"] .cloud-storage-panel input,html[data-theme="dark"] .cloud-storage-panel select{background:#101a20;color:#cbd9e0;border:1px solid #3e515c}
html[data-theme="dark"] dialog{background:#172127;color:#dfE8ec;border-color:#42525d;box-shadow:0 30px 110px #0009}
html[data-theme="dark"] dialog::backdrop{background:#03070bba}
html[data-theme="dark"] .dialog-bottom{background:#141f25;border-color:#33424c}
html[data-theme="dark"] #editor-fields input,html[data-theme="dark"] #editor-fields select,html[data-theme="dark"] #editor-fields textarea{background:#101a20;color:#d6e2e8;border-color:#3b4d58}
html[data-theme="dark"] .field-help{color:#829ba7}
html[data-theme="dark"] .error{color:#f09399}
html[data-theme="dark"] .button-link{color:#e69ba4;background:none;border:0;box-shadow:none}
html[data-theme="dark"] .subnav button.active{background:#3f2c35;color:#e8c2c9;border-color:#76505b}
html[data-theme="dark"] #toast{background:#263d47;color:#e0edf4;border:1px solid #496775}
html[data-theme="dark"] footer{border-color:#24333c;color:#566e7a}
@media(max-width:720px){.official-brand{flex-direction:row;align-items:center;gap:18px}.official-logo{width:100px}.brand-caption{max-width:130px;line-height:1.9;font-size:8px}h1{font-size:29px}.sidebar{padding:15px}.page-heading{margin-top:24px}.card{padding:17px}}

.supplier-name,.invoice-date{background:none!important;border:0!important;box-shadow:none!important;padding:4px 0!important;text-align:left;text-decoration:underline;text-underline-offset:4px;color:inherit!important;min-height:36px;font-weight:600}.supplier-name:hover,.invoice-date:hover{color:var(--gold)!important}.invoice-document{min-width:0}.invoice-pdf{display:block;width:100%;height:62dvh;min-height:350px;border:1px solid var(--line);border-radius:6px;background:#fff;margin:15px 0}.invoice-document .table-scroll{max-width:100%}
.price-history-controls{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}.price-history-controls select{max-width:100%;padding:10px;border:1px solid var(--line);border-radius:6px;background:var(--paper);color:var(--ink)}
.scan-line-card{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;border:1px solid var(--line);padding:14px;border-radius:8px;margin:12px 0}.scan-line-card h4{grid-column:1/-1;margin:0}.scan-line-card label{min-width:0}.scan-review-confirm{display:flex!important;gap:10px;align-items:flex-start}.scan-review-confirm input{width:auto!important;flex:0 0 auto}.invoice-photo{display:block;width:100%;height:auto;max-height:80dvh;object-fit:contain;background:#fff;border:1px solid var(--line);margin:12px 0}details summary{cursor:pointer;padding:12px 0;font-weight:600}

/* Refined management finish; scoped to the management workspace. */
:root{--line:#e2e4e5}
button,a.primary{border-radius:9px;transition:background-color .15s ease,border-color .15s ease,box-shadow .15s ease}
.sidebar nav{gap:5px}.sidebar nav button{min-height:42px;border-radius:9px;padding:11px 14px}.nav-caption{font-size:9px;letter-spacing:1.6px}.nav-icon{opacity:.85}
header{min-height:84px}.workspace-label{font-weight:500;letter-spacing:-.2px}.header-actions{gap:18px}
main{padding-top:28px}.page-heading{margin:29px 0 26px}h1{font-size:clamp(29px,3.1vw,43px);font-weight:600;letter-spacing:-1.7px}.page-heading p:not(.eyebrow){font-size:13px;line-height:1.7}
.card,.panel,.onboarding{border-radius:15px}.card{padding:25px}.cards{gap:18px}.metric-label{font-size:10px;letter-spacing:.65px}.metric-value{font-size:34px;font-weight:500;letter-spacing:-1.3px;font-variant-numeric:tabular-nums}.metric-note{font-size:11px;line-height:1.6}.panel-head{padding:21px 23px}.panel-body{padding:23px}h2{font-size:17px;font-weight:600}.subnav{gap:6px}.subnav button{padding:9px 15px;font-size:12px}.badge{border-radius:6px;font-size:10px;padding:4px 8px}th{font-size:10px;letter-spacing:.7px;padding:14px 20px}td{padding:16px 20px}.notice{border-radius:9px;padding:11px 15px}.period{gap:12px}.period input,.search-row input,.price-history-controls select{border-radius:8px}.official-logo{box-shadow:0 8px 28px #0002}.brand-caption{letter-spacing:1.8px}
html[data-theme="dark"]{--paper:#0e1117;--forest:#090c11;--ink:#edf0f5;--muted:#9ba5b5;--line:#282e3a;--green:#b83d4c;--red:#ff949d;--gold:#d6b987}
html[data-theme="dark"] body{background:radial-gradient(ellipse at 95% 0%,#28202b66 0,transparent 42%),#0e1117}
html[data-theme="dark"] .sidebar{background:linear-gradient(180deg,#0d1016,#090c11);border-right-color:#252a35}
html[data-theme="dark"] .nav-caption{color:#8992a3}html[data-theme="dark"] .sidebar nav button{color:#a2adbe}html[data-theme="dark"] .sidebar nav button:hover{background:#1b202b;color:#f6f7fb}
html[data-theme="dark"] .sidebar nav button.active{background:linear-gradient(100deg,#4c2534,#26202d);color:#ffe8ec;box-shadow:inset 3px 0 #e26072,0 3px 15px #0002}
html[data-theme="dark"] .sidebar-bottom{color:#99a5b6}html[data-theme="dark"] .sidebar-bottom small{color:#808b9e;border-color:#282e3a}
html[data-theme="dark"] header{background:#10141be8;border-color:#282e3a}html[data-theme="dark"] header .eyebrow{color:#a8b2c4}html[data-theme="dark"] .header-actions{color:#aeb7c6}
html[data-theme="dark"] .card,html[data-theme="dark"] .panel{background:linear-gradient(145deg,#1a1f2a,#151a23);border-color:#2b3240;box-shadow:0 10px 30px #0002}
html[data-theme="dark"] .card.highlight{background:radial-gradient(ellipse at top right,#78324844,transparent 75%),linear-gradient(125deg,#30202e,#1b1d2a);border-color:#76505e}
html[data-theme="dark"] .card.highlight:before{left:24px;right:24px;background:linear-gradient(90deg,#ec7e8d,#c7a16b88,transparent)}
html[data-theme="dark"] .metric-label{color:#a9b4c6}html[data-theme="dark"] .metric-value{color:#faf9fd}html[data-theme="dark"] .metric-note{color:#9ba8ba}html[data-theme="dark"] .highlight .metric-label{color:#e3bac5}html[data-theme="dark"] .highlight .metric-note{color:#c5a8b7}
html[data-theme="dark"] button{background:#202633;border-color:#3b4353;color:#e0e5ef}html[data-theme="dark"] button:hover{background:#2b3342;border-color:#6b768b}html[data-theme="dark"] button.primary,html[data-theme="dark"] a.primary{background:linear-gradient(135deg,#c74b5b,#9c3043);border-color:#df6778;box-shadow:0 4px 16px #a52c3b33;color:white}
html[data-theme="dark"] th{background:#121720;color:#a2adc0;border-color:#2b3240}html[data-theme="dark"] td{color:#ced5e1;border-color:#282f3b}html[data-theme="dark"] tbody tr:hover{background:#222a37}
html[data-theme="dark"] .notice{background:#24222a;border-color:#d0ac73;color:#c7bec7}html[data-theme="dark"] .page-heading .eyebrow{color:#e28b9a}
html[data-theme="dark"] .period input,html[data-theme="dark"] .search-row input{background:#161c26;border-color:#3a4354;color:#e4eaf4}
html[data-theme="dark"] .subnav button.active{background:#432938;color:#ffe1e9;border-color:#a2657c}
html[data-theme="dark"] .onboarding{background:linear-gradient(115deg,#24222f,#191e2a);border-color:#454052}html[data-theme="dark"] .step-grid button{background:#252735;border-color:#444658;color:#e0ddea}html[data-theme="dark"] .step-grid small{color:#b0aac1}
html[data-theme="dark"] dialog{border-radius:18px;background:#191f2a;border-color:#454e61;box-shadow:0 32px 120px #000a}html[data-theme="dark"] .dialog-bottom{background:#171c26;border-color:#353d4c}html[data-theme="dark"] #editor-fields input,html[data-theme="dark"] #editor-fields select,html[data-theme="dark"] #editor-fields textarea{background:#101620;border-color:#465166;border-radius:8px;color:#e6edf7}html[data-theme="dark"] .field-help{color:#acb7ca}
html[data-theme="dark"] .empty strong{color:#d6ddec}html[data-theme="dark"] .empty{color:#a7b1c3}html[data-theme="dark"] .cloud-storage-panel{background:#171d28;border-color:#3b4557!important}html[data-theme="dark"] footer{color:#8c97aa;border-color:#282f3b}
@media(max-width:720px){.cards{gap:11px}.card{padding:18px}.metric-value{font-size:29px}.panel-head,.panel-body{padding:18px}.sidebar nav button{min-height:42px}h1{letter-spacing:-1.2px}header{min-height:72px}.header-actions{gap:11px}}
@media(prefers-reduced-motion:reduce){button,a.primary{transition:none}}

/* Statement layout: burgundy hero, numbered navigation, open metric rails. */
.sidebar{width:254px;padding:26px 18px}.workspace{margin-left:254px}.official-brand{padding:0 12px 23px;border-bottom:1px solid var(--line)}.official-logo{width:145px}.brand-caption{font-size:9px}.nav-caption{margin:25px 13px 14px}.sidebar nav{counter-reset:section}.sidebar nav button{counter-increment:section;padding:12px 13px;gap:11px;font-size:12px}.sidebar nav button::before{content:counter(section,decimal-leading-zero);font-size:9px;letter-spacing:1px;opacity:.55;font-variant-numeric:tabular-nums}.sidebar nav .nav-icon{display:none}.sidebar nav button.active::after{content:'↗';margin-left:auto;font-size:17px}.sidebar-bottom{padding-top:24px}
main{max-width:1800px;padding:26px 34px 45px}.page-heading{position:relative;isolation:isolate;padding:34px 36px;margin:22px 0 28px;border-radius:20px;overflow:hidden;min-height:205px;border:1px solid #d7c8c9;background:linear-gradient(115deg,#f0e1e3,#faf5f1)}.page-heading>div{position:relative;z-index:1}.page-heading::after{content:'';position:absolute;z-index:-1;width:330px;height:330px;border:1px solid #ac607a30;border-radius:50%;right:-90px;top:-145px;box-shadow:0 0 0 45px #ac607a0a,0 0 0 90px #ac607a08;pointer-events:none}h1{font-size:clamp(32px,3.5vw,51px);max-width:800px;letter-spacing:-2px;line-height:1.08;margin:12px 0 15px}.page-heading .eyebrow{font-size:10px;letter-spacing:2.7px}.page-heading p:not(.eyebrow){max-width:610px;font-size:13px}.cards{gap:0;border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#fff;margin-bottom:28px}.cards>.card{border:0;border-right:1px solid var(--line);border-radius:0;padding:27px 25px;box-shadow:none;min-height:165px;background:transparent}.cards>.card:last-child{border-right:0}.cards>.card .metric-value{font-size:clamp(29px,3vw,44px);font-weight:600;margin:21px 0 13px;letter-spacing:-1.7px}.cards>.card .metric-label{font-size:9px;letter-spacing:1.3px}.cards>.card.highlight:before{display:none}.cards>.card.highlight{background:#f2e2e5}.panel-head{padding:22px 24px}.panel-head h2{font-size:18px;letter-spacing:-.5px}.panel{border-radius:17px}.subnav{padding:6px;border-radius:13px;border:1px solid var(--line);width:fit-content;background:#fff}.subnav button{border-color:transparent;background:transparent;box-shadow:none}.subnav button.active{border-radius:9px}.period{border:0;padding:13px 16px;border-radius:12px;background:#fff}.notice{font-size:11px}.header-actions #theme-toggle{border-radius:30px;padding:8px 13px}
html[data-theme="dark"]{--paper:#090a0e;--line:#2b2731;--muted:#ada5b5}
html[data-theme="dark"] body{background:#090a0e}html[data-theme="dark"] .sidebar{background:#0d0d12;border-color:#2a2330}html[data-theme="dark"] header{background:#090a0e;border-color:#28222f}html[data-theme="dark"] .sidebar nav button{color:#bcb2c5}html[data-theme="dark"] .sidebar nav button.active{background:#6b243d;color:#fff;box-shadow:none}html[data-theme="dark"] .sidebar nav button:hover{background:#34202e}html[data-theme="dark"] .nav-caption{color:#a99bad}html[data-theme="dark"] .brand-caption{color:#c0a5b4}
html[data-theme="dark"] .page-heading{background:radial-gradient(ellipse at 90% 100%,#962e4b55,transparent 60%),linear-gradient(105deg,#391425,#23101e 75%,#2b1324);border-color:#743047;box-shadow:0 15px 45px #0004}html[data-theme="dark"] .page-heading::after{border-color:#d68da344;box-shadow:0 0 0 45px #d68da308,0 0 0 90px #d68da307}html[data-theme="dark"] .page-heading .eyebrow{color:#f0b6c5}html[data-theme="dark"] .page-heading h1{color:#fff4f6}html[data-theme="dark"] .page-heading p:not(.eyebrow){color:#cfb4c3}html[data-theme="dark"] .page-heading button{background:#ffffff10;border-color:#ba80955c;color:#ffeaf0}html[data-theme="dark"] .page-heading button.primary{background:#efe2e6;color:#4b182a;border-color:#fff2f5;box-shadow:0 3px 15px #0003}
html[data-theme="dark"] .cards{background:#141218;border-color:#3c2b3b;box-shadow:0 10px 30px #0002}html[data-theme="dark"] .cards>.card{background:transparent;border-right-color:#3c2b3b;box-shadow:none}html[data-theme="dark"] .cards>.card.highlight{background:linear-gradient(135deg,#512039,#301526);border-color:#3c2b3b}html[data-theme="dark"] .cards>.card .metric-label{color:#baacbf}html[data-theme="dark"] .cards>.card .metric-value{color:#fff0f5}html[data-theme="dark"] .cards>.card .metric-note{color:#b5a3b7}
html[data-theme="dark"] .panel{background:#141218;border-color:#302633;box-shadow:none}html[data-theme="dark"] .panel-head{background:#1d1721;border-color:#342839}html[data-theme="dark"] th{background:#100f14;color:#b5a5bd;border-color:#302633}html[data-theme="dark"] td{border-color:#2d2532;color:#d9cfe0}html[data-theme="dark"] tbody tr:hover{background:#221925}html[data-theme="dark"] .subnav,html[data-theme="dark"] .period{background:#17121b;border-color:#382a3c}html[data-theme="dark"] .subnav button{background:transparent;border-color:transparent;color:#bdb0c6}html[data-theme="dark"] .subnav button.active{background:#60243d;color:#ffe9f1;box-shadow:0 3px 10px #0003}html[data-theme="dark"] .period input{background:#0d0b11;border-color:#48334c}html[data-theme="dark"] .notice{background:#211922;border-color:#b7976d;color:#c8b7c4}html[data-theme="dark"] .onboarding{background:linear-gradient(110deg,#281c2b,#1b1520);border-color:#4e3452}html[data-theme="dark"] .step-grid button{background:#322337;border-color:#573e5b}html[data-theme="dark"] button.primary,html[data-theme="dark"] a.primary{background:#b73d61;border-color:#d26183}html[data-theme="dark"] dialog{background:#1b1420;border-color:#65446b}html[data-theme="dark"] .dialog-bottom{background:#1b1420}html[data-theme="dark"] #editor-fields input,html[data-theme="dark"] #editor-fields select,html[data-theme="dark"] #editor-fields textarea{background:#100d15;border-color:#514058}
@media(min-width:1600px){main{padding:30px 45px}.cards{gap:0}}
@media(max-width:1100px) and (min-width:721px){.sidebar{width:212px;padding:22px 12px}.workspace{margin-left:212px}.official-logo{width:135px}.sidebar nav button{font-size:11px;padding:12px 10px}.page-heading{padding:28px;min-height:190px}.cards>.card:nth-child(2){border-right:0}.cards>.card:nth-child(-n+2){border-bottom:1px solid var(--line)}}
@media(max-width:720px){.sidebar{width:100%;padding:13px 16px}.official-brand{padding:0;border:0;gap:15px}.official-logo{width:76px}.sidebar nav{margin-top:14px;padding-bottom:4px}.sidebar nav button{padding:10px 13px;font-size:11px}.sidebar nav button::before{display:none}.workspace{margin-left:0}main{padding:17px}.page-heading{padding:24px;min-height:185px;margin:17px 0 22px;gap:19px;border-radius:16px}h1{font-size:33px;letter-spacing:-1.3px}.cards>.card{padding:19px 16px;min-height:150px}.cards>.card:nth-child(2){border-right:0}.cards>.card:nth-child(-n+2){border-bottom:1px solid var(--line)}.cards>.card .metric-value{font-size:29px}.cards>.card .metric-label{font-size:8px;letter-spacing:.8px}.period{padding:12px}.subnav{width:auto}}
.cost-ratio-section{margin-bottom:30px}.cost-ratio-section>h2{font-size:21px;margin-bottom:7px}.cost-ratio-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:18px 0}.cost-ratio-card{padding:24px;border:1px solid var(--line);border-radius:16px;background:#fff}.cost-ratio-card .metric-label{font-size:12px;text-transform:uppercase;letter-spacing:1.6px}.cost-ratio-card .metric-value{font-size:48px;margin:19px 0 8px}.cost-target{font-size:12px;font-weight:700;letter-spacing:1px;color:var(--gold);margin-bottom:17px}.cost-ratio-section>button{margin-right:8px}html[data-theme="dark"] .cost-ratio-card{background:linear-gradient(145deg,#321626,#17121c);border-color:#673248}.cost-ratio-card .muted{margin-bottom:0}@media(max-width:800px){.cost-ratio-grid{grid-template-columns:1fr}.cost-ratio-card{padding:20px}.cost-ratio-card .metric-value{font-size:40px}}

/* Recipe costs stay readable within the page at every screen width. */
.recipe-cost-section{min-width:0}.recipe-cost-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,440px),1fr));gap:18px;padding:18px;min-width:0}.recipe-cost-card{min-width:0;border:1px solid var(--line);border-radius:12px;padding:20px;background:#fff;overflow-wrap:anywhere}.recipe-cost-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;min-width:0}.recipe-cost-heading>div{min-width:0}.recipe-cost-heading h3{font-size:18px;line-height:1.4;margin:0 0 5px}.recipe-cost-heading p{margin:0}.recipe-cost-heading .badge{flex-shrink:0;white-space:normal}.recipe-serving-note{font-size:12px;line-height:1.6;color:var(--muted);margin:14px 0}.recipe-cost-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0}.recipe-cost-metric{min-width:0;padding:13px;background:#f5f6f1;border-radius:8px}.recipe-cost-metric dt{font-size:10px;line-height:1.5;color:var(--muted)}.recipe-cost-metric dd{margin:6px 0 0;font-size:19px;line-height:1.4;font-weight:600}.recipe-cost-metric p{margin:5px 0 0}.recipe-price-suggestion{background:#e8eee4;box-shadow:inset 3px 0 var(--green)}.recipe-over-target dd{color:#a33d32}.recipe-cost-card .actions{flex-wrap:wrap}.recipe-cost-card .actions button{white-space:normal}html[data-theme="dark"] .recipe-cost-card{background:#17121b;border-color:#443047}html[data-theme="dark"] .recipe-cost-metric{background:#221a27}html[data-theme="dark"] .recipe-price-suggestion{background:#382131;box-shadow:inset 3px 0 #c889a0}html[data-theme="dark"] .recipe-over-target dd{color:#ffa6ad}@media(max-width:480px){.recipe-cost-grid{padding:12px;gap:12px}.recipe-cost-card{padding:14px}.recipe-cost-heading{flex-wrap:wrap}.recipe-cost-metric{padding:10px}.recipe-cost-metric dd{font-size:17px}}

.review-scenario-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:12px;min-width:0}.recipe-cost-card>section.recipe-cost-metric{margin:12px 0}.recipe-cost-card>h3{overflow-wrap:anywhere}.recipe-cost-grid .actions{margin-top:12px}

.cost-ratio-card{min-width:0;overflow-wrap:anywhere}.cost-ratio-card h3{margin-top:22px;line-height:1.4}.cost-ratio-card>.metric-value{font-size:clamp(24px,3vw,44px)}.cost-ratio-card button{font-size:11px;margin:8px 6px 0 0;max-width:100%;white-space:normal}.overview-cost-example{font-size:12px;line-height:1.6;padding:10px 0;margin:0;border-bottom:1px solid var(--line)}

.alert-summary-button{display:block;width:100%;text-align:left;cursor:pointer;font:inherit;color:inherit}.alert-summary-button strong{font-size:1.7rem}.alert-summary-button:hover{border-color:var(--accent,#c49b64)}.alert-summary-button:focus-visible,.alert-item-link:focus-visible{outline:3px solid #c49b64;outline-offset:3px}.alert-item-link{text-align:left;white-space:normal}

.cost-ratio-card select{display:block;width:100%;max-width:100%;margin:12px 0;font:inherit;padding:10px;border-radius:8px}.cost-ratio-card .overview-item-percent{font-size:clamp(24px,2.6vw,38px);font-weight:800;line-height:1.2;overflow-wrap:normal}.overview-item-dollars{font-size:15px;font-weight:600;line-height:1.5}

.voice-count-screen button{min-height:48px;font-size:15px}.voice-count-screen textarea{display:block;width:100%;min-height:90px;margin:14px 0}.voice-count-review label{display:block;margin:12px 0}.voice-count-review select,.voice-count-review input[type=number],.voice-count-review input:not([type]){width:100%;max-width:100%;min-height:44px}.voice-count-review input[type=checkbox]{width:24px;height:24px;vertical-align:middle;margin-right:10px}.voice-count-review button{min-height:44px}
