
/* screenshot-forensics-final: auto-cropped reference PNG measurements */
:root {
  --sp-green-4: #1a713c;
  --sp-green-3: #25a657;
  --sp-green-2: #2cc066;
  --sp-green-1: #41cd78;
  --sp-red: #d83f4a;
  --sp-bar-hit: #2fc95f;
  --sp-bar-miss: #f74c3b;
}
.sp-props-table th:nth-child(1), .sp-props-table td:nth-child(1) { width:165px; min-width:165px; max-width:165px; }
.sp-props-table th:nth-child(2), .sp-props-table td:nth-child(2) { width:91px; min-width:91px; max-width:91px; }
.sp-props-table th:nth-child(3), .sp-props-table td:nth-child(3) { width:89px; min-width:89px; max-width:89px; }
.sp-props-table th:nth-child(4), .sp-props-table td:nth-child(4) { width:57px; min-width:57px; max-width:57px; }
.sp-props-table th:nth-child(5), .sp-props-table td:nth-child(5) { width:85px; min-width:85px; max-width:85px; }
.sp-props-table th:nth-child(6), .sp-props-table td:nth-child(6) { width:87px; min-width:87px; max-width:87px; }
.sp-props-table th:nth-child(7), .sp-props-table td:nth-child(7) { width:68px; min-width:68px; max-width:68px; }
.sp-props-table th:nth-child(8), .sp-props-table td:nth-child(8) { width:66px; min-width:66px; max-width:66px; }
.sp-props-table th:nth-child(9), .sp-props-table td:nth-child(9) { width:53px; min-width:53px; max-width:53px; }
.sp-props-table th:nth-child(10), .sp-props-table td:nth-child(10) { width:46px; min-width:46px; max-width:46px; }
.sp-props-table th:nth-child(11), .sp-props-table td:nth-child(11) { width:59px; min-width:59px; max-width:59px; }
.sp-props-table th:nth-child(12), .sp-props-table td:nth-child(12) { width:63px; min-width:63px; max-width:63px; }
.sp-props-table th:nth-child(13), .sp-props-table td:nth-child(13) { width:100px; min-width:100px; max-width:100px; }
.sp-props-table th:nth-child(14), .sp-props-table td:nth-child(14) { width:103px; min-width:103px; max-width:103px; }
.sp-props-table th,
.sp-props-table td {
  height: 66px;
  box-sizing: border-box;
}
.sp-player-title-band {
  min-height: 135px;
}
.sp-player-title-band h1 {
  font-size: 52px;
}


:root {
  --bg: #f6f7f8;
  --shell: #f4f4f4;
  --surface: #ffffff;
  --surface-muted: #f1f3f5;
  --surface-strong: #e9edf2;
  --line: #d5dce5;
  --line-strong: #b9c3cf;
  --ink: #0d0d0d;
  --muted: #5f6b7a;
  --muted-2: #7a8492;
  --primary: #0d0d0d;
  --primary-contrast: #ffffff;
  --success: #137a43;
  --success-soft: #e3f5ea;
  --danger: #b42318;
  --danger-soft: #fde7e4;
  --warning: #b26308;
  --warning-soft: #fff0d8;
  --info: #0d4fa3;
  --info-soft: #e8f1ff;
  --shadow: 0 12px 32px rgba(16, 24, 40, 0.08);
  --shadow-soft: 0 6px 18px rgba(16, 24, 40, 0.06);
  --sidebar-width: 280px;
  --radius: 8px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

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

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

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

button:active,
.as-link:active {
  transform: scale(0.98);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.app-page {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

.mobile-shell-bar,
.drawer-scrim {
  display: none;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 60;
  width: var(--sidebar-width);
  height: 100dvh;
  min-height: 100vh;
  padding: 18px 12px 14px;
  border-right: 1px solid var(--line);
  background: var(--shell);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-head {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
}

.sidebar-logo {
  font-size: 21px;
  font-weight: 760;
}

.icon-button {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  transition: background-color 160ms ease, transform 120ms var(--ease-out);
}

.icon-button:hover {
  background: var(--surface-strong);
}

.sidebar-close {
  display: none;
}

.ui-icon,
.nav-icon {
  width: 20px;
  height: 20px;
  display: block;
  flex: 0 0 20px;
  color: currentColor;
}

.side-nav {
  display: grid;
  gap: 3px;
}

.side-nav a {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1;
  transition: background-color 140ms ease, color 140ms ease;
}

.side-nav a:hover {
  background: var(--surface-strong);
}

.side-nav a.active {
  background: var(--surface-strong);
  font-weight: 700;
}

.chat-list {
  display: grid;
  gap: 1px;
  grid-auto-rows: min-content;
  align-content: start;
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  padding: 2px 0;
}

.chat-list p {
  margin: 10px 10px 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.chat-list button {
  width: 100%;
  height: 36px;
  min-height: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  padding: 0 8px 0 10px;
  text-align: left;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 140ms ease;
}

.chat-list button span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-list button:hover {
  background: var(--surface-strong);
}

.ready-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #0a84ff;
  box-shadow: 0 0 0 1px rgba(10, 132, 255, 0.18);
}

.sidebar-footer {
  margin-top: auto;
  padding: 8px 6px 0;
  flex: 0 0 auto;
}

.account-row {
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}

.account-profile {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
}

.account-profile:hover .account-copy strong {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-contrast);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.account-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.account-copy strong {
  font-size: 14px;
  line-height: 1;
}

.account-copy small {
  color: var(--muted);
  font-size: 12px;
}

.account-upgrade {
  min-width: 76px;
  height: 30px;
  margin-left: auto;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-contrast);
  font-weight: 800;
  font-size: 13px;
  transition: background-color 140ms ease, transform 120ms var(--ease-out);
}

.board-main {
  flex: 1;
  width: calc(100% - var(--sidebar-width));
  min-width: 0;
  min-height: 100vh;
  margin-left: var(--sidebar-width);
}

.app-header {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.app-header > div:first-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.app-header strong {
  font-size: 14px;
}

.app-header span {
  color: var(--muted);
  font-size: 12px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.primary-action,
.primary-pill,
.secondary-action,
.state-action,
.source,
.tabs button,
.stat-tabs button,
.filter-chip,
.add-condition,
.pricing-tabs button,
.pricing-grid button,
.prompt-row button,
.theme-toggle button {
  border-radius: 999px;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 120ms var(--ease-out);
}

.primary-action,
.primary-pill {
  min-height: 36px;
  border: 0;
  background: var(--primary);
  color: var(--primary-contrast);
  padding: 0 18px;
  font-weight: 800;
}

.secondary-action,
.as-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 0 16px;
  font-weight: 750;
}

.secondary-action:hover,
.as-link:hover {
  border-color: var(--line-strong);
  background: var(--surface-muted);
}

.theme-toggle {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
}

.theme-toggle button {
  min-height: 28px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0 13px;
  font-size: 12px;
  font-weight: 800;
}

.theme-toggle .selected {
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

.view-panel {
  width: 100%;
  min-width: 0;
  padding: 24px 28px 42px;
}

.board-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  max-width: 1240px;
  margin: 0 auto 16px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.board-hero h1,
.player-overview h1,
.utility-card h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.12;
}

.board-hero p,
.player-overview p,
.utility-card p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.board-meta-strip,
.line-proof,
.action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.board-meta-strip {
  justify-content: flex-end;
  max-width: 440px;
}

.compact-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.compact-status > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.state-badge {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.state-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.state-badge.fresh,
.state-badge.success {
  border-color: rgba(19, 122, 67, 0.35);
  background: var(--success-soft);
  color: var(--success);
}

.state-badge.info {
  border-color: rgba(13, 79, 163, 0.35);
  background: var(--info-soft);
  color: var(--info);
}

.state-badge.warning,
.state-badge.stale {
  border-color: rgba(178, 99, 8, 0.35);
  background: var(--warning-soft);
  color: var(--warning);
}

.state-badge.danger {
  border-color: rgba(180, 35, 24, 0.35);
  background: var(--danger-soft);
  color: var(--danger);
}

.ask-strip,
.board-filter-toolbar,
.board-card,
.utility-card,
.pricing-modal-shell,
.soccer-card {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

.ask-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.ask-input {
  flex: 1;
  min-width: 0;
}

.ask-input input,
.builder-row input,
.search-dialog input,
.chat-input,
.split-control select,
.chart-head select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  outline: 0;
}

.ask-input input {
  height: 42px;
  border-radius: 999px;
  padding: 0 16px;
}

.board-filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.league-tabs,
.tabs,
.stat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.league-tabs button,
.tabs button,
.stat-tabs button {
  min-height: 34px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
}

.league-tabs .active,
.tabs .active,
.stat-tabs .active,
.filter-chip.active,
.pricing-tabs .active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-contrast);
}

.sport-status,
.toolbar-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.board-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: clip;
}

.board-card-top {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.board-card-top h2,
.chart-head h2,
.panel-head h2,
.mini-chart h2,
.box-card h2,
.line-head h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
}

.board-card-top p,
.chart-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.source-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.source {
  min-height: 32px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 0 13px;
  font-weight: 800;
  font-size: 12px;
}

.source.active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-contrast);
}

.seg {
  min-height: 34px;
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
}

.seg button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 0 11px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.seg .active {
  background: var(--primary);
  color: var(--primary-contrast);
}

.action-bar {
  padding: 14px 18px 0;
}

.state-action {
  min-height: 32px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  color: var(--ink);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 850;
}

.state-action.info {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.state-action.success {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.state-action.warning {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.state-action:hover {
  background: var(--surface-muted);
}

.tabs {
  padding: 14px 18px;
}

.builder-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px 16px;
}

.builder-row strong {
  font-size: 13px;
}

.builder-row label {
  margin-left: auto;
  width: min(360px, 100%);
}

.builder-row input {
  height: 38px;
  border-radius: 999px;
  padding: 0 14px;
}

.add-condition {
  min-height: 34px;
  border: 1px solid rgba(13, 79, 163, 0.45);
  background: var(--surface);
  color: var(--info);
  padding: 0 13px;
  font-size: 12px;
  font-weight: 850;
}

.condition-chip {
  min-height: 30px;
  border: 1px solid rgba(13, 79, 163, 0.35);
  border-radius: 999px;
  background: var(--info-soft);
  color: var(--info);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.table-wrap {
  max-width: 100%;
  margin: 0 18px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: auto;
  background: var(--surface);
}

.props-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
}

.props-table th,
.props-table td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 11px 9px;
  text-align: left;
  vertical-align: middle;
}

.props-table th:last-child,
.props-table td:last-child {
  border-right: 0;
}

.props-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface-muted);
  color: var(--muted);
  font-weight: 850;
  white-space: nowrap;
}

.props-table tbody tr {
  transition: background-color 120ms ease;
}

.props-table tbody tr:hover {
  background: #fafbfd;
}

.props-table tbody tr.selected-row {
  background: var(--info-soft);
}

.props-table tbody tr:last-child td {
  border-bottom: 0;
}

.props-table td:first-child {
  color: var(--ink);
  font-weight: 850;
  white-space: nowrap;
}

.props-table a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}

.props-table a:hover {
  text-decoration-color: currentColor;
}

.sort-th {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: 12px;
  font-weight: 850;
}

.sort-th.sorted {
  color: var(--ink);
}

.heat {
  color: var(--ink);
  font-weight: 850;
}

.g3 {
  background: #a8e6b8;
}

.g2 {
  background: #c6efcf;
}

.g1 {
  background: #e2f7e7;
}

.r1 {
  background: #ffd9d4;
  color: #a71913;
}

.y1 {
  background: #e2f7e7;
  color: var(--ink);
}

.mobile-prop-list {
  display: none;
}

.chat-view {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
}

.chat-empty-center {
  width: min(760px, 100%);
  display: grid;
  justify-items: center;
  gap: 22px;
  padding-bottom: 7vh;
}

.chat-empty-center h1 {
  margin: 0;
  font-size: 31px;
  line-height: 1.2;
  font-weight: 760;
}

