/* vidforall.com — the home page as a film's page in the app; Your Account and Admin in the same dark room. */
:root {
  /* hub 1.14.2: the app's own look — its dark canvas and surfaces (DesignSystem.swift), its blue
     (AccentColor) and its ember (DS.Palette.ember), and the icon's blue-to-ember. */
  --night: #0d0f14;
  --night-2: #1d2028;
  --night-3: #262932;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --screen: #f5f5f7;
  --muted: #9b9ea8;
  --accent: #3b6ff5;
  --accent-hover: #5583ff;
  --link: #8aa9ff;
  --ember: #ff8f33;
  --brand: linear-gradient(135deg, #3b6ff5 0%, #8e78b8 55%, #ff8f33 100%);
  --danger: #ff7a7a;
  --ok: #4ccc80;
  /* The app's type: SF Pro, Apple's own (on a Mac, iPhone or iPad); Inter, its nearest, elsewhere —
     only fetched where there's no SF. One family, as in the app: heavy titles, semibold headings. */
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--night);
  color: var(--screen);
  font: 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* MARK: Top bar */
.bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 22px clamp(16px, 4vw, 48px);
  position: relative; z-index: 2;
}
.mark {
  font: 800 22px/1 var(--display); letter-spacing: -0.02em;
  color: var(--screen); text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.mark svg { width: 28px; height: 28px; }
.bar nav { display: flex; align-items: center; gap: 10px; min-width: 0; }
/* (A long name on the signed-in splash's button: cut short, not off the edge.) */
.bar nav .button { display: block; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

/* MARK: Buttons */
.button {
  appearance: none; border: 0; cursor: pointer;
  font: 600 15px/1 var(--body);
  padding: 12px 18px; border-radius: 999px;
  background: var(--night-3); color: var(--screen);
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  transition: background-color .15s ease, transform .1s ease;
}
.button:hover { background: #31343e; }
.button:active { transform: translateY(1px); }
.button.primary { background: var(--accent); color: #fff; }
.button.primary:hover { background: var(--accent-hover); }
.button.quiet { background: transparent; color: var(--muted); padding-inline: 10px; }
.button.quiet:hover { color: var(--screen); background: transparent; }
.button.danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1px rgba(255, 122, 122, .35); }
.button.danger:hover { background: rgba(255, 122, 122, .1); }
.button.small { font-size: 13px; padding: 8px 12px; }
.button[disabled] { opacity: .5; cursor: default; }

footer {
  padding: 22px clamp(16px, 4vw, 48px); color: var(--muted); font-size: 13px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
}

/* MARK: Sign-in dialog */
dialog {
  border: 0; padding: 0; border-radius: 18px;
  width: min(420px, calc(100vw - 32px));
  background: var(--night-2); color: var(--screen);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px var(--line);
}
dialog::backdrop { background: rgba(8, 11, 18, .7); backdrop-filter: blur(4px); }
.sheet { padding: 26px 26px 24px; }
.sheet h2 { font: 800 26px/1.1 var(--display); letter-spacing: -0.015em; margin: 0 0 4px; }
.sheet .lede { color: var(--muted); margin: 0 0 20px; font-size: 15px; }
.switch { display: grid; grid-template-columns: 1fr 1fr; background: var(--night); border-radius: 999px; padding: 4px; margin-bottom: 20px; }
.switch button {
  appearance: none; border: 0; background: transparent; color: var(--muted);
  font: 600 14px/1 var(--body); padding: 10px 6px; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.switch button[aria-selected="true"] { background: var(--night-3); color: var(--screen); }
.close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: transparent; color: var(--muted); font-size: 20px; cursor: pointer;
}
.close:hover { background: var(--night-3); color: var(--screen); }

/* MARK: Forms */
label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 6px; }
.field { margin-bottom: 14px; }
.field small { display: block; color: var(--muted); font-size: 13px; margin-top: 5px; }
input[type=email], input[type=password], input[type=text], input[type=number], .field select {
  width: 100%; font: 16px/1.3 var(--body); color: var(--screen);
  background: var(--night); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 12px;
}
/* hub 1.19.0: a small menu in a table row (a news feed's section). */
select.small { font: 600 13px/1.2 var(--body); color: var(--screen); background: var(--night);
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; margin-right: 6px; }
select.small:focus { outline: none; border-color: var(--accent); }
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59, 111, 245, .28); }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 18px; }
.form-actions .button.primary { flex: 1; justify-content: center; }
.message { min-height: 1.4em; margin: 10px 0 0; font-size: 14px; color: var(--danger); }
.message.ok { color: var(--ok); }
/* (hub 1.6.0: Forgot password? / Back to Log In, under the sign-in's button) */
.sheet-links { margin: 6px 0 0; text-align: center; }
.linkish { background: none; border: 0; padding: 4px 2px; font: inherit; font-size: 14px; color: var(--link); cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.linkish:hover { color: var(--screen); }
.linkish:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* MARK: Account and admin pages */
body[data-page="admin"] .page { width: min(1200px, 100%); }
.page { width: min(1040px, 100%); margin: 0 auto; padding: 12px clamp(16px, 4vw, 40px) 64px; flex: 1; }
.page > h1 { font: 800 clamp(30px, 5vw, 40px)/1.08 var(--display); letter-spacing: -0.02em; margin: 12px 0 6px; }
.page > .lede { color: var(--muted); margin: 0 0 28px; }
.panel {
  background: var(--night-2); border-radius: var(--radius);
  padding: 22px clamp(16px, 3vw, 26px); margin-bottom: 18px;
  box-shadow: 0 0 0 1px var(--line);
}
.panel h2 { font: 600 19px/1.25 var(--display); margin: 0 0 4px; }
.panel > p.lede { color: var(--muted); margin: 0 0 16px; font-size: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; }
.row .field { flex: 1 1 220px; margin: 0; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list .what { flex: 1; min-width: 0; }
.list .what b { display: block; font-weight: 600; }
.list .what span { color: var(--muted); font-size: 13px; }
.tag { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--night-3); color: var(--muted); white-space: nowrap; }
.tag.on { background: rgba(255, 143, 51, .16); color: var(--ember); }
.tag.off { background: rgba(255, 122, 122, .14); color: var(--danger); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--night-2); border-radius: var(--radius); padding: 16px 18px; box-shadow: 0 0 0 1px var(--line); }
.stat b { display: block; font: 700 28px/1.1 var(--display); }
.stat span { color: var(--muted); font-size: 13px; }

