/* Playcore — admin, operator portal and public pages. No build step. Mobile first, 320px and up.
   v3 "Command Center": HUD panels with corner marks, blueprint grid, Chakra Petch / IBM Plex Sans / JetBrains Mono.
   Class names are unchanged from v2, so every page picks this up. */
@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg: #06080d; --bg-2: #0a0e15; --surface: #0e131c; --surface-2: #131926; --surface-3: #1a2131;
  --text: #e8edf5; --muted: #8d97ab; --faint: #6b768c; --line: rgba(148, 170, 210, .11); --line-2: rgba(148, 170, 210, .2);
  --brand: #ff8a1a; --brand-2: #ffa54d; --brand-3: #ff6a1f; --brand-ink: #140a00; --brand-soft: rgba(255, 138, 26, .11);
  --grad: linear-gradient(180deg, #ff9a33 0%, #ff8a1a 100%);
  --data: #4fd8e8; --data-soft: rgba(79, 216, 232, .1);
  --accent: #00f0ff; --accent-soft: rgba(0, 240, 255, .1); --accent-glow: 0 0 12px rgba(0, 240, 255, .35);
  --ok: #3ddc97; --ok-soft: rgba(61, 220, 151, .1); --warn: #ffb35c; --warn-soft: rgba(255, 179, 92, .1); --bad: #ff6b81; --bad-soft: rgba(255, 107, 129, .1);
  --info: #4fd8e8; --info-soft: rgba(79, 216, 232, .1);
  --radius: 4px; --radius-sm: 3px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 16px 36px -22px rgba(0, 0, 0, .95);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Chakra Petch', 'IBM Plex Sans', system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
/* No sideways page scroll on phones: the viewport clips anything wider (tables scroll inside their own box). */
html { -webkit-text-size-adjust: 100%; background: var(--bg); overflow-x: hidden; overflow-x: clip; }
body { margin: 0; font: 14.5px/1.55 var(--sans); background: transparent; color: var(--text); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img, svg, video, canvas, iframe { max-width: 100%; }
::selection { background: rgba(255, 138, 26, .35); color: #fff; }
a { color: var(--brand-2); text-decoration: none; } a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: .02em; color: #fff; }
h1 { font-size: 1.6rem; font-weight: 700; margin: 0 0 .2rem; text-transform: uppercase; line-height: 1.15; }
h2 { font-size: 1.02rem; font-weight: 600; margin: 0 0 .85rem; text-transform: uppercase; letter-spacing: .06em; }
h3 { font-size: .95rem; font-weight: 600; margin: 0 0 .5rem; letter-spacing: .03em; }
p { margin: 0 0 .75rem; } code, .mono { font-family: var(--mono); font-size: .86em; }
code { background: var(--surface-3); color: #ffc78f; border: 1px solid var(--line); padding: .1em .4em; border-radius: 2px; word-break: break-all; }
pre { background: #04060a; color: #e2e8f0; border: 1px solid var(--line); padding: 1rem 1.1rem; border-radius: var(--radius-sm); overflow-x: auto; font: 12.5px/1.6 var(--mono); }
pre code { background: none; border: 0; padding: 0; color: inherit; }
.muted { color: var(--muted); } .small { font-size: .84rem; } .right { text-align: right; } .nowrap { white-space: nowrap; }
.pos { color: var(--ok); } .neg { color: var(--bad); }
.num, td.num, .value { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.ico { flex-shrink: 0; display: inline-block; vertical-align: middle; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1rem 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 2px; }
* { scrollbar-width: thin; scrollbar-color: #263045 transparent; }

/* ───────── Blueprint grid behind every admin / operator page ───────── */
.bg-mosaic { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; contain: strict;
  background-color: var(--bg);
  background-image: linear-gradient(rgba(120, 150, 200, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 150, 200, .055) 1px, transparent 1px);
  background-size: 32px 32px; }
.bg-mosaic::before { content: ''; position: absolute; inset: 0; background: radial-gradient(900px 520px at 85% -10%, rgba(255, 138, 26, .09), transparent 70%), radial-gradient(700px 500px at -10% 110%, rgba(79, 216, 232, .05), transparent 70%); }
.bg-mosaic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(6, 8, 13, .6)); }

/* ───────── App shell ───────── */
.shell { display: flex; min-height: 100vh; }
.side {
  width: 256px; flex-shrink: 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 1.1rem .85rem 1rem;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 138, 26, .05), transparent 220px), rgba(8, 11, 17, .9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .5rem 1rem; color: #fff; }
.brand:hover { text-decoration: none; }
.brand i { width: 30px; height: 30px; border-radius: 2px; background: url('logo-mark.webp') center/contain no-repeat; display: inline-block; flex-shrink: 0; }
.brand .accent { color: var(--brand); }
.side-logo { display: block; padding: .2rem .5rem 1.1rem; }
.side-logo img { display: block; width: 100%; max-width: 158px; height: auto; }
.side-tag { margin: -.4rem .55rem 1rem; display: inline-flex; align-self: flex-start; align-items: center; gap: .4rem; font: 500 .68rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--data); background: var(--data-soft); border: 1px solid rgba(79, 216, 232, .3); border-radius: 2px; padding: .22rem .6rem; }
.side-org { position: relative; margin: 0 .35rem 1rem; padding: .65rem .75rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); border-left: 2px solid var(--brand); }
.side-org b { display: block; color: #fff; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { position: relative; display: flex; align-items: center; gap: .7rem; padding: .55rem .75rem; border-radius: 2px; color: #aab3c5; font-weight: 500; font-size: .9rem; transition: background .15s, color .15s; }
.nav a .ico { color: var(--faint); transition: color .15s; }
.nav a:hover { background: rgba(255, 138, 26, .06); color: #fff; text-decoration: none; }
.nav a:hover .ico { color: var(--brand-2); }
.nav a.on { background: linear-gradient(90deg, rgba(255, 138, 26, .17), rgba(255, 138, 26, 0)); color: #fff; font-weight: 600; }
.nav a.on .ico { color: var(--brand); }
.nav a.on::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--brand); box-shadow: 0 0 10px var(--brand); }
.nav .grp { font: 500 .66rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .16em; color: var(--faint); padding: 1.1rem .75rem .35rem; }
.nav .grp::before { content: '// '; color: rgba(255, 138, 26, .55); }
.side-foot { margin-top: auto; padding-top: 1rem; }
.usercard { display: flex; align-items: center; gap: .65rem; padding: .6rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.usercard .av { width: 34px; height: 34px; border-radius: 2px; background: var(--brand); color: var(--brand-ink); font-family: var(--display); font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.usercard .who { min-width: 0; flex: 1; font-size: .8rem; line-height: 1.3; }
.usercard .who b { display: block; color: #fff; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.usercard .who span { display: block; color: var(--muted); font-family: var(--mono); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.usercard button { background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 2px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.usercard button:hover { color: var(--bad); border-color: rgba(255, 107, 129, .45); }
.main { flex: 1; min-width: 0; }
.topbar { display: none; }
.content { padding: 1.75rem 2rem 3rem; max-width: 1280px; margin: 0 auto; }
@media (min-width: 1500px) { .content { max-width: 1680px; } }
.pagehead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .9rem; margin-bottom: 1.4rem; }
.pagehead h1 { font-size: 2rem; }
.pagehead > * { min-width: 0; }
.pagehead .actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.eyebrow { font: 500 .72rem/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--brand); margin-bottom: .35rem; }
.eyebrow::before { content: '// '; }
#navtoggle { display: none; }

@media (max-width: 900px) {
  .shell { display: block; }
  .topbar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem .9rem; background: rgba(6, 8, 13, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
  .topbar .brand { padding: 0; font-size: 1rem; min-width: 0; }
  .topbar .brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar label { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid var(--line-2); border-radius: 3px; cursor: pointer; margin: 0; color: #fff; background: var(--surface); }
  .side { position: fixed; z-index: 30; left: 0; top: 0; transform: translateX(-100%); transition: transform .22s ease; width: 84%; max-width: 300px; box-shadow: 0 0 60px rgba(0, 0, 0, .7); }
  #navtoggle:checked ~ .side { transform: none; }
  #navtoggle:checked ~ .scrim { display: block; }
  .scrim { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, .6); backdrop-filter: blur(2px); z-index: 25; }
  .content { padding: 1.1rem .9rem 2.5rem; }
  .pagehead h1 { font-size: 1.55rem; }
}

/* ───────── Components ───────── */
.card {
  position: relative; background: linear-gradient(180deg, rgba(19, 25, 38, .94), rgba(12, 16, 24, .94));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.2rem; box-shadow: var(--shadow); margin-bottom: 1rem; min-width: 0;
}
.card::before, .card::after { content: ''; position: absolute; width: 10px; height: 10px; border: 0 solid var(--brand); pointer-events: none; }
.card::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.card::after { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.card > :last-child { margin-bottom: 0; }
.card.glow { border-color: rgba(255, 138, 26, .4); background: linear-gradient(180deg, rgba(255, 138, 26, .11), rgba(12, 16, 24, .94) 70%); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .9rem; flex-wrap: wrap; }
.card-head h2 { margin: 0; display: flex; align-items: center; gap: .5rem; }
.card-head h2 .ico { color: var(--brand); }
.card-head > * { min-width: 0; }
.grid { display: grid; gap: 1rem; margin-bottom: 1rem; } .g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
.g-2-1 { grid-template-columns: 2fr 1fr; }
@media (max-width: 1080px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); } .g-2-1 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .g2, .g3 { grid-template-columns: 1fr; } .g4 { grid-template-columns: repeat(2, 1fr); gap: .65rem; } }
@media (max-width: 380px) { .g4 { grid-template-columns: 1fr; } }
.grid > .card { margin-bottom: 0; }
.grid > * { min-width: 0; }

.stat .label { color: var(--muted); font: 500 .7rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .13em; display: flex; align-items: center; gap: .45rem; }
.stat .value { font-family: var(--mono); font-size: 1.6rem; font-weight: 600; margin-top: .35rem; word-break: break-word; color: #fff; line-height: 1.15; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.stat .value.pos { color: var(--ok); } .stat .value.neg { color: var(--bad); }
.stat .sub { color: var(--muted); font-size: .8rem; margin-top: .3rem; }
.kpi-ico { width: 34px; height: 34px; border-radius: 2px; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); border: 1px solid rgba(255, 138, 26, .22); float: right; margin: -.1rem -.1rem 0 .5rem; }
.kpi-ico.ok { background: var(--ok-soft); color: var(--ok); border-color: rgba(61, 220, 151, .28); }
.kpi-ico.info { background: var(--info-soft); color: var(--info); border-color: rgba(79, 216, 232, .28); }
@media (max-width: 640px) { .stat .value { font-size: 1.22rem; } .card { padding: .95rem 1rem; } .kpi-ico { width: 30px; height: 30px; } }

.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .14rem .55rem; border-radius: 2px; font: 500 .7rem/1.5 var(--mono); letter-spacing: .03em; background: var(--brand-soft); color: var(--brand-2); border: 1px solid rgba(255, 138, 26, .4); white-space: nowrap; vertical-align: middle; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: rgba(61, 220, 151, .4); }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: rgba(255, 179, 92, .4); }
.badge.bad { background: var(--bad-soft); color: var(--bad); border-color: rgba(255, 107, 129, .45); }
.badge.gray { background: rgba(148, 170, 210, .06); color: var(--muted); border-color: var(--line-2); }
.badge.ok::before, .badge.warn::before, .badge.bad::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; flex-shrink: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .5rem 1rem; border-radius: 3px; border: 1px solid var(--line-2); background: rgba(19, 25, 38, .85); color: var(--text); font: 600 .86rem/1.2 var(--display); letter-spacing: .05em; text-transform: uppercase; cursor: pointer; text-decoration: none; min-height: 40px; transition: background .15s, border-color .15s, color .15s, filter .15s, transform .1s; }
.btn:hover { background: var(--surface-3); border-color: var(--brand); color: #fff; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 700; clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px)); }
.btn.primary:hover { background: #ff9d3d; border-color: #ff9d3d; color: var(--brand-ink); }
.btn.danger { color: var(--bad); border-color: rgba(255, 107, 129, .45); background: var(--bad-soft); }
.btn.danger:hover { background: rgba(255, 107, 129, .2); border-color: var(--bad); color: var(--bad); }
.btn.ghost { background: transparent; }
.btn.sm { padding: .25rem .65rem; min-height: 32px; font-size: .74rem; border-radius: 2px; }
.btn.sm.primary { clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px)); }
.btn.lg { padding: .8rem 1.4rem; min-height: 50px; font-size: 1rem; border-radius: 3px; }
button:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; }

.alert { display: block; padding: .85rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; border: 1px solid transparent; border-left-width: 3px; overflow-wrap: anywhere; }
.alert.ok { background: var(--ok-soft); color: #c6f6df; border-color: rgba(61, 220, 151, .3); border-left-color: var(--ok); }
.alert.bad { background: var(--bad-soft); color: #ffd3da; border-color: rgba(255, 107, 129, .32); border-left-color: var(--bad); }
.alert.warn { background: var(--warn-soft); color: #ffe2c0; border-color: rgba(255, 179, 92, .32); border-left-color: var(--warn); }
.alert a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.alert ul { margin: .35rem 0 0; padding-left: 1.1rem; }
.secret { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .6rem 0; border-top: 1px dashed var(--line-2); }
.secret:first-of-type { border-top: 0; } .secret b { min-width: min(150px, 100%); } .secret code { flex: 1; min-width: 0; padding: .4rem .55rem; }

/* ───────── Forms ───────── */
label { display: block; font-weight: 600; font-size: .82rem; margin-bottom: .3rem; color: #cdd4e1; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=datetime-local], input[type=url], input[type=search], input[type=tel], input[type=file], select, textarea {
  width: 100%; max-width: 100%; padding: .6rem .75rem; border: 1px solid var(--line-2); border-radius: 3px; background: rgba(6, 9, 14, .85); color: var(--text); font: inherit; min-height: 42px; transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: var(--faint); }
select option { background: var(--surface); color: var(--text); }
textarea { min-height: 88px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255, 138, 26, .16), 0 0 14px -4px rgba(255, 138, 26, .5); }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); }
input[type=file]::file-selector-button { background: var(--surface-3); color: var(--text); border: 1px solid var(--line-2); border-radius: 2px; padding: .35rem .7rem; margin-right: .6rem; cursor: pointer; }
.field { margin-bottom: 1rem; } .field .hint { color: var(--muted); font-size: .78rem; margin-top: .3rem; }
.check { display: flex; align-items: center; gap: .55rem; font-weight: 500; color: var(--text); } .check input { width: 18px; height: 18px; }
.row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; } .row > * { min-width: 0; } .row > .field { flex: 1 1 160px; margin-bottom: 0; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; padding: .75rem; background: rgba(14, 19, 28, .9); border: 1px solid var(--line); border-radius: var(--radius); }
.filters > * { flex: 1 1 150px; width: auto; min-width: 0; }
.filters .btn { flex: 0 0 auto; }
form.inline { display: inline; }
.errtext { color: var(--bad); font-size: .83rem; }

