:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:#e7eaf5;background:#0a0e1a}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse 40% 20% at 28% 0%,#22264c 0%,transparent 85%),#0a0e1a}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}.app-shell{max-width:1480px;margin:auto;padding:0 36px}.site-header{height:78px;border-bottom:1px solid #282b40;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:10px;color:white;font-weight:850;letter-spacing:.065em;font-size:19px}.brand-icon{height:36px;width:36px;display:grid;place-items:center;border-radius:11px;background:linear-gradient(140deg,#a185ff,#5a6bfd);font-size:27px}.brand-thin{font-weight:350;letter-spacing:.08em}.beta{font-size:9px;font-weight:700;color:#b9a3ff;border:1px solid #66578e;padding:4px 7px;border-radius:5px;letter-spacing:.05em;margin-left:4px}.header-side{font-size:11px;color:#9ca2b6}.status-dot,.status-indicator{display:inline-block;width:7px;height:7px;border-radius:50%;background:#52dec0;margin-right:8px;box-shadow:0 0 12px #52dec080}.hero{display:flex;justify-content:space-between;align-items:center;padding:47px 0 40px}.eyebrow{font-size:10px;font-weight:800;color:#ac92fa;letter-spacing:.2em}.hero h1{font-size:clamp(28px,3.3vw,48px);letter-spacing:-.055em;line-height:1.13;margin:12px 0 13px;color:#f8f8ff}.hero h1 em{font-style:normal;background:linear-gradient(100deg,#aaa1ff,#70d9e1);-webkit-background-clip:text;background-clip:text;color:transparent}.hero p{color:#9ea4b9;line-height:1.6;max-width:710px;margin:0;font-size:13px}.hero-icon{display:flex;gap:12px;font-size:30px;color:#a7a0ff;opacity:.6}.hero-icon span:nth-child(2){transform:translateY(-20px);color:#70d9e1}.hero-icon span:nth-child(3){transform:translateY(12px)}.workspace{display:grid;grid-template-columns:292px minmax(0,1fr);gap:22px}.side-panel,.content-panel{min-width:0}.side-panel{display:flex;flex-direction:column;gap:18px}.panel{background:#111626;border:1px solid #272d42;border-radius:13px;padding:21px}.section-label{display:flex;align-items:center;gap:9px;color:#b3b5d2;font-size:11px;letter-spacing:.08em;font-weight:800;margin-bottom:20px}.step{color:#967ef8;background:#272146;border-radius:6px;padding:5px 7px;font-size:10px}.input-label{font-size:11px;color:#c3c7d8;font-weight:700;margin-bottom:9px}.input-label.after{margin-top:22px}.upload-box{display:flex;align-items:center;flex-direction:column;padding:24px 10px 22px;gap:5px;background:#171d30;border:1px dashed #525575;border-radius:9px;cursor:pointer;transition:background .15s}.upload-box:hover{background:#202742}.upload-box input{display:none}.upload-box strong{font-size:12px}.upload-box small,.caption{color:#828ba6;font-size:10px;line-height:1.55}.upload-icon{color:#ad9aff;font-size:29px;margin-bottom:6px}.separator{text-align:center;border-bottom:1px solid #2d3044;height:13px;margin:13px 0 22px}.separator span{background:#111626;padding:0 12px;color:#6a7084;font-size:11px}.button{border:1px solid #373c59;background:#1d253d;color:#e5e7f8;border-radius:8px;padding:11px 14px;font-weight:700;font-size:11px;transition:transform .16s,background .16s}.button:hover{transform:translateY(-1px);background:#2a3350}.button.primary{background:linear-gradient(110deg,#8066ed,#6465d7);border-color:#9f8bf7;color:#fff;box-shadow:0 6px 20px #6b60d837}.button.primary:hover{background:linear-gradient(110deg,#9076f9,#7475e9)}.button.full{width:100%}.button.small{padding:9px 12px}.inline-input{display:flex;border:1px solid #31384f;border-radius:7px;background:#0b1120;overflow:hidden}.inline-input input{width:100%;min-width:0;border:0;outline:0;padding:12px 9px;color:#fff;background:transparent;font-size:11px}.inline-input button{min-width:32px;background:#242b43;color:#babff9;border:0}.caption{display:block;margin-top:12px}.youtube-holder{margin-top:12px;aspect-ratio:16/9}.youtube-holder iframe{border:0;width:100%;height:100%;border-radius:7px}.hidden{display:none!important}.message{padding:10px 12px;border-radius:7px;font-size:11px;line-height:1.55;margin-top:14px;background:#222238;border:1px solid #625379;color:#e5c9ff}.message.error{background:#331f2d;border-color:#9c5b72;color:#ffb3c4}.instrument-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.instrument{display:flex;flex-direction:column;align-items:center;gap:8px;justify-content:center;padding:12px 4px;border:1px solid #343a50;color:#8b93ad;border-radius:9px;background:#151a2a;font-size:10px}.instrument.active{border-color:#8c76ee;background:#2a2349;color:#d4cafa}.instrument-icon{font-size:27px;height:29px;color:#aca1ff}.panel select,.transport select{color:#d8def2;border:1px solid #343a50;background:#151b2e;border-radius:8px;padding:11px;width:100%;outline:0;font-size:11px}.export-details{display:flex;justify-content:space-between;margin-bottom:22px}.export-details>div{display:flex;flex-direction:column;gap:5px}.export-details span{color:#7c859a;font-size:10px}.export-details strong{font-size:11px;color:#e2e3f2}.export-status{font-size:11px;color:#7fd9bf;margin-top:8px;line-height:1.5}.stage-heading{display:flex;align-items:end;justify-content:space-between;margin:0 0 17px}.stage-heading h2{font-size:23px;letter-spacing:-.04em;margin:8px 0 0}.pill{border:1px solid #343951;border-radius:20px;color:#acb6d1;font-size:10px;padding:8px 13px;background:#1b2135}.stage-container{overflow:hidden;background:#0d1224;border:1px solid #323a54;border-radius:14px;position:relative;box-shadow:0 14px 55px #0004}.stage-container canvas{display:block;width:100%;aspect-ratio:16/9}.stage-overlay{display:none;position:absolute;top:20px;right:20px;font-size:11px;letter-spacing:.1em;color:#ff627d;background:#2c1c30e9;border-radius:20px;padding:8px 13px}.stage-overlay.active{display:block}.transport{display:flex;align-items:center;gap:12px;margin-top:18px}.control-round,.control-main{flex-shrink:0;display:grid;place-items:center;border:none;color:#d8def3;background:#202840;border-radius:50%;width:38px;height:38px;font-size:20px}.control-main{width:45px;height:45px;background:#8771f8;color:white;font-size:18px}.timeline{flex:1;min-width:0}.timeline input{width:100%;accent-color:#937dff;cursor:pointer}.timeline-labels{display:flex;justify-content:space-between;font-size:11px;color:#7c859d;font-variant-numeric:tabular-nums}.transport select{width:77px}.status-row{display:flex;justify-content:space-between;border-bottom:1px solid #2b3043;padding:22px 0 27px;color:#828ba0;font-size:10px;gap:12px}.status-row>div:first-child{color:#b2bacb}.status-indicator{height:6px;width:6px}.editor{margin-top:25px;padding:23px}.editor-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.editor h3{font-size:18px;margin:7px 0}.editor p{font-size:11px;color:#828da9;line-height:1.6;margin:0 0 16px}.table-wrapper{max-height:300px;overflow:auto;border-radius:8px;border:1px solid #283048}table{width:100%;border-collapse:collapse;text-align:left;font-size:11px}th{color:#838ea9;background:#151e31;position:sticky;top:0;z-index:1;letter-spacing:.05em;font-size:10px}td,th{padding:11px 10px;border-bottom:1px solid #262c42}td{color:#cad0df}td input{background:#0e1423;border:1px solid #343c57;border-radius:5px;color:#e4e5f4;width:72px;padding:6px 7px;font-size:11px}td input.note-edit{width:68px}td button{border:0;background:transparent;color:#da8894;font-size:16px}.editor .caption{margin-top:12px}footer{border-top:1px solid #272c3e;color:#646e82;font-size:10px;margin:42px 0 0;padding:20px 0 32px;text-align:center}@media(max-width:980px){.app-shell{padding:0 18px}.workspace{grid-template-columns:1fr}.side-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.side-panel .panel:last-child{grid-column:1/-1}.hero-icon{display:none}}@media(max-width:620px){.side-panel{display:flex}.hero{padding:30px 0}.hero h1{font-size:33px}.site-header{height:68px}.header-side{display:none}.panel{padding:16px}.status-row>div:last-child{display:none}.editor-top{align-items:start;flex-direction:column}.editor-top .button{margin-bottom:13px}.brand{font-size:17px}.stage-heading h2{font-size:19px}td,th{padding:8px 6px}td input{width:57px}td input.note-edit{width:57px}}

