:root {
  color-scheme: dark;
  --bg: #07101f;
  --panel: rgba(13, 26, 47, 0.88);
  --panel-strong: #101f37;
  --panel-soft: rgba(18, 34, 58, 0.72);
  --border: rgba(148, 177, 215, 0.16);
  --border-strong: rgba(124, 190, 255, 0.3);
  --text: #f4f8ff;
  --muted: #97a9c3;
  --cyan: #35d2e5;
  --blue: #4b8dff;
  --violet: #9d7bff;
  --green: #44d39c;
  --amber: #f4bd58;
  --danger: #ff6f83;
  --shadow: 0 24px 80px rgba(0, 5, 15, 0.34);
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(38, 104, 193, 0.18), transparent 34rem),
    linear-gradient(145deg, #07101f 0%, #081525 48%, #09111d 100%);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

button, input, select { font: inherit; }
button { cursor: pointer; }

.ambient {
  position: fixed;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.12;
  pointer-events: none;
}
.ambient-one { top: 12%; right: -8rem; background: var(--cyan); }
.ambient-two { bottom: -10rem; left: 6%; background: var(--violet); }

.app-shell {
  position: relative;
  width: min(1840px, 100%);
  margin: 0 auto;
  padding: 0 28px 32px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 4px 22px;
}

.brand-block, .topbar-actions, .section-heading, .pagination, footer {
  display: flex;
  align-items: center;
}

.brand-block { gap: 16px; }
.brand-block h1, .login-card h1 { margin: 0; letter-spacing: -0.03em; }
.brand-block h1 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.subtitle { margin: 4px 0 0; color: var(--muted); }
.eyebrow {
  margin: 0 0 3px;
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.brand-mark {
  position: relative;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border: 1px solid rgba(53, 210, 229, 0.35);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(53, 210, 229, 0.2), rgba(75, 141, 255, 0.09));
  box-shadow: inset 0 0 26px rgba(53, 210, 229, 0.08), 0 14px 30px rgba(0, 0, 0, 0.24);
}
.brand-mark::before, .brand-mark::after, .brand-mark span {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}
.brand-mark::before { top: 17px; transform: rotate(-12deg); }
.brand-mark span { top: 27px; width: 22px; left: 19px; transform: rotate(10deg); }
.brand-mark::after { top: 38px; transform: rotate(-7deg); }
.brand-mark.small { width: 52px; height: 52px; border-radius: 16px; }

.topbar-actions { gap: 10px; }
.sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid rgba(68, 211, 156, 0.25);
  border-radius: 999px;
  background: rgba(68, 211, 156, 0.08);
  color: #b9f7dd;
  font-size: 0.86rem;
  font-weight: 700;
}
.sync-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(68, 211, 156, 0.1);
}

