:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #191919;
  background: #f7f7f5;
  color-scheme: light dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: #f7f7f5; }
.shell { max-width: 860px; margin: 0 auto; padding: 22px; }
.card { background: #fff; border: 1px solid #e6e6e3; border-radius: 16px; padding: 22px; box-shadow: 0 8px 30px rgba(0,0,0,.05); }
.header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .16em; color: #777; }
h1 { margin: 4px 0 6px; font-size: 25px; }
h2 { margin-top: 0; font-size: 18px; }
.sub, .muted { color: #777; }
.sub { margin: 0; font-size: 14px; line-height: 1.45; }
.badge { display: inline-flex; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 700; background: #f0f0ed; white-space: nowrap; }
.badge.live { background: #fdecec; color: #9d1f1f; }
.badge.processing { background: #fff2cf; color: #735800; }
.badge.ready { background: #e8f5eb; color: #286b36; }
.badge.failed { background: #fdecec; color: #9d1f1f; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 6px; }
input { width: 100%; border: 1px solid #ddd; border-radius: 8px; padding: 10px 11px; font: inherit; background: #fff; color: #191919; }
input:focus { outline: 2px solid #c9d7ff; outline-offset: 1px; border-color: #8eabf6; }
.recorder { margin: 18px 0; padding: 18px; border: 1px solid #e6e6e3; border-radius: 12px; text-align: center; background: #fbfbfa; }
.meter-wrap { height: 70px; overflow: hidden; }
#meter { width: 100%; height: 70px; }
.timer { font-variant-numeric: tabular-nums; font-size: 34px; font-weight: 650; letter-spacing: .03em; margin-top: 8px; }
.rec-text { color: #777; font-size: 13px; margin-top: 4px; }
.actions { display: flex; gap: 9px; flex-wrap: wrap; }
button { border: 1px solid #d8d8d5; border-radius: 9px; padding: 10px 15px; background: #fff; color: #191919; font-weight: 700; cursor: pointer; }
button.primary { background: #191919; color: white; border-color: #191919; }
button.danger { color: #a12a2a; }
button:disabled { opacity: .45; cursor: not-allowed; }
.progress-panel { margin-top: 18px; padding: 14px; border-radius: 10px; background: #f7f7f5; font-size: 13px; }
.progress-row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
#meetingId { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 55%; }
.message { margin-top: 8px; color: #666; line-height: 1.45; }
.message.error { color: #a12a2a; }
.result { margin-top: 22px; border-top: 1px solid #eee; padding-top: 20px; }
.result h3 { font-size: 14px; margin: 18px 0 7px; }
.result p, .result li { line-height: 1.55; font-size: 14px; }
pre { white-space: pre-wrap; word-break: break-word; font-family: inherit; line-height: 1.55; font-size: 13px; max-height: 420px; overflow: auto; background: #f7f7f5; padding: 12px; border-radius: 8px; }
.hidden { display: none !important; }
@media (max-width: 650px) { .shell { padding: 8px; } .card { padding: 16px; border-radius: 10px; } .grid { grid-template-columns: 1fr; gap: 0; } .header { flex-direction: column; } }
@media (prefers-color-scheme: dark) {
  :root { color: #e8e8e6; background: #191919; }
  body { background: #191919; }
  .card, input, button { background: #242424; color: #e8e8e6; border-color: #3a3a3a; }
  .recorder, .progress-panel, pre { background: #202020; border-color: #383838; }
  .sub, .muted, .rec-text, .message { color: #aaa; }
  .badge { background: #333; }
  button.primary { background: #e8e8e6; color: #191919; border-color: #e8e8e6; }
}
.checkline { display:flex; align-items:center; gap:7px; margin-top:8px; font-weight:500; color:#777; }
.checkline input { width:auto; margin:0; }
.recovery { margin: 0 0 16px; padding: 13px 14px; border: 1px solid #e7d7a9; border-radius: 10px; background: #fff8df; font-size: 13px; }
.recovery p { margin: 6px 0 10px; line-height: 1.45; }
#audioResult { width: 100%; margin: 12px 0; }
@media (prefers-color-scheme: dark) { .recovery { background:#382f16; border-color:#64551f; } .checkline { color:#aaa; } }
