[hidden] { display: none !important; }

.muted { color: var(--muted); font-size: 0.9rem; }

/* ===== SECTIONS ===== */
.section-h {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 600;
  margin: 0;
}
#view-list, #view-detail { display: flex; flex-direction: column; gap: 0.85rem; }

.view-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* ===== BUTTONS ===== */
button {
  appearance: none;
  font-family: inherit;
  cursor: pointer;
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  min-height: 44px;
  transition: border-color 0.15s, transform 0.1s;
}
button:hover { border-color: rgba(96, 165, 250, 0.45); }
button:active { transform: scale(0.98); }
button:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--heat-3), var(--heat-12));
  color: #07140b;
  border: 0;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.btn-primary:hover { filter: brightness(1.05); border: 0; }

.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--fg);
}

.btn-danger {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--fg);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.btn-danger:hover { border-color: rgba(239, 68, 68, 0.6); color: #fca5a5; }

.back-btn {
  background: transparent;
  border: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 0.75rem;
  min-height: 36px;
  color: var(--muted);
}
.back-btn:hover { color: var(--fg); border-color: rgba(96, 165, 250, 0.45); }

#rec-btn.recording {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}

.row {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  flex-wrap: wrap;
}

#rec-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  padding: var(--space-3) 0;
}
#rec-status #rec-time {
  font: 200 var(--t-hero) / 1 var(--font-sans);
  letter-spacing: -0.04em;
  color: var(--fg);
  font-feature-settings: "tnum";
}

/* ===== DATES LIST ===== */
#dates-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.date-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.date-item:hover { border-color: rgba(96, 165, 250, 0.45); }
.date-item:active { transform: scale(0.99); }
.date-item:focus { outline: 2px solid var(--accent-cool); outline-offset: 1px; }
.date-label { font-size: 0.95rem; font-weight: 500; }
.date-count {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.72rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
}

/* ===== DETAIL VIEW ===== */
#detail-voice {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.voice-chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.voice-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.72rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.04em;
}
.voice-head__left, .voice-head__right { display: flex; align-items: center; gap: 0.5rem; }
.voice-chip audio { width: 100%; height: 36px; }

.entry-delete {
  background: transparent;
  border: 1px solid transparent;
  color: var(--dim);
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: 999px;
  font-size: 0.9rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.entry-delete:hover {
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.4);
}
.voice-body {
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
  color: var(--fg);
}

#voice-preview {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--accent-cool);
  border-radius: 14px;
  padding: 0.85rem;
}
.preview-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.04em;
}
textarea#preview-text {
  width: 100%;
  min-height: 120px;
  background: var(--surface-2);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font-size: 0.95rem;
  line-height: 1.45;
  font-family: inherit;
  resize: vertical;
}
textarea#preview-text:focus {
  outline: 2px solid var(--accent-cool);
  outline-offset: 1px;
  border-color: var(--accent-cool);
}

textarea#detail-text {
  flex: 1;
  min-height: 240px;
  width: 100%;
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.95rem;
  font-size: 1rem;
  line-height: 1.5;
  resize: vertical;
  font-family: inherit;
}
textarea#detail-text:focus {
  outline: 2px solid var(--accent-cool);
  outline-offset: 1px;
  border-color: var(--accent-cool);
}

/* ===== TOAST ===== */
#toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.2rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 1.1rem;
  z-index: 20;
  max-width: calc(100vw - 2rem);
  text-align: center;
  font-size: 0.9rem;
}
#toast.error { border-color: rgba(239, 68, 68, 0.6); }
#toast.ok { border-color: rgba(34, 197, 94, 0.6); }

