/* Mhina Lukurunge — design system
   Brand: "striking but calm" · Pine (deep teal-green) accent · flat, no neon.
   Fonts self-hosted (see public/fonts/README.md) — no external CDN. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/space-grotesk-400.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/space-grotesk-500.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/jetbrains-mono-400.woff2") format("woff2"); }

:root {
  /* Pine — deep teal-green accent, warm-neutral base */
  --bg: #F5F6F2;
  --surface: #FFFFFF;
  --surface-2: #ECEEE8;
  --text: #17211E;
  --muted: #5C6660;
  --border: #E1E4DD;
  --accent: #0F7C66;
  --accent-strong: #0B5C4B;
  --accent-soft: #DCEDE7;
  /* Filled accent surfaces (buttons, send, FAB, own chat bubble) need their own
     pair. White on --accent is 5.13:1 in light (passes) but only 2.58:1 in DARK,
     where --accent is a light mint — that failed WCAG AA. These tokens are
     comfortable in both: 7.93:1 light, 7.43:1 dark. */
  --accent-fill: #0B5C4B;
  --accent-fill-hover: #094A3C;
  --on-accent: #FFFFFF;

  --maxw: 1040px;
  --radius: 12px;
  --font-head: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1613;
    --surface: #16211C;
    --surface-2: #1C2A24;
    --text: #E9EFEB;
    --muted: #93A19A;
    --border: #26332C;
    --accent: #3FB39A;
    --accent-strong: #63C7B0;
    --accent-soft: #172A24;
    /* on dark, accent-strong is a light mint — flip to dark ink on the accent */
    --accent-fill: #3FB39A;
    --accent-fill-hover: #63C7B0;
    --on-accent: #06110E;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 96px;
}
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 500; line-height: 1.2; }
a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--font-mono); }

