:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-strong: #0b1323;
  --surface: rgba(8, 15, 28, 0.92);
  --surface-2: #0f172a;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #f97316;
  --success: #22c55e;
  --warning: #fbbf24;
  --danger: #f87171;
  --border: rgba(148, 163, 184, 0.2);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 15% 0%, #23395d 0%, var(--bg) 44%, var(--bg-strong) 100%);
  color: var(--text);
  min-height: 100vh;
}

.topbar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 20px 8px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 12px;
  font-weight: 700;
}

.tool-kicker {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.22);
  color: #bae6fd;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.title-wrap h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.title-wrap p {
  margin: 0;
  color: var(--muted);
  max-width: 760px;
  line-height: 1.7;
  font-size: 1.02rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
  color: #c7f9d4;
  font-size: 0.9rem;
  font-weight: 700;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 20px 40px;
  display: grid;
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 18px 40px rgba(2, 8, 23, 0.38);
}

.section-heading {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-heading h2,
.workspace-header h2 {
  margin: 5px 0 0;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.privacy-note {
  color: #bbf7d0;
  font-size: 0.82rem;
  white-space: nowrap;
}

.search-shell {
  position: relative;
  overflow: hidden;
}

.search-shell::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18), transparent 60%);
  pointer-events: none;
}

.mic-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.09);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #bbf7d0;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.mic-icon {
  font-size: 1.1rem;
}

.button-row,
.field-row,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.field-row { margin-top: 16px; }

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--muted);
  flex: 1;
  min-width: 220px;
}

input,
select,
textarea {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.13);
}

textarea {
  width: 100%;
  min-height: 340px;
  resize: vertical;
  line-height: 1.7;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 11px 18px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.button-row .btn,
.action-row .btn {
  flex: 1 1 150px;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: white; box-shadow: 0 12px 20px rgba(56, 189, 248, 0.24); }
.btn.secondary { background: rgba(56, 189, 248, 0.14); color: #dbeafe; }
.btn.ghost { background: rgba(255, 255, 255, 0.04); color: var(--text); }

.status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.09);
  color: #bae6fd;
  border: 1px solid rgba(56, 189, 248, 0.18);
  font-weight: 600;
}

.session-meter {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.82rem;
}

.session-meter span:first-child {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-size: 1.45rem;
  font-weight: 800;
}

.status.error {
  background: rgba(248, 113, 113, 0.12);
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.2);
}

.workspace-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.workspace-header h2 { margin: 0; }

.transcript-hint {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.tips-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 700px) {
  .workspace-header { flex-direction: column; align-items: flex-start; }
  .container { padding: 16px 14px 30px; }
  .card { padding: 16px; }
  .section-heading { flex-direction: column; }
  .privacy-note { white-space: normal; }
  .button-row,
  .action-row,
  .field-row { flex-direction: column; }
  .button-row .btn,
  .action-row .btn {
    width: 100%;
    flex: 1 1 auto;
  }
  label { min-width: 0; }
  textarea { min-height: 260px; }
}
