:root{
  --bg:#070814;
  --panel:#0d1022;
  --panel2:#121733;
  --ink:#f7f8ff;
  --muted:#aeb7d9;
  --line:rgba(255,255,255,.12);
  --blue:#28a7ff;
  --purple:#8b5cf6;
  --violet:#c026d3;
  --cyan:#22d3ee;
  --black:#03040a;
  --white:#fff;
  --radius:18px;
  --shadow:0 18px 60px rgba(0,0,0,.32);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:'Noto Sans Thai',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:radial-gradient(circle at 8% -4%,rgba(40,167,255,.24),transparent 30%),radial-gradient(circle at 92% 3%,rgba(139,92,246,.32),transparent 30%),linear-gradient(180deg,#070814 0%,#090b18 42%,#05060d 100%);color:var(--ink);line-height:1.45;font-size:15px;min-height:100vh}
a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}
.site-header{position:relative;overflow:hidden;border-bottom:1px solid var(--line)}
.site-header:before{content:"";position:absolute;inset:-180px -80px auto auto;width:420px;height:420px;background:linear-gradient(135deg,var(--blue),var(--purple),var(--violet));filter:blur(70px);opacity:.45;pointer-events:none}
.topbar{position:relative;max-width:1180px;margin:0 auto;padding:10px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand{display:flex;align-items:center;gap:10px;font-weight:900;letter-spacing:.1px}.brand img{width:50px;height:50px;border-radius:14px;background:#fff;object-fit:contain;box-shadow:0 12px 36px rgba(40,167,255,.18)}
.nav-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.nav-link{border:1px solid var(--line);background:rgba(255,255,255,.07);padding:7px 12px;border-radius:999px;font-weight:800;font-size:13px;color:#edf3ff}.nav-link:hover{background:rgba(40,167,255,.18)}
.hero{position:relative;max-width:1180px;margin:0 auto;padding:18px 18px 24px;display:grid;grid-template-columns:1fr 190px;gap:18px;align-items:end}.kicker{display:inline-flex;margin:0 0 7px;padding:4px 10px;border-radius:999px;background:rgba(40,167,255,.13);border:1px solid rgba(34,211,238,.28);color:#a9f3ff;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.5px}.hero h1{font-size:clamp(30px,4.7vw,56px);line-height:.98;margin:0 0 8px;font-weight:900;letter-spacing:-1.7px}.hero h1 span{background:linear-gradient(90deg,#67e8f9,#60a5fa,#c084fc);-webkit-background-clip:text;background-clip:text;color:transparent}.hero-sub{font-size:clamp(14px,1.7vw,17px);max-width:760px;margin:0 0 15px;color:var(--muted);font-weight:700}.search-wrap{display:flex;gap:8px;max-width:760px;background:rgba(255,255,255,.08);border:1px solid var(--line);padding:7px;border-radius:18px;backdrop-filter:blur(14px)}.search-wrap input{width:100%;border:0;border-radius:13px;padding:11px 13px;outline:0;background:#f9fbff;color:#0b1020;font-weight:800}.search-wrap button,.load-more,.copy-btn,.mini-btn{border:0;border-radius:13px;padding:10px 14px;background:linear-gradient(135deg,var(--blue),var(--purple));color:#fff;font-weight:900;cursor:pointer;white-space:nowrap;box-shadow:0 10px 26px rgba(40,167,255,.18)}.hero-stats{background:linear-gradient(180deg,rgba(255,255,255,.10),rgba(255,255,255,.06));border:1px solid var(--line);border-radius:22px;padding:16px;box-shadow:var(--shadow);backdrop-filter:blur(14px)}.hero-stats strong{display:block;font-size:40px;line-height:1;font-weight:900;color:#8be9ff}.hero-stats span{display:block;color:var(--muted);font-size:13px;font-weight:800;margin-bottom:10px}.hero-stats button{width:100%;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.08);color:#fff;border-radius:13px;padding:9px;font-weight:900;cursor:pointer}
main{max-width:1180px;margin:0 auto;padding:16px 18px 42px}.quick-start{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:13px}.mode-card{text-align:left;border:1px solid var(--line);background:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,.045));border-radius:20px;padding:14px;cursor:pointer;color:var(--ink);box-shadow:0 8px 26px rgba(0,0,0,.16)}.mode-card.active,.mode-card:hover{border-color:rgba(34,211,238,.48);box-shadow:0 16px 40px rgba(40,167,255,.12)}.mode-icon{font-size:28px;display:block}.mode-card b{display:block;font-size:20px;line-height:1.15;margin:5px 0 3px}.mode-card small{color:var(--muted);font-weight:700}.builder{border:1px solid var(--line);background:linear-gradient(180deg,rgba(18,23,51,.90),rgba(9,11,24,.90));border-radius:22px;padding:14px;margin:0 0 13px;box-shadow:0 16px 50px rgba(0,0,0,.25)}.builder-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.builder h2{margin:0;font-size:22px;line-height:1.15}.eyebrow{font-weight:900;color:#8be9ff;text-transform:uppercase;letter-spacing:.5px;margin:0 0 4px}.builder-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.builder label,.text-label{display:grid;gap:5px;color:var(--muted);font-size:13px;font-weight:900}.builder select,.builder textarea,.filter-row select{border:1px solid var(--line);border-radius:13px;padding:9px 12px;background:#10162d;color:#fff;font-weight:800;outline:0}.builder textarea{resize:vertical;min-height:96px}.text-label{margin-top:10px}.prompt-preview{margin:10px 0 0;border:1px solid rgba(34,211,238,.22);border-radius:14px;background:#050716;color:#dbeafe;padding:11px;white-space:pre-wrap;max-height:210px;overflow:auto;font-size:12.5px;line-height:1.5}.tabs{position:sticky;top:0;z-index:10;background:rgba(7,8,20,.82);backdrop-filter:blur(18px);border:1px solid var(--line);border-radius:18px;display:flex;gap:6px;overflow:auto;padding:7px;margin-bottom:12px}.tab{border:1px solid transparent;background:transparent;border-radius:999px;padding:7px 12px;font-size:13px;font-weight:900;cursor:pointer;white-space:nowrap;color:var(--muted)}.tab.active{background:linear-gradient(135deg,var(--blue),var(--purple));color:#fff;border-color:rgba(255,255,255,.16);box-shadow:0 10px 24px rgba(40,167,255,.18)}.filter-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 13px}.filter-row select{min-width:230px;background:#0d1022;color:#fff}.filter-row span{color:var(--muted);font-size:14px;font-weight:800}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.card{position:relative;border:1px solid var(--line);border-radius:var(--radius);background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.045));overflow:hidden;box-shadow:0 10px 26px rgba(0,0,0,.20);transition:.16s ease}.card:hover{transform:translateY(-2px);box-shadow:0 18px 44px rgba(40,167,255,.13);border-color:rgba(34,211,238,.38)}.fav-btn{position:absolute;right:8px;top:8px;z-index:2;width:36px;height:36px;border-radius:999px;border:1px solid var(--line);background:rgba(5,7,22,.72);color:#fff;font-size:18px;cursor:pointer;backdrop-filter:blur(10px)}.fav-btn.active{background:linear-gradient(135deg,var(--blue),var(--purple))}.thumb{aspect-ratio:16/9;background:#070814;overflow:hidden}.thumb img{width:100%;height:100%;display:block;object-fit:cover}.card-body{padding:13px}.tag-row{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:7px}.chip{display:inline-flex;align-items:center;border-radius:999px;padding:3px 7px;background:rgba(255,255,255,.11);border:1px solid var(--line);color:#dbeafe;font-size:11px;font-weight:900;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chip.blue{background:rgba(40,167,255,.16);color:#a9f3ff}.chip.purple{background:rgba(139,92,246,.18);color:#e9d5ff}.card h2{font-size:17px;line-height:1.24;margin:0 0 4px;font-weight:900}.en{color:var(--muted);font-size:13px;font-weight:800;margin:0 0 7px}.meta{color:#d6dcf7;font-size:13px;margin:0 0 6px}.prompt-box{margin:9px 0;border-radius:13px;background:#050716;color:#dbeafe;border:1px solid rgba(255,255,255,.08);padding:10px;max-height:118px;overflow:auto;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11.5px;line-height:1.45;white-space:pre-wrap}.action-row{display:grid;grid-template-columns:1fr 1fr;gap:7px}.copy-btn{width:100%;margin-top:6px;font-size:13px;padding:9px 10px}.copy-btn.secondary{background:rgba(255,255,255,.10);border:1px solid var(--line);box-shadow:none;color:#fff}.detail-link{display:block;margin-top:7px;text-align:center;color:#8be9ff;font-size:12px;font-weight:900}.audio-tag{font-size:22px;line-height:1.08;font-weight:900;color:#fff;word-break:break-word}.tag-card{background:linear-gradient(180deg,rgba(40,167,255,.10),rgba(139,92,246,.08))}.template-card{grid-column:1/-1}.template-card .prompt-box{max-height:330px;font-size:12.5px}.empty{grid-column:1/-1;border:2px dashed rgba(255,255,255,.14);border-radius:18px;padding:30px;text-align:center;color:var(--muted);font-weight:800;background:rgba(255,255,255,.04)}.load-wrap{display:flex;justify-content:center;margin-top:20px}.load-more{min-width:170px}.load-more[hidden]{display:none}.site-footer{border-top:1px solid var(--line);background:#05060d;color:#fff;padding:18px;display:flex;justify-content:center;gap:14px;flex-wrap:wrap;font-size:14px;font-weight:800}.footer-links{display:flex;gap:9px}.footer-links a{color:#8be9ff}.toast{position:fixed;right:16px;bottom:16px;background:#10162d;color:#fff;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:14px;padding:11px 14px;font-weight:900;transform:translateY(18px);opacity:0;pointer-events:none;transition:.16s ease;z-index:100}.toast.show{transform:translateY(0);opacity:1}
@media(max-width:1100px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:820px){.hero{grid-template-columns:1fr}.hero-stats{display:flex;align-items:center;justify-content:space-between}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.builder-grid{grid-template-columns:1fr}.quick-start{grid-template-columns:1fr}.hero h1{letter-spacing:-1.2px}}
@media(max-width:560px){body{font-size:14px}.topbar{padding:9px 12px}.brand span{font-size:14px}.nav-actions{gap:6px}.nav-link{padding:6px 9px;font-size:12px}.hero{padding:16px 12px 20px}.search-wrap{display:block}.search-wrap button{width:100%;margin-top:7px}.tabs{border-radius:15px}.tab{padding:7px 11px}.filter-row{display:grid;margin-bottom:12px}.filter-row select{width:100%;min-width:0}.grid{grid-template-columns:1fr;gap:11px}main{padding:12px 12px 34px}.site-footer{display:grid;text-align:center}.card-body{padding:12px}.prompt-box{max-height:110px}.hero h1{font-size:34px}.builder-head{display:grid}.action-row{grid-template-columns:1fr}.mode-card b{font-size:18px}}


/* KKL v1.8 - Multi Audio Tags Builder */
.compact-builder {
  padding: 18px !important;
}
.builder-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.builder-head h2 {
  margin: 4px 0 4px;
}
.builder-head p {
  margin: 0;
  opacity: .78;
}
.builder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.multi-tag-panel {
  margin: 14px 0;
  border: 1px solid rgba(125, 92, 255, .28);
  background: rgba(8, 13, 33, .58);
  border-radius: 18px;
  padding: 14px;
}
.multi-tag-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.multi-tag-head div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.multi-tag-head span {
  opacity: .72;
  font-size: .9rem;
}
.audio-tag-chips {
  display: grid;
  gap: 12px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}
.tag-group h3 {
  font-size: .82rem;
  margin: 0 0 8px;
  color: #9ad7ff;
  letter-spacing: .02em;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.audio-chip {
  border: 1px solid rgba(148, 163, 184, .28);
  background: rgba(15, 23, 42, .78);
  color: #f8fafc;
  border-radius: 999px;
  padding: 8px 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: .18s ease;
  font-weight: 700;
}
.audio-chip small {
  opacity: .65;
  font-weight: 500;
}
.audio-chip:hover,
.audio-chip.selected {
  border-color: rgba(74, 222, 255, .85);
  background: linear-gradient(135deg, rgba(37, 99, 235, .85), rgba(124, 58, 237, .85));
  box-shadow: 0 0 0 3px rgba(56, 189, 248, .10);
}
.ghost-btn {
  border: 1px solid rgba(148, 163, 184, .3);
  color: #e2e8f0;
  background: rgba(15, 23, 42, .55);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}
.prompt-output {
  white-space: pre-wrap;
}
.audio-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: white;
  padding: 12px 16px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: .18s ease;
  z-index: 9999;
  font-weight: 800;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 760px) {
  .builder-head,
  .multi-tag-head {
    display: block;
  }
  .builder-grid {
    grid-template-columns: 1fr;
  }
  .builder-head .primary-btn {
    margin-top: 12px;
    width: 100%;
  }
}


/* KKL v1.9 rendering fix */
.kkl-runtime {
  width: min(1320px, calc(100% - 48px));
  margin: 24px auto 28px;
}
.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.mode-card {
  border: 1px solid rgba(148, 163, 184, .18);
  background: rgba(15, 23, 42, .72);
  color: #f8fafc;
  border-radius: 20px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  cursor: pointer;
}
.mode-card.active {
  border-color: rgba(34, 211, 238, .65);
  box-shadow: 0 0 0 1px rgba(34,211,238,.15), 0 16px 48px rgba(59,130,246,.10);
}
.mode-icon { font-size: 1.6rem; }
.mode-card h2 { margin: 0 0 4px; font-size: 1.22rem; }
.mode-card p { margin: 0; opacity: .78; }
.tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px solid rgba(148, 163, 184, .14);
  background: rgba(2, 6, 23, .5);
  border-radius: 18px;
  padding: 8px;
  margin: 14px 0;
}
.tab-btn {
  border: 0;
  background: transparent;
  color: #cbd5e1;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 800;
  cursor: pointer;
}
.tab-btn.active {
  color: white;
  background: linear-gradient(135deg, #38bdf8, #7c3aed);
}
.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 18px;
}
.filter-row select {
  min-width: 260px;
}
.content-area {
  min-height: 220px;
}
.loading-box, .empty-box, .kkl-error-box {
  border: 1px solid rgba(148,163,184,.18);
  background: rgba(15, 23, 42, .62);
  border-radius: 18px;
  padding: 18px;
  color: #e2e8f0;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.prompt-card {
  border: 1px solid rgba(148, 163, 184, .16);
  background: rgba(15, 23, 42, .70);
  border-radius: 18px;
  overflow: hidden;
}
.thumb-wrap {
  aspect-ratio: 16 / 9;
  background: rgba(2,6,23,.6);
}
.thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-body, .compact-card {
  padding: 14px;
}
.card-meta {
  color: #67e8f9;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .04em;
  margin-bottom: 7px;
}
.prompt-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.prompt-card p {
  margin: 0 0 12px;
  color: #cbd5e1;
  line-height: 1.55;
}
.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.small-btn, .icon-btn, .secondary-btn, .primary-btn {
  border: 0;
  border-radius: 999px;
  padding: 9px 12px;
  font-weight: 900;
  cursor: pointer;
}
.small-btn, .secondary-btn {
  background: rgba(30, 41, 59, .92);
  color: #e2e8f0;
  border: 1px solid rgba(148,163,184,.18);
}
.primary-btn {
  background: linear-gradient(135deg, #38bdf8, #7c3aed);
  color: white;
}
.icon-btn {
  background: rgba(30,41,59,.8);
  color: #94a3b8;
  width: 39px;
}
.icon-btn.active {
  color: #fde68a;
}
.load-wrap {
  text-align: center;
  margin: 24px 0 8px;
}
.tts-builder {
  border: 1px solid rgba(34, 211, 238, .22);
  background: rgba(15, 23, 42, .70);
  border-radius: 22px;
  padding: 18px;
  margin: 14px 0;
}
.builder-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.builder-head h2 { margin: 4px 0; }
.builder-head p { margin: 0; opacity: .78; }
.eyebrow {
  color: #67e8f9;
  font-weight: 1000;
  letter-spacing: .08em;
  font-size: .78rem;
}
.builder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
.builder-grid label, .full-width {
  display: grid;
  gap: 7px;
  color: #cbd5e1;
  font-weight: 800;
}
.tts-builder select, .tts-builder textarea, .filter-row select {
  border: 1px solid rgba(148,163,184,.2);
  background: rgba(2,6,23,.58);
  color: #f8fafc;
  border-radius: 14px;
  padding: 12px;
  font: inherit;
}
.multi-tag-panel {
  margin: 14px 0;
  border: 1px solid rgba(125, 92, 255, .28);
  background: rgba(8, 13, 33, .58);
  border-radius: 18px;
  padding: 14px;
}
.multi-tag-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.multi-tag-head div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.multi-tag-head span {
  opacity: .72;
  font-size: .9rem;
}
.audio-tag-chips {
  display: grid;
  gap: 12px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}
.tag-group h3 {
  font-size: .82rem;
  margin: 0 0 8px;
  color: #9ad7ff;
  letter-spacing: .02em;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.audio-chip {
  border: 1px solid rgba(148, 163, 184, .28);
  background: rgba(15, 23, 42, .78);
  color: #f8fafc;
  border-radius: 999px;
  padding: 8px 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: .18s ease;
  font-weight: 800;
}
.audio-chip small {
  opacity: .65;
  font-weight: 500;
}
.audio-chip:hover,
.audio-chip.selected {
  border-color: rgba(74, 222, 255, .85);
  background: linear-gradient(135deg, rgba(37, 99, 235, .85), rgba(124, 58, 237, .85));
}
.ghost-btn {
  border: 1px solid rgba(148, 163, 184, .3);
  color: #e2e8f0;
  background: rgba(15, 23, 42, .55);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}
.prompt-output {
  white-space: pre-wrap;
  margin-top: 12px;
  border: 1px solid rgba(34,211,238,.18);
  background: rgba(2,6,23,.6);
  border-radius: 16px;
  padding: 14px;
  color: #e2e8f0;
  line-height: 1.6;
}
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: white;
  padding: 12px 16px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: .18s ease;
  z-index: 9999;
  font-weight: 900;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 760px) {
  .kkl-runtime { width: min(100% - 24px, 1320px); }
  .mode-grid, .builder-grid { grid-template-columns: 1fr; }
  .builder-head, .multi-tag-head, .filter-row { display: block; }
  .builder-head .primary-btn, .filter-row select, .filter-row button { width: 100%; margin-top: 10px; }
}


/* KKL v2.0 clean single UI */
.clean-header {
  padding-bottom: 18px;
}
.clean-hero {
  padding-bottom: 10px;
}
.kkl-runtime {
  margin-top: 20px !important;
}
.site-header + main {
  border-top: 1px solid rgba(148, 163, 184, .14);
}
#kkl-app-runtime .mode-grid {
  margin-top: 0;
}
@media (min-width: 980px) {
  .clean-hero {
    min-height: auto;
    padding-top: 34px;
  }
}


/* KKL v2.1 TTS template loading fix */
.audio-tag-chips:empty::before {
  content: "กำลังโหลดแท็กเสียง...";
  color: #cbd5e1;
  opacity: .75;
}
.multi-tag-panel {
  min-height: 92px;
}
#kkl-selected-count {
  color: #cbd5e1;
}
#kkl-tts-output:empty::before {
  content: "ระบบจะประกอบ Prompt เสียงให้อัตโนมัติ";
  opacity: .7;
}
.tts-builder select option {
  background: #0f172a;
  color: #f8fafc;
}


/* KKL v2.2 simplified sentence-level TTS Builder */
.simple-tts {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}
.simple-tts .builder-head {
  align-items: center;
  margin-bottom: 12px;
}
.simple-tts .builder-head h2 {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}
.simple-tts .builder-head p {
  font-size: .95rem;
  color: #cbd5e1;
}
.slim-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.sentence-builder {
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 18px;
  background: rgba(2, 6, 23, .34);
  padding: 12px;
}
.sentence-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.sentence-list {
  display: grid;
  gap: 10px;
}
.sentence-row {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 38px;
  gap: 8px;
  align-items: stretch;
}
.sentence-row select,
.sentence-row textarea {
  border: 1px solid rgba(148, 163, 184, .22);
  background: rgba(15, 23, 42, .72);
  color: #f8fafc;
  border-radius: 14px;
  padding: 10px 12px;
  font: inherit;
}
.sentence-row textarea {
  resize: vertical;
  min-height: 52px;
}
.row-remove {
  border: 1px solid rgba(148, 163, 184, .18);
  background: rgba(30, 41, 59, .8);
  color: #cbd5e1;
  border-radius: 14px;
  font-size: 1.2rem;
  cursor: pointer;
}
.row-remove:hover {
  background: rgba(239, 68, 68, .18);
  color: #fecaca;
}
.simple-tts .prompt-output {
  margin-top: 12px;
  font-size: .98rem;
}
.compact-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.compact-card {
  min-height: auto;
}
.tts-builder .multi-tag-panel,
.multi-tag-panel {
  display: none !important;
}
@media (max-width: 760px) {
  .sentence-row {
    grid-template-columns: 1fr;
  }
  .row-remove {
    height: 38px;
  }
  .slim-grid {
    grid-template-columns: 1fr;
  }
}


/* KKL v2.3 clearer dynamic stat label */
.hero-stats span,
#totalLabel {
  display: block;
  font-weight: 900;
  letter-spacing: .02em;
  color: #e2e8f0;
}
.hero-stats strong,
#totalCount {
  line-height: 1;
}


