/* Koscom Cable admin. Generated from the design prototype (admin/prototype/page.html), then extended.
   Colours and type follow koscomnetworks.com: navy #0F1F64, Inter, light blue-grey cards. */
/* Layout: navy rail on the left (brand colour of koscomnetworks.com), white working area on the right.
   Every screen: title and one-line purpose, summary first, table or form second. */
:root {
  --rail: #0F1F64; --rail-deep: #0A174F; --rail-fg: #FFFFFF; --rail-muted: #C3CAE8; --rail-line: #2A3A85;
  --bg: #FFFFFF; --surface: #F4F6FB; --surface-2: #E9EDF7; --line: #DCE1EF;
  --fg: #111111; --fg-soft: #1F1F1F; --muted: #565B6E;
  --accent: #0F1F64; --on-accent: #FFFFFF; --accent-soft: #E6EAF8; --link: #1B34A3;
  --ok: #17693F; --ok-soft: #E3F3EA; --warn: #8A5200; --warn-soft: #FBEFD9;
  --bad: #A6261F; --bad-soft: #FBE6E4; --info: #1B4F9C; --info-soft: #E3EDFB;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r-card: 14px; --r-ctl: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --rail: #0C1851; --rail-deep: #070D2C; --rail-fg: #FFFFFF; --rail-muted: #B5BEE3; --rail-line: #26347A;
    --bg: #0A1030; --surface: #111A44; --surface-2: #18235A; --line: #2A3670;
    --fg: #F3F5FC; --fg-soft: #E3E7F5; --muted: #A8B0D0;
    --accent: #B4C0FF; --on-accent: #0A1030; --accent-soft: #1C2A6B; --link: #AEBBFF;
    --ok: #7FD6A6; --ok-soft: #113A27; --warn: #F2C078; --warn-soft: #3D2B0B;
    --bad: #FF9D96; --bad-soft: #45161A; --info: #9CC3FF; --info-soft: #12305C;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --rail: #0C1851; --rail-deep: #070D2C; --rail-fg: #FFFFFF; --rail-muted: #B5BEE3; --rail-line: #26347A;
  --bg: #0A1030; --surface: #111A44; --surface-2: #18235A; --line: #2A3670;
  --fg: #F3F5FC; --fg-soft: #E3E7F5; --muted: #A8B0D0;
  --accent: #B4C0FF; --on-accent: #0A1030; --accent-soft: #1C2A6B; --link: #AEBBFF;
  --ok: #7FD6A6; --ok-soft: #113A27; --warn: #F2C078; --warn-soft: #3D2B0B;
  --bad: #FF9D96; --bad-soft: #45161A; --info: #9CC3FF; --info-soft: #12305C;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; color: var(--fg); }
h1 { font-size: 28px; line-height: 1.15; }
h2 { font-size: 18px; line-height: 1.25; }
h3 { font-size: 15px; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--link); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-size: 12.5px; }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: 100%; }
.side { background: var(--rail); color: var(--rail-fg); padding: 22px 14px 18px; display: flex; flex-direction: column; gap: 22px; }
.brand { padding: 0 8px; display: flex; flex-direction: column; gap: 2px; }
.brand b { font-size: 19px; font-weight: 700; letter-spacing: 0.2em; }
.brand span { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rail-muted); }
.navgroup { display: flex; flex-direction: column; gap: 2px; }
.navgroup > p { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rail-muted); padding: 0 10px 6px; }
.nav { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--rail-fg); text-decoration: none; font-size: 14.5px; font-weight: 500; opacity: .86; }
.nav svg { width: 18px; height: 18px; flex: none; }
.nav:hover { background: var(--rail-deep); opacity: 1; }
.nav[aria-current="page"] { background: var(--rail-fg); color: var(--rail); opacity: 1; font-weight: 600; }
.nav .count { margin-left: auto; font-size: 12px; font-weight: 600; background: var(--rail-deep); color: var(--rail-fg); border-radius: 999px; padding: 1px 8px; }
.nav[aria-current="page"] .count { background: var(--rail); color: var(--rail-fg); }
.who { margin-top: auto; border-top: 1px solid var(--rail-line); padding: 14px 8px 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.who b { font-weight: 600; font-size: 14px; }
.who span { color: var(--rail-muted); }
.who button { align-self: flex-start; margin-top: 8px; border: 1px solid var(--rail-line); background: transparent; color: var(--rail-fg); border-radius: 999px; padding: 4px 12px; font-size: 13px; cursor: pointer; }
.who button:hover { background: var(--rail-deep); }

main { min-width: 0; padding-block: 26px 56px; padding-inline: clamp(16px, 3vw, 36px); display: flex; flex-direction: column; gap: 22px; }
.view { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.head { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; justify-content: space-between; }
.head > div:first-child { display: flex; flex-direction: column; gap: 6px; min-width: 0; max-width: 68ch; }
.head p { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- pieces ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--bg); color: var(--fg); padding: 8px 14px; font-weight: 500; font-size: 14px; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--surface); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { filter: brightness(1.12); background: var(--accent); }
.btn.danger { color: var(--bad); border-color: var(--bad); }
.btn.sm { padding: 5px 10px; font-size: 13px; }

.banner { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; border-radius: var(--r-card); padding: 12px 16px; background: var(--warn-soft); color: var(--warn); font-size: 14px; }
.banner b { font-weight: 600; }
.banner a { color: var(--warn); font-weight: 600; }

.card { background: var(--surface); border-radius: var(--r-card); padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card.plain { background: var(--bg); border: 1px solid var(--line); }
.card > header { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; justify-content: space-between; }
.card > header p { color: var(--muted); font-size: 13px; }
.cols { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }

.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.tile { background: var(--surface); border-radius: var(--r-card); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--fg); }
.tile b { font-size: 34px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile span { font-size: 13px; color: var(--muted); }
.tile.lead { background: var(--rail); color: var(--rail-fg); }
.tile.lead span { color: var(--rail-muted); }
a.tile:hover { outline: 2px solid var(--line); }

.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 2px 10px; font-size: 12.5px; font-weight: 600; white-space: nowrap; background: var(--surface-2); color: var(--fg-soft); }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.info { background: var(--info-soft); color: var(--info); }
.chip.plain::before { display: none; }

.switch { position: relative; width: 40px; height: 24px; border-radius: 999px; border: 0; background: var(--line); cursor: pointer; flex: none; padding: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); transition: transform .15s; }
.switch[aria-checked="true"] { background: var(--ok); }
.switch[aria-checked="true"]::after { transform: translateX(16px); }
@media (prefers-reduced-motion: reduce) { .switch::after { transition: none; } }

