:root{
  --bg:#0b0d12; --card:#121622; --text:#e7eaf1; --muted:#9aa4b2; --line:#22283a;
  --btn:#2a6cff; --btn2:#3c455e; --good:#22c55e;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}
body{ margin:0; background:var(--bg); color:var(--text);}
.wrap{ max-width:1100px; margin:0 auto; padding:18px;}
header{ margin-bottom:14px;}
h1{ margin:0; font-size:28px;}
.sub{ margin:6px 0 0; color:var(--muted);}
.card{ background:var(--card); border:1px solid var(--line); border-radius:14px; padding:14px; margin:12px 0;}
h2{ margin:0 0 12px; font-size:18px;}
h3{ margin:0 0 10px; font-size:16px; color:#d7dcff;}
.grid{ display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap:12px;}
label{ display:flex; flex-direction:column; gap:6px; font-size:13px; color:var(--muted);}
input,select,textarea{
  background:#0f1320; color:var(--text); border:1px solid var(--line);
  padding:10px; border-radius:10px; outline:none; font-size:14px;
}
textarea{ resize:vertical;}
.row{ flex-direction:row; align-items:center; gap:10px; padding-top:26px;}
.split{ display:grid; grid-template-columns: 1fr 1fr; gap:14px; margin-top:8px;}
.controls{ display:flex; gap:10px; align-items:center;}
button{
  background:var(--btn); color:white; border:none; border-radius:10px;
  padding:10px 14px; font-size:14px; cursor:pointer;
}
button[disabled]{ opacity:.5; cursor:not-allowed;}
.pill{ padding:6px 10px; border-radius:999px; background:#0f1320; border:1px solid var(--line); color:var(--muted);}
.log{ background:#0f1320; border:1px solid var(--line); border-radius:12px; padding:12px; max-height:260px; overflow:auto; white-space:pre-wrap;}
.small{ font-size:12px; color:var(--muted); margin-top:6px;}
.tips{ color:var(--muted); font-size:13px; }
.exports{ margin-top:12px; display:flex; gap:10px; align-items:center; flex-wrap:wrap;}
@media(max-width:980px){
  .split{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: 1fr; }
}
.agent-line {
  margin-bottom: 6px;
  color: #d7e3ff;
  font-size: 14px;
}

/* Voice Tone Controls */
.slider-wrapper {
  margin-bottom: 28px;
  padding: 0 20px;
}

.slider-help {
  font-size: 12px;
  color: #9aa4c3;
  margin-top: 6px;
  line-height: 1.4;
}


.range-container {
  position: relative;
  width: 100%;
}

.range-container input[type="range"] {
  width: 100%;
}

.range-value {
  position: absolute;
  top: 15%;
  /* transform: translate(-50%, -50%); */
  height: 28px;
  width: 28px;
  border-radius: 50%;
  background: #1e88e5;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: left 0.1s ease;
  box-shadow: 0 0 10px rgba(30,136,229,0.4);
}

/* Tone Guide */
/* .tone-guide {
  margin-bottom: 20px;
} */

.tone-guide select {
  margin-top: 8px;
  padding: 6px 10px;
  background: #1e2235;
  color: white;
  border-radius: 6px;
  border: 1px solid #333;
}

.tone-description {
  margin-top: 10px;
  font-size: 13px;
  color: #aab3d1;
}
.tone-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 40px;
}

@media (max-width: 1200px) {
  .tone-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .tone-grid {
    grid-template-columns: 1fr;
  }
}