/* ───────── Tables: horizontal scroll on desktop, stacked cards on phones ───────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .7rem .75rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 500 .68rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); white-space: nowrap; background: rgba(148, 170, 210, .035); border-bottom-color: var(--line-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.num { font-size: .9em; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: rgba(79, 216, 232, .045); }
tbody tr:last-child td { border-bottom: 0; }
/* wide day-by-day tables: tighter cells so they fit without sideways scrolling */
table.tight th, table.tight td { padding: .65rem .5rem; }
table.tight th { letter-spacing: .06em; }
@media (min-width: 701px) { table.tight th, table.tight td, table.tight td.num, table.tight th.num { text-align: center; } table.tight th:first-child, table.tight td:first-child { text-align: left; } table.tight .net-note { margin-left: auto; margin-right: auto; } }
.net-note { font-size: .7rem; line-height: 1.3; white-space: normal; max-width: 8rem; margin-left: auto; }
@media (max-width: 700px) { .net-note { white-space: normal; text-align: right; } }
@media (min-width: 701px) and (max-width: 1799px) { .card:has(table.tight) { padding-left: .9rem; padding-right: .9rem; } table.tight { font-size: .84rem; } table.tight th, table.tight td { padding: .6rem .3rem; } table.tight th { font-size: .62rem; letter-spacing: .03em; white-space: normal; } table.tight .badge { white-space: normal; max-width: 9.5rem; } .net-note { max-width: 6rem; } }
table.tight td:first-child, table.tight th:first-child { padding-left: .75rem; }
@media (max-width: 700px) {
  table.cards thead { display: none; }
  table.cards, table.cards tbody, table.cards tr, table.cards td { display: block; width: 100%; }
  table.cards tr { border: 1px solid var(--line); border-left: 2px solid rgba(255, 138, 26, .55); border-radius: var(--radius-sm); margin-bottom: .65rem; padding: .4rem .6rem; background: rgba(19, 25, 38, .9); }
  table.cards td { border: 0; display: flex; justify-content: space-between; gap: 1rem; padding: .32rem .2rem; text-align: right !important; min-width: 0; overflow-wrap: anywhere; }
  table.cards td > * { min-width: 0; }
  table.cards td::before { content: attr(data-label); color: var(--muted); font: 500 .66rem/1.6 var(--mono); text-transform: uppercase; letter-spacing: .1em; text-align: left; flex-shrink: 0; max-width: 45%; }
  table.cards td[data-label=""]::before { display: none; }
}
.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 1.1rem 0; color: var(--muted); }
.kv { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: .55rem 1rem; } .kv dt { color: var(--muted); font-size: .88rem; } .kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; gap: .15rem; } .kv dt { margin-top: .6rem; } }
details { margin-bottom: .5rem; } summary { cursor: pointer; font-weight: 600; padding: .35rem 0; }
.tabs { display: flex; gap: .25rem; overflow-x: auto; margin-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.tabs a { padding: .6rem .95rem; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; font: 600 .84rem/1.3 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.tabs a:hover { text-decoration: none; color: #fff; }
.tabs a.on { color: #fff; border-bottom-color: var(--brand); box-shadow: 0 6px 12px -10px var(--brand); }

/* ───────── Charts (server-rendered bars) ───────── */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: .5rem; background-image: linear-gradient(rgba(148, 170, 210, .07) 1px, transparent 1px); background-size: 100% 42px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; position: relative; }
.bars .bar i { display: block; width: 100%; max-width: 34px; border-radius: 1px 1px 0 0; background: linear-gradient(180deg, #ff8a1a, rgba(255, 138, 26, .3)); min-height: 3px; box-shadow: 0 0 14px -4px rgba(255, 138, 26, .7); }
.bars .bar i.neg { background: linear-gradient(180deg, rgba(79, 216, 232, .3), #4fd8e8); box-shadow: 0 0 14px -4px rgba(79, 216, 232, .7); }
.bars .bar i.zero { background: var(--surface-3); box-shadow: none; }
.bars .bar em { font-style: normal; font-family: var(--mono); font-size: .62rem; color: var(--faint); margin-top: .35rem; white-space: nowrap; max-width: 100%; overflow: hidden; }
.bars .bar:hover i { filter: brightness(1.15); }
.bars .bar .tip { display: none; position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); background: #05070b; border: 1px solid var(--brand); color: #fff; font: .7rem/1.4 var(--mono); padding: .35rem .55rem; border-radius: 2px; width: max-content; max-width: 190px; pointer-events: none; z-index: 2; text-align: center; }
.bars .bar:hover .tip { display: block; }
.bars .bar:first-child .tip, .bars .bar:nth-child(2) .tip { left: 0; transform: none; }
.bars .bar:last-child .tip, .bars .bar:nth-last-child(2) .tip { left: auto; right: 0; transform: none; }
@media (max-width: 640px) { .bars { gap: 3px; height: 140px; } .bars .bar em { font-size: .55rem; } .bars.dense .bar:nth-child(even) em { visibility: hidden; } }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .78rem; color: var(--muted); } .legend span { display: inline-flex; align-items: center; gap: .35rem; }
.legend span::before { content: ''; width: 10px; height: 10px; border-radius: 1px; background: var(--brand); }
.legend span.neg { color: var(--muted); } .legend span.neg::before { background: var(--data); }
.meter { height: 6px; border-radius: 1px; background: rgba(148, 170, 210, .1); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--brand); box-shadow: 0 0 10px var(--brand); }
.meter.bad i { background: var(--bad); box-shadow: 0 0 10px var(--bad); }
.meter.warn i { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.list-row > * { min-width: 0; }
.list-row:last-child { border-bottom: 0; }
.rank { width: 26px; height: 26px; border-radius: 2px; background: var(--surface-3); color: var(--muted); font: 600 .72rem/1 var(--mono); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rank.top { background: var(--brand); color: var(--brand-ink); }
.empty { text-align: center; padding: 1.5rem 1rem; color: var(--muted); }
.empty .ico { color: var(--faint); margin-bottom: .4rem; }

/* ───────── Login / public ───────── */
.center { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.center .card { width: 100%; max-width: 420px; }
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-art { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: 2.5rem; border-right: 1px solid var(--line);
  background: radial-gradient(700px 480px at 30% 35%, rgba(255, 138, 26, .16), transparent 65%), radial-gradient(500px 400px at 90% 100%, rgba(79, 216, 232, .08), transparent 70%), var(--bg-2); }
.auth-art::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(120, 150, 200, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 150, 200, .08) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(180deg, #000, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); pointer-events: none; }
.auth-art > * { position: relative; z-index: 1; }
.auth-art .logo { width: min(440px, 88%); height: auto; margin: 0 auto; display: block; filter: drop-shadow(0 20px 50px rgba(255, 122, 26, .25)); }
.auth-art .pitch { max-width: 460px; }
.auth-art .pitch h2 { font-size: 1.5rem; margin-bottom: .4rem; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem; }
.auth-form form { width: 100%; max-width: 380px; }
.auth-form h1 { font-size: 2rem; }
.auth-form .mlogo { display: none; }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-form { align-items: flex-start; padding-top: 2.5rem; background: radial-gradient(600px 360px at 50% 0%, rgba(255, 138, 26, .13), transparent 70%); }
  .auth-form .mlogo { display: block; width: 210px; max-width: 70%; height: auto; margin: 0 auto 1.8rem; }
}
.pub { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.pubnav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; padding: 1rem 0; }
.hero { padding: 2.5rem 0 1.5rem; } .hero h1 { font-size: 2.1rem; line-height: 1.15; }
@media (max-width: 640px) { .hero h1 { font-size: 1.6rem; } }
.docs h2 { margin-top: 2.2rem; padding-top: .9rem; border-top: 1px solid var(--line); } .docs table td, .docs table th { font-size: .88rem; }

/* ───────── Game thumbnails ───────── */
.thumb { width: 56px; height: 40px; border-radius: 2px; object-fit: cover; background: var(--surface-3); display: inline-block; vertical-align: middle; border: 1px solid var(--line); }
.thumb.ph { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--muted); }
.thumb.lg { width: 160px; height: 112px; border-radius: 3px; font-size: 2rem; }
@media (max-width: 700px) { table.cards td .thumb { width: 72px; height: 52px; } }

/* ───────── Live amounts: rolling digits like a meter (partials/live-amounts) ───────── */
.odo-run { display: inline-flex; align-items: flex-start; line-height: 1.2em; font-variant-numeric: tabular-nums; white-space: nowrap; vertical-align: text-bottom; max-width: 100%; }
.odo-c { display: inline-block; height: 1.2em; overflow: hidden; }
.odo-strip { display: flex; flex-direction: column; transition: transform 1.1s cubic-bezier(.2, .75, .15, 1); will-change: transform; }
.odo-strip span { display: block; height: 1.2em; line-height: 1.2em; text-align: center; }
.odo-up { color: var(--ok) !important; text-shadow: 0 0 12px rgba(61, 220, 151, .55); transition: color .4s, text-shadow .4s; }
.odo-down { color: var(--bad) !important; text-shadow: 0 0 12px rgba(255, 107, 129, .55); transition: color .4s, text-shadow .4s; }
.meter i { transition: width .9s cubic-bezier(.2, .75, .15, 1); }
.bars .bar i { transition: height .9s cubic-bezier(.2, .75, .15, 1); }

/* ───────── Electric cyan accent: labels, links, active menu, highlighted names (brand orange stays on logo + primary buttons) ───────── */
a { color: var(--accent); }
a:hover { color: #7ff8ff; }
.alert a { color: #fff; }
.eyebrow { color: var(--accent); font-weight: 700; text-shadow: var(--accent-glow); }
.eyebrow::before { color: var(--accent); opacity: .75; }
.hl { color: var(--accent); text-shadow: var(--accent-glow); }
.nav .grp::before { color: var(--accent); opacity: .6; }
.nav a:hover { background: var(--accent-soft); }
.nav a:hover .ico { color: var(--accent); }
.nav a.on { background: linear-gradient(90deg, rgba(0, 240, 255, .15), rgba(0, 240, 255, 0)); color: var(--accent); }
.nav a.on .ico { color: var(--accent); }
.nav a.on::before { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.side-tag { color: var(--accent); background: var(--accent-soft); border-color: rgba(0, 240, 255, .35); font-weight: 700; }
.side-org { border-left-color: var(--accent); }
.tabs a.on { color: var(--accent); border-bottom-color: var(--accent); box-shadow: 0 6px 12px -10px var(--accent); }
.card-head a, .pager a { color: var(--accent); }
.stat .label { color: #a3adc0; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---- Daily fees: month switcher, totals row, day x operator matrix ---- */
.monthnav { display: inline-flex; align-items: center; gap: .35rem; margin: 0; }
.monthnav input[type=month] { width: auto; max-width: 170px; padding: .38rem .55rem; }
tfoot tr.total td { border-top: 1px solid rgba(255, 138, 26, .45); background: rgba(255, 138, 26, .06); font-family: var(--mono); }
tr.hold td { background: rgba(255, 176, 32, .06); }
.matrix-wrap { overflow-x: auto; }
table.matrix { min-width: 100%; }
table.matrix th, table.matrix td { white-space: nowrap; }
table.matrix th:first-child, table.matrix td:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; }
table.matrix td.zero { color: var(--muted); opacity: .55; }
table.matrix tr.sum td { border-top: 1px solid rgba(255, 138, 26, .45); background: rgba(255, 138, 26, .06); font-weight: 600; }
table.matrix tr.sum td:first-child { background: #1c1712; }
table.matrix th a { color: inherit; }
@media (max-width: 700px) {
  table.cards tfoot { display: block; width: 100%; }
  table.cards tfoot tr.total { border-left-color: var(--brand); }
  .monthnav input[type=month] { max-width: 140px; }
}
.tabs-inline { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 1rem; position: sticky; top: 0; z-index: 5; padding: .45rem 0; background: linear-gradient(var(--bg) 70%, transparent); }
.tabs-inline a { font: 500 .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: .45rem .7rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm); color: var(--muted); background: var(--surface); }
.tabs-inline a:hover { color: var(--brand); border-color: rgba(255, 138, 26, .5); }
section[id], .card[id], .grid[id] { scroll-margin-top: 4.5rem; }
[hidden] { display: none !important; }

/* ---- Guide pages (How fees work) ---- */
.guide h2 { display: flex; align-items: center; gap: .6rem; }
.guide p { line-height: 1.65; margin: .4rem 0; }
.step-no { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: 0 0 auto; border-radius: 50%; background: var(--brand-soft); color: var(--brand); border: 1px solid rgba(255, 138, 26, .45); font: 700 .85rem/1 var(--mono); }
.formula { margin: .8rem 0; padding: .8rem 1rem; border: 1px dashed rgba(0, 240, 255, .35); border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent); font: 600 .95rem/1.5 var(--mono); overflow-wrap: anywhere; }
.checks { margin: .5rem 0; padding-left: 1.2rem; line-height: 1.7; }
.checks li { margin: .25rem 0; }
.callout { margin-top: .9rem; padding: .8rem 1rem; border-left: 3px solid var(--brand); background: var(--brand-soft); border-radius: var(--radius-sm); }
.callout p { margin: .3rem 0; }
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin: .8rem 0 0; }
.timeline > div { padding: .7rem .8rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface-2); display: flex; flex-direction: column; gap: .25rem; }
.timeline > div b { font: 700 1.05rem/1 var(--mono); color: var(--text); }
.timeline > div span { font-size: .85rem; color: var(--muted); line-height: 1.4; }
.timeline > div.hi { border-color: rgba(255, 138, 26, .55); }
.timeline > div.hi b { color: var(--brand); }
.faq dt { font-weight: 600; margin-top: .9rem; }
.faq dd { margin: .3rem 0 0; color: var(--muted); line-height: 1.6; }
@media (max-width: 700px) { .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media print {
  .side, .topbar, .no-print, .credit-banner, .side-foot { display: none !important; }
  .shell, .main { display: block !important; margin: 0 !important; padding: 0 !important; }
  body { background: #fff !important; color: #111 !important; }
  .card { background: #fff !important; border: 1px solid #ccc !important; box-shadow: none !important; break-inside: avoid; color: #111 !important; }
  .card::before, .card::after { display: none !important; }
  .muted, .faq dd, .timeline > div span { color: #444 !important; }
  .formula { color: #0b5d66 !important; background: #eefbfc !important; }
  h1, h2, b, td, th { color: #111 !important; }
  details:not([open]) > *:not(summary) { display: block !important; }
  .timeline > div, .callout, .badge { background: #fff !important; border-color: #bbb !important; }
  .timeline > div b, .timeline > div.hi b { color: #111 !important; }
  table.cards thead th, tfoot tr.total td { background: #f2f2f2 !important; color: #111 !important; }
  tbody tr:nth-child(n) td { background: #fff !important; }
  .pos { color: #0a7a3e !important; } .neg { color: #b42318 !important; }
  .step-no { background: #fff3e6 !important; color: #c25e00 !important; }
  .guide td:first-child, .guide th:first-child { white-space: nowrap; }
  .guide table { font-size: 11px; }
}
/* narrower windows: the day-by-day table a little smaller so all 13 columns fit */
@media (min-width: 701px) and (max-width: 1499px) { table.tight { font-size: .78rem; } table.tight th, table.tight td { padding: .55rem .22rem; } }

/* Fees per operator vs the provider: three labelled lines per cell */
.matrix .oc { display: flex; justify-content: flex-end; align-items: center; gap: .45rem; white-space: nowrap; line-height: 1.55; }
.matrix .oc + .oc { margin-top: .1rem; }
.oc-tag { font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; padding: .05rem .35rem; border-radius: 4px; border: 1px solid; font-weight: 600; }
.oc-fee { color: var(--brand); border-color: rgba(255, 138, 26, .45); background: var(--brand-soft); }
.oc-prov { color: var(--data); border-color: rgba(79, 216, 232, .45); background: var(--data-soft); }
.oc-gain { color: var(--ok); border-color: rgba(61, 220, 151, .45); background: var(--ok-soft); }
.oc-loss { color: var(--bad); border-color: rgba(255, 107, 129, .45); background: var(--bad-soft); }
.oc-provv { color: var(--data); }
.oc-pct { font-size: .75rem; opacity: .85; }
.oc-legend { display: inline-flex; gap: .3rem; margin-top: .25rem; }
.oc-legend { flex-wrap: wrap; align-items: center; row-gap: .3rem; }
.oc-legend .oc-tag { flex: none; }
/* phones: the per-operator matrix becomes one card per day */
.opm { display: none; }
@media (max-width: 760px) {
  .opm-table { display: none; }
  .opm { display: grid; gap: .6rem; }
  .opm-day { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .6rem .75rem; background: var(--surface-2); }
  .opm-day.hold { border-color: rgba(255, 179, 92, .45); }
  .opm-day.sum { border-color: rgba(255, 138, 26, .45); background: rgba(255, 138, 26, .06); }
  .opm-head { margin-bottom: .35rem; }
  .opm-op { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; padding: .4rem 0; border-top: 1px dashed var(--line); }
  .opm-name { font-weight: 600; padding-top: .1rem; }
  .opm-total .opm-name { color: var(--brand); }
  .opm .oc { display: flex; justify-content: flex-end; align-items: center; gap: .45rem; white-space: nowrap; line-height: 1.55; }
  .card-head .oc-legend { font-size: .78rem; }
}
/* Daily fees: the day's GGR by studio, opened under the day */
tr.day-studios > td { padding-top: 0 !important; padding-bottom: .5rem !important; border-top: 0 !important; }
tr.day-studios summary { cursor: pointer; font-size: .82rem; color: var(--data); padding: .2rem 0; }
tr.day-studios summary b { color: var(--data); font-weight: 600; }
tr.day-studios details[open] summary { margin-bottom: .4rem; }
table.ds-table { background: var(--surface-2); border-radius: var(--radius-sm); }
table.ds-table th, table.ds-table td { font-size: .8rem; }
@media (max-width: 700px) { tr.day-studios > td { display: block; } }
.ccy-chips { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .2rem; }
.ccy-chip { display: inline-block; font-family: var(--mono); font-size: .66rem; letter-spacing: .04em; padding: .02rem .32rem; border-radius: 4px; border: 1px solid; }
.ccy-chip.asia { color: var(--brand); border-color: rgba(255, 138, 26, .45); background: var(--brand-soft); }
.ccy-chip.row { color: var(--data); border-color: rgba(79, 216, 232, .45); background: var(--data-soft); }
table.ds-table tr.ccy-row td { color: var(--muted); font-size: .76rem; padding-top: .25rem; padding-bottom: .25rem; }
table.ds-table tr.ccy-row td:first-child { padding-left: 1.4rem; }
.ccy-chip:not(.asia):not(.row) { color: var(--muted); border-color: var(--line-2); }

/* Dashboard: panel profit (today / month / all time) */
.profit-table { width: 100%; border-collapse: collapse; }
.profit-table th, .profit-table td { padding: .55rem .6rem; border-bottom: 1px solid var(--line, rgba(255,255,255,.08)); vertical-align: top; }
.profit-table th { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted, #8b95a7); font-weight: 600; }
.profit-table td:first-child { white-space: nowrap; }
.profit-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.profit-table tr.profit-net td { border-bottom: 0; font-size: 1.05rem; }
@media (max-width: 640px) {
  .profit-table th, .profit-table td { padding: .45rem .3rem; font-size: .82rem; }
  .profit-table td:first-child { white-space: normal; }
  .profit-table tr.profit-net td { font-size: .9rem; }
}
.profit-cards { display: none; }
.profit-mini { padding: .7rem 0; border-bottom: 1px solid var(--line, rgba(255,255,255,.08)); }
.profit-mini:last-child { border-bottom: 0; }
.profit-mini .label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted, #8b95a7); margin-bottom: .35rem; }
.profit-mini .pm-row { display: flex; justify-content: space-between; gap: .75rem; padding: .15rem 0; font-size: .9rem; }
.profit-mini .pm-row .num { text-align: right; font-variant-numeric: tabular-nums; }
.profit-mini .pm-net { font-size: 1rem; }
@media (max-width: 640px) {
  .profit-card .pf-main { display: none; }
  .profit-cards { display: block; }
}
.profit-table td.pf-preview { opacity: .62; font-style: italic; }
.profit-mini.pf-preview { opacity: .62; }
.pf-months summary { cursor: pointer; color: var(--muted, #8b95a7); }
.pf-months .profit-table td:first-child { white-space: nowrap; }
.pf-months .pf-usd { white-space: nowrap; }
@media (max-width: 640px) { .pf-months .pf-usd { display: none; } }

/* Operators list: credit level colour */
.warn-text { color: var(--warn, #f5a524); }

/* Global search (admin sidebar + topbar) */
.side-search { position: relative; margin: -.35rem .55rem .9rem; }
.side-search svg { position: absolute; left: .6rem; top: 50%; transform: translateY(-50%); color: var(--muted, #8b95a7); pointer-events: none; }
.side-search input { width: 100%; padding: .5rem .6rem .5rem 2rem; font-size: .85rem; }
.topbar-actions { display: flex; align-items: center; gap: .5rem; }
.topbar-btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 3px; color: #fff; background: var(--surface); }
td.op-credit { white-space: nowrap; min-width: 11.5rem; }
td.op-credit .badge { margin-left: .25rem; }
@media (max-width: 760px) { td.op-credit { white-space: normal; min-width: 0; } }
/* Big numbers with thousands separators stay on one line (shrink a little in narrow cards) */
.grid.g4 .card.stat .value { white-space: nowrap; word-break: normal; font-size: clamp(1.15rem, 1.75vw, 1.6rem); }

/* Portal overview: how long the credit lasts */
.runway { margin-top: .55rem; display: inline-flex; align-items: center; gap: .35rem; font-size: .82rem; padding: .25rem .55rem; border-radius: 3px; border: 1px solid rgba(46, 204, 113, .35); color: var(--ok, #2ecc71); background: rgba(46, 204, 113, .08); }
.runway.warn { border-color: rgba(245, 165, 36, .45); color: var(--warn, #f5a524); background: rgba(245, 165, 36, .08); }
.runway.bad { border-color: rgba(255, 77, 79, .45); color: var(--bad, #ff4d4f); background: rgba(255, 77, 79, .08); }
.rate-chips { display: flex; flex-wrap: wrap; gap: .25rem; justify-content: flex-start; }
@media (max-width: 760px) { .rate-chips { justify-content: flex-end; } }
/* Daily fees: fee by provider bars */
.hbar { margin-bottom: .6rem; }
.hbar-top { display: flex; justify-content: space-between; gap: .75rem; font-size: .85rem; }
.hbar-top span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { height: 6px; background: rgba(255,255,255,.06); border-radius: 3px; margin-top: .25rem; overflow: hidden; }
.hbar-track i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent, #00f0ff), var(--brand, #ff8a1a)); border-radius: 3px; }
.hbar .muted.small { font-size: .72rem; }
/* Portal: Telegram alerts */
ol.steps { margin: .2rem 0 1rem; padding-left: 1.2rem; line-height: 1.9; }
.code-big { font-size: 1.05rem; padding: .15rem .5rem; letter-spacing: .08em; }

/* Mobile bottom navigation (admin + operator portal) */
.bottomnav { display: none; }
@media (max-width: 900px) {
  .bottomnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 22; background: rgba(6, 8, 13, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: .25rem .25rem calc(.25rem + env(safe-area-inset-bottom)); }
  .bottomnav a, .bottomnav label { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; padding: .35rem .15rem; margin: 0; color: var(--muted, #8b95a7); font-size: .66rem; letter-spacing: .02em; text-decoration: none; cursor: pointer; border-radius: 4px; min-height: 52px; }
  .bottomnav label { font-weight: inherit; text-transform: none; letter-spacing: .02em; }
  .bottomnav span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bottomnav a.on { color: var(--accent, #00f0ff); background: rgba(0, 240, 255, .07); }
  .bottomnav .bn-dot { position: absolute; top: .35rem; right: calc(50% - 16px); width: 8px; height: 8px; border-radius: 50%; background: var(--warn, #f5a524); box-shadow: 0 0 8px var(--warn, #f5a524); }
  .bottomnav .bn-dot.out { background: var(--bad, #ff4d4f); box-shadow: 0 0 8px var(--bad, #ff4d4f); }
  .shell:has(.bottomnav) .content { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
}
@media print { .bottomnav { display: none !important; } }