.primary-button, .ghost-button, .text-button {
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 10px;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}
.primary-button {
  border: 1px solid rgba(53, 210, 229, 0.45);
  background: linear-gradient(135deg, #28b7ce, #3c7eea);
  color: white;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(39, 132, 214, 0.2);
}
.ghost-button {
  border: 1px solid var(--border-strong);
  background: rgba(15, 33, 58, 0.72);
  color: var(--text);
}
.text-button { border: 1px solid transparent; background: transparent; color: var(--muted); }
.primary-button:hover, .ghost-button:hover { transform: translateY(-1px); border-color: rgba(53, 210, 229, 0.7); }
.text-button:hover { color: var(--text); }
.wide { width: 100%; }
button:disabled { cursor: not-allowed; opacity: 0.42; transform: none; }

.workspace-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: rgba(8, 19, 34, 0.78);
  box-shadow: 0 16px 48px rgba(0, 5, 15, 0.16);
}
.workspace-nav.lab-enabled { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.workspace-tab {
  display: grid;
  gap: 2px;
  min-height: 64px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}
.workspace-tab strong { color: #dce7f7; font-size: 0.95rem; }
.workspace-tab span { font-size: 0.76rem; }
.workspace-tab:hover { border-color: var(--border); background: rgba(75, 141, 255, 0.06); color: #b8c8df; }
.workspace-tab.active {
  border-color: rgba(53, 210, 229, 0.34);
  background: linear-gradient(145deg, rgba(53, 210, 229, 0.13), rgba(75, 141, 255, 0.08));
  color: #b9f4fb;
  box-shadow: inset 0 0 24px rgba(53, 210, 229, 0.05);
}
.workspace-tab.active strong { color: white; }

.filter-shell {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  padding: 12px 16px;
}
.filter-bar strong { display: block; color: #dce7f7; font-size: 0.9rem; }
.filter-actions { display: flex; align-items: center; gap: 8px; }

.control-panel {
  display: grid;
  grid-template-columns: 150px 190px 160px minmax(230px, 1fr) auto;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid var(--border);
  background: rgba(8, 20, 36, 0.42);
}

label { display: grid; gap: 6px; }
label > span { color: var(--muted); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; }
input, select {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  background-color: #0b192d;
  color: var(--text);
  padding: 9px 12px;
}
select {
  appearance: none;
  padding-right: 34px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 19px, calc(100% - 12px) 19px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
input:focus, select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(53, 210, 229, 0.1); }
.control-panel > button { align-self: end; }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.metric-card {
  position: relative;
  min-height: 126px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(145deg, var(--panel-strong), rgba(11, 25, 44, 0.75));
}
.metric-card::after {
  content: "";
  position: absolute;
  width: 76px;
  height: 76px;
  right: -24px;
  top: -28px;
  border-radius: 50%;
  background: currentColor;
  filter: blur(28px);
  opacity: 0.17;
}
.metric-card p, .metric-card span { margin: 0; color: var(--muted); }
.metric-card p { font-size: 0.85rem; font-weight: 700; }
.metric-card strong { display: block; margin: 8px 0 3px; font-size: clamp(1.65rem, 2.4vw, 2.35rem); line-height: 1; }
.metric-card span { font-size: 0.75rem; }
.accent-cyan { color: var(--cyan); } .accent-violet { color: var(--violet); }
.accent-blue { color: var(--blue); } .accent-green { color: var(--green); }
.accent-amber { color: var(--amber); }
.accent-rose { color: #e78aa6; }
.metric-card strong { color: var(--text); }

.dashboard-view { animation: view-in 180ms ease-out; }
@keyframes view-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.category-card {
  display: grid;
  gap: 7px;
  min-height: 170px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(17, 36, 62, 0.92), rgba(10, 25, 44, 0.72));
  color: var(--text);
  text-align: left;
  transition: border-color 140ms ease, transform 140ms ease, background 140ms ease;
}
.category-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: linear-gradient(145deg, rgba(21, 43, 73, 0.95), rgba(11, 29, 51, 0.8));
}
.category-kicker { color: var(--cyan); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.13em; }
.category-card strong { font-size: 1.1rem; }
.category-card p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.category-count { align-self: end; color: #c8d8ee; font-size: 0.82rem; font-weight: 750; }

.daily-heading, .daily-table-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.daily-heading h2 { margin: 0; font-size: 1.35rem; }
.section-copy { margin: 5px 0 0; color: var(--muted); font-size: 0.88rem; }
.session-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  min-width: 196px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(7, 18, 33, 0.76);
}
.session-button {
  min-height: 38px;
  padding: 7px 15px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-weight: 750;
}
.session-button.active {
  border-color: rgba(53, 210, 229, 0.32);
  background: rgba(53, 210, 229, 0.12);
  color: #d8fbff;
}
.daily-market-section {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(7, 18, 33, 0.46);
}
.daily-market-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 11px;
}
.daily-market-title > div { display: flex; align-items: baseline; gap: 10px; }
.daily-market-title > div > span { color: var(--muted); font-size: 0.78rem; }
.daily-market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}
.daily-market-card {
  display: grid;
  gap: 7px;
  min-height: 92px;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(15, 33, 58, 0.62);
  color: var(--text);
  text-align: left;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}
.daily-market-card:hover { transform: translateY(-1px); border-color: var(--border-strong); }
.daily-market-card.active {
  border-color: rgba(53, 210, 229, 0.48);
  background: linear-gradient(145deg, rgba(53, 210, 229, 0.13), rgba(75, 141, 255, 0.08));
  box-shadow: inset 0 0 22px rgba(53, 210, 229, 0.04);
}
.daily-market-card header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.daily-market-card header strong { font-size: 0.9rem; }
.daily-market-card header span { color: var(--cyan); font-size: 1.05rem; font-weight: 800; }
.daily-market-card footer { display: flex; justify-content: space-between; gap: 8px; padding: 0; font-size: 0.72rem; }
.daily-market-card footer span { color: var(--muted); }
.daily-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}
.daily-metric-card {
  min-height: 100px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(17, 36, 62, 0.88), rgba(10, 25, 44, 0.7));
}
.daily-metric-card span, .daily-metric-card small { display: block; color: var(--muted); }
.daily-metric-card span { font-size: 0.78rem; font-weight: 700; }
.daily-metric-card strong { display: block; margin-top: 7px; font-size: 1.42rem; }
.daily-metric-card small { margin-top: 2px; font-size: 0.74rem; }
.daily-table-heading { margin: 4px 0 12px; }
.daily-table-heading > div { display: flex; align-items: baseline; gap: 10px; }
.daily-table-wrap table { min-width: 1180px; }
.negative { color: var(--danger); }
.pill.win, .pill.half-win { background: rgba(68, 211, 156, 0.11); color: #9ceacb; }
.pill.loss, .pill.half-loss { background: rgba(255, 111, 131, 0.11); color: #ffabba; }
.pill.push, .pill.void { background: rgba(151, 169, 195, 0.12); color: #c5d1e2; }

.data-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid rgba(75, 141, 255, 0.22);
  border-radius: 14px;
  background: rgba(57, 111, 203, 0.08);
}
.notice-icon {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: rgba(75, 141, 255, 0.22);
  color: #bcd5ff;
  font-weight: 800;
}
.data-notice p { margin: 2px 0 0; color: var(--muted); }

.section-block {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 16px 48px rgba(0, 5, 15, 0.18);
}
.section-heading { justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.section-heading h2 { margin: 0; font-size: 1.25rem; }
.section-meta { color: var(--muted); font-size: 0.82rem; text-align: right; }

.account-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(420px, 1.15fr);
  gap: 16px;
}
.account-grid .section-block { margin-top: 16px; }
.account-details { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.account-details div {
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(7, 18, 33, 0.46);
}
.account-details dt { color: var(--muted); font-size: 0.74rem; }
.account-details dd { margin: 4px 0 0; color: var(--text); font-weight: 750; overflow-wrap: anywhere; }
.new-invite-panel {
  margin-top: 17px;
  padding: 14px;
  border: 1px solid rgba(53, 210, 229, 0.34);
  border-radius: 13px;
  background: rgba(53, 210, 229, 0.07);
}
.new-invite-panel > span, .new-invite-panel small { display: block; color: var(--muted); font-size: 0.76rem; }
.new-invite-panel > div { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.new-invite-panel code {
  min-width: 0;
  flex: 1;
  padding: 10px 12px;
  overflow: auto;
  border-radius: 9px;
  background: #071423;
  color: #b9f7ff;
  font-size: 0.88rem;
  white-space: nowrap;
}
.account-table-wrap table { min-width: 1060px; }
.row-actions { display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.compact-button { min-height: 32px; padding: 4px 8px; font-size: 0.76rem; }
.danger-text { color: #ff9aaa; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; }
.status-dot.online { background: var(--green); box-shadow: 0 0 0 4px rgba(68, 211, 156, 0.09); }
.status-dot.offline { background: var(--danger); box-shadow: 0 0 0 4px rgba(255, 111, 131, 0.08); }
.pill.invite-active { background: rgba(68, 211, 156, 0.11); color: #9ceacb; }
.pill.invite-used { background: rgba(75, 141, 255, 0.12); color: #bcd4ff; }
.pill.invite-expired, .pill.invite-revoked { background: rgba(151, 169, 195, 0.12); color: #c5d1e2; }
.pill.invite-restricted { background: rgba(255, 111, 131, 0.11); color: #ffabba; }

.market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.market-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(17, 36, 62, 0.9), rgba(11, 27, 48, 0.68));
  transition: border-color 140ms ease, transform 140ms ease;
}
.market-card:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.market-card header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.market-card h3 { margin: 0; font-size: 1rem; }
.market-card .count { color: var(--cyan); font-size: 1.35rem; font-weight: 800; }
.market-card dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 15px 0 0; }
.market-card dt { color: var(--muted); font-size: 0.72rem; }
.market-card dd { margin: 3px 0 0; font-weight: 700; }

.table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 13px;
}
table { width: 100%; min-width: 980px; border-collapse: collapse; }
.predictions-table-wrap table { min-width: 1420px; }
th, td { padding: 12px 14px; border-bottom: 1px solid rgba(148, 177, 215, 0.1); text-align: left; vertical-align: middle; }
th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #11213a;
  color: #b9c9df;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
td { color: #dce7f7; font-size: 0.86rem; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(75, 141, 255, 0.045); }
.model-name { max-width: 360px; color: var(--text); font-weight: 750; overflow-wrap: anywhere; }
.subline { display: block; margin-top: 3px; color: var(--muted); font-size: 0.74rem; }
.fixture-cell { min-width: 300px; }
.fixture-cell strong { display: block; color: var(--text); }
.result-cell { min-width: 220px; }
.result-cell strong { display: block; color: var(--text); white-space: nowrap; }
.result-cell .pill { margin-top: 7px; }
.recommendation-cell { min-width: 230px; }
.bundle-selections { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.selection-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid rgba(75, 141, 255, 0.22);
  border-radius: 8px;
  background: rgba(75, 141, 255, 0.07);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 750;
  white-space: nowrap;
}
.positive { color: var(--green); }
.muted { color: var(--muted); }
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(75, 141, 255, 0.11);
  color: #bcd4ff;
  font-size: 0.73rem;
  font-weight: 800;
  white-space: nowrap;
}
.pill.scheduled { background: rgba(244, 189, 88, 0.11); color: #ffd98b; }
.pill.finished { background: rgba(68, 211, 156, 0.11); color: #9ceacb; }
.empty-state { padding: 36px !important; color: var(--muted); text-align: center; }

.pagination { justify-content: flex-end; gap: 14px; margin-top: 14px; color: var(--muted); }
footer { justify-content: space-between; gap: 16px; padding: 24px 4px 0; color: var(--muted); font-size: 0.78rem; }

.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 9, 18, 0.72);
  backdrop-filter: blur(18px);
}
.login-card {
  width: min(430px, 100%);
  padding: 34px;
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(17, 35, 60, 0.98), rgba(8, 20, 37, 0.98));
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.48);
}
.login-card .brand-mark { margin-bottom: 24px; }
.login-card h1 { font-size: 2rem; }
.login-copy { margin: 8px 0 24px; color: var(--muted); }
.login-card label { margin-bottom: 14px; }
.field-note { margin: -3px 0 13px; color: var(--muted); font-size: 0.74rem; }
.auth-mode-toggle { margin-top: 7px; }
.form-error { min-height: 24px; margin: 0 0 8px; color: #ff9aaa; font-size: 0.85rem; }
.security-note { margin: 14px 0 0; color: var(--muted); font-size: 0.75rem; text-align: center; }

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  max-width: min(420px, calc(100vw - 48px));
  padding: 12px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  background: #13243d;
  box-shadow: var(--shadow);
}

@media (max-width: 1120px) {
  .workspace-nav { grid-template-columns: repeat(3, 1fr); }
  .control-panel { grid-template-columns: repeat(3, 1fr); }
  .search-field { grid-column: span 2; }
  .summary-grid { grid-template-columns: repeat(3, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .daily-summary-grid { grid-template-columns: repeat(3, 1fr); }
  .market-grid { grid-template-columns: repeat(2, 1fr); }
  .account-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .app-shell { padding: 0 14px 24px; }
  .topbar, .section-heading { align-items: flex-start; flex-direction: column; }
  .topbar-actions { width: 100%; flex-wrap: wrap; }
  .sync-badge { margin-right: auto; }
  .workspace-nav {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .workspace-tab { min-width: 160px; scroll-snap-align: start; }
  .filter-bar { align-items: flex-start; flex-direction: column; }
  .filter-actions { width: 100%; justify-content: flex-end; }
  .control-panel { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .control-panel > button { width: 100%; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .summary-grid .metric-card:last-child { grid-column: 1 / -1; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 145px; }
  .daily-heading, .daily-table-heading { align-items: flex-start; flex-direction: column; }
  .daily-market-title { align-items: flex-start; flex-direction: column; }
  .daily-market-title > div { align-items: flex-start; flex-direction: column; gap: 2px; }
  .session-switch { width: 100%; }
  .daily-summary-grid { grid-template-columns: 1fr 1fr; }
  .market-grid { grid-template-columns: 1fr; }
  .account-details { grid-template-columns: 1fr 1fr; }
  .section-block { padding: 15px; }
  .section-meta { text-align: left; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
  .control-panel, .summary-grid { grid-template-columns: 1fr; }
  .search-field, .summary-grid .metric-card:last-child { grid-column: auto; }
  .filter-actions { justify-content: stretch; }
  .filter-actions button { flex: 1; }
  .daily-summary-grid { grid-template-columns: 1fr; }
  .account-details { grid-template-columns: 1fr; }
  .brand-block { align-items: flex-start; }
  .brand-mark.small { display: none; }
  .login-card { padding: 26px 22px; }
}

/* 2026 visual refresh: deep match-control console */
:root {
  --bg: #050b14;
  --panel: rgba(10, 22, 39, 0.9);
  --panel-strong: #0d1d33;
  --panel-soft: rgba(15, 31, 52, 0.78);
  --border: rgba(137, 173, 215, 0.14);
  --border-strong: rgba(75, 197, 231, 0.34);
  --text: #f5f9ff;
  --muted: #91a5bf;
  --cyan: #3dd9e9;
  --blue: #518cff;
  --violet: #a783ff;
  --green: #42d9a2;
  --amber: #f7c768;
  --danger: #ff7187;
  --shadow: 0 22px 64px rgba(0, 5, 14, 0.34);
  --shadow-soft: 0 12px 34px rgba(0, 5, 14, 0.22);
}

html { scrollbar-color: #29435f #07101c; }
body {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 7% 0%, rgba(42, 113, 208, 0.2), transparent 30rem),
    radial-gradient(circle at 92% 7%, rgba(34, 193, 211, 0.12), transparent 34rem),
    radial-gradient(circle at 48% 110%, rgba(124, 84, 221, 0.14), transparent 42rem),
    linear-gradient(155deg, #050b14 0%, #071321 48%, #050c16 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(115, 155, 199, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(115, 155, 199, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}
::selection { background: rgba(61, 217, 233, 0.24); color: white; }

.ambient { width: 34rem; height: 34rem; filter: blur(120px); opacity: 0.1; }
.ambient-one { top: -12rem; right: -10rem; }
.ambient-two { bottom: -18rem; left: -9rem; }

.app-shell {
  width: min(1760px, calc(100% - 48px));
  padding: 0 0 40px;
}

.topbar {
  min-height: 132px;
  padding: 28px 6px 24px;
}
.brand-block { gap: 18px; }
.brand-block h1 { font-size: clamp(1.85rem, 2.6vw, 2.75rem); line-height: 1.08; }
.subtitle { margin-top: 7px; color: #8fa5bf; font-size: 0.95rem; }
.eyebrow { margin-bottom: 6px; font-size: 0.78rem; letter-spacing: 0.19em; }

.brand-mark {
  width: 64px;
  height: 64px;
  border-color: rgba(61, 217, 233, 0.38);
  border-radius: 19px;
  background:
    radial-gradient(circle at 28% 22%, rgba(61, 217, 233, 0.26), transparent 50%),
    linear-gradient(145deg, rgba(32, 114, 158, 0.4), rgba(38, 72, 135, 0.2));
  box-shadow: inset 0 0 30px rgba(61, 217, 233, 0.08), 0 18px 42px rgba(0, 5, 15, 0.34);
}
.brand-mark::before, .brand-mark::after, .brand-mark span {
  left: 14px;
  right: 14px;
  height: 3px;
  box-shadow: 0 0 12px rgba(61, 217, 233, 0.35);
}
.brand-mark::before { top: 19px; }
.brand-mark span { top: 30px; left: 20px; width: 25px; }
.brand-mark::after { top: 42px; }
.brand-mark.small { width: 58px; height: 58px; border-radius: 18px; }

.topbar-actions { gap: 12px; }
.sync-badge {
  min-height: 44px;
  padding: 10px 15px;
  border-color: rgba(66, 217, 162, 0.26);
  background: linear-gradient(135deg, rgba(66, 217, 162, 0.11), rgba(14, 88, 81, 0.08));
  font-size: 0.875rem;
  box-shadow: inset 0 0 18px rgba(66, 217, 162, 0.04);
}
.sync-badge i { animation: sync-pulse 2.2s ease-in-out infinite; }
@keyframes sync-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(66, 217, 162, 0.09); }
  50% { box-shadow: 0 0 0 7px rgba(66, 217, 162, 0.02); }
}

.primary-button, .ghost-button, .text-button {
  min-height: 44px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 720;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, color 160ms ease;
}
.primary-button {
  border-color: rgba(83, 207, 236, 0.5);
  background: linear-gradient(135deg, #27bfd2 0%, #4388f7 100%);
  box-shadow: 0 12px 28px rgba(44, 136, 219, 0.22), inset 0 1px rgba(255, 255, 255, 0.13);
}
.ghost-button {
  border-color: rgba(112, 164, 219, 0.28);
  background: linear-gradient(145deg, rgba(16, 37, 63, 0.88), rgba(10, 24, 43, 0.8));
}
.text-button { color: #9fb1c8; }
.primary-button:hover, .ghost-button:hover {
  transform: translateY(-2px);
  border-color: rgba(61, 217, 233, 0.7);
  box-shadow: 0 14px 32px rgba(22, 105, 178, 0.24);
}
button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
button:disabled {
  opacity: 1;
  border-color: rgba(137, 173, 215, 0.12);
  background: rgba(69, 88, 111, 0.18);
  color: #6f829a;
  box-shadow: none;
}

.workspace-nav {
  position: sticky;
  top: 12px;
  z-index: 5;
  gap: 7px;
  margin-bottom: 16px;
  padding: 8px;
  border-color: rgba(126, 169, 216, 0.18);
  border-radius: 20px;
  background: rgba(5, 15, 27, 0.84);
  box-shadow: 0 20px 52px rgba(0, 5, 14, 0.28), inset 0 1px rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(22px) saturate(135%);
}
.workspace-tab {
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 11px;
  min-height: 72px;
  padding: 11px 13px;
  border-radius: 14px;
}
.workspace-tab::before {
  content: attr(data-glyph);
  display: grid;
  grid-row: 1 / 3;
  width: 38px;
  height: 38px;
  align-self: center;
  place-items: center;
  border: 1px solid rgba(118, 164, 211, 0.14);
  border-radius: 12px;
  background: rgba(20, 43, 70, 0.5);
  color: #7894b5;
  font-size: 0.88rem;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.workspace-tab strong { align-self: end; font-size: 0.96rem; letter-spacing: 0.01em; }
.workspace-tab span { align-self: start; overflow: hidden; color: #7890ad; font-size: 0.8rem; text-overflow: ellipsis; white-space: nowrap; }
.workspace-tab:hover { background: rgba(60, 113, 181, 0.07); }
.workspace-tab.active {
  border-color: rgba(61, 217, 233, 0.34);
  background: linear-gradient(135deg, rgba(34, 159, 183, 0.15), rgba(54, 102, 182, 0.1));
  box-shadow: inset 0 0 28px rgba(61, 217, 233, 0.035), 0 8px 18px rgba(0, 8, 19, 0.14);
}
.workspace-tab.active::before {
  border-color: rgba(61, 217, 233, 0.38);
  background: linear-gradient(145deg, rgba(61, 217, 233, 0.19), rgba(81, 140, 255, 0.13));
  color: #7ff2ff;
  box-shadow: 0 0 24px rgba(61, 217, 233, 0.1);
}
.workspace-tab.active span { color: #9ab2cb; }
.workspace-menu-shell { position: relative; min-width: 0; }
.workspace-menu-shell > .workspace-tab { width: 100%; }
.workspace-menu-trigger { position: relative; padding-right: 32px; }
.workspace-menu-caret {
  position: absolute;
  right: 13px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-68%) rotate(45deg);
  transition: transform 150ms ease;
}
.workspace-menu-shell.open .workspace-menu-caret {
  transform: translateY(-28%) rotate(225deg);
}
.workspace-dropdown {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  min-width: 290px;
  padding: 7px;
  border: 1px solid rgba(126, 169, 216, 0.22);
  border-radius: 14px;
  background: rgba(7, 19, 34, 0.98);
  box-shadow: 0 20px 48px rgba(0, 7, 18, 0.3);
  backdrop-filter: blur(20px);
}
.workspace-dropdown-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  text-align: left;
}
.workspace-dropdown-item:hover,
.workspace-dropdown-item.active {
  border-color: rgba(61, 217, 233, 0.24);
  background: rgba(61, 217, 233, 0.08);
}
.workspace-dropdown-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(118, 164, 211, 0.18);
  border-radius: 10px;
  background: rgba(20, 43, 70, 0.5);
  color: #7894b5;
}
.workspace-dropdown-item strong,
.workspace-dropdown-item small { display: block; }
.workspace-dropdown-item strong { font-size: 0.86rem; }
.workspace-dropdown-item small { margin-top: 3px; color: #7890ad; font-size: 0.72rem; }

.filter-shell {
  border-color: rgba(132, 172, 215, 0.17);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(12, 26, 45, 0.9), rgba(7, 18, 32, 0.82));
  box-shadow: var(--shadow-soft), inset 0 1px rgba(255, 255, 255, 0.025);
}
.filter-bar { min-height: 74px; padding: 14px 18px; }
.filter-bar strong { font-size: 0.92rem; }
.control-panel { padding: 18px; background: rgba(4, 14, 26, 0.46); }
label > span { font-size: 0.875rem; letter-spacing: 0.02em; }
input, select {
  min-height: 46px;
  border-color: rgba(135, 174, 214, 0.18);
  border-radius: 12px;
  background-color: rgba(6, 18, 33, 0.86);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.18);
}
input:hover, select:hover { border-color: rgba(112, 170, 225, 0.32); }

.summary-grid { gap: 14px; margin: 18px 0; }
.metric-card {
  min-height: 142px;
  padding: 20px;
  border-color: rgba(132, 172, 215, 0.15);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 42%),
    linear-gradient(145deg, rgba(15, 33, 56, 0.96), rgba(7, 21, 38, 0.86));
  box-shadow: var(--shadow-soft), inset 0 1px rgba(255, 255, 255, 0.025);
  transition: transform 180ms ease, border-color 180ms ease;
}
.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 20px;
  width: 44px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
  opacity: 0.75;
}
.metric-card:hover { transform: translateY(-3px); border-color: rgba(130, 185, 235, 0.28); }
.metric-card p { font-size: 0.9rem; }
.metric-card strong { margin: 13px 0 7px; font-size: clamp(1.8rem, 2.4vw, 2.5rem); }
.metric-card span { font-size: 0.82rem; }

.category-grid { gap: 14px; margin: 18px 0; }
.category-card {
  min-height: 178px;
  padding: 22px;
  border-color: rgba(132, 172, 215, 0.15);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(81, 140, 255, 0.09), transparent 12rem),
    linear-gradient(145deg, rgba(14, 32, 54, 0.94), rgba(7, 21, 38, 0.82));
  box-shadow: var(--shadow-soft);
}
.category-card:hover { transform: translateY(-4px); border-color: rgba(61, 217, 233, 0.34); }
.category-kicker { font-size: 0.8rem; }
.category-card strong { font-size: 1.15rem; }
.category-card p { font-size: 0.9rem; }
.category-count { color: #d4e2f3; font-size: 0.88rem; }

.section-block {
  margin-top: 18px;
  padding: 24px;
  border-color: rgba(132, 172, 215, 0.16);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 32%),
    linear-gradient(145deg, rgba(12, 27, 47, 0.94), rgba(7, 20, 36, 0.88));
  box-shadow: var(--shadow-soft), inset 0 1px rgba(255, 255, 255, 0.025);
}
.section-heading { margin-bottom: 18px; }
.section-heading h2, .daily-heading h2 { font-size: 1.35rem; letter-spacing: -0.015em; }
.section-copy { color: #91a7c0; font-size: 0.9rem; }
.section-meta { font-size: 0.85rem; }
.data-notice {
  padding: 16px 18px;
  border-color: rgba(81, 140, 255, 0.24);
  background: linear-gradient(135deg, rgba(52, 105, 189, 0.1), rgba(34, 81, 141, 0.05));
}

.daily-market-section {
  padding: 17px;
  border-radius: 17px;
  background: rgba(4, 15, 28, 0.48);
}
.daily-market-title > div > span { font-size: 0.84rem; }
.daily-market-card {
  min-height: 102px;
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(18, 39, 65, 0.78), rgba(10, 26, 46, 0.72));
}
.daily-market-card header strong { font-size: 0.92rem; }
.daily-market-card footer { font-size: 0.8rem; }
.daily-metric-card {
  min-height: 112px;
  padding: 17px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(16, 35, 59, 0.92), rgba(8, 23, 41, 0.8));
}
.daily-metric-card span { font-size: 0.84rem; }
.daily-metric-card small { font-size: 0.8rem; }

.account-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 166px;
  margin-top: 18px;
  padding: 28px 30px;
  overflow: hidden;
  border: 1px solid rgba(61, 217, 233, 0.2);
  border-radius: 22px;
  background:
    radial-gradient(circle at 82% 38%, rgba(61, 217, 233, 0.13), transparent 15rem),
    radial-gradient(circle at 100% 100%, rgba(81, 140, 255, 0.14), transparent 22rem),
    linear-gradient(135deg, rgba(13, 35, 59, 0.96), rgba(7, 22, 39, 0.92));
  box-shadow: var(--shadow-soft), inset 0 1px rgba(255, 255, 255, 0.035);
}
.account-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(61, 217, 233, 0.03), transparent 35%);
}
.account-hero > div:first-child { position: relative; z-index: 1; max-width: 720px; }
.account-hero h2 { margin: 0; font-size: clamp(1.65rem, 2.4vw, 2.25rem); letter-spacing: -0.025em; }
.account-hero p:last-child { margin: 8px 0 0; color: #98adc5; font-size: 0.94rem; }
.account-hero-mark {
  position: relative;
  width: 102px;
  height: 102px;
  flex: 0 0 auto;
  margin-right: 24px;
  border: 1px solid rgba(61, 217, 233, 0.24);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 217, 233, 0.14), rgba(81, 140, 255, 0.04) 62%, transparent 64%);
  box-shadow: 0 0 54px rgba(61, 217, 233, 0.1);
}
.account-hero-mark::before, .account-hero-mark::after, .account-hero-mark span, .account-hero-mark i {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.account-hero-mark::before { inset: 18px; border: 1px dashed rgba(111, 222, 242, 0.42); }
.account-hero-mark::after { inset: 38px; background: linear-gradient(145deg, var(--cyan), var(--blue)); box-shadow: 0 0 24px rgba(61, 217, 233, 0.38); }
.account-hero-mark span { width: 8px; height: 8px; top: 13px; left: 47px; background: var(--cyan); }
.account-hero-mark i { width: 6px; height: 6px; right: 15px; bottom: 28px; background: var(--blue); }

.account-grid { gap: 18px; grid-template-columns: minmax(420px, 0.95fr) minmax(500px, 1.05fr); }
.account-grid .section-block { min-height: 292px; }
.account-profile-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(167, 131, 255, 0.08), transparent 15rem),
    linear-gradient(145deg, rgba(13, 29, 50, 0.96), rgba(7, 21, 38, 0.88));
}
.invite-generator {
  background:
    radial-gradient(circle at 100% 0%, rgba(61, 217, 233, 0.09), transparent 16rem),
    linear-gradient(145deg, rgba(13, 31, 52, 0.96), rgba(7, 22, 39, 0.88));
}
.account-details { gap: 10px; }
.account-details div {
  min-height: 78px;
  padding: 14px 15px;
  border-color: rgba(132, 172, 215, 0.14);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(7, 20, 36, 0.72), rgba(10, 26, 46, 0.62));
}
.account-details dt { font-size: 0.82rem; }
.account-details dd { margin-top: 7px; font-size: 0.95rem; }
.new-invite-panel {
  padding: 16px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(61, 217, 233, 0.1), rgba(81, 140, 255, 0.06));
}
.new-invite-panel > span, .new-invite-panel small { font-size: 0.8rem; }
.new-invite-panel code { padding: 12px 14px; border: 1px solid rgba(61, 217, 233, 0.14); border-radius: 11px; }

.market-grid { gap: 13px; }
.market-card {
  padding: 19px;
  border-color: rgba(132, 172, 215, 0.15);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(16, 35, 59, 0.92), rgba(8, 23, 41, 0.82));
  box-shadow: 0 10px 26px rgba(0, 5, 14, 0.16);
}
.market-card:hover { transform: translateY(-3px); border-color: rgba(61, 217, 233, 0.32); }
.market-card dt { font-size: 0.8rem; }

