/* Visual acceptance layer based on the supplied mobile kitchen-label screens. */
.food-photo,.category-card.photo-card,.food-visual.photo-hero{background-image:url('/assets/kitchen-food-sprite-v2.webp');background-repeat:no-repeat;background-size:400% 200%}
.photo-0{background-position:0 0!important}.photo-1{background-position:33.333% 0!important}.photo-2{background-position:66.667% 0!important}.photo-3{background-position:100% 0!important}
.photo-4{background-position:0 100%!important}.photo-5{background-position:33.333% 100%!important}.photo-6{background-position:66.667% 100%!important}.photo-7{background-position:100% 100%!important}
.category-card.photo-card{background-color:#162129;background-size:400% 200%;border-color:#33434d;isolation:isolate}
.category-card.photo-card:before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;opacity:0;transition:opacity .2s ease}
html:not(.food-sprite-ready) .category-card.photo-card:before{opacity:1;background:linear-gradient(105deg,#e2e8ea 24%,#f5f7f8 40%,#e2e8ea 56%);background-size:240% 100%;animation:category-loading 1.15s linear infinite}
html:not(.food-sprite-ready) .category-card.photo-card:after{background:linear-gradient(to top,rgba(14,31,38,.16),transparent 65%)}
html:not(.food-sprite-ready) .category-card.photo-card b{color:#31454e;text-shadow:none}
@keyframes category-loading{to{background-position:-240% 0}}
.category-card.photo-card:after{background:linear-gradient(180deg,transparent 20%,rgba(3,9,13,.9) 94%);z-index:0}
.category-card.photo-card b{position:absolute;left:10px;bottom:10px;margin:0;max-width:130px;text-shadow:0 1px 3px #000}
.category-card.photo-card small{color:#dbe3e8;text-shadow:0 1px 3px #000}
.food-thumb.food-photo{background-color:#eef1f3;background-size:400% 200%;box-shadow:inset 0 0 0 1px #0000000d}
.food-visual.photo-hero{background-color:#e8e2d8;background-size:400% 200%;background-position:center;box-shadow:inset 0 0 0 1px #0000000c}
.quick-print{min-width:58px;border-radius:10px;background:var(--red);color:#fff;padding:10px 12px;text-align:center;font-size:12px;font-weight:800}
.preview-screen{max-width:440px;margin:auto;padding:20px 18px 38px;text-align:center}.preview-screen h2{margin:4px 0}.preview-screen>p{margin:4px 0 0;color:var(--muted);font-size:12px}
.storage-list .settings-row.selected{background:#eef2f5}.storage-contents{margin:6px 14px 24px}.storage-contents h3{display:flex;justify-content:space-between;font-size:14px;margin:18px 0 8px}.storage-item{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding:9px 0}.storage-item>div{flex:1}.storage-item b,.storage-item small{display:block}.storage-item b{font-size:12px}.storage-item small{font-size:10px;color:var(--muted);margin-top:3px}
.simple-page{max-width:680px;margin:14px auto;padding:0 14px}.simple-page .settings-card{margin:0 0 14px}.simple-page h2{font-size:20px}.report-actions{display:grid;gap:9px}.report-actions .btn{margin:0}.about-mark{width:64px;height:64px;margin:20px auto 10px}.about-card{padding:12px 24px 22px}.about-logo{display:block;width:min(420px,82%);height:auto;margin:0 auto -4px;object-fit:contain}.about-copy{text-align:center;line-height:1.55;color:var(--muted);font-size:13px}.user-row small{display:block;color:var(--muted);font-size:10px;margin-top:3px}
.expiry-row{width:100%;border-top:0;border-left:0;border-right:0;background:#fff;text-align:left}.detail-grid{display:grid;grid-template-columns:1fr 1.35fr;gap:11px;padding:0 15px 16px;font-size:12px}.detail-grid span{color:var(--muted)}.timeline>div{display:flex;gap:12px;padding:10px 15px;border-top:1px solid var(--line)}.timeline i{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#dcf4e5;color:#13833a;font-style:normal}.timeline span{flex:1}.timeline b,.timeline small{display:block;font-size:12px}.timeline small{color:var(--muted);margin-top:3px}.status-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:9px}.status-actions .btn{width:100%}
.shelf-preview{margin:12px 0;padding:13px;border-radius:12px;background:#eef3f7;border:1px solid #dce5eb}.shelf-preview>small{display:block;font-weight:800;color:#60707c;margin-bottom:8px}.shelf-preview>div{display:grid;grid-template-columns:95px 1fr;gap:8px;padding:5px 0;font-size:12px}.shelf-preview>div span{font-weight:800}.shelf-preview>div b{text-align:right}.shelf-preview p{margin:8px 0 0;color:var(--muted);font-size:10px}.photo-placeholder.food-photo{color:#fff;text-shadow:0 1px 4px #000;background-size:400% 200%;border:0;position:relative;overflow:hidden}.photo-placeholder.food-photo:after{content:"";position:absolute;inset:0;background:#0004}.photo-placeholder.food-photo>*{position:relative;z-index:1}
@media(min-width:760px){.preview-screen{padding-top:45px}}

/* Desktop kitchen console */
@media (min-width:760px){body{background:#edf2f4}.app-shell{background:#edf2f4;min-height:100vh}.topbar,.topbar.dark{height:76px;padding:0 42px 0 116px;background:#fff;color:#14242b;border-color:#dce5e8}.topbar h1{font-size:22px;font-weight:800}.bottom-nav{width:92px;padding:94px 12px 24px;background:#fff;border-color:#dce5e8;gap:8px}.bottom-nav button{height:70px;border-radius:14px;color:#6d7a80}.bottom-nav button:hover{background:#f3f6f7;color:#15272f}.bottom-nav button.active{background:#ffe9ec;color:#e9203a}.screen{padding-left:92px}.home-screen{min-height:calc(100vh - 76px);background:#edf2f4}.home-hero{padding:34px max(42px,calc((100vw - 1180px)/2));background:linear-gradient(135deg,#122027,#20363f)}.home-hero>*{max-width:980px;margin-left:auto;margin-right:auto}.printer-card{padding:16px 18px;border-radius:14px;background:#20323a;border-color:#3d5661}.greeting{margin-top:26px}.greeting h2{font-size:28px;margin:0 0 6px}.greeting p{font-size:14px;margin-bottom:19px}.search{height:54px;border-radius:13px;padding:0 18px}.category-grid{grid-template-columns:repeat(3,1fr);gap:14px;margin-top:22px}.category-card{height:154px;border-radius:14px}.category-card b{font-size:16px;left:14px;bottom:13px;max-width:none}.category-card:hover{transform:translateY(-2px);box-shadow:0 12px 24px #0004}.home-screen .content-section{padding:26px max(42px,calc((100vw - 1180px)/2)) 48px;background:#edf2f4;color:#14242b}.content-section>.section-heading,.recent-list{max-width:980px;margin-left:auto;margin-right:auto}.home-screen .list-row{background:#fff;color:#15272f;border-color:#e5ebed;padding:15px 16px}.home-screen .list-row:first-child{border-radius:14px 14px 0 0}.home-screen .list-row:last-child{border-radius:0 0 14px 14px}.home-screen .row-copy small{color:#718087}.quick-print{border-radius:9px;min-width:74px}.settings-card{box-shadow:0 8px 24px #1c3d4a0b;border-color:#dbe4e7}.admin-form,.settings-card,.segmented{max-width:780px}.simple-page{max-width:810px}.detail-body{max-width:800px}}
@media(max-width:759px){.home-hero{padding-bottom:18px}.category-grid{gap:9px}.category-card{height:108px}.home-screen .content-section{padding-bottom:92px}}

/* Reference-inspired light workspace: clear navigation, generous rhythm, and touch-safe actions. */
@media(min-width:760px){.bottom-nav{width:236px;padding:20px 16px 28px;align-items:stretch;background:#fff}.bottom-nav:after{content:'Kitchen intelligence';margin-top:auto;padding:14px 12px;color:#8a989e;font-size:11px;border-top:1px solid #e8edef}.bottom-nav button{width:100%;height:50px;min-height:50px;flex-direction:row;justify-content:flex-start;gap:12px;padding:0 13px;border-radius:10px;font-size:13px}.bottom-nav button i{font-size:19px;width:20px;text-align:center}.bottom-nav button span{font-size:13px}.topbar,.topbar.dark{height:1px;min-height:1px;padding:0;margin-left:236px;border:0;overflow:hidden}.screen{padding-left:236px}.home-screen{min-height:100vh}.home-hero{padding:46px max(44px,calc((100vw - 1260px)/2));background:#f8fafb;color:#15252d}.home-hero>*{max-width:1040px}.printer-card{position:absolute;top:38px;right:max(44px,calc((100vw - 1260px)/2));width:260px;background:#fff;color:#24363e;border:1px solid #dce5e8;box-shadow:0 6px 16px #1c3d4a0b}.printer-card small{color:#75848b}.greeting{padding-right:290px;margin:0}.greeting h2{font-size:30px;letter-spacing:-.5px}.greeting p{color:#6e7c83}.search{margin-top:28px;border:1px solid #dce5e8;box-shadow:0 5px 14px #1c3d4a0a}.category-grid{grid-template-columns:repeat(3,1fr);margin-top:28px}.category-card{height:166px;box-shadow:0 4px 11px #132b350f}.home-screen .content-section{padding:32px max(44px,calc((100vw - 1260px)/2)) 56px;background:#f8fafb}.content-section>.section-heading,.recent-list{max-width:1040px}.section-heading h2{font-size:20px}.home-screen .list-row{box-shadow:0 1px 0 #edf1f2}.quick-print{background:#ef2440;padding:10px 16px}.settings-card{background:#fff}.admin-form{padding-top:28px}}
@media(max-width:759px){.topbar{height:64px}.topbar .brand-lockup small{display:none}.home-hero{background:#f8fafb;color:#15252d}.home-hero .printer-card{background:#fff;color:#24363e;border-color:#dce5e8}.home-hero .printer-card small{color:#75848b}.greeting p{color:#6e7c83}.category-card{border-radius:14px}.bottom-nav{box-shadow:0 -8px 22px #152b3410}.settings-card{border-radius:14px}}

/* Print history: a scannable operational ledger rather than a narrow mobile list. */
@media(min-width:760px){.screen:has(.history-table){padding-top:42px;padding-right:max(44px,calc((100vw - 1260px)/2));background:#f8fafb;min-height:100vh}.screen:has(.history-table) .search.light{max-width:1040px;height:54px;margin:0 auto 28px;background:#fff;border:1px solid #dce5e8;border-radius:13px;padding-inline:18px}.screen:has(.history-table) .history-date{max-width:1040px;margin:auto;padding:0 0 12px;font-size:18px;color:#172830}.screen:has(.history-table) .history-table{max-width:1040px;margin:auto;padding:0;background:#fff;border:1px solid #dce5e8;border-radius:14px;overflow:hidden;box-shadow:0 8px 22px #1c3d4a0a}.screen:has(.history-table) .history-row{grid-template-columns:130px minmax(260px,1fr) 240px;gap:18px;padding:18px 22px;background:#fff;align-items:center}.screen:has(.history-table) .history-row:hover{background:#fff8f9}.screen:has(.history-table) .history-row>span:first-child small{font-size:12px;color:#7b8990}.screen:has(.history-table) .history-row b{font-size:14px}.screen:has(.history-table) .history-row small{font-size:11px}.screen:has(.history-table) .history-row>span:last-child{display:grid;gap:4px;text-align:right}.screen:has(.history-table) .history-row>span:last-child b{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;color:#21343c}.screen:has(.history-table) .history-row>span:last-child small{color:#159249;font-weight:700}}
@media(max-width:759px){.history-table{padding:0 14px}.history-row{grid-template-columns:58px 1fr 92px}.history-date{padding-top:18px}}

@media(min-width:760px){.topbar:has(.icon-btn){height:72px;min-height:72px;margin-left:236px;padding:0 max(44px,calc((100vw - 1260px)/2));display:flex;background:#f8fafb;color:#172830;border-bottom:1px solid #dce5e8;overflow:visible}.topbar:has(.icon-btn) .icon-btn{display:grid;place-items:center;width:38px;height:38px;border:1px solid #d3dfe3;border-radius:10px;background:#fff;color:#23363e;font-size:28px;line-height:1;transition:.15s}.topbar:has(.icon-btn) .icon-btn:hover{border-color:var(--red);color:var(--red);transform:translateX(-2px)}.topbar:has(.icon-btn)>h1{display:block;font-size:18px;margin-left:4px}.topbar:has(.icon-btn)>.icon-btn:last-child{display:none}}

/* Shared product finish: calm surfaces, clear states, and reliable touch targets. */
/* Item editor: preserve food-photo proportions and expose clear editing states. */
.item-image-editor{margin-bottom:18px}
.photo-placeholder.food-photo{height:auto;min-height:180px;aspect-ratio:16/7;background-size:400% auto;border-radius:8px;background-color:#dfe5e7;background-position:center}
.food-photo.custom-photo,.photo-hero.custom-photo{background-size:cover!important;background-position:center!important;background-repeat:no-repeat}
.image-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:10px}
.image-actions .btn{width:auto;min-width:128px;height:42px;display:grid;place-items:center;padding:0 18px}
.image-picker{position:relative;overflow:hidden;cursor:pointer}
.image-picker input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.choice-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.choice-row label{min-height:58px;position:relative;display:flex;align-items:center;justify-content:center;gap:8px;border:1.5px solid #dce5e8;border-radius:8px;padding:10px;background:#f4f7f8;color:#263841;font-size:13px;cursor:pointer}
.choice-row input{display:block;position:absolute;opacity:0;pointer-events:none}
.choice-row label:hover{border-color:#aebfc6;background:#fff}
.choice-row label:has(input:checked){border-color:#ef2440;background:#fff1f3;box-shadow:0 0 0 3px #ef244018;color:#bd122a}
.choice-row label:has(input:focus-visible){outline:3px solid #ef244033;outline-offset:2px}
.classification-dot{width:16px;height:16px;border-radius:50%;flex:0 0 auto;border:1px solid #9aa8ae;background:#fff}
.classification-dot.veg{background:#18ad40;border-color:#118d32}
.classification-dot.non-veg{background:#e32435;border-color:#bb1726}
.classification-dot.other{background:#fff;border:2px solid #687982}
.label-classification{display:flex;align-items:center;justify-content:center;gap:4px;text-align:center;font-size:9px;font-weight:900;margin-top:3px;line-height:1}
.label-classification.veg{color:#00a651}.label-classification.non-veg{color:#c51f35}
.metric{border:0;text-align:left;cursor:pointer}.metric:hover{transform:translateY(-1px);box-shadow:0 8px 18px #18333e14}.metric.selected{outline:3px solid currentColor;outline-offset:2px}
.food-mark{width:14px;height:14px;border:2px solid currentColor;display:inline-grid;place-items:center;flex:0 0 auto}
.food-mark.veg i{width:7px;height:7px;border-radius:50%;background:currentColor}
.food-mark.non-veg i{width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-bottom:8px solid currentColor;transform:translateY(-1px)}
.storage-location-control{max-width:780px;margin:14px auto 18px;padding:15px 17px;display:flex;align-items:center;gap:18px;background:#fff;border:1px solid #dce5e8;border-radius:8px}
.storage-location-control>div{flex:1;min-width:0}
.storage-location-control b,.storage-location-control small{display:block}
.storage-location-control b{font-size:14px}
.storage-location-control small{margin-top:4px;color:var(--muted);font-size:11px}
.storage-location-control .btn{width:auto;min-width:150px;padding:0 16px}
.btn-danger{background:#c9192f;color:#fff;border:1px solid #ac1025}
.btn-danger:hover{background:#aa1025}
.storage-list .settings-row.location-disabled{color:#7d898f;background:#f2f4f5}
.storage-list .settings-row.location-disabled span,.storage-list .settings-row.location-disabled i{opacity:.55}
.storage-list .settings-row b small{display:block;margin-top:3px;color:#c9192f;font-size:10px;font-weight:800;text-transform:uppercase}
.category-card.photo-card{height:auto;aspect-ratio:4/3;padding:0;border:1px solid #cfd9dd;border-radius:8px;background-size:400% auto;box-shadow:0 5px 14px #142d3714}
.category-card.photo-card:after{background:linear-gradient(to top,rgba(4,11,15,.88) 0,rgba(4,11,15,.28) 38%,transparent 68%)}
.category-card.photo-card b{left:14px;right:14px;bottom:13px;max-width:none;font-size:15px;line-height:1.2;text-shadow:0 1px 2px #000}
.category-card.photo-card:hover{transform:translateY(-2px);border-color:#aebdc3;box-shadow:0 10px 22px #142d3724}
.category-card.photo-card.photo-0{background-position:0 10%!important}
.category-card.photo-card.photo-1{background-position:33.333% 10%!important}
.category-card.photo-card.photo-2{background-position:66.667% 10%!important}
.category-card.photo-card.photo-3{background-position:100% 10%!important}
.category-card.photo-card.photo-4{background-position:0 90%!important}
.category-card.photo-card.photo-5{background-position:33.333% 90%!important}
.category-card.photo-card.photo-6{background-position:66.667% 90%!important}
.category-card.photo-card.photo-7{background-position:100% 90%!important}
.food-visual.photo-hero:not(.custom-photo){background-size:400% auto}
:is(.food-visual.photo-hero,.photo-placeholder.food-photo).photo-0{background-position:0 18%!important}
:is(.food-visual.photo-hero,.photo-placeholder.food-photo).photo-1{background-position:33.333% 18%!important}
:is(.food-visual.photo-hero,.photo-placeholder.food-photo).photo-2{background-position:66.667% 18%!important}
:is(.food-visual.photo-hero,.photo-placeholder.food-photo).photo-3{background-position:100% 18%!important}
:is(.food-visual.photo-hero,.photo-placeholder.food-photo).photo-4{background-position:0 82%!important}
:is(.food-visual.photo-hero,.photo-placeholder.food-photo).photo-5{background-position:33.333% 82%!important}
:is(.food-visual.photo-hero,.photo-placeholder.food-photo).photo-6{background-position:66.667% 82%!important}
:is(.food-visual.photo-hero,.photo-placeholder.food-photo).photo-7{background-position:100% 82%!important}
@media(max-width:480px){.photo-placeholder.food-photo{min-height:150px;aspect-ratio:2/1}.choice-row{gap:6px}.choice-row label{gap:5px;font-size:12px;padding:8px 4px}.image-actions .btn{flex:1;min-width:0}}
@media(max-width:600px){.storage-location-control{align-items:stretch;flex-direction:column}.storage-location-control .btn{width:100%}}
@media(min-width:760px){.category-card.photo-card{aspect-ratio:2/1}.category-card.photo-card.photo-0{background-position:0 18%!important}.category-card.photo-card.photo-1{background-position:33.333% 18%!important}.category-card.photo-card.photo-2{background-position:66.667% 18%!important}.category-card.photo-card.photo-3{background-position:100% 18%!important}.category-card.photo-card.photo-4{background-position:0 82%!important}.category-card.photo-card.photo-5{background-position:33.333% 82%!important}.category-card.photo-card.photo-6{background-position:66.667% 82%!important}.category-card.photo-card.photo-7{background-position:100% 82%!important}}
.settings-page,.admin-page{width:min(1120px,calc(100% - 32px));margin:28px auto 56px}
.settings-grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:18px;align-items:start}
.settings-panel,.item-master,.user-directory,.user-create-panel{background:#fff;border:1px solid #d8e2e6;border-radius:8px;overflow:hidden;box-shadow:0 6px 18px #18333e0b}
.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:19px 20px 14px}
.panel-heading small,.admin-toolbar small{display:block;color:#77878e;font-size:11px;font-weight:700;text-transform:uppercase}
.panel-heading h2,.admin-toolbar h2{margin:3px 0 0;font-size:20px}
.panel-status{padding:6px 9px;border-radius:6px;background:#e6f6ec;color:#14723a;font-size:11px;font-weight:800}
.panel-status.offline{background:#fff0df;color:#a55a00}
.settings-panel .printer-card{position:static!important;inset:auto!important;width:auto!important;margin:0 20px;padding:16px;background:#f5f8f9;color:#22353d;border:1px solid #dce5e8;border-radius:8px;box-shadow:none}
.settings-panel .printer-card small{color:#6f7f86}
.settings-panel .printer-card:hover{border-color:#b9c8ce;background:#fff}
.panel-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:14px 20px 20px}
.panel-actions .btn{width:100%}
.application-panel .panel-heading{border-bottom:1px solid #e4eaed}
.application-panel .settings-row{grid-template-columns:34px 1fr auto;min-height:64px;padding:10px 18px}
.application-panel .settings-row>span{display:grid;place-items:center;width:30px;height:30px;border-radius:6px;background:#f1f4f5;color:#354850;font-size:16px}
.application-panel .settings-row b{font-size:13px}
.application-panel .settings-row b small{display:block;margin-top:3px;color:#7b8a91;font-size:10px;font-weight:500}
.application-panel .settings-row i{color:#8a989e;font-size:20px}
.signout-link{display:block;margin:18px auto 0;padding:10px 16px;border:0;background:transparent;color:#b21a2e;font-weight:750}
.signout-link:hover{background:#fff0f2;border-radius:6px}
.success-check.queued{background:#e8f1f4;color:#31515e;font-size:34px}
.bridge-page{display:grid;gap:16px}
.bridge-pair,.bridge-devices{margin:0}
.bridge-pair .panel-heading .btn{width:auto;height:42px;padding:0 16px}
.bridge-help{margin:0;padding:0 20px 20px;color:var(--muted);font-size:12px;line-height:1.55}
.pairing-code{margin:0 20px 20px;padding:18px;display:grid;place-items:center;background:#f2f7f8;border:1px solid #d8e4e7;border-radius:8px}
.pairing-code small,.pairing-code span{color:#6e7f87;font-size:11px}
.pairing-code b{margin:5px 0;font:800 34px/1.1 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:6px;color:#12313b}
.refresh-bridge{width:38px;height:38px;border:1px solid #d8e2e6;border-radius:8px;font-size:22px}
.bridge-device{min-height:72px;padding:12px 20px;display:grid;grid-template-columns:18px 1fr auto;align-items:center;gap:12px;border-top:1px solid #e3eaed}
.bridge-device>span:nth-child(2) b,.bridge-device>span:nth-child(2) small{display:block}
.bridge-device>span:nth-child(2) small{margin-top:4px;color:var(--muted);font-size:11px}
.bridge-device .btn{width:auto;height:38px;padding:0 14px}
.bridge-steps{display:grid;gap:8px;margin:0;padding:0 20px 20px 38px;color:#53666f;font-size:12px;line-height:1.5}
.bridge-steps b{color:#24363e}
@media(max-width:520px){.bridge-pair .panel-heading{align-items:flex-start;flex-direction:column}.bridge-pair .panel-heading .btn{width:100%}.bridge-device{grid-template-columns:18px 1fr}.bridge-device .btn{grid-column:2;justify-self:start}}
.admin-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:16px}
.admin-toolbar .btn{width:auto;min-width:118px;padding:0 18px}
.admin-search{height:46px;margin-bottom:12px;display:flex;align-items:center;gap:9px;padding:0 14px;background:#fff;border:1px solid #d8e2e6;border-radius:8px;color:#687a82}
.admin-search span{font-size:21px}
.admin-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#1c2d35}
.item-master-head,.item-master-row{display:grid;grid-template-columns:minmax(280px,1.7fr) minmax(125px,.72fr) minmax(120px,.7fr) minmax(135px,.85fr) 20px;gap:18px;align-items:center}
.item-master-head{min-height:40px;padding:0 18px;background:#f5f8f9;border-bottom:1px solid #dfe7ea;color:#708087;font-size:10px;font-weight:800;text-transform:uppercase}
.item-master-row{width:100%;min-height:76px;padding:10px 18px;border:0;border-bottom:1px solid #e3e9ec;background:#fff;color:#203139;text-align:left}
.item-master-row:last-child{border-bottom:0}
.item-master-row:hover{background:#fff8f9}
.item-identity{display:flex;align-items:center;gap:12px;min-width:0}
.item-identity>span:last-child{min-width:0}
.item-identity b,.item-identity small,.rule-cell b,.rule-cell small{display:block}
.item-identity b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.nav-icon{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.admin-toolbar-actions{display:flex;align-items:center;gap:9px}.admin-toolbar-actions .btn{padding:0 16px}
.batch-print-page{width:min(1120px,100%);margin:24px auto 110px}.batch-print-head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:16px}.batch-print-head small{color:var(--wine);font-size:10px;font-weight:850}.batch-print-head h1{margin:4px 0 0;font-size:25px}.batch-print-head .field{width:280px;margin:0}.batch-filterbar{display:grid;grid-template-columns:minmax(240px,1fr) 220px auto auto;gap:10px;align-items:center;margin-bottom:12px}.batch-search{display:flex;align-items:center;gap:9px;height:42px;padding:0 12px;border:1px solid #d5e0e4;border-radius:8px;background:#fff}.batch-search span{color:#6f8188}.batch-search input{width:100%;border:0;outline:0;background:transparent;font:inherit}.batch-filterbar select{height:42px;border:1px solid #d5e0e4;border-radius:8px;background:#fff;padding:0 10px;font-weight:750}.batch-filterbar .btn{height:42px;padding:0 14px}.batch-table{overflow:hidden;border:1px solid #d8e2e6;border-radius:8px;background:#fff;box-shadow:0 6px 18px #18333e0b}.batch-table-head,.batch-row{display:grid;grid-template-columns:60px minmax(240px,1fr) minmax(180px,260px) 90px;gap:14px;align-items:center}.batch-table-head{height:42px;padding:0 16px;background:#f2f5f6;color:#697b83;font-size:9px;font-weight:850;text-transform:uppercase}.batch-row{min-height:72px;padding:9px 16px;border-top:1px solid #e3e9ec}.batch-row[hidden]{display:none!important}.batch-row:has(.batch-check input:checked){background:#fff7f8}.batch-check{display:grid;place-items:center;width:34px;height:34px;cursor:pointer}.batch-check input{position:absolute;opacity:0}.batch-check span{display:grid;place-items:center;width:22px;height:22px;border:2px solid #b8c6cc;border-radius:5px;background:#fff}.batch-check input:checked+span{border-color:var(--wine);background:var(--wine)}.batch-check input:checked+span:after{content:'✓';color:#fff;font-size:15px;font-weight:900}.batch-item{display:flex;align-items:center;gap:11px;min-width:0}.batch-item b,.batch-item small{display:block}.batch-item b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.batch-item small{margin-top:3px;color:#73838a;font-size:10px}.batch-storage,.batch-qty{height:42px;border:1px solid #d5e0e4;border-radius:7px;background:#fff;padding:0 10px}.batch-qty{width:76px;text-align:center;font-weight:800}.batch-empty{border-top:1px solid #e3e9ec}.batch-order-bar{position:sticky;bottom:18px;display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:14px;padding:14px 16px;border:1px solid #d8e2e6;border-radius:9px;background:#fffffff2;box-shadow:0 14px 35px #152a3330;backdrop-filter:blur(12px)}.batch-order-bar b,.batch-order-bar small{display:block}.batch-order-bar b{font-size:14px}.batch-order-bar small{margin-top:3px;color:#708088;font-size:10px}.batch-order-bar .btn{min-width:180px;padding:0 20px}
@media(max-width:759px){.admin-toolbar-actions{width:100%}.admin-toolbar-actions .btn{flex:1}.batch-print-page{width:auto;margin:14px 12px 100px}.batch-print-head{display:block}.batch-print-head .field{width:100%;margin-top:14px}.batch-filterbar{grid-template-columns:1fr 1fr}.batch-search{grid-column:1/-1}.batch-filterbar select{grid-column:1/-1}.batch-filterbar .btn{width:100%;padding:0 10px}.batch-table-head{display:none}.batch-row{grid-template-columns:42px minmax(0,1fr) 70px;gap:9px;padding:11px}.batch-item{grid-column:2}.batch-storage{grid-column:2/4;width:100%}.batch-qty{grid-column:3;grid-row:1}.batch-order-bar{bottom:82px}.batch-order-bar .btn{min-width:130px}.batch-order-bar small{max-width:160px}}
.item-identity small,.rule-cell small{margin-top:3px;color:#7a8990;font-size:10px}
.class-badge{display:inline-flex;padding:5px 7px;border-radius:5px;font-size:10px;font-style:normal;font-weight:850}
.class-badge.veg{background:#e2f5e8;color:#14743b}
.class-badge.non-veg{background:#ffe5e8;color:#b7182d}
.class-badge.other{background:#edf1f3;color:#52646c}
.rule-cell b,.storage-cell{font-size:12px}
.storage-cell{color:#53666e}
.row-chevron{color:#85959c;font-size:22px;text-align:right}
.user-create-panel{margin-bottom:16px;padding-bottom:18px}
.icon-close{display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:50%;background:#edf2f4;color:#43565e;font-size:23px}
.user-form-grid{display:grid;grid-template-columns:1.4fr 1fr .8fr auto;gap:12px;align-items:end;padding:0 20px}
.user-form-grid .field{margin:0}
.user-form-grid .btn{width:auto;padding:0 18px}
.user-directory-head,.user-management-row{display:grid;grid-template-columns:minmax(240px,1.5fr) minmax(140px,.8fr) 100px 120px;gap:18px;align-items:center}
.user-directory-head{min-height:40px;padding:0 18px;background:#f5f8f9;border-bottom:1px solid #dfe7ea;color:#708087;font-size:10px;font-weight:800;text-transform:uppercase}
.user-management-row{min-height:72px;padding:10px 18px;border-bottom:1px solid #e3e9ec}
.user-management-row:last-child{border-bottom:0}
.user-management-row.disabled{background:#fafbfb;color:#78868c}
.user-identity{display:flex;align-items:center;gap:11px;min-width:0}
.user-identity>i{display:grid;place-items:center;width:38px;height:38px;flex:0 0 auto;border-radius:50%;background:#263b44;color:#fff;font-size:14px;font-style:normal;font-weight:850}
.user-management-row.disabled .user-identity>i{background:#a7b1b5}
.user-identity b,.user-identity small{display:block}
.user-identity b{font-size:13px}
.user-identity small{margin-top:3px;color:#7a8990;font-size:10px}
.role-label{color:#52656d;font-size:12px}
.user-status{width:max-content;padding:5px 8px;border-radius:5px;font-size:10px;font-weight:850}
.user-status.active{background:#e2f5e8;color:#14743b}
.user-status.inactive{background:#edf1f3;color:#687980}
.user-toggle{width:100%;height:38px;min-height:38px;font-size:11px}
.user-toggle:disabled{border:0;background:transparent;color:#849198;opacity:1;cursor:default}
@media(max-width:759px){.settings-page,.admin-page{width:auto;margin:14px 12px 32px}.settings-grid{grid-template-columns:1fr}.admin-toolbar{align-items:flex-end}.item-master-head,.user-directory-head{display:none}.item-master-row{grid-template-columns:minmax(0,1fr) auto;gap:5px 10px;padding:12px}.item-identity{grid-column:1;grid-row:1}.item-master-row>span:nth-child(2){grid-column:2;grid-row:1}.rule-cell{grid-column:1;grid-row:2;margin-left:64px}.storage-cell{grid-column:1;grid-row:3;margin-left:64px;font-size:10px}.row-chevron{grid-column:2;grid-row:2/4;align-self:center}.user-form-grid{grid-template-columns:1fr}.user-form-grid .btn{width:100%}.user-management-row{grid-template-columns:minmax(0,1fr) auto;gap:8px 12px}.user-identity{grid-column:1;grid-row:1}.role-label{grid-column:1;grid-row:2;margin-left:49px}.user-status{grid-column:2;grid-row:1}.user-toggle{grid-column:2;grid-row:2;width:92px}.panel-actions{grid-template-columns:1fr}.settings-panel .printer-card{margin:0 14px}.panel-heading{padding-inline:14px}.application-panel .settings-row{padding-inline:14px}}
:root{--canvas:#f4f7f8;--ink:#172830;--muted:#718087;--line:#dce5e8;--surface:#fff;--red:#ef2440;--red-dark:#d91330}body{color:var(--ink);letter-spacing:.005em}button,input,select{transition:border-color .15s,box-shadow .15s,background .15s,transform .15s}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #ef244033;outline-offset:2px}.btn{min-height:48px;letter-spacing:.01em}.btn-primary{background:linear-gradient(135deg,#ff3850,#e71735);box-shadow:0 8px 18px #ef24402e}.btn-primary:hover{background:linear-gradient(135deg,#ff4c60,#ef2440);transform:translateY(-1px);box-shadow:0 10px 22px #ef24403b}.btn-outline:hover{background:#fff1f3}.field>span,fieldset legend{color:#3e525c;font-size:11px;letter-spacing:.025em;text-transform:uppercase}.field input,.field select{border-color:#d5e0e4;background:#fbfcfc}.field input:hover,.field select:hover{border-color:#bdced4}.field input:focus,.field select:focus{border-color:#ef2440;box-shadow:0 0 0 4px #ef244018;outline:0;background:#fff}.settings-card,.form-section{border-color:#dce5e8}.settings-card h3,.form-section h3{color:#1c3039}.status-orb{box-shadow:0 0 0 6px #18c75715}.empty{border-radius:14px;background:#fff;color:#718087}.history-row,.list-row,.settings-row,.printer-list-row{transition:background .15s}.history-row:hover,.list-row:hover,.settings-row:hover,.printer-list-row:hover{background:#fff8f9}.toast{border:1px solid #ffffff26;box-shadow:0 12px 30px #12232c35}.label-paper{border:1px solid #e5e8e8;box-shadow:0 16px 32px #1c3d4a1a}.metric{box-shadow:0 4px 12px #1c3d4a0a}.segmented{padding:4px}.segmented button{min-height:38px;font-weight:700}.login-dialog{border:1px solid #ffffff55}.login-dialog form{padding:30px}.login-dialog h1{letter-spacing:-.025em}@media(min-width:760px){.screen:not(.home-screen){padding-bottom:56px}.simple-page,.admin-form{margin-top:22px}.form-section{padding:10px 20px 18px;border-radius:14px}.settings-card{border-radius:14px}.detail-grid{padding:4px 20px 20px;gap:13px}.timeline>div{padding:13px 20px}.timeline i{width:30px;height:30px}.status-actions{gap:12px}.printer-list-row{padding:18px 20px}}

/* Clear, polished save confirmation used across desktop and mobile. */
.toast{display:flex;align-items:center;gap:13px;min-height:66px;width:min(390px,calc(100% - 28px));padding:12px 18px;border-radius:16px;font-size:14px;font-weight:750;line-height:1.35;box-shadow:0 18px 45px #112b2038;transition:opacity .22s ease,transform .28s cubic-bezier(.2,.8,.2,1)}
.toast.success{background:linear-gradient(135deg,#168547,#0d6f39);border:1px solid #ffffff35}
.toast.success::before{content:"✓";display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:50%;background:#fff;color:#118044;font-size:27px;font-weight:950;box-shadow:0 5px 14px #063d222e;animation:toast-check .32s cubic-bezier(.2,.9,.3,1.35)}
.toast.error::before{content:"!";display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:50%;background:#fff;color:#a91729;font-size:23px;font-weight:900}
@keyframes toast-check{from{transform:scale(.45) rotate(-18deg);opacity:0}to{transform:scale(1) rotate(0);opacity:1}}
@media(max-width:520px){.toast{bottom:82px;min-height:62px;border-radius:14px;padding:10px 14px}.toast.success::before{width:38px;height:38px;flex-basis:38px;font-size:24px}}

/* All-category dashboard with item and expiry totals. */
.home-screen .category-grid{grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px}
.home-screen .category-card.photo-card{aspect-ratio:5/3;min-height:118px;border-radius:12px}
.home-screen .category-card.photo-card:after{background:linear-gradient(to top,rgba(3,9,13,.94) 0,rgba(3,9,13,.52) 54%,rgba(3,9,13,.06) 100%)}
.home-screen .category-card.photo-card>b{left:11px;right:11px;bottom:42px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-screen .category-card .category-counts{position:absolute;z-index:2;left:10px;right:10px;bottom:9px;top:auto;width:auto;height:auto;display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:inherit;filter:none}
.home-screen .category-card .category-counts small{display:block;max-width:none;margin:0;padding:4px 7px;border-radius:999px;background:#ffffffdf;color:#1a3039;font-size:9px;font-weight:850;line-height:1;letter-spacing:.01em;text-shadow:none;white-space:nowrap}
.home-screen .category-card .category-counts .category-expiry{background:#6d7980e8;color:#fff}
.home-screen .category-card .category-counts .category-expiry.has-expiry{background:#e51f3b;color:#fff;box-shadow:0 3px 9px #b60720aa}
@media(min-width:760px){.home-screen .category-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.home-screen .category-card.photo-card{aspect-ratio:4/3;min-height:126px}}
@media(max-width:380px){.home-screen .category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.home-screen .category-card.photo-card{min-height:108px}.home-screen .category-card .category-counts small{padding:4px 5px;font-size:8px}}

/* Keep the desktop printer state inside the home workspace, below the sticky header. */
@media(min-width:760px){
  .home-hero{position:relative;padding-top:32px}
  .home-hero>.printer-card{position:absolute;top:32px;right:max(44px,calc((100% - 1040px)/2));width:260px;min-height:68px;margin:0;padding:13px 15px;border-radius:8px;box-shadow:0 5px 16px #18333e12;z-index:1}
  .home-hero>.printer-card:hover{border-color:#c5d2d7;box-shadow:0 7px 20px #18333e18}
}

/* Product branding: preserve the supplied logo's wide aspect ratio at every size. */
.brand-logo,.nav-brand-logo,.login-logo{display:block;height:auto;object-fit:contain}
.brand-logo{width:116px;max-height:58px}
.nav-brand{width:100%;height:92px;display:flex;align-items:center;justify-content:center;padding:0 8px 16px;margin-bottom:8px;border:0;border-bottom:1px solid #e8edef;background:transparent;cursor:pointer}
.nav-brand-logo{width:174px;max-height:82px}
.login-logo{width:min(250px,78%);margin:0 auto 20px;padding:12px 18px;background:#071015;border-radius:6px}
@media(max-width:759px){.nav-brand{display:none}.brand-logo{width:100px;max-height:54px}.login-logo{width:min(220px,76%)}}
@media(min-width:760px){
  .topbar>.brand-lockup{display:none}
  .topbar:has(>h1:empty){height:0;min-height:0;border:0;overflow:hidden}
}

/* Recently used: compact empty feedback without turning the section into a banner. */
.home-screen{background:#f8fafb}
.home-screen .recent-list.is-empty{border:1px solid #dce5e8;border-radius:8px;background:#fff;overflow:hidden}
.home-screen .recent-list.is-empty .empty{min-height:92px;display:grid;grid-template-columns:44px 1fr;grid-template-rows:auto auto;align-content:center;align-items:center;justify-items:start;column-gap:14px;padding:16px 20px;text-align:left;border-radius:0;background:transparent}
.home-screen .recent-list.is-empty .empty span{grid-row:1/3;display:grid;place-items:center;width:44px;height:44px;border-radius:8px;background:#edf2f4;color:#52666f;font-size:24px}
.home-screen .recent-list.is-empty .empty b{align-self:end;color:#263941;font-size:13px}
.home-screen .recent-list.is-empty .empty small{align-self:start;margin-top:3px;color:#73838a;font-size:11px}
@media(min-width:760px){.home-screen .content-section{padding-top:24px;padding-bottom:36px}}
@media(max-width:480px){.home-screen .recent-list.is-empty .empty{grid-template-columns:38px 1fr;padding:14px;column-gap:11px}.home-screen .recent-list.is-empty .empty span{width:38px;height:38px;font-size:21px}}

/* Print history: one aligned workspace for search, records, and the empty state. */
.history-screen{background:#f8fafb}
.history-page{width:min(1280px,calc(100% - 40px));margin:0 auto}
.history-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:18px}
.history-heading h1{margin:0;color:#172830;font-size:26px}
.history-heading p{margin:5px 0 0;color:#77878e;font-size:12px}
.history-search{width:min(520px,50%);margin:0}
.history-ledger{overflow:hidden;border:1px solid #d9e3e7;border-radius:8px;background:#fff;box-shadow:0 6px 18px #18333e0b}
.history-table-head,.history-screen .history-row{display:grid;grid-template-columns:150px minmax(260px,1fr) 240px;gap:20px;align-items:center}
.history-table-head{min-height:42px;padding:0 20px;border-bottom:1px solid #dfe7ea;background:#f3f6f7;color:#6c7d84;font-size:10px;font-weight:800;text-transform:uppercase}
.history-screen:has(.history-table) .history-table{max-width:none;margin:0;border:0;border-radius:0;box-shadow:none}
.history-screen:has(.history-table) .history-row{grid-template-columns:150px minmax(260px,1fr) 240px;gap:20px;padding:16px 20px}
.history-empty{min-height:112px;display:grid;grid-template-columns:48px 1fr auto;align-items:center;gap:16px;padding:20px;border:1px solid #d9e3e7;border-radius:8px;background:#fff;box-shadow:0 6px 18px #18333e0b}
.history-empty>span{display:grid;place-items:center;width:48px;height:48px;border-radius:8px;background:#edf2f4;color:#53666f;font-size:25px}
.history-empty h2{margin:0;color:#24363e;font-size:15px}
.history-empty p{margin:5px 0 0;color:#75858c;font-size:11px}
.history-empty .btn{width:auto;min-width:130px;padding:0 18px}
@media(min-width:760px){
  body:has(.history-screen) .topbar{height:0;min-height:0;border:0;overflow:hidden}
  .history-screen{max-width:none;min-height:100vh;margin:0;padding:36px 0 56px 236px!important}
}
@media(max-width:759px){
  .history-screen{padding:18px 0 92px}
  .history-page{width:calc(100% - 28px)}
  .history-heading{display:block;margin-bottom:14px}
  .history-heading h1{display:none}
  .history-heading p{margin:0}
  .history-search{width:100%;margin-top:12px}
  .history-table-head{display:none}
  .history-screen:has(.history-table) .history-row{grid-template-columns:58px minmax(0,1fr) 92px;gap:8px;padding:13px}
  .history-empty{grid-template-columns:42px 1fr;gap:12px;padding:16px}
  .history-empty>span{width:42px;height:42px;font-size:22px}
  .history-empty .btn{grid-column:1/3;width:100%}
}

/* Category picker: dense enough to scan, spacious enough for touch. */
.category-screen{background:#f8fafb}
.category-page{width:min(1280px,calc(100% - 40px));margin:0 auto}
.category-heading{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.category-heading h1{margin:0;color:#172830;font-size:26px}
.category-heading p{margin:4px 0 0;color:#77878e;font-size:12px}
.category-back{display:grid;place-items:center;width:38px;height:38px;flex:0 0 auto;border:1px solid #d3dfe3;border-radius:8px;background:#fff;color:#23363e;font-size:28px;line-height:1}
.category-back:hover{border-color:var(--red);color:var(--red);transform:translateX(-2px)}
.category-search{width:min(760px,100%);height:48px;margin:0 0 18px}
.item-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.item-card{min-width:0;overflow:hidden;padding:0;border:1px solid #d9e3e7;border-radius:8px;background:#fff;color:#203139;text-align:left;box-shadow:0 5px 14px #18333e0d;transition:border-color .15s,box-shadow .15s,transform .15s}
.item-card:hover{transform:translateY(-2px);border-color:#b9c8ce;box-shadow:0 10px 24px #18333e1a}
.item-card-photo{display:block;position:relative;width:100%;aspect-ratio:16/8;background-color:#e7edef;background-size:400% 200%;background-repeat:no-repeat}
.item-card-photo.custom-photo{background-size:cover!important;background-position:center!important}
.item-card-photo .class-badge{position:absolute;top:10px;left:10px;box-shadow:0 2px 8px #10262f24}
.item-card-photo.photo-0{background-position:0 18%!important}.item-card-photo.photo-1{background-position:33.333% 18%!important}.item-card-photo.photo-2{background-position:66.667% 18%!important}.item-card-photo.photo-3{background-position:100% 18%!important}.item-card-photo.photo-4{background-position:0 82%!important}.item-card-photo.photo-5{background-position:33.333% 82%!important}.item-card-photo.photo-6{background-position:66.667% 82%!important}.item-card-photo.photo-7{background-position:100% 82%!important}
.item-card-body{display:block;padding:14px 15px 13px}
.item-card-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}
.item-card-meta{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:13px}
.item-card-meta small,.item-card-meta b{display:block}
.item-card-meta small{margin-bottom:3px;color:#7b8a91;font-size:9px;font-weight:750;text-transform:uppercase}
.item-card-meta b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#43565e;font-size:11px}
.item-card-action{display:flex;align-items:center;justify-content:space-between;margin-top:14px;padding-top:11px;border-top:1px solid #e5ebed;color:#d61932;font-size:11px;font-weight:800}
.item-card-action i{font-size:21px;font-style:normal;line-height:1}
.category-empty{grid-column:1/-1;min-height:116px;border:1px solid #d9e3e7;border-radius:8px;background:#fff}
@media(min-width:760px){
  body:has(.category-screen) .topbar{height:0;min-height:0;border:0;overflow:hidden}
  .category-screen{max-width:none;min-height:100vh;margin:0;padding:36px 0 56px 236px!important}
}
@media(max-width:759px){
  .category-screen{padding:14px 0 92px}
  .category-page{width:calc(100% - 24px)}
  .category-heading{margin-bottom:10px}
  .category-heading .category-back,.category-heading h1{display:none}
  .category-heading p{margin:0}
  .item-card-grid{grid-template-columns:1fr;gap:11px}
  .item-card{display:grid;grid-template-columns:112px minmax(0,1fr)}
  .item-card-photo{height:100%;min-height:142px;aspect-ratio:auto}
  .item-card-body{padding:12px}
  .item-card-meta{gap:8px;margin-top:10px}
  .item-card-action{margin-top:10px;padding-top:9px}
}
@media(min-width:760px) and (max-width:1100px){.item-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Home workspace: size against the area beside the sidebar, not the full viewport. */
@media(min-width:760px){
  .screen.home-screen{width:auto;max-width:none!important;margin:0;min-height:100vh;padding-left:236px}
  .home-screen .home-hero{position:relative;padding:36px 32px 30px}
  .home-screen .home-hero>*{width:100%;max-width:1280px;margin-left:auto;margin-right:auto}
  .home-screen .home-hero>.printer-card{position:absolute;top:36px;right:max(32px,calc((100% - 1280px)/2));width:280px;min-height:68px;margin:0}
  .home-screen .greeting{min-height:76px;padding-right:310px}
  .home-screen .greeting h2{max-width:760px;font-size:30px;line-height:1.15}
  .home-screen .search{margin-top:20px}
  .home-screen .category-grid{gap:16px;margin-top:18px}
  .home-screen .content-section{padding:24px 32px 48px}
  .home-screen .content-section>.section-heading,.home-screen .recent-list{width:100%;max-width:1280px;margin-left:auto;margin-right:auto}
}
@media(min-width:760px) and (max-width:1050px){
  .home-screen .home-hero>.printer-card{position:static;width:100%;max-width:1280px;margin:0 auto 20px}
  .home-screen .greeting{min-height:0;padding-right:0}
}

/* Print workspace: product context beside focused operational controls. */
.print-screen{background:#f8fafb}
.print-workspace{width:min(1280px,calc(100% - 40px));margin:0 auto;display:grid;grid-template-columns:minmax(0,.92fr) minmax(420px,1.08fr);gap:24px;align-items:start}
.print-back{grid-column:1/-1;justify-self:start;display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 13px;border:1px solid #d6e0e4;border-radius:8px;background:#fff;color:#263b44;font-size:12px;font-weight:800;box-shadow:0 3px 10px #18333e0a}
.print-back span{font-size:25px;line-height:1}.print-back:hover{border-color:var(--wine);color:var(--wine);background:var(--wine-soft)}
.product-summary,.print-controls{min-width:0}
.product-summary .food-visual{width:100%;height:auto;aspect-ratio:16/10;margin:0;border:1px solid #d6e0e4;border-radius:8px;background-color:#e7edef}
.product-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 2px 16px}
.product-heading h2{margin:0;color:#172830;font-size:25px;line-height:1.2}
.product-heading p{margin:5px 0 0;color:#718087;font-size:12px}
.product-heading .class-badge{flex:0 0 auto}
.date-summary{display:grid;grid-template-columns:1fr 1fr;overflow:hidden;border:1px solid #dbe4e7;border-radius:8px;background:#fff}
.date-block{position:relative;padding:16px 18px}
.date-block+ .date-block{border-left:1px solid #e1e8eb}
.date-block>span,.date-block>b,.date-block>small{display:block}
.date-block>span{color:#60727a;font-size:9px;font-weight:850;text-transform:uppercase}
.date-block>b{margin-top:7px;color:#21343c;font-size:14px}
.date-block>small{margin-top:4px;color:#718087;font-size:11px}
.date-block>i{position:absolute;top:14px;right:14px;padding:5px 8px;border-radius:5px;background:#e2f5e8;color:#14743b;font-size:10px;font-style:normal;font-weight:850}
.print-controls{padding:22px;border:1px solid #d8e2e6;border-radius:8px;background:#fff;box-shadow:0 8px 22px #18333e0c}
.print-controls header{padding-bottom:16px;border-bottom:1px solid #e5ebed}
.print-controls header>small{color:#d61932;font-size:9px;font-weight:850;text-transform:uppercase}
.print-controls header h2{margin:4px 0 0;color:#172830;font-size:21px}
.print-controls header p{margin:5px 0 0;color:#77878e;font-size:11px}
.print-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.print-controls .field{margin:17px 0 0}
.print-controls .field select{height:48px;border-radius:8px;background:#fff}
.quantity-control{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:18px;padding:14px 0;border-top:1px solid #e5ebed;border-bottom:1px solid #e5ebed}
.quantity-control>span b,.quantity-control>span small{display:block}
.quantity-control>span b{font-size:12px}
.quantity-control>span small{margin-top:3px;color:#7b8a91;font-size:9px}
.quantity-control .stepper{width:190px;grid-template-columns:42px 1fr 42px;gap:6px}
.quantity-control .stepper button,.quantity-control .stepper output{height:42px;border-radius:7px}
.quantity-control .stepper button:hover{border-color:#ef2440;color:#ef2440;background:#fff5f6}
.print-actions{display:grid;grid-template-columns:1.35fr .65fr;gap:10px;margin-top:18px}
.print-actions .btn{width:100%;display:flex;align-items:center;justify-content:center;gap:8px}
@media(min-width:760px){.print-screen{max-width:none;min-height:calc(100vh - 72px);margin:0;padding:32px 0 56px 236px!important}}
@media(max-width:1050px){.print-workspace{grid-template-columns:1fr;max-width:760px}}
@media(max-width:759px){
  .print-screen{padding:14px 0 92px}
  .print-workspace{width:calc(100% - 24px);display:block}
  .print-back{margin-bottom:12px}
  .product-summary .food-visual{aspect-ratio:16/9}
  .print-controls{margin-top:16px;padding:16px}
  .print-field-grid{grid-template-columns:1fr}
  .quantity-control{align-items:flex-start;flex-direction:column}
  .quantity-control .stepper{width:100%}
  .print-actions{grid-template-columns:1fr}
}

/* Shared control finish: flat, predictable, and consistent across workflows. */
.btn{min-height:46px;height:auto;border-radius:8px;font-size:12px;font-weight:800}
.btn-primary{background:#ef2440;box-shadow:0 6px 14px #ef244026}
.btn-primary:hover{background:#d91b35;box-shadow:0 8px 18px #ef244030}
.btn-soft{border:1px solid #d7e1e5;background:#f2f5f6;color:#2e424b}
.btn-soft:hover{border-color:#bccbd1;background:#fff}
.btn-outline{border-width:1px;border-radius:8px}

/* Category lists: operational rows, isolated from legacy item-row styling. */
.category-page{max-width:1120px}
.category-search{width:min(720px,100%)}
.category-list-shell{overflow:hidden;border:1px solid #d9e3e7;border-radius:8px;background:#fff;box-shadow:0 5px 16px #18333e0a}
.category-list-head,.category-item-row{display:grid;grid-template-columns:minmax(320px,1.6fr) minmax(150px,.75fr) 150px 24px;gap:20px;align-items:center}
.category-list-head{min-height:40px;padding:0 18px;border-bottom:1px solid #dfe7ea;background:#f3f6f7;color:#6c7d84;font-size:9px;font-weight:850;text-transform:uppercase}
.category-item-row{width:100%;min-height:82px;padding:11px 18px;border:0;border-bottom:1px solid #e3e9ec;background:#fff;color:#203139;text-align:left;transition:background .15s}
.category-item-row:last-child{border-bottom:0}
.category-item-row:hover{background:#fff8f9}
.category-item-main{display:flex;align-items:center;gap:13px;min-width:0}
.category-item-main>span:last-child{min-width:0}
.category-item-main b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.category-item-main .class-badge{margin-top:6px}
.category-item-photo{display:block;width:58px;height:58px;flex:0 0 auto;border-radius:7px;background-color:#e7edef;background-size:400% 200%;background-repeat:no-repeat;box-shadow:inset 0 0 0 1px #0000000d}
.category-item-photo.custom-photo{background-size:cover!important;background-position:center!important}
.category-item-photo.photo-0{background-position:0 18%!important}.category-item-photo.photo-1{background-position:33.333% 18%!important}.category-item-photo.photo-2{background-position:66.667% 18%!important}.category-item-photo.photo-3{background-position:100% 18%!important}.category-item-photo.photo-4{background-position:0 82%!important}.category-item-photo.photo-5{background-position:33.333% 82%!important}.category-item-photo.photo-6{background-position:66.667% 82%!important}.category-item-photo.photo-7{background-position:100% 82%!important}
.category-item-detail small,.category-item-detail b{display:block}
.category-item-detail small{margin-bottom:4px;color:#7b8a91;font-size:9px;font-weight:750;text-transform:uppercase}
.category-item-detail b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#43565e;font-size:11px}
.category-item-open{color:#8a989e;font-size:22px;text-align:right}
.category-item-row:hover .category-item-open{color:#ef2440;transform:translateX(2px)}
.category-list-shell .category-empty{border:0;border-radius:0;box-shadow:none}
@media(min-width:760px){.home-screen .home-hero>.greeting{padding-right:0}}
@media(max-width:759px){
  .category-list-head{display:none}
  .category-item-row{grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;padding:11px 12px}
  .category-item-main{grid-column:1;grid-row:1}
  .category-item-detail{grid-column:1;margin-left:71px}
  .category-item-detail:nth-child(2){grid-row:2}
  .category-item-detail:nth-child(3){grid-row:3}
  .category-item-open{grid-column:2;grid-row:1/4;align-self:center}
}

/* Mobile home: one calm workspace with navigation kept separate from branding. */
@media(max-width:759px){
  body,.app-shell,.screen.home-screen{background:#f6f8f9}
  .app-shell{padding-bottom:calc(64px + env(safe-area-inset-bottom))}
  body:has(.home-screen) .topbar{height:0;min-height:0;padding:0;border:0;overflow:hidden}
  .screen.home-screen{width:100%;max-width:none;min-height:100dvh;margin:0;padding:0 0 calc(76px + env(safe-area-inset-bottom))}
  .home-screen .home-hero{padding:24px 18px 20px;background:#f6f8f9;color:#172830}
  .home-screen .greeting h2{margin:0;font-size:24px;line-height:1.18;font-weight:800}
  .home-screen .greeting p{margin:6px 0 0;color:#6d7d84;font-size:13px;line-height:1.4}
  .home-screen .search{height:52px;margin:18px 0 0;padding:0 15px;border:1px solid #d8e2e6;border-radius:8px;box-shadow:0 4px 14px #18333e0b}
  .home-screen .search input{font-size:14px}
  .home-screen .category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}
  .home-screen .category-card{width:100%;height:auto;min-height:0;aspect-ratio:4/3;padding:10px;border:0;border-radius:8px;box-shadow:0 4px 12px #18333e16}
  .home-screen .category-card b{left:11px;right:9px;bottom:10px;font-size:14px;line-height:1.2}
  .home-screen .content-section{padding:18px 18px 28px;border-top:1px solid #e2e9ec;background:#f6f8f9;color:#172830}
  .home-screen .section-heading{padding:0}
  .home-screen .section-heading h2{margin:0 0 12px;font-size:18px}
  .home-screen .recent-list{border:0}
  .home-screen .recent-list.is-empty{border-color:#d8e2e6;box-shadow:0 4px 14px #18333e09}
  .home-screen .recent-list.is-empty .empty{min-height:104px}
  .bottom-nav{height:calc(64px + env(safe-area-inset-bottom));padding:0 8px env(safe-area-inset-bottom);box-shadow:0 -5px 18px #18333e12}
  .bottom-nav>.nav-brand{display:none!important}
  .bottom-nav button{min-width:0;height:64px;gap:3px}
  .bottom-nav button i{font-size:20px;line-height:1}
  .bottom-nav button span{font-size:10px;font-weight:650}
}
@media(max-width:380px){
  .home-screen .home-hero,.home-screen .content-section{padding-inline:14px}
  .home-screen .greeting h2{font-size:22px}
  .home-screen .category-card b{font-size:13px}
}

/* Home recent activity: one calm, cohesive card with clear reprint actions. */
.home-screen .recent-heading{align-items:flex-end;margin-bottom:12px;padding:0}
.home-screen .recent-heading h2{margin:0;color:#172830;font-size:22px;letter-spacing:-.025em}
.home-screen .recent-heading p{margin:5px 0 0;color:#718087;font-size:12px}
.home-screen .recent-heading>button{display:flex;align-items:center;gap:7px;padding:7px 0;color:#e51d39;font-size:12px;font-weight:800}
.home-screen .recent-heading>button span{font-size:16px;transition:transform .15s}
.home-screen .recent-heading>button:hover span{transform:translateX(3px)}
.home-screen .recent-list:not(.is-empty){overflow:hidden;border:1px solid #dce5e8;border-radius:16px;background:#fff;box-shadow:0 12px 32px #18333e0b}
.home-screen .recent-list .recent-row{min-height:92px;margin:0;padding:14px 18px;border:0;border-bottom:1px solid #e7edef;border-radius:0;background:#fff;box-shadow:none;color:#172830;gap:15px}
.home-screen .recent-list .recent-row:last-child{border-bottom:0;border-radius:0}
.home-screen .recent-list .recent-row:first-child{border-radius:0}
.home-screen .recent-list .recent-row:hover{background:#fff8f9}
.home-screen .recent-row .food-thumb{width:58px;height:58px;border-radius:13px;box-shadow:0 3px 10px #17283018,inset 0 0 0 1px #0000000d}
.home-screen .recent-row .row-copy{gap:5px}
.home-screen .recent-row .row-copy b{color:#172830;font-size:16px;font-weight:800;letter-spacing:-.015em}
.home-screen .recent-row .row-copy small{display:flex;align-items:center;gap:7px;margin:0;color:#75858c;font-size:11px}
.recent-status-dot{width:7px;height:7px;border-radius:50%;background:#18a84b;box-shadow:0 0 0 4px #18a84b12}
.home-screen .recent-row .quick-print{display:flex;align-items:center;justify-content:center;gap:8px;min-width:116px;padding:10px 15px;border:1px solid #ef24402e;border-radius:10px;background:#fff1f3;color:#df1733;font-size:11px;font-weight:850;transition:background .15s,color .15s,transform .15s,box-shadow .15s}
.home-screen .recent-row:hover .quick-print{background:#ef2440;color:#fff;box-shadow:0 7px 16px #ef244025;transform:translateY(-1px)}
.recent-chevron{color:#849299;font-size:25px}
@media(max-width:759px){.home-screen .recent-heading{align-items:center}.home-screen .recent-heading h2{font-size:18px}.home-screen .recent-heading p{display:none}.home-screen .recent-heading>button{font-size:11px}.home-screen .recent-list:not(.is-empty){border-radius:13px}.home-screen .recent-list .recent-row{min-height:76px;padding:10px 12px;gap:11px}.home-screen .recent-row .food-thumb{width:50px;height:50px;border-radius:11px}.home-screen .recent-row .row-copy b{font-size:14px}.home-screen .recent-row .row-copy small{font-size:10px}.home-screen .recent-row .quick-print{min-width:42px;width:42px;height:42px;padding:0;border-radius:10px;font-size:0}.home-screen .recent-row .quick-print span{font-size:17px}}

/* Desktop home console: dark navigation, command bar, food-led welcome, and dense cards. */
.home-commandbar,.welcome-banner,.category-section-heading{display:none}
@media(min-width:760px){
  body{background:#f5f7f9}
  .bottom-nav{width:222px;padding:16px 12px 22px;background:linear-gradient(180deg,#0b121b,#101d29 62%,#0a1722);border:0;box-shadow:8px 0 28px #0c1b2914;z-index:30;pointer-events:auto}
  .bottom-nav:after{color:#718191;border-color:#ffffff12}
  .bottom-nav .nav-brand{height:82px;margin:0 8px 18px;padding:0 8px 18px;border-color:#ffffff13}
  .bottom-nav .nav-brand-logo{width:154px;filter:drop-shadow(0 5px 12px #0005)}
  .bottom-nav button:not(.nav-brand){height:50px;min-height:50px;padding:0 16px;color:#c5cdd5;border-radius:10px;position:relative;z-index:1;pointer-events:auto}
  .bottom-nav button:not(.nav-brand):hover{background:#ffffff0d;color:#fff}
  .bottom-nav button:not(.nav-brand).active{background:linear-gradient(135deg,#ff3652,#ea1737);color:#fff;box-shadow:0 8px 22px #ef244047}
  .screen,.home-screen{padding-left:222px!important}
  .home-screen{background:radial-gradient(circle at 78% 0,#fff4f2 0,transparent 27%),#f7f8fa;min-height:100vh}
  .home-screen .home-hero{padding:14px 30px 12px;background:transparent;color:#172830}
  .home-screen .home-hero>*{width:100%;max-width:1280px;margin-left:auto;margin-right:auto}
  .home-commandbar{display:flex!important;align-items:center;gap:14px;margin-bottom:13px!important}
  .home-commandbar .search{flex:1;height:46px;margin:0;border:1px solid #dce4e8;border-radius:10px;box-shadow:0 5px 16px #18333e0c;background:#fff}
  .home-commandbar .search kbd{padding:5px 8px;border:1px solid #e1e7ea;border-radius:6px;background:#f6f8f9;color:#87949a;font:700 10px/1 system-ui}
  .home-test-print{height:46px;padding:0 20px;border:0;border-radius:10px;background:linear-gradient(135deg,#ff3150,#e81536);color:#fff;font-size:12px;font-weight:850;box-shadow:0 8px 20px #ef24402e}
  .home-test-print span{margin-right:7px}
  .welcome-banner{display:flex;align-items:center;justify-content:space-between;min-height:104px;margin-bottom:12px!important;padding:18px 22px;border-radius:13px;overflow:hidden;position:relative;background-image:linear-gradient(90deg,#071019e8 0%,#0a1117c7 46%,#0b111973 100%),url('/assets/kitchen-food-sprite-v2.webp');background-size:auto,400% 200%;background-position:center,66.667% 0;color:#fff;box-shadow:0 9px 24px #12263319}
  .welcome-banner:after{content:"";position:absolute;inset:0;background:linear-gradient(105deg,transparent 45%,#ef24401c);pointer-events:none}
  .welcome-banner .greeting{position:relative;z-index:1;min-height:0;margin:0;padding:0}
  .welcome-banner .greeting h2{margin:0 0 5px;color:#fff;font-size:29px;letter-spacing:-.035em;text-shadow:0 2px 8px #0008}
  .welcome-banner .greeting p{margin:0;color:#d7dfe4;font-size:12px}
  .welcome-tip{position:relative;z-index:1;display:flex;align-items:center;gap:11px;width:290px;padding:12px 14px;border:1px solid #ffffff1e;border-radius:12px;background:#102235e8;box-shadow:0 7px 20px #0004}
  .welcome-tip>span{display:grid;place-items:center;width:37px;height:37px;border-radius:50%;background:#efb81724;color:#ffd23f;font-size:22px}
  .welcome-tip div{min-width:0}.welcome-tip b,.welcome-tip small{display:block}.welcome-tip b{font-size:12px}.welcome-tip small{margin-top:3px;color:#c3ced6;font-size:9px;line-height:1.4}
  .category-section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px!important}
  .category-section-heading>div{display:flex;align-items:center;gap:8px}.category-section-heading h2{margin:0;font-size:18px}.category-section-heading>div>span{font-size:19px}
  .category-section-heading button{border:0;background:transparent;color:#e91d3b;font-size:10px;font-weight:850}
  .home-screen .category-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:9px;margin-top:0}
  .home-screen .category-card{height:106px;min-width:0;aspect-ratio:auto;border:0;border-radius:11px;box-shadow:0 5px 15px #132b3517}
  .home-screen .category-card:hover{transform:translateY(-2px);box-shadow:0 10px 22px #132b3526}
  .home-screen .category-card:after{background:linear-gradient(180deg,#06101912 0%,#03090dd9 100%)}
  .home-screen .category-card .category-icon{position:absolute;z-index:2;left:11px;top:10px;right:auto;display:grid;width:31px;height:31px;place-items:center;border-radius:9px;background:#ef2440e8;color:#fff;font-size:17px;filter:none;box-shadow:0 5px 12px #0004}
  .home-screen .category-card>b{left:12px;bottom:29px;font-size:13px;max-width:calc(100% - 45px)}
  .home-screen .category-card .category-counts{left:12px;right:10px;bottom:8px;justify-content:flex-start}
  .home-screen .category-card .category-counts small{padding:0;background:transparent;color:#dce4e8;font-size:9px;text-shadow:0 1px 3px #000}
  .home-screen .category-card .category-expiry{display:none!important}
  .home-screen .category-card>i{position:absolute;z-index:2;right:9px;bottom:9px;display:grid;width:21px;height:21px;place-items:center;border-radius:50%;background:#ffffffdf;color:#24343b;font-style:normal;font-size:18px;line-height:1}
  .home-screen .content-section{padding:4px 30px 34px;background:transparent}
  .home-screen .recent-heading{margin-bottom:8px}.home-screen .recent-heading h2{font-size:17px}.home-screen .recent-heading p{display:none}
  .home-screen .recent-list:not(.is-empty){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;overflow:visible;border:0;border-radius:0;background:transparent;box-shadow:none}
  .home-screen .recent-list .recent-row{display:grid;grid-template-columns:58px minmax(0,1fr);grid-template-rows:auto auto;min-height:94px;padding:10px;border:1px solid #dfe6e9!important;border-radius:11px!important;gap:4px 10px;box-shadow:0 6px 17px #18333e0b}
  .home-screen .recent-row .food-thumb{grid-row:1/3;width:58px;height:58px;border-radius:10px}
  .home-screen .recent-row .row-copy{align-self:end}.home-screen .recent-row .row-copy b{font-size:13px}.home-screen .recent-row .row-copy small{font-size:9px}.home-screen .recent-row .recent-status-dot{display:none}
  .home-screen .recent-row .quick-print{align-self:start;justify-self:start;min-width:86px;padding:7px 10px;border:0;border-radius:7px;background:#ef2440;color:#fff;font-size:10px;box-shadow:none}
  .home-screen .recent-row:hover .quick-print{background:#d91734;transform:none;box-shadow:none}
}

/* Supplied dashboard reference: exact desktop proportions and component rhythm. */
@media(min-width:760px){
  :root{--reference-red:#ff1744;--reference-navy:#07121f;--reference-border:#e6eaf0;--reference-bg:#f7f9fc}
  .bottom-nav{width:250px!important;padding:26px 20px!important;background:radial-gradient(circle at 20% 90%,rgba(255,255,255,.04),transparent 25%),linear-gradient(180deg,#081421 0%,#07111d 100%)!important;gap:9px!important}
  .bottom-nav:after{display:none}
  .bottom-nav .nav-brand{height:auto!important;margin:0 18px 26px!important;padding:0 0 24px!important;border-color:#ffffff12!important}
  .bottom-nav .nav-brand-logo{width:170px!important;max-height:82px!important}
  .bottom-nav button:not(.nav-brand):not(.sidebar-printer){height:52px!important;min-height:52px!important;padding:0 16px!important;gap:16px!important;border-radius:13px!important;color:#c5ced9!important;font-size:15px!important;font-weight:600!important}
  .bottom-nav button:not(.nav-brand):not(.sidebar-printer) i{width:27px!important;font-size:22px!important}
  .bottom-nav button:not(.nav-brand):not(.sidebar-printer) span{font-size:15px!important}
  .bottom-nav button:not(.nav-brand):not(.sidebar-printer).active{background:linear-gradient(135deg,#e9163e,#ff3559)!important;color:#fff!important;box-shadow:0 8px 24px #ff17444d!important}
  .sidebar-printer{display:flex!important;align-items:center!important;flex:none!important;width:100%!important;height:auto!important;margin-top:auto!important;padding:15px!important;gap:12px!important;border:1px solid #ffffff14!important;border-radius:15px!important;background:#ffffff0e!important;color:#fff!important;text-align:left!important}
  .sidebar-printer>i{display:grid!important;place-items:center!important;width:48px!important;height:48px!important;flex:none!important;border-radius:12px!important;background:#ffffff14!important;font-size:25px!important;font-style:normal!important}
  .sidebar-printer>span{display:block!important;min-width:0!important;flex:1!important;font-size:inherit!important}.sidebar-printer b,.sidebar-printer small{display:block}.sidebar-printer b{overflow:hidden;color:#fff;font-size:14px;white-space:nowrap;text-overflow:ellipsis}.sidebar-printer small{margin-top:4px;color:#758395;font-size:11px}.sidebar-printer small:nth-child(2){display:flex;align-items:center;gap:6px;color:#a8b4c2;font-size:12px}.sidebar-printer .online-dot{width:8px;height:8px;box-shadow:0 0 10px #16d98bcc}.sidebar-printer>strong{color:#aeb8c2;font-size:20px}
  .screen,.home-screen{padding-left:250px!important}
  .home-screen{background:var(--reference-bg)!important}
  .home-screen .home-hero{padding:22px 34px 8px!important}
  .home-screen .home-hero>*,.home-screen .content-section>*{max-width:none!important}
  .home-commandbar{gap:20px!important;margin-bottom:18px!important}
  .home-commandbar .search{height:52px!important;padding:0 17px!important;border-color:var(--reference-border)!important;border-radius:13px!important;box-shadow:0 3px 12px #0f172a0a!important}
  .home-commandbar .search>span{margin-right:5px;font-size:21px}.home-commandbar .search input{font-size:14px}.home-commandbar .search kbd{padding:6px 9px;border-radius:7px;font-size:12px}
  .home-test-print{height:52px!important;padding:0 24px!important;border-radius:13px!important;background:linear-gradient(135deg,#ff1744,#f4123d)!important;font-size:14px!important;box-shadow:0 8px 20px #ff174433!important}
  .welcome-banner{min-height:118px!important;margin-bottom:17px!important;padding:22px 25px!important;border-radius:18px!important;box-shadow:0 6px 20px #0f172a12!important}
  .welcome-banner .greeting h2{margin-bottom:10px!important;font-size:34px!important;line-height:1!important}.welcome-banner .greeting p{font-size:14px!important}
  .welcome-tip{position:absolute!important;right:18px!important;top:15px!important;width:350px!important;min-height:88px!important;padding:17px!important;gap:15px!important;border-radius:16px!important;background:#0c1d30e0!important;backdrop-filter:blur(14px)}
  .welcome-tip>span{width:45px!important;height:45px!important;font-size:24px!important}.welcome-tip b{font-size:14px!important}.welcome-tip small{font-size:12px!important;line-height:1.5!important}
  .category-section-heading{margin:15px 2px 11px!important}.category-section-heading h2{font-size:20px!important;font-weight:800!important}.category-section-heading button{font-size:13px!important}
  .home-screen .category-grid{grid-template-columns:repeat(5,minmax(160px,1fr))!important;gap:12px!important}
  .home-screen .category-card{height:128px!important;border-radius:15px!important;box-shadow:0 5px 12px #0f172a1a!important}
  .home-screen .category-card:hover{transform:translateY(-4px)!important;box-shadow:0 15px 35px #0f172a26!important}
  .home-screen .category-card .category-icon{top:13px!important;left:13px!important;width:40px!important;height:40px!important;border-radius:12px!important;font-size:19px!important;backdrop-filter:blur(8px)}
  .home-screen .category-card>b{left:14px!important;bottom:31px!important;font-size:15px!important;font-weight:750!important}.home-screen .category-card .category-counts{left:14px!important;bottom:12px!important}.home-screen .category-card .category-counts small{font-size:12px!important;color:#ffffffd9!important}.home-screen .category-card>i{right:12px!important;bottom:12px!important;width:26px!important;height:26px!important;font-size:20px!important}
  .home-screen .content-section{padding:0 34px 35px!important}
  .home-screen .recent-heading{margin:15px 2px 11px!important}.home-screen .recent-heading h2{font-size:20px!important}.home-screen .recent-heading>button{font-size:13px!important}
  .home-screen .recent-list:not(.is-empty){grid-template-columns:repeat(5,minmax(190px,1fr))!important;gap:12px!important}
  .home-screen .recent-list .recent-row{display:grid!important;grid-template-columns:72px minmax(0,1fr)!important;grid-template-rows:auto auto!important;min-height:105px!important;padding:10px!important;border-radius:14px!important;box-shadow:0 4px 12px #0f172a0a!important}
  .home-screen .recent-list .recent-row:hover{transform:translateY(-3px)!important;box-shadow:0 10px 25px #0f172a1a!important}
  .home-screen .recent-row .food-thumb{width:72px!important;height:72px!important;border-radius:12px!important}.home-screen .recent-row .row-copy b{font-size:13px!important;font-weight:750!important}.home-screen .recent-row .row-copy small{font-size:11px!important}.home-screen .recent-row .quick-print{min-width:88px!important;padding:9px 14px!important;border-radius:9px!important;background:linear-gradient(135deg,#ff1744,#ff3158)!important;font-size:11px!important}
}
@media(min-width:760px) and (max-width:1300px){.home-screen .category-grid{grid-template-columns:repeat(4,minmax(170px,1fr))!important}.home-screen .recent-list:not(.is-empty){grid-template-columns:repeat(3,1fr)!important}}
@media(min-width:760px) and (max-width:950px){.bottom-nav{width:85px!important;padding:25px 12px!important}.bottom-nav .nav-brand{margin-inline:0!important}.bottom-nav .nav-brand-logo{width:62px!important}.bottom-nav button:not(.nav-brand):not(.sidebar-printer){justify-content:center!important;padding:0!important}.bottom-nav button:not(.nav-brand):not(.sidebar-printer) span,.sidebar-printer>span,.sidebar-printer>strong{display:none!important}.sidebar-printer{justify-content:center!important;padding:10px!important}.screen,.home-screen{padding-left:85px!important}.home-screen .category-grid{grid-template-columns:repeat(2,1fr)!important}.home-screen .recent-list:not(.is-empty){grid-template-columns:repeat(2,1fr)!important}.welcome-tip{display:none!important}}

/* Responsive application system: the final layer intentionally normalises legacy screens. */
:root{
  --app-sidebar:236px;
  --app-mobile-nav:64px;
  --app-width:1280px;
  --app-gutter:32px;
  --app-canvas:#f5f7f8;
  --app-surface:#fff;
  --app-ink:#172830;
  --app-muted:#6f7f86;
  --app-line:#dbe4e7;
  --app-accent:#ef2440;
  --app-radius:8px;
}
html{background:var(--app-canvas)}
body,.app-shell{background:var(--app-canvas);color:var(--app-ink)}
.screen{max-width:none}
.screen:not(.home-screen){background:var(--app-canvas)}
.btn,.icon-btn,.settings-row,.list-row,.history-row,.expiry-row,.category-item-row,.printer-list-row{touch-action:manipulation}
.btn{min-height:46px;padding:0 18px;border-radius:var(--app-radius);font-size:13px}
.field input,.field select,.admin-search,.search{border-radius:var(--app-radius)}
.settings-card,.settings-panel,.form-section,.user-create-panel,.user-directory,.storage-list,.category-list-shell,.history-ledger,.history-empty{border-radius:var(--app-radius)}
.empty{border-radius:var(--app-radius)}

@media(min-width:760px){
  .app-shell{padding:0}
  .bottom-nav{inset:0 auto 0 0;width:var(--app-sidebar);height:100dvh;padding:18px 16px 24px;gap:5px;border:0;border-right:1px solid var(--app-line);background:#fff;box-shadow:none}
  .bottom-nav .nav-brand{height:94px;margin:0 0 12px;padding:4px 8px 18px}
  .bottom-nav .nav-brand-logo{width:170px;max-height:72px}
  .bottom-nav button:not(.nav-brand){height:50px;min-height:50px;padding:0 14px;gap:12px;border-radius:var(--app-radius)}
  .bottom-nav button:not(.nav-brand) i{width:22px;font-size:19px}
  .bottom-nav button:not(.nav-brand) span{font-size:13px}
  .bottom-nav button.active{background:#ffeaed;color:#df1933}
  .topbar,.topbar.dark{height:68px;min-height:68px;margin-left:var(--app-sidebar);padding:0 var(--app-gutter);border:0;border-bottom:1px solid var(--app-line);background:#fff;color:var(--app-ink);overflow:visible}
  .topbar:has(>h1:empty),body:has(.home-screen) .topbar,body:has(.category-screen) .topbar,body:has(.history-screen) .topbar{height:0;min-height:0;padding:0;border:0;overflow:hidden}
  .topbar>h1{font-size:20px;letter-spacing:0}
  .topbar .icon-btn{width:38px;height:38px;border-radius:var(--app-radius);font-size:27px}
  .screen:not(.home-screen){min-height:calc(100dvh - 68px);margin:0;padding:28px var(--app-gutter) 56px calc(var(--app-sidebar) + var(--app-gutter))!important}
  .screen.category-screen,.screen.history-screen{min-height:100dvh;padding-top:32px!important}
  .screen>*,.settings-page,.admin-page,.simple-page,.admin-form,.history-page,.category-page,.print-workspace{width:100%;max-width:var(--app-width);margin-left:auto;margin-right:auto}
  .simple-page,.admin-form{max-width:900px}
  .settings-page{max-width:1120px}
  .home-screen{padding-left:var(--app-sidebar)!important}
  .home-screen .home-hero,.home-screen .content-section{padding-left:var(--app-gutter);padding-right:var(--app-gutter)}
  .home-screen .home-hero>*,.home-screen .content-section>*{max-width:var(--app-width)}
  .home-screen .category-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
  .home-screen .category-card{height:auto;aspect-ratio:16/7;border-radius:var(--app-radius)}
  .home-screen .category-card b{font-size:15px}
  .settings-grid{grid-template-columns:minmax(0,.9fr) minmax(0,1.35fr);gap:20px;align-items:start}
  .metric-grid{max-width:var(--app-width);padding:0;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
  .screen>.section-heading,.expiry-list{max-width:var(--app-width)}
}

@media(max-width:759px){
  body{overflow-x:hidden}
  .app-shell{padding-bottom:calc(var(--app-mobile-nav) + env(safe-area-inset-bottom))}
  .bottom-nav{height:calc(var(--app-mobile-nav) + env(safe-area-inset-bottom));padding:0 6px env(safe-area-inset-bottom);background:#fff;border-color:var(--app-line)}
  .bottom-nav button{height:var(--app-mobile-nav);min-width:0;padding:0 4px}
  .bottom-nav button i{font-size:20px}
  .bottom-nav button span{font-size:10px}
  .topbar,.topbar.dark{height:58px;min-height:58px;padding:0 14px;background:#fff;color:var(--app-ink);border-color:var(--app-line)}
  .topbar>h1{font-size:18px;letter-spacing:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .topbar .icon-btn{width:38px;height:38px;padding:0;border:1px solid var(--app-line);border-radius:var(--app-radius);background:#fff;font-size:28px}
  .topbar .icon-btn[data-action="notifications"]{display:none}
  .screen:not(.home-screen){width:100%;min-height:calc(100dvh - 58px);margin:0;padding:16px 14px calc(84px + env(safe-area-inset-bottom))!important}
  .screen.category-screen,.screen.history-screen{padding-top:14px!important}
  .simple-page,.admin-form,.settings-page,.admin-page,.history-page,.category-page,.print-workspace{width:100%;max-width:none;margin:0;padding-left:0;padding-right:0}
  .btn{min-height:48px}
  .field{margin:13px 0}
  .field input,.field select{height:48px;font-size:16px}
  .field-pair{grid-template-columns:1fr;gap:0}
  .choice-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
  .choice-row label{min-width:0;padding:11px 4px}
  .settings-card,.form-section{margin:0 0 12px;padding-left:14px;padding-right:14px}
  .form-section{padding-top:4px;padding-bottom:14px}
  .form-section h3{margin-top:12px}
  .admin-form{padding:0}
  .admin-toolbar{margin-bottom:14px}
  .admin-toolbar h2{font-size:21px}
  .admin-toolbar .btn{width:auto;min-height:42px;padding:0 13px}
  .metric-grid{padding:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .metric{min-height:82px;border-radius:var(--app-radius)}
  .screen>.section-heading{margin-top:10px}
  .expiry-list{padding:0}
  .expiry-row{padding:13px 10px 13px 14px;border:1px solid var(--app-line);border-radius:var(--app-radius);margin-bottom:8px}
  .expiry-row:before{top:12px;bottom:12px}
}

/* Home */
.home-screen .search{border:1px solid var(--app-line);background:#fff}
.home-screen .category-card{border-radius:var(--app-radius)}
.home-screen .recent-list.is-empty,.home-screen .list-row{border-color:var(--app-line);background:#fff;color:var(--app-ink)}
.home-screen .row-copy small{color:var(--app-muted)}
@media(max-width:759px){
  .home-screen .home-hero{padding:22px 14px 16px}
  .home-screen .content-section{padding:16px 14px 24px}
  .home-screen .category-grid{gap:8px}
  .home-screen .category-card{aspect-ratio:4/3}
}

/* Categories and history */
.category-page,.history-page{max-width:var(--app-width)}
.category-search,.history-search{height:48px;border:1px solid var(--app-line);background:#fff}
.category-item-row,.history-row{min-width:0}
@media(max-width:759px){
  .category-heading p,.history-heading p{font-size:11px}
  .category-search,.history-search{width:100%;margin-bottom:12px}
  .category-list-shell{box-shadow:none}
  .category-item-row{min-height:86px}
  .category-item-detail{display:inline-flex;gap:5px;align-items:baseline}
  .category-item-detail small{margin:0}
  .history-ledger{box-shadow:none}
  .history-screen:has(.history-table) .history-row{grid-template-columns:52px minmax(0,1fr) 80px;padding:13px 11px}
  .history-row b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}

/* Print, preview and completion */
.print-workspace{max-width:1120px}
.product-summary .food-visual,.date-summary,.print-controls{border-radius:var(--app-radius)}
.preview-screen,.success{width:100%;max-width:520px}
@media(max-width:759px){
  .product-summary .food-visual{margin:0;aspect-ratio:16/9}
  .product-heading{padding:14px 2px 12px}
  .product-heading h2{font-size:21px}
  .date-summary{grid-template-columns:1fr}
  .date-block+.date-block{border-left:0;border-top:1px solid #e1e8eb}
  .print-controls{margin-top:12px;padding:15px;box-shadow:none}
  .print-controls header p{line-height:1.45}
  .quantity-control{gap:12px}
  .print-actions{gap:8px}
  .preview-screen,.success{padding:8px 0 18px}
  .label-paper{margin:18px auto}
}

/* Settings and administration */
.settings-panel,.user-create-panel,.user-directory,.storage-list{overflow:hidden;border:1px solid var(--app-line);background:#fff}
.panel-heading{min-height:68px}
.settings-row{min-height:62px}
.settings-row b small{line-height:1.35}
.signout-link{min-height:46px;border-radius:var(--app-radius)}
.printer-list{margin:0 auto;max-width:900px}
.admin-heading{max-width:900px;margin:0 auto 12px;padding:0}
.admin-search{border:1px solid var(--app-line);background:#fff}
.user-create-panel{margin-bottom:16px}
.user-directory{border-radius:var(--app-radius)}
.about-logo{width:min(360px,78%);max-height:180px;margin:4px auto 18px;padding:16px 22px;background:#071015;border-radius:6px}
.about-storage-check{display:block;width:min(280px,100%);margin:18px auto 0}
@media(max-width:759px){
  .settings-grid{display:grid;grid-template-columns:1fr;gap:12px}
  .settings-panel{border-radius:var(--app-radius)}
  .panel-heading{min-height:62px;padding:12px 14px}
  .panel-actions{padding:12px 14px}
  .settings-row{grid-template-columns:24px minmax(0,1fr) 18px;padding:12px 14px}
  .settings-row b{min-width:0}
  .settings-row b small{white-space:normal}
  .signout-link{width:100%;margin:14px 0 0}
  .admin-heading{display:flex;align-items:flex-end;margin-bottom:12px}
  .printer-list{margin:0}
  .printer-list-row{grid-template-columns:14px minmax(0,1fr) 18px;padding:14px 12px}
  .printer-list-row small{white-space:normal;overflow-wrap:anywhere}
  .label-presets{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .label-presets button{min-width:0;padding:0 5px;font-size:11px}
  .user-management-row{padding:13px 12px}
  .user-toggle{min-height:38px;padding:0 10px;font-size:11px}
  .storage-contents{margin:8px 0 18px}
  .bridge-device{padding:12px 14px}
  .bridge-steps{padding:0 14px 18px 32px;font-size:11px}
  .about-card{padding:18px 14px}
  .about-logo{width:min(280px,82%);max-height:140px}
}

/* Small phones */
@media(max-width:380px){
  .screen:not(.home-screen){padding-inline:11px!important}
  .topbar{padding-inline:11px}
  .home-screen .home-hero,.home-screen .content-section{padding-inline:11px}
  .home-screen .greeting h2{font-size:21px}
  .home-screen .category-card b{font-size:12px}
  .date-block{padding:14px}
  .classification-options label b{font-size:10px}
}

/* Final category sizing: keep the dashboard dense after all responsive rules. */
.home-screen .category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.home-screen .category-card.photo-card{height:116px;min-height:0;aspect-ratio:auto}
@media(min-width:760px) and (max-width:1099px){
  .home-screen .category-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
  .home-screen .category-card.photo-card{height:124px}
}
@media(min-width:1100px){
  .home-screen .category-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:11px}
  .home-screen .category-card.photo-card{height:132px}
}

/* Final home fidelity pass — intentionally last so the reference layout wins the cascade. */
@media(min-width:951px){
  .bottom-nav{width:236px!important;padding:25px 20px 22px!important}
  .screen,.home-screen{width:100%!important;max-width:none!important;margin:0!important;padding-left:236px!important}
  .sidebar-wordmark{display:block;width:100%;text-align:left;color:#fff}.sidebar-wordmark>b{display:block;font-size:35px;font-weight:950;line-height:1;letter-spacing:1.5px}.sidebar-wordmark>b i{color:#ff1744;font-style:normal}.sidebar-wordmark small{display:block;margin-top:9px;color:#fff;font-size:18px;font-weight:850}.sidebar-wordmark small em{color:#19b37e;font-style:normal}
  .home-screen .home-hero{width:100%!important;max-width:none!important;margin:0!important;padding:22px 32px 8px!important}
  .home-screen .home-hero>*,.home-screen .content-section>*{width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important}
  .home-screen .content-section{width:100%!important;max-width:none!important;margin:0!important;padding:0 32px 34px!important}
  .home-commandbar{display:flex!important;width:100%!important}
  .home-commandbar .search{min-width:0!important}
  .home-theme{display:grid;place-items:center;width:50px;height:50px;flex:none;border:1px solid #e6eaf0;border-radius:13px;background:#fff;color:#182634;font-size:20px;box-shadow:0 3px 12px #0f172a0a}
  .welcome-banner{width:100%!important;max-width:none!important;background-image:linear-gradient(90deg,rgba(6,12,18,.96) 0%,rgba(6,12,18,.80) 35%,rgba(6,12,18,.32) 100%),url('https://images.unsplash.com/photo-1547592180-85f173990554?auto=format&fit=crop&w=1800&q=88')!important;background-position:center!important;background-size:cover!important}
  .home-screen .category-grid{width:100%!important;max-width:none!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important}
  .home-screen .category-card.photo-card,.add-category-card{height:122px!important;min-height:122px!important;aspect-ratio:auto!important;border-radius:15px!important}
  .home-screen .category-card.photo-card{background-size:cover!important;background-position:center!important}
  .add-category-card{display:flex;flex-direction:column;align-items:center;justify-content:center;border:1.5px dashed #ff8fa5;background:linear-gradient(135deg,#fff,#fff4f6);color:#ff1744;transition:.2s}.add-category-card:hover{background:#fff0f3;transform:translateY(-3px)}.add-category-card>span{display:grid;place-items:center;width:37px;height:37px;margin-bottom:9px;border-radius:50%;background:#ff1744;color:#fff;font-size:24px}.add-category-card>b{font-size:14px}.add-category-card>small{margin-top:5px;color:#8d97a5;font-size:11px}
  .home-screen .recent-list:not(.is-empty){width:100%!important;max-width:none!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important}
  .home-screen .recent-list .recent-row{min-width:0!important}
}
@media(min-width:951px) and (max-width:1300px){.home-screen .category-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}.home-screen .recent-list:not(.is-empty){grid-template-columns:repeat(3,minmax(0,1fr))!important}}

/* KIVRA wine / ink design system */
:root{
  --wine:#8f1737;
  --wine-deep:#681026;
  --wine-soft:#f8e9ed;
  --ink-black:#101419;
  --ink-panel:#171c22;
  --paper:#fff;
  --warm-canvas:#f7f5f5;
  --soft-line:#e7dfe1;
  --soft-text:#71666a;
  --app-accent:var(--wine);
  --app-canvas:var(--warm-canvas);
  --app-surface:var(--paper);
  --app-ink:var(--ink-black);
  --app-muted:var(--soft-text);
  --app-line:var(--soft-line);
  --app-radius:14px;
}
html,body,.app-shell{background:var(--warm-canvas);color:var(--ink-black)}
body{background-image:radial-gradient(circle at 82% -10%,#8f17370b,transparent 32%)}
h1,h2,h3,b,strong{letter-spacing:-.018em}
.btn{border-radius:11px;font-weight:800}
.btn-primary,.home-test-print{border:0!important;background:linear-gradient(135deg,var(--wine),var(--wine-deep))!important;color:#fff!important;box-shadow:0 9px 22px #6810262b!important}
.btn-primary:hover,.home-test-print:hover{background:linear-gradient(135deg,#a11c40,#76122b)!important;box-shadow:0 12px 28px #68102638!important}
.btn-outline{border-color:var(--wine)!important;color:var(--wine)!important;background:#fff!important}
.btn-soft{background:#f3eff0!important;color:#2c2528!important}
.section-heading button,.category-section-heading button,.recent-heading button,.signout-link{color:var(--wine)!important}
.settings-card,.settings-panel,.form-section,.user-create-panel,.user-directory,.storage-list,.category-list-shell,.history-ledger,.history-empty,.item-master,.print-controls,.date-summary{
  border-color:var(--soft-line)!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:0 10px 30px #2611180b!important;
}
.settings-row:hover,.history-row:hover,.item-master-row:hover,.printer-list-row:hover,.list-row:hover{background:#fbf5f7!important}
.field input,.field select,.admin-search,.category-search,.history-search,.search{border-color:var(--soft-line)!important;background:#fff!important;border-radius:12px!important}
.inline-create-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;margin:-5px 0 16px;padding:12px;border:1px solid #ead4da;border-radius:12px;background:#fff8fa}.inline-create-row[hidden]{display:none}.inline-create-row input{min-width:0;height:46px;padding:0 12px;border:1px solid #d5e0e4;border-radius:10px;background:#fff}.inline-create-row .btn{height:46px;padding:0 18px}@media(max-width:520px){.inline-create-row{grid-template-columns:1fr}.inline-create-row .btn{width:100%}}
.category-heading .category-add-item{margin-left:auto;min-width:190px;padding:0 18px}.category-heading>div{min-width:0}@media(max-width:640px){.category-heading{flex-wrap:wrap}.category-heading .category-add-item{width:100%;margin:10px 0 0}}
.field input:focus,.field select:focus,.admin-search:focus-within,.search:focus-within{border-color:var(--wine)!important;box-shadow:0 0 0 4px #8f173714!important}
.class-badge.non-veg{background:#f8e6ea!important;color:#941c39!important}.class-badge.veg{background:#e7f5ec!important;color:#147b43!important}
.metric{border:1px solid transparent!important;border-radius:16px!important;box-shadow:0 8px 24px #2611180a!important}
.metric.danger{background:#f8e4e8!important;color:#9b1738!important}.metric.warning{background:#fff1d8!important;color:#9d5a05!important}.metric.info{background:#e8f0f7!important;color:#245f88!important}.metric.safe{background:#e5f3e9!important;color:#207543!important}
.metric.selected{outline:2px solid currentColor!important;outline-offset:2px}
.expiry-row{background:#fff!important}.expiry-row.urgent:before{background:var(--wine)!important}
.toast.error{background:var(--wine-deep)!important}.toast.success{background:#17633c!important}
@media(min-width:760px){
  .bottom-nav{background:linear-gradient(180deg,#101419 0%,#171c22 56%,#0d1014 100%)!important;border-right:1px solid #ffffff0c!important;box-shadow:12px 0 38px #16070c12!important}
  .bottom-nav button:not(.nav-brand):not(.sidebar-printer){color:#c9c3c5!important;border-radius:12px!important}
  .bottom-nav button:not(.nav-brand):not(.sidebar-printer):hover{background:#ffffff0a!important;color:#fff!important}
  .bottom-nav button:not(.nav-brand):not(.sidebar-printer).active{background:linear-gradient(135deg,var(--wine),var(--wine-deep))!important;color:#fff!important;box-shadow:0 10px 26px #8f173747!important}
  .sidebar-printer{border-color:#ffffff12!important;background:#ffffff08!important}
  .topbar,.topbar.dark{background:#fffffff2!important;border-color:var(--soft-line)!important;backdrop-filter:blur(16px)}
  .screen:not(.home-screen){background:transparent!important}
  .home-screen{background:radial-gradient(circle at 82% 0,#8f17370c,transparent 30%),var(--warm-canvas)!important}
  .welcome-banner{border:1px solid #ffffff17!important;box-shadow:0 14px 34px #1c0b1124!important}
  .welcome-banner:after{background:linear-gradient(105deg,transparent 40%,#8f173730)!important}
  .home-screen .category-card .category-icon{background:linear-gradient(135deg,#a51c42,var(--wine-deep))!important;box-shadow:0 7px 18px #3d091a55!important}
  .home-screen .recent-row .quick-print{background:var(--wine-soft)!important;color:var(--wine)!important;border-color:#8f173723!important}
  .home-screen .recent-row:hover .quick-print{background:var(--wine)!important;color:#fff!important}
}
@media(max-width:759px){
  .bottom-nav{background:#101419!important;border-color:#252a30!important;box-shadow:0 -8px 28px #14070c1c!important}
  .bottom-nav button{color:#aaa2a5!important}.bottom-nav button.active{color:#fff!important;background:var(--wine)!important;border-radius:12px!important}
  .topbar,.topbar.dark{background:#fff!important;border-color:var(--soft-line)!important}
  .screen:not(.home-screen){background:transparent!important}
}
.home-screen .home-hero{overflow:visible!important}
.home-commandbar{position:relative;z-index:100!important;isolation:isolate}
.home-commandbar .search{position:relative;z-index:2}
.home-search-results{position:absolute;z-index:1000;top:calc(100% + 6px);left:0;width:min(760px,calc(100% - 230px));max-height:min(520px,70vh);overflow:auto;border:1px solid #d9c9ce;border-top:3px solid var(--wine);border-radius:14px;background:#fff;box-shadow:0 24px 65px #1b0b1040}
.home-search-results[hidden]{display:none}
.category-item-row[hidden],.item-master-row[hidden],.history-row[hidden]{display:none!important}
.search-result-count{display:block;padding:10px 14px 7px;color:var(--soft-text);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.home-search-result{display:grid;width:100%;grid-template-columns:42px minmax(0,1fr) auto 18px;align-items:center;gap:11px;padding:9px 14px;border:0;border-top:1px solid #eee8ea;background:#fff;color:var(--ink-black);text-align:left}
.home-search-result:hover,.home-search-result:focus-visible{background:var(--wine-soft);outline:0}
.home-search-result .food-thumb{width:42px;height:42px;border-radius:9px}.home-search-result span b,.home-search-result span small{display:block}.home-search-result span b{font-size:13px}.home-search-result span small{margin-top:3px;color:var(--soft-text);font-size:10px}.home-search-result>strong{color:var(--wine);font-size:11px}.home-search-result>i{color:var(--wine);font-style:normal;font-size:20px}
.home-search-empty{padding:28px;text-align:center;background:#fffafb}.home-search-empty b,.home-search-empty small{display:block}.home-search-empty b{color:var(--wine);font-size:14px}.home-search-empty small{margin-top:6px;color:var(--soft-text);font-size:11px}
@media(max-width:759px){.home-commandbar{display:flex!important;margin-bottom:12px}.home-commandbar .search{display:flex!important}.home-commandbar .home-theme,.home-commandbar .home-test-print{display:none!important}.home-search-results{top:calc(100% + 4px);width:100%}}
/* Category markers: a consistent, high-contrast cue over changing food photography. */
.home-screen .category-card .category-icon{display:grid;place-items:center;isolation:isolate;border:1px solid #ffffff38;background:linear-gradient(145deg,#ff4865,#e9153b);box-shadow:0 8px 18px #12040a52,inset 0 1px #ffffff42;color:#fff;font-family:"Apple Color Emoji","Segoe UI Emoji",sans-serif;font-style:normal;line-height:1;text-shadow:0 1px 2px #63001066;transition:transform .18s ease,box-shadow .18s ease}
.home-screen .category-card .category-counts small:first-child{display:inline-flex;align-items:center;min-height:20px;padding:3px 7px;border:1px solid #ffffff24;border-radius:999px;background:#07131bd1;color:#fff;font-weight:800;letter-spacing:.01em;text-shadow:none}
.home-screen .category-card:focus-visible{outline:3px solid #ff3855;outline-offset:3px}
.home-screen .category-card:hover .category-icon{transform:translateY(-2px) scale(1.04);box-shadow:0 11px 22px #12040a66,inset 0 1px #ffffff52}
@media(min-width:760px){
  .home-screen .category-card .category-icon{left:14px!important;top:14px!important;width:46px!important;height:46px!important;border-radius:13px!important;font-size:24px!important}
  .home-screen .category-card>b{left:14px!important;bottom:37px!important;font-size:15px!important;line-height:1.12!important;max-width:calc(100% - 72px)!important}
  .home-screen .category-card .category-counts{left:14px!important;bottom:10px!important}
  .home-screen .category-card>i{right:13px!important;bottom:12px!important;width:26px!important;height:26px!important;background:#fffffff0!important;color:#172933!important;font-size:22px!important;box-shadow:0 3px 9px #00000030!important}
}
@media(max-width:759px){
  .home-screen .category-card .category-icon{left:11px!important;top:11px!important;width:40px!important;height:40px!important;border-radius:12px!important;font-size:21px!important}
  .home-screen .category-card>b{left:12px!important;bottom:32px!important;max-width:calc(100% - 58px)!important}
  .home-screen .category-card .category-counts{left:12px!important;bottom:7px!important}
  .home-screen .category-card .category-counts small:first-child{min-height:17px;padding:2px 6px;font-size:8px!important}
  .home-screen .category-card>i{right:9px!important;bottom:9px!important;width:24px!important;height:24px!important;font-size:19px!important}
}

/* Home workspace: keep the operating surface branded and comfortably scannable. */
.home-brand{display:none}
@media(min-width:760px){
  .home-screen .home-hero,.home-screen .content-section{padding-left:34px!important;padding-right:34px!important}
  .home-screen .home-hero>*,.home-screen .content-section>*{max-width:1520px!important;margin-left:auto!important;margin-right:auto!important}
  .home-commandbar{align-items:stretch!important}
  .home-brand{display:grid;place-items:center;width:176px;flex:0 0 176px;border:0;border-radius:12px;background:#07131f;box-shadow:0 6px 18px #09131e1c;overflow:hidden}
  .home-brand:hover{background:#111f2d}
  .home-brand-logo{display:block;width:144px;height:auto;max-height:48px;object-fit:contain}
  .home-screen .category-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:14px!important}
  .home-screen .category-card.photo-card,.add-category-card{height:148px!important;min-height:148px!important;border-radius:13px!important}
  .home-screen .recent-list:not(.is-empty){grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(min-width:760px) and (max-width:1260px){
  .home-brand{width:142px;flex-basis:142px}.home-brand-logo{width:118px}
  .home-screen .category-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@media(max-width:759px){
  .home-screen .home-hero{padding-top:12px!important}
  .home-commandbar{display:grid!important;grid-template-columns:minmax(0,1fr) 46px!important;gap:8px!important}
  .home-commandbar .home-brand{display:none}
  .home-commandbar .search{grid-column:1;height:48px!important}
  .home-commandbar .home-theme{grid-column:2;width:46px;height:48px}
  .home-commandbar .home-test-print{display:none}
}

/* Final navigation repair: one durable desktop control plane, with the mobile tab bar retained. */
.workspace-nav{display:none}
@media(min-width:760px){
  .bottom-nav{display:none!important}
  .workspace-nav{position:sticky;top:0;z-index:60;display:flex;align-items:center;gap:26px;min-height:72px;padding:10px max(28px,calc((100% - 1520px)/2));border-bottom:1px solid #e4e9ed;background:#ffffffef;box-shadow:0 2px 14px #1025340a;backdrop-filter:blur(14px)}
  .workspace-brand{display:grid;place-items:center;width:150px;height:48px;flex:0 0 150px;padding:7px 10px;border:0;border-radius:9px;background:#07131f}
  .workspace-brand:hover{background:#102335}
  .workspace-logo{display:block;width:122px;max-height:34px;height:auto;object-fit:contain}
  .workspace-links{display:flex;align-items:center;gap:4px;min-width:0}
  .workspace-link{display:flex;align-items:center;gap:7px;height:42px;padding:0 12px;border:0;border-radius:8px;background:transparent;color:#64747d;font-size:13px;font-weight:750}
  .workspace-link i{font-style:normal;font-size:18px;line-height:1}
  .workspace-link:hover{background:#f1f4f6;color:#172b35}
  .workspace-link.active{background:#fff0f2;color:#e51d3b}
  .workspace-print{display:flex;align-items:center;justify-content:center;gap:7px;height:44px;margin-left:auto;padding:0 17px;border:0;border-radius:8px;background:#f22445;color:#fff;font-size:12px;font-weight:850;box-shadow:0 7px 16px #ef244029}
  .workspace-print:hover{background:#df1635}
  .topbar,.topbar.dark{display:none!important}
  .screen,.home-screen{padding-left:0!important}
  .screen:not(.home-screen){min-height:calc(100dvh - 72px)!important;padding-left:max(28px,calc((100% - 1520px)/2))!important;padding-right:max(28px,calc((100% - 1520px)/2))!important}
  .screen.category-screen,.screen.history-screen{min-height:calc(100dvh - 72px)!important}
  .home-screen .home-hero,.home-screen .content-section{padding-left:max(28px,calc((100% - 1520px)/2))!important;padding-right:max(28px,calc((100% - 1520px)/2))!important}
  .home-brand{display:none!important}
  .home-commandbar{margin-top:4px!important}
}
@media(min-width:760px) and (max-width:1050px){
  .workspace-nav{gap:12px;padding-inline:16px}
  .workspace-brand{width:124px;flex-basis:124px}.workspace-logo{width:102px}
  .workspace-link{padding:0 8px}.workspace-link span{display:none}
  .workspace-print{padding:0 12px;font-size:0}.workspace-print span{font-size:17px}
}

/* Desktop navigation preference: a calm, persistent sidebar for repeated kitchen work. */
@media(min-width:760px){
  .workspace-nav{display:none!important}
  .bottom-nav{position:fixed!important;inset:0 auto 0 0!important;display:flex!important;width:236px!important;height:100dvh!important;padding:24px 16px!important;gap:7px!important;border:0!important;border-right:1px solid #ffffff12!important;background:#07131f!important;box-shadow:8px 0 26px #07131f1a!important;z-index:70!important}
  .bottom-nav .nav-brand{display:flex!important;width:100%!important;height:108px!important;min-height:108px!important;margin:0 0 20px!important;padding:13px 16px!important;border:1px solid #dce5e8!important;border-radius:10px!important;background:#f8fafb!important;box-shadow:0 8px 18px #00000024!important}
  .bottom-nav .nav-brand-logo{display:block!important;width:100%!important;height:78px!important;max-height:none!important;object-fit:contain!important;filter:none!important}
  .bottom-nav button:not(.nav-brand){display:flex!important;width:100%!important;height:52px!important;min-height:52px!important;flex:0 0 52px!important;padding:0 14px!important;gap:13px!important;border-radius:9px!important;background:transparent!important;color:#b8c5d0!important;font-size:14px!important;font-weight:750!important;text-align:left!important}
  .bottom-nav button:not(.nav-brand) i{width:22px!important;color:inherit!important;font-size:20px!important}
  .bottom-nav button:not(.nav-brand) span{font-size:14px!important}
  .bottom-nav button:not(.nav-brand):hover{background:#ffffff0d!important;color:#fff!important}
  .bottom-nav button:not(.nav-brand).active{background:#f12445!important;color:#fff!important;box-shadow:0 8px 18px #e9193e45!important}
  .bottom-nav .sidebar-printer{display:none!important}
  .topbar,.topbar.dark{display:none!important}
  .screen,.home-screen{padding-left:236px!important}
  .screen:not(.home-screen){min-height:100dvh!important;padding-left:max(268px,calc((100% - 1280px)/2 + 236px))!important;padding-right:max(28px,calc((100% - 1280px)/2))!important}
  .screen.category-screen,.screen.history-screen{min-height:100dvh!important}
  .home-screen .home-hero,.home-screen .content-section{padding-left:32px!important;padding-right:32px!important}
  .home-screen .home-hero>*,.home-screen .content-section>*{max-width:1280px!important;margin-left:auto!important;margin-right:auto!important}
  .home-commandbar .search{max-width:none!important}
}
