:root { --ink:#f6f7fb; --muted:#9aa5b5; --panel:#141d2b; --panel-2:#192435; --edge:#29354a; --navy:#0b111c; --blue:#5b7cff; --coral:#ff6d5e; --gold:#ffc857; --mint:#49d6ad; }
* { box-sizing:border-box; }
html, body { margin:0; min-height:100%; background:var(--navy); color:var(--ink); font-family:'Segoe UI',Arial,sans-serif; }
button, input, select { font:inherit; }
button { color:inherit; }
.app-shell { min-height:100vh; background:radial-gradient(circle at 76% 18%,rgba(66,92,158,.14),transparent 28%),var(--navy); }
.topbar { height:76px; display:flex; align-items:center; justify-content:space-between; padding:0 clamp(20px,5vw,72px); border-bottom:1px solid #1f2a3b; background:rgba(11,17,28,.88); backdrop-filter:blur(18px); position:sticky; top:0; z-index:20; }
.brand { display:flex; align-items:center; gap:12px; color:inherit; text-decoration:none; }
.brand strong { font:800 18px 'Segoe UI',Arial,sans-serif; letter-spacing:-.3px; display:block; }
.brand small { display:block; color:var(--muted); font-size:10px; letter-spacing:.08em; text-transform:uppercase; margin-top:2px; }
.brand-mark { width:34px; height:34px; position:relative; display:grid; place-items:center; transform:rotate(-18deg); }
.brand-mark span { position:absolute; width:8px; border-radius:10px; background:var(--blue); }
.brand-mark span:nth-child(1) { height:22px; left:4px; bottom:3px; }.brand-mark span:nth-child(2) { height:30px; left:14px; bottom:3px; background:var(--coral); }.brand-mark span:nth-child(3) { height:18px; right:2px; bottom:3px; background:var(--gold); }
.topbar nav { display:flex; align-items:center; gap:8px; }
.nav-link { background:none; border:0; padding:12px 16px; color:var(--muted); cursor:pointer; }
.nav-link.is-active { color:#fff; }
.avatar { width:38px; height:38px; margin-left:10px; border-radius:50%; border:1px solid #3d4c66; background:#1c2940; font-weight:700; font-size:12px; cursor:pointer; display:grid; place-items:center; color:inherit; text-decoration:none; }
.workspace { max-width:1440px; margin:auto; padding:42px clamp(18px,5vw,72px) 72px; }
.intro { display:flex; align-items:flex-end; justify-content:space-between; gap:30px; margin-bottom:32px; }
.eyebrow { display:block; color:var(--blue); font-size:11px; letter-spacing:.18em; font-weight:700; margin-bottom:10px; }
h1 { font:800 clamp(32px,4vw,52px)/1.05 'Segoe UI',Arial,sans-serif; letter-spacing:-2px; margin:0 0 12px; max-width:720px; }
.intro p { color:var(--muted); max-width:680px; line-height:1.6; margin:0; }
.hand-toggle { display:flex; padding:4px; background:#111a28; border:1px solid var(--edge); border-radius:12px; flex-shrink:0; }
.hand-toggle button { border:0; background:none; color:var(--muted); border-radius:8px; padding:10px 15px; cursor:pointer; font-size:13px; }
.hand-toggle button.selected { color:#fff; background:#26344c; box-shadow:0 3px 10px #050912; }
.planner-grid { display:grid; grid-template-columns:minmax(310px,390px) minmax(560px,1fr); gap:24px; align-items:start; }
.control-panel,.lane-card { background:linear-gradient(145deg,rgba(23,33,49,.98),rgba(15,23,35,.98)); border:1px solid var(--edge); border-radius:18px; box-shadow:0 24px 60px rgba(0,0,0,.24); overflow:hidden; }
.control-panel { padding:24px; }
.panel-heading { display:flex; justify-content:space-between; align-items:center; padding-bottom:18px; border-bottom:1px solid var(--edge); }
.panel-heading>div { display:flex; align-items:center; gap:11px; }.panel-heading h2 { font:700 18px 'Segoe UI',Arial,sans-serif; margin:0; }.step { display:grid; place-items:center; width:29px; height:29px; border-radius:8px; background:rgba(91,124,255,.16); color:#8ca3ff; font-size:11px; font-weight:700; }
.reset { border:0; background:none; color:var(--muted); font-size:12px; cursor:pointer; }
.handedness-indicator { grid-column:1/-1; display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:16px 0 2px; padding:0; border:0; }.handedness-indicator legend { margin-bottom:8px; color:var(--muted); font-size:10px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }.handedness-indicator label { display:flex; align-items:center; gap:8px; min-height:38px; padding:0 11px; border:1px solid var(--edge); border-radius:9px; color:var(--muted); background:#111b2a; font-size:11px; font-weight:650; cursor:pointer; }.handedness-indicator label.selected { border-color:#6682ff; color:#fff; background:rgba(91,124,255,.13); }.handedness-indicator input { width:14px; height:14px; margin:0; accent-color:var(--blue); }
.approach-summary { grid-column:1/-1; display:flex; align-items:center; justify-content:space-between; gap:12px; margin:18px 0 0; padding:13px 14px; border:1px solid rgba(255,109,94,.3); border-radius:10px; background:rgba(255,109,94,.07); }.approach-summary span { font-size:12px; font-weight:600; }.approach-summary small { display:block; color:var(--muted); font-size:9px; font-weight:400; margin-top:3px; }.approach-summary strong { color:#ff8b7e; font-size:13px; white-space:nowrap; }
.range-control { --accent:var(--blue); padding:19px 0 16px; border-bottom:1px solid var(--edge); }
.range-control.coral { --accent:var(--coral); }.range-control.gold { --accent:var(--gold); }.range-control.mint { --accent:var(--mint); }.range-control.blue { --accent:var(--blue); }
.control-label { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; font-weight:600; font-size:13px; }
.control-label span small { display:block; color:var(--muted); font-weight:400; font-size:10px; margin-top:3px; }
.control-label label { display:flex; align-items:center; background:#0d1522; border:1px solid #334158; border-radius:9px; overflow:hidden; }
.control-label input[type=number] { color:#fff; background:transparent; border:0; width:46px; padding:7px 2px 7px 9px; outline:none; font-weight:700; }
.control-label em { color:var(--muted); font-style:normal; font-size:9px; padding-right:7px; }
.range-control input[type=range] { direction:rtl; width:100%; height:4px; accent-color:var(--accent); cursor:pointer; }
.range-control.compact input[type=range] { direction:ltr; }
.range-scale { display:flex; justify-content:space-between; color:#647187; font-size:9px; margin-top:5px; }
.select-control { display:block; margin-top:18px; }.select-control>span { display:block; font-weight:600; font-size:12px; margin-bottom:8px; }.select-control select { width:100%; background:#0d1522; border:1px solid #334158; border-radius:9px; color:#e8ecf4; padding:11px; outline:none; }
.lane-card { min-width:0; }
.lane-toolbar { min-height:66px; display:flex; justify-content:space-between; align-items:center; padding:14px 22px; border-bottom:1px solid var(--edge); }
.lane-card.show-alternatives { display:grid; grid-template-columns:minmax(410px,1fr) minmax(300px,340px); grid-template-rows:auto 700px auto; }.lane-card.show-alternatives .lane-toolbar { grid-column:1/-1; grid-row:1; }.lane-card.show-alternatives .lane-wrap { grid-column:1; grid-row:2; min-height:700px; height:700px; align-items:start; }.lane-card.show-alternatives .readout { grid-column:1/-1; grid-row:3; }.lane-card.show-alternatives .alternatives-card { grid-column:2; grid-row:2; min-width:0; overflow:hidden; }
.lane-toolbar>div:first-child { display:grid; grid-template-columns:auto 1fr; column-gap:9px; align-items:center; }.lane-toolbar strong { font-size:13px; }.lane-toolbar small { grid-column:2; color:var(--muted); font-size:10px; margin-top:2px; }.live-dot { width:8px; height:8px; border-radius:50%; background:var(--mint); box-shadow:0 0 0 5px rgba(73,214,173,.12); }
.legend { display:flex; gap:15px; color:var(--muted); font-size:10px; }.legend span { display:flex; gap:6px; align-items:center; }.line-key { width:18px; height:3px; border-radius:4px; background:var(--blue); }.point-key { width:8px; height:8px; border:2px solid var(--gold); border-radius:50%; }
.lane-wrap { position:relative; height:min(88vh,980px); min-height:740px; display:grid; place-items:center; padding:12px 22px; background:radial-gradient(circle,#1d2940 0,#0d1522 70%); overflow:hidden; }
.lane { display:block; height:100%; max-width:100%; transform:scaleX(.68); transform-origin:center; filter:drop-shadow(0 20px 25px rgba(0,0,0,.45)); }
.board-line { stroke:#664c28; stroke-opacity:.15; stroke-width:1; }.foul-line { stroke:#e45d55; stroke-width:3; }.pin-line { stroke:#6e4e29; stroke-opacity:.35; }.lane-dot,.arrow,.range-finder,.approach-dot { fill:#392e21; opacity:.72; }.approach-dot.standing { stroke:#f4deb0; stroke-width:1.5; opacity:.9; }.approach-dot.reference { opacity:.55; }.distance-mark,.approach-distance { fill:#5b4930; font:700 7px 'Segoe UI',Arial,sans-serif; letter-spacing:.08em; }.approach-caption { fill:#70542d; font:700 8px 'Segoe UI',Arial,sans-serif; letter-spacing:.14em; opacity:.75; }.pin-position-circle { fill:#f9f7ee; stroke:#d64d4d; stroke-width:1.5; }.pin-position text { fill:#172033; text-anchor:middle; font:800 7px 'Segoe UI',Arial,sans-serif; }
.arrow,.range-finder { transform-box:fill-box; transform-origin:center; transform:scale(.72); }
.distance-guide { fill:none; stroke:#2869c7; stroke-width:1.5; stroke-dasharray:3 7; stroke-linecap:round; opacity:.9; }
.zone-separator { stroke:#03060b; stroke-width:2; }
.distance-guide-label { fill:#174f9e; font:800 11px 'Segoe UI',Arial,sans-serif; letter-spacing:.08em; paint-order:stroke; stroke:#f2d290; stroke-width:2px; stroke-linejoin:round; }
.lane-section-label { fill:#17120c; font:800 9px 'Segoe UI',Arial,sans-serif; letter-spacing:.12em; }
.lane-zone-label { fill:#fff; font:800 10px 'Segoe UI',Arial,sans-serif; letter-spacing:.12em; dominant-baseline:middle; }
.trajectory-shadow { fill:none; stroke:rgba(12,22,39,.52); stroke-width:5; stroke-linecap:round; stroke-linejoin:round; }.trajectory { fill:none; stroke:var(--blue); stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round; filter:url(#glow); }
.approach-trajectory-shadow { fill:none; stroke:rgba(12,22,39,.45); stroke-width:4; stroke-linecap:round; }.approach-trajectory { fill:none; stroke:var(--coral); stroke-width:1.5; stroke-linecap:round; stroke-dasharray:7 5; }
.swing-trajectory { fill:none; stroke:#174f9e; stroke-width:1.75; stroke-linecap:round; stroke-dasharray:3 4; }
.swing-path-label { fill:#174f9e; font:800 7px 'Segoe UI',Arial,sans-serif; letter-spacing:.08em; paint-order:stroke; stroke:#f2d290; stroke-width:1.5px; stroke-linejoin:round; }
.target-point .target-halo { fill:var(--point); opacity:.18; }.target-point .target-core { fill:var(--point); stroke:#fff; stroke-width:2; }.target-point text { fill:#fff; font:700 8px 'Segoe UI',Arial,sans-serif; letter-spacing:.08em; paint-order:stroke; stroke:#111a28; stroke-width:3px; }.target-point.coral { --point:var(--coral); }.target-point.gold { --point:var(--gold); }.target-point.blue { --point:#7892ff; }.target-point.mint { --point:var(--mint); }
.board-endpoint { --endpoint:var(--blue); }.board-endpoint.blue { --endpoint:var(--blue); }.board-endpoint.coral { --endpoint:var(--coral); }.board-endpoint.gold { --endpoint:var(--gold); }.board-endpoint.mint { --endpoint:var(--mint); }.board-endpoint .endpoint-ring { fill:#101928; stroke:#fff; stroke-width:1.5; }.board-endpoint .endpoint-fill { fill:var(--endpoint); }.board-endpoint text { text-anchor:middle; paint-order:stroke; stroke:#101928; stroke-width:2px; stroke-linejoin:round; }.board-endpoint .endpoint-number { fill:#fff; font:800 11px 'Segoe UI',Arial,sans-serif; }.board-endpoint .endpoint-label { fill:#fff; font:800 6.5px 'Segoe UI',Arial,sans-serif; letter-spacing:.07em; }.board-endpoint.gold .endpoint-label { transform:translateY(-43px); }
.orientation { position:absolute; bottom:16%; color:#9aa6b8; font-size:9px; }.orientation.right { left:calc(50% + 112px); }.orientation.left { right:calc(50% + 112px); }
.readout { display:grid; grid-template-columns:repeat(4,1fr) auto; align-items:center; gap:14px; border-top:1px solid var(--edge); padding:16px 20px; }.readout div { padding-right:12px; border-right:1px solid var(--edge); }.readout span { color:var(--muted); display:block; font-size:9px; text-transform:uppercase; letter-spacing:.08em; }.readout strong { font-size:14px; display:block; margin-top:4px; }.readout button { border:0; border-radius:10px; background:var(--blue); padding:12px 16px; font-weight:700; font-size:11px; cursor:pointer; box-shadow:0 8px 22px rgba(91,124,255,.22); }
.alternatives-card { border-top:1px solid var(--edge); padding:20px; }.show-alternatives .alternatives-card { border-top:0; border-left:1px solid var(--edge); padding:18px 12px; }.alternatives-heading { display:flex; justify-content:space-between; align-items:end; gap:24px; margin-bottom:14px; }.show-alternatives .alternatives-heading { display:block; }.alternatives-heading h2 { margin:3px 0 0; font-size:18px; }.alternatives-heading p { margin:0; color:var(--muted); font-size:10px; text-align:right; }.show-alternatives .alternatives-heading p { margin-top:8px; text-align:left; }.alternatives-table-wrap { overflow-x:auto; border:1px solid var(--edge); border-radius:10px; }.alternatives-table { width:100%; min-width:0; table-layout:fixed; border-collapse:collapse; }.alternatives-table th,.alternatives-table td { padding:7px 3px; border-bottom:1px solid var(--edge); text-align:center; font-size:9.5px; white-space:nowrap; }.alternatives-table th:first-child,.alternatives-table td:first-child { width:17%; padding-left:7px; text-align:left; }.alternatives-table th:nth-child(2),.alternatives-table th:nth-child(3) { width:13%; }.alternatives-table th:nth-child(4) { width:14%; }.alternatives-table th:nth-child(5),.alternatives-table th:nth-child(6) { width:11%; }.alternatives-table th:nth-child(7) { width:21%; }.alternatives-table th { color:#9eabc0; background:#111b2a; font-size:7.5px; line-height:1.2; letter-spacing:.04em; white-space:normal; text-transform:uppercase; }.alternatives-table td { color:#e8edf7; }.alternatives-table tbody tr:last-child td { border-bottom:0; }.alternatives-table tbody tr:first-child td { color:#8fa5ff; font-weight:700; }
#blazor-error-ui { color-scheme:light only; background:#ffffe0; bottom:0; box-shadow:0 -1px 2px rgba(0,0,0,.2); box-sizing:border-box; display:none; left:0; padding:.6rem 1.25rem .7rem; position:fixed; width:100%; z-index:1000; color:#222; } #blazor-error-ui .dismiss { cursor:pointer; position:absolute; right:.75rem; top:.5rem; }

@media(max-width:980px) { .planner-grid { grid-template-columns:1fr; }.control-panel { display:grid; grid-template-columns:1fr 1fr; gap:0 22px; }.panel-heading,.select-control { grid-column:1/-1; }.lane-wrap { height:900px; } }
@media(max-width:640px) { .topbar { height:64px; }.nav-link { display:none; }.workspace { padding:25px 12px 40px; }.intro { display:block; }.intro h1 { font-size:34px; letter-spacing:-1.3px; }.hand-toggle { margin-top:20px; width:max-content; }.control-panel { display:block; padding:18px; }.planner-grid { gap:14px; }.lane-toolbar { padding:12px 14px; }.legend { display:none; }.lane-card.show-alternatives { display:block; }.show-alternatives .alternatives-card { border-left:0; border-top:1px solid var(--edge); }.lane-wrap { height:800px; min-height:720px; padding:8px 2px; }.readout { grid-template-columns:repeat(2,1fr); gap:12px 8px; padding:12px; }.readout div { padding:0 5px; }.readout button { grid-column:1/-1; }.readout strong { font-size:12px; }.alternatives-heading { display:block; }.alternatives-heading p { margin-top:8px; text-align:left; } }
