:root {
  --bg: #f2f0ea;
  --surface: #fffdf8;
  --surface-2: #f7f4ec;
  --paper: var(--surface);
  --line: #e4dfd3;
  --ink: #1c1a16;
  --ink-2: #5f5a50;
  --ink-3: #8c8678;
  --muted: var(--ink-2);
  --accent: #1e5c45;
  --accent-ink: #f4faf6;
  --danger: #8d2f2f;
  --goal: #1f7a4d;
  --goal-bg: #e3f2e8;
  --nogoal: #8a5a12;
  --nogoal-bg: #f7ecd8;
  --nogoal-fill: #c58a2a;
  --open: #2457a6;
  --open-bg: #e4ecf8;
  --shadow: 0 1px 0 rgb(27 25 22 / 4%);
  --radius: 12px;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.45 ui-sans-serif, system-ui, sans-serif;
}

a { color: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 64px;
  padding: 0 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}

.nav a { color: var(--ink-2); text-decoration: none; }

.nav a.on { color: var(--ink); font-weight: 600; }

.nav a.brand {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav .sp { flex: 1; }

.nav form { margin: 0; }

.btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 8px;
  padding: 7px 12px;
  cursor: pointer;
}

.btn:hover { background: var(--surface-2); }

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.gate main { width: min(400px, calc(100% - 32px)); margin: 0; padding: 16px; }

.card, .panel {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.panel { padding: 16px; }

.card { padding: 28px; }

h1 { font-size: 1.35rem; font-weight: 650; margin: 0 0 16px; }

h2 { font-size: 1rem; font-weight: 650; margin: 28px 0 10px; }

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.filters, .stack, .links form, .add {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}

.stack { flex-direction: column; align-items: stretch; }

label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.8rem;
}

.check {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--ink);
  font-size: 0.9rem;
}

input, select, button {
  font: inherit;
  color: var(--ink);
}

input, select {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  min-width: 0;
}

.stack input { width: 100%; }

input[readonly] {
  background: var(--bg);
  color: var(--muted);
}

.thread { width: 7rem; }

button {
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
}

button.ghost, a.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  border-style: solid;
  border-width: 1px;
}

button.danger {
  background: transparent;
  color: var(--danger);
  border-color: #e4c8c8;
}

input:focus, select:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); }

table { width: 100%; border-collapse: collapse; }

th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }

th {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

tr:last-child td { border-bottom: 0; }

.mono { font-family: ui-monospace, monospace; font-size: 0.82rem; }

.hint, .empty { color: var(--muted); }

.error { color: var(--danger); margin: 0 0 12px; }

.notice { color: var(--accent); margin: 0 0 12px; }

.links { list-style: none; padding: 0; margin: 0; }

.links li {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.links li p { margin: 0; }

.danger-zone { margin-top: 36px; padding-top: 8px; }

@media (max-width: 720px) {
  .nav { flex-wrap: wrap; height: auto; padding: 12px 20px; }
  .links li { grid-template-columns: 1fr; }
}

.feed h1 {
  font-size: 26px;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.feed .head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.feed .sub {
  color: var(--ink-2);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-3);
}

.live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--goal);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 7px transparent; }
}

.tz {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.tz button {
  border: 0;
  background: none;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-2);
}

.tz button.on { background: var(--ink); color: var(--surface); }

.kpis {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.kpi .l {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  font-weight: 600;
}

.kpi .v {
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.kpi .h { font-size: 13px; color: var(--ink-3); }

.kpi.click {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.15s, box-shadow 0.15s, opacity 0.15s, transform 0.1s;
}

.kpi.click:hover { border-color: var(--ink-3); background: var(--surface); }

.kpi.click:active { transform: scale(0.99); }

.kpi.click.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }

.kpi.click.dim { opacity: 0.6; }

.kpi.click.dim:hover { opacity: 1; }

.kpi .x {
  float: right;
  margin-left: 8px;
  font-size: 11px;
  color: var(--ink-3);
}

.bar {
  display: flex;
  height: 6px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface-2);
  margin-top: 10px;
}

.bar span { display: block; height: 100%; }

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}

.search { flex: 1; min-width: 200px; position: relative; }

.search input {
  width: 100%;
  padding: 9px 12px 9px 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.search svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
}

.seg {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}

.seg button {
  border: 0;
  background: none;
  padding: 6px 11px;
  border-radius: 7px;
  cursor: pointer;
  color: var(--ink-2);
  font-size: 14px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.seg button.on { background: var(--ink); color: var(--surface); }

.seg .n { font-size: 12px; opacity: 0.7; font-variant-numeric: tabular-nums; }

.feed select {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.day {
  margin: 22px 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  display: flex;
  gap: 10px;
  align-items: center;
}

.day::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.feed .row {
  display: grid;
  grid-template-columns: 64px 1fr 160px 116px 160px 20px;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  cursor: pointer;
}

.feed .row:first-child { border-top: 0; }

.feed .row:hover { background: var(--surface-2); }

.time { font-variant-numeric: tabular-nums; font-weight: 600; }

.time small {
  display: block;
  font-weight: 400;
  color: var(--ink-3);
  font-size: 12px;
}

.main { min-width: 0; }

.main .flow,
.kv .flow {
  font-family: var(--mono);
  font-size: 12.5px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-block;
}

.main .meta {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 13px;
  flex-wrap: wrap;
  align-items: center;
}

.ev {
  font-family: var(--mono);
  font-size: 12.5px;
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.copy {
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--ink-3);
  padding: 2px;
  border-radius: 4px;
  display: inline-flex;
}

.copy:hover { color: var(--ink); background: var(--line); }

.client { display: flex; align-items: center; gap: 8px; font-size: 14px; }

.av {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--surface);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  flex: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.b-golo { color: var(--goal); background: var(--goal-bg); }

.b-sem { color: var(--nogoal); background: var(--nogoal-bg); }

.b-aberto { color: var(--open); background: var(--open-bg); }

.b-aberto i { animation: blink 1.4s infinite; }

@keyframes blink { 50% { opacity: 0.25; } }

.dur { font-size: 13px; color: var(--ink-2); }

.dur .track {
  height: 4px;
  border-radius: 3px;
  background: var(--surface-2);
  margin-top: 6px;
  overflow: hidden;
}

.dur .track span { display: block; height: 100%; border-radius: 3px; }

.chev { color: var(--ink-3); }

.feed .empty { padding: 48px 16px; text-align: center; color: var(--ink-3); }

.foot {
  margin-top: 14px;
  color: var(--ink-3);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.scrim {
  position: fixed;
  inset: 0;
  background: rgb(20 18 14 / 35%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 10;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 100%);
  background: var(--surface);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 11;
  display: flex;
  flex-direction: column;
}

.open .scrim { opacity: 1; pointer-events: auto; }

.open .drawer { transform: none; }

.dh {
  padding: 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.dh h2 { margin: 0 0 6px; font-size: 18px; }

.db { padding: 20px; overflow: auto; flex: 1; }

.kv {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px 12px;
  font-size: 14px;
  margin-bottom: 24px;
}

.kv dt { color: var(--ink-3); }

.kv dd { margin: 0; }

.kv dd.mono { font-family: var(--mono); }

.tl { list-style: none; margin: 0; padding: 0; position: relative; }

.tl::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}

.tl li { position: relative; padding: 0 0 18px 26px; font-size: 14px; }

.tl li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--ink-3);
}

.tl li.g::before { border-color: var(--goal); background: var(--goal); }

.tl li.s::before { border-color: var(--nogoal); background: var(--nogoal); }

.tl li.o::before { border-color: var(--open); border-style: dashed; }

.tl small { display: block; color: var(--ink-3); }

.note {
  font-size: 13px;
  color: var(--ink-3);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 8px;
}

.da {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
}

.da .pri {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
  text-decoration: none;
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--surface);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  opacity: 0;
  transition: 0.2s;
  z-index: 20;
}

.toast.on { opacity: 1; transform: translateX(-50%); }

.cal-wrap { position: relative; }

.cal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}

.cal-btn:hover { background: var(--surface-2); }

.cal-btn.on { border-color: var(--ink); }

.cal-pop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 8;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgb(28 26 22 / 12%);
  display: none;
  width: max-content;
  max-width: calc(100vw - 32px);
}

.cal-pop.on { display: flex; }

.presets {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px;
  border-right: 1px solid var(--line);
  min-width: 150px;
}

.presets button {
  border: 0;
  background: none;
  text-align: left;
  padding: 7px 10px;
  border-radius: 7px;
  cursor: pointer;
  color: var(--ink-2);
  font-size: 14px;
}

.presets button:hover { background: var(--surface-2); color: var(--ink); }

