
:root {
  color-scheme: dark;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #020617;
  color: #f8fafc;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 50% -10%, rgba(109, 40, 217, .58), transparent 44%),
    linear-gradient(160deg, #111827 0%, #020617 72%);
}
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
.shell {
  width: min(100%, 540px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(22px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}
.header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { color: #c4b5fd; font-size: 12px; font-weight: 800; letter-spacing: .22em; }
h1 { margin: 4px 0 0; font-size: 28px; letter-spacing: -.03em; }
.private {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px; border: 1px solid rgba(255,255,255,.11);
  border-radius: 999px; background: rgba(255,255,255,.07);
  color: #dbeafe; font-size: 12px;
}
.private svg { width: 15px; height: 15px; }
.main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 34px 0; }
.card {
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 26px;
  background: rgba(255,255,255,.075);
  box-shadow: 0 28px 75px rgba(0,0,0,.3);
  backdrop-filter: blur(20px);
  padding: 22px;
}
.login-card h2 { margin: 0; font-size: 23px; }
.muted { color: #94a3b8; line-height: 1.55; }
.field { margin-top: 18px; }
.field label { display: block; margin-bottom: 7px; color: #cbd5e1; font-size: 13px; font-weight: 600; }
.field input, .field select {
  width: 100%; min-height: 50px; padding: 0 14px;
  border: 1px solid rgba(255,255,255,.14); border-radius: 14px;
  outline: none; background: rgba(15,23,42,.76); color: white;
}
.field input:focus, .field select:focus { border-color: #a78bfa; box-shadow: 0 0 0 3px rgba(139,92,246,.17); }
.primary, .secondary, .danger {
  border: 0; border-radius: 14px; min-height: 50px; padding: 0 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 750;
}
.primary { width: 100%; margin-top: 20px; color: #0f172a; background: white; }
.secondary { color: white; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.13); }
.danger { color: #fecaca; background: rgba(239,68,68,.1); border: 1px solid rgba(248,113,113,.2); }
.link-button { border: 0; background: transparent; color: #c4b5fd; padding: 8px; }
.center { text-align: center; }
.intro { max-width: 380px; margin: 0 auto 32px; color: #cbd5e1; line-height: 1.6; }
.record-button {
  width: 168px; height: 168px; margin: 0 auto;
  border: 0; border-radius: 50%; color: white;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #8b5cf6, #4f46e5 55%, #2563eb);
  box-shadow: 0 0 0 13px rgba(139,92,246,.12), 0 30px 80px rgba(79,70,229,.52);
  transition: transform .15s ease;
}
.record-button:active { transform: scale(.96); }
.record-button svg { width: 68px; height: 68px; }
.record-button.recording { background: #ef4444; box-shadow: 0 0 0 13px rgba(239,68,68,.12), 0 30px 80px rgba(239,68,68,.4); }
.record-label { margin-top: 26px; font-weight: 700; }
.timer { margin-top: 22px; font: 700 34px ui-monospace, SFMono-Regular, Menlo, monospace; }
.status {
  margin: 16px 0 0; padding: 13px 14px; border-radius: 14px;
  font-size: 14px; line-height: 1.5;
}
.status.error { color: #fde68a; border: 1px solid rgba(252,211,77,.22); background: rgba(245,158,11,.1); }
.status.info { color: #bfdbfe; border: 1px solid rgba(96,165,250,.2); background: rgba(59,130,246,.09); }
.status.success { color: #a7f3d0; border: 1px solid rgba(52,211,153,.2); background: rgba(16,185,129,.1); }
.offline { margin-top: 18px; }
.recording-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.eyebrow { color: #c4b5fd; text-transform: uppercase; letter-spacing: .15em; font-size: 11px; font-weight: 800; }
.recorded-at { margin-top: 6px; font-size: 18px; font-weight: 700; }
.pill { border-radius: 999px; background: rgba(255,255,255,.1); padding: 7px 11px; font-family: ui-monospace, monospace; }
audio { width: 100%; margin-top: 18px; }
.actions { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin-top: 18px; }
.actions .danger { width: 52px; padding: 0; }
.success-mark {
  width: 58px; height: 58px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; background: #34d399; color: #052e16; font-size: 28px; font-weight: 900;
}
.success-title { margin: 18px 0 0; font-size: 22px; line-height: 1.35; }
.transcript { margin-top: 15px; color: #dbeafe; white-space: pre-wrap; line-height: 1.55; }
.top-actions { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; }
.tenant { flex: 1; }
.footer {
  border: 1px solid rgba(255,255,255,.09); border-radius: 18px;
  background: rgba(255,255,255,.045); padding: 15px;
  color: #94a3b8; font-size: 12px; line-height: 1.55;
}
.footer strong { color: #e2e8f0; }
.boot { min-height: 100dvh; display: flex; align-items: center; justify-content: center; gap: 12px; color: #cbd5e1; }
.spinner {
  width: 22px; height: 22px; border: 3px solid rgba(255,255,255,.16);
  border-top-color: #a78bfa; border-radius: 50%; animation: spin .75s linear infinite;
}
.hidden { display: none !important; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 420px) {
  .shell { padding-left: 16px; padding-right: 16px; }
  .card { padding: 19px; }
}