/* KKL v2.5 Prompt Wizard + Ready Prompt Personalizer */
.wizard-box,
.personalizer-box {
  max-width: 1120px;
  margin: 0 auto 18px;
  border: 1px solid rgba(34, 211, 238, .22);
  background: rgba(15, 23, 42, .70);
  border-radius: 22px;
  padding: 18px;
}
.wizard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}
.wizard-grid label,
.wizard-text,
.personalizer-box {
  color: #cbd5e1;
  font-weight: 800;
}
.wizard-grid label,
.wizard-text {
  display: grid;
  gap: 7px;
}
.wizard-grid select,
#wizardText,
#personalizeText {
  border: 1px solid rgba(148,163,184,.22);
  background: rgba(2,6,23,.58);
  color: #f8fafc;
  border-radius: 14px;
  padding: 12px;
  font: inherit;
}
#wizardText,
#personalizeText {
  width: 100%;
  resize: vertical;
}
.check-line {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
  padding: 12px;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 14px;
  background: rgba(2,6,23,.35);
}
.check-line input {
  width: 18px;
  height: 18px;
}
.wizard-output {
  margin-top: 12px;
}
.wizard-hint {
  border: 1px dashed rgba(103, 232, 249, .35);
  color: #cbd5e1;
  background: rgba(2,6,23,.36);
  border-radius: 18px;
  padding: 18px;
  text-align: center;
}
.personalizer-box .builder-head.mini {
  margin-bottom: 10px;
}
.personalizer-box h2 {
  margin: 0 0 4px;
  font-size: 1.35rem;
}
.personalizer-box p {
  margin: 0;
  color: #cbd5e1;
}
.custom-badge {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(34, 211, 238, .12);
  color: #67e8f9;
  border: 1px solid rgba(34, 211, 238, .28);
  font-weight: 900;
  font-size: .78rem;
}
@media (max-width: 980px) {
  .wizard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .wizard-grid { grid-template-columns: 1fr; }
}