.presets button.on { background: var(--ink); color: var(--surface); }

.cal { padding: 14px 16px; }

.cal-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-weight: 600;
}

.cal-h button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 7px;
  width: 28px;
  height: 28px;
  padding: 0;
  cursor: pointer;
}

.months { display: flex; gap: 20px; }

.month .mt {
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(7, 34px);
  row-gap: 2px;
}

.grid .wd {
  font-size: 11px;
  color: var(--ink-3);
  text-align: center;
  padding: 4px 0;
  font-weight: 600;
}

.grid .d {
  height: 34px;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  position: relative;
  padding: 0;
}

.grid .d:hover span { background: var(--surface-2); }

.grid .d span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: auto;
  border-radius: 50%;
}

.grid .d.has::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--open);
}

.grid .d.in { background: var(--surface-2); }

.grid .d.s { background: linear-gradient(90deg, transparent 50%, var(--surface-2) 50%); }

.grid .d.e { background: linear-gradient(90deg, var(--surface-2) 50%, transparent 50%); }

.grid .d.s.e { background: none; }

.grid .d.s span,
.grid .d.e span { background: var(--ink); color: var(--surface); }

.grid .d.s.has::after,
.grid .d.e.has::after { background: var(--surface); }

.grid .d.today span { box-shadow: inset 0 0 0 1px var(--ink-3); }

.grid .d.fut { color: var(--ink-3); opacity: 0.45; cursor: default; }

.cal-f {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
}

.cal-actions { display: flex; gap: 6px; }

.cal-f .btn.pri {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}

.match {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  flex-wrap: wrap;
}

.team { min-width: 0; }

.score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}

.score.live {
  color: var(--open);
  border-color: color-mix(in srgb, var(--open) 30%, var(--line));
}

.score .min { font-size: 11px; font-weight: 600; opacity: 0.85; }

.league {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 3px;
}

.big-match {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  text-align: center;
}

.big-match .teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.big-match .teams > :first-child { text-align: right; }

.big-match .teams > :last-child { text-align: left; }

.big-match .score {
  font-size: 20px;
  padding: 6px 14px;
  background: var(--surface);
}

.big-match .goal {
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 10px;
}

@media (max-width: 860px) {
  .feed .kpis { grid-template-columns: repeat(2, 1fr); }
  .feed .kpis .kpi:first-child { grid-column: span 2; }
  .feed .row { grid-template-columns: 56px 1fr auto; gap: 10px; }
  .feed .row .client,
  .feed .row .dur,
  .feed .row .chev { display: none; }
  .cal-pop { right: auto; left: 0; flex-direction: column; }
  .presets {
    flex-direction: row;
    flex-wrap: wrap;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .months .month:nth-child(2) { display: none; }
}

.muted { color: var(--ink-3); }

.btn.pri {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}

.btn.pri:hover { background: #000; }

.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn.danger {
  color: var(--danger);
  border-color: #e9c6c4;
  background: var(--surface);
}

.btn.danger:not(:disabled):hover { background: #fbeceb; }

.btn.danger.solid {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

.chip {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-block;
  white-space: nowrap;
}

.people h1,
.person h1,
.flows-page h1,
.flow-page h1 {
  font-size: 26px;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.people .head,
.flows-page .head,
.person .profile {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.person .profile { align-items: center; justify-content: flex-start; }

.people .sub,
.person .sub,
.flows-page .sub,
.flow-page .sub { color: var(--ink-2); margin: 0; }

.people .kpis,
.person .stats,
.flows-page .kpis,
.flow-page .stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.sheet {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.people .kpi,
.person .stat,
.flows-page .kpi,
.flow-page .kpi { padding: 14px 16px; }

.people .kpi .l,
.person .stat .l,
.flows-page .kpi .l,
.flow-page .kpi .l {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  font-weight: 600;
}

.people .kpi .v,
.person .stat .v,
.flows-page .kpi .v,
.flow-page .kpi .v {
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.person .stat .v { font-size: 22px; }

.people .toolbar,
.flows-page .toolbar { margin-bottom: 14px; }

.lhead,
.crow {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) 1.3fr 150px 120px 20px;
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
}

.lhead {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.crow {
  border-top: 1px solid var(--line);
  cursor: pointer;
}

.lhead + .crow { border-top: 0; }

.crow:hover { background: var(--surface-2); }

.who { display: flex; align-items: center; gap: 12px; min-width: 0; }

.who > div { min-width: 0; }

.who b,
.who small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.who b { font-weight: 600; }

.who small { color: var(--ink-3); font-size: 13px; }

.av.sm { width: 34px; height: 34px; font-size: 12px; }

.av.lg { width: 56px; height: 56px; font-size: 19px; }

.flows { display: flex; gap: 6px; flex-wrap: wrap; }

.rate { font-size: 13px; color: var(--ink-2); }

.rate .bar { height: 5px; margin-top: 5px; }

.since .muted { font-size: 12px; }

.people .empty,
.flows-page .empty,
.flow-page .empty { padding: 48px 16px; text-align: center; color: var(--ink-3); }

.people .empty .btn { margin-top: 12px; }

.crumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 16px;
}

.crumb:hover { color: var(--ink); }

.profile .meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--ink-2);
  font-size: 14px;
  margin-top: 4px;
  align-items: center;
}

.grid2 {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
  align-items: start;
}

.sec { padding: 20px; }

.sec.gap { margin-top: 16px; }

.sec-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 10px;
}

.sec-h h2 { margin: 0; font-size: 17px; }

.sec-h p { margin: 2px 0 0; font-size: 13px; color: var(--ink-3); }

.field { margin-bottom: 14px; }

.field label,
.field-label,
.topic label,
.topic-edit label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink-2);
}

.field input,
.topic input,
.topic-edit input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.topic input,
.topic-edit input {
  font-family: var(--mono);
  font-size: 13px;
  padding: 8px 10px;
}

.field input:focus,
.topic input:focus,
.topic-edit input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgb(28 26 22 / 8%);
}

.field .msg,
.fopt .msg,
.topic-edit .msg {
  display: none;
  font-size: 12.5px;
  color: var(--danger);
  margin-top: 5px;
}

.field.err input,
.fopt.err input,
.topic-edit.err input { border-color: var(--danger); }

.field.err .msg,
.fopt.err .msg,
.topic-edit.err .msg { display: block; }

.actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.actions .hint { margin-right: auto; font-size: 13px; }

.flow-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.flow-block { border-top: 1px solid var(--line); }

.flow-block:first-child { border-top: 0; }

.flow-item .t { flex: 1; min-width: 0; }

.flow-item .t b { display: block; font-weight: 600; margin-bottom: 4px; }

.switch { position: relative; width: 38px; height: 22px; flex: none; }

.switch input { opacity: 0; width: 0; height: 0; position: absolute; }

.switch span {
  position: absolute;
  inset: 0;
  background: #cfc8b8;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.15s;
}

.switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 20%);
  transition: 0.15s;
}

.switch input:checked + span { background: var(--accent); }

.switch input:checked + span::after { transform: translateX(16px); }

.switch input:focus-visible + span { box-shadow: 0 0 0 3px rgb(31 92 70 / 25%); }

.topic,
.topic-edit { padding: 0 0 12px; }

