/* Recorder demo — shadcn/ui-style, light + dark, mobile-first. */
:root {
  --bg: #fafafa; --fg: #0a0a0a; --card: #fff; --muted: #f5f5f5;
  --mfg: #737373; --border: #e5e5e5; --primary: #0a0a0a; --pfg: #fafafa; --accent: #dc2626;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0a0a0a; --fg: #fafafa; --card: #131313; --muted: #1f1f1f;
          --mfg: #a3a3a3; --border: #262626; --primary: #fafafa; --pfg: #0a0a0a; --accent: #ef4444; }
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "Segoe UI", Inter, system-ui, sans-serif;
       background: var(--bg); color: var(--fg); }
.hidden { display: none !important; }
[hidden] { display: none !important; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem 1.1rem; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--bg); }
.brand { font-weight: 600; } .brand small { color: var(--mfg); font-weight: 400; margin-left: .35rem; }
.profile { display: flex; align-items: center; gap: .6rem; }
.avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.avatar.initial { display: grid; place-items: center; background: var(--primary); color: var(--pfg); font-weight: 600; }
.who { display: flex; flex-direction: column; line-height: 1.15; }
.who small { color: var(--mfg); font-size: .75rem; }
.btn { min-height: 38px; padding: 0 .9rem; font: inherit; border-radius: .5rem; cursor: pointer;
  border: 1px solid var(--border); background: var(--card); color: var(--fg); text-decoration: none;
  display: inline-flex; align-items: center; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--mfg); }

.wrap { max-width: 30rem; margin: 0 auto; padding: 1.5rem 1.1rem 3rem; }
.recorder { background: var(--card); border: 1px solid var(--border); border-radius: .9rem;
  padding: 1.5rem; text-align: center; }
.timer { font-size: 2.6rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.rec-btn { margin: 1rem auto .5rem; min-height: 56px; min-width: 56px; padding: 0 1.6rem;
  font: inherit; font-size: 1.05rem; font-weight: 600; border-radius: 999px; cursor: pointer;
  border: none; background: var(--accent); color: #fff; }
.rec-btn.on { background: #0a0a0a; }
.status { color: var(--mfg); font-size: .9rem; margin: .3rem 0 0; }
.list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; flex-direction: column; gap: .7rem; }
.item { background: var(--card); border: 1px solid var(--border); border-radius: .7rem; padding: .8rem;
  display: grid; grid-template-columns: 1fr auto; gap: .5rem; align-items: center; }
.item .lbl { display: flex; flex-direction: column; }
.item .lbl small { color: var(--mfg); font-variant-numeric: tabular-nums; }
.item audio { grid-column: 1 / -1; width: 100%; height: 36px; }
.hint { color: var(--mfg); font-size: .85rem; text-align: center; margin-top: 1.2rem; }
.hint a { color: inherit; }
