:root{--bg:#f1f3ef;--ink:#121c18;--nav:#091610;--gold:#d1a65a;--shadow:0 12px 40px rgba(13,36,26,.08)}
body{background:radial-gradient(circle at 78% -10%,rgba(34,139,98,.06),transparent 25%),var(--bg)}
.sidebar{width:252px;padding:28px 18px;background:radial-gradient(circle at 8% 2%,#183b2c 0,transparent 26%),linear-gradient(180deg,#0b1b14,#07120d);border-right:1px solid rgba(255,255,255,.04)}
.brand-mark{position:relative;width:42px;height:42px;border-radius:13px;background:linear-gradient(145deg,#61d59e,#16805b);box-shadow:0 8px 25px rgba(29,146,101,.28),inset 0 1px rgba(255,255,255,.25)}
.brand-mark i{font-style:normal}.brand-mark b{position:absolute;right:5px;bottom:3px;font-size:7px;color:#e2f8ed}.brand>span:last-child>strong span{color:#66d5a0}.brand small{font-size:9px;letter-spacing:1.8px}
.app-version{display:inline-flex;align-items:center;justify-content:center;padding:6px 9px;border:1px solid #c9d8d0;border-radius:999px;background:rgba(255,255,255,.78);color:#315a48;font-size:11px;font-weight:900;letter-spacing:.35px;white-space:nowrap}
.course-assets-section{grid-column:1/-1}.course-asset-upload{display:inline-flex;margin:10px 0}.course-asset-upload.uploading{opacity:.65;pointer-events:none}.course-asset-card{display:grid;grid-template-columns:68px minmax(0,1fr) auto auto auto;align-items:center;gap:12px;margin-top:8px;padding:9px;border:1px solid #dce5e0;border-radius:10px;background:#fff}.course-asset-card img{display:block;width:68px;height:48px;object-fit:cover;border-radius:7px;background:#09130f}.course-file-icon{display:grid;place-items:center;width:68px;height:48px;border-radius:7px;background:#edf4f0;color:#277557;font-size:22px;text-decoration:none}.course-asset-name{color:inherit;text-decoration:underline;text-decoration-color:#9faaa4;text-underline-offset:2px}.course-asset-card strong,.course-asset-card small{display:block;overflow-wrap:anywhere}.course-asset-card strong{font-size:11px}.course-asset-card small{margin-top:4px;color:#748078;font-size:9px}.course-asset-card>.secondary{padding:8px 10px;text-decoration:none;font-size:10px}.delete-course-asset{border:0;background:none;color:#a53a3a;font-size:10px;font-weight:800}.student-course-assets-panel .course-asset-card{grid-template-columns:50px minmax(0,1fr) auto auto}.student-course-assets-panel .course-asset-card img,.student-course-assets-panel .course-file-icon{width:50px;height:38px}.student-course-assets-panel .delete-course-asset{display:none}@media(max-width:650px){.course-asset-card{grid-template-columns:52px minmax(0,1fr) auto}.course-asset-card img,.course-file-icon{width:52px;height:40px}.course-asset-card .delete-course-asset{grid-column:2/-1;text-align:left}}
.library-attach-button,.clip-asset-upload{display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.clip-assets{margin:14px 0;padding:12px;border:1px solid #d7e2dc;border-radius:10px;background:#f5f8f6}.clip-assets>strong{font-size:12px}.clip-assets .course-asset-card{grid-template-columns:54px minmax(0,1fr) auto auto auto}.clip-assets .course-asset-card img,.clip-assets .course-file-icon{width:54px;height:40px}.clip-asset-upload{margin-top:10px}.clip-asset-count{display:inline-block;margin-top:7px;color:#287859;font-size:10px}
@media(display-mode:standalone){html,body{min-height:100dvh}.app-shell,.student-app{min-height:100dvh}.sidebar,.student-sidebar{height:100dvh;padding-top:max(18px,env(safe-area-inset-top));padding-bottom:max(18px,env(safe-area-inset-bottom))}#appDialog.analysis-mode,#appDialog:fullscreen{width:100dvw;height:100dvh}}
.clip-asset-draft{display:grid;gap:10px;margin:14px 0;padding:13px;border:1px solid #d7e2dc;border-radius:11px;background:#f5f8f6}.clip-asset-draft>div:first-child strong,.clip-asset-draft>div:first-child small{display:block}.clip-asset-draft>div:first-child strong{font-size:11px}.clip-asset-draft>div:first-child small{margin-top:3px;color:#68766f;font-size:9px}.clip-asset-draft>label{width:max-content;cursor:pointer}.clip-asset-draft-file{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;align-items:center;padding:8px 10px;border:1px solid #dce5e0;border-radius:8px;background:#fff}.clip-asset-draft-file b,.clip-asset-draft-file small{overflow-wrap:anywhere}.clip-asset-draft-file b{font-size:10px}.clip-asset-draft-file small{grid-column:1;color:#748078;font-size:9px}.clip-asset-draft-file button{grid-column:2;grid-row:1/3;border:0;background:none;color:#a53a3a;font-size:20px;cursor:pointer}
.clip-asset-draft.dragging,.clip-asset-draft.pasted{border-color:#2e9b6b;background:#e5f5ec;box-shadow:0 0 0 3px rgba(46,155,107,.14)}.clip-asset-draft-file{grid-template-columns:58px minmax(0,1fr) auto}.clip-asset-draft-file>a{grid-column:1;grid-row:1;display:block}.clip-asset-draft-file>a img,.clip-asset-draft-file>a i{display:block;width:58px;height:42px;border-radius:6px;background:#e9f0ec;object-fit:cover}.clip-asset-draft-file>a i{display:grid;place-items:center;color:#287859;font-style:normal;font-size:20px}.clip-asset-draft-file>span{grid-column:2;min-width:0}.clip-asset-draft-file>span b,.clip-asset-draft-file>span small{display:block}.clip-asset-draft-file>span>a{color:inherit}.clip-asset-draft-file .draft-asset-download{display:inline-block;margin-top:3px;color:#287859;font-size:9px;font-weight:800}.clip-asset-draft-file>button{grid-column:3}
.nav-item:hover,.nav-item.active{background:linear-gradient(90deg,rgba(49,127,94,.38),rgba(30,77,58,.2));box-shadow:inset 2px 0 #58cb96}
main{margin-left:252px;padding:0 42px 58px}.topbar{height:116px}
.workspace-switch{display:flex;align-items:center;gap:9px;border:1px solid var(--line);background:rgba(255,255,255,.72);border-radius:11px;padding:7px 10px;color:var(--ink);text-align:left}.workspace-switch span:nth-child(2){min-width:94px}.workspace-switch small,.workspace-switch strong{display:block}.workspace-switch small{font-size:7px;color:#96a099;letter-spacing:1px}.workspace-switch strong{font-size:10px;margin-top:2px}.workspace-switch>b{color:#8e9993}.workspace-dot{width:7px;height:7px;border-radius:50%;background:#37b77e;box-shadow:0 0 0 4px #e0f4ea}
.hero{position:relative;overflow:hidden;padding:34px 35px;border-radius:22px;background:radial-gradient(circle at 78% 10%,rgba(93,211,156,.27),transparent 30%),radial-gradient(circle at 0 100%,rgba(209,166,90,.1),transparent 35%),linear-gradient(125deg,#091d15,#0c4633);box-shadow:0 22px 50px rgba(12,57,41,.17);border:1px solid rgba(255,255,255,.08)}
.hero:after{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);background-size:32px 32px;mask-image:linear-gradient(90deg,transparent,black);pointer-events:none}.hero>div:first-child,.hero-button{position:relative;z-index:2}
.hero-cards{position:absolute!important;right:215px;bottom:-70px;width:180px;height:180px;z-index:1!important;opacity:.15}.hero-cards i{position:absolute;width:96px;height:132px;border:1px solid white;border-radius:13px;display:flex;align-items:flex-start;padding:11px;font-family:Georgia,serif;font-size:19px;font-style:normal}.hero-cards i:first-child{transform:rotate(-12deg);left:15px}.hero-cards i:last-child{transform:rotate(9deg);left:62px;top:4px}
.hero-button{padding:14px 19px;box-shadow:0 10px 24px rgba(0,0,0,.16);transition:.2s}.hero-button:hover{transform:translateY(-2px)}
.stat-card,.student-card{background:linear-gradient(145deg,#fff,#fbfcfa);border-color:rgba(215,223,217,.9);border-radius:17px;box-shadow:0 6px 22px rgba(21,47,35,.04);transition:.2s}.stat-card:hover,.student-card:hover{transform:translateY(-3px);border-color:#bfd8cc;box-shadow:0 13px 28px rgba(21,47,35,.08)}.panel{border-radius:18px;padding:23px;box-shadow:0 7px 24px rgba(30,50,40,.04)}
.student-credit{background:linear-gradient(90deg,#f2f7f4,#f8faf8)}
@media(max-width:760px){main{margin-left:0;padding:0 16px 35px}.workspace-switch{display:none}.hero-cards{right:-20px!important}}

.studio-video{position:relative;z-index:2;width:100%;height:100%;display:block;object-fit:contain;background:#050806}
.resume-overlay{position:absolute;z-index:35;inset:0 0 48px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:#050806;color:#fff;pointer-events:none}.resume-overlay strong{font-size:18px}.resume-overlay small{font-size:13px;color:#d5ddd9}.resume-spinner{width:32px;height:32px;border:3px solid rgba(255,255,255,.24);border-top-color:#ffe16a;border-radius:50%;animation:resume-spin .75s linear infinite}.resume-progress{width:min(320px,70%);height:8px;overflow:hidden;border-radius:999px;background:#35403b}.resume-progress i{display:block;width:0;height:100%;border-radius:inherit;background:#ffe16a;transition:width .3s ease}.resume-overlay button{pointer-events:auto;margin-top:8px;padding:10px 15px;border:1px solid #fff;border-radius:9px;background:#fff;color:#173128;font-weight:800;cursor:pointer}.video-mock:not(.restoring-position) .resume-overlay{display:none}@keyframes resume-spin{to{transform:rotate(360deg)}}
.course-outline-toggle{position:fixed;z-index:80;top:10px;right:205px;padding:10px 14px;border:1px solid #ffe16a;border-radius:8px;background:#26310f;color:#ffe16a;font-weight:900;cursor:pointer;box-shadow:0 5px 18px rgba(0,0,0,.35)}.course-outline-toggle:hover{background:#4a561d;color:#fff}
.spot-card-actions{display:flex!important;justify-content:flex-end;margin-top:8px}.spot-card-actions [data-delete-spot]{padding:4px 7px;border:1px solid #96565b;border-radius:5px;color:#ffb8bd;font-size:10px;font-weight:800}.spot-card-actions [data-delete-spot]:hover{background:#742d34;color:#fff}
.main-tag-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:8px 0 10px}.main-tag-fields label{display:flex;flex-direction:column;gap:4px}.main-tag-fields select{min-width:0;padding:7px;border:1px solid #d7dfdb;border-radius:7px;background:#fff;font-size:12px}@media(max-width:760px){.main-tag-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
.video-tag-settings{margin:8px 0 12px;padding:9px 10px;border:1px solid #d7dfdb;border-radius:10px;background:#f7faf8}.video-tag-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.video-tag-head strong,.video-tag-head small{display:block}.video-tag-head small,.video-tag-status{color:#68766f;font-size:10px;margin-top:2px}.video-tag-import{padding:6px 9px;font-size:10px;white-space:nowrap}.video-tag-reference{display:flex;align-items:center;gap:7px;margin-top:7px}.video-tag-reference img{width:88px;height:32px;object-fit:contain;background:#17211d;border-radius:6px}.video-tag-reference span{font-size:10px;flex:1}.video-tag-reference button{border:0;background:none;color:#b23a3a;font-size:10px}.opponent-tags-details{margin-top:7px}.opponent-tags-details summary{cursor:pointer;color:#45584f;font-size:10px}.opponent-tag-list{display:flex;flex-wrap:wrap;gap:5px;margin:7px 0 3px}.opponent-tag-choice{display:flex;align-items:center;gap:4px;padding:4px 6px;background:#fff;border:1px solid #dce3df;border-radius:999px;font-size:9px}.opponent-tag-choice i{width:9px;height:9px;border-radius:50%;background:var(--tag-color);box-shadow:0 0 0 1px rgba(0,0,0,.18)}
.detected-player-line{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 8px}.detected-player{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border:1px solid #d8e1dc;border-radius:999px;background:#f6faf8;font-size:10px}.detected-player b{color:#17372a}.detected-player i{width:9px;height:9px;border-radius:50%;background:var(--tag-color);box-shadow:0 0 0 1px rgba(0,0,0,.16)}.detected-player em{font-style:normal;color:#44564e}
.spot-players{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin:5px 0}.spot-players small{width:auto!important;color:#89958f!important;margin-right:2px}.spot-players i{display:inline-flex;align-items:center;gap:4px;padding:2px 6px;border-radius:999px;background:#111b17;color:#fff;font-size:8px;font-style:normal}.spot-players i:before{content:"";width:7px;height:7px;border-radius:50%;background:var(--player-colour)}
.studio-video.table-zoomed{position:absolute;max-width:none;max-height:none;object-fit:fill;transition:width .22s ease,height .22s ease,left .22s ease,top .22s ease}
.table-mosaic{position:absolute;z-index:3;inset:0;background:#050806}.table-mosaic[hidden]{display:none}.scene-canvas{display:block;width:100%;height:100%;background:#050806}
.video-mock:before{pointer-events:none}
.question-builder[hidden]{display:none}.cut-ready{display:flex;align-items:center;gap:10px;margin:-2px 0 14px;padding:10px;border-radius:9px;background:#e8f5ee;color:#146b4d}.cut-ready>span{width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:#2d936b;color:#fff}.cut-ready strong,.cut-ready small{display:block}.cut-ready strong{font-size:11px}.cut-ready small{margin-top:2px;font-size:9px;color:#4d7463}
.cut-ready>div:nth-child(2){margin-right:auto}.verify-actions{display:flex;gap:6px}.verify-actions button{border:1px solid #9bcab5;border-radius:8px;background:white;color:#176b4c;padding:8px 10px;font-size:9px;font-weight:900;cursor:pointer}.verify-actions .confirm-cut{border-color:#2d936b;background:#2d936b;color:white}#questionFields[hidden]{display:none}
.question-builder textarea{box-sizing:border-box;width:100%;margin-top:7px;border:1px solid var(--line);border-radius:9px;padding:11px 12px;resize:vertical;font:inherit;font-weight:600;color:var(--ink);outline:none}.question-builder textarea:focus{border-color:#43a77b;box-shadow:0 0 0 3px rgba(67,167,123,.1)}.question-note{margin:7px 0 0!important;color:var(--muted);font-size:9px!important}
.situation-summary-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:4px}.situation-summary-head label{margin:0!important}.situation-summary-head button{border:0;background:transparent;color:#8b5c14;font-size:10px;font-weight:900;cursor:pointer}.situation-summary-head+textarea{min-height:62px;background:#fffdf5;border-color:#dfca7d}
.replace-question-frame{width:100%;margin:8px 0 2px;padding:10px;border:1px solid #c9a933;border-radius:8px;background:#fffaf0;color:#715b0b;font-size:11px;font-weight:900;cursor:pointer}
.save-question-frame{position:absolute;z-index:45;left:50%;bottom:58px;transform:translateX(-50%);padding:12px 18px;border:1px solid #ffe16a;border-radius:9px;background:#171b19;color:#ffe16a;font-size:13px;font-weight:950;box-shadow:0 8px 24px rgba(0,0,0,.45);cursor:pointer}
.preview-summary-label{display:block;margin-top:14px;color:#7a806f;font-size:9px;font-weight:900;letter-spacing:.8px}#previewCategory{display:block;margin:5px 0 14px}
.save-status{min-height:16px;margin:7px 2px 0!important;font-size:10px!important;font-weight:800}.save-status.saving{color:#4d6c5d}.save-status.error{padding:8px 10px;border-radius:7px;background:#fff0f0;color:#9c3030}
.question-builder select{box-sizing:border-box;width:100%;margin-top:7px;border:1px solid var(--line);border-radius:9px;background:#fff;padding:10px 12px;color:var(--ink);font-weight:700}.question-builder textarea+label{display:block;margin-top:14px}.choice-builder-head{display:flex;justify-content:space-between;align-items:center;margin-top:13px}.choice-builder-head strong{font-size:10px}.choice-builder-head button{border:0;background:transparent;color:#16704f;font-size:9px;font-weight:900;cursor:pointer}.answer-choice{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;margin-top:7px}.answer-choice>input[type="text"]{box-sizing:border-box;width:100%;border:1px solid var(--line);border-radius:8px;padding:9px 10px}.answer-choice>input[type="radio"]{accent-color:#2e936a}.remove-choice{border:0;background:transparent;color:#a64b4b;font-size:18px;cursor:pointer}
.control-console{position:sticky;z-index:6;bottom:8px;margin-top:9px;padding:9px;border:1px solid #bdd7ca;border-radius:13px;background:rgba(255,255,255,.98);box-shadow:0 10px 28px rgba(8,38,25,.16);backdrop-filter:blur(10px)}.console-head{display:flex;align-items:center;justify-content:space-between;padding:2px 5px 4px}.console-head>div{display:grid;gap:2px}.console-head small{font-size:7px;letter-spacing:.8px;color:#6d8c7e}.console-head strong{font-size:10px;color:#245b45}.console-head span{font-variant-numeric:tabular-nums;font-size:11px;font-weight:900}.control-console .table-zones{margin:4px 0 7px}.control-console .clip-controls{margin-top:0;padding:7px;gap:7px}.clip-controls .transport{margin-left:0;white-space:nowrap}
.play-stack{display:grid;gap:4px;min-width:96px}.play-stack .transport{width:100%}.loop-mini{border:1px solid #cddbd4;border-radius:7px;background:#f5f8f6;color:#37604e;padding:4px 7px;font-size:8px;font-weight:800;cursor:pointer}.control-console .clip-controls{display:grid;grid-template-columns:auto minmax(96px,1fr) minmax(105px,1fr) minmax(105px,1fr) auto;align-items:center}.control-console .time-pick{height:100%}@media(max-width:720px){.control-console .clip-controls{grid-template-columns:repeat(2,1fr)}.play-stack{grid-row:span 2}}
.play-options{display:grid;grid-template-columns:1fr auto;gap:4px}.play-options select{border:1px solid #cddbd4;border-radius:7px;background:#f5f8f6;color:#285441;padding:3px 5px;font-size:8px;font-weight:900}
.video-seek{display:block;width:100%;height:18px;margin:2px 0;accent-color:#d9ad16;cursor:pointer}.video-seek:disabled{opacity:.35;cursor:not-allowed}#appDialog.analysis-mode .play-stack{display:grid!important;grid-template-rows:38px 18px;gap:3px}#appDialog.analysis-mode .play-stack .video-seek{display:block!important;height:18px}
.crop-layer{position:absolute;z-index:4;inset:0;background:rgba(3,12,8,.12);pointer-events:none}.crop-layer.selecting{pointer-events:auto;cursor:crosshair;background:rgba(3,12,8,.38)}.crop-box{position:absolute;border:2px solid rgba(112,226,173,.65);background:rgba(56,185,125,.05)}.crop-box.active,.crop-box.draft{border:3px solid #70e2ad;background:rgba(56,185,125,.13);box-shadow:0 0 0 9999px rgba(3,12,8,.22)}.crop-box span{position:absolute;left:-3px;top:-25px;padding:5px 7px;border-radius:5px 5px 0 0;background:#43b983;color:white;font-size:7px;font-weight:900;letter-spacing:.8px;white-space:nowrap}.table-selector{display:flex;align-items:center;gap:9px;margin-top:12px;padding:10px 12px;border:1px solid #cfe0d7;border-radius:11px;background:#f5faf7}.table-selector>div{margin-right:auto}.table-selector small,.table-selector strong{display:block}.table-selector small{font-size:7px;color:#5c806f;letter-spacing:.9px}.table-selector strong{margin-top:3px;font-size:10px}.text-button{border:0;background:transparent;color:#277557;font-size:9px;font-weight:800;cursor:pointer}.table-zones{display:flex;gap:7px;flex-wrap:wrap;margin:8px 1px 2px}.zone-chip{border:1px solid var(--line);border-radius:20px;background:white;padding:7px 11px;color:#52655c;font-size:9px;font-weight:800;cursor:pointer}.zone-chip.active{border-color:#3ca476;background:#e7f5ee;color:#116b4b}
.cut-help{margin:10px 2px!important;padding:10px 12px;border-radius:9px;background:#eef6f2;color:#315f4c;font-size:11px!important;font-weight:700;line-height:1.5}
.save-cut{width:100%;margin-top:8px}.play-draft-sequence{width:100%;margin-top:14px}.question-builder label+input+label{display:block;margin-top:14px}.clip-controls{flex-wrap:wrap}
.video-actions{display:flex;align-items:center;gap:10px}.danger-link{border:0;background:transparent;color:#a33d3d;font-size:11px;font-weight:800;cursor:pointer;padding:7px}.danger-link:hover{text-decoration:underline}.course-link-label{display:block;margin-top:6px;color:#4b725f;font-size:10px}
.course-picker{display:grid;grid-template-columns:auto minmax(280px,1fr);align-items:center;gap:16px;margin:18px 0;padding:14px 16px;border:1px solid #cfe0d7;border-radius:12px;background:#f2f8f5}.course-picker span{font-size:9px;font-weight:900;letter-spacing:1px;color:#39705a}.course-picker select{width:100%;border:1px solid var(--line);border-radius:9px;background:white;color:var(--ink);padding:11px 12px;font-weight:700}@media(max-width:650px){.course-picker{grid-template-columns:1fr}}
.time-pick{border:1px solid var(--line);background:#f4f7f5;padding:8px 12px;border-radius:8px;text-align:left;color:var(--ink);cursor:pointer}.time-pick:hover{border-color:#35a977;background:#edf7f2}.time-pick small,.time-pick strong{display:block}.time-pick small{font-size:7px;color:var(--muted);letter-spacing:.8px}.time-pick strong{font-size:12px;margin-top:3px}.empty-spots{padding:18px 10px!important;color:var(--muted);font-size:10px!important;line-height:1.5}.clip-controls .primary:disabled{opacity:.45;cursor:not-allowed}
.spot-list{transition:border-color .25s,box-shadow .25s}.spot-list.flash{border-color:#52b98b;box-shadow:0 0 0 4px rgba(82,185,139,.13)}.spot-list-head>div small,.spot-list-head>div strong{display:block}.spot-list-head>div small{margin-bottom:4px;color:#43806a;font-size:7px;letter-spacing:1px}.spot-list-head>span{padding:5px 7px;border-radius:20px;background:#e4f2eb;color:#247353!important;font-weight:800;white-space:nowrap}.spot em{display:block;margin-top:5px;color:#263d33;font-size:9px;font-style:normal;line-height:1.35}.spot.just-added{background:#fff;border-color:#71c49e;animation:spot-arrives .75s ease-out}@keyframes spot-arrives{0%{opacity:0;transform:translateX(-24px)}55%{transform:translateX(4px)}100%{opacity:1;transform:none}}

#appDialog:has(.studio-layout){width:calc(100vw - 24px);max-width:1680px;max-height:calc(100vh - 24px);padding:22px}.studio-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:14px}.studio-head h2{margin-top:6px}.studio-head p{margin-bottom:0!important}.studio-head-actions{display:flex;align-items:center;gap:9px}.studio-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:16px}.video-mock{position:relative;height:clamp(460px,60vh,760px);border-radius:16px;background:#050806;overflow:hidden;box-shadow:inset 0 0 70px rgba(0,0,0,.35)}#appDialog.analysis-mode{position:fixed;inset:6px;width:auto;max-width:none;height:auto;max-height:none;margin:0}#appDialog.analysis-mode .video-mock{height:calc(100vh - 305px);min-height:500px}#appDialog.analysis-mode .studio-head{margin-bottom:9px}#appDialog.analysis-mode .cut-help{display:none}.video-mock:before{content:"";position:absolute;inset:0;background:linear-gradient(115deg,rgba(255,255,255,.04),transparent 35%)}.table-felt{position:absolute;left:14%;right:14%;top:16%;bottom:18%;border:8px solid #2d302c;border-radius:50%;background:radial-gradient(circle,#16714f,#0c5038);box-shadow:0 18px 30px rgba(0,0,0,.4),inset 0 0 0 3px #6a4b2b}.seat{position:absolute;background:#f8faf8;color:#152019;border-radius:7px;padding:7px 9px;font-weight:800;font-size:11px;box-shadow:0 5px 10px rgba(0,0,0,.25)}.s1{bottom:-10px;left:39%}.s2{top:-10px;left:44%;background:#25342d;color:white}.pot{position:absolute;left:45%;top:39%;font-size:8px;text-align:center;color:#c8ddd3}.pot b{font-size:13px;color:white}.board{position:absolute;top:55%;left:27%;background:#fff;border-radius:6px;padding:8px;font-weight:800;font-size:13px;letter-spacing:3px}.board b{color:#ba3540}.play-button{position:absolute;left:22px;bottom:18px;width:42px;height:42px;border:0;border-radius:50%;background:white;color:#0c563d;font-weight:900}.video-time{position:absolute;left:78px;right:20px;bottom:28px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;color:#d8e5df;font-size:9px}.video-time i{height:4px;background:rgba(255,255,255,.25);border-radius:5px}.video-time b{display:block;width:27%;height:100%;background:#67d6a4}.clip-controls{display:flex;align-items:center;gap:12px;margin-top:12px;padding:10px;border:1px solid var(--line);border-radius:12px}.clip-controls>div{background:#f4f7f5;padding:8px 12px;border-radius:8px}.clip-controls small,.clip-controls strong{display:block}.clip-controls small{font-size:7px;color:var(--muted);letter-spacing:.8px}.clip-controls strong{font-size:12px;margin-top:3px}.clip-controls .primary{margin-left:auto}.question-builder{margin-top:12px;border:1px solid var(--line);border-radius:12px;padding:14px}.question-builder label{font-size:8px;color:var(--muted);font-weight:800;letter-spacing:.8px}.question-builder input{width:100%;border:0;border-bottom:1px solid var(--line);padding:10px 0;font-weight:700;color:var(--ink);outline:none}.choice-row{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:12px}.choice-row button{border:1px solid var(--line);background:#fff;border-radius:8px;padding:8px;font-size:9px}.choice-row button.selected{border-color:#35a977;background:#e7f5ee;color:#08704d}.spot-list{border:1px solid var(--line);border-radius:14px;padding:12px;background:#f7f9f7}.spot-list-head{display:flex;justify-content:space-between;padding:5px 6px 12px;font-size:11px}.spot-list-head span{color:var(--muted)}.spot{width:100%;display:flex;gap:10px;align-items:center;border:1px solid transparent;background:transparent;border-radius:10px;padding:11px;text-align:left;margin-bottom:5px}.spot.active{background:#fff;border-color:#cde2d7;box-shadow:0 5px 15px rgba(20,60,40,.06)}.spot>b{width:28px;height:28px;border-radius:8px;background:#e5f2ec;color:#177655;display:grid;place-items:center;font-size:9px}.spot span{flex:1}.spot strong,.spot small{display:block}.spot strong{font-size:10px}.spot small{font-size:8px;color:var(--muted);margin-top:4px}.studio-note{display:flex;gap:8px;margin:18px 5px 5px;padding:12px;border-radius:9px;background:#eef5f1;color:#2e6350}.studio-note p{font-size:9px!important;line-height:1.45;margin:0!important}.studio-note span{color:#bd914a}@media(max-width:900px){.studio-layout{grid-template-columns:1fr}.spot-list{max-height:260px;overflow:auto}.video-mock{height:52vh;min-height:390px}}

/* Espace de travail coach réellement plein écran. */
#appDialog:fullscreen,#appDialog.analysis-mode{box-sizing:border-box;inset:0;width:100vw;max-width:none;height:100vh;max-height:none;margin:0;padding:14px 18px;border:0;border-radius:0;background:#f4f7f5;overflow:auto}
#appDialog:fullscreen::backdrop{background:#f4f7f5}
#appDialog:fullscreen .studio-head,#appDialog.analysis-mode .studio-head{margin-bottom:8px}
#appDialog:fullscreen .studio-head p,#appDialog.analysis-mode .studio-head p,#appDialog:fullscreen .cut-help,#appDialog.analysis-mode .cut-help{display:none}
#appDialog:fullscreen .studio-layout,#appDialog.analysis-mode .studio-layout{grid-template-columns:minmax(0,1fr) 300px;gap:12px}
#appDialog:fullscreen .video-mock,#appDialog.analysis-mode .video-mock{height:calc(100vh - 285px);min-height:430px;border-radius:12px}
#appDialog:fullscreen .table-selector,#appDialog.analysis-mode .table-selector{margin-top:8px;padding:8px 12px}
#appDialog:fullscreen .control-console,#appDialog.analysis-mode .control-console{position:sticky;bottom:0;z-index:12;margin-top:8px;padding:8px;background:rgba(255,255,255,.97);box-shadow:0 -8px 22px rgba(16,48,34,.1)}
#appDialog:fullscreen .clip-controls,#appDialog.analysis-mode .clip-controls{margin-top:6px;padding:7px}
#appDialog:fullscreen .spot-list,#appDialog.analysis-mode .spot-list{max-height:calc(100vh - 92px);overflow:auto}
#appDialog:fullscreen .question-builder:not([hidden]),#appDialog.analysis-mode .question-builder:not([hidden]){position:fixed;z-index:30;top:78px;right:18px;bottom:18px;box-sizing:border-box;width:360px;margin:0;padding:16px;background:#fff;overflow:auto;box-shadow:0 18px 55px rgba(8,35,24,.28)}
#appDialog:fullscreen .dialog-actions,#appDialog.analysis-mode .dialog-actions{display:none}
#appDialog:fullscreen .studio-layout,#appDialog.analysis-mode .studio-layout{grid-template-columns:minmax(0,1fr)}
#appDialog:fullscreen .spot-list,#appDialog.analysis-mode .spot-list{display:none}
#appDialog:fullscreen .control-console,#appDialog.analysis-mode .control-console{box-sizing:border-box;width:min(1180px,100%);margin-left:auto;margin-right:auto}
#appDialog:fullscreen .table-selector,#appDialog.analysis-mode .table-selector{box-sizing:border-box;width:min(1180px,100%);margin-left:auto;margin-right:auto}
#appDialog:fullscreen .studio-main,#appDialog.analysis-mode .studio-main{position:relative}
#appDialog:fullscreen .video-mock,#appDialog.analysis-mode .video-mock{height:calc(100vh - 205px);min-height:500px}
#appDialog:fullscreen .table-selector,#appDialog.analysis-mode .table-selector{display:none}
.add-table-chip{margin-left:auto;border-style:dashed;color:#176f51}
.table-mosaic{cursor:crosshair}
.hover-table-outline{display:none!important}.manual-selection-box{position:absolute;z-index:24;box-sizing:border-box;border:3px solid #70e2ad;background:rgba(56,185,125,.12);box-shadow:0 0 0 9999px rgba(3,12,8,.28);pointer-events:none}
.manual-framing-only #tableZones{display:none!important}
.shortcut-chip{display:block;margin:0 auto 5px;border:0;background:transparent;color:#39705a;font-size:9px;font-weight:800;cursor:pointer}.shortcut-panel{position:absolute;z-index:50;left:50%;bottom:96%;transform:translateX(-50%);width:310px;padding:14px;border:1px solid #b9d5c8;border-radius:14px;background:#fff;box-shadow:0 16px 45px rgba(0,0,0,.25)}.shortcut-panel strong,.shortcut-panel small{display:block}.shortcut-panel label{display:flex;align-items:center;gap:8px;margin-top:10px;font-size:12px}.shortcut-panel small{margin:10px 0;color:#668073}.shortcut-panel button{width:100%;padding:9px;border:0;border-radius:8px;background:#397d5e;color:#fff;font-weight:800}
.cut-armed .hover-table-outline:after{content:'✂';position:absolute;right:8px;top:8px;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#ffd84a;color:#241d00;font-size:18px;box-shadow:0 5px 16px rgba(0,0,0,.35)}.video-mock.rewinding:after{content:'↶ RETOUR';position:absolute;z-index:20;left:50%;top:45%;transform:translate(-50%,-50%);padding:12px 18px;border-radius:30px;background:rgba(8,25,18,.88);color:#fff;font-size:18px;font-weight:900;pointer-events:none}.cancel-cut{color:#a52e36!important;border-color:#e7b8bb!important}
#appDialog.analysis-mode{padding:0;background:#050806}
#appDialog.analysis-mode .studio-head,#appDialog.analysis-mode .cut-help{display:none}
#appDialog.analysis-mode .studio-main{position:fixed;inset:0;background:#050806}
#appDialog.analysis-mode .video-mock{width:100vw;height:calc(100vh - 190px);border-radius:0}
#appDialog.analysis-mode .control-console{bottom:0;width:min(1120px,calc(100vw - 20px));border-radius:16px 16px 0 0}
.close-studio{position:fixed;z-index:80;top:10px;left:12px;right:auto;width:auto;height:40px;padding:0 14px;border:1px solid rgba(255,255,255,.5);border-radius:8px;background:rgba(8,25,18,.92);color:#fff;font-size:13px;font-weight:900;line-height:1;cursor:pointer;box-shadow:0 6px 18px rgba(0,0,0,.3)}
#appDialog:fullscreen,#appDialog.analysis-mode{overflow:hidden}
#appDialog:fullscreen .studio-head,#appDialog.analysis-mode .studio-head{position:fixed;z-index:40;top:10px;right:12px;margin:0}
#appDialog:fullscreen .studio-head>div:first-child,#appDialog.analysis-mode .studio-head>div:first-child,#appDialog:fullscreen .studio-head .tag,#appDialog.analysis-mode .studio-head .tag{display:none}
#appDialog:fullscreen .studio-head-actions,#appDialog.analysis-mode .studio-head-actions{display:block}
#appDialog:fullscreen #toggleAnalysisMode,#appDialog.analysis-mode #toggleAnalysisMode{border-color:#fff;background:rgba(9,35,25,.88);color:#fff;box-shadow:0 5px 20px rgba(0,0,0,.28)}
#appDialog:fullscreen .studio-layout,#appDialog.analysis-mode .studio-layout,#appDialog:fullscreen .studio-main,#appDialog.analysis-mode .studio-main{height:100%}
#appDialog:fullscreen .video-mock,#appDialog.analysis-mode .video-mock{height:calc(100vh - 225px);min-height:0}
#appDialog:fullscreen .control-console,#appDialog.analysis-mode .control-console{position:fixed;left:50%;right:auto;bottom:8px;width:min(1080px,calc(100vw - 36px));max-width:none;margin:0;transform:translateX(-50%)}
#appDialog:fullscreen .table-zones,#appDialog.analysis-mode .table-zones{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto}
#appDialog:fullscreen .add-table-chip,#appDialog.analysis-mode .add-table-chip{margin-left:8px}
#appDialog:fullscreen .clip-controls,#appDialog.analysis-mode .clip-controls{display:grid;grid-template-columns:78px 78px minmax(210px,330px) minmax(140px,1fr) minmax(140px,1fr) 88px;gap:7px}
#appDialog.analysis-mode #rewindTen,#appDialog.analysis-mode #forwardTen,#appDialog.analysis-mode .shortcut-chip,#appDialog.analysis-mode .shortcut-panel{display:none!important}#appDialog.analysis-mode .clip-controls{grid-template-columns:minmax(240px,380px) minmax(150px,1fr) minmax(150px,1fr)}
#appDialog:fullscreen .clip-controls>* ,#appDialog.analysis-mode .clip-controls>*{min-width:0}
#appDialog:fullscreen .clip-controls .primary,#appDialog.analysis-mode .clip-controls .primary{margin-left:0;width:100%}
#appDialog.analysis-mode .studio-main{left:196px}
#appDialog.analysis-mode .video-mock{width:calc(100vw - 196px);height:100vh}
#appDialog.analysis-mode .control-console{left:7px;top:7px;bottom:7px;width:180px;transform:none;border-radius:11px;overflow-y:auto;padding:8px;box-shadow:0 8px 24px rgba(0,0,0,.22)}
#appDialog.analysis-mode .console-head{align-items:flex-start;padding:5px 3px 10px}
#appDialog.analysis-mode .console-head strong{font-size:11px;line-height:1.35}
#appDialog.analysis-mode .table-zones{display:grid;grid-template-columns:1fr 1fr;gap:6px;overflow:visible;margin:0 0 10px}
#appDialog.analysis-mode .table-zones .zone-chip{min-width:0;padding:7px 5px;text-align:center}
#appDialog.analysis-mode .table-zones .zone-chip:not([data-zone="screen"]):not(.add-table-chip){justify-self:center;width:58px;height:58px;padding:8px;border:4px solid #fff1a6;border-radius:50%;background:repeating-conic-gradient(#ffd84a 0 12deg,#f4b900 12deg 24deg);color:#241d00;box-shadow:inset 0 0 0 3px #d39d00,0 3px 8px rgba(0,0,0,.2);font-size:9px;font-weight:950;text-shadow:0 1px rgba(255,255,255,.5)}
#appDialog.analysis-mode .table-zones .zone-chip:not([data-zone="screen"]):not(.add-table-chip).active{border-color:#fff;background:repeating-conic-gradient(#ffe66d 0 12deg,#ffc400 12deg 24deg);box-shadow:inset 0 0 0 3px #bd8500,0 0 0 3px #fff,0 0 18px rgba(255,216,74,.72)}
#appDialog.analysis-mode .table-zones [data-zone="screen"],#appDialog.analysis-mode .add-table-chip{grid-column:1/-1;margin-left:0}
#appDialog.analysis-mode .clip-controls{display:flex;flex-direction:column;gap:7px;padding:0;border:0}
#appDialog.analysis-mode .clip-controls>*{width:100%;min-height:42px;box-sizing:border-box}
#appDialog.analysis-mode .clip-controls .primary{padding:9px 8px;font-size:12px}
#appDialog.analysis-mode .time-pick{padding:7px 9px}
.capture-frame{width:100%;margin:0 0 9px;padding:8px;border:1px solid #d8bd43;border-radius:8px;background:#fff8cf;color:#4b3a00;font-size:10px;font-weight:900;cursor:pointer}.capture-frame:hover{background:#ffe66d}.capture-frame:disabled{opacity:.45;cursor:not-allowed}
.timeline-hud{position:absolute;z-index:22;left:50%;bottom:18px;transform:translateX(-50%);padding:7px 12px;border-radius:7px;background:rgba(4,12,9,.82);color:#fff;font-size:14px;font-weight:900;font-variant-numeric:tabular-nums;pointer-events:none}.capture-preview{display:block;width:100%;height:auto;max-height:42vh;margin:10px 0;object-fit:contain;border-radius:9px;background:#050806}.media-totals{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:10px}.media-totals b{padding:7px;border-radius:7px;background:#fff8cf;color:#4b3a00;font-size:10px;text-align:center}.final-preview{position:sticky;bottom:0;z-index:4;margin-top:10px;padding:12px;border:2px solid #ffd84a;border-radius:10px;background:#fff}.full-frame-preview{display:block;width:100%;height:auto;max-height:52vh;margin:0 0 14px;object-fit:contain;border-radius:10px;background:#050806}.final-preview small,.final-preview strong,.final-preview em{display:block}.final-preview strong{margin-top:7px}.final-preview p{margin:8px 0;font-size:12px;line-height:1.4}.final-preview em{color:#6a5920;font-size:10px}.final-preview button{width:100%;margin-top:10px;padding:7px;border:0;border-radius:7px;background:#263d33;color:#fff;font-weight:800}
#appDialog.analysis-mode .spot-list{display:block;position:fixed;z-index:18;top:7px;right:7px;bottom:7px;width:236px;max-height:none;box-sizing:border-box;overflow:auto;border-radius:11px;box-shadow:0 8px 24px rgba(0,0,0,.22)}
#appDialog.analysis-mode .studio-main{right:250px}
#appDialog.analysis-mode .video-mock{width:calc(100vw - 446px)}
#appDialog.analysis-mode .studio-main{left:154px;right:250px}
#appDialog.analysis-mode .video-mock{width:calc(100vw - 404px)}
#appDialog.analysis-mode .control-console{width:140px;background:rgba(22,25,24,.97);border-color:#3c4541;color:#fff}
#appDialog.analysis-mode .console-head>div,#appDialog.analysis-mode .capture-frame,#appDialog.analysis-mode #setStart,#appDialog.analysis-mode #setEnd{display:none!important}
#appDialog.analysis-mode .console-head{justify-content:center;padding:4px 0 9px}
#appDialog.analysis-mode .console-head span{color:#ffd84a;font-size:13px}
#appDialog.analysis-mode .table-zones{grid-template-columns:1fr;justify-items:center}
#appDialog.analysis-mode .table-zones [data-zone="screen"],#appDialog.analysis-mode .add-table-chip{width:100%;grid-column:auto;background:#303633;border-color:#525d58;color:#fff}
#appDialog.analysis-mode .clip-controls{background:transparent}
#appDialog.analysis-mode .play-options select,#appDialog.analysis-mode .loop-mini{background:#303633;border-color:#525d58;color:#fff}
/* Régie double platine : source à gauche, montage à droite, commandes en bas. */
#appDialog.analysis-mode .studio-main{position:fixed;left:0;right:50%;top:0;bottom:116px}
#appDialog.analysis-mode .video-mock{width:100%;height:100%;border-right:2px solid #3d4642}
#appDialog.analysis-mode .spot-list{display:block;position:fixed;left:50%;right:0;top:0;bottom:116px;width:auto;max-height:none;padding:18px;border:0;border-radius:0;background:#171b1a;color:#eef3f0;box-shadow:inset 1px 0 #424b47;overflow:auto}
#appDialog.analysis-mode .spot-list-head{position:sticky;top:-18px;z-index:3;margin:-18px -18px 12px;padding:16px 18px 12px;background:#222826;border-bottom:1px solid #414a46}
#appDialog.analysis-mode .spot-list-head>div small{color:#ffd84a;font-size:10px}.spot-list-head>div strong{font-size:15px}
#appDialog.analysis-mode .media-totals b{background:#303633;color:#ffd84a}
#appDialog.analysis-mode #savedSpots{display:flex;align-items:stretch;gap:10px;min-height:150px;padding:32px 8px 18px;border-radius:9px;background:repeating-linear-gradient(90deg,#202523 0 39px,#313735 40px);overflow-x:auto}
#appDialog.analysis-mode #savedSpots .spot{flex:0 0 190px;margin:0;border:1px solid #59625e;background:#292f2d;color:#fff;box-shadow:0 8px 18px rgba(0,0,0,.3)}
#appDialog.analysis-mode #savedSpots .spot em{color:#d9e2de}#appDialog.analysis-mode #savedSpots .spot small{color:#ffd84a}
#appDialog.analysis-mode .studio-note{background:#272e2b;color:#c7d2cd}
#appDialog.analysis-mode .control-console{display:block;position:fixed;left:10px;right:10px;top:auto;bottom:8px;width:auto;height:96px;padding:9px 14px;border:1px solid #4a5550;border-radius:10px;background:#1b201e;overflow:hidden;transform:none}
#appDialog.analysis-mode .control-console .console-head,#appDialog.analysis-mode .control-console .clip-controls,#appDialog.analysis-mode .control-console .capture-frame,#appDialog.analysis-mode .control-console .shortcut-chip,#appDialog.analysis-mode .control-console .shortcut-panel{display:none!important}
#appDialog.analysis-mode .control-console .table-zones{display:flex;align-items:center;justify-content:center;gap:9px;height:100%;margin:0;overflow-x:auto}
#appDialog.analysis-mode .control-console .table-zones .zone-chip{flex:0 0 auto}
#appDialog.analysis-mode .control-console .table-zones [data-zone="screen"],#appDialog.analysis-mode .control-console .add-table-chip{width:auto;min-width:130px}
#appDialog.analysis-mode .timeline-hud{bottom:14px}
#appDialog.analysis-mode .question-builder:not([hidden]){top:0;right:0;bottom:116px;width:50%;border-radius:0;box-shadow:-14px 0 40px rgba(0,0,0,.38)}
.coach-note-block{margin-bottom:15px;padding:12px;border:1px solid #ead36a;border-radius:9px;background:#fff9dc}.coach-note-block textarea{box-sizing:border-box;width:100%;margin-top:7px;padding:9px;border:1px solid #d7c572;border-radius:7px;resize:vertical}.student-toggle{display:flex!important;align-items:center;gap:8px;margin-top:10px!important;color:#3f3a24!important;font-size:12px!important;letter-spacing:0!important}.student-toggle input{width:auto!important;margin:0}
.commentary-track{display:grid;grid-template-columns:minmax(150px,1fr) auto auto;align-items:center;gap:8px;margin:10px 0;padding:11px;border:1px solid #d7c572;border-radius:9px;background:#171c1a;color:#fff}.commentary-track strong,.commentary-track small,.commentary-track span{display:block}.commentary-track strong{font-size:10px;color:#ffe36a}.commentary-track small,.commentary-track span{font-size:9px;color:#b7c1bc}.commentary-track button{padding:8px 10px;border:1px solid #5d6863;border-radius:7px;background:#303633;color:#fff;font-weight:900;cursor:pointer}.commentary-track button.recording{border-color:#ff665c;background:#852b27;color:#fff;animation:record-pulse 1s infinite}.commentary-track audio{grid-column:1/-1;width:100%;height:34px}.commentary-track>span{grid-column:1/-1}@keyframes record-pulse{50%{box-shadow:0 0 0 5px rgba(255,82,72,.18)}}
.question-builder #questionFields[data-section]{position:relative;margin-top:14px;padding-top:18px;border-top:1px solid #d7c572}.question-builder #questionFields[data-section]:before{content:attr(data-section);position:absolute;left:0;top:-7px;padding-right:8px;background:#fff;color:#8b6b00;font-size:8px;font-weight:950;letter-spacing:.8px}
#appDialog.analysis-mode .play-stack{order:1;width:100%}
#appDialog.analysis-mode #setStart{order:2}
#appDialog.analysis-mode #setEnd{order:3}

/* Barre de lecture compacte : réglages, tables et lecture restent toujours accessibles. */
#appDialog.analysis-mode .studio-main,#appDialog.analysis-mode .spot-list{bottom:118px}
#appDialog.analysis-mode .control-console{height:102px;padding:7px 12px;display:grid;grid-template-rows:42px 40px;gap:4px;overflow:visible}
#appDialog.analysis-mode .control-console .table-zones{height:42px;justify-content:flex-start;gap:7px;padding:0 2px;overflow-x:auto}
#appDialog.analysis-mode .control-console .clip-controls{display:flex!important;margin:0;padding:0;border:0;background:transparent;justify-content:center}
#appDialog.analysis-mode .control-console .clip-controls>*{display:none!important}
#appDialog.analysis-mode .control-console .clip-controls .play-stack{display:block!important;width:min(440px,55vw);min-height:38px;padding:0;background:transparent}
#appDialog.analysis-mode .control-console .clip-controls #togglePlayback{display:block!important;height:38px;border-radius:9px;background:#d9ad16;color:#17130a;font-size:13px;font-weight:900}
#appDialog.analysis-mode .control-console .play-options{display:none!important}
#appDialog.analysis-mode .table-zones label.zone-chip,#appDialog.analysis-mode #resetTableProfile,#appDialog.analysis-mode #togglePrivacyBlur{width:auto!important;height:36px!important;padding:7px 11px!important;border:1px solid #59635f!important;border-radius:9px!important;background:#303633!important;color:#fff!important;box-shadow:none!important;text-shadow:none!important;font-size:9px!important}
#appDialog.analysis-mode .table-zones label.zone-chip select{margin-left:5px;border:0;border-radius:5px;background:#f6f2db;color:#29240f;font-weight:800}
#appDialog.analysis-mode #togglePrivacyBlur.active{border-color:#d9ad16!important;color:#ffe77b!important}
#appDialog.analysis-mode .timeline-hud{bottom:126px}
#appDialog.analysis-mode .question-builder:not([hidden]){bottom:118px}
#appDialog.analysis-mode .studio-main{left:0;right:50%;top:0;bottom:118px;width:auto}
#appDialog.analysis-mode .spot-list{left:50%;right:0;top:0;bottom:118px;width:auto}
#appDialog.analysis-mode .video-mock{inset:0;width:100%;height:100%;border-radius:0}
#appDialog.analysis-mode .studio-video{object-fit:contain;object-position:center top}

/* La régie reste en grand écran tant qu’aucun extrait n’est en édition. */
#appDialog.analysis-mode .studio-main{left:0;right:0;width:auto;height:auto!important}
#appDialog.analysis-mode .video-mock{width:100%}
#appDialog.analysis-mode .spot-list{display:none}
#appDialog.analysis-mode.editing-cut .studio-main{left:0;right:50%;width:auto;height:auto!important}
#appDialog.analysis-mode.editing-cut .video-mock{width:100%}
#appDialog.analysis-mode.editing-cut .spot-list{display:block;left:50%;right:0;width:auto}

/* Une seule room est disponible pendant la bêta : Betclic reste implicite. */
#appDialog.analysis-mode #pokerRoom{display:none}
#appDialog.analysis-mode label.zone-chip:has(#pokerRoom){display:none!important}
#appDialog.analysis-mode label.zone-chip:has(#tableLayoutPreset){order:1}
#appDialog.analysis-mode .table-zones [data-zone="screen"]{order:2}
#appDialog.analysis-mode .table-zones [data-zone]:not([data-zone="screen"]){order:3}
#appDialog.analysis-mode #selectTable{order:4;margin-left:auto!important}
#appDialog.analysis-mode #resetTableProfile{order:5;border-color:#8b6d5c!important}
#appDialog.analysis-mode #togglePrivacyBlur{order:6}

.calibration-box{pointer-events:auto!important;cursor:move;background:rgba(255,210,31,.05)!important;border:3px solid #ffd21f!important;box-shadow:0 0 16px rgba(255,210,31,.55)!important}
.calibration-box .calibration-handle{position:absolute;right:-7px;bottom:-7px;width:18px;height:18px;border:3px solid #17130a;border-radius:50%;background:#ffd21f;cursor:nwse-resize}
#cropLayer.calibrating{pointer-events:auto;cursor:default}
#videoStage:has(#cropLayer.calibrating) .studio-video::-webkit-media-controls{display:none!important}
#videoStage:has(#cropLayer.calibrating) .studio-video{pointer-events:none}
#videoStage:has(#cropLayer.calibrating) .timeline-hud{display:none!important}

/* Mini-régie compacte : deux banques de touches puis le transport vidéo. */
html body #appDialog.analysis-mode .control-console{left:50%!important;right:auto!important;bottom:8px!important;width:min(1160px,calc(100vw - 28px))!important;height:132px!important;padding:6px 8px!important;transform:translateX(-50%)!important;grid-template-rows:57px 62px!important;gap:2px!important}
html body #appDialog.analysis-mode .control-console .table-zones{height:57px!important;display:flex!important;align-items:center!important;align-content:center!important;gap:3px!important;flex-wrap:wrap!important;overflow:hidden!important}
html body #appDialog.analysis-mode .control-console .table-zones,html body #appDialog.analysis-mode .control-console .clip-controls{position:relative!important;border:1px solid #3d4743!important;border-radius:8px!important;background:#151a18!important}
html body #appDialog.analysis-mode .control-console [data-section]:before{content:attr(data-section);position:absolute;left:8px;top:-7px;padding:0 5px;background:#1b201e;color:#d9ad16;font-size:7px;font-weight:950;letter-spacing:.8px;z-index:2}
html body #appDialog.analysis-mode .control-console .table-zones{padding:7px 6px 3px!important;box-sizing:border-box!important}html body #appDialog.analysis-mode .control-console .clip-controls{padding:8px 5px 3px!important;box-sizing:border-box!important}
html body #appDialog.analysis-mode .layout-presets{flex:0 0 100%!important;height:26px!important;justify-content:flex-start!important;gap:3px!important}
html body #appDialog.analysis-mode .layout-presets button{width:31px!important;height:26px!important;padding:2px!important;border-radius:5px!important}
html body #appDialog.analysis-mode .table-bank-label{order:2;color:#aeb9b4;font-size:8px;font-weight:900;letter-spacing:.8px;margin-right:3px}
html body #appDialog.analysis-mode .table-zones [data-zone="screen"]{order:3!important;min-width:72px!important;height:28px!important;padding:4px 7px!important;border-radius:5px!important;background:#343b38!important}
html body #appDialog.analysis-mode .table-zones [data-zone]:not([data-zone="screen"]){order:3!important;width:45px!important;height:28px!important;padding:3px 5px!important;border:1px solid #68736e!important;border-radius:5px!important;background:#303633!important;color:#fff!important;box-shadow:none!important;text-shadow:none!important}
html body #appDialog.analysis-mode .table-zones [data-zone]:not([data-zone="screen"]).active{border-color:#ffe36a!important;background:#d9ad16!important;color:#17130a!important;box-shadow:0 0 0 2px rgba(255,216,74,.2)!important}
html body #appDialog.analysis-mode #selectTable{order:4!important;margin-left:auto!important;min-width:100px!important;height:28px!important;padding:4px 7px!important}html body #appDialog.analysis-mode #resetTableProfile,html body #appDialog.analysis-mode #togglePrivacyBlur{order:5!important;height:28px!important;padding:4px 7px!important}
html body #appDialog.analysis-mode .control-console .clip-controls{height:62px!important;grid-template-columns:54px minmax(500px,1fr) 82px 82px 58px!important;gap:3px!important}
html body #appDialog.analysis-mode .studio-main{bottom:145px!important}html body #appDialog.analysis-mode .question-builder:not([hidden]){bottom:145px!important}

/* Le compteur appartient aux commandes et ne recouvre jamais l'image vidéo. */
.timeline-control-counter{position:static!important;left:auto!important;bottom:auto!important;transform:none!important;display:block!important;min-width:78px;padding:5px 7px!important;border-radius:6px!important;background:#303633!important;color:#fff!important;text-align:center;font-size:11px!important;white-space:nowrap}
#appDialog.analysis-mode .control-console .clip-controls .play-stack{grid-template-columns:minmax(120px,1fr) minmax(150px,2fr) 90px auto}
.direct-seek{display:flex!important;align-items:center;gap:3px;padding:0!important;background:transparent!important}.direct-seek button,.direct-seek input{height:28px;box-sizing:border-box;border:1px solid #59635f;border-radius:6px;background:#303633;color:#fff;font-size:8px;font-weight:900}.direct-seek button{padding:0 5px;cursor:pointer}.direct-seek input{width:46px;padding:0 4px;text-align:center}.direct-seek .seek-settings{color:#ffe36a}#appDialog.analysis-mode .control-console .clip-controls .play-stack{grid-template-columns:88px minmax(110px,1fr) 76px auto 238px!important}
#appDialog.analysis-mode .control-console{left:50%!important;right:auto!important;bottom:8px!important;width:min(1380px,calc(100vw - 28px))!important;height:178px!important;padding:7px 10px!important;transform:translateX(-50%)!important;border-radius:12px!important;box-shadow:0 -8px 28px rgba(0,0,0,.28)!important}
#appDialog.analysis-mode .control-console .clip-controls{grid-template-columns:62px minmax(570px,1fr) 96px 96px 68px!important;gap:5px!important;padding:0 5px!important}
#appDialog.analysis-mode .control-console .clip-controls>button,#appDialog.analysis-mode .control-console .time-pick{height:38px!important;min-height:38px!important;padding:5px 7px!important}
#appDialog.analysis-mode .control-console .table-zones{height:70px!important;gap:5px!important}
#videoStage:has(#cropLayer.calibrating) .timeline-control-counter{display:block!important}

/* Conduite complète en plein écran : navigation, vitesse et points de coupe restent accessibles. */
#appDialog.analysis-mode .control-console{height:154px;grid-template-rows:42px 94px}
#appDialog.analysis-mode .control-console .clip-controls{display:grid!important;grid-template-columns:74px minmax(270px,1fr) 116px 116px 82px;gap:7px;align-items:center}
#appDialog.analysis-mode .control-console .clip-controls>*{display:block!important;width:100%;box-sizing:border-box}
#appDialog.analysis-mode .control-console .clip-controls .play-stack{display:grid!important;grid-template-columns:minmax(120px,1fr) minmax(150px,2fr) auto;grid-template-rows:38px;align-items:center;gap:7px}
#appDialog.analysis-mode .control-console .clip-controls .play-options{display:grid!important;grid-template-columns:auto 62px;gap:5px;background:transparent;padding:0}
#appDialog.analysis-mode .control-console .clip-controls .video-seek{height:18px;margin:0}
#appDialog.analysis-mode .studio-main{bottom:170px}
#appDialog.analysis-mode .timeline-hud{bottom:178px}
#appDialog.analysis-mode .question-builder:not([hidden]){bottom:170px}
#appDialog.analysis-mode #rewindTen,#appDialog.analysis-mode #forwardTen,#appDialog.analysis-mode #setStart,#appDialog.analysis-mode #setEnd{display:block!important}
#appDialog.analysis-mode .control-console{display:grid!important;height:190px!important;grid-template-rows:80px 94px!important;gap:4px!important}
#appDialog.analysis-mode .control-console .table-zones{grid-row:1!important;height:80px!important;margin:0!important;overflow-x:auto!important;overflow-y:hidden!important}
#appDialog.analysis-mode .control-console .clip-controls{grid-row:2!important;display:grid!important;grid-template-columns:74px minmax(360px,1fr) 116px 116px 82px!important;grid-template-areas:"rewind play start end forward";gap:7px!important;width:100%!important}
#appDialog.analysis-mode #rewindTen{grid-area:rewind!important}#appDialog.analysis-mode .play-stack{grid-area:play!important}#appDialog.analysis-mode #setStart{grid-area:start!important}#appDialog.analysis-mode #setEnd{grid-area:end!important}#appDialog.analysis-mode #forwardTen{grid-area:forward!important}
.step-control{display:grid!important;grid-template-columns:1fr;grid-template-rows:38px 24px;gap:3px;min-width:0;background:transparent!important;padding:0!important}.step-control:has(#rewindTen){grid-area:rewind}.step-control:has(#forwardTen){grid-area:forward}.step-control>button{width:100%!important;height:38px!important}.step-control>select{width:100%;height:24px;border:1px solid #59635f;border-radius:5px;background:#303633;color:#ffe36a;font-size:9px;font-weight:900;text-align:center;cursor:pointer}#appDialog.analysis-mode .control-console .clip-controls{align-items:start!important}
#appDialog.analysis-mode .control-console .clip-controls .play-stack{display:grid!important;grid-template-columns:120px minmax(160px,1fr) 90px auto!important;grid-template-rows:38px!important;width:100%!important;min-width:0!important;padding:0!important;background:transparent!important}
#appDialog.analysis-mode .timeline-control-counter{max-width:90px!important;overflow:hidden!important}
#appDialog.analysis-mode .control-console .clip-controls .play-stack{grid-template-columns:minmax(120px,1fr) minmax(150px,2fr) 90px auto}
.layout-presets{display:flex;align-items:center;gap:5px}.layout-presets>span{margin-right:4px;color:#aeb9b4;font-size:8px;font-weight:900;letter-spacing:.8px}.layout-presets button{display:flex;align-items:center;justify-content:center;gap:3px;width:35px;height:30px;padding:3px;border:1px solid #59635f;border-radius:6px;background:#303633;color:#fff;font-size:9px;font-weight:900;cursor:pointer}.layout-presets button.active{border-color:#ffe36a;background:#5b4b12;color:#ffe36a;box-shadow:0 0 0 2px rgba(255,216,74,.18)}.mini-grid{display:grid;width:12px;height:12px;grid-template-columns:repeat(3,1fr);grid-auto-rows:3px;gap:1px}.mini-grid:before{content:"";display:block;grid-column:1/-1;grid-row:1/-1;background:repeating-conic-gradient(#d9ad16 0 25%,transparent 0 50%) 0/5px 5px}.technical-layout-select{display:none!important}#appDialog.analysis-mode .layout-presets{order:1;flex:0 0 100%;justify-content:center}#appDialog.analysis-mode .control-console{height:190px;grid-template-rows:34px 42px 94px}#appDialog.analysis-mode .control-console .table-zones{height:80px;flex-wrap:wrap!important;align-content:flex-start}#appDialog.analysis-mode .studio-main{bottom:206px}#appDialog.analysis-mode .timeline-hud{bottom:214px}#appDialog.analysis-mode .question-builder:not([hidden]){bottom:206px}

/* Console de conduite finale : deux rangées nettes, sans chevauchement. */
html body #appDialog.analysis-mode .control-console{height:174px!important;grid-template-rows:64px 94px!important;overflow:hidden!important}
html body #appDialog.analysis-mode .control-console .table-zones{height:64px!important;flex-wrap:wrap!important;overflow:hidden!important;padding:9px 7px 4px!important}
html body #appDialog.analysis-mode .control-console .clip-controls{height:94px!important;display:grid!important;grid-template-columns:82px minmax(0,1fr) 92px 92px 82px!important;grid-template-areas:"rewind play start end forward"!important;align-items:start!important;gap:6px!important;padding:10px 6px 5px!important;overflow:hidden!important}
html body #appDialog.analysis-mode .control-console .clip-controls .play-stack{grid-area:play!important;display:grid!important;grid-template-columns:118px minmax(140px,1fr) 104px 112px!important;grid-template-rows:38px 30px!important;gap:5px!important;min-width:0!important}
html body #appDialog.analysis-mode #togglePlayback{grid-column:1;grid-row:1;height:38px!important}
html body #appDialog.analysis-mode .video-seek{grid-column:2;grid-row:1;width:100%!important;align-self:center!important}
html body #appDialog.analysis-mode .timeline-control-counter{grid-column:3;grid-row:1;min-width:0!important;max-width:none!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body #appDialog.analysis-mode .play-options{grid-column:4;grid-row:1;display:grid!important;grid-template-columns:1fr 54px!important}
html body #appDialog.analysis-mode .direct-seek{grid-column:1/-1;grid-row:2;justify-content:center!important;overflow:hidden!important}
html body #appDialog.analysis-mode .step-control{height:66px!important;grid-template-rows:38px 23px!important;overflow:hidden!important}
html body #appDialog.analysis-mode .time-pick{height:66px!important;min-height:66px!important}
html body #appDialog.analysis-mode .studio-main{bottom:190px!important}

/* Régie RiverCoach : esthétique de contrôleur de montage physique. */
html body #appDialog.analysis-mode .control-console{width:min(1240px,calc(100vw - 32px))!important;height:210px!important;grid-template-rows:76px 112px!important;gap:8px!important;padding:11px 13px!important;border:1px solid #59615e!important;border-radius:24px!important;background:linear-gradient(145deg,#252a28,#111412 72%)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.14),inset 0 -5px 12px rgba(0,0,0,.5),0 14px 38px rgba(0,0,0,.45)!important}
html body #appDialog.analysis-mode .control-console .table-zones,html body #appDialog.analysis-mode .control-console .clip-controls{border-color:#4b5350!important;border-radius:14px!important;background:linear-gradient(180deg,#202522,#151917)!important;box-shadow:inset 0 2px 5px rgba(0,0,0,.65),0 1px 0 rgba(255,255,255,.08)!important}
html body #appDialog.analysis-mode .control-console .table-zones{height:76px!important;padding:12px 10px 6px!important;gap:5px!important}
html body #appDialog.analysis-mode .layout-presets{justify-content:flex-start!important;flex:0 0 auto!important;width:auto!important;gap:5px!important}
html body #appDialog.analysis-mode .layout-presets button,html body #appDialog.analysis-mode .table-zones [data-zone]{border:1px solid #707a76!important;border-radius:7px!important;background:linear-gradient(#444b48,#292e2c)!important;color:#f5f7f6!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 3px 0 #090b0a,0 4px 7px rgba(0,0,0,.35)!important;text-shadow:0 1px 1px #000!important}
html body #appDialog.analysis-mode .layout-presets button:active,html body #appDialog.analysis-mode .table-zones [data-zone]:active{transform:translateY(2px);box-shadow:inset 0 1px 4px #090b0a,0 1px 0 #090b0a!important}
html body #appDialog.analysis-mode .layout-presets button.active,html body #appDialog.analysis-mode .table-zones [data-zone].active{border-color:#f1c63a!important;background:linear-gradient(#796821,#3f350d)!important;color:#ffe36a!important;box-shadow:inset 0 0 0 1px #b89620,0 0 10px rgba(255,211,54,.28),0 3px 0 #090b0a!important}
html body #appDialog.analysis-mode .control-console .clip-controls{height:112px!important;grid-template-columns:88px minmax(0,1fr) 92px 92px 88px!important;padding:12px 9px 7px!important;gap:8px!important}
html body #appDialog.analysis-mode .control-console .clip-controls .play-stack{grid-template-columns:82px minmax(150px,1fr) 116px 112px!important;grid-template-rows:48px 32px!important;gap:7px!important}
html body #appDialog.analysis-mode #togglePlayback{width:76px!important;height:76px!important;grid-column:1!important;grid-row:1/3!important;align-self:center!important;border:5px solid #090b0a!important;border-radius:50%!important;background:radial-gradient(circle at 38% 32%,#f5d64f,#b98b08 68%,#725100)!important;color:#15130b!important;box-shadow:inset 0 0 0 2px #fff2a2,inset 0 -7px 12px rgba(78,49,0,.42),0 0 0 3px #4e5652,0 5px 10px #000!important;font-size:11px!important}
html body #appDialog.analysis-mode .video-seek{grid-column:2!important;grid-row:1!important;height:22px!important;accent-color:#f1c63a!important}
html body #appDialog.analysis-mode .timeline-control-counter{grid-column:3!important;grid-row:1!important;background:#07110d!important;border:1px solid #426a59!important;color:#8dffc9!important;font-family:Consolas,monospace!important;box-shadow:inset 0 0 8px rgba(25,181,111,.18)!important}
html body #appDialog.analysis-mode .play-options{grid-column:4!important;grid-row:1!important}
html body #appDialog.analysis-mode .direct-seek{grid-column:2/5!important;grid-row:2!important;justify-content:flex-start!important}
html body #appDialog.analysis-mode .step-control>button,html body #appDialog.analysis-mode .time-pick,html body #appDialog.analysis-mode .direct-seek button,html body #appDialog.analysis-mode .play-options button{border-color:#69726e!important;background:linear-gradient(#414744,#262b29)!important;color:#fff!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 3px 0 #080a09!important}
html body #appDialog.analysis-mode .step-control>select{background:#111614!important;border-color:#56605b!important;color:#ffe36a!important}
html body #appDialog.analysis-mode .studio-main{bottom:228px!important}

/* Correctif compact : la régie entière reste dans le viewport. */
html body #appDialog.analysis-mode .control-console{height:134px!important;grid-template-rows:50px 66px!important;gap:5px!important;padding:7px 10px!important;border-radius:15px!important;overflow:hidden!important}
html body #appDialog.analysis-mode .control-console .table-zones{height:50px!important;min-height:0!important;padding:8px 7px 3px!important;gap:4px!important;flex-wrap:wrap!important;overflow:hidden!important}
html body #appDialog.analysis-mode .layout-presets{height:28px!important;align-items:center!important;gap:4px!important}
html body #appDialog.analysis-mode .layout-presets button{width:31px!important;height:25px!important;padding:2px!important}
html body #appDialog.analysis-mode .table-zones [data-zone]{height:25px!important;padding:3px 7px!important}
html body #appDialog.analysis-mode .control-console .clip-controls{height:66px!important;grid-template-columns:94px minmax(0,1fr) 82px 82px 94px!important;gap:5px!important;padding:8px 6px 3px!important;overflow:hidden!important}
html body #appDialog.analysis-mode .control-console .clip-controls .play-stack{height:53px!important;grid-template-columns:108px minmax(120px,1fr) 94px 98px!important;grid-template-rows:27px 23px!important;gap:3px 5px!important;overflow:hidden!important}
html body #appDialog.analysis-mode #togglePlayback{grid-column:1!important;grid-row:1/3!important;width:108px!important;height:53px!important;border:1px solid #806817!important;border-radius:8px!important;background:linear-gradient(#e6bf32,#b58a08)!important;box-shadow:inset 0 1px 0 #fff2a2,0 3px 0 #5d4500!important;font-size:11px!important}
html body #appDialog.analysis-mode .video-seek{grid-column:2!important;grid-row:1!important;height:18px!important;margin:3px 0!important}
html body #appDialog.analysis-mode .timeline-control-counter{grid-column:3!important;grid-row:1!important;height:27px!important;box-sizing:border-box!important;padding:5px!important;font-size:9px!important}
html body #appDialog.analysis-mode .play-options{grid-column:4!important;grid-row:1!important;height:27px!important}
html body #appDialog.analysis-mode .direct-seek{grid-column:2/5!important;grid-row:2!important;height:23px!important;gap:3px!important;overflow:hidden!important}
html body #appDialog.analysis-mode .direct-seek button,html body #appDialog.analysis-mode .direct-seek input{height:22px!important;font-size:7px!important}
html body #appDialog.analysis-mode .step-control{height:53px!important;display:grid!important;grid-template-columns:minmax(0,1fr) 37px!important;grid-template-rows:53px!important;gap:3px!important;overflow:hidden!important}
html body #appDialog.analysis-mode .step-control>button{height:53px!important;min-height:0!important;padding:4px!important;border-radius:8px!important}
html body #appDialog.analysis-mode .step-control>select{height:53px!important;font-size:8px!important;padding:0!important}
html body #appDialog.analysis-mode .time-pick{height:53px!important;min-height:0!important;padding:5px 6px!important}
html body #appDialog.analysis-mode .studio-main{bottom:150px!important}

/* Véritable pad en trois modules, construit par app.js. */
html body #appDialog.analysis-mode .control-console.pad-console{display:grid!important;grid-template-columns:minmax(390px,1.05fr) minmax(500px,1.45fr) 190px!important;grid-template-rows:156px!important;gap:9px!important;width:min(1260px,calc(100vw - 28px))!important;height:176px!important;padding:10px!important;overflow:hidden!important}
html body #appDialog.analysis-mode .pad-console>.table-zones,html body #appDialog.analysis-mode .pad-console>.clip-controls,html body #appDialog.analysis-mode .pad-console>.pad-tools{position:relative!important;height:156px!important;min-width:0!important;margin:0!important;padding:20px 9px 8px!important;box-sizing:border-box!important;border:1px solid #4b5350!important;border-radius:13px!important;background:linear-gradient(180deg,#242a27,#141816)!important;box-shadow:inset 0 2px 7px #080a09,0 1px 0 rgba(255,255,255,.09)!important;overflow:hidden!important}
html body #appDialog.analysis-mode .pad-title{position:absolute;left:10px;top:5px;z-index:3;color:#e7bd32;font-size:8px;font-weight:950;letter-spacing:1.2px}
html body #appDialog.analysis-mode .pad-console>.table-zones{display:flex!important;align-content:flex-start!important;align-items:center!important;gap:5px!important;flex-wrap:wrap!important}
html body #appDialog.analysis-mode .pad-console .layout-presets{flex:0 0 100%!important;height:35px!important;justify-content:center!important}
html body #appDialog.analysis-mode .pad-console .layout-presets>span,html body #appDialog.analysis-mode .pad-console .table-bank-label{display:none!important}
html body #appDialog.analysis-mode .pad-console .layout-presets button{width:35px!important;height:32px!important}
html body #appDialog.analysis-mode .pad-console .table-zones [data-zone]{flex:0 0 auto!important;width:42px!important;height:34px!important;padding:3px!important;border-radius:7px!important}
html body #appDialog.analysis-mode .pad-console .table-zones [data-zone="screen"]{width:92px!important}
html body #appDialog.analysis-mode .pad-console>.clip-controls{display:grid!important;grid-template-columns:92px minmax(0,1fr) 78px 78px 92px!important;grid-template-rows:126px!important;grid-template-areas:"rewind play start end forward"!important;align-items:center!important;gap:6px!important}
html body #appDialog.analysis-mode .pad-console .clip-controls>.pad-title{display:block!important;width:auto!important;height:auto!important;min-height:0!important}
html body #appDialog.analysis-mode .pad-console .play-stack{height:112px!important;display:grid!important;grid-template-columns:94px minmax(120px,1fr) 92px!important;grid-template-rows:48px 24px 30px!important;gap:4px!important;overflow:hidden!important}
html body #appDialog.analysis-mode .pad-console #togglePlayback{grid-column:1!important;grid-row:1/3!important;width:90px!important;height:76px!important;border-radius:10px!important}
html body #appDialog.analysis-mode .pad-console .video-seek{grid-column:2/4!important;grid-row:1!important}
html body #appDialog.analysis-mode .pad-console .timeline-control-counter{grid-column:2!important;grid-row:2!important}
html body #appDialog.analysis-mode .pad-console .play-options{grid-column:3!important;grid-row:2!important}
html body #appDialog.analysis-mode .pad-console .direct-seek{grid-column:1/4!important;grid-row:3!important;justify-content:center!important}
html body #appDialog.analysis-mode .pad-console .step-control{height:86px!important;display:grid!important;grid-template-columns:1fr!important;grid-template-rows:54px 27px!important}
html body #appDialog.analysis-mode .pad-console .step-control>button{height:54px!important}
html body #appDialog.analysis-mode .pad-console .step-control>select{height:27px!important}
html body #appDialog.analysis-mode .pad-console .time-pick{height:86px!important}
html body #appDialog.analysis-mode .pad-tools{display:grid!important;grid-template-columns:1fr 1fr!important;grid-auto-rows:48px!important;align-content:center!important;gap:8px!important}
html body #appDialog.analysis-mode .pad-tools>*:not(.pad-title){width:100%!important;height:48px!important;min-width:0!important;margin:0!important;padding:5px!important;border:1px solid #707a76!important;border-radius:8px!important;background:linear-gradient(#444b48,#292e2c)!important;color:#fff!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 3px 0 #090b0a!important;font-size:8px!important;white-space:normal!important}
html body #appDialog.analysis-mode .pad-tools #selectTable{grid-column:1/-1!important;background:linear-gradient(#77641f,#3f350d)!important;color:#ffe36a!important}
html body #appDialog.analysis-mode .studio-main{bottom:194px!important}

/* Neutralise définitivement l’ancienne barre et remonte le nouveau pad. */
html body #appDialog.analysis-mode .control-console.pad-console{bottom:48px!important;grid-template-columns:minmax(370px,1.05fr) minmax(500px,1.45fr) 190px!important;grid-template-rows:156px!important}
html body #appDialog.analysis-mode .pad-console>.table-zones{grid-column:1!important;grid-row:1!important;width:auto!important}
html body #appDialog.analysis-mode .pad-console>.clip-controls{grid-column:2!important;grid-row:1!important;width:auto!important}
html body #appDialog.analysis-mode .pad-console>.pad-tools{grid-column:3!important;grid-row:1!important;width:auto!important}
html body #appDialog.analysis-mode .pad-console [data-section]:before{display:none!important;content:none!important}
html body #appDialog.analysis-mode .pad-console>.console-head{display:none!important}
html body #appDialog.analysis-mode .pad-console .clip-controls>.pad-title{display:block!important;position:absolute!important;width:auto!important;height:auto!important}
html body #appDialog.analysis-mode .pad-tools{grid-auto-rows:34px!important;align-content:start!important;padding-top:21px!important;gap:7px!important}
html body #appDialog.analysis-mode .pad-tools>*:not(.pad-title){height:34px!important;font-size:7px!important}
html body #appDialog.analysis-mode .pad-tools #selectTable{grid-column:auto!important}
html body #appDialog.analysis-mode .pad-console.pad-collapsed{height:58px!important;grid-template-columns:1fr!important;grid-template-rows:38px!important;bottom:48px!important}
html body #appDialog.analysis-mode .pad-console.pad-collapsed>.table-zones,html body #appDialog.analysis-mode .pad-console.pad-collapsed>.clip-controls{display:none!important}
html body #appDialog.analysis-mode .pad-console.pad-collapsed>.pad-tools{grid-column:1!important;grid-row:1!important;display:flex!important;justify-content:center!important;align-items:center!important;height:38px!important;padding:3px 8px!important}
html body #appDialog.analysis-mode .pad-console.pad-collapsed .pad-tools>.pad-title{display:none!important}
html body #appDialog.analysis-mode .pad-console.pad-collapsed .pad-tools>*{width:auto!important;min-width:105px!important;height:30px!important}

/* Pad v83 : outils entièrement visibles et commandes de cut réservées au montage. */
html body #appDialog.analysis-mode .pad-tools{grid-auto-rows:27px!important;gap:4px!important;padding-top:20px!important;overflow:visible!important}
html body #appDialog.analysis-mode .pad-tools>*:not(.pad-title){height:27px!important;padding:3px!important}
html body #appDialog.analysis-mode:not(.editing-cut) .pad-console .time-pick{display:none!important}
html body #appDialog.analysis-mode:not(.editing-cut) .pad-console>.clip-controls{grid-template-columns:88px minmax(0,1fr) 88px!important;grid-template-areas:"rewind play forward"!important}
html body #appDialog.analysis-mode.editing-cut .pad-console .time-pick{display:block!important}

/* Étape cadrage uniquement : le montage reviendra dans une phase séparée. */
html body #appDialog.analysis-mode .pad-console .time-pick,
html body #appDialog.analysis-mode .capture-frame,
html body #appDialog.analysis-mode .shortcut-chip,
html body #appDialog.analysis-mode .shortcut-panel,
html body #appDialog.analysis-mode .question-builder,
html body #appDialog.analysis-mode .spot-list{display:none!important}
html body #appDialog.analysis-mode .pad-console>.clip-controls{grid-template-columns:88px minmax(0,1fr) 88px!important;grid-template-areas:"rewind play forward"!important}
html body #appDialog.analysis-mode .pad-tools{grid-auto-rows:31px!important;gap:7px!important}
html body #appDialog.analysis-mode .pad-tools>*:not(.pad-title){height:31px!important}
html body #appDialog.analysis-mode .pad-console .layout-presets{display:none!important}
html body #appDialog.analysis-mode .pad-console>.table-zones{padding-top:28px!important}

/* Phase cadrage : une seule barre claire, sans montage ni commandes superposées. */
html body #appDialog.analysis-mode .control-console.pad-console{display:grid!important;grid-template-columns:minmax(360px,.9fr) minmax(560px,1.35fr)!important;grid-template-rows:112px!important;width:min(1180px,calc(100vw - 32px))!important;height:132px!important;bottom:18px!important;gap:10px!important;padding:10px!important;overflow:visible!important}
html body #appDialog.analysis-mode .pad-console>.table-zones{display:none!important}
html body #appDialog.analysis-mode .pad-console>.clip-controls{grid-column:1!important;grid-row:1!important;height:112px!important;display:block!important;padding:27px 12px 10px!important;overflow:visible!important}
html body #appDialog.analysis-mode .pad-console>.clip-controls>.step-control,
html body #appDialog.analysis-mode .pad-console .play-options,
html body #appDialog.analysis-mode .pad-console .direct-seek,
html body #appDialog.analysis-mode .pad-console .time-pick{display:none!important}
html body #appDialog.analysis-mode .pad-console .play-stack{display:grid!important;grid-template-columns:118px minmax(180px,1fr) 92px!important;grid-template-rows:58px!important;width:100%!important;height:58px!important;gap:10px!important;overflow:visible!important;align-items:center!important}
html body #appDialog.analysis-mode .pad-console #togglePlayback{grid-column:1!important;grid-row:1!important;width:118px!important;height:58px!important;border-radius:9px!important}
html body #appDialog.analysis-mode .pad-console .video-seek{grid-column:2!important;grid-row:1!important;width:100%!important;height:30px!important;margin:0!important;cursor:pointer!important}
html body #appDialog.analysis-mode .pad-console .timeline-control-counter{grid-column:3!important;grid-row:1!important;width:92px!important;max-width:92px!important;height:34px!important;padding:8px 5px!important;font-size:9px!important}
html body #appDialog.analysis-mode .pad-console>.pad-tools{grid-column:2!important;grid-row:1!important;height:112px!important;display:grid!important;grid-template-columns:94px 94px repeat(5,minmax(82px,1fr))!important;grid-template-rows:70px!important;grid-auto-rows:70px!important;align-items:center!important;gap:7px!important;padding:28px 10px 10px!important;overflow:visible!important}
html body #appDialog.analysis-mode .pad-tools .model-choice{display:grid!important;grid-template-rows:18px 42px!important;color:#d8dfdb!important;font-size:10px!important;font-weight:800!important;gap:3px!important}
html body #appDialog.analysis-mode .pad-tools .model-choice select{width:100%!important;height:42px!important;border:1px solid #707a76!important;border-radius:7px!important;background:#2d3330!important;color:#fff!important;font-weight:900!important;padding:0 8px!important}
html body #appDialog.analysis-mode .pad-tools>*:not(.pad-title):not(.model-choice){width:100%!important;height:62px!important;font-size:9px!important;padding:6px!important}
html body #appDialog.analysis-mode .pad-tools #saveFramingModel{background:linear-gradient(#806c20,#463a0d)!important;color:#ffe36a!important;border-color:#d1ad2f!important}
html body #appDialog.analysis-mode .pad-tools #selectTable{grid-column:auto!important;height:62px!important;background:linear-gradient(#806c20,#463a0d)!important;color:#ffe36a!important}
html body #appDialog.analysis-mode .time-pick,
html body #appDialog.analysis-mode #resetTableProfile,
html body #appDialog.analysis-mode #togglePrivacyBlur{display:none!important}
html body #appDialog.analysis-mode #setStart,
html body #appDialog.analysis-mode #setEnd,
html body #appDialog.analysis-mode .console-head,
html body #appDialog.analysis-mode .clip-controls>button:not(#togglePlayback){display:none!important}
html body #appDialog.analysis-mode .pad-tools .zone-chip[data-zone]{display:none!important}
html body #appDialog.analysis-mode .pad-tools #selectTable{display:block!important;white-space:normal!important;line-height:1.2!important}
html body #appDialog.analysis-mode .pad-tools .model-choice{align-self:center!important;min-width:0!important;overflow:visible!important}
html body #appDialog.analysis-mode .pad-tools .model-choice select{display:block!important;position:relative!important;z-index:20!important}
html body #appDialog.analysis-mode .studio-main{bottom:152px!important}
@media(max-width:900px){html body #appDialog.analysis-mode .control-console.pad-console{grid-template-columns:1fr!important;grid-template-rows:94px 130px!important;height:244px!important}html body #appDialog.analysis-mode .pad-console>.clip-controls{grid-column:1!important;grid-row:1!important;height:94px!important}html body #appDialog.analysis-mode .pad-console>.pad-tools{grid-column:1!important;grid-row:2!important;height:130px!important;grid-template-columns:repeat(4,1fr)!important;grid-template-rows:46px 46px!important;padding-top:22px!important}html body #appDialog.analysis-mode .studio-main{bottom:264px!important}}

/* Lecture v91 : le curseur reste libre sur toute sa ligne ; temps et options dessous. */
html body #appDialog.analysis-mode .pad-console .play-stack{
  grid-template-columns:118px minmax(0,1fr)!important;
  grid-template-rows:42px 26px!important;
  height:72px!important;
  align-items:center!important;
  column-gap:10px!important;
  row-gap:3px!important;
}
html body #appDialog.analysis-mode .pad-console #togglePlayback{
  grid-column:1!important;
  grid-row:1 / 3!important;
  height:68px!important;
}
html body #appDialog.analysis-mode .pad-console .video-seek{
  grid-column:2!important;
  grid-row:1!important;
  width:100%!important;
  min-width:0!important;
  height:30px!important;
  accent-color:#fff!important;
}
.manual-framing-only .studio-video::-webkit-media-controls{display:none!important}.manual-framing-only .pad-console .video-seek{accent-color:#fff!important;cursor:pointer!important}.manual-framing-only .pad-console .video-seek::-webkit-slider-runnable-track{height:5px;border-radius:5px;background:#f5f5f5}.manual-framing-only .pad-console .video-seek::-webkit-slider-thumb{margin-top:-5px}.manual-framing-only .framing-settings-menu{display:none!important}
.manual-framing-only .control-console{display:none!important}.manual-framing-only .studio-main{bottom:0!important}.manual-framing-only .studio-video,.manual-framing-only .table-mosaic{height:calc(100% - 48px)!important}.minimal-video-controls{position:absolute;z-index:30;left:0;right:0;bottom:0;height:48px;display:grid;grid-template-columns:46px minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:0 16px;box-sizing:border-box;background:#050806;color:#fff}.minimal-video-controls button{width:38px;height:34px;border:0;background:transparent;color:#fff;font-size:22px;font-weight:900;cursor:pointer}.minimal-video-controls .video-seek{width:100%;height:30px;margin:0;accent-color:#fff;cursor:pointer}.minimal-video-controls .timeline-control-counter{position:static!important;transform:none!important;min-width:92px!important;padding:0!important;background:transparent!important;font-size:11px!important;pointer-events:none}.manual-framing-only #videoStage:fullscreen{width:100vw;height:100vh;border-radius:0;background:#050806}.manual-framing-only #videoStage:fullscreen .studio-video,.manual-framing-only #videoStage:fullscreen .table-mosaic{height:calc(100vh - 48px)!important}
html body #appDialog.analysis-mode .pad-console .timeline-control-counter{
  grid-column:2!important;
  grid-row:2!important;
  justify-self:start!important;
  width:auto!important;
  min-width:92px!important;
  max-width:150px!important;
  height:24px!important;
  padding:5px 8px!important;
}
html body #appDialog.analysis-mode .pad-console .play-options{
  display:flex!important;
  grid-column:2!important;
  grid-row:2!important;
  justify-self:end!important;
  align-items:center!important;
  gap:5px!important;
  height:24px!important;
}
html body #appDialog.analysis-mode .pad-console .play-options>*{height:24px!important}

/* Réglages sensibles rangés hors de la barre de lecture. */
html body #appDialog.analysis-mode .pad-console>.pad-tools{
  grid-template-columns:150px minmax(190px,1fr)!important;
  grid-template-rows:62px!important;
  align-content:center!important;
}
html body #appDialog.analysis-mode .pad-tools>#padFullscreen{height:52px!important}
html body #appDialog.analysis-mode .framing-settings-menu{position:relative!important;width:100%!important;height:52px!important;overflow:visible!important}
html body #appDialog.analysis-mode .framing-settings-menu>summary{display:flex;align-items:center;justify-content:center;height:52px;box-sizing:border-box;border:1px solid #68736e;border-radius:8px;background:linear-gradient(#343b37,#242926);color:#fff;font-size:11px;font-weight:900;cursor:pointer;list-style:none}
html body #appDialog.analysis-mode .framing-settings-menu>summary::-webkit-details-marker{display:none}
html body #appDialog.analysis-mode .framing-settings-menu[open]>summary{border-color:#d1ad2f;color:#ffe36a}
html body #appDialog.analysis-mode .framing-settings-panel{position:absolute;z-index:80;right:0;bottom:59px;display:grid;grid-template-columns:92px 92px repeat(4,minmax(92px,1fr));gap:7px;width:min(710px,calc(100vw - 44px));padding:12px;border:1px solid #d1ad2f;border-radius:10px;background:#171c19;box-shadow:0 12px 35px rgba(0,0,0,.65)}
html body #appDialog.analysis-mode .framing-settings-panel .model-choice{display:grid!important;grid-template-rows:17px 40px!important;height:60px!important}
html body #appDialog.analysis-mode .framing-settings-panel .model-choice select{height:40px!important}
html body #appDialog.analysis-mode .framing-settings-panel>button{display:block!important;width:100%!important;height:60px!important;font-size:9px!important;white-space:normal!important}

/* Mode manuel final : uniquement la vidéo et sa barre blanche. */
html body #appDialog.manual-framing-only .control-console.pad-console{display:none!important}
html body #appDialog.manual-framing-only .studio-main{bottom:0!important}
html body #appDialog.manual-framing-only .minimal-video-controls{display:grid!important}
html body #appDialog.manual-framing-only .minimal-video-controls .video-seek{-webkit-appearance:none!important;appearance:none!important;display:block!important;width:100%!important;height:5px!important;margin:0!important;border:0!important;border-radius:5px!important;background:#e9eceb!important;cursor:pointer!important}
html body #appDialog.manual-framing-only .minimal-video-controls .video-seek::-webkit-slider-runnable-track{height:5px!important;border-radius:5px!important;background:#e9eceb!important}
html body #appDialog.manual-framing-only .minimal-video-controls .video-seek::-webkit-slider-thumb{-webkit-appearance:none!important;width:15px!important;height:15px!important;margin-top:-5px!important;border:2px solid #fff!important;border-radius:50%!important;background:#fff!important;box-shadow:0 1px 5px #000!important}
.editing-timecode{position:absolute;z-index:20;top:10px;left:37%;right:auto;transform:translateX(-50%);padding:5px 10px;border:1px solid rgba(255,255,255,.38);border-radius:6px;background:rgba(3,8,7,.72);box-shadow:0 2px 9px rgba(0,0,0,.34);color:#fff;font:900 21px/1 Consolas,"Courier New",monospace;letter-spacing:.035em;white-space:nowrap;pointer-events:auto;cursor:text}.editing-timecode:focus{border-color:#ffe16a;outline:2px solid rgba(255,225,106,.28);background:#111713}.manual-framing-only #videoStage:fullscreen .editing-timecode{top:14px;left:37%;right:auto;font-size:28px}
.minimal-video-controls{grid-template-columns:46px minmax(0,1fr) auto auto auto!important}.wheel-step-control{display:flex;align-items:center;gap:5px;color:#c9d2ce;font:700 11px/1 sans-serif;white-space:nowrap}.wheel-step-control input{width:54px;height:30px;padding:0 7px;border:1px solid #52605a;border-radius:6px;background:#202724;color:#fff;font-weight:800;text-align:center}.wheel-step-control input:focus{border-color:#5da8ff;outline:2px solid rgba(93,168,255,.35)}
html body #appDialog.analysis-mode.editing-cut .question-builder:not([hidden]){display:block!important;position:fixed!important;z-index:60!important;left:50%!important;right:0!important;top:0!important;bottom:0!important;width:auto!important;max-width:none!important;margin:0!important;padding:24px!important;border:0!important;border-radius:0!important;background:#fff!important;overflow:auto!important;box-shadow:-12px 0 36px rgba(0,0,0,.38)!important}.preparation-context{margin:0 0 16px;padding:14px;border:1px solid #d8e4de;border-radius:10px;background:#f4f8f6}.preparation-context small,.preparation-context strong,.preparation-context span{display:block}.preparation-context small{color:#31805f;font-size:9px;font-weight:900;letter-spacing:.8px}.preparation-context strong{margin-top:4px;font-size:17px}.preparation-context span{margin-top:5px;color:#65736d;font-size:11px}.preparation-context div{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.preparation-context b,.preparation-context em{padding:6px 8px;border-radius:6px;background:#fff;color:#26342e;font-size:10px;font-style:normal}.preparation-context b{border:1px solid #cbdcd4}
.spot [data-open-original]{color:#2f7d5a;font-weight:900;text-decoration:underline;cursor:pointer;text-underline-offset:3px}
.solution-track{border-color:#b9d7c8!important;background:#f3faf6!important}
html body #appDialog.analysis-mode.course-outline-open:not(.editing-cut) .studio-main{right:260px!important}
html body #appDialog.analysis-mode.course-outline-open:not(.editing-cut) .spot-list{display:block!important;position:fixed!important;z-index:55!important;left:auto!important;right:0!important;top:0!important;bottom:48px!important;width:260px!important;max-height:none!important;overflow:auto!important;border-radius:0!important}
html body #appDialog.analysis-mode.editing-cut .question-builder:not([hidden]){left:50%!important;right:18%!important;padding:14px!important}
html body #appDialog.analysis-mode.editing-cut .spot-list{display:block!important;position:fixed!important;z-index:61!important;left:82%!important;right:0!important;top:0!important;bottom:0!important;width:auto!important;max-height:none!important;padding:10px!important;overflow:auto!important;border-radius:0!important}
html body #appDialog.analysis-mode.editing-cut .preparation-context{padding:9px;margin-bottom:9px}html body #appDialog.analysis-mode.editing-cut .cut-ready{margin-bottom:8px;padding:7px}html body #appDialog.analysis-mode.editing-cut .question-builder textarea{min-height:52px;padding:7px 9px}html body #appDialog.analysis-mode.editing-cut .commentary-track{padding:8px;margin-top:8px}
html body #appDialog.analysis-mode.course-outline-open:not(.editing-cut) .studio-main{right:380px!important}
html body #appDialog.analysis-mode.course-outline-open:not(.editing-cut) .spot-list{width:380px!important;padding:16px!important}
html body #appDialog.analysis-mode.editing-cut .question-builder:not([hidden]){left:50%!important;right:24%!important}
html body #appDialog.analysis-mode.editing-cut .spot-list{left:76%!important;padding:14px!important}
html body #appDialog.analysis-mode .spot-list #savedSpots{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important;min-height:0!important;padding:8px!important;overflow-x:hidden!important;overflow-y:visible!important;background:#202523!important}
html body #appDialog.analysis-mode .spot-list #savedSpots .spot{box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;margin:0!important;padding:12px!important}
html body #appDialog.analysis-mode .spot-list #savedSpots .spot span{min-width:0!important}html body #appDialog.analysis-mode .spot-list #savedSpots .spot strong,html body #appDialog.analysis-mode .spot-list #savedSpots .spot em,html body #appDialog.analysis-mode .spot-list #savedSpots .spot small{white-space:normal!important;overflow-wrap:anywhere!important;font-size:11px!important;line-height:1.35!important}
html body #appDialog.analysis-mode.editing-cut .question-builder:not([hidden]){left:50%!important;right:0!important;width:auto!important}
html body #appDialog.analysis-mode.editing-cut .spot-list{display:none!important}
/* Espace = navigation vidéo seulement. Même si une fiche est encore mémorisée,
   la vue toutes-tables ne doit jamais conserver son questionnaire à droite. */
html body #appDialog.analysis-mode.browsing-all-tables .studio-main{left:0!important;right:0!important;width:100%!important}
html body #appDialog.analysis-mode.browsing-all-tables .question-builder,
html body #appDialog.analysis-mode.browsing-all-tables .spot-list{display:none!important}
html body #appDialog.analysis-mode.previewing-draft .studio-main{left:0!important;right:50%!important;width:auto!important}
html body #appDialog.analysis-mode.previewing-draft .spot-list{display:block!important;position:fixed!important;left:50%!important;right:0!important;top:0!important;bottom:0!important;width:auto!important;max-height:none!important;padding:28px!important;background:#f5f7f6!important;overflow:auto!important}
html body #appDialog.analysis-mode.previewing-draft .spot-list-head,html body #appDialog.analysis-mode.previewing-draft .media-totals,html body #appDialog.analysis-mode.previewing-draft #savedSpots,html body #appDialog.analysis-mode.previewing-draft .studio-note{display:none!important}
html body #appDialog.analysis-mode.previewing-draft .final-preview{display:grid!important;gap:15px!important;padding:24px!important;border:1px solid #cbdad2!important;border-radius:14px!important;background:#fff!important;color:#17241e!important;box-shadow:0 12px 32px rgba(12,38,26,.12)!important}
html body #appDialog.analysis-mode.previewing-draft .final-preview>strong{font-size:24px!important}html body #appDialog.analysis-mode.previewing-draft .final-preview>p{font-size:18px!important;line-height:1.45!important}#previewCategory{color:#39745b;font-size:14px!important}#previewAnswer{display:grid;gap:10px;padding:16px;border-radius:10px;background:#f1f5f3}#previewAnswer label{font-size:15px}#previewAnswer textarea{box-sizing:border-box;width:100%;padding:12px;border:1px solid #bdcec5;border-radius:8px;font:inherit}.answer-choice{grid-template-columns:1fr auto!important}.spot-thumb{flex:0 0 92px;width:92px;height:58px;border-radius:7px;object-fit:cover;background:#050806}
.spot-thumb{position:relative;z-index:2;transition:transform .16s ease,box-shadow .16s ease}.spot:hover .spot-thumb{z-index:30;transform:scale(2.35);transform-origin:left center;box-shadow:0 12px 30px rgba(0,0,0,.65)}.session-card-actions{display:flex;gap:8px;align-items:center}.session-card-actions button{white-space:nowrap}
html body #appDialog.analysis-mode.editing-cut .preparation-context{display:none!important}
.library-preview-page{display:grid;gap:12px;padding:28px;min-height:min(720px,82vh);background:#f3f6f4;color:#18241f}.library-preview-image{display:block;width:min(100%,980px);height:auto;max-height:58vh;margin:0 auto;object-fit:contain;border-radius:12px;background:#070a08}.library-preview-page>small{margin-top:8px;color:#2f7d5a;font-weight:900;letter-spacing:.08em}.library-preview-page h2,.library-preview-page p{margin:0}.library-preview-page>strong{color:#47745e}.library-preview-answers{display:grid;gap:8px;padding:14px;border-radius:10px;background:#fff}.library-preview-answer-box{height:90px;border:1px solid #ccd8d2;border-radius:10px;background:#fff}.library-preview-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}.library-preview-actions button{min-height:42px}
.library-page{padding:28px;min-height:min(720px,82vh);background:#f3f6f4;color:#18241f}.library-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:22px}.library-page-head span{color:#2f7d5a;font-size:11px;font-weight:900;letter-spacing:.09em}.library-page-head h2{margin:5px 0 4px}.library-page-head p{margin:0;color:#65736d}.library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:14px}.library-card{display:grid;grid-template-columns:150px minmax(0,1fr);gap:14px;padding:12px;border:1px solid #d5dfda;border-radius:12px;background:#fff;box-shadow:0 4px 14px rgba(22,46,34,.06)}.library-card>img,.library-thumb-missing{grid-row:1 / 3;width:150px;height:94px;border-radius:8px;object-fit:cover;background:#101512}.library-thumb-missing{display:grid;place-items:center;color:#aeb8b3;font-size:11px}.library-card-copy{display:grid;align-content:start;gap:4px;min-width:0}.library-card-copy small{color:#3f8062;font-weight:800}.library-card-copy strong{font-size:17px}.library-card-copy p{margin:0;color:#4f5f57}.library-card-copy span{color:#7a8781;font-size:12px}.library-card-actions{grid-column:2;display:flex;gap:8px;align-items:center}.library-card-actions button{padding:8px 10px}.library-card:hover>img{transform:scale(1.45);transform-origin:left center;box-shadow:0 10px 28px rgba(0,0,0,.35);transition:.15s ease;z-index:3}@media(max-width:760px){.library-page-head{display:grid}.library-grid{grid-template-columns:1fr}.library-card{grid-template-columns:110px minmax(0,1fr)}.library-card>img,.library-thumb-missing{width:110px;height:72px}}
.classification-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.classification-fields>div{display:grid;gap:5px}.classification-fields select{width:100%}
.action-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.action-fields>div{display:grid;gap:4px}.action-fields span{font-size:12px;font-weight:800;color:var(--muted)}.action-fields select{width:100%}
.detail-fields{display:grid;grid-template-columns:minmax(120px,.7fr) minmax(0,1.3fr);gap:10px}.detail-fields>div{display:grid;gap:5px}.detail-fields select,.detail-fields input{width:100%;box-sizing:border-box}
.library-head-actions{display:flex;flex-wrap:wrap;gap:9px;justify-content:flex-end}.course-organizer{min-height:min(760px,88vh);padding:30px;background:#f2f5f3;color:#16231d}.organizer-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;margin-bottom:18px}.organizer-head small{color:#3b8061;font-size:10px;font-weight:900;letter-spacing:.09em}.organizer-head h2{margin:6px 0;font-size:28px}.organizer-head p{margin:0;color:#68756f}.organizer-toolbar{display:flex;align-items:center;gap:9px;padding:12px;border:1px solid #d8e1dc;border-radius:12px;background:#fff}.organizer-toolbar span{margin-left:auto;color:#607068;font-size:11px;font-weight:800}.organizer-list{display:grid;gap:9px;margin:16px 0}.organizer-card{display:grid;grid-template-columns:44px 150px minmax(0,1fr) auto 24px;align-items:center;gap:14px;padding:11px;border:1px solid #d4ded9;border-radius:13px;background:#fff;box-shadow:0 3px 12px rgba(15,43,30,.05);cursor:grab}.organizer-card.dragging{opacity:.45;border-color:#d0a82e}.organizer-card>img,.organizer-thumb-missing{width:150px;height:88px;border-radius:8px;object-fit:cover;background:#111713}.organizer-thumb-missing{display:grid;place-items:center;color:#b4bdb9;font-size:10px}.organizer-position{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#e8f3ed;color:#2e7657}.organizer-card>div{display:grid;gap:5px;min-width:0}.organizer-card small{color:#438163;font-weight:800}.organizer-card strong{font-size:17px}.organizer-card span{overflow:hidden;color:#65736c;text-overflow:ellipsis;white-space:nowrap}.organizer-card>i{color:#9da7a2;font-style:normal;font-weight:900}.organizer-footer{position:sticky;bottom:0;display:flex;justify-content:flex-end;gap:10px;padding:14px 0 2px;background:linear-gradient(transparent,#f2f5f3 25%)}@media(max-width:760px){.organizer-head{display:grid}.organizer-card{grid-template-columns:38px 88px minmax(0,1fr)}.organizer-card>img,.organizer-thumb-missing{width:88px;height:60px}.organizer-card>button,.organizer-card>i{display:none}.organizer-toolbar{flex-wrap:wrap}.organizer-toolbar span{width:100%;margin-left:0}}
.commentary-track .delete-audio{border:1px solid #b96565;border-radius:8px;background:transparent;color:#f3a2a2;font-size:11px;font-weight:800;padding:9px 12px}.commentary-track .delete-audio:hover{background:#5a2424;color:#fff}
.cancel-preparation{display:block;width:100%;margin-top:9px;border-color:#b96565!important;color:#9b3030!important;background:#fff!important}.cancel-preparation:hover{background:#fff1f1!important}
.app-update{position:fixed;z-index:1000;left:50%;bottom:22px;display:flex;align-items:center;gap:18px;width:min(620px,calc(100vw - 32px));box-sizing:border-box;padding:15px 18px;transform:translateX(-50%);border:1px solid #d9ad16;border-radius:14px;background:#13221c;color:#fff;box-shadow:0 18px 50px rgba(0,0,0,.38)}.app-update[hidden]{display:none}.app-update div{display:grid;gap:3px;flex:1}.app-update span{color:#cbd7d1;font-size:12px}.app-update button{padding:10px 16px;border:0;border-radius:9px;background:#e0b62d;color:#17130a;font-weight:900;cursor:pointer}.app-update button:disabled{opacity:.7}
.course-video-source{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:stretch;margin-top:8px}.course-video-source .course-source{grid-column:1/-1;margin:0!important}.course-source .course-video-name{font-size:16px;line-height:1.25;font-weight:900;overflow-wrap:anywhere}.delete-course-video{padding:8px 10px;border:1px solid #b85d5d;border-radius:8px;background:#fff2f2;color:#9a2929;font-size:10px;font-weight:900;cursor:pointer}.delete-course-video:hover{background:#9a2929;color:#fff}.delete-course-video:disabled{opacity:.55}

/* Référence des pastilles : conserver une image réellement exploitable pendant la préparation. */
.video-tag-reference{display:grid!important;grid-template-columns:1fr auto;align-items:center;gap:8px;margin-top:10px}
.video-tag-reference[hidden]{display:none!important}
.video-tag-reference img{grid-column:1/-1;width:100%!important;height:auto!important;max-height:280px;object-fit:contain;background:#17211d;border:1px solid #cfd9d3;border-radius:9px}
.video-tag-reference span{font-size:11px;font-weight:800}

/* Bibliothèque : sélection multiple et actions toujours accessibles. */
.spot-bulk-actions{position:sticky;z-index:42;top:0;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px;margin:0 8px 6px;border:1px solid #58625d;border-radius:9px;background:#202523;box-shadow:0 5px 14px rgba(0,0,0,.3)}
.spot-bulk-actions label{display:flex;align-items:center;gap:7px;color:#eef4f1;font-size:11px;font-weight:800;cursor:pointer}
.spot-bulk-actions input{width:16px;height:16px;accent-color:#d9b52e}
.spot-bulk-actions button{min-height:32px;padding:6px 10px;border:1px solid #b85d5d;border-radius:7px;background:#4c2323;color:#fff;font-size:10px;font-weight:900;cursor:pointer}
.spot-bulk-actions button:disabled{opacity:.45;cursor:default}
html body #appDialog.analysis-mode .spot-list #savedSpots .spot{position:relative;cursor:pointer}
.spot-select{position:relative;z-index:46;flex:0 0 auto;display:grid;place-items:center;width:24px;height:24px;border:1px solid #829089;border-radius:6px;background:#eef5f1;cursor:pointer}
.spot-select input{width:16px;height:16px;margin:0;accent-color:#317b5a;cursor:pointer}
.spot-card-actions{position:relative;z-index:46}
.spot-card-actions [data-delete-spot]{position:relative;z-index:47;cursor:pointer}
.dictation-button {
  width: max-content;
  margin: .35rem 0 .65rem;
  padding: .5rem .75rem;
  border: 1px solid #b9c7bf;
  border-radius: .65rem;
  background: #fff;
  color: #294437;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.dictation-button:disabled { opacity: .65; cursor: wait; }
.coach-correction { margin: 1rem 0; border: 1px solid #cbd8d0; border-radius: .8rem; background: #f4f8f5; }
.coach-correction > summary { padding: 1rem; color: #294437; font-weight: 800; cursor: pointer; }
.coach-correction-body { display: grid; gap: .75rem; padding: 0 1rem 1rem; }
.coach-correction-body audio { width: 100%; }
.student-preview-detail { width: 100%; margin-top: .75rem; }
.student-choice-answer { display:grid; gap:.35rem; padding:.7rem 0; border-bottom:1px solid #dce5df; }
.student-choice-answer:last-child { border-bottom:0; }
.student-choice-answer .student-preview-detail { margin-top:0; }
.student-preview-playback { display: grid; grid-template-columns:auto 1fr; gap:.6rem; align-items:end; margin:1rem 0; padding:.8rem; border-radius:.8rem; background:#eef5f1; }
.student-preview-playback button { min-height:44px; }
.student-video-overlay { position:fixed; inset:0; z-index:10000; display:grid; place-items:center; padding:24px; background:rgba(4,12,8,.72); }
.student-video-overlay[hidden] { display:none; }
.student-video-window { width:min(1120px,94vw); max-height:90vh; display:grid; grid-template-columns:minmax(250px,32%) minmax(0,1fr); gap:14px; padding:14px; border:1px solid #82958a; border-radius:16px; background:#08100c; box-shadow:0 24px 80px rgba(0,0,0,.55); }
.student-video-question { min-width:0; max-height:calc(90vh - 28px); padding:22px; border-radius:12px; background:#f4f8f5; color:#17241d; overflow:auto; }
.student-video-question small { color:#3f7f63; font-weight:900; letter-spacing:.08em; }
.student-video-question h2 { margin:.6rem 0 1rem; font-size:clamp(1.25rem,2vw,1.8rem); }
.student-video-question p { font-size:1rem; line-height:1.55; }
.student-video-question b { display:block; margin-top:1rem; color:#4b705e; }
.student-video-answer { display:grid; gap:10px; margin-top:20px; padding-top:18px; border-top:1px solid #cbd8d0; }
.student-video-answer>strong,.student-video-documents>strong { color:#17241d; font-size:1rem; }
.student-video-answer textarea { box-sizing:border-box; width:100%; min-height:68px; resize:vertical; }
.student-video-answer .dictation-button { margin-right:6px; }
.student-video-answer #keepOverlayAnswer { width:100%; margin-top:4px; }
.student-video-documents { display:grid; gap:10px; margin-top:18px; padding-top:18px; border-top:1px solid #cbd8d0; }
.student-video-documents .course-asset-card { grid-template-columns:48px minmax(0,1fr); padding:8px; }
.student-video-documents .course-asset-card>a.secondary { display:none; }
.student-video-main { min-width:0; display:grid; grid-template-rows:auto minmax(0,1fr); gap:12px; }
.student-video-window header { display:flex; align-items:center; justify-content:space-between; gap:12px; color:#fff; }
.student-video-window header strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.student-video-window header span { display:flex; align-items:end; gap:8px; }
.overlay-speed-label { display:grid; gap:3px; color:#dce8e1; font-size:11px; font-weight:800; }
.overlay-speed-label select { min-width:78px; padding:9px; border:1px solid #53645b; border-radius:8px; background:#202a25; color:#fff; }
.overlay-loop-label { display:flex; align-items:center; gap:5px; min-height:38px; color:#fff; font-size:12px; font-weight:800; white-space:nowrap; }
.student-video-crop { position:relative; width:100%; max-height:calc(90vh - 82px); margin:auto; overflow:hidden; border-radius:10px; background:#000; }
.student-video-crop video { position:absolute; display:block; max-width:none; max-height:none; object-fit:fill; background:#000; }
.coach-view-rest { width:100%; border-color:#bd914a; background:#fffaf0; }
.library-loading { width:min(440px,calc(100vw - 48px)); min-height:220px; display:grid; place-items:center; align-content:center; gap:12px; text-align:center; }
.library-loading small { color:#6f7d75; }
.library-loading-spinner { width:34px; height:34px; border:4px solid #d9e5de; border-top-color:#397b5d; border-radius:50%; animation:library-spin .75s linear infinite; }
.library-retry { display:grid; place-items:start; gap:12px; padding:24px; border:1px solid #d7bcbc; border-radius:12px; background:#fff8f8; }
@keyframes library-spin { to { transform:rotate(360deg); } }
.course-question-navigation { display:grid; grid-template-columns:1fr 1fr; gap:.75rem; margin:1.2rem 0 .5rem; }
.coach-correction textarea { width:100%; resize:vertical; }
.solution-track[hidden], .coach-note-block[hidden] { display:none!important; }
.save-summary-card { width:100%; margin:.8rem 0; min-height:48px; }
.course-summary-page { width:min(1120px,calc(100vw - 40px)); max-height:calc(100vh - 48px); overflow:auto; padding:8px; }
.course-summary-page>header { position:sticky; top:-8px; z-index:2; display:flex; justify-content:space-between; align-items:flex-start; gap:18px; padding:12px 4px 18px; background:#fff; }
.course-summary-page>header h2 { margin:.25rem 0; }
.course-summary-list { display:grid; gap:18px; }
.course-general-summary{display:grid;gap:12px;margin:0 0 20px;padding:22px;border:1px solid #b9cec1;border-radius:14px;background:#eef6f1}.course-general-summary>small{color:#2f7d5a;font-weight:900;letter-spacing:.08em}.course-general-summary textarea{width:100%;box-sizing:border-box;padding:14px;border:1px solid #b9c9c0;border-radius:10px;background:#fff;font:inherit}.course-general-summary audio{width:100%}.course-general-actions{display:flex;flex-wrap:wrap;gap:10px}.course-general-upload{display:inline-flex;width:max-content}
.course-summary-card { display:grid; grid-template-columns:minmax(280px,42%) 1fr; gap:20px; padding:16px; border:1px solid #cbd8d0; border-radius:14px; background:#f7faf8; }
.course-summary-card.library-preview-page { grid-template-columns:1fr; width:min(100%,620px); margin:0 auto; padding:28px; gap:12px; }
.course-summary-card.library-preview-page>video,.course-summary-card.library-preview-page>img { width:100%; max-height:58vh; }
.course-summary-card>video,.course-summary-card>img { width:100%; max-height:360px; object-fit:contain; border-radius:10px; background:#07100c; }
.course-summary-card audio { width:100%; }
.summary-correction { margin-top:14px; padding:14px; border-radius:10px; background:#edf4f0; }
.summary-question { padding:12px; border-left:4px solid #4b8468; border-radius:8px; background:#fff; }
.empty-course-summary { padding:40px; text-align:center; border:1px dashed #aebdb4; border-radius:14px; }
#appDialog:has(.course-summary-page) { width:min(1160px,calc(100vw - 32px)); max-width:none; padding:16px; overflow:hidden; }
@media(max-width:760px) { .student-preview-playback { grid-template-columns:1fr; } .course-question-navigation { grid-template-columns:1fr; } .student-video-overlay{padding:8px}.student-video-window{width:100%;max-height:96vh;grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);padding:8px}.student-video-question{max-height:28vh;padding:14px}.student-video-window header{align-items:flex-start}.student-video-window header strong{display:none}.student-video-window header span{width:100%;justify-content:flex-end;flex-wrap:wrap}.student-video-crop{max-height:58vh}.course-summary-card{grid-template-columns:1fr}.course-summary-page{width:calc(100vw - 20px)} }
#appDialog:has(.library-page) {
  width: min(1180px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  overflow: hidden;
}
#appDialog:has(.library-page) .dialog-card {
  width: 100%;
  max-width: 100%;
  padding: 0;
  overflow: hidden;
}
#appDialog:has(.library-page) .library-page {
  min-width: 0;
  max-height: calc(100vh - 32px);
  overflow-x: hidden;
  overflow-y: auto;
}
#appDialog:has(.library-page) .library-card-actions {
  grid-column: 1 / -1;
  flex-wrap: wrap;
}
#appDialog:has(.library-page) .library-card-actions > * { flex: 0 1 auto; }
@media(max-width:760px) {
  #appDialog:has(.library-page) { width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
  #appDialog:has(.library-page) .library-page { padding: 18px 12px; max-height: calc(100vh - 16px); }
}
.student-course-actions{display:flex;flex-direction:column;gap:10px;align-items:stretch}.student-course-actions button{justify-content:center}.student-library-completion,.publish-corrected-course{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:22px;padding:18px;border:1px solid #b9cec1;border-radius:14px;background:#eef6f1}.student-library-completion p,.publish-corrected-course p{margin:0}.course-response-alert{color:#fff;background:#b45f28!important;border-color:#b45f28!important;font-weight:800}.session-tags .course-response-alert{padding:5px 9px;border-radius:999px}.course-response-alert[hidden]{display:none!important}
@media(max-width:760px){.student-library-completion,.publish-corrected-course{align-items:stretch;flex-direction:column}}
.student-question-flow{width:min(820px,calc(100vw - 42px));max-height:calc(100vh - 36px);overflow:auto;padding:10px 18px 28px}.student-question-flow>header{position:sticky;top:-10px;z-index:3;display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:20px 0 16px;background:#fff;border-bottom:1px solid #d5e0d9}.student-question-flow>header h2{margin:.25rem 0}.student-question-flow>header p{margin:0;color:#68756e}.student-flow-list{display:grid;gap:24px;padding:24px 0}.student-flow-card{display:grid;gap:11px;padding:28px;border:1px solid #cbd8d0;border-radius:16px;background:#f7faf8}.student-flow-card video{width:100%;max-height:460px;object-fit:contain;border-radius:11px;background:#07100c}.student-flow-card>small{color:#397457;font-weight:900;letter-spacing:.07em}.student-flow-card h2{margin:0}.student-flow-answer{display:grid;gap:12px}.student-flow-answer textarea{width:100%;box-sizing:border-box;padding:12px;border:1px solid #b8c8bf;border-radius:9px;background:#fff;font:inherit}.student-flow-saved{color:#66736c;font-size:.9rem}.student-question-flow>footer{position:sticky;bottom:-28px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px;margin:0 -18px -28px;background:#edf5f0;border-top:1px solid #bdcec3}.student-question-flow>footer button{min-height:48px}#appDialog:has(.student-question-flow){width:min(880px,calc(100vw - 24px));max-width:none;padding:0;overflow:hidden}
@media(max-width:760px){.student-question-flow{width:calc(100vw - 16px);padding:6px 10px 22px}.student-flow-card{padding:14px}.student-question-flow>footer{align-items:stretch;flex-direction:column;margin:0 -10px -22px}}

.teacher-review-flow{width:min(860px,calc(100vw - 42px));max-height:calc(100vh - 36px);overflow:auto;padding:10px 18px 28px}.teacher-review-flow>header{position:sticky;top:-10px;z-index:3;display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:20px 0 16px;background:#fff;border-bottom:1px solid #d5e0d9}.teacher-review-flow>header h2{margin:.25rem 0}.teacher-review-flow>header p{margin:0;color:#68756e}.teacher-review-list{display:grid;gap:24px;padding:24px 0}.teacher-review-card{display:grid;gap:11px;padding:28px;border:1px solid #cbd8d0;border-radius:16px;background:#f7faf8}.teacher-review-card video{width:100%;max-height:460px;object-fit:contain;border-radius:11px;background:#07100c}.teacher-review-card>small,.teacher-review-card>label{color:#397457;font-weight:900;letter-spacing:.07em}.teacher-review-card h2{margin:0}.teacher-student-answer{padding:14px;border-left:4px solid #4a8969;border-radius:8px;background:#fff}.teacher-review-notes{width:100%;box-sizing:border-box;padding:14px;border:1px solid #b8c8bf;border-radius:9px;background:#fff;font:inherit}.teacher-review-assets{display:grid;gap:9px}.teacher-review-flow>footer{position:sticky;bottom:-28px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px;margin:0 -18px -28px;background:#edf5f0;border-top:1px solid #bdcec3}.teacher-review-flow>footer button{min-height:48px}#appDialog:has(.teacher-review-flow){width:min(920px,calc(100vw - 24px));max-width:none;padding:0;overflow:hidden}
@media(max-width:760px){.teacher-review-flow{width:calc(100vw - 16px);padding:6px 10px 22px}.teacher-review-card{padding:14px}.teacher-review-flow>footer{align-items:stretch;flex-direction:column;margin:0 -10px -22px}}
.teacher-review-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.teacher-review-head-actions .primary{white-space:nowrap}.teacher-review-head-actions>small{flex-basis:100%;color:#68776f;text-align:right}.teacher-review-upload{display:inline-flex;justify-content:center;justify-self:start;cursor:pointer}.teacher-review-upload.uploading{opacity:.65;pointer-events:none}.teacher-review-assets>small{color:#68776f}@media(max-width:760px){.teacher-review-flow>header{flex-direction:column}.teacher-review-head-actions{width:100%;justify-content:stretch}.teacher-review-head-actions button{flex:1}.teacher-review-head-actions>small{text-align:left}}
.teacher-review-dock{position:fixed;z-index:1200;right:22px;bottom:18px;display:flex;align-items:center;gap:18px;min-width:340px;padding:14px 18px;border:1px solid #b78a60;border-radius:14px;background:#10241c;color:#fff;box-shadow:0 16px 40px rgba(5,20,14,.32);cursor:pointer}.teacher-review-dock span{color:#cbd9d2}.teacher-review-dock strong{margin-left:auto;color:#fff}@media(max-width:760px){.teacher-review-dock{right:8px;bottom:8px;left:8px;min-width:0}}
.teacher-review-asset-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.teacher-review-asset-actions button.uploading{opacity:.65;pointer-events:none}
.team-head-actions{display:flex;gap:10px;flex-wrap:wrap}.team-status{margin-bottom:18px;padding:13px 16px;border:1px solid #bdd6c8;border-radius:12px;background:#edf7f1;color:#285942;font-weight:750}.team-columns{display:grid;grid-template-columns:1fr 1.2fr;gap:18px}.team-list{display:grid;gap:10px}.team-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px;border:1px solid #d9e3dd;border-radius:12px;background:#fff}.team-card>div small,.team-card>div strong,.team-card>div span{display:block}.team-card>div small{color:#47765f;font-size:10px;font-weight:900;letter-spacing:.08em}.team-card>div span{color:#718078;font-size:12px}.team-card>b{color:#345846;font-size:12px}.team-access-state{grid-column:3;font-style:normal;padding:5px 8px;border-radius:999px;background:#f4e8d4;color:#8a5a2f;font-size:10px;font-weight:850}.team-access-state.active{background:#dff2e7;color:#276246}.team-edit{grid-column:3;padding:8px 11px;font-size:12px}.team-student-card{grid-template-columns:auto minmax(0,1fr) minmax(145px,.7fr)}.team-student-card label{display:grid;gap:4px;color:#68776f;font-size:10px;font-weight:800}.team-student-card select{padding:8px;border:1px solid #cbd8d0;border-radius:8px;background:#fff}@media(max-width:900px){.team-columns{grid-template-columns:1fr}.team-student-card{grid-template-columns:auto minmax(0,1fr)}.team-student-card label,.team-student-card .team-access-state{grid-column:2}}

.student-fixed-image{width:100%;overflow:hidden;border-radius:11px;background:#07100c}.student-fixed-image img,.student-fixed-image video{display:block;width:100%;max-height:460px;object-fit:contain;border-radius:0}.student-fixed-image video{pointer-events:none}
.course-summary-head-actions{display:flex;align-items:center;gap:10px}.course-summary-scroll-top{display:block;margin:24px auto 8px}.scroll-flow-top{flex:0 0 auto}
.course-summary-head-actions{flex-wrap:wrap;justify-content:flex-end}.delete-course{min-height:44px;padding:0 16px;border:1px solid #c98e8e;border-radius:10px;background:#fff7f7;color:#9e3535;font-weight:900;cursor:pointer}.delete-course:hover{background:#fbe9e9}.course-workflow-badge{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:#fff0bd;color:#66500b;font-size:12px;font-weight:900}.course-workflow-badge[data-status="reviewing"],.course-workflow-badge[data-status="student_complete"],.course-workflow-badge[data-status="sent_to_student"]{background:#e9efff;color:#34539b}.course-workflow-badge[data-status="corrected"]{background:#e3f3e9;color:#276744}
.course-identity-editor{display:grid;grid-template-columns:minmax(150px,.65fr) minmax(190px,.75fr) minmax(280px,1.6fr);gap:12px;margin:18px 0;padding:16px;border:1px solid #bfd0c6;border-radius:14px;background:#eef6f1}.course-identity-editor label{display:grid;gap:7px;align-content:start}.course-identity-editor label>span{color:#46725d;font-size:12px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}.course-identity-editor label>strong,.course-identity-editor input{min-height:46px;box-sizing:border-box;padding:12px 13px;border:1px solid #b9c9c0;border-radius:9px;background:#fff;color:#17241e;font:inherit;font-weight:800}.course-identity-editor label>strong{display:flex;align-items:center}.course-title-field{min-width:0}.course-title-field input{width:100%}@media(max-width:760px){.course-identity-editor{grid-template-columns:1fr}.course-title-field{grid-column:auto}}
.student-flow-card>img{width:100%;max-height:460px;object-fit:contain;border-radius:11px;background:#07100c}
.library-card-clip-preview{grid-row:1 / 3;width:150px;height:94px;border-radius:8px;object-fit:cover;background:#101512}@media(max-width:760px){.library-card-clip-preview{width:110px;height:72px}}
/* RiverCoach Night Club — direction visuelle inspirée des interfaces premium de production. */
body{background:#0b0f0d;color:#f3f7f4}.app-shell{background:radial-gradient(circle at 88% 5%,rgba(33,112,77,.14),transparent 30%),linear-gradient(135deg,#0b0f0d,#101713)}.sidebar{background:#080d0b;border-right:1px solid #27332e}.sidebar .nav-item{border:1px solid transparent}.sidebar .nav-item:hover,.sidebar .nav-item.active{background:linear-gradient(90deg,#193326,#102119);border-color:#3f765d;color:#fff}.sidebar .brand-mark{box-shadow:0 0 0 1px #8a7137,0 12px 35px rgba(0,0,0,.4)}main{max-width:none}.topbar h1,.section-heading h2{color:#f6faf7}.topbar p,.section-heading p{color:#8fa098}.view>.section-heading{padding-bottom:18px;border-bottom:1px solid #29332f}.panel,.stat-card,.session-card,.student-card,.card-summary>div,.finance-hero>div,.anki-card{background:#141917;border-color:#2a3530;color:#eef5f1;box-shadow:0 16px 45px rgba(0,0,0,.16)}.hero{border:1px solid #6e5a2c;background:radial-gradient(circle at 78% 20%,rgba(62,158,112,.24),transparent 26%),linear-gradient(125deg,#0c1813,#142c21);box-shadow:0 22px 60px rgba(0,0,0,.28)}.primary{background:linear-gradient(135deg,#347c5c,#245c45);border:1px solid #4b8c6e;box-shadow:0 8px 22px rgba(20,95,64,.22)}.secondary,.chip,.icon-button{background:#171d1a;border-color:#35423c;color:#edf4f0}.chat-layout{height:calc(100vh - 190px);min-height:650px;grid-template-columns:330px minmax(0,1fr);background:#111614;border:1px solid #35433d;border-radius:18px;box-shadow:0 24px 70px rgba(0,0,0,.3)}.chat-list{padding:16px;background:#0d1210;border-right-color:#303c36}.chat-person{padding:15px;border:1px solid transparent}.chat-person.active{background:#1a3026;border-color:#3c6c56}.conversation-head{padding:18px 22px;background:#121a16;border-bottom-color:#344039}.chat-topic-tabs{background:#121a16;border-bottom-color:#344039;padding:12px 22px}.chat-topic-tabs button{background:#171f1b;border-color:#3a4941;color:#cbd7d1}.chat-topic-tabs button.active{background:#315f4b;border-color:#6d9a85;color:#fff}.messages{background:radial-gradient(circle at 50% 50%,rgba(33,105,75,.08),transparent 42%),#0d1210;padding:28px}.message.theirs{background:#1a211e;border-color:#35423c;color:#f1f5f2}.message.mine{background:#234b39;color:#fff}.course-summary{background:#171e1b;border-color:#4a725e;color:#fff}.premium-composer{display:grid;grid-template-columns:auto auto auto minmax(0,1fr) auto;align-items:center;background:#111714;border-top-color:#344039;padding:16px 20px}.premium-composer input{height:46px;background:#0d1210;border-color:#3b4942;color:#f4f8f5}.premium-composer .icon-composer-button{background:#1a211e;border-color:#425047;color:#e2bb60}.student-chat-mode .dialog-card{background:#0d1210;color:#f3f7f4;border:1px solid #445149;box-shadow:0 32px 100px rgba(0,0,0,.55)}.student-chat>header{padding-bottom:14px;border-bottom:1px solid #344039}.student-chat>nav{border-bottom-color:#344039}.student-chat>nav button{background:#171f1b;border-color:#3a4941;color:#cbd7d1}.student-chat>nav button.active{background:#315f4b;border-color:#6d9a85;color:#fff}.student-chat>section{background:radial-gradient(circle at 50% 40%,rgba(35,118,82,.09),transparent 45%),#090e0c;border:1px solid #26312c}.student-chat-message{background:#1a211e;border-color:#35423c;color:#f1f5f2}.student-chat-message.mine{background:#234b39}.student-chat>form{padding:12px 0 0}.student-chat>form input{height:46px;background:#111714;border-color:#3b4942;color:#fff}@media(max-width:760px){.chat-layout{height:calc(100vh - 135px);min-height:560px}.premium-composer{grid-template-columns:auto auto auto minmax(0,1fr)}.premium-composer .primary{grid-column:1/-1}.messages{padding:16px}}
.course-video-alert {
  align-items: center;
  background: #eef7ef;
  border: 1px solid #8bb99a;
  border-radius: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0 0 18px;
  padding: 14px 16px;
}
.course-video-alert[hidden] { display: none; }
.course-video-alert > div { align-items: center; display: flex; gap: 12px; }
.course-video-alert > div > span { align-items: center; background: #4f8b61; border-radius: 50%; color: #fff; display: flex; height: 40px; justify-content: center; width: 40px; }
.course-video-alert p { display: grid; gap: 3px; margin: 0; }
.course-video-alert small { color: #536a5b; }
.course-video-alert .course-opening-warning { border-left: 1px solid #b9cabf; margin-left: 8px; padding-left: 16px; }
.course-video-count { background: #e5f3e8; border: 1px solid #8bb99a; border-radius: 999px; color: #356446; font-size: 12px; font-weight: 800; padding: 5px 9px; }
.upload-database-row .upload-download { justify-self: end; text-decoration: none; white-space: nowrap; }
.prepared-clips-resume { margin: 14px 0 18px; width: 100%; }
.access-form-error{display:block;min-height:20px;margin-top:12px;color:#a33b33;font-weight:800}
.rivercoach-login{position:fixed;inset:0;z-index:5000;display:grid;grid-template-columns:1.1fr .9fr;background:#07140f;color:#fff}.rivercoach-login-brand{display:flex;flex-direction:column;justify-content:center;padding:8vw;background:radial-gradient(circle at 20% 25%,#245b43,transparent 34%),#0a1b14}.rivercoach-login-brand>strong{margin-top:24px;font-family:Georgia,serif;font-size:54px;letter-spacing:.18em}.rivercoach-login-brand>small{letter-spacing:.32em;color:#d9bd91}.rivercoach-login-brand h1{max-width:650px;margin:70px 0 14px;font-family:Georgia,serif;font-size:42px}.rivercoach-login-brand p{max-width:540px;color:#a9c0b4;line-height:1.6}.rivercoach-login form{align-self:center;display:grid;gap:17px;width:min(420px,calc(100% - 48px));margin:auto;padding:36px;border:1px solid #d7e1db;border-radius:18px;background:#fff;color:#17241e}.rivercoach-login form>small{color:#9a663f;font-weight:900;letter-spacing:.14em}.rivercoach-login h2{margin:0 0 10px;font-size:30px}.rivercoach-login label,.temporary-access label{display:grid;gap:7px;font-weight:800}.rivercoach-login input,.temporary-access input{padding:13px;border:1px solid #bfcec5;border-radius:9px;background:#fff;font:inherit}.rivercoach-login output{min-height:20px;color:#a53e35}.temporary-access{display:grid;gap:14px;margin:22px 0;padding:18px;border:1px solid #c9d7cf;border-radius:12px;background:#f4f8f5}.admin-welcome{padding:38px;border-radius:20px;background:linear-gradient(135deg,#0b2419,#174f38);color:#fff}.admin-welcome small{color:#d8b47e;font-weight:900;letter-spacing:.14em}.admin-welcome h2{margin:10px 0;font-size:36px}.admin-welcome p{max-width:760px;color:#c2d4ca;line-height:1.6}.admin-owner-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:18px}.admin-owner-grid article{padding:20px;border:1px solid #d9e3dd;border-radius:14px;background:#fff}.admin-owner-grid small,.admin-owner-grid strong{display:block}.admin-owner-grid small{color:#8b6243;font-size:10px;font-weight:900;letter-spacing:.1em}.admin-owner-grid strong{margin:9px 0}.admin-owner-grid p{margin:0;color:#6e7b74;font-size:13px;line-height:1.5}body[data-account-role="owner"] #team .team-columns{grid-template-columns:1fr}@media(max-width:850px){.rivercoach-login{grid-template-columns:1fr}.rivercoach-login-brand{display:none}.admin-owner-grid{grid-template-columns:1fr 1fr}}@media(max-width:560px){.admin-owner-grid{grid-template-columns:1fr}}
