*{box-sizing:border-box;margin:0;padding:0}html,body{height:100%;margin:0}body{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--text);display:flex;flex-direction:column;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}h1,h2,h3,h4{color:var(--text-bright);font-weight:700;letter-spacing:-.02em}h2{font-size:20px;margin-bottom:12px}h3{font-size:18px;margin-bottom:10px}h4{font-size:16px;margin-bottom:8px}header{padding:14px 24px;display:flex;align-items:center;justify-content:space-between}header .brand{display:flex;align-items:center;gap:12px;font-weight:700;color:#fff;transition:all .2s ease;padding:8px 12px;border-radius:8px}header .brand:hover{background:#ffffff0d;transform:translate(2px)}header .brand strong{color:#bfdbfe;font-size:18px;letter-spacing:-.02em;text-shadow:0 0 20px rgba(59,130,246,.4);font-weight:700}header .brand .muted{color:#d1d5db;font-weight:600;font-size:16px}header .dot{width:28px;height:28px;border-radius:7px;background:linear-gradient(135deg,#d91224,#e63946,#fff,#1e90ff,#0052a1);flex-shrink:0;box-shadow:0 2px 8px #d912244d,0 0 12px #0052a133;position:relative;animation:glow 3s ease-in-out infinite}@keyframes glow{0%,to{box-shadow:0 2px 8px #d912244d,0 0 12px #0052a133}50%{box-shadow:0 2px 12px #d9122480,0 0 20px #0052a166}}header .dot:after{content:"";position:absolute;inset:3px;border-radius:5px;background:linear-gradient(225deg,rgba(255,255,255,.3),transparent);pointer-events:none}.language-selector{position:relative;display:inline-block;margin-right:12px}.btn-lang{background:#ffffff1f;border:1px solid rgba(255,255,255,.25);border-radius:8px;padding:7px 12px;cursor:pointer;transition:all .2s ease;box-shadow:0 2px 8px #0003;display:inline-flex;align-items:center;gap:7px;white-space:nowrap}.btn-lang .lang-icon{color:#1f2937;flex-shrink:0}.btn-lang .lang-code{font-size:13px;font-weight:700;color:#1f2937;letter-spacing:.5px;text-transform:uppercase}.btn-lang:hover{background:#ffffff1f;border-color:#3b82f680;transform:translateY(-1px);box-shadow:0 4px 12px #3b82f64d}.language-dropdown{display:none;position:absolute;top:calc(100% + 8px);right:0;background:#1a1f2e;border:1px solid rgba(255,255,255,.15);border-radius:10px;box-shadow:0 8px 24px #0009;min-width:180px;z-index:1000;overflow:hidden;animation:slideDown .2s ease;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}@keyframes slideDown{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.language-dropdown.show{display:block}.language-dropdown button{width:100%;padding:12px 16px;background:transparent;border:none;text-align:left;cursor:pointer;transition:all .15s ease;display:flex;align-items:center;gap:10px}.language-dropdown button .lang-code-dropdown{font-size:13px;font-weight:700;color:#60a5fa;letter-spacing:.5px;text-transform:uppercase;min-width:28px;flex-shrink:0}.language-dropdown button .lang-name{color:#c9d1d9;font-size:14px;font-weight:600}.language-dropdown button:hover{background:#3b82f626;color:#fff}.language-dropdown button.active{background:linear-gradient(135deg,#3b82f640,#8b5cf626);color:#60a5fa;font-weight:600;border-left:3px solid #3b82f6}.header-actions{display:flex;align-items:center;gap:10px}.container{display:flex;gap:22px;align-items:flex-start;padding:24px;max-width:1200px;margin:0 auto;flex:1}.stack{display:flex;flex-direction:column;gap:20px;flex:1}aside{flex:0 0 420px}.card{background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:22px;box-shadow:0 6px 18px #0006}.card h2{margin:0 0 8px;color:#fff}.muted{color:var(--muted);font-size:14px}textarea{width:100%;min-height:160px;background:#0f1624;color:var(--text);border:1px solid #2a3548;border-radius:10px;padding:12px 14px;resize:vertical}textarea:focus{outline:none;border-color:#3675f7}.controls{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.btn{border-radius:8px;border:none;font-weight:600;padding:9px 16px;transition:background-color .15s,transform .05s}.btn:active{transform:scale(.97)}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover{background:var(--primary-h)}.btn-outline{background:transparent;color:#c9d1d9;border:1px solid #30363d}.btn-outline:hover{background:#1e2635}.btn[disabled]{opacity:.55;cursor:not-allowed}.btn-retry{background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff;padding:12px 20px;font-weight:600;font-size:14px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:all .2s;box-shadow:0 4px 12px #3b82f64d;cursor:pointer;border:none;margin-top:8px}.btn-retry:hover:not([disabled]){background:linear-gradient(135deg,#2563eb,#1d4ed8);transform:translateY(-1px);box-shadow:0 6px 16px #3b82f680}.btn-retry:active:not([disabled]){transform:translateY(0);box-shadow:0 2px 8px #3b82f666}.btn-retry:disabled{opacity:.5;cursor:not-allowed;transform:none}.btn-retry span{font-size:13px;color:#ffffffd9}.result h4{margin:24px 0 14px;color:var(--text-bright);font-size:15px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;padding:10px 14px;background:linear-gradient(135deg,#3b82f614,#8b5cf60a);border-left:3px solid var(--primary);border-radius:6px;display:flex;align-items:center;gap:10px;position:relative;overflow:hidden}.result h4:before{content:"\25cf";color:var(--primary);font-size:10px;animation:pulse 2s ease-in-out infinite}.result h4:after{content:"";position:absolute;right:0;top:0;bottom:0;width:3px;background:linear-gradient(180deg,var(--primary),var(--accent));opacity:.6}.result h4:first-of-type{margin-top:0}.result p{color:var(--text);margin:0 0 12px;line-height:1.6}.result ul{margin:8px 0 16px;padding:0;list-style:none}.result li{color:var(--text);margin:8px 0;padding:10px 12px;background:var(--panel);border-left:3px solid var(--primary);border-radius:6px;transition:all .2s ease;line-height:1.5}.result li:hover{background:var(--panel-2);border-left-color:var(--primary-light);transform:translate(4px)}.result .chips{display:flex;gap:8px;flex-wrap:wrap}.plan-title{font-weight:700;margin-bottom:6px}.price{color:#cfe1ff;margin:0 0 8px}.features{margin:6px 0 14px 18px}.footer{text-align:center;padding:20px;color:var(--muted);font-size:13px;margin-top:auto}@media (max-width:900px){.container{flex-direction:column}aside{width:100%}}.audio-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.file-btn{position:relative;display:inline-flex;align-items:center;background:#0f1624;border:1px solid #2a3548;color:#e6edf3;border-radius:8px;padding:8px 14px;cursor:pointer;-webkit-user-select:none;user-select:none}.file-btn:hover{background:#131c2c}.file-btn input{position:absolute;inset:0;opacity:0;cursor:pointer}.file-name{color:#9da9bb;max-width:40ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.format-row{margin-top:8px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}.hint{color:#9da9bb;margin-right:6px}.format-badge{background:#202938;border:1px solid #2c3648;color:#e6edf3;border-radius:999px;padding:3px 10px;font-size:12px}.spinner{display:inline-block;width:14px;height:14px;border:2px solid #fff;border-right-color:transparent;border-radius:50%;animation:spin .8s linear infinite;vertical-align:-2px}@keyframes spin{to{transform:rotate(360deg)}}@media (max-width: 640px){.file-name{max-width:22ch}}
