:root {
  --paper: #fff;
  --canvas: #f4f6f7;
  --ink: #17211e;
  --muted: #737d79;
  --line: #e9eeeb;
  --red: #e12739;
  --red-dark: #bf172a;
  --red-soft: #fff1f3;
  --gold: #d8a033;
  --gold-soft: #fff8e8;
  --green: #1f855f;
  --green-soft: #eff9f4;
  --shadow: 0 10px 26px rgba(24, 39, 34, 0.08), 0 2px 6px rgba(24, 39, 34, 0.04);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--canvas); }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

button {
  border: 0;
  padding: 0;
  color: inherit;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible, input:focus-visible, a:focus-visible {
  outline: 3px solid rgba(225, 39, 57, 0.22);
  outline-offset: 2px;
}

.app-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  overflow-x: clip;
  background: var(--paper);
}

.screen { min-height: 100vh; padding-bottom: calc(20px + env(safe-area-inset-bottom)); background: #fff; }

.sticky-head {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid #dfe5e2;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  box-shadow: 0 5px 18px rgba(24, 39, 34, 0.07);
}

.sticky-head::after {
  content: "";
  height: 1px;
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(225, 39, 57, 0.34) 20%, rgba(225, 39, 57, 0.34) 80%, transparent);
  pointer-events: none;
}

.brand-bar {
  min-height: 62px;
  padding: 10px 16px 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-lockup { min-width: 0; display: flex; align-items: center; gap: 10px; }

.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255,255,255,.72);
  background: linear-gradient(145deg, #f34859 0%, #df2035 55%, #bd1428 100%);
  font: 800 24px/1 Georgia, "Songti SC", serif;
  box-shadow: 0 7px 15px rgba(225, 39, 57, 0.24), inset 0 1px 0 rgba(255,255,255,.36);
}

.brand-copy h1 { margin: 0; font-size: 19px; line-height: 1.2; }
.brand-copy p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }

.vip-tag {
  min-height: 27px;
  padding: 0 9px;
  border: 1px solid #ead5a4;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  color: #765111;
  background: linear-gradient(180deg, #fffdf6, var(--gold-soft));
  font-size: 11px;
  font-weight: 800;
}

.top-nav {
  width: calc(100% - 24px);
  min-height: 76px;
  margin: 0 12px 9px;
  padding: 7px 3px 6px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid #e1e6e3;
  border-radius: 15px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfb 100%);
  box-shadow: 0 8px 22px rgba(31, 48, 42, 0.08), inset 0 1px 0 #fff, inset 0 -1px 0 rgba(25, 46, 38, 0.03);
}

.top-nav button {
  min-width: 0;
  min-height: 61px;
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  color: #7a8580;
  font-size: 10.5px;
  white-space: nowrap;
}

.top-nav button.active { color: #29332f; font-weight: 800; }
.top-nav button.active::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: -1px;
  height: 3px;
  border-radius: 4px;
  background: var(--red);
}

.nav-icon {
  width: 31px;
  height: 31px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.68);
  box-shadow: 0 5px 10px rgba(33, 47, 42, .15), inset 0 1px 1px rgba(255,255,255,.38);
}

