/* G8 — compact professional match intelligence workspace. */

.nav-live-dot {
  background: #1ac785;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(26, 199, 133, 0.1);
  height: 8px;
  margin-left: auto;
  width: 8px;
}

.match-workbench {
  --match-ink: #0c1d35;
  --match-blue: #2166ef;
  --match-cyan: #0aaeca;
  --match-purple: #7567ee;
  display: grid;
  gap: 18px;
  padding-bottom: 48px;
}

.match-command {
  background:
    radial-gradient(circle at 92% 4%, rgba(42, 105, 239, 0.12), transparent 17rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(247, 251, 255, 0.96));
  border-color: rgba(205, 220, 242, 0.9);
  box-shadow: 0 20px 50px rgba(32, 67, 119, 0.08);
  overflow: hidden;
  padding: 24px;
  position: relative;
}

.match-command::after {
  background-image:
    linear-gradient(rgba(68, 113, 186, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(68, 113, 186, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  content: "";
  height: 118px;
  mask-image: linear-gradient(90deg, transparent, #000);
  opacity: 0.5;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  width: 34%;
}

.match-command-heading,
.match-result-toolbar,
.match-card-heading,
.match-result-identity,
.match-result-actions,
.match-compose-actions,
.match-l0-meta,
.match-chart-legend,
.match-drawer-head {
  align-items: center;
  display: flex;
}

.match-command-heading {
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.match-command-heading h2 {
  color: var(--match-ink);
  font-size: clamp(22px, 2.1vw, 32px);
  letter-spacing: -0.035em;
  line-height: 1.18;
  margin: 5px 0 7px;
}

.match-command-heading p {
  color: #6c7d95;
  margin: 0;
}

.match-preflight {
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #dae5f4;
  border-radius: 14px;
  display: grid;
  grid-template-columns: 10px auto;
  min-width: 176px;
  padding: 12px 14px;
}

.match-preflight strong {
  color: #2c405e;
  font-size: 12px;
  line-height: 1.25;
}

.match-preflight small {
  color: #9aa7ba;
  font-size: 9px;
  font-weight: 800;
  grid-column: 2;
  letter-spacing: 0.14em;
  margin-top: 3px;
}

.match-preflight.is-ready strong { color: #137850; }
.match-preflight.is-partial strong { color: #a9680d; }

.match-pulse {
  background: #25c886;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(37, 200, 134, 0.12);
  height: 7px;
  margin-top: 4px;
  width: 7px;
}

.match-command-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.72fr);
  margin-top: 23px;
  position: relative;
  z-index: 1;
}

.match-compose {
  min-width: 0;
}

.match-input-mode,
.match-view-tabs,
.match-section-tabs {
  align-items: center;
  display: flex;
  gap: 4px;
}

.match-input-mode {
  background: #edf3fb;
  border: 1px solid #e0e8f3;
  border-radius: 11px;
  padding: 3px;
  width: fit-content;
}

.match-input-mode button,
.match-view-tabs button,
.match-section-tabs button {
  background: transparent;
  border: 0;
  color: #78889d;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
}

.match-input-mode button {
  border-radius: 8px;
  padding: 7px 13px;
}

.match-input-mode button.is-active {
  background: #fff;
  box-shadow: 0 4px 12px rgba(46, 78, 123, 0.09);
  color: #1d56be;
}

.match-template-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}

.match-template-option {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid #dde7f3;
  border-radius: 13px;
  color: #667991;
  cursor: pointer;
  min-height: 76px;
  padding: 11px 12px;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.match-template-option:hover {
  border-color: #b9cff0;
  transform: translateY(-1px);
}

.match-template-option.is-active {
  background: linear-gradient(145deg, #f4f8ff, #fff);
  border-color: rgba(33, 102, 239, 0.62);
  box-shadow: 0 8px 20px rgba(33, 102, 239, 0.1), inset 0 0 0 1px rgba(33, 102, 239, 0.05);
}

.match-template-option strong,
.match-template-option small {
  display: block;
}

.match-template-option strong {
  color: #243a5a;
  font-size: 12px;
  margin-bottom: 5px;
}

.match-template-option small {
  font-size: 10px;
  line-height: 1.45;
}

.match-prompt-field {
  display: grid;
  gap: 6px;
  margin-top: 13px;
}

.match-prompt-field > span,
.match-field > span:first-child,
.match-range-fields label > span {
  color: #75869d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.match-prompt-field textarea,
.match-field select,
.match-range-fields input,
.match-history-select {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #dce6f2;
  border-radius: 11px;
  color: #263b58;
  font: inherit;
  outline: 0;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.match-prompt-field textarea {
  min-height: 72px;
  padding: 11px 13px;
  resize: vertical;
}

.match-prompt-field textarea:focus,
.match-field select:focus,
.match-range-fields input:focus,
.match-history-select:focus {
  border-color: rgba(33, 102, 239, 0.65);
  box-shadow: 0 0 0 3px rgba(33, 102, 239, 0.1);
}

.match-field-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1.45fr 0.8fr 1.15fr;
  margin-top: 14px;
}

.match-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.match-select-shell {
  display: block;
  position: relative;
}

.match-select-shell select {
  appearance: none;
  cursor: pointer;
  min-height: 42px;
  padding: 0 34px 0 12px;
  width: 100%;
}

.match-select-shell > .ui-icon {
  color: #8292a8;
  pointer-events: none;
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
}

.match-range-fields {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.match-range-fields label {
  display: grid;
  gap: 5px;
  max-width: 170px;
}

.match-range-fields input {
  min-height: 40px;
  padding: 0 11px;
  width: 100%;
}

.match-compose-actions {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.match-upload-button {
  cursor: pointer;
}

.match-plan-preview {
  background: linear-gradient(145deg, #0d1e37, #142c50);
  border: 1px solid rgba(91, 145, 222, 0.24);
  border-radius: 16px;
  box-shadow: 0 18px 34px rgba(14, 32, 59, 0.16);
  color: #eaf3ff;
  min-height: 248px;
  overflow: hidden;
  padding: 17px;
  position: relative;
}

.match-plan-preview::before {
  background: radial-gradient(circle, rgba(31, 128, 255, 0.24), transparent 68%);
  content: "";
  height: 170px;
  position: absolute;
  right: -60px;
  top: -80px;
  width: 170px;
}

.match-preview-placeholder {
  align-items: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  min-height: 212px;
  position: relative;
  text-align: center;
}

.match-preview-placeholder > span {
  align-items: center;
  background: rgba(77, 145, 244, 0.16);
  border: 1px solid rgba(115, 170, 249, 0.3);
  border-radius: 12px;
  display: flex;
  font-size: 21px;
  height: 42px;
  justify-content: center;
  margin-bottom: 12px;
  width: 42px;
}

.match-preview-placeholder p {
  color: #90a6c5;
  font-size: 11px;
  margin: 6px auto 0;
  max-width: 220px;
}

.match-plan-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  position: relative;
}

.match-plan-head strong { font-size: 13px; }
.match-plan-head span { color: #62d5e7; font-size: 9px; font-weight: 850; letter-spacing: 0.12em; }

.match-plan-steps {
  display: grid;
  gap: 6px;
  position: relative;
}

.match-plan-step {
  align-items: center;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(164, 199, 245, 0.09);
  border-radius: 9px;
  display: grid;
  gap: 8px;
  grid-template-columns: 19px 1fr auto;
  min-height: 30px;
  padding: 5px 8px;
}

.match-plan-step i {
  align-items: center;
  background: #224f87;
  border-radius: 6px;
  color: #84d8ea;
  display: flex;
  font-size: 9px;
  font-style: normal;
  height: 18px;
  justify-content: center;
  width: 18px;
}

.match-plan-step strong { font-size: 10px; }
.match-plan-step small { color: #829bbd; font-size: 8px; }
.match-plan-output { color: #92a9c8; font-size: 9px; line-height: 1.5; margin: 10px 1px 0; }

.match-loading {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #dce7f4;
  border-radius: 17px;
  display: grid;
  gap: 16px;
  grid-template-columns: 54px 1fr 200px;
  padding: 16px 20px;
}

.match-loading-orbit {
  align-items: center;
  border: 1px solid rgba(33, 102, 239, 0.25);
  border-radius: 50%;
  display: flex;
  height: 44px;
  justify-content: center;
  position: relative;
  width: 44px;
}

.match-loading-orbit::after {
  animation: match-spin 1.2s linear infinite;
  border: 2px solid transparent;
  border-radius: 50%;
  border-top-color: var(--match-blue);
  content: "";
  inset: -5px;
  position: absolute;
}

.match-loading-orbit span { color: var(--match-blue); font-size: 10px; font-weight: 900; }
.match-loading strong { display: block; font-size: 13px; }
.match-loading p { color: #8190a5; font-size: 11px; margin: 2px 0 0; }
.match-loading-track { background: #e8eef7; border-radius: 99px; height: 5px; overflow: hidden; }
.match-loading-track i { background: linear-gradient(90deg, var(--match-blue), var(--match-cyan)); border-radius: inherit; display: block; height: 100%; transition: width 220ms ease; width: 0; }

.match-empty {
  align-items: center;
  display: grid;
  gap: 22px;
  grid-template-columns: 116px 1fr minmax(190px, 260px);
  min-height: 162px;
  padding: 24px;
}

.match-review-pending {
  align-items:center;
  background:linear-gradient(135deg,#f8fbff 0%,#eef5ff 100%);
  border:1px solid #d8e5f6;
  display:grid;
  gap:22px;
  grid-template-columns:112px minmax(0,1fr) minmax(220px,300px);
  min-height:164px;
  padding:24px;
}
.match-review-pending-visual { align-items:center; background:#e8f1ff; border:1px solid #d2e2fa; border-radius:20px; display:flex; height:106px; justify-content:center; overflow:hidden; position:relative; }
.match-review-pending-visual span { border:1px solid rgba(47,105,203,.16); border-radius:50%; height:74px; position:absolute; width:74px; }
.match-review-pending-visual span::after { border:1px dashed rgba(47,105,203,.32); border-radius:50%; content:""; inset:9px; position:absolute; }
.match-review-pending-visual b { color:#2864c7; font-size:24px; letter-spacing:.08em; position:relative; }
.match-review-pending-visual i { background:#2871df; border:3px solid #fff; border-radius:50%; bottom:17px; box-shadow:0 4px 12px rgba(32,94,188,.28); height:12px; position:absolute; right:18px; width:12px; }
.match-review-pending-copy h3 { color:#1b3558; font-size:21px; margin:5px 0 6px; }
.match-review-pending-copy p { color:#627792; font-size:14px; line-height:1.65; margin:0; }
.match-review-flow { align-items:center; display:flex; gap:8px; margin-top:17px; overflow:hidden; }
.match-review-flow span { background:#e7edf5; border-radius:99px; color:#7890ac; font-size:12px; font-weight:760; padding:6px 10px; white-space:nowrap; }
.match-review-flow span.is-done { background:#e3edf9; color:#47698f; }
.match-review-flow span.is-active { background:#dceaff; color:#205fbd; }
.match-review-flow i { background:#cad8e9; flex:1; height:1px; min-width:10px; }
.match-review-pending.is-recomputing .match-review-pending-visual span { animation:match-review-orbit 1.8s linear infinite; }
.match-review-pending.is-recomputing #match-review-flow-review { background:#e3edf9; color:#47698f; }
.match-review-pending.is-recomputing #match-review-flow-recompute { background:#dceaff; color:#205fbd; }
.match-review-pending.is-failed { background:#fff8f7; border-color:#f1d8d4; }
.match-review-pending.is-failed .match-review-pending-visual { background:#fff0ed; border-color:#f0d2cd; }
.match-review-pending.is-failed .match-review-pending-visual b { color:#c65043; }
@keyframes match-review-orbit { to { transform:rotate(360deg); } }

@media (max-width:900px) {
  .match-review-pending { grid-template-columns:86px minmax(0,1fr); }
  .match-review-pending-visual { height:82px; }
  .match-review-pending > .match-history-select { grid-column:1/-1; }
}

@media (max-width:620px) {
  .match-review-pending { gap:14px; grid-template-columns:1fr; padding:17px; }
  .match-review-pending-visual { display:none; }
  .match-review-pending > .match-history-select { grid-column:auto; }
  .match-review-flow { align-items:stretch; display:grid; grid-template-columns:1fr 1fr; }
  .match-review-flow i { display:none; }
}

.match-empty h3 { font-size: 19px; margin: 5px 0; }
.match-empty p { color: #7b8aa0; margin: 0; }
.match-empty-visual { align-items: center; background: #0e213d; border-radius: 15px; display: flex; height: 90px; justify-content: center; overflow: hidden; position: relative; }
.match-empty-visual b { color: #fff; font-size: 25px; position: relative; z-index: 2; }
.match-empty-visual i { background: #22b8d2; border-radius: 50%; bottom: 17px; box-shadow: 0 0 18px #22b8d2; height: 5px; position: absolute; right: 20px; width: 5px; }
.match-empty-grid { background-image: linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px); background-size: 15px 15px; inset: 0; position: absolute; transform: perspective(100px) rotateX(55deg) scale(1.5); }
.match-history-select { appearance: none; min-height: 42px; padding: 0 12px; width: 100%; }

.match-result {
  display: grid;
  gap: 16px;
}

.match-result-toolbar { justify-content: space-between; }
.match-result-identity { gap: 10px; }
.match-result-identity > div { display: grid; }
.match-result-identity strong { color: #1b304d; font-size: 14px; }
.match-result-identity small { color: #8695aa; font-size: 10px; }
.match-result-actions { gap: 10px; }
.match-updated { color: #8b99ab; font-size: 10px; }
.match-history-shell { min-width: 210px; }

.match-mode-badge,
.match-block-state,
.match-cache-summary {
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  padding: 6px 9px;
}

.match-mode-badge.cached { background: #e8f3ff; color: #2363ce; }
.match-mode-badge.live { background: #e6faf3; color: #14835b; }
.match-mode-badge.offline,.match-mode-badge.partial { background: #fff4df; color: #a5680d; }

.match-l0-card {
  background:
    radial-gradient(circle at 83% 0, rgba(40, 130, 255, 0.12), transparent 20rem),
    linear-gradient(120deg, #fff, #f5f9ff);
  border: 1px solid #dce7f4;
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(31, 65, 112, 0.07);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.65fr) minmax(180px, 0.55fr) minmax(230px, 0.65fr);
  min-height: 174px;
  overflow: hidden;
  padding: 23px;
  position: relative;
}

.match-l0-copy h3 {
  color: #132846;
  font-size: clamp(17px, 1.6vw, 23px);
  font-weight: 720;
  letter-spacing: -0.02em;
  line-height: 1.55;
  margin: 7px 0 14px;
}

.match-l0-meta { flex-wrap: wrap; gap: 7px; }
.match-l0-meta span { background: #fff; border: 1px solid #dce7f3; border-radius: 999px; color: #60748e; font-size: 10px; padding: 5px 9px; }

.match-primary-formation {
  align-items: center;
  border-left: 1px solid #e2eaf5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.match-primary-formation .formation-code { color: #1859d0; font-size: 32px; font-weight: 860; letter-spacing: -0.04em; line-height: 1; }
.match-primary-formation .formation-label { color: #7e8fa5; font-size: 9px; font-weight: 850; letter-spacing: 0.11em; margin-top: 8px; }
.match-primary-formation .formation-confidence { color: #405977; font-size: 10px; margin-top: 4px; }

.match-core-metrics { align-content: center; display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.match-core-metric { background: rgba(255,255,255,.72); border: 1px solid #e0e9f4; border-radius: 11px; display: grid; padding: 10px; }
.match-core-metric span { color: #8493a8; font-size: 9px; }
.match-core-metric strong { color: #263e60; font-size: 17px; margin-top: 2px; }
.match-core-metric small { color: #9aa7b8; font-size: 8px; }

.match-segment-rail {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.match-segment-chip {
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #dde6f2;
  border-radius: 12px;
  cursor: pointer;
  display: grid;
  gap: 9px;
  grid-template-columns: auto 1fr auto;
  min-height: 53px;
  padding: 8px 11px;
  text-align: left;
}

.match-segment-chip.is-active { background: #fff; border-color: rgba(33,102,239,.55); box-shadow: 0 8px 18px rgba(33,102,239,.08); }
.match-segment-index { align-items: center; background: #edf3fb; border-radius: 8px; color: #527099; display: flex; font-size: 9px; font-weight: 900; height: 29px; justify-content: center; width: 29px; }
.match-segment-chip.is-active .match-segment-index { background: #1f62e6; color: #fff; }
.match-segment-chip > span:nth-child(2) { display: grid; }
.match-segment-chip strong { color: #2a405f; font-size: 11px; }
.match-segment-chip small { color: #8a98aa; font-size: 9px; }
.match-segment-quality { color: #16835d; font-size: 9px; font-weight: 800; }

.match-analysis-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1.75fr) minmax(290px, .78fr); }
.match-detail-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); }
.match-visual-card,.match-findings-card,.match-sections-card,.match-video-card,.match-pipeline-card { padding: 20px; }
.match-card-heading { justify-content: space-between; }
.match-card-heading h3 { color: #203756; font-size: 16px; margin: 3px 0 0; }

.match-view-tabs { background: #eff4fa; border-radius: 9px; padding: 3px; }
.match-view-tabs button { border-radius: 7px; padding: 6px 10px; }
.match-view-tabs button.is-active { background: #fff; box-shadow: 0 3px 9px rgba(44,75,116,.09); color: #255fc8; }

.match-visual-stage {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 380px;
  overflow: hidden;
  padding: 14px 4px 4px;
}

.match-pitch-wrap { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr) 190px; width: 100%; }
.match-pitch-svg { filter: drop-shadow(0 12px 24px rgba(20,60,92,.12)); max-height: 350px; width: 100%; }
.match-pitch-notes { align-content: center; display: grid; gap: 8px; }
.match-pitch-note { background: #f7f9fc; border: 1px solid #e1e8f2; border-radius: 10px; display: grid; padding: 9px 10px; }
.match-pitch-note span { color: #8593a6; font-size: 9px; }
.match-pitch-note strong { color: #29405f; font-size: 13px; margin-top: 2px; }

.match-chart-legend { border-top: 1px solid #e8edf5; color: #7b8a9e; font-size: 9px; gap: 14px; padding-top: 11px; }
.match-chart-legend span { align-items: center; display: flex; gap: 5px; }
.match-chart-legend i { border-radius: 50%; display: inline-block; height: 7px; width: 7px; }
.match-chart-legend .observed { background: #1b68eb; }
.match-chart-legend .inferred { background: transparent; border: 1px dashed #7e8ea6; }
.match-chart-legend .uncertain { background: #d9e1ec; }

.match-probability-view { display: grid; gap: 13px; margin: auto; max-width: 610px; width: 100%; }
.match-probability-head { display: flex; justify-content: space-between; }
.match-probability-head div { display: grid; }
.match-probability-head strong { color: #243d60; font-size: 15px; }
.match-probability-head small { color: #8795a8; font-size: 10px; }
.match-probability-row { align-items: center; display: grid; gap: 10px; grid-template-columns: 86px 1fr 46px; }
.match-probability-row > span { color: #526883; font-size: 11px; font-weight: 750; }
.match-probability-track { background: #edf1f7; border-radius: 99px; height: 9px; overflow: hidden; }
.match-probability-track i { background: linear-gradient(90deg,#2968e9,#52a8ee); border-radius: inherit; display: block; height: 100%; }
.match-probability-row.unknown .match-probability-track { background: repeating-linear-gradient(135deg,#edf0f5,#edf0f5 4px,#e1e6ee 4px,#e1e6ee 8px); }
.match-probability-row.unknown .match-probability-track i { background: rgba(118,134,158,.48); }
.match-probability-row strong { color: #304969; font-size: 11px; text-align: right; }
.match-probability-foot { background: #f7f9fc; border: 1px solid #e3e9f1; border-radius: 10px; color: #78889d; font-size: 10px; padding: 9px 11px; }

.match-compare-view { display: grid; gap: 14px; width: 100%; }
.match-scatter-svg { height: 250px; width: 100%; }
.match-compare-table { display: grid; gap: 6px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.match-compare-item { background: #f7f9fc; border: 1px solid #e3eaf3; border-radius: 10px; display: grid; gap: 2px; padding: 9px 10px; }
.match-compare-item span { color: #8492a5; font-size: 9px; }
.match-compare-item strong { color: #2c4566; font-size: 12px; }

.match-findings-card { min-height: 470px; }
.match-finding-list { display: grid; gap: 8px; margin-top: 14px; }
.match-finding-item { background: #f9fbfd; border: 1px solid #e3eaf3; border-radius: 12px; cursor: pointer; display: grid; gap: 6px; padding: 12px; text-align: left; transition: border-color 150ms ease, transform 150ms ease; }
.match-finding-item:hover { border-color: #b9ceed; transform: translateX(2px); }
.match-finding-top { align-items: center; display: flex; justify-content: space-between; }
.match-finding-type { color: #2866d3; font-size: 9px; font-weight: 850; letter-spacing: .08em; }
.match-confidence { background: #ecf4ff; border-radius: 999px; color: #3870c8; font-size: 8px; padding: 3px 6px; }
.match-finding-item strong { color: #2a415f; font-size: 12px; }
.match-finding-item p { color: #718198; font-size: 10px; line-height: 1.55; margin: 0; }
.match-finding-foot { align-items: center; color: #92a0b2; display: flex; font-size: 8px; justify-content: space-between; }

.match-block-state { background: #eef3fa; color: #647b99; }
.match-section-tabs { border-bottom: 1px solid #e5ebf3; margin-top: 13px; }
.match-section-tabs button { border-bottom: 2px solid transparent; border-radius: 0; padding: 9px 12px 10px; }
.match-section-tabs button.is-active { border-bottom-color: #2566e7; color: #245fc8; }
.match-section-content { min-height: 178px; padding: 16px 2px 2px; }
.match-section-status { align-items: center; color: #8796a9; display: flex; font-size: 9px; gap: 7px; margin-bottom: 9px; }
.match-section-status i { background: #20be80; border-radius: 50%; height: 6px; width: 6px; }
.match-section-status.is-fallback i { background: #e1a126; }
.match-section-content p { color: #536983; font-size: 12px; line-height: 1.8; margin: 0; }
.match-section-claims { display: grid; gap: 6px; margin-top: 13px; }
.match-section-claim { align-items: flex-start; background: #f7f9fc; border: 1px solid #e5eaf2; border-radius: 9px; color: #6d7f94; cursor: pointer; display: grid; font-size: 10px; gap: 8px; grid-template-columns: 18px 1fr; padding: 8px 9px; text-align: left; }
.match-section-claim span { align-items: center; background: #e9f1ff; border-radius: 5px; color: #2762c7; display: flex; font-size: 8px; height: 18px; justify-content: center; }

.match-video-stage { background: #0c1c32; border: 1px solid #173352; border-radius: 12px; height: 218px; margin-top: 13px; overflow: hidden; position: relative; }
.match-video-stage video { height: 100%; object-fit: contain; width: 100%; }
.match-video-placeholder { align-items: center; color: #dceaff; display: flex; flex-direction: column; height: 100%; justify-content: center; overflow: hidden; padding: 18px; position: relative; text-align: center; }
.match-video-placeholder > .ui-icon { color: #61c8e0; font-size: 27px; margin-bottom: 10px; position: relative; }
.match-video-placeholder strong { font-size: 11px; position: relative; }
.match-video-placeholder small { color: #829ab8; font-size: 9px; margin-top: 4px; max-width: 280px; position: relative; }
.match-scan { animation: match-scan 3.5s ease-in-out infinite; background: linear-gradient(90deg,transparent,rgba(63,181,224,.26),transparent); height: 1px; left: 0; position: absolute; top: 30%; width: 100%; }
.match-video-placeholder::before { background-image: linear-gradient(rgba(93,137,187,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(93,137,187,.08) 1px,transparent 1px); background-size: 25px 25px; content:""; inset:0; position:absolute; }

.match-evidence-timeline { height: 45px; margin-top: 11px; position: relative; }
.match-evidence-timeline::before { background: #dfe7f1; border-radius: 99px; content:""; height: 3px; left: 4px; position: absolute; right: 4px; top: 15px; }
.match-timeline-point { background: #2464df; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #9bb8e4; cursor: pointer; height: 11px; padding: 0; position: absolute; top: 11px; transform: translateX(-50%); width: 11px; }
.match-timeline-point.is-active { background: #0bb4cd; box-shadow: 0 0 0 3px rgba(11,180,205,.15); }
.match-timeline-label { color: #8a98aa; font-size: 8px; position: absolute; top: 27px; transform: translateX(-50%); white-space: nowrap; }

.match-pipeline-card { overflow: hidden; }
.match-cache-summary { background: #e7f8f2; color: #18815c; }
.match-pipeline { display: flex; gap: 0; margin-top: 17px; overflow-x: auto; padding-bottom: 5px; }
.match-pipeline-step { align-items: center; display: flex; flex: 1 0 118px; min-width: 0; position: relative; }
.match-pipeline-step:not(:last-child)::after { background: #dbe5f1; content:""; height: 1px; position: absolute; right: -1px; top: 18px; width: 22px; }
.match-pipeline-node { align-items: center; background: #f8fafc; border: 1px solid #dfe7f1; border-radius: 11px; display: grid; grid-template-columns: 27px 1fr; min-height: 52px; padding: 7px 8px; width: calc(100% - 20px); }
.match-pipeline-node > i { align-items:center; background:#e9f2ff; border-radius:8px; color:#2661c7; display:flex; font-size:8px; font-style:normal; font-weight:900; height:27px; justify-content:center; width:27px; }
.match-pipeline-node > span { display:grid; margin-left:7px; min-width:0; }
.match-pipeline-node strong { color:#344b68; font-size:9px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.match-pipeline-node small { color:#909daf; font-size:7px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.match-pipeline-node em { color:#19815d; font-size:7px; font-style:normal; font-weight:800; grid-column:2; margin-left:7px; }
.match-pipeline-node.is-fallback em,.match-pipeline-node.is-degraded em { color:#a86b10; }
.match-pipeline-node.is-running { border-color:#77a4ef; box-shadow:0 0 0 3px rgba(33,102,239,.08); }

.match-evidence-drawer {
  background: #fff;
  border-left: 1px solid #dbe5f1;
  bottom: 0;
  box-shadow: -24px 0 55px rgba(17, 39, 72, 0.14);
  max-width: 440px;
  overflow-y: auto;
  padding: 23px;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(105%);
  transition: transform 220ms ease;
  width: min(92vw, 440px);
  z-index: 80;
}

.match-evidence-drawer.is-open { transform: translateX(0); }
.match-drawer-scrim { background: rgba(10,25,45,.24); inset:0; position:fixed; z-index:79; }
.match-drawer-head { border-bottom:1px solid #e5ebf3; justify-content:space-between; padding-bottom:14px; }
.match-drawer-head h3 { font-size:18px; margin:4px 0 0; }
.match-drawer-head button { align-items:center; background:#f1f4f8; border:0; border-radius:9px; color:#708198; cursor:pointer; display:flex; height:32px; justify-content:center; width:32px; }
.match-evidence-detail { display:grid; gap:15px; padding-top:17px; }
.match-evidence-claim { background:linear-gradient(145deg,#f3f7ff,#fff); border:1px solid #dce7f6; border-radius:13px; padding:14px; }
.match-evidence-claim span { color:#2462cb; font-size:9px; font-weight:850; letter-spacing:.08em; }
.match-evidence-claim p { color:#344d6c; font-size:12px; line-height:1.75; margin:7px 0 0; }
.match-evidence-meta { display:grid; gap:7px; grid-template-columns:repeat(2,minmax(0,1fr)); }
.match-evidence-meta div { background:#f7f9fc; border:1px solid #e5eaf1; border-radius:10px; display:grid; padding:9px; }
.match-evidence-meta span { color:#8d9aac; font-size:8px; }
.match-evidence-meta strong { color:#3b5270; font-size:10px; margin-top:2px; }
.match-fact-list { display:grid; gap:8px; }
.match-fact-item { border:1px solid #e1e8f1; border-radius:11px; padding:10px; }
.match-fact-item header { align-items:center; display:flex; justify-content:space-between; }
.match-fact-item code { color:#2a62bc; font-family:"Cascadia Code",Consolas,monospace; font-size:8px; }
.match-fact-item header span { color:#8796aa; font-size:8px; }
.match-fact-item strong { color:#304865; display:block; font-size:10px; margin-top:7px; }
.match-fact-value { color:#6c7e94; font-family:"Cascadia Code",Consolas,monospace; font-size:9px; margin-top:4px; overflow-wrap:anywhere; }
.match-lineage { display:flex; flex-wrap:wrap; gap:5px; }
.match-lineage span { background:#edf4ff; border:1px solid #dce9fb; border-radius:999px; color:#4a6f9f; font-size:8px; padding:5px 7px; }
.match-evidence-seek { width:100%; }

.match-error-state { align-items:center; color:#7f8fa4; display:flex; flex-direction:column; justify-content:center; min-height:250px; text-align:center; }
.match-error-state .ui-icon { color:#d48b27; font-size:25px; margin-bottom:9px; }
.match-error-state strong { color:#3c526f; }
.match-error-state p { font-size:11px; margin:4px 0 0; }

@keyframes match-spin { to { transform: rotate(360deg); } }
@keyframes match-scan { 0%,100% { transform:translateY(-42px); opacity:.25; } 50% { transform:translateY(92px); opacity:1; } }

@media (max-width: 1220px) {
  .match-command-grid { grid-template-columns: 1fr; }
  .match-plan-preview { min-height: 0; }
  .match-plan-steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .match-l0-card { grid-template-columns: minmax(0,1.4fr) 170px; }
  .match-core-metrics { grid-column: 1 / -1; grid-template-columns: repeat(4,minmax(0,1fr)); }
  .match-analysis-grid,.match-detail-grid { grid-template-columns: 1fr; }
  .match-findings-card { min-height: 0; }
  .match-finding-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .match-command { padding:18px; }
  .match-command-heading { align-items:flex-start; gap:14px; }
  .match-preflight { min-width:0; }
  .match-template-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .match-field-grid { grid-template-columns:1fr; }
  .match-loading { grid-template-columns:48px 1fr; }
  .match-loading-track { grid-column:1 / -1; }
  .match-empty { grid-template-columns:82px 1fr; }
  .match-empty-visual { height:72px; }
  .match-empty .match-history-select { grid-column:1 / -1; }
  .match-l0-card { grid-template-columns:1fr; }
  .match-primary-formation { border-left:0; border-top:1px solid #e2eaf5; padding-top:16px; }
  .match-core-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .match-segment-rail { grid-template-columns:1fr; }
  .match-finding-list { grid-template-columns:1fr; }
  .match-pitch-wrap { grid-template-columns:1fr; }
  .match-pitch-notes { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .match-result-toolbar { align-items:flex-start; gap:10px; }
  .match-result-actions { align-items:flex-end; flex-direction:column; }
  .match-visual-stage { min-height:330px; }
}

@media (max-width: 560px) {
  .match-command-heading,.match-result-toolbar { flex-direction:column; }
  .match-command-heading .match-preflight { width:100%; }
  .match-template-list { grid-template-columns:1fr; }
  .match-template-option { min-height:0; }
  .match-compose-actions > * { justify-content:center; width:100%; }
  .match-plan-steps { grid-template-columns:1fr; }
  .match-history-shell { min-width:0; width:100%; }
  .match-result-actions { align-items:stretch; width:100%; }
  .match-analysis-grid,.match-detail-grid { display:block; }
  .match-findings-card,.match-video-card { margin-top:14px; }
  .match-visual-card,.match-findings-card,.match-sections-card,.match-video-card,.match-pipeline-card { padding:15px; }
  .match-card-heading { align-items:flex-start; gap:10px; }
  .match-view-tabs button { padding:6px 8px; }
  .match-pitch-notes { grid-template-columns:1fr; }
  .match-compare-table { grid-template-columns:1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .match-loading-orbit::after,.match-scan { animation:none; }
  .match-evidence-drawer,.match-template-option,.match-finding-item { transition:none; }
}

/* G8.1 — coach-first hierarchy, large type and synchronized review. */
.match-workbench {
  font-size: 16px;
  gap: 22px;
}

.match-workbench .eyebrow { font-size: 12px; letter-spacing: .13em; }
.match-command { padding: 30px; }
.match-command-heading h2 { font-size: clamp(30px, 2.5vw, 40px); }
.match-command-heading p { font-size: 16px; line-height: 1.65; }
.match-preflight { min-width: 210px; padding: 15px 17px; }
.match-preflight strong { font-size: 15px; }
.match-preflight small { font-size: 11px; }
.match-pulse { height: 9px; width: 9px; }

.match-input-mode button,
.match-view-tabs button,
.match-section-tabs button,
.match-field select,
.match-range-fields input,
.match-prompt-field textarea,
.match-history-select { font-size: 14px; }
.match-input-mode button { padding: 10px 17px; }
.match-template-option { min-height: 100px; padding: 15px; }
.match-template-option strong { font-size: 15px; }
.match-template-option small { font-size: 13px; line-height: 1.55; }
.match-field > span:first-child,
.match-range-fields label > span,
.match-prompt-field > span { font-size: 13px; }
.match-field select,.match-range-fields input { min-height: 46px; }
.match-prompt-field textarea { line-height: 1.65; min-height: 88px; }
.match-compose-actions .button { font-size: 14px; min-height: 42px; padding-inline: 16px; }

.match-video-ai-option {
  align-items: center;
  background: linear-gradient(115deg, #f2f7ff, #f7fbff);
  border: 1px solid #d8e5f5;
  border-radius: 14px;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: auto auto 1fr auto;
  margin-top: 14px;
  padding: 13px 15px;
}
.match-video-ai-option > input { height: 1px; opacity: 0; position: absolute; width: 1px; }
.match-option-switch { background: #c8d5e7; border-radius: 999px; height: 24px; padding: 3px; transition: background 160ms ease; width: 43px; }
.match-option-switch i { background: #fff; border-radius: 50%; box-shadow: 0 2px 7px rgba(28,55,91,.22); display: block; height: 18px; transition: transform 160ms ease; width: 18px; }
.match-video-ai-option input:checked + .match-option-switch { background: #2369eb; }
.match-video-ai-option input:checked + .match-option-switch i { transform: translateX(19px); }
.match-video-ai-option > span:nth-of-type(2) { display: grid; gap: 2px; }
.match-video-ai-option strong { color: #273f60; font-size: 14px; }
.match-video-ai-option small { color: #70839c; font-size: 12px; line-height: 1.45; }
.match-video-ai-option em { background: #e4efff; border-radius: 999px; color: #2863c8; font-size: 11px; font-style: normal; font-weight: 800; padding: 5px 9px; }
.match-video-ai-option.is-disabled { cursor: not-allowed; filter: grayscale(.25); opacity: .68; }

.match-plan-head strong { font-size: 16px; }
.match-plan-head span { font-size: 11px; }
.match-plan-step strong { font-size: 13px; }
.match-plan-step small { font-size: 11px; }
.match-plan-output { font-size: 12px; line-height: 1.7; }
.match-loading strong { font-size: 16px; }
.match-loading p { font-size: 14px; }
.match-empty h3 { font-size: 23px; }
.match-empty p { font-size: 14px; line-height: 1.65; }

.match-result { gap: 20px; }
.match-result-identity strong { font-size: 17px; }
.match-result-identity small,.match-updated { font-size: 13px; }
.match-mode-badge,.match-block-state,.match-cache-summary { font-size: 11px; padding: 7px 11px; }
.match-l0-card { gap: 23px; grid-template-columns: minmax(0,1.55fr) minmax(190px,.45fr) minmax(280px,.65fr); min-height: 240px; padding: 30px; }
.match-l0-copy h3 { font-size: clamp(24px, 2vw, 31px); line-height: 1.42; margin: 9px 0 8px; }
.match-l0-guidance { color: #526a88; font-size: 16px; line-height: 1.75; margin: 0 0 14px; max-width: 820px; }
.match-l0-meta span { font-size: 13px; padding: 7px 11px; }
.match-play-focus { font-size: 14px; margin-top: 17px; }
.match-primary-formation .formation-code { font-size: 44px; }
.match-primary-formation .formation-label { font-size: 12px; }
.match-primary-formation .formation-confidence { font-size: 13px; line-height: 1.5; max-width: 150px; }
.match-core-metric { border-radius: 13px; padding: 13px; }
.match-core-metric span { font-size: 13px; }
.match-core-metric strong { font-size: 22px; }
.match-core-metric small { font-size: 11px; }

.match-segment-chip { min-height: 70px; padding: 11px 14px; }
.match-segment-index { font-size: 11px; height: 36px; width: 36px; }
.match-segment-chip strong { font-size: 15px; }
.match-segment-chip small,.match-segment-quality { font-size: 12px; }
.match-segment-chip.is-recommended { border-color: rgba(26,157,112,.42); }
.match-segment-chip.is-recommended .match-segment-quality { background: #e6f8f1; border-radius: 999px; padding: 5px 8px; }

.match-review-studio,.match-coach-actions-card { padding: 26px; }
.match-card-heading h3 { font-size: 21px; }
.match-card-heading p { color: #7789a0; font-size: 13px; line-height: 1.55; margin: 5px 0 0; }
.match-sync-grid { display: grid; gap: 18px; grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 20px; }
.match-sync-pane { border: 1px solid #dfe8f3; border-radius: 16px; min-width: 0; overflow: hidden; }
.match-sync-pane > header { align-items: center; background: #f5f8fc; border-bottom: 1px solid #e2e9f2; color: #60748f; display: flex; font-size: 13px; justify-content: space-between; min-height: 44px; padding: 0 15px; }
.match-sync-pane > header strong { color: #263f61; font-size: 13px; }
.match-real-pane { background: #eef3f8; border-color: #d5e1ed; }
.match-real-pane > header { background: #f7fafd; border-bottom-color: #dce6f0; color: #637995; }
.match-real-pane > header strong { color: #263f61; font-variant-numeric: tabular-nums; }
.match-review-studio .match-video-stage { border: 0; border-radius: 0; height: 500px; margin: 0; }
.match-review-studio .match-video-placeholder strong { font-size: 16px; }
.match-review-studio .match-video-placeholder small { font-size: 13px; line-height: 1.6; max-width: 430px; }
.match-virtual-pane { padding-bottom: 12px; }
.match-virtual-pane .match-view-tabs { margin: 12px 14px 0; width: fit-content; }
.match-view-tabs button { font-size: 13px; padding: 8px 12px; }
.match-review-studio .match-visual-stage { min-height: 430px; padding: 12px; }
.match-review-studio .match-pitch-wrap { grid-template-columns: 1fr; }
.match-review-studio .match-pitch-svg { max-height: 330px; }
.match-review-studio .match-pitch-notes { grid-template-columns: repeat(5,minmax(0,1fr)); }
.match-pitch-note { padding: 10px; }
.match-pitch-note span { font-size: 11px; }
.match-pitch-note strong { font-size: 14px; }
.match-chart-legend { font-size: 12px; margin: 0 14px; padding: 11px 0 0; }
.match-shared-timeline { align-items: center; display: grid; gap: 16px; grid-template-columns: 145px 1fr; margin-top: 18px; }
.match-shared-timeline > span { color: #526985; font-size: 13px; font-weight: 750; }
.match-evidence-timeline { margin-top: 0; }
.match-timeline-point { height: 15px !important; top: 9px; width: 15px !important; min-height: 15px !important; }
.match-timeline-label { font-size: 11px; top: 29px; }

.match-coach-actions-card { min-height: 0; }
.match-finding-list { gap: 14px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.match-finding-item.match-coach-action { background: linear-gradient(145deg,#fbfdff,#f5f9ff); border-radius: 15px; cursor: default; gap: 10px; padding: 18px; }
.match-finding-item.match-coach-action:hover { transform: translateY(-2px); }
.match-finding-type { font-size: 11px; }
.match-action-number { color: #9aabc0; font-size: 12px; font-weight: 850; }
.match-coach-action h4 { color: #203957; font-size: 18px; margin: 0; }
.match-coach-action > p { color: #5c718c; font-size: 14px; line-height: 1.7; min-height: 70px; }
.match-coaching-callout { background: #fff; border: 1px solid #dce7f5; border-left: 3px solid #2768df; border-radius: 10px; display: grid; gap: 5px; padding: 11px 12px; }
.match-coaching-callout span,.match-section-coaching span { color: #3970c5; font-size: 11px; font-weight: 850; letter-spacing: .06em; }
.match-coaching-callout strong,.match-section-coaching strong { color: #3e5572; font-size: 13px; font-weight: 650; line-height: 1.65; }
.match-review-points { color: #60758f; display: grid; font-size: 13px; gap: 6px; line-height: 1.5; margin: 0; padding-left: 19px; }
.match-finding-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.match-finding-actions button { align-items: center; background: #eef4fd; border: 1px solid #dbe7f7; border-radius: 9px; color: #2d61b4; cursor: pointer; display: inline-flex; font-size: 12px; font-weight: 750; gap: 5px; min-height: 35px; padding: 7px 10px; }

.match-disclosure { overflow: hidden; padding: 0; }
.match-disclosure > summary { align-items: center; cursor: pointer; display: flex; justify-content: space-between; list-style: none; padding: 20px 24px; }
.match-disclosure > summary::-webkit-details-marker { display: none; }
.match-disclosure > summary > span { display: grid; gap: 3px; }
.match-disclosure > summary small { color: #2d6bd6; font-size: 11px; font-weight: 850; letter-spacing: .12em; }
.match-disclosure > summary strong { color: #263f5e; font-size: 17px; }
.match-disclosure > summary em { color: #8190a3; font-size: 13px; font-style: normal; }
.match-disclosure > summary > .ui-icon { color: #6f8198; transition: transform 160ms ease; }
.match-disclosure[open] > summary > .ui-icon { transform: rotate(180deg); }
.match-disclosure-body { border-top: 1px solid #e5ebf3; padding: 22px 24px 25px; }
.match-section-tabs button { font-size: 14px; padding: 11px 15px 12px; }
.match-section-status { font-size: 12px; }
.match-section-content { min-height: 210px; }
.match-section-content > p { font-size: 16px; line-height: 1.85; }
.match-section-coaching { background: #f4f8fe; border: 1px solid #dce8f7; border-radius: 12px; display: grid; gap: 6px; margin-top: 16px; padding: 13px 14px; }
.match-section-coaching strong { font-size: 14px; }
.match-section-review { color: #5a708a; display: grid; font-size: 14px; gap: 8px; line-height: 1.55; margin: 16px 0; padding-left: 23px; }

.match-probability-head strong { font-size: 17px; }
.match-probability-head small { font-size: 12px; }
.match-probability-row > span,.match-probability-row strong { font-size: 13px; }
.match-probability-foot { font-size: 12px; line-height: 1.6; }
.match-compare-item span { font-size: 11px; }
.match-compare-item strong { font-size: 14px; }
.match-pipeline-node strong { font-size: 12px; }
.match-pipeline-node small,.match-pipeline-node em { font-size: 10px; }
.match-pipeline-node > i { font-size: 10px; }
.match-drawer-head h3 { font-size: 22px; }
.match-evidence-claim span { font-size: 11px; }
.match-evidence-claim p { font-size: 15px; }
.match-evidence-meta span { font-size: 11px; }
.match-evidence-meta strong { font-size: 13px; }
.match-fact-item code,.match-fact-item header span { font-size: 10px; }
.match-fact-item strong,.match-fact-value,.match-lineage span { font-size: 12px; }
.match-error-state strong { font-size: 16px; }
.match-error-state p { font-size: 13px; }

/* G8.2 · exact-frame tactical director */
.match-segment-rail { gap:12px; }
.match-segment-chip {
  align-items:stretch;
  background:#fff;
  border-color:#dce6f2;
  border-radius:15px;
  gap:12px;
  grid-template-columns:138px minmax(0,1fr);
  min-height:108px;
  overflow:hidden;
  padding:7px;
  position:relative;
  transition:border-color 160ms ease,box-shadow 160ms ease,transform 160ms ease;
}
.match-segment-chip:hover { border-color:#b9cce5; box-shadow:0 12px 26px rgba(26,64,108,.09); transform:translateY(-2px); }
.match-segment-chip.is-active { border-color:rgba(34,105,232,.62); box-shadow:0 0 0 3px rgba(36,105,232,.08),0 13px 28px rgba(33,91,178,.12); }
.match-segment-chip.is-recommended { border-color:rgba(26,157,112,.42); }
.match-segment-chip.is-recommended.is-active { border-color:rgba(34,105,232,.62); }
.match-segment-thumb { align-items:center; aspect-ratio:16 / 9; background:linear-gradient(145deg,#102b43,#0a1a2c); border-radius:10px; display:flex; justify-content:center; min-height:86px; overflow:hidden; position:relative; }
.match-segment-thumb::after { background:linear-gradient(180deg,transparent 50%,rgba(2,12,23,.68)); content:""; inset:0; pointer-events:none; position:absolute; }
.match-segment-thumb img { height:100%; inset:0; object-fit:cover; position:absolute; width:100%; z-index:1; }
.match-segment-thumb-placeholder { color:#d6e7f5; display:grid; gap:2px; place-items:center; position:relative; transition:opacity 180ms ease; z-index:1; }
.match-segment-thumb:not(.is-loaded):not(.is-unavailable):not(.is-data-only) .match-segment-thumb-placeholder::before { background:linear-gradient(90deg,transparent,rgba(111,218,230,.42),transparent); content:""; height:1px; left:-34px; position:absolute; right:-34px; top:-10px; animation:match-thumb-scan 1.8s ease-in-out infinite; }
.match-segment-thumb-placeholder strong { color:#e9f7ff; font-size:19px; letter-spacing:.04em; }
.match-segment-thumb-placeholder small { color:#8da7bf; font-size:10px; }
.match-segment-thumb.is-unavailable .match-segment-thumb-placeholder small { color:#e0af75; }
.match-segment-thumb.is-loaded .match-segment-thumb-placeholder { opacity:0; }
.match-segment-thumb > em { background:rgba(5,19,34,.74); border:1px solid rgba(175,215,237,.18); border-radius:999px; bottom:7px; color:#bfeef0; font-size:8px; font-style:normal; font-weight:850; left:7px; letter-spacing:.08em; padding:4px 6px; position:absolute; z-index:3; }
.match-segment-copy { align-content:center; display:grid; gap:6px; min-width:0; padding:6px 7px 6px 0; }
.match-segment-copy > span { align-items:center; display:flex; gap:8px; justify-content:space-between; }
.match-segment-copy > span > strong { color:#243d5e; font-size:14px; font-variant-numeric:tabular-nums; }
.match-segment-copy > small { color:#71839a; font-size:12px; line-height:1.45; }
.match-segment-copy > b { color:#49627f; font-size:11px; font-weight:650; }
.match-segment-quality { background:#eef4fc; border-radius:999px; color:#55708f; flex:0 0 auto; font-size:9px; font-style:normal; font-weight:850; padding:5px 7px; }
.match-segment-chip.is-recommended .match-segment-quality { background:#e6f8f1; color:#16835d; }
@keyframes match-thumb-scan { 0%,100% { opacity:.2; transform:translateX(-24px); } 50% { opacity:1; transform:translateX(24px); } }

.match-replay-toolbar {
  background:
    radial-gradient(circle at 12% 0,rgba(59,150,255,.18),transparent 34%),
    radial-gradient(circle at 88% 110%,rgba(34,219,196,.12),transparent 38%),
    linear-gradient(135deg,#0b1d34 0%,#102a45 54%,#0d263e 100%);
  border: 1px solid rgba(121,180,230,.24);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08),0 14px 34px rgba(22,48,78,.14);
  color: #edf7ff;
  display: grid;
  gap: 16px 22px;
  grid-template-columns: minmax(280px,1fr) auto;
  margin-top: 20px;
  overflow: visible;
  padding: 18px 20px 15px;
  position: relative;
}
.match-replay-toolbar::before { background: linear-gradient(90deg,transparent,rgba(92,211,241,.52),transparent); content:""; height:1px; left:6%; position:absolute; right:6%; top:0; }
.match-replay-identity { align-items:center; display:flex; gap:13px; min-width:0; }
.match-replay-identity > span:last-child { display:grid; gap:3px; min-width:0; }
.match-replay-identity small { color:#74d9ed; font-size:11px; font-weight:850; letter-spacing:.13em; }
.match-replay-identity strong { color:#f5fbff; font-size:16px; line-height:1.35; }
.match-replay-identity em { color:#9eb4ca; font-size:12px; font-style:normal; line-height:1.5; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.match-replay-orbit { border:1px solid rgba(93,220,235,.35); border-radius:50%; display:grid; flex:0 0 auto; height:42px; place-items:center; position:relative; width:42px; }
.match-replay-orbit::before,.match-replay-orbit::after { border:1px solid rgba(80,154,255,.36); border-radius:50%; content:""; inset:5px; position:absolute; }
.match-replay-orbit::after { border-color:transparent #57d9e8 transparent #57d9e8; inset:-4px; animation:match-orbit 7s linear infinite; }
.match-replay-orbit i { background:#63e0e7; border-radius:50%; box-shadow:0 0 15px #50dce8; height:7px; width:7px; }
@keyframes match-orbit { to { transform:rotate(360deg); } }
.match-replay-controls { align-items:center; display:flex; flex-wrap:wrap; gap:9px; justify-content:flex-end; }
.match-overlay-switch { background:rgba(3,15,29,.52); border:1px solid rgba(133,174,211,.22); border-radius:11px; display:flex; padding:3px; }
.match-overlay-switch button { background:transparent; border:0; border-radius:8px; color:#9eb3ca; cursor:pointer; font-size:12px; font-weight:750; min-height:34px; padding:7px 11px; transition:background 160ms ease,color 160ms ease,box-shadow 160ms ease; }
.match-overlay-switch button.is-active { background:linear-gradient(135deg,#266de9,#1b9fcd); box-shadow:0 4px 14px rgba(27,111,213,.28); color:#fff; }
.match-overlay-switch button:disabled { cursor:not-allowed; opacity:.45; }
.match-layer-menu { position:relative; z-index:12; }
.match-layer-menu > summary { align-items:center; background:rgba(255,255,255,.07); border:1px solid rgba(158,192,222,.22); border-radius:10px; color:#dceaf6; cursor:pointer; display:flex; font-size:12px; font-weight:750; gap:6px; list-style:none; min-height:40px; padding:8px 11px; }
.match-layer-menu > summary::-webkit-details-marker { display:none; }
.match-layer-menu[open] > summary { background:rgba(255,255,255,.13); border-color:rgba(98,214,232,.45); }
.match-layer-menu > div { background:#fff; border:1px solid #dbe7f4; border-radius:14px; box-shadow:0 20px 50px rgba(16,38,66,.25); display:grid; gap:3px; min-width:244px; padding:9px; position:absolute; right:0; top:calc(100% + 8px); }
.match-layer-menu label { align-items:center; border-radius:10px; color:#29425f; cursor:pointer; display:grid; gap:10px; grid-template-columns:auto 1fr; padding:9px 10px; }
.match-layer-menu label:hover { background:#f3f7fc; }
.match-layer-menu input { accent-color:#246ce5; height:16px; width:16px; }
.match-layer-menu label span { display:grid; font-size:13px; font-weight:750; gap:2px; }
.match-layer-menu label small { color:#8191a5; font-size:11px; font-weight:500; }
.match-tactical-play.button { background:linear-gradient(135deg,#246ce8,#12a9c7); border:0; box-shadow:0 8px 20px rgba(25,119,207,.28); font-size:13px; min-height:40px; }
.match-tactical-play.button:hover { box-shadow:0 10px 25px rgba(29,136,221,.38); transform:translateY(-1px); }
.match-tactical-exit.button { background:rgba(255,255,255,.07); border-color:rgba(164,197,225,.28); color:#d7e8f6; font-size:12px; min-height:40px; }
.match-presenter-toggle.button { background:rgba(255,255,255,.07); border-color:rgba(164,197,225,.28); color:#d7e8f6; font-size:12px; min-height:40px; }
.match-presenter-toggle.button:hover { background:rgba(255,255,255,.13); border-color:rgba(111,220,232,.42); color:#fff; }
.match-replay-progress { align-items:center; border-top:1px solid rgba(139,177,209,.16); display:grid; gap:0; grid-column:1 / -1; grid-template-columns:repeat(5,minmax(0,1fr)); padding-top:12px; }
.match-replay-progress span { align-items:center; color:#718aa3; display:flex; font-size:11px; font-weight:700; gap:7px; min-width:0; position:relative; transition:color 180ms ease; }
.match-replay-progress span:not(:last-child)::after { background:rgba(126,167,201,.18); content:""; height:1px; left:23px; position:absolute; right:8px; top:5px; }
.match-replay-progress i { background:#48627c; border:2px solid #19334d; border-radius:50%; box-shadow:0 0 0 1px rgba(126,168,202,.22); height:10px; position:relative; width:10px; z-index:1; }
.match-replay-progress span.is-complete { color:#96c7d7; }
.match-replay-progress span.is-complete i { background:#34bfd0; box-shadow:0 0 10px rgba(52,191,208,.55); }
.match-replay-progress span.is-active { color:#eefaff; }
.match-replay-progress span.is-active i { background:#73e8ed; box-shadow:0 0 0 4px rgba(76,213,224,.12),0 0 14px rgba(88,223,231,.65); }
.match-sync-grid { position:relative; }
.match-tactical-frame { background:#061322; height:100%; inset:0; object-fit:contain; position:absolute; width:100%; z-index:2; }
.match-tactical-overlay { height:100%; inset:0; pointer-events:none; position:absolute; width:100%; z-index:4; }
.match-video-stage.is-tactical-active { box-shadow:inset 0 0 0 1px rgba(79,211,229,.24); }
.match-video-stage.is-tactical-active::after { background:linear-gradient(90deg,transparent,rgba(81,222,234,.20),transparent); content:""; height:1px; left:0; pointer-events:none; position:absolute; right:0; top:42%; z-index:4; animation:match-frame-scan 4.8s ease-in-out infinite; }
.match-video-stage.is-original-view::after { display:none; }
@keyframes match-frame-scan { 0%,100% { opacity:0; transform:translateY(-145px); } 25%,72% { opacity:1; } 55% { transform:translateY(145px); } }
.match-tactical-hud { background:rgba(5,18,34,.76); border:1px solid rgba(110,218,233,.30); border-radius:13px; box-shadow:0 10px 32px rgba(0,0,0,.20); display:grid; left:18px; max-width:250px; padding:11px 13px; pointer-events:none; position:absolute; top:18px; z-index:5; }
.match-tactical-hud > span { align-items:center; color:#6edbe7; display:flex; font-size:10px; font-weight:850; gap:7px; letter-spacing:.12em; }
.match-tactical-hud > span i { background:#72edf0; border-radius:50%; box-shadow:0 0 9px #65e2e9; height:6px; width:6px; }
.match-tactical-hud strong { color:#fff; font-size:28px; letter-spacing:.02em; line-height:1.15; margin-top:6px; }
.match-tactical-hud small { color:#a8bdd0; font-size:11px; line-height:1.45; margin-top:2px; }
.match-tactical-caption { align-items:center; background:linear-gradient(90deg,rgba(4,16,31,.92),rgba(6,24,42,.82)); border:1px solid rgba(134,178,214,.22); border-radius:12px; bottom:16px; display:flex; gap:12px; left:16px; max-width:calc(100% - 32px); padding:10px 13px; pointer-events:none; position:absolute; z-index:5; }
.match-tactical-caption span { background:#1e74df; border-radius:7px; color:#fff; flex:0 0 auto; font-size:10px; font-weight:850; letter-spacing:.04em; padding:5px 7px; }
.match-tactical-caption strong { color:#e9f5ff; font-size:12px; font-weight:650; line-height:1.5; }
.match-tactical-loading { align-items:center; background:rgba(4,16,29,.90); color:#c7d9e9; display:flex; font-size:13px; gap:10px; inset:0; justify-content:center; position:absolute; z-index:7; }
.match-tactical-loading i { border:2px solid rgba(105,215,230,.22); border-radius:50%; border-top-color:#62ddea; height:20px; width:20px; animation:match-orbit .8s linear infinite; }
.match-digital-twin-bridge { align-items:center; display:flex; height:48px; justify-content:center; left:50%; pointer-events:none; position:absolute; top:46%; transform:translate(-50%,-50%); width:78px; z-index:9; }
.match-digital-twin-bridge i { background:linear-gradient(90deg,transparent,#69e4ea,transparent); box-shadow:0 0 16px rgba(87,220,231,.65); height:2px; left:-14px; position:absolute; right:-14px; animation:match-twin-beam .85s ease-in-out infinite; }
.match-digital-twin-bridge.is-settled i { animation:none; opacity:.35; }
@keyframes match-twin-beam { 0%,100% { opacity:.2; transform:scaleX(.28); } 50% { opacity:1; transform:scaleX(1); } }
.match-virtual-pane.is-tactical-focus { border-color:rgba(59,189,208,.55); box-shadow:0 0 0 3px rgba(40,186,205,.08),0 16px 35px rgba(22,99,124,.12); }
.match-pitch-line { opacity:.56; stroke:#68d8df; stroke-linecap:round; stroke-linejoin:round; stroke-width:2.2; }
.match-pitch-line.is-midfield { stroke:#6a9bff; }
.match-pitch-line.is-attack { stroke:#f8b65d; }
.match-pitch-player { transform-box:fill-box; transform-origin:center; }
.match-visual-stage.is-tactical-morph .match-pitch-line { animation:match-pitch-trace .8s calc(var(--line-order) * 90ms) ease both; stroke-dasharray:900; stroke-dashoffset:900; }
.match-visual-stage.is-tactical-morph .match-pitch-player { animation:match-pitch-player-in .55s calc(var(--player-order) * 55ms) cubic-bezier(.2,.8,.2,1) both; }
.match-visual-stage.is-tactical-morph .match-pitch-unobserved { animation:match-pitch-reference-in .6s .55s ease both; }
@keyframes match-pitch-trace { to { stroke-dashoffset:0; } }
@keyframes match-pitch-player-in { from { opacity:0; transform:scale(.2); } 65% { transform:scale(1.22); } to { opacity:1; transform:scale(1); } }
@keyframes match-pitch-reference-in { from { opacity:0; } to { opacity:.62; } }

button[data-match-overlay-mode]:focus-visible,.match-layer-menu > summary:focus-visible,.match-tactical-play:focus-visible,.match-tactical-exit:focus-visible,.match-presenter-toggle:focus-visible { outline:3px solid rgba(103,224,236,.40); outline-offset:2px; }

@media (max-width: 1380px) {
  .match-l0-card { grid-template-columns: minmax(0,1.4fr) 190px; }
  .match-core-metrics { grid-column: 1 / -1; grid-template-columns: repeat(4,minmax(0,1fr)); }
  .match-review-studio .match-video-stage { height: 440px; }
  .match-finding-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .match-replay-toolbar { grid-template-columns:1fr; }
  .match-replay-controls { justify-content:flex-start; }
  .match-segment-chip { gap:9px; grid-template-columns:118px minmax(0,1fr); }
  .match-segment-copy > span { align-items:flex-start; flex-direction:column; gap:4px; }
}

@media (max-width: 1080px) {
  .match-sync-grid { grid-template-columns: 1fr; }
  .match-review-studio .match-video-stage { height: 460px; }
  .match-review-studio .match-pitch-notes { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .match-digital-twin-bridge { display:none; }
}

@media (max-width: 820px) {
  .match-command { padding: 22px; }
  .match-l0-card { padding: 22px; }
  .match-review-studio,.match-coach-actions-card { padding: 18px; }
  .match-finding-list { grid-template-columns: 1fr; }
  .match-review-studio .match-video-stage { height: 340px; }
  .match-shared-timeline { grid-template-columns: 1fr; }
  .match-disclosure > summary { padding: 18px; }
  .match-disclosure-body { padding: 18px; }
  .match-replay-toolbar { padding:16px; }
  .match-replay-controls { align-items:stretch; }
  .match-replay-progress { gap:8px; overflow-x:auto; }
  .match-replay-progress span { min-width:92px; }
  .match-tactical-hud { left:12px; top:12px; }
  .match-tactical-caption { bottom:12px; left:12px; max-width:calc(100% - 24px); }
  .match-segment-rail { grid-auto-columns:minmax(310px,78vw); grid-auto-flow:column; grid-template-columns:none; overflow-x:auto; padding:3px 3px 12px; scroll-snap-type:x mandatory; }
  .match-segment-chip { grid-template-columns:125px minmax(0,1fr); scroll-snap-align:start; }
}

@media (max-width: 560px) {
  .match-video-ai-option { grid-template-columns: auto 1fr auto; }
  .match-video-ai-option > input { display: none; }
  .match-option-switch { grid-row: 1 / span 2; }
  .match-video-ai-option > span:nth-of-type(2) { grid-column: 2; }
  .match-video-ai-option em { grid-column: 3; grid-row: 1; }
  .match-review-studio .match-pitch-notes { grid-template-columns: 1fr; }
  .match-core-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .match-replay-identity em { white-space:normal; }
  .match-replay-controls { display:grid; grid-template-columns:1fr 1fr; }
  .match-overlay-switch { grid-column:1 / -1; }
  .match-overlay-switch button { flex:1; }
  .match-layer-menu > div { left:0; right:auto; }
  .match-tactical-play.button { grid-column:1 / -1; }
  .match-tactical-caption { align-items:flex-start; flex-direction:column; gap:6px; }
  .match-tactical-hud strong { font-size:23px; }
}

@media (prefers-reduced-motion: reduce) {
  .match-replay-orbit::after,.match-video-stage.is-tactical-active::after,.match-digital-twin-bridge i,.match-segment-thumb-placeholder::before,.match-visual-stage.is-tactical-morph .match-pitch-line,.match-visual-stage.is-tactical-morph .match-pitch-player,.match-visual-stage.is-tactical-morph .match-pitch-unobserved { animation:none !important; }
}

/* G8.3 · coach-first copy, compact evidence and de-duplicated review layers. */
.match-review-studio .match-pitch-notes { grid-template-columns:repeat(3,minmax(0,1fr)); }
.match-finding-top { gap:8px; justify-content:flex-start; }
.match-advice-source {
  background:#edf5ff;
  border:1px solid #d7e7fb;
  border-radius:999px;
  color:#4b70a3;
  font-size:10px;
  font-weight:750;
  line-height:1.25;
  margin-left:auto;
  max-width:58%;
  overflow:hidden;
  padding:4px 7px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.match-action-number { flex:0 0 auto; }
.match-local-evidence-note {
  align-items:flex-start;
  background:rgba(237,247,251,.82);
  border:1px solid #d8eaf0;
  border-radius:10px;
  color:#526f7d;
  display:flex;
  font-size:12px;
  gap:7px;
  line-height:1.55;
  padding:9px 10px;
}
.match-local-evidence-note .ui-icon { color:#1c91a5; flex:0 0 auto; margin-top:2px; }
.match-technical-grid { display:grid; gap:24px; }
.match-technical-grid > section + section { border-top:1px solid #e3eaf3; padding-top:22px; }
.match-technical-probability .match-card-heading { margin-bottom:12px; }
.match-technical-probability .match-probability-view { margin:0; max-width:780px; }
.match-technical-probability .match-error-state { min-height:90px; }
.match-timeline-point[data-evidence-count]:not([data-evidence-count="1"])::after {
  align-items:center;
  background:#0b9eb7;
  border:2px solid #fff;
  border-radius:999px;
  color:#fff;
  content:attr(data-evidence-count);
  display:flex;
  font-size:8px;
  font-weight:850;
  height:15px;
  justify-content:center;
  left:8px;
  min-width:15px;
  padding:0 3px;
  position:absolute;
  top:-9px;
}

@media (max-width: 820px) {
  .match-review-studio .match-pitch-notes { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .match-advice-source { max-width:52%; }
}

@media (max-width: 560px) {
  .match-review-studio .match-pitch-notes { grid-template-columns:1fr; }
  .match-advice-source { margin-left:0; max-width:100%; order:3; }
  .match-finding-top { flex-wrap:wrap; }
}

/* G8.4 · dual-team coach workflow and compact review interactions. */
.match-template-list {
  gap:8px;
  grid-template-columns:1fr;
  max-height:374px;
  overflow-y:auto;
  padding:2px 7px 8px 2px;
  scrollbar-color:#aac2e3 #edf3fa;
  scrollbar-width:thin;
}
.match-template-option {
  align-items:center;
  display:grid;
  grid-template-columns:1fr;
  min-height:70px;
  padding:13px 15px 13px 18px;
  position:relative;
}
.match-template-option::before { background:transparent; border-radius:0 6px 6px 0; bottom:12px; content:""; left:0; position:absolute; top:12px; width:4px; }
.match-template-option.is-active { background:linear-gradient(110deg,#edf5ff,#fff 72%); box-shadow:0 10px 24px rgba(28,92,190,.13),inset 0 0 0 1px rgba(37,103,224,.12); transform:translateX(3px); }
.match-template-option.is-active::before { background:linear-gradient(#2b6fea,#15aac8); box-shadow:0 0 10px rgba(43,111,234,.35); }
.match-template-option strong { align-items:center; display:flex; gap:8px; margin-bottom:3px; }
.match-template-option strong > i { background:#cfdbeb; border-radius:50%; height:6px; margin-left:auto; width:6px; }
.match-template-option.is-active strong > i { background:#20a6c1; box-shadow:0 0 0 4px rgba(32,166,193,.1); }
.match-template-option em { background:#eef2f7; border-radius:999px; color:#7c8ca1; font-size:10px; font-style:normal; margin-left:auto; padding:4px 7px; }
.match-analysis-scope > div { align-items:center; background:rgba(255,255,255,.94); border:1px solid #dce6f2; border-radius:11px; display:flex; justify-content:space-between; min-height:46px; padding:0 12px; }
.match-analysis-scope strong { color:#263b58; font-size:14px; }
.match-analysis-scope small { color:#7f91a8; font-size:11px; }
.match-video-ai-option { gap:9px; grid-template-columns:auto auto 1fr auto; max-width:600px; padding:9px 12px; }
.match-video-ai-option strong { font-size:13px; }
.match-video-ai-option small { font-size:11px; }
.match-option-switch { height:21px; width:38px; }
.match-option-switch i { height:15px; width:15px; }
.match-video-ai-option input:checked + .match-option-switch i { transform:translateX(17px); }
#match-preview-button { margin-left:auto; }
.match-plan-step { grid-template-columns:24px 1fr; min-height:34px; padding:6px 9px; }
.match-plan-step strong { font-size:13px; }
.match-plan-notice { background:rgba(255,184,75,.12); border:1px solid rgba(255,197,102,.22); border-radius:10px; color:#f0c981; font-size:11px; line-height:1.55; margin-top:10px; padding:9px 10px; }

.match-result-team-switch { background:#eaf1fa; border:1px solid #dce6f2; border-radius:10px; display:flex; gap:3px; padding:3px; }
.match-result-team-switch button { background:transparent; border:0; border-radius:7px; color:#71849d; cursor:pointer; font:inherit; font-size:12px; font-weight:780; min-height:30px; padding:6px 11px; }
.match-result-team-switch button.is-active { background:#fff; box-shadow:0 4px 12px rgba(42,76,122,.11); color:#205fcf; }

.match-segment-rail {
  grid-auto-columns:minmax(190px,220px);
  grid-auto-flow:column;
  grid-template-columns:none;
  overflow-x:auto;
  padding:2px 2px 8px;
  scroll-snap-type:x proximity;
  scrollbar-color:#adc3d8 transparent;
  scrollbar-width:thin;
}
.match-segment-chip { display:grid; gap:0; grid-template-columns:1fr; grid-template-rows:auto auto; min-height:0; padding:7px; }
.match-segment-chip { scroll-snap-align:start; }
.match-segment-thumb { min-height:0; width:100%; }
.match-segment-thumb::after { opacity:.35; }
.match-segment-copy { gap:4px; padding:10px 8px 8px; }
.match-segment-copy > span { justify-content:flex-start; }
.match-segment-copy > span > strong { font-size:14px; }
.match-segment-copy > small { color:#315273; font-size:13px; font-weight:760; }
.match-segment-copy > b { color:#75889f; font-size:11px; }

.match-fullscreen-toggle { align-items:center; background:rgba(255,255,255,.07); border:1px solid rgba(164,197,225,.28); border-radius:10px; color:#d7e8f6; cursor:pointer; display:inline-flex; height:40px; justify-content:center; padding:0; width:40px; }
.match-fullscreen-toggle:hover,.match-fullscreen-toggle.is-active { background:rgba(255,255,255,.14); border-color:rgba(111,220,232,.48); color:#fff; }
.match-fullscreen-toggle .ui-icon { font-size:18px; }
.match-review-studio:fullscreen { background:linear-gradient(145deg,#f6f9fd,#eaf2f9); height:100vh; overflow:auto; padding:24px; }
.match-review-studio:fullscreen .match-sync-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }

.match-tactical-metrics { display:flex; gap:7px; position:absolute; right:18px; top:18px; z-index:6; }
.match-tactical-metrics > span { background:rgba(5,18,34,.72); border:1px solid rgba(119,220,232,.3); border-radius:9px; color:#effcff; cursor:help; min-width:62px; padding:7px 9px; position:relative; text-align:center; }
.match-tactical-metrics strong { font-size:13px; }
.match-tactical-metrics > span::after { background:#071a2d; border:1px solid rgba(110,218,233,.35); border-radius:8px; bottom:-40px; color:#dff7fa; content:attr(data-detail); font-size:11px; left:50%; opacity:0; padding:7px 9px; pointer-events:none; position:absolute; transform:translate(-50%,-4px); transition:opacity 140ms ease,transform 140ms ease; white-space:nowrap; }
.match-tactical-metrics > span:hover::after,.match-tactical-metrics > span:focus::after { opacity:1; transform:translate(-50%,0); }

.match-scatter-svg { height:auto; min-height:300px; overflow:visible; }
.match-chart-grid { stroke:#dbe5ef; stroke-dasharray:3 5; stroke-width:1; }
.match-chart-tick { fill:#7b8da4; font-size:11px; font-variant-numeric:tabular-nums; }
.match-chart-axis { fill:#61758f; font-size:13px; font-weight:720; }
.match-compare-route { fill:none; stroke:#4d8ee3; stroke-linecap:round; stroke-linejoin:round; stroke-opacity:.72; stroke-width:2.5; }
.match-compare-point { cursor:help; outline:none; }
.match-point-label { fill:#2c527b; font-size:12px; font-weight:850; paint-order:stroke; stroke:#fff; stroke-width:4px; }
.match-compare-tooltip { opacity:0; pointer-events:none; transition:opacity 140ms ease; }
.match-compare-tooltip rect { fill:#102b47; stroke:#4d9fd0; stroke-opacity:.55; }
.match-compare-tooltip text { fill:#e8f6ff; font-size:11px; font-weight:700; }
.match-compare-point:hover .match-compare-tooltip,.match-compare-point:focus .match-compare-tooltip { opacity:1; }
.match-compare-hint { color:#72849a; font-size:12px; margin:0; text-align:center; }

.match-pipeline { display:grid; gap:10px; grid-template-columns:repeat(auto-fit,minmax(168px,1fr)); overflow:visible; }
.match-pipeline-step { display:block; min-width:0; }
.match-pipeline-step:not(:last-child)::after { display:none; }
.match-pipeline-node { grid-template-columns:32px minmax(0,1fr) auto; min-height:58px; padding:9px 10px; width:auto; }
.match-pipeline-node strong { font-size:12px; line-height:1.35; overflow:visible; text-overflow:clip; white-space:normal; }
.match-pipeline-node em { font-size:10px; grid-column:3; margin-left:7px; }

body.match-modal-open { overflow:hidden; }
.match-coach-modal { inset:0; position:fixed; z-index:1600; }
.match-coach-modal-scrim { background:rgba(8,23,42,.48); border:0; inset:0; padding:0; position:absolute; width:100%; }
.match-coach-modal-panel { background:#fff; border:1px solid rgba(188,207,232,.9); border-radius:18px; box-shadow:0 28px 80px rgba(8,29,56,.28); left:50%; max-height:min(82vh,720px); overflow:auto; padding:22px; position:absolute; top:50%; transform:translate(-50%,-50%); width:min(760px,calc(100vw - 36px)); }
.match-coach-modal-panel > header { align-items:center; border-bottom:1px solid #e4ebf4; display:flex; justify-content:space-between; padding-bottom:14px; }
.match-coach-modal-panel h3 { color:#1f3858; font-size:21px; margin:4px 0 0; }
.match-coach-modal-panel > header button { align-items:center; background:#eff3f8; border:0; border-radius:9px; color:#60758e; cursor:pointer; display:flex; height:34px; justify-content:center; width:34px; }
.match-coach-modal-body { padding-top:17px; }
.match-modal-video-wrap video { background:#08182b; border-radius:13px; max-height:430px; width:100%; }
.match-modal-video-wrap p,.match-modal-empty p { color:#73859c; font-size:13px; line-height:1.6; margin:10px 0 0; }
.match-modal-empty { align-items:center; display:flex; flex-direction:column; min-height:240px; justify-content:center; text-align:center; }
.match-modal-empty .ui-icon { color:#2f75dc; font-size:32px; margin-bottom:10px; }
.match-modal-empty strong { color:#2c4564; font-size:16px; }
.match-modal-data-grid { display:grid; gap:10px; grid-template-columns:repeat(2,minmax(0,1fr)); }
.match-modal-data-grid > div { background:#f6f9fd; border:1px solid #e0e9f4; border-radius:12px; display:grid; gap:4px; padding:12px 13px; }
.match-modal-data-grid span { color:#7a8ca3; font-size:11px; }
.match-modal-data-grid strong { color:#294361; font-size:15px; }
.match-modal-coach-note { background:linear-gradient(120deg,#edf7ff,#f7fbff); border:1px solid #d7e9f6; border-radius:13px; margin-top:13px; padding:13px 14px; }
.match-modal-coach-note span { color:#2871c6; font-size:11px; font-weight:800; }
.match-modal-coach-note p { color:#3f5b78; font-size:13px; line-height:1.7; margin:5px 0 0; }

.match-semantic-code { font-size:clamp(24px,3vw,38px) !important; letter-spacing:-.04em; }
.match-review-studio.is-semantic-analysis .match-replay-toolbar { align-items:center; min-height:86px; }
.match-review-studio.is-semantic-analysis .match-replay-identity em { max-width:720px; }
.match-semantic-pitch { display:grid; gap:13px; width:100%; }
.match-semantic-pitch .match-pitch-svg { filter:drop-shadow(0 16px 30px rgba(12,45,68,.2)); max-height:360px; width:100%; }
.match-semantic-caption { align-items:flex-start; background:linear-gradient(120deg,#eef7ff,#f7fbff); border:1px solid #d9e9f7; border-radius:13px; display:flex; flex-direction:column; gap:4px; padding:12px 14px; }
.match-semantic-caption strong { color:#214665; font-size:15px; }
.match-semantic-caption span { color:#66809b; font-size:12px; line-height:1.55; }
.match-semantic-panel { display:grid; gap:18px; padding:18px; width:100%; }
.match-semantic-panel > p { color:#698097; font-size:13px; line-height:1.65; margin:0; }
.match-share-head { display:flex; justify-content:space-between; }
.match-share-head span { color:#5d738c; font-size:13px; }
.match-share-head strong { color:#244464; font-size:22px; margin-left:6px; }
.match-share-bar { background:#edf2f7; border-radius:999px; display:flex; height:24px; overflow:hidden; }
.match-share-bar i { background:linear-gradient(90deg,#1e65dd,#54a4ff); }
.match-share-bar b { background:linear-gradient(90deg,#45d0bc,#149883); }
.match-semantic-event-list,.match-ranking-list { display:grid; gap:9px; }
.match-semantic-event-list button,.match-ranking-list button { align-items:center; background:#fff; border:1px solid #dfe8f2; border-radius:13px; color:#2e4966; cursor:pointer; display:grid; gap:10px; grid-template-columns:42px minmax(0,1fr) auto; padding:12px 14px; text-align:left; transition:.2s ease; }
.match-semantic-event-list button:hover,.match-ranking-list button:hover { border-color:#83b9ef; box-shadow:0 9px 22px rgba(43,102,165,.12); transform:translateY(-1px); }
.match-semantic-event-list button > span,.match-ranking-list button > span { align-items:center; background:#eaf4ff; border-radius:9px; color:#246ac0; display:flex; font-size:11px; font-weight:850; height:34px; justify-content:center; }
.match-semantic-event-list button strong,.match-ranking-list button strong { font-size:14px; }
.match-semantic-event-list button small { color:#7c8da2; font-size:12px; }
.match-ranking-list button > div { display:grid; gap:7px; }
.match-ranking-list button i { background:#edf2f8; border-radius:999px; display:block; height:7px; overflow:hidden; }
.match-ranking-list button i b { background:linear-gradient(90deg,#286fe0,#67bcff); border-radius:inherit; display:block; height:100%; }
.match-ranking-list button em { color:#1d5ea8; font-size:13px; font-style:normal; font-weight:850; }
.match-turnover-point text { fill:#f7fbff; font-size:12px; font-weight:850; paint-order:stroke; stroke:#16334a; stroke-width:3px; }
.match-semantic-tech { display:grid; gap:9px; }
.match-semantic-tech > div { align-items:center; background:#f6f9fd; border:1px solid #e1e9f3; border-radius:11px; display:flex; justify-content:space-between; padding:11px 13px; }
.match-semantic-tech span { color:#71859c; font-size:12px; }
.match-semantic-tech strong { color:#284765; font-size:13px; }

/* The fixed application sidebar reduces the usable content width before the
   viewport reaches the mobile breakpoint. Stack the task plan on common
   1280/1366/1440px demo screens so the right panel is never clipped. */
@media (max-width: 1500px) {
  .match-command-grid { grid-template-columns:1fr; }
  .match-plan-preview { min-height:0; }
  .match-plan-steps { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .match-segment-rail { grid-auto-columns:minmax(190px,230px); }
  .match-result-actions { align-items:flex-end; flex-direction:column; }
  .match-result-team-switch { align-self:flex-start; }
  .match-review-studio:fullscreen .match-sync-grid { grid-template-columns:1fr; }
}

@media (max-width: 560px) {
  #match-preview-button { margin-left:0; }
  .match-plan-steps { grid-template-columns:1fr; }
  .match-analysis-scope > div { align-items:flex-start; flex-direction:column; justify-content:center; }
  .match-modal-data-grid { grid-template-columns:1fr; }
  .match-tactical-metrics { right:10px; top:10px; }
}

/* Compact synchronized review: both panes keep one stable height so switching
   views never moves the video vertically. */
.match-review-studio { padding:20px; }
.match-review-studio > .match-card-heading p { margin-top:3px; }
.match-replay-toolbar { gap:10px 18px; margin-top:12px; padding:12px 15px 11px; }
.match-replay-orbit { height:36px; width:36px; }
.match-replay-controls { gap:7px; }
.match-replay-progress { padding-top:9px; }
.match-sync-grid { gap:14px; margin-top:12px; }
.match-sync-pane { height:470px; }
.match-sync-pane > header { min-height:44px; padding:0 12px; }
.match-review-studio .match-video-stage { background:#e8eef5; height:424px; }
.match-review-studio .match-video-stage video { background:#e8eef5; object-fit:cover; }
.match-virtual-pane { padding-bottom:0; position:relative; }
.match-review-studio .match-visual-stage {
  height:424px;
  /* max-height:424px; */
  /* min-height:424px; */
  overflow-x:auto;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:10px 12px 46px;
  scrollbar-color:#a9c2de #edf3f8;
  scrollbar-width:thin;
}
.match-review-studio .match-pitch-svg { max-height:292px; }
.match-virtual-head-actions { align-items:center; display:flex; gap:10px; min-width:0; }
.match-virtual-head-actions .match-view-tabs { flex:0 0 auto; margin:0; }
.match-virtual-head-actions .match-view-tabs button { font-size:11px; min-height:28px; padding:5px 9px; }
.match-virtual-head-actions > strong { color:#6f8299; font-size:11px; font-weight:700; max-width:128px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.match-chart-legend { backdrop-filter:blur(10px); background:rgba(247,251,255,.88); border:1px solid rgba(209,223,239,.9); border-radius:10px; bottom:9px; left:12px; margin:0; padding:7px 9px; position:absolute; right:12px; z-index:5; }
.match-shared-timeline { margin-top:12px; }
.match-review-studio.is-semantic-analysis .match-replay-toolbar { min-height:66px; }
.match-review-studio.is-semantic-analysis .match-replay-identity em { max-width:900px; }

.match-compare-view { display:grid; gap:7px; min-width:0; }
.match-compare-view .match-scatter-svg { max-height:236px; min-height:0; width:100%; }
.match-compare-strip { display:grid; gap:8px; grid-auto-columns:minmax(142px,34%); grid-auto-flow:column; overflow-x:auto; padding:3px 2px 8px; scroll-snap-type:x proximity; scrollbar-color:#a9c2de transparent; scrollbar-width:thin; }
.match-compare-strip button { background:#fff; border:1px solid #dfe8f3; border-radius:11px; color:#31506f; cursor:pointer; display:grid; gap:2px; padding:8px 10px; scroll-snap-align:start; text-align:left; }
.match-compare-strip button:hover { border-color:#7db2e8; box-shadow:0 7px 18px rgba(45,99,158,.11); }
.match-compare-strip span { color:#2970c9; font-size:10px; font-weight:850; }
.match-compare-strip strong { font-size:12px; }
.match-compare-strip small { color:#7b8da3; font-size:10px; white-space:nowrap; }

.match-segment-rail.is-compact-running {
  display:grid;
  gap:7px;
  grid-auto-columns:minmax(118px,150px);
  grid-auto-flow:column;
  grid-template-columns:none;
  overflow-x:auto;
  padding:2px 2px 7px;
  scroll-snap-type:x proximity;
  scrollbar-color:#adc3d8 transparent;
  scrollbar-width:thin;
}
.match-segment-rail.is-compact-running .match-segment-chip {
  align-items:center;
  border-radius:10px;
  gap:0;
  grid-template-columns:1fr;
  min-height:50px;
  padding:6px 8px;
  scroll-snap-align:start;
}
.match-segment-rail.is-compact-running .match-segment-thumb,
.match-segment-rail.is-compact-running .match-segment-copy > b { display:none; }
.match-segment-rail.is-compact-running .match-segment-copy {
  gap:2px;
  padding:0;
}
.match-segment-rail.is-compact-running .match-segment-copy > span > strong {
  font-size:10px;
  white-space:nowrap;
}
.match-segment-rail.is-compact-running .match-segment-copy > small {
  font-size:10px;
  line-height:1.25;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.match-heat-cell { stroke:rgba(220,249,247,.08); stroke-width:.6; }
.match-semantic-pitch { gap:8px; }
.match-semantic-pitch .match-pitch-svg { max-height:264px; }
.match-semantic-caption { padding:8px 11px; }
.match-semantic-caption strong { font-size:13px; }
.match-semantic-caption span { font-size:11px; }
.match-semantic-panel { gap:10px; padding:4px; }
.match-possession-trend { display:grid; gap:6px; }
.match-trend-head { align-items:center; display:flex; flex-wrap:wrap; gap:10px; padding:0 5px; }
.match-trend-head span { align-items:center; color:#5f748c; display:flex; font-size:11px; gap:5px; }
.match-trend-head span i { border-radius:999px; height:7px; width:18px; }
.match-trend-head .team-a { background:#2d7ff0; }
.match-trend-head .team-b { background:#f59e0b; }
.match-trend-head strong { color:#24486a; font-size:11px; margin-left:auto; }
#match-possession-chart { height:218px; overflow:visible; width:100%; }
.match-trend-grid path { stroke:#dce6f0; stroke-dasharray:3 5; }
.match-trend-grid text { fill:#7d8fa4; font-size:10px; }
.match-trend-line { fill:none; stroke-linecap:round; stroke-linejoin:round; stroke-width:3; }
.match-trend-line.is-team-a { stroke:#2d7ff0; }
.match-trend-line.is-team-b { stroke:#f59e0b; }
.match-possession-playhead > path:first-child { stroke:#173b60; stroke-dasharray:4 4; stroke-opacity:.48; }
.match-possession-playhead,.match-possession-play-icon { transition:transform 180ms linear; }
.match-possession-playhead circle { fill:#102e4c; stroke:#fff; stroke-width:3; }
.match-possession-playhead .play-icon { fill:#fff; }
.match-running-ranking { padding:2px 4px; }
.match-ranking-head { align-items:flex-end; display:flex; justify-content:space-between; padding:2px 4px 5px; }
.match-ranking-head strong { color:#264765; font-size:14px; }
.match-ranking-head span { color:#7a8da3; font-size:10px; }
.match-running-ranking .match-ranking-list { gap:6px; }
.match-running-ranking .match-ranking-list button { min-height:48px; padding:7px 10px; }
.match-ranking-list button.is-selected { background:linear-gradient(110deg,#edf6ff,#fff); border-color:#4f95df; box-shadow:0 7px 18px rgba(39,108,179,.12),inset 3px 0 #2878d5; }
.match-video-stage.has-semantic-overlay { box-shadow:inset 0 0 0 1px rgba(83,200,229,.24); }

/* Floating match copilot. It stays small until explicitly opened. */
.match-chat-widget { bottom:24px; position:fixed; right:26px; z-index:1250; }
.match-chat-launch { align-items:center; background:linear-gradient(135deg,#1f66e7,#12a4c3); border:1px solid rgba(255,255,255,.48); border-radius:18px; box-shadow:0 18px 42px rgba(23,79,153,.32); color:#fff; cursor:pointer; display:flex; gap:8px; min-height:54px; padding:0 16px; position:relative; }
.match-chat-launch .ui-icon { height:22px; width:22px; }
.match-chat-launch span { font-size:13px; font-weight:820; }
.match-chat-launch > i { background:#68f0c2; border:2px solid #176fc4; border-radius:50%; height:10px; position:absolute; right:-2px; top:-2px; width:10px; }
.match-chat-widget.is-open .match-chat-launch { opacity:0; pointer-events:none; transform:translateY(8px) scale(.9); }
.match-chat-panel { background:rgba(250,253,255,.97); border:1px solid rgba(189,211,235,.94); border-radius:20px; bottom:0; box-shadow:0 28px 80px rgba(9,35,70,.28); display:grid; grid-template-rows:auto auto minmax(0,1fr) auto auto; height:min(650px,calc(100vh - 64px)); opacity:0; overflow:hidden; pointer-events:none; position:absolute; right:0; transform:translateY(18px) scale(.96); transform-origin:bottom right; transition:opacity 180ms ease,transform 180ms ease; width:min(430px,calc(100vw - 34px)); }
.match-chat-widget.is-open .match-chat-panel { opacity:1; pointer-events:auto; transform:translateY(0) scale(1); }
.match-chat-panel > header { align-items:center; background:linear-gradient(125deg,#0d2947,#103b60); color:#fff; display:flex; justify-content:space-between; min-height:68px; padding:12px 15px; }
.match-chat-panel > header > div { align-items:center; display:flex; gap:10px; }
.match-chat-panel > header > div > span:last-child { display:grid; gap:2px; }
.match-chat-panel > header small { color:#75d9e9; font-size:9px; font-weight:850; letter-spacing:.15em; }
.match-chat-panel > header strong { font-size:16px; }
.match-chat-panel > header button { align-items:center; background:rgba(255,255,255,.08); border:1px solid rgba(179,221,238,.2); border-radius:9px; color:#eaf9ff; cursor:pointer; display:flex; height:34px; justify-content:center; width:34px; }
.match-chat-orbit { border:1px solid rgba(100,224,235,.42); border-radius:50%; display:grid; height:38px; place-items:center; width:38px; }
.match-chat-orbit i { background:#6de7df; border-radius:50%; box-shadow:0 0 14px #59dfe3; height:8px; width:8px; }
.match-chat-context { align-items:center; background:#eef5fb; border-bottom:1px solid #dde8f3; color:#56708b; display:flex; font-size:11px; gap:10px; justify-content:space-between; min-height:38px; padding:8px 14px; }
.match-chat-context span { max-width:260px; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.match-chat-context strong { color:#2770c7; flex:0 0 auto; font-size:9px; letter-spacing:.04em; white-space:nowrap; }
.match-chat-messages { display:grid; gap:13px; overflow-y:auto; padding:16px 14px; scrollbar-color:#b8cadb transparent; scrollbar-width:thin; }
.match-chat-messages article { align-items:flex-start; display:flex; gap:8px; }
.match-chat-messages article > span { align-items:center; background:#e6f1ff; border-radius:9px; color:#2467b9; display:flex; flex:0 0 auto; font-size:10px; font-weight:850; height:30px; justify-content:center; width:30px; }
.match-chat-messages article > div { background:#fff; border:1px solid #e0e9f3; border-radius:5px 14px 14px 14px; color:#334f6c; display:grid; gap:7px; line-height:1.6; max-width:84%; padding:10px 12px; }
.match-chat-messages article p { font-size:13px; margin:0; white-space:pre-wrap; }
.match-chat-messages article small { color:#8192a6; font-size:10px; }
.match-chat-messages article small.match-chat-agent-meta { border-top:1px solid #e7eef6; color:#66809a; margin-top:2px; padding-top:6px; }
.match-chat-messages article ul { color:#536b84; display:grid; font-size:11px; gap:4px; margin:0; padding-left:17px; }
.match-chat-messages article.is-user { flex-direction:row-reverse; }
.match-chat-messages article.is-user > span { background:#245fd0; color:#fff; }
.match-chat-messages article.is-user > div { background:#eaf3ff; border-color:#cfe1f7; border-radius:14px 5px 14px 14px; }
.match-chat-messages article.is-error > span { background:#fff0ec; color:#d35f42; }
.match-chat-messages article.is-error > div { background:#fff8f5; border-color:#f2d7cf; }
.match-chat-evidence { display:flex; flex-wrap:wrap; gap:5px; }
.match-chat-evidence button { background:#edf6ff; border:1px solid #d1e5f8; border-radius:999px; color:#2868af; cursor:pointer; font-size:9px; padding:5px 7px; }
.match-chat-messages .is-typing > div { align-items:center; display:flex; flex-wrap:wrap; gap:5px; }
.match-chat-messages .is-typing i { animation:match-chat-dot 1.15s infinite ease-in-out; background:#4b8ed7; border-radius:50%; height:6px; width:6px; }
.match-chat-messages .is-typing i:nth-child(2) { animation-delay:.14s; }
.match-chat-messages .is-typing i:nth-child(3) { animation-delay:.28s; }
.match-chat-messages .is-typing small { flex-basis:100%; }
@keyframes match-chat-dot { 0%,70%,100% { opacity:.3; transform:translateY(0); } 35% { opacity:1; transform:translateY(-3px); } }
.match-chat-suggestions { display:flex; gap:6px; overflow-x:auto; padding:0 14px 9px; scrollbar-width:none; }
.match-chat-suggestions button { background:#f0f6fd; border:1px solid #dce8f5; border-radius:999px; color:#42698f; cursor:pointer; flex:0 0 auto; font-size:10px; max-width:220px; overflow:hidden; padding:7px 9px; text-overflow:ellipsis; white-space:nowrap; }
.match-chat-form { align-items:flex-end; background:#fff; border-top:1px solid #dfe8f2; display:grid; gap:8px; grid-template-columns:1fr auto; padding:11px 12px; }
.match-chat-form textarea { background:#f6f9fc; border:1px solid #dce6f0; border-radius:12px; color:#294560; font:inherit; font-size:12px; line-height:1.5; max-height:104px; min-height:48px; outline:0; padding:8px 10px; resize:none; }
.match-chat-form textarea:focus { border-color:#68a6e7; box-shadow:0 0 0 3px rgba(63,137,216,.11); }
.match-chat-form > button { align-items:center; background:linear-gradient(135deg,#286de0,#16a2c3); border:0; border-radius:11px; color:#fff; cursor:pointer; display:flex; height:42px; justify-content:center; width:42px; }
.match-chat-form > button:disabled { cursor:wait; opacity:.48; }

@media (max-width: 1180px) {
  .match-sync-pane { height:440px; }
  .match-review-studio .match-video-stage { height:394px; }
  .match-review-studio .match-visual-stage { height:394px; max-height:394px; min-height:394px; }
}

@media (max-width: 820px) {
  .match-sync-pane { height:420px; }
  .match-review-studio .match-video-stage { height:374px; }
  .match-review-studio .match-visual-stage { height:374px;  }
  .match-virtual-head-actions > strong { display:none; }
  .match-chat-widget { bottom:max(18px,env(safe-area-inset-bottom)); right:14px; }
  .match-review-studio:fullscreen > .match-chat-widget,
  .tv-workspace:fullscreen > .match-chat-widget { bottom:auto; right:14px; top:14px; }
}

@media (max-width: 560px) {
  .match-virtual-head-actions .match-view-tabs button { padding:5px 7px; }
  .match-chat-launch span { display:none; }
  .match-chat-launch { border-radius:50%; height:52px; justify-content:center; min-height:52px; padding:0; width:52px; }
  .match-chat-panel { height:calc(100vh - 28px); width:calc(100vw - 28px); }
}

/* Xiaoqiu match copilot: fixed, draggable and resizable on desktop. */
.match-chat-launch {
  border-radius:19px;
  cursor:grab;
  gap:9px;
  min-height:60px;
  padding:6px 14px 6px 7px;
  touch-action:none;
  user-select:none;
}
.match-chat-launch.is-dragging { cursor:grabbing; }
.match-chat-widget.is-snapping { transition:left 220ms cubic-bezier(.22,.8,.32,1),top 220ms cubic-bezier(.22,.8,.32,1); }
.match-chat-panel.is-snapping { transition:left 220ms cubic-bezier(.22,.8,.32,1),top 220ms cubic-bezier(.22,.8,.32,1),opacity 180ms ease,transform 180ms ease; }
.match-chat-launch > img {
  background:#fff;
  border:2px solid rgba(255,255,255,.76);
  border-radius:15px;
  box-shadow:0 5px 14px rgba(5,38,76,.2);
  height:46px;
  object-fit:cover;
  width:46px;
}
.match-chat-launch > span { display:grid; gap:1px; min-width:max-content; text-align:left; white-space:nowrap; }
.match-chat-launch > span strong { font-size:14px; line-height:1.15; }
.match-chat-launch > span small { color:#ccecff; font-size:10px; font-weight:700; }
.match-chat-nudge {
  align-items:center;
  background:rgba(255,255,255,.98);
  border:1px solid #d7e5f2;
  border-radius:15px 15px 4px 15px;
  bottom:72px;
  box-shadow:0 14px 34px rgba(18,55,93,.2);
  color:#3b5876;
  display:flex;
  gap:9px;
  opacity:0;
  padding:9px 12px 9px 9px;
  pointer-events:none;
  position:absolute;
  right:0;
  transform:translateY(8px) scale(.96);
  transition:opacity 160ms ease,transform 160ms ease;
  width:max-content;
  max-width:260px;
}
.match-chat-nudge::after {
  border-left:8px solid transparent;
  border-top:8px solid #fff;
  bottom:-7px;
  content:"";
  position:absolute;
  right:24px;
}
.match-chat-nudge img {
  border-radius:10px;
  height:34px;
  object-fit:cover;
  width:34px;
}
.match-chat-nudge span { font-size:13px; line-height:1.35; }
.match-chat-nudge strong { color:#246fc5; margin-right:6px; }
.match-chat-widget.show-nudge:not(.is-open) .match-chat-nudge {
  opacity:1;
  transform:translateY(0) scale(1);
}
.match-chat-widget[data-match-chat-dock="left"] .match-chat-nudge { left:calc(100% + 10px); right:auto; }
.match-chat-widget[data-match-chat-dock="right"] .match-chat-nudge { left:auto; right:calc(100% + 10px); }
.match-chat-widget[data-match-chat-dock="left"][data-match-chat-vertical="start"] .match-chat-nudge,
.match-chat-widget[data-match-chat-dock="right"][data-match-chat-vertical="start"] .match-chat-nudge { bottom:auto; top:0; }
.match-chat-widget[data-match-chat-dock="left"][data-match-chat-vertical="end"] .match-chat-nudge,
.match-chat-widget[data-match-chat-dock="right"][data-match-chat-vertical="end"] .match-chat-nudge { bottom:0; top:auto; }
.match-chat-widget[data-match-chat-dock="top"] .match-chat-nudge { bottom:auto; top:calc(100% + 10px); }
.match-chat-widget[data-match-chat-dock="bottom"] .match-chat-nudge { bottom:calc(100% + 10px); top:auto; }
.match-chat-widget[data-match-chat-dock="top"][data-match-chat-align="start"] .match-chat-nudge,
.match-chat-widget[data-match-chat-dock="bottom"][data-match-chat-align="start"] .match-chat-nudge { left:0; right:auto; }
.match-chat-widget[data-match-chat-dock="top"][data-match-chat-align="end"] .match-chat-nudge,
.match-chat-widget[data-match-chat-dock="bottom"][data-match-chat-align="end"] .match-chat-nudge { left:auto; right:0; }
.match-chat-widget[data-match-chat-dock] .match-chat-nudge::after { display:none; }
.match-chat-panel {
  bottom:0;
  height:min(700px,calc(100vh - 48px));
  max-height:calc(100vh - 20px);
  max-width:calc(100vw - 20px);
  min-height:430px;
  min-width:380px;
  position:absolute;
  resize:none;
  right:0;
  width:min(480px,calc(100vw - 36px));
}
.match-chat-panel > header {
  cursor:move;
  min-height:72px;
  padding:11px 15px;
  touch-action:none;
  user-select:none;
}
.match-chat-panel > header.is-dragging { cursor:grabbing; }
.match-chat-avatar {
  background:#fff;
  border:2px solid rgba(255,255,255,.62);
  border-radius:13px;
  height:46px;
  object-fit:cover;
  width:46px;
}
.match-chat-panel > header small { font-size:10px; }
.match-chat-panel > header strong { font-size:18px; }
.match-chat-context {
  font-size:13px;
  justify-content:flex-start;
  min-height:42px;
  padding:9px 16px;
}
.match-chat-context span { max-width:100%; }
.match-chat-messages { gap:14px; padding:17px 16px; }
.match-chat-messages article { gap:9px; }
.match-chat-messages article > span {
  border-radius:11px;
  height:34px;
  overflow:hidden;
  width:34px;
}
.match-chat-messages article > span img {
  height:100%;
  object-fit:cover;
  width:100%;
}
.match-chat-messages article > div {
  gap:8px;
  line-height:1.68;
  max-width:86%;
  padding:11px 13px;
}
.match-chat-messages article p { font-size:14.5px; }
.match-chat-messages article small { font-size:11.5px; }
.match-chat-messages article ul { font-size:13px; gap:5px; }
.match-chat-evidence button { font-size:10.5px; padding:6px 8px; }
.match-chat-gallery {
  display:grid;
  gap:7px;
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.match-chat-image {
  aspect-ratio:16 / 9;
  background:linear-gradient(135deg,#eaf2fa,#dce9f5);
  border:1px solid #d7e3ef;
  border-radius:9px;
  cursor:pointer;
  overflow:hidden;
  padding:0;
  position:relative;
}
.match-chat-image img { height:100%; object-fit:cover; opacity:0; transition:opacity 180ms ease; width:100%; }
.match-chat-image.is-loaded img { opacity:1; }
.match-chat-image span {
  background:rgba(5,22,40,.76);
  border-radius:999px;
  bottom:5px;
  color:#fff;
  font-size:9px;
  left:5px;
  padding:3px 6px;
  position:absolute;
}
.match-chat-suggestions button { font-size:11px; padding:8px 10px; }
.match-chat-form textarea { font-size:14px; min-height:54px; }
.match-chat-resize-handle {
  background:transparent;
  border:0;
  bottom:3px;
  cursor:nwse-resize;
  height:20px;
  padding:0;
  position:absolute;
  right:3px;
  touch-action:none;
  width:20px;
  z-index:8;
}
.match-chat-resize-handle::before,
.match-chat-resize-handle::after {
  border-bottom:2px solid rgba(77,111,145,.62);
  content:"";
  position:absolute;
  transform:rotate(-45deg);
}
.match-chat-resize-handle::before { bottom:5px; right:1px; width:13px; }
.match-chat-resize-handle::after { bottom:5px; right:5px; width:7px; }
.match-chat-resize-handle.is-resizing::before,
.match-chat-resize-handle.is-resizing::after { border-color:#2674cf; }
.match-chat-resize-edge {
  background:transparent;
  border:0;
  margin:0;
  padding:0;
  position:absolute;
  touch-action:none;
  z-index:9;
}
.match-chat-resize-edge.is-n,.match-chat-resize-edge.is-s { cursor:ns-resize; height:9px; left:16px; right:16px; }
.match-chat-resize-edge.is-n { top:-4px; }
.match-chat-resize-edge.is-s { bottom:-4px; }
.match-chat-resize-edge.is-e,.match-chat-resize-edge.is-w { bottom:16px; cursor:ew-resize; top:16px; width:9px; }
.match-chat-resize-edge.is-e { right:-4px; }
.match-chat-resize-edge.is-w { left:-4px; }
.match-chat-resize-edge.is-ne,.match-chat-resize-edge.is-nw,.match-chat-resize-edge.is-se,.match-chat-resize-edge.is-sw { height:20px; width:20px; }
.match-chat-resize-edge.is-ne { cursor:nesw-resize; right:-4px; top:-4px; }
.match-chat-resize-edge.is-nw { cursor:nwse-resize; left:-4px; top:-4px; }
.match-chat-resize-edge.is-se { bottom:-3px; cursor:nwse-resize; right:-3px; }
.match-chat-resize-edge.is-sw { bottom:-4px; cursor:nesw-resize; left:-4px; }
.match-chat-resize-edge.is-resizing { background:rgba(37,99,235,.08); }

@media (max-width: 560px) {
  .match-chat-launch { border-radius:50%; height:58px; min-height:58px; padding:5px; width:58px; }
  .match-chat-launch > img { border-radius:50%; height:46px; width:46px; }
  .match-chat-launch > span { display:none; }
  .match-chat-panel {
    bottom:0 !important;
    height:calc(100vh - 28px);
    left:auto !important;
    max-height:none;
    min-height:0;
    min-width:0;
    resize:none;
    right:0 !important;
    top:auto !important;
    width:calc(100vw - 28px);
  }
  .match-chat-panel > header { cursor:default; }
  .match-chat-resize-edge { display:none; }
  .match-chat-nudge { bottom:68px; max-width:230px; }
}

/* G8.10 · balanced three-column task creation and explicit task naming. */
.match-command-grid {
  align-items: stretch;
  gap: 14px;
  grid-template-columns: minmax(240px, .9fr) minmax(300px, 1.05fr) minmax(190px, .65fr);
}

.match-template-column,
.match-parameter-column {
  background: rgba(255,255,255,.68);
  border: 1px solid #dfe9f5;
  border-radius: 16px;
  min-width: 0;
  padding: 14px;
}

.match-column-heading,
.match-plan-title {
  align-items: center;
  display: flex;
  gap: 9px;
  margin-bottom: 12px;
}

.match-column-heading > span,
.match-plan-title > span {
  align-items: center;
  background: #eaf3ff;
  border: 1px solid #d1e3fa;
  border-radius: 8px;
  color: #2465c8;
  display: flex;
  flex: 0 0 auto;
  font: 850 10px/1 ui-monospace,SFMono-Regular,Consolas,monospace;
  height: 27px;
  justify-content: center;
  width: 27px;
}

.match-column-heading > div,
.match-plan-title > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.match-column-heading strong,
.match-plan-title strong {
  color: #273f5e;
  font-size: 13px;
}

.match-column-heading small,
.match-plan-title small {
  color: #8493a7;
  font-size: 10px;
  line-height: 1.35;
}

.match-template-column .match-input-mode {
  display: flex;
  justify-content: center;
  margin-inline: auto;
  width: fit-content;
}

.match-template-column .match-input-mode button {
  flex: 0 0 auto;
  min-width: 0;
  padding: 8px 11px;
  text-align: center;
}

.match-template-column .match-template-list {
  gap: 6px;
  margin-top: 10px;
  max-height: 386px;
  padding-right: 4px;
}

.match-template-column .match-template-option {
  min-height: 64px;
  padding: 10px 10px 10px 13px;
}

.match-template-column .match-template-option strong {
  font-size: 13px;
}

.match-template-column .match-template-option small {
  font-size: 11px;
  line-height: 1.42;
}

.match-template-column .match-prompt-field {
  margin-top: 10px;
}

.match-template-column .match-prompt-field textarea {
  font-size: 12px;
  min-height: 230px;
}

.match-parameter-column .match-field-grid {
  gap: 10px;
  grid-template-columns: 1fr;
  margin-top: 0;
}

.match-parameter-column .match-video-ai-option {
  max-width: none;
}

.match-compose-actions {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.match-task-name-row {
  display: block;
  min-width: 0;
}

.match-run-actions .match-upload-button {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  white-space: nowrap;
}

.match-task-name-field {
  align-items: center;
  background: #fff;
  border: 1px solid #d8e4f1;
  border-radius: 11px;
  display: flex;
  gap: 8px;
  min-height: 44px;
  min-width: 0;
  padding: 0 11px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.match-task-name-field:focus-within {
  border-color: #72a9ec;
  box-shadow: 0 0 0 4px rgba(37,99,235,.1);
}

.match-task-name-field > span {
  color: #5e7390;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
}

.match-task-name-field input {
  background: transparent;
  border: 0;
  color: #263b58;
  font-family: inherit;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  min-width: 0;
  outline: 0;
  padding: 0;
  width: 100%;
}

.match-task-name-field input::placeholder {
  color: #9aa8b9;
  font-size: 11px;
}

.match-run-actions {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3,minmax(0,1fr));
}

.match-run-actions .button {
  font-size: 12px;
  gap: 5px;
  min-height: 40px;
  min-width: 0;
  padding-inline: 7px;
  white-space: nowrap;
}

.match-run-actions .ui-icon { flex: 0 0 auto; }

#match-preview-button { margin-left: 0; }

.match-plan-preview {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  padding: 14px;
}

.match-plan-title {
  border-bottom: 1px solid rgba(152,190,238,.14);
  margin-bottom: 11px;
  padding-bottom: 11px;
  position: relative;
}

.match-plan-title > span {
  background: rgba(64,137,236,.15);
  border-color: rgba(112,173,249,.24);
  color: #8dc6ff;
}

.match-plan-title strong { color: #eaf3ff; }
.match-plan-title small { color: #8299b8; }

.match-plan-content {
  align-content: start;
  display: grid;
  flex: 1;
  min-height: 260px;
  overflow-y: auto;
  position: relative;
  scrollbar-color: rgba(116,153,198,.48) transparent;
  scrollbar-width: thin;
}

.match-preview-placeholder { min-height: 250px; }

.match-plan-name {
  color: #eef6ff;
  display: block;
  font-size: 14px;
  margin: 1px 2px 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.match-plan-step {
  grid-template-columns: 22px minmax(0,1fr);
  padding: 6px 7px;
}

.match-plan-step strong {
  font-size: 12px;
  line-height: 1.35;
}

@media (min-width: 1181px) {
  .match-command-grid { height: 560px; }

  .match-template-column,
  .match-parameter-column,
  .match-plan-preview {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .match-template-column,
  .match-parameter-column {
    display: flex;
    flex-direction: column;
  }

  .match-template-column .match-template-list {
    flex: 1;
    max-height: none;
    min-height: 0;
    overflow-y: auto;
  }

  .match-template-column .match-prompt-field:not(.hidden) {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
  }

  .match-template-column .match-prompt-field textarea {
    flex: 1;
    height: auto;
    min-height: 0;
  }

  .match-parameter-column { overflow-y: auto; }
  .match-plan-steps { grid-template-columns: 1fr; }
}

@media (max-width: 1180px) {
  .match-command-grid {
    grid-template-columns: minmax(250px,.9fr) minmax(290px,1.1fr);
  }
  .match-plan-preview { grid-column: 1 / -1; }
  .match-plan-content { min-height: 0; }
  .match-plan-steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .match-workbench,
  .match-workbench > * {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
  .match-command-grid { grid-template-columns: 1fr; }
  .match-plan-preview { grid-column: auto; }
  .match-run-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .match-run-actions > * {
    justify-content: center;
    width: 100%;
  }
  .match-plan-steps { grid-template-columns: 1fr; }
}

/* Result-first history mode and bounded mobile controls. */
.match-command.is-collapsed {
  padding-bottom: 14px;
}
.match-command.is-collapsed .match-command-grid,
.match-command.is-collapsed .match-command-heading > div > p {
  display: none;
}
.match-command.is-collapsed .match-command-heading {
  margin-bottom: 0;
}
.match-chat-header-actions {
  display: flex;
  gap: 7px;
}
.match-chat-panel > header .match-chat-header-actions button {
  min-height: 38px;
  width: 38px;
}

@media (max-width: 760px) {
  .match-command-heading,
  .match-card-heading,
  .match-replay-toolbar,
  .match-sync-grid,
  .match-result-toolbar,
  .match-result-actions,
  .match-context-switcher,
  .match-context-field,
  .match-replay-identity,
  .match-replay-controls,
  .match-segment-switcher {
    max-width: 100%;
    min-width: 0;
  }
  .match-command-heading {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
  }
  #match-new-analysis-toggle {
    justify-content: center;
    width: 100%;
  }
  .match-result-toolbar,
  .match-result-toolbar.is-floating {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    position: static;
  }
  .match-result-toolbar.is-floating .match-result-identity {
    display: block;
    visibility: visible;
  }
  .match-context-switcher,
  .match-result-toolbar.is-floating .match-context-switcher {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: visible;
    width: 100%;
  }
  .match-context-field,
  .match-team-field,
  .match-task-field {
    flex-basis: auto;
    width: 100%;
  }
  .match-context-field .ui-select-trigger,
  .match-context-field select {
    min-height: 44px;
  }
  .match-replay-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .match-replay-identity em {
    overflow-wrap: anywhere;
    white-space: normal;
  }
  .match-replay-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }
  .match-replay-controls > *,
  .match-overlay-switch,
  .match-presenter-toggle,
  .match-tactical-play,
  .match-tactical-exit {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
  .match-segment-switcher {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }
  .match-segment-switcher > button {
    height: 44px;
    width: 44px;
  }
  .match-segment-switcher .match-select-shell,
  .match-segment-switcher .ui-select-shell {
    min-width: 0;
    width: 100%;
  }
  .match-fullscreen-toggle,
  .match-chat-panel > header .match-chat-header-actions button,
  .match-layer-menu > summary,
  .match-overlay-switch button,
  .match-view-tabs button,
  .match-chat-suggestions button,
  .match-chat-evidence button {
    min-height: 44px;
  }
  .match-chat-panel > header .match-chat-header-actions button {
    width: 44px;
  }
  .match-replay-progress {
    grid-template-columns: minmax(0, 1fr);
    overflow: visible;
  }
  .match-replay-progress span {
    min-height: 32px;
    min-width: 0;
  }
  .match-card-heading p,
  .match-replay-identity small,
  .match-replay-progress span,
  .match-result-identity small,
  .match-chat-panel > header small,
  .match-chat-messages article small {
    font-size: 12px;
  }
}

/* Result context stays in normal flow at the top, then becomes a compact
   review control surface immediately below the sticky application header. */
.match-result-toolbar-sentinel {
  display: block;
  height: 0;
  pointer-events: none;
  width: 100%;
}

.match-result-toolbar {
  align-items: center;
  align-self: start;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
  box-sizing: border-box;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px,1fr) auto;
  padding: 4px 0;
  position: sticky;
  top: var(--match-result-sticky-top, 84px);
  transition: background-color .18s ease,border-color .18s ease,box-shadow .18s ease,padding .18s ease;
  width: 100%;
  z-index: 3;
}

.match-result-toolbar.is-floating {
  backdrop-filter: none;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  padding: 0;
  pointer-events: none;
}

.match-result-toolbar.is-floating .match-result-identity { visibility: hidden; }

.match-result-toolbar.is-floating .match-context-switcher {
  backdrop-filter: blur(16px) saturate(140%);
  background: rgba(247,251,255,.82);
  border: 1px solid rgba(188,207,230,.76);
  border-radius: 13px;
  box-shadow: 0 12px 30px rgba(31,65,112,.13),0 2px 7px rgba(31,65,112,.05);
  padding: 5px;
  pointer-events: auto;
}

.match-result-identity { min-width: 0; }
.match-result-identity > div { min-width: 0; }
.match-result-identity strong {
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.match-result-identity small { font-size: 11px; }

.match-context-switcher {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: 150px minmax(190px,230px) minmax(170px,205px);
}

.match-context-field {
  display: block;
  min-width: 0;
}

.match-context-field .match-select-shell,
.match-context-field .ui-select-shell,
.match-context-field .ui-select-trigger {
  min-width: 0;
  width: 100%;
}

.match-context-field .ui-select-trigger {
  height: 38px;
  min-height: 38px;
  padding: 4px 10px 4px 11px;
}

.match-context-field .ui-select-trigger .ui-select-value small { display: none; }

.match-context-field select { min-height: 38px; width: 100%; }

/* The match page header stays compact so more of the actual analysis remains
   visible below the two sticky review controls. */
body:has(#match-view:not(.hidden)) .main-content { padding-top: 12px; }
body:has(#match-view:not(.hidden)) .topbar {
  margin-bottom: 14px;
  padding: 2px 0 9px;
}
body:has(#match-view:not(.hidden)) .topbar::before { inset: -12px -3vw -1px; }
body:has(#match-view:not(.hidden)) .topbar-kicker {
  line-height: 1.15;
  margin-bottom: 3px;
}
body:has(#match-view:not(.hidden)) .topbar h1 {
  font-size: clamp(26px,1.8vw,30px) !important;
  line-height: 1.08;
}
body:has(#match-view:not(.hidden)) .topbar .icon-button {
  height: 36px;
  width: 36px;
}
body:has(#match-view:not(.hidden)) .topbar .user-menu {
  min-height: 42px;
  padding: 3px 8px 3px 4px;
}
body:has(#match-view:not(.hidden)) .topbar .user-avatar {
  height: 32px;
  width: 32px;
}

.match-plan-dimensions {
  background: rgba(235,244,255,.72);
  border: 1px solid #dce8f5;
  border-radius: 12px;
  display: grid;
  gap: 7px;
  margin: 0 0 10px;
  padding: 9px 10px;
}

.match-plan-dimensions > span {
  color: #70839b;
  font-size: 11px;
  font-weight: 800;
}

.match-plan-dimensions > div { display: flex; flex-wrap: wrap; gap: 6px; }
.match-plan-dimensions b {
  background: #fff;
  border: 1px solid #d7e4f3;
  border-radius: 999px;
  color: #285681;
  font-size: 11px;
  padding: 5px 8px;
}

.match-segment-switcher {
  align-items: center;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(177,208,237,.22);
  border-radius: 11px;
  display: flex;
  gap: 4px;
  padding: 3px;
}

.match-replay-controls.is-segment-only > :not(.match-segment-switcher) {
  display: none;
}

.match-segment-switcher > button {
  align-items: center;
  background: rgba(255,255,255,.08);
  border: 0;
  border-radius: 8px;
  color: #d8e9f8;
  cursor: pointer;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  padding: 0;
  width: 36px;
}

.match-segment-switcher > button:hover:not(:disabled) { background: rgba(255,255,255,.16); }
.match-segment-switcher > button:disabled { cursor: default; opacity: .32; }
.match-segment-switcher .match-select-shell,
.match-segment-switcher .ui-select-shell { min-width: 188px; width: 188px; }
.match-segment-switcher .ui-select-trigger {
  background: rgba(255,255,255,.96);
  min-height: 36px;
}

@media (max-width: 1180px) {
  .match-result-toolbar:not(.is-floating) { grid-template-columns: 1fr; }
  .match-result-toolbar.is-floating { grid-template-columns: minmax(0,1fr) auto; }
  .match-context-switcher { grid-template-columns: 150px minmax(200px,1fr) minmax(180px,1fr); }
}

@media (max-width: 760px) {
  .match-result-toolbar:not(.is-floating) { padding: 4px 0; }
  .match-result-toolbar.is-floating { display: block; }
  .match-context-switcher {
    display: flex;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }
  .match-context-field { flex: 0 0 190px; }
  .match-team-field { flex-basis: 150px; }
  .match-task-field { flex-basis: 230px; }
  .match-result-toolbar.is-floating .match-result-identity { display: none; }
  .match-result-toolbar.is-floating .match-context-switcher { width: 100%; }
  .match-segment-switcher .match-select-shell,
  .match-segment-switcher .ui-select-shell { min-width: 150px; width: 150px; }
}