.table-wrap {
  border-color: rgba(132, 172, 215, 0.15);
  border-radius: 15px;
  background: rgba(5, 16, 29, 0.38);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.02);
}
th, td { padding: 14px 15px; }
th {
  background: rgba(15, 34, 57, 0.98);
  color: #b9cbe0;
  font-size: 0.8rem;
  letter-spacing: 0.055em;
}
td { color: #deebf8; font-size: 0.875rem; }
tbody tr:nth-child(even) td { background: rgba(25, 48, 77, 0.055); }
tbody tr:hover td { background: rgba(61, 217, 233, 0.045); }
.subline { margin-top: 5px; font-size: 0.8rem; }
.pill { min-height: 29px; padding: 5px 10px; font-size: 0.8rem; }
.compact-button { min-height: 34px; font-size: 0.82rem; }

.topbar-actions { position: relative; }
.user-menu-shell { position: relative; }
.user-menu-trigger {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 10px;
  gap: 10px;
  align-items: center;
  min-width: 230px;
  min-height: 58px;
  padding: 8px 12px 8px 9px;
  border: 1px solid rgba(120, 168, 218, 0.22);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(15, 36, 61, 0.92), rgba(8, 23, 42, 0.9));
  color: var(--text);
  text-align: left;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035), 0 10px 28px rgba(0, 5, 14, 0.2);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.user-menu-trigger:hover, .user-menu-trigger.active {
  border-color: rgba(61, 217, 233, 0.44);
  background: linear-gradient(145deg, rgba(17, 47, 73, 0.96), rgba(9, 29, 51, 0.94));
  box-shadow: inset 0 0 24px rgba(61, 217, 233, 0.04), 0 14px 34px rgba(0, 5, 14, 0.27);
}
.user-avatar {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(109, 181, 237, 0.35);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(55, 102, 151, 0.75), rgba(24, 54, 91, 0.82));
  color: #eaf6ff;
  font-size: 0.95rem;
  font-weight: 850;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}
