/* Meeting Notes — dark, high contrast, huge touch targets, phone-first. */
:root {
  --bg: #0d1117;
  --panel: #161c24;
  --panel2: #1d2632;
  --text: #eef2f6;
  --sub: #9fb0c1;
  --accent: #4da3ff;
  --red: #ff4d4f;
  --green: #3fb96f;
  --line: #2a3542;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.45;
  -webkit-tap-highlight-color: transparent;
}
.view { max-width: 720px; margin: 0 auto; padding: 18px 16px 48px; }
h1 { font-size: 26px; margin: 0; }
.sub { color: var(--sub); font-size: 16px; }
.error { color: #ff8a8b; font-size: 17px; }

.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }

.btn {
  appearance: none; border: 1px solid var(--line); background: var(--panel2);
  color: var(--text); border-radius: 14px; padding: 14px 20px;
  font-size: 18px; font-weight: 600; cursor: pointer; min-height: 56px;
}
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #06121f; }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.danger-ghost { background: transparent; border-color: var(--red); color: #ff8a8b; }
.btn.ghost { background: transparent; }
.btn.small { min-height: 48px; padding: 10px 16px; font-size: 16px; }
.btn.big { width: 100%; font-size: 20px; padding: 18px; }
.btn.record {
  width: 100%; font-size: 24px; font-weight: 800; padding: 26px;
  background: var(--red); border-color: var(--red); color: #fff; border-radius: 20px;
  min-height: 84px;
}
.btn.record.recording { background: #7a1d1e; border-color: var(--red); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,77,79,.45);} 50% { box-shadow: 0 0 0 14px rgba(255,77,79,0);} }

/* login */
.login-box { text-align: center; padding-top: 12vh; }
.app-mark { font-size: 64px; }
.login-box h1 { font-size: 34px; margin: 10px 0 4px; }
.login-box input {
  width: 100%; font-size: 22px; padding: 18px; margin: 18px 0 12px;
  background: var(--panel); color: var(--text); border: 1px solid var(--line);
  border-radius: 14px; text-align: center;
}

/* recorder */
.record-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  padding: 20px; margin-bottom: 26px;
}
.record-card input[type="text"] {
  width: 100%; font-size: 19px; padding: 14px; margin-bottom: 8px;
  background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 12px;
}
.timer { font-size: 54px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; margin: 6px 0 0; }
.rec-state { text-align: center; color: var(--sub); margin: 2px 0 16px; }
.rec-buttons { display: grid; gap: 12px; }
progress { width: 100%; height: 18px; }
#upload-box { margin-top: 14px; }

/* library */
.lib-head { font-size: 21px; margin: 0 0 10px; }
.meeting-item {
  display: block; width: 100%; text-align: left; background: var(--panel);
  border: 1px solid var(--line); border-radius: 16px; padding: 16px;
  margin-bottom: 10px; color: var(--text); cursor: pointer;
}
.meeting-item .t { font-size: 19px; font-weight: 700; display: block; }
.meeting-item .m { color: var(--sub); font-size: 15px; display: block; margin-top: 3px; }
.chip {
  display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 10px;
  border-radius: 999px; margin-left: 8px; vertical-align: 2px;
}
.chip.done { background: #173d26; color: #7be2a3; }
.chip.processing { background: #3a3417; color: #ffd97a; }
.chip.error { background: #3d1717; color: #ff9a9b; }

/* detail */
.d-title { font-size: 24px; margin: 4px 0 2px; }
.processing { text-align: center; padding: 40px 0; }
.spinner {
  width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 50%;
  border: 6px solid var(--line); border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.player-box, .sec {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px; margin-top: 14px;
}
.player-box audio { width: 100%; }
.sec-head {
  font-size: 15px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 10px;
}
.body-text { margin: 0; white-space: pre-wrap; }
.transcript { color: var(--sub); font-size: 16px; }
.bullets { margin: 0; padding-left: 22px; }
.bullets li { margin-bottom: 8px; }
.action {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px;
  background: var(--panel2);
}
.action .task { font-weight: 700; }
.action .meta { color: var(--sub); font-size: 15px; margin-top: 3px; }
.action.mine { border-color: var(--accent); }
.mine-badge {
  background: var(--accent); color: #06121f; font-size: 13px; font-weight: 800;
  padding: 2px 9px; border-radius: 999px; margin-left: 8px; vertical-align: 2px;
}
