/* Nucleus Studio — tournaments: the staff pages (app.html), the public event page / mat board / scoreboard (t.html)
   and the referee's phone controller (ref.html). */

/* ---------------- staff: list + header ---------------- */
.tn-belt { display: inline-block; width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); flex: none; }
.tn-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.tn-ev { display: grid; gap: 6px; text-decoration: none; color: inherit; transition: border-color .15s; }
.tn-ev:hover { border-color: var(--teal); }
.tn-ev-name { font: 900 18px var(--display); min-width: 0; }
.tn-ev-stats { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; color: var(--muted); } .tn-ev-stats b { color: var(--ink); }
.tn-head { margin-bottom: 12px; } .tn-head > .small { margin-bottom: 10px; }
.tn-tiles { margin: 10px 0 4px; }
.tn-out td { opacity: .5; }
.tn-noprint { }

/* ---------------- staff: check-in + weigh-in ---------------- */
.tn-weigh { display: grid; gap: 8px; }
.tn-wrow { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(170px, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 12px; }
.tn-wrow.in { border-left-color: var(--green); }
.tn-wrow .nm { display: grid; min-width: 0; } .tn-wrow .nm b { font-size: 15.5px; }
.tn-wrow .wt { display: flex; gap: 6px; } .tn-wrow .wt input { min-width: 0; }
.tn-wrow .tg { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tn-over { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 700px) { .tn-wrow { grid-template-columns: 1fr; } .tn-wrow .tg { justify-content: flex-start; } }
.tn-pick { display: grid; gap: 8px; margin-top: 10px; max-height: 46vh; overflow: auto; }
.tn-have { opacity: .55; }

/* ---------------- staff: divisions ---------------- */
.tn-merge { margin-bottom: 12px; border-color: var(--warn-ink); background: linear-gradient(180deg, var(--warn-bg), var(--card) 60px); }
.tn-sug { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line2); }
.tn-sug .nm { flex: 1 1 260px; min-width: 0; }
.tn-divs { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; align-items: start; }
@media (max-width: 420px) { .tn-divs { grid-template-columns: minmax(0, 1fr); } }
.tn-div { display: grid; gap: 8px; min-width: 0; transition: border-color .12s, background-color .12s; }
.tn-div.single { border-color: var(--warn-ink); }
.tn-div.locked { background: var(--line2); }
.tn-div.over { border-style: dashed; border-color: var(--teal); background: var(--accent-soft); }
.tn-div-h { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; } .tn-div-h > b { flex: 1 1 200px; min-width: 0; font: 800 15px/1.3 var(--display); }
.tn-warn { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--warn-ink); font-weight: 600; }
.tn-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tn-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--field); color: var(--ink); border-radius: 999px; padding: 5px 10px 5px 7px; font: 600 13px var(--body); cursor: grab; min-height: 34px; max-width: 100%; }
.tn-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tn-chip small { color: var(--muted); font-weight: 700; }
.tn-chip:hover { border-color: var(--teal); } .tn-chip:active { cursor: grabbing; }
.tn-div-f { gap: 6px; } .tn-div-f select { width: auto; flex: 1 1 170px; min-height: 36px; padding: 6px 10px; font-size: 14px; }
.tn-ages { display: grid; gap: 6px; margin-top: 8px; } .tn-ages .row { flex-wrap: nowrap; gap: 6px; } .tn-ages input[type=number] { width: 72px; flex: none; } .tn-ages input[type=text] { min-width: 0; }