.chat-composer {
  width: min(720px, 100%);
  min-height: 58px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px 40px;
  align-items: center;
  gap: 4px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.chat-input {
  height: 42px;
  border: 0;
  padding: 0 8px;
  font-size: 15px;
}

.composer-icon,
.composer-voice {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
}

.composer-icon:hover,
.composer-voice:hover {
  background: var(--surface-muted);
}

.composer-voice {
  background: var(--primary);
  color: var(--primary-contrast);
}

.composer-icon .ui-icon {
  width: 21px;
  height: 21px;
}

.composer-voice .ui-icon {
  width: 21px;
  height: 21px;
}

.prompt-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.prompt-row button {
  min-height: 34px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.pricing-view {
  background: var(--surface);
}

.pricing-modal-shell {
  position: relative;
  padding: 34px 0 20px;
}

.pricing-close {
  position: absolute;
  right: 0;
  top: 24px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  font-size: 24px;
  line-height: 1;
}

.pricing-modal-shell h1 {
  margin: 0;
  text-align: center;
  font-size: 32px;
}

.pricing-subtitle,
.pricing-footer-note {
  max-width: 700px;
  margin: 10px auto 0;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.pricing-tabs {
  width: max-content;
  display: flex;
  gap: 3px;
  margin: 22px auto 14px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
}

.pricing-tabs button {
  min-height: 32px;
  border: 0;
  background: transparent;
  padding: 0 18px;
  font-weight: 800;
}

.pricing-note {
  max-width: 900px;
  margin: 0 auto 18px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.pricing-grid article {
  min-height: 510px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.pricing-grid article.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-soft);
}

.popular-pill {
  width: max-content;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-contrast);
  font-size: 11px;
  font-weight: 850;
}

.pricing-grid h2 {
  margin: 0;
  font-size: 18px;
}

.pricing-grid strong {
  font-size: 34px;
  line-height: 1;
}

.pricing-grid strong span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.pricing-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
  font-size: 13px;
}

.pricing-grid button {
  min-height: 38px;
  border: 0;
  background: var(--primary);
  color: var(--primary-contrast);
  font-weight: 850;
}

.pricing-grid .muted-plan {
  border: 1px solid var(--line);
  background: var(--surface-muted);
  color: var(--muted);
}

.pricing-grid hr {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
}

.pricing-grid small {
  color: var(--muted);
  font-weight: 850;
}

.pricing-grid ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0 0 0 18px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.utility-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.utility-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.utility-grid article {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.utility-grid span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: start center;
  padding-top: 9vh;
  background: rgba(17, 23, 31, 0.24);
}

.search-dialog {
  width: min(640px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(16, 24, 40, 0.22);
  overflow: clip;
}

.search-dialog-top {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.search-dialog input {
  height: 42px;
  border-radius: 999px;
  padding: 0 14px;
}

.search-dialog-top button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.search-section-label {
  padding: 12px 14px 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.search-results {
  display: grid;
  padding: 6px;
}

.search-results button {
  min-height: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 0 10px;
  text-align: left;
}

.search-results button:hover {
  background: var(--surface-muted);
}

.search-results button > span:first-child {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-meta {
  color: var(--muted);
  font-size: 12px;
}

.atlas-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 120;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-contrast);
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 160ms ease, transform 180ms var(--ease-out);
}

.atlas-toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.player-page-content {
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px 28px 48px;
}

.player-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 24px;
  align-items: start;
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.player-status-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.intro {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 680;
  line-height: 1.55;
}

.stat-tabs {
  margin-bottom: 14px;
}

.stat-tabs button {
  text-transform: uppercase;
  font-size: 11px;
  color: var(--info);
}

.stat-tabs .active {
  color: var(--primary-contrast);
}

.player-filter-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.split-control {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.split-control select {
  width: 160px;
  height: 34px;
  border-radius: 999px;
  padding: 0 10px;
}

.filter-chip {
  min-height: 34px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 850;
}

.soccer-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.line-card,
.performance-card {
  margin-bottom: 14px;
  padding: 18px;
}

.line-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 22px;
  align-items: start;
}

.line-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.line-head strong {
  color: var(--success);
  font-size: 18px;
}

.slider {
  width: min(520px, 100%);
  height: 18px;
  position: relative;
}

.slider .track {
  position: absolute;
  left: 0;
  right: 0;
  top: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--line-strong);
}

.slider .knob {
  position: absolute;
  left: 30%;
  top: 0;
  width: 18px;
  height: 18px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 1px 4px rgba(16, 24, 40, 0.22);
}

.ticks {
  width: min(540px, 100%);
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.line-proof {
  align-content: start;
  justify-content: flex-start;
}

.toolbar-sync-stat {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.summary-table {
  width: 100%;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-collapse: collapse;
  text-align: center;
}

.summary-table th {
  background: var(--surface-muted);
  color: var(--muted);
  padding: 9px;
  text-transform: uppercase;
  font-size: 11px;
}

.summary-table td {
  border-top: 1px solid var(--line);
  padding: 10px;
  font-size: 16px;
  font-weight: 850;
}

.active-filter-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid var(--info);
  border-radius: var(--radius);
  background: var(--info-soft);
  color: var(--info);
  font-size: 13px;
}

.active-filter-summary span {
  color: var(--ink);
}

.chart-head,
.panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.chart-head select {
  width: 140px;
  height: 34px;
  border-radius: 999px;
  padding: 0 10px;
}

.main-chart {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 30px 0 34px 42px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(to bottom, transparent 0, transparent 31%, var(--line) 31.3%, transparent 31.6%, transparent 65%, var(--line) 65.3%, transparent 65.6%);
}

.y-axis {
  position: absolute;
  left: 8px;
  top: 22px;
  bottom: 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.line-15 {
  position: absolute;
  left: 42px;
  right: 0;
  bottom: 102px;
  border-top: 2px dashed #b26308;
}

.bar {
  width: 38px;
  min-width: 38px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border: 0;
  border-radius: 5px 5px 0 0;
  color: #fff;
  padding: 0 0 5px;
  font-size: 10px;
  font-weight: 850;
}

.bar.green {
  background: #137a43;
}

.bar.red {
  background: #bd2017;
}

.bar.projected {
  background: #8f9aa7;
}

.bar:focus-visible {
  outline-offset: 3px;
}

.matchup-grid,
.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.odds-panel,
.bubble-panel,
.mini-chart,
.box-card {
  padding: 18px;
}

.metric-row {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.metric-row:last-child {
  border-bottom: 0;
}

.metric-row em {
  color: var(--ink);
  font-style: normal;
  font-weight: 850;
}

.bubble-group {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.bubble-group h3 {
  margin: 0;
  font-size: 13px;
}

.bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.result-token {
  min-width: 48px;
  display: grid;
  gap: 2px;
  justify-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 7px 8px;
}

.result-token span {
  font-size: 15px;
  font-weight: 850;
}

.result-token small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.result-token.green {
  border-color: rgba(19, 122, 67, 0.35);
  background: var(--success-soft);
  color: var(--success);
}

.result-token.red {
  border-color: rgba(180, 35, 24, 0.35);
  background: var(--danger-soft);
  color: var(--danger);
}

.is-selected-filter {
  outline: 2px solid var(--info);
  outline-offset: 2px;
}

.mini-chart {
  display: grid;
  gap: 11px;
}

.hbar {
  width: 100%;
  height: 34px;
  position: relative;
  border: 0;
  border-radius: 6px;
  background: var(--surface-muted);
  overflow: hidden;
  text-align: left;
}

.hbar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  background: var(--info);
}

.hbar span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding-left: 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.xlabels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.boxplot {
  min-height: 220px;
  display: flex;
  justify-content: center;
  gap: 48px;
  padding-top: 18px;
}

.boxplot.three {
  gap: 34px;
}

.box-item {
  width: 72px;
  height: 180px;
  position: relative;
  border: 0;
  background: transparent;
}

.box-item .whisker {
  position: absolute;
  left: 34px;
  top: 18px;
  bottom: 34px;
  width: 2px;
  background: var(--line-strong);
}

.box-item .box {
  position: absolute;
  left: 18px;
  bottom: 52px;
  width: 38px;
  height: 62px;
  border: 2px solid var(--info);
  background: var(--info-soft);
}

.box-item.orange .box {
  border-color: var(--warning);
  background: var(--warning-soft);
}

.box-item.green-dot .box {
  border-color: var(--success);
  background: var(--success-soft);
}

.box-item i {
  position: absolute;
  left: 29px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
}

.box-item b {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  color: var(--muted);
  font-size: 11px;
}

.prop-title-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #ffffff;
  color: #0d0d0d;
}

.auth-top {
  min-height: 64px;
  display: flex;
  align-items: center;
  width: min(100% - 48px, 1240px);
  margin: 0 auto;
  padding: 0;
}

.auth-wordmark {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
}

.auth-main {
  display: grid;
  place-items: start center;
  padding: 72px 20px 40px;
}

.auth-cardless {
  width: min(420px, 100%);
  display: grid;
  justify-items: center;
  background: #fff;
  padding: 0;
}

.auth-kicker {
  margin: 0 0 28px;
  color: #4f5b6b;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
}

.auth-cardless h1 {
  margin: 0;
  color: #0d0d0d;
  font-size: 32px;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
}

.auth-cardless > p {
  max-width: 360px;
  margin: 16px 0 28px;
  color: #5f6368;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}

.auth-providers,
.auth-form {
  width: 100%;
  display: grid;
  gap: 12px;
}

.auth-providers button {
  height: 56px;
  display: grid;
  grid-template-columns: 26px 1fr 26px;
  align-items: center;
  border: 1px solid #dedede;
  border-radius: 999px;
  background: #fff;
  color: #0d0d0d;
  padding: 0 28px;
  font-size: 16px;
  font-weight: 480;
}

.auth-providers button:hover {
  background: #f7f7f7;
}

.provider-icon {
  width: 22px;
  height: 22px;
  justify-self: center;
}

.auth-divider {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin: 28px 0;
  color: #6b6b6b;
  font-size: 13px;
  font-weight: 700;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: #ececec;
}

.auth-form label {
  position: relative;
  display: grid;
}

.auth-form label span {
  position: absolute;
  left: 18px;
  top: -8px;
  z-index: 1;
  padding: 0 5px;
  background: #fff;
  color: #0f4ec7;
  font-size: 13px;
  font-weight: 500;
}

.auth-form input {
  height: 58px;
  border: 1px solid #9aa7bd;
  border-radius: 10px;
  background: #fff;
  color: #0d0d0d;
  padding: 0 18px;
  outline: 0;
  font-size: 16px;
}

.auth-form input:focus {
  border-color: #0f4ec7;
  box-shadow: 0 0 0 1px #0f4ec7;
}

.auth-form button {
  height: 58px;
  border: 0;
  border-radius: 10px;
  background: #0d0d0d;
  color: #fff;
  font-size: 15px;
  font-weight: 650;
  transition: transform 140ms cubic-bezier(.23, 1, .32, 1), background 140ms ease;
}

.auth-form button:active {
  transform: scale(.98);
}

.auth-footer {
  min-height: 98px;
  display: flex;
  align-items: start;
  justify-content: center;
  gap: 14px;
  color: #595959;
  font-size: 14px;
}

.auth-footer a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}

  @media (max-width: 560px) {
    .auth-top {
    width: min(100% - 32px, 1120px);
  }

  .auth-main {
    padding-top: 56px;
  }

  .auth-cardless {
    padding: 0;
    box-shadow: none;
  }
}

/* SoccerProp-match mode: ChatGPT shell outside, SoccerProp surface inside. */
.sidebar {
  transition: width 200ms var(--ease-out), transform 220ms var(--ease-out);
}

.sidebar-collapse {
  display: inline-grid;
}

body[data-sidebar-collapsed="true"] .sidebar {
  width: 68px;
  padding-left: 8px;
  padding-right: 8px;
}

body[data-sidebar-collapsed="true"] .board-main {
  width: calc(100% - 68px);
  margin-left: 68px;
}

body[data-sidebar-collapsed="true"] .sidebar-logo,
body[data-sidebar-collapsed="true"] .side-nav span,
body[data-sidebar-collapsed="true"] .chat-list,
body[data-sidebar-collapsed="true"] .sidebar-footer {
  display: none;
}

body[data-sidebar-collapsed="true"] .sidebar-head {
  justify-content: center;
  padding: 0;
}

body[data-sidebar-collapsed="true"] .side-nav a {
  justify-content: center;
  padding: 0;
}

body[data-surface="soccerprop"],
body[data-surface="research"] {
  --sp-blue: #0787be;
  --sp-blue-dark: #006992;
  --sp-page: #f3f4f6;
  --sp-header: #f4f5f6;
  --sp-line: #dde2e7;
  --sp-red-soft: #ffd9d9;
  --sp-cyan: #59b9d0;
}

body[data-surface="soccerprop"] .app-header,
body[data-surface="research"] .app-header {
  display: none;
}

.soccerprop-board-view {
  min-height: 100vh;
  padding: 42px 24px 70px;
  background: #fff;
}

.sp-board {
  width: min(1136px, 100%);
  margin: 0 auto;
  color: #263240;
}

.sp-board-workflow,
.research-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 20px;
  margin-bottom: 28px;
}

.sp-kicker {
  margin: 0 0 6px;
  color: #586271;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.sp-board-workflow h1,
.research-head h1 {
  margin: 0;
  color: #111827;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 900;
}

.sp-board-workflow p,
.research-head p {
  max-width: 780px;
  margin: 8px 0 0;
  color: #556171;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 650;
}

.capture-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.capture-actions button,
.source-method-grid button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #cfd7df;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 850;
}

.capture-actions button:last-child {
  border-color: #0d0d0d;
  background: #0d0d0d;
  color: #fff;
}

.sp-book-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-bottom: 24px;
}

.sp-book,
.sp-mode-toggle button {
  height: 30px;
  min-width: 45px;
  border: 1px solid #b8c9d3;
  border-radius: 3px;
  background: #fff;
  color: #24313f;
  font-size: 12px;
  font-weight: 800;
  padding: 0 10px;
}

.sp-book.active,
.sp-mode-toggle .active {
  background: #0b6d8e;
  color: #fff;
  border-color: #0b6d8e;
}

.sp-mode-toggle {
  display: inline-flex;
  margin-left: 12px;
}

.sp-mode-toggle button + button {
  margin-left: -1px;
}

.sp-stat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 34px;
  padding: 0;
}

.sp-stat-tabs button {
  min-height: 38px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #0d83b6;
  padding: 0 12px;
  box-shadow: 0 7px 12px rgba(15, 23, 42, 0.08);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.sp-stat-tabs .active {
  background: var(--sp-blue);
  color: #fff;
  box-shadow: none;
}

.sp-builder-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 360px;
  align-items: end;
  gap: 18px;
  padding: 0 0 22px;
}

.sp-builder-row > div {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.sp-builder-row strong {
  font-size: 14px;
  font-weight: 800;
}

.sp-builder-row .add-condition {
  min-height: 32px;
  border-radius: 0;
  border: 1px solid #a7a7a7;
  background: #eeeeee;
  color: #333;
  padding: 0 13px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.sp-builder-row label {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #333;
  font-size: 14px;
  font-weight: 800;
}

.sp-builder-row input {
  height: 37px;
  border: 0;
  border-radius: 0;
  background: #eaf1f5;
  padding: 0 10px;
}

.sp-table-wrap {
  margin: 0;
  border: 0;
  border-radius: 0;
  overflow: auto;
  background: #fff;
}

.sp-props-table {
  width: 100%;
  min-width: 1112px;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 12px;
  line-height: 1.25;
}

.sp-props-table th,
.sp-props-table td {
  border: 0;
  border-bottom: 1px solid #ebedf0;
  padding: 10px 8px;
  vertical-align: middle;
}

.sp-props-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #fff;
  color: #252f3a;
  font-weight: 900;
  text-align: left;
  white-space: nowrap;
}

.sp-props-table tbody tr:nth-child(odd) {
  background: #f8f8f8;
}

.sp-props-table tbody tr:nth-child(even) {
  background: #fff;
}

.sp-props-table tbody tr:hover {
  background: #f1f5f2;
}

.sp-props-table td:first-child,
.sp-props-table td:nth-child(2) {
  font-weight: 800;
}

.sp-props-table a {
  color: #35404b;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sp-props-table .sort-th {
  color: inherit;
  font-size: 13px;
  font-weight: 900;
}

.sp-props-table .heat {
  color: #102116;
  font-weight: 800;
  text-align: center;
}

.sp-props-table .g4 { background: var(--sp-green-4); color: #07170d; }

.sp-props-table .g3 { background: var(--sp-green-3); }

.sp-props-table .g2 { background: var(--sp-green-2); }

.sp-props-table .g1 { background: var(--sp-green-1); }

.sp-props-table .r1 {
  background: var(--sp-red-soft);
  color: #c00013;
}

.sp-props-table .red-block { background: var(--sp-red); color: #111; }

.research-view {
  min-height: 100vh;
  padding: 42px 24px 70px;
  background: #fff;
}

.research-shell {
  width: min(1136px, 100%);
  margin: 0 auto;
}

.source-method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.source-method-grid button {
  min-height: 118px;
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-start;
  border-color: #d7dde4;
  border-radius: 8px;
  padding: 16px;
  text-align: left;
}

.source-method-grid button:hover,
.capture-actions button:hover {
  background: #f6f8fa;
}

.source-method-grid button strong {
  font-size: 14px;
}

.source-method-grid button span {
  color: #5d6877;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 650;
}

.research-table-card {
  border: 1px solid #dfe4ea;
  background: #fff;
}

.research-card-head {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 14px;
  border-bottom: 1px solid #e7ebef;
}

.research-card-head h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
}

.research-card-head span {
  color: #5d6877;
  font-size: 12px;
  font-weight: 800;
}

.research-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.research-table th,
.research-table td {
  border-bottom: 1px solid #edf0f3;
  padding: 12px 14px;
  text-align: left;
  vertical-align: middle;
}

.research-table th {
  color: #586271;
  background: #f8f9fa;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.research-table td:first-child {
  color: #111827;
  font-weight: 850;
}

.research-table td:last-child {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #164f2a;
  font-weight: 850;
}

.watchlist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.watchlist-grid article {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #dfe4ea;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.watchlist-grid article > span {
  width: max-content;
  max-width: 100%;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #d3dbe4;
  border-radius: 999px;
  padding: 0 9px;
  color: #4a5564;
  font-size: 11px;
  font-weight: 850;
}

.watchlist-grid strong {
  color: #111827;
  font-size: 16px;
}

.watchlist-grid p {
  margin: 0;
  color: #586271;
  font-size: 13px;
  line-height: 1.45;
}

.watchlist-grid small {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  color: #4d5968;
  font-size: 12px;
  font-weight: 800;
}

.daily-list {
  display: grid;
  border: 1px solid #dfe4ea;
  background: #fff;
}

.daily-list article {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border-bottom: 1px solid #edf0f3;
}

.daily-list article:last-child {
  border-bottom: 0;
}

.daily-list time {
  color: #5d6877;
  font-size: 12px;
  font-weight: 900;
}

.daily-list strong {
  color: #111827;
  font-size: 15px;
}

.daily-list p {
  margin: 5px 0 0;
  color: #5d6877;
  font-size: 13px;
  line-height: 1.45;
}

.line-chip {
  display: inline-block;
  margin-left: 2px;
  padding: 2px 4px;
  background: #32cf71;
  color: #06451f;
  font-weight: 900;
}

.boost-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin: 2px 2px 0 0;
  padding: 0 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 900;
}

.boost-tag.shot {
  background: #ffd6dd;
  color: #f04b65;
}

.boost-tag.cover {
  background: #bbf2d4;
  color: #2fb473;
}

.soccer-player-main {
  min-height: 100vh;
  background: #f7f7f7;
}

.sp-back-link {
  height: 48px;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.sp-player-title-band {
  min-height: 135px;
  display: grid;
  place-items: center;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #edf0f3;
  background: #f3f4f6;
}

.sp-player-title-band h1 {
  margin: 0;
  color: #111827;
  font-size: 52px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.sp-player-page {
  width: min(1140px, 100%);
  margin: 0 auto 80px;
  padding: 34px 0 40px;
  background: #fff;
}

.sp-player-page .intro {
  margin: 0 70px 14px;
  color: #101828;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.sp-player-page .sp-stat-tabs {
  grid-template-columns: repeat(10, minmax(86px, 1fr));
  gap: 6px;
  margin: 0 70px 24px;
}

.sp-player-page .sp-stat-tabs button {
  min-height: 38px;
  border: 1px solid #d9e0e8;
  box-shadow: none;
}

.sp-player-filter {
  position: sticky;
  top: 0;
  z-index: 12;
  margin: 0 0 22px;
  padding: 10px 70px;
  border: 0;
  border-top: 1px solid #eef2f6;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.sp-player-filter .split-control {
  height: 38px;
  padding: 0 10px;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  background: #f8fafc;
  text-transform: uppercase;
  letter-spacing: 0;
}

.sp-player-filter .filter-chip {
  height: 38px;
  border-radius: 999px;
  background: #fff;
  color: #27364b;
}

.sp-player-filter .filter-chip.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.sp-line-card {
  margin: 0 42px 34px;
  padding: 28px 28px 18px;
  border-color: #edf0f4;
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.035);
}

.sp-line-card .line-grid {
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.sp-line-card h3 {
  margin: 0 0 16px;
  font-size: 16px;
}

.sp-line-card .slider {
  width: 340px;
}

.sp-line-card .slider .track {
  border-radius: 0;
  background: #b9c3cf;
}

.sp-line-card .slider .knob {
  left: 90px;
  border: 0;
  background: #8996a6;
}

.sp-line-card .ticks {
  width: 360px;
}

.filter-note {
  align-self: start;
  margin-top: 6px;
  color: #667085;
  font-size: 13px;
}

.sp-line-card .summary-table {
  margin-top: 22px;
}

.sp-chart-card {
  margin: 76px 0 38px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sp-historical-chart.main-chart {
  position: relative;
  height: 560px;
  min-height: 560px;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow-x: auto;
  overflow-y: hidden;
  background: #fff;
}

.sp-y-axis {
  position: absolute;
  left: 8px;
  top: 36px;
  bottom: 82px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #111;
  font-size: 14px;
  font-weight: 600;
}

.sp-y-axis::before {
  content: "";
  position: absolute;
  left: 13px;
  top: -10px;
  bottom: -4px;
  border-left: 3px solid #111;
}

.sp-current-line {
  position: absolute;
  left: 48px;
  right: 24px;
  bottom: calc(80px + 30%);
  z-index: 4;
  border-top: 4px solid #111;
}

.sp-current-line span {
  position: absolute;
  left: -28px;
  top: -12px;
  color: #111;
  font-size: 14px;
  font-weight: 700;
}

.sp-chart-row {
  min-width: 1122px;
  height: 560px;
  display: flex;
  align-items: flex-end;
  gap: 9px;
  padding: 36px 20px 66px 58px;
}

.sp-chart-point {
  position: relative;
  width: 30px;
  min-width: 30px;
  height: 420px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border: 0;
  background: transparent;
  padding: 0;
  color: #111;
  transform: none;
}

.sp-chart-point .sp-bar {
  width: 30px;
  height: var(--h);
  min-height: 0;
  background: #2fc95f;
}

.sp-chart-point.miss .sp-bar {
  background: #ff4939;
}

.sp-chart-point.neutral .sp-bar {
  background: #bfbfbf;
}

.sp-chart-point.dot-only .sp-bar {
  opacity: 0;
}

.sp-chart-point i {
  position: absolute;
  left: 50%;
  bottom: var(--line);
  z-index: 5;
  width: 18px;
  height: 18px;
  border: 3px solid #e9e9e9;
  border-radius: 50%;
  background: #6f6f6f;
  transform: translate(-50%, 50%);
}

.sp-chart-point.green i {
  background: #169842;
}

.sp-chart-point.miss i {
  background: #f60018;
  border-color: #fff;
}

.sp-chart-point b {
  position: absolute;
  left: 50%;
  bottom: calc(var(--h) + 6px);
  color: #4b5563;
  font-size: 11px;
  font-weight: 900;
  transform: translateX(-50%);
  white-space: nowrap;
}

.sp-chart-point small {
  position: absolute;
  left: 50%;
  bottom: -28px;
  width: 46px;
  color: #111;
  font-size: 11px;
  font-weight: 700;
  transform: translateX(-50%);
}

.sp-context-grid {
  grid-template-columns: 1.05fr 1fr;
  gap: 38px;
  margin: 0 42px 70px;
}

.sp-context-panel,
.sp-form-panel {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.sp-context-panel {
  padding: 0;
}

.sp-context-panel h3,
.sp-form-panel h3,
.mini-chart h3,
.box-card h3 {
  margin: 0 0 16px;
  font-size: 16px;
}

.sp-context-panel .metric-row {
  min-height: 46px;
  color: #475467;
  font-weight: 800;
}

.sp-context-panel .metric-row em {
  min-width: 86px;
  border: 1px solid #d9e0e8;
  border-radius: 4px;
  color: #64748b;
  padding: 4px 8px;
  font-size: 12px;
  text-align: center;
}

.sp-form-panel {
  padding: 0;
}

.sp-form-panel .bubble-group {
  margin-top: 10px;
  gap: 4px;
}

.sp-form-panel .bubble-group h4 {
  margin: 0 0 5px;
  font-size: 13px;
}

.sp-form-panel .bubbles {
  gap: 8px 10px;
}

.sp-form-panel .result-token {
  min-width: 30px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.sp-form-panel .result-token span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.sp-form-panel .result-token.green span {
  background: #2ec769;
}

.sp-form-panel .result-token.red span {
  background: #f1444a;
}

.sp-form-panel .result-token small {
  max-width: 44px;
  color: #42526a;
  font-size: 9px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-player-page .sp-split-charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 66px 122px;
  margin: 72px 42px 44px;
}

.sp-player-page .sp-split-chart {
  min-height: 270px;
  position: relative;
  padding: 0 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.sp-player-page .sp-split-chart h3 {
  margin: 0 0 42px;
  color: #111827;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.2;
}

.sp-player-page .sp-hbar-stack {
  display: grid;
  gap: 56px;
}

.sp-player-page .month-bars,
.sp-player-page .formation-bars {
  gap: 14px;
}

.sp-player-page .sp-split-chart .hbar {
  width: min(304px, calc(100% - 96px));
  height: 42px;
  margin: 0 0 0 96px;
  border-radius: 0;
  background: #eceff2;
  box-shadow: none;
  cursor: pointer;
}

.sp-player-page .sp-split-chart .hbar::before {
  background: var(--sp-cyan);
}

.sp-player-page .sp-split-chart .hbar span {
  padding-left: 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
}

.sp-player-page .sp-split-chart .xlabels {
  width: min(304px, calc(100% - 96px));
  margin: 28px 0 0 96px;
  color: #4b5b73;
  font-size: 10px;
  font-weight: 850;
}

.sp-player-page .sp-threshold-panel .dash-line {
  left: calc(96px + 132px);
  top: 52px;
  bottom: 46px;
  border-left: 2px dashed #111;
}

.sp-player-page .sp-box-panel {
  min-height: 300px;
}

.sp-player-page .sp-box-panel h3 {
  margin-bottom: 54px;
}

.sp-player-page .sp-split-chart .boxplot {
  height: 230px;
  min-height: 230px;
  margin: 0 38px;
  padding-top: 30px;
  gap: 78px;
  justify-content: center;
  align-items: flex-end;
  border-bottom: 2px solid #111;
  background: repeating-linear-gradient(to bottom, #fff 0, #fff 45px, #e9eef3 46px);
}

.sp-player-page .sp-split-chart .boxplot.three {
  gap: 66px;
}

.sp-player-page .sp-split-chart .box-item {
  width: 70px;
  height: 196px;
  padding: 0;
  border: 0;
  background: transparent;
  appearance: none;
  cursor: pointer;
}

.sp-player-page .sp-split-chart .box-item .whisker {
  left: 34px;
  top: 22px;
  bottom: 42px;
  width: 0;
  border-left: 2px dashed #111;
  background: transparent;
}

.sp-player-page .sp-split-chart .box-item .box {
  left: 16px;
  bottom: 58px;
  width: 38px;
  height: 62px;
  border: 2px solid #111;
  background: #f7fafc;
}

.sp-player-page .sp-split-chart .box-item i {
  left: 31px;
  width: 9px;
  height: 9px;
  background: #119bd0;
}

.sp-player-page .sp-split-chart .box-item.orange i {
  background: #f97316;
}

.sp-player-page .sp-split-chart .box-item.green-dot i {
  background: #22c55e;
}

.sp-player-page .sp-split-chart .box-item b {
  bottom: 0;
  color: #526177;
  font-size: 11px;
  font-weight: 850;
}

.sp-player-page .chart-grid {
  gap: 36px;
  margin: 0 42px 34px;
}

.sp-player-page .mini-chart,
.sp-player-page .box-card {
  position: relative;
  padding: 22px;
  border-color: #edf0f4;
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.035);
  overflow: hidden;
}

.sp-player-page .hbar {
  height: 42px;
  margin: 12px 0 0 86px;
  border-radius: 0;
}

.sp-player-page .hbar::before {
  background: var(--sp-cyan);
}

.sp-player-page .hbar span {
  top: 0;
  font-size: 13px;
}

.sp-player-page .xlabels {
  margin: 14px 18px 0 86px;
}

.dash-line {
  position: absolute;
  left: 62%;
  top: 52px;
  bottom: 46px;
  border-left: 2px dashed #111;
}

.sp-player-page .box-card {
  height: 350px;
}

.sp-player-page .boxplot {
  height: 275px;
  justify-content: space-around;
  align-items: end;
  border-bottom: 2px solid #222;
  background: repeating-linear-gradient(to bottom, #fff 0, #fff 45px, #e2e8f0 46px);
}

.sp-player-page .box-item .whisker {
  border-left: 2px dashed #222;
  background: transparent;
}

.sp-player-page .box-item .box {
  border: 2px solid #111;
  background: #f8fbfd;
}

.sp-player-page .box-item i {
  width: 9px;
  height: 9px;
  background: #0ea5d3;
}

.sp-player-page .box-item.orange i {
  background: #f97316;
}

.sp-player-page .box-item.green-dot i {
  background: #22c55e;
}

.sp-player-page .player-footer {
  margin: 20px 42px 0;
  min-height: 90px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  align-items: center;
  border: 1px solid #edf0f4;
  padding: 18px;
}

.sp-player-page .player-footer strong {
  text-align: center;
  color: #111;
  font-size: 22px;
}

.player-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
}

.player-footer a {
  color: var(--info);
  font-weight: 800;
}

.sp-player-page .player-footer {
  margin: 20px 42px 0;
  min-height: 90px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  align-items: center;
  border: 1px solid #edf0f4;
  padding: 18px;
}

.sp-player-page .player-footer strong {
  text-align: center;
  color: #111;
  font-size: 22px;
}

.sp-player-page .player-footer a {
  color: #0284c7;
}

body.dark-mode {
  --bg: #17191d;
  --shell: #202226;
  --surface: #23262b;
  --surface-muted: #2b2f35;
  --surface-strong: #30343b;
  --line: #3b424c;
  --line-strong: #55606d;
  --ink: #f4f6f8;
  --muted: #a3adba;
  --muted-2: #8b96a6;
  --primary: #f4f6f8;
  --primary-contrast: #0d0d0d;
  --success-soft: rgba(19, 122, 67, 0.22);
  --danger-soft: rgba(180, 35, 24, 0.22);
  --warning-soft: rgba(178, 99, 8, 0.22);
  --info-soft: rgba(13, 79, 163, 0.24);
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
  --shadow-soft: 0 8px 22px rgba(0, 0, 0, 0.18);
}

body.dark-mode .app-header {
  background: rgba(35, 38, 43, 0.92);
}

body.dark-mode .props-table tbody tr:hover {
  background: #282d34;
}

body.dark-mode .g3,
body.dark-mode .g2,
body.dark-mode .g1 {
  background: rgba(19, 122, 67, 0.32);
  color: #dff7e8;
}

body.dark-mode .r1 {
  background: rgba(189, 32, 23, 0.34);
  color: #ffd2cd;
}

body.dark-mode .y1 {
  color: #ffd08a;
}

@media (min-width: 861px) {
  .sidebar {
    transform: translateX(0);
  }
}

@media (max-width: 1120px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sp-stat-tabs,
  .sp-player-page .sp-stat-tabs {
    display: flex;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .sp-stat-tabs button {
    flex: 0 0 auto;
  }

  .sp-builder-row {
    grid-template-columns: 1fr;
  }

  .sp-player-page .sp-split-charts {
    grid-template-columns: 1fr;
    gap: 58px;
  }
}

@media (max-width: 980px) {
  .board-hero,
  .player-overview,
  .line-grid,
  .matchup-grid,
  .chart-grid,
  .utility-grid {
    grid-template-columns: 1fr;
  }

  .board-meta-strip,
  .player-status-stack {
    justify-content: flex-start;
    max-width: none;
  }
}

@media (max-width: 860px) {
  .app-page {
    display: block;
  }

  .mobile-shell-bar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 40;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 12px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
  }

  body.dark-mode .mobile-shell-bar {
    background: rgba(35, 38, 43, 0.94);
  }

  .mobile-brand {
    font-size: 18px;
    font-weight: 800;
  }

  .mobile-link {
    color: var(--info);
    font-size: 13px;
    font-weight: 850;
  }

  .drawer-scrim {
    position: fixed;
    inset: 0;
    z-index: 55;
    display: block;
    background: rgba(17, 23, 31, 0.34);
  }

  .sidebar {
    width: min(324px, calc(100vw - 32px));
    padding-top: 14px;
    transform: translateX(-105%);
    transition: transform 220ms var(--ease-out);
  }

  .sidebar-collapse {
    display: none;
  }

  body[data-sidebar-collapsed="true"] .sidebar {
    width: min(324px, calc(100vw - 32px));
    padding-left: 12px;
    padding-right: 12px;
  }

  body[data-sidebar-collapsed="true"] .board-main {
    width: 100%;
    margin-left: 0;
  }

  body[data-sidebar-collapsed="true"] .sidebar-logo,
  body[data-sidebar-collapsed="true"] .side-nav span,
  body[data-sidebar-collapsed="true"] .chat-list,
  body[data-sidebar-collapsed="true"] .sidebar-footer {
    display: initial;
  }

  body[data-sidebar-collapsed="true"] .chat-list {
    display: grid;
  }

  body[data-sidebar-collapsed="true"] .sidebar-footer {
    display: block;
  }

  body[data-sidebar-collapsed="true"] .sidebar-head {
    justify-content: space-between;
    padding: 0 8px;
  }

  body[data-sidebar-collapsed="true"] .side-nav a {
    justify-content: flex-start;
    padding: 0 10px;
  }

  body[data-menu-open="true"] .sidebar {
    transform: translateX(0);
  }

  .sidebar-close {
    display: inline-grid;
  }

  .board-main {
    width: 100%;
    margin-left: 0;
    padding-top: 56px;
  }

  .app-header {
    display: none;
  }

  .view-panel,
  .player-page-content {
    padding: 16px;
  }

  .soccerprop-board-view {
    padding: 24px 12px 32px;
  }

  .research-view {
    padding: 24px 12px 32px;
  }

  .sp-board {
    width: 100%;
  }

  .sp-book-tabs {
    margin-bottom: 16px;
  }

  .sp-stat-tabs {
    margin-bottom: 18px;
  }

  .sp-builder-row {
    gap: 12px;
    padding-bottom: 14px;
  }

  .sp-builder-row label {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .sp-board-workflow,
  .research-head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 14px;
    margin-bottom: 20px;
  }

  .sp-board-workflow h1,
  .research-head h1 {
    font-size: 25px;
  }

  .capture-actions {
    justify-content: flex-start;
  }

  .capture-actions button {
    flex: 1 1 150px;
    justify-content: center;
  }

  .source-method-grid,
  .watchlist-grid {
    grid-template-columns: 1fr;
  }

  .research-table-card {
    overflow-x: auto;
  }

  .research-table {
    min-width: 720px;
  }

  .daily-list article {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .sp-back-link {
    height: 42px;
    padding: 0 16px;
  }

  .sp-player-title-band {
    min-height: 142px;
  }

  .sp-player-title-band h1 {
    font-size: 42px;
  }

  .sp-player-page {
    width: 100%;
    margin-bottom: 36px;
    padding-top: 22px;
  }

  .sp-player-page .intro,
  .sp-player-page .sp-stat-tabs,
  .sp-player-filter,
  .sp-line-card,
  .sp-chart-card,
  .sp-context-grid,
  .sp-player-page .sp-split-charts,
  .sp-player-page .chart-grid,
  .sp-player-page .player-footer {
    margin-left: 14px;
    margin-right: 14px;
  }

  .sp-player-filter {
    padding: 10px 0;
    box-shadow: none;
  }

  .sp-line-card {
    padding: 16px;
  }

  .sp-line-card .line-grid {
    grid-template-columns: 1fr;
  }

  .sp-line-card .slider,
  .sp-line-card .ticks {
    width: min(360px, 100%);
  }

  .sp-chart-card {
    margin-top: 40px;
  }

  .sp-historical-chart.main-chart {
    height: 430px;
    min-height: 430px;
  }

  .sp-chart-row {
    height: 430px;
    min-width: 980px;
    gap: 8px;
    padding: 30px 16px 58px 48px;
  }

  .sp-chart-point {
    width: 26px;
    min-width: 26px;
    height: 315px;
  }

  .sp-chart-point .sp-bar {
    width: 26px;
  }

  .sp-current-line {
    left: 42px;
    bottom: calc(66px + 30%);
  }

  .sp-y-axis {
    top: 30px;
    bottom: 66px;
  }

  .sp-context-grid,
  .sp-player-page .sp-split-charts,
  .sp-player-page .chart-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .sp-player-page .sp-split-chart {
    min-height: 250px;
  }

  .sp-player-page .sp-split-chart h3 {
    margin-bottom: 34px;
  }

  .sp-player-page .sp-split-chart .hbar,
  .sp-player-page .sp-split-chart .xlabels {
    width: min(260px, calc(100% - 48px));
    margin-left: 48px;
  }

  .sp-player-page .sp-threshold-panel .dash-line {
    left: calc(48px + 120px);
  }

  .sp-player-page .sp-split-chart .boxplot {
    margin: 0 8px;
    gap: 46px;
  }

  .sp-player-page .sp-split-chart .boxplot.three {
    gap: 30px;
  }

  .sp-player-page .player-footer {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .board-hero,
  .player-overview,
  .utility-card {
    padding: 16px;
  }

  .board-hero h1,
  .player-overview h1,
  .utility-card h1 {
    font-size: 25px;
  }

  .ask-strip,
  .board-filter-toolbar,
  .board-card-top,
  .builder-row,
  .chart-head,
  .panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .ask-strip {
    display: grid;
    grid-template-columns: 1fr;
  }

  .board-filter-toolbar {
    display: grid;
  }

  .league-tabs,
  .tabs,
  .stat-tabs,
  .action-bar,
  .player-filter-toolbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .league-tabs button,
  .tabs button,
  .stat-tabs button,
  .filter-chip {
    flex: 0 0 auto;
  }

  .board-card-top,
  .tabs,
  .action-bar,
  .builder-row {
    padding-left: 14px;
    padding-right: 14px;
  }

  .builder-row label {
    width: 100%;
    margin-left: 0;
  }

  .table-wrap {
    display: none;
  }

  .mobile-prop-list {
    display: grid;
    gap: 10px;
    padding: 0 14px 14px;
  }

  .prop-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
  }

  .prop-card > div:first-child {
    min-width: 0;
    display: grid;
    gap: 3px;
  }

  .prop-card a {
    font-weight: 850;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .prop-card span {
    color: var(--muted);
    font-size: 12px;
  }

  .prop-card > strong {
    color: var(--ink);
    font-size: 13px;
  }

  .prop-card dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
  }

  .prop-card dl div {
    padding: 9px;
    border-radius: 6px;
    background: var(--surface-muted);
  }

  .prop-card dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
  }

  .prop-card dd {
    margin: 3px 0 0;
    font-weight: 850;
  }

  .chat-view {
    min-height: calc(100vh - 56px);
  }

  .chat-empty-center {
    gap: 18px;
    padding: 12vh 0 0;
  }

  .chat-empty-center h1 {
    font-size: 27px;
  }

  .chat-composer {
    grid-template-columns: 38px minmax(0, 1fr) 38px 38px;
    min-height: 56px;
  }

  .pricing-view {
    padding-top: 20px;
  }

  .pricing-modal-shell {
    padding-top: 12px;
  }

  .pricing-close {
    right: 0;
    top: 0;
  }

  .pricing-modal-shell h1 {
    max-width: 280px;
    margin: 0 auto;
    font-size: 27px;
  }

  .pricing-note {
    margin-top: 14px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid article {
    min-height: auto;
  }

  .main-chart {
    min-height: 260px;
    padding-left: 30px;
  }

  .bar {
    width: 28px;
    min-width: 28px;
  }

  .player-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-overlay {
    padding: 64px 12px 0;
    place-items: start stretch;
  }

  .search-dialog {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .auth-top {
    min-height: 64px;
    padding: 0 24px;
  }

  .auth-wordmark {
    font-size: 23px;
  }

  .auth-main {
    padding-top: 58px;
  }

  .auth-cardless h1 {
    font-size: 30px;
  }

  .auth-cardless > p {
    margin-bottom: 28px;
    font-size: 15px;
  }

  .auth-providers button,
  .auth-form input,
  .auth-form button {
    height: 54px;
  }

  .auth-providers button {
    padding: 0 22px;
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}




.sp-chart-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  background: #fff;
}

.sp-history-svg {
  display: block;
  min-width: 100%;
  height: 560px;
  background: #fff;
}

.sp-grid-line {
  stroke: #e5e7eb;
  stroke-width: 1;
}

.sp-axis-spine {
  stroke: #111;
  stroke-width: 3;
}

.sp-axis-label,
.sp-line-label,
.sp-opp-label,
.sp-date-label {
  fill: #111;
  font-size: 11px;
  font-weight: 700;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.sp-line-label {
  font-size: 14px;
}

.sp-current-line-rule {
  stroke: #111;
  stroke-width: 3;
}

.sp-bar-green { fill: var(--sp-bar-hit, #2dc45d); }
.sp-bar-miss { fill: var(--sp-bar-miss, #f74c3b); }
.sp-bar-neutral { fill: #bfbfbf; }

.sp-dot-green { fill: #169842; stroke: #e9e9e9; stroke-width: 2; }
.sp-dot-miss { fill: #f60018; stroke: #fff; stroke-width: 2; }
.sp-dot-neutral { fill: #6f6f6f; stroke: #e9e9e9; stroke-width: 2; }

.sp-chart-sample {
  cursor: pointer;
}

.sp-chart-sample:focus-visible {
  outline: 2px solid #0d4fa3;
  outline-offset: 2px;
}

/* v50 Atlas no-API research OS layer */

:root {
  --atlas-bg: #f6f7f8;
  --atlas-surface: #ffffff;
  --atlas-muted-surface: #f1f3f5;
  --atlas-line: #d5dce5;
  --atlas-line-soft: #e8edf3;
  --atlas-ink: #11171f;
  --atlas-muted: #5f6b7a;
  --atlas-primary: #0d0d0d;
  --atlas-blue: #0d6efd;
  --atlas-blue-soft: #e8f1ff;
  --atlas-green: #137a43;
  --atlas-green-soft: #e3f5ea;
  --atlas-red: #b42318;
  --atlas-red-soft: #fde7e4;
  --atlas-warn: #9a5b05;
  --atlas-warn-soft: #fff3d6;
  --atlas-radius: 8px;
  --atlas-ease: cubic-bezier(0.23, 1, 0.32, 1);
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.board-main {
  min-width: 0;
}

body[data-surface="research"] .board-main,
.player-app .board-main {
  background: var(--atlas-bg);
}

body[data-surface="research"] .app-header {
  min-height: 52px;
  padding: 10px 28px;
  border-bottom: 1px solid var(--atlas-line-soft);
  background: rgba(246, 247, 248, 0.94);
}

body[data-surface="research"] .app-header strong {
  font-size: 13px;
}

body[data-surface="research"] .app-header span {
  font-size: 12px;
}

.chat-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 8px 8px;
}

.chat-list p {
  margin: 8px 10px 6px;
  color: #5f6b7a;
  font-size: 12px;
  font-weight: 650;
}

.chat-list button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 8px;
  align-items: center;
  min-height: 36px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #111;
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms var(--atlas-ease), transform 120ms var(--atlas-ease);
}

.chat-list button span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.25;
}

.chat-list button:hover,
.chat-list button:focus-visible {
  background: #e9edf3;
}

.side-nav a span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-footer {
  padding: 8px 4px 0;
}

.account-row {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.account-profile {
  min-width: 0;
  flex: 1 1 auto;
}

.account-copy {
  min-width: 0;
}

.account-copy strong,
.account-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-upgrade {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: #0d0d0d;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.chat-list button:active,
.atlas-workbench button:active,
.player-dossier-page button:active {
  transform: scale(0.98);
}

.ready-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #0d6efd;
  box-shadow: none;
}

.atlas-workbench,
.player-dossier-page {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 48px;
  color: var(--atlas-ink);
}

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

.workbench-head h1,
.dossier-title-band h1 {
  margin: 0;
  color: var(--atlas-ink);
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: 0;
}

.workbench-head p {
  max-width: 78ch;
  margin: 8px 0 0;
  color: var(--atlas-muted);
  font-size: 13px;
  line-height: 1.45;
}

.workbench-kicker {
  margin: 0 0 6px;
  color: var(--atlas-muted);
  font-size: 12px;
  font-weight: 700;
}

.workbench-actions,
.capture-console-actions,
.row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

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

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--atlas-line-soft);
}

.panel-head h2 {
  margin: 0;
  color: var(--atlas-ink);
  font-size: 15px;
  line-height: 1.25;
}

.panel-head p {
  margin: 4px 0 0;
  color: var(--atlas-muted);
  font-size: 12px;
  line-height: 1.4;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.metric-strip article {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--atlas-line);
  border-radius: var(--atlas-radius);
  background: var(--atlas-surface);
}

.metric-strip span {
  display: block;
  color: var(--atlas-muted);
  font-size: 11px;
  font-weight: 650;
}

.metric-strip strong {
  display: block;
  margin-top: 5px;
  color: var(--atlas-ink);
  font-size: 22px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.source-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 14px;
  margin-bottom: 14px;
}

.capture-console {
  padding-bottom: 16px;
}

.field-row {
  display: grid;
  gap: 6px;
  margin: 0 18px 12px;
}

.field-row span,
.queue-search span {
  color: var(--atlas-muted);
  font-size: 12px;
  font-weight: 650;
}

.field-row input,
.field-row select,
.field-row textarea,
.queue-search input,
.status-select {
  width: 100%;
  border: 1px solid var(--atlas-line);
  border-radius: 7px;
  background: #fff;
  color: var(--atlas-ink);
  font: inherit;
  font-size: 13px;
}

.field-row input,
.field-row select,
.queue-search input,
.status-select {
  min-height: 38px;
  padding: 0 10px;
}

.field-row textarea {
  min-height: 118px;
  padding: 10px;
  resize: vertical;
  line-height: 1.45;
}

.field-row input:focus,
.field-row select:focus,
.field-row textarea:focus,
.queue-search input:focus,
.status-select:focus {
  outline: 2px solid rgba(13, 111, 253, 0.26);
  border-color: var(--atlas-blue);
}

.capture-console-actions {
  padding: 0 18px;
}

.shortcut-list {
  display: grid;
  gap: 4px;
  padding: 10px;
}

.shortcut-list button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--atlas-ink);
  text-align: left;
  cursor: pointer;
}

.shortcut-list button:hover,
.shortcut-list button:focus-visible {
  background: var(--atlas-muted-surface);
}

.shortcut-list strong,
.shortcut-list small {
  display: block;
}

.shortcut-list strong {
  font-size: 13px;
}

.shortcut-list small {
  margin-top: 2px;
  color: var(--atlas-muted);
  font-size: 12px;
  line-height: 1.3;
}

.queue-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px;
}

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

.status-tabs button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--atlas-muted);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.status-tabs button:hover,
.status-tabs button:focus-visible {
  background: var(--atlas-muted-surface);
  color: var(--atlas-ink);
}

.status-tabs button.active {
  border-color: #c8ddff;
  background: var(--atlas-blue-soft);
  color: #0b4aa2;
}

.queue-search {
  display: grid;
  gap: 6px;
}

.table-shell {
  max-width: 100%;
  overflow-x: auto;
}

.atlas-data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.atlas-data-table th,
.atlas-data-table td {
  border-bottom: 1px solid var(--atlas-line-soft);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  font-size: 12px;
  line-height: 1.35;
}

.atlas-data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--atlas-muted-surface);
  color: #536173;
  font-size: 11px;
  font-weight: 750;
}

.atlas-data-table th button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.atlas-data-table td strong,
.atlas-data-table td small {
  display: block;
}

.atlas-data-table td small {
  margin-top: 3px;
  color: var(--atlas-muted);
  font-size: 11px;
}

.atlas-data-table tbody tr:hover {
  background: #fafbfd;
}

.player-link,
.atlas-data-table a {
  color: #074c9d;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.number-cell {
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.status-pill,
.change-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.status-pill.ready,
.status-pill.ready-to-review {
  border-color: #a8d9b8;
  background: var(--atlas-green-soft);
  color: var(--atlas-green);
}

.status-pill.needs-stats,
.status-pill.needs-source-check,
.status-pill.needs-opponent-context,
.status-pill.needs-injury-news {
  border-color: #f0d39b;
  background: var(--atlas-warn-soft);
  color: var(--atlas-warn);
}

.status-pill.archived,
.status-pill.neutral {
  border-color: var(--atlas-line);
  background: var(--atlas-muted-surface);
  color: var(--atlas-muted);
}

.change-pill.up {
  border-color: #a8d9b8;
  background: var(--atlas-green-soft);
  color: var(--atlas-green);
}

.change-pill.down {
  border-color: #f3bbb4;
  background: var(--atlas-red-soft);
  color: var(--atlas-red);
}

.change-pill.flat {
  border-color: var(--atlas-line);
  background: var(--atlas-muted-surface);
  color: var(--atlas-muted);
}

.row-actions button,
.row-actions a,
.panel-head .secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--atlas-line);
  border-radius: 7px;
  background: #fff;
  color: var(--atlas-ink);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.row-actions button.is-saved {
  border-color: #bcd5ff;
  background: var(--atlas-blue-soft);
  color: #0b4aa2;
}

.resume-grid,
.dossier-lower-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

.resume-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--atlas-line-soft);
}

.resume-section-head h2 {
  margin: 0;
  font-size: 15px;
}

.resume-section-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--atlas-muted-surface);
  color: var(--atlas-muted);
  font-size: 12px;
  font-weight: 800;
}

.resume-items article {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px 16px;
  border-bottom: 1px solid var(--atlas-line-soft);
}

.resume-items article:last-child {
  border-bottom: 0;
}

.resume-items time {
  color: var(--atlas-muted);
  font-size: 11px;
  font-weight: 750;
}

.resume-items strong {
  display: block;
  font-size: 13px;
}

.resume-items p,
.empty-copy {
  margin: 3px 0 0;
  color: var(--atlas-muted);
  font-size: 12px;
  line-height: 1.4;
}

.resume-items a {
  color: #074c9d;
  font-size: 12px;
  font-weight: 750;
}

.dossier-title-band {
  width: min(1280px, calc(100% - 48px));
  margin: 28px auto 0;
  padding: 28px;
  border: 1px solid var(--atlas-line);
  border-radius: var(--atlas-radius);
  background: #eef1f5;
}

.dossier-title-band span {
  display: block;
  margin-top: 8px;
  color: var(--atlas-muted);
  font-size: 13px;
}

.dossier-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 14px;
  margin-bottom: 14px;
}

.dossier-stats {
  display: grid;
  gap: 0;
  margin: 0;
}

.dossier-stats div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--atlas-line-soft);
}

.dossier-stats div:last-child {
  border-bottom: 0;
}

.dossier-stats dt {
  color: var(--atlas-muted);
  font-size: 12px;
  font-weight: 700;
}

.dossier-stats dd {
  margin: 0;
  text-align: right;
  font-size: 12px;
  font-weight: 750;
}

.line-memory-chart {
  display: block;
  width: 100%;
  height: 220px;
  padding: 10px 16px 14px;
}

.line-memory-chart .chart-axis {
  stroke: #c9d2dd;
  stroke-width: 1;
}

.line-memory-chart .line-path {
  fill: none;
  stroke: var(--atlas-blue);
  stroke-width: 3;
}

.line-memory-chart .line-point {
  fill: #fff;
  stroke: var(--atlas-blue);
  stroke-width: 3;
}

.line-memory-chart text {
  fill: var(--atlas-muted);
  font-size: 11px;
  font-weight: 700;
}

.dossier-line-table {
  margin-bottom: 14px;
}

.receipt-list,
.gap-list,
.note-stack {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
}

.receipt-list div {
  display: grid;
  gap: 3px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--atlas-line-soft);
}

.receipt-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.receipt-list strong {
  font-size: 13px;
}

.receipt-list span,
.note-stack p {
  margin: 0;
  color: var(--atlas-muted);
  font-size: 12px;
  line-height: 1.45;
}

.gap-list {
  margin: 0;
  padding-left: 32px;
  color: var(--atlas-ink);
  font-size: 13px;
}

.gap-list li + li {
  margin-top: 6px;
}

.player-footer {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto 44px;
}

@media (max-width: 980px) {
  .atlas-workbench,
  .player-dossier-page,
  .dossier-title-band,
  .player-footer {
    width: min(100% - 28px, 1280px);
  }

  .workbench-head,
  .panel-head,
  .dossier-summary-grid,
  .source-grid,
  .queue-toolbar,
  .resume-grid,
  .dossier-lower-grid {
    grid-template-columns: 1fr;
  }

  .workbench-head,
  .panel-head {
    align-items: flex-start;
  }

  .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body[data-surface="research"] .app-header {
    display: none;
  }

  .atlas-workbench,
  .player-dossier-page {
    width: calc(100vw - 24px);
    padding-top: 18px;
  }

  .workbench-head {
    display: grid;
  }

  .workbench-head h1,
  .dossier-title-band h1 {
    font-size: 24px;
  }

  .metric-strip {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .metric-strip article {
    padding: 10px;
  }

  .queue-toolbar {
    padding: 10px;
  }

  .status-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .status-tabs button {
    flex: 0 0 auto;
  }

  .atlas-data-table,
  .atlas-data-table thead,
  .atlas-data-table tbody,
  .atlas-data-table tr,
  .atlas-data-table th,
  .atlas-data-table td {
    display: block;
  }

  .atlas-data-table thead {
    display: none;
  }

  .atlas-data-table tr {
    margin: 10px;
    border: 1px solid var(--atlas-line);
    border-radius: var(--atlas-radius);
    background: #fff;
    overflow: hidden;
  }

  .atlas-data-table td {
    display: grid;
    grid-template-columns: minmax(92px, 34%) minmax(0, 1fr);
    gap: 10px;
    padding: 9px 10px;
    border-bottom: 1px solid var(--atlas-line-soft);
  }

  .atlas-data-table td:last-child {
    border-bottom: 0;
  }

  .atlas-data-table td::before {
    content: attr(data-label);
    color: var(--atlas-muted);
    font-size: 11px;
    font-weight: 800;
  }

  .resume-items article {
    grid-template-columns: 1fr;
  }

  .line-memory-chart {
    height: 180px;
  }
}

@media (max-width: 520px) {
  .metric-strip {
    grid-template-columns: 1fr;
  }

  .dossier-title-band {
    width: calc(100vw - 24px);
    padding: 20px;
  }

  .atlas-data-table td {
    grid-template-columns: 1fr;
  }
}

/* v51 ChatGPT-first correction */

.soccerprop-board-view {
  display: none !important;
}

.utility-view {
  background: var(--surface);
}

.chatgpt-section-page {
  min-height: calc(100dvh - 72px);
  display: grid;
  place-items: center;
  padding: 48px 24px;
}

.chatgpt-section-center {
  width: min(760px, 100%);
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.chatgpt-section-center h1 {
  margin: 0;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: 0;
}

.chatgpt-section-center p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.chatgpt-section-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

.chatgpt-section-list {
  width: min(520px, 100%);
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.chatgpt-section-list button {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  padding: 0 14px;
  text-align: left;
  font-size: 14px;
  cursor: pointer;
}

.chatgpt-section-list button:hover,
.chatgpt-section-list button:focus-visible {
  background: var(--surface-strong);
}

.pricing-modal-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.pricing-grid {
  align-items: stretch;
}

.pricing-grid article {
  min-height: 492px;
}

.pricing-grid .plus-plan {
  padding-top: 18px;
}

.popular-pill {
  position: absolute;
  top: 16px;
  right: 16px;
}

.pricing-grid ul {
  list-style: none;
  padding: 0;
}

.pricing-grid li {
  position: relative;
  padding-left: 18px;
}

.pricing-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 5px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  opacity: 0.8;
}

body.dark-mode {
  --bg: #0d0d0d;
  --shell: #171717;
  --surface: #0d0d0d;
  --surface-muted: #171717;
  --surface-strong: #212121;
  --line: #2f2f2f;
  --line-strong: #404040;
  --ink: #f4f4f4;
  --muted: #b4b4b4;
  --muted-2: #9b9b9b;
  --primary: #f4f4f4;
  --primary-contrast: #0d0d0d;
  --shadow: none;
  --shadow-soft: none;
  background: #0d0d0d;
}

body.dark-mode .sidebar,
body.dark-mode .mobile-shell-bar {
  background: #171717;
}

body.dark-mode .board-main,
body.dark-mode .pricing-view,
body.dark-mode .utility-view,
body.dark-mode .chat-view {
  background: #0d0d0d;
}

body.dark-mode .app-header {
  background: rgba(13, 13, 13, 0.94);
  border-color: #2f2f2f;
}

body.dark-mode .pricing-grid article,
body.dark-mode .pricing-note,
body.dark-mode .search-dialog,
body.dark-mode .chatgpt-section-list button:hover,
body.dark-mode .chatgpt-section-list button:focus-visible {
  background: #171717;
  border-color: #2f2f2f;
}

body.dark-mode .pricing-grid article.featured {
  border-color: #f4f4f4;
  box-shadow: 0 0 0 1px #f4f4f4;
}

body.dark-mode .secondary-action,
body.dark-mode .theme-toggle {
  background: #171717;
  border-color: #3a3a3a;
  color: #f4f4f4;
}

body.dark-mode .theme-toggle .selected,
body.dark-mode .pricing-grid button,
body.dark-mode .primary-pill {
  background: #f4f4f4;
  color: #0d0d0d;
}

body.dark-mode .pricing-grid .muted-plan {
  background: #212121;
  color: #b4b4b4;
  border-color: #3a3a3a;
}

/* v52 hard ChatGPT-dark correction: remove inherited black text and random dark seams. */
body.dark-mode {
  --bg: #0d0d0d;
  --shell: #0d0d0d;
  --surface: #0d0d0d;
  --surface-muted: #171717;
  --surface-strong: #212121;
  --line: #242424;
  --line-strong: #3a3a3a;
  --ink: #ececec;
  --muted: #b4b4b4;
  --muted-2: #8f8f8f;
  --primary: #f4f4f4;
  --primary-contrast: #0d0d0d;
  background: #0d0d0d !important;
  color: #ececec;
}

body.dark-mode.app-page,
body.dark-mode .board-main,
body.dark-mode .pricing-view,
body.dark-mode .utility-view,
body.dark-mode .chat-view {
  background: #0d0d0d !important;
  color: #ececec !important;
}

body.dark-mode .sidebar,
body.dark-mode .mobile-shell-bar {
  background: #0d0d0d !important;
  border-color: #242424 !important;
  color: #ececec !important;
}

body.dark-mode .app-header {
  background: #0d0d0d !important;
  border-color: #242424 !important;
  color: #ececec !important;
}

body.dark-mode .sidebar-logo,
body.dark-mode .sidebar-logo:visited,
body.dark-mode .side-nav a,
body.dark-mode .side-nav a:visited,
body.dark-mode .chat-list button,
body.dark-mode .account-copy strong,
body.dark-mode .app-header strong,
body.dark-mode .chatgpt-section-center h1,
body.dark-mode .chatgpt-section-list button,
body.dark-mode .pricing-modal-shell h1,
body.dark-mode .pricing-grid h2,
body.dark-mode .pricing-grid strong,
body.dark-mode .pricing-grid small,
body.dark-mode .pricing-grid li {
  color: #ececec !important;
}

body.dark-mode .app-header span,
body.dark-mode .chat-list p,
body.dark-mode .account-copy small,
body.dark-mode .chatgpt-section-center p,
body.dark-mode .pricing-subtitle,
body.dark-mode .pricing-note,
body.dark-mode .pricing-grid p,
body.dark-mode .pricing-footer-note {
  color: #b4b4b4 !important;
}

body.dark-mode .side-nav a:hover,
body.dark-mode .side-nav a:focus-visible,
body.dark-mode .side-nav a.active,
body.dark-mode .chat-list button:hover,
body.dark-mode .chat-list button:focus-visible,
body.dark-mode .icon-button:hover,
body.dark-mode .chatgpt-section-list button:hover,
body.dark-mode .chatgpt-section-list button:focus-visible {
  background: #212121 !important;
  color: #ffffff !important;
}

body.dark-mode .side-nav a.active {
  font-weight: 700;
}

body.dark-mode .pricing-grid article,
body.dark-mode .pricing-note,
body.dark-mode .search-dialog {
  background: #0d0d0d !important;
  border-color: #3a3a3a !important;
  box-shadow: none !important;
}

body.dark-mode .pricing-grid article.featured {
  border-color: #f4f4f4 !important;
  box-shadow: 0 0 0 1px #f4f4f4 !important;
}

body.dark-mode .secondary-action,
body.dark-mode .theme-toggle {
  background: #0d0d0d !important;
  border-color: #3a3a3a !important;
  color: #ececec !important;
}

body.dark-mode .theme-toggle .selected,
body.dark-mode .pricing-grid button,
body.dark-mode .primary-pill,
body.dark-mode .account-upgrade {
  background: #f4f4f4 !important;
  color: #0d0d0d !important;
  border-color: #f4f4f4 !important;
}

body.dark-mode .pricing-grid .muted-plan {
  background: #171717 !important;
  color: #b4b4b4 !important;
  border-color: #3a3a3a !important;
}

body[data-sidebar-collapsed="false"] .side-nav,
body[data-sidebar-collapsed="false"] .chat-list,
body[data-sidebar-collapsed="false"] .sidebar-footer {
  width: 100%;
}

body[data-sidebar-collapsed="false"] .side-nav a,
body[data-sidebar-collapsed="false"] .chat-list button,
body[data-sidebar-collapsed="false"] .account-row {
  width: 100%;
}

@media (min-width: 861px) {
  body[data-sidebar-collapsed="true"] .chat-list,
  body[data-sidebar-collapsed="true"] .sidebar-footer {
    display: none !important;
  }

  body[data-sidebar-collapsed="true"] .side-nav span,
  body[data-sidebar-collapsed="true"] .sidebar-logo {
    display: none !important;
  }

  body[data-sidebar-collapsed="true"] .sidebar {
    width: 68px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  body[data-sidebar-collapsed="true"] .board-main {
    width: calc(100% - 68px) !important;
    margin-left: 68px !important;
  }

  body[data-sidebar-collapsed="true"] .side-nav a {
    width: 44px;
    justify-content: center !important;
    padding: 0 !important;
  }
}

/* v53 literal black dark mode. */
body.dark-mode {
  --bg: #000000;
  --shell: #000000;
  --surface: #000000;
  --surface-muted: #111111;
  --surface-strong: #1f1f1f;
  --line: #242424;
  --line-strong: #3a3a3a;
  --ink: #f5f5f5;
  --muted: #b8b8b8;
  --muted-2: #969696;
  --primary: #f5f5f5;
  --primary-contrast: #000000;
  background: #000000 !important;
  color: #f5f5f5 !important;
}

body.dark-mode.app-page,
body.dark-mode .board-main,
body.dark-mode .app-header,
body.dark-mode .sidebar,
body.dark-mode .mobile-shell-bar,
body.dark-mode .pricing-view,
body.dark-mode .utility-view,
body.dark-mode .chat-view {
  background: #000000 !important;
  color: #f5f5f5 !important;
}

body.dark-mode .chat-composer,
body.dark-mode .prompt-row button,
body.dark-mode .pricing-grid article,
body.dark-mode .pricing-note,
body.dark-mode .search-dialog {
  background: #000000 !important;
  border-color: #333333 !important;
  box-shadow: none !important;
}

body.dark-mode .chat-input {
  background: #000000 !important;
  color: #f5f5f5 !important;
}

body.dark-mode .chat-input::placeholder {
  color: #9b9b9b !important;
}

body.dark-mode .side-nav a:hover,
body.dark-mode .side-nav a:focus-visible,
body.dark-mode .side-nav a.active,
body.dark-mode .chat-list button:hover,
body.dark-mode .chat-list button:focus-visible,
body.dark-mode .icon-button:hover,
body.dark-mode .composer-icon:hover,
body.dark-mode .composer-voice:hover,
body.dark-mode .chatgpt-section-list button:hover,
body.dark-mode .chatgpt-section-list button:focus-visible {
  background: #1f1f1f !important;
}

/* v54 ChatGPT typography and density pass. */
body {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

.sidebar {
  gap: 17px;
}

.sidebar-logo {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 650;
}

.side-nav {
  gap: 2px;
}

.side-nav a {
  min-height: 40px;
  gap: 13px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 450;
}

.side-nav a.active {
  font-weight: 650;
}

.nav-icon,
.ui-icon {
  width: 19px;
  height: 19px;
}

.chat-list {
  gap: 2px;
}

.chat-list p {
  margin: 10px 10px 7px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 650;
}

.chat-list button {
  min-height: 38px;
  height: 38px;
  padding: 0 8px 0 10px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

.account-copy strong {
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
}

.account-copy small {
  font-size: 12px;
  line-height: 16px;
}

.account-upgrade,
.primary-pill,
.secondary-action,
.pricing-grid button {
  font-size: 14px;
  font-weight: 650;
}

.app-header strong {
  font-size: 14px;
  line-height: 18px;
  font-weight: 650;
}

.app-header span {
  font-size: 12px;
  line-height: 16px;
}

.chat-empty-center {
  gap: 20px;
  padding-bottom: 8vh;
}

.chat-empty-center h1 {
  font-size: 30px;
  line-height: 36px;
  font-weight: 650;
  letter-spacing: 0;
}

.chat-composer {
  width: min(720px, calc(100% - 32px));
  min-height: 58px;
  grid-template-columns: 40px minmax(0, 1fr) 40px 44px;
  padding: 7px 8px;
}

.chat-input {
  height: 42px;
  font-size: 16px;
  line-height: 22px;
  font-weight: 400;
}

.chat-input::placeholder {
  font-size: 16px;
  font-weight: 400;
}

.composer-icon,
.composer-voice {
  width: 40px;
  height: 40px;
}

.composer-voice {
  width: 42px;
  height: 42px;
}

.prompt-row {
  display: none;
}

.pricing-modal-shell h1,
.chatgpt-section-center h1 {
  font-weight: 650;
  letter-spacing: 0;
}

.pricing-grid h2,
.pricing-grid strong,
.pricing-grid small,
.pricing-grid li,
.pricing-grid p {
  letter-spacing: 0;
}

/* v55 site-wide ChatGPT typography correction. */
:root {
  --font-ui: "OpenAI Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

html,
body,
button,
input,
select,
textarea {
  font-family: var(--font-ui);
  letter-spacing: 0 !important;
}

body {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

.sidebar-logo,
.auth-wordmark {
  font-size: 20px !important;
  line-height: 24px !important;
  font-weight: 600 !important;
}

.side-nav a {
  min-height: 40px !important;
  padding: 0 10px !important;
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 400 !important;
}

.side-nav a.active {
  font-weight: 600 !important;
}

.chat-list p,
.search-section-label {
  font-size: 12px !important;
  line-height: 16px !important;
  font-weight: 600 !important;
}

.chat-list button,
.search-results button,
.chatgpt-section-list button {
  min-height: 38px;
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 400 !important;
}

.search-results button > span:first-child {
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 400 !important;
}

.search-meta,
.app-header span,
.account-copy small {
  font-size: 12px !important;
  line-height: 16px !important;
  font-weight: 400 !important;
}

.account-copy strong,
.app-header strong {
  font-size: 14px !important;
  line-height: 18px !important;
  font-weight: 600 !important;
}

.primary-pill,
.secondary-action,
.account-upgrade,
.pricing-grid button,
.auth-form button,
.auth-providers button,
.theme-toggle button,
.search-dialog-top button {
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 600 !important;
}

.chat-empty-center h1,
.chatgpt-section-center h1 {
  font-size: 30px !important;
  line-height: 36px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}

.chatgpt-section-center p,
.pricing-subtitle,
.pricing-footer-note,
.auth-cardless > p {
  font-size: 16px !important;
  line-height: 24px !important;
  font-weight: 400 !important;
}

.chat-composer {
  width: min(720px, calc(100% - 32px)) !important;
  min-height: 58px !important;
}

.chat-input,
.chat-input::placeholder,
.search-dialog input,
.auth-form input {
  font-size: 16px !important;
  line-height: 22px !important;
  font-weight: 400 !important;
}

.pricing-modal-shell h1,
.auth-cardless h1 {
  font-size: 32px !important;
  line-height: 38px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

.pricing-note {
  font-size: 14px !important;
  line-height: 21px !important;
  font-weight: 400 !important;
}

.pricing-grid h2 {
  font-size: 18px !important;
  line-height: 24px !important;
  font-weight: 600 !important;
}

.pricing-grid strong {
  font-size: 38px !important;
  line-height: 42px !important;
  font-weight: 650 !important;
}

.pricing-grid strong span {
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 600 !important;
}

.pricing-grid p,
.pricing-grid li {
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 400 !important;
}

.pricing-grid small,
.popular-pill {
  font-size: 12px !important;
  line-height: 16px !important;
  font-weight: 600 !important;
}

.pricing-grid ul {
  gap: 10px !important;
}

.auth-providers button {
  font-size: 16px !important;
  line-height: 22px !important;
  font-weight: 400 !important;
}

.auth-divider,
.auth-footer,
.auth-form label span {
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 400 !important;
}

@media (max-width: 760px) {
  .chat-empty-center h1,
  .chatgpt-section-center h1 {
    font-size: 28px !important;
    line-height: 34px !important;
  }

  .pricing-modal-shell h1,
  .auth-cardless h1 {
    font-size: 30px !important;
    line-height: 36px !important;
  }
}

/* v56 ChatGPT-like sidebar icons and composer plus menu. */
.nav-icon,
.ui-icon {
  stroke-width: 1.75;
}

.chat-composer {
  position: relative;
  overflow: visible;
}

.composer-menu {
  position: absolute;
  left: 8px;
  top: calc(100% + 10px);
  z-index: 50;
  width: 240px;
  display: grid;
  gap: 2px;
  padding: 6px;
  border: 1px solid #d9d9d9;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.composer-menu[hidden] {
  display: none !important;
}

.composer-menu button {
  min-height: 42px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #0d0d0d;
  padding: 0 10px;
  text-align: left;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.composer-menu button:hover,
.composer-menu button:focus-visible {
  background: #f2f2f2;
}

.composer-menu .ui-icon {
  width: 19px;
  height: 19px;
}

body.dark-mode .composer-menu {
  background: #111111 !important;
  border-color: #333333 !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5) !important;
}

body.dark-mode .composer-menu button {
  color: #f5f5f5 !important;
}

body.dark-mode .composer-menu button:hover,
body.dark-mode .composer-menu button:focus-visible {
  background: #1f1f1f !important;
}

body.dark-mode .composer-icon.add[aria-expanded="true"] {
  background: #1f1f1f !important;
}

/* v57 ChatGPT search and utility-page correction. */
.search-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 120 !important;
  display: grid !important;
  place-items: start center !important;
  padding: 72px 20px 0 !important;
  background: rgba(0, 0, 0, 0.18) !important;
}

.search-overlay[hidden] {
  display: none !important;
}

.search-dialog {
  width: min(680px, calc(100vw - 32px)) !important;
  overflow: hidden !important;
  border: 1px solid #d9d9d9 !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: 0 20px 64px rgba(0, 0, 0, 0.22) !important;
}

.search-dialog-top {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px !important;
  border-bottom: 1px solid #ececec !important;
}

.search-field-wrap {
  height: 48px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid #d9d9d9;
  border-radius: 999px;
  background: #ffffff;
  padding: 0 14px;
}

.search-field-wrap .ui-icon {
  width: 18px;
  height: 18px;
  color: #6f6f6f;
}

.search-dialog .search-field-wrap input {
  width: 100% !important;
  height: 46px !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: #0d0d0d !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.search-dialog .search-field-wrap input::placeholder {
  color: #8f8f8f !important;
}

.search-dialog-top button {
  min-width: 58px !important;
  height: 38px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #5f5f5f !important;
  padding: 0 10px !important;
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 500 !important;
}

.search-dialog-top button:hover,
.search-dialog-top button:focus-visible {
  background: #f2f2f2 !important;
  color: #0d0d0d !important;
}

.search-section-label {
  padding: 14px 18px 6px !important;
  color: #6f6f6f !important;
  font-size: 12px !important;
  line-height: 16px !important;
  font-weight: 600 !important;
}

.search-results {
  display: grid !important;
  gap: 2px !important;
  padding: 0 8px 10px !important;
}

.search-results button {
  min-height: 44px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 16px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  padding: 0 10px !important;
  text-align: left !important;
}

.search-results button:hover,
.search-results button:focus-visible {
  background: #f2f2f2 !important;
}

.search-results button > span:first-child {
  min-width: 0 !important;
  overflow: hidden !important;
  color: #0d0d0d !important;
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 400 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.search-meta {
  color: #6f6f6f !important;
  font-size: 12px !important;
  line-height: 16px !important;
  font-weight: 400 !important;
  white-space: nowrap !important;
}

.search-results .ready-dot,
.chatgpt-section-list .ready-dot,
.chat-list .ready-dot {
  display: none !important;
}

.chatgpt-section-page {
  min-height: calc(100dvh - 64px) !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  padding: clamp(92px, 16vh, 150px) 24px 48px !important;
  background: #ffffff !important;
}

.chatgpt-section-center {
  width: min(720px, 100%) !important;
  display: grid !important;
  justify-items: center !important;
  gap: 16px !important;
  text-align: center !important;
}

.chatgpt-section-center h1 {
  margin: 0 !important;
  color: #0d0d0d !important;
  font-size: 30px !important;
  line-height: 36px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}

.chatgpt-section-center p {
  max-width: 560px !important;
  margin: 0 !important;
  color: #5f5f5f !important;
  font-size: 16px !important;
  line-height: 24px !important;
  font-weight: 400 !important;
}

.chatgpt-section-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 10px !important;
  margin-top: 2px !important;
}

.chatgpt-section-list {
  width: min(500px, 100%) !important;
  display: grid !important;
  gap: 2px !important;
  margin-top: 12px !important;
}

.chatgpt-section-list button {
  width: 100% !important;
  min-height: 42px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: center !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #0d0d0d !important;
  padding: 0 14px !important;
  text-align: left !important;
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 400 !important;
}

.chatgpt-section-list button:hover,
.chatgpt-section-list button:focus-visible {
  background: #f2f2f2 !important;
}

body.dark-mode .search-overlay {
  background: rgba(0, 0, 0, 0.82) !important;
}

body.dark-mode .search-dialog {
  background: #000000 !important;
  border-color: #333333 !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.62) !important;
}

body.dark-mode .search-dialog-top {
  border-color: #242424 !important;
}

body.dark-mode .search-field-wrap {
  background: #000000 !important;
  border-color: #333333 !important;
}

body.dark-mode .search-field-wrap .ui-icon {
  color: #b8b8b8 !important;
}

body.dark-mode .search-dialog .search-field-wrap input {
  color: #f5f5f5 !important;
}

body.dark-mode .search-dialog .search-field-wrap input::placeholder {
  color: #9b9b9b !important;
}

body.dark-mode .search-dialog-top button {
  color: #d0d0d0 !important;
}

body.dark-mode .search-dialog-top button:hover,
body.dark-mode .search-dialog-top button:focus-visible,
body.dark-mode .search-results button:hover,
body.dark-mode .search-results button:focus-visible,
body.dark-mode .chatgpt-section-list button:hover,
body.dark-mode .chatgpt-section-list button:focus-visible {
  background: #1f1f1f !important;
  color: #ffffff !important;
}

body.dark-mode .search-section-label,
body.dark-mode .search-meta {
  color: #b8b8b8 !important;
}

body.dark-mode .search-results button > span:first-child,
body.dark-mode .chatgpt-section-center h1,
body.dark-mode .chatgpt-section-list button {
  color: #f5f5f5 !important;
}

body.dark-mode .chatgpt-section-page {
  background: #000000 !important;
}

body.dark-mode .chatgpt-section-center p {
  color: #b8b8b8 !important;
}

body.dark-mode .chat-list .ready-dot {
  display: none !important;
}

@media (max-width: 760px) {
  .search-overlay {
    padding: 56px 12px 0 !important;
    place-items: start center !important;
  }

  .search-dialog {
    width: 100% !important;
    border-radius: 16px !important;
  }

  .search-dialog-top {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px !important;
    padding: 10px !important;
  }

  .search-field-wrap {
    height: 46px !important;
  }

  .search-dialog .search-field-wrap input {
    height: 44px !important;
  }

  .chatgpt-section-page {
    min-height: calc(100dvh - 56px) !important;
    padding: 88px 18px 36px !important;
  }

  .chatgpt-section-center {
    width: 100% !important;
  }

  .chatgpt-section-center h1 {
    font-size: 28px !important;
    line-height: 34px !important;
  }

  .chatgpt-section-center p {
    font-size: 15px !important;
    line-height: 22px !important;
  }
}

/* v58 new-chat ChatGPT reference-match pass. */
body.chat-mode {
  --sidebar-width: 270px;
  background: #000000 !important;
}

@media (min-width: 861px) {
  body.chat-mode .app-header {
    display: none !important;
  }

  body.chat-mode .board-main {
    width: calc(100% - var(--sidebar-width)) !important;
    min-height: 100dvh !important;
    margin-left: var(--sidebar-width) !important;
    background: #000000 !important;
  }

  body.chat-mode .sidebar {
    width: var(--sidebar-width) !important;
    min-width: var(--sidebar-width) !important;
    max-width: var(--sidebar-width) !important;
    gap: 17px !important;
    padding: 28px 11px 0 !important;
    border-right: 1px solid #242424 !important;
    background: #000000 !important;
    flex: 0 0 var(--sidebar-width) !important;
  }

  body.chat-mode .sidebar-head {
    min-height: 34px !important;
    padding: 0 17px !important;
  }

  body.chat-mode .sidebar-logo {
    color: #f5f5f5 !important;
    font-size: 20px !important;
    line-height: 24px !important;
    font-weight: 650 !important;
  }

  body.chat-mode .sidebar-collapse {
    width: 32px !important;
    height: 32px !important;
    color: #f5f5f5 !important;
  }

  body.chat-mode .side-nav {
    width: 100% !important;
    min-width: 0 !important;
    gap: 2px !important;
  }

  body.chat-mode .side-nav a {
    width: 100% !important;
    min-height: 36px !important;
    gap: 10px !important;
    border-radius: 8px !important;
    color: #f5f5f5 !important;
    padding: 0 16px !important;
    font-size: 14px !important;
    line-height: 20px !important;
    font-weight: 500 !important;
  }

  body.chat-mode .side-nav a.active,
  body.chat-mode .side-nav a:hover,
  body.chat-mode .side-nav a:focus-visible {
    background: #1f1f1f !important;
    color: #ffffff !important;
  }

  body.chat-mode .nav-icon,
  body.chat-mode .ui-icon {
    width: 18px !important;
    height: 18px !important;
    stroke-width: 1.85 !important;
  }

  body.chat-mode .chat-list {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
    gap: 2px !important;
    overflow: auto !important;
    padding: 18px 16px 24px !important;
  }

  body.chat-mode .chat-list p {
    margin: 0 0 10px !important;
    color: #f5f5f5 !important;
    font-size: 14px !important;
    line-height: 20px !important;
    font-weight: 650 !important;
  }

  body.chat-mode .chat-list button {
    width: 100% !important;
    min-height: 36px !important;
    height: 36px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: center !important;
    border-radius: 8px !important;
    color: #f5f5f5 !important;
    padding: 0 !important;
    font-size: 14px !important;
    line-height: 20px !important;
    font-weight: 500 !important;
  }

  body.chat-mode .chat-list button:hover,
  body.chat-mode .chat-list button:focus-visible {
    background: #1f1f1f !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  body.chat-mode .chat-list button span:first-child {
    color: inherit !important;
    font-size: 14px !important;
    line-height: 20px !important;
    font-weight: 500 !important;
  }

  body.chat-mode .sidebar-footer {
    display: none !important;
  }

  body.chat-mode .chat-view {
    min-height: 100dvh !important;
    background: #000000 !important;
  }

  body.chat-mode .chat-empty-center {
    width: 100% !important;
    max-width: none !important;
    min-height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 22px !important;
    padding: 0 24px 10vh !important;
    background: #000000 !important;
  }

  body.chat-mode .chat-empty-center h1 {
    margin: 0 !important;
    color: #f5f5f5 !important;
    font-size: 24px !important;
    line-height: 32px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
  }

  body.chat-mode .chat-composer {
    width: min(790px, calc(100% - 48px)) !important;
    min-height: 54px !important;
    display: grid !important;
    grid-template-columns: 40px minmax(0, 1fr) auto 34px 44px !important;
    align-items: center !important;
    gap: 8px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #212121 !important;
    box-shadow: none !important;
    padding: 6px 8px !important;
  }

  body.chat-mode .chat-input {
    height: 42px !important;
    border: 0 !important;
    background: transparent !important;
    color: #f5f5f5 !important;
    padding: 0 2px !important;
    font-size: 16px !important;
    line-height: 22px !important;
  }

  body.chat-mode .chat-input::placeholder {
    color: #b8b8b8 !important;
  }

  body.chat-mode .composer-icon,
  body.chat-mode .composer-model {
    border: 0 !important;
    background: transparent !important;
    color: #d7d7d7 !important;
  }

  body.chat-mode .composer-icon {
    width: 40px !important;
    height: 40px !important;
  }

  body.chat-mode .composer-icon:hover,
  body.chat-mode .composer-icon:focus-visible,
  body.chat-mode .composer-model:hover,
  body.chat-mode .composer-model:focus-visible {
    background: #2f2f2f !important;
    color: #ffffff !important;
  }

  body.chat-mode .composer-model {
    min-width: max-content !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    border-radius: 999px !important;
    padding: 0 8px !important;
    font-size: 14px !important;
    line-height: 20px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
  }

  body.chat-mode .composer-voice {
    width: 42px !important;
    height: 42px !important;
    border-radius: 999px !important;
    background: #f5f5f5 !important;
    color: #000000 !important;
  }

  body.chat-mode .composer-voice:hover,
  body.chat-mode .composer-voice:focus-visible {
    background: #ffffff !important;
    color: #000000 !important;
  }

  body.chat-mode .prompt-row {
    width: min(790px, calc(100% - 48px)) !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-top: -2px !important;
  }

  body.chat-mode .prompt-row button {
    min-height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px !important;
    border: 1px solid #2f2f2f !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #d4d4d4 !important;
    padding: 0 17px !important;
    font-size: 14px !important;
    line-height: 20px !important;
    font-weight: 500 !important;
  }

  body.chat-mode .prompt-row button:hover,
  body.chat-mode .prompt-row button:focus-visible {
    background: #1f1f1f !important;
    color: #ffffff !important;
  }
}

@media (max-width: 860px) {
  body.chat-mode .board-main {
    width: 100% !important;
    min-height: 100dvh !important;
    margin-left: 0 !important;
    background: #000000 !important;
  }

  body.chat-mode .app-header,
  body.chat-mode .sidebar-footer {
    display: none !important;
  }

  body.chat-mode .chat-view {
    min-height: calc(100dvh - 56px) !important;
    background: #000000 !important;
  }

  body.chat-mode .chat-empty-center {
    min-height: calc(100dvh - 56px) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 0 16px 8vh !important;
    background: #000000 !important;
  }

  body.chat-mode .chat-empty-center h1 {
    color: #f5f5f5 !important;
    font-size: 24px !important;
    line-height: 32px !important;
    font-weight: 600 !important;
  }

  body.chat-mode .chat-composer {
    width: min(100%, 790px) !important;
    grid-template-columns: 40px minmax(0, 1fr) 34px 42px !important;
    border-radius: 999px !important;
    background: #212121 !important;
  }

  body.chat-mode .chat-input {
    border: 0 !important;
    background: transparent !important;
    color: #f5f5f5 !important;
    padding: 0 2px !important;
  }

  body.chat-mode .chat-input::placeholder {
    color: #b8b8b8 !important;
  }

  body.chat-mode .composer-model {
    display: none !important;
  }

  body.chat-mode .prompt-row {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
  }
}

/* v59 ChatGPT main-tool composer menu and Library file list. */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.chat-mode .chat-composer {
  overflow: visible !important;
}

body.chat-mode .composer-icon.add[aria-expanded="true"] {
  background: #2f2f2f !important;
  color: #ffffff !important;
}

body.chat-mode .composer-menu {
  left: 0 !important;
  top: calc(100% + 10px) !important;
  width: 100% !important;
  min-width: 0 !important;
  display: grid !important;
  gap: 0 !important;
  padding: 6px !important;
  border: 1px solid #333333 !important;
  border-radius: 14px !important;
  background: #262626 !important;
  box-shadow: none !important;
}

body.chat-mode .composer-menu[hidden] {
  display: none !important;
}

body.chat-mode .composer-menu button {
  min-height: 36px !important;
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #f5f5f5 !important;
  padding: 0 10px !important;
  text-align: left !important;
}

body.chat-mode .composer-menu button:first-child {
  background: #3a3a3a !important;
}

body.chat-mode .composer-menu button:hover,
body.chat-mode .composer-menu button:focus-visible {
  background: #333333 !important;
  color: #ffffff !important;
}

body.chat-mode .composer-menu .ui-icon {
  width: 18px !important;
  height: 18px !important;
  color: #e8e8e8 !important;
}

body.chat-mode .composer-menu button[data-composer-feature="Create image"] .ui-icon {
  color: #66c8ff !important;
}

body.chat-mode .composer-menu button[data-composer-feature="Web search"] .ui-icon {
  color: #18c8ff !important;
}

body.chat-mode .composer-menu button[data-composer-feature="Deep research"] .ui-icon {
  color: #49a8ff !important;
}

body.chat-mode .composer-menu-copy {
  min-width: 0 !important;
  display: flex !important;
  align-items: baseline !important;
  gap: 12px !important;
}

body.chat-mode .composer-menu-copy strong {
  color: #f5f5f5 !important;
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 650 !important;
  white-space: nowrap !important;
}

body.chat-mode .composer-menu-copy small,
body.chat-mode .composer-menu-hint {
  color: #9b9b9b !important;
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 400 !important;
}

body.chat-mode .composer-menu-copy small {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.chat-mode .composer-menu-hint {
  padding: 8px 8px 7px !important;
}

body.chat-mode .utility-view {
  min-height: 100dvh !important;
  background: #000000 !important;
}

body.chat-mode .library-page {
  width: min(790px, calc(100% - 96px)) !important;
  min-height: 100dvh !important;
  margin: 0 auto !important;
  padding: 72px 0 46px !important;
  color: #f5f5f5 !important;
  background: #000000 !important;
}

body.chat-mode .library-toolbar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 24px !important;
  margin-bottom: 48px !important;
}

body.chat-mode .library-toolbar h1 {
  margin: 0 !important;
  color: #f5f5f5 !important;
  font-size: 28px !important;
  line-height: 34px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}

body.chat-mode .library-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

body.chat-mode .library-search {
  width: 240px !important;
  height: 36px !important;
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 9px !important;
  border: 1px solid #3a3a3a !important;
  border-radius: 999px !important;
  background: #1f1f1f !important;
  color: #b8b8b8 !important;
  padding: 0 12px !important;
}

body.chat-mode .library-search .ui-icon {
  width: 16px !important;
  height: 16px !important;
  color: #b8b8b8 !important;
}

body.chat-mode .library-search input {
  width: 100% !important;
  height: 34px !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: #f5f5f5 !important;
  font-size: 14px !important;
  line-height: 20px !important;
}

body.chat-mode .library-search input::placeholder {
  color: #b8b8b8 !important;
}

body.chat-mode .library-new {
  height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #f5f5f5 !important;
  color: #0d0d0d !important;
  padding: 0 17px !important;
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 650 !important;
}

body.chat-mode .library-tabs {
  display: grid !important;
  grid-template-columns: auto auto auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 18px !important;
  margin-bottom: 28px !important;
}

body.chat-mode .library-tabs > button {
  height: 38px !important;
  min-width: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #d7d7d7 !important;
  padding: 0 15px !important;
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 600 !important;
}

body.chat-mode .library-tabs > button.active {
  background: #4a4a4a !important;
  color: #ffffff !important;
}

body.chat-mode .library-view-controls {
  grid-column: 5 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 18px !important;
}

body.chat-mode .library-view-controls::before {
  content: "" !important;
  width: 1px !important;
  height: 22px !important;
  background: #1f1f1f !important;
  order: 2 !important;
}

body.chat-mode .library-view-controls button {
  width: 36px !important;
  height: 36px !important;
  display: inline-grid !important;
  place-items: center !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #b8b8b8 !important;
  padding: 0 !important;
}

body.chat-mode .library-view-controls button:nth-child(2) {
  order: 3 !important;
}

body.chat-mode .library-view-controls button:nth-child(3) {
  order: 4 !important;
}

body.chat-mode .library-view-controls button.active {
  background: #3a3a3a !important;
  color: #f5f5f5 !important;
}

body.chat-mode .library-view-controls .ui-icon {
  width: 18px !important;
  height: 18px !important;
}

body.chat-mode .library-table {
  width: 100% !important;
  display: grid !important;
  color: #d7d7d7 !important;
}

body.chat-mode .library-row {
  width: 100% !important;
  min-height: 64px !important;
  display: grid !important;
  grid-template-columns: minmax(280px, 1fr) 160px 130px !important;
  align-items: center !important;
  gap: 32px !important;
  border: 0 !important;
  border-bottom: 1px solid #151515 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #d7d7d7 !important;
  padding: 0 !important;
  text-align: left !important;
  font-size: 14px !important;
  line-height: 20px !important;
}

body.chat-mode .library-row:not(.library-head):hover,
body.chat-mode .library-row:not(.library-head):focus-visible {
  background: #0f0f0f !important;
}

body.chat-mode .library-head {
  min-height: 30px !important;
  color: #b8b8b8 !important;
  border-bottom: 0 !important;
  font-weight: 500 !important;
}

body.chat-mode .library-name {
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 12px !important;
  color: #f5f5f5 !important;
  font-weight: 600 !important;
}

body.chat-mode .library-name > span:last-child {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body.chat-mode .library-file-icon {
  width: 34px !important;
  height: 34px !important;
  display: inline-grid !important;
  place-items: center !important;
  border: 1px solid #333333 !important;
  border-radius: 8px !important;
  background: #1e1e1e !important;
  color: #e8e8e8 !important;
}

body.chat-mode .library-file-icon .ui-icon {
  width: 19px !important;
  height: 19px !important;
}

body.chat-mode .library-file-icon.pdf {
  color: #ff453a !important;
}

body.chat-mode .library-file-icon.image-file,
body.chat-mode .library-file-icon.screenshot-file {
  background: #202020 !important;
  color: #d7d7d7 !important;
}

@media (max-width: 860px) {
  body.chat-mode .composer-menu {
    width: 100% !important;
  }

  body.chat-mode .composer-menu-copy {
    gap: 8px !important;
  }

  body.chat-mode .composer-menu-copy small {
    display: none !important;
  }

  body.chat-mode .library-page {
    width: 100% !important;
    min-height: calc(100dvh - 56px) !important;
    padding: 34px 18px 36px !important;
  }

  body.chat-mode .library-toolbar {
    grid-template-columns: 1fr !important;
    align-items: start !important;
    gap: 18px !important;
    margin-bottom: 28px !important;
  }

  body.chat-mode .library-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  body.chat-mode .library-search {
    width: 100% !important;
  }

  body.chat-mode .library-tabs {
    grid-template-columns: auto auto auto minmax(0, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
  }

  body.chat-mode .library-tabs > button {
    padding: 0 12px !important;
  }

  body.chat-mode .library-view-controls {
    display: none !important;
  }

  body.chat-mode .library-row {
    min-height: 62px !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 12px !important;
  }

  body.chat-mode .library-row > span:nth-child(2) {
    display: none !important;
  }

  body.chat-mode .library-row > span:nth-child(3) {
    justify-self: end !important;
    color: #b8b8b8 !important;
    font-size: 13px !important;
  }

  body.chat-mode .library-head {
    min-height: 28px !important;
  }

  body.chat-mode .library-head > span:nth-child(3) {
    display: none !important;
  }
}

/* v60 mobile drawer should ignore saved desktop collapsed state. */
@media (max-width: 860px) {
  body.chat-mode[data-menu-open="true"] .sidebar,
  body.chat-mode[data-menu-open="true"][data-sidebar-collapsed="true"] .sidebar {
    width: min(324px, calc(100vw - 32px)) !important;
    min-width: min(324px, calc(100vw - 32px)) !important;
    max-width: min(324px, calc(100vw - 32px)) !important;
    padding: 14px 12px 0 !important;
    transform: translateX(0) !important;
  }

  body.chat-mode[data-menu-open="true"][data-sidebar-collapsed="true"] .sidebar-logo,
  body.chat-mode[data-menu-open="true"][data-sidebar-collapsed="true"] .side-nav span {
    display: inline !important;
  }

  body.chat-mode[data-menu-open="true"][data-sidebar-collapsed="true"] .chat-list {
    display: grid !important;
  }

  body.chat-mode[data-menu-open="true"][data-sidebar-collapsed="true"] .side-nav a {
    width: 100% !important;
    justify-content: flex-start !important;
    padding: 0 10px !important;
  }
}

/* v61 Atlas composer mode router. */
body.chat-mode .composer-model[aria-expanded="true"] {
  background: #2f2f2f !important;
  color: #ffffff !important;
}

body.chat-mode .mode-menu {
  position: absolute !important;
  right: 56px !important;
  top: calc(100% + 10px) !important;
  z-index: 12 !important;
  width: 300px !important;
  min-width: 0 !important;
  display: grid !important;
  gap: 2px !important;
  padding: 6px !important;
  border: 1px solid #333333 !important;
  border-radius: 14px !important;
  background: #262626 !important;
  box-shadow: none !important;
}

body.chat-mode .mode-menu[hidden] {
  display: none !important;
}

body.chat-mode .mode-menu button {
  min-height: 48px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: center !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: transparent !important;
  color: #f5f5f5 !important;
  padding: 7px 10px !important;
  text-align: left !important;
}

body.chat-mode .mode-menu button:hover,
body.chat-mode .mode-menu button:focus-visible {
  background: #333333 !important;
  color: #ffffff !important;
}

body.chat-mode .mode-menu button.selected {
  background: #3a3a3a !important;
  box-shadow: inset 0 0 0 1px #4b4b4b !important;
}

body.chat-mode .mode-menu button span {
  min-width: 0 !important;
  display: grid !important;
  gap: 1px !important;
}

body.chat-mode .mode-menu strong {
  color: #f5f5f5 !important;
  font-size: 14px !important;
  line-height: 19px !important;
  font-weight: 600 !important;
}

body.chat-mode .mode-menu small {
  color: #a7a7a7 !important;
  font-size: 12px !important;
  line-height: 16px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

@media (max-width: 860px) {
  body.chat-mode .mode-menu {
    right: 0 !important;
    width: min(300px, 100%) !important;
  }
}

/* v62 real Atlas backend surfaces: chat threads, memory receipts, auth status. */
body.chat-mode #newChatView.has-messages {
  min-height: calc(100dvh - 64px) !important;
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  background: #000000 !important;
}

body.chat-mode #newChatView.has-messages .chat-thread {
  width: min(790px, calc(100% - 64px)) !important;
  max-height: calc(100dvh - 160px) !important;
  overflow: auto !important;
  margin: 0 auto !important;
  padding: 60px 0 28px !important;
  display: grid !important;
  align-content: start !important;
  gap: 22px !important;
}

body.chat-mode #newChatView.has-messages .chat-empty-center {
  min-height: auto !important;
  height: auto !important;
  padding: 0 0 34px !important;
  justify-content: end !important;
}

body.chat-mode #newChatView.has-messages .chat-empty-center h1,
body.chat-mode #newChatView.has-messages .prompt-row {
  display: none !important;
}

body.chat-mode .chat-message {
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) !important;
  gap: 14px !important;
  color: #f5f5f5 !important;
}

body.chat-mode .chat-message-avatar {
  width: 30px !important;
  height: 30px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #0d0d0d !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

body.chat-mode .chat-message.assistant .chat-message-avatar {
  background: #1f1f1f !important;
  color: #f5f5f5 !important;
  box-shadow: inset 0 0 0 1px #333333 !important;
}

body.chat-mode .chat-message-body {
  min-width: 0 !important;
  display: grid !important;
  gap: 6px !important;
}

body.chat-mode .chat-message-role {
  color: #b8b8b8 !important;
  font-size: 12px !important;
  line-height: 16px !important;
  font-weight: 600 !important;
}

body.chat-mode .chat-message-content {
  color: #f5f5f5 !important;
  font-size: 15px !important;
  line-height: 24px !important;
  font-weight: 450 !important;
  overflow-wrap: anywhere !important;
}

body.chat-mode .memory-used {
  width: fit-content !important;
  max-width: 100% !important;
  margin-top: 8px !important;
  border: 1px solid #2f2f2f !important;
  border-radius: 12px !important;
  background: #0d0d0d !important;
  color: #d7d7d7 !important;
  padding: 8px 10px !important;
}

body.chat-mode .memory-used summary {
  cursor: pointer !important;
  color: #d7d7d7 !important;
  font-size: 12px !important;
  line-height: 16px !important;
  font-weight: 650 !important;
}

body.chat-mode .memory-used div {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin-top: 8px !important;
}

body.chat-mode .memory-used span {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 24px !important;
  border-radius: 999px !important;
  background: #1f1f1f !important;
  color: #f5f5f5 !important;
  padding: 0 9px !important;
  font-size: 12px !important;
  line-height: 16px !important;
  font-weight: 600 !important;
}

.auth-status {
  min-height: 20px !important;
  margin: 10px 0 0 !important;
  color: #5f6f94 !important;
  font-size: 13px !important;
  line-height: 18px !important;
  text-align: center !important;
}

.auth-status[data-error="true"] {
  color: #b42318 !important;
}

.auth-demo-note {
  margin: 14px 0 0 !important;
  text-align: center !important;
  color: #667085 !important;
}

.auth-demo-note a {
  min-height: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  color: #1645d9 !important;
  font-weight: 700 !important;
}

body.auth-page {
  min-height: 100vh !important;
  grid-template-rows: 78px auto auto !important;
  align-content: start !important;
  background: #ffffff !important;
  color: #0d0d0d !important;
}

body.auth-page .auth-top {
  width: 100% !important;
  max-width: none !important;
  min-height: 78px !important;
  margin: 0 !important;
  padding: 0 48px !important;
}

body.auth-page .auth-wordmark {
  color: #0d0d0d !important;
  font-size: 24px !important;
  line-height: 30px !important;
  font-weight: 650 !important;
  text-decoration: none !important;
}

body.auth-page .auth-main {
  place-items: start center !important;
  padding: 94px 20px 32px !important;
}

body.auth-page .auth-cardless {
  width: min(340px, 100%) !important;
  padding: 0 !important;
  background: transparent !important;
}

body.auth-page .auth-cardless h1 {
  margin: 0 !important;
  color: #0d0d0d !important;
  font-size: 32px !important;
  line-height: 38px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
}

body.auth-page .auth-cardless > p {
  max-width: 320px !important;
  margin: 16px 0 38px !important;
  color: #5f5f5f !important;
  font-size: 16px !important;
  line-height: 24px !important;
  font-weight: 400 !important;
  text-align: center !important;
}

body.auth-page .auth-providers,
body.auth-page .auth-form {
  width: 100% !important;
  display: grid !important;
  gap: 13px !important;
}

body.auth-page .auth-providers button {
  height: 56px !important;
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr) 28px !important;
  align-items: center !important;
  border: 1px solid #d9d9d9 !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #1f1f1f !important;
  padding: 0 24px !important;
  font-size: 16px !important;
  line-height: 22px !important;
  font-weight: 400 !important;
  cursor: pointer !important;
}

body.auth-page .auth-providers button:hover {
  background: #f7f7f7 !important;
}

body.auth-page .auth-providers button span {
  justify-self: center !important;
}

body.auth-page .provider-icon {
  width: 22px !important;
  height: 22px !important;
  justify-self: start !important;
}

body.auth-page .auth-divider {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  gap: 18px !important;
  margin: 30px 0 30px !important;
  color: #6b6b6b !important;
  font-size: 13px !important;
  line-height: 18px !important;
  font-weight: 700 !important;
}

body.auth-page .auth-divider::before,
body.auth-page .auth-divider::after {
  content: "" !important;
  height: 1px !important;
  background: #ececec !important;
}

body.auth-page .auth-form label {
  position: relative !important;
  display: grid !important;
}

body.auth-page .auth-form label[hidden] {
  display: none !important;
}

body.auth-page .auth-form label span {
  position: absolute !important;
  left: 24px !important;
  top: -8px !important;
  z-index: 1 !important;
  padding: 0 5px !important;
  background: #ffffff !important;
  color: #476ea8 !important;
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 400 !important;
}

body.auth-page .auth-form input {
  height: 58px !important;
  border: 1.5px solid #8aa1d5 !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #0d0d0d !important;
  padding: 0 24px !important;
  outline: 0 !important;
  font-size: 16px !important;
  line-height: 22px !important;
  font-weight: 400 !important;
}

body.auth-page .auth-form input:focus {
  border-color: #3f6fc9 !important;
  box-shadow: 0 0 0 1px #3f6fc9 !important;
}

body.auth-page .auth-form button {
  height: 58px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #0d0d0d !important;
  color: #ffffff !important;
  font-size: 16px !important;
  line-height: 22px !important;
  font-weight: 400 !important;
  cursor: pointer !important;
}

body.auth-page .auth-phone-form {
  margin-top: 13px !important;
}

body.auth-page .auth-phone-form[hidden] {
  display: none !important;
}

body.auth-page .auth-status {
  min-height: 20px !important;
  margin: 10px 0 0 !important;
  color: #5f6f94 !important;
  font-size: 13px !important;
  line-height: 20px !important;
  text-align: center !important;
}

body.auth-page .auth-status[data-error="true"] {
  color: #b42318 !important;
}

body.auth-page .auth-footer {
  min-height: 98px !important;
  display: flex !important;
  align-items: start !important;
  justify-content: center !important;
  gap: 14px !important;
  color: #595959 !important;
  font-size: 14px !important;
  line-height: 20px !important;
}

body.auth-page .auth-footer a {
  min-height: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  color: #595959 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

@media (max-width: 520px) {
  body.auth-page {
    grid-template-rows: 64px auto auto !important;
  }

  body.auth-page .auth-top {
    min-height: 64px !important;
    padding: 0 24px !important;
  }

  body.auth-page .auth-wordmark {
    font-size: 23px !important;
  }

  body.auth-page .auth-main {
    padding: 58px 18px 28px !important;
  }

  body.auth-page .auth-cardless h1 {
    font-size: 30px !important;
    line-height: 36px !important;
  }

  body.auth-page .auth-cardless > p {
    margin-bottom: 28px !important;
    font-size: 15px !important;
    line-height: 23px !important;
  }

  body.auth-page .auth-providers button,
  body.auth-page .auth-form input,
  body.auth-page .auth-form button {
    height: 54px !important;
  }

  body.auth-page .auth-providers button {
    padding: 0 22px !important;
    font-size: 15px !important;
  }
}

@media (max-width: 860px) {
  body.chat-mode #newChatView.has-messages {
    min-height: calc(100dvh - 56px) !important;
  }

  body.chat-mode #newChatView.has-messages .chat-thread {
    width: calc(100% - 32px) !important;
    max-height: calc(100dvh - 150px) !important;
    padding: 28px 0 22px !important;
  }

  body.chat-mode .chat-message {
    grid-template-columns: 28px minmax(0, 1fr) !important;
    gap: 11px !important;
  }

  body.chat-mode .chat-message-avatar {
    width: 28px !important;
    height: 28px !important;
  }
}

.inline-row-input {
  width: 100%;
  min-width: 7rem;
  border: 1px solid var(--border-subtle, rgba(15, 23, 42, 0.12));
  border-radius: 10px;
  background: var(--surface, #fff);
  color: inherit;
  font: inherit;
  padding: 0.48rem 0.58rem;
}

.inline-row-input.number {
  min-width: 4.5rem;
  text-align: right;
}

.inline-row-input:focus {
  outline: 2px solid rgba(59, 130, 246, 0.35);
  outline-offset: 1px;
}

.normalized-rows-table td {
  vertical-align: middle;
}

.dossier-hero {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.dossier-hero h1 {
  margin: 0.2rem 0 0.45rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.04em;
}

.dossier-hero p {
  max-width: 64ch;
  color: var(--muted-text, #64748b);
}

.dossier-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.stat-group-list,
.receipt-list,
.note-stack {
  display: grid;
  gap: 0.75rem;
}

.stat-group-list > div,
.receipt-list > div {
  display: grid;
  gap: 0.2rem;
  border: 1px solid var(--border-subtle, rgba(148, 163, 184, 0.25));
  border-radius: 14px;
  padding: 0.85rem;
  background: var(--surface-subtle, rgba(148, 163, 184, 0.08));
}

.stat-group-list span,
.receipt-list span,
.stat-group-list small {
  color: var(--muted-text, #64748b);
}

@media (max-width: 760px) {
  .dossier-hero {
    flex-direction: column;
  }
  .dossier-hero-actions {
    justify-content: flex-start;
  }
}

#radarView.research-view {
  padding: 0;
  background: #fff;
}

/* Prop Radar exact reference pass: Mobbin Resend Logs detail structure. */
.radar-resend {
width: 100%;
  max-width: none;
  margin: 0;
  padding: 29px 58px 44px 34px;
  gap: 0;
}

.radar-resend-head {
display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 32px;
}

.radar-resend-head h1 {
margin: 0;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.radar-resend-head p {
display: none;
}

.radar-resend-toolbar button,
.radar-resend-table button,
.radar-mini-table button {
  height: 28px;
  border: 1px solid #d9dee5;
  border-radius: 8px;
  background: #f7f8f9;
  color: #111827;
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.radar-resend-toolbar {
display: grid;
  grid-template-columns: minmax(300px, 1.55fr) minmax(150px, 0.8fr) minmax(160px, 0.8fr) 74px auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}

.radar-resend-toolbar label {
  display: block;
  min-width: 0;
}

.radar-resend-toolbar input {
width: 100%;
  height: 31px;
  border: 1px solid #d9dee5;
  border-radius: 9px;
  background: #eeeeef;
  color: #111827;
  padding: 0 11px;
  font: inherit;
  font-size: 12px;
  outline: none;
}

.radar-resend-toolbar input::placeholder {
  color: #7b8491;
}

.radar-small-field input {
  text-align: center;
}

.radar-resend-table-wrap {
  border-radius: 0;
  overflow-x: auto;
}

.radar-resend-table,
.radar-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.radar-resend-table thead th {
height: 29px;
  background: #e7e7e8;
  color: #3f4651;
  text-align: left;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 650;
  border-bottom: 1px solid #dcdfe4;
}

.radar-resend-table thead th:first-child {
  border-top-left-radius: 8px;
}

.radar-resend-table thead th:last-child {
  border-top-right-radius: 8px;
}

.radar-resend-table tbody td {
height: 55px;
  padding: 10px 12px;
  border-bottom: 1px solid #eceff3;
  color: #111827;
  vertical-align: middle;
}

.radar-resend-table td span,
.radar-resend-table td small {
  display: block;
  margin-top: 2px;
  color: #6b7280;
  font-size: 11px;
}

.radar-resend-table td strong {
  font-weight: 600;
}

.radar-resend-event {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 7px;
  background: #edfdf4;
  color: #168246;
  font-size: 11px;
  font-weight: 650;
}

.radar-resend-event.bumped-down {
  background: #fff0ed;
  color: #b42318;
}

.radar-resend-event.observed {
  background: #eef2f6;
  color: #4b5563;
}

.radar-resend-move {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.radar-resend-move.up {
  color: #168246;
}

.radar-resend-move.down {
  color: #b42318;
}

.radar-resend-move.flat,
.radar-resend-muted {
  color: #6b7280;
}

.radar-resend-footer {
display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  color: #4b5563;
  font-size: 12px;
}

@media (max-width: 960px) {
  .radar-resend {
    padding: 42px 18px;
  }

  .radar-resend-head {
    flex-direction: column;
  }

  .radar-resend-actions {
    justify-content: flex-start;
  }

  .radar-resend-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .radar-resend-lower {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .radar-resend-toolbar {
    grid-template-columns: 1fr;
  }

  .radar-resend-table thead {
    display: none;
  }

  .radar-resend-table tr,
  .radar-resend-table td {
    display: block;
    height: auto;
  }

  .radar-resend-table tr {
    padding: 10px 0;
    border-bottom: 1px solid #eceff3;
  }

  .radar-resend-table td {
    border: 0;
    padding: 5px 0;
  }

  .radar-resend-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: #6b7280;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
}

/* Player Dossier Mobbin reference pass: neutral Resend-style tables, no cards, no pills. */
.player-app .soccer-player-main {
  background: #fff;
}

.dossier-resend-back {
  display: none;
}

.player-dossier-page.dossier-resend {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #111827;
}

.dossier-resend-shell {
  width: 100%;
  max-width: none;
  padding: 29px 58px 60px 34px;
}

.dossier-resend-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.dossier-resend-head h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.dossier-resend-links {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 2px;
}

.dossier-resend-links a,
.dossier-resend-section-head a {
  color: #111827;
  font-size: 12px;
  line-height: 1.2;
  text-decoration: none;
  font-weight: 500;
}

.dossier-resend-links a:hover,
.dossier-resend-section-head a:hover {
  text-decoration: underline;
}

.dossier-resend-toolbar {
  display: grid;
  grid-template-columns: minmax(300px, 1.55fr) minmax(220px, 1fr) minmax(110px, 0.45fr) minmax(90px, 0.35fr);
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}

.dossier-resend-toolbar label {
  display: block;
  min-width: 0;
}

.dossier-resend-toolbar label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.dossier-resend-toolbar input {
  width: 100%;
  height: 31px;
  border: 1px solid #d9dee5;
  border-radius: 9px;
  background: #eeeeef;
  color: #111827;
  padding: 0 11px;
  font: inherit;
  font-size: 12px;
  outline: none;
}

.dossier-resend-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.dossier-resend-table thead th {
  height: 29px;
  background: #e7e7e8;
  color: #3f4651;
  text-align: left;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 650;
  border-bottom: 1px solid #dcdfe4;
}

.dossier-resend-table thead th:first-child {
  border-top-left-radius: 8px;
}

.dossier-resend-table thead th:last-child {
  border-top-right-radius: 8px;
}

.dossier-resend-table tbody td {
  height: 55px;
  padding: 10px 12px;
  border-bottom: 1px solid #eceff3;
  color: #111827;
  vertical-align: middle;
}

.dossier-resend-table td small {
  display: block;
  margin-top: 2px;
  color: #6b7280;
  font-size: 11px;
}

.dossier-resend-footer {
  padding-top: 14px;
  color: #4b5563;
  font-size: 12px;
}

.dossier-resend-section {
  margin-top: 42px;
}

.dossier-resend-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.dossier-resend-section-head h2 {
  margin: 0;
  color: #111827;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 650;
}

/* Kill the AI dashboard chip language on the Resend-inspired Radar page. */
.radar-resend-event,
.radar-resend-event.bumped-down,
.radar-resend-event.observed {
  display: inline;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #111827;
  font-size: 12px;
  font-weight: 500;
}

.radar-resend-move,
.radar-resend-move.up,
.radar-resend-move.down,
.radar-resend-move.flat {
  color: #111827;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

@media (max-width: 960px) {
  .dossier-resend-shell {
    padding: 42px 18px;
  }

  .dossier-resend-head {
    flex-direction: column;
  }

  .dossier-resend-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .dossier-resend-toolbar {
    grid-template-columns: 1fr;
  }

  .dossier-resend-table thead {
    display: none;
  }

  .dossier-resend-table tr,
  .dossier-resend-table td {
    display: block;
    height: auto;
  }

  .dossier-resend-table tr {
    padding: 10px 0;
    border-bottom: 1px solid #eceff3;
  }

  .dossier-resend-table td {
    border-bottom: 0;
  }
}

/* v64 ChatGPT-first repair: saved context is internal, Player Dossier is an evidence view. */
body.chat-mode .chat-composer {
  grid-template-columns: 40px minmax(0, 1fr) auto 34px 44px !important;
}

body.chat-mode .mode-menu {
  width: 278px !important;
}

body.chat-mode.player-app .soccer-player-main {
  background: #000000 !important;
}

body.chat-mode.player-app .sp-back-link,
body.chat-mode.player-app .sp-player-title-band {
  display: none !important;
}

.player-dossier-page.dossier-chat {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #000000 !important;
  color: #f5f5f5 !important;
}

.dossier-chat-shell {
  width: min(930px, calc(100% - 96px)) !important;
  margin: 0 auto !important;
  padding: 62px 0 72px !important;
}

.dossier-chat-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 28px !important;
  align-items: start !important;
  margin-bottom: 28px !important;
}

.dossier-chat-back {
  display: inline-flex !important;
  margin-bottom: 14px !important;
  color: #b8b8b8 !important;
  font-size: 13px !important;
  line-height: 18px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.dossier-chat-back:hover,
.dossier-chat-back:focus-visible,
.dossier-chat-actions a:hover,
.dossier-chat-actions a:focus-visible,
.dossier-section-head a:hover,
.dossier-section-head a:focus-visible {
  color: #ffffff !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

.dossier-chat-head h1 {
  margin: 0 !important;
  color: #f5f5f5 !important;
  font-size: 32px !important;
  line-height: 38px !important;
  letter-spacing: 0 !important;
  font-weight: 650 !important;
}

.dossier-chat-head p {
  max-width: 65ch !important;
  margin: 8px 0 0 !important;
  color: #b8b8b8 !important;
  font-size: 14px !important;
  line-height: 22px !important;
  font-weight: 450 !important;
}

.dossier-chat-actions {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  padding-top: 36px !important;
}

.dossier-chat-actions a,
.dossier-section-head a {
  color: #d7d7d7 !important;
  font-size: 13px !important;
  line-height: 18px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.dossier-chat-summary {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0 !important;
  margin-bottom: 34px !important;
  border-top: 1px solid #1f1f1f !important;
  border-bottom: 1px solid #1f1f1f !important;
}

.dossier-chat-summary div {
  min-width: 0 !important;
  padding: 14px 18px !important;
  border-right: 1px solid #1f1f1f !important;
}

.dossier-chat-summary div:last-child {
  border-right: 0 !important;
}

.dossier-chat-summary span,
.dossier-section-head span,
.dossier-row-list span,
.dossier-receipt-list span,
.dossier-mini-list span,
.dossier-row-list dt {
  color: #9b9b9b !important;
  font-size: 12px !important;
  line-height: 17px !important;
  font-weight: 550 !important;
}

.dossier-chat-summary strong {
  display: block !important;
  min-width: 0 !important;
  margin-top: 5px !important;
  overflow: hidden !important;
  color: #f5f5f5 !important;
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 650 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.dossier-chat-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 260px !important;
  gap: 42px !important;
  align-items: start !important;
}

.dossier-chat-main,
.dossier-context-rail,
.dossier-mini-list {
  display: grid !important;
  gap: 28px !important;
}

.dossier-message {
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) !important;
  gap: 14px !important;
}

.dossier-avatar {
  width: 30px !important;
  height: 30px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 999px !important;
  background: #1f1f1f !important;
  color: #f5f5f5 !important;
  box-shadow: inset 0 0 0 1px #333333 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.dossier-message h2,
.dossier-chat-section h2,
.dossier-context-rail h2 {
  margin: 0 !important;
  color: #f5f5f5 !important;
  font-size: 15px !important;
  line-height: 21px !important;
  font-weight: 650 !important;
  letter-spacing: 0 !important;
}

.dossier-message p {
  max-width: 70ch !important;
  margin: 6px 0 0 !important;
  color: #e8e8e8 !important;
  font-size: 15px !important;
  line-height: 24px !important;
}

.dossier-memory-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
  margin-top: 12px !important;
}

.dossier-memory-tags span {
  min-height: 26px !important;
  display: inline-flex !important;
  align-items: center !important;
  border: 1px solid #2f2f2f !important;
  border-radius: 999px !important;
  background: #0d0d0d !important;
  color: #d7d7d7 !important;
  padding: 0 10px !important;
  font-size: 12px !important;
  line-height: 16px !important;
  font-weight: 600 !important;
}

.dossier-chat-section,
.dossier-context-rail section {
  min-width: 0 !important;
  border-top: 1px solid #1f1f1f !important;
  padding-top: 18px !important;
}

.dossier-section-head {
  display: flex !important;
  justify-content: space-between !important;
  gap: 16px !important;
  align-items: center !important;
  margin-bottom: 14px !important;
}

.dossier-chart-wrap {
  min-width: 0 !important;
  border: 1px solid #1f1f1f !important;
  border-radius: 8px !important;
  background: #050505 !important;
  overflow: hidden !important;
}

.dossier-chart-wrap .line-memory-chart .chart-axis {
  stroke: #333333 !important;
}

.dossier-chart-wrap .line-memory-chart .line-path {
  stroke: #f5f5f5 !important;
}

.dossier-chart-wrap .line-memory-chart .line-point {
  fill: #000000 !important;
  stroke: #f5f5f5 !important;
}

.dossier-chart-wrap .line-memory-chart text {
  fill: #9b9b9b !important;
}

.dossier-row-list,
.dossier-receipt-list {
  display: grid !important;
  border-top: 1px solid #151515 !important;
}

.dossier-row-list article,
.dossier-receipt-list article,
.dossier-mini-list article {
  min-width: 0 !important;
  border-bottom: 1px solid #151515 !important;
}

.dossier-row-list article {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr) !important;
  gap: 20px !important;
  padding: 14px 0 !important;
}

.dossier-row-list strong,
.dossier-receipt-list strong,
.dossier-mini-list strong {
  display: block !important;
  color: #f5f5f5 !important;
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 650 !important;
}

.dossier-row-list dl {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin: 0 !important;
}

.dossier-row-list dd {
  margin: 3px 0 0 !important;
  color: #f5f5f5 !important;
  font-size: 13px !important;
  line-height: 18px !important;
  font-variant-numeric: tabular-nums !important;
  font-weight: 650 !important;
}

.dossier-receipt-list article {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: center !important;
  padding: 13px 0 !important;
}

.dossier-receipt-list .library-file-icon {
  border-color: #333333 !important;
  background: #1e1e1e !important;
  color: #e8e8e8 !important;
}

.dossier-context-rail {
  position: sticky !important;
  top: 42px !important;
}

.dossier-context-rail section {
  padding-top: 16px !important;
}

.dossier-context-rail ul {
  display: grid !important;
  gap: 8px !important;
  margin: 10px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.dossier-context-rail li,
.dossier-mini-list article,
.dossier-mini-list .empty-copy {
  color: #d7d7d7 !important;
  font-size: 13px !important;
  line-height: 19px !important;
}

.dossier-mini-list {
  gap: 0 !important;
  margin-top: 10px !important;
}

.dossier-mini-list article {
  padding: 10px 0 !important;
}

.dossier-mini-list .empty-copy {
  margin: 10px 0 0 !important;
}

@media (max-width: 1040px) {
  .dossier-chat-shell {
    width: min(100% - 48px, 930px) !important;
  }

  .dossier-chat-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .dossier-context-rail {
    position: static !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }
}

@media (max-width: 860px) {
  body.chat-mode .chat-composer {
    grid-template-columns: 40px minmax(0, 1fr) 34px 42px !important;
  }

  .dossier-chat-shell {
    width: calc(100% - 32px) !important;
    padding: 36px 0 48px !important;
  }

  .dossier-chat-head,
  .dossier-chat-summary,
  .dossier-context-rail {
    grid-template-columns: 1fr !important;
  }

  .dossier-chat-actions {
    padding-top: 0 !important;
    flex-wrap: wrap !important;
  }

  .dossier-chat-summary div {
    border-right: 0 !important;
    border-bottom: 1px solid #1f1f1f !important;
  }

  .dossier-chat-summary div:last-child {
    border-bottom: 0 !important;
  }

  .dossier-row-list article,
  .dossier-row-list dl {
    grid-template-columns: 1fr !important;
  }
}

/* v65 operator workflow surfaces: destinations, approvals, request inbox, recaps. */
.radar-ops-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.radar-ops-panel {
  border-radius: 8px;
}

.destination-form,
.request-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px minmax(220px, 1.4fr) auto;
  gap: 10px;
  align-items: end;
}

.request-form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 96px auto;
}

.destination-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.destination-form input,
.destination-form select,
.request-form input,
.post-queue-meta select {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 10px;
  font: inherit;
}

.destination-form button,
.request-form button,
.destination-list button,
.post-queue-meta button,
.request-list button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms ease-out, background 140ms ease-out;
}

.destination-form button:active,
.request-form button:active,
.destination-list button:active,
.post-queue-meta button:active,
.request-list button:active {
  transform: scale(0.98);
}

.destination-list,
.request-list,
.post-queue-list,
.recap-list,
.readiness-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.destination-list article,
.request-list article,
.post-queue-list article,
.recap-list article,
.readiness-list article {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.destination-list strong,
.request-list strong,
.recap-list strong,
.readiness-list strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.destination-list span,
.request-list span,
.recap-list span,
.readiness-list span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.readiness-list article.ready strong {
  color: var(--success);
}

.readiness-list article.blocked strong {
  color: var(--warning);
}

.post-queue-list article,
.recap-list article {
  align-items: stretch;
  flex-direction: column;
}

.post-queue-copy {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.post-queue-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.post-queue-meta span {
  color: var(--muted);
  font-size: 12px;
  margin-right: auto;
}

.post-queue-meta select {
  max-width: 220px;
}

.recap-list pre {
  white-space: pre-wrap;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 12px;
  color: var(--ink);
  font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

@media (max-width: 900px) {
  .radar-ops-grid,
  .destination-form,
  .request-form {
    grid-template-columns: 1fr;
  }

  .post-queue-meta {
    display: grid;
    grid-template-columns: 1fr;
  }

  .post-queue-meta select {
    max-width: none;
  }
}

/* v66 Prop Radar clarity pass: task-first workbench, theme-consistent controls. */
#radarView.research-view {
  background: var(--radar-bg, #f6f7f9);
}

.radar-page {
  --radar-bg: #f6f7f9;
  --radar-surface: #ffffff;
  --radar-surface-soft: #f2f5f8;
  --radar-surface-raised: #fbfcfd;
  --radar-line: #d8e0ea;
  --radar-line-soft: #e7edf3;
  --radar-ink: #111827;
  --radar-muted: #596779;
  --radar-muted-2: #7a8797;
  --radar-primary: #111827;
  --radar-primary-text: #ffffff;
  --radar-success: #147a45;
  --radar-success-soft: #e6f5ec;
  --radar-warning: #a95b00;
  --radar-warning-soft: #fff3df;
  --radar-danger: #b42318;
  --radar-danger-soft: #fde9e6;
  width: min(1320px, calc(100% - 48px));
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 0 48px;
  color: var(--radar-ink);
}

body.dark-mode #radarView.research-view {
  background: #0d0d0d;
}

body.dark-mode .radar-page {
  --radar-bg: #0d0d0d;
  --radar-surface: #151515;
  --radar-surface-soft: #202020;
  --radar-surface-raised: #191919;
  --radar-line: #303030;
  --radar-line-soft: #262626;
  --radar-ink: #f4f4f4;
  --radar-muted: #b7b7b7;
  --radar-muted-2: #8f8f8f;
  --radar-primary: #f4f4f4;
  --radar-primary-text: #0d0d0d;
  --radar-success: #58c284;
  --radar-success-soft: #12351f;
  --radar-warning: #f2a94d;
  --radar-warning-soft: #3b250d;
  --radar-danger: #ff8b80;
  --radar-danger-soft: #3a1715;
}

.radar-page * {
  box-sizing: border-box;
}

.radar-page-head,
.radar-panel-head,
.radar-action-row,
.radar-post-actions,
.radar-recap-head,
.radar-destination-list article,
.radar-request-list article,
.radar-setup-list article {
  display: flex;
  align-items: center;
}

.radar-page-head {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.radar-page-head h1 {
  margin: 0;
  color: var(--radar-ink);
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: 0;
}

.radar-page-head p,
.radar-panel-head p {
  margin: 5px 0 0;
  color: var(--radar-muted);
  font-size: 13px;
  line-height: 1.4;
}

.radar-action-row {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.radar-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--radar-line);
  border-radius: 8px;
  background: var(--radar-surface);
  color: var(--radar-ink);
  padding: 0 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 120ms var(--ease-out), background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.radar-button:hover,
.radar-button:focus-visible {
  background: var(--radar-surface-soft);
  border-color: var(--radar-muted-2);
}

.radar-button:active {
  transform: scale(0.98);
}

.radar-button.primary {
  border-color: var(--radar-primary);
  background: var(--radar-primary);
  color: var(--radar-primary-text);
}

.radar-button.primary:hover,
.radar-button.primary:focus-visible {
  border-color: var(--radar-primary);
  background: var(--radar-primary);
}

.radar-button.small {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.radar-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.radar-summary-grid article {
  min-width: 0;
  border: 1px solid var(--radar-line);
  border-radius: 10px;
  background: var(--radar-surface);
  padding: 12px 14px;
}

.radar-summary-grid span {
  display: block;
  color: var(--radar-muted);
  font-size: 12px;
  font-weight: 650;
}

.radar-summary-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--radar-ink);
  font-size: 24px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.radar-rule-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1.45fr) minmax(180px, 0.95fr) minmax(180px, 0.95fr) 92px auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 16px;
  border: 1px solid var(--radar-line);
  border-radius: 10px;
  background: var(--radar-surface);
  padding: 12px;
}

.radar-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.radar-field span {
  color: var(--radar-muted);
  font-size: 12px;
  font-weight: 650;
}

.radar-field input,
.radar-field select,
.radar-post-actions select {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--radar-line);
  border-radius: 8px;
  background: var(--radar-surface-raised);
  color: var(--radar-ink);
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
  outline: none;
}

.radar-field input::placeholder {
  color: var(--radar-muted-2);
  opacity: 1;
}

.radar-field input:focus,
.radar-field select:focus,
.radar-post-actions select:focus {
  border-color: #6b8fd6;
  box-shadow: 0 0 0 3px rgba(52, 103, 209, 0.14);
}

.radar-field.small input {
  text-align: center;
}

.radar-work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.radar-main-stack,
.radar-side-stack {
  display: grid;
  gap: 16px;
}

.radar-panel {
  min-width: 0;
  border: 1px solid var(--radar-line);
  border-radius: 10px;
  background: var(--radar-surface);
  overflow: hidden;
}

.radar-panel-head {
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--radar-line-soft);
  padding: 15px 18px;
}

.radar-panel-head.compact {
  padding-bottom: 12px;
}

.radar-panel-head h2 {
  margin: 0;
  color: var(--radar-ink);
  font-size: 15px;
  line-height: 1.25;
}

.radar-panel-head > span {
  color: var(--radar-muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.radar-movement-list,
.radar-post-list,
.radar-recap-list,
.radar-destination-list,
.radar-request-list,
.radar-setup-list {
  display: grid;
}

.radar-movement-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 142px auto;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--radar-line-soft);
}

.radar-movement-row:last-child,
.radar-destination-list article:last-child,
.radar-request-list article:last-child,
.radar-post-row:last-child,
.radar-recap-row:last-child {
  border-bottom: 0;
}

.radar-prop-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.radar-prop-title a {
  color: var(--radar-ink);
  font-size: 14px;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.radar-prop-meta {
  margin-top: 4px;
  color: var(--radar-muted);
  font-size: 12px;
}

.radar-status-pill {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--radar-success-soft);
  color: var(--radar-success);
  padding: 0 8px;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.radar-status-pill.bumped-down {
  background: var(--radar-danger-soft);
  color: var(--radar-danger);
}

.radar-status-pill.observed {
  background: var(--radar-surface-soft);
  color: var(--radar-muted);
}

.radar-line-change {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: baseline;
  color: var(--radar-muted);
  font-variant-numeric: tabular-nums;
}

.radar-line-change span,
.radar-line-change em {
  font-size: 12px;
  font-style: normal;
}

.radar-line-change strong {
  color: var(--radar-ink);
  font-size: 18px;
}

.radar-line-change em.up {
  color: var(--radar-success);
}

.radar-line-change em.down {
  color: var(--radar-danger);
}

.radar-post-row,
.radar-recap-row {
  display: grid;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--radar-line-soft);
}

.radar-post-copy {
  border: 1px solid var(--radar-line);
  border-radius: 9px;
  background: var(--radar-surface-soft);
  color: var(--radar-ink);
  padding: 12px;
  font-size: 13px;
  line-height: 1.45;
}

.radar-post-actions {
  flex-wrap: wrap;
  gap: 8px;
}

.radar-post-actions span {
  margin-right: auto;
  color: var(--radar-muted);
  font-size: 12px;
}

.radar-post-actions select {
  max-width: 220px;
}

.radar-recap-head {
  justify-content: space-between;
  gap: 12px;
}

.radar-recap-head strong {
  color: var(--radar-ink);
  font-size: 13px;
}

.radar-recap-head span {
  color: var(--radar-muted);
  font-size: 12px;
}

.radar-recap-row pre {
  max-height: 280px;
  overflow: auto;
  white-space: pre-wrap;
  margin: 0;
  border: 1px solid var(--radar-line);
  border-radius: 9px;
  background: var(--radar-surface-soft);
  color: var(--radar-ink);
  padding: 12px;
  font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.radar-setup-list article,
.radar-destination-list article,
.radar-request-list article {
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--radar-line-soft);
  padding: 12px 16px;
}

.radar-setup-list article {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
}

.radar-setup-list article > span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--radar-warning);
}

.radar-setup-list article.ready > span {
  background: var(--radar-success);
}

.radar-setup-list strong,
.radar-destination-list strong,
.radar-request-list strong {
  display: block;
  color: var(--radar-ink);
  font-size: 13px;
  line-height: 1.25;
}

.radar-setup-list em,
.radar-destination-list span,
.radar-request-list span {
  display: block;
  margin-top: 3px;
  color: var(--radar-muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.radar-setup-list em {
  margin-top: 0;
  white-space: nowrap;
}

.radar-destination-form,
.radar-request-form {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--radar-line-soft);
}

.radar-request-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.radar-request-form .radar-button,
.radar-destination-form .radar-button {
  width: 100%;
}

.radar-empty {
  margin: 0;
  padding: 16px 18px;
  color: var(--radar-muted);
  font-size: 13px;
  line-height: 1.45;
}

.radar-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  color: var(--radar-muted);
  font-size: 12px;
}

.radar-footer span {
  border: 1px solid var(--radar-line);
  border-radius: 999px;
  background: var(--radar-surface);
  padding: 5px 9px;
}

@media (max-width: 1040px) {
  .radar-work-grid {
    grid-template-columns: 1fr;
  }

  .radar-side-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .radar-page {
    width: min(100% - 28px, 1320px);
    padding: 22px 0 38px;
  }

  .radar-page-head,
  .radar-panel-head,
  .radar-recap-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .radar-action-row {
    justify-content: flex-start;
    width: 100%;
  }

  .radar-summary-grid,
  .radar-rule-bar,
  .radar-side-stack,
  .radar-request-form {
    grid-template-columns: 1fr;
  }

  .radar-movement-row {
    grid-template-columns: 1fr;
  }

  .radar-line-change {
    width: max-content;
  }

  .radar-post-actions {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .radar-post-actions span {
    margin-right: 0;
  }

  .radar-post-actions select {
    max-width: none;
  }
}

/* v67 Prop Radar split: member feed first, moderator workbench behind internal route. */
.radar-member-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--radar-line);
}

.radar-member-head h1 {
  margin: 0;
  color: var(--radar-ink);
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: 0;
}

.radar-member-head p {
  max-width: 680px;
  margin: 7px 0 0;
  color: var(--radar-muted);
  font-size: 13px;
  line-height: 1.45;
}

.radar-button {
  text-decoration: none;
}

.radar-signal-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
  border: 1px solid var(--radar-line);
  border-radius: 10px;
  background: var(--radar-surface);
  overflow: hidden;
}

.radar-signal-strip article {
  min-width: 0;
  padding: 14px 16px;
  border-right: 1px solid var(--radar-line-soft);
}

.radar-signal-strip article:last-child {
  border-right: 0;
}

.radar-signal-strip span,
.radar-signal-strip em {
  display: block;
  color: var(--radar-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 650;
  line-height: 1.35;
}

.radar-signal-strip strong {
  display: block;
  margin: 7px 0 5px;
  color: var(--radar-ink);
  font-size: 25px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.radar-member-watch {
  grid-template-columns: minmax(220px, 1.1fr) minmax(170px, 0.85fr) 112px auto;
}

.radar-member-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.78fr);
  gap: 16px;
  align-items: start;
}

.radar-feed-list,
.radar-check-list,
.radar-watch-list,
.radar-source-list {
  display: grid;
}

.radar-check-list article,
.radar-watch-list article,
.radar-source-list article {
  min-width: 0;
  border-bottom: 1px solid var(--radar-line-soft);
  padding: 14px 18px;
}

.radar-check-list article:last-child,
.radar-watch-list article:last-child,
.radar-source-list article:last-child {
  border-bottom: 0;
}

.radar-check-list strong,
.radar-watch-list strong,
.radar-source-list strong {
  display: block;
  color: var(--radar-ink);
  font-size: 13px;
  line-height: 1.35;
}

.radar-check-list span,
.radar-watch-list span,
.radar-source-list span {
  display: block;
  margin-top: 4px;
  color: var(--radar-muted);
  font-size: 12px;
  line-height: 1.4;
}

.radar-check-list p {
  margin: 9px 0 0;
  color: var(--radar-ink);
  font-size: 13px;
  line-height: 1.45;
}

.radar-member-page .radar-line-change {
  justify-self: end;
  min-width: 144px;
}

.radar-status-pill.bumped-up {
  background: var(--radar-success-soft);
  color: var(--radar-success);
}

.radar-status-pill.flat,
.radar-line-change em.flat {
  color: var(--radar-muted);
}

.radar-ops-page .radar-page-head {
  padding-bottom: 0;
  border-bottom: 0;
}

@media (max-width: 1040px) {
  .radar-member-layout {
    grid-template-columns: 1fr;
  }

  .radar-member-page .radar-side-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .radar-member-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .radar-signal-strip,
  .radar-member-watch,
  .radar-member-page .radar-side-stack {
    grid-template-columns: 1fr;
  }

  .radar-signal-strip article {
    border-right: 0;
    border-bottom: 1px solid var(--radar-line-soft);
  }

  .radar-signal-strip article:last-child {
    border-bottom: 0;
  }

  .radar-member-page .radar-line-change {
    justify-self: start;
  }
}

.platform-rule-panel,
.proof-archive-panel,
.faq-memory-panel,
.usage-panel,
.storage-panel {
  min-width: 0;
}

.rule-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.rule-card,
.proof-card-row,
.faq-memory-list article,
.usage-meter-list article {
  border: 1px solid var(--radar-line);
  border-radius: 8px;
  background: var(--radar-surface);
}

.rule-card {
  min-height: 172px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.rule-card span,
.proof-card-row span,
.faq-memory-list span,
.usage-meter-list span,
.pricing-usage-panel span {
  color: var(--radar-muted);
  font-size: 12px;
}

.rule-card strong,
.proof-card-row strong,
.faq-memory-list strong,
.usage-meter-list strong {
  display: block;
  margin-top: 4px;
  color: var(--radar-ink);
  font-size: 14px;
  line-height: 1.35;
}

.rule-card p,
.faq-memory-list p {
  margin: 8px 0 0;
  color: var(--radar-muted);
  font-size: 13px;
  line-height: 1.45;
}

.rule-card-foot,
.proof-card-row,
.proof-card-actions,
.usage-meter-list article div,
.pricing-usage-panel,
.pricing-usage-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rule-card-foot {
  align-items: flex-end;
}

.rule-card-foot small {
  color: var(--radar-muted);
  font-size: 11px;
  line-height: 1.35;
}

.rule-card-foot a {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--radar-line);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: var(--radar-info);
  font-size: 12px;
  font-weight: 650;
}

.proof-card-list,
.faq-memory-list,
.usage-meter-list {
  display: grid;
  gap: 8px;
}

.proof-card-row {
  padding: 12px;
}

.proof-card-row span {
  display: block;
  margin-top: 3px;
}

.proof-card-actions {
  flex: 0 0 auto;
}

.faq-memory-list article,
.usage-meter-list article {
  padding: 12px;
}

.usage-meter-list article {
  display: grid;
  gap: 8px;
}

.usage-meter {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--radar-line-soft);
  overflow: hidden;
}

.usage-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--radar-info);
}

.pricing-usage-panel {
  margin: 18px 0 20px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-muted);
}

.pricing-usage-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.pricing-usage-grid {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.pricing-usage-grid span {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: var(--surface);
}

body.dark-mode .rule-card,
body.dark-mode .proof-card-row,
body.dark-mode .faq-memory-list article,
body.dark-mode .usage-meter-list article,
body.dark-mode .pricing-usage-panel {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

body.dark-mode .usage-meter,
body.dark-mode .pricing-usage-grid span {
  background: rgba(255, 255, 255, 0.08);
}

body.dark-mode .usage-meter i {
  background: #ffffff;
}

@media (max-width: 760px) {
  .rule-card-list {
    grid-template-columns: 1fr;
  }

  .proof-card-row,
  .pricing-usage-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .pricing-usage-grid {
    justify-content: flex-start;
  }
}

/* v69 pricing correction: strict ChatGPT-style upgrade layout, no prototype info strips. */
.pricing-view {
  background: var(--surface);
}

.pricing-modal-shell {
  width: min(1088px, calc(100% - 48px));
  margin: 0 auto;
  padding: 54px 0 32px;
  position: relative;
}

.pricing-header {
  width: min(720px, 100%);
  margin: 0 auto 28px;
  text-align: center;
}

.pricing-modal-shell h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.pricing-subtitle {
  max-width: 680px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
}

.pricing-note,
.pricing-footer-note,
.pricing-usage-panel {
  display: none !important;
}

.pricing-close {
  position: absolute;
  right: -4px;
  top: 48px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 25px;
  font-weight: 300;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.pricing-grid article,
.pricing-grid article.pricing-card {
  min-height: 492px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: none;
  position: relative;
  display: grid;
  grid-template-rows: 146px 40px 1px auto 1fr;
  gap: 14px;
}

.pricing-grid article.featured,
.pricing-grid article.pricing-card.featured {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.pricing-card-top {
  min-height: 146px;
  display: grid;
  grid-template-rows: 24px 44px 1fr;
  gap: 10px;
}

.pricing-grid h2 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 740;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.pricing-grid strong {
  color: var(--ink);
  font-size: 39px;
  font-weight: 780;
  letter-spacing: -0.055em;
  line-height: 1;
}

.pricing-grid strong span {
  margin-left: 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.pricing-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.pricing-grid button {
  width: 100%;
  min-height: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-contrast);
  font-size: 14px;
  font-weight: 760;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pricing-grid .muted-plan {
  border: 1px solid var(--line);
  background: var(--surface-muted);
  color: var(--muted);
}

.pricing-grid hr {
  width: 100%;
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--line);
}

.pricing-grid small {
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.2;
}

.pricing-grid ul {
  list-style: none;
  display: grid;
  align-content: start;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: var(--ink);
}

.pricing-grid li {
  position: relative;
  padding-left: 20px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.32;
}

.pricing-grid li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0.42em;
  width: 8px;
  height: 13px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(40deg);
  opacity: 0.72;
}

.popular-pill {
  position: absolute;
  right: 18px;
  top: 18px;
  min-height: 25px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-contrast);
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 760;
}

body.dark-mode .pricing-view,
body.dark-mode .pricing-grid article,
body.dark-mode .pricing-grid article.pricing-card {
  background: #050505;
}

body.dark-mode .pricing-grid article,
body.dark-mode .pricing-grid article.pricing-card {
  border-color: rgba(255, 255, 255, 0.18);
}

body.dark-mode .pricing-grid article.featured,
body.dark-mode .pricing-grid article.pricing-card.featured {
  border-color: #fff;
  box-shadow: 0 0 0 1px #fff;
}

body.dark-mode .pricing-grid .muted-plan {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 1080px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .pricing-modal-shell {
    width: min(100% - 24px, 520px);
    padding-top: 28px;
  }

  .pricing-close {
    top: 24px;
    right: 0;
  }

  .pricing-header {
    padding-right: 44px;
    text-align: left;
  }

  .pricing-subtitle {
    text-align: left;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid article,
  .pricing-grid article.pricing-card {
    min-height: auto;
  }
}

/* v69.1 pricing checkmark correction: simple ChatGPT-style ticks, not malformed angled boxes. */
.pricing-grid li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  border: 0;
  transform: none;
  opacity: 0.8;
  color: currentColor;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.32;
}

/* v70 A+ UI correction: Atlas workbench surfaces must respect dark mode. */
body.dark-mode {
  --atlas-bg: #050505;
  --atlas-surface: #050505;
  --atlas-muted-surface: #111111;
  --atlas-line: rgba(255, 255, 255, 0.16);
  --atlas-line-soft: rgba(255, 255, 255, 0.10);
  --atlas-ink: #f5f5f5;
  --atlas-muted: rgba(255, 255, 255, 0.68);
  --atlas-blue-soft: rgba(64, 139, 255, 0.16);
  --atlas-green-soft: rgba(56, 161, 105, 0.18);
  --atlas-red-soft: rgba(255, 69, 58, 0.16);
  --atlas-warn-soft: rgba(255, 183, 77, 0.16);
}

body.dark-mode .research-view {
  background: #050505;
  color: var(--atlas-ink);
}

body.dark-mode .atlas-panel,
body.dark-mode .metric-strip article,
body.dark-mode .resume-section,
body.dark-mode .source-capture-card,
body.dark-mode .source-path-card,
body.dark-mode .sources-table-card {
  border-color: var(--atlas-line);
  background: #050505;
  color: var(--atlas-ink);
}

body.dark-mode .atlas-data-table th,
body.dark-mode .atlas-data-table tbody tr:hover,
body.dark-mode .status-tabs button:focus-visible {
  background: #111111;
}

body.dark-mode .atlas-data-table th,
body.dark-mode .atlas-data-table td,
body.dark-mode .panel-head,
body.dark-mode .resume-section-head,
body.dark-mode .resume-items article {
  border-color: var(--atlas-line-soft);
}

body.dark-mode .atlas-workbench input,
body.dark-mode .atlas-workbench textarea,
body.dark-mode .atlas-workbench select {
  border-color: var(--atlas-line);
  background: #111111;
  color: var(--atlas-ink);
}

body.dark-mode .atlas-workbench input::placeholder,
body.dark-mode .atlas-workbench textarea::placeholder {
  color: rgba(255, 255, 255, 0.46);
}

body.dark-mode .player-link,
body.dark-mode .atlas-data-table a,
body.dark-mode .resume-items a {
  color: #8ab4ff;
}

body.chat-mode .library-row.library-empty {
  min-height: 84px !important;
  color: #b8b8b8 !important;
}


/* Reference-bound rebuild layer: ChatGPT shell + Resend/Vercel/Notion table density */
.reference-page {
  --ref-surface: #ffffff;
  --ref-muted: #f7f7f8;
  --ref-line: #e5e5e5;
  --ref-line-strong: #d9d9d9;
  --ref-ink: #171717;
  --ref-subtle: #6b7280;
  --ref-soft: #fafafa;
  width: min(1120px, calc(100vw - var(--sidebar-width) - 48px));
  margin: 0 auto;
  padding: 30px 24px 56px;
  color: var(--ref-ink);
}

.reference-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--ref-line);
}

.reference-page-head.compact h1,
.dossier-evidence-head h1 {
  margin: 2px 0 6px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 720;
}

.reference-page-head p,
.dossier-evidence-head p {
  margin: 0;
  max-width: 680px;
  color: var(--ref-subtle);
  font-size: 14px;
  line-height: 1.45;
}

.reference-kicker {
  margin: 0 0 4px !important;
  color: var(--ref-subtle) !important;
  font-size: 12px !important;
  font-weight: 650;
  letter-spacing: 0.01em;
}

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

.reference-button,
.reference-link-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 13px;
  border: 1px solid var(--ref-line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ref-ink);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.reference-button.primary,
.reference-link-button.is-saved {
  border-color: #111;
  background: #111;
  color: #fff;
}

.reference-command {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) minmax(0, 2.2fr);
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--ref-line);
  border-radius: 12px;
  background: var(--ref-soft);
}

.reference-command-copy h2,
.reference-section-head h2,
.dossier-evidence-section h2,
.dossier-answer h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.reference-command-copy p,
.reference-section-head p,
.dossier-answer p,
.dossier-context-rail p,
.empty-copy {
  margin: 6px 0 0;
  color: var(--ref-subtle);
  font-size: 13px;
  line-height: 1.45;
}

.reference-command-form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(120px, 0.7fr) minmax(220px, 1.6fr) auto;
  gap: 10px;
  align-items: end;
}

.reference-command-form.slim {
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) 82px auto;
}

