@charset "UTF-8";

/* Theme and base elements */
:root {
  color-scheme: dark;
  --bg: #131116;
  --sidebar: #0f0d12;
  --panel: #1a171d;
  --panel-raised: #201d25;
  --panel-hover: #26222c;
  --line: #2e2835;
  --line-soft: #28232e;
  --text: #ebe9ee;
  --muted: #938a9e;
  --faint: #70667e;
  --mint: #bd9de8;
  --mint-bright: #ceb1f4;
  --mint-bg: #28242e;
  --amber: #eac483;
  --red: #f29c9c;
  --font: "Segoe UI",Arial,sans-serif;
  --mono: "Cascadia Code","SFMono-Regular",Consolas,monospace;
}

/* Durable observations and the first live prediction experiment. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.research-lab {
  margin: 0 0 30px;
  border: 1px solid #41394b;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(125deg, #231f28 0%, #1a171d 52%);
}

.research-heading, .research-title, .research-archive,
.research-status, .research-strategy-title, .research-candidate-heading,
.research-candidate-heading h3, .research-threshold > div, .research-history summary {
  display: flex;
  align-items: center;
}

.research-heading { justify-content: space-between; gap: 18px; padding: 20px 22px 17px; }
.research-title { gap: 12px; }
.research-symbol { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #554866; border-radius: 9px; background: #352f3c; color: var(--mint); flex-shrink: 0; }
.research-symbol .icon { width: 18px; height: 18px; }
.research-title h2 { font-size: 18px; letter-spacing: -.5px; font-weight: 550; }
.research-title p { margin: 5px 0 0; font-size: 10px; color: #9a91a6; }
.research-tag { display: inline-block; vertical-align: middle; margin-left: 9px; font-size: 7px; font-weight: 500; letter-spacing: 1px; color: #c4bbd1; border: 1px solid #4e435c; border-radius: 3px; padding: 4px 5px; }
.research-status { gap: 7px; flex-shrink: 0; color: #b1a4c3; font-size: 9px; }
.research-status.warning { color: var(--amber); }
.research-status.warning .tiny-dot { background: var(--amber); }
.research-notice { padding: 11px 22px; border-top: 1px solid #675332; background: #372f20; color: #ead0a4; font-size: 10px; line-height: 1.7; }
.research-archive { justify-content: space-between; gap: 20px; padding: 15px 22px; border-top: 1px solid #393241; border-bottom: 1px solid #393241; background: #1b171f40; }
.research-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 3vw, 45px); }
.research-counts > div { display: flex; flex-direction: column; gap: 5px; }
.research-counts strong { font-family: var(--mono); font-size: 18px; font-weight: 450; letter-spacing: -.5px; }
.research-counts span { color: #9e95aa; font-size: 9px; white-space: nowrap; }
.research-strategy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; padding: 21px 22px 18px; }
.research-strategy-title { gap: 15px; }
.research-strategy h3 { font-size: 13px; font-weight: 500; }
.research-strategy p { color: #9f96aa; max-width: 690px; font-size: 10px; line-height: 1.8; margin: 8px 0 0; }
.research-live { display: inline-flex; align-items: center; gap: 5px; color: #bbafca; font-size: 7px; letter-spacing: .7px; white-space: nowrap; }
.research-live .live-dot { width: 4px; height: 4px; box-shadow: none; }
.research-threshold label { display: block; margin-bottom: 7px; color: #b4abbf; font-size: 9px; }
.research-threshold > div { gap: 7px; }
.research-input-wrap { display: flex; align-items: center; gap: 5px; padding-right: 9px; width: 82px; border: 1px solid #584b69; border-radius: 5px; background: #161419; color: #a49caf; font-size: 11px; }
.research-input-wrap:focus-within { outline: 2px solid var(--mint); outline-offset: 2px; }
.research-input-wrap input { width: 100%; min-width: 0; height: 33px; padding: 0 0 0 10px; border: 0; background: transparent; color: #e6def0; font-size: 12px; font-family: var(--mono); outline: none; }
.research-threshold .button { height: 35px; font-size: 10px; }
.research-candidate-heading { justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 0 22px 12px; }
.research-candidate-heading h3 { gap: 8px; font-size: 10px; font-weight: 500; color: #cdc6d6; }
.research-candidate-heading > span { color: #8e839d; font-size: 8px; }
.research-candidate-heading .count-pill { font-size: 8px; padding: 2px 6px; }
.research-empty { display: flex; align-items: center; gap: 13px; padding: 18px; margin: 0 22px 2px; border: 1px dashed #453d50; border-radius: 6px; background: #1a171d80; }
.research-empty > .icon { width: 22px; height: 22px; flex-shrink: 0; color: #857897; }
.research-empty strong { font-size: 11px; font-weight: 500; color: #c4bbcf; }
.research-empty p { margin: 6px 0 0; color: #9c92a8; font-size: 10px; line-height: 1.8; max-width: 780px; }
.research-method { display: flex; align-items: flex-start; gap: 7px; padding: 13px 22px 17px; color: #968da1; font-size: 9px; line-height: 1.8; }
.research-method > .icon { width: 12px; height: 12px; margin-top: 2px; flex-shrink: 0; }
.research-method p { margin: 0; }
.research-table-wrap { overflow: auto; max-height: 350px; margin: 0 22px; border: 1px solid #3b3544; border-radius: 6px; scrollbar-width: thin; scrollbar-color: #544766 transparent; }
.research-table { width: 100%; border-collapse: collapse; min-width: 680px; text-align: left; font-size: 10px; }
.research-table th { position: sticky; top: 0; z-index: 1; background: #221e28; color: #9b8eab; font-size: 7px; letter-spacing: .5px; font-weight: 500; padding: 11px 12px; white-space: nowrap; }
.research-table td { padding: 12px; border-top: 1px solid #342e3c; color: #cac3d2; vertical-align: middle; }
.research-table tbody tr:hover { background: #312c3845; }
.research-table td:first-child { width: 38%; }
.research-table td strong { display: block; font-size: 10px; font-weight: 500; max-width: 400px; overflow-wrap: anywhere; }
.research-table td > span { display: block; font-size: 8px; color: #978da3; margin-top: 5px; line-height: 1.5; }
.research-table td > time { white-space: nowrap; font-size: 9px; }
.research-number { font-family: var(--mono); white-space: nowrap; }
.research-number > span { font-family: var(--font); }
.research-table td.research-edge { color: var(--mint); }
.research-table td.research-loss { color: var(--red); }
.research-history { border-top: 1px solid #393241; background: #13111540; }
.research-history summary { padding: 13px 22px; gap: 12px; justify-content: space-between; list-style: none; cursor: pointer; color: #b1a7bd; font-size: 10px; }
.research-history summary::-webkit-details-marker { display: none; }
.research-history summary:hover { background: #39324230; }
.research-history summary .icon { width: 12px; height: 12px; }
.research-history[open] summary .icon { transform: rotate(90deg); }
#research-history-count, #research-results-count { color: #8b8099; }
.research-performance { display: flex; flex-wrap: wrap; gap: 11px 22px; margin: 0 22px 13px; font-size: 9px; color: #a398b2; }
.research-performance strong { color: #d7d1e0; font-family: var(--mono); font-size: 10px; font-weight: 500; }
.research-results-table { min-width: 590px; }
.research-history-note { margin: 0 22px 14px; font-size: 9px; color: #9d93a9; line-height: 1.8; }
.research-history-empty { font-size: 10px; line-height: 1.8; color: #9c92a8; margin: 0 22px 19px; }
.research-history .research-table-wrap { margin-bottom: 18px; }
.research-table td > .research-outcome { display: inline-block; margin: 0; padding: 3px 6px; border: 1px solid #534960; border-radius: 3px; color: #c6bed1; text-transform: capitalize; }

@media(max-width:1240px) {
  .research-archive { flex-wrap: wrap; gap: 16px; }
  .research-counts { width: 100%; }
  .research-strategy { gap: 20px; }
}

@media(max-width:760px) {
  .research-heading { align-items: flex-start; flex-wrap: wrap; gap: 14px; }
  .research-strategy { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .research-threshold { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
  .research-threshold label { margin: 0; }
}

@media(max-width:520px) {
  .research-heading, .research-archive, .research-strategy { padding-left: 15px; padding-right: 15px; }
  .research-title h2 { font-size: 17px; }
  .research-title p { font-size: 9px; line-height: 1.6; }
  .research-tag { font-size: 6px; margin-left: 6px; }
  .research-status { font-size: 8px; }
  .research-counts { gap: 15px 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .research-counts strong { font-size: 19px; }
  .research-counts span { font-size: 9px; }
  .research-candidate-heading { padding-left: 15px; padding-right: 15px; }
  .research-empty, .research-table-wrap { margin-left: 15px; margin-right: 15px; }
  .research-empty { padding: 15px 12px; align-items: flex-start; }
  .research-empty > .icon { width: 17px; height: 17px; margin-top: 1px; }
  .research-method, .research-notice, .research-history summary { padding-left: 15px; padding-right: 15px; }
  .research-history-note, .research-history-empty, .research-performance { margin-left: 15px; margin-right: 15px; }
}

/* Account preferences, local registration and estimate-based scenarios. */
.account-toggle {
  display: flex !important;
  cursor: pointer;
  flex-shrink: 0;
}

.account-toggle:hover {
  background: #413a4b;
  border-color: #8875a1;
}

.settings-dialog {
  width: min(470px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  overflow: auto;
  background: #1c1921;
  color: var(--text);
  border: 1px solid #453d4f;
  border-radius: 13px;
  padding: 27px;
  box-shadow: 0 30px 100px #0008;
}

.settings-dialog::backdrop {
  background: #080709d4;
  backdrop-filter: blur(6px);
}

.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 24px;
}

.dialog-heading .eyebrow {
  font-size: 8px;
  margin-bottom: 8px;
}

.dialog-heading h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -.7px;
}

.dialog-heading h2 > span {
  color: var(--mint);
}

.account-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #3c3545;
  border-radius: 7px;
  padding: 15px 12px;
  background: #231f28;
}

.profile-avatar {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: #403949;
  color: #d4c0ee;
  font-size: 12px;
  font-weight: 600;
}

.account-profile > div {
  min-width: 0;
}

.account-profile strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.account-profile div > span {
  display: block;
  color: #978ba6;
  font-size: 9px;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.account-profile > .small-tag {
  margin-left: auto;
  font-size: 6px;
  white-space: nowrap;
}

.settings-context {
  margin: 13px 1px 23px;
  color: #978da5;
  font-size: 10px;
  line-height: 1.7;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  color: #c8c2d0;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 8px;
}

.field label > span {
  color: #897b9b;
  font-size: 9px;
  font-weight: 400;
}

.field input, .field select {
  display: block;
  width: 100%;
  min-width: 0;
  height: 41px;
  padding: 0 12px;
  background: #17141a;
  border: 1px solid #3f3848;
  border-radius: 6px;
  color: #e5e0eb;
  font: inherit;
  font-size: 12px;
  transition: border-color .16s, box-shadow .16s;
}

.field input::placeholder {
  color: #6f6082;
}

.field input:focus, .field select:focus {
  outline: none;
  border-color: #9a89b1;
  box-shadow: 0 0 0 3px #bd9de80b;
}

.field p {
  font-size: 9px;
  color: #8c7d9f;
  margin-top: 7px;
  line-height: 1.6;
}

.settings-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.settings-field-grid label {
  font-size: 10px;
}

.settings-field-grid label > span {
  font-size: 7px;
}

.settings-field-grid select {
  font-size: 11px;
}

.settings-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  padding-top: 15px;
  border-top: 1px solid #393241;
  margin-top: 2px;
}

.settings-actions .button {
  font-size: 11px;
  height: 38px;
  padding: 0 16px;
}

.logout-button {
  margin-right: auto;
  color: #aba596;
  font-size: 11px;
}

.form-notice {
  border: 1px solid #715341;
  background: #332821;
  color: #e0b697;
  border-radius: 6px;
  padding: 11px 12px;
  font-size: 11px;
  line-height: 1.6;
  margin: 0 0 18px;
}

.stake-calculator .field {
  margin-top: 15px;
  margin-bottom: 12px;
}

.stake-calculator .field label {
  font-size: 10px;
}

.calculator-input-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.calculator-input-row input {
  height: 35px;
  font-size: 10px;
  padding: 0 9px;
}

.calculator-input-row .button {
  height: 35px;
  font-size: 9px;
  flex-shrink: 0;
  padding: 0 11px;
}

.calculator-settings {
  font-size: 8px;
}

.calculator-assumption {
  color: #9589a4;
  font-size: 8px;
  line-height: 1.8;
  margin-top: 12px;
}

.stake-result {
  padding: 14px 12px;
  border: 1px solid #4a3e59;
  border-radius: 6px;
  background: linear-gradient(130deg, #2e2935, #231f28);
  margin-top: 17px;
}

.stake-result > span {
  font-size: 9px;
  color: #baaec9;
}

.stake-result > strong {
  display: block;
  font-family: var(--mono);
  font-size: 24px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -.5px;
  color: #d6c2f1;
}

.stake-result strong small {
  font-family: var(--font);
  font-size: 10px;
  letter-spacing: 0;
  color: #a090b5;
}

.stake-result p {
  font-size: 8px;
  line-height: 1.7;
  color: #a699b8;
}

.stake-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border-top: 1px solid #443c4e;
  padding-top: 12px;
  margin-top: 13px;
}

.stake-result-grid span {
  display: block;
  font-size: 7px;
  color: #9d91ad;
}

.stake-result-grid b {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: #d8cbe9;
  margin-top: 4px;
}

.stake-result .cap-note {
  color: #d3c394;
  margin-top: 10px;
}

.calculation-outdated {
  font-size: 9px;
  line-height: 1.7;
  color: var(--amber);
  margin-top: 12px;
}

.account-page {
  min-height: 100dvh;
  background: #141117;
}

.account-layout {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  min-height: 100dvh;
}