.topic { display: none; padding: 10px 12px 12px 38px; background: #f1f7f3; }

.fopt:has(.check input:checked) .topic { display: block; }

.topic label em,
.topic-edit label em {
  font-style: normal;
  font-weight: 400;
  color: var(--ink-3);
}

.topic-row { display: flex; gap: 8px; }

.topic-edit .hint { margin: 6px 0 0; }

.msgs { list-style: none; margin: 0; padding: 0; }

.msgs li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.msgs li:first-child { border-top: 0; }

.msgs .when {
  width: 92px;
  color: var(--ink-3);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  flex: none;
}

.msgs .ev { flex: 1; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

.person .danger-zone {
  border-color: #ecd3d1;
  margin-top: 16px;
  padding-top: 20px;
}

.person .danger-zone h2 { color: var(--danger); }

.dz-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.dz-row p { margin: 0; color: var(--ink-2); font-size: 14px; max-width: 520px; }

.modal-scrim {
  position: fixed;
  inset: 0;
  background: rgb(20 18 14 / 40%);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 20;
}

.modal-scrim.on { display: flex; }

.modal {
  width: min(460px, 100%);
  padding: 22px;
  box-shadow: 0 20px 50px rgb(28 26 22 / 20%);
}

.modal h2 { margin: 0 0 4px; font-size: 17px; }

.modal .sub { font-size: 14px; margin-bottom: 18px; }

.checks { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
}

.fopt {
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}

.fopt:has(.check input:checked) {
  border-color: var(--accent);
  background: #f1f7f3;
}

.fopt .check { border: 0; }

.check input { accent-color: var(--accent); width: 16px; height: 16px; }

.toast button {
  background: none;
  border: 0;
  color: #9fd3b8;
  font-weight: 600;
  margin-left: 10px;
  cursor: pointer;
  padding: 0;
}

.toast { pointer-events: none; }

.toast button { pointer-events: auto; }

@media (max-width: 860px) {
  .people .kpis,
  .person .stats,
  .flows-page .kpis,
  .flow-page .stats { grid-template-columns: repeat(2, 1fr); }
  .lhead { display: none; }
  .crow { grid-template-columns: 1fr auto; gap: 8px; }
  .crow .flows,
  .crow .since,
  .crow .chev { display: none; }
  .grid2 { grid-template-columns: 1fr; }
  .flows-page .frow { grid-template-columns: 1fr auto; gap: 8px; }
  .flows-page .frow .rate,
  .flows-page .frow .last,
  .flows-page .frow .chev { display: none; }
  .flow-page .vhead { display: none; }
  .flow-page .vrow { grid-template-columns: 1fr 1fr; gap: 8px; }
  .flow-page .vrow .who,
  .flow-page .vrow .vact { grid-column: 1 / -1; }
  .flow-page .vrow .vact { justify-content: flex-start; }
  .flow-page .add-grid { grid-template-columns: 1fr 1fr; }
  .flow-page .add-grid > :first-child { grid-column: 1 / -1; }
}

.field label em,
.topic label em,
.topic-edit label em {
  font-style: normal;
  font-weight: 400;
  color: var(--ink-3);
}

.btn.sm { padding: 6px 10px; font-size: 14px; }

.chip.copy-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.help { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; }

.flows-page .lhead,
.flows-page .frow {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) 1.1fr 150px 120px 20px;
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
}

.flows-page .frow { border-top: 1px solid var(--line); cursor: pointer; }

.flows-page .lhead + .frow { border-top: 0; }

.flows-page .frow:hover { background: var(--surface-2); }

.flows-page .fname b { display: block; font-weight: 600; }

.flows-page .fname .chip { margin-top: 4px; }

.flows-page .avatars { display: flex; align-items: center; }

.flows-page .avatars .av {
  width: 28px;
  height: 28px;
  font-size: 10.5px;
  margin-left: -7px;
  border: 2px solid var(--surface);
}

.flows-page .avatars .av:first-child { margin-left: 0; }

.flows-page .avatars .t { margin-left: 8px; font-size: 13px; color: var(--ink-2); }

.flows-page .warn { font-size: 12px; color: var(--nogoal); margin-top: 3px; }

.flows-page .bare { font-size: 13px; }

.flows-page .last { font-size: 14px; }

.flows-page .rate .bar { height: 5px; margin-top: 5px; }

.flow-page .profile { margin-bottom: 24px; }

.flow-page .profile h1 {
  display: flex;
  align-items: center;
  gap: 6px;
}

.flow-page .kpi .v .share {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-3);
}

.flow-page .sec { margin-bottom: 16px; }

.flow-page .sec-h { flex-wrap: wrap; }

.flow-page .grid2 { grid-template-columns: 1fr 1fr; }

.flow-page input.mono,
.field input.mono { font-family: ui-monospace, monospace; font-size: 13px; }

.flow-page input[readonly] {
  background: var(--surface-2);
  color: var(--ink-2);
  cursor: default;
}

.lockwrap { position: relative; }

.lockwrap svg {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
}

.lockwrap input { padding-right: 36px; }

.callout {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
}

.callout svg { flex: none; margin-top: 2px; }

.flow-page .vhead,
.flow-page .vrow {
  display: grid;
  grid-template-columns: minmax(200px, 1.4fr) 110px 1fr 130px auto;
  gap: 12px;
  align-items: center;
}

.flow-page .vhead {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  font-weight: 600;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--line);
}

.flow-page .vrow { padding: 12px 0; border-bottom: 1px solid var(--line); }

.flow-page .vrow:last-child { border-bottom: 0; }

.flow-page .vrow .av { width: 30px; height: 30px; font-size: 11px; }

.flow-page .vrow input {
  width: 100%;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-family: ui-monospace, monospace;
  font-size: 13px;
}

.flow-page .vrow input:focus { outline: none; border-color: var(--ink); }

.flow-page .vrow input.bad,
.topic-edit input.bad,
.topic input.bad,
.flow-page .link-add input.bad { border-color: var(--danger); }

.flow-page .vact { display: flex; gap: 6px; justify-content: flex-end; }

.icon-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-3);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.icon-btn:hover {
  color: var(--danger);
  border-color: #e9c6c4;
  background: #fbeceb;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.p-on { color: var(--goal); background: var(--goal-bg); }

.p-off { color: var(--nogoal); background: var(--nogoal-bg); }

.flow-page .link-add {
  margin-top: 16px;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}

.flow-page .add-grid {
  display: grid;
  grid-template-columns: 1.4fr 110px 1fr auto;
  gap: 10px;
  align-items: end;
}

.flow-page .add-grid select,
.flow-page .add-grid input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.flow-page .add-grid input { font-family: ui-monospace, monospace; font-size: 13px; }

.flow-page .all-in { margin: 14px 0 0; font-size: 14px; }

.flow-page #links .empty { padding: 24px 16px; }

.flow-page .danger-zone { border-color: #ecd3d1; }

.flow-page .danger-zone h2 { color: var(--danger); }

.dz-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.dz-row p { margin: 0; color: var(--ink-2); font-size: 14px; max-width: 560px; }

.topic-edit label + input { margin-bottom: 10px; }

@media (max-width: 860px) {
  .flows-page .lhead { display: none; }
  .flows-page .frow { grid-template-columns: 1fr auto; gap: 8px; }
  .flows-page .frow .rate,
  .flows-page .frow .last,
  .flows-page .frow .chev { display: none; }
  .flow-page .vhead { display: none; }
  .flow-page .grid2 { grid-template-columns: 1fr; }
  .flow-page .vrow { grid-template-columns: 1fr 1fr; gap: 8px; }
  .flow-page .vrow .who,
  .flow-page .vrow .vact { grid-column: 1 / -1; }
  .flow-page .vrow .vact { justify-content: flex-start; }
  .flow-page .add-grid { grid-template-columns: 1fr 1fr; }
  .flow-page .add-grid > :first-child { grid-column: 1 / -1; }
  .nav { gap: 14px; padding: 0 12px; }
  .nav a { font-size: 14px; }
  .dash .kpis { grid-template-columns: repeat(2, 1fr); }
  .dash .split,
  .dash .split3 { grid-template-columns: 1fr; }
}

.dash h1 {
  font-size: 26px;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.dash a { color: inherit; text-decoration: none; }

.dash .head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.dash .sub {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--ink-2);
  margin: 0;
}

.dash .live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-3);
}

.dash .live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--goal);
}

.dash .kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.dash .kpi { padding: 16px; display: block; }

.dash a.kpi:hover { border-color: var(--ink-3); }

.dash .kpi .l {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  font-weight: 600;
}

.dash .kpi .v {
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.dash .kpi .v .share {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-3);
}

.dash .open-count { color: var(--open); }

.dash .kpi .d { font-size: 13px; color: var(--ink-2); margin-top: 2px; }

.dash .up { color: var(--goal); font-weight: 600; }

