/* FASE 438: editor video locale e pannello di scelta dopo la registrazione */
body.tcai438-modal-open{overflow:hidden!important}
.tcai438-backdrop{position:fixed;inset:0;z-index:10090;display:flex;align-items:center;justify-content:center;background:rgba(8,24,45,.76);padding:12px;box-sizing:border-box}
.tcai438-backdrop button,.tcai438-backdrop input,.tcai438-backdrop select,.tcai438-backdrop textarea{font:inherit;min-height:44px}
.tcai438-backdrop button{border-radius:12px;padding:10px 12px;font-weight:700;touch-action:manipulation}
.tcai438-backdrop button:focus-visible,.tcai438-backdrop input:focus-visible{outline:3px solid #f0be45;outline-offset:2px}
.tcai438-capture-panel,.tcai438-editor-panel{background:#fff;color:#11263d;border-radius:18px;width:min(100%,720px);max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain;padding:16px;box-sizing:border-box;box-shadow:0 15px 55px rgba(0,0,0,.35)}
.tcai438-editor-panel{width:min(100%,850px);max-height:calc(100dvh - 12px)}
.tcai438-head{display:flex;align-items:start;justify-content:space-between;gap:9px;margin-bottom:12px}
.tcai438-head h2{margin:0 0 4px;font-size:19px;color:#102b4b}
.tcai438-head button{min-width:46px;flex-shrink:0}
.tcai438-muted{color:#526578;font-size:13px;line-height:1.45;margin:4px 0 11px}
.tcai438-capture-panel>video{display:block;width:100%;max-height:32vh;object-fit:contain;background:#0b1b2e;border-radius:12px}
.tcai438-capture-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:14px}
.tcai438-capture-actions button{min-height:54px;white-space:normal;line-height:1.3}
.tcai438-status{font-size:13px;padding:8px 10px;background:#eef4f9;color:#173b59;border-radius:10px;overflow-wrap:anywhere}
.tcai438-download-link{display:block;overflow-wrap:anywhere;min-height:44px;padding:10px;border-radius:12px;border:1px solid #2475a5;margin-top:8px;color:#064c81;font-weight:700}
.tcai438-stage{width:100%;display:flex;align-items:center;justify-content:center;background:#102338;border-radius:13px;overflow:hidden;touch-action:pan-y;min-height:150px;max-height:52vh}
.tcai438-stage canvas{display:block;width:auto;max-width:100%;max-height:52vh;height:auto;touch-action:none;user-select:none;-webkit-user-select:none}
.tcai438-hidden-video{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;left:-10px;top:-10px}
.tcai438-transport,.tcai438-tools,.tcai438-opts{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:10px 0}
.tcai438-transport button{flex:1 1 115px}.tcai438-tools button{flex:1 1 120px;background:#f2f6fa;color:#183857;border:1px solid #ccd7e2}
.tcai438-tools button[aria-pressed="true"]{background:#0a4c80;color:#fff;border-color:#0a4c80}
.tcai438-opts label{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:700}
.tcai438-opts input[type="color"]{min-width:65px;width:65px;padding:2px}
.tcai438-editor-panel>label{display:block;font-weight:700;margin:10px 0 5px}
.tcai438-editor-panel>input[type="text"],.tcai438-editor-panel textarea{box-sizing:border-box;width:100%;max-width:100%;border:1px solid #aabbd1;border-radius:9px;padding:9px;background:#fff;color:#142d48}
.tcai438-editor-panel>input[type="range"]{width:100%;min-height:36px;margin:0}
.tcai438-editor-panel .tcai438-voice{display:flex;align-items:center;gap:8px}
.tcai438-editor-panel .tcai438-voice input{min-height:22px;width:22px;flex-shrink:0}
.tcai438-note-row{display:flex;gap:7px;margin:7px 0}
.tcai438-note-row button:first-child{flex:1;text-align:left;white-space:normal}
.tcai438-note-row button:last-child{min-width:44px}
.tcai438-coach-access{margin:8px 0 11px;display:block}
.tcai438-coach-access[hidden]{display:none!important}
.tcai438-coach-access button{min-height:48px}
@media(max-width:420px){.tcai438-backdrop{padding:5px}.tcai438-editor-panel,.tcai438-capture-panel{padding:12px;border-radius:14px;max-height:calc(100dvh - 10px)}.tcai438-capture-actions{grid-template-columns:1fr}.tcai438-stage,.tcai438-stage canvas{max-height:43vh}}
@media(prefers-reduced-motion:reduce){.tcai438-backdrop{scroll-behavior:auto}}
#tcai438EditorSaveLink .tcai438-export-preview{display:block;width:100%;max-height:36vh;object-fit:contain;background:#142238;margin:8px 0;border-radius:12px}
#tcai438EditorSaveLink button,#tcai438CaptureSaveLink button{display:block;width:100%;margin-top:10px;min-height:48px}

/* FASE 441: conferma in primo piano; mai una Home oscurata senza controlli. */
body.tcai438-modal-open{overflow:hidden!important}
#tcai438Capture.tcai441-capture-fullscreen{position:fixed!important;inset:0!important;z-index:2147483201!important;background:#f5f8fc!important;display:block!important;overflow-y:auto!important;overflow-x:hidden!important;padding:env(safe-area-inset-top) 10px max(18px,env(safe-area-inset-bottom))!important;opacity:1!important;visibility:visible!important;transform:none!important}
#tcai438Capture .tcai438-capture-panel{display:block!important;visibility:visible!important;position:relative!important;margin:0 auto!important;width:min(100%,650px)!important;max-height:none!important;min-height:85dvh!important;border-radius:16px!important;box-shadow:0 3px 15px rgba(9,35,62,.1)!important;border:1px solid #d9e3ef!important;overflow-y:visible!important}
#tcai438Capture .tcai438-head{position:sticky;top:0;background:white;z-index:4;padding:8px 0}
#tcai438Capture .tcai438-capture-actions button{min-height:55px}
#tcai438Capture .tcai441-caption{font-size:12px;font-weight:600;color:#496780;margin:0 0 4px}
#tcai438Capture #tcai438CapturePreview{max-height:42vh;min-height:150px}
@media(max-width:420px){#tcai438Capture.tcai441-capture-fullscreen{padding:0 0 max(12px,env(safe-area-inset-bottom))!important}#tcai438Capture .tcai438-capture-panel{border:0!important;border-radius:0!important;padding:13px!important;min-height:100dvh!important}}

#tcai438Capture .tcai438-capture-panel{font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif!important;line-height:1.45!important}
#tcai438Capture .tcai438-capture-actions button:not(.secondary){background:#0b527f;color:#fff;border:1px solid #0b527f}
#tcai438Capture .tcai438-capture-actions button.secondary{background:#edf4fb;color:#153b5a;border:1px solid #bfd0e0}
#tcai438Capture .tcai438-head button{background:#edf4fb;color:#153b5a;border:1px solid #bfd0e0}


/* FASE 442 — corregge section{display:none} del layout principale.
 * Il vecchio overlay si apriva ma il contenuto <section> restava nascosto.
 * Editor a pagina intera, sempre visibile sopra la Home e sui browser Android.
 */
body.tcai442-editor-open{overflow:hidden!important}
#tcai438Editor.tcai438-backdrop{
 position:fixed!important;inset:0!important;z-index:2147483202!important;
 display:block!important;visibility:visible!important;opacity:1!important;
 transform:none!important;background:#f5f8fc!important;
 padding:max(0px,env(safe-area-inset-top)) 10px max(16px,env(safe-area-inset-bottom))!important;
 box-sizing:border-box!important;overflow-y:auto!important;overflow-x:hidden!important;
 overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
}
#tcai438Editor .tcai438-editor-panel{
 display:block!important;visibility:visible!important;opacity:1!important;
 width:min(100%,760px)!important;max-height:none!important;min-height:100dvh!important;
 margin:0 auto!important;padding:14px!important;overflow:visible!important;
 border-radius:15px!important;border:1px solid #dbe4ec!important;
 box-shadow:0 5px 22px rgba(5,25,47,.10)!important;
 position:relative!important;background:#fff!important;color:#11263d!important;
}
#tcai438Editor .tcai438-head{
 position:sticky;top:0;z-index:5;background:#fff;
 padding:7px 0 12px;margin-bottom:12px;border-bottom:1px solid #e3e9ef;
}
#tcai438Editor .tcai438-head h2{color:#102b4b!important;font-size:20px}
#tcai438Editor .tcai438-head .tcai442-build{display:block;font-size:12px;color:#4c617b;font-weight:700;margin-top:2px}
#tcai438Editor .tcai438-stage{min-height:190px}
@media(max-width:420px){
 #tcai438Editor.tcai438-backdrop{padding:0 0 max(8px,env(safe-area-inset-bottom))!important}
 #tcai438Editor .tcai438-editor-panel{border:0!important;border-radius:0!important;padding:12px!important;min-height:100dvh!important}
}

/* FASE 443 — matita flottante, apre/chiude gli strumenti senza testi visibili. */
#tcai438Editor .tcai438-stage{position:relative!important;isolation:isolate;overflow:hidden}
#tcai438Editor .tcai443-drawing-control{position:absolute;top:8px;right:8px;z-index:7;display:flex;flex-direction:column;align-items:flex-end;gap:7px;pointer-events:none}
#tcai438Editor .tcai443-drawing-control button{pointer-events:auto;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
#tcai438Editor .tcai443-pencil{width:48px;height:48px;min-width:48px;min-height:48px;display:grid;place-items:center;padding:0!important;border:1px solid rgba(255,255,255,.45)!important;border-radius:15px!important;background:rgba(5,14,29,.76)!important;color:#fff!important;box-shadow:0 3px 12px rgba(0,0,0,.24)}
#tcai438Editor .tcai443-pencil.tcai443-open{border-color:#f7ce31!important;background:rgba(10,27,48,.96)!important;color:#ffe15d!important}
#tcai438Editor .tcai443-tool-rail{display:flex;flex-direction:column;align-items:center;gap:1px;margin:0!important;padding:5px!important;flex-wrap:nowrap;border:1px solid rgba(255,255,255,.24);background:rgba(8,13,23,.9);backdrop-filter:blur(7px);border-radius:15px;max-height:min(69dvh,650px);overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;width:58px;box-shadow:0 5px 20px rgba(0,0,0,.35)}
#tcai438Editor .tcai443-tool-rail[hidden]{display:none!important}
#tcai438Editor .tcai443-tool-rail button{display:grid;place-items:center;flex:none;width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important;max-width:46px!important;border-radius:10px!important;padding:7px!important;background:transparent!important;border:1px solid transparent!important;box-shadow:none!important;color:white!important;font-size:25px!important;line-height:1!important}
#tcai438Editor .tcai443-tool-rail button[aria-pressed="true"]{background:rgba(255,255,255,.20)!important;border-color:rgba(255,255,255,.7)!important}
#tcai438Editor .tcai443-tool-rail button:focus-visible{outline:2px solid #fff;outline-offset:-2px}
#tcai438Editor .tcai443-tool-rail svg{display:block;width:29px;height:29px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2.8}
#tcai438Editor .tcai443-tool-rail .tcai443-ink-green{color:#39ff14!important}
#tcai438Editor .tcai443-tool-rail .tcai443-ink-yellow{color:#ffe500!important}
#tcai438Editor .tcai443-tool-rail .tcai443-ink-blue{color:#386cff!important}
#tcai438Editor .tcai443-tool-rail .tcai443-ink-white{color:#fff!important}
#tcai438Editor .tcai443-separator{display:block;height:1px;width:34px;flex:none;margin:4px 0;background:rgba(255,255,255,.38)}
@media(max-width:420px){
 #tcai438Editor .tcai443-drawing-control{top:6px;right:6px}
 #tcai438Editor .tcai443-tool-rail{max-height:min(62dvh,470px)}
}
/* Il menu può estendersi sotto l'anteprima, come nell'editor di riferimento: non taglia Annulla/Cancella. */
#tcai438Editor .tcai438-stage{overflow:visible!important}
#tcai438Editor .tcai438-stage canvas{border-radius:12px}
#tcai438Editor .tcai443-tool-rail{max-height:min(69dvh,650px)}
#tcai438Editor .tcai438-editor-panel{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}

/* FASE 444: pellicola video trascinabile + zoom del fotogramma con due dita. */
#tcai438Editor .tcai444-zoom-viewport{width:100%;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:12px;max-height:52vh;position:relative;background:#102338;touch-action:none}
#tcai438Editor #tcai438Canvas{transform-origin:center center;will-change:transform;touch-action:none}
#tcai438Editor .tcai444-reset-zoom{position:absolute;bottom:8px;left:8px;z-index:8;min-height:44px;min-width:68px;background:rgba(9,24,43,.91)!important;color:white!important;border:1px solid rgba(255,255,255,.7)!important;padding:6px 9px!important}
#tcai438Editor .tcai444-reset-zoom[hidden]{display:none!important}
#tcai438Editor .tcai444-clock-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:7px;margin-top:12px;color:#385168;font-size:12px}
#tcai438Editor #tcai438Clock{color:#113d65;font-variant-numeric:tabular-nums;font-weight:800;font-size:17px}
#tcai438Editor .tcai444-filmstrip-wrap{position:relative;overflow:hidden;margin:7px 0 6px;border-radius:12px;background:#101a28;border:1px solid #263a52;isolation:isolate}
#tcai438Editor .tcai444-filmstrip{width:100%;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch;touch-action:pan-x;overscroll-behavior-inline:contain;user-select:none;-webkit-user-select:none;min-height:77px;box-sizing:border-box}
#tcai438Editor .tcai444-filmstrip::-webkit-scrollbar{display:none}
#tcai438Editor .tcai444-filmtrack{display:flex;align-items:center;width:max-content;padding-left:calc(50% - 35px);padding-right:calc(50% - 35px);height:76px;gap:0}
#tcai438Editor .tcai444-filmcell{flex:0 0 70px;width:70px;height:65px;display:flex;align-items:center;justify-content:center;background:#273447;border:1px solid #14273e;box-sizing:border-box;pointer-events:auto;touch-action:pan-x;overflow:hidden}
#tcai438Editor .tcai444-filmcell img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none;-webkit-user-drag:none}
#tcai438Editor .tcai444-film-placeholder{background:repeating-linear-gradient(90deg,#1c3146 0 8px,#30455d 8px 16px)}
#tcai438Editor .tcai444-film-failed{background:#344055}
#tcai438Editor .tcai444-playhead{position:absolute;z-index:4;top:2px;bottom:2px;width:4px;left:50%;transform:translateX(-50%);border-radius:4px;background:#ffca21;box-shadow:0 0 0 1px #342a16;pointer-events:none}
#tcai438Editor .tcai444-playhead:before{content:'';position:absolute;top:0;left:50%;transform:translateX(-50%);width:15px;height:15px;border-radius:50%;background:#ffca21}
#tcai438Editor .tcai444-transport{justify-content:center;margin-top:4px}
#tcai438Editor .tcai444-transport button{max-width:220px;min-height:47px}
#tcai438Editor .tcai438-stage{max-height:52vh;overflow:visible!important}
@media(max-width:420px){#tcai438Editor .tcai444-zoom-viewport{max-height:43vh}}

/* FASE 445 — palette solo icone sul lato sinistro della barra Matita. */
#tcai438Editor .tcai445-palette{
 position:absolute;z-index:11;top:61px;right:65px;
 display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;
 padding:7px;border-radius:13px;border:1px solid rgba(255,255,255,.45);
 width:min(265px,calc(100vw - 104px));box-sizing:border-box;
 background:rgba(6,12,22,.94);box-shadow:0 8px 28px rgba(0,0,0,.45);
 pointer-events:auto;
}
#tcai438Editor .tcai445-palette[hidden],#tcai438Editor input#tcai438Color[hidden]{display:none!important}
#tcai438Editor .tcai445-palette button{
 display:block;min-width:0!important;width:100%;min-height:43px!important;height:43px!important;
 border-radius:7px!important;border:2px solid rgba(255,255,255,.35)!important;
 padding:0!important;margin:0!important;background:var(--tcai445-swatch)!important;
 box-shadow:0 1px 3px rgba(0,0,0,.15)!important;touch-action:manipulation;
}
#tcai438Editor .tcai445-palette button[aria-pressed="true"]{outline:3px solid #ffffff!important;outline-offset:2px;transform:scale(.90)}
#tcai438Editor .tcai445-palette button[data-ink="#ffffff"]{border-color:#546273!important}
#tcai438Editor .tcai443-tool-rail button[data-tool]{color:var(--tcai445-tool-color,#ffffff)!important}
#tcai438Editor .tcai445-stroke-options{margin-top:6px}
@media(max-width:360px){#tcai438Editor .tcai445-palette{right:62px;gap:4px;padding:5px;width:min(250px,calc(100vw - 98px))}}


/* FASE 451: l'editor parte dal video; niente titolo, versione o spiegazioni in cima.
   Pulsante di chiusura raggiungibile, controlli essenziali conservati. */
#tcai438Editor .tcai438-head.tcai451-compact-head{
 position:relative!important;top:auto!important;z-index:13!important;
 display:flex!important;align-items:center!important;justify-content:flex-end!important;
 min-height:46px!important;height:46px!important;
 margin:0 0 5px!important;padding:0!important;
 background:transparent!important;border:0!important;
}
#tcai438Editor .tcai451-compact-head #tcai438EditorClose{
 display:grid!important;place-items:center!important;
 min-width:38px!important;width:38px!important;height:38px!important;
 min-height:38px!important;padding:0!important;font-size:20px!important;line-height:1!important;
 border:1px solid #d3dce6!important;background:#fff!important;color:#142840!important;
}
#tcai438Editor .tcai444-clock-row{justify-content:flex-start!important;margin-top:7px!important}
#tcai438Editor .tcai438-opts{gap:8px 14px!important}
#tcai438Editor .tcai438-opts label{gap:5px!important}
#tcai438Editor .tcai451-editor-info{border:1px solid #dbe5f0;border-radius:10px;margin:10px 0;padding:6px 10px;color:#456078;font-size:13px}
#tcai438Editor .tcai451-editor-info summary{cursor:pointer;font-weight:700;min-height:34px;display:flex;align-items:center;user-select:none}
#tcai438Editor .tcai451-editor-info p{line-height:1.4;margin:7px 0}


/* FASE 454: schermata Video pronto essenziale, senza titoli o spiegazioni. */
#tcai438Capture .tcai454-capture-panel{padding-top:10px!important;min-height:0!important}
#tcai438Capture .tcai454-preview-wrap{position:relative;margin:0 0 12px}
#tcai438Capture .tcai454-preview-wrap>video{display:block;width:100%;max-height:42vh;min-height:150px;object-fit:contain;background:#0b1b2e;border-radius:12px}
#tcai438Capture #tcai438Cancel.tcai454-close{
 position:absolute!important;top:7px!important;right:7px!important;z-index:5!important;
 min-width:38px!important;width:38px!important;min-height:38px!important;height:38px!important;
 padding:0!important;display:grid!important;place-items:center!important;
 color:#fff!important;background:rgba(6,19,34,.78)!important;border:1px solid rgba(255,255,255,.65)!important;
 border-radius:11px!important;font-size:20px!important;line-height:1!important;
}
#tcai438Capture .tcai438-status[hidden]{display:none!important}
#tcai438Capture .tcai438-status{margin-top:10px!important}
@media(max-width:420px){
 #tcai438Capture .tcai454-capture-panel{padding-top:8px!important}
 #tcai438Capture #tcai438Cancel.tcai454-close{top:6px!important;right:6px!important}
}


/* FASE 460: Editor immersivo senza pagina bianca, video sempre in primo piano. */
#tcai438Editor.tcai438-backdrop{
 inset:0!important;position:fixed!important;padding:0!important;margin:0!important;
 background:#000!important;overflow:hidden!important;overscroll-behavior:none!important;
 display:block!important;height:100dvh!important;max-height:100dvh!important;
}
#tcai438Editor .tcai438-editor-panel.tcai460-immersive{
 position:relative!important;display:flex!important;flex-direction:column!important;
 box-sizing:border-box!important;padding:0!important;margin:0 auto!important;
 width:100vw!important;max-width:none!important;height:100dvh!important;
 min-height:0!important;max-height:100dvh!important;overflow:hidden!important;
 background:#000!important;color:#fff!important;border:0!important;
 border-radius:0!important;box-shadow:none!important;
}
#tcai438Editor .tcai438-head.tcai451-compact-head.tcai460-topbar{
 position:absolute!important;left:0!important;right:0!important;top:max(0px,env(safe-area-inset-top))!important;
 display:flex!important;justify-content:space-between!important;align-items:center!important;
 height:52px!important;min-height:52px!important;width:100%!important;
 padding:3px 9px!important;margin:0!important;z-index:22!important;
 border:none!important;background:linear-gradient(#0009,#0000)!important;
 pointer-events:none!important;
}
#tcai438Editor .tcai460-topbar button{pointer-events:auto!important}
#tcai438Editor .tcai451-compact-head #tcai438EditorClose{
 display:grid!important;place-items:center!important;width:44px!important;height:44px!important;
 min-width:44px!important;min-height:44px!important;font-size:20px!important;
 background:#081526aa!important;border:1px solid #ffffff70!important;color:#fff!important;
 border-radius:12px!important;flex:0 0 44px!important;
}
#tcai438Editor .tcai460-top-actions{display:flex;align-items:center;gap:8px;pointer-events:auto}
#tcai438Editor .tcai460-top-actions button{
 display:grid!important;place-items:center!important;min-width:44px!important;min-height:44px!important;
 height:44px!important;padding:0 10px!important;font-size:17px!important;line-height:1!important;
 background:#081526dd!important;color:#fff!important;border:1px solid #ffffff66!important;border-radius:10px!important;
}
#tcai438Editor #tcai460SettingsToggle{width:44px!important;font-size:23px!important;padding:0!important}
#tcai438Editor .tcai438-stage{
 flex:1 1 auto!important;display:flex!important;align-items:center!important;justify-content:center!important;
 height:auto!important;min-height:0!important;max-height:none!important;width:100%!important;
 padding:0!important;margin:0!important;border:0!important;border-radius:0!important;
 background:#000!important;overflow:hidden!important;
}
#tcai438Editor .tcai444-zoom-viewport{
 width:100%!important;height:100%!important;max-width:100%!important;max-height:none!important;
 min-height:0!important;border-radius:0!important;background:#000!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 overflow:hidden!important;
}
#tcai438Editor #tcai438Canvas{
 display:block!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;
 object-fit:contain!important;border-radius:0!important;
}
#tcai438Editor .tcai443-drawing-control{top:60px!important;right:8px!important;max-height:calc(100% - 68px)!important}
#tcai438Editor .tcai443-tool-rail{max-height:min(54dvh,calc(100% - 15px))!important}
#tcai438Editor .tcai445-palette{top:60px!important;right:64px!important}
#tcai438Editor .tcai444-clock-row{
 flex:0 0 21px!important;height:21px!important;margin:0!important;padding:0 10px!important;
 display:flex!important;align-items:center!important;justify-content:flex-start!important;background:#000!important;
}
#tcai438Editor #tcai438Clock{color:#fff!important;font-size:13px!important;font-weight:750!important}
#tcai438Editor .tcai444-filmstrip-wrap{
 flex:0 0 65px!important;min-height:65px!important;height:65px!important;
 width:100%!important;min-width:0!important;margin:0!important;border:0!important;border-radius:0!important;
 background:#080e17!important;overflow:hidden!important;
}
#tcai438Editor .tcai444-filmstrip{min-height:65px!important;height:65px!important}
#tcai438Editor .tcai444-filmtrack{height:65px!important}
#tcai438Editor .tcai444-filmcell{height:59px!important;width:70px!important}
#tcai438Editor .tcai444-transport.tcai460-transport{
 flex:0 0 52px!important;height:52px!important;min-height:52px!important;
 margin:0!important;padding:0 8px max(0px,env(safe-area-inset-bottom))!important;
 box-sizing:content-box!important;display:grid!important;
 grid-template-columns:minmax(62px,80px) repeat(3,minmax(50px,62px))!important;
 justify-content:center!important;align-items:center!important;gap:clamp(7px,4vw,20px)!important;
 background:#000!important;border-top:1px solid #263142!important;
}
#tcai438Editor .tcai460-speed-label{display:flex!important;align-items:center!important;justify-content:center!important;margin:0!important}
#tcai438Editor #tcai460QuickSpeed{
 color:white!important;background:#000!important;border:0!important;border-radius:0!important;
 width:80px!important;min-height:44px!important;height:44px!important;
 font-size:19px!important;font-weight:750!important;text-align:center!important;
}
#tcai438Editor .tcai460-transport button{
 display:grid!important;place-items:center!important;min-width:50px!important;width:100%!important;
 max-width:none!important;height:48px!important;min-height:48px!important;padding:0!important;margin:0!important;
 border:0!important;border-radius:0!important;background:transparent!important;color:white!important;
 font-size:27px!important;line-height:1!important;box-shadow:none!important;
}
#tcai438Editor #tcai438Play{font-size:32px!important}
#tcai438Editor .tcai460-settings[hidden]{display:none!important}
#tcai438Editor .tcai460-settings{
 position:absolute!important;bottom:0!important;left:0!important;right:0!important;z-index:30!important;
 display:block!important;max-height:min(76dvh,660px)!important;overflow-y:auto!important;
 overscroll-behavior:contain!important;padding:12px 16px max(20px,env(safe-area-inset-bottom))!important;
 box-sizing:border-box!important;background:#fff!important;color:#132b47!important;
 border-radius:18px 18px 0 0!important;box-shadow:0 -10px 40px #000b!important;
}
#tcai438Editor .tcai460-settings-head{
 display:flex!important;justify-content:space-between!important;align-items:center!important;
 position:sticky;top:-12px;padding:4px 0 7px;margin-bottom:6px;background:#fff;z-index:2;
}
#tcai438Editor #tcai460SettingsClose{min-width:44px!important;min-height:44px!important;font-size:20px!important}
#tcai438Editor .tcai460-settings>label{display:block;font-size:14px;font-weight:700;margin:10px 0 5px}
#tcai438Editor .tcai460-settings input[type=text],#tcai438Editor .tcai460-settings textarea{
 box-sizing:border-box;display:block;width:100%;padding:9px;border:1px solid #aabbd1;
 border-radius:9px;background:#fff;color:#142d48;
}
#tcai438Editor .tcai460-settings .tcai438-transport{display:flex!important;gap:8px;flex-wrap:wrap;}
#tcai438Editor .tcai460-settings .tcai438-transport button{min-height:46px;flex:1 1 145px}
#tcai438Editor .tcai460-settings .tcai438-opts{margin:8px 0}
#tcai438Editor .tcai460-settings #tcai438EditorStatus{
 display:block!important;position:static!important;width:auto!important;height:auto!important;
 margin:10px 0 6px!important;padding:8px 10px!important;overflow:visible!important;
 font-size:12px!important;white-space:normal!important;clip-path:none!important;
 color:#22415f!important;background:#edf3fa!important;border-radius:8px!important;
}
#tcai438Editor .tcai438-hidden-video{position:absolute!important}
@media(max-width:390px){
 #tcai438Editor .tcai444-transport.tcai460-transport{
  grid-template-columns:64px repeat(3,51px)!important;gap:7px!important;padding-left:6px!important;padding-right:6px!important;
 }
 #tcai438Editor #tcai460QuickSpeed{width:64px!important;font-size:17px!important}
 #tcai438Editor .tcai460-transport button{font-size:23px!important}
}
@media(max-height:480px) and (orientation:landscape){
 #tcai438Editor .tcai444-filmstrip-wrap,#tcai438Editor .tcai444-filmstrip{height:44px!important;min-height:44px!important;flex-basis:44px!important}
 #tcai438Editor .tcai444-filmtrack{height:44px!important}
 #tcai438Editor .tcai444-filmcell{height:42px!important}
 #tcai438Editor .tcai444-clock-row{height:17px!important;flex-basis:17px!important}
 #tcai438Editor .tcai444-transport.tcai460-transport{min-height:44px!important;height:44px!important;flex-basis:44px!important}
 #tcai438Editor .tcai443-drawing-control{top:54px!important}
}
/* FASE 460 — rifiniture: intestazione dentro la larghezza disponibile e focus discreto. */
#tcai438Editor .tcai438-head.tcai451-compact-head.tcai460-topbar{box-sizing:border-box!important}
#tcai438Editor .tcai460-transport button:focus-visible{outline:2px solid rgba(255,255,255,.85)!important;outline-offset:-3px!important;border-radius:8px!important}