.account-story {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 47px 62px 29px;
  border-right: 1px solid #342e3b;
  background: radial-gradient(ellipse at 70% 45%, #39334235, transparent 60%), linear-gradient(140deg, #211e26, #18151b 60%, #19161d);
}

.account-story .brand {
  padding-left: 0;
  font-size: 30px;
}

.account-story-content {
  margin: auto 0;
  padding: 55px 0;
}

.account-story-content .eyebrow {
  font-size: 8px;
  letter-spacing: 2px;
  color: #ab9fbb;
  margin-bottom: 23px;
}

.account-story-content h1 {
  font-size: clamp(44px, 4.8vw, 74px);
  letter-spacing: -3px;
  font-weight: 400;
  line-height: 1.1;
}

.account-story-content h1 span {
  color: #c1a5e6;
}

.account-story-content > p {
  font-size: 13px;
  color: #a79cb5;
  margin-top: 22px;
  line-height: 1.9;
}

.account-features {
  margin-top: 46px;
  display: grid;
  gap: 22px;
}

.account-features > div {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.account-features > div > span {
  font-family: var(--mono);
  font-size: 9px;
  color: #8d7ca4;
  border: 1px solid #534663;
  width: 29px;
  height: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  flex-shrink: 0;
}

.account-features p {
  font-size: 10px;
  color: #998da9;
  line-height: 1.8;
}

.account-features strong {
  display: block;
  color: #ccc4d7;
  font-size: 11px;
  font-weight: 500;
}

.account-story-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #746587;
  font-size: 7px;
  letter-spacing: 1px;
}

.account-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 50px 29px;
}

.account-entry-top {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  color: #796c89;
  font-size: 7px;
  letter-spacing: 1.4px;
}

.account-entry-top .tiny-dot {
  width: 4px;
  height: 4px;
}

.account-form-wrap {
  width: min(100%, 360px);
  margin: auto 0;
  padding: 55px 0;
}

.account-form-wrap > .eyebrow {
  font-size: 8px;
  color: #8a7d9c;
  letter-spacing: 1.7px;
  margin-bottom: 11px;
}

.account-form-wrap > h2 {
  font-size: 33px;
  font-weight: 450;
  letter-spacing: -1.3px;
}

.account-form-wrap > h2 > span {
  color: var(--mint);
}

.account-intro {
  font-size: 11px;
  color: #988ca7;
  margin-top: 10px;
  line-height: 1.7;
}

.auth-tabs {
  display: flex;
  gap: 5px;
  border: 1px solid #383140;
  border-radius: 6px;
  background: #121014;
  padding: 4px;
  margin: 29px 0 24px;
}

.auth-tabs button {
  width: 50%;
  padding: 9px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 10px;
  color: #968ba5;
}

.auth-tabs button.active {
  background: #2e2835;
  color: #d1c2e4;
  border-color: #473d55;
}

.auth-tabs button:hover:not(.active) {
  color: #e1dce8;
  background: #211e26;
}

.account-form-wrap .field {
  margin-bottom: 21px;
}

.account-form-wrap .field input {
  height: 43px;
  font-size: 11px;
}

.auth-submit.button {
  width: 100%;
  height: 42px;
  font-size: 11px;
  justify-content: space-between;
  padding: 0 15px;
  margin-top: 3px;
}

.auth-footnote {
  font-size: 9px;
  color: #7d708f;
  margin-top: 24px;
  line-height: 1.9;
  text-align: center;
}

.account-entry-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 8px;
  color: #746686;
}

.account-loading {
  background: #231f28;
  border-color: #433c4d;
  color: #b3a6c3;
  font-size: 10px;
  margin-top: 24px;
}

@media (max-width: 1050px) {
  .account-story {
    padding: 40px 35px 25px;
  }
  .account-entry {
    padding: 40px 32px 25px;
  }
  .account-story-content h1 {
    font-size: 48px;
    letter-spacing: -2px;
  }
  .account-story-content > p {
    font-size: 11px;
  }
  .account-story-content > p br {
    display: none;
  }
  .account-story-footer {
    font-size: 6px;
    letter-spacing: .5px;
  }
}

@media (max-width: 760px) {
  .account-layout {
    grid-template-columns: 1fr;
  }
  .account-story {
    min-height: auto;
    padding: 27px 28px 28px;
    border-right: 0;
    border-bottom: 1px solid #342e3b;
  }
  .account-story .brand {
    font-size: 26px;
  }
  .account-story-content {
    padding: 33px 0 0;
  }
  .account-story-content .eyebrow {
    margin-bottom: 16px;
    font-size: 7px;
  }
  .account-story-content h1 {
    font-size: 40px;
    line-height: 1.2;
  }
  .account-story-content h1 br {
    display: none;
  }
  .account-story-content h1 br:after {
    content: " ";
  }
  .account-story-content > p {
    max-width: 360px;
    margin-top: 13px;
  }
  .account-features, .account-story-footer, .account-entry-top {
    display: none;
  }
  .account-entry {
    padding: 0 28px 28px;
  }
  .account-form-wrap {
    width: min(100%, 420px);
    padding: 37px 0 32px;
  }
  .account-form-wrap > h2 {
    font-size: 30px;
  }
  .settings-dialog {
    padding: 22px;
  }
}

@media (max-width: 400px) {
  .settings-dialog {
    padding: 19px;
  }
  .dialog-heading h2 {
    font-size: 19px;
  }
  .settings-field-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .account-profile > .small-tag {
    display: none;
  }
  .account-story-content h1 {
    font-size: 34px;
  }
  .account-entry, .account-story {
    padding-left: 23px;
    padding-right: 23px;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  font-family: var(--font);
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,input,a {
  -webkit-tap-highlight-color: transparent;
}

button,input {
  font: inherit;
}

button,a {
  touch-action: manipulation;
}

button {
  color: inherit;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: .55;
}

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

button {
  border: 0;
}

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

button:focus:not(:focus-visible) {
  outline: none;
}

button, a {
  transition: background-color .16s,border-color .16s,color .16s,box-shadow .16s,transform .16s;
}

svg.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

h1,h2,h3,p {
  margin: 0;
}

h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.35px;
}

.tiny-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 100%;
  background: var(--mint);
  flex-shrink: 0;
}

.live-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--amber);
  border-radius: 100%;
  flex-shrink: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: -70px;
  left: 20px;
  padding: 12px 20px;
  background: var(--mint);
  color: #1a171d;
  border-radius: 6px;
}

.skip-link:focus {
  top: 10px;
}

.sidebar {
  width: 216px;
  height: 100dvh;
  background: var(--sidebar);
  border-right: 1px solid var(--line-soft);
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  padding: 33px 18px 20px;
  z-index: 30;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 9px;
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -1.6px;
  width: max-content;
}

.brand-period {
  color: var(--mint);
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: var(--mint);
  height: 30px;
  width: 30px;
  border-radius: 9px;
  transform: rotate(-6deg);
  box-shadow: 0 3px 14px #9778c010;
}

.brand-mark span {
  background: #28242e;
  width: 3px;
  border-radius: 1px;
  height: 11px;
}

.brand-mark span:nth-child(2) {
  height: 19px;
}

.brand-mark span:nth-child(3) {
  height: 8px;
  align-self: flex-start;
  margin-top: 7px;
}

.workspace-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 8px;
  letter-spacing: 1.4px;
  color: var(--faint);
  margin: 15px 8px 35px;
  white-space: nowrap;
}

.workspace-label .tiny-dot {
  width: 4px;
  height: 4px;
  background: var(--faint);
}

.primary-nav {
  display: grid;
  gap: 5px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 12px;
  border-radius: 7px;
  color: #9f98a8;
  background: transparent;
  text-align: left;
  font-size: 12px;
}

.nav-item:hover {
  background: #1c1921;
  color: var(--text);
}

.nav-item.active {
  background: #26222c;
  color: var(--mint);
}

.nav-item .icon {
  width: 17px;
  height: 17px;
}

.nav-indicator {
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: var(--mint);
  margin-left: auto;
}

.nav-item:not(.active) .nav-indicator {
  visibility: hidden;
}

.nav-count {
  font-size: 10px;
  line-height: 18px;
  padding: 0 6px;
  min-width: 20px;
  text-align: center;
  color: #a49ead;
  background: #25212a;
  border-radius: 4px;
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.section-label {
  font-size: 9px;
  color: var(--faint);
  font-weight: 600;
  letter-spacing: 1.3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sports-label {
  padding: 0 12px;
  margin: 34px 0 12px;
}

.sports-label>span:last-child {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0;
}

.sports-nav {
  overflow: auto;
  min-height: 100px;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: #322c3a transparent;
}

.sport-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 39px;
  background: transparent;
  border-radius: 6px;
  color: #978fa2;
  padding: 0 12px;
  text-align: left;
  font-size: 11px;
  margin: 2px 0;
}

.sport-button>.icon {
  width: 17px;
  height: 17px;
  color: #7c718a;
}

.sport-button>.sport-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sport-button>.sport-count {
  margin-left: auto;
  font-family: var(--mono);
  color: var(--faint);
  font-size: 9px;
}

.sport-button:hover {
  color: var(--text);
  background: #1c1920;
}

.sport-button.active {
  background: #221e27;
  color: var(--text);
}

.sport-button.active>.icon {
  color: var(--mint);
}

.sport-button.active>.sport-count {
  color: var(--mint);
}

.sport-skeleton {
  height: 28px;
  margin: 10px;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 25px;
}

.source-card {
  border: 1px solid #2c2732;
  border-radius: 7px;
  padding: 11px 9px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.source-symbol {
  font-size: 13px;
  letter-spacing: -1px;
  font-style: italic;
  font-weight: 750;
  position: relative;
  color: var(--mint);
  border-radius: 5px;
  background: #26212c;
  width: 26px;
  height: 28px;
  padding: 3px 5px;
}

.source-symbol span {
  font-size: 8px;
  position: absolute;
  right: 2px;
  top: 0;
}

.source-card strong {
  display: block;
  font-size: 10px;
  letter-spacing: .1px;
  font-weight: 600;
}

.source-card div>span {
  display: block;
  color: var(--faint);
  font-size: 8px;
  margin-top: 1px;
}

.source-card>.icon {
  margin-left: auto;
  color: var(--mint);
  width: 13px;
  height: 13px;
}

.sidebar-foot {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #5c526a;
  margin: 13px 1px 0;
}

.app-shell {
  margin-left: 216px;
  min-height: 100dvh;
}

.topbar {
  height: 79px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  border-bottom: 1px solid var(--line-soft);
  gap: 20px;
}

.topbar-left,.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.breadcrumb {
  color: var(--faint);
  font-size: 11px;
}

.breadcrumb-arrow.icon {
  width: 11px;
  height: 11px;
  color: #544a60;
}

.breadcrumb-current {
  font-size: 11px;
  color: #c2bcc9;
}

.topbar-right {
  gap: 22px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1a171e;
  border: 1px solid #2f2a36;
  border-radius: 6px;
  padding: 8px 9px 8px 12px;
  width: 270px;
}

.search-box .icon {
  width: 15px;
  height: 15px;
  color: var(--muted);
}

.search-box input {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--text);
  outline: none !important;
  font-size: 10px;
}

.search-box input::placeholder {
  color: #857b91;
}

.search-box:focus-within {
  border-color: #8a76a4;
  box-shadow: 0 0 0 2px #ad8adb0a;
}

.search-box kbd {
  font-family: var(--font);
  line-height: 17px;
  min-width: 17px;
  border: 1px solid #3b3444;
  text-align: center;
  border-radius: 3px;
  font-size: 10px;
  color: #877d93;
}

.feed-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--mint);
  white-space: nowrap;
}

.status-dot {
  display: block;
  width: 6px;
  height: 6px;
  background: var(--mint);
  border-radius: 100%;
  box-shadow: 0 0 0 4px #bd9de80b;
}

.feed-indicator.stale {
  color: var(--amber);
}

.feed-indicator.stale .status-dot {
  background: var(--amber);
  box-shadow: 0 0 0 4px #eac4830b;
}

.feed-indicator.paused {
  color: var(--muted);
}

.feed-indicator.paused .status-dot {
  background: var(--muted);
  box-shadow: none;
}

.local-avatar {
  width: 29px;
  height: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  background: #2e2935;
  border: 1px solid #463e50;
  color: #d8d1e1;
  border-radius: 50%;
  font-weight: 600;
}

.menu-toggle {
  display: none !important;
}

.main-content {
  max-width: 1720px;
  margin: auto;
  padding: 34px 34px 20px;
}

.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 29px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 8px;
  letter-spacing: 1.75px;
  color: #a9a1b4;
  font-weight: 600;
  margin-bottom: 9px;
}

.eyebrow .tiny-dot {
  width: 4px;
  height: 4px;
}

h1 {
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -1.35px;
  line-height: 1.18;
}

h1>span {
  color: var(--mint);
}

.page-heading p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
}

.heading-actions {
  display: flex;
  gap: 9px;
  padding-top: 17px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 35px;
  padding: 0 13px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.button .icon {
  width: 14px;
  height: 14px;
}

.button.secondary {
  border: 1px solid #3b3444;
  background: transparent;
  color: #c4becb;
}

.button.secondary:hover {
  background: var(--panel-raised);
  border-color: #5d5369;
}

.button.primary {
  background: var(--mint);
  color: #29242f;
  border: 1px solid var(--mint);
}

.button.primary:hover {
  background: var(--mint-bright);
  box-shadow: 0 2px 18px #bd9de814;
}

.button:active {
  transform: translateY(1px);
}

.button.refreshing .icon {
  animation: spin 1s linear infinite;
}

.notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #645032;
  background: #2b271c;
  border-radius: 7px;
  color: #dec592;
  font-size: 11px;
  margin-bottom: 20px;
}

.notice>.icon {
  width: 16px;
  height: 16px;
}

.notice>span {
  flex: 1;
}

.notice button {
  white-space: nowrap;
  background: transparent;
  color: #f0d599;
  font-size: 11px;
}

.notice button:hover {
  text-decoration: underline;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 13px;
  margin-bottom: 31px;
}

.metric-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(120deg,#1e1b22,#1a171d);
  padding: 17px 18px 14px;
  position: relative;
  overflow: hidden;
}

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  color: #afa7b9;
  font-size: 10px;
}

.metric-top>.icon {
  width: 15px;
  height: 15px;
  color: #716580;
}

.metric-value {
  font-size: 31px;
  font-weight: 500;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  margin-top: 9px;
}