.dash .down { color: #a3262a; font-weight: 600; }

.dash .split {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.dash .split3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.dash .sec { padding: 18px 20px; }

.dash .sec-h { flex-wrap: wrap; }

.dash .sec-h a { font-size: 13px; color: var(--ink-2); }

.dash .sec-h a:hover { color: var(--ink); }

.dash .legend {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: var(--ink-2);
  flex-wrap: wrap;
}

.dash .legend span,
.dash .tip div span { display: inline-flex; align-items: center; gap: 6px; }

.dash .swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}

.dash .swatch.g,
.dash .seg-g,
.dash .flowrow .bar .g { background: var(--goal); fill: var(--goal); }

.dash .swatch.s,
.dash .seg-s,
.dash .flowrow .bar .s { background: var(--nogoal-fill); fill: var(--nogoal-fill); }

.dash .swatch.o,
.dash .seg-o,
.dash .flowrow .bar .o { background: var(--open); fill: var(--open); }

.dash .chart { position: relative; }

.dash .chart svg { display: block; width: 100%; height: 220px; overflow: visible; }

.dash .chart .grid line { stroke: var(--line); stroke-width: 1; }

.dash .chart .ax {
  font-size: 11px;
  fill: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.dash .chart .hit { fill: transparent; cursor: default; }

.dash .tip {
  position: absolute;
  pointer-events: none;
  background: var(--ink);
  color: var(--surface);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12.5px;
  min-width: 140px;
  opacity: 0;
  transform: translateY(-50%);
  box-shadow: 0 6px 18px rgb(28 26 22 / 18%);
  white-space: nowrap;
  z-index: 2;
}

.dash .tip b { display: block; margin-bottom: 4px; }

.dash .tip div { display: flex; justify-content: space-between; gap: 14px; }

.dash .tip .swatch { width: 8px; height: 8px; border-radius: 2px; }

.dash .tblv { font-size: 13px; margin-top: 10px; }

.dash .tblv summary { cursor: pointer; color: var(--ink-3); }

.dash .tblv table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}

.dash .tblv th,
.dash .tblv td { text-align: right; padding: 4px 6px; border-bottom: 1px solid var(--line); }

.dash .tblv th:first-child,
.dash .tblv td:first-child { text-align: left; }

.dash .items { list-style: none; margin: 0; padding: 0; }

.dash .items li { padding: 11px 0; border-top: 1px solid var(--line); }

.dash .items li:first-child { border-top: 0; padding-top: 0; }

.dash .game .lg { font-size: 12px; color: var(--ink-3); }

.dash .game .m {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.dash .game .meta { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }

.dash .flowrow .t {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px 8px;
  font-size: 14px;
  flex-wrap: wrap;
}

.dash .flowrow .t > span:last-child { white-space: nowrap; }

.dash .flowrow .t b { font-weight: 600; }

.dash .flowrow .bar {
  display: flex;
  height: 6px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface-2);
  margin-top: 7px;
  gap: 2px;
}

.dash .flowrow .bar span { height: 100%; border-radius: 2px; min-width: 4px; }

.dash .alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.dash .alert .ic {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--nogoal-bg);
  color: var(--nogoal);
}

.dash .alert .ic.ok { background: var(--goal-bg); color: var(--goal); }

.dash .alert b { display: block; font-weight: 600; font-size: 14px; }

.dash .alert small { color: var(--ink-3); font-size: 12.5px; }

.dash a.alert:hover b { text-decoration: underline; }

.dash .recent {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.dash .recent .when {
  color: var(--ink-3);
  font-size: 12.5px;
  width: 48px;
  font-variant-numeric: tabular-nums;
}

.dash .recent .who {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .dash .kpis { grid-template-columns: repeat(2, 1fr); }
  .dash .split,
  .dash .split3 { grid-template-columns: 1fr; }
}

.nav {
  gap: 6px;
  padding: 0 16px 0 20px;
}

.nav .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 12px;
  font-size: 15px;
}

.nav .brand i {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--surface);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 15px;
}

.nav-links a:hover,
.nav-links a.on {
  background: var(--surface-2);
  color: var(--ink);
}

.nav-links a.on { font-weight: 600; }

.nav-links svg { opacity: 0.75; }

.nav-sep {
  width: 1px;
  height: 20px;
  background: var(--line);
  margin: 0 8px;
}

.nav .count {
  font-size: 11.5px;
  font-weight: 700;
  background: var(--open-bg);
  color: var(--open);
  border-radius: 999px;
  padding: 1px 7px;
}

.nav .nav-btn,
.nav .account-btn {
  background: none;
  color: var(--ink-2);
  border: 0;
  cursor: pointer;
}

.nav .nav-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 9px;
  display: grid;
  place-items: center;
  position: relative;
  text-decoration: none;
}

.nav .nav-btn:hover,
.nav a.nav-btn.on {
  background: var(--surface-2);
  color: var(--ink);
}

.nav-burger { display: none; }

.nav-dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nogoal);
  border: 2px solid var(--surface);
}

.nav .account-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
  padding: 3px 10px 3px 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
}

.nav .account-btn:hover { background: var(--surface-2); }

.account-btn .nm {
  font-size: 14px;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-pop { position: relative; }

.alert-pop,
.account-menu {
  display: none;
  position: absolute;
  top: 46px;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgb(28 26 22 / 14%);
  z-index: 3;
}

.alert-pop { width: 320px; padding: 8px; }

.account-menu { width: 260px; padding: 6px; }

.alert-pop.on,
.account-menu.on { display: block; }

.alert-pop .alert-h {
  margin: 4px 8px 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.alert-pop a,
.account-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
}

.alert-pop a { display: block; color: var(--ink); }

.alert-pop a b { display: block; font-size: 14px; font-weight: 600; }

.alert-pop a small,
.alert-pop .muted {
  display: block;
  color: var(--ink-3);
  font-size: 13px;
}

.alert-pop .muted { margin: 4px 8px 8px; }

.alert-pop a:hover,
.account-menu a:hover { background: var(--surface-2); color: var(--ink); }

.account-menu hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 6px 0;
}

.account-menu .who {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}

.account-menu .who .av { width: 36px; height: 36px; font-size: 13px; }

.account-menu .who b { display: block; font-size: 14px; }

.account-menu .who small { color: var(--ink-3); font-size: 12.5px; }

.account-menu form { margin: 0; }

.account-menu button.item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink-2);
  text-align: left;
  font-size: 14px;
}

.account-menu button.item:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.account-menu button.out { color: var(--danger); }

.account-menu button.out:hover { color: var(--danger); }

.nav-drawer { display: none; }

body.compact .feed .row {
  padding-top: 8px;
  padding-bottom: 8px;
}

.settings-page h1 {
  font-size: 26px;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.settings-page .lead { color: var(--ink-2); margin: 0; }

.settings-page h2 { font-size: 18px; margin: 0 0 2px; }

.settings-page .settings {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 28px;
  margin-top: 24px;
  align-items: start;
}

.settings-page .side { position: sticky; top: 88px; }

.settings-page .grp {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-3);
  font-weight: 700;
  margin: 18px 10px 6px;
}

.settings-page .grp:first-child { margin-top: 0; }

.settings-page .side a {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink-2);
  font-size: 14.5px;
}

.settings-page .side a:hover { background: var(--surface); color: var(--ink); }

.settings-page .side a.on {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--line);
}

.settings-page .card { margin-bottom: 16px; padding: 22px; }

.settings-page .ph p {
  margin: 4px 0 0;
  color: var(--ink-3);
  font-size: 14px;
}

.settings-page .ph.head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.settings-page .field { margin-bottom: 14px; }

.settings-page .field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink-2);
}

.settings-page .in { width: 100%; }

.settings-page .help {
  font-size: 12.5px;
  color: var(--ink-3);
  margin: 8px 0 0;
}

.settings-page .help a { color: var(--accent); }

.settings-page .mono { font-family: var(--mono); font-size: 13px; }

.settings-page .profile-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.settings-page .profile-top .av {
  width: 64px;
  height: 64px;
  font-size: 22px;
}

.settings-page .pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.settings-page .pref {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}

.settings-page .pref + .pref { border-top: 1px solid var(--line); }

.settings-page .pref b {
  display: block;
  font-weight: 600;
  font-size: 14.5px;
}

.settings-page .pref small {
  color: var(--ink-3);
  font-size: 13px;
}

.settings-page .pref select { width: auto; }

.settings-page .switch {
  position: relative;
  display: block;
  width: 38px;
  height: 22px;
  flex: none;
}

.settings-page .switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.settings-page .switch span {
  position: absolute;
  inset: 0;
  background: #cfc8b8;
  border-radius: 999px;
  pointer-events: none;
}

.settings-page .switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s;
}

.settings-page .switch input:checked + span { background: var(--accent); }

.settings-page .switch input:checked + span::after { transform: translateX(16px); }

.settings-page .switch input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.settings-page .sess {
  display: flex;
  align-items: center;
  gap: 12px;
}

.settings-page .sess .ic {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  color: var(--ink-2);
  flex: none;
}

.settings-page .sess .t { flex: 1; }

.settings-page .sess .t b { display: block; font-size: 14px; font-weight: 600; }

.settings-page .sess .t small {
  display: block;
  color: var(--ink-3);
  font-size: 12.5px;
}

.settings-page .sess form { margin: 0; }

.settings-page .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  flex: none;
}

.settings-page .pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.settings-page .pill.ok { color: var(--goal); background: var(--goal-bg); }

.settings-page .pill.off { color: var(--ink-3); background: var(--surface-2); }

