/* Dual meets at the head table: Setup → Event (what kind of event, the dual meet rules), the Duals page (the list,
   a dual's scoreboard, bouts, lineups and exhibition bouts), its dialogs, the printed score sheet, and the dual
   touches on the dashboard, results, weights, the demo dialog and the guide. */

/* ---- a team badge ("FXR") with the jersey color on its edge (home green under NFHS) */
.dtb { display: inline-grid; place-items: center; min-width: 36px; height: 20px; padding: 0 5px; border-radius: 5px; background: #eef1f5; border: 1px solid #dde3ea; color: #344054; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; vertical-align: 1px; flex: none; line-height: 1; }
.dtb.c-green { box-shadow: inset 3px 0 0 var(--green); padding-left: 7px; }
.dtb.c-red { box-shadow: inset 3px 0 0 var(--red); padding-left: 7px; }
.dtb.lg { min-width: 46px; height: 26px; font-size: 12.5px; border-radius: 6px; }

/* ---- Setup → Event: what kind of event */
.ek > .ek-l { font-size: 12px; font-weight: 600; color: #3b4758; display: block; margin-bottom: 6px; }
.ek-guide { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ek-card { text-align: left; font: inherit; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; grid-template-columns: 44px 1fr 20px; gap: 14px; align-items: start; color: var(--ink); cursor: pointer; }
.ek-card:hover { border-color: #b7c3d4; }
.ek-card.on { border-color: var(--brand); background: #f5f8ff; box-shadow: 0 0 0 1px var(--brand) inset; }
.ek-ic { width: 44px; height: 44px; border-radius: 10px; background: #eef2f7; color: #475467; display: grid; place-items: center; }
.ek-card.on .ek-ic { background: #dfe8ff; color: var(--brand); }
.ek-ic svg.ic { width: 24px; height: 24px; }
.ek-card b { font-size: 16px; display: block; margin-bottom: 3px; }
.ek-card .ek-d { font-size: 13px; color: #475467; line-height: 1.4; display: block; }
.ek-card .ek-eg { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }
.ek-rad { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #c3cad5; background: #fff; margin-top: 2px; }
.ek-card.on .ek-rad { border: 6px solid var(--brand); }
.ek-note { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
/* the dual meet rules */
.dm { border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; padding: 14px 18px 16px; }
.dm-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.dm-h h2 { margin: 0; padding: 0; border: 0; font-size: 16px; }
.dm-h .muted { font-size: 12.5px; }
.dm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.dm-sec { padding: 0 0 14px; }
.dm-sec + .dm-sec { border-top: 1px solid var(--line2); padding-top: 12px; }
.dm-t { font-size: 12px; font-weight: 700; color: #3b4758; margin: 0 0 7px; display: block; }
.dm-t .dm-tn { font-weight: 400; }
.dm-pts { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.dm-pts .field { width: 72px; }
.dm-pts .field.dm-wide { width: 176px; }
.dm-pts .field.dm-wide > span { white-space: nowrap; }
.dm-pts .field > span { font-weight: 600; font-size: 12px; }
.dm-pts input { width: 100%; }
.dm-sec > small, .dm-sec .field > small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 6px; line-height: 1.4; }
.dm-radios { display: grid; gap: 6px; }
.dm .radio-row { background: #fff; padding: 7px 10px; align-items: center; }
.dm .radio-row input { margin-top: 0; }
.dm .radio-row > span { display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 13.5px; }
.dm .radio-row > span b { font-weight: 600; }
.dm .radio-row > span small { font-size: 12px; color: var(--muted); }
.dm .radio-row .dm-draw { flex-basis: 100%; font-size: 12.5px; display: block; }
.dm .radio-row .dm-draw span { display: inline; }
.dm-draw .btn { margin-left: 6px; display: inline-flex; width: auto; vertical-align: middle; }
.dm-color { max-width: 240px; }
.sw-line { display: flex; gap: 12px; align-items: flex-start; padding: 5px 0; cursor: pointer; }
.sw-line .switch { margin-top: 1px; flex: none; }
.sw-line .sw-pad { width: 44px; flex: none; }
.sw-line > span:last-child { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.sw-line > span:last-child b { font-weight: 600; }
.sw-line > span:last-child small { color: var(--muted); font-size: 11.5px; line-height: 1.35; }
.sw-line .lock-time { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sw-line input[type=time] { width: 130px; padding: 4px 8px; font-size: 13.5px; }
.dm-tb { margin: 2px 0 0; padding-left: 22px; font-size: 12.5px; line-height: 1.45; color: #344054; columns: 1; list-style: lower-alpha; }
.dm-tb li { padding: 1px 0; }
.dm-tb li::marker { color: var(--muted); font-weight: 600; }

/* ---- Duals: the list */
.dl-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.dl-stats .stat b { font-size: 26px; }
.dl-stats .stat > small { font-size: 12.5px; color: var(--muted); }
.dl-draw { font-size: inherit; }
.dl-psum { display: none; }
.dual-rows { display: grid; gap: 12px; }
.dl { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: grid; grid-template-columns: 52px minmax(220px, 330px) minmax(0, 1fr) 120px 150px; gap: 0 26px; align-items: center; padding: 14px 18px; cursor: pointer; }
.dl:hover { border-color: #b7c3d4; }
.dl.live { border-color: #f4b3c2; box-shadow: 0 0 0 1px #f4b3c2 inset; }
.dl-n { font-size: 12.5px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.dl-teams { display: grid; gap: 6px; min-width: 0; }
.dl-t { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; font-size: 15px; }
.dl-t .nm { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-t .sc { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 32px; text-align: right; color: #475467; }
.dl-t.lead .sc { color: var(--ink); }
.dl-t .sc.none { font-size: 15px; color: #98a2b3; font-weight: 600; }
.dl-st { min-width: 0; }
.dl-st .pill { font-size: 11.5px; padding: 2px 9px; }
.dl-pl { display: none; }
.dl-line { font-size: 14px; margin-top: 6px; }
.dl-warn { color: #a14a08; }
.dl-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.dl-sub.warn { color: #a14a08; }
.dl-prog { display: grid; grid-template-columns: repeat(var(--n, 14), 1fr); gap: 3px; margin-top: 8px; max-width: 340px; }
.dl-prog i { height: 6px; border-radius: 3px; background: #e4e8ee; }
.dl-prog i.d { background: #475467; }
.dl-prog i.n { background: var(--live); }
.dl-mat { font-size: 14px; font-weight: 600; }
.dl-mat small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 2px; }
.dl-acts { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.dl-foot { font-size: 12.5px; color: var(--muted); margin: 14px 2px 0; }
.dl-empty { margin-top: 4px; }

/* ---- a dual's page: the head */
.dp-head h1.dp-teams { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dp-vs { color: var(--muted); font-weight: 600; }
.dp-meta { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.dp-tabs { margin-bottom: 14px; }
.dp-tabs .tab .pill { margin-left: 4px; }
.dp-more .more-btn, .head-actions .dp-more { min-width: 36px; }
.dp-pre { margin-bottom: 14px; }

/* the scoreboard */
.d4-top { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; margin-bottom: 14px; align-items: stretch; }
.dsb { background: #0f1b2d; color: #fff; border-radius: 12px; padding: 16px 22px 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; }
.dsb-team { display: flex; align-items: center; gap: 14px; min-width: 0; }
.dsb-team.r { justify-content: flex-end; text-align: right; }
.dsb .dtb { background: #1c2c45; border-color: #34496b; color: #dbe6f5; }
.dsb-name { font-size: 22px; font-weight: 800; letter-spacing: .04em; min-width: 0; overflow-wrap: anywhere; }
.dsb-name small { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: #8ea0b8; margin-top: 1px; }
.dsb-mid { display: flex; align-items: center; gap: 14px; }
.dsb-sc { font-size: 46px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; min-width: 56px; text-align: center; }
.dsb-sc.lead { color: #facc15; }
.dsb-dash { font-size: 30px; color: #5d708c; font-weight: 700; line-height: 1; }
.dsb-now { grid-column: 1 / -1; display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: #c9d4e3; border-top: 1px solid #22324a; padding-top: 10px; margin-top: 2px; text-align: center; }
.dsb-now b { color: #fff; }
.dsb-now .dot { width: 8px; height: 8px; border-radius: 50%; background: #f43f5e; box-shadow: 0 0 0 3px rgba(244, 63, 94, .25); flex: none; }
.dsb-live .muted { color: #8ea0b8; }
.dsb-live .live-sc { color: #fda4af; font-weight: 700; }
.dsb-ded { grid-column: 1 / -1; text-align: center; font-size: 12.5px; color: #fcd34d; margin-top: -4px; }
.d4-info { margin: 0; padding: 12px 16px; }
.d4-info dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 7px 12px; font-size: 13px; align-content: start; }
.d4-info dt { color: var(--muted); font-weight: 600; font-size: 12px; padding-top: 1px; white-space: nowrap; }
.d4-info dd { margin: 0; min-width: 0; }

/* the bouts in dual order */
.dt th.c, .dt td.c { text-align: center; }
.dt th { white-space: nowrap; }
.dt th .dtb { margin-right: 4px; }
.dt .dt-sub { font-weight: 600; }
.dt td { padding-top: 6px !important; padding-bottom: 6px !important; font-size: 13.5px; }
.dt td.n { color: var(--ink); font-weight: 700; width: 52px; font-variant-numeric: tabular-nums; }
.dt td.wt { font-weight: 800; width: 110px; white-space: nowrap; }
.dt td.wt .dt-of { font-weight: 500; font-size: 11.5px; }
.dt td.w { white-space: nowrap; }
.dt td.w.win { font-weight: 700; }
.dt td.w.win::after { content: ' ✓'; color: var(--ok); font-weight: 800; font-size: 12px; }
.dt td.w.lose { color: #475467; }
.dt td.w.ff { color: #b42318; font-size: 13px; }
.dt td.res { white-space: nowrap; }
.dt td.pts { font-variant-numeric: tabular-nums; font-weight: 700; width: 76px; white-space: nowrap; }
.dt td.pts span { color: #c0c6cf; font-weight: 500; }
.dt td.run { font-variant-numeric: tabular-nums; font-weight: 700; width: 90px; white-space: nowrap; }
.dt td.run .l { color: var(--ink); }
.dt td.run .t { color: #98a2b3; font-weight: 500; }
.dt tr.now td { background: #fff1f4; }
.dt tr.now td:first-child { box-shadow: inset 3px 0 0 var(--live); }
.dt tr.deck td { background: #f5f8ff; }
.dt tr.later td { color: #667085; }
.dt tr.ded td { background: #fffaeb; color: #92400e; font-size: 12.5px; }
.dt tr.ded td b { color: #7a2e0e; }
.dt .pill { font-size: 11px; }
.dt .live-sc { font-weight: 700; color: var(--live); margin-left: 4px; font-variant-numeric: tabular-nums; }
.dt td.dt-act { width: 1%; white-space: nowrap; }
.dt td.dt-act .btn-quiet-danger { font-size: 12.5px; padding: 2px 6px; }
.dt .dt-mst { display: none; }
.dt-note { margin: 8px 2px 0; }
/* a tied dual */
.tie-card h2 { margin: 0 0 4px; font-size: 15px; }
.tie-card p { margin: 0 0 8px; }
.tie-card .row { gap: 8px; }
.tie-how summary { cursor: pointer; font-size: 12.5px; color: var(--brand); margin-top: 6px; }
.tie-list { margin: 6px 0 0; padding-left: 20px; font-size: 12.5px; }
.tie-list li { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.tie-list li.on { font-weight: 700; }
.tie-list li b { white-space: nowrap; font-weight: 600; }

/* lineups */
.lu-status { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; background: #fffaf0; border: 1px solid #f5c27a; border-radius: var(--radius); padding: 10px 16px; margin-bottom: 14px; font-size: 14px; }
.lu-status.ok { background: #f0fbf4; border-color: #9fdcb5; }
.lu-status .pill { font-size: 11.5px; padding: 2px 9px; }
.lu-status .sep { color: #98a2b3; }
.lu-status .grow { flex: 1; }
.lu-table th.lu-side { width: 40%; }
.lu-th { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lu-hv { text-transform: none; letter-spacing: 0; font-weight: 500; }
.lu-fill { text-transform: none; letter-spacing: 0; margin-left: 6px; }
.lu-table td { padding-top: 7px !important; padding-bottom: 7px !important; }
.lu-table tr.drawn td { background: #f5f8ff; }
.lu-table td.lu-n { color: var(--muted); font-weight: 700; width: 44px; }
.lu-table td.lu-wt { font-weight: 800; font-size: 15px; width: 150px; white-space: nowrap; }
.lu-table td.lu-wt .pill { margin-left: 6px; font-size: 10.5px; }
.lu-cell { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; }
.lu-cell .w b { font-weight: 600; font-size: 14px; }
.lu-cell .w small { color: var(--muted); font-size: 12px; margin-left: 6px; }
.lu-cell.ff { color: #b42318; }
.lu-cell.ff .w { font-size: 13.5px; font-weight: 600; }
.lu-cell.ff .w small { color: #c4655c; font-weight: 400; margin-left: 0; display: block; }
.lu-table td.lu-ffcell { background: #fff6f5 !important; }
.lu-more, .lu-more.more-btn { min-width: 30px; height: 26px; padding: 0 6px !important; font-size: 15px; line-height: 1; color: #475467; }
.lu-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 18px; border-top: 1px solid var(--line2); font-size: 12.5px; color: var(--muted); }
.dwi { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 2px 8px; white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.dwi.ok { background: #dcf5e6; color: #166534; }
.dwi.up { background: #fff1d6; color: #a14a08; }
.dwi.bad { background: #fde2e1; color: #b42318; }
.dwi.none { background: #f2f4f7; color: var(--muted); }
/* exhibition bouts */
.ex-card h2 { display: flex; align-items: center; gap: 8px; }
.ex-card h2 .pill { font-size: 11px; }
.ex-row { display: grid; grid-template-columns: 60px minmax(0, 1fr) minmax(0, 1fr) 120px 170px auto; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line2); font-size: 14px; }
.ex-row.clickable { cursor: pointer; }
.ex-row:first-of-type { border-top: 0; }
.ex-wt { font-weight: 800; }
.ex-w small { color: var(--muted); }
.ex-res { color: var(--muted); font-size: 13px; }
.ex-res b { color: var(--ink); font-weight: 600; }
.ex-acts { margin-top: 8px; }

/* ---- dialogs: take away team points */
.tp .tp-l { font-size: 12px; font-weight: 700; color: #3b4758; margin: 0 0 6px; display: block; }
.tp .tp-sec + .tp-sec { margin-top: 14px; }
.tp .tp-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tp .radio-row { align-items: center; }
.tp .radio-row input { margin-top: 0; }
.tp .radio-row > span { display: flex; flex-direction: row; align-items: center; gap: 8px; flex: 1; }
.tp .radio-row > span small { margin-left: auto; color: var(--muted); }
.tp .tp-pts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tp .tp-pts .seg button { padding: 6px 16px; font-size: 14px; }
.tp .tp-pts input { width: 70px; }
.tp .tp-why { display: grid; gap: 6px; }
.tp .tp-why .radio-row { padding: 7px 10px; }
.tp .tp-why .radio-row small { margin-left: 8px; }
.tp textarea { width: 100%; }
.tp-sum { margin-top: 14px; background: #fffaeb; border: 1px solid #f5d9a8; border-radius: 10px; padding: 10px 14px; font-size: 14px; color: #7a2e0e; }
.tp-sum small { display: block; color: #92400e; font-size: 12px; margin-top: 2px; }
/* choose a wrestler */
.pk-q { width: 100%; }
.pk-note { margin: 8px 0; }
.pk-list { display: grid; gap: 6px; max-height: min(52vh, 460px); overflow-y: auto; padding: 1px; }
.pk-item { font: inherit; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; cursor: pointer; color: var(--ink); }
.pk-item:hover, .pk-item:focus-visible { border-color: var(--brand); background: #f5f8ff; }
.pk-item.here { border-color: var(--brand); background: #f3f7ff; }
.pk-item.off { opacity: .6; }
.pk-item[hidden] { display: none; }
.pk-w b { display: block; font-weight: 600; }
.pk-w small { color: var(--muted); font-size: 12px; }
.pk-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.dd-mats { gap: 6px 14px; }
.sw-order { color: var(--muted); }
.dw-pick { margin-top: 8px; }
.dw-pick summary { cursor: pointer; color: var(--brand); font-size: 13px; }
.dw-pick .field { margin: 8px 0; max-width: 240px; }

/* ---- the demo dialog: seven styles */
.demo-cards.seven { grid-template-columns: repeat(4, 1fr); }

/* ---- dashboard: the duals card */
.dash-duals .dd-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line2); color: var(--ink); text-decoration: none !important; }
.dash-duals .dd-row:first-of-type { border-top: 0; }
.dash-duals .dd-row:hover .dd-teams { color: var(--brand); }
.dash-duals .dd-n { font-size: 11px; font-weight: 800; color: var(--muted); line-height: 1.1; text-align: center; }
.dash-duals .dd-teams { font-weight: 600; font-size: 14px; min-width: 0; }
.dash-duals .dd-teams .dtb { margin-right: 4px; }
.dash-duals .dd-sub { display: block; font-weight: 400; font-size: 12px; color: var(--muted); margin-top: 2px; }
.dash-duals .dd-sc { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.dash-duals .dd-sc .pill { display: block; margin-top: 2px; font-size: 10.5px; }

/* ---- results: dual results and records */
.dr-table td.dr-sc { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dr-table td.dr-t b { font-weight: 700; }
.dr-table .dtb { margin-right: 5px; }
.dr-rec td.num b { font-size: 15px; }

/* ---- weights: a note in dual mode */
.wt-dualnote { margin-bottom: 14px; }

/* ---- phones */
@media (max-width: 1180px) {
  .d4-top { grid-template-columns: 1fr; }
  .dl { grid-template-columns: 52px minmax(200px, 280px) minmax(0, 1fr) 140px; }
  .dl-mat { display: none; }
}
@media (max-width: 900px) {
  .dm-grid { grid-template-columns: 1fr; }
  .dl-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .ek-guide { grid-template-columns: 1fr; }
  .ek-card { grid-template-columns: 36px 1fr 20px; gap: 10px; padding: 12px; }
  .ek-ic { width: 36px; height: 36px; }
  .dm { padding: 12px; }
  .dl-stats { display: none; }
  .dl-psum { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 13.5px; line-height: 1.6; margin: 4px 0 10px; }
  .dl-psum .warn { color: #a14a08; }
  .duals-page .head-actions { flex-wrap: wrap; }
  .dual-rows { gap: 10px; }
  .dl { grid-template-columns: 1fr; padding: 12px 14px; gap: 0; border-radius: 12px; }
  .dl-n, .dl-mat, .dl-line, .dl-prog, .dl-sub { display: none; }
  .dl-t { font-size: 16px; font-weight: 700; gap: 8px; padding: 2px 0; }
  .dl-t .sc { font-size: 20px; }
  .dl-t:not(.lead) .sc:not(.none) { color: #667085; }
  .dl-st { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.4; }
  .dl-pl { display: inline; margin-left: 4px; }
  .dl-acts { justify-content: flex-start; margin-top: 10px; }
  .dl-open { background: var(--brand); color: #fff; border-color: var(--brand); padding: 8px 16px; font-size: 14px; }
  .dp-head .head-actions { flex-wrap: wrap; }
  .dp-head h1.dp-teams { font-size: 22px; gap: 6px; }
  .dp-head h1.dp-teams .dtb { display: none; }
  .dl-acts .more-btn { min-height: 38px; min-width: 42px; }
  /* the bouts: three short lines per bout (weight and status · the two wrestlers · result, points, score) */
  .dt td { width: auto !important; font-size: 13.5px; }
  .table.m-cards.dt td.wt.m-title { display: flex; align-items: center; gap: 6px; font-size: 15px; }
  .table.m-cards.dt td.wt .dt-mst { display: inline; margin-left: auto; margin-right: 18px; font-weight: 400; }
  .table.m-cards.dt td.dt-st { display: none !important; }
  .table.m-cards.dt td.w { flex: 1 1 40%; }
  .table.m-cards.dt td.res, .table.m-cards.dt td.pts, .table.m-cards.dt td.run { flex: 0 0 auto; font-weight: 600; }
  .table.m-cards.dt td.res:empty, .table.m-cards.dt td.pts:empty { display: none !important; }
  .table.m-cards.dt tr.ded td.dt-dedt { flex: 1 1 100%; font-size: 12.5px; }
  .table.m-cards.dt tr.ded td.dt-act { margin-top: 2px; }
  .dsb-now { flex-direction: column; gap: 4px; }
  .dsb-now .dot { display: none; }
  .dsb { padding: 12px 12px 10px; gap: 8px; }
  .dsb-name { font-size: 14px; letter-spacing: .02em; }
  .dsb-team { gap: 8px; }
  .dsb .dtb.lg { display: none; }
  .dsb-sc { font-size: 34px; min-width: 40px; }
  .dsb-mid { gap: 6px; }
  .dsb-dash { font-size: 22px; }
  .dsb-now { font-size: 13px; }
  .lu-status .sep, .lu-status .grow { display: none; }
  .lu-table td.lu-wt { width: auto; }
  .table.m-cards.lu-table td[data-label] { flex: 1 1 100%; display: flex !important; align-items: center; gap: 8px; }
  .table.m-cards.lu-table td[data-label]::before { width: 34px; flex: none; }
  .table.m-cards.lu-table td.lu-ffcell { background: #fff6f5 !important; border-radius: 6px; padding: 2px 0 !important; }
  .lu-cell { flex: 1; min-width: 0; grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; }
  .lu-cell .dwi { grid-column: 1; grid-row: 2; justify-self: start; }
  .lu-cell .more { grid-column: 2; grid-row: 1 / span 2; }
  .lu-table th.lu-side { width: auto; }
  .ex-row { grid-template-columns: 50px minmax(0, 1fr) auto; }
  .ex-row .ex-w { grid-column: 2; }
  .ex-row .ex-when, .ex-row .ex-res { grid-column: 2; }
  .ex-row .more { grid-column: 3; grid-row: 1; }
  .tp .tp-teams { grid-template-columns: 1fr; }
  .demo-cards.seven { grid-template-columns: 1fr 1fr; }
}

/* ---- the printed dual meet score sheet */
#print-root .dsheet { position: relative; min-height: 10.2in; }
#print-root .d-meta { display: grid; grid-template-columns: 1fr 1fr 1fr; border: 1px solid #999; margin-bottom: 10px; }
#print-root .d-meta > div { padding: 5px 8px; border-right: 1px solid #999; }
#print-root .d-meta > div:last-child { border-right: 0; }
#print-root .d-meta small { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: .06em; color: #444; }
#print-root .d-meta b { font-size: 13px; }
#print-root .d-tbl td, #print-root .d-tbl th { padding: 3px 6px; }
#print-root .d-tbl th { font-size: 10px; }
#print-root .d-tbl td.c, #print-root .d-tbl th.c { text-align: center; }
#print-root .d-tbl td.pts { text-align: center; font-weight: 700; width: 34px; }
#print-root .d-tbl td.sc { text-align: center; font-weight: 700; white-space: nowrap; width: 62px; }
#print-root .d-tbl tr.ded td { background: #f3f3f3; font-style: italic; }
#print-root .d-tbl tr.tot td { border-top: 2px solid #000; font-weight: 800; font-size: 12px; }
#print-root .d-tbl .ff { font-style: italic; color: #333; }
#print-root .d-note { font-size: 9.5px; color: #333; margin: -6px 0 10px; }
#print-root .d-final { display: flex; align-items: center; gap: 18px; border: 2px solid #000; padding: 6px 10px; margin: 4px 0 10px; }
#print-root .d-final .d-fl { font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
#print-root .d-final .big { font-size: 20px; font-weight: 800; white-space: nowrap; }
#print-root .d-final .tie { flex: 1; font-size: 10.5px; }
#print-root .d-final .tl { display: block; }
#print-root .d-final .tl > span:first-child { white-space: nowrap; }
#print-root .d-final .line { display: block; border-bottom: 1px solid #000; min-height: 15px; font-weight: 700; font-size: 11px; line-height: 1.3; margin-top: 2px; }
#print-root .d-final .d-tlist { font-size: 8.5px; color: #444; display: block; margin-top: 2px; }
#print-root .d-notes { border: 1px solid #999; padding: 4px 8px 0; margin-top: 10px; }
#print-root .d-notes small { font-size: 9px; text-transform: uppercase; letter-spacing: .06em; color: #444; }
#print-root .d-notes div { border-bottom: 1px solid #bbb; height: 22px; }
#print-root .d-notes div:last-child { border-bottom: 0; }
#print-root .d-sig { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
#print-root .d-sig div { border-top: 1px solid #000; padding-top: 3px; font-size: 10px; }
#print-root .d-sig small { display: block; color: #444; font-size: 9px; }
#print-root .d-foot { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-between; font-size: 9px; color: #555; }
.demo-card.is-off { opacity: .5; cursor: not-allowed; }
.radio-row .dtb { display: inline-grid; }
.lu-table td.lu-ffcell.lu-none { background: none !important; }
.lu-ffcell.lu-none .lu-cell.ff { color: var(--muted); }
.lu-ffcell.lu-none .lu-cell.ff .w { font-weight: 500; }
.dp-start { display: inline-flex; }
.dp-start .btn[disabled] { opacity: .5; cursor: not-allowed; }
.pk-item .dwi { white-space: normal; max-width: none; overflow: visible; text-overflow: clip; }

/* ---- dual tournaments (0.38): the duals by round, the standings and bracket, the make dialog */
.dl-name { font-size: 12px; font-weight: 700; color: #3b4758; margin-bottom: 3px; text-transform: none; }
.tr-tabs { margin: 4px 0 14px; }
.tr-sec { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 18px 2px 8px; display: flex; align-items: center; gap: 6px; }
.tr-round { margin-bottom: 18px; }
.tr-rh { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 2px 8px; }
.tr-rh h2 { margin: 0; font-size: 17px; }
.tr-rh .tr-time { font-weight: 500; color: var(--muted); }
.tr-rh .grow { flex: 1; }
.tr-round.done .dl { opacity: .85; }
.tr-make { margin-top: 4px; }
.tr-pools { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 12px; }
.tr-pool { margin: 0; }
.tr-ph { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 10px 14px 4px; }
.tr-ph h3 { margin: 0; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.tr-ptable td.tr-rank { color: var(--muted); font-weight: 800; width: 34px; }
.tr-ptable .tr-lead { margin-left: 6px; font-size: 10.5px; }
.tr-ptable .tr-why { display: block; color: var(--muted); font-size: 11.5px; }
.tr-ptable tr.tied td { background: #fffaeb; }
.tr-tie { margin: 0; padding: 8px 14px 10px; background: #fffaeb; border-top: 1px solid #f5d9a8; color: #7a2e0e; font-size: 13px; }
.tr-bracket { display: flex; gap: 22px; overflow-x: auto; padding-bottom: 4px; align-items: center; }
.tr-col { display: flex; flex-direction: column; gap: 14px; min-width: 300px; flex: 0 0 300px; }
.tr-colh { font-size: 12px; font-weight: 700; color: var(--muted); }
.tr-place { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.tc { background: #fff; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; overflow: hidden; }
.tc:hover { border-color: #b7c3d4; }
.tc.live { border-color: #f4b3c2; box-shadow: 0 0 0 1px #f4b3c2 inset; }
.tc-h { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); padding: 6px 10px; border-bottom: 1px solid var(--line2); background: #fbfcfe; }
.tc-h .pill { font-size: 10.5px; flex: none; }
.tc-h > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tc-t { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 7px 10px; font-size: 14.5px; }
.tc-t + .tc-t { border-top: 1px solid var(--line2); }
.tc-t .tc-s { font-size: 11px; font-weight: 700; color: var(--muted); }
.tc-t .tc-n { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-t b { font-size: 18px; font-variant-numeric: tabular-nums; min-width: 26px; text-align: right; }
.tc-t.win .tc-n { font-weight: 800; }
.tc-t.lose { color: #667085; }
.tc-t.ph .tc-n { font-style: italic; font-weight: 500; color: #667085; }
.tr-places ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 18px; }
.tr-places li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.tr-pl { display: inline-grid; place-items: center; min-width: 40px; height: 24px; border-radius: 6px; background: #eef1f5; font-weight: 800; font-size: 12px; }
.tr-pl.pl-1 { background: #fde68a; }
.tr-pl.pl-2 { background: #e5e7eb; }
.tr-pl.pl-3 { background: #fed7aa; }
/* the make dialog */
.tr-modal .tr-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.tr-seeds { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 4px; counter-reset: sd; max-height: 46vh; overflow-y: auto; }
.tr-seeds li { counter-increment: sd; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; background: #fff; cursor: grab; }
.tr-seeds[data-seeds] li::before { content: counter(sd); font-weight: 800; color: var(--muted); min-width: 18px; font-size: 12px; }
.tr-seeds li.off { opacity: .55; }
.tr-seeds li .grow { flex: 1; }
.tr-opts { align-items: flex-end; gap: 14px; }
.tr-prev { background: #f5f8ff; border: 1px solid #dbe4fb; border-radius: 8px; padding: 8px 10px; margin: 8px 0 0; line-height: 1.5; }
.tr-prev:empty { display: none; }
@media (max-width: 760px) {
  .tr-modal .tr-cols { grid-template-columns: 1fr; }
  .tr-pools { grid-template-columns: 1fr; }
  .tr-bracket { flex-direction: column; align-items: stretch; overflow: visible; }
  .tr-col { min-width: 0; flex-basis: auto; }
  .tr-ptable .tr-why { font-weight: 400; }
  .tr-rh .btn { width: 100%; }
}
/* the printed standings */
#print-root .tsheet h3 { margin: 10px 0 4px; }
#print-root .tsheet .ts-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#print-root .tsheet .ts-places td:first-child { font-weight: 800; width: 50px; }
.dm-fmt { border-bottom: 1px solid var(--line2); margin-bottom: 12px; }
.dm-fmts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.dm .dm-fmts .radio-row > span { flex-direction: column; align-items: flex-start; gap: 2px; }
.dm-tour { margin-top: 10px; gap: 8px 16px; align-items: flex-end; }
.dm-tour .field.sm { max-width: 190px; }
.dm-tour .check { padding-bottom: 8px; }
@media (max-width: 900px) { .dm-fmts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .dm-fmts { grid-template-columns: 1fr; } }
.dr-table .dr-name { display: block; font-size: 11.5px; color: var(--muted); font-weight: 700; }
.rs-places { margin-bottom: 14px; }
.rs-places .card-head, .rs-recs .card-head { margin-bottom: 4px; flex-wrap: wrap; gap: 6px 12px; }
.rs-places .rs-so, .rs-recs .rs-so { font-weight: 500; }
.rs-pnote { margin: 0 18px 10px; }
.rs-recs .rs-empty-line { margin: 0 18px 12px; }
.rs-ptable td { vertical-align: middle; }
.dash-duals .dd-round { margin: -2px 0 6px; font-size: 13px; color: #344054; }
.demo-cards.eight { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .demo-cards.eight { grid-template-columns: 1fr 1fr; } }
.dm-tour .field.sm.dm-lead { max-width: 280px; }
.tr-form .row { margin-top: 10px; } .tr-form .field + .row { margin-top: 10px; }
.tr-wait { margin: -2px 2px 8px; color: #a14a08; }

/* ---- Awards Screen in dual events (awards.js): a dual's final, a dual tournament's places */
.awd-chip { display: inline-block; font-size: min(2.2vh, 2.6vw); font-weight: 800; letter-spacing: .06em; border-radius: .5vh; padding: .2vh .8vh; color: #fff; margin-bottom: 1vh; background: #334155; text-transform: uppercase; }
.awd-chip.c-green { background: #15803d; }
.awd-chip.c-red { background: #b91c1c; }
.awd-final { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 3vw; width: 96vw; }
.awd-t { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.awd-t .aw-name { font-size: min(6.5vh, 4.6vw); }
.awd-win { font-size: min(2.6vh, 3vw); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #facc15; margin-top: 1vh; }
.awd-sc { display: flex; align-items: center; gap: 2vw; font-size: min(17vh, 13vw); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.awd-sc span.win { color: #facc15; }
.awd-sc i { font-style: normal; font-size: .6em; color: #64748b; }
.awd-strip { display: grid; grid-template-columns: repeat(var(--n, 14), minmax(0, 1fr)); gap: .4vw; width: 96vw; }
.awd-strip span { font-size: min(2.2vh, 1.25vw); color: #cbd6e4; background: rgba(255, 255, 255, .06); border-radius: .8vh; padding: .6vh .3vw; text-align: center; white-space: nowrap; overflow: hidden; }
.awd-strip span b { display: block; color: #fff; font-size: 1.15em; }
.awd-strip span.c-green { box-shadow: inset 0 -.5vh 0 #15803d; }
.awd-strip span.c-red { box-shadow: inset 0 -.5vh 0 #b91c1c; }
@media (orientation: portrait) { .awd-strip { grid-template-columns: repeat(7, minmax(0, 1fr)); } .awd-strip span { font-size: min(1.8vh, 2.4vw); } .awd-final { gap: 2vw; } }
/* Results › Awards in dual events: the finals to put on the Awards Screen */
.aw-finals { margin-top: 14px; }
.aw-finals > b { display: block; margin-bottom: 6px; }

/* ---- Mat Control (matcontrol.js): the mat's status next to its name, a dual's header on its mat, Ready to wrestle by dual */
.mc-mat-head > b { flex: none; }
.mc-mat-head .mc-mst { font-size: 11px; }
.mc-dualh { display: flex; align-items: center; gap: 6px; margin: -2px 0 8px; padding: 7px 10px; border-radius: 8px; background: #0f172a; color: #fff; font-size: 13.5px; text-decoration: none; min-width: 0; }
.mc-dualh:hover, .mc-dualh:focus-visible { background: #1e293b; color: #fff; }
.mc-dh-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.mc-dualh .mc-dsc { color: #facc15; font-size: 15px; font-variant-numeric: tabular-nums; }
.mc-dualh .mc-dn { color: #94a3b8; }
.mc-chev { margin-left: auto; font-size: 18px; line-height: 1; color: #94a3b8; flex: none; }
.mc-qg { border: 1px solid var(--line); border-radius: 10px; margin: 8px 0; background: #fff; overflow: hidden; }
.mc-qh { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; width: 100%; padding: 9px 10px; font: inherit; font-size: 13.5px; text-align: left; background: none; border: 0; cursor: pointer; color: inherit; }
.mc-qg.open .mc-qh { border-bottom: 1px solid var(--line); background: #f8fafc; }
.mc-qs { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.mc-car { color: #667085; width: 12px; }
.mc-qb { padding: 8px 8px 2px; }
@media (max-width: 760px) { .mc-dualh .mc-dn { display: none; } }
.mc-mat { container-type: inline-size; }
/* "Mat Scoreboard ↗"; a card too narrow for it on one row says "Scoreboard ↗", and a phone-width card only the icon
   (day.css) — the full name is in its title and aria-label */
.mc-mat-tools .mc-sb svg.ic { display: none; }
@container (max-width: 430px) { .mc-sb-m { display: none; } }
@container (max-width: 360px) { .mc-mat-tools .mc-sb svg.ic { display: inline; } }
