:root{color-scheme:dark;--bg:#0e1119;--side:#141823;--panel:#1a1f2c;--panel2:#202637;--stroke:#30394b;--stroke2:#404a5d;--text:#f2f4f9;--muted:#a0acbd;--dim:#69768c;--accent:#ffb35c;--accentstrong:#ec8b33;--blue:#789cfb;--mint:#6cd9be;--red:#f28f8e;--shadow:0 16px 60px rgba(0,0,0,.27);font-family:Inter,'Segoe UI',system-ui,sans-serif;font-size:14px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}h1,h2,h3,h4,p{margin:0}button:disabled{opacity:.48;cursor:not-allowed}input,select,textarea{outline:none}input:focus,select:focus,textarea:focus,button:focus-visible{outline:2px solid rgba(255,179,92,.55);outline-offset:2px}::selection{background:#e69a51;color:#151923}
.boot{height:100vh;display:flex;flex-direction:column;gap:16px;align-items:center;justify-content:center;color:var(--muted)}.spinner{width:26px;height:26px;border:3px solid var(--stroke2);border-top-color:var(--accent);border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.layout{min-height:100vh;display:grid;grid-template-columns:255px minmax(0,1fr)}.sidebar{background:var(--side);border-right:1px solid #252b39;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;padding:27px 17px 18px;overflow-y:auto}.logo{display:flex;align-items:center;gap:12px;padding:4px 9px 32px}.logo-mark{height:42px;width:42px;border-radius:13px;background:linear-gradient(135deg,#ffbc69,#ed7c3d);display:flex;align-items:center;justify-content:center;color:#19202b;font-weight:950;font-size:22px;box-shadow:0 7px 24px rgba(241,145,55,.22)}.brand-upper{display:block;color:var(--muted);font-size:10px;letter-spacing:.2em;font-weight:800;margin-bottom:4px}.brand-name{display:block;font-weight:800;font-size:15px;letter-spacing:-.035em}.side-label{margin:15px 12px 9px;text-transform:uppercase;color:#718097;font-size:10px;font-weight:800;letter-spacing:.16em}.side-link{display:flex;align-items:center;gap:12px;border:1px solid transparent;border-radius:10px;padding:12px 13px;margin:3px 0;color:#acb8cc;font-weight:600;text-align:left;background:transparent;width:100%}.side-link:hover{background:#222a39;color:white}.side-link.active{background:#32303a;color:#ffba73;border-color:#554334}.nav-icon{font-size:17px;width:21px;text-align:center;flex-shrink:0}.side-link small{margin-left:auto;color:var(--dim);font-size:11px}.sidebar-bottom{margin-top:auto;padding-top:22px}.side-foot{border-top:1px solid #283042;padding:18px 7px 0;display:flex;align-items:center;gap:11px}.avatar{width:36px;height:36px;border-radius:11px;background:#4f4354;color:#ffc77e;display:flex;justify-content:center;align-items:center;font-weight:800;flex:none}.avatar.small{width:28px;height:28px;border-radius:50%;font-size:11px}.side-user{overflow:hidden;flex:1}.side-user strong{font-size:12px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.side-user span{font-size:11px;color:var(--muted);display:block;margin-top:3px}.icon-button{border:0;color:var(--muted);background:transparent;border-radius:9px;padding:7px;display:inline-flex;justify-content:center;align-items:center}.icon-button:hover{color:#fff;background:#333b4e}
.main{min-width:0;padding:0 38px 56px}.topbar{height:88px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #262d3b;margin-bottom:38px}.crumbs{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden}.crumbs button{border:0;background:none;color:var(--muted);padding:0}.crumbs button:hover{color:var(--accent)}.crumbs strong{color:#e4eaf5;text-overflow:ellipsis;overflow:hidden}.top-right{display:flex;align-items:center;gap:12px;flex-shrink:0}.online{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted)}.online:before{content:"";width:7px;height:7px;border-radius:50%;background:var(--mint);box-shadow:0 0 0 3px rgba(108,217,190,.10)}.mini-version{font-size:11px;color:var(--dim);border:1px solid var(--stroke);padding:7px 9px;border-radius:8px}.mobile-logo{display:none}
.page-header{display:flex;align-items:flex-end;justify-content:space-between;gap:25px;margin-bottom:25px}.eyebrow{text-transform:uppercase;font-size:11px;letter-spacing:.18em;color:var(--accent);font-weight:850;margin-bottom:12px}.page-header h1{font-size:34px;line-height:1.16;letter-spacing:-.05em;font-weight:790}.page-header p{color:var(--muted);margin-top:9px;line-height:1.65;max-width:720px}.actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:39px;border-radius:9px;border:1px solid var(--stroke2);padding:9px 14px;background:#273043;color:var(--text);font-size:12px;font-weight:740;white-space:nowrap}.btn:hover{background:#344054;border-color:#566075}.btn.primary{background:linear-gradient(115deg,#ffbb69,#ed944b);color:#20232d;border-color:#ffb96b;box-shadow:0 7px 25px #ed974123}.btn.primary:hover{filter:brightness(1.08)}.btn.ghost{background:transparent;border:1px solid var(--stroke)}.btn.danger{border-color:#854751;color:#ffb5b5;background:#462a32}.btn.small{min-height:32px;font-size:11px;padding:7px 10px}.btn.icon-only{padding:8px;min-width:38px}.subdued{color:var(--muted)}.hint{color:var(--dim);font-size:11px}.label{font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);font-weight:750}.sep{height:1px;background:var(--stroke);margin:18px 0}
.hero{border:1px solid #4c3d38;border-radius:17px;min-height:176px;padding:33px 36px;display:flex;justify-content:space-between;align-items:center;background:radial-gradient(circle at 91% 20%,rgba(255,164,83,.16),transparent 30%),linear-gradient(130deg,#30262c,#1b2331 72%);margin-bottom:22px;overflow:hidden}.hero h2{font-size:25px;letter-spacing:-.04em;margin-bottom:9px}.hero p{color:#b8b7c4;line-height:1.7;max-width:560px}.hero-shape{font-size:95px;color:#eb9a58;opacity:.28;transform:rotate(-10deg);line-height:1;user-select:none}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:33px}.stat{background:var(--panel);border:1px solid var(--stroke);padding:18px 22px;border-radius:13px}.stat .value{font-size:30px;font-weight:760;letter-spacing:-.05em;margin-bottom:5px}.stat .meta{font-size:12px;color:var(--muted)}.section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:27px 0 16px}.section-title h2{font-size:17px;letter-spacing:-.02em}.section-title p{font-size:11px;color:var(--muted)}
.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(265px,1fr));gap:15px}.festival-card{background:var(--panel);border:1px solid var(--stroke);border-radius:15px;padding:21px;cursor:pointer;transition:transform .15s,border-color .15s}.festival-card:hover{border-color:#7a654f;transform:translateY(-2px)}.folder-icon{height:45px;width:47px;border-radius:11px;background:#383038;color:#ffb569;display:grid;place-items:center;font-size:23px;margin-bottom:24px}.festival-card h3{font-size:16px;letter-spacing:-.02em}.festival-card p{font-size:12px;color:var(--muted);margin-top:8px;min-height:34px;line-height:1.5}.festival-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--stroke);padding-top:16px;margin-top:17px;font-size:11px;color:var(--muted)}.badge{display:inline-flex;align-items:center;gap:5px;padding:5px 9px;background:#313b4c;border-radius:7px;font-size:10px;letter-spacing:.025em;font-weight:780;white-space:nowrap;color:#c5cfdd}.badge.orange{background:#4b3829;color:#ffd19a}.badge.mint{background:#1b453f;color:#a6f2d7}.badge.blue{background:#2f3a5c;color:#bbcaff}.badge.red{background:#4e3037;color:#ffc2c2}.panel{background:var(--panel);border:1px solid var(--stroke);border-radius:14px;overflow:hidden}.panel-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 21px;border-bottom:1px solid var(--stroke)}.panel-header h3{font-size:14px;letter-spacing:-.01em}.panel-header .meta{color:var(--muted);font-size:11px}.panel-body{padding:20px}.empty{padding:55px 20px;text-align:center;color:var(--muted)}.empty .large{font-size:38px;opacity:.7;margin-bottom:13px}.empty h3{color:var(--text);font-size:16px;margin-bottom:9px}.empty p{font-size:12px;line-height:1.6;max-width:380px;margin:0 auto 20px}
.film-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(285px,1fr));gap:15px}.film-card{border:1px solid var(--stroke);background:var(--panel);border-radius:13px;overflow:hidden;cursor:pointer;transition:border-color .16s,transform .16s}.film-card:hover{border-color:#9c7449;transform:translateY(-2px)}.film-poster{height:110px;display:flex;justify-content:center;align-items:center;background:linear-gradient(125deg,#2b3145,#2b2636);font-size:37px;color:#b4a4ab}.film-info{padding:16px 17px}.film-info h3{font-size:15px;font-weight:740}.film-info .details{display:flex;gap:8px;margin-top:15px;flex-wrap:wrap}.info-columns{display:grid;grid-template-columns:1.5fr 1fr;gap:18px;margin-top:27px}.member{display:flex;align-items:center;gap:10px;padding:10px 0;border-top:1px solid var(--stroke)}.member:first-child{border-top:0}.member-main{flex:1;min-width:0}.member-main strong{font-size:12px;display:block}.member-main small{color:var(--muted);font-size:11px}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;text-align:left}.table th{text-transform:uppercase;letter-spacing:.08em;color:var(--dim);font-size:10px;padding:14px 18px;border-bottom:1px solid var(--stroke)}.table td{padding:14px 18px;border-bottom:1px solid var(--stroke);font-size:12px}.table tr:last-child td{border:0}.table td strong{font-size:12px}.table td small{display:block;color:var(--muted);margin-top:5px}
.studio-head{margin-bottom:22px}.studio-head h1{font-size:29px}.studio-meta{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:10px}.studio-grid{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(360px,.88fr);align-items:start;gap:18px}.studio-left{display:flex;flex-direction:column;gap:18px}.video-card{background:#171b25;border:1px solid var(--stroke);border-radius:14px;overflow:hidden}.video-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 18px}.video-head strong{font-size:12px}.video-stage{background:#07090e;aspect-ratio:16/9;position:relative;display:flex;align-items:center;justify-content:center;min-height:240px}.video-stage video{height:100%;width:100%;object-fit:contain;position:absolute;inset:0}.subtitle-overlay{pointer-events:none;position:absolute;bottom:12%;left:8%;right:8%;text-align:center;color:#fff;font-size:clamp(13px,1.55vw,22px);font-weight:650;text-shadow:0 2px 5px #000,0 0 12px #000;white-space:pre-line;line-height:1.25}.video-placeholder{text-align:center;color:#9ba7bc;max-width:270px;padding:20px}.video-placeholder .big{font-size:42px;color:#e0a365;margin-bottom:15px}.video-placeholder h4{color:#f0f3f8;font-size:14px}.video-placeholder p{font-size:12px;margin-top:9px;line-height:1.6}.transport{padding:12px 17px;display:flex;gap:12px;align-items:center;border-top:1px solid var(--stroke)}.transport strong{font-variant-numeric:tabular-nums;font-size:12px;color:#cbd4e2}.transport small{margin-left:auto;color:var(--muted);font-size:11px}.video-card .notebox{margin:0 16px 16px}
.track-selector{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.track-pill{border:1px solid var(--stroke);background:#212736;color:var(--muted);padding:8px 11px;border-radius:8px;font-size:11px;font-weight:740}.track-pill.selected{background:#46382e;border-color:#98663f;color:#ffca92}.track-pill:hover{border-color:#bd9a71;color:white}.progress-track{height:5px;border-radius:9px;background:#373f4c;overflow:hidden;margin-top:11px}.progress-track span{display:block;height:100%;background:var(--mint);border-radius:9px}.editor-panel .panel-body{padding:18px}.cue-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px;gap:10px}.cue-heading h3{font-size:13px}.cue-form{display:flex;flex-direction:column;gap:14px}.field{display:flex;flex-direction:column;gap:7px}.field label{color:var(--muted);font-size:11px;font-weight:750}.field input,.field select,.field textarea,.form-input{border:1px solid var(--stroke2);background:#111622;border-radius:9px;color:#eef2fa;padding:11px 13px;width:100%;min-height:42px}.field textarea{resize:vertical;min-height:86px;line-height:1.55}.field select{background:#161c29}.field input::placeholder,.field textarea::placeholder{color:#58677a}.time-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field-hint{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:7px}.qc-pill{font-size:10px;border-radius:6px;padding:5px 8px;background:#263b33;color:#9ae8b6}.qc-pill.warn{background:#50332e;color:#ffc4a6}.editor-actions{display:flex;align-items:center;gap:10px;justify-content:space-between;padding-top:4px}.saved-indicator{font-size:11px;color:var(--muted)}.saved-indicator.dirty{color:var(--accent)}.conflict{padding:13px;background:#49302f;border:1px solid #b26b64;border-radius:9px;font-size:12px;line-height:1.55;color:#ffd8d1}.conflict strong{display:block;margin-bottom:5px}.notebox{background:#242c3b;border:1px solid #3a4457;border-radius:9px;padding:11px 12px;color:#aebbce;font-size:11px;line-height:1.6}
.cues-panel{position:sticky;top:20px;display:flex;flex-direction:column;min-height:710px;max-height:calc(100vh - 135px)}.cues-panel .panel-header{flex-wrap:wrap}.cues-panel .toolbar{padding:12px 16px;border-bottom:1px solid var(--stroke);display:flex;gap:9px;align-items:center}.search{width:100%;background:#121725;border:1px solid var(--stroke);border-radius:9px;padding:10px 12px;color:var(--text);min-width:0;font-size:12px}.cues-scroll{overflow:auto;flex:1;min-height:150px;padding:9px}.cue-item{border:1px solid transparent;border-radius:10px;padding:13px 14px;cursor:pointer;margin-bottom:5px;transition:background .1s}.cue-item:hover{background:#272f3f}.cue-item.selected{background:#373139;border-color:#a36b43}.cue-item.playing:not(.selected){background:#223841;border-color:#41646a}.cue-top{display:flex;align-items:center;gap:8px;justify-content:space-between}.cue-number{font-size:11px;font-weight:850;color:#a6b6d4}.cue-time{font-variant-numeric:tabular-nums;color:var(--muted);font-size:10px;letter-spacing:.025em}.cue-copy{font-size:12px;line-height:1.6;white-space:pre-line;margin-top:10px;overflow-wrap:anywhere}.cue-bottom{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-top:10px}.cue-bottom .by{font-size:10px;color:var(--dim)}.cues-foot{border-top:1px solid var(--stroke);padding:11px 15px;display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--muted);font-size:11px}.presence{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.presence .avatar{box-shadow:0 0 0 2px var(--panel)}.presence .names{font-size:10px;color:#b5c2d3}
.login-page{min-height:100vh;background:radial-gradient(circle at 75% 20%,#382c31 0,transparent 34%),radial-gradient(circle at 15% 80%,#202a3a 0,transparent 34%),#10141e;display:grid;place-items:center;padding:24px}.login-card{background:#1b2130;border:1px solid #384255;border-radius:20px;width:min(430px,100%);padding:42px;box-shadow:var(--shadow)}.login-card .logo-mark{width:54px;height:54px;font-size:28px;margin-bottom:27px}.login-card h1{font-size:27px;letter-spacing:-.055em;margin-bottom:12px}.login-card p{color:var(--muted);font-size:12px;line-height:1.7;margin-bottom:29px}.login-card .field{margin-bottom:18px}.login-card .btn{width:100%;margin-top:12px;min-height:45px}.login-footer{text-align:center;color:var(--dim);font-size:10px;margin-top:24px;line-height:1.6}.login-error{margin-top:15px;color:#ffb3b0;font-size:12px}
#modal-root:empty{display:none}.modal-backdrop{position:fixed;inset:0;background:#070b13d9;backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;z-index:100;padding:18px}.modal{width:min(520px,100%);max-height:90vh;overflow:auto;background:#1e2534;border:1px solid #465063;border-radius:16px;box-shadow:var(--shadow)}.modal-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--stroke);padding:20px 23px}.modal-head h2{font-size:17px}.modal-body{padding:22px}.modal-body .field{margin-bottom:17px}.modal-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;border-top:1px solid var(--stroke);padding:17px 22px}.modal-error{font-size:11px;color:#ffc0c0;margin-bottom:14px;line-height:1.5}.modal-desc{color:var(--muted);font-size:12px;line-height:1.7;margin-bottom:17px}
#toast-zone{position:fixed;right:22px;bottom:20px;display:flex;flex-direction:column;gap:8px;z-index:200;pointer-events:none}.toast{background:#304338;border:1px solid #629276;border-radius:10px;padding:12px 16px;color:#d4f5df;font-size:12px;box-shadow:var(--shadow);max-width:350px}.toast.error{background:#513238;border-color:#a56468;color:#ffe0e0}
@media(max-width:1150px){.layout{grid-template-columns:215px minmax(0,1fr)}.sidebar{padding-left:12px;padding-right:12px}.main{padding:0 22px 40px}.studio-grid{grid-template-columns:1fr}.cues-panel{max-height:660px;position:static}.info-columns{grid-template-columns:1fr}}
@media(max-width:750px){.layout{display:block}.sidebar{position:static;height:auto;flex-direction:row;padding:10px 15px;align-items:center;gap:9px;overflow:visible;border-bottom:1px solid var(--stroke)}.logo{padding:0;flex:1}.logo-mark{height:35px;width:35px;font-size:19px;border-radius:9px}.brand-upper{display:none}.brand-name{font-size:13px}.side-label,.sidebar .side-link,.sidebar-bottom{display:none}.mobile-logo{display:block}.main{padding:0 15px 35px}.topbar{height:60px;margin-bottom:26px}.top-right .online{display:none}.page-header{align-items:start;flex-direction:column}.page-header h1{font-size:28px}.hero{padding:24px;min-height:0}.hero-shape{display:none}.stats{gap:8px}.stat{padding:14px 11px}.stat .value{font-size:24px}.stat .meta{font-size:10px}.studio-head h1{font-size:25px}.studio-grid{display:flex;flex-direction:column}.studio-left,.cues-panel{width:100%}.video-stage{min-height:200px}.cues-panel{min-height:400px;max-height:650px}.time-grid{grid-template-columns:1fr 1fr}.login-card{padding:27px}}

/* Import proxy — visible progress bar, uploaded bytes, and waiting-for-server state. */
.upload-progress{border:1px solid #40516a;background:#141d2b;border-radius:11px;padding:14px;margin-bottom:16px;display:flex;flex-direction:column;gap:10px}
.upload-progress[hidden]{display:none}
.upload-progress-row{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;color:#e1e8f5}
.upload-progress-row strong:last-child{font-variant-numeric:tabular-nums;white-space:nowrap;color:#ffbd71}
.upload-progress-bar{height:11px;border-radius:999px;overflow:hidden;background:#394354}
.upload-progress-bar span{display:block;height:100%;width:0;background:linear-gradient(90deg,#d68a35,#ffca83);border-radius:inherit;transition:width .15s ease-out}
.upload-progress small{font-size:11px;color:#9eacc2;font-variant-numeric:tabular-nums}


/* Gestion des droits d'utilisateur et des membres */
.member-actions{display:flex;gap:7px;flex-wrap:wrap;margin-left:12px}
.member-actions .btn{flex-shrink:0}
.permission-title{font-size:13px;color:#eef2fa;margin:17px 0 9px}
.permission-help{font-size:11px;color:#a0acbd;line-height:1.65;margin-bottom:13px}
.permission-notice{font-size:12px;color:#ffe1ae;background:#4b3a2b;padding:12px 14px;border:1px solid #756046;border-radius:9px;margin:12px 0}
.permission-row{display:grid;grid-template-columns:minmax(125px,1fr) minmax(160px,1fr);gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid #30394b}
.permission-row label{font-size:12px;font-weight:650;color:#e6eafa;overflow-wrap:anywhere}
.permission-row select{border:1px solid #404a5d;background:#161c29;color:#f2f4f9;border-radius:8px;padding:10px;max-width:100%;min-width:0}
@media(max-width:680px){.permission-row{grid-template-columns:1fr}.member{flex-wrap:wrap}.member-actions{width:100%;margin-left:0;justify-content:flex-end}}


/* Suivi de lecture, annotations et sous-titres désactivés */
.cue-item.playing{border-color:#54a8b8!important;box-shadow:inset 3px 0 0 #62c4d8}
.cue-item.selected.playing{background:#30414a}
.cue-item.inactive{background:rgba(60,40,45,.14);border-color:#483a45}
.cue-item.inactive .cue-copy{opacity:.55;text-decoration:line-through}
.cue-tags{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.comment-icon{color:#c7b3ff;font-size:10px;font-weight:600;white-space:nowrap}
.cue-edit-buttons{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-end}
.cue-heading{flex-wrap:wrap}
.cue-form #cue-comment{min-height:78px}
@media(max-width:680px){.editor-actions{align-items:stretch;flex-direction:column}.cue-edit-buttons .btn{flex:1}}


/* v0.2.17.5 — native Chromium controls: play/pause, sound, seek only.
   controlslist="nodownload nofullscreen noremoteplayback noplaybackrate"
   and the HTML disable* flags are the primary browser features. These
   shadow selectors are best-effort because browsers own their native UI. */
#film-video::-webkit-media-controls-fullscreen-button,
#translator-video::-webkit-media-controls-fullscreen-button,
#film-video::-webkit-media-controls-picture-in-picture-button,
#translator-video::-webkit-media-controls-picture-in-picture-button,
#film-video::-webkit-media-controls-overflow-button,
#translator-video::-webkit-media-controls-overflow-button,
#film-video::-webkit-media-controls-cast-button,
#translator-video::-webkit-media-controls-cast-button,
#film-video::-webkit-media-controls-remote-playback-button,
#translator-video::-webkit-media-controls-remote-playback-button,
#film-video::-webkit-media-controls-download-button,
#translator-video::-webkit-media-controls-download-button,
#film-video::-webkit-media-controls-playback-rate-button,
#translator-video::-webkit-media-controls-playback-rate-button,
#film-video::-webkit-media-controls-toggle-closed-captions-button,
#translator-video::-webkit-media-controls-toggle-closed-captions-button{
  display:none!important
}

/* Le nom est superposé au lecteur : visible sur les enregistrements d'écran du studio. */
.video-watermark{
  position:absolute;z-index:3;top:14px;right:14px;
  pointer-events:none;user-select:none;
  max-width:min(70%,330px);padding:7px 11px;
  display:flex;flex-direction:column;align-items:flex-end;gap:3px;
  background:rgba(3,8,15,.64);border:1px solid rgba(255,255,255,.16);
  border-radius:7px;color:#fff;text-align:right;text-shadow:0 1px 4px #000;
  overflow-wrap:anywhere;
}
.video-watermark span{font-size:9px;line-height:1.25;font-weight:700;letter-spacing:.12em;opacity:.72}
.video-watermark strong{font-size:clamp(11px,1.15vw,15px);line-height:1.35;font-weight:750}
.subtitle-overlay i,.cue-copy i{font-style:italic}
.subtitle-overlay b,.cue-copy b{font-weight:800}
.subtitle-overlay u,.cue-copy u{text-decoration:underline}
@media(max-width:750px){.video-watermark{top:8px;right:8px;max-width:68%;padding:5px 8px}.video-watermark span{font-size:8px}}


/* Sous-titres : édition visuelle sans balises apparentes. */
.subtitle-format-bar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;border:1px solid var(--stroke2);background:#181e2a;border-radius:9px 9px 0 0;padding:7px 8px}
.subtitle-format-bar .format-button{min-width:35px;min-height:32px;padding:5px 10px;border-color:#495467;background:#2a3547}
.subtitle-format-bar .format-button:hover,.subtitle-format-bar .format-button:focus-visible{background:#465571;border-color:#a5b8d6}
.format-hint{margin-left:7px;font-size:10px;color:#9aacc7}
.rich-subtitle-editor{width:100%;min-height:114px;padding:13px 14px;border:1px solid var(--stroke2);background:#111622;color:#eef2fa;border-radius:0 0 9px 9px;line-height:1.6;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;outline:none;overflow-y:auto;max-height:300px;cursor:text;user-select:text}
.rich-subtitle-editor:focus{border-color:#db9f62;box-shadow:0 0 0 2px rgba(255,184,94,.12)}
.rich-subtitle-editor[contenteditable="false"]{cursor:default;opacity:.9;border-radius:9px}
.rich-subtitle-editor i,.rich-subtitle-editor em{font-style:italic}
.rich-subtitle-editor b,.rich-subtitle-editor strong{font-weight:800}
.rich-subtitle-editor u{text-decoration:underline}
@media(max-width:680px){.format-hint{width:100%;margin-left:2px}}

.profile-link{background:none;border:0;text-align:left;cursor:pointer;color:inherit;padding:2px 0;min-width:0}
.profile-link:hover strong{text-decoration:underline;color:var(--accent)}
.profile-panel{max-width:720px}
.profile-form{display:grid;grid-template-columns:1fr 1fr;gap:17px}
.profile-form h3,.profile-form p,.profile-form .actions,.profile-form .modal-error{grid-column:1/-1}
.profile-form h3{font-size:15px;border-top:1px solid var(--stroke);padding-top:18px}
.access-table-wrap{overflow:auto;width:100%}
.access-matrix{min-width:650px}
.access-matrix th:not(:first-child),.access-matrix .check-cell{text-align:center}
.access-matrix .check-cell input{width:18px;height:18px;accent-color:var(--accentstrong)}
.access-footer{padding:16px;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.access-add{padding:18px;display:grid;grid-template-columns:1.3fr .8fr auto;gap:10px;align-items:center;border-top:1px solid var(--stroke)}
.access-global{padding:16px 18px;border-top:1px solid var(--stroke);font-size:12px;color:var(--muted);line-height:1.8}
.access-global strong{color:var(--text)}
.member-role-select{min-width:140px}
.user-actions{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:7px;min-width:260px}
.user-actions .btn{white-space:nowrap}
.user-row-disabled td{opacity:.87}
.user-actions .danger{opacity:1}
@media(max-width:750px){.profile-form{grid-template-columns:1fr}.access-add{grid-template-columns:1fr}}

/* Thème clair pour la navigation et les éléments d'édition ; le lecteur vidéo reste noir. */
html[data-theme="light"]{color-scheme:light;--bg:#f4f6fa;--side:#fff;--panel:#fff;--panel2:#edf1f7;--stroke:#d7dfea;--stroke2:#b9c5d5;--text:#172336;--muted:#5d6c80;--dim:#78869a;--accent:#9b5c19;--accentstrong:#ad6618;--blue:#526cc2;--mint:#14765c;--red:#ad3439;--shadow:0 12px 32px rgba(27,41,62,.1)}
html[data-theme="light"] .sidebar{background:#fff;border-color:#dce3eb}
html[data-theme="light"] .side-link{color:#4e6077}
html[data-theme="light"] .side-link:hover{background:#edf2f9;color:#172336}
html[data-theme="light"] .side-link.active{background:#fcebd8;color:#7a450c;border-color:#e6c79a}
html[data-theme="light"] .topbar{border-color:#dce3eb}
html[data-theme="light"] .crumbs strong,html[data-theme="light"] .page-header h1{color:#172336}
html[data-theme="light"] .stat,html[data-theme="light"] .festival-card,html[data-theme="light"] .film-card,html[data-theme="light"] .panel{background:#fff;color:#172336}
html[data-theme="light"] .hero{background:linear-gradient(130deg,#fff4e8,#eaf1fc);border-color:#e2c6a8}
html[data-theme="light"] .hero h2{color:#26354a}
html[data-theme="light"] .hero p{color:#52617b}
html[data-theme="light"] .btn:not(.primary):not(.danger){background:#f2f5fa;color:#263850;border-color:#cbd5e2}
html[data-theme="light"] .btn:not(.primary):hover{background:#e0e9f5}

html[data-theme="light"] .badge{background:#e8edf6;color:#43556d}
html[data-theme="light"] .badge.mint{background:#d9f7e8;color:#17634e}
html[data-theme="light"] .badge.orange{background:#fff1dc;color:#8f5418}
html[data-theme="light"] .badge.blue{background:#e2e9ff;color:#3d5598}
html[data-theme="light"] .badge.red{background:#fce6e8;color:#a1343e}
html[data-theme="light"] .notebox{background:#e9f1fa;color:#435773;border-color:#c9d8e8}
html[data-theme="light"] .field input,html[data-theme="light"] .field select,html[data-theme="light"] .field textarea,html[data-theme="light"] .search,html[data-theme="light"] .rich-subtitle-editor{background:#fff;color:#16243a;border-color:#b9c6d7}
html[data-theme="light"] .modal{background:#fff;color:#172336;border-color:#d1dce9}
html[data-theme="light"] .track-pill{background:#eaf0f9;color:#4a5b70}
html[data-theme="light"] .track-pill.selected{background:#ffe9d3;color:#8d4e17;border-color:#e0ae75}
html[data-theme="light"] .cue-item:hover{background:#edf2f8}
html[data-theme="light"] .cue-item.selected{background:#fff2e3;border-color:#c88b51}
html[data-theme="light"] .cue-item.playing:not(.selected){background:#e4f6fb;color:#182b3a}
html[data-theme="light"] .cue-item.selected.playing{background:#e1f3f6}
html[data-theme="light"] .cue-number,html[data-theme="light"] .cue-heading h3{color:#253b52}
html[data-theme="light"] .subtitle-format-bar{background:#eff3f8;border-color:#bdc8d7}
html[data-theme="light"] .subtitle-format-bar .format-button{background:#e2e9f3;color:#23334a}
html[data-theme="light"] .video-card,html[data-theme="light"] .video-stage{background:#07090e;color:#fff}
html[data-theme="light"] .video-head{color:#172336;background:#fff}
html[data-theme="light"] .transport{background:#fff;color:#23334a}
html[data-theme="light"] .transport strong{color:#23334a}
html[data-theme="light"] .login-page{background:linear-gradient(120deg,#f4f7fc,#faefe0)}
html[data-theme="light"] .login-card{background:#fff;border-color:#d4dce8}
html[data-theme="light"] .login-card h1{color:#172336}


/* v0.2.2 — Affiches portrait 2:3, listes et fiches film. */
.film-card{display:flex;align-items:stretch;min-height:181px}
.film-card .film-poster{flex:0 0 120px;width:120px;height:auto;min-height:180px;aspect-ratio:2/3;overflow:hidden;display:flex;align-items:center;justify-content:center}
.film-poster img,.studio-poster img,.poster-preview img{display:block;width:100%;height:100%;object-fit:cover}
.film-poster .poster-placeholder{font-size:38px;color:#e8ba89}
.film-card .film-info{display:flex;flex:1;min-width:0;flex-direction:column;justify-content:space-between;padding:18px 16px}
.film-card .film-info h3{line-height:1.3;overflow-wrap:anywhere}
.film-card .details{margin-top:13px}
.studio-identity{display:flex;align-items:center;gap:21px;min-width:0}
.studio-identity>div:last-child{min-width:0}
.studio-identity h1{overflow-wrap:anywhere}
.studio-poster{display:flex;flex:0 0 96px;width:96px;height:144px;overflow:hidden;align-items:center;justify-content:center;background:linear-gradient(145deg,#38394b,#242532);border:1px solid var(--stroke);border-radius:8px;box-shadow:0 9px 24px rgba(0,0,0,.2)}
.studio-poster .poster-placeholder{font-size:31px;color:#e8ba89}
.poster-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 0 19px;margin-top:-7px}
.poster-toolbar .actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.poster-upload-guide{display:flex;align-items:flex-start;gap:22px}
.poster-preview{flex:0 0 140px;width:140px;aspect-ratio:2/3;min-height:210px;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:10px;border:1px solid var(--stroke2);background:var(--panel2)}
.poster-preview .poster-placeholder{font-size:44px;color:var(--muted)}
.poster-upload-info{min-width:0;flex:1}
.poster-upload-info .modal-desc{margin-bottom:12px}
.poster-upload-info input[type="file"]{font-size:12px;max-width:100%;width:100%}
@media(max-width:650px){
  .studio-head{align-items:flex-start;flex-direction:column}
  .studio-poster{flex-basis:78px;width:78px;height:117px}
  .studio-identity{gap:15px}
  .poster-upload-guide{gap:14px}
  .poster-preview{flex-basis:104px;width:104px;min-height:156px}
}


/* v0.2.3 — Production planning and personal workload */
.production-home-links{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 24px}
.production-work-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:24px}
.production-work-stats>div{background:var(--panel);border:1px solid var(--stroke);border-radius:13px;padding:19px 20px;display:flex;flex-direction:column;gap:6px}
.production-work-stats strong{font-size:28px;font-weight:850;font-variant-numeric:tabular-nums;letter-spacing:-.04em}
.production-work-stats span{font-size:11px;color:var(--muted)}
.production-filter-bar{background:var(--panel);border:1px solid var(--stroke);border-radius:13px;padding:16px 20px;display:grid;grid-template-columns:1fr 1fr 1.4fr;gap:16px;margin-bottom:23px;align-items:end}
.production-filter-bar .field{margin:0;min-width:0}
.production-filter-bar label{display:block;font-size:11px;margin-bottom:7px;color:var(--muted);font-weight:700}
.production-filter-bar input,.production-filter-bar select{width:100%;min-width:0}
.production-cards{display:flex;flex-direction:column;gap:13px;margin-bottom:22px}
.production-film-card{display:flex;gap:0;background:var(--panel);border:1px solid var(--stroke);border-radius:14px;overflow:hidden;min-height:177px;transition:border-color .15s}
.production-film-card:hover{border-color:var(--accent)}
.production-card-poster{flex:0 0 118px;width:118px;background:linear-gradient(140deg,#2b3145,#382b39);display:flex;align-items:center;justify-content:center;overflow:hidden}
.production-card-poster img{width:100%;height:100%;object-fit:cover}
.production-card-poster>span{color:#dcae77;font-size:36px}
.production-card-content{flex:1;min-width:0;padding:19px 22px 16px;display:flex;flex-direction:column;gap:11px}
.production-card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;min-width:0}
.production-card-top h3{font-size:16px;overflow-wrap:anywhere;margin-top:5px}
.production-festival{color:var(--muted);font-size:10px;font-weight:750;letter-spacing:.025em}
.production-card-status{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.production-card-meta{display:flex;gap:9px 20px;flex-wrap:wrap;font-size:11px;color:var(--muted)}
.production-card-meta strong{color:var(--text);font-weight:750}
.production-progress{display:flex;flex-direction:column;gap:8px;width:100%;margin-top:3px}
.production-progress-head{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--muted);font-size:11px}
.production-progress-head strong{color:var(--text);font-variant-numeric:tabular-nums}
.production-track{width:100%;height:9px;border-radius:999px;overflow:hidden;background:var(--stroke)}
.production-track span{height:100%;display:block;border-radius:999px;background:linear-gradient(90deg,#cb853a,#f9be77);transition:width .18s ease}
.production-card-footer{display:flex;justify-content:flex-end;margin-top:1px}
.production-panel{margin-bottom:21px}
.production-panel-header{flex-wrap:wrap}
.production-panel-header .meta{display:block;margin-top:6px;font-size:11px;color:var(--muted)}
.production-info-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:18px}
.production-info-grid>div{display:flex;gap:8px;align-items:flex-start;flex-direction:column;min-width:0}
.production-info-grid strong{font-size:13px;overflow-wrap:anywhere}
.production-info-label{color:var(--muted);font-size:11px;font-weight:700}
.production-info-grid .badge{max-width:100%}
.production-panel .production-progress{margin:0 0 17px}
.production-task-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding-top:17px;border-top:1px solid var(--stroke)}
.production-task-head strong{font-size:13px}
.production-task-head p{font-size:11px;line-height:1.6;margin-top:5px}
.production-empty{font-size:12px;color:var(--muted);padding:18px 0 4px}
.production-task-list{display:flex;flex-direction:column;margin-top:12px;border:1px solid var(--stroke);border-radius:10px;overflow:hidden}
.production-task-row{display:flex;gap:13px;align-items:center;flex-wrap:wrap;padding:13px 15px;border-bottom:1px solid var(--stroke)}
.production-task-row:last-child{border:0}
.production-task-main{min-width:185px;flex:1}
.production-task-main strong{font-size:12px;line-height:1.4}
.production-task-main .hint{margin-top:5px;line-height:1.5;font-size:11px}
.production-task-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center;justify-content:flex-end}
.production-task-actions .btn{white-space:nowrap}
.production-late{color:var(--red)}
.mywork-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:13px;margin-bottom:22px}
.mywork-card{border:1px solid var(--stroke);border-radius:14px;background:var(--panel);padding:20px;display:flex;flex-direction:column;gap:11px}
.mywork-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.mywork-top h3{font-size:15px;margin-top:6px;overflow-wrap:anywhere}
.mywork-card p{font-size:12px;color:var(--muted);line-height:1.5}
.mywork-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-top:auto;padding-top:6px}
.mywork-actions>.btn{margin-left:auto}
.film-info .production-progress{margin-top:13px}
.film-info .production-progress-head{font-size:10px}
@media(max-width:900px){
 .production-work-stats,.production-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .production-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))}
 .production-filter-bar .field:last-child{grid-column:1/-1}
}
@media(max-width:580px){
 .production-filter-bar{grid-template-columns:1fr}
 .production-filter-bar .field:last-child{grid-column:auto}
 .production-film-card{min-height:165px}
 .production-card-poster{flex-basis:86px;width:86px}
 .production-card-content{padding:13px 13px}
 .production-card-top{flex-direction:column;gap:9px}
 .production-card-status{justify-content:flex-start}
 .production-card-meta{gap:8px;flex-direction:column}
 .production-card-footer{justify-content:flex-start}
 .production-task-head{align-items:flex-start;flex-direction:column}
 .production-task-actions{justify-content:flex-start;width:100%}
 .production-task-row>.badge{margin-right:auto}
}


/* v0.2.4 — Subtitle quality-control report, anomaly diagnostics and safe edits */
.qc-guidance{max-width:860px;font-size:12px;line-height:1.6;color:var(--muted);margin:-8px 0 21px}
.qc-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:22px}
.qc-stat{border:1px solid var(--stroke);border-radius:13px;background:var(--panel);padding:18px 20px;display:flex;flex-direction:column;gap:6px}
.qc-stat strong{font-size:27px;font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:-.03em}
.qc-stat span{font-size:11px;color:var(--muted)}
.qc-report-panel{margin-bottom:20px}
.qc-report-panel>.panel-header{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}
.qc-report-panel .panel-header h3{font-size:14px;margin-bottom:5px}
.qc-track-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(225px,1fr));gap:10px}
.qc-track-summary-item{border-radius:9px;padding:13px;background:var(--panel2);border:1px solid var(--stroke);display:flex;flex-direction:column;gap:7px}
.qc-track-summary-item span{font-size:11px;color:var(--muted)}
.qc-track-summary-item .qc-track-name{font-size:12px;color:var(--text);font-weight:700;overflow-wrap:anywhere}
.qc-filters{display:grid;grid-template-columns:1.1fr 1fr 1.2fr 1.4fr;gap:12px;margin-bottom:18px;align-items:end}
.qc-filters .field{margin:0;min-width:0}
.qc-filters label{font-size:11px;font-weight:700;margin-bottom:7px;color:var(--muted)}
.qc-filters input,.qc-filters select{width:100%;min-width:0}
.qc-result-heading{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;align-items:center;border-top:1px solid var(--stroke);padding:18px 0 14px;font-size:12px}
.qc-issue-list{display:flex;flex-direction:column;gap:10px}
.qc-issue{display:grid;grid-template-columns:175px minmax(0,1fr) auto;gap:18px;align-items:center;background:var(--panel2);padding:14px 16px;border-radius:10px;border:1px solid var(--stroke);border-left:3px solid #bc8d4c}
.qc-issue.qc-error{border-left-color:#cd685b}
.qc-issue-number{display:flex;flex-direction:column;gap:6px;min-width:0}
.qc-issue-number strong{font-size:14px;font-variant-numeric:tabular-nums}
.qc-issue-number span{font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.qc-issue-body{display:flex;flex-direction:column;gap:5px;min-width:0}
.qc-issue-heading{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.qc-issue-heading strong{font-size:12px}
.qc-severity{border-radius:6px;font-size:10px;font-weight:700;padding:3px 6px}
.qc-severity-error{background:rgba(205,104,91,.15);color:#db8d82}
.qc-severity-warning{background:rgba(191,146,68,.14);color:#cfa966}
.qc-issue-detail{font-size:11px;color:var(--muted);line-height:1.5}
.qc-cue-excerpt{font-size:12px;line-height:1.45;font-weight:600;overflow-wrap:anywhere;white-space:normal;margin-top:2px}
.qc-issue-actions{display:flex;flex-direction:column;gap:7px;align-items:stretch}
.qc-issue-actions button{white-space:nowrap}
.qc-clear{min-height:160px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:10px;color:var(--muted);padding:20px}
.qc-clear h3{font-size:14px;color:var(--text)}
.qc-clear p{font-size:12px;max-width:420px;line-height:1.5}
.qc-clear-icon{font-size:28px;color:#50ad91;border:2px solid currentColor;border-radius:50%;width:54px;height:54px;display:flex;align-items:center;justify-content:center}
.qc-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.qc-settings-grid .field{min-width:0}
.qc-flags{display:flex;flex-direction:column;gap:12px;margin-top:18px;padding-top:16px;border-top:1px solid var(--stroke)}
.qc-flag{display:flex;align-items:center;gap:9px;font-size:12px;line-height:1.5;cursor:pointer}
.qc-flag input{width:16px;height:16px;accent-color:var(--accent);flex:0 0 16px}
.qc-fix-preview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}
.qc-fix-preview>div{min-width:0}
.qc-fix-preview strong{font-size:12px;display:block;margin-bottom:8px}
.qc-fix-preview pre{padding:12px;border:1px solid var(--stroke);background:var(--panel2);border-radius:9px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;font-size:12px;max-height:260px;overflow:auto}
.cue-tags .badge.orange{white-space:nowrap}
.qc-pill.error{background:rgba(205,104,91,.16);color:#d98075}
@media(max-width:1100px){
 .qc-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
 .qc-issue{grid-template-columns:135px minmax(0,1fr)}
 .qc-issue-actions{grid-column:2;flex-direction:row;flex-wrap:wrap}
}
@media(max-width:680px){
 .qc-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .qc-filters{grid-template-columns:1fr}
 .qc-issue{grid-template-columns:1fr;gap:10px}
 .qc-issue-number{flex-direction:row;align-items:baseline;gap:10px}
 .qc-issue-actions{grid-column:1}
 .qc-settings-grid,.qc-fix-preview{grid-template-columns:1fr}
}


/* v0.2.5 — Team notifications, mentions, review resolution and revision comparison. */
.notification-badge{margin-left:auto;flex-shrink:0;min-width:20px;height:20px;padding:0 6px;display:inline-flex;justify-content:center;align-items:center;border-radius:999px;background:#d78e51;color:#15171c;font-size:11px;font-weight:800;line-height:1}
.notification-badge[hidden]{display:none}
.notification-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid var(--stroke);background:var(--panel);border-radius:13px;padding:18px 22px;margin-bottom:17px;flex-wrap:wrap}
.notification-summary>div{display:flex;align-items:center;gap:12px}
.notification-summary strong{font-size:29px;font-weight:800;line-height:1;font-variant-numeric:tabular-nums}
.notification-summary span{font-size:12px;color:var(--muted)}
.notification-list{display:flex;flex-direction:column;gap:10px}
.notification-row{display:flex;align-items:center;gap:15px;background:var(--panel);border:1px solid var(--stroke);border-radius:12px;padding:17px;transition:border-color .18s ease}
.notification-row.unread{border-left:3px solid #dd9c57}
.notification-indicator{flex:0 0 16px;color:var(--muted);font-size:17px;line-height:1;text-align:center}
.notification-row.unread .notification-indicator{color:#dd9c57}
.notification-content{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.notification-content>strong{font-size:13px}
.notification-context{font-size:12px;color:var(--text);overflow-wrap:anywhere;line-height:1.45}
.notification-actor{font-size:11px;color:var(--muted)}
.notification-actions{display:flex;flex-wrap:wrap;gap:7px;align-items:center;justify-content:flex-end}
.notification-film-name{font-weight:700}
.comment-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:9px}
.comment-heading label{margin:0}
.comment-status{border:1px solid var(--stroke);background:var(--panel2);color:var(--muted);padding:4px 9px;border-radius:6px;font-size:11px;font-weight:700}
.comment-status.resolved{border-color:rgba(69,162,133,.5);color:#68b59c}
.comment-mention-tool{display:flex;align-items:center;gap:12px;margin-bottom:12px;flex-wrap:wrap}
.comment-mention-tool label{font-size:11px;font-weight:700;color:var(--muted);margin:0}
.comment-mention-tool select{flex:1;min-width:140px;max-width:320px;font-size:12px}
.comment-preview{margin-top:10px;padding:9px 11px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.65;border-radius:9px;border:1px solid var(--stroke);background:var(--panel2)}
.mention-highlight{color:#c6a1fa;font-weight:800}
.comment-buttons{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:12px;margin-bottom:8px}
.comment-buttons .btn{font-size:11px}
.comment-buttons+.hint{font-size:11px;line-height:1.5}
.comparison-meta{display:flex;gap:10px;justify-content:space-between;flex-wrap:wrap;padding:8px 0 13px;border-bottom:1px solid var(--stroke);font-size:11px;color:var(--muted)}
.comparison-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.version-comparison .comparison-cols{margin-top:15px}
.comparison-cols>section{min-width:0}
.comparison-cols h3{font-size:12px;font-weight:800;margin:0 0 8px}
.comparison-text{font-size:13px;line-height:1.65;padding:13px;border:1px solid var(--stroke);border-radius:8px;background:var(--panel2);min-height:110px;white-space:pre-wrap;overflow-wrap:anywhere}
.comparison-text del{background:rgba(217,98,96,.18);color:#df8d8c;text-decoration:line-through;text-decoration-thickness:1px}
.comparison-text ins{background:rgba(79,179,140,.18);color:#88d9bb;text-decoration:none}
.comparison-details{display:flex;flex-direction:column;gap:0;margin-top:16px;border:1px solid var(--stroke);border-radius:8px;overflow:hidden}
.comparison-details>div{display:grid;grid-template-columns:1.1fr 1fr 1fr;gap:8px;padding:10px;font-size:11px;border-bottom:1px solid var(--stroke)}
.comparison-details>div:last-child{border-bottom:0}
.comparison-details>div>*{min-width:0;overflow-wrap:anywhere}
.comparison-details>div strong{font-weight:750}
.comparison-details>div span{color:var(--muted)}
.comparison-comment{margin-top:17px}
.comparison-comment>strong{font-size:12px}
.comparison-comment .comparison-cols{margin-top:8px}
.comparison-comment .comparison-cols>p{border-radius:8px;border:1px solid var(--stroke);background:var(--panel2);padding:12px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;font-size:12px}
@media(max-width:650px){
  .notification-row{align-items:flex-start;flex-wrap:wrap}
  .notification-actions{width:100%;justify-content:flex-start;padding-left:30px}
  .comparison-cols{grid-template-columns:1fr}
  .comparison-details>div{grid-template-columns:1fr 1fr}
  .comparison-details>div strong{grid-column:1/-1}
}


/* v0.2.6 — Delivery readiness, explicit sign-off and immutable package history */
.delivery-guidance{font-size:12px;line-height:1.65;color:var(--muted);margin:-6px 0 18px;max-width:850px}
.delivery-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:20px}
.delivery-stat{border-radius:12px;border:1px solid var(--stroke);background:var(--panel);padding:20px;display:flex;flex-direction:column;gap:6px}
.delivery-stat strong{font-size:27px;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.delivery-stat span{font-size:11px;color:var(--muted)}
.delivery-panel{margin-bottom:20px}
.delivery-panel-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px}
.delivery-panel-head .hint{margin-top:6px}
.delivery-checklist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.delivery-check{display:flex;align-items:flex-start;gap:12px;border-radius:10px;border:1px solid var(--stroke);padding:15px 16px;background:var(--panel2)}
.delivery-check-icon{border-radius:50%;width:24px;height:24px;flex:0 0 24px;display:inline-flex;align-items:center;justify-content:center;background:rgba(204,91,86,.12);color:#e78a7c;font-weight:800}
.delivery-check.passed .delivery-check-icon{background:rgba(69,178,134,.15);color:#7ad6b1}
.delivery-check strong{font-size:12px;line-height:1.5}
.delivery-check p{margin-top:5px;color:var(--muted);font-size:11px}
.delivery-warnings{margin-top:17px;border-radius:9px;border:1px solid rgba(198,153,77,.4);background:rgba(198,153,77,.06);color:var(--text);padding:13px 16px;font-size:12px;line-height:1.6}
.delivery-sign-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:20px}
.delivery-sign-actions .btn{min-height:39px}
.delivery-track{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 20px;padding:14px 0;border-bottom:1px solid var(--stroke)}
.delivery-track:first-child{padding-top:0}
.delivery-track:last-child{border-bottom:0;padding-bottom:0}
.delivery-track-name{display:flex;flex-direction:column;gap:6px;min-width:0}
.delivery-track-name strong{font-size:12px;overflow-wrap:anywhere}
.delivery-track-name span{font-size:11px;color:var(--muted)}
.delivery-track-meta{display:flex;gap:8px 17px;flex-wrap:wrap;color:var(--muted);font-size:11px}
.delivery-history{display:flex;flex-direction:column;gap:0}
.delivery-history-row{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;border-bottom:1px solid var(--stroke);padding:14px 0}
.delivery-history-row:first-child{padding-top:0}
.delivery-history-row:last-child{border-bottom:0;padding-bottom:0}
.delivery-history-main{min-width:175px;display:flex;flex-direction:column;gap:7px}
.delivery-history-main strong{font-size:13px}
.delivery-history-main>span{color:var(--muted);font-size:11px}
.delivery-history-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.delivery-empty{color:var(--muted);font-size:12px}
.delivery-confirm-row{display:flex;gap:11px;align-items:flex-start;line-height:1.55;font-size:12px;margin:16px 0;cursor:pointer}
.delivery-confirm-row input{flex:0 0 17px;width:17px;height:17px;margin-top:2px;accent-color:var(--accent)}
@media(max-width:850px){
  .delivery-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .delivery-checklist{grid-template-columns:1fr}
}
@media(max-width:500px){
  .delivery-stats{gap:8px}
  .delivery-stat{padding:13px}
  .delivery-history-actions{width:100%;justify-content:flex-start}
}


/* v0.2.7 — Explicit role templates and safe per-festival overrides. */
.access-footer{align-items:stretch;flex-direction:column;gap:13px}
.access-template-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.access-save-row{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;border-top:1px solid var(--stroke);padding-top:14px}
.access-status{font-size:12px;color:var(--muted)}
.access-status.dirty{color:var(--accent)}
.access-footer .hint{line-height:1.55}


/* v0.2.8 — production track inclusion and source-language reference tracks. */
.production-reference-section{margin-top:20px;padding-top:16px;border-top:1px solid var(--stroke);margin-bottom:17px}
.production-reference-section .production-task-head{margin-top:0}
.production-reference-list{display:flex;flex-direction:column;gap:8px;margin-top:13px}
.production-reference-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 14px;border:1px solid var(--stroke);border-radius:9px;background:var(--panel2)}
.production-reference-label{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0}
.production-reference-label strong{font-size:12px;overflow-wrap:anywhere}
.production-reference-label .badge{font-size:10px}
.production-reference-row .btn{flex-shrink:0}
.production-track-actions{display:flex;gap:7px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.production-track-actions .btn.danger{color:var(--red,#e47777);border-color:rgba(220,90,90,.35)}
.track-pill.reference{border-style:dashed;opacity:.85}
.track-reference-tag{display:inline-flex;vertical-align:middle;align-items:center;border-radius:5px;background:rgba(215,152,76,.1);border:1px solid rgba(215,152,76,.32);color:#d6a36b;font-size:10px;font-weight:750;padding:2px 5px;margin-left:4px}
.production-task-row .badge.orange{margin-top:6px}
@media(max-width:630px){.production-track-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.production-track-actions .btn:first-child{grid-column:1/-1}.production-reference-row .btn{width:100%;justify-content:center}}


/* v0.2.9 — Accessible, collapsed-by-default film production accordion. */
.production-panel>summary.production-panel-header{list-style:none;cursor:pointer;user-select:none;gap:14px}
.production-panel>summary.production-panel-header::-webkit-details-marker{display:none}
.production-panel>summary.production-panel-header::marker{content:""}
.production-panel:not([open])>summary.production-panel-header{border-bottom:0}
.production-panel>summary.production-panel-header:hover{background:var(--panel2)}
.production-panel>summary.production-panel-header:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}
.production-panel-heading{min-width:0;flex:1}
.production-panel-toggle{display:inline-flex;align-items:center;gap:12px;flex-shrink:0;color:var(--muted);font-size:12px;font-weight:750}
.production-panel-hide{display:none}
.production-panel[open] .production-panel-show{display:none}
.production-panel[open] .production-panel-hide{display:inline}
.production-panel-chevron{height:10px;width:10px;border-right:2px solid var(--accent);border-bottom:2px solid var(--accent);transform:rotate(45deg);transition:transform .18s ease;margin:-5px 4px 0 3px}
.production-panel[open] .production-panel-chevron{transform:rotate(225deg);margin:5px 4px 0 3px}
.production-panel-tools{display:flex;justify-content:flex-end;gap:9px;margin:0 0 17px}
@media(max-width:550px){.production-panel>summary.production-panel-header{align-items:flex-start}.production-panel-toggle{padding-top:2px}}


/* v0.2.10 — Live server/sync indicator, in sidebar immediately above the user. */
.sidebar-release{display:flex;flex-direction:column;gap:7px;padding:3px 13px 15px}
.sidebar-release-version{font-size:12px;font-weight:800;letter-spacing:.02em;color:var(--text);font-variant-numeric:tabular-nums}
.sidebar-release-date{font-size:11px;line-height:1.45;color:var(--dim)}
.sidebar-connection{display:flex;align-items:center;gap:10px;padding:11px 13px;margin:0 0 7px;border-radius:9px;background:rgba(108,217,190,.045);font-size:12px;font-weight:700;color:var(--mint);min-height:38px}
.connection-dot{width:9px;height:9px;border-radius:50%;background:var(--mint);box-shadow:0 0 0 4px rgba(108,217,190,.11);flex:none}
.sidebar-connection[data-status="reconnecting"]{color:var(--accent);background:rgba(255,179,92,.06)}
.sidebar-connection[data-status="reconnecting"] .connection-dot{background:var(--accent);box-shadow:0 0 0 4px rgba(255,179,92,.13)}
.sidebar-connection[data-status="offline"]{color:var(--red);background:rgba(242,143,142,.07)}
.sidebar-connection[data-status="offline"] .connection-dot{background:var(--red);box-shadow:0 0 0 4px rgba(242,143,142,.12)}


/* v0.2.11 — Parallel subtitle translation, temporal alignment and inline VF editor. */
.translator-page{display:flex;flex-direction:column;gap:21px;min-width:0;padding-bottom:36px}
.translator-video-card{width:min(700px,100%);background:var(--panel);border:1px solid var(--stroke);border-radius:13px;overflow:hidden}
.translator-video-title{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:13px 17px;font-size:12px}
.translator-video-title span{font-size:11px;color:var(--muted)}
.translator-video-stage{min-height:165px;max-height:375px;overflow:hidden}
.translator-video-stage video{max-height:375px}
.translator-video-transport{padding:11px 16px;display:flex;gap:14px;flex-wrap:wrap;align-items:center;justify-content:space-between}
.translator-video-transport strong{font-family:ui-monospace,Consolas,monospace;font-size:12px;font-variant-numeric:tabular-nums}
.translator-video-transport span{font-size:11px;color:var(--muted)}
.translator-video-empty{padding:28px 17px;border-top:1px solid var(--stroke);border-bottom:1px solid var(--stroke);font-size:12px;color:var(--muted)}
.translator-workspace{min-width:0;background:var(--panel);border:1px solid var(--stroke);border-radius:14px;overflow:hidden}
.translator-selectors{display:grid;grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr);align-items:end;gap:16px;padding:20px 19px}
.translator-selectors .field{margin:0;min-width:0}
.translator-selectors label{display:block;margin:0 0 9px;font-size:11px;font-weight:800;color:var(--muted)}
.translator-selectors select{width:100%;max-width:100%;min-width:0}
.translator-switch-icon{font-size:22px;text-align:center;color:var(--accent);padding-bottom:7px}
.translator-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:0 19px 12px}
.translator-stat{display:flex;flex-direction:column;gap:6px;border-radius:10px;background:var(--panel2);border:1px solid var(--stroke);padding:14px}
.translator-stat strong{font-size:24px;font-weight:850;line-height:1;font-variant-numeric:tabular-nums}
.translator-stat span{color:var(--muted);font-size:10px;line-height:1.5}
.translator-stat.warning strong{color:var(--accent)}
.translator-guidance{padding:0 19px 15px;font-size:11px;color:var(--muted);line-height:1.65}
.translator-filter-bar{display:flex;align-items:center;gap:10px;padding:15px 19px;flex-wrap:wrap;border-top:1px solid var(--stroke)}
.translator-filter-bar label{font-size:11px;font-weight:700;color:var(--muted)}
.translator-filter-bar select{width:200px;max-width:100%;font-size:12px}
.translator-filter-bar input{min-width:170px;flex:1;font-size:12px}
.translator-columns-head{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--stroke);border-bottom:1px solid var(--stroke);background:var(--panel2);color:var(--muted);font-size:11px;font-weight:850;letter-spacing:.09em}
.translator-columns-head>span{padding:15px 18px}
.translator-columns-head>span+span{border-left:1px solid var(--stroke)}
.translator-pair-list{display:flex;flex-direction:column}
.translator-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);border-bottom:1px solid var(--stroke);min-width:0}
.translator-pair.selected{background:rgba(204,151,83,.048);box-shadow:inset 4px 0 0 var(--accent)}
.translator-pair.playing:not(.selected){background:rgba(82,172,191,.065)}
.translator-pair-source,.translator-pair-target{padding:14px 18px;min-width:0}
.translator-pair-target{border-left:1px solid var(--stroke)}
.translator-source{display:flex;flex-direction:column;gap:10px;width:100%;border:1px solid transparent;border-radius:9px;background:none;text-align:left;color:var(--text);cursor:pointer;padding:9px;font:inherit}
.translator-source:hover{background:var(--panel2)}
.translator-source:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.translator-pair.selected .translator-source{border-color:var(--stroke2);background:var(--panel2)}
.translator-cue-time{display:flex;justify-content:space-between;flex-wrap:wrap;gap:9px;color:var(--muted);font-size:10px;font-variant-numeric:tabular-nums}
.translator-cue-time strong{font-weight:850;color:var(--text);font-size:11px}
.translator-cue-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;font-size:13px;min-height:32px}
.translator-target-preview{display:flex;flex-direction:column;gap:9px}
.translator-target-preview>.btn{align-self:flex-start}
.translator-matched-summary{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.translator-matched-summary small{color:var(--muted);font-size:10px}
.translator-match-badge{background:rgba(65,152,113,.10);color:#7dc7a6;border:1px solid rgba(65,152,113,.28);border-radius:6px;padding:4px 7px;font-size:10px;font-weight:750}
.translator-match-badge.tentative{background:rgba(210,147,72,.10);color:var(--accent);border-color:rgba(210,147,72,.3)}
.translator-qc-flag{color:var(--accent);font-weight:750}
.translator-missing{border-radius:9px;border:1px dashed rgba(211,156,85,.40);background:rgba(211,156,85,.055);padding:13px;font-size:12px;color:var(--accent)}
.translator-target-editor{display:flex;flex-direction:column;gap:12px}
.translator-target-editor>.translator-cue-text{color:var(--muted)}
.translator-edit-form{border:1px solid var(--stroke);background:var(--panel2);border-radius:10px;padding:16px;display:flex;flex-direction:column;gap:13px}
.translator-edit-form .field{margin:0;min-width:0}
.translator-edit-form label{display:block;font-size:11px;color:var(--muted);font-weight:750;margin-bottom:7px}
.translator-edit-form input,.translator-edit-form select,.translator-edit-form textarea{min-width:0;width:100%;max-width:100%;font-size:12px}
.translator-edit-form textarea{min-height:95px;resize:vertical;line-height:1.55;white-space:pre-wrap}
.translator-edit-form input:disabled,.translator-edit-form textarea:disabled{opacity:.72;cursor:default}
.translator-time-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
.translator-variants{margin-bottom:6px}
.translator-editor-actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center;justify-content:flex-start}
.translator-edit-form .hint{font-size:10px;line-height:1.5}
.translator-live-qc{display:flex;align-items:center;flex-wrap:wrap;gap:6px;line-height:1.45}
.translator-qc-ok{font-size:11px;color:var(--mint)}
.translator-qc-total{font-size:11px;color:var(--accent);font-weight:850;margin-right:5px}
.translator-no-rights{font-size:11px;color:var(--muted);line-height:1.55}
.translator-pagination{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:17px 19px;flex-wrap:wrap}
.translator-pagination>span{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
.translator-empty{text-align:center;padding:36px 20px;font-size:12px;color:var(--muted)}
@media(max-width:1000px){
  .translator-selectors{grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr)}
  .translator-source,.translator-pair-source,.translator-pair-target{padding:12px}
  .translator-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .translator-pair{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr)}
}
@media(max-width:650px){
  .translator-selectors{grid-template-columns:1fr;gap:7px}
  .translator-switch-icon{padding:0}
  .translator-columns-head{display:none}
  .translator-pair{grid-template-columns:1fr}
  .translator-pair-source,.translator-pair-target{padding:13px}
  .translator-pair-target{border-left:0;border-top:1px solid var(--stroke)}
  .translator-pair-source::before,.translator-pair-target::before{display:block;margin:0 0 9px;font-size:10px;font-weight:850;color:var(--muted);letter-spacing:.08em}
  .translator-pair-source::before{content:"VO"}
  .translator-pair-target::before{content:"VF"}
  .translator-filter-bar select,.translator-filter-bar input{flex:1 1 100%;width:100%}
  .translator-time-fields{grid-template-columns:1fr}
}

/* v0.2.13 — Festival administration cards with separate keyboard-accessible actions. */
.access-festival-card{cursor:default}
.access-festival-card:hover{transform:none}
.access-festival-actions{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.access-festival-actions .btn{white-space:normal}

/* v0.2.14 — Highlight the welcome name using the active theme's warm accent. */
.page-header .welcome-first-name{color:var(--accent);font-weight:900;text-shadow:0 0 24px rgba(255,179,92,.22)}
html[data-theme="light"] .page-header .welcome-first-name{text-shadow:none}

/* v0.2.15 — Google Workspace SSO, displayed only once the server has credentials. */
.login-google[hidden]{display:none!important}
.login-google{margin:0 0 21px}
/* v0.3.8 UI polish — branded, accessible Google SSO entry point. */
.login-card .login-google-button{
  display:inline-flex;align-items:center;justify-content:center;gap:12px;
  width:100%;min-height:48px;margin:0;padding:11px 16px;
  border:1px solid #dadce0;border-radius:10px;background:#fff;color:#1f1f1f;
  font-size:13px;font-weight:750;line-height:1.35;white-space:normal;text-align:center;
  box-shadow:0 1px 2px rgba(15,23,42,.10);
  transition:background-color .16s,border-color .16s,box-shadow .16s,transform .16s;
}
.login-card .login-google-icon{display:block;width:20px;height:20px;flex:0 0 20px}
.login-card .login-google-button:hover{
  background:#f8faff;border-color:#b7c6d9;
  box-shadow:0 3px 11px rgba(15,23,42,.14);transform:translateY(-1px);
}
.login-card .login-google-button:active{transform:translateY(0);box-shadow:0 1px 2px rgba(15,23,42,.10)}
.login-card .login-google-button:focus-visible{outline:3px solid #8ab4f8;outline-offset:3px}
@media (prefers-reduced-motion:reduce){
  .login-card .login-google-button{transition:none}
  .login-card .login-google-button:hover{transform:none}
}
.login-card .login-google-hint{color:var(--muted);margin:10px 0 14px;text-align:center;
  line-height:1.5;font-size:10px}
.login-separator{display:flex;align-items:center;gap:13px;color:var(--dim);font-size:11px;text-align:center}
.login-separator::before,.login-separator::after{content:'';height:1px;background:var(--stroke);flex:1}


/* v0.2.17 - unified subtitle-safe fullscreen, immersive studio reading and explicit logout. */
.sidebar-logout{width:100%;margin-top:12px;justify-content:center}
.mobile-logout{display:none}
body.vision-mode{background:#06090e;overflow:hidden}
body.vision-mode .layout{display:block;height:100vh;min-height:0}
body.vision-mode .sidebar{display:none}
body.vision-mode .main{padding:0;margin:0;height:100vh;overflow:hidden}
body.vision-mode .main > :not(.studio-grid){display:none!important}
body.vision-mode .studio-grid{display:block;height:100vh}
body.vision-mode .studio-left{display:block;height:100%}
body.vision-mode .studio-left > :not(.video-card){display:none!important}
body.vision-mode .video-card{width:100%;height:100%;border:0;border-radius:0;display:flex;flex-direction:column}
body.vision-mode .video-head{flex:none;background:#131820;padding:11px 20px}
body.vision-mode .video-head [data-action="upload-proxy"]{display:none}
body.vision-mode .video-stage{flex:1;min-height:0;max-height:none;aspect-ratio:auto}
body.vision-mode .video-stage video{max-height:none}
body.vision-mode .subtitle-overlay{font-size:clamp(17px,2.2vw,34px)}
body.vision-mode .transport{flex:none;background:#131820}
.translator-target-setup{display:flex;gap:20px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:0 19px 17px;padding:17px 19px;border:1px solid rgba(255,179,92,.38);background:rgba(255,179,92,.06);border-radius:12px}
.translator-target-setup strong{display:block;font-size:13px;margin-bottom:6px;color:var(--text)}
.translator-target-setup p{font-size:11px;color:var(--muted);line-height:1.5;max-width:620px}
.translator-stats{grid-template-columns:repeat(5,minmax(0,1fr))}
.translator-empty-text{color:var(--accent);font-style:italic;font-size:12px}
@media(max-width:750px){
  .mobile-logout{display:inline-flex;flex-shrink:0}
  .translator-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.vision-mode .video-head{padding:9px 11px}
  body.vision-mode .video-head strong{font-size:11px}
}


/* v0.2.17.1 — Translator: video on the left, track controls on the right, both pinned. */
.translator-page{gap:14px}
.translator-sticky-panel{
  position:sticky;top:0;z-index:24;
  display:grid;grid-template-columns:minmax(300px,1fr) minmax(360px,1.05fr);
  gap:13px;align-items:stretch;min-width:0;
  padding:9px 0 12px;background:var(--bg);
  box-shadow:0 12px 20px -21px rgba(0,0,0,.9);
}
.translator-sticky-panel .translator-video-card{
  width:100%;height:100%;min-width:0;display:flex;flex-direction:column;
}
.translator-sticky-panel .translator-video-title{padding:10px 13px}
.translator-sticky-panel .translator-video-stage{
  flex:1;min-height:0;max-height:min(36vh,330px);aspect-ratio:16/9;
}
.translator-sticky-panel .translator-video-stage video{max-height:none}
.translator-sticky-panel .translator-video-transport{
  padding:9px 13px;gap:7px;align-items:center;
}
.translator-sticky-panel .translator-video-transport span{font-size:10px}
.translator-control-card{
  min-width:0;border:1px solid var(--stroke);border-radius:13px;
  background:var(--panel);overflow:hidden;
}
.translator-sticky-panel .translator-selectors{
  grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr);
  gap:9px;padding:13px 13px 10px;
}
.translator-sticky-panel .translator-selectors label{font-size:10px;margin-bottom:5px}
.translator-sticky-panel .translator-selectors select{
  min-height:36px;padding:6px 9px;font-size:11px;
}
.translator-sticky-panel .translator-switch-icon{font-size:19px;padding-bottom:6px}
.translator-sticky-panel .translator-target-setup{
  display:flex;align-items:center;justify-content:space-between;
  margin:0 13px 11px;padding:10px;gap:8px;flex-wrap:wrap;
}
.translator-sticky-panel .translator-target-setup strong{font-size:11px;margin-bottom:3px}
.translator-sticky-panel .translator-target-setup p{font-size:10px;line-height:1.4}
.translator-sticky-panel .translator-target-setup .btn{
  min-height:30px;font-size:10px;padding:6px 9px;white-space:normal;
}
.translator-sticky-panel .translator-stats{
  grid-template-columns:repeat(3,minmax(0,1fr));
  padding:0 13px 11px;gap:7px;
}
.translator-sticky-panel .translator-stat{
  padding:8px 9px;min-height:54px;gap:3px;
}
.translator-sticky-panel .translator-stat strong{font-size:19px}
.translator-sticky-panel .translator-stat span{
  font-size:9px;line-height:1.35;overflow-wrap:anywhere;
}
.translator-rows-workspace .translator-guidance{padding-top:13px}
.translator-open-row{
  width:100%;height:100%;min-height:70px;border:1px solid transparent;
  border-radius:9px;padding:9px;text-align:left;cursor:pointer;
  transition:background .12s,border-color .12s;
}
.translator-open-row:hover,.translator-open-row:focus-visible{
  background:var(--panel2);border-color:var(--stroke2);
}
.translator-open-row:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.translator-pair:not(.selected):hover{background:rgba(204,151,83,.045)}
@media(min-width:1560px){
  .translator-sticky-panel .translator-stats{
    grid-template-columns:repeat(5,minmax(0,1fr));
  }
}
@media(max-width:1100px){
  .translator-sticky-panel{grid-template-columns:minmax(260px,1fr) minmax(300px,1fr)}
  .translator-sticky-panel .translator-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:900px){
  .translator-sticky-panel{
    grid-template-columns:1fr;gap:8px;
  }
  .translator-sticky-panel .translator-video-stage{max-height:min(27vh,260px)}
  .translator-sticky-panel .translator-control-card{
    max-height:min(27vh,180px);overflow-y:auto;
    overscroll-behavior:contain;
  }
  .translator-sticky-panel .translator-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:560px){
  .translator-sticky-panel .translator-video-stage{max-height:190px}
  .translator-sticky-panel .translator-control-card{max-height:150px}
  .translator-sticky-panel .translator-selectors{grid-template-columns:minmax(0,1fr) 14px minmax(0,1fr);gap:5px}
  .translator-sticky-panel .translator-switch-icon{padding-bottom:6px}
  .translator-sticky-panel .translator-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* v0.2.17.3 — picture-format safe areas for subtitle and session overlays. */
/* The canvas is centered on a fitted 16:9 projection frame, not on the full
   browser viewport; JavaScript keeps its pixel dimensions in sync on resize. */
.video-overlay-frame{
  position:absolute;z-index:2;left:50%;top:50%;transform:translate(-50%,-50%);
  width:100%;height:100%;overflow:hidden;pointer-events:none;
}
.video-safe-area{
  /* Fixed full-frame canvas. Changing the film format moves the subtitle and
     copyright elements directly, without resizing their common parent. */
  position:absolute;inset:0;overflow:hidden;pointer-events:none;
}
.video-safe-area .subtitle-overlay{
  bottom:7%;left:4%;right:4%;max-height:82%;overflow-wrap:anywhere;
}
.video-safe-area .video-watermark{
  top:clamp(4px,1vw,14px);right:clamp(4px,1vw,14px);
  max-width:calc(100% - 16px);
}
.production-format-row{
  display:flex;align-items:center;flex-wrap:wrap;gap:11px 16px;
  margin:-2px 0 18px;padding:12px 15px;
  border:1px solid var(--stroke);border-radius:10px;background:var(--panel);
}
.production-format-copy{flex:1;min-width:205px}
.production-format-copy label{font-weight:750;font-size:12px;color:var(--text)}
.production-format-copy p{font-size:11px;color:var(--muted);margin-top:4px;line-height:1.4}
.production-format-row select{
  min-width:100px;min-height:38px;padding:7px 12px;border-radius:8px;
  border:1px solid var(--stroke2);background:#161c29;color:#eef2fa;font-weight:750;
}
.production-format-readonly{font-size:13px;font-variant-numeric:tabular-nums}
.production-safe-summary{flex-basis:100%;font-size:10px;color:var(--muted)}
@media(max-width:750px){
  .production-format-row{align-items:stretch}
  .production-format-row select{width:100%}
  .video-safe-area .video-watermark{padding:4px 6px;max-width:calc(100% - 8px)}
}
html[data-theme="light"] .production-format-row select{background:#eff3f8;color:#263248}


/* v0.2.18 — revision feeds, proposals, audit and release history. */
.v18-workspace,.v18-releases{display:flex;flex-direction:column;gap:16px;margin:19px 0 30px}
.v18-filters{display:flex;flex-wrap:wrap;align-items:end;gap:12px;padding:16px;
  background:var(--panel);border:1px solid var(--stroke);border-radius:12px}
.v18-filters label{display:flex;flex-direction:column;gap:7px;flex:1 1 145px;min-width:125px;
  font-size:11px;font-weight:700;color:var(--muted)}
.v18-filters select,.v18-filters input{min-width:0;width:100%;min-height:38px;padding:8px 10px;border-radius:8px;
  border:1px solid var(--stroke2);background:var(--panel2);color:var(--text)}
.v18-filters .btn{min-height:38px}
.v18-results{display:flex;flex-direction:column;gap:10px}
.v18-entry,.v18-proposal{border:1px solid var(--stroke);background:var(--panel);
  padding:14px 17px;border-radius:12px;min-width:0}
.v18-entry-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:7px}
.v18-entry-top strong{font-size:13px;color:var(--text)}
.v18-entry-top .subdued{font-size:11px;margin-left:auto}
.v18-entry .hint,.v18-proposal .hint{margin:5px 0 11px;font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.v18-entry .btn{margin-top:8px}
.v18-diff{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:11px 0}
.v18-diff>div{min-width:0;border:1px solid var(--stroke);background:var(--panel2);border-radius:9px;padding:11px}
.v18-diff span{display:block;margin-bottom:7px;color:var(--dim);font-weight:750;font-size:10px}
.v18-diff p,.v18-brief,.v18-proposed-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;
  font-size:12px;margin:6px 0;color:var(--text)}
.v18-pagination{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px;
  margin-top:6px;font-size:11px;color:var(--muted)}
.v18-pagination span{margin-right:auto}
.v18-proposals-modal{width:min(830px,95vw)!important}
.v18-proposals-modal .modal-body{display:flex;flex-direction:column;gap:10px}
.v18-proposal .actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-start}
.v18-proposed-text{border-left:3px solid var(--accent);padding:10px 12px;
  background:var(--panel2);border-radius:0 8px 8px 0}
.v18-release{padding:21px 24px}
.v18-release .v18-entry-top{margin-bottom:8px}
.v18-release h3{font-size:20px}
.v18-release h4{font-size:14px;color:var(--text);margin:8px 0 16px}
.v18-release-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin-bottom:17px}
.v18-release-grid>div{min-width:0;padding:13px;border-radius:9px;background:var(--panel2)}
.v18-release-grid strong{display:block;font-size:11px;margin-bottom:7px;color:var(--text)}
.v18-release-grid p{font-size:12px;color:var(--muted);line-height:1.5;overflow-wrap:anywhere}
@media(max-width:690px){
  .v18-filters{align-items:stretch}
  .v18-filters label{flex:1 1 100%}
  .v18-diff,.v18-release-grid{grid-template-columns:1fr}
  .v18-entry-top .subdued{margin-left:0}
}
html[data-theme="light"] .v18-filters select,
html[data-theme="light"] .v18-filters input{background:#f6f8fb;color:#202b3b}


/* v0.2.18-beta.2 — Festivals: people first, advanced permissions on demand. */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.access-detail-layout{display:flex;flex-direction:column;gap:16px;margin-bottom:32px}
.access-compact-header{padding:15px 20px}
.access-compact-header .hint{font-size:11px;margin:4px 0 0;color:var(--muted)}
.access-team-panel .table th,.access-team-panel .table td{padding-top:11px;padding-bottom:11px}
.access-team-panel .access-add{padding:14px 18px;gap:10px}
.access-team-panel .access-add select{min-height:37px}
.access-permanent-details{border-top:1px solid var(--stroke);padding:0 18px}
.access-permanent-details>summary{list-style:none;padding:12px 0;cursor:pointer;
  color:var(--muted);font-size:11px;font-weight:700;user-select:none}
.access-permanent-details>summary::-webkit-details-marker{display:none}
.access-permanent-details>summary::before{content:"▸";display:inline-block;margin-right:9px;
  color:var(--accent);transition:transform .15s}
.access-permanent-details[open]>summary::before{transform:rotate(90deg)}
.access-permanent-details p{font-size:12px;line-height:1.6;margin:0 0 14px;color:var(--muted)}
.access-permissions-details>summary{list-style:none}
.access-permissions-details>summary::-webkit-details-marker{display:none}
.access-permissions-summary{display:flex;align-items:center;gap:12px;cursor:pointer;user-select:none;
  min-height:70px;padding:15px 20px}
.access-permissions-summary:hover{background:var(--panel2)}
.access-permissions-summary:focus-visible,.access-permanent-details>summary:focus-visible{
  outline:2px solid var(--accent);outline-offset:-3px;border-radius:8px}
.access-summary-copy{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}
.access-summary-copy strong{font-size:14px;color:var(--text)}
.access-summary-copy small{font-size:11px;color:var(--muted);font-weight:400}
.access-permissions-summary .badge{flex-shrink:0}
.access-chevron{display:flex;align-items:center;justify-content:center;border-radius:6px;
  height:27px;width:27px;background:var(--panel2);color:var(--accent);font-size:19px;
  transform:rotate(-90deg);transition:transform .15s}
.access-permissions-details[open] .access-chevron{transform:rotate(0deg)}
.access-permissions-content{border-top:1px solid var(--stroke)}
.access-permissions-content .access-footer{padding:14px 18px}
.access-permissions-content .access-save-row{margin-top:2px}
@media(max-width:650px){
  .access-permissions-summary{flex-wrap:wrap}
  .access-permissions-summary .badge{margin-left:38px}
  .access-team-panel .table th,.access-team-panel .table td{padding:10px}
}


/* v0.2.18-beta.2 — 30 GitHub milestones remain readable without 30 expanded cards. */
.v18-version-history{display:flex;flex-direction:column;gap:13px;margin-bottom:35px}
.v18-history-tools{display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:15px 17px;
  border-radius:11px;border:1px solid var(--stroke);background:var(--panel)}
.v18-history-intro{display:flex;flex-direction:column;gap:4px;margin-right:auto;min-width:170px}
.v18-history-intro strong{font-size:14px;color:var(--text)}
.v18-history-intro span{font-size:11px;color:var(--muted)}
.v18-history-filter{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:650;
  color:var(--muted);min-width:175px}
.v18-history-filter input,.v18-history-filter select{height:36px;min-width:0;width:100%;
  padding:7px 10px;border-radius:8px;border:1px solid var(--stroke);
  background:var(--panel2);color:var(--text)}
.v18-version-history .v18-releases{margin:0;gap:8px}
.v18-version-history .v18-release{padding:0;overflow:hidden}
.v18-history-entry[hidden],.v18-history-empty[hidden]{display:none!important}
.v18-release-summary{display:flex;align-items:center;gap:11px;min-height:59px;cursor:pointer;
  list-style:none;padding:12px 17px;user-select:none}
.v18-release-summary::-webkit-details-marker{display:none}
.v18-release-summary::marker{content:""}
.v18-release-summary:hover{background:var(--panel2)}
.v18-release-summary:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}
.v18-release-summary>strong{font-size:13px;white-space:nowrap;color:var(--text);min-width:82px}
.v18-release-summary .v18-release-summary-title{font-size:12px;color:var(--text);flex:1;
  min-width:130px;line-height:1.45;overflow-wrap:anywhere}
.v18-release-summary time{font-size:10px;color:var(--muted);white-space:nowrap}
.v18-release-icon{display:inline-flex;align-items:center;justify-content:center;
  width:22px;height:22px;color:var(--accent);transform:rotate(-90deg);
  font-size:18px;transition:transform .15s}
.v18-history-entry[open] .v18-release-icon{transform:rotate(0deg)}
.v18-release-source{display:inline-flex;padding:5px 7px;border:1px solid var(--stroke);
  border-radius:6px;color:var(--muted);white-space:nowrap;font-size:10px;line-height:1}
.v18-release-source.official{border-color:rgba(90,180,160,.45);color:var(--mint)}
.v18-release-source.application{border-color:var(--stroke);color:var(--text);font-weight:700}
.v18-release-source.beta{border-color:rgba(255,180,91,.5);color:var(--accent)}
.v18-release-details{border-top:1px solid var(--stroke);padding:16px 19px 18px}
.v18-release-details .v18-release-grid{margin-bottom:15px}
.v18-release-grid>div:only-child{grid-column:1/-1}
.v18-commit-note{font-size:10px;line-height:1.5;overflow-wrap:anywhere}
.v18-history-empty{padding:17px;color:var(--muted);font-size:12px;text-align:center}
@media(max-width:680px){
  .v18-history-intro,.v18-history-filter{flex:1 1 100%;min-width:0}
  .v18-release-summary{gap:7px;flex-wrap:wrap}
  .v18-release-summary .v18-release-summary-title{flex:1 1 65%}
  .v18-release-summary .v18-release-source{margin-left:30px}
  .v18-release-summary time{margin-left:auto}
}


/* v0.2.18-beta.2 — simplified audit page; filters remain keyboard-accessible. */
.v18-audit-filter-details>summary{list-style:none;display:flex;align-items:center;gap:12px;
  padding:14px 17px;cursor:pointer;user-select:none;font-size:12px}
.v18-audit-filter-details>summary::-webkit-details-marker{display:none}
.v18-audit-filter-details>summary::before{content:"▸";color:var(--accent);transition:transform .15s}
.v18-audit-filter-details[open]>summary::before{transform:rotate(90deg)}
.v18-audit-filter-details>summary strong{font-size:12px;color:var(--text)}
.v18-audit-filter-details>summary span{font-size:11px;color:var(--muted);margin-left:auto}
.v18-audit-filter-details>summary:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}
.v18-audit-filter-details>.v18-filters{border:0;border-top:1px solid var(--stroke);border-radius:0;
  background:var(--panel2)}


/* v0.2.19: voluntary reviewer confirmation, shown only at playback end. */
.review-end-panel{margin:0;padding:13px 16px;border-top:1px solid var(--stroke);
  background:var(--panel2)}
.review-end-panel[hidden]{display:none!important}
.review-end-content{display:flex;flex-direction:column;gap:9px}
.review-end-title{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.review-end-title strong{font-size:13px;color:var(--text)}
.review-end-content p.hint{margin:0;font-size:11px;line-height:1.55}
.review-end-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.review-end-actions .btn{white-space:normal;min-height:36px}
@media(max-width:620px){.review-end-actions .btn{flex:1 1 135px}}


/* v0.2.20 — explicit, never auto-collapsing navigation and exclusive groups.
   The existing Mode Visionnage styles above are deliberately untouched. */
.sidebar{overflow:hidden;padding:21px 14px 15px}
.sidebar-top{flex-shrink:0;display:flex;flex-direction:column;gap:0}
.sidebar-top .logo{padding:2px 9px 12px}
.sidebar-collapse-toggle{width:100%;min-height:35px;display:flex;align-items:center;
  justify-content:flex-start;gap:11px;padding:8px 12px;background:transparent;
  color:var(--muted);border:1px solid var(--stroke);border-radius:9px;
  font-size:11px;font-weight:750;text-align:left}
.sidebar-collapse-toggle:hover{background:var(--panel2);color:var(--text)}
.sidebar-toggle-icon{display:inline-flex;width:21px;justify-content:center;
  font-size:18px;color:var(--accent)}
.sidebar-toggle-text{min-width:0}
.sidebar-nav{display:flex;flex-direction:column;flex:1;min-height:0;overflow-y:auto;
  overflow-x:hidden;overscroll-behavior:contain;margin-top:12px;padding:0 2px 12px 0;
  scrollbar-width:thin}
.sidebar-group{min-width:0;flex-shrink:0}
.sidebar-group-trigger{display:flex;align-items:center;gap:10px;width:100%;min-height:41px;
  margin:4px 0 2px;padding:9px 10px;border-radius:9px;background:transparent;
  border:1px solid transparent;color:var(--muted);font-size:11px;font-weight:800;
  letter-spacing:.04em;text-align:left}
.sidebar-group-trigger:hover,.sidebar-group-trigger[aria-expanded="true"]{
  background:var(--panel2);border-color:var(--stroke);color:var(--text)}
.sidebar-group-trigger[aria-expanded="true"] .nav-icon{color:var(--accent)}
.sidebar-group-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.sidebar-group-chevron{font-size:16px;color:var(--dim);transform:rotate(-90deg);
  transition:transform .14s ease}
.sidebar-group-trigger[aria-expanded="true"] .sidebar-group-chevron{transform:rotate(0)}
.sidebar-group-panel[hidden]{display:none!important}
.sidebar-group-panel{margin:3px 0 10px 4px;padding-left:5px;border-left:1px solid var(--stroke)}
.sidebar-group-panel .side-link{margin:2px 0;min-width:0;padding:10px 9px;gap:10px;font-size:12px}
.sidebar-group-panel .side-link-text{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sidebar-group-panel .side-link-count{flex:none;min-width:15px;text-align:right}
.sidebar-group-empty{font-size:11px;color:var(--muted);padding:9px 7px 12px}
.side-profile-icon{display:none}
.sidebar .sidebar-bottom{flex-shrink:0;margin-top:0;padding-top:10px;
  border-top:1px solid var(--stroke)}
.sidebar .sidebar-logout{margin-top:8px}
.sidebar .sidebar-connection{margin:0 0 7px}
.sidebar-compact.sidebar{padding:17px 8px 13px}
.layout.sidebar-collapsed-layout{grid-template-columns:68px minmax(0,1fr)}
.sidebar-compact .sidebar-top .logo{justify-content:center;padding:2px 0 11px}
.sidebar-compact .logo-mark{width:39px;height:39px;flex:none}
.sidebar-compact .sidebar-brand-text,.sidebar-compact .sidebar-toggle-text,
.sidebar-compact .sidebar-group-name,.sidebar-compact .sidebar-group-chevron,
.sidebar-compact .side-link-text,.sidebar-compact .side-link-count,
.sidebar-compact .sidebar-release,.sidebar-compact .connection-text,
.sidebar-compact .side-foot .avatar,.sidebar-compact .side-user strong,
.sidebar-compact .side-user .side-profile-role,
.sidebar-compact .sidebar-logout-text{display:none!important}
.sidebar-compact .sidebar-collapse-toggle{padding:6px 0;justify-content:center}
.sidebar-compact .sidebar-nav{padding-right:0;margin-top:8px}
.sidebar-compact .sidebar-group-trigger,.sidebar-compact .sidebar-group-panel .side-link{
  padding:9px 0;justify-content:center;min-height:39px;gap:0}
.sidebar-compact .sidebar-group-panel{border:0;margin:2px 0 8px;padding:0}
.sidebar-compact .sidebar-group-trigger .nav-icon,
.sidebar-compact .sidebar-group-panel .nav-icon{width:100%;font-size:19px}
.sidebar-compact .sidebar-group-panel .side-link.active{
  border-color:var(--accent);background:var(--panel2)}
.sidebar-compact .sidebar-bottom{padding-top:9px}
.sidebar-compact .sidebar-connection{justify-content:center;padding:10px 0}
.sidebar-compact .side-foot{justify-content:center;padding:10px 0 0}
.sidebar-compact .side-user{display:flex;justify-content:center;padding:7px 0;
  border-radius:7px;width:100%;flex:0 0 auto}
.sidebar-compact .side-profile-icon{display:inline;font-size:20px}
.sidebar-compact .sidebar-logout{padding:7px 0}
.sidebar .sidebar-nav button:focus-visible,
.sidebar .sidebar-collapse-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media(max-width:1150px) and (min-width:751px){
  .layout.sidebar-collapsed-layout{grid-template-columns:68px minmax(0,1fr)}
}
@media(max-width:750px){
  .layout,.layout.sidebar-collapsed-layout{display:block}
  .sidebar,.sidebar-compact.sidebar{position:relative;top:auto;height:auto;display:flex;
    flex-direction:column;padding:10px 13px;overflow:visible;border-right:0}
  .sidebar-top{flex-direction:row;align-items:center;justify-content:space-between;gap:10px}
  .sidebar-top .logo,.sidebar-compact .sidebar-top .logo{padding:0;justify-content:flex-start;flex:1}
  .sidebar-compact .sidebar-brand-text{display:block!important}
  .sidebar-collapse-toggle,.sidebar-compact .sidebar-collapse-toggle{flex:0 0 auto;width:auto;
    padding:7px 11px;justify-content:center}
  .sidebar-nav,.sidebar-compact .sidebar-nav{display:flex;flex:0 0 auto;max-height:48vh;
    overflow-y:auto;overflow-x:hidden;margin-top:7px;padding:0}
  .sidebar .side-link{display:flex}
  .sidebar-bottom{display:none!important}
  .sidebar-compact .sidebar-nav{flex-direction:row;gap:6px;align-items:flex-start;
    overflow-x:auto;overflow-y:auto;white-space:nowrap}
  .sidebar-compact .sidebar-group{min-width:43px;max-width:56px;flex:0 0 auto}
  .sidebar-compact .sidebar-group-panel{max-height:32vh;overflow-y:auto}
  .sidebar-compact .sidebar-toggle-text{display:inline!important}
  .sidebar-compact .sidebar-group-trigger .nav-icon{font-size:19px}
}
@media(max-width:480px){
  .sidebar-top .brand-name{font-size:12px}
  .sidebar-collapse-toggle{font-size:10px}
  .sidebar-top .logo{min-width:0}
}

/* v0.2.20 — speed lives below the existing native video, never over subtitles. */
.playback-speed-controls{margin-left:auto;display:flex;align-items:center;justify-content:flex-end;
  gap:8px;flex-wrap:wrap;max-width:100%}
.playback-speed-label{font-size:11px;font-weight:750;color:var(--muted)}
.playback-speed-select{background:#222a38;border:1px solid #475164;border-radius:8px;
  color:#f2f4f9;min-height:34px;min-width:76px;padding:7px 8px;font-size:12px;
  font-weight:750;cursor:pointer}
.playback-speed-reset{min-width:40px}
.playback-speed-current{font-size:11px;font-weight:750;color:var(--mint);
  min-width:34px;text-align:right;font-variant-numeric:tabular-nums}
.playback-speed-error{font-size:11px;color:#ffc0ac;flex-basis:100%;text-align:right}
.playback-speed-error[hidden]{display:none!important}
.translator-video-transport,.transport{flex-wrap:wrap}
.translator-video-transport .playback-speed-controls{flex-shrink:0}
body.vision-mode .transport .playback-speed-controls{margin-left:auto}
@media(max-width:700px){
  .playback-speed-controls{margin-left:0;justify-content:flex-start}
  .playback-speed-label{font-size:10px}
}
html[data-theme="light"] .playback-speed-select{
  background:#283547;color:#fff;border-color:#667890
}

/* v0.2.20 — contextual role-filtered Manual, no hidden client-side sections. */
.manual-view{display:flex;flex-direction:column;gap:20px;padding-bottom:35px}
.manual-context{display:flex;align-items:center;gap:15px;justify-content:space-between;
  padding:19px 22px;flex-wrap:wrap}
.manual-context>div{max-width:620px;min-width:200px}
.manual-context strong{font-size:14px}
.manual-context p{margin-top:6px;font-size:11px;line-height:1.6}
.manual-context label{display:flex;flex-direction:column;gap:8px;color:var(--muted);
  font-size:11px;font-weight:750;min-width:210px;max-width:100%}
.manual-context select{padding:10px;background:var(--panel2);color:var(--text);
  border:1px solid var(--stroke2);border-radius:9px;max-width:100%;min-width:0}
.manual-group{display:flex;flex-direction:column;gap:12px}
.manual-group>h2{font-size:16px;line-height:1.4;margin:2px 0;color:var(--text)}
.manual-topic-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px;
  align-items:start}
.manual-topic{min-width:0}
.manual-topic-details{border:1px solid var(--stroke);background:var(--panel);border-radius:12px;
  overflow:hidden}
.manual-topic-summary{display:flex;align-items:flex-start;gap:10px;cursor:pointer;
  padding:16px 17px;list-style:none;min-height:80px}
.manual-topic-summary::-webkit-details-marker{display:none}
.manual-topic-summary:hover{background:var(--panel2)}
.manual-topic-summary:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.manual-topic-chevron{font-size:16px;color:var(--accent);transform:rotate(-90deg);
  transition:transform .15s}
.manual-topic-details[open] .manual-topic-chevron{transform:rotate(0)}
.manual-topic-summary>span:last-child{display:flex;flex-direction:column;gap:8px;min-width:0}
.manual-topic-summary strong{font-size:13px;color:var(--text)}
.manual-topic-summary small{font-size:11px;color:var(--muted);line-height:1.5}
.manual-topic-body{border-top:1px solid var(--stroke);padding:15px 17px}
.manual-topic-body ol{padding:0 0 0 19px;display:flex;flex-direction:column;gap:10px;
  font-size:12px;line-height:1.7;color:var(--muted);margin-bottom:13px}
.manual-topic-body li::marker{color:var(--accent);font-weight:750}
.manual-footnote{font-size:11px;line-height:1.7;color:var(--dim);padding:4px 2px}
@media(max-width:620px){
  .manual-topic-list{grid-template-columns:1fr}
  .manual-context{padding:14px}
  .manual-context label{width:100%}
}


/* v0.2.21 — two discreet lines of buttons, no boxes or section labels.
   A row with no permitted actions is absent from the markup entirely. */
.film-commands{display:flex;flex-direction:column;gap:10px;margin:18px 0 22px}
.film-command-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0}
.film-command-row .btn{min-height:38px;font-size:12px}
.film-technical .btn{min-height:35px;font-size:11px}
.film-functions .btn.primary{box-shadow:none}
@media(max-width:520px){
  .film-command-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  .film-command-row .btn{padding:9px 7px;min-width:0;white-space:normal;text-align:center}
}
@media(max-width:360px){
  .film-command-row{grid-template-columns:1fr}
}

/* v0.2.21 — Calage: real timeline, no impact on Studio Viewing Mode. */
.calage-page{display:flex;flex-direction:column;gap:16px;min-width:0;padding-bottom:34px}
.calage-page-header{margin:0 0 2px}
.calage-page-header h1{font-size:clamp(21px,2.5vw,31px)}
.calage-topbar{display:flex;align-items:flex-end;flex-wrap:wrap;gap:11px;padding:14px 18px}
.calage-topbar label{display:flex;flex-direction:column;gap:6px;font-size:11px;
  font-weight:700;color:var(--muted);min-width:155px}
.calage-topbar select{background:var(--panel2);border:1px solid var(--stroke2);
  border-radius:8px;color:var(--text);min-height:38px;padding:8px 10px;
  font-size:12px;max-width:100%}
.calage-topbar .badge{margin-left:auto;align-self:center}
.calage-stage-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(235px,.75fr);
  gap:14px;align-items:stretch}
.calage-stage-grid .video-card{min-width:0}
.calage-stage-grid .video-stage{min-height:280px}
.calage-selection-panel{min-width:0}
.calage-selection-panel .panel-body{display:flex;flex-direction:column;gap:12px;
  font-size:12px;line-height:1.55}
.calage-selection-panel p{overflow-wrap:anywhere}
.calage-selection-text{white-space:pre-wrap;border:1px solid var(--stroke);
  background:var(--panel2);padding:10px;border-radius:8px;max-height:150px;overflow:auto}
.calage-selection-time{font-variant-numeric:tabular-nums;font-size:11px;color:var(--accent)}
.calage-timing{min-width:0}
.calage-timeline-scroll{background:var(--panel2);padding:6px 14px 12px;
  overflow-x:auto;overscroll-behavior-x:contain}
.calage-timeline{position:relative;width:100%;min-width:850px;user-select:none;
  border:1px solid var(--stroke);border-radius:9px;
  background:repeating-linear-gradient(90deg,transparent 0px,
    transparent calc(10% - 1px),var(--stroke) calc(10% - 1px),var(--stroke) 10%);
  overflow:hidden}
.calage-ticks{position:absolute;inset:0;pointer-events:none;z-index:0}
.calage-tick{position:absolute;top:0;bottom:0;border-left:1px solid var(--stroke2);
  width:0}
.calage-tick-label{position:absolute;top:9px;left:5px;font-size:10px;
  color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.calage-timeline-bars{position:absolute;inset:0;z-index:1;pointer-events:none}
.calage-block{pointer-events:auto;position:absolute;display:flex;align-items:center;
  gap:0;min-width:5px;background:#35465e;border:1px solid #647895;
  border-radius:6px;padding:4px 8px;color:#f3f5fa;box-shadow:0 2px 8px #0002;
  font-size:11px;font-weight:650;cursor:grab;overflow:hidden;touch-action:pan-y;
  text-align:left}
.calage-block:hover{background:#445c7c;border-color:#acbfdc;z-index:3}
.calage-block.selected{background:#65432e;border-color:#ffbb75;
  box-shadow:0 0 0 2px #ffb45d33;z-index:4}
.calage-block.playing{border-color:var(--mint);box-shadow:0 0 0 1px #6cd9be55;z-index:5}
.calage-block:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.calage-block:active{cursor:grabbing}
.calage-block-label{min-width:0;flex:1;white-space:nowrap;text-overflow:ellipsis;
  overflow:hidden;pointer-events:none}
.calage-handle{position:absolute;z-index:2;top:0;bottom:0;width:9px;
  cursor:ew-resize;background:#ffd7a850}
.calage-handle-in{left:0;border-right:1px solid #ffffff55}
.calage-handle-out{right:0;border-left:1px solid #ffffff55}
.calage-handle:hover{background:#fff5d7a6}
.calage-playhead{position:absolute;top:0;bottom:0;width:2px;background:var(--red);
  box-shadow:0 0 7px #fa767666;z-index:6;pointer-events:none}
.calage-playhead::before{content:"";position:absolute;top:0;left:-5px;
  border-left:6px solid transparent;border-right:6px solid transparent;
  border-top:8px solid var(--red)}
.calage-playhead[hidden]{display:none}
.calage-timeline-hint{position:absolute;bottom:5px;right:10px;font-size:10px;
  color:var(--muted);pointer-events:none;z-index:0}
.calage-tools .panel-header{padding:14px 17px}
.calage-toolbar{display:flex;flex-direction:column;gap:0;padding:5px 16px 12px}
.calage-toolbar-line{display:flex;gap:11px;align-items:center;flex-wrap:wrap;
  border-top:1px solid var(--stroke);padding:12px 0}
.calage-toolbar-line:first-child{border-top:0}
.calage-toolbar-line>strong{min-width:125px;font-size:11px;color:var(--text)}
.calage-toolbar-line>.hint{margin-right:auto}
.calage-button-group{display:flex;gap:5px;flex-wrap:wrap}
.calage-button-group .btn{min-width:42px;font-size:11px}
.calage-toolbar .calage-options{gap:20px}
.calage-options label{display:inline-flex;align-items:center;gap:8px;font-size:11px;
  color:var(--muted);cursor:pointer}
.calage-options input{accent-color:var(--accent);width:15px;height:15px}
.calage-cues{min-width:0}
.calage-list-top{display:flex;justify-content:space-between;gap:10px;
  align-items:center;padding:13px 16px;border-bottom:1px solid var(--stroke);
  font-size:12px}
.calage-list-top small{color:var(--muted)}
.calage-table-scroll{max-height:560px;overflow:auto;scrollbar-width:thin}
.calage-table{width:100%;table-layout:auto}
.calage-table thead th{position:sticky;top:0;z-index:2;background:var(--panel2)}
.calage-table td{padding:9px 12px;vertical-align:middle}
.calage-table tr.selected{background:#ffb35c13}
.calage-table tr.inactive{opacity:.55}
.calage-table tr:hover{background:var(--panel2)}
.calage-time{white-space:nowrap;color:var(--muted);font-variant-numeric:tabular-nums;
  font-size:11px!important}
.calage-time button,.calage-select-cue{border:0;background:transparent;color:inherit;
  border-radius:6px;cursor:pointer;padding:5px 7px}
.calage-time button:hover,.calage-select-cue:hover{background:var(--stroke)}
.calage-time button:focus-visible,.calage-select-cue:focus-visible{
  outline:2px solid var(--accent);outline-offset:1px}
.calage-select-cue{font-size:18px;color:var(--accent)}
.calage-cue-copy{display:block;white-space:normal;line-height:1.5;font-size:12px;
  overflow-wrap:anywhere;max-width:720px}
.calage-table td small{margin-top:3px;font-size:10px}
.calage-footer{line-height:1.6}
@media(max-width:1050px){
  .calage-stage-grid{grid-template-columns:1fr}
  .calage-stage-grid .video-stage{min-height:220px}
}
@media(max-width:650px){
  .calage-page-header{flex-direction:column;align-items:flex-start}
  .calage-topbar{padding:12px}
  .calage-topbar label{flex:1 1 45%;min-width:115px}
  .calage-topbar .badge{margin-left:0}
  .calage-timeline{min-width:700px}
  .calage-toolbar{padding:4px 10px 10px}
  .calage-toolbar-line>strong{min-width:0;width:100%}
  .calage-table td{padding:8px}
  .calage-cue-copy{min-width:100px}
}
html[data-theme="light"] .calage-block{background:#375579;color:#fff}
html[data-theme="light"] .calage-block.selected{background:#9d5d23;border-color:#d88b32}
html[data-theme="light"] .calage-block.playing{border-color:#0a987d}

/* v0.2.21 — Film header: poster + identity on the left, both button rows on the right. */
.studio-head-with-actions{
  display:grid;
  grid-template-columns:minmax(280px,360px) minmax(0,1fr);
  align-items:center;
  column-gap:26px;
  row-gap:16px;
  margin-bottom:22px;
}
.studio-head-with-actions .studio-identity{min-width:0}
.studio-head-with-actions .film-commands{
  min-width:0;
  margin:0;
  gap:10px;
}
.studio-head-with-actions .film-command-row{
  width:100%;
  justify-content:flex-end;
  flex-wrap:nowrap;
}
.studio-head-with-actions .film-command-row .btn{
  white-space:nowrap;
  flex-shrink:0;
  padding-right:10px;
  padding-left:10px;
}
/* Below a wide desktop, prioritize readable, accessible actions over cramped text. */
@media(max-width:1550px){
  .studio-head-with-actions{
    grid-template-columns:minmax(0,1fr);
    align-items:start;
  }
  .studio-head-with-actions .film-command-row{
    justify-content:flex-start;
    flex-wrap:wrap;
  }
}
@media(max-width:520px){
  .studio-head-with-actions .film-command-row{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .studio-head-with-actions .film-command-row .btn{
    min-width:0;
    white-space:normal;
    text-align:center;
  }
}
@media(max-width:360px){
  .studio-head-with-actions .film-command-row{grid-template-columns:1fr}
}

/* Studio: make read-only subtitle and timecode fields visibly disabled in both themes.
   The subtitle wording remains selectable and copyable without edit privileges. */
.cue-form .time-grid input:disabled,
.cue-form #cue-text[contenteditable="false"]{
  background:#2b3442;border-color:#535f73;color:#b8c4d4;opacity:1
}
.cue-form .time-grid input:disabled{cursor:not-allowed;-webkit-text-fill-color:#b8c4d4}
.cue-form #cue-text[contenteditable="false"]{cursor:text;user-select:text;-webkit-user-select:text}
.cue-form #cue-text[contenteditable="false"]:focus{border-color:#535f73;box-shadow:none}
.cue-readonly-note{margin:6px 0 0;color:var(--muted);font-size:11px;line-height:1.5}
html[data-theme="light"] .cue-form .time-grid input:disabled,
html[data-theme="light"] .cue-form #cue-text[contenteditable="false"]{
  background:#e5eaf1;border-color:#c5cfdd;color:#64748b;opacity:1
}
html[data-theme="light"] .cue-form .time-grid input:disabled{-webkit-text-fill-color:#64748b}


/* v0.2.24 — unified corrections inbox. Works in both native themes. */
.correction-counters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}
.correction-counter{display:flex;flex-direction:column;gap:4px;border:1px solid var(--stroke);border-radius:12px;padding:15px;background:var(--panel)}
.correction-counter strong{font-size:24px;font-variant-numeric:tabular-nums}
.correction-counter span{font-size:12px;color:var(--muted);line-height:1.5}
.correction-toolbar{display:grid;grid-template-columns:1fr 1fr minmax(200px,1.4fr) auto;align-items:end;gap:12px;margin:18px 0}
.correction-toolbar .field{margin:0}
.correction-toolbar input,.correction-toolbar select{width:100%}
.correction-queue{display:grid;gap:12px}
.correction-item{padding:16px 20px}
/* v0.3.9 — keyboard review and stable current-item focus */
.correction-item:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.correction-item[data-active="true"]{border-color:var(--accent)}
.correction-session{display:flex;gap:10px;flex-wrap:wrap;align-items:center;
  margin:0 0 12px;padding:10px 14px;border:1px solid var(--stroke);
  border-radius:10px;background:var(--panel2);font-size:12px}
.correction-session .hint{flex:1 1 300px}
.correction-item-top{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.correction-current{font-weight:600;margin:12px 0 6px;white-space:pre-wrap;overflow-wrap:anywhere}
.correction-detail{color:var(--muted);font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}
.correction-item-actions{margin-top:12px;display:flex;justify-content:flex-end}
.correction-pagination{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin:16px 0}
.correction-pagination span{margin-right:auto}
.correction-empty{padding:32px;text-align:center}
@media(max-width:1000px){.correction-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.correction-counters,.correction-toolbar{grid-template-columns:1fr 1fr}.correction-toolbar .field:nth-child(3){grid-column:span 2}.correction-toolbar button{grid-column:span 2}.correction-counter strong{font-size:20px}}

/* v0.2.24 R09 — recovery without visual conflict or automatic overwrites. */
.studio-draft-recovery{margin:12px 0 16px;padding:14px 16px;border:1px solid var(--stroke2);border-radius:12px;background:var(--panel2);line-height:1.5}
.studio-draft-recovery strong{display:block;margin-bottom:5px}
.studio-draft-recovery p{color:var(--muted);font-size:13px;margin:0 0 10px}
.studio-draft-recovery .btn{margin:0 6px 4px 0}

/* v0.2.25 — decisions stay inside the issue queue; mobile layout remains readable. */
.correction-toolbar{grid-template-columns:repeat(3,minmax(140px,1fr));align-items:end}
.correction-toolbar .field:nth-child(6){grid-column:span 2}
.correction-item-actions{align-items:flex-end;gap:12px;flex-wrap:wrap}
.correction-decision{flex:1 1 340px;min-width:0}
.correction-decision .field{margin:0 0 8px}
.correction-decision textarea{width:100%;resize:vertical;line-height:1.55}
.correction-decision textarea[readonly]{background:var(--panel2);color:var(--muted)}
.correction-decision-buttons{display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:1100px){.correction-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.correction-toolbar{grid-template-columns:1fr}.correction-toolbar .field:nth-child(3),.correction-toolbar button{grid-column:auto}}

.correction-owner{font-size:12px;color:var(--muted);margin-top:10px}
.correction-assignment{display:flex;align-items:end;gap:9px;flex-wrap:wrap;margin-top:11px;padding:12px;border:1px solid var(--stroke);border-radius:10px}
.correction-assignment label{display:flex;flex-direction:column;gap:5px;color:var(--muted);font-size:11px;min-width:150px;flex:1 1 160px}
.correction-assignment select,.correction-assignment input{width:100%;min-height:34px}
.correction-assignment button{align-self:end}

.correction-diff-lines{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}
.correction-diff-before,.correction-diff-after{font-size:12px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid var(--stroke);border-radius:9px;padding:10px;background:var(--panel2)}
.correction-diff-lines del{background:#c85b5b30;color:var(--text);text-decoration:line-through;text-decoration-color:#d26868}
.correction-diff-lines ins{background:#4fa58335;color:var(--text);text-decoration:none}
@media(max-width:640px){.correction-diff-lines{grid-template-columns:1fr}}

/* v0.2.27: compact, keyboard-friendly cue navigation in translator mode. */
.translator-quick-nav{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;padding:8px 18px 12px;border-top:1px solid var(--stroke)}
.translator-quick-nav .hint{font-size:11px;margin-right:auto}
.translator-quick-nav button{white-space:nowrap}
@media(max-width:650px){.translator-quick-nav{justify-content:space-between;padding:10px 12px}.translator-quick-nav .hint{width:100%}}

/* v0.2.30 — bounded QC reports, accessible paging and responsive filters. */
.qc-page-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0 4px;flex-wrap:wrap;border-top:1px solid var(--stroke);margin-top:12px}
.qc-page-nav .hint{font-variant-numeric:tabular-nums;text-align:center}
.qc-reset-filters{align-self:end;white-space:nowrap}
@media(max-width:600px){.qc-page-nav .hint{order:-1;flex:1 1 100%}.qc-page-nav .btn{flex:1}}

/* v0.3.7 TOTP pilot: QR stays within the existing app modal, never external. */
.mfa-qr{display:flex;justify-content:center;align-items:center;max-width:280px;margin:16px auto;background:#fff;padding:12px;border-radius:12px}
.mfa-qr svg{display:block;max-width:100%;height:auto}
#mfa-pilot-panel{margin:12px 0 18px}
#mfa-pilot-panel .panel-body{padding:14px}
#mfa-pilot-panel .hint{line-height:1.5}
#mfa-pilot-panel .btn{white-space:normal}
#mfa-login-code{text-align:center;letter-spacing:.35em;font-variant-numeric:tabular-nums}

/* v0.3.10 — precise, accessible and explicit VO/VF link reassociation */
.translator-link-manager{margin:10px 0 0;padding:10px 12px;border:1px solid var(--stroke);
  border-radius:10px;background:var(--panel2)}
.translator-link-manager summary{font-weight:600;cursor:pointer}
.translator-link-manager summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.translator-link-manager p{margin:8px 0;font-size:12px;line-height:1.5}
.translator-link-manager select{width:100%;max-height:145px;overflow:auto;margin:8px 0}
.translator-link-manager option{padding:4px 8px}


/* 0.3.11 / C01-C08: compact timing workspace, scoped to Mode Calage only. */
.calage-page{gap:10px}
.calage-page-header{padding:0;margin:0}
.calage-page-header h1{font-size:clamp(19px,1.85vw,24px);margin:2px 0}
.calage-page-header p{font-size:11px;margin:0}
.calage-topbar{gap:7px;padding:8px 12px}
.calage-topbar label{min-width:125px;gap:3px}
.calage-topbar select{min-height:32px;padding:5px 8px}
.calage-stage-grid{grid-template-columns:minmax(0,1.65fr) minmax(330px,1fr);gap:10px}
.calage-stage-grid .video-stage{min-height:170px;max-height:300px}
.calage-selection-panel .panel-header{padding:8px 12px}
.calage-selection-panel .panel-body{padding:7px 12px;font-size:11px;gap:6px}
.calage-selection-panel .panel-body p{margin:0}
.calage-selection-text{max-height:60px;overflow:auto}
.calage-tools-in-panel{border-top:1px solid var(--stroke);max-height:280px;overflow:auto}
.calage-tools-in-panel .calage-toolbar{padding:0 12px 5px}
.calage-tools-in-panel .calage-toolbar-line{padding:6px 0;gap:5px}
.calage-tools-in-panel .calage-toolbar-line>strong{min-width:100%;font-size:10px}
.calage-tools-in-panel .calage-button-group .btn{min-width:33px;font-size:10px;padding:5px 6px}
.calage-tools-in-panel .calage-options{gap:8px;align-items:flex-start}
.calage-tools-in-panel .calage-options label{font-size:10px}
.calage-queue-status{font-size:11px;border-top:1px solid var(--stroke);padding:7px 12px;
 display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.calage-queue-status[data-blocked="true"]{color:var(--red)}
.calage-queue-status .btn{font-size:10px;min-height:25px;padding:3px 7px}
.calage-direct-time{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.calage-direct-time label{font-size:10px;color:var(--muted);display:block;font-weight:700}
.calage-direct-time input{width:100%;min-width:0;background:var(--panel2);color:var(--text);
 border:1px solid var(--stroke2);border-radius:6px;padding:5px 6px;margin:3px 0;
 font:11px ui-monospace,Menlo,Consolas,monospace}
.calage-direct-time .btn{width:100%;font-size:10px;min-height:28px}
.calage-timing .panel-header{padding:8px 12px}
.calage-timeline-scroll{padding:4px 9px 10px}
.calage-timeline{min-width:680px}
.calage-list-top{padding:8px 12px}
.calage-table-scroll{height:420px;max-height:420px;overscroll-behavior-y:contain}
.calage-table tbody tr:not(.calage-spacer){height:68px;max-height:68px}
.calage-table tbody tr:not(.calage-spacer) td{height:68px;max-height:68px;overflow:hidden;padding:4px 9px}
.calage-table .calage-cue-copy{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
 max-height:39px;overflow:hidden}
.calage-table .calage-spacer td{height:inherit!important}
.calage-preview{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px;
 border:1px solid var(--stroke);border-radius:9px;padding:11px;background:var(--panel2)}
.calage-preview>div{min-width:0}
.calage-preview>div>strong{font-size:12px;display:block;margin-bottom:6px}
.calage-preview-cue{display:flex;flex-direction:column;gap:3px;margin:5px 0;padding:7px;
 border-radius:6px;background:var(--panel);overflow-wrap:anywhere}
.calage-preview-cue strong{font:11px ui-monospace,Menlo,Consolas,monospace}
.calage-preview-cue span{white-space:pre-wrap;font-size:12px}
.calage-preview>small{grid-column:1/-1;color:var(--muted)}
@media(max-width:1050px){
 .calage-stage-grid{grid-template-columns:1fr}
 .calage-tools-in-panel{max-height:none}
 .calage-stage-grid .video-stage{max-height:none}
}
@media(max-width:650px){
 .calage-direct-time{grid-template-columns:1fr 1fr}
 .calage-preview{grid-template-columns:1fr}
 .calage-timeline{min-width:680px}
}


/* 0.3.12 / C02+C07 — waveform and reversible timing; scoped to calage. */
.calage-waveform-layer{position:absolute;left:0;right:0;top:34px;height:50px;
  z-index:1;background:linear-gradient(180deg,#3b625b22,#2a4b4922);
  border-top:1px solid var(--stroke2);border-bottom:1px solid var(--stroke2);
  pointer-events:none;overflow:hidden}
.calage-waveform-layer svg{display:block;width:100%;height:100%;fill:var(--mint);
  opacity:.75;position:relative;z-index:1}
.calage-waveform-silence{position:absolute;top:0;bottom:0;
  background:#e1b3582c;border-left:1px solid #e1b3587a;border-right:1px solid #e1b3587a;
  pointer-events:none;z-index:2}
.calage-waveform-status{font-size:10px;color:var(--muted);margin-left:auto;
  max-width:55%;white-space:normal;text-align:right}
.calage-timeline-bars{z-index:2}
.calage-reversal-controls .calage-button-group{gap:8px}
.calage-reversal-controls .btn:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:650px){
 .calage-waveform-status{max-width:100%;margin-left:0;text-align:left}
}

/* 0.3.12f — Subtitle preview only: Arial 48 Regular at 1080p.
 * CSS size-container units are a first-paint fallback until the player
 * supplies the exact fitted image height through inherited custom properties.
 * Applied to the shared overlay in Review, Translator, Timing and Viewing.
 */
.video-overlay-frame{container-type:size}
.video-overlay-frame .video-safe-area .subtitle-overlay{
  font-family:Arial,Helvetica,sans-serif;
  font-size:var(--subtitle-preview-size,round(up,4.44444444cqh,1px));
  font-weight:400;
  color:#fff;
  -webkit-text-stroke:var(--subtitle-preview-outline,round(up,0.37037037cqh,1px)) #000;
  paint-order:stroke fill;
  text-shadow:none;
  line-height:1.15;
}

/* v0.3.13 — independent review threads, read-only pass summary. */
.review-thread-section{margin-top:18px;padding-top:16px;border-top:1px solid var(--stroke)}
.review-thread-toolbar,.review-thread-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.review-thread-toolbar{margin-bottom:12px;font-size:13px}
.review-thread-card{border:1px solid var(--stroke2);border-radius:9px;padding:12px;margin-bottom:10px;background:var(--panel2)}
.review-thread-heading{margin-bottom:9px}
.review-thread-messages{display:flex;flex-direction:column;gap:8px;margin:10px 0}
.review-thread-message{display:flex;flex-direction:column;gap:4px;overflow-wrap:anywhere;line-height:1.5;font-size:12px}
.review-thread-message small{color:var(--muted)}
.review-thread-message span{white-space:pre-wrap}
.review-summary-row{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--stroke);padding:8px 0}

/* v0.3.14 — 119px content + 5px margin = 124px stable virtual row. */
.cue-list-virtual .cue-item{height:119px;min-height:119px;overflow:hidden;box-sizing:border-box;margin-bottom:5px}
.cue-list-virtual .cue-copy{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;max-height:40px}
.cue-virtual-spacer{width:100%;pointer-events:none}

/* v0.3.17–19 email opt-in and sender console */
.mail-panel{margin-top:16px}.mail-choice{display:flex;align-items:center;gap:10px;padding:8px 0;cursor:pointer}
.mail-choice input{width:17px;height:17px;flex-shrink:0;accent-color:var(--mint)}
.mail-kinds{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:0 14px}
.mail-counters{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:10px;margin:18px 0}
.mail-stat{padding:14px;border:1px solid var(--stroke);border-radius:9px;display:flex;flex-direction:column;gap:6px}
.mail-stat strong{font-size:24px;font-variant-numeric:tabular-nums}.mail-stat span{font-size:11px;color:var(--muted)}
.mail-status{font-size:12px;line-height:1.7;color:var(--muted)}

/* v0.3.20-21 · quiet-hour preferences and non-destructive mail governance */
.mail-schedule{display:flex;flex-wrap:wrap;gap:14px;align-items:end;border:1px solid var(--stroke);border-radius:10px;padding:12px;margin:12px 0}
.mail-schedule legend{font-weight:600;padding:0 6px}
.mail-schedule label{display:flex;align-items:center;gap:8px;font-size:13px}
.mail-schedule select{min-width:86px;padding:7px 10px}
.mail-governance{margin-top:18px}
.mail-governance details{border-top:1px solid var(--stroke);padding:14px 0}
.mail-governance details summary{cursor:pointer;font-weight:600}
.mail-governance .mail-quota-fields{display:flex;flex-wrap:wrap;gap:14px;margin:14px 0}
.mail-governance .mail-quota-fields label{display:flex;flex-direction:column;gap:5px;font-size:13px}
.mail-governance input[type=number]{max-width:160px;padding:9px}
.mail-governance .mail-pilot-options{max-height:240px;overflow-y:auto;padding:4px 8px;border:1px solid var(--stroke);border-radius:8px;margin:8px 0 14px}
.mail-governance .mail-receipts{display:flex;flex-direction:column;gap:6px;padding-top:12px}
.mail-governance .mail-receipt-row{display:grid;grid-template-columns:90px minmax(160px,1fr) minmax(190px,2fr) auto;gap:9px;align-items:center;padding:10px 0;border-bottom:1px solid var(--stroke)}
.mail-governance .mail-receipt-row input,.mail-governance .mail-receipt-row select{min-width:0;width:100%}
.mail-governance .mail-audit{max-height:360px;overflow:auto;margin-top:12px}
.mail-governance .mail-audit p{font-size:12px;border-bottom:1px solid var(--stroke);padding:8px 0;overflow-wrap:anywhere}
@media(max-width:680px){.mail-governance .mail-receipt-row{grid-template-columns:1fr 1fr}.mail-governance .mail-receipt-row input{grid-column:1 / -1}.mail-governance .mail-receipt-row button{grid-column:1 / -1}}