/* FASE 462 — Misure uniformi nell’Editor: 1×, indietro, play, avanti e tasto Confronta coerenti con la freccia. */
#tcai438Editor .tcai460-top-actions button{
  height:44px!important;min-height:44px!important;
  line-height:1!important;font-size:18px!important;
  padding:0 12px!important;border-radius:10px!important;
}
#tcai438Editor #tcai460SettingsToggle{width:44px!important;min-width:44px!important;padding:0!important;font-size:22px!important}
#tcai438Editor .tcai444-transport.tcai460-transport{
  height:44px!important;min-height:44px!important;flex-basis:44px!important;
  grid-template-columns:54px repeat(3,44px)!important;
  gap:8px!important;padding:0 8px max(0px,env(safe-area-inset-bottom))!important;
}
#tcai438Editor #tcai460QuickSpeed{
  width:54px!important;min-width:54px!important;max-width:54px!important;
  height:44px!important;min-height:44px!important;
  font-size:18px!important;line-height:1!important;padding:0!important;
}
#tcai438Editor .tcai460-transport button{
  width:44px!important;min-width:44px!important;max-width:44px!important;
  height:44px!important;min-height:44px!important;
  font-size:24px!important;
}
#tcai438Editor #tcai438Play{font-size:28px!important}


/* FASE 463 — stessa geometria di Confronta anche nell'editor singolo. */
#tcai438Editor .tcai460-topbar{
  gap:8px!important;align-items:center!important;
  padding-left:10px!important;padding-right:10px!important;
}
#tcai438Editor .tcai460-top-actions{
  display:flex!important;gap:8px!important;align-items:center!important;
}
#tcai438Editor #tcai446OpenFromEditor{
  display:grid!important;place-items:center!important;
  box-sizing:border-box!important;
  width:132px!important;min-width:132px!important;max-width:132px!important;
  height:44px!important;min-height:44px!important;
  margin:0!important;padding:0 7px!important;
  font-size:17px!important;line-height:1!important;
  white-space:nowrap!important;text-align:center!important;
}
#tcai438Editor #tcai460SettingsToggle{
  display:grid!important;place-items:center!important;
  box-sizing:border-box!important;
  width:44px!important;min-width:44px!important;max-width:44px!important;
  height:44px!important;min-height:44px!important;
  margin:0!important;padding:0!important;
  line-height:1!important;
}
#tcai438Editor .tcai444-transport.tcai460-transport{
  grid-template-columns:54px repeat(3,44px)!important;
  justify-content:center!important;align-items:center!important;
  gap:14px!important;padding-left:8px!important;padding-right:8px!important;
}
#tcai438Editor .tcai460-speed-label{
  display:flex!important;align-items:center!important;justify-content:center!important;
  box-sizing:border-box!important;margin:0!important;padding:0!important;
  width:54px!important;min-width:54px!important;max-width:54px!important;
  justify-self:center!important;align-self:center!important;
}
#tcai438Editor #tcai460QuickSpeed{
  box-sizing:border-box!important;
  width:54px!important;min-width:54px!important;max-width:54px!important;
  height:44px!important;min-height:44px!important;
  margin:0!important;padding:0!important;
  line-height:1!important;text-align:center!important;
}
#tcai438Editor .tcai460-transport button{
  box-sizing:border-box!important;
  display:grid!important;place-items:center!important;
  width:44px!important;min-width:44px!important;max-width:44px!important;
  height:44px!important;min-height:44px!important;
  margin:0!important;padding:0!important;
  justify-self:center!important;align-self:center!important;
  line-height:1!important;text-align:center!important;
}
@media(max-width:420px){
 #tcai438Editor .tcai444-transport.tcai460-transport{
   grid-template-columns:54px repeat(3,44px)!important;
   gap:12px!important;padding-left:7px!important;padding-right:7px!important;
 }
}