@media (max-width: 860px) {
  .nav-links,
  .nav-sep,
  .account-btn .nm { display: none; }

  .nav-burger { display: grid; }

  .nav-drawer.on {
    display: block;
    position: sticky;
    top: 64px;
    z-index: 7;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 8px 12px 14px;
    box-shadow: 0 12px 24px rgb(28 26 22 / 8%);
  }

  .nav-drawer a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--ink-2);
  }

  .nav-drawer a.on {
    background: var(--surface-2);
    color: var(--ink);
    font-weight: 600;
  }

  .settings-page .settings { grid-template-columns: 1fr; gap: 16px; }

  .settings-page .side {
    position: static;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .settings-page .grp { display: none; }

  .settings-page .side a {
    white-space: nowrap;
    background: var(--surface);
    border: 1px solid var(--line);
  }

  .settings-page .pair,
  .settings-page .pref { display: block; }

  .settings-page .pref .seg,
  .settings-page .pref select { margin-top: 8px; }
}

.b-held { color: var(--open); background: var(--open-bg); }

.audits .kpis {
  grid-template-columns: repeat(4, 1fr);
  margin: 22px 0 16px;
}

.audits .kpi .l { display: flex; align-items: center; gap: 6px; }

.audits .kpi .x { float: none; margin-left: auto; }

.audits .dot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

.audits .dot.sent { background: var(--goal); }

.audits .dot.below { background: var(--nogoal-fill); }

.audits .dot.held { background: var(--open); }

.audits .empty {
  margin: 0;
  padding: 40px 16px;
  text-align: center;
}

.audits .toolbar { margin-bottom: 14px; }

.audits .ahead,
.audits .arow {
  display: grid;
  grid-template-columns: minmax(240px, 1.7fr) 130px 150px 130px 110px 90px 18px;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
}

.audits .ahead {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.audits .arow {
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.audits .ahead + .arow { border-top: 0; }

.audits .arow:hover { background: var(--surface-2); }

.audits .game b,
.audits .game small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audits .game small,
.audits .cycle small { color: var(--ink-3); font-weight: 500; font-size: 12.5px; }

.audits .sc { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }

.audits .score {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13.5px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.audits .mstat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.audits .mstat.live { color: var(--danger); }

.audits .mstat.live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--danger);
  animation: blink 1.4s infinite;
}

.audits .mstat.ht { color: var(--nogoal); }

.audits .mstat.ft { color: var(--ink-3); }

.audits .nota b { font-variant-numeric: tabular-nums; font-size: 15px; }

.audits .nota b small { font-weight: 500; color: var(--ink-3); font-size: 12px; }

.audits .nota .muted { display: block; font-size: 11.5px; margin-top: 4px; }

.audits .gauge {
  position: relative;
  height: 6px;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  margin-top: 6px;
}

.audits .gauge span {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 4px;
}

.audits .gauge span.ok { background: var(--goal); }

.audits .gauge span.low { background: var(--nogoal-fill); }

.audits .gauge .th {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: var(--ink);
}

.audits .parts { font-size: 13px; color: var(--ink-2); line-height: 1.35; }

.audits .parts small { color: var(--ink-3); font-size: 11.5px; }

.audits .when { font-size: 13px; color: var(--ink-2); white-space: nowrap; }

.audits .chev { color: var(--ink-3); }

.audits .detail-h,
.audits .cycle-h {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.audits .cycle { margin-top: 12px; }

.audits .facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px 16px;
  margin-top: 14px;
}

.audits .facts b {
  display: block;
  font-variant-numeric: tabular-nums;
}

.audits .facts span {
  color: var(--ink-3);
  font-size: 12px;
}

.audits .reasons {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.audits .reasons li + li { margin-top: 4px; }

.audits .board { padding: 22px 24px; margin-bottom: 16px; }

.audits .board-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--ink-2);
}

.audits .board-top .chip { display: inline-flex; align-items: center; gap: 2px; }

.audits .teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin: 18px 0 6px;
}

.audits .team { font-size: 20px; font-weight: 650; letter-spacing: -0.01em; }

.audits .team.home { text-align: right; }

.audits .bigscore {
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 700;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px 18px;
  font-variant-numeric: tabular-nums;
  text-align: center;
  min-width: 120px;
}

