@font-face{font-family:Bravura;src:url('vendor/alphatab/dist/font/Bravura.woff2')}*{box-sizing:border-box}html,body{margin:0;height:100%;font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#353740;background:#fff;font-size:14px}button,input,select,textarea{font:inherit}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #dddfe4;border-radius:7px;padding:9px 13px;background:#fff;color:#4a4c58;text-decoration:none;cursor:pointer;white-space:nowrap}button:hover,.button:hover{background:#f3f4f6}button:disabled{opacity:.45;cursor:default}.primary{background:#e54242;color:#fff;border-color:#e54242}.primary:hover{background:#cf3131}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #95baff;outline-offset:2px}input,select,textarea{border:1px solid #d9dce2;border-radius:6px;background:#fff;color:#353740;padding:9px;min-width:0}input[type=range]{padding:0;accent-color:#e54242}input[type=checkbox]{accent-color:#e54242}label{display:flex;flex-direction:column;gap:7px}h1,h2,h3,p{margin-top:0}h1{font-size:30px;font-weight:600}h2{font-size:20px}h3{font-size:15px}.eyebrow{font-size:10px;letter-spacing:1.5px;color:#8a8d98;font-weight:600}.hint{font-size:12px;color:#848793;line-height:1.6}.topbar{height:60px;border-bottom:1px solid #e8e8ec;display:flex;align-items:center;justify-content:space-between;padding:0 20px;gap:12px}.breadcrumbs{display:flex;align-items:center;gap:12px;min-width:0}.breadcrumbs a{color:#888b93;text-decoration:none}.breadcrumbs strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:550}.top-actions{display:flex;align-items:center;gap:8px}.save-state{font-size:11px;color:#838793}.workspace{display:grid;grid-template-columns:var(--video-width,38%) 8px minmax(0,1fr);height:calc(100dvh - 128px);overflow:hidden}.media-column{background:#f8f7f6;overflow:auto;min-width:0}.video-wrap{position:sticky;top:0;z-index:2;background:#111;aspect-ratio:16/10;display:flex;align-items:center;justify-content:center}.video-wrap video{width:100%;max-height:100%;display:block}.midi-placeholder{text-align:center;color:#d5d5d5;line-height:1.7;padding:30px}.midi-placeholder .music-icon{display:block;font-family:Bravura;font-size:58px;line-height:1.8;color:white}.midi-placeholder small{color:#8c8c8c}.splitter{background:#f5f5f6;border-inline:1px solid #e7e7e9;cursor:col-resize;touch-action:none}.score-column{position:relative;min-width:0;height:100%;display:flex;flex-direction:column;background:#fff}.score-scroll{position:relative;overflow:auto;flex:1;padding:24px 12px 70px;scroll-behavior:auto}.score-content{position:relative}.score-status{padding:10px 20px;color:#8b8d95;font-size:12px;border-bottom:1px solid #f0f0f2;min-height:36px}.transport{height:68px;border-top:1px solid #dddfe4;display:flex;align-items:center;gap:16px;padding:0 20px;background:#fff;position:relative;z-index:5}.play{width:44px;height:40px;font-size:19px}.transport .seek{flex:1;min-width:50px}.time{font-variant-numeric:tabular-nums;font-size:12px;white-space:nowrap;color:#858893}.speed-control{display:flex;align-items:center;gap:7px;white-space:nowrap}.speed-control input{width:85px}.speed-control output{min-width:38px}.source-select{max-width:190px}.loop-label{font-size:12px;color:#888;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor{padding:22px}.editor h2{font-size:16px;font-weight:600;margin-bottom:6px}.editor-top{display:flex;justify-content:space-between;align-items:center;gap:8px}.sync-prompt{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:20px 0 10px}.sync-prompt strong{font-size:17px}.mark-button{width:100%;padding:13px;background:#e54242;color:white;border-color:#e54242;font-weight:600}.mark-button kbd{background:#ffffff30;border-color:#ffffff60;color:white}.editor-tools{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 18px}.editor-tools button{font-size:12px;padding:7px 9px}.timeline-scroll{overflow-x:auto;border:1px solid #e0e1e5;background:#fff;border-radius:7px;margin:10px 0}.timeline{position:relative;height:100px;min-width:100%;touch-action:none;background:repeating-linear-gradient(90deg,transparent,transparent calc(10% - 1px),#f0f1f4 calc(10% - 1px),#f0f1f4 10%)}.timeline canvas{width:100%;height:100%;opacity:.55}.timeline-cursor{position:absolute;top:0;bottom:0;width:1px;background:#e54242;pointer-events:none}.marker{position:absolute;top:5px;transform:translateX(-50%);padding:3px 5px;border-radius:3px;background:#fff4f1;border:1px solid #ea6a6a;font-size:10px;min-width:20px;touch-action:none;z-index:2}.marker:after{content:'';position:absolute;top:22px;left:50%;height:64px;width:1px;background:#ee8c8c}.marker.current{background:#e54242;color:#fff}.marks-list{display:flex;flex-wrap:wrap;gap:5px;max-height:155px;overflow:auto;margin:12px 0}.bar-chip{font-size:11px;min-width:42px;padding:7px;position:relative}.bar-chip.done{background:#edf5f0;border-color:#c7e0ce;color:#397950}.bar-chip.selected{border-color:#e54242;box-shadow:0 0 0 1px #e54242;color:#cf3131}.fine-edit{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:12px}.fine-edit input{width:88px}.fine-edit button{padding:7px}.recording-actions{display:flex;gap:6px;align-items:center;margin-bottom:12px}.recording-actions input{width:100%}.editor-section{padding-top:18px;margin-top:18px;border-top:1px solid #e3e3e6}.editor-section label{margin-bottom:12px}.settings-panel{position:absolute;right:16px;bottom:78px;z-index:12;background:#f5f5f6;border:1px solid #dddfe3;box-shadow:0 8px 40px #2428371c;width:330px;max-height:calc(100dvh - 150px);overflow:auto;padding:18px;border-radius:12px}.settings-panel[hidden]{display:none}.settings-panel h3{display:flex;justify-content:space-between;align-items:center}.settings-panel section{background:white;border:1px solid #e0e1e6;border-radius:7px;padding:14px;margin-bottom:12px}.settings-panel label{margin-bottom:12px;font-size:12px}.settings-panel label:last-child{margin-bottom:0}.settings-panel .row-label{flex-direction:row;align-items:center;justify-content:space-between}.track-setting{border-bottom:1px solid #eee;padding-bottom:10px;margin-bottom:10px}.track-setting:last-child{border:0;margin:0;padding:0}.track-setting input[type=range]{width:140px}.close{border:0;padding:2px 6px;font-size:20px;background:transparent}.settings-panel .wide{width:100%;margin-bottom:8px}.at-cursor-bar{background:rgba(229,66,66,.065)}.at-cursor-beat{background:var(--cursor-color,#e54242);width:2px!important}.at-selection div{background:rgba(229,66,66,.14)}.at-highlight *{fill:#cf3131}.at-overlay-content{background:#fff}.at-surface{font-family:Bravura}.comment-note{position:absolute;background:#f2f2f2ed;color:#52545b;display:flex;align-items:center;justify-content:center;text-align:center;padding:8px;pointer-events:none;font-size:13px}.library-page{background:#fafafa}.library-head{height:128px;padding:32px 48px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e6e7eb;background:white}.library-head h1{margin:6px 0 0}.library{display:grid;grid-template-columns:220px 1fr;gap:42px;padding:36px 48px}.library aside h3{font-size:12px;color:#9598a0;text-transform:uppercase;letter-spacing:1px}.folder{display:flex;width:100%;justify-content:flex-start;background:none;border:0;margin-bottom:4px}.folder small{margin-left:auto;color:#9a9da5}.folder.selected{background:#eceef1;color:#333}.library aside .hint{margin:30px 12px}.library-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;gap:15px}.library-toolbar h2{margin:0}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:20px}.project-card{border:1px solid #e2e3e8;background:#fff;border-radius:10px;overflow:hidden}.score-thumbnail{height:145px;display:flex;flex-direction:column;justify-content:center;gap:8px;padding:20px 40px;position:relative;background:#fff;color:#40424b;text-decoration:none;border-bottom:1px solid #eee}.score-thumbnail span{position:absolute;font-family:Bravura;font-size:68px;left:45px;top:16px}.score-thumbnail i{height:1px;background:#dadee4}.card-body{padding:20px}.card-body h3{font-size:18px;margin:8px 0 10px}.card-body p{font-size:12px;color:#91949d}.card-actions{display:flex;align-items:center;justify-content:space-between;margin-top:22px;gap:12px}.text-link{font-size:12px;color:#737781;text-decoration:none}.empty{padding:50px;color:#9497a0}dialog{border:1px solid #e0e1e6;border-radius:12px;padding:28px;width:500px;max-width:95vw;color:#42454f;box-shadow:0 15px 60px #0002}dialog::backdrop{background:#20232c66}.dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.dialog-head h2{margin:0}dialog p{font-size:13px;color:#858892;line-height:1.6}dialog label{margin:18px 0}.dialog-actions{display:flex;justify-content:flex-end;margin-top:25px}dialog textarea{width:100%;min-height:100px}.modal-row{display:flex;gap:10px}.modal-row>*{flex:1}#toast{position:fixed;bottom:85px;left:50%;transform:translateX(-50%);z-index:100;background:#353740;color:#fff;padding:12px 20px;border-radius:8px;max-width:85vw;box-shadow:0 8px 30px #0002;display:none;font-size:13px}kbd{font:11px inherit;border:1px solid #dddfe4;border-radius:4px;padding:2px 5px;color:#777}.error-banner{padding:25px;background:#fff4f0;color:#97402d}.volume-main{width:70px}.status-dot{color:#42956c}.preview-label{font-size:11px;color:#a39b8a}.loading{padding:40px;color:#8d9097}.help-grid{display:grid;grid-template-columns:1fr auto;gap:12px;font-size:13px}.help-grid kbd{justify-self:start}@media(max-width:1050px){.workspace{grid-template-columns:var(--video-width,35%) 6px minmax(0,1fr)}.transport{gap:9px;padding:0 10px}.volume-main,.loop-label{display:none}.editor{padding:14px}.save-state{display:none}.source-select{max-width:145px}.library{padding:24px;gap:20px;grid-template-columns:180px 1fr}.library-head{padding:28px 24px}}@media(max-width:650px){.workspace{display:flex;flex-direction:column;height:calc(100dvh - 168px)}.media-column{max-height:38%;flex-shrink:0}.video-wrap{aspect-ratio:auto;height:160px}.editor-mode .media-column{max-height:48%;}.splitter{display:none}.score-column{flex:1;min-height:0}.transport{height:108px;flex-wrap:wrap;align-content:center}.topbar{padding:0 10px}.top-actions button{font-size:11px;padding:7px}.library{display:block}.library aside{margin-bottom:20px}.library aside .hint{display:none}.library-head{padding:22px 18px}.library-toolbar{flex-direction:column;align-items:flex-start}.settings-panel{bottom:116px;right:5px;max-width:95vw}.speed-control input{width:65px}}

[hidden]{display:none!important}
.media-column{display:flex;flex-direction:column;overflow:hidden}.video-wrap{position:relative;flex-shrink:0}.editor{flex:1;min-height:0;overflow:auto}.editor-mode .video-wrap{max-height:43vh}.settings-panel{position:fixed}.score-status{flex-shrink:0}
/* La línea temporal permanece visible encima del vídeo y la partitura. */
.sync-dock{height:206px;padding:10px 22px 8px;border-bottom:1px solid #e1e3e8;background:#fafafb}.sync-dock-head{display:flex;align-items:center;justify-content:space-between;gap:20px;height:44px}.sync-dock .sync-prompt{margin:0;gap:18px}.sync-dock .sync-prompt strong{font-size:14px}.sync-dock .mark-button{width:auto;padding:9px 20px}.sync-dock .timeline-scroll{margin:8px 0;height:108px}.sync-dock .hint{margin:0}.has-sync .workspace{height:calc(100dvh - 334px)}.sync-dock .marker{background:#e54242;color:white}.sync-dock .marker:after{background:#e54242;width:2px}.has-sync .editor-mode .video-wrap{max-height:32vh}@media(max-width:650px){.sync-dock{padding-inline:10px;height:206px}.has-sync .workspace{height:calc(100dvh - 374px)}.sync-dock .hint{font-size:10px}.sync-dock .mark-button{padding:8px}.sync-dock .sync-prompt{gap:6px}}

.web-bloque{border-top:1px solid #e8e8ec;margin-top:16px;padding-top:14px;display:flex;flex-direction:column;gap:10px}.web-bloque h3,.web-bloque p{margin:0}.web-bloque code{background:#f1f1f4;border-radius:4px;padding:1px 5px;font-size:12px;word-break:break-all}.web-error{color:#b3261e;white-space:pre-wrap;font-size:12.5px}.web-estado{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.web-girando{width:14px;height:14px;border:2px solid #f5c2c2;border-top-color:#e54242;border-radius:50%;animation:webgira .9s linear infinite}@keyframes webgira{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.web-girando{animation:none}}.web-avisos{margin:0;padding-left:18px;font-size:12px;color:#8a4a00;line-height:1.5}
.web-bloque textarea{min-height:0}.web-bloque label{margin:0;font-size:12px;color:#5c5f6b}
.web-bloque .dialog-actions{gap:8px;margin-top:6px}
