:root {
  font-family: system-ui, sans-serif;
  color: #242a22;
  background: #f5f4ed;
  --accent: #354e38;
  --accent-hover: #263d2a;
  --line: #dfdfd3;
  --muted: #565e51;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.shell { width: min(100% - 2rem, 45rem); margin: 0 auto; padding-bottom: 4rem; }
.topbar, .row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.topbar { min-height: 5rem; justify-content: space-between; border-bottom: 1px solid var(--line); margin-bottom: 1.65rem; }
.brand { color: inherit; text-decoration: none; font-family: Georgia, serif; font-weight: bold; font-size: 2rem; letter-spacing: -.08em; }
.brand span { color: #597758; }
.panel { background: #fdfcf8; border: 1px solid var(--line); border-radius: 1.2rem; padding: clamp(1.15rem, 5vw, 2rem); }
.login-panel { max-width: 29rem; }
h1, h2 { margin: 0; font-family: Georgia, serif; font-weight: 500; letter-spacing: -.035em; }
h1 { font-size: clamp(1.85rem, 6vw, 2.65rem); margin-bottom: 1.3rem; }
h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
.voice { display: flex; align-items: center; gap: .9rem; }
.mic { display: inline-block; width: .57rem; height: .85rem; border: 1.5px solid currentColor; border-radius: .5rem; }
.recording .mic { width: .65rem; height: .65rem; background: currentColor; border-radius: .12rem; }
time { color: var(--muted); font-variant-numeric: tabular-nums; }
.review { margin-top: 1rem; }
audio { max-width: 100%; margin-bottom: .5rem; }
form { display: grid; gap: .6rem; }
#text-form { margin-top: 1.15rem; padding-top: 1.15rem; border-top: 1px solid var(--line); }
label { font-weight: 600; font-size: .9rem; }
textarea, input { width: 100%; font: inherit; color: inherit; border: 1px solid #c9cdbf; background: #fff; padding: .7rem .8rem; border-radius: .55rem; }
textarea { min-height: 5rem; resize: vertical; }
button { min-height: 2.6rem; padding: .58rem .85rem; border: 1px solid transparent; border-radius: .55rem; font: inherit; font-size: .92rem; font-weight: 650; cursor: pointer; justify-self: start; }
button:disabled { cursor: default; opacity: .58; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #567154; outline-offset: 3px; }
.primary { display: inline-flex; align-items: center; gap: .55rem; background: var(--accent); color: #fff; }
.primary:hover:not(:disabled) { background: var(--accent-hover); }
.secondary { background: #e8eee3; color: #314835; }
.secondary:hover:not(:disabled), .quiet:hover:not(:disabled) { background: #dce5d8; }
.quiet { color: #354e38; background: transparent; padding-inline: .5rem; }
.status { color: var(--muted); margin: .75rem 0 0; font-size: .9rem; }
.status:empty { display: none; }
.error { color: #9c3d2e; }
.history { margin-top: 1.75rem; }
.section-heading { justify-content: space-between; }
.capture-list { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; gap: .65rem; }
.capture-list li { padding: 1rem 1.15rem; border: 1px solid var(--line); background: #fdfcf8; border-radius: .8rem; overflow-wrap: anywhere; }
.capture-list h3 { margin: .5rem 0 .4rem; font-size: 1.02rem; }
.capture-list p { margin: .45rem 0; }
.transcript { white-space: pre-wrap; }
.detail { color: var(--muted); font-size: .88rem; }
.entry-heading { justify-content: space-between; color: var(--muted); font-size: .85rem; }
.capture-list .quiet { min-height: 2.25rem; }
.edit-form { margin-top: .5rem; }
