/* ===== Fonts: Bricolage Grotesque for the interface, IBM Plex Mono for everything printed (bills, KOT, money) ===== */
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 200 800; font-display: swap; src: url(/fonts/bricolage-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 200 800; font-display: swap; src: url(/fonts/bricolage-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-display: swap; src: url(/fonts/plexmono-400.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 600; font-display: swap; src: url(/fonts/plexmono-600.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-display: swap; src: url(/fonts/plexmono-ext-400.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 600; font-display: swap; src: url(/fonts/plexmono-ext-600.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ===== Design tokens =====
   Bottle green is the hotel (rail, primary actions). Brass marks what is live or selected.
   The bill slip is the one loud thing on screen; everything around it stays quiet. */
:root {
  --ui: 'Bricolage Grotesque', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  --mono: 'IBM Plex Mono', 'Cascadia Mono', Consolas, 'Courier New', monospace;
  --bottle: #0f3d33; --bottle-2: #175443; --bottle-deep: #0a2a23;
  --brass: #b8892b; --brass-soft: #f4e9cd; --brass-ink: #6e4f10;
  --canvas: #eceff0; --panel: #ffffff; --ink: #15201c; --muted: #5b6863; --line: #dbe1de; --line-strong: #bcc7c2;
  --primary: #0f3d33; --primary-ink: #ffffff; --primary-hover: #175443;
  --ok: #1d7a4e; --ok-soft: #dcf1e5; --warn: #8a5a05; --warn-soft: #f9ecc8; --bad: #b42318; --bad-soft: #fbe4e1;
  --busy-bg: #fbf5e6;
  --slip: #fffdf6; --slip-ink: #201c14; --slip-mute: #766d58; --slip-rule: #c9bfa6;
  --r-ctl: 10px; --r-panel: 14px;
  --shadow: 0 1px 2px rgba(15, 40, 33, .06), 0 8px 24px -12px rgba(15, 40, 33, .18);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bottle: #0b2e26; --bottle-2: #134537; --bottle-deep: #07201a;
    --brass: #d3a542; --brass-soft: #3a2f14; --brass-ink: #ecc873;
    --canvas: #0b1311; --panel: #121c19; --ink: #e8efec; --muted: #9aa9a3; --line: #243430; --line-strong: #364843;
    --primary: #3fb68a; --primary-ink: #04150f; --primary-hover: #58c9a0;
    --ok: #6ce0a6; --ok-soft: #0f2e20; --warn: #f0c55c; --warn-soft: #3a2f10; --bad: #ffa59b; --bad-soft: #3b1a17;
    --busy-bg: #1a1d14;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 15px/1.45 var(--ui); background: var(--canvas); color: var(--ink); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: 1.75rem; font-weight: 700; } h2 { font-size: 1.25rem; font-weight: 650; } h3 { font-size: 1rem; font-weight: 650; }
.muted { color: var(--muted); } .right { text-align: right; } .center { text-align: center; }
.row { display: flex; gap: 10px; align-items: center; } .row.wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; }
.hidden { display: none !important; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.ico { flex: none; display: block; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

/* ===== App shell: rail on laptops, tab bar on phones ===== */
#app { min-height: 100%; }
.shell { display: flex; min-height: 100vh; }
.rail { width: 248px; flex: none; background: var(--bottle); color: #d7e6df; display: flex; flex-direction: column; padding: 18px 12px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.rail.admin { background: #111c19; }
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 18px; }
.brand .logo { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; background: #fff; flex: none; }
.brand .bn { font-weight: 700; font-size: 1.05rem; line-height: 1.2; color: #fff; overflow-wrap: anywhere; }
.brand .bs { font-size: .8rem; color: #9fbcb1; }
.navgroup { font-size: .78rem; color: #86a79b; padding: 14px 10px 6px; }
.rail nav { display: flex; flex-direction: column; gap: 2px; }
.rail nav button { display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 10px 12px; border-radius: 10px; cursor: pointer; color: #c7dbd2; text-align: left; font-weight: 500; }
.rail nav button:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.rail nav button.on { background: rgba(255, 255, 255, .11); color: #fff; font-weight: 650; box-shadow: inset 3px 0 0 var(--brass); }
.railfoot { margin-top: auto; padding: 14px 8px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.railfoot .who { font-size: .9rem; color: #fff; font-weight: 600; }
.railfoot .role { font-size: .8rem; color: #9fbcb1; margin-bottom: 10px; }
.railfoot .btn { background: transparent; color: #d7e6df; border-color: rgba(255, 255, 255, .22); width: 100%; justify-content: center; }
.railfoot .btn:hover { border-color: var(--brass); color: #fff; }
.statuschip { display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .09); color: #e6f1ec; margin-bottom: 10px; }
.statuschip i { width: 8px; height: 8px; border-radius: 50%; background: #5fd39b; }
.statuschip.warn i { background: #f2c14e; } .statuschip.bad i { background: #ff8a7d; }

.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 28px 28px 40px; }
.banner { padding: 11px 28px; font-weight: 600; font-size: .92rem; }
.banner.warn { background: var(--warn-soft); color: var(--warn); } .banner.bad { background: var(--bad-soft); color: var(--bad); }
.pagehead { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.pagehead h1 { margin: 0; }

.mobilebar, .tabbar { display: none; }
@media (max-width: 860px) {
  .rail { display: none; }
  .mobilebar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 6; background: var(--bottle); color: #fff; padding: 10px 16px; }
  .mobilebar .logo { width: 32px; height: 32px; border-radius: 8px; background: #fff; object-fit: cover; }
  .mobilebar .bn { font-weight: 700; line-height: 1.15; }
  .mobilebar .statuschip { margin: 0; }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; background: var(--panel); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; background: none; padding: 6px 2px; font-size: .72rem; color: var(--muted); border-radius: 10px; cursor: pointer; }
  .tabbar button.on { color: var(--primary); font-weight: 700; }
  .tabbar button.on .ico { stroke-width: 2.2; }
  .main { padding: 16px 14px 96px; }
  .banner { padding: 10px 14px; }
  h1 { font-size: 1.5rem; }
}

/* ===== Controls ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1px solid var(--line-strong); background: var(--panel); border-radius: var(--r-ctl); cursor: pointer; font-weight: 600; text-decoration: none; transition: border-color .12s, background .12s, transform .06s; }
.btn:hover { border-color: var(--primary); }
.btn:active { transform: translateY(1px); }
a.btn { color: var(--ink); }
.btn.primary { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn.danger { color: var(--bad); border-color: var(--bad-soft); background: transparent; }
.btn.small { min-height: 34px; padding: 0 11px; font-size: .86rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.block { width: 100%; justify-content: center; }
.btn.center, a.btn.center { justify-content: center; }
label.f { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 5px; font-weight: 500; }
input, select, textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-ctl); background: var(--panel); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; min-height: 0; accent-color: var(--primary); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brass); outline-offset: 0; border-color: var(--brass); }
::placeholder { color: var(--muted); opacity: .7; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 18px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: .78rem; font-weight: 650; background: var(--line); color: var(--ink); }
.badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.warn { background: var(--warn-soft); color: var(--warn); } .badge.bad { background: var(--bad-soft); color: var(--bad); }

/* ===== Ledger-style summary (one panel, hairline cells, instead of a pile of cards) ===== */
.grid { display: grid; gap: 12px; }
.grid.cols { gap: 0; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; }
.grid.cols > .card.stat { border: 0; border-radius: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; padding: 16px 18px; }
.stat .v { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 1.45rem; font-weight: 600; letter-spacing: -.02em; }
.stat .l { color: var(--muted); font-size: .85rem; margin-top: 2px; }

.ledger { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; }
.ledger > div { padding: 24px; }
.ledger > div + div { border-left: 1px solid var(--line); }
.ledger .big { font-family: var(--mono); font-weight: 600; font-size: clamp(2.2rem, 6vw, 3.1rem); letter-spacing: -.03em; line-height: 1.05; margin: 6px 0 8px; }
.ledger .sub { color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }
.ledger .sub b { color: var(--ink); font-family: var(--mono); }
.mixbar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--line); margin: 12px 0 16px; }
.mixbar i { display: block; height: 100%; }
.mix { display: grid; gap: 10px; }
.mix div { display: flex; align-items: center; gap: 10px; }
.mix .sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.mix .amt { margin-left: auto; font-family: var(--mono); font-weight: 600; font-variant-numeric: tabular-nums; }
.c-cash { background: var(--bottle); } .c-upi { background: var(--brass); } .c-card { background: #8aa89d; }
@media (prefers-color-scheme: dark) { .c-cash { background: #3fb68a; } .c-card { background: #5b7a6f; } }
@media (max-width: 700px) { .ledger { grid-template-columns: 1fr; } .ledger > div + div { border-left: 0; border-top: 1px solid var(--line); } }

.week { margin-top: 14px; }
.week .bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; height: 170px; margin-top: 8px; }
.week .col { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 6px; min-width: 0; }
.week .col .val { font-family: var(--mono); font-size: .72rem; color: var(--muted); white-space: nowrap; }
.week .col .bar { width: 100%; max-width: 46px; background: var(--bottle); border-radius: 6px 6px 2px 2px; min-height: 3px; opacity: .88; }
.week .col.today .bar { background: var(--brass); opacity: 1; }
.week .col .day { font-size: .8rem; color: var(--muted); }
.week .col.today .day { color: var(--ink); font-weight: 700; }
@media (prefers-color-scheme: dark) { .week .col .bar { background: #3fb68a; } .week .col.today .bar { background: var(--brass); } }

.quick { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* ===== Tables: dashed = free, solid with brass edge = running order ===== */
.tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tbl { position: relative; border-radius: var(--r-panel); padding: 14px 14px 12px; min-height: 120px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; background: transparent; border: 1.5px dashed var(--line-strong); color: var(--muted); transition: transform .08s, border-color .12s; }
.tbl:hover { border-color: var(--primary); transform: translateY(-1px); }
.tbl .tl { font-size: .8rem; }
.tbl .tn.sm { font-size: 1.4rem; line-height: 1.3; }
.tbl .tn { font-size: 2.3rem; font-weight: 700; line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.tbl .st { margin-top: auto; font-size: .84rem; display: flex; align-items: center; gap: 6px; }
.tbl .st i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.tbl.busy { background: var(--busy-bg); border: 1.5px solid var(--line-strong); border-left: 5px solid var(--brass); color: var(--ink); box-shadow: var(--shadow); }
.tbl.busy .amt { font-family: var(--mono); font-weight: 600; font-size: 1.05rem; }
.tbl.busy .meta { font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.tbl.busy .meta.long { color: var(--bad); font-weight: 600; }
.tbl.busy .st i { background: var(--brass); }

/* ===== Billing screen ===== */
.pos { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 22px; align-items: start; }
@media (max-width: 960px) { .pos { grid-template-columns: 1fr; } }
.chips { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 12px 0 14px; scrollbar-width: none; }
.chip { border: 0; border-bottom: 3px solid transparent; background: none; padding: 10px 14px; cursor: pointer; white-space: nowrap; color: var(--muted); font-weight: 500; }
.chip.on { color: var(--ink); font-weight: 700; border-bottom-color: var(--brass); }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.item { border: 1px solid var(--line); background: var(--panel); border-radius: 12px; padding: 12px; cursor: pointer; text-align: left; display: flex; gap: 10px; align-items: center; min-height: 64px; transition: border-color .12s, transform .06s; }
.item:hover { border-color: var(--primary); }
.item:active { transform: scale(.985); }
.item img { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; flex: none; }
.item .nm { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.item .pr { font-family: var(--mono); font-weight: 600; font-size: .95rem; white-space: nowrap; }
.item.off { opacity: .5; }
.item.off .nm { text-decoration: line-through; }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 2px; border: 1.5px solid var(--ok); position: relative; margin-right: 6px; vertical-align: -1px; }
.dot::after { content: ''; position: absolute; inset: 1.5px; border-radius: 50%; background: var(--ok); }
.dot.nv { border-color: var(--bad); } .dot.nv::after { background: var(--bad); }

/* The running bill is drawn as the paper slip a thermal printer would give. */
.slipcol { position: sticky; top: 20px; }
@media (max-width: 960px) { .slipcol { position: static; } }
.slip { position: relative; background: var(--slip); color: var(--slip-ink); font-family: var(--mono); padding: 20px 18px 22px; border-radius: 3px 3px 0 0; filter: drop-shadow(0 10px 14px rgba(8, 30, 24, .22)); margin-bottom: 14px; }
.slip::after { content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='8' viewBox='0 0 16 8'%3E%3Cpath d='M0 0h16L8 8z' fill='%23fffdf6'/%3E%3C/svg%3E") repeat-x; }
.slip .top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.slip .ttl { font-family: var(--ui); font-weight: 700; font-size: 1.5rem; letter-spacing: -.02em; }
.slip .time { color: var(--slip-mute); font-size: .8rem; }
.slip .who { color: var(--slip-mute); font-size: .8rem; margin-top: 2px; min-height: 1em; }
.slip hr { border: 0; border-top: 1px dashed var(--slip-rule); margin: 12px 0; }
.slip .empty { text-align: center; color: var(--slip-mute); padding: 22px 0; font-size: .85rem; }
.ln { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 6px 0; border-radius: 6px; }
.ln.flash { animation: flash .7s ease-out; }
@keyframes flash { from { background: #f3e2ae; } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .ln.flash { animation: none; } }
.ln .nm { font-size: .9rem; overflow-wrap: anywhere; line-height: 1.25; }
.ln .nm small { display: block; color: var(--slip-mute); font-size: .74rem; }
.ln .nm .new { display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 4px; background: #f3e2ae; color: #6e4f10; font-size: .68rem; font-weight: 600; font-family: var(--ui); }
.ln .amt { font-weight: 600; font-size: .92rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--slip-rule); border-radius: 7px; overflow: hidden; }
.qty button { width: 30px; height: 30px; border: 0; background: transparent; color: var(--slip-ink); cursor: pointer; font-size: 1.05rem; font-family: var(--mono); }
.qty button:hover { background: #efe6cc; }
.qty b { min-width: 26px; text-align: center; font-size: .9rem; }
.ln .rm { width: 28px; height: 28px; border: 0; background: transparent; color: var(--slip-mute); cursor: pointer; border-radius: 6px; font-size: 1rem; }
.ln .rm:hover { background: #f6d9d4; color: #a3271b; }
.tot { display: flex; align-items: baseline; font-size: .88rem; padding: 2px 0; }
.tot i { flex: 1; border-bottom: 1px dotted var(--slip-rule); margin: 0 6px; transform: translateY(-3px); }
.tot.mute { color: var(--slip-mute); }
.tot.grand { font-size: 1.55rem; font-weight: 600; margin-top: 8px; padding-top: 10px; border-top: 3px double var(--brass); letter-spacing: -.02em; }
.slipactions { display: grid; gap: 10px; }
.slipactions .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.slipactions .btn { justify-content: center; }
.slipactions .pay { min-height: 54px; font-size: 1.05rem; }

/* ===== Tables (data) ===== */
table.t { width: 100%; border-collapse: collapse; }
table.t th, table.t td { padding: 11px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.t th { color: var(--muted); font-weight: 600; font-size: .82rem; }
table.t tr:last-child td { border-bottom: 0; }
table.t td.num, table.t th.num { text-align: right; }
table.t tbody tr:hover { background: color-mix(in srgb, var(--line) 35%, transparent); }

/* ===== Modals, toast ===== */
.modal-bg { position: fixed; inset: 0; background: rgba(6, 20, 16, .55); display: flex; align-items: flex-end; justify-content: center; z-index: 20; }
@media (min-width: 700px) { .modal-bg { align-items: center; } }
.modal { background: var(--panel); width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; border-radius: 18px 18px 0 0; padding: 20px; box-shadow: var(--shadow); }
@media (min-width: 700px) { .modal { border-radius: 18px; } }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--bottle-deep); color: #fff; padding: 11px 18px; border-radius: 10px; z-index: 40; max-width: 90vw; box-shadow: var(--shadow); border-left: 4px solid var(--brass); }
.toast.bad { background: #8f1d14; border-left-color: #ff9d92; }

/* ===== Kitchen ===== */
.kots { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.kot { border-left: 6px solid var(--brass); }
.kot.preparing { border-left-color: #3b6fb5; } .kot.ready { border-left-color: var(--ok); }
.kot ul { padding-left: 18px; margin: 10px 0; }
.kot li { margin: 4px 0; }
.qr { display: flex; justify-content: center; background: #fff; padding: 12px; border-radius: 12px; border: 1px solid var(--line); }

/* ===== Sign in ===== */
.authwrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.hero { background: var(--bottle); color: #e4efe9; padding: 44px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; position: relative; overflow: hidden; }
.hero .mark { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.15rem; color: #fff; }
.hero .mark img { width: 40px; height: 40px; border-radius: 10px; background: #fff; }
.hero h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.08; letter-spacing: -.03em; color: #fff; max-width: 15ch; margin: 0 0 12px; font-weight: 700; }
.hero p { color: #a9c6bb; max-width: 40ch; margin: 0; }
.hero .sample { align-self: center; transform: rotate(-2.2deg); width: min(300px, 80%); margin: 6px 0; }
.hero .sample .slip { margin-bottom: 8px; }
.formside { display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.formcard { width: 100%; max-width: 390px; }
.formcard h1 { margin-bottom: 4px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--line); border-radius: 12px; padding: 4px; gap: 4px; margin: 18px 0; }
.seg button { border: 0; background: transparent; padding: 9px; border-radius: 9px; cursor: pointer; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
@media (max-width: 860px) {
  .authwrap { grid-template-columns: 1fr; }
  .hero { padding: 22px 20px 26px; gap: 14px; }
  .hero .sample, .hero p { display: none; }
  .hero h2 { font-size: 1.5rem; margin: 0; max-width: none; }
  .formside { align-items: flex-start; padding: 24px 16px 40px; }
}

/* ===== Bills on screen (receipt) and on paper ===== */
.receipt { font-family: var(--mono); color: #000; background: #fff; padding: 8px; width: 100%; max-width: 80mm; margin: 0 auto; font-size: 12px; }
.receipt.w58 { max-width: 58mm; font-size: 11px; }
.receipt .c { text-align: center; } .receipt hr { border: 0; border-top: 1px dashed #000; margin: 6px 0; }
.receipt table { width: 100%; border-collapse: collapse; } .receipt td { padding: 1px 0; vertical-align: top; } .receipt td.r { text-align: right; }
.receipt img.lg { max-width: 40mm; max-height: 18mm; }
.receiptbox { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
@media print {
  body * { visibility: hidden !important; }
  #printArea, #printArea * { visibility: visible !important; }
  #printArea { position: absolute; left: 0; top: 0; width: 100%; }
  @page { margin: 2mm; }
}
#printArea { display: none; }
@media print { #printArea { display: block; } }

.hotelhead { display: flex; align-items: center; gap: 14px; }
.hotelhead .hlogo { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: #fff; border: 1px solid var(--line); flex: none; }
.hotelhead h1 { margin: 0; overflow-wrap: anywhere; }
.hero .mark img { object-fit: cover; }

.hotelbanner { display: flex; align-items: center; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin-bottom: 16px; border-left: 5px solid var(--brass); }
.hotelbanner h1 { margin: 0 0 2px; font-size: 1.5rem; overflow-wrap: anywhere; }
.hotelbanner .hlogo { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: #fff; border: 1px solid var(--line); flex: none; }
.hwho { text-align: right; display: flex; flex-direction: column; font-size: .85rem; color: var(--muted); }
.hwho b { color: inherit; font-weight: 650; }
.monogram { display: grid; place-items: center; background: var(--bottle); color: #f3e3b8; font-weight: 700; letter-spacing: .02em; font-family: inherit; }
.brand .logo.monogram { font-size: 1rem; background: rgba(255,255,255,.12); color: #f3e3b8; border: 1px solid rgba(255,255,255,.18); }
.hotelbanner .hlogo.monogram { font-size: 1.5rem; background: var(--bottle); border-color: var(--bottle); }
.mobilebar .logo.monogram { width: 34px; height: 34px; border-radius: 9px; font-size: .85rem; background: rgba(255,255,255,.14); }
@media (max-width: 700px) { .hwho { display: none; } .hotelbanner { padding: 12px 14px; } .hotelbanner h1 { font-size: 1.2rem; } .hotelbanner .hlogo { width: 48px; height: 48px; } }

.gstrow { gap: 8px; font-weight: 600; padding: 2px 4px 6px; cursor: pointer; }
.gstrow input { width: 18px; height: 18px; accent-color: var(--bottle); }

/* Plan cards: each plan is its own card (the shared "ledger" grid looks odd with 7 plans). */
.grid.plans { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.grid.plans > .card.stat { padding: 16px 18px; }

/* ======================= Super Admin ======================= */
.rail.admin { background: radial-gradient(120% 60% at 0% 0%, #1d3b33 0%, #111c19 55%); }
.rail.admin nav button { position: relative; }
.rail.admin nav button.on { box-shadow: inset 3px 0 0 var(--brass); }
.tabcount { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--brass); color: #1c1503; font: 700 .72rem/20px var(--ui); text-align: center; }
.tabcount.hidden, .bellcount.hidden { display: none; }
.live { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: #9fb7ae; margin-bottom: 10px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #5fd39b; animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(95, 211, 155, .6); } 70% { box-shadow: 0 0 0 8px rgba(95, 211, 155, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 211, 155, 0); } }

.admtop { display: flex; align-items: center; gap: 12px; padding: 22px 28px 0; }
.admtitle { font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.admmain { padding-top: 14px; }
.bellwrap { position: relative; }
.bell { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line); color: var(--ink); cursor: pointer; box-shadow: var(--shadow); }
.bell:hover { border-color: var(--line-strong); }
.bell.ring svg { animation: ring 2.4s ease-in-out infinite; transform-origin: 50% 8px; }
@keyframes ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(14deg); } 80% { transform: rotate(-12deg); } 85% { transform: rotate(8deg); } 90% { transform: rotate(-5deg); } }
.bellcount { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--bad); color: #fff; font: 700 .72rem/20px var(--ui); text-align: center; border: 2px solid var(--canvas); }
.bellpanel { position: absolute; right: 0; top: 54px; width: min(380px, calc(100vw - 32px)); max-height: 70vh; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .35); z-index: 30; }
.bphead { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.nrow { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: inherit; font: inherit; cursor: pointer; }
.nrow:hover { background: var(--canvas); }
.nic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.nic.warn { background: var(--warn-soft); color: var(--warn); } .nic.info { background: var(--ok-soft); color: var(--ok); } .nic.bad { background: var(--bad-soft); color: var(--bad); }
.ntext { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .ntext .muted { font-size: .85rem; }
.bpempty { display: grid; justify-items: center; gap: 8px; padding: 28px 16px; color: var(--muted); text-align: center; }

.admhero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 24px 26px; border-radius: 18px; color: #eef6f2; margin-bottom: 16px; position: relative; overflow: hidden;
  background: radial-gradient(90% 140% at 100% 0%, rgba(184, 137, 43, .35) 0%, rgba(184, 137, 43, 0) 55%), linear-gradient(135deg, #0f3d33, #0a2a23); }
.admhero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .09) 50%, transparent 70%); transform: translateX(-120%); animation: sheen 1.6s .3s ease-out 1 forwards; pointer-events: none; }
@keyframes sheen { to { transform: translateX(120%); } }
.hello { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; }
.herosub { margin-top: 4px; color: #cfe3da; } .herosub.dim { color: #9fb7ae; font-size: .92rem; }
.herobtns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn.brass { background: var(--brass); color: #1c1503; border-color: transparent; font-weight: 700; }
.btn.brass:hover { filter: brightness(1.08); }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px 14px; box-shadow: var(--shadow); overflow: hidden; }
.kpi::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--brass); opacity: .85; }
.kic { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--canvas); color: var(--muted); }
.kl { color: var(--muted); font-size: .88rem; padding-right: 44px; }
.kv { font: 600 1.85rem/1.2 var(--mono); letter-spacing: -.03em; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.kn { color: var(--muted); font-size: .84rem; }

.admgrid2 { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 12px; margin-bottom: 16px; }
@media (max-width: 960px) { .admgrid2 { grid-template-columns: 1fr; } }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin: 8px 0 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 11px; height: 11px; border-radius: 3px; flex: none; }
.sw.purch, .cseg.purch { background: var(--primary); } .sw.rech, .cseg.rech { background: var(--brass); }
.cseg { width: 100%; min-height: 2px; flex: none; } .cseg.rech { border-radius: 3px 3px 0 0; }
.cbars { display: flex; align-items: flex-end; gap: 4px; height: 170px; border-bottom: 1px solid var(--line-strong); }
.ccol { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 4px 4px 0 0; cursor: pointer; transform-origin: bottom; animation: grow .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 18ms); outline-offset: 2px; }
.ccol:hover, .ccol:focus-visible { background: var(--canvas); }
@keyframes grow { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
.caxis { display: flex; justify-content: space-between; font-size: .78rem; margin-top: 6px; }
.chartinfo { margin-top: 10px; min-height: 1.4em; font-size: .9rem; }
.emptychart { display: grid; justify-items: center; gap: 8px; padding: 34px 12px; color: var(--muted); text-align: center; }

.donutwrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.dsvg { position: relative; width: 150px; height: 150px; flex: none; }
.donut { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 5.2; }
.donut .track { stroke: var(--canvas); }
.donut .ring { transition: stroke-dasharray 1s cubic-bezier(.2, .8, .2, 1); }
.c-wait { stroke: var(--line-strong); background: var(--line-strong); } .c-trial { stroke: var(--brass); background: var(--brass); }
.c-run { stroke: var(--ok); background: var(--ok); } .c-lock { stroke: var(--bad); background: var(--bad); }
.dcenter { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.dcenter b { font: 600 1.7rem/1 var(--mono); }
.dleg { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; flex: 1; min-width: 160px; }
.dleg li { display: flex; align-items: center; gap: 8px; font-size: .92rem; }
.dleg li b { font-family: var(--mono); }

.attngrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.attn .row { gap: 8px; margin-bottom: 6px; color: var(--muted); } .attn .row h3 { color: var(--ink); }
.attn ul { list-style: none; margin: 0; padding: 0; }
.attn li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.attn li .muted { font-size: .85rem; }
.pad { padding: 14px 0 6px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line-strong); background: var(--panel); color: var(--ink); border-radius: 99px; padding: 7px 14px; font: 600 .9rem var(--ui); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.chip.on { background: var(--primary); color: var(--primary-ink); border-color: transparent; }
.chip .tabcount { margin: 0; }

.admtabbar { overflow-x: auto; justify-content: flex-start; }
.admtabbar button { flex: 0 0 auto; min-width: 76px; position: relative; }
.admtabbar .tabcount { position: absolute; top: 4px; right: 8px; margin: 0; min-width: 18px; height: 18px; line-height: 18px; font-size: .68rem; }
@media (max-width: 860px) { .admtop { padding: 14px 16px 0; } .admtitle { font-size: 1.35rem; } .admhero { padding: 18px; } }
@media (prefers-reduced-motion: reduce) {
  .ccol, .live i, .bell.ring svg, .admhero::after { animation: none !important; }
  .donut .ring { transition: none; }
}
.rail.admin nav button { white-space: nowrap; }

/* ======================= Animated login / registration ======================= */
.heroanim { background: #0a2a23; isolation: isolate; justify-content: space-between; }
.aurora { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; z-index: -1; pointer-events: none; }
.aurora.a1 { width: 520px; height: 520px; left: -140px; top: -120px; background: #1f7a5c; animation: drift1 16s ease-in-out infinite alternate; }
.aurora.a2 { width: 460px; height: 460px; right: -120px; bottom: -140px; background: #b8892b; opacity: .38; animation: drift2 19s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(120px, 90px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-110px, -80px) scale(1.1); } }

.heroTop { display: flex; align-items: center; gap: 12px; }
.heroTop .tile { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.herosubtle { color: #cfe3da; font-weight: 600; padding: 5px 12px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 99px; font-size: .85rem; }

.wmwrap { position: relative; z-index: 2; }
.hero h2.wordmark { margin: 0; font-weight: 800; font-size: clamp(2.8rem, 6.6vw, 6rem); line-height: .92; letter-spacing: -.045em; color: #fff; max-width: none; }
.wline { display: block; overflow: hidden; padding-bottom: .06em; white-space: nowrap; }
.wline.l2 { display: flex; align-items: baseline; gap: .22em; }
.ch { display: inline-block; transform: translateY(110%); animation: chup .75s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i) * 48ms + .25s); }
@keyframes chup { to { transform: translateY(0); } }
.of { font-size: .42em; font-weight: 600; color: #e4cf9a; letter-spacing: -.01em; }
/* BILLS in brass, with one soft glow pulse after the letters land */
.bills { color: #f1d48a; animation: glow 2.2s 1.3s ease-out 1 both; }
@keyframes glow { 40% { text-shadow: 0 0 28px rgba(241, 212, 138, .75); } to { text-shadow: 0 0 0 rgba(241, 212, 138, 0); } }

.tagline { margin-top: 18px; font-size: 1.15rem; color: #bcd5cb; display: flex; gap: .45em; flex-wrap: wrap; align-items: baseline; opacity: 0; animation: fadein .8s 1.3s forwards; }
@keyframes fadein { to { opacity: 1; } }
.swap { display: inline-block; height: 1.4em; overflow: hidden; vertical-align: bottom; }
.swaplist { display: flex; flex-direction: column; animation: words 12s 2s cubic-bezier(.7, 0, .2, 1) infinite; }
.swaplist b { height: 1.4em; line-height: 1.4em; color: #f1d48a; font-weight: 700; white-space: nowrap; }
@keyframes words { 0%, 20% { transform: translateY(0); } 25%, 45% { transform: translateY(-1.4em); } 50%, 70% { transform: translateY(-2.8em); } 75%, 95% { transform: translateY(-4.2em); } 100% { transform: translateY(-5.6em); } }

.herochips { display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 2; opacity: 0; animation: fadein .8s 1.6s forwards; }
.hchip { border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: #d8e8e1; padding: 6px 12px; border-radius: 99px; font-size: .85rem; backdrop-filter: blur(4px); }

/* orbit graphic */
.orbit { position: absolute; right: -150px; top: 50%; width: 460px; height: 460px; margin-top: -230px; z-index: 0; opacity: .95; pointer-events: none; }
.orbit .ring { position: absolute; inset: 0; border: 1px dashed rgba(255, 255, 255, .22); border-radius: 50%; }
.orbit .ring.r2 { inset: 70px; border-style: solid; border-color: rgba(212, 169, 66, .28); }
.orbit .core { position: absolute; inset: 160px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, rgba(212, 169, 66, .3), transparent 70%); animation: breathe 4s ease-in-out infinite; }
.orbit .core img { width: 74px; height: 74px; border-radius: 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
@keyframes breathe { 50% { transform: scale(1.12); } }
.orbit .spin { position: absolute; inset: 0; animation: orbitspin 46s linear infinite; }
@keyframes orbitspin { to { transform: rotate(360deg); } }
.sat { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)) translateY(-230px); }
.satin { position: absolute; width: 50px; height: 50px; margin: -25px 0 0 -25px; display: grid; place-items: center; border-radius: 14px; color: #f1d48a; background: rgba(15, 61, 51, .9); border: 1px solid rgba(212, 169, 66, .45); box-shadow: 0 8px 22px rgba(0, 0, 0, .35); animation: upright 46s linear infinite; }
.sat:nth-child(1) .satin { transform: rotate(calc(-1 * var(--a))); }
@keyframes upright { to { rotate: -360deg; } }
.sat .satin { transform: rotate(calc(-1 * var(--a))); }

/* form side */
.welcome { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); animation: riseform .5s .1s both; }
.welcome .wlogo { width: 42px; height: 42px; border-radius: 11px; object-fit: cover; flex: none; font-size: .95rem; }
.formcard { animation: riseform .55s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes riseform { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.formcard input { transition: border-color .15s, box-shadow .15s; }
.formcard input:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--brass) 28%, transparent); }
.formcard .badge.bad:not(.hidden) { animation: shake .4s; display: block; padding: 10px 12px; margin-bottom: 4px; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.btn.primary[disabled] { opacity: .75; cursor: progress; background-image: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .25) 50%, transparent 70%); background-size: 200% 100%; animation: loadbar 1s linear infinite; }
@keyframes loadbar { from { background-position: 200% 0; } to { background-position: -100% 0; } }

@media (max-width: 860px) {
  .heroanim { padding: 22px 20px 24px; gap: 18px; }
  .orbit { right: -190px; width: 340px; height: 340px; margin-top: -170px; opacity: .5; }
  .sat { transform: rotate(var(--a)) translateY(-170px); }
  .orbit .core { inset: 115px; } .orbit .core img { width: 52px; height: 52px; }
  .satin { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
  .wordmark { font-size: clamp(2.4rem, 13vw, 3.6rem); }
  .herochips { display: none; }
  .tagline { margin-top: 10px; font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ch, .tagline, .herochips, .bills { animation: none !important; transform: none; opacity: 1; }
  .aurora, .orbit .spin, .satin, .orbit .core, .swaplist, .formcard, .welcome { animation: none !important; }
  .swaplist { transform: none; }
}

.heroanim.still .ch, .heroanim.still .tagline, .heroanim.still .herochips, .heroanim.still .bills { animation: none; transform: none; opacity: 1; }

/* owner notifications + staff permissions */
.bellbtn { position: relative; }
.bellbtn.bare { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); padding: 0 9px; }
.bdot { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #c0392b; color: #fff; font: 600 11px/18px var(--mono, monospace); text-align: center; }
.bdot.hidden { display: none; }
.notice { padding: 10px 12px; border-radius: 8px; border-left: 4px solid var(--line); background: var(--panel); }
.notice.warn { border-color: #d89614; } .notice.bad { border-color: #c0392b; } .notice.ok { border-color: #2e7d4f; } .notice.info { border-color: #3b6ea5; }
.notice .small { font-size: 12px; }
.permbox { padding: 12px; border: 1px solid var(--line, #ddd); border-radius: 8px; }
.permbox label { gap: 10px; }
.recov { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; font: 600 16px var(--mono, monospace); letter-spacing: .06em; padding: 16px; }
.kn.bad { color: #c0392b; }

/* password eye */
.pwwrap { position: relative; display: block; }
.pwwrap input { padding-right: 46px; }
.pweye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.pweye:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.pweye:focus-visible { outline: 2px solid var(--brass); }

/* login form side: slow drifting light instead of flat black */
.formside { position: relative; overflow: hidden; isolation: isolate; }
.formside::before, .formside::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.formside::before { width: 46vmax; height: 46vmax; left: -14vmax; top: -12vmax; background: radial-gradient(circle, color-mix(in srgb, var(--bottle) 55%, transparent), transparent 68%); animation: fdrift1 18s ease-in-out infinite alternate; }
.formside::after { width: 40vmax; height: 40vmax; right: -12vmax; bottom: -14vmax; background: radial-gradient(circle, color-mix(in srgb, var(--brass) 38%, transparent), transparent 68%); animation: fdrift2 22s ease-in-out infinite alternate; }
@keyframes fdrift1 { to { transform: translate(14vmax, 10vmax) scale(1.15); } }
@keyframes fdrift2 { to { transform: translate(-12vmax, -9vmax) scale(1.12); } }
.formside .formcard { padding: 26px 24px; border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); border-radius: 20px; background: color-mix(in srgb, var(--panel) 72%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 60px -24px rgba(0, 0, 0, .45); }
@media (max-width: 860px) { .formside .formcard { padding: 20px 16px; } }
@media (prefers-reduced-motion: reduce) { .formside::before, .formside::after { animation: none; } }
:root { --forgot: var(--bottle); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --forgot: var(--brass-ink); } }

.readybox { position: fixed; top: 10px; left: 0; right: 0; z-index: 9999; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 12px; }
.readypop { pointer-events: auto; display: flex; align-items: center; gap: 12px; width: min(420px, 100%); background: var(--card, #fff); color: var(--text, #111); border: 2px solid var(--ok, #16a34a); border-radius: 12px; padding: 12px 14px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
@media print { .readybox { display: none !important; } }