.audits .board-sub {
  text-align: center;
  font-size: 13px;
  color: var(--ink-3);
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.audits .verdict {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 10px;
  margin-top: 18px;
  font-size: 14px;
}

.audits .verdict svg { flex: none; margin-top: 1px; }

.audits .verdict b { display: block; }

.audits .verdict.sent { background: var(--goal-bg); color: #14513a; }

.audits .verdict.below { background: var(--nogoal-bg); color: #5c3d0c; }

.audits .verdict.held { background: var(--open-bg); color: #1b3f78; }

.audits .grid2 {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.audits .sec { padding: 20px; }

.audits .sec + .sec,
.audits .trend-card { margin-bottom: 16px; }

.audits .sec-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.audits .sec-h h2 { margin: 0; font-size: 1rem; }

.audits .sec-h p { margin: 2px 0 0; font-size: 13px; color: var(--ink-3); }

.audits .bignota { display: flex; align-items: baseline; gap: 8px; }

.audits .bignota b {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.audits .bignota span { color: var(--ink-3); font-size: 15px; }

.audits .stack {
  position: relative;
  height: 16px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  margin: 28px 0 6px;
  display: flex;
  overflow: visible;
}

.audits .stack .seg { height: 100%; min-width: 0; }

.audits .stack .seg:first-child { border-radius: 8px 0 0 8px; }

.audits .stack .seg.over { background: var(--open); }

.audits .stack .seg.form { background: #6b4fa3; }

.audits .stack .th {
  position: absolute;
  top: -6px;
  bottom: -6px;
  width: 2px;
  background: var(--ink);
}

.audits .stack .thl {
  position: absolute;
  top: -22px;
  transform: translateX(-50%);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.audits .scale {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--ink-3);
}

.audits .comp { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }

.audits .comp > div {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--surface-2);
}

.audits .comp .t {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  font-weight: 600;
}

.audits .comp .sw {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
  margin-right: 6px;
}

.audits .comp .sw.over { background: var(--open); }

.audits .comp .sw.form { background: #6b4fa3; }

.audits .comp .pts { font-size: 22px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }

.audits .comp .pts small { font-size: 13px; font-weight: 500; color: var(--ink-3); }

.audits .comp .mini {
  height: 5px;
  border-radius: 3px;
  background: var(--surface);
  border: 1px solid var(--line);
  margin: 8px 0;
  overflow: hidden;
}

.audits .comp .mini span { display: block; height: 100%; }

.audits .comp .mini span.over { background: var(--open); }

.audits .comp .mini span.form { background: #6b4fa3; }

.audits .comp .d { font-size: 13px; color: var(--ink-2); }

.audits .comp .d b { font-weight: 600; color: var(--ink); }

.audits .ctx { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.audits .fact { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }

.audits .fact.wide { grid-column: 1 / -1; }

.audits .fact .l {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  font-weight: 600;
}

.audits .fact .v { font-size: 20px; font-weight: 650; margin-top: 2px; font-variant-numeric: tabular-nums; }

.audits .fact .h { font-size: 12px; color: var(--ink-3); }

.audits .xgbar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; margin-top: 8px; gap: 2px; }

.audits .xgbar span { height: 100%; }

.audits .xgbar .home { background: var(--ink); }

.audits .xgbar .away { background: var(--ink-3); }

.audits .xglbl { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-top: 4px; }

.audits .trend svg { display: block; width: 100%; height: 170px; overflow: visible; }

.audits .trend .ax { font-size: 11px; fill: var(--ink-3); }

.audits .trend .pt { font-size: 11.5px; font-weight: 700; fill: var(--ink); }

.audits .legend { display: flex; gap: 12px; font-size: 12.5px; color: var(--ink-2); flex-wrap: wrap; margin-top: 8px; }

.audits .legend span { display: inline-flex; align-items: center; gap: 5px; }

.audits .legend i { width: 9px; height: 9px; border-radius: 2px; }

.audits .legend .sent { background: var(--goal); }

.audits .legend .below { background: var(--nogoal-fill); }

.audits .legend .held { background: var(--open); }

.audits .evals { list-style: none; margin: 0; padding: 0; }

.audits .ev {
  display: grid;
  grid-template-columns: 118px 1fr auto;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  align-items: start;
  font-family: inherit;
  font-size: 14px;
}

.audits .ev:first-child { border-top: 0; padding-top: 0; }

.audits .ev .w b { display: block; font-size: 14px; }

.audits .ev .w small { display: block; color: var(--ink-3); font-size: 12.5px; }

.audits .ev .vals { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-2); }

.audits .ev .vals b { color: var(--ink); font-weight: 600; }

.audits .ev .why { margin-top: 6px; font-size: 13px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.audits .ev .av { width: 22px; height: 22px; font-size: 9.5px; }

.audits .ev > .badge { justify-self: start; }

.audits .formula { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.audits .formula .step {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--surface-2);
}

.audits .formula h3 { margin: 0 0 6px; font-size: 14px; }

.audits .formula p,
.audits .sum { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }

.audits .sum { margin-top: 12px; color: var(--ink); }

.audits .calc-wrap { overflow-x: auto; }

.audits .calc {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.audits .calc th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  font-weight: 600;
  padding: 0 14px 8px 0;
  white-space: nowrap;
}

.audits .calc td {
  padding: 8px 14px 8px 0;
  border-top: 1px solid var(--line);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}

.audits .calc td.note { font-weight: 700; }

@media (max-width: 860px) {
  .audits .kpis { grid-template-columns: repeat(2, 1fr); }

  .audits .ahead { display: none; }

  .audits .arow {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }

  .audits .arow .nota,
  .audits .arow .parts,
  .audits .arow .when,
  .audits .arow .chev { display: none; }

  .audits .grid2,
  .audits .comp,
  .audits .ctx,
  .audits .formula { grid-template-columns: 1fr; }

  .audits .team { font-size: 16px; }

  .audits .bigscore { font-size: 26px; min-width: 90px; padding: 4px 10px; }

  .audits .ev { grid-template-columns: 1fr; }
}

.nav .nav-audit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
}

.nav .nav-audit svg { opacity: 0.75; }

.nav .nav-audit:hover,
.nav .nav-audit.on {
  background: var(--surface-2);
  color: var(--ink);
}

.nav .nav-audit.on { font-weight: 600; }

.audit-menu {
  left: 0;
  right: auto;
  top: 42px;
  width: 250px;
}

.audit-menu a.on {
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 600;
}

.drawer-k {
  margin: 8px 10px 0;
  padding: 8px 0 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.nav-drawer a.child { padding-left: 28px; }

.reqs { --ok: var(--goal); --ok-bg: var(--goal-bg); --lim: var(--nogoal); --lim-fill: var(--nogoal-fill); --lim-bg: var(--nogoal-bg); --err: #b3362f; --err-bg: #fbeceb; }

.reqs h2 { margin: 0; font-size: 16px; }

.reqs .card { padding: 0; border-radius: var(--radius); }

.reqs .head { margin-bottom: 18px; }

.reqs .req-tools { display: flex; gap: 12px; align-items: center; }

.reqs .toolbar {
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
}

.reqs .req-filters,
.reqs .req-find {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.reqs .req-filters { flex: none; }

.reqs .req-find { flex: 1 1 auto; }

.reqs .cal-btn {
  width: 12.5rem;
  min-width: 12.5rem;
  max-width: 12.5rem;
  justify-content: flex-start;
}

.reqs #calLbl {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reqs .btn,
.reqs .cal-btn,
.reqs .toolbar select,
.reqs .search input,
.reqs .tz {
  height: 40px;
  box-sizing: border-box;
}

.reqs .btn,
.reqs .cal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 10px;
  flex: none;
}

.reqs .tz {
  border-radius: 10px;
  align-items: stretch;
  flex: none;
}

.reqs .tz button { padding: 0 12px; }

.reqs .toolbar select {
  border-radius: 10px;
  padding: 0 28px 0 12px;
  flex: none;
}

.reqs #fType { width: 10rem; max-width: 10rem; }

.reqs #fEp { width: 14rem; max-width: 14rem; }

.reqs .req-find .search { flex: 1 1 auto; min-width: 0; }

.reqs .search input {
  border-radius: 10px;
  padding: 0 12px 0 34px;
}

.reqs .active-f { display: flex; gap: 6px; flex-wrap: wrap; margin: -6px 0 14px; }

.reqs .fchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 6px 3px 10px;
}

.reqs .fchip button,
.reqs .clear {
  border: 0;
  background: var(--surface-2);
  color: var(--ink-3);
  cursor: pointer;
}

.reqs .fchip button {
  border-radius: 50%;
  width: 18px;
  height: 18px;
  padding: 0;
  font-size: 11px;
  line-height: 1;
}

.reqs .clear { border-radius: 999px; padding: 3px 10px; font-size: 12.5px; }

.reqs .quota { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin-bottom: 16px; }

.reqs .qmain,
.reqs .sec { padding: 18px 20px; }

.reqs .qtop,
.reqs .sec-h {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.reqs .sec-h { align-items: center; margin-bottom: 14px; }

.reqs .breach .sec-h { margin-bottom: 10px; }

.reqs .qtop .l {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  font-weight: 600;
}

.reqs .qv {
  font-size: 34px;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}

.reqs .qv small { font-size: 16px; color: var(--ink-3); font-weight: 500; }

.reqs .meter {
  position: relative;
  height: 14px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  margin: 14px 0 8px;
  overflow: hidden;
}

.reqs .meter span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 8px;
}

.reqs .meter .proj { opacity: 0.25; }

.reqs .meter.ok span { background: var(--ok); }

.reqs .meter.warn span { background: var(--lim-fill); }

.reqs .meter.crit span { background: var(--err); }

.reqs .meter .tick {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 2px;
  background: var(--ink-3);
}

.reqs .qlegend { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-3); }

.reqs .qfacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }

.reqs .qfacts div {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}

.reqs .qfacts b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }

.reqs .qfacts small { font-size: 12px; color: var(--ink-3); }

.reqs .state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.reqs .st-ok { color: var(--ok); background: var(--ok-bg); }

.reqs .st-warn { color: var(--lim); background: var(--lim-bg); }

.reqs .st-crit { color: var(--err); background: var(--err-bg); }

.reqs .breach { padding: 18px 20px; }

.reqs .breach ul { list-style: none; margin: 0; padding: 0; }

.reqs .breach li { border-top: 1px solid var(--line); }

.reqs .breach li:first-child { border-top: 0; }

.reqs .breach li.muted { padding: 10px 0; font-size: 13px; }

.reqs .breach button {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 10px 0;
  cursor: pointer;
  font: inherit;
}

.reqs .breach li:first-child button { padding-top: 0; }

.reqs .breach button:hover b { text-decoration: underline; }

.reqs .breach button:disabled { cursor: default; }

.reqs .breach button:disabled:hover b { text-decoration: none; }

.reqs .ic {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  flex: none;
  font-weight: 700;
  font-size: 13px;
}

.reqs .ic.warn { background: var(--lim-bg); color: var(--lim); }

.reqs .ic.ok { background: var(--ok-bg); color: var(--ok); }

.reqs .breach small { display: block; color: var(--ink-3); font-size: 12.5px; }

.reqs .kpis { margin: 0 0 16px; }

.reqs .kpi.static { cursor: default; }

.reqs .kpi .l { display: flex; align-items: center; gap: 6px; }

.reqs .dot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

.reqs .dot.ok,
.reqs .sw.ok { background: var(--ok); }

.reqs .dot.lim,
.reqs .sw.lim { background: var(--lim-fill); }

.reqs .dot.err,
.reqs .sw.err { background: var(--err); }

.reqs .legend { display: flex; gap: 14px; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; align-items: center; }

.reqs .legend span { display: inline-flex; align-items: center; gap: 6px; }

.reqs .sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.reqs .legend .cap { width: 16px; height: 0; border-top: 2px dashed var(--ink-2); border-radius: 0; }

.reqs .chart { position: relative; }

.reqs .chart svg { display: block; width: 100%; height: 240px; overflow: visible; }

.reqs .ax { font-size: 11px; fill: var(--ink-3); }

.reqs .gl { stroke: var(--line); }

.reqs .capline { stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 5 4; }

.reqs .caplbl { font-size: 11px; fill: var(--ink-2); font-weight: 600; }

.reqs .hit { fill: transparent; }

.reqs .tip {
  position: absolute;
  pointer-events: none;
  background: var(--ink);
  color: var(--surface);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12.5px;
  min-width: 170px;
  opacity: 0;
  z-index: 2;
  transform: translateY(-50%);
  white-space: nowrap;
}

.reqs .tip b { display: block; margin-bottom: 4px; }

.reqs .tip div { display: flex; justify-content: space-between; gap: 14px; }

.reqs .tip .capshare { margin-top: 4px; opacity: 0.75; }

.reqs .tip .sw { margin-right: 6px; }

.reqs details.tbl { font-size: 13px; margin-top: 8px; }

.reqs details.tbl summary { cursor: pointer; color: var(--ink-3); }

.reqs details.tbl .wrap { max-height: 260px; overflow: auto; margin-top: 8px; }

.reqs details.tbl th,
.reqs details.tbl td { text-align: right; }

.reqs details.tbl th:first-child,
.reqs details.tbl td:first-child { text-align: left; }

.reqs .split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin: 16px 0; }

.reqs .muted { color: var(--ink-3); font-size: 13px; }

.reqs .btable { width: 100%; border-collapse: collapse; font-size: 14px; }

.reqs .btable th {
  font-size: 11.5px;
  text-align: right;
  padding: 0 8px 8px;
}

.reqs .btable th:first-child { text-align: left; padding-left: 0; }

.reqs .btable td {
  padding: 10px 8px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.reqs .btable td:first-child { text-align: left; padding-left: 0; }

.reqs .btable tbody tr { cursor: pointer; }

.reqs .btable tbody tr:hover td { background: var(--surface-2); }

.reqs .btable tr.on td { background: var(--surface-2); }

.reqs .btable tr.on td:first-child { box-shadow: inset 3px 0 0 var(--ink); }

.reqs .ep { font-family: var(--mono); font-size: 12.5px; }

.reqs .share {
  display: flex;
  height: 5px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--surface-2);
  margin-top: 5px;
  gap: 1px;
  max-width: 260px;
}

.reqs .share span { flex: none; height: 100%; position: static; }

.reqs .share .ok { background: var(--ok); }

.reqs .share .lim { background: var(--lim-fill); }

.reqs .share .err { background: var(--err); }

.reqs .pct-lim { color: var(--lim); font-weight: 600; }

.reqs .statlist { list-style: none; margin: 0; padding: 0; }

.reqs .statlist li { border-top: 1px solid var(--line); }

.reqs .statlist li:first-child { border-top: 0; }

.reqs .statlist button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 9px 0;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  text-align: left;
}

.reqs .statlist li:first-child button { padding-top: 0; }

.reqs .statlist button:hover .code { text-decoration: underline; }

.reqs .statlist button.on .code,
.reqs .statlist button.on .typechip { font-weight: 700; }

.reqs .code { font-family: var(--mono); font-weight: 600; font-size: 13px; padding: 2px 8px; border-radius: 6px; }

.reqs .c2 { color: var(--ok); background: var(--ok-bg); }

.reqs .c429 { color: var(--lim); background: var(--lim-bg); }

.reqs .cerr { color: var(--err); background: var(--err-bg); }

.reqs .statlist .lbl { flex: 1; color: var(--ink-2); }

.reqs .statlist .num { font-variant-numeric: tabular-nums; }

.reqs .share-n { width: 52px; text-align: right; }

.reqs .typelist { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }

.reqs .typelist .sec-h { margin-bottom: 10px; }

.reqs .typechip {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 8px;
}

.reqs .log-card { overflow: hidden; }

.reqs .log-h { padding-bottom: 10px; }

.reqs .log-h .sec-h { margin: 0; }

.reqs .log { width: 100%; border-collapse: collapse; font-size: 13.5px; table-layout: fixed; }

.reqs .log .c-when { width: 9.5rem; }

.reqs .log .c-type { width: 7rem; }

.reqs .log .c-ep { width: 16rem; }

.reqs .log .c-st { width: 5.5rem; }

.reqs .log th {
  font-size: 11.5px;
  text-align: left;
  padding: 10px 12px;
  background: var(--surface-2);
  position: sticky;
  top: 64px;
}

.reqs .log td { padding: 9px 12px; vertical-align: middle; }

.reqs .log tbody tr.r { cursor: pointer; }

.reqs .log tbody tr.r:hover td { background: var(--surface-2); }

.reqs .log .t,
.reqs .log .ep { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.reqs .log .t { font-family: var(--mono); font-size: 12.5px; }

.reqs .pchip {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  white-space: nowrap;
  margin-right: 4px;
}

.reqs .log tr.x td { background: var(--surface-2); padding: 0 12px 12px; }

.reqs .log pre {
  margin: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  background: var(--ink);
  color: #e9e4d8;
  border-radius: 9px;
  padding: 12px 14px;
  overflow: auto;
}

.reqs .log td.empty-log {
  text-align: center;
  padding: 36px 16px;
  color: var(--ink-3);
}

.reqs .more {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--ink-3);
}

@media (max-width: 860px) {
  .reqs .quota,
  .reqs .split,
  .reqs .qfacts { grid-template-columns: 1fr; }

  .reqs .kpis { grid-template-columns: repeat(2, 1fr); }

  .reqs .log { table-layout: auto; }

  .reqs .log col { width: auto; }

  .reqs .log .hide-m { display: none; }

  .reqs .log th { position: static; }

  .reqs .toolbar { flex-direction: column; align-items: stretch; }

  .reqs .req-filters,
  .reqs .req-find { flex: none; width: 100%; }

  .reqs .req-filters { flex-direction: column; align-items: stretch; }

  .reqs .cal-wrap,
  .reqs .cal-btn,
  .reqs .req-filters select { width: 100%; max-width: none; min-width: 0; }

  .reqs .cal-pop { flex-direction: column; }

  .reqs .presets {
    flex-direction: row;
    flex-wrap: wrap;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

body.page-games main { max-width: 1180px; }

.games {
  --live: #a3262a;
  --live-bg: #fbeceb;
  --ok: #1f7a4d;
  --ok-bg: #e3f2e8;
  --warn: #8a5a12;
  --warn-bg: #f7ecd8;
  --blue: #2457a6;
  --blue-bg: #e4ecf8;
  --away: #9a8f7c;
  --pitch: #2f6b4a;
  --pitch-2: #2a6043;
}

.games h1 {
  font-size: 26px;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.games h2 { font-size: 16px; margin: 0; }

.games h3 {
  font-size: 13px;
  margin: 0 0 6px;
  color: var(--ink-2);
  font-weight: 600;
}

.games .head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.games .sub {
  color: var(--ink-2);
  margin: 0;
}

.games button,
.games input,
.games select { font: inherit; color: inherit; }

.games .card { padding: 0; }

.games .kpi { padding: 12px 16px; }

.games .kpis {
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 16px;
}

.games .kpi .v { font-size: 24px; margin-top: 2px; }

.games .live-n { color: var(--live); }

.games .days {
  display: flex;
  gap: 6px;
  align-items: stretch;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.games .days .day {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex: 1;
  min-width: 108px;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  text-align: left;
  font-weight: 500;
  color: var(--ink);
}

.games .days .day::after { content: none; }

.games .days .day:hover { border-color: var(--ink-3); }

.games .days .day.on {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}

.games .days .day b {
  display: block;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
}

.games .days .day small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  opacity: 0.75;
}

.games .days .day .cnt {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

.games .days .day .lv {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--live);
}

.games .days .day.on .lv { background: #ff8f8f; }

.games .dayarrow {
  flex: none;
  align-self: stretch;
  width: 36px;
  margin: 0;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
  color: var(--ink-2);
}

.games .datepick {
  position: relative;
  flex: none;
  align-self: stretch;
  width: 36px;
  margin: 0;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
}

.games .datepick input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.games .datepick input::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

.games .seg .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
  animation: games-blink 1.4s infinite;
}

@keyframes games-blink { 50% { opacity: 0.25; } }

.games .toolbar { align-items: stretch; }

.games .toolbar .seg,
.games .toolbar .search,
.games .toolbar .pick,
.games .toolbar .chk { height: 40px; }

.games .toolbar .seg {
  align-items: stretch;
  padding: 3px;
}

.games .toolbar .seg button {
  padding-top: 0;
  padding-bottom: 0;
}

.games .toolbar .search input,
.games .toolbar .pick select {
  height: 40px;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-radius: 10px;
}

.games .pick {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.games .pick select {
  appearance: none;
  padding: 0 30px 0 10px;
  min-width: 11rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  line-height: 1.2;
}

.games .pick svg {
  position: absolute;
  right: 10px;
  pointer-events: none;
  color: var(--ink-2);
}

.games .chk {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin: 0;
  padding: 0 2px;
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
}

.games .league { margin-bottom: 14px; overflow: hidden; }

.games .lg-h {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.games .lg-h b { font-weight: 600; }

.games .lg-h .c { margin-left: auto; font-size: 12.5px; color: var(--ink-3); }

.games .round { font-size: 12.5px; }

.games .flag { font-size: 16px; line-height: 1; }

.games .row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 92px minmax(0, 1fr) 190px;
  gap: 12px;
  align-items: center;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  cursor: pointer;
}

.games .lg-h + .row { border-top: 0; }

.games .row:hover { background: var(--surface-2); }

.games .t { font-size: 13.5px; font-variant-numeric: tabular-nums; }

.games .t small { display: block; font-size: 11.5px; color: var(--ink-3); }

.games .t.live,
.games .t.live small { color: var(--live); }

.games .t.live { font-weight: 700; }

.games .t.live small { font-weight: 500; }

.games .team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 14.5px;
}

.games .team.h { justify-content: flex-end; text-align: right; }

.games .team .n {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.games .team.win .n { font-weight: 650; }

.games .crest {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--ink-3);
  overflow: hidden;
}

.games .crest img { width: 100%; height: 100%; object-fit: contain; }

.games .score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: 400;
  text-align: center;
}

.games .score b {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 2px 9px;
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

.games .score b.live {
  color: var(--live);
  border-color: #efc9c6;
  background: var(--live-bg);
}

.games .score b.vs {
  color: var(--ink-3);
  font-weight: 500;
  font-family: inherit;
  font-size: 13px;
}

.games .score small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-3);
  white-space: nowrap;
}

.games .odds3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.games .odds3 span {
  font-family: var(--mono);
  font-size: 12.5px;
  text-align: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 0;
}

.games .odds3 span i {
  display: block;
  font-style: normal;
  font-size: 10px;
  color: var(--ink-3);
  font-family: inherit;
}

.games .odds3 span.fav { border-color: var(--ink-3); font-weight: 700; }

.games .odds3.none {
  display: block;
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
}

.games .empty { padding: 40px 16px; text-align: center; color: var(--ink-3); }

.games .open .scrim { z-index: 30; }

.games .open .drawer { z-index: 31; }

.games .drawer {
  width: min(820px, 100%);
  background: var(--bg);
}

.games .dtop {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 16px 20px 0;
}

.games .dbody {
  flex: 1;
  overflow: auto;
  padding: 18px 20px 40px;
}

.games .dbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-2);
}

.games .dbar-a { display: flex; gap: 8px; align-items: center; }

.games .close {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
}

.games .board {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin: 16px 0 6px;
}

.games .bteam {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-weight: 650;
  font-size: 16px;
}

.games .bteam .crest { width: 52px; height: 52px; font-size: 15px; }

.games .bteam small { font-weight: 400; color: var(--ink-3); font-size: 12px; }

.games .bscore { text-align: center; }

.games .bscore b {
  font-family: var(--mono);
  font-size: 38px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.games .bscore b.live { color: var(--live); }

.games .bscore b.kick { font-size: 24px; color: var(--ink-3); font-family: inherit; }

.games .bscore .k { font-size: 13px; color: var(--ink-2); }

.games .bsub {
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-3);
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.games .tabs { display: flex; gap: 2px; overflow-x: auto; }

.games .tabs button {
  border: 0;
  background: none;
  padding: 10px 14px;
  cursor: pointer;
  color: var(--ink-2);
  font-size: 14px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.games .tabs button.on {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--ink);
}

.games .tabs .n { font-size: 11px; color: var(--ink-3); margin-left: 4px; }

.games .stp {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
}

.games .st-live { color: var(--live); background: var(--live-bg); }

.games .st-pre { color: var(--blue); background: var(--blue-bg); }

.games .st-ft {
  color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.games .st-bad { color: var(--warn); background: var(--warn-bg); }

.games .stale { color: var(--warn); }

.games .sec { padding: 16px 18px; margin-bottom: 14px; }

.games .sec-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.games .sec-h p { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-3); }

.games .facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.games .fact {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--surface);
}

.games .fact .l {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  font-weight: 600;
}

.games .fact .v {
  font-size: 17px;
  font-weight: 650;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.games .fact .v.sm { font-size: 15px; }

.games .halves { display: flex; gap: 10px; flex-wrap: wrap; }

.games .halves div {
  flex: 1;
  min-width: 120px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--surface-2);
  text-align: center;
}

.games .halves b { font-family: var(--mono); font-size: 18px; }

.games .halves small { display: block; font-size: 12px; color: var(--ink-3); }

.games .stat { padding: 8px 0; border-top: 1px solid var(--line); }

.games .stat:first-child { border-top: 0; padding-top: 0; }

.games .stat .top {
  display: grid;
  grid-template-columns: 70px 1fr 70px;
  font-size: 14px;
  align-items: center;
}

.games .stat .top b:first-child { text-align: left; }

.games .stat .top b:last-child { text-align: right; }

.games .stat .top span { text-align: center; color: var(--ink-2); font-size: 13px; }

.games .bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 5px;
}

.games .bars svg {
  width: 100%;
  height: 6px;
  display: block;
  background: var(--surface-2);
  border-radius: 3px;
}

.games .bars .home { fill: var(--ink); }

.games .bars .away { fill: var(--away); }

.games .stat b.lead { color: var(--ink); }

.games .stat b.trail { color: var(--ink-3); font-weight: 500; }

.games .legend { display: flex; gap: 12px; font-size: 12.5px; color: var(--ink-2); }

.games .legend span { display: inline-flex; gap: 6px; align-items: center; }

.games .swatch { width: 10px; height: 10px; border-radius: 3px; }

.games .swatch.home { background: var(--ink); }

.games .swatch.away { background: var(--away); }

.games .prob {
  width: 100%;
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
  display: block;
  margin: 6px 0;
}

.games .prob .c1 { fill: var(--ink); }

.games .prob .c2 { fill: #8c8678; }

.games .prob .c3 { fill: var(--blue); }

.games .problbl {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-3);
}

.games .note { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; }

.games .ctl { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }

.games .otbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }

