/* Vyluz Dashboard. Pure black, Vyluz gold, liquid-glass panels over the site's gold hairlines.
   Type: Geist for everything, Boska for the wordmark and the big figures (as on vyluz website). */

@font-face { font-family: "Geist"; src: url("/fonts/geist-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Boska"; src: url("/fonts/boska-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --bg: #000000;
  --fg: #f4eee5;
  --muted: #a59c8f;
  --faint: #776f64;
  --gold: #d6a645;
  --gold-ink: #e0b45c;
  --ok: #7fc795;
  --bad: #f08468;
  --off: #5c564e;

  /* glass */
  --glass: rgba(255, 255, 255, 0.035);
  --glass-hover: rgba(255, 255, 255, 0.07);
  --edge: rgba(255, 255, 255, 0.1);
  --hair: rgba(255, 255, 255, 0.08);
  /* light enough that the gold lines still show through, softened, as through real glass */
  --blur: blur(9px) saturate(180%);
  --radius: 28px;

  --font: "Geist", "Helvetica Neue", Arial, system-ui, sans-serif;
  --brand: "Boska", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --dur: 280ms;
}

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font: 400 15px/1.5 var(--font);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ---------- the gold hairlines behind everything ---------- */

.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- liquid glass ---------- */

.glass {
  position: relative;
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03),
    0 24px 60px -20px rgba(0, 0, 0, 0.7);
}
/* the bright rim: strongest on the top-left and bottom-right edges, as light catches a curved pane */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    140deg,
    rgba(255, 255, 255, 0.42) 0%,
    rgba(255, 255, 255, 0.1) 18%,
    rgba(255, 255, 255, 0.04) 45%,
    rgba(255, 255, 255, 0.06) 70%,
    rgba(255, 255, 255, 0.24) 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(22, 22, 22, 0.92); }
}

/* ---------- layout ---------- */

.shell {
  position: relative;
  z-index: 1;
  max-width: 1360px;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 40px max(18px, env(safe-area-inset-left));
}

.bar {
  position: sticky;
  top: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px 12px 26px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.mark { font: 500 21px/1 var(--brand); letter-spacing: 0.32em; color: var(--fg); padding-top: 2px; }
.clock { color: var(--muted); font-size: 14px; margin-left: 8px; }
.bar-end { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.live.stale i { background: var(--gold); }
.live.lost i { background: var(--bad); }
.iconbtn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  fill: var(--fg);
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.iconbtn:hover { background: rgba(255, 255, 255, 0.12); }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.panel { padding: 26px 28px 24px; min-width: 0; }
.span-8 { grid-column: span 8; }
.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }

.kicker {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker .count { color: var(--faint); letter-spacing: 0.06em; }
.kicker .aside { margin-left: auto; letter-spacing: 0.04em; text-transform: none; color: var(--faint); font-weight: 400; }

/* ---------- revenue ---------- */

.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.figure .label { font-size: 13px; color: var(--muted); }
.figure .big { font: 500 clamp(36px, 4.4vw, 60px)/1.05 var(--brand); letter-spacing: -0.01em; margin: 6px 0 4px; white-space: nowrap; }
.figure .big.gold { color: var(--gold); }
.figure .sub { font-size: 13px; color: var(--faint); }
.share { margin-top: 26px; }
.track { display: flex; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.track > b, .track > i { display: block; height: 100%; transition: width 900ms var(--ease); }
.track > b { background: var(--gold); }
/* cleared without payment: the same gold, faded */
.track > i { background: rgba(214, 166, 69, 0.3); }
.share .legend { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--faint); }

/* ---------- at a glance ---------- */

.today-date { font: 500 30px/1.15 var(--brand); margin: -4px 0 18px; }
.glance { list-style: none; margin: 0; padding: 0; }
.glance li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--hair); font-size: 15px; }
.glance li:first-child { border-top: 0; }
.glance .n { margin-left: auto; color: var(--muted); font-size: 14px; }

