/* 90s POS — design tokens
   Warm café palette over soft colour fields so the frosted glass has something to refract.
   Shop branding: Theming/BrandTheme.cs re-derives every token in the "brand" groups below from the shop's
   primary + secondary colours and overrides them in a <style> block. Keep the two lists in sync.
   Status colours (leaf / amber / tomato / sky) and tier-card metals never change. */
:root {
    /* brand: neutrals, tinted by the primary hue */
    --bg: #f2eadf;
    --ink: #2a1c13;
    --ink-rgb: 42, 28, 19;      /* scrims, toasts, tooltips */
    --ink-2: #5a473a;
    --ink-3: #8b7767;
    --on-ink: #fff8f0;          /* text on ink */
    --line-rgb: 74, 48, 30;
    --line: rgba(var(--line-rgb), .12);
    --shade-rgb: 70, 40, 20;    /* drop shadows */
    --umber-rgb: 90, 60, 40;    /* quiet fills */
    --edge-rgb: 120, 80, 50;    /* field borders */
    --paper-rgb: 255, 252, 248; /* glass */
    --cream-rgb: 255, 250, 245; /* modals, sheets */

    /* brand: primary */
    --accent: #b5572a;          /* burnt caramel */
    --accent-rgb: 181, 87, 42;
    --accent-strong: #9a4520;   /* accent as text: always ≥ 4.5:1 on --bg */
    --accent-soft: rgba(var(--accent-rgb), .12);
    --accent-hi: #c4663a;       /* primary button gradient */
    --accent-shade: #9a4520;
    --accent-shade-rgb: 154, 69, 32;
    --accent-hover-hi: #ca6e42;
    --accent-hover-lo: #8f3f1c;
    --on-accent: #fff;          /* text on primary buttons */
    --avatar-hi: #c98055;
    --avatar-lo: #8f4b2c;
    --mark-line: #f6d7bd;

    /* brand: ambient colour fields (2 = secondary) */
    --wash-1: #f7d9bd;
    --wash-2: #dfe6d0;
    --wash-3: #efc9b3;
    --wash-4: #e6dccb;
    --blob-1: #f1b98f;
    --blob-2: #c9d8b9;
    --blob-3: #e9a98a;

    --leaf: #3f7a56;            /* ready / ok */
    --leaf-soft: rgba(63, 122, 86, .14);
    --amber: #c98a12;           /* warning */
    --amber-soft: rgba(201, 138, 18, .16);
    --tomato: #c43d2b;          /* critical */
    --tomato-soft: rgba(196, 61, 43, .14);
    --sky: #3a6c96;             /* gcash / info */
    --sky-soft: rgba(58, 108, 150, .13);

    --glass: rgba(var(--paper-rgb), .46);
    --glass-strong: rgba(var(--paper-rgb), .70);
    --glass-edge: rgba(255, 255, 255, .75);
    --glass-blur: blur(22px) saturate(175%);
    --shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 0 0 1px rgba(255, 255, 255, .35) inset, 0 18px 40px -22px rgba(var(--shade-rgb), .45);
    --shadow-lift: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 24px 50px -20px rgba(var(--shade-rgb), .5);

    --r-xl: 30px;
    --r-lg: 24px;
    --r-md: 18px;
    --r-sm: 12px;
    --pill: 999px;

    --font: ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
    --tap: 48px;
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    font-size: 16px;
    line-height: 1.45;
    overscroll-behavior-y: none;
}

h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 750; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 .8em; }
a { color: var(--accent-strong); }
small, .muted { color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }

/* ---------- Ambient background ---------- */
.ambient {
    position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
    background:
        radial-gradient(60vmax 50vmax at 8% 12%, var(--wash-1) 0%, transparent 60%),
        radial-gradient(50vmax 45vmax at 92% 18%, var(--wash-2) 0%, transparent 62%),
        radial-gradient(55vmax 50vmax at 70% 95%, var(--wash-3) 0%, transparent 60%),
        radial-gradient(45vmax 40vmax at 15% 90%, var(--wash-4) 0%, transparent 60%),
        var(--bg);
}
.ambient .blob {
    position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55;
    animation: blob-drift 38s ease-in-out infinite alternate;
}
.ambient .blob.b1 { width: 38vmax; height: 38vmax; left: -8vmax; top: 30vh; background: var(--blob-1); }
.ambient .blob.b2 { width: 30vmax; height: 30vmax; right: -6vmax; top: -6vmax; background: var(--blob-2); animation-duration: 46s; }
.ambient .blob.b3 { width: 26vmax; height: 26vmax; right: 18vw; bottom: -10vmax; background: var(--blob-3); animation-duration: 52s; }

