.tts{display:flex;flex-direction:column;gap:16px;min-width:0}.tts-field{display:flex;flex-direction:column;gap:6px;min-width:0}.tts-field label{font-weight:600;font-size:.95rem}.tts textarea,.tts select,.tts input[type=number]{width:100%;font:inherit;font-size:1rem;line-height:1.5;color:var(--fg,#1d2330);background:var(--field,#fff);border:1px solid var(--line,#dfe2e8);border-radius:var(--r-sm,8px);padding:10px 12px}.tts select,.tts input[type=number]{min-height:46px}.tts textarea{resize:vertical;min-height:9em}.tts textarea:focus-visible,.tts select:focus-visible,.tts input:focus-visible,.tts-btn:focus-visible,.tts-download:focus-visible{outline:3px solid var(--focus,rgba(11,110,91,.35));outline-offset:1px;border-color:var(--accent,#0b6e5b)}.tts textarea[aria-invalid=true]{border-color:var(--danger,#b3261e)}.tts-meta{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 16px;font-size:.9rem;color:var(--muted,#5a6272)}.tts-counter.is-over{color:var(--danger,#b3261e);font-weight:600}.tts-sample{align-self:flex-start;min-height:40px}.tts-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}.tts-speed{display:grid;grid-template-columns:minmax(0,1fr) 96px;align-items:center;gap:12px}.tts-speed input[type=range]{width:100%;accent-color:var(--accent,#0b6e5b);margin:0}.tts-actions{display:flex;flex-wrap:wrap;gap:12px}.tts-btn{font:inherit;font-weight:600;font-size:1rem;min-height:46px;padding:0 22px;border-radius:8px;border:1px solid var(--accent,#0b6e5b);background:var(--accent,#0b6e5b);color:var(--accent-fg,#fff);cursor:pointer}.tts-btn:hover:not(:disabled){background:var(--accent-hover,#095b4b);border-color:var(--accent-hover,#095b4b)}.tts-btn-ghost:not(:disabled){background:transparent;color:var(--accent,#0b6e5b)}.tts-btn:disabled{background:var(--disabled,#c9ced6);border-color:var(--disabled,#c9ced6);color:var(--muted,#fff);cursor:not-allowed}.tts-btn-ghost{background:transparent;color:var(--accent,#0b6e5b)}.tts-btn-ghost:hover:not(:disabled){background:var(--accent-soft,rgba(11,110,91,.08))}.tts-status{min-height:0}.tts-status p{margin:0 0 8px}.tts-status progress{display:block;width:100%;height:10px;accent-color:var(--accent,#0b6e5b)}.tts-wait{height:10px;border-radius:5px;background:linear-gradient(90deg,var(--line,#dfe2e8) 0,var(--accent,#0b6e5b) 50%,var(--line,#dfe2e8) 100%);background-size:200% 100%;animation:tts-wait 1.4s linear infinite}@keyframes tts-wait{to{background-position:-200% 0}}@media(prefers-reduced-motion:reduce){.tts-wait{animation:none;background:var(--line,#dfe2e8)}}.tts-alert{margin:0;padding:10px 14px;border-radius:8px;background:var(--danger-soft,#fdecea);border:1px solid var(--danger-line,#f3b8b3);color:var(--danger,#7a1a14);display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}.tts-alert[hidden]{display:none}.tts-result{display:flex;flex-direction:column;gap:10px;padding-top:4px}.tts-result p{margin:0}.tts-ok{color:var(--accent,#0b6e5b);font-weight:600}.tts-result audio{width:100%}.tts-download{align-self:flex-start;font-weight:600}.tts-alert p{margin:0}.tts-login-offer{flex-basis:100%;display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;color:var(--fg,#1d2330)}.tts-login-offer .tts-btn{display:inline-flex;align-items:center;text-decoration:none;min-height:40px;background:var(--surface,#fff)}.tts-formats{border:0;margin:0;padding:0;min-width:0;display:flex;flex-wrap:wrap;gap:8px 12px}.tts-formats legend{font-weight:600;font-size:.95rem;padding:0;margin-bottom:6px;width:100%}.tts-format{display:flex;align-items:baseline;gap:8px;min-height:46px;padding:10px 14px;border:1px solid var(--line,#dfe2e8);border-radius:var(--r-sm,8px);background:var(--field,#fff);cursor:pointer}.tts-format input{accent-color:var(--accent,#0b6e5b);margin:0;align-self:center}.tts-format.is-on{border-color:var(--accent,#0b6e5b);background:var(--accent-soft,#e1f1ec)}.tts-format-name{font-weight:700}.tts-format-hint{font-size:.875rem;color:var(--muted,#5a6272)}.login-form{display:flex;flex-direction:column;gap:14px}.login-form input{width:100%;font:inherit;font-size:1rem;line-height:1.5;min-height:48px;color:var(--fg,#1d2330);background:var(--field,#fff);border:1px solid var(--line,#dfe2e8);border-radius:var(--r-sm,8px);padding:10px 12px}.login-form input:focus-visible{outline:3px solid var(--focus,rgba(11,110,91,.35));outline-offset:1px;border-color:var(--accent,#0b6e5b)}.login-form input[aria-invalid=true]{border-color:var(--danger,#b3261e)}.login-form .login-code{font-size:1.5rem;font-weight:700;letter-spacing:.4em;text-align:center;font-variant-numeric:tabular-nums}.login-submit{width:100%;min-height:48px}.login-sent{margin:0;color:var(--muted,#5a6272)}.login-secondary{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 16px}.login-link{font:inherit;font-size:.95rem;font-weight:600;color:var(--accent,#0b6e5b);background:none;border:0;padding:6px 0;cursor:pointer;text-decoration:underline;text-underline-offset:.18em}.login-link:disabled{color:var(--muted,#5a6272);text-decoration:none;cursor:default}@media(max-width:560px){.tts-format{flex:1 1 100%}.tts-row{grid-template-columns:minmax(0,1fr)}.tts-btn{width:100%}.tts-actions{flex-direction:column}}.tts-funding{margin:0;padding:8px 12px;border-radius:8px;background:var(--accent-soft,#e1f1ec);color:var(--fg,#1d2330);font-size:.95rem}.tts-topup{display:flex;flex-direction:column;gap:12px}.billing h2,.billing h3{margin:0 0 8px}.billing h3{margin-top:24px;font-size:1.05rem}.billing-balance{margin:0 0 4px;font-size:1.5rem}.topup-packages{list-style:none;margin:0;padding:0;display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}.topup-package{display:flex;flex-direction:column;gap:4px;padding:16px;border:1px solid var(--line,#dfe2e8);border-radius:10px;background:var(--surface,#fff);min-width:0}.topup-package h3{margin:0;font-size:1.05rem}.topup-package p{margin:0}.topup-credits{font-weight:600}.topup-price{font-size:1.25rem;font-weight:700;color:var(--accent,#0b6e5b)}.topup-unit{color:var(--muted,#53605b);font-size:.875rem;margin-bottom:8px!important}.topup-package .tts-btn{margin-top:auto}.topup-dialog{width:min(520px,calc(100vw - 24px));max-width:100%;max-height:calc(100vh - 24px);padding:0;border:1px solid var(--line,#dfe2e8);border-radius:12px;background:var(--surface,#fff);color:var(--fg,#1d2330);overflow-x:hidden;overflow-y:auto}.topup-dialog::backdrop{background:#0a0e0c8c}.topup-body{display:flex;flex-direction:column;gap:12px;padding:20px 16px;min-width:0}.topup-body h2{margin:0;font-size:1.25rem}.topup-body h3{margin:8px 0 0;font-size:1rem}.topup-body p{margin:0}.topup-qr{align-self:center;width:min(260px,100%);background:#fff;padding:8px;border-radius:8px;border:1px solid var(--line,#dfe2e8)}.topup-qr svg{display:block;width:100%;height:auto}.topup-details{margin:0;display:flex;flex-direction:column;gap:8px}.topup-row{display:flex;flex-direction:column;gap:2px;min-width:0}.topup-row dt{color:var(--muted,#53605b);font-size:.875rem}.topup-row dd{margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;min-width:0}.topup-value{font-weight:600;overflow-wrap:anywhere;min-width:0}.topup-copy{min-height:36px;padding:0 12px;font-size:.875rem}.topup-memo,.topup-expires,.topup-help{color:var(--muted,#53605b);font-size:.9rem}.topup-state{font-weight:600}.topup-paid{color:var(--accent,#0b6e5b)}.topup-actions{display:flex;justify-content:flex-end}.billing-history{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.billing-order{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px;padding:10px 12px;border:1px solid var(--line,#dfe2e8);border-radius:8px;font-size:.9rem;min-width:0;overflow-wrap:anywhere}.billing-status{justify-self:start;font-size:.8125rem;font-weight:600;padding:2px 10px;border-radius:999px;background:var(--surface-2,#eef1f4);color:var(--muted,#4a5565);white-space:nowrap}.billing-status-paid,.billing-status-trusted{background:var(--accent-soft,#e1f1ea);color:var(--accent,#0b6e5a)}.billing-status-failed,.billing-status-reversed,.billing-status-trust_revoked{background:var(--danger-soft,#fdecea);color:var(--danger,#7a1a14)}.billing-status-pending,.billing-status-needs_review{background:var(--cool-soft,#e6eef8);color:var(--cool,#1f4f8a)}.topup-trust{display:flex;flex-direction:column;gap:12px;padding:16px;border:2px solid var(--accent,#0b6e5b);border-radius:12px;background:var(--accent-soft,rgba(11,110,91,.06))}.topup-trust h3{margin:0}.topup-lead{font-size:.95rem}.transfer-examples{margin:0;display:flex;flex-direction:column;gap:6px}.transfer-examples-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.transfer-example{display:flex;flex-direction:column;align-items:center;gap:4px;width:100%;padding:0;border:0;background:none;cursor:zoom-in;font:inherit;color:inherit}.transfer-example svg{display:block;width:100%;height:auto;max-width:120px;filter:drop-shadow(0 2px 6px rgba(0,0,0,.12))}.transfer-example-bank{font-size:.75rem;color:var(--muted,#53605b)}.transfer-examples-list li:has(.is-open){grid-column:1/-1;order:-1}.transfer-example.is-open{cursor:zoom-out}.transfer-example.is-open svg{max-width:240px}.transfer-examples figcaption{font-size:.85rem;color:var(--muted,#53605b)}.topup-drop{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;padding:16px;border:2px dashed var(--line,#b8bfc9);border-radius:10px;background:var(--field,#fff);text-align:center;cursor:pointer}.topup-drop.has-file{border-style:solid;border-color:var(--accent,#0b6e5b)}.topup-drop-title{font-weight:600;overflow-wrap:anywhere}.topup-drop-hint{font-size:.8125rem;color:var(--muted,#53605b)}.topup-drop input{position:absolute;inset:0;opacity:0;cursor:pointer}.topup-drop:focus-within{outline:3px solid var(--focus,rgba(11,110,91,.35));outline-offset:1px}.topup-noshot{min-height:40px;font-size:.9rem}