.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--off); }
.dot.ok { background: var(--ok); }
.dot.bad { background: var(--bad); }
.dot.gold { background: var(--gold); }

/* ---------- rows (projects, computers) ---------- */

.rows { margin: 0 -12px; }
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 18px;
  align-items: center;
  padding: 14px 12px;
  border-radius: 18px;
  transition: background var(--dur) var(--ease);
}
.row + .row { box-shadow: 0 -1px 0 var(--hair); }
a.row:hover, .row.hoverable:hover { background: var(--glass-hover); box-shadow: none; }
a.row:hover + .row, .row.hoverable:hover + .row { box-shadow: none; }
.row .name { font-size: 16px; font-weight: 500; display: flex; align-items: center; gap: 10px; min-width: 0; }
.row .name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .meta { grid-column: 1; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.row .meta .sep::before { content: "·"; margin-right: 14px; color: var(--faint); }
.row .side { grid-column: 2; grid-row: 1 / span 2; text-align: right; }
.row .value { font-size: 16px; font-weight: 500; }
.row .paid { font-size: 13px; color: var(--muted); margin-top: 2px; }
.row .paid.owed { color: var(--gold-ink); }
.row .paid.done { color: var(--ok); }
.row .track { grid-column: 1 / -1; margin-top: 8px; height: 3px; }
.state { display: inline-flex; align-items: center; gap: 7px; }
.state .dot { width: 6px; height: 6px; }
.ext { width: 12px; height: 12px; flex: none; stroke: var(--faint); fill: none; stroke-width: 1.6; }
/* visitors per day (visitsMark): 7 thin bars on one baseline, today in gold, past days faint gold */
.visits { display: inline-flex; align-items: center; gap: 8px; }
.spark { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.spark i { width: 4px; border-radius: 2px 2px 0 0; background: rgba(214, 166, 69, 0.38); }
.spark i.now { background: var(--gold); }
.spark i.zero { background: var(--hair); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.pill:hover { background: rgba(214, 166, 69, 0.16); border-color: rgba(214, 166, 69, 0.45); }
.pill svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.pill.quiet { color: var(--muted); }

/* ---------- outreach ---------- */

.minis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.mini { padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--hair); }
.mini .n { font: 500 30px/1.1 var(--brand); }
.mini .n.gold { color: var(--gold); }
.mini .l { font-size: 12px; color: var(--muted); margin-top: 2px; }

.stages { display: flex; align-items: stretch; margin-bottom: 24px; border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--hair); }
.stage { flex: 1; padding: 10px 12px; min-width: 0; }
.stage + .stage { box-shadow: -1px 0 0 var(--hair); }
.stage .n { font-size: 18px; font-weight: 500; }
.stage .l { font-size: 11px; color: var(--muted); letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage.has .n { color: var(--gold); }

.lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.list h3 { margin: 0 0 6px; font-size: 13px; font-weight: 500; color: var(--fg); }
.item { display: flex; gap: 12px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--hair); font-size: 14px; }
.item:first-of-type { border-top: 0; }
.item .when { flex: none; width: 54px; color: var(--faint); font-size: 12px; }
.item .when.due { color: var(--gold-ink); }
.item .what { min-width: 0; flex: 1; }
.item .what small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .tag { flex: none; font-size: 11px; color: var(--muted); padding: 2px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair); }
.item .tag.new { color: var(--gold-ink); box-shadow: inset 0 0 0 1px rgba(214, 166, 69, 0.45); }
.item .tag.lead { color: var(--fg); }
.item .pill.take { flex: none; align-self: center; padding: 4px 12px; font-size: 12px; }
.item .pill.take:disabled { opacity: 0.5; cursor: default; }
/* a new enquiry's row keeps a gold rim for a while after its flash */
.item.fresh { box-shadow: inset 0 0 0 1px rgba(214, 166, 69, 0.6); border-radius: 12px; border-top-color: transparent; padding-left: 10px; padding-right: 10px; }
.none { color: var(--faint); font-size: 13px; padding: 8px 0; line-height: 1.5; }
.demos { margin-top: 24px; }