.metric-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 8px;
  color: #7f738f;
  margin-top: 8px;
  white-space: nowrap;
}

.metric-tick {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #5f536e;
}

.metric-foot .live-dot {
  width: 4px;
  height: 4px;
}

.live-metric {
  background: linear-gradient(120deg,#221e28,#19161d);
}

.live-metric .metric-top>.icon {
  color: var(--mint);
}

.live-metric .metric-value {
  color: #d4c0ef;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) 324px;
  gap: 24px;
  align-items: start;
}

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

.board-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 17px;
  min-height: 25px;
  gap: 10px;
}

.board-title {
  display: flex;
  align-items: center;
  gap: 9px;
}

.count-pill {
  font-size: 9px;
  min-width: 25px;
  padding: 1px 6px;
  color: #aba1b7;
  border: 1px solid #393342;
  border-radius: 4px;
  text-align: center;
  font-family: var(--mono);
}

.board-live-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #887e95;
}

.board-live-label .tiny-dot {
  width: 4px;
  height: 4px;
}

.board-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
}

.mode-tabs {
  display: flex;
  background: #100e13;
  padding: 3px;
  border: 1px solid #29252f;
  border-radius: 6px;
  gap: 1px;
}

.mode-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  color: #8c8398;
  font-size: 9px;
  font-weight: 500;
  border: 1px solid transparent;
  padding: 6px 10px;
  white-space: nowrap;
  border-radius: 4px;
}

.mode-tab.active {
  background: #2b2631;
  border-color: #3a3443;
  color: #f0edf3;
  box-shadow: 0 1px 3px #0002;
}

.mode-tab:hover:not(.active) {
  color: #d8d3df;
  background: #211e26;
}

.mode-tab .icon {
  width: 11px;
  height: 11px;
}

.mode-tab .live-dot {
  width: 4px;
  height: 4px;
}

.icon-button {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #998ea7;
  border: 1px solid var(--line);
  border-radius: 5px;
  flex-shrink: 0;
}

.icon-button .icon {
  width: 14px;
  height: 14px;
}

.icon-button:hover {
  color: var(--mint);
  border-color: #5f536e;
  background: #231f29;
}

.pause-button[aria-pressed=true] {
  color: var(--amber);
  border-color: #796640;
  background: #28261e;
}

.board-column-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #6f6280;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 15px 13px 11px;
}

.board-column-labels>span:last-child {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 28px;
}

.board-column-labels .icon {
  width: 10px;
  height: 10px;
}

.event-list {
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: #18151b;
  min-height: 180px;
}

.competition-group+.competition-group {
  border-top: 1px solid #393241;
}

.competition-header {
  min-height: 37px;
  background: #201d25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 9px 12px;
  color: #998fa6;
  font-size: 9px;
}

.competition-label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.competition-label>.icon {
  width: 13px;
  height: 13px;
  color: #9b90aa;
}

.competition-name {
  color: #c4bdcc;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.competition-country {
  font-size: 8px;
  color: #7c6f8e;
}

.competition-separator {
  color: #5b4e6b;
}

.competition-count {
  font-size: 8px;
  color: #7c6f8e;
  white-space: nowrap;
}

.event-row {
  min-height: 93px;
  display: grid;
  grid-template-columns: minmax(140px,1fr) 217px 23px;
  gap: 9px;
  align-items: center;
  padding: 13px 10px 12px 14px;
  border-top: 1px solid var(--line-soft);
  position: relative;
  cursor: pointer;
  outline-offset: -3px !important;
  transition: background .16s;
}

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

.event-row:hover {
  background: #211d26;
}

.event-row.selected {
  background: #221e28;
}

.event-row.selected:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--mint);
}

.event-info {
  min-width: 0;
  align-self: center;
}

.event-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #857896;
  font-size: 8px;
  margin-bottom: 7px;
  line-height: 1.2;
  min-height: 11px;
}

.event-meta .event-live {
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 7px;
  letter-spacing: .4px;
  font-weight: 600;
}

.event-live .live-dot {
  height: 4px;
  width: 4px;
}

.event-date {
  white-space: nowrap;
}

.event-teams {
  display: grid;
  gap: 3px;
  line-height: 1.4;
  font-size: 10px;
  font-weight: 500;
}

.team-line {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.team-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-mark {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: #352f3c;
  color: #a499b3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  flex-shrink: 0;
  font-weight: 700;
  line-height: 1;
}

.team-mark.away {
  background: #38332e;
  color: #c0aa8f;
}

.event-teams.single .team-name {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.odds-button {
  background: #29242f;
  border: 1px solid #3a3343;
  border-radius: 5px;
  padding: 6px 3px 5px;
  height: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  gap: 2px;
  position: relative;
}

.odds-button:hover {
  background: #3b3444;
  border-color: #8874a2;
}

.odds-label {
  color: #968aa5;
  font-size: 7px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.odds-number {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.2px;
  color: #e2dde8;
}

.odds-button.selected-quote {
  background: #3c3645;
  border-color: #8570a0;
}

.odds-button.selected-quote .odds-number {
  color: #d8c1f6;
}

.odds-button.up .odds-number {
  color: var(--mint);
}

.odds-button.down .odds-number {
  color: #e8ab9b;
}

.change-arrow {
  font-size: 8px;
  position: absolute;
  right: 4px;
  bottom: 5px;
  color: var(--mint);
}

.odds-button.down .change-arrow {
  color: #e8ab9b;
}

.odds-placeholder {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #211e26;
  border: 1px solid #312b38;
  border-radius: 5px;
  color: #594b6c;
  font-size: 11px;
}

.odds-extra {
  grid-column: 1/-1;
  text-align: center;
  color: #8a7e9a;
  font-size: 8px;
  line-height: 1;
  padding-top: 4px;
}

.event-star {
  background: transparent;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  color: #5d4f70;
  border-radius: 4px;
  align-self: start;
  margin-top: 22px;
}

.event-star .icon {
  height: 13px;
  width: 13px;
}

.event-star:hover {
  color: #bfb5cd;
  background: #383240;
}

.event-star.saved {
  color: var(--mint);
}

.event-star.saved .icon {
  fill: #bd9de81a;
}

.board-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  color: #7b6e8d;
  padding: 14px 1px;
  gap: 10px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  color: #b9adc9;
  padding: 2px;
  font-size: 9px;
}

.text-button:hover {
  color: var(--mint);
  text-decoration: underline;
}

.text-button>.icon {
  width: 11px;
  height: 11px;
  transform: rotate(90deg);
}

.board-caption {
  display: flex;
  gap: 6px;
  font-size: 8px;
  color: #6e6081;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #2a2531;
}

.board-caption>.icon {
  width: 11px;
  height: 11px;
}

.empty-state {
  padding: 55px 24px;
  text-align: center;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.empty-icon {
  height: 46px;
  width: 46px;
  border: 1px solid #3e3748;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #28242e;
  margin-bottom: 16px;
  color: var(--mint);
}

.empty-icon .icon {
  width: 22px;
  height: 22px;
}

.empty-state h3 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.3px;
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 11px;
  color: var(--muted);
  max-width: 280px;
  line-height: 1.7;
}

.empty-state button {
  margin-top: 18px;
}

.inspector {
  border: 1px solid #322c39;
  border-radius: 9px;
  background: #1c1920;
  overflow: hidden;
  position: sticky;
  top: 22px;
  min-width: 0;
}

.inspector-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 17px 19px;
  border-bottom: 1px solid #312c39;
  background: #1f1b24;
}

.inspector-title>div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inspector-title h2 {
  font-size: 13px;
  letter-spacing: -.1px;
}

.inspector-title .tiny-dot {
  width: 5px;
  height: 5px;
}

.small-tag {
  font-size: 7px;
  letter-spacing: 1px;
  color: #8b8199;
  border: 1px solid #3d3646;
  padding: 3px 6px;
  border-radius: 3px;
}

.inspector-empty {
  padding: 48px 27px 50px;
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.inspector-empty h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: -.5px;
}

.inspector-empty p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 11px;
}

.event-detail-heading {
  padding: 19px 19px 17px;
}

.detail-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  font-size: 8px;
  color: #998da9;
  margin-bottom: 17px;
}

.sport-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.sport-chip .icon {
  width: 12px;
  height: 12px;
  color: #a99abc;
}

.detail-live {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 7px;
  color: var(--amber);
  letter-spacing: .7px;
}

.detail-status {
  font-size: 7px;
  letter-spacing: .6px;
  color: #9e94aa;
}

.detail-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
}

.detail-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 9px;
  flex: 1;
  min-width: 0;
}

.detail-shield {
  width: 39px;
  height: 43px;
  clip-path: polygon(0 0,100% 0,100% 75%,50% 100%,0 75%);
  background: linear-gradient(135deg,#413a4b,#322c3a);
  color: #c8bed4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 4px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}

.detail-team.away .detail-shield {
  background: linear-gradient(135deg,#4b443a,#34332d);
  color: #dbcaaf;
}

.detail-team strong {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.detail-versus {
  font-size: 9px;
  color: #6c5f7e;
  letter-spacing: 1px;
  padding-bottom: 20px;
}

.detail-single-title {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -.5px;
  line-height: 1.5;
}

.detail-tournament {
  text-align: center;
  font-size: 8px;
  color: #7c6e8f;
  margin-top: 13px;
}

.detail-time {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #aaa0b7;
  font-size: 9px;
  margin-top: 7px;
}

.detail-time>.icon {
  width: 11px;
  height: 11px;
}

.detail-tabs {
  display: flex;
  border-top: 1px solid #322c39;
  border-bottom: 1px solid #322c39;
  padding: 0 19px;
  gap: 20px;
}

.detail-tab {
  padding: 11px 0 10px;
  background: transparent;
  color: #8f829f;
  border-bottom: 2px solid transparent;
  font-size: 10px;
  display: flex;
  gap: 6px;
  align-items: center;
}

.detail-tab.active {
  color: var(--mint);
  border-bottom-color: var(--mint);
}

.detail-tab:hover {
  color: var(--text);
}

.detail-tab span {
  font-size: 8px;
  color: #80748f;
  min-width: 17px;
  border-radius: 3px;
  background: #2c2733;
  padding: 0 4px;
}

.detail-body {
  padding: 19px;
}

.detail-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin-bottom: 5px;
}

.detail-section-heading h3 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
}

.detail-section-heading>.icon {
  color: #7a6d8a;
  width: 12px;
  height: 12px;
}

.section-subtitle {
  font-size: 8px;
  color: #807293;
  line-height: 1.5;
  margin-bottom: 15px;
}

.analysis-market-name {
  color: #ada4b8;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.probability-bar {
  display: flex;
  gap: 3px;
  height: 7px;
  border-radius: 3px;
  overflow: hidden;
  margin: 15px 0;
}

.probability-segment {
  min-width: 2px;
  background: var(--mint);
  transition: width .5s ease;
}

.probability-segment:nth-child(3n+2) {
  background: #8d819d;
}

.probability-segment:nth-child(3n+3) {
  background: #d4b68c;
}

.probability-rows {
  display: grid;
  gap: 11px;
}

.probability-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
}

.probability-color {
  height: 6px;
  width: 6px;
  border-radius: 2px;
  background: var(--mint);
  flex-shrink: 0;
}

.probability-row:nth-child(3n+2) .probability-color {
  background: #8d819d;
}

.probability-row:nth-child(3n+3) .probability-color {
  background: #d4b68c;
}

.probability-name {
  color: #b8b0c2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.probability-price {
  font-family: var(--mono);
  font-size: 9px;
  color: #968ba5;
  margin-left: auto;
  padding-left: 3px;
}

.probability-value {
  font-family: var(--mono);
  font-size: 10px;
  color: #e6e2eb;
  width: 42px;
  text-align: right;
}

.analysis-note {
  margin-top: 16px;
  padding: 10px 11px;
  border-radius: 5px;
  border: 1px solid #332d3a;
  background: #211e26;
  font-size: 8px;
  line-height: 1.7;
  color: #8e819f;
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.analysis-note .icon {
  height: 12px;
  width: 12px;
  margin-top: 1px;
  color: #9788aa;
}

.detail-divider {
  height: 1px;
  background: #322c39;
  margin: 21px 0;
}

.history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.history-heading h3 {
  font-size: 11px;
  font-weight: 500;
}

.history-badge {
  font-size: 7px;
  letter-spacing: .5px;
  color: #7e718f;
  background: #2b2631;
  padding: 3px 5px;
  border-radius: 3px;
}

.history-empty {
  height: 86px;
  border-radius: 6px;
  border: 1px dashed #3e3747;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  margin-top: 14px;
  background: linear-gradient(180deg,#211e2666,transparent);
}

.history-empty .icon {
  height: 20px;
  width: 20px;
  color: #77688b;
  margin-bottom: 2px;
}

.history-empty strong {
  font-size: 9px;
  color: #a69bb5;
  font-weight: 500;
}

.history-empty span {
  font-size: 8px;
  color: #706084;
}

.history-chart {
  display: block;
  width: 100%;
  height: 95px;
  overflow: visible;
  margin-top: 10px;
}

.history-axis {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #6f5f83;
  font-size: 7px;
  margin-top: 3px;
}

.history-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8px;
  color: #9a8fa9;
  margin-top: 10px;
  gap: 10px;
}

.history-detail span:last-child {
  font-family: var(--mono);
  font-size: 9px;
}

.analysis-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 19px;
}

.analysis-summary>div {
  padding: 10px;
  border: 1px solid #342e3c;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.analysis-summary span {
  font-size: 8px;
  color: #87789b;
}

.analysis-summary strong {
  font-size: 11px;
  font-family: var(--mono);
  font-weight: 500;
}

.inspector-footer {
  border-top: 1px solid #332d3a;
  padding: 11px 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 7px;
  color: #705f87;
}

.inspector-footer span:first-child {
  display: flex;
  align-items: center;
  gap: 5px;
}

.inspector-footer .tiny-dot {
  width: 4px;
  height: 4px;
}

.inspector-footer.stale {
  color: var(--amber);
}

.inspector-footer.stale .tiny-dot {
  background: var(--amber);
}

.detail-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9b8faa;
  font-size: 9px;
  padding: 13px 0;
}

