/* Availability (agent) and Scouting, cards as paddock passes, speed traps, credits in the Garage hero */
/* ===== Availability (agent) and Scouting ===== */
.av { display: flex; flex-direction: column; gap: 12px; }
.av-opts { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.av-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; cursor: pointer; border-top: 1px solid var(--line); }
.av-opt:first-child { border-top: 0; }
.av-opt.on { background: rgba(255, 255, 255, .05); }
.av-opt input { margin-top: 3px; accent-color: var(--flag); }
.av-opt b { display: block; font-size: 15px; } .av-opt small { color: var(--muted); font-size: 13px; }
.av-open { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.av-open[hidden] { display: none; }
.av-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.av-field > span:first-child { font-family: var(--display); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-size: 12px; }
.av-field small { color: var(--muted); }
.av-field select { max-width: 260px; }
.av-auto { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.av-auto input { position: absolute; opacity: 0; pointer-events: none; }
.av-sw { width: 38px; height: 20px; border-radius: 10px; background: var(--line); position: relative; transition: background .2s; flex: none; }
.av-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.av-auto input:checked + .av-sw { background: #3fc79a; }
.av-auto input:checked + .av-sw::after { transform: translateX(18px); }
.av-auto input:focus-visible + .av-sw { outline: 2px solid var(--fg); outline-offset: 2px; }
.av-btns { display: inline-flex; gap: 6px; }
.av-btns button { font-size: 13px; padding: 5px 10px; }
.ag-offer { display: flex; flex-direction: column; gap: 4px; }
.ag-offer .nm { cursor: pointer; font-size: 14px; }
.sc-win { padding: 10px 14px; border: 1px solid var(--line); border-left: 4px solid #6b7385; border-radius: 4px; display: flex; flex-direction: column; gap: 2px; }
.sc-win.on { border-left-color: #3fc79a; }
.sc-win small { color: var(--muted); }
.sc-cond { font-size: 12px; color: var(--muted); text-align: center; }
.sc-star { font-size: 18px; line-height: 1; padding: 4px 10px; color: var(--muted); }
.sc-star.on { color: #f2c94c; border-color: #f2c94c; }
.sc-cardwrap { cursor: pointer; }
.sc-form { padding: 16px; display: flex; flex-direction: column; gap: 10px; border-left: 4px solid var(--flag); }
.sc-form-h { display: flex; justify-content: space-between; align-items: center; }
.sc-form-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.sc-msg { color: var(--fg); }
#scoutBody select, #scoutBody input[type=number], .sc-form select { background: var(--panel); color: var(--fg); border: 1px solid var(--line); padding: 7px 8px; font: inherit; font-size: 14px; width: auto; max-width: 100%; }
#scoutBody .mf-max input { width: 70px; }
#scoutBody .ag-tools select { min-width: 170px; flex: 0 0 auto; }
.ag-tbl .buy { font-size: 13px; padding: 6px 12px; }
.ag-tbl .sc-offer { font-size: 13px; padding: 6px 12px; }
.ag-tbl .sc-star { padding: 2px 8px; font-size: 15px; }
.back-group { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.cm-back { align-self: flex-start; margin-bottom: 6px; font-size: 13px; padding: 6px 12px; }
.co-box { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.co-box .offer input { width: 90px; }
.m-viewrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ag-tbl td.nm[data-card] { cursor: pointer; }

/* Every card is a paddock pass: lanyard, clip and the slot it hangs from */
.cb-lan { position: absolute; left: 50%; top: -46px; width: 34px; height: 30px; margin-left: -17px; z-index: 4; pointer-events: none; }
.cb-lan::before, .cb-lan::after { content: ""; position: absolute; top: 0; width: 12px; height: 30px; background: repeating-linear-gradient(180deg, var(--rar) 0 10px, color-mix(in srgb, var(--rar) 60%, #000) 10px 12px); }
.cb-lan::before { left: 2px; transform: skewX(14deg); } .cb-lan::after { right: 2px; transform: skewX(-14deg); }
/* metal clip hangs above the card; its ring drops into the slot and disappears behind it */
.cb-clip { position: absolute; left: 50%; top: -20px; width: 22px; height: 15px; margin-left: -11px; border-radius: 4px 4px 6px 6px; background: linear-gradient(#e2e6ec, #7c8590); box-shadow: 0 2px 4px rgba(0, 0, 0, .5); z-index: 6; pointer-events: none; }
.cb-ring { position: absolute; left: 50%; top: -8px; width: 20px; height: 26px; margin-left: -10px; border: 3px solid #b9c1cc; border-top: 0; border-radius: 0 0 8px 8px; box-shadow: 1px 1px 2px rgba(0, 0, 0, .5); z-index: 4; pointer-events: none; }
.cb-hole { position: absolute; left: 50%; top: 12px; width: 40px; height: 8px; margin-left: -20px; border-radius: 4px; background: #05070a; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .1); z-index: 5; pointer-events: none; }
.rv-front .dcard.cb { margin-top: 0; }
.rv-front .cb-lan, .rv-front .cb-clip, .rv-front .cb-ring { display: none; }

.gc-viz, .gt-viz { margin: 8px 0 4px; } .gc-viz svg.viz, .gt-viz svg.viz { display: block; width: 100%; height: auto; border-radius: 8px; }
.gt-viz { margin-top: 10px; }
.picks .pick { position: relative; }
.picks .pick.main { border-left: 4px solid var(--flag); }
.picks .pick.res { border-style: dashed; border-color: #f2c94c; }
.pk-tag { position: absolute; top: 8px; right: 10px; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 3px; }
.pk-tag.main { background: var(--flag); color: #fff; } .pk-tag.res { border: 1px solid #f2c94c; color: #f2c94c; }
/* FDM TV: the replay (28 oct 2026). Track with the TV look on top, the tower of 20 beside it, the controls below */
.rp-box { width: min(1240px, 100%); gap: 10px; }
.rp-head { display: flex; justify-content: space-between; align-items: center; font-size: 18px; }
.rp-x { background: none; border: 0; color: inherit; font-size: 18px; cursor: pointer; }
.rp-main { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 10px; align-items: start; }
.rp-stage { position: relative; background: #000; border-radius: 8px; overflow: hidden; } .rp-screen { position: relative; }
.rp-stage canvas { width: 100%; height: auto; aspect-ratio: 800 / 460; display: block; touch-action: none; }
.tv-top { position: absolute; top: 10px; left: 10px; display: flex; align-items: center; gap: 10px; z-index: 2; pointer-events: none; }
.tv-logo { display: inline-flex; align-items: center; gap: 1px; padding: 3px 8px 3px 10px; background: rgba(0,0,0,.7); border-radius: 3px; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 22px; line-height: 1; letter-spacing: .01em; }
.tv-logo b { color: #fff; font-weight: 800; } .tv-logo b.m { color: var(--flag); }
.tv-logo i { margin-left: 6px; padding: 2px 5px; background: var(--flag); color: var(--on-flag); font-size: 13px; font-style: italic; border-radius: 2px; }
.tv-rec { font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: .08em; color: var(--rec); background: rgba(0,0,0,.6); padding: 3px 7px; border-radius: 3px; }
@media (prefers-reduced-motion: no-preference) { .tv-rec { animation: tvRec 1.6s ease-in-out infinite; } @keyframes tvRec { 50% { opacity: .35; } } }
.tv-lap { position: absolute; top: 10px; right: 10px; z-index: 2; pointer-events: none; padding: 5px 10px; background: rgba(0,0,0,.7); border-radius: 3px; font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; color: #fff; font-variant-numeric: tabular-nums; }
.tv-banners { position: absolute; top: 46px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.tv-banners .sc-banner { position: static; transform: none; }
.tv-rain { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 16px; text-transform: uppercase; padding: 3px 12px; border-radius: 3px; background: rgba(40,70,140,.85); color: #fff; }
.tv-old { position: absolute; top: 46px; left: 10px; z-index: 2; font-size: 12px; padding: 3px 8px; background: rgba(0,0,0,.7); color: var(--muted); border-radius: 3px; }
.tv-ticker { position: absolute; left: 10px; bottom: 54px; z-index: 2; max-width: calc(100% - 20px); display: flex; align-items: stretch; background: rgba(0,0,0,.82); border-left: 4px solid var(--flag); font-family: var(--body); font-size: 15px; pointer-events: none; }
.tv-ticker > span { padding: 6px 12px; color: #fff; }
.tv-tag { display: flex; align-items: center; padding: 0 10px; background: var(--flag); color: var(--on-flag); font-family: var(--display); font-weight: 800; font-style: italic; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
@media (prefers-reduced-motion: no-preference) { .tv-ticker:not([hidden]) { animation: tvIn .35s ease-out; } @keyframes tvIn { from { transform: translateX(-16px); opacity: 0; } } }
.rp-cam { position: absolute; left: 10px; bottom: 10px; z-index: 2; }
.rp-tower { margin: 0; padding: 6px; list-style: none; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; font-size: 13px; display: flex; flex-direction: column; gap: 1px; }
.rp-tower li { display: grid; grid-template-columns: 22px 4px minmax(0, 1fr) 24px 58px; align-items: center; gap: 6px; padding: 3px 4px; border-radius: 3px; }
.rp-tower li .p { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; font-family: var(--display); font-weight: 700; }
.rp-tower li i { width: 4px; height: 14px; border-radius: 2px; }
.rp-tower li .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-tower li .ty { width: 20px; height: 20px; border: 2px solid; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 800; }
.rp-tower li .pit { font-size: 10px; font-weight: 800; background: #f0c93f; color: #111; border-radius: 3px; text-align: center; padding: 1px 0; }
.rp-tower li .g { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12px; }
.rp-tower li.me { background: color-mix(in srgb, var(--flag) 22%, transparent); color: #fff; font-weight: 700; } .rp-tower li.me .g { color: #fff; }
.rp-tower li.out { opacity: .5; }
.rp-bar { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.rp-tl { position: relative; padding-top: 26px; }
.rp-tl input[type=range] { width: 100%; margin: 0; accent-color: var(--flag); }
.rp-marks { position: absolute; left: 8px; right: 8px; top: 0; height: 24px; }
.rp-mk { position: absolute; top: 0; transform: translateX(-50%); width: 22px; height: 22px; padding: 0; border: 0; background: none; font-size: 13px; line-height: 22px; cursor: pointer; border-radius: 50%; }
.rp-mk:hover, .rp-mk:focus-visible { background: rgba(255,255,255,.14); outline: none; }
.rp-mk.grp { width: auto; min-width: 22px; padding: 0 5px; border-radius: 11px; background: rgba(255,255,255,.08); display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.rp-mk.grp b { font-family: var(--display); font-size: 12px; color: var(--flag); }
.rp-list { position: absolute; bottom: 52px; transform: translateX(-50%); z-index: 4; display: flex; flex-direction: column; min-width: 220px; max-width: min(420px, 86vw); max-height: 220px; overflow-y: auto; padding: 4px; background: #000; border: 1px solid var(--flag); border-radius: 6px; }
.rp-list button { text-align: left; border: 0; background: none; padding: 7px 8px; font: inherit; font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--fg); border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-list button:hover, .rp-list button:focus-visible { background: color-mix(in srgb, var(--flag) 22%, transparent); outline: none; }
.rp-tip { position: absolute; bottom: 52px; transform: translateX(-50%); white-space: nowrap; max-width: 80vw; overflow: hidden; text-overflow: ellipsis; padding: 4px 8px; background: #000; border: 1px solid var(--flag); border-radius: 4px; font-size: 13px; z-index: 3; pointer-events: none; }
.rp-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rp-time { font-family: var(--display); font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; min-width: 104px; }
.rp-btns, .rp-spd { display: inline-flex; gap: 4px; flex-wrap: wrap; } .rp-btns button, .rp-spd button { padding: 5px 10px; font-size: 13px; }
.rp-btns .rp-play { min-width: 44px; } .rp-spd { margin-left: auto; }
.rp-spd button[aria-pressed="true"] { border-color: var(--flag); color: var(--flag); }
@media (max-width: 760px) {
  .rp-main { grid-template-columns: 1fr; }
  .tv-logo { font-size: 16px; } .tv-logo i { font-size: 11px; } .tv-rec { font-size: 11px; } .tv-lap { font-size: 12px; padding: 3px 7px; }
  .tv-banners { top: 30px; } .tv-ticker { font-size: 12px; } .tv-tag { font-size: 11px; padding: 0 6px; }
  .rp-cam { position: static; flex-wrap: wrap; justify-content: center; padding: 6px; background: var(--panel); }   /* below the track, not over it */
  .tv-top { top: 6px; left: 6px; gap: 6px; } .tv-lap { top: 6px; right: 6px; } .tv-ticker { bottom: 6px; left: 6px; }
  .tv-banners .sc-banner, .tv-rain { font-size: 12px; padding: 2px 8px; } .tv-ticker > span { padding: 4px 8px; }
  /* the controls in two rows: time and ⏮ −1 ❚❚ +1 / next highlight and speeds */
  .rp-row { display: grid; grid-template-columns: auto repeat(4, 1fr); gap: 6px; }
  .rp-btns { display: contents; } .rp-time { min-width: 0; font-size: 14px; align-self: center; }
  .rp-btns button { padding: 6px 4px; } .rp-btns [data-rpb="next"] { grid-column: 1 / 3; }
  .rp-spd { grid-column: 3 / 6; margin-left: 0; display: grid; grid-template-columns: repeat(4, 1fr); } .rp-spd button { padding: 6px 2px; }
}
.db-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.plan-bar { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 10px; }
.pb-track { display: flex; gap: 6px; }
.pb-seg { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pb-blk { border-radius: 4px; padding: 6px 8px; color: #0f141d; display: flex; justify-content: space-between; gap: 6px; align-items: baseline; min-width: 0; overflow: hidden; white-space: nowrap; }
.pb-blk b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; } .pb-blk small { font-size: 12px; font-weight: 700; }
.pb-use { height: 5px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.pb-use i { display: block; height: 100%; background: #3fc79a; } .pb-use i.warn { background: #f2c94c; } .pb-use i.bad { background: #e5484d; }
.pb-txt { font-size: 12px; color: var(--muted); line-height: 1.25; } .pb-txt.warn { color: #f2c94c; } .pb-txt.bad { color: #e5484d; }
#screen-live.big .main { grid-template-columns: minmax(0, 1fr); }
#trackBox.pinned { position: sticky; top: 6px; z-index: 6; }
#trackBox:fullscreen, #trackBox.fs { position: fixed; inset: 0; z-index: 120; margin: 0; border-radius: 0; display: flex; align-items: center; justify-content: center; background: #05080e; padding: 0; }
#trackBox:fullscreen canvas, #trackBox.fs canvas { width: min(100vw, calc(100vh * 800 / 460)); height: auto; }
#trackBox:fullscreen .cam, #trackBox.fs .cam { position: absolute; left: 12px; bottom: 12px; }
.cam .cam-on { border-color: var(--flag); }
.eb-body { display: flex; flex-direction: column; gap: 14px; padding-bottom: 8px; }
.eb-entries { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.eb-entry { border: 1px solid var(--line); border-radius: 6px; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: rgba(255,255,255,.03); }
.eb-entry.act { border-left: 5px solid var(--flag); }
.eb-eh { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .eb-eh b { font-size: 16px; }
.eb-er { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.eb-minis { display: inline-flex; gap: 4px; } .eb-mini { border: 1px solid var(--rc); color: var(--rc); border-radius: 4px; padding: 0 6px; font-weight: 800; font-size: 13px; }
.eb-due { color: #f2c94c; font-size: 12px; }
.eb-eb { display: flex; gap: 6px; flex-wrap: wrap; } .eb-eb button { font-size: 13px; padding: 5px 10px; }
.eb-new { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.eb-nh { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .eb-nh > b { font-family: var(--display); font-size: 22px; text-transform: uppercase; font-style: italic; }
.eb-grade { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 4px; } .eb-grade small { color: var(--muted); }
.eb-grade.none { color: var(--muted); font-size: 13px; }
.eb-g2 { font-size: 12px; padding: 4px 8px; } .eb-fee { margin-left: auto; font-size: 14px; color: var(--muted); } .eb-fee b { color: var(--fg); }
.eb-slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 760px) { .eb-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); } .eb-slots .eb-slot:first-child { grid-column: 1 / -1; } }
.eb-slot { position: relative; min-height: 112px; border: 2px dashed color-mix(in srgb, var(--rc) 55%, transparent); border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; background: color-mix(in srgb, var(--rc) 6%, transparent); transition: background .15s, border-color .15s; }
.eb-slot.full { border-style: solid; }
.eb-slot.sel { border-color: #f2c94c; box-shadow: 0 0 0 2px rgba(242,201,76,.35); }
.eb-slot.can { border-color: #3fc79a; background: rgba(63,199,154,.1); } .eb-slot.over { background: rgba(63,199,154,.25); transform: scale(1.02); }
.eb-slot.bad { border-color: #e5484d; }
/* One builder (28 oct 2026): "+ New entry" in green; editing an entry in yellow, the slots you changed dotted */
.eb-nh > b.eb-newt { color: var(--ok); }
.eb-new.editing { border: 2px solid var(--edit); }
.eb-new.editing .eb-nh > b { color: var(--edit); }
.eb-slot.chg { border: 2px dotted var(--edit); }
.eb-tag { font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 3px; }
.eb-tag.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 15%, transparent); }
.eb-tag.ed { color: var(--edit); background: color-mix(in srgb, var(--edit) 15%, transparent); }
.eb-entry.editing { border-color: var(--edit); }
.eb-chg { margin: 0; font-size: 14px; } .eb-chg b { color: var(--edit); }
.eb-sl { font-family: var(--display); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--rc); } .eb-sl i { font-style: normal; color: var(--muted); font-size: 11px; }
.eb-empty { margin: auto; color: var(--muted); font-size: 13px; text-align: center; }
.eb-x { position: absolute; top: 4px; right: 4px; padding: 0 7px; font-size: 13px; line-height: 20px; }
.eb-bad { color: #e5484d; font-size: 12px; }
.eb-go { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .eb-adv { margin-left: auto; font-size: 13px; }
.eb-tray { position: sticky; bottom: 0; z-index: 7; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; background: color-mix(in srgb, var(--panel) 92%, #000); box-shadow: 0 -10px 30px rgba(0,0,0,.5); }
.eb-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.eb-filters input[type=search] { flex: 1 1 140px; min-width: 120px; background: var(--panel); color: var(--fg); border: 1px solid var(--line); padding: 6px 8px; font: inherit; font-size: 14px; }
.eb-filters select { background: var(--panel); color: var(--fg); border: 1px solid var(--line); padding: 6px; font: inherit; font-size: 13px; }
.eb-kinds { display: flex; gap: 4px; flex-wrap: wrap; } .eb-kinds button { font-size: 12px; padding: 5px 9px; } .eb-kinds button[aria-pressed="true"] { border-color: var(--flag); background: rgba(255,255,255,.08); }
.eb-fit { font-size: 13px; display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.eb-hint { font-size: 12px; color: var(--muted); flex-basis: 100%; } .eb-hint button { font-size: 12px; padding: 2px 8px; margin-left: 6px; }
.eb-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.eb-card { flex: 0 0 150px; scroll-snap-align: start; border: 1px solid var(--line); border-left: 4px solid var(--rc); border-radius: 6px; padding: 8px; display: flex; flex-direction: column; gap: 2px; background: #0d121b; cursor: grab; user-select: none; touch-action: pan-x; position: relative; }
.eb-slot .eb-card { flex: none; cursor: grab; }
.eb-card:hover { border-color: rgba(255,255,255,.45); border-left-color: var(--rc); }
.eb-card.busy { opacity: .45; cursor: not-allowed; } .eb-card.dragging { opacity: .3; }
.eb-ovr { font-family: var(--display); font-size: 24px; line-height: 1; color: var(--rr); }
.eb-nm { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .eb-card small { font-size: 11px; color: var(--muted); }
.eb-busy { color: #f2c94c !important; }
.eb-loan { align-self: flex-start; margin-top: 2px; padding: 0 6px; border-radius: 3px; background: rgba(10, 132, 255, .18); color: #64b5ff !important; font-weight: 700; }
.eb-loans { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; }
.eb-ln { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.eb-ln > span { flex: 1 1 260px; } .eb-ln small { color: var(--muted); flex: 1 1 260px; } .eb-ln button { font-size: 13px; padding: 5px 10px; }
.eb-slot.full .eb-sl { padding-right: 26px; }
@media (max-width: 640px) {
  .eb-tray { padding: 8px; gap: 6px; }
  .eb-filters { flex-wrap: nowrap; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .eb-filters input[type=search] { flex: 0 0 130px; min-width: 0; padding: 5px 6px; }
  .eb-kinds { flex-wrap: nowrap; } .eb-kinds button { white-space: nowrap; padding: 4px 8px; }
  .eb-fit { white-space: nowrap; font-size: 12px; } .eb-hint { display: none; }
  .eb-card { flex-basis: 128px; padding: 6px; } .eb-ovr { font-size: 20px; }
}
.eb-i { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; padding: 0; border-radius: 50%; font: italic 700 14px/20px Georgia, serif; text-transform: none; letter-spacing: 0; text-align: center; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.35); color: var(--fg); cursor: pointer; touch-action: manipulation; }
.eb-i:hover, .eb-i:focus-visible { border-color: var(--flag); color: var(--flag); }
.eb-card.busy .eb-i { cursor: pointer; }
.eb-card .eb-nm { padding-right: 20px; }
.eb-ghost .eb-i { display: none; }
.eb-ghost { position: fixed; z-index: 200; width: 150px; pointer-events: none; opacity: .92; transform: rotate(-3deg); box-shadow: 0 12px 30px rgba(0,0,0,.6); }
.as-diff { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; margin: 4px 0 10px; }
.as-diff .choice { display: flex; gap: 6px; flex-wrap: wrap; } .as-diff .choice button { padding: 6px 12px; font-size: 14px; } .as-diff small { opacity: .7; font-size: 11px; }
@media (max-width: 560px) { .as-diff { grid-template-columns: 1fr; } }
.ti { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255,255,255,.02); font-size: 13px; }
.ti-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px; align-items: center; }
.ti-l { font-family: var(--display); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ti-traits { display: flex; flex-wrap: wrap; gap: 4px 14px; } .ti-tr { display: inline-flex; align-items: center; gap: 6px; } .ti-tr b { font-size: 12px; }
.ti-bars { display: inline-flex; gap: 2px; } .ti-bars i { width: 6px; height: 10px; border-radius: 1px; background: rgba(255,255,255,.12); } .ti-bars i.on { background: #e8edf5; }
.ti-news { display: flex; flex-direction: column; gap: 2px; } .ti-ev small { color: var(--muted); margin-left: 4px; } .ti-ev.none { color: var(--muted); }
.ti-riv { display: flex; flex-wrap: wrap; gap: 4px 12px; } .ti-riv span { display: inline-flex; align-items: center; gap: 5px; } .ti-riv .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
@media (max-width: 560px) { .ti-row { grid-template-columns: 1fr; gap: 2px; } }
#guideTip { max-height: calc(100vh - 24px); overflow-y: auto; }
#guideTip .gt-ok { position: sticky; bottom: 0; }
#guideTip .gt-wait { display: inline-block; margin-top: 10px; padding: 6px 12px; border: 2px dashed #1a1300; border-radius: 4px; font-weight: 800; font-size: 14px; animation: guidePulse 1.4s ease-in-out infinite; }
#guideTip .gt-k { color: #a3131f; font-weight: 800; }
#guideTip .gt-lead { display: block; }
#guideTip .gt-rows { display: grid; grid-template-columns: fit-content(45%) 1fr; gap: 4px 10px; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(26, 19, 0, .2); font-size: 14px; font-weight: 600; line-height: 1.3; }
#guideTip .gt-row { display: contents; } #guideTip .gt-row b { color: #a3131f; } #guideTip .gt-row span { color: #1a1300; }
#fsSpeed { display: none; }
#trackBox:fullscreen #fsSpeed, #trackBox.fs #fsSpeed { display: flex; gap: 4px; position: absolute; top: 12px; left: 12px; z-index: 3; background: rgba(5, 8, 14, .82); border: 1px solid rgba(255,255,255,.15); border-radius: 8px; padding: 6px; }
#fsSpeed button { padding: 6px 10px; font-size: 13px; } #fsSpeed button[aria-pressed="true"] { background: #fff; color: #0b0d12; border-color: #fff; }
#fsSpeed .fs-end { border-color: var(--flag); }
#fsTower { display: none; }
#trackBox:fullscreen #fsTower, #trackBox.fs #fsTower { display: flex; flex-direction: column; position: absolute; top: 12px; right: 12px; z-index: 3; width: 210px; max-height: calc(100% - 90px); background: rgba(5, 8, 14, .82); border: 1px solid rgba(255,255,255,.15); border-radius: 8px; padding: 8px; font-size: 13px; }
#fsTower .fs-lap { font-family: var(--display); font-weight: 800; font-style: italic; font-size: 20px; text-transform: uppercase; padding: 2px 4px 6px; border-bottom: 1px solid rgba(255,255,255,.15); margin-bottom: 4px; }
#fsTower ol { list-style: none; margin: 0; padding: 0; overflow-y: auto; }
#fsTower li { display: grid; grid-template-columns: 20px 4px 1fr auto 46px; gap: 6px; align-items: center; padding: 2px 4px; border-radius: 3px; font-variant-numeric: tabular-nums; }
#fsTower li.me { background: rgba(255,255,255,.14); font-weight: 800; } #fsTower li.out { opacity: .45; }
#fsTower .p { color: var(--muted); text-align: right; } #fsTower li i { height: 12px; border-radius: 2px; }
#fsTower .n { font-weight: 700; } #fsTower .ty { border: 2px solid; border-radius: 50%; width: 16px; height: 16px; font-size: 10px; display: grid; place-items: center; font-weight: 800; }
#fsTower .pit { font-size: 10px; font-weight: 800; background: #f2c94c; color: #1a1300; padding: 0 4px; border-radius: 2px; }
#fsTower .g { text-align: right; color: var(--muted); font-size: 12px; }
@media (max-width: 640px) { #trackBox:fullscreen #fsTower, #trackBox.fs #fsTower { width: 150px; font-size: 11px; top: 8px; right: 8px; } #fsTower li { grid-template-columns: 16px 3px 1fr auto 38px; gap: 4px; } #fsTower .fs-lap { font-size: 15px; } }
.sc-stops { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; }
.sc-stops .sc-sn { font-family: var(--display); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.sc-stops .choice { display: flex; gap: 6px; flex-wrap: wrap; } .sc-stops .choice button { padding: 6px 10px; font-size: 13px; }
#guideRing { position: fixed; z-index: 90; pointer-events: none; border: 3px solid #f2c94c; border-radius: 8px; box-shadow: 0 0 0 9999px rgba(3, 5, 12, .55), 0 0 22px rgba(242, 201, 76, .7); animation: guidePulse 1.4s ease-in-out infinite; }
@keyframes guidePulse { 50% { box-shadow: 0 0 0 9999px rgba(3, 5, 12, .55), 0 0 6px rgba(242, 201, 76, .3); } }
#guideTip { position: fixed; z-index: 91; background: #f2c94c; color: #1a1300; padding: 12px 14px; border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
#guideTip p { margin: 6px 0 0; font-size: 16px; font-weight: 700; line-height: 1.35; }
#guideTip .gt-top { display: flex; align-items: center; gap: 8px; }
#guideTip small { flex: 1; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; opacity: .75; }
#guideTip button { all: unset; cursor: pointer; font-weight: 800; }
#guideTip .gt-ok { display: inline-block; margin-top: 10px; background: #1a1300; color: #f2c94c; padding: 6px 14px; border-radius: 4px; }

/* Speed traps in the "me" panel */
.tp { display: flex; flex-direction: column; gap: 6px; }
.tp-grid { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 6px; }
.tp-c { display: flex; flex-direction: column; gap: 3px; padding: 8px; background: rgba(181, 123, 255, .08); border: 1px solid rgba(181, 123, 255, .3); border-radius: 4px; min-width: 0; }
.tp-s { color: #c9a4ff; font-family: var(--display); font-size: 15px; } .tp-s small { color: var(--muted); font-weight: 500; font-size: 11px; }
.tp-v { font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; } .tp-v small { font-size: 11px; color: var(--muted); font-weight: 600; }
.tp-g { display: flex; justify-content: space-between; gap: 4px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tp-g small { color: var(--muted); font-weight: 500; }
.tp-up { color: #3fc79a; font-style: normal; } .tp-dn { color: #e5484d; font-style: normal; }

/* Credits in the Garage hero */
.home-cr { display: inline-flex; align-items: baseline; gap: 8px; margin-top: 12px; padding: 8px 14px; border: 1px solid rgba(242, 201, 76, .45); background: rgba(242, 201, 76, .08); border-radius: 4px; }
.home-cr .hc-ic { color: #f2c94c; font-size: 18px; align-self: center; }
.home-cr b { font-family: var(--display); font-size: 26px; font-style: italic; color: #f2c94c; font-variant-numeric: tabular-nums; line-height: 1; }
.home-cr small { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.home-cr.debt { border-color: rgba(229, 72, 77, .6); background: rgba(229, 72, 77, .1); }
.home-cr.debt .hc-ic, .home-cr.debt b, .home-cr.debt small { color: #e5484d; }
.badge.debt, .mis-wallet.debt { color: #e5484d; border-color: rgba(229, 72, 77, .6); }

/* Phones (3 nov 2026): the TV short names in the tower, the track from edge to edge, the builder tray in the flow */
.nm-tv { display: none; }
.pb-blk b { min-width: 0; } .pb-blk small { flex: none; white-space: nowrap; }   /* "Your plan": a stint's laps never get cut */
.pb-seg { min-width: 56px; }
@media (max-width: 760px) {
  .row .name .nm-full { display: none; }
  .row .name .nm-tv { display: inline; font-family: var(--display); font-weight: 700; letter-spacing: .02em; }
  #screen-live #trackBox:not(.fs) { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding: 6px 0; border-left: 0; border-right: 0; border-radius: 0; }
  .eb-tray { position: static; box-shadow: none; }   /* right under the slots: it never covers the builder */
}
