#tt-app{font-family:system-ui,Arial,sans-serif;color:#222;box-sizing:border-box;width:98vw;max-width:none;position:relative;left:50%;margin-left:-49vw;padding:0 8px}
#tt-app .tabs{justify-content:center;display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}
#tt-app button{padding:8px 14px;border:0;border-radius:6px;background:#2e7d32;color:#fff;cursor:pointer;font-size:14px}
#tt-app button.sec{background:#546e7a}#tt-app button.red{background:#c62828}#tt-app button.tab.on{background:#1b5e20;outline:2px solid #1b5e20}
#tt-app table{border-collapse:collapse;width:100%;font-size:14px}
#tt-app th,#tt-app td{border-bottom:1px solid #ddd;padding:5px 8px;text-align:left}
#tt-app th{background:#eef3ee}
#tt-app input,#tt-app select{padding:6px;border:1px solid #bbb;border-radius:4px;margin:2px}
#tt-app .card{border:1px solid #ddd;border-radius:8px;padding:12px;margin-bottom:12px}
#tt-app .big{font-size:34px;font-weight:700;font-variant-numeric:tabular-nums}
#tt-app .msg{padding:8px;background:#fff8e1;border-radius:6px;margin:8px 0}
#tt-app .st-FINISHED{color:#1b5e20;font-weight:600}#tt-app .st-RUNNING{color:#e65100}
#tt-app .bibs{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:8px}
#tt-app .bibbtn{min-width:64px;height:54px;font-size:20px;font-weight:700;background:#1565c0;line-height:1.1}
#tt-app .bibbtn small{display:block;font-size:10px;font-weight:400;opacity:.85}
#tt-app .bibbtn.st-b-FINISHED{background:#9e9e9e}#tt-app .bibbtn.st-b-RUNNING{background:#e65100}
#tt-app h3{font-size:18px}
#tt-app .hrow{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
#tt-app .urow{display:flex;gap:6px;margin:6px 0}
#tt-app .tt-logout{text-align:center}
#tt-app .rclock{display:inline-block;margin-left:12px;padding:2px 10px;background:#111;color:#7CFC00;border-radius:6px;font:700 22px/1.3 monospace}
#tt-app .wclock{margin-left:10px;font:600 15px monospace;color:#555}
#tt-app .st-DNF{color:#b71c1c;font-weight:600}#tt-app .st-DNS{color:#616161;font-weight:600}#tt-app .st-DSQ{color:#6a1b9a;font-weight:600}
#tt-app table{font-size:13px}
#tt-app th,#tt-app td{padding:4px 6px;white-space:nowrap}
#tt-app td:nth-child(3){white-space:normal;min-width:150px}
body{overflow-x:hidden}