.detail-loading .icon {
  width: 13px;
  height: 13px;
  animation: spin 1.5s linear infinite;
}

.detail-warning {
  font-size: 9px;
  padding: 9px 10px;
  background: #352e2050;
  color: var(--amber);
  border: 1px solid #554831;
  border-radius: 4px;
  margin-bottom: 15px;
  line-height: 1.6;
}

.market-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 16px;
}

.market-filter {
  font-size: 8px;
  background: #231f29;
  color: #8e81a0;
  padding: 5px 7px;
  border: 1px solid #393241;
  border-radius: 4px;
}

.market-filter.active {
  background: #342e3c;
  color: var(--mint);
  border-color: #615078;
}

.market-filter:hover {
  color: var(--text);
}

.detail-markets {
  max-height: 530px;
  overflow: auto;
  padding-right: 3px;
  scrollbar-width: thin;
  scrollbar-color: #483b58 transparent;
}

.detail-market+.detail-market {
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid #342e3b;
}

.detail-market h3 {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 9px;
  color: #c1b9cb;
}

.detail-market-prices {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 5px;
}

.detail-market-prices.three {
  grid-template-columns: repeat(3,minmax(0,1fr));
}

.detail-market-prices .odds-button {
  height: 48px;
  padding: 5px;
  gap: 3px;
}

.detail-market-prices .odds-label {
  font-size: 8px;
  line-height: 1.3;
  max-width: 100%;
}

.market-selection-note {
  font-size: 8px;
  color: #807094;
  margin-top: 12px;
}

.no-markets {
  padding: 20px 10px;
  text-align: center;
  color: #8d809f;
  font-size: 10px;
  line-height: 1.8;
}

.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #29252f;
  margin-top: 32px;
  padding-top: 17px;
  color: #6b5d7d;
  font-size: 8px;
}

.page-footer>span:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-mark {
  color: #9a8eaa;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
}

.toast {
  position: fixed;
  z-index: 80;
  left: calc(50% + 108px);
  bottom: 30px;
  transform: translateX(-50%);
  padding: 12px 19px;
  border: 1px solid #5e526e;
  background: #2d2833;
  color: #ded1f0;
  border-radius: 7px;
  font-size: 12px;
  box-shadow: 0 7px 35px #0005;
  animation: toast-in .2s ease;
}