/* ---- floating top menu (desktop) ---- */
.nav { position: sticky; top: 14px; z-index: 40; display: flex; justify-content: center; }
.island {
  display: flex; align-items: center; gap: 6px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 10px 7px 18px;
  box-shadow: 0 8px 26px rgba(0,0,0,0.10);
}
.brand { font-family: var(--font-head); font-weight: 500; font-size: 17px; color: var(--text); margin-right: 8px; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-links a {
  color: var(--muted); font-size: 14px; padding: 6px 13px; border-radius: 999px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-links a:hover { color: var(--accent-strong); background: var(--accent-soft); text-decoration: none; }
.nav-links a.active { color: var(--accent-strong); background: var(--accent-soft); }

.search-trigger {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; margin-left: 4px; padding: 0;
  border: none; border-radius: 999px; background: transparent; color: var(--muted);
  cursor: pointer; transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.search-trigger:hover { color: var(--accent-strong); background: var(--accent-soft); }

/* ---- site search overlay ---- */
.search-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; justify-content: center;
  padding: 12vh 16px 16px;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  backdrop-filter: saturate(1.2) blur(6px);
}
.search-overlay[hidden] { display: none; }
.search-panel {
  width: 100%; max-width: 560px; max-height: 70vh;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  overflow: hidden;
}
.search-input-row {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--border); flex: none;
}
.search-input-row svg { flex: none; color: var(--muted); }
.search-input {
  flex: 1; min-width: 0; border: none; background: none; outline: none;
  font-size: 16px; color: var(--text); font-family: var(--font-body);
}
.search-input::placeholder { color: var(--muted); }
.search-close {
  flex: none; font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  border: 1px solid var(--border); border-radius: 6px; padding: 3px 7px;
  background: var(--surface-2); cursor: pointer;
}
.search-close:hover { color: var(--text); }
.search-results { overflow-y: auto; }
.search-result {
  display: flex; flex-direction: column; gap: 3px; padding: 10px 16px;
  border-bottom: 1px solid var(--border); text-decoration: none;
}
.search-result:last-child { border-bottom: none; }
.search-result:hover, .search-result.active { background: var(--accent-soft); text-decoration: none; }
.search-type { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.search-result-title { font-family: var(--font-head); font-weight: 500; font-size: 15px; color: var(--text); }
.search-result-excerpt { font-size: 13px; line-height: 1.5; color: var(--muted); }
.search-result mark { background: none; color: var(--accent-strong); font-weight: 600; }
.search-empty { padding: 24px 16px; text-align: center; color: var(--muted); font-size: 14px; }

@media (max-width: 760px) {
  .search-overlay { padding: 8vh 12px 12px; }
}

/* ---- buttons ---- */
.btn {
  display: inline-block; font-size: 14px; padding: 9px 18px; border-radius: var(--radius);
  border: 1px solid var(--border); color: var(--text); background: var(--surface);
  transition: transform 0.15s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.btn:hover { text-decoration: none; border-color: var(--muted); transform: translateY(-1px); }
.btn-accent { background: var(--accent-fill); color: var(--on-accent); border-color: var(--accent-fill); }
.btn-accent:hover { background: var(--accent-fill-hover); border-color: var(--accent-fill-hover); color: var(--on-accent); }
.btn-sm { padding: 6px 13px; font-size: 13px; }

/* ================= hero stage =================
   Editorial, centre-weighted: warm bone canvas, display headline, a giant
   decorative surname behind, the portrait standing on the section's own bottom
   edge. Pine stays the accent. Motion is entrance-only + a whisper of scroll
   parallax where the browser supports it. */

.hero-stage {
  --hero-bg: #E7E2D4;      /* warm bone — sits with pine, reads as paper */
  --hero-ink: #141D1A;
  --hero-muted: #4A544E;
  --hero-line: #CEC7B5;

  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-top: -68px;       /* slide up under the floating nav island */
  padding-top: 68px;
  background: var(--hero-bg);
  color: var(--hero-ink);
  border-bottom: 1px solid var(--hero-line);
}

@media (prefers-color-scheme: dark) {
  .hero-stage {
    --hero-bg: #0B1210;
    --hero-ink: #E9EFEB;
    --hero-muted: #8D9B94;
    --hero-line: #1E2A25;
  }
}

.hero-wrap {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 24px 0;
  min-height: min(88svh, 840px);
  display: flex;
  flex-direction: column;
}

/* ---- micro meta row ---- */
.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--hero-muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hero-line);
}
.hero-avail { display: inline-flex; align-items: center; gap: 7px; }
.hero-avail i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

/* ---- display headline ---- */
.hero-head {
  position: relative;
  z-index: 3;
  margin: clamp(14px, 2.6vh, 30px) 0 0;
  font-size: clamp(30px, 4.4vw, 60px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 500;
  max-width: 21ch;   /* holds the headline to two lines on desktop */
}
.hero-head .accent { color: var(--accent-strong); white-space: nowrap; }

/* ---- giant decorative surname, behind everything ---- */
.hero-wordmark {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  z-index: 0;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 10.5vw;
  line-height: 1;
  letter-spacing: -0.05em;
  white-space: nowrap;
  color: var(--hero-ink);
  opacity: .045;   /* a whisper — it must not compete with the copy over it */
  pointer-events: none;
  user-select: none;
}
@media (prefers-color-scheme: dark) { .hero-wordmark { opacity: .06; } }

/* ---- copy flanking the portrait ---- */
.hero-body {
  position: relative;
  z-index: 3;
  margin-top: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(240px, 30vw, 440px) minmax(0, 1fr);
  gap: 24px;
  align-items: end;
  padding-bottom: 0;   /* the portrait stands on the section's bottom border */
}

/* Side columns float at mid-torso height. Bottom-aligning them left a dead
   gap under the headline, since the portrait sets the row height. */
.hero-say, .proof { align-self: center; }

.hero-say .lead {
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.6;
  color: var(--hero-muted);
  max-width: 34ch;
  margin: 0 0 20px;
}
.hero-say .cta { display: flex; gap: 10px; flex-wrap: wrap; }

.hero-stage .btn:not(.btn-accent) {
  background: transparent;
  border-color: var(--hero-line);
  color: var(--hero-ink);
}
.hero-stage .btn:not(.btn-accent):hover { border-color: var(--hero-muted); }
/* .btn-accent needs no hero override — the global --accent-fill / --on-accent
   pair is already AA-compliant in both colour schemes. */

/* proof: a quiet stacked list, right of the portrait */
.proof {
  list-style: none;
  margin: 0;
  padding: 0;
  justify-self: end;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--hero-muted);
}
.proof li { padding: 5px 0; border-top: 1px solid var(--hero-line); }
.proof li:first-child { border-top: none; }

/* ---- portrait: centre column of .hero-body, standing on the ground line.
   In-flow (not absolute) so it can never collide with the headline. ---- */
.hero-figure {
  position: relative;
  z-index: 2;
  justify-self: center;
  align-self: end;
  pointer-events: none;
}
.hero-figure img {
  display: block;
  width: auto;
  height: clamp(360px, 71svh, 720px);
  object-fit: contain;
  object-position: bottom center;
}

/* ---- motion: entrance, then a whisper of parallax ---- */
.hero-figure {
  opacity: 0;
  animation: fig-rise 0.9s var(--ease) 0.12s forwards;
}
@keyframes fig-rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Scroll-linked drift — additive, silently absent where unsupported. */
/* Only the decorative wordmark drifts. The portrait must NOT: its whole point is
   standing on the ground line, and any parallax slides it off that line (and
   exposes the flat bottom crop below it). */
@supports (animation-timeline: scroll()) {
  .hero-wordmark {
    animation-name: drift-up;
    animation-timeline: scroll(root block);
    animation-range: 0 100vh;
    animation-duration: auto;
    animation-fill-mode: both;
    animation-delay: 0s;
  }
  @keyframes drift-up { to { transform: translateX(-50%) translateY(-26px); } }
}

@media (max-width: 900px) {
  .hero-stage { margin-top: -60px; padding-top: 60px; }
  .hero-wrap { min-height: 0; padding: 22px 20px 0; }
  .hero-meta { font-size: 10px; letter-spacing: .1em; }
  .hero-role { display: none; }
  .hero-head { font-size: clamp(34px, 10.5vw, 62px); max-width: none; margin-top: 26px; }
  .hero-wordmark { font-size: 26vw; bottom: 30%; opacity: .05; }

  /* portrait moves back into flow, below the copy */
  .hero-body {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 26px;
    padding-bottom: 0;
  }
  /* copy → proof → portrait, so he still stands on the ground line */
  .hero-say   { order: 1; align-self: stretch; }
  .proof      { order: 2; align-self: stretch; }
  .hero-figure { order: 3; }
  .hero-say .lead { max-width: none; }

  .proof {
    justify-self: stretch;
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
    font-size: 10.5px;
  }
  .proof li { padding: 4px 10px; border: 1px solid var(--hero-line); border-radius: 999px; }
  .proof li:first-child { border: 1px solid var(--hero-line); }

  .hero-figure {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    margin: 18px auto 0;
    width: max-content;
  }
  .hero-figure img { height: clamp(320px, 54svh, 470px); }
  @keyframes fig-rise {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* ---- hero ---- */
.hero { padding: 64px 0 34px; }
.hero h1 { font-size: clamp(30px, 5vw, 50px); margin: 0 0 18px; letter-spacing: -0.02em; }
.hero .accent {
  color: var(--accent-strong);
  background: linear-gradient(var(--accent-strong), var(--accent-strong)) no-repeat left bottom / 0% 2px;
  transition: background-size 0.4s var(--ease);
  padding-bottom: 2px;
}
.hero h1:hover .accent { background-size: 100% 2px; }
.hero p { font-size: clamp(16px, 2.2vw, 20px); color: var(--muted); max-width: 62ch; margin: 0 0 26px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* subtle entrance (skippable) */
.reveal { opacity: 0; transform: translateY(10px); animation: rise 0.55s var(--ease) forwards; }
.reveal.d1 { animation-delay: 0.06s; }
.reveal.d2 { animation-delay: 0.12s; }
.reveal.d3 { animation-delay: 0.18s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---- sections ---- */
.section { padding: 30px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.section-head h2 { font-size: 20px; margin: 0; }
.section-head a { font-size: 13px; color: var(--muted); }
.section-head a:hover { color: var(--accent-strong); }

/* ---- cards ---- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 8px; color: var(--text);
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
a.card:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 10px 26px rgba(0,0,0,0.08); }
.card h3 { font-size: 16px; margin: 0; }
.card p { font-size: 14px; color: var(--muted); margin: 0; }
.card .when { font-size: 12px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag { font-size: 11px; color: var(--accent-strong); background: var(--accent-soft); border-radius: 6px; padding: 3px 9px; }

/* ---- article header (project / post) ---- */
.article-head { padding: 60px 0 8px; }
.article-head h1 { font-size: clamp(26px, 4vw, 40px); margin: 0 0 12px; letter-spacing: -0.01em; }
.article-head .lead { font-size: 18px; color: var(--muted); max-width: 65ch; margin: 0 0 16px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.meta .chip { font-size: 12px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 3px 11px; }
.meta .chip.live { color: var(--accent-strong); background: var(--accent-soft); border-color: transparent; }
.chip-views { display: inline-flex; align-items: center; gap: 5px; }
.chip-views svg { width: 13px; height: 13px; }
.link-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 14px; margin-bottom: 8px; }

/* ---- prose (rendered markdown) ---- */
.prose { font-size: 16.5px; max-width: 72ch; }
.prose h2 { font-size: 22px; margin: 34px 0 12px; }
.prose h3 { font-size: 18px; margin: 26px 0 10px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose img { display: block; width: 100%; border: 1px solid var(--border); border-radius: 10px; margin: 10px 0; }
.prose strong { font-weight: 500; }
.prose code { font-family: var(--font-mono); font-size: 0.88em; background: var(--surface-2); padding: 1px 6px; border-radius: 5px; }
.prose blockquote { margin: 0 0 16px; padding: 4px 0 4px 16px; border-left: 3px solid var(--accent); color: var(--muted); }
.prose a { text-decoration: underline; text-underline-offset: 2px; }

/* ---- comments ---- */
.comments { max-width: 72ch; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border); }
.comments h2 { font-size: 18px; margin: 0 0 16px; }
.flash { background: var(--accent-soft); color: var(--accent-strong); border-radius: var(--radius); padding: 10px 14px; font-size: 14px; margin-bottom: 16px; }
/* The composer now sits *below* the conversation, so the margin flips. When it
   is moved under a comment to reply, the indent and rule tie it to the thread. */
.cform { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-top: 26px; }
.cform-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-family: var(--font-head); font-weight: 500; font-size: 15px; color: var(--text);
  margin: 0 0 12px;
}
.linkish { background: none; border: none; padding: 0; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; text-decoration: underline; }
.linkish:hover { color: var(--accent-strong); }
.comment-body > .cform { margin-left: 0; margin-top: 14px; border-left: 2px solid var(--accent); }
.cform label { display: block; font-size: 12px; color: var(--muted); margin: 0 0 4px; }
.cform input, .cform textarea {
  width: 100%; font: inherit; font-size: 14px; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 8px; padding: 8px 11px; margin-bottom: 10px;
}
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cform .hp { position: absolute; left: -9999px; }
.cform .note { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.cform .note.is-error { color: #a3271f; }
@media (prefers-color-scheme: dark) { .cform .note.is-error { color: #f0938a; } }

.comment { display: flex; gap: 12px; padding: 16px 0; border-top: 1px solid var(--border); }
.comment:first-of-type { border-top: none; padding-top: 4px; }
.comment-body { min-width: 0; flex: 1; }

/* Colour is derived from the name in the template, so the same person is always
   the same colour. Kept low-saturation — the brand rule is no neon. */
.comment .avatar {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 14px; font-weight: 500;
  background: hsl(var(--avatar-h, 165) 34% 88%);
  color: hsl(var(--avatar-h, 165) 45% 26%);
}
@media (prefers-color-scheme: dark) {
  .comment .avatar {
    background: hsl(var(--avatar-h, 165) 20% 22%);
    color: hsl(var(--avatar-h, 165) 42% 76%);
  }
}

.comment .who { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.comment .who-name { font-weight: 500; color: var(--text); font-size: 14px; }
.comment .says { margin: 0; font-size: 15px; line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }

.reply-btn {
  background: none; border: none; padding: 4px 0 0; margin: 0;
  font: inherit; font-size: 13px; color: var(--muted); cursor: pointer;
}
.reply-btn:hover { color: var(--accent-strong); text-decoration: underline; }

/* A rule down the left is enough to read as "these belong to that" without the
   heavy indentation that breaks down on a phone. */
.reply-thread { margin: 14px 0 0; padding-left: 14px; border-left: 2px solid var(--border); }
.comment.is-reply { padding: 12px 0; border-top: none; }
.comment.is-reply:not(:first-child) { border-top: 1px solid var(--border); }
.comment.is-reply .avatar { width: 28px; height: 28px; font-size: 12px; }
.comment.is-reply .says { font-size: 14.5px; }

@media (max-width: 560px) {
  .reply-thread { padding-left: 10px; }
  .comment { gap: 10px; }
  /* 44px tap target, same floor as the mobile nav and the chat send button.
     inline-flex so the text stays optically tight to the comment above it. */
  .reply-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
}

.empty { color: var(--muted); font-size: 14px; }

/* ---- about ---- */
.about-hero { display: flex; gap: 24px; align-items: center; padding: 60px 0 20px; flex-wrap: wrap; }
.about-hero .headshot { width: 128px; height: 128px; border-radius: 16px; object-fit: cover; border: 1px solid var(--border); }
.about-hero h1 { font-size: clamp(26px, 4vw, 38px); margin: 0 0 8px; }
.about-hero .lead { color: var(--muted); font-size: 17px; margin: 0 0 14px; max-width: 52ch; }
.highlights { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.now-list { list-style: none; padding: 0; margin: 8px 0 0; }
.now-list li { padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.now-list li::before { content: "▸"; color: var(--accent); margin-right: 10px; }

/* ---- chat FAB (floating scroll-to-widget button) ---- */
@keyframes fab-wiggle {
  0%, 100%  { transform: rotate(0deg); }
  8%        { transform: rotate(-16deg); }
  18%       { transform: rotate(14deg); }
  28%       { transform: rotate(-10deg); }
  38%       { transform: rotate(8deg); }
  48%       { transform: rotate(0deg); }
}

.chat-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 45;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-fill);
  color: var(--on-accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
  transition: background 0.15s var(--ease), box-shadow 0.15s var(--ease);
  /* wiggle for ~2.4s of every 7s; first fires after 3s */
  animation: fab-wiggle 7s ease 3s infinite;
  transform-origin: bottom center;
}
.chat-fab:hover {
  background: var(--accent-strong);
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
  animation-play-state: paused;
}
@media (max-width: 760px) {
  .chat-fab { bottom: 76px; right: 16px; width: 46px; height: 46px; }
}

/* ---- conversational contact ---- */
.contact-wrap { max-width: 520px; padding: 60px 0 40px; }
.contact-wrap h1 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 24px; letter-spacing: -0.01em; }
.contact-plain { max-width: 520px; }

.contact-chat { display: flex; flex-direction: column; }

.chat-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px 18px 0 0;
  padding: 20px 16px;
  min-height: 220px;
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-behavior: smooth;
}

.chat-input-area {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 18px 18px;
  padding: 10px 12px 12px;
  transition: opacity 0.2s;
}

.chat-input-row { display: flex; gap: 8px; align-items: flex-end; }

.chat-input {
  flex: 1;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 9px 16px;
  resize: none;
  overflow-y: hidden;
  min-height: 40px;
  max-height: 120px;
  outline: none;
  line-height: 1.5;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.chat-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.chat-input::placeholder { color: var(--muted); }

.chat-send {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-fill);
  color: var(--on-accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s var(--ease), transform 0.15s var(--ease);
}
.chat-send:hover { background: var(--accent-fill-hover); transform: scale(1.06); }
.chat-send:disabled { background: var(--border); cursor: default; transform: none; }

.chat-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  min-height: 16px;
  padding-left: 4px;
}

/* chat rows */
.chat-row { display: flex; gap: 8px; align-items: flex-end; }
.row-mhina { justify-content: flex-start; }
.row-user  { justify-content: flex-end; }

.chat-avatar {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-fill);
  color: var(--on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 500;
}
.chat-avatar.invis { background: transparent; }

.bubble {
  max-width: 78%;
  padding: 9px 14px;
  font-size: 15px;
  line-height: 1.55;
  border-radius: 18px;
  white-space: pre-wrap;
  word-break: break-word;
}
.bubble-mhina {
  background: var(--surface-2);
  color: var(--text);
  border-radius: 4px 18px 18px 18px;
}
.bubble-user {
  background: var(--accent-fill);
  color: var(--on-accent);
  border-radius: 18px 18px 4px 18px;
}

/* typing indicator */
.bubble.typing {
  padding: 12px 14px;
  display: flex;
  gap: 5px;
  align-items: center;
}
.bubble.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: dot-blink 1.2s infinite ease-in-out;
}
.bubble.typing span:nth-child(2) { animation-delay: 0.2s; }
.bubble.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-blink {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40%            { opacity: 1;   transform: scale(1);   }
}

/* ---- footer ---- */
.foot { border-top: 1px solid var(--border); margin-top: 44px; padding: 26px 0; color: var(--muted); font-size: 13px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--accent-strong); }

/* ---- mobile floating bottom bar ---- */
.tabbar { display: none; }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .island { padding: 8px 18px; }
  .grid, .grid-2 { grid-template-columns: 1fr; }
  .about-hero { flex-direction: column; text-align: center; align-items: center; }
  .tabbar {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
    justify-content: space-around; align-items: center;
    background: color-mix(in srgb, var(--surface) 90%, transparent);
    backdrop-filter: saturate(1.2) blur(10px);
    border: 1px solid var(--border); border-radius: 999px;
    /* Vertical padding moved onto the links below so each one is a 44px tap
       target (platform guidance) while the bar keeps the same overall height. */
    padding: 4px 8px; box-shadow: 0 8px 26px rgba(0,0,0,0.14);
  }
  .tabbar a {
    color: var(--muted); font-size: 13px; border-radius: 999px;
    display: flex; align-items: center; padding: 11px 12px; min-height: 44px;
  }
  .tabbar a.active { color: var(--accent-strong); background: var(--accent-soft); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  /* animation:none strips the forwards fill, so restore the resting state */
  .hero-figure { opacity: 1; transform: none; }
  .hero-figure img { transform: none; }
  .hero-wordmark { transform: translateX(-50%); }
}

/* ================= admin + auth ================= */
body.minimal { padding-bottom: 0; }
.wrap-wide { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.ok { color: var(--accent-strong); }
.err { background: var(--surface-2); color: #a3271f; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; font-size: 14px; margin-bottom: 14px; }

.adminbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
/* min-height, never height: the old fixed 56px could not contain a wrapped
   nav, so on mobile the first row rendered above y=0 and the last row spilled
   16px onto the page. Nothing here is allowed to wrap now, but the floor stays. */
.adminbar-inner { display: flex; align-items: center; gap: 20px; min-height: 58px; }
.adminbar form { display: inline; margin: 0; }

.adminbar-brand {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  font-family: var(--font-head); font-weight: 500; font-size: 16px; color: var(--text);
}
.adminbar-brand:hover { text-decoration: none; }
.adminbar-brand span {
  font-family: var(--font-body); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); background: var(--surface-2);
  border-radius: 5px; padding: 2px 6px;
}

.adminbar-tabs { display: flex; align-items: center; gap: 2px; min-width: 0; }
.adminbar-tab {
  display: inline-flex; align-items: center; height: 34px; padding: 0 12px;
  border-radius: 999px; font-size: 14px; color: var(--muted); white-space: nowrap;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.adminbar-tab:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.adminbar-tab.is-active {
  background: var(--accent-soft); color: var(--accent-strong); font-weight: 500;
}
.adminbar-tab.is-active:hover { text-decoration: none; }

.adminbar-util {
  display: flex; align-items: center; gap: 14px;
  font-size: 14px; flex-shrink: 0;
}
.adminbar-alerts { margin-left: auto; }
.adminbar-sep { width: 1px; height: 20px; background: var(--border); }
.adminbar-util-link { color: var(--muted); white-space: nowrap; }
.adminbar-util-link:hover, .adminbar-util-link.is-active { color: var(--accent-strong); text-decoration: none; }

.adminbar-alerts {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 11px;
  border-radius: 999px; color: var(--muted); white-space: nowrap;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.adminbar-alerts svg { width: 17px; height: 17px; flex-shrink: 0; }
.adminbar-alerts:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.adminbar-alerts.is-active { background: var(--accent-soft); color: var(--accent-strong); font-weight: 500; }

/* --accent-soft in dark (#172A24) sits 1.1:1 against --surface (#16211C), so
   the pill shape vanished and "active" survived only as a text-colour change.
   A deeper pine gives the fill back without going neon. */
@media (prefers-color-scheme: dark) {
  .adminbar-tab.is-active, .adminbar-alerts.is-active { background: #1E4237; }
}

.adminbar-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -10px; margin-left: auto;
  background: none; border: none; border-radius: 10px;
  color: var(--text); cursor: pointer; padding: 0;
}
.adminbar-toggle:hover { background: var(--surface-2); }
.adminbar-toggle svg { width: 22px; height: 22px; }
.adminbar-toggle .icon-close { display: none; }
.adminbar-toggle[aria-expanded="true"] .icon-open { display: none; }
.adminbar-toggle[aria-expanded="true"] .icon-close { display: block; }

.adminbar-panel {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--surface); border-bottom: 1px solid var(--border);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.11);
  padding: 8px 20px 14px;
  max-height: calc(100vh - 58px); overflow-y: auto;
}
.adminbar-panel[hidden] { display: none; }
.adminbar-panel-label {
  font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--muted); margin: 12px 0 2px; padding: 0 4px;
}
.adminbar-panel-label:first-child { margin-top: 4px; }
.adminbar-panel-link {
  display: flex; align-items: center; width: 100%; min-height: 44px;
  padding: 0 12px; border-radius: 9px; border: none; background: none;
  font: inherit; font-size: 15px; color: var(--text); text-align: left; cursor: pointer;
}
.adminbar-panel-link:hover { background: var(--surface-2); text-decoration: none; }
.adminbar-panel-link.is-active { background: var(--accent-soft); color: var(--accent-strong); font-weight: 500; }
.adminbar-panel-link.is-danger { color: #a3271f; }
@media (prefers-color-scheme: dark) { .adminbar-panel-link.is-danger { color: #f0938a; } }

/* Width owns visibility, not JS. Relying on the resize handler alone left the
   panel rendered — and the body scroll-locked — after a resize or rotate from
   mobile to desktop with it open. The handler stays as the state-tidier. */
@media (min-width: 901px) {
  .adminbar-panel { display: none; }
  body.nav-open { overflow: visible; }
}
@media (max-width: 900px) {
  body.nav-open { overflow: hidden; }
}

.linkbtn { background: none; border: none; color: var(--muted); font: inherit; cursor: pointer; padding: 0; }
.linkbtn:hover { color: var(--accent-strong); }

/* Ten destinations never fit a phone bar. Below this width the tab strip and
   the utility group are replaced by a panel; Alerts stays out in the bar
   because its badge is the one thing worth seeing without a tap. */
@media (max-width: 900px) {
  .adminbar-tabs, .adminbar-util { display: none; }
  .adminbar-toggle { display: inline-flex; }
  .adminbar-inner { gap: 8px; }
  /* icon + badge only — the word would crowd a 390px bar */
  .adminbar-alerts { height: 44px; padding: 0 10px; }
  .adminbar-alerts-text { display: none; }
  .adminbar-alerts svg { width: 20px; height: 20px; }
}
main.admin { padding: 24px 0 60px; }
main.admin h1 { font-size: 24px; margin: 0 0 8px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; font-size: 13px; color: var(--muted); }
.stat span { display: block; font-family: var(--font-head); font-size: 26px; font-weight: 500; color: var(--text); }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.admin-actions form { display: inline; margin: 0; }
.admin-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }

table.table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
table.table th, table.table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.table tr:last-child td { border-bottom: none; }
table.table th { font-weight: 500; color: var(--muted); font-size: 12px; }
.actions { display: flex; gap: 8px; align-items: center; }
.actions form { display: inline; margin: 0; }

.pill { font: inherit; font-size: 12px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; transition: all 0.15s var(--ease); }
.pill:hover { border-color: var(--muted); }
.pill.on { background: var(--accent-soft); color: var(--accent-strong); border-color: transparent; }
a.pill { cursor: pointer; }
a.pill:hover { text-decoration: none; border-color: var(--muted); }
/* status colours (only when active/on) */
.pill.st-won.on { background: #DCEDE7; color: #0B5C4B; }
.pill.st-lost.on { background: #F3E0DD; color: #8A2F22; }
.pill.st-blocked.on { background: #F6E9D6; color: #7A5310; }
.pill.st-draft.on { background: var(--surface-2); color: var(--muted); }
.btn.danger { color: #a3271f; }
.btn.danger:hover { border-color: #a3271f; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cform select, .cform input, .cform textarea { width: 100%; font: inherit; font-size: 14px; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 8px 11px; margin-bottom: 10px; }
.cform label.row { display: flex; align-items: center; gap: 8px; }
.cform label.row input { width: auto; margin: 0; }
.inline { display: flex; gap: 8px; align-items: center; margin: 10px 0; }
.inline input { width: auto; margin: 0; }
.qr { background: #fff; padding: 12px; border-radius: 12px; display: inline-block; margin: 12px 0; }
.codes { columns: 2; font-size: 13px; padding-left: 18px; }

.authcard { max-width: 360px; margin: 12vh auto; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.authcard h1 { margin: 0 0 14px; }
.authcard input { width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); margin-bottom: 12px; }
.authcard label { font-size: 13px; color: var(--muted); }

@media (max-width: 760px) {
  .stats, .grid2 { grid-template-columns: 1fr 1fr; }
  .adminbar nav { gap: 12px; font-size: 13px; flex-wrap: wrap; }
}

/* ---- admin image field ---- */
.image-field { margin-bottom: 14px; }
.image-field-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.image-field-status { font-size: 12px; color: var(--muted); }
.image-field-status.is-error { color: #b3261e; }
.image-field-preview {
  display: block; margin-top: 10px; max-width: 240px; max-height: 160px;
  border: 1px solid var(--border); border-radius: var(--radius); object-fit: contain; background: var(--surface);
}
.image-field-preview[hidden] { display: none; }
.image-field-status.is-warn { color: #8a5a00; }
.body-field { margin-bottom: 14px; }
.body-field-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.body-field-bar label { margin: 0; }
.body-field-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* ---- error pages ---- */
.error-page { padding: clamp(60px, 14vh, 130px) 0 90px; max-width: 46rem; }
.error-code { font-size: 13px; letter-spacing: 0.14em; color: var(--muted); margin: 0 0 12px; }
.error-page h1 { font-size: clamp(28px, 6vw, 44px); line-height: 1.15; margin: 0 0 16px; }
.error-lead { color: var(--muted); font-size: 17px; max-width: 34rem; margin: 0 0 28px; }
.error-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.error-hint { font-size: 14px; color: var(--muted); }
.error-hint kbd {
  font-family: var(--font-mono); font-size: 12px; padding: 2px 6px;
  border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2);
}

/* iOS Safari force-zooms the page when a focused input is under 16px, which
   yanks the layout around mid-typing. Only the rendered size needs to change,
   and only on the widths where it happens. */
@media (max-width: 760px) {
  .cform input, .cform textarea,
  .chat-input, .search-overlay input,
  .image-field input[type="text"] { font-size: 16px; }

  /* 40px is comfortable with a mouse but under the 44px the Phase 4 sweep
     adopted for touch. This is the send control on the site's only conversion
     path, so it gets the same floor as the mobile nav. Desktop keeps 40. */
  .chat-send { width: 44px; height: 44px; }
}

/* ---- admin filter tabs + comment moderation ---- */
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
/* Status colours for comment state, alongside the tracker's existing st-* pills */
.pill.st-pending.on { background: #F6E9D6; color: #7A5310; }
.pill.st-approved.on { background: #DCEDE7; color: #0B5C4B; }
.pill.st-spam.on { background: #F3E0DD; color: #8A2F22; }
@media (prefers-color-scheme: dark) {
  .pill.st-pending.on { background: #33280F; color: #E8C583; }
  .pill.st-approved.on { background: #12332B; color: #63C7B0; }
  .pill.st-spam.on { background: #33201C; color: #F0A196; }
}
/* ---- project updates (posts wired to a project) ---- */
.project-updates { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.project-updates h2 { font-size: 20px; margin: 0 0 16px; }
.update-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.update-item a {
  display: block; padding: 16px 18px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); color: var(--text);
  transition: border-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.update-item a:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-1px); }
.update-item .when { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.update-item h3 { font-size: 16px; margin: 0; }
.update-item p { font-size: 14px; color: var(--muted); margin: 5px 0 0; }
.chip-accent { background: var(--accent-soft); color: var(--accent-strong); border-color: transparent; }

/* ---- notifications ---- */
.notif-badge {
  background: var(--accent-fill); color: var(--on-accent);
  border-radius: 9px; font-size: 11px; font-weight: 600;
  padding: 1px 6px; margin-left: 4px; vertical-align: middle;
}
/* Type accents. The dead `:root[data-theme=…]` duplicates that used to sit here
   were removed — this project has no theme toggle, only prefers-color-scheme. */
.notif-item { --nt-bg: var(--accent-soft); --nt-fg: var(--accent-strong); }
.notif-item--comment  { --nt-bg: #FBEFD6; --nt-fg: #7A5310; }
.notif-item--deadline { --nt-bg: #F6E0DC; --nt-fg: #8A2F22; }
@media (prefers-color-scheme: dark) {
  .notif-item--comment  { --nt-bg: #2E2410; --nt-fg: #E8C583; }
  .notif-item--deadline { --nt-bg: #2E1A16; --nt-fg: #F0A196; }
}

.notif-summary { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.notif-summary strong { color: var(--text); font-weight: 500; }

.notif-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.notif-item {
  position: relative; display: grid; grid-template-columns: 36px 1fr auto;
  gap: 14px; align-items: start; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
}
/* Unread reads as a state, not a highlighter: a left rule in the type colour
   plus a slightly stronger border. Survives both schemes without a tinted fill
   fighting the type badge sitting on top of it. */
.notif-item.is-unread { border-color: var(--nt-fg); }
.notif-item.is-unread::before {
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--nt-fg);
}

.notif-icon {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--nt-bg); color: var(--nt-fg);
}
.notif-icon svg { width: 18px; height: 18px; }

.notif-body { min-width: 0; }
.notif-title { display: inline-block; font-family: var(--font-head); font-weight: 500; font-size: 15px; line-height: 1.35; color: var(--text); }
.notif-title:hover { color: var(--accent-strong); text-decoration: none; }
.notif-excerpt {
  color: var(--muted); font-size: 13.5px; line-height: 1.55; margin: 4px 0 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.notif-meta { display: flex; align-items: center; gap: 8px; margin-top: 7px; font-size: 12px; color: var(--muted); }
.notif-kind { color: var(--nt-fg); font-weight: 500; }
.notif-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: 0.5; }

.notif-mark {
  background: none; border: 1px solid var(--border); border-radius: 999px;
  font: inherit; font-size: 12px; color: var(--muted); cursor: pointer;
  padding: 5px 11px; white-space: nowrap;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.notif-mark:hover { border-color: var(--muted); color: var(--text); }
.notif-mark.is-danger:hover { border-color: #a3271f; color: #a3271f; }
@media (prefers-color-scheme: dark) {
  .notif-mark.is-danger:hover { border-color: #f0938a; color: #f0938a; }
}
/* Two actions stack side by side; the wrapping forms would otherwise block-flow */
.notif-action { display: flex; align-items: flex-start; gap: 6px; }
.notif-action form { margin: 0; }

.notif-empty {
  display: grid; justify-items: center; text-align: center; gap: 6px;
  padding: 56px 24px; background: var(--surface);
  border: 1px dashed var(--border); border-radius: var(--radius);
}
.notif-empty svg { width: 30px; height: 30px; color: var(--muted); opacity: 0.65; margin-bottom: 4px; }
.notif-empty h2 { font-size: 17px; margin: 0; }
.notif-empty p { color: var(--muted); font-size: 14px; margin: 0; max-width: 34rem; }

@media (max-width: 560px) {
  .admin-head { flex-wrap: wrap; gap: 10px; }
  .notif-item { grid-template-columns: 32px 1fr; gap: 12px; padding: 13px 14px; }
  .notif-icon { width: 32px; height: 32px; border-radius: 9px; }
  .notif-icon svg { width: 16px; height: 16px; }
  /* The action drops under the body rather than squeezing a third column */
  .notif-action { grid-column: 2; margin-top: 10px; }
  /* 44px tap target, per the Phase 4 mobile sweep */
  .notif-mark { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; }
}
