/* =============================================================================
   LoomPilot wave 2 · LIVE FLOOR (x-floor): a control room over a Sanganer courtyard.
   All classes and ids are prefixed fl-. Uses the site tokens for both modes.
   ============================================================================= */

/* ---------------------------------------------------------------- floor palette (per mode) */
.fl-console {
    --fl-ground: #0c1430; --fl-tile-l: rgba(243, 234, 216, .045); --fl-tile-m: rgba(217, 162, 27, .09);
    --fl-pad: rgba(24, 36, 80, .86); --fl-pad-l: rgba(243, 234, 216, .14); --fl-sh: rgba(0, 0, 0, .42);
    --fl-text: #f3ead8; --fl-mute: rgba(243, 234, 216, .58); --fl-lane: rgba(217, 162, 27, .1); --fl-lane-e: rgba(243, 234, 216, .1);
    --fl-wood: #8a5a3c; --fl-wood-top: #a8764f; --fl-wood-d: #5e3c25; --fl-paper: #f6efdf; --fl-kraft: #c4935c; --fl-kraft-d: #9c6f3f;
    --fl-metal: #cfd5e2; --fl-metal-d: #7d8599; --fl-leaf: #2d5a3b; --fl-leaf-b: #3e7650; --fl-road: rgba(0, 0, 0, .28);
    --fl-hold: #e8b23a;
}
html[data-mode="retail"] .fl-console {
    --fl-ground: #e9dcc1; --fl-tile-l: rgba(120, 80, 40, .09); --fl-tile-m: rgba(168, 50, 42, .1);
    --fl-pad: rgba(255, 250, 241, .82); --fl-pad-l: rgba(29, 31, 39, .14); --fl-sh: rgba(90, 55, 20, .2);
    --fl-text: #1d1f27; --fl-mute: rgba(29, 31, 39, .55); --fl-lane: rgba(168, 50, 42, .08); --fl-lane-e: rgba(29, 31, 39, .1);
    --fl-leaf: #4f7d4a; --fl-leaf-b: #6a9a5c; --fl-road: rgba(90, 60, 30, .16);
    --fl-hold: #c48a12;
}

/* ---------------------------------------------------------------- page head */
.fl-head .kick .live-dot { margin-right: 2px; }
.fl-h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); margin: 0 0 .35em; }

/* ---------------------------------------------------------------- console frame (control room) */
.fl-floor-sec { padding: clamp(14px, 2vw, 26px) 0 clamp(34px, 5vw, 64px); }
.fl-console { position: relative; isolation: isolate; border-radius: 28px; padding: 14px; border: 1px solid var(--line2);
    background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 60%), linear-gradient(180deg, var(--bg2), var(--bg));
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .06); }
.fl-console::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background-color: var(--accent); opacity: .035; -webkit-mask: var(--jaal) 0 0 / 90px 90px repeat; mask: var(--jaal) 0 0 / 90px 90px repeat; }
.fl-corner { position: absolute; width: 22px; height: 22px; border: 2px solid var(--accent); pointer-events: none; opacity: .75; }
.fl-corner.tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: 28px; }
.fl-corner.tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; border-top-right-radius: 28px; }
.fl-corner.bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; border-bottom-left-radius: 28px; }
.fl-corner.br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: 28px; }

.fl-hud { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; padding: 4px 6px 12px; font: 700 12px/1.3 var(--f-ui); letter-spacing: .06em; }
.fl-hud-l { display: flex; align-items: center; gap: 9px; text-transform: uppercase; letter-spacing: .14em; font-size: 11.5px; color: var(--muted); }
.fl-hud-l b { color: var(--text); letter-spacing: .2em; }
.fl-rec { width: 9px; height: 9px; border-radius: 50%; background: #e0605a; box-shadow: 0 0 0 0 rgba(224, 96, 90, .6); animation: fl-rec 1.8s infinite; }
@keyframes fl-rec { 60% { box-shadow: 0 0 0 7px rgba(224, 96, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(224, 96, 90, 0); } }
.fl-hud-sep { width: 1px; height: 14px; background: var(--line2); }
.fl-hud-c { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 600; letter-spacing: .02em; color: var(--muted); min-width: 0; }
.fl-clk { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line2); background: var(--surface); color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fl-clk b { color: var(--accent); font-weight: 800; }
.fl-clk-s i { color: var(--accent); margin-right: 3px; }
.fl-clk-s small { opacity: .8; }
.fl-hud-r { display: flex; align-items: center; gap: 8px; }
.fl-phase { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line2); background: var(--surface); }
.fl-phase button { border: 0; background: none; color: var(--muted); font: 700 12px var(--f-ui); min-width: 34px; height: 30px; padding: 0 10px; border-radius: 999px; cursor: pointer; transition: background-color .25s, color .25s; }
.fl-phase button:hover { color: var(--text); }
.fl-phase button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.fl-pause { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2); background: var(--surface); color: var(--text); font: 700 12px var(--f-ui); cursor: pointer; }
.fl-pause:hover { border-color: var(--accent); color: var(--accent); }