.reference-field {
  display: grid;
  gap: 6px;
}

.reference-field span {
  color: var(--ref-subtle);
  font-size: 12px;
  font-weight: 650;
}

.reference-field input,
.reference-field select,
.reference-field textarea,
.reference-table input,
.reference-table select {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--ref-line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ref-ink);
  padding: 7px 9px;
  font-size: 13px;
  outline: none;
}

.reference-field textarea {
  min-height: 78px;
  resize: vertical;
}

.reference-field-wide {
  min-width: 0;
}

.source-path-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
}

.source-path-row button {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--ref-line);
  border-radius: 9px;
  background: #fff;
  color: var(--ref-ink);
  font-size: 13px;
  font-weight: 600;
}

.reference-table-section {
  margin-top: 18px;
  border: 1px solid var(--ref-line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.reference-section-head {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ref-line);
}

.reference-section-head.inline {
  margin-top: 10px;
  border-top: 1px solid var(--ref-line);
}

.reference-table-wrap {
  overflow-x: auto;
}

.reference-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.35;
}

.reference-table th,
.reference-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--ref-line);
  text-align: left;
  vertical-align: top;
}

.reference-table th {
  background: var(--ref-muted);
  color: #666;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

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

.reference-table strong,
.reference-list strong,
.dossier-mini-list strong {
  display: block;
  color: var(--ref-ink);
  font-size: 13px;
  font-weight: 680;
}

.reference-table small,
.reference-list span,
.dossier-mini-list span {
  display: block;
  margin-top: 3px;
  color: var(--ref-subtle);
  font-size: 12px;
  line-height: 1.35;
}

.reference-table .number-cell {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.reference-table .number-cell.strong {
  font-weight: 720;
  color: var(--ref-ink);
}

.reference-status,
.reference-delta {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.reference-delta.up,
.reference-status.ready,
.reference-status.ready-to-review {
  background: #ecfdf3;
  color: #067647;
}

.reference-delta.down,
.reference-status.needs-source-check,
.reference-status.needs-injury-news,
.reference-status.needs-opponent-context,
.reference-status.needs-stats {
  background: #fff4e5;
  color: #9a3412;
}

.reference-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
  gap: 16px;
}

.reference-list {
  display: grid;
}

.reference-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ref-line);
}