.games .otbl th {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  font-weight: 600;
  text-align: right;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
}

.games .otbl th:first-child { text-align: left; }

.games .otbl td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  font-family: var(--mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.games .otbl td:first-child {
  text-align: left;
  font-family: inherit;
  font-size: 13.5px;
}

.games .otbl td.best {
  background: var(--ok-bg);
  color: var(--ok);
  font-weight: 700;
}

.games .otbl td.ctx { color: var(--ink-3); font-size: 11.5px; font-family: inherit; }

.games .otbl td.offl { color: var(--ink-3); }

.games .otbl td.susp { color: var(--ink-3); font-style: italic; }

.games .otbl tr.med td { font-weight: 700; background: var(--surface-2); }

.games .mv { font-size: 10.5px; margin-left: 3px; }

.games .mv.up { color: var(--ok); }

.games .mv.dn { color: var(--live); }

.games .pitch {
  position: relative;
  background: repeating-linear-gradient(
    90deg,
    var(--pitch) 0 9.09%,
    var(--pitch-2) 9.09% 18.18%
  );
  border-radius: 12px;
  border: 2px solid #24563c;
  overflow: hidden;
}

.games .pitch-svg { width: 100%; height: auto; display: block; }

.games .pitch-svg .ln {
  fill: none;
  stroke: rgb(255 255 255 / 45%);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.games .pitch-svg .shirt { fill: #fffdf8; }

.games .pitch-svg .pl.a .shirt { fill: #1c1a16; stroke: #fffdf8; stroke-width: 2; }

.games .pitch-svg .shirt.gk { stroke: #e8c48a; stroke-width: 2; }

.games .pitch-svg .no { font-size: 12px; font-family: var(--mono); fill: #1c1a16; }

.games .pitch-svg .pl.a .no { fill: #fffdf8; }

.games .pitch-svg .nm {
  font-size: 11px;
  fill: #fff;
  stroke: rgb(0 0 0 / 45%);
  stroke-width: 0.4;
}

.games .formrow {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--ink-2);
}

.games .formrow b { color: var(--ink); }

.games .subs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.games .subs ul { list-style: none; margin: 0; padding: 0; }

.games .subs li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}

.games .subs li:first-child { border-top: 0; }

.games .subs .no {
  font-family: var(--mono);
  font-size: 12px;
  width: 24px;
  text-align: right;
  color: var(--ink-3);
}

.games .subs .flag { font-size: 13px; }

.games .subs .pos {
  margin-left: auto;
  font-size: 11px;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 5px;
}

.games .later { margin-top: 14px; }

.games .kv {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 8px 12px;
  font-size: 13.5px;
}

.games .kv dt { color: var(--ink-3); }

.games .kv dd { margin: 0; font-family: var(--mono); font-size: 12.5px; }

.games pre.raw {
  margin: 10px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  background: var(--ink);
  color: #e9e4d8;
  border-radius: 9px;
  padding: 12px 14px;
  overflow: auto;
  max-height: 340px;
}

.games #rawBtn { margin-top: 12px; }

@media (max-width: 960px) {
  .games .row {
    grid-template-columns: 52px minmax(0, 1fr) 70px minmax(0, 1fr);
    gap: 8px;
  }

  .games .row .odds3,
  .games .team .crest { display: none; }

  .games .kpis,
  .games .facts { grid-template-columns: repeat(2, 1fr); }

  .games .subs { grid-template-columns: 1fr; }

  .games .pitch-svg .nm { display: none; }
}
