@font-face{font-family:Vazirmatn;src:url('/static/fonts/Vazirmatn-Regular.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:Vazirmatn;src:url('/static/fonts/Vazirmatn-Bold.woff2') format('woff2');font-weight:700;font-display:swap}
:root{font-family:Vazirmatn,Tahoma,sans-serif;color:#0c2148;background:#fff;--blue:#2856ee;--navy:#0c2148;--muted:#64728a;--line:#dfe5ef;--soft:#f7f9fc;--green:#0eaa65}
*{box-sizing:border-box}body{margin:0;background:#fff}.page{width:min(920px,calc(100% - 32px));margin:0 auto;padding:38px 0 52px}.brand{display:flex;align-items:center;justify-content:center;gap:14px;font-size:34px}.brand svg{width:96px;height:34px}.brand path,.flow-wave path{fill:none;stroke:var(--blue);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.intro{text-align:center;margin:52px 0 34px}.intro h1{font-size:38px;letter-spacing:-1px;margin:0 0 12px}.intro p{font-size:17px;color:var(--muted);margin:0}.input-panel,.output-panel{border:1px solid var(--line);border-radius:16px;padding:28px 30px;background:#fff;box-shadow:0 12px 32px rgba(20,37,67,.07)}.label-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.label-row label,.output-panel h2{font-weight:700;font-size:17px}.label-row span{font-size:12px;color:var(--muted)}textarea{width:100%;min-height:210px;resize:vertical;border:1.5px solid #b9c4d5;border-radius:12px;padding:20px;font:16px/2 Vazirmatn,Tahoma,sans-serif;color:var(--navy);outline:0;transition:border-color .2s,box-shadow .2s}textarea:focus{border-color:var(--blue);box-shadow:0 0 0 4px rgba(40,86,238,.09)}button{width:100%;height:62px;margin-top:18px;border:0;border-radius:12px;background:var(--blue);color:#fff;font:700 17px Vazirmatn,Tahoma,sans-serif;display:flex;align-items:center;justify-content:center;gap:10px;cursor:pointer;box-shadow:0 9px 20px rgba(40,86,238,.2);transition:transform .15s,opacity .15s}button:hover:not(:disabled){transform:translateY(-1px)}button:disabled{opacity:.48;cursor:not-allowed;box-shadow:none}.button-wave{font-size:23px}.error{color:#b52b23;font-size:13px;margin-top:10px;display:none}.error:not(:empty){display:block}.flow-wave{height:92px;display:flex;align-items:center}.flow-wave svg{width:100%;height:70px}.flow-wave path{stroke-width:1.6;opacity:.65}.output-panel h2{margin:0 0 18px}.output-panel audio{width:100%;height:54px}.download{height:56px;margin-top:18px;border:1.5px solid var(--blue);border-radius:11px;color:var(--blue);display:flex;align-items:center;justify-content:center;text-decoration:none;font-weight:700}.model-status{text-align:center;margin-top:28px}.ready-line{display:flex;align-items:center;justify-content:center;gap:9px;color:#86680c}.status-dot{width:13px;height:13px;border-radius:50%;background:#e4ab1c;box-shadow:0 0 0 5px rgba(228,171,28,.12)}.model-status.ready .ready-line{color:var(--green)}.model-status.ready .status-dot{background:var(--green);box-shadow:0 0 0 5px rgba(14,170,101,.1)}.model-status.error .ready-line{color:#b52b23}.model-status.error .status-dot{background:#d83a30}.model-status p{font-size:12px;color:var(--muted);margin:8px 0 0}@media(max-width:640px){.page{width:min(100% - 20px,920px);padding-top:24px}.brand{font-size:28px}.intro{margin:38px 0 26px}.intro h1{font-size:28px}.intro p{font-size:14px}.input-panel,.output-panel{padding:20px 16px;border-radius:14px}textarea{min-height:190px;padding:15px}.flow-wave{height:72px}.model-status p{line-height:1.8}}
.continuity-note{margin:9px 2px 0;color:var(--muted);font-size:12px;line-height:1.8}.progress-panel{margin-top:20px;padding:18px;border:1px solid #d7e0ff;border-radius:12px;background:#f7f9ff}.progress-meta{display:flex;align-items:center;justify-content:space-between;gap:16px}.progress-meta strong{font-size:14px}.progress-meta span{direction:ltr;font-size:20px;font-weight:700;color:var(--blue);font-variant-numeric:tabular-nums}.progress-track{height:12px;margin-top:13px;border-radius:99px;background:#e2e8f8;overflow:hidden}.progress-bar{width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#2856ee,#4f7bff);transition:width .4s ease}.progress-panel p{margin:10px 0 0;color:var(--muted);font-size:12px}.progress-panel.failed{border-color:#f0c9c6;background:#fff8f7}.progress-panel.failed .progress-meta span{color:#b52b23}.progress-panel.complete{border-color:#bee8d4;background:#f5fcf8}.progress-panel.complete .progress-bar{background:var(--green)}
@media(max-width:640px){.progress-panel{padding:15px}.progress-meta span{font-size:18px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
