:root {
  --bg: #0f172a;
  --card: #111827;
  --card-soft: #172036;
  --line: rgba(255,255,255,0.08);
  --text: #e5edf9;
  --muted: #a3b0c2;
  --accent: #7c3aed;
  --accent-2: #22c55e;
  --white: #ffffff;
  --danger: #ef4444;
  --shadow: 0 20px 50px rgba(0,0,0,0.25);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: linear-gradient(160deg, #0b1120 0%, #111827 45%, #1e1b4b 100%);
  color: var(--text);
}
button, input, textarea { font: inherit; }
label { display: block; margin-bottom: 8px; font-size: 14px; color: var(--muted); }
input[type="text"], textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border-radius: 14px;
  padding: 14px 16px;
}
input[type="range"] { width: 100%; }
textarea { resize: vertical; min-height: 120px; }
.app-shell {
  display: grid;
  grid-template-columns: 340px 1fr;
  min-height: 100vh;
}
.sidebar {
  border-right: 1px solid var(--line);
  background: rgba(11,17,32,0.72);
  backdrop-filter: blur(12px);
  padding: 24px;
}
.main-content { padding: 28px; }
.brand-card, .panel, .hero {
  background: rgba(17,24,39,0.82);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.brand-card, .panel { padding: 20px; margin-bottom: 18px; }
.hero {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
}
.hero h2, .brand-card h1 { margin: 6px 0 10px; }
.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: #c4b5fd;
}
.muted { color: var(--muted); }
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.panel-header.compact { margin-bottom: 10px; }
.panel-header h2, .panel-header h3 { margin: 0; }
.content-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 22px;
}
.form-grid, .meta-grid, .action-grid, .toggle-grid {
  display: grid;
  gap: 14px;
}
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 16px; }
.meta-grid, .toggle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.action-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.control-stack > div { margin-bottom: 16px; }
.btn {
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--accent), #4f46e5); color: var(--white); }
.btn-dark { background: #0b1220; color: var(--white); border: 1px solid var(--line); }
.btn-light { background: rgba(255,255,255,0.06); color: var(--white); border: 1px solid var(--line); }
.btn-outline { background: transparent; color: #fecaca; border: 1px solid rgba(239,68,68,0.45); }
.btn-small { padding: 9px 12px; font-size: 13px; }
.badge {
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(124,58,237,0.18);
  color: #ddd6fe;
  font-size: 12px;
}
.toolbar-wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 18px 0; }
.toolbar-group { display: flex; flex-wrap: wrap; gap: 10px; }
.soft-panel { background: rgba(255,255,255,0.03); margin-top: 10px; }
.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
}
.toggle input { accent-color: var(--accent); }
.prompter-preview-card {
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.22);
  border-radius: 18px;
  padding: 16px;
  margin: 18px 0;
}
.mini-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.preview-area {
  min-height: 220px;
  border-radius: 16px;
  background: #050816;
  border: 1px solid rgba(255,255,255,0.06);
  padding: 22px;
  overflow: auto;
  white-space: pre-wrap;
}
.notes-preview {
  margin-top: 12px;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  color: #cbd5e1;
  white-space: pre-wrap;
}
.session-list, .preset-list {
  display: grid;
  gap: 10px;
}
.session-item {
  text-align: left;
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}
.session-title { display: block; font-weight: 700; margin-bottom: 5px; }
.session-meta { display: block; font-size: 13px; color: var(--muted); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #111827;
  color: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  z-index: 9999;
}
@media (max-width: 1100px) {
  .app-shell, .content-grid { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 700px) {
  .main-content, .sidebar { padding: 18px; }
  .form-grid, .meta-grid, .toggle-grid, .action-grid { grid-template-columns: 1fr; }
  .hero { flex-direction: column; align-items: flex-start; }
}
.small { font-size: 13px; }
.voice-panel textarea { min-height: 96px; }
.compact-toolbar { margin-top: 10px; margin-bottom: 14px; }
.badge-light { background: rgba(255,255,255,0.08); color: #dbeafe; }
.btn-primary.recording { background: linear-gradient(135deg, #ef4444, #b91c1c); }
