/* Schedule: a shared timeline (one row per slot, Oxford and London side by side) and per-race floor plans. */
.sch-line .sch-state { background: #FFF6D6; color: #7A5A00; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; padding: 3px 10px; border-radius: 99px; }
.sch-line b.warn { color: var(--warn); }
.sch-note { margin-left: auto; }
.sch { background: #fff; border-radius: var(--r-card, 14px); box-shadow: var(--shadow); overflow: hidden; }
.sch-head, .sch-row { display: grid; grid-template-columns: 64px minmax(200px, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: center; padding: 6px 16px; }
.sch-head { padding: 10px 16px; background: #FAFBFD; border-bottom: 1px solid var(--line); font: var(--t-label); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sch-head .ox { color: var(--blue); } .sch-head .ld { color: var(--purple); }
.sch-row { border-bottom: 1px solid #F0F2F7; }
.sch-row.relay { background: #FCFCFE; }
.sch-time { font: 700 14px Inter, sans-serif; font-variant-numeric: tabular-nums; }
.sch-slot b { display: block; font: var(--t-head); } .sch-slot small { display: block; font: var(--t-meta); color: var(--muted); }
.sch-race { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; text-align: left; font: inherit; color: inherit; cursor: pointer; min-width: 0; }
.sch-race b { font: 700 16px Inter, sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; } .sch-race b small { font-size: 11px; color: var(--muted); font-weight: 600; }
.sch-race span { font: var(--t-meta); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sch-race.ox { box-shadow: inset 3px 0 0 var(--blue); } .sch-race.ld { box-shadow: inset 3px 0 0 var(--purple); }
.sch-race:hover { background: #F7F9FD; }
.sch-race.ox.on { background: #EEF3FD; border-color: var(--blue); } .sch-race.ld.on { background: #F4EEFA; border-color: var(--purple); }
.sch-race.empty { border-style: dashed; color: #C4CAD6; justify-content: center; cursor: default; }
.sch-break { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 10px 16px; background: #FFF9E8; border-bottom: 1px solid #F3E7C2; font: var(--t-head); box-shadow: inset 3px 0 0 var(--gold, #F2B705); }
.sch-break .sch-time { font-weight: 700; }

/* floor plan: the room seen from the screen (compact FloorPlan, used in sheets). Matches the FloorStage illustration:
   a dark screen bar, quiet grey free ergs, venue-tinted used ergs with their number on a little monitor. */
.fp { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; --vc: var(--blue); --vt: #F1F5FD; --vl: #C9D6F3; }
.fp.ld { --vc: var(--purple); --vt: #F6F2FB; --vl: #DDCFEE; }
.fp-screen { position: relative; display: grid; place-items: center; margin: 0 24px 10px 42px; }
.fp-screen span { display: block; width: min(60%, 320px); padding: 3px 0; border-radius: 999px; background: var(--ink); color: #fff; text-align: center;
  font: var(--t-label); letter-spacing: .4em; text-transform: uppercase; box-shadow: 0 8px 18px -10px var(--vc); }
.fp-screen::after { content: ""; position: absolute; left: 10%; right: 10%; top: 100%; height: 14px; background: linear-gradient(var(--vt), transparent); border-radius: 0 0 50% 50%; z-index: -1; }
.fp-row { display: grid; grid-template-columns: 18px repeat(10, minmax(0, 1fr)); gap: 4px; align-items: stretch; }
.fp-rowlabel { font: var(--t-label); color: var(--muted); display: grid; place-items: center; }
.fp-erg { position: relative; min-height: 60px; border-radius: 10px; padding: 18px 4px 5px; background: #fff; border: 1px solid var(--line); text-align: center; overflow: hidden;
  box-shadow: 0 1px 0 rgba(27,36,64,.04); animation: m-arrive var(--mo-4) var(--e-settle) var(--d, 0s) both; transition: transform var(--mo-2) var(--e-settle), box-shadow var(--mo-2) var(--e-settle); }
.fp-erg.used { background: linear-gradient(180deg, var(--vt), #fff 80%); border-color: var(--vl); box-shadow: 0 1px 0 rgba(27,36,64,.04), 0 6px 12px -10px var(--vc); }
.fp-erg.used::before { content: ""; position: absolute; left: 50%; bottom: 3px; width: 26%; height: 3px; translate: -50% 0; border-radius: 2px; background: var(--vl); }
@media (hover: hover) { .fp-erg.used:hover { transform: translateY(-2px); box-shadow: var(--m-lift); } }
.fp-erg.prov { border-style: dashed !important; background: #fff; }
.fp-erg.empty { background: #FAFBFD; border-color: #E8ECF3; box-shadow: none; }
.fp-no { position: absolute; top: 3px; left: 50%; translate: -50% 0; min-width: 20px; padding: 0 4px; border-radius: 4px; background: #D5DAE4; color: #fff;
  font: 700 9.5px/13px Inter, sans-serif; font-variant-numeric: tabular-nums; }
.fp-erg.used .fp-no { background: var(--ink); color: color-mix(in srgb, var(--vc) 30%, #fff); }
.fp-ghost { display: block; width: 8px; height: 26px; margin: 2px auto 0; border-radius: 4px; border: 1px dashed #D5DAE4; }
.fp-erg b { display: block; font: 600 11px/1.2 Inter, sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-erg small { display: block; font: 400 10px/1.2 Inter, sans-serif; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-occ { display: block; }
/* seat editing */
.fp.editable .fp-erg.used { cursor: grab; } .fp.editable .fp-erg { user-select: none; -webkit-user-select: none; }
.fp.moving .fp-erg.target { cursor: copy; }
.fp-erg.picked { transform: translateY(-3px) scale(1.04); box-shadow: var(--m-held); z-index: 1; overflow: visible; }
.fp-erg.picked::after { content: ""; position: absolute; inset: -3px; border-radius: 12px; border: 2px solid var(--vc); pointer-events: none; animation: m-ring 1.8s var(--e-settle) infinite; --m-ring-to: 1.08; }
.fp-erg.target.empty { border: 1.5px dashed var(--gold, #F2B705); background: #FFFCF2; }
.fp-erg.target:hover, .fp-erg.target.over { border-color: var(--gold, #F2B705); border-style: solid; background: #FFF6D6; box-shadow: 0 0 0 3px rgba(242,183,5,.25); }
.fp-swap { position: absolute; left: 50%; bottom: 4px; translate: -50% 4px; padding: 1px 6px; border-radius: 999px; background: var(--ink); color: #fff; font: 700 9px/14px Inter, sans-serif;
  opacity: 0; transition: opacity var(--mo-2) var(--e-settle), translate var(--mo-2) var(--e-settle); pointer-events: none; }
.fp-erg.target:hover .fp-swap, .fp-erg.target.over .fp-swap { opacity: 1; translate: -50% 0; }
.fp-erg.moved { animation: m-land var(--mo-4) var(--e-weight) both; }
.fp-erg.moved .fp-occ { animation: m-word var(--mo-3) var(--e-settle) both; }
@media (max-width: 899px) { .fp .fp-erg { padding-top: 17px; min-height: 46px; } }
@media (prefers-reduced-motion: reduce) { .fp-erg, .fp-occ, .fp-erg::after, .fp-swap { animation: none !important; transition: none; } .fp-erg.picked { transform: none; } }
.fp-legend { font: var(--t-meta); color: var(--muted); } .fp-legend .k.prov { display: inline-block; width: 14px; height: 10px; border: 1px dashed var(--muted); border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.call-club { background: #FAFBFD; margin-top: 6px; }
/* the floor plan needs room: widen the sheet on desktop */
@media (min-width: 900px) { .drawer:has(.fp) { width: min(720px, calc(100vw - 32px)); } }

@media (max-width: 899px) {
  .sch-head { display: none; }
  .sch-row { grid-template-columns: 52px 1fr; grid-template-areas: "time slot" ". ox" ". ld"; row-gap: 6px; padding: 10px 12px; }
  .sch-row .sch-time { grid-area: time; } .sch-row .sch-slot { grid-area: slot; }
  .sch-row > .sch-race:nth-of-type(1) { grid-area: ox; } .sch-row > .sch-race:nth-of-type(2), .sch-row > span.sch-race:last-child { grid-area: ld; }
  .fp-erg { min-height: 44px; padding-top: 12px; } .fp-erg small { display: none; }
}

/* ===== Floor: the room as an illustration ===== */
.emap.floor .vstrip { grid-template-columns: 1fr 1fr; }
.emap.floor .vtile .vtile-head { min-height: 58px; }
.fl-time { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: #fff; }
.fl-chips { display: flex; gap: 6px; overflow-x: auto; scroll-behavior: smooth; flex: 1; padding: 2px; scrollbar-width: thin; }
.fl-chip { flex: none; display: flex; flex-direction: column; align-items: center; min-width: 64px; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; font: inherit; }
.fl-chip b { font: 700 13px Inter, sans-serif; font-variant-numeric: tabular-nums; } .fl-chip small { font: var(--t-meta); font-size: 11px; color: var(--muted); white-space: nowrap; }
.fl-chip.relay { background: #FCFBF4; }
.fl-chip:hover { background: #F7F9FD; }
.emap.floor .fl-chip.on { color: #fff; border-color: transparent; }
.fl-stage { padding: 8px 12px 120px; background: radial-gradient(120% 90% at 50% 0%, #F7F9FE 0%, #E9EEF8 100%); }
/* the room (FloorStage). Resting styles are the end state; motion.css keyframes only say where things come from,
   so reduced motion (bottom) simply switches the animations off. */
.fs { display: block; width: 100%; height: auto; max-height: calc(100vh - 330px); overflow: visible; animation: m-rise var(--mo-5) var(--e-float) both; }
.fs-floor-a { stop-color: #FFFFFF; } .fs-floor-b { stop-color: #F1F4FA; }
.fs-room { stroke: #DCE2EE; stroke-width: 1; filter: drop-shadow(0 10px 24px rgba(18,71,188,.08)); }
.fs.ox .fs-beam-a { stop-color: #1247BC; stop-opacity: .10; } .fs.ld .fs-beam-a { stop-color: #6B3FA0; stop-opacity: .10; }
.fs-beam-b { stop-color: #fff; stop-opacity: 0; }
.fs-beam { animation: m-fade 1.2s var(--e-settle) .25s both; }
.fs-screen { fill: var(--ink); } .fs.ox .fs-screen { fill: #0E2C70; } .fs.ld .fs-screen { fill: #3E2563; }
.fs-screen-t { fill: #fff; font: 700 9px Inter, sans-serif; letter-spacing: .4em; }
.fs-mat { fill: rgba(255,255,255,.75); stroke: #E4E9F2; stroke-width: 1; animation: m-arrive var(--mo-4) var(--e-settle) both; animation-delay: calc(var(--r) * 70ms + 120ms); }
.fs-row { font: 800 16px Inter, sans-serif; fill: #B4BDD0; }
.fs.ox .fs-row { fill: #9DB1DE; } .fs.ld .fs-row { fill: #B9A3D6; }

/* one erg: a Concept2 RowErg from above. Free = a quiet grey sketch of the machine; used = the real thing: dark
   fan cage and footrests, the damper cover disc and seat in the event colour (--c, tinted with fill-opacity),
   aluminium monorail, the erg number on the PM5's LCD. */
.erg { cursor: default; --c: #8A94AD; }
.erg.used { cursor: pointer; }
.erg-hit { fill: transparent; }
.erg-shadow { fill: #1B2440; opacity: .07; filter: blur(3px); }
.erg-shadow { transition: opacity var(--mo-2) var(--e-settle), translate var(--mo-2) var(--e-settle); }
.fs-alu-a { stop-color: #D9DEE7; } .fs-alu-b { stop-color: #FBFCFE; } .fs-alu-c { stop-color: #CBD2DE; }
.erg-stab { fill: #E3E7EE; stroke: #CDD3DF; stroke-width: 1; }
.erg-feet { stroke: #C3CAD7; stroke-width: 3; stroke-linecap: round; }
.erg-rail { stroke: #CDD3DF; stroke-width: 1; }
.erg-rail-hi { stroke: #fff; stroke-width: 1; stroke-linecap: round; opacity: .9; }
.erg-foot { fill: #EEF0F5; stroke: #CDD3DF; stroke-width: 1.1; stroke-linejoin: round; }
.erg-strap { stroke: #CDD3DF; stroke-width: 2.2; stroke-linecap: round; }
.erg-heel { stroke: #D9DEE7; stroke-width: 1.4; stroke-linecap: round; }
.erg-house { fill: #DCE0E8; stroke: #C6CDDA; stroke-width: 1.4; }
.erg-fly { fill: #EEF0F5; stroke: #C9CFDB; stroke-width: 1.1; }
.erg-vent { stroke: #C3CAD7; stroke-width: 1.4; stroke-linecap: round; }
.erg-hub { fill: #C9CFDB; }
.erg-handle { stroke: #C9CFDB; stroke-width: 2.4; stroke-linecap: round; }
.erg-grip { stroke: #BCC3D1; stroke-width: 3.4; stroke-linecap: round; }
.erg-seat { fill: #D5DAE4; }
.erg-arm { stroke: #C3CAD7; stroke-width: 3; stroke-linecap: round; }
.erg-mon { fill: #C9CFDB; }
.erg-lcd { fill: #E6E9EF; }
.erg-no { font: 800 7.6px Inter, sans-serif; fill: #9AA3B6; font-variant-numeric: tabular-nums; }
.erg-name { font: 600 11px Inter, sans-serif; fill: var(--ink); }
.erg-club { font: 600 9.5px Inter, sans-serif; fill: var(--muted); letter-spacing: .08em; }
/* free ergs: settle a few px into place, a beat after the wave passes */
.erg.free .erg-lift { animation: m-arrive var(--mo-4) var(--e-settle) both; animation-delay: calc(var(--d) + 80ms); }
.erg.free .erg-shadow { opacity: .035; }

.erg.used .erg-shadow { opacity: .12; }
.erg.used .erg-stab { fill: #3A4157; stroke: #2A3042; }
.erg.used .erg-feet { stroke: #1E2333; }
.erg.used .erg-rail { stroke: color-mix(in srgb, var(--c) 25%, #A9B2C3); stroke-width: 1.2; stroke-dasharray: 1; }
.erg.used .erg-foot { fill: #3A4157; stroke: var(--c); stroke-width: 1.2; stroke-dasharray: 1; }
.erg.used .erg-strap { stroke: var(--c); stroke-width: 2.6; }
.erg.used .erg-heel { stroke: #5B6380; }
.erg.used .erg-house { fill: #2E3447; stroke: var(--c); stroke-width: 2.2; stroke-dasharray: 1; }
.erg.used .erg-fly { fill: var(--c); fill-opacity: .55; stroke: var(--c); stroke-width: 1.4; stroke-dasharray: 1; }
.erg.used .erg-vent { stroke: #8D96AE; }
.erg.used .erg-hub { fill: #fff; fill-opacity: .85; }
.erg.used .erg-seat { fill: var(--c); stroke: #2E3447; stroke-width: 1; stroke-opacity: .35; }
.erg.used .erg-seat-hi { stroke: #fff; stroke-opacity: .55; stroke-width: 1.2; stroke-linecap: round; }
.erg.used .erg-handle { stroke: #6E7790; stroke-width: 2.6; }
.erg.used .erg-grip { stroke: #1E2333; }
.erg.used .erg-arm { stroke: #1E2333; }
.erg.used .erg-mon { fill: #1E2333; }
.erg.used .erg-lcd { fill: #DCE6D8; }
.erg.used .erg-no { fill: #1B2440; }
/* the staged arrival, per erg: outline draws → colour washes in → seat slides up the rail → name is written in */
.erg.used .erg-house { animation: m-draw var(--mo-5) var(--e-ink) var(--d) both, erg-wash var(--mo-4) var(--e-settle) calc(var(--d) + .5s) both; }
.erg.used .erg-fly { animation: m-draw var(--mo-4) var(--e-ink) calc(var(--d) + .2s) both, m-fill var(--mo-4) var(--e-settle) calc(var(--d) + .55s) both; }
.erg.used .erg-rail { animation: m-draw var(--mo-4) var(--e-ink) calc(var(--d) + .25s) both; }
.erg.used .erg-foot { animation: m-draw var(--mo-4) var(--e-ink) calc(var(--d) + .3s) both, erg-wash var(--mo-4) var(--e-settle) calc(var(--d) + .5s) both; }
.erg.used .erg-seat { --m-from: 30px; animation: m-slide var(--mo-4) var(--e-weight) calc(var(--d) + .45s) both; }
.erg.used .erg-handle, .erg.used .erg-grip, .erg.used .erg-strap, .erg.used .erg-seat-hi { animation: m-fade var(--mo-3) var(--e-settle) calc(var(--d) + .5s) both; }
.erg.used .erg-mon, .erg.used .erg-arm { animation: erg-mon var(--mo-4) var(--e-settle) calc(var(--d) + .1s) both; }
.erg.used .erg-label { animation: m-arrive var(--mo-3) var(--e-settle) calc(var(--d) + .6s) both; }
.erg.used .erg-name tspan { animation: erg-word var(--mo-3) var(--e-settle) both; animation-delay: calc(var(--d) + .6s + var(--w, 0) * 70ms); }
.erg.used .erg-club { animation: erg-word var(--mo-3) var(--e-settle) calc(var(--d) + .75s) both; }
@keyframes erg-wash { from { fill: #DCE0E8; } }
@keyframes erg-mon  { from { fill: #C9CFDB; stroke: #C3CAD7; } }
@keyframes erg-word { from { fill-opacity: 0; } }
/* provisional (club not placed yet): sketched outline, no draw-in, the colour held back */
.erg.used.prov .erg-house, .erg.used.prov .erg-rail, .erg.used.prov .erg-foot { stroke-dasharray: .035 .025; stroke-width: 2; animation: erg-wash var(--mo-4) var(--e-settle) var(--d) both; }
.erg.used.prov .erg-rail { stroke: var(--c); stroke-width: 1.4; animation: none; }
.erg.used.prov .erg-house, .erg.used.prov .erg-foot { fill-opacity: .7; }
.erg.used.prov .erg-fly { fill-opacity: .3; }
.erg.used.prov .erg-seat { fill-opacity: .6; stroke: var(--c); stroke-opacity: 1; stroke-dasharray: 3 2; }
/* hover lifts the machine off its shadow; selection rings it */
@media (hover: hover) { .erg.used:hover .erg-lift { translate: 0 -3px; } .erg.used:hover .erg-shadow { opacity: .16; } }
.erg-ring { fill: none; stroke: var(--c); stroke-width: 2.5; }
.erg-ring.pulse { stroke-width: 2; transform-box: fill-box; transform-origin: center; --m-ring-to: 1.08; animation: m-ring 1.8s var(--e-settle) infinite; }
.erg.sel .erg-shadow { opacity: .18; } .erg.sel .erg-name { font-weight: 800; }
/* live: a slow breath on every used erg, rippling with the wave delay */
.erg-live { fill: color-mix(in srgb, var(--c) 6%, transparent); stroke: var(--c); stroke-width: 1; stroke-opacity: .5; opacity: .5; animation: m-breathe 2.8s ease-in-out infinite; animation-delay: var(--d); }
/* badge: stamped above the erg once it has arrived */
.erg-badge { --m-rot: -4deg; transform: rotate(var(--m-rot)); transform-box: fill-box; transform-origin: center; animation: m-stamp var(--mo-3) var(--e-weight) calc(var(--d) + .9s) both; }
.erg-badge rect { fill: #fff; stroke: var(--ink); stroke-width: 1.6; filter: drop-shadow(0 2px 3px rgba(27,36,64,.18)); }
.erg-badge text { font: 800 9px Inter, sans-serif; fill: var(--ink); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.erg-badge.p1 rect { fill: #FFF6D6; stroke: var(--gold-deep, #C98F00); } .erg-badge.p1 text { fill: #6B4C00; }
.erg-badge.p2 rect { fill: #F1F3F7; stroke: #8A94AD; } .erg-badge.p2 text { fill: #3D4560; }
.erg-badge.p3 rect { fill: #FBEDE2; stroke: #B0703A; } .erg-badge.p3 text { fill: #6E3D14; }
/* seat editing (Editable): used ergs can be picked up; while one is lifted every other erg is a drop target */
.fs.editable { user-select: none; -webkit-user-select: none; }
.fs.editable .erg.used { cursor: grab; }
.fs.moving .erg.target, .fs.carrying .erg { cursor: copy; } .fs.moving .erg.target.used { cursor: alias; }
.erg-lift { transform-box: fill-box; transform-origin: 50% 60%; transition: translate var(--mo-2) var(--e-settle), scale var(--mo-2) var(--e-settle); }
.erg.picked .erg-lift { translate: 0 -5px; scale: 1.05; }
.erg.picked .erg-shadow { opacity: .22; translate: 2px 6px; }
.erg.picked .erg-label { translate: 0 2px; }
.fs.moving .erg.target:not(:hover):not(.over) .erg-lift { opacity: .92; }
.erg-target { fill: rgba(242,183,5,.05); stroke: var(--gold, #F2B705); stroke-width: 1.6; stroke-dasharray: 5 4; opacity: .7;
  transition: fill var(--mo-1), opacity var(--mo-1), stroke-width var(--mo-1); animation: m-fade var(--mo-3) var(--e-settle) both; }
.erg.target.used .erg-target { stroke: color-mix(in srgb, var(--gold, #F2B705) 60%, var(--c)); opacity: .45; }
/* drag-over / hover highlight */
.erg.target:hover .erg-target, .erg.target.over .erg-target { fill: rgba(242,183,5,.16); stroke-dasharray: none; stroke-width: 2.4; opacity: 1; }
.erg.target.free:hover .erg-seat, .erg.target.free.over .erg-seat { fill: var(--gold, #F2B705); }
/* used targets: a swap hint on hover */
.erg-swap { opacity: 0; transform-box: fill-box; transform-origin: center; scale: .8; transition: opacity var(--mo-2) var(--e-settle), scale var(--mo-2) var(--e-weight); pointer-events: none; }
.erg-swap rect { fill: var(--ink); } .erg-swap text { font: 700 9px Inter, sans-serif; fill: #fff; letter-spacing: .04em; }
.erg.target:hover .erg-swap, .erg.target.over .erg-swap { opacity: 1; scale: 1; }
/* seat changes within a race: the new occupant settles quickly (no wave delay) */
.erg.moved .erg-house, .erg.moved .erg-fly, .erg.moved .erg-rail, .erg.moved .erg-foot { animation-delay: 0s !important; animation-duration: var(--mo-3) !important; }
.erg.moved .erg-seat { animation-delay: 60ms !important; animation-duration: var(--mo-3) !important; }
.erg.moved .erg-handle, .erg.moved .erg-grip, .erg.moved .erg-seat-hi, .erg.moved .erg-strap, .erg.moved .erg-mon, .erg.moved .erg-arm, .erg.moved .erg-label, .erg.moved .erg-club { animation-delay: 80ms !important; animation-duration: var(--mo-2) !important; }
.erg.moved .erg-name tspan { animation-delay: calc(100ms + var(--w, 0) * 50ms) !important; animation-duration: var(--mo-2) !important; }
.erg.moved .erg-occ { animation: erg-settle var(--mo-3) var(--e-weight) both; transform-box: fill-box; transform-origin: center; }
.erg.moved.free .erg-lift { animation-delay: 0s; }
@keyframes erg-settle { from { transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) {
  .fs, .fs *, .fs tspan { animation: none !important; transition: none !important; }
  .erg-lift, .erg-swap, .erg-shadow { transition: none !important; }
  .erg.picked .erg-lift { scale: 1; }
  .erg-ring.pulse { display: none; }
}

.fl-sum b { display: block; font: var(--t-head); } .fl-sum small { display: block; font: var(--t-meta); color: var(--muted); }
.fl-legend { display: flex; gap: 12px; flex-wrap: wrap; font: var(--t-meta); color: var(--ink); margin-left: auto; }
.fl-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.fl-legend b { margin-left: 3px; font-variant-numeric: tabular-nums; }
.fl-dot { width: 40px; height: 40px; border-radius: 12px; flex: none; }
@media (max-width: 899px) { .fl-stage { padding-bottom: 12px; } .fs { max-height: none; } }
.emap.floor .fl-chip.on { background: var(--ink); } .fl-time:has(+ .fl-stage .fs.ox) .fl-chip.on { background: var(--blue); } .fl-time:has(+ .fl-stage .fs.ld) .fl-chip.on { background: var(--purple); } .emap.floor .fl-chip.on small { color: rgba(255,255,255,.8); }

/* Publish + results */
.sch-acts { margin-left: auto; display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sch-line .sch-state.pub { background: #E6F4EA; color: #1E6B34; }
.sch-print summary { width: auto; height: auto; border-radius: 99px; box-shadow: none; letter-spacing: 0; font-weight: 600; }
.sch-print .admin-menu { min-width: 240px; }
.sch-confirm { display: grid; gap: 10px; margin: 0 0 12px; }
.sch-confirm p { margin: 0; }
.sch-confirm-acts { display: flex; gap: 8px; justify-content: flex-end; }
.sch-done { font-style: normal; font: 700 12px Inter, sans-serif; color: #1E6B34; background: #E6F4EA; border-radius: 99px; padding: 1px 7px; }
.fl-chip.done { box-shadow: inset 0 -3px 0 #34A853; }
.rr-hint { font: var(--t-meta); color: var(--muted); margin: 0 0 8px; }
.rr-list .rr-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 112px; align-items: center; gap: 10px; }
.rr-input { min-height: 38px; padding: 6px 10px; font-variant-numeric: tabular-nums; text-align: right; }
.rr-row.bad .rr-input { border-color: var(--err); }
.rr-err { color: var(--err) !important; }
.rr-place { display: grid; justify-items: end; min-width: 52px; }
.rr-place b, .rr-pl { font: 700 13px Inter, sans-serif; font-variant-numeric: tabular-nums; }
.rr-place small { font: var(--t-label); color: var(--muted); }
.rr-place .p1, .rr-pl.p1 { color: #8A6A00; } .rr-place .p2, .rr-pl.p2 { color: #5F6B7A; } .rr-place .p3, .rr-pl.p3 { color: #8B5A2B; }
.rr-st { color: var(--muted); }
.rr-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; margin-top: 12px; }
.rr-import { flex: 1 1 100%; }
.rr-import > summary { list-style: none; display: inline-flex; cursor: pointer; }
.rr-import > summary::-webkit-details-marker { display: none; }
.rr-import[open] { display: grid; gap: 8px; }
.rr-import-acts { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.rr-day { display: grid; gap: 10px; margin-bottom: 12px; }
.rr-day p { margin: 0; }
.rr-errs { margin: 0; padding-left: 18px; color: var(--err); font: var(--t-meta); }
.rr-table { width: 100%; border-collapse: collapse; font: var(--t-body); }
.rr-table th { text-align: left; font: var(--t-label); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.rr-table td { padding: 8px; border-bottom: 1px solid #F0F2F7; }
.rr-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.rr-mine .ml-lead { font-weight: 700; color: #8A6A00; }
@media (max-width: 640px) {
  .rr-list .rr-row { grid-template-columns: auto minmax(0, 1fr) 96px; }
  .rr-list .rr-place { grid-column: 2; justify-items: start; grid-row: 2; }
  .rr-table th:nth-child(3), .rr-table td:nth-child(3), .rr-table th:nth-child(5), .rr-table td:nth-child(5) { display: none; }
}

/* Schedule check: every paid athlete seated, rules kept */
.sch-check { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; margin: 0 0 12px; font: var(--t-body); }
.sch-check.ok { background: #E6F4EA; color: #1E6B34; }
.sch-check.bad { background: var(--err-bg); color: var(--err); }
.sch-check-head { flex: 1; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.sch-check-head i { font-style: normal; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: currentColor; }
.sch-check-head i { color: inherit; }
.sch-check.ok .sch-check-head i { background: #1E6B34; color: #fff; } .sch-check.bad .sch-check-head i { background: var(--err); color: #fff; }
.sch-issues { margin: 0 0 12px; }
.sch-issues .ml-item { display: flex; align-items: center; gap: 8px; }
/* Floor editing */
.fl-edit { display: grid; gap: 8px; padding: 8px 12px; background: #FFFBEA; border-bottom: 1px solid #F3E7C2; }
.fl-edit-msg { font: var(--t-meta); color: #6B5200; }
.fl-edit.moving { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fl-edit.moving .fl-edit-msg { flex: 1; }
.fl-bench { display: flex; gap: 6px; overflow-x: auto; align-items: center; flex: 1 1 100%; padding: 2px; }
.fl-bench.empty { justify-content: center; border: 1.5px dashed var(--gold, #F2B705); border-radius: 10px; min-height: 44px; font: var(--t-meta); color: #6B5200; cursor: pointer; }
.fl-bench-label { font: var(--t-label); text-transform: uppercase; letter-spacing: .08em; color: var(--err); white-space: nowrap; }
.fl-bench-seat { flex: none; display: grid; text-align: left; padding: 6px 10px; border-radius: 10px; border: 1.5px dashed var(--err); background: #fff; cursor: grab; font: inherit; }
.fl-bench-seat b { font: 600 13px Inter, sans-serif; } .fl-bench-seat small { font: var(--t-meta); font-size: 11px; color: var(--muted); }
.fl-bench-seat.on { border-style: solid; border-color: var(--gold, #F2B705); box-shadow: 0 0 0 3px rgba(242,183,5,.3); }
.fl-chip.fits { border-color: var(--gold, #F2B705); box-shadow: 0 0 0 2px rgba(242,183,5,.35); }
.fl-moves { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }

/* Floor v3: chips with categories, legend on top, edit toggle on the plan, side tray, pointer drag */
.emap.floor.v-ox .fl-chip.on { background: var(--blue); } .emap.floor.v-ld .fl-chip.on { background: var(--purple); }
.fl-chip { min-width: 92px; padding: 8px 10px; gap: 1px; }
.fl-chip b { font-size: 15px; }
.fl-chip-cat { font: 700 12px Inter, sans-serif; color: var(--ink); white-space: nowrap; }
.emap.floor .fl-chip.on .fl-chip-cat { color: #fff; }
.fl-chip.drag-over { outline: 3px solid var(--gold, #F2B705); outline-offset: 1px; transform: translateY(-2px); }
.fl-body { display: flex; align-items: stretch; min-height: 0; }
.fl-body > .fl-stage { flex: 1; min-width: 0; padding-bottom: 16px; }
.fl-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 6px 2px 10px; }
.fl-top .fl-legend { margin-left: 0; flex: 1; }
.fl-tools { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.fl-edit-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; font: 600 14px Inter, sans-serif; color: var(--ink); cursor: pointer; box-shadow: 0 1px 3px rgba(27,36,64,.1); transition: background .15s, color .15s, border-color .15s; }
.fl-edit-toggle i { font-style: normal; font-size: 16px; }
.fl-edit-toggle:hover { border-color: var(--gold, #F2B705); }
.fl-edit-toggle.on { background: var(--gold, #F2B705); border-color: var(--gold, #F2B705); color: #1B2440; }
/* Edit mode reads at a glance: a gold frame round the room */
.emap.floor.editing .fl-stage { box-shadow: inset 0 0 0 3px var(--gold, #F2B705); }
.fl-hint { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; padding: 8px 12px; border-radius: 10px; background: #FFF8DC; color: #6B5200; font: var(--t-meta); }
.fl-hint span { flex: 1; }
.fl-hint.carrying { background: var(--gold, #F2B705); color: #1B2440; }
.emap.floor.editing [data-seat] { touch-action: none; cursor: grab; }
body.fl-dragging, body.fl-dragging * { cursor: grabbing !important; user-select: none; }
.fl-ghost { position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none; padding: 6px 12px; border-radius: 99px; background: #1B2440; color: #fff; font: 600 13px Inter, sans-serif; box-shadow: 0 8px 24px rgba(27,36,64,.3); white-space: nowrap; }
/* "Not seated" tray: on the left edge, outside the floor plan */
.fl-tray { flex: none; width: 232px; display: flex; flex-direction: column; gap: 6px; padding: 10px; background: #FFFBEA; border-right: 1px solid #F3E7C2; overflow-y: auto; max-height: 820px; transition: background .15s; }
.fl-tray.drag-over { background: #FFF1B8; box-shadow: inset 0 0 0 3px var(--gold, #F2B705); }
.fl-tray-head { display: flex; align-items: center; gap: 8px; }
.fl-tray-head b { font: var(--t-head); }
.fl-tray-head .mbtn { margin-left: auto; }
.fl-tray-empty { margin: 0; padding: 18px 8px; border: 1.5px dashed #E9D27A; border-radius: 10px; font: var(--t-meta); color: #6B5200; text-align: center; }
.fl-tray-seat { display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 10px; background: #fff; border: 1.5px dashed var(--err); }
.fl-tray-seat.on { border-style: solid; border-color: var(--gold, #F2B705); box-shadow: 0 0 0 3px rgba(242,183,5,.3); }
.fl-tray-pick { flex: 1; min-width: 0; display: grid; text-align: left; border: 0; background: none; padding: 2px 4px; font: inherit; cursor: grab; }
.fl-tray-pick b { font: 600 13px Inter, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-tray-pick small { font: var(--t-meta); font-size: 11px; color: var(--muted); }
.emap.floor [data-erg].drag-over { filter: drop-shadow(0 0 6px rgba(242,183,5,.9)); }
@media (max-width: 899px) {
  .fl-body { flex-direction: column; }
  .fl-tray { width: auto; max-height: 220px; border-right: 0; border-bottom: 1px solid #F3E7C2; }
  .fl-tools { margin-left: 0; width: 100%; justify-content: flex-end; }
}
