:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --border: #e3e0da;
  --text: #23201c;
  --text-muted: #6b655c;
  --accent: #2f6f4e;
  --accent-strong: #245840;
  --danger: #b3261e;
  --highlight-bg: #fdf6e3;
  --highlight-border: #efe3c4;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  flex-wrap: wrap;
}
header h1 { font-size: 1.05rem; margin: 0; font-weight: 600; }
header nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin-right: 1rem;
  font-size: 0.9rem;
}
header nav a.active, header nav a:hover { color: var(--accent); font-weight: 600; }

main { max-width: 720px; margin: 1.75rem auto; padding: 0 1.25rem; }

h2 { font-size: 1rem; margin: 0 0 0.9rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.35rem; }

select, textarea, input[type='text'] {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  font: inherit;
  background: #fff;
  color: var(--text);
}
textarea { min-height: 8rem; resize: vertical; }

button {
  font: inherit;
  padding: 0.55rem 1.1rem;
  border-radius: 7px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}
button:hover:not(:disabled) { background: var(--accent-strong); }
button:disabled { opacity: 0.5; cursor: not-allowed; }
button.secondary { background: #fff; color: var(--text); border-color: var(--border); }
button.danger { background: #fff; color: var(--danger); border-color: #e8c9c7; }
button.recording { background: var(--danger); }

.row { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.row-spaced { margin-top: 0.9rem; }
.field { margin-top: 1rem; }

.status { font-size: 0.875rem; color: var(--text-muted); min-height: 1.4rem; }
.status.error { color: var(--danger); }

.hint {
  background: var(--highlight-bg);
  border: 1px solid var(--highlight-border);
  border-radius: 8px;
  padding: 0.8rem 0.95rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.hint strong { display: block; margin-bottom: 0.3rem; }
.hint blockquote {
  margin: 0.5rem 0 0;
  padding-left: 0.8rem;
  border-left: 3px solid #e0d0a0;
  font-style: italic;
}

audio { width: 100%; margin-top: 0.9rem; }

ul.item-list { list-style: none; padding: 0; margin: 0; }
ul.item-list li {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}
.item-name { font-weight: 600; }
.item-meta { font-size: 0.82rem; color: var(--text-muted); }

.timer { font-variant-numeric: tabular-nums; font-size: 1.35rem; font-weight: 600; }
.empty { color: var(--text-muted); font-size: 0.9rem; }
