* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f7fb;
  color: #172033;
}
.app {
  width: min(920px, calc(100% - 32px));
  margin: 32px auto;
}
.card {
  background: #fff;
  border: 1px solid #dfe7f3;
  border-radius: 22px;
  padding: clamp(22px, 4vw, 40px);
  box-shadow: 0 18px 48px rgba(18, 35, 64, 0.08);
  margin-bottom: 20px;
}
.eyebrow {
  color: #114fa1;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
}
h1 { font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1.25; margin: 0 0 16px; }
.lead { color: #526173; font-size: 1.05rem; line-height: 1.8; margin: 0 0 28px; }
.field { margin-bottom: 24px; }
label { display: block; font-weight: 700; margin-bottom: 8px; }
select {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  border: 1px solid #c8d4e5;
  border-radius: 12px;
  background: #fff;
}
.recorder {
  border: 1px dashed #b8c8dd;
  border-radius: 18px;
  padding: 22px;
  text-align: center;
  background: #f9fbfe;
}
.status { font-weight: 700; color: #526173; }
.timer { font-size: 2.8rem; font-weight: 800; margin: 8px 0 18px; font-variant-numeric: tabular-nums; }
.buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  background: #e7edf6;
  color: #172033;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.primary { background: #114fa1; color: #fff; }
.btn.accent { background: #172033; color: #fff; }
a { color: #114fa1; font-weight: 700; }
.message {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #eef6ff;
  color: #163b6c;
  line-height: 1.7;
  white-space: pre-wrap;
}
audio { width: 100%; margin-top: 18px; }
.result h2 { margin-top: 0; }
dl { display: grid; grid-template-columns: 170px 1fr; gap: 12px 18px; }
dt { font-weight: 800; color: #526173; }
dd { margin: 0; line-height: 1.7; white-space: pre-wrap; }
@media (max-width: 640px) {
  .app { width: min(100% - 20px, 920px); margin: 10px auto; }
  .card { border-radius: 18px; }
  dl { grid-template-columns: 1fr; gap: 6px; }
  dt { margin-top: 12px; }
}

.topbar {
  max-width: 820px;
  margin: 0 auto 12px;
  text-align: right;
}
.topbar a {
  color: #64748b;
  font-size: 0.9rem;
  text-decoration: none;
}
.login-card {
  max-width: 520px;
  margin: 80px auto 0;
}
.login-form input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 1rem;
}
.message.error {
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #fecaca;
}
.btn.analyze { background: #0f766e; color: #fff; }
.small-note { color: #64748b; margin-top: -6px; }
.analysis-box {
  white-space: pre-wrap;
  line-height: 1.8;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
}