.skeleton {
  border-radius: 4px;
  background: linear-gradient(90deg,#27222d 25%,#322c3a 50%,#27222d 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

.loading-events {
  padding: 13px;
  display: grid;
  gap: 14px;
}

.skeleton-group {
  height: 18px;
  width: 45%;
  margin: 2px 0 5px;
}

.skeleton-row {
  height: 70px;
  opacity: .5;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: #0009;
  z-index: 29;
  backdrop-filter: blur(3px);
}

.quote-age {
  font-size: 8px;
  color: #9588a7;
  margin-top: 5px;
  line-height: 1.3;
}

.quote-age.stale {
  color: #c2a982;
}

.inactive-sports-label {
  font-size: 7px;
  letter-spacing: 1px;
  color: #7c708b;
  margin: 24px 12px 10px;
}

.event-odds .odds-extra {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    translate: 0 6px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@media(min-width:1580px) {
  .sidebar {
    width: 232px;
    padding-left: 23px;
    padding-right: 23px;
  }
  .app-shell {
    margin-left: 232px;
  }
  .main-content {
    padding: 42px 44px 24px;
  }
  .topbar {
    padding: 0 44px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0,1fr) 352px;
    gap: 28px;
  }
  .event-row {
    min-height: 99px;
    grid-template-columns: minmax(160px,1fr) 249px 25px;
    padding-left: 18px;
    gap: 13px;
  }
  .event-teams {
    font-size: 12px;
  }
  .odds-button {
    height: 49px;
  }
  .odds-label {
    font-size: 8px;
  }
  .odds-number {
    font-size: 13px;
  }
  .competition-header {
    font-size: 10px;
    padding-left: 18px;
  }
  .metric-card {
    padding: 19px 21px 18px;
  }
  .metric-value {
    font-size: 35px;
  }
  .metric-top {
    font-size: 11px;
  }
  .metric-foot {
    font-size: 9px;
  }
  .detail-team strong {
    font-size: 12px;
  }
  .page-heading p {
    font-size: 12px;
  }
  h1 {
    font-size: 38px;
  }
  .button {
    font-size: 11px;
    height: 38px;
  }
  .main-content .mode-tab {
    font-size: 10px;
    padding: 6px 13px;
  }
  .probability-row {
    font-size: 10px;
  }
  .probability-value {
    font-size: 11px;
  }
  .detail-body {
    padding: 21px;
  }
  .detail-section-heading h3,.history-heading h3 {
    font-size: 12px;
  }
  .analysis-note {
    font-size: 9px;
  }
  .section-subtitle {
    font-size: 9px;
  }
  .inspector-footer {
    font-size: 8px;
  }
}

@media(max-width:1240px) {
  .sidebar {
    width: 190px;
    padding-left: 13px;
    padding-right: 13px;
  }
  .app-shell {
    margin-left: 190px;
  }
  .main-content {
    padding: 27px 23px 20px;
  }
  .topbar {
    padding: 0 23px;
    height: 69px;
  }
  .brand {
    font-size: 24px;
  }
  .workspace-label {
    font-size: 7px;
    letter-spacing: 1.15px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0,1fr) 287px;
    gap: 17px;
  }
  .event-row {
    grid-template-columns: minmax(115px,1fr) 175px 20px;
    gap: 6px;
    padding-left: 10px;
    padding-right: 7px;
  }
  .event-odds {
    gap: 4px;
  }
  .odds-number {
    font-size: 11px;
  }
  .odds-label {
    font-size: 6px;
  }
  .mode-tab {
    padding: 5px 6px;
    font-size: 8px;
  }
  .metrics-grid {
    gap: 9px;
  }
  .metric-card {
    padding: 14px 12px 12px;
  }
  .metric-top {
    font-size: 9px;
  }
  .metric-foot {
    font-size: 7px;
    gap: 4px;
  }
  .metric-top>.icon {
    width: 13px;
    height: 13px;
  }
  .metric-value {
    font-size: 28px;
  }
  .page-heading {
    gap: 15px;
  }
  .heading-actions {
    gap: 7px;
  }
  .button {
    padding: 0 10px;
    font-size: 9px;
  }
  .search-box {
    width: 225px;
  }
  .topbar-right {
    gap: 16px;
  }
  .detail-body {
    padding: 17px;
  }
  .detail-team strong {
    font-size: 10px;
  }
  .competition-country,.competition-separator {
    display: none;
  }
  .board-live-label {
    font-size: 6px;
  }
  .board-column-labels {
    font-size: 6px;
  }
  .board-column-labels>span:last-child {
    padding-right: 20px;
  }
}

@media(max-width:1050px) {
  .sidebar {
    width: 178px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .app-shell {
    margin-left: 178px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0,1fr);
  }
  .inspector {
    position: static;
    display: block;
  }
  .inspector .detail-body {
    padding: 21px;
  }
  .inspector-title {
    padding: 16px 21px;
  }
  .event-row {
    grid-template-columns: minmax(160px,1fr) 240px 27px;
    padding-left: 16px;
    gap: 14px;
  }
  .event-teams {
    font-size: 11px;
  }
  .odds-label {
    font-size: 8px;
  }
  .odds-number {
    font-size: 12px;
  }
  .mode-tab {
    font-size: 10px;
    padding: 6px 12px;
  }
  .board-column-labels {
    font-size: 7px;
  }
  .board-column-labels>span:last-child {
    padding-right: 49px;
  }
  .metric-foot {
    white-space: normal;
    line-height: 1.5;
    align-items: flex-start;
  }
  .metric-foot span:first-child {
    margin-top: 3px;
    flex-shrink: 0;
  }
  .metric-card {
    padding: 14px 11px;
  }
  .metric-top {
    font-size: 8px;
  }
  .metric-top .icon {
    display: none;
  }
  .topbar-left {
    gap: 8px;
  }
  .search-box {
    width: 225px;
  }
  .topbar-right {
    gap: 13px;
  }
  .local-avatar {
    display: none;
  }
  h1 {
    font-size: 31px;
  }
  .page-heading p {
    font-size: 10px;
  }
  .button {
    font-size: 8px;
    padding: 0 9px;
  }
  .heading-actions {
    padding-top: 8px;
  }
  .detail-match {
    max-width: 300px;
    margin: auto;
  }
  .detail-tabs {
    justify-content: center;
  }
  .detail-team strong {
    font-size: 12px;
  }
  .detail-body .analysis-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .analysis-layout>.analysis-second>.detail-divider {
    display: none;
  }
  .detail-markets {
    max-height: 450px;
  }
  .detail-market-prices {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .detail-market-prices .odds-button {
    height: 50px;
  }
  .detail-market-prices .odds-label {
    font-size: 10px;
  }
  .inspector-empty {
    padding: 30px;
  }
}

@media(max-width:760px) {
  .sidebar {
    transform: translateX(-100%);
    width: 216px;
    transition: transform .2s ease;
    padding: 25px 18px;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar .brand {
    font-size: 26px;
  }
  .sidebar .workspace-label {
    font-size: 8px;
  }
  .app-shell {
    margin-left: 0;
  }
  .menu-toggle {
    display: flex !important;
  }
  .topbar {
    height: 64px;
    padding: 0 18px;
    gap: 13px;
  }
  .topbar-left {
    gap: 12px;
  }
  .breadcrumb,.breadcrumb-arrow,.breadcrumb-current {
    display: none;
  }
  .topbar-right {
    flex: 1;
    gap: 15px;
  }
  .search-box {
    flex: 1;
    width: auto;
    max-width: 400px;
  }
  .feed-indicator {
    font-size: 9px;
  }
  .main-content {
    padding: 27px 18px 18px;
  }
  .page-heading {
    margin-bottom: 23px;
    align-items: flex-end;
  }
  .eyebrow {
    font-size: 7px;
    letter-spacing: 1.5px;
    margin-bottom: 9px;
  }
  h1 {
    font-size: 30px;
  }
  .page-heading p {
    font-size: 10px;
    margin-top: 8px;
  }
  .heading-actions {
    gap: 7px;
  }
  .button {
    height: 32px;
    padding: 0 9px;
    font-size: 8px;
  }
  .button .icon {
    height: 12px;
    width: 12px;
  }
  .metrics-grid {
    gap: 9px;
    margin-bottom: 26px;
  }
  .metric-top {
    font-size: 8px;
  }
  .metric-value {
    font-size: 27px;
  }
  .metric-foot {
    font-size: 7px;
  }
  .toast {
    left: 50%;
    max-width: calc(100% - 35px);
    width: max-content;
    font-size: 11px;
    bottom: 18px;
  }
  .page-footer {
    font-size: 7px;
    margin-top: 27px;
    gap: 8px;
  }
  .event-row {
    grid-template-columns: minmax(130px,1fr) 210px 22px;
    gap: 10px;
  }
  .mode-tab {
    font-size: 9px;
  }
  .inspector {
    scroll-margin-top: 20px;
  }
  .source-card strong {
    font-size: 10px;
  }
  .source-card div>span {
    font-size: 8px;
  }
}

@media(max-width:520px) {
  .main-content {
    padding: 25px 13px 16px;
  }
  .topbar {
    padding: 0 13px;
    gap: 10px;
  }
  .topbar-right {
    gap: 11px;
  }
  .search-box {
    padding-left: 10px;
    gap: 7px;
  }
  .search-box input {
    font-size: 9px;
  }
  .search-box kbd {
    display: none;
  }
  .feed-indicator {
    font-size: 8px;
    gap: 6px;
  }
  .status-dot {
    width: 5px;
    height: 5px;
  }
  .page-heading {
    flex-wrap: wrap;
    gap: 16px;
  }
  .page-heading>div:first-child {
    width: 100%;
  }
  h1 {
    font-size: 32px;
  }
  .page-heading p {
    font-size: 10px;
  }
  .heading-actions {
    width: 100%;
    padding: 0;
    justify-content: flex-start;
  }
  .button {
    font-size: 9px;
    height: 34px;
    padding: 0 12px;
  }
  .button .icon {
    width: 13px;
    height: 13px;
  }
  .metrics-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 9px;
  }
  .metric-card {
    padding: 14px;
  }
  .metric-top {
    font-size: 9px;
  }
  .metric-top .icon {
    display: block;
    width: 13px;
    height: 13px;
  }
  .metric-value {
    font-size: 28px;
    margin-top: 6px;
  }
  .metric-foot {
    font-size: 7px;
    margin-top: 6px;
    white-space: nowrap;
  }
  .board-heading {
    margin-bottom: 13px;
  }
  .board-heading h2 {
    font-size: 16px;
  }
  .board-live-label {
    font-size: 6px;
  }
  .mode-tab {
    padding: 6px 9px;
    font-size: 8px;
  }
  .board-toolbar {
    padding-bottom: 13px;
  }
  .pause-button {
    width: 28px;
    height: 28px;
  }
  .board-column-labels {
    font-size: 6px;
    padding: 13px 8px 10px;
  }
  .board-column-labels>span:last-child {
    padding-right: 27px;
  }
  .event-row {
    grid-template-columns: minmax(115px,1fr) 158px 20px;
    gap: 5px;
    padding: 12px 7px 12px 10px;
    min-height: 91px;
  }
  .event-teams {
    font-size: 9px;
    gap: 4px;
  }
  .team-line {
    gap: 5px;
  }
  .team-mark {
    height: 12px;
    width: 12px;
    font-size: 6px;
  }
  .event-meta {
    font-size: 7px;
    gap: 5px;
  }
  .event-meta .event-live {
    font-size: 6px;
  }
  .event-odds {
    gap: 4px;
  }
  .odds-number {
    font-size: 10px;
    letter-spacing: -.35px;
  }
  .odds-label {
    font-size: 6px;
  }
  .odds-button {
    height: 43px;
    padding: 5px 2px;
  }
  .odds-extra {
    font-size: 6px;
  }
  .odds-placeholder {
    height: 43px;
  }
  .event-star {
    padding: 3px;
  }
  .event-star .icon {
    width: 12px;
    height: 12px;
  }
  .competition-header {
    font-size: 8px;
    padding: 9px 10px;
  }
  .competition-count {
    font-size: 7px;
  }
  .competition-label>.icon {
    width: 12px;
    height: 12px;
  }
  .board-footer {
    font-size: 8px;
  }
  .text-button {
    font-size: 8px;
  }
  .board-caption {
    font-size: 7px;
  }
  .board-caption .icon {
    width: 10px;
    height: 10px;
  }
  .detail-body .analysis-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .analysis-layout>.analysis-second>.detail-divider {
    display: block;
  }
  .inspector .detail-body {
    padding: 20px;
  }
  .detail-match {
    max-width: 280px;
  }
  .detail-market-prices {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .detail-market-prices .odds-label {
    font-size: 8px;
  }
  .notice {
    font-size: 9px;
    padding: 10px;
  }
  .notice button {
    font-size: 9px;
  }
  .notice>.icon {
    width: 14px;
    height: 14px;
  }
  .page-footer>span:first-child {
    gap: 6px;
  }
  .page-footer {
    font-size: 6px;
  }
  .footer-mark {
    font-size: 16px;
  }
  .change-arrow {
    font-size: 6px;
    right: 2px;
    bottom: 4px;
  }
}

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

@media(max-width:760px) {
  .sidebar:not(.open) {
    visibility: hidden;
    pointer-events: none;
  }
  .sidebar.open {
    visibility: visible;
  }
  .quote-age {
    font-size: 7px;
  }
}

@media(max-width:360px) {
  .event-row {
    grid-template-columns: minmax(100px,1fr) 139px 19px;
    gap: 4px;
    padding-left: 8px;
    padding-right: 5px;
  }
  .event-teams {
    font-size: 8px;
  }
  .event-meta {
    font-size: 6px;
  }
  .event-odds {
    gap: 3px;
  }
  .odds-number {
    font-size: 9px;
  }
  .odds-extra {
    font-size: 6px;
  }
  .mode-tab {
    padding: 6px 6px;
    font-size: 7px;
  }
  .mode-tabs {
    padding: 2px;
  }
  .metric-foot {
    white-space: normal;
    font-size: 7px;
  }
  .board-live-label {
    font-size: 5px;
  }
  .feed-indicator {
    font-size: 7px;
  }
  .search-box input {
    font-size: 8px;
  }
}

/* Shared glass theme: market and account surfaces. */
:root {
  --bg: var(--ui-bg, #0a1114);
  --sidebar: rgba(19, 17, 21, .9);
  --panel: var(--ui-surface, rgba(28, 25, 33, .76));
  --panel-raised: var(--ui-raised, rgba(40, 36, 46, .78));
  --panel-hover: rgba(56, 49, 64, .55);
  --line: var(--ui-line, rgba(204, 188, 225, .13));
  --line-soft: rgba(204, 188, 225, .08);
  --text: var(--ui-text, #f1eff4);
  --muted: var(--ui-muted, #a69db1);
  --faint: #938a9f;
  --mint: var(--ui-accent, #c7a9ef);
  --mint-bright: #ddc8f8;
  --font: var(--ui-font, "Segoe UI", system-ui, sans-serif);
}
body.market-page, body.account-page {
  background: radial-gradient(ellipse at 83% 0%, rgba(101, 83, 124, .12), transparent 42%), var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
}
.market-page .sidebar, .market-page .topbar {
  background: rgba(17, 15, 19, .84);
  border-color: var(--line);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.market-page .topbar { min-height: 76px; }
.main-content { padding-top: 38px; }
.market-page .main-content { padding-bottom: var(--ui-nav-clearance); }
.market-page .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
.brand-mark { border-radius: 12px; background: var(--mint); }
.brand { font-size: 27px; letter-spacing: -1.3px; }
.workspace-label, .section-label, .inactive-sports-label { color: var(--muted); font-size: 10px; letter-spacing: 1px; }
.nav-item, .sport-button { min-height: 44px; border-radius: 12px; font-size: 13px; }
.nav-item.active { background: rgba(199, 169, 239, .1); }
.nav-item:hover, .sport-button:hover, .sport-button.active { background: rgba(199, 169, 239, .065); }
.source-card { border-radius: 14px; padding: 13px 10px; border-color: var(--line); background: var(--panel); }
.source-card strong { font-size: 12px; }
.source-card div > span, .sidebar-foot { font-size: 10px; color: var(--muted); }
.breadcrumb, .breadcrumb-current { font-size: 12px; }
.search-box { min-height: 44px; width: 300px; border-radius: 14px; border-color: var(--line); background: var(--panel); }
.search-box input { font-size: 13px; }
.feed-indicator { font-size: 12px; }
.local-avatar { width: 44px; height: 44px; font-size: 14px; background: var(--panel-raised); border-color: var(--line); }
.page-heading { margin-bottom: 28px; gap: 24px; }
.eyebrow { color: var(--muted); font-size: 10px; letter-spacing: 1.5px; margin-bottom: 12px; }
.page-heading h1 { font-size: clamp(34px, 3.2vw, 46px); font-weight: 550; letter-spacing: -1.7px; }
.page-heading p { margin-top: 12px; font-size: 14px; }
.heading-actions { padding-top: 0; gap: 10px; }
.button { min-height: 44px; height: auto; border-radius: 13px; font-size: 12px; padding: 11px 16px; }
.button .icon { height: 16px; width: 16px; }
.button.primary { color: #1d1a22; box-shadow: 0 4px 18px rgba(199, 169, 239, .08); }
.button.secondary { background: rgba(40, 36, 46, .42); border-color: var(--line); color: var(--text); }
.icon-button { width: 44px; height: 44px; border-radius: 13px; background: var(--panel); }
.icon-button .icon { width: 18px; height: 18px; }
.text-button { min-height: 44px; font-size: 12px; }
.metrics-grid { gap: 16px; margin-bottom: 28px; }
.metric-card, .research-lab, .inspector {
  border-radius: var(--ui-radius, 22px);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--ui-shadow, 0 16px 44px rgba(0, 0, 0, .12));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.metric-card { padding: 21px 22px; }
.metric-card.live-metric { background: linear-gradient(135deg, rgba(86, 70, 106, .2), rgba(28, 25, 33, .8)); border-color: rgba(199, 169, 239, .2); }
.metric-top { color: var(--muted); font-size: 12px; }
.metric-top > .icon { color: var(--muted); width: 17px; height: 17px; }
.metric-value { font: 550 36px/1.18 var(--font); font-variant-numeric: tabular-nums; letter-spacing: -1.5px; margin-top: 14px; }
.metric-foot { color: var(--muted); font-size: 11px; margin-top: 10px; }
.research-lab { margin-top: 30px; margin-bottom: 30px; }
.research-heading { padding: 21px 24px; }
.research-title { min-width: 0; }
.research-symbol { width: 40px; height: 40px; border-radius: 13px; border-color: var(--line); background: rgba(199, 169, 239, .1); }
.research-title h2 { font-size: 20px; font-weight: 600; }
.research-title p { color: var(--muted); font-size: 12px; }
.research-tag { padding: 4px 7px; border-radius: 7px; color: var(--mint); font-size: 9px; border-color: rgba(199, 169, 239, .18); letter-spacing: .6px; }
.research-status { font-size: 11px; color: var(--muted); }
.research-archive { padding: 17px 24px; background: rgba(14, 13, 16, .22); border-color: var(--line); }
.research-counts strong { font: 550 23px/1.2 var(--font); font-variant-numeric: tabular-nums; }
.research-counts span { font-size: 11px; color: var(--muted); }
.research-strategy { padding: 20px 24px 10px; gap: 20px; align-items: center; }
.research-strategy h3 { font-size: 15px; font-weight: 550; }
.research-strategy p { font-size: 12px; color: var(--muted); line-height: 1.6; }
.research-live { font-size: 9px; color: var(--mint); }
.research-threshold label { font-size: 11px; color: var(--muted); }
.research-input-wrap { border-radius: 12px; width: 88px; border-color: var(--line); background: rgba(14, 12, 16, .55); }
.research-input-wrap input { height: 44px; font: 500 15px var(--font); color: var(--text); }
.research-threshold .button { height: 44px; font-size: 12px; }
.research-method-details { margin: 0 24px 13px; }
.research-method-details summary { display: flex; align-items: center; gap: 8px; min-height: 44px; width: fit-content; max-width: 100%; cursor: pointer; list-style: none; font-size: 12px; color: var(--muted); }
.research-method-details summary::-webkit-details-marker { display: none; }
.research-method-details summary .icon { width: 15px; height: 15px; }
.research-method-details summary .icon:last-child { width: 12px; margin-left: 4px; transition: transform .15s; }
.research-method-details[open] summary .icon:last-child { transform: rotate(90deg); }
.research-method-details summary:hover { color: var(--text); }
.research-method { padding: 0 0 12px; color: var(--muted); font-size: 12px; line-height: 1.75; max-width: 900px; }
.research-candidate-heading { padding: 0 24px 14px; }
.research-candidate-heading h3 { font-size: 13px; color: var(--text); }
.research-candidate-heading > span { font-size: 11px; color: var(--muted); }
.research-empty { margin: 0 24px 20px; padding: 17px; background: rgba(14, 13, 16, .24); border-radius: 14px; border-color: var(--line); }
.research-empty strong { font-size: 13px; color: var(--text); }
.research-empty p { font-size: 12px; color: var(--muted); line-height: 1.65; }
.research-table-wrap { border-radius: 14px; border-color: var(--line); margin: 0 24px 20px; }
.research-table { font-size: 12px; }
.research-table th { background: #231f29; font-size: 10px; padding: 13px; color: var(--muted); }
.research-table td { padding: 15px 13px; border-color: var(--line); color: var(--text); }
.research-table td strong { font-size: 12px; }
.research-table td > span, .research-table td > time { font-size: 11px; color: var(--muted); }
.research-history { background: rgba(14, 13, 16, .15); border-color: var(--line); }
.research-history summary { min-height: 52px; padding: 14px 24px; color: var(--muted); font-size: 12px; }
.research-history-note, .research-history-empty { font-size: 12px; color: var(--muted); margin-left: 24px; margin-right: 24px; }
.research-performance, .research-performance strong { font-size: 12px; }
.research-notice, .notice { font-size: 12px; line-height: 1.65; }
.notice { border-radius: 14px; }
.notice button { min-height: 44px; font-size: 12px; }
.dashboard-grid { gap: 24px; }
.board-heading h2 { font-size: 21px; }
.count-pill { padding: 3px 8px; font-size: 11px; border-radius: 8px; border-color: var(--line); color: var(--muted); }
.board-live-label { font-size: 9px; color: var(--muted); }
.mode-tabs { border-radius: 15px; padding: 4px; background: rgba(11, 10, 12, .45); border-color: var(--line); }
.mode-tab { min-height: 42px; font-size: 12px; padding: 8px 13px; border-radius: 11px; color: var(--muted); }
.mode-tab.active { background: var(--panel-raised); border-color: var(--line); color: var(--text); }
.board-column-labels { font-size: 9px; color: var(--muted); }
.event-list { border-radius: 18px; border-color: var(--line); background: var(--panel); }
.competition-header { min-height: 44px; background: rgba(40, 36, 46, .65); font-size: 12px; padding: 12px 16px; }
.competition-name { color: #d6cfdf; }
.competition-country, .competition-count { font-size: 10px; color: var(--muted); }
.event-row { grid-template-columns: minmax(140px, 1fr) 217px 44px; padding: 17px 12px 17px 17px; gap: 12px; min-height: 116px; }
.event-row:hover { background: rgba(199, 169, 239, .035); }
.event-row.selected { background: rgba(199, 169, 239, .065); }
.event-teams { font-size: 13px; gap: 5px; }
.team-mark { width: 19px; height: 19px; border-radius: 6px; font-size: 9px; }
.event-meta, .event-meta .event-live, .quote-age { font-size: 10px; }
.event-meta { color: var(--muted); }
.odds-button { height: 51px; border-radius: 11px; background: rgba(47, 42, 54, .62); border-color: var(--line); }
.odds-number { font-size: 15px; letter-spacing: -.2px; }
.odds-label { font-size: 10px; color: #c4bdce; }
.odds-extra { font-size: 10px; color: var(--muted); }
.odds-placeholder { height: 51px; border-radius: 11px; }
.event-star { width: 44px; height: 44px; padding: 12px; border-radius: 12px; }
.event-star .icon { width: 18px; height: 18px; }
.board-footer { font-size: 12px; color: var(--muted); }
.board-caption { font-size: 11px; color: var(--muted); }
.inspector { overflow: hidden; }
.inspector-title { padding: 20px 22px; border-color: var(--line); }
.inspector-title h2 { font-size: 17px; }
.small-tag { font-size: 9px; border-radius: 7px; }
.inspector-empty { padding: 48px 24px; }
.inspector-empty h3 { font-size: 19px; }
.inspector-empty p { font-size: 13px; color: var(--muted); line-height: 1.8; }
.market-filter { min-height: 44px; font-size: 12px; padding: 8px 12px; border-radius: 10px; }
.detail-market { border-color: var(--line); }
.detail-market h3 { font-size: 12px; line-height: 1.6; }
.detail-market-prices .odds-button { min-height: 54px; }
.detail-market-prices .odds-label { font-size: 11px; }
.section-subtitle, .calculator-assumption, .market-selection-note { font-size: 12px; line-height: 1.75; color: var(--muted); }
.page-footer { font-size: 11px; color: var(--muted); margin-top: 30px; }
.settings-dialog { width: min(500px, calc(100vw - 32px)); padding: 28px; border-radius: 24px; background: rgba(27, 24, 31, .97); border-color: var(--line); }
.dialog-heading h2 { font-size: 25px; line-height: 1.25; }
.dialog-heading .eyebrow { font-size: 10px; }
.account-profile { border-radius: 15px; padding: 16px; background: rgba(199, 169, 239, .05); border-color: var(--line); }
.account-profile strong { font-size: 14px; }
.account-profile div > span { font-size: 12px; color: var(--muted); }
.account-profile > .small-tag { font-size: 8px; }
.settings-context { color: var(--muted); font-size: 12px; line-height: 1.75; }
.field label { font-size: 13px; color: var(--text); }
.field label > span { font-size: 11px; color: var(--muted); }
.field input, .field select { min-height: 48px; font: 14px var(--font); border-radius: 13px; border-color: var(--line); background: rgba(11, 10, 13, .42); color: var(--text); }
.field p, .form-notice { font-size: 12px; line-height: 1.7; color: var(--muted); }
.form-notice { border-radius: 12px; }
.field input:focus, .field select:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(199, 169, 239, .08); }
.account-layout { grid-template-columns: 1fr 1fr; max-width: 1560px; margin: 0 auto; }
.account-story { background: radial-gradient(ellipse at 0 45%, rgba(141, 121, 166, .11), transparent 65%); border-color: var(--line); padding: 48px 64px 32px; }
.account-story-content { max-width: 500px; padding: 56px 0; }
.account-story-content .eyebrow { font-size: 10px; color: var(--muted); letter-spacing: 1.6px; }
.account-story-content h1 { font-size: clamp(46px, 5vw, 72px); line-height: 1.1; letter-spacing: -3px; font-weight: 500; }
.account-story-content h1 span { color: var(--mint); }
.account-story-content > p { max-width: 340px; font-size: 16px; line-height: 1.8; color: var(--muted); margin-top: 25px; }
.account-features { margin-top: 42px; gap: 24px; }
.account-features > div { gap: 15px; align-items: center; }
.account-features > div > span { width: 42px; height: 42px; border-radius: 13px; font: 21px var(--font); color: var(--mint); background: rgba(199, 169, 239, .045); border-color: var(--line); }
.account-features strong { font-size: 14px; font-weight: 550; color: var(--text); }
.account-features p { font-size: 13px; color: var(--muted); }
.account-story-footer { font-size: 10px; color: var(--muted); }
.account-entry { padding: 48px 40px 32px; gap: 32px; }
.account-entry-top { color: var(--muted); font-size: 10px; }
.account-form-wrap { width: min(100%, 440px); padding: 32px; border: 1px solid var(--line); border-radius: var(--ui-radius, 22px); background: var(--panel); box-shadow: var(--ui-shadow, 0 20px 60px #0002); backdrop-filter: blur(20px); }
.account-form-wrap > .eyebrow { color: var(--muted); font-size: 10px; }
.account-form-wrap > h2 { font-size: 33px; line-height: 1.2; font-weight: 550; letter-spacing: -1.3px; }
.account-intro { font-size: 14px; color: var(--muted); line-height: 1.7; margin-top: 12px; }
.auth-tabs { border-radius: 14px; border-color: var(--line); padding: 4px; margin: 26px 0; background: rgba(12, 11, 14, .4); }
.auth-tabs button { min-height: 44px; font-size: 13px; border-radius: 10px; color: var(--muted); }
.auth-tabs button.active { background: var(--panel-raised); color: var(--mint); border-color: var(--line); }
.account-form-wrap .field { margin-bottom: 20px; }
.account-form-wrap .field input { height: 50px; font-size: 15px; }
.auth-submit.button { min-height: 50px; font-size: 14px; border-radius: 13px; padding: 12px 17px; }
.auth-footnote { margin-top: 24px; font-size: 11px; color: var(--muted); line-height: 1.75; }
.account-entry-footer { font-size: 11px; color: var(--muted); }
summary:focus-visible, select:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }

@media (max-width: 1240px) {
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .inspector { position: static; }
  .account-story { padding-left: 36px; padding-right: 36px; }
  .account-entry { padding-left: 28px; padding-right: 28px; }
  .account-form-wrap { padding: 28px; }
  .research-archive { gap: 8px; }
  .research-counts { gap: 20px; }
}
@media (max-width: 899px) {
  .market-page .sidebar { transform: translateX(-100%); width: 232px; padding: 28px 18px var(--ui-nav-clearance); transition: transform .2s ease; z-index: 50; }
  .market-page .sidebar:not(.open) { visibility: hidden; pointer-events: none; }
  .market-page .sidebar.open { transform: translateX(0); visibility: visible; pointer-events: auto; }
  .market-page .sidebar-backdrop { z-index: 49; }
  .market-page .app-shell { margin-left: 0; }
  .market-page .menu-toggle { display: flex !important; }
  .market-page .breadcrumb, .market-page .breadcrumb-arrow, .market-page .breadcrumb-current { display: none; }
  .market-page .topbar-right { flex: 1; min-width: 0; }
  .market-page .search-box { flex: 1; width: auto; }
  .metric-card { padding: 18px; }
  .metric-foot { font-size: 10px; white-space: normal; }
}
@media (max-width: 760px) {
  .market-page .topbar { min-height: 76px; padding: 12px 18px; }
  .topbar-right { gap: 12px; min-width: 0; }
  .topbar-left { gap: 0; }
  .search-box { max-width: none; min-width: 0; }
  .search-box input { font-size: 14px; }
  .search-box kbd { display: none; }
  .feed-indicator { font-size: 11px; }
  .main-content { padding: 28px 18px; }
  .page-heading { align-items: flex-start; flex-wrap: wrap; gap: 20px; }
  .page-heading h1 { font-size: 36px; }
  .page-heading p { font-size: 13px; }
  .page-heading .eyebrow { font-size: 9px; }
  .heading-actions { padding: 0; }
  .button { min-height: 44px; font-size: 12px; padding: 10px 14px; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
  .metric-top { font-size: 12px; }
  .metric-value { font-size: 32px; margin-top: 10px; }
  .research-heading { align-items: flex-start; gap: 14px; }
  .research-status { margin-left: 52px; }
  .research-title h2 { font-size: 20px; }
  .research-tag { font-size: 8px; margin-left: 6px; }
  .research-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .research-counts strong { font-size: 23px; }
  .research-counts span { font-size: 11px; }
  .research-strategy { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .research-threshold { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
  .research-threshold label { margin: 0; font-size: 12px; }
  .research-method-details { margin-bottom: 14px; }
  .research-history summary { font-size: 12px; }
  .board-toolbar { gap: 10px; }
  .mode-tabs { min-width: 0; overflow-x: auto; flex: 1; scrollbar-width: none; }
  .mode-tabs::-webkit-scrollbar { display: none; }
  .mode-tab { font-size: 11px; padding: 8px 10px; flex: 1 0 auto; min-height: 44px; }
  .pause-button { width: 44px; height: 44px; }
  .board-column-labels { padding: 14px 2px 12px; font-size: 9px; }
  .board-column-labels > span:last-child { padding-right: 0; }
  .event-row { grid-template-columns: minmax(0, 1fr) 44px; grid-template-areas: "event star" "odds odds"; gap: 13px; padding: 17px; }
  .event-info { grid-area: event; }
  .event-star { grid-area: star; align-self: start; width: 44px; height: 44px; }
  .event-odds { grid-area: odds; gap: 8px; }
  .event-teams { font-size: 14px; gap: 5px; }
  .event-meta, .event-meta .event-live, .quote-age { font-size: 11px; }
  .event-meta { margin-bottom: 7px; }
  .team-mark { width: 20px; height: 20px; font-size: 9px; }
  .odds-button { min-height: 54px; padding: 7px; }
  .odds-number { font-size: 17px; }
  .odds-label { font-size: 11px; }
  .odds-extra { font-size: 11px; padding-top: 3px; }
  .competition-header { padding: 12px 16px; font-size: 12px; }
  .competition-count, .competition-country { font-size: 10px; }
  .board-footer, .text-button { font-size: 12px; }
  .board-caption { font-size: 11px; line-height: 1.7; }
  .page-footer { font-size: 10px; gap: 14px; align-items: flex-start; }
  .account-layout { grid-template-columns: minmax(0, 1fr); }
  .account-story { min-height: auto; padding: 27px 24px 0; border-right: 0; background: transparent; }
  .account-story .brand { font-size: 28px; }
  .account-story-content { margin: 0; padding: 30px 0 0; }
  .account-story-content .eyebrow { font-size: 9px; margin-bottom: 12px; }
  .account-story-content h1 { font-size: 32px; letter-spacing: -1.25px; }
  .account-story-content h1 br { display: none; }
  .account-story-content h1 span { margin-left: .14em; }
  .account-story-content > p { font-size: 14px; margin-top: 12px; max-width: 330px; line-height: 1.7; }
  .account-entry { padding: 26px 20px 24px; gap: 24px; }
  .account-form-wrap { width: min(100%, 440px); margin: 0; padding: 26px; }
  .account-form-wrap > h2 { font-size: 29px; }
  .account-form-wrap .field input, .field input, .field select, .research-input-wrap input { font-size: 16px; }
  .auth-footnote { font-size: 12px; }
  .settings-dialog { padding: 24px; max-height: calc(100dvh - 32px); }
  .settings-field-grid { gap: 14px; }
}
@media (max-width: 520px) {
  .market-page .topbar { padding-left: 14px; padding-right: 14px; gap: 10px; }
  .topbar-right { gap: 10px; }
  .feed-indicator { display: none; }
  .main-content { padding-left: 14px; padding-right: 14px; }
  .heading-actions { width: 100%; }
  .heading-actions .button { flex: 1; }
  .metric-card { padding: 17px; }
  .metric-top .icon { width: 16px; height: 16px; }
  .metric-foot { font-size: 10px; }
  .research-heading, .research-archive, .research-strategy, .research-candidate-heading { padding-left: 18px; padding-right: 18px; }
  .research-status { font-size: 11px; }
  .research-title p { font-size: 12px; }
  .research-tag { display: block; width: fit-content; margin: 6px 0 0; }
  .research-counts { gap: 16px; }
  .research-method-details { margin-left: 18px; margin-right: 18px; }
  .research-empty, .research-table-wrap { margin-left: 18px; margin-right: 18px; }
  .research-empty { align-items: flex-start; padding: 15px; }
  .research-empty > .icon { width: 20px; height: 20px; }
  .research-history summary { padding-left: 18px; padding-right: 18px; }
  .research-history-note, .research-history-empty, .research-performance { margin-left: 18px; margin-right: 18px; }
  .research-candidate-heading > span { font-size: 10px; }
  .mode-tab { font-size: 11px; padding: 8px 10px; }
  .board-live-label { font-size: 8px; }
  .competition-country, .competition-separator { display: none; }
  .detail-market-prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-market-prices .odds-label { font-size: 11px; }
  .page-footer { flex-wrap: wrap; }
  .settings-field-grid { grid-template-columns: minmax(0, 1fr); }
  .settings-dialog { padding: 22px; }
  .dialog-heading h2 { font-size: 23px; }
  .account-profile > .small-tag { display: none; }
}

/* Details retain the same readable scale as the market list. */
.market-page button, .account-page button, .brand { min-height: 44px; }
.detail-tab, .settings-actions .button, .calculator-input-row .button { font-size: 12px; }
.detail-meta, .detail-live, .detail-status, .detail-tournament, .detail-time { font-size: 11px; color: var(--muted); }
.detail-team strong { font-size: 13px; }
.detail-section-heading h3, .history-heading h3 { font-size: 13px; }
.detail-tab span { font-size: 10px; border-radius: 6px; }
.probability-row, .probability-price, .probability-value { font-size: 12px; }
.probability-value { width: 54px; }
.analysis-note { border-radius: 12px; border-color: var(--line); background: rgba(199, 169, 239, .035); font-size: 12px; color: var(--muted); }
.history-axis, .history-detail, .analysis-summary span, .inspector-footer, .market-header-note { font-size: 11px; color: var(--muted); }
.analysis-summary strong { font-size: 21px; }
@media (max-width: 760px) {
  .market-page input, .market-page select, .account-page input, .account-page select { font-size: 16px; }
}

/* Market colors and compact dashboard surfaces. */
body.market-page, body.account-page {
  background: radial-gradient(ellipse at 88% 0%, #8652ee1c, transparent 44%),
    radial-gradient(ellipse at 0% 70%, #ffac7008, transparent 40%), var(--ui-bg);
}
.brand-mark { background: var(--ui-accent); box-shadow: 5px -3px 0 -1px #ffac7066; transform: rotate(-9deg); }
.brand-period, .footer-mark { color: var(--ui-hot); }
.page-heading {
  position: relative;
  padding: 0; margin-bottom: 22px;
  border: 0; border-radius: 0;
  background: transparent;
}
.page-heading > * { position: relative; z-index: 1; }
.page-heading .eyebrow { color: var(--ui-hot); font-size: 10px; letter-spacing: 1.8px; }
.page-heading h1 { font-size: 30px; font-weight: 650; letter-spacing: -1px; }
.page-heading h1 > span { color: var(--ui-hot); }
.page-heading p { color: #c5bed2; margin-top: 9px; }
.button.primary { color: var(--ui-accent-ink); background: var(--ui-accent); border-color: #c6b0ff; box-shadow: 0 5px 22px #a271ff20; font-weight: 650; }
.button.primary:hover { background: #c7b1ff; border-color: #d7c8ff; box-shadow: 0 6px 27px #a271ff33; }
.button.secondary { background: #ffffff08; }
.nav-item.active { color: #e8dcff; background: linear-gradient(100deg, #b69aff28, #b69aff10); }
.nav-item.active::before { background: var(--ui-hot); }
.live-dot, .event-live .live-dot, .detail-live .live-dot { background: var(--ui-hot); }
.event-meta .event-live, .detail-live { color: var(--ui-hot); }
.event-meta .event-live { padding: 3px 6px; border: 1px solid #ffac7033; border-radius: 5px; background: #ffac700c; font-weight: 700; font-size: 9px; letter-spacing: .4px; }
.metrics-grid { gap: 12px; margin-bottom: 24px; }
.metric-card { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 12px; background: #1b1922d9; }
.metric-top { grid-column: 1; font-size: 11px; }
.metric-top > .icon { display: none; }
.metric-value { margin: 0; font-size: 27px; font-weight: 650; letter-spacing: -1px; }
.metric-foot { margin: 0; font-size: 10px; }
.metric-card.live-metric { background: #ffac7009; border-color: #ffac7036; box-shadow: none; }
.live-metric .metric-top { color: var(--muted); }
.metric-card.live-metric .metric-value { color: var(--ui-hot); }
.live-metric .live-dot { background: var(--ui-hot); }
.competition-header { background: #282430c9; gap: 10px; }
.competition-label { min-width: 0; gap: 9px; }
.competition-name { min-width: 0; color: #f0eaf9; font-weight: 650; }
.competition-label .country-identity { flex-shrink: 0; }
.competition-label .sport-identity .sport-label { display: none; }
.competition-label .country-name { font-size: 10px; }
.competition-identity { flex-wrap: nowrap; flex-shrink: 0; gap: 7px; }
.sport-button > .sport-identity { flex: 1; min-width: 0; gap: 10px; }
.sport-button .sport-label { font-size: 12px; font-weight: 500; }
.sport-button .sport-icon { width: 17px; height: 17px; flex-basis: 17px; }
.competition-count { flex-shrink: 0; }
.competition-header .country-flag { width: 25px; height: 18px; }
.event-row { background: #17161ed4; border-color: #d8d2f212; }
.event-row.selected { background: linear-gradient(100deg, #b69aff18, #b69aff08); box-shadow: inset 3px 0 var(--ui-accent); }
.event-row:hover { background-color: #b69aff0b; }
.team-mark, .detail-shield { background: #b69aff1a; border: 1px solid #b69aff25; color: #d9c9ff; border-radius: 7px; }
.team-mark.away, .detail-team.away .detail-shield { color: #ffd3b4; background: #ffac7014; border-color: #ffac7026; }
.odds-button { background: #ffffff06; border-color: #d8d2f21a; }
.odds-button:hover, .odds-button.selected { background: #b69aff20; border-color: #b69aff88; }
.odds-number { font-weight: 650; }
.odds-button.selected .odds-number { color: #e0d1ff; }
.event-star.saved { color: var(--ui-hot); background: #ffac7012; }
.sport-chip { color: var(--ui-hot); background: #ffac700b; border-color: #ffac7028; }
.event-upcoming { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; color: var(--ui-upcoming); border: 1px solid #77b5ff33; border-radius: 5px; background: #77b5ff0c; font-size: 9px; font-weight: 650; }
.event-upcoming .icon { width: 11px; height: 11px; }
.detail-status { color: var(--ui-upcoming); }
.metric-card:nth-child(1) { border-top: 2px solid #b69aff99; }
.metric-card:nth-child(3) { border-top: 2px solid #77b5ff99; }
.metric-card:nth-child(3) .metric-value { color: var(--ui-upcoming); }
.metric-card:nth-child(4) { border-top: 2px solid #67dcd599; }
.metric-card:nth-child(4) .metric-value { color: var(--ui-positive); }
.research-edge, .research-number.research-edge { color: var(--ui-positive); }
.research-loss, .research-number.research-loss { color: var(--ui-negative); }
.quote-age.stale, .feed-indicator.stale { color: var(--ui-warning); }
.odds-number { color: var(--ui-upcoming); }
.odds-button.selected .odds-number { color: var(--ui-text); }
.probability-value { color: var(--ui-strategy); }
.detail-tournament { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; align-items: center; }
.detail-tournament .country-name { color: var(--ui-muted); }
.research-symbol { color: var(--ui-accent); background: #b69aff12; }
.research-live { color: var(--ui-hot); }
.account-story-content h1 { font-weight: 700; }
.account-story-content h1 span { color: var(--ui-accent); }
.account-features > div:nth-child(2) > span { color: var(--ui-hot); background: #ffac7010; }
.account-form-wrap { border-top: 2px solid #b69aff88; background: linear-gradient(145deg, #2b223333, #19171fdd 45%); }
.account-story { background: radial-gradient(ellipse at 0% 45%, #9763ff19, transparent 65%); }

@media (max-width: 1240px) {
  .metric-card { padding: 16px; gap: 7px; }
  .metric-value { font-size: 29px; }
  .metric-foot { font-size: 9px; }
}
@media (max-width: 760px) {
  .page-heading { padding: 0; gap: 16px; }
  .page-heading h1 { font-size: 28px; }
  .metric-card { padding: 12px 14px; }
  .metric-value { font-size: 24px; }
  .metric-foot { display: none; }
  .competition-label .country-name { display: none; }
  .competition-label .country-globe { width: 22px; }
  .competition-count { font-size: 10px; }
  .competition-header { padding: 12px; }
  .event-row { padding: 16px; }
  .event-meta .event-live { font-size: 9px; }
  .account-story { background: transparent; }
}

/* Supporting information stays behind a deliberate disclosure. */
.source-card { padding: 10px; background: transparent; border-color: transparent; }
.metric-top { display: flex; align-items: center; gap: 7px; }
.metric-card:nth-child(1), .metric-card:nth-child(3), .metric-card:nth-child(4) { border-top: 1px solid var(--line); }
.metric-card:nth-child(3) .metric-value, .metric-card:nth-child(4) .metric-value { color: var(--text); }
.research-lab { border-radius: 14px; box-shadow: none; margin-top: 22px; margin-bottom: 18px; }
.research-lab > summary { list-style: none; min-height: 64px; padding: 16px 20px; }
.research-lab > summary::-webkit-details-marker { display: none; }
.research-lab > summary:hover { background: #b69aff06; }
.research-title { margin-right: auto; }
.research-title h2 { font-size: 15px; }
.research-chevron { width: 16px; height: 16px; flex-shrink: 0; color: var(--muted); transition: transform .18s; }
.research-lab[open] > summary .research-chevron { transform: rotate(90deg); }
.inspector { border-radius: 14px; box-shadow: none; }
.inspector-title { padding: 18px 20px; }
.inspector-title h2 { font-size: 15px; }
.inspector-empty { padding: 32px 20px; }
.inspector-empty h3 { font-size: 14px; color: var(--muted); font-weight: 400; }
.context-help { margin-top: 14px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.context-help > summary { min-height: 36px; padding: 8px 0; cursor: pointer; color: var(--muted); }
.context-help > summary:hover { color: var(--text); }
.context-help p { margin: 7px 0 0; }
.context-help .analysis-note { margin-top: 5px; }
.account-profile { margin-bottom: 22px; }
.page-footer { justify-content: flex-end; padding-top: 8px; }
@media (max-width: 760px) {
  .research-lab > summary { gap: 10px; flex-wrap: wrap; }
  .research-title { flex: 1; }
  .research-tag { display: inline-block; margin: 0 0 0 6px; font-size: 8px; }
  .research-status { order: 3; flex-basis: 100%; font-size: 11px; }
}
@media (max-width: 520px) {
  .page-heading { flex-direction: row; align-items: center; flex-wrap: nowrap; }
  .heading-actions { width: auto; gap: 6px; }
  .heading-actions .button { padding: 10px; font-size: 11px; gap: 6px; }
  .main-content { padding-top: 22px; }
  .metrics-grid { gap: 8px; margin-bottom: 20px; }
}

/* Prevent retired account copy flashing before cached markup is upgraded. */
.account-page :is(.account-story, .account-entry-top, .account-entry-footer,
  .account-form-wrap > .eyebrow, .account-intro, .auth-footnote) { display: none; }

/* Feed changes stay in a reserved slot; details float above the page. */
.market-page .page-heading { flex-wrap: nowrap; align-items: center; }
.market-page .page-heading > div:first-child { width: auto; min-width: 0; }
.market-page .topbar { position: relative; z-index: 10; }
.market-status { position: relative; flex: 0 0 132px; width: 132px; height: 44px; }
.market-status > .feed-indicator { display: flex; justify-content: flex-end; width: 100%; height: 44px; gap: 8px; font-size: 12px; list-style: none; cursor: pointer; border-radius: 10px; }
.feed-indicator.connected { color: #70dfa0; }
.feed-indicator.connected .status-dot { background: currentColor; box-shadow: 0 0 0 4px #70dfa00b; }
.market-status > summary::-webkit-details-marker { display: none; }
.market-status #feed-text { flex: 0 0 10ch; overflow: hidden; text-overflow: ellipsis; }
.market-status .status-dot { flex: 0 0 6px; height: 6px; }
.market-status .icon { width: 14px; height: 14px; flex: 0 0 14px; opacity: .6; }
.market-status[open] > summary, .market-status > summary:hover { background: #b69aff08; }
.feed-status-detail { position: absolute; top: calc(100% + 8px); left: 0; width: min(320px, calc(100vw - 36px)); padding: 16px; border: 1px solid var(--ui-line); border-radius: 14px; background: #1e1c27; box-shadow: var(--ui-shadow); }
.market-status .feed-status-detail p { margin: 0; color: var(--ui-muted); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.feed-status-detail button { min-height: 44px; margin-top: 8px; padding: 0; color: var(--ui-accent); background: transparent; font-size: 12px; }
@media (max-width: 520px) {
  .market-page .topbar { padding-inline: 12px; gap: 8px; }
  .market-page .topbar-right { gap: 8px; }
  .market-page .menu-toggle { width: 40px; flex: 0 0 40px; }
  .market-page .local-avatar { flex: 0 0 44px; }
  .market-status { position: static; flex-basis: 92px; width: 92px; }
  .market-status > .feed-indicator { justify-content: center; gap: 6px; font-size: 11px; }
  .market-status .icon { display: none; }
  .market-status .feed-status-detail { left: 12px; right: 12px; width: auto; }
}

/* A focused match panel: one compact view, with a single overflow fallback. */
.market-page .inspector {
  --inspector-width: 344px;
  --inspector-side: 34px;
  --inspector-shell: 216px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 16px;
  max-height: calc(100dvh - 16px - var(--ui-nav-clearance));
  background: rgba(28, 26, 36, .97);
  border-color: var(--ui-line);
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
}
.market-page .inspector.is-centering { visibility: hidden; pointer-events: none; }
.inspector-title { flex: 0 0 auto; min-height: 54px; padding: 5px 10px 5px 16px; gap: 8px; background: #25212d; }
.inspector-title h2 { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; }
#inspector-close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; background: transparent; font-size: 24px; line-height: 1; }
#inspector-close:hover { background: #ffffff0a; }
#inspector-status { display: inline-flex; align-items: center; justify-content: center; gap: 5px; flex-shrink: 0; min-height: 26px; padding: 4px 8px; border-radius: 7px; font-size: 11px; line-height: 1.3; color: var(--ui-paused); background: #ffffff07; white-space: nowrap; }
#inspector-status::before { content: ""; width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: currentColor; }
#inspector-status:empty { display: none; }
#inspector-status[data-state="live"] { color: var(--ui-live); background: #ff9d6310; }
#inspector-status[data-state="syncing"] { color: var(--ui-upcoming); background: #77b5ff10; }
#inspector-status[data-state="cached"] { color: var(--ui-warning); background: #f4cb6e10; }
#inspector-status[data-state="paused"] { color: var(--ui-paused); }
#inspector-content { min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #61536f transparent; }
.inspector .event-detail-heading { padding: 12px 16px 10px; }
.inspector .detail-meta { margin-bottom: 8px; gap: 8px; }
.inspector .detail-match { display: grid; gap: 6px; max-width: none; margin: 0; }
.inspector .detail-team { flex-direction: row; justify-content: flex-start; text-align: left; gap: 9px; }
.inspector .detail-shield { flex: 0 0 25px; width: 25px; height: 25px; padding: 0; font-size: 10px; clip-path: none; border-radius: 7px; }
.inspector .detail-team strong { font-size: 14px; line-height: 1.3; }
.inspector .detail-versus { display: none; }
.inspector .detail-single-title { font-size: 17px; font-weight: 600; line-height: 1.35; }
.inspector .detail-tournament { justify-content: flex-start; text-align: left; gap: 6px; margin-top: 8px; font-size: 11px; line-height: 1.4; }
.inspector .detail-time { justify-content: flex-start; margin-top: 4px; font-size: 11px; line-height: 1.4; }
.inspector .detail-tabs { justify-content: stretch; padding: 0 12px; gap: 10px; border-color: var(--ui-line); background: #ffffff02; }
.inspector .detail-tab { flex: 1; justify-content: center; min-height: 44px; padding: 8px 2px; font-size: 12px; }
.inspector .detail-tab span { font-size: 10px; }
.inspector .detail-body { padding: 12px 16px 14px; }
.inspector .analysis-layout { display: block; }
.inspector .detail-section-heading, .inspector .history-heading { margin-bottom: 3px; }
.inspector .detail-section-heading h3, .inspector .history-heading h3 { font-size: 12px; font-weight: 600; line-height: 1.4; }
.inspector .section-subtitle { font-size: 11px; line-height: 1.45; }
.inspector .probability-bar { height: 5px; margin: 9px 0; }
.inspector .probability-rows { gap: 4px; }
.inspector .probability-row { min-height: 22px; font-size: 12px; }
.inspector .probability-price { color: var(--ui-upcoming); }
.inspector .probability-price, .inspector .probability-value { font-size: 12px; }
.inspector .detail-divider { display: block; margin: 12px 0; background: var(--ui-line); }
.inspector .context-help { margin-top: 6px; font-size: 11px; line-height: 1.55; }
.inspector .context-help > summary { min-height: 32px; padding: 7px 0; }
.inspector .context-help p { margin: 4px 0 8px; }
.inspector .history-badge { font-size: 9px; letter-spacing: .3px; color: var(--ui-muted); background: #ffffff06; }
.inspector .history-chart { height: 68px; margin-top: 5px; }
.inspector .history-empty { height: 54px; margin-top: 7px; flex-direction: row; gap: 9px; border-radius: 9px; border-color: var(--ui-line); }
.inspector .history-empty .icon { width: 17px; height: 17px; margin: 0; }
.inspector .history-empty strong { font-size: 11px; color: var(--ui-muted); }
.inspector .history-axis, .inspector .history-detail { font-size: 10px; line-height: 1.4; }
.inspector .history-detail { margin-top: 5px; }
.inspector .history-detail span:last-child { font-size: 10px; }
.inspector .analysis-summary { gap: 8px; margin-top: 10px; }
.inspector .analysis-summary > div { padding: 8px 10px; gap: 2px; border-color: var(--ui-line); border-radius: 10px; }
.inspector .analysis-summary span { font-size: 10px; }
.inspector .analysis-summary strong { font-size: 18px; line-height: 1.25; }
.inspector .analysis-summary > div:first-child strong { color: var(--ui-upcoming); }
.inspector .analysis-summary > div:last-child strong { color: var(--ui-strategy); }
.inspector .inspector-footer { padding: 8px 16px; gap: 8px; font-size: 10px; line-height: 1.4; border-color: var(--ui-line); }
.inspector .detail-loading { padding: 7px 0; font-size: 11px; }
.inspector .detail-warning { padding: 8px 10px; margin-bottom: 9px; font-size: 11px; line-height: 1.5; border-radius: 8px; }
.inspector .market-filters { gap: 4px; margin-bottom: 10px; }
.inspector .market-filter { flex: 1 1 auto; min-height: 44px; padding: 7px 8px; font-size: 11px; }
.inspector .detail-markets { max-height: none; overflow: visible; padding: 0; }
.inspector .detail-market + .detail-market { margin-top: 12px; padding-top: 12px; border-color: var(--ui-line); }
.inspector .detail-market h3 { margin-bottom: 7px; font-size: 12px; line-height: 1.4; }
.inspector .detail-market-prices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.inspector .detail-market-prices.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.inspector .detail-market-prices .odds-button { min-height: 48px; height: auto; padding: 6px; }
.inspector .detail-market-prices .odds-label { font-size: 11px; }
.detail-pagination { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--ui-line); }
.detail-pagination > span { color: var(--ui-muted); font-size: 11px; text-align: center; }
.detail-pagination button { min-height: 44px; padding: 8px 12px; border: 1px solid var(--ui-line); border-radius: 10px; background: #ffffff06; color: var(--ui-text); font-size: 12px; }
.detail-pagination button:disabled { color: var(--ui-paused); opacity: .55; }
.inspector .stake-calculator > .detail-divider:first-child { display: none; }
.inspector .stake-calculator .field { margin: 12px 0; }
.inspector .stake-calculator .field label { font-size: 12px; }
.inspector .calculator-input-row input { min-width: 0; min-height: 44px; height: 44px; font-size: 16px; }
.inspector .calculator-input-row .button { min-height: 44px; height: 44px; padding: 8px 12px; font-size: 12px; }
.inspector .calculator-settings { font-size: 11px; }
.inspector .stake-result { padding: 12px; margin-top: 12px; border-color: var(--ui-line); border-radius: 12px; }
.inspector .stake-result > span, .inspector .stake-result p, .inspector .stake-result-grid span { font-size: 11px; }
.inspector .stake-result > strong { font-size: 26px; }
.inspector .stake-result-grid { padding-top: 9px; margin-top: 9px; }
.inspector .stake-result-grid b { font-size: 13px; }
.inspector-backdrop { display: none; }

@media (min-width: 1241px) {
  .market-page .dashboard-grid { grid-template-columns: minmax(0, 1fr) 344px; }
  .market-page .inspector.is-open { position: fixed; z-index: 20; width: var(--inspector-width); right: max(var(--inspector-side), calc((100% - var(--inspector-shell) - 1720px) / 2 + var(--inspector-side))); box-shadow: 0 18px 60px #0005; }
}
@media (min-width: 1440px) {
  .market-page .dashboard-grid { grid-template-columns: minmax(0, 1fr) 360px; }
  .market-page .inspector { --inspector-width: 360px; }
}
@media (min-width: 1580px) {
  .market-page .inspector { --inspector-side: 44px; --inspector-shell: 232px; }
}
@media (max-width: 1240px) {
  body.market-page.inspector-open { overflow: hidden; }
  .market-page .inspector { display: none; position: fixed; z-index: 80; top: auto; right: 12px; bottom: 12px; left: 12px; width: min(520px, calc(100% - 24px)); max-height: calc(100dvh - 24px); margin-inline: auto; border-radius: 22px; box-shadow: 0 24px 80px #0009; }
  .market-page .inspector.is-open { display: flex; animation: inspector-enter .2s var(--ui-ease) both; }
  .inspector-backdrop { display: block; position: fixed; inset: 0; z-index: 70; background: #08070d99; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
  .inspector .inspector-footer { padding-bottom: 12px; }
}
@media (max-width: 520px) {
  .market-page .inspector { inset: auto 0 0; width: 100%; max-height: calc(100dvh - 12px); margin: 0; border-radius: 22px 22px 0 0; border-bottom: 0; }
  #inspector-content { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .inspector-title { min-height: 58px; padding-inline: 16px 10px; }
  .inspector .detail-body, .inspector .event-detail-heading { padding-inline: 18px; }
}
@keyframes inspector-enter {
  from { opacity: 0; translate: 0 18px; }
  to { opacity: 1; translate: 0 0; }
}

.competition-header[role="button"] { cursor: pointer; }
.competition-header[role="button"]:hover { background: #b69aff12; }
.competition-header[role="button"]:focus-visible { outline: 2px solid var(--ui-strategy); outline-offset: -3px; }
.inspector .detail-context { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 6px; }
.inspector .detail-context .detail-tournament { min-width: 0; display: block; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inspector .detail-context .detail-time { flex-shrink: 0; margin: 0; }
.inspector .section-subtitle { margin-bottom: 3px; }
.inspector .detail-body { padding-top: 9px; padding-bottom: 11px; }
.inspector .probability-row { width: 100%; min-height: 24px; padding: 2px 3px; border: 1px solid transparent; border-radius: 5px; background: transparent; text-align: left; color: var(--ui-text); cursor: pointer; }
.inspector .probability-row:hover, .inspector .probability-row.selected { background: #b69aff10; border-color: #b69aff25; }
.inspector .probability-rows { gap: 2px; }
.inspector .probability-note { font-size: 10px; color: var(--ui-muted); line-height: 1.5; margin-top: 4px; }
.inspector .detail-divider { margin: 8px 0; }
.inspector .history-chart { height: 54px; }
.inspector .inspector-footer { padding-block: 6px; }
.detail-market-label { display: block; color: var(--ui-muted); font-size: 11px; margin-bottom: 6px; }
#detail-market-select { width: 100%; min-height: 44px; margin-bottom: 12px; padding: 8px 10px; border: 1px solid var(--ui-line); border-radius: 10px; background: var(--ui-bg); color: var(--ui-text); font: inherit; font-size: 12px; }
.inspector #inspector-status[data-state="live"] { color: #70dfa0; background: #70dfa012; }
.inspector .inspector-title { min-height: 50px; padding-block: 3px; }
.inspector .event-detail-heading { padding-block: 10px 8px; }
.inspector .probability-bar { margin-block: 6px; }
.inspector .detail-divider { margin-block: 6px; }
.inspector .history-chart { height: 48px; }
@media (prefers-reduced-motion: reduce) { .market-page .inspector.is-open { animation: none; } }

/* A quiet header: connection, search and account only. */
.market-page .main-content { padding-top: 24px; }
.market-page .topbar { display: flex; height: 72px; min-height: 72px; }
.market-page .topbar-left { display: none; }
.market-page .topbar-right { margin-left: auto; gap: 22px; min-width: 0; }
@media (max-width: 899px) {
  .market-page .topbar { padding: 10px 16px; height: 64px; min-height: 64px; gap: 12px; }
  .market-page .topbar-left { display: flex; flex: 0 0 40px; }
  .market-page .topbar-right { flex: 1; gap: 10px; }
  .market-page .search-box { width: auto; flex: 1; }
  .market-page .main-content { padding-top: 20px; }
}

/* Counts belong to their filter, with no separate heading or update toolbar. */
.market-page .mode-tab { flex-direction: column; gap: 4px; min-width: 78px; min-height: 56px; padding: 7px 14px; }
.mode-label { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 11px; line-height: 16px; }
.mode-count { color: var(--ui-muted); font-size: 10px; line-height: 13px; font-variant-numeric: tabular-nums; }
.mode-tab.active .mode-count { color: var(--ui-text); }
.mode-tab[data-mode="live"] .mode-count { color: var(--ui-live); }
.mode-tab[data-mode="prematch"] .mode-label > .icon { width: 12px; height: 12px; color: var(--ui-upcoming); }
.mode-tab[data-mode="prematch"] .mode-count { color: var(--ui-upcoming); }
.mode-tab[data-mode="prematch"].active { background: #77b5ff12; border-color: #77b5ff40; }
.start-countdown { display: inline-block; min-width: 12ch; white-space: nowrap; font-variant-numeric: tabular-nums; }
.event-meta:has(.start-countdown) { flex-wrap: wrap; }
.detail-meta > .event-upcoming { flex-shrink: 0; }
.market-page .board-toolbar { padding-bottom: 14px; }

/* Research has the same persistent navigation and a focused standalone page. */
.research-shell { width: min(1080px, 100%); margin: 0 auto; padding: 0 28px var(--ui-nav-clearance); }
.research-page-header { display: flex; align-items: center; justify-content: space-between; min-height: 82px; margin-bottom: 28px; border-bottom: 1px solid var(--ui-line); }
.research-page .wordmark { color: var(--ui-text); font-size: 29px; font-weight: 760; letter-spacing: -1.8px; text-decoration: none; }
.research-page .wordmark > span { color: var(--ui-hot); }
.research-page .header-link { display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--ui-muted); text-decoration: none; font-size: 12px; }
.research-page .header-link:hover { color: var(--ui-text); }
.research-page .header-link > span { color: var(--ui-accent); }
.research-page .research-lab { margin: 0; }
.research-page .research-heading { min-height: 70px; padding: 18px 22px; }
.research-page .research-title h1 { margin: 0; font-size: 22px; letter-spacing: -.6px; }
.research-page .research-tag { vertical-align: middle; }
@media (max-width: 600px) {
  .market-page .mode-tabs { width: 100%; }
  .market-page .mode-tab { flex: 1; min-width: 0; padding-inline: 8px; }
  .research-shell { padding-inline: 16px; }
  .research-page-header { min-height: 72px; margin-bottom: 20px; }
  .research-page .wordmark { font-size: 26px; }
  .research-page .research-heading { padding: 16px 18px; gap: 10px; }
  .research-page .research-title h1 { font-size: 20px; }
}

/* Precise edges and quieter surfaces across Markets, Research and settings. */
body.market-page { background: radial-gradient(ellipse at 85% 0%, #69518c0a, transparent 50%), var(--ui-bg); }
.market-page .sidebar { padding-bottom: var(--ui-nav-clearance); }
.sport-button, .nav-item, .mode-tabs, .account-profile, .research-empty, .research-table-wrap { border-radius: 8px; }
.mode-tab, .market-page .mode-tab, .field input, .field select, .field textarea,
.button, .icon-button, .search-box, .odds-button, .odds-placeholder,
.event-star, .empty-icon, .research-input-wrap,
.market-filter, #detail-market-select { border-radius: 6px; }
.event-list, .settings-dialog, .market-page .inspector, .research-lab, .research-page .research-lab { border-radius: 10px; }
.small-tag, .research-tag, .count-pill, #inspector-status { border-radius: 4px; }
.settings-dialog { background: #19181f; box-shadow: 0 20px 70px #0006; }
.account-profile { background: #ffffff03; }
.market-page .inspector-title { background: #ffffff03; }
.market-page .inspector-empty { padding-block: 26px; }
.market-page .search-box { background: #ffffff03; }
.market-page .mode-tabs { background: #ffffff02; }

/* Bare status label: no chip or hover background, including on touch devices. */
.market-status { flex: 0 0 96px; width: 96px; height: 44px; }
.market-status > .feed-indicator,
.market-status > .feed-indicator:hover,
.market-status > .feed-indicator:active,
.market-status > .feed-indicator:focus { display: inline-flex; justify-content: flex-start; width: auto; height: 44px; gap: 8px; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; text-align: left; font-size: 11px; }
.market-status #feed-text { flex: initial; overflow: visible; }
.market-status .status-dot { position: relative; width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; }
.feed-indicator.connected .status-dot { box-shadow: none; }
.feed-indicator.connected .status-dot::after { content: ""; position: absolute; inset: -1px; border: 1px solid currentColor; border-radius: 50%; animation: feed-ping 3.8s ease-out infinite; }
.feed-status-detail { top: calc(100% + 2px); border-radius: 6px; padding: 12px 14px; background: #1b1a22; box-shadow: 0 10px 35px #0005; z-index: 20; }
.feed-status-detail::before { content: ""; position: absolute; top: -10px; height: 10px; width: 100%; left: 0; }
.market-status .feed-status-detail p { font-size: 11px; line-height: 1.65; }
@keyframes feed-ping { 0%, 15% { transform: scale(1); opacity: .55; } 75%, 100% { transform: scale(3.2); opacity: 0; } }
@media (max-width: 600px) {
  .market-page .topbar { padding-inline: 12px; gap: 8px; }
  .market-page .topbar-right { gap: 8px; }
  .market-status { flex-basis: 82px; width: 82px; }
  .market-status > .feed-indicator { font-size: 10px; gap: 6px; }
  .market-page .search-box { padding-inline: 10px; }
  .market-page .local-avatar { width: 44px; height: 44px; min-width: 44px; flex-basis: 44px; }
  .market-page .inspector.is-open { border-radius: 10px 10px 0 0; }
}
@media (prefers-reduced-motion: reduce) { .feed-indicator.connected .status-dot::after { animation: none; opacity: 0; } }
.event-odds .odds-pending { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; color: var(--ui-muted); font-size: 11px; }
.inspector .no-markets.ui-loading { min-height: 140px; padding: 24px 12px; }

/* Price movement is neutral: higher odds are not inherently better or worse. */
.quote-sparkline { display: block; width: 52px; height: 20px; color: var(--ui-upcoming); opacity: .8; overflow: visible; }
.probability-row:has(.quote-sparkline) { grid-template-columns: 6px minmax(0, 1fr) 44px 33px 39px; gap: 7px; }
.probability-row .quote-sparkline { width: 44px; height: 18px; }
.inspector .detail-market-prices .odds-button:has(.quote-sparkline) { display: grid; grid-template-columns: 1fr 52px; column-gap: 8px; text-align: left; padding: 8px; }
.inspector .detail-market-prices .odds-button:has(.quote-sparkline) .odds-label { grid-column: 1 / -1; }
.inspector .detail-market-prices .odds-button:has(.quote-sparkline) .odds-number { justify-self: start; }
.inspector .detail-market-prices .quote-sparkline { justify-self: end; }
.inspector .history-empty { border: 0; background: transparent; }