.ambient .art { position: absolute; inset: 0; width: 100%; height: 100%; }
.ambient .art .piece {
    fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
    opacity: .085;
    transform-box: fill-box; transform-origin: center;
    animation: float 24s ease-in-out infinite;
}
/* pieces sit inside positioned <g>s (CSS transforms would override the SVG transform attribute) */
.ambient .art > g:nth-of-type(3n) .piece { animation-duration: 31s; animation-delay: -7s; }
.ambient .art > g:nth-of-type(3n+1) .piece { animation-duration: 27s; animation-delay: -15s; }
.ambient .art .steam { animation: steam 6s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(6px, -14px) rotate(3deg); }
}
@keyframes steam {
    0%, 100% { opacity: .2; transform: translateY(0) scaleY(1); }
    50% { opacity: 1; transform: translateY(-4px) scaleY(1.08); }
}
@keyframes blob-drift {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(6vw, -4vh) scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
    .ambient *, .ambient .art .piece { animation: none !important; }
}

/* ---------- Glass ---------- */
.glass, .glass-strong {
    position: relative;
    background: var(--glass);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-edge);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
}
.glass-strong { background: var(--glass-strong); }
/* specular sheen along the top edge */
.glass::before, .glass-strong::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: linear-gradient(170deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 38%);
    mix-blend-mode: soft-light;
}
.pad { padding: 18px; }
.pad-lg { padding: 26px; }