/* ---------------- brackets (staff + public) ---------------- */
.tn-bracket { margin-bottom: 12px; display: grid; gap: 10px; min-width: 0; }
.tn-se { display: flex; gap: 14px; align-items: stretch; padding-bottom: 6px; }
.tn-round { display: flex; flex-direction: column; justify-content: space-around; gap: 10px; min-width: 210px; flex: 1 0 210px; }
.tn-rl { font: 800 11.5px var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tn-sect + .tn-sect { margin-top: 14px; }
.tn-sect-h { font: 800 12.5px var(--display); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 8px; }
.tn-sect table { margin-bottom: 8px; }
tr.tn-adv td { font-weight: 700; }
.tn-rr { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.tn-m { display: grid; gap: 2px; text-align: left; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); padding: 7px 10px; font: inherit; cursor: pointer; min-width: 0; }
.tn-m[disabled] { cursor: default; }
.tn-m:not([disabled]):hover { border-color: var(--teal); }
.tn-m.live { border-color: var(--green); box-shadow: 0 0 0 2px color-mix(in srgb, var(--green) 25%, transparent); }
.tn-m.bye, .tn-m.skip { opacity: .55; } .tn-m.waiting { border-style: dashed; }
.tn-ml { font-size: 11.5px; color: var(--muted); font-weight: 700; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tn-ms { display: flex; gap: 8px; align-items: center; justify-content: space-between; font-size: 14px; min-width: 0; }
.tn-ms .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tn-ms.win { font-weight: 800; } .tn-ms.win .nm::before { content: '▸ '; color: var(--green); }
.tn-ms.lose { color: var(--muted); }
.tn-ms b { font: 900 15px var(--display); } .tn-ms b small { font-size: 11px; color: var(--muted); }
.tn-stand td, .tn-stand th { padding: 6px 8px; }
.tn-sbs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.tn-sb { text-align: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 6px; min-width: 0; }
.tn-sb > b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tn-sbn { font: 900 40px/1 var(--display); }
.tn-podium { display: grid; gap: 4px; }
.tn-pod { display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: 14.5px; } .tn-pod.silver, .tn-pod.bronze { font-weight: 600; }

/* ---------------- staff: mats + referee code ---------------- */
.tn-mats { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; align-items: start; }
@media (max-width: 420px) { .tn-mats { grid-template-columns: minmax(0, 1fr); } }
.tn-mat { display: grid; gap: 10px; min-width: 0; }
.tn-q { display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--field); }
.tn-q.live { border-color: var(--green); background: var(--good-bg); }
.tn-qt { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tn-md { gap: 6px; padding: 6px 0; border-top: 1px solid var(--line2); flex-wrap: nowrap; } .tn-md select { width: auto; min-height: 36px; padding: 5px 8px; font-size: 13.5px; }
.tn-call { font: 800 20px/1.35 var(--display); }
.tn-ref { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; } .tn-ref canvas { display: block; width: 220px; height: 220px; }
.tn-ref .stack { flex: 1 1 220px; min-width: 0; }
.tn-code { font-size: 28px; margin-top: 4px; }
.tn-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.tn-results .card { display: grid; gap: 8px; }

/* ---------------- certificates + printing ---------------- */
.tn-certs { display: none; }
.tn-cert { page-break-after: always; break-after: page; height: 92vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; border: 6px double #0b7480; border-radius: 18px; padding: 40px; color: #0b1220; background: #fff; }
.tn-cert.gold { border-color: #b8860b; } .tn-cert.silver { border-color: #94a3b8; } .tn-cert.bronze { border-color: #a0522d; }
.tn-cert-gym { font: 800 18px var(--display); letter-spacing: .18em; text-transform: uppercase; color: #475569; }
.tn-cert-k { font: 900 42px var(--display); } .tn-cert-n { font: 900 56px/1.1 var(--display); color: #0b7480; } .tn-cert-d { font-size: 20px; } .tn-cert-e { font-size: 16px; color: #475569; }
@media print {
  .tn-noprint, .tabs, .tn-head { display: none !important; }
  .tn-bracket { break-inside: avoid; border: 1px solid #ccc; }
  .tn-se { overflow: visible; flex-wrap: wrap; }
  body.tn-printing > *:not(.tn-certs) { display: none !important; }
  body.tn-printing .tn-certs { display: block; }
}

/* ---------------- public: event page ---------------- */
body.tp { background: var(--bg); }
.tp-boot { padding: 40px; text-align: center; color: var(--muted); }
.tp-wrap { max-width: 980px; margin: 0 auto; padding: 18px 16px 50px; display: grid; gap: 12px; }
.tp-head { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; padding: 6px 0 4px; }
.tp-head > div { flex: 1 1 260px; min-width: 0; }
.tp-logo { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 12px; padding: 4px; border: 1px solid var(--line); }
.tp-gym { font: 800 12px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tp-head h1 { font-size: clamp(24px, 6vw, 36px); margin: 4px 0; }
.tp-meta { color: var(--ink2); font-size: 14.5px; }
.tp-h2 { font-size: 19px; margin-top: 8px; }
.tp-mats { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.tp-mat { display: grid; gap: 8px; text-decoration: none; color: inherit; } .tp-mat:hover { border-color: var(--teal); }
.tp-now { display: grid; gap: 4px; } .tp-now > div:not(.tiny) { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; } .tp-now b { font: 900 18px var(--display); }
.tp-teams { display: grid; gap: 4px; } .tp-teams b { font: 900 18px var(--display); display: inline-block; min-width: 34px; }
.tp-divs { display: grid; gap: 8px; }
.tp-div { padding: 12px 14px; } .tp-div > summary { cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 2px 8px; align-items: center; list-style: none; }
.tp-div > summary::-webkit-details-marker { display: none; }
.tp-div > summary::after { content: '▾'; color: var(--muted); grid-column: 3; grid-row: 1; transition: transform .15s; } .tp-div[open] > summary::after { transform: rotate(180deg); }
.tp-div > summary .tiny { grid-column: 1 / -1; }
.tp-div[open] > summary { margin-bottom: 10px; }
.tp-div[open] { display: grid; gap: 10px; }
.tp-reg h3 { margin-bottom: 4px; }

/* ---------------- public: big-screen mat board ---------------- */
body.tp-dark { background: #04070c; color: #e9f1fa; }
.tb-wrap { min-height: 100vh; display: flex; flex-direction: column; gap: 16px; padding: 18px 2vw; }
.tb-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; } .tb-head b { font: 900 clamp(22px, 3vw, 40px) var(--display); } .tb-head span { color: #a9b8c9; font-weight: 700; }
.tb-mats { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 14px; flex: 1; }
@media (max-width: 760px) { .tb-mats { grid-template-columns: minmax(0, 1fr); } }
.tb-mat { background: #0b111a; border: 1px solid rgba(41, 230, 242, .2); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tb-mat h2 { font-size: clamp(20px, 2.4vw, 34px); color: #29e6f2; }
.tb-row { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: #111a25; min-width: 0; }
.tb-row > div { flex: 1; min-width: 0; display: grid; } .tb-row b { font: 800 clamp(16px, 1.8vw, 26px) var(--display); overflow-wrap: anywhere; } .tb-row span { color: #a9b8c9; font-size: clamp(12px, 1.1vw, 16px); }
.tb-row.live { background: linear-gradient(90deg, rgba(16, 185, 129, .25), #111a25); box-shadow: inset 4px 0 0 #10b981; }
.tb-tag { flex: none; font: 900 12px var(--display); letter-spacing: .1em; text-transform: uppercase; background: #16212e; border-radius: 999px; padding: 4px 10px; color: #c5d2df !important; }
.tb-row em { font: 900 clamp(18px, 2vw, 30px) var(--display); font-style: normal; color: #c6ff3d; }
.tb-foot { color: #7f93a8; font-weight: 700; text-align: center; }

/* ---------------- public: one mat's scoreboard ---------------- */
.sb { min-height: 100vh; display: grid; grid-template-rows: auto auto 1fr auto 1fr auto auto; gap: 1.2vh; padding: 2vh 2.5vw; }
.sb-top { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; } .sb-top b { font: 900 clamp(20px, 3vw, 42px) var(--display); color: #29e6f2; } .sb-top span { color: #a9b8c9; font-size: clamp(13px, 1.6vw, 22px); font-weight: 700; flex: 1; min-width: 0; }
.sb-sound { background: #16212e; color: #e9f1fa; border: 1px solid #1c2a39; border-radius: 999px; padding: 6px 12px; font-weight: 700; cursor: pointer; }
.sb-side { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 2vw; align-items: center; border-radius: 22px; padding: 1.5vh 2.5vw; background: #0b111a; border-left: 12px solid var(--c); }
.sb-side.a { --c: #29e6f2; } .sb-side.b { --c: #ff2a3d; }
.sb-side.won { box-shadow: 0 0 0 4px #c6ff3d inset; }
.sb-name { display: grid; min-width: 0; } .sb-name b { font: 900 clamp(24px, 5vw, 80px)/1.05 var(--display); overflow-wrap: anywhere; } .sb-name span { color: #a9b8c9; font-size: clamp(14px, 2vw, 28px); font-weight: 700; }
.sb-pts { font: 900 clamp(64px, 14vw, 230px)/1 var(--display); color: #fff; min-width: 1.2em; text-align: right; }
.sb-ap { display: grid; gap: 6px; font: 800 clamp(13px, 1.8vw, 26px) var(--display); color: #a9b8c9; } .sb-ap b { color: #fff; font-size: 1.3em; }
.sb-clock { text-align: center; font: 900 clamp(56px, 12vw, 200px)/1 var(--display); color: #fff; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.sb-clock.low { color: #fcd34d; } .sb-clock.zero { color: #ff2a3d; }
.sb-call { text-align: center; font: 900 clamp(18px, 3vw, 40px) var(--display); color: #fcd34d; }
.sb-next { text-align: center; color: #a9b8c9; font: 700 clamp(13px, 1.8vw, 24px) var(--body); }
.sb-win { display: flex; gap: 14px; align-items: baseline; justify-content: center; flex-wrap: wrap; background: rgba(198, 255, 61, .12); border: 1px solid rgba(198, 255, 61, .4); border-radius: 16px; padding: 1.2vh 2vw; }
.sb-win span { font: 800 clamp(13px, 1.6vw, 22px) var(--display); text-transform: uppercase; letter-spacing: .1em; color: #c6ff3d; } .sb-win b { font: 900 clamp(22px, 4vw, 60px) var(--display); } .sb-win em { font-style: normal; color: #a9b8c9; font-weight: 700; font-size: clamp(14px, 2vw, 28px); }
.sb-empty { display: grid; place-items: center; font: 900 clamp(22px, 4vw, 54px) var(--display); color: #a9b8c9; grid-row: 3 / 6; }
@media (max-width: 560px) { .sb-side { grid-template-columns: minmax(0, 1fr) auto; } .sb-ap { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; gap: 14px; } }

/* ---------------- referee phone controller ---------------- */
body.rf { background: #04070c; color: #e9f1fa; overscroll-behavior: none; }
body.rf .card { background: #0b111a; border-color: #1c2a39; color: #e9f1fa; }
body.rf .muted, body.rf .small.muted { color: #a9b8c9; }
body.rf .btn.line { background: #0b111a; color: #e9f1fa; border-color: #1c2a39; }
.rf-start { min-height: 100vh; display: grid; place-items: center; padding: 16px; } .rf-start .card { width: min(420px, 100%); }
.rf-codein { font: 900 30px var(--display) !important; letter-spacing: .2em; text-align: center; text-transform: uppercase; background: #080d15 !important; color: #e9f1fa; border-color: #1c2a39 !important; }
.rf-top { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 14px calc(10px) ; padding-top: max(10px, env(safe-area-inset-top)); border-bottom: 1px solid #16212e; position: sticky; top: 0; background: #04070c; z-index: 5; }
.rf-top > div { display: grid; min-width: 0; } .rf-top b { font: 900 20px var(--display); color: #29e6f2; } .rf-top span { font-size: 12.5px; color: #a9b8c9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-sync { flex: none; font: 800 11.5px var(--display); text-transform: uppercase; letter-spacing: .06em; padding: 4px 9px; border-radius: 999px; background: rgba(16, 185, 129, .18); color: #6ee7b7 !important; }
.rf-sync.wait { background: rgba(252, 211, 77, .16); color: #fcd34d !important; }
.rf-flash { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 10px 12px 0; padding: 10px 12px; border-radius: 12px; background: rgba(198, 255, 61, .12); border: 1px solid rgba(198, 255, 61, .35); }
.rf-flash b { color: #c6ff3d; }
.rf-empty { margin: 16px 12px; }
.rf-match { display: grid; gap: 10px; padding: 10px 12px 12px; }
.rf-label { font-size: 13px; color: #a9b8c9; font-weight: 700; } .rf-label span { font-weight: 600; }
.rf-side { border-radius: 16px; padding: 12px; background: #0b111a; border: 1px solid #16212e; border-left: 8px solid var(--c); display: grid; gap: 8px; }
.rf-side.a { --c: #29e6f2; } .rf-side.b { --c: #ff2a3d; }
.rf-who { display: grid; min-width: 0; } .rf-who b { font: 900 21px/1.15 var(--display); overflow-wrap: anywhere; } .rf-who span { font-size: 12.5px; color: #a9b8c9; }
.rf-score { display: flex; align-items: baseline; gap: 12px; } .rf-pts { font: 900 54px/1 var(--display); } .rf-ap { display: flex; gap: 10px; font: 800 15px var(--display); color: #a9b8c9; } .rf-ap i { font-style: normal; }
.rf-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(54px, 1fr)); gap: 6px; }
.rf-b { min-height: 58px; border-radius: 12px; border: 1px solid #1c2a39; background: #16212e; color: #fff; font: 900 20px var(--display); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 4px; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.rf-b small { font: 600 11px/1.15 var(--body); letter-spacing: -.02em; color: #c5d2df; max-width: 100%; text-align: center; overflow-wrap: normal; hyphens: manual; }
.rf-b:active { transform: scale(.97); background: #1c2a39; }
.rf-btns .rf-b { padding: 4px 2px; } .rf-b.pts { background: color-mix(in srgb, var(--c) 22%, #0b111a); border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.rf-b.adv { font-size: 16px; } .rf-b.pen { font-size: 16px; color: #fca5a5; }
.rf-b[disabled] { opacity: .4; }
.rf-mid { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 8px; align-items: stretch; }
.rf-b.undo { font-size: 15px; } .rf-b.go { font-size: 18px; background: #10b981; border-color: #10b981; color: #04070c; } .rf-b.go.on { background: #fcd34d; border-color: #fcd34d; }
.rf-clock { font: 900 44px/1 var(--display); font-variant-numeric: tabular-nums; background: #0b111a; color: #fff; border: 1px solid #1c2a39; border-radius: 14px; cursor: pointer; min-height: 64px; }
.rf-clock.low { color: #fcd34d; } .rf-clock.zero { color: #ff2a3d; }
.rf-end { display: grid; gap: 6px; margin-top: 4px; } .rf-endb { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 6px; } .rf-endb .btn { min-height: 48px; }
.rf-next { margin: 0 12px 24px; padding: 10px 12px; border: 1px dashed #1c2a39; border-radius: 12px; display: grid; gap: 4px; font-size: 14px; }
.rf-sheet-back { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.rf-sheet { width: min(520px, 100%); background: #0b111a; color: #e9f1fa; border-radius: 20px 20px 0 0; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 10px; border-top: 1px solid #1c2a39; }
.rf-sheet h3 { font-size: 20px; }
.rf-sheet input[type=number] { background: #080d15; color: #e9f1fa; border-color: #1c2a39; font: 900 28px var(--display); text-align: center; }
.rf-sheet-acts { display: grid; gap: 8px; } .rf-sheet-acts .btn { min-height: 54px; font-size: 17px; }
.rf-sheet-acts .btn.main.a { background: linear-gradient(180deg, #29e6f2, #0b9fb0); color: #04070c; box-shadow: none; }
.rf-sheet-acts .btn.ghost { color: #a9b8c9; border-color: #1c2a39; }
.rf-confirm { font-size: 18px; }

/* ================= open events (Oct 15): event page hero, info, registration, competitor page ================= */
.stop-ink { color: var(--stop-ink); } .good-ink { color: var(--good-ink); }
.tp-hero { --gym: #0e7490; background: linear-gradient(135deg, #04070c 0%, color-mix(in srgb, var(--gym) 45%, #04070c) 100%); color: #f4f7fa; padding: 22px 16px 26px; border-bottom: 4px solid var(--gym); }
.tp-hero-in { max-width: 980px; margin: 0 auto; display: grid; gap: 10px; }
.tp-hero-top { display: flex; gap: 10px; align-items: center; min-width: 0; }
.tp-hero .tp-gym { color: #cfe3ee; } .tp-hero .pill { flex: none; }
.tp-hero h1 { font-size: clamp(28px, 7vw, 52px); line-height: 1.04; margin: 2px 0 2px; overflow-wrap: anywhere; }
.tp-when { display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 600; color: #dbe7f1; font-size: 15px; }
.tp-when span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.tp-hero-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tp-hero-acts .btn.line { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .28); }
.tp-about { margin: 0; font-size: 16px; color: var(--ink2); max-width: 760px; }
.tp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 12px; align-items: start; }
.tp-info h3 { margin-bottom: 10px; }
.tp-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 14.5px; }
.tp-dl dt { color: var(--muted); font-weight: 700; } .tp-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.tp-tiers { display: grid; gap: 6px; }
.tp-tier { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.tp-tier b { font-size: 14.5px; } .tp-tier .tiny { grid-column: 1 / 2; } .tp-tier .pill { grid-column: 2; grid-row: 2; justify-self: end; }
.tp-tier.on { border-color: var(--green); background: var(--good-bg); } .tp-tier.past { opacity: .5; text-decoration: line-through; text-decoration-thickness: 1px; }
.tp-price { font: 900 20px var(--display); grid-column: 2; grid-row: 1; text-align: right; }
.tp-more summary { cursor: pointer; font-weight: 700; font-size: 14px; margin-top: 8px; }
.tp-cats { display: grid; gap: 8px; }
.tp-cat { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; align-items: center; padding-bottom: 8px; border-bottom: 1px solid var(--line2); }
.tp-cat:last-child { border-bottom: 0; padding-bottom: 0; } .tp-cat .tiny { grid-column: 1; }
.tp-count { grid-column: 2; grid-row: 1 / 3; font: 900 22px var(--display); } .tp-count small { font: 600 12px var(--body); color: var(--muted); }
.tp-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; border: 2px solid var(--green); background: linear-gradient(180deg, var(--good-bg), var(--card) 70%); }
.tp-link { display: grid; gap: 6px; } .tp-link input { min-width: 0; flex: 1; }
.tp-soon { display: flex; gap: 12px; align-items: center; } .tp-soon > svg { width: 30px; height: 30px; color: var(--teal); flex: none; }
.tp-reg.tp-reg-open { border: 2px solid var(--teal); scroll-margin-top: 12px; }
.tp-form { display: grid; gap: 14px; }
.tp-sec { display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid var(--line2); }
.tp-sec h4 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin-bottom: 6px; }
.tp-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--teal); color: #fff; font: 900 13px var(--display); flex: none; }
.tp-minor { border-left: 3px solid var(--warn-ink); padding-left: 10px; margin-top: 4px; }
.tp-pick { display: grid; gap: 8px; }
.tp-pickrow { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.tp-pickrow.on { border-color: var(--teal); background: var(--accent-soft); } .tp-pickrow.off { opacity: .6; }
.tp-pickrow select { min-height: 42px; }
.tp-quote { margin: 8px 0 4px; }
.tp-lines { display: grid; gap: 4px; font-size: 14.5px; } .tp-lines > div { display: flex; justify-content: space-between; gap: 10px; }
.tp-total { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 2px; font-size: 16px; } .tp-total b { font: 900 20px var(--display); }
.tp-pay { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin: 6px 0; }
.tp-pay input[type=radio] { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--teal); }
.tp-waiver { max-height: 190px; overflow: auto; white-space: pre-wrap; font-size: 13.5px; background: var(--field); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 6px 0 8px; }
.tp-sign { font: italic 600 20px Georgia, 'Times New Roman', serif !important; }
.tp-ok { display: flex; gap: 12px; align-items: flex-start; }
.tp-okmark { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; flex: none; } .tp-okmark svg { width: 24px; height: 24px; }
.tn-ms.me { background: var(--accent-soft); border-radius: 6px; padding: 0 4px; font-weight: 800; }
.tb-clock { margin-left: auto; font: 900 clamp(18px, 2.2vw, 32px) var(--display); color: #e9f1fa !important; font-variant-numeric: tabular-nums; }
.tb-row.called { box-shadow: inset 4px 0 0 #fcd34d; } .tb-row.called .tb-tag { background: #fcd34d; color: #04070c !important; }

/* the competitor's page (phone first) */
.tm-top { --gym: #0e7490; display: flex; gap: 10px; align-items: center; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); background: linear-gradient(135deg, #04070c, color-mix(in srgb, var(--gym) 40%, #04070c)); color: #f4f7fa; }
.tm-top > div { display: grid; flex: 1; min-width: 0; } .tm-top b { font: 900 19px/1.15 var(--display); overflow-wrap: anywhere; } .tm-top .tp-gym { color: #cfe3ee; } .tm-top .small { color: #cfe3ee; }
.tm-top .btn.line { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .28); flex: none; }
.tm { max-width: 640px; padding-top: 14px; }
.tm-fam { display: flex; gap: 6px; flex-wrap: wrap; }
.tm-status { display: flex; gap: 14px; align-items: center; border-radius: 18px; padding: 16px; border: 2px solid var(--line); background: var(--card); }
.tm-status .tm-ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--line2); flex: none; } .tm-status .tm-ico svg { width: 26px; height: 26px; }
.tm-status > div { min-width: 0; display: grid; gap: 2px; }
.tm-k { font: 900 21px/1.15 var(--display); } .tm-t { font: 900 22px/1.15 var(--display); } .tm-t:empty { display: none; } .tm-s { color: var(--ink2); font-size: 14.5px; }
.tm-status.good { border-color: var(--green); background: var(--good-bg); } .tm-status.good .tm-ico { background: var(--green); color: #fff; }
.tm-status.warn { border-color: #f59e0b; background: var(--warn-bg); } .tm-status.warn .tm-ico { background: #f59e0b; color: #04070c; }
.tm-status.stop { border-color: var(--red); background: var(--stop-bg); } .tm-status.stop .tm-ico { background: var(--red); color: #fff; }
.tm-status.accent { border-color: var(--teal); background: var(--accent-soft); } .tm-status.accent .tm-ico { background: var(--teal); color: #fff; }
.tm-status.big .tm-t { font-size: 34px; }
.tm-status.stop { animation: tm-pulse 1.6s ease-in-out infinite; }
@keyframes tm-pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--red) 25%, transparent); } }
@media (prefers-reduced-motion: reduce) { .tm-status.stop { animation: none; } }
.tm-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.tm-card h3 { display: flex; align-items: center; gap: 6px; font-size: 15.5px; }
.tm-matches { display: grid; gap: 8px; }
.tm-m { border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 10px; padding: 8px 10px; display: grid; gap: 2px; }
.tm-m.live { border-left-color: var(--green); } .tm-m.won { border-left-color: var(--green); } .tm-m.lost { border-left-color: var(--muted); opacity: .8; } .tm-m.ready, .tm-m.waiting { border-left-color: var(--teal); }
.tm-mh { display: flex; justify-content: space-between; gap: 8px; align-items: center; } .tm-mh b { min-width: 0; overflow-wrap: anywhere; }
.tm-more summary { cursor: pointer; } .tm-more[open] summary { margin-bottom: 10px; }
.tm-install { display: flex; gap: 8px; align-items: center; justify-content: center; text-align: center; padding: 6px; }

/* ================= staff: full-screen organizer, share, schedule, mat table (Oct 15) ================= */
body.tn-full .side, body.tn-full .bottom, body.tn-full .sup-fab, body.tn-full .topbar { display: none !important; }
body.tn-full .shell { display: block; } body.tn-full .main { margin: 0; max-width: none; }
body.tn-full .page { padding-top: 0; }
.tn-fullbar { position: sticky; top: 0; z-index: 20; display: flex; gap: 12px; align-items: center; padding: 10px 0; background: var(--bg); border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.tn-back { min-height: 54px; padding: 10px 18px 10px 12px; font-size: 17px; }
.tn-back svg { width: 24px; height: 24px; }
.tn-back.tn-home { padding: 10px 14px; }
.tn-fullbar h1 { font-size: clamp(18px, 3vw, 26px); flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tn-fullbar .acts { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 640px) { .tn-fullbar { flex-wrap: wrap; } .tn-fullbar h1 { flex-basis: calc(100% - 140px); } .tn-fullbar .acts { width: 100%; } }
.tn-proj { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.tn-pmat { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.tn-pmat b { font: 900 22px var(--display); } .tn-pmat.late { border-color: var(--warn-ink); background: var(--warn-bg); }
.tn-bar { height: 8px; border-radius: 99px; background: var(--line2); overflow: hidden; } .tn-bar i { display: block; height: 100%; background: var(--teal); border-radius: 99px; }
.tn-over-day { border-color: var(--stop-ink) !important; background: var(--stop-bg) !important; }
.tn-lens { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 12px; }
.tn-lens .field { margin: 0; } .tn-lens input { min-width: 0; }
.tn-breaks { display: grid; gap: 6px; } .tn-breaks .row { flex-wrap: wrap; gap: 6px; } .tn-breaks input[type=time] { width: auto; min-width: 118px; flex: 1 1 118px; } .tn-breaks input[type=text] { min-width: 0; flex: 1 1 140px; } .tn-breaks input[type=time] { max-width: 150px; }
.tn-share { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 12px; align-items: start; }
@media (max-width: 860px) { .tn-share { grid-template-columns: minmax(0, 1fr); } }
.tn-linkbox { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .tn-linkbox code { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; background: var(--field); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.tn-og { width: 100%; max-width: 520px; aspect-ratio: 1200 / 630; border-radius: 12px; border: 1px solid var(--line); display: block; background: #04070c; }
.tn-blurb { width: 100%; min-height: 140px; font-size: 14px; }
.tn-spark { display: flex; gap: 3px; align-items: flex-end; height: 54px; } .tn-spark i { flex: 1; background: var(--teal); border-radius: 3px 3px 0 0; min-height: 2px; }
.tn-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .tn-stats div { display: grid; } .tn-stats b { font: 900 26px var(--display); } .tn-stats span { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.tn-cats { display: grid; gap: 8px; }
.tn-catrow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.tn-catrow > :nth-child(1), .tn-catrow > :nth-child(2) { grid-column: span 3; } .tn-catrow > :nth-child(5) { grid-column: span 2; }
.tn-catrow > :nth-child(7) { grid-column: span 2; }
.tn-catrow input, .tn-catrow select { min-width: 0; min-height: 40px; padding: 6px 8px; font-size: 14px; }
.tn-catrow .check { align-items: center; } .tn-catrow .btn { justify-self: end; }
@media (max-width: 560px) { .tn-catrow { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tn-catrow > * { grid-column: span 1 !important; } .tn-catrow > :nth-child(1), .tn-catrow > :nth-child(2) { grid-column: span 2 !important; } }
.tn-tierrow { display: grid; grid-template-columns: 120px minmax(120px, 1fr) 100px 100px; gap: 8px; align-items: center; }
.tn-tierrow input { min-width: 0; }
@media (max-width: 640px) { .tn-tierrow { grid-template-columns: 1fr 1fr; } }
.tn-promos { display: grid; gap: 6px; } .tn-promorow { display: grid; grid-template-columns: minmax(90px, 1fr) 90px 80px 80px minmax(100px, 1.3fr) auto; gap: 6px; align-items: center; } .tn-promorow input, .tn-promorow select { min-width: 0; }
@media (max-width: 760px) { .tn-promorow { grid-template-columns: 1fr 1fr 1fr; } }
.tn-msgs { display: grid; gap: 4px; max-height: 260px; overflow: auto; font-size: 13.5px; }
.tn-msgs div { display: flex; gap: 8px; justify-content: space-between; border-bottom: 1px solid var(--line2); padding: 4px 0; }
.tn-poster { display: none; }
@media print {
  body.tn-printing-poster > *:not(.tn-poster) { display: none !important; }
  body.tn-printing-poster .tn-poster { display: flex; }
}
.tn-poster { flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; height: 96vh; padding: 30px; color: #0b1220; background: #fff; border-top: 18px solid var(--pc, #0e7490); }
.tn-poster .g { font: 800 22px var(--display); letter-spacing: .14em; text-transform: uppercase; color: #475569; }
.tn-poster h1 { font: 900 64px/1.02 var(--display); max-width: 90%; }
.tn-poster .w { font: 700 26px var(--body); color: #334155; }
.tn-poster canvas { width: 340px; height: 340px; }
.tn-poster .u { font: 700 22px var(--body); color: #0b1220; }
.tn-poster .c { font: 900 30px var(--display); color: var(--pc, #0e7490); }

/* mat table (quick result) in the referee controller */
.rf-modes { display: flex; gap: 6px; padding: 8px 12px 0; } .rf-modes button { flex: 1; min-height: 40px; border-radius: 10px; border: 1px solid #1c2a39; background: #0b111a; color: #a9b8c9; font: 800 14px var(--display); cursor: pointer; }
.rf-modes button.on { background: #29e6f2; color: #04070c; border-color: #29e6f2; }
.rf-quick { display: grid; gap: 10px; padding: 10px 12px 14px; }
.rf-pickw { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rf-w { min-height: 110px; border-radius: 16px; border: 2px solid #1c2a39; background: #0b111a; color: #e9f1fa; font: 900 20px/1.15 var(--display); cursor: pointer; padding: 10px; display: grid; gap: 4px; align-content: center; text-align: center; overflow-wrap: anywhere; border-left: 8px solid var(--c); }
.rf-w small { font: 600 12px var(--body); color: #a9b8c9; }
.rf-w.a { --c: #29e6f2; } .rf-w.b { --c: #ff2a3d; } .rf-w.on { background: color-mix(in srgb, var(--c) 28%, #0b111a); border-color: var(--c); }
.rf-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; }
.rf-how button { min-height: 50px; border-radius: 12px; border: 1px solid #1c2a39; background: #16212e; color: #e9f1fa; font: 800 15px var(--display); cursor: pointer; }
.rf-how button.on { background: #c6ff3d; color: #04070c; border-color: #c6ff3d; }
.rf-qs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; } .rf-qs input { background: #080d15; color: #e9f1fa; border-color: #1c2a39; font: 900 26px var(--display); text-align: center; min-width: 0; }
.rf-save { min-height: 60px; font-size: 19px; }

/* the way back (Oct 27): "Back to Studio" and Full screen / Exit full screen (public/js/tourney-pub.js wayBack) */
.tp-way { position: fixed; bottom: max(12px, env(safe-area-inset-bottom)); left: 12px; z-index: 90; display: flex; gap: 8px; transition: opacity .3s; }
.tp-way.idle { opacity: 0; pointer-events: none; }
.tp-way-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(148, 163, 184, .45); background: rgba(15, 23, 42, .88); color: #fff; font: 700 15px/1 var(--display, system-ui); cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.tp-way-btn:hover { background: rgba(30, 41, 59, .95); }
.tp-way-btn svg { width: 18px; height: 18px; }
body:has(.tp-way) .tp-wrap { padding-bottom: 72px; }

/* ---------- coach view (/t/<link>/coach, Nov 7 2026) ---------- */
.tcv-wrap { max-width: 760px; }
.tcv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 12px; }
.tcv-pick { display: flex; align-items: center; gap: 10px; }
.tcv-pick select { flex: 1 1 auto; min-width: 0; }
.tcv-clash { border-color: var(--warn, #d97706); }
.tcv-clash .small { margin-top: 4px; }
.tcv-sum { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 2px; }
.tcv-ath { padding: 12px 14px; margin-top: 8px; }
.tcv-ath.live { border-color: var(--good, #16a34a); }
.tcv-ath.soon { border-color: var(--accent, #0ea5e9); }
.tcv-ath.clash { box-shadow: inset 4px 0 0 var(--warn, #d97706); }
.tcv-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tcv-next { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.tcv-next .small { flex: 1 0 100%; }

/* ---------- stream overlay (/t/<link>/overlay/<n>): see-through, for OBS / Streamlabs / vMix ---------- */
html.so, body.so { background: transparent !important; min-height: 0; }
body.so #root { position: fixed; inset: 0; pointer-events: none; }
.so-bar { position: absolute; left: 40px; bottom: 40px; transform: scale(var(--s, 1)); transform-origin: left bottom; font-family: Inter, system-ui, sans-serif; color: #fff; }
.so-bar.top { bottom: auto; top: 40px; transform-origin: left top; }
.so-card { display: flex; align-items: stretch; background: rgba(6, 10, 16, .88); border-radius: 10px; overflow: hidden; box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.so-rows { display: flex; flex-direction: column; min-width: 520px; }
.so-row { display: flex; align-items: center; gap: 12px; padding: 8px 0 8px 0; height: 52px; }
.so-row + .so-row { border-top: 1px solid rgba(255, 255, 255, .1); }
.so-swatch { width: 8px; align-self: stretch; background: #e5e7eb; }
.so-row.b .so-swatch { background: #2563eb; }
.so-name { flex: 1 1 auto; display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.so-name b { font: 800 22px Archivo, Inter, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-name small { font-size: 13px; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-ap { font: 700 18px Inter, sans-serif; min-width: 40px; text-align: center; opacity: .9; }
.so-ap em { font-style: normal; font-size: 11px; opacity: .6; margin-right: 3px; }
.so-ap.pen { color: #fca5a5; }
.so-pts { font: 900 34px Archivo, Inter, sans-serif; min-width: 64px; height: 100%; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .08); }
.so-row.won .so-pts { background: #16a34a; }
.so-side { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 6px 18px; background: rgba(255, 255, 255, .06); min-width: 150px; }
.so-clock { font: 900 34px Archivo, Inter, sans-serif; font-variant-numeric: tabular-nums; }
.so-clock.low { color: #f87171; }
.so-div { font-size: 12px; opacity: .8; max-width: 190px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-mat { font-size: 11px; opacity: .55; }
.so-win { margin-top: 6px; display: inline-block; background: rgba(22, 163, 74, .92); padding: 6px 12px; border-radius: 8px; font-size: 16px; }
/* the venue TV can't reach the server (public/js/tourney-pub.js tvStale) */
.tb-stale, .sb-stale { background: #b45309; color: #fff; font-weight: 800; font-size: 14px; padding: 3px 10px; border-radius: 999px; }
.tb-stale[hidden], .sb-stale[hidden] { display: none; }
.tn-sample { background: var(--field, #f8fafc); border: 1px solid var(--line, #e2e8f0); border-radius: 12px; padding: 10px 12px; margin: 8px 0; }
.tn-refsend { border-top: 1px solid var(--line, #e2e8f0); padding-top: 10px; margin-top: 4px; }
.tn-refsend input { flex: 1 1 160px; min-width: 0; }
/* the fight card (public/js/app/tourney.js tabCard) */
.tn-card { padding: 6px 14px; }
.tn-bout { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line, #e2e8f0); }
.tn-bout:last-child { border-bottom: 0; }
.tn-bout.done { opacity: .75; }
.tn-bout-n { display: flex; flex-direction: column; min-width: 64px; }
.tn-bout-n b { font: 900 20px var(--display); }
.tn-bout-m { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tn-bout-t { text-transform: uppercase; letter-spacing: .06em; font-weight: 800; color: var(--accent-ink, #0e7490); }
@media (max-width: 640px) { .tn-bout { flex-wrap: wrap; } .tn-bout-a { width: 100%; justify-content: flex-end; } }
.tp-card { padding: 4px 14px; }
.tp-bout { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line, rgba(148,163,184,.25)); }
.tp-bout:last-child { border-bottom: 0; }
.tp-bout-n { font-size: 18px; min-width: 36px; }
.tp-bout-m { flex: 1 1 auto; min-width: 0; }
.tp-bout-t { text-transform: uppercase; letter-spacing: .06em; font-weight: 800; opacity: .8; }
/* Schedule tab: move a division by hand, split on/off (Nov 16 2026 retest) */
.tn-mat .tn-md { flex-wrap: wrap; }
.tn-md .tn-movemat { max-width: 110px; }
.tn-split { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.tn-split input { width: auto; min-height: 0; }
.tn-balanced { font-size: 13.5px; }
.tn-md2 { padding: 8px 0; border-top: 1px solid var(--line2); }
.tn-md-ctl { gap: 8px; margin: 4px 0 0 66px; flex-wrap: wrap; align-items: center; }
.tn-md-ctl select { width: auto; min-height: 34px; padding: 4px 8px; font-size: 13.5px; }
.tn-splitday { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 12px; }
.tn-splitday input { width: 18px; height: 18px; min-height: 0; margin-top: 2px; flex: none; }