.user-avatar.large { width: 48px; height: 48px; border-radius: 14px; font-size: 1.05rem; }
.user-trigger-copy { display: grid; gap: 3px; min-width: 0; }
.user-trigger-copy strong { overflow: hidden; font-size: 0.9rem; text-overflow: ellipsis; white-space: nowrap; }
.user-trigger-copy small { overflow: hidden; color: #8fa7c2; font-size: 0.76rem; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-caret {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6f8da9;
  box-shadow: 0 0 0 4px rgba(111, 141, 169, 0.08);
}
.user-menu-trigger.active .user-menu-caret { background: var(--cyan); box-shadow: 0 0 0 5px rgba(61, 217, 233, 0.09); }
.user-dropdown {
  position: absolute;
  z-index: 50;
  top: calc(100% + 10px);
  right: 0;
  width: min(390px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid rgba(89, 151, 205, 0.3);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(61, 217, 233, 0.1), transparent 14rem),
    linear-gradient(155deg, rgba(12, 31, 53, 0.99), rgba(5, 18, 33, 0.99));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.52), inset 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(26px) saturate(135%);
}
.user-dropdown-header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 8px 8px 14px;
  border-bottom: 1px solid rgba(130, 170, 213, 0.15);
}
.user-dropdown-header > div { display: grid; gap: 3px; min-width: 0; }
.user-dropdown-header span, .user-dropdown-header small { color: #8099b5; font-size: 0.76rem; }
.user-dropdown-header strong { overflow: hidden; font-size: 1rem; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-list { display: grid; gap: 4px; padding-top: 9px; }
.user-menu-list button {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: var(--text);
  text-align: left;
  transition: border-color 150ms ease, background 150ms ease;
}
.user-menu-list button:hover {
  border-color: rgba(106, 163, 217, 0.18);
  background: rgba(50, 94, 139, 0.12);
}
.menu-item-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(94, 159, 213, 0.2);
  border-radius: 10px;
  background: rgba(30, 67, 105, 0.36);
  color: #8edfeb;
  font-size: 0.78rem;
  font-weight: 800;
}
.user-menu-list button > span:last-child { display: grid; gap: 3px; }
.user-menu-list button strong { font-size: 0.875rem; }
.user-menu-list button small { color: #8298b1; font-size: 0.76rem; }
.user-menu-list .danger-menu-item { margin-top: 4px; border-top: 1px solid rgba(130, 170, 213, 0.12); border-radius: 0 0 13px 13px; color: #ff9ea9; }
.user-menu-list .danger-menu-item .menu-item-icon { border-color: rgba(255, 111, 126, 0.18); background: rgba(119, 39, 52, 0.2); color: #ff9ea9; }

#accountProfileCard, #inviteGenerator, #inviteHistoryPanel, #adminUsersPanel, #passwordSettingsPanel { scroll-margin-top: 112px; }
.account-settings-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(81, 140, 255, 0.09), transparent 18rem),
    linear-gradient(145deg, rgba(13, 30, 51, 0.95), rgba(7, 21, 38, 0.88));
}
.password-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr)) auto;
  gap: 14px;
  align-items: end;
}
.password-form label { display: grid; gap: 8px; }
.password-form .primary-button { min-width: 142px; }
.account-form-error { min-height: 20px; margin: 12px 0 0; }

.daily-parlay-row td { vertical-align: middle; }
.daily-leg-stack { display: grid; min-width: 290px; }
.daily-leg {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 8px 0;
}
.daily-leg + .daily-leg { border-top: 1px dashed rgba(132, 172, 215, 0.2); }
.daily-leg-number {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(61, 217, 233, 0.28);
  border-radius: 8px;
  background: rgba(61, 217, 233, 0.09);
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
}
.daily-leg strong { display: block; line-height: 1.45; }
.daily-leg .subline { display: block; line-height: 1.45; }
.fixture-versus { margin: 0 4px; color: #6f87a2; font-size: 0.75rem; font-weight: 700; }
.daily-pick-stack { min-width: 220px; }
.daily-pick-stack .daily-leg-number {
  border-color: rgba(81, 140, 255, 0.3);
  background: rgba(81, 140, 255, 0.1);
  color: #9fbcff;
}

.login-overlay {
  background:
    radial-gradient(circle at 50% 20%, rgba(48, 124, 214, 0.15), transparent 28rem),
    rgba(3, 9, 17, 0.86);
  backdrop-filter: blur(24px);
}
.login-card {
  position: relative;
  width: min(470px, 100%);
  padding: 38px;
  overflow: hidden;
  border-color: rgba(83, 192, 225, 0.34);
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0%, rgba(61, 217, 233, 0.1), transparent 17rem),
    linear-gradient(150deg, rgba(15, 34, 58, 0.99), rgba(5, 17, 31, 0.99));
  box-shadow: 0 44px 120px rgba(0, 0, 0, 0.55), inset 0 1px rgba(255, 255, 255, 0.04);
}
.login-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 38px;
  width: 74px;
  height: 3px;
  border-radius: 0 0 99px 99px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 0 22px rgba(61, 217, 233, 0.35);
}
.login-card .brand-mark { margin-bottom: 26px; }
.login-card h1 { font-size: 2.15rem; }
.login-copy { margin: 10px 0 26px; font-size: 0.95rem; }
.field-note, .security-note { font-size: 0.8rem; }
.form-error { font-size: 0.875rem; }

.toast {
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(17, 39, 65, 0.96);
  backdrop-filter: blur(18px);
}
footer { padding-top: 28px; font-size: 0.82rem; }

