/* F1 Glance (glance.lesserspace.com), its one stylesheet, grown over the ipad-glance study's eight rounds.
   Safari 12: every inset is spelled out (top/right/bottom/left) and flex gaps get margin fallbacks at the end. */
/* iPad Glance, round 1: the base every take shares. The screen is the iPad mini 2 in landscape,
   1024 by 768 points, drawn at that size and scaled to fit the stage. Each page wears its own app's
   live tokens (lifted Nov 18 2026): Admin from admin/index.html :root, Merlin from merlin/index.html
   :root, HQ from hq/vendor/hq.css :root. The notch is the F1 notch family (skills/notch). */
html, body { margin: 0; height: 100%; background: #0b0a09; overflow: hidden; }
body { font-family: "Manrope", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
#frame { position: absolute; left: 50%; top: 50%; width: 1024px; height: 768px; transform-origin: 50% 50%; }
#screen { position: absolute; top:0;right:0;bottom:0;left:0; overflow: hidden; background: var(--bg); color: var(--ink); transition: background .5s cubic-bezier(.2,.7,.2,1); }

/* ---- the three app looks ---- */
.pg-admin { --bg:#1b1714; --tile:linear-gradient(180deg,#3b3229 0%,#2a231b 60%,#241e17 100%); --edge:rgba(255,236,210,.06);
  --lift:inset 0 1px 0 rgba(255,236,210,.14), inset 0 -1px 0 rgba(0,0,0,.35);
  --ink:#f5f1e9; --gray:#b7ad9d; --faint:#8d8271; --line:#3b3228; --hair:#2e2820;
  --ok:#6bc586; --wait:#e6ab45; --alert:#f2705f; --blue:#5b95f5; --due:#cdbd72; --off:#6b6152; --acc:#5b95f5;
  --panel:linear-gradient(180deg,#352d24 0,#261f18 160px) #261f18; --r:14px; }
.pg-merlin { --bg:#070605; --tile:linear-gradient(180deg,#15100c 0%,#0d0a08 100%); --edge:#2a241e; --lift:inset 0 1px 0 rgba(239,233,220,.05);
  --ink:#efe9dc; --gray:#a89e90; --faint:#8a8175; --line:#2a241e; --hair:#1c1813;
  --ok:#8fb595; --wait:#f6821f; --alert:#d9695c; --blue:#f6821f; --due:#d96f1f; --off:#6f665a; --acc:#f6821f;
  --panel:#0d0a08; --r:12px; }
.pg-hq { --bg:#0f1011; --tile:#2b2d2f; --edge:rgba(255,255,255,.10); --lift:none;
  --ink:#eef0f1; --gray:#b5b8bb; --faint:#95989c; --line:rgba(255,255,255,.10); --hair:rgba(255,255,255,.07);
  --ok:#8fb595; --wait:#d6bf63; --alert:#d0625a; --blue:#7ba3b4; --due:#d6bf63; --off:#95989c; --acc:#f07040;
  --panel:#1c1d1e; --r:14px; }

/* ---- the head ---- */
.hd { position: absolute; left: 26px; right: 26px; top: 18px; height: 34px; display: flex; align-items: center; justify-content: space-between; }
.hd .ttl { font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.hd .ttl em { font-style: normal; color: var(--gray); font-weight: 300; margin-left: 4px; }
.pg-hq .hd .ttl em { color: var(--acc); }
.pg-merlin .hd .ttl em { color: var(--acc); }
.hd .meta { font-size: 13px; color: var(--gray); display: flex; align-items: center; gap: 12px; }
.hd .rf { font: inherit; font-size: 13px; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }

/* ---- the stage the pages hang in ---- */
.stage { position: absolute; left: 26px; right: 26px; top: 66px; bottom: 82px; }
.grid { position: absolute; top:0;right:0;bottom:0;left:0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); grid-template-rows: 1.25fr 1fr 1fr; gap: 14px;
  transition: right .46s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.tl { position: relative; background: var(--tile); border: 1px solid var(--edge); box-shadow: var(--lift); border-radius: var(--r); padding: 16px 18px; overflow: hidden; cursor: pointer;
  transition: transform .12s, opacity .3s, border-color .2s; }
.tl:active { transform: scale(.98); }
.tl.on { border-color: var(--acc); }
.tl .lb { font-size: 13px; color: var(--gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-merlin .tl .lb, .pg-hq .tl .lb { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.tl .big { font-size: 40px; font-weight: 500; line-height: 1.1; margin-top: 4px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl.top .big { font-size: 56px; }
.pg-merlin .tl .big { font-weight: 300; }
.tl .sub { position: absolute; left: 18px; right: 18px; bottom: 14px; font-size: 12.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl .sp { position: absolute; left: 18px; right: 18px; bottom: 16px; height: 30px; }
.tl .dots { display: flex; gap: 5px; margin-top: 10px; } .tl .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--off); opacity: .5; }
.tl .dots i.on { opacity: 1; }
/* EMERGENCY ONLY (the Admin's Critical): the whole tile fills and its words go dark; nothing pulses, ever */
.tl.alarm { background: var(--alert) !important; } .tl.alarm * { color: #1d1916 !important; }

/* ---- the Admin's own pieces, for what a tap opens ---- */
.sy { background: var(--panel); border: 1px solid var(--edge); box-shadow: var(--lift); border-radius: 16px; padding: 6px 22px 8px; }
.sy h3 { margin: 14px 0 6px; font-size: 15px; font-weight: 500; color: var(--ink); }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 13px 0; border-top: 1px solid var(--hair); font-size: 15px; }
.row:first-of-type { border-top: 0; }
.row .k { color: var(--gray); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .v { color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.row.good .v, .row.good .k { color: var(--ok); } .row.warn .k, .row.warn .v { color: var(--wait); } .row.bad .k, .row.bad .v { color: var(--alert); }
.more { font-size: 13px; color: var(--faint); padding: 8px 0 6px; }
.sechead { font-size: 18px; font-weight: 500; margin: 0 0 12px; color: var(--ink); display: flex; align-items: baseline; gap: 14px; }
.sechead .n { margin-left: auto; font-size: 34px; font-weight: 500; letter-spacing: -.02em; }
.back { font: inherit; font-size: 14px; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; cursor: pointer; }

/* the needs you drawer: five rung cells, exactly the Admin's */
.cells { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; align-items: start; }
.cell { background: var(--tile); border: 1px solid var(--edge); box-shadow: var(--lift); border-radius: var(--r); overflow: hidden; }
.cell .ch { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 16px 16px 10px; }
.cell .cname { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--rc); font-weight: 500; }
.cell .cn { font-size: 26px; font-weight: 600; line-height: 1; color: var(--rc); font-variant-numeric: tabular-nums; }
.cell .cwhy { padding: 0 16px 12px; font-size: 12px; color: var(--faint); line-height: 1.45; border-bottom: 1px solid var(--hair); }
.cell .it { padding: 11px 16px; border-bottom: 1px solid var(--hair); }
.cell .it:last-child { border-bottom: 0; }
.cell .ih { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ink); line-height: 1.35; }
.cell .ih em { font-style: normal; font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: var(--rc); white-space: nowrap; }
.cell .iw { font-size: 12px; color: var(--faint); margin-top: 3px; line-height: 1.4; }
.g-crit { --rc: var(--alert); } .g-sys { --rc: var(--blue); } .g-wait { --rc: var(--wait); } .g-due { --rc: var(--due); } .g-look { --rc: var(--gray); }
.cell.zero .cn { opacity: .9; }

/* ---- Live ---- */
.live { position: absolute; top:0;right:0;bottom:0;left:0; }
.ln { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--hair); }
.ln .w { font-size: 28px; line-height: 1.22; min-width: 0; }
.ln .w b { font-weight: 500; color: var(--acc); }
.ln .t { font-size: 20px; color: var(--faint); white-space: nowrap; }

/* ---- the notch: the pages, in an ink tab rising out of the bottom edge ---- */
.notch { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 9; }
.notch::before, .notch::after { content: ""; position: absolute; bottom: 0; width: 16px; height: 16px; }
.notch::before { left: -16px; background: radial-gradient(circle at 0 0, transparent 15.5px, #1b1b19 16px); }
.notch::after { right: -16px; background: radial-gradient(circle at 100% 0, transparent 15.5px, #1b1b19 16px); }
.notch .in { background: #1b1b19; border-radius: 16px 16px 0 0; padding: 10px 10px 12px; display: flex; align-items: center; gap: 10px;
  box-shadow: inset 0 1px 0 rgba(244,243,239,.14); }
.seg { position: relative; display: flex; padding: 3px; border-radius: 13px; background: rgba(244,243,239,.06); }
.seg button { position: relative; z-index: 1; font: inherit; font-size: 13px; letter-spacing: .08em; color: rgba(244,243,239,.72); background: none; border: 0;
  border-radius: 10px; padding: 10px 16px; cursor: pointer; white-space: nowrap; transition: color .3s cubic-bezier(.2,.7,.2,1); }
.seg button.on { color: #1b1b19; }
.seg .pill { position: absolute; top: 3px; bottom: 3px; left: 0; width: 0; background: #f4f3ef; border-radius: 10px; z-index: 0;
  transition: left .44s cubic-bezier(.2,.7,.2,1), width .44s cubic-bezier(.2,.7,.2,1); }
.notch .auto { font: inherit; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #f4f3ef; background: transparent;
  border: 1px solid rgba(244,243,239,.3); border-radius: 10px; padding: 9px 12px; cursor: pointer; }
.notch .auto.on { border-color: #f6821f; color: #f6821f; }

/* the page turn */
.stage > * { transition: opacity .2s, transform .2s; }
.stage.out > * { opacity: 0; transform: translateX(-14px); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* take 3: the tiles stepped left, small */
.tl.sm { padding: 8px 12px; border-radius: 10px; }
.tl.sm .lb { font-size: 11px; } .tl.sm .big { font-size: 22px; margin-top: 2px; }
.tl.sm .sub, .tl.sm .sp, .tl.sm .dots { display: none; }
@keyframes dIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------- round 2 ---------- */
.fill { position: absolute; top:0;right:0;bottom:0;left:0; } .col { display: flex; flex-direction: column; gap: 14px; }
.din { animation: dIn .38s cubic-bezier(.2,.7,.2,1); }
.tl .big small { font-size: 13px; font-weight: 400; color: var(--faint); margin-left: 6px; letter-spacing: 0; }
/* the Admin, six over six, the way the Master sets them, smaller */
.grid.g6 { position: relative; top:auto;right:auto;bottom:auto;left:auto; flex: none; height: 300px; grid-template-columns: repeat(6, minmax(0,1fr)); grid-template-rows: 1fr 1fr; gap: 10px; }
.tl.md { padding: 12px 14px; border-radius: 13px; }
.tl.md .lb { font-size: 12px; } .tl.md .big { font-size: 30px; margin-top: 4px; }
.tl.md .sub { left: 14px; right: 14px; bottom: 11px; font-size: 11px; } .tl.md .sp { left: 14px; right: 14px; bottom: 12px; height: 24px; }
.tl.md .dots { margin-top: 6px; }
.acards { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; }
.ah { font-size: 15px; font-weight: 500; color: var(--ink); margin: 2px 0 8px; }
.acards .row { padding: 10px 0; font-size: 13.5px; cursor: default; }
.acards .row[data-k] { cursor: pointer; }
.sy.pill1 { padding: 14px 18px; font-size: 13.5px; color: var(--gray); }
.sy.pill1.ok { color: var(--ok); } .sy.pill1[data-k] { cursor: pointer; }
/* Merlin: the left side scrolls, the globe rail stays put */
.mer { position: absolute; top:0;right:0;bottom:0;left:0; display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 18px; }
.ml { position: relative; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-right: 4px; padding-bottom: 20px; }
.ml.fixed { overflow: hidden; }
.ml::-webkit-scrollbar { width: 0; }
.grid.g3 { position: relative; top:auto;right:auto;bottom:auto;left:auto; grid-template-columns: repeat(3, minmax(0,1fr)); grid-auto-rows: 104px; grid-template-rows: none; gap: 10px; margin-bottom: 18px; }
.pg-merlin .tl.md .lb { font-size: 10px; } .pg-merlin .tl.md .big { font-size: 28px; }
.ml .sy { margin-bottom: 18px; }
.mr { position: relative; border-left: 1px solid var(--line); }
.mr canvas { position: absolute; top:0;right:0;bottom:0;left:0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.gcap { position: absolute; left: 22px; right: 22px; bottom: 6px; text-align: center; font-size: 13px; color: var(--gray); line-height: 1.6; }
.gcap b { color: #f6821f; font-weight: 400; font-size: 22px; display: block; }
.gcap span { display: block; color: var(--faint); font-size: 12px; }
.acards .row.good .k, .acards .row.bad .k, .acards .row.warn .k { color: var(--gray); }  /* the Master colors the reading, never the name */

/* ---------- round 3 ---------- */
/* Merlin's stat tiles, four across, taller, the number a step smaller so it never meets the line under it */
.grid.g4 { position: relative; top:auto;right:auto;bottom:auto;left:auto; grid-template-columns: repeat(4, minmax(0,1fr)); grid-template-rows: none; grid-auto-rows: 112px; gap: 10px; margin-bottom: 22px; }
.pg-merlin .tl.md .big { font-size: 24px; margin-top: 6px; }
.pg-merlin .tl.md .sub { bottom: 10px; }
.pg-merlin .tl.md .sp { bottom: 12px; height: 20px; }
.msec { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gray); margin: 0 0 10px; display: flex; justify-content: space-between; }
.msec span { letter-spacing: .04em; text-transform: none; color: var(--faint); }
.mods { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); grid-auto-rows: 150px; gap: 10px; margin-bottom: 22px; }
/* an artist, double wide: her mark, her people, her line, in her own color */
.amod { grid-column: span 2; position: relative; background: var(--tile); border: 1px solid var(--edge); border-radius: 12px; padding: 14px 16px; overflow: hidden; cursor: pointer;
  box-shadow: inset 3px 0 0 var(--ac); transition: border-color .2s, transform .12s; }
.amod:active { transform: scale(.985); } .amod.on { border-color: var(--ac); }
.amk { height: 30px; display: flex; align-items: center; }
.alogo { max-height: 26px; max-width: 170px; object-fit: contain; } .alogo.big { max-height: 44px; max-width: 260px; }
.aname { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); white-space: nowrap; } .aname.big { font-size: 16px; }
.anum { font-size: 26px; font-weight: 300; color: var(--ink); margin-top: 8px; font-variant-numeric: tabular-nums; }
.anum small { font-size: 11px; color: var(--faint); margin-left: 8px; letter-spacing: .02em; }
.aspk { position: absolute; right: 16px; top: 18px; width: 44%; height: 34px; }
.aft { position: absolute; left: 16px; right: 16px; bottom: 11px; font-size: 11.5px; color: var(--gray); display: flex; justify-content: space-between; gap: 10px; }
.aft span { color: var(--faint); white-space: nowrap; }
.mod { position: relative; background: var(--tile); border: 1px solid var(--edge); border-radius: 12px; padding: 14px 16px; overflow: hidden; }
.mod.tap { cursor: pointer; }
.wide2 { grid-column: span 2; } .wide4 { grid-column: span 4; }
.mh { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gray); display: flex; justify-content: space-between; }
.mh span { letter-spacing: .02em; text-transform: none; color: #f6821f; }
.bars { position: absolute; left: 16px; right: 16px; top: 38px; bottom: 30px; display: flex; align-items: flex-end; gap: 3px; }
.bars i { flex: 1; background: #7a3f1a; border-radius: 2px 2px 0 0; }
.bax { position: absolute; left: 16px; right: 16px; bottom: 10px; display: flex; justify-content: space-between; font-size: 10.5px; color: var(--faint); }
.wk { position: absolute; left: 16px; right: 16px; top: 38px; bottom: 10px; display: flex; gap: 8px; align-items: flex-end; }
.wk div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 5px; }
.wk i { width: 100%; background: #7a3f1a; border-radius: 3px 3px 0 0; } .wk span { font-size: 10.5px; color: var(--faint); }
.stack { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin: 18px 0 12px; gap: 2px; }
.leg { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11.5px; color: var(--gray); }
.leg b { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.mrow { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--gray); padding: 6px 0; border-top: 1px solid var(--hair); }
.mrow:first-of-type { margin-top: 8px; } .mrow b { font-weight: 400; color: var(--ink); }
/* the card that takes the globe's rail */
.mrc { position: absolute; top:0;right:0;bottom:0;left:18px; overflow: hidden; }
.acard .ach { min-height: 48px; display: flex; align-items: center; padding: 4px 0 12px; border-bottom: 2px solid var(--ac); }
.ast { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 8px; }
.ast div { font-size: 11px; color: var(--faint); line-height: 1.4; } .ast b { display: block; font-size: 24px; font-weight: 300; color: var(--ink); }
.acard .aspk { position: relative; right: auto; top: auto; width: 100%; height: 40px; display: block; margin: 4px 0 2px; }
.mrc .sy { padding: 2px 16px 4px; } .mrc .row { padding: 8px 0; font-size: 13px; } .mrc .ah { font-size: 13px; }

/* Live, take 1: the pulse, one lane per artist across the last 48 hours */
.pulse { position: absolute; top:0;right:0;bottom:0;left:0; display: flex; flex-direction: column; }
.phead { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 2px 0 18px; border-bottom: 1px solid var(--line); }
.pnow { font-size: 30px; font-weight: 300; line-height: 1.2; } .pwhen { font-size: 15px; color: var(--faint); white-space: nowrap; }
.lanes { flex: 1; display: flex; flex-direction: column; justify-content: space-around; padding: 10px 0; }
.lane { display: grid; grid-template-columns: 190px 1fr; align-items: center; gap: 14px; }
.lname { font-size: 15px; color: var(--ink); } .lname span { display: block; font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.track { position: relative; height: 36px; border-bottom: 1px solid var(--hair); }
.track i { position: absolute; top: 50%; transform: translate(-50%,-50%); border-radius: 50%; background: var(--ac); opacity: .55; }
.track i.fresh { opacity: 1; box-shadow: 0 0 0 4px rgba(246,130,31,.18); }
.paxis { display: grid; grid-template-columns: 190px 1fr 1fr 1fr auto; gap: 14px; font-size: 11px; color: var(--faint); padding-top: 6px; }
.paxis span:first-child { grid-column: 2; } 
/* Live, take 2: a departures board */
.board { position: absolute; top:0;right:0;bottom:0;left:0; }
.bhead, .brow { display: grid; grid-template-columns: 120px 220px 1fr 70px; gap: 16px; align-items: baseline; }
.bhead { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.brow { padding: 14px 0; border-bottom: 1px solid var(--hair); font-size: 20px; animation: flip .5s cubic-bezier(.2,.7,.2,1) both; transform-origin: 50% 0; }
.brow.first { font-size: 30px; padding: 20px 0; } .brow.first .bw { color: var(--ink); }
.bt { font-variant-numeric: tabular-nums; color: var(--faint); letter-spacing: .04em; }
.ba { color: var(--ac); letter-spacing: .08em; text-transform: uppercase; font-size: .7em; }
.bw { color: var(--gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .bn { text-align: right; color: var(--faint); font-variant-numeric: tabular-nums; }
@keyframes flip { from { opacity: 0; transform: rotateX(-70deg); } }
.amod .aspk { top: 52px; height: 32px; width: 46%; }  /* below the mark, beside the number: a wide logo never meets it */

/* ---------- round 4: one cell, and the index beside it ---------- */
.solo { display: flex; flex-direction: column; gap: 12px; }
.tl.big { height: 230px; padding: 18px 20px; flex: none; }
.tl.big .lb { font-size: 14px; } .tl.big .big { font-size: 54px; margin-top: 10px; }
.pg-merlin .tl.big .big { font-size: 46px; } .pg-merlin .tl.big .lb { font-size: 11px; }
.tl.big .sub { font-size: 13px; left: 20px; right: 20px; bottom: 18px; } .tl.big .sp { left: 20px; right: 20px; bottom: 20px; height: 46px; }
.amod.big { height: 230px; flex: none; } .amod.big .aspk { top: 96px; width: auto; left: 16px; right: 16px; height: 60px; }
.hint { font-size: 12px; color: var(--faint); padding-left: 4px; }
.ix { min-height: 0; }
.ixn { font-size: 13px; color: var(--faint); margin: 0 0 10px; }
.ixh, .ixr { display: grid; gap: 14px; align-items: baseline; }
.ixh { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.ixh span, .ixr span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ixh .hi { color: var(--acc); }
.ixr { padding: 12px 0; border-bottom: 1px solid var(--hair); font-size: 14.5px; color: var(--gray); font-variant-numeric: tabular-nums; }
.ixr span:first-child { color: var(--ink); }
.ixr .hi { color: var(--ink); font-weight: 500; }
.ixr.good span:nth-child(4) { color: var(--ok); } .ixr.bad span:last-child, .ixr.bad span:first-child { color: var(--alert); }
.pg-admin .ixh .hi { color: #e0a24a; }
.acols { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }

/* ---------- round 5 ---------- */
/* the Admin's first screen: the tiles and the five rungs, nothing else; the cards wait a full scroll down */
.ascroll { position: absolute; top:0;right:0;bottom:0;left:0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.ascroll::-webkit-scrollbar { width: 0; }
.afirst { height: 100%; display: flex; flex-direction: column; gap: 18px; }
.afirst .grid.g6 { height: 330px; }
.asecond { padding-top: 60px; height: 100%; box-sizing: border-box; }
.asecond .acards { height: 100%; }
.rungs { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.rlab { font-size: 15px; font-weight: 500; color: var(--ink); margin: 0 0 10px; display: flex; justify-content: space-between; align-items: baseline; }
.rlab span { font-size: 12.5px; font-weight: 400; color: var(--faint); }
.rrow { flex: 1; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; min-height: 0; }
.rcell { background: var(--tile); border: 1px solid var(--edge); box-shadow: var(--lift); border-radius: var(--r); padding: 14px 16px; cursor: pointer; overflow: hidden; transition: transform .12s; }
.rcell:active { transform: scale(.98); }
.rcell .ch { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.rcell .cname { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--rc); font-weight: 500; }
.rcell .cn { font-size: 30px; font-weight: 600; line-height: 1; color: var(--rc); font-variant-numeric: tabular-nums; }
.rcell .rwhy { font-size: 12px; color: var(--faint); line-height: 1.45; margin-top: 12px; }
.rcell.zero .cn { opacity: .55; } .rcell.zero .cname { opacity: .8; }
.rcell.g-crit:not(.zero) { background: #3a1c18; border-color: #5c2725; }
.rcell.big { height: 230px; flex: none; padding: 20px; } .rcell.big .cn { font-size: 54px; } .rcell.big .cname { font-size: 12px; } .rcell.big .rwhy { font-size: 14px; margin-top: 20px; }
.rit { padding: 16px 0; border-bottom: 1px solid var(--hair); }
.rih { display: flex; justify-content: space-between; gap: 14px; font-size: 17px; color: var(--ink); }
.rih em { font-style: normal; font-family: ui-monospace, Menlo, monospace; font-size: 13px; color: var(--rc); white-space: nowrap; }
.riw { font-size: 14px; color: var(--faint); margin-top: 5px; }
/* Live: three ways to look, in a pill switch that is round to match its pill */
.lwrap { position: absolute; top:0;right:0;bottom:0;left:0; display: flex; flex-direction: column; gap: 14px; }
.lseg { align-self: flex-start; display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.lseg button { font: inherit; font-size: 13px; color: var(--gray); background: none; border: 0; border-radius: 999px; padding: 7px 18px; cursor: pointer; }
.lseg button.on { background: var(--ink); color: var(--bg); }
.lbody { position: relative; flex: 1; min-height: 0; }
.house { position: absolute; top:0;right:0;bottom:0;left:0; display: flex; flex-direction: column; }
.hhead { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.hhead b { display: block; font-size: 34px; font-weight: 500; letter-spacing: -.02em; color: var(--ink); }
.hhead span { font-size: 12.5px; color: var(--faint); }
.hplot { flex: 1; display: flex; align-items: flex-end; gap: 2px; padding-top: 16px; min-height: 0; border-bottom: 1px solid var(--line); }
.hcol { flex: 1; height: 100%; display: flex; flex-direction: column-reverse; justify-content: flex-start; }
.hcol i { display: block; width: 100%; border-radius: 1px; }
.hcol.now { box-shadow: 0 -2px 0 0 rgba(246,130,31,.6) inset; }
.paxis2 { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); padding: 6px 0 12px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px; }
.legend button { font: inherit; font-size: 13px; color: var(--ink); background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.legend button b { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.legend button.off { color: var(--faint); opacity: .55; } .legend button.off b { background: transparent !important; box-shadow: inset 0 0 0 1.5px var(--faint); }
.lbody .pulse .phead { padding-top: 0; }
.ln { border-left: 3px solid var(--ac, transparent); padding-left: 14px; }

/* ---------- round 6 ---------- */
/* Admin: four across again, large enough to read across the room; the five rungs under them */
.afirst .grid.g4a { position: relative; top:auto;right:auto;bottom:auto;left:auto; flex: none; height: 420px; grid-template-columns: repeat(4, minmax(0,1fr)); grid-template-rows: 1fr 1fr; gap: 14px; }
.tl.lg { padding: 16px 18px; }
.tl.lg .lb { font-size: 14px; } .tl.lg .big { font-size: 46px; margin-top: 6px; }
.tl.lg .sub { left: 18px; right: 18px; bottom: 15px; font-size: 13px; } .tl.lg .sp { left: 18px; right: 18px; bottom: 16px; height: 38px; }
.tl.lg .dots { margin-top: 10px; } .tl.lg .dots i { width: 8px; height: 8px; }
.afirst .rungs { flex: 1; } .rcell { padding: 12px 14px; } .rcell .cn { font-size: 28px; } .rcell .rwhy { margin-top: 8px; }
.asecond .grid.g4b { position: relative; top:auto;right:auto;bottom:auto;left:auto; height: 150px; grid-template-columns: repeat(4, minmax(0,1fr)); grid-template-rows: 1fr; gap: 14px; margin-bottom: 26px; }
.asecond .acards { height: auto; } .asecond { height: auto; padding-bottom: 30px; }
/* Merlin: no grid holding the two sides (old Safari let the scrolling side stretch the row and
   pushed the globe to the floor); each side is pinned to the stage instead */
.mer { display: block; }
.mer .ml { position: absolute; top: 0; bottom: 0; left: 0; right: 378px; }
.mer .mr { position: absolute; top: 0; bottom: 0; right: 0; width: 360px; }
.grid.g4.hero { grid-auto-rows: 150px; }
.pg-merlin .tl.lg .lb { font-size: 11px; } .pg-merlin .tl.lg .big { font-size: 40px; font-weight: 300; }
.mods.arts { grid-auto-rows: 188px; }
.amod { padding: 16px 18px; box-shadow: inset 4px 0 0 var(--ac); }
.amk { height: 40px; } .alogo { max-height: 36px; max-width: 230px; } .aname { font-size: 14px; letter-spacing: .2em; }
.anum { font-size: 40px; margin-top: 10px; } .anum small { display: block; margin: 2px 0 0; font-size: 12px; }
.amod .aspk { top: auto; bottom: 34px; right: 18px; width: 52%; height: 64px; }
.aft { font-size: 12.5px; bottom: 13px; left: 18px; right: 18px; }
/* Live: the view index on the right edge */
.is-live .stage { right: 128px; }
.vnotch { position: absolute; right: 0; top: 50%; transform: translateY(-50%); z-index: 9; }
.vnotch:empty { display: none; }
.vnotch::before, .vnotch::after { content: ""; position: absolute; right: 0; width: 16px; height: 16px; }
.vnotch::before { top: -16px; background: radial-gradient(circle at 0 0, transparent 15.5px, #1b1b19 16px); }
.vnotch::after { bottom: -16px; background: radial-gradient(circle at 0 100%, transparent 15.5px, #1b1b19 16px); }
.vn-in { background: #1b1b19; border-radius: 16px 0 0 16px; padding: 10px 10px 10px 12px; display: flex; flex-direction: column; box-shadow: inset 1px 0 0 rgba(244,243,239,.14); }
.vn-in button { font: inherit; font-size: 13px; letter-spacing: .08em; color: rgba(244,243,239,.72); background: none; border: 0; border-radius: 10px; padding: 14px 16px; cursor: pointer; text-align: left; }
.vn-in button + button { margin-top: 4px; }
.vn-in button.on { background: #f4f3ef; color: #1b1b19; }
.asof { font-size: 11.5px; color: var(--faint); padding-top: 8px; }

/* ---------- round 7: Live, the list first ---------- */
.strip { height: 64px; display: flex; align-items: flex-end; flex: none; }
.strip .sc { flex: 1; height: 100%; display: flex; flex-direction: column-reverse; margin-right: 2px; }
.strip .sc i { display: block; width: 100%; border-radius: 1px; }
.strip .sc.now { box-shadow: inset 0 -2px 0 0 rgba(246,130,31,.7); }
.saxis { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--faint); padding: 5px 0 0; border-top: 1px solid var(--line); flex: none; }
.lsum { font-size: 15px; color: var(--gray); padding: 12px 0 4px; flex: none; }
.lsum b { color: var(--ink); font-weight: 500; font-size: 18px; } .lsum .dot { margin: 0 8px; color: var(--faint); }
.lsum .asof { float: right; font-size: 12px; color: var(--faint); padding-top: 4px; }
.lbody .live { position: absolute; top: 0; right: 0; bottom: 0; left: 0; overflow: hidden; }
.lbody .ln { padding: 16px 0 16px 16px; } .lbody .ln .w { font-size: 26px; }
.vn-in button { padding: 11px 14px; font-size: 13px; letter-spacing: .02em; display: flex; align-items: center; }
.vn-in button b { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 9px; flex: none; }
.vn-in button.on b { box-shadow: 0 0 0 2px #f4f3ef; }

/* ---------- round 8: no dead space ---------- */
/* Admin: all twelve, three rows of four, the whole first screen */
.afirst .grid.g12 { position: relative; top:auto;right:auto;bottom:auto;left:auto; flex: 1; height: 100%; grid-template-columns: repeat(4, minmax(0,1fr)); grid-template-rows: repeat(3, 1fr); gap: 14px; }
.tl.lg .big { font-size: 44px; }
/* needs you, open: five rungs the full height */
.npage { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; }
.ncol { background: var(--tile); border: 1px solid var(--edge); box-shadow: var(--lift); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.ncol .ch { display: flex; align-items: baseline; justify-content: space-between; padding: 18px 18px 10px; }
.ncol .cname { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--rc); font-weight: 500; }
.ncol .cn { font-size: 40px; font-weight: 600; line-height: 1; color: var(--rc); font-variant-numeric: tabular-nums; }
.ncol .cwhy { padding: 0 18px 14px; font-size: 13px; color: var(--faint); line-height: 1.45; border-bottom: 1px solid var(--hair); }
.ncol .it { padding: 14px 18px; border-bottom: 1px solid var(--hair); }
.ncol .ih { display: flex; justify-content: space-between; font-size: 15px; font-weight: 500; color: var(--ink); line-height: 1.35; }
.ncol .ih em { font-style: normal; font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; color: var(--rc); white-space: nowrap; margin-left: 10px; }
.ncol .iw { font-size: 13px; color: var(--faint); margin-top: 4px; line-height: 1.4; }
.ncol .nclear { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: 18px; font-size: 15px; color: var(--ok); opacity: .8; }
.ncol.zero .cn { opacity: .55; }
.ncol.g-crit:not(.zero) { background: #3a1c18; border-color: #5c2725; }
/* an open index fills the height: few rows grow taller and larger, many rows stay tight */
.din > .ix { height: 100%; display: flex; flex-direction: column; }
.din > .ix .ixr { flex: 1 1 0; max-height: 92px; align-items: center; font-size: 17px; }
.din > .ix .ixh { flex: none; }
.din > .ix .more, .din > .ix .ixn { flex: none; }
.din > .sy { height: 100%; box-sizing: border-box; display: flex; flex-direction: column; }
.din > .sy .row { flex: 1 1 0; max-height: 84px; align-items: center; font-size: 17px; }
.din > .sy h3 { flex: none; }
.din > .ix.few .ixr { max-height: 150px; font-size: 26px; } .din > .ix.few .ixr span:first-child { font-weight: 500; }  /* a short list reads big instead of leaving the screen empty */
.solo { height: 100%; } .solo .tl.big, .solo .amod.big, .solo .rcell.big { height: auto; flex: 1; } .solo .tl.big .big { font-size: 72px; } .solo .hint { flex: none; }  /* the one cell stands the full height, no empty floor under it */

/* ---- Safari 12 (the iPad mini 2): no flex gap, so the space comes from margins instead.
   Flex gap and inset arrived in Safari together, so a browser without inset gets these. ---- */
@supports not (inset: 0) {
  .hd .meta > * + * { margin-left: 12px; }
  .tl .dots > * + * { margin-left: 5px; }
  .sechead > * + * { margin-left: 14px; }
  .ln .t, .rih em, .cell .ih em, .mrow b, .row .v, .aft span { margin-left: 14px; }
  .notch .in > * + * { margin-left: 10px; }
  .col > * + * { margin-top: 14px; }
  .bars > * + * { margin-left: 3px; }
  .wk > * + * { margin-left: 8px; }
  .wk div > * + * { margin-top: 5px; }
  .stack > * + * { margin-left: 2px; }
  .leg > * { margin: 0 14px 6px 0; }
  .solo > * + * { margin-top: 12px; }
  .afirst > * + * { margin-top: 18px; }
  .lwrap > * + * { margin-top: 14px; }
  .hplot > * + * { margin-left: 2px; }
  .legend > * { margin: 0 8px 8px 0; }
  .legend button b { margin-right: 8px; }
}
