:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#173f3a;background:#f7faf9;--green:#007e70;--muted:#637b75;--mint:#e0f2ed;--line:#dfe9e5}*{box-sizing:border-box}body{margin:0}h1,h2,h3,p{margin:0}h1{font-size:2.3rem;letter-spacing:-1px}h2{font-size:1.35rem;letter-spacing:-.4px}h3{font-size:1rem}p{line-height:1.65}button,input,select,textarea{font:inherit}button{display:inline-flex;align-items:center;justify-content:center;gap:9px;cursor:pointer;background:transparent;color:#173f3a;border:0;border-radius:13px;min-height:44px;padding:10px 15px;font-weight:650}button:hover{background:#e3efea}button:disabled{opacity:.4;cursor:default}button.primary{background:var(--green);color:#fff}button.primary:hover{background:#00685c}button.outline{border:1px solid #bfd3c9}button.ghost{color:var(--green)}button:focus-visible,input:focus-visible,summary:focus-visible,textarea:focus-visible{outline:3px solid #00a38e;outline-offset:3px}.ico{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round;flex-shrink:0}.shell{min-height:100dvh;display:flex;flex-direction:column}.header{display:flex;align-items:center;gap:10px;padding:10px 25px;min-height:68px;border-bottom:1px solid var(--line);background:#f7faf9;position:sticky;top:0;z-index:3}.header h2{flex:1;font-size:1.1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.brand{letter-spacing:2px!important}.body{width:min(1080px,100%);margin:auto;padding:30px 28px;flex:1}.nav{position:sticky;bottom:0;background:#eff8f5f5;border-top:1px solid var(--line);display:flex;justify-content:center;gap:100px;padding:5px 15px calc(5px + env(safe-area-inset-bottom));z-index:3;backdrop-filter:blur(12px)}.nav button{flex-direction:column;gap:3px;min-width:110px;font-size:.8rem;color:var(--green)}.nav .active{background:#dceee7}.welcome{min-height:100dvh;display:grid;place-content:center;text-align:center;gap:22px;padding:28px}.welcome .ico{width:95px;height:95px;color:#009688;margin:auto}.welcome h1{font-size:2.7rem;letter-spacing:1px}.welcome p{color:var(--muted);font-size:1.1rem}.welcome button{min-width:220px;margin:15px auto}.muted{color:var(--muted)}.hero{background:linear-gradient(125deg,#e0f2ed,#c5e8de);padding:34px 40px;border-radius:28px;display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:25px}.eyebrow{font-size:.75rem;font-weight:750;letter-spacing:1.8px;color:#27685d}.hero h1{font-size:3.1rem;line-height:1.13;margin:20px 0 14px}.hero p{color:#38685f}.wave-art{height:160px;display:flex;gap:9px;align-items:center;justify-content:center;transform:rotate(-7deg)}.wave-art span{width:9px;border-radius:8px;background:#008e7d;opacity:.4}.section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:28px 0 16px}.section-head p{font-size:.9rem;color:var(--muted);margin-top:5px}.destinations{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.destination{background:#009688;color:white;justify-content:flex-start;min-height:110px;padding:22px;text-align:left;border-radius:20px}.destination:hover{background:#007e70}.destination .ico{width:30px;height:30px}.destination small{display:block;font-size:.8rem;opacity:.85;font-weight:400;margin-top:6px}.recents{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.recent,.file-row{border:1px solid var(--line);background:#fff;border-radius:20px;text-align:left}.recent{padding:18px;display:flex;flex-direction:column;align-items:flex-start;gap:13px;min-width:0}.visual{width:50px;height:50px;border-radius:14px;background:var(--mint);color:var(--green);display:grid;place-items:center;flex-shrink:0}.visual .ico{width:28px;height:28px}.file-info{flex:1;min-width:0}.name{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;font-weight:700;font-size:.95rem}.meta{font-size:.8rem;color:var(--muted);margin-top:6px}.badge{display:inline-block;font-size:.72rem;color:#25745f;background:#e3f3ed;border-radius:20px;padding:3px 9px;margin-top:8px}.empty{text-align:center;padding:30px;border:1px dashed #bfd4cb;border-radius:22px;color:var(--muted);grid-column:1/-1}.empty .ico{width:35px;height:35px;color:var(--green);margin-bottom:12px}.empty p{margin-top:8px;font-size:.9rem}.install{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:25px;padding:15px 0;border-top:1px solid var(--line);color:var(--muted);font-size:.85rem}.tools{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-top:26px}.tool{padding:23px;background:#fff;border:1px solid var(--line);border-radius:22px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:17px;text-align:left;min-height:220px}.tool p{color:var(--muted);font-size:.9rem;font-weight:400}.library-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.search{margin:20px 0;display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:4px 16px}.search input{padding:12px 0;border:0;background:none;width:100%;outline:none}.filters{display:flex;gap:8px;margin-bottom:20px}.filters button{border:1px solid var(--line);border-radius:22px;min-height:36px;font-size:.85rem}.filters .active{background:var(--mint)}.file-row{display:flex;gap:14px;padding:15px;margin-bottom:10px;align-items:center}.file-row .open{text-align:left;display:block;flex:1;min-width:0;padding:0}.storage{color:var(--muted);font-size:.8rem;line-height:1.6;margin-top:25px}.detail{max-width:650px;margin:auto}.detail-head{text-align:center;padding:20px}.detail-head .visual{width:76px;height:76px;margin:0 auto 20px}.detail-head h1{font-size:1.8rem;overflow-wrap:anywhere}.detail-head p{margin-top:10px}.actions{display:flex;flex-direction:column;gap:12px;margin-top:25px}.actions button{justify-content:flex-start;min-height:56px;padding:14px 20px}.playerbox{background:white;padding:18px;border:1px solid var(--line);border-radius:20px}.transport{display:flex;align-items:center;justify-content:center;gap:8px;margin:10px 0}.transport .primary{border-radius:50%;width:49px;height:49px;padding:10px}.transport time{font-size:.8rem;min-width:42px;font-variant-numeric:tabular-nums}input[type=range]{accent-color:var(--green)}.seek{width:100%}.editor{height:100dvh;min-height:0}.editor .header{min-height:52px;flex-shrink:0}.workspace{width:100%;max-width:1450px;margin:0 auto;padding:10px 15px;display:flex;flex-direction:column;gap:6px;flex:1;min-height:0}.filename{display:flex;justify-content:space-between;gap:12px;font-size:.8rem}.filename span:first-child{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.wave{position:relative;flex:1;background:#101514;border-radius:16px;min-height:110px;overflow:hidden;touch-action:none}.wave canvas{position:absolute;inset:0;width:100%;height:100%}.wave .label{position:absolute;top:7px;left:10px;color:#80b2a2;font-size:.65rem;pointer-events:none}.toolbar{display:flex;flex-direction:column;gap:5px;flex-shrink:0}.zoom{display:flex;gap:12px;align-items:center}.zoom input{flex:1;min-width:0;height:25px}.zoom .ico{width:18px}.selection{text-align:center}.selection button{font-size:.8rem;min-height:27px;padding:3px 10px}.edit-buttons{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}.edit-buttons button{border:1px solid #cbdcd4;min-height:35px;padding:5px 12px;font-size:.82rem}.edit-buttons .ico{width:17px;height:17px}.edit-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;max-width:700px;width:100%;margin:auto}.edit-footer .transport{margin:0}.edit-footer .transport .primary{width:38px;height:38px}.editor .nav{padding:2px 10px calc(2px + env(safe-area-inset-bottom));gap:45px;flex-shrink:0}.editor .nav button{flex-direction:row;min-height:33px;padding:3px 12px}.transcript{max-width:820px;margin:auto}.transcript h2{margin-bottom:12px}.transcript details{margin:12px 0}.transcript summary{color:var(--green);cursor:pointer;padding:8px 0;font-weight:650}.text-actions{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}.text-actions button{font-size:.85rem}.document{background:#fff;border:1px solid var(--line);border-radius:20px;padding:30px;min-height:50vh}.segment{margin-bottom:24px;padding:6px 8px;border-radius:10px}.segment.active{background:#e6f4ed}.segment p{font-size:1.08rem;line-height:1.8;white-space:pre-wrap;color:#253c34}.timestamp{color:var(--green);font-size:.85rem;min-height:34px;padding:0}.timestamp .ico{width:18px;height:18px}.document textarea{border:0;width:100%;min-height:50vh;font-size:1.08rem;line-height:1.8;color:#253c34;background:transparent;resize:vertical}.form{display:grid;gap:15px}.form label{display:grid;gap:8px;font-weight:600;font-size:.9rem}.form input,.form select{width:100%;padding:11px;background:#fff;border:1px solid #bed2c8;border-radius:10px;color:#173f3a}.notice{background:#e8f3ee;border:1px solid #d4e6dc;border-radius:14px;padding:14px 18px;line-height:1.6;font-size:.9rem;color:#365d51;margin:18px 0}.panel{background:#fff;border:1px solid var(--line);border-radius:22px;padding:25px;margin-top:20px}.full{width:100%}video{width:100%;max-height:50vh;border-radius:15px;background:#101514}.menu-list{display:grid;gap:8px}.menu-list button{justify-content:flex-start}dialog{border:1px solid var(--line);border-radius:23px;padding:26px;width:min(92vw,480px);color:#173f3a;box-shadow:0 20px 80px #123c3433}dialog::backdrop{background:#102b2666;backdrop-filter:blur(3px)}dialog h2{margin-bottom:16px}dialog p{margin-bottom:15px}dialog form{margin-top:15px;text-align:right}#toast{position:fixed;bottom:85px;left:50%;transform:translateX(-50%);background:#173f3a;color:#fff;border-radius:14px;padding:13px 22px;z-index:100;max-width:90vw;display:none;font-size:.9rem}.busy{position:fixed;inset:0;background:#f7faf9ef;z-index:20;display:grid;place-content:center;text-align:center;padding:25px}.spinner{width:35px;height:35px;border:3px solid #cde7dc;border-top-color:var(--green);border-radius:50%;animation:spin 1s linear infinite;margin:0 auto 20px}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:850px){.tools{grid-template-columns:repeat(2,1fr)}.recents{grid-template-columns:1fr}.recent{flex-direction:row;align-items:center}.hero{padding:28px}.hero h1{font-size:2.5rem}}@media(max-width:600px){.body{padding:22px 18px}.header{padding:8px 12px;min-height:60px}.hero{grid-template-columns:1fr;gap:12px;padding:25px}.hero h1{font-size:2.2rem;margin:16px 0 10px}.wave-art{height:48px;transform:none;justify-content:flex-start;gap:6px}.wave-art span{height:var(--h)!important;width:8px}.destinations{gap:9px}.destination{flex-direction:column;align-items:flex-start;padding:15px 12px;min-height:112px;justify-content:space-between;border-radius:17px}.destination strong{font-size:.78rem}.destination small{display:none}.destination .ico{width:26px;height:26px}.nav{gap:45px}.tool{padding:18px;min-height:210px}.tool p{font-size:.85rem}.document{padding:18px 13px}.workspace{padding:8px}.edit-buttons button{padding:6px 9px}.edit-footer button{padding:8px}.library-head h1{font-size:1.8rem}.transport time{min-width:35px}}@media(orientation:landscape) and (max-height:550px){.editor .header{min-height:43px;padding:2px 15px}.workspace{padding:4px 15px;gap:3px}.wave{min-height:65px;border-radius:10px}.toolbar{gap:1px}.zoom{height:22px}.selection button{min-height:22px}.edit-buttons button{min-height:29px;padding:3px 9px;font-size:.75rem}.edit-footer .transport .primary{width:30px;height:30px}.edit-footer button{min-height:30px;padding:4px 10px}.editor .nav button{min-height:27px}.editor .nav .ico{height:17px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
/* Constrain intrinsic text width in recent-file buttons, including long filenames. */
.recent{overflow:hidden;min-width:0}.recent .file-info{width:100%;max-width:100%;min-width:0;overflow:hidden;align-self:stretch}.recent .name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;white-space:normal;overflow-wrap:anywhere;line-height:1.4;overflow:hidden}.recent .meta{display:block;overflow-wrap:anywhere}.destination{min-width:0}.destination>span{min-width:0;max-width:100%;overflow-wrap:anywhere}.tool{min-width:0;overflow-wrap:anywhere}