.tt-toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:#222;color:#fff;padding:10px 18px;border-radius:8px;font:15px system-ui,Arial;z-index:99999;opacity:0;transition:opacity .3s;pointer-events:none;max-width:90vw}
#tt-app .rstate{margin-left:8px;font-size:13px;color:#b71c1c;font-weight:600}
#tt-app .tabs{position:sticky;top:0;z-index:50;background:#fff;padding:8px 0;margin-bottom:10px;box-shadow:0 2px 4px rgba(0,0,0,.12)}
body.admin-bar #tt-app .tabs{top:32px}
@media (max-width:782px){body.admin-bar #tt-app .tabs{top:46px}}
#tt-app .racecard{border-left:6px solid #2e7d32}
#tt-app .rc-head{display:flex;gap:12px;align-items:center;margin-bottom:10px}
#tt-app .rc-name{font-size:20px;font-weight:700;flex:1;max-width:420px}
#tt-app .rc-grid{display:flex;flex-wrap:wrap;gap:14px;margin-bottom:10px}
#tt-app .rf{display:flex;flex-direction:column;font-size:12px;color:#555;gap:3px}
#tt-app .rf input[type=number]{width:110px;font-size:16px}
#tt-app .rc-laps{background:#f4f8f4;border-radius:6px;padding:10px}
#tt-app .rc-lt{font-weight:700;margin-bottom:6px}
#tt-app .lnl{display:inline-flex;align-items:center;gap:4px;margin:3px 10px 3px 0}
#tt-app .lnl span{background:#2e7d32;color:#fff;border-radius:50%;width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center;font-size:12px}
#tt-app .lnl input{width:150px}
#tt-app .rc-waves{border-top:1px dashed #cfd8cf;padding-top:10px;margin-top:10px}
#tt-app .wrow{display:flex;gap:8px;align-items:center;margin:5px 0;flex-wrap:wrap}
#tt-app .wrow .wn,#tt-app .wrow .nwn{width:220px}
#tt-app .wst{min-width:130px;font-size:13px;color:#555}
#tt-app .rc-foot{margin-top:12px;text-align:right}
#tt-app .lchain{margin-left:10px;color:#555}
#tt-app .netrow{margin-top:8px;display:flex;gap:14px;align-items:flex-end;flex-wrap:wrap}#tt-app .netn{width:180px}
#tt-app .ptab{font-size:12px}#tt-app .ptab th,#tt-app .ptab td{padding:2px 5px;white-space:nowrap}#tt-app .ptab input,#tt-app .ptab select{font-size:12px;padding:1px 4px;height:22px;min-height:0;margin:0;line-height:1.2;border-radius:3px;width:auto}#tt-app .ptab button{font-size:11px;padding:0 6px;height:22px;min-height:0}
#tt-app table.ptab{font-size:12px!important}#tt-app table.ptab th,#tt-app table.ptab td{padding:2px 5px!important;white-space:nowrap;font-size:12px!important;line-height:1.2!important}#tt-app table.ptab input,#tt-app table.ptab select{font-size:12px!important;padding:1px 4px!important;height:24px!important;min-height:0!important;margin:0!important;border-radius:4px;width:auto}#tt-app table.ptab button{padding:1px 7px!important;font-size:12px!important}
#tt-app .ptw{overflow:auto;max-height:68vh;border:1px solid #ddd;border-radius:6px}#tt-app table.ptab th{position:sticky;top:0;background:#eef2f5;z-index:2}
#tt-app .lockfn{color:#555;font-weight:600}
#tt-app .bibbtn.allp{background:#6a1b9a}#tt-app .bibbtn.allp.st-b-RUNNING{background:#6a1b9a}
#tt-app .scanleg{font-size:12px;margin-left:8px}
#tt-app .bigclock{font-size:44px;padding:4px 18px;margin-left:20px;vertical-align:middle}
#tt-app tr.podium td{font-weight:800;background:#fff3c4}
#tt-app table.rt{width:100%;table-layout:auto}#tt-app table.rt th,#tt-app table.rt td{white-space:nowrap;width:1%;padding:6px 12px;text-align:center}#tt-app table.rt th.grow,#tt-app table.rt td.grow{width:auto;text-align:left;white-space:normal}
#tt-app .statbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}#tt-app .clrbox{margin-left:auto;white-space:nowrap}

/* TV mode — DAY theme (default): white background, very dark text, deep blue accents = best contrast in sunlight */
#ttTv{position:fixed;inset:0;z-index:99999;background:#fff;color:#08202c;font-family:system-ui,"Segoe UI",Arial,sans-serif;padding:2vh 3vw;overflow:hidden}
#ttTv .tvx{position:absolute;top:1.5vh;right:2vw;background:#e3eef3;color:#08202c;padding:6px 14px;border-radius:8px;cursor:pointer;font-size:16px;font-weight:600;border:1px solid #9fc9db}
#ttTv .tvth{right:9.5vw}
#ttTv .tvt{font-size:3.2vh;text-align:center;color:#075f82;font-weight:700;letter-spacing:2px;text-transform:uppercase}
#ttTv .tvr{font-size:7.5vh;font-weight:900;text-align:center;margin:1vh 0 2vh;color:#075f82}#ttTv .tvr small{font-size:3vh;color:#08202c;font-weight:700}
#ttTv .tvg{display:flex;gap:2vw;align-items:flex-start}
#ttTv .tvtb{flex:1;border-collapse:collapse;font-size:3vh;font-weight:600}#ttTv .tvtb td{white-space:nowrap;max-width:22vw;overflow:hidden;text-overflow:ellipsis}#ttTv .tvtb th{background:#075f82;color:#fff;padding:1vh 1vw;font-weight:800}#ttTv .tvtb td{padding:1vh 1vw;text-align:center;border-bottom:.3vh solid #9fc9db}#ttTv .tvtb tr:nth-child(even) td{background:#eaf5fa}#ttTv .tvtb tr.pd td{background:#ffe08a;font-weight:900}
#ttTv .tvl{width:30vw;background:#e6f3f9;border:.4vh solid #075f82;border-radius:12px;padding:1.5vh 1.2vw}#ttTv .tvh{font-size:2.4vh;font-weight:900;margin-bottom:1vh;color:#075f82;text-transform:uppercase}
#ttTv .tvi{font-size:2.4vh;padding:1vh 0;border-bottom:.3vh solid #9fc9db}
#ttTv .tvi .tvb{font-size:3.4vh;font-weight:900;color:#08202c}#ttTv .tvi .tvtm{float:right;font-size:3.4vh;font-weight:900;color:#075f82;font-variant-numeric:tabular-nums}#ttTv .tvi .tvn{clear:both;font-size:2.3vh;font-weight:600;color:#33505e;margin-top:.3vh}
#ttTv .tvi.new{background:#ffe08a;border-radius:8px;padding:1vh .8vw;margin:0 -.8vw}
/* NIGHT theme (button on the screen) */
#ttTv.night{background:#06141c;color:#fff}#ttTv.night .tvx{background:#ffffff22;color:#fff;border-color:#ffffff44}#ttTv.night .tvt{color:#bfe9f7}#ttTv.night .tvr{color:#ffd54a}#ttTv.night .tvr small{color:#fff}
#ttTv.night .tvtb th{background:#0b8bb8}#ttTv.night .tvtb td{border-bottom-color:#ffffff33}#ttTv.night .tvtb tr:nth-child(even) td{background:#ffffff10}#ttTv.night .tvtb tr.pd td{background:#ffd54a;color:#1a1200}
#ttTv.night .tvl{background:#0d2a38;border-color:#0b8bb8}#ttTv.night .tvh{color:#ffd54a}#ttTv.night .tvi{border-bottom-color:#ffffff33}#ttTv.night .tvi .tvb{color:#fff}#ttTv.night .tvi .tvtm{color:#7fe3ff}#ttTv.night .tvi .tvn{color:#bcd6e0}#ttTv.night .tvi.new{background:#0b8bb8}

#tt-app .ath{border:1px solid #9fc9db;border-radius:10px;padding:10px 12px;margin-top:10px;background:#f4fbfe}
#tt-app .athb{background:#075f82;color:#fff;border-radius:6px;padding:2px 8px;font-weight:800}
#tt-app .athg{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}#tt-app .athg div{background:#fff;border:1px solid #b9e0ee;border-radius:8px;padding:6px 12px;text-align:center}#tt-app .athg small{display:block;text-transform:uppercase;font-size:11px;color:#6a8896}#tt-app .athg b{font-size:20px;color:#075f82}
#tt-app .aths{margin-top:6px;font-size:13px}
#ttTv .tvq{text-align:center;margin-top:2vh;font-size:1.9vh;font-weight:700}#ttTv .tvq svg{width:15vh;height:15vh;background:#fff;padding:1vh;border-radius:8px;display:block;margin:0 auto 1vh}

#tt-app button.apb{background:#6a1b9a}
#tt-app .lnl input.lab{width:70px;border-color:#6a1b9a}

/* Manual Scan: race names and BIB buttons centred */
#tt-app .bibs{display:flex!important;flex-wrap:wrap!important;justify-content:center!important}
#tt-app .bibs ~ *,#tt-app .card>b+.rclock{text-align:center}
#tt-app table.wvt{width:auto!important;margin:10px auto;border-collapse:collapse}#tt-app table.wvt td{text-align:center;vertical-align:middle;padding:6px 16px;width:auto!important;white-space:nowrap}

#tt-app .bibbtn.tlim,#tt-app .bibs .bibbtn.tlim{background:#c62828!important;color:#fff!important;border-color:#8e0000!important}

/* ---- race preview (Races & Rules) ---- */
#tt-app .rc-prev{margin:10px 0;background:#fff;border:1px dashed #9db89d;border-radius:8px;padding:10px}
#tt-app .pv-top{font-size:13px;color:#444;margin-bottom:8px}
#tt-app .pv-row{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:center;gap:0;padding:4px 0}
#tt-app .pv-n{display:flex;flex-direction:column;align-items:center;min-width:92px;max-width:130px;text-align:center}
#tt-app .pv-c{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;color:#fff;background:#546e7a;font-size:15px}
#tt-app .pv-s .pv-c{background:#2e7d32}
#tt-app .pv-f .pv-c{background:#1565c0}
#tt-app .pv-nm{font-size:13px;font-weight:700;margin-top:4px;word-break:break-word}
#tt-app .pv-sub{font-size:11px;color:#555;margin-top:2px;line-height:1.35}
#tt-app .pv-cut{display:block;margin-top:3px;background:#fff3e0;color:#e65100;border:1px solid #ffb74d;border-radius:10px;padding:1px 7px;font-weight:700;font-size:11px}
#tt-app .pv-lim{background:#ffebee;color:#c62828;border-color:#ef9a9a}
#tt-app .pv-l{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;min-width:70px;padding-top:15px;position:relative}
#tt-app .pv-l:before{content:"";display:block;width:100%;height:3px;background:#b0bec5;border-radius:2px}
#tt-app .pv-l span{font-size:10px;color:#607d8b;margin-top:3px;white-space:nowrap}
#tt-app .pv-note{margin-top:8px;font-size:12px;color:#444}
#tt-app .pv-warn{margin-top:8px;padding:6px 9px;background:#fff8e1;border:1px solid #ffca28;border-radius:6px;font-size:12px;color:#8a5a00}
#tt-app .pv-bad{color:#c62828;font-weight:700}
#tt-app .rc-prev{text-align:center}
#tt-app .rc-prev .pv-top,#tt-app .rc-prev .pv-note,#tt-app .rc-prev .pv-warn{text-align:center}

#tt-app .bibbtn.nopick,#tt-app .bibs .bibbtn.nopick{background:repeating-linear-gradient(135deg,#8d6e63 0 8px,#6d4c41 8px 16px)!important;color:#fff!important;border:2px dashed #3e2723!important;opacity:.85}

/* ===== Tablets and phones (portrait + landscape) ===== */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
#tt-app{overflow-wrap:break-word}
#tt-app button,#tt-app select,#tt-app .bibbtn{touch-action:manipulation}
#tt-app input,#tt-app select,#tt-app textarea{max-width:100%;box-sizing:border-box}
#tt-app img{max-width:100%}
@media (pointer:coarse){
  #tt-app button{min-height:40px}
  #tt-app input[type=checkbox]{width:20px;height:20px}
  #tt-app .bibbtn{min-height:0}
}
@media (max-width:1100px){
  #tt-app .rc-head{flex-wrap:wrap}
  #tt-app .rc-name{max-width:100%;min-width:60%}
}
@media (max-width:900px){
  /* wide tables scroll sideways inside their card instead of being cut off */
  #tt-app table:not(.wvt):not(.ptab){display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
}
@media (max-width:820px){
  #tt-app{width:100vw;margin-left:-50vw;padding:0 6px}
  /* one scrollable row of tabs instead of many wrapped rows */
  #tt-app .tabs{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:thin;padding:6px 4px;gap:5px}
  #tt-app .tabs .tab{flex:0 0 auto;white-space:nowrap;padding:8px 11px}
  #tt-app input,#tt-app select,#tt-app textarea{font-size:16px}
  #tt-app .card{padding:8px}
  #tt-app .tt-logo img{max-height:58px!important;height:auto!important}
  #tt-app .big{font-size:26px}
  #tt-app .bigclock{font-size:32px;margin-left:6px}
  #tt-app .rclock{font-size:18px}
  #tt-app .rf input[type=number]{width:90px}
  #tt-app .lnl input{width:120px}
  #tt-app .wrow .wn,#tt-app .wrow .nwn{width:100%}
  #tt-app .hrow{justify-content:center}
  #tt-app table.wvt{display:block;overflow-x:auto;max-width:100%}
  #tt-app table.wvt td{padding:6px 8px}
  /* race clocks screen: the controls wrap in a row at the top */
  body #ttCl #clTop{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:6px 8px;justify-content:flex-end}
  body #ttCl #clClose{order:9}body #ttCl #clTheme{order:8}
  body #ttCl .lg,body #ttCl .lg2{position:static;height:7vh;width:auto;max-width:30vw;margin-right:auto}
  body #ttCl .x,body #ttCl .md{position:static;font-size:14px;padding:5px 8px;max-width:44vw}
  body #ttCl .g{top:19vh}
}
@media (max-width:820px) and (orientation:portrait){
  #tt-app .bibs{gap:4px}
}
/* phones held sideways: very little height, so keep the header small */
@media (max-height:520px){
  #tt-app .tt-logo{display:none}
  #tt-app .tabs{padding:3px 4px;margin-bottom:6px}
  #tt-app .tabs .tab{padding:5px 10px}
  body #ttCl .g{top:14vh}
  body #ttCl .lg,body #ttCl .lg2{height:10vh}
}

/* zoom control (50%-150%): the app is scaled, the tab bar keeps its place under the WordPress admin bar */
#tt-app.tt-zoomed{will-change:transform}
body.admin-bar #tt-app.tt-zoomed .tabs{top:calc(32px / var(--z,1))}
@media (max-width:782px){body.admin-bar #tt-app.tt-zoomed .tabs{top:calc(46px / var(--z,1))}}

/* words must never be broken letter by letter (tables included) */
#tt-app,#tt-app .card{overflow-wrap:normal;word-break:normal}
#tt-app table,#tt-app th,#tt-app td{overflow-wrap:normal!important;word-break:normal!important;hyphens:none}

/* ===== Full-screen screens held in PORTRAIT (tablet / phone): TV mode, Live passes, Race clocks ===== */
@media (max-aspect-ratio:1/1){
  /* --- Live passes --- */
  body #ttPs .lg{height:44px;width:44px;top:6px;left:2vw}
  body #ttPs .lg2{left:calc(2vw + 52px);width:auto;max-width:30vw}
  body #ttPs .x{top:8px;right:2vw;font-size:14px;padding:5px 10px}
  body #ttPs .th{right:calc(2vw + 100px)}
  body #ttPs .md{top:58px!important;font-size:14px;padding:4px 6px;max-width:46vw}
  body #ttPs #psMode{left:2vw;right:auto}
  body #ttPs #psSideSel{right:2vw;left:auto}
  body #ttPs .t{top:94px;left:2vw!important;right:2vw;font-size:15px;letter-spacing:1px}
  body #ttPs .t small{font-size:14px}
  body #ttPs #psBody{top:140px!important;left:2vw;right:2vw!important;bottom:6px}
  body #ttPs.side #psBody{bottom:38vh}
  body #ttPs #psSide{top:auto!important;left:2vw;right:2vw;bottom:6px;width:auto;height:34vh;padding:8px 10px}
  body #ttPs .sh{font-size:14px}body #ttPs .sr{font-size:15px}body #ttPs .si{font-size:14px}body #ttPs .ck{font-size:28px}
  body #ttPs .r,body #ttPs.side .r{grid-template-columns:13vw 1fr 15vw 17vw 25vw;gap:6px;font-size:13px;padding:5px 6px}
  body #ttPs.one .r,body #ttPs.side.one .r{grid-template-columns:13vw 1fr 18vw 27vw}
  body #ttPs .r>div:nth-child(6){display:none}
  body #ttPs .r.h{font-size:11px}
  body #ttPs .rc{font-size:12px}
  body #ttPs .b{font-size:19px}body #ttPs .n{font-size:14px}body #ttPs .n small{font-size:11px}
  body #ttPs .p{font-size:14px}body #ttPs .p small{font-size:11px}body #ttPs .m{font-size:14px}body #ttPs .m small{font-size:11px}
  body #ttPs .e{font-size:18px;margin-top:20vh}
  /* --- TV mode --- */
  #ttTv{overflow-y:auto;padding:8px 3vw}
  #ttTv img{top:6px!important;left:2vw!important;height:44px!important;width:44px!important}
  #ttTv img+img{left:calc(2vw + 52px)!important;width:auto!important;max-width:30vw}
  #ttTv .tvx{top:8px;right:2vw;font-size:14px;padding:5px 10px}
  #ttTv .tvth{right:calc(2vw + 100px)}
  #ttTv .tvt{font-size:15px;padding-top:54px;letter-spacing:1px}
  #ttTv .tvr{font-size:26px;margin:6px 0 10px}#ttTv .tvr small{font-size:13px}
  #ttTv .tvg{flex-direction:column;gap:12px}
  #ttTv .tvtb{width:100%;font-size:14px;display:block;overflow-x:auto}
  #ttTv .tvtb td{max-width:38vw}#ttTv .tvtb th{padding:6px 8px;font-size:12px}
  #ttTv .tvl{width:auto;padding:10px 12px}
  #ttTv .tvh{font-size:14px}#ttTv .tvi{font-size:14px}
  #ttTv .tvi .tvb,#ttTv .tvi .tvtm{font-size:17px}#ttTv .tvi .tvn{font-size:13px}
  #ttTv .tvq{font-size:13px}#ttTv .tvq svg{width:110px;height:110px}
}

/* ===== TV mode: tidy "Just finished" side panel (theme line-height safe, time on the same line as the BIB) ===== */
body #ttTv{line-height:1.25}
body #ttTv .tvh{line-height:1.2;font-size:2.1vh;letter-spacing:.2px}
body #ttTv .tvi{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;column-gap:1vw;line-height:1.2}
body #ttTv .tvi .tvb,body #ttTv .tvi .tvtm{float:none;line-height:1.15}
body #ttTv .tvi .tvn{flex:0 0 100%;clear:none;line-height:1.2}
body #ttTv .tvtb td{max-width:30vw}
@media (min-aspect-ratio:1/1){body #ttTv .tvl{max-height:78vh;overflow:hidden}}
body #ttTv .tvl{flex:0 0 30vw;width:30vw;box-sizing:border-box}
body #ttTv .tvtb{flex:1 1 0;min-width:0}
body #ttTv .tvi .tvb,body #ttTv .tvi .tvtm{font-size:3.1vh}
@media (min-aspect-ratio:1/1){body #ttTv .tvtb td{max-width:24vw}}
body #ttTv .tvl{flex:0 0 26vw;width:26vw}
@media (min-aspect-ratio:1/1){body #ttTv .tvtb td{max-width:17vw}body #ttTv .tvtb td:nth-child(3){max-width:20vw}}
body #ttTv .tvi .tvb,body #ttTv .tvi .tvtm{font-size:2.8vh}
body #ttTv .tvi .tvb{margin-right:1.2vw}
body #ttTv .tvl{padding:1.5vh .9vw}
@media (min-aspect-ratio:1/1){body #ttTv .tvtb td{max-width:14vw}body #ttTv .tvtb td:nth-child(3){max-width:17vw}}
@media (max-aspect-ratio:1/1){
  body #ttTv .tvl{flex:0 0 auto;width:auto;max-height:none}
  body #ttTv .tvtb{flex:0 0 auto;min-width:0;width:100%}
  body #ttTv .tvi .tvb,body #ttTv .tvi .tvtm{font-size:17px}
  body #ttTv .tvi .tvb{margin-right:10px}
  body #ttTv .tvl{padding:10px 12px}
}
@media (max-aspect-ratio:1/1){body #ttTv .tvg{align-items:stretch}}
/* TV mode landscape: logos smaller + race header kept clear of them */
@media (min-aspect-ratio:1/1){
  body #ttTv>img{height:8.5vh!important;width:8.5vh!important}
  body #ttTv>img+img{height:8.5vh!important;width:auto!important;left:calc(2vw + 10vh)!important}
  body #ttTv .tvr{margin-top:3.5vh}
  body #ttTv .tvl{max-height:calc(100vh - 26vh)}
  body #ttTv .tvq svg{width:11vh;height:11vh}
}
/* TV mode on tablets held in LANDSCAPE: smaller table text, times never cut, buttons not overlapping */
@media (min-aspect-ratio:1/1) and (max-width:1300px){
  body #ttTv .tvth{right:calc(2vw + 104px)}
  body #ttTv .tvtb{font-size:2.5vh}
  body #ttTv .tvtb td,body #ttTv .tvtb th{padding-left:.5vw;padding-right:.5vw}
  body #ttTv .tvtb td{max-width:12vw}
  body #ttTv .tvtb td:nth-child(3){max-width:15vw}
  body #ttTv .tvtb td:nth-child(5),body #ttTv .tvtb td:nth-child(6){max-width:none}
  body #ttTv .tvl{flex:0 0 27vw;width:27vw}
  body #ttTv .tvi .tvb,body #ttTv .tvi .tvtm{font-size:2.5vh}
  body #ttTv .tvi .tvn{font-size:2vh}
}

/* ===== Live passes + Race clocks on tablets held in LANDSCAPE: no overlapping controls / columns ===== */
@media (min-aspect-ratio:1/1) and (max-width:1300px){
  /* Race clocks: controls in one tidy row */
  body #ttCl #clTop{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:6px 10px;justify-content:flex-end}
  body #ttCl #clClose{order:9}body #ttCl #clTheme{order:8}
  body #ttCl .lg,body #ttCl .lg2{position:static;height:7vh;width:auto;max-width:20vw;margin-right:auto}
  body #ttCl .lg2{margin-right:0}body #ttCl .lg:not(.lg2)~.lg2{margin-right:auto}
  body #ttCl .x,body #ttCl .md{position:static;font-size:14px;padding:5px 8px;max-width:30vw}
  body #ttCl .g{top:15vh}
  /* Live passes */
  body #ttPs .lg{height:8vh;width:8vh}
  body #ttPs .lg2{left:calc(2vw + 10vh)}
  body #ttPs .x{font-size:14px;padding:5px 10px}
  body #ttPs .th{right:calc(2vw + 96px)}
  body #ttPs #psMode{right:calc(2vw + 200px);font-size:14px;padding:4px 6px;max-width:24vw}
  body #ttPs #psSideSel{right:2vw;left:auto;top:6.5vh;font-size:14px;padding:4px 6px;max-width:24vw}
  body #ttPs .t{left:22vw;right:34vw;font-size:2.6vh}
  body #ttPs .r>div:nth-child(6){display:none}
  body #ttPs .r{grid-template-columns:8vw 1fr 9vw 15vw 14vw;font-size:2.3vh}
  body #ttPs.one .r{grid-template-columns:8vw 1fr 15vw 14vw}
  body #ttPs.side .r{grid-template-columns:7vw 1fr 8vw 15vw 14vw}
  body #ttPs.side.one .r{grid-template-columns:7vw 1fr 15vw 14vw}
  body #ttPs .m{font-size:2.5vh}body #ttPs .n{font-size:2.6vh}body #ttPs .b{font-size:3.8vh}
}
@media (min-aspect-ratio:1/1) and (max-width:1300px){body #ttPs.side #psBody{right:33vw}body #ttPs #psSide{width:27vw}}
