:root{
  --bg:#fbfbfa;--panel:#ffffff;--panel2:#f3f5f3;--text:#13201b;--muted:#66746e;--soft:#8d9994;--line:#e0e6e2;--line2:#edf0ed;
  --green:#1D9E75;--greenDark:#085041;--violet:#7F77DD;--gold:#BA7517;--red:#C84C4C;
  --radius:16px;--radius2:22px;--shadow:0 18px 60px rgba(10,25,20,.08);--font:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:var(--font);background:var(--bg);color:var(--text);min-height:100vh}
a{text-decoration:none;color:inherit}.hidden{display:none!important}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.ok{color:var(--green)}.bad{color:var(--red)}
button,input,textarea,select{font-family:inherit}.icon{font-style:normal}.page{min-height:100vh}.container{max-width:1180px;margin:0 auto;padding:0 24px}
.logo{display:flex;align-items:center;gap:7px}.logo-dot{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 0 5px rgba(29,158,117,.1)}.logo-text{font-size:18px;font-weight:650;letter-spacing:-.035em}.logo-text span{color:var(--green)}
.nav{position:sticky;top:0;z-index:20;background:rgba(251,251,250,.8);backdrop-filter:blur(18px);border-bottom:1px solid var(--line2)}.nav-inner{height:72px;display:flex;align-items:center;justify-content:space-between;gap:18px}.nav-links{display:flex;align-items:center;gap:22px;color:var(--muted);font-size:14px}.nav-links a:hover{color:var(--text)}
.lang-switch{display:flex;gap:5px;align-items:center}.lang-btn{border:1px solid var(--line);background:transparent;color:var(--muted);font-size:12px;padding:7px 10px;border-radius:11px;cursor:pointer}.lang-btn.active{background:var(--panel2);color:var(--text)}
.btn{border:1px solid var(--line);background:var(--panel);color:var(--text);padding:10px 16px;border-radius:13px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:14px;transition:.16s;white-space:nowrap}.btn:hover{transform:translateY(-1px);box-shadow:0 10px 26px rgba(0,0,0,.07)}.btn.primary{background:var(--green);border-color:var(--green);color:white}.btn.dark{background:#101715;border-color:#101715;color:white}.btn.ghost{background:transparent}.btn.block{width:100%}.btn.small{padding:8px 12px;font-size:12px;border-radius:11px}.btn:disabled{opacity:.5;cursor:not-allowed;transform:none;box-shadow:none}
.hero{padding:86px 0 54px;text-align:center}.hero-tag{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);background:rgba(255,255,255,.75);padding:7px 16px;border-radius:999px;color:var(--muted);font-size:13px;margin-bottom:24px}.pulse{width:8px;height:8px;border-radius:50%;background:var(--green);animation:pulse 1.8s ease infinite}@keyframes pulse{50%{opacity:.45;transform:scale(.75)}}
.hero h1{font-size:clamp(42px,7vw,78px);line-height:1.02;letter-spacing:-.065em;font-weight:700;max-width:920px;margin:0 auto 20px}.hero h1 em{font-style:normal;color:var(--green)}.hero p{font-size:18px;line-height:1.75;color:var(--muted);max-width:660px;margin:0 auto 32px}.hero-btns{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-bottom:42px}.hero-stats{display:flex;gap:48px;justify-content:center;flex-wrap:wrap}.stat-hero{text-align:center}.stat-hero-n{font-size:22px;font-weight:700}.stat-hero-l{font-size:12px;color:var(--soft);margin-top:3px}.ticker{overflow:hidden;background:var(--panel2);border-top:1px solid var(--line2);border-bottom:1px solid var(--line2);padding:13px 0}.ticker-track{display:flex;gap:10px;width:max-content;animation:ticker 30s linear infinite}@keyframes ticker{to{transform:translateX(-50%)}}.ticker-item{display:flex;align-items:center;gap:8px;padding:7px 13px;border:1px solid var(--line);background:var(--panel);border-radius:12px;color:var(--muted);font-size:13px;white-space:nowrap}.ticker-item b{color:var(--green)}
.how{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid var(--line2);border-top:1px solid var(--line2);background:var(--panel)}.how-step{padding:28px;border-right:1px solid var(--line2)}.how-step:last-child{border-right:0}.how-n{font-size:12px;font-weight:700;color:var(--green);margin-bottom:9px;text-transform:uppercase}.how-t{font-size:17px;font-weight:650;margin-bottom:7px}.how-d{color:var(--muted);line-height:1.6;font-size:14px}.reviews{padding:42px 0 36px}.section-title{text-align:center;font-size:24px;letter-spacing:-.04em;margin-bottom:22px}.marquee{overflow:hidden;position:relative}.marquee:before,.marquee:after{content:"";position:absolute;top:0;bottom:0;width:90px;z-index:2;pointer-events:none}.marquee:before{left:0;background:linear-gradient(to right,var(--bg),transparent)}.marquee:after{right:0;background:linear-gradient(to left,var(--bg),transparent)}.marquee-track{display:flex;gap:14px;width:max-content;animation:marquee 38s linear infinite}@keyframes marquee{to{transform:translateX(-50%)}}.review-card{width:270px;flex-shrink:0;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius2);padding:18px;box-shadow:0 8px 30px rgba(10,25,20,.05)}.review-top{display:flex;gap:10px;align-items:center;margin-bottom:10px}.avatar{width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:750;background:#E1F5EE;color:var(--greenDark)}.review-name{font-size:14px;font-weight:650}.review-channel{font-size:12px;color:var(--soft)}.stars{font-size:13px;color:var(--gold);letter-spacing:1px;margin-bottom:9px}.review-text{font-size:13px;line-height:1.65;color:var(--muted)}.tag{display:inline-flex;margin-top:10px;padding:4px 10px;background:var(--panel2);border-radius:999px;color:var(--soft);font-size:11px}.bottom-cta{text-align:center;padding:42px 0 70px}.bottom-cta h2{font-size:30px;letter-spacing:-.05em;margin-bottom:9px}.bottom-cta p{color:var(--muted);margin-bottom:22px}
/* app shell */
.shell{display:flex;height:100vh;min-height:680px}.sidebar{width:252px;background:var(--panel);border-right:1px solid var(--line2);display:flex;flex-direction:column;flex-shrink:0}.sb-top{padding:20px}.sb-user{display:flex;align-items:center;gap:10px;margin-top:18px;padding:10px;background:var(--panel2);border-radius:15px}.sb-avatar{width:34px;height:34px;border-radius:50%;background:#E1F5EE;color:var(--greenDark);display:flex;align-items:center;justify-content:center;font-weight:750;font-size:12px}.sb-uname{font-weight:650;font-size:13px}.sb-plan{color:var(--green);font-size:11px;margin-top:1px}.sb-nav{flex:1;padding:10px}.sb-section{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--soft);margin:16px 10px 7px}.si{display:flex;align-items:center;gap:10px;padding:10px 11px;border-radius:13px;color:var(--muted);font-size:14px;cursor:pointer;margin-bottom:3px}.si:hover,.si.active{background:var(--panel2);color:var(--text)}.si-badge{margin-left:auto;background:#E1F5EE;color:var(--greenDark);padding:2px 8px;border-radius:999px;font-size:11px}.sb-bottom{padding:12px 10px;border-top:1px solid var(--line2)}.content{flex:1;display:flex;flex-direction:column;min-width:0}.topbar{height:68px;display:flex;align-items:center;justify-content:space-between;padding:0 24px;border-bottom:1px solid var(--line2);background:rgba(251,251,250,.82);backdrop-filter:blur(18px);z-index:10}.topbar-title{font-weight:700;letter-spacing:-.025em}.topbar-right{display:flex;align-items:center;gap:10px}.body{flex:1;overflow:auto;padding:24px}.grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin-bottom:22px}.stat-card{background:var(--panel);border:1px solid var(--line2);border-radius:18px;padding:16px;box-shadow:0 10px 34px rgba(10,25,20,.04)}.stat-l{color:var(--soft);font-size:12px;margin-bottom:6px}.stat-n{font-size:26px;font-weight:750;letter-spacing:-.04em}.stat-s{color:var(--green);font-size:12px;margin-top:4px}.tool-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:24px}.tool-card{position:relative;overflow:hidden;border:1px solid var(--line);border-radius:var(--radius2);background:var(--panel);padding:20px;cursor:pointer;transition:.16s}.tool-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}.tool-accent{position:absolute;left:0;right:0;top:0;height:4px}.tool-icon{width:42px;height:42px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:20px;margin-bottom:14px}.tool-title{font-size:15px;font-weight:750;margin-bottom:6px}.tool-desc{font-size:13px;color:var(--muted);line-height:1.55;min-height:62px}.tool-action{margin-top:14px;font-size:13px;font-weight:650}.head-row{display:flex;align-items:center;justify-content:space-between;margin:20px 0 10px}.head-row h3{font-size:14px;color:var(--muted);font-weight:650}.link{color:var(--green);font-size:13px;cursor:pointer}.list{display:flex;flex-direction:column;gap:8px}.row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid var(--line2);background:var(--panel);border-radius:15px}.row-left{display:flex;align-items:center;gap:12px;min-width:0}.row-icon{width:36px;height:36px;border-radius:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.row-title{font-size:14px;font-weight:620;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.row-meta{font-size:12px;color:var(--soft);margin-top:2px}.row-right{display:flex;align-items:center;gap:9px;flex-shrink:0}.dot{width:8px;height:8px;border-radius:50%;background:var(--green)}.dot.running{background:var(--gold)}.dot.failed{background:var(--red)}.pill{font-size:11px;padding:4px 9px;border:1px solid var(--line);border-radius:999px;color:var(--soft);background:var(--bg)}.empty{padding:26px;text-align:center;color:var(--soft);border:1px dashed var(--line);border-radius:18px;background:var(--panel)}
.modal-backdrop{position:fixed;inset:0;background:rgba(12,18,16,.38);z-index:100;display:flex;align-items:center;justify-content:center;padding:20px}.modal{background:var(--panel);border-radius:24px;box-shadow:0 30px 120px rgba(0,0,0,.18);width:min(520px,100%);padding:24px;border:1px solid var(--line)}.modal h3{font-size:22px;letter-spacing:-.04em;margin-bottom:8px}.modal p{color:var(--muted);line-height:1.6;margin-bottom:16px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.codebox{background:#101715;color:#d9f7eb;border-radius:16px;padding:13px;font-size:12px;overflow:auto}.toast{position:fixed;right:20px;bottom:20px;z-index:200;background:#101715;color:white;padding:13px 16px;border-radius:14px;box-shadow:0 16px 60px rgba(0,0,0,.22);max-width:360px}.login-card{max-width:480px;margin:90px auto;padding:28px;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius2);box-shadow:var(--shadow);text-align:center}.login-card h1{letter-spacing:-.05em;margin-bottom:10px}.login-card p{color:var(--muted);line-height:1.65;margin-bottom:20px}.loader{width:22px;height:22px;border:3px solid #dce6e1;border-top-color:var(--green);border-radius:50%;animation:spin 1s linear infinite;margin:0 auto 12px}@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:900px){.shell{display:block;height:auto}.sidebar{width:100%;border-right:0;border-bottom:1px solid var(--line2)}.sb-nav,.sb-bottom{display:none}.grid4,.tool-grid,.how{grid-template-columns:1fr}.how-step{border-right:0;border-bottom:1px solid var(--line2)}.topbar{height:auto;padding:14px;align-items:flex-start}.topbar-right,.nav-links{gap:8px;flex-wrap:wrap}.body{padding:14px}.hero{padding:54px 0 40px}.hero-stats{gap:24px}.nav-inner{height:auto;padding:14px 0;align-items:flex-start}.nav-links a{display:none}.tool-desc{min-height:auto}.grid4{gap:10px}.row{align-items:flex-start}.row-right{display:none}}

.tool-page{max-width:980px;margin:0 auto}.tool-form{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius2);padding:22px;box-shadow:0 10px 34px rgba(10,25,20,.04);margin-bottom:22px}.tool-form h2{font-size:24px;letter-spacing:-.04em;margin-bottom:8px}.muted{color:var(--muted);line-height:1.6;margin-bottom:18px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}.input,.textarea,select.input{width:100%;border:1px solid var(--line);border-radius:13px;background:#fff;color:var(--text);padding:11px 12px;font-size:14px;margin-top:7px}.textarea{min-height:180px;resize:vertical;line-height:1.55}.checks{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;background:var(--panel2);border:1px solid var(--line2);border-radius:16px;padding:14px;margin:12px 0}.check-item{font-size:13px;color:var(--muted);display:flex;align-items:center;gap:6px}.form-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}@media(max-width:900px){.form-grid,.checks{grid-template-columns:1fr}.shell{height:auto}.sidebar{display:none}.tool-grid,.grid4{grid-template-columns:1fr}.body{padding:16px}}

/* TXT Translator v2.1 */
.txt-body{padding:18px;background:linear-gradient(180deg,#fbfbfa,#f6f8f6)}
.translator-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(380px,.65fr);gap:18px;align-items:start}.translator-main,.translator-side{display:flex;flex-direction:column;gap:16px}
.txt-hero-card{display:flex;align-items:center;justify-content:space-between;gap:16px;background:var(--panel);border:1px solid var(--line2);border-radius:24px;padding:22px;box-shadow:0 12px 40px rgba(10,25,20,.05)}.txt-hero-card h2{font-size:25px;letter-spacing:-.045em;margin-bottom:6px}.txt-hero-card p{font-size:14px;color:var(--muted);line-height:1.55;max-width:720px}.txt-status-chip{display:flex;flex-direction:column;align-items:flex-end;gap:4px;border:1px solid #d9eee7;background:#eefaf5;color:var(--greenDark);border-radius:16px;padding:11px 14px;font-size:12px;white-space:nowrap}.txt-status-chip span{color:var(--greenDark);opacity:.8}.tool-form.compact{margin-bottom:0}.form-grid.three{grid-template-columns:1fr 150px 180px}.switch-row{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0;color:var(--muted);font-size:13px}.switch-row label{display:flex;gap:8px;align-items:center;background:var(--panel2);border:1px solid var(--line2);border-radius:13px;padding:10px 12px}.muted-inline{opacity:.75}.txt-calc{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:12px 0}.txt-calc>div{background:#f6f8f6;border:1px solid var(--line2);border-radius:14px;padding:10px}.txt-calc span{display:block;color:var(--soft);font-size:11px;margin-bottom:4px}.txt-calc strong{font-size:14px}.language-card,.side-card{background:var(--panel);border:1px solid var(--line2);border-radius:22px;padding:16px;box-shadow:0 10px 34px rgba(10,25,20,.04)}.language-headline{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:12px}.language-headline h3{font-size:18px;letter-spacing:-.03em;margin-bottom:4px}.language-headline p{color:var(--muted);font-size:13px;line-height:1.5}.language-count{font-size:12px;color:var(--greenDark);background:#e8f7f1;border:1px solid #d1eee3;border-radius:999px;padding:6px 10px;white-space:nowrap}.language-toolbar2{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}.preset-btn{min-height:34px;padding:7px 11px;border-radius:999px;font-size:12px;border:1px solid var(--line);background:#fff;color:var(--muted);font-weight:700}.preset-btn.active,.preset-btn:hover{background:#e8f7f1;border-color:#c6eadf;color:var(--greenDark)}.input.search{max-width:260px;margin-top:0}.language-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;max-height:430px;overflow:auto;padding-right:4px}.lang-tile{display:flex;align-items:center;gap:9px;border:1px solid var(--line2);background:#fff;border-radius:14px;padding:10px;cursor:pointer;transition:.13s}.lang-tile:hover{border-color:#c9ded6;background:#fbfefd}.lang-tile input{accent-color:var(--green)}.lang-tile .flag{font-size:18px}.lang-tile b{display:block;font-size:13px}.lang-tile small{display:block;color:var(--soft);font-size:11px;margin-top:1px}.side-card .head-row{margin:0 0 10px}.active-job{background:var(--panel2);border:1px solid var(--line2);border-radius:16px;padding:13px}.big-progress,.mini-progress{height:9px;background:#e8ece9;border-radius:999px;overflow:hidden;margin-top:10px}.mini-progress{height:5px;width:220px;max-width:100%}.big-progress span,.mini-progress span{display:block;height:100%;background:var(--green);border-radius:999px}.logbox{max-height:250px;overflow:auto;background:#101715;color:#d9f7eb;border-radius:15px;padding:12px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px;line-height:1.55}.logbox span{color:#79cdb1}.row.row-active{border-color:#bee8da;background:#f2fbf7}.list.slim{max-height:390px;overflow:auto}.list.slim .row{cursor:pointer}.btn.danger{background:#fff5f4;color:#c84c4c;border-color:#ffd2d2}
@media(max-width:1180px){.translator-grid{grid-template-columns:1fr}.translator-side{display:grid;grid-template-columns:1fr 1fr}.language-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.translator-side{display:flex}.form-grid.three,.txt-calc,.language-grid{grid-template-columns:1fr}.txt-hero-card{align-items:flex-start;flex-direction:column}.txt-status-chip{align-items:flex-start}.input.search{max-width:none}.language-toolbar2>*{flex:1 1 auto}}

/* TXT Translator v2.2 — original compact dashboard blocks */
.txt-original-page{height:100vh;overflow:hidden;background:#e8edf3;color:#10221a;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;padding:8px;display:flex;flex-direction:column;gap:10px}
.tt-topbar{background:#fff;border:1px solid #cfdceb;border-radius:18px;padding:14px 16px 12px;box-shadow:0 8px 22px rgba(19,36,56,.06);flex:0 0 auto}.tt-row{display:flex;align-items:center;justify-content:space-between;gap:14px}.tt-brand{display:flex;align-items:center;gap:12px;min-width:300px}.tt-brand-logo{width:42px;height:42px;border-radius:16px;background:#e3f2ff;display:flex;align-items:center;justify-content:center;font-size:23px}.tt-brand h1{font-size:20px;letter-spacing:-.03em;margin:0}.tt-brand p{font-size:12px;color:#66768a;margin-top:2px}.tt-status{display:flex;align-items:center;gap:10px;background:#f3f7fb;border:1px solid #cfdceb;border-radius:999px;padding:8px 16px;font-size:12px}.tt-status span{color:#65758a;font-weight:700}.tt-status strong{font-size:13px}.tt-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.tt-controls{display:grid;grid-template-columns:2.2fr 1.7fr 1.1fr .75fr .75fr auto;gap:8px;margin-top:14px;align-items:stretch}.tt-control{position:relative;border:1px solid #c5d5e8;background:#fdfefe;border-radius:14px;padding:11px 14px;min-height:62px;text-align:left;display:flex;flex-direction:column;justify-content:center;gap:2px;cursor:pointer;box-shadow:0 8px 24px rgba(19,36,56,.04);overflow:hidden}.tt-control:hover{border-color:#9bb7dc}.tt-control input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer}.tt-control span{font-size:10px;font-weight:900;text-transform:uppercase;color:#506277;letter-spacing:.04em}.tt-control strong{font-size:14px}.tt-control small{font-size:11px;color:#607186}.tt-control select{border:0;background:transparent;font-weight:800;color:#15243a;font-size:13px;outline:0}.tt-control.mini label{font-size:13px;font-weight:800}.tt-control.mini input{accent-color:#1D9E75}.tt-run{height:62px;padding-left:20px;padding-right:20px}.tt-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:10px}.tt-status-text{font-size:12px;color:#627287}.mini-calculator{display:grid;grid-template-columns:repeat(5,minmax(86px,1fr));gap:8px;min-width:520px}.mini-calculator div{background:#f4f8fc;border:1px solid #d6e2ef;border-radius:12px;padding:7px 10px}.mini-calculator span{display:block;font-size:10px;color:#687a90;font-weight:800}.mini-calculator strong{font-size:13px}.tt-workspace{flex:1;min-height:0;display:grid;grid-template-columns:minmax(330px,420px) minmax(0,1fr);gap:10px}.tt-left,.tt-right{min-height:0;display:flex;flex-direction:column;gap:10px}.tt-panel{background:#fff;border:1px solid #cfdceb;border-radius:18px;box-shadow:0 8px 22px rgba(19,36,56,.045);overflow:hidden}.tt-left .progress-panel,.tt-panel#progressCard{flex:0 0 auto}.language-panel{flex:1;min-height:0;display:flex;flex-direction:column}.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid #d8e4f1}.panel-head h2{font-size:16px;letter-spacing:-.02em;margin:0}.panel-head p{font-size:12px;color:#66768a;margin-top:3px}.language-count{border:1px solid #c5d5e8;border-radius:999px;padding:6px 12px;font-size:12px;font-weight:900;color:#1e3955;background:#f7fbff;white-space:nowrap}.language-toolbar{display:grid;grid-template-columns:1fr 1fr 2fr 1fr 1.2fr .9fr;gap:7px;padding:10px 12px;border-bottom:1px solid #d8e4f1}.language-toolbar button,.language-toolbar select{border:1px solid #c5d5e8;border-radius:11px;background:#fff;padding:8px 10px;font-size:12px;font-weight:850;color:#1d2c40;min-width:0}.languages.compact-languages{flex:1;min-height:0;overflow:auto;padding:10px 12px;display:grid;grid-template-columns:1fr 1fr;align-content:start;gap:8px}.tt-lang{display:flex;align-items:center;gap:10px;border:1px solid #cbd9eb;background:#fff;border-radius:14px;padding:10px 10px;min-height:56px;cursor:pointer}.tt-lang:has(input:checked){background:#eef2ff;border-color:#98aefb}.tt-lang input{accent-color:#6b7df7}.tt-flag{width:30px;height:22px;font-size:22px;line-height:22px;display:flex;align-items:center;justify-content:center;filter:saturate(1.1)}.tt-lang b{display:block;font-size:12px;line-height:1.15}.tt-lang small{display:block;font-size:10px;color:#617389;margin-top:2px}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:10px 14px}.stat-grid div{background:#f7fbff;border:1px solid #d8e4f1;border-radius:12px;padding:8px}.stat-grid span{font-size:10px;color:#607186;font-weight:800}.stat-grid strong{display:block;font-size:16px;color:#1D9E75}.progress-track{height:10px;margin:0 14px 10px;background:#e7eef7;border-radius:999px;overflow:hidden}.progress-track div{height:100%;background:#1D9E75;border-radius:999px}.result-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;padding:0 14px 12px;max-height:114px;overflow:auto}.result-chip{display:flex;align-items:center;gap:8px;border:1px solid #d8e4f1;background:#fbfdff;border-radius:12px;padding:7px}.result-chip span{font-size:18px}.result-chip b{font-size:11px}.result-chip small{display:block;color:#65758a;font-size:9px}.result-chip.done{border-color:#b8ead8;background:#f0fbf6}.result-chip.error{border-color:#ffd2d2;background:#fff5f4}.result-chip.pending{opacity:.82}.global-downloads{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;flex:0 0 auto}.download-info strong{display:block;font-size:15px}.download-info span{font-size:12px;color:#66768a}.download-row{display:flex;gap:8px;align-items:center}.download-all{border:1px solid #c5eadb;background:#f3fcf8;color:#1D9E75;border-radius:14px;padding:12px 18px;font-weight:900;cursor:pointer}.download-all.disabled{opacity:.42;cursor:not-allowed}.download-timer{font-size:12px;color:#687a90;margin-left:10px}.download-timer b{color:#BA7517}.preview-empty{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;text-align:center;flex-direction:column;padding:20px}.empty-icon{font-size:46px;opacity:.35;margin-bottom:8px}.preview-empty h2{font-size:22px;margin-bottom:6px}.preview-empty p{color:#65758a;font-size:13px;max-width:620px}.log-mini{width:min(780px,100%);margin-top:16px;text-align:left}.log-line{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;background:#f7fbff;border:1px solid #dbe7f4;border-radius:10px;padding:7px 9px;margin-top:5px;font-size:11px;color:#27394d}.log-line span{color:#7c8ea5;margin-right:8px}.history-panel{flex:0 0 166px;display:flex;flex-direction:column}.history-panel .panel-head{padding-top:10px;padding-bottom:9px}.history-panel button{border:1px solid #c5d5e8;border-radius:12px;background:#fff;padding:8px 14px;font-weight:900}.history-list{min-height:0;overflow:auto}.history-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-bottom:1px solid #edf2f7;cursor:pointer}.history-item:hover,.history-item.active{background:#f7fbff}.history-item b{display:block;font-size:12px}.history-item span{display:block;font-size:11px;color:#66768a;margin-top:2px}.history-item small{display:block;font-size:10px;color:#7b8b9f;margin-top:1px}.history-item em{font-style:normal;color:#BA7517;font-weight:900}.history-pill{border:1px solid #d8e4f1;border-radius:999px;padding:4px 8px;font-size:10px!important;background:#fff}.history-empty{padding:16px;color:#65758a;font-size:13px}.modal-card{width:min(720px,96vw);background:#fff;border-radius:20px;border:1px solid #cfdceb;box-shadow:0 30px 120px rgba(0,0,0,.2);padding:18px}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.modal-head h2{margin:0}.modal-head p{color:#65758a;font-size:13px;margin-top:4px}.modal-head button{border:0;background:#f0f4f8;border-radius:12px;width:36px;height:36px;font-size:22px}.modal-card textarea{width:100%;min-height:280px;border:1px solid #c5d5e8;border-radius:14px;padding:12px;resize:vertical;font:14px/1.55 ui-sans-serif,system-ui}.modal-footer{display:flex;align-items:center;justify-content:space-between;margin-top:12px}.modal-footer span{color:#65758a;font-size:12px}.modal-footer div{display:flex;gap:8px}.muted-mini{font-size:12px;color:#65758a}.btn.disabled{opacity:.55;pointer-events:none}@media(max-width:1220px){.tt-controls{grid-template-columns:1fr 1fr 1fr}.tt-actions{display:none}.tt-workspace{grid-template-columns:360px 1fr}.mini-calculator{min-width:0}}@media(max-width:900px){.txt-original-page{height:auto;overflow:auto}.tt-workspace{grid-template-columns:1fr}.tt-row,.tt-footer,.global-downloads{align-items:flex-start;flex-direction:column}.tt-controls{grid-template-columns:1fr}.mini-calculator{grid-template-columns:1fr 1fr;width:100%}.history-panel{flex:auto}.languages.compact-languages{max-height:420px}.result-grid{grid-template-columns:1fr 1fr;max-height:none}}


/* TXT Translator v2.3 — embedded in dashboard shell */
.txt-shell{height:100vh;min-height:720px;overflow:hidden}.txt-shell .sidebar{position:relative;z-index:3}.txt-shell .content{height:100vh;overflow:hidden}.txt-shell-topbar{height:58px;flex:0 0 58px}.txt-shell-topbar .topbar-title{display:flex;align-items:center;gap:10px}.tt-inline-status{font-style:normal;font-size:12px;font-weight:800;color:#085041;background:#e9f8f2;border:1px solid #bee8da;border-radius:999px;padding:5px 10px}.topbar-right .active-toggle{background:#e9f8f2;border-color:#bee8da;color:#085041}.txt-body{height:calc(100vh - 58px);overflow:hidden;padding:10px;background:#e8edf3}.txt-embedded{height:100%;padding:0;background:transparent;gap:8px}.tt-topbar-mini{padding:10px 12px;border-radius:16px}.tt-topbar-mini .tt-controls{margin-top:0;grid-template-columns:minmax(180px,2fr) minmax(180px,1.65fr) minmax(150px,1fr) 110px 110px 140px;gap:7px}.tt-topbar-mini .tt-control{min-height:48px;padding:8px 11px;border-radius:12px}.tt-topbar-mini .tt-control strong{font-size:13px}.tt-topbar-mini .tt-control small{font-size:10px}.tt-topbar-mini .tt-control span{font-size:9px}.tt-topbar-mini .tt-run{height:48px;border-radius:12px}.compact-footer{margin-top:7px}.compact-footer .tt-status-text{font-size:11px}.compact-footer .mini-calculator{grid-template-columns:repeat(5,minmax(72px,1fr));gap:6px;min-width:420px}.compact-footer .mini-calculator div{padding:5px 8px;border-radius:10px}.compact-footer .mini-calculator span{font-size:9px}.compact-footer .mini-calculator strong{font-size:12px}.txt-embedded .tt-workspace{grid-template-columns:320px minmax(0,1fr);gap:8px}.txt-embedded .tt-left,.txt-embedded .tt-right{gap:8px}.txt-embedded .tt-panel{border-radius:15px}.txt-embedded .panel-head{padding:10px 12px}.txt-embedded .panel-head h2{font-size:14px}.txt-embedded .panel-head p{font-size:11px}.language-count{font-size:11px;padding:5px 9px}.language-toolbar{grid-template-columns:1fr 1fr;gap:6px;padding:8px}.language-toolbar select{grid-column:1/3}.language-toolbar button,.language-toolbar select{padding:7px 7px;font-size:11px;border-radius:9px}.languages.compact-languages{padding:8px;gap:6px;grid-template-columns:1fr 1fr;overflow:auto;scrollbar-width:thin}.tt-lang{min-height:46px;padding:7px 7px;gap:7px;border-radius:12px;align-items:center}.tt-lang input{width:13px;height:13px;flex:0 0 auto}.tt-lang .lang-name{min-width:0}.tt-lang b{font-size:10.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:88px}.tt-lang small{font-size:9px}.tt-flag.flag-img{width:28px;height:20px;flex:0 0 28px;border-radius:5px;background-size:cover;background-position:center;box-shadow:0 0 0 1px rgba(0,0,0,.12);font-size:0;filter:none}.result-grid{grid-template-columns:repeat(2,1fr);max-height:86px;padding:0 10px 10px;gap:5px}.result-chip{padding:5px;gap:5px}.result-chip .tt-flag.flag-img{width:24px;height:17px;flex-basis:24px}.result-chip b{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.result-chip small{font-size:8px}.stat-grid{padding:8px 10px;gap:5px}.stat-grid div{padding:6px}.stat-grid strong{font-size:14px}.progress-track{margin:0 10px 8px}.global-downloads{padding:10px 12px}.download-info strong{font-size:14px}.download-info span{font-size:11px}.download-all{padding:9px 12px;border-radius:11px;font-size:12px}.preview-empty{min-height:0;flex:1}.preview-empty .empty-icon{font-size:34px;margin-bottom:5px}.preview-empty h2{font-size:18px}.preview-empty p{font-size:12px}.log-mini{margin-top:10px;max-width:760px}.log-line{font-size:10px;padding:6px 8px}.history-panel{flex:0 0 132px;min-height:132px}.history-head{padding:8px 10px}.history-head button{padding:6px 10px;font-size:11px}.history-list{display:flex;gap:8px;overflow-x:auto;overflow-y:hidden;padding:8px 10px;scrollbar-width:thin}.history-item{flex:0 0 calc((100% - 32px)/5);min-width:170px;max-width:230px;height:78px;border:1px solid #d8e4f1;border-radius:12px;background:#fff;padding:8px;display:block}.history-item:hover,.history-item.active{border-color:#8fd8be;background:#f1fbf7}.history-top{display:flex;align-items:center;justify-content:space-between;gap:6px}.history-item b{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:115px}.history-item span{font-size:10px}.history-item small{font-size:9px}.history-pill{font-size:8px!important;padding:2px 6px}.settings-card{background:#fff;border:1px solid var(--line2);border-radius:20px;padding:20px;max-width:760px;margin-bottom:14px;box-shadow:0 10px 34px rgba(10,25,20,.04)}.settings-card h2{font-size:20px;margin-bottom:6px}.settings-card p{color:var(--muted);line-height:1.55;margin-bottom:14px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px}.settings-grid label{display:flex;flex-direction:column;gap:6px}.settings-grid span{font-size:12px;color:var(--muted);font-weight:700}.settings-grid input{border:1px solid var(--line);border-radius:12px;padding:11px;background:#f8faf9}.btn.disabled{opacity:.55;pointer-events:none}
@media(max-width:1320px){.tt-topbar-mini .tt-controls{grid-template-columns:1fr 1fr 1fr}.txt-embedded .tt-workspace{grid-template-columns:300px 1fr}.compact-footer{align-items:flex-start;flex-direction:column}.compact-footer .mini-calculator{width:100%;min-width:0}.history-item{flex-basis:220px}}
@media(max-width:980px){.txt-shell{height:auto;overflow:auto}.txt-body{height:auto;overflow:auto}.txt-embedded{height:auto}.txt-embedded .tt-workspace{grid-template-columns:1fr}.history-panel{flex:auto}.history-list{display:flex}.history-item{flex-basis:220px}.tt-topbar-mini .tt-controls{grid-template-columns:1fr}.compact-footer .mini-calculator{grid-template-columns:1fr 1fr}.settings-grid{grid-template-columns:1fr}}

/* TXT Translator v2.4 — sound signal + language preview polishing */
.txt-shell-topbar{height:54px;flex-basis:54px}
.txt-body{height:calc(100vh - 54px);padding:8px;background:#e9eef4}
.tt-topbar-mini{padding:9px 10px}
.tt-topbar-mini .tt-controls{grid-template-columns:minmax(180px,1.35fr) minmax(180px,1.25fr) minmax(138px,.75fr) 94px 94px 126px;gap:7px}
.tt-topbar-mini .tt-control{min-height:44px;padding:7px 10px}
.tt-topbar-mini .tt-control strong{font-size:12.5px;line-height:1.1}
.tt-topbar-mini .tt-control small{font-size:10px}
.tt-topbar-mini .tt-run{height:44px;padding:0 14px}
.compact-footer{margin-top:6px}
.compact-footer .mini-calculator div{min-height:35px}
.txt-embedded .tt-workspace{grid-template-columns:315px minmax(0,1fr);gap:8px}
.txt-embedded .tt-left{min-width:0;overflow:hidden}
.txt-embedded .tt-right{min-width:0;overflow:hidden}
.txt-embedded .tt-panel{box-shadow:0 8px 26px rgba(22,38,56,.035)}
.language-panel{min-height:0;overflow:hidden}
.languages.compact-languages{grid-template-columns:1fr 1fr;gap:6px;align-content:start;max-height:calc(100vh - 430px);min-height:230px;overflow-y:auto;overflow-x:hidden}
.tt-lang{min-width:0;min-height:42px;padding:6px 7px;display:grid;grid-template-columns:14px 30px minmax(0,1fr)}
.tt-lang input{margin:0}
.tt-lang b{max-width:100%;font-size:10.3px}
.tt-lang small{font-size:8.5px;line-height:1}
.tt-flag.flag-img{display:inline-block;width:30px;height:21px;flex:0 0 30px;border-radius:5px;background-size:cover;background-position:center;background-repeat:no-repeat;box-shadow:0 0 0 1px rgba(20,35,55,.14),0 2px 5px rgba(10,20,30,.06)}
.result-grid{display:grid;grid-template-columns:1fr 1fr;gap:5px;max-height:98px;overflow:auto;padding:0 10px 10px}
.result-chip{appearance:none;border:1px solid #d8e4f1;background:#fbfdff;border-radius:11px;padding:5px;display:flex;align-items:center;gap:6px;text-align:left;cursor:pointer;min-width:0;font-family:inherit;color:inherit}
.result-chip:hover,.result-chip.active{border-color:#1D9E75;background:#f1fbf7}
.result-chip.done{border-color:#b8ead8;background:#f0fbf6}.result-chip.error{border-color:#ffd2d2;background:#fff5f4}.result-chip.pending{opacity:.84}
.result-chip-text{min-width:0;display:block}.result-chip-text b{display:block;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.result-chip-text small{display:block;font-size:8.5px;color:#6a7b90}
.txt-preview-panel{flex:1;min-height:0;display:flex;flex-direction:column;padding:0;overflow:hidden}
.preview-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:18px 20px 10px;border-bottom:1px solid #edf2f7;flex:0 0 auto}
.preview-head h2{display:flex;align-items:center;gap:9px;margin:0 0 4px;font-size:19px;line-height:1.2;color:#122033}.preview-head p{font-size:12px;color:#64758b;margin:0}.preview-status{font-size:10px;font-weight:900;color:#085041;background:#e9f8f2;border:1px solid #bee8da;border-radius:999px;padding:4px 9px;text-transform:uppercase}
.preview-tabs{display:flex;gap:6px;padding:10px 12px;border-bottom:1px solid #edf2f7;overflow-x:auto;flex:0 0 auto;scrollbar-width:thin}.preview-tab{appearance:none;border:1px solid #d8e4f1;background:#fff;border-radius:11px;padding:5px 8px;display:flex;align-items:center;gap:6px;white-space:nowrap;cursor:pointer;font-family:inherit;font-size:11px;font-weight:800;color:#1c2b3d}.preview-tab .tt-flag.flag-img{width:24px;height:17px;flex-basis:24px}.preview-tab:hover,.preview-tab.active{border-color:#1D9E75;background:#f1fbf7}.preview-tab.done::after{content:'✓';color:#1D9E75;font-weight:900;margin-left:1px}
.preview-text{flex:1;min-height:0;margin:0;padding:18px 22px;overflow:auto;white-space:pre-wrap;word-break:break-word;background:#fff;font:14px/1.65 ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#162436}.preview-placeholder{margin:20px;border:1px dashed #c9d7e7;background:#f8fbff;border-radius:16px;padding:24px;text-align:center;color:#627389}.preview-logs{padding:10px 18px;width:100%;max-width:none;overflow:auto}.txt-preview-panel>.empty-icon{font-size:42px;opacity:.35;margin:110px auto 8px}.txt-preview-panel>h2{text-align:center;font-size:20px}.txt-preview-panel>p{text-align:center;color:#65758a;max-width:580px;margin:0 auto}
.history-panel{flex:0 0 124px}.history-item{height:70px}.history-list{padding:7px 10px}.global-downloads{flex:0 0 56px;padding:8px 12px}.download-all{padding:8px 12px}.download-info strong{font-size:13px}.download-info span{font-size:10.5px}.download-timer{font-size:11px}
.topbar-right .btn.small{border-radius:12px;padding:9px 12px}.topbar-right .active-toggle{background:#f3fcf8;border-color:#c5eadb;color:#1D9E75}
@media(max-width:1360px){.tt-topbar-mini .tt-controls{grid-template-columns:1fr 1fr 1fr}.tt-topbar-mini .tt-run{grid-column:auto}.txt-embedded .tt-workspace{grid-template-columns:300px 1fr}.languages.compact-languages{max-height:360px}.preview-text{font-size:13px}}


/* v2.5 TXT Wizard UI: dashboard-friendly, no clutter */
.txt5-shell .sidebar{width:252px}.txt5-body{height:calc(100vh - 54px);overflow:hidden;background:#f4f6f4;padding:14px}.txt5-page{height:100%;display:flex;flex-direction:column;gap:12px;min-width:0}.txt5-layout{flex:1;min-height:0;display:grid;grid-template-columns:minmax(420px,0.92fr) minmax(520px,1.08fr);gap:12px}.txt5-card{background:#fff;border:1px solid #dfe7e2;border-radius:20px;box-shadow:0 12px 36px rgba(13,30,24,.055);min-width:0}.txt5-start-card,.txt5-monitor-card{min-height:0;overflow:hidden;display:flex;flex-direction:column;padding:18px}.txt5-section-title{display:flex;align-items:flex-start;gap:12px;margin-bottom:14px}.txt5-section-title>span{width:30px;height:30px;border-radius:12px;background:#e5f7f1;color:#08704f;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:12px;flex-shrink:0}.txt5-section-title h2{font-size:18px;letter-spacing:-.035em;margin:0}.txt5-section-title p{font-size:12px;color:#708178;line-height:1.45;margin-top:2px}.txt5-drop{position:relative;border:1.5px dashed #b9c8c0;border-radius:20px;background:linear-gradient(180deg,#fbfdfc,#f7faf8);min-height:190px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:22px;cursor:pointer;transition:.16s}.txt5-drop.drag,.txt5-drop:hover{border-color:#1D9E75;background:#f2fbf7}.txt5-drop input{position:absolute;inset:0;opacity:0;pointer-events:none}.drop-icon{width:46px;height:46px;border-radius:18px;background:#eef4f1;color:#6e7c75;display:flex;align-items:center;justify-content:center;font-size:26px;margin-bottom:10px}.txt5-drop h3{font-size:20px;letter-spacing:-.04em;margin-bottom:4px}.txt5-drop p{font-size:13px;color:#68776f}.source-buttons{display:flex;gap:8px;margin-top:16px;position:relative;z-index:2}.source-preview{height:104px;border:1px solid #e4ebe7;background:#fbfdfc;border-radius:16px;margin-top:12px;overflow:hidden}.source-preview pre{height:100%;padding:12px 14px;white-space:pre-wrap;word-break:break-word;font:12px/1.55 ui-sans-serif,system-ui;color:#617169;overflow:auto}.txt5-options{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:12px}.option-card{border:1px solid #dfe7e2;background:#fff;border-radius:16px;padding:12px;text-align:left;cursor:pointer;min-height:106px;display:flex;flex-direction:column;gap:5px;transition:.16s}.option-card:hover{border-color:#9fd8c3;box-shadow:0 10px 26px rgba(29,158,117,.09)}.option-icon{font-size:20px}.option-card b{font-size:13px}.option-card em{font-style:normal;font-size:12px;color:#08704f;font-weight:800;line-height:1.25}.option-card small{font-size:11px;color:#77877f;line-height:1.3}.flag-strip{display:flex;align-items:center;gap:3px;flex-wrap:wrap;margin-top:auto}.flag-strip .tt-flag.flag-img{width:22px;height:15px;flex-basis:22px;border-radius:4px}.mini-more{font-size:10px;background:#eef6f2;color:#08704f;border-radius:999px;padding:2px 5px;font-weight:800}.txt5-submit-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding-top:14px}.txt5-calc{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:#718178;font-size:11px}.txt5-calc span{background:#f3f7f5;border:1px solid #e1e9e5;border-radius:999px;padding:5px 8px}.txt5-run{height:46px;min-width:160px;border-radius:15px;font-weight:850}.txt5-monitor-card .progress-track.big{height:10px;margin:0 0 12px}.txt5-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:10px}.txt5-stats div{background:#f7faf8;border:1px solid #e1e9e5;border-radius:14px;padding:10px;text-align:center}.txt5-stats b{display:block;font-size:18px;color:#08704f}.txt5-stats span{font-size:10px;color:#75867e;text-transform:uppercase;font-weight:800}.txt5-result-chips{display:flex;gap:6px;overflow-x:auto;padding-bottom:7px;margin-bottom:8px;scrollbar-width:thin}.txt5-result-chips .result-chip{flex:0 0 auto;min-width:128px;border-radius:13px}.monitor-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:4px 0 10px}.monitor-actions .download-row{margin:0;display:flex;gap:7px}.monitor-actions .download-all{padding:8px 12px;font-size:12px}.monitor-actions .download-timer{font-size:11px;color:#BA7517;white-space:nowrap}.txt5-preview-box{flex:1;min-height:0;border:1px solid #e2eae6;border-radius:16px;overflow:hidden;background:#fff;display:flex;flex-direction:column}.txt5-preview-box .preview-head{padding:12px 14px}.txt5-preview-box .preview-tabs{padding:8px 10px;gap:6px;display:flex;overflow-x:auto;border-top:1px solid #edf2ef;border-bottom:1px solid #edf2ef}.txt5-preview-box .preview-tab{flex:0 0 auto}.txt5-preview-box .preview-text{font-size:13px;padding:14px;min-height:0}.txt5-preview-box .preview-logs{max-height:240px}.txt5-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#6e7d75;padding:30px}.txt5-empty div{font-size:48px;opacity:.45;margin-bottom:10px}.txt5-empty h3{color:#18261f;font-size:20px;letter-spacing:-.04em;margin-bottom:8px}.txt5-empty p{max-width:520px;line-height:1.6;font-size:13px}.txt5-history-card{flex:0 0 130px;overflow:hidden;display:flex;flex-direction:column}.txt5-history-card .panel-head{padding:10px 14px}.txt5-history-list{display:flex;gap:8px;overflow-x:auto;overflow-y:hidden;padding:0 14px 12px}.txt5-history-list .history-item{flex:0 0 210px;height:72px;border:1px solid #dfe7e2;border-radius:14px;background:#fff}.txt5-history-list .history-item.active{border-color:#1D9E75;background:#f2fbf7}.txt5-modal{width:min(860px,96vw);max-height:88vh;display:flex;flex-direction:column}.txt5-modal.small-modal{width:min(520px,96vw)}.txt5-modal-languages{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;overflow:auto;padding:6px 2px 10px}.txt5-modal-languages .tt-lang{min-height:52px}.txt5-lang-toolbar{display:grid;grid-template-columns:repeat(6,auto);gap:8px;margin-bottom:10px}.txt5-lang-toolbar button,.txt5-lang-toolbar select{border:1px solid #d6e1dc;border-radius:11px;background:#fff;padding:8px 10px;font-weight:800}.voice-toggle{display:flex;align-items:center;gap:10px;border:1px solid #dfe7e2;border-radius:14px;padding:12px;font-weight:800;margin-bottom:12px}.voice-select{display:flex;flex-direction:column;gap:6px}.voice-select span{font-size:12px;color:#6e7d75;font-weight:800}.voice-select select{border:1px solid #dfe7e2;border-radius:13px;padding:11px;background:#fff}.settings-card .btn + .btn{margin-left:8px}
@media(max-width:1320px){.txt5-layout{grid-template-columns:1fr}.txt5-body{overflow:auto}.txt5-page{height:auto}.txt5-monitor-card{min-height:520px}.txt5-history-card{flex:0 0 136px}.txt5-options{grid-template-columns:1fr 1fr 1fr}}
@media(max-width:920px){.txt5-shell{height:auto}.txt5-body{height:auto}.txt5-options{grid-template-columns:1fr}.txt5-submit-row{flex-direction:column;align-items:stretch}.txt5-run{width:100%}.txt5-modal-languages{grid-template-columns:1fr 1fr}.txt5-lang-toolbar{grid-template-columns:1fr 1fr}.txt5-lang-toolbar select{grid-column:1/3}.txt5-stats{grid-template-columns:1fr 1fr}.monitor-actions{flex-direction:column;align-items:flex-start}}

/* v2.6 TXT: process replaces source after launch */
.txt5-layout.no-job{grid-template-columns:minmax(520px,760px);justify-content:center;align-items:center;min-height:0}
.txt5-layout.with-job{grid-template-columns:1fr;min-height:0}
.txt5-page.job-empty{justify-content:center}
.txt5-page.job-active{justify-content:flex-start}
.txt5-start-focused{max-width:760px;width:100%;align-self:center;justify-self:center;padding:20px}
.txt5-start-focused .txt5-drop{min-height:160px}
.txt5-start-focused .source-preview{height:132px}
.txt5-start-focused .txt5-options{grid-template-columns:repeat(3,minmax(0,1fr))}
.txt5-monitor-focused{padding:14px 16px;display:flex;flex-direction:column;min-height:0}
.txt5-monitor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:8px}
.txt5-monitor-head .txt5-section-title{margin-bottom:0}.txt5-monitor-head .txt5-section-title h2{font-size:17px}.txt5-monitor-head .txt5-section-title p{font-size:11px;max-width:820px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.compact-status{min-width:86px;border:1px solid #dce7e2;background:#f7fbf9;border-radius:15px;padding:8px 10px;text-align:center}.compact-status b{display:block;color:#08704f;font-size:17px}.compact-status span{font-size:10px;color:#718178;text-transform:uppercase;font-weight:850}
.txt5-monitor-focused .progress-track.big{height:8px;margin:0 0 8px}.compact-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-bottom:9px}.compact-stats div{padding:7px 8px;border-radius:12px}.compact-stats b{font-size:15px}.compact-stats span{font-size:9px}
.txt5-workspace{flex:1;min-height:0;display:grid;grid-template-columns:230px minmax(0,1fr);gap:10px}.txt5-result-sidebar{min-height:0;border:1px solid #e2eae6;border-radius:16px;background:#fbfdfc;display:flex;flex-direction:column;overflow:hidden}.txt5-result-sidebar h3{font-size:12px;color:#6f7d76;text-transform:uppercase;letter-spacing:.06em;margin:0;padding:10px 12px;border-bottom:1px solid #edf2ef}.txt5-result-chips.vertical{display:flex;flex-direction:column;gap:6px;overflow:auto;padding:10px;margin:0}.txt5-result-chips.vertical .result-chip{width:100%;min-width:0;min-height:42px;justify-content:flex-start}.txt5-result-chips.vertical .result-chip .tt-flag.flag-img{width:24px;height:16px;flex-basis:24px}.txt5-result-chips.vertical .result-chip-text b{font-size:12px}.txt5-result-chips.vertical .result-chip-text small{font-size:10px}.txt5-preview-box{min-height:0}.txt5-preview-box .preview-head{padding:10px 12px}.txt5-preview-box .preview-head h2{font-size:17px}.txt5-preview-box .preview-head p{font-size:11px}.txt5-preview-box .preview-tabs{display:none}.txt5-preview-box .preview-text{font-size:13px;line-height:1.62;overflow:auto;flex:1;min-height:0}.txt5-log-dock{flex:0 0 auto;margin-top:9px;border:1px solid #e2eae6;border-radius:14px;background:#fbfdfc;overflow:hidden}.txt5-log-dock h3{font-size:11px;color:#6f7d76;text-transform:uppercase;letter-spacing:.06em;margin:0;padding:8px 10px;border-bottom:1px solid #edf2ef}.txt5-log-dock .log-mini{max-height:82px;overflow:auto;padding:8px}.txt5-log-dock .log-line{font-size:11px;padding:5px 7px}.compact-actions{flex:0 0 auto;margin:9px 0 0;justify-content:flex-end}.compact-actions .download-row{margin-left:auto}.compact-actions .download-timer{font-size:10px}
.txt5-history-card{flex:0 0 118px}.txt5-history-card .panel-head{padding:8px 12px}.txt5-history-card .panel-head h2{font-size:14px}.txt5-history-card .panel-head p{font-size:11px}.txt5-history-list .history-item{height:64px;flex-basis:198px}.source-preview pre{overflow:auto}.txt5-body{overflow:hidden}.txt5-page{overflow:hidden}
@media(max-width:1320px){.txt5-layout.no-job{grid-template-columns:minmax(420px,720px)}.txt5-layout.with-job{grid-template-columns:1fr}.txt5-workspace{grid-template-columns:200px minmax(0,1fr)}.txt5-body{overflow:hidden}.txt5-page{height:100%}}
@media(max-width:920px){.txt5-layout.no-job{grid-template-columns:1fr}.txt5-workspace{grid-template-columns:1fr}.txt5-result-sidebar{max-height:180px}.compact-actions{align-items:stretch}.compact-actions .download-row{margin-left:0}.txt5-body{overflow:auto}.txt5-page{height:auto}.txt5-start-focused .txt5-options{grid-template-columns:1fr}.txt5-history-card{flex-basis:132px}}

/* v2.7 TXT: compact process, preview-first, clean history */
.txt5-calc span:nth-child(3){max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.txt5-monitor-head{align-items:center;margin-bottom:7px}
.txt5-monitor-head .txt5-section-title{flex:1 1 auto;min-width:260px}
.txt5-inline-stats{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex:0 1 auto;flex-wrap:wrap;max-width:620px}
.txt5-inline-stats span{display:inline-flex;align-items:center;gap:4px;padding:5px 8px;border:1px solid #dfe9e4;background:#f7fbf9;border-radius:999px;font-size:11px;color:#627369;white-space:nowrap}
.txt5-inline-stats b{font-size:12px;color:#08704f;font-weight:900;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.txt5-inline-stats .has-error{border-color:#f2c7c0;background:#fff6f4;color:#9a2f1f}.txt5-inline-stats .has-error b{color:#b23a2d}
.txt5-monitor-focused .compact-status{min-width:72px;padding:6px 8px;border-radius:13px}.txt5-monitor-focused .compact-status b{font-size:15px}.txt5-monitor-focused .compact-status span{font-size:9px}
.txt5-monitor-focused .progress-track.big{height:6px;margin:0 0 9px}
.txt5-monitor-focused .txt5-workspace{grid-template-columns:220px minmax(0,1fr);gap:10px;min-height:0;flex:1}
.txt5-monitor-focused .txt5-result-sidebar h3{padding:8px 11px;font-size:11px}.txt5-result-chips.vertical{gap:5px;padding:8px}.txt5-result-chips.vertical .result-chip{min-height:38px;border-radius:12px}.txt5-result-chips.vertical .result-chip-text b{font-size:11px}.txt5-result-chips.vertical .result-chip-text small{font-size:9px}
.txt5-preview-box .preview-head{padding:10px 12px}.txt5-preview-box .preview-head h2{font-size:16px}.txt5-preview-box .preview-head p{font-size:11px}.txt5-preview-box .preview-status.error{background:#fff0ed;border-color:#f0b8ad;color:#ab392c}
.txt5-preview-box .preview-text{padding:14px 16px;font-size:13px;line-height:1.65}.txt5-preview-box .preview-placeholder{height:100%;display:flex;align-items:center;justify-content:center;text-align:center;color:#6d7d75;padding:28px;font-size:13px}
.txt5-log-dock{display:none!important}.txt5-stats.compact-stats{display:none!important}
.txt5-history-card.history-compact{flex:0 0 92px;padding:0;border-radius:18px;overflow:hidden;background:transparent;border:0;box-shadow:none}.txt5-history-card.history-compact .txt5-history-list{padding:8px 0 10px 0;gap:8px}.txt5-history-card.history-compact .history-item{height:64px;flex-basis:210px;background:#fff}.txt5-history-card.history-compact .history-empty{padding:15px 2px;color:#728179}
.txt5-history-card.history-compact .panel-head{display:none}
.monitor-actions.compact-actions{margin-top:8px}.monitor-actions.compact-actions .download-all{padding:7px 11px}.monitor-actions.compact-actions .download-timer{font-size:10px}
@media(max-width:1320px){.txt5-monitor-focused .txt5-workspace{grid-template-columns:200px minmax(0,1fr)}.txt5-inline-stats{justify-content:flex-start;max-width:none}.txt5-monitor-head{align-items:flex-start;flex-wrap:wrap}}
@media(max-width:920px){.txt5-monitor-focused .txt5-workspace{grid-template-columns:1fr}.txt5-inline-stats{width:100%}.txt5-history-card.history-compact{flex-basis:112px}}
/* v2.8 Voice API settings */
.voice-warning{border:1px solid #f0c3bb;background:#fff4f2;color:#9b3529;border-radius:12px;padding:9px 11px;font-size:12px;margin-bottom:10px;line-height:1.35}.settings-body{background:#f6f8f6}.settings-actions{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 12px}.settings-grid select{border:1px solid var(--line);border-radius:12px;padding:11px;background:#f8faf9}.voice-status-card{border:1px solid #e0e8e4;background:#fbfdfc;border-radius:16px;padding:12px;margin:12px 0;display:flex;flex-direction:column;gap:3px}.voice-status-card.connected{border-color:#a8dec9;background:#f0fbf6}.voice-status-card b{font-size:14px;color:#16251e}.voice-status-card span{font-size:12px;color:#65756d}.voice-status-card em{font-style:normal;color:#a53a2e;font-size:12px;margin-top:4px}.template-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.template-pill{border:1px solid #dce7e2;background:#fff;border-radius:999px;padding:6px 9px;font-size:12px;color:#405149}.template-pill.active{border-color:#1D9E75;background:#e9f8f2;color:#085041;font-weight:800}.btn.danger{border-color:#f0c3bb;color:#9b3529;background:#fff7f5}.btn:disabled,button:disabled,select:disabled,input:disabled{opacity:.55;cursor:not-allowed}

/* v2.9 audio progress / per-language voice statuses */
.progress-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:-3px 0 9px;color:#65746d;font-size:11px;font-weight:800;flex-wrap:wrap}.progress-meta span{background:#f7fbf9;border:1px solid #e0e9e4;border-radius:999px;padding:4px 8px}.result-chip .audio-line{margin-top:2px;font-size:9px!important;font-weight:850}.result-chip.audio-done{box-shadow:inset 3px 0 0 #1D9E75}.result-chip.audio-processing{box-shadow:inset 3px 0 0 #BA7517}.result-chip.audio-queued{box-shadow:inset 3px 0 0 #8aa0b8}.result-chip.audio-error{box-shadow:inset 3px 0 0 #d34b39}.audio-line.audio-done{color:#08704f}.audio-line.audio-processing{color:#a15f0d}.audio-line.audio-queued{color:#67788d}.audio-line.audio-error{color:#b23a2d}.audio-preview-box{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 12px 10px;padding:9px 10px;border:1px solid #d9e8e1;background:#f7fbf9;border-radius:14px;flex-wrap:wrap}.audio-preview-box.muted{color:#65746d;background:#fbfcfd}.audio-preview-box b{display:block;font-size:12px;color:#0a704f}.audio-preview-box span{display:block;font-size:11px;color:#66766f;margin-top:1px;max-width:520px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.audio-buttons{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.audio-player{flex-basis:100%}.audio-player audio{width:100%;height:34px;margin-top:4px}.txt5-result-chips.vertical .result-chip{align-items:flex-start}.txt5-result-chips.vertical .result-chip .tt-flag.flag-img{margin-top:2px}.txt5-preview-box .preview-text{padding-top:10px}@media(max-width:920px){.progress-meta{align-items:flex-start;flex-direction:column}.audio-preview-box{align-items:flex-start;flex-direction:column}.audio-buttons{width:100%}}


/* v2.10 status colors, voice balance, history delete */
.status-done{border-color:#bdebd9!important;background:#ecfbf5!important;color:#08704f!important}
.status-error{border-color:#f4b9ad!important;background:#fff0ee!important;color:#b23a2d!important}
.status-wait{border-color:#f1d29a!important;background:#fff8e8!important;color:#a15f0d!important}
.status-run{border-color:#f1d29a!important;background:#fff5df!important;color:#a15f0d!important}
.status-muted{border-color:#d7dde4!important;background:#f5f7f9!important;color:#667483!important}
.preview-status.status-done{color:#08704f!important}.preview-status.status-error{color:#b23a2d!important}.preview-status.status-wait,.preview-status.status-run{color:#a15f0d!important}
.compact-status.status-done b,.compact-status.status-done span{color:#08704f!important}
.compact-status.status-error b,.compact-status.status-error span{color:#b23a2d!important}
.compact-status.status-wait b,.compact-status.status-wait span,.compact-status.status-run b,.compact-status.status-run span{color:#a15f0d!important}
.history-item{position:relative;padding-right:34px!important}.history-delete{position:absolute;top:7px;right:7px;width:22px;height:22px;border:1px solid #e0e8e4;background:#fff;border-radius:999px;color:#8b9a93;font-size:16px;line-height:18px;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:2}.history-delete:hover{border-color:#f0b8ad;background:#fff0ee;color:#b23a2d}.history-delete:disabled{opacity:.35;cursor:not-allowed}.history-pill.status-done{font-weight:900}.history-pill.status-error{font-weight:900}.history-pill.status-wait,.history-pill.status-run{font-weight:900}.voice-balance-card{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #dfe7e2;background:#f7fbf9;border-radius:14px;padding:10px 12px;margin-bottom:12px}.voice-balance-card span{font-size:12px;color:#6e7d75;font-weight:800}.voice-balance-card b{font-size:14px;color:#08704f}
.result-chip.pending{border-color:#f1d29a;background:#fff8e8;opacity:1}.result-chip.audio-queued{box-shadow:inset 3px 0 0 #BA7517}.audio-line.audio-queued{color:#a15f0d}

/* v3.0 Prompt Wizard dashboard MVP */
.wizard-body{background:#f6f8f6;overflow:hidden}.wizard-grid{height:calc(100vh - 190px);display:grid;grid-template-columns:minmax(420px,560px) minmax(0,1fr);gap:14px;min-height:0}.wizard-card{background:#fff;border:1px solid #dfe8e3;border-radius:22px;box-shadow:0 12px 42px rgba(10,25,20,.05);padding:16px;min-height:0;overflow:hidden}.wizard-form-card{display:flex;flex-direction:column}.wizard-step-title{display:flex;gap:12px;align-items:flex-start;margin-bottom:12px}.wizard-step-title>span{width:32px;height:32px;border-radius:12px;background:#eef5ff;color:#2754a8;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:900}.wizard-step-title h2{font-size:17px;letter-spacing:-.03em;margin-bottom:3px}.wizard-step-title p{font-size:12px;color:#66746e;line-height:1.45}.wizard-fields{overflow:auto;display:flex;flex-direction:column;gap:10px;padding-right:3px}.wizard-fields label span{display:block;font-size:11px;color:#66746e;font-weight:900;margin-bottom:5px;text-transform:uppercase;letter-spacing:.04em}.wizard-fields input,.wizard-fields textarea{width:100%;border:1px solid #dfe8e3;background:#fbfdfc;border-radius:14px;padding:10px 11px;font-size:13px;color:#14231d;outline:none}.wizard-fields textarea{min-height:74px;resize:vertical}.wizard-fields input:focus,.wizard-fields textarea:focus{border-color:#7F77DD;box-shadow:0 0 0 3px rgba(127,119,221,.12)}.wizard-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.wizard-row.three{grid-template-columns:1fr 1fr 1fr}.wizard-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #edf2ef;margin-top:12px;padding-top:12px}.wizard-footer span{font-size:12px;color:#66746e;font-weight:800}.wizard-result-card{display:flex;flex-direction:column}.wizard-result-empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#66746e;border:1px dashed #dfe8e3;border-radius:18px;padding:28px}.wizard-result-empty b{font-size:18px;color:#14231d;margin-bottom:6px}.wizard-result-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.wizard-result-head h2{font-size:18px;letter-spacing:-.03em}.wizard-result-head p{font-size:12px;color:#66746e;margin-top:3px}.wizard-preview{flex:1;min-height:0;overflow:auto;border:1px solid #dfe8e3;background:#fbfdfc;border-radius:16px;padding:14px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;line-height:1.6;white-space:pre-wrap;color:#14231d}.wizard-history{margin-top:12px}.wizard-history .history-item{flex-basis:230px}@media(max-width:1180px){.wizard-body{overflow:auto}.wizard-grid{height:auto;grid-template-columns:1fr}.wizard-card{overflow:visible}.wizard-fields{overflow:visible}.wizard-result-card{min-height:520px}}@media(max-width:760px){.wizard-row,.wizard-row.three{grid-template-columns:1fr}.wizard-result-head{flex-direction:column}.wizard-body{padding:14px}.wizard-grid{gap:10px}}

/* v3.1 Prompt Wizard AI builder */
.wizard-grid.v31{grid-template-columns:minmax(520px,680px) minmax(0,1fr);height:calc(100vh - 178px)}
.wizard-ai-panel{border:1px solid #e6e2ff;background:linear-gradient(180deg,#fbfaff,#fff);border-radius:18px;padding:14px;margin-bottom:14px;display:flex;flex-direction:column;gap:10px;flex-shrink:0}.wizard-ai-panel h2{font-size:18px;letter-spacing:-.04em;margin-bottom:2px}.wizard-ai-panel p{font-size:12px;color:#66746e;line-height:1.45}.wizard-ai-panel textarea{width:100%;min-height:92px;border:1px solid #dcd6ff;background:#fff;border-radius:14px;padding:11px;font-size:13px;resize:vertical;outline:none}.wizard-ai-panel textarea:focus{border-color:#7F77DD;box-shadow:0 0 0 3px rgba(127,119,221,.12)}.wizard-ai-row{display:grid;grid-template-columns:1fr auto;gap:8px}.wizard-ai-row input{border:1px solid #dfe8e3;border-radius:13px;padding:10px 11px;font-size:13px}.wizard-notes{display:flex;flex-wrap:wrap;gap:6px}.wizard-notes span{font-size:11px;font-weight:800;color:#6159b8;background:#f2f0ff;border:1px solid #dfdcff;border-radius:999px;padding:5px 8px}.wizard-presets{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}.wizard-preset{text-align:left;border:1px solid #dfe8e3;border-radius:14px;background:#fff;padding:9px;cursor:pointer;transition:.15s}.wizard-preset:hover{border-color:#7F77DD;background:#fbfaff}.wizard-preset b{display:block;font-size:12px;color:#14231d;margin-bottom:3px}.wizard-preset span{display:block;font-size:10.5px;color:#66746e;line-height:1.35}.wizard-step-title.compact{margin-bottom:10px}.wizard-row.four{grid-template-columns:repeat(4,1fr)}.wizard-result-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.wizard-summary-row{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}.wizard-summary-row span{font-size:11px;font-weight:900;color:#6159b8;background:#f2f0ff;border:1px solid #dfdcff;border-radius:999px;padding:6px 9px}.wizard-form-card .wizard-fields{padding-right:6px}.wizard-form-card .wizard-fields textarea{min-height:68px}.wizard-form-card .wizard-fields input{min-height:38px}.wizard-result-card .wizard-preview{font-size:12px;line-height:1.55}.wizard-history .history-delete{opacity:.75}
@media(max-width:1380px){.wizard-grid.v31{grid-template-columns:1fr;height:auto}.wizard-body{overflow:auto}.wizard-card{overflow:visible}.wizard-fields{overflow:visible}.wizard-presets{grid-template-columns:1fr}}
@media(max-width:860px){.wizard-ai-row{grid-template-columns:1fr}.wizard-row.four{grid-template-columns:1fr 1fr}.wizard-presets{grid-template-columns:1fr}.wizard-grid.v31{gap:10px}}

/* v3.2 Prompt Wizard start modes */
.wizard-start-wrap{height:calc(100vh - 128px);display:flex;flex-direction:column;gap:14px;min-height:0}.wizard-start-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;background:#fff;border:1px solid #dfe8e3;border-radius:24px;padding:22px;box-shadow:0 12px 42px rgba(10,25,20,.05)}.wizard-kicker{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:900;color:#6159b8;background:#f2f0ff;border:1px solid #dfdcff;border-radius:999px;padding:6px 10px;margin-bottom:10px}.wizard-start-hero h1{font-size:32px;line-height:1.08;letter-spacing:-.055em;margin-bottom:8px;color:#14231d}.wizard-start-hero p{font-size:14px;color:#66746e;line-height:1.55;max-width:760px}.wizard-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;min-height:280px}.wizard-choice-card{position:relative;text-align:left;background:#fff;border:1px solid #dfe8e3;border-radius:24px;padding:22px;cursor:pointer;box-shadow:0 12px 42px rgba(10,25,20,.05);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;overflow:hidden}.wizard-choice-card:hover{transform:translateY(-2px);border-color:#9bdfc9;box-shadow:0 18px 50px rgba(10,25,20,.08)}.wizard-choice-card:before{content:'';position:absolute;left:0;right:0;top:0;height:5px;background:#1D9E75}.wizard-choice-card.ai:before{background:#7F77DD}.wizard-choice-card.url:before{background:#BA7517}.choice-num{position:absolute;right:18px;top:16px;font-size:12px;font-weight:900;color:#90a19a;background:#f6f8f6;border:1px solid #e2ebe6;border-radius:999px;padding:5px 9px}.choice-icon{width:46px;height:46px;border-radius:16px;display:flex;align-items:center;justify-content:center;font-size:21px;background:#eefaf5;color:#085041;margin-bottom:18px}.wizard-choice-card.ai .choice-icon{background:#f2f0ff;color:#26215C}.wizard-choice-card.url .choice-icon{background:#fff4e4;color:#6b3e06}.wizard-choice-card h2{font-size:22px;line-height:1.14;letter-spacing:-.045em;margin-bottom:10px;color:#14231d}.wizard-choice-card p{font-size:13px;color:#66746e;line-height:1.55;margin-bottom:18px}.wizard-choice-card b{font-size:13px;color:#1D9E75}.wizard-choice-card.ai b{color:#7F77DD}.wizard-choice-card.url b{color:#BA7517}.chooser-history{margin-top:auto}.wizard-grid.v32{height:calc(100vh - 190px);display:grid;grid-template-columns:minmax(520px,720px) minmax(0,1fr);gap:14px;min-height:0}.wizard-stage-scroll{height:100%;display:flex;flex-direction:column;min-height:0}.wizard-stage-scroll .wizard-fields{min-height:0;flex:1}.wizard-mode-banner{display:flex;align-items:flex-start;gap:12px;border-radius:18px;border:1px solid #dfe8e3;background:#fff;padding:14px;margin-bottom:12px;flex-shrink:0}.wizard-mode-banner>span{width:34px;height:34px;border-radius:13px;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:900;background:#eef5ff;color:#2754a8;flex-shrink:0}.wizard-mode-banner.ai{border-color:#dfdcff;background:linear-gradient(180deg,#fbfaff,#fff)}.wizard-mode-banner.manual{border-color:#d8eee5;background:linear-gradient(180deg,#f7fffb,#fff)}.wizard-mode-banner.url{border-color:#f5dfc0;background:linear-gradient(180deg,#fffaf3,#fff)}.wizard-mode-banner h2{font-size:18px;letter-spacing:-.04em;margin-bottom:3px}.wizard-mode-banner p{font-size:12px;color:#66746e;line-height:1.45}.wizard-ai-panel.in-stage{margin-bottom:12px}.wizard-presets.slim{grid-template-columns:repeat(3,1fr);margin-bottom:12px}.wizard-url-panel{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:start;border:1px solid #f5dfc0;background:#fffaf3;border-radius:18px;padding:12px;margin-bottom:12px;flex-shrink:0}.wizard-url-panel input,.wizard-url-panel textarea{border:1px solid #ead6b5;background:#fff;border-radius:13px;padding:10px 11px;font-size:13px;outline:none}.wizard-url-panel textarea{grid-column:1 / 2;min-height:76px;resize:vertical}.wizard-url-panel button{grid-row:1 / span 2;align-self:stretch}.wizard-body .topbar-right .btn{white-space:nowrap}@media(max-width:1380px){.wizard-grid.v32{grid-template-columns:1fr;height:auto}.wizard-start-wrap{height:auto}.wizard-choice-grid{grid-template-columns:1fr}.wizard-body{overflow:auto}.wizard-stage-scroll{height:auto}.wizard-stage-scroll .wizard-fields{overflow:visible}.wizard-presets.slim{grid-template-columns:1fr}}@media(max-width:760px){.wizard-start-hero{flex-direction:column}.wizard-start-hero h1{font-size:26px}.wizard-url-panel{grid-template-columns:1fr}.wizard-url-panel textarea,.wizard-url-panel button{grid-column:auto;grid-row:auto}.wizard-grid.v32{gap:10px}}


/* v3.3 Prompt Wizard profile library + YTW handoff */
.wizard-profile-library{background:#fff;border:1px solid #dfe8e3;border-radius:22px;padding:14px;box-shadow:0 12px 42px rgba(10,25,20,.05);margin-top:2px;min-height:0}.profile-library-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}.profile-library-title h3{font-size:16px;letter-spacing:-.035em;margin:0;color:#14231d}.profile-library-title p{font-size:12px;color:#66746e;line-height:1.35;margin-top:3px}.profile-library-title>span{border:1px solid #dce7e2;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:900;color:#08704f;background:#f2fbf7;white-space:nowrap}.wizard-profile-list{display:flex;gap:10px;overflow:auto;padding-bottom:3px}.wizard-profile-empty{border:1px dashed #dce7e2;border-radius:16px;padding:16px;color:#66746e;font-size:13px;background:#fbfdfc}.wizard-profile-card{position:relative;flex:0 0 290px;border:1px solid #dfe8e3;border-radius:18px;background:#fbfdfc;padding:12px;cursor:pointer;transition:.15s;min-height:154px}.wizard-profile-card:hover{border-color:#7F77DD;transform:translateY(-1px)}.wizard-profile-card.active{border-color:#1D9E75;background:#f0fbf6;box-shadow:inset 4px 0 0 #1D9E75}.wizard-profile-x{position:absolute;right:8px;top:8px;width:24px;height:24px;border:1px solid #e5dedc;border-radius:50%;background:#fff;color:#9b3529;font-weight:900;cursor:pointer}.profile-head{display:flex;align-items:flex-start;justify-content:space-between;gap:26px;margin-bottom:8px}.profile-head b{font-size:14px;color:#14231d;line-height:1.2}.profile-head span{font-size:10px;text-transform:uppercase;font-weight:900;color:#08704f;border:1px solid #bde7d5;background:#eaf9f2;border-radius:999px;padding:3px 6px;white-space:nowrap}.wizard-profile-card p{font-size:11.5px;color:#66746e;line-height:1.35;height:46px;overflow:hidden;margin-bottom:8px}.profile-meta{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:10px}.profile-meta span{font-size:10px;font-weight:900;color:#6159b8;background:#f2f0ff;border:1px solid #dfdcff;border-radius:999px;padding:4px 6px}.profile-actions{display:flex;gap:6px;justify-content:flex-end}.btn.tiny{font-size:10.5px;padding:5px 8px;border-radius:10px}.wizard-grid.v33{height:calc(100vh - 260px);display:grid;grid-template-columns:minmax(520px,720px) minmax(0,1fr);gap:14px;min-height:0}.wizard-result-head.v33{align-items:center}.wizard-tabs{display:flex;gap:6px;margin:4px 0 10px}.wizard-tabs button{border:1px solid #dfe8e3;background:#fff;border-radius:999px;padding:6px 10px;font-size:11px;font-weight:900;color:#66746e}.wizard-tabs button.active{background:#f2f0ff;border-color:#dfdcff;color:#6159b8}.wizard-preview.v33{font-size:11.5px;line-height:1.58}.wizard-start-wrap .wizard-profile-library{margin-top:auto}.wizard-body .wizard-profile-library{flex-shrink:0}@media(max-width:1380px){.wizard-grid.v33{grid-template-columns:1fr;height:auto}.wizard-profile-card{flex-basis:260px}}@media(max-width:760px){.wizard-profile-card{flex-basis:84vw}.profile-actions{justify-content:flex-start;flex-wrap:wrap}}

.inline-confirm-pop{position:fixed;z-index:9999;width:260px;background:#fff;border:1px solid #dfe8e3;border-radius:14px;box-shadow:0 18px 45px rgba(20,35,29,.16);padding:12px;display:flex;flex-direction:column;gap:7px;color:#14231d}.inline-confirm-pop::before{content:'';position:absolute;top:-7px;right:22px;width:12px;height:12px;background:#fff;border-left:1px solid #dfe8e3;border-top:1px solid #dfe8e3;transform:rotate(45deg)}.inline-confirm-pop.above::before{top:auto;bottom:-7px;border-left:0;border-top:0;border-right:1px solid #dfe8e3;border-bottom:1px solid #dfe8e3}.inline-confirm-pop b{font-size:13px;font-weight:950}.inline-confirm-pop span{font-size:11px;line-height:1.4;color:#66746e;font-weight:700}.inline-confirm-pop div{display:flex;gap:7px;justify-content:flex-end;margin-top:3px}.inline-confirm-pop button{border:1px solid #dfe8e3;background:#fff;border-radius:10px;padding:7px 10px;font-size:11px;font-weight:900;cursor:pointer}.inline-confirm-pop button:hover{background:#f6faf8}.inline-confirm-pop .mini-danger{border-color:#f0b8ad;background:#fff0ee;color:#b23a2d}.inline-confirm-pop .mini-danger:hover{background:#ffe3df}


/* v3.4.1 Prompt Wizard transitions - safe CSS only */
@keyframes wizardFadeUp{from{opacity:0;transform:translateY(18px) scale(.985);filter:blur(2px)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}
@keyframes wizardChoiceIn{from{opacity:0;transform:translateY(22px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes wizardStageIn{from{opacity:0;transform:translateY(16px);filter:blur(1px)}to{opacity:1;transform:translateY(0);filter:blur(0)}}
@keyframes wizardExit{to{opacity:0;transform:translateY(-10px) scale(.985);filter:blur(2px)}}
.wizard-start-wrap{animation:wizardFadeUp .32s cubic-bezier(.22,1,.36,1) both}.wizard-start-hero{animation:wizardFadeUp .34s cubic-bezier(.22,1,.36,1) both}.wizard-choice-card{animation:wizardChoiceIn .38s cubic-bezier(.22,1,.36,1) both}.wizard-choice-card:nth-child(1){animation-delay:.03s}.wizard-choice-card:nth-child(2){animation-delay:.08s}.wizard-choice-card:nth-child(3){animation-delay:.13s}.wizard-choice-card:hover .choice-icon{transform:scale(1.06) rotate(-2deg);transition:transform .18s cubic-bezier(.22,1,.36,1)}.wizard-choice-card:active{transform:translateY(0) scale(.992)}.wizard-exit{animation:wizardExit .18s ease both}.wizard-grid.v33,.wizard-grid.v32{animation:wizardStageIn .28s cubic-bezier(.22,1,.36,1) both}.wizard-grid.v33 .wizard-card,.wizard-grid.v32 .wizard-card{animation:wizardStageIn .34s cubic-bezier(.22,1,.36,1) both}.wizard-grid.v33 .wizard-result-card,.wizard-grid.v32 .wizard-result-card{animation-delay:.06s}.wizard-mode-banner,.wizard-ai-panel.in-stage,.wizard-url-panel,.wizard-fields,.wizard-footer{animation:wizardStageIn .32s cubic-bezier(.22,1,.36,1) both}.wizard-ai-panel.in-stage,.wizard-url-panel{animation-delay:.04s}.wizard-fields{animation-delay:.08s}.wizard-footer{animation-delay:.12s}.wizard-stage-exit{animation:wizardExit .16s ease both}.wizard-result-empty,.wizard-preview.v33{animation:wizardStageIn .34s cubic-bezier(.22,1,.36,1) both}@media (prefers-reduced-motion: reduce){.wizard-start-wrap,.wizard-start-hero,.wizard-choice-card,.wizard-grid.v33,.wizard-grid.v32,.wizard-grid.v33 .wizard-card,.wizard-grid.v32 .wizard-card,.wizard-mode-banner,.wizard-ai-panel.in-stage,.wizard-url-panel,.wizard-fields,.wizard-footer,.wizard-result-empty,.wizard-preview.v33{animation:none!important;transition:none!important}.wizard-exit,.wizard-stage-exit{animation:none!important}}


/* v3.5 unified screen transitions + Wizard library inside viewport */
@keyframes agSlideUpSoft{from{opacity:0;transform:translateY(18px) scale(.988);filter:blur(2px)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}
@keyframes agSlideLeftSoft{from{opacity:0;transform:translateX(18px);filter:blur(2px)}to{opacity:1;transform:translateX(0);filter:blur(0)}}
@keyframes agPopSoft{from{opacity:0;transform:translateY(10px) scale(.96);filter:blur(1px)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}
@keyframes agFadeSoft{from{opacity:0}to{opacity:1}}
.body.wizard-body{overflow:hidden;padding:18px;}
.wizard-start-wrap{height:calc(100vh - 104px);min-height:0;display:flex;flex-direction:column;gap:14px;overflow:hidden;animation:agSlideUpSoft .32s cubic-bezier(.22,1,.36,1) both;}
.wizard-start-wrap .wizard-start-hero{flex:0 0 auto;}
.wizard-start-wrap .wizard-choice-grid{flex:0 0 auto;}
.wizard-start-wrap .wizard-profile-library{flex:1 1 0;min-height:128px;margin-top:0;display:flex;flex-direction:column;overflow:hidden;}
.wizard-start-wrap .wizard-profile-list{min-height:0;overflow-x:auto;overflow-y:hidden;}
.wizard-start-wrap .wizard-profile-card{min-height:132px;}
.wizard-start-wrap .chooser-history{flex:0 0 auto;max-height:94px;overflow:hidden;margin:0;}
.wizard-workbench.v35{height:calc(100vh - 104px);min-height:0;display:flex;flex-direction:column;gap:12px;animation:agSlideUpSoft .28s cubic-bezier(.22,1,.36,1) both;}
.wizard-grid.v35{flex:1 1 0;min-height:0;display:grid;grid-template-columns:minmax(500px,720px) minmax(0,1fr);gap:14px;}
.wizard-grid.v35 .wizard-card{min-height:0;}
.wizard-side-stack{min-height:0;display:flex;flex-direction:column;gap:12px;animation:agSlideLeftSoft .32s cubic-bezier(.22,1,.36,1) both;animation-delay:.04s;}
.wizard-side-stack .wizard-result-card{flex:1 1 0;min-height:0;overflow:hidden;display:flex;flex-direction:column;}
.wizard-side-stack .wizard-result-empty{flex:1;min-height:0;}
.wizard-side-stack .wizard-preview.v33{flex:1;min-height:0;overflow:auto;}
.wizard-side-stack .wizard-profile-library{flex:0 0 182px;margin:0;display:flex;flex-direction:column;overflow:hidden;padding:12px;}
.wizard-side-stack .profile-library-title{margin-bottom:8px;}
.wizard-side-stack .profile-library-title p{display:none;}
.wizard-side-stack .wizard-profile-list{min-height:0;overflow-x:auto;overflow-y:hidden;}
.wizard-side-stack .wizard-profile-card{flex-basis:250px;min-height:118px;padding:10px;}
.wizard-side-stack .wizard-profile-card p{height:30px;}
.wizard-side-stack .profile-actions{display:none;}
.wizard-history-dock{flex:0 0 92px;margin:0;overflow:hidden;animation:agSlideUpSoft .32s cubic-bezier(.22,1,.36,1) both;animation-delay:.08s;}
.wizard-history-dock .history-list{height:100%;overflow-x:auto;overflow-y:hidden;}
.wizard-mode-banner,.wizard-ai-panel.in-stage,.wizard-url-panel,.wizard-fields,.wizard-footer{animation:agSlideUpSoft .32s cubic-bezier(.22,1,.36,1) both;}
.wizard-mode-banner{animation-delay:.02s}.wizard-ai-panel.in-stage,.wizard-url-panel{animation-delay:.06s}.wizard-fields{animation-delay:.10s}.wizard-footer{animation-delay:.14s}
/* TXT animations */
.txt5-page{animation:agFadeSoft .18s ease both;}
.txt5-start-card,.txt5-monitor-card{animation:agSlideUpSoft .30s cubic-bezier(.22,1,.36,1) both;}
.txt5-start-card .txt5-drop,.txt5-start-card .source-preview,.txt5-start-card .txt5-options,.txt5-start-card .txt5-submit-row{animation:agSlideUpSoft .30s cubic-bezier(.22,1,.36,1) both;}
.txt5-start-card .source-preview{animation-delay:.04s}.txt5-start-card .txt5-options{animation-delay:.08s}.txt5-start-card .txt5-submit-row{animation-delay:.12s}
.txt5-monitor-head{animation:agSlideUpSoft .24s cubic-bezier(.22,1,.36,1) both;}
.progress-track.big,.progress-meta{animation:agFadeSoft .25s ease both;animation-delay:.05s;}
.txt5-result-sidebar{animation:agSlideUpSoft .26s cubic-bezier(.22,1,.36,1) both;animation-delay:.08s;}
.txt5-preview-box{animation:agSlideLeftSoft .30s cubic-bezier(.22,1,.36,1) both;animation-delay:.10s;}
.txt5-history-card{animation:agSlideUpSoft .28s cubic-bezier(.22,1,.36,1) both;animation-delay:.08s;}
.modal-backdrop:not(.hidden){animation:agFadeSoft .15s ease both;}
.modal-backdrop:not(.hidden) .modal-card{animation:agPopSoft .22s cubic-bezier(.22,1,.36,1) both;}
.history-item{transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;}
.history-item:hover{transform:translateY(-2px);box-shadow:0 10px 26px rgba(10,25,20,.07);}
@media(max-width:1380px){.body.wizard-body{overflow:auto}.wizard-start-wrap,.wizard-workbench.v35{height:auto;overflow:visible}.wizard-grid.v35{grid-template-columns:1fr;height:auto}.wizard-side-stack .wizard-profile-library{flex-basis:auto}.wizard-history-dock{flex-basis:auto}.wizard-side-stack .profile-actions{display:flex}}
@media (prefers-reduced-motion: reduce){.wizard-start-wrap,.wizard-workbench.v35,.wizard-side-stack,.wizard-history-dock,.wizard-mode-banner,.wizard-ai-panel.in-stage,.wizard-url-panel,.wizard-fields,.wizard-footer,.txt5-page,.txt5-start-card,.txt5-monitor-card,.txt5-start-card .txt5-drop,.txt5-start-card .source-preview,.txt5-start-card .txt5-options,.txt5-start-card .txt5-submit-row,.txt5-monitor-head,.progress-track.big,.progress-meta,.txt5-result-sidebar,.txt5-preview-box,.txt5-history-card,.modal-backdrop:not(.hidden),.modal-backdrop:not(.hidden) .modal-card{animation:none!important;transition:none!important;filter:none!important;transform:none!important}}

/* v3.6 Prompt Wizard full-form fix */
.body.wizard-body{height:calc(100vh - 55px);overflow:hidden;padding:16px;}
.wizard-start-wrap{height:100%;display:flex;flex-direction:column;gap:14px;overflow:hidden;}
.wizard-start-wrap .wizard-profile-library{flex:1 1 0;min-height:0;}
.wizard-start-wrap .chooser-history{display:none!important;}
.wizard-workbench.v35{height:100%;min-height:0;display:flex;flex-direction:column;gap:12px;}
.wizard-grid.v35{flex:1 1 0;min-height:0;display:grid;grid-template-columns:minmax(560px,780px) minmax(0,1fr);gap:14px;}
.wizard-form-card,.wizard-result-card{height:100%;min-height:0;}
.wizard-stage-scroll{height:100%;min-height:0;display:flex;flex-direction:column;}
.wizard-fields.advanced{flex:1 1 0;min-height:0;overflow:auto;padding-right:8px;gap:12px;}
.wizard-fields select{width:100%;border:1px solid #dfe8e3;background:#fbfdfc;border-radius:14px;padding:10px 11px;font-size:13px;color:#14231d;outline:none;min-height:38px;}
.wizard-fields select:focus{border-color:#7F77DD;box-shadow:0 0 0 3px rgba(127,119,221,.12)}
.wiz-choice-block{border:1px solid #dfe8e3;background:#fbfdfc;border-radius:16px;padding:10px;display:flex;flex-direction:column;gap:8px;}
.wiz-choice-head{display:flex;align-items:center;justify-content:space-between;gap:8px;}
.wiz-choice-head b{font-size:12px;color:#14231d;letter-spacing:-.02em;}
.wiz-choice-head span{font-size:10px;font-weight:900;color:#66746e;border:1px solid #dfe8e3;border-radius:999px;padding:3px 7px;background:#fff;}
.wiz-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;max-height:170px;overflow:auto;padding-right:2px;}
.wiz-choice-block.compact .wiz-check-grid{max-height:122px;}
.wiz-check{display:flex;align-items:center;gap:6px;border:1px solid #e3ebe7;background:#fff;border-radius:11px;padding:7px 8px;font-size:11.5px;line-height:1.2;color:#14231d;cursor:pointer;min-height:34px;}
.wiz-check input{width:auto!important;min-height:auto!important;margin:0;accent-color:#1D9E75;}
.wiz-check span{display:inline-flex!important;align-items:center;justify-content:center;width:22px;height:20px;margin:0!important;border-radius:8px;background:#f2f8f5;color:#66746e;font-size:9px!important;font-weight:900;letter-spacing:0!important;text-transform:none!important;flex:0 0 auto;}
.wiz-check:has(input:checked){background:#eaf9f2;border-color:#9bdfc9;box-shadow:inset 3px 0 0 #1D9E75;}
.wiz-switch-row{display:flex;align-items:center;justify-content:space-between;border:1px solid #dfe8e3;background:#fff;border-radius:16px;padding:10px;}
.wiz-switch{display:flex!important;align-items:center;gap:10px;margin:0!important;cursor:pointer;}
.wiz-switch input{width:auto!important;min-height:auto!important;accent-color:#1D9E75;}
.wiz-switch span{margin:0!important;text-transform:none!important;font-size:13px!important;letter-spacing:0!important;color:#14231d!important;}
.wizard-profile-library .profile-library-title h3::before{content:'↺ ';color:#1D9E75;}
.wizard-profile-library .profile-library-title p{display:block;}
.wizard-side-stack .wizard-profile-library .profile-library-title p{display:none;}
.history-empty{display:none!important;}
.wizard-presets,.wizard-preset{display:none!important;}
.wizard-footer{flex:0 0 auto;}
.wizard-history-dock{flex:0 0 92px;}
.wizard-side-stack{height:100%;min-height:0;}
.wizard-side-stack .wizard-result-card{flex:1 1 0;min-height:0;}
.wizard-side-stack .wizard-profile-library{flex:0 0 180px;}
@media(max-width:1380px){.body.wizard-body{height:auto;overflow:auto}.wizard-workbench.v35,.wizard-start-wrap{height:auto;overflow:visible}.wizard-grid.v35{grid-template-columns:1fr}.wizard-fields.advanced{overflow:visible}.wizard-side-stack .wizard-profile-library{flex-basis:auto}.wiz-check-grid{grid-template-columns:1fr}.wizard-presets,.wizard-preset{display:none!important}}
@media(max-width:760px){.wiz-check-grid{grid-template-columns:1fr}.wizard-row.four{grid-template-columns:1fr 1fr}.body.wizard-body{padding:12px}}


/* v3.8 Wizard full-height layout fix */
.body.wizard-body{
  height:calc(100vh - 55px)!important;
  min-height:0!important;
  overflow:hidden!important;
  padding:16px!important;
  display:flex!important;
  flex-direction:column!important;
}
.wizard-workbench.v38{
  flex:1 1 0!important;
  height:auto!important;
  min-height:0!important;
  display:flex!important;
  flex-direction:column!important;
}
.wizard-grid.v38{
  flex:1 1 0!important;
  height:100%!important;
  min-height:0!important;
  display:grid!important;
  grid-template-columns:minmax(560px,780px) minmax(0,1fr)!important;
  gap:14px!important;
  align-items:stretch!important;
}
.wizard-grid.v38 .wizard-card{min-height:0!important;}
.wizard-grid.v38 .wizard-form-card{
  height:100%!important;
  min-height:0!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}
.wizard-grid.v38 .wizard-stage-scroll{
  height:100%!important;
  min-height:0!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}
.wizard-grid.v38 .wizard-fields.advanced{
  flex:1 1 0!important;
  min-height:0!important;
  overflow:auto!important;
  padding-right:8px!important;
}
.wizard-grid.v38 .wizard-footer{flex:0 0 auto!important;}
.wizard-grid.v38 .wizard-side-stack{
  height:100%!important;
  min-height:0!important;
  display:flex!important;
  flex-direction:column!important;
  gap:14px!important;
}
.wizard-grid.v38 .wizard-side-stack .wizard-result-card{
  flex:1 1 0!important;
  min-height:0!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
}
.wizard-grid.v38 .wizard-result-empty,
.wizard-grid.v38 .wizard-preview.v33{
  flex:1 1 0!important;
  min-height:0!important;
}
.wizard-grid.v38 .wizard-side-stack .wizard-profile-library{
  flex:0 0 220px!important;
  min-height:0!important;
  margin:0!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
}
.wizard-grid.v38 .wizard-profile-list{
  flex:1 1 0!important;
  min-height:0!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
}
.wizard-grid.v38 .wizard-profile-empty{
  height:100%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
}
.wizard-history-dock{display:none!important;}
@media(max-width:1380px){
  .body.wizard-body{height:auto!important;overflow:auto!important;display:block!important;}
  .wizard-workbench.v38{height:auto!important;overflow:visible!important;display:block!important;}
  .wizard-grid.v38{grid-template-columns:1fr!important;height:auto!important;display:grid!important;}
  .wizard-grid.v38 .wizard-form-card,.wizard-grid.v38 .wizard-stage-scroll,.wizard-grid.v38 .wizard-side-stack{height:auto!important;overflow:visible!important;}
  .wizard-grid.v38 .wizard-fields.advanced{overflow:visible!important;}
  .wizard-grid.v38 .wizard-side-stack .wizard-profile-library{flex-basis:auto!important;}
}

/* v3.9 Wizard focus-form layout: hide result/history until process exists */
.body.wizard-body{
  height:calc(100vh - 55px)!important;
  min-height:0!important;
  overflow:hidden!important;
  padding:16px!important;
  display:flex!important;
  flex-direction:column!important;
}
.wizard-workbench.v39{
  flex:1 1 0!important;
  height:100%!important;
  min-height:0!important;
  display:flex!important;
  flex-direction:column!important;
  animation:agSlideUpSoft .28s cubic-bezier(.22,1,.36,1) both;
}
.wizard-grid.v39{
  flex:1 1 0!important;
  height:100%!important;
  min-height:0!important;
  display:grid!important;
  gap:14px!important;
  align-items:stretch!important;
}
.wizard-grid.v39.solo{
  grid-template-columns:1fr!important;
}
.wizard-grid.v39.with-result{
  grid-template-columns:minmax(560px,780px) minmax(0,1fr)!important;
}
.wizard-grid.v39 .wizard-card{min-height:0!important;}
.wizard-grid.v39 .wizard-form-card{
  height:100%!important;
  min-height:0!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}
.wizard-grid.v39.solo .wizard-form-card{
  max-width:none!important;
}
.wizard-grid.v39.solo .wizard-mode-banner,
.wizard-grid.v39.solo .wizard-ai-panel.in-stage,
.wizard-grid.v39.solo .wizard-url-panel{
  max-width:none!important;
}
.wizard-grid.v39 .wizard-stage-scroll{
  height:100%!important;
  min-height:0!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}
.wizard-grid.v39 .wizard-fields.advanced{
  flex:1 1 0!important;
  min-height:0!important;
  overflow:auto!important;
  padding-right:8px!important;
}
.wizard-grid.v39.solo .wizard-fields.advanced{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  align-content:start!important;
  gap:12px 14px!important;
}
.wizard-grid.v39.solo .wizard-fields.advanced .wizard-row,
.wizard-grid.v39.solo .wizard-fields.advanced .wizard-row.three,
.wizard-grid.v39.solo .wizard-fields.advanced .wizard-row.four,
.wizard-grid.v39.solo .wizard-fields.advanced .wiz-choice-block,
.wizard-grid.v39.solo .wizard-fields.advanced label:has(textarea){
  grid-column:1 / -1!important;
}
.wizard-grid.v39.solo .wiz-check-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
.wizard-grid.v39 .wizard-footer{
  flex:0 0 auto!important;
}
.wizard-grid.v39 .wizard-side-stack{
  height:100%!important;
  min-height:0!important;
  display:flex!important;
  flex-direction:column!important;
  gap:14px!important;
  animation:agSlideLeftSoft .32s cubic-bezier(.22,1,.36,1) both;
}
.wizard-grid.v39 .wizard-side-stack .wizard-result-card{
  flex:1 1 0!important;
  min-height:0!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
}
.wizard-grid.v39 .wizard-result-empty,
.wizard-grid.v39 .wizard-preview.v33{
  flex:1 1 0!important;
  min-height:0!important;
}
.wizard-grid.v39 .wizard-side-stack .wizard-profile-library{
  flex:0 0 220px!important;
  min-height:0!important;
  margin:0!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
}
.wizard-grid.v39 .wizard-profile-list{
  flex:1 1 0!important;
  min-height:0!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
}
.wizard-grid.v39 .wizard-profile-empty{
  height:100%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
}
@media(max-width:1380px){
  .body.wizard-body{height:auto!important;overflow:auto!important;display:block!important;}
  .wizard-workbench.v39{height:auto!important;overflow:visible!important;display:block!important;}
  .wizard-grid.v39,.wizard-grid.v39.with-result,.wizard-grid.v39.solo{grid-template-columns:1fr!important;height:auto!important;display:grid!important;}
  .wizard-grid.v39 .wizard-form-card,.wizard-grid.v39 .wizard-stage-scroll,.wizard-grid.v39 .wizard-side-stack{height:auto!important;overflow:visible!important;}
  .wizard-grid.v39 .wizard-fields.advanced,.wizard-grid.v39.solo .wizard-fields.advanced{display:flex!important;overflow:visible!important;}
  .wizard-grid.v39 .wizard-side-stack .wizard-profile-library{flex-basis:auto!important;}
  .wizard-grid.v39.solo .wiz-check-grid{grid-template-columns:1fr!important;}
}
@media(max-width:900px){
  .wizard-grid.v39.solo .wizard-fields.advanced{grid-template-columns:1fr!important;}
}


/* v4.0 Wizard separated modes: AI/link modes do not show the manual questionnaire until analysis creates a draft */
.wizard-workbench.v40{height:100%;min-height:0;display:flex;flex-direction:column;gap:12px;animation:agSlideUpSoft .28s cubic-bezier(.22,1,.36,1) both;}
.wizard-grid.v40{flex:1 1 0;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);gap:14px;}
.wizard-grid.v40.with-result{grid-template-columns:minmax(560px,760px) minmax(0,1fr);}
.wizard-grid.v40 .wizard-card{min-height:0!important;}
.wizard-grid.v40.mode-only .wizard-form-card{max-width:980px;margin:0 auto;width:100%;}
.wizard-mode-only{height:100%;min-height:0;display:flex;flex-direction:column;justify-content:center;gap:16px;}
.wizard-mode-only .wizard-mode-banner{margin-bottom:0;padding:22px;border-radius:24px;}
.wizard-mode-only .wizard-mode-banner h2{font-size:26px;}
.wizard-mode-only .wizard-mode-banner p{font-size:14px;max-width:760px;}
.wizard-ai-panel.focus,.wizard-url-panel.focus{padding:18px;border-radius:24px;box-shadow:0 14px 46px rgba(10,25,20,.045);}
.wizard-ai-panel.focus textarea{min-height:190px;font-size:15px;line-height:1.55;}
.wizard-url-panel.focus{grid-template-columns:1fr 230px;}
.wizard-url-panel.focus input{font-size:15px;min-height:52px;}
.wizard-url-panel.focus textarea{min-height:160px;font-size:14px;line-height:1.55;}
.wizard-url-panel.focus button{font-size:15px;}
.wizard-mode-help{border:1px dashed #dfe8e3;border-radius:20px;padding:16px;background:#fbfdfc;}
.wizard-mode-help.ai{border-color:#dfdcff;background:#fbfaff;}
.wizard-mode-help.url{border-color:#f5dfc0;background:#fffaf3;}
.wizard-mode-help>b{display:block;font-size:14px;margin-bottom:10px;color:#14231d;}
.mode-help-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;}
.mode-help-grid span{font-size:12px;line-height:1.45;color:#66746e;border:1px solid #dfe8e3;border-radius:14px;padding:10px;background:#fff;}
.wizard-grid.v40.form-ready .wizard-fields.advanced{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-content:start;overflow:auto;}
.wizard-grid.v40.form-ready .wizard-fields.advanced .wizard-row,
.wizard-grid.v40.form-ready .wizard-fields.advanced .wizard-row.three,
.wizard-grid.v40.form-ready .wizard-fields.advanced .wizard-row.four,
.wizard-grid.v40.form-ready .wizard-fields.advanced .wiz-choice-block,
.wizard-grid.v40.form-ready .wizard-fields.advanced label:has(textarea){grid-column:1 / -1;}
.wizard-grid.v40.form-ready .wiz-check-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
@media(max-width:1380px){.wizard-grid.v40,.wizard-grid.v40.with-result{grid-template-columns:1fr!important;height:auto!important}.wizard-mode-only{height:auto;justify-content:flex-start}.wizard-body{overflow:auto}.wizard-grid.v40.form-ready .wizard-fields.advanced{display:flex;overflow:visible}.mode-help-grid{grid-template-columns:1fr}.wizard-url-panel.focus{grid-template-columns:1fr}.wizard-url-panel.focus button{grid-row:auto}.wizard-grid.v40.form-ready .wiz-check-grid{grid-template-columns:1fr}}
@media (prefers-reduced-motion: reduce){.wizard-workbench.v40{animation:none!important}}

/* v4.1 AI Developer conversational mode */
.ai-builder-screen{height:100%;min-height:calc(100vh - 150px);border:1px solid var(--color-border-tertiary,#dbe8e2);border-radius:28px;background:linear-gradient(180deg,#fff,#fbfffd);padding:28px;box-shadow:0 18px 44px rgba(15,39,31,.06);animation:stageIn .28s ease both}
.ai-builder-screen.fresh{display:flex;flex-direction:column;justify-content:center;gap:22px}
.ai-builder-hero{display:flex;gap:18px;align-items:flex-start;max-width:980px;margin:0 auto;width:100%}
.ai-avatar{width:54px;height:54px;border-radius:18px;background:#f0edff;color:#5f4bd8;display:flex;align-items:center;justify-content:center;font-size:24px;flex:0 0 auto;box-shadow:inset 0 0 0 1px #d8d0ff}
.ai-builder-hero h2{font-size:34px;letter-spacing:-.04em;line-height:1.08;margin:0 0 10px;color:#10231d}
.ai-builder-hero p{font-size:15px;line-height:1.65;color:#60726b;margin:0;max-width:760px}
.ai-first-input{width:min(980px,100%);margin:0 auto;min-height:220px;border-radius:24px;border:1px solid #d9d2ff;background:#fff;padding:22px;font-size:17px;line-height:1.6;resize:none;outline:none;box-shadow:0 16px 50px rgba(127,119,221,.08)}
.ai-first-input:focus{border-color:#8b7cf6;box-shadow:0 0 0 4px rgba(127,119,221,.12),0 16px 50px rgba(127,119,221,.08)}
.ai-builder-actions{display:flex;justify-content:center;gap:12px}
.ai-builder-actions .btn{height:48px;border-radius:16px;padding:0 24px}
.ai-builder-screen.chat{display:flex;flex-direction:column;gap:14px;padding:20px}
.ai-chat-top{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:4px 4px 0}
.ai-chat-top h2{margin:0 0 4px;font-size:24px;letter-spacing:-.03em;color:#10231d}
.ai-chat-top p{margin:0;color:#65766f;line-height:1.45}
.ai-chat-top span{border-radius:999px;background:#e8fff4;color:#008460;border:1px solid #a7ead3;font-weight:800;padding:8px 12px;white-space:nowrap}
.ai-progress{height:8px;border-radius:999px;background:#edf3f0;overflow:hidden}
.ai-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#22a777,#7f77dd);transition:width .28s ease}
.ai-chat-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:16px;min-height:0;flex:1}
.ai-chat-log{min-height:0;overflow:auto;padding:14px;border-radius:24px;background:#f7fbf9;border:1px solid #dde9e4;display:flex;flex-direction:column;gap:10px}
.chat-bubble{max-width:78%;border-radius:20px;padding:13px 15px;animation:messageIn .22s ease both;box-shadow:0 6px 18px rgba(15,39,31,.04)}
.chat-bubble b{display:block;font-size:12px;text-transform:uppercase;letter-spacing:.05em;margin-bottom:4px;color:#64766f}
.chat-bubble p{margin:0;line-height:1.55;color:#10231d}
.chat-bubble small{display:block;margin-top:6px;color:#65766f;line-height:1.45}
.chat-bubble.assistant{align-self:flex-start;background:#fff;border:1px solid #dfe8e4}
.chat-bubble.assistant.current{border-color:#cfc7ff;background:#fbfaff}
.chat-bubble.user{align-self:flex-end;background:#e8fff4;border:1px solid #b7ead7}
.ai-answer-panel{border:1px solid #dfe8e4;background:#fff;border-radius:24px;padding:18px;display:flex;flex-direction:column;gap:12px;min-height:0;box-shadow:0 12px 36px rgba(15,39,31,.06)}
.ai-answer-panel h3{margin:0;font-size:18px;letter-spacing:-.02em;color:#10231d}
.ai-answer-panel p{margin:0;color:#60726b;line-height:1.5}
.ai-option-list{display:flex;flex-direction:column;gap:8px;overflow:auto;padding-right:4px}
.ai-option-list button{width:100%;text-align:left;border:1px solid #dce8e3;background:#fafffc;border-radius:14px;padding:12px 13px;font-weight:700;color:#18342b;cursor:pointer;transition:.15s ease}
.ai-option-list button:hover{border-color:#21a777;background:#effff8;transform:translateY(-1px)}
.ai-custom-answer{display:flex;gap:8px;margin-top:auto}
.ai-custom-answer input{min-width:0;flex:1;border:1px solid #dce8e3;border-radius:14px;padding:0 12px;height:42px;outline:none}
.ai-custom-answer input:focus{border-color:#21a777;box-shadow:0 0 0 3px rgba(33,167,119,.12)}
@keyframes messageIn{from{opacity:0;transform:translateY(8px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes stageIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1100px){.ai-chat-layout{grid-template-columns:1fr}.ai-answer-panel{min-height:auto}.ai-builder-hero h2{font-size:28px}.chat-bubble{max-width:92%}}
@media(prefers-reduced-motion:reduce){.ai-builder-screen,.chat-bubble,.ai-option-list button{animation:none;transition:none}.ai-option-list button:hover{transform:none}}

/* v4.2 manual stepper */
.manual-stepper-wrap{min-height:100%;display:flex;flex-direction:column;gap:18px;animation:softEnter .28s ease both}
.manual-stepper-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 24px;border:1px solid var(--line);border-radius:24px;background:linear-gradient(135deg,#ffffff,#f7fbf9);box-shadow:0 18px 60px rgba(12,30,22,.06)}
.manual-stepper-hero h2{font-size:26px;margin:4px 0 8px;color:#10211b}
.manual-stepper-hero p{max-width:760px;color:#62736c;line-height:1.55}
.manual-step-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-content:start}
.manual-step-card{position:relative;text-align:left;border:1px solid #dbe8e2;border-radius:20px;background:#fff;min-height:170px;padding:18px;display:flex;gap:14px;align-items:flex-start;cursor:pointer;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease;color:#10211b}
.manual-step-card:hover{transform:translateY(-3px);border-color:#18a275;box-shadow:0 18px 45px rgba(14,97,72,.12);background:#fbfffd}
.manual-step-card.done{border-color:#9fe8cf;background:#f2fff9}
.manual-step-num{width:38px;height:38px;flex:0 0 38px;border-radius:14px;background:#ecf7f3;color:#08704f;font-weight:900;display:grid;place-items:center}
.manual-step-card h3{font-size:17px;margin:0 0 7px}
.manual-step-card p{font-size:13px;line-height:1.45;color:#6b7a74;margin:0 0 13px}
.manual-step-card b{display:inline-flex;max-width:100%;font-size:12px;line-height:1.35;padding:6px 9px;border-radius:999px;background:#edf6f3;color:#0a6d51;white-space:normal}
.manual-step-card i{position:absolute;right:16px;bottom:14px;font-style:normal;color:#18a275;font-weight:900}
.manual-estimate-bar{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border:1px solid #dbe8e2;border-radius:20px;background:#fff}
.manual-estimate-bar span{font-weight:900;color:#596b63}
.wizard-sheet-backdrop{display:flex!important;align-items:center;justify-content:center;padding:28px;background:rgba(8,18,14,.28);backdrop-filter:blur(8px);opacity:0;transition:opacity .18s ease;z-index:9999}
.wizard-sheet-backdrop.show{opacity:1}
.wizard-sheet-card{width:min(1120px,94vw);max-height:88vh;display:flex;flex-direction:column;background:#fff;border:1px solid #dbe8e2;border-radius:26px;box-shadow:0 28px 90px rgba(0,0,0,.18);overflow:hidden;animation:sheetPop .22s ease both}
.wizard-sheet-body{padding:22px;overflow:auto;display:flex;flex-direction:column;gap:16px}
.sheet-form-grid{display:grid;gap:14px}.sheet-form-grid.one{grid-template-columns:1fr}.sheet-form-grid.three{grid-template-columns:repeat(3,1fr)}.sheet-form-grid.four{grid-template-columns:repeat(4,1fr)}
.sheet-form-grid label,.wizard-sheet-body label:not(.sheet-switch){display:flex;flex-direction:column;gap:8px;font-weight:800;color:#5d6c66;text-transform:uppercase;font-size:12px;letter-spacing:.04em}
.sheet-form-grid input,.sheet-form-grid select,.wizard-sheet-body textarea,.wizard-sheet-body select{border:1px solid #d5e5dd;border-radius:16px;padding:13px 14px;background:#fbfdfc;color:#14231e;font:inherit;text-transform:none;letter-spacing:0;font-weight:500;outline:none}
.wizard-sheet-body textarea{min-height:140px;resize:vertical}
.wizard-option-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.wizard-option{border:1px solid #dce9e3;border-radius:16px;background:#fff;padding:12px;text-align:left;display:flex;align-items:center;gap:10px;min-height:50px;cursor:pointer;transition:all .16s ease;color:#17241f}
.wizard-option:hover{border-color:#98dac4;background:#f7fffc;transform:translateY(-1px)}
.wizard-option.selected{border-color:#17a173;background:#eafff6;box-shadow:inset 0 0 0 1px #17a173}
.wizard-option span{display:grid;place-items:center;width:28px;height:28px;border-radius:10px;background:#eef7f3;color:#08704f;font-size:11px;font-weight:900;flex:0 0 28px}
.wizard-option.selected span{background:#17a173;color:#fff}
.sheet-switch{display:flex!important;align-items:center;gap:10px;padding:12px 14px;border:1px solid #dbe8e2;border-radius:16px;background:#fbfdfc;font-weight:800;color:#17241f;text-transform:none!important;letter-spacing:0!important;font-size:14px!important}.sheet-switch.inline{justify-content:center}
.sheet-switch input{width:18px;height:18px;accent-color:#17a173}
@keyframes sheetPop{from{opacity:0;transform:translateY(18px) scale(.98)}to{opacity:1;transform:none}}
@media(max-width:1280px){.manual-step-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wizard-option-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sheet-form-grid.three,.sheet-form-grid.four{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.manual-step-grid,.wizard-option-grid,.sheet-form-grid.three,.sheet-form-grid.four{grid-template-columns:1fr}.manual-stepper-hero{flex-direction:column;align-items:flex-start}.wizard-sheet-card{max-height:92vh;width:96vw}}
@media(prefers-reduced-motion:reduce){.manual-step-card,.wizard-sheet-backdrop,.wizard-sheet-card{animation:none!important;transition:none!important}}


/* v4.3 AI Developer: real dialog flow */
.wizard-workbench.v43{height:100%;min-height:0;display:flex;flex-direction:column;animation:agSlideUpSoft .24s cubic-bezier(.22,1,.36,1) both;}
.wizard-grid.v43{flex:1;min-height:0;display:grid;grid-template-columns:1fr;gap:14px;}
.wizard-grid.v43.with-result{grid-template-columns:minmax(560px,760px) minmax(0,1fr);}
.wizard-grid.v43.ai-mode.solo .wizard-form-card{max-width:none;width:100%;margin:0;}
.wizard-grid.v43.ai-mode .wizard-stage-scroll{height:100%;min-height:0;}
.ai-dialog-real{position:relative;overflow:hidden;}
.ai-dialog-real:before{content:'';position:absolute;inset:-30% -10% auto auto;width:420px;height:420px;background:radial-gradient(circle,rgba(127,119,221,.14),transparent 62%);pointer-events:none;}
.ai-chat-log{scroll-behavior:smooth;position:relative;}
.chat-bubble{position:relative;transform-origin:bottom left;}
.chat-bubble.user{transform-origin:bottom right;}
.chat-bubble.assistant:before{content:'';position:absolute;left:-13px;top:20px;width:10px;height:10px;border-radius:50%;background:#dbe8e4;border:2px solid #fff;box-shadow:0 0 0 1px #dfe8e4;}
.chat-bubble.user:before{content:'';position:absolute;right:-13px;top:20px;width:10px;height:10px;border-radius:50%;background:#19a879;border:2px solid #fff;box-shadow:0 0 0 1px #b7ead7;}
.chat-bubble.typing span{display:inline-flex;gap:4px;margin-top:8px;}
.chat-bubble.typing span i,.ai-side-loader span{width:7px;height:7px;border-radius:50%;background:#7F77DD;display:block;animation:typingDot 1s infinite ease-in-out;}
.chat-bubble.typing span i:nth-child(2),.ai-side-loader span:nth-child(2){animation-delay:.14s}.chat-bubble.typing span i:nth-child(3),.ai-side-loader span:nth-child(3){animation-delay:.28s}
.ai-side-loader{display:flex;gap:5px;margin-top:16px;}
@keyframes typingDot{0%,80%,100%{opacity:.35;transform:translateY(0)}40%{opacity:1;transform:translateY(-4px)}}
.ai-answer-panel{position:relative;overflow:auto;}
.ai-select-hint{font-size:12px;color:#65766f;background:#f3f7f5;border:1px solid #dfe8e4;border-radius:999px;padding:6px 10px;margin:8px 0 12px;display:inline-flex;font-weight:800;}
.ai-option-list.multi .ai-choice{display:flex;align-items:center;gap:9px;justify-content:flex-start;text-align:left;}
.ai-option-list .ai-choice em{width:20px;height:20px;border-radius:8px;border:1px solid #cddbd5;display:grid;place-items:center;font-style:normal;color:transparent;background:#fff;transition:.15s;}
.ai-option-list .ai-choice.selected{border-color:#1D9E75;background:#eafff5;color:#0a5b44;box-shadow:0 8px 20px rgba(29,158,117,.10);}
.ai-option-list .ai-choice.selected em{background:#1D9E75;border-color:#1D9E75;color:#fff;}
.ai-review-screen{height:100%;min-height:0;display:flex;flex-direction:column;gap:16px;border:1px solid #dfe8e3;border-radius:28px;background:linear-gradient(180deg,#fff,#fbfffd);padding:24px;box-shadow:0 18px 44px rgba(15,39,31,.06);animation:stageIn .28s ease both;}
.ai-review-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;}
.ai-review-head h2{font-size:30px;line-height:1.1;letter-spacing:-.045em;margin:0 0 8px;color:#10231d;}
.ai-review-head p{color:#65766f;line-height:1.55;margin:0;max-width:720px;}
.ai-review-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;min-width:360px;}
.ai-review-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;}
.ai-review-grid div{border:1px solid #dfe8e4;border-radius:18px;background:#fbfdfc;padding:13px;min-height:84px;}
.ai-review-grid span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#65766f;font-weight:900;margin-bottom:7px;}
.ai-review-grid b{font-size:13px;line-height:1.35;color:#10231d;display:block;max-height:42px;overflow:hidden;}
.ai-review-edit{min-height:0;overflow:auto;border-top:1px solid #e8efec;padding-top:14px;}
.ai-review-edit .manual-stepper-hero{display:none;}
.ai-review-edit .manual-step-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
@media(max-width:1280px){.ai-review-grid{grid-template-columns:repeat(2,1fr)}.ai-review-head{flex-direction:column}.ai-review-actions{min-width:0;justify-content:flex-start}.ai-review-edit .manual-step-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.ai-review-grid,.ai-review-edit .manual-step-grid{grid-template-columns:1fr}.ai-chat-layout{grid-template-columns:1fr}.ai-builder-screen{min-height:auto}.ai-review-screen{height:auto}.wizard-grid.v43.with-result{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.wizard-workbench.v43,.ai-review-screen,.chat-bubble,.chat-bubble.typing span i,.ai-side-loader span{animation:none!important;transition:none!important}}

/* v4.4 AI developer compact dialog + reliable choices */
.ai-builder-screen.chat{
  min-height:auto !important;
  height:auto !important;
  max-height:calc(100vh - 148px);
  padding:16px !important;
}
.ai-chat-top h2{font-size:20px !important;}
.ai-chat-top p{font-size:13px !important;}
.ai-progress{height:6px !important;}
.ai-chat-layout{
  grid-template-columns:minmax(0,1fr) 320px !important;
  height:min(560px, calc(100vh - 255px));
  min-height:420px;
}
.ai-chat-log{
  padding:16px !important;
  gap:9px !important;
  background:linear-gradient(180deg,#f7fbf9,#fbfdfc) !important;
}
.chat-bubble{
  max-width:min(560px,72%) !important;
  padding:11px 13px !important;
  border-radius:16px !important;
}
.chat-bubble p{font-size:13px !important;line-height:1.45 !important;}
.chat-bubble b{font-size:10px !important;}
.chat-bubble small{font-size:12px !important;}
.ai-answer-panel{
  padding:14px !important;
  border-radius:20px !important;
  gap:9px !important;
  max-height:100%;
}
.ai-answer-panel h3{font-size:15px !important;line-height:1.25 !important;}
.ai-answer-panel p{font-size:12px !important;line-height:1.4 !important;}
.ai-select-hint{font-size:10px !important;padding:5px 8px !important;margin:2px 0 4px !important;}
.ai-option-list{gap:7px !important;}
.ai-option-list button{
  min-height:38px;
  padding:9px 11px !important;
  border-radius:12px !important;
  font-size:12px !important;
  line-height:1.25 !important;
}
.ai-option-list button:active{transform:translateY(0) scale(.99);}
.ai-custom-answer{gap:7px !important;}
.ai-custom-answer input{height:38px !important;font-size:12px !important;border-radius:12px !important;}
.ai-custom-answer .btn{height:38px !important;padding:0 12px !important;border-radius:12px !important;font-size:12px !important;}
.ai-answer-panel>.btn{height:38px !important;border-radius:12px !important;font-size:12px !important;}
.ai-builder-screen.fresh{min-height:min(620px, calc(100vh - 150px)) !important;}
.ai-first-input{min-height:150px !important;font-size:15px !important;}
@media(max-width:1100px){
  .ai-chat-layout{grid-template-columns:1fr !important;height:auto;min-height:0;}
  .ai-answer-panel{max-height:none;}
}


/* v4.5 AI product flow: narrower, bottom-up real dialog */
.ai-builder-screen.chat.ai-v45-chat{
  width:min(1220px,100%);
  margin:0 auto;
  height:calc(100vh - 150px) !important;
  max-height:calc(100vh - 150px) !important;
  min-height:620px !important;
}
.ai-v45-chat .ai-chat-layout{
  grid-template-columns:minmax(0,820px) 300px !important;
  justify-content:center;
  height:calc(100% - 72px) !important;
  min-height:0 !important;
}
.ai-v45-chat .ai-chat-log{
  justify-content:flex-end;
  overflow-y:auto;
  gap:12px !important;
  padding:22px !important;
}
.ai-v45-chat .chat-bubble{
  max-width:min(620px,80%) !important;
  animation:chatRise .24s cubic-bezier(.2,.8,.2,1) both !important;
}
.ai-v45-chat .chat-bubble.assistant.current{
  box-shadow:0 10px 28px rgba(127,119,221,.08);
}
.ai-v45-chat .ai-answer-panel{
  max-height:100% !important;
  align-self:stretch;
}
.ai-v45-start{
  width:min(980px,100%);
  margin:0 auto;
}
@keyframes chatRise{from{opacity:0;transform:translateY(18px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:1200px){
  .ai-builder-screen.chat.ai-v45-chat{width:100%;min-height:560px !important;}
  .ai-v45-chat .ai-chat-layout{grid-template-columns:1fr !important;height:auto !important;}
  .ai-v45-chat .ai-chat-log{min-height:420px;}
}


/* v4.6 AI dialog real chat: narrower and natural append */
.ai-builder-screen.chat.ai-v45-chat{
  width:min(980px,100%) !important;
  margin:0 auto !important;
  height:min(650px, calc(100vh - 150px)) !important;
  min-height:540px !important;
  max-height:calc(100vh - 150px) !important;
}
.ai-v45-chat .ai-chat-layout{
  grid-template-columns:minmax(0,640px) 282px !important;
  justify-content:center !important;
  gap:12px !important;
  height:calc(100% - 64px) !important;
}
.ai-v45-chat .ai-chat-log{
  justify-content:flex-end !important;
  overflow-y:auto !important;
  min-height:0 !important;
  padding:18px !important;
}
.ai-v45-chat .chat-bubble{
  max-width:min(520px,82%) !important;
}
.chat-bubble.live{animation:chatRise .26s cubic-bezier(.22,1,.36,1) both !important;}
.chat-bubble.live.assistant span{display:inline-flex;gap:4px;margin-top:8px;}
.chat-bubble.live.assistant span i{width:7px;height:7px;border-radius:50%;background:#7F77DD;display:block;animation:typingDot 1s infinite ease-in-out;}
.chat-bubble.live.assistant span i:nth-child(2){animation-delay:.14s}.chat-bubble.live.assistant span i:nth-child(3){animation-delay:.28s}
.ai-answer-panel.locked{opacity:.72;pointer-events:none;filter:saturate(.8);}
.ai-answer-panel.locked:after{content:'думаю…';position:absolute;right:14px;bottom:14px;font-size:11px;font-weight:900;color:#08704f;background:#eafff5;border:1px solid #b7ead7;border-radius:999px;padding:5px 9px;}
.ai-v45-chat .ai-answer-panel{width:282px !important;}
@media(max-width:1100px){
  .ai-builder-screen.chat.ai-v45-chat{width:100% !important;height:auto !important;min-height:560px !important;}
  .ai-v45-chat .ai-chat-layout{grid-template-columns:1fr !important;height:auto !important;}
  .ai-v45-chat .ai-answer-panel{width:auto !important;}
}

/* v4.7 AI developer smooth full-height dialog */
.ai-builder-screen.chat.ai-v45-chat{
  width:min(1120px,100%) !important;
  height:calc(100vh - 118px) !important;
  max-height:calc(100vh - 118px) !important;
  min-height:720px !important;
  margin:0 auto !important;
  padding:18px !important;
}
.ai-v45-chat .ai-chat-layout{
  grid-template-columns:minmax(0,720px) 320px !important;
  gap:14px !important;
  height:calc(100% - 66px) !important;
  align-items:stretch !important;
}
.ai-v45-chat .ai-chat-log{
  justify-content:flex-end !important;
  min-height:0 !important;
  padding:20px !important;
  overflow-y:auto !important;
  overscroll-behavior:contain;
  contain:layout paint;
}
.ai-v45-chat .chat-bubble{
  max-width:min(590px,84%) !important;
  will-change:transform,opacity;
}
.chat-bubble.live{
  animation:chatSmoothIn .34s cubic-bezier(.18,.9,.22,1) both !important;
}
.chat-bubble.typing-live{
  opacity:.96;
}
.chat-bubble.typing-live p{color:#65766f;}
.ai-v45-chat .ai-answer-panel{
  width:320px !important;
  transition:opacity .18s ease, filter .18s ease, transform .18s ease;
}
.ai-answer-panel.locked{
  transform:translateY(2px);
}
@keyframes chatSmoothIn{
  0%{opacity:0;transform:translateY(22px) scale(.985)}
  70%{opacity:1;transform:translateY(-1px) scale(1)}
  100%{opacity:1;transform:translateY(0) scale(1)}
}
@media(max-width:1180px){
  .ai-builder-screen.chat.ai-v45-chat{width:100% !important;min-height:650px !important;height:auto !important;max-height:none !important;}
  .ai-v45-chat .ai-chat-layout{grid-template-columns:1fr !important;height:auto !important;}
  .ai-v45-chat .ai-chat-log{min-height:460px !important;}
  .ai-v45-chat .ai-answer-panel{width:auto !important;}
}
@media(prefers-reduced-motion:reduce){
  .chat-bubble.live{animation:none !important;}
  .ai-v45-chat .ai-answer-panel{transition:none !important;}
}

/* v4.8 — cleaner generation history */
.wizard-profile-library{
  border-color:#dce8e2;
  background:linear-gradient(180deg,#ffffff,#f9fcfb);
  box-shadow:0 10px 30px rgba(16,32,28,.045);
}
.profile-library-title h3{font-size:15px;letter-spacing:-.03em}
.profile-library-title p{max-width:640px}
.wizard-profile-list{align-items:stretch;gap:12px;padding:4px 2px 6px;}
.wizard-profile-card{
  flex:0 0 270px;
  min-height:126px;
  padding:12px 12px 10px;
  display:flex;
  flex-direction:column;
  gap:7px;
  background:#fff;
}
.wizard-profile-card.active{background:linear-gradient(180deg,#f0fbf6,#ffffff);}
.wizard-profile-card p{
  height:34px;
  margin:0;
  font-size:11px;
  line-height:1.45;
}
.profile-head{margin:0;gap:18px;}
.profile-head b{font-size:13.5px;line-height:1.15;max-width:175px;}
.profile-head span{font-size:9.5px;padding:3px 6px;}
.profile-meta{margin-top:auto;margin-bottom:0;}
.profile-actions{margin-top:2px;}
.wizard-profile-x{right:7px;top:7px;width:22px;height:22px;line-height:18px;}
.ai-planning{max-width:760px!important;min-height:520px!important;margin:0 auto;}
.ai-side-loader.big{display:flex;justify-content:center;gap:7px;margin:26px auto 0;}


/* v5.0 structured AI intake */
.ai-v50-intake{justify-content:flex-start !important;max-width:1180px !important;margin:0 auto;width:100%;min-height:calc(100vh - 145px) !important;padding:24px !important;}
.ai-v50-intake .ai-builder-hero{margin:0;max-width:none;}
.ai-intake-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;width:100%;}
.ai-intake-grid label{display:flex;flex-direction:column;gap:7px;border:1px solid #dbe8e2;background:#fbfffd;border-radius:18px;padding:12px;}
.ai-intake-grid span{font-size:11px;font-weight:800;color:#5e7069;text-transform:uppercase;letter-spacing:.04em;}
.ai-intake-grid input,.ai-intake-grid select,.ai-reference-input{height:44px;border:1px solid #d7e5df;border-radius:14px;background:#fff;padding:0 12px;font:inherit;outline:none;}
.ai-intake-grid input:focus,.ai-intake-grid select:focus,.ai-reference-input:focus{border-color:#1d9e75;box-shadow:0 0 0 3px rgba(29,158,117,.12);}
.ai-v50-intake .ai-first-input{width:100%;max-width:none;min-height:190px !important;margin:0;}
.ai-reference-input{width:100%;}
.ai-intake-note{border:1px dashed #bde6d7;background:#f2fff9;border-radius:18px;padding:12px 14px;color:#526861;line-height:1.45;}
@media(max-width:1200px){.ai-intake-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.ai-intake-grid{grid-template-columns:1fr}.ai-v50-intake{min-height:auto!important}}


/* v5.2 YTW page + perf-lite */
.ytw-body{padding:18px;overflow:auto;background:linear-gradient(180deg,#f7faf8 0%,#f3f7f5 100%)}
.ytw-hero{display:flex;justify-content:space-between;gap:18px;align-items:center;background:#fff;border:1px solid var(--border);border-radius:24px;padding:18px 22px;margin-bottom:14px;box-shadow:0 12px 36px rgba(15,23,42,.05)}
.ytw-hero h1{margin:8px 0 6px;font-size:26px;letter-spacing:-.04em;color:var(--text)}
.ytw-hero p{max-width:760px;color:var(--muted);line-height:1.55;margin:0}.ytw-pill{display:inline-flex;border:1px solid #bbf7d0;background:#ecfdf5;color:#08724e;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:800}.ytw-hero-stats{display:grid;grid-template-columns:auto auto;gap:5px 10px;align-items:center;border:1px solid var(--border);border-radius:18px;padding:12px 14px;background:#f8fffb;min-width:170px}.ytw-hero-stats b{font-size:22px;color:#0f8d68}.ytw-hero-stats span{font-size:12px;color:var(--muted)}
.ytw-grid{display:grid;grid-template-columns:minmax(620px,1fr) 410px;gap:14px;align-items:start}.ytw-panel{background:#fff;border:1px solid var(--border);border-radius:22px;padding:16px;box-shadow:0 12px 34px rgba(15,23,42,.045)}.ytw-panel.main{min-height:calc(100vh - 230px)}.ytw-side{display:flex;flex-direction:column;gap:14px;position:sticky;top:14px}.ytw-section-title{display:flex;gap:12px;align-items:flex-start;margin:8px 0 12px}.ytw-section-title span{width:34px;height:34px;border-radius:14px;background:#eaf3ff;color:#2263b8;font-weight:900;display:flex;align-items:center;justify-content:center}.ytw-section-title h2{margin:0;font-size:18px}.ytw-section-title p{margin:3px 0 0;color:var(--muted);font-size:13px}.ytw-profile-row{display:grid;grid-template-columns:1fr auto;gap:10px;margin-bottom:10px}.ytw-profile-row select,.ytw-settings-grid input,.ytw-settings-grid select{border:1px solid var(--border);border-radius:14px;padding:10px 12px;background:#fbfdfc;color:var(--text);font-weight:650}.ytw-profile-card{border:1px solid var(--border);border-radius:18px;padding:13px;background:#f8fffb;display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:18px}.ytw-profile-card.active{border-color:#52d4a5;background:#effdf7}.ytw-profile-card b{display:block;font-size:15px}.ytw-profile-card span{display:block;color:var(--muted);font-size:12px;margin-top:3px}.ytw-profile-badges{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.ytw-profile-badges em{font-style:normal;background:#eee9ff;color:#5b42c8;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:800}.ytw-topic{width:100%;min-height:120px;border:1px solid var(--border);border-radius:18px;padding:14px;resize:vertical;background:#fbfdfc;font-size:15px;line-height:1.5}.ytw-switch{display:flex;gap:8px;align-items:center;margin:10px 0 18px;color:var(--muted);font-size:13px}.ytw-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ytw-settings-grid label span{display:block;font-size:11px;text-transform:uppercase;color:var(--muted);font-weight:850;margin-bottom:5px}.ytw-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.btn.big{padding:13px 18px;border-radius:15px}.ytw-flow-card h3,.ytw-panel h3{margin:0 0 10px;font-size:16px}.ytw-flow-line{display:grid;grid-template-columns:34px 1fr;gap:8px;border:1px solid var(--border);border-radius:14px;padding:9px;margin-bottom:8px;background:#fbfdfc}.ytw-flow-line span{grid-row:1/3;border-radius:12px;background:#e8fff4;color:#06815c;display:flex;align-items:center;justify-content:center;font-weight:900}.ytw-flow-line b{font-size:13px}.ytw-flow-line em{font-style:normal;color:var(--muted);font-size:12px}.ytw-preview-line{display:flex;justify-content:space-between;gap:12px;border-bottom:1px dashed var(--border);padding:8px 0;font-size:13px}.ytw-preview-line span{color:var(--muted);text-align:right}.ytw-note,.ytw-empty-mini{border:1px dashed var(--border);border-radius:14px;padding:12px;margin-top:12px;color:var(--muted);background:#fbfdfc;font-size:13px;line-height:1.45}.ytw-job-row{border:1px solid var(--border);border-radius:14px;padding:9px;margin-bottom:8px;background:#fbfdfc}.ytw-job-row b{display:block;font-size:13px}.ytw-job-row span{display:block;font-size:11px;color:var(--muted);margin-top:3px}
@media(max-width:1100px){.ytw-grid{grid-template-columns:1fr}.ytw-side{position:static}.ytw-hero{align-items:flex-start;flex-direction:column}.ytw-profile-row,.ytw-settings-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:no-preference){.ytw-hero,.ytw-panel{animation:ytwSoftIn .24s ease both}.ytw-panel:nth-child(2){animation-delay:.03s}.ytw-panel:nth-child(3){animation-delay:.06s}@keyframes ytwSoftIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}}
.tool-card,.wizard-card,.txt-focus-card,.ytw-panel{transition:transform .12s ease,border-color .12s ease,background-color .12s ease,box-shadow .12s ease}


/* v6.3 TXT two-phase progress + stable preview */
.txt-dual-progress{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 8px}.txt-dual-progress .dual-row{display:grid;grid-template-columns:auto auto minmax(110px,1fr);align-items:center;gap:8px;border:1px solid #e1eae5;background:#f8fbfa;border-radius:13px;padding:7px 9px}.txt-dual-progress .dual-row span{font-size:11px;font-weight:900;color:#5f7068}.txt-dual-progress .dual-row b{font-size:11px;color:#0b704f;white-space:nowrap}.txt-dual-progress .dual-row.muted{opacity:.55}.progress-track.small{height:6px;margin:0;background:#e6eee9;border-radius:999px;overflow:hidden}.progress-track.small div{height:100%;background:#1D9E75;border-radius:999px;transition:width .35s ease}.progress-track.small.audio div{background:#BA7517}.result-chip.original-chip{border-style:dashed;background:#fffdf7}.result-chip.original-chip.done{background:#f0fbf6;border-style:solid}.original-icon{width:28px;height:20px;border-radius:7px;background:#10231d;color:#fff;font-size:9px;font-weight:900;display:flex!important;align-items:center;justify-content:center;flex:0 0 28px}.txt5-preview-box{display:flex;flex-direction:column;overflow:hidden}.txt5-preview-box .preview-text{white-space:pre-wrap;word-break:break-word;overflow:auto;min-height:0;flex:1}.preview-head p b,.preview-head p strong{color:#08704f}@media(max-width:920px){.txt-dual-progress{grid-template-columns:1fr}.txt-dual-progress .dual-row{grid-template-columns:1fr auto}.txt-dual-progress .dual-row .progress-track{grid-column:1/-1}}
/* v6.5 TXT single overall progress */
.txt-single-progress{margin:0 0 10px;border:1px solid #dfe9e4;background:linear-gradient(180deg,#fbfdfc,#f6fbf8);border-radius:16px;padding:10px 12px;box-shadow:inset 0 1px 0 rgba(255,255,255,.75)}
.txt-progress-caption{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px;font-size:12px;font-weight:900;color:#254034}.txt-progress-title{color:#0b704f}.txt-progress-percent{color:#11231d;background:#e9f8f2;border:1px solid #bee8da;border-radius:999px;padding:3px 9px}.txt-progress-track-wide{height:13px;background:#e5edf4;border-radius:999px;overflow:hidden;position:relative}.txt-progress-track-wide:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.15),rgba(255,255,255,.5),rgba(255,255,255,.15));opacity:.65}.txt-overall-progress-bar{height:100%;min-width:0;background:linear-gradient(90deg,#1D9E75,#24b98a,#6c7df0);border-radius:999px;transition:width .55s cubic-bezier(.22,.61,.36,1);position:relative;overflow:hidden}.txt-overall-progress-bar:after{content:'';position:absolute;inset:0;background:linear-gradient(110deg,transparent 0%,rgba(255,255,255,.35) 35%,transparent 70%);animation:txtProgressShine 1.7s linear infinite}@keyframes txtProgressShine{from{transform:translateX(-100%)}to{transform:translateX(100%)}}

/* v6.7 TXT template labels + burn delete */
.option-card small#languageTemplateName,
.option-card small#voiceTemplateNameLabel{
  display:block;
  margin-top:4px;
  font-size:12px;
  color:var(--color-text-secondary, #66736d);
  line-height:1.25;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.txt5-lang-toolbar select{min-width:180px;}
.txt5-lang-toolbar button{white-space:nowrap;}
.history-item.history-burnout{
  pointer-events:none;
  transform-origin:center;
  animation:historyBurnout 1.9s ease-in forwards;
  position:relative;
  overflow:hidden;
}
.history-item.history-burnout::after{
  content:'';
  position:absolute;
  inset:-20%;
  background:radial-gradient(circle at 35% 45%, rgba(255,126,54,.35), transparent 28%),
             radial-gradient(circle at 65% 55%, rgba(236,57,30,.28), transparent 30%),
             linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  filter:blur(6px);
  animation:historyBurnoutFlame 1.9s ease-in forwards;
}
@keyframes historyBurnout{
  0%{opacity:1; transform:translateY(0) scale(1); filter:saturate(1)}
  35%{opacity:.92; transform:translateY(-2px) scale(.985); filter:saturate(1.25) brightness(1.03)}
  70%{opacity:.45; transform:translateY(6px) scale(.94); filter:grayscale(.35) blur(.2px)}
  100%{opacity:0; transform:translateY(12px) scale(.86); filter:grayscale(1) blur(3px); max-width:0; margin-right:0; padding-left:0; padding-right:0; border-width:0;}
}
@keyframes historyBurnoutFlame{
  0%{opacity:0; transform:translateX(-40%) rotate(0deg)}
  25%{opacity:1; transform:translateX(-10%) rotate(4deg)}
  65%{opacity:.75; transform:translateX(25%) rotate(-5deg)}
  100%{opacity:0; transform:translateX(70%) rotate(8deg)}
}
@media (prefers-reduced-motion: reduce){
  .history-item.history-burnout{animation:none; opacity:0; transition:opacity .2s linear;}
  .history-item.history-burnout::after{display:none;}
}
/* v6.11 language sorting and account display controls */
.language-account-panel{display:grid;grid-template-columns:180px 180px 1fr;gap:8px;margin:0 0 10px;padding:10px;border:1px solid #dfe8e3;border-radius:14px;background:#f8fbf9}
.language-account-panel label{display:flex;flex-direction:column;gap:5px;min-width:0}
.language-account-panel span{font-size:10px;font-weight:850;text-transform:uppercase;color:#6d7e75;letter-spacing:.035em}
.language-account-panel select,.language-account-panel input{height:38px;border:1px solid #d4e0da;border-radius:11px;background:#fff;padding:0 10px;font-weight:750;color:#17251f;outline:none}
.language-account-panel input:focus,.language-account-panel select:focus{border-color:#1D9E75;box-shadow:0 0 0 3px rgba(29,158,117,.1)}
.txt5-modal-languages .empty-mini{grid-column:1/-1;border:1px dashed #cfe0d7;border-radius:14px;padding:18px;text-align:center;color:#6b7d74;background:#fbfdfc}
.txt5-modal-languages .lang-name small{font-size:10px;color:#72837a;line-height:1.2}
@media(max-width:920px){.language-account-panel{grid-template-columns:1fr}.language-search-label{grid-column:auto}}

/* Audio Sync v7.0 */
.audio-sync-body{height:calc(100vh - 68px);overflow:hidden;padding:18px}.audio-sync-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:18px;height:100%}.audio-panel{background:#fff;border:1px solid #d7e5df;border-radius:24px;padding:18px;box-shadow:0 20px 45px rgba(16,45,35,.06);overflow:auto}.audio-panel.main{display:flex;flex-direction:column;gap:14px}.audio-drop{border:1px dashed #b8d7cb;border-radius:22px;min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:#fbfffd;cursor:pointer}.audio-drop input{display:none}.audio-drop .upload-icon{width:52px;height:52px;border-radius:18px;background:#edf8f3;display:grid;place-items:center;font-size:25px}.audio-options-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.audio-options-grid label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:800;color:#60746d}.audio-options-grid input,.audio-options-grid select{border:1px solid #d7e5df;border-radius:14px;padding:12px;background:#fbfffd}.upload-progress,.txt-progress-wrap{height:12px;background:#e8f0f4;border-radius:999px;overflow:hidden}.upload-progress>div,.txt-overall-progress-bar{height:100%;background:linear-gradient(90deg,#1fa174,#6b7cf1);border-radius:999px;transition:width .35s ease}.audio-actions{display:flex;justify-content:flex-end}.audio-job-head{display:flex;justify-content:space-between;align-items:center;padding:10px 0}.audio-artifact-grid{display:grid;grid-template-columns:1fr;gap:8px;margin-top:12px}.audio-artifact-card{display:grid;grid-template-columns:1fr auto;gap:4px 12px;align-items:center;border:1px solid #d7e5df;border-radius:14px;padding:10px;background:#fbfffd}.audio-artifact-card span{font-size:12px;color:#60746d}.audio-artifact-card .btn{grid-row:1/3;grid-column:2}.audio-final-zip{margin-top:12px;display:flex;justify-content:flex-end}.audio-report-table{margin-top:12px;border:1px solid #d7e5df;border-radius:16px;overflow:auto;max-height:310px}.audio-report-table table{width:100%;border-collapse:collapse;font-size:12px}.audio-report-table th,.audio-report-table td{padding:9px;border-bottom:1px solid #edf3f0;text-align:left}.audio-report-table tr.flagged{background:#fff8e8;color:#8a5200}@media(max-width:1100px){.audio-sync-grid{grid-template-columns:1fr}.audio-sync-body{overflow:auto}.audio-options-grid{grid-template-columns:1fr}}

/* v7.2 Audio Sync browser preview */
.audio-preview-panel{border:1px solid #d7e5df;border-radius:20px;background:#fbfffd;padding:14px;display:flex;flex-direction:column;gap:12px}
.audio-preview-note{border:1px dashed #cdded8;border-radius:14px;background:#fff;padding:10px 12px;color:#60746d;font-size:12px;line-height:1.45}
.audio-preview-grid{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end}
.audio-preview-grid label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:800;color:#60746d}
.audio-preview-grid input[type=range]{padding:0;accent-color:#1D9E75}
.audio-preview-grid select{border:1px solid #d7e5df;border-radius:14px;padding:11px 12px;background:#fff;color:#15243a;font-weight:750}
.audio-preview-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.preview-switch{align-self:center;margin:0!important;border:1px solid #d7e5df;background:#fff;border-radius:14px;padding:10px 12px;color:#15243a!important;font-weight:800}
@media(max-width:1100px){.audio-preview-grid{grid-template-columns:1fr}.preview-switch{align-self:stretch}}

/* v7.4.5 Audio Sync UX patch: loading, two-step preview, drag/drop, stable process scroll, history */
.audio-sync-body{height:calc(100vh - 68px);overflow:auto;padding:18px;scroll-behavior:smooth;}
.audio-sync-grid{min-height:calc(100vh - 150px);height:auto;}
.audio-panel{min-height:0;}
.audio-panel.main{overflow:auto;}
.audio-panel.side{display:flex;flex-direction:column;min-height:0;overflow:hidden;}
.audio-panel.side>.txt5-section-title,.audio-panel.side>.audio-job-head,.audio-panel.side>.txt-progress-wrap{flex:0 0 auto;}
.audio-process-scroll{flex:1 1 auto;min-height:0;overflow:auto;padding-right:2px;scrollbar-gutter:stable;}
.audio-process-scroll #audioReport{min-height:220px;}
.audio-report-table{max-height:none;height:100%;min-height:220px;}
.audio-report-table table{min-width:760px;}
.audio-drop.drag-over,.audio-music-drop.drag-over{border-color:#1D9E75;background:#effbf6;box-shadow:0 0 0 4px rgba(29,158,117,.12) inset;}
.audio-music-drop{border:1px dashed #c5ded4;border-radius:16px;background:#fbfffd;padding:12px;cursor:pointer;}
.audio-music-drop input{border:0!important;padding:0!important;background:transparent!important;}
.audio-preview-step{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid #d7e5df;border-radius:18px;background:#f7fbf9;padding:12px 14px;}
.audio-preview-step b{display:block;color:#0d5b43;margin-bottom:3px;}
.audio-preview-step span{font-size:12px;color:#60746d;font-weight:750;}
.audio-preview-step.done{background:#effbf6;border-color:#bbe5d4;}
.audio-preview-panel[hidden]{display:none!important;}
.audio-preview-panel.open{animation:agSlideUpSoft .28s cubic-bezier(.22,1,.36,1) both;}
.audio-artifact-card{grid-template-columns:1fr;}
.audio-artifact-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin-top:4px;}
.audio-artifact-card .audio-player{margin-top:4px;}
.audio-artifact-card .btn{grid-row:auto;grid-column:auto;}
.audio-artifact-card.artifact-burnout{pointer-events:none;animation:historyBurnout .9s ease-in forwards;position:relative;overflow:hidden;}
.audio-artifact-card.artifact-burnout::after{content:'';position:absolute;inset:-20%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.6),transparent),radial-gradient(circle at 50% 50%,rgba(239,89,42,.32),transparent 42%);filter:blur(5px);animation:historyBurnoutFlame .9s ease-in forwards;}
.audio-history-card{margin-top:18px;animation:agSlideUpSoft .28s cubic-bezier(.22,1,.36,1) both;}
.audio-history-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px;}
.audio-loading-card{max-width:440px;margin:120px auto;padding:28px;border:1px solid #d7e5df;border-radius:24px;background:#fff;text-align:center;box-shadow:0 20px 45px rgba(16,45,35,.06);animation:agSlideUpSoft .28s cubic-bezier(.22,1,.36,1) both;}
.audio-loading-card h2{margin:4px 0 8px;letter-spacing:-.03em;}
.audio-loading-card p{color:#60746d;font-size:13px;}
@media(prefers-reduced-motion:no-preference){.audio-sync-grid.motion-enter .audio-panel.main{animation:agSlideUpSoft .30s cubic-bezier(.22,1,.36,1) both}.audio-sync-grid.motion-enter .audio-panel.side{animation:agSlideLeftSoft .30s cubic-bezier(.22,1,.36,1) both;animation-delay:.05s}}
@media(max-width:1100px){.audio-sync-body{height:auto;overflow:auto}.audio-sync-grid{min-height:0}.audio-panel.side{overflow:auto}.audio-process-scroll{overflow:visible}.audio-report-table{height:auto;max-height:360px}.audio-preview-step{align-items:flex-start;flex-direction:column}.audio-preview-step .btn{width:100%}.audio-history-list{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.audio-loading-card,.audio-history-card,.audio-sync-grid.motion-enter .audio-panel.main,.audio-sync-grid.motion-enter .audio-panel.side,.audio-preview-panel.open,.audio-artifact-card.artifact-burnout{animation:none!important;transition:none!important;filter:none!important;transform:none!important}}

/* v7.4.6 Audio Sync swipe UX */
.audio-sync-body{height:calc(100vh - 68px);overflow:auto;padding:18px;scroll-behavior:smooth;background:#fbfdfc;}
.audio-step-tabs{display:flex;gap:8px;align-items:center;margin-bottom:12px;position:sticky;top:0;z-index:2;background:linear-gradient(#fbfdfc 70%,rgba(251,253,252,0));padding-bottom:8px;}
.audio-step-dot{border:1px solid #d7e5df;background:#fff;border-radius:999px;padding:9px 13px;font-weight:900;color:#60746d;cursor:pointer;transition:.18s ease;}
.audio-step-dot.active{background:#e9f8f2;border-color:#9fdec9;color:#086344;box-shadow:0 8px 22px rgba(29,158,117,.10);}
.audio-swipe-track{height:min(670px,calc(100vh - 235px));min-height:520px;display:flex;gap:0;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-behavior:smooth;border-radius:24px;overscroll-behavior-x:contain;}
.audio-swipe-track::-webkit-scrollbar{height:8px}.audio-swipe-track::-webkit-scrollbar-thumb{background:#c9ddd5;border-radius:999px}.audio-swipe-track::-webkit-scrollbar-track{background:#edf4f1;border-radius:999px}
.audio-page{flex:0 0 100%;height:100%;scroll-snap-align:start;scroll-snap-stop:always;overflow:auto;margin:0;border-radius:24px;}
.audio-page + .audio-page{margin-left:18px;}
.audio-panel.audio-page{background:#fff;border:1px solid #d7e5df;padding:18px;box-shadow:0 20px 45px rgba(16,45,35,.06);}
.setup-page,.preview-page,.process-page{display:flex;flex-direction:column;gap:14px;}
.audio-drop{min-height:210px;transition:border-color .18s ease,background .18s ease,transform .18s ease}.audio-drop.drag-over,.audio-music-drop.drag-over{border-color:#1D9E75;background:#eefbf6;transform:scale(.995)}
.audio-options-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
.audio-music-drop{border:1px dashed #b8d7cb;border-radius:18px;padding:12px;background:#fbfffd;cursor:pointer;min-height:82px;display:flex;flex-direction:column;justify-content:center;gap:8px;}
.audio-music-drop input{border:0;padding:0;background:transparent;}
.audio-preview-transport{display:grid;grid-template-columns:auto auto minmax(180px,1fr) auto;gap:10px;align-items:center;border:1px solid #d7e5df;border-radius:16px;padding:12px;background:#fff;}
.audio-preview-transport input[type=range]{width:100%;accent-color:#1D9E75;}
.audio-preview-transport span{font-size:12px;font-weight:900;color:#60746d;white-space:nowrap;}
.audio-preview-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:flex-end;}
.audio-preview-actions .big{min-width:220px;}
.audio-process-scroll{flex:1;min-height:0;overflow:auto;padding-right:4px;display:flex;flex-direction:column;gap:12px;}
.audio-report-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #d7e5df;background:#f7fbf9;border-radius:14px;padding:10px 12px;margin-top:12px;}
.audio-report-summary b{color:#085041}.audio-report-summary span{color:#60746d;font-size:12px;font-weight:800}
.audio-artifact-card{grid-template-columns:1fr;align-items:start;}.audio-artifact-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:6px}.audio-artifact-card .audio-player{width:100%}.audio-artifact-card .audio-player audio{width:100%;height:38px;}
.audio-history-card{margin-top:12px}.audio-history-card .panel-head{padding:8px 0 0 0;border:0}.audio-history-card .panel-head h2{font-size:14px}.audio-history-card .panel-head p{font-size:11px;color:#6e7d75}.audio-history-list{padding:8px 0 10px 0!important;display:flex!important;gap:8px!important;overflow-x:auto!important;overflow-y:hidden!important;grid-template-columns:none!important;}.audio-history-list .history-item{flex:0 0 230px;height:68px;border:1px solid #dfe7e2;border-radius:14px;background:#fff;position:relative;display:block;padding:9px 34px 9px 10px}.audio-history-list .history-item.active{border-color:#1D9E75;background:#f2fbf7}.audio-history-list .history-delete{position:absolute;right:7px;top:7px;border:0;background:#f4f7f5;border-radius:999px;width:22px;height:22px;line-height:20px;cursor:pointer}.audio-history-list .history-delete:hover{background:#ffe6e1;color:#b23a2d}.history-top{display:flex;justify-content:space-between;gap:6px;align-items:start}.history-top b{max-width:135px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
@media(prefers-reduced-motion:no-preference){.audio-swipe-track.motion-enter{animation:agSlideLeftSoft .28s cubic-bezier(.22,1,.36,1) both}.audio-step-dot.active{animation:agPulseSoft .22s ease both}}
@keyframes agPulseSoft{from{transform:scale(.98)}to{transform:scale(1)}}
@media(max-width:1100px){.audio-sync-body{height:auto;overflow:auto}.audio-swipe-track{height:auto;min-height:0}.audio-page{height:auto;min-height:560px}.audio-options-grid,.audio-preview-grid{grid-template-columns:1fr}.audio-preview-transport{grid-template-columns:1fr}.audio-preview-actions{justify-content:stretch}.audio-preview-actions .btn{width:100%}.audio-page + .audio-page{margin-left:12px}}
.audio-artifact-actions .btn{grid-row:auto!important;grid-column:auto!important;}

/* v7.4.7 Audio Sync compact fixed layout: no vertical page/card scroll, cleaner density */
.body.audio-sync-body{
  height:calc(100vh - 68px)!important;
  overflow:hidden!important;
  padding:10px 14px 10px!important;
  background:#fbfdfc;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.audio-step-tabs{
  flex:0 0 auto!important;
  margin-bottom:2px!important;
  padding-bottom:0!important;
  position:relative!important;
  top:auto!important;
  background:transparent!important;
}
.audio-step-dot{
  padding:7px 11px!important;
  font-size:12px!important;
  border-radius:14px!important;
}
.audio-swipe-track{
  flex:1 1 auto!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  border-radius:20px!important;
  scrollbar-width:thin;
}
.audio-page{
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
  border-radius:20px!important;
}
.audio-panel.audio-page{
  padding:13px 14px!important;
  box-shadow:0 12px 32px rgba(16,45,35,.045)!important;
  display:flex!important;
  flex-direction:column!important;
  gap:9px!important;
}
.audio-page + .audio-page{margin-left:12px!important;}
.audio-panel .txt5-section-title{
  margin-bottom:2px!important;
  gap:10px!important;
}
.audio-panel .txt5-section-title span{
  width:28px!important;height:28px!important;min-width:28px!important;
  font-size:11px!important;border-radius:10px!important;
}
.audio-panel .txt5-section-title h2{
  font-size:17px!important;
  line-height:1.1!important;
}
.audio-panel .txt5-section-title p{
  font-size:11px!important;
  line-height:1.3!important;
}
.audio-drop{
  min-height:116px!important;
  padding:14px!important;
  border-radius:18px!important;
  gap:5px!important;
}
.audio-drop .upload-icon{
  width:42px!important;height:42px!important;
  border-radius:15px!important;font-size:18px!important;
  margin-bottom:2px!important;
}
.audio-drop b{font-size:15px!important;}
.audio-drop span{font-size:12px!important;}
.audio-options-grid{
  gap:8px 10px!important;
}
.audio-options-grid label,
.audio-preview-grid label{
  gap:4px!important;
  font-size:11px!important;
}
.audio-options-grid select,
.audio-preview-grid select,
.audio-preview-grid input[type=number]{
  padding:9px 11px!important;
  border-radius:12px!important;
  min-height:38px!important;
  font-size:13px!important;
}
.audio-options-grid .muted-mini,
.audio-preview-grid .muted-mini{
  font-size:10px!important;
  line-height:1.25!important;
}
.audio-music-drop{
  min-height:64px!important;
  padding:9px 11px!important;
  border-radius:14px!important;
}
.audio-music-drop input{font-size:12px!important;}
.audio-preview-step{
  flex:0 0 auto!important;
  padding:9px 11px!important;
  border-radius:15px!important;
}
.audio-preview-step span{font-size:11px!important;}
.setup-page>.ytw-switch{
  flex:0 0 auto!important;
  padding:8px 10px!important;
  font-size:12px!important;
}
.audio-preview-note{
  padding:8px 10px!important;
  font-size:11px!important;
  line-height:1.35!important;
  border-radius:12px!important;
}
.audio-preview-grid{
  gap:8px 10px!important;
}
.audio-preview-grid input[type=range]{height:20px!important;}
.audio-preview-transport{
  grid-template-columns:auto auto minmax(160px,1fr) auto!important;
  padding:8px 10px!important;
  border-radius:14px!important;
  gap:8px!important;
}
.audio-preview-transport .btn{padding:8px 12px!important;font-size:12px!important;}
.audio-preview-actions{
  gap:6px!important;
  margin-top:0!important;
}
.audio-preview-actions .btn{padding:8px 12px!important;font-size:12px!important;}
.audio-preview-actions .big{min-width:190px!important;}
#audioPreviewStatus{font-size:11px!important;}
.process-page .audio-job-head,
.process-page .upload-progress,
.process-page .txt-progress-wrap,
#audioUploadLog{
  flex:0 0 auto!important;
}
.audio-process-scroll{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow:hidden!important;
  padding-right:0!important;
  gap:8px!important;
}
#audioReport,
#audioArtifacts{
  min-height:0!important;
}
.audio-report-summary{
  padding:7px 10px!important;
  margin-top:2px!important;
  border-radius:12px!important;
}
.audio-report-table{
  height:auto!important;
  max-height:none!important;
  min-height:0!important;
  overflow:hidden!important;
  border-radius:12px!important;
}
.audio-report-table table{font-size:11px!important;min-width:680px!important;}
.audio-report-table th,
.audio-report-table td{padding:6px 8px!important;}
.audio-artifact-grid{
  gap:7px!important;
}
.audio-artifact-card{
  padding:8px 10px!important;
  border-radius:13px!important;
}
.audio-artifact-card b{font-size:12px!important;}
.audio-artifact-card span{font-size:10px!important;}
.audio-artifact-actions .btn{padding:6px 9px!important;font-size:11px!important;}
.audio-artifact-card .audio-player audio{height:32px!important;}
.audio-history-card{
  flex:0 0 98px!important;
  margin-top:0!important;
  overflow:hidden!important;
}
.audio-history-card .panel-head{
  padding:6px 2px 4px!important;
}
.audio-history-card .panel-head h2{font-size:13px!important;}
.audio-history-card .panel-head p{display:none!important;}
.audio-history-list{
  flex:1 1 auto!important;
  padding:0 0 4px!important;
  gap:7px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
}
.audio-history-list .history-item{
  flex-basis:210px!important;
  height:58px!important;
  padding:7px 30px 7px 9px!important;
  border-radius:12px!important;
}
.audio-history-list .history-top b{font-size:11px!important;max-width:122px!important;}
.audio-history-list .history-item span,
.audio-history-list .history-item small{font-size:10px!important;}
.audio-history-list .history-delete{width:20px!important;height:20px!important;line-height:18px!important;}
.audio-loading-card{margin:80px auto!important;padding:22px!important;}
@media(max-width:1100px){
  .body.audio-sync-body{height:auto!important;overflow:auto!important;padding:10px!important;display:block!important;}
  .audio-swipe-track{height:auto!important;overflow-x:auto!important;}
  .audio-page{height:auto!important;min-height:520px!important;overflow:hidden!important;}
  .audio-history-card{height:auto!important;flex-basis:auto!important;}
}


/* v7.4.8 Audio Sync history polish */
.audio-history-card{
  flex:0 0 112px!important;
  border-radius:16px!important;
}
.audio-history-list{
  align-items:stretch!important;
  padding:2px 0 8px!important;
  gap:10px!important;
  scrollbar-gutter:stable!important;
}
.audio-history-list .history-item.audio-history-item{
  flex:0 0 260px!important;
  height:76px!important;
  padding:10px 34px 9px 12px!important;
  border-radius:16px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  gap:4px!important;
  box-shadow:0 7px 18px rgba(16,45,35,.035)!important;
  overflow:hidden!important;
}
.audio-history-list .history-item.audio-history-item.active{
  border-color:#1D9E75!important;
  box-shadow:0 8px 22px rgba(29,158,117,.10)!important;
}
.audio-history-list .audio-history-item .history-top{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  min-width:0!important;
}
.audio-history-list .audio-history-item .history-top b{
  flex:1 1 auto!important;
  max-width:none!important;
  min-width:0!important;
  font-size:12px!important;
  line-height:1.15!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.audio-history-list .audio-history-item .history-pill{
  flex:0 0 auto!important;
  font-size:10px!important;
  padding:3px 7px!important;
  line-height:1!important;
}
.audio-history-list .audio-history-item .history-meta-line,
.audio-history-list .audio-history-item small{
  display:block!important;
  line-height:1.15!important;
  max-width:205px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  color:#66746e!important;
}
.audio-history-list .audio-history-item small{font-size:10px!important;color:#84928d!important;}
.audio-history-list .audio-history-item .history-delete{
  right:8px!important;
  top:8px!important;
  width:22px!important;
  height:22px!important;
  line-height:20px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.audio-report-table tr.flagged td{background:#fff8e8!important;}
.audio-report-table tr td:last-child{font-weight:800;}
@media(max-width:1100px){.audio-history-list .history-item.audio-history-item{flex-basis:240px!important;height:74px!important;}}

/* v7.4.9 Audio Sync visible progress */
.audio-report-progress-info{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  flex-wrap:wrap!important;
  border:1px solid #d7e5df!important;
  background:#fbfffd!important;
  border-radius:12px!important;
  padding:7px 10px!important;
  font-size:11px!important;
  color:#60746d!important;
  font-weight:800!important;
}
.audio-report-progress-info span{
  display:inline-flex!important;
  align-items:center!important;
  gap:4px!important;
  background:#eef8f4!important;
  color:#085041!important;
  border-radius:999px!important;
  padding:4px 8px!important;
  white-space:nowrap!important;
}
.audio-report-progress-info em{
  flex:1 1 280px!important;
  min-width:220px!important;
  font-style:normal!important;
  color:#71827b!important;
  font-weight:700!important;
  line-height:1.25!important;
}
.audio-status{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:999px!important;
  padding:3px 8px!important;
  font-size:10px!important;
  line-height:1!important;
  font-weight:900!important;
  background:#eef2f1!important;
  color:#53645e!important;
  white-space:nowrap!important;
}
.audio-status-processing{background:#e8f7f1!important;color:#08704d!important;box-shadow:0 0 0 0 rgba(29,158,117,.26)!important;animation:audioWorkingPulse 1.25s ease-in-out infinite!important;}
.audio-status-queued{background:#f1f4f3!important;color:#6b7a75!important;}
.audio-status-done{background:#e8f7f1!important;color:#08704d!important;}
.audio-status-failed{background:#ffeceb!important;color:#b33a31!important;}
.audio-status-skipped_outlier{background:#fff6df!important;color:#936100!important;}
tr.status-processing td{background:#f7fffb!important;}
@keyframes audioWorkingPulse{0%{box-shadow:0 0 0 0 rgba(29,158,117,.30)}70%{box-shadow:0 0 0 7px rgba(29,158,117,0)}100%{box-shadow:0 0 0 0 rgba(29,158,117,0)}}
.audio-history-list .audio-history-item{
  justify-content:space-between!important;
  padding-top:9px!important;
  padding-bottom:9px!important;
}
.audio-history-list .audio-history-item .history-meta-line,
.audio-history-list .audio-history-item small{
  max-width:214px!important;
}
.audio-history-list .audio-history-item .history-top b{
  max-width:168px!important;
}

/* v7.4.13 Audio partial preview/download while job is running */
.audio-process-scroll{
  overflow-y:auto!important;
  overflow-x:hidden!important;
  gap:9px!important;
  padding-right:5px!important;
  scrollbar-gutter:stable!important;
}
.audio-report-table{
  max-height:310px!important;
  overflow:auto!important;
}
#audioArtifacts{
  flex:0 0 auto!important;
  min-height:96px!important;
}
.audio-ready-panel{
  border:1px solid #d7e5df!important;
  border-radius:14px!important;
  background:#fbfffd!important;
  padding:9px!important;
  margin-top:2px!important;
}
.audio-ready-panel.empty{
  color:#65746d!important;
  display:flex!important;
  flex-direction:column!important;
  gap:3px!important;
}
.audio-ready-panel.empty b{color:#0b6049!important;font-size:13px!important;}
.audio-ready-panel.empty span{font-size:11px!important;}
.audio-ready-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  margin-bottom:7px!important;
}
.audio-ready-head b{
  display:block!important;
  color:#0b6049!important;
  font-size:13px!important;
  line-height:1.2!important;
}
.audio-ready-head span{
  display:block!important;
  color:#65746d!important;
  font-size:11px!important;
  line-height:1.25!important;
}
.audio-artifact-grid{
  max-height:220px!important;
  overflow-y:auto!important;
  padding-right:3px!important;
  scrollbar-gutter:stable!important;
}
.audio-artifact-card.partial-ready{
  border-color:#b8ddcf!important;
  background:#f6fffb!important;
}
.audio-artifact-card.partial-ready b::before{
  content:'✓ ';
  color:#1D9E75;
}
.audio-artifact-actions .btn.primary{
  background:#1D9E75!important;
  color:#fff!important;
  border-color:#1D9E75!important;
}
@media(max-height:820px){
  .audio-report-table{max-height:240px!important;}
  .audio-artifact-grid{max-height:170px!important;}
}
@media(max-height:720px){
  .audio-report-table{max-height:190px!important;}
  .audio-artifact-grid{max-height:135px!important;}
}

/* v7.4.14 Audio failed-but-artifacts-visible */
.audio-error-box{display:flex;gap:10px;align-items:center;justify-content:space-between;margin:8px 0 10px;padding:10px 12px;border:1px solid #fecaca;background:#fff7f7;border-radius:14px;color:#7f1d1d}
.audio-error-box b{font-weight:900}
.audio-error-box span{font-size:12px;color:#991b1b;text-align:right}


/* v7.4.15 Audio progress/table stability: ready files do not cover report rows */
.audio-process-scroll{
  display:flex!important;
  flex-direction:column!important;
  gap:10px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding-bottom:8px!important;
}
#audioReport{flex:1 1 auto!important;min-height:0!important;}
#audioArtifacts{flex:0 0 auto!important;position:relative!important;z-index:0!important;background:#fff!important;margin-top:0!important;}
.audio-report-table{max-height:260px!important;overflow:auto!important;position:relative!important;z-index:0!important;}
.audio-ready-panel{position:relative!important;z-index:0!important;box-shadow:none!important;}
.audio-ready-panel.empty{min-height:44px!important;justify-content:center!important;text-align:center!important;}
.ytw-source-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:4px 0 12px}.ytw-source-tabs .ytw-switch{margin:0;border:1px solid var(--border);border-radius:14px;background:#fbfdfc;padding:9px 12px;font-weight:750}.ytw-source-tabs .ytw-switch:has(input:checked){border-color:#52d4a5;background:#effdf7;color:#085041}.ytw-topic.master{min-height:260px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px}#ytwDirectMasterBox label span{display:block;font-size:11px;text-transform:uppercase;color:var(--muted);font-weight:850;margin:10px 0 5px}#ytwDirectMasterBox input{width:100%;border:1px solid var(--border);border-radius:14px;padding:10px 12px;background:#fbfdfc;color:var(--text);font-weight:650}
.ytw-live-panel{border-color:#b9f1dc;background:linear-gradient(180deg,#fff 0%,#f7fffb 100%)}
.ytw-live-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:10px}.ytw-live-head h3{margin:0}.ytw-live-head p{margin:3px 0 0;color:var(--muted);font-size:11px;word-break:break-all}.ytw-live-bar{height:10px;border-radius:999px;background:#e7f1ec;overflow:hidden;margin:8px 0 12px}.ytw-live-bar i{display:block;height:100%;background:#13a875;border-radius:999px;transition:width .25s ease}.ytw-live-current{border:1px solid var(--border);background:#fbfdfc;border-radius:14px;padding:10px;margin-bottom:10px}.ytw-live-current b{display:block;font-size:13px}.ytw-live-current span{display:block;color:var(--muted);font-size:12px;line-height:1.45;margin-top:4px}.ytw-live-facts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}.ytw-live-facts div{border:1px solid var(--border);border-radius:12px;padding:8px;background:#fff}.ytw-live-facts b{display:block;font-size:10px;text-transform:uppercase;color:var(--muted)}.ytw-live-facts span{display:block;font-size:12px;font-weight:800;margin-top:3px;word-break:break-word}.ytw-live-log{border:1px solid var(--border);border-radius:14px;overflow:hidden;background:#fff;margin-top:8px}.ytw-log-line{display:grid;grid-template-columns:54px 1fr;gap:8px;padding:7px 9px;border-bottom:1px solid #eef2f7;font-size:12px}.ytw-log-line:last-child{border-bottom:0}.ytw-log-line b{color:#64748b}.ytw-log-line.error span{color:#b91c1c}.ytw-log-line.warning span{color:#a16207}.ytw-actions.small{margin-top:10px}.ytw-job-row{cursor:pointer}.ytw-job-row.active{border-color:#52d4a5;background:#effdf7}.ytw-job-row em{display:inline-flex;margin-top:6px;font-style:normal;background:#dcfce7;color:#166534;border-radius:999px;padding:3px 8px;font-size:10px;font-weight:900}

/* v7.4.19 YTW contract/stable-live patch */
.ytw-side .ytw-live-panel{animation:none!important}
.ytw-live-log{max-height:310px;overflow:auto}
.ytw-contract-mini{display:grid;grid-template-columns:1fr auto;gap:4px 10px;align-items:center;border:1px solid #b9f1dc;background:#f0fdf7;border-radius:16px;padding:11px 13px;margin:10px 0 8px}
.ytw-contract-mini b{font-size:13px;color:#0f513d}.ytw-contract-mini span{grid-column:1/-1;font-size:12px;color:#52635b}.ytw-contract-mini em{font-style:normal;font-size:10px;font-weight:900;color:#0f513d;background:#dcfce7;border-radius:999px;padding:4px 8px;text-transform:uppercase}.ytw-contract-mini.warn{border-color:#f6d58e;background:#fff9eb}.ytw-contract-mini.warn em{background:#ffedd5;color:#9a3412}
@media(min-width:1101px){.ytw-panel.main{min-height:0}.ytw-side{max-height:calc(100vh - 88px);overflow:auto;padding-right:2px}}
/* v7.4.21 YTW safer product UI */
.ytw-body{background:#f4f7f8!important}.ytw-panel{background:#ffffff;border-color:#d8e2e5;box-shadow:0 10px 28px rgba(15,23,42,.055)}
.ytw-topic,.ytw-settings-grid input,.ytw-settings-grid select,#ytwDirectMasterBox input{background:#fff;border-color:#cbd5dc;box-shadow:inset 0 1px 0 rgba(15,23,42,.02)}
.ytw-topic:focus,.ytw-settings-grid input:focus,.ytw-settings-grid select:focus,#ytwDirectMasterBox input:focus{outline:none;border-color:#1aa77b;box-shadow:0 0 0 3px rgba(26,167,123,.12)}
.ytw-section-title span{background:#e7eef6;color:#254869}.ytw-profile-card.active{background:#eefaf5;border-color:#78d8b5}.ytw-live-panel{background:#ffffff;border-color:#b9d9ce!important}.ytw-live-current,.ytw-live-facts div,.ytw-flow-line,.ytw-job-row{background:#f9fbfc;border-color:#dce5e8}.ytw-contract-mini{background:#ecfdf5;border-color:#8adfbd}.ytw-contract-mini.warn{background:#fff7ed;border-color:#fdba74}.ytw-locked-settings{border:1px dashed #b9c7cf;background:#f8fafc;border-radius:18px;padding:16px;margin:14px 0;color:#40515b}.ytw-locked-settings b{display:block;color:#17252d;margin-bottom:4px}.ytw-locked-settings span{font-size:13px;line-height:1.45}.ytw-cost-panel{border:1px solid #d8e2e5;background:#f8fafc;border-radius:18px;padding:12px;margin:10px 0 12px}.ytw-cost-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:7px}.ytw-cost-head b{font-size:14px}.ytw-cost-head span{font-size:12px;color:#0f766e;font-weight:850}.ytw-cost-row{display:grid;grid-template-columns:110px 1fr auto;gap:8px;align-items:center;padding:6px 0;border-top:1px solid #e5edf0;font-size:12px}.ytw-cost-row span{color:#64748b}.ytw-cost-row b{font-size:12px;word-break:break-word}.ytw-cost-row em{font-style:normal;color:#0f766e;font-weight:850;text-align:right}.ytw-cost-panel p{margin:8px 0 0;color:#64748b;font-size:11px;line-height:1.4}.ytw-stream{margin-top:12px}.ytw-stream h4{margin:8px 0}.ytw-stream-card{border:1px solid #d8e2e5;background:#f8fafc;border-radius:14px;padding:10px;margin-bottom:8px}.ytw-stream-card.danger{border-color:#f2b8b5;background:#fff7f7}.ytw-stream-card b{display:block;font-size:13px;margin-bottom:5px}.ytw-stream-card p{margin:5px 0 0;color:#64748b;font-size:12px;line-height:1.4}.ytw-stream-card pre{margin:0;white-space:pre-wrap;max-height:260px;overflow:auto;font-size:11px;line-height:1.42;color:#23313a}.ytw-stream-card ul{margin:6px 0 0;padding-left:18px;color:#465760;font-size:12px;line-height:1.4}
@media(max-width:720px){.ytw-cost-row{grid-template-columns:1fr}.ytw-cost-row em{text-align:left}.ytw-cost-head{align-items:flex-start;flex-direction:column}}

/* v7.4.22: stronger YTW contrast + Wizard master-prompt import */
.wizard-choice-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.wizard-choice-card.import:before{background:#0f766e}.wizard-choice-card.import .choice-icon{background:#e6fffa;color:#0f766e}.wizard-choice-card.import b{color:#0f766e}
.wizard-mode-banner.import{border-color:#99f6e4;background:linear-gradient(180deg,#f0fdfa,#fff)}.wizard-mode-banner.import>span{background:#ccfbf1;color:#0f766e}
.wizard-import-panel{border:1px solid #b7d9d5;background:#f8fffd;border-radius:22px;padding:16px;box-shadow:0 12px 34px rgba(15,118,110,.06);display:flex;flex-direction:column;gap:12px}.wizard-import-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px}.wizard-import-panel label span{display:block;font-size:11px;text-transform:uppercase;font-weight:900;color:#47615e;margin-bottom:6px}.wizard-import-panel input,.wizard-import-panel textarea{width:100%;border:1px solid #9fc9c4;border-radius:14px;background:#fff;padding:11px 12px;color:#102725;outline:none}.wizard-import-panel input:focus,.wizard-import-panel textarea:focus{border-color:#0f766e;box-shadow:0 0 0 3px rgba(15,118,110,.12)}.wizard-import-master textarea{min-height:310px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;line-height:1.55}.wizard-import-actions{display:flex;gap:10px;flex-wrap:wrap}.wizard-import-monitor{margin-top:12px}.wizard-import-monitor .ytw-live-panel{position:static;box-shadow:none}
@media(max-width:1380px){.wizard-choice-grid.four{grid-template-columns:1fr 1fr}.wizard-import-grid{grid-template-columns:1fr}}@media(max-width:760px){.wizard-choice-grid.four{grid-template-columns:1fr}}

.ytw-body{background:#eef3f6!important}.ytw-hero{background:linear-gradient(135deg,#0f172a 0%,#123d3a 55%,#0f766e 100%)!important;color:#fff!important;border:0!important;box-shadow:0 18px 60px rgba(15,23,42,.18)!important}.ytw-hero h1,.ytw-hero p,.ytw-hero-stats b,.ytw-hero-stats span{color:#fff!important}.ytw-pill{background:rgba(255,255,255,.14)!important;color:#dffef6!important;border:1px solid rgba(255,255,255,.22)!important}.ytw-hero-stats{background:rgba(255,255,255,.1)!important;border:1px solid rgba(255,255,255,.2)!important;border-radius:18px;padding:14px}.ytw-panel{background:#ffffff!important;border:1px solid #b8c8d1!important;box-shadow:0 14px 42px rgba(15,23,42,.075)!important}.ytw-panel.main{border-top:5px solid #0f766e!important}.ytw-section-title{background:#f4f8fa;border:1px solid #d3e0e6;border-radius:18px;padding:12px;margin:12px 0 14px}.ytw-section-title span{background:#0f766e!important;color:#fff!important}.ytw-profile-row select,.ytw-settings-grid input,.ytw-settings-grid select,#ytwDirectMasterBox input,.ytw-topic{background:#fff!important;border:1px solid #9aabb5!important;color:#0f172a!important}.ytw-profile-row select:focus,.ytw-settings-grid input:focus,.ytw-settings-grid select:focus,#ytwDirectMasterBox input:focus,.ytw-topic:focus{outline:none;border-color:#0f766e!important;box-shadow:0 0 0 3px rgba(15,118,110,.14)!important}.ytw-source-tabs .ytw-switch{background:#fff!important;border:1px solid #aab8c2!important;color:#344450}.ytw-source-tabs .ytw-switch:has(input:checked){background:#dffcf3!important;border-color:#0f766e!important;color:#0f513d!important}.ytw-profile-card.contract{background:#ecfdf5!important;border:1px solid #0f766e!important;box-shadow:inset 5px 0 0 #0f766e}.ytw-profile-card.direct{background:#fff7ed!important;border:1px solid #f59e0b!important;box-shadow:inset 5px 0 0 #f59e0b}.ytw-profile-badges em{background:#dbeafe!important;color:#1e3a8a!important;border:1px solid #bfdbfe}.ytw-contract-mini{border:1px solid #0f766e!important;background:#ecfdf5!important}.ytw-contract-mini.warn{border-color:#f59e0b!important;background:#fff7ed!important}.ytw-cost-panel{background:#f8fafc!important;border:1px solid #b8c8d1!important}.ytw-cost-row{grid-template-columns:120px minmax(0,1fr) 160px}.ytw-live-panel{background:#fff!important;border:1px solid #9ab8b0!important}.ytw-live-current,.ytw-live-facts div,.ytw-live-log,.ytw-job-row,.ytw-stream-card{border-color:#c7d4da!important;background:#f8fafc!important}.ytw-live-bar{background:#d9e6e1!important}.ytw-live-bar i{background:#0f766e!important}.ytw-preview-line{border-color:#cbd5dc!important}.ytw-note,.ytw-empty-mini,.ytw-locked-settings{background:#f8fafc!important;border-color:#aebec7!important;color:#344450!important}.ytw-settings-grid.v45{grid-template-columns:repeat(2,minmax(0,1fr))}.ytw-settings-grid.v45 label:first-child{grid-column:1/-1}.ytw-settings-grid.v45 label span{color:#40515b!important}.ytw-actions .btn.primary.big{background:#0f766e!important;border-color:#0f766e!important}
@media(max-width:720px){.ytw-settings-grid.v45{grid-template-columns:1fr}.ytw-cost-row{grid-template-columns:1fr}.ytw-cost-row em{text-align:left}}

/* v7.4.24 YTW mode explanation */
.ytw-mode-label{display:block!important}
.ytw-mode-hint{margin:8px 0 0;padding:10px 12px;border:1px solid #b8c8d1;border-radius:12px;background:#f8fafc;color:#334155;font-size:12px;line-height:1.45;font-weight:650;text-transform:none!important}
.ytw-settings-grid.v45 label.ytw-mode-label{grid-column:1/-1}
