:root {
  color-scheme: light;
  --bg: #f4f8fb;
  --surface: #ffffff;
  --surface-soft: #f8fbfd;
  --line: #d9e2ec;
  --text: #111827;
  --muted: #64748b;
  --accent: #00856f;
  --accent-strong: #006a59;
  --accent-deep: #003f35;
  --blue: #075cc8;
  --purple: #6236b5;
  --gold: #a76500;
  --ink: #213044;
  --warning: #a15c10;
  --danger: #a93838;
  --shadow-sm: 0 8px 22px rgba(31, 45, 61, 0.08);
  --shadow-md: 0 18px 45px rgba(31, 45, 61, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(0, 133, 111, 0.10), transparent 28%),
    radial-gradient(circle at 82% 4%, rgba(7, 92, 200, 0.08), transparent 26%),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 36%, #f1f6fa 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
}

body.modal-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

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

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

.skip-link {
  background: #ffffff;
  border: 3px solid var(--blue);
  border-radius: 6px;
  color: var(--text);
  font-weight: 900;
  left: 12px;
  padding: 10px 14px;
  position: fixed;
  top: 12px;
  transform: translateY(-160%);
  transition: transform 120ms ease;
  z-index: 100;
}

.skip-link:focus {
  transform: translateY(0);
}

.toast-stack {
  display: grid;
  gap: 10px;
  max-width: min(420px, calc(100vw - 32px));
  position: fixed;
  right: 16px;
  top: 16px;
  z-index: 20;
}

.toast {
  background: #0f5e55;
  border: 1px solid #0b4c45;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(23, 32, 47, 0.18);
  color: #ffffff;
  padding: 14px;
}

.toast strong,
.toast span {
  display: block;
}

.toast strong {
  font-size: 14px;
  margin-bottom: 4px;
}

.toast span {
  font-size: 13px;
  line-height: 1.35;
}

.modal-backdrop {
  align-items: center;
  background: rgba(23, 32, 47, 0.48);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 30;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(23, 32, 47, 0.28);
  max-height: min(760px, calc(100vh - 40px));
  max-width: 920px;
  overflow: hidden;
  width: min(920px, 100%);
}

.modal-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
}

.modal-body {
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 128px);
  overflow: auto;
  padding: 16px;
}

.scenario-explanation-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.scenario-field-guide {
  background: #f3f8f7;
  border: 1px solid #b8d8d2;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.scenario-field-guide h3,
.scenario-field-guide p {
  margin: 0;
}

.scenario-field-guide p {
  line-height: 1.45;
}

.scenario-explanation-group > h3 {
  background: #17202f;
  color: #ffffff;
  margin: 0;
  padding: 10px 12px;
}

.scenario-explanation-item {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
  padding: 12px;
}

.scenario-explanation-item h3 {
  font-size: 14px;
  margin: 0;
}

.scenario-explanation-item p {
  color: var(--text);
  line-height: 1.45;
  margin: 0;
}

.scenario-explanation-item ul {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  gap: 4px;
  line-height: 1.4;
  margin: 0;
  padding-left: 18px;
}

.scenario-explanation-item span,
.modal-empty {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.login-shell {
  background:
    radial-gradient(circle at 12% 18%, rgba(45, 212, 191, 0.24), transparent 32%),
    radial-gradient(circle at 82% 12%, rgba(59, 130, 246, 0.20), transparent 30%),
    linear-gradient(135deg, #043c34 0%, #07534a 48%, #0d3c64 100%);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(420px, 600px) minmax(340px, 520px);
  min-height: 100vh;
  padding: 36px;
  place-content: center;
}

.access-safeguard-shell {
  background:
    radial-gradient(circle at 12% 18%, rgba(45, 212, 191, 0.20), transparent 34%),
    radial-gradient(circle at 82% 12%, rgba(59, 130, 246, 0.16), transparent 30%),
    linear-gradient(135deg, #043c34 0%, #07534a 48%, #0d3c64 100%);
  min-height: 100vh;
  padding: 32px;
  place-items: center;
}

.access-safeguard-shell:not([hidden]) {
  display: grid;
}

.access-safeguard-card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 26, 23, 0.32);
  max-width: 680px;
  padding: 34px;
  width: 100%;
}

.access-safeguard-eyebrow,
.customer-access-card > div > span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.access-safeguard-card h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 8px 0 12px;
}

.access-safeguard-card > p {
  line-height: 1.55;
}

.access-safeguard-details {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 24px 0;
}

.access-safeguard-details div {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.access-safeguard-details dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.access-safeguard-details dd {
  font-weight: 800;
  margin: 0;
  text-transform: capitalize;
}

.access-safeguard-note {
  background: #fff8e8;
  border: 1px solid #ead29a;
  border-radius: 8px;
  color: #5b4215;
  padding: 12px;
}

.customer-access-card {
  align-items: center;
  background: #fffaf2;
  border: 1px solid #ead7b2;
  border-radius: 10px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 18px;
  padding: 16px;
}

.customer-access-card h3,
.customer-access-card p {
  margin: 4px 0 0;
}

.customer-access-card small {
  color: var(--muted);
  grid-column: 1 / -1;
  line-height: 1.45;
}

.danger-button {
  background: #fff;
  border: 1px solid var(--danger);
  border-radius: 7px;
  color: var(--danger);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 9px 12px;
}

.login-card,
.login-benefits {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 26, 23, 0.32);
}

.login-card {
  background: rgba(255, 255, 255, 0.97);
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  padding: 34px;
}

.login-brand {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
}

.login-brand .brand-mark {
  height: 44px;
  width: 44px;
}

.login-brand div,
.admin-chip div {
  display: grid;
  gap: 1px;
}

.login-brand strong {
  font-size: 20px;
}

.login-brand small,
.admin-chip small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.login-intro > span,
.login-benefits > span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-intro h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 8px 0 10px;
}

.login-intro p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 24px;
}

.login-form {
  display: grid;
  gap: 8px;
}

.login-mfa-group {
  display: grid;
  gap: 8px;
}

.login-mfa-group[hidden] {
  display: none;
}

.login-form input,
.login-form select {
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  margin-bottom: 8px;
  min-height: 48px;
  padding: 10px 12px;
}

.login-form button {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border: 0;
  border-radius: 10px;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  min-height: 48px;
}

.login-form button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.login-error {
  color: var(--danger);
  font-size: 13px;
  font-weight: 800;
  margin: 2px 0 0;
  min-height: 18px;
}

.login-error.auth-success-message {
  color: var(--accent-strong);
}

.auth-entry-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-top: 12px;
}

.auth-availability {
  color: var(--muted);
  flex-basis: 100%;
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
  min-height: 17px;
}

.auth-link-button,
.auth-secondary-button {
  background: transparent;
  border: 0;
  color: var(--accent-strong);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  padding: 8px 0;
}

.auth-secondary-button {
  background: #eef8f6;
  border: 1px solid rgba(0, 133, 111, 0.3);
  border-radius: 9px;
  padding: 9px 13px;
}

.auth-flow {
  display: grid;
  gap: 16px;
}

.auth-flow[hidden] {
  display: none;
}

.auth-flow-heading {
  display: grid;
  gap: 7px;
}

.auth-flow-heading > span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-flow-heading h2 {
  font-size: 26px;
}

.auth-flow-heading p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.auth-consent-row {
  align-items: flex-start;
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  display: grid;
  font-size: 13px;
  gap: 9px;
  grid-template-columns: auto minmax(0, 1fr);
  line-height: 1.45;
  padding: 11px 12px;
}

.auth-consent-row input {
  margin: 2px 0 0;
  min-height: auto;
  padding: 0;
}

.auth-invite-field {
  display: grid;
  gap: 8px;
}

.auth-invite-field[hidden] {
  display: none;
}

.auth-honeypot {
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  top: auto;
  width: 1px;
}

.auth-back-button {
  justify-self: start;
}

.demo-login-options {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
}

.demo-login-options > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.demo-login-options > div {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.demo-login-options button {
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 2px;
  padding: 11px 12px;
  text-align: left;
}

.demo-login-options button:hover,
.demo-login-options button.selected {
  background: #eaf8f5;
  border-color: rgba(0, 133, 111, 0.46);
}

.demo-login-options button strong {
  color: var(--accent-strong);
}

.demo-login-options button small {
  color: var(--muted);
}

.login-benefits {
  align-self: center;
  background: rgba(3, 34, 42, 0.42);
  color: #ffffff;
  padding: 38px;
}

.login-benefits > span {
  color: #83ead7;
}

.login-benefits h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  margin: 12px 0 28px;
}

.login-benefits ul {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.login-benefits li {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  display: grid;
  gap: 4px;
  padding: 14px;
}

.login-benefits li strong {
  color: #a7f3d0;
}

.login-benefits li span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.45;
}

.topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(217, 226, 236, 0.72);
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  min-height: 64px;
  padding: 12px 22px 12px 300px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-local-time {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  min-width: 0;
}

.topbar-local-time::before {
  background: #22c55e;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
  content: "";
  flex: 0 0 auto;
  height: 7px;
  width: 7px;
}

.topbar-local-time span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.topbar-local-time time {
  color: var(--text);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  letter-spacing: 0.04em;
  min-width: 74px;
}

.topbar-status {
  display: grid;
  gap: 2px;
  justify-items: end;
  min-width: 236px;
  text-align: right;
}

.topbar-status-header {
  align-items: baseline;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.topbar-status span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.topbar-status time {
  color: var(--text);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  letter-spacing: 0.02em;
  min-width: 62px;
}

.topbar-status strong {
  color: var(--text);
  font-size: 14px;
}

.topbar-status small {
  align-items: center;
  color: var(--accent-strong);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
}

.topbar-status small::before {
  background: #22c55e;
  border-radius: 999px;
  content: "";
  height: 7px;
  width: 7px;
}

.topbar-account {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  margin-left: auto;
}

.eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 4px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  margin: 0;
}

h1 {
  font-size: 24px;
  line-height: 1.2;
}

h2 {
  font-size: 18px;
}

h3 {
  font-size: 14px;
  margin-bottom: 10px;
}

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

.toplinks a,
.icon-button,
.rail-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  min-height: 36px;
  padding: 8px 12px;
  text-decoration: none;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.toplinks a {
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(31, 45, 61, 0.05);
  font-size: 13px;
  font-weight: 800;
}

.toplinks a:hover {
  border-color: rgba(0, 133, 111, 0.36);
  color: var(--accent-strong);
}

.admin-chip {
  align-items: center;
  display: inline-flex;
  gap: 10px;
}

.admin-chip span {
  align-items: center;
  background: linear-gradient(135deg, #0d4f88, #062540);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.admin-chip strong {
  font-size: 14px;
}

.admin-chip button {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 9px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 850;
  min-height: 34px;
  padding: 7px 11px;
}

.customer-subscription-panel {
  display: grid;
  gap: 18px;
}

.subscription-current-card {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(5, 150, 105, 0.11), rgba(59, 130, 246, 0.08)),
    #ffffff;
  border: 1px solid rgba(5, 150, 105, 0.24);
  border-radius: 14px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 20px;
}

.subscription-current-card div {
  display: grid;
  gap: 4px;
}

.subscription-current-card span,
.customer-plan-card > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.subscription-current-card strong {
  color: var(--accent-strong);
  font-size: 22px;
}

.subscription-current-card p,
.customer-plan-card p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.subscription-status-pill {
  background: #dcfce7;
  border-radius: 999px;
  color: #047857;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 12px;
  text-transform: capitalize;
}

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

.customer-plan-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  display: grid;
  gap: 9px;
  min-height: 180px;
  padding: 18px;
}

.customer-plan-card.current {
  border-color: rgba(5, 150, 105, 0.48);
  box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.14);
}

.customer-plan-card h3 {
  font-size: 18px;
  margin: 0;
}

.customer-plan-card strong {
  color: var(--accent-strong);
  font-size: 26px;
}

.customer-plan-card small,
.customer-plan-state {
  color: var(--muted);
  margin-top: auto;
}

.customer-plan-card.current small,
.customer-plan-card.current .customer-plan-state {
  color: #047857;
  font-weight: 900;
}

