/* Shared public MIX presentation. Rules and shot bindings remain in their owning apps. */
.mp-presentation {
  --mp-bg:#f4f7fc; --mp-card:#fff; --mp-header:#ebf0f6; --mp-line:#dbe4ec;
  --mp-ink:#182b3b; --mp-navy:#123f60; --mp-muted:#697b8b; --mp-cyan:#1784a2;
  --mp-qualifier:#ebf6fc; --mp-winner:#e5f5eb;
  color:var(--mp-ink); background:var(--mp-bg); padding:20px; border-radius:12px;
  font:14px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  margin:0 0 14px; min-width:0; overflow-wrap:anywhere;
}
.mp-presentation * { box-sizing:border-box; }
.mp-section-head { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:18px; }
.mp-section-head h2 { margin:4px 0; color:var(--mp-ink); font-size:26px; line-height:1.15; font-weight:800; letter-spacing:-.6px; }
.mp-section-head p,.mp-note { color:var(--mp-muted); margin:7px 0 0; font-size:12px; }
.mp-eyebrow { color:var(--mp-cyan); font-size:10px; font-weight:800; letter-spacing:1.6px; text-transform:uppercase; }
.mp-status { background:var(--mp-card); border:1px solid var(--mp-line); color:var(--mp-navy); padding:10px 14px; border-radius:10px; font-weight:700; font-size:12px; flex-shrink:0; }
.mp-note { margin:-6px 0 16px; }
.mp-standings { width:100%; border-collapse:separate; border-spacing:0; table-layout:auto; font:inherit; }
.mp-standings th { background:var(--mp-header); color:var(--mp-muted); padding:12px 10px; font-size:10px; text-align:center; white-space:nowrap; font-weight:700; }
.mp-standings th:nth-child(2) { text-align:left; }
.mp-standings th:first-child { border-radius:9px 0 0 0; }
.mp-standings th:last-child { border-radius:0 9px 0 0; }
.mp-standings td { padding:15px 10px; border-bottom:1px solid var(--mp-line); background:var(--mp-card); vertical-align:middle; text-align:center; font-size:13px; }
.mp-standings .is-qualifier td { background:var(--mp-qualifier); }
.mp-standings .is-winner td { background:var(--mp-winner); }
.mp-standings .mp-team-cell { text-align:left; width:45%; min-width:180px; }
.mp-standings .mp-place { color:var(--mp-cyan); font-weight:800; font-variant-numeric:tabular-nums; min-width:45px; }
.mp-standings .is-qualifier .mp-place { border-left:3px solid #39a8c7; }
.mp-standings .mp-total { color:var(--mp-cyan); font-size:18px; font-weight:800; white-space:nowrap; }
.mp-pair { min-width:0; display:flex; flex-direction:column; gap:4px; }
.mp-pair>strong { font-size:15px; color:var(--mp-ink); font-weight:800; }
.mp-pair>span { color:var(--mp-muted); font-size:12px; line-height:1.45; }
.mp-pair>small { color:var(--mp-muted); font-size:10px; }
.mp-badge { display:inline-block; font-size:10px; font-weight:700; color:var(--mp-navy); padding:4px 7px; border-radius:4px; background:var(--mp-header); }
.mp-footnote { color:var(--mp-muted); font-size:10px; margin:12px 0 0; }
.mp-empty { padding:24px; text-align:center; background:var(--mp-card); border:1px solid var(--mp-line); border-radius:10px; }
.mp-final-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.mp-final-card { border:1px solid var(--mp-line); background:var(--mp-card); border-radius:12px; overflow:hidden; min-width:0; }
.mp-card-header { display:flex; justify-content:space-between; gap:10px; padding:9px 14px; background:var(--mp-header); color:var(--mp-navy); font-size:11px; }
.mp-card-header>span { color:var(--mp-muted); }
.mp-final-card.is-winner { border-color:#d6bd70; }
.mp-final-card.is-winner .mp-card-header { background:#fff1cd; color:#81672a; }
.mp-final-card.is-winner .mp-pair-score { background:var(--mp-winner); margin:-14px -14px 12px; padding:14px; }
.mp-card-body { padding:14px; }
.mp-pair-score { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.mp-score { text-align:right; color:var(--mp-navy); font-size:30px; font-weight:800; font-variant-numeric:tabular-nums; line-height:1.1; flex-shrink:0; }
.mp-score>small { display:block; font-size:8px; color:var(--mp-muted); letter-spacing:1px; margin-top:4px; }
.mp-stage-scores { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border:1px solid var(--mp-line); border-radius:8px; overflow:hidden; }
.mp-stage-score { display:flex; flex-direction:column; align-items:center; gap:3px; padding:9px 3px; text-align:center; border-right:1px solid var(--mp-line); }
.mp-stage-score:last-child { border-right:0; }
.mp-stage-score>span { color:var(--mp-muted); font-size:10px; }
.mp-stage-score>strong { color:var(--mp-navy); font-size:19px; }
.mp-stage-score>small { color:var(--mp-muted); font-size:8px; }
.mp-stage-score.is-partial { background:var(--mp-qualifier); }
.mp-ko { margin:10px 0 0; color:var(--mp-muted); font-size:12px; }
.mp-shot-details { margin-top:10px; color:var(--mp-muted); font-size:11px; }
.mp-shot-details>summary { cursor:pointer; min-height:30px; padding:7px 0; color:var(--mp-navy); font-weight:700; }
.mp-member-detail { border-top:1px solid var(--mp-line); padding:10px 0 0; margin:6px 0; }
.mp-member-heading { display:flex; justify-content:space-between; gap:8px; margin-bottom:7px; }
.mp-member-heading strong { color:var(--mp-ink); }
.mp-member-stage { display:flex; gap:8px; align-items:flex-start; margin:4px 0; }
.mp-shot-strip { display:flex; flex-wrap:wrap; gap:3px; }
.mp-shot { display:flex; align-items:center; justify-content:center; width:18px; height:18px; border-radius:3px; background:var(--mp-header); font-size:11px; }
.mp-shot.hit { color:#fff; background:#179164; }.mp-shot.miss { color:#fff; background:#d84b4b; }

/* The field operator keeps the familiar shot cells and the selected light/dark theme. */
.mp-scorer .board-head .bt { color:var(--fg); }
.mp-scorer .shooter { border-radius:12px; padding:12px; }
.mp-scorer .who .nm,.mp-scorer .final-who .nm { white-space:normal; overflow-wrap:anywhere; font-size:16px; }
.mp-scorer .mp-scorer-pair { margin:18px 0 0; border:1px solid var(--line); border-bottom:0; padding:10px 14px; border-radius:12px 12px 0 0; color:var(--fg); background:var(--panel2); font-size:13px; font-weight:800; }
.mp-scorer .shooter.mp-first-member { border-radius:0; margin-bottom:0; border-bottom:0; }
.mp-scorer .shooter.mp-last-member { border-radius:0 0 12px 12px; }
.mp-scorer .final-athlete { grid-template-columns:42px minmax(0,1fr) 68px 68px; padding:12px; gap:10px; margin-bottom:14px; }
.mp-scorer .final-grid-head { display:none; }
.mp-scorer .final-total .v { font-size:27px; }
.mp-scorer .final-who .meta { display:block; white-space:normal; font-size:10px; }
.mp-scorer .final-stages { grid-column:1/-1; align-items:stretch; gap:10px; padding:2px 2px 8px; }
.mp-scorer .final-stage { border-radius:9px; padding:10px; min-width:280px; }
.mp-scorer .final-stage.active { padding:9px; border-color:#2692ac; }
.mp-scorer .final-stage-title { font-size:11px; margin-bottom:10px; }
.mp-scorer .final-stage-title span:last-child { font-size:9px; }
.mp-scorer .final-cells { display:flex; flex-direction:column; gap:12px; }
.mp-scorer .mp-member-shot-head { display:flex; justify-content:space-between; gap:12px; color:var(--fg); font-size:12px; font-weight:700; margin-bottom:5px; }
.mp-scorer .mp-member-shot-head>span { white-space:nowrap; color:var(--muted); font-variant-numeric:tabular-nums; }
.mp-scorer .mp-member-shot-cells { display:grid; grid-template-columns:repeat(5,32px); gap:4px; }
.mp-scorer .final-cell { width:32px; height:32px; flex-basis:32px; font-size:12px; }
.mp-scorer .final-stage.active .mp-member-shot-cells { grid-template-columns:repeat(5,44px); }
.mp-scorer .final-stage.active .final-cell { width:44px; height:44px; flex-basis:44px; font-size:14px; }
.mp-scorer .final-close-btn { min-height:48px; }

/* Television can retain the operator's selected dark theme. */
html[data-theme="dark"] .mp-presentation {
  --mp-bg:#101f30; --mp-card:#162b40; --mp-header:#203950; --mp-line:#35506a;
  --mp-ink:#f1f6fc; --mp-navy:#cae9ff; --mp-muted:#abc0d0; --mp-cyan:#69cce8;
  --mp-qualifier:#173d50; --mp-winner:#164539;
}
.ticker-content .mp-presentation { padding:18px; }
.ticker-content .mp-standings td { font-size:17px; padding:16px 12px; }
.ticker-content .mp-pair>strong { font-size:19px; }
.ticker-content .mp-pair>span { font-size:14px; }
.ticker-content .mp-pair>small { font-size:11px; }
.ticker-content .mp-standings .mp-total { font-size:26px; }
.ticker-content .mp-final-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.workspace.split .mp-final-grid { grid-template-columns:1fr; }

@media(max-width:700px) {
  .mp-presentation { padding:14px 10px; border-radius:10px; }
  .mp-section-head { align-items:flex-start; flex-direction:column; gap:10px; margin-bottom:16px; }
  .mp-section-head h2 { font-size:25px; }.mp-section-head p { font-size:12px; }
  .mp-final-grid { grid-template-columns:1fr; }
  .mp-standings,.mp-standings tbody { display:block; }
  .mp-standings thead { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
  .mp-standings tbody>tr { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border:1px solid var(--mp-line); border-radius:12px; overflow:hidden; margin-bottom:12px; background:var(--mp-card); }
  .mp-standings td { min-width:0; border:0; padding:10px 5px; }
  .mp-standings .mp-place { grid-column:1; display:flex; align-items:center; justify-content:center; font-size:20px; }
  .mp-standings .mp-team-cell { grid-column:2/-1; width:auto; min-width:0; padding:14px 12px 14px 0; }
  .mp-standings .mp-round,.mp-standings .mp-total { border-top:1px solid var(--mp-line); font-size:20px; }
  .mp-standings td[data-label]:not(.mp-place)::before { content:attr(data-label); display:block; color:var(--mp-muted); font-weight:500; font-size:10px; margin-bottom:5px; }
  .mp-standings .mp-extra { grid-column:span 2; border-top:1px solid var(--mp-line); }
  .mp-standings .mp-remark { grid-column:1/-1; padding:0 12px 10px; }
  .mp-standings .mp-remark:empty { display:none; }
  .mp-pair>strong { font-size:16px; }.mp-pair>span { font-size:12px; }
  .mp-footnote { font-size:11px; }
  .mp-scorer .final-athlete { grid-template-columns:34px minmax(0,1fr) 48px 56px; padding:9px; gap:7px; }
  .mp-scorer .final-who .nm { font-size:14px; }
  .mp-scorer .cells { grid-template-columns:repeat(5,minmax(0,1fr)); gap:5px; }
  .mp-scorer .cell { min-height:40px; max-height:52px; aspect-ratio:auto; font-size:14px; }
}
@media print {
  .mp-presentation { color:#182b3b; background:white; padding:0; }
  .mp-final-card { break-inside:avoid; }
  .mp-shot-details { display:none; }
}
