:root {
    --green: #0E342B;
    --green-2: #164a3d;
    --green-dark: #08201a;
    --fresh: #569E28;
    --fresh-soft: #e9f4df;
    --orange: #F07A10;
    --orange-dark: #d0680a;
    --orange-soft: #fdeedd;
    --peach: #FFBC7D;
    --bg: #f3f6f2;
    --card: #ffffff;
    --ink: #172019;
    --muted: #66716a;
    --line: rgba(14, 52, 43, .08);
    --red: #d1453b;
    --red-soft: #fbe4e1;
    --yellow: #d99a12;
    --yellow-soft: #fdf3d6;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 1px 2px rgba(14,52,43,.04), 0 8px 24px -12px rgba(14,52,43,.18);
    --shadow-lift: 0 2px 4px rgba(14,52,43,.06), 0 18px 40px -16px rgba(14,52,43,.28);
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, .display {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--green);
    margin: 0;
    line-height: 1.05;
    font-weight: 400;
}
h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
h1:focus, h1:focus-visible, [tabindex="-1"]:focus { outline: none; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
a { color: var(--green); }
p { margin: 0 0 .6rem; }

.eyebrow {
    font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: var(--fresh);
}
.muted { color: var(--muted); font-size: .85rem; }
.small { font-size: .78rem; }

/* ================= SHELL ================= */
.topbar {
    position: sticky; top: 0; z-index: 60;
    background: linear-gradient(180deg, rgba(17, 59, 49, .97) 0%, rgba(14, 52, 43, .93) 100%);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    color: #fff;
    padding: .5rem 1rem;
    padding-top: calc(.5rem + env(safe-area-inset-top));
    box-shadow: 0 1px 0 rgba(255,255,255,.07) inset, 0 14px 34px -20px rgba(0,0,0,.65);
}
/* One row, never wraps: the brand and user block stay fixed, the nav shrinks (then scrolls) in between. */
.topbar-inner { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; gap: .7rem; flex-wrap: nowrap; min-width: 0; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: #fff; transition: opacity .18s; flex: 0 0 auto; white-space: nowrap; }
.brand:hover { opacity: .88; }
.brand img { width: 52px; height: 52px; border-radius: 14px; box-shadow: 0 0 0 2px rgba(255,255,255,.18), 0 6px 16px -6px rgba(0,0,0,.5); flex: 0 0 auto; }
.brand .name { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: .06em; line-height: 1; white-space: nowrap; }
.brand .tag { font-size: .56rem; letter-spacing: .2em; color: var(--peach); font-weight: 700; text-transform: uppercase; white-space: nowrap; }
.topnav {
    display: none; align-items: center; gap: .1rem; min-width: 0; flex: 1 1 auto;
    margin-left: .6rem; padding-left: .8rem; border-left: 1px solid rgba(255,255,255,.14);
    overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
}
.topnav::-webkit-scrollbar { display: none; }
.topnav a {
    position: relative; flex: 0 0 auto; white-space: nowrap; display: inline-flex; align-items: center; gap: .3rem;
    color: rgba(255,255,255,.78); text-decoration: none; font-size: .8rem; font-weight: 600;
    padding: .4rem .66rem; border-radius: 999px; transition: all .18s;
}
.topnav a svg { width: 17px; height: 17px; }
.topnav a:hover { color: #fff; background: rgba(255,255,255,.1); }
.topnav a.active { color: var(--green); background: #fff; box-shadow: 0 4px 14px -6px rgba(0,0,0,.35); }
.spacer { flex: 0 0 0; }
.top-user { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; color: rgba(255,255,255,.82); text-decoration: none; transition: color .18s; white-space: nowrap; flex: 0 0 auto; }
.top-user:hover { color: #fff; }
.top-user svg { width: 15px; height: 15px; }
.cart-pill {
    display: inline-flex; align-items: center; gap: .4rem;
    background: var(--orange); color: #fff; text-decoration: none;
    border-radius: 999px; padding: .42rem .85rem .42rem .7rem;
    font-weight: 700; font-size: .85rem;
    box-shadow: 0 6px 18px -6px rgba(240,122,16,.7);
    transition: transform .15s;
}
.cart-pill:hover { transform: translateY(-1px); }
.cart-pill svg { width: 17px; height: 17px; }
.cart-pill { flex: 0 0 auto; white-space: nowrap; }
/* Owner nav has a dozen items: trade brand text for room before anything is allowed to wrap or clip. */
@media (max-width: 1340px) {
    .topnav a { font-size: .76rem; padding: .38rem .48rem; }
    .brand .tag { display: none; }
    .brand .name { font-size: 1.1rem; }
}
@media (max-width: 1180px) {
    .brand > div { display: none; }          /* logo only */
    .topnav { margin-left: .2rem; padding-left: .6rem; }
    .top-user .label-signout { display: none; }
}
@media (max-width: 1060px) {
    .topbar { padding-left: .7rem; padding-right: .7rem; }
    .topbar-inner { gap: .45rem; }
    .topnav { gap: 0; padding-left: .45rem; }
    .topnav a { font-size: .7rem; padding: .32rem .4rem; }
    .topnav a svg { width: 15px; height: 15px; }
    .top-user { font-size: .72rem; }
    .cart-pill { padding: .36rem .62rem .36rem .55rem; font-size: .78rem; }
}
@media (max-width: 899px) {
    .spacer { flex: 1; }                     /* no top nav: push user + cart to the right */
    .brand > div { display: block; }         /* phones have room for the name again */
    .brand img { width: 46px; height: 46px; border-radius: 12px; }
    .brand .name { font-size: 1.05rem; }
    .brand .tag { display: none; }
}
@media (max-width: 420px) {
    .brand .name { font-size: .95rem; }
    .top-user span { display: none; }        /* icon only next to the cart */
}

.page { padding: 1.1rem 1rem; max-width: 1140px; margin: 0 auto; padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }

.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    display: flex; justify-content: space-around;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    padding: .4rem .3rem calc(.4rem + env(safe-area-inset-bottom));
}
.bottom-nav a {
    display: flex; flex-direction: column; align-items: center; gap: .15rem;
    font-size: .62rem; font-weight: 600; text-decoration: none; color: var(--muted);
    padding: .3rem .7rem; border-radius: 12px; min-width: 60px; transition: all .15s;
}
.bottom-nav a svg { width: 22px; height: 22px; }
.bottom-nav a.active { color: var(--green); background: var(--fresh-soft); }

@media (min-width: 900px) {
    .topnav { display: flex; }
    .bottom-nav { display: none; }
    .page { padding: 1.6rem 1.25rem 3rem; }
}

/* ================= HERO ================= */
.hero {
    position: relative; overflow: hidden;
    border-radius: 24px;
    background: var(--green);
    color: #fff;
    padding: 2.4rem 1.5rem 2rem;
    min-height: 280px;
    display: flex; align-items: flex-end;
    margin-bottom: 1.4rem;
    box-shadow: var(--shadow-lift);
}
/* Two copies of the same photo: a heavy blur everywhere (so it never shows a hard edge behind the text),
   and a much lighter blur on top that's masked to fade in from left to right, so the food stays obviously
   food and comes into focus toward the right side while the left, where the headline sits, stays soft. */
.hero-bg, .hero-bg-sharp {
    position: absolute; inset: -30px;
    background-image: url('img/hero-bg.jpg');
    background-size: cover; background-position: center 42%;
    transform: scale(1.15);
}
.hero-bg { filter: blur(22px) saturate(1.2) brightness(.6); z-index: 0; }
.hero-bg-sharp {
    filter: blur(5px) saturate(1.3) brightness(.82);
    z-index: 1;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 38%, #000 72%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, transparent 38%, #000 72%, #000 100%);
}
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: 2;
    background:
        linear-gradient(100deg, rgba(6,20,16,.92) 0%, rgba(6,20,16,.8) 34%, rgba(6,20,16,.4) 60%, rgba(6,20,16,.12) 82%, transparent 100%),
        linear-gradient(180deg, rgba(8,28,22,.25) 0%, rgba(8,28,22,.4) 45%, rgba(6,22,17,.8) 100%);
}
.hero::after {
    content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; z-index: 1;
    border-radius: 50%; background: radial-gradient(circle, rgba(240,122,16,.35), transparent 65%);
}
.hero-content { position: relative; z-index: 3; max-width: 640px; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 6vw, 3.4rem); text-shadow: 0 4px 24px rgba(0,0,0,.35); }
.hero p { color: rgba(255,255,255,.86); max-width: 520px; font-size: .92rem; margin-top: .4rem; }
.hero .eyebrow { color: var(--peach); }
.hero-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.hero-chip {
    display: inline-flex; align-items: center; gap: .4rem;
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-radius: 999px; padding: .38rem .8rem; font-size: .76rem; font-weight: 600;
}
.hero-chip svg { width: 15px; height: 15px; }
@media (min-width: 900px) { .hero { min-height: 320px; padding: 3rem 2.2rem 2.4rem; } }

/* ================= CARDS ================= */
.card {
    background: var(--card); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 1.15rem; border: 1px solid var(--line);
}
.card + .card { margin-top: 1rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .9rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.cols-2 { grid-template-columns: 1fr 1fr; } .grid.cols-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.grid.sidebar { grid-template-columns: 1fr; }
@media (min-width: 960px) { .grid.sidebar { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.sticky { position: sticky; top: 76px; }

/* ---- Meal card ---- */
.meal-card {
    background: var(--card); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); border: 1px solid var(--line);
    display: flex; flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}
.meal-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.meal-media { position: relative; aspect-ratio: 4 / 3; background: #0b0f0c; overflow: hidden; }
.meal-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.meal-card:hover .meal-media img { transform: scale(1.04); }
.meal-media .placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--green), #2c6b3a);
    color: #fff; font-family: var(--font-display); font-size: 2.4rem; letter-spacing: .1em;
}
.price-badge {
    position: absolute; top: .7rem; right: .7rem;
    background: rgba(255,255,255,.9); backdrop-filter: blur(8px);
    color: var(--green); font-family: var(--font-display); font-size: 1.15rem;
    padding: .25rem .65rem; border-radius: 999px; letter-spacing: .04em;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.cal-badge {
    position: absolute; left: .7rem; bottom: .7rem;
    background: rgba(14,52,43,.78); backdrop-filter: blur(8px); color: #fff;
    font-size: .68rem; font-weight: 700; padding: .28rem .6rem; border-radius: 999px;
}
.meal-body { padding: .95rem 1rem 1rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.meal-body h3 { font-size: 1.35rem; }
.meal-desc { font-size: .82rem; color: var(--muted); line-height: 1.45; }
.macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.macro {
    background: var(--bg); border-radius: 10px; padding: .4rem .3rem; text-align: center;
}
.macro b { display: block; font-size: .95rem; color: var(--green); }
.macro span { font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.chip {
    display: inline-flex; align-items: center; gap: .25rem;
    background: var(--bg); border: 1px solid var(--line); border-radius: 999px;
    font-size: .66rem; font-weight: 600; padding: .2rem .55rem; color: var(--muted);
}
.chip.warn { background: var(--orange-soft); color: var(--orange-dark); border-color: transparent; }
.chip.ok { background: var(--fresh-soft); color: #3f7a1c; border-color: transparent; }
.chip.green { background: var(--fresh-soft); color: #3f7a1c; border-color: transparent; }
.chip.blue { background: #e4eef9; color: #2b5a8f; border-color: transparent; }
.chip.orange { background: var(--orange-soft); color: var(--orange-dark); border-color: transparent; }
.chip.red { background: var(--red-soft); color: var(--red); border-color: transparent; }
.chip.dark { background: var(--green); color: #fff; border-color: transparent; }
.meal-actions { margin-top: auto; display: flex; gap: .5rem; align-items: center; }
.in-cart-badge {
    position: absolute; right: .7rem; bottom: .7rem;
    background: var(--fresh); color: #fff; font-size: .66rem; font-weight: 800;
    padding: .28rem .6rem; border-radius: 999px; display: inline-flex; align-items: center; gap: .3rem;
}
.in-cart-badge svg { width: 12px; height: 12px; }

/* ---- Choose your protein ---- */
.protein-pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.protein-pill {
    display: inline-flex; flex-direction: column; align-items: center; gap: 1px;
    border: 1.5px solid var(--line); background: #fff; border-radius: 12px;
    padding: .4rem .75rem; cursor: pointer; font-family: var(--font-body);
    transition: all .15s; min-width: 64px;
}
.protein-pill .p-name { font-weight: 700; font-size: .8rem; color: var(--ink); }
.protein-pill .p-delta { font-size: .62rem; color: var(--muted); font-weight: 600; }
.protein-pill:hover { border-color: var(--fresh); transform: translateY(-1px); }
.protein-pill.active {
    background: var(--green); border-color: var(--green); box-shadow: 0 6px 14px -6px rgba(14,52,43,.6);
}
.protein-pill.active .p-name { color: #fff; }
.protein-pill.active .p-delta { color: var(--peach); }
.macro.pulse { animation: macro-pop .35s ease-out; }
@keyframes macro-pop { 0% { transform: scale(.94); background: var(--fresh-soft); } 100% { transform: none; } }
.price-badge { animation: fade .3s ease-out; }

/* ================= BUTTONS / FORMS ================= */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    background: var(--green); color: #fff; border: 0;
    padding: .7rem 1.15rem; border-radius: 12px;
    font-size: .9rem; font-weight: 700; cursor: pointer; text-decoration: none;
    font-family: var(--font-body); transition: transform .12s, box-shadow .12s, background .12s;
    box-shadow: 0 6px 16px -8px rgba(14,52,43,.6);
}
.btn svg { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-1px); background: var(--green-2); }
.btn:active { transform: translateY(0); }
.btn.orange { background: linear-gradient(180deg, #f6892a, var(--orange)); box-shadow: 0 8px 18px -8px rgba(240,122,16,.8); }
.btn.orange:hover { background: var(--orange-dark); }
.btn.ghost { background: transparent; color: var(--green); border: 1.5px solid rgba(14,52,43,.25); box-shadow: none; }
.btn.ghost:hover { background: var(--fresh-soft); border-color: var(--fresh); }
.btn.soft { background: var(--fresh-soft); color: var(--green); box-shadow: none; }
.btn.small { padding: .42rem .8rem; font-size: .78rem; border-radius: 10px; }
.btn.icon { padding: .5rem; border-radius: 10px; }
.btn.block { width: 100%; }
.btn.lg { padding: .95rem 1.4rem; font-size: 1rem; border-radius: 14px; }
.btn:disabled { opacity: .5; cursor: default; transform: none; }

input, select, textarea {
    font-family: var(--font-body); font-size: .95rem;
    padding: .65rem .8rem; border: 1.5px solid var(--line); border-radius: 12px;
    background: #fff; color: var(--ink); width: 100%; transition: border .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--fresh); box-shadow: 0 0 0 3px rgba(86,158,40,.18); }
label { font-size: .72rem; font-weight: 700; color: var(--muted); display: block; margin-bottom: .3rem; letter-spacing: .06em; text-transform: uppercase; }
.field { margin-bottom: .9rem; }
.input-row { display: flex; gap: .7rem; }
.input-row .field { flex: 1; }

.segmented { display: flex; background: var(--bg); border-radius: 12px; padding: 4px; gap: 4px; }
.segmented button {
    flex: 1; border: 0; background: transparent; padding: .55rem; border-radius: 9px;
    font-family: var(--font-body); font-weight: 600; font-size: .85rem; color: var(--muted); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem; transition: all .15s;
}
.segmented button svg { width: 16px; height: 16px; }
.segmented button.active { background: #fff; color: var(--green); box-shadow: 0 2px 8px rgba(14,52,43,.12); }

.stepper { display: inline-flex; align-items: center; background: var(--bg); border-radius: 999px; padding: 3px; }
.stepper button {
    width: 30px; height: 30px; border-radius: 50%; border: 0; background: #fff; color: var(--green);
    font-weight: 800; font-size: 1rem; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.12);
    display: inline-flex; align-items: center; justify-content: center;
}
.stepper span { min-width: 30px; text-align: center; font-weight: 700; font-size: .92rem; }

/* ================= TABLES ================= */
.table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.table th {
    text-align: left; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
    color: var(--muted); padding: .5rem .6rem; border-bottom: 1px solid var(--line);
}
.table td { padding: .65rem .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; margin: 0 -1.15rem; padding: 0 1.15rem; }

/* ================= STATS / GAUGES ================= */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; }
.stat {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: .9rem 1rem; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.stat .label { font-size: .64rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.stat .value { font-family: var(--font-display); font-size: 2rem; color: var(--green); line-height: 1.1; margin-top: .2rem; }
.stat .value.orange { color: var(--orange); }
.stat .value.fresh { color: var(--fresh); }
.stat .sub { font-size: .72rem; color: var(--muted); margin-top: .1rem; }
.stat .ico { position: absolute; right: .85rem; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--fresh-soft); color: var(--fresh); }
.stat .ico svg { width: 30px; height: 30px; }
.stat { padding-right: 4.6rem; }
.stat .ico.orange { background: var(--orange-soft); color: var(--orange); }

.band { font-weight: 800; padding: .22rem .65rem; border-radius: 999px; font-size: .74rem; display: inline-flex; align-items: center; gap: .3rem; }
.band::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.band.green { background: var(--fresh-soft); color: #3f7a1c; }
.band.yellow { background: var(--yellow-soft); color: #8a6100; }
.band.red { background: var(--red-soft); color: var(--red); }

.meter { height: 8px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: 999px; background: var(--fresh); transition: width .4s; }
.meter.yellow > i { background: var(--yellow); }
.meter.red > i { background: var(--red); }

.gauge { position: relative; width: 150px; height: 150px; margin: 0 auto; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 12; stroke-linecap: round; }
.gauge .track { stroke: var(--bg); }
.gauge .fill { transition: stroke-dashoffset .5s ease; }
.gauge .fill.green { stroke: var(--fresh); }
.gauge .fill.yellow { stroke: var(--yellow); }
.gauge .fill.red { stroke: var(--red); }
.gauge .center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge .center b { font-family: var(--font-display); font-size: 2rem; color: var(--green); line-height: 1; }
.gauge .center span { font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

/* ================= LISTS / CHECK ================= */
.check-list { display: flex; flex-direction: column; gap: .4rem; }
.check-item {
    display: flex; align-items: center; gap: .8rem; padding: .7rem .8rem;
    background: var(--bg); border-radius: 12px; cursor: pointer; user-select: none; transition: background .15s;
}
.check-item:hover { background: #eaf0e8; }
.check-item .box {
    width: 24px; height: 24px; border-radius: 8px; border: 2px solid rgba(14,52,43,.3); flex: none;
    display: flex; align-items: center; justify-content: center; background: #fff; transition: all .15s;
}
.check-item .box svg { width: 14px; height: 14px; color: #fff; opacity: 0; }
.check-item.done .box { background: var(--fresh); border-color: var(--fresh); }
.check-item.done .box svg { opacity: 1; }
.check-item.done .txt { text-decoration: line-through; color: var(--muted); }
.check-item .txt { flex: 1; font-weight: 600; font-size: .92rem; }
.check-item .qty { font-family: var(--font-display); font-size: 1.15rem; color: var(--green); letter-spacing: .04em; }
.check-item .cost { font-size: .74rem; color: var(--muted); }

.kanban { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .kanban { grid-template-columns: repeat(4, 1fr); } }
.kanban-col { background: rgba(14,52,43,.04); border-radius: var(--radius); padding: .8rem; min-height: 140px; }
.kanban-col h3 { display: flex; justify-content: space-between; align-items: center; font-size: 1rem; margin-bottom: .6rem; }
.kanban-col h3 .count { background: #fff; border-radius: 999px; font-family: var(--font-body); font-weight: 800; font-size: .7rem; padding: .15rem .55rem; }
.ticket {
    background: #fff; border-radius: 14px; padding: .8rem .9rem; box-shadow: var(--shadow);
    border-left: 4px solid var(--fresh); margin-bottom: .6rem;
}
.ticket.paid { border-left-color: var(--fresh); }
.ticket.unpaid { border-left-color: var(--yellow); }
.ticket.preparing { border-left-color: var(--orange); }
.ticket.ready { border-left-color: #2b5a8f; }
.ticket.completed { border-left-color: #999; opacity: .75; }
.ticket-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.ticket-head b { font-size: .95rem; }
.ticket-head .id { font-size: .7rem; color: var(--muted); font-weight: 700; }
.ticket-lines { margin: .4rem 0; font-size: .82rem; line-height: 1.5; }
.ticket-lines b { color: var(--green); }
.ticket-foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: .4rem; }

/* ================= STICKY CART BAR ================= */
.cart-bar {
    position: fixed; left: 50%; transform: translateX(-50%);
    bottom: calc(4.4rem + env(safe-area-inset-bottom)); z-index: 55;
    width: min(94vw, 560px);
    background: var(--green); color: #fff; border-radius: 18px;
    padding: .7rem .8rem .7rem 1rem; display: flex; align-items: center; gap: .8rem;
    box-shadow: 0 18px 40px -12px rgba(14,52,43,.6);
    animation: rise .25s ease-out;
}
@media (min-width: 900px) { .cart-bar { bottom: 1.4rem; } }
.cart-bar .count { background: var(--orange); border-radius: 999px; font-weight: 800; font-size: .8rem; padding: .25rem .6rem; }
.cart-bar .total { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: .04em; }
.cart-bar .btn { margin-left: auto; }
@keyframes rise { from { transform: translate(-50%, 12px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

/* ================= TOAST ================= */
.toast-stack { position: fixed; top: calc(4.2rem + env(safe-area-inset-top)); right: 1rem; z-index: 100; width: min(92vw, 380px); display: flex; flex-direction: column; gap: .5rem; }
.toast {
    background: rgba(8,32,26,.94); backdrop-filter: blur(10px); color: #fff; border-radius: 14px;
    padding: .75rem .95rem; font-size: .84rem; box-shadow: 0 10px 30px rgba(0,0,0,.35);
    animation: pop .2s ease-out; border-left: 3px solid var(--orange);
}
.toast .channel { font-size: .62rem; text-transform: uppercase; letter-spacing: .14em; color: var(--peach); font-weight: 800; margin-bottom: .15rem; }
@keyframes pop { from { transform: translateX(12px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ================= MISC ================= */
.row { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.section { margin-bottom: 1.4rem; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 1rem 0; }
.note {
    display: flex; gap: .6rem; align-items: flex-start;
    background: var(--orange-soft); border-radius: 12px; padding: .7rem .85rem; font-size: .8rem; color: var(--orange-dark);
}
.note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.note.green { background: var(--fresh-soft); color: #3f7a1c; }
.login-wrap { max-width: 420px; margin: 2rem auto; }
.google-btn { background: #fff; border-color: var(--line); color: var(--ink); }
.google-btn:hover { background: #f8faf8; }
.or-line { display: flex; align-items: center; gap: .8rem; margin: 1rem 0; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.or-line::before, .or-line::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.order-row { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.order-row:last-child { border-bottom: 0; }
.gate { max-width: 560px; margin: 1rem auto; text-align: center; }
.gate .big-check { background: var(--orange-soft); color: var(--orange); }
.login-hero { text-align: center; margin-bottom: 1.2rem; }
.login-hero img { width: 84px; height: 84px; border-radius: 22px; box-shadow: var(--shadow-lift); }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty svg { width: 46px; height: 46px; color: var(--fresh); margin-bottom: .6rem; }
.skeleton { background: linear-gradient(90deg, #eef2ec 25%, #f7f9f6 50%, #eef2ec 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 12px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.fade-in { animation: fade .3s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.icon-btn { background: transparent; border: 0; padding: .3rem; cursor: pointer; color: var(--muted); border-radius: 8px; }
.icon-btn:hover { background: var(--bg); color: var(--red); }
.icon-btn svg { width: 18px; height: 18px; }
.cat-ico { width: 32px; height: 32px; border-radius: 9px; background: var(--fresh-soft); color: var(--fresh); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.cat-ico svg { width: 16px; height: 16px; }
.pack-line { display: flex; justify-content: space-between; align-items: center; padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.pack-line .muted { font-size: .72rem; }
.option-row { display: grid; grid-template-columns: 1.1fr 1.3fr 82px 78px 96px 32px 32px; gap: .45rem; align-items: center; padding: .35rem 0; border-bottom: 1px solid var(--line); }
.option-row input, .option-row select { padding: .45rem .6rem; font-size: .85rem; }
.radio-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(14,52,43,.3); background: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.radio-dot.on { border-color: var(--fresh); }
.radio-dot.on::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--fresh); }
.ingredient-row { display: grid; grid-template-columns: 1fr 96px 80px 36px; gap: .5rem; align-items: center; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.ingredient-row .cost { text-align: right; font-weight: 700; font-size: .85rem; color: var(--green); }
.chart-bars { display: flex; align-items: flex-end; gap: 8px; height: 170px; padding-top: 1.2rem; }
.chart-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative; }
.chart-bar i { display: block; width: 100%; max-width: 46px; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, var(--fresh), var(--green)); transition: height .5s; }
.chart-bar .v { font-size: .66rem; font-weight: 800; color: var(--green); margin-bottom: .25rem; }
.chart-bar .l { font-size: .62rem; color: var(--muted); margin-top: .3rem; font-weight: 600; }
.chart-bar.current i { background: linear-gradient(180deg, #f6892a, var(--orange)); }

.btn.red { background: var(--red); color: #fff; border-color: transparent; }
.btn.red:hover { filter: brightness(1.06); }
.ticket.cancelled { border-left-color: var(--red); opacity: .75; }
.ticket-cancel { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.cancel-window { margin-top: .6rem; padding: .6rem .75rem; border-radius: 12px; background: var(--fresh-soft); font-size: .82rem; color: #2f5f14; }
.cancel-window .meter { margin-top: .5rem; background: rgba(255,255,255,.7); }
.cancel-window .meter > i { transition: width 1s linear; }
.cancel-window.urgent { background: var(--orange-soft); color: var(--orange-dark); }
.cancel-window.urgent .meter > i { background: var(--orange); }
.cancel-window b.time { font-variant-numeric: tabular-nums; }
.ac { position: relative; }
.ac input { padding-right: 2.4rem; }
.ac .spin { position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); font-size: .7rem; color: var(--muted); font-weight: 700; }
.ac-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lift); z-index: 30; overflow: hidden; }
.ac-item { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .6rem .8rem; cursor: pointer; border-bottom: 1px solid var(--line); font-size: .86rem; }
.ac-item:last-child { border-bottom: 0; }
.ac-item:hover, .ac-item.hi { background: var(--fresh-soft); }
.ac-item .muted { font-size: .72rem; }
.ac-item .stat-mini { text-align: right; font-size: .72rem; color: var(--muted); white-space: nowrap; }
.ac-item .stat-mini b { display: block; font-size: .85rem; color: var(--green); }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: .35rem .6rem; font-size: .86rem; }
.kv .k { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; padding-top: .15rem; }
.bday-row { display: flex; justify-content: space-between; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.bday-row:last-child { border-bottom: 0; }
.bday-row .when { font-size: .72rem; color: var(--muted); }
.bday-row .today { background: var(--orange); color: #fff; border-radius: 999px; padding: .15rem .55rem; font-size: .66rem; font-weight: 800; }
.cancelled-strip { margin-top: 1.2rem; }
.cancelled-strip summary { cursor: pointer; font-weight: 700; font-size: .9rem; color: var(--muted); }
.cancelled-row { display: grid; grid-template-columns: 70px 1fr auto; gap: .6rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .84rem; }
.cancelled-row:last-child { border-bottom: 0; }

.usda { background: var(--bg); border-radius: 12px; padding: .7rem .8rem; margin-bottom: 1rem; }
.usda-list { margin-top: .6rem; max-height: 280px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.usda-row { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .55rem .7rem; border-bottom: 1px solid var(--line); font-size: .85rem; }
.usda-row:last-child { border-bottom: 0; }
.usda-row .muted { font-size: .72rem; margin-top: .15rem; }

svg.ico { width: 18px; height: 18px; vertical-align: -4px; flex: none; }
.chip svg.ico { width: 12px; height: 12px; vertical-align: -2px; }
.card-head svg.ico { width: 22px; height: 22px; }
.big-check { width: 72px; height: 72px; border-radius: 50%; background: var(--fresh-soft); color: var(--fresh); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.big-check svg { width: 36px; height: 36px; }

#blazor-error-ui { display: none; }


/* ================= SPLASH ================= */
#splash {
    position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: radial-gradient(120% 80% at 50% 0%, #164a3d 0%, var(--green) 55%, var(--green-dark) 100%); color: #fff;
    transition: opacity .4s ease; font-family: var(--font-body);
}
#splash.out { opacity: 0; pointer-events: none; }
#splash img { width: 96px; height: 96px; border-radius: 26px; box-shadow: 0 0 0 4px rgba(255,255,255,.12), 0 24px 60px -20px rgba(0,0,0,.7); animation: splash-pop .6s cubic-bezier(.2,.9,.3,1.3); }
#splash .splash-name { font-family: var(--font-display); font-size: 2rem; letter-spacing: .08em; margin-top: 1rem; }
#splash .splash-tag { font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; color: var(--peach); font-weight: 700; margin-top: .2rem; }
#splash .splash-bar { width: 140px; height: 3px; background: rgba(255,255,255,.14); border-radius: 999px; margin-top: 1.6rem; overflow: hidden; }
#splash .splash-bar i { display: block; height: 100%; width: 40%; background: var(--orange); border-radius: 999px; animation: splash-slide 1.1s ease-in-out infinite; }
@keyframes splash-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes splash-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

/* ================= MENU SECTIONS / SPECIALS / WHY ================= */
.menu-section { margin-top: 1.6rem; }
.menu-section-title { font-size: 1.7rem; }
.meal-card.special { border-color: rgba(240,122,16,.45); box-shadow: 0 0 0 1px rgba(240,122,16,.25), var(--shadow-lift); }
.special-ribbon {
    position: absolute; left: .7rem; top: .7rem; background: linear-gradient(180deg, #f6892a, var(--orange)); color: #fff;
    font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 999px;
    display: inline-flex; align-items: center; gap: .3rem; box-shadow: 0 6px 14px -6px rgba(240,122,16,.9);
}
.special-ribbon svg { width: 12px; height: 12px; }
.why-strip { margin-top: 2rem; background: var(--green); color: #fff; border-radius: 22px; padding: 1.6rem 1.4rem; position: relative; overflow: hidden; }
.why-strip::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(240,122,16,.35), transparent 65%); }
.why-strip .eyebrow { color: var(--peach); }
.why-text { font-family: var(--font-display); font-size: clamp(1.4rem, 3.4vw, 2rem); letter-spacing: .03em; line-height: 1.15; margin: .4rem 0 1rem; max-width: 780px; position: relative; z-index: 1; }
.why-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .82rem; color: rgba(255,255,255,.85); position: relative; z-index: 1; }
.why-facts span { display: inline-flex; align-items: center; gap: .4rem; }
.why-facts svg { width: 15px; height: 15px; color: var(--peach); }

/* ================= CHECKOUT: DAY CHIPS / RECEIPT ================= */
.day-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.day-chip {
    display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-width: 130px;
    border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: .6rem .8rem; cursor: pointer;
    font-family: var(--font-body); transition: all .15s; text-align: left;
}
.day-chip:hover { border-color: var(--fresh); transform: translateY(-1px); }
.day-chip.active { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 8px 18px -8px rgba(14,52,43,.7); }
.day-chip .d-day { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: .04em; line-height: 1; }
.day-chip .d-date { font-weight: 700; font-size: .82rem; }
.day-chip .d-cut { font-size: .64rem; color: var(--muted); }
.day-chip.active .d-cut { color: var(--peach); }
.receipt { max-width: 600px; margin: 1.2rem auto; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lift); background: #fff; }
.receipt-top { background: radial-gradient(120% 100% at 50% 0%, #164a3d, var(--green)); color: #fff; padding: 2rem 1.4rem 1.6rem; text-align: center; }
.receipt-top .big-check svg { color: #fff; }
.receipt-body { padding: 1.3rem 1.4rem 1.5rem; }
.receipt-line { padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.receipt-sub { padding: .3rem 0; font-size: .82rem; color: var(--muted); }
.receipt-total { padding-top: .6rem; margin-top: .3rem; border-top: 2px solid var(--green); }
.receipt-total .display { font-size: 1.5rem; }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin: 0 0 1.1rem; }
.timeline .step { text-align: center; position: relative; }
.timeline .step i { display: block; width: 26px; height: 26px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); margin: 0 auto .35rem; }
.timeline .step.done i { background: var(--fresh); border-color: var(--fresh); box-shadow: 0 0 0 4px rgba(86,158,40,.18); }
.timeline .step b { display: block; font-size: .78rem; color: var(--green); }
.timeline .step span { font-size: .68rem; color: var(--muted); }
.timeline .step:not(:last-child)::after { content: ""; position: absolute; top: 12px; left: calc(50% + 16px); right: calc(-50% + 16px); height: 2px; background: var(--line); }

/* ================= PREFERENCES / SETTINGS ================= */
.pref-row { display: flex; align-items: flex-start; gap: .7rem; padding: .55rem 0; border-bottom: 1px solid var(--line); text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink); font-size: .88rem; cursor: pointer; }
.pref-row:last-of-type { border-bottom: 0; }
.pref-row input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--fresh); }
.pref-row b { display: block; }
.pref-row small { display: block; color: var(--muted); font-size: .74rem; margin-top: .1rem; }
.day-toggle { display: flex; gap: .35rem; flex-wrap: wrap; }
.day-toggle button { flex: 1; min-width: 44px; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: .5rem .3rem; font-family: var(--font-body); font-weight: 700; font-size: .78rem; color: var(--muted); cursor: pointer; transition: all .15s; }
.day-toggle button.on { background: var(--green); border-color: var(--green); color: #fff; }
.template-grid { display: flex; flex-direction: column; }
.template-row { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .86rem; flex-wrap: wrap; }
.template-row:last-child { border-bottom: 0; }
.log-row { display: grid; grid-template-columns: 90px 1fr; gap: .1rem .6rem; padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: .74rem; }
.log-row > :nth-child(3), .log-row > :nth-child(4) { grid-column: 2; }
.log-row.fail > :nth-child(4) { color: var(--red); }

/* ================= NEWSLETTER ================= */
.editor-shell { border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.editor-shell .ql-toolbar.ql-snow { border: 0; border-bottom: 1px solid var(--line); background: var(--bg); font-family: var(--font-body); }
.editor-shell .ql-container.ql-snow { border: 0; font-family: var(--font-body); font-size: .95rem; min-height: 220px; }
.editor-shell .ql-editor { min-height: 220px; line-height: 1.55; }
.editor-shell .ql-editor h2, .editor-shell .ql-editor h3 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .03em; color: var(--green); }
.editor-shell.locked { opacity: .7; }
.email-preview { width: 100%; height: 720px; border: 1px solid var(--line); border-radius: 14px; background: #f3f6f2; }
.inbox-line { background: var(--bg); border-radius: 10px; padding: .5rem .8rem; font-size: .84rem; margin-bottom: .7rem; }
.campaign-row { display: flex; align-items: center; gap: .6rem; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.campaign-row:last-child { border-bottom: 0; }
.campaign-row.active b { color: var(--orange); }
.campaign-row .muted { font-size: .74rem; margin-top: .15rem; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.audience-list { max-height: 360px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.audience-row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .5rem .7rem; border-bottom: 1px solid var(--line); font-size: .84rem; }
.audience-row:last-child { border-bottom: 0; }
.audience-row .muted { font-size: .7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ================= FOOTER ================= */
.site-footer { background: var(--green-dark); color: rgba(255,255,255,.8); margin-top: 2rem; padding: 2.2rem 1rem 1.2rem; padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .site-footer { padding-bottom: 1.4rem; } }
.footer-inner { max-width: 1140px; margin: 0 auto; display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand img { width: 46px; height: 46px; border-radius: 12px; float: left; margin-right: .7rem; box-shadow: 0 0 0 2px rgba(255,255,255,.14); }
.footer-brand .name { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: .06em; color: #fff; line-height: 1.1; }
.footer-brand .tag { font-size: .58rem; letter-spacing: .2em; color: var(--peach); font-weight: 700; text-transform: uppercase; }
.footer-tagline { clear: both; font-weight: 700; color: #fff; margin: 1rem 0 .4rem; font-size: .92rem; }
.footer-why { font-size: .8rem; line-height: 1.55; max-width: 420px; color: rgba(255,255,255,.7); }
.footer-col .eyebrow { color: var(--peach); margin-bottom: .6rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; font-size: .82rem; }
.footer-col li { display: flex; align-items: flex-start; gap: .5rem; }
.footer-col li svg { width: 15px; height: 15px; color: var(--fresh); flex: none; margin-top: 2px; }
.footer-col a { color: #fff; text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-social { display: flex; align-items: center; gap: .6rem; margin-top: .9rem; font-size: .8rem; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; text-decoration: none; transition: background .15s; }
.footer-social a:hover { background: var(--orange); }
.footer-social a:last-child { width: auto; padding: 0 .7rem; font-weight: 600; }
.footer-social svg { width: 17px; height: 17px; }
.footer-legal { max-width: 1140px; margin: 1.6rem auto 0; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .72rem; color: rgba(255,255,255,.55); }
.footer-legal a { color: rgba(255,255,255,.75); text-decoration: none; }
.page { padding-bottom: 1.5rem; }

.plain-editor { min-height: 220px; padding: .8rem 1rem; outline: none; line-height: 1.55; }

/* ================= SKINNY MINI ================= */
.size-pick { display: flex; gap: .4rem; margin: .1rem 0 .7rem; }
.size-pill {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px;
    border: 1.5px solid var(--line); background: #fff; border-radius: 12px;
    padding: .45rem .6rem; cursor: pointer; font-family: var(--font-body); transition: all .15s;
}
.size-pill .s-name { font-weight: 700; font-size: .8rem; color: var(--ink); }
.size-pill .s-price { font-size: .62rem; color: var(--muted); font-weight: 600; }
.size-pill:hover { border-color: var(--orange); transform: translateY(-1px); }
.size-pill.active { background: linear-gradient(180deg, #f6892a, var(--orange)); border-color: var(--orange); box-shadow: 0 6px 14px -6px rgba(240,122,16,.7); }
.size-pill.active .s-name { color: #fff; }
.size-pill.active .s-price { color: #ffe1c2; }
.skinny-tag {
    display: inline-block; background: var(--orange-soft); color: var(--orange-dark);
    font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    border-radius: 999px; padding: .12rem .5rem; vertical-align: 1px;
}
/* ================= LOGS ================= */
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .74rem; }
.log-item { padding: .55rem .4rem; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 8px; }
.log-item:hover { background: var(--bg); }
.log-item.open { background: var(--bg); }
.log-item:last-child { border-bottom: 0; }
.log-line { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; font-size: .84rem; }
.log-msg { font-size: .78rem; color: var(--ink); margin: .2rem 0 0 .1rem; overflow-wrap: anywhere; }
.log-detail { margin-top: .6rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .7rem .8rem; cursor: default; }
.log-detail pre { margin: .6rem 0 0; font-size: .72rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 420px; overflow: auto; background: var(--bg); border-radius: 8px; padding: .6rem .7rem; }
.log-detail .kv { grid-template-columns: 70px 1fr; }
.empty.small { padding: 1.4rem; }
.empty.small svg { width: 30px; height: 30px; }
/* ================= COOK DAY PREP DETAIL ================= */
.prep-block { border-radius: 12px; }
.prep-block.open { background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--orange); }
.prep-block.open > .check-item { background: transparent; }
.prep-detail { padding: .2rem .8rem .8rem 2.6rem; }
.prep-head { display: flex; align-items: center; gap: .35rem; font-size: .8rem; padding: .3rem 0 .45rem; border-bottom: 1px dashed var(--line); margin-bottom: .3rem; }
.orange-text { color: var(--orange); font-weight: 700; }
.prep-row { display: grid; grid-template-columns: 1fr auto auto; gap: .2rem .8rem; align-items: baseline; padding: .28rem 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.prep-row:last-child { border-bottom: 0; }
.prep-row .name { font-weight: 600; }
.prep-row .name .muted { font-weight: 400; font-size: .74rem; }
.prep-row .raw { font-family: var(--font-display); font-size: 1.05rem; color: var(--green); letter-spacing: .03em; white-space: nowrap; }
.prep-row .served { font-size: .74rem; white-space: nowrap; min-width: 6rem; text-align: right; }
@media (max-width: 640px) { .prep-row { grid-template-columns: 1fr auto; } .prep-row .served { grid-column: 1 / -1; text-align: left; min-width: 0; } .prep-detail { padding-left: .8rem; } }
/* ================= GETTING STARTED ================= */
.onboarding { border: 2px solid var(--fresh); background: linear-gradient(135deg, #fff 0%, var(--fresh-soft) 100%); }
.onboarding-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.onboarding-head h2 { font-family: var(--font-display); font-size: 1.7rem; letter-spacing: .02em; margin: .1rem 0 .3rem; }
.onboarding-head p { max-width: 60ch; font-size: .86rem; }
.onboarding-ring { --pct: 0; flex: 0 0 auto; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--fresh) calc(var(--pct) * 1%), #e3ebe0 0); position: relative; }
.onboarding-ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #fff; }
.onboarding-ring span { position: relative; font-family: var(--font-display); font-size: 1.15rem; color: var(--green); letter-spacing: .03em; }
.onboarding-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: .5rem; }
.onboarding-step { display: grid; grid-template-columns: 30px 1fr auto; gap: .6rem; align-items: center; padding: .6rem .7rem; border-radius: 12px;
  background: #fff; border: 1px solid var(--line); text-decoration: none; color: inherit; transition: transform .12s, box-shadow .12s; }
.onboarding-step:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(14,52,43,.08); text-decoration: none; }
.onboarding-step .badge { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--green);
  font-family: var(--font-display); font-size: .95rem; letter-spacing: .04em; border: 1.5px solid var(--line); }
.onboarding-step .badge svg { width: 15px; height: 15px; color: #fff; }
.onboarding-step.done .badge { background: var(--fresh); border-color: var(--fresh); }
.onboarding-step .title { font-weight: 700; font-size: .9rem; }
.onboarding-step .detail { font-size: .76rem; color: var(--muted); line-height: 1.35; }
.onboarding-step .cta { font-size: .74rem; font-weight: 700; color: var(--orange); white-space: nowrap; display: flex; align-items: center; gap: .2rem; }
.onboarding-step .cta svg { width: 14px; height: 14px; }
.onboarding-step.done { opacity: .72; }
.onboarding-step.done .title { text-decoration: line-through; }
.onboarding-step.done .cta { color: var(--fresh); }
.pw-focus { border: 2px solid var(--fresh); box-shadow: 0 0 0 6px var(--fresh-soft); }
.reset-box { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: .8rem; padding: .7rem .8rem; border: 1.5px dashed var(--red); border-radius: 12px; }
.reset-box > div:first-child { flex: 1; min-width: 260px; }
/* ================= LOGO: clean circle (the PNG is a transparent round badge; no square ring) ================= */
.brand img, .footer-brand img, #splash img { border-radius: 50%; box-shadow: 0 6px 16px -8px rgba(0,0,0,.55); background: transparent; }

/* ================= PICKUP LOCATIONS ================= */
.pickup-list { display: grid; gap: .5rem; }
.pickup-option { display: grid; grid-template-columns: 22px 1fr; gap: .6rem; align-items: start; text-align: left; width: 100%;
  background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: .7rem .8rem; cursor: pointer; font: inherit; color: inherit; transition: all .15s; }
.pickup-option:hover { border-color: var(--fresh); }
.pickup-option .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); margin-top: .15rem; transition: all .15s; }
.pickup-option.active { border-color: var(--fresh); background: var(--fresh-soft); box-shadow: 0 0 0 3px rgba(86,158,40,.12); }
.pickup-option.active .dot { border-color: var(--fresh); background: radial-gradient(circle, var(--fresh) 0 45%, #fff 50%); }
.pickup-option .body b { font-size: .95rem; }
.pickup-option .body .city { color: var(--muted); font-weight: 600; font-size: .82rem; }
.pickup-option .body small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.35; }
.pickup-option .body small.when { color: var(--green); font-weight: 600; margin-top: .15rem; }
.pickup-option .body small.when svg { width: 13px; height: 13px; vertical-align: -2px; }
.pickup-row { display: flex; justify-content: space-between; align-items: flex-start; gap: .8rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.pickup-row.off { opacity: .55; }
.pickup-row svg { width: 13px; height: 13px; vertical-align: -2px; }
.pickup-edit { margin-top: .8rem; padding: .9rem; border: 2px solid var(--orange); border-radius: 14px; }
.group-head { display: flex; align-items: center; gap: .4rem; font-family: var(--font-display); letter-spacing: .05em; font-size: 1rem; color: var(--green); margin: .7rem 0 .15rem; }
.group-head:first-child { margin-top: 0; }
.group-head svg { width: 16px; height: 16px; }
.group-head .chip { font-family: var(--font-body, inherit); letter-spacing: 0; margin-left: auto; }
.footer-spots { display: block; margin: .15rem 0 0 1.5rem; }
.footer-spots span { display: block; opacity: .9; }

/* ---- Meal plans ---- */
.plan-hero { background: linear-gradient(135deg, var(--green) 0%, var(--green-2) 60%, #1f5c4a 100%); color: #fff; border-radius: var(--radius); padding: 2.2rem 1.8rem; margin-bottom: 1.2rem; box-shadow: var(--shadow-lift); }
.plan-hero h1 { margin: .2rem 0 .4rem; }
.plan-hero p { color: rgba(255,255,255,.85); max-width: 60ch; margin: 0; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .9rem; }
.plan-card { text-align: left; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s; font: inherit; color: var(--ink); }
.plan-card:hover { transform: translateY(-2px); border-color: var(--fresh); }
.plan-card.active { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft), var(--shadow-lift); }
.plan-plates { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--green); letter-spacing: .02em; }
.plan-plates small { font-family: var(--font-body); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-left: .3rem; }
.plan-price { font-family: var(--font-display); font-size: 1.8rem; color: var(--orange); margin-top: .35rem; line-height: 1; }
.plan-price small { font-family: var(--font-body); font-size: .72rem; font-weight: 600; color: var(--muted); margin-left: .25rem; }
.plan-cycle { font-size: .78rem; color: var(--muted); margin-top: .3rem; }
.plan-blurb { font-size: .84rem; margin-top: .5rem; }
.how-list { margin: 0; padding-left: 1.2rem; font-size: .9rem; line-height: 1.55; }
.how-list li { margin-bottom: .55rem; }
.how-list li::marker { color: var(--orange); font-weight: 800; }
.allergen-grid { display: flex; flex-wrap: wrap; gap: .4rem; }
.allergen-chip { font: inherit; font-size: .82rem; font-weight: 600; padding: .4rem .8rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.allergen-chip.on { background: var(--green); border-color: var(--green); color: #fff; }
.pref-row.consent small a { color: var(--green); font-weight: 700; }
.terms-card h2 { margin: 1rem 0 .3rem; font-size: 1.2rem; }
.terms-card h2:first-child { margin-top: 0; }
.terms-card p { font-size: .92rem; line-height: 1.6; margin: 0 0 .7rem; }
.plan-banner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--green); color: #fff; border-radius: var(--radius); padding: 1rem 1.3rem; margin: 0 0 1.4rem; text-decoration: none; box-shadow: var(--shadow); }
.plan-banner:hover { background: var(--green-2); }
.plan-banner-text b { display: block; font-size: 1.02rem; margin: .1rem 0; }
.plan-banner-text span { font-size: .8rem; color: rgba(255,255,255,.8); }
.plan-banner .btn { flex: none; }
.plan-nudge { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.plan-nudge h2 { margin: .1rem 0 .2rem; }
.plan-nudge p { margin: 0; font-size: .86rem; }

/* account plan panel */
.plan-panel .plan-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .6rem; margin-top: .2rem; }
.plan-panel .plan-stats > div { background: var(--bg); border-radius: var(--radius-sm); padding: .6rem .75rem; display: flex; flex-direction: column; }
.plan-panel .plan-stats small { font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.plan-panel .plan-stats b { font-size: 1.05rem; margin-top: .1rem; }
.plan-panel .plan-stats span { font-size: .72rem; color: var(--muted); }
.plan-panel .plan-stats em { font-size: .72rem; color: var(--orange); font-style: normal; font-weight: 700; }
.plan-sub { margin: 1.1rem 0 .5rem; font-size: .95rem; }
.week-list { display: flex; flex-direction: column; gap: .5rem; }
.week-row { display: grid; grid-template-columns: 58px 1fr auto; gap: .7rem; align-items: start; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); }
.week-row.open { border-color: var(--orange); background: #fffaf4; }
.week-row.dim { opacity: .6; }
.week-date { display: flex; flex-direction: column; line-height: 1.1; }
.week-date b { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: .04em; color: var(--green); }
.week-date span { font-size: .72rem; color: var(--muted); }
.week-body { min-width: 0; font-size: .84rem; }
.week-picks { margin-top: .25rem; line-height: 1.45; }
.week-actions { display: flex; flex-direction: column; gap: .3rem; align-items: flex-end; }
.plan-more { margin-top: .9rem; border-top: 1px solid var(--line); padding-top: .6rem; }
.plan-more summary { cursor: pointer; font-weight: 700; font-size: .88rem; display: flex; align-items: center; gap: .4rem; }
.plan-more summary svg { width: 15px; height: 15px; }
.plan-settings { margin-top: .8rem; display: grid; gap: .3rem; }
.invoice-list { margin-top: .6rem; }
.invoice-row { display: flex; justify-content: space-between; gap: .8rem; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.invoice-row:last-child { border-bottom: 0; }

/* picks page */
.pick-row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.pick-info { display: flex; align-items: center; gap: .8rem; min-width: 0; flex: 1; }
.pick-info img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; }
.pick-info > div { min-width: 0; display: flex; flex-direction: column; }
.pick-info .muted { font-size: .76rem; }
.pick-delta { font-size: .72rem; font-weight: 700; color: var(--fresh); }
.pick-delta.up { color: var(--orange); }
.pick-delta.down { color: var(--fresh); }
.pick-steppers { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.stepper.skinny { background: var(--fresh-soft); }
.stepper.skinny .skinny-tag { margin: 0 .2rem 0 .4rem; }
.pick-options { padding: 0 0 .4rem 1rem; border-bottom: 1px solid var(--line); margin-bottom: .2rem; }
.pick-option { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .35rem 0; font-size: .86rem; }
.plate-meter { height: 8px; background: var(--bg); border-radius: 999px; overflow: hidden; margin-bottom: .5rem; }
.plate-meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--fresh), var(--orange)); border-radius: 999px; transition: width .3s; }

/* checkout promo */
.promo-box { padding: .3rem 0; border-bottom: 1px solid var(--line); }
.promo-box input { padding: .5rem .7rem; font-size: .86rem; }

/* owner: subscribers + settings */
.grid.sidebar-wide { grid-template-columns: minmax(0, 1.4fr) minmax(360px, 1fr); }
.sub-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.sub-table th { text-align: left; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: .5rem 1rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sub-table td { padding: .55rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.sub-table tbody tr { cursor: pointer; }
.sub-table tbody tr:hover { background: var(--bg); }
.sub-table tbody tr.selected { background: var(--fresh-soft); }
.plan-edit-row { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; padding: .35rem 0; border-bottom: 1px solid var(--line); }
.plan-edit-row input { padding: .45rem .6rem; font-size: .85rem; }
.upcharge-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .5rem; margin-bottom: .4rem; }
.upcharge-grid > div { display: flex; align-items: center; justify-content: space-between; gap: .4rem; background: var(--bg); border-radius: var(--radius-sm); padding: .35rem .6rem; font-size: .82rem; }
.upcharge-grid input { width: 70px; padding: .35rem .5rem; font-size: .84rem; }
.promo-row { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.promo-row.dim { opacity: .55; }
.promo-new { margin-top: .8rem; padding-top: .6rem; border-top: 1px dashed var(--line); }
@media (max-width: 899px) {
    .grid.sidebar-wide { grid-template-columns: 1fr; }
    .week-row { grid-template-columns: 50px 1fr; }
    .week-actions { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; }
    .sub-table th:nth-child(n+5), .sub-table td:nth-child(n+5) { display: none; }
    .plan-banner { flex-direction: column; align-items: flex-start; }
}

/* ---- kitchen search ---- */
.search-bar { display: flex; align-items: center; gap: .5rem; background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; padding: .3rem .5rem .3rem .9rem; margin-bottom: .8rem; }
.search-bar:focus-within { border-color: var(--fresh); box-shadow: 0 0 0 3px var(--fresh-soft); }
.search-bar > svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.search-bar input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .45rem 0; font-size: .95rem; outline: none; box-shadow: none; }
.search-bar .chip { flex: none; }
.card .search-bar { background: var(--bg); }
.search-hits { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin-top: -.3rem; }
.search-hits button { display: flex; align-items: center; gap: .5rem; text-align: left; font: inherit; font-size: .9rem; font-weight: 600; padding: .55rem .7rem; border: 0; border-bottom: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.search-hits button:last-child { border-bottom: 0; }
.search-hits button:hover { background: var(--fresh-soft); }
.search-hits button svg { width: 14px; height: 14px; color: var(--fresh); }
.search-hits .muted { font-weight: 500; font-size: .76rem; margin-left: auto; }

/* ---- allergen / standardized-recipe disclaimer (Lee 2026-10-07) ---- */
.allergen-note { text-align: center; font-size: .7rem; font-weight: 600; letter-spacing: .06em; color: var(--muted); margin: 1.4rem auto 0; max-width: 62ch; line-height: 1.5; }