/* KKL v2.6 Audio Wizard sentence-level tag restore */
.simple-tts .sentence-builder {
  display: block !important;
}
.simple-tts .sentence-row {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 38px;
  gap: 8px;
  align-items: stretch;
}
.simple-tts .sentence-row select,
.simple-tts .sentence-row textarea {
  border: 1px solid rgba(148, 163, 184, .22);
  background: rgba(15, 23, 42, .72);
  color: #f8fafc;
  border-radius: 14px;
  padding: 10px 12px;
  font: inherit;
}
.simple-tts .sentence-row textarea {
  resize: vertical;
  min-height: 52px;
}
.simple-tts .row-remove {
  border: 1px solid rgba(148, 163, 184, .18);
  background: rgba(30, 41, 59, .8);
  color: #cbd5e1;
  border-radius: 14px;
  font-size: 1.2rem;
  cursor: pointer;
}
@media (max-width: 760px) {
  .simple-tts .sentence-row {
    grid-template-columns: 1fr;
  }
}


/* v2.7 homepage image styles under wizard + SEO links */
.section-intro{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;margin:0 0 18px}
.section-intro h3{margin:0;font-size:clamp(1.2rem,2vw,1.55rem);color:#fff}
.section-intro p{margin:4px 0 0;color:#aeb7d9}
.card-title-link{color:inherit;text-decoration:none}
.card-title-link:hover{color:#7dd3fc}
.link-btn{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}

.seo-entry-links{max-width:1180px;margin:18px auto 0;padding:0 16px 24px}.seo-entry-links .container{border:1px solid rgba(255,255,255,.10);background:rgba(10,14,28,.52);border-radius:24px;padding:22px}.seo-entry-links h2{margin:0 0 8px;font-size:1.25rem}.seo-entry-links p{margin:0 0 14px;color:#aeb7d9}.seo-link-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.seo-link-grid a{border:1px solid rgba(255,255,255,.10);padding:14px 16px;border-radius:16px;color:#e2e8f0;text-decoration:none;background:rgba(255,255,255,.03);font-weight:800}.seo-link-grid a:hover{border-color:rgba(125,211,252,.35);color:#7dd3fc}


/* v3.0 Image Prompt Wizard enhancements */
.wizard-top-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin:10px 0 14px;
}
.wizard-count-badge{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(96,165,250,.35);
  background:rgba(59,130,246,.12);
  color:#dbeafe;
  font-weight:800;
}
.wizard-count-sub{
  color:#aeb7d9;
  font-size:.95rem;
}
.wizard-grid input[type="text"]{
  border:1px solid rgba(148,163,184,.22);
  background:rgba(2,6,23,.58);
  color:#f8fafc;
  border-radius:14px;
  padding:12px;
  font:inherit;
}
.wizard-help{
  display:block;
  color:#94a3b8;
  font-size:.82rem;
  line-height:1.45;
  margin-top:6px;
}
.size-recommend-box{
  margin-top:14px;
  border:1px solid rgba(167,139,250,.28);
  background:rgba(76,29,149,.18);
  color:#e9d5ff;
  border-radius:16px;
  padding:12px 14px;
  line-height:1.55;
}


/* v3.1 style group preview + grouped image style cards */
.style-group-preview{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:12px;
  margin:14px 0;
}
.style-group-card{
  border:1px solid rgba(148,163,184,.18);
  background:rgba(2,6,23,.42);
  border-radius:18px;
  padding:10px;
  display:grid;
  grid-template-columns:58px 1fr;
  gap:10px;
  color:#e2e8f0;
  text-align:left;
  cursor:pointer;
  transition:.18s ease;
}
.style-group-card:hover,
.style-group-card.active{
  border-color:rgba(96,165,250,.55);
  background:rgba(59,130,246,.14);
  transform:translateY(-1px);
}
.style-group-thumb{
  width:58px;
  height:58px;
  border-radius:14px;
  overflow:hidden;
  background:rgba(15,23,42,.8);
}
.style-group-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.style-group-card strong{
  display:block;
  font-size:.95rem;
}
.style-group-card span{
  display:inline-flex;
  margin:3px 0;
  color:#7dd3fc;
  font-size:.82rem;
  font-weight:800;
}
.style-group-card small{
  display:block;
  color:#94a3b8;
  line-height:1.35;
  font-size:.76rem;
}
.style-card-group{
  margin:0 0 28px;
}
.style-card-group-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin:0 0 12px;
  padding:0 2px;
}
.style-card-group-head h3{
  margin:0;
  color:#fff;
  font-size:1.18rem;
}
.style-card-group-head p{
  margin:4px 0 0;
  color:#94a3b8;
  font-weight:800;
}


/* v3.2 compact style group selector without preview images */
.style-group-filter-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin:14px 0 8px;
}
.style-group-filter-head strong{
  color:#f8fafc;
  font-size:1rem;
}
.style-group-filter-head span{
  color:#94a3b8;
  font-size:.9rem;
}
.style-group-preview.no-image{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 14px;
}
.style-group-preview.no-image .style-group-card,
.style-group-card{
  grid-template-columns:1fr;
}
.style-group-preview.no-image .style-group-thumb{
  display:none !important;
}
.style-group-pill{
  border:1px solid rgba(148,163,184,.22);
  background:rgba(15,23,42,.72);
  color:#e2e8f0;
  border-radius:999px;
  padding:8px 12px;
  font-weight:800;
  cursor:pointer;
  transition:.18s ease;
}
.style-group-pill span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:24px;
  margin-left:6px;
  padding:2px 7px;
  border-radius:999px;
  background:rgba(96,165,250,.14);
  color:#93c5fd;
  font-size:.8rem;
}
.style-group-pill:hover,
.style-group-pill.active{
  border-color:rgba(96,165,250,.60);
  background:linear-gradient(135deg,rgba(37,99,235,.55),rgba(124,58,237,.55));
  color:#fff;
}
.wizard-count-sub{
  line-height:1.5;
}


/* v3.3 simplified image wizard: removed redundant style search field */
.wizard-grid{
  align-items:start;
}


/* v3.4 show all grouped image styles without load-more */
.style-card-group{
  scroll-margin-top: 88px;
}


