.chalkboard-hub.hidden { display: none; }
.chalkboard-shell { min-width: 0; color: #f1eef3; }
.chalkboard-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 12px 0 15px; border-bottom: 1px solid #302d36; }
.chalkboard-heading span { color: var(--sport-accent); font-family: var(--bt-mono); font-size: 8px; letter-spacing: .12em; }
.chalkboard-heading h2 { margin: 4px 0; font-family: var(--bt-display); font-size: clamp(25px, 4vw, 39px); font-weight: 600; line-height: 1; }
.chalkboard-heading p { max-width: 720px; margin: 0; color: #89838e; font-size: 10px; line-height: 1.5; }
.chalkboard-heading > small { color: #66616b; font-family: var(--bt-mono); font-size: 7px; white-space: nowrap; }
.chalk-load-controls { display: flex; align-items: end; gap: 7px; padding: 12px; border: 1px solid #302d36; border-top: 0; background: #101015; }
.chalk-load-controls label { display: flex; min-width: 150px; flex-direction: column; gap: 5px; }
.chalk-load-controls label.chalk-player-select,
.chalk-load-controls label.chalk-track-select { flex: 1; }
.chalk-load-controls label > span { color: #736d78; font-family: var(--bt-mono); font-size: 7px; }
.chalk-load-controls select,
.chalk-load-controls input,
.chalk-load-controls button { min-height: 38px; padding: 0 10px; border: 1px solid #37333d; border-radius: 0; background: #15151a; color: #e8e4ea; font-family: var(--bt-mono); font-size: 8px; }
.chalk-load-controls button { border-color: var(--sport-accent); cursor: pointer; }
.chalk-load-controls > i { width: 1px; height: 38px; margin: 0 5px; background: #302d36; }
.chalk-load-controls.golf-controls { flex-wrap: wrap; }
.golf-controls .chalk-track-select { flex-basis: 42%; }
.golf-controls .chalk-player-select { flex-basis: 30%; }
.golf-controls .chalk-hole-select { min-width: 72px; max-width: 80px; }
.golf-controls .chalk-club-select { min-width: 145px; }
.golf-controls .chalk-shot-note { min-width: 190px; flex: 1; }
.golf-course-label { width: 100%; color: #7e927c; font-family: var(--bt-mono); font-size: 7px; letter-spacing: .06em; }
.chalk-tools { display: flex; align-items: center; gap: 4px; padding: 8px 0; overflow-x: auto; }
.chalk-tools > button { min-height: 34px; padding: 0 10px; border: 1px solid #34313a; background: #131318; color: #918b95; cursor: pointer; font-family: var(--bt-mono); font-size: 7px; white-space: nowrap; }
.chalk-tools > button.active { border-color: var(--sport-accent); color: #fff; background: color-mix(in srgb, var(--sport-accent) 9%, #131318); }
.chalk-tools > button:disabled { opacity: .55; cursor: wait; }
.chalk-label-input { display: flex; min-width: 150px; align-items: center; gap: 5px; margin-left: 4px; }
.chalk-label-input span { color: #716c75; font-family: var(--bt-mono); font-size: 6px; }
.chalk-label-input input { width: 112px; height: 34px; padding: 0 8px; border: 1px solid #34313a; background: #131318; color: #eeeaf0; font-family: var(--bt-mono); font-size: 7px; }
.f1-zoom-tools { display: flex; align-items: center; margin-left: auto; }
.f1-zoom-tools button,.f1-zoom-tools output { display: grid; min-width: 34px; height: 34px; place-items: center; padding: 0 7px; border: 1px solid #34313a; background: #131318; color: #aaa4ae; font-family: var(--bt-mono); font-size: 7px; }
.f1-zoom-tools output { border-right: 0; border-left: 0; }
.f1-controls { align-items: stretch; }
.f1-track-facts { display: flex; gap: 4px; }
.f1-track-facts span { display: flex; min-width: 66px; flex-direction: column; justify-content: center; padding: 0 8px; border: 1px solid #34383b; color: #737b7e; font-family: var(--bt-mono); font-size: 6px; text-transform: uppercase; }
.f1-track-facts b { margin-bottom: 2px; color: #f0f1f2; font-size: 8px; font-weight: 500; }
.chalk-colors { display: flex; gap: 3px; margin: 0 5px; }
.chalk-colors button { width: 27px; height: 27px; padding: 0; border: 2px solid #19181d; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 1px #3b3741; cursor: pointer; }
.chalk-colors button.active { box-shadow: 0 0 0 2px var(--sport-accent); }
.chalk-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 8px; }
.chalk-surface { position: relative; min-width: 0; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid #3b3741; touch-action: none; user-select: none; }
.chalk-stage { position: absolute; inset: 0; width: 100%; height: 100%; transform-origin: 50% 50%; will-change: transform; }
.chalk-surface.nba { background: #794e2d; }
.chalk-surface.f1 { background: radial-gradient(circle at 45% 45%, #20282a, #0b0d0e 68%); }
.chalk-surface.golf { aspect-ratio: 16 / 10; background: #17311e; }
.chalk-surface-art,
.chalk-ink,
.chalk-tokens { position: absolute; inset: 0; width: 100%; height: 100%; }
.nba-court-art { fill: none; stroke: rgba(255,255,255,.74); stroke-width: .34; }
.nba-court-art::after { content: ''; }
.f1-track-art { display: grid; place-items: center; padding: 4% 7% 6%; }
.f1-track-svg-host { display: grid; width: 86%; height: 88%; place-items: center; color: #687175; font-family: var(--bt-mono); font-size: 8px; }
.f1-track-svg-host > svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 12px rgba(255,255,255,.08)); }
.f1-circuit-path { fill: none; stroke: #f3f4f4; stroke-width: 20; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.f1-turn-markers[hidden] { display: none; }
.f1-turn-markers circle { fill: #0a0d0f; stroke: #ff5964; stroke-width: 3; vector-effect: non-scaling-stroke; }
.f1-turn-markers text { fill: #fff; font-family: var(--bt-mono); font-size: 11px; font-weight: 700; text-anchor: middle; }
.f1-track-unavailable { position: absolute; inset: 0; display: grid; place-content: center; gap: 7px; padding: 25px; text-align: center; }
.f1-track-unavailable strong { font-family: var(--bt-display); font-size: 24px; font-weight: 600; }
.f1-track-unavailable span { color: #7b8387; font-size: 10px; }
.golf-course-art .golf-rough { fill: #17371f; }
.golf-course-art .golf-water { fill: #376d7e; opacity: .88; }
.golf-course-art .golf-fairway-edge { fill: none; stroke: #285334; stroke-width: 34; stroke-linecap: round; }
.golf-course-art .golf-fairway { fill: none; stroke: #5a8a4f; stroke-width: 27; stroke-linecap: round; }
.golf-course-art .golf-green { fill: #82aa62; stroke: rgba(231,244,211,.55); stroke-width: .5; }
.golf-course-art .golf-bunker { fill: #d5bd82; stroke: #f0dca6; stroke-width: .35; }
.golf-course-art .golf-tee { fill: #70a05b; stroke: rgba(237,248,218,.7); stroke-width: .45; }
.golf-course-art .golf-pin { stroke: #f3f2eb; stroke-width: .55; }
.golf-course-art .golf-flag { fill: #ff695f; }
.golf-course-art .golf-hole-number { fill: rgba(255,255,255,.9); font-family: var(--bt-display); font-size: 5px; font-weight: 600; }
.golf-course-art .golf-hole-meta,
.golf-course-art .golf-map-note { fill: rgba(240,247,233,.62); font-family: var(--bt-mono); font-size: 2.1px; letter-spacing: .08em; }
.golf-course-art .golf-map-note { text-anchor: middle; }
.golf-course-art { overflow: hidden; background: #102118; }
.golf-measure-grid { position: absolute; inset: 7% 25% 8% 25%; }
.golf-measure-grid::before { content: ''; position: absolute; inset: 0 50%; border-left: 1px dashed rgba(231,239,223,.18); }
.golf-measure-grid > i { position: absolute; right: 0; left: 0; border-top: 1px solid rgba(232,240,225,.14); }
.golf-measure-grid > i span { position: absolute; right: calc(100% + 8px); top: -6px; color: #809083; font-family: var(--bt-mono); font-size: 7px; font-style: normal; white-space: nowrap; }
.golf-planning-corridor { position: absolute; inset: 7% 27% 8%; }
.golf-standard-fairway { position: absolute; inset: 14% 30% 8%; border: 8px solid #254f31; border-radius: 45% 45% 20% 20%; background: linear-gradient(90deg,#4b7b48,#65945a 50%,#4b7b48); }
.golf-standard-green { position: absolute; z-index: 1; top: 0; left: 50%; width: 31%; aspect-ratio: 1.55; border: 3px solid #315c39; border-radius: 50%; background: #7fa66b; transform: translateX(-50%); }
.golf-standard-tee { position: absolute; bottom: 0; left: 50%; width: 24%; height: 6%; border: 2px solid #315c39; background: #6c965e; transform: translateX(-50%); }
.golf-hole-readout { position: absolute; top: 3%; left: 3%; display: flex; flex-direction: column; gap: 3px; }
.golf-hole-readout span,.golf-green-gradient > span { color: #b5cc86; font-family: var(--bt-mono); font-size: 8px; letter-spacing: .09em; }
.golf-hole-readout strong { font-family: var(--bt-display); font-size: 21px; font-weight: 600; }
.golf-hole-readout small { color: #819084; font-size: 8px; }
.golf-hazard-ledger { position: absolute; top: 22%; left: 3%; display: flex; width: 21%; flex-direction: column; gap: 5px; }
.golf-hazard-ledger span { display: flex; justify-content: space-between; gap: 5px; padding: 6px 7px; border: 1px solid #2a4931; color: #879589; font-family: var(--bt-mono); font-size: 7px; }
.golf-hazard-ledger b { color: #f0e6c5; font-size: 9px; font-weight: 500; }
.golf-hazard-ledger small { color: #66736a; font-size: 7px; line-height: 1.4; }
.golf-green-gradient { position: absolute; top: 3%; right: 3%; display: flex; width: 22%; flex-direction: column; gap: 5px; padding: 9px; border: 1px solid #2e4934; background: rgba(8,18,11,.82); }
.golf-green-gradient > i { position: relative; height: 42px; overflow: hidden; border-radius: 50%; background: radial-gradient(circle at var(--difficulty) 50%,#db766d 0,#d5c46a 28%,#65bd7d 65%,#315c3d 100%); }
.golf-green-gradient > i b { position: absolute; inset: 5px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; }
.golf-green-gradient strong { color: #e6e7dd; font-family: var(--bt-mono); font-size: 11px; font-weight: 500; }
.golf-green-gradient small { color: #748078; font-size: 7px; line-height: 1.35; }
.golf-geometry-warning { position: absolute; right: 3%; bottom: 3%; left: 3%; color: #7d8980; font-family: var(--bt-mono); font-size: 7px; letter-spacing: .05em; text-align: center; }
.chalk-ink { z-index: 3; overflow: visible; pointer-events: none; }
.chalk-ink path { fill: none; stroke-width: .72; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; pointer-events: stroke; }
.chalk-ink path.arrow,
.chalk-ink path.line,
.chalk-ink path.shot { stroke-width: .65; }
.chalk-ink path.shot { stroke-dasharray: 2.2 1.1; }
.chalk-ink .chalk-shot-label { paint-order: stroke; stroke: rgba(8,12,9,.9); stroke-width: .7px; stroke-linejoin: round; font-family: var(--bt-mono); font-size: 2.5px; font-weight: 700; letter-spacing: .03em; pointer-events: none; }
.chalk-ink .chalk-board-label { paint-order: stroke; stroke: rgba(8,10,11,.95); stroke-width: .7px; stroke-linejoin: round; font-family: var(--bt-mono); font-size: 3px; font-weight: 700; letter-spacing: .03em; pointer-events: none; }
.chalk-surface:has(.chalk-tools) { isolation: isolate; }
.chalk-tokens { z-index: 4; pointer-events: none; }
.chalk-token { position: absolute; display: grid; width: clamp(36px, 5.3vw, 58px); min-height: clamp(43px, 6vw, 66px); place-items: center; padding: 0; border: 2px solid #f2f0f6; border-radius: 50%; background: #17171c; color: #fff; cursor: grab; pointer-events: auto; transform: translate(-50%, -50%); touch-action: none; box-shadow: 0 4px 13px rgba(0,0,0,.42); }
.chalk-token.side-A { border-color: #68a7ff; }
.chalk-token.side-B { border-color: #ff5964; }
.chalk-token.side-field { border-color: #c9e184; background: #102117; }
.chalk-token:active { cursor: grabbing; z-index: 4; }
.chalk-token img { width: 100%; height: 100%; max-height: 46px; border-radius: 50%; object-fit: contain; pointer-events: none; }
.chalk-token > b { font-family: var(--bt-mono); font-size: 10px; }
.chalk-token > span { position: absolute; top: calc(100% + 2px); max-width: 78px; padding: 2px 4px; overflow: hidden; background: rgba(6,6,8,.85); font-family: var(--bt-mono); font-size: 6px; text-overflow: ellipsis; white-space: nowrap; }
.chalk-token > i { position: absolute; right: -3px; top: -3px; min-width: 16px; padding: 2px; border-radius: 8px; background: #09090c; color: #b8b3bd; font-family: var(--bt-mono); font-size: 5px; font-style: normal; }
.chalk-token.f1-car-token { width: clamp(58px, 7vw, 88px); min-height: 0; aspect-ratio: 2.15; border: 0; border-radius: 0; background: transparent; box-shadow: none; transform: translate(-50%,-50%); }
.f1-car-token > svg { width: 100%; height: 100%; overflow: visible; pointer-events: none; transform: rotate(var(--car-rotation)); transform-origin: center; filter: drop-shadow(0 4px 3px rgba(0,0,0,.7)); transition: filter .15s ease; }
.f1-car-token.selected > svg { filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 7px var(--sport-accent)); }
.chalk-token.f1-car-token > span { top: calc(100% + 1px); max-width: 92px; border: 1px solid rgba(255,255,255,.15); background: rgba(5,7,8,.9); font-size: 6px; }
.f1-view-status { position: absolute; z-index: 8; right: 9px; bottom: 8px; padding: 5px 7px; border: 1px solid #343a3d; background: rgba(5,7,8,.84); color: #90989c; font-family: var(--bt-mono); font-size: 7px; pointer-events: none; }
.f1-workspace { grid-template-columns: minmax(0,1fr) 250px; }
.f1-workspace .chalk-surface { cursor: crosshair; }
.f1-workspace .chalk-surface:has(~ aside) { isolation: isolate; }
.chalk-workspace > aside { display: flex; flex-direction: column; gap: 7px; padding: 13px; border: 1px solid #302d36; background: #101015; }
.chalk-workspace > aside > strong { margin-bottom: 4px; font-size: 13px; font-weight: 600; }
.chalk-workspace > aside > span { display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 7px; color: #918b96; font-size: 8px; }
.chalk-workspace > aside b { display: grid; width: 21px; height: 21px; place-items: center; border: 1px solid #3a3640; color: var(--sport-accent-soft); font-family: var(--bt-mono); font-size: 7px; }
.chalk-workspace > aside small { margin-top: auto; color: #625d66; font-size: 7px; line-height: 1.5; }
.f1-inspector { display: flex; min-height: 0; flex: 1; flex-direction: column; gap: 9px; margin-top: 8px; padding-top: 9px; border-top: 1px solid #302d36; }
.f1-inspector > section { display: flex; flex-direction: column; gap: 5px; }
.f1-inspector > section > span { color: #ff7b84; font-family: var(--bt-mono); font-size: 6px; letter-spacing: .09em; }
.f1-inspector > section > strong { font-size: 10px; font-weight: 600; }
.f1-inspector > section > small { margin: 0; color: #767179; }
.f1-inspector > section > div:not(.f1-corner-directory) { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.f1-inspector button { min-height: 27px; padding: 4px 6px; border: 1px solid #39353e; background: #15151a; color: #aaa4ad; cursor: pointer; font-family: var(--bt-mono); font-size: 6px; }
.f1-inspector button.danger { border-color: #553039; color: #ff8991; }
.f1-corner-directory { display: grid; max-height: 178px; grid-template-columns: 1fr 1fr; gap: 3px; overflow-y: auto; }
.f1-corner-directory button { display: grid; grid-template-columns: 18px 1fr; align-items: center; gap: 4px; text-align: left; }
.f1-corner-directory b { width: 17px; height: 17px; color: #ff8991; }
.f1-shortcuts { margin-top: auto; }
.chalk-shot-log { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; padding-top: 9px; border-top: 1px solid #302d36; }
.chalk-shot-log > strong { color: #c9e184; font-family: var(--bt-mono); font-size: 7px; letter-spacing: .08em; text-transform: uppercase; }
.chalk-shot-log > button { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 5px; padding: 5px; border: 1px solid #2c3c2e; background: #121a14; color: #aaaeb0; cursor: pointer; text-align: left; }
.chalk-shot-log > button b { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; background: #263e2a; color: #dce9c8; font-size: 6px; }
.chalk-shot-log > button span { overflow: hidden; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.chalk-shot-log > button i { color: #737b74; font-family: var(--bt-mono); font-size: 5px; font-style: normal; text-transform: uppercase; }
.chalk-shot-log > small { margin: 0 !important; color: #707970 !important; }
@media (max-width: 900px) {
    .chalk-load-controls { flex-wrap: wrap; }
    .chalk-load-controls label { min-width: 130px; flex: 1; }
    .chalk-load-controls > i { display: none; }
    .chalk-workspace { grid-template-columns: 1fr; }
    .chalk-workspace > aside { display: none; }
    .f1-track-facts { order: 3; width: 100%; }
    .f1-track-facts span { flex: 1; }
    .chalk-label-input { min-width: 130px; }
}
@media (max-width: 560px) {
    .chalkboard-heading { align-items: flex-start; flex-direction: column; }
    .chalkboard-heading > small { display: none; }
    .chalk-load-controls { align-items: stretch; flex-direction: column; }
    .chalk-load-controls label { width: 100%; }
    .chalk-surface { aspect-ratio: 4 / 3; }
    .chalk-surface.golf { aspect-ratio: 3 / 4; }
    .golf-controls .chalk-hole-select { max-width: none; }
    .chalk-token { width: 34px; min-height: 40px; }
    .chalk-token img { max-height: 33px; }
    .f1-track-art { padding: 5% 3% 7%; }
    .f1-track-svg-host { width: 96%; height: 91%; }
    .f1-circuit-path { stroke-width: 14; }
    .f1-turn-markers circle { r: 9; }
    .f1-zoom-tools { margin-left: 0; }
    .chalk-label-input input { width: 95px; }
    .chalk-token.f1-car-token { width: 57px; }
    .golf-planning-corridor { inset: 20% 22% 11%; }
    .golf-hole-readout { top: 2%; }
    .golf-hole-readout strong { font-size: 17px; }
    .golf-hazard-ledger { top: 10%; right: 3%; left: auto; width: 42%; }
    .golf-green-gradient { top: auto; right: 3%; bottom: 9%; width: 42%; }
    .golf-green-gradient > i { height: 34px; }
    .golf-geometry-warning { font-size: 6px; }
}
