:root{font-family:'DM Sans',Arial,sans-serif;color:#18271b;background:#f4f3eb;font-synthesis:none;text-rendering:optimizeLegibility;--green-950:#102d17;--green-900:#15391e;--green-800:#1c4827;--green-700:#2d6a30;--green-600:#42852c;--lime:#b3da27;--cream:#faf8ef;--text:#18271b;--muted:#73796f;--border:#e9e7dc;--shadow:0 7px 22px rgba(35,52,22,.07)}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}a{color:inherit}.skip-link{position:fixed;z-index:20;top:8px;left:8px;padding:12px 16px;background:white;border-radius:8px;transform:translateY(-160%)}.skip-link:focus{transform:translateY(0)}:focus-visible{outline:3px solid #92bd1b;outline-offset:3px}.app-shell{min-height:100vh;display:grid;grid-template-columns:252px minmax(0,1fr)}.sidebar{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;padding:23px 17px 16px;background:linear-gradient(165deg,#173f20,#102c17 80%);color:#f4f3e9}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;padding:0 6px 24px}.brand img{border-radius:12px}.brand strong{display:block;font-family:Outfit,sans-serif;font-size:21px;letter-spacing:-.3px}.brand small{display:block;color:#c4cfbd;font-size:10px;margin-top:2px}.nav-list{display:grid;gap:5px}.nav-link{display:flex;align-items:center;gap:13px;color:#e7ebdf;text-decoration:none;padding:11px 13px;border-radius:10px;font-size:14px;font-weight:600;transition:background .15s}.nav-link span{width:21px;text-align:center;font-size:20px}.nav-link:hover{background:#ffffff12}.nav-link.active{background:linear-gradient(90deg,#5d9a13,#407d18);color:#fff;box-shadow:inset 0 0 0 1px #8fbe315c}.nav-divider{height:1px;background:#ffffff20;margin:18px 7px 15px}.nav-caption{margin:0 10px 10px;color:#aab9a4;font-size:10px;text-transform:uppercase;letter-spacing:1px;font-weight:700}.future-nav{list-style:none;margin:0;padding:0 9px;display:grid;gap:1px;color:#e1e6dc;font-size:13px}.future-nav li{display:flex;align-items:center;gap:12px;padding:9px 5px}.future-nav li span{width:20px;text-align:center;color:#c9d7bd;font-size:16px}.sidebar-bottom{margin-top:auto;border-top:1px solid #ffffff20;padding:16px 5px 2px;display:flex;align-items:center;gap:9px;color:#c9d3c4;font-size:11px}.connection-dot{width:8px;height:8px;border-radius:50%;background:#9ed64d;box-shadow:0 0 0 3px #9ed64d23}.connection-dot.offline{background:#ffc252;box-shadow:0 0 0 3px #ffc25227}.main-column{min-width:0;display:flex;flex-direction:column;min-height:100vh}.topbar{height:78px;flex:none;background:var(--green-950);color:#fff;display:flex;align-items:center;gap:16px;padding:0 clamp(20px,4vw,52px);border-bottom:1px solid #ffffff1a}.mobile-brand,.mobile-menu{display:none}.topbar-spacer{flex:1}.sync-status{display:flex;align-items:center;gap:9px;color:#d5e2d0;font-size:12px}.status-icon{font-size:12px;color:#98ce3b}.status-error{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;color:white;background:#b83825;font-size:12px;font-weight:bold}main{width:100%;max-width:1440px;margin:0 auto;padding:30px clamp(20px,4vw,52px) 40px;flex:1}.welcome-panel{position:relative;min-height:174px;overflow:hidden;border-radius:17px;background:linear-gradient(100deg,#39250e 0%,#4c3316 54%,#344c20 100%);color:white;display:flex;align-items:center;padding:30px 36px;box-shadow:var(--shadow)}.welcome-panel:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#23180c9e,#30200c52 56%,#19290b33);pointer-events:none}.welcome-copy{position:relative;z-index:1;max-width:570px}.eyebrow{margin:0 0 8px;font-size:10px;letter-spacing:1.5px;font-weight:700;color:#83986c}.welcome-panel .eyebrow{color:#d1dcaa}.welcome-copy h1,.page-heading h1{font:600 clamp(28px,3vw,38px)/1.08 Outfit,sans-serif;letter-spacing:-.8px;margin:0}.welcome-copy>p:last-child{max-width:500px;line-height:1.55;color:#f0eadc;margin:10px 0 0;font-size:14px}.welcome-art{position:absolute;right:6%;bottom:-7px;display:flex;align-items:end;gap:6px;font-size:64px;filter:drop-shadow(0 9px 7px #10120870);opacity:.92}.welcome-art span:nth-child(2){font-size:51px}.summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:19px 0}.location-card{min-height:112px;border-radius:15px;padding:18px;display:flex;align-items:center;gap:14px;border:1px solid #e8e3d2;box-shadow:0 3px 9px #1724110b}.location-spíž,.location-sklep{background:linear-gradient(140deg,#fff9e9,#f3dfb6)}.location-lednice,.location-mrazák{background:linear-gradient(140deg,#f4fbff,#d2eafa);border-color:#d7e8f1}.location-icon{flex:none;width:52px;height:52px;border-radius:14px;display:grid;place-items:center;background:#ffffffa8;color:#986118;font-size:30px}.location-lednice .location-icon,.location-mrazák .location-icon{color:#1265a0}.location-card>div:last-child{min-width:0}.location-card>div span{display:block;font-weight:700;font-size:15px}.location-card strong{display:block;margin-top:4px;font-size:12px;font-weight:500;color:#5e6658}.location-card strong small{font-weight:400}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(270px,1fr);gap:17px}.panel{background:#fffefa;border:1px solid var(--border);border-radius:16px;padding:21px 22px;box-shadow:var(--shadow);min-width:0}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:16px}.panel-heading .eyebrow{margin-bottom:4px}.panel-heading h2,.dialog-head h2{font:600 20px/1.25 Outfit,sans-serif;letter-spacing:-.3px;margin:0}.text-link{font-weight:700;color:#3d7427;font-size:12px;text-decoration:none;white-space:nowrap}.text-link:hover{text-decoration:underline}.total-banner{display:flex;align-items:center;gap:13px;border-radius:11px;background:#f4f7ed;padding:12px 14px;margin-bottom:11px}.total-mark{width:37px;height:37px;border-radius:10px;background:#e0edcc;display:grid;place-items:center;color:#3f7625;font-size:19px}.total-banner strong,.total-banner small{display:block}.total-banner strong{font-size:13px}.total-banner small{font-size:11px;color:var(--muted);margin-top:3px}.empty-state{text-align:center;padding:20px 9% 18px}.empty-illustration{position:relative;width:73px;height:73px;border-radius:23px;background:linear-gradient(145deg,#f3f7e8,#e5efd6);display:grid;place-items:center;margin:0 auto 13px;color:#5b8e2c;font-size:48px}.empty-illustration b{position:absolute;right:-4px;bottom:-4px;display:grid;place-items:center;width:27px;height:27px;border:3px solid #fffefa;border-radius:50%;background:#72a51c;color:white;font-size:20px}.empty-state h3{font:600 18px Outfit,sans-serif;margin:0 0 7px}.empty-state p{max-width:440px;margin:0 auto 18px;color:var(--muted);font-size:13px;line-height:1.55}.button{min-height:43px;border:0;border-radius:10px;padding:0 17px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;cursor:pointer;font-weight:700;font-size:13px;transition:filter .15s,transform .15s}.button:hover{filter:brightness(1.05)}.button:active{transform:translateY(1px)}.button-primary{background:linear-gradient(100deg,#4a851a,#367317);color:white;box-shadow:0 3px 7px #346d242c}.button-quiet{color:#3d4c3e;background:#f1f2eb}.expiry-panel .panel-heading{margin-bottom:21px}.calendar-mark{font-size:21px;color:#337042}.expiry-stat{display:grid;grid-template-columns:14px 1fr auto;align-items:center;gap:9px;border-bottom:1px solid #efeee7;padding:12px 1px;font-size:13px}.expiry-stat strong{font-size:14px}.expiry-dot{width:9px;height:9px;border-radius:50%;background:#edab32}.expiry-dot.urgent{background:#e84d35}.expiry-dot.soon{background:#efa92c}.muted-note{color:var(--muted);font-size:11px;line-height:1.5;margin:14px 0 3px}.expiry-item{display:flex;justify-content:space-between;gap:10px;padding:8px 0;color:#596254;font-size:11px;border-top:1px solid #f0efe9}.expiry-item strong{color:#333c30;white-space:nowrap}.expiry-empty{text-align:center;color:#798176;padding:20px 10px 15px}.expiry-empty span{display:block;font-size:30px;color:#668a4c}.expiry-empty p{max-width:250px;margin:6px auto 0;font-size:12px;line-height:1.55}.offline-note{display:flex;align-items:flex-start;gap:10px;margin:16px 1px 0;padding:12px 14px;border-radius:10px;background:#eef3e7;color:#53614b;font-size:11px;line-height:1.5}.offline-note>span:first-child{color:#55812b;font-size:19px;line-height:1}.offline-note strong{color:#324b2c}.page-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin:7px 0 22px}.page-heading h1{font-size:34px}.page-heading>div>p:last-child{font-size:13px;color:var(--muted);margin:7px 0 0}.stock-panel{padding:22px}.panel-subtitle{color:var(--muted);font-size:12px;margin:5px 0 0}.search-field{display:flex;align-items:center;gap:8px;background:#f8f8f2;border:1px solid #e8e8dc;border-radius:9px;padding:0 11px;color:#5f7556;min-height:39px}.search-field input{border:0;outline:0;background:transparent;width:160px;min-width:0;font-size:12px;color:var(--text)}.search-field:focus-within{outline:2px solid #8ab64d}.item-list{display:grid}.item-row{min-height:72px;display:grid;grid-template-columns:42px minmax(0,1fr) auto auto;align-items:center;gap:12px;border-top:1px solid #eeede5;padding:10px 2px}.item-symbol{width:39px;height:39px;border-radius:12px;background:#edf3e5;display:grid;place-items:center;color:#517a33;font-size:21px}.item-row:nth-child(3n) .item-symbol{background:#e8f4fa;color:#2d7197}.item-main{min-width:0}.item-main>strong,.item-main>span{display:block}.item-main>strong{font-size:13px;overflow-wrap:anywhere}.item-main>span:not(.sync-label){color:var(--muted);font-size:11px;margin-top:3px}.sync-label{display:inline-block;margin-top:4px;font-size:10px}.sync-label.pending{color:#856224}.sync-label.confirmed{color:#347146}.item-quantity{white-space:nowrap;font-size:13px;font-weight:700}.item-quantity small{font-size:11px;font-weight:500;color:var(--muted)}.item-actions{display:flex;gap:3px}.icon-button{width:36px;height:36px;border:0;border-radius:9px;background:transparent;color:#667160;font-size:18px;cursor:pointer;display:grid;place-items:center}.icon-button:hover{background:#f0f3e9;color:#2e672e}.empty-inline{display:flex;align-items:center;gap:15px;padding:29px 7px;border-top:1px solid #eeede5}.empty-inline .empty-icon{width:43px;height:43px;border-radius:13px;background:#eef3e7;display:grid;place-items:center;color:#588232;font-size:22px}.empty-inline strong{font-size:13px}.empty-inline p{font-size:12px;color:var(--muted);margin:4px 0 0}.footer{display:flex;justify-content:space-between;gap:15px;padding:12px clamp(20px,4vw,52px) 17px;color:#82887d;font-size:10px}.notice{padding:13px 16px;margin-bottom:16px;border-radius:10px;font-size:13px}.notice-error{background:#fff0ed;color:#8a2818;border:1px solid #efc4bb}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}dialog{width:min(100% - 28px,470px);border:1px solid #e5e5d9;border-radius:17px;padding:0;color:var(--text);box-shadow:0 25px 80px #1024164a}dialog::backdrop{background:#10251799;backdrop-filter:blur(3px)}dialog form{padding:25px}.dialog-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:21px}.dialog-head h2{font-size:23px}.dialog-head .icon-button{font-size:25px}.dialog-head .eyebrow{margin-bottom:5px}dialog label{display:block;margin:13px 0;font-size:12px;font-weight:700}dialog input,dialog select{display:block;width:100%;min-height:43px;border:1px solid #dfdfd4;border-radius:9px;margin-top:6px;padding:0 11px;background:#fffefa;color:var(--text);font-size:13px}dialog input:focus,dialog select:focus{outline:2px solid #78a83e;border-color:transparent}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.optional{font-weight:400;color:var(--muted)}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}.form-error{color:#a12e1e;font-size:12px;background:#fff0ed;padding:10px;border-radius:8px}.toast{position:fixed;z-index:10;left:50%;bottom:25px;transform:translate(-50%,15px);opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;max-width:min(90vw,540px);background:#203e22;color:white;padding:12px 18px;border-radius:11px;box-shadow:0 8px 24px #17240f45;font-size:12px;text-align:center}.toast.visible{opacity:1;transform:translate(-50%,0)}
@media(max-width:1050px){.app-shell{grid-template-columns:220px minmax(0,1fr)}.sidebar{padding-inline:13px}.dashboard-grid{grid-template-columns:minmax(0,1.4fr) minmax(230px,1fr)}.panel{padding:18px}.location-card{padding:14px;gap:10px}.location-icon{width:44px;height:44px}.welcome-art{right:3%;font-size:53px;opacity:.72}}
@media(max-width:760px){.app-shell{display:block}.sidebar{position:fixed;z-index:8;left:0;top:0;bottom:0;width:min(290px,84vw);height:100dvh;transform:translateX(-105%);transition:transform .22s ease;box-shadow:15px 0 35px #0003}.sidebar.mobile-open{transform:translateX(0)}.topbar{height:62px;padding:0 17px;gap:12px}.mobile-menu{display:grid;place-items:center;width:38px;height:38px;border:0;border-radius:9px;background:#ffffff16;color:white;font-size:20px;cursor:pointer}.mobile-brand{display:flex;align-items:center;gap:8px;font:600 18px Outfit,sans-serif}.mobile-brand img{border-radius:9px}.sync-status{font-size:10px;gap:6px}.topbar-spacer{flex:1}main{padding:20px 16px 25px}.welcome-panel{min-height:166px;padding:23px 22px}.welcome-copy{max-width:78%}.welcome-copy h1{font-size:31px}.welcome-copy>p:last-child{font-size:12px}.welcome-art{right:-3%;font-size:47px;opacity:.65}.welcome-art span:nth-child(2){font-size:39px}.summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:13px 0}.location-card{min-height:88px;padding:12px;gap:10px}.location-icon{height:40px;width:40px;border-radius:12px;font-size:24px}.location-card>div span{font-size:13px}.location-card strong{font-size:11px}.dashboard-grid{grid-template-columns:1fr;gap:12px}.panel{padding:17px}.panel-heading h2{font-size:18px}.empty-state{padding:15px 5% 14px}.footer{padding:10px 16px 15px;font-size:9px}.footer span:last-child{white-space:nowrap}.page-heading{align-items:flex-start;margin:1px 0 17px}.page-heading h1{font-size:31px}.page-heading>div>p:last-child{max-width:290px;line-height:1.45}.page-heading>.button{font-size:11px;white-space:nowrap;padding:0 11px;min-height:40px}.stock-panel{padding:16px}.stock-panel>.panel-heading{align-items:flex-start;flex-wrap:wrap}.search-field{width:100%}.search-field input{width:100%}.item-row{grid-template-columns:38px minmax(0,1fr) auto;gap:9px}.item-symbol{width:36px;height:36px}.item-quantity{grid-column:2;grid-row:2;font-size:11px;margin-top:-7px}.item-actions{grid-column:3;grid-row:1 / span 2}.item-actions .icon-button{width:32px;height:36px}.item-main{align-self:end}.item-main>strong{font-size:12px}.item-main>span:not(.sync-label){font-size:10px}.sync-label{font-size:9px}.item-row{padding:11px 0}.offline-note{margin-top:12px}.sync-status .status-icon{font-size:10px}}
@media(max-width:390px){.welcome-copy{max-width:83%}.welcome-art{font-size:36px}.welcome-art span:nth-child(2){font-size:30px}.location-card{padding:10px}.location-icon{width:35px;height:35px}.page-heading{gap:8px}.page-heading h1{font-size:28px}.page-heading>.button{font-size:10px;padding:0 8px}.footer span:first-child{max-width:190px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Vzhled přehledu podle schváleného návrhu Spižírníku. */
:root{--green-950:#0d2b15;--green-900:#12381c;--green-800:#1c4827;--cream:#faf6e9;--shadow:0 5px 16px rgba(45,39,21,.09)}
body{background:#f3efdf}
.sidebar{background:linear-gradient(165deg,#103719 0%,#0d2a14 100%);padding-top:20px}
.brand{padding-bottom:26px}
.brand img{width:50px;height:50px;object-fit:contain;border-radius:11px;background:#f5eedc;box-shadow:0 3px 12px #0003}
.nav-link img{flex:none;width:22px;height:22px;object-fit:contain;border-radius:50%}
.nav-link.active img{filter:brightness(1.2)}
.nav-note{margin:auto 8px 15px;padding:13px 10px 0;border-top:1px solid #ffffff20;color:#b9c7b2;font-size:11px;line-height:1.5}
.topbar{background:linear-gradient(100deg,#0d2c15,#153b1c);box-shadow:0 2px 10px #10260f16}
.mobile-brand img{object-fit:contain;border-radius:9px;background:#f5eedc}
main{max-width:1500px;background:#f4f0e2}
.welcome-panel{min-height:190px;padding:31px 38px;border-radius:12px;background-color:#392411;background-image:linear-gradient(90deg,rgba(39,25,10,.91) 0%,rgba(47,31,13,.78) 43%,rgba(47,31,13,.9) 70%,rgba(47,31,13,.44) 85%,rgba(47,31,13,.08) 100%),url('../pantry-hero.jpg');background-repeat:no-repeat;background-position:center,right center;background-size:100% 100%,auto 100%;box-shadow:0 5px 16px #2e28182a}
.welcome-panel:after{display:none}
.welcome-copy{max-width:560px}
.welcome-copy .eyebrow{font-size:10px;letter-spacing:1.7px;color:#e5d3a8}
.welcome-copy h1{font-size:clamp(29px,3.2vw,39px);text-shadow:0 1px 3px #21170e}
.welcome-copy>p:last-child{max-width:510px;color:#f7f0e2;font-size:14px;text-shadow:0 1px 3px #21170e}
.summary-grid{gap:14px;margin:16px 0 18px}
.location-card{min-height:132px;flex-direction:column;justify-content:center;gap:7px;padding:13px 10px;border-radius:15px;border-color:#e8ddc7;box-shadow:0 3px 9px #281e100f}
.location-spíž,.location-sklep{background:linear-gradient(145deg,#fff9e9,#f3dfb6)}
.location-lednice,.location-mrazák{background:linear-gradient(145deg,#f5fbff,#d6eafa);border-color:#d7e8f1}
.location-icon{width:56px;height:56px;padding:3px;border-radius:15px;background:#ffffff91;color:inherit}
.location-icon img{display:block;width:100%;height:100%}
.location-lednice .location-icon,.location-mrazák .location-icon{color:inherit}
.location-card>div span{font-family:Outfit,Arial,sans-serif;font-size:16px}
.location-card strong{font-size:12px;color:#50584b}
.dashboard-grid{grid-template-columns:minmax(0,1.65fr) minmax(270px,.95fr);gap:16px}
.panel{background:#fffdf7;border-color:#e8e1d2;border-radius:15px;box-shadow:0 4px 13px #30271710}
.heading-with-icon{display:flex;align-items:center;gap:11px;min-width:0}
.heading-with-icon>img{width:37px;height:37px;flex:none;border-radius:50%}
.heading-with-icon .eyebrow{margin-bottom:4px}
.total-mark{display:grid;place-items:center}
.total-mark img{width:31px;height:31px}
.empty-illustration{background:linear-gradient(145deg,#f3e5c9,#e5d3ad);border-radius:50%;width:80px;height:80px;padding:10px}
.empty-illustration>img{width:100%;height:100%}
.empty-illustration b{font-family:Arial,sans-serif}
.expiry-empty>img{display:block;width:52px;height:52px;margin:auto;border-radius:50%}
.item-symbol{display:grid;place-items:center}
.item-symbol img{width:39px;height:39px;border-radius:50%}
.empty-inline .empty-icon{padding:3px}
.empty-inline .empty-icon img{width:100%;height:100%}
.calendar-mark{display:none}
.search-symbol{position:relative;display:block;flex:none;width:15px;height:15px;border:2px solid #587342;border-radius:50%}
.search-symbol:after{position:absolute;content:"";width:6px;height:2px;right:-5px;bottom:-2px;background:#587342;transform:rotate(45deg);border-radius:2px}
.page-heading{color:#1b2b1c}
.offline-note{background:#edf1e4;border:1px solid #e0e8d4;color:#4d5e46}
@media(max-width:1050px){
  .welcome-panel{background-image:linear-gradient(90deg,rgba(39,25,10,.95) 0%,rgba(47,31,13,.85) 56%,rgba(47,31,13,.42) 100%),url('../pantry-hero.jpg')}
  .location-card{min-height:119px}
  .dashboard-grid{grid-template-columns:minmax(0,1.4fr) minmax(230px,1fr)}
}
@media(max-width:760px){
  main{background:#f4f0e2;padding-top:17px}
  .welcome-panel{min-height:170px;padding:23px 21px;background-image:linear-gradient(90deg,rgba(39,25,10,.97) 0%,rgba(47,31,13,.9) 70%,rgba(47,31,13,.72) 100%),url('../pantry-hero.jpg');background-position:center,right center;background-size:100% 100%,auto 100%;}
  .welcome-copy{max-width:76%}
  .welcome-copy h1{font-size:29px}
  .welcome-copy>p:last-child{font-size:12px}
  .location-card{min-height:115px;padding:10px 8px;gap:5px}
  .location-icon{height:48px;width:48px}
  .location-card>div span{font-size:14px}
  .heading-with-icon>img{width:33px;height:33px}
  .item-symbol img{width:36px;height:36px}
}
@media(max-width:390px){
  .welcome-panel{min-height:160px;padding:19px 16px;background-size:100% 100%,auto 90%;}
  .welcome-copy{max-width:80%}
  .welcome-copy h1{font-size:25px}
  .location-card{min-height:107px}
  .location-icon{width:43px;height:43px}
}

/* Rozvržení hlavičky a navigace odpovídající desktopové i mobilní předloze. */
.app-shell{grid-template-columns:250px minmax(0,1fr);grid-template-rows:88px minmax(calc(100vh - 88px),auto);gap:0}
.topbar{grid-column:1/-1;grid-row:1;position:sticky;top:0;z-index:15;width:100%;height:88px;padding:0 clamp(24px,3.2vw,48px);display:flex;gap:clamp(18px,3vw,42px)}
.header-brand{display:flex;align-items:center;gap:14px;flex:0 0 340px;min-width:0;color:#fff;text-decoration:none}
.header-brand img{width:58px;height:58px;object-fit:contain;border-radius:13px;background:#f5eedc;box-shadow:0 3px 13px #081b0a45}
.header-brand strong{display:block;font:700 26px/1.05 Outfit,'Arial',sans-serif;letter-spacing:-.5px}
.header-brand small{display:block;margin-top:5px;color:#e0e7da;font-size:11px;white-space:nowrap}
.header-search{display:flex;align-items:center;gap:10px;width:min(360px,34vw);height:43px;margin-left:auto;padding:0 8px 0 15px;border:1px solid #e5e2d8;border-radius:11px;background:#fffdf8;color:#293725;box-shadow:0 2px 9px #0002}
.header-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#243326;font-size:13px}
.header-search input::placeholder{color:#77796f}
.header-search:focus-within{outline:3px solid #a6cd32;outline-offset:2px}
.header-search button{flex:none;width:34px;height:34px;border:0;border-radius:8px;background:transparent;display:grid;place-items:center;cursor:pointer}
.header-search button:hover{background:#eff3e7}
.header-search .search-symbol{width:16px;height:16px}
.topbar-actions{display:flex;align-items:center;gap:22px;margin-left:clamp(8px,1.4vw,20px)}
.header-icon-button,.mobile-search{position:relative;display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:10px;background:transparent;cursor:pointer}
.header-icon-button:hover,.mobile-search:hover{background:#ffffff18}
.header-icon-button img{width:29px;height:29px}
.notification-count{position:absolute;top:1px;right:2px;min-width:18px;height:18px;padding:0 4px;border:2px solid #12361a;border-radius:10px;background:#e83726;color:#fff;display:grid;place-items:center;font-size:10px;font-weight:700}
.notification-count[hidden]{display:none}
.sync-status{white-space:nowrap;font-size:11px}
.mobile-menu,.mobile-brand,.mobile-search,.mobile-bottom-nav{display:none}
.sidebar{grid-column:1;grid-row:2;position:sticky;top:88px;height:calc(100vh - 88px);min-height:560px;overflow:auto;padding:22px 14px 16px}
.nav-list{gap:5px}
.nav-link{min-height:43px;gap:12px;padding:9px 12px;border-radius:9px}
.nav-link img{width:24px;height:24px}
.nav-divider{margin:17px 7px 12px}
.nav-caption{margin:0 10px 8px;color:#acbc9f}
.future-nav{padding:0 3px;gap:0}
.future-nav li{min-height:40px;padding:5px 8px;gap:11px;color:#d5dfcf}
.future-nav li>img{flex:none;width:24px;height:24px;border-radius:50%;opacity:.85}
.future-nav li>span{display:block;width:auto;text-align:left;color:inherit;font-size:12px;line-height:1.2}
.future-nav small{display:block;margin-top:3px;color:#9aaa92;font-size:9px}
.sidebar-bottom{position:sticky;bottom:0;margin-top:auto;padding:13px 5px 4px;background:linear-gradient(0deg,#0d2a14 80%,transparent);font-size:10px}
.main-column{grid-column:2;grid-row:2;min-height:calc(100vh - 88px);background:#f4f0e2}
.main-column main{padding:22px clamp(22px,2.5vw,38px) 30px;max-width:none}
.welcome-panel{min-height:184px;padding:27px 35px;border-radius:10px}
.welcome-copy h1{font-size:clamp(30px,2.5vw,38px)}
.summary-grid{gap:13px;margin:14px 0 17px}
.location-card{min-height:132px}
.dashboard-grid{grid-template-columns:minmax(0,1.58fr) minmax(290px,1fr);gap:15px}
.panel{padding:19px 20px}
.footer{padding:11px clamp(22px,2.5vw,38px) 15px}
.nav-note{display:none}
.mobile-bottom-nav{display:none}
@media(max-width:1100px) and (min-width:761px){
  .app-shell{grid-template-columns:215px minmax(0,1fr)}
  .header-brand{flex-basis:270px;gap:11px}
  .header-brand img{width:52px;height:52px}
  .header-brand strong{font-size:23px}
  .header-brand small{font-size:10px}
  .topbar{padding-inline:21px;gap:15px}
  .topbar-actions{gap:12px}
  .sync-status{font-size:10px}
  .main-column main{padding-inline:22px}
  .dashboard-grid{grid-template-columns:minmax(0,1.3fr) minmax(250px,.9fr)}
}
@media(max-width:760px){
  .app-shell{display:block;min-height:100vh;padding-bottom:calc(68px + env(safe-area-inset-bottom))}
  .topbar{position:sticky;top:0;z-index:18;height:62px;padding:0 13px;gap:10px}
  .mobile-menu{display:grid;place-items:center;flex:none;width:38px;height:38px;border:0;border-radius:9px;background:#ffffff16;color:#fff;font-size:20px;cursor:pointer}
  .header-brand{flex:1 1 auto;gap:8px}
  .header-brand img{width:37px;height:37px;border-radius:9px}
  .header-brand strong{font-size:19px}
  .header-brand small{display:none}
  .header-search{display:none}
  .topbar-actions{gap:5px;margin-left:auto}
  .header-icon-button,.mobile-search{width:36px;height:36px}
  .header-icon-button img{width:26px;height:26px}
  .mobile-search{display:grid}
  .mobile-search .search-symbol{border-color:#f5f2e7}
  .mobile-search .search-symbol:after{background:#f5f2e7}
  .sync-status{display:none}
  .sidebar{position:fixed;z-index:25;left:0;top:62px;bottom:0;width:min(290px,84vw);height:auto;min-height:0;overflow-y:auto;transform:translateX(-105%);transition:transform .22s ease;box-shadow:15px 0 35px #0004}
  .sidebar.mobile-open{transform:translateX(0)}
  .future-nav li{min-height:40px}
  .sidebar-bottom{position:static;margin-top:18px}
  .main-column{display:block;min-height:0;padding-bottom:0}
  .main-column main{padding:15px 13px 20px}
  .main-column .footer{display:none}
  .welcome-panel{min-height:181px;padding:21px 19px;border-radius:11px}
  .welcome-copy{max-width:76%}
  .welcome-copy h1{font-size:clamp(25px,7vw,30px);line-height:1.08}
  .welcome-copy>p:last-child{max-width:275px;margin-top:8px;font-size:12px;line-height:1.45}
  .welcome-copy .eyebrow{font-size:9px}
  .summary-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:11px 0 13px}
  .location-card{min-height:105px;padding:9px 6px;gap:4px;border-radius:13px}
  .location-icon{width:46px;height:46px;padding:2px;border-radius:13px}
  .location-card>div span{font-size:14px}
  .location-card strong{font-size:11px;margin-top:2px}
  .dashboard-grid{grid-template-columns:1fr;gap:11px}
  .panel{padding:16px;border-radius:13px}
  .inventory-panel .panel-heading,.expiry-panel .panel-heading{margin-bottom:12px}
  .heading-with-icon{gap:9px}
  .heading-with-icon>img{width:32px;height:32px}
  .panel-heading h2{font-size:17px}
  .empty-state{padding:11px 4% 8px}
  .empty-illustration{width:66px;height:66px;margin-bottom:10px}
  .empty-state h3{font-size:16px}
  .empty-state p{font-size:12px;margin-bottom:13px}
  .expiry-stat{padding:9px 1px;font-size:12px}
  .expiry-empty{padding:12px 8px 8px}
  .offline-note{font-size:10px;padding:10px 11px}
  .mobile-bottom-nav{position:fixed;z-index:16;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;height:calc(66px + env(safe-area-inset-bottom));padding:5px 5px env(safe-area-inset-bottom);background:linear-gradient(100deg,#0c2b14,#14391c);border-top:1px solid #ffffff22;box-shadow:0 -5px 18px #1d28151f}
  .mobile-bottom-nav a,.mobile-bottom-nav button{position:relative;display:flex;min-width:0;height:54px;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:0;background:transparent;color:#e8eee1;text-decoration:none;font-size:9px;font-weight:600;cursor:pointer}
  .mobile-bottom-nav a img,.mobile-bottom-nav button:not(.mobile-add) img{width:25px;height:25px;border-radius:50%}
  .mobile-bottom-nav a.active{color:#d9ee36}
  .mobile-bottom-nav a.active img{filter:drop-shadow(0 0 4px #c7ed3880)}
  .mobile-bottom-nav .mobile-add{justify-self:center;width:51px;height:51px;margin-top:-19px;border:3px solid #d2ed28;border-radius:50%;background:linear-gradient(145deg,#a8d417,#67a500);box-shadow:0 3px 12px #071c0c99;color:#fff;font-size:35px;font-weight:400;line-height:1}
  .mobile-bottom-nav .mobile-add:active{transform:scale(.96)}
  .more-dots{height:24px;font-size:19px;letter-spacing:1px;line-height:20px}
  .page-heading{margin:1px 0 14px}
  .page-heading h1{font-size:28px}
  .page-heading>div>p:last-child{font-size:12px}
  .page-heading>.button{font-size:10px;min-height:39px;padding-inline:10px}
  .stock-panel{padding:14px}
  .stock-panel>.panel-heading{align-items:flex-start;flex-wrap:wrap}
  .search-field{width:100%}
  .search-field input{width:100%}
  .item-row{grid-template-columns:36px minmax(0,1fr) auto;gap:8px}
  .item-symbol img{width:34px;height:34px}
  .item-actions .icon-button{width:30px}
  .footer{display:none}
}
@media(max-width:390px){
  .topbar{padding-inline:9px;gap:7px}
  .header-brand{gap:6px}
  .header-brand img{width:33px;height:33px}
  .header-brand strong{font-size:17px}
  .topbar-actions{gap:1px}
  .header-icon-button,.mobile-search{width:32px}
  .welcome-panel{min-height:172px;padding-inline:15px}
  .welcome-copy{max-width:77%}
  .welcome-copy h1{font-size:25px}
  .location-card{min-height:99px}
  .location-icon{width:43px;height:43px}
  .mobile-bottom-nav{padding-inline:2px}
}
.stock-chart{display:grid;grid-template-columns:minmax(160px,.85fr) minmax(180px,1fr);align-items:center;gap:20px;min-height:158px;padding:3px 5px}
.donut-chart{position:relative;display:grid;place-items:center;width:min(100%,154px);aspect-ratio:1;margin-inline:auto;border-radius:50%;background:var(--donut-gradient);box-shadow:inset 0 0 0 1px #ffffff70}
.donut-chart:before{content:"";position:absolute;inset:17%;border-radius:50%;background:#fffdf7;box-shadow:inset 0 0 0 1px #e8e3d7}
.donut-chart>div{position:relative;z-index:1;display:grid;justify-items:center;gap:1px}
.donut-chart strong{font:700 25px/1 Outfit,Arial,sans-serif;color:#121b13}
.donut-chart span{font-size:11px;color:#566051}
.chart-legend{display:grid;gap:8px;list-style:none;margin:0;padding:0}
.chart-legend li{display:grid;grid-template-columns:10px 25px minmax(0,1fr) auto;align-items:center;gap:8px;min-width:0;font-size:12px}
.chart-legend li>img{width:25px;height:25px}
.chart-legend .legend-swatch{width:10px;height:10px;border-radius:50%;background:var(--legend-color);box-shadow:0 0 0 2px color-mix(in srgb,var(--legend-color) 18%,transparent)}
.legend-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chart-legend strong{font-size:12px;white-space:nowrap}
.expiry-arrow{font-size:22px;color:#254f2b}
.expiry-stat{grid-template-columns:13px minmax(0,1fr) auto;gap:10px;padding:13px 1px}
.expiry-stat strong{font-size:12px;white-space:nowrap}
.expiry-dot.urgent{background:#e6372c;box-shadow:0 0 0 3px #e6372c18}
.expiry-dot.soon{background:#f29a12;box-shadow:0 0 0 3px #f29a121a}
.expiry-dot.later{background:#f0bd14;box-shadow:0 0 0 3px #f0bd141a}
.future-nav li>img{width:23px;height:23px}
@media(max-width:1050px){.stock-chart{grid-template-columns:minmax(135px,.8fr) minmax(150px,1fr);gap:13px}.donut-chart{width:min(100%,140px)}}
@media(max-width:760px){
  .stock-chart{grid-template-columns:minmax(116px,.72fr) minmax(0,1fr);gap:13px;min-height:128px;padding:0}
  .donut-chart{width:min(100%,126px)}
  .donut-chart:before{inset:16%}
  .donut-chart strong{font-size:21px}
  .chart-legend{gap:5px}
  .chart-legend li{grid-template-columns:8px 22px minmax(0,1fr) auto;gap:6px;font-size:11px}
  .chart-legend li>img{width:22px;height:22px}
  .chart-legend .legend-swatch{width:8px;height:8px}
  .chart-legend strong{font-size:11px}
  .expiry-stat{padding:9px 1px}
}