/* FASE 465: Flip e scheletro come controlli rapidi, senza togliere spazio al video. */
#tcai438Editor .tcai460-top-actions{gap:5px!important}
#tcai438Editor .tcai460-top-actions #tcai446OpenFromEditor{min-width:106px!important;width:106px!important;padding:0 5px!important;font-size:14px!important}
#tcai438Editor .tcai460-top-actions .tcai465-quick{width:40px!important;min-width:40px!important;height:44px!important;min-height:44px!important;padding:0!important;font-size:21px!important}
#tcai438Editor .tcai465-quick[aria-pressed=true]{border-color:#f5cf4e!important;color:#f8d955!important;background:#1b314b!important}
@media(max-width:365px){#tcai438Editor .tcai460-top-actions #tcai446OpenFromEditor{min-width:92px!important;width:92px!important;font-size:12px!important}}

/* FASE 465: avviso solo se il rilevamento posturale non è disponibile. */
.tcai465-pose-notice{position:absolute!important;left:10px!important;bottom:82px!important;z-index:35!important;
 background:rgba(9,22,38,.87)!important;color:#fff!important;border:1px solid #8b98a8!important;
 border-radius:8px!important;padding:4px 7px!important;font-size:12px!important;pointer-events:none!important}
.tcai465-pose-notice[hidden]{display:none!important}

/* FASE 466 — Angoli 2D; pannelli compatti, overlay non invasivo. */
#tcai438Editor .tcai466-controls,#tcai446Compare .tcai466-controls{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;margin:9px 0!important;
}
#tcai438Editor .tcai466-controls button,#tcai446Compare .tcai466-controls button{
 min-width:0!important;min-height:44px!important;width:100%!important;padding:7px 5px!important;
 font-size:13px!important;white-space:normal!important;line-height:1.2!important;border-radius:10px!important;
}
#tcai438Editor .tcai466-controls button[aria-pressed=true],#tcai446Compare .tcai466-controls button[aria-pressed=true]{
 background:#155e91!important;color:#fff!important;border-color:#53bfff!important;
}
#tcai438Editor .tcai466-explain,#tcai446Compare .tcai466-explain{font-size:12px!important;line-height:1.35!important;color:inherit!important;opacity:.85;margin:5px 0 9px!important}
#tcai438Editor .tcai466-angle-hint,#tcai446Compare .tcai466-angle-hint{
 position:absolute!important;left:50%!important;top:57px!important;transform:translateX(-50%)!important;
 max-width:calc(100% - 75px)!important;z-index:18!important;background:rgba(7,20,39,.82)!important;
 color:#fff!important;border-radius:9px!important;padding:4px 7px!important;font-size:11px!important;
 font-weight:650!important;line-height:1.2!important;pointer-events:none!important;text-align:center!important;
 white-space:nowrap!important;
}
#tcai438Editor .tcai466-angle-hint[hidden],#tcai446Compare .tcai466-angle-hint[hidden]{display:none!important}


