/* Live Producer web platform: mockup stylesheet (static, sample data; no backend).
   Tokens first, then the shell (rail, top bar), then the components the pages share. */

:root {
  color-scheme: light dark;
  --bg: #f2f2f2; --surface: #ffffff; --surface-2: #e9e9eb; --hover: #f4f4f5; --field: #ffffff;
  --text: #1d1d1f; --muted: #6e6e73; --sep: #dcdcdf; --shadow: 0 0 0 1px var(--sep);
  --rail: #e6e6e8; --rail-2: #d9d9dc; --rail-text: #1d1d1f; --rail-muted: #6e6e73;
  --accent: #0a84ff; --accent-soft: rgba(10, 132, 255, .12);
  --ok: #1aad5a; --ok-soft: rgba(26, 173, 90, .14);
  --warn: #e8921a; --warn-soft: rgba(232, 146, 26, .16);
  --danger: #e2445c; --danger-soft: rgba(226, 68, 92, .14);
  --info: #5b8def; --info-soft: rgba(91, 141, 239, .16);
  --draft: #8b90a0; --draft-soft: rgba(139, 144, 160, .18);
  --radius: 12px; --radius-s: 8px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1e1e1e; --surface: #262626; --surface-2: #3a3a3a; --hover: #2e2e2e; --field: #1e1e1e;
    --text: #f2f2f2; --muted: #9a9a9e; --sep: #3a3a3a; --shadow: 0 0 0 1px var(--sep);
    --rail: #1a1a1a; --rail-2: #2c2c2c; --rail-text: #d6d6d9; --rail-muted: #8e8e93;
    --ok: #30d158; --warn: #ffb340; --danger: #ff5c72; --info: #7aa7ff; --draft: #a0a0a5;
  }
}
:root[data-theme="dark"] {
  --bg: #1e1e1e; --surface: #262626; --surface-2: #3a3a3a; --hover: #2e2e2e; --field: #1e1e1e;
  --text: #f2f2f2; --muted: #9a9a9e; --sep: #3a3a3a; --shadow: 0 0 0 1px var(--sep);
  --rail: #1a1a1a; --rail-2: #2c2c2c; --rail-text: #d6d6d9; --rail-muted: #8e8e93;
  --ok: #30d158; --warn: #ffb340; --danger: #ff5c72; --info: #7aa7ff; --draft: #a0a0a5;
}

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
textarea, input, select { background: var(--field); color: var(--text); border: 1px solid var(--sep); border-radius: 6px; }

/* Info glyph with a tooltip: <i data-tip="…"></i>, made by mockup.js. */
.tip { position: relative; display: inline-flex; color: var(--muted); cursor: help; vertical-align: -3px; margin-left: 2px; }
.tip .icon { width: 15px; height: 15px; }
.tip:hover, .tip:focus { color: var(--accent); outline: none; }
.tip::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); width: max-content; max-width: 280px; background: var(--text); color: var(--bg); font-size: 12px; font-weight: 400; line-height: 1.4; padding: 8px 10px; border-radius: 8px; box-shadow: 0 4px 16px rgba(0, 0, 0, .25); opacity: 0; pointer-events: none; transition: opacity 120ms; z-index: 30; text-transform: none; letter-spacing: 0; white-space: normal; }
.tip:hover::after, .tip:focus::after { opacity: 1; }
h3 .tip { margin-left: 4px; }