.customer-plan-state {
  font-size: 12px;
}

.customer-plan-action {
  align-items: center;
  background: var(--accent);
  border: 1px solid var(--accent-strong);
  border-radius: 9px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  justify-content: center;
  margin-top: auto;
  min-height: 40px;
  padding: 9px 13px;
  width: 100%;
}

.customer-plan-action:hover:not(:disabled),
.customer-plan-action:focus-visible:not(:disabled) {
  background: var(--accent-strong);
}

.customer-plan-action:disabled {
  background: #e8eef3;
  border-color: #cbd5e1;
  color: #64748b;
  cursor: not-allowed;
}

.admin-user-list {
  margin-top: 12px;
}

.admin-user-table-wrap {
  overflow-x: auto;
}

.admin-user-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 760px;
  width: 100%;
}

.admin-user-table th {
  background: #f3f7fa;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 11px 12px;
  text-align: left;
  text-transform: uppercase;
}

.admin-user-table td {
  border-bottom: 1px solid var(--line);
  color: var(--text);
  padding: 13px 12px;
  vertical-align: middle;
}

.admin-user-table tbody tr {
  background: #ffffff;
}

.admin-user-table tbody tr.selected {
  background: rgba(5, 150, 105, 0.07);
}

.admin-user-table td:first-child {
  display: grid;
  gap: 3px;
}

.admin-user-table td:first-child small {
  color: var(--muted);
}

.admin-user-demo-label,
.admin-user-role,
.admin-user-status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 10px;
  font-weight: 900;
  padding: 4px 8px;
  text-transform: capitalize;
  width: fit-content;
}

.admin-user-demo-label {
  background: #e0f2fe;
  color: #0369a1;
}

.admin-user-role {
  background: #eef2ff;
  color: #4338ca;
}

.admin-user-status {
  background: #dcfce7;
  color: #047857;
}

.admin-user-status.inactive,
.admin-user-status.cancelled,
.admin-user-status.expired {
  background: #fee2e2;
  color: #b91c1c;
}

.admin-user-status.past_due,
.admin-user-status.action-required {
  background: #fef3c7;
  color: #92400e;
}

.admin-user-manage {
  background: #ffffff;
  border: 1px solid rgba(0, 133, 111, 0.28);
  border-radius: 8px;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
  min-height: 32px;
  padding: 6px 10px;
}

.admin-user-table tr.selected .admin-user-manage {
  background: var(--accent);
  color: #ffffff;
}

.tier-filter-locked {
  display: none !important;
}

.layout {
  display: grid;
  gap: 18px;
  padding: 18px 22px 22px 300px;
}

.status-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.metric {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(217, 226, 236, 0.9);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  min-height: 86px;
  overflow: hidden;
  padding: 14px;
  position: relative;
}

.metric::after {
  align-items: center;
  border: 1px solid rgba(100, 116, 139, 0.16);
  border-radius: 999px;
  color: var(--accent);
  content: "";
  display: flex;
  font-size: 18px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 34px;
}

.metric[data-icon="pulse"]::after {
  content: "⌁";
}

.metric[data-icon="database"]::after {
  content: "◎";
}

.metric[data-icon="cache"]::after {
  content: "ϟ";
}

.metric[data-icon="sprint"]::after {
  content: "↻";
}

.metric[data-icon="mode"]::after {
  content: "◉";
}

.metric span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
}

.metric strong {
  display: block;
  font-size: 20px;
  overflow-wrap: anywhere;
}

.metric strong.mode-real {
  color: var(--accent-strong);
}

.metric strong.mode-mock {
  color: var(--warning);
}

.metric strong.mode-mixed {
  color: var(--danger);
}

.workspace {
  display: block;
}

.rail {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(217, 226, 236, 0.86);
  border-radius: 0;
  bottom: 0;
  box-shadow: 16px 0 45px rgba(31, 45, 61, 0.07);
  display: grid;
  gap: 8px;
  left: 0;
  overflow: auto;
  padding: 18px 14px;
  position: fixed;
  top: 0;
  width: 280px;
  z-index: 12;
}

.rail-navigation {
  display: grid;
  gap: 8px;
}

.brand-lockup {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 38px 1fr;
  margin: -2px 0 12px;
  padding: 0 4px 16px;
}

.brand-mark {
  background:
    radial-gradient(circle at 50% 50%, #ffffff 0 22%, transparent 23%),
    conic-gradient(from 20deg, #00856f, #18b394, #0f766e, #00856f);
  border-radius: 12px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.88), 0 8px 20px rgba(0, 133, 111, 0.22);
  height: 36px;
  width: 36px;
}

.brand-lockup strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
}

.brand-lockup small {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-top: 4px;
}

.rail-match-tools {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding-bottom: 14px;
}

.rail-button {
  background: transparent;
  cursor: pointer;
  font-weight: 800;
  min-height: 44px;
  padding-left: 46px;
  position: relative;
  text-align: left;
}

.rail-button::before {
  align-items: center;
  border: 1px solid rgba(100, 116, 139, 0.24);
  border-radius: 7px;
  color: #31415a;
  content: "•";
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  height: 24px;
  justify-content: center;
  left: 12px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
}

.rail-button[data-icon="home"]::before {
  content: "⌂";
}

.rail-button[data-icon="matches"]::before {
  content: "▦";
}

.rail-button[data-icon="trending"]::before {
  content: "↗";
}

.rail-button[data-icon="saved"]::before {
  content: "☆";
}

.rail-button[data-icon="algorithm"]::before {
  content: "⌘";
}

.rail-button[data-icon="alerts"]::before {
  content: "!";
}

.rail-button[data-icon="users"]::before {
  content: "◌";
}

.rail-button[data-icon="billing"]::before {
  content: "£";
}

.rail-button[data-icon="admin"]::before {
  content: "⚙";
}

.rail-button[data-icon="audit"]::before {
  content: "□";
}

.rail-button.active {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent-deep));
  border-color: var(--accent-strong);
  box-shadow: 0 12px 26px rgba(0, 106, 89, 0.28);
  color: #ffffff;
}

.rail-button.active::before {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(217, 226, 236, 0.9);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  display: none;
  min-height: 460px;
  padding: 18px;
}

.panel.active {
  display: block;
}

.panel-heading {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 14px;
}

.panel-heading > div {
  min-width: 0;
}

.panel-note {
  color: var(--muted);
  line-height: 1.35;
  margin: 6px 0 0;
  max-width: 920px;
}