.fl-stage { position: relative; border-radius: 20px; overflow: hidden; background: var(--fl-ground); box-shadow: inset 0 0 0 1px var(--line), inset 0 0 60px rgba(0, 0, 0, .25); }
.fl-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(180deg, rgba(255, 255, 255, .05), transparent 30%), repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, .012) 3px 4px); }
html[data-mode="retail"] .fl-stage::after { background: linear-gradient(180deg, rgba(255, 255, 255, .25), transparent 30%); }
.fl-svg { display: block; width: 100%; height: auto; font-family: var(--f-ui); -webkit-user-select: none; user-select: none; }
.fl-stage[data-layout="tall"] .fl-svg { max-width: 560px; margin: 0 auto; }

/* ---------------------------------------------------------------- floor: ground, lane, pads, plates */
.fl-ground { fill: var(--fl-ground); }
.fl-tile-l { fill: none; stroke: var(--fl-tile-l); stroke-width: 1; }
.fl-tile-m { fill: var(--fl-tile-m); }
.fl-border { fill: none; stroke: var(--fl-pad-l); stroke-width: 1; stroke-dasharray: 2 6; }
.fl-lane-bed { fill: none; stroke: var(--fl-lane); stroke-width: 22; stroke-linecap: round; stroke-linejoin: round; }
.fl-lane-edge { fill: none; stroke: var(--fl-lane-e); stroke-width: 24; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 5; opacity: .9; }
.fl-lane-thread { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 5 7; opacity: .8; animation: fl-dash 1.4s linear infinite; }
@keyframes fl-dash { to { stroke-dashoffset: -24; } }
.fl-node { fill: var(--k, var(--accent)); stroke: var(--fl-ground); stroke-width: 2; }
.fl-sh { fill: var(--fl-sh); transition: opacity 1.2s; }
.fl-sh2 { fill: rgba(0, 0, 0, .28); }
.fl-pad { fill: var(--fl-pad); stroke: var(--fl-pad-l); stroke-width: 1; }
.fl-st { cursor: pointer; outline: none; }
.fl-st:focus-visible { outline: none; }
.fl-st .fl-pad { transition: stroke .3s, fill .3s; }
.fl-st:hover .fl-pad { stroke: var(--k); }
.fl-kbar { fill: var(--k, var(--accent)); }
.fl-lb { font: 800 10px/1 var(--f-ui); letter-spacing: .12em; fill: var(--fl-text); }
.fl-dv { font: 400 15px/1 var(--f-deva); fill: var(--accent); opacity: .9; }
.fl-hl { fill: none; stroke: var(--k, var(--accent)); stroke-width: 2.2; stroke-dasharray: 7 5; opacity: 0; transition: opacity .25s; pointer-events: none; }
.fl-hl.on { opacity: 1; animation: fl-dash 1.2s linear infinite; filter: drop-shadow(0 0 6px var(--k)); }

