/* One Show Media × The VIP Digits.
   VIP: near-black, champagne gold, ivory, Astralaga serif, spaced capitals. One Show Media: bold black, its red play button.
   Gold carries identity and navigation; red is kept for what is urgent (late work, counts). The delay bar stays the one loud chart. */
@font-face { font-family: Astralaga; src: url(/fonts/astralaga_regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Astralaga; src: url(/fonts/astralaga_medium.woff2) format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: Inter; src: url(/fonts/inter.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f6f2ea; --panel: #fffdf9; --sunk: #f2ece1; --ink: #17120e; --muted: #6a6157; --line: #e6ddcd;
  --accent: #8a6326; --on-accent: #e2bd7a; --btn: #0e0b0a; --wash: #f4e9d3; --gold: #e2bd7a; --gold-deep: #c99a52;
  --rail: #0b0807; --rail-ink: #cbc2b2; --rail-dim: #8c8377; --rail-on: rgba(226, 189, 122, .1); --rail-line: rgba(239, 230, 214, .09);
  --red: #e0182d;
  --good: #1d7a2a; --good-bg: #e2f1e1; --warn: #7c5a06; --warn-bg: #fbefcf; --crit: #c0142a; --crit-bg: #fbe2e2; --wait: #a8430f; --wait-bg: #fbe7dc;
  --s1: #2a78d6; --s2: #eb6834; --bar-work: #d8c7a3; --bar-late: #d22a3a; --bar-wait: #eb6834;
  --display: Astralaga, "Bodoni 72", Didot, Georgia, serif;
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 1px 2px rgba(23, 18, 14, .04), 0 4px 18px rgba(23, 18, 14, .04);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0b0908; --panel: #141110; --sunk: #1b1714; --ink: #efe6d6; --muted: #b0a695; --line: #2c2723;
    --accent: #e2bd7a; --on-accent: #0b0104; --btn: #e2bd7a; --wash: #261f15;
    --rail: #060504; --rail-on: rgba(226, 189, 122, .12);
    --good: #66cf6f; --good-bg: #13291a; --warn: #f0c05a; --warn-bg: #33270d; --crit: #ff7a7f; --crit-bg: #3a1518; --wait: #f3a27d; --wait-bg: #382014;
    --s1: #3987e5; --s2: #d95926; --bar-work: #4a4031; --bar-late: #e0444f; --bar-wait: #d95926;
    --shadow: none;
  }
  .btn.primary:hover { background: #f0cf93; border-color: #f0cf93; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
h1 { font: 500 30px/1.15 var(--display); margin: 0; letter-spacing: .005em; text-wrap: balance; }
h2 { font: 500 19px/1.25 var(--display); margin: 0; letter-spacing: .01em; }
h3 { font-size: 14px; margin: 0; font-weight: 600; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.btn { border: 1px solid var(--line); background: var(--panel); border-radius: 6px; padding: 6px 14px; font-weight: 500; min-height: 38px; transition: border-color .15s, background .15s; }
.btn:hover { border-color: var(--gold-deep); }
.btn.primary { background: var(--btn); border-color: var(--btn); color: var(--on-accent); letter-spacing: .02em; }
.btn.primary:hover { background: #2a211a; border-color: #2a211a; }
.btn.danger { color: var(--crit); }
.btn.small { min-height: 30px; padding: 3px 11px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; }
.link { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 500; text-align: left; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
input:not([type=checkbox]), select, textarea { border: 1px solid var(--line); background: var(--panel); border-radius: 6px; padding: 8px 11px; min-height: 38px; max-width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--gold-deep); outline: none; box-shadow: 0 0 0 3px rgba(201, 154, 82, .18); }
textarea { resize: vertical; }
label.field { display: grid; gap: 5px; font-size: 13px; font-weight: 500; min-width: 0; }
label.field > :is(input, select, textarea) { min-width: 0; font-size: 15px; font-weight: 400; width: 100%; }
.hint { font-size: 13px; color: var(--muted); font-weight: 400; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row > * { min-width: 0; }
.between { justify-content: space-between; }
.stack { display: grid; gap: 12px; min-width: 0; }
.error { color: var(--crit); font-size: 14px; }
.ico { width: 20px; height: 20px; flex: none; display: inline-block; }
.ico svg { width: 100%; height: 100%; display: block; }

/* shell: black-and-gold side rail, ivory working area */
#app { height: 100%; }
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); height: 100%; }
.rail { background: var(--rail); color: var(--rail-ink); padding: 18px 14px 14px; display: flex; flex-direction: column; gap: 2px; min-height: 0; overflow-y: auto; }
.brand { display: grid; gap: 12px; padding-bottom: 18px; margin-bottom: 10px; border-bottom: 1px solid var(--rail-line); }
.brand .wsname { padding: 0 6px; font: 400 15px/1.3 var(--display); color: #efe6d6; letter-spacing: .02em; }
.brand .eyebrow { color: var(--gold); padding: 0 6px; margin-bottom: -6px; font-size: 10px; }
.rail .navlabel { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--rail-dim); padding: 10px 12px 6px; }
.rail button { position: relative; border: 0; background: none; color: inherit; text-align: left; padding: 10px 12px; border-radius: 6px; font-weight: 500; font-size: 14.5px; display: flex; align-items: center; gap: 12px; }
.rail button .lbl { flex: 1; }
.rail button:hover { background: rgba(239, 230, 214, .05); color: #efe6d6; }
.rail button[aria-current] { background: var(--rail-on); color: var(--gold); }
.rail button[aria-current]::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.rail .push { margin-top: auto; }
.rail :focus-visible { outline-color: var(--gold); }
.me { display: flex; align-items: center; gap: 10px; padding: 12px 8px 4px; margin-top: 8px; border-top: 1px solid var(--rail-line); }
.me .ava { background: #1d1813; color: var(--gold); border: 1px solid rgba(226, 189, 122, .35); }
.me .who { flex: 1; min-width: 0; line-height: 1.3; }
.me .who b { display: block; color: #efe6d6; font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me .who span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.me button { padding: 8px; color: var(--rail-dim); }
.me button:hover { color: var(--gold); }
.count { background: var(--red); color: #fff; border-radius: 99px; font-size: 11.5px; font-weight: 600; padding: 0 7px; line-height: 19px; font-variant-numeric: tabular-nums; }

/* Each logo on its own tile: One Show Media black on white, The VIP Digits gold on black. */
.logos { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.logos img { display: block; width: 100%; height: 56px; object-fit: contain; border-radius: 6px; padding: 8px 6px; }
.logos .osm { background: #fff; } .logos .vip { background: #000; padding: 6px; box-shadow: inset 0 0 0 1px rgba(226, 189, 122, .28); }
.logos.big { gap: 10px; margin-bottom: 10px; }
.logos.big img { height: 96px; border-radius: 10px; padding: 14px; } .logos.big .vip { padding: 12px; }
.mbrand { display: none; }

main { min-width: 0; min-height: 0; overflow: auto; }
.page { padding: 34px 40px 64px; display: grid; gap: 24px; max-width: 1260px; min-width: 0; }
.page > * { min-width: 0; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; min-width: 0; display: grid; gap: 14px; align-content: start; box-shadow: var(--shadow); }
.panel > * { min-width: 0; }
.two { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; align-items: start; }
.empty { color: var(--muted); padding: 6px 0; }
.watching { padding: 12px 24px; border-top: 1px solid var(--line); background: var(--sunk); margin: 0; }
tr.flag td { background: var(--warn-bg); }

/* figures */
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; background: var(--panel); overflow: hidden; box-shadow: var(--shadow); }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 0; background: none; text-align: left; border-left: 1px solid var(--line); border-radius: 0; color: inherit; }
.tile:first-child { border-left: 0; }
button.tile:hover { background: var(--sunk); }
.tile b { display: block; font: 500 34px/1.1 var(--display); }
.tile span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.tile.alert b { color: var(--crit); }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; border-radius: 99px; padding: 2px 10px 2px 8px; background: var(--sunk); color: var(--muted); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.pill.good { background: var(--good-bg); color: var(--good); } .pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.crit { background: var(--crit-bg); color: var(--crit); } .pill.crit::before { border-radius: 1px; }
.pill.wait { background: var(--wait-bg); color: var(--wait); } .pill.wait::before { border-radius: 0; transform: rotate(45deg); width: 6px; height: 6px; }
.pill.go { background: var(--wash); color: var(--accent); }
.tag { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--crit); border: 1px solid currentColor; border-radius: 4px; padding: 0 5px; }

/* delay bar */
.delay { position: relative; padding-top: 16px; }
.delay .track { position: relative; height: 12px; border-radius: 6px; background: var(--sunk); overflow: hidden; }
.delay .seg { position: absolute; top: 0; bottom: 0; border-right: 2px solid var(--panel); }
.seg.work { background: var(--bar-work); } .seg.late { background: var(--bar-late); } .seg.wait { background: var(--bar-wait); }
.seg.maybe { background: repeating-linear-gradient(135deg, var(--bar-wait) 0 3px, transparent 3px 7px), var(--sunk); }
.delay .due { position: absolute; top: 2px; bottom: -4px; width: 2px; background: var(--ink); }
.delay .due i { position: absolute; top: -2px; font-style: normal; font-size: 11px; line-height: 14px; white-space: nowrap; color: var(--muted); }
.delay .due.l i { left: 5px; } .delay .due.r i { right: 5px; }
.key { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); }
.key span { display: inline-flex; gap: 6px; align-items: center; }
.key i { width: 12px; height: 10px; border-radius: 2px; position: static; }
.item { display: grid; gap: 7px; padding: 14px 0; border-top: 1px solid var(--line); }
.item:first-of-type { border-top: 0; padding-top: 0; }

/* stacked bars */
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 92px minmax(0, 1fr) 62px; gap: 10px; align-items: center; font-size: 13px; }
.bar .lane { display: flex; gap: 2px; height: 18px; }
.bar .lane i { height: 18px; min-width: 3px; } .bar .lane i:last-child { border-radius: 0 4px 4px 0; }
.bar .v { text-align: right; font-variant-numeric: tabular-nums; }
.bar .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s1 { background: var(--s1); } .s2 { background: var(--s2); }
.meter { height: 6px; border-radius: 3px; background: var(--wash); overflow: hidden; } .meter i { display: block; height: 100%; background: var(--gold-deep); border-radius: 3px; }
.meter.low { background: var(--crit-bg); } .meter.low i { background: var(--bar-late); }

/* tables */
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th { text-align: left; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
td.t { min-width: 210px; }
td.nw { white-space: nowrap; }

/* chat */
.chat { display: grid; grid-template-columns: 260px minmax(0, 1fr); height: 100%; }
.convs { border-right: 1px solid var(--line); padding: 26px 12px; overflow: auto; display: grid; gap: 2px; align-content: start; background: var(--sunk); }
.convs h2 { padding: 0 10px 8px; font-size: 24px; }
.convs .sub { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 18px 10px 6px; display: flex; justify-content: space-between; align-items: baseline; }
.convs .sub .link { letter-spacing: normal; text-transform: none; font-size: 12.5px; }
.conv { border: 0; background: none; padding: 8px 10px; border-radius: 6px; display: flex; align-items: center; gap: 10px; text-align: left; }
.conv .dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; background: var(--panel); border: 1px solid var(--line); color: var(--accent); flex: none; }
.conv .dot.hash { border-radius: 6px; font-family: var(--display); font-size: 14px; }
.conv:hover { background: var(--panel); } .conv[aria-current] { background: var(--panel); font-weight: 600; box-shadow: inset 2px 0 0 var(--gold-deep); }
.conv > .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; min-width: 0; min-height: 0; background: var(--panel); }
.thread header { padding: 18px 24px 14px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.thread header h2 { font-size: 22px; }
.back { display: none; }
.log { overflow: auto; padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.log > :first-child { margin-top: auto; }
.msg { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; max-width: 780px; }
.ava { width: 36px; height: 36px; border-radius: 50%; background: #17120e; color: var(--gold); font-weight: 600; font-size: 12.5px; letter-spacing: .04em; display: grid; place-items: center; flex: none; }
.msg .who { font-weight: 600; font-size: 14px; } .msg time { color: var(--muted); font-size: 12px; font-weight: 400; margin-left: 8px; }
.msg .body { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg .make { visibility: hidden; font-size: 13px; } .msg:hover .make, .msg:focus-within .make { visibility: visible; }
.at { color: var(--accent); font-weight: 600; }
.sys { color: var(--muted); font-size: 13px; padding-left: 48px; font-style: italic; }
.card { margin-top: 8px; border: 1px solid var(--line); border-left: 3px solid var(--gold-deep); background: var(--sunk); border-radius: 8px; padding: 12px 14px; display: grid; gap: 8px; max-width: 560px; }
.card .title { font-weight: 600; }
.compose { border-top: 1px solid var(--line); padding: 14px 24px calc(16px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 10px; }
.compose textarea { width: 100%; resize: none; min-height: 46px; max-height: 160px; border-radius: 22px; padding: 11px 16px; }
.compose .box { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.compose .box .btn { min-height: 46px; border-radius: 23px; padding: 0 20px; }
.strip { border: 1px solid var(--gold-deep); background: var(--wash); border-radius: 10px; padding: 12px 14px; display: grid; gap: 8px; }
.strip .grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr) minmax(0, 1fr); gap: 8px; }
.sugs { display: flex; flex-wrap: wrap; gap: 6px; }
.day { align-self: center; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* dialogs, toasts */
dialog { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--ink); padding: 0; width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); overflow: auto; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }
dialog::backdrop { background: rgba(11, 8, 7, .62); backdrop-filter: blur(2px); }
dialog .in { padding: 22px 24px; display: grid; gap: 16px; }
dialog .in > * { min-width: 0; }
dialog h2 { font-size: 22px; }
.close { border: 0; background: none; font-size: 22px; line-height: 1; padding: 4px 8px; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 18px; }
.facts div span { display: block; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.claim { background: var(--sunk); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; display: grid; gap: 7px; }
#toasts { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; z-index: 50; width: min(380px, calc(100vw - 32px)); }
.toast { background: #0e0b0a; color: #efe6d6; border: 0; border-left: 3px solid var(--gold); padding: 12px 15px; border-radius: 8px; text-align: left; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.notes { max-height: 60vh; overflow: auto; }
.note { width: 100%; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; padding: 11px 0; display: grid; grid-template-columns: 10px 1fr; gap: 10px; }
.note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; background: transparent; }
.note.new::before { background: var(--red); }
.note time { color: var(--muted); font-size: 12px; display: block; }
.code { font-family: ui-monospace, Menlo, monospace; font-size: 13px; background: var(--sunk); border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px; overflow-wrap: anywhere; user-select: all; }

/* sign in: the VIP night look, whatever the device theme */
.gate { min-height: 100%; display: grid; place-items: center; padding: 28px 16px;
  background: radial-gradient(120% 80% at 50% 0%, #2a0411 0%, #0b0104 55%, #050203 100%); color: #efe6d6;
  --panel: #120d0c; --sunk: #1a1412; --ink: #efe6d6; --muted: #b3a998; --line: rgba(239, 230, 214, .13); --accent: #e2bd7a; --btn: #e2bd7a; --on-accent: #0b0104; color-scheme: dark; }
.gatebox { width: min(420px, 100%); display: grid; gap: 14px; }
.gatebox > .row { padding: 0 4px; }
.gate form { width: 100%; display: grid; gap: 16px; background: rgba(18, 13, 12, .86); border: 1px solid rgba(226, 189, 122, .22); border-radius: 12px; padding: 30px 28px; color: #efe6d6; }
.gate h1 { font-size: 28px; }
.gate .btn.primary:hover { background: #f0cf93; border-color: #f0cf93; }
.gate input { background: #0b0807; }
.gate .logos.big img { box-shadow: none; }
.gate .logos .vip { box-shadow: inset 0 0 0 1px rgba(226, 189, 122, .35); }
.gate .tagline { text-align: center; font-size: 10.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); opacity: .85; }

@media (max-width: 1000px) { .two { grid-template-columns: minmax(0, 1fr); } .tiles { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); } .tile { border-left: 0; border-top: 1px solid var(--line); } .page { padding: 28px 24px 56px; } }
/* phones: black tab bar with icons at the bottom, slim brand bar at the top of each page */
@media (max-width: 760px) {
  .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .rail { grid-row: 2; flex-direction: row; padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); gap: 0; overflow: visible; border-top: 1px solid rgba(226, 189, 122, .18); }
  .rail .brand, .rail .navlabel, .rail .me { display: none; } .rail .push { margin: 0; }
  .rail button { flex: 1; flex-direction: column; justify-content: center; gap: 3px; padding: 7px 2px 5px; font-size: 10.5px; letter-spacing: .03em; min-width: 0; border-radius: 8px; }
  .rail button .lbl { flex: none; }
  .rail button[aria-current]::before { left: 30%; right: 30%; top: -6px; bottom: auto; width: auto; height: 2px; border-radius: 0 0 2px 2px; }
  .rail button[aria-current] { background: none; }
  .rail .ico { width: 22px; height: 22px; }
  .rail .count { position: absolute; top: 2px; left: calc(50% + 6px); font-size: 10.5px; line-height: 16px; padding: 0 5px; }
  .mbrand { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -18px -16px 4px; padding: 10px 16px; background: var(--rail); border-bottom: 1px solid rgba(226, 189, 122, .18); }
  .mbrand .logos { grid-template-columns: 74px 74px; gap: 6px; } .mbrand .logos img { height: 36px; padding: 5px; }
  .mbrand .eyebrow { color: var(--gold); font-size: 9.5px; text-align: right; }
  .page { padding: 18px 16px 40px; gap: 18px; }
  h1 { font-size: 26px; }
  .panel { padding: 16px; }
  .tile { padding: 14px 16px; } .tile b { font-size: 28px; }
  .chat { grid-template-columns: minmax(0, 1fr); } .chat.open .convs { display: none; } .chat:not(.open) .thread { display: none; }
  .convs { padding: 20px 10px; }
  .back { display: inline-block; } .convs { border: 0; }
  .thread header, .log, .compose { padding-left: 14px; padding-right: 14px; }
  .thread header { padding-top: 12px; padding-bottom: 10px; } .thread header h2 { font-size: 20px; }
  .strip .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .strip .grid > .field:first-child, .strip .grid > .field:nth-child(2) { grid-column: 1 / -1; }
  .strip .grid > .field:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .strip .grid input, .strip .grid select { min-height: 34px; padding: 5px 8px; }
  .rail .short { display: none; }
  .msg .make { visibility: visible; }
  #toasts { bottom: 84px; }
  .bar { grid-template-columns: 72px minmax(0, 1fr) 58px; }
  .gate form { padding: 24px 20px; }
}
@media (max-width: 480px) { .rail .long { display: none; } .rail .short { display: inline; } }
@media (min-width: 761px) { .rail .short { display: none; } }
@media (prefers-reduced-motion: no-preference) { .toast { animation: up .18s ease-out; } @keyframes up { from { transform: translateY(8px); } } }

/* Section labels inside the edit-person dialog */
.dlg-sub { font: 600 11px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.dlg-sub:first-child { margin-top: 0; }
.btn:has(.ico) { display: inline-flex; align-items: center; gap: 6px; }
.btn .ico { width: 16px; height: 16px; }