.table-wrap { overflow-x: auto; margin: 0 -4px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: 13px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td:not(:first-child) { white-space: nowrap; }
td .who { min-width: 13em; overflow-wrap: anywhere; }
td .who b { display: block; font-weight: 600; }
td .who span { color: var(--muted); font-size: 13px; }
td.actions-cell { text-align: right; white-space: nowrap; }
td.actions-cell .button + .button { margin-left: 6px; }

.toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; margin: 0; }
.toggle input { width: 20px; height: 20px; accent-color: var(--accent); }
.toggle input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.notice { color: var(--muted); padding: 40px 0; text-align: center; }
.hidden { display: none !important; }

@media (max-width: 560px) {
  [data-page="splash"] .bar nav .button.quiet { display: none; }
  .bar { gap: 8px; }
  .mark { font-size: 20px; }
  .bar nav { gap: 2px; }
  .bar nav .button { padding-inline: 12px; font-size: 14px; }
  .bar nav .button.quiet { padding-inline: 8px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .list li { flex-wrap: wrap; }
  .list .what { flex-basis: 10em; } /* (so the wrap happens: a tag and button go under a squeezed name) */
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Admin › Health: YouTube's units, a bar a day (hub 1.5.0). */
.units-chart { display: flex; gap: 6px; height: 140px; padding: 0 2px; border-bottom: 1px solid var(--line); }
.units-chart .day { flex: 1 1 0; position: relative; min-width: 0; }
.units-chart .seg { position: absolute; left: 0; right: 0; }
.units-chart .seg.search { background: var(--ember); }
.units-chart .seg.crawl { background: var(--accent); opacity: .8; }
.units-chart .seg.top { border-radius: 4px 4px 0 0; }
.units-chart .label { position: absolute; left: 0; right: 0; bottom: 0; font-size: 11px; line-height: 16px; color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; }
.units-legend { display: flex; gap: 14px; font-size: 13px; color: var(--muted); margin-top: 10px; flex-wrap: wrap; }
.units-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
@media (max-width: 560px) { .units-chart { gap: 3px; } .units-chart .label { font-size: 0; } .units-chart .day:first-child .label, .units-chart .day:last-child .label { font-size: 10px; overflow: visible; } .units-chart .day:first-child .label { text-align: left; } .units-chart .day:last-child .label { text-align: right; } .stat b { font-size: 22px; } .stat { padding: 14px; } }

/* hub 1.7.0: Admin › Keys — each service's heading with its Check, and the answer under it. */
.key-group { display: flex; align-items: center; gap: 12px; margin: 22px 0 4px; }
.key-group h3 { font: 600 15px/1.3 var(--body); margin: 0; color: var(--muted); }
.check-answer { margin: 0 0 10px; font-size: 14px; color: var(--muted); min-height: 0; }
.check-answer:empty { display: none; }
.check-answer.ok { color: var(--ok); }
.check-answer.bad { color: var(--danger); }
.check-answer .note { color: var(--muted); }
/* hub 1.18.0: Home Servers' key ticks */
.server-keys { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0; font-size: 14px; }
.server-keys label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 400; margin: 0; }
#servers-list li { flex-wrap: wrap; }
#servers-list .what { flex: 1 1 14em; }
.server-keys label.set { color: inherit; }
.list li .server-keys { flex-basis: 100%; margin: 4px 0 0; }
.token-once { font: 500 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; user-select: all; }

/* MARK: Home (hub 1.8.0) — the page as a film's page in the app: a backdrop faded to black, the
   "poster" (the app on a phone) beside a big title, then rows. Scoped to the splash only. */
body[data-page="splash"] { background: #000; }
body[data-page="splash"] footer { border-top-color: rgba(255, 255, 255, .08); }
.home-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 5; }
.home { --side: clamp(16px, 4vw, 56px); display: flex; flex-direction: column; gap: clamp(44px, 6vw, 72px); padding-bottom: 72px; }

/* The hero */
.hero { position: relative; min-height: min(92vh, 980px, calc(48vw + 300px)); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-backdrops { position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(120% 90% at 70% 10%, #3a2a24 0%, #14151c 55%, #000 100%); }
.hero-backdrops img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%;
  opacity: 0; transition: opacity 1.6s ease; }
.hero-backdrops img.on { opacity: 1; }
.hero-fade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to top, #000 0%, rgba(0,0,0,.92) 18%, rgba(0,0,0,.45) 48%, rgba(0,0,0,.15) 72%, rgba(0,0,0,.55) 100%),
    linear-gradient(to right, rgba(0,0,0,.85) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,0) 70%); }
.hero-body { display: flex; align-items: flex-end; gap: clamp(22px, 3.4vw, 48px); padding: 120px var(--side) 0; width: 100%; max-width: 1360px; }
.hero-poster { margin: 0; flex: 0 0 auto; width: clamp(150px, 17vw, 236px); aspect-ratio: 1179 / 2556; border-radius: 30px; overflow: hidden;
  background: #111 repeating-linear-gradient(135deg, #15161b 0 14px, #121318 14px 28px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 30px 80px rgba(0,0,0,.65); }
.hero-poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-text { min-width: 0; max-width: 640px; padding-bottom: 6px; }
.title-logo { font: 800 clamp(52px, 8.4vw, 112px)/.92 var(--display); letter-spacing: -0.03em; margin: 0 0 14px;
  text-shadow: 0 6px 40px rgba(0,0,0,.5); }
.meta { margin: 0 0 18px; color: #d7dbe3; font-size: 15px; }
.meta .star { color: var(--ember); }
.meta .sep { color: rgba(255,255,255,.4); margin: 0 4px; }
.tagline { font: 700 clamp(19px, 2vw, 24px)/1.25 var(--display); letter-spacing: -0.01em; margin: 0 0 10px; }
.overview { color: #c3c8d1; margin: 0 0 24px; max-width: 58ch; }
.hero-actions, .closing { display: flex; flex-wrap: wrap; gap: 10px; }
/* (As the app's stage: a white capsule for the main action, frosted ones for the rest.) */
.home .button.primary { background: rgba(255,255,255,.94); color: #000; }
.home .button.primary:hover { background: #fff; }
.button.glass { background: rgba(255,255,255,.12); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.button.glass:hover { background: rgba(255,255,255,.2); }
/* The picture behind the title: whose it is, and a dot for each (the app's stage has them too). */
.backdrop-nav { position: absolute; right: var(--side); bottom: 14px; display: flex; align-items: center; gap: 14px; }
.backdrop-credit { margin: 0; font-size: 12px; color: rgba(255,255,255,.5); max-width: 40ch; text-align: right; }
.backdrop-credit:empty { display: none; }
.hero-dots { display: flex; gap: 6px; align-items: center; }
.hero-dots:empty { display: none; }
/* (The pill is drawn in the middle of a bigger button — easier to tap.) */
.hero-dots { gap: 0; }
.hero-dots button { appearance: none; border: 0; padding: 9px 3px; box-sizing: content-box; background-clip: content-box;
  width: 7px; height: 7px; border-radius: 999px; cursor: pointer;
  background-color: rgba(255,255,255,.35); transition: width .25s ease, background-color .25s ease; }
.hero-dots button:hover { background-color: rgba(255,255,255,.6); }
.hero-dots button[aria-current="true"] { width: 20px; background-color: #fff; }

/* Rows */
.home-row { padding: 0 var(--side); min-width: 0; }
.home-row h2 { font: 700 clamp(21px, 2vw, 26px)/1.2 var(--display); letter-spacing: -0.01em; margin: 0; }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.row-lede { color: var(--muted); margin: -6px 0 16px; max-width: 70ch; }
.row-arrows { display: flex; gap: 8px; }
.row-arrows button { width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: rgba(255,255,255,.1); color: var(--screen); font-size: 18px; line-height: 1; }
.row-arrows button:hover { background: rgba(255,255,255,.18); }
.row-arrows button:disabled { opacity: .3; cursor: default; }
.shelf { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--side);
  margin: 0 calc(var(--side) * -1); padding: 4px var(--side) 10px; scrollbar-width: none; }
.shelf::-webkit-scrollbar { display: none; }
.shelf > * { scroll-snap-align: start; flex: 0 0 auto; }

/* Inside the App: screenshots to replace */
.shot { margin: 0; width: clamp(260px, 34vw, 460px); }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px;
  background: #101116; box-shadow: 0 0 0 1px rgba(255,255,255,.1); }
.shot figcaption { padding: 10px 2px 0; display: grid; gap: 2px; }
.shot figcaption b { font-weight: 600; }
.shot figcaption span { color: var(--muted); font-size: 14px; }

/* Trending: TMDB's posters */
.poster-card { width: clamp(132px, 13vw, 168px); text-decoration: none; color: inherit; }
.poster-card img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 12px; background: #15161b;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.poster-card b { display: block; font-weight: 600; font-size: 14px; margin-top: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poster-card span { display: block; color: var(--muted); font-size: 13px; }
.poster-card .star { font-style: normal; color: var(--ember); }

/* Cast & Crew: the features, as round faces */
.cast { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 22px 16px; }
.cast li { display: grid; justify-items: center; align-content: start; text-align: center; gap: 2px; }
.cast .face { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px; position: relative;
  background: radial-gradient(circle at 35% 30%, #262932, #121319); }
/* (A ring in the icon's blue-to-ember.) */
.cast .face::before { content: ""; position: absolute; inset: 0; border-radius: 50%; padding: 1.5px; background: var(--brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: .85; }
.cast .face svg { width: 36px; height: 36px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cast b { font-weight: 600; font-size: 15px; }
.cast li > span:last-child { color: var(--muted); font-size: 13px; }

/* Details */
.details h2 { margin-bottom: 18px; }
.facts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px 36px; margin: 0 0 32px; }
.facts-grid dt { color: var(--muted); font-size: 13px; margin-bottom: 3px; }
.facts-grid dd { margin: 0; }

@media (max-width: 720px) {
  /* (hub 1.13.1: as a film's page on a phone — the poster small beside the title, the rest under
     both; the features a row to swipe, like a cast.) */
  .hero { min-height: 0; flex-direction: column; align-items: stretch; }
  .hero-body { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 0 16px; align-items: start; padding-top: 150px; }
  .hero-text { display: contents; }
  .hero-poster { grid-column: 1; grid-row: 1 / 3; width: 96px; border-radius: 16px; align-self: end; }
  .title-logo { grid-column: 2; grid-row: 1; align-self: end; font-size: clamp(40px, 12vw, 56px); margin-bottom: 8px; }
  .meta { grid-column: 2; grid-row: 2; margin-bottom: 0; font-size: 14px; line-height: 1.45; }
  .tagline, .overview, .hero-actions { grid-column: 1 / -1; }
  .tagline { margin-top: 20px; }
  .hero-actions .button { flex: 1 1 0; justify-content: center; }
  .backdrop-nav { position: static; justify-content: space-between; padding: 12px var(--side) 0; }
  .backdrop-credit { text-align: left; }
  .cast { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--side);
    margin: 0 calc(var(--side) * -1); padding: 2px var(--side) 6px; scrollbar-width: none; }
  .cast::-webkit-scrollbar { display: none; }
  .cast li { flex: 0 0 104px; scroll-snap-align: start; }
  .cast .face { width: 80px; height: 80px; }
  .cast .face svg { width: 32px; height: 32px; }
  .facts-grid { grid-template-columns: 1fr 1fr; gap: 16px 20px; }
  .closing .button { flex: 1 1 0; justify-content: center; }
}
@media (max-width: 480px) {
  .facts-grid { grid-template-columns: 1fr; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-backdrops img, .hero-dots button { transition: none; }
}

/* MARK: Admin tabs (hub 1.9.0) */
.tabs { display: flex; gap: 4px; padding: 4px; margin: 0 0 22px; background: var(--night-2); border-radius: 999px;
  box-shadow: 0 0 0 1px var(--line); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
@media (max-width: 560px) { .tabs a { padding: 8px 12px !important; font-size: 14px !important; } }
.tabs a { flex: 0 0 auto; padding: 9px 18px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.tabs a:hover { color: var(--screen); }
.tabs a[aria-selected="true"] { background: var(--night-3); color: var(--screen); }
.tab-page > .panel:first-child, .tab-page > .stats:first-child { margin-top: 0; }

/* The ⓘ beside a Health number: where it is on the server — a note across the numbers, under
   them (one at a time). */
#health .stats { position: relative; }
.info { display: inline-block; margin-left: 6px; vertical-align: 1px; }
.info summary { list-style: none; cursor: pointer; width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center;
  font: italic 700 12px/1 Georgia, "Times New Roman", serif; color: var(--muted); box-shadow: inset 0 0 0 1.5px currentColor; }
.info summary::-webkit-details-marker { display: none; }
.info summary:hover, .info[open] summary { color: var(--ember); }
.info-panel { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 3; padding: 12px 14px; border-radius: 12px;
  background: var(--night); box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(0,0,0,.45); font-size: 13px; color: var(--muted);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 10px 22px; }
.info-panel p { margin: 0; display: grid; gap: 2px; align-content: start; }
.info-panel code { font: 12px/1.4 ui-monospace, "SF Mono", Menlo, monospace; color: var(--screen); word-break: break-all;
  user-select: all; -webkit-user-select: all; }

/* hub 1.10.1: Admin › News — rows stay one line high; what doesn't fit ends in … */
#news-feeds .one-line, #news-feeds .one-line b, #news-feeds .one-line span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#news-feeds .who.one-line { max-width: 300px; }
#news-feeds td.newest { max-width: 280px; }
#news-feeds td.actions-cell { white-space: nowrap; }
#news-feeds td.actions-cell .button { min-width: 64px; justify-content: center; }
#news-feeds .one-line span { display: block; }

/* hub 1.15.0: Admin › Pictures — how to set up the bucket, and a check's steps. */
.r2-how { margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.r2-how summary { cursor: pointer; color: var(--link); font-weight: 600; }
.r2-how ol { margin: 10px 0 0; padding-left: 1.3em; display: grid; gap: 6px; }
.r2-how b { color: var(--screen); font-weight: 600; }
.r2-how code { font: 13px ui-monospace, "SF Mono", Menlo, monospace; color: var(--screen); }
.r2-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.r2-steps:empty { display: none; }
.r2-steps li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--night); box-shadow: 0 0 0 1px var(--line); color: var(--muted); }
.r2-steps li.ok b { color: var(--ok); }
.r2-steps li.bad b { color: var(--danger); }
.r2-steps li b { font-weight: 600; }
/* hub 1.26.0: Admin › Remote — a cell's check with real devices, step by step. */
.check-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.check-list:empty { display: none; }
.check-list li.good { color: var(--ok); }
.check-list li.bad { color: var(--danger); }
.tag.alarm { background: var(--danger); color: var(--night); }

/* hub 1.28.0: VidForAll Pro — Your Account's offers, and the page Stripe sends people back to. */
.pro-offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.pro-offers:empty { display: none; }
.pro-offer { display: grid; gap: 6px; align-content: start; padding: 18px; border-radius: var(--radius);
  background: var(--night); box-shadow: 0 0 0 1px var(--line); }
.pro-offer.lead { box-shadow: 0 0 0 1px rgba(59, 111, 245, .55); }
.pro-offer h3 { font: 600 16px/1.3 var(--display); margin: 0; }
.pro-offer .price { font: 800 30px/1.1 var(--display); letter-spacing: -0.02em; }
.pro-offer .price small { font: 500 14px var(--body); color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.pro-offer p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.pro-offer .button { justify-self: start; }
.pro-list { margin: 0 0 18px; padding-left: 20px; color: var(--muted); font-size: 14px; display: grid; gap: 4px; }
#stripe-events { font: 12px/1.5 ui-monospace, "SF Mono", Menlo, monospace; color: var(--screen); word-break: break-word; }
.done-page { max-width: 560px; margin: 12vh auto 0; text-align: center; }
.done-page h1 { font: 800 clamp(30px, 5vw, 42px)/1.1 var(--display); letter-spacing: -0.02em; margin: 18px 0 10px; }
.done-page .lede { color: var(--muted); }
.done-page .form-actions { justify-content: center; margin-top: 26px; }
.done-mark { width: 64px; height: 64px; }
#pro-actions:empty { display: none; }
#pro-message:empty { display: none; }

/* hub 1.28.2: the home page's Pro. */
#pro-row .pro-lede { color: var(--muted); max-width: 72ch; margin: 0 0 18px; }
#pro-row .pro-offers { max-width: 760px; }
#pro-row .pro-fine { color: var(--muted); font-size: 14px; max-width: 72ch; margin: 16px 0 40px; }
