@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600&family=Space+Grotesk:wght@500;600&display=swap');

:root {
  --bg: #0f172a;
  --panel: #ffffff;
  --muted: #6b7280;
  --line: #e4e7ec;
  --primary: #0ea5e9;
  --primary-strong: #0284c7;
  --danger: #f97316;
  --success: #10b981;
  --warning: #facc15;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Manrope', Arial, sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.08), transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(16, 185, 129, 0.08), transparent 25%), var(--bg);
  color: #0f172a;
  min-height: 100vh;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

.hero {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.32), rgba(16, 185, 129, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f5f9ff;
  border-radius: var(--radius);
  padding: 28px 28px 32px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 6px;
}

h1 {
  font-family: 'Space Grotesk', 'Manrope', sans-serif;
  font-weight: 600;
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 2vw, 2.2rem);
}

h2,
h3 {
  font-family: 'Space Grotesk', 'Manrope', sans-serif;
  margin: 0;
  font-weight: 600;
}

.lede {
  margin: 0 0 14px;
  color: #e7f2ff;
  max-width: 760px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #f5f9ff;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
}

main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.panel {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 2px;
}

.session-panel .session-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.clock {
  font-family: 'Space Grotesk', 'Manrope', sans-serif;
  font-size: 3.1rem;
  font-weight: 700;
  color: #0f172a;
  background: linear-gradient(120deg, rgba(14, 165, 233, 0.12), rgba(15, 118, 110, 0.12));
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.session-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.muted {
  color: var(--muted);
}

.btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
  background: #f3f4f6;
  color: #0f172a;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary-strong);
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.25);
}

.btn.primary.ghost {
  background: #0ea5e912;
  color: var(--primary-strong);
  border-color: #0ea5e94b;
  box-shadow: none;
}

.btn.danger {
  background: var(--danger);
  color: #fff;
  border-color: #ea580c;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.22);
}

.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: #0f172a;
}

.archive-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-strong);
  font-weight: 700;
  text-decoration: none;
}

.archive-link:hover {
  text-decoration: underline;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn.huge {
  width: 100%;
  padding: 20px 16px;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}

.cta-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
}

.big-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  width: 100%;
}

.session-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.secondary-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.session-actions.secondary {
  width: 100%;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.instructions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn.small {
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 600;
}

.instructions-content {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hide-btn {
  align-self: flex-start;
}

.btn:not(:disabled):hover {
  transform: translateY(-1px);
}

.status-badge {
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  background: #f3f4f6;
  color: #0f172a;
  border: 1px solid var(--line);
  min-width: 110px;
  text-align: center;
}

.status-badge[data-tone='live'] {
  background: #0ea5e914;
  color: var(--primary-strong);
  border-color: #0ea5e94b;
}

.status-badge[data-tone='action'] {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
}

.status-badge[data-tone='success'] {
  background: #ecfdf3;
  color: #047857;
  border-color: #bbf7d0;
}

.status-badge[data-tone='error'] {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecdd3;
}

.toggles {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  cursor: pointer;
}

.toggle input {
  width: 18px;
  height: 18px;
}

.toggle.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.test-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.status-log {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.status-log li {
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  color: #0f172a;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-log li[data-tone='success'] {
  border-color: #bbf7d0;
  background: #ecfdf3;
  color: #065f46;
}

.status-log li[data-tone='error'] {
  border-color: #fecdd3;
  background: #fef2f2;
  color: #b91c1c;
}

.status-log li[data-tone='warn'],
.status-log li[data-tone='action'] {
  border-color: #fcd34d;
  background: #fffbeb;
  color: #854d0e;
}

.results-panel .results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

.result-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #f8fafc;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.card-actions {
  display: flex;
  gap: 8px;
}

.result-card textarea {
  width: 100%;
  min-height: 220px;
  background: #fff;
}

@media (max-width: 700px) {
  .panel-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .session-actions {
    width: 100%;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .clock {
    width: 100%;
  }
}