/* ---------- recently ---------- */

.feed .item .when { width: 62px; }
/* entries are meant to be one short sentence; anything longer stops at two lines */
.feed .item .what { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }

.foot { margin: 22px 6px 0; color: var(--faint); font-size: 12px; display: flex; flex-wrap: wrap; gap: 6px 22px; }

/* ---------- locked ---------- */

.lock { min-height: calc(100vh - 140px); display: grid; place-items: center; }
.lock .glass { width: min(440px, 100%); padding: 40px 34px 30px; text-align: center; }
.lock h1 { font: 500 34px/1.1 var(--brand); margin: 0 0 10px; }
.lock p { color: var(--muted); margin: 0 0 26px; }
.field {
  width: 100%;
  padding: 14px 16px;
  margin: 8px 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  color: var(--fg);
  font: 500 20px/1 var(--font);
  letter-spacing: 0.2em;
  text-align: center;
}
.field:focus { outline: none; border-color: var(--gold); }
.lab { display: block; text-align: left; font-size: 13px; color: var(--muted); }
.btn {
  display: block;
  width: 100%;
  padding: 15px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: #000;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:hover { background: var(--gold-ink); }
.btn:active { transform: scale(0.985); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.ghost { background: rgba(255, 255, 255, 0.08); color: var(--fg); margin-top: 10px; }
.actions.inline { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 0; }
.actions.inline .btn.ghost { margin-top: 0; }
.linkbtn { margin-top: 18px; background: none; border: 0; color: var(--muted); font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- sheet + toast ---------- */

.sheet-back { position: fixed; inset: 0; z-index: 20; background: rgba(0, 0, 0, 0.5); }
.sheet {
  position: fixed;
  z-index: 21;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  overflow: auto;
  padding: 28px;
  background: rgba(20, 20, 20, 0.55);
}
.sheet h2 { font: 500 26px/1.2 var(--brand); margin: 0 0 6px; }
.sheet p { color: var(--muted); margin: 0 0 18px; font-size: 14px; }
.sheet .item { align-items: center; }
.sheet .actions { display: flex; gap: 10px; margin-top: 22px; }
.sheet .actions .btn { margin: 0; }

.toast {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  background: rgba(30, 30, 30, 0.6);
  max-width: calc(100vw - 32px);
}
.toast.bad { color: var(--bad); }

/* ---------- entrance ---------- */

.rise { animation: rise 700ms var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- smaller screens ---------- */

@media (max-width: 1100px) {
  .span-8, .span-4, .span-7, .span-5 { grid-column: span 12; }
}
@media (max-width: 720px) {
  body { font-size: 14px; }
  .shell { padding-left: 12px; padding-right: 12px; }
  .bar { padding: 10px 10px 10px 20px; top: 8px; }
  .mark { font-size: 18px; }
  .clock { display: none; }
  .grid { gap: 14px; }
  .panel { padding: 22px 20px 18px; }
  :root { --radius: 24px; }
  .figures { grid-template-columns: 1fr 1fr; gap: 18px 14px; }
  .figure.total { grid-column: span 2; }
  .figure .big { font-size: 38px; }
  .minis { grid-template-columns: 1fr 1fr; }
  .stages { flex-wrap: wrap; }
  .stage { flex: 1 1 33%; }
  .stage:nth-child(4) { box-shadow: none; }
  .stage:nth-child(n + 4) { border-top: 1px solid var(--hair); }
  .lists { grid-template-columns: 1fr; gap: 20px; }
  .row { grid-template-columns: minmax(0, 1fr); }
  .row .side { grid-column: 1; grid-row: auto; text-align: left; display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
  .row .meta .sep::before { margin-right: 8px; }
  /* computers keep Connect on the right of the name, as on a computer */
  .row.comp { grid-template-columns: minmax(0, 1fr) auto; }
  .row.comp .side { grid-column: 2; grid-row: 1 / span 2; display: block; }
  .row .meta { gap: 2px 8px; }
}

/* ---------- the gold flash for a new enquiry (noticeEnquiries), on every screen ---------- */

/* A solid card, no blur, so the TV's weak web engine only fades opacity; the gold rim breathes
   by opacity too, which a screen can do without redrawing. The page behind stays usable; only
   the card takes a tap, to close it. */
.flash { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; pointer-events: none; animation: flash-in 500ms var(--ease) both; }
.flash.out { animation: flash-out 600ms var(--ease) both; }
.flash::before { content: ""; position: absolute; inset: 6px; border-radius: 30px; box-shadow: inset 0 0 0 2px var(--gold), inset 0 0 60px rgba(214, 166, 69, 0.26); animation: breathe 2.4s ease-in-out infinite; }
.flash-card { position: relative; width: min(620px, 100%); padding: 34px 30px 26px; border-radius: 30px; background: #080705; box-shadow: inset 0 0 0 1px rgba(214, 166, 69, 0.55), 0 30px 80px rgba(0, 0, 0, 0.7); text-align: center; pointer-events: auto; cursor: pointer; }
.flash-card .kicker { justify-content: center; color: var(--gold); margin-bottom: 12px; }
.flash-name { font: 500 clamp(36px, 9vw, 60px)/1.05 var(--brand); color: var(--fg); overflow-wrap: anywhere; }
.flash-sub { margin-top: 12px; font-size: 16px; color: var(--muted); }
.flash-close { margin-top: 18px; font-size: 12px; color: var(--faint); }
/* the TV: drawn on its 1920x1080 layout, bigger, nothing to tap */
body.tv .flash { position: absolute; padding: 0; }
body.tv .flash::before { inset: 10px; border-radius: 36px; box-shadow: inset 0 0 0 3px var(--gold), inset 0 0 90px rgba(214, 166, 69, 0.28); }
body.tv .flash-card { width: 980px; padding: 56px 64px 52px; border-radius: 40px; cursor: default; }
body.tv .flash-card .kicker { font-size: 18px; margin-bottom: 18px; }
body.tv .flash-name { font-size: 84px; }
body.tv .flash-sub { margin-top: 18px; font-size: 26px; }
@keyframes flash-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes flash-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; }
  .flash::before { animation: none; }
  .track > b, .track > i { transition: none; }
}

/* ?lite=1, the TV app's fallback after a crash: no live blur, a darker tint instead */
body.lite .glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(22, 22, 22, 0.88); }

/* ---------- pairing a screen ---------- */

/* Geist's plain digits: Boska's old-style 1 reads like a small I from across a room */
.pair-code { font: 500 64px/1 var(--font); letter-spacing: 0.08em; color: var(--gold); margin: 6px 0 18px; white-space: nowrap; }
.pair-left { font-size: 13px; color: var(--faint); margin: 0 0 4px !important; }
.sheet-h { margin: 26px 0 6px; font-size: 15px; font-weight: 500; }
.pair-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 10px; }
.pair-row .field { margin: 4px 0 12px; font-size: 16px; letter-spacing: 0.06em; }
.pair-row .field.name { letter-spacing: 0; text-align: left; }

/* ---------- TV (/tv): drawn at 1920x1080, scaled to the screen by fitTv() ---------- */

html:has(body.tv) { overflow: hidden; height: 100%; }
body.tv { overflow: hidden; height: 100%; width: 100%; font-size: 18px; }
body.tv .shell {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  max-width: none;
  margin: 0;
  padding: 24px 36px;
  display: flex;
  flex-direction: column;
  transform-origin: 0 0;
}
body.tv .bar { position: static; padding: 12px 20px 12px 32px; margin-bottom: 16px; }
body.tv .mark { font-size: 26px; }
body.tv .clock { display: inline; font-size: 19px; margin-left: 14px; }
body.tv .live { font-size: 16px; }
body.tv #menu { display: none !important; }
body.tv #view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
body.tv .foot { display: none; }

body.tv .grid {
  flex: 1;
  min-height: 0;
  gap: 16px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto minmax(0, 1fr);
}
body.tv .panel { overflow: hidden; padding: 20px 28px; }
/* row / column start, then row / column end */
body.tv [data-panel="rev"] { grid-area: 1 / 1 / 2 / 7; }
body.tv [data-panel="today"] { grid-area: 1 / 7 / 2 / 10; }
body.tv [data-panel="computers"] { grid-area: 1 / 10 / 2 / 13; }
body.tv [data-panel="projects"] { grid-area: 2 / 1 / 3 / 6; }
body.tv [data-panel="outreach"] { grid-area: 2 / 6 / 3 / 10; }
body.tv [data-panel="recent"] { grid-area: 2 / 10 / 3 / 13; }

body.tv .kicker { font-size: 14px; margin-bottom: 16px; }
body.tv .figures { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.tv .figure.total { grid-column: auto; }
body.tv .figure .label, body.tv .figure .sub { font-size: 15px; }
body.tv .figure .big { font-size: 66px; }
body.tv .today-date { font-size: 32px; }
body.tv .glance li { font-size: 17px; padding: 9px 0; }
body.tv .row { padding: 9px 12px; }
body.tv .row.comp .meta { font-size: 14px; }
body.tv .row .name { font-size: 19px; }
body.tv .row .meta, body.tv .row .paid { font-size: 15px; }
body.tv .row .value { font-size: 19px; }
/* no Connect buttons: the TV can't open Chrome Remote Desktop */
body.tv .row.comp { grid-template-columns: minmax(0, 1fr); }
body.tv .row.comp .side { display: none; }
body.tv .minis { margin-bottom: 16px; }
body.tv .mini { padding: 12px 14px; }
body.tv .mini .l { font-size: 13px; }
body.tv .stage { padding: 10px 10px; }
body.tv .stage .l { font-size: 12px; letter-spacing: 0; }
body.tv .stages { margin-bottom: 18px; }
body.tv .item { font-size: 16px; padding: 8px 0; }
body.tv .item .what small { font-size: 13px; }
body.tv .list h3 { font-size: 15px; }
body.tv .demos { margin-top: 16px; }

body.tv .lock { min-height: 0; flex: 1; }
body.tv .lock .glass { width: 760px; padding: 56px 60px 48px; }
body.tv .lock h1 { font-size: 52px; }
body.tv .lock p { font-size: 22px; }
body.tv .pair-code { font-size: 128px; margin: 18px 0 26px; }
body.tv .pair-left { font-size: 18px; }

/* ---------- LinkedIn leads (2026-11-12) ---------- */

.span-12 { grid-column: span 12; }
body.tv [data-panel="linkedin"] { display: none; }
.li-cta { margin-top: 18px; }
button.item { width: 100%; background: none; border: 0; border-top: 1px solid var(--hair); color: inherit; font: inherit; text-align: left; cursor: pointer; }
button.item:first-of-type { border-top: 0; }
button.item:hover .what { color: var(--gold-ink); }
.score { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 999px; font: 600 12px/1 var(--font); color: var(--muted); box-shadow: inset 0 0 0 1px var(--hair); }
.score.hi { color: #000; background: var(--gold); box-shadow: none; }
.score.mid { color: var(--fg); box-shadow: inset 0 0 0 1px rgba(214, 166, 69, 0.5); }

.sheet.wide { width: min(1180px, calc(100vw - 32px)); height: calc(100vh - 64px); max-height: none; padding: 0; display: flex; flex-direction: column; overflow: hidden; background: rgba(14, 14, 14, 0.82); }
.li-top { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 8px; }
.li-top h2 { margin: 0; }
.li-tools { display: flex; gap: 10px; padding: 6px 24px 10px; }
.li-search, .li-sort { padding: 11px 14px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(0, 0, 0, 0.35); color: var(--fg); font: 400 14px/1.2 var(--font); }
.li-search { flex: 1; min-width: 0; }
.li-search:focus, .li-sort:focus, .li-text:focus { outline: none; border-color: var(--gold); }
.li-chips, .li-stages { display: flex; flex-wrap: wrap; gap: 8px; }
.li-chips { padding: 0 24px 14px; border-bottom: 1px solid var(--hair); }
.chip { padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.05); color: var(--muted); font: 500 13px/1 var(--font); cursor: pointer; white-space: nowrap; }
.chip span { color: var(--faint); margin-left: 4px; }
.chip.on { color: #000; background: var(--gold); border-color: var(--gold); }
.chip.on span { color: rgba(0, 0, 0, 0.6); }
.chip:disabled { cursor: default; }
.li-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); }
.li-list { overflow: auto; border-right: 1px solid var(--hair); padding: 6px 10px 20px; }
.li-detail { overflow: auto; padding: 20px 28px 32px; }
.li-row { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 12px 12px; border: 0; border-radius: 14px; background: none; color: var(--fg); font: inherit; text-align: left; cursor: pointer; }
.li-row:hover { background: rgba(255, 255, 255, 0.05); }
.li-row.on { background: rgba(214, 166, 69, 0.12); }
.li-row .score { margin-top: 1px; flex: none; }
.li-row .what { min-width: 0; flex: 1; font-size: 14px; font-weight: 500; }
.li-row small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.li-row small.tags { color: var(--faint); }
.li-row em { font-style: normal; color: var(--gold-ink); }
.li-back { display: none; margin: 0 0 12px; }
.li-name { display: flex; gap: 14px; align-items: flex-start; }
.li-name .score { height: 34px; min-width: 44px; font-size: 15px; margin-top: 4px; }
.li-name h3 { margin: 0; font: 500 26px/1.15 var(--brand); }
.li-name p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.li-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0 14px; }
.li-why { font-size: 14px; color: var(--muted); line-height: 1.5; }
.li-why b { color: var(--fg); font-weight: 500; }
.li-about { margin-top: 12px; font-size: 13px; color: var(--muted); }
.li-about summary { cursor: pointer; color: var(--fg); }
.li-about p { line-height: 1.55; margin: 8px 0 0; }
.li-post { margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--hair); font-size: 13px; }
.li-post h4 { margin: 0 0 6px; font-size: 12px; font-weight: 500; color: var(--muted); }
.li-post p { margin: 0 0 8px; line-height: 1.55; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }
.li-post a { color: var(--gold-ink); }
.li-step { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--hair); }
.li-step h4 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 15px; font-weight: 500; }
.li-step h4 span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(214, 166, 69, 0.16); color: var(--gold-ink); font-size: 12px; }
.li-text { display: block; width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(0, 0, 0, 0.35); color: var(--fg); font: 400 14px/1.55 var(--font); resize: vertical; }
.li-text[readonly] { color: var(--muted); }
.li-lab { display: block; margin: 12px 0 6px; font-size: 12px; color: var(--muted); }
.li-row-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.li-hint { margin: 8px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.li-hint.small { font-size: 12px; color: var(--faint); }
.li-hint b { color: var(--fg); font-weight: 500; }
.li-step .actions.inline { margin-top: 14px; }
.li-step .actions.inline .btn { margin: 0; }

@media (max-width: 720px) {
  .sheet.wide { width: 100vw; height: 100dvh; top: 0; left: 0; transform: none; border-radius: 0; }
  .li-top { padding: max(16px, env(safe-area-inset-top)) 16px 6px; }
  .li-tools { padding: 6px 16px 10px; }
  .li-chips { padding: 0 16px 12px; flex-wrap: nowrap; overflow-x: auto; }
  .li-body { grid-template-columns: minmax(0, 1fr); }
  .li-list { border-right: 0; }
  .li-detail { display: none; padding: 16px 16px max(28px, env(safe-area-inset-bottom)); }
  .li-body.open .li-list { display: none; }
  .li-body.open .li-detail { display: block; }
  .li-back { display: inline-block; }
  .li-sort { max-width: 42%; }
}
