/* Copyright (c) 2026 Tomasetti Tech LLC. All rights reserved. */
/* TALK Shop — the forum's one stylesheet.
   Extracted from base.html's inline <style> (2026-09-12 architecture pass)
   so the presentation layer has one home. Served from /static/forum.css;
   in production NGINX aliases /static/ to /opt/repair-backend/forum/static/,
   so this file ships via deploy-talk.ps1 (same lane as preview.js).
   Palette: lifted from repair-design.css (Tj-approved light theme). */

/* ================================================================
   TALK Shop — Tomasetti Audio Labs Knowledge
   Palette: lifted from repair-design.css (Tj-approved light theme)
   ================================================================ */

/* ---------- Light theme (default) ---------- */
:root {
  --display: 'Outfit', sans-serif;
  --sans: 'Outfit', sans-serif;
  --mono: 'Share Tech Mono', monospace;

  --canvas: #f3f1f7;
  --canvas-deep: #ece9f3;
  --surface: #ffffff;
  --surface-hover: #f0edf6;

  --ink: #20172c;
  --ink-soft: #44365a;
  --muted: #6f637c;
  --faint: #8b7f9c;

  --line: rgba(63, 45, 88, 0.14);
  --line-strong: rgba(63, 45, 88, 0.26);

  --purple: #6036b8;
  --purple-dark: #4d2a99;
  --purple-mid: #7a5cc7;
  --purple-soft: rgba(96, 54, 184, 0.08);
  --purple-softer: rgba(96, 54, 184, 0.05);

  --green: #18845d;
  --blue: #277d91;
  --red: #dc2626;
  --amber: #d97706;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 8px;

  --card-bg: var(--surface);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lift: 0 10px 30px rgba(63, 45, 88, 0.1);

  /* Backward-compat aliases for child templates */
  --accent: var(--purple);
  --accent-hover: var(--purple-dark);
  --accent-light: var(--purple-soft);
  --accent-text: #ffffff;
  --text: var(--ink);
  --text-secondary: var(--ink-soft);
  --text-muted: var(--muted);
  --text-mid: var(--muted);
  --border: var(--line);
  --border-hover: var(--line-strong);
  --bg: var(--canvas);
  --tag-bg: var(--purple-soft);
  --tag-text: var(--purple);
  --upvote: var(--purple);
}

/* ---------- Dark theme ---------- */
[data-theme="dark"] {
  --canvas: #140d20;
  --canvas-deep: #0f0a1a;
  --surface: #211632;
  --surface-hover: #2a1d3d;

  --ink: #f1ecf7;
  --ink-soft: #ddd2ea;
  --muted: #aa9bb8;
  --faint: #8f819d;

  --line: rgba(205, 183, 232, 0.16);
  --line-strong: rgba(205, 183, 232, 0.3);

  --purple: #9b7be8;
  --purple-dark: #7655c9;
  --purple-mid: #b49bf2;
  --purple-soft: rgba(155, 123, 232, 0.14);
  --purple-softer: rgba(155, 123, 232, 0.08);

  --green: #3ecf8e;
  --blue: #7cc7f7;
  --red: #f87171;
  --amber: #fbbf24;

  --card-bg: var(--surface);
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.3);
  --shadow: 0 4px 12px rgba(0,0,0,0.35);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
  --shadow-lift: 0 12px 34px rgba(0, 0, 0, 0.4);

  /* Backward-compat aliases for child templates */
  --accent: var(--purple);
  --accent-hover: var(--purple-dark);
  --accent-light: var(--purple-soft);
  --accent-text: #ffffff;
  --text: var(--ink);
  --text-secondary: var(--ink-soft);
  --text-muted: var(--muted);
  --text-mid: var(--muted);
  --border: var(--line);
  --border-hover: var(--line-strong);
  --bg: var(--canvas);
  --tag-bg: var(--purple-soft);
  --tag-text: var(--purple);
  --upvote: var(--purple);
}

/* ---------- Base reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--purple-dark); }
p { margin: 0; }
img { max-width: 100%; }

/* ---------- Skip link (keyboard accessible) ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: var(--purple);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 700;
  font-size: 0.9rem;
  transition: left 0.15s;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Focus ring (keyboard accessible) ---------- */
:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

/* ---------- Pride bar ---------- */
.t-pride {
  width: 100%;
  height: 5px;
  flex-shrink: 0;
  background: linear-gradient(
    90deg,
    #e40303 0%, #ff8c00 14%, #ffed00 28%,
    #008026 42%, #004dff 57%, #750787 72%,
    #d896ff 86%, #ff69b4 100%
  );
}

/* ---------- Header ---------- */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 0 1.5rem;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-left { display: flex; align-items: center; gap: 1.5rem; }
.logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--purple);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  letter-spacing: -0.01em;
}
.logo svg { width: 26px; height: 26px; flex-shrink: 0; }
.logo .logo-sub {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.85rem;
  margin-left: 0.15rem;
}
.header-nav { display: flex; gap: 0.25rem; }
.header-nav a {
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-xs);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.15s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.header-nav a:hover { background: var(--purple-softer); color: var(--ink); }
.header-nav a.active { background: var(--purple-soft); color: var(--purple); font-weight: 600; }
.header-right { display: flex; align-items: center; gap: 0.5rem; }

/* ---------- Theme toggle ---------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  color: var(--purple);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.15s, border-color 0.15s;
  min-height: 44px;
}
.theme-toggle:hover { background: var(--purple-softer); border-color: var(--purple); }
.theme-toggle .tt-icon { width: 15px; height: 15px; display: block; }
.theme-toggle .tt-icon[hidden] { display: none !important; }
.theme-toggle .tt-label { text-transform: uppercase; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  line-height: 1;
  font-family: var(--sans);
  min-height: 44px;
}
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--purple); border: 1px solid var(--line-strong); }
.btn-outline:hover { border-color: var(--purple); background: var(--purple-soft); }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; min-height: 36px; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--purple-softer); color: var(--ink); }

/* ---------- Layout ---------- */
.page { max-width: 1200px; margin: 0 auto; padding: 1.25rem; display: flex; gap: 1.5rem; width: 100%; flex: 1; }
.main-col { flex: 1; min-width: 0; }
.side-col { width: 310px; flex-shrink: 0; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s;
}
.card:hover { border-color: var(--line-strong); }
.card-body { padding: 1rem; }

/* ---------- Thread list ---------- */
.thread-item {
  display: flex;
  gap: 0;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  transition: all 0.15s;
  cursor: pointer;
}
.thread-item:hover { border-color: var(--line-strong); background: var(--surface-hover); }

/* Vote column */
.vote-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: 36px;
  padding-right: 0.75rem;
}
.vote-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--faint);
  font-size: 1rem;
  line-height: 1;
  padding: 2px;
  border-radius: 3px;
  transition: all 0.15s;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vote-btn:hover { color: var(--purple); background: var(--purple-softer); }
.vote-count {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  min-width: 20px;
  text-align: center;
}