/* FASE 467 — misurazione manuale nella matita e microfono sul video. */
#tcai438Editor #tcai467Mic.tcai467-mic{
 position:absolute!important;left:8px!important;top:60px!important;z-index:21!important;
 width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;
 display:grid!important;place-items:center!important;padding:0!important;margin:0!important;
 border-radius:13px!important;color:#fff!important;background:rgba(5,18,33,.85)!important;
 border:1px solid rgba(255,255,255,.6)!important;box-shadow:0 2px 12px #0005!important;
 touch-action:manipulation!important;
}
#tcai438Editor #tcai467Mic.tcai467-mic[aria-pressed=true]{
 border-color:#ffda56!important;background:rgba(32,60,68,.98)!important;color:#ffe17b!important;
}
#tcai438Editor .tcai467-mic svg{display:block!important;width:24px!important;height:24px!important;pointer-events:none!important}
#tcai438Editor #tcai466ManualAngle.tcai467-angle-tool{color:#ffe16b!important}
#tcai438Editor #tcai466ManualAngle.tcai467-angle-tool[aria-pressed=true]{
 background:rgba(255,214,77,.25)!important;border-color:#ffda56!important;
}
#tcai438Editor #tcai438Voice[hidden]{display:none!important}
@media(max-height:500px) and (orientation:landscape){
 #tcai438Editor #tcai467Mic.tcai467-mic{top:53px!important;}
}

