:root{
  --bg:#0b1020;
  --bg-soft:#121936;
  --card:#ffffff;
  --text:#111827;
  --muted:#64748b;
  --white:#ffffff;
  --line:#e5e7eb;
  --brand:#6d5dfc;
  --brand-2:#23c3b9;
  --accent:#ffb703;
  --green:#16a34a;
  --red:#ef4444;
  --shadow:0 24px 70px rgba(15,23,42,.18);
  --radius:26px;
  --radius-sm:16px;
  --max:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif;
  color:var(--text);
  background:#f8fafc;
  line-height:1.6;
}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit}
img{max-width:100%;height:auto}
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.88);
  backdrop-filter:saturate(180%) blur(16px);
  border-bottom:1px solid rgba(226,232,240,.9);
}
.nav{
  max-width:var(--max);
  margin:auto;
  padding:14px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:850;
  letter-spacing:-.03em;
  font-size:1.12rem;
  color:#0f172a;
  white-space:nowrap;
}
.logo{
  width:38px;height:38px;border-radius:13px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,var(--brand),var(--brand-2));
  color:#fff;
  box-shadow:0 10px 26px rgba(109,93,252,.3);
  font-weight:900;
}
.navlinks{
  display:flex;
  align-items:center;
  gap:20px;
  color:#334155;
  font-weight:650;
  font-size:.94rem;
}
.navlinks a:hover{color:var(--brand)}
.nav-cta{display:flex;align-items:center;gap:10px}
.menu-btn{
  display:none;
  border:1px solid var(--line);
  background:#fff;
  border-radius:12px;
  padding:8px 12px;
  font-size:1.2rem;
  cursor:pointer;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  border:0;
  padding:12px 18px;
  border-radius:999px;
  font-weight:800;
  cursor:pointer;
  transition:.2s ease;
  white-space:nowrap;
}
.btn.primary{
  background:linear-gradient(135deg,var(--brand),#8d62ff);
  color:#fff;
  box-shadow:0 14px 34px rgba(109,93,252,.28);
}
.btn.primary:hover{transform:translateY(-1px);box-shadow:0 18px 42px rgba(109,93,252,.34)}
.btn.secondary{
  background:#fff;
  color:#0f172a;
  border:1px solid #dbe3ef;
  box-shadow:0 8px 22px rgba(15,23,42,.06);
}
.btn.secondary:hover{border-color:#b9c5d6;transform:translateY(-1px)}
.btn.dark{background:#0f172a;color:#fff}
.btn.light{background:#fff;color:#0f172a}
.hero{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 10% 10%, rgba(35,195,185,.28), transparent 32%),
    radial-gradient(circle at 88% 16%, rgba(109,93,252,.36), transparent 33%),
    linear-gradient(180deg,#f8fbff 0%,#f3f7ff 52%,#ffffff 100%);
}
.hero:before{
  content:"";
  position:absolute;inset:0;
  background-image:linear-gradient(rgba(15,23,42,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(15,23,42,.045) 1px, transparent 1px);
  background-size:42px 42px;
  mask-image:linear-gradient(to bottom, black, transparent 80%);
  pointer-events:none;
}
.hero-wrap{
  max-width:var(--max);
  margin:auto;
  padding:78px 20px 70px;
  display:grid;
  grid-template-columns:1.02fr .98fr;
  gap:42px;
  align-items:center;
  position:relative;
}
.sub-hero .hero-wrap{grid-template-columns:1fr;max-width:920px;text-align:center;padding:62px 20px}
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:#fff;
  border:1px solid #dbeafe;
  color:#1e40af;
  border-radius:999px;
  padding:8px 12px;
  font-weight:800;
  font-size:.88rem;
  box-shadow:0 10px 30px rgba(59,130,246,.08);
}
.pulse{
  width:9px;height:9px;border-radius:50%;
  background:var(--green);
  box-shadow:0 0 0 6px rgba(22,163,74,.12);
}
h1{
  font-size:clamp(2.45rem,5vw,5.2rem);
  line-height:.98;
  margin:18px 0 20px;
  letter-spacing:-.075em;
  color:#07111f;
}
.sub-hero h1{font-size:clamp(2.25rem,4.2vw,4.25rem)}
.grad{
  background:linear-gradient(135deg,var(--brand),#00a6a6 50%,#0f172a);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.lead{
  font-size:1.18rem;
  color:#475569;
  max-width:670px;
  margin:0 0 28px;
}
.sub-hero .lead{margin-left:auto;margin-right:auto}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin:28px 0 22px}
.sub-hero .hero-actions{justify-content:center}
.trust{display:flex;flex-wrap:wrap;gap:12px;color:#334155;font-weight:700;font-size:.94rem}
.sub-hero .trust{justify-content:center}
.trust span{
  display:inline-flex;
  align-items:center;
  gap:7px;
  background:rgba(255,255,255,.78);
  border:1px solid #e2e8f0;
  padding:7px 11px;
  border-radius:999px;
}
.check{color:var(--green);font-weight:900}
.phone-card{
  background:rgba(255,255,255,.74);
  backdrop-filter:blur(18px);
  border:1px solid rgba(226,232,240,.92);
  border-radius:36px;
  padding:16px;
  box-shadow:var(--shadow);
}
.app-shell{
  border-radius:26px;
  background:#0f172a;
  overflow:hidden;
  color:#fff;
  min-height:560px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);
}
.app-top{
  padding:18px 18px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.dots{display:flex;gap:6px}
.dots i{width:8px;height:8px;border-radius:50%;background:#94a3b8;display:block}
.mini-title{font-weight:850;letter-spacing:-.03em}
.app-body{padding:18px}
.profile-card{
  background:linear-gradient(135deg,rgba(109,93,252,.22),rgba(35,195,185,.18));
  border:1px solid rgba(255,255,255,.13);
  border-radius:22px;
  padding:16px;
  margin-bottom:14px;
}
.profile-card .row{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}
.tiny{font-size:.8rem;color:#cbd5e1}
.chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 9px;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  color:#e2e8f0;
  font-weight:750;
  font-size:.8rem;
}
.wave{height:46px;display:flex;align-items:center;gap:4px;margin-top:14px}
.wave b{
  width:6px;
  border-radius:99px;
  display:block;
  background:linear-gradient(180deg,var(--accent),#fb7185);
  opacity:.95;
}
.wave b:nth-child(1){height:16px}.wave b:nth-child(2){height:30px}.wave b:nth-child(3){height:21px}.wave b:nth-child(4){height:40px}.wave b:nth-child(5){height:26px}.wave b:nth-child(6){height:36px}.wave b:nth-child(7){height:18px}.wave b:nth-child(8){height:42px}.wave b:nth-child(9){height:24px}.wave b:nth-child(10){height:34px}.wave b:nth-child(11){height:19px}.wave b:nth-child(12){height:39px}
.dialog-list{display:grid;gap:10px}
.dialog-item{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.1);
  border-radius:18px;
  padding:13px;
}
.speaker{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px;font-weight:850}
.speaker em{
  font-style:normal;
  font-size:.78rem;
  color:#a5b4fc;
  background:rgba(129,140,248,.14);
  border:1px solid rgba(129,140,248,.18);
  padding:4px 8px;
  border-radius:999px;
}
.dialog-item p{margin:0;color:#dbeafe;font-size:.92rem;line-height:1.45}
.progress{margin-top:16px;background:rgba(255,255,255,.08);border-radius:999px;height:10px;overflow:hidden}
.progress span{display:block;height:100%;width:68%;background:linear-gradient(90deg,var(--brand-2),var(--accent));border-radius:inherit}
section{padding:72px 20px}
.container{max-width:var(--max);margin:auto}
.narrow{max-width:880px;margin:auto}
.section-head{max-width:760px;margin:0 auto 36px;text-align:center}
.eyebrow{
  color:var(--brand);
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size:.78rem;
  margin-bottom:8px;
}
h2{
  font-size:clamp(2rem,3.4vw,3.2rem);
  line-height:1.05;
  letter-spacing:-.055em;
  margin:0 0 14px;
  color:#0f172a;
}
h3{letter-spacing:-.02em}
.section-head p{color:#64748b;font-size:1.05rem;margin:0}
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.step,.feature,.use-card,.faq-item,.content-card,.tool-card{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:var(--radius);
  padding:24px;
  box-shadow:0 18px 50px rgba(15,23,42,.06);
}
.step-num{
  width:46px;height:46px;border-radius:16px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,var(--brand),var(--brand-2));
  color:#fff;font-weight:900;margin-bottom:16px;
}
.step h3,.feature h3,.use-card h3,.tool-card h3{margin:0 0 8px;font-size:1.12rem}
.step p,.feature p,.use-card p,.faq-item p,.tool-card p{margin:0;color:#64748b}
.split{display:grid;grid-template-columns:.95fr 1.05fr;gap:30px;align-items:center}
.panel{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:34px;
  padding:24px;
  box-shadow:var(--shadow);
}
.builder{
  background:#0b1020;
  color:#fff;
  border-radius:26px;
  padding:18px;
}
.builder-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:12px;border-bottom:1px solid rgba(255,255,255,.1);margin-bottom:14px}
.builder textarea,.builder input,.builder select{
  width:100%;
  background:#111a33;
  color:#e5e7eb;
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  padding:15px;
  outline:none;
  line-height:1.55;
}
.builder textarea{min-height:170px;resize:vertical}
.builder textarea:focus,.builder input:focus,.builder select:focus{border-color:rgba(109,93,252,.8)}
.builder select option{color:#0f172a}
.builder-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.builder-card{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);border-radius:18px;padding:12px}
.builder-card strong{display:block;margin-bottom:4px}.builder-card small{color:#cbd5e1}
.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.icon{
  width:44px;height:44px;border-radius:15px;
  display:grid;place-items:center;
  background:#eef2ff;color:var(--brand);
  font-size:1.35rem;margin-bottom:14px;
}
.use-cases{background:linear-gradient(180deg,#ffffff,#f1f5ff)}
.use-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.demo{
  background:#0b1020;color:#fff;overflow:hidden;position:relative;
}
.demo:before{
  content:"";
  position:absolute;width:520px;height:520px;border-radius:50%;
  background:radial-gradient(circle,rgba(109,93,252,.32),transparent 68%);
  right:-190px;top:-190px;
}
.demo .section-head h2,.demo .section-head p{color:#fff}
.demo .section-head p{color:#cbd5e1}
.demo-box{
  position:relative;
  max-width:900px;
  margin:auto;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  border-radius:32px;
  padding:22px;
  backdrop-filter:blur(10px);
}
.demo-row{display:grid;grid-template-columns:1fr 180px 120px;gap:10px;margin-bottom:10px}
.demo-row input,.demo-row select{
  width:100%;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.08);
  color:#fff;
  border-radius:14px;
  padding:12px;
  outline:none;
}
.demo-row select option{color:#0f172a}
.demo-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.free-card{
  max-width:920px;
  margin:auto;
  display:grid;
  grid-template-columns:1fr .9fr;
  gap:20px;
  align-items:center;
  background:linear-gradient(135deg,#10172d,#1a2448);
  color:#fff;
  border-radius:36px;
  padding:30px;
  box-shadow:var(--shadow);
  overflow:hidden;
  position:relative;
}
.free-card:after{
  content:"";
  position:absolute;right:-80px;bottom:-110px;
  width:320px;height:320px;border-radius:50%;
  background:radial-gradient(circle,rgba(35,195,185,.42),transparent 70%);
}
.free-card h2{color:#fff}.free-card p{color:#cbd5e1}
.free-card ul{margin:18px 0 0;padding:0;list-style:none;display:grid;gap:9px;color:#e2e8f0;position:relative;z-index:1}
.free-card li:before{content:"✓";color:#4ade80;font-weight:900;margin-right:8px}
.ad-box{position:relative;z-index:1;background:rgba(255,255,255,.08);border:1px dashed rgba(255,255,255,.25);border-radius:24px;padding:22px;text-align:center}
.ad-box b{font-size:2rem;display:block;margin-bottom:4px}
.faq-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.faq-item h3{margin:0 0 8px;font-size:1.05rem}
.cta{
  background:linear-gradient(135deg,var(--brand),#1fb9b1);
  color:#fff;text-align:center;
}
.cta h2{color:#fff}
.cta p{max-width:720px;margin:0 auto 26px;color:#eef2ff;font-size:1.08rem}
.content-section{background:#fff}
.content-card{max-width:920px;margin:0 auto 18px}
.content-card h2{font-size:2rem}
.content-card ul,.content-card ol{color:#475569;padding-left:22px}
.content-card li{margin:8px 0}
.tool-preview{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  align-items:start;
}
.form-lite label{display:block;font-weight:800;margin:12px 0 6px}
.form-lite input,.form-lite textarea,.form-lite select{
  width:100%;
  border:1px solid #dbe3ef;
  border-radius:16px;
  padding:12px 14px;
  outline:none;
  background:#fff;
}
.form-lite textarea{min-height:150px;resize:vertical}
.form-lite input:focus,.form-lite textarea:focus,.form-lite select:focus{border-color:var(--brand);box-shadow:0 0 0 4px rgba(109,93,252,.12)}
.note{
  background:#eff6ff;
  border:1px solid #bfdbfe;
  color:#1e3a8a;
  border-radius:18px;
  padding:14px 16px;
  font-weight:650;
}
.warning{
  background:#fff7ed;
  border:1px solid #fed7aa;
  color:#9a3412;
  border-radius:18px;
  padding:14px 16px;
  font-weight:650;
}
.comparison{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border:1px solid #e2e8f0;
  border-radius:18px;
}
.comparison th,.comparison td{
  padding:14px;
  text-align:left;
  border-bottom:1px solid #e2e8f0;
}
.comparison th{background:#f8fafc;color:#0f172a}
.comparison tr:last-child td{border-bottom:0}
footer{background:#07111f;color:#cbd5e1;padding:36px 20px}
.footer-wrap{
  max-width:var(--max);
  margin:auto;
  display:grid;
  grid-template-columns:1.2fr 1.4fr .7fr;
  gap:24px;
  align-items:start;
}
.footer-brand{color:#fff}
.footer-note{max-width:420px;margin:12px 0 0;color:#94a3b8}
.footer-links{display:flex;gap:14px;flex-wrap:wrap;font-weight:650}
.footer-links a:hover{color:#fff}
.copyright{text-align:right;color:#94a3b8}
@media (max-width:980px){
  .hero-wrap,.split,.free-card,.tool-preview{grid-template-columns:1fr}
  .steps,.feature-grid,.use-grid{grid-template-columns:1fr 1fr}
  .hero-wrap{padding-top:52px}
  .phone-card{max-width:560px;margin:auto}
  .menu-btn{display:inline-flex}
  .navlinks{
    display:none;
    position:absolute;
    left:16px;right:16px;top:68px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:20px;
    padding:14px;
    box-shadow:0 20px 60px rgba(15,23,42,.18);
    flex-direction:column;
    align-items:flex-start;
  }
  .navlinks.open{display:flex}
  .footer-wrap{grid-template-columns:1fr;text-align:left}
  .copyright{text-align:left}
}
@media (max-width:680px){
  .nav{padding:12px 14px}
  .nav-cta .secondary{display:none}
  .hero-wrap{padding:40px 16px 54px}
  section{padding:54px 16px}
  .steps,.feature-grid,.use-grid,.faq-grid,.builder-grid{grid-template-columns:1fr}
  .hero-actions .btn{width:100%}
  .trust span{width:100%;justify-content:center}
  .demo-row{grid-template-columns:1fr}
  .app-shell{min-height:auto}
  h1{font-size:2.7rem}
  .free-card{padding:24px}
  .footer-links{display:grid}
}

/* Account and database pages */
.flash-wrap{max-width:var(--max);margin:18px auto 0;padding:0 20px;display:grid;gap:10px}
.flash{border-radius:16px;padding:12px 14px;font-weight:750;border:1px solid}
.flash-success{background:#ecfdf5;color:#065f46;border-color:#a7f3d0}
.flash-error{background:#fef2f2;color:#991b1b;border-color:#fecaca}
.flash-info{background:#eff6ff;color:#1e3a8a;border-color:#bfdbfe}
.auth-wrap{max-width:520px;margin:0 auto}
.auth-card{background:#fff;border:1px solid #e2e8f0;border-radius:30px;padding:28px;box-shadow:var(--shadow)}
.auth-card h2{font-size:2rem;margin-bottom:8px}
.form-lite .help{color:#64748b;font-size:.9rem;margin-top:6px}
.form-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px;align-items:center}
.account-layout{display:grid;grid-template-columns:260px 1fr;gap:22px;align-items:start}
.sidebar-card{background:#fff;border:1px solid #e2e8f0;border-radius:24px;padding:16px;box-shadow:0 18px 50px rgba(15,23,42,.06);position:sticky;top:90px}
.sidebar-card a{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 12px;border-radius:14px;font-weight:800;color:#334155}
.sidebar-card a:hover,.sidebar-card a.active{background:#eef2ff;color:var(--brand)}
.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:18px}
.stat-card{background:#fff;border:1px solid #e2e8f0;border-radius:24px;padding:20px;box-shadow:0 18px 50px rgba(15,23,42,.06)}
.stat-card b{display:block;font-size:2rem;letter-spacing:-.05em;color:#0f172a}.stat-card span{color:#64748b;font-weight:750}
.table-wrap{overflow:auto;background:#fff;border:1px solid #e2e8f0;border-radius:24px;box-shadow:0 18px 50px rgba(15,23,42,.06)}
.data-table{width:100%;border-collapse:collapse;min-width:760px}
.data-table th,.data-table td{padding:14px;text-align:left;border-bottom:1px solid #e2e8f0;vertical-align:top}
.data-table th{background:#f8fafc;color:#0f172a;font-size:.9rem}.data-table tr:last-child td{border-bottom:0}
.inline-actions{display:flex;gap:8px;flex-wrap:wrap}.link-danger{color:#b91c1c;font-weight:850;background:none;border:0;cursor:pointer;padding:0}
.badge-soft{display:inline-flex;border-radius:999px;background:#eef2ff;color:#4338ca;padding:4px 9px;font-weight:850;font-size:.78rem}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:14px}.grid-3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px}
.muted{color:#64748b}.small{font-size:.9rem}.mt-0{margin-top:0}.mb-0{margin-bottom:0}.mb-16{margin-bottom:16px}.mt-16{margin-top:16px}.mt-24{margin-top:24px}
@media(max-width:880px){.account-layout{grid-template-columns:1fr}.sidebar-card{position:static}.stat-grid,.grid-2,.grid-3{grid-template-columns:1fr}.auth-card{padding:22px}}


.google-login-box{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:20px;
  padding:16px;
  margin:0 0 18px;
  box-shadow:0 12px 34px rgba(15,23,42,.06);
}
.form-note{
  margin:10px 0 0;
  color:#64748b;
  font-size:.92rem;
}
.flash-success,.flash-error{
  border-radius:16px;
  padding:12px 14px;
  margin:0 0 16px;
  font-weight:750;
}
.flash-success{background:#ecfdf5;color:#166534;border:1px solid #bbf7d0}
.flash-error{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}


/* Admin panel */
.admin-section{padding:42px 20px;background:#f8fafc}
.admin-layout{
  max-width:1280px;
  margin:auto;
  display:grid;
  grid-template-columns:260px 1fr;
  gap:22px;
  align-items:start;
}
.admin-sidebar{
  position:sticky;
  top:92px;
  background:#07111f;
  color:#cbd5e1;
  border-radius:26px;
  padding:16px;
  box-shadow:0 20px 55px rgba(15,23,42,.18);
}
.admin-title{
  color:#fff;
  font-weight:900;
  font-size:1.1rem;
  padding:10px 12px 14px;
  border-bottom:1px solid rgba(255,255,255,.1);
  margin-bottom:10px;
}
.admin-sidebar a{
  display:block;
  padding:11px 12px;
  border-radius:14px;
  font-weight:750;
}
.admin-sidebar a:hover{background:rgba(255,255,255,.08);color:#fff}
.admin-content h1{
  margin:0 0 8px;
  font-size:clamp(2rem,3vw,3rem);
  line-height:1.05;
  letter-spacing:-.055em;
}
.admin-cards{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:14px;
  margin:22px 0;
}
.admin-card{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:22px;
  padding:18px;
  box-shadow:0 18px 50px rgba(15,23,42,.06);
}
.admin-card b{
  display:block;
  font-size:2rem;
  color:#0f172a;
  line-height:1;
}
.admin-card span{display:block;margin-top:8px;color:#64748b;font-weight:750}
.admin-filter{
  display:flex;
  gap:10px;
  margin:18px 0;
}
.admin-filter input,.admin-filter select{
  border:1px solid #dbe3ef;
  border-radius:999px;
  padding:12px 15px;
  min-width:260px;
}
.admin-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}
.admin-actions form{display:inline}
.btn.danger{color:#991b1b;border-color:#fecaca;background:#fff5f5}
.check-row{
  display:flex!important;
  align-items:center;
  gap:10px;
  font-weight:800;
}
.check-row input{width:auto!important}
.muted{color:#64748b}
.mt-0{margin-top:0}
.auth-wrap{max-width:560px;margin:auto}
.auth-card{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:28px;
  padding:26px;
  box-shadow:0 20px 60px rgba(15,23,42,.08);
}
.help{color:#64748b;font-size:.9rem;margin-top:6px}
.form-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:18px}
.flash-wrap{max-width:1180px;margin:16px auto 0;padding:0 20px}
.flash{border-radius:16px;padding:12px 14px;margin:0 0 10px;font-weight:750}
.flash-success{background:#ecfdf5;color:#166534;border:1px solid #bbf7d0}
.flash-error{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}
@media (max-width:980px){
  .admin-layout{grid-template-columns:1fr}
  .admin-sidebar{position:relative;top:0}
  .admin-cards{grid-template-columns:1fr 1fr}
}
@media (max-width:680px){
  .admin-cards{grid-template-columns:1fr}
  .admin-filter{display:grid}
  .admin-filter input,.admin-filter select{min-width:0;width:100%}
}

.code-block{white-space:pre-wrap;word-break:break-word;background:#0f172a;color:#e2e8f0;border-radius:14px;padding:12px;font-size:.86rem;margin:10px 0 0;overflow:auto}details summary{cursor:pointer;color:#334155}.form-actions form{display:inline-block}


.code-block{
  white-space:pre-wrap;
  word-break:break-word;
  background:#0f172a;
  color:#e2e8f0;
  border-radius:14px;
  padding:12px;
  font-size:.86rem;
  margin:10px 0 0;
  overflow:auto;
}
details summary{
  cursor:pointer;
  color:#334155;
}
.demo-result{
  margin-top:18px;
  background:#fff;
  color:#0f172a;
  border-radius:20px;
  padding:16px;
  border:1px solid rgba(255,255,255,.18);
}
.demo-result h3{margin-top:0}


.form-lite input[type="range"]{
  width:calc(100% - 70px);
  vertical-align:middle;
}
.form-lite output{
  display:inline-block;
  min-width:52px;
  text-align:center;
  font-weight:800;
  color:#334155;
  background:#f1f5f9;
  border-radius:999px;
  padding:6px 8px;
  margin-left:8px;
}
.form-lite h3{
  margin:24px 0 10px;
  padding-top:14px;
  border-top:1px solid #e2e8f0;
  font-size:1.05rem;
}


/* Product-first audio studio flow */
.product-hero{padding-top:64px}
.studio-card{
  margin-top:28px;
  background:rgba(255,255,255,.96);
  color:#0f172a;
  border:1px solid rgba(148,163,184,.25);
  border-radius:32px;
  padding:22px;
  box-shadow:0 28px 90px rgba(15,23,42,.18);
  text-align:left;
}
.studio-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:18px;
}
.studio-label{
  display:block;
  font-weight:900;
  color:#0f172a;
  margin:0 0 8px;
}
.studio-textarea{
  width:100%;
  min-height:320px;
  resize:vertical;
  border:1px solid #dbe3ef;
  border-radius:22px;
  padding:18px;
  font:inherit;
  line-height:1.55;
  background:#fff;
}
.studio-select{
  width:100%;
  border:1px solid #dbe3ef;
  border-radius:16px;
  padding:13px 14px;
  margin:0 0 16px;
  background:#fff;
  font:inherit;
  font-weight:700;
}
.studio-side{
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:24px;
  padding:18px;
}
.btn.full{
  width:100%;
  justify-content:center;
  margin:8px 0;
}
.upload-row{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:12px;
}
.file-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px dashed #94a3b8;
  border-radius:999px;
  padding:10px 14px;
  font-weight:900;
  cursor:pointer;
  color:#334155;
  background:#f8fafc;
}
.file-pill input{display:none}
.login-note{
  margin-top:14px;
  padding:12px;
  border-radius:16px;
  background:#eef2ff;
  color:#334155;
  font-size:.94rem;
  line-height:1.45;
}
.login-note a{font-weight:900;color:#4f46e5}
.studio-preview{
  margin-top:18px;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:22px;
  padding:16px;
}
.warning{
  background:#fff7ed;
  color:#9a3412;
  border:1px solid #fed7aa;
  border-radius:16px;
  padding:12px 14px;
  margin:12px 0;
  font-weight:750;
}
.mini-grid{grid-template-columns:repeat(3,1fr)}
@media (max-width:900px){
  .studio-grid{grid-template-columns:1fr}
  .studio-textarea{min-height:260px}
  .mini-grid{grid-template-columns:1fr}
}


/* v10 polished product-first homepage/studio */
.home-studio{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 5% 15%, rgba(34,211,238,.22), transparent 32%),
    radial-gradient(circle at 90% 12%, rgba(139,92,246,.20), transparent 34%),
    linear-gradient(135deg,#f8fafc 0%,#eef6ff 48%,#f8f7ff 100%);
  padding:68px 20px 78px;
}
.home-studio:before{
  content:"";
  position:absolute;
  inset:0;
  background-image:linear-gradient(rgba(15,23,42,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(15,23,42,.035) 1px,transparent 1px);
  background-size:42px 42px;
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.55),transparent 80%);
}
.home-studio-wrap{
  position:relative;
  max-width:1180px;
  margin:0 auto;
  display:grid;
  grid-template-columns: minmax(0,1fr) 520px;
  gap:42px;
  align-items:center;
}
.home-copy{
  min-width:0;
}
.soft-badge{
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:8px 14px;
  border:1px solid rgba(79,70,229,.20);
  border-radius:999px;
  background:rgba(255,255,255,.78);
  box-shadow:0 12px 30px rgba(15,23,42,.06);
  color:#334155;
  font-weight:850;
  font-size:.88rem;
}
.soft-badge span{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#10b981;
  box-shadow:0 0 0 5px rgba(16,185,129,.13);
}
.home-copy h1{
  margin:20px 0 18px;
  font-size:clamp(3rem,6.4vw,5.8rem);
  line-height:.93;
  letter-spacing:-.075em;
  color:#08111f;
  max-width:720px;
}
.home-copy h1 span{
  background:linear-gradient(90deg,#4f46e5,#0891b2,#047857);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.home-lead{
  max-width:640px;
  font-size:clamp(1.05rem,1.7vw,1.28rem);
  line-height:1.65;
  color:#475569;
  margin:0 0 22px;
}
.home-points{
  display:grid;
  gap:10px;
  max-width:560px;
  margin:26px 0 18px;
}
.home-points div{
  display:flex;
  align-items:center;
  gap:12px;
  color:#334155;
  font-weight:800;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(148,163,184,.25);
  border-radius:18px;
  padding:12px 14px;
}
.home-points b{
  display:inline-flex;
  width:28px;
  height:28px;
  border-radius:50%;
  align-items:center;
  justify-content:center;
  color:#fff;
  background:linear-gradient(135deg,#4f46e5,#06b6d4);
}
.home-login-line{
  color:#64748b;
  font-weight:700;
}
.home-login-line a{color:#4f46e5;font-weight:900}

.quick-studio-card{
  width:100%;
  min-width:0;
  background:rgba(255,255,255,.96);
  color:#0f172a;
  border:1px solid rgba(148,163,184,.25);
  border-radius:34px;
  padding:24px;
  box-shadow:0 32px 90px rgba(15,23,42,.16);
  backdrop-filter:blur(16px);
}
.studio-card-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  margin-bottom:18px;
}
.studio-card-head h2{
  margin:3px 0 0;
  font-size:1.6rem;
  letter-spacing:-.04em;
  color:#0f172a;
}
.studio-card-head a{
  color:#4f46e5;
  font-weight:900;
  background:#eef2ff;
  padding:9px 12px;
  border-radius:999px;
}
.mini-label{
  display:block;
  color:#64748b;
  font-weight:900;
  font-size:.8rem;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.field-label{
  display:block;
  margin:0 0 7px;
  color:#0f172a;
  font-size:.92rem;
  font-weight:900;
}
.big-textarea{
  display:block;
  width:100%;
  min-height:230px;
  resize:vertical;
  border:1px solid #dbe3ef;
  border-radius:22px;
  padding:16px;
  font:inherit;
  font-size:.98rem;
  line-height:1.55;
  color:#0f172a;
  background:#fff;
  outline:none;
}
.big-textarea:focus,
.quick-studio-card select:focus{
  border-color:#7c3aed;
  box-shadow:0 0 0 4px rgba(124,58,237,.10);
}
.file-line{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
  margin:13px 0 18px;
}
.upload-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px dashed #94a3b8;
  color:#334155;
  background:#f8fafc;
  border-radius:999px;
  padding:10px 14px;
  font-weight:900;
  cursor:pointer;
  white-space:nowrap;
}
.upload-button input{display:none}
.file-line small{
  color:#64748b;
  line-height:1.45;
  flex:1;
  min-width:200px;
}
.studio-fields{
  display:grid;
  grid-template-columns:1fr 130px;
  gap:14px;
  margin-top:4px;
}
.studio-fields-three{
  grid-template-columns:1fr 150px 1fr;
}
.studio-fields .wide{
  grid-column:1 / -1;
}
.quick-studio-card select{
  width:100%;
  height:48px;
  border:1px solid #dbe3ef;
  border-radius:16px;
  padding:0 13px;
  color:#0f172a;
  background:#fff;
  font:inherit;
  font-weight:750;
  outline:none;
}
.studio-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:18px;
}
.studio-actions .btn{
  width:100%;
  justify-content:center;
  min-height:48px;
}
.studio-note{
  margin-top:14px;
  padding:13px 14px;
  border-radius:18px;
  background:#eef2ff;
  color:#475569;
  line-height:1.45;
  font-weight:700;
}
.studio-note a{
  color:#4f46e5;
  font-weight:950;
}
.clean-preview{
  margin-top:18px;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:22px;
  padding:16px;
  overflow:auto;
}
.clean-preview:empty{display:none}
.product-strip{
  padding:58px 20px;
  background:#fff;
}
.strip-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}
.strip-grid article{
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:26px;
  padding:22px;
}
.strip-grid span{
  display:flex;
  width:44px;
  height:44px;
  align-items:center;
  justify-content:center;
  border-radius:16px;
  background:#eef2ff;
  font-size:1.35rem;
}
.strip-grid h3{
  margin:16px 0 8px;
  color:#0f172a;
}
.strip-grid p{
  color:#64748b;
  line-height:1.55;
  margin:0;
}
.prompt-section{
  background:#f8fafc;
}

.studio-page{
  background:
    radial-gradient(circle at 10% 8%, rgba(34,211,238,.17), transparent 30%),
    radial-gradient(circle at 90% 4%, rgba(139,92,246,.18), transparent 30%),
    #f8fafc;
  padding:56px 20px 72px;
}
.studio-page-wrap{
  max-width:1120px;
  margin:0 auto;
}
.studio-page-head{
  display:flex;
  justify-content:space-between;
  gap:24px;
  align-items:flex-end;
  margin-bottom:24px;
}
.studio-page-head h1{
  margin:16px 0 10px;
  font-size:clamp(2.6rem,5vw,4.6rem);
  line-height:.96;
  letter-spacing:-.07em;
  color:#08111f;
}
.studio-page-head h1 span{
  color:#4f46e5;
}
.studio-page-head p{
  max-width:700px;
  color:#475569;
  font-size:1.1rem;
  line-height:1.65;
  margin:0;
}
.studio-head-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.studio-wide{
  max-width:none;
}
@media (max-width:1080px){
  .home-studio-wrap{grid-template-columns:1fr;gap:28px}
  .home-copy h1{max-width:900px}
  .quick-studio-card{max-width:760px}
}
@media (max-width:820px){
  .home-studio{padding:44px 16px 56px}
  .home-copy h1{font-size:clamp(2.7rem,14vw,4.2rem)}
  .quick-studio-card{padding:18px;border-radius:26px}
  .studio-fields,
  .studio-fields-three{grid-template-columns:1fr}
  .studio-fields .wide{grid-column:auto}
  .studio-actions{grid-template-columns:1fr}
  .strip-grid{grid-template-columns:1fr 1fr}
  .studio-page-head{display:block}
  .studio-head-actions{margin-top:18px}
}
@media (max-width:560px){
  .strip-grid{grid-template-columns:1fr}
  .big-textarea{min-height:260px}
  .file-line{align-items:flex-start}
  .upload-button{width:100%}
  .file-line small{min-width:0}
}


/* v11 polished generate/result page */
.result-page{
  background:
    radial-gradient(circle at 8% 0%, rgba(34,211,238,.15), transparent 30%),
    radial-gradient(circle at 92% 0%, rgba(139,92,246,.15), transparent 30%),
    #f8fafc;
  padding:56px 20px 74px;
}
.result-wrap{
  max-width:1180px;
  margin:0 auto;
}
.result-head{
  display:flex;
  justify-content:space-between;
  gap:22px;
  align-items:flex-end;
  margin-bottom:24px;
}
.result-head h1{
  margin:16px 0 10px;
  font-size:clamp(2.3rem,5vw,4.4rem);
  line-height:.96;
  letter-spacing:-.07em;
  color:#08111f;
}
.result-head h1 span{
  background:linear-gradient(90deg,#4f46e5,#0891b2);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.result-head p{
  max-width:720px;
  color:#475569;
  line-height:1.65;
  font-size:1.08rem;
  margin:0;
}
.result-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.result-grid{
  display:grid;
  grid-template-columns:390px minmax(0,1fr);
  gap:20px;
  align-items:start;
}
.result-card{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:28px;
  padding:24px;
  box-shadow:0 24px 70px rgba(15,23,42,.08);
}
.result-card h2{
  margin:0 0 16px;
  font-size:1.65rem;
  letter-spacing:-.045em;
  color:#0f172a;
}
.soft-note{
  background:#ecfdf5;
  border:1px solid #bbf7d0;
  color:#166534;
  border-radius:16px;
  padding:12px 14px;
  margin-bottom:14px;
  font-weight:800;
}
.summary-list{
  display:grid;
  gap:10px;
}
.summary-list div{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
  border:1px solid #e2e8f0;
  border-radius:16px;
  padding:12px 13px;
  background:#f8fafc;
}
.summary-list span{
  color:#64748b;
  font-weight:800;
}
.summary-list strong{
  color:#0f172a;
  text-align:right;
}
.browser-preview-box{
  margin-top:18px;
  padding:16px;
  border-radius:20px;
  background:#eef2ff;
  border:1px solid #dbe3ff;
}
.browser-preview-box h3{
  margin:0 0 6px;
  color:#1e1b4b;
}
.browser-preview-box p{
  margin:0 0 14px;
  color:#475569;
  line-height:1.45;
  font-weight:700;
}
.result-button-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.result-button-grid .btn{
  width:100%;
  justify-content:center;
}
.engine-status{
  margin-top:16px;
  background:#fff7ed;
  color:#9a3412;
  border:1px solid #fed7aa;
  border-radius:18px;
  padding:13px 14px;
  font-weight:750;
  line-height:1.55;
}
.table-title-row{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
  margin-bottom:14px;
}
.table-title-row h2{
  margin-bottom:6px;
}
.table-title-row p{
  margin:0;
  color:#64748b;
  line-height:1.5;
}
.responsive-table{
  overflow:auto;
  border-radius:20px;
  border:1px solid #e2e8f0;
}
.responsive-table .comparison{
  margin:0;
  border:0;
  box-shadow:none;
}
.expr-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  background:#eef2ff;
  color:#4338ca;
  font-weight:900;
  font-size:.88rem;
}
.hidden-script-form{display:none}
@media (max-width:980px){
  .result-head{display:block}
  .result-actions{margin-top:18px}
  .result-grid{grid-template-columns:1fr}
}
@media (max-width:560px){
  .result-page{padding:36px 14px 54px}
  .result-card{padding:18px;border-radius:22px}
  .summary-list div{display:block}
  .summary-list strong{display:block;text-align:left;margin-top:5px}
  .table-title-row{display:block}
  .table-title-row .btn{margin-top:12px}
  .result-button-grid{grid-template-columns:1fr}
}


/* v12 Google One Tap / Sign-In button helper */
.google-mini-login{
  position:fixed;
  right:18px;
  top:86px;
  z-index:999;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:999px;
  padding:6px;
  box-shadow:0 14px 36px rgba(15,23,42,.14);
}
@media (max-width:760px){
  .google-mini-login{
    position:static;
    margin:10px auto 0;
    width:max-content;
    max-width:calc(100% - 24px);
  }
}


/* v13 friendly Custom Voice / Custom Expressions pages */
.friendly-page{
  background:
    radial-gradient(circle at 10% 5%, rgba(34,211,238,.16), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(139,92,246,.16), transparent 32%),
    #f8fafc;
  padding:64px 20px 72px;
}
.expression-bg{
  background:
    radial-gradient(circle at 10% 5%, rgba(244,114,182,.15), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(34,197,94,.14), transparent 32%),
    #f8fafc;
}
.friendly-wrap{
  max-width:1180px;
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,1fr) 460px;
  gap:34px;
  align-items:center;
}
.friendly-hero h1{
  margin:18px 0 16px;
  font-size:clamp(2.8rem,6vw,5.4rem);
  line-height:.95;
  letter-spacing:-.075em;
  color:#08111f;
}
.friendly-hero h1 span{
  background:linear-gradient(90deg,#4f46e5,#0891b2);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.friendly-hero p{
  max-width:690px;
  color:#475569;
  font-size:1.14rem;
  line-height:1.7;
  margin:0 0 24px;
}
.friendly-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}
.friendly-card{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:30px;
  padding:24px;
  box-shadow:0 24px 70px rgba(15,23,42,.08);
}
.friendly-card h2{
  margin:0 0 16px;
  font-size:1.7rem;
  letter-spacing:-.045em;
  color:#0f172a;
}
.friendly-list{
  display:grid;
  gap:11px;
}
.friendly-list div{
  border:1px solid #e2e8f0;
  background:#f8fafc;
  border-radius:18px;
  padding:13px 14px;
}
.friendly-list b{
  display:block;
  color:#0f172a;
  margin-bottom:5px;
}
.friendly-list span{
  display:block;
  color:#64748b;
  line-height:1.45;
}
@media (max-width:920px){
  .friendly-wrap{grid-template-columns:1fr}
}
@media (max-width:560px){
  .friendly-page{padding:42px 16px 56px}
  .friendly-card{padding:18px;border-radius:24px}
  .friendly-actions .btn{width:100%;justify-content:center}
}


/* v14 polished custom pages + header cleanup */
.custom-hero{
  position:relative;
  overflow:hidden;
  background:#f8fafc;
  padding:72px 20px 82px;
}
.voice-hero{
  background:
    radial-gradient(circle at 8% 8%, rgba(34,211,238,.18), transparent 30%),
    radial-gradient(circle at 92% 0%, rgba(79,70,229,.17), transparent 30%),
    linear-gradient(135deg,#f8fafc 0%,#f0f9ff 52%,#f8f7ff 100%);
}
.expression-hero{
  background:
    radial-gradient(circle at 10% 4%, rgba(244,114,182,.16), transparent 28%),
    radial-gradient(circle at 92% 0%, rgba(34,197,94,.15), transparent 32%),
    linear-gradient(135deg,#f8fafc 0%,#fff7ed 50%,#f0fdf4 100%);
}
.custom-hero-wrap{
  max-width:1180px;
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,1fr) 460px;
  gap:42px;
  align-items:center;
}
.custom-hero-copy h1{
  margin:18px 0 16px;
  max-width:760px;
  font-size:clamp(3rem,6vw,5.6rem);
  line-height:.93;
  letter-spacing:-.078em;
  color:#08111f;
}
.custom-hero-copy h1 span{
  background:linear-gradient(90deg,#4f46e5,#0891b2,#059669);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.custom-hero-copy p{
  max-width:680px;
  margin:0 0 26px;
  color:#475569;
  font-size:1.15rem;
  line-height:1.72;
}
.custom-hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.voice-preview-card,
.expression-preview-card{
  background:rgba(255,255,255,.94);
  border:1px solid rgba(148,163,184,.28);
  border-radius:34px;
  padding:24px;
  box-shadow:0 32px 90px rgba(15,23,42,.14);
  backdrop-filter:blur(14px);
}
.preview-top{
  display:flex;
  gap:14px;
  align-items:center;
  margin-bottom:18px;
}
.avatar-ring{
  display:flex;
  width:62px;
  height:62px;
  align-items:center;
  justify-content:center;
  border-radius:22px;
  font-size:1.8rem;
  background:linear-gradient(135deg,#eef2ff,#cffafe);
}
.preview-top h2{margin:0;color:#0f172a;letter-spacing:-.04em}
.preview-top p{margin:4px 0 0;color:#64748b;font-weight:750}
.voice-settings-list{
  display:grid;
  gap:10px;
}
.voice-settings-list div{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:12px 13px;
  border:1px solid #e2e8f0;
  border-radius:16px;
  background:#f8fafc;
}
.voice-settings-list span{color:#64748b;font-weight:850}
.voice-settings-list strong{text-align:right;color:#0f172a}
.script-sample{
  margin-top:16px;
  padding:16px;
  border-radius:20px;
  background:#0f172a;
  color:#e2e8f0;
}
.script-sample b{color:#fff}
.script-sample p{margin:8px 0 0;font-size:.95rem;line-height:1.5;color:#cbd5e1}
.expression-preview-card{
  display:grid;
  gap:12px;
}
.expression-row{
  border-radius:20px;
  padding:15px 16px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  border:1px solid rgba(148,163,184,.28);
}
.expression-row span{font-weight:950;color:#0f172a}
.expression-row b{font-size:.92rem;color:#475569;text-align:right}
.expression-row.calm{background:#eff6ff}
.expression-row.happy{background:#fefce8}
.expression-row.angry{background:#fef2f2}
.expression-row.sad{background:#f1f5f9}
.expression-row.suspense{background:#f5f3ff}
.custom-workflow{
  background:#fff;
  padding:64px 20px;
}
.workflow-grid,
.control-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}
.control-grid{
  grid-template-columns:repeat(3,1fr);
}
.workflow-grid article,
.control-grid article{
  border:1px solid #e2e8f0;
  background:#f8fafc;
  border-radius:28px;
  padding:24px;
}
.workflow-grid article b{
  display:inline-flex;
  width:42px;
  height:42px;
  align-items:center;
  justify-content:center;
  border-radius:16px;
  background:#eef2ff;
  color:#4f46e5;
  font-weight:950;
}
.control-grid article span{
  display:flex;
  width:46px;
  height:46px;
  border-radius:17px;
  align-items:center;
  justify-content:center;
  background:#eef2ff;
  font-size:1.35rem;
}
.workflow-grid h3,
.control-grid h3{
  margin:18px 0 8px;
  color:#0f172a;
  letter-spacing:-.025em;
}
.workflow-grid p,
.control-grid p{
  color:#64748b;
  line-height:1.55;
  margin:0;
}
.custom-split{
  background:#f8fafc;
  padding:70px 20px;
}
.expression-split{background:#fff7ed}
.split-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 480px;
  gap:34px;
  align-items:center;
}
.split-copy h2{
  margin:10px 0 14px;
  font-size:clamp(2rem,4vw,3.4rem);
  line-height:1;
  letter-spacing:-.06em;
  color:#08111f;
}
.split-copy p{
  color:#475569;
  line-height:1.7;
  font-size:1.06rem;
}
.nice-list{
  list-style:none;
  padding:0;
  margin:20px 0 24px;
  display:grid;
  gap:10px;
}
.nice-list li{
  position:relative;
  padding:12px 14px 12px 42px;
  border:1px solid #e2e8f0;
  border-radius:16px;
  background:#fff;
  color:#334155;
}
.nice-list li:before{
  content:"✓";
  position:absolute;
  left:14px;
  top:10px;
  width:22px;
  height:22px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#dcfce7;
  color:#15803d;
  font-weight:950;
}
.code-preview-card,
.expression-demo-card{
  border-radius:30px;
  padding:22px;
  background:#0f172a;
  color:#e2e8f0;
  box-shadow:0 28px 80px rgba(15,23,42,.20);
}
.code-preview-card .line{
  padding:14px 0;
  border-bottom:1px solid rgba(255,255,255,.10);
  line-height:1.55;
}
.code-preview-card .line:last-child{border-bottom:0}
.code-preview-card span{color:#93c5fd;font-weight:950}
.expression-demo-card h3{
  margin:0 0 16px;
  color:#fff;
}
.expression-demo-card div{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  padding:14px;
  margin-top:10px;
}
.expression-demo-card b{color:#fbbf24}
.expression-demo-card p{margin:8px 0 0;color:#cbd5e1;line-height:1.5}
.custom-cta{
  text-align:center;
  padding:70px 20px;
  background:
    radial-gradient(circle at 50% 0%, rgba(79,70,229,.18), transparent 35%),
    #08111f;
  color:#fff;
}
.expression-cta{
  background:
    radial-gradient(circle at 50% 0%, rgba(34,197,94,.18), transparent 35%),
    #111827;
}
.custom-cta h2{
  margin:0 0 12px;
  font-size:clamp(2rem,4vw,3.5rem);
  letter-spacing:-.06em;
}
.custom-cta p{
  color:#cbd5e1;
  margin:0 auto 24px;
  max-width:620px;
  line-height:1.65;
}
.custom-cta .btn{margin:5px}
@media (max-width:980px){
  .custom-hero-wrap,
  .split-grid{grid-template-columns:1fr}
  .workflow-grid{grid-template-columns:1fr 1fr}
  .control-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:620px){
  .custom-hero{padding:48px 16px 58px}
  .custom-hero-copy h1{font-size:clamp(2.7rem,13vw,4.2rem)}
  .custom-hero-actions .btn,
  .custom-cta .btn{width:100%;justify-content:center}
  .workflow-grid,
  .control-grid{grid-template-columns:1fr}
  .split-grid{gap:24px}
  .expression-row{display:block}
  .expression-row b{display:block;text-align:left;margin-top:5px}
}


/* v15 account dashboard: expressions + edit voice profile */
.account-section{
  background:
    radial-gradient(circle at 8% 0%, rgba(34,211,238,.12), transparent 30%),
    radial-gradient(circle at 92% 0%, rgba(139,92,246,.12), transparent 32%),
    #f8fafc;
  padding:42px 20px 72px;
}
.account-layout{
  max-width:1180px;
  margin:0 auto;
  display:grid;
  grid-template-columns:260px minmax(0,1fr);
  gap:22px;
  align-items:start;
}
.account-sidebar{
  position:sticky;
  top:92px;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:26px;
  padding:14px;
  box-shadow:0 22px 65px rgba(15,23,42,.08);
}
.account-sidebar a{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:13px 14px;
  border-radius:16px;
  color:#0f172a;
  font-weight:900;
}
.account-sidebar a:hover,
.account-sidebar a.active{
  background:#eef2ff;
  color:#4f46e5;
}
.account-sidebar span{
  color:inherit;
}
.account-welcome{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:28px;
  padding:24px;
  margin-bottom:18px;
  box-shadow:0 22px 65px rgba(15,23,42,.06);
}
.account-welcome h1{
  margin:8px 0 8px;
  font-size:clamp(2rem,4vw,3.4rem);
  line-height:1;
  letter-spacing:-.065em;
  color:#08111f;
}
.account-welcome p{
  margin:0;
  color:#64748b;
  line-height:1.6;
}
.stats-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  margin-bottom:18px;
}
.stat-card{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:24px;
  padding:20px;
  box-shadow:0 18px 50px rgba(15,23,42,.06);
}
.stat-card b{
  display:block;
  color:#08111f;
  font-size:2rem;
  line-height:1;
  margin-bottom:10px;
}
.stat-card span{
  color:#64748b;
  font-weight:850;
}
.dashboard-grid{
  display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(300px,.8fr);
  gap:18px;
  margin-bottom:18px;
}
.dashboard-card{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:28px;
  padding:24px;
  box-shadow:0 22px 65px rgba(15,23,42,.06);
  margin-bottom:18px;
}
.dashboard-card.large{
  margin-bottom:0;
}
.card-title-row{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
  margin-bottom:18px;
}
.card-title-row h2{
  margin:0 0 6px;
  color:#08111f;
  font-size:1.65rem;
  letter-spacing:-.045em;
}
.card-title-row p{
  margin:0;
  color:#64748b;
  line-height:1.55;
}
.card-title-row.compact{
  display:block;
}
.profile-list{
  display:grid;
  gap:12px;
}
.profile-row{
  display:grid;
  grid-template-columns:46px minmax(0,1fr) auto;
  gap:13px;
  align-items:center;
  border:1px solid #e2e8f0;
  background:#f8fafc;
  border-radius:20px;
  padding:13px;
}
.profile-icon{
  display:flex;
  width:46px;
  height:46px;
  border-radius:16px;
  align-items:center;
  justify-content:center;
  background:#eef2ff;
  font-size:1.35rem;
}
.profile-info strong{
  display:block;
  color:#0f172a;
  margin-bottom:4px;
}
.profile-info span{
  display:block;
  color:#64748b;
  line-height:1.45;
  font-size:.94rem;
}
.profile-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.expression-chip-list{
  display:grid;
  gap:10px;
}
.expression-chip-list a{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  border:1px solid #e2e8f0;
  background:#f8fafc;
  border-radius:16px;
  padding:12px 13px;
}
.expression-chip-list b{
  color:#0f172a;
}
.expression-chip-list span{
  color:#4f46e5;
  background:#eef2ff;
  border-radius:999px;
  padding:5px 9px;
  font-weight:900;
  font-size:.85rem;
}
.mini-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
}
.quick-actions-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}
.quick-actions-grid a{
  display:block;
  border:1px solid #e2e8f0;
  background:#f8fafc;
  border-radius:20px;
  padding:16px;
}
.quick-actions-grid span{
  display:flex;
  width:42px;
  height:42px;
  align-items:center;
  justify-content:center;
  border-radius:16px;
  background:#eef2ff;
  font-size:1.25rem;
  margin-bottom:12px;
}
.quick-actions-grid b{
  display:block;
  color:#0f172a;
  margin-bottom:5px;
}
.quick-actions-grid small{
  display:block;
  color:#64748b;
  line-height:1.45;
}
.empty-state{
  background:#f8fafc;
  border:1px dashed #cbd5e1;
  border-radius:20px;
  padding:20px;
}
.empty-state h3{
  margin:0 0 8px;
}
.empty-state p{
  color:#64748b;
  margin:0 0 14px;
}
.empty-state.small p{
  margin-bottom:12px;
}
@media (max-width:1050px){
  .account-layout{grid-template-columns:1fr}
  .account-sidebar{position:relative;top:0}
  .stats-grid{grid-template-columns:1fr 1fr}
  .dashboard-grid{grid-template-columns:1fr}
  .quick-actions-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:680px){
  .account-section{padding:28px 14px 56px}
  .account-welcome{display:block}
  .account-welcome .btn{margin-top:14px;width:100%;justify-content:center}
  .stats-grid{grid-template-columns:1fr}
  .profile-row{grid-template-columns:1fr}
  .profile-actions{justify-content:flex-start}
  .profile-actions .btn{width:100%;justify-content:center}
  .card-title-row{display:block}
  .card-title-row .btn{margin-top:12px}
  .quick-actions-grid{grid-template-columns:1fr}
}


/* v16 split Custom Voice and Custom Expressions editor pages */
.voice-editor-page,
.expression-editor-page,
.voice-list-section{
  background:
    radial-gradient(circle at 8% 0%, rgba(34,211,238,.12), transparent 30%),
    radial-gradient(circle at 92% 0%, rgba(139,92,246,.12), transparent 32%),
    #f8fafc;
  padding:52px 20px 72px;
}
.expression-editor-page{
  background:
    radial-gradient(circle at 8% 0%, rgba(244,114,182,.12), transparent 30%),
    radial-gradient(circle at 92% 0%, rgba(34,197,94,.12), transparent 32%),
    #f8fafc;
}
.voice-editor-wrap,
.expression-editor-wrap{
  max-width:1180px;
  margin:0 auto;
}
.editor-head{
  display:flex;
  justify-content:space-between;
  gap:24px;
  align-items:flex-end;
  margin-bottom:24px;
}
.editor-head h1{
  margin:16px 0 10px;
  font-size:clamp(2.5rem,5vw,4.8rem);
  line-height:.95;
  letter-spacing:-.075em;
  color:#08111f;
}
.editor-head h1 span{
  background:linear-gradient(90deg,#4f46e5,#0891b2);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.editor-head p{
  max-width:760px;
  color:#475569;
  font-size:1.08rem;
  line-height:1.65;
  margin:0;
}
.editor-head-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.voice-editor-grid,
.expression-editor-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 420px;
  gap:20px;
  align-items:start;
}
.editor-card{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:30px;
  padding:24px;
  box-shadow:0 24px 70px rgba(15,23,42,.08);
}
.editor-card h2{
  margin:0 0 18px;
  color:#08111f;
  font-size:1.7rem;
  letter-spacing:-.045em;
}
.editor-card label{
  display:block;
  margin:14px 0 7px;
  color:#0f172a;
  font-weight:900;
}
.editor-card input:not([type="checkbox"]):not([type="range"]),
.editor-card select,
.editor-card textarea{
  width:100%;
  border:1px solid #dbe3ef;
  border-radius:16px;
  padding:12px 13px;
  font:inherit;
  background:#fff;
  color:#0f172a;
}
.editor-card textarea{
  min-height:104px;
  resize:vertical;
  line-height:1.55;
}
.form-two{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.voice-list,
.expression-list{
  display:grid;
  gap:12px;
}
.voice-list-row,
.expression-list-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  border:1px solid #e2e8f0;
  background:#f8fafc;
  border-radius:18px;
  padding:13px;
}
.voice-list-row.active,
.expression-list-row.active{
  background:#eef2ff;
  border-color:#c7d2fe;
}
.voice-list-row strong,
.expression-list-row strong{
  display:block;
  color:#0f172a;
  margin-bottom:4px;
}
.voice-list-row span,
.expression-list-row span{
  display:block;
  color:#64748b;
  line-height:1.45;
  font-size:.92rem;
}
.alias-card{
  margin-top:20px;
}
.alias-grid{
  display:grid;
  grid-template-columns:420px minmax(0,1fr);
  gap:20px;
  align-items:start;
}
.alias-form{
  border:1px solid #e2e8f0;
  background:#f8fafc;
  border-radius:22px;
  padding:18px;
}
.alias-list{
  display:grid;
  gap:12px;
}
.alias-row{
  display:flex;
  justify-content:space-between;
  gap:14px;
  border:1px solid #e2e8f0;
  background:#f8fafc;
  border-radius:20px;
  padding:15px;
}
.alias-row strong{
  display:block;
  color:#0f172a;
}
.alias-row em{
  font-style:normal;
  color:#166534;
  background:#dcfce7;
  border-radius:999px;
  padding:4px 8px;
  font-size:.75rem;
  margin-left:6px;
}
.alias-row small{
  display:block;
  margin-top:4px;
  color:#4f46e5;
  font-weight:850;
}
.alias-row p{
  margin:10px 0 0;
  color:#475569;
  line-height:1.55;
}
.login-required-card{
  max-width:760px;
  margin:0 auto;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:30px;
  padding:28px;
  box-shadow:0 24px 70px rgba(15,23,42,.08);
  text-align:center;
}
.login-required-card h3{
  margin:0 0 10px;
  color:#08111f;
  font-size:1.8rem;
  letter-spacing:-.04em;
}
.login-required-card p{
  color:#64748b;
  line-height:1.65;
  margin:0 auto 20px;
  max-width:600px;
}
.saved-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
.saved-card{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:28px;
  padding:22px;
  box-shadow:0 18px 50px rgba(15,23,42,.06);
}
.saved-icon{
  display:flex;
  width:48px;
  height:48px;
  align-items:center;
  justify-content:center;
  border-radius:18px;
  background:#eef2ff;
  font-size:1.4rem;
  margin-bottom:14px;
}
.saved-card h3{
  margin:0 0 10px;
  color:#0f172a;
}
.saved-card p{
  color:#64748b;
  margin:7px 0;
  line-height:1.5;
}
.new-card{
  border-style:dashed;
  background:#f8fafc;
}
@media (max-width:980px){
  .editor-head{display:block}
  .editor-head-actions{margin-top:18px}
  .voice-editor-grid,
  .expression-editor-grid,
  .alias-grid{grid-template-columns:1fr}
  .saved-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:640px){
  .voice-editor-page,
  .expression-editor-page,
  .voice-list-section{padding:36px 14px 56px}
  .editor-card{padding:18px;border-radius:24px}
  .form-two{grid-template-columns:1fr}
  .voice-list-row,
  .expression-list-row,
  .alias-row{display:block}
  .voice-list-row .btn,
  .expression-list-row .btn,
  .alias-row .btn{margin-top:12px;width:100%;justify-content:center}
  .saved-grid{grid-template-columns:1fr}
}


/* v17 simple custom voice flow */
.simple-editor-page{
  background:#f8fafc;
  padding:34px 20px 64px;
}
.simple-wrap{
  max-width:1120px;
  margin:0 auto;
}
.simple-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:18px;
  margin-bottom:18px;
}
.simple-head h1{
  margin:0 0 6px;
  font-size:clamp(2.2rem,4vw,3.7rem);
  line-height:1;
  letter-spacing:-.06em;
  color:#08111f;
}
.simple-head p{
  margin:0;
  color:#64748b;
  line-height:1.55;
}
.simple-layout{
  display:grid;
  grid-template-columns:280px minmax(0,1fr);
  gap:18px;
  align-items:start;
}
.simple-side{
  position:sticky;
  top:92px;
}
.simple-card{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:22px;
  padding:18px;
  box-shadow:0 14px 38px rgba(15,23,42,.06);
  margin-bottom:18px;
}
.simple-card h2{
  margin:0 0 14px;
  color:#08111f;
  font-size:1.35rem;
  letter-spacing:-.035em;
}
.simple-card p{
  color:#64748b;
  line-height:1.6;
}
.simple-card-title{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  margin-bottom:12px;
}
.simple-card-title h2{margin:0}
.simple-card-title p{margin:5px 0 0;color:#64748b}
.small-link{
  color:#4f46e5;
  font-weight:900;
  white-space:nowrap;
}
.simple-list{
  display:grid;
  gap:8px;
}
.simple-list a{
  display:block;
  border:1px solid #e2e8f0;
  background:#f8fafc;
  border-radius:14px;
  padding:11px 12px;
}
.simple-list a.active{
  background:#eef2ff;
  border-color:#c7d2fe;
}
.simple-list strong{
  display:block;
  color:#0f172a;
  margin-bottom:3px;
}
.simple-list span{
  color:#64748b;
  font-size:.9rem;
}
.simple-form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px 14px;
}
.simple-card label{
  display:block;
  margin:0 0 6px;
  color:#0f172a;
  font-weight:900;
}
.simple-card input:not([type="checkbox"]),
.simple-card select,
.simple-card textarea{
  width:100%;
  border:1px solid #dbe3ef;
  border-radius:14px;
  padding:11px 12px;
  font:inherit;
  background:#fff;
  color:#0f172a;
}
.simple-card textarea{
  min-height:100px;
  resize:vertical;
  line-height:1.5;
}
.simple-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}
.simple-actions.center{
  justify-content:center;
}
.delete-inline{
  margin-top:10px;
}
.rule-add-form{
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:18px;
  padding:14px;
}
.rule-grid{
  display:grid;
  grid-template-columns:1fr 220px;
  gap:12px;
}
.rule-alias{
  grid-column:1 / -1;
}
.rule-alias small{
  display:block;
  margin-top:6px;
  color:#64748b;
}
.small-check{
  margin-top:31px!important;
}
.rules-table-wrap{
  overflow:auto;
  margin-top:16px;
  border:1px solid #e2e8f0;
  border-radius:18px;
}
.simple-table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
}
.simple-table th,
.simple-table td{
  padding:13px 14px;
  text-align:left;
  vertical-align:top;
  border-bottom:1px solid #e2e8f0;
}
.simple-table th{
  background:#f8fafc;
  color:#334155;
}
.simple-table tr:last-child td{border-bottom:0}
.simple-table strong{
  display:block;
  color:#0f172a;
}
.simple-table span{
  display:inline-flex;
  color:#4f46e5;
  background:#eef2ff;
  border-radius:999px;
  padding:4px 8px;
  margin-top:5px;
  font-weight:900;
  font-size:.82rem;
}
.simple-table em{
  display:inline-flex;
  font-style:normal;
  color:#166534;
  background:#dcfce7;
  border-radius:999px;
  padding:4px 8px;
  margin-top:6px;
  font-weight:900;
  font-size:.82rem;
}
.empty-simple,
.muted-card{
  background:#f8fafc;
  border:1px dashed #cbd5e1;
  border-radius:18px;
  padding:16px;
}
.center-card{
  max-width:680px;
  margin:0 auto;
  text-align:center;
}
.simple-card-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}
.voice-mini-card{
  border:1px solid #e2e8f0;
  background:#f8fafc;
  border-radius:18px;
  padding:16px;
}
.voice-mini-card h3{
  margin:0 0 10px;
  color:#0f172a;
}
.voice-mini-card p{
  margin:6px 0;
  color:#64748b;
}
@media (max-width:900px){
  .simple-head{display:block}
  .simple-head .btn{margin-top:14px}
  .simple-layout{grid-template-columns:1fr}
  .simple-side{position:relative;top:0}
  .simple-card-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:620px){
  .simple-editor-page{padding:26px 14px 52px}
  .simple-form-grid,
  .rule-grid{grid-template-columns:1fr}
  .rule-alias{grid-column:auto}
  .small-check{margin-top:0!important}
  .simple-card-grid{grid-template-columns:1fr}
  .simple-actions .btn,
  .simple-head .btn{width:100%;justify-content:center}
}


/* v18 visible expression rules beside voice edit form */
.v18-layout{
  display:grid;
  grid-template-columns:260px minmax(0,1fr);
  gap:18px;
  align-items:start;
}
.v18-main{
  min-width:0;
}
.v18-top-grid{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);
  gap:18px;
  align-items:start;
}
.rule-add-card{
  position:sticky;
  top:92px;
}
.rule-add-card textarea{
  min-height:112px;
}
.muted-line{
  display:block;
  margin:6px 0 12px;
  color:#64748b;
  line-height:1.45;
}
.rules-current-card{
  margin-top:18px;
}
.v18-editor .simple-card-title p{
  margin:5px 0 0;
  color:#64748b;
  line-height:1.45;
}
@media (max-width:1060px){
  .v18-layout{grid-template-columns:1fr}
  .v18-top-grid{grid-template-columns:1fr}
  .rule-add-card{position:relative;top:0}
}
@media (max-width:620px){
  .v18-layout,
  .v18-top-grid{gap:12px}
}


/* v19 custom voice cards show linked expressions */
.voice-list-card{
  padding:20px;
}
.voice-card-grid{
  grid-template-columns:repeat(3,1fr);
}
.voice-profile-card{
  display:flex;
  flex-direction:column;
  min-height:260px;
}
.linked-expression-block{
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid #e2e8f0;
}
.linked-expression-block > b{
  display:block;
  color:#0f172a;
  margin-bottom:8px;
}
.linked-expression-chips{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}
.linked-expression-chips span{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 10px;
  border-radius:999px;
  background:#eef2ff;
  color:#4338ca;
  font-weight:900;
  font-size:.88rem;
  line-height:1;
}
.linked-expression-chips small{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:20px;
  height:20px;
  border-radius:50%;
  background:#fff;
  color:#4f46e5;
  font-size:.76rem;
  font-weight:950;
}
.expression-help{
  display:block;
  margin-top:8px;
  color:#64748b;
  line-height:1.35;
}
.no-expression-note{
  display:inline-flex;
  padding:8px 10px;
  border-radius:999px;
  background:#fff7ed;
  color:#9a3412;
  font-weight:850;
  font-size:.88rem;
}
.voice-profile-card .simple-actions{
  margin-top:auto;
  padding-top:16px;
}
.voice-profile-card .simple-actions .btn{
  width:100%;
  justify-content:center;
}
@media (max-width:980px){
  .voice-card-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:620px){
  .voice-card-grid{grid-template-columns:1fr}
}


/* v20 voice preview + used expressions wording */
.preview-field-wide{
  grid-column:1 / -1;
}
.preview-field-wide textarea{
  min-height:76px;
}
.preview-note{
  margin-top:12px;
  padding:10px 12px;
  border-radius:14px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  color:#64748b;
  font-weight:750;
  line-height:1.45;
}
.voice-preview-actions{
  align-items:center;
}
.voice-preview-actions .btn{
  min-width:130px;
}
.linked-expression-block > b::first-letter{
  text-transform:uppercase;
}


/* v21 How to Use dropdown + export options + SEO use pages */
.nav-dropdown{
  position:relative;
  display:flex;
  align-items:center;
}
.nav-dropbtn{
  border:0;
  background:transparent;
  color:inherit;
  font:inherit;
  font-weight:850;
  cursor:pointer;
  padding:0;
}
.nav-dropdown-menu{
  position:absolute;
  top:100%;
  left:0;
  min-width:230px;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:18px;
  padding:8px;
  box-shadow:0 18px 50px rgba(15,23,42,.14);
  display:none;
  z-index:999;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu{
  display:grid;
  gap:4px;
}
.nav-dropdown-menu a{
  display:block;
  padding:11px 12px;
  border-radius:12px;
  white-space:nowrap;
}
.nav-dropdown-menu a:hover{
  background:#eef2ff;
  color:#4f46e5;
}
.export-options-card{
  margin-top:18px;
  border:1px solid #e2e8f0;
  background:#f8fafc;
  border-radius:20px;
  padding:16px;
}
.export-options-card h3{
  margin:0 0 12px;
  color:#0f172a;
}
.export-option{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:16px;
  padding:13px;
  margin-top:10px;
}
.export-option b{
  display:block;
  color:#0f172a;
  margin-bottom:4px;
}
.export-option span{
  display:block;
  color:#64748b;
  line-height:1.4;
  font-size:.92rem;
}
.friendly-status{
  margin-top:16px;
  background:#ecfdf5;
  color:#166534;
  border:1px solid #bbf7d0;
  border-radius:18px;
  padding:13px 14px;
  font-weight:750;
  line-height:1.55;
}
.howto-page{
  background:
    radial-gradient(circle at 8% 0%, rgba(34,211,238,.12), transparent 30%),
    radial-gradient(circle at 92% 0%, rgba(139,92,246,.12), transparent 32%),
    #f8fafc;
  padding:54px 20px 74px;
}
.hindi-howto{
  background:
    radial-gradient(circle at 8% 0%, rgba(249,115,22,.12), transparent 30%),
    radial-gradient(circle at 92% 0%, rgba(34,197,94,.12), transparent 32%),
    #f8fafc;
}
.story-howto{
  background:
    radial-gradient(circle at 8% 0%, rgba(168,85,247,.12), transparent 30%),
    radial-gradient(circle at 92% 0%, rgba(14,165,233,.12), transparent 32%),
    #f8fafc;
}
.youtube-howto{
  background:
    radial-gradient(circle at 8% 0%, rgba(239,68,68,.12), transparent 30%),
    radial-gradient(circle at 92% 0%, rgba(79,70,229,.12), transparent 32%),
    #f8fafc;
}
.howto-wrap{
  max-width:1060px;
  margin:0 auto;
}
.howto-hero{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:32px;
  padding:34px;
  box-shadow:0 24px 70px rgba(15,23,42,.08);
  margin-bottom:20px;
}
.howto-hero h1{
  margin:18px 0 14px;
  font-size:clamp(2.5rem,5vw,4.8rem);
  line-height:.95;
  letter-spacing:-.075em;
  color:#08111f;
}
.howto-hero h1 span{
  background:linear-gradient(90deg,#4f46e5,#0891b2);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.howto-hero p{
  color:#475569;
  font-size:1.12rem;
  line-height:1.7;
  max-width:760px;
  margin:0 0 22px;
}
.howto-card,
.howto-steps,
.howto-example,
.howto-cta{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:28px;
  padding:28px;
  box-shadow:0 18px 50px rgba(15,23,42,.06);
  margin-top:18px;
}
.howto-card h2,
.howto-steps h2,
.howto-example h2,
.howto-cta h2{
  margin:0 0 14px;
  color:#08111f;
  font-size:1.8rem;
  letter-spacing:-.045em;
}
.howto-card p,
.howto-cta p{
  color:#64748b;
  line-height:1.65;
}
.howto-list{
  list-style:none;
  padding:0;
  margin:14px 0 0;
  display:grid;
  gap:10px;
}
.howto-list li{
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:16px;
  padding:12px 14px;
  color:#334155;
  font-weight:750;
}
.step-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}
.step-grid article{
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:20px;
  padding:18px;
}
.step-grid b{
  display:flex;
  width:36px;
  height:36px;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  background:#eef2ff;
  color:#4f46e5;
  font-weight:950;
}
.step-grid h3{
  margin:14px 0 8px;
  color:#0f172a;
}
.step-grid p{
  margin:0;
  color:#64748b;
  line-height:1.5;
}
.howto-example textarea,
.howto-card textarea{
  width:100%;
  min-height:170px;
  border:1px solid #dbe3ef;
  border-radius:18px;
  padding:16px;
  font:inherit;
  line-height:1.55;
  background:#f8fafc;
  color:#0f172a;
}
.howto-cta{
  text-align:center;
  background:#08111f;
  color:#fff;
}
.howto-cta h2{color:#fff}
.howto-cta p{color:#cbd5e1}
@media (max-width:860px){
  .step-grid{grid-template-columns:1fr 1fr}
  .export-option{display:block}
  .export-option .btn{margin-top:12px;width:100%;justify-content:center}
}
@media (max-width:620px){
  .howto-page{padding:32px 14px 54px}
  .howto-hero,
  .howto-card,
  .howto-steps,
  .howto-example,
  .howto-cta{padding:20px;border-radius:22px}
  .step-grid{grid-template-columns:1fr}
  .nav-dropdown{display:block}
  .nav-dropdown-menu{
    position:static;
    box-shadow:none;
    margin-top:8px;
    border-radius:14px;
  }
}


/* v22 additional use-case pages + wider How to Use menu */
.nav-dropdown-menu.mega-use-menu{
  min-width:280px;
  max-height:70vh;
  overflow:auto;
}
.usecase-page .howto-hero{
  position:relative;
  overflow:hidden;
}
.usecase-page .howto-hero:after{
  content:"";
  position:absolute;
  right:-80px;
  top:-80px;
  width:220px;
  height:220px;
  border-radius:50%;
  background:linear-gradient(135deg,rgba(79,70,229,.16),rgba(34,211,238,.16));
}
.example-note{
  color:#64748b;
  line-height:1.55;
  margin:12px 0 0;
}
@media (min-width:900px){
  .nav-dropdown-menu.mega-use-menu{
    columns:2;
    min-width:520px;
  }
  .nav-dropdown-menu.mega-use-menu a{
    break-inside:avoid;
  }
}





/* v23 marketing homepage, footer sections, logo upload */
.site-logo-img{
  display:block;
  width:auto;
  max-width:220px;
  max-height:64px;
  object-fit:contain;
}

.topbar .brand .site-logo-img{
  width:190px !important;
  height:auto !important;
  max-width:190px !important;
  max-height:56px !important;
  object-fit:contain !important;
}

.footer-brand .site-logo-img{
  width:190px !important;
  max-width:190px !important;
  max-height:58px !important;
  object-fit:contain !important;
}

.marketing-hero{
  background:
    radial-gradient(circle at 8% 5%, rgba(34,211,238,.16), transparent 30%),
    radial-gradient(circle at 92% 0%, rgba(139,92,246,.16), transparent 32%),
    linear-gradient(135deg,#f8fafc 0%,#eef6ff 46%,#f8f7ff 100%);
  padding:72px 20px 82px;
}
.marketing-wrap{
  max-width:1180px;
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,1fr) 420px;
  gap:42px;
  align-items:center;
}
.marketing-copy h1{
  margin:18px 0 18px;
  max-width:760px;
  font-size:clamp(3rem,6.4vw,5.9rem);
  line-height:.92;
  letter-spacing:-.08em;
  color:#08111f;
}
.marketing-copy h1 span{
  background:linear-gradient(90deg,#4f46e5,#0891b2,#047857);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.marketing-copy p{
  max-width:720px;
  color:#475569;
  font-size:1.18rem;
  line-height:1.72;
  margin:0 0 24px;
}
.hero-keywords{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:22px 0 26px;
}
.hero-keywords b{
  display:inline-flex;
  padding:9px 12px;
  border-radius:999px;
  background:#fff;
  border:1px solid #e2e8f0;
  color:#334155;
  box-shadow:0 10px 28px rgba(15,23,42,.05);
}
.marketing-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.compact-studio-card{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:30px;
  padding:22px;
  box-shadow:0 28px 85px rgba(15,23,42,.13);
}
.compact-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  margin-bottom:14px;
}
.compact-head h2{
  margin:3px 0 0;
  color:#08111f;
  font-size:1.5rem;
  letter-spacing:-.04em;
}
.compact-head a{
  color:#4f46e5;
  font-weight:950;
}
.compact-studio-card textarea{
  width:100%;
  min-height:168px;
  border:1px solid #dbe3ef;
  border-radius:18px;
  padding:14px;
  font:inherit;
  line-height:1.55;
  resize:vertical;
}
.compact-fields{
  display:grid;
  grid-template-columns:1fr 110px;
  gap:10px;
  margin:12px 0;
}
.compact-fields select{
  width:100%;
  border:1px solid #dbe3ef;
  border-radius:14px;
  padding:11px;
  font:inherit;
  background:#fff;
}
.compact-studio-card p{
  margin:12px 0 0;
  color:#64748b;
  line-height:1.45;
  font-size:.92rem;
}
.seo-intro-section,
.home-usecases,
.how-it-works-home{
  padding:66px 20px;
  background:#fff;
}
.home-usecases{
  background:#f8fafc;
}
.seo-feature-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
.seo-feature-grid article,
.usecase-grid a,
.home-steps-grid article{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:26px;
  padding:22px;
  box-shadow:0 18px 50px rgba(15,23,42,.05);
}
.seo-feature-grid article span{
  display:flex;
  width:48px;
  height:48px;
  border-radius:18px;
  align-items:center;
  justify-content:center;
  background:#eef2ff;
  font-size:1.35rem;
}
.seo-feature-grid h3,
.home-steps-grid h3{
  margin:16px 0 8px;
  color:#0f172a;
}
.seo-feature-grid p,
.home-steps-grid p{
  color:#64748b;
  line-height:1.6;
}
.seo-feature-grid a{
  color:#4f46e5;
  font-weight:950;
}
.usecase-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}
.usecase-grid a{
  display:block;
  background:#fff;
  transition:.18s ease;
}
.usecase-grid a:hover{
  transform:translateY(-2px);
  border-color:#c7d2fe;
  box-shadow:0 20px 60px rgba(79,70,229,.10);
}
.usecase-grid b{
  display:block;
  color:#0f172a;
  margin-bottom:7px;
}
.usecase-grid span{
  display:block;
  color:#64748b;
  line-height:1.45;
  font-size:.94rem;
}
.home-steps-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}
.home-steps-grid b{
  display:flex;
  width:40px;
  height:40px;
  align-items:center;
  justify-content:center;
  border-radius:16px;
  background:#eef2ff;
  color:#4f46e5;
  font-weight:950;
}
.seo-content-block{
  padding:70px 20px;
  background:#f8fafc;
}
.seo-copy-card{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:30px;
  padding:30px;
  box-shadow:0 24px 70px rgba(15,23,42,.07);
}
.seo-copy-card h2{
  margin:0 0 16px;
  color:#08111f;
  font-size:clamp(2rem,4vw,3.2rem);
  letter-spacing:-.06em;
}
.seo-copy-card p{
  color:#475569;
  line-height:1.75;
  font-size:1.05rem;
}
.home-final-cta{
  text-align:center;
  background:
    radial-gradient(circle at 50% 0%, rgba(79,70,229,.18), transparent 35%),
    #08111f;
  color:#fff;
  padding:72px 20px;
}
.home-final-cta h2{
  margin:0 0 12px;
  font-size:clamp(2.2rem,4vw,3.6rem);
  letter-spacing:-.06em;
}
.home-final-cta p{
  margin:0 auto 24px;
  max-width:620px;
  color:#cbd5e1;
  line-height:1.65;
}
.home-final-cta .btn{
  margin:5px;
}
.site-footer{
  background:#07111f;
  color:#cbd5e1;
  padding:54px 20px 0;
}
.footer-grid{
  max-width:1180px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1.4fr repeat(4, minmax(145px, 1fr));
  gap:28px;
  align-items:start;
}
.footer-about .brand{
  color:#fff;
}
.footer-note{
  color:#cbd5e1;
  line-height:1.65;
  max-width:360px;
  margin:16px 0 10px;
}
.footer-mini{
  color:#94a3b8;
  line-height:1.55;
  font-size:.92rem;
}
.footer-col h3{
  color:#fff;
  margin:0 0 14px;
  font-size:1rem;
}
.footer-col a{
  display:block;
  color:#cbd5e1;
  padding:6px 0;
  line-height:1.35;
}
.footer-col a:hover{
  color:#fff;
}
.footer-bottom{
  max-width:1180px;
  margin:34px auto 0;
  border-top:1px solid rgba(255,255,255,.10);
  padding:18px 0;
  display:flex;
  justify-content:space-between;
  gap:16px;
  color:#94a3b8;
  font-size:.92rem;
}
.logo-preview-box{
  display:flex;
  gap:14px;
  align-items:center;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:18px;
  padding:14px;
  margin:8px 0 14px;
}
.logo-preview-box img{
  max-width:180px;
  max-height:70px;
  object-fit:contain;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:12px;
  padding:8px;
}
.logo-preview-box p{
  margin:4px 0 8px;
  color:#64748b;
  word-break:break-word;
}
@media (max-width:1080px){
  .marketing-wrap{grid-template-columns:1fr}
  .compact-studio-card{max-width:620px}
  .usecase-grid{grid-template-columns:repeat(3,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr 1fr}
}
@media (max-width:820px){
  .seo-feature-grid,
  .home-steps-grid{grid-template-columns:1fr 1fr}
  .usecase-grid{grid-template-columns:1fr 1fr}
  .footer-grid{grid-template-columns:1fr 1fr}
  .footer-bottom{display:block}
  .footer-bottom div+div{margin-top:8px}
}
@media (max-width:560px){
  .marketing-hero{padding:46px 16px 58px}
  .marketing-copy h1{font-size:clamp(2.7rem,13vw,4.2rem)}
  .marketing-actions .btn,
  .home-final-cta .btn{width:100%;justify-content:center}
  .compact-fields{grid-template-columns:1fr}
  .seo-feature-grid,
  .home-steps-grid,
  .usecase-grid,
  .footer-grid{grid-template-columns:1fr}
  .logo-preview-box{display:block}
  .logo-preview-box img{margin-bottom:10px}
}



/* v24: final logo size fix */
.brand:has(.site-logo-img){
  gap:0;
}

.topbar .brand{
  display:flex;
  align-items:center;
  min-width:210px;
}

.topbar .brand .site-logo-img{
  width:200px !important;
  height:auto !important;
  max-width:200px !important;
  max-height:62px !important;
  object-fit:contain !important;
}

.footer-brand .site-logo-img{
  width:210px !important;
  height:auto !important;
  max-width:210px !important;
  max-height:64px !important;
  object-fit:contain !important;
}

.topbar .nav{
  min-height:74px;
}

@media (max-width:700px){
  .topbar .brand{
    min-width:155px;
  }

  .topbar .brand .site-logo-img{
    width:155px !important;
    max-width:155px !important;
    max-height:48px !important;
  }
}




/* v25 clean header/footer + Play Store badge */
.navlinks{
  align-items:center;
}
.navlinks > a,
.nav-dropbtn{
  font-size:.92rem;
}
.nav-cta .btn{
  white-space:nowrap;
}
.playstore-mini-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-top:12px;
  padding:10px 13px;
  border-radius:16px;
  background:#111827;
  border:1px solid rgba(255,255,255,.14);
  color:#fff;
  box-shadow:0 14px 34px rgba(0,0,0,.18);
}
.playstore-mini-badge:hover{
  color:#fff;
  transform:translateY(-1px);
}
.play-icon{
  display:flex;
  width:34px;
  height:34px;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:linear-gradient(135deg,#4f46e5,#06b6d4);
  color:#fff;
  font-size:.9rem;
}
.playstore-mini-badge small{
  display:block;
  color:#cbd5e1;
  font-size:.76rem;
  line-height:1;
}
.playstore-mini-badge b{
  display:block;
  color:#fff;
  font-size:.96rem;
  line-height:1.2;
  margin-top:3px;
}
.footer-grid{
  grid-template-columns:1.35fr .85fr 1.25fr .85fr .75fr;
}
.footer-col h3{
  letter-spacing:.01em;
}
@media (max-width:1080px){
  .footer-grid{
    grid-template-columns:1fr 1fr 1fr;
  }
}
@media (max-width:820px){
  .footer-grid{
    grid-template-columns:1fr 1fr;
  }
}
@media (max-width:560px){
  .footer-grid{
    grid-template-columns:1fr;
  }
  .playstore-mini-badge{
    width:100%;
    justify-content:center;
  }
}


/* v29 simple tool-first homepage */
.simple-tool-hero{background:radial-gradient(circle at 8% 8%,rgba(34,211,238,.15),transparent 30%),radial-gradient(circle at 92% 0%,rgba(139,92,246,.16),transparent 32%),linear-gradient(135deg,#f8fafc 0%,#eef6ff 48%,#f8f7ff 100%);padding:58px 20px 66px}
.simple-tool-wrap{max-width:1180px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) 520px;gap:38px;align-items:center}
.simple-tool-copy h1{margin:18px 0 16px;max-width:760px;font-size:clamp(2.9rem,6.1vw,5.6rem);line-height:.94;letter-spacing:-.078em;color:#08111f}
.simple-tool-copy h1 span{background:linear-gradient(90deg,#4f46e5,#0891b2,#059669);-webkit-background-clip:text;background-clip:text;color:transparent}
.simple-tool-copy p{max-width:700px;color:#475569;font-size:1.16rem;line-height:1.72;margin:0}
.simple-trust-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
.simple-trust-row b{display:inline-flex;padding:9px 12px;border-radius:999px;background:#fff;border:1px solid #e2e8f0;color:#334155;box-shadow:0 10px 28px rgba(15,23,42,.05)}
.tts-style-tool-card{background:#fff;border:1px solid #e2e8f0;border-radius:30px;padding:20px;box-shadow:0 28px 85px rgba(15,23,42,.13)}
.tool-tabs{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;background:#f1f5f9;border-radius:18px;padding:6px;margin-bottom:16px}
.tool-tabs button{border:0;border-radius:14px;padding:11px 9px;background:transparent;color:#475569;font-weight:950;cursor:pointer}
.tool-tabs button.active{background:#fff;color:#4f46e5;box-shadow:0 8px 24px rgba(15,23,42,.08)}
.tab-panel{display:none}.tab-panel.active{display:block}
.tts-style-tool-card label{display:block;margin:0 0 8px;color:#0f172a;font-weight:950}
.tts-style-tool-card textarea{width:100%;min-height:210px;border:1px solid #dbe3ef;border-radius:20px;padding:15px;font:inherit;line-height:1.55;resize:vertical;outline:none;background:#fff;color:#0f172a}
.tts-style-tool-card textarea:focus,.tts-style-tool-card select:focus{border-color:#7c3aed;box-shadow:0 0 0 4px rgba(124,58,237,.10)}
.format-tip{margin-top:9px;color:#64748b;font-size:.93rem;line-height:1.45}
.file-drop-box{position:relative;border:1px dashed #94a3b8;background:#f8fafc;border-radius:22px;padding:28px 18px;text-align:center;margin-bottom:12px}
.file-drop-box input{position:absolute;inset:0;opacity:0;cursor:pointer}.file-drop-box strong{display:block;color:#0f172a;font-size:1.1rem}.file-drop-box span{display:block;color:#64748b;margin-top:6px;line-height:1.45}
.tool-controls{display:grid;grid-template-columns:1fr 140px;gap:12px;margin-top:14px}
.tool-controls select{width:100%;height:46px;border:1px solid #dbe3ef;border-radius:15px;padding:0 12px;background:#fff;color:#0f172a;font:inherit;font-weight:800}
.tool-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}.tool-actions .btn{justify-content:center;width:100%;min-height:48px}
.tool-note{margin-top:13px;padding:11px 13px;border-radius:16px;background:#ecfdf5;border:1px solid #bbf7d0;color:#166534;line-height:1.45;font-weight:750}
.home-preview-result{margin-top:14px}.home-preview-result:empty{display:none}.home-preview-result>strong{display:block;margin-bottom:9px;color:#0f172a}
.mini-blocks{display:grid;gap:8px}.mini-blocks div{border:1px solid #e2e8f0;background:#f8fafc;border-radius:14px;padding:10px 12px}.mini-blocks b{color:#0f172a;margin-right:8px}.mini-blocks span{display:inline-flex;padding:3px 8px;border-radius:999px;background:#eef2ff;color:#4f46e5;font-weight:900;font-size:.8rem}.mini-blocks p{margin:7px 0 0;color:#475569;line-height:1.45}
.simple-benefits{padding:46px 20px 58px;background:#fff}.benefit-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.benefit-grid article{border:1px solid #e2e8f0;background:#fff;border-radius:26px;padding:22px;box-shadow:0 18px 50px rgba(15,23,42,.05)}.benefit-grid span{display:flex;width:48px;height:48px;align-items:center;justify-content:center;border-radius:18px;background:#eef2ff;font-size:1.35rem}.benefit-grid h3{margin:16px 0 8px;color:#0f172a}.benefit-grid p{color:#64748b;line-height:1.6}.benefit-grid a{color:#4f46e5;font-weight:950}
@media (max-width:1040px){.simple-tool-wrap{grid-template-columns:1fr}.tts-style-tool-card{max-width:760px}}
@media (max-width:720px){.simple-tool-hero{padding:40px 16px 50px}.simple-tool-copy h1{font-size:clamp(2.6rem,13vw,4.1rem)}.tool-tabs,.tool-controls,.tool-actions,.benefit-grid{grid-template-columns:1fr}}


/* v30 Luvvoice-style simple centered homepage */
.clean-home-tool{
  min-height:620px;
  padding:38px 18px 28px;
  background:
    radial-gradient(circle at 18% 12%, rgba(124,58,237,.08), transparent 25%),
    radial-gradient(circle at 78% 70%, rgba(16,185,129,.12), transparent 25%),
    linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);
}
.clean-home-inner{
  max-width:820px;
  margin:0 auto;
  text-align:center;
}
.home-mini-tabs{
  display:inline-grid;
  grid-template-columns:repeat(3,1fr);
  gap:3px;
  padding:4px;
  margin:2px auto 10px;
  background:#fff;
  border:1px solid #e8eef7;
  border-radius:999px;
  box-shadow:0 8px 30px rgba(15,23,42,.06);
  transform:scale(.86);
}
.home-mini-tabs button{
  border:0;
  background:transparent;
  border-radius:999px;
  padding:7px 14px;
  color:#64748b;
  font-size:.72rem;
  font-weight:900;
  cursor:pointer;
  white-space:nowrap;
}
.home-mini-tabs button.active{
  background:#f8fafc;
  color:#0f172a;
  box-shadow:inset 0 0 0 1px #edf2f7;
}
.center-tool-box{
  position:relative;
  max-width:610px;
  margin:0 auto;
  padding:12px;
  border:1px solid #e2e8f0;
  border-radius:20px;
  background:#fff;
  box-shadow:
    0 22px 55px rgba(15,23,42,.12),
    -16px 22px 0 rgba(168,85,247,.18),
    16px 22px 0 rgba(34,197,94,.16);
}
.center-tool-top{
  height:28px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0 4px 7px;
  color:#94a3b8;
  font-size:.78rem;
}
.center-tool-top a{
  color:#64748b;
  font-size:.78rem;
  font-weight:900;
  margin-left:12px;
}
.home-tab-panel{
  display:none;
}
.home-tab-panel.active{
  display:block;
}
.center-tool-box textarea{
  width:100%;
  min-height:270px;
  border:1px solid #cbd5e1;
  border-radius:10px;
  background:#fff;
  padding:16px;
  font:inherit;
  color:#0f172a;
  resize:vertical;
  outline:none;
  line-height:1.55;
}
.center-tool-box textarea::placeholder{
  color:#94a3b8;
}
.center-tool-box textarea:focus,
.center-tool-controls select:focus{
  border-color:#94a3b8;
  box-shadow:0 0 0 3px rgba(148,163,184,.14);
}
.clean-file-box{
  position:relative;
  min-height:120px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  border:1px dashed #cbd5e1;
  border-radius:12px;
  background:#f8fafc;
  margin-bottom:10px;
  color:#475569;
}
.clean-file-box input{
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
}
.clean-file-box strong{
  color:#0f172a;
}
.clean-file-box span{
  color:#94a3b8;
  font-size:.88rem;
}
.center-tool-icons{
  position:absolute;
  right:28px;
  bottom:86px;
  display:flex;
  gap:6px;
}
.center-tool-icons button{
  width:24px;
  height:24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:999px;
  background:#ecfdf5;
  color:#059669;
  font-size:.78rem;
  cursor:pointer;
}
.center-tool-controls{
  display:grid;
  grid-template-columns:1fr 1fr 34px;
  gap:8px;
  margin-top:10px;
}
.center-tool-controls select,
.settings-mini{
  height:34px;
  border:1px solid #dbe3ef;
  border-radius:999px;
  background:#fff;
  color:#475569;
  font-size:.82rem;
  font-weight:800;
  padding:0 12px;
  outline:none;
}
.settings-mini{
  padding:0;
  cursor:pointer;
}
.generate-full-btn{
  width:100%;
  margin-top:10px;
  height:38px;
  border:0;
  border-radius:999px;
  background:#030712;
  color:#fff;
  font-weight:950;
  cursor:pointer;
  box-shadow:0 14px 32px rgba(0,0,0,.15);
}
.clean-home-note{
  margin:22px auto 0;
  max-width:580px;
  color:#64748b;
  line-height:1.6;
  font-size:.95rem;
}
.home-preview-result{
  margin-top:14px;
  text-align:left;
}
.home-preview-result:empty{
  display:none;
}
.home-preview-result > strong{
  display:block;
  margin-bottom:9px;
  color:#0f172a;
}
.mini-blocks{
  display:grid;
  gap:8px;
}
.mini-blocks div{
  border:1px solid #e2e8f0;
  background:#f8fafc;
  border-radius:14px;
  padding:10px 12px;
}
.mini-blocks b{
  color:#0f172a;
  margin-right:8px;
}
.mini-blocks span{
  display:inline-flex;
  padding:3px 8px;
  border-radius:999px;
  background:#eef2ff;
  color:#4f46e5;
  font-weight:900;
  font-size:.8rem;
}
.mini-blocks p{
  margin:7px 0 0;
  color:#475569;
  line-height:1.45;
}
.featured-public-voices{
  padding:30px 18px 76px;
  background:#fff;
}
.featured-wrap{
  max-width:900px;
  margin:0 auto;
  text-align:center;
}
.section-kicker{
  color:#fb7185;
  font-size:.72rem;
  font-weight:1000;
  text-transform:uppercase;
  letter-spacing:.16em;
  margin-bottom:6px;
}
.featured-wrap h2{
  margin:0;
  color:#0f172a;
  font-size:clamp(1.65rem,4vw,2.65rem);
  line-height:1.03;
  letter-spacing:-.045em;
}
.featured-wrap > p{
  max-width:520px;
  margin:12px auto 28px;
  color:#64748b;
  line-height:1.65;
}
.voice-card-row{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:20px;
  min-height:230px;
}
.public-voice-card{
  position:relative;
  width:210px;
  min-height:150px;
  text-align:left;
  border-radius:20px;
  padding:18px;
  color:#fff;
  box-shadow:0 22px 55px rgba(15,23,42,.18);
  overflow:hidden;
}
.public-voice-card:before{
  content:"";
  position:absolute;
  inset:8px;
  border:1px solid rgba(255,255,255,.33);
  border-radius:15px;
  pointer-events:none;
}
.public-voice-card.blue{
  background:linear-gradient(135deg,#0754c9,#0f172a);
  transform:translateY(22px) rotate(-1deg);
}
.public-voice-card.green{
  background:linear-gradient(135deg,#a7f3d0,#74c69d 45%,#2f855a);
  color:#0f172a;
}
.public-voice-card.orange{
  background:linear-gradient(135deg,#fff7ed,#fb923c 48%,#b45309);
  transform:translateY(20px) rotate(1deg);
}
.public-voice-card.main{
  width:260px;
  min-height:220px;
  transform:translateY(0);
}
.voice-card-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  position:relative;
  z-index:1;
}
.voice-card-top small{
  font-weight:1000;
  opacity:.92;
}
.voice-card-top button,
.big-play{
  border:0;
  border-radius:999px;
  background:#fff;
  color:#0f172a;
  width:34px;
  height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 12px 26px rgba(0,0,0,.14);
}
.public-voice-card h3{
  position:relative;
  z-index:1;
  margin:38px 0 8px;
  font-size:1.2rem;
  letter-spacing:-.02em;
}
.public-voice-card p{
  position:relative;
  z-index:1;
  margin:0;
  font-size:.86rem;
  line-height:1.45;
  opacity:.92;
}
.public-voice-card span{
  position:absolute;
  right:17px;
  bottom:14px;
  z-index:1;
  font-size:.75rem;
  font-weight:1000;
  opacity:.85;
}
.voice-wave{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  height:82px;
  margin-top:18px;
}
.voice-wave i{
  width:8px;
  border-radius:999px;
  background:rgba(255,255,255,.75);
}
.voice-wave i:nth-child(1){height:24px}
.voice-wave i:nth-child(2){height:52px}
.voice-wave i:nth-child(3){height:70px}
.voice-wave i:nth-child(4){height:44px}
.voice-wave i:nth-child(5){height:78px}
.voice-wave i:nth-child(6){height:48px}
.voice-wave i:nth-child(7){height:28px}
.big-play{
  position:absolute;
  left:50%;
  top:72px;
  transform:translateX(-50%);
  z-index:2;
}
.public-voice-card.main h3{
  margin-top:32px;
}
.create-voice-pill{
  display:inline-flex;
  margin-top:30px;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:0 18px;
  border-radius:999px;
  background:#030712;
  color:#fff;
  font-weight:950;
  box-shadow:0 14px 32px rgba(0,0,0,.16);
}
.create-voice-pill:hover{
  color:#fff;
  transform:translateY(-1px);
}
@media (max-width:760px){
  .clean-home-tool{
    min-height:auto;
    padding-top:28px;
  }
  .home-mini-tabs{
    transform:none;
    width:100%;
    max-width:520px;
  }
  .home-mini-tabs button{
    padding:8px 7px;
    font-size:.68rem;
  }
  .center-tool-box{
    border-radius:18px;
    box-shadow:0 18px 50px rgba(15,23,42,.13);
  }
  .center-tool-controls{
    grid-template-columns:1fr;
  }
  .settings-mini{
    width:100%;
  }
  .center-tool-icons{
    right:24px;
    bottom:132px;
  }
  .voice-card-row{
    flex-direction:column;
    min-height:auto;
  }
  .public-voice-card,
  .public-voice-card.main{
    width:min(100%,320px);
    transform:none !important;
  }
}


/* v31 public language/model/expression controls */
.center-tool-controls.public-controls{
  grid-template-columns:1.05fr 1.05fr .82fr .55fr;
}
.center-tool-controls.public-controls select{
  min-width:0;
  padding:0 10px;
  font-size:.78rem;
}
.logged-profile-control{
  margin-top:10px;
  display:grid;
  grid-template-columns:130px 1fr;
  gap:10px;
  align-items:center;
  padding:9px 10px;
  border-radius:16px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  text-align:left;
}
.logged-profile-control label{
  color:#475569;
  font-size:.82rem;
  font-weight:950;
}
.logged-profile-control select{
  height:36px;
  border:1px solid #dbe3ef;
  border-radius:999px;
  background:#fff;
  color:#475569;
  font-size:.82rem;
  font-weight:850;
  padding:0 12px;
  outline:none;
}
@media (max-width:760px){
  .center-tool-controls.public-controls{
    grid-template-columns:1fr;
  }
  .logged-profile-control{
    grid-template-columns:1fr;
  }
}


/* v32 homepage: country/language, model and expressions only */
.center-tool-controls.public-controls{
  grid-template-columns:1.15fr 1.1fr 1fr;
}
.center-tool-controls.public-controls select{
  min-width:0;
  padding:0 12px;
  font-size:.78rem;
}
@media (max-width:760px){
  .center-tool-controls.public-controls{
    grid-template-columns:1fr;
  }
}


/* v34 dynamic browser voice language */
.center-tool-controls.public-controls{
  grid-template-columns:1.05fr 1.3fr 1fr;
}
.center-tool-controls.public-controls select{
  min-width:0;
  text-overflow:ellipsis;
}
@media (max-width:760px){
  .center-tool-controls.public-controls{
    grid-template-columns:1fr;
  }
}


/* v35 homepage: single voice dropdown + expression + audio preview */
.center-tool-controls.voice-expression-controls,
.center-tool-controls.public-controls.voice-expression-controls{
  grid-template-columns:minmax(0,1.55fr) minmax(150px,.85fr) 132px;
}
.center-tool-controls.voice-expression-controls select{
  min-width:0;
  text-overflow:ellipsis;
}
.audio-preview-btn{
  height:34px;
  border:0;
  border-radius:999px;
  background:#10b981;
  color:#fff;
  font-size:.8rem;
  font-weight:950;
  padding:0 14px;
  cursor:pointer;
  white-space:nowrap;
  box-shadow:0 10px 24px rgba(16,185,129,.22);
}
.audio-preview-btn:hover{
  transform:translateY(-1px);
}
.home-icons-hidden{
  display:none !important;
}
@media (max-width:760px){
  .center-tool-controls.voice-expression-controls,
  .center-tool-controls.public-controls.voice-expression-controls{
    grid-template-columns:1fr;
  }
  .audio-preview-btn{
    width:100%;
  }
}


/* v37 two-stage preview: TTS settings + post audio expression */
.voice-select-row{
  margin-top:10px;
}
.voice-select-row select{
  width:100%;
  height:36px;
  border:1px solid #dbe3ef;
  border-radius:999px;
  background:#fff;
  color:#475569;
  font-size:.82rem;
  font-weight:850;
  padding:0 13px;
  outline:none;
}
.tts-settings-panel,
.expression-settings-panel{
  margin-top:10px;
  padding:11px;
  border:1px solid #e2e8f0;
  border-radius:16px;
  background:#f8fafc;
  text-align:left;
}
.panel-title{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
  margin-bottom:9px;
}
.panel-title strong{
  color:#0f172a;
  font-size:.88rem;
  font-weight:1000;
}
.panel-title span{
  color:#64748b;
  font-size:.76rem;
  line-height:1.35;
  text-align:right;
}
.mini-control-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
}
.mini-control-grid label{
  display:block;
  padding:8px;
  border-radius:13px;
  background:#fff;
  border:1px solid #e5edf7;
  color:#334155;
  font-size:.76rem;
  font-weight:950;
}
.mini-control-grid input[type="range"]{
  width:100%;
  display:block;
  margin:7px 0 4px;
}
.mini-control-grid small{
  color:#64748b;
  font-weight:900;
}
.preview-stage-btn{
  width:100%;
  height:36px;
  margin-top:9px;
  border:0;
  border-radius:999px;
  color:#fff;
  font-size:.8rem;
  font-weight:1000;
  cursor:pointer;
  white-space:nowrap;
}
.preview-stage-btn.tts-preview{
  background:#4f46e5;
  box-shadow:0 10px 24px rgba(79,70,229,.18);
}
.preview-stage-btn.expression-preview{
  margin-top:0;
  background:#10b981;
  box-shadow:0 10px 24px rgba(16,185,129,.20);
}
.expression-preview-row{
  display:grid;
  grid-template-columns:1fr 190px;
  gap:8px;
}
.expression-preview-row select{
  height:36px;
  border:1px solid #dbe3ef;
  border-radius:999px;
  background:#fff;
  color:#475569;
  font-size:.82rem;
  font-weight:850;
  padding:0 13px;
  outline:none;
}
.effect-mini-note{
  margin:9px 2px 0;
  color:#64748b;
  font-size:.76rem;
  line-height:1.45;
}
.home-icons-hidden{
  display:none !important;
}
@media (max-width:760px){
  .mini-control-grid,
  .expression-preview-row{
    grid-template-columns:1fr;
  }
  .panel-title{
    display:block;
  }
  .panel-title span{
    display:block;
    text-align:left;
    margin-top:3px;
  }
}


/* v38 browser-first TTS voice profile flow */
.browser-flow-panel{
  margin-top:10px;
  padding:10px;
  border:1px solid #e2e8f0;
  border-radius:16px;
  background:#f8fafc;
  text-align:left;
}
.flow-step-label{
  margin:0 0 8px;
  color:#334155;
  font-size:.76rem;
  font-weight:1000;
  letter-spacing:.01em;
}
.browser-flow-panel select{
  width:100%;
  height:36px;
  border:1px solid #dbe3ef;
  border-radius:999px;
  background:#fff;
  color:#475569;
  font-size:.82rem;
  font-weight:850;
  padding:0 13px;
  outline:none;
}
.compact-tts-grid{
  margin-top:8px;
}
.compact-tts-grid label{
  padding:7px;
}
.expression-panel{
  background:#f0fdf4;
  border-color:#bbf7d0;
}
.generate-full-btn{
  margin-top:12px;
}
@media (max-width:760px){
  .browser-flow-panel{
    padding:10px;
  }
}


/* v39 polish: wider tool, hidden advanced bars by default */
.clean-home-inner{
  max-width:1040px;
}
.center-tool-box{
  max-width:820px;
}
.advanced-tts-controls,
#audioEffectControls,
#voiceLoginNote,
#expressionLoginNote{
  display:none;
}
.login-required-note{
  margin-top:8px;
  padding:9px 11px;
  border:1px solid #fed7aa;
  border-radius:14px;
  background:#fff7ed;
  color:#9a3412;
  font-size:.82rem;
  font-weight:850;
}
.login-required-note a{
  color:#9a3412;
  font-weight:1000;
}
.audio-effect-controls{
  margin-top:10px;
  padding:10px;
  border:1px solid #bbf7d0;
  border-radius:14px;
  background:#fff;
}
.audio-effect-controls label{
  display:block;
  color:#166534;
  font-size:.82rem;
  font-weight:1000;
}
.audio-effect-controls input{
  width:100%;
  margin:7px 0 4px;
}
.audio-effect-controls small{
  display:block;
  color:#64748b;
  font-size:.76rem;
  line-height:1.35;
}
.expression-panel .flow-step-label{
  color:#166534;
}
@media (max-width:900px){
  .center-tool-box{
    max-width:100%;
  }
}


/* v40 WAV to MP3 converter */
.mp3-converter-box{
  display:none;
  margin-top:12px;
  padding:14px;
  border:1px solid #e2e8f0;
  border-radius:18px;
  background:#f8fafc;
}
.mp3-converter-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.mp3-converter-head strong{
  color:#0f172a;
}
.mp3-converter-head span{
  color:#64748b;
  font-size:.85rem;
}
.mp3-converter-box input[type="file"]{
  width:100%;
  padding:10px;
  border:1px dashed #cbd5e1;
  border-radius:14px;
  background:#fff;
  color:#475569;
}
.mp3-converter-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:10px;
}
.mp3-converter-actions .disabled{
  pointer-events:none;
  opacity:.55;
}
.mp3-progress{
  height:10px;
  overflow:hidden;
  margin-top:12px;
  border-radius:999px;
  background:#e2e8f0;
}
.mp3-progress-bar{
  width:0%;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#4f46e5,#10b981);
  transition:width .2s ease;
}
.mp3-progress-text{
  margin-top:8px;
  color:#64748b;
  font-size:.84rem;
  font-weight:850;
}
@media (max-width:640px){
  .mp3-converter-actions{
    grid-template-columns:1fr;
  }
  .mp3-converter-head{
    display:block;
  }
  .mp3-converter-head span{
    display:block;
    margin-top:4px;
  }
}


/* v41 homepage preview stop + consistent buttons */
.expression-preview-row.expression-select-only{
  display:block;
}
.expression-preview-row.expression-select-only select{
  width:100%;
}
.preview-stage-btn{
  display:block;
  width:100%;
  min-height:38px;
  border-radius:999px;
  text-align:center;
}
.preview-stage-btn.expression-preview{
  width:100%;
  margin-top:10px;
}
.preview-stage-btn.is-playing{
  background:#ef4444 !important;
  box-shadow:0 10px 24px rgba(239,68,68,.22) !important;
}
.generate-full-btn{
  width:100%;
  min-height:40px;
  border-radius:999px;
}


/* v42 voice list attention note */
.voice-attention-note{
  margin:0 0 9px;
  padding:8px 10px;
  border:1px solid #fde68a;
  border-radius:13px;
  background:#fffbeb;
  color:#92400e;
  font-size:.80rem;
  line-height:1.35;
  font-weight:850;
}
.voice-attention-note strong{
  color:#78350f;
  font-weight:1000;
}


/* v43 generate-audio clean export page */
.export-studio-page{
  background:
    radial-gradient(circle at 8% 0%, rgba(168,85,247,.16), transparent 30%),
    radial-gradient(circle at 92% 0%, rgba(34,197,94,.16), transparent 30%),
    #f8fafc;
  padding:44px 18px 72px;
}
.export-studio-wrap{
  max-width:1120px;
  margin:0 auto;
}
.export-tool-box{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:28px;
  padding:20px;
  box-shadow:
    0 24px 70px rgba(15,23,42,.11),
    -16px 22px 0 rgba(168,85,247,.15),
    16px 22px 0 rgba(34,197,94,.13);
}
.export-tool-top{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
  margin-bottom:14px;
}
.export-kicker{
  display:inline-flex;
  align-items:center;
  padding:7px 12px;
  border-radius:999px;
  background:#eef2ff;
  color:#3730a3;
  font-size:.78rem;
  font-weight:1000;
}
.export-tool-top h1{
  margin:12px 0 8px;
  color:#08111f;
  font-size:clamp(1.85rem,4vw,3.2rem);
  line-height:1;
  letter-spacing:-.06em;
}
.export-tool-top p{
  max-width:760px;
  margin:0;
  color:#64748b;
  line-height:1.55;
  font-weight:750;
}
.export-edit-link{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:0 16px;
  border:1px solid #dbe3ef;
  border-radius:999px;
  background:#f8fafc;
  color:#334155;
  font-weight:1000;
}
.export-soft-note{
  margin:0 0 12px;
}
.export-preview-text{
  width:100%;
  min-height:260px;
  border:1px solid #cbd5e1;
  border-radius:16px;
  background:#fff;
  padding:16px;
  font:inherit;
  color:#0f172a;
  resize:vertical;
  outline:none;
  line-height:1.58;
}
.export-preview-text:focus{
  border-color:#94a3b8;
  box-shadow:0 0 0 3px rgba(148,163,184,.14);
}
.export-chip-row{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-top:12px;
}
.export-chip-row span{
  display:block;
  min-width:0;
  padding:10px 12px;
  border:1px solid #e2e8f0;
  border-radius:16px;
  background:#f8fafc;
  color:#334155;
  font-size:.82rem;
  font-weight:900;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.export-chip-row b{
  display:block;
  color:#94a3b8;
  font-size:.70rem;
  text-transform:uppercase;
  letter-spacing:.04em;
  margin-bottom:3px;
}
.export-preview-actions{
  display:grid;
  grid-template-columns:1fr 160px;
  gap:10px;
  margin-top:12px;
}
.export-preview-actions .preview-stage-btn{
  margin:0;
}
.preview-stage-btn.stop-preview{
  background:#0f172a;
  color:#fff;
  box-shadow:0 10px 24px rgba(15,23,42,.15);
}
.export-download-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:14px;
}
.export-download-card{
  border:1px solid #e2e8f0;
  border-radius:22px;
  background:#f8fafc;
  padding:18px;
}
.export-download-card h2{
  margin:10px 0 8px;
  color:#0f172a;
  font-size:1.35rem;
  letter-spacing:-.04em;
}
.export-download-card p{
  margin:0 0 14px;
  color:#64748b;
  line-height:1.5;
  font-weight:750;
}
.download-icon{
  display:inline-flex;
  height:34px;
  min-width:54px;
  align-items:center;
  justify-content:center;
  padding:0 10px;
  border-radius:999px;
  background:#eef2ff;
  color:#3730a3;
  font-size:.78rem;
  font-weight:1000;
}
.mp3-card .download-icon{
  background:#ecfdf5;
  color:#047857;
}
.export-main-btn{
  width:100%;
  justify-content:center;
}
.export-status-line{
  margin-top:10px;
  color:#64748b;
  font-size:.84rem;
  line-height:1.45;
  font-weight:850;
}
.export-mp3-box{
  display:block !important;
  margin-top:0;
  padding:0;
  border:0;
  background:transparent;
}
.export-profile-cards{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin-top:24px;
}
.export-profile-card{
  display:block;
  padding:22px;
  border:1px solid #e2e8f0;
  border-radius:24px;
  background:#fff;
  box-shadow:0 18px 44px rgba(15,23,42,.07);
  color:#0f172a;
}
.profile-card-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:16px;
  background:#f1f5f9;
  margin-bottom:12px;
  font-size:1.3rem;
}
.export-profile-card strong{
  display:block;
  font-size:1.25rem;
  letter-spacing:-.035em;
  margin-bottom:7px;
}
.export-profile-card p{
  margin:0 0 12px;
  color:#64748b;
  line-height:1.55;
  font-weight:750;
}
.export-profile-card em{
  display:inline-flex;
  font-style:normal;
  min-height:34px;
  align-items:center;
  padding:0 13px;
  border-radius:999px;
  background:#0f172a;
  color:#fff;
  font-size:.82rem;
  font-weight:1000;
}
@media (max-width:880px){
  .export-tool-top,
  .export-download-grid,
  .export-profile-cards{
    grid-template-columns:1fr;
    display:grid;
  }
  .export-preview-actions{
    grid-template-columns:1fr;
  }
  .export-chip-row{
    grid-template-columns:1fr 1fr;
  }
}
@media (max-width:560px){
  .export-studio-page{
    padding:28px 12px 56px;
  }
  .export-tool-box{
    padding:14px;
    border-radius:22px;
    box-shadow:0 16px 40px rgba(15,23,42,.10);
  }
  .export-chip-row{
    grid-template-columns:1fr;
  }
  .export-preview-text{
    min-height:220px;
  }
}


/* v45 generate page editable controls */
.export-controls-panel{
  display:grid;
  grid-template-columns:2fr 1.35fr 1.35fr .55fr;
  gap:10px;
  margin-top:12px;
}
.export-control-field{
  min-width:0;
}
.export-control-field label{
  display:block;
  margin:0 0 6px;
  color:#64748b;
  font-size:.72rem;
  text-transform:uppercase;
  letter-spacing:.04em;
  font-weight:1000;
}
.export-control-field select{
  width:100%;
  height:40px;
  border:1px solid #dbe3ef;
  border-radius:999px;
  background:#fff;
  color:#334155;
  font-size:.84rem;
  font-weight:900;
  padding:0 13px;
  outline:none;
}
.blocks-pill{
  display:flex;
  align-items:center;
  justify-content:center;
  height:40px;
  border:1px solid #e2e8f0;
  border-radius:999px;
  background:#f8fafc;
  color:#0f172a;
  font-size:.9rem;
  font-weight:1000;
}
@media (max-width:980px){
  .export-controls-panel{
    grid-template-columns:1fr 1fr;
  }
}
@media (max-width:620px){
  .export-controls-panel{
    grid-template-columns:1fr;
  }
}


/* v46 generate page PRG + two previews + WAV status */
.two-preview-actions{
  grid-template-columns:1fr 1fr;
}
.two-preview-actions .preview-stage-btn{
  margin:0;
  width:100%;
}
.two-preview-actions .preview-stage-btn.is-playing{
  background:#ef4444 !important;
  box-shadow:0 10px 24px rgba(239,68,68,.22) !important;
}
.disabled-soft{
  opacity:.62;
}
@media (max-width:700px){
  .two-preview-actions{
    grid-template-columns:1fr;
  }
}


/* v47 remove MP3 converter from generate page */
.export-download-grid{
  grid-template-columns:1fr;
}
.export-download-card.wav-card{
  max-width:720px;
  width:100%;
  margin:0 auto;
}


/* v48 clearer WAV export locked state */
.export-locked-card{
  text-align:center;
  background:linear-gradient(180deg,#f8fafc,#ffffff);
}
.export-locked-card .download-icon{
  margin:0 auto;
}
.export-locked-card .disabled-soft{
  cursor:not-allowed;
}
.export-locked-card .export-status-line{
  max-width:560px;
  margin:12px auto 0;
}


/* v49 server MP3 export engine */
.mp3-generate-card{
  max-width:760px;
  width:100%;
  margin:0 auto;
  text-align:center;
  background:linear-gradient(180deg,#f8fafc,#ffffff);
}
.mp3-generate-card .download-icon{
  margin:0 auto;
  background:#ecfdf5;
  color:#047857;
}
.server-progress{
  display:none;
  height:10px;
  overflow:hidden;
  margin:14px 0 0;
  border-radius:999px;
  background:#e2e8f0;
}
.server-progress.show{
  display:block;
}
.server-progress-bar{
  width:0%;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#4f46e5,#10b981);
  transition:width .2s ease;
}
.generated-audio-result{
  margin-top:14px;
  padding:14px;
  border:1px solid #e2e8f0;
  border-radius:18px;
  background:#f8fafc;
}
.generated-audio-result audio{
  width:100%;
  display:block;
  margin-bottom:10px;
}
.generated-audio-result small{
  display:block;
  margin-top:9px;
  color:#64748b;
  font-size:.82rem;
  font-weight:850;
}

.server-generate-status{
  min-height:1.4em;
  margin-top:12px;
  color:#475569;
  font-size:.88rem;
  font-weight:850;
  line-height:1.45;
  text-align:center;
}
.server-generate-status:empty{
  display:none;
}
.server-generate-status.working,
.server-generate-status.info{
  color:#1d4ed8;
}
.server-generate-status.success{
  color:#047857;
}
.server-generate-status.error,
#homeCharacterCount.over-limit{
  color:#b91c1c;
}
.generate-full-btn:disabled{
  cursor:wait;
  opacity:.68;
}
#homeServerAudioDownload{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 20px;
  border-radius:999px;
  text-decoration:none;
}


/* v50 browser preview vs server MP3 voice notice */
.server-voice-notice{
  margin-top:12px;
  padding:10px 12px;
  border:1px solid #fde68a;
  border-radius:16px;
  background:#fffbeb;
  color:#92400e;
  font-size:.84rem;
  line-height:1.45;
  font-weight:850;
}
.server-voice-notice strong{
  color:#78350f;
  font-weight:1000;
}
.mp3-generate-card h2{
  max-width:620px;
  margin-left:auto;
  margin-right:auto;
}


/* v51 same engine preview/download */
.same-engine-note{
  margin-top:12px;
  padding:10px 12px;
  border:1px solid #bbf7d0;
  border-radius:16px;
  background:#f0fdf4;
  color:#166534;
  font-size:.84rem;
  line-height:1.45;
  font-weight:850;
}
.export-preview-actions.two-preview-actions{
  display:none !important;
}
.mp3-generate-card .export-status-line{
  max-width:620px;
  margin-left:auto;
  margin-right:auto;
}


.server-voice-help{
  display:block;
  margin-top:6px;
  color:#64748b;
  font-size:.76rem;
  line-height:1.35;
  font-weight:800;
}


/* v52 clean server voice export page */
.server-controls-panel{
  grid-template-columns:2fr 1fr 1fr .5fr;
}
.single-export-grid{
  grid-template-columns:1fr !important;
}
.single-export-grid .mp3-generate-card{
  max-width:760px;
  width:100%;
  margin:0 auto;
}
.same-engine-note{
  margin-top:12px;
  padding:10px 12px;
  border:1px solid #bbf7d0;
  border-radius:16px;
  background:#f0fdf4;
  color:#166534;
  font-size:.84rem;
  line-height:1.45;
  font-weight:850;
}
.same-engine-note strong{
  color:#14532d;
  font-weight:1000;
}
.server-voice-help{
  display:block;
  margin-top:6px;
  color:#64748b;
  font-size:.76rem;
  line-height:1.35;
  font-weight:800;
}
@media (max-width:980px){
  .server-controls-panel{
    grid-template-columns:1fr 1fr;
  }
}
@media (max-width:620px){
  .server-controls-panel{
    grid-template-columns:1fr;
  }
}


/* v53 voice settings + expressions wiring polish */
.applied-export-settings{
  margin-top:10px;
  padding:10px 12px;
  border:1px solid #dbeafe;
  border-radius:16px;
  background:#eff6ff;
  color:#1e3a8a;
  font-size:.84rem;
  line-height:1.45;
  font-weight:850;
}
.applied-export-settings strong{
  font-weight:1000;
  color:#1e40af;
}


/* v54 Google Cloud TTS engine support */
#serverVoiceLang optgroup{font-weight:900;color:#334155;}
#serverVoiceLang option{font-weight:700;}

/* Promotional homepage */
.promo-hero{position:relative;overflow:hidden;padding:92px 24px 72px;background:radial-gradient(circle at 78% 26%,rgba(109,93,252,.18),transparent 30%),linear-gradient(145deg,#090815,#11102a 55%,#090914);color:#fff}
.promo-hero-inner{position:relative;z-index:1;max-width:1180px;margin:auto;display:grid;grid-template-columns:1.05fr .95fr;gap:70px;align-items:center}
.promo-copy h1{margin:14px 0 20px;max-width:720px;font-size:clamp(44px,5.5vw,78px);line-height:1.02;letter-spacing:-.045em}
.promo-copy>p{max-width:650px;color:#c5c3d8;font-size:19px;line-height:1.75}
.promo-kicker,.promo-heading>span,.promo-final-cta span{color:#a99eff;font-size:12px;font-weight:800;letter-spacing:.18em}
.promo-actions{display:flex;flex-wrap:wrap;gap:14px;margin:30px 0 24px}.promo-primary{box-shadow:0 14px 35px rgba(109,93,252,.32)}
.promo-trust{display:flex;flex-wrap:wrap;gap:18px;color:#aaa7c0;font-size:13px}.promo-trust span::first-letter{color:#6fe7a9}
.promo-demo-card{padding:18px;border:1px solid rgba(183,176,255,.25);border-radius:26px;background:linear-gradient(150deg,rgba(31,29,62,.92),rgba(15,14,32,.96));box-shadow:0 30px 80px rgba(0,0,0,.38);transform:rotate(1deg)}
.promo-demo-top{display:flex;align-items:center;gap:7px;padding:4px 2px 18px;border-bottom:1px solid rgba(255,255,255,.08)}.promo-demo-top span{width:9px;height:9px;border-radius:50%;background:#6d5dfc}.promo-demo-top span:nth-child(2){opacity:.65}.promo-demo-top span:nth-child(3){opacity:.35}.promo-demo-top b{margin-left:auto;color:#aaa7c0;font-size:12px}
.promo-script-line{margin:15px 0;padding:15px;border:1px solid rgba(255,255,255,.07);border-radius:15px;background:rgba(255,255,255,.035)}.promo-script-line i{color:#a99eff;font-size:12px;font-weight:800;font-style:normal}.promo-script-line p{margin:8px 0;color:#f1f0fa}.promo-script-line em{color:#8b88a5;font-size:11px;font-style:normal}
.promo-wave{height:82px;display:flex;align-items:center;justify-content:center;gap:4px;padding:10px 4px}.promo-wave span{width:5px;height:var(--h);border-radius:8px;background:linear-gradient(#a99eff,#55d7ff);animation:promoWave 1.8s ease-in-out infinite alternate}.promo-wave span:nth-child(3n){animation-delay:.25s}.promo-wave span:nth-child(4n){animation-delay:.5s}@keyframes promoWave{to{transform:scaleY(.55);opacity:.65}}
.promo-demo-footer{display:flex;justify-content:space-between;padding:15px 4px 4px;color:#aaa7c0;font-size:12px}.promo-demo-footer span{color:#b7afff}
.promo-metrics{max-width:1180px;margin:-24px auto 0;position:relative;z-index:2;display:grid;grid-template-columns:repeat(4,1fr);border:1px solid #e7e5f7;border-radius:20px;background:#fff;box-shadow:0 16px 50px rgba(42,35,100,.12)}.promo-metrics div{padding:24px;text-align:center;border-right:1px solid #eceaf7}.promo-metrics div:last-child{border:0}.promo-metrics b{display:block;color:#302a69;font-size:25px}.promo-metrics span{display:block;margin-top:5px;color:#77738d;font-size:12px}
.promo-section,.promo-steps{max-width:1180px;margin:auto;padding:96px 24px}.promo-heading{text-align:center;max-width:740px;margin:0 auto 44px}.promo-heading h2{margin:10px 0 14px;font-size:clamp(32px,4vw,48px);letter-spacing:-.035em}.promo-heading p{color:#6e6a80;line-height:1.7}
.promo-feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.promo-feature-grid article,.promo-step-grid article{padding:28px;border:1px solid #e9e7f3;border-radius:20px;background:#fff;box-shadow:0 10px 35px rgba(33,28,78,.06);transition:.2s ease}.promo-feature-grid article:hover{transform:translateY(-5px);border-color:#b8b0f9}.promo-feature-grid article>div{font-size:26px}.promo-feature-grid h3{margin:17px 0 8px}.promo-feature-grid p{min-height:70px;color:#6e6a80;line-height:1.65}.promo-feature-grid small{color:#7569dc;font-weight:700}
.promo-steps{max-width:none;background:#f7f6fc}.promo-step-grid{max-width:1132px;margin:auto;display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.promo-step-grid b{color:#8174ef;font-size:36px}.promo-step-grid p{color:#6e6a80;line-height:1.65}
.promo-final-cta{max-width:1132px;margin:80px auto;padding:48px 54px;border-radius:28px;display:flex;align-items:center;justify-content:space-between;gap:32px;background:linear-gradient(135deg,#17142e,#2b245f);color:#fff}.promo-final-cta h2{margin:8px 0;font-size:38px}.promo-final-cta p{margin:0;color:#bbb7d0}
@media(max-width:900px){.promo-hero{padding-top:64px}.promo-hero-inner{grid-template-columns:1fr;gap:42px}.promo-copy{text-align:center}.promo-copy>p{margin-left:auto;margin-right:auto}.promo-actions,.promo-trust{justify-content:center}.promo-demo-card{max-width:620px;margin:auto;transform:none}.promo-metrics{margin:0 18px;grid-template-columns:1fr 1fr}.promo-metrics div:nth-child(2){border-right:0}.promo-metrics div:nth-child(-n+2){border-bottom:1px solid #eceaf7}.promo-feature-grid{grid-template-columns:1fr 1fr}.promo-final-cta{margin:60px 20px}}
@media(max-width:600px){.promo-copy h1{font-size:43px}.promo-copy>p{font-size:16px}.promo-feature-grid,.promo-step-grid{grid-template-columns:1fr}.promo-metrics{grid-template-columns:1fr}.promo-metrics div{border-right:0;border-bottom:1px solid #eceaf7!important}.promo-final-cta{padding:34px 26px;display:block;text-align:center}.promo-final-cta .btn{margin-top:24px}.promo-wave span:nth-child(even){display:none}}
.voice-preset-note{margin-top:9px;color:#77738d;font-size:12px;line-height:1.5}
.audio-effect-stage{margin-top:22px;padding:22px;border:1px solid rgba(109,93,252,.24);border-radius:18px;background:linear-gradient(145deg,rgba(109,93,252,.06),rgba(85,215,255,.04))}
.audio-effect-stage[hidden]{display:none!important}.audio-effect-stage>label{display:block;margin:14px 0 7px;font-weight:800}.audio-effect-stage select{width:100%}.effect-preview-btn{margin-top:16px}.generated-audio-result audio{width:100%;margin:12px 0}.generated-audio-result .btn{display:inline-flex;margin-right:8px}