/* v3.5 Step Wizard + Better Contrast */
.wizard-box-v35{
  background:
    radial-gradient(circle at top left, rgba(56,189,248,.10), transparent 32%),
    linear-gradient(180deg, rgba(15,23,42,.92), rgba(7,10,24,.88));
  border:1px solid rgba(103,232,249,.28);
  box-shadow:0 24px 80px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.04);
}
.wizard-hero-head{
  border-bottom:1px solid rgba(148,163,184,.16);
  padding-bottom:16px;
}
.wizard-hero-head h2{
  font-size:clamp(1.6rem,2.4vw,2.15rem);
  letter-spacing:.01em;
}
.copy-master-btn{
  font-size:1rem;
  padding:13px 20px;
  box-shadow:0 14px 35px rgba(59,130,246,.28), 0 0 0 1px rgba(255,255,255,.08) inset;
}
.copy-master-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 18px 44px rgba(96,165,250,.34), 0 0 0 1px rgba(255,255,255,.12) inset;
}
.wizard-step-layout{
  display:grid;
  gap:16px;
  margin-top:16px;
}
.wizard-step-card,
.wizard-result-panel{
  border:1px solid rgba(148,163,184,.16);
  background:linear-gradient(180deg, rgba(15,23,42,.78), rgba(2,6,23,.56));
  border-radius:20px;
  padding:16px;
}
.wizard-step-card:hover{
  border-color:rgba(125,211,252,.28);
}
.step-title{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 14px;
}
.step-title span{
  width:34px;
  height:34px;
  border-radius:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#06121f;
  background:linear-gradient(135deg,#67e8f9,#a78bfa);
  font-weight:1000;
  box-shadow:0 10px 28px rgba(103,232,249,.18);
}
.step-title strong{
  color:#f8fafc;
  font-size:1.05rem;
}
.step-grid{
  display:grid;
  gap:12px;
}
.step-grid.two{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.step-grid label,
.wizard-step-card label{
  color:#dbeafe;
}
.wizard-step-card select,
.wizard-step-card textarea,
.wizard-step-card input[type="text"]{
  background:rgba(1,7,20,.78);
  border-color:rgba(148,163,184,.24);
}
.wizard-step-card select:focus,
.wizard-step-card textarea:focus{
  outline:none;
  border-color:rgba(103,232,249,.72);
  box-shadow:0 0 0 3px rgba(103,232,249,.10);
}
.step-check{
  min-height:56px;
  align-self:start;
}
.wizard-result-panel{
  margin-top:16px;
  border-color:rgba(167,139,250,.30);
  background:
    radial-gradient(circle at top right, rgba(167,139,250,.14), transparent 34%),
    rgba(2,6,23,.76);
}
.result-title{
  margin-bottom:10px;
}
.wizard-output{
  border-color:rgba(103,232,249,.22);
  background:rgba(0,0,0,.32);
}
.wizard-count-badge{
  background:linear-gradient(135deg,rgba(34,211,238,.18),rgba(124,58,237,.20));
  border-color:rgba(103,232,249,.40);
}
.style-group-filter-head{
  border-top:1px dashed rgba(148,163,184,.14);
  padding-top:12px;
}
.style-group-pill{
  background:rgba(2,6,23,.72);
}
.section-intro{
  border-top:1px solid rgba(148,163,184,.12);
  padding-top:10px;
}
.style-card-group-head{
  border-left:4px solid rgba(103,232,249,.75);
  padding-left:12px;
}
.prompt-card{
  background:linear-gradient(180deg,rgba(15,23,42,.92),rgba(11,17,32,.92));
  border-color:rgba(148,163,184,.16);
}
.prompt-card:hover{
  border-color:rgba(103,232,249,.30);
  box-shadow:0 16px 44px rgba(0,0,0,.18);
}
.card-meta{
  color:#67e8f9 !important;
}
.small-btn{
  background:rgba(30,41,59,.95);
}
.small-btn:hover{
  background:rgba(51,65,85,.95);
}
@media (max-width: 840px){
  .step-grid.two{
    grid-template-columns:1fr;
  }
  .wizard-hero-head{
    display:block;
  }
  .copy-master-btn{
    width:100%;
    margin-top:14px;
  }
}


/* v3.6 Confirmed Step Wizard + stronger contrast */
.wizard-box-v36{background:radial-gradient(circle at top left,rgba(56,189,248,.12),transparent 34%),linear-gradient(180deg,rgba(15,23,42,.96),rgba(7,10,24,.90));border:1px solid rgba(103,232,249,.34);box-shadow:0 24px 80px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.05)}
.wizard-hero-head{border-bottom:1px solid rgba(148,163,184,.18);padding-bottom:16px}.wizard-hero-head h2{font-size:clamp(1.6rem,2.4vw,2.15rem);letter-spacing:.01em}.copy-master-btn{font-size:1rem;padding:13px 20px;box-shadow:0 14px 35px rgba(59,130,246,.30),0 0 0 1px rgba(255,255,255,.08) inset}.copy-master-btn:hover{transform:translateY(-1px);box-shadow:0 18px 44px rgba(96,165,250,.36),0 0 0 1px rgba(255,255,255,.12) inset}.wizard-step-layout{display:grid;gap:16px;margin-top:16px}.wizard-step-card,.wizard-result-panel{border:1px solid rgba(148,163,184,.17);background:linear-gradient(180deg,rgba(15,23,42,.82),rgba(2,6,23,.60));border-radius:20px;padding:16px}.wizard-step-card:hover{border-color:rgba(125,211,252,.30)}.step-title{display:flex;align-items:center;gap:10px;margin:0 0 14px}.step-title span{width:34px;height:34px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;color:#06121f;background:linear-gradient(135deg,#67e8f9,#a78bfa);font-weight:1000;box-shadow:0 10px 28px rgba(103,232,249,.20)}.step-title strong{color:#f8fafc;font-size:1.05rem}.step-grid{display:grid;gap:12px}.step-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.step-grid label,.wizard-step-card label{color:#dbeafe}.wizard-step-card select,.wizard-step-card textarea,.wizard-step-card input[type="text"]{background:rgba(1,7,20,.80);border-color:rgba(148,163,184,.25)}.wizard-step-card select:focus,.wizard-step-card textarea:focus{outline:none;border-color:rgba(103,232,249,.72);box-shadow:0 0 0 3px rgba(103,232,249,.10)}.step-check{min-height:56px;align-self:start}.wizard-result-panel{margin-top:16px;border-color:rgba(167,139,250,.32);background:radial-gradient(circle at top right,rgba(167,139,250,.15),transparent 34%),rgba(2,6,23,.78)}.result-title{margin-bottom:10px}.wizard-output{border-color:rgba(103,232,249,.24);background:rgba(0,0,0,.34)}.wizard-count-badge{background:linear-gradient(135deg,rgba(34,211,238,.18),rgba(124,58,237,.22));border-color:rgba(103,232,249,.42)}.style-group-filter-head{border-top:1px dashed rgba(148,163,184,.15);padding-top:12px}.style-card-group-head{border-left:4px solid rgba(103,232,249,.78);padding-left:12px}.prompt-card{background:linear-gradient(180deg,rgba(15,23,42,.94),rgba(11,17,32,.94));border-color:rgba(148,163,184,.16)}.prompt-card:hover{border-color:rgba(103,232,249,.32);box-shadow:0 16px 44px rgba(0,0,0,.20)}.card-meta{color:#67e8f9!important}@media(max-width:840px){.step-grid.two{grid-template-columns:1fr}.wizard-hero-head{display:block}.copy-master-btn{width:100%;margin-top:14px}}


/* v3.7 dropdown readability fix */
select,
.wizard-step-card select,
.wizard-grid select,
.builder-grid select,
.filter-row select,
.tts-builder select,
.personalizer-box select {
  color: #f8fafc !important;
  background-color: #07111f !important;
  border: 1px solid rgba(148, 163, 184, .34) !important;
  color-scheme: dark;
}

select option,
.wizard-step-card select option,
.wizard-grid select option,
.builder-grid select option,
.filter-row select option,
.tts-builder select option,
.personalizer-box select option {
  background-color: #0f172a !important;
  color: #f8fafc !important;
}

select option:checked,
select option:hover,
select option:focus {
  background-color: #2563eb !important;
  color: #ffffff !important;
}

select:focus,
.wizard-step-card select:focus,
.wizard-grid select:focus,
.builder-grid select:focus,
.filter-row select:focus,
.tts-builder select:focus {
  outline: none !important;
  border-color: rgba(103,232,249,.78) !important;
  box-shadow: 0 0 0 3px rgba(103,232,249,.14) !important;
}

select:disabled {
  color: #94a3b8 !important;
  background-color: #111827 !important;
}

/* Hide old SEO action button if any cached markup still appears */
.card-actions .link-btn[href*="prompt.php"],
a.small-btn.link-btn[href*="prompt.php"] {
  display: none !important;
}


/* v3.8 Step 5 copy button */
.result-title{
  justify-content: space-between;
  flex-wrap: wrap;
}
.result-title strong{
  margin-right: auto;
}
.step-copy-btn{
  margin-left: auto;
  padding: 10px 16px;
  font-size: .95rem;
  box-shadow: 0 12px 30px rgba(59,130,246,.24);
}
@media (max-width: 760px){
  .step-copy-btn{
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
  }
}


/* v3.9 remove redundant top actions */
.copy-master-btn {
  display: none !important;
}
.filter-row{
  justify-content: flex-start;
}
.filter-row select{
  max-width: 360px;
}


/* v4.0 UI polish */
.clean-hero{
  padding-top: 18px !important;
  padding-bottom: 6px !important;
  gap: 24px;
}
.clean-hero .hero-copy h1{
  font-size: clamp(2.35rem, 4.8vw, 4.2rem);
  line-height: .96;
  margin-bottom: 10px;
}
.clean-hero .hero-copy .hero-sub{
  margin-top: 8px;
  max-width: 720px;
}
.search-wrap{
  margin-top: 12px;
  max-width: 760px;
}
.search-wrap input{
  min-height: 56px;
}
.hero-stats{
  align-self: flex-start;
}
.hero-stat-box{
  min-width: 196px;
  display: grid;
  gap: 2px;
}
.hero-stat-box small{
  color: #cbd5e1;
  opacity: .78;
  font-weight: 700;
}

.mode-card{
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.mode-card:hover{
  transform: translateY(-1px);
}
.mode-card.active{
  border-color: rgba(34, 211, 238, .85);
  background:
    radial-gradient(circle at top right, rgba(56,189,248,.14), transparent 28%),
    linear-gradient(180deg, rgba(12,24,46,.96), rgba(10,15,31,.94));
  box-shadow: 0 0 0 1px rgba(34,211,238,.22), 0 18px 44px rgba(59,130,246,.16);
}
.mode-card.active h2{
  color: #ffffff;
}
.mode-card.active p{
  opacity: .94;
}
.mode-card .mode-icon{
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(148,163,184,.12);
}

.wizard-box-v36,
.simple-tts{
  box-shadow: 0 22px 70px rgba(0,0,0,.18);
}
#wizardStyleStep{
  scroll-margin-top: 24px;
}
#imageStylesSection{
  scroll-margin-top: 24px;
}
.anchor-jump-btn,
.jump-back-btn{
  margin-left: auto;
  white-space: nowrap;
}
.style-section-intro{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.style-section-intro h3{
  margin:0 0 4px;
  font-size:2rem;
}
.style-section-intro p{
  margin:0;
  color:#cbd5e1;
}
.style-card-group{
  margin-top: 10px;
}
.style-card-group-head{
  margin-bottom: 12px;
}
.prompt-card{
  box-shadow: 0 10px 28px rgba(0,0,0,.14);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.prompt-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0,0,0,.18);
}
.thumb-wrap{
  position: relative;
}
.preview-badge{
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 900;
  color: #f8fafc;
  background: rgba(2,6,23,.70);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
}
.image-card .card-actions .small-btn{
  min-width: max-content;
}

.simple-tts{
  max-width: 1080px;
}
.simple-tts .builder-head{
  margin-bottom: 10px;
}
.simple-tts .builder-head p{
  max-width: 720px;
}
.simple-tts .prompt-output{
  margin-top: 10px;
}
.content-area.content-audio-compact{
  min-height: 0;
}
.content-audio-compact .wizard-hint{
  padding: 14px 16px;
  font-size: .95rem;
}
.seo-entry-links{
  margin-top: 12px;
}
.seo-entry-links .container{
  padding: 20px;
}

@media (max-width: 860px){
  .anchor-jump-btn,
  .jump-back-btn{
    width: 100%;
    margin-left: 0;
  }
  .style-section-intro h3{
    font-size:1.6rem;
  }
}


/* v4.1 mobile polish + category tone + copy state */
.prompt-card.image-card{
  position: relative;
}
.prompt-card.image-card::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:3px;
  opacity:.95;
  background:#67e8f9;
}
.image-card.cat-news::before{background:#38bdf8;}
.image-card.cat-tech::before{background:#a78bfa;}
.image-card.cat-photo::before{background:#60a5fa;}
.image-card.cat-art::before{background:#f472b6;}
.image-card.cat-design::before{background:#22d3ee;}
.image-card.cat-place::before{background:#f59e0b;}
.image-card.cat-nature::before{background:#34d399;}
.image-card.cat-health::before{background:#2dd4bf;}
.image-card.cat-edu::before{background:#818cf8;}
.image-card.cat-commercial::before{background:#fb923c;}
.image-card.cat-event::before{background:#facc15;}
.image-card.cat-experiment::before{background:#c084fc;}

.image-card.cat-news .card-meta{color:#7dd3fc !important;}
.image-card.cat-tech .card-meta{color:#c4b5fd !important;}
.image-card.cat-photo .card-meta{color:#93c5fd !important;}
.image-card.cat-art .card-meta{color:#f9a8d4 !important;}
.image-card.cat-design .card-meta{color:#67e8f9 !important;}
.image-card.cat-place .card-meta{color:#fbbf24 !important;}
.image-card.cat-nature .card-meta{color:#86efac !important;}
.image-card.cat-health .card-meta{color:#5eead4 !important;}
.image-card.cat-edu .card-meta{color:#a5b4fc !important;}
.image-card.cat-commercial .card-meta{color:#fdba74 !important;}
.image-card.cat-event .card-meta{color:#fde68a !important;}
.image-card.cat-experiment .card-meta{color:#d8b4fe !important;}

.small-btn.copied,
.primary-btn.copied,
.secondary-btn.copied{
  background: linear-gradient(135deg,#10b981,#22d3ee) !important;
  color:#052e2b !important;
  border-color: rgba(16,185,129,.55) !important;
}

@media (max-width: 900px){
  .kkl-runtime{
    width: min(100% - 24px, 1320px);
    margin-top: 14px !important;
  }
  .topbar{
    padding-inline: 14px;
  }
  .brand span{
    font-size: .92rem;
  }
  .nav-actions{
    gap: 6px;
  }
  .nav-link{
    padding: 7px 10px;
    font-size: .82rem;
  }
  .clean-hero{
    padding-inline: 16px !important;
  }
  .clean-hero .hero-copy h1{
    font-size: clamp(2rem, 10vw, 3.2rem);
  }
  .search-wrap{
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
  }
  .hero-stats{
    width: 100%;
  }
  .hero-stat-box{
    width: 100%;
    min-width: 0;
  }
  .mode-grid{
    grid-template-columns: 1fr;
  }
  .mode-card{
    padding: 14px;
  }
  .mode-card .mode-icon{
    width: 46px;
    height: 46px;
  }
  .tabs-bar{
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .tab-btn{
    white-space: nowrap;
    flex: 0 0 auto;
  }
  .wizard-box,
  .wizard-box-v36,
  .simple-tts{
    padding: 14px;
    border-radius: 18px;
  }
  .builder-head{
    gap: 10px;
  }
  .wizard-hero-head h2,
  .simple-tts .builder-head h2{
    font-size: 1.35rem;
  }
  .wizard-count-sub{
    font-size: .88rem;
  }
  .wizard-step-card,
  .wizard-result-panel{
    padding: 13px;
    border-radius: 16px;
  }
  .step-title{
    align-items: flex-start;
  }
  .step-title span{
    width: 30px;
    height: 30px;
    border-radius: 10px;
    flex: 0 0 auto;
  }
  .style-group-preview.no-image{
    max-height: 170px;
    overflow: auto;
    padding-right: 2px;
  }
  .style-group-pill{
    padding: 7px 10px;
    font-size: .86rem;
  }
  .cards-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .card-body,
  .compact-card{
    padding: 11px;
  }
  .prompt-card h3{
    font-size: .98rem;
  }
  .prompt-card p{
    font-size: .86rem;
  }
  .small-btn{
    padding: 8px 10px;
    font-size: .82rem;
  }
  .icon-btn{
    width: 35px;
    padding-inline: 0;
  }
  .sentence-row,
  .simple-tts .sentence-row{
    grid-template-columns: 1fr;
  }
  .row-remove{
    min-height: 36px;
  }
  .seo-link-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px){
  .clean-hero .hero-copy h1{
    font-size: clamp(1.8rem, 12vw, 2.65rem);
  }
  .search-wrap{
    grid-template-columns: 1fr;
  }
  .search-wrap button{
    width: 100%;
  }
  .cards-grid{
    grid-template-columns: 1fr;
  }
  .thumb-wrap{
    aspect-ratio: 16 / 8.7;
  }
  .style-section-intro{
    align-items: stretch;
  }
  .jump-back-btn{
    width: 100%;
  }
  .section-intro h3,
  .style-section-intro h3{
    font-size: 1.45rem;
  }
  .step-copy-btn{
    width: 100%;
  }
  .footer-links{
    flex-wrap: wrap;
    justify-content: center;
  }
}


/* v4.2 Press Release Page */
.press-release-card{max-width:1180px;margin:18px auto 0;padding:0 16px}
.press-release-card-inner{display:flex;align-items:center;justify-content:space-between;gap:18px;border:1px solid rgba(103,232,249,.24);background:radial-gradient(circle at top right,rgba(56,189,248,.12),transparent 32%),linear-gradient(180deg,rgba(15,23,42,.84),rgba(2,6,23,.62));border-radius:24px;padding:22px}
.press-mini-label{display:inline-flex;padding:5px 10px;border-radius:999px;color:#67e8f9;background:rgba(34,211,238,.10);border:1px solid rgba(34,211,238,.22);font-size:.82rem;font-weight:900;margin-bottom:8px}
.press-release-card h2{margin:0 0 6px;color:#fff;font-size:clamp(1.25rem,2.2vw,1.75rem)}
.press-release-card p{margin:0;color:#cbd5e1;line-height:1.55}
.press-header{border-bottom:1px solid rgba(148,163,184,.14)}
.press-main{width:min(980px,calc(100% - 32px));margin:28px auto 46px}
.press-article{border:1px solid rgba(148,163,184,.16);background:radial-gradient(circle at top left,rgba(56,189,248,.10),transparent 30%),linear-gradient(180deg,rgba(15,23,42,.88),rgba(5,8,20,.90));border-radius:28px;padding:clamp(22px,4vw,44px);box-shadow:0 24px 80px rgba(0,0,0,.22)}
.press-kicker{display:inline-flex;padding:6px 12px;border-radius:999px;border:1px solid rgba(103,232,249,.30);background:rgba(34,211,238,.10);color:#67e8f9;font-weight:900;margin-bottom:14px}
.press-article h1{margin:0 0 16px;color:#fff;font-size:clamp(2rem,4.3vw,3.7rem);line-height:1.08;letter-spacing:-.02em}
.press-lead{font-size:clamp(1.05rem,1.8vw,1.25rem);line-height:1.8;color:#e2e8f0;margin:0 0 18px}
.press-cta-row{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0 28px}
.press-cta{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
.press-section{margin:30px 0;padding-top:22px;border-top:1px solid rgba(148,163,184,.14)}
.press-section h2{margin:0 0 12px;color:#fff;font-size:clamp(1.35rem,2.6vw,2rem)}
.press-section p,.press-list{color:#cbd5e1;line-height:1.85;font-size:1.02rem}
.press-feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.press-feature-card{border:1px solid rgba(148,163,184,.16);background:rgba(2,6,23,.42);border-radius:20px;padding:18px}
.press-feature-card span{display:inline-flex;width:38px;height:38px;align-items:center;justify-content:center;border-radius:14px;color:#07111f;background:linear-gradient(135deg,#67e8f9,#a78bfa);font-weight:1000;margin-bottom:10px}
.press-feature-card h3{margin:0 0 8px;color:#fff;font-size:1.15rem}
.press-feature-card p{margin:0;font-size:.96rem;line-height:1.7}
.press-list{padding-left:1.4rem}
.press-list li{margin:8px 0}
.press-highlight{border:1px solid rgba(167,139,250,.25);background:rgba(76,29,149,.14);border-radius:22px;padding:22px}
.press-final-cta{margin-top:32px;border:1px solid rgba(103,232,249,.28);background:radial-gradient(circle at right,rgba(34,211,238,.16),transparent 35%),rgba(2,6,23,.60);border-radius:24px;padding:24px;text-align:center}
.press-final-cta h2{margin:0 0 8px;color:#fff}
.press-final-cta p{color:#cbd5e1;margin:0 0 16px}
@media (max-width:760px){.press-release-card-inner{display:grid;align-items:start}.press-release-card-inner .primary-btn{width:100%}.press-feature-grid{grid-template-columns:1fr}.press-article{border-radius:22px}}


/* v4.3 dynamic count note */
.press-data-note{
  margin-top: 14px !important;
  padding: 12px 14px;
  border: 1px solid rgba(103,232,249,.22);
  background: rgba(34,211,238,.08);
  border-radius: 16px;
  color: #dbeafe !important;
  font-weight: 700;
}


/* v4.5 remove preview badge from style sample images */
.preview-badge{
  display:none !important;
}


/* v4.6 thumbnail full preview popup */
.thumb-preview-btn{
  appearance:none;
  border:0;
  padding:0;
  margin:0;
  display:block;
  width:100%;
  cursor:zoom-in;
  text-align:inherit;
  overflow:hidden;
  background:transparent;
}
.thumb-preview-btn img{
  transition: transform .22s ease, filter .22s ease;
}
.thumb-preview-btn:hover img{
  transform:scale(1.035);
  filter:saturate(1.06) contrast(1.03);
}
.thumb-preview-btn:focus-visible{
  outline:3px solid rgba(103,232,249,.75);
  outline-offset:3px;
  border-radius:18px;
}
.image-preview-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(2,6,23,.82);
  backdrop-filter:blur(12px);
}
.image-preview-dialog{
  width:min(1120px, 96vw);
  max-height:92vh;
  border:1px solid rgba(103,232,249,.30);
  border-radius:24px;
  background:linear-gradient(180deg,rgba(15,23,42,.96),rgba(2,6,23,.96));
  box-shadow:0 28px 90px rgba(0,0,0,.48);
  overflow:hidden;
}
.image-preview-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 16px;
  border-bottom:1px solid rgba(148,163,184,.16);
}
.image-preview-head strong{
  color:#f8fafc;
  font-size:1.05rem;
}
.image-preview-close{
  width:40px;
  height:40px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.24);
  background:rgba(15,23,42,.85);
  color:#fff;
  font-size:1.6rem;
  line-height:1;
  cursor:pointer;
}
.image-preview-close:hover{
  background:rgba(30,41,59,.95);
}
.image-preview-body{
  padding:14px;
  display:flex;
  justify-content:center;
  align-items:center;
}
.image-preview-body img{
  display:block;
  max-width:100%;
  max-height:76vh;
  object-fit:contain;
  border-radius:16px;
  background:rgba(15,23,42,.75);
}
body.modal-open{
  overflow:hidden;
}
@media (max-width:760px){
  .image-preview-modal{padding:12px;}
  .image-preview-dialog{border-radius:18px;}
  .image-preview-head{padding:12px;}
  .image-preview-body{padding:10px;}
  .image-preview-body img{max-height:74vh;border-radius:12px;}
}


/* v4.7 bilingual */
.lang-switcher{display:inline-flex;align-items:center;gap:6px;padding:4px;border:1px solid rgba(255,255,255,.12);border-radius:999px;background:rgba(255,255,255,.05)}
.lang-btn{display:inline-flex;align-items:center;justify-content:center;min-width:42px;padding:7px 12px;border-radius:999px;font-weight:800;font-size:12px;line-height:1;color:#dbeafe}
.lang-btn:hover{background:rgba(255,255,255,.08)}
.lang-btn.active{background:linear-gradient(135deg,var(--blue),var(--purple));color:#fff;box-shadow:0 10px 26px rgba(40,167,255,.18)}
.press-lang-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap}


/* v4.9 language switcher readability fix */
.lang-switcher{
  display:inline-flex !important;
  align-items:center !important;
  gap:6px !important;
  padding:5px !important;
  border-radius:999px !important;
  border:1px solid rgba(255,255,255,.22) !important;
  background:rgba(2,6,23,.42) !important;
  box-shadow:0 10px 28px rgba(0,0,0,.18) !important;
}
.lang-btn,
button.lang-btn{
  appearance:none !important;
  border:1px solid rgba(255,255,255,.24) !important;
  min-width:48px !important;
  min-height:38px !important;
  padding:8px 14px !important;
  border-radius:999px !important;
  font-size:15px !important;
  font-weight:1000 !important;
  line-height:1 !important;
  letter-spacing:.02em !important;
  color:#0f172a !important;
  background:#f8fafc !important;
  text-decoration:none !important;
  opacity:1 !important;
  cursor:pointer !important;
  text-shadow:none !important;
}
.lang-btn:hover,
button.lang-btn:hover{
  color:#020617 !important;
  background:#ffffff !important;
  transform:translateY(-1px);
}
.lang-btn.active,
button.lang-btn.active{
  color:#ffffff !important;
  background:linear-gradient(135deg,#0284c7,#7c3aed) !important;
  border-color:rgba(255,255,255,.55) !important;
  box-shadow:0 0 0 2px rgba(255,255,255,.25), 0 12px 30px rgba(40,167,255,.30) !important;
}
.lang-btn:focus-visible,
button.lang-btn:focus-visible{
  outline:3px solid #facc15 !important;
  outline-offset:3px !important;
}

@media (max-width:760px){
  .lang-switcher{
    gap:4px !important;
    padding:4px !important;
  }
  .lang-btn,
  button.lang-btn{
    min-width:44px !important;
    min-height:36px !important;
    padding:8px 12px !important;
    font-size:14px !important;
  }
}

/* v5.0 English cleanup */

/* v5.2 compact hero stats + search result bar */
.search-help{
  max-width:760px;
  margin:8px 4px 0;
  color:rgba(226,232,255,.76);
  font-size:.86rem;
  font-weight:700;
}
.hero-stats-grid.compact-stats{
  align-self:stretch;
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
  width:100%;
  min-width:0;
  padding:10px;
  border-radius:18px;
}
.hero-stats-grid.compact-stats .hero-stat-box{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 11px;
  border-radius:15px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.10);
}
.hero-stats-grid.compact-stats strong{
  font-size:1.35rem;
  line-height:1;
  color:#8be9ff;
  white-space:nowrap;
}
.hero-stats-grid.compact-stats span{
  margin:0;
  text-align:right;
  color:#d7defa;
  font-size:.78rem;
  line-height:1.22;
  font-weight:900;
}
.search-status-bar{
  display:none;
  max-width:760px;
  margin:10px 0 0;
}
.search-status-bar.active{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border-radius:16px;
  background:rgba(255,255,255,.09);
  border:1px solid rgba(103,232,249,.22);
  box-shadow:0 12px 30px rgba(0,0,0,.18);
  backdrop-filter:blur(12px);
}
.search-status-main{
  min-width:0;
  display:grid;
  gap:3px;
}
.search-status-main strong{
  display:block;
  font-size:.92rem;
  color:#fff;
  line-height:1.25;
}
.search-status-main span{
  display:block;
  color:rgba(226,232,255,.76);
  font-size:.8rem;
  font-weight:700;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.search-status-actions{
  display:flex;
  gap:7px;
  flex:0 0 auto;
}
.search-status-actions button{
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  padding:7px 10px;
  background:rgba(255,255,255,.08);
  color:#fff;
  font-size:.78rem;
  font-weight:900;
  cursor:pointer;
  white-space:nowrap;
}
.search-status-actions button:first-child{
  border-color:rgba(103,232,249,.36);
  background:linear-gradient(135deg,rgba(40,167,255,.34),rgba(139,92,246,.30));
}
.search-empty small{
  color:var(--muted);
  font-weight:800;
}
.style-intro-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
@media(max-width:820px){
  .hero-stats-grid.compact-stats{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:7px;
  }
  .hero-stats-grid.compact-stats .hero-stat-box{
    display:grid;
    justify-items:center;
    text-align:center;
    padding:9px 7px;
  }
  .hero-stats-grid.compact-stats span{text-align:center;}
}
@media(max-width:560px){
  .search-help{font-size:.78rem;margin-top:7px;}
  .hero-stats-grid.compact-stats{
    grid-template-columns:repeat(3,minmax(0,1fr));
    padding:8px;
  }
  .hero-stats-grid.compact-stats strong{font-size:1.08rem;}
  .hero-stats-grid.compact-stats span{font-size:.68rem;}
  .search-status-bar.active{
    display:grid;
    padding:9px;
    gap:8px;
  }
  .search-status-main strong{font-size:.84rem;}
  .search-status-main span{font-size:.73rem;}
  .search-status-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .search-status-actions button{
    width:100%;
    padding:8px 7px;
    font-size:.72rem;
  }
}


/* v5.3 hero balance + press language switch fix support */
.clean-hero{
  grid-template-columns:minmax(0,1fr) 178px;
  align-items:center;
}
.clean-hero .hero-copy h1{
  font-size:clamp(2.15rem,4.05vw,3.65rem) !important;
  line-height:1.02 !important;
  font-weight:800 !important;
  letter-spacing:-.055em !important;
  margin-bottom:12px !important;
}
.hero-stats-grid.compact-stats{
  align-self:center !important;
  width:178px !important;
  max-width:178px !important;
  min-width:0 !important;
  padding:8px !important;
  gap:7px !important;
  border-radius:18px !important;
  box-shadow:0 14px 38px rgba(0,0,0,.20) !important;
}
.hero-stats-grid.compact-stats .hero-stat-box{
  min-width:0 !important;
  min-height:50px;
  padding:8px 10px !important;
  border-radius:14px !important;
  background:rgba(255,255,255,.065) !important;
}
.hero-stats-grid.compact-stats strong{
  font-size:1.22rem !important;
  font-weight:850 !important;
  letter-spacing:-.02em;
}
.hero-stats-grid.compact-stats span{
  font-size:.74rem !important;
  line-height:1.18 !important;
  font-weight:800 !important;
}
@media(max-width:820px){
  .clean-hero{
    grid-template-columns:1fr;
    align-items:start;
  }
  .hero-stats-grid.compact-stats{
    width:100% !important;
    max-width:100% !important;
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .hero-stats-grid.compact-stats .hero-stat-box{
    min-height:46px;
    justify-content:center;
  }
}
@media(max-width:560px){
  .clean-hero .hero-copy h1{
    font-size:clamp(1.75rem,10.5vw,2.55rem) !important;
    letter-spacing:-.045em !important;
  }
}


/* v5.4 neon deep theme polish */
:root{
  --bg:#03050f;
  --panel:#07101f;
  --panel2:#0c1630;
  --line:rgba(148,163,184,.18);
  --blue:#18c8ff;
  --purple:#7c3aed;
  --violet:#d946ef;
  --cyan:#5ff6ff;
  --shadow:0 24px 80px rgba(2,6,23,.46);
}
body{
  background:
    radial-gradient(circle at 8% -6%, rgba(24,200,255,.27), transparent 24%),
    radial-gradient(circle at 93% 2%, rgba(139,92,246,.40), transparent 28%),
    radial-gradient(circle at 56% 32%, rgba(21,94,239,.18), transparent 34%),
    linear-gradient(180deg,#03050f 0%,#040916 28%,#030511 56%,#02030a 100%) !important;
}
.site-header{
  background:
    linear-gradient(180deg,rgba(255,255,255,.015),rgba(255,255,255,0)),
    radial-gradient(circle at 88% 8%, rgba(124,58,237,.20), transparent 22%),
    radial-gradient(circle at 16% 0%, rgba(34,211,238,.08), transparent 18%);
}
.site-header:before{
  width:520px;
  height:520px;
  background:linear-gradient(135deg,rgba(24,200,255,.95),rgba(59,130,246,.88),rgba(217,70,239,.82));
  filter:blur(88px);
  opacity:.52;
}
.site-header:after{
  content:"";
  position:absolute;
  left:-140px;
  top:42px;
  width:360px;
  height:360px;
  background:radial-gradient(circle, rgba(34,211,238,.20) 0%, rgba(34,211,238,0) 68%);
  filter:blur(30px);
  pointer-events:none;
}
.kicker,
.eyebrow,
.press-mini-label{
  background:rgba(34,211,238,.14) !important;
  border-color:rgba(95,246,255,.34) !important;
  color:#baf7ff !important;
  box-shadow:0 0 0 1px rgba(95,246,255,.06), 0 8px 22px rgba(24,200,255,.10);
}
.clean-hero{
  gap:22px;
}
.clean-hero .hero-copy h1{
  text-shadow:0 12px 36px rgba(0,0,0,.22);
}
.clean-hero .hero-copy h1 span{
  background:linear-gradient(90deg,#67e8f9 0%, #31c8ff 34%, #7aa2ff 65%, #d38bff 100%) !important;
  -webkit-background-clip:text;
  background-clip:text;
}
.hero-sub,
.search-help{
  color:rgba(232,240,255,.80) !important;
}
.search-wrap{
  background:linear-gradient(180deg,rgba(8,14,31,.72),rgba(7,11,27,.64)) !important;
  border-color:rgba(95,246,255,.22) !important;
  box-shadow:0 16px 42px rgba(3,7,18,.30), inset 0 1px 0 rgba(255,255,255,.05);
}
.search-wrap input{
  background:linear-gradient(180deg,#ffffff,#edf4ff) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.65), 0 0 0 1px rgba(255,255,255,.05);
}
.search-wrap button,
.load-more,
.copy-btn,
.mini-btn,
.primary-btn,
.search-status-actions button:first-child,
.tab.active,
.tab-btn.active,
.lang-btn.active,
button.lang-btn.active{
  background:linear-gradient(135deg,#18c8ff 0%, #3478ff 42%, #8f4dff 74%, #d946ef 100%) !important;
  box-shadow:0 14px 34px rgba(24,200,255,.20), 0 8px 24px rgba(124,58,237,.18), inset 0 1px 0 rgba(255,255,255,.22) !important;
}
.search-wrap button:hover,
.load-more:hover,
.copy-btn:hover,
.mini-btn:hover,
.primary-btn:hover{
  transform:translateY(-1px);
  filter:saturate(1.08) brightness(1.03);
}
.mode-card,
.builder,
.tabs,
.tabs-bar,
.hero-stats,
.hero-stats-grid.compact-stats,
.press-release-card-inner,
.seo-entry-links .container,
.tag-card,
.card,
.loading-box,
.empty-box,
.kkl-error-box,
.filter-row select,
.builder select,
.builder textarea,
.search-status-bar.active{
  border-color:rgba(95,246,255,.14) !important;
  box-shadow:0 18px 52px rgba(0,0,0,.24), 0 0 0 1px rgba(24,200,255,.03) !important;
}
.mode-card,
.builder,
.tabs-bar,
.press-release-card-inner,
.seo-entry-links .container,
.loading-box,
.empty-box,
.kkl-error-box{
  background:
    radial-gradient(circle at top right, rgba(24,200,255,.08), transparent 26%),
    linear-gradient(180deg, rgba(9,17,35,.94), rgba(4,9,22,.94)) !important;
}
.mode-card.active,
.mode-card:hover,
.card:hover{
  border-color:rgba(95,246,255,.42) !important;
  box-shadow:0 22px 60px rgba(3,7,18,.34), 0 0 0 1px rgba(95,246,255,.08), 0 0 28px rgba(24,200,255,.08) !important;
}
.builder{
  background:
    radial-gradient(circle at top right, rgba(95,246,255,.08), transparent 22%),
    radial-gradient(circle at 80% 0%, rgba(124,58,237,.11), transparent 24%),
    linear-gradient(180deg, rgba(8,15,33,.96), rgba(3,7,18,.96)) !important;
}
.tabs,
.tabs-bar{
  background:rgba(4,8,20,.70) !important;
  border-color:rgba(95,246,255,.14) !important;
}
.tab,
.tab-btn,
.nav-link{
  color:#dbe6ff !important;
}
.hero-stats-grid.compact-stats{
  background:linear-gradient(180deg, rgba(16,24,52,.70), rgba(11,18,38,.68)) !important;
  border-color:rgba(95,246,255,.12) !important;
}
.hero-stats-grid.compact-stats .hero-stat-box{
  background:linear-gradient(180deg, rgba(255,255,255,.095), rgba(255,255,255,.045)) !important;
  border-color:rgba(255,255,255,.10) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}
.hero-stats-grid.compact-stats strong{
  color:#92faff !important;
  text-shadow:0 0 16px rgba(95,246,255,.14);
}
.hero-stats-grid.compact-stats span{
  color:#eef4ff !important;
}
.search-status-bar.active{
  background:linear-gradient(180deg, rgba(14,23,47,.88), rgba(8,13,30,.82)) !important;
}
.search-status-main strong,
.builder h2,
.card h2,
.seo-entry-links h2,
.press-release-card h2,
.mode-card h2,
.mode-card b{
  color:#ffffff;
}
.search-status-main span,
.press-release-card p,
.seo-entry-links p,
.en,
.meta,
.small-note,
.muted,
.filter-row span,
.builder label,
.text-label{
  color:#cfdbf7 !important;
}
.builder select,
.builder textarea,
.filter-row select,
.search-status-actions button,
.copy-btn.secondary,
.secondary-btn,
.ghost-btn{
  background:rgba(9,15,32,.92) !important;
  border-color:rgba(95,246,255,.12) !important;
  color:#f8fbff !important;
}
.chip{
  background:rgba(255,255,255,.10) !important;
  border-color:rgba(255,255,255,.12) !important;
}
.chip.blue{
  background:rgba(24,200,255,.18) !important;
  color:#c8fbff !important;
}
.chip.purple{
  background:rgba(143,77,255,.20) !important;
  color:#f0ddff !important;
}
.thumb{
  background:linear-gradient(180deg,#07101f,#040814) !important;
}
.thumb img,
.image-preview-body img{
  filter:saturate(1.14) contrast(1.06) brightness(1.03);
}
.card:hover .thumb img{
  filter:saturate(1.22) contrast(1.08) brightness(1.04);
}
.prompt-box,
.prompt-output{
  background:linear-gradient(180deg, rgba(2,6,23,.96), rgba(5,10,24,.94)) !important;
  border-color:rgba(95,246,255,.12) !important;
}
.seo-link-grid a{
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03)) !important;
  border-color:rgba(95,246,255,.10) !important;
}
.seo-link-grid a:hover{
  color:#c8fbff !important;
  border-color:rgba(95,246,255,.34) !important;
  box-shadow:0 14px 32px rgba(24,200,255,.10);
}
.site-footer{
  background:linear-gradient(180deg,#03050d,#020309) !important;
}
.footer-links a,
.detail-link{
  color:#7de9ff !important;
}
@media (max-width:820px){
  .clean-hero{
    gap:14px;
  }
  .hero-stats-grid.compact-stats{
    box-shadow:0 14px 34px rgba(0,0,0,.20) !important;
  }
}
@media (max-width:560px){
  .search-wrap{
    box-shadow:0 12px 28px rgba(3,7,18,.24);
  }
  .press-release-card-inner,
  .seo-entry-links .container,
  .builder{
    border-radius:20px;
  }
}


/* v5.5 Tech Neon theme + visual bug fixes */
:root{
  --bg:#010713;
  --panel:#061426;
  --panel2:#0b1c3b;
  --blue:#00c8ff;
  --cyan:#39fff5;
  --purple:#7b2cff;
  --violet:#ff3df2;
  --hot:#ff2bd6;
  --line:rgba(57,255,245,.20);
}
body{
  background:
    radial-gradient(circle at 14% -8%, rgba(57,255,245,.34), transparent 21%),
    radial-gradient(circle at 90% 4%, rgba(123,44,255,.50), transparent 28%),
    radial-gradient(circle at 52% 22%, rgba(0,200,255,.24), transparent 28%),
    linear-gradient(180deg,#010713 0%,#041026 32%,#020711 62%,#010309 100%) !important;
}
.site-header{
  background:
    linear-gradient(120deg,rgba(0,200,255,.10),rgba(123,44,255,.15) 55%,rgba(255,61,242,.10)),
    radial-gradient(circle at 78% 10%,rgba(255,61,242,.18),transparent 22%),
    radial-gradient(circle at 20% 0%,rgba(57,255,245,.10),transparent 24%) !important;
}
.site-header:before{
  width:620px !important;
  height:620px !important;
  background:linear-gradient(135deg,rgba(57,255,245,.98),rgba(0,110,255,.92),rgba(255,61,242,.86)) !important;
  filter:blur(96px) !important;
  opacity:.60 !important;
}
.site-header:after{
  opacity:.9;
}
.clean-hero .hero-copy h1{
  text-shadow:0 0 26px rgba(57,255,245,.10),0 14px 44px rgba(0,0,0,.34) !important;
}
.clean-hero .hero-copy h1 span,
.hero h1 span{
  display:inline-block !important;
  background:linear-gradient(90deg,#39fff5 0%,#00c8ff 34%,#7b2cff 68%,#ff3df2 100%) !important;
  background-clip:text !important;
  -webkit-background-clip:text !important;
  color:transparent !important;
  -webkit-text-fill-color:transparent !important;
  box-decoration-break:clone;
  -webkit-box-decoration-break:clone;
  text-shadow:none !important;
}
.search-wrap,
.search-status-bar.active,
.hero-stats-grid.compact-stats,
.mode-card,
.builder,
.wizard-box-v36,
.wizard-step-card,
.wizard-result-panel,
.tabs-bar,
.prompt-card,
.press-release-card-inner,
.seo-entry-links .container{
  border-color:rgba(57,255,245,.24) !important;
  box-shadow:0 20px 70px rgba(0,0,0,.34), 0 0 0 1px rgba(57,255,245,.055), 0 0 36px rgba(0,200,255,.06) !important;
}
.search-wrap button,
.copy-btn,
.primary-btn,
.copy-master-btn,
.tab-btn.active,
.tab.active,
.lang-btn.active,
button.lang-btn.active,
.load-more,
.mini-btn,
.search-status-actions button:first-child{
  background:linear-gradient(135deg,#39fff5 0%,#00a8ff 34%,#7b2cff 66%,#ff3df2 100%) !important;
  color:#ffffff !important;
  border-color:rgba(255,255,255,.28) !important;
  box-shadow:0 0 24px rgba(57,255,245,.20),0 14px 38px rgba(123,44,255,.22),inset 0 1px 0 rgba(255,255,255,.30) !important;
}
.search-wrap button:hover,
.copy-btn:hover,
.primary-btn:hover,
.copy-master-btn:hover,
.load-more:hover,
.mini-btn:hover{
  filter:saturate(1.18) brightness(1.08) !important;
  transform:translateY(-1px);
}
.kicker,
.eyebrow,
.press-mini-label,
.wizard-count-badge{
  background:linear-gradient(135deg,rgba(57,255,245,.18),rgba(123,44,255,.16)) !important;
  border-color:rgba(57,255,245,.40) !important;
  color:#d9fffd !important;
  box-shadow:0 0 20px rgba(57,255,245,.10) !important;
}
.hero-stats-grid.compact-stats{
  background:linear-gradient(180deg,rgba(6,20,43,.84),rgba(4,12,28,.80)) !important;
}
.hero-stats-grid.compact-stats .hero-stat-box{
  background:linear-gradient(135deg,rgba(57,255,245,.10),rgba(123,44,255,.11)) !important;
  border-color:rgba(255,255,255,.12) !important;
}
.hero-stats-grid.compact-stats strong{
  color:#39fff5 !important;
  text-shadow:0 0 18px rgba(57,255,245,.24) !important;
}
.card-meta,
.style-card-group-head h3,
.section-intro h3,
.footer-links a,
.detail-link{
  color:#6ffff8 !important;
}
.style-card-group-head{
  border-left-color:#39fff5 !important;
}
.mode-card.active,
.mode-card:hover,
.prompt-card:hover,
.style-group-card:hover,
.style-group-card.active{
  border-color:rgba(57,255,245,.55) !important;
  box-shadow:0 24px 72px rgba(0,0,0,.38),0 0 0 1px rgba(57,255,245,.12),0 0 42px rgba(57,255,245,.12) !important;
}
.thumb-wrap img,
.thumb img{
  filter:saturate(1.28) contrast(1.10) brightness(1.05) !important;
}
.prompt-card:hover .thumb-wrap img,
.card:hover .thumb img{
  filter:saturate(1.38) contrast(1.12) brightness(1.08) !important;
}
/* Prevent one-item search groups from stretching into oversized cards */
.style-card-group .cards-grid{
  grid-template-columns:repeat(auto-fill,minmax(min(180px,100%),1fr)) !important;
  justify-items:start !important;
}
.style-card-group .prompt-card{
  width:100% !important;
  max-width:260px !important;
  justify-self:start !important;
}
.style-card-group .prompt-card .thumb-wrap{
  aspect-ratio:16/9 !important;
}
@media(max-width:760px){
  .style-card-group .cards-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    justify-items:stretch !important;
  }
  .style-card-group .prompt-card{
    max-width:none !important;
  }
}
@media(max-width:480px){
  .style-card-group .cards-grid{
    grid-template-columns:1fr !important;
  }
}


/* v5.6 darker Tech/Neon + hero title fit */
:root{
  --bg:#00030a;
  --panel:#030914;
  --panel2:#061225;
  --line:rgba(57,255,245,.18);
}
body{
  background:
    radial-gradient(circle at 10% -8%, rgba(57,255,245,.20), transparent 18%),
    radial-gradient(circle at 92% 1%, rgba(123,44,255,.36), transparent 24%),
    radial-gradient(circle at 50% 26%, rgba(0,105,255,.12), transparent 25%),
    linear-gradient(180deg,#00030a 0%,#020714 32%,#01040c 62%,#000206 100%) !important;
}
.site-header{
  background:
    linear-gradient(115deg,rgba(0,200,255,.045),rgba(22,31,78,.10) 44%,rgba(123,44,255,.18) 100%),
    radial-gradient(circle at 86% 8%,rgba(123,44,255,.22),transparent 21%),
    radial-gradient(circle at 18% 0%,rgba(57,255,245,.06),transparent 20%),
    #020817 !important;
}
.site-header:before{
  opacity:.46 !important;
  filter:blur(104px) !important;
}
.site-header:after{
  opacity:.55 !important;
}
.clean-hero .hero-copy h1,
.hero h1{
  font-size:clamp(1.95rem,3.55vw,3.18rem) !important;
  line-height:1.12 !important;
  font-weight:780 !important;
  letter-spacing:-.045em !important;
  overflow:visible !important;
  max-width:820px;
}
.clean-hero .hero-copy h1 span,
.hero h1 span{
  display:inline !important;
  padding-bottom:.08em;
  line-height:1.16 !important;
  overflow:visible !important;
}
.hero-sub{
  margin-top:2px !important;
}
main,
.kkl-runtime{
  background:transparent !important;
}
.search-wrap,
.search-status-bar.active,
.hero-stats-grid.compact-stats,
.mode-card,
.builder,
.wizard-box-v36,
.wizard-step-card,
.wizard-result-panel,
.tabs-bar,
.prompt-card,
.press-release-card-inner,
.seo-entry-links .container,
.filter-row select,
.builder select,
.builder textarea{
  background:
    radial-gradient(circle at top right, rgba(57,255,245,.045), transparent 25%),
    linear-gradient(180deg, rgba(4,10,24,.96), rgba(1,5,14,.96)) !important;
  border-color:rgba(57,255,245,.18) !important;
  box-shadow:0 22px 66px rgba(0,0,0,.46),0 0 0 1px rgba(57,255,245,.045),0 0 28px rgba(0,200,255,.045) !important;
}
.builder,
.wizard-box-v36{
  background:
    radial-gradient(circle at 86% 0%, rgba(123,44,255,.075), transparent 24%),
    radial-gradient(circle at 8% 0%, rgba(57,255,245,.045), transparent 20%),
    linear-gradient(180deg, rgba(3,10,24,.985), rgba(1,4,12,.985)) !important;
}
.mode-card,
.prompt-card,
.style-group-card,
.card{
  background:linear-gradient(180deg,rgba(5,12,28,.96),rgba(1,5,14,.98)) !important;
}
.tabs-bar,
.tabs{
  background:rgba(1,4,12,.88) !important;
}
.hero-stats-grid.compact-stats,
.hero-stats-grid.compact-stats .hero-stat-box{
  background:linear-gradient(180deg,rgba(2,8,18,.92),rgba(1,4,12,.96)) !important;
}
.thumb-wrap,
.thumb{
  background:#01040c !important;
}
.prompt-box,
.prompt-output,
.wizard-result-output{
  background:linear-gradient(180deg,rgba(0,3,10,.98),rgba(1,5,14,.98)) !important;
  border-color:rgba(57,255,245,.13) !important;
}
.press-release-card-inner,
.seo-entry-links .container{
  background:
    radial-gradient(circle at 88% 12%, rgba(57,255,245,.08), transparent 22%),
    linear-gradient(180deg,rgba(3,10,24,.96),rgba(1,5,14,.98)) !important;
}
.search-wrap button,
.copy-btn,
.primary-btn,
.copy-master-btn,
.tab-btn.active,
.tab.active,
.lang-btn.active,
button.lang-btn.active,
.load-more,
.mini-btn,
.search-status-actions button:first-child{
  box-shadow:0 0 22px rgba(57,255,245,.17),0 14px 36px rgba(123,44,255,.20),inset 0 1px 0 rgba(255,255,255,.25) !important;
}
.site-footer{
  background:#000206 !important;
  border-top-color:rgba(57,255,245,.10) !important;
}
@media(max-width:820px){
  .clean-hero .hero-copy h1,
  .hero h1{
    font-size:clamp(1.85rem,8.6vw,2.75rem) !important;
    line-height:1.12 !important;
  }
}
@media(max-width:560px){
  .clean-hero .hero-copy h1,
  .hero h1{
    font-size:clamp(1.65rem,9.2vw,2.35rem) !important;
    line-height:1.14 !important;
    letter-spacing:-.035em !important;
  }
}


/* v5.7 release polish */
.clean-hero .hero-copy h1,
.hero h1{
  font-size:clamp(1.82rem,3.18vw,2.92rem) !important;
  line-height:1.08 !important;
  letter-spacing:-.032em !important;
}
.clean-hero .hero-copy h1 span,
.hero h1 span{
  display:block !important;
  margin-top:.04em;
  font-size:.94em !important;
  line-height:1.1 !important;
  white-space:normal !important;
  letter-spacing:-.022em !important;
}
.style-card-group .cards-grid{
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:14px !important;
  justify-items:stretch !important;
}
.style-card-group .prompt-card{
  width:100% !important;
  max-width:none !important;
}
.prompt-card .card-actions{
  align-items:stretch;
}
.prompt-card .small-btn{
  flex:1 1 148px;
}
.audio-search-group{
  margin:0 0 18px;
}
.audio-search-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:0 0 10px;
}
.audio-search-head h4{
  margin:0;
  font-size:1.06rem;
  color:#f8fbff;
}
.audio-search-head span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  height:34px;
  padding:0 10px;
  border-radius:999px;
  background:rgba(34,211,238,.12);
  border:1px solid rgba(34,211,238,.22);
  color:#b8f7ff;
  font-weight:900;
}
.search-empty small{
  display:block;
  margin-top:8px;
}
@media(max-width:1180px){
  .style-card-group .cards-grid{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}
@media(max-width:820px){
  .clean-hero .hero-copy h1,
  .hero h1{
    font-size:clamp(1.72rem,7.9vw,2.46rem) !important;
  }
  .style-card-group .cards-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}
@media(max-width:560px){
  .clean-hero .hero-copy h1,
  .hero h1{
    font-size:clamp(1.52rem,8.6vw,2.14rem) !important;
    line-height:1.12 !important;
  }
  .style-card-group .cards-grid{
    grid-template-columns:1fr !important;
  }
}


/* v5.8 Thai tone mark visibility fix */
.clean-hero .hero-copy h1,
.hero h1{
  line-height:1.22 !important;
  overflow:visible !important;
  padding-top:.04em !important;
  padding-bottom:.08em !important;
}
.clean-hero .hero-copy h1 span,
.hero h1 span{
  display:block !important;
  line-height:1.34 !important;
  padding-top:.14em !important;
  padding-bottom:.06em !important;
  margin-top:-.02em !important;
  overflow:visible !important;
  white-space:normal !important;
  font-family:'Noto Sans Thai', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}
@media(max-width:820px){
  .clean-hero .hero-copy h1,
  .hero h1{
    line-height:1.22 !important;
  }
  .clean-hero .hero-copy h1 span,
  .hero h1 span{
    line-height:1.36 !important;
    padding-top:.16em !important;
  }
}
@media(max-width:560px){
  .clean-hero .hero-copy h1,
  .hero h1{
    line-height:1.25 !important;
  }
  .clean-hero .hero-copy h1 span,
  .hero h1 span{
    line-height:1.38 !important;
    padding-top:.18em !important;
  }
}


/* v5.9 final launch text polish */
.brand-abbr,
.hero h1 .brand-abbr,
.clean-hero .hero-copy h1 .brand-abbr{
  display:inline !important;
  white-space:nowrap !important;
  letter-spacing:0 !important;
  word-spacing:0 !important;
  font-family:'Noto Sans Thai', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-kerning:normal !important;
}
.clean-hero .hero-copy h1,
.hero h1{
  word-spacing:.02em !important;
  text-rendering:optimizeLegibility;
}
.press-release-card h2,
.press-article h1,
.seo-entry-links h2,
.brand span{
  letter-spacing:0 !important;
  word-spacing:normal !important;
  font-kerning:normal !important;
  text-rendering:optimizeLegibility;
}
.press-release-card h2{
  line-height:1.28 !important;
}
.search-bottom-actions{
  display:flex;
  justify-content:center;
  margin:18px 0 4px;
}
.search-bottom-actions .secondary-btn{
  min-width:170px;
}
@media(max-width:560px){
  .press-release-card h2{
    font-size:1.28rem !important;
  }
}


/* v6.0 final press title launch fix */
.press-article h1,
.press-title-en,
.press-title-th{
  letter-spacing:0 !important;
  word-spacing:0 !important;
  font-kerning:normal !important;
  text-rendering:optimizeLegibility !important;
  overflow-wrap:normal !important;
  word-break:normal !important;
  hyphens:none !important;
}
.press-title-en{
  font-family:Arial, Helvetica, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size:clamp(2rem,3.7vw,3.15rem) !important;
  line-height:1.14 !important;
  letter-spacing:-.01em !important;
}
.press-title-th{
  font-family:'Noto Sans Thai', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  line-height:1.18 !important;
}
.no-break,
.brand-abbr{
  white-space:nowrap !important;
  display:inline-block !important;
  letter-spacing:0 !important;
  word-spacing:0 !important;
  font-kerning:normal !important;
}
.press-lead,
.press-section p,
.press-list,
.press-feature-card p,
.press-cover-caption{
  word-spacing:normal !important;
  letter-spacing:0 !important;
}
@media(max-width:760px){
  .press-title-en{font-size:clamp(1.72rem,8.1vw,2.36rem) !important;line-height:1.16 !important;}
}

/* v6.3 mobile overflow fix for Image Prompt Wizard */
@media (max-width: 760px){
  html,
  body{
    max-width:100%;
    overflow-x:hidden;
  }
  main,
  .kkl-runtime,
  .wizard-box,
  .wizard-box-v36,
  .simple-tts,
  .wizard-step-layout,
  .wizard-step-card,
  .wizard-result-panel,
  .step-grid,
  .step-grid.two{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
  }
  .wizard-box,
  .wizard-box-v36,
  .simple-tts{
    overflow:hidden;
    padding-inline:12px !important;
  }
  .wizard-step-card,
  .wizard-result-panel{
    padding:12px !important;
    overflow:hidden;
  }
  .step-title{
    display:grid !important;
    grid-template-columns:30px minmax(0,1fr);
    align-items:start !important;
    column-gap:10px;
    row-gap:10px;
    width:100%;
    min-width:0;
  }
  .step-title > span{
    grid-column:1;
    flex:0 0 30px;
  }
  .step-title > strong{
    grid-column:2;
    min-width:0;
    overflow-wrap:anywhere;
    word-break:normal;
    line-height:1.25;
  }
  .step-title .anchor-jump-btn,
  .step-title .jump-back-btn,
  .step-title .step-copy-btn{
    grid-column:1 / -1;
    width:100% !important;
    margin:0 !important;
    white-space:normal !important;
    min-width:0;
  }
  .result-title .step-copy-btn{
    margin-top:4px !important;
  }
  .step-grid,
  .step-grid.two{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:12px;
  }
  .step-grid label,
  .wizard-step-card label,
  .wizard-text,
  .full-width{
    width:100%;
    max-width:100%;
    min-width:0;
  }
  .wizard-step-card select,
  .wizard-step-card textarea,
  .wizard-step-card input[type="text"],
  .builder select,
  .builder textarea,
  .filter-row select{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
  }
  .style-group-preview.no-image{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    width:100%;
    max-width:100%;
    overflow-x:hidden;
    max-height:none;
    padding-right:0;
  }
  .style-group-pill{
    width:100%;
    max-width:100%;
    min-width:0;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:6px;
    white-space:normal;
    overflow-wrap:anywhere;
    line-height:1.25;
    text-align:left;
  }
  .style-group-pill span{
    flex:0 0 auto;
    margin-left:4px;
  }
  .style-group-filter-head{
    display:grid;
    grid-template-columns:1fr;
    gap:6px;
  }
  .size-recommend-box,
  .wizard-help,
  .prompt-output,
  .wizard-output{
    max-width:100%;
    overflow-wrap:anywhere;
    word-break:break-word;
  }
  .wizard-output{
    overflow-x:auto;
  }
}

@media (max-width: 380px){
  .style-group-preview.no-image{
    grid-template-columns:1fr;
  }
}
