/* Cozy Box Cafe — presentation only. Application state and handlers stay in index.html. */
:root{--bg:#f5f3ed;--cd:#fffefa;--tx:#272e28;--mu:#687067;--ac:#28533f;--ac2:#1d4030;--on:#fff;--bd:#e0e4d9;--ok:#287247;--bad:#b63f3e;--wn:#94611b;--soft:#eaf0e6;--chip:#bfd0bd;--hdbg:#fffefa;--sh:#24352a12;--gA:#28533f;--gB:#28533f;--c1:#28533f;--c2:#b17953;--c3:#6b8090;--c4:#a48a4a;color-scheme:light}
*{box-sizing:border-box}html,body{margin:0;min-height:100%}body{background:var(--bg);color:var(--tx);font:15px/1.55 'Nunito Sans',system-ui,-apple-system,'Segoe UI',sans-serif;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}h1,h2,h3,h4,p{margin-top:0}h1,h2{letter-spacing:-1px;line-height:1.12}h3{font-size:18px;letter-spacing:-.4px}b,strong{font-weight:800}a{color:var(--ac)}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{min-height:40px;padding:9px 15px;border:1px solid var(--bd);border-radius:9px;background:var(--cd);color:var(--tx);font-weight:700;cursor:pointer;transition:background .16s,border-color .16s,box-shadow .16s}button:hover:not(:disabled){background:var(--soft);border-color:var(--chip)}button:focus-visible,a:focus-visible{outline:3px solid var(--ac);outline-offset:3px}button.pri{background:var(--ac);border-color:var(--ac);color:var(--on);box-shadow:0 3px 8px var(--sh)}button.pri:hover:not(:disabled){background:var(--ac2);border-color:var(--ac2)}button.bad{color:var(--bad);border-color:color-mix(in srgb,var(--bad) 35%,var(--bd));background:transparent}button.bad:hover:not(:disabled){background:color-mix(in srgb,var(--bad) 8%,var(--cd))}button.big{font-size:15px;padding:13px 20px;min-height:48px}button:disabled{opacity:.48;cursor:not-allowed}button .ico{margin-right:6px}.ico{display:inline-block;width:19px;height:19px;vertical-align:-4px;flex:none;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
input,select,textarea{width:100%;min-width:0;min-height:44px;padding:11px 13px;border:1px solid var(--bd);border-radius:9px;background:var(--cd);color:var(--tx);margin:6px 0 16px;transition:border-color .15s,box-shadow .15s}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:var(--mu);opacity:.85}input:focus,select:focus,textarea:focus{outline:0;border-color:var(--ac);box-shadow:0 0 0 3px color-mix(in srgb,var(--ac) 13%,transparent)}input[type=checkbox]{width:18px;min-height:18px;height:18px;margin:0 8px 0 0;accent-color:var(--ac)}input[type=file]{padding:8px}label{display:block;color:var(--tx);font-size:13px;font-weight:700}input[type=datetime-local]{font-size:14px}.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.row>input,.row>select{max-width:100%}.sp{justify-content:space-between}.mu{color:var(--mu);font-size:13px;line-height:1.55}.err{font-size:13px;color:var(--bad);min-height:18px;margin-top:10px}.err:empty{margin:0}.eyebrow{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:2px;color:var(--ac);margin:0 0 12px}.card{background:var(--cd);border:1px solid var(--bd);border-radius:14px;padding:22px;margin-bottom:20px;box-shadow:0 3px 14px -7px var(--sh)}.card h3{font-weight:800}.wrap{max-width:1260px;margin:0 auto;padding:28px 32px 40px}.wrap>div{min-width:0}.grid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:22px}.dc{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}.grid>div,.dc>div{min-width:0}
header{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;padding:18px max(24px,calc((100vw - 1196px)/2));background:var(--hdbg);border-bottom:1px solid var(--bd);position:sticky;top:0;z-index:4}header .brand{font-size:20px}header .mu{font-size:12px}.brand{display:flex;align-items:center;gap:11px;font-size:22px;letter-spacing:-.7px;font-weight:800;color:var(--tx)}.brand-mark{width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;background:var(--ac);color:var(--on);border-radius:10px;flex:none}.brand-mark .ico{width:25px;height:25px}.brand-copy{display:flex;flex-direction:column;line-height:1.1}.brand-copy small{font-size:8px;letter-spacing:2.6px;font-weight:700;text-transform:uppercase;margin-top:6px;color:var(--mu)}header.hc{flex-direction:row}.hc .tabs{margin:0;padding:0;border:0;background:var(--bg);border-radius:10px}.hc .tabs button{padding:9px 18px}.ubar{display:flex;justify-content:flex-end;margin-bottom:18px}.user-chip{display:inline-flex;align-items:center;gap:8px;margin-right:8px}.user-chip .ico{color:var(--ac)}.tabs{display:flex;gap:5px;overflow-x:auto;padding:4px 0 14px;margin-bottom:20px;scrollbar-width:thin}.tabs button{white-space:nowrap;flex:none;background:transparent;border-color:transparent;color:var(--mu);border-radius:8px;padding:10px 15px;font-size:13px}.tabs button.on{background:var(--soft);border-color:var(--chip);color:var(--ac)}.wrap>.tabs{border-bottom:1px solid var(--bd)}.tabs button .ico{width:17px;height:17px;margin-right:7px}.page-intro{margin:4px 0 24px}.page-intro h1{font-size:34px;margin-bottom:8px}.page-intro p{margin:0;color:var(--mu);font-size:14px}
.auth{max-width:1140px;margin:50px auto;padding:0 28px}.auth-layout{display:grid;grid-template-columns:1.03fr 1fr;min-height:650px;background:var(--cd);border:1px solid var(--bd);border-radius:22px;overflow:hidden;box-shadow:0 20px 65px -32px #27382955}.auth-story{position:relative;overflow:hidden;background:#dfb79c;color:#26372b;min-height:650px;padding:42px 38px;display:flex;flex-direction:column}.auth-story::before{content:'';position:absolute;inset:0;background:url('/assets/hero.svg') center bottom/cover no-repeat;pointer-events:none}.auth-story>*{position:relative;z-index:1}.auth-story .eyebrow{color:#314d37}.auth-story h1{font-family:Georgia,'Times New Roman',serif;font-weight:400;font-size:58px;line-height:1.05;margin:5px 0 18px;max-width:380px;letter-spacing:-2.4px}.auth-story h1 em{font-weight:400}.auth-story .story-sub{font-size:14px;line-height:1.7;max-width:280px}.story-bottom{margin-top:auto;display:flex;align-items:center;gap:8px;font-size:11px;letter-spacing:1px;font-weight:800;text-transform:uppercase}.auth .auth-card{border:0;border-radius:0;box-shadow:none;margin:0;padding:44px 48px;align-self:center;width:100%}.auth .brand{font-size:22px!important;margin-bottom:42px!important}.auth .auth-heading{font-size:31px;letter-spacing:-1.1px;margin:0 0 10px}.auth .auth-sub{color:var(--mu);font-size:14px;max-width:340px;margin:0 0 26px}.auth .tabs{background:var(--bg);padding:4px;gap:3px;border-radius:10px;margin-bottom:28px}.auth .tabs button{flex:1;padding:9px 8px;font-size:13px;border:0}.auth .tabs button.on{background:var(--cd);box-shadow:0 2px 7px var(--sh);color:var(--ac)}.auth input,.auth select{min-height:48px;margin-bottom:20px}.auth label{font-size:12px}.auth .big{margin-top:4px}.auth-foot{font-size:11px;text-align:center;color:var(--mu);margin:22px 0 0}.auth-loading{max-width:440px;margin:12vh auto;padding:24px}.auth-loading .brand{justify-content:center}.auth-loading .card{text-align:center;padding:32px}.auth-loading .mu{margin-top:20px}
.welcome{padding:32px;margin-bottom:24px;background:var(--soft);border:1px solid var(--bd);border-radius:16px}.welcome h1{font:400 44px/1.1 Georgia,serif;margin:0 0 12px;letter-spacing:-1.5px}.welcome p:last-child{margin:0;color:var(--mu)}.section-choices{display:grid;grid-template-columns:1fr 1fr;gap:24px}.section-choice{display:grid;grid-template-columns:minmax(0,1fr) 44%;align-items:center;text-align:left;padding:0;min-height:240px;border-radius:16px;overflow:hidden;background:var(--cd)}.section-choice:hover:not(:disabled){box-shadow:0 8px 30px var(--sh);background:var(--cd)}.section-choice .choice-copy{padding:26px}.section-choice .choice-label{display:block;margin:15px 0 7px;font-size:25px;font-weight:800;letter-spacing:-.8px}.section-choice .choice-sub{display:block;font-size:13px;font-weight:400;color:var(--mu);margin:0 0 24px}.section-choice .choice-link{font-size:12px;font-weight:800;color:var(--ac)}.section-choice img{width:100%;height:100%;object-fit:cover}.section-choice .choice-symbol{display:inline-flex;padding:10px;border-radius:10px;background:var(--soft);color:var(--ac)}.section-choice .choice-symbol .ico{margin:0;width:24px;height:24px}.srch{padding:14px 18px;margin:0 0 24px;border-radius:10px}.menu-top{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:24px}.menu-top h1{font:400 38px/1.15 Georgia,serif;letter-spacing:-1px;margin:0 0 6px}.menu-top p{margin:0}.menu-note{font-size:11px;color:var(--mu)}.item{display:flex;gap:14px;align-items:center;padding:16px 0;border-bottom:1px solid var(--bd);min-width:0}.item:last-child{border-bottom:0}.item>div{min-width:0}.th{width:76px;height:76px;border-radius:12px;background:var(--soft);display:flex;align-items:center;justify-content:center;overflow:hidden;flex:none}.th img{width:100%;height:100%;object-fit:cover}.zm>div{display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:start}.zm>div>.card{padding:22px;margin:0;min-width:0}.zm>div>.card>h3{display:flex;align-items:center;gap:10px;font-size:17px;padding:0 0 15px;border-bottom:1px solid var(--bd);margin-bottom:6px!important}.zm .item{display:grid;grid-template-columns:minmax(0,1fr) 128px;gap:10px 18px;align-items:start;padding:22px 0}.zm .item>.th{grid-column:2;grid-row:1;width:128px;height:108px;border-radius:12px}.zm .item>div:nth-child(2){grid-column:1;grid-row:1/span 2;padding-top:4px}.zm .item>div:nth-child(2) b{display:block;margin-bottom:8px;font-size:16px}.zm .item>div:nth-child(2)>div{color:var(--ac);font-size:15px;font-weight:800}.zm .item>div:nth-child(3){grid-column:2;grid-row:2;justify-self:stretch;text-align:center!important;margin:0}.zm .item button.pri{width:100%;padding:7px 20px;min-height:36px;background:var(--cd);color:var(--ac);border-color:var(--chip);box-shadow:none}.zm .item button.pri:hover{background:var(--soft)}.zm .item .row{flex-wrap:nowrap;justify-content:space-between;gap:3px;background:var(--soft);border:1px solid var(--chip);border-radius:8px}.zm .item .row button{min-width:36px;min-height:36px;padding:4px 10px;border:0;background:transparent;color:var(--ac);font-size:18px}.zm .item .row b{color:var(--ac)}.zm .item button.mu{padding:5px 0;min-height:28px;font-size:11px;color:var(--mu);border:0;background:transparent;text-decoration:underline}.item.oos{opacity:.58}.item.oos .th{filter:grayscale(.8)}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:16px;margin-bottom:20px}.stats .card{margin:0;border-top:3px solid var(--c1);padding:23px}.stats .card:nth-child(4n+2){border-top-color:var(--c2)}.stats .card:nth-child(4n+3){border-top-color:var(--c3)}.stats .card:nth-child(4n+4){border-top-color:var(--c4)}.stats b{display:block;font-size:28px;letter-spacing:-.8px;line-height:1.3;margin-bottom:6px;font-variant-numeric:tabular-nums}.stats .row b{margin:0}.stats .card .row button{flex:1}.tw{width:100%;overflow-x:auto;overscroll-behavior-x:contain;margin-top:15px;border:1px solid var(--bd);border-radius:9px}table{width:100%;border-collapse:collapse}td,th{text-align:left;padding:13px 12px;border-bottom:1px solid var(--bd);font-size:13px;vertical-align:middle}th{background:var(--bg);color:var(--mu);font-size:10px;text-transform:uppercase;letter-spacing:.8px;white-space:nowrap;font-weight:800}tr:last-child td{border-bottom:0}tr:hover td{background:color-mix(in srgb,var(--soft) 40%,transparent)}td button{padding:6px 11px;font-size:12px;min-height:34px}td.row{display:table-cell;min-width:170px}td.row button{margin:3px}td input,td select{min-height:38px;font-size:12px}.badge{display:inline-block;border:1px solid color-mix(in srgb,currentColor 22%,transparent);background:color-mix(in srgb,currentColor 7%,transparent);padding:4px 9px;border-radius:6px;font-size:11px;font-weight:800;white-space:nowrap}.s-New{color:var(--wn)}.s-Accepted,.s-Preparing{color:var(--ac)}.s-Prepared,.s-Delivered,.s-Completed{color:var(--ok)}.s-On{color:#497aa2}.s-Rejected{color:var(--bad)}
.hasfoot{padding-bottom:120px}.foot{position:fixed;inset:auto 0 0;z-index:6;display:flex;gap:14px;justify-content:center;padding:14px 24px calc(14px + env(safe-area-inset-bottom,0px));background:var(--hdbg);border-top:1px solid var(--bd);box-shadow:0 -6px 24px #1e332a0a}.foot .fb{flex:1;max-width:360px;padding:12px 20px;font-size:14px;line-height:1.35;min-height:50px}.foot .fb b{display:block;font-size:14px}.foot .fb .mu{display:block;font-size:11px}.foot .fb.pri .mu{color:var(--on)}.ov{position:fixed;inset:0;background:#172a2380;backdrop-filter:blur(4px);z-index:8;display:flex;align-items:center;justify-content:center;padding:20px;overflow-y:auto}.ov .card{max-width:460px;width:100%;margin:auto;max-height:calc(100dvh - 40px);overflow-y:auto;box-shadow:0 20px 60px #14261c30}.ov .row{margin-top:18px}.ov .row button{flex:1}#toast{position:fixed;bottom:calc(95px + env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);background:#233c2d;color:#fff;padding:13px 20px;border-radius:10px;display:none;z-index:12;max-width:calc(100% - 32px);width:max-content;font-size:13px;box-shadow:0 10px 35px #14261c30}::-webkit-scrollbar{width:7px;height:7px}::-webkit-scrollbar-thumb{background:var(--chip);border-radius:8px}
@media(min-width:1000px){.wrap:not(.customer-wrap)>.tabs{flex-wrap:wrap;overflow:visible;gap:4px}.wrap:not(.customer-wrap)>.tabs button{font-size:12px;padding:8px 12px}.customer-wrap{max-width:1120px}.customer-wrap:has(.section-choices){max-width:1190px}}
@media(max-width:950px){.auth{margin:24px auto;padding:0 20px}.auth-story{padding:38px 28px}.auth-story h1{font-size:49px}.auth .auth-card{padding:38px 30px}.wrap{padding:22px}.section-choice{grid-template-columns:1fr}.section-choice img{height:190px;grid-row:1}.section-choice .choice-copy{padding:22px}.section-choice .choice-symbol{display:none}.section-choice .choice-label{margin-top:0}.section-choice .choice-sub{margin-bottom:14px}.grid{grid-template-columns:minmax(0,1fr) 320px;gap:16px}.card{padding:18px}.zm>div{gap:16px}.zm>div>.card{padding:18px}.zm .item{grid-template-columns:minmax(0,1fr) 108px;column-gap:12px}.zm .item>.th{width:108px;height:96px}}
@media(max-width:760px){.grid,.dc{grid-template-columns:1fr}.auth-layout{grid-template-columns:1fr;min-height:0}.auth-story{min-height:220px;padding:28px;background:#e1b89c}.auth-story::before{background-size:320px auto;background-position:right 55%;opacity:.35}.auth-story h1{font-size:37px;max-width:360px;letter-spacing:-1.2px;margin:0 0 12px}.auth-story h1 br{display:none}.auth-story .story-sub{margin:0;max-width:250px;font-size:12px}.auth-story .eyebrow{font-size:9px;margin-bottom:12px}.story-bottom{display:none}.auth .auth-card{padding:30px 28px}.auth .brand{margin-bottom:26px!important}.auth .auth-heading{font-size:27px}.auth .auth-sub{margin-bottom:20px}.auth .tabs{margin-bottom:22px}.auth{max-width:510px}.zm>div{grid-template-columns:1fr}.menu-top{align-items:start;flex-direction:column;gap:8px}.menu-top h1{font-size:32px}.page-intro h1{font-size:28px}header{padding:15px 20px;gap:12px}header .brand{font-size:18px}header .brand-mark{width:34px;height:34px}.brand-copy small{font-size:7px}header .row{gap:7px}header button{padding:7px 10px;font-size:12px;min-height:36px}.wrap{padding:20px}.ubar{margin-bottom:18px}.ubar .row{width:100%;justify-content:flex-end;gap:8px}.user-chip{margin-right:auto}.hc .tabs button{font-size:12px;padding:7px 12px}.section-choices{gap:16px}.section-choice img{height:150px}.section-choice .choice-copy{padding:18px}.section-choice .choice-label{font-size:22px}.welcome{padding:26px}.welcome h1{font-size:35px}.stats{grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px}.stats .card{padding:18px}.stats b{font-size:25px}.tabs{margin-bottom:16px}.hasfoot{padding-bottom:115px}.foot{padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));gap:10px}.foot .fb{padding:10px 12px}.card>.row>input{flex-basis:140px!important}.card>.row>select{flex-basis:140px!important}}
@media(max-width:440px){.auth{padding:12px;margin:0 auto}.auth-layout{border-radius:16px}.auth-story{min-height:190px;padding:22px}.auth-story h1{font-size:32px;max-width:270px}.auth-story .story-sub{max-width:210px}.auth .auth-card{padding:28px 22px}.auth .brand{font-size:20px!important}.wrap{padding:18px 14px 28px}.wrap.hasfoot{padding-bottom:115px}.section-choices{grid-template-columns:1fr}.section-choice{grid-template-columns:minmax(0,1fr) 42%;min-height:190px}.section-choice img{grid-row:auto;height:100%;min-height:190px}.section-choice .choice-sub{font-size:12px}.section-choice .choice-label{font-size:23px}.section-choice .choice-copy{padding:22px}.welcome{padding:24px}.welcome h1{font-size:33px}.brand-copy small{letter-spacing:1.7px}header{padding:14px}.hc .tabs{width:100%;justify-content:center}.hc .tabs button{flex:1}.ubar .user-chip{font-size:11px}.ubar button{font-size:11px;padding:7px 9px;min-height:36px}.card{padding:16px;border-radius:12px}.zm>div>.card{padding:16px}.zm .item{grid-template-columns:minmax(0,1fr) 112px;padding:20px 0}.zm .item>.th{width:112px;height:100px}.zm .item>div:nth-child(2) b{font-size:15px}.item:not(.zm .item){flex-wrap:wrap}.item:not(.zm .item)>div[style*='flex:1']{min-width:120px}.stats{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}.stats .card{padding:16px}.foot .fb{font-size:12px}.ov{padding:14px}.ov .card{max-height:calc(100dvh - 28px)}}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#18201b;--cd:#212b24;--tx:#f1f2e9;--mu:#b2bdaf;--ac:#acd0a8;--ac2:#c1dfbc;--on:#1c3021;--bd:#39473b;--ok:#9bce9e;--bad:#f09b8e;--wn:#e4bd73;--soft:#2d3c2f;--chip:#536b53;--hdbg:#212b24;--sh:#00000030;--c1:#acd0a8;--c2:#c08c6b;--c3:#86a6b6;--c4:#c4ab73;color-scheme:dark}}
:root[data-theme=dark]{--bg:#18201b;--cd:#212b24;--tx:#f1f2e9;--mu:#b2bdaf;--ac:#acd0a8;--ac2:#c1dfbc;--on:#1c3021;--bd:#39473b;--ok:#9bce9e;--bad:#f09b8e;--wn:#e4bd73;--soft:#2d3c2f;--chip:#536b53;--hdbg:#212b24;--sh:#00000030;--c1:#acd0a8;--c2:#c08c6b;--c3:#86a6b6;--c4:#c4ab73;color-scheme:dark}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* Compact phone ordering layout, preserving all controls. */
@media(max-width:760px){.customer-wrap .ubar{margin-bottom:10px}.customer-wrap>.tabs{padding-bottom:10px;margin-bottom:18px}.menu-top{margin-bottom:16px;gap:6px}.menu-top .eyebrow{display:none}.menu-top h1{font-size:30px}.menu-top p.mu{font-size:12px}.srch{min-height:44px;padding:11px 14px;margin-bottom:18px}}
@media(max-width:440px){.cart-item{display:grid!important;grid-template-columns:56px minmax(0,1fr) auto;gap:12px!important}.cart-item>.th{grid-column:1;grid-row:1}.cart-item>div:nth-child(2){grid-column:2 / 4;grid-row:1;min-width:0!important}.cart-item>div.row{grid-column:2;grid-row:2}.cart-item>b{grid-column:3;grid-row:2;min-width:0!important}.cart-item>div.row button{padding:6px 10px;min-height:36px}}
html{padding-top:env(safe-area-inset-top,0px)}header{top:env(safe-area-inset-top,0px)}body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);background:var(--hdbg);z-index:10}
