:root {
  --ink: #111827;
  --muted: #667085;
  --soft: #f6f7f9;
  --line: #e5e7eb;
  --line-strong: #d0d5dd;
  --blue: #1769e0;
  --blue-soft: #eef5ff;
  --green: #159455;
  --green-soft: #edf8f2;
  --red: #d94b4b;
  --red-soft: #fff1f1;
  --amber: #b7791f;
  --amber-soft: #fff8e7;
  --sidebar-width: 224px;
}

* { box-sizing: border-box; }

html { background: #fff; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

button, input, select { font: inherit; letter-spacing: 0; }
button { color: inherit; }

.app-shell { min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: #fff;
  padding: 22px 14px 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 8px 28px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-size: 17px; }
.brand-copy small { color: var(--muted); font-size: 11px; }

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

.nav-item {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 11px;
  width: 100%;
  border: 0;
  border-radius: 7px;
  background: transparent;
  padding: 0 11px;
  color: #475467;
  cursor: pointer;
  text-align: left;
}

.nav-item:hover { background: var(--soft); color: var(--ink); }
.nav-item.active { background: var(--blue-soft); color: var(--blue); font-weight: 700; }
.nav-item svg { width: 18px; height: 18px; stroke-width: 1.8; }
.nav-count { margin-left: auto; color: var(--muted); font-size: 12px; }

.sidebar-footer { display: grid; gap: 12px; margin-top: auto; }
.model-status { display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--muted); font-size: 12px; }
.model-status span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }

.main-content { min-height: 100vh; margin-left: var(--sidebar-width); padding: 30px 36px 56px; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1420px; margin: 0 auto 20px; }
.eyebrow { margin-bottom: 5px; color: var(--muted); font-size: 12px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 27px; line-height: 1.2; }
h2 { font-size: 20px; }
h3 { font-size: 15px; }

.topbar-actions { display: flex; align-items: center; gap: 9px; }
.global-search { display: flex; width: 260px; height: 40px; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 7px; padding: 0 11px; }
.global-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.global-search svg { width: 17px; color: var(--muted); }
.global-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }

.icon-button {
  position: relative;
  display: inline-grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}
.icon-button:hover { background: var(--soft); }
.icon-button svg { width: 18px; height: 18px; }
.notification-dot { position: absolute; top: 8px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); border: 1px solid #fff; }
.profile-button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }

.demo-notice { display: flex; max-width: 1420px; min-height: 38px; align-items: center; gap: 9px; margin: 0 auto 22px; border: 1px solid #f1dfad; border-radius: 7px; background: var(--amber-soft); padding: 0 11px; color: #6d521d; font-size: 12px; }
.demo-notice > svg { width: 16px; }
.demo-notice button { display: grid; width: 28px; height: 28px; margin-left: auto; place-items: center; border: 0; background: transparent; cursor: pointer; }
.demo-notice button svg { width: 15px; }

#viewRoot { max-width: 1420px; margin: 0 auto; }

.summary-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); margin-bottom: 25px; }
.summary-item { min-width: 0; padding: 17px 20px; border-right: 1px solid var(--line); }
.summary-item:first-child { padding-left: 0; }
.summary-item:last-child { border-right: 0; }
.summary-item span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; }
.summary-item strong { font-size: 21px; }
.summary-item small { margin-left: 7px; color: var(--green); font-weight: 600; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 304px; gap: 28px; align-items: start; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.section-heading h2 { margin-bottom: 3px; }
.section-heading p { margin-bottom: 0; color: var(--muted); font-size: 12px; }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 15px; }
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 7px; padding: 3px; }
.segmented button { min-width: 62px; height: 30px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; }
.segmented button.active { background: var(--ink); color: #fff; }
.select-control { height: 38px; border: 1px solid var(--line); border-radius: 7px; background: #fff; padding: 0 30px 0 10px; outline: 0; cursor: pointer; }
.select-control:focus { border-color: var(--blue); }
.toggle-control { display: inline-flex; height: 38px; align-items: center; gap: 8px; margin-left: auto; color: var(--muted); cursor: pointer; }
.toggle-control input { width: 16px; height: 16px; accent-color: var(--blue); }

.match-list { display: grid; gap: 10px; }
.match-card { position: relative; display: grid; grid-template-columns: 132px minmax(220px, 1.1fr) minmax(250px, .9fr) 76px; min-height: 116px; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 16px 18px; cursor: pointer; transition: border-color .16s ease, box-shadow .16s ease; }
.match-card:hover { border-color: #b8c3d3; box-shadow: 0 5px 18px rgba(16, 24, 40, .06); }
.match-meta { display: grid; align-content: center; gap: 5px; }
.league-name { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.kickoff { font-size: 21px; font-weight: 750; }
.venue { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.teams { display: grid; gap: 11px; padding-right: 18px; }
.team-row { display: flex; min-width: 0; align-items: center; gap: 10px; }
.team-logo { width: 28px; height: 28px; flex: 0 0 28px; object-fit: contain; }
.team-name { overflow: hidden; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.team-form { display: flex; gap: 3px; margin-left: auto; }
.form-dot { display: grid; width: 17px; height: 17px; place-items: center; border-radius: 4px; color: #fff; font-size: 9px; font-weight: 700; }
.form-dot.w { background: var(--green); }
.form-dot.d { background: #98a2b3; }
.form-dot.l { background: var(--red); }

.prediction-block { padding: 0 18px; border-left: 1px solid var(--line); }
.prediction-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.model-pick { display: inline-flex; max-width: 170px; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.model-pick svg { width: 14px; color: var(--blue); }
.confidence { border-radius: 999px; padding: 4px 7px; font-size: 10px; font-weight: 700; }
.confidence.high { background: var(--green-soft); color: var(--green); }
.confidence.medium { background: var(--amber-soft); color: var(--amber); }
.probability-bar { display: flex; height: 6px; overflow: hidden; border-radius: 3px; background: var(--line); }
.probability-bar span:nth-child(1) { background: var(--blue); }
.probability-bar span:nth-child(2) { background: #98a2b3; }
.probability-bar span:nth-child(3) { background: var(--red); }
.probability-labels { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 7px; color: var(--muted); font-size: 10px; }
.probability-labels span:nth-child(2) { text-align: center; }
.probability-labels span:nth-child(3) { text-align: right; }
.probability-labels strong { color: var(--ink); font-size: 12px; }

.save-button { display: grid; width: 36px; height: 36px; justify-self: end; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--muted); cursor: pointer; }
.save-button:hover, .save-button.saved { border-color: #b8d0f5; background: var(--blue-soft); color: var(--blue); }
.save-button svg { width: 17px; }

.insight-rail { display: grid; gap: 24px; }
.rail-section { border-top: 3px solid var(--ink); padding-top: 15px; }
.rail-section h2 { margin-bottom: 16px; font-size: 16px; }
.accuracy-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }
.accuracy-row strong { font-size: 36px; line-height: 1; }
.accuracy-row span { color: var(--green); font-size: 12px; font-weight: 700; }
.mini-chart { width: 100%; height: 82px; margin-bottom: 12px; }
.mini-chart .grid { stroke: #edf0f3; stroke-width: 1; }
.mini-chart .area { fill: #eef5ff; }
.mini-chart .line { fill: none; stroke: var(--blue); stroke-width: 2.5; }
.rail-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rail-metrics div { border-top: 1px solid var(--line); padding-top: 10px; }
.rail-metrics span { display: block; color: var(--muted); font-size: 11px; }
.rail-metrics strong { display: block; margin-top: 4px; font-size: 15px; }
.signal-list { display: grid; gap: 12px; }
.signal { display: grid; grid-template-columns: 33px 1fr; gap: 10px; align-items: start; }
.signal-icon { display: grid; width: 33px; height: 33px; place-items: center; border-radius: 7px; background: var(--soft); }
.signal-icon svg { width: 16px; }
.signal strong { display: block; margin-bottom: 2px; font-size: 12px; }
.signal span { color: var(--muted); font-size: 11px; line-height: 1.5; }

.empty-state { display: grid; min-height: 300px; place-items: center; border: 1px dashed var(--line-strong); border-radius: 8px; color: var(--muted); text-align: center; }
.empty-state svg { width: 28px; height: 28px; margin-bottom: 10px; }
.live-status { display: inline-flex; min-height: 28px; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 5px; padding: 0 9px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.live-status svg { width: 14px; height: 14px; color: var(--blue); }
.live-empty { min-height: 360px; margin-top: 4px; }
.live-empty > div { display: grid; justify-items: center; max-width: 390px; padding: 24px; }
.live-empty svg { width: 36px; height: 36px; margin-bottom: 15px; color: var(--blue); }
.live-empty strong { display: block; margin-bottom: 8px; color: var(--ink); font-size: 15px; }
.live-empty p { margin-bottom: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

.page-panel { border-top: 1px solid var(--line); padding-top: 22px; }
.schedule-table, .result-table { width: 100%; border-collapse: collapse; }
.schedule-table th, .schedule-table td, .result-table th, .result-table td { border-bottom: 1px solid var(--line); padding: 14px 10px; text-align: left; }
.schedule-table th, .result-table th { color: var(--muted); font-size: 11px; font-weight: 600; }
.table-teams { display: flex; align-items: center; gap: 7px; font-weight: 650; }
.table-teams img { width: 22px; height: 22px; object-fit: contain; }
.table-prediction { font-weight: 700; }

.performance-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.metric-block { border-top: 3px solid var(--ink); padding-top: 16px; }
.metric-block > strong { display: block; margin: 7px 0 3px; font-size: 32px; }
.metric-block > span { color: var(--muted); font-size: 12px; }
.bar-list { display: grid; gap: 13px; margin-top: 18px; }
.bar-item header { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 12px; }
.bar-track { height: 7px; overflow: hidden; border-radius: 4px; background: var(--soft); }
.bar-track span { display: block; height: 100%; border-radius: 4px; background: var(--blue); }
.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.model-card { border: 1px solid var(--line); border-radius: 8px; padding: 17px; }
.model-card header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.model-card h3 { margin: 0; }
.model-card p { min-height: 42px; margin: 10px 0 15px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.status-badge { border-radius: 999px; background: var(--green-soft); color: var(--green); padding: 4px 7px; font-size: 10px; font-weight: 700; }
.weight-row { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 11px; font-size: 12px; }

.model-disclaimer { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; align-items: start; margin-bottom: 28px; border: 1px solid #f0b5b5; border-left: 4px solid var(--red); border-radius: 7px; background: var(--red-soft); padding: 17px 18px; color: #9f2f2f; }
.model-disclaimer > svg { width: 25px; height: 25px; margin-top: 1px; }
.model-disclaimer strong { display: block; margin-bottom: 6px; font-size: 16px; }
.model-disclaimer p { margin-bottom: 0; font-size: 12px; line-height: 1.75; }
.model-scope-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.model-scope-grid article { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; min-width: 0; padding: 20px; border-right: 1px solid var(--line); }
.model-scope-grid article:first-child { padding-left: 0; }
.model-scope-grid article:last-child { border-right: 0; }
.model-scope-grid svg { width: 20px; height: 20px; color: var(--blue); }
.model-scope-grid h3 { margin-bottom: 7px; }
.model-scope-grid p { margin-bottom: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.workflow-heading { margin-top: 30px; }

.settings-list { max-width: 720px; }
.setting-row { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.setting-row strong { display: block; margin-bottom: 4px; }
.setting-row span { color: var(--muted); font-size: 12px; }
.switch { position: relative; width: 40px; height: 23px; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; }
.switch-track { position: absolute; inset: 0; border-radius: 999px; background: #d0d5dd; cursor: pointer; transition: .2s; }
.switch-track::after { position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; content: ""; transition: .2s; }
.switch input:checked + .switch-track { background: var(--blue); }
.switch input:checked + .switch-track::after { transform: translateX(17px); }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(17, 24, 39, .35); padding: 20px; }
.modal-backdrop[hidden] { display: none; }
.match-modal { width: min(760px, 100%); max-height: min(780px, calc(100vh - 40px)); overflow-y: auto; border-radius: 8px; background: #fff; box-shadow: 0 24px 70px rgba(16, 24, 40, .22); }
.modal-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: #fff; padding: 19px 22px; }
.modal-header h2 { margin-bottom: 0; }
.modal-body { padding: 22px; }
.modal-teams { display: grid; grid-template-columns: 1fr 120px 1fr; align-items: center; gap: 18px; margin-bottom: 25px; text-align: center; }
.modal-team { display: grid; justify-items: center; gap: 9px; font-weight: 750; }
.modal-team img { width: 58px; height: 58px; object-fit: contain; }
.modal-time strong { display: block; font-size: 24px; }
.modal-time span { color: var(--muted); font-size: 11px; }
.prediction-summary { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 23px; border-block: 1px solid var(--line); }
.prediction-summary div { padding: 14px; border-right: 1px solid var(--line); text-align: center; }
.prediction-summary div:last-child { border-right: 0; }
.prediction-summary span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.prediction-summary strong { font-size: 20px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.detail-section { border-top: 3px solid var(--ink); padding-top: 13px; }
.detail-section h3 { margin-bottom: 13px; }
.factor-list, .score-list { display: grid; gap: 10px; }
.factor-item { display: grid; grid-template-columns: 20px 1fr; gap: 8px; align-items: start; color: #344054; font-size: 12px; line-height: 1.5; }
.factor-item svg { width: 16px; color: var(--green); }
.score-row { display: grid; grid-template-columns: 1fr 1fr 48px; align-items: center; gap: 8px; font-size: 12px; }
.score-track { height: 6px; border-radius: 3px; background: var(--soft); }
.score-track span { display: block; height: 100%; border-radius: 3px; background: var(--blue); }
.xg-row { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; border: 1px solid var(--line); border-radius: 7px; padding: 13px 15px; }
.xg-row span { color: var(--muted); font-size: 11px; }
.xg-row strong { font-size: 18px; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 140; transform: translateY(15px); border-radius: 7px; background: var(--ink); color: #fff; padding: 11px 14px; opacity: 0; pointer-events: none; transition: .2s; }
.toast.show { transform: translateY(0); opacity: 1; }
.mobile-nav { display: none; }

.announcement-backdrop { position: fixed; inset: 0; z-index: 160; display: grid; place-items: center; background: rgba(17, 24, 39, .42); padding: 20px; }
.announcement-backdrop[hidden] { display: none; }
.announcement-modal { width: min(430px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; border-radius: 8px; background: #fff; box-shadow: 0 24px 70px rgba(16, 24, 40, .24); }
.announcement-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); padding: 18px 20px; }
.announcement-header span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; }
.announcement-header h2 { margin-bottom: 0; font-size: 20px; }
.announcement-body { display: grid; justify-items: center; gap: 18px; padding: 20px; }
.announcement-body > p { margin-bottom: 0; color: #475467; font-size: 12px; line-height: 1.7; text-align: center; }
.qr-placeholder { display: grid; width: 220px; aspect-ratio: 1; place-items: center; align-content: center; gap: 8px; border: 1px dashed var(--line-strong); border-radius: 8px; background: #fafbfc; text-align: center; }
.qr-placeholder svg { width: 72px; height: 72px; color: var(--ink); }
.qr-placeholder strong { font-size: 14px; }
.qr-placeholder span { color: var(--muted); font-size: 10px; }
.support-qr-image { display: block; width: min(250px, 100%); height: auto; border: 1px solid var(--line); border-radius: 7px; object-fit: contain; }
.announcement-primary { display: inline-flex; width: 100%; min-height: 42px; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 7px; background: var(--ink); color: #fff; font-weight: 700; cursor: pointer; }
.announcement-primary:hover { background: #273142; }
.announcement-primary svg { width: 17px; height: 17px; }

@media (max-width: 1120px) {
  .content-grid { grid-template-columns: 1fr; }
  .insight-rail { grid-template-columns: 1fr 1fr; }
  .match-card { grid-template-columns: 112px minmax(200px, 1fr) minmax(230px, .9fr) 50px; }
}

@media (max-width: 820px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0; padding: 20px 16px 90px; }
  .topbar { align-items: flex-start; }
  .topbar-actions { gap: 6px; }
  .global-search { width: 40px; padding: 0; justify-content: center; }
  .global-search input { display: none; }
  .profile-button { display: none; }
  .mobile-nav { position: fixed; inset: auto 0 0 0; z-index: 40; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line); background: rgba(255,255,255,.97); padding: 7px 8px max(7px, env(safe-area-inset-bottom)); }
  .mobile-nav button { display: grid; min-height: 50px; place-items: center; gap: 3px; border: 0; background: transparent; color: var(--muted); font-size: 10px; }
  .mobile-nav button.active { color: var(--blue); font-weight: 700; }
  .mobile-nav svg { width: 19px; height: 19px; }
  .summary-strip { grid-template-columns: 1fr 1fr; }
  .summary-item { border-bottom: 1px solid var(--line); }
  .summary-item:nth-child(2) { border-right: 0; }
  .summary-item:nth-child(3), .summary-item:nth-child(4) { border-bottom: 0; }
  .match-card { grid-template-columns: 76px 1fr 42px; min-height: 142px; padding: 14px; }
  .match-meta { align-self: start; }
  .kickoff { font-size: 18px; }
  .venue { display: none; }
  .teams { padding-right: 8px; }
  .team-form { display: none; }
  .prediction-block { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); margin-top: 12px; padding: 12px 0 0; }
  .save-button { grid-column: 3; grid-row: 1; }
  .insight-rail { grid-template-columns: 1fr; }
  .performance-layout, .detail-grid { grid-template-columns: 1fr; }
  .model-grid { grid-template-columns: 1fr; }
  .model-scope-grid { grid-template-columns: 1fr; }
  .model-scope-grid article, .model-scope-grid article:first-child { padding: 16px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .model-scope-grid article:last-child { border-bottom: 0; }
}

@media (max-width: 560px) {
  h1 { font-size: 23px; }
  .topbar .eyebrow { font-size: 11px; }
  .demo-notice { align-items: flex-start; padding-block: 9px; line-height: 1.45; }
  .summary-item { padding: 14px 10px; }
  .summary-item:first-child { padding-left: 0; }
  .summary-item strong { font-size: 18px; }
  .filters { align-items: stretch; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; }
  .select-control { flex: 1; min-width: 0; }
  .toggle-control { margin-left: 0; }
  .model-disclaimer { grid-template-columns: 30px minmax(0, 1fr); padding: 15px 13px; }
  .model-disclaimer > svg { width: 21px; height: 21px; }
  .modal-backdrop { align-items: end; padding: 0; }
  .match-modal { max-height: 92vh; border-radius: 8px 8px 0 0; }
  .modal-teams { grid-template-columns: 1fr 72px 1fr; gap: 8px; }
  .modal-team img { width: 45px; height: 45px; }
  .modal-team { font-size: 12px; }
  .prediction-summary div { padding-inline: 6px; }
  .schedule-table th:nth-child(1), .schedule-table td:nth-child(1), .schedule-table th:nth-child(4), .schedule-table td:nth-child(4) { display: none; }
}

/* Research workspace */
.research-summary .neutral-small { color: var(--muted); }
.research-summary .risk-small { color: var(--red); }
.research-summary .legacy-small { color: var(--amber); }

.research-heading { align-items: center; }
.last-updated { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.last-updated svg { width: 15px; }

.research-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 13px; }
.toolbar-legend { display: flex; align-items: center; gap: 15px; color: var(--muted); font-size: 11px; }
.toolbar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.toolbar-legend svg { width: 14px; height: 14px; }
.toolbar-legend span:nth-child(1) svg { color: var(--green); }
.toolbar-legend span:nth-child(2) svg { color: var(--blue); }
.toolbar-legend span:nth-child(3) svg { color: var(--red); }
.batch-note { color: #6d521d; font-size: 11px; font-weight: 700; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; }
.legend-dot.research { background: var(--blue); }
.legend-dot.risk { background: var(--red); }
.legend-dot.legacy { background: var(--amber); }

.research-table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.research-table { width: 100%; min-width: 1120px; border-collapse: separate; border-spacing: 0; }
.research-table th { position: sticky; top: 0; z-index: 1; height: 42px; border-bottom: 1px solid var(--line); background: #fafbfc; padding: 0 12px; color: var(--muted); font-size: 11px; font-weight: 650; text-align: left; white-space: nowrap; }
.research-table td { height: 82px; border-bottom: 1px solid var(--line); padding: 10px 12px; vertical-align: middle; }
.research-table tr:last-child td { border-bottom: 0; }
.research-row { cursor: pointer; outline: 0; }
.research-row:hover td, .research-row:focus td { background: #fafcff; }
.legacy-row td { background: #fffdf7; }
.legacy-row:hover td, .legacy-row:focus td { background: #fffaf0; }
.time-cell { width: 70px; }
.time-cell strong { font-size: 15px; }
.fixture-cell { width: 180px; }
.fixture-cell > span { display: flex; min-width: 0; align-items: center; gap: 8px; line-height: 1.45; }
.fixture-cell > span + span { margin-top: 7px; }
.fixture-cell strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.country-flag { width: 22px; height: 15px; flex: 0 0 22px; border: 1px solid #e5e7eb; border-radius: 2px; object-fit: cover; }
.market-value { display: grid; gap: 4px; min-width: 104px; }
.market-value strong { font-size: 13px; }
.market-value span { color: var(--muted); font-size: 11px; }
.xg-value { font-size: 18px; font-weight: 750; font-variant-numeric: tabular-nums; }
.cell-tag { display: inline-flex; width: fit-content; align-items: center; gap: 4px; margin-top: 7px; border-radius: 4px; padding: 3px 5px; font-size: 9px; font-weight: 750; white-space: nowrap; }
.cell-tag svg { width: 11px; height: 11px; }
.cell-tag.risk { background: var(--red-soft); color: var(--red); }
.cell-tag.legacy { background: var(--amber-soft); color: var(--amber); }
.rule-hint { display: block; margin-top: 6px; color: var(--amber); font-size: 10px; white-space: nowrap; }
.score-chips { display: flex; gap: 4px; min-width: 124px; }
.score-chips span { display: inline-grid; min-width: 36px; height: 27px; place-items: center; border: 1px solid var(--line); border-radius: 5px; background: #fff; font-size: 11px; font-weight: 700; }
.gate-status { display: inline-flex; align-items: center; gap: 5px; border-radius: 4px; background: var(--blue-soft); color: var(--blue); padding: 5px 7px; font-size: 10px; font-weight: 750; white-space: nowrap; }
.gate-status svg { width: 12px; }
.gate-note { display: block; margin-top: 6px; color: var(--muted); font-size: 9px; text-align: center; }
.research-table .save-button { width: 32px; height: 32px; }

.research-vertical-list { display: grid; grid-template-columns: 1fr; gap: 12px; }
.compact-accordion.top-pick { border-left: 4px solid var(--green); }
.compact-accordion-trigger { grid-template-columns: 86px minmax(180px, 1fr) 28px auto 20px; }
.compact-list-code { display: grid; align-self: stretch; align-content: center; gap: 4px; border-right: 1px solid var(--line); }
.compact-list-code small, .compact-list-direction small, .compact-accordion-field > span { color: var(--muted); font-size: 10px; font-style: normal; }
.compact-list-code strong { font-size: 19px; font-variant-numeric: tabular-nums; }
.compact-list-direction { display: grid; min-width: 0; gap: 5px; }
.compact-list-direction strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.compact-header-grade { justify-self: start; }
.compact-accordion-grid { display: grid; grid-template-columns: minmax(190px, 1.25fr) minmax(160px, 1fr) 110px minmax(190px, 1fr); align-items: center; gap: 0; min-height: 98px; background: #fafbfc; }
.compact-accordion-field { display: grid; min-width: 0; align-content: center; align-self: stretch; gap: 8px; border-right: 1px solid var(--line); padding: 18px; }
.compact-accordion-field:last-child { border-right: 0; }
.compact-accordion-field > div { display: flex; min-width: 0; align-items: center; gap: 8px; }
.compact-accordion-field strong { font-size: 14px; }
.compact-total.under strong { color: var(--blue); }
.compact-total.over strong { color: var(--red); }
.compact-xg strong { font-size: 19px; font-variant-numeric: tabular-nums; }
.compact-scores .score-chips { flex-wrap: nowrap; }
.grade-badge { display: inline-grid; width: 22px; height: 22px; flex: 0 0 22px; place-items: center; border-radius: 4px; font-size: 10px; font-style: normal; font-weight: 800; }
.grade-badge.grade-a { background: var(--green-soft); color: var(--green); }
.grade-badge.grade-b { background: var(--blue-soft); color: var(--blue); }
.grade-badge.grade-c { background: var(--amber-soft); color: #805d1d; }
.compact-legend .grade-badge { width: 20px; height: 20px; flex-basis: 20px; }
.research-vertical-card { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; outline: 0; cursor: pointer; transition: border-color .16s ease, box-shadow .16s ease; }
.research-vertical-card:hover, .research-vertical-card:focus { border-color: #b8c3d3; box-shadow: 0 6px 20px rgba(16, 24, 40, .06); }
.research-vertical-card.legacy-card { border-color: #ead8a8; }
.vertical-card-header { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 78px; padding: 12px 14px; }
.vertical-time { display: grid; gap: 3px; border-right: 1px solid var(--line); }
.vertical-time strong { font-size: 18px; }
.vertical-time span { color: var(--muted); font-size: 9px; }
.vertical-fixture { display: grid; grid-template-columns: 1fr; gap: 6px; min-width: 0; }
.vertical-fixture > span { display: flex; min-width: 0; align-items: center; gap: 7px; }
.vertical-fixture > span strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vertical-fixture > svg { display: none; }
.vertical-actions { display: grid; justify-items: end; gap: 7px; }
.vertical-actions .save-button { width: 31px; height: 31px; }
.final-score-badge { display: flex; align-items: baseline; gap: 6px; }
.final-score-badge small { color: var(--muted); font-size: 9px; }
.final-score-badge strong { font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.vertical-markets { border-top: 1px solid var(--line); }
.vertical-market-row { display: grid; grid-template-columns: 84px minmax(0, 1fr) 126px; min-height: 54px; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 9px 14px; }
.vertical-market-label { color: var(--muted); font-size: 11px; font-weight: 650; }
.vertical-market-main { display: flex; align-items: baseline; gap: 8px; }
.vertical-market-main strong { font-size: 16px; }
.vertical-market-main span { color: var(--muted); font-size: 11px; }
.direction-block { display: flex; min-width: 0; align-items: baseline; gap: 10px; }
.direction-block > span { min-width: 42px; font-size: 19px; font-weight: 800; }
.direction-block > strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.featured-market { position: relative; min-height: 62px; }
.featured-market.under { background: #f6f9ff; }
.featured-market.over { background: #fff8f6; }
.featured-market.upper { background: #f5fbf7; }
.featured-market.lower { background: #fffaf1; }
.featured-market.under .direction-block > span { color: var(--blue); }
.featured-market.over .direction-block > span { color: var(--red); }
.featured-market.upper .direction-block > span { color: var(--green); }
.featured-market.lower .direction-block > span { color: var(--amber); }
.vertical-probability { display: grid; grid-template-columns: 46px 1fr; align-items: center; gap: 7px; justify-self: stretch; }
.vertical-probability > strong { font-size: 12px; font-variant-numeric: tabular-nums; }
.confidence-line { width: 100%; height: 5px; overflow: hidden; border-radius: 3px; background: #e6eaf0; }
.confidence-line span { display: block; height: 100%; border-radius: 3px; background: var(--blue); }
.featured-market.over .confidence-line span { background: var(--red); }
.featured-market.upper .confidence-line span { background: var(--green); }
.featured-market.lower .confidence-line span { background: var(--amber); }
.vertical-market-row > .cell-tag { justify-self: end; margin-top: 0; }
.vertical-market-row > .settlement-badge { justify-self: end; }
.vertical-rule-hint { grid-column: 2 / -1; margin-top: -3px; color: var(--amber); font-size: 9px; }
.xg-review { display: grid; justify-items: end; gap: 2px; }
.xg-review strong { font-size: 11px; }
.xg-review span { color: var(--muted); font-size: 9px; }
.vertical-probability.settled { grid-template-columns: 1fr auto; }
.vertical-probability.settled > strong { justify-self: end; }
.vertical-score-footer { display: flex; min-height: 52px; align-items: center; gap: 12px; padding: 9px 14px; }
.vertical-score-footer > span { color: var(--muted); font-size: 11px; }
.vertical-score-footer .score-chips { min-width: 0; }
.vertical-score-footer > small { margin-left: auto; color: var(--muted); font-size: 9px; }
.score-review { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.score-review > strong { font-size: 10px; white-space: nowrap; }

.match-accordion { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; transition: border-color .16s ease, box-shadow .16s ease; }
.match-accordion:hover, .match-accordion.expanded { border-color: #b8c3d3; }
.match-accordion.expanded { box-shadow: 0 6px 20px rgba(16, 24, 40, .05); }
.match-list-row { display: grid; grid-template-columns: minmax(0, 1fr) 52px; min-height: 82px; align-items: stretch; }
.match-accordion-trigger { display: grid; grid-template-columns: 94px minmax(220px, 1fr) auto auto 20px; align-items: center; gap: 18px; min-width: 0; border: 0; background: #fff; padding: 11px 10px 11px 14px; cursor: pointer; text-align: left; }
.match-accordion-trigger:hover { background: #fafbfc; }
.match-list-time { display: grid; gap: 4px; border-right: 1px solid var(--line); }
.match-list-time strong { font-size: 19px; font-variant-numeric: tabular-nums; }
.match-list-time small { color: var(--muted); font-size: 9px; }
.match-list-fixture { display: grid; min-width: 0; gap: 7px; }
.match-list-fixture > span { display: flex; min-width: 0; align-items: center; gap: 8px; }
.match-list-fixture strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-ready { display: inline-flex; min-height: 25px; align-items: center; gap: 5px; border-radius: 4px; background: var(--blue-soft); color: var(--blue); padding: 0 7px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.match-ready svg { width: 13px; height: 13px; }
.accordion-chevron { width: 18px; height: 18px; color: var(--muted); transition: transform .18s ease; }
.match-accordion.expanded .accordion-chevron { transform: rotate(180deg); }
.match-list-row > .save-button { align-self: center; justify-self: center; grid-column: 2; grid-row: 1; }
.match-accordion-panel { border-top: 1px solid var(--line); }
.match-accordion-panel[hidden] { display: none; }

.active-card-header { grid-template-columns: 108px minmax(0, 1fr) auto; min-height: 86px; }
.active-card-header .vertical-time { align-self: stretch; align-content: center; }
.risk-pill { display: inline-flex; min-height: 25px; align-items: center; gap: 5px; border-radius: 4px; background: var(--amber-soft); color: #805d1d; padding: 0 7px; font-size: 10px; font-weight: 750; white-space: nowrap; }
.risk-pill svg { width: 13px; height: 13px; }
.decision-summary { display: flex; min-height: 60px; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); background: #fafbfc; padding: 10px 14px; }
.decision-summary > div { display: flex; min-width: 0; align-items: baseline; gap: 12px; }
.decision-summary span { color: var(--muted); font-size: 10px; font-weight: 650; white-space: nowrap; }
.decision-summary strong { font-size: 15px; }
.decision-summary small { max-width: 340px; color: var(--muted); font-size: 10px; line-height: 1.5; text-align: right; }
.active-markets { border-top: 0; }
.decision-market-row { grid-template-columns: 108px minmax(0, 1fr) auto; min-height: 82px; }
.recommendation-stack { display: grid; min-width: 0; gap: 4px; }
.recommendation-stack strong { font-size: 16px; line-height: 1.35; }
.recommendation-stack span { color: #344054; font-size: 11px; line-height: 1.45; }
.recommendation-stack small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.handicap-conflict-row { background: #fffaf1; }
.decision-badge { display: inline-flex; min-height: 25px; align-items: center; justify-content: center; border-radius: 4px; padding: 0 8px; font-size: 10px; font-weight: 750; white-space: nowrap; }
.decision-badge.preferred { background: var(--green-soft); color: var(--green); }
.decision-badge.protected { background: var(--blue-soft); color: var(--blue); }
.decision-badge.observe { background: var(--amber-soft); color: #805d1d; }
.decision-badge.avoid { background: var(--red-soft); color: var(--red); }
.active-card-footer { display: grid; grid-template-columns: 150px minmax(240px, 1fr) 250px; min-height: 76px; align-items: center; gap: 20px; padding: 11px 14px; }
.xg-inline, .score-inline, .risk-inline { min-width: 0; }
.xg-inline span, .score-inline > span, .risk-inline > span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; }
.xg-inline strong { margin-right: 7px; font-size: 20px; font-variant-numeric: tabular-nums; }
.xg-inline small, .risk-inline small { color: var(--muted); font-size: 9px; }
.score-inline { display: grid; grid-template-columns: 72px 1fr; align-items: center; }
.score-inline > span { margin-bottom: 0; }
.risk-inline { border-left: 1px solid var(--line); padding-left: 18px; }
.risk-inline strong { display: block; margin-bottom: 3px; color: #805d1d; font-size: 12px; }

.settlement-badge { display: inline-flex; min-height: 23px; align-items: center; justify-content: center; border-radius: 4px; padding: 0 7px; font-size: 10px; font-weight: 750; white-space: nowrap; }
.settlement-badge.hit { background: var(--green-soft); color: var(--green); }
.settlement-badge.protected-win { background: var(--blue-soft); color: var(--blue); }
.settlement-badge.miss { background: var(--red-soft); color: var(--red); }
.settlement-badge.push { background: #f0f2f5; color: #475467; }
.settlement-badge.half-win { background: #edf8f2; color: #117a48; }
.settlement-badge.half-loss { background: var(--amber-soft); color: var(--amber); }

.rule-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 25px; border-block: 1px solid var(--line); }
.rule-notes article { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 18px 22px; border-right: 1px solid var(--line); }
.rule-notes article:first-child { padding-left: 0; }
.rule-notes article:last-child { border-right: 0; }
.rule-notes h3 { margin: 1px 0 6px; font-size: 13px; }
.rule-notes p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.rule-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 7px; background: var(--blue-soft); color: var(--blue); }
.rule-icon svg { width: 17px; }
.rule-icon.risk-icon { background: var(--red-soft); color: var(--red); }
.rule-icon.legacy-icon { background: var(--amber-soft); color: var(--amber); }

.archive-footer { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; color: var(--muted); font-size: 11px; }
.archive-footer > div { display: flex; align-items: center; gap: 7px; }
.archive-footer svg { width: 15px; }
.archive-footer strong { color: var(--ink); }
.archive-footer button { display: inline-flex; height: 34px; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 7px; background: #fff; padding: 0 10px; cursor: pointer; }
.archive-footer button:hover { background: var(--soft); }

.review-empty { display: grid; min-height: 520px; place-items: center; align-content: center; text-align: center; }
.review-empty > span { display: grid; width: 54px; height: 54px; margin-bottom: 16px; place-items: center; border-radius: 8px; background: var(--soft); }
.review-empty > span svg { width: 25px; }
.review-empty h2 { margin-bottom: 8px; }
.review-empty > p { max-width: 560px; margin-bottom: 28px; color: var(--muted); line-height: 1.7; }
.review-steps { display: grid; grid-template-columns: repeat(3, 1fr); width: min(620px, 100%); border-block: 1px solid var(--line); }
.review-steps div { display: flex; align-items: center; gap: 9px; padding: 15px; border-right: 1px solid var(--line); text-align: left; }
.review-steps div:last-child { border-right: 0; }
.review-steps strong { display: grid; width: 24px; height: 24px; flex: 0 0 24px; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-size: 10px; }
.review-steps span { font-size: 11px; }

.verified-label { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: 11px; font-weight: 700; }
.verified-label svg { width: 16px; }
.review-result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.review-result-card { border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; cursor: pointer; }
.review-result-card:hover { border-color: #b8c3d3; }
.review-result-card header { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; min-height: 74px; border-bottom: 1px solid var(--line); padding: 12px 14px; }
.review-result-card header > div { display: grid; gap: 6px; }
.review-result-card header span { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 650; }
.review-result-card header > strong { font-size: 24px; }
.review-market-line { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; min-height: 48px; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); padding: 8px 14px; }
.review-market-line:last-child { border-bottom: 0; }
.review-market-line > span:first-child { color: var(--muted); font-size: 10px; }
.review-market-line > strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.settlement-guide { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 24px; }
.settlement-rule-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.settlement-rule-grid article { min-height: 150px; border-right: 1px solid var(--line); padding: 17px; }
.settlement-rule-grid article:first-child { padding-left: 0; }
.settlement-rule-grid article:last-child { border-right: 0; }
.rule-line { display: inline-block; border-radius: 4px; background: var(--soft); padding: 4px 7px; color: var(--blue); font-size: 10px; font-weight: 750; }
.settlement-rule-grid h3 { margin: 12px 0 7px; }
.settlement-rule-grid p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.settlement-example { display: grid; grid-template-columns: 36px 1fr; gap: 11px; align-items: start; margin-top: 18px; border: 1px solid #f0dfaf; border-radius: 8px; background: #fffdf7; padding: 14px; }
.settlement-example > svg { width: 19px; color: var(--amber); }
.settlement-example strong { display: block; margin-bottom: 4px; font-size: 12px; }
.settlement-example span { color: #6d521d; font-size: 11px; line-height: 1.6; }

.rules-workflow { display: grid; grid-template-columns: 1fr 38px 1fr 38px 1fr; align-items: stretch; margin-top: 20px; }
.rules-workflow.two-stage { grid-template-columns: 1fr 38px 1fr; }
.rules-workflow article { border-top: 3px solid var(--ink); padding: 16px 8px 18px 0; }
.rules-workflow article > span { color: var(--blue); font-size: 11px; font-weight: 750; }
.rules-workflow h3 { margin: 8px 0 7px; }
.rules-workflow p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.rules-workflow > svg { width: 17px; align-self: center; justify-self: center; color: var(--muted); }
.rule-detail { margin-top: 26px; border: 1px solid #f0dfaf; border-radius: 8px; background: #fffdf7; padding: 18px; }
.rule-detail > div { display: grid; grid-template-columns: 36px 1fr; gap: 12px; }
.rule-detail h3 { margin: 1px 0 6px; }
.rule-detail p { margin: 0; color: #6d521d; line-height: 1.65; }

.research-modal-body { display: grid; gap: 16px; }
.modal-fixture { display: grid; grid-template-columns: 1fr 52px 1fr; align-items: center; padding: 5px 0 8px; }
.modal-fixture > div { display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 16px; }
.modal-fixture > span { color: var(--muted); font-size: 11px; text-align: center; }
.modal-fixture .country-flag { width: 30px; height: 20px; flex-basis: 30px; }
.execution-alert, .protection-alert, .legacy-alert { display: grid; grid-template-columns: 24px 1fr; gap: 10px; border-radius: 7px; padding: 12px 14px; }
.execution-alert { background: var(--blue-soft); color: var(--blue); }
.execution-alert.completed-alert { background: var(--green-soft); color: var(--green); }
.protection-alert { background: var(--red-soft); color: var(--red); }
.legacy-alert { background: var(--amber-soft); color: #805d1d; }
.execution-alert > svg, .protection-alert > svg, .legacy-alert > svg { width: 18px; }
.execution-alert strong, .protection-alert strong, .legacy-alert strong { display: block; margin-bottom: 3px; font-size: 12px; }
.execution-alert span, .protection-alert span, .legacy-alert span { font-size: 11px; line-height: 1.5; }
.modal-market-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.modal-market { min-height: 88px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px; }
.modal-market:nth-child(2n) { border-right: 0; }
.modal-market:nth-last-child(-n+2) { border-bottom: 0; }
.modal-market.protected { background: #fffafa; }
.modal-market > span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; }
.modal-market > strong { display: block; font-size: 16px; }
.modal-market > .settlement-badge { margin-top: 9px; }
.active-modal-market p { min-height: 34px; margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.active-modal-market > .decision-badge { margin-top: 9px; }
.active-modal-market.conflict-market { background: #fffaf1; }
.active-modal-market .risk-text { margin-top: 9px; color: #805d1d; font-size: 10px; font-weight: 700; }
.decision-alert { background: #f6f9ff; color: #2459a9; }
.modal-score-section { border-top: 3px solid var(--ink); padding-top: 14px; }
.modal-score-section h3 { margin-bottom: 11px; }
.modal-score-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.modal-score-title > span { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; }
.large-score-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.large-score-chips span { display: flex; min-height: 48px; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 7px; padding: 0 13px; font-size: 16px; font-weight: 750; }
.large-score-chips small { color: var(--muted); font-size: 9px; font-weight: 600; }

@media (max-width: 900px) {
  .research-vertical-list { grid-template-columns: 1fr; }
  .compact-accordion-grid { grid-template-columns: 1fr 1fr; }
  .compact-accordion-field:nth-child(2) { border-right: 0; }
  .compact-accordion-field:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .review-result-grid { grid-template-columns: 1fr; }
  .settlement-rule-grid { grid-template-columns: 1fr 1fr; }
  .settlement-rule-grid article:nth-child(2) { border-right: 0; }
  .settlement-rule-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .rule-notes { grid-template-columns: 1fr; }
  .rule-notes article, .rule-notes article:first-child { padding: 15px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .rule-notes article:last-child { border-bottom: 0; }
  .rules-workflow { grid-template-columns: 1fr; gap: 12px; }
  .rules-workflow > svg { display: none; }
}

@media (max-width: 620px) {
  .announcement-backdrop { padding: 16px; }
  .announcement-header, .announcement-body { padding-inline: 16px; }
  .qr-placeholder { width: min(210px, 100%); }
  .research-toolbar { align-items: flex-start; flex-direction: column; }
  .toolbar-legend { flex-wrap: wrap; }
  .compact-list-row { min-height: 78px; }
  .compact-accordion-trigger { grid-template-columns: 54px minmax(0, 1fr) 24px 18px; grid-template-rows: auto; gap: 10px; padding: 10px 7px 10px 11px; }
  .compact-list-code { grid-row: 1; }
  .compact-list-direction { grid-column: 2; grid-row: 1; }
  .compact-list-direction strong { overflow: visible; font-size: 13px; line-height: 1.35; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
  .compact-header-grade { grid-column: 3; grid-row: 1; }
  .compact-accordion-trigger > .match-ready { display: none; }
  .compact-accordion-trigger > .accordion-chevron { grid-column: 4; grid-row: 1; }
  .compact-accordion-grid { grid-template-columns: 1fr; min-height: 0; }
  .compact-accordion-field, .compact-accordion-field:nth-child(2) { min-height: 70px; border-right: 0; border-bottom: 1px solid var(--line); padding: 14px; }
  .compact-accordion-field:last-child { border-bottom: 0; }
  .compact-accordion-field strong { font-size: 13px; }
  .compact-scores .score-chips { flex-wrap: wrap; }
  .research-heading .last-updated { display: none; }
  .research-table-wrap { width: calc(100vw - 32px); }
  .research-table { min-width: 1040px; }
  .research-table th:first-child, .research-table td:first-child { position: sticky; left: 0; z-index: 2; background: #fff; box-shadow: 1px 0 var(--line); }
  .research-table th:first-child { z-index: 3; background: #fafbfc; }
  .legacy-row td:first-child { background: #fffdf7; }
  .vertical-card-header { grid-template-columns: 66px minmax(0, 1fr) 34px; gap: 10px; padding-inline: 11px; }
  .active-card-header { grid-template-columns: 66px minmax(0, 1fr) 70px; }
  .vertical-actions .save-button { grid-column: auto; grid-row: auto; }
  .match-list-row { grid-template-columns: minmax(0, 1fr) 46px; min-height: 92px; }
  .match-accordion-trigger { grid-template-columns: 66px minmax(0, 1fr) 18px; grid-template-rows: auto auto; gap: 5px 10px; padding-inline: 11px 7px; }
  .match-list-time { grid-row: 1 / 3; }
  .match-list-fixture { grid-column: 2; grid-row: 1; gap: 5px; }
  .match-ready { display: none; }
  .match-accordion-trigger > .risk-pill { grid-column: 2; grid-row: 2; justify-self: start; }
  .accordion-chevron { grid-column: 3; grid-row: 1 / 3; }
  .match-list-row > .save-button { grid-column: 2; grid-row: 1; }
  .final-score-badge small { display: none; }
  .vertical-actions .gate-status { display: none; }
  .vertical-market-row { grid-template-columns: 70px minmax(0, 1fr) 100px; gap: 8px; padding-inline: 11px; }
  .decision-summary { align-items: flex-start; flex-direction: column; gap: 5px; padding-inline: 11px; }
  .decision-summary > div { align-items: flex-start; flex-direction: column; gap: 3px; }
  .decision-summary small { max-width: none; text-align: left; }
  .decision-market-row { grid-template-columns: 62px minmax(0, 1fr) auto; min-height: 94px; }
  .recommendation-stack strong { font-size: 14px; }
  .recommendation-stack span { font-size: 10px; }
  .decision-badge { padding-inline: 6px; font-size: 9px; }
  .direction-block { gap: 7px; }
  .direction-block > span { min-width: 36px; font-size: 17px; }
  .direction-block > strong { font-size: 12px; }
  .vertical-probability { grid-template-columns: 42px 1fr; gap: 4px; }
  .vertical-score-footer { padding-inline: 11px; }
  .vertical-score-footer > small { display: none; }
  .score-review > strong { display: none; }
  .active-card-footer { grid-template-columns: 82px minmax(0, 1fr); gap: 12px; padding-inline: 11px; }
  .score-inline { grid-template-columns: 1fr; gap: 4px; }
  .risk-inline { grid-column: 1 / -1; border-top: 1px solid var(--line); border-left: 0; padding: 10px 0 0; }
  .review-result-card header > strong { font-size: 21px; }
  .settlement-rule-grid { grid-template-columns: 1fr; }
  .settlement-rule-grid article, .settlement-rule-grid article:first-child { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 0; }
  .settlement-rule-grid article:last-child { border-bottom: 0; }
  .archive-footer { align-items: flex-start; flex-direction: column; padding-block: 10px; }
  .review-steps { grid-template-columns: 1fr; }
  .review-steps div { border-right: 0; border-bottom: 1px solid var(--line); }
  .review-steps div:last-child { border-bottom: 0; }
  .modal-market-grid { grid-template-columns: 1fr; }
  .modal-market, .modal-market:nth-child(2n), .modal-market:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .modal-market:last-child { border-bottom: 0; }
  .modal-fixture { grid-template-columns: 1fr 34px 1fr; }
  .modal-fixture > div { font-size: 12px; }
  .modal-fixture .country-flag { width: 24px; height: 16px; flex-basis: 24px; }
}
