/* TalkBox by SWC - Glow aesthetic */
:root{
  --bg:#0b0f1a;
  --panel:#0f1526cc;
  --text:#e6ebff;
  --muted:#9aa4c7;
  --accent:#7aa8ff;
  --accent2:#9c7aff;
  --accent3:#64ffd3;
  --ring: 0 0 32px 6px rgba(122,168,255,0.25), 0 0 96px 24px rgba(156,122,255,0.12);
  --soft: 0 8px 36px rgba(0,0,0,0.35);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial;
  color:var(--text);
  background: radial-gradient(1200px 800px at 10% 10%, #111936 0%, transparent 60%),
              radial-gradient(900px 700px at 90% 20%, #1a1136 0%, transparent 60%),
              radial-gradient(700px 600px at 50% 100%, #0e2a35 0%, transparent 60%),
              var(--bg);
  overflow-x:hidden;
}

.bg-orb{
  position:fixed; inset:auto;
  width:36vmax; height:36vmax; border-radius:50%;
  filter: blur(60px);
  opacity:0.3; pointer-events:none;
}
.orb-1{ top:-10vmax; left:-8vmax; background: radial-gradient(#7aa8ff, transparent 60%) }
.orb-2{ top:20vmax; right:-10vmax; background: radial-gradient(#9c7aff, transparent 60%) }
.orb-3{ bottom:-12vmax; left:20vmax; background: radial-gradient(#64ffd3, transparent 60%) }

.topbar{
  position:sticky; top:0; z-index:5;
  display:flex; align-items:center; gap:16px;
  padding:20px 24px;
  background: linear-gradient(180deg, rgba(15,21,38,0.85), rgba(15,21,38,0.35) 70%, transparent);
  backdrop-filter: blur(8px);
}
.topbar h1{
  margin:0; letter-spacing:0.5px; font-weight:800;
  text-shadow: 0 0 24px rgba(122,168,255,0.45);
}
.topbar h1 span{ color:var(--accent3) }
.topbar .hint{ margin-left:auto; color:var(--muted); font-size:0.9rem }

.container{
  width:min(1100px, 92vw);
  margin: 24px auto 64px auto;
  display:grid; gap:24px;
  grid-template-columns: 1fr 320px;
}
@media (max-width: 900px){
  .container{ grid-template-columns: 1fr }
}

.panel{
  background: linear-gradient(180deg, rgba(16,23,41,0.9), rgba(16,23,41,0.75));
  border:1px solid rgba(122,168,255,0.2);
  border-radius:20px;
  padding:20px;
  box-shadow: var(--soft), var(--ring);
}

.field{ display:flex; flex-direction:column; gap:8px; margin-bottom:12px }
.label{ color:var(--muted); font-size:0.9rem }
textarea, select, input[type="range"]{
  width:100%;
  background: rgba(255,255,255,0.03);
  border:1px solid rgba(122,168,255,0.25);
  color:var(--text);
  padding:12px 14px;
  border-radius:14px;
  outline:none;
  box-shadow: inset 0 0 24px rgba(122,168,255,0.08);
}
textarea{ resize:vertical; min-height:140px }

.grid{
  display:grid; gap:12px;
  grid-template-columns: repeat(3, 1fr);
}
.grid .field:nth-child(-n+2){ grid-column: span 1 }
.grid .field:nth-child(n+3){ grid-column: span 1 }
@media (max-width: 900px){
  .grid{ grid-template-columns: 1fr }
}

output{ font-size:0.9rem; color:var(--muted) }

.actions{ display:flex; align-items:center; gap:12px; margin-top:12px }
.spacer{ flex:1 }

button{
  border:1px solid rgba(122,168,255,0.35);
  background: radial-gradient(200px 80px at 50% 0%, rgba(122,168,255,0.45), rgba(156,122,255,0.35)) ;
  color:white; padding:12px 16px; border-radius:14px; cursor:pointer; font-weight:700;
  box-shadow: 0 6px 20px rgba(122,168,255,0.35), 0 0 40px rgba(156,122,255,0.18) inset;
  transition: transform .08s ease, box-shadow .2s ease;
}
button:hover{ transform: translateY(-2px) }
button:active{ transform: translateY(0) scale(0.98) }
button.ghost{
  background: rgba(255,255,255,0.02);
  box-shadow: inset 0 0 36px rgba(122,168,255,0.12);
}
button.danger{
  background: radial-gradient(200px 80px at 50% 0%, rgba(255,122,122,0.5), rgba(156,122,255,0.25));
  border-color: rgba(255,122,122,0.4);
}
button.record{
  background: radial-gradient(200px 80px at 50% 0%, rgba(122,255,203,0.5), rgba(122,168,255,0.25));
  border-color: rgba(122,255,203,0.45);
}

.helper{ margin-top:12px }
.helper summary{ cursor:pointer; color:var(--accent3); font-weight:700 }
.helper p{ color:var(--muted) }

.tips h2{ margin-top:8px }
.tips ul{ margin:0; padding-left:18px; color:var(--muted) }
.tips li{ margin:8px 0 }

.footer{
  text-align:center; color:var(--muted);
  padding:32px 0 64px 0;
}
