@import url('/static/fonts.css');
:root{font-family:Arial,Helvetica,sans-serif;color:#192a2b;background:#f6f7f4;font-synthesis:none;--ink:#183735;--muted:#778480;--accent:#24695c;--line:#e1e7e0;--paper:#fff;--soft:#eaf1e9}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}a{color:inherit}button{border:0}h1,h2,h3,p{margin-top:0}.csrf{display:none}.boot{min-height:100vh;display:grid;place-content:center;text-align:center;gap:20px;color:var(--muted)}.brand-mark{font-weight:700;font-size:30px;letter-spacing:-4px;color:#dfeccf}.brand-mark span{color:#a8cfaa}.brand{display:flex;gap:13px;align-items:center;font-weight:600;letter-spacing:1.5px;font-size:15px}.brand .brand-mark{font-size:33px}.sidebar{position:fixed;inset:0 auto 0 0;width:226px;background:#173b35;color:#e9eee5;padding:34px 23px;display:flex;flex-direction:column;z-index:5}.side-caption{font-size:10px;letter-spacing:2px;color:#96afa3;margin:57px 13px 17px}.nav{display:grid;gap:7px}.nav button{border-radius:8px;background:transparent;color:#b9ccc1;text-align:left;display:flex;align-items:center;gap:13px;padding:13px 15px;font-size:13px}.nav button:hover{background:#22493f}.nav button.active{background:#dce8d1;color:#183a32;font-weight:600}.icon{width:18px;height:18px;display:inline-flex;flex-shrink:0}.icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.side-footer{margin-top:auto;border-top:1px solid #315346;padding-top:24px;display:flex;align-items:center;gap:10px}.role-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#315b4d;color:#dbe8d7;font-size:12px;font-weight:bold}.side-footer small{font-size:10px;color:#91afa0;display:block;margin-top:5px}.logout{background:transparent;color:#bdd2c1;margin-left:auto;padding:8px}.layout{margin-left:226px;min-height:100vh}.topbar{height:85px;border-bottom:1px solid var(--line);padding:0 42px;display:flex;align-items:center;justify-content:space-between;background:#fbfcf9}.breadcrumb{font-size:12px;color:#6e7d73}.breadcrumb strong{color:#30473f;font-weight:normal}.quota{display:flex;align-items:center;gap:29px}.quota-label{font-size:10px;color:#7d8980;margin-bottom:5px}.quota-number{font-size:13px;font-weight:600;letter-spacing:.2px}.quota-number span{color:#91a095;font-weight:normal}.quota-track{width:106px;height:3px;border:0;background:#e2e9dd;display:block;margin-top:7px;accent-color:#4d8664}.quota-track::-webkit-progress-bar{background:#e2e9dd}.quota-track::-webkit-progress-value{background:#4d8664}.quota-refresh{background:none;color:#778c7c;padding:8px}.content{max-width:1410px;margin:auto;padding:42px}.heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:31px}.eyebrow{font-size:10px;color:#8a9787;letter-spacing:1.9px;font-weight:600;text-transform:uppercase;margin-bottom:12px}h1{font-size:31px;letter-spacing:-1.1px;line-height:1.2;font-weight:600;margin:0 0 9px}h2{font-size:22px;letter-spacing:-.6px}h3{font-size:16px;font-weight:600}.subtle{font-size:13px;line-height:1.6;color:#7a887d;margin:0}.btn{display:inline-flex;gap:9px;align-items:center;justify-content:center;padding:12px 17px;border-radius:7px;background:#24695c;color:white;font-size:12px;line-height:1.3;text-decoration:none;white-space:nowrap;min-height:40px}.btn:hover{background:#1c5549}.btn.secondary{background:white;color:#375447;border:1px solid #dce5d8}.btn.secondary:hover{background:#f0f5ed}.btn.ghost{background:none;color:#617c6c;border:1px solid transparent}.btn.danger{color:#9d5045;background:#f8eee9}.btn.small{padding:9px 12px;font-size:11px;min-height:33px}.tabs{display:flex;gap:28px;border-bottom:1px solid var(--line);margin-bottom:23px}.tabs button{position:relative;background:transparent;padding:0 1px 15px;color:#889388;font-size:13px}.tabs button.selected{color:#285844;font-weight:600}.tabs button.selected:after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:2px;background:#3d7860}.pill{display:inline-block;background:#e8eee4;color:#5f7566;padding:3px 7px;border-radius:20px;font-size:10px;margin-left:7px;font-weight:normal}.filters{display:flex;gap:12px;align-items:center;margin-bottom:28px}.field{display:grid;gap:8px;font-size:12px;color:#4f6659}.field input,.field select,.field textarea,.filter-select,.search{width:100%;padding:12px 13px;border:1px solid #dce3d8;background:#fff;border-radius:6px;color:#2d483a;font-size:13px;min-height:43px}.field textarea{line-height:1.6;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus,.filter-select:focus,.search:focus{border-color:#5b8b73;outline:2px solid #deebdf}.filter-select{width:180px}.filter-select.wide{width:220px}.search{width:330px}.filter-spacer{flex:1}.count{font-size:11px;color:#829080}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.voice-card{border:1px solid #e1e7db;border-radius:12px;background:#fff;padding:23px;transition:box-shadow .15s,transform .15s;min-width:0}.voice-card:hover{box-shadow:0 8px 24px #2a4e3210;transform:translateY(-2px)}.card-top{display:flex;align-items:center;gap:14px;margin-bottom:21px}.voice-avatar{height:52px;width:52px;border-radius:50%;display:grid;place-items:center;background:#edf1e5;color:#688369;font-size:20px;font-weight:500;flex-shrink:0;object-fit:cover}.voice-card:nth-child(3n+2) .voice-avatar{background:#e6ecee;color:#647d88}.voice-card:nth-child(3n+3) .voice-avatar{background:#f1e9df;color:#9a8267}.card-top h3{margin:0 0 7px;font-size:16px;letter-spacing:-.3px}.meta{font-size:11px;color:#8a9489}.card-language{display:flex;align-items:center;justify-content:space-between;padding-bottom:18px;margin-bottom:16px;border-bottom:1px solid #eef1e9;gap:8px;font-size:11px;color:#80917c}.card-language select{border:0;max-width:165px;background:#f3f6f0;border-radius:5px;padding:7px 9px;color:#496347;font-size:11px}.card-actions{display:flex;gap:8px}.card-actions .btn:first-child{flex:1}.audio-dots{display:flex;gap:3px;height:22px;align-items:center;margin-bottom:17px}.audio-dots span{width:3px;border-radius:3px;background:#c4d7bd;height:7px}.audio-dots span:nth-child(3n){height:18px}.audio-dots span:nth-child(4n){height:12px}.audio-dots span:nth-child(7n){height:23px}.audio-dots span:nth-child(5n){height:15px}.voice-card.playing .audio-dots span{background:#4b8b6d;animation:wave .8s ease-in-out infinite alternate}.voice-card.playing .audio-dots span:nth-child(2n){animation-delay:.2s}@keyframes wave{to{transform:scaleY(.4)}}.empty{padding:62px 25px 68px;text-align:center;border:1px dashed #d6dfcf;border-radius:12px;background:#f9fbf6}.empty .empty-icon{margin:auto auto 22px;background:#e9f0e1;border-radius:50%;height:75px;width:75px;display:grid;place-items:center;color:#658967}.empty .icon{width:30px;height:30px}.empty h2{font-size:20px;margin-bottom:11px}.empty p{font-size:12px;color:#83907e;line-height:1.7;max-width:350px;margin:0 auto 23px}.notice{background:#edf3e7;border:1px solid #d9e6ce;color:#61744f;padding:14px 17px;border-radius:7px;font-size:12px;line-height:1.6;margin-bottom:22px}.notice.warning{background:#fbf3e6;color:#937b48;border-color:#efe2c9}.section-label{display:flex;align-items:center;justify-content:space-between;margin-top:29px;margin-bottom:17px}.section-label h3{margin:0}.list{display:grid;gap:12px}.original-row,.job-row,.setting-card{border:1px solid var(--line);background:white;border-radius:10px;padding:22px}.original-row{display:flex;align-items:center;gap:16px}.original-row .details{flex:1;min-width:0}.original-row h3{margin:0 0 8px}.language-chip{font-size:10px;padding:4px 7px;border-radius:4px;background:#f0f4eb;color:#6a8061;margin:3px 4px 0 0;display:inline-block}.status{font-size:10px;padding:4px 7px;border-radius:4px;color:#8d783e;background:#f6f0dc}.status.ready{background:#e7f1e4;color:#507e4e}.job-row{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.job-row strong{font-size:13px}.job-row p{font-size:12px;color:#7c897c;line-height:1.6;margin:7px 0 0}.job-row .error{color:#9a6350;max-width:650px}.setting-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.setting-card{padding:27px}.setting-card h3{margin:18px 0 10px}.setting-card .icon{color:#5b8367;width:24px;height:24px}.setting-card .btn{margin-top:22px}.setting-card p{font-size:12px;color:#7e8d7d;line-height:1.75;margin:0}.key-form{display:flex;gap:10px;align-items:end;margin:23px 0 0}.key-form .field{flex:1}.key-form .btn{margin:0}.login{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-art{background:#183d36;color:#e4edda;padding:50px 60px;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;position:relative}.login-quote{position:relative;z-index:1;max-width:410px}.login-quote h1{font-size:49px;font-weight:400;line-height:1.15;letter-spacing:-1.5px}.login-quote p{color:#9fb5a3;line-height:1.8;font-size:14px;max-width:340px;margin-top:21px}.login-art footer{font-size:10px;letter-spacing:2px;color:#88a38e}.soundscape{position:absolute;left:16%;right:10%;top:46%;display:flex;gap:10px;align-items:center;opacity:.13;transform:rotate(-18deg)}.soundscape span{height:220px;flex:1;border-radius:20px;background:#bbd7a1}.soundscape span:nth-child(3n){height:390px}.soundscape span:nth-child(2n){height:140px}.soundscape span:nth-child(5n){height:480px}.login-form-wrap{display:grid;place-items:center;padding:50px}.login-form{width:100%;max-width:350px}.login-form .eyebrow{margin-bottom:20px}.login-form h2{font-size:31px;font-weight:500;margin-bottom:12px}.login-form .field{margin-top:32px}.login-form .btn{width:100%;margin-top:17px}.login-note{margin-top:27px;font-size:11px;line-height:1.6;color:#94a08f}.form-error{font-size:12px;color:#a25145;line-height:1.6;margin:12px 0 0}.mobile-brand{display:none}dialog{border:1px solid #e2e9db;border-radius:14px;padding:0;max-width:690px;width:calc(100% - 32px);max-height:90vh;box-shadow:0 24px 90px #10261933;color:#263f30}dialog::backdrop{background:#10261f66;backdrop-filter:blur(3px)}.modal-head{padding:27px 30px 20px;border-bottom:1px solid #e8eee2;display:flex;justify-content:space-between;align-items:start}.modal-head h2{margin:0 0 7px;font-size:24px}.close{width:30px;height:30px;border-radius:50%;background:#f0f4eb;color:#66815e;font-size:20px}.modal-body{padding:26px 30px 30px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.span-2{grid-column:1/-1}.checks{display:flex;gap:22px;margin:21px 0;color:#526c48;font-size:13px}.checks label{display:flex;gap:9px;align-items:center}.checks input{accent-color:#397557;width:16px;height:16px}.dropfield{border:1px dashed #bbcdb3;background:#f7faf3;border-radius:8px;padding:19px}.dropfield input{border:0;padding:5px 0;min-height:0;background:transparent;font-size:11px}.dropfield small{color:#84947b;line-height:1.7;font-size:10px}.modal-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:25px}.sample-option{border:1px solid #e2e9da;border-radius:8px;margin-bottom:12px;padding:15px;display:flex;align-items:center;justify-content:space-between;gap:10px}.sample-option strong{font-size:12px}.sample-option audio{width:245px;height:33px}.sample-option .btn{white-space:normal}.secret{padding:17px;background:#f0f6e9;border-radius:7px;border:1px solid #d5e4ca;font-family:monospace;overflow-wrap:anywhere;margin:20px 0}.text-editor{display:grid;gap:18px}.text-editor textarea{font-size:13px}.spinner{height:16px;width:16px;border:2px solid #d9e5cf;border-top-color:#548561;border-radius:50%;display:inline-block;animation:spin .8s linear infinite;vertical-align:middle;margin-right:8px}@keyframes spin{to{transform:rotate(360deg)}}#toast{position:fixed;bottom:26px;left:calc(50% + 100px);transform:translateX(-50%);background:#234b3e;color:white;padding:14px 22px;border-radius:8px;font-size:12px;box-shadow:0 10px 35px #14322122;display:none;z-index:100;max-width:90vw}#toast.show{display:block}#toast.bad{background:#8f5143}.footer-note{color:#9aa492;font-size:10px;line-height:1.7;margin-top:35px}.hidden{display:none!important}.btn.loading{opacity:.65;pointer-events:none}.form-hint{font-size:11px;color:#8c9982;line-height:1.6}.filter-reset{font-size:11px;background:transparent;color:#6c8461;padding:10px}
@media(min-width:1500px){.grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:1150px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.content{padding:32px}.topbar{padding:0 32px}.sidebar{width:200px;padding:30px 18px}.layout{margin-left:200px}.filter-select,.filter-select.wide{width:160px}}@media(max-width:800px){.sidebar{position:static;width:100%;padding:17px 20px;flex-direction:row;align-items:center;gap:20px}.sidebar .brand{font-size:12px}.side-caption,.side-footer{display:none}.nav{display:flex;gap:3px;margin-left:auto}.nav button{font-size:0;padding:10px}.nav button .icon{width:20px;height:20px}.layout{margin:0}.topbar{height:66px;padding:0 21px}.quota{gap:16px}.breadcrumb{font-size:10px}.quota-label{font-size:9px}.quota-track{width:75px}.content{padding:27px 20px}.heading{align-items:start}.heading h1{font-size:26px}.heading .btn{font-size:0;padding:11px}.heading .btn .icon{width:19px;height:19px}.filters{flex-wrap:wrap;gap:8px}.filter-select,.filter-select.wide{width:calc(33.33% - 6px);font-size:11px;padding:10px 7px}.filter-spacer{display:none}.count{width:100%;margin-top:6px}.search{width:100%}.grid{gap:12px}.voice-card{padding:17px}.setting-grid{grid-template-columns:1fr}.login-art{padding:35px}.login-quote h1{font-size:35px}.login-form-wrap{padding:30px}#toast{left:50%}.sample-option{flex-wrap:wrap}.sample-option audio{width:100%}.original-row{flex-wrap:wrap}.original-row>.btn{margin-left:auto}.job-row{flex-direction:column}.key-form{flex-direction:column;align-items:stretch}}
@media(max-width:510px){.grid{grid-template-columns:1fr}.login{grid-template-columns:1fr}.login-art{display:none}.mobile-brand{display:flex;color:#254c38;margin-bottom:55px}.login-form-wrap{min-height:100vh;padding:35px}.login-form-wrap .brand-mark{color:#326446}.form-grid{grid-template-columns:1fr}.span-2{grid-column:auto}.modal-head{padding:24px 21px 18px}.modal-body{padding:23px 21px}.quota-refresh{display:none}.breadcrumb{display:none}.topbar{justify-content:flex-end}.soundscape{display:none}.sidebar{gap:6px}.brand{gap:9px}.quota{width:100%;justify-content:space-between}.quota-track{width:110px}.modal-actions{flex-wrap:wrap}.checks{gap:17px}.card-actions .btn{min-height:43px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