/* Content column */
.thread-content { flex: 1; min-width: 0; }
.thread-meta-top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
  flex-wrap: wrap;
}
.thread-meta-top .cat-link { color: var(--purple); font-weight: 600; }
.thread-meta-top .cat-link:hover { text-decoration: underline; }
.thread-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 0.3rem;
}
.thread-title a { color: inherit; }
.thread-title a:hover { color: var(--purple); }
.thread-excerpt {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.thread-meta-bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  row-gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.thread-meta-bottom .action {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
  min-height: 44px;
}
.thread-meta-bottom .action:hover { background: var(--purple-softer); color: var(--ink); }
.thread-meta-bottom svg { width: 14px; height: 14px; }

/* ---------- Tags ---------- */
.tag {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  background: var(--purple-soft);
  color: var(--purple);
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.tag-brand { background: rgba(217, 119, 6, 0.1); color: var(--amber); }
.tag-ai { background: var(--purple-soft); color: var(--purple); }
.tag-pinned { background: rgba(39, 125, 145, 0.1); color: var(--blue); }
.tag-solved { background: rgba(24, 132, 93, 0.1); color: var(--green); }
.tag-pending { background: rgba(217, 119, 6, 0.1); color: var(--amber); }
.tag-flair { background: var(--purple-soft); color: var(--purple); font-weight: 600; }

/* ---------- Post actions ---------- */
.post-action {
  background: none;
  border: none;
  font-size: 0.75rem;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: inherit;
  min-height: 44px;
}
.post-action:hover { color: var(--ink); }
.post-action:disabled { cursor: not-allowed; opacity: 0.5; }
.post-action:disabled:hover { color: var(--muted); }
.helpful-btn.active, .post-action.active { color: var(--green); font-weight: 600; }
.post-action.active:hover { color: var(--green); }

/* ---------- Sidebar ---------- */
.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
}
.sidebar-widget-header {
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: var(--canvas-deep);
}
.sidebar-widget-body { padding: 0.75rem 1rem; }
.sidebar-link {
  display: block;
  padding: 0.4rem 0;
  font-size: 0.85rem;
  color: var(--ink);
}
.sidebar-link:hover { color: var(--purple); }
.sidebar-link .count {
  float: right;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Search ---------- */
.search-bar { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.search-input {
  flex: 1;
  padding: 0.6rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  transition: border-color 0.15s;
}
.search-input:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-soft); }
.search-input::placeholder { color: var(--muted); }

/* ---------- Flash messages ---------- */
.flash {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.flash-success { background: rgba(24, 132, 93, 0.1); color: var(--green); border: 1px solid rgba(24, 132, 93, 0.2); }
.flash-error { background: rgba(220, 38, 38, 0.08); color: var(--red); border: 1px solid rgba(220, 38, 38, 0.15); }
.flash-info { background: rgba(39, 125, 145, 0.1); color: var(--blue); border: 1px solid rgba(39, 125, 145, 0.15); }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.form-input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--surface);
  font-family: var(--sans);
  transition: border-color 0.15s;
}
.form-input:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-soft); }
textarea.form-input { min-height: 200px; font-family: 'SF Mono', 'Fira Code', monospace; font-size: 0.85rem; resize: vertical; }

