:root {
  --forest: #124734;
  --forest-ink: #0a2a1f;
  --cream: #f6f3ec;
  --gold: #f5b700;
  --paper: #fffdf8;
  --ink: #15211b;
  --hairline: #e8e4dc;
  --muted: #5c6b63;
  --danger: #9b2c2c;
  --font: "Inter Tight", Inter, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(18, 71, 52, 0.12), transparent 60%),
    linear-gradient(180deg, #f7f4ee 0%, var(--cream) 48%, #f8f6f1 100%);
  min-height: 100vh;
}

.wall {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}
.wall-card {
  width: min(420px, 100%);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: 0 18px 40px rgba(10, 42, 31, 0.08);
}
.eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 700;
  color: var(--forest);
}
h1 { margin: 0 0 8px; font-size: 28px; color: var(--forest-ink); }
.lede { margin: 0 0 20px; color: var(--muted); line-height: 1.45; }

.btn {
  appearance: none;
  border: 1px solid var(--hairline);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.btn:hover { border-color: #cfc8b8; }
.btn.primary {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}
.btn.primary:hover { background: var(--forest-ink); }
.btn.danger { color: var(--danger); border-color: #e8c4c4; }
.btn.sm { padding: 6px 10px; font-size: 12px; }

.top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: 22px 28px 12px;
  border-bottom: 1px solid var(--hairline);
  background: rgba(255, 253, 248, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 5;
}
.top-meta { display: flex; gap: 14px; align-items: center; color: var(--muted); font-size: 13px; }
.link { color: var(--forest); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

.shell { max-width: 980px; margin: 0 auto; padding: 20px 20px 48px; }
.composer {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
}
.add-row, .cmd-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 8px;
}
.cmd-row { grid-template-columns: 1fr auto; margin-top: 0; flex: 1; }
.add-row input, .cmd-row input {
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  background: #fff;
}
.voice-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}
.voice-hint { font-size: 12px; color: var(--muted); }
.status-line { min-height: 1.2em; margin: 10px 0 0; font-size: 13px; color: var(--forest); }

.lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.col h2 {
  margin: 0 0 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.col h2 span { color: var(--forest); font-weight: 700; }
.todo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.todo-card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 12px 14px;
}
.todo-card.done-item { opacity: 0.72; }
.todo-title {
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--forest-ink);
}
.todo-notes { margin: 0 0 10px; color: var(--muted); font-size: 13px; white-space: pre-wrap; }
.todo-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.todo-edit {
  display: none;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: 8px;
}
.todo-card.editing .todo-edit { display: grid; }
.todo-card.editing .todo-view { display: none; }
.todo-edit input, .todo-edit textarea {
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
}
.todo-edit textarea { min-height: 60px; resize: vertical; }

@media (max-width: 800px) {
  .lists { grid-template-columns: 1fr; }
  .add-row { grid-template-columns: 1fr; }
  .top { flex-direction: column; align-items: flex-start; }
}

/* Identity hang helpers (mark / brand / listening) — Creative tokens */
.brand { display: flex; align-items: center; gap: 12px; }
.mark { display: block; border-radius: 8px; }
.wall { background: var(--forest-ink); }
.wall .wall-card { text-align: center; }
.wall .mark { margin: 0 auto 14px; }
.wall .btn.primary { width: 100%; }
#mic-btn.listening {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 183, 0, 0.35);
  background: #fff8e6;
}
.todo-card.done-item .todo-title { text-decoration: line-through; color: var(--muted); }
body:not(.wall) {
  background: #f7f4ee;
}