/* ---------------------------------------------------------------- floor: materials */
.fl-wood { fill: var(--fl-wood-d); }
.fl-wood-top { fill: var(--fl-wood); }
.fl-wood-d { fill: var(--fl-wood-d); }
.fl-paper { fill: var(--fl-paper); }
.fl-chalk { fill: none; stroke: #4a6fa5; stroke-width: .5; stroke-dasharray: 1.2 1; vector-effect: non-scaling-stroke; }
.fl-chalk { stroke-width: 1; }
.fl-chalk.thin { stroke-width: .8; stroke: #b5652d; }
.fl-pin { fill: #e0605a; } .fl-pin.b { fill: #8fb3d1; }
.fl-seal { transform-box: fill-box; transform-origin: center; animation: fl-seal 6s ease-in-out infinite; }
.fl-seal-c { fill: rgba(95, 143, 90, .18); stroke: #5f8f5a; stroke-width: 2; stroke-dasharray: 3 1.5; }
.fl-seal-t { fill: none; stroke: #5f8f5a; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@keyframes fl-seal { 0%, 70% { transform: scale(1); opacity: 1; } 76% { transform: scale(1.6); opacity: 0; } 84% { transform: scale(1.5); opacity: 0; } 92% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1); } }
.fl-shelf { fill: rgba(0, 0, 0, .22); stroke: var(--fl-wood-d); stroke-width: 1.5; }
.fl-bolt-hi { fill: rgba(255, 255, 255, .35); }
.fl-bolt-end { fill: rgba(0, 0, 0, .22); }
.fl-bolt-core { fill: rgba(0, 0, 0, .35); }
.fl-pull { animation: fl-pull 5s ease-in-out infinite; }
@keyframes fl-pull { 0%, 100% { transform: translateX(0); } 45%, 60% { transform: translateX(7px); } }
.fl-cloth { stroke: rgba(0, 0, 0, .12); stroke-width: 1; }
.fl-table-seam { stroke: rgba(0, 0, 0, .06); stroke-width: 1; }
.fl-imp { opacity: 0; transition: opacity 1s ease; }
.fl-imp.on { opacity: .92; transition: opacity .14s ease-out; }
.fl-tray { fill: var(--fl-metal-d); }
.fl-sheen { stroke: rgba(255, 255, 255, .45); stroke-width: 1.5; stroke-linecap: round; }
.fl-pulse { fill: none; stroke-width: 1.6; opacity: 0; }
.fl-blk-sh { fill: rgba(0, 0, 0, .45); }
.fl-vat-rim { fill: #6b4a35; stroke: #4d3324; stroke-width: 2; }
.fl-rip { fill: none; stroke: rgba(255, 255, 255, .6); stroke-width: 1.2; transform-box: view-box; transform-origin: 0 0; animation: fl-rip 3.2s ease-out infinite; }
@keyframes fl-rip { 0% { transform: scale(.12); opacity: .9; } 100% { transform: scale(1); opacity: 0; } }
.fl-stir { transform-box: view-box; transform-origin: 0 0; animation: fl-spin 6s linear infinite; }
@keyframes fl-spin { to { transform: rotate(360deg); } }
.fl-paddle { stroke: #c99561; stroke-width: 3; stroke-linecap: round; }
.fl-paddle-k { fill: #e2b955; }
.fl-tank-rim { fill: #8d939f; stroke: #5e6472; stroke-width: 1.5; }
.fl-soak { animation: fl-soak 4.5s ease-in-out infinite alternate; }
@keyframes fl-soak { to { transform: translateX(8px); } }
.fl-soak-c { fill: none; stroke: rgba(251, 248, 241, .55); stroke-width: 9; stroke-linecap: round; }
.fl-wave { animation: fl-wave 2.4s linear infinite; }
@keyframes fl-wave { to { transform: translateX(20px); } }
.fl-wave-l { fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: 1.2; }
.fl-pole { fill: var(--fl-wood); stroke: var(--fl-wood-d); stroke-width: 1.5; }
.fl-line { fill: none; stroke: var(--fl-mute); stroke-width: 1; }
.fl-sway { transform-box: view-box; transform-origin: 0 0; animation: fl-sway 4s ease-in-out infinite; }
@keyframes fl-sway { 0%, 100% { transform: skewX(-6deg); } 50% { transform: skewX(6deg); } }
.fl-fold { fill: rgba(0, 0, 0, .18); }
.fl-peg { fill: #c99561; }
.fl-cloths { transition: opacity 1.4s; }
.fl-night-note { font: italic 500 14px var(--f-display); fill: var(--fl-mute); opacity: 0; transition: opacity 1.4s; }
.fl-layer { stroke: rgba(0, 0, 0, .14); stroke-width: .8; }
.fl-knife { animation: fl-knife 3.2s ease-in-out infinite alternate; }
@keyframes fl-knife { to { transform: translateY(var(--kh, 40px)); } }
.fl-knife-l { stroke: rgba(255, 255, 255, .85); stroke-width: 1.4; stroke-dasharray: 4 2; }
.fl-knife-k { fill: var(--fl-metal); stroke: #23262f; stroke-width: 1; }
.fl-mtable { fill: var(--fl-wood); }
.fl-mach { fill: #ece4d4; stroke: #2b2f3a; stroke-width: 1; }
.fl-mach-plate { fill: #c9952e; }
.fl-feed { animation: fl-feed 1.5s linear infinite; }
@keyframes fl-feed { from { transform: translateX(-5px); } to { transform: translateX(6px); } }
.fl-needle { fill: #e0605a; animation: fl-needle .22s steps(2) infinite; }
@keyframes fl-needle { 50% { opacity: .15; } }
.fl-spool { fill: none; stroke-width: 2.6; stroke-dasharray: 3 2; transform-box: fill-box; transform-origin: center; animation: fl-spin 1.2s linear infinite; }
.fl-mlamp { fill: #ffc56b; opacity: 0; transition: opacity 1.4s; pointer-events: none; }
.fl-qc-tab { fill: #e9e3d6; stroke: #c9bfae; stroke-width: 1; }
html[data-mode="wholesale"] .fl-qc-tab { fill: #dcd5c6; }
.fl-qc-glow { opacity: .6; transition: opacity 1.4s; }
.fl-tape { fill: #e8c34a; }
.fl-tape-t { stroke: #5a4a1a; stroke-width: .8; }
.fl-list-l { stroke: #9b9284; stroke-width: 1.4; stroke-linecap: round; }
.fl-tick { fill: none; stroke: #3f7a3c; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 10; stroke-dashoffset: 0; animation: fl-tick 4s ease-out infinite; }
@keyframes fl-tick { 0% { stroke-dashoffset: 10; } 18%, 88% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 10; } }
.fl-mag { animation: fl-mag 7s ease-in-out infinite; }
@keyframes fl-mag { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(var(--mx), calc(var(--my) * -1)); } 50% { transform: translate(calc(var(--mx) * -.6), var(--my)); } 75% { transform: translate(calc(var(--mx) * -1), calc(var(--my) * -.4)); } }
.fl-handle { stroke: #3a2516; stroke-width: 4.5; stroke-linecap: round; }
.fl-lens-rim { fill: none; stroke-width: 3; }
.fl-flap { fill: var(--fl-kraft-d); }
.fl-kraft { fill: var(--fl-kraft); stroke: var(--fl-kraft-d); stroke-width: 1; }
.fl-kraft-in { fill: #8a5f33; }
.fl-drop { animation: fl-drop 3.4s ease-in infinite; }
@keyframes fl-drop { 0% { transform: translateY(-26px); opacity: 0; } 18% { opacity: 1; } 55% { transform: translateY(var(--dy, 20px)); opacity: 1; } 86% { opacity: 1; } 100% { transform: translateY(var(--dy, 20px)); opacity: 0; } }
.fl-tape2 { stroke: #e8d9b5; stroke-width: 3; opacity: .85; }
.fl-label { fill: #fbf8f1; }
.fl-tapegun { fill: #e0605a; } .fl-tapegun-c { fill: #f6efdf; }
.fl-road { fill: var(--fl-road); }
.fl-road-l { stroke: var(--fl-mute); stroke-width: 1.5; stroke-dasharray: 10 9; opacity: .6; }
.fl-wall { fill: #b98a5a; stroke: #7d5634; stroke-width: 1; }
.fl-pillar { fill: #d8b27a; stroke: #8a6420; stroke-width: 1; }
.fl-dome { fill: #f0d9a8; stroke: #8a6420; stroke-width: 1; }
.fl-dome-k { fill: #c9952e; }
.fl-idle { animation: fl-idle .28s ease-in-out infinite alternate; }
@keyframes fl-idle { to { transform: translateY(.7px); } }
.fl-headlight { fill: #ffe7a8; opacity: 0; transition: opacity 1.4s; }
.fl-wheel { fill: #16181f; }
.fl-cab { fill: #c2453a; stroke: #7e241c; stroke-width: 1.2; }
.fl-cab-roof { fill: #d9614f; }
.fl-glass { fill: #9fc3e6; }
.fl-cargo { fill: #e8b23a; stroke: #8a6420; stroke-width: 1.2; }
.fl-cargo-in { fill: #2d4f86; }
.fl-cargo-b { stroke: #c2453a; stroke-width: 3; stroke-dasharray: 6 3; }
.fl-rope { stroke: #e8d9b5; stroke-width: 1.4; opacity: .8; }
.fl-load { animation: fl-load 3.3s ease-in-out infinite; }
@keyframes fl-load { 0% { transform: translateX(16px); opacity: 0; } 22% { opacity: 1; } 70% { transform: translateX(-10px); opacity: 1; } 100% { transform: translateX(-22px); opacity: 0; } }
.fl-cot { fill: #8a5a3c; }
.fl-cot-w { stroke: #e2c99a; stroke-width: 1.2; fill: none; opacity: .9; }
.fl-tree-sh { fill: rgba(0, 0, 0, .28); transition: opacity 1.2s; }
.fl-tree { transform-box: view-box; transform-origin: 0 0; animation: fl-tree 7s ease-in-out infinite alternate; }
@keyframes fl-tree { from { transform: rotate(-1.4deg); } to { transform: rotate(1.4deg); } }
.fl-leaf { fill: var(--fl-leaf); stroke: rgba(0, 0, 0, .12); stroke-width: 1; }
.fl-leaf.b { fill: var(--fl-leaf-b); }
.fl-leaf-hi { fill: rgba(200, 230, 160, .32); }
.fl-arc { fill: none; stroke: var(--fl-mute); stroke-width: 1; stroke-dasharray: 2 4; }
.fl-arc-dry { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; opacity: .7; }
.fl-horizon { stroke: var(--fl-pad-l); stroke-width: 1; }
.fl-arc-t { font: 700 9px var(--f-ui); fill: var(--fl-mute); }
.fl-arc-cap { font: 800 9px var(--f-ui); letter-spacing: .14em; fill: var(--fl-mute); }
.fl-sundot { transition: transform 1.4s var(--ease); }
.fl-sun { fill: #ffd65c; }
.fl-sun-glow { fill: rgba(255, 214, 92, .25); animation: fl-glow 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes fl-glow { 50% { transform: scale(1.3); opacity: .6; } }
.fl-moon { fill: #e8ecf8; opacity: 0; }
.fl-sundot.is-moon .fl-sun, .fl-sundot.is-moon .fl-sun-glow { opacity: 0; }
.fl-sundot.is-moon .fl-moon { opacity: 1; }

/* ---------------------------------------------------------------- lighting by phase */
.fl-lights { pointer-events: none; }
.fl-lt { opacity: 0; transition: opacity 1.6s ease; }
.fl-lamps { opacity: 0; transition: opacity 1.6s ease; }
.fl-console[data-phase="day"] .fl-lt-day { opacity: 1; }
.fl-console[data-phase="dusk"] .fl-lt-dusk { opacity: 1; }
.fl-console[data-phase="dusk"] .fl-lamps { opacity: .55; }
.fl-console[data-phase="dusk"] .fl-cloths { opacity: .55; }
.fl-console[data-phase="dusk"] .fl-headlight { opacity: .18; }
.fl-console[data-phase="dusk"] .fl-mlamp { opacity: .08; }
.fl-console[data-phase="night"] .fl-lt-night { opacity: 1; }
.fl-console[data-phase="night"] .fl-lamps { opacity: 1; }
.fl-console[data-phase="night"] .fl-cloths { opacity: 0; }
.fl-console[data-phase="night"] .fl-night-note { opacity: 1; }
.fl-console[data-phase="night"] .fl-headlight { opacity: .34; }
.fl-console[data-phase="night"] .fl-mlamp { opacity: .16; }
.fl-console[data-phase="night"] .fl-qc-glow { opacity: 1; }
.fl-console[data-phase="night"] .fl-sh, .fl-console[data-phase="night"] .fl-tree-sh { opacity: .35; }
.fl-console[data-phase="night"] .fl-lb { fill: #f3ead8; }
.fl-console[data-phase="night"] .fl-night-note { fill: rgba(243, 234, 216, .7); }

/* ---------------------------------------------------------------- flowing pieces + the buyer's batch */
.fl-pieces { pointer-events: none; }
.fl-pc-cl, .fl-pc-kp { stroke: rgba(0, 0, 0, .35); stroke-width: .6; }
.fl-pc-k, .fl-pc-b, .fl-pc-ink { display: none; }
.fl-pc[data-f="p"] .fl-pc-ink { display: inline; }
.fl-pc[data-f="k"] .fl-pc-c, .fl-pc[data-f="b"] .fl-pc-c { display: none; }
.fl-pc[data-f="k"] .fl-pc-k, .fl-pc[data-f="b"] .fl-pc-b { display: inline; }
.fl-batch { pointer-events: none; transition: transform 1.2s var(--ease), opacity .6s; }
.fl-halo { animation: fl-glow 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.fl-ring { fill: none; stroke: #ffd65c; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: fl-ring 2.4s ease-out infinite; }
.fl-ring.r2 { animation-delay: 1.2s; }
@keyframes fl-ring { 0% { transform: scale(.55); opacity: .95; } 100% { transform: scale(2.2); opacity: 0; } }
.fl-bp-c, .fl-bp-k, .fl-bp-b { fill: #f2c14e; stroke: #fff3c4; stroke-width: 1; }
.fl-bp-b { fill: #d9a21b; }
.fl-bp-k, .fl-bp-b { display: none; }
.fl-bpcs[data-f="k"] .fl-bp-c, .fl-bpcs[data-f="b"] .fl-bp-c { display: none; }
.fl-bpcs[data-f="k"] .fl-bp-k, .fl-bpcs[data-f="b"] .fl-bp-b { display: inline; }
.fl-btag-bg { fill: #17120a; stroke: #ffd65c; stroke-width: 1.4; }
.fl-btag-dot { fill: #67c26f; }
.fl-batch.is-done .fl-btag-dot { fill: #8fb3d1; }
.fl-btag-t { font: 800 11px var(--f-ui); letter-spacing: .03em; fill: #ffd65c; }

/* ---------------------------------------------------------------- station card */
.fl-card { position: absolute; z-index: 6; width: 320px; padding: 16px 18px 14px; border-radius: 18px; background: color-mix(in srgb, var(--bg2) 94%, transparent); border: 1px solid var(--line2);
    box-shadow: 0 26px 60px -20px rgba(0, 0, 0, .7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 14px; line-height: 1.5; pointer-events: none; animation: fl-card .28s var(--ease); }
html[data-mode="retail"] .fl-card { background: color-mix(in srgb, #fffaf1 95%, transparent); box-shadow: 0 26px 50px -22px rgba(90, 55, 20, .45); }
.fl-card.pinned { pointer-events: auto; }
@keyframes fl-card { from { opacity: 0; transform: translateY(6px); } }
.fl-card-h { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; padding-right: 28px; position: relative; }
.fl-card-h h3 { font-size: 1.18rem; margin: 2px 0 0; }
.fl-card-h .deva-inline { font-size: .95em; color: var(--accent); }
.fl-card-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--k); color: #1d1f27; font-size: 18px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--k) 22%, transparent); }
.fl-card-x { position: absolute; right: -6px; top: -4px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line2); background: none; color: var(--muted); cursor: pointer; display: none; }
.fl-card.pinned .fl-card-x { display: grid; place-items: center; }
.fl-card-x:hover { color: var(--text); border-color: var(--accent); }
.fl-card p { margin: 0 0 10px; color: var(--muted); }
.fl-card-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 8px; padding: 10px 0 0; border-top: 1px dashed var(--line2); }
.fl-card-dl dt { font: 800 10px/1.4 var(--f-ui); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.fl-card-dl dd { margin: 3px 0 0; font-size: 13px; line-height: 1.4; }
.fl-card-dl dd b { font: 600 1.25rem/1 var(--f-display); color: var(--accent); font-variant-numeric: tabular-nums; }
.fl-card-you { padding: 8px 10px; border-radius: 10px; background: rgba(255, 214, 92, .14); border: 1px solid rgba(255, 214, 92, .45); color: var(--text) !important; font-size: 13px; }
.fl-card-you i { color: var(--fl-hold); }
.fl-card-fine { font-size: 11px !important; margin: 0 !important; opacity: .75; }

/* ---------------------------------------------------------------- legend + counters */
.fl-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 2px 0; }
.fl-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 7px; border-radius: 999px; border: 1px solid var(--line2); background: var(--surface); color: var(--text); font: 700 12.5px/1.2 var(--f-ui); cursor: pointer; transition: border-color .2s, background-color .2s; }
.fl-chip:hover { border-color: var(--k); }
.fl-chip[aria-pressed="true"] { border-color: var(--k); background: color-mix(in srgb, var(--k) 20%, transparent); }
.fl-chip-d { width: 9px; height: 9px; border-radius: 50%; background: var(--k); box-shadow: 0 0 0 3px color-mix(in srgb, var(--k) 25%, transparent); }
.fl-chip-n { font: 800 10px var(--f-ui); color: var(--muted); }
.fl-console .k-dispatch, .fl-track-sec .k-dispatch { --k: #c9952e; }
.fl-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.fl-stat { padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--k); min-width: 0; }
.fl-stat b { display: block; font: 500 clamp(1.4rem, 2.2vw, 1.9rem)/1 var(--f-display); color: var(--text); font-variant-numeric: tabular-nums; }
.fl-stat span { display: block; margin-top: 5px; font-size: 12px; line-height: 1.3; color: var(--muted); }
.fl-stat-note { grid-column: 1 / -1; margin: 0; font-size: 11.5px; color: var(--muted); opacity: .8; }
.fl-fine { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }
.fl-fine i { color: var(--accent); }

/* ---------------------------------------------------------------- tracking */
.fl-track-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(22px, 4vw, 56px); align-items: start; }
.fl-track-form { margin-top: 20px; }
.fl-ref-row { display: flex; gap: 8px; }
.fl-ref-row input { flex: 1; min-width: 0; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.fl-ref-row input::placeholder { text-transform: none; letter-spacing: .04em; font-weight: 500; }
.fl-ref-row .btn { flex: none; }
.fl-ref-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.fl-ref-chips .lab { width: 100%; }
.fl-chip-demo small { font-weight: 600; opacity: .7; }
.fl-trk { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(18px, 3vw, 28px); }
.fl-trk-empty { text-align: center; padding: clamp(26px, 4vw, 42px); border-style: dashed; }
.fl-trk-empty h3 { font-size: 1.5rem; }
.fl-trk-ill { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 7%, transparent); }
.fl-trk-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.fl-trk-h h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 2px 0 2px; letter-spacing: .01em; }
.fl-trk-h p { margin: 0; }
.fl-tag { flex: none; padding: 5px 11px; border-radius: 999px; border: 1px dashed var(--line2); font: 800 10.5px var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fl-now { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; border-left: 4px solid var(--k); background: color-mix(in srgb, var(--k) 13%, transparent); }
.fl-now > div:nth-child(2) { flex: 1; min-width: 0; }
.fl-now b { display: block; font: 500 clamp(1.1rem, 1.8vw, 1.35rem)/1.2 var(--f-display); margin: 3px 0 2px; }
.fl-now small { color: var(--muted); font-size: 12.5px; }
.fl-now-ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; background: var(--k); color: #1d1f27; position: relative; }
.fl-now-ic::after { content: ""; position: absolute; inset: -5px; border-radius: 18px; border: 2px solid var(--k); opacity: .5; animation: fl-nowp 2s ease-out infinite; }
@keyframes fl-nowp { to { inset: -12px; opacity: 0; } }
.fl-now-disp { flex: none; text-align: right; padding-left: 14px; border-left: 1px dashed var(--line2); }
.fl-now-disp b { color: var(--accent); font-size: 1.05rem; white-space: nowrap; }
.fl-scrub-wrap { position: relative; padding: 30px 0 4px; margin: 6px 0 4px; }
.fl-scrub { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 12px; padding: 0; margin: 0; border: 0; border-radius: 999px; cursor: pointer;
    background: linear-gradient(90deg, transparent var(--p, 0%), color-mix(in srgb, var(--bg) 66%, transparent) var(--p, 0%)), var(--sg, var(--accent)); box-shadow: inset 0 0 0 1px var(--line2); }
.fl-scrub:focus { box-shadow: inset 0 0 0 1px var(--line2), 0 0 0 4px var(--accent-soft); }
.fl-scrub::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #ffd65c; border: 3px solid var(--bg); box-shadow: 0 0 0 2px #ffd65c, 0 4px 14px rgba(0, 0, 0, .4); }
.fl-scrub::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #ffd65c; border: 3px solid var(--bg); box-shadow: 0 0 0 2px #ffd65c; }
.fl-today { position: absolute; top: 4px; transform: translateX(-50%); font: 800 10px var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); white-space: nowrap; pointer-events: none; }
.fl-today::after { content: ""; position: absolute; left: 50%; top: 14px; width: 2px; height: 10px; margin-left: -1px; background: var(--accent); }
.fl-scrub-ends { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.fl-scrub-ends span:nth-child(2) { font-style: italic; opacity: .8; }
.fl-rail { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(62px, 1fr)); gap: 6px; }
.fl-rail li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding-top: 2px; min-width: 0; }
.fl-rail li::before { content: ""; position: absolute; top: 14px; left: calc(-50% + 14px); right: calc(50% + 14px); height: 2px; background: linear-gradient(90deg, var(--line2) 50%, transparent 0) 0 0 / 6px 2px repeat-x; }
.fl-rail li:first-child::before { display: none; }
.fl-rail li.done::before, .fl-rail li.now::before { background: var(--k); }
.fl-rail-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; border: 2px solid var(--line2); color: transparent; background: var(--bg); transition: background-color .3s, border-color .3s, color .3s; }
.fl-rail li.done .fl-rail-dot { background: var(--k); border-color: var(--k); color: #1d1f27; }
.fl-rail li.now .fl-rail-dot { border-color: #ffd65c; background: var(--bg); color: #ffd65c; box-shadow: 0 0 0 4px rgba(255, 214, 92, .22); animation: fl-railp 1.8s ease-in-out infinite; }
.fl-rail li.now .fl-rail-dot i { display: none; }
.fl-rail li.now .fl-rail-dot::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #ffd65c; }
@keyframes fl-railp { 50% { box-shadow: 0 0 0 8px rgba(255, 214, 92, .08); } }
.fl-rail li b { font-size: 11.5px; line-height: 1.2; }
.fl-rail li small { font-size: 10.5px; color: var(--muted); }
.fl-rail li.next b { color: var(--muted); font-weight: 600; }
.fl-trk-cta { margin-top: 18px; }
.fl-trk-more { margin-top: 16px; border-top: 1px dashed var(--line2); padding-top: 12px; }
.fl-trk-more summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--accent); }
.fl-trk-more .gantt { margin-top: 12px; }

/* ---------------------------------------------------------------- capacity calendar */
.fl-cap-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(18px, 3vw, 30px); align-items: start; }
.fl-cal-wrap { min-width: 0; }
.fl-cal-key { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 14px; font-size: 12.5px; color: var(--muted); }
.fl-cal-key span { display: inline-flex; align-items: center; gap: 7px; }
.fl-cal-key i { width: 14px; height: 14px; border-radius: 4px; }
.fl-k-booked { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--muted) 70%, transparent) 0 3px, color-mix(in srgb, var(--muted) 45%, transparent) 3px 6px); }
.fl-k-hold { background: var(--fl-hold, #e8b23a); box-shadow: 0 0 8px rgba(232, 178, 58, .6); }
.fl-k-free { border: 1px dashed var(--line2); }
.fl-cal { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; --fl-hold: #e8b23a; }
html[data-mode="retail"] .fl-cal { --fl-hold: #c48a12; }
.fl-wk { display: flex; flex-direction: column; gap: 6px; min-width: 0; --b: 0; --h: 0; }
.fl-wk-b { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; padding: 10px 4px 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; font: inherit; transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.fl-wk-b:hover:not(:disabled) { border-color: var(--accent); transform: translateY(-2px); }
.fl-wk.is-sel .fl-wk-b { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), 0 14px 30px -18px var(--accent); }
.fl-wk-b:disabled { cursor: not-allowed; opacity: .78; }
.fl-wk-top { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.fl-wk-free { font: 600 1.05rem/1 var(--f-display); font-variant-numeric: tabular-nums; }
.fl-wk-top small { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-top: 2px; }
.fl-wk.is-full .fl-wk-free { color: var(--bad); }
.fl-wk-bar { display: flex; flex-direction: column-reverse; width: 26px; height: 170px; border-radius: 9px; overflow: hidden; border: 1px dashed var(--line2); background: color-mix(in srgb, var(--surface2) 60%, transparent); }
.fl-seg-b { flex: 0 0 calc(var(--b) * 1%); background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--muted) 70%, transparent) 0 3px, color-mix(in srgb, var(--muted) 45%, transparent) 3px 6px); transition: flex-basis .9s var(--ease); }
.fl-seg-h { flex: 0 0 calc(var(--h) * 1%); background: linear-gradient(180deg, #ffd65c, var(--fl-hold)); box-shadow: 0 0 14px rgba(255, 214, 92, .55); transition: flex-basis .9s var(--ease); }
.fl-wk.is-full .fl-seg-b { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--bad) 70%, transparent) 0 3px, color-mix(in srgb, var(--bad) 40%, transparent) 3px 6px); }
.fl-wk-d { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.fl-wk-d b { font-size: 12.5px; white-space: nowrap; }
.fl-wk-d small { font-size: 10px; color: var(--muted); white-space: nowrap; }
.fl-wk-fest { font: 800 9px/1.2 var(--f-ui); letter-spacing: .04em; color: var(--accent); text-align: center; min-height: 22px; }
.fl-wk-fest.none { visibility: hidden; }
.fl-wl { white-space: nowrap; display: inline-flex; justify-content: center; align-items: center; gap: 4px; font: 700 11px var(--f-ui); color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-align: center; }
.fl-wk.pop .fl-wk-b { animation: fl-pop .6s var(--ease); }
@keyframes fl-pop { 40% { transform: translateY(-6px) scale(1.04); box-shadow: 0 0 0 6px rgba(255, 214, 92, .3); } }
.fl-hold { position: sticky; top: 96px; }
.fl-hold .h3 { margin: 4px 0 4px; }
.fl-festtxt { color: var(--accent); font-weight: 700; }
.fl-hold-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.fl-hold-dl div { padding: 10px 12px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--line); }
.fl-hold-dl dt { font: 800 10px var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fl-hold-dl dd { margin: 4px 0 0; font: 500 1.35rem/1 var(--f-display); font-variant-numeric: tabular-nums; }
.fl-hold-dl dd.gold { color: var(--fl-hold, #e8b23a); }
html[data-mode="retail"] .fl-hold-dl dd.gold { color: #9a6c0a; }
.fl-hold-q { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 14px; }
.fl-hold-q .lab { width: 100%; }
.fl-hold-q .stepper input { width: 64px; }
.fl-hold-q small { font-size: 12px; }
.fl-full-note { padding: 10px 12px; border-radius: 12px; background: var(--surface2); font-size: 14px; }
.fl-full-note i { color: var(--accent); }
.fl-holds { margin-top: 26px; }
.fl-holds-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.fl-holds-h .h3 { margin: 0; }
.fl-holds-empty { padding: 14px 16px; border: 1px dashed var(--line2); border-radius: 14px; margin: 0; font-size: 14px; }
.fl-hold-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fl-hold-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--fl-hold, #e8b23a); animation: fl-card .35s var(--ease); --fl-hold: #e8b23a; }
html[data-mode="retail"] .fl-hold-list li { --fl-hold: #c48a12; }
.fl-hold-list li.past { opacity: .6; }
.fl-hl-ic { color: var(--fl-hold); }
.fl-hl-wk { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fl-hl-wk b { font-size: 14.5px; }
.fl-hl-wk small { font-size: 12px; color: var(--muted); }
.fl-hl-pcs { font: 500 1.25rem/1 var(--f-display); white-space: nowrap; }
.fl-hl-pcs small { font: 600 11px var(--f-ui); color: var(--muted); }

/* ---------------------------------------------------------------- promise strip */
.fl-promise-sec { padding-top: 0; }
.fl-promise { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: clamp(22px, 4vw, 44px); }
.fl-promise::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; background-color: var(--accent); opacity: .06; -webkit-mask: var(--bp) 0 0 / 52px 52px repeat; mask: var(--bp) 0 0 / 52px 52px repeat; border-radius: 50%; pointer-events: none; }
.fl-promise-h { max-width: 760px; }
.fl-promise-steps { list-style: none; margin: 18px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: fl; position: relative; }
.fl-promise-steps::before { content: ""; position: absolute; top: 24px; left: 40px; right: 40px; height: 2px; background: linear-gradient(90deg, var(--line2) 50%, transparent 0) 0 0 / 10px 2px repeat-x; }
.fl-promise-steps li { position: relative; display: flex; flex-direction: column; gap: 6px; }
.fl-promise-steps b { font: 500 1.08rem/1.25 var(--f-display); }
.fl-promise-steps small { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.fl-pi { position: relative; width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; font-size: 20px; background: var(--k); color: #1d1f27; box-shadow: 0 0 0 6px var(--surface), 0 0 0 7px color-mix(in srgb, var(--k) 40%, transparent); margin-bottom: 6px; }

/* ---------------------------------------------------------------- pause, reduced motion */
.fl-console.fl-paused .fl-stage *, .fl-console.fl-paused .fl-stage *::before { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
    .fl-stage *, .fl-rec, .fl-now-ic::after, .fl-rail li.now .fl-rail-dot, .fl-card, .fl-hold-list li { animation: none !important; }
    .fl-batch, .fl-sundot { transition: none !important; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
    .fl-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .fl-cap-grid { grid-template-columns: 1fr; }
    .fl-hold { position: static; }
}
@media (max-width: 900px) {
    .fl-track-grid { grid-template-columns: 1fr; }
    .fl-promise-steps { grid-template-columns: 1fr 1fr; }
    .fl-promise-steps::before { display: none; }
}
@media (max-width: 720px) {
    .fl-console { padding: 10px; border-radius: 22px; }
    .fl-hud { gap: 8px; padding: 2px 2px 10px; }
    .fl-hud-c { order: 3; width: 100%; font-size: 11.5px; }
    .fl-stage { border-radius: 16px; }
    .fl-stats { grid-template-columns: 1fr 1fr; }
    .fl-stat { padding: 10px 12px; }
    .fl-stat:nth-child(5) { grid-column: span 2; }
    .fl-card { padding: 14px 15px 12px; }
    .fl-cal { grid-template-columns: 1fr; gap: 6px; }
    .fl-wk { flex-direction: row; align-items: center; gap: 8px; }
    .fl-wk-b { flex-direction: row; gap: 10px; padding: 9px 12px; border-radius: 12px; }
    .fl-wk-d { order: 1; align-items: flex-start; width: 66px; flex: none; }
    .fl-wk-bar { order: 2; flex: 1; width: auto; height: 16px; flex-direction: row; border-radius: 6px; }
    .fl-wk-top { order: 3; width: 50px; flex: none; align-items: flex-end; }
    .fl-wk-fest { display: none; }
    .fl-wk-fest:not(.none) { display: block; position: absolute; }
    .fl-wk-b { position: relative; }
    .fl-wk-fest:not(.none) { left: 12px; bottom: -1px; min-height: 0; font-size: 8.5px; }
    .fl-wk:has(.fl-wk-fest:not(.none)) .fl-wk-b { padding-bottom: 13px; }
    .fl-wl { flex: none; font-size: 10.5px; max-width: 74px; }
    .fl-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 14px; }
    .fl-rail li::before { display: none; }
    .fl-now { flex-wrap: wrap; }
    .fl-now-disp { width: 100%; text-align: left; padding: 8px 0 0; border-left: 0; border-top: 1px dashed var(--line2); display: flex; justify-content: space-between; align-items: baseline; }
}
@media (max-width: 520px) {
    .fl-hud-l { font-size: 10.5px; letter-spacing: .1em; }
    .fl-phase button { min-width: 30px; padding: 0 8px; }
    .fl-pause span { display: none; }
    .fl-pause { padding: 0 11px; }
    .fl-ref-row { flex-direction: column; }
    .fl-ref-row .btn { width: 100%; }
    .fl-promise-steps { grid-template-columns: 1fr; }
    .fl-trk-h { flex-direction: column; }
    .fl-scrub-ends span:nth-child(2) { display: none; }
    .fl-hold-dl dd { font-size: 1.15rem; }
}
