/* Nepal pages (live, fixtures, scorer). Kept deliberately simple; colours and shared parts come from theme.css. */
main.nmain { max-width: 760px; margin: 0 auto; padding: 16px 16px 40px; display: grid; gap: 14px; }
.nfoot { max-width: 760px; margin: 0 auto; padding: 0 16px 32px; font-size: .78rem; color: var(--muted); }

/* ---------- live: score bar + hero (same layout as the NPL page, in the flag's blue and crimson) ---------- */
.nbar {
  position: sticky; top: 0; z-index: 40; padding: 8px 8px 8px; padding-top: max(8px, env(safe-area-inset-top));
  background: #002a6e; color: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.nb-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px; max-width: 760px; margin: 0 auto; }
.nb-team {
  display: flex; align-items: center; gap: 8px; min-width: 0; padding: 7px 10px; border-radius: 12px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); opacity: .75;
}
.nb-team.is-on { opacity: 1; background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .5); }
.nb-team--right { flex-direction: row-reverse; text-align: right; }
.nb-team .flag { width: 16px; height: 20px; }
.nb-team .flag--rect { width: 22px; height: 15px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.nb-id { display: grid; min-width: 0; }
.nb-name { font-weight: 800; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-note { font-size: .68rem; font-weight: 600; opacity: .85; }
.nb-score { display: grid; justify-items: end; margin-left: auto; line-height: 1; font-family: var(--display); font-stretch: var(--narrow); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nb-team--right .nb-score { justify-items: start; margin-left: 0; margin-right: auto; }
.nb-score b { font-size: 1.6rem; font-weight: 900; }
.nb-score b small { font-size: .9rem; opacity: .75; }
.nb-score > span { margin-top: 2px; font-size: .7rem; font-weight: 700; opacity: .8; }
.nb-mid { display: grid; justify-items: center; gap: 3px; min-width: 56px; text-align: center; line-height: 1.1; font-variant-numeric: tabular-nums; }
.nb-mid .pill { padding: 2px 8px; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: #fff; border-color: rgba(255, 255, 255, .4); }
.nb-mid .pill--live { background: #fff; color: #b5122e; border-color: #fff; }
.nb-inn, .nb-over { font-size: .72rem; font-weight: 700; opacity: .85; white-space: nowrap; }
.nb-over b { font-family: var(--display); font-stretch: var(--narrow); font-size: 1.1rem; font-weight: 900; }
.nb-line { display: none; max-width: 760px; margin: 7px auto 0; text-align: center; font-size: .82rem; font-weight: 600; opacity: .95; }
.nbar.is-stuck .nb-line { display: block; }

.nhero {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  --team: #b5122e;
  background: linear-gradient(170deg, #c8102e 30%, #8e0c22 100%);
  padding: 30px 16px 70px; border-radius: 0 0 24px 24px;
}
.nhero-in { max-width: 760px; margin: 0 auto; display: grid; gap: 8px; }
.nhero .flags { position: absolute; top: 0; left: 0; width: 100%; height: 20px; color: rgba(255, 255, 255, .4); opacity: .8; pointer-events: none; }
.nhero .ridge { position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; width: 100%; height: 60px; pointer-events: none; }
.nhero .ridge-back { fill: #fff; opacity: .12; }
.nhero .ridge-snow { fill: #fff; opacity: .35; }
.nhero .ridge-front { fill: #002a6e; opacity: .55; }
.nh-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .78rem; font-weight: 700; opacity: .85; }
.nh-head { font-family: var(--display); font-stretch: var(--narrow); font-size: clamp(1.4rem, 5.6vw, 2rem); font-weight: 800; line-height: 1.15; }
.nh-np { font-family: var(--deva); font-size: .95rem; opacity: .85; }
.nh-venue { font-size: .78rem; opacity: .8; }
.nhero .stats { margin: 6px 0 2px; background: rgba(255, 255, 255, .18); border-color: transparent; }
.nhero .stat { background: rgba(0, 0, 0, .18); color: #fff; }
.nhero .stat span { color: rgba(255, 255, 255, .78); }
/* Dark theme (data-theme set by theme-init.js from the toggle or the system setting) */
:root[data-theme="dark"] .nbar { background: #001b48; }
:root[data-theme="dark"] .nhero { background: linear-gradient(170deg, #9e0d26 30%, #5e0817 100%); }
.headline { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); font-weight: 700; }
.headline .np { display: block; font-size: .85rem; color: var(--muted); font-weight: 500; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--paper); padding: 10px 8px; text-align: center; }
.stat b { display: block; font-family: var(--display); font-stretch: var(--narrow); font-size: 1.2rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.stat span { font-size: .76rem; color: var(--muted); }
.stat .np { display: block; text-transform: none; letter-spacing: 0; font-size: .72rem; }

details.inn { border-top: 1px solid var(--line); }
details.inn:first-of-type { border-top: 0; }
details.inn summary { cursor: pointer; padding: 10px 0; font-weight: 700; display: flex; gap: 8px; list-style: none; }
details.inn summary::-webkit-details-marker { display: none; }
details.inn summary::before { content: "▸"; color: var(--muted); transition: transform .15s; }
details.inn[open] summary::before { transform: rotate(90deg); }
details.inn summary span { margin-left: auto; font-variant-numeric: tabular-nums; }
.xtra { font-size: .82rem; color: var(--ink-2); margin: 8px 0 14px; }
.fow { font-size: .8rem; color: var(--ink-2); margin-top: 10px; }

.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.notes li { display: flex; gap: 10px; font-size: .9rem; }
.notes time { color: var(--muted); font-size: .76rem; min-width: 44px; padding-top: 2px; font-variant-numeric: tabular-nums; }

/* ---------- fixtures ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-size: .85rem; }

/* ---------- scorer console ---------- */
.scorer [hidden] { display: none !important; }
.sbar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 10px 16px; background: var(--paper); border-bottom: 1px solid var(--line); }
.sbar-score b { font-family: var(--display); font-stretch: var(--narrow); font-size: 1.35rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.sbar-score span { font-size: .85rem; }
.sbar .over { flex: 1; min-width: 180px; }
.sbar-side { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.conn { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.conn.on { background: var(--win); }
.smain { max-width: 1100px; margin: 0 auto; padding: 14px 16px 48px; display: grid; gap: 14px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
.scol { display: grid; gap: 14px; min-width: 0; }
.small { font-size: .8rem; }
.grow { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: var(--paper); color: var(--ink); font-size: .95rem; }
kbd { font: 600 .68rem ui-monospace, monospace; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 4px; color: var(--muted); }
.keys { margin-top: 10px; font-size: .74rem; line-height: 1.9; }

.msg[hidden] { display: none; }
.msg { padding: 8px 12px; border-radius: 10px; font-size: .88rem; font-weight: 600; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0; }
.msg--err { background: color-mix(in srgb, var(--brand) 12%, var(--paper)); color: var(--brand); }
.msg--warn { background: color-mix(in srgb, var(--gold) 18%, var(--paper)); color: var(--ink); }
.msg--ok { background: color-mix(in srgb, var(--win) 14%, var(--paper)); color: var(--win); }
.msg .btn { margin-left: auto; }

.prompt { border: 2px solid var(--brand-2); }
.prompt p { margin: 0 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { border: 1px solid var(--line); background: var(--paper); border-radius: 99px; padding: 8px 12px; font-weight: 700; font-size: .88rem; cursor: pointer; color: var(--ink); }
.chips button small { font-weight: 500; color: var(--muted); }
.chips button.primary, .chips button.on { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.chips button.primary small, .chips button.on small { color: #fffc; }
.chips button[disabled] { opacity: .45; cursor: not-allowed; }

.crease { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: end; }
.crease label { display: grid; gap: 3px; font-size: .82rem; color: var(--muted); }
.crease label.full { grid-column: 1 / -1; }
.crease select, .crease input { min-width: 0; width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 8px; padding: 9px; background: var(--paper); font-size: 1rem; font-weight: 700; color: var(--ink); text-transform: none; letter-spacing: 0; }
.crease small { min-height: 1em; text-transform: none; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.crease .dotlive { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.crease .swap { padding: 9px 12px; margin-bottom: 18px; font-size: 1.1rem; }

.mods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 8px; }
.mods button { border: 1px dashed var(--line); background: var(--paper); border-radius: 10px; padding: 10px 0; font-weight: 700; cursor: pointer; color: var(--ink-2); }
.mods button.on { border-style: solid; border-color: var(--gold); background: color-mix(in srgb, var(--gold) 22%, var(--paper)); color: var(--ink); }
.pad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pad button, .btn { border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 16px 0; font-weight: 800; font-size: 1.25rem; cursor: pointer; color: var(--ink); font-family: var(--display); font-stretch: var(--narrow); }
.pad button:active, .mods button:active, .chips button:active { transform: scale(.97); }
.pad.armed button:not(.w) { border-color: var(--gold); }
.pad .four, .pad .six { color: var(--brand-2); border-color: color-mix(in srgb, var(--brand-2) 45%, var(--line)); }
.pad .rare { color: var(--muted); font-size: 1rem; }
.pad .w { background: var(--brand); color: #fff; border-color: var(--brand); }
.pad .w kbd, .btn--go kbd { color: #fffc; border-color: #fff6; }
.btn { padding: 8px 12px; font-size: .86rem; font-weight: 700; font-family: inherit; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn--go { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.btn.danger { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }

.wsheet { margin-top: 12px; padding: 12px; border: 2px solid var(--brand); border-radius: 12px; display: grid; gap: 10px; }
.wpreview { margin: 0; font-size: .95rem; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.form label { display: grid; gap: 3px; font-size: .82rem; color: var(--muted); }
.form label[hidden] { display: none; }
.form input, .form select, .form textarea, textarea { border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: var(--paper); font-size: .95rem; text-transform: none; letter-spacing: 0; color: var(--ink); font-family: inherit; }
.form .full { grid-column: 1 / -1; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.err { color: var(--brand); font-weight: 600; min-height: 1.2em; }
.check { display: flex; gap: 8px; align-items: center; font-size: .85rem; margin: 8px 0; }

.tabs { display: inline-flex; gap: 4px; margin-left: auto; text-transform: none; letter-spacing: 0; }
.tabs button { border: 1px solid var(--line); background: var(--paper); border-radius: 99px; padding: 2px 10px; font-size: .78rem; cursor: pointer; color: var(--ink-2); }
.tabs button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.log { max-height: 70vh; overflow: auto; }
.lover + .lover { margin-top: 10px; }
.lover-h { font-size: .82rem; font-weight: 700; color: var(--muted); padding: 4px 0; border-bottom: 1px solid var(--line); }
.lrow { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line-2); font-size: .88rem; cursor: pointer; }
.lrow.bad { background: color-mix(in srgb, var(--brand) 8%, transparent); }
.lrow.mm { background: color-mix(in srgb, var(--gold) 14%, transparent); }
.lrow.editing { background: var(--paper-2); }
.llab { width: 38px; color: var(--muted); font-size: .78rem; flex: none; }
.ltxt { flex: 1; min-width: 0; }
.lout, .lwarn { display: block; font-size: .78rem; }
.lout { color: var(--brand); font-weight: 600; }
.lwarn { color: var(--loss); }
.ledit { border: 0; background: none; color: var(--brand-2); font-weight: 700; font-size: .78rem; cursor: pointer; }
.eform { padding: 10px; background: var(--paper-2); border-radius: 10px; margin: 6px 0; }
.pend { max-height: 220px; overflow: auto; margin-bottom: 8px; }
.ftab { margin: 6px 0 4px; }

.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 10px; }
.seg button { border: 0; background: var(--paper); padding: 8px 12px; font-weight: 700; font-size: .85rem; cursor: pointer; color: var(--ink-2); }
.seg button.on { background: var(--ink); color: var(--paper); }
details.sub { margin-top: 10px; font-size: .88rem; }
details.sub summary { cursor: pointer; color: var(--muted); margin-bottom: 8px; }
#setupCard > summary { cursor: pointer; list-style: none; }
#setupCard > summary h2 { margin: 0; }
#setupCard[open] > summary { margin-bottom: 10px; }
.xis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.xi { display: grid; gap: 6px; }
.xi label { display: grid; gap: 3px; font-size: .74rem; color: var(--muted); }
.xi select { border: 1px solid var(--line); border-radius: 8px; padding: 6px; background: var(--paper); color: var(--ink); }
.h3 { font-size: .85rem; color: var(--muted); margin: 16px 0 6px; }
.tok { border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px; }
.notes .x { margin-left: auto; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1rem; }
.fhit { display: inline-block; margin-left: 6px; }

/* Public: commentary and playing XIs */
.comms { list-style: none; margin: 0; padding: 0; }
.comms li { display: grid; grid-template-columns: 36px auto minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line-2); font-size: .9rem; }
.comms .num { color: var(--muted); font-size: .8rem; }
.xis-pub > summary { cursor: pointer; list-style: none; }
.xis-pub > summary h2 { margin: 0; }
.xigrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.xigrid h3 { margin: 0 0 4px; font-size: .9rem; display: flex; gap: 6px; align-items: center; }
.xil { list-style: none; margin: 0; padding: 0; font-size: .88rem; }
.xil li { padding: 3px 0; border-bottom: 1px solid var(--line-2); }
.xil .num { display: inline-block; width: 28px; color: var(--muted); }
.xil i { color: var(--muted); font-style: normal; font-size: .8rem; }

/* Match switcher (Nepal / NPL) */
.mswitch { margin: 0; }
.mswitch a { padding: 6px 12px; font-weight: 700; font-size: .85rem; color: var(--ink-2); text-decoration: none; background: var(--paper); }
.mswitch a.on { background: var(--ink); color: var(--paper); }

/* Pre-match: teams, toss, XIs */
.lineup { border: 2px solid var(--gold); }
.lineup .step { margin: 12px 0 6px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.lineup .seg { margin-bottom: 0; }
.late { color: var(--brand); }
.xieds { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 16px; }
.xied h3 { margin: 0 0 6px; font-size: .95rem; display: flex; justify-content: space-between; }
.xied .ok { color: var(--win); }
.xrows { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.xrows li { display: grid; grid-template-columns: 18px 46px minmax(0, 1fr) auto auto auto auto; gap: 4px; align-items: center; }
.xrows .ord { font-size: .75rem; color: var(--muted); text-align: right; }
.xrows input { min-width: 0; border: 1px solid var(--line); border-radius: 6px; padding: 6px; background: var(--paper); color: var(--ink); font-size: .9rem; }
.xrows .no { text-align: center; font-variant-numeric: tabular-nums; }
.xrows .tg, .xrows .mv { border: 1px solid var(--line); background: var(--paper); border-radius: 6px; padding: 5px 6px; font-size: .7rem; font-weight: 800; cursor: pointer; color: var(--muted); }
.xrows .tg.on { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.xied textarea { width: 100%; box-sizing: border-box; margin-bottom: 6px; }
.luerr { margin: 10px 0; padding-left: 18px; color: var(--brand); font-size: .85rem; font-weight: 600; }
.luerr:empty { display: none; }

/* XI reference while scoring */
#xiRef h2 { display: flex; align-items: center; justify-content: space-between; }
.xiref { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.xiref h3 { margin: 0 0 4px; font-size: .88rem; }
.xiref ol { list-style: none; margin: 0; padding: 0; }
.xiref li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 6px; align-items: baseline; padding: 4px 0; border-bottom: 1px solid var(--line-2); font-size: .85rem; cursor: pointer; }
.xiref .no { font-variant-numeric: tabular-nums; color: var(--muted); text-align: right; }
.xiref .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xiref .st { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.xiref li.at { font-weight: 800; }
.xiref li.at .st { color: var(--brand-2); }
.xiref li.out .nm { text-decoration: line-through; color: var(--muted); }
.tag { font-style: normal; font-size: .66rem; font-weight: 800; color: var(--brand-2); margin-left: 4px; text-transform: uppercase; }
.pad button[disabled], .mods button[disabled] { opacity: .4; cursor: not-allowed; }
.comm { margin-top: 10px; }
.lcom { display: block; font-size: .8rem; color: var(--ink-2); font-style: italic; }

@media (max-width: 860px) {
  .smain { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .xieds, .xiref { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .trow--bat .tname, .trow--bat .tscore { font-size: 1.3rem; }
  .xis { grid-template-columns: 1fr; }
  .sbar .over { order: 3; min-width: 100%; }
}

/* Scorer login */
.login { max-width: 380px; margin: 24px auto; }
.login-form { gap: 12px; }
.login-form h1 { margin: 0; font-family: var(--display); font-size: 1.4rem; }
.login-form input { font-size: 1rem; padding: 10px; }
.login-form .btn--go { padding: 12px; font-size: 1rem; }
.who { display: inline-flex; align-items: center; gap: 8px; }
.prose h1 { margin: 0 0 4px; font-family: var(--display); }
.prose h2 { margin: 18px 0 6px; font-size: 1.05rem; }
.prose p, .prose li { line-height: 1.55; }

/* ---------- scorer: XI from images, last-match XI ---------- */
.imgbar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 10px; }
.imgbtn { cursor: pointer; }
.imgstatus { margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; font-size: .88rem; font-weight: 600; background: var(--paper-2); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.imgstatus[hidden] { display: none; }
.imgstatus.ok { background: color-mix(in srgb, var(--win) 14%, var(--paper)); color: var(--win); }
.imgstatus.warn { background: color-mix(in srgb, var(--gold) 18%, var(--paper)); }
.imgstatus.err { background: color-mix(in srgb, var(--brand) 12%, var(--paper)); color: var(--brand); }
.spin { width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--brand-2); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.xitools { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.xitools .btn { padding: 6px 10px; font-size: .8rem; }
.xinote { margin: 0 0 6px; font-size: .78rem; color: var(--muted); }
.xinote.img { color: var(--brand-2); font-weight: 600; }
.xrows li.chk input.nm { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 16%, var(--paper)); }

/* ---------- scorer on phones ---------- */
.scorer { padding-bottom: env(safe-area-inset-bottom); }
@media (hover: none) {
  .scorer .keys, .scorer kbd { display: none; }
}
@media (max-width: 860px) {
  /* One column, cards in the order a scorer needs them: prompt, crease, pad, XIs, then the log. */
  .smain > .scol { display: contents; }
  #msg { order: 0; }
  #lineup { order: 1; }
  #prompt { order: 2; }
  #scoring { order: 3; }
  #xiRef { order: 4; }
  .smain > .scol > section:has(#log) { order: 5; }
  #updCard, #feedCard { order: 6; }
  .smain > .scol > section, #setupCard { order: 7; }
}
@media (max-width: 560px) {
  .smain { padding: 10px 10px 40px; gap: 10px; }
  .scol { gap: 10px; }
  .scorer .card { padding: 12px; }
  .sbar { padding: 8px 10px; gap: 6px 10px; }
  .sbar-score b { font-size: 1.15rem; }
  .sbar .over { order: 3; min-width: 100%; }
  .mswitch a { padding: 5px 9px; font-size: .8rem; }
  /* 16px stops iOS zooming into a field on focus */
  .scorer input, .scorer select, .scorer textarea { font-size: 16px; }
  .crease { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px; }
  .crease select { padding: 8px 6px; font-size: 15px; }
  .crease .swap { padding: 8px; }
  .pad, .mods { gap: 6px; }
  .pad button { min-height: 58px; font-size: 1.4rem; }
  .mods button { padding: 12px 0; }
  .chips button { padding: 10px 14px; }
  .xrows li { grid-template-columns: 16px 44px minmax(0, 1fr) auto auto auto; gap: 3px; }
  .xrows .mv[data-mv="1"] { display: none; } /* ↑ alone reorders anything; saves a column */
  .xrows .tg, .xrows .mv { padding: 7px 6px; }
  .lineup .row .seg button { padding: 9px 10px; }
  .luerr { font-size: .8rem; }
}
