/* Scout. Dark by intent, same palette as rapidweblaunch.com. */
:root {
  --bg: #121212; --surface: #1c1e21; --surface-2: #26292e; --line: #33363c; --line-strong: #4a4e56;
  --ink: #ffffff; --muted: #9398a3; --teal: #33ccb2; --teal-ink: #0b2b25; --teal-soft: rgba(51, 204, 178, 0.14);
  --pink: #ff0084; --pink-soft: rgba(255, 0, 132, 0.16); --amber: #ed9a1c; --amber-soft: rgba(237, 154, 28, 0.16);
  --red: #ff5d5d; --radius: 10px; --tap: 44px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
a { color: var(--teal); text-decoration: none; }
h1 { font-size: 1.5rem; margin: 0 0 4px; letter-spacing: -0.02em; }
h2 { font-size: 1.05rem; margin: 22px 0 8px; display: flex; align-items: baseline; gap: 8px; }
h2 small, h3 small { color: var(--muted); font-weight: 500; font-size: 0.8rem; }
h3 { font-size: 0.95rem; margin: 0 0 10px; }
h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 16px 0 6px; }
main { max-width: 760px; margin: 0 auto; padding: 12px 14px 24px; }
main.wide { max-width: 1400px; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: rgba(18, 18, 18, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { font-weight: 800; letter-spacing: -0.02em; font-size: 1.1rem; color: var(--ink); }
.topnav { display: none; gap: 4px; }
.topnav a, .tabbar a { color: var(--muted); padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 0.9rem; }
.topnav a.active, .tabbar a.active { color: var(--ink); background: var(--surface-2); }
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-around; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: rgba(18, 18, 18, 0.94); backdrop-filter: blur(10px); border-top: 1px solid var(--line); z-index: 5; }
.tabbar a { min-height: var(--tap); display: inline-flex; align-items: center; }
@media (min-width: 900px) { .topnav { display: flex; } .tabbar { display: none; } body { padding-bottom: 24px; } }

.flash { max-width: 760px; margin: 10px auto 0; padding: 10px 14px; background: var(--teal-soft); border: 1px solid var(--teal); border-radius: var(--radius); color: var(--ink); font-size: 0.9rem; }
.error { color: var(--red); }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.empty { color: var(--muted); padding: 10px 0; }
.mono { font-family: var(--mono); font-size: 0.8rem; }
.top-gap { margin-top: 14px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-top: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
@media (min-width: 760px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid2 > .card { margin-top: 0; } }
.stack { display: flex; flex-direction: column; gap: 8px; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

.row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; color: var(--ink); min-height: var(--tap); }
a.row:hover { border-color: var(--line-strong); }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row-sub { color: var(--muted); font-size: 0.82rem; }
.row-reason { font-size: 0.85rem; color: #d5d8de; margin-top: 2px; }
.row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.row.task { background: var(--surface); }
.check { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--teal); font-size: 1rem; cursor: pointer; }
.check:hover { background: var(--teal-soft); }
.taskline { display: flex; align-items: center; gap: 10px; margin: 6px 0; }

.pill { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 32px; padding: 0 8px; border-radius: 999px; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 0.9rem; }
.pill.hot { background: var(--teal); color: var(--teal-ink); }
.pill.warm { background: var(--amber-soft); color: var(--amber); border: 1px solid var(--amber); }
.pill.cold { background: var(--surface-2); color: var(--muted); }
.chip { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.chip.incumbent { background: var(--pink-soft); color: #ff6db4; border-color: var(--pink); }
.chip.grade-none, .chip.grade-broken { background: var(--pink-soft); color: #ff6db4; border-color: transparent; }
.chip.grade-social, .chip.grade-builder, .chip.grade-weak { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.chip.grade-ok { background: var(--teal-soft); color: var(--teal); border-color: transparent; }
.chip.stage-replied, .chip.stage-booked, .chip.stage-proposal { background: var(--teal-soft); color: var(--teal); }
.chip.stage-won { background: var(--teal); color: var(--teal-ink); }
.chip.stage-lost, .chip.stage-skipped { background: var(--surface-2); color: var(--muted); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--tap); padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink); font: inherit; font-weight: 600; font-size: 0.85rem; cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--teal); }
.btn.primary { background: var(--teal); color: var(--teal-ink); border-color: var(--teal); }
.btn.primary:hover { background: #58d5c0; }
.btn.ghost { background: transparent; }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 0.78rem; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.actions form { display: contents; }

input, select, textarea { width: 100%; background: var(--bg); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 16px; min-height: var(--tap); }
textarea { min-height: 80px; resize: vertical; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem; color: var(--muted); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; }
.checks label { flex-direction: row; align-items: center; gap: 8px; color: var(--ink); font-size: 0.9rem; min-height: 36px; }
.checks input { width: 18px; height: 18px; min-height: 0; }
.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 14px; }
.filters input[type=search] { grid-column: 1 / -1; }

.lead-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-top: 6px; }
.bars { list-style: none; padding: 0; margin: 0 0 10px; }
.bars li { position: relative; display: flex; justify-content: space-between; padding: 6px 0 8px; font-size: 0.85rem; }
.bars li b { font-variant-numeric: tabular-nums; }
.bars li i { position: absolute; left: 0; bottom: 2px; height: 3px; background: var(--teal); border-radius: 2px; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 4px 0; font-size: 0.88rem; border-bottom: 1px solid var(--line); }
.plain li:last-child { border-bottom: none; }
.issues li::before { content: '• '; color: var(--pink); }
.asset { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin-bottom: 8px; background: var(--bg); }
.asset summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.asset pre { white-space: pre-wrap; font: inherit; font-size: 0.9rem; margin: 8px 0; }
.timeline { list-style: none; padding: 0; margin: 0 0 12px; }
.timeline li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 0.85rem; }
.tl-body { white-space: pre-wrap; color: #d5d8de; margin-top: 2px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.stats div { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.stats b { display: block; font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.stats span { font-size: 0.75rem; color: var(--muted); }

.stage-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.stage-tabs a { flex: 0 0 auto; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: 0.85rem; }
.stage-tabs a.active { background: var(--surface-2); color: var(--ink); border-color: var(--line-strong); }
.columns .column { display: none; }
.columns .column.active { display: block; }
@media (min-width: 900px) {
  .stage-tabs { display: none; }
  .columns { display: grid; grid-template-columns: repeat(8, minmax(220px, 1fr)); gap: 10px; overflow-x: auto; align-items: start; }
  .columns .column { display: block; }
  .columns h2 { margin-top: 6px; }
}

.login-body { display: grid; place-items: center; min-height: 100dvh; padding: 20px; }
.login { width: min(340px, 100%); display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.login img { border-radius: 16px; }
.login input, .login button { width: 100%; }

/* Prep pack angle line and the streaming progress page. */
.angle { margin: 0 0 10px; padding: 10px 12px; border-left: 3px solid var(--teal); background: rgba(51, 204, 178, 0.08); font-size: 0.95rem; }
.login.progress { text-align: left; align-items: flex-start; width: min(520px, 100%); }
.login.progress h1 { font-size: 1.3rem; }
.login.progress p { margin: 0; }

/* Numbers tables. */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.table th, .table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); white-space: nowrap; }
.table th { color: var(--muted); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.table td:first-child { white-space: normal; }