.nav-icon.red { background: linear-gradient(145deg, #fb5865, #df2036); }
.nav-icon.gold { background: linear-gradient(145deg, #f4c75b, #d99521); }
.nav-icon.teal { background: linear-gradient(145deg, #5fc5af, #27977d); }
.nav-icon.blue { background: linear-gradient(145deg, #7195ef, #4168cb); }
.nav-icon.purple { background: linear-gradient(145deg, #ba7be1, #8950b3); }
.nav-icon.pink { background: linear-gradient(145deg, #ef83a5, #cf4c79); }

.date-panel {
  margin: 10px 10px 9px;
  position: relative;
  z-index: 10;
  overflow: hidden;
  border: 1px solid #dfe5e2;
  border-bottom-color: #d4dcd8;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #fbfcfb 100%);
  box-shadow: 0 9px 24px rgba(26, 43, 37, 0.08), 0 2px 5px rgba(26, 43, 37, 0.04), inset 0 1px 0 #fff;
}

.date-panel::after {
  content: "";
  height: 3px;
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, #f2d6d9, var(--red), #f2d6d9);
  opacity: .72;
}

.date-strip {
  padding: 7px 8px 6px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  border-bottom: 1px solid #edf0ee;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,249,.95));
}

.date-item {
  width: 34px;
  min-height: 43px;
  justify-self: center;
  border: 1px solid transparent;
  border-radius: 11px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  color: var(--muted);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.date-item span { font-size: 10px; }
.date-item strong { font-size: 16px; line-height: 1; }
.date-item:not(.active) { text-shadow: 0 1px 0 #fff; }
.date-item:not(.active):active { transform: translateY(1px); background: #f5f7f6; }
.date-item.selected:not(.active) {
  color: var(--ink);
  border-color: #d9dfdc;
  background: #f3f6f4;
  box-shadow: inset 0 -2px 0 #aeb8b3;
}
.date-item.active {
  color: #fff;
  border-color: #c9182d;
  background: linear-gradient(145deg, #f34b5b 0%, #df2135 58%, #c31429 100%);
  box-shadow: 0 4px 9px rgba(218, 29, 50, .2), inset 0 1px 0 rgba(255,255,255,.32), inset 0 -1px 3px rgba(135,8,25,.1);
  transform: translateY(-1px);
}

.list-summary {
  min-height: 43px;
  padding: 6px 14px 9px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}

.list-summary strong { font-size: 14px; }
.list-summary strong span { color: var(--red); }
.list-summary small { color: #939b97; font-size: 10px; white-space: nowrap; }

.match-list { padding: 2px 9px 24px; background: var(--canvas); }

.daily-pick {
  margin: 0 9px 10px;
  padding: 14px;
  border: 1px solid #eadfe1;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff 0%, #fff9fa 100%);
  box-shadow: 0 8px 22px rgba(41, 34, 35, .07), inset 0 1px 0 #fff;
}
.daily-pick-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.daily-pick-head > div { display: grid; gap: 2px; }
.daily-pick-head small { color: #9a7b52; font-size: 9px; font-weight: 700; }
.daily-pick-head strong { font-size: 16px; }
.daily-pick-head > span {
  min-height: 29px;
  padding: 0 11px;
  border: 1px solid #efd4d8;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: #ae2334;
  background: #fff1f3;
  font-size: 11px;
  font-weight: 900;
}
.daily-pick.single { border-color: #e9b5bc; box-shadow: 0 9px 24px rgba(214, 31, 52, .13), inset 4px 0 0 var(--red); }
.daily-pick.single .daily-pick-head > span { border-color: var(--red); color: #fff; background: linear-gradient(145deg, #f24759, #d71930); box-shadow: 0 5px 12px rgba(215, 25, 48, .22); }
.daily-pick.pending { background: #fbfcfb; }
.daily-pick.previous-day { border-color: #dfe4e1; background: linear-gradient(145deg, #fff 0%, #f7f9f8 100%); box-shadow: 0 7px 18px rgba(35, 48, 43, .06); }
.daily-pick.previous-day .daily-pick-head > span { border-color: #d9dfdc; color: #68716d; background: #f1f4f2; box-shadow: none; }
.daily-pick.pending .daily-pick-head > span { color: #7e8582; border-color: #e2e6e4; background: #f3f5f4; }
.daily-pick > p { margin: 10px 0 0; color: #777f7b; font-size: 10px; line-height: 1.65; }
.daily-pick-legs { margin-top: 11px; display: grid; gap: 7px; }
.daily-pick-legs button {
  width: 100%;
  min-width: 0;
  min-height: 58px;
  padding: 8px;
  border: 1px solid #ecefee;
  border-radius: 11px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 4px 9px;
  text-align: left;
  background: rgba(255,255,255,.84);
}
.daily-pick-legs button > b { width: 34px; height: 27px; grid-row: 1 / span 2; border-radius: 7px; display: grid; place-items: center; color: #fff; background: var(--red); font-size: 10px; }
.daily-pick-legs button > span { min-width: 0; display: grid; gap: 2px; }
.daily-pick-legs button > span strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.daily-pick-legs button > span small { color: var(--muted); font-size: 9px; }
.daily-pick-legs button > em { grid-column: 2; color: #a22031; font-size: 11px; font-style: normal; font-weight: 800; }
.daily-pick-legs button > em i { margin-right: 5px; padding: 2px 5px; border-radius: 5px; color: #fff; background: var(--red); font-size: 8px; font-style: normal; }

.fixture-card {
  width: 100%;
  min-height: 154px;
  margin: 0 0 10px;
  padding: 12px 16px 14px;
  border: 1px solid #e1e6e3;
  border-radius: 16px;
  display: block;
  text-align: left;
  background: linear-gradient(180deg, #fff 0%, #fdfefd 100%);
  box-shadow: 0 8px 20px rgba(27, 44, 38, .07), 0 2px 5px rgba(27, 44, 38, .035), inset 0 1px 0 #fff;
}

.fixture-card:active { transform: translateY(1px); background: #fffafa; box-shadow: 0 4px 12px rgba(27, 44, 38, .06); }
.fixture-card.previous-day { border-color: #e2e6e4; background: linear-gradient(180deg, #fff, #fafbfa); box-shadow: 0 6px 16px rgba(29, 42, 37, .055); }
.fixture-card.previous-day .state-badge { color: #5e6863; background: #edf1ef; }
.fixture-card.previous-day .fixture-center small { color: #7d8682; font-weight: 700; }

.rollover-notice {
  margin: 0 9px 9px;
  padding: 10px 12px;
  border: 1px solid #eadcae;
  border-radius: 12px;
  display: grid;
  gap: 3px;
  background: linear-gradient(145deg, #fffdf6, #fff9e8);
  box-shadow: 0 5px 14px rgba(114, 86, 27, .06);
}
.rollover-notice strong { color: #795c1f; font-size: 12px; }
.rollover-notice span { color: #8c8067; font-size: 9.5px; line-height: 1.55; }

.fixture-meta {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #353d39;
  font-size: 11px;
}

.fixture-meta b { margin-left: 4px; color: #4d819a; font-weight: 700; }
.fixture-caesar-chip {
  min-height: 20px;
  padding: 0 7px;
  border: 1px solid #edd79d;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: #8b6516;
  background: linear-gradient(180deg, #fffdf5, #fff6dc);
  font-size: 8.5px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.state-badge {
  min-height: 23px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: #7f6b22;
  background: var(--gold-soft);
  font-size: 10px;
  font-style: normal;
  white-space: nowrap;
}

.state-badge.finished { color: #6f7773; background: #f1f3f2; }
.state-badge.closed { color: #946a18; background: #fff5d9; }

.fixture-main {
  min-height: 101px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
}

.fixture-team {
  min-width: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
}

.team-logo-wrap {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
}

.team-logo { width: 44px; height: 44px; object-fit: contain; }
.team-fallback {
  width: 42px;
  height: 42px;
  border: 1px solid #f0d4d8;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--red);
  background: var(--red-soft);
  font-size: 15px;
  font-weight: 800;
}

.fixture-team strong {
  max-width: 100%;
  overflow: hidden;
  color: #303834;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fixture-center { min-width: 0; display: grid; place-items: center; gap: 5px; text-align: center; }
.fixture-center > strong { color: #515956; font-size: 24px; line-height: 1; }
.fixture-center .final-score {
  min-width: 62px;
  min-height: 26px;
  padding: 2px 9px;
  border: 1px solid #edc8cd;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #c31a2e;
  background: linear-gradient(180deg, #fff8f9, #fff1f3);
  box-shadow: 0 4px 10px rgba(199, 27, 47, .09), inset 0 1px 0 #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}
.fixture-center > span {
  min-height: 29px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: #39718d;
  border: 1px solid #edf1f2;
  background: linear-gradient(180deg, #fff, #f5f8f9);
  box-shadow: 0 5px 12px rgba(22, 61, 77, 0.09), inset 0 1px 0 #fff;
  font-size: 11px;
  white-space: nowrap;
}
.fixture-center small { color: #929995; font-size: 9px; white-space: nowrap; }

.page-body { padding: 12px 12px 30px; background: var(--canvas); }

.page-title-row {
  min-height: 56px;
  padding: 0 4px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.page-title-row h2 { margin: 0; font-size: 22px; line-height: 1.25; }
.page-title-row p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }

.back-button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  font-size: 25px;
}

.card {
  margin-bottom: 10px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow);
}

.detail-match { text-align: center; }
.detail-league { color: var(--muted); font-size: 11px; }
.detail-teams {
  min-height: 112px;
  display: grid;
  grid-template-columns: 1fr 90px 1fr;
  align-items: center;
  gap: 4px;
}
.detail-team { min-width: 0; display: grid; place-items: center; gap: 8px; }
.detail-team strong { max-width: 100%; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.detail-center strong { display: block; color: #4e5753; font-size: 26px; }
.detail-center span { color: var(--muted); font-size: 10px; }

.section-head { margin-bottom: 11px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.section-head h3 { margin: 0; font-size: 15px; }
.section-head span { color: var(--muted); font-size: 10px; }

.dimension-grid { display: grid; gap: 7px; }
.dimension-row {
  min-height: 47px;
  padding: 8px 11px;
  border-radius: 10px;
  display: grid;
  grid-template-columns: 65px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  background: #fafbfa;
}
.dimension-row span { color: var(--muted); font-size: 11px; }
.dimension-row strong { color: #2b3530; font-size: 13px; text-align: right; }

.customer-note {
  margin-top: 10px;
  padding: 12px;
  border-left: 3px solid var(--red);
  border-radius: 4px 10px 10px 4px;
  color: #4e5954;
  background: #fff7f8;
  font-size: 12px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.primary-button, .outline-button {
  width: 100%;
  min-height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.primary-button { color: #fff; background: var(--red); }
.primary-button:disabled { opacity: .48; cursor: not-allowed; }
.outline-button { border: 1px solid #efc2c8; color: var(--red); background: #fff; }
.page-body > .primary-button + .outline-button { margin-top: 9px; }

.self-steps { margin: 0; padding: 0; display: grid; gap: 9px; list-style: none; counter-reset: step; }
.self-steps li {
  min-height: 52px;
  padding: 10px 10px 10px 47px;
  position: relative;
  border-radius: 11px;
  background: #fafbfa;
  color: #4b5651;
  font-size: 12px;
  line-height: 1.6;
}
.self-steps li::before {
  counter-increment: step;
  content: counter(step);
  width: 27px;
  height: 27px;
  position: absolute;
  left: 10px;
  top: 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--red);
  font-weight: 800;
}
.legal-note { margin: 11px 2px 0; color: #8b9390; font-size: 9px; line-height: 1.65; }

.self-builder { overflow-x: clip; }
.self-toolbar { margin-bottom: 9px; padding: 10px; border: 1px solid var(--line); border-radius: 13px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: #fff; }
.self-toolbar label { display: grid; gap: 5px; color: var(--muted); font-size: 9px; }
.self-toolbar input, .self-toolbar select { width: 100%; height: 38px; padding: 0 9px; border: 1px solid #e0e5e2; border-radius: 9px; color: #2c3631; outline: none; background: #fafbfa; font-size: 12px; }
.self-band-field small { color: #9a777c; font-size: 8px; line-height: 1.4; }
.self-pass-field { grid-column: 1 / -1; display: grid; gap: 5px; color: var(--muted); font-size: 9px; }
.self-pass-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.self-pass-options label { min-height: 38px; border: 1px solid #e0e5e2; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: #5f6864; background: #fafbfa; font-size: 11px; cursor: pointer; }
.self-pass-options label.active { border-color: #dd3046; color: #c91e34; background: #fff1f3; box-shadow: inset 0 0 0 1px rgba(221, 48, 70, .08); }
.self-pass-options input { position: absolute; width: 1px; height: 1px; padding: 0; opacity: 0; pointer-events: none; }
.self-pass-field small { grid-column: 1 / -1; color: #9a777c; font-size: 8px; line-height: 1.45; }
.self-progress { margin-bottom: 9px; padding: 9px 11px; border-radius: 11px; display: flex; align-items: center; gap: 12px; background: #fff5f6; color: #736b6d; font-size: 10px; }
.self-progress b { color: var(--red); font-size: 13px; }
.self-progress strong { margin-left: auto; color: #a31e30; font-size: 10px; }
.self-match-list { display: grid; gap: 9px; }
.self-match { overflow: hidden; border: 1px solid #e1e6e3; border-radius: 14px; background: #fff; box-shadow: 0 6px 17px rgba(28, 43, 38, .05); }
.self-match.active { border-color: #e9bdc3; box-shadow: 0 8px 20px rgba(210, 31, 52, .08); }
.self-match-head { min-height: 62px; padding: 8px 9px; display: flex; align-items: center; gap: 7px; }
.self-match-toggle { min-width: 0; flex: 1; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 8px; text-align: left; }
.self-match-toggle > b { width: 34px; height: 28px; border-radius: 7px; display: grid; place-items: center; color: #fff; background: var(--red); font-size: 10px; }
.self-match-toggle > span { min-width: 0; display: grid; gap: 3px; }
.self-match-toggle > span strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.self-match-toggle > span small { color: var(--muted); font-size: 9px; }
.self-match-toggle > em { padding: 5px 7px; border-radius: 7px; color: #7a827e; background: #f2f4f3; font-size: 9px; font-style: normal; }
.self-match.active .self-match-toggle > em { color: #fff; background: var(--red); }
.self-single-badge { flex: 0 0 auto; padding: 5px 7px; border: 1px solid var(--red); border-radius: 999px; color: var(--red); background: #fff5f6; font-size: 9px; font-weight: 900; }
.self-source-actions { padding: 7px 9px; border-top: 1px solid #f0f2f1; display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; align-items: center; background: #fafbfa; }
.self-source-actions button { min-height: 32px; border: 1px solid #e2e6e4; border-radius: 9px; color: #65706b; background: #fff; font-size: 10px; }
.self-source-actions button.active { border-color: #e8aab2; color: #b01c2e; background: #fff1f3; font-weight: 800; }
.self-source-actions button.caesar.active { border-color: #e7c778; color: #7f5d14; background: #fff8e5; }
.self-source-actions button:disabled { opacity: .42; }
.self-source-actions > span { color: var(--muted); font-size: 9px; white-space: nowrap; }
.self-dimensions { padding: 9px; display: grid; gap: 8px; }
.self-dimension { padding: 9px; border: 1px solid #edf0ee; border-radius: 10px; background: #fafbfa; }
.self-dimension-head { margin-bottom: 7px; display: flex; align-items: center; gap: 7px; }
.self-dimension-head strong { font-size: 11px; }
.self-dimension-head span { color: var(--muted); font-size: 9px; }
.self-dimension-head button { margin-left: auto; color: var(--red); font-size: 9px; }
.self-options { display: flex; flex-wrap: wrap; gap: 5px; }
.self-option { min-height: 31px; padding: 0 9px; border: 1px solid #dfe5e2; border-radius: 8px; display: inline-flex; align-items: center; gap: 5px; background: #fff; font-size: 10px; }
.self-option.recommended { border-color: #ead5a0; background: #fffbef; }
.self-option.selected { border-color: var(--red); color: #fff; background: var(--red); }
.self-option small { padding: 1px 3px; border-radius: 4px; color: #8b6513; background: #fff2c9; font-size: 7px; }
.self-option.selected small { color: #a91b2d; background: #fff; }
.self-no-option { color: #9aa19e; font-size: 9px; }
.self-generate { margin: 12px 0 10px; }
.self-results { margin-top: 10px; }
.self-results,
.self-result-error { scroll-margin-top: 12px; outline: 0; }
.self-result-success { margin-bottom: 12px; padding: 10px 11px; border: 1px solid #bde3d0; border-radius: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #075f42; background: #f0fbf6; }
.self-result-success strong { font-size: 12px; }
.self-result-success span { color: #357763; font-size: 9px; text-align: right; }
.self-result-error strong { display: block; margin-bottom: 6px; font-size: 13px; }
.self-result-error p { margin: 0; color: var(--muted); font-size: 10px; }
.self-result-error .outline-button { margin-top: 10px; }
.self-scheme { margin-top: 9px; padding: 11px; border: 1px solid #ecdde0; border-radius: 11px; background: #fffafb; }
.self-scheme > div { display: flex; align-items: center; gap: 7px; }
.self-scheme > div b { padding: 4px 7px; border-radius: 6px; color: #fff; background: var(--red); font-size: 9px; }
.self-scheme > div strong { font-size: 12px; }
.self-scheme > div em { margin-left: auto; color: #9c2131; font-size: 11px; font-style: normal; font-weight: 800; }
.self-scheme p { margin: 8px 0 0; padding-top: 8px; border-top: 1px dashed #e8dddf; display: grid; grid-template-columns: 31px minmax(0, 1fr); gap: 3px 7px; }
.self-scheme p span { width: 31px; height: 23px; grid-row: 1 / span 2; border-radius: 6px; display: grid; place-items: center; color: #fff; background: #d5273b; font-size: 8px; }
.self-scheme p strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.self-scheme p b { color: #8d2431; font-size: 10px; }
.self-scheme > small { margin-top: 8px; display: block; color: var(--muted); font-size: 9px; }
.self-scheme-actions { margin-top: 10px; display: grid !important; grid-template-columns: 1fr 1fr; gap: 7px !important; }
.self-scheme-actions button { min-height: 38px; padding: 7px 8px; border: 1px solid #b9dfd3; border-radius: 10px; color: #076649; background: #effbf6; font-size: 10px; font-weight: 800; }
.self-scheme-actions button:active { transform: translateY(1px); background: #e3f7ee; }

.self-ticket-modal { padding: 18px 14px calc(18px + env(safe-area-inset-bottom)); position: fixed; inset: 0; z-index: 110; display: flex; align-items: flex-end; justify-content: center; }
.self-ticket-backdrop { position: absolute; inset: 0; border: 0; background: rgba(18, 24, 21, .62); }
.self-ticket-sheet { width: min(100%, 440px); max-height: calc(100dvh - 36px); padding: 16px; position: relative; overflow: auto; border-radius: 18px; background: #fff; box-shadow: 0 22px 60px rgba(0,0,0,.25); }
.self-ticket-head { padding-bottom: 11px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.self-ticket-head span { display: block; margin-bottom: 3px; color: #a06c14; font-size: 9px; }
.self-ticket-head strong { display: block; font-size: 15px; }
.self-ticket-head > button { min-width: 46px; min-height: 32px; border: 1px solid #dfe4e1; border-radius: 9px; color: #65706a; background: #fff; font-size: 9px; }
.self-ticket-meta { margin: 11px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.self-ticket-meta span { min-width: 0; padding: 8px; border-radius: 9px; background: #f6f8f7; }
.self-ticket-meta small { display: block; margin-bottom: 3px; color: var(--muted); font-size: 8px; }
.self-ticket-meta strong { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.self-ticket-lines { display: grid; gap: 6px; }
.self-ticket-lines > div { min-width: 0; min-height: 48px; padding: 7px 8px; border-radius: 10px; display: grid; grid-template-columns: 20px 35px minmax(0, 1fr) auto; align-items: center; gap: 6px; background: #f8faf9; }
.self-ticket-lines > div > span { color: #8a938f; font-size: 8px; text-align: center; }
.self-ticket-lines > div > b { padding: 5px 3px; border-radius: 6px; color: #fff; background: var(--red); font-size: 8px; text-align: center; }
.self-ticket-lines p { min-width: 0; margin: 0; }
.self-ticket-lines p strong, .self-ticket-lines p small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.self-ticket-lines p strong { font-size: 10px; }
.self-ticket-lines p small { margin-top: 3px; color: #7d302f; font-size: 9px; }
.self-ticket-lines em { color: #8d6212; font-size: 9px; font-style: normal; font-weight: 800; }
.self-ticket-note { margin: 11px 0; padding: 9px 10px; border-radius: 9px; color: #726b59; background: #fff8e8; font-size: 8.5px; line-height: 1.55; }
.self-ticket-copy { width: 100%; }

.review-summary {
  margin-bottom: 10px;
  padding: 15px;
  border-radius: 15px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  color: #fff;
  background: linear-gradient(135deg, #e4293d, #bc172b);
  box-shadow: 0 10px 24px rgba(205, 26, 46, 0.2);
}
.review-summary div { text-align: center; }
.review-summary span { display: block; margin-bottom: 4px; color: rgba(255,255,255,.76); font-size: 9px; }
.review-summary strong { font-size: 19px; }

.review-day { margin-bottom: 10px; }
.review-day-head { margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }
.review-day-head strong { font-size: 14px; }
.review-day-head small { color: var(--muted); font-size: 10px; }
.review-match { padding: 11px 0; border-top: 1px solid var(--line); }
.review-match:first-of-type { border-top: 0; }
.review-title { margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.review-title strong { min-width: 0; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.review-title span { color: var(--muted); font-size: 10px; white-space: nowrap; }
.review-dimensions { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.review-dimension { min-width: 0; padding: 6px 2px; border-radius: 8px; text-align: center; background: #f5f7f6; }
.review-dimension span { display: block; margin-bottom: 3px; color: var(--muted); font-size: 8px; }
.review-dimension strong { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.review-dimension.hit { color: #b51629; background: var(--red-soft); }
.review-dimension.miss { color: #25785b; background: var(--green-soft); }
.review-dimension.wait { color: #896817; background: var(--gold-soft); }

.review-comparison { display: grid; gap: 4px; }
.review-column-head,
.review-value-row {
  display: grid;
  grid-template-columns: 38px repeat(5, minmax(0, 1fr));
  gap: 3px;
}
.review-column-head { align-items: end; }
.review-column-head strong {
  min-width: 0;
  color: #6f7974;
  font-size: 9px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}
.review-value-row > b {
  min-height: 43px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #58625d;
  background: #f1f4f2;
  font-size: 10px;
}
.review-value-row > span {
  min-width: 0;
  min-height: 43px;
  padding: 5px 3px;
  border: 1px solid #edf0ee;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #313a36;
  background: #f8faf9;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  word-break: break-word;
}
.review-value-row.result > span { position: relative; padding-bottom: 15px; }
.review-value-row.result > span > strong { font-size: 10.5px; }
.review-value-row.result > span > small {
  position: absolute;
  right: 2px;
  bottom: 2px;
  left: 2px;
  font-size: 8px;
  font-weight: 700;
  text-align: center;
}
.review-value-row.result > span.hit { color: #b51629; border-color: #f0d4d8; background: var(--red-soft); }
.review-value-row.result > span.miss { color: #25785b; border-color: #d6eee4; background: var(--green-soft); }
.review-value-row.result > span.wait { color: #896817; border-color: #f0e3bc; background: var(--gold-soft); }

.chat-screen { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; overscroll-behavior: none; background: #fff; }
.chat-screen .sticky-head { flex: 0 0 auto; }
.chat-intro { padding: 0 16px 9px; }
.chat-intro strong { display: block; font-size: 14px; }
.chat-intro span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.assistant-console { flex: 0 0 auto; padding-bottom: 10px; border-bottom: 1px solid var(--line); background: #fff; }
.assistant-match-strip {
  padding: 0 12px 9px;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.assistant-match-strip::-webkit-scrollbar { display: none; }
.assistant-match-chip {
  width: 148px;
  min-height: 50px;
  padding: 7px 9px;
  border: 1px solid #e4e7e5;
  border-radius: 11px;
  flex: 0 0 auto;
  scroll-snap-align: start;
  color: #5e6863;
  background: #fff;
  text-align: left;
}
.assistant-match-chip small { display: block; margin-bottom: 3px; color: #8a928e; font-size: 8.5px; }
.assistant-match-chip strong { display: block; overflow: hidden; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.assistant-match-chip.active { border-color: #e5253a; color: #a81729; background: #fff7f8; box-shadow: 0 4px 12px rgba(218, 29, 50, .1); }
.assistant-empty { margin: 0 12px 9px; padding: 11px 12px; border: 1px dashed #dedfdd; border-radius: 11px; background: #fafbfa; }
.assistant-empty strong, .assistant-empty span { display: block; }
.assistant-empty strong { font-size: 11px; }
.assistant-empty span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.assistant-selection-note { margin: 0 12px 9px; padding: 10px; border-radius: 10px; color: #78817d; background: #f6f7f6; font-size: 10px; text-align: center; }
.assistant-selected-card { margin: 0 12px 9px; padding: 9px 11px; border: 1px solid #ece8e2; border-radius: 12px; background: linear-gradient(145deg, #fff, #fffafa); box-shadow: 0 5px 15px rgba(39, 36, 31, .05); }
.assistant-selected-meta { display: flex; align-items: center; justify-content: space-between; color: #7d8581; font-size: 8.5px; }
.assistant-selected-meta .state-badge { padding: 3px 6px; font-size: 8px; }
.assistant-selected-teams { margin-top: 5px; display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); align-items: center; gap: 5px; }
.assistant-selected-teams > span { min-width: 0; display: flex; align-items: center; gap: 7px; }
.assistant-selected-teams > span:last-child { flex-direction: row-reverse; }
.assistant-selected-teams .team-logo-wrap { width: 29px; height: 29px; flex: 0 0 29px; }
.assistant-selected-teams .team-logo { width: 27px; height: 27px; }
.assistant-selected-teams .team-fallback { font-size: 11px; }
.assistant-selected-teams strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.assistant-selected-teams > span:last-child strong { text-align: right; }
.assistant-selected-teams b { color: #9a9f9c; font-size: 11px; text-align: center; }
.assistant-selected-card p { margin: 4px 0 0; color: #8a928e; font-size: 8.5px; text-align: center; }
.assistant-task-grid { padding: 0 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.assistant-task { min-height: 43px; padding: 5px 3px; border: 1px solid #e7e9e8; border-radius: 10px; color: #36413c; background: #fff; }
.assistant-task span, .assistant-task small { display: block; }
.assistant-task span { font-size: 10px; font-weight: 800; }
.assistant-task small { margin-top: 2px; color: #9aa19e; font-size: 7.5px; }
.assistant-task:active { border-color: #e5253a; color: #bd1c30; background: #fff7f8; }
.assistant-task.disabled { opacity: .45; }
.quick-list { padding: 0 12px 9px; display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.quick-list::-webkit-scrollbar { display: none; }
.quick-chip {
  min-height: 31px;
  padding: 0 11px;
  border: 1px solid #edd6d9;
  border-radius: 999px;
  flex: 0 0 auto;
  color: #5f4d50;
  background: #fff;
  font-size: 10px;
}

.chat-scroll { flex: 1 1 auto; min-height: 0; padding: 14px 13px 24px; overflow-y: auto; overscroll-behavior: contain; scroll-padding: 10px; background: #faf8f5; }
.message-row { margin-bottom: 12px; display: flex; }
.message-row.user { justify-content: flex-end; }
.message {
  max-width: 86%;
  padding: 11px 13px;
  border: 1px solid #eee7df;
  border-radius: 15px 15px 15px 4px;
  color: #26302c;
  background: #fff;
  box-shadow: 0 4px 16px rgba(36, 34, 27, 0.04);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}
.message-row.user .message { border-color: var(--red); border-radius: 15px 15px 4px 15px; color: #fff; background: var(--red); }
.message.pending { color: #777f7b; }
.message-row.ai .message.has-card { width: 100%; max-width: 100%; }

.assistant-card { margin-top: 10px; padding: 10px; border: 1px solid #f0e0e2; border-radius: 11px; background: #fffafa; }
.assistant-card h4 { margin: 0 0 4px; font-size: 12px; }
.assistant-card p { margin: 0 0 7px; color: var(--muted); font-size: 9px; }
.assistant-card .dimension-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.assistant-card .dimension-row { min-width: 0; min-height: 37px; padding: 5px 7px; grid-template-columns: 43px minmax(0, 1fr); gap: 5px; }
.assistant-card .dimension-row.dimension-score { grid-column: 1 / -1; }
.assistant-card .dimension-row span, .assistant-card .dimension-row strong { font-size: 10px; }
.assistant-card .dimension-row strong { overflow-wrap: anywhere; }
.assistant-data-note {
  margin-top: 9px;
  padding: 8px 9px;
  border: 1px solid #e2e7e4;
  border-radius: 9px;
  color: #68716d;
  background: #f7f9f8;
}
.assistant-data-note strong, .assistant-data-note span { display: block; }
.assistant-data-note strong { color: #42504a; font-size: 9.5px; }
.assistant-data-note span { margin-top: 3px; font-size: 8px; line-height: 1.45; }
.assistant-data-note.full { border-color: #cfe5da; background: #f3faf7; }
.assistant-data-note.full strong { color: #16704e; }

.composer { flex: 0 0 auto; padding: 9px 12px calc(9px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.composer-inner { min-height: 48px; padding: 4px 5px 4px 15px; border: 1px solid #e4e9e6; border-radius: 25px; display: flex; align-items: center; gap: 8px; background: #fff; }
.composer input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 13px; }
.send-button { width: 39px; height: 39px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--red); font-size: 25px; }
.send-button:disabled { opacity: .55; }

.rights-grid { display: grid; gap: 8px; }
.right-item { padding: 12px; border-radius: 11px; background: #fafbfa; }
.right-item strong { display: block; margin-bottom: 4px; font-size: 13px; }
.right-item span { color: var(--muted); font-size: 10px; line-height: 1.6; }

.empty-state { padding: 48px 22px; text-align: center; color: var(--muted); }
.empty-state strong { display: block; margin-bottom: 7px; color: var(--ink); font-size: 16px; }
.empty-state p { margin: 0 0 15px; font-size: 11px; line-height: 1.7; }
.loading-list { padding: 10px 12px; background: var(--canvas); }
.skeleton { height: 146px; margin-bottom: 8px; border-radius: 2px; background: linear-gradient(90deg, #fff 20%, #f4f5f4 50%, #fff 80%); background-size: 300% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -300% 0; } }

.toast {
  max-width: calc(100% - 40px);
  min-height: 42px;
  padding: 10px 15px;
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 99;
  transform: translateX(-50%);
  border-radius: 12px;
  color: #fff;
  background: rgba(20, 29, 25, .93);
  font-size: 11px;
  line-height: 1.5;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

.caesar-list { display: grid; gap: 12px; }

.caesar-prediction-card {
  width: 100%;
  padding: 15px;
  border: 1px solid #e0e6e2;
  border-radius: 15px;
  display: block;
  text-align: left;
  background: linear-gradient(180deg, #fff, #fcfdfc);
  box-shadow: 0 8px 20px rgba(27, 44, 38, .07), 0 2px 5px rgba(27, 44, 38, .035), inset 0 1px 0 #fff;
}

.caesar-card-head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.caesar-card-head > span { min-width: 0; display: flex; align-items: center; gap: 7px; }
.caesar-card-head b {
  min-width: 35px;
  min-height: 25px;
  padding: 0 6px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(145deg, #ef4355, #cf172c);
  font-size: 10px;
}
.caesar-card-head strong { min-width: 0; overflow: hidden; font-size: 14px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.caesar-card-meta { margin: 6px 0 11px 42px; display: block; color: var(--muted); font-size: 11px; }

.caesar-five-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.caesar-dimension {
  min-width: 0;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid #edf0ee;
  border-radius: 9px;
  display: grid;
  gap: 2px;
  background: #f8faf9;
}
.caesar-dimension:last-child { grid-column: 1 / -1; }
.caesar-dimension small { color: #78817d; font-size: 10.5px; line-height: 1.2; }
.caesar-dimension strong { overflow: hidden; color: #25302b; font-size: 13px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.caesar-score { min-height: 64px; }
.caesar-score-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.caesar-score-picks b {
  min-width: 0;
  min-height: 31px;
  border: 1px solid #ead8db;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a91c2d;
  background: #fff7f8;
  font-size: 12px;
  font-weight: 800;
}
.caesar-more { margin-top: 11px; display: block; color: var(--red); font-size: 10.5px; text-align: right; }

@media (min-width: 431px) {
  .app-shell { box-shadow: 0 0 32px rgba(20, 36, 30, 0.08); }
}

@media (max-width: 350px) {
  .top-nav button { font-size: 9px; }
  .nav-icon { width: 29px; height: 29px; }
  .fixture-main { grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr); }
}

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

/* Member live facts: pair order always follows the home/away columns. */
.fixture-meta { flex-wrap: wrap; gap: 5px 7px; }
/* Keep the single-play marker prominent without overlapping the match header. */
.fixture-card { position: relative; }
.fixture-card.has-single-badge { padding-top: 36px; }
.fixture-single-badge {
  position: absolute;
  top: -1px;
  left: -1px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 13px;
  border-radius: 16px 0 12px 0;
  color: #fff;
  background: #c51e35;
  box-shadow: 0 3px 8px rgba(197, 30, 53, .18);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  line-height: 18px;
  letter-spacing: .2px;
  white-space: nowrap;
  pointer-events: none;
}
.fixture-center > .live-score { color: #c31a2e; font-size: 27px; font-variant-numeric: tabular-nums; }
.fixture-live-status { color: #6e7772; font-size: 10px; font-style: normal; line-height: 1.3; }
.fixture-live-status.inplay { color: #ce2035; font-weight: 750; }
.fixture-live-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 6px; padding: 9px 0; border-top: 1px solid #edf0ee; border-bottom: 1px solid #edf0ee; }
.fixture-metric { min-width: 0; display: grid; gap: 4px; text-align: center; }
.fixture-metric small { color: #7b837f; font-size: 10px; }
.fixture-metric b { color: #39433e; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fixture-metric.yellow-card small::before, .fixture-metric.red-card small::before { content: ""; display: inline-block; width: 7px; height: 9px; border-radius: 1px; margin-right: 3px; background: #e5b326; vertical-align: -1px; }
.fixture-metric.red-card small::before { background: #d33343; }
.fixture-live-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 8px; margin-top: 8px; color: #737e78; font-size: 10px; line-height: 1.5; text-align: left; }
.fixture-live-footer > span { min-width: 0; overflow-wrap: anywhere; }
.fixture-live-footer small { font-size: 9px; white-space: nowrap; }
.fixture-live-footer .delayed { color: #a66f14; }
@media (max-width: 350px) { .fixture-card { padding: 10px 10px 12px; } .fixture-metric b { font-size: 11px; } .fixture-live-footer { font-size: 9px; } }