/* The banner where AI is needed and no Claude key is linked (mockup.js fills [data-ai-banner]). */
.ai-banner { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--surface); border-radius: 8px; border: 1px solid var(--sep); color: var(--warn); }
.ai-banner .text { color: var(--text); }
.ai-banner .icon { color: var(--warn); width: 20px; height: 20px; }
.ai-banner .text { flex: 1; }
.ai-banner.compact { padding: 8px 12px; font-size: 13px; }
.mock-switch { position: fixed; right: 16px; bottom: 16px; z-index: 20; background: var(--surface); border: 1px solid var(--sep); border-radius: 999px; padding: 6px 12px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
html { font: 13px/1.45 -apple-system, system-ui, "Segoe UI", sans-serif; }
body { margin: 0; background: var(--bg); color: var(--text); display: grid; grid-template-columns: 224px 1fr; min-height: 100vh; }
a { color: var(--accent); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 19px; font-weight: 700; }
h2 { font-size: 15px; font-weight: 600; }
h3 { font-size: 13px; font-weight: 500; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -3px; }
.icon.big { width: 22px; height: 22px; }

/* ---------- Rail ---------- */
.rail { background: var(--rail); color: var(--rail-text); display: flex; flex-direction: column; padding: 14px 12px; gap: 4px; position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--sep); }
.rail .brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 14px; color: var(--rail-text); font-weight: 700; font-size: 15px; }
.rail .brand .logo { width: 30px; height: 30px; display: block; }
.rail .company { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--rail-2); cursor: pointer; margin-bottom: 10px; }
.rail .company .avatar { background: #5b8def; }
.rail .company strong { display: block; color: var(--rail-text); font-size: 13px; }
.rail .company span { font-size: 11px; color: var(--rail-muted); }
.rail .company .icon { margin-left: auto; color: var(--rail-muted); }
.rail h3 { padding: 10px 10px 4px; color: var(--rail-muted); font-size: 11px; font-weight: 600; }
.rail nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 7px; color: var(--rail-text); font-weight: 500; }
.rail nav a:hover { background: var(--rail-2); }
.rail nav a.active { background: var(--accent); color: #fff; }
.rail nav a .count { margin-left: auto; font-size: 11px; background: rgba(127, 127, 127, .25); padding: 1px 7px; border-radius: 999px; }
.rail nav a.active .count { background: rgba(255, 255, 255, .22); }
.rail .spacer { flex: 1; }
.rail .user { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; }
.rail .user:hover { background: var(--rail-2); cursor: pointer; }
.rail .user strong { display: block; color: var(--rail-text); font-size: 13px; }
.rail .user span { font-size: 11px; color: var(--rail-muted); }

/* ---------- Main ---------- */
main { display: flex; flex-direction: column; min-width: 0; min-height: 100vh; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 12px 24px; background: var(--surface); border-bottom: 1px solid var(--sep); position: sticky; top: 0; z-index: 5; }
.topbar .crumbs { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.topbar .crumbs a { color: var(--muted); }
.topbar .crumbs .icon { width: 14px; height: 14px; }
.topbar .search { margin-left: auto; display: flex; align-items: center; gap: 8px; background: var(--field); border: 1px solid var(--sep); border-radius: 7px; padding: 5px 10px; width: 240px; color: var(--muted); }
.topbar .search input { border: 0; background: none; outline: none; width: 100%; color: var(--text); }
.topbar .iconbtn { border: 0; background: none; width: 32px; height: 30px; border-radius: 7px; display: grid; place-items: center; color: var(--muted); cursor: pointer; }
.topbar .iconbtn:hover { background: var(--surface-2); color: var(--text); }
.content { padding: 20px 24px 40px; display: flex; flex-direction: column; gap: 18px; }

/* ---------- Buttons, chips, avatars ---------- */
/* Buttons as macOS draws them: a gray fill, the primary one accent-filled. */
.btn { display: inline-flex; align-items: center; gap: 7px; border: 0; background: var(--surface-2); color: var(--text); padding: 6px 12px; border-radius: 7px; font-weight: 500; cursor: pointer; white-space: nowrap; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06) inset; }
.btn:hover { filter: brightness(1.06); }
.btn:active { filter: brightness(.94); }
.btn.primary { background: var(--accent); color: #fff; box-shadow: none; }
.btn.danger { color: var(--danger); }
.btn.small { padding: 3px 9px; font-size: 12px; border-radius: 6px; }
.btn.ghost { background: none; box-shadow: none; }
.btn.ghost:hover { background: var(--surface-2); }
/* Status capsules as the app's "On plan", "Not set", "This segment": a gray capsule, the
   colour in the text and the symbol; LIVE and PREVIEW badges keep the app's uppercase. */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 7px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.chip .icon { width: 13px; height: 13px; stroke-width: 2.2; }
.chip.draft { color: var(--draft); }
.chip.published { color: var(--ok); }
.chip.onair { color: var(--danger); text-transform: uppercase; letter-spacing: .03em; font-size: 11px; }
.chip.done { color: var(--info); }
.chip.warn { color: var(--warn); }
.chip.neutral { color: var(--muted); font-weight: 500; }
.chip.accent { background: var(--accent-soft); color: var(--accent); }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: var(--accent); flex: none; }
.avatar.s { width: 22px; height: 22px; font-size: 10px; }
.avatars { display: flex; }
.avatars .avatar { margin-left: -6px; box-shadow: 0 0 0 2px var(--surface); }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 2px 7px; border-radius: 5px; background: rgba(0, 0, 0, .55); color: #fff; }
.badge.live { color: #ff6b6b; } .badge.preview { color: #5be37a; }
.badge .icon { width: 12px; height: 12px; stroke-width: 2.4; }
.avatars .avatar:first-child { margin-left: 0; }

/* ---------- Cards, tables, forms ---------- */
/* Flat groups with a hairline, as the app's inset groups and panels; no floating shadows. */
.card { background: var(--surface); border-radius: 10px; border: 1px solid var(--sep); }
.card .head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--sep); }
.card .head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card .body { padding: 16px 18px; }
.filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 7px; padding: 2px; }
.seg button { border: 0; background: none; padding: 4px 11px; border-radius: 6px; color: var(--muted); font-weight: 500; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.seg button.on { background: var(--hover); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
:root[data-theme="light"] .seg button.on, :root:not([data-theme="dark"]) .seg button.on { background: var(--surface); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seg button.on { background: #555; } }
:root[data-theme="dark"] .seg button.on { background: #555; }
.seg button .dot { width: 8px; height: 8px; border-radius: 50%; }
/* Pill toggles, as the app's source type filters: icon and word, filled accent when on. */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--surface-2); color: var(--text); padding: 5px 13px 5px 10px; border-radius: 999px; font-weight: 500; cursor: pointer; }
.pills button:hover { filter: brightness(1.06); }
.pills button.on { background: var(--accent); color: #fff; }
.pills button .icon { width: 17px; height: 17px; }
table.list { width: 100%; border-collapse: collapse; }
table.list th { text-align: left; font-size: 12px; color: var(--muted); padding: 9px 14px; border-bottom: 1px solid var(--sep); font-weight: 500; }
table.list td { padding: 12px 14px; border-bottom: 1px solid var(--sep); vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }
table.list tbody tr { cursor: pointer; }
table.list tbody tr:hover td { background: var(--hover); }
table.list .title strong { display: block; font-size: 14px; }
table.list .title span { color: var(--muted); font-size: 12px; }
.meters { display: grid; grid-template-columns: repeat(4, minmax(84px, 1fr)); gap: 10px; }
.meter { font-size: 11px; color: var(--muted); }
.meter b { display: block; color: var(--text); font-weight: 600; font-size: 12px; }
.meter .bar { height: 5px; border-radius: 3px; background: var(--surface-2); margin-top: 4px; overflow: hidden; }
.meter .bar i { display: block; height: 100%; background: var(--ok); }
.meter.warn .bar i { background: var(--warn); }
.meter.bad .bar i { background: var(--danger); }
.meter.off { opacity: .6; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea { border: 1px solid var(--sep); background: var(--field); border-radius: 6px; padding: 6px 9px; font-size: 13px; color: var(--text); outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { resize: vertical; line-height: 1.5; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: var(--text); font-weight: 400; }
.switch i { width: 34px; height: 20px; border-radius: 10px; background: var(--sep); position: relative; transition: background 150ms; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left 150ms; }
.switch input { display: none; }
.switch input:checked + i { background: var(--ok); }
.switch input:checked + i::after { left: 16px; }
.empty { border: 1px dashed var(--muted); border-radius: 8px; padding: 16px; text-align: center; color: var(--muted); font-size: 13px; }
.drop { border: 1px dashed var(--muted); border-radius: 8px; padding: 26px; text-align: center; color: var(--muted); background: var(--field); }
.drop strong { display: block; color: var(--text); margin-bottom: 4px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; font-size: 13px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
.status-dots { display: inline-flex; gap: 5px; }
.status-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--sep); display: inline-block; }
.status-dots i.ok { background: var(--ok); } .status-dots i.warn { background: var(--warn); } .status-dots i.bad { background: var(--danger); }

/* ---------- Two-pane layout (editor, resources) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 18px; align-items: start; }
.panel { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; display: flex; flex-direction: column; }
.panel .head { position: sticky; top: 0; background: var(--surface); z-index: 1; }
.panel section { padding: 14px 18px; border-bottom: 1px solid var(--sep); display: flex; flex-direction: column; gap: 10px; }
.panel section:last-child { border-bottom: 0; }
.panel section > h3 { display: flex; align-items: center; gap: 8px; }
.panel section > h3 .right { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 500; }
.panel .foot { padding: 12px 18px; display: flex; gap: 8px; border-top: 1px solid var(--sep); background: var(--surface); position: sticky; bottom: 0; }

/* ---------- Tabs ---------- */
/* Tabs as the Settings window's toolbar: a glyph over a word, the current one on a tinted tile. */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--sep); padding: 0 0 10px; }
.tabs button { border: 0; background: none; padding: 8px 14px 6px; color: var(--muted); font-weight: 500; cursor: pointer; border-radius: 8px; display: inline-flex; flex-direction: column; gap: 4px; align-items: center; min-width: 76px; }
.tabs button .icon { width: 22px; height: 22px; }
.tabs button:hover { background: var(--hover); }
.tabs button.on { color: var(--accent); background: var(--surface-2); }
.tabs button .count { font-size: 11px; color: var(--muted); }
.tabpage { display: none; } .tabpage.on { display: block; }

/* ---------- Segments (the Showrunner look) ---------- */
.segments { list-style: none; margin: 0; padding: 0; }
/* The Showrunner window's rows: number, a plain glyph, title over the secondary line, dots, time, still. */
.segment { display: grid; grid-template-columns: 34px 24px minmax(0, 1fr) auto auto 60px; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--sep); cursor: pointer; }
.segment:last-child { border-bottom: 0; }
.segment:hover { background: var(--hover); }
.segment.on { background: var(--accent-soft); }
.segment .num { color: var(--muted); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.segment .kind { width: 24px; height: 24px; display: grid; place-items: center; color: var(--muted); }
.segment .kind .icon { width: 19px; height: 19px; }
.segment .what strong { display: block; font-size: 15px; font-weight: 600; }
.segment .what span { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.segment .time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; }
.segment .time b { color: var(--text); font-weight: 600; display: block; }
.thumb { width: 60px; height: 34px; border-radius: 4px; background: #111; border: 1px solid #4a4a4a; border-bottom: 3px solid var(--accent); display: grid; place-items: center; color: #a8a8ad; overflow: hidden; position: relative; }
.thumb.placeholder { background: #1e1e1e; color: var(--warn); }
.thumb.placeholder::after { content: ""; position: absolute; right: 3px; top: 3px; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }
.thumb .icon { width: 14px; height: 14px; }

/* ---------- Resource cards ---------- */
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.rcard { background: var(--surface); border-radius: 8px; border: 1px solid var(--sep); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; }
.rcard:hover { border-color: var(--muted); }
.rcard.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.rcard .pic { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #3a3a3a, #1c1c1c); display: grid; place-items: center; color: #c8c8cc; position: relative; }
.rcard .pic.photo { background: linear-gradient(135deg, #e8c3a4, #a56b4a); }
.rcard .pic.page { background: linear-gradient(135deg, #4a4a4a, #222222); }
.rcard .pic .chip { position: absolute; left: 8px; top: 8px; }
.rcard .pic .ver { position: absolute; right: 8px; bottom: 8px; font-size: 11px; background: rgba(0, 0, 0, .5); color: #fff; padding: 2px 7px; border-radius: 999px; }
.rcard .meta { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.rcard .meta strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcard .meta span { font-size: 12px; color: var(--muted); }
.rcard .uses { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.rcard .uses .chip { font-weight: 500; }

/* ---------- Dialog ---------- */
dialog { border: 1px solid var(--sep); border-radius: 12px; padding: 0; background: var(--surface); color: var(--text); width: 720px; max-width: 92vw; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
dialog::backdrop { background: rgba(0, 0, 0, .45); backdrop-filter: blur(2px); }
dialog .head { display: flex; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--sep); }
dialog .head .iconbtn { margin-left: auto; border: 0; background: none; cursor: pointer; color: var(--muted); }
dialog .body { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
dialog .foot { padding: 14px 22px; border-top: 1px solid var(--sep); display: flex; justify-content: flex-end; gap: 8px; }
.starts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.start { border: 1px solid var(--sep); border-radius: 8px; padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; background: var(--field); }
.start:hover { border-color: var(--muted); }
.start.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.start .icon { width: 22px; height: 22px; color: var(--accent); }
.start strong { font-size: 14px; }
.start span { font-size: 12px; color: var(--muted); }

/* ---------- Account sections ---------- */
.settings { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; align-items: start; }
.subnav { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 2px; }
.subnav a { padding: 6px 12px; border-radius: 7px; color: var(--text); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.subnav a:hover { background: var(--surface-2); }
.subnav a.on { background: var(--accent); color: #fff; }
.subnav h3 { padding: 12px 12px 4px; font-size: 11px; font-weight: 600; }
.stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.usage { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; display: flex; }
.usage i { display: block; height: 100%; }

@media (max-width: 1100px) {
  .split { grid-template-columns: 1fr; }
  .panel { position: static; max-height: none; }
  .meters { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  body { grid-template-columns: 64px 1fr; }
  .rail { padding: 14px 8px; }
  .rail .brand span, .rail .company strong, .rail .company span, .rail .company .icon, .rail nav a span, .rail nav a .count, .rail .user strong, .rail .user span, .rail h3 { display: none; }
  .rail nav a, .rail .company, .rail .user { justify-content: center; padding: 10px; }
  .settings { grid-template-columns: 1fr; } .subnav { position: static; flex-direction: row; flex-wrap: wrap; }
}

/* ---------- The platform pages (beyond the mockup) ---------- */
.flash { padding: 9px 14px; border-radius: 8px; border: 1px solid var(--sep); background: var(--surface); }
.flash.error { color: var(--danger); } .flash.notice { color: var(--ok); }
.inline { display: inline; }
.hidden { display: none !important; }
.pane[hidden] { display: none !important; }
.rcard.hidden, .skill.hidden, tr.hidden { display: none; }
.linkbtn { border: 0; background: none; color: var(--accent); cursor: pointer; padding: 0; font: inherit; }
.linkbtn.danger { color: var(--danger); }
.panel form { display: contents; }
.saved { color: var(--ok); font-size: 12px; opacity: 0; transition: opacity 200ms; }
.saved.on { opacity: 1; }
.try-results { display: flex; flex-direction: column; gap: 4px; font-size: 12px; max-height: 260px; overflow: auto; }
.try-results div { display: grid; grid-template-columns: 34px 1fr auto; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--sep); }
.company-menu { position: relative; }
.company-menu summary { list-style: none; }
.company-menu summary::-webkit-details-marker { display: none; }
.company-menu .menu { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--sep); border-radius: 8px; padding: 4px; z-index: 30; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.company-menu .menu a { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; color: var(--text); font-size: 13px; }
.company-menu .menu a:hover { background: var(--surface-2); }
.company-menu .menu a.on { color: var(--accent); }
.rail .user form { margin-left: auto; }
.rail .user .linkbtn { color: var(--rail-muted); font-size: 12px; }

/* Signed-out pages: the sign-in column on the left, the stage photo filling the right,
   cropped around its centre whatever the window's shape; the photo goes on narrow screens. */
body.auth { display: grid; grid-template-columns: minmax(380px, 36%) 1fr; min-height: 100vh; background: var(--surface); }
.auth-panel { display: flex; flex-direction: column; min-height: 100vh; padding: 56px clamp(28px, 5vw, 80px) 36px; box-sizing: border-box; }
.auth-brand { display: flex; align-items: center; gap: 14px; color: var(--text); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.auth-brand img { width: 56px; height: 56px; }
.auth-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 16px; max-width: 440px; width: 100%; padding: 48px 0; }
.auth-body h1 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 8px; }
.auth-body p { margin: 0; }
.auth-options { display: flex; flex-direction: column; gap: 12px; }
.auth-email { display: flex; flex-direction: column; gap: 12px; }
.auth-options .field input { padding: 11px 12px; font-size: 15px; }
.btn.wide { width: 100%; justify-content: center; padding: 12px 16px; font-size: 15px; border-radius: 8px; }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--sep); }
.auth-foot { border-top: 1px solid var(--sep); padding-top: 18px; color: var(--muted); font-size: 13px; max-width: 440px; }
.auth-foot a { color: var(--muted); text-decoration: underline; }
.auth-art { position: relative; overflow: hidden; background: #111; }
.auth-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; }
body.auth input.code { font-size: 22px; letter-spacing: .12em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
  body.auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
}
.btn.apple { background: #000; color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.apple { background: #fff; color: #000; } }

/* Skills (from the mockup's page styles) */
.skill { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--sep); cursor: pointer; }
.skill:last-child { border-bottom: 0; }
.skill:hover { background: var(--hover); }
.skill.on { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.skill .glyph { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); }
.skill .what strong { display: block; font-size: 14px; }
.skill .what span { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skill .meta { text-align: right; font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.md { font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; min-height: 420px; tab-size: 2; width: 100%; padding: 12px 14px; resize: vertical; outline: none; }
.md:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.preview { font-size: 14px; line-height: 1.55; }
.preview h1 { font-size: 18px; margin: 0 0 10px; } .preview h2 { font-size: 14px; margin: 16px 0 6px; }
.preview ul { padding-left: 20px; margin: 6px 0; } .preview li { margin: 3px 0; }
.preview code { font-family: ui-monospace, Menlo, monospace; font-size: 12px; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.kv { margin: 0; }
.rcard .pic.recording { background: linear-gradient(135deg, #6b3a8e, #241433); }
.rcard .pic.audio { background: linear-gradient(135deg, #444, #111); }
.rail .brand > span:first-of-type { white-space: nowrap; }
.rail .brand .chip { font-size: 10px; padding: 1px 6px; }