.wave canvas{cursor:crosshair;user-select:none;-webkit-user-select:none;touch-action:none}

.header .brand-link{padding:4px 0;min-height:44px;font-size:inherit;font-weight:inherit;letter-spacing:inherit;color:inherit}.header .brand-link:hover{background:transparent;color:var(--green)}

/* Keep navigation and playback in their own grid rows; never overlay the tools. */
body.editor-open{overflow:hidden;overscroll-behavior:none}
.shell.editor{display:grid;grid-template-rows:auto minmax(0,1fr) auto;height:var(--editor-height,100dvh);min-height:0;overflow:hidden;padding-top:env(safe-area-inset-top);padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
.editor .header{position:static;min-width:0;z-index:auto}
.editor .workspace{display:grid;grid-template-rows:auto minmax(56px,1fr) minmax(0,auto);height:100%;min-height:0;overflow:hidden;align-self:stretch}
.editor .wave{min-height:0;min-width:0}
.editor .toolbar{display:grid;grid-template-rows:minmax(0,auto) auto;min-height:0;max-height:min(260px,calc(var(--editor-height,100dvh)*.55));overflow:hidden}
.editor .edit-scroll{min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;display:flex;flex-direction:column;gap:4px;padding-bottom:3px}
.editor .edit-footer{position:static;min-width:0;flex-shrink:0;background:#f7faf9;padding-top:3px}
.editor .nav{position:static;bottom:auto;min-height:0;z-index:auto;margin:0}
@media(orientation:landscape) and (max-height:550px){
 .editor .header{min-height:40px;padding-top:2px;padding-bottom:2px}
 .editor .header button{min-height:34px;height:34px;padding:5px 10px}
 .editor .workspace{padding-top:3px;padding-bottom:3px;gap:2px;grid-template-rows:auto minmax(44px,1fr) minmax(0,auto)}
 .editor .toolbar{max-height:min(136px,calc(var(--editor-height,100dvh)*.48));gap:1px}
 .editor .edit-scroll{gap:1px}
 .editor .edit-footer{padding-top:1px}
 .editor .nav{gap:35px;padding-top:0;padding-bottom:env(safe-area-inset-bottom)}
 .editor .nav button{min-height:27px;padding-top:1px;padding-bottom:1px}
}
/* Prevent layout overflow and focus-induced zoom in iPhone WebKit. */
html{width:100%;max-width:100%;overflow-x:hidden;overscroll-behavior-x:none;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{width:100%;max-width:100%;min-width:0;overflow-x:hidden;overscroll-behavior-x:none}
@supports(overflow:clip){html,body{overflow-x:clip}}
#app,.shell,.body,.detail,.transcript,.panel,.workspace,.toolbar,.edit-scroll,.file-info{min-width:0;max-width:100%}
#app,.shell{width:100%}
.header h2,.filename,.filename>span,.section-head>div,.form,.form>label{min-width:0}
.panel,.notice,.detail-head h1{overflow-wrap:anywhere}
.form input,.form select,.form textarea,input[type=search],textarea{font-size:max(1rem,16px);min-width:0;max-width:100%}
button.full,.form input,.form select,.form textarea{box-sizing:border-box;width:100%}
dialog{max-width:calc(100% - 24px);max-height:calc(100dvh - 24px);overflow-y:auto;overflow-x:hidden}
.hero{overflow:hidden}
@media(max-width:600px){
 .hero{grid-template-columns:minmax(0,1fr)}
 .tools{grid-template-columns:repeat(2,minmax(0,1fr))}
 .destinations{grid-template-columns:repeat(3,minmax(0,1fr))}
 .recents{grid-template-columns:minmax(0,1fr)}
 .install,.section-head{flex-wrap:wrap}
 .nav{gap:clamp(8px,8vw,45px)}
 .nav button{min-width:0;max-width:calc(50% - 5px)}
}
.detail{max-width:min(650px,100%)}.transcript{max-width:min(820px,100%)}.editor .workspace{max-width:min(1450px,100%)}
/* Library organization and batch actions. */
.filters{flex-wrap:wrap}.library-head{flex-wrap:wrap}.library-selection{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:18px 0}.selection-actions{display:flex;flex-wrap:wrap;gap:6px}.library-selection [role=status]{font-weight:700}.file-row.is-selected{background:#e4f4ed;border-color:var(--green)}.file-check{width:44px;flex-shrink:0;padding:8px;border:1px solid #bed2c8}.file-check[aria-pressed=true]{background:var(--green);color:#fff}.check-box{width:20px;height:20px;border:2px solid #688c80;border-radius:5px}.file-actions{display:flex;gap:2px;flex-shrink:0}.file-actions button{padding:9px}.tag-chips{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px;max-width:100%;min-width:0}.tag-chip{display:inline-block;border-radius:8px;padding:4px 8px;background:#edf4f1;color:#336357;font-size:.8rem;font-weight:500;overflow-wrap:anywhere;max-width:100%;white-space:normal}.detail-head .tag-chips{justify-content:center}.tag-filter{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-weight:600;font-size:.9rem}.tag-filter select{flex:1;min-width:0;max-width:100%;padding:10px;border:1px solid #bed2c8;border-radius:12px;background:#fff;color:#173f3a;font-size:16px}.danger{background:#a62e3d;color:#fff}.danger:hover{background:#862532}.dialog-filename,.delete-list li{overflow-wrap:anywhere}.delete-list{padding-left:22px;max-height:28dvh;overflow-y:auto;margin:16px 0 22px}.delete-list li{margin:8px 0}.empty-import{display:flex;width:100%;flex-direction:column;gap:8px;font-weight:400}.empty-import h3{color:#173f3a}.empty-import .empty-cta{display:flex;align-items:center;gap:7px;color:var(--green);font-weight:650;margin-top:8px}.empty-import .empty-cta .ico{width:20px;height:20px;margin:0}.file-row .open:focus-visible{outline-offset:4px}
@media(max-width:600px){.file-row{gap:8px;padding:12px}.file-row .visual{width:38px;height:38px}.file-actions{flex-direction:column}.file-actions button{min-height:38px;width:38px;padding:7px}.file-actions .ico{width:21px;height:21px}.library-selection{align-items:stretch}.selection-actions{width:100%}.selection-actions button{flex:1;font-size:.85rem;padding:9px}.library-head h1{font-size:1.65rem}}
/* One shared green for Inicio and the main action buttons. */
:root{--button-green:#009688}
button.primary,.destination{background:var(--button-green)}
button.primary:hover,.destination:hover{background:#007e70}

.export-options{display:grid;gap:12px;margin:18px 0}.share-steps{padding-left:24px;line-height:1.7}.share-steps li{margin:12px 0}