/* FASE 470 — Registrazione vocale libera e salvataggio sempre raggiungibile. */
#tcai438Editor #tcai467Mic.tcai467-mic[aria-pressed="true"]{background:#962535!important;border-color:#ffb4bc!important;color:#fff!important;font-size:23px!important}
#tcai438Editor #tcai470VoiceStatus.tcai470-voice-status{
 position:absolute!important;left:60px!important;top:60px!important;z-index:24!important;
 display:block!important;max-width:calc(100% - 128px)!important;
 background:rgba(4,14,26,.86)!important;color:white!important;
 font-size:12px!important;font-weight:700!important;line-height:1.3!important;
 border-radius:8px!important;padding:7px 9px!important;pointer-events:none!important;
}
#tcai438Editor #tcai470VoiceStatus[hidden]{display:none!important}
#tcai438Editor #tcai470EditorResult.tcai470-result{
 position:absolute!important;z-index:200!important;bottom:calc(56px + env(safe-area-inset-bottom,0px))!important;
 left:10px!important;right:10px!important;display:grid!important;gap:9px!important;
 padding:14px!important;background:#12233a!important;color:white!important;
 border:1px solid #899fb8!important;border-radius:15px!important;box-shadow:0 8px 35px #000a!important;
 max-width:560px!important;margin:0 auto!important;font-size:14px!important;
}
#tcai438Editor #tcai470EditorResult[hidden]{display:none!important}
#tcai438Editor .tcai470-result-title{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important}
#tcai438Editor .tcai470-result-title strong{font-size:16px!important}
#tcai438Editor .tcai470-result-title button{min-width:44px!important;min-height:44px!important;background:transparent!important;color:#fff!important;border:1px solid #63758b!important;border-radius:10px!important}
#tcai438Editor .tcai470-result p{color:#dbeafa!important;margin:0!important;font-size:13px!important;line-height:1.4!important}
#tcai438Editor .tcai470-result-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
#tcai438Editor .tcai470-result-actions button{min-height:46px!important;background:#1871d7!important;color:#fff!important;border:1px solid #75b5ff!important;border-radius:10px!important;font-weight:750!important;padding:8px!important}
#tcai438Editor .tcai470-result-actions button+button{background:#243e58!important}
#tcai438Editor .tcai470-direct{display:block!important;text-align:center!important;color:#fff!important;text-decoration:underline!important;padding:6px!important;min-height:32px!important}

