.ui-icon{display:block;width:21px;height:21px;flex:none;pointer-events:none}
body.board-editing .inspector-open .board-workspace{grid-template-columns:minmax(0,1fr) 238px}
body.board-editing .inspector-open .board-tool-rail{display:none}
body.board-editing .inspector{overscroll-behavior:contain}
body.board-editing .inspector-close{height:28px;font-size:11px;padding:5px 12px}
body.board-editing .inspector-tabs button{font-size:12px}
body.board-editing .mode-grid{gap:5px;padding:12px 10px 10px}
body.board-editing .mode-grid .mode{padding:7px 3px;display:grid;justify-items:center;gap:5px;font-size:11px}
body.board-editing .mode span{height:auto}
body.board-editing .tool-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:0 10px 12px}
body.board-editing .tool-options button{display:flex;align-items:center;gap:8px;padding:9px 7px;min-height:43px;text-align:left;font-size:11px;white-space:normal;border:1px solid #e2eae4;background:#fff;color:#476752}
body.board-editing .tool-options button.active{border-color:#84baa1;background:#e8f5ee;color:#087f5b;box-shadow:inset 0 0 0 1px #84baa133}
body.board-editing .tool-options .ui-icon{width:22px;height:22px}
body.board-editing .tool-color-section{padding:11px 12px 5px;border-top:1px solid #edf1eb}
body.board-editing .tool-color-section h3{display:flex;justify-content:space-between;margin:0 0 10px;font-size:11px}
#toolColorValue{font-size:10px;color:#7b9584;font-weight:400;font-variant-numeric:tabular-nums}
body.board-editing #colorPicker{gap:10px;padding:2px}
body.board-editing #colorPicker button{width:24px;height:24px;min-width:24px;background:var(--swatch);border:3px solid white;box-shadow:0 0 0 1px #cfdbd2;outline:none;border-radius:50%}
body.board-editing #colorPicker button.selected{box-shadow:0 0 0 2px #178359}
#colorPicker[hidden]{display:none!important}
body.board-editing .color-help{padding:0 12px;font-size:10px;color:#83988a;line-height:1.7;margin:4px 0 12px}
body.board-editing .inspector-note{font-size:10px;line-height:1.8;color:#8b9f91;padding:0 12px}
body.board-editing #resourcesOpen{display:flex;align-items:center;gap:5px}
#resourcesOpen .ui-icon{width:15px;height:15px}
.board-tool-rail b .ui-icon{width:21px;height:21px}
.resource-choices{display:grid;gap:10px;padding:20px}
.resource-choices button{display:flex;align-items:center;gap:14px;min-width:0;text-align:left;padding:15px;border:1px solid #dce7df;border-radius:10px;background:white;color:#315d46}
.resource-choices button:hover{background:#f0f8f3;border-color:#a1c6af}
.resource-choices button>span:nth-child(2){flex:1;display:grid;gap:6px;min-width:0}
.resource-choices strong{font-size:13px;font-weight:600}
.resource-choices small{font-size:11px;color:#82988a;line-height:1.7}
.resource-choices .ui-icon{width:25px;height:25px}
#exportDialog{width:min(740px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:0;border:1px solid #dfe9e2;border-radius:16px;background:#fff;color:#244b36;box-shadow:0 24px 90px #102e2340;overflow:auto}
#exportDialog::backdrop{background:#122b2366;backdrop-filter:blur(3px)}
#exportDialog .dialog-heading{padding:24px 26px 19px;align-items:flex-start;border-bottom:1px solid #e8eee9}
#exportDialog h2{font-size:20px;line-height:1.3;margin:0;font-weight:700;letter-spacing:-.02em}
#exportDialog .dialog-heading p{font-size:12px;color:#82958a;margin:9px 0 0;max-width:560px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#exportDialog .close-button{width:28px;height:28px;padding:0;border:0;border-radius:6px;background:transparent;color:#869b8e;font-size:23px}
#exportDialog .close-button:hover{background:#eef4ef}
#exportDialog .export-layout{display:grid;grid-template-columns:190px minmax(0,1fr);min-height:342px}
#exportDialog .export-formats{display:flex;flex-direction:column;gap:6px;padding:17px 12px;background:#f6f9f6;border-right:1px solid #e5ece6}
#exportDialog .export-formats button{display:flex;align-items:center;gap:12px;width:100%;padding:12px 10px;border:1px solid transparent;border-radius:9px;background:transparent;color:#708577;text-align:left;cursor:pointer}
#exportDialog .export-formats button>span:last-child{display:grid;gap:5px;min-width:0}
#exportDialog .export-formats strong{font-size:12px;font-weight:600}
#exportDialog .export-formats small{font-size:10px;color:#93a397}
#exportDialog .export-formats .ui-icon{width:23px;height:23px}
#exportDialog .export-formats button:hover:not(:disabled){background:#edf4ee}
#exportDialog .export-formats button.active{background:white;color:#087f5b;border-color:#a8cdb7;box-shadow:0 2px 7px #244b3608}
#exportDialog .export-formats button.active small{color:#5b9473}
#exportDialog .export-formats button:disabled{opacity:.42;cursor:default}
#exportDialog .export-content{padding:24px 26px;display:flex;flex-direction:column;gap:15px;min-width:0}
#exportDialog .export-summary{display:flex;align-items:flex-start;gap:13px}
#exportFormatIcon{display:grid;place-items:center;width:44px;height:44px;flex:none;border-radius:12px;background:#eaf5ed;color:#168258}
#exportFormatIcon .ui-icon{width:25px;height:25px}
#exportDialog .export-summary h3{font-size:16px;margin:1px 0 7px;font-weight:650}
#exportDialog .export-summary p{font-size:11px;line-height:1.8;color:#82968a;margin:0}
#exportDialog .export-details{font-size:11px;line-height:1.7;border:1px solid #e1eae3;background:#f8fbf8;border-radius:7px;padding:9px 11px;color:#607f6c}
#exportDialog .export-field{display:grid;grid-template-columns:70px minmax(0,1fr);align-items:center;gap:7px 12px;font-size:12px;color:#55735f;margin:0}
#exportDialog .export-field select{width:100%;min-width:0;height:36px;font-size:12px;border:1px solid #d8e5dc;border-radius:7px;background:white;color:#315e45;padding:6px 10px}
#exportDialog .export-field small{grid-column:2;font-size:10px;line-height:1.6;color:#91a196}
#exportDialog .export-field[hidden],#exportDialog .export-availability[hidden]{display:none}
#exportDialog .export-filename{display:grid;gap:7px;padding-top:3px;font-size:10px;color:#92a297}
#exportDialog .export-filename strong{font-size:11px;line-height:1.8;font-weight:500;color:#54725f;overflow-wrap:anywhere}
#exportDialog .export-availability{font-size:11px;color:#967a43;margin:0;line-height:1.7}
#exportDialog .export-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 24px;border-top:1px solid #e6eee8;background:#fff;position:sticky;bottom:0}
#exportDialog .export-feedback{flex:1;min-width:0}
#exportDialog #exportStatus{font-size:11px;line-height:1.7;color:#82978a;margin:0;max-width:none;overflow-wrap:anywhere}
#exportDialog #exportStatus[data-tone=success]{color:#168258}
#exportDialog #exportStatus[data-tone=error]{color:#b24a3e}
#exportDialog #exportProgress{width:100%;height:5px;accent-color:#168258;max-width:none;margin:0 0 8px;border:0;display:block}
#exportDialog #exportProgress[hidden]{display:none}
#exportDialog .export-footer-actions{display:flex;align-items:center;gap:8px;flex:none}
#exportDialog .export-footer-actions button,#exportDialog #exportDownload{display:flex;align-items:center;justify-content:center;gap:7px;min-height:37px;font-size:12px;padding:9px 17px;border-radius:8px;text-decoration:none;margin:0;max-width:none;white-space:nowrap}
#exportDialog #exportDownload.hidden,#exportDialog .export-footer-actions [hidden]{display:none}
#exportDialog .export-footer-actions .primary{background:#087f5b;border:1px solid #087f5b;color:white}
#exportDialog .export-footer-actions .primary:disabled{opacity:.45;cursor:default}
#exportDialog .export-footer-actions .ui-icon{width:17px;height:17px}
#exportDialog #cancelExport{color:#74897c;background:#fff;border:1px solid #dbe5de}
#exportDialog button:focus-visible,#exportDialog a:focus-visible,.resource-choices button:focus-visible{outline:3px solid #9ac8ad;outline-offset:2px}
@media(max-width:1100px){body.board-editing .inspector-open .board-workspace{grid-template-columns:minmax(0,1fr) 220px}body.board-editing .tool-options button{font-size:10px;padding:8px 5px;gap:6px}}
@media(max-width:760px){body.board-editing .inspector-open .board-workspace{grid-template-columns:minmax(0,1fr) 43px}body.board-editing .inspector-open .board-tool-rail{display:flex}body.board-editing .inspector-open .inspector{width:min(238px,70vw);right:43px;top:0;bottom:0;background:white}body.board-editing .record-actions{flex-wrap:wrap}body.board-editing #resourcesOpen{font-size:9px}#exportDialog{width:calc(100vw - 20px);max-height:calc(100dvh - 24px);border-radius:12px}#exportDialog .dialog-heading{padding:19px 17px 15px}#exportDialog .dialog-heading p{max-width:calc(100vw - 100px)}#exportDialog .export-layout{grid-template-columns:minmax(0,1fr);min-height:0}#exportDialog .export-formats{flex-direction:row;padding:10px;gap:4px;overflow-x:auto;border-right:0;border-bottom:1px solid #e5ece6}#exportDialog .export-formats button{width:65px;flex:1;flex-direction:column;padding:9px 4px;gap:5px;text-align:center;min-width:52px}#exportDialog .export-formats strong{font-size:10px}#exportDialog .export-formats small{display:none}#exportDialog .export-content{padding:20px 17px;gap:14px}#exportDialog .export-footer{padding:14px 17px;gap:10px}#exportDialog h2{font-size:18px}#exportDialog .export-footer-actions button,#exportDialog #exportDownload{padding:8px 12px;font-size:11px}.resource-choices{padding:15px}.resource-choices button{padding:13px;gap:10px}}
/* The list owns the full main column, so its scrollbar stays at the viewport edge. */
.tc-ready #listView{width:100%;max-width:none;box-sizing:border-box;scrollbar-gutter:stable}
.tool-color-section[hidden]{display:none!important}
body.board-editing .tool-options .placement-icon{width:28px;height:28px;flex:none;object-fit:contain}
body.board-editing #toolOptions{margin-bottom:14px}
body.board-editing #colorPicker{display:flex;flex-wrap:wrap;gap:10px}
.custom-color-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:13px}
.custom-color-controls label{display:flex;align-items:center;gap:7px;font-size:11px;color:#51715f;cursor:pointer}
.custom-color-controls input[type=color]{width:28px;height:28px;border:1px solid #d3e2d8;border-radius:6px;padding:2px;background:#fff;cursor:pointer}
.custom-color-controls button{padding:6px 8px;border:1px solid #d8e5dd;border-radius:6px;background:#f5faf6;color:#41664f;font-size:11px;cursor:pointer}
/* Media editing follows the existing commentary timeline's visible controls. */
body.board-editing #editorView .timeline-toolbar{flex-wrap:wrap;gap:6px}
body.board-editing #editorView .timeline-toolbar>div{display:flex;align-items:center;gap:3px;flex-wrap:wrap}
body.board-editing #editorView .timeline-toolbar button:disabled{opacity:.35;cursor:default}
#timelineZoom{width:75px;height:14px;accent-color:#7bb99a}
.timeline-scroller{overflow-x:auto;overflow-y:hidden;min-width:0;scrollbar-width:thin;background:#182630}
body.board-editing #editorView .timeline-grid{position:relative;min-width:100%;grid-template-columns:92px minmax(0,1fr)}
body.board-editing #editorView .timeline-grid>.lane-label{position:sticky;left:0;z-index:3}
body.board-editing #editorView .timeline-grid>.ruler{position:relative}
.timeline-playhead{position:absolute;top:0;bottom:0;z-index:2;width:1px;background:#f8d57c;pointer-events:none;box-shadow:0 0 0 1px #17252d44}
.timeline-playhead:before{content:'';position:absolute;left:-4px;top:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:7px solid #f8d57c}
body.board-editing #editorView .take-clip.selected{outline:2px solid #f6d17f;outline-offset:-2px;box-shadow:0 0 0 1px #314e48}
body.board-editing #editorView .take-clip.muted{opacity:.48}
.track-audio-actions{display:flex;align-items:center;gap:4px;margin-top:3px}
.track-audio-actions button{padding:2px 4px;font-size:9px;line-height:1.4;border:1px solid #49616b;background:#293f49;border-radius:4px;color:#bdd8ce;cursor:pointer}
.track-audio-actions button[aria-pressed=true]{color:#f7bc90;background:#5a433a}
body.board-editing #editorView .audio-lane{min-height:43px}
body.board-editing #editorView .source-category{padding:3px 5px;border:1px solid #426358;border-radius:4px;color:#a9d3be;font-size:9px}
body.board-editing #editorView .clip-editor{background:#24343e;align-items:center;padding:8px 10px;gap:10px;color:#c4d7dd;font-size:10px}
body.board-editing #editorView .clip-editor button{font-size:10px;padding:5px 8px;background:#2c4b42;color:#d1e7d8;border:1px solid #507465;border-radius:5px}
body.board-editing #editorView .clip-editor input[type=number]{width:68px;border-radius:4px}
#clipGainValue{width:31px;font-size:10px;font-variant-numeric:tabular-nums;color:#d2e6dc}
#closeClipEditor{margin-left:auto}
#clipContextMenu{position:fixed;width:184px;padding:6px;z-index:70;background:#fff;border:1px solid #dbe7df;border-radius:10px;box-shadow:0 8px 30px #123b3338}
#clipContextMenu[hidden]{display:none}
#clipContextMenu button{display:block;width:100%;padding:9px 10px;background:transparent;border:0;border-radius:5px;font-size:12px;text-align:left;color:#355e47}
#clipContextMenu button:hover:not(:disabled),#clipContextMenu button:focus-visible{background:#e8f4ec;outline:none}
#clipContextMenu button:disabled{color:#afbbb3}
#clipContextMenu [data-clip-action=delete]{color:#b44d43;border-top:1px solid #edf1ee;margin-top:3px}
@media(max-width:760px){body.board-editing #editorView .timeline-grid{grid-template-columns:62px minmax(0,1fr)}#timelineZoom{width:52px}body.board-editing #editorView .timeline-toolbar button{font-size:9px;padding:4px}.track-audio-actions{gap:2px}.track-audio-actions button{font-size:8px;padding:2px}body.board-editing #editorView .clip-editor{gap:7px}body.board-editing #editorView .clip-editor input[type=number]{width:56px}}

/* A recording is visible on its actual timeline from the first captured frame. */
body.board-editing #editorView .video-lane:has(.video-thumbnails){height:58px;min-height:58px}
body.board-editing #editorView .video-lane .take-clip.video-thumbnails{top:4px;height:48px}
body.board-editing #editorView .lane .take-clip.live[data-live-recording]{max-width:none;pointer-events:none;cursor:default;border-color:#d65e50}
body.board-editing #editorView .lane .take-clip.live.paused[data-live-recording]{border-color:#c99b47;opacity:.8}
body.board-editing #editorView .take-clip.video-thumbnails.live>span{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;background:#173f33dc;color:#fff;text-shadow:none}
/* A match reference is independent of the editable tactics board. */
.reference-controls{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:7px 10px;background:#f0f7f2;border-bottom:1px solid #dce9df;color:#5d7c68;font-size:10px;flex:none}
.reference-controls[hidden],.reference-view[hidden],#sourcePreview[hidden],#setupExampleCanvas[hidden],#referenceLayoutField[hidden]{display:none!important}
.reference-controls>span{margin-right:auto;white-space:nowrap}
.reference-controls [role=group]{display:flex;gap:2px;padding:2px;border:1px solid #d0e2d5;border-radius:6px;background:#e5f0e8}
.reference-controls button{font-size:10px;padding:5px 7px;border:1px solid transparent;border-radius:4px;background:transparent;color:#53735f;cursor:pointer;white-space:nowrap}
.reference-controls [data-reference-layout].active{background:#fff;color:#087f5b;border-color:#c5decd;box-shadow:0 1px 3px #14382a0d}
.reference-controls #returnToBoard{background:#087f5b;color:#fff}
.reference-controls #referenceSound[aria-pressed=true]{color:#087f5b}
.reference-controls button:disabled{opacity:.45;cursor:default}
.reference-view{position:absolute;z-index:5;background:#10231d;border:1px solid #d5e7dc;border-radius:6px;overflow:hidden;box-shadow:0 4px 16px #06191066;pointer-events:auto}
.reference-view canvas{width:100%;height:100%;display:block;pointer-events:none}
.reference-view>span{position:absolute;bottom:0;left:0;right:0;padding:4px 7px;font-size:9px;color:#fff;background:#0c241bcc;pointer-events:none}
.reference-view button{position:absolute;top:4px;right:4px;width:25px;height:23px;padding:0;border:1px solid #b8d6c64d;border-radius:4px;color:#fff;background:#0d3021cc;font-size:14px;cursor:pointer}
.reference-view[data-layout=cover]{border-radius:0;box-shadow:none}
#setupExampleCanvas{width:100%;height:auto;display:block;background:#102c23}
#scopePreview{display:flex;align-items:center;justify-content:center;min-height:180px;max-height:310px}
#sourcePreview{width:auto;height:auto;max-width:100%;max-height:300px;margin:auto}
.setup-example-title{font-size:12px;color:#315f46;margin:0;text-align:center}
#referenceLayoutField{display:grid;gap:7px;color:#577861}
body.board-editing .record-actions #resourcesOpen{white-space:nowrap}
@media(max-width:760px){.reference-controls{gap:5px;padding:5px;font-size:9px}.reference-controls>span{display:none}.reference-controls button{font-size:9px;padding:4px 5px}.reference-controls #referenceChoose{display:none}.reference-view>span{font-size:8px;padding:3px}.reference-view button{width:22px;height:20px}}
#takePreview #protocolPreview{display:block;width:100%;height:100%;max-height:100%;object-fit:contain;cursor:default}#takePreview #protocolPreview[hidden]{display:none}

/* Reuse the professional-leagues list hierarchy inside the import dialog. */
.professional-import-dialog{width:min(1000px,calc(100vw - 40px));max-height:90dvh;overflow:auto}
.professional-import-filters,.professional-import-regions,.professional-import-leagues,.professional-import-teams{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.professional-import-filters label{display:flex;align-items:center;gap:8px;margin:0}.professional-import-filters input{width:155px}
.professional-import :is(.professional-import-regions,.professional-import-leagues,.professional-import-teams) button[aria-pressed="true"]{color:#087f5b;border-color:#80bea1;background:#e6f3eb}
.professional-import-leagues{margin:14px 0}.professional-import-matches{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.professional-import .professional-import-match{display:block;width:100%;padding:16px;border:1px solid #dfe9e2;border-radius:10px;background:#fff;text-align:left;color:#315b45}
.professional-import-match:hover{border-color:#8db69c;background:#f8fbf9}.professional-import-meta{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:#82988a}
.professional-import-opponents{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;margin:18px 0}.professional-import-opponents>strong:last-child{text-align:right}.professional-import-opponents>span{text-align:center}.professional-import-opponents b{font-size:21px}.professional-import-opponents small{display:block;font-size:10px;color:#82988a}
.professional-import-action{display:block;text-align:right;font-size:11px}.professional-import-empty{padding:30px;text-align:center;color:#82988a}.professional-import #externalStatus:empty{display:none}

/* Creation belongs to the same compact row as the list filters. */
.console-shell #listView .filters{gap:8px}
.console-shell #listView .filters #search{flex:1 1 180px;min-width:160px}
.console-shell #listView .filters #resultCount{flex:none;white-space:nowrap}
.console-shell #listView .filters #newProject{flex:none;margin-left:auto;background:#087f5b;border-color:#087f5b;color:#fff}
.console-shell #listView .filters #newProject:hover{background:#096e50;border-color:#096e50}
