@import "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap";
:root{--ink:#111a30;--muted:#64708a;--border:#dce2ee;--purple:#5d49ed;--pale:#f1efff;--bg:#fafbfe}*{box-sizing:border-box}body{background:var(--bg);color:var(--ink);margin:0;font-family:Inter,Arial,sans-serif;font-size:14px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}a{color:inherit;text-decoration:none}.app-shell{min-height:100vh}.topbar{z-index:10;background:#fff;border-bottom:1px solid #e9ecf3;align-items:center;gap:24px;height:57px;padding:0 28px;display:flex;position:sticky;top:0}.brand{letter-spacing:-.8px;font-size:22px;font-weight:800}.connection{color:var(--muted);align-items:center;gap:9px;font-size:12px;display:flex}.dot{background:#b5bdcc;border-radius:50%;width:10px;height:10px}.connected .dot{background:#20ce80}.failed .dot{background:#e3646a}.sidebar{background:#fcfdff;border-right:1px solid #e5eaf3;flex-direction:column;width:293px;padding:18px 9px 15px 18px;display:flex;position:fixed;top:57px;bottom:0;left:0}.sidebar nav{gap:8px;display:grid}.sidebar nav a{color:#35415a;border-radius:5px;align-items:center;gap:18px;height:46px;padding:0 14px;font-size:15px;display:flex}.sidebar nav a.active{color:#503cf0;background:#eeecff;font-weight:600}.sidebar nav a:hover{background:#f2f1fd}.user-footer{align-items:center;gap:15px;margin-top:auto;padding:0 16px 4px 10px;display:flex}.avatar{background:#e9edf4;border-radius:50%;place-items:center;width:45px;height:45px;font-weight:700;display:grid}.user-footer strong,.user-footer small{display:block}.user-footer small{color:var(--muted);margin-top:3px;font-size:12px}.user-footer button{color:#465371;background:0 0;border:0;margin-left:auto}.content{min-height:calc(100vh - 57px);margin-left:293px;padding:18px 24px 30px}.page-heading{justify-content:space-between;align-items:flex-start;gap:20px;margin:0 0 17px 10px;display:flex}.page-heading h1{letter-spacing:-.8px;margin:0 0 5px;font-size:26px;line-height:1.25}.page-heading p{color:#64708a;margin:0;font-size:15px}.usage{width:375px;padding-top:2px;font-size:13px}.usage-row{justify-content:space-between;margin-bottom:9px;display:flex}.usage-track{background:#e1e4ec;border-radius:10px;height:8px}.usage-track span{background:var(--purple);border-radius:10px;height:100%;display:block}.tts-grid{grid-template-columns:minmax(0,1.53fr) minmax(350px,1fr);gap:18px;display:grid}.card{border:1px solid var(--border);background:#fff;border-radius:6px;padding:16px}.card h2{letter-spacing:-.3px;margin:0 0 12px;font-size:17px}.tts-main{padding:16px}.field,.stack label{gap:7px;font-weight:500;display:grid}.field>span,.stack label{font-size:13px}.field input,.field select,.field textarea,.stack input,.stack textarea,.stack select,.search-input{width:100%;color:var(--ink);background:#fff;border:1px solid #cfd6e4;border-radius:5px;outline:0;min-height:40px;padding:9px 12px}.field textarea{resize:vertical;height:134px;line-height:1.55}.field input:focus,.field select:focus,.field textarea:focus,.stack input:focus,.stack textarea:focus,.search-input:focus{border-color:var(--purple);box-shadow:0 0 0 3px #5d49ed22}.char-count{text-align:right;color:var(--muted);margin:4px 0 14px;font-size:12px}.form-grid{grid-template-columns:1fr 1fr;gap:17px 18px;display:grid}.settings-title{margin:23px 0 15px;font-weight:700}.range-row{grid-template-columns:130px 1fr 70px;align-items:center;gap:12px;margin:12px 0;font-size:13px;display:grid}.range-row output{text-align:right;color:#63708b}.range-row input{width:100%;accent-color:var(--purple)}.check-row{align-items:center;gap:22px;margin:15px 0 20px;font-size:13px;display:flex}.check-row input{appearance:none;cursor:pointer;background:#c9ceda;border-radius:15px;width:44px;height:23px;position:relative}.check-row input:checked{background:var(--purple)}.check-row input:after{content:"";background:#fff;border-radius:50%;width:17px;height:17px;transition:left .15s;position:absolute;top:3px;left:3px}.check-row input:checked:after{left:24px}.stack label.check-row{align-items:center;gap:12px;margin:4px 0;line-height:1.45;display:flex}.stack label.check-row input[type=checkbox]{border:0;flex:0 0 44px;width:44px;height:23px;min-height:23px;margin:0;padding:0}.button-row{align-items:center;gap:12px;display:flex}.primary,.secondary,.small-button,.icon-button{color:var(--ink);background:#f7f8fb;border:1px solid #d4dbe8;border-radius:5px;min-height:38px;padding:9px 15px}.primary{background:var(--purple);border-color:var(--purple);color:#fff;font-weight:500}.primary:hover{background:#4c39db}.secondary:hover,.small-button:hover,.icon-button:hover{background:#efeff8}.secondary.danger{color:#b32443;background:#fff9fa;border-color:#ecc9d0}.secondary.danger:hover{background:#fce9ed}.button-row .primary{min-width:180px}.result-player{border:1px solid var(--border);border-radius:5px;align-items:center;gap:12px;margin-top:14px;padding:10px;display:flex}.result-player audio{flex:1;min-width:100px;height:36px}.result-player strong,.result-player small{display:block}.result-player small{color:var(--muted);margin-top:5px}.right-stack{align-content:start;gap:15px;display:grid}.search-wrap{position:relative}.search-wrap svg{color:#68738a;position:absolute;top:12px;left:11px}.search-wrap input{padding-left:36px}.voice-row,.recent-row{border-bottom:1px solid #edf0f5;align-items:center;gap:12px;min-height:52px;display:flex}.voice-row .name{white-space:nowrap;text-overflow:ellipsis;flex:1;font-weight:500;overflow:hidden}.badge{color:#5846ee;background:#eeeaff;border-radius:5px;padding:4px 8px;font-size:11px}.language{color:var(--muted);min-width:25px;font-size:12px}.round-button{background:#fff;border:1px solid #d5dcea;border-radius:50%;flex-shrink:0;place-items:center;width:33px;height:33px;display:grid}.small-button{min-height:33px;padding:6px 15px}.text-link{color:#5542eb;align-items:center;gap:8px;margin-top:16px;font-size:13px;display:inline-flex}.card-head{justify-content:space-between;align-items:center;display:flex}.card-head h2,.card-head .text-link{margin:0 0 10px}.recent-row{min-height:64px}.recent-row .details{flex:1;min-width:0}.recent-row strong,.recent-row small{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.recent-row small{color:var(--muted);margin-top:4px;font-size:12px}.empty{color:var(--muted);padding:22px 4px;line-height:1.5}.feature-strip{border:1px solid var(--border);background:#fff;border-radius:6px;grid-template-columns:repeat(5,1fr);margin-top:14px;padding:14px 10px;display:grid}.feature-strip a{border-right:1px solid #e5e9f1;gap:10px;padding:0 12px;display:flex}.feature-strip a:last-child{border:0}.feature-strip svg{flex-shrink:0}.feature-strip strong,.feature-strip small{display:block}.feature-strip strong{font-size:12px}.feature-strip small{color:var(--muted);margin-top:3px;font-size:11px;line-height:1.45}.page-panel{max-width:1200px}.toolbar{flex-wrap:wrap;gap:10px;margin:0 0 16px;display:flex}.toolbar>*{max-width:320px}.list-grid{grid-template-columns:repeat(auto-fill,minmax(265px,1fr));gap:12px;display:grid}.voice-card{gap:12px;display:grid}.voice-card h3{margin:0;font-size:15px}.voice-card p{color:var(--muted);margin:0;line-height:1.5}.voice-card .actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.voice-card audio,.preview-card audio{width:100%;height:36px}.stack{gap:15px;display:grid}.stack textarea{min-height:110px}.stack .primary{justify-self:start}.error{color:#bd2643;margin:8px 0;font-size:13px}.success{color:#167d52;margin:8px 0;font-size:13px}.muted{color:var(--muted)}.table-wrap{overflow:auto}.data-table{border-collapse:collapse;width:100%;min-width:760px}.data-table th,.data-table td{text-align:left;vertical-align:middle;border-bottom:1px solid #e7ebf2;padding:12px;font-size:13px}.data-table th{color:var(--muted);font-weight:600}.data-table td .mini-audio{width:170px;height:30px}.pager{align-items:center;gap:10px;margin-top:15px;display:flex}.login-wrap{place-items:center;min-height:100vh;padding:20px;display:grid}.login-card{border:1px solid var(--border);background:#fff;border-radius:8px;width:min(100%,390px);padding:28px;box-shadow:0 15px 55px #26315010}.login-card h1{margin:30px 0 4px;font-size:24px}.login-card p{color:var(--muted);margin:0 0 22px}.login-card .primary{width:100%}.admin-grid{grid-template-columns:1fr 1fr;gap:16px;display:grid}.admin-grid .wide{grid-column:1/-1}.user-actions{flex-wrap:wrap;gap:7px;display:flex}.menu-button,.sidebar-close,.drawer-backdrop{display:none}@media (max-width:1250px){.tts-grid{grid-template-columns:1fr}.right-stack{grid-template-columns:1fr 1fr}.feature-strip{grid-template-columns:repeat(3,1fr);row-gap:15px}}@media (max-width:850px){.sidebar{z-index:30;transition:transform .2s;transform:translate(-100%)}.sidebar.open{transform:translate(0)}.drawer-backdrop{z-index:20;background:#111a3066;display:block;position:fixed;inset:0}.menu-button,.sidebar-close{background:0 0;border:0;display:block}.sidebar-close{align-self:end;margin-bottom:10px}.content{margin-left:0}.topbar{padding:0 16px}.page-heading{margin-left:0}.usage{max-width:260px}.right-stack{grid-template-columns:1fr}}@media (max-width:600px){.content{padding:20px 13px}.page-heading{display:block}.usage{width:100%;max-width:none;margin-top:15px}.form-grid,.admin-grid{grid-template-columns:1fr}.feature-strip{grid-template-columns:1fr 1fr}.feature-strip a{border:0}.range-row{grid-template-columns:95px 1fr 45px}.result-player{flex-wrap:wrap}.result-player audio{flex-basis:100%;order:3}}
.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.tts-grid,.tts-grid>*,.right-stack,.right-stack .card,.voice-row,.recent-row,.voice-row .name{min-width:0}.recent-row .mini-audio{flex-shrink:0;width:110px}.primary,.secondary{justify-content:center;align-items:center;gap:7px;display:inline-flex}
.theme-toggle{border:1px solid var(--border);background:var(--bg);min-height:36px;color:var(--ink);white-space:nowrap;border-radius:6px;justify-content:center;align-items:center;gap:8px;margin-left:auto;padding:7px 11px;display:inline-flex}.theme-toggle:hover{background:var(--pale)}.theme-toggle:focus-visible{outline:2px solid var(--purple);outline-offset:2px}html[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--ink:#edf1fb;--muted:#a3aec3;--border:#354157;--purple:#8574ff;--pale:#2d294c;--bg:#0e1420;--surface:#192232;--surface-raised:#222e41;--surface-hover:#2b3850}html[data-theme=dark] .topbar{background:var(--surface);border-bottom-color:var(--border)}html[data-theme=dark] .sidebar{border-right-color:var(--border);background:#151d2b}html[data-theme=dark] .sidebar nav a{color:#c6d0e3}html[data-theme=dark] .sidebar nav a:hover{background:var(--surface-hover)}html[data-theme=dark] .sidebar nav a.active,html[data-theme=dark] .sidebar nav a.active:hover{color:#c1b8ff;background:#302b52}html[data-theme=dark] .avatar{background:#344158}html[data-theme=dark] .user-footer button,html[data-theme=dark] .search-wrap svg,html[data-theme=dark] .range-row output,html[data-theme=dark] .page-heading p{color:var(--muted)}html[data-theme=dark] .usage-track,html[data-theme=dark] .check-row input:not(:checked){background:#39455b}html[data-theme=dark] .card,html[data-theme=dark] .feature-strip,html[data-theme=dark] .login-card{background:var(--surface)}html[data-theme=dark] .field input,html[data-theme=dark] .field select,html[data-theme=dark] .field textarea,html[data-theme=dark] .stack input,html[data-theme=dark] .stack textarea,html[data-theme=dark] .stack select,html[data-theme=dark] .search-input{background:var(--surface-raised);border-color:var(--border);color:var(--ink)}html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#9aa8be}html[data-theme=dark] .primary{color:#fff;background:#7565eb;border-color:#7565eb}html[data-theme=dark] .primary:hover{background:#6757da}html[data-theme=dark] .secondary,html[data-theme=dark] .small-button,html[data-theme=dark] .icon-button,html[data-theme=dark] .round-button,html[data-theme=dark] .theme-toggle{background:var(--surface-raised);border-color:var(--border);color:var(--ink)}html[data-theme=dark] .secondary:hover,html[data-theme=dark] .small-button:hover,html[data-theme=dark] .icon-button:hover,html[data-theme=dark] .round-button:hover,html[data-theme=dark] .theme-toggle:hover{background:var(--surface-hover)}html[data-theme=dark] .secondary.danger{color:#ff9eb0;background:#392331;border-color:#694158}html[data-theme=dark] .secondary.danger:hover{background:#4b2c3e}html[data-theme=dark] .voice-row,html[data-theme=dark] .recent-row,html[data-theme=dark] .data-table th,html[data-theme=dark] .data-table td,html[data-theme=dark] .feature-strip a{border-color:var(--border)}html[data-theme=dark] .badge{color:#c3baff;background:#302b52}html[data-theme=dark] .text-link{color:#b2a7ff}html[data-theme=dark] .error{color:#ff9aaf}html[data-theme=dark] .success{color:#75dfad}html[data-theme=dark] .drawer-backdrop{background:#050a12ad}@media (max-width:600px){.topbar{gap:11px}.connection{margin-left:auto;font-size:0}.theme-toggle{margin-left:0;padding:7px 9px}.theme-toggle span{display:none}}