/* FASE 473 — esportazione silenziosa direttamente sotto il microfono. */
#tcai438Editor #tcai473QuickSave{position:absolute!important;left:8px!important;top:110px!important;z-index:21!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;display:grid!important;place-items:center!important;padding:0!important;margin:0!important;border-radius:13px!important;color:#fff!important;background:rgba(5,18,33,.85)!important;border:1px solid rgba(255,255,255,.6)!important;box-shadow:0 2px 12px #0005!important;touch-action:manipulation!important}
#tcai438Editor #tcai473QuickSave:disabled{opacity:.5!important}
#tcai438Editor #tcai473QuickSave svg{pointer-events:none!important}
#tcai438Editor #tcai473ExportStatus{position:absolute!important;top:110px!important;left:60px!important;z-index:23!important;background:rgba(4,14,26,.9)!important;border-radius:8px!important;padding:8px!important;max-width:calc(100% - 125px)!important;color:white!important;font-size:12px!important;font-weight:700!important;line-height:1.3!important;pointer-events:none!important}
#tcai438Editor #tcai473ExportStatus[hidden]{display:none!important}
@media(max-height:500px) and (orientation:landscape){#tcai438Editor #tcai473QuickSave,#tcai438Editor #tcai473ExportStatus{top:103px!important}}

/* FASE 484: due azioni video compatte anche per il Giocatore PRO/PREMIUM. */
.tcai484-video-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
.tcai484-video-actions button{white-space:normal;min-width:0;}


/* FASE 485 - solo nell'APK Android (bridge nativo gia' rilevato in index.html).
   Icone di dimensione fissa: il testo ingrandito della WebView non altera piu'
   Indietro / Riproduci-Pausa / Avanti. Area tattile 44px invariata. */
html.tcai-native-installed-android #tcai438Editor .tcai460-transport #tcai460Prev,
html.tcai-native-installed-android #tcai438Editor .tcai460-transport #tcai438Play,
html.tcai-native-installed-android #tcai438Editor .tcai460-transport #tcai460Next{
  font-size:0!important;line-height:0!important;
  width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;
}
html.tcai-native-installed-android #tcai438Editor .tcai460-transport #tcai460Prev::before,
html.tcai-native-installed-android #tcai438Editor .tcai460-transport #tcai438Play::before,
html.tcai-native-installed-android #tcai438Editor .tcai460-transport #tcai460Next::before{
  content:""!important;display:block!important;flex:none!important;
  width:22px!important;height:22px!important;
  margin:auto!important;background-repeat:no-repeat!important;background-position:center!important;
  background-size:contain!important;
}
html.tcai-native-installed-android #tcai438Editor .tcai460-transport #tcai460Prev::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cg%20fill%3D%22white%22%3E%3Cpath%20d%3D%22M3%2012%2014%204v16L3%2012Z%22%2F%3E%3Cpath%20d%3D%22M17%204h3v16h-3z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")!important}
html.tcai-native-installed-android #tcai438Editor .tcai460-transport #tcai460Next::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cg%20fill%3D%22white%22%3E%3Cpath%20d%3D%22M21%2012%2010%204v16l11-8Z%22%2F%3E%3Cpath%20d%3D%22M4%204h3v16H4z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")!important}
html.tcai-native-installed-android #tcai438Editor .tcai460-transport #tcai438Play::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cg%20fill%3D%22white%22%3E%3Cpath%20d%3D%22M7%203.5%2021%2012%207%2020.5z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")!important}
html.tcai-native-installed-android #tcai438Editor .tcai460-transport #tcai438Play[aria-label="Pausa"]::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cg%20fill%3D%22white%22%3E%3Cpath%20d%3D%22M5%203h5v18H5zM14%203h5v18h-5z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")!important}


/* FASE 495: il controllo Angoli 2D automatici ora e' nella matita, distinto
   dalla misura manuale a tre punti. Lo stato resta leggibile a ogni tocco. */
#tcai438Editor .tcai443-tool-rail button.tcai495-auto-angles{
 color:#65e6ff!important;
}
#tcai438Editor .tcai443-tool-rail button.tcai495-auto-angles[aria-pressed="true"]{
 color:#d9fbff!important;background:#15506a!important;border-color:#65e6ff!important;
}
#tcai438Editor .tcai443-tool-rail button.tcai495-auto-angles .tcai495-mark{
 display:block!important;font-size:20px!important;font-weight:800!important;
 letter-spacing:-1px!important;line-height:1!important;white-space:nowrap!important;
}
