@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;600;700&family=Inter:wght@400;500;600;650;700&display=swap');
:root{color-scheme:light;--ink:#17213b;--muted:#69738a;--primary:#4338ca;--primary-dark:#3428ac;--line:#e1e6ef;--surface:#fff;--background:#f5f7fb;--red:#d52d4a;font-family:Inter,Arial,sans-serif;font-size:16px;color:var(--ink);background:var(--background)}
*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}button,summary,a,textarea{outline-offset:4px}button:focus-visible,summary:focus-visible,a:focus-visible,textarea:focus-visible{outline:3px solid #a5a3ff}button[hidden],[hidden]{display:none!important}svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;width:21px;height:21px;flex-shrink:0}a{color:var(--primary)}.topbar{background:#fff;border-bottom:1px solid var(--line);padding:22px max(28px,calc((100vw - 1280px)/2));display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:13px;text-decoration:none;color:var(--ink);font-size:1.15rem;font-weight:650;line-height:1.5}.brand-mark{display:flex;align-items:center;justify-content:center;background:var(--primary);color:#fff;width:44px;height:44px;border-radius:13px;font-family:Heebo,Arial,sans-serif;font-size:1.6rem}.brand small{display:block;color:var(--muted);font-size:.82rem;font-weight:400}.privacy{display:flex;align-items:center;gap:9px;font-size:.875rem;color:#506079}.privacy svg{color:var(--primary)}main{max-width:1280px;margin:0 auto;padding:40px 28px 24px}.workspace-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.eyebrow{font-size:.75rem;letter-spacing:.13em;font-weight:700;color:var(--primary);margin:0 0 8px}h1{font-size:1.85rem;letter-spacing:-.035em;line-height:1.25;margin:0;font-weight:650}.language-label{font-family:Heebo,Arial,sans-serif;font-size:1.05rem;border:1px solid #dcdaf5;border-radius:8px;padding:7px 14px;color:var(--primary);background:#eeedff}.workspace{display:grid;grid-template-columns:minmax(320px,390px) minmax(0,1fr);gap:22px;align-items:stretch}.input-panel,.output-panel{border:1px solid var(--line);border-radius:18px;background:var(--surface);padding:24px;box-shadow:0 3px 15px #26345004}.panel-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:23px}h2{font-size:1.05rem;margin:0;font-weight:650}.step-label{font-size:.8rem;font-weight:600;color:#929ab0;border:1px solid var(--line);border-radius:7px;padding:4px 6px}.muted{font-size:.875rem;color:var(--muted);line-height:1.5}.panel-heading p{margin:7px 0 0}.drop-zone{border:1.5px dashed #cdd4e3;background:#f9faff;border-radius:12px;text-align:center;padding:23px 14px 20px;transition:border-color .15s,background .15s}.drop-zone.dragging{background:#eeedff;border-color:var(--primary)}.upload-icon{width:30px;height:30px;color:var(--primary);margin:0 0 3px}.drop-zone p{margin:8px 0 14px;font-size:.94rem;font-weight:500}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid transparent;border-radius:9px;padding:11px 16px;min-height:44px;line-height:1.2;font-size:.9rem;font-weight:600;transition:background .15s,transform .15s}.button:not(:disabled):active{transform:translateY(1px)}.secondary{background:white;border-color:#d4dce9;color:var(--ink)}.secondary:hover:not(:disabled){background:#f3f5fb}.primary{background:var(--primary);color:#fff}.primary:hover:not(:disabled){background:var(--primary-dark)}.file-help{display:block;font-size:.75rem;line-height:1.65;color:var(--muted);margin-top:13px}.separator{display:flex;align-items:center;gap:12px;color:#7a859c;font-size:.75rem;margin:22px 0}.separator:before,.separator:after{content:"";height:1px;background:var(--line);flex:1}.recording-top{display:flex;align-items:center;justify-content:space-between;font-size:.875rem}.timer{font-variant-numeric:tabular-nums;color:var(--muted)}.recording-top.is-recording{color:var(--red)}#waveform{width:100%;height:45px;display:block;margin:8px 0 12px}.recording-actions{display:flex;gap:8px}.record-button{width:100%;color:var(--primary);background:#eeedff;border-color:#e1dffd}.record-button:hover:not(:disabled){background:#e3e0ff}.stop-button{background:#fff0f3;color:#b3213b;border-color:#ffd2dc;flex:1}#pause{flex:1}.clip{border-top:1px solid var(--line);padding-top:19px;margin-top:21px}.clip-heading{display:flex;align-items:center;gap:10px;justify-content:space-between;margin-bottom:11px}#clip-name{font-weight:500;font-size:.875rem;word-break:break-word}.clip audio{width:100%;height:38px;margin-bottom:7px}.text-button{padding:6px 0;background:none;border:0;color:var(--primary);font-size:.85rem;font-weight:500;min-height:32px}.text-button:hover{text-decoration:underline}.transcribe-button{width:100%;margin-top:24px;padding:14px 10px}.first-use{font-size:.8rem;color:var(--muted);line-height:1.65;margin:14px 0 0}.progress-area{margin-top:18px}.progress-heading{font-size:.86rem;display:flex;align-items:center;justify-content:space-between;gap:10px}progress{appearance:none;display:block;width:100%;height:6px;border:none;border-radius:100px;overflow:hidden;background:#e8eaf5;margin-top:7px}progress::-webkit-progress-bar{background:#e8eaf5}progress::-webkit-progress-value{background:var(--primary);border-radius:100px}progress::-moz-progress-bar{background:var(--primary)}.progress-area p{color:var(--muted);font-size:.8rem;line-height:1.5;margin:9px 0 0}.error{margin-top:18px;border:1px solid #f3bcc7;background:#fff3f5;border-radius:8px;padding:12px;font-size:.88rem;line-height:1.5;color:#9d1733}.output-panel{display:flex;flex-direction:column;min-height:635px}.editor-wrap{flex:1;position:relative;display:flex;min-height:330px}.editor-wrap textarea{border:0;border-radius:7px;resize:vertical;width:100%;min-height:330px;flex:1;padding:8px 0;font-family:Heebo,Arial,sans-serif;font-size:1.35rem;line-height:1.95;color:var(--ink);background:transparent;position:relative;z-index:1}.editor-wrap textarea::placeholder{color:#bbc2d1}.empty-state{position:absolute;inset:105px 0 auto;text-align:center;display:flex;flex-direction:column;align-items:center;gap:15px;color:#8f99ac;pointer-events:none;font-size:.875rem}.empty-state svg{width:54px;height:54px;color:#c8cedd;stroke-width:1.2}.editor-footer{display:flex;gap:10px;justify-content:space-between;padding:16px 0;border-top:1px solid var(--line);margin-top:15px}.output-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.output-actions .text-button{margin-left:auto}.review-note{font-size:.8rem;color:var(--muted);line-height:1.65;margin:17px 0 0}.footer{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;font-size:.8rem;color:var(--muted);padding:23px 2px;line-height:1.65}.footer details{max-width:540px}.footer summary{cursor:pointer;text-align:right;color:#4f5870}.footer p{margin:10px 0}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;padding:13px 22px;border-radius:10px;box-shadow:0 5px 25px #17213b25;z-index:10;font-size:.9rem}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.busy .drop-zone{opacity:.55}.busy #transcribe{opacity:.7}@media(max-width:900px){.workspace{grid-template-columns:minmax(290px,350px) minmax(0,1fr);gap:16px}.input-panel,.output-panel{padding:20px}.topbar{padding:20px 24px}.privacy{font-size:.78rem}.brand small{font-size:.75rem}main{padding:30px 24px}.output-actions{gap:8px}.output-actions .button{padding:10px 11px}.output-actions .text-button{margin-left:0}}@media(max-width:720px){.topbar{padding:17px 20px}.brand{font-size:1rem}.brand small{display:none}.privacy{max-width:135px;font-size:.75rem;line-height:1.4;gap:6px}.privacy svg{width:18px;height:18px}.brand-mark{width:37px;height:37px;border-radius:10px}main{padding:27px 16px 15px}.workspace{grid-template-columns:1fr;gap:18px}.workspace-heading{margin-bottom:21px}h1{font-size:1.55rem}.eyebrow{font-size:.7rem}.input-panel,.output-panel{padding:21px}.output-panel{min-height:480px}.editor-wrap,.editor-wrap textarea{min-height:270px}.footer{flex-direction:column;gap:12px}.footer summary{text-align:left}.editor-wrap textarea{font-size:1.25rem}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.topbar-tools{display:flex;align-items:center;gap:22px}
.tabs{display:flex;align-items:center;gap:3px;background:#f4f5fb;border:1px solid #e3e6f0;border-radius:10px;padding:3px}.tab{border:0;background:transparent;color:#69738a;border-radius:7px;padding:8px 12px;min-height:36px;font-size:.82rem;font-weight:600;white-space:nowrap}.tab:hover{color:var(--ink);background:#fff}.tab.is-active{background:#fff;color:var(--primary);box-shadow:0 1px 4px #17213b12}.tab-count{display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:19px;margin-left:3px;padding:0 5px;border-radius:10px;background:#e8e8ff;color:var(--primary);font-size:.7rem;font-variant-numeric:tabular-nums}
.correction-mode{border:1px solid #d9d5ff;background:#f4f2ff;border-radius:11px;padding:13px 14px;margin:-2px 0 17px}.correction-mode-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--primary);font-size:.9rem;font-weight:650}.correction-mode p{font-size:.79rem;color:#69738a;line-height:1.5;margin:9px 0 5px}.correction-mode>strong{display:block;font-family:Heebo,Arial,sans-serif;font-size:1.1rem;line-height:1.55;color:var(--ink);padding:7px 9px;background:#fff;border-radius:7px;overflow-wrap:anywhere}.correction-preview{border-top:1px solid #dedbfa;margin-top:12px;padding-top:11px}.correction-preview-label{display:block;color:#69738a;font-size:.75rem;margin-bottom:4px}.correction-preview strong{display:block;font-family:Heebo,Arial,sans-serif;font-size:1.08rem;line-height:1.55;color:#1b7b58;padding:7px 9px;background:#edfbf5;border:1px solid #c9efdf;border-radius:7px;overflow-wrap:anywhere}.correction-preview-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:11px}.correction-preview-actions .button{min-height:38px;padding:9px 12px;font-size:.82rem}
.history-view{border:1px solid var(--line);border-radius:18px;background:var(--surface);padding:29px 31px;min-height:635px;box-shadow:0 3px 15px #26345004}.history-view-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:26px}.history-view-heading h1{margin:0}.history-intro{margin:8px 0 0;max-width:590px}.history-view-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;justify-content:flex-end}.history-view-actions .button{min-height:40px;padding:9px 13px;font-size:.82rem}.history-empty{display:flex;flex-direction:column;align-items:center;text-align:center;padding:95px 18px 75px;color:#8f99ac}.history-empty svg{width:55px;height:55px;color:#c8cedd;stroke-width:1.2;margin-bottom:12px}.history-empty h2{font-size:1.05rem;color:var(--ink);margin:0 0 7px}.history-empty p{font-size:.875rem;line-height:1.55;margin:0}.history-list{display:grid;gap:13px}.history-card{border:1px solid var(--line);border-radius:12px;padding:17px 18px;background:#fff}.history-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.history-card-source{font-size:.78rem;color:var(--muted);margin:0 0 3px;line-height:1.5}.history-card-date{font-size:.75rem;color:#8c95a8;margin:0}.history-card-delete{color:#a72a42}.history-card-text{font-family:Heebo,Arial,sans-serif;font-size:1.12rem;line-height:1.65;color:var(--ink);margin:13px 0 9px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:6.7em;overflow:hidden}.history-card-meta{font-size:.75rem;color:var(--muted);margin:0 0 13px}.history-card-actions{display:flex;align-items:center;gap:11px;flex-wrap:wrap}.history-card-actions .button{min-height:36px;padding:8px 11px;font-size:.79rem}.history-card-actions .text-button{font-size:.79rem}.history-card-details{border-top:1px solid #edf0f5;margin-top:14px;padding-top:12px}.history-card-details summary{cursor:pointer;color:var(--primary);font-size:.8rem;font-weight:600}.history-original{font-family:Heebo,Arial,sans-serif;font-size:1rem;line-height:1.65;color:var(--ink);padding:9px 10px;background:#f8f9fc;border-radius:8px;margin:10px 0;white-space:pre-wrap;overflow-wrap:anywhere}.history-version{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border-top:1px solid #edf0f5;padding:10px 0}.history-version:first-of-type{border-top:0}.history-version-copy{font-family:Heebo,Arial,sans-serif;font-size:.98rem;line-height:1.55;color:var(--ink);margin:0;white-space:pre-wrap;overflow-wrap:anywhere;flex:1}.history-version-label{display:block;font-family:Inter,Arial,sans-serif;color:var(--muted);font-size:.72rem;margin-bottom:3px}.history-version .text-button{flex-shrink:0;font-size:.76rem}.busy .tabs{pointer-events:none;opacity:.65}
@media(max-width:900px){.topbar-tools{gap:12px}.tab{padding-left:9px;padding-right:9px}.history-view{padding:24px}.history-view-heading{gap:16px}.history-view-actions{gap:8px}}
@media(max-width:720px){.topbar-tools{align-items:flex-end;flex-direction:column;gap:7px}.privacy{max-width:none}.tabs{align-self:flex-end}.history-view{padding:21px;min-height:480px}.history-view-heading{display:block}.history-view-actions{justify-content:flex-start;margin-top:17px}.history-empty{padding:70px 18px 55px}.history-card{padding:15px}.history-card-actions{gap:8px}.correction-preview-actions .button{flex:1}.correction-mode{margin-bottom:14px}}
.account-tools{display:flex;align-items:center;gap:13px}.account-tools span{max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.78rem;color:var(--muted)}
body:not(.authenticated) .topbar-tools .tabs,body:not(.authenticated) .topbar-tools .privacy{display:none}
.auth-gate{min-height:calc(100vh - 120px);display:flex;justify-content:center;align-items:center;padding:48px 20px 66px;background:linear-gradient(180deg,#f5f7fc 0%,#fff 100%)}.auth-card{width:min(100%,430px);padding:35px 38px 31px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 12px 38px #2634500d}.auth-mark{width:47px;height:47px;border-radius:13px;background:#5a48d6;color:#fff;display:grid;place-items:center;font-family:Heebo,Arial,sans-serif;font-size:1.25rem;margin-bottom:21px}.auth-card h1{font-size:1.65rem;line-height:1.2;margin:4px 0 10px}.auth-intro{color:var(--muted);font-size:.94rem;line-height:1.58;margin:0 0 23px}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:4px;background:#f1f2f8;border-radius:9px;margin-bottom:22px}.auth-tab{border:0;background:transparent;color:var(--muted);border-radius:7px;padding:9px 8px;font:600 .82rem Inter,Arial,sans-serif;cursor:pointer}.auth-tab.is-active{background:#fff;color:var(--primary);box-shadow:0 1px 4px #26345012}.auth-form{display:grid;gap:8px}.auth-form label{font-size:.79rem;font-weight:650;color:var(--ink);margin-top:3px}.auth-form input{width:100%;border:1px solid #cfd5e2;border-radius:8px;padding:11px 12px;font:16px Inter,Arial,sans-serif;color:var(--ink);background:#fff;outline:none}.auth-form input:focus{border-color:var(--primary);box-shadow:0 0 0 3px #6554e820}.auth-submit{width:100%;margin-top:7px}.auth-status{font-size:.84rem;line-height:1.5;color:#247754;background:#edf9f3;border:1px solid #c8ead9;border-radius:8px;padding:10px 11px;margin:13px 0 0}.auth-note{font-size:.75rem;line-height:1.55;color:#8b94a7;margin:22px 0 0}.auth-card .error{margin-top:7px}.auth-gate[hidden]{display:none!important}
body.authenticated .auth-gate{display:none}body.authenticated #app-shell{display:block}
textarea#transcript{direction:rtl;unicode-bidi:plaintext;text-align:right}
.output-actions{align-items:center}.correction-button{order:0}.output-actions #undo-replacement{order:1}.output-actions #copy{order:2}.output-actions #download{order:3}.output-actions #restore{order:4}
.language-select{display:block;width:100%;margin-top:14px;border:1px solid #d4dce9;border-radius:9px;background:#fff;color:var(--ink);padding:11px 12px;min-height:44px;font-size:.9rem;font-weight:600}
@media(max-width:720px){.auth-card{padding:29px 22px 26px}.account-tools{gap:8px}.account-tools span{max-width:150px}}
.dialog-backdrop{position:fixed;inset:0;z-index:20;display:grid;place-items:center;padding:20px;background:#17213b66}.dialog-card{width:min(100%,480px);background:#fff;border:1px solid var(--line);border-radius:16px;padding:26px;box-shadow:0 18px 60px #17213b33}.dialog-card h2{font-size:1.2rem;margin:0 0 10px}.dialog-card p{color:var(--muted);line-height:1.55;margin:0}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap;margin-top:22px}.dialog-actions .button{min-height:40px}.dialog-backdrop[hidden]{display:none!important}
