/* RTNTS Connect — portal (RTNTS Global brand: navy, silver, slate; Century Gothic, with Questrial where it isn't installed) */
@font-face { font-family: Questrial; font-weight: 400; font-display: swap; src: url(fonts/questrial-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-weight: 300; font-display: swap; src: url(fonts/poppins-latin-300-normal.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-weight: 400; font-display: swap; src: url(fonts/poppins-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-weight: 500; font-display: swap; src: url(fonts/poppins-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url(fonts/poppins-latin-600-normal.woff2) format('woff2'); }

:root {
  --rose: #6f8cc7; --rose-soft: #dfe6f3; --wine: #1B3A7B; --wine-dark: #142c5e; --plum: #1B3A7B; --plum-dark: #1A1A2E;
  --cream: #F1F4F8; --gold: #C8CDD5; --ink: #1A1A2E; --muted: #6B7A99; --line: #dde2ea; --card: #ffffff; --silver: #C8CDD5;
  --ok: #2e7d4f; --ok-soft: #e3f2e9; --warn: #8a5a00; --warn-soft: #fdf3e1; --bad: #b3261e; --bad-soft: #fbe5e3;
  --radius: 10px; --shadow: 0 1px 2px rgba(27, 58, 123, .05), 0 4px 14px rgba(27, 58, 123, .06);
  --nav-h: 64px; --font: 'Century Gothic', CenturyGothic, Questrial, 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 400 15px/1.5 var(--font); color: var(--ink); background: var(--cream);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { font-family: var(--font); font-weight: 700; letter-spacing: .01em; color: var(--plum-dark); line-height: 1.2; margin: 0 0 .4em; }
h1 { font-size: 1.65rem; } h2 { font-size: 1.2rem; margin-top: 1.2em; } h3 { font-size: 1.02rem; }
a { color: var(--wine); }
code { background: #eef1f6; padding: .05em .35em; border-radius: 5px; font-size: .92em; }
.muted { color: var(--muted); font-size: .9em; }
.small { font-size: .82rem; }
.hidden { display: none !important; }
[hidden] { display: none !important; }

/* buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; border: 1px solid var(--line); background: #fff; color: var(--ink);
  font: 600 .93rem/1 var(--font); padding: .72em 1.05em; border-radius: 8px; cursor: pointer; text-decoration: none; white-space: nowrap;
  min-height: 42px; transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { border-color: #b9c3d6; background: #f7f9fc; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--wine); border-color: var(--wine); color: #fff; }
.btn.primary:hover { background: var(--wine-dark); }
.btn.danger { color: var(--bad); border-color: #efc9c5; }
.btn.danger.solid { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.small { min-height: 34px; padding: .5em .8em; font-size: .84rem; }
.btn.icon { padding: 0; width: 40px; min-height: 40px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
label { display: block; font-weight: 500; font-size: .88rem; margin: .8em 0 0; color: var(--plum-dark); }
label > input, label > select, label > textarea { margin-top: .35em; }
input, select, textarea { width: 100%; font: 400 1rem/1.3 var(--font); color: var(--ink); background: #fff; border: 1px solid #cfd6e2;
  border-radius: 8px; padding: .65em .75em; min-height: 44px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(27, 58, 123, .18); }
input[type=checkbox] { width: auto; min-height: 0; }
input[type=color] { padding: 4px; height: 44px; }
.row { display: flex; gap: .7rem; align-items: flex-end; flex-wrap: wrap; }
.row > * { flex: 1 1 140px; }
.row > .fixed { flex: 0 0 auto; }
.hint { font-size: .82rem; color: var(--muted); font-weight: 400; margin-top: .3em; }
.switch { display: flex; align-items: center; gap: .7em; cursor: pointer; font-weight: 500; margin: .8em 0 0; }
.switch input { appearance: none; -webkit-appearance: none; width: 46px; height: 28px; border-radius: 999px; background: #C8CDD5; position: relative; flex: none; cursor: pointer; transition: background .15s; border: 0; padding: 0; min-height: 0; }
.switch input::after { content: ''; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: left .15s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch input:checked { background: var(--wine); }
.switch input:checked::after { left: 21px; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4em; }
.chip { border: 1px solid #cfd6e2; background: #fff; border-radius: 999px; padding: .35em .8em; font: 600 .84rem/1.2 var(--font); cursor: pointer; color: var(--ink); min-height: 34px; }
.chip.on { background: var(--plum); border-color: var(--plum); color: #fff; }
.daychips .chip { width: 42px; padding: .35em 0; text-align: center; }
.rotchips .chip { display: inline-flex; align-items: center; gap: .4em; }
.rotchips .tvic { flex: none; }
.pill { display: inline-flex; align-items: center; gap: .35em; font-size: .76rem; font-weight: 500; padding: .2em .65em; border-radius: 999px; background: #eef1f6; color: var(--plum); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); } .pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); } .pill.gold { background: #fdf3e1; color: #8a5a00; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #bbb; display: inline-block; flex: none; }
.dot.on { background: #34a36a; box-shadow: 0 0 0 3px rgba(52, 163, 106, .18); } .dot.off { background: #c9b8bf; }
.alert { border-radius: 12px; padding: .8em 1em; margin: .8em 0; font-size: .92rem; }
.alert.bad { background: var(--bad-soft); color: #7a1a14; } .alert.ok { background: var(--ok-soft); color: #1f5a3c; }
.alert.warn { background: var(--warn-soft); color: #6d4b0c; } .alert.info { background: #eef2fa; color: var(--plum-dark); }

/* layout */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem; background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.seal { width: 36px; height: 36px; border-radius: 50%; background: var(--wine); color: var(--cream); display: grid; place-items: center;
  font: 700 1.1rem/1 var(--font); flex: none; }
.brand-name { font: 700 1.05rem/1.1 var(--font); color: var(--wine); letter-spacing: .03em; }
.logo { height: 34px; width: auto; display: block; flex: none; }
.brand-row { display: flex; align-items: center; gap: .7rem; }
.topbar .spacer { flex: 1; }
.topbar .who { font-size: .84rem; color: var(--muted); text-decoration: none; }
.topbar a.who:hover { color: var(--plum-dark); text-decoration: underline; }
.alert[data-noemail] svg { width: 1.1em; height: 1.1em; vertical-align: -.2em; }
.nav { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  display: flex; background: #fff; border-top: 1px solid var(--line); }
.nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); text-decoration: none; font-size: .74rem; font-weight: 500; }
.nav a svg { width: 23px; height: 23px; }
.nav a.on { color: var(--wine); }
main#view { padding: 1rem 1rem calc(var(--nav-h) + 2rem + env(safe-area-inset-bottom)); max-width: 1180px; margin: 0 auto; }
.head { display: flex; align-items: flex-start; gap: .8rem; flex-wrap: wrap; margin: .3rem 0 1rem; }
.head .grow { flex: 1 1 220px; min-width: 0; }
.head h1 { margin: 0; }
.head .actions { display: flex; gap: .5rem; flex-wrap: wrap; }
@media (min-width: 900px) {
  body { padding-left: 220px; }
  .nav { top: 0; bottom: 0; right: auto; width: 220px; height: auto; flex-direction: column; justify-content: flex-start; padding: 84px .8rem 1rem; gap: .2rem; border-top: 0; border-right: 1px solid var(--line); background: #ffffff; }
  .nav a { flex: none; flex-direction: row; justify-content: flex-start; gap: .75rem; padding: .7rem .9rem; border-radius: 10px; font-size: .95rem; }
  .nav a.on { background: #e8eef8; }
  .topbar { margin-left: -220px; padding-left: 1.2rem; z-index: 40; }
  main#view { padding: 1.4rem 2rem 3rem; }
}
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem; }
.card + .card { margin-top: 1rem; }
.empty { text-align: center; padding: 2.2rem 1rem; }
.empty .big { font: 700 1.25rem var(--font); color: var(--plum-dark); margin-bottom: .3rem; }
.steps { padding-left: 1.2em; } .steps li { margin: .4em 0; }

/* screens */
.player { margin-bottom: 1.1rem; }
.player-head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.player-head .t { flex: 1 1 200px; min-width: 0; }
.player-head .t b { font: 700 1.05rem var(--font); color: var(--plum-dark); }
.player-meta { display: flex; gap: .5rem .9rem; flex-wrap: wrap; align-items: center; font-size: .82rem; color: var(--muted); margin-top: .15rem; }
.screens-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .9rem; margin-top: .9rem; }
.screen { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.screen.offline { opacity: .82; }
.shot { position: relative; aspect-ratio: 16/9; background: #121a2e linear-gradient(135deg, #1b2742, #0f1626); display: grid; place-items: center; color: #9aa6bf; font-size: .82rem; cursor: zoom-in; }
.shot.portrait { aspect-ratio: 9/16; max-height: 360px; margin: 0 auto; width: 100%; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.shot .tag { position: absolute; left: 8px; top: 8px; z-index: 2; }
.shot .age { position: absolute; right: 8px; bottom: 8px; z-index: 2; background: rgba(0, 0, 0, .55); color: #fff; font-size: .72rem; padding: .15em .5em; border-radius: 6px; }
.screen-body { padding: .75rem .85rem .85rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.screen-body .nm { font-weight: 600; color: var(--plum-dark); }
.screen-body .line { font-size: .84rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screen-body .line b { color: var(--ink); font-weight: 500; }
.screen-actions { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .4rem; }

/* timeline */
.timeline { position: relative; height: 34px; border-radius: 8px; background: #eef1f6; overflow: hidden; margin-top: .5rem; }
.timeline .seg { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .7rem; font-weight: 500; overflow: hidden; white-space: nowrap; border-right: 1px solid rgba(255, 255, 255, .5); }
.timeline .now { position: absolute; top: -2px; bottom: -2px; width: 2px; background: #c77700; }
.tl-scale { display: flex; justify-content: space-between; font-size: .7rem; color: var(--muted); margin-top: .2rem; }
.tl-list { margin: .6rem 0 0; padding: 0; list-style: none; font-size: .86rem; }
.tl-list li { display: flex; gap: .6rem; padding: .3rem 0; border-bottom: 1px dashed var(--line); align-items: center; }
.tl-list .sw { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.tl-list .tm { font-variant-numeric: tabular-nums; color: var(--muted); width: 98px; flex: none; }

/* library */
.toolbar { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-bottom: .9rem; }
.toolbar input[type=search] { flex: 1 1 200px; min-width: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } }
.tile { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; text-align: left; padding: 0; font: inherit; color: inherit; }
.tile:hover { border-color: #b9c3d6; }
.tile .th { aspect-ratio: 16/10; background: #121a2e; position: relative; overflow: hidden; }
.tile .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile .th .kind { position: absolute; right: 6px; bottom: 6px; background: rgba(0, 0, 0, .62); color: #fff; font-size: .7rem; padding: .12em .45em; border-radius: 5px; display: flex; align-items: center; gap: .25em; }
.tile .th .kind svg { width: 12px; height: 12px; }
.tile .th .noth { position: absolute; inset: 0; display: grid; place-items: center; color: #9aa6bf; }
.tile .th .noth svg { width: 30px; height: 30px; }
.tile .meta { padding: .5rem .6rem .6rem; }
.tile .meta .n { font-weight: 500; font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .meta .s { font-size: .74rem; color: var(--muted); }
.tile.pick .tick { position: absolute; left: 7px; top: 7px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; background: rgba(0, 0, 0, .3); z-index: 2; display: grid; place-items: center; color: #fff; }
.tile.pick.on { outline: 3px solid var(--wine); outline-offset: -3px; }
.tile.pick.on .tick { background: var(--wine); }
.tile.pick .tick svg { width: 14px; height: 14px; }
.uploads { margin-bottom: 1rem; }
.up { display: flex; gap: .7rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.up:last-child { border-bottom: 0; }
.up .n { flex: 1; min-width: 0; font-size: .88rem; }
.up .n div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { height: 6px; border-radius: 999px; background: #e3e8f0; overflow: hidden; margin-top: .3rem; }
.bar > i { display: block; height: 100%; width: 0; background: var(--wine); transition: width .2s; }
.drop { border: 2px dashed #C8CDD5; border-radius: 14px; padding: 1.2rem; text-align: center; color: var(--muted); margin-bottom: 1rem; }
.drop.over { border-color: var(--wine); background: #eef2fa; color: var(--wine); }

/* playlists */
.list { display: flex; flex-direction: column; gap: .7rem; }
.pl-card { display: flex; gap: .9rem; align-items: center; cursor: pointer; }
.pl-card .thumbs { display: flex; flex: none; }
.pl-card .thumbs img, .pl-card .thumbs span { width: 52px; height: 36px; object-fit: cover; border-radius: 6px; border: 2px solid #fff; margin-left: -14px; background: #121a2e; display: block; }
.pl-card .thumbs :first-child { margin-left: 0; }
.pl-card .t { flex: 1; min-width: 0; }
.pl-card .t b { font: 700 1rem var(--font); color: var(--plum-dark); }
.items { display: flex; flex-direction: column; gap: .5rem; margin-top: .6rem; }
.item { display: flex; gap: .7rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .5rem; }
.item.off { opacity: .55; }
.item .th { width: 84px; height: 54px; border-radius: 8px; overflow: hidden; background: #121a2e; flex: none; position: relative; cursor: pointer; }
.item .th img { width: 100%; height: 100%; object-fit: cover; }
.item .th .num { position: absolute; left: 4px; top: 4px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .68rem; border-radius: 4px; padding: 0 .35em; }
.item .t { flex: 1; min-width: 0; cursor: pointer; }
.item .t .n { font-weight: 500; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .t .s { font-size: .78rem; color: var(--muted); display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; margin-top: .15rem; }
.item .mv { display: flex; flex-direction: column; gap: 2px; }
.item .mv .btn { width: 34px; min-height: 28px; padding: 0; border-radius: 8px; }
.savebar { position: sticky; bottom: calc(var(--nav-h) + 10px + env(safe-area-inset-bottom)); z-index: 15; margin-top: 1rem; display: flex; gap: .6rem; align-items: center;
  background: var(--wine); color: #fff; padding: .6rem .7rem .6rem 1rem; border-radius: 12px; box-shadow: 0 6px 24px rgba(27, 58, 123, .3); }
.savebar .grow { flex: 1; font-size: .9rem; }
.savebar .btn { min-height: 38px; }
.savebar .btn.ghost { color: #fff; }
@media (min-width: 900px) { .savebar { bottom: 16px; } }

/* sheets (dialogs) */
dialog.sheet { border: 0; padding: 0; width: 100%; max-width: 640px; max-height: 92vh; border-radius: 18px 18px 0 0; margin: auto auto 0; background: var(--cream); color: var(--ink); box-shadow: 0 -8px 40px rgba(0, 0, 0, .2); }
dialog.sheet.wide { max-width: 900px; }
dialog.sheet::backdrop { background: rgba(15, 22, 40, .45); }
@media (min-width: 700px) { dialog.sheet { margin: auto; border-radius: 18px; } }
.sheet-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: .6rem; padding: .9rem 1rem .7rem; background: var(--cream); border-bottom: 1px solid var(--line); }
.sheet-head h2 { margin: 0; flex: 1; font-size: 1.15rem; }
.sheet-body { padding: .4rem 1rem 1rem; overflow: auto; }
.sheet-foot { position: sticky; bottom: 0; display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; padding: .8rem 1rem calc(.8rem + env(safe-area-inset-bottom)); background: var(--cream); border-top: 1px solid var(--line); }
.sheet-foot .left { margin-right: auto; }
.preview-media { width: 100%; max-height: 46vh; object-fit: contain; background: #000; border-radius: 10px; display: block; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .25rem .9rem; font-size: .88rem; margin: .8rem 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.timed { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: .2rem .8rem .8rem; margin-top: .7rem; }
.timed .th { display: flex; align-items: center; gap: .5rem; margin-top: .6rem; }
.timed .th b { flex: 1; font-size: .9rem; color: var(--plum-dark); }
.code-input { font: 600 1.8rem/1 'Courier New', monospace; letter-spacing: .3em; text-align: center; text-transform: uppercase; }
.secret { font: 600 1.25rem/1.3 'Courier New', monospace; background: #fff; border: 1px dashed var(--wine); border-radius: 8px; padding: .6em .8em; text-align: center; letter-spacing: .05em; user-select: all; }

/* full-screen preview */
.pv { position: fixed; inset: 0; z-index: 100; background: #000; }
.pv .stagewrap { position: absolute; inset: 0; }
.pv .pv-bar { position: absolute; z-index: 5; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom)); display: flex; gap: .5rem; align-items: center;
  background: rgba(10, 16, 30, .8); color: #fff; padding: .45rem .5rem .45rem .9rem; border-radius: 999px; font-size: .84rem; max-width: calc(100% - 20px); }
.pv .pv-bar .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv .pv-bar .btn { min-height: 34px; background: rgba(255, 255, 255, .12); color: #fff; border-color: transparent; }
.pv .sgp-stage { cursor: default; }

/* toast */
#toasts { position: fixed; z-index: 200; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: .5rem; align-items: center; width: max-content; max-width: calc(100% - 24px); pointer-events: none; }
.toast { background: var(--plum-dark); color: #fff; padding: .65em 1.1em; border-radius: 12px; font-size: .9rem; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); animation: tin .2s ease; }
.toast.bad { background: var(--bad); }
@keyframes tin { from { opacity: 0; transform: translateY(6px); } }
@media (min-width: 900px) { #toasts { bottom: 24px; } }

/* sign in & installer */
body.signin, body.install { padding: 0; display: grid; min-height: 100vh; place-items: center; background: radial-gradient(120% 90% at 50% 0%, #dde5f3 0%, var(--cream) 60%); }
.signin-card, .install-card { width: min(440px, calc(100% - 28px)); margin: 24px auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 1.4rem 1.3rem 1.3rem; }
.install-card { width: min(560px, calc(100% - 28px)); }
.signin-card h1, .install-card h1 { margin-top: 1rem; }
.checks { list-style: none; padding: 0; margin: .6rem 0 1rem; font-size: .9rem; }
.checks li { padding: .25rem 0; } .checks li.ok { color: var(--ok); } .checks li.bad { color: var(--bad); }
.loading { display: grid; place-items: center; min-height: 50vh; color: var(--muted); }
.spin { width: 26px; height: 26px; border: 3px solid #d6dde9; border-top-color: var(--wine); border-radius: 50%; animation: sp 1s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.table th, .table td { text-align: left; padding: .5rem .4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 500; font-size: .78rem; }
.scroll-x { overflow-x: auto; }
.mini-idle { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; margin-top: .6rem; }
.mini-pair { display: flex; gap: .6rem; align-items: flex-start; }
.mini-pair .mini-idle { flex: 1 1 auto; min-width: 0; }
.mini-pair .mini-idle.tall { flex: 0 0 22%; aspect-ratio: 9/16; }
.row.pickrow { align-items: flex-end; }
.row.pickrow .upbtn { margin: 0 0 1px; flex: 0 0 auto; min-height: 44px; }

.audit { list-style: none; margin: 0; padding: 0; }
.audit li { padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.audit li:last-child { border-bottom: 0; }
.audit .a1 { display: flex; gap: .5rem; flex-wrap: wrap; align-items: baseline; }
.audit .a1 b { font-weight: 500; }
.audit .a2 { color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
details.card > summary { cursor: pointer; font: 700 1.15rem var(--font); color: var(--plum-dark); list-style: none; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::after { content: ' ›'; color: var(--muted); }
details.card[open] > summary::after { content: ' ⌄'; }

.pvmulti { background: #0b1020; }
.pvrow { position: absolute; inset: 0 0 64px; display: flex; align-items: center; justify-content: center; gap: 28px; padding: 24px; }
.pvtv { position: relative; flex: none; }
.pvstage { position: absolute; inset: 0; background: #000; box-shadow: 0 0 0 6px #050304, 0 10px 30px rgba(0, 0, 0, .5); border-radius: 3px; overflow: hidden; }
.pvcap { position: absolute; left: 0; right: 0; top: calc(100% + 14px); color: #C8CDD5; font-size: .8rem; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* alerts */
.alerts-banner > div + div { margin-top: .35rem; }
.alerts-banner .small { margin-top: .5rem; }
details.sub { border: 1px solid var(--line); border-radius: 12px; padding: .2rem .9rem .6rem; margin: .9rem 0 .4rem; background: #fff; }
details.sub > summary { cursor: pointer; font-weight: 500; padding: .55rem 0 .2rem; color: var(--plum-dark); }
.cronline { white-space: pre-wrap; word-break: break-all; background: #fff; border: 1px dashed var(--wine); border-radius: 8px; padding: .5em .7em; font: .78rem/1.4 'Courier New', monospace; user-select: all; margin: .5em 0 0; }
ul.plain { list-style: none; padding: 0; margin: .3rem 0; }
ul.plain li { padding: .3rem 0; border-bottom: 1px solid var(--line); }
#alerts-status h3 { margin: 1.1rem 0 .4rem; font-size: 1rem; }


dialog h3 { margin: 1.2rem 0 .5rem; }

/* ---------- RTNTS Connect: platform & customer workspace ---------- */
.topbar .brand-row { gap: .6rem; }
.switcher { display: inline-flex; align-items: center; gap: .55rem; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: .4rem .7rem; min-height: 40px;
  font: 700 .92rem/1.1 var(--font); color: var(--ink); cursor: pointer; max-width: min(52vw, 360px); text-align: left; }
.switcher .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switcher .lbl { display: block; font: 400 .68rem/1 var(--font); color: var(--muted); margin-bottom: 2px; }
.switcher svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
.switcher.plain { cursor: default; }
.badge { width: 14px; height: 14px; border-radius: 4px; flex: none; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.badge.big { width: 20px; height: 20px; border-radius: 5px; }
.cust-pick { list-style: none; margin: .4rem 0 0; padding: 0; }
.cust-pick li button { display: flex; align-items: center; gap: .7rem; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: #fff; padding: .75rem .6rem; font: 600 .95rem var(--font); color: var(--ink); cursor: pointer; }
.cust-pick li button:hover, .cust-pick li button.on { background: #e8eef8; }
.cust-pick li .role { margin-left: auto; font-size: .75rem; font-weight: 400; color: var(--muted); }
.wsbar { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: -.2rem 0 1rem; padding: .55rem .8rem; border-radius: 10px; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--wine); }
.wsbar b { font-size: 1rem; }
.wsbar .muted { margin-left: auto; }
.nav .sect { display: none; }
@media (min-width: 900px) {
  .nav { overflow-y: auto; }
  .nav .sect { display: flex; align-items: center; gap: .5rem; padding: .9rem .9rem .3rem; font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
  .nav .sect .badge { width: 10px; height: 10px; }
  .nav .sect span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 899px) { .nav a.desk-only { display: none; } }
@media (min-width: 900px) { .nav a.phone-only { display: none; } }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; margin-bottom: 1rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .8rem .9rem; }
.stat .n { font: 700 1.6rem/1.1 var(--font); color: var(--wine); }
.stat .l { font-size: .8rem; color: var(--muted); }
.stat.bad .n { color: var(--bad); } .stat.warn .n { color: var(--warn); } .stat.ok .n { color: var(--ok); }
.usage { height: 6px; border-radius: 999px; background: #e3e8f0; overflow: hidden; margin-top: .3rem; min-width: 80px; }
.usage > i { display: block; height: 100%; background: var(--wine); }
.usage.warn > i { background: #c77700; } .usage.bad > i { background: var(--bad); }
.table tr.click { cursor: pointer; } .table tr.click:hover td { background: #f7f9fc; }
.table td .cname { display: flex; align-items: center; gap: .5rem; font-weight: 700; }
.loc-head { display: flex; align-items: center; gap: .6rem; margin: 1.4rem 0 .6rem; font: 700 1.05rem var(--font); color: var(--wine); }
.loc-head .muted { font-weight: 400; }
.reasons { display: flex; flex-wrap: wrap; gap: .3rem; }
.notes-box { white-space: pre-wrap; font-size: .9rem; background: #f7f9fc; border: 1px solid var(--line); border-radius: 8px; padding: .6rem .8rem; }
.more-list { list-style: none; padding: 0; margin: 0; }
.more-list a { display: flex; align-items: center; gap: .8rem; padding: .85rem .4rem; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; }
.more-list a svg { width: 22px; height: 22px; color: var(--wine); }
.colours { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .4rem; }
.colours button { width: 34px; height: 34px; border-radius: 8px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.colours button.on { box-shadow: 0 0 0 3px var(--wine); }
.role-help { font-size: .82rem; color: var(--muted); margin: .3rem 0 0; padding-left: 1.1em; }
.role-help li { margin: .15rem 0; }
@media (max-width: 899px) { .desk-name { display: none !important; } .topbar { gap: .5rem; padding: .55rem .7rem; } .logo { height: 30px; } }
.plain .cname { display: inline-flex; margin-right: .45rem; vertical-align: middle; }

/* Set up a TV (TV installers) */
.setup-step h2 { display: flex; align-items: center; gap: .6rem; font-size: 1.15rem; margin: 0 0 .7rem; }
.setup-step .num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--plum, #1B3A7B); color: #fff; display: grid; place-items: center; font-size: .95rem; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.grid2 .code-input { font-size: 1.4rem; }
.setup-out { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
@media (max-width: 640px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
.pill svg { width: 1em; height: 1em; vertical-align: -.15em; margin-right: .25em; }

/* Guides (Platform → Guides): the two guides, read on screen with a contents list (no download) */
.guide-pick { display: grid; grid-template-columns: minmax(0, 1fr); gap: .7rem; margin-bottom: 1rem; }
@media (min-width: 700px) { .guide-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.guide-card { display: flex; flex-direction: column; gap: .7rem; margin: 0 !important; }
.guide-card.on { border-color: var(--wine); box-shadow: 0 0 0 1px var(--wine), var(--shadow); }
.guide-card h2 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .2rem; font-size: 1.08rem; }
.guide-card h2 svg { width: 22px; height: 22px; color: var(--wine); flex: none; }
.guide-card .btns { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: auto; }
.guide-card .btn svg { width: 18px; height: 18px; }
.guide-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (min-width: 1100px) { .guide-wrap { grid-template-columns: 250px minmax(0, 1fr); } .guide-toc { position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow-y: auto; } }
.guide-toc { padding: .7rem .8rem; margin: 0 !important; }
.guide-toc summary { cursor: pointer; font-weight: 700; color: var(--plum-dark); padding: .2rem 0; }
.guide-toc ol { list-style: none; margin: .5rem 0 0; padding: 0; }
.guide-toc button { display: block; width: 100%; text-align: left; border: 0; background: none; font: inherit; font-size: .88rem; color: var(--wine); padding: .38rem .45rem; border-radius: 7px; cursor: pointer; }
.guide-toc button:hover, .guide-toc button:focus-visible { background: #e8eef8; }
.guide-body { padding: 1.1rem 1.2rem 1.6rem; line-height: 1.6; overflow-wrap: break-word; margin: 0 !important; }
@media (min-width: 900px) { .guide-body { padding: 1.6rem 2rem 2.2rem; } }
.guide-head { border-bottom: 1px solid var(--line); padding-bottom: .8rem; margin-bottom: .4rem; }
.guide-head h2 { margin: 0 0 .2rem; font-size: 1.35rem; }
.guide-body h2 { scroll-margin-top: 80px; font-size: 1.22rem; color: var(--wine); margin: 1.8em 0 .5em; padding-bottom: .3rem; border-bottom: 1px solid var(--silver); }
.guide-body .guide-head h2 { color: var(--plum-dark); border: 0; padding: 0; margin: 0 0 .2rem; }
.guide-body h3 { font-size: 1.02rem; color: var(--wine); margin: 1.3em 0 .4em; }
.guide-body p { margin: 0 0 .75em; }
.guide-body ul, .guide-body ol { margin: 0 0 .9em; padding-left: 1.5em; }
.guide-body li { margin: .25em 0; }
.guide-body li::marker { color: var(--wine); font-weight: 700; }
.guide-table { overflow-x: auto; margin: .4rem 0 1.1rem; border: 1px solid var(--silver); border-radius: 8px; }
.guide-table table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.guide-table th { background: var(--silver); color: var(--wine); text-align: left; font-weight: 700; }
.guide-table th, .guide-table td { padding: .5rem .7rem; vertical-align: top; border-bottom: 1px solid var(--line); }
.guide-table tbody tr:nth-child(even) td { background: var(--cream); }
.guide-table tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) { .guide-table table { min-width: 520px; } }