/* Cloudflare static edition */
.audio-upload { padding: 10px 12px !important; margin-top: 7px; }
.audio-upload .upload-icon { font-size: 17px; }
.audio-upload small { line-height: 1.4; }

/* v0.3 transcription and keypress scheduler */
.compact-upload{padding:14px 10px!important}.compact-upload .upload-icon{font-size:18px;margin-bottom:2px}
.capability-notice{color:#edc994!important;margin:8px 0 0!important}.capability-notice strong{color:#ffe3b3}
.analysis-progress{height:6px;background:#303958;border-radius:99px;overflow:hidden;margin-top:9px}
.analysis-progress>div{height:100%;width:0;background:linear-gradient(90deg,#927cff,#66e8cf);transition:width .14s}
.play-guide{display:grid;grid-template-columns:1fr 1fr .7fr;gap:10px;margin-top:18px}
.guide-cell{background:#161d31;border:1px solid #354059;border-radius:10px;padding:16px 18px;min-width:0}
.guide-cell.now{background:linear-gradient(115deg,#1f3046,#20253d);border-color:#36566b}
.guide-label{font-size:9px;font-weight:800;letter-spacing:.12em;color:#8f9ab9;margin-bottom:9px}
.guide-cell strong{display:block;color:#e8e8ff;font-size:20px;letter-spacing:-.02em;min-height:29px;overflow-wrap:anywhere}
.guide-cell.now strong{color:#73e3cd}.guide-cell.next strong{color:#b5a4ff}
.guide-cell small{display:block;color:#8a9aba;font-size:11px;margin-top:6px;line-height:1.45}
.press-sequence{display:flex;overflow-x:auto;gap:7px;scrollbar-width:thin;padding:13px 2px 1px}
.press-chip{flex-shrink:0;background:#1b2540;border:1px solid #3e4e6d;border-radius:7px;color:#cbd3ed;font-size:10px;padding:9px 12px;font-variant-numeric:tabular-nums}
.press-chip:hover{background:#29385a}.status-row{padding-top:15px}
@media(max-width:760px){.play-guide{grid-template-columns:repeat(2,minmax(0,1fr))}.guide-cell.wait{grid-column:1/-1}.guide-cell strong{font-size:16px}}

/* Motor IA: se mantiene la composición móvil y escritorio de la v0.3 */
.api-config{display:grid;gap:8px;background:#101b35;border:1px solid #33436b;border-radius:12px;padding:14px;margin:10px 0 14px}
.api-title{font-weight:750;color:#e0e9ff;font-size:14px;display:flex;gap:12px;align-items:center}
.api-tag{font-size:10px;letter-spacing:1px;color:#70e4cb;background:#193b48;padding:3px 7px;border-radius:12px}
.api-config input,.api-config select{width:100%;min-width:0;border-radius:7px;border:1px solid #394867;background:#10172a;color:#eaf1ff;padding:10px;font:inherit}
.api-config .caption{line-height:1.5;font-size:12px;color:#aebddd}
#apiStatus.good{color:#79eec4}
#apiStatus.error{color:#ffadbd}

/* NoteFlow 0.5: original YouTube player + accurately clocked piano visualization */
.yt-source-block{padding:17px 13px;background:linear-gradient(145deg,#302039,#17233b);border:1px solid #655475;border-radius:11px;margin:0 0 18px}
.yt-source-title{font-size:13px;font-weight:850;margin-bottom:13px;color:#fff}
.yt-red{color:#ff6d7c;font-size:20px;vertical-align:middle;margin-right:4px}
.yt-source-block .inline-input button{min-width:58px;background:#d84662;color:#fff;font-weight:800}
.yt-source-block .caption{color:#c1bad0;margin-top:11px;font-size:11px}
.yt-stage{background:#121b2d;border:1px solid #445272;border-radius:13px;padding:17px;margin:0 0 20px}
.yt-stage-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.yt-stage-header strong{font-size:14px;display:block;color:#e8ebfc}
.yt-stage-header small{display:block;font-size:11px;color:#9fb2d6;padding-top:5px}
.yt-stage-tag{font-size:9px;border:1px solid #71658a;background:#261e37;border-radius:20px;padding:6px 8px;color:#c6b3e7;white-space:nowrap}
.yt-video-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(225px,.85fr);gap:16px}
.yt-video-grid .youtube-holder{margin:0;aspect-ratio:16/9;background:#080d18;overflow:hidden;border-radius:8px}
#youtubePlayerMount,.yt-video-grid iframe{display:block;width:100%;height:100%;border:0}
.yt-controls{display:flex;flex-direction:column;gap:12px;justify-content:center;min-width:0}
.yt-toggle{font-size:12px;font-weight:700;display:flex;gap:8px;align-items:center;line-height:1.35;color:#d9e5ff}
.yt-toggle input{accent-color:#9482ff;width:16px;height:16px}
.yt-controls .input-label{margin:0;line-height:1.35}
.yt-offset{display:flex;gap:4px;align-items:stretch}
.yt-offset input{min-width:0;width:65px;background:#0e1628;border:1px solid #445471;border-radius:5px;color:#fff;font-size:12px;text-align:center;padding:7px 0}
.yt-offset button{flex:1;min-width:0;padding:5px 1px;border:1px solid #3c4762;background:#253250;border-radius:5px;font-size:10px;color:#dce5ff}
.yt-note-warning{font-size:11px;line-height:1.48;padding:11px 12px;border-radius:7px;background:#392a25;border:1px solid #77543e;color:#ffcfaa;margin:0}
.yt-note-warning.has-score{background:#1b3b3a;border-color:#3c8076;color:#a6eade}
@media(max-width:1150px){.yt-video-grid{grid-template-columns:1fr}.yt-controls{justify-content:stretch}.yt-stage-tag{white-space:normal}}
@media(max-width:620px){.yt-stage{padding:11px}.yt-stage-header{align-items:flex-start;flex-direction:column}.yt-offset button{font-size:10px}}

/* Partituras 0.6 */
.sheet-panel{margin-top:24px;padding:24px}.sheet-heading{display:flex;justify-content:space-between;align-items:start;gap:18px}.sheet-heading h3{color:#f2f1ff;margin:10px 0 9px;font-size:21px;letter-spacing:-.02em}.sheet-heading p{color:#9fa8c6;font-size:12px;line-height:1.6;max-width:690px;margin:0 0 18px}.sheet-badge{white-space:nowrap;border:1px solid #514778;color:#bfaffe;border-radius:8px;padding:9px;font-size:11px;background:#201d38}.sheet-options{display:flex;gap:12px;flex-wrap:wrap;margin:4px 0 13px}.sheet-options label{display:flex;flex-direction:column;gap:7px;color:#c7cfe3;font-size:11px;font-weight:700;flex:1;min-width:175px}.sheet-options label:last-child{flex:0 0 145px}.sheet-options input{width:100%;background:#0f1629;border:1px solid #414563;color:#f5f4ff;border-radius:8px;min-height:40px;padding:9px 12px;outline:0}.sheet-options input:focus{border-color:#9886ff}.score-actions{display:flex;gap:10px;flex-wrap:wrap}.score-actions button{flex:1;min-width:145px}.sheet-disclaimer{color:#a3abc4;font-size:11px;line-height:1.6;padding:12px 0}.sheet-preview{background:#f6f7fa;border-radius:9px;min-height:170px;max-height:610px;overflow:auto;border:1px solid #dbe0ed;padding:10px;color:#26344d}.sheet-preview svg{display:block;width:100%;height:auto;max-width:none;min-width:820px}.score-empty{text-align:center;color:#67758c;padding:70px 12px;font-size:13px}.sheet-error{color:#b53b4f;font-size:12px;padding:23px}.sheet-preview::-webkit-scrollbar{height:8px;width:8px}.sheet-preview::-webkit-scrollbar-thumb{background:#aab2c6;border-radius:4px}
@media(max-width:900px){.sheet-panel{padding:16px}.sheet-options label:last-child{flex:1}.score-actions{flex-direction:column}.score-actions button{flex:auto}.sheet-heading{flex-wrap:wrap}}