.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
th { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--surface); }
tr:last-child td { border-bottom: 0; }
td.wrap { white-space: normal; min-width: 220px; }
tbody tr.click { cursor: pointer; }
tbody tr.click:hover td { background: var(--surface); }
td .sub { display: block; font-size: 12.5px; color: var(--muted); }
td.r, th.r { text-align: right; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fchip { border: 1px solid var(--line); background: var(--bg); color: var(--fg-soft); border-radius: 999px; padding: 5px 12px; font-size: 13px; cursor: pointer; }
.fchip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.search { flex: 1 1 200px; max-width: 320px; border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 7px 12px; background: var(--bg); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { border: 0; background: none; padding: 9px 14px; cursor: pointer; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--accent); font-weight: 600; }

.list { display: flex; flex-direction: column; }
.list > li, .list > div { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list > :last-child { border-bottom: 0; padding-bottom: 0; }
.list > :first-child { padding-top: 0; }
ul.list { list-style: none; margin: 0; padding: 0; }
.list .grow { flex: 1; min-width: 0; }
.list time { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; flex: none; width: 52px; }

.form { display: grid; gap: 16px 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field .lab { font-weight: 600; font-size: 13.5px; }
.field input, .field select, .field textarea { border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 8px 11px; background: var(--bg); width: 100%; }
.field textarea { min-height: 110px; resize: vertical; line-height: 1.45; }
.field .hint { font-size: 12.5px; color: var(--muted); }
.field .inline { display: flex; align-items: center; gap: 8px; }
.field .inline input { width: 96px; }
.optrow { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.optrow:last-child { border-bottom: 0; padding-bottom: 0; }
.optrow:first-child { padding-top: 0; }
.optrow div { min-width: 0; }
.optrow b { font-weight: 600; font-size: 14px; display: block; }
.optrow span { font-size: 13px; color: var(--muted); }
.savebar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }

/* day line */
.day { position: relative; height: 74px; margin: 6px 4px 0; }
.day .track { position: absolute; left: 0; right: 0; top: 30px; height: 8px; border-radius: 999px; background: var(--surface-2); }
.day .open { position: absolute; top: 30px; height: 8px; border-radius: 999px; background: var(--accent); opacity: .85; }
.day .mark { position: absolute; top: 20px; width: 2px; height: 28px; background: var(--muted); }
.day .mark span { position: absolute; top: 32px; left: 50%; transform: translateX(-50%); font-size: 11.5px; color: var(--muted); white-space: nowrap; text-align: center; line-height: 1.25; }
.day .mark.first span { left: 0; transform: none; text-align: left; }
.day .mark.now { background: var(--bad); }
.day .mark.now span { top: -20px; color: var(--bad); font-weight: 600; }
.day .dot { position: absolute; top: 27px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; border: 2px solid var(--surface); background: var(--ok); }
.day .dot.pending { background: var(--warn); }
.day .dot.declined { background: var(--bad); }

.meter { display: flex; flex-direction: column; gap: 6px; }
.meter .bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.meter .bar i { display: block; height: 100%; background: var(--ok); border-radius: 999px; }
.meter .row { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }

.bubble { background: var(--bg); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 10px 14px; font-size: 14px; white-space: pre-line; max-width: 46ch; }
.logview { background: var(--surface); border-radius: var(--r-card); padding: 14px 16px; overflow-x: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.7; white-space: pre; color: var(--fg-soft); }
.logview .w { color: var(--warn); } .logview .e { color: var(--bad); } .logview .d { color: var(--muted); }

.matrix td, .matrix th { white-space: normal; }
.yes { color: var(--ok); font-weight: 600; } .no { color: var(--muted); }

/* login */
.login { position: fixed; inset: 0; z-index: 50; background: var(--rail); display: grid; place-items: center; padding: 24px 16px; overflow-y: auto; }
.login .box { width: min(400px, 100%); background: var(--bg); border-radius: 18px; padding: 28px 26px; display: flex; flex-direction: column; gap: 16px; }
.login .brand { padding: 0; color: var(--rail-fg); text-align: center; margin-bottom: 18px; }
.login .wrap { width: min(400px, 100%); }


@media (max-width: 520px) { .tiles .lead { grid-column: 1 / -1; } }
@media (max-width: 880px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 16px; }
  .side .navs { order: 3; flex: 1 1 100%; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
  .navgroup { flex-direction: row; gap: 6px; }
  .navgroup > p { display: none; }
  .nav { white-space: nowrap; padding: 7px 12px; }
  .who { margin: 0 0 0 auto; border: 0; padding: 0; flex-direction: row; align-items: center; gap: 10px; }
  .who span { display: none; } .who button { margin: 0; }
  h1 { font-size: 24px; }
}
@media (min-width: 881px) { .side { position: sticky; top: 0; height: 100vh; overflow-y: auto; } .navs { display: flex; flex-direction: column; gap: 22px; } }

/* ---------- additions for the real admin ---------- */
.brand img { width: 172px; max-width: 100%; height: auto; display: block; }
.brand img + span { margin-top: 6px; }
.who form { margin: 0; }
.who a { color: var(--rail-muted); font-size: 13px; }
.note { border-radius: var(--r-card); padding: 12px 16px; background: var(--info-soft); color: var(--info); font-size: 14px; }
.note a { color: var(--info); font-weight: 600; }
.alert { border-radius: var(--r-ctl); padding: 10px 14px; background: var(--bad-soft); color: var(--bad); font-size: 14px; }
.okmsg { border-radius: var(--r-ctl); padding: 10px 14px; background: var(--ok-soft); color: var(--ok); font-size: 14px; }
.empty { padding: 26px 16px; text-align: center; color: var(--muted); }
.kv { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr); gap: 8px 14px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.setrow { display: grid; grid-template-columns: minmax(130px, 42%) minmax(0, 1fr); gap: 4px 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.setrow:last-child { border-bottom: 0; padding-bottom: 0; } .setrow:first-child { padding-top: 0; }
.setrow dt { font-weight: 600; font-size: 14px; } .setrow dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.setrow dd small { display: block; color: var(--muted); font-size: 12.5px; }
dl.sets { margin: 0; }
.shotimg { display: block; max-width: 100%; max-height: 70vh; border-radius: var(--r-card); border: 1px solid var(--line); }
.secret { font-family: var(--mono); font-size: 20px; letter-spacing: 0.04em; padding: 14px 16px; border-radius: var(--r-ctl); background: var(--surface-2); user-select: all; overflow-wrap: anywhere; }
.narrow { max-width: 620px; }
.backlink { font-size: 14px; }
.login .box h2 { font-size: 20px; }
.login .box .btn { justify-content: center; }
.login .brand img { margin: 0 auto; width: 220px; }
.btnrow { display: flex; flex-wrap: wrap; gap: 8px; }
form.inline { display: inline; }
@media (max-width: 560px) { .setrow, .kv { grid-template-columns: minmax(0, 1fr); } }
a.fchip, a.tab, a.tile { text-decoration: none; }
a.tab { display: inline-block; }
.day a.dot { display: block; }
.day a.dot:hover { outline: 2px solid var(--link); }
.login .or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.login .or::before, .login .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* ---------- reports: a toolbar and a sheet ---------- */
.rbar { position: relative; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.rbar .grow { flex: 1 1 0; }
.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--bg); }
.stepbtn { display: grid; place-items: center; width: 36px; color: var(--fg); border-radius: var(--r-ctl); }
.stepbtn:hover { background: var(--surface); }
.stepbtn.off { color: var(--line); }
.stepbtn.off:hover { background: none; }
.stepbtn svg, .pop > summary svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pop { position: relative; }
.pop > summary { list-style: none; cursor: pointer; user-select: none; }
.pop > summary::-webkit-details-marker { display: none; }
.stepper .pop { border-inline: 1px solid var(--line); }
.stepper .pop > summary { display: flex; align-items: baseline; gap: 10px; padding: 7px 12px 7px 14px; font-size: 14px; white-space: nowrap; }
.stepper .pop > summary:hover, .stepper .pop[open] > summary { background: var(--surface); }
.stepper .pop > summary span { color: var(--muted); font-variant-numeric: tabular-nums; }
.stepper .pop > summary svg { align-self: center; color: var(--muted); margin-left: -4px; }
.pop[open] > summary.btn { background: var(--surface); }
.popbox { position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; display: flex; flex-direction: column; gap: 12px; padding: 16px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: 0 14px 36px rgba(10, 16, 48, .16); }
.pop.right .popbox { left: auto; right: 0; }
.poprow { display: flex; align-items: center; gap: 8px; margin: 0; }
.popbox .lab { font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.poprow .lab { width: 46px; flex: none; }
.popbox input { border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 6px 9px; background: var(--bg); font-variant-numeric: tabular-nums; }
.popbox input.short { width: 84px; }
.popbox .hint { font-size: 12.5px; color: var(--muted); max-width: 30ch; }
.popbox .hint.bad { color: var(--bad); }
.btn.quiet { border-color: transparent; color: var(--link); }

.sheet { border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.sheet th, .sheet td { padding: 7px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.sheet tr > :last-child { border-right: 0; }
.sheet th { background: var(--surface); color: var(--fg-soft); font-size: 12.5px; letter-spacing: 0; text-transform: none; text-align: center; }
.sheet th.mon { text-align: left; }
.sheet .d { width: 38px; min-width: 38px; padding-inline: 0; text-align: center; }
.sheet td.c { text-align: center; }
.sheet td.on { background: var(--accent-soft); font-weight: 600; }
.sheet .wk { border-left: 2px solid var(--line); }
.sheet tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.sheet tbody td.empty { border-bottom: 0; }
.sheet tfoot td { background: var(--surface); font-weight: 600; border-bottom: 0; }
.sheet tfoot td.muted { font-weight: 400; }
.sheet .s1, .sheet .s2 { position: sticky; z-index: 1; text-align: left; }
.sheet .s1 { left: 0; width: 84px; min-width: 84px; max-width: 84px; }
.sheet .s2 { left: 84px; }
@media (max-width: 700px) {
  .sheet .s2 { position: static; }
  .rbar .grow { display: none; }
  .pop { position: static; }
  .popbox, .pop.right .popbox { left: 0; right: 0; top: auto; margin-top: 8px; }
  .poprow { flex-wrap: wrap; }
}

/* ---------- editing the directory ---------- */
.card > header > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 0; }
.card > header:has(> div) { flex-wrap: nowrap; align-items: flex-start; }
label.optrow { cursor: pointer; align-items: center; }
.toggle { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 40px; height: 24px; margin: 0; border-radius: 999px; background: var(--line); cursor: pointer; transition: background .15s; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); transition: transform .15s; }
.toggle:checked { background: var(--ok); }
.toggle:checked::after { transform: translateX(16px); }
@media (prefers-reduced-motion: reduce) { .toggle, .toggle::after { transition: none; } }
.more > summary { cursor: pointer; color: var(--link); font-size: 14px; font-weight: 500; list-style-position: inside; }
.more[open] > summary { margin-bottom: 14px; }
.btnrow select { border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 5px 8px; background: var(--bg); font-size: 13px; max-width: 220px; }
.btnrow { align-items: center; }
.field .inline input.num { width: 110px; }
.field input:disabled { background: var(--surface); color: var(--muted); }
.card form.btnrow { margin: 0; }
.waitlist > div { flex-wrap: wrap; align-items: center; }
.waitlist .grow { flex: 1 1 240px; }
td b a { color: inherit; text-decoration: none; }
td b a:hover { text-decoration: underline; }

/* ---------- sandbox (ADM_ENV=dev): another rail colour and one line on every page ---------- */
body.env-dev { --rail: #0B4A45; --rail-deep: #073632; --rail-line: #1F6660; --rail-muted: #B7DAD5; --accent: #0B4A45; --accent-soft: #E0F0EE; --link: #0B5F58; }
.sbx { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; border-radius: var(--r-card); padding: 10px 16px; background: var(--accent-soft); color: var(--accent); font-size: 14px; }
.sbx b { font-weight: 600; }
.sbx .grow { flex: 1 1 0; }
.sbx .sbx-when { color: var(--muted); }
.sbx form { margin: 0; }
.sbx .btn:not(.primary) { background: var(--bg); }
.sbx .pop > summary.btn { display: inline-flex; }