/* ---------- Post body (markdown) ---------- */
.post-body h1, .post-body h2, .post-body h3 { margin: 1rem 0 0.5rem; color: var(--ink); }
.post-body p { margin-bottom: 0.75rem; color: var(--ink); }
.post-body code { background: var(--canvas-deep); padding: 0.15rem 0.4rem; border-radius: 4px; font-size: 0.85em; font-family: 'SF Mono', 'Fira Code', monospace; }
.post-body pre { background: var(--canvas-deep); color: var(--ink); padding: 1rem; border-radius: var(--radius-sm); overflow-x: auto; margin-bottom: 1rem; }
.post-body pre code { background: none; padding: 0; }
.post-body blockquote { border-left: 3px solid var(--purple); padding-left: 1rem; color: var(--muted); margin-bottom: 0.75rem; }
.post-body ul, .post-body ol { padding-left: 1.5rem; margin-bottom: 0.75rem; }
.post-body img { max-width: 100%; border-radius: var(--radius-sm); margin: 0.5rem 0; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
.page-btn {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--ink-soft);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.15s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.page-btn:hover { border-color: var(--purple); color: var(--purple); }
.page-btn.active { background: var(--purple); color: white; border-color: var(--purple); }

/* ---------- Composer ---------- */
.composer-wrap { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: border-color 0.15s; }
.composer-wrap:focus-within { border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-soft); }
.composer-editor { position: relative; }
.composer-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); background: var(--canvas-deep); }
.composer-tab {
  padding: 0.4rem 1rem; font-size: 0.8rem; font-weight: 600; color: var(--muted);
  background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer;
  transition: all 0.15s; font-family: inherit; min-height: 44px;
}
.composer-tab:hover { color: var(--ink); }
.composer-tab.active { color: var(--purple); border-bottom-color: var(--purple); background: var(--surface); }
.composer-textarea {
  border: none !important; border-radius: 0 !important; box-shadow: none !important;
  min-height: 160px; font-family: 'SF Mono', 'Fira Code', monospace; font-size: 0.85rem;
  resize: vertical; width: 100%; padding: 0.75rem; background: var(--surface); color: var(--ink);
}
.composer-textarea:focus { box-shadow: none !important; }
.composer-preview {
  border: none !important; border-radius: 0 !important;
  overflow-y: auto; max-height: 400px; background: var(--surface);
}
.composer-preview:empty::before {
  content: 'Nothing to preview yet — start typing...';
  color: var(--muted); font-style: italic; font-size: 0.85rem;
}
.composer-preview pre { background: var(--canvas-deep); color: var(--ink); padding: 0.75rem; border-radius: 6px; overflow-x: auto; margin: 0.5rem 0; font-size: 0.85rem; }
.composer-preview code { background: var(--canvas-deep); padding: 0.1rem 0.35rem; border-radius: 3px; font-size: 0.85em; font-family: 'SF Mono', 'Fira Code', monospace; }
.composer-preview pre code { background: none; padding: 0; }
.composer-preview blockquote { border-left: 3px solid var(--purple); padding-left: 0.75rem; color: var(--muted); margin: 0.5rem 0; }
.composer-preview img { max-width: 100%; border-radius: var(--radius-sm); }

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: auto;
  border-top: 1px solid var(--line);
}
.footer a { color: var(--ink-soft); font-weight: 500; }
.footer a:hover { color: var(--purple); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .side-col { display: none; }
  .page { padding: 1rem; }
}
@media (max-width: 640px) {
  /* The right cluster (theme + Get help + auth) outgrew one row once the
     front-door link landed — compact both sides instead of letting the
     buttons shrink and wrap their labels. Wrap is the pressure valve for
     very narrow screens. */
  .header { height: auto; min-height: 54px; flex-wrap: wrap; padding: 0 1rem; }
  .header-nav { display: none; }
  .header-right { gap: 0.35rem; flex-wrap: wrap; }
  .header-right .btn { white-space: nowrap; padding-left: 0.6rem; padding-right: 0.6rem; }
  .theme-toggle .tt-label { display: none; }
  .logo { font-size: 1rem; }
  .logo-sub { display: none; }
  .thread-item { padding: 0.6rem 0.75rem; }
  .vote-col { min-width: 28px; padding-right: 0.5rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Print ---------- */
@media print {
  .t-pride, .theme-toggle, .header { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- Avatars: deterministic initial chips (crm.forum.present.avatar).
   Palette keyed by username hash; pastels with dark text read in both
   themes. No images, no JS — CSP is satisfied by construction. ---------- */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  user-select: none;
}
.avatar.lg { width: 32px; height: 32px; font-size: 0.9rem; }
.avatar.xl { width: 64px; height: 64px; font-size: 1.5rem; }
.thread-avatar-link { display: inline-flex; vertical-align: -6px; }
.thread-avatar-link:hover { text-decoration: none; }

.avatar.av-0 { background: #e7dff7; color: #4d2a99; }
.avatar.av-1 { background: #d7ecdd; color: #1f6b3f; }
.avatar.av-2 { background: #fde3d1; color: #a34a12; }
.avatar.av-3 { background: #d8e6f5; color: #1f4f7d; }
.avatar.av-4 { background: #f9dfe9; color: #9c2f5e; }
.avatar.av-5 { background: #efe6cf; color: #7a5d10; }
.avatar.av-6 { background: #dceeee; color: #16605f; }
.avatar.av-7 { background: #e4e4ef; color: #3f3f74; }

/* ---------- Last-activity cue in listing rows ---------- */
.last-activity { color: var(--text-muted); }
.last-activity a { color: var(--text-secondary); font-weight: 600; }

/* ---------- Suggested topics at the end of a thread ---------- */
.suggested-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}
.suggested-item {
  display: block;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.suggested-item:hover { border-color: var(--accent); text-decoration: none; }

/* ---------- About-page community stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  text-align: center;
}
.stat-tile { padding: 0.5rem 0.25rem; }
.stat-num { font-size: 1.45rem; font-weight: 800; color: var(--text); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

@media (max-width: 640px) {
  .suggested-grid { grid-template-columns: 1fr; }
}

/* ---------- Draft-restored hint (preview.js autosave) ---------- */
.draft-restored {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 0.3rem 0;
}