@media (max-width: 1280px) {
  .app-shell { width: min(100% - 32px, 1760px); }
  .workspace-tab { grid-template-columns: 32px minmax(0, 1fr); column-gap: 8px; padding: 10px; }
  .workspace-tab::before { width: 32px; height: 32px; border-radius: 10px; }
  .account-grid { grid-template-columns: 1fr; }
  .password-form { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
}

@media (max-width: 820px) {
  .app-shell { width: calc(100% - 24px); padding-bottom: 28px; }
  .topbar { min-height: 0; padding: 20px 2px 18px; }
  .brand-block h1 { font-size: 1.65rem; }
  .subtitle { font-size: 0.86rem; }
  .workspace-nav { top: 7px; border-radius: 16px; }
  .workspace-tab { min-width: 172px; }
  .account-hero { min-height: 0; padding: 23px; }
  .account-hero-mark { display: none; }
  .account-grid .section-block { min-height: 0; }
  .section-block { padding: 18px; }
  .topbar { flex-wrap: wrap; }
  .topbar-actions { width: 100%; justify-content: flex-end; }
  .user-menu-trigger { min-width: 220px; }
  .password-form { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .topbar .workspace-nav.lab-enabled { grid-template-columns: repeat(5, minmax(104px, 1fr)); }
}

@media (max-width: 520px) {
  .app-shell { width: calc(100% - 20px); }
  .topbar-actions { gap: 8px; }
  .sync-badge { width: 100%; justify-content: center; }
  .workspace-tab { min-width: 154px; }
  .account-hero { padding: 20px; border-radius: 18px; }
  .account-hero h2 { font-size: 1.5rem; }
  .account-details { grid-template-columns: 1fr; }
  .login-overlay { padding: 14px; }
  .login-card { padding: 30px 22px; border-radius: 22px; }
  .login-card::before { left: 22px; }
  .sync-badge { display: none; }
  .topbar-actions { display: grid; grid-template-columns: auto minmax(0, 1fr); }
  .user-menu-trigger { min-width: 0; width: 100%; }
  .user-dropdown { position: fixed; top: 12px; right: 10px; left: 10px; width: auto; }
}

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

/* Server-only Aider model laboratory. */
.lab-view { padding-bottom: 12px; }
.lab-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  padding: 28px 30px;
  border: 1px solid #dbe3ed;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff 0%, #f2fbfd 58%, #edf4ff 100%);
  box-shadow: var(--shadow-soft);
}
.lab-hero h2 { margin: 5px 0 7px; color: #10233b; font-size: clamp(1.55rem, 2.4vw, 2.25rem); }
.lab-hero p:last-child { max-width: 800px; margin: 0; color: #607087; line-height: 1.7; }
.lab-status-badge {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid #bdebdc;
  border-radius: 999px;
  background: #edfdf7;
  color: #087552;
  font-weight: 800;
}
.lab-status-badge.busy { border-color: #b7deee; background: #edf9fd; color: #087f98; }
.lab-status-badge.error { border-color: #f1d6a6; background: #fff8e8; color: #98620a; }
.lab-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.lab-status-grid article {
  display: grid;
  gap: 5px;
  padding: 17px 18px;
  border: 1px solid #dbe3ed;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.lab-status-grid span, .lab-status-grid small { color: #78879b; }
.lab-status-grid strong { overflow: hidden; color: #142a44; font-size: 1.18rem; text-overflow: ellipsis; white-space: nowrap; }
.lab-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 14px; }
.lab-grid .section-block { min-width: 0; }
.lab-composer form { display: grid; gap: 10px; }
.lab-composer label { color: #41546d; font-weight: 800; }
.lab-composer textarea,
.lab-composer select {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid #ccd8e6;
  border-radius: 14px;
  background: #fbfcfe;
  color: #17283f;
  font: inherit;
  line-height: 1.65;
}
.lab-composer textarea { min-height: 210px; resize: vertical; }
.lab-composer select {
  min-height: 48px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #607087 50%),
    linear-gradient(135deg, #607087 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
}
.lab-composer textarea:focus,
.lab-composer select:focus { outline: 2px solid rgba(24, 164, 191, 0.2); border-color: #41b8cc; }
.lab-composer textarea:disabled,
.lab-composer select:disabled { cursor: not-allowed; opacity: 0.62; }
.lab-prompt-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.lab-prompt-actions small { max-width: 620px; color: #78879b; line-height: 1.55; }
.lab-quick-prompts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.lab-quick-prompts button {
  padding: 8px 11px;
  border: 1px solid #d5e0eb;
  border-radius: 999px;
  background: #f6f9fc;
  color: #38516f;
  font: inherit;
  font-size: 0.82rem;
}
.lab-quick-prompts button:hover { border-color: #96ced8; background: #edfafd; }
.lab-job-meta { margin-bottom: 10px; color: #6a7d94; font-size: 0.84rem; }
.lab-output {
  min-height: 302px;
  max-height: 500px;
  overflow: auto;
  margin: 0;
  padding: 16px;
  border: 1px solid #d8e3ee;
  border-radius: 14px;
  background: #f7f9fc;
  color: #203650;
  font: 0.82rem/1.65 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}
.lab-grid-bottom { grid-template-columns: 0.8fr 1.2fr; }
.lab-file-list, .lab-commit-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lab-file-list li, .lab-commit-list li { padding: 10px 12px; border: 1px solid #e1e7ef; border-radius: 11px; background: #f9fbfd; color: #607087; }
.lab-file-list code { color: #274b6d; }
.lab-file-list li:has(.lab-file-button) { padding: 0; overflow: hidden; }
.lab-file-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 11px 13px;
  border: 0;
  background: transparent;
  color: #274b6d;
  text-align: left;
  font: inherit;
}
.lab-file-button:hover { background: #edf8fc; }
.lab-file-button strong { color: #173a5d; }
.lab-file-button code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lab-file-button small { flex: 0 0 auto; color: #8796a9; }
.lab-model-list { max-height: 410px; overflow: auto; }
.lab-commit-list li { display: flex; align-items: flex-start; gap: 12px; }
.lab-commit-list code { flex: 0 0 auto; padding: 3px 6px; border-radius: 6px; background: #e9f5f9; color: #087f98; }
.lab-commit-list span { display: grid; gap: 4px; min-width: 0; }
.lab-commit-list strong { overflow: hidden; color: #233850; text-overflow: ellipsis; white-space: nowrap; }
.lab-commit-list small { color: #8592a5; }
.cloud-pipeline-card { margin-top: 16px; }
.cloud-pipeline-copy { margin: -2px 0 16px; color: #6b7e96; }
.cloud-pipeline-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cloud-pipeline-metrics article { display: grid; gap: 6px; min-width: 0; padding: 15px; border: 1px solid #d8e4ef; border-radius: 14px; background: #f9fbfd; }
.cloud-pipeline-metrics span, .cloud-pipeline-metrics small { color: #78879b; }
.cloud-pipeline-metrics strong { overflow: hidden; color: #142a44; font-size: 1.1rem; text-overflow: ellipsis; white-space: nowrap; }
.cloud-pipeline-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cloud-validation-output { min-height: 92px; max-height: 220px; margin: 14px 0; padding: 14px; overflow: auto; border: 1px solid #d6e2ec; border-radius: 12px; background: #f6f9fc; color: #304a67; font: 0.84rem/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; }
.cloud-release-table { margin-top: 4px; }
.lab-safety-note { display: flex; gap: 12px; margin-top: 14px; padding: 14px 16px; border: 1px solid #cfe1f0; border-radius: 14px; background: #f2f8fd; color: #61758e; }
.lab-safety-note strong { flex: 0 0 auto; color: #244a6d; }

@media (max-width: 980px) {
  .lab-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cloud-pipeline-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lab-grid, .lab-grid-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .lab-hero { align-items: flex-start; flex-direction: column; padding: 22px; }
  .lab-status-grid { grid-template-columns: 1fr; }
  .cloud-pipeline-metrics { grid-template-columns: 1fr; }
  .lab-prompt-actions, .lab-safety-note { align-items: stretch; flex-direction: column; }
  .lab-prompt-actions .primary-button { width: 100%; }
}

/* Compact application header: brand, primary tabs and account controls share one bar. */
.app-shell {
  width: 100%;
  padding: 0 28px 40px;
}
.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  grid-template-columns: minmax(230px, auto) minmax(620px, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 76px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(121, 166, 212, 0.14);
  background: rgba(4, 14, 26, 0.92);
  box-shadow: 0 16px 42px rgba(0, 5, 14, 0.22);
  backdrop-filter: blur(24px) saturate(135%);
}
.topbar::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 -28px;
  background: inherit;
  border-bottom: inherit;
}
main, footer {
  width: min(94vw, 3000px);
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
}
main { padding-top: 18px; }

.topbar .brand-block { min-width: 0; gap: 10px; }
.topbar .brand-mark.small {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}
.topbar .brand-mark.small::before { top: 11px; right: 9px; left: 9px; }
.topbar .brand-mark.small span { top: 19px; left: 13px; width: 17px; }
.topbar .brand-mark.small::after { top: 28px; right: 9px; left: 9px; }
.topbar .brand-block .eyebrow { margin-bottom: 1px; font-size: 0.64rem; letter-spacing: 0.16em; }
.topbar .brand-block h1 { font-size: 1.14rem; line-height: 1.15; letter-spacing: -0.015em; white-space: nowrap; }
.topbar .brand-block .subtitle { display: none; }

.topbar .workspace-nav {
  position: static;
  top: auto;
  z-index: auto;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 4px;
  border-color: rgba(123, 167, 213, 0.14);
  border-radius: 14px;
  background: rgba(8, 22, 39, 0.68);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.02);
  backdrop-filter: none;
}
.topbar .workspace-tab {
  grid-template-columns: 30px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 8px;
  min-width: 0;
  min-height: 50px;
  padding: 6px 9px;
  border-radius: 10px;
}
.topbar .workspace-tab::before {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  font-size: 0.72rem;
}
.topbar .workspace-tab strong { font-size: 0.84rem; line-height: 1.2; }
.topbar .workspace-tab span { font-size: 0.7rem; line-height: 1.2; }
.topbar .workspace-tab.active {
  background: linear-gradient(135deg, rgba(34, 159, 183, 0.18), rgba(54, 102, 182, 0.11));
}

.topbar .topbar-actions { justify-self: end; gap: 8px; }
.topbar .sync-badge { min-height: 40px; padding: 8px 12px; font-size: 0.8rem; }
.topbar #refreshButton { min-height: 40px; padding: 7px 13px; font-size: 0.82rem; }
.topbar .user-menu-trigger {
  grid-template-columns: 34px minmax(0, 1fr) 8px;
  min-width: 196px;
  min-height: 50px;
  padding: 6px 10px 6px 7px;
  border-radius: 13px;
}
.topbar .user-avatar { width: 34px; height: 34px; border-radius: 10px; font-size: 0.85rem; }
.topbar .user-trigger-copy strong { font-size: 0.82rem; }
.topbar .user-trigger-copy small { font-size: 0.7rem; }

@media (max-width: 1550px) {
  .topbar { grid-template-columns: minmax(215px, auto) minmax(480px, 1fr) auto; gap: 12px; }
  .topbar .workspace-tab { grid-template-rows: auto; align-items: center; }
  .topbar .workspace-tab::before { grid-row: 1; }
  .topbar .workspace-tab span { display: none; }
  .topbar .sync-badge { display: none; }
}

@media (max-width: 1120px) {
  .topbar {
    grid-template-columns: minmax(210px, auto) 1fr;
    gap: 8px 14px;
    padding-bottom: 8px;
  }
  .topbar .workspace-nav { grid-column: 1 / -1; grid-row: 2; }
  .topbar .topbar-actions { grid-column: 2; grid-row: 1; }
  main { padding-top: 14px; }
}

@media (max-width: 820px) {
  .app-shell { width: 100%; padding: 0 12px 28px; }
  .topbar { min-height: 0; padding: 8px 0; }
  .topbar::before { right: -12px; left: -12px; }
  .topbar .brand-block h1 { font-size: 1rem; }
  .topbar .brand-block .eyebrow { font-size: 0.58rem; }
  .topbar .workspace-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(104px, 1fr));
    overflow: visible;
    border-radius: 12px;
    scrollbar-width: thin;
  }
  .topbar .workspace-tab { min-width: 0; }
  .topbar .user-menu-trigger { min-width: 190px; }
}

@media (max-width: 560px) {
  .topbar { grid-template-columns: minmax(150px, auto) 1fr; }
  .topbar .brand-mark.small { width: 36px; height: 36px; }
  .topbar .brand-block .eyebrow { display: none; }
  .topbar .brand-block h1 { max-width: 112px; overflow: hidden; text-overflow: ellipsis; }
  .topbar #refreshButton { display: none; }
  .topbar .topbar-actions { display: block; width: auto; }
  .topbar .user-menu-trigger { grid-template-columns: 32px minmax(0, 1fr) 7px; min-width: 168px; width: auto; }
  .topbar .user-avatar { width: 32px; height: 32px; }
  .topbar .workspace-nav { grid-template-columns: repeat(4, minmax(88px, 1fr)); }
  .topbar .workspace-nav.lab-enabled { grid-template-columns: repeat(5, minmax(88px, 1fr)); }
  .topbar .workspace-tab { grid-template-columns: 24px minmax(0, 1fr); padding: 5px 7px; }
  .topbar .workspace-tab::before { width: 23px; height: 23px; border-radius: 7px; }
}

/* Light workspace theme: clean white surfaces with restrained blue accents. */
:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --panel: rgba(255, 255, 255, 0.98);
  --panel-strong: #ffffff;
  --panel-soft: #f7f9fc;
  --border: rgba(71, 92, 122, 0.17);
  --border-strong: rgba(20, 126, 164, 0.34);
  --text: #142238;
  --muted: #65748a;
  --cyan: #087f98;
  --blue: #2563c7;
  --violet: #7557c7;
  --green: #087f5b;
  --amber: #a16207;
  --danger: #c43d57;
  --shadow: 0 18px 48px rgba(33, 55, 86, 0.11);
  --shadow-soft: 0 10px 28px rgba(33, 55, 86, 0.08);
}

html { scrollbar-color: #b8c6d8 #eef2f7; }
body {
  background:
    radial-gradient(circle at 6% 0%, rgba(46, 134, 222, 0.09), transparent 30rem),
    radial-gradient(circle at 96% 5%, rgba(13, 148, 166, 0.07), transparent 35rem),
    linear-gradient(180deg, #ffffff 0%, #f6f8fb 46%, #f2f5f9 100%);
}
body::before {
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(78, 104, 137, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 104, 137, 0.035) 1px, transparent 1px);
}
::selection { background: rgba(8, 127, 152, 0.2); color: #102033; }
.ambient { opacity: 0.055; }

.topbar {
  border-bottom-color: rgba(87, 108, 136, 0.18);
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 10px 30px rgba(33, 55, 86, 0.09);
}
.subtitle,
.section-copy { color: var(--muted); }
.brand-mark {
  border-color: rgba(8, 127, 152, 0.26);
  background:
    radial-gradient(circle at 28% 22%, rgba(29, 188, 207, 0.2), transparent 50%),
    linear-gradient(145deg, #edfaff, #eef4ff);
  box-shadow: inset 0 0 24px rgba(8, 127, 152, 0.06), 0 10px 22px rgba(41, 91, 126, 0.13);
}
.brand-mark::before,
.brand-mark::after,
.brand-mark span { box-shadow: none; }

.sync-badge {
  border-color: rgba(8, 127, 91, 0.2);
  background: #edfbf6;
  color: #087352;
  box-shadow: none;
}
.ghost-button {
  border-color: #cbd6e3;
  background: #ffffff;
  color: #24364e;
  box-shadow: 0 3px 10px rgba(33, 55, 86, 0.05);
}
.text-button { color: #65748a; }
.text-button:hover { color: #142238; }
.primary-button:hover,
.ghost-button:hover {
  border-color: rgba(8, 127, 152, 0.48);
  box-shadow: 0 8px 20px rgba(33, 91, 151, 0.13);
}
button:disabled {
  border-color: #d9e1eb;
  background: #eef2f6;
  color: #98a4b4;
}

.topbar .workspace-nav,
.workspace-nav {
  border-color: #dbe3ed;
  background: #f7f9fc;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.9);
}
.workspace-tab { color: #68778c; }
.workspace-tab strong { color: #25364d; }
.workspace-tab span,
.workspace-tab.active span { color: #738299; }
.workspace-tab::before {
  border-color: #dce5ef;
  background: #ffffff;
  color: #68809d;
}
.workspace-tab:hover {
  border-color: #d5dfeb;
  background: #eef5fb;
  color: #344a65;
}
.workspace-tab.active,
.topbar .workspace-tab.active {
  border-color: rgba(8, 127, 152, 0.3);
  background: linear-gradient(135deg, #e8f8fb, #eef4ff);
  color: #075f73;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}
.workspace-tab.active strong { color: #12304a; }
.workspace-tab.active::before {
  border-color: rgba(8, 127, 152, 0.26);
  background: linear-gradient(145deg, #dff7fb, #e5efff);
  color: #087f98;
  box-shadow: none;
}
.workspace-dropdown {
  border-color: #d5dfeb;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(33, 55, 86, 0.18);
}
.workspace-dropdown-item { color: #25364d; }
.workspace-dropdown-item:hover,
.workspace-dropdown-item.active {
  border-color: rgba(8, 127, 152, 0.24);
  background: #eef7fb;
}
.workspace-dropdown-icon {
  border-color: #dce5ef;
  background: #f5f8fc;
  color: #68809d;
}
.workspace-dropdown-item small { color: #738299; }

.filter-shell,
.section-block {
  border-color: #dbe3ed;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}
.filter-bar strong { color: #25364d; }
.control-panel {
  border-top-color: #e2e8f0;
  background: #f8fafc;
}
input,
select {
  border-color: #cfd9e5;
  background-color: #ffffff;
  color: #142238;
  box-shadow: inset 0 1px 2px rgba(33, 55, 86, 0.035);
}
input:hover,
select:hover { border-color: #9fb4cb; }
input:focus,
select:focus { border-color: #168ca5; box-shadow: 0 0 0 3px rgba(8, 127, 152, 0.11); }

.metric-card,
.category-card,
.daily-metric-card,
.market-card {
  border-color: #dbe3ed;
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  box-shadow: var(--shadow-soft);
}
.metric-card::after { opacity: 0.07; }
.metric-card:hover,
.category-card:hover,
.market-card:hover { border-color: rgba(8, 127, 152, 0.3); }
.category-card { color: var(--text); }
.category-card:hover { background: linear-gradient(145deg, #ffffff, #f1f7fb); }
.category-count { color: #394c64; }

.session-switch {
  border-color: #d8e1ec;
  background: #f2f5f9;
}
.session-button.active {
  border-color: rgba(8, 127, 152, 0.27);
  background: #e4f6fa;
  color: #075f73;
}
.daily-market-section {
  border-color: #dbe3ed;
  background: #f8fafc;
}
.daily-market-card {
  border-color: #dbe3ed;
  background: #ffffff;
  color: var(--text);
}
.daily-market-card.active {
  border-color: rgba(8, 127, 152, 0.38);
  background: linear-gradient(145deg, #e9f9fb, #f0f5ff);
  box-shadow: 0 7px 18px rgba(33, 91, 151, 0.08);
}
.daily-leg + .daily-leg { border-top-color: #d9e2ec; }
.daily-leg-number {
  border-color: rgba(8, 127, 152, 0.24);
  background: #e8f8fb;
  color: #087f98;
}
.daily-pick-stack .daily-leg-number {
  border-color: rgba(37, 99, 199, 0.22);
  background: #edf3ff;
  color: #2563c7;
}
.fixture-versus { color: #718198; }

.data-notice {
  border-color: #ccdcef;
  background: #f1f6fc;
}
.notice-icon { background: #dfeafa; color: #2563c7; }
.account-hero,
.account-profile-card,
.invite-generator,
.account-settings-card {
  border-color: #d8e3ee;
  background:
    radial-gradient(circle at 92% 10%, rgba(8, 127, 152, 0.07), transparent 18rem),
    linear-gradient(145deg, #ffffff, #f7fafc);
  box-shadow: var(--shadow-soft);
}
.account-hero p:last-child { color: var(--muted); }
.account-details div {
  border-color: #dce4ee;
  background: #f8fafc;
}
.new-invite-panel {
  border-color: rgba(8, 127, 152, 0.25);
  background: #effafd;
}
.new-invite-panel code {
  border-color: #d5e6ed;
  background: #ffffff;
  color: #075f73;
}

.table-wrap {
  border-color: #d9e2ec;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(33, 55, 86, 0.055);
}
th,
td { border-bottom-color: #e4eaf1; }
th {
  background: #f0f4f8;
  color: #53657c;
}
td { color: #263850; }
tbody tr:nth-child(even) td { background: #fbfcfe; }
tbody tr:hover td { background: #f1f7fb; }
.pill { background: #eaf1fb; color: #315b92; }
.pill.scheduled { background: #fff5dc; color: #8b5c06; }
.pill.finished,
.pill.win,
.pill.half-win,
.pill.invite-active { background: #e7f8f1; color: #087352; }
.pill.loss,
.pill.half-loss,
.pill.invite-restricted { background: #fff0f2; color: #b6324b; }
.pill.push,
.pill.void,
.pill.invite-expired,
.pill.invite-revoked { background: #edf1f5; color: #5d6c80; }
.pill.invite-used { background: #edf3ff; color: #315f9d; }

.user-menu-trigger {
  border-color: #cfdbe8;
  background: linear-gradient(145deg, #ffffff, #f4f7fb);
  color: var(--text);
  box-shadow: 0 6px 18px rgba(33, 55, 86, 0.08);
}
.user-menu-trigger:hover,
.user-menu-trigger.active {
  border-color: rgba(8, 127, 152, 0.38);
  background: linear-gradient(145deg, #ffffff, #eef8fb);
  box-shadow: 0 9px 24px rgba(33, 91, 126, 0.12);
}
.user-avatar {
  border-color: rgba(37, 99, 199, 0.25);
  background: linear-gradient(145deg, #3d78c6, #24579c);
  color: #ffffff;
}
.user-trigger-copy small,
.user-dropdown-header span,
.user-dropdown-header small,
.user-menu-list button small { color: #718198; }
.user-menu-caret { background: #8da0b6; }
.user-dropdown {
  border-color: #cad7e5;
  background:
    radial-gradient(circle at 100% 0%, rgba(8, 127, 152, 0.07), transparent 14rem),
    #ffffff;
  box-shadow: 0 24px 64px rgba(33, 55, 86, 0.18);
}
.user-dropdown-header { border-bottom-color: #e1e7ef; }
.user-menu-list button { color: var(--text); }
.user-menu-list button:hover {
  border-color: #d9e3ee;
  background: #f3f7fb;
}
.menu-item-icon {
  border-color: #d5e1ee;
  background: #edf5fb;
  color: #087f98;
}
.user-menu-list .danger-menu-item { border-top-color: #e3e8ef; color: #b6324b; }
.user-menu-list .danger-menu-item .menu-item-icon {
  border-color: #f1cdd4;
  background: #fff1f3;
  color: #b6324b;
}

.login-overlay {
  background:
    radial-gradient(circle at 50% 16%, rgba(46, 134, 222, 0.1), transparent 28rem),
    rgba(241, 245, 249, 0.9);
}
.login-card {
  border-color: #cbd9e7;
  background:
    radial-gradient(circle at 100% 0%, rgba(8, 127, 152, 0.07), transparent 17rem),
    #ffffff;
  box-shadow: 0 32px 90px rgba(33, 55, 86, 0.2);
}
.toast {
  border-color: #cad7e5;
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 16px 44px rgba(33, 55, 86, 0.16);
}

.daily-model-board {
  margin: 20px 0 24px;
  padding: 18px;
  border: 1px solid #dbe3ed;
  border-radius: 17px;
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  box-shadow: 0 10px 28px rgba(33, 55, 86, 0.07);
}
.daily-model-board-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}
.daily-model-board-heading > div { display: grid; gap: 4px; }
.daily-model-board-heading .eyebrow { margin: 0; }
.daily-model-board-heading strong { font-size: 1.08rem; }
.daily-model-board-heading .section-meta { text-align: left; }
.daily-model-board-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.daily-model-table-wrap table { min-width: 1780px; }
.daily-model-table-wrap th,
.daily-model-table-wrap td { white-space: nowrap; }
.daily-model-table-wrap .daily-model-name {
  min-width: 310px;
  white-space: normal;
}
.daily-model-row {
  cursor: pointer;
  transition: background-color 140ms ease;
}
.daily-model-name strong {
  color: var(--text);
  overflow-wrap: anywhere;
}
.daily-model-row:hover td,
.daily-model-row:focus-visible td {
  background: #f0fbfd;
}
.daily-model-row:focus-visible { outline: none; }
.daily-model-row:focus-visible td:first-child { box-shadow: inset 3px 0 #54c9da; }
.daily-model-row.selected td { background: #eefafd; }
.daily-model-row.selected td:first-child { box-shadow: inset 3px 0 #22b5cb; }

@media (max-width: 720px) {
  .daily-model-board { padding: 14px; }
  .daily-model-board-heading { align-items: flex-start; flex-direction: column; }
  .daily-model-board-actions { align-items: flex-start; flex-direction: column; }
}

#basketballInfo { margin-bottom: 18px; align-items: center; }
#basketballInfo p { margin: 6px 0 0; line-height: 1.7; }
#basketballPredict { flex-shrink: 0; }

/* Sport selector follows the model lab and matches the morning/evening control. */
.topbar .workspace-nav { display: flex; align-items: center; }
.topbar .workspace-nav > .workspace-tab,
.topbar .workspace-nav > .workspace-menu-shell { flex: 1 1 0; min-width: 0; }
.topbar .workspace-nav > .sport-switch { flex: 0 0 196px; width: 196px; min-width: 196px; margin-left: 4px; }
@media (max-width: 820px) {
  .topbar .workspace-nav { flex-wrap: wrap; }
  .topbar .workspace-nav > .workspace-tab,
  .topbar .workspace-nav > .workspace-menu-shell { flex: 1 1 100px; }
  .topbar .workspace-nav > .sport-switch { flex: 0 0 180px; min-width: 180px; width: 180px; }
}

#basketDailyLock { margin-top: 12px; }
.basket-model-actions { display: flex; gap: 6px; flex-wrap: wrap; min-width: 220px; }
.basket-model-actions button { padding: 6px 10px; min-height: 34px; font-size: .78rem; }
#basketLabPanel .section-block { margin-top: 18px; }
#basketLabPanel .section-heading { gap: 12px; flex-wrap: wrap; }

/* Online prediction is a standalone workspace, isolated from the Aider lab. */
.online-view { display: grid; gap: 18px; }
.online-view[hidden] { display: none; }
.online-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px;
  border: 1px solid #d6e3ee;
  border-radius: 22px;
  background:
    radial-gradient(circle at 96% 0%, rgba(42, 161, 187, .12), transparent 18rem),
    linear-gradient(145deg, #ffffff, #f4f9fc);
  box-shadow: 0 14px 38px rgba(33, 55, 86, .08);
}
.online-hero h2 { margin: 5px 0 8px; color: #10233b; font-size: clamp(1.6rem, 2.5vw, 2.25rem); }
.online-hero p:last-child { max-width: 900px; margin: 0; color: #607087; line-height: 1.72; }
.online-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.online-status-grid article {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 18px;
  border: 1px solid #dbe4ed;
  border-radius: 17px;
  background: #ffffff;
  box-shadow: 0 9px 26px rgba(33, 55, 86, .06);
}
.online-status-grid span,
.online-status-grid small { color: #718198; }
.online-status-grid strong { overflow: hidden; color: #142a44; font-size: 1.1rem; text-overflow: ellipsis; white-space: nowrap; }
.online-control-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); gap: 18px; }
.online-control-grid .section-block,
.online-results-card,
.online-history-card { margin: 0; }
.online-config-card form,
.online-run-card form { display: grid; gap: 9px; margin-top: 10px; }
.online-config-card label,
.online-run-card label { color: #334a66; font-weight: 700; }
.online-key-row,
.online-run-row { display: flex; gap: 10px; }
.online-key-row input,
.online-run-row input {
  min-width: 0;
  height: 46px;
  border: 1px solid #cfdbe8;
  border-radius: 12px;
  background: #fbfdff;
  color: #10233b;
  padding: 0 14px;
  outline: none;
}
.online-key-row input { flex: 1; }
.online-run-row input { width: 110px; }
.online-key-row input:focus,
.online-run-row input:focus { border-color: #37a9be; box-shadow: 0 0 0 3px rgba(55, 169, 190, .12); }
.online-model-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 5px 0 0;
  padding: 12px;
  border: 1px solid #d7e2ed;
  border-radius: 12px;
  background: #f8fbfd;
}
.online-model-picker legend { padding: 0 7px; color: #52677f; font-size: .82rem; font-weight: 800; }
.online-model-picker label { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 7px 9px; border-radius: 9px; color: #2e4662; font-size: .82rem; }
.online-model-picker label:hover { background: #edf7fa; }
.online-model-picker input { width: 16px; height: 16px; accent-color: #139bb4; }
.online-model-picker span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.online-model-picker span small { display: block; margin-top: 2px; color: #8292a6; font-size: .7rem; font-weight: 500; }
.online-results-table { min-width: 1120px; }
.online-results-table td { vertical-align: top; padding-top: 14px; padding-bottom: 14px; }
.online-expectation { min-width: 132px; line-height: 1.5; }
.online-opportunity { min-width: 168px; line-height: 1.5; }
.online-detail { min-width: 148px; }
.prob-strip { margin-top: 3px; color: #58708c; font-size: .78rem; font-variant-numeric: tabular-nums; letter-spacing: .2px; }

/* Decision is the hero: read the verdict and the stake before anything else. */
.online-decision { min-width: 186px; }
.decision-hero { display: flex; align-items: baseline; gap: 10px; }
.decision-verdict {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  font-size: .85rem; font-weight: 800; letter-spacing: .5px; white-space: nowrap;
}
.decision-verdict.bet { background: #087352; color: #eafff7; box-shadow: 0 2px 10px rgba(8,115,82,.28); }
.decision-verdict.lean { background: #fff0d2; color: #8a5a05; }
.decision-verdict.pass { background: #edf1f5; color: #5d6c80; }
.decision-stake { color: #087352; font-size: 1.5rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.decision-stake small { font-size: .72rem; font-weight: 700; margin-left: 1px; }
.decision-target { margin-top: 6px; color: #15304d; font-weight: 700; font-size: .86rem; }
.decision-why { margin-top: 5px; color: #7b8ba1; font-size: .76rem; line-height: 1.45; }

/* Row level accent so a screenful of bets can be scanned at a glance. */
.online-results-table tr.decision-row-bet td:first-child { box-shadow: inset 3px 0 0 #087352; }
.online-results-table tr.decision-row-lean td:first-child { box-shadow: inset 3px 0 0 #e0a11f; }
.online-results-table tr.decision-row-none td:first-child,
.online-results-table tr.decision-row-pass td:first-child { box-shadow: inset 3px 0 0 #c9d4e0; }

.online-detail-block summary { cursor: pointer; color: #087f98; font-weight: 800; white-space: nowrap; }
.detail-body { margin-top: 8px; display: grid; gap: 3px; font-size: .8rem; }
.detail-body > div { display: flex; justify-content: space-between; gap: 10px; }
.detail-body > div span { color: #718198; }
.detail-body > div b { font-variant-numeric: tabular-nums; }
.detail-body .used { color: #087f98; }
.detail-reason { margin: 6px 0 0; color: #5d6c80; line-height: 1.45; }
.online-model-details { margin-top: 8px; }
.online-probabilities { white-space: nowrap; }
.online-reasoning { min-width: 260px; max-width: 440px; line-height: 1.55; white-space: normal; }
.online-score { color: #087f98; font-weight: 800; }
.online-model-details { min-width: 220px; }
.online-model-details summary { cursor: pointer; color: #087f98; font-weight: 800; white-space: nowrap; }
.online-model-opinions { display: grid; gap: 8px; width: 420px; margin-top: 10px; }
.online-model-opinion { display: grid; grid-template-columns: minmax(135px, 1fr) auto; gap: 4px 10px; padding: 10px; border: 1px solid #d8e4ed; border-radius: 10px; background: #f8fbfd; }
.online-model-opinion strong { overflow-wrap: anywhere; color: #17304c; }
.online-model-opinion span { color: #087f73; font-weight: 800; }
.online-model-opinion small { grid-column: 1 / -1; color: #60758e; }
.online-model-opinion p { grid-column: 1 / -1; margin: 2px 0 0; color: #536982; line-height: 1.5; white-space: normal; }
.online-status-busy { color: #8b5c06; }
.online-status-failed { color: #b6324b; }
.online-status-completed { color: #087352; }
.online-performance-card { margin: 0; }
.online-performance-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 12px 0 18px; }
.online-performance-metrics article { display: grid; gap: 5px; padding: 16px; border: 1px solid #dbe4ed; border-radius: 14px; background: #f8fbfd; }
.online-performance-metrics span { color: #718198; font-size: .82rem; }
.online-performance-metrics strong { color: #15304d; font-size: 1.45rem; }
.online-safety-note { margin-top: 0; }

@media (max-width: 1080px) {
  .online-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .online-performance-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .online-control-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .online-hero { align-items: flex-start; flex-direction: column; padding: 22px; }
  .online-status-grid { grid-template-columns: 1fr; }
  .online-key-row,
  .online-run-row { align-items: stretch; flex-direction: column; }
  .online-run-row input { width: 100%; }
  .online-model-picker { grid-template-columns: 1fr; }
  .online-performance-metrics { grid-template-columns: 1fr; }
}

/* ---------- online view v2: compact header, console, match cards ---------- */
.online-view { display: grid; gap: 14px; }

.ov-head {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel-strong);
  box-shadow: var(--shadow-soft);
}
.ov-head-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ov-head-actions { display: flex; align-items: center; gap: 10px; }
.ov-mini-input { width: 64px; padding: 6px 8px; border: 1px solid #d8e2ec; border-radius: 8px; font-size: .82rem; }
.ov-head-top h2 { margin: 4px 0 0; font-size: 1.45rem; letter-spacing: -.01em; }
.ov-badge {
  padding: 5px 12px;
  border: 1px solid rgba(8, 127, 91, .22);
  border-radius: 999px;
  background: #edfbf6;
  color: #087352;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}
.ov-badge.busy { border-color: rgba(161, 98, 7, .28); background: #fdf6e7; color: #8a5a06; }
.ov-badge.error { border-color: rgba(196, 61, 87, .24); background: #fdf0f2; color: #b6324b; }

.ov-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(71, 92, 122, .12);
}
.ov-stat { display: grid; gap: 3px; min-width: 0; padding: 11px 14px; background: #fbfcfe; }
.ov-stat span { color: #8a97a8; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ov-stat b, .ov-stat em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-stat b { color: #16273d; font-size: .95rem; }
.ov-stat em { color: #8a97a8; font-size: .72rem; font-style: normal; }

.ov-console {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel-strong);
  box-shadow: var(--shadow-soft);
}
.ov-console-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 14px; }
.ov-field { display: grid; gap: 6px; margin: 0; }
.ov-field label { color: #5b6b80; font-size: .76rem; font-weight: 700; }
.ov-inline { display: flex; align-items: center; gap: 8px; }
.ov-inline input { flex: 1; min-width: 0; }
#onlineTopN { flex: 0 0 84px; }

.ov-models { display: block; min-width: 0; margin: 0; padding: 0; border: 0; }
.ov-models legend { margin-bottom: 6px; padding: 0; color: #5b6b80; font-size: .76rem; font-weight: 700; }
.ov-models label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 6px 6px 0;
  padding: 6px 11px;
  border: 1px solid #dfe6ef;
  border-radius: 999px;
  background: #fbfcfe;
  color: #33465e;
  font-size: .79rem;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.ov-models label:hover { border-color: rgba(8, 127, 152, .35); }
.ov-models label:has(input:checked) { border-color: rgba(8, 127, 152, .45); background: #eefafd; color: #0a6274; font-weight: 650; }
.ov-models input { width: 14px; height: 14px; accent-color: #0b8fa6; }
.ov-models label small { display: none; }
.ov-hint { margin: 0; color: #7d8ca0; font-size: .78rem; }

/* one row per API line; adding a provider never touches another line's key */
.ov-providers { display: grid; gap: 8px; padding-top: 12px; border-top: 1px dashed rgba(71, 92, 122, .16); }
.ov-provider-head { display: flex; justify-content: space-between; gap: 10px; color: #8a97a8; font-size: .72rem; font-weight: 700; }
.ov-provider-rows { display: grid; gap: 6px; }
.ov-provider {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(71, 92, 122, .12);
  border-radius: 10px;
  background: #fbfcfe;
}
.ov-provider-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; min-width: 0; }
.ov-provider-meta b { color: #16273d; font-size: .84rem; }
.ov-provider-meta em { overflow: hidden; color: #8a97a8; font-size: .72rem; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.ov-provider-meta small { flex-basis: 100%; color: #8a97a8; font-size: .7rem; }
.ov-provider-add { display: grid; grid-template-columns: 116px 128px minmax(0, 1fr) minmax(0, 1.1fr) auto; gap: 8px; }
.ov-provider-add input { min-width: 0; }

@media (max-width: 1080px) {
  .ov-provider { grid-template-columns: 1fr; }
  .ov-provider-add { grid-template-columns: 1fr; }
}

.ov-panel {
  padding: 16px 18px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel-strong);
  box-shadow: var(--shadow-soft);
}
.ov-panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ov-panel-head h2 { margin: 4px 0 0; font-size: 1.15rem; }
.ov-usage { color: #7d8ca0; font-size: .78rem; }
.ov-list { display: grid; gap: 10px; }
.ov-empty {
  padding: 28px;
  border: 1px dashed rgba(71, 92, 122, .22);
  border-radius: 12px;
  color: #8a97a8;
  font-size: .86rem;
  text-align: center;
}

.ov-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 232px;
  overflow: hidden;
  border: 1px solid rgba(71, 92, 122, .14);
  border-left-width: 3px;
  border-radius: 12px;
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.ov-card:hover { box-shadow: 0 10px 24px rgba(33, 55, 86, .08); }
.ov-card.is-bet { border-left-color: #0a8f63; }
.ov-card.is-lean { border-left-color: #d99a1f; }
.ov-card.is-pass,
.ov-card.is-none { border-left-color: #d3dbe6; }

.ov-main { min-width: 0; padding: 14px 16px 12px; }
.ov-meta { display: flex; align-items: center; gap: 8px; color: #8a97a8; font-size: .74rem; }
.ov-meta .ov-league { color: #5b6b80; font-weight: 700; }
.ov-settle { margin-left: auto; padding: 2px 8px; border-radius: 999px; background: #f1f4f8; color: #7d8ca0; font-size: .7rem; }
.ov-settle.is-done { background: #eef2fb; color: #3f4f6b; }

.ov-match { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 7px 0 12px; color: #12233a; font-size: 1.02rem; font-weight: 750; }
.ov-match i { color: #a3b0c0; font-size: .74rem; font-style: normal; font-weight: 600; letter-spacing: .06em; }

.ov-probbar { display: flex; height: 7px; overflow: hidden; border-radius: 5px; background: #eef2f7; }
.ov-probbar i { display: block; height: 100%; }
.ov-probbar .home { background: linear-gradient(90deg, #10a3bd, #0b7f97); }
.ov-probbar .draw { background: #94a3b8; }
.ov-probbar .away { background: linear-gradient(90deg, #7d8ae0, #5661c4); }

.ov-problabels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; font-size: .76rem; }
.ov-problabels span { display: flex; align-items: baseline; gap: 5px; }
.ov-problabels span:nth-child(2) { justify-content: center; }
.ov-problabels span:nth-child(3) { justify-content: flex-end; }
.ov-problabels em { color: #8a97a8; font-style: normal; }
.ov-problabels b { color: #1b2c44; font-variant-numeric: tabular-nums; }
.ov-probless { color: #a3b0c0; font-size: .78rem; }

.ov-opp {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(71, 92, 122, .16);
  color: #4b5c72;
  font-size: .79rem;
}
.ov-opp-label { color: #9aa8ba; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ov-opp b { color: #1b2c44; font-weight: 700; }
.ov-ev { padding: 1px 7px; border-radius: 6px; background: #f1f6ff; color: #2b5bb5; font-weight: 700; font-variant-numeric: tabular-nums; }
.ov-edge { color: #5b6b80; font-variant-numeric: tabular-nums; }
.ov-pm { margin-left: auto; color: #8a97a8; font-variant-numeric: tabular-nums; }
.ov-opp.is-empty { color: #9aa8ba; }

.ov-verdict {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  padding: 14px 16px;
  border-left: 1px solid rgba(71, 92, 122, .1);
  background: #fbfcfe;
}
.ov-card.is-bet .ov-verdict { background: #f1fbf6; }
.ov-card.is-lean .ov-verdict { background: #fdf8ec; }

.ov-chip { align-self: flex-start; padding: 3px 11px; border-radius: 999px; font-size: .78rem; font-weight: 800; letter-spacing: .02em; }
.ov-chip.bet { background: #0a8f63; color: #fff; }
.ov-chip.lean { background: #f4dca8; color: #7a4c05; }
.ov-chip.pass,
.ov-chip.none { background: #e9eef5; color: #5d6b7e; }

.ov-stake { display: flex; align-items: baseline; gap: 4px; color: #0a7a58; }
.ov-stake b { font-size: 1.5rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ov-stake span { color: #6b7c92; font-size: .72rem; }
.ov-why { margin: 0; color: #64748b; font-size: .76rem; line-height: 1.55; }
.ov-target { color: #33465e; font-size: .76rem; font-weight: 650; }
.ov-conf { margin-top: auto; color: #8a97a8; font-size: .72rem; }

.ov-more { grid-column: 1 / -1; background: #fcfdfe; border-top: 1px solid rgba(71, 92, 122, .1); }
.ov-more > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  color: #6b7c92;
  font-size: .76rem;
  list-style: none;
  cursor: pointer;
}
.ov-more > summary::-webkit-details-marker { display: none; }
.ov-more > summary::before { content: "▸"; color: #8fa0b4; font-size: .9rem; }
.ov-more[open] > summary::before { content: "▾"; }
.ov-more > summary:hover { background: #f3f7fb; color: #1b2c44; }
.ov-more-title { color: #33465e; font-weight: 700; }
.ov-more-tag { font-variant-numeric: tabular-nums; }
.ov-more-body { display: grid; gap: 12px; padding: 12px 16px 16px; border-top: 1px dashed rgba(71, 92, 122, .1); }

.ov-statline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(71, 92, 122, .1);
}
.ov-statline div { display: grid; gap: 2px; padding: 9px 12px; background: #fbfcfe; }
.ov-statline span { color: #8a97a8; font-size: .68rem; letter-spacing: .06em; }
.ov-statline b { color: #1b2c44; font-size: .9rem; font-variant-numeric: tabular-nums; }
.ov-statline b.hi { color: #0a7a90; }

.ov-conclusion { margin: 0; color: #4b5c72; font-size: .8rem; line-height: 1.65; }
.ov-ops { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.ov-op { padding: 10px 12px; border: 1px solid #e3eaf2; border-radius: 10px; background: #fbfcfe; }
.ov-op header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 5px; }
.ov-op header b { color: #16273d; font-size: .82rem; }
.ov-op header span { color: #0a7a90; font-size: .74rem; font-weight: 700; }
.ov-op header em { margin-left: auto; color: #8a97a8; font-size: .72rem; font-style: normal; font-variant-numeric: tabular-nums; }
.ov-op p { margin: 0; color: #5b6b80; font-size: .76rem; line-height: 1.6; }

@media (max-width: 1080px) {
  .ov-card { grid-template-columns: 1fr; }
  .ov-verdict { border-top: 1px solid rgba(71, 92, 122, .1); border-left: 0; }
  .ov-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-console-grid { grid-template-columns: 1fr; }
  .ov-statline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* model two: market observation panel */
.ov-tag {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2f8;
  color: #64748b;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .02em;
  vertical-align: middle;
}
.ov-badge.warn { border-color: rgba(161, 98, 7, .28); background: #fdf6e7; color: #8a5a06; }

.ov-table-wrap { margin-top: 14px; overflow-x: auto; }
.ov-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.ov-table thead th {
  padding: 0 12px 8px;
  border-bottom: 1px solid rgba(71, 92, 122, .14);
  color: #8a97a8;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.ov-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(71, 92, 122, .07);
  color: #33465e;
  vertical-align: middle;
}
.ov-table tbody tr:last-child td { border-bottom: 0; }
.ov-table tbody tr:hover td { background: #fafcfe; }
.ov-table .ov-empty { padding: 22px; border: 0; }
.ov-nowrap { white-space: nowrap; }
.ov-muted { color: #8a97a8; }
.ov-matchup { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.ov-matchup b { color: #16273d; font-weight: 700; }
.ov-matchup i { color: #a3b0c0; font-size: .72rem; font-style: normal; }

.ov-dir { padding: 2px 9px; border-radius: 999px; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.ov-dir.home { background: #e9f7fc; color: #0a6c84; }
.ov-dir.away { background: #eef0fc; color: #4b55ad; }
.ov-dir.draw { background: #f1f4f8; color: #5d6b7e; }

.ov-scorebar { display: inline-block; width: 84px; height: 6px; overflow: hidden; border-radius: 4px; background: #eef2f7; vertical-align: middle; }
.ov-scorebar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #7dd3c0, #0a8f63); }
.ov-table td b { font-variant-numeric: tabular-nums; }
.ov-flag { margin-left: 7px; padding: 1px 6px; border-radius: 5px; background: #fdf1e3; color: #9a5b07; font-size: .68rem; font-weight: 700; }
.ov-footnote { margin: 12px 0 0; color: #8a97a8; font-size: .76rem; line-height: 1.65; }

/* two-column split: model one on the left, model two on the right */
.ov-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 378px;
  gap: 14px;
  align-items: start;
}
.ov-split .ov-panel { padding: 14px 16px 12px; }
.ov-split .ov-card { grid-template-columns: minmax(0, 1fr) 204px; }
.ov-panel-main { min-width: 0; }
.ov-panel-side { display: grid; gap: 10px; align-content: start; }
.ov-panel-side .ov-panel-head { margin-bottom: 0; }

.ov-mini-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(71, 92, 122, .12);
}
.ov-mini-stats div { display: grid; gap: 2px; min-width: 0; padding: 8px 10px; background: #fbfcfe; }
.ov-mini-stats span { overflow: hidden; color: #8a97a8; font-size: .66rem; letter-spacing: .04em; text-overflow: ellipsis; white-space: nowrap; }
.ov-mini-stats b { overflow: hidden; color: #16273d; font-size: .86rem; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.ov-fresh { margin: 0; color: #8a97a8; font-size: .7rem; }

.ov-signal-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
  color: #8a97a8;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.ov-signals { display: grid; gap: 6px; }
.ov-signal { padding: 9px 10px; border: 1px solid rgba(71, 92, 122, .1); border-radius: 10px; background: #fbfcfe; }
.ov-signal-top { display: flex; justify-content: space-between; gap: 8px; color: #8a97a8; font-size: .68rem; }
.ov-signal-league { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-signal-time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ov-signal-match { display: flex; flex-wrap: wrap; gap: 5px; margin: 3px 0 7px; color: #16273d; font-size: .8rem; font-weight: 650; line-height: 1.35; }
.ov-signal-match i { color: #a3b0c0; font-size: .7rem; font-style: normal; font-weight: 500; }
.ov-signal-meta { display: flex; align-items: center; gap: 7px; }
.ov-signal-move { min-width: 48px; font-size: .75rem; font-variant-numeric: tabular-nums; }
.ov-signal .ov-scorebar { flex: 1; width: auto; min-width: 36px; }
.ov-signal-score { color: #16273d; font-size: .82rem; font-variant-numeric: tabular-nums; }

/* basketball reuses the same shell; only one sport's blocks are visible at a time */
.online-view[data-sport="basketball"] .football-only { display: none; }
.online-view[data-sport="football"] .basketball-only { display: none; }
.basketball-only { display: grid; gap: 14px; }
/* ordinary accounts only get the bet ledger; admins keep the full picture */
.online-view[data-role="user"] .football-only,
.online-view[data-role="user"] .basketball-only { display: none; }
.online-view[data-role="admin"] .bets-only { display: none; }
.bets-only { display: grid; gap: 14px; }

@media (max-width: 1360px) {
  .ov-split { grid-template-columns: 1fr; }
  .ov-split .ov-card { grid-template-columns: minmax(0, 1fr) 232px; }
}

/* run history: one collapsible block per run, fixtures listed underneath */
.ov-runs { display: grid; gap: 8px; }
.ov-run { overflow: hidden; border: 1px solid rgba(71, 92, 122, .12); border-radius: 12px; background: #fff; }
.ov-run > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 10px 14px;
  background: #fbfcfe;
  cursor: pointer;
  list-style: none;
}
.ov-run > summary::-webkit-details-marker { display: none; }
.ov-run > summary::before { content: "▸"; color: #8fa0b4; }
.ov-run[open] > summary::before { content: "▾"; }
.ov-run > summary:hover { background: #f2f7fc; }
.ov-run-time { color: #16273d; font-size: .84rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.ov-run-status { font-size: .74rem; font-weight: 700; }
.ov-run-who { color: #7d8ca0; font-size: .76rem; }
.ov-run-meta { color: #7d8ca0; font-size: .76rem; font-variant-numeric: tabular-nums; }
.ov-run-models { max-width: 42%; margin-left: auto; overflow: hidden; color: #8a97a8; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.ov-run-error { color: #b6324a; font-size: .74rem; }
.ov-run-body { padding: 0 12px 10px; border-top: 1px solid rgba(71, 92, 122, .08); }
.ov-history-table { font-size: .78rem; }
.ov-history-table tbody td { padding: 8px 10px; }
.ov-history-table thead th { padding-top: 10px; }
.ov-hit { margin-left: 6px; padding: 1px 6px; border-radius: 5px; font-size: .68rem; font-weight: 700; }
.ov-hit.is-hit { background: #e8f7ef; color: #0a7a58; }
.ov-hit.is-miss { background: #fdeef1; color: #b6324a; }

/* several markets backed on one match */
.ov-leg { margin-bottom: 3px; }
.ov-leg:last-child { margin-bottom: 0; }

/* history rows expand into the same committee detail the top cards show */
.ov-history-row { cursor: pointer; }
.ov-history-row:hover td { background: #f6fafd; }
.ov-detail-row > td { padding: 0 10px 12px; background: #fbfcfe; }
.ov-detail-row .ov-more-body { padding: 10px 0 0; border-top: 0; }

/* every quoted market, model vs market, so no board is invisible */
.ov-pricing { display: grid; gap: 4px; }
.ov-pricing-row {
  display: grid;
  grid-template-columns: 118px 126px 1fr 78px auto;
  gap: 10px;
  align-items: baseline;
  padding: 5px 10px;
  border-radius: 8px;
  background: #fafcfe;
  font-size: .76rem;
  color: #5b6b80;
}
.ov-pricing-row.is-positive { background: #eefaf3; color: #0a6b4c; }
.ov-pricing-market { color: #8a97a8; font-size: .72rem; }
.ov-pricing-row b { color: #16273d; font-weight: 650; }
.ov-pricing-row em { font-style: normal; font-variant-numeric: tabular-nums; text-align: right; }
.ov-pricing-tag { justify-self: end; padding: 1px 6px; border-radius: 5px; background: #eef2f8; color: #7d8ca0; font-size: .66rem; }