.matches-dashboard {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.matches-page-heading {
  align-items: center;
  background:
    radial-gradient(circle at 85% 10%, rgba(37, 99, 235, 0.10), transparent 34%),
    linear-gradient(135deg, #ffffff, #f5fbfa);
  border: 1px solid rgba(185, 221, 212, 0.84);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 14px;
  overflow: hidden;
  padding: 20px 22px;
  position: relative;
}

.matches-page-heading::before {
  background: linear-gradient(180deg, var(--accent), #36bda1);
  content: "";
  inset: 0 auto 0 0;
  position: absolute;
  width: 5px;
}

.matches-page-heading h2 {
  font-size: 26px;
  line-height: 1.1;
}

.matches-eyebrow,
.matches-card-kicker {
  color: var(--accent-strong);
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.09em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.matches-secondary-button {
  background: #ffffff;
  border: 1px solid #cbd9e6;
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  min-height: 38px;
  padding: 8px 12px;
}

.matches-secondary-button:hover {
  background: #f2f8f7;
  border-color: rgba(0, 133, 111, 0.44);
  color: var(--accent-strong);
}

.matches-summary-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-bottom: 14px;
}

.matches-summary-card {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 9px 24px rgba(31, 45, 61, 0.07);
  display: grid;
  gap: 12px;
  grid-template-columns: 46px minmax(0, 1fr);
  min-height: 102px;
  overflow: hidden;
  padding: 15px;
  position: relative;
}

.matches-summary-card::after {
  background: currentColor;
  bottom: 0;
  content: "";
  height: 3px;
  left: 0;
  opacity: 0.8;
  position: absolute;
  right: 0;
}

.matches-summary-card.live {
  color: #d3364a;
}

.matches-summary-card.elite {
  color: #087b5d;
}

.matches-summary-card.premium {
  color: #2563b8;
}

.matches-summary-card.watching {
  color: #a56a00;
}

.matches-summary-icon {
  align-items: center;
  background: color-mix(in srgb, currentColor 12%, white);
  border-radius: 12px;
  display: inline-flex;
  font-size: 20px;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.matches-summary-card div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.matches-summary-card small,
.matches-summary-card span:not(.matches-summary-icon) {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.matches-summary-card strong {
  color: var(--text);
  font-size: 25px;
  line-height: 1.1;
}

.icon-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: var(--accent);
  color: #ffffff;
  cursor: pointer;
  flex: 0 0 auto;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(0, 133, 111, 0.18);
}

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

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

.data-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 180px;
  padding: 14px;
}

.overview-trending-card,
.proof-centre {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  margin-top: 16px;
  padding: 16px;
}

.overview-content-stack {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 16px;
}

.overview-content-stack .proof-centre {
  margin-top: 0;
  min-width: 0;
}

.overview-feature-grid {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 0.9fr);
}

.overview-feature-grid .overview-trending-card {
  margin-top: 0;
  min-width: 0;
}

.overview-feature-primary {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.overview-cumulative-profit {
  min-width: 0;
}

.overview-watchlist-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
}

.today-watchlist-list {
  display: grid;
  gap: 8px;
}

.today-watchlist-row {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: 34px minmax(190px, 1fr) auto minmax(72px, auto) minmax(72px, auto) 16px;
  padding: 10px 12px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.today-watchlist-row:hover,
.today-watchlist-row:focus-visible {
  border-color: rgba(0, 108, 91, 0.38);
  box-shadow: 0 8px 18px rgba(31, 45, 61, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.today-watchlist-icon {
  align-items: center;
  background: #ede9fe;
  border-radius: 8px;
  color: #6d28d9;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.today-watchlist-row.premium .today-watchlist-icon {
  background: #fff3d6;
  color: #a16207;
}

.today-watchlist-match,
.today-watchlist-metric {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.today-watchlist-match strong,
.today-watchlist-match small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.today-watchlist-match small,
.today-watchlist-metric small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.today-watchlist-metric {
  text-align: center;
}

.today-watchlist-open {
  color: var(--muted);
  font-size: 24px;
  font-weight: 800;
}

.overview-customer-alerts {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
}

.overview-customer-alerts h4 {
  margin: 0 0 4px;
}

.overview-customer-alerts .customer-alert-card dl {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trending-dashboard {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.trending-hero {
  align-items: center;
  background:
    radial-gradient(circle at 88% 12%, rgba(37, 99, 235, 0.13), transparent 32%),
    radial-gradient(circle at 72% 100%, rgba(0, 133, 111, 0.12), transparent 38%),
    linear-gradient(135deg, #ffffff, #f3faf8 58%, #f4f8ff);
  border: 1px solid #cfe2df;
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(23, 54, 70, 0.09);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin-bottom: 20px;
  overflow: hidden;
  padding: 22px 24px;
  position: relative;
}

.trending-hero > div {
  min-width: 0;
}

.trending-eyebrow,
.trending-section-kicker {
  color: var(--accent-strong);
  display: block;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.trending-hero h2 {
  font-size: 28px;
  line-height: 1.1;
  margin: 5px 0 7px;
}

.trending-hero p {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
  max-width: 820px;
}

.trending-legend {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.trending-legend > span {
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #dce7ed;
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 11px;
  font-weight: 750;
  gap: 5px;
  padding: 7px 10px;
}

.trending-legend i {
  font-style: normal;
  font-weight: 950;
}

.trending-legend strong {
  color: var(--text);
}

.trending-legend .elite i {
  color: #087760;
}

.trending-legend .premium i {
  color: #c67800;
}

.trending-legend .guide i {
  color: #2563b8;
}

.trending-refresh-button {
  align-items: center;
  background: linear-gradient(135deg, #07866c, #056451);
  border: 1px solid #087760;
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(0, 119, 96, 0.22);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  gap: 8px;
  min-height: 44px;
  padding: 10px 15px;
}

.trending-refresh-button span {
  font-size: 18px;
}

.trending-refresh-button:hover {
  background: linear-gradient(135deg, #056f5a, #044d40);
}

.trending-panel,
.trending-list {
  display: grid;
  gap: 14px;
}

.trending-sections {
  display: grid;
  gap: 20px;
}

.trending-section-card {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(31, 45, 61, 0.07);
  display: grid;
  gap: 16px;
  overflow: hidden;
  padding: 20px;
  position: relative;
  scroll-margin-top: 18px;
}

.trending-section-card::before {
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.trending-section-card.inplay::before {
  background: linear-gradient(90deg, #0f8a63, #36c58d);
}

.trending-section-card.today::before {
  background: linear-gradient(90deg, #285fa9, #6f77da);
}

.trending-section-heading {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 48px minmax(0, 1fr) auto;
}

.trending-section-heading h3 {
  font-size: 19px;
  margin: 3px 0 0;
}

.trending-section-heading .panel-note {
  font-size: 13px;
  margin-top: 4px;
}

.trending-section-icon {
  align-items: center;
  border-radius: 12px;
  display: inline-flex;
  font-size: 18px;
  font-weight: 950;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.trending-section-icon.live {
  background: #e6f8f1;
  color: #087760;
}

.trending-section-icon.today {
  background: #edf2ff;
  color: #315ba4;
}

.trending-live-pill,
.trending-today-pill {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  gap: 6px;
  padding: 7px 10px;
  white-space: nowrap;
}

.trending-live-pill {
  background: #e8f9f2;
  color: #087760;
}

.trending-live-pill i {
  background: #20bd7a;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(32, 189, 122, 0.13);
  height: 7px;
  width: 7px;
}

.trending-today-pill {
  background: #eef3ff;
  color: #315ba4;
}

.trending-count-summary {
  background: #f7fafc;
  border: 1px solid #e0e8f0;
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2px;
  padding: 10px 0;
}

.trending-count-summary > div {
  display: grid;
  gap: 2px;
  padding: 2px 16px;
}

.trending-count-summary > div + div {
  border-left: 1px solid var(--line);
}

.trending-count-summary span,
.trending-count-summary small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trending-count-summary strong {
  font-size: 23px;
  line-height: 1.1;
}

.trending-count-summary > div:first-child strong {
  color: #087760;
}

.trending-count-summary > div:nth-child(2) strong {
  color: #b56c00;
}

.trending-list.compact {
  grid-template-columns: minmax(0, 1fr);
}

.trending-card {
  align-items: start;
  background:
    radial-gradient(circle at 100% 0, rgba(37, 99, 235, 0.06), transparent 34%),
    linear-gradient(145deg, #ffffff, #f8fbfc);
  border: 1px solid #dce5ed;
  border-radius: 13px;
  box-shadow: 0 8px 20px rgba(31, 45, 61, 0.065);
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: 48px minmax(0, 1fr);
  overflow: hidden;
  padding: 15px;
  position: relative;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.trending-card::before {
  bottom: 0;
  content: "";
  left: 0;
  position: absolute;
  top: 0;
  width: 4px;
}

.trending-card.elite::before {
  background: linear-gradient(180deg, #0b9471, #00644f);
}

.trending-card.premium::before {
  background: linear-gradient(180deg, #efa51d, #b66c00);
}

.trending-card:hover,
.trending-card:focus-visible {
  border-color: rgba(0, 108, 91, 0.34);
  box-shadow: 0 15px 30px rgba(31, 45, 61, 0.13);
  outline: none;
  transform: translateY(-2px);
}

.trending-card.compact-card {
  align-items: center;
  grid-template-columns: 38px minmax(0, 1fr);
  min-height: 76px;
  padding: 12px;
  width: 100%;
}

.trending-card.compact-card .trending-main {
  min-width: 0;
}

.trending-card.compact-card .trending-title-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.trending-rank {
  align-items: center;
  background: #eef8f5;
  border: 1px solid #d2eae3;
  border-radius: 10px;
  color: var(--accent-strong);
  display: grid;
  gap: 0;
  height: 46px;
  justify-items: center;
  line-height: 1;
  place-content: center;
  width: 46px;
}

.trending-card.premium .trending-rank {
  background: #fff7e8;
  border-color: #f3dfb7;
  color: #a45f00;
}

.trending-rank small {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.trending-rank strong {
  font-size: 18px;
  margin-top: 2px;
}

.trending-card.compact-card .trending-rank {
  height: 36px;
  width: 36px;
}

.trending-card.compact-card .trending-rank small {
  display: none;
}

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

.trending-matchup {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.trending-matchup strong {
  font-size: 16px;
  line-height: 1.25;
}

.trending-matchup > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.trending-tier {
  border-radius: 999px;
  color: #ffffff;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.03em;
  padding: 6px 9px;
  text-transform: uppercase;
}

.trending-tier.elite {
  background: linear-gradient(135deg, #078264, #045544);
}

.trending-tier.premium {
  background: linear-gradient(135deg, #e69208, #a75f00);
}

.trending-meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 11px;
  font-weight: 800;
  gap: 7px;
  margin-top: 7px;
}

.trending-meta > span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trending-meta > strong {
  background: #eef3f8;
  border-radius: 6px;
  color: var(--text);
  padding: 4px 7px;
}

.trending-meta > em {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-style: normal;
  gap: 5px;
  padding: 4px 7px;
}

.trending-meta > em.live {
  background: #e8f9f2;
  color: #087760;
}

.trending-meta > em.today {
  background: #eef3ff;
  color: #315ba4;
}

.trending-meta > em i {
  background: currentColor;
  border-radius: 999px;
  height: 6px;
  width: 6px;
}

.trending-metrics {
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trending-card.compact-card .trending-fixture,
.trending-card.compact-card .trending-card-footer,
.trending-card.compact-card .trending-metrics {
  display: none;
}

.trending-metrics > span {
  background: #f5f8fb;
  border: 1px solid #e0e8ef;
  border-radius: 9px;
  display: grid;
  gap: 2px;
  padding: 9px 10px;
}

.trending-metrics small,
.trending-metrics em {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.trending-metrics strong {
  color: var(--text);
  font-size: 18px;
}

.trending-card-footer {
  align-items: center;
  border-top: 1px solid #e7edf2;
  display: flex;
  gap: 10px;
  grid-column: 1 / -1;
  justify-content: space-between;
  padding-top: 10px;
}

.trending-fixture {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.trending-card-footer > span {
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
}

.trending-card-footer i {
  font-style: normal;
  margin-left: 3px;
}

.trending-loading-state,
.trending-empty {
  align-items: center;
  background: linear-gradient(135deg, #f8fbfd, #f2f8f7);
  border: 1px dashed #cbd9e3;
  border-radius: 10px;
  color: var(--muted);
  display: grid;
  gap: 6px;
  justify-items: center;
  min-height: 140px;
  padding: 20px;
  text-align: center;
}

.trending-loading-state > span {
  animation: trending-pulse 1.1s ease-in-out infinite alternate;
  background: linear-gradient(90deg, #dfe9ef, #eef5f7, #dfe9ef);
  border-radius: 999px;
  height: 10px;
  width: 88px;
}

.trending-loading-state strong,
.trending-empty strong {
  color: var(--text);
}

.trending-loading-state small,
.trending-empty small {
  font-size: 11px;
  font-weight: 700;
  max-width: 460px;
}

.trending-empty > span {
  align-items: center;
  background: #eaf4f2;
  border-radius: 999px;
  color: #087760;
  display: inline-flex;
  font-size: 22px;
  height: 42px;
  justify-content: center;
  width: 42px;
}

@keyframes trending-pulse {
  from {
    opacity: 0.5;
    transform: scaleX(0.84);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@media (min-width: 1500px) {
  .trending-dashboard .trending-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

pre {
  background: #f3f5f7;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #243044;
  margin: 0;
  max-height: 360px;
  overflow: auto;
  padding: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

.table-wrap {
  overflow: auto;
}

table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

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

th {
  color: var(--muted);
  font-size: 13px;
}

.matches-workspace {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 300px);
}

.match-slip {
  align-self: start;
  display: grid;
  gap: 14px;
  position: sticky;
  top: 16px;
}

.matches-main,
.match-alert-feed,
.betting-options-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.matches-main {
  min-width: 0;
  overflow: hidden;
  padding: 16px;
}

.match-alert-feed {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.match-alert-feed-body {
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: grid;
  gap: 6px;
  min-height: 118px;
  place-content: center;
  padding: 14px;
  text-align: center;
}

.matches-latest-alerts {
  border: 0;
  max-height: min(360px, calc(100vh - 220px));
  min-height: 118px;
  overflow-y: auto;
  padding: 0 3px 0 0;
  place-content: stretch;
  text-align: left;
}

.match-alert-feed-note {
  color: var(--muted);
  font-size: 12px;
  margin: 4px 0 0;
}

.matches-latest-alerts .alert-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  min-height: 118px;
  padding: 14px;
  place-content: center;
  text-align: center;
}

.match-alert-card {
  border: 1px solid var(--line);
  border-left: 4px solid #8b97a8;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 12px;
  text-align: left;
}

.match-alert-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.match-alert-card p {
  color: var(--muted);
  margin: 0;
}

.match-alert-card time {
  color: var(--muted);
  font-size: 11px;
}

.match-alert-card .match-alert-live-confidence {
  color: #116b5b;
  font-size: 11px;
  font-weight: 900;
}

.match-alert-selection,
.customer-alert-selection {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 7px;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding: 7px 9px;
}

.match-alert-selection strong,
.customer-alert-selection strong {
  color: var(--ink);
}

.customer-alert-selection > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.match-alert-card.initial-watch {
  background: #f4f8ff;
  border-left-color: #2559a8;
}

.match-alert-card.premium-watch {
  background: #fff8e8;
  border-left-color: #d09321;
}

.match-alert-card.elite-watch {
  background: #eef8f6;
  border-left-color: #177f6b;
}

.match-alert-card.live-alert {
  background: #eefaf4;
  border-left-color: #138a60;
}

.betslip-header {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.betslip-header h3 {
  margin: 0;
}

.betting-options-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.betting-options-panel[hidden] {
  display: none;
}

.betslip-header button,
.betslip-card-head button {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0;
}

.betslip-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: grid;
  gap: 6px;
  min-height: 170px;
  place-content: center;
  padding: 18px;
  text-align: center;
}

.betslip-empty[hidden] {
  display: none;
}

.default-stake-control {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  display: grid;
  gap: 4px;
  margin-top: 8px;
  min-width: 160px;
  padding: 8px;
}

.default-stake-control span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.default-stake-control input {
  border: 0;
  color: var(--text);
  font: inherit;
  font-weight: 900;
  text-align: center;
}

.betslip-selection {
  display: grid;
  gap: 12px;
}

.bet-flow-panel {
  display: grid;
  gap: 12px;
}

.betslip-card {
  background: #eaf0fb;
  border: 1px solid #dbe5f5;
  border-radius: 6px;
  display: grid;
  gap: 4px;
  padding: 10px;
}

.betslip-card.pending {
  background: #fff8e8;
  border-color: #f0d99e;
}

.betslip-card.pending em {
  color: #9a6200;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.betslip-card-head {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.sidebar-stake-control {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 10px;
}

.bet-selection-control {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 10px;
}

.bet-selection-control legend {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  padding: 0 4px;
}

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

.bet-selection-grid label {
  align-items: center;
  background: #f7f9fc;
  border: 1px solid #dbe5f5;
  border-radius: 6px;
  cursor: pointer;
  display: grid;
  gap: 3px;
  min-height: 52px;
  padding: 7px;
  position: relative;
  text-align: center;
}

.bet-selection-grid input {
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

.bet-selection-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.bet-selection-grid strong {
  color: var(--text);
  font-size: 12px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.bet-selection-grid label:has(input:checked) {
  background: #e6f4f1;
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.bet-selection-grid label:has(input:checked) span,
.bet-selection-grid label:has(input:checked) strong {
  color: var(--accent-strong);
}

.sidebar-stake-control span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.sidebar-stake-control input {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  font-weight: 900;
  min-height: 40px;
  padding: 8px 10px;
}

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

.stake-option-grid button {
  background: #edf3ff;
  border: 1px solid #dbe5f5;
  border-radius: 6px;
  color: var(--blue);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  min-height: 34px;
}

.stake-option-grid button:hover {
  background: #dfeaff;
}

.bookmaker-sidebar-list {
  display: grid;
  gap: 8px;
}

.bookmaker-comparison-panel {
  background:
    radial-gradient(circle at 100% 0, rgba(13, 148, 136, 0.1), transparent 42%),
    linear-gradient(145deg, #f8fffd, #f7faff);
  border: 1px solid #d6e6e4;
  border-radius: 10px;
  display: grid;
  gap: 10px;
  overflow: hidden;
  padding: 11px;
}

.bookmaker-comparison-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.bookmaker-comparison-head > div {
  display: grid;
  gap: 2px;
}

.bookmaker-comparison-head span,
.bookmaker-comparison-head small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.bookmaker-comparison-head strong {
  color: var(--text);
  font-size: 14px;
}

.bookmaker-comparison-head > small {
  background: #e7f5f2;
  border-radius: 999px;
  color: var(--accent-strong);
  padding: 5px 8px;
}

.bookmaker-availability {
  border-left: 3px solid #169b80;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  padding-left: 8px;
}

.bookmaker-availability.loading {
  border-left-color: #3976d2;
  color: #315c9c;
}

.bookmaker-availability.limited {
  border-left-color: #d5931d;
  color: #805c1a;
}

.bookmaker-availability.unavailable {
  border-left-color: #9aa7b8;
  color: #667085;
}

.sidebar-bookmaker-card {
  background: #ffffff;
  border: 1px solid #dce6ee;
  border-radius: 9px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 9px;
  padding: 10px;
  text-align: left;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
  width: 100%;
}

.sidebar-bookmaker-card:hover,
.sidebar-bookmaker-card:focus-visible {
  border-color: #75b9aa;
  box-shadow: 0 8px 18px rgba(17, 91, 79, 0.11);
  outline: none;
  transform: translateY(-1px);
}

.sidebar-bookmaker-card.no-prices {
  background: rgba(255, 255, 255, 0.74);
}

.sidebar-bookmaker-head {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
}

.sidebar-bookmaker-head > span {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.sidebar-bookmaker-head > span strong {
  color: var(--text);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-bookmaker-head > span small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.sidebar-bookmaker-head > b {
  color: #176f60;
  font-size: 11px;
  white-space: nowrap;
}

.bookmaker-monogram {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  height: 34px;
  justify-content: center;
  letter-spacing: -0.02em;
  width: 38px;
}

.bookmaker-monogram.sky {
  background: #e5f5ff;
  color: #006eb8;
}

.bookmaker-monogram.paddy-power {
  background: #e4f7ef;
  color: #087548;
}

.bookmaker-monogram.virgin {
  background: #fff0f4;
  color: #c82055;
}

.bookmaker-monogram.william-hill {
  background: #eef0ff;
  color: #3f42a8;
}

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

.sidebar-outcome-price {
  background: #f5f8fb;
  border: 1px solid #e4eaf0;
  border-radius: 7px;
  display: grid;
  gap: 1px;
  min-height: 48px;
  padding: 5px 4px;
  position: relative;
  text-align: center;
}

.sidebar-outcome-price small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.sidebar-outcome-price strong {
  color: #334155;
  font-size: 13px;
}

.sidebar-outcome-price.best {
  background: #eafaf4;
  border-color: #9bd9c8;
}

.sidebar-outcome-price.best strong {
  color: #087760;
}

.sidebar-outcome-price.selected {
  background: #e8f1ff;
  border-color: #4f83d1;
  box-shadow: inset 0 0 0 1px #4f83d1;
}

.sidebar-outcome-price.selected small,
.sidebar-outcome-price.selected strong {
  color: #1f5ca8;
}

.sidebar-outcome-price em {
  color: #087760;
  font-size: 8px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.sidebar-return-summary {
  background: #f2f8f6;
  border: 1px solid #d0e7e0;
  border-radius: 7px;
  display: grid;
  gap: 2px;
  padding: 8px 9px;
}

.sidebar-return-summary small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.sidebar-return-summary strong {
  color: #155f52;
  font-size: 12px;
}

.sidebar-return-summary em {
  color: #087760;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.bookmaker-sidebar-list .bookmaker-link-button {
  background: #edf3ff;
  border-color: #dce7f8;
  color: #1f5cc4;
}

.bookmaker-sidebar-list .bookmaker-link-button span {
  color: var(--muted);
}

.bookmaker-sidebar-list .bookmaker-link-button:hover {
  background: #dce9ff;
}

.advisory-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.place-bet-button {
  background: #0c8d45;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  min-height: 48px;
}

.match-search-box,
.match-filter-stack,
.provider-card,
.match-alert-feed {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
}

.rail .match-search-box,
.rail .match-filter-stack,
.rail .provider-card {
  background: #f8fafc;
}

.rail-live-card {
  background: linear-gradient(135deg, #ecfdf5, #ffffff);
  border: 1px solid #b9e8d6;
  border-radius: 10px;
  display: grid;
  gap: 6px;
  padding: 12px;
}

.rail-live-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.rail-live-card strong {
  font-size: 13px;
}

.rail-live-card small {
  color: #047857;
  font-size: 12px;
  font-weight: 900;
}

.match-search-box,
.match-filter-stack {
  display: grid;
  gap: 8px;
}

.match-quick-nav {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.match-quick-nav button {
  align-items: center;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-weight: 700;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 14px;
  width: 100%;
}

.match-quick-nav button::after {
  content: ">";
  color: var(--muted);
  font-weight: 900;
}

.match-quick-nav button:last-child {
  border-bottom: 0;
}

.provider-card pre {
  max-height: 160px;
}

.match-market-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.match-market-tabs button {
  background: #f7fafc;
  border: 1px solid #d6e1eb;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  padding: 8px 12px;
}

.match-market-tabs button.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: var(--accent);
  box-shadow: 0 7px 16px rgba(0, 133, 111, 0.18);
  color: #ffffff;
}

.matches-list-toolbar {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: -2px -2px 0;
  padding: 0 2px 14px;
}

.matches-list-toolbar h3,
.matches-list-toolbar p {
  margin: 0;
}

.matches-list-toolbar h3 {
  font-size: 17px;
}

.matches-list-toolbar p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  margin-top: 3px;
}

.matches-main > #matches-note {
  background: #f5faf9;
  border: 1px solid #d7ebe6;
  border-radius: 7px;
  font-size: 12px;
  margin: 12px 0;
  max-width: none;
  padding: 8px 10px;
}

.matches-column-head {
  color: var(--muted);
  display: grid;
  font-size: 10px;
  font-weight: 900;
  gap: 14px;
  grid-template-columns: minmax(240px, 1fr) 152px 92px 148px 44px;
  letter-spacing: 0.07em;
  padding: 0 27px 8px;
  text-transform: uppercase;
}

.matches-column-head span:not(:first-child) {
  text-align: center;
}

.matches-feed {
  max-height: calc(100vh - 375px);
  min-height: 310px;
  padding-right: 2px;
}

.matches-my-bets-view {
  max-height: calc(100vh - 265px);
  overflow: auto;
}

.league-list {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.football-home {
  display: grid;
  gap: 18px;
}

.football-hero {
  background:
    radial-gradient(circle at 88% 8%, rgba(37, 99, 235, 0.14), transparent 34%),
    linear-gradient(135deg, #eef9f6, #f4f8ff);
  border: 1px solid #cfdfeb;
  border-radius: 10px;
  color: var(--text);
  display: grid;
  gap: 28px;
  padding: 20px 18px 0;
}

.football-hero span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.football-hero strong {
  display: block;
  font-size: 24px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.football-hero nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.football-hero button {
  background: transparent;
  border: 0;
  border-bottom: 4px solid transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 0 0 12px;
}

.football-hero button.active,
.football-hero button:hover {
  border-bottom-color: var(--accent);
  color: var(--accent-strong);
}

.football-section {
  display: grid;
  gap: 10px;
}

.football-section h3 {
  margin: 0;
}

.featured-match-strip {
  display: grid;
  gap: 12px;
  grid-auto-columns: minmax(260px, 340px);
  grid-auto-flow: column;
  overflow-x: auto;
  padding-bottom: 4px;
}

.featured-match-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.featured-match-top,
.featured-teams {
  background: linear-gradient(135deg, #edf8f5, #eff5ff);
  color: var(--text);
}

.featured-match-top {
  display: grid;
  gap: 4px;
  padding: 16px 18px 4px;
  text-align: center;
}

.featured-match-top span {
  color: var(--muted);
  font-size: 13px;
}

.featured-teams {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  min-height: 82px;
  padding: 8px 18px 22px;
  text-align: center;
}

.featured-teams strong {
  font-size: 15px;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.featured-teams span {
  color: var(--accent-strong);
  font-weight: 900;
}

.featured-odds-row {
  display: grid;
  gap: 2px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 8px 8px 0;
}

.featured-odds-row button {
  background: #edf3ff;
  border: 1px solid #dce7f8;
  border-radius: 6px;
  color: #1f5cc4;
  cursor: pointer;
  display: grid;
  gap: 3px;
  min-height: 48px;
  padding: 6px;
}

.featured-odds-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.featured-odds-row strong {
  font-size: 14px;
}

.build-bet-button {
  background: #ffffff;
  border: 2px solid #1f5cc4;
  border-radius: 6px;
  color: #1f5cc4;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  margin: 8px;
  min-height: 46px;
  width: calc(100% - 16px);
}

.football-shortcuts {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.football-shortcuts button,
.competition-region,
.up-next-match {
  background: #ffffff;
  border: 0;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.football-shortcuts button {
  border-right: 1px solid var(--line);
  font-weight: 800;
  min-height: 54px;
  padding: 0 14px;
}

.football-shortcuts button:last-child {
  border-right: 0;
}

.up-next-list,
.competition-region-list {
  display: grid;
  gap: 8px;
}

.up-next-match,
.competition-region {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
}

.up-next-match span,
.up-next-match em,
.competition-region strong {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.competition-region {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
}

.league-group {
  background: #fbfdff;
  border: 1px solid #dce6ef;
  border-radius: 10px;
  overflow: hidden;
}

.league-header {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(0, 133, 111, 0.075), rgba(37, 99, 235, 0.035)),
    #ffffff;
  border-bottom: 1px solid #dce6ef;
  color: var(--text);
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 11px 13px;
}

.league-country-badge {
  align-items: center;
  background: #ffffff;
  border: 1px solid #bcded6;
  border-radius: 7px;
  color: var(--accent-strong);
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  min-width: 36px;
  padding: 0 6px;
}

.league-title {
  font-size: 13px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.league-meta {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.league-matches {
  display: grid;
  gap: 10px;
  padding: 10px;
}

.match-card {
  display: grid;
}

.match-row {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e0e8f0;
  border-left: 3px solid #9bd2c5;
  border-radius: 9px;
  box-shadow: 0 4px 13px rgba(31, 45, 61, 0.045);
  cursor: pointer;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(220px, 1fr) 184px 92px 148px 44px;
  min-height: 96px;
  padding: 11px 13px;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.match-row:hover {
  border-color: #86c8b9;
  box-shadow: 0 10px 22px rgba(31, 45, 61, 0.09);
  transform: translateY(-1px);
}

.match-row:nth-child(odd) {
  background: #ffffff;
}

.match-scoreline {
  align-items: center;
  display: grid;
  gap: 2px;
  justify-items: center;
}

.match-score {
  align-items: center;
  background: #f7fafc;
  border: 1px solid #dce6ef;
  border-radius: 7px;
  color: var(--text);
  display: inline-flex;
  font-size: 16px;
  font-weight: 900;
  justify-content: center;
  min-height: 38px;
  min-width: 68px;
}

.match-teams {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.match-team-line {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 28px minmax(0, 1fr);
  min-width: 0;
}

.match-team-mark {
  align-items: center;
  background: linear-gradient(135deg, #e8f6f2, #dcefe9);
  border: 1px solid #c8e2db;
  border-radius: 50%;
  color: var(--accent-strong);
  display: inline-flex;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.match-team-mark.away {
  background: linear-gradient(135deg, #eef3ff, #e1e9fb);
  border-color: #d1dcf4;
  color: #315fa8;
}

.match-team-line strong {
  font-size: 14px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.match-customer-badge {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  max-width: max-content;
  padding: 5px 8px;
}

.match-customer-badge.initial-watch {
  background: #eef4ff;
  border-color: #c9daf8;
  color: #2559a8;
}

.match-customer-badge.premium-watch {
  background: #fff8e8;
  border-color: #f2d28d;
  color: #8b5a00;
}

.match-customer-badge.elite-watch {
  background: #eef8f6;
  border-color: #b9ddd4;
  color: #116b5b;
}

.match-customer-badge.live-alert {
  background: #e9f8ef;
  border-color: #9bd7b5;
  color: #0d6b3d;
}

.match-live-meta {
  align-items: center;
  display: grid;
  gap: 5px 8px;
  grid-template-columns: minmax(0, 1fr) 76px;
  justify-items: center;
  justify-self: stretch;
  width: 100%;
}

.match-live-meta .match-customer-badge {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.match-live-meta .fixture-id {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
}

.match-confidence-display {
  align-items: center;
  display: flex;
  flex-direction: column;
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-content: center;
  min-width: 72px;
}

.match-confidence-symbol {
  --match-confidence: 0;
  --match-confidence-color: #6f7f91;
  align-items: center;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    conic-gradient(
      var(--match-confidence-color) calc(var(--match-confidence) * 1%),
      #e5ebf1 0
    ) border-box;
  border: 4px solid transparent;
  border-radius: 50%;
  color: #344255;
  display: inline-flex;
  flex-direction: column;
  height: 50px;
  justify-content: center;
  line-height: 1;
  width: 50px;
}

.match-confidence-view {
  display: grid;
  gap: 1px;
  justify-items: center;
  margin-top: 4px;
  max-width: 76px;
  min-width: 0;
}

.match-confidence-view small {
  color: var(--muted);
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
}

.match-confidence-view strong {
  color: #245fc1;
  display: block;
  font-size: 9px;
  font-weight: 900;
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-confidence-view.no-bet strong {
  color: #a52727;
}

.match-confidence-symbol strong {
  font-size: 11px;
  font-weight: 900;
}

.match-confidence-symbol small {
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-top: 2px;
  text-transform: uppercase;
}

.match-confidence-symbol.no-bet {
  --match-confidence-color: #c43b3b;
}

.match-confidence-symbol.monitoring {
  --match-confidence-color: #bd7b11;
}

.match-confidence-symbol.developing {
  --match-confidence-color: #3978cc;
}

.match-confidence-symbol.strong {
  --match-confidence-color: #168b83;
}

.match-confidence-symbol.final {
  --match-confidence-color: #075f45;
}

.match-confidence-symbol.checking {
  opacity: 0.7;
}

.match-time {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.match-time.delayed {
  color: #a15c00;
  font-weight: 900;
}

.match-status {
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 900;
}

.match-odds-strip {
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(88px, auto) 40px;
  justify-content: end;
}

.odds-button,
.stats-button {
  background: #edf3ff;
  border: 1px solid #dce7f8;
  border-radius: 6px;
  color: #1f5cc4;
  cursor: pointer;
  display: grid;
  gap: 2px;
  min-height: 46px;
  padding: 6px 8px;
  text-align: center;
}

.odds-button span,
.stats-button span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.odds-button strong,
.stats-button strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}

.odds-button:hover:not(:disabled),
.stats-button:hover {
  background: #dce9ff;
  border-color: #b9cef6;
}

.stats-button.active {
  background: #dce9ff;
  border-color: #1f5cc4;
}

.odds-button:disabled,
.odds-button.muted {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.72;
}

.fixture-id {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  max-width: 130px;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-button {
  background: #ffffff;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 6px;
}

.open-bookmaker-row-button,
.analyse-match-row-button {
  align-items: center;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  gap: 6px;
  justify-content: center;
  letter-spacing: -0.01em;
  min-height: 34px;
  padding: 5px 10px;
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
  width: 100%;
  white-space: nowrap;
}

.open-bookmaker-row-button {
  background: #ffffff;
  border: 1px solid #9acdbd;
  box-shadow: 0 3px 8px rgba(13, 125, 81, 0.08);
  color: #08764c;
}

.open-bookmaker-row-button::after {
  content: "\2197";
  font-size: 12px;
  line-height: 1;
}

.open-bookmaker-row-button:hover {
  background: #edf9f4;
  border-color: #5eae92;
  box-shadow: 0 5px 12px rgba(13, 125, 81, 0.12);
  transform: translateY(-1px);
}

.analyse-match-row-button {
  background: linear-gradient(135deg, #3778df, #245fc1);
  border: 1px solid #2458ab;
  box-shadow: 0 5px 12px rgba(36, 95, 193, 0.18);
  color: #ffffff;
}

.analyse-match-row-button::before {
  content: "\2726";
  font-size: 11px;
  line-height: 1;
}

.analyse-match-row-button:hover {
  background: linear-gradient(135deg, #2e6dcc, #1e51a7);
  border-color: #1e4f9e;
  box-shadow: 0 7px 15px rgba(36, 95, 193, 0.22);
  transform: translateY(-1px);
}

.analyse-match-row-button:disabled,
.open-bookmaker-row-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.match-odds-strip .odds-button,
.match-odds-strip .stats-button {
  min-height: 34px;
  padding: 3px 5px;
}

.match-odds-strip .odds-button span {
  font-size: 10px;
}

.match-odds-strip .odds-button strong {
  font-size: 12px;
}

.match-odds-strip.compact {
  grid-template-columns: minmax(88px, auto) 40px;
}

.match-odds-strip.action-only {
  grid-template-columns: minmax(0, 1fr);
  justify-self: center;
  justify-content: center;
  max-width: 148px;
  width: 100%;
}

.match-stats-cell {
  align-items: center;
  display: flex;
  justify-content: center;
}

.match-stats-cell .stats-button {
  min-height: 34px;
  min-width: 40px;
  padding: 3px 5px;
  width: 40px;
}

.match-odds-strip .stats-button {
  min-width: 38px;
}

.stats-bars {
  align-items: end;
  border: 1px solid #1f5cc4;
  border-radius: 2px;
  display: inline-flex;
  gap: 3px;
  height: 22px;
  justify-content: center;
  padding: 4px;
  width: 22px;
}

.stats-bars i {
  background: #1f5cc4;
  display: block;
  width: 3px;
}

.stats-bars i:nth-child(1) {
  height: 7px;
}

.stats-bars i:nth-child(2) {
  height: 12px;
}

.stats-bars i:nth-child(3) {
  height: 17px;
}

.stats-button.active .stats-bars {
  background: #1f5cc4;
}

.stats-button.active .stats-bars i {
  background: #ffffff;
}

.match-detail-panel,
.match-analysis-panel {
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  margin: -2px 0 8px 4px;
  overflow: hidden;
}

.match-detail-panel[hidden],
.match-analysis-panel[hidden] {
  display: none;
}

.match-insight-panel {
  background: #f8fbff;
  border-bottom: 1px solid var(--line);
  border-left: 5px solid #607086;
  color: var(--text);
  display: grid;
}

.match-insight-panel.algorithm-triggered {
  background: #effaf5;
  border-left-color: #0d8b59;
}

.match-insight-panel.near-trigger {
  background: #fff9eb;
  border-left-color: #c68412;
}

.match-insight-panel.general-analysis {
  border-left-color: #356fca;
}

.match-insight-panel.no-recommendation {
  background: #f7f8fa;
  border-left-color: #788596;
}

.match-insight-panel.idle {
  align-items: center;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px 16px;
}

.match-insight-panel.idle > div {
  display: grid;
  gap: 3px;
}

.match-insight-panel.idle span,
.match-insight-panel.idle small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.match-insight-header {
  align-items: center;
  border-bottom: 1px solid rgba(115, 132, 154, 0.18);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 13px 16px;
}

.match-insight-header > div {
  display: grid;
  gap: 3px;
}

.match-insight-header span,
.match-insight-header b {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.match-insight-header b {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
}

.match-insight-summary {
  display: grid;
  gap: 11px;
  padding: 14px 16px 16px;
}

.match-insight-summary > p {
  margin: 0;
}

.match-insight-recommendation {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  padding: 11px 12px;
}

.match-insight-prediction {
  background: #eef7ff;
  border: 1px solid #91bce5;
  border-radius: 8px;
  display: grid;
  gap: 3px;
  padding: 11px 12px;
}

.match-insight-prediction.unavailable {
  background: #f7f9fc;
  border-color: var(--line);
}

.match-insight-prediction span,
.match-insight-prediction small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.match-insight-prediction strong {
  font-size: 17px;
}

.match-insight-recommendation.available {
  background: #effaf5;
  border-color: #8fcfb0;
}

.match-insight-recommendation.wait {
  background: #fffaf0;
  border-color: #e4c16f;
}

.match-insight-recommendation span,
.match-insight-section span,
.insight-disclaimer {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.match-insight-recommendation strong {
  font-size: 16px;
}

.match-insight-sections {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.match-insight-section {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 10px;
}

.match-insight-section strong {
  font-size: 13px;
}

.insight-selection,
.insight-snapshot-source {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  padding: 10px 12px;
}

.insight-selection.triggered {
  border-color: #8fcfb0;
}

.insight-selection.watch {
  border-color: #e4c16f;
}

.insight-selection span,
.insight-snapshot-source span,
.insight-metrics span,
.insight-metrics small,
.insight-disclaimer {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.insight-metrics {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.insight-metrics > div {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 2px;
  padding: 9px;
}

.insight-metrics strong {
  font-size: 17px;
}

.admin-confidence-logic {
  background: linear-gradient(135deg, #f2f8ff, #f2fbf7);
  border: 1px solid #cbddec;
  border-left: 4px solid #177f6b;
  border-radius: 9px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.admin-confidence-logic header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.admin-confidence-logic header > div,
.admin-confidence-flow span {
  display: grid;
  gap: 2px;
}

.admin-confidence-logic header span,
.admin-confidence-logic small,
.admin-confidence-flow small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.admin-confidence-logic header b {
  background: #ffffff;
  border: 1px solid #a9d6c9;
  border-radius: 999px;
  color: #116b5b;
  padding: 7px 10px;
  white-space: nowrap;
}

.admin-confidence-flow {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-confidence-flow span {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #dce7ef;
  border-radius: 7px;
  min-width: 0;
  padding: 8px;
}

.admin-confidence-flow strong {
  font-size: 11px;
  overflow-wrap: anywhere;
}

.admin-confidence-logic p {
  color: #344255;
  font-size: 11px;
  line-height: 1.45;
  margin: 0;
}

.insight-list {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.insight-list ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.insight-list li + li {
  margin-top: 4px;
}

.insight-list li small {
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

.insight-list.warnings {
  border-color: #e2c784;
}

.insight-market-context,
.admin-insight-algorithm {
  display: grid;
  gap: 6px;
}

.insight-market-context > span {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 2px;
  padding: 8px 10px;
}

.insight-market-context small {
  color: var(--muted);
}

.match-insight-panel.admin {
  border-left: 4px solid #0a477e;
}

.detail-loading,
.detail-error {
  background: #ffffff;
  color: var(--muted);
  padding: 16px;
}

.detail-error {
  border: 1px dashed var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
}

.detail-error strong {
  color: var(--danger);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
}

.stats-panel {
  background: #072f83;
  color: #ffffff;
}

.algorithm-watch-panel {
  background: #ffffff;
  border-left: 1px solid var(--line);
  color: var(--text);
}

.customer-guidance {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 5px;
  padding: 14px 16px;
}

.customer-guidance span,
.customer-guidance small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.customer-guidance p {
  color: var(--muted);
  margin: 0;
}

.customer-guidance.live-alert {
  background: #eefaf4;
  border-left: 4px solid #138a60;
}

.customer-guidance.elite-watch {
  background: #eef8f6;
  border-left: 4px solid #177f6b;
}

.customer-guidance.premium-watch {
  background: #fff8e8;
  border-left: 4px solid #d09321;
}

.customer-guidance.initial-watch,
.customer-guidance.monitoring {
  background: #f6f7f9;
  border-left: 4px solid #8b97a8;
}

.detail-header {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 14px 16px;
}

.algorithm-watch-panel .detail-header {
  border-bottom-color: var(--line);
}

.detail-header div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.detail-header strong {
  overflow-wrap: anywhere;
}

.detail-header > span {
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  opacity: 0.8;
  text-align: right;
}

.detail-kicker {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  opacity: 0.75;
  text-transform: uppercase;
}

.stats-board {
  display: grid;
  gap: 18px;
  padding: 18px 20px 16px;
}

.locked-odds-panel {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px 20px;
}

.locked-odds-panel.missing {
  grid-template-columns: 1fr;
}

.locked-odds-panel span,
.locked-odds-panel small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 800;
}

.locked-odds-panel strong {
  color: #ffffff;
  display: block;
  overflow-wrap: anywhere;
}

.locked-odds-summary {
  color: rgba(255, 255, 255, 0.82);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 4px;
  text-align: right;
}

.current-bookmaker-odds {
  margin: 12px 20px;
  overflow: hidden;
  border: 1px solid #cce7df;
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0, rgba(16, 185, 129, 0.12), transparent 42%),
    linear-gradient(145deg, #f8fffc, #f2f9ff);
}

.current-bookmaker-odds > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px 10px;
}

.current-bookmaker-odds > header div {
  display: grid;
  gap: 2px;
}

.current-bookmaker-odds > header span,
.current-bookmaker-odds > header small,
.current-bookmaker-odds > small,
.current-bookmaker-odds p {
  color: var(--muted);
  font-size: 12px;
}

.current-bookmaker-odds > header strong {
  color: var(--text);
  font-size: 16px;
}

.current-bookmaker-odds.unavailable {
  padding-bottom: 13px;
  border-style: dashed;
  background: #f8fafc;
}

.current-bookmaker-odds.unavailable > small {
  display: block;
  padding: 0 14px;
}

.current-odds-table {
  overflow: hidden;
  margin: 0 12px;
  border: 1px solid #dce8ee;
  border-radius: 12px;
  background: #fff;
}

.current-odds-head,
.current-odds-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) repeat(3, minmax(56px, 0.34fr));
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
}

.current-odds-head {
  color: #718096;
  background: #f5f8fa;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.current-odds-head span:not(:first-child),
.current-odds-row > b {
  text-align: center;
}

.current-odds-row + .current-odds-row {
  border-top: 1px solid #edf2f5;
}

.current-odds-row > span {
  display: grid;
  min-width: 0;
}

.current-odds-row > span strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.current-odds-row > span small {
  color: var(--muted);
  font-size: 10px;
}

.current-odds-row > b {
  padding: 5px 7px;
  border-radius: 8px;
  color: #065f46;
  background: #e9fbf4;
  font-size: 13px;
}

.current-bookmaker-odds p {
  margin: 9px 14px 12px;
}

.bookmaker-redirect-block {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  gap: 12px;
  padding: 16px 20px 20px;
}

.bookmaker-redirect-header {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.bookmaker-redirect-header span,
.bookmaker-redirect-block p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 800;
}

.bookmaker-redirect-block p {
  line-height: 1.4;
  margin: 0;
}

.bookmaker-redirect-block .bet-selection-control {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
}

.bookmaker-redirect-block .bet-selection-control legend {
  color: rgba(255, 255, 255, 0.76);
}

.bookmaker-redirect-block .bet-selection-grid label {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.bookmaker-redirect-block .bet-selection-grid span,
.bookmaker-redirect-block .bet-selection-grid strong {
  color: rgba(255, 255, 255, 0.88);
}

.bookmaker-redirect-block .bet-selection-grid label:has(input:checked) {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
  box-shadow: inset 0 0 0 1px #ffffff;
}

.bookmaker-redirect-block .bet-selection-grid label:has(input:checked) span,
.bookmaker-redirect-block .bet-selection-grid label:has(input:checked) strong {
  color: #ffffff;
}

.bookmaker-redirect-block > small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.redirect-stake-control {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 10px;
}

.redirect-stake-control span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 900;
}

.redirect-stake-control input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #ffffff;
  font: inherit;
  font-weight: 900;
  min-height: 40px;
  padding: 8px 10px;
}

.bookmaker-link-list {
  display: grid;
  gap: 8px;
}

.bookmaker-link-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-weight: 900;
  justify-content: space-between;
  min-height: 44px;
  padding: 8px 10px;
}

.bookmaker-link-button span {
  color: rgba(255, 255, 255, 0.76);
}

.bookmaker-link-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.suggestion-workspace {
  display: grid;
  gap: 16px;
}

.suggestion-section {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.suggestion-section h3 {
  line-height: 1.25;
  margin: 0;
}

.suggestion-section-header {
  display: grid;
  gap: 8px;
}

.suggestion-section-header .panel-note {
  font-size: 14px;
  line-height: 1.35;
  margin: 0;
}

.success-tracker-section {
  background: #f8fafc;
  border-left: 4px solid var(--blue);
}

.external-bets-section {
  border-left: 4px solid #d69d17;
}

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

.my-bets-list {
  display: grid;
  gap: 10px;
}

.manual-bet-form {
  background: #f8fbff;
  border: 1px solid #cbd9ec;
  border-radius: 10px;
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  padding: 14px;
}

.manual-bet-form[hidden] {
  display: none;
}

.manual-bet-form-heading,
.manual-bet-form-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.manual-bet-form-heading div {
  display: grid;
  gap: 3px;
}

.manual-bet-form-heading strong {
  color: var(--text);
  font-size: 15px;
}

.manual-bet-form-heading span,
.manual-bet-form-actions small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.manual-bet-form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.manual-bet-form-grid label {
  display: grid;
  gap: 5px;
}

.manual-bet-form-grid label > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.manual-bet-form-grid input,
.manual-bet-form-grid select {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  font: inherit;
  min-height: 40px;
  padding: 8px 10px;
}

@media (max-width: 1100px) {
  .manual-bet-form-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
}

@media (max-width: 640px) {
  .manual-bet-form-grid {
    grid-template-columns: 1fr;
  }

  .manual-bet-form-heading,
  .manual-bet-form-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

.manual-settlement-note {
  align-items: start;
  background: #fffaf0;
  border: 1px solid #f1d99f;
  border-radius: 8px;
  color: #704d08;
  display: grid;
  font-size: 12px;
  gap: 3px;
  line-height: 1.45;
  padding: 10px 12px;
}

.manual-settlement-note strong {
  color: #583b05;
  font-size: 13px;
}

.compact-table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-x: auto;
}

.compact-verification-table {
  min-width: 860px;
  width: 100%;
}

.placed-bets-table {
  min-width: 1290px;
}

.compact-verification-table th,
.compact-verification-table td {
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.compact-verification-table th {
  background: #eef3fb;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.compact-verification-table small,
.success-rate-table small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-top: 3px;
}

.placed-bet-control,
.placed-bet-return input,
.placed-bet-entry-odds input {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  min-height: 34px;
}

.placed-bet-entry-odds {
  display: grid;
  gap: 4px;
}

.placed-bet-entry-odds span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.placed-bet-entry-odds input {
  padding: 6px 8px;
  width: 92px;
}

.placed-bet-monitor-status {
  color: #087760 !important;
  max-width: 210px;
}

.placed-bet-control {
  min-width: 112px;
  padding: 6px 26px 6px 8px;
}

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

.placed-bet-action-button {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  min-height: 34px;
  padding: 6px 10px;
}

.placed-bet-action-button:hover {
  background: #f3f6fa;
  border-color: #aebed3;
}

.placed-bet-action-button.delete {
  color: #a32929;
}

.placed-bets-pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.placed-bets-pagination > span,
.placed-bets-pagination label,
.placed-bets-pagination-buttons span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.placed-bets-pagination label {
  align-items: center;
  display: flex;
  gap: 7px;
}

.placed-bets-pagination select {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  min-height: 34px;
  padding: 6px 28px 6px 8px;
}

.placed-bets-pagination-buttons {
  display: flex;
  gap: 8px;
}

.placed-bet-return {
  align-items: center;
  display: inline-flex;
  position: relative;
}

.placed-bet-return span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  left: 9px;
  position: absolute;
  z-index: 1;
}

.placed-bet-return input {
  padding: 6px 8px 6px 21px;
  width: 100px;
}

.placed-bet-return input[readonly] {
  background: #f1f5f9;
  color: var(--muted);
}

.placed-bet-profit {
  display: inline-block;
  font-size: 13px;
  min-width: 72px;
  padding-top: 8px;
  white-space: nowrap;
}

.placed-bet-profit.positive {
  color: #087760;
}

.placed-bet-profit.negative {
  color: #c62828;
}

.placed-bet-profit.pending {
  color: var(--muted);
}

.stats-teams,
.stat-row {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
}

.stats-teams {
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
}

.stats-teams strong:last-child,
.stat-row > span:last-child {
  text-align: right;
}

.stat-row > span {
  font-weight: 900;
}

.stat-main {
  display: grid;
  gap: 7px;
}

.stat-main strong {
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.stat-track {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  display: flex;
  height: 5px;
  overflow: hidden;
}

.stat-home {
  background: #54a4ff;
}

.stat-away {
  background: #ff2936;
}

.detail-footnote {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  margin: 0;
}

.stats-warning {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.86);
  display: grid;
  font-size: 13px;
  gap: 4px;
  margin: 0;
  padding: 10px;
}

.stats-warning strong {
  color: #ffffff;
}

.stats-warning small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.match-events-panel {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  gap: 10px;
  padding: 14px 16px;
}

.match-events-panel h4 {
  font-size: 13px;
  margin: 0;
  text-transform: uppercase;
}

.match-events-list {
  display: grid;
  gap: 8px;
}

.match-event {
  align-items: start;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  display: grid;
  gap: 10px;
  grid-template-columns: 42px minmax(0, 1fr);
  padding: 10px;
}

.match-event > span {
  color: #ffffff;
  font-weight: 900;
}

.match-event strong,
.match-event p,
.match-event small {
  margin: 0;
}

.match-event p {
  color: rgba(255, 255, 255, 0.9);
}

.match-event small,
.match-events-empty {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 800;
}

.match-event.goal {
  border-left: 4px solid #22c55e;
}

.match-event.substitution {
  border-left: 4px solid #60a5fa;
}

.match-event.card {
  border-left: 4px solid #facc15;
}

.match-event.var {
  border-left: 4px solid #c084fc;
}

.matches-dashboard .match-detail-panel,
.matches-dashboard .match-analysis-panel {
  background: #f8fbfd;
  border-color: #dbe6ee;
  box-shadow: 0 12px 24px rgba(31, 45, 61, 0.08);
}

.matches-dashboard .stats-panel {
  background: linear-gradient(145deg, #f7fbff, #eef7f5);
  color: var(--text);
}

.matches-dashboard .detail-header,
.matches-dashboard .locked-odds-panel,
.matches-dashboard .bookmaker-redirect-block,
.matches-dashboard .match-events-panel {
  border-color: var(--line);
}

.matches-dashboard .locked-odds-panel {
  background: #eef5f8;
}

.matches-dashboard .locked-odds-panel span,
.matches-dashboard .locked-odds-panel small,
.matches-dashboard .locked-odds-panel strong,
.matches-dashboard .locked-odds-summary,
.matches-dashboard .stats-teams,
.matches-dashboard .detail-footnote,
.matches-dashboard .bookmaker-redirect-header span,
.matches-dashboard .bookmaker-redirect-block p,
.matches-dashboard .bookmaker-redirect-block > small {
  color: var(--muted);
}

.matches-dashboard .locked-odds-panel strong,
.matches-dashboard .stat-row > span,
.matches-dashboard .stat-main strong {
  color: var(--text);
}

.matches-dashboard .stat-track {
  background: #dce5ee;
}

.matches-dashboard .stats-warning {
  background: #ffffff;
  border-color: #d7e2eb;
  color: var(--muted);
}

.matches-dashboard .stats-warning strong {
  color: var(--text);
}

.matches-dashboard .stats-warning small {
  color: var(--muted);
}

.matches-dashboard .match-event {
  background: #ffffff;
  border-color: #dce6ef;
}

.matches-dashboard .match-event > span,
.matches-dashboard .match-event p {
  color: var(--text);
}

.matches-dashboard .match-event small,
.matches-dashboard .match-events-empty {
  color: var(--muted);
}

.matches-dashboard .bookmaker-redirect-block .bet-selection-control,
.matches-dashboard .redirect-stake-control {
  background: #ffffff;
  border-color: #d7e2eb;
}

.matches-dashboard .bookmaker-redirect-block .bet-selection-control legend,
.matches-dashboard .bookmaker-redirect-block .bet-selection-grid span,
.matches-dashboard .bookmaker-redirect-block .bet-selection-grid strong,
.matches-dashboard .redirect-stake-control span {
  color: var(--muted);
}

.matches-dashboard .bookmaker-redirect-block .bet-selection-grid label {
  background: #f6f9fc;
  border-color: #dce6ef;
}

.matches-dashboard .bookmaker-redirect-block .bet-selection-grid label:has(input:checked) {
  background: #e6f4f1;
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.matches-dashboard .bookmaker-redirect-block .bet-selection-grid label:has(input:checked) span,
.matches-dashboard .bookmaker-redirect-block .bet-selection-grid label:has(input:checked) strong {
  color: var(--accent-strong);
}

.matches-dashboard .redirect-stake-control input {
  background: #ffffff;
  border-color: #d7e2eb;
  color: var(--text);
}

.matches-dashboard .bookmaker-link-button {
  background: #edf4ff;
  border-color: #d2e0f5;
  color: #1f5cc4;
}

.matches-dashboard .bookmaker-link-button span {
  color: var(--muted);
}

.matches-dashboard .bookmaker-link-button:hover {
  background: #dfeaff;
}

.signal-grid,
.algorithm-status-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 14px;
}

.snapshot-card {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding: 14px;
}

.snapshot-card span,
.snapshot-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.snapshot-card strong {
  overflow-wrap: anywhere;
}

.snapshot-card.ready {
  background: #f3faf8;
}

.snapshot-card.missing {
  background: #fff8ef;
}

.signal-metric,
.algorithm-status {
  background: #f6f7f9;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 10px;
}

.signal-metric span,
.algorithm-status span,
.algorithm-status small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.signal-metric strong,
.algorithm-status strong {
  font-size: 20px;
}

.algorithm-status.alert,
.algorithm-status.ready {
  border-color: #87c5ba;
}

.algorithm-status.consider,
.algorithm-status.watch {
  border-color: #e2b76c;
}

.algorithm-status.block {
  border-color: #dca0a0;
}

.secondary-heading {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}

.algorithm-validation-card {
  min-height: 220px;
}

.algorithm-validation-panel {
  display: grid;
  gap: 12px;
}

.algorithm-validation-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.algorithm-validation-summary div {
  background: #f6f7f9;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.algorithm-validation-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.algorithm-validation-summary strong {
  font-size: 22px;
}

.algorithm-validation-filter {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.algorithm-validation-filter label,
.algorithm-validation-filter span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.algorithm-validation-filter select {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  min-width: 280px;
  padding: 9px 10px;
}

.algorithm-validation-table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-x: auto;
}

.algorithm-validation-table {
  min-width: 1180px;
}

.algorithm-validation-table th {
  background: #eef3fb;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.algorithm-validation-table td {
  line-height: 1.25;
  vertical-align: top;
}

.algorithm-validation-table small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 750;
  margin-top: 4px;
}

.validation-badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 4px;
  padding: 4px 8px;
}

.validation-badge.ready {
  background: #eefaf5;
  border-color: #8ac4b7;
  color: #0f6b5c;
}

.validation-badge.watch,
.validation-badge.elite {
  background: #fff6df;
  border-color: #dcae42;
  color: #8a5b00;
}

.validation-badge.elite {
  background: #eef3ff;
  border-color: #7c9fe8;
  color: #1f55ad;
}

.validation-badge.alert {
  background: #ecfdf3;
  border-color: #43b06f;
  color: #0b713a;
}

.validation-badge.blocked {
  background: #fff2f2;
  border-color: #e2a5a5;
  color: #9a3030;
}

.validation-badge.neutral {
  background: #f6f7f9;
  color: var(--muted);
}

.validation-guidance {
  color: var(--muted);
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}

.validation-guidance p {
  margin: 0;
}

.validation-detail {
  margin-top: 0;
}

.validation-detail summary {
  color: var(--accent-strong);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.validation-detail-grid {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  margin-top: 8px;
  overflow-wrap: anywhere;
  padding: 12px;
}

.validation-detail-row td {
  background: #fbfcfe;
  border-top: 0;
  padding: 0 10px 12px;
}

.validation-detail-row .validation-detail {
  max-width: 100%;
}

.validation-detail-grid section {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.validation-detail-grid h4 {
  font-size: 13px;
  margin: 0;
}

.validation-detail-grid p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  margin: 0;
  overflow-wrap: anywhere;
}

.validation-detail-grid ul {
  color: var(--muted);
  display: grid;
  gap: 5px;
  font-size: 12px;
  font-weight: 750;
  list-style: none;
  margin: 0;
  overflow-wrap: anywhere;
  padding: 0;
}

@media (max-width: 1180px) {
  .validation-detail-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

.validation-check-group {
  display: grid;
  gap: 4px;
}

.validation-check-group strong {
  font-size: 12px;
}

.validation-check-group li {
  border-left: 3px solid var(--line);
  padding-left: 7px;
}

.validation-check-group li.passed {
  border-left-color: #43b06f;
}

.validation-check-group li.failed {
  border-left-color: #dca0a0;
}

.validation-loading,
.validation-empty {
  color: var(--muted);
  font-weight: 800;
  padding: 14px 0;
}

.validation-loading-card {
  background: #f3faf8;
  border: 1px solid #9fd0c7;
  border-radius: 8px;
  color: var(--accent-strong);
  display: grid;
  gap: 6px;
  padding: 14px;
}

.validation-loading-card strong {
  font-size: 16px;
}

.validation-loading-card span {
  color: var(--muted);
  font-weight: 750;
}

.slip-empty {
  align-content: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: grid;
  gap: 8px;
  min-height: 190px;
  padding: 16px;
  text-align: center;
}

.slip-empty strong {
  color: var(--text);
  font-size: 16px;
}

.slip-summary {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
  padding-top: 14px;
}

.slip-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.slip-summary strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}

.alert-summary-list {
  display: grid;
  gap: 10px;
}

.customer-alert-list {
  display: grid;
  gap: 10px;
}

.customer-alert-card {
  border: 1px solid var(--line);
  border-left: 4px solid #1f5cc4;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.customer-alert-card.elite {
  border-left-color: #177f6b;
}

.customer-alert-card span,
.customer-alert-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.customer-alert-card p {
  margin: 0;
}

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

.customer-alert-card dl div {
  background: #f6f7f9;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 2px;
  padding: 8px;
}

.customer-alert-card dd {
  font-weight: 800;
  margin: 0;
  overflow-wrap: anywhere;
}

.alert-empty {
  color: var(--muted);
  font-weight: 700;
  padding: 8px 0;
}

.proof-centre {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 14px;
}

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

.results-centre-actions label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.results-centre-actions select {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-weight: 900;
  min-height: 36px;
  padding: 8px 34px 8px 10px;
}

.results-centre-panel {
  display: grid;
  gap: 14px;
}

.results-summary-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.results-summary-grid article,
.proof-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  padding: 12px;
}

.results-summary-grid article {
  background: #0f5e55;
  border-color: #0b4c45;
  color: #ffffff;
}

.results-summary-grid article:nth-child(2) {
  background: #1f5fbf;
  border-color: #174a95;
}

.results-summary-grid article:nth-child(3) {
  background: #8a5a10;
  border-color: #70480c;
}

.results-summary-grid article:nth-child(4) {
  background: #334155;
  border-color: #1f2937;
}

.results-summary-grid article:nth-child(5) {
  background: #6d3f8f;
  border-color: #553171;
}

.results-summary-grid span,
.proof-card p,
.chart-legend,
.proof-card small,
.results-disclosure span {
  color: var(--muted);
}

.results-summary-grid article span {
  color: rgba(255, 255, 255, 0.78);
}

.results-summary-grid span {
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 5px;
}

.results-summary-grid strong {
  font-size: 22px;
}

.results-summary-grid article strong {
  color: #ffffff;
}

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

.proof-card {
  display: grid;
  gap: 10px;
  box-shadow: 0 8px 18px rgba(23, 32, 47, 0.06);
}

.proof-card-wide {
  grid-column: 1 / -1;
}

.proof-card h4 {
  margin: 0;
}

.proof-card-heading {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.proof-card-heading > strong {
  border-radius: 999px;
  font-size: 20px;
  font-weight: 900;
  padding: 8px 12px;
  white-space: nowrap;
}

.profit-positive {
  background: #dcfce7;
  color: #166534;
}

.profit-negative {
  background: #fee2e2;
  color: #991b1b;
}

.proof-card p {
  font-size: 13px;
  font-weight: 700;
  margin: 0;
}

.profit-line-chart {
  background:
    repeating-linear-gradient(0deg, rgba(100, 116, 139, 0.15) 0 1px, transparent 1px 42px),
    linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 250px;
  overflow: hidden;
  position: relative;
}

.profit-line-chart svg {
  bottom: 30px;
  height: calc(100% - 44px);
  left: 0;
  position: absolute;
  right: 0;
  top: 10px;
  width: 100%;
}

.profit-grid-line {
  stroke: #cbd5e1;
  stroke-dasharray: 2 2;
  stroke-width: 0.45;
}

.profit-grid-line.baseline {
  stroke: #94a3b8;
  stroke-width: 0.7;
}

.profit-line-path {
  fill: none;
  stroke: #0f8a63;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.profit-line-dot {
  fill: #ffffff;
  stroke: #0f8a63;
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
}

.profit-line-path.elite {
  stroke: #6d28d9;
}

.profit-line-path.premium {
  stroke: #e07a00;
}

.profit-line-dot.elite {
  stroke: #6d28d9;
}

.profit-line-dot.premium {
  stroke: #e07a00;
}

.profit-line-path.realised {
  stroke: #087760;
}

.profit-line-dot.realised {
  stroke: #087760;
}

.cumulative-profit-heading {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
}

.cumulative-profit-controls {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.cumulative-profit-controls label {
  display: grid;
  gap: 4px;
}

.cumulative-profit-controls label > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.cumulative-profit-controls select {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  min-height: 34px;
  padding: 7px 28px 7px 9px;
}

.profit-tier-filter {
  display: inline-flex;
}

.profit-tier-filter button {
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  min-height: 34px;
  padding: 7px 11px;
}

.profit-tier-filter button:first-child {
  border-radius: 6px 0 0 6px;
}

.profit-tier-filter button:last-child {
  border-radius: 0 6px 6px 0;
}

.profit-tier-filter button + button {
  border-left: 0;
}

.profit-tier-filter button.active {
  background: #087760;
  border-color: #087760;
  color: #ffffff;
}

.profit-view-filter {
  margin-right: 2px;
}

.profit-view-filter button {
  white-space: nowrap;
}

.profit-chart-empty {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  left: 50%;
  max-width: 310px;
  padding: 10px 12px;
  position: absolute;
  text-align: center;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 40px);
}

.profit-y-labels span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  left: 12px;
  position: absolute;
  transform: translateY(-50%);
}

.profit-x-labels {
  align-items: center;
  background: rgba(244, 248, 255, 0.96);
  bottom: 8px;
  color: #64748b;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  justify-content: space-between;
  left: 12px;
  min-height: 20px;
  position: absolute;
  right: 12px;
}

.profit-dot {
  background: #0f8a63;
}

.profit-dot.elite {
  background: #6d28d9;
}

.profit-dot.premium {
  background: #e07a00;
}

.profit-dot.realised {
  background: #087760;
}

.premium-dot {
  background: #d99a10;
}

.elite-dot {
  background: #0f8f7f;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 800;
  gap: 12px;
}

.chart-legend i {
  border-radius: 999px;
  display: inline-block;
  height: 9px;
  margin-right: 5px;
  width: 9px;
}

.mini-bar-chart,
.tier-compare {
  display: grid;
  gap: 9px;
}

.mini-bar-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 84px 1fr 80px;
}

.mini-bar-row span,
.mini-bar-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.mini-bar-row strong,
.compare-bar {
  background: #e8eef7;
  border-radius: 999px;
  height: 12px;
  min-width: 4px;
}

.mini-bar-row strong {
  background: linear-gradient(90deg, #147a6c, #38b28f);
  display: block;
}

.mini-bar-row strong.lost {
  background: linear-gradient(90deg, #a93838, #ef6f6c);
}

.mini-bar-row strong.pending {
  background: linear-gradient(90deg, #64748b, #94a3b8);
}

.mini-bar-row strong.cashed_out_profit,
.mini-bar-row strong.won {
  background: linear-gradient(90deg, #0f5e55, #15a77d);
}

.tier-compare > div {
  display: grid;
  gap: 5px;
}

.tier-compare span,
.tier-compare strong {
  font-weight: 900;
}

.compare-bar {
  height: 14px;
  overflow: hidden;
}

.compare-bar i {
  background: linear-gradient(90deg, #147a6c, #1f5fbf);
  display: block;
  height: 100%;
}

.result-calendar {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(7, minmax(34px, 1fr));
}

.result-calendar span {
  align-items: center;
  background: #f6f7f9;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 2px;
  min-height: 48px;
  padding: 5px;
  text-align: center;
}

.result-calendar span.won {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.result-calendar span.lost {
  background: #fff1f2;
  border-color: #fecdd3;
}

.result-calendar span.mixed {
  background: #fffbeb;
  border-color: #fde68a;
}

.result-calendar span.void {
  background: #f8fafc;
}

.result-calendar strong {
  color: var(--muted);
  font-size: 11px;
}

.result-calendar em {
  font-size: 16px;
  font-style: normal;
  font-weight: 900;
}

.results-disclosure {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 12px;
}

.success-rate-panel {
  display: grid;
  gap: 12px;
}

.success-model-notice {
  background: #eef8f6;
  border: 1px solid #b9ded6;
  border-radius: 8px;
  color: #285f55;
  display: grid;
  font-size: 12px;
  gap: 4px;
  line-height: 1.45;
  padding: 10px 12px;
}

.success-model-notice strong {
  color: #0b6857;
  font-size: 13px;
}

.tracker-not-applicable {
  color: var(--muted);
  display: inline-block;
  font-size: 12px;
  font-weight: 850;
  padding: 8px 0;
}

.success-range {
  color: var(--muted);
  font-weight: 800;
  margin: 0;
}

.success-filter-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 12px;
}

.success-filter-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.success-filter-grid label,
.success-filter-actions label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 5px;
  min-width: 0;
}

.success-filter-grid input,
.success-filter-grid select,
.success-filter-actions select {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  min-width: 0;
  padding: 8px;
  width: 100%;
}

.success-filter-actions,
.success-pagination {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.success-filter-button-group {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.success-filter-apply,
.success-filter-reset {
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  min-height: 38px;
  padding: 9px 14px;
  white-space: nowrap;
}

.success-filter-apply {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #ffffff;
}

.success-filter-reset {
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--muted);
}

.success-filter-apply:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.success-filter-reset:hover {
  background: #f6f7f9;
  color: var(--text);
}

.success-pagination {
  align-items: center;
}

.success-pagination span {
  color: var(--muted);
  font-weight: 800;
}

.success-summary {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.success-summary div {
  background: #f6f7f9;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 10px;
}

.success-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.success-summary strong {
  font-size: 20px;
}

.success-rate-table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-x: auto;
}

.success-rate-table {
  min-width: 980px;
}

.success-rate-table th {
  background: #eef3fb;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.success-rate-table td {
  vertical-align: top;
}

.success-rate-table small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-top: 3px;
}

.success-rate-table select,
.success-rate-table input {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  min-width: 120px;
  padding: 8px;
  width: 100%;
}

@media (max-width: 1400px) {
  .matches-workspace {
    grid-template-columns: 1fr;
  }

  .match-slip {
    grid-template-columns: minmax(0, 1fr);
    position: static;
  }
}

@media (max-width: 1100px) {
  .results-summary-grid,
  .results-chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trending-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .trending-metrics {
    grid-column: 1 / -1;
  }

  .success-filter-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .overview-feature-grid {
    grid-template-columns: 1fr;
  }

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

}

@media (max-width: 720px) {
  .results-summary-grid,
  .results-chart-grid {
    grid-template-columns: 1fr;
  }

  .matches-summary-grid {
    grid-template-columns: 1fr;
  }

  .trending-hero {
    align-items: stretch;
    flex-direction: column;
    padding: 18px;
  }

  .trending-refresh-button {
    justify-content: center;
    width: 100%;
  }

  .trending-section-heading {
    align-items: start;
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .trending-section-icon {
    height: 40px;
    width: 40px;
  }

  .trending-live-pill,
  .trending-today-pill {
    grid-column: 2;
    justify-self: start;
  }

  .trending-card {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .trending-card.compact-card {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .trending-rank {
    height: 36px;
    width: 36px;
  }

  .trending-title-row {
    align-items: start;
    flex-direction: column;
  }

  .trending-metrics {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }

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

  .today-watchlist-row {
    grid-template-columns: 34px minmax(0, 1fr) auto 16px;
  }

  .today-watchlist-metric {
    grid-row: 2;
    text-align: left;
  }

  .today-watchlist-metric.confidence {
    grid-column: 2;
  }

  .today-watchlist-metric.validation {
    grid-column: 3;
  }

  .cumulative-profit-heading {
    grid-template-columns: 1fr;
  }

  .cumulative-profit-controls {
    justify-content: flex-start;
  }

  .mini-bar-row {
    grid-template-columns: 74px 1fr 64px;
  }

  .success-filter-grid {
    grid-template-columns: 1fr;
  }

  .success-filter-actions {
    align-items: stretch;
    display: grid;
  }

  .success-filter-button-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-left: 0;
  }

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

.tier-pill {
  background: #e7efff;
  border: 1px solid #c6d8ff;
  border-radius: 999px;
  color: #1f5cc4;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  padding: 6px 8px;
}

.tier-pill.elite {
  background: #e7f8f4;
  border-color: #b8e5dc;
  color: #177f6b;
}

.snapshot-audit-panel {
  display: grid;
  gap: 12px;
}

.snapshot-audit-summary {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.snapshot-capture-summary {
  align-items: start;
  background: #eef7f4;
  border: 1px solid #bddbd1;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
}

.snapshot-capture-summary.warning {
  background: #fff8ed;
  border-color: #f0d19a;
  border-left-color: #d89000;
}

.snapshot-capture-summary span,
.snapshot-capture-summary small {
  color: var(--muted);
  font-weight: 700;
}

.snapshot-audit-summary div {
  background: #f6f7f9;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 10px;
}

.snapshot-audit-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.snapshot-audit-summary strong {
  font-size: 20px;
}

.snapshot-audit-table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-x: auto;
}

.snapshot-audit-table {
  min-width: 1040px;
}

.snapshot-audit-table th {
  background: #eef3fb;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.snapshot-audit-table tr.missing td {
  background: #fff8ed;
}

.snapshot-audit-table tr.ready td {
  background: #f3fbf8;
}

.snapshot-audit-table tr.observed td {
  background: #eff6ff;
}

.snapshot-audit-table small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-top: 3px;
}

.triggered-alert-card {
  border: 1px solid var(--line);
  border-left: 4px solid #1f5cc4;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.triggered-alert-card.elite {
  border-left-color: #177f6b;
}

.triggered-alert-card span,
.triggered-alert-card small,
.triggered-alert-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.triggered-alert-card > div:first-child {
  display: grid;
  gap: 4px;
}

.triggered-alert-card p {
  margin: 0;
}

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

.triggered-alert-card dl div {
  background: #f6f7f9;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 2px;
  padding: 8px;
}

.triggered-alert-card dd {
  font-weight: 800;
  margin: 0;
  overflow-wrap: anywhere;
}

.form-row {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: 110px minmax(220px, 1fr) 70px 160px;
  margin-bottom: 16px;
}

.users-form {
  grid-template-columns: 70px minmax(180px, 1fr) 60px minmax(160px, 1fr) 60px 150px 110px;
}

.alert-form {
  grid-template-columns: 70px minmax(180px, 1fr) 60px 160px;
}

.match-form {
  grid-template-columns: 60px minmax(160px, 220px) 70px minmax(140px, 180px);
}

.match-search-form {
  grid-template-columns: 70px minmax(220px, 520px);
}

.compact-block {
  margin-bottom: 14px;
  min-height: 0;
}

.section-divider {
  border-top: 1px solid var(--line);
  margin: 18px 0;
}

label {
  color: var(--muted);
  font-weight: 700;
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  min-height: 38px;
  padding: 8px 10px;
}

textarea {
  background: #f3f5f7;
  color: #243044;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  min-height: 260px;
  resize: vertical;
  width: 100%;
}

:where(a, button, input, select, textarea, [role="button"], [tabindex="-1"]):focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.panel:focus-visible,
.layout:focus-visible {
  border-radius: 8px;
  outline: 2px solid rgba(31, 92, 196, 0.32);
  outline-offset: 2px;
}

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

@media (max-width: 880px) {
  .login-shell {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .login-card {
    padding: 24px;
  }

  .login-benefits {
    display: none;
  }

  .topbar,
  .workspace,
  .form-row,
  .matches-workspace {
    display: grid;
    grid-template-columns: 1fr;
  }

  .topbar {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 12px 16px;
    position: static;
  }

  .topbar-account {
    justify-content: space-between;
    margin-left: 0;
  }

  .topbar-status {
    justify-items: start;
    min-width: 0;
    text-align: left;
  }

  .topbar-status-header {
    justify-content: flex-start;
  }

  .admin-chip {
    justify-content: end;
  }

  .layout {
    padding: 16px;
  }

  .rail {
    border-radius: 10px;
    position: static;
    width: auto;
  }

  .status-grid,
  .data-grid,
  .customer-plan-grid,
  .access-safeguard-details,
  .customer-access-card {
    grid-template-columns: 1fr;
  }

  .toplinks {
    justify-content: start;
  }

  .match-slip {
    grid-template-columns: 1fr;
    position: static;
  }

  .matches-page-heading,
  .matches-list-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .matches-page-heading .button-row {
    justify-content: flex-start;
  }

  .matches-column-head {
    display: none;
  }

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

  .match-odds-strip,
  .my-bet-card {
    grid-template-columns: 1fr;
  }

  .match-odds-strip.action-only {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 360px;
  }

  .match-odds-strip.action-only.bookmaker-only {
    grid-template-columns: minmax(0, 180px);
  }

  .match-live-meta {
    grid-template-columns: minmax(0, auto) 76px;
    justify-items: start;
    justify-self: start;
    width: auto;
  }

  .match-stats-cell {
    justify-content: flex-start;
  }

  .match-scoreline {
    justify-items: start;
  }

  .fixture-id {
    text-align: left;
  }

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

  .match-insight-sections,
  .insight-metrics,
  .admin-confidence-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .current-bookmaker-odds > header {
    align-items: stretch;
    flex-direction: column;
  }

  .current-odds-head,
  .current-odds-row {
    grid-template-columns: minmax(110px, 1fr) repeat(3, minmax(46px, 0.34fr));
    gap: 5px;
    padding-inline: 8px;
  }

  .algorithm-watch-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}
