:root {
  --forest: #1E5A47; --forest-2: #174536; --ink: #2B2A28; --sun: #F5C518; --bg: #F7F6F2;
  --card: #FFFFFF; --line: #E4E1D8; --muted: #6B6862; --danger: #A4262C; --ok: #1F7A3A;
  --radius: 14px; --gap: 16px;
  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.45; }
body { min-height: 100dvh; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 600; line-height: 1.2; margin: 0 0 8px; }
h1 { font-size: 26px; } h2 { font-size: 20px; } h3 { font-size: 17px; }
p { margin: 0 0 12px; }
a { color: var(--forest); }
.boot { padding: 40px 16px; color: var(--muted); }
.muted { color: var(--muted); font-size: 14px; }
.err { color: var(--danger); font-size: 14px; }
.okmsg { color: var(--ok); font-size: 14px; }

/* Layout: phone = bottom nav, desktop = sidebar */
.shell { display: grid; min-height: 100dvh; grid-template-columns: 1fr; }
.main { padding: 20px 16px calc(96px + env(safe-area-inset-bottom)); max-width: 760px; width: 100%; margin: 0 auto; }
.nav { position: fixed; inset-inline: 0; bottom: 0; background: var(--card); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); z-index: 10; }
.nav button { background: none; border: 0; padding: 6px 2px; display: grid; justify-items: center; gap: 2px; font-size: 12px; color: var(--muted); cursor: pointer; min-height: 48px; }
.nav button[aria-current="page"] { color: var(--forest); font-weight: 600; }
.nav .ico { font-size: 20px; line-height: 1; }
.nav .mic { background: var(--forest); color: #fff; width: 60px; height: 60px; border-radius: 50%; margin: -22px auto 0; display: grid; place-items: center; font-size: 26px; box-shadow: 0 4px 14px rgba(30,90,71,.35); }
.nav .mic[aria-current="page"] { background: var(--forest-2); color: var(--sun); }
.brand { display: none; }
@media (min-width: 900px) {
  .shell { grid-template-columns: 240px 1fr; }
  .nav { position: sticky; top: 0; height: 100dvh; border-top: 0; border-inline-end: 1px solid var(--line);
    grid-template-columns: 1fr; grid-auto-rows: min-content; align-content: start; gap: 4px; padding: 20px 12px; }
  .nav button { grid-auto-flow: column; justify-content: start; gap: 12px; font-size: 15px; padding: 10px 12px; border-radius: 10px; min-height: 44px; }
  .nav button[aria-current="page"] { background: #EEF3F0; }
  .nav .mic { width: auto; height: auto; border-radius: 10px; margin: 0 0 12px; padding: 12px; grid-auto-flow: column; justify-content: start; gap: 12px; font-size: 15px; box-shadow: none; order: -1; }
  .brand { display: block; padding: 4px 12px 16px; order: -2; }
  .main { padding: 32px 32px 48px; }
}

/* Wordmark: sunflower dot above the I */
.wordmark { font-weight: 600; color: var(--forest); font-size: 24px; letter-spacing: .04em; position: relative; display: inline-block; }
.wordmark .i { position: relative; }
.wordmark .i::before { content: ''; position: absolute; left: 50%; top: -5px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 2px var(--ink) inset; }

/* Cards, forms, buttons */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0 0 12px; }
.stack > * + * { margin-top: 12px; }
label { display: block; font-weight: 500; font-size: 14px; margin: 12px 0 6px; }
input, select, textarea { width: 100%; padding: 12px; border: 1px solid #CFCBC0; border-radius: 10px; background: #fff; font-size: 16px; }
textarea { min-height: 160px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 18px; min-height: 44px; font-weight: 600; cursor: pointer; background: #EEF3F0; color: var(--forest); text-decoration: none; }
.btn.primary { background: var(--forest); color: #fff; }
.btn.sun { background: var(--sun); color: var(--ink); }
.btn.danger { background: #FBEDEE; color: var(--danger); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .6; cursor: default; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.between { justify-content: space-between; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #EEF3F0; color: var(--forest); }
.pill.warn { background: #FFF6D6; color: #6B5200; }
.pill.late { background: #FBEDEE; color: var(--danger); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { border-bottom: 1px solid var(--line); padding: 12px 0; }
.list li:last-child { border-bottom: 0; }
.empty { text-align: center; padding: 28px 12px; }
.empty .flower { font-size: 34px; }
.body-preview { white-space: pre-wrap; background: #FAFAF7; border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: 15px; }
.rec-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--danger); margin-inline-end: 6px; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .rec-dot { animation: none; } }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg button { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 6px; min-height: 44px; cursor: pointer; }
.seg button[aria-pressed="true"] { border-color: var(--forest); background: #EEF3F0; color: var(--forest); font-weight: 600; }
.centre-auth { max-width: 420px; margin: 8vh auto 0; padding: 0 16px; }