.reference-list.compact-list article {
  display: block;
  padding: 11px 16px;
}

.reference-list article:last-child {
  border-bottom: 0;
}

.resume-reference-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.ops-summary-row {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--ref-line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.ops-summary-row article {
  padding: 13px 16px;
  border-right: 1px solid var(--ref-line);
}

.ops-summary-row article:last-child {
  border-right: 0;
}

.ops-summary-row span {
  display: block;
  color: var(--ref-subtle);
  font-size: 12px;
  font-weight: 650;
}

.ops-summary-row strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}

.player-app .soccer-player-main.dossier-main {
  background: var(--bg);
}

.player-app .sp-player-title-band[hidden] {
  display: none !important;
}

.dossier-evidence-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px 56px;
}

.dossier-evidence-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ref-line, #e5e5e5);
}

.dossier-chat-back {
  color: var(--ref-subtle, #6b7280);
  font-size: 13px;
  font-weight: 650;
}

.dossier-chat-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dossier-chat-actions a,
.dossier-chat-actions button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--ref-line-strong, #d9d9d9);
  border-radius: 8px;
  background: #fff;
  color: var(--ref-ink, #171717);
  font-size: 13px;
  font-weight: 650;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.dossier-evidence-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  margin-top: 18px;
}

.dossier-evidence-main {
  display: grid;
  gap: 16px;
}

.dossier-answer {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--ref-line, #e5e5e5);
}

.dossier-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.dossier-answer-meta {
  margin-top: 10px !important;
}

.dossier-evidence-section,
.dossier-context-rail section {
  border: 1px solid var(--ref-line, #e5e5e5);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.dossier-chart-wrap {
  padding: 12px 16px 16px;
  overflow-x: auto;
}

.dossier-context-rail {
  display: grid;
  align-content: start;
  gap: 12px;
}

.dossier-context-rail h2 {
  margin: 0;
  padding: 14px 16px 8px;
  font-size: 14px;
}

.dossier-context-rail ul {
  margin: 0;
  padding: 0 16px 16px 30px;
  color: var(--ref-subtle, #6b7280);
  font-size: 13px;
}

.dossier-mini-list article,
.dossier-mini-list .empty-copy {
  padding: 10px 16px;
  border-top: 1px solid var(--ref-line, #e5e5e5);
}

.player-prop-workspace {
  width: min(1120px, calc(100vw - var(--sidebar-width) - 48px));
  margin: 0 auto;
  padding: 0 24px 56px;
  background: transparent;
}

.workspace-shell {
  padding: 28px 0 0;
}

.workspace-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ref-line, #e5e5e5);
}

.workspace-head h1 {
  margin: 2px 0 6px;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 720;
}

.workspace-head p {
  margin: 0;
  color: var(--ref-subtle, #6b7280);
  font-size: 14px;
}

.workspace-prop-strip {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.4fr;
  margin-top: 18px;
  border: 1px solid var(--ref-line, #e5e5e5);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.workspace-prop-strip div {
  min-width: 0;
  padding: 13px 16px;
  border-right: 1px solid var(--ref-line, #e5e5e5);
}

.workspace-prop-strip div:last-child {
  border-right: 0;
}

.workspace-prop-strip span {
  display: block;
  color: var(--ref-subtle, #6b7280);
  font-size: 12px;
  font-weight: 650;
}

.workspace-prop-strip strong {
  display: block;
  margin-top: 4px;
  color: var(--ref-ink, #171717);
  font-size: 14px;
  font-weight: 720;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  margin-top: 18px;
}

.workspace-main {
  display: grid;
  gap: 16px;
}

.workspace-answer {
  padding-top: 0;
}

.workspace-facts-table th {
  width: 170px;
}

.workspace-note-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ref-line, #e5e5e5);
}

.workspace-note-form textarea {
  width: 100%;
  min-height: 76px;
  resize: vertical;
  border: 1px solid var(--ref-line-strong, #d9d9d9);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--ref-ink, #171717);
  background: #fff;
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
}

.workspace-note-form button {
  align-self: start;
}

.player-prop-workspace .dossier-chat-actions {
  gap: 8px !important;
  padding-top: 0 !important;
}

.player-prop-workspace .dossier-chat-actions a,
.player-prop-workspace .dossier-chat-actions button {
  min-height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 12px !important;
  border: 1px solid var(--ref-line-strong, #d9d9d9) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: var(--ref-ink, #171717) !important;
  font: inherit !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  line-height: 18px !important;
  text-decoration: none !important;
}

.workspace-note-timeline {
  display: grid;
}

.workspace-note-timeline article {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ref-line, #e5e5e5);
}

.workspace-note-timeline article:last-child {
  border-bottom: 0;
}

.workspace-note-timeline time {
  color: var(--ref-subtle, #6b7280);
  font-size: 12px;
  font-weight: 650;
}

.workspace-note-timeline strong {
  color: var(--ref-ink, #171717);
  font-size: 13px;
}

.workspace-note-timeline p {
  margin: 4px 0 0;
  color: var(--ref-ink, #171717);
  font-size: 13px;
  line-height: 1.45;
}

.workspace-note-timeline small,
.line-memory-compact small {
  display: block;
  margin-top: 5px;
  color: var(--ref-subtle, #6b7280);
  font-size: 12px;
  line-height: 1.35;
}

.line-memory-compact p {
  margin: 0;
  color: var(--ref-ink, #171717);
  font-size: 13px;
}

.line-memory-compact span {
  color: var(--ref-subtle, #6b7280);
  padding: 0 6px;
}

.compact-memory .line-memory-chart {
  max-width: 560px;
}

.player-prop-workspace .dossier-chart-wrap {
  background: #ffffff !important;
  border-color: var(--ref-line, #e5e5e5) !important;
}

.player-prop-workspace .line-memory-compact p {
  color: var(--ref-ink, #171717) !important;
}

.player-prop-workspace .line-memory-compact small {
  color: var(--ref-subtle, #6b7280) !important;
}

body:not(.dark-mode) .player-prop-workspace .dossier-context-rail section {
  background: #ffffff !important;
  border-color: var(--ref-line, #e5e5e5) !important;
  color: var(--ref-ink, #171717) !important;
}

body:not(.dark-mode) .player-prop-workspace .dossier-context-rail h2,
body:not(.dark-mode) .player-prop-workspace .dossier-mini-list strong {
  color: var(--ref-ink, #171717) !important;
}

body:not(.dark-mode) .player-prop-workspace .dossier-context-rail li,
body:not(.dark-mode) .player-prop-workspace .dossier-mini-list span,
body:not(.dark-mode) .player-prop-workspace .dossier-mini-list .empty-copy {
  color: var(--ref-subtle, #6b7280) !important;
}

body.dark-mode .reference-page {
  --ref-surface: #171717;
  --ref-muted: #202020;
  --ref-line: #303030;
  --ref-line-strong: #3b3b3b;
  --ref-ink: #f5f5f5;
  --ref-subtle: #b4b4b4;
  --ref-soft: #141414;
}

body.dark-mode .reference-command,
body.dark-mode .reference-table-section,
body.dark-mode .reference-table input,
body.dark-mode .reference-table select,
body.dark-mode .reference-field input,
body.dark-mode .reference-field select,
body.dark-mode .reference-field textarea,
body.dark-mode .source-path-row button,
body.dark-mode .reference-button,
body.dark-mode .reference-link-button,
body.dark-mode .ops-summary-row,
body.dark-mode .dossier-evidence-section,
body.dark-mode .dossier-context-rail section,
body.dark-mode .dossier-chat-actions a,
body.dark-mode .dossier-chat-actions button,
body.dark-mode .workspace-prop-strip,
body.dark-mode .workspace-note-form textarea {
  background: var(--ref-surface);
  border-color: var(--ref-line);
  color: var(--ref-ink);
}

body.dark-mode .reference-table th {
  background: var(--ref-muted);
  color: #c7c7c7;
}

body.dark-mode .reference-button.primary,
body.dark-mode .reference-link-button.is-saved,
body.dark-mode .dossier-avatar {
  background: #f4f4f5;
  color: #111;
  border-color: #f4f4f5;
}

body.dark-mode .reference-status,
body.dark-mode .reference-delta {
  background: #242424;
  color: #d7d7d7;
}

@media (max-width: 1100px) {
  .reference-page {
    width: min(100%, calc(100vw - 32px));
    padding-inline: 16px;
  }

  .reference-command,
  .reference-two-column,
  .dossier-evidence-grid,
  .workspace-grid,
  .workspace-prop-strip {
    grid-template-columns: 1fr;
  }

  .player-prop-workspace {
    width: min(100%, calc(100vw - 32px));
    padding-inline: 16px;
  }

  .workspace-prop-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--ref-line, #e5e5e5);
  }

  .workspace-prop-strip div:last-child {
    border-bottom: 0;
  }

  .reference-command-form,
  .reference-command-form.slim {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .source-path-row,
  .ops-summary-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .reference-page,
  .dossier-evidence-shell {
    width: 100%;
    padding: 18px 14px 40px;
  }

  .reference-page-head,
  .dossier-evidence-head,
  .workspace-head {
    display: grid;
    gap: 14px;
  }

  .reference-actions,
  .dossier-chat-actions {
    justify-content: flex-start;
  }

  .reference-command-form,
  .reference-command-form.slim,
  .source-path-row,
  .ops-summary-row,
  .workspace-note-form,
  .workspace-note-timeline article {
    grid-template-columns: 1fr;
  }

  .reference-table th {
    display: none;
  }

  .reference-table,
  .reference-table tbody,
  .reference-table tr,
  .reference-table td {
    display: block;
    width: 100%;
  }

  .reference-table tr {
    border-bottom: 1px solid var(--ref-line);
  }

  .reference-table td {
    min-height: 36px;
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 10px;
    border-bottom: 0;
    padding: 8px 12px;
  }

  .reference-table td::before {
    content: attr(data-label);
    color: var(--ref-subtle);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
  }
}


/* Hard reset for the rebuilt evidence dossier so old SoccerProp/dark dossier rules cannot leak back in. */
.player-dossier-page.dossier-evidence {
  width: min(1120px, calc(100vw - var(--sidebar-width) - 48px)) !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  color: var(--ref-ink, #171717) !important;
}

.player-dossier-page.dossier-evidence .dossier-chat-actions {
  padding-top: 0 !important;
  gap: 8px !important;
}

.player-dossier-page.dossier-evidence .dossier-chat-actions a,
.player-dossier-page.dossier-evidence .dossier-section-head a {
  min-height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 12px !important;
  border: 1px solid var(--ref-line-strong, #d9d9d9) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--ref-ink, #171717) !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  text-decoration: none !important;
}

.player-dossier-page.dossier-evidence .dossier-evidence-section,
.player-dossier-page.dossier-evidence .dossier-context-rail section {
  border: 1px solid var(--ref-line, #e5e5e5) !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: var(--ref-ink, #171717) !important;
  padding-top: 0 !important;
}

.player-dossier-page.dossier-evidence .dossier-context-rail h2,
.player-dossier-page.dossier-evidence .dossier-answer h2,
.player-dossier-page.dossier-evidence .dossier-evidence-section h2 {
  color: var(--ref-ink, #171717) !important;
}

.player-dossier-page.dossier-evidence .dossier-answer p,
.player-dossier-page.dossier-evidence .dossier-context-rail li,
.player-dossier-page.dossier-evidence .dossier-mini-list span,
.player-dossier-page.dossier-evidence .reference-table small {
  color: var(--ref-subtle, #6b7280) !important;
}

body.dark-mode .player-dossier-page.dossier-evidence {
  color: var(--ref-ink, #f5f5f5) !important;
}

body.dark-mode .player-dossier-page.dossier-evidence .dossier-chat-actions a,
body.dark-mode .player-dossier-page.dossier-evidence .dossier-evidence-section,
body.dark-mode .player-dossier-page.dossier-evidence .dossier-context-rail section {
  background: var(--ref-surface, #171717) !important;
  border-color: var(--ref-line, #303030) !important;
  color: var(--ref-ink, #f5f5f5) !important;
}

body.dark-mode .player-dossier-page.dossier-evidence .dossier-context-rail h2,
body.dark-mode .player-dossier-page.dossier-evidence .dossier-answer h2,
body.dark-mode .player-dossier-page.dossier-evidence .dossier-evidence-section h2,
body.dark-mode .player-dossier-page.dossier-evidence .reference-table strong {
  color: var(--ref-ink, #f5f5f5) !important;
}

.saved-plays-page .metric-strip {
  margin-bottom: 18px;
}

.saved-play-table td {
  vertical-align: top;
}

.saved-play-table small {
  display: block;
  margin-top: 3px;
  color: var(--ref-subtle, #6b7280);
}

.saved-play-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.drop-desk-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.drop-desk-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.drop-desk-column {
  min-width: 0;
  border: 1px solid var(--ref-line, #e5e7eb);
  border-radius: 8px;
  background: var(--ref-surface, #ffffff);
  padding: 12px;
}

.mini-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.mini-actions button {
  border: 1px solid var(--ref-line, #e5e7eb);
  border-radius: 7px;
  background: var(--ref-muted, #f7f7f8);
  color: var(--ref-ink, #171717);
  min-height: 28px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 650;
}

body.dark-mode .drop-desk-column,
body.dark-mode .mini-actions button {
  background: var(--ref-surface, #171717);
  border-color: var(--ref-line, #303030);
  color: var(--ref-ink, #f5f5f5);
}

@media (max-width: 980px) {
  .drop-desk-grid,
  .drop-desk-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .drop-desk-grid,
  .drop-desk-grid.compact {
    grid-template-columns: 1fr;
  }
}


/* Player dossier is a ChatGPT-light reference surface even if an old theme flag is saved. */
body.chat-mode.player-app,
body.dark-mode.chat-mode.player-app {
  background: #f4f4f4 !important;
}

body.chat-mode.player-app .soccer-player-main.dossier-main,
body.dark-mode.chat-mode.player-app .soccer-player-main.dossier-main {
  background: #f6f7f8 !important;
  color: #171717 !important;
}

body.chat-mode.player-app .sidebar,
body.dark-mode.chat-mode.player-app .sidebar {
  background: #f4f4f4 !important;
  color: #111111 !important;
  border-right-color: #d5dce5 !important;
}

body.chat-mode.player-app .side-nav a,
body.dark-mode.chat-mode.player-app .side-nav a,
body.chat-mode.player-app .chat-list button,
body.dark-mode.chat-mode.player-app .chat-list button {
  color: #111111 !important;
}

body.chat-mode.player-app .chat-list p,
body.dark-mode.chat-mode.player-app .chat-list p,
body.chat-mode.player-app .account-copy small,
body.dark-mode.chat-mode.player-app .account-copy small {
  color: #5f6b7a !important;
}

body.chat-mode.player-app .account-upgrade,
body.dark-mode.chat-mode.player-app .account-upgrade {
  background: #111111 !important;
  color: #ffffff !important;
}

body.chat-mode.player-app .avatar,
body.dark-mode.chat-mode.player-app .avatar {
  background: #111111 !important;
  color: #ffffff !important;
}

body.chat-mode.player-app .player-dossier-page.dossier-evidence,
body.dark-mode.chat-mode.player-app .player-dossier-page.dossier-evidence {
  --ref-surface: #ffffff;
  --ref-muted: #f7f7f8;
  --ref-line: #e5e5e5;
  --ref-line-strong: #d9d9d9;
  --ref-ink: #171717;
  --ref-subtle: #6b7280;
  --ref-soft: #fafafa;
  color: #171717 !important;
}

body.chat-mode.player-app .player-dossier-page.dossier-evidence .dossier-evidence-head h1,
body.dark-mode.chat-mode.player-app .player-dossier-page.dossier-evidence .dossier-evidence-head h1,
body.chat-mode.player-app .player-dossier-page.dossier-evidence .dossier-answer h2,
body.dark-mode.chat-mode.player-app .player-dossier-page.dossier-evidence .dossier-answer h2,
body.chat-mode.player-app .player-dossier-page.dossier-evidence .dossier-answer p,
body.dark-mode.chat-mode.player-app .player-dossier-page.dossier-evidence .dossier-answer p {
  color: #171717 !important;
}


.player-dossier-page.dossier-evidence .dossier-chart-wrap,
body.dark-mode.chat-mode.player-app .player-dossier-page.dossier-evidence .dossier-chart-wrap {
  background: #ffffff !important;
  border-color: #e5e5e5 !important;
}

.player-dossier-page.dossier-evidence .line-memory-chart .chart-axis,
body.dark-mode.chat-mode.player-app .player-dossier-page.dossier-evidence .line-memory-chart .chart-axis {
  stroke: #d1d5db !important;
}

.player-dossier-page.dossier-evidence .line-memory-chart .line-path,
body.dark-mode.chat-mode.player-app .player-dossier-page.dossier-evidence .line-memory-chart .line-path {
  stroke: #111111 !important;
}

.player-dossier-page.dossier-evidence .line-memory-chart .line-point,
body.dark-mode.chat-mode.player-app .player-dossier-page.dossier-evidence .line-memory-chart .line-point {
  fill: #ffffff !important;
  stroke: #111111 !important;
}

.player-dossier-page.dossier-evidence .line-memory-chart text,
body.dark-mode.chat-mode.player-app .player-dossier-page.dossier-evidence .line-memory-chart text {
  fill: #6b7280 !important;
}

/* v80 public launch design QA: app/public touch targets and prompt-chip stability. */
.sidebar-logo,
.mobile-brand,
.mobile-link,
.sp-back-link,
.player-link,
.props-table a,
.atlas-data-table a,
.reference-table a,
.radar-prop-title a,
.dossier-mini-list a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
}

.theme-toggle button {
  min-height: 30px;
}

.mini-actions button {
  min-height: 30px;
}

@media (max-width: 860px) {
  .mobile-shell-bar .icon-button {
    width: 44px !important;
    height: 44px !important;
  }

  body.chat-mode .prompt-row {
    width: min(328px, calc(100% - 32px)) !important;
    gap: 8px !important;
  }

  body.chat-mode .prompt-row button {
    min-height: 42px !important;
    flex: 1 1 150px !important;
    justify-content: center !important;
    padding: 0 12px !important;
    white-space: nowrap !important;
  }
}

/* v81 premium community management dashboard. */
.community-page {
  --community-line: var(--radar-line, #d5dce5);
  --community-soft: var(--radar-line-soft, #edf0f3);
  --community-surface: var(--radar-surface, #ffffff);
  --community-muted: var(--radar-muted, #5f6b7a);
  --community-ink: var(--radar-ink, #11171f);
}

.community-summary-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.community-summary-row article,
.community-mini-queues article {
  min-width: 0;
  border: 1px solid var(--community-line);
  border-radius: 8px;
  background: var(--community-surface);
  padding: 13px 14px;
}

.community-summary-row span,
.community-mini-queues span {
  display: block;
  color: var(--community-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.community-summary-row strong,
.community-mini-queues strong {
  display: block;
  margin-top: 5px;
  color: var(--community-ink);
  font-size: 22px;
  line-height: 1.1;
}

.community-summary-row small {
  display: block;
  margin-top: 4px;
  color: var(--community-muted);
  font-size: 12px;
}

.community-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 16px;
  align-items: start;
}

.community-main-stack,
.community-side-stack {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.community-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.community-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

.community-table th,
.community-table td {
  border-bottom: 1px solid var(--community-soft);
  padding: 12px 14px;
  color: var(--community-ink);
  font-size: 12px;
  text-align: left;
  vertical-align: top;
}

.community-table th {
  background: var(--surface-muted);
  color: var(--community-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.community-table td strong,
.community-table td span {
  display: block;
}

.community-table td span {
  margin-top: 3px;
  color: var(--community-muted);
}

.community-risk {
  display: inline-flex;
  min-width: 76px;
  justify-content: center;
  border: 1px solid var(--community-line);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
}

.community-risk.high {
  border-color: #f3b3ac;
  background: var(--danger-soft);
  color: var(--danger);
}

.community-risk.medium {
  border-color: #ffd391;
  background: var(--warning-soft);
  color: var(--warning);
}

.community-risk.low {
  border-color: #b9e4c8;
  background: var(--success-soft);
  color: var(--success);
}

.community-cohort-grid,
.community-workload-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 16px 18px 18px;
}

.community-cohort-grid h3,
.community-workload-grid h3 {
  margin: 0 0 10px;
  color: var(--community-muted);
  font-size: 11px;
  text-transform: uppercase;
}

.community-cohort-grid article,
.community-workload-grid article,
.community-activity-list article {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--community-soft);
  padding: 10px 0;
  color: var(--community-ink);
  font-size: 12px;
}

.community-cohort-grid article:first-of-type,
.community-workload-grid article:first-of-type,
.community-activity-list article:first-of-type {
  border-top: 0;
}

.community-cohort-grid strong,
.community-workload-grid strong,
.community-activity-list strong {
  display: block;
  color: var(--community-ink);
  font-size: 12px;
}

.community-cohort-grid span,
.community-workload-grid span,
.community-activity-list span {
  display: block;
  margin-top: 3px;
  color: var(--community-muted);
  font-size: 12px;
}

.community-cohort-grid em {
  display: block;
  color: var(--community-ink);
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.community-member-form,
.community-activity-form,
.community-bulk-form {
  display: grid;
  gap: 10px;
  padding: 16px 18px 0;
}

.community-bulk-form {
  padding-bottom: 18px;
}

.community-member-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.community-member-form .full,
.community-bulk-form .full {
  grid-column: 1 / -1;
}

.community-member-form button,
.community-bulk-form button {
  grid-column: 1 / -1;
}

.community-activity-form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) auto;
  align-items: end;
  border-top: 1px solid var(--community-soft);
  margin-top: 16px;
}

.community-bulk-form textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px;
  font: inherit;
  font-size: 12px;
}

.community-readiness-list,
.community-source-list,
.community-mini-queues,
.community-activity-list {
  display: grid;
  gap: 10px;
  padding: 16px 18px 18px;
}

.community-mini-queues {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.community-readiness-list article,
.community-source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--community-line);
  border-radius: 8px;
  padding: 10px;
  color: var(--community-ink);
  font-size: 12px;
}

.community-readiness-list article > span {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--warning);
}

.community-readiness-list article.ready > span,
.community-source-row.exact em {
  background: var(--success-soft);
  color: var(--success);
}

.community-readiness-list article.ready > span {
  background: var(--success);
}

.community-readiness-list article.blocked > span {
  background: var(--warning);
}

.community-readiness-list strong,
.community-source-row strong {
  display: block;
  color: var(--community-ink);
}

.community-readiness-list small,
.community-source-row span {
  display: block;
  margin-top: 3px;
  color: var(--community-muted);
}

.community-readiness-list em,
.community-source-row em {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--community-muted);
  padding: 4px 8px;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.community-source-row.partial em {
  background: var(--warning-soft);
  color: var(--warning);
}

.community-source-row.missing em {
  background: var(--danger-soft);
  color: var(--danger);
}

@media (max-width: 1080px) {
  .community-summary-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .community-grid {
    grid-template-columns: 1fr;
  }

  .community-side-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .community-summary-row,
  .community-side-stack,
  .community-cohort-grid,
  .community-workload-grid,
  .community-member-form,
  .community-activity-form,
  .community-mini-queues {
    grid-template-columns: 1fr;
  }

  .community-activity-form {
    align-items: stretch;
  }

  .community-table-wrap {
    overflow-x: visible;
  }

  .community-table {
    min-width: 0;
  }

  .community-table thead {
    display: none;
  }

  .community-table,
  .community-table tbody,
  .community-table tr,
  .community-table td {
    display: block;
    width: 100%;
  }

  .community-table tr {
    border-bottom: 1px solid var(--community-soft);
    padding: 12px 14px;
  }

  .community-table td {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 10px;
    border-bottom: 0;
    padding: 6px 0;
  }

  .community-table td::before {
    content: attr(data-label);
    color: var(--community-muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .community-table td > strong,
  .community-table td > span,
  .community-table td > .community-risk {
    min-width: 0;
    justify-self: start;
  }
}