/* ---------- Layout helpers ---------- */
.page { max-width: 1180px; margin: 0 auto; padding: 20px 16px 80px; }
.row { display: flex; gap: 12px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack.tight { gap: 6px; }
.grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: 14px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.divider { height: 1px; background: var(--line); margin: 10px 0; border: 0; }

/* ---------- Buttons ---------- */
.btn {
    appearance: none; border: 1px solid rgba(255, 255, 255, .7);
    min-height: var(--tap); padding: 0 20px; border-radius: var(--pill);
    font: inherit; font-weight: 700; font-size: .98rem; color: var(--ink);
    background: rgba(255, 255, 255, .55);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 6px 16px -10px rgba(var(--shade-rgb), .5);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: transform .12s ease, background .2s ease, box-shadow .2s ease;
    touch-action: manipulation; user-select: none;
}
.btn:hover { background: rgba(255, 255, 255, .75); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn:focus-visible, .field:focus-visible, .tile:focus-visible { outline: 3px solid rgba(var(--accent-rgb), .45); outline-offset: 2px; }
.btn-primary { background: linear-gradient(180deg, var(--accent-hi), var(--accent-shade)); color: var(--on-accent); border-color: rgba(255, 255, 255, .25); box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 10px 22px -10px rgba(var(--accent-shade-rgb), .8); }
.btn-primary:hover { background: linear-gradient(180deg, var(--accent-hover-hi), var(--accent-hover-lo)); }
.btn-ok { background: linear-gradient(180deg, #4a8a63, #356a49); color: #fff; border-color: rgba(255, 255, 255, .25); }
.btn-ok:hover { background: linear-gradient(180deg, #519570, #2f6142); }
.btn-danger { color: var(--tomato); }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.btn-ghost:hover { background: rgba(255, 255, 255, .45); }
.btn-lg { min-height: 60px; font-size: 1.1rem; padding: 0 26px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn-icon { width: var(--tap); padding: 0; }

/* ---------- Forms ---------- */
label.lbl { display: block; font-size: .82rem; font-weight: 700; color: var(--ink-2); margin: 0 0 6px 4px; }
.field {
    width: 100%; min-height: var(--tap); padding: 10px 16px;
    font: inherit; color: var(--ink);
    background: rgba(255, 255, 255, .62); border: 1px solid rgba(var(--edge-rgb), .16);
    border-radius: var(--r-sm); box-shadow: 0 1px 2px rgba(var(--shade-rgb), .06) inset;
}
textarea.field { min-height: 80px; resize: vertical; }
select.field { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.check { display: inline-flex; gap: 10px; align-items: center; min-height: 40px; cursor: pointer; font-weight: 600; }
.check input { width: 22px; height: 22px; accent-color: var(--accent); }
.form-error { color: var(--tomato); font-weight: 600; font-size: .92rem; }
.validation-message { color: var(--tomato); font-size: .85rem; }

/* segmented control */
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: var(--pill); background: rgba(var(--umber-rgb), .08); flex-wrap: wrap; }
.seg button { appearance: none; border: 0; background: transparent; font: inherit; font-weight: 700; color: var(--ink-2); min-height: 40px; padding: 0 16px; border-radius: var(--pill); cursor: pointer; }
.seg button.on { background: rgba(255, 255, 255, .9); color: var(--ink); box-shadow: 0 4px 12px -6px rgba(var(--shade-rgb), .45); }

/* ---------- Chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--pill); font-size: .78rem; font-weight: 750; background: rgba(var(--umber-rgb), .08); color: var(--ink-2); white-space: nowrap; }
.chip.ok { background: var(--leaf-soft); color: var(--leaf); }
.chip.warn { background: var(--amber-soft); color: #8a5c00; }
.chip.crit { background: var(--tomato-soft); color: var(--tomato); }
.chip.info { background: var(--sky-soft); color: var(--sky); }
.chip.accent { background: var(--accent-soft); color: var(--accent-strong); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ---------- Top bar ---------- */
.topbar {
    position: sticky; top: 10px; z-index: 20; margin: 10px 12px 0;
    display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 18px; border-radius: var(--pill);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.brand .mark { width: 30px; height: 30px; }
.brand .mark .m-bg { fill: var(--ink); }
.brand .mark .m-line { stroke: var(--mark-line); }
.brand .mark .m-accent { stroke: var(--accent-hi); }
/* customer logos are often wordmarks: hold the height, let the width follow */
.brand img.mark.logo { width: auto; max-width: 150px; height: 34px; object-fit: contain; }
.brand small { font-weight: 650; color: var(--ink-3); letter-spacing: 0; }

/* ---------- Menu tiles (POS + customer) ---------- */
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.tile {
    appearance: none; text-align: left; font: inherit; color: inherit; cursor: pointer;
    border-radius: var(--r-md); padding: 14px 14px 12px; min-height: 104px;
    display: flex; flex-direction: column; justify-content: space-between; gap: 8px;
    background: rgba(255, 255, 255, .5); border: 1px solid rgba(255, 255, 255, .75);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 10px 24px -18px rgba(var(--shade-rgb), .6);
    transition: transform .12s ease, background .2s;
    touch-action: manipulation;
}
.tile:hover { background: rgba(255, 255, 255, .72); }
.tile:active { transform: scale(.97); }
.tile .name { font-weight: 750; line-height: 1.2; }
.tile .price { font-weight: 800; color: var(--accent-strong); font-variant-numeric: tabular-nums; }
.tile.soldout { opacity: .45; pointer-events: none; }
.tile .desc { font-size: .8rem; color: var(--ink-3); line-height: 1.3; }

.cat-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs button { flex: none; }

/* ---------- Lists ---------- */
.list { display: flex; flex-direction: column; }
.list > .li { display: flex; gap: 12px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.list > .li:last-child { border-bottom: 0; }
.qty { display: inline-flex; align-items: center; gap: 4px; }
.qty button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .7); font: inherit; font-weight: 800; cursor: pointer; }
.qty span { min-width: 26px; text-align: center; font-weight: 800; }

table.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.tbl th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); font-weight: 750; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl td.r, table.tbl th.r { text-align: right; }
.tbl-wrap { overflow-x: auto; }

/* ---------- Queue / ticket cards ---------- */
.qno {
    display: inline-grid; place-items: center; min-width: 52px; height: 52px; padding: 0 10px;
    border-radius: 16px; font-weight: 900; font-size: 1.5rem; font-variant-numeric: tabular-nums;
    background: var(--ink); color: var(--on-ink); letter-spacing: -.02em;
}
.qno.sm { min-width: 40px; height: 40px; font-size: 1.1rem; border-radius: 12px; }
.qno.xl { min-width: 110px; height: 110px; font-size: 3.4rem; border-radius: 30px; }

.ticket {
    appearance: none; font: inherit; color: inherit; text-align: left; width: 100%;
    border-radius: var(--r-md); padding: 14px; cursor: pointer;
    background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .8);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 12px 28px -20px rgba(var(--shade-rgb), .7);
    display: flex; flex-direction: column; gap: 8px;
    transition: transform .12s, box-shadow .2s, background .2s;
}
.ticket:hover { background: rgba(255, 255, 255, .75); }
.ticket.selected { outline: 3px solid var(--accent); outline-offset: -1px; background: rgba(255, 255, 255, .85); }
.ticket.warn { box-shadow: 0 0 0 2px var(--amber) inset, 0 12px 28px -20px rgba(var(--shade-rgb), .7); }
.ticket.crit { box-shadow: 0 0 0 2px var(--tomato) inset, 0 12px 28px -18px rgba(196, 61, 43, .7); animation: pulse-crit 2.4s ease-in-out infinite; }
@keyframes pulse-crit { 50% { box-shadow: 0 0 0 4px rgba(196, 61, 43, .55) inset, 0 12px 28px -18px rgba(196, 61, 43, .8); } }
@media (prefers-reduced-motion: reduce) { .ticket.crit { animation: none; } }
.ticket .cust { font-size: 1.25rem; font-weight: 850; letter-spacing: -.01em; }
.ticket .items { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.ticket .items li { display: flex; gap: 8px; align-items: baseline; }
.ticket .items .q { font-weight: 900; min-width: 26px; }
.ticket .items .mod { font-size: .82rem; color: var(--accent-strong); font-weight: 700; }
.timer { font-weight: 800; font-variant-numeric: tabular-nums; }
.timer.warn { color: #8a5c00; }
.timer.crit { color: var(--tomato); }

/* ---------- Station layout ---------- */
.station { display: grid; grid-template-columns: 1fr 300px; gap: 14px; padding: 14px; min-height: calc(100dvh - 70px); }
.station .main { min-width: 0; }
.station .side { display: flex; flex-direction: column; gap: 14px; }
.ticket-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); align-content: start; }
.section-title { display: flex; align-items: center; gap: 10px; margin: 6px 4px 10px; font-weight: 800; font-size: 1.02rem; }
.section-title .count { font-size: .8rem; padding: 2px 9px; border-radius: var(--pill); background: rgba(var(--umber-rgb), .1); }
.empty { padding: 30px 10px; text-align: center; color: var(--ink-3); }
.empty .big { font-size: 2.2rem; margin-bottom: 6px; opacity: .5; }

.person { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .5); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 850; color: #fff; background: linear-gradient(160deg, var(--avatar-hi), var(--avatar-lo)); flex: none; }
.avatar.busy { background: linear-gradient(160deg, #6a9a7b, #3b6a4d); }

/* ---------- POS ---------- */
.pos { display: grid; gap: 12px; padding: 12px; height: calc(100dvh - 72px); }
.pos.mode-both { grid-template-columns: minmax(0, 1fr) 360px 320px; }
.pos.mode-pos { grid-template-columns: minmax(0, 1fr) 380px; }
.pos.mode-app { grid-template-columns: 340px minmax(0, 1fr); }
.pos > section { min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.scroll { overflow-y: auto; min-height: 0; flex: 1; -webkit-overflow-scrolling: touch; }
.cart-total { font-size: 1.9rem; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.keypad .btn { min-height: 54px; font-size: 1.2rem; border-radius: var(--r-sm); }
.proof-img { width: 100%; max-height: 52vh; object-fit: contain; border-radius: var(--r-md); background: rgba(0, 0, 0, .04); }
.prio { border-left: 4px solid var(--sky); }

/* ---------- Kanban ---------- */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; padding: 12px; overflow-x: auto; height: calc(100dvh - 72px); }
.kanban .col { display: flex; flex-direction: column; min-height: 0; padding: 12px; }
.kanban .col .scroll { display: flex; flex-direction: column; gap: 10px; padding: 2px; }
.kanban .card { padding: 12px; border-radius: var(--r-md); background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .85); display: flex; flex-direction: column; gap: 6px; }
.kanban .card.warn { box-shadow: 0 0 0 2px var(--amber) inset; }
.kanban .card.crit { box-shadow: 0 0 0 2px var(--tomato) inset; background: rgba(255, 238, 233, .75); }
.kanban .times { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: .8rem; }
.kanban .times div { padding: 6px 8px; border-radius: 10px; background: rgba(var(--umber-rgb), .06); }
.kanban .times b { display: block; font-size: 1rem; }
.stat-strip { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Modals & sheets ---------- */
.backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(var(--ink-rgb), .28); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: fade .15s ease; }
.modal { width: min(520px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 22px; border-radius: var(--r-xl); background: rgba(var(--cream-rgb), .86); }
.modal.wide { width: min(820px, 100%); }
.sheet-backdrop { place-items: end center; padding: 0; }
.sheet { width: min(640px, 100%); max-height: 92dvh; overflow-y: auto; border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 12px 20px calc(20px + env(safe-area-inset-bottom)); background: rgba(var(--cream-rgb), .9); animation: rise .22s cubic-bezier(.2, .9, .3, 1.05); }
.sheet .grabber { width: 44px; height: 5px; border-radius: 3px; background: rgba(var(--umber-rgb), .25); margin: 0 auto 14px; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }

.scan-box { display: grid; place-items: center; gap: 14px; text-align: center; padding: 10px 0; }
.scan-box .beam { width: 180px; height: 90px; border-radius: 18px; border: 2px dashed rgba(var(--umber-rgb), .3); position: relative; overflow: hidden; }
.scan-box .beam::after { content: ""; position: absolute; left: 8px; right: 8px; height: 2px; background: var(--tomato); box-shadow: 0 0 10px var(--tomato); top: 10%; animation: beam 1.6s ease-in-out infinite alternate; }
@keyframes beam { to { top: 88%; } }
video.cam { width: 100%; border-radius: var(--r-md); background: #000; max-height: 50vh; object-fit: cover; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 200; padding: 12px 20px; border-radius: var(--pill); font-weight: 700; background: rgba(var(--ink-rgb), .9); color: var(--on-ink); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); animation: rise .2s ease; max-width: calc(100vw - 32px); }
.toast.err { background: rgba(160, 40, 25, .94); }

/* ---------- Customer app ---------- */
.app-shell { max-width: 680px; margin: 0 auto; padding: 12px 14px 120px; }
.cart-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 50; width: min(640px, calc(100% - 24px)); display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 20px; border-radius: var(--pill); }
.hero-card { padding: 22px; border-radius: var(--r-xl); }
.sweet-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sweet-picker button { appearance: none; font: inherit; min-height: 52px; border-radius: var(--r-sm); border: 1px solid rgba(var(--edge-rgb), .16); background: rgba(255, 255, 255, .6); cursor: pointer; font-weight: 700; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.sweet-picker button.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.sweet-picker .cubes { display: flex; gap: 2px; }
.sweet-picker .cubes i { width: 7px; height: 7px; border-radius: 2px; background: currentColor; opacity: .25; }
.sweet-picker .cubes i.f { opacity: 1; }
.steps { display: flex; gap: 6px; }
.steps .s { flex: 1; height: 6px; border-radius: 3px; background: rgba(var(--umber-rgb), .12); }
.steps .s.done { background: var(--leaf); }
.steps .s.now { background: linear-gradient(90deg, var(--leaf), var(--amber)); }
.qr { width: 200px; height: 200px; padding: 10px; border-radius: 22px; background: #fff; box-shadow: 0 10px 30px -14px rgba(var(--shade-rgb), .5); }
.qr svg { width: 100%; height: 100%; display: block; }
.tier-card { border-radius: var(--r-xl); padding: 22px; color: #fff8f0; position: relative; overflow: hidden; }
.tier-card.Bronze { background: linear-gradient(140deg, #a8693f, #6d3b1d); }
.tier-card.Silver { background: linear-gradient(140deg, #9aa3a8, #5c666c); }
.tier-card.Gold { background: linear-gradient(140deg, #d4a63a, #8c6510); }
.tier-card.Platinum { background: linear-gradient(140deg, #5f6f86, #263042); }
.tier-card::after { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; right: -70px; top: -90px; border: 26px solid rgba(255, 255, 255, .09); }
.progress { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.progress > div { height: 100%; background: #fff8f0; border-radius: 4px; }

/* ---------- Admin ---------- */
.admin { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 14px; padding: 14px; max-width: 1400px; margin: 0 auto; }
.admin nav { padding: 14px; position: sticky; top: 14px; align-self: start; display: flex; flex-direction: column; gap: 2px; }
.admin nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); color: var(--ink-2); text-decoration: none; font-weight: 650; }
.admin nav a:hover { background: rgba(255, 255, 255, .5); }
.admin nav a.active { background: rgba(255, 255, 255, .85); color: var(--ink); box-shadow: 0 4px 14px -8px rgba(var(--shade-rgb), .5); }
.admin nav .grp { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 800; margin: 14px 12px 4px; }
.kpi { padding: 18px; }
.kpi .v { font-size: 1.8rem; font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .l { font-size: .8rem; color: var(--ink-3); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.station-link { display: flex; flex-direction: column; gap: 6px; padding: 18px; text-decoration: none; color: var(--ink); }
.station-link:hover { background: rgba(255, 255, 255, .62); }
.station-link .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); }

/* branding (settings) */
.span-all { grid-column: 1 / -1; }
.swatch {
    appearance: none; flex: none; width: var(--tap); height: var(--tap); padding: 5px; cursor: pointer;
    border-radius: var(--r-sm); border: 1px solid rgba(var(--edge-rgb), .16); background: rgba(255, 255, 255, .62);
}
.swatch::-webkit-color-swatch-wrapper { padding: 0; }
.swatch::-webkit-color-swatch { border: 0; border-radius: 8px; }
.swatch::-moz-color-swatch { border: 0; border-radius: 8px; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.preset {
    appearance: none; font: inherit; font-size: .85rem; font-weight: 700; color: var(--ink-2); cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 4px 14px 4px 5px; border-radius: var(--pill);
    background: rgba(255, 255, 255, .5); border: 1px solid rgba(255, 255, 255, .75);
    transition: transform .12s ease, background .2s;
}
.preset:hover { background: rgba(255, 255, 255, .8); }
.preset:active { transform: scale(.97); }
.preset.on { background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 0 0 2px var(--accent); }
.preset .pair { display: inline-flex; }
.preset .pair i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 2px 6px -2px rgba(var(--shade-rgb), .5); }
.preset .pair i + i { margin-left: -9px; }
.brand-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px; border-radius: var(--r-md); background: rgba(255, 255, 255, .4); }
.logo-drop {
    position: relative; display: grid; place-items: center; min-height: 110px; padding: 14px; text-align: center;
    border-radius: var(--r-md); border: 2px dashed rgba(var(--umber-rgb), .25); background: rgba(255, 255, 255, .4);
}
.logo-drop:hover { background: rgba(255, 255, 255, .6); }
.logo-drop img { max-height: 72px; max-width: 80%; object-fit: contain; }
.logo-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* bar charts (reports) */
.bars { display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 160px) 1fr auto; gap: 10px; align-items: center; font-size: .9rem; }
.bar-row .track { height: 14px; border-radius: 0 4px 4px 0; background: transparent; }
.bar-row .fill { height: 100%; border-radius: 0 4px 4px 0; background: var(--accent); min-width: 2px; }
.bar-row .v { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink-2); }
.cols-chart { display: flex; align-items: flex-end; gap: 3px; height: 160px; padding-top: 10px; }
.cols-chart .c { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.cols-chart .c .fill { width: 100%; max-width: 28px; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 1px; }
.cols-chart .c .x { font-size: .68rem; color: var(--ink-3); margin-top: 4px; white-space: nowrap; }
.cols-chart .c:hover .fill { background: var(--accent-strong); }
.cols-chart .c { position: relative; cursor: default; }
.cols-chart .c .tip, .bar-row .tip {
    display: none; position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 5;
    padding: 6px 10px; border-radius: 10px; background: rgba(var(--ink-rgb), .92); color: var(--on-ink);
    font-size: .78rem; font-weight: 650; white-space: nowrap; pointer-events: none;
}
.cols-chart .c:hover .tip, .bar-row:hover .tip { display: block; }
.bar-row { position: relative; }
.bar-row .tip { left: 30%; }
.cols-chart .grid-line { border-bottom: 1px solid var(--line); }

/* ---------- Landing ---------- */
.landing-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; padding: 40px 0 30px; }
.landing-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.02; letter-spacing: -.035em; }
.landing-hero .lede { font-size: 1.15rem; color: var(--ink-2); max-width: 34ch; }
.plan { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.plan .price { font-size: 2.2rem; font-weight: 900; letter-spacing: -.03em; }
.plan ul { margin: 0; padding-left: 18px; color: var(--ink-2); }
.plan.featured { outline: 2px solid var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .pos.mode-both { grid-template-columns: minmax(0, 1fr) 340px; }
    .pos.mode-both > .app-queue { grid-column: 1 / -1; max-height: 40vh; }
    .pos { height: auto; }
}
@media (max-width: 860px) {
    .station { grid-template-columns: 1fr; }
    .station .side { order: -1; }
    .pos.mode-both, .pos.mode-pos, .pos.mode-app { grid-template-columns: 1fr; height: auto; }
    .pos > section { overflow: visible; }
    .admin { grid-template-columns: 1fr; }
    .admin nav { position: static; flex-direction: row; overflow-x: auto; }
    .admin nav .grp { display: none; }
    .admin nav a { flex: none; }
    .landing-hero { grid-template-columns: 1fr; }
    .kanban { grid-auto-columns: 82vw; scroll-snap-type: x mandatory; }
    .kanban .col { scroll-snap-align: start; }
    .topbar { border-radius: var(--r-lg); }
}

.flip { transform: scaleX(-1); }
.hidden-screen { display: none !important; }
@media (max-width: 640px) { .hide-sm { display: none; } }

/* ---------- Print (QR sheets, badges) ---------- */
@media print {
    .hidden-screen { display: grid !important; }
    .ambient, .topbar, .admin nav, .no-print { display: none !important; }
    .admin { display: block; padding: 0; }
    .glass, .glass-strong { background: #fff; box-shadow: none; border: 1px solid #ddd; -webkit-backdrop-filter: none; backdrop-filter: none; }
    .print-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10mm; }
    .print-card { break-inside: avoid; }
}

/* Blazor error UI */
#blazor-error-ui { display: none; position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 1000; padding: 14px 18px; border-radius: var(--r-md); background: #fff3ee; color: var(--tomato); box-shadow: var(--shadow-lift); font-weight: 600; }
#blazor-error-ui .dismiss { cursor: pointer; float: right; }
#blazor-error-ui .reload { margin-left: 8px; }

/* =====================================================================================
   90s POS app additions (photos, options, stations, displays, reports, print)
   ===================================================================================== */
.page.narrow { max-width: 480px; }
.feature-ico { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); flex: none; }
.r { text-align: right; }
.nowrap { white-space: nowrap; }
.mt { margin-top: 12px; } .mb { margin-bottom: 12px; }
.w-100 { width: 100%; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .92em; background: rgba(var(--umber-rgb), .08); padding: 1px 6px; border-radius: 6px; }

/* product art */
.ph { width: 100%; aspect-ratio: 4 / 3; border-radius: 14px; object-fit: cover; display: block; background: linear-gradient(135deg, var(--wash-1), var(--wash-3)); }
.ph.sq { aspect-ratio: 1; }
.ph-ph { display: grid; place-items: center; color: rgba(var(--ink-rgb), .35); }
.thumb { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; background: var(--wash-1); }
.tile.photo { padding: 8px 8px 12px; min-height: 0; position: relative; }
.tile.photo .body { padding: 0 4px; display: flex; flex-direction: column; gap: 2px; }
.tile .badge { position: absolute; top: 14px; left: 14px; }
.tile.photo .row.between { padding: 0 4px; }
.menu-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.pos-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.pos-grid .ph { aspect-ratio: 16 / 10; }

/* option pickers */
.opt { display: flex; flex-wrap: wrap; gap: 8px; }
.opt button { appearance: none; font: inherit; font-weight: 700; color: var(--ink-2); min-height: 46px; padding: 6px 14px; border-radius: var(--r-sm);
  border: 1px solid rgba(var(--edge-rgb), .16); background: rgba(255, 255, 255, .6); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; cursor: pointer; }
.opt button small { font-weight: 650; }
.opt button.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.opt button.on small { color: inherit; opacity: .8; }
.opt button:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.opt.eq button { flex: 1; }
.req { margin-left: 6px; }
.tick { width: 26px; height: 26px; border-radius: 8px; border: 2px solid rgba(var(--edge-rgb), .3); display: grid; place-items: center; flex: none; background: #fff; color: transparent; }
.tick.on { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.choice { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .5); border: 1px solid rgba(255, 255, 255, .8); cursor: pointer; width: 100%; font: inherit; color: inherit; text-align: left; }
.choice.on { outline: 2px solid var(--leaf); }

/* meters & timelines */
.meter { height: 10px; border-radius: 6px; background: rgba(var(--umber-rgb), .1); overflow: hidden; }
.meter > div { height: 100%; border-radius: 6px; background: var(--leaf); transition: width .4s; }
.meter.warn > div { background: var(--amber); } .meter.crit > div { background: var(--tomato); }
.tl { position: relative; padding-left: 26px; }
.tl::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl .e { position: relative; padding: 5px 0; }
.tl .e::before { content: ""; position: absolute; left: -22px; top: 10px; width: 12px; height: 12px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 3px #fff; }
.tl .e.warn::before { background: var(--amber); } .tl .e.crit::before { background: var(--tomato); } .tl .e.todo::before { background: rgba(var(--umber-rgb), .25); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }

/* stations */
.ticket .lbl-line { font-size: .8rem; color: var(--ink-3); }
.ticket.remake { border-left: 5px solid var(--tomato); }
.ticket.scheduled { opacity: .6; }
.ticket .done-btn { pointer-events: none; }
.person .avatar.off { opacity: .5; }
.floor { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; font-size: .82rem; }
.floor div { border-radius: 10px; padding: 6px 4px; text-align: center; font-weight: 800; background: rgba(255, 255, 255, .5); }
.floor div small { display: block; font-weight: 650; font-size: .7rem; }
.floor .t-wait { background: var(--amber-soft); } .floor .t-ready { background: var(--leaf-soft); } .floor .t-out { background: var(--sky-soft); } .floor .t-late { background: var(--tomato-soft); }
.banner { padding: 10px 16px; border-radius: var(--r-md); font-weight: 700; display: flex; gap: 10px; align-items: center; }
.banner.info { background: var(--sky-soft); color: var(--sky); } .banner.warn { background: var(--amber-soft); color: #8a5c00; } .banner.crit { background: var(--tomato-soft); color: var(--tomato); }
.callout-hl { animation: hl 1.4s ease-in-out 3; }
@keyframes hl { 50% { box-shadow: 0 0 0 4px var(--leaf); } }

/* pickup display */
.display { padding: 28px 36px; min-height: 100dvh; display: flex; flex-direction: column; gap: 22px; }
.display .namecard { padding: 14px 20px; border-radius: 22px; display: flex; align-items: center; gap: 16px; }
.display .namecard .qno { min-width: 80px; height: 80px; font-size: 2.3rem; border-radius: 22px; }
.display .namecard .nm { font-size: 2rem; font-weight: 850; }
.display .ready .namecard { background: rgba(63, 122, 86, .14); }
.display .new { animation: hl 1.4s ease-in-out 4; }

/* reports */
.kpi small.chip { margin-top: 6px; }
.chart-cols { display: flex; align-items: flex-end; gap: 4px; height: 170px; padding-top: 10px; }
.chart-cols .c { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; position: relative; }
.chart-cols .c .fill { width: 100%; max-width: 30px; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 1px; }
.chart-cols .c .x { font-size: .68rem; color: var(--ink-3); margin-top: 4px; white-space: nowrap; }
.chart-cols .c .tip { display: none; position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); padding: 5px 9px; border-radius: 9px;
  background: rgba(var(--ink-rgb), .92); color: var(--on-ink); font-size: .76rem; white-space: nowrap; z-index: 5; }
.chart-cols .c:hover .tip { display: block; }
.chart-cols .c:hover .fill { background: var(--accent-strong); }
.reading { font-family: ui-monospace, Consolas, monospace; font-size: .9rem; background: #fff; border-radius: 12px; padding: 16px 20px; max-width: 420px; }
.reading .row.between { padding: 2px 0; }

/* receipts & labels (print) */
.receipt { background: #fff; color: #000; width: 300px; padding: 14px 16px; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; line-height: 1.45; border-radius: 6px; }
.receipt .c { text-align: center; }
.receipt hr { border: 0; border-top: 1px dashed #999; margin: 6px 0; }
.receipt .row { display: flex; justify-content: space-between; gap: 8px; }
.id-card { width: 320px; border-radius: 22px; padding: 18px; color: #fff8f0; background: linear-gradient(150deg, var(--accent-hi), var(--avatar-lo)); box-shadow: 0 18px 30px -16px rgba(0, 0, 0, .5); break-inside: avoid; }
.id-card .qrbox { background: #fff; border-radius: 12px; padding: 6px; width: 120px; height: 120px; }
.id-card .qrbox svg { width: 100%; height: 100%; }
.qr-card { break-inside: avoid; }
.qr-sm { width: 140px; height: 140px; padding: 6px; border-radius: 16px; background: #fff; }
.qr-sm svg { width: 100%; height: 100%; display: block; }
.print-only { display: none; }
@media print {
  body { background: #fff !important; }
  .print-only { display: block; }
  .no-print, .topbar, .ambient, .admin nav, .toast { display: none !important; }
  .print-sheet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8mm; }
}

/* misc */
.empty-art { font-size: 2.4rem; opacity: .45; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 650; min-height: 40px; }
.switch input { appearance: none; width: 44px; height: 26px; border-radius: 13px; background: rgba(var(--umber-rgb), .2); position: relative; transition: background .2s; flex: none; cursor: pointer; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: left .2s; }
.switch input:checked { background: var(--leaf); }
.switch input:checked::after { left: 21px; }
.switch input:disabled { opacity: .5; }
.stars { display: flex; gap: 6px; justify-content: center; color: var(--amber); }
.stars button { appearance: none; border: 0; background: none; padding: 0; cursor: pointer; color: inherit; }
.sticky-top { position: sticky; top: 0; z-index: 5; }
.split-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: center; }
@media (max-width: 640px) {
  .menu-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .display { padding: 14px; }
  .display .namecard .nm { font-size: 1.4rem; }
}

.logo-drop .ph { max-height: none; max-width: 100%; width: 100%; }
.logo-drop .thumb { max-height: none; }

h1:focus, h1:focus-visible { outline: none; }


/* ---------- option sheets ---------- */
.opt-sec label.lbl { margin-top: 14px; }
/* Quantity + Add always stay on screen, even when options scroll. */
.sheet-foot { position: sticky; bottom: calc(-20px - env(safe-area-inset-bottom)); margin: 14px -20px calc(-20px - env(safe-area-inset-bottom));
  padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); background: rgba(var(--cream-rgb), .96); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); z-index: 2; }
/* Cashier (wide) layout: a centred dialog using most of the screen, options in two columns, all visible without scrolling. */
.sheet.sheet-wide { width: min(1180px, 96vw); max-height: 94dvh; border-radius: var(--r-xl); padding: 18px 22px 20px; }
.sheet-wide .sheet-foot { bottom: -20px; margin: 14px -22px -20px; padding: 12px 22px 16px; border-radius: 0 0 var(--r-xl) var(--r-xl); }
.sheet-wide .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; align-items: start; }
.sheet-wide .opt-sec.sweet, .sheet-wide .opt-sec.note { grid-column: 1 / -1; }
.sheet-wide .sweet-picker { grid-template-columns: repeat(6, 1fr); }
.sheet-wide .opt button { min-height: 52px; }
.sheet-wide .sheet-foot .btn-lg { min-height: 64px; font-size: 1.2rem; }
.sheet-wide .bundle-parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 20px; align-items: start; }
@media (max-width: 760px) {
  .sheet-wide .opts { grid-template-columns: 1fr; }
  .sheet-wide .sweet-picker { grid-template-columns: repeat(3, 1fr); }
}
.sheet-wide .bundle-parts .choice { padding: 8px 12px; }
.sheet-wide .bundle-parts label.lbl { margin-top: 10px !important; }
.bundle-editors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; grid-auto-flow: dense; margin-top: 12px; align-items: start; }
.bundle-editor { border-radius: var(--r-md); padding: 12px 14px; }
.bundle-editor.big { grid-column: span 2; grid-row: span 2; }
.bundle-editor:not(.big) .opts { grid-template-columns: 1fr; }
.sheet-wide .bundle-editor .opt-sec label.lbl { margin-top: 8px; }
.sheet-wide .bundle-editor .opt button, .sheet-wide .bundle-editor .sweet-picker button { min-height: 44px; }
@media (max-width: 900px) { .bundle-editors { grid-template-columns: 1fr 1fr; } .bundle-editor.big { grid-column: 1 / -1; grid-row: auto; } }
@media (max-height: 800px) {
  .sheet.sheet-wide { padding-top: 14px; }
  .sheet-wide .opt button { min-height: 44px; }
  .sheet-wide .opt-sec label.lbl, .sheet-wide .bundle-parts label.lbl { margin-top: 8px !important; }
  .sheet-wide .sheet-foot { margin-top: 10px; padding-top: 10px; padding-bottom: 12px; }
  .sheet-wide .sheet-foot .btn-lg { min-height: 56px; }
}
