:root {
  --canvas:#f6f5ef; --surface:#fffefa; --ink:#182d29; --teal:#145947; --forest:#163f36;
  --muted:#53645c; --rule:#dedfd5; --mint:#d9eee0; --saffron:#e9b851;
  color:var(--ink); background:var(--canvas); font:400 16px/1.5 Inter,system-ui,sans-serif;
}
body { min-width:0; }
button,a,summary { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
button:focus-visible,a:focus-visible,dialog:focus-visible { outline:3px solid #b67805; outline-offset:3px; }
h1:focus { outline:none; }
.skip,.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.skip:focus { clip-path:none; z-index:8; width:auto; height:auto; padding:12px 18px; color:white; background:var(--teal); }
.shell { display:grid; grid-template-columns:212px minmax(0,1fr); min-height:100vh; }
.sidebar { display:flex; flex-direction:column; min-width:0; padding:32px 14px 22px; color:#e5eee8; background:var(--forest); }
.brand { width:fit-content; gap:12px; margin:0 10px 54px; white-space:nowrap; color:#fff; font-size:1.38rem; font-weight:690; letter-spacing:-.055em; }
.brand-sign { display:grid; place-items:center; width:40px; height:40px; border-radius:12px; background:var(--mint); }
.brand-sign img { width:24px; }
.sidebar-label,.eyebrow,.counter,.delivery-top small,.receipt-buyer small,.destination small { font:500 .72rem/1.45 'Geist Mono',monospace; text-transform:uppercase; letter-spacing:.075em; }
.sidebar-label { margin:0 14px 12px; color:#bad0c3; }
.side-nav { display:grid; gap:4px; }
.side-nav a,.case-link { display:flex; align-items:center; gap:12px; min-height:46px; padding:8px 14px; border-radius:7px; font-size:.96rem; }
.side-nav a img,.case-link img { width:19px; height:19px; filter:invert(1); opacity:.86; }
.side-nav a[aria-current="page"] { background:#cde5d92a; color:white; box-shadow:inset 3px 0 0 #c7e4d0; }
.side-nav a:hover,.case-link:hover { background:#cde5d91c; }
.sidebar-bottom { margin-top:auto; padding-top:40px; }
.case-link { border-top:1px solid #afc5b43d; border-radius:0; color:#d5e3d8; padding:16px 8px 0; font-size:.83rem; }
.app-column { display:flex; flex-direction:column; min-width:0; }
.topbar { gap:14px; min-height:76px; padding:12px clamp(20px,4vw,72px); background:var(--surface); border-bottom:1px solid var(--rule); }
.demo-title { display:flex; align-items:center; gap:10px; font-size:.91rem; font-weight:540; }
.demo-title i { width:9px; height:9px; border-radius:50%; background:#d49b37; box-shadow:0 0 0 4px #edd3924d; }
.view-switch { gap:3px; padding:4px; background:#eeefe8; border:1px solid #ddded4; border-radius:11px; }
.view-switch button { display:flex; gap:7px; align-items:center; justify-content:center; min-height:38px; min-width:91px; padding:7px 12px; border-radius:7px; color:var(--muted); font-size:.92rem; }
.view-switch button img { width:17px; height:17px; }
.view-switch [aria-pressed="true"] { background:white; color:var(--ink); box-shadow:0 1px 4px #26362620; font-weight:610; }
.workspace,.footnote { width:min(100%,1360px); margin-inline:auto; padding-inline:clamp(20px,4vw,72px); }
.workspace { flex:1; padding-top:clamp(36px,4vw,60px); padding-bottom:28px; }
.eyebrow { display:block; color:var(--teal); margin-bottom:10px; }
.page-head h1 { font-weight:600; font-size:clamp(2.1rem,3.3vw,3.55rem); line-height:1.08; letter-spacing:-.065em; }
.page-head > p { color:var(--muted); max-width:62ch; margin:12px 0 28px; font-size:1.04rem; line-height:1.55; }
.stats { grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:23px; }
.stat { min-width:0; border:1px solid var(--rule); border-radius:13px; padding:18px clamp(12px,1.6vw,26px); background:#fffefa; }
.stat:first-child { background:#e4efe4; border-color:#cbdccb; }
.stat-head { display:flex; gap:9px; align-items:center; font-size:.9rem; color:#45594b; }
.ico { flex:none; width:19px; height:19px; }
.stat-head .ico { width:17px; height:17px; opacity:.75; }
.stat strong { display:block; margin-top:11px; font-size:clamp(1.35rem,2.3vw,2.15rem); line-height:1.1; font-weight:610; letter-spacing:-.055em; }
.stat small { margin-left:6px; color:var(--muted); font:400 .9rem/1.2 Inter,sans-serif; letter-spacing:0; }
.split { grid-template-columns:minmax(0,1.3fr) minmax(0,.87fr); gap:18px; align-items:start; }
.panel { min-width:0; border:1px solid var(--rule); border-radius:15px; background:var(--surface); box-shadow:0 2px 5px #102c1805; overflow:hidden; }
.panel-head,.delivery-top { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; padding:20px 22px; border-bottom:1px solid var(--rule); }
.panel h2 { font-size:1.13rem; line-height:1.25; font-weight:620; letter-spacing:-.036em; }
.status,.counter { display:inline-flex; align-items:center; gap:7px; font-size:.74rem; color:#69501a; background:#f8ebc6; border-radius:20px; padding:4px 9px; }
.status i { width:6px; height:6px; border-radius:50%; background:#a37721; }
.status.green { color:#245b41; background:#dceee0; }
.status.green i { background:#388359; }
.counter { background:#eef0e9; color:#4f6055; }
.feature-card,.destination,.inventory-product,.product-row { display:flex; align-items:center; gap:14px; margin:0 22px; }
.feature-card,.inventory-product,.destination { padding-block:20px; }
.buyer-icon { display:grid; place-items:center; width:43px; height:43px; border-radius:12px; background:#e7ebe2; }
.panel h3 { font-weight:610; letter-spacing:-.025em; font-size:1rem; }
.feature-card p,.inventory-product p,.product-row p,.destination p,.timeline p,.receipt-buyer span,.empty-copy { color:var(--muted); font-size:.92rem; }
.product-row { padding:14px 0; border-block:1px dashed var(--rule); }
.product-row > strong { margin-left:auto; align-self:center; white-space:nowrap; font-size:.94rem; font-weight:550; }
.product-art { position:relative; display:block; flex:none; width:67px; height:66px; border-radius:9px; background:#ebe6d3; overflow:hidden; }
.box-front { position:absolute; width:33px; height:37px; left:12px; top:19px; transform:skewY(8deg); background:#ece1b1; color:#204936; box-shadow:inset -1px 0 0 #baa76d; }
.box-front i { display:block; height:6px; background:#759d78; border-bottom:1px solid #56745a; }
.box-front b { display:block; margin-left:4px; font:800 10px/.93 Inter,sans-serif; letter-spacing:-.08em; }
.box-front b:first-of-type { margin-top:4px; }
.box-front small { display:block; margin:2px 0 0 4px; font:500 3.9px/1 'Geist Mono',monospace; }
.box-side { position:absolute; left:45px; top:17px; width:12px; height:37px; transform:skewY(-31deg); background:#b29c64; border-top:6px solid #557659; }
.box-top { position:absolute; left:18px; top:13px; width:33px; height:9px; background:#f7edc6; transform:skewX(-56deg) rotate(9deg); }
.total-row { display:flex; justify-content:space-between; align-items:center; gap:15px; margin:0 22px; padding-block:17px 8px; font-size:.93rem; }
.total-row strong { font-size:1.22rem; font-weight:630; letter-spacing:-.035em; }
.panel-actions { display:flex; flex-wrap:wrap; padding:16px 22px 21px; }
.button { display:inline-flex; gap:10px; align-items:center; justify-content:center; padding:12px 17px; min-height:46px; border-radius:8px; font-weight:560; font-size:.97rem; line-height:1.35; }
.button .ico { width:17px; height:17px; }
.primary { color:white; background:var(--teal); }
.primary .ico { filter:invert(1); }
.primary:hover { background:#0e4436; }
.subtle { border:1px solid #cfd6ca; background:var(--surface); }
.subtle:hover { background:#f2f4ea; }
.timeline ol { padding:23px 21px 7px; }
.timeline li { position:relative; display:flex; align-items:flex-start; gap:13px; padding-bottom:21px; }
.timeline li:not(:last-child)::before { position:absolute; content:''; left:16px; width:1px; top:33px; bottom:0; background:#d8ded2; }
.step-dot { display:grid; place-items:center; border:1px solid #dce1d3; border-radius:50%; width:34px; height:34px; flex:none; background:#f4f5ef; }
.step-dot .ico { width:15px; height:15px; opacity:.58; }
.done .step-dot { background:#d7ecde; border-color:#c4ddc8; }
.current .step-dot { border-color:#dab553; background:#f7ebc7; }
.current .step-dot .ico,.done .step-dot .ico { opacity:.88; }
.timeline li strong { display:block; font-size:.96rem; font-weight:560; }
.timeline p { font-size:.85rem; }
.timeline-id { display:flex; justify-content:space-between; border-top:1px dashed var(--rule); margin:0 22px; padding:14px 0; color:var(--muted); font-size:.88rem; }
.receipt-buyer { display:grid; padding:20px 22px; }
.receipt-buyer small,.destination small { color:var(--muted); }
.order-fields { display:grid; gap:12px; padding:17px 22px 12px; }
.order-fields label { display:grid; gap:4px; color:var(--ink); font-size:.94rem; font-weight:560; }
.order-fields input { box-sizing:border-box; width:100%; min-width:0; min-height:44px; padding:9px 12px; border:1px solid #aebcae; border-radius:6px; background:#fff; color:var(--ink); font-size:1rem; font-weight:400; }
.order-fields input:focus-visible { outline:2px solid var(--teal); outline-offset:2px; }
.order-fields input:user-invalid { border-color:#a44727; }
.order-fields [name="quantity"] { max-width:9em; }
#stock-hint { margin-top:-7px; font-size:.85rem; color:var(--muted); }
#draft-total { font-size:1.22rem; font-weight:630; letter-spacing:-.035em; }
.order-product { margin-top:3px; }
.order-statuses { display:flex; gap:14px 23px; flex-wrap:wrap; padding:0 22px 20px; }
.order-statuses dt { margin-bottom:4px; color:var(--muted); font-size:.82rem; }
.receipt-buyer,.feature-card > div,.destination > div,.stock-ledger dt { min-width:0; overflow-wrap:anywhere; }
.stock-ledger dd { flex:none; margin-left:9px; }
.receipt-buyer strong { font-size:1.16rem; margin:3px 0; }
.savings-link { padding:0 22px 20px; }
.savings-link a { display:inline-flex; gap:6px; align-items:center; min-height:44px; font-size:.94rem; color:var(--teal); text-decoration:underline; text-underline-offset:4px; }
.savings-link .ico { width:15px; height:15px; }
.payment-info,.stock-ledger { margin:12px 22px 0; }
.payment-info div,.stock-ledger div { display:flex; justify-content:space-between; padding:6px 0; font-size:.94rem; }
.payment-info dt,.stock-ledger dt { color:var(--muted); }
.payment-info dd,.stock-ledger dd { font-weight:550; }
.stock-ledger div { padding:13px 0; border-top:1px solid var(--rule); }
.stock-ledger div:last-child { font-weight:650; }
.delivery-top { justify-content:flex-start; gap:14px; background:var(--forest); color:#f1f9ed; }
.delivery-top .ico { width:35px; height:35px; filter:invert(1); }
.delivery-top small { color:#d4e7d9; }
.delivery-top h2 { font-size:1.43rem; margin-top:3px; }
.delivery-badge { margin:-7px 22px 20px; }
.destination { align-items:flex-start; }
.destination>.ico { margin-top:7px; }
.empty-copy { padding:22px 22px 0; }
.standalone { max-width:730px; }
.footnote { display:flex; align-items:center; justify-content:space-between; gap:16px; color:var(--muted); font-size:.85rem; padding-block:14px 22px; }
.footnote button { display:inline-flex; align-items:center; gap:7px; min-height:44px; text-decoration:underline; text-underline-offset:4px; }
.footnote img { width:14px; height:14px; }
dialog { max-width:min(420px,calc(100% - 32px)); padding:24px; color:var(--ink); border:1px solid #cbd6c6; border-radius:14px; background:var(--surface); }
dialog::backdrop { background:#10282073; }
dialog h2 { font-size:1.35rem; font-weight:620; letter-spacing:-.04em; }
dialog p { margin:10px 0 22px; color:var(--muted); }
.dialog-actions { display:flex; justify-content:flex-end; gap:8px; }
@media(max-width:1050px) {
  .shell { grid-template-columns:178px minmax(0,1fr); }
  .sidebar { padding-inline:10px; }
  .brand { font-size:1.22rem; gap:8px; margin-inline:5px; }
  .split { grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:12px; }
  .workspace,.topbar,.footnote { padding-inline:22px; }
  .panel-head,.delivery-top { padding-inline:17px; }
  .feature-card,.destination,.product-row,.total-row { margin-inline:17px; }
  .timeline ol { padding-inline:16px; }
}
@media(max-width:840px) {
  .shell { display:block; }
  .sidebar { display:grid; grid-template-columns:1fr auto; align-items:center; gap:14px; padding:15px 20px 11px; }
  .brand { margin:0; }
  .sidebar-label { display:none; }
  .sidebar-bottom { grid-column:2; grid-row:1; padding:0; margin:0; }
  .case-link { padding:3px 0; min-height:42px; border:0; }
  .side-nav { display:flex; grid-column:1/-1; gap:4px; }
  .side-nav a { padding:8px 13px; min-height:44px; }
  .side-nav a[aria-current="page"] { box-shadow:inset 0 -2px 0 #c7e4d0; }
  .topbar { min-height:64px; }
  .workspace { padding-top:30px; }
}
@media(max-width:650px) {
  .sidebar { padding:10px 14px 8px; gap:6px; }
  .brand { font-size:1.2rem; }
  .brand-sign { width:34px; height:34px; border-radius:10px; }
  .case-link { font-size:.78rem; gap:6px; }
  .case-link img { width:16px; }
  .side-nav { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:3px; }
  .side-nav a { justify-content:center; gap:4px; flex-direction:column; font-size:.77rem; line-height:1.2; padding:7px 0; }
  .side-nav a img { width:16px; height:16px; }
  .workspace,.topbar,.footnote { padding-inline:16px; }
  .topbar { gap:6px; padding-block:8px; }
  .view-switch button { min-width:62px; min-height:37px; gap:5px; padding:6px 8px; font-size:.85rem; }
  .view-switch button img { width:15px; height:15px; }
  .demo-title { font-size:.79rem; gap:7px; }
  .demo-title i { width:7px; height:7px; box-shadow:0 0 0 3px #edd3924d; }
  .stats { gap:6px; grid-template-columns:repeat(3,minmax(0,1fr)); margin-bottom:14px; }
  .stat { padding:11px 9px; border-radius:9px; }
  .stat-head { gap:6px; font-size:.76rem; line-height:1.3; min-height:2.6em; align-items:flex-start; }
  .stat-head .ico { display:none; }
  .stat strong { font-size:1.23rem; overflow-wrap:anywhere; }
  .stat small { margin-left:3px; font-size:.7rem; }
  .split { grid-template-columns:1fr; gap:15px; }
  .page-head > p { margin-bottom:21px; }
  .workspace { padding-top:24px; }
  .panel-actions>.button { width:100%; }
  .footnote { flex-wrap:wrap; gap:0 12px; }
}
@media(max-width:360px) {
  .topbar { padding-inline:12px; }
  .stat strong { font-size:1.03rem; }
  .stat small { display:block; margin:3px 0 0; }
  .case-link { font-size:.74rem; }
}
