/* HaloScape Feedback Hub — editorial redesign */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter Tight', 'SF Pro', -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg-1);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

:root {
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --surface-2: #F3F3F1;
  --surface-3: #E9E9E6;
  --hairline: rgba(11,11,12,0.07);
  --hairline-strong: rgba(11,11,12,0.13);
  --fg-1: #0B0B0C;
  --fg-2: rgba(11,11,12,0.72);
  --fg-3: rgba(11,11,12,0.54);
  --fg-4: rgba(11,11,12,0.36);
  --accent: #0B0B0C;
  --accent-fg: #FFFFFF;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 22px;
  --radius-xl: 32px;
  --radius-2xl: 44px;
  --radius-pill: 999px;

  --danger:  #D8453E;
  --success: #1E9E6B;

  /* Halo pastel tints */
  --tint-teal:    #CBF0F3;
  --tint-teal-2:  #8ED8DD;
  --tint-lime:    #EDF8B4;
  --tint-lime-2:  #D6ED68;
  --tint-peach:   #FFE1D0;
  --tint-peach-2: #FFB89A;
  --tint-violet:  #E9E0FC;
  --tint-violet-2:#C5B6F0;
  --tint-mint:    #D9F1E2;
  --tint-mint-2:  #9ED9B2;
  --tint-lilac:   #FAE0FC;
  --tint-lilac-2: #E4B3E8;
}

[data-mode="dark"] {
  --bg: #0A0B0E;
  --surface: #151619;
  --surface-2: #1D1F23;
  --surface-3: #2A2C31;
  --hairline: rgba(255,255,255,0.08);
  --hairline-strong: rgba(255,255,255,0.16);
  --fg-1: #FFFFFF;
  --fg-2: rgba(255,255,255,0.78);
  --fg-3: rgba(255,255,255,0.55);
  --fg-4: rgba(255,255,255,0.35);
  --accent: #FFFFFF;
  --accent-fg: #0B0B0C;
}

[data-accent="halo"] { --accent: #89E3EC; --accent-fg: #0B0B0C; }
[data-accent="teal"] { --accent: #00CED1; --accent-fg: #0B0B0C; }
[data-accent="plum"] { --accent: #2A1A2E; --accent-fg: #FFFFFF; }
[data-mode="dark"][data-accent="ink"] { --accent: #FFFFFF; --accent-fg: #0B0B0C; }

/* ============================================================
   Tint mapping (used by post cards, board tiles, modal)
   ============================================================ */
.tint-teal   { --tint: var(--tint-teal);   --tint-2: var(--tint-teal-2);   }
.tint-lime   { --tint: var(--tint-lime);   --tint-2: var(--tint-lime-2);   }
.tint-peach  { --tint: var(--tint-peach);  --tint-2: var(--tint-peach-2);  }
.tint-violet { --tint: var(--tint-violet); --tint-2: var(--tint-violet-2); }
.tint-mint   { --tint: var(--tint-mint);   --tint-2: var(--tint-mint-2);   }
.tint-lilac  { --tint: var(--tint-lilac);  --tint-2: var(--tint-lilac-2);  }

/* ============================================================
   Layout shell
   ============================================================ */
.app { min-height: 100vh; display: flex; flex-direction: column; }

.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center;
  gap: 32px;
  padding: 14px 32px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; text-decoration: none;
  color: var(--fg-1);
}
.brand-orb {
  width: 32px; height: 32px; border-radius: 50%;
  background: url('../assets/halo-orb.png') center/cover no-repeat;
  box-shadow: 0 0 0 1px var(--hairline) inset;
}
.brand-wordmark {
  height: 26px;
  width: auto;
  display: block;
}
[data-mode="dark"] .brand-wordmark { filter: invert(1); }
.brand-name { font-weight: 600; font-size: 17.5px; letter-spacing: -0.02em; }
.brand-tag {
  font-size: 13px; color: var(--fg-3); font-weight: 500;
  padding-left: 10px; margin-left: 2px;
  border-left: 1px solid var(--hairline);
}

.nav-links {
  display: flex; gap: 4px; align-items: center;
  margin-left: 12px;
}
.nav-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: transparent; border: 0;
  font: inherit; font-size: 14px; font-weight: 500;
  color: var(--fg-2);
  cursor: pointer;
  transition: background 140ms, color 140ms;
}
.nav-link:hover { background: var(--surface-2); color: var(--fg-1); }
.nav-link.on { background: var(--surface); color: var(--fg-1); font-weight: 600; box-shadow: 0 0 0 1px var(--hairline) inset; }
.nav-badge {
  min-width: 18px; height: 18px;
  padding: 0 6px;
  border-radius: 9px;
  background: var(--fg-1); color: var(--bg);
  font-size: 11px; font-weight: 700; letter-spacing: 0;
  display: inline-flex; align-items: center; justify-content: center;
}

.nav-sep {
  width: 1px; height: 16px; flex-shrink: 0;
  background: var(--hairline);
  margin: 0 6px;
  align-self: center;
}
.nav-tab-remove {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: transparent; border: 0;
  color: var(--fg-4); cursor: pointer;
  padding: 0; margin-left: -4px;
  transition: background 120ms, color 120ms;
}
.nav-tab-remove:hover { background: var(--fg-1); color: var(--bg); }

.nav-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.admin-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--surface-2); color: var(--fg-2);
  font: inherit; font-size: 13px; font-weight: 500;
  border: 0; cursor: pointer;
  transition: background 140ms, color 140ms;
}
.admin-toggle:hover { background: var(--surface-3); color: var(--fg-1); }
.admin-toggle.on { background: var(--fg-1); color: var(--bg); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px;
  border-radius: var(--radius-pill);
  font: inherit; font-size: 14px; font-weight: 600;
  border: 0; cursor: pointer;
  transition: transform 120ms, opacity 140ms, background 140ms, border-color 140ms, color 140ms;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-pill { border-radius: var(--radius-pill); }
.btn-primary { background: var(--fg-1); color: var(--bg); }
.btn-primary:hover:not(:disabled) { opacity: 0.9; }
.btn-secondary { background: var(--surface-2); color: var(--fg-1); }
.btn-secondary:hover { background: var(--surface-3); }
.btn-ghost { background: transparent; color: var(--fg-2); }
.btn-ghost:hover { color: var(--fg-1); background: var(--surface-2); }
.btn-ghost-outline {
  background: transparent; color: var(--fg-1);
  border: 1px solid var(--hairline-strong);
}
.btn-ghost-outline:hover { background: var(--surface); }
.btn-lg { height: 52px; padding: 0 24px; font-size: 15.5px; }
.btn-block { width: 100%; }

/* ============================================================
   Main
   ============================================================ */
.main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 32px 96px;
}

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 22px;
}
.section-eyebrow {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 8px;
}
.section-title {
  font-size: 30px; font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

/* ============================================================
   HERO — big editorial band with giant halo orb
   ============================================================ */
.hero {
  position: relative;
  margin: 8px 0 56px;
  border-radius: var(--radius-2xl);
  background: var(--surface);
  border: 1px solid var(--hairline);
  overflow: hidden;
  min-height: 300px;
  display: flex; align-items: center;
  isolation: isolate;
}
.hero-compact { min-height: 260px; margin-bottom: 40px; }
.hero-orb {
  position: absolute;
  top: -30%; right: -12%;
  width: 900px; height: 900px;
  background: url('../assets/halo-orb.png') center/contain no-repeat;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse 65% 75% at 60% 45%, black 25%, rgba(0,0,0,0.6) 45%, transparent 68%);
  mask-image: radial-gradient(ellipse 65% 75% at 60% 45%, black 25%, rgba(0,0,0,0.6) 45%, transparent 68%);
}
[data-mode="dark"] .hero-orb { opacity: 0.7; mix-blend-mode: screen; }
.hero-content {
  position: relative; z-index: 1;
  padding: 56px 80px;
  max-width: 660px;
}
.hero-compact .hero-content { padding: 48px 80px; max-width: 720px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--fg-2);
  padding: 7px 14px 7px 10px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}
.hero-eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #1E9E6B;
  box-shadow: 0 0 0 4px rgba(30,158,107,0.2);
}
.hero-title {
  font-size: 72px; font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0 0 24px;
  text-wrap: balance;
}
.hero-title em {
  font-style: normal;
  font-weight: 500;
  background: linear-gradient(100deg, #00A3A7 0%, #6810DD 40%, #D96A42 70%, #00A3A7 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s linear infinite;
}
.hero-compact .hero-title { font-size: 52px; margin-bottom: 18px; }
.hero-compact .hero-title em { font-style: normal; background: none; -webkit-text-fill-color: initial; color: var(--fg-1); }
.hero-wordmark {
  height: 72px; width: auto;
  display: block;
  margin: 4px 0 10px;
}
[data-mode="dark"] .hero-wordmark { filter: invert(1); }

.hero-lede {
  font-size: 17px; line-height: 1.55;
  color: var(--fg-2);
  margin: 0 0 32px;
  max-width: 520px;
  text-wrap: pretty;
}
.hero-actions {
  display: flex; align-items: center; gap: 28px;
}
.hero-stats {
  display: inline-flex; align-items: center; gap: 22px;
  padding-left: 8px;
}
.stat-n { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--fg-1); }
.stat-l { font-size: 11px; font-weight: 600; color: var(--fg-4); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 2px; }
.stat-sep { width: 1px; height: 28px; background: var(--hairline); }

@media (max-width: 860px) {
  .hero-content { padding: 44px 28px; }
  .hero-title { font-size: 48px; }
  .hero-orb { top: -40%; right: -50%; width: 600px; height: 600px; opacity: 0.5; }
  .hero-actions { flex-wrap: wrap; gap: 18px; }
}

/* ============================================================
   Board tiles
   ============================================================ */
.tiles-section { margin-bottom: 56px; }
.board-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.board-tile {
  position: relative;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 22px;
  padding: 28px 28px 28px 24px;
  border-radius: var(--radius-l);
  background: var(--surface);
  border: 1px solid var(--hairline);
  cursor: pointer;
  transition: transform 180ms cubic-bezier(.2,.7,.3,1.3), border-color 160ms, box-shadow 200ms;
  overflow: hidden;
  animation: slideUp 240ms ease both;
}
.board-tile:hover {
  transform: translateY(-2px);
  border-color: var(--hairline-strong);
  box-shadow: 0 16px 40px -16px rgba(11,11,12,0.12);
}
.board-tile.active {
  background: linear-gradient(145deg, var(--tint, #CBF0F3) 0%, color-mix(in srgb, var(--tint, #CBF0F3) 30%, var(--surface)) 100%);
  border-color: var(--tint-2, var(--hairline-strong));
  box-shadow: 0 4px 20px -8px rgba(11,11,12,0.10);
}
[data-mode="dark"] .board-tile.active {
  background: linear-gradient(145deg, color-mix(in srgb, var(--tint, #CBF0F3) 18%, var(--surface)) 0%, var(--surface) 100%);
  border-color: var(--tint-2, var(--hairline-strong));
}

.board-tile-visual {
  width: 88px; height: 100px;
  border-radius: var(--radius-m);
  background: linear-gradient(135deg, var(--tint, var(--tint-teal)) 0%, var(--tint-2, var(--tint-teal-2)) 100%);
  display: flex; align-items: center; justify-content: center;
  color: #0B0B0C;
  flex-shrink: 0;
}
.board-tile-visual[data-visual="add"] {
  background: var(--surface-2);
  border: 1px dashed var(--hairline-strong);
  color: var(--fg-3);
}
.board-tile-body {
  display: flex; flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  gap: 10px;
}
.board-tile-name {
  font-size: 22px; font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--fg-1);
  text-wrap: balance;
}
.board-tile-name-input {
  font: inherit; font-size: 22px; font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg-1);
  background: transparent; border: 0; outline: 0;
  padding: 0; width: 100%;
  border-bottom: 1px dashed var(--hairline-strong);
}
.board-tile-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  font-size: 13.5px; color: var(--fg-3);
  font-weight: 500;
}
.board-tile-arrow {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg-1);
  transition: background 160ms, transform 160ms;
}
.board-tile:hover .board-tile-arrow { background: var(--fg-1); color: var(--bg); transform: translateX(2px); }
.board-tile-remove {
  position: absolute;
  top: 12px; right: 12px;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--surface-2); border: 0;
  color: var(--fg-3); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 140ms, background 140ms, color 140ms;
}
.board-tile:hover .board-tile-remove { opacity: 1; }
.board-tile-remove:hover { background: var(--surface-3); color: var(--danger); }

/* ============================================================
   Submit form
   ============================================================ */
.submit-section { margin-bottom: 56px; }
.form-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-l);
  padding: 28px 28px 20px;
  display: flex; flex-direction: column;
  gap: 22px;
}
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-label {
  font-size: 13px; font-weight: 600;
  color: var(--fg-1);
  letter-spacing: -0.005em;
}
.form-optional { font-weight: 400; color: var(--fg-3); }
.form-input, .form-textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-m);
  padding: 14px 16px;
  font: inherit; font-size: 15px;
  color: var(--fg-1);
  outline: none;
  transition: border-color 160ms, background 160ms;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--fg-3); }
.form-input:focus, .form-textarea:focus {
  border-color: var(--fg-1); background: var(--surface);
}
[data-mode="dark"] .form-input:focus, [data-mode="dark"] .form-textarea:focus {
  border-color: var(--fg-2); background: var(--surface);
}
.form-textarea {
  resize: none;
  min-height: 100px;
  line-height: 1.55;
}
.form-actions {
  display: flex; align-items: center; gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}
.form-attach {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 12px;
  border-radius: var(--radius-pill);
  background: transparent; border: 1px solid var(--hairline);
  color: var(--fg-2); cursor: pointer; font: inherit;
  font-size: 13px; font-weight: 500;
}
.form-attach:hover { background: var(--surface-2); color: var(--fg-1); }
.form-note {
  flex: 1;
  font-size: 12.5px; color: var(--fg-3);
  line-height: 1.4;
}
.form-note strong { color: var(--fg-1); font-weight: 600; }

/* ============================================================
   List header + controls
   ============================================================ */
.list-section { margin-bottom: 40px; }
.list-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; margin-bottom: 22px;
  flex-wrap: wrap;
}
.list-head-controls { display: flex; gap: 10px; align-items: center; }
.sort-pill, .search-pill {
  display: inline-flex; align-items: center;
  height: 38px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--hairline);
  padding: 0 14px;
  transition: border-color 160ms;
  gap: 8px;
}
.sort-pill:hover, .search-pill:focus-within { border-color: var(--hairline-strong); }
.sort-pill { position: relative; user-select: none; overflow: hidden; }
.sort-pill-label { font-size: 12px; font-weight: 600; color: var(--fg-3); letter-spacing: 0.06em; text-transform: uppercase; pointer-events: none; }
.sort-pill-value { font-size: 13.5px; font-weight: 600; color: var(--fg-1); pointer-events: none; }
.sort-pill svg { color: var(--fg-3); pointer-events: none; }
.search-pill { padding: 0 14px 0 12px; }
.search-pill svg { color: var(--fg-3); flex-shrink: 0; }
.search-pill input {
  border: 0; outline: 0; background: transparent;
  color: var(--fg-1); font: inherit; font-size: 13.5px;
  width: 200px;
}
.search-pill input::placeholder { color: var(--fg-3); }

/* ============================================================
   Post card grid
   ============================================================ */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.post-grid[data-layout="list"] {
  grid-template-columns: 1fr;
}
.post-grid[data-layout="list"] .post-card {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 20px;
  align-items: center;
}
.post-grid[data-layout="list"] .post-card-top { display: contents; }
.post-grid[data-layout="list"] .post-card-title { margin: 0; }
.post-grid[data-layout="list"] .post-card-desc { -webkit-line-clamp: 1; margin-bottom: 0; }
.post-grid[data-layout="list"] .post-card-foot { margin-top: 0; border-top: 0; padding: 0; }
.post-grid[data-layout="list"] .post-card-meta { display: none; }
.post-grid[data-layout="list"] .post-card::before { display: none; }

.post-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-l);
  padding: 20px 22px 18px;
  cursor: pointer;
  display: flex; flex-direction: column;
  gap: 14px;
  transition: transform 180ms cubic-bezier(.2,.7,.3,1.3), border-color 160ms, box-shadow 220ms;
  overflow: hidden;
  isolation: isolate;
}
.post-card::before {
  display: none;
}
.post-card:hover {
  transform: translateY(-2px);
  border-color: var(--hairline-strong);
  box-shadow: 0 14px 32px -14px rgba(11,11,12,0.12);
}

.post-card-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px;
}
.post-card-meta {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
  padding-top: 4px;
}
.post-card-board {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-3);
}
.post-card-title {
  font-size: 17px; font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0;
  color: var(--fg-1);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-desc {
  font-size: 14px; line-height: 1.5;
  color: var(--fg-2);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: pretty;
}
.post-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  margin-top: auto;
  border-top: 1px solid var(--hairline);
  font-size: 12.5px; color: var(--fg-3);
}
.post-card-go {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg-1);
  transition: background 160ms, transform 160ms;
}
.post-card:hover .post-card-go { background: var(--fg-1); color: var(--bg); transform: translateX(2px); }

/* ============================================================
   Vote orb — halo signature
   ============================================================ */
.vote {
  position: relative;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  color: var(--fg-1);
  cursor: pointer;
  font: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px;
  transition: transform 140ms cubic-bezier(.2,.7,.3,1.3), border-color 160ms, box-shadow 220ms;
  overflow: hidden;
  flex-shrink: 0;
}
.vote .vote-halo {
  position: absolute; inset: 0;
  background-image: url('../assets/halo-orb.png');
  background-size: 180% 180%;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 260ms;
  pointer-events: none;
  filter: saturate(1.2);
}
.vote:hover { border-color: var(--fg-1); transform: translateY(-1px); }
.vote:hover .vote-halo { opacity: 0; }
.vote:active { transform: scale(0.94); }
.vote.voted {
  background: #0B0B0C;
  border-color: #0B0B0C;
  color: #FFFFFF;
  box-shadow: none;
}
.vote.voted .vote-halo { opacity: 0; }
[data-mode="dark"] .vote.voted { background: #FFFFFF; border-color: #FFFFFF; color: #0B0B0C; }
.vote .vote-arrow, .vote .vote-count { position: relative; z-index: 1; }
.vote-arrow { width: 13px; height: 13px; }
.vote-count { font-size: 12.5px; font-weight: 700; letter-spacing: -0.02em; }

.vote-lg {
  width: 96px; height: 96px;
  gap: 3px;
}
.vote-lg .vote-arrow { width: 20px; height: 20px; }
.vote-lg .vote-count { font-size: 19px; font-weight: 700; }

/* ============================================================
   Status chips
   ============================================================ */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px; font-weight: 600;
  background: rgba(11,11,12,0.05); color: rgba(11,11,12,0.68);
}
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-planned   { color: #5B6DDB; background: rgba(91,109,219,0.10); }
.chip-progress  { color: #7B3FD1; background: rgba(123,63,209,0.10); }
.chip-shipped   { color: #1E9E6B; background: rgba(30,158,107,0.12); }
.chip-pending   { color: #C07800; background: rgba(192,120,0,0.12); }
.chip-declined  { color: #C23B36; background: rgba(194,59,54,0.10); }
.chip-approved  { color: #1E9E6B; background: rgba(30,158,107,0.12); }
[data-mode="dark"] .chip-planned   { color: #A9BBFF; background: rgba(169,187,255,0.12); }
[data-mode="dark"] .chip-progress  { color: #C8A8FF; background: rgba(200,168,255,0.14); }
[data-mode="dark"] .chip-shipped   { color: #74D5B1; background: rgba(116,213,177,0.14); }
[data-mode="dark"] .chip-pending   { color: #FFC085; background: rgba(255,192,133,0.14); }
[data-mode="dark"] .chip-declined  { color: #FF9A96; background: rgba(255,154,150,0.14); }
[data-mode="dark"] .chip-approved  { color: #74D5B1; background: rgba(116,213,177,0.14); }

/* ============================================================
   Empty card
   ============================================================ */
.empty-card {
  padding: 56px 32px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-l);
  color: var(--fg-3);
}
.empty-card .empty-big { font-size: 18px; font-weight: 600; color: var(--fg-1); margin-bottom: 8px; }
.empty-card p { font-size: 14px; color: var(--fg-3); margin: 0 0 20px; }
.empty-sm { font-size: 14px; color: var(--fg-3); margin: 0; }

/* ============================================================
   Modal (post detail)
   ============================================================ */
.modal-scrim {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(11,11,12,0.48);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 56px 24px 40px;
  overflow-y: auto;
  animation: fadeIn 180ms ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes gradientShift {
  0%   { background-position: 0% center; }
  50%  { background-position: 100% center; }
  100% { background-position: 0% center; }
}
.modal {
  position: relative;
  width: 100%; max-width: 960px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 40px 96px -20px rgba(11,11,12,0.32);
  animation: riseIn 220ms cubic-bezier(.2,.7,.3,1.1);
}
@keyframes riseIn { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-close {
  position: absolute; top: 18px; right: 18px; z-index: 3;
  width: 36px; height: 36px; min-width: 36px; min-height: 36px;
  border-radius: 50%; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--hairline);
  color: var(--fg-2); cursor: pointer; font: inherit;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 160ms; box-sizing: content-box; padding: 0;
}
.modal-close:hover { background: var(--surface-2); color: var(--fg-1); }

.modal-hero {
  position: relative;
  background: linear-gradient(135deg, var(--tint, var(--tint-teal)) 0%, color-mix(in srgb, var(--tint-2, var(--tint-teal-2)) 60%, white) 100%);
  padding: 48px 48px 40px;
  overflow: hidden;
  isolation: isolate;
}
[data-mode="dark"] .modal-hero {
  background: linear-gradient(135deg, color-mix(in srgb, var(--tint, var(--tint-teal)) 20%, #1A1C20) 0%, #14161A 100%);
}
.modal-hero-orb {
  position: absolute;
  top: -38%; right: -16%;
  width: 560px; height: 560px;
  background: url('../assets/halo-orb.png') center/contain no-repeat;
  pointer-events: none;
  z-index: 0;
  opacity: 0.95;
}
[data-mode="dark"] .modal-hero-orb { opacity: 0.6; mix-blend-mode: screen; }
.modal-hero-inner { position: relative; z-index: 1; max-width: 560px; }
.detail-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: 18px;
}
.detail-eyebrow .mark {
  width: 14px; height: 14px; border-radius: 50%;
  background: url('../assets/halo-orb.png') center/cover;
}
.modal-title {
  font-size: 34px; font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 16px;
  color: var(--fg-1);
  text-wrap: balance;
  overflow-wrap: break-word;
  word-break: break-word;
}
.detail-meta {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--fg-3);
}
.detail-meta .anon { color: var(--fg-3); font-weight: 500; }
.detail-meta .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--fg-4); }

.modal-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  padding: 36px 48px 40px;
}
.modal-col-main { min-width: 0; }
.modal-section { margin-bottom: 30px; }
.modal-section .section-eyebrow { margin-bottom: 12px; }
.modal-body-text {
  font-size: 15.5px; line-height: 1.65;
  color: var(--fg-2);
  white-space: pre-wrap;
  text-wrap: pretty;
  overflow-wrap: break-word;
  word-break: break-word;
  margin: 0;
}

.comments { display: flex; flex-direction: column; gap: 14px; }
.comment {
  padding: 16px 18px;
  border-radius: var(--radius-m);
  background: var(--surface-2);
  border: 1px solid var(--hairline);
}
.comment.team { background: linear-gradient(135deg, var(--tint-teal) 0%, var(--surface-2) 60%); border-color: var(--hairline-strong); }
[data-mode="dark"] .comment.team { background: linear-gradient(135deg, rgba(137,227,236,0.12) 0%, var(--surface-2) 60%); }
.comment-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px;
}
.comment-author {
  font-size: 13px; font-weight: 600;
  color: var(--fg-1);
}
.team-badge {
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-1);
  background: var(--surface);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline);
}
.comment-body {
  font-size: 14px; line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
  text-wrap: pretty;
}

.modal-col-side {
  display: flex; flex-direction: column; gap: 14px;
}
.side-card {
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-m);
  padding: 18px 20px;
  display: flex; flex-direction: column;
  gap: 14px;
}
.side-card .section-eyebrow { margin-bottom: 0; }
.signal-big {
  display: flex; align-items: center; gap: 16px;
}
.signal-big-n { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; color: var(--fg-1); line-height: 1; }
.signal-big-l { font-size: 12px; color: var(--fg-3); margin-top: 4px; }
.side-row {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 13px;
}
.side-row:last-child { border-bottom: 0; }
.side-k { color: var(--fg-3); }
.side-v { color: var(--fg-1); font-weight: 600; }

@media (max-width: 820px) {
  .modal-body { grid-template-columns: 1fr; padding: 28px 28px 32px; }
  .modal-hero { padding: 32px 28px 28px; }
  .modal-title { font-size: 26px; }
}

/* ============================================================
   Moderation page
   ============================================================ */
.page-moderation {}
.mod-controls {
  display: flex; gap: 12px; align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  max-width: 960px; margin-left: auto; margin-right: auto;
  padding: 0 24px;
}
.seg-pill {
  display: inline-flex; gap: 4px;
  background: var(--surface-2);
  padding: 4px;
  border-radius: var(--radius-pill);
}
.seg-pill button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: transparent; border: 0;
  font: inherit; font-size: 13px; font-weight: 600;
  color: var(--fg-3);
  cursor: pointer;
  transition: all 160ms;
}
.seg-pill button.on { background: var(--surface); color: var(--fg-1); box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
.seg-count {
  min-width: 20px;
  padding: 0 6px;
  height: 18px;
  border-radius: 9px;
  background: var(--surface-3);
  color: var(--fg-2);
  font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.seg-pill button.on .seg-count { background: var(--fg-1); color: var(--bg); }

/* Scrollable channel tabs */
.mod-channel-tabs-wrap {
  max-width: 960px; margin: 0 auto;
  padding: 0 24px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.mod-channel-tabs-wrap::-webkit-scrollbar { display: none; }
.mod-channel-tabs {
  display: flex; gap: 8px;
  padding: 16px 0 4px;
  min-width: max-content;
}
.mod-channel-tab {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline);
  background: var(--surface);
  font-family: inherit; font-size: 13.5px; font-weight: 500; color: var(--fg-2);
  cursor: pointer; transition: background 140ms, border-color 140ms, color 140ms;
  white-space: nowrap;
}
.mod-channel-tab:hover { background: var(--surface-2); color: var(--fg-1); }
.mod-channel-tab.on {
  background: var(--fg-1); border-color: var(--fg-1);
  color: var(--bg); font-weight: 600;
}
.mod-channel-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: var(--radius-pill);
  background: rgba(255,90,60,0.18);
  color: #D84030; font-size: 11px; font-weight: 700; line-height: 1;
}
.mod-channel-tab.on .mod-channel-badge {
  background: rgba(255,255,255,0.22); color: inherit;
}

.mod-list { display: flex; flex-direction: column; gap: 12px; max-width: 960px; margin: 0 auto; padding: 0 24px; }
.mod-row {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-l);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  transition: border-color 160ms;
  min-width: 0;
}
.mod-row:hover { border-color: var(--hairline-strong); }
.mod-row-main { min-width: 0; cursor: pointer; }
.mod-row-meta {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--fg-3);
  margin-bottom: 10px;
}
.mod-row-chan { font-weight: 600; color: var(--fg-2); text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; }
.mod-row-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--fg-4); }
.mod-row-title {
  font-size: 17px; font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0 0 8px;
  color: var(--fg-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mod-row-open .mod-row-title {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}
.mod-row-desc {
  font-size: 14px; line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: pretty;
}

.mod-row-actions {
  display: flex; flex-direction: column;
  gap: 14px;
  padding-left: 24px;
  border-left: 1px solid var(--hairline);
}
.mod-action-group { display: flex; flex-direction: column; gap: 6px; }
.mod-action-label {
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-4);
}
.mod-action-buttons { display: flex; gap: 6px; }
.mod-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--hairline-strong);
  font: inherit; font-size: 13px; font-weight: 600;
  color: var(--fg-2);
  cursor: pointer;
  transition: all 160ms;
  flex: 1;
  justify-content: center;
}
.mod-btn:hover { border-color: var(--fg-3); color: var(--fg-1); }
.mod-btn-approve.on { background: #1E9E6B; border-color: #1E9E6B; color: #fff; }
.mod-btn-decline.on { background: #C23B36; border-color: #C23B36; color: #fff; }
[data-mode="dark"] .mod-btn-approve.on { background: #74D5B1; border-color: #74D5B1; color: #0B0B0C; }
[data-mode="dark"] .mod-btn-decline.on { background: #FF9A96; border-color: #FF9A96; color: #0B0B0C; }

.mod-status-seg {
  display: flex; gap: 2px;
  background: var(--surface-2);
  padding: 3px;
  border-radius: var(--radius-pill);
}
.mod-status-seg button {
  flex: 1;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: transparent; border: 0;
  font: inherit; font-size: 12px; font-weight: 600;
  color: var(--fg-3);
  cursor: pointer;
  transition: all 160ms;
}
.mod-status-seg button.on { background: var(--surface); color: var(--fg-1); }

@media (max-width: 900px) {
  .mod-row { grid-template-columns: 1fr; }
  .mod-row-actions { padding-left: 0; padding-top: 18px; border-left: 0; border-top: 1px solid var(--hairline); }
}

/* ============================================================
   Tweaks panel
   ============================================================ */
.tweaks {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 280px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-l);
  padding: 16px;
  box-shadow: 0 12px 32px rgba(11,11,12,0.10);
  z-index: 150;
  font-size: 13px;
}
[data-mode="dark"] .tweaks { box-shadow: 0 12px 32px rgba(0,0,0,0.45); }
.tweaks-head {
  font-size: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
}
.tweaks-head .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: url('../assets/halo-orb.png') center/cover;
}
.tweak-row { margin-bottom: 12px; }
.tweak-label {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--fg-4);
  margin-bottom: 6px;
}
.tweak-segment {
  display: flex; gap: 2px;
  background: var(--surface-2);
  padding: 3px;
  border-radius: var(--radius-pill);
}
.tweak-segment button {
  flex: 1;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: 0; background: transparent;
  font: inherit; font-size: 12px; font-weight: 600;
  color: var(--fg-3);
  cursor: pointer;
  transition: all 160ms;
}
.tweak-segment button.on { background: var(--surface); color: var(--fg-1); }
.tweak-swatches { display: flex; gap: 8px; }
.tweak-swatch {
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  background-clip: content-box;
  padding: 2px;
}
.tweak-swatch.on { border-color: var(--fg-1); }
.tweak-swatch[data-c="ink"] { background: #0B0B0C; }
[data-mode="dark"] .tweak-swatch[data-c="ink"] { background: #FFFFFF; }
.tweak-swatch[data-c="halo"] { background: url('../assets/halo-orb.png') center/cover; }
.tweak-swatch[data-c="teal"] { background: #00CED1; }
.tweak-swatch[data-c="plum"] { background: #2A1A2E; }
.tweaks-hint {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
  font-size: 11.5px;
  color: var(--fg-4);
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 720px) {
  .nav-inner { gap: 12px; padding: 12px 16px; flex-wrap: wrap; }
  .nav-links { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
  .nav-links::-webkit-scrollbar { display: none; }
  .main { padding: 20px 16px 60px; }
  .hero-title { font-size: 40px; }
  .section-title { font-size: 24px; }
  .form-card { padding: 22px 18px 16px; }
  .form-actions { flex-wrap: wrap; }
  .form-note { order: 3; flex-basis: 100%; }
  .board-tiles { grid-template-columns: 1fr; }

  /* List head — stack controls below title on small screens */
  .list-head { flex-direction: column; align-items: flex-start; }
  .list-head-controls { width: 100%; }
  .search-pill { flex: 1; }
  .search-pill input { width: 100%; min-width: 0; }

  /* Post grid — prevent minmax from causing overflow */
  .post-grid { grid-template-columns: 1fr; }

  /* Moderation / bugs list padding */
  .mod-list { padding: 0 12px; }
  .mod-controls { padding: 0 12px; }
  .mod-channel-tabs-wrap { padding: 0 12px; }

  /* Survey topics padding */
  .survey-topics-section { padding: 0 16px 48px; }
  .survey-topics-grid { grid-template-columns: 1fr; }

  /* Survey card */
  .survey-card { padding: 32px 20px 28px; }
  .survey-wrap { margin: 32px auto; padding: 0 4px; }
  .survey-scores { gap: 6px; }
  .survey-score-btn { font-size: 18px; height: 52px; }

  /* Modal scrim — less top padding on mobile */
  .modal-scrim { padding: 20px 12px 24px; }

  /* Hero content — tighter on mobile */
  .hero-content { padding: 32px 20px; }
  .hero-compact .hero-content { padding: 28px 20px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-lede { font-size: 15px; margin-bottom: 20px; }

  /* Bug row */
  .bug-row { grid-template-columns: 1fr; }
  .bug-row-actions { padding-left: 0; padding-top: 14px; border-left: 0; border-top: 1px solid var(--hairline); }
  .bug-detail-wrap { padding: 20px 16px 48px; }
  .bug-detail-card { padding: 20px 18px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 32px; }
  .hero-compact .hero-title { font-size: 28px; }
  .section-title { font-size: 22px; }
  .nav-inner { padding: 10px 12px; }
  .board-tile { grid-template-columns: 72px 1fr; gap: 14px; padding: 20px 18px 20px 16px; }
  .board-tile-visual { width: 72px; height: 80px; }
  .modal-hero { padding: 24px 18px 20px; }
  .modal-body { padding: 20px 18px 24px; }
  .modal-title { font-size: 22px; }
  .survey-score-btn { font-size: 16px; height: 44px; }
  .email-modal { padding: 32px 20px 24px; }
  .bug-modal { padding: 28px 20px 24px; }
  .footer-cta { padding: 48px 16px 40px; }
  .footer-main { padding: 36px 16px 0; }
  .footer-legal { padding: 20px 16px 28px; }

  /* List layout — collapse to single column on very small screens */
  .post-grid[data-layout="list"] { grid-template-columns: 1fr; }
  .post-grid[data-layout="list"] .post-card {
    grid-template-columns: 52px 1fr;
    gap: 12px;
  }
  .post-grid[data-layout="list"] .post-card-foot { display: flex; }

  /* Survey admin header — stack on small screens */
  .survey-admin-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .survey-avg { text-align: left; }

  /* Tweaks panel — fit within viewport */
  .tweaks { right: 10px; bottom: 10px; left: 10px; width: auto; }
}

/* ============================================================
   Submit form — channel indicator
   ============================================================ */
.submit-channel-eyebrow {
  display: flex; align-items: center; gap: 8px;
}
.submit-channel-dot {
  width: 9px; height: 9px; border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
   Bug Reports admin page
   ============================================================ */
.page-bugs {}
.bugs-header {
  margin-bottom: 32px;
}
.bugs-list { display: flex; flex-direction: column; gap: 12px; }
.bug-row {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-l);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  cursor: pointer;
  transition: border-color 160ms;
}
.bug-row:hover { border-color: var(--hairline-strong); }
.bug-row-main { min-width: 0; }
.bug-row-actions {
  display: flex; flex-direction: column;
  gap: 8px;
  padding-left: 24px;
  border-left: 1px solid var(--hairline);
}
@media (max-width: 820px) {
  .bug-row { grid-template-columns: 1fr; }
  .bug-row-actions { padding-left: 0; padding-top: 14px; border-left: 0; border-top: 1px solid var(--hairline); }
}

/* Bug detail view */
.bug-detail-wrap {
  max-width: 760px; margin: 0 auto;
  padding: 32px 24px 64px;
}
.bug-detail-card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius-l);
  padding: 28px 32px;
  margin-top: 16px;
}
.bug-detail-title {
  font-size: 26px; font-weight: 700; letter-spacing: -0.5px;
  color: var(--fg-1); margin: 0 0 16px;
  line-height: 1.25;
}
.bug-detail-body {
  font-size: 15px; color: var(--fg-2); line-height: 1.7;
  white-space: pre-wrap; margin: 0 0 24px;
}
.bug-detail-section { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--hairline); }
.bug-attach-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--fg-2);
  padding: 5px 0;
}
.bug-detail-meta-row {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; padding: 8px 0;
}

/* ============================================================
   Survey page
   ============================================================ */
.survey-wrap {
  max-width: 640px;
  margin: 60px auto;
}
.survey-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: 48px 52px 44px;
}
.survey-q {
  font-size: 26px; font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 12px 0 36px;
  text-wrap: balance;
}
.survey-scores {
  display: flex; gap: 10px;
  margin-bottom: 14px;
}
.survey-score-btn {
  flex: 1;
  height: 64px;
  border-radius: var(--radius-m);
  background: var(--surface-2);
  border: 1.5px solid var(--hairline);
  font: inherit; font-size: 22px; font-weight: 600;
  color: var(--fg-1);
  cursor: pointer;
  transition: all 180ms cubic-bezier(.2,.7,.3,1.3);
}
.survey-score-btn:hover { border-color: var(--fg-1); transform: translateY(-2px); }
.survey-score-btn.on {
  background: #0B0B0C; color: #FFFFFF;
  border-color: #0B0B0C;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(11,11,12,0.35);
}
[data-mode="dark"] .survey-score-btn.on { background: #FFFFFF; color: #0B0B0C; border-color: #FFFFFF; }
.survey-score-labels {
  display: flex; justify-content: space-between;
  font-size: 11.5px; color: var(--fg-4); font-weight: 500;
  margin-bottom: 4px;
}
.survey-score-display {
  display: inline-flex; align-items: baseline; gap: 4px;
  margin-bottom: 16px;
}
.survey-score-big { font-size: 44px; font-weight: 600; letter-spacing: -0.03em; }
.survey-score-out { font-size: 18px; color: var(--fg-3); }
.survey-textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-m);
  padding: 14px 16px;
  font: inherit; font-size: 15px;
  color: var(--fg-1);
  outline: none;
  resize: none;
  line-height: 1.55;
  transition: border-color 160ms;
  margin-bottom: 24px;
}
.survey-textarea::placeholder { color: var(--fg-3); }
.survey-textarea:focus { border-color: var(--fg-1); background: var(--surface); }
.survey-actions { display: flex; gap: 10px; justify-content: flex-end; }
.survey-done {
  text-align: center;
  padding: 80px 32px;
  max-width: 480px;
  margin: 60px auto;
}
.survey-done-orb {
  width: 72px; height: 72px; border-radius: 50%;
  background: url('../assets/halo-orb.png') center/cover;
  margin: 0 auto 28px;
}
.survey-done-title { font-size: 36px; font-weight: 600; letter-spacing: -0.03em; margin: 0 0 10px; }
.survey-done-sub { font-size: 16px; color: var(--fg-3); margin: 0; }

/* Survey admin responses */
.survey-admin { }
.survey-admin-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; gap: 20px;
}
.survey-avg { text-align: right; }
.survey-avg-n { font-size: 44px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.survey-avg-l { font-size: 12px; color: var(--fg-3); margin-top: 4px; font-weight: 500; }
.survey-responses-list { display: flex; flex-direction: column; gap: 10px; }
.survey-response-row {
  display: grid; grid-template-columns: 56px 1fr;
  gap: 20px; align-items: start;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-m);
}
.survey-response-score {
  font-size: 24px; font-weight: 700; letter-spacing: -0.02em;
  line-height: 1;
  padding-top: 2px;
}
.survey-response-score span { font-size: 13px; color: var(--fg-4); font-weight: 400; }
.survey-response-body p { font-size: 14.5px; color: var(--fg-2); line-height: 1.55; margin: 0 0 6px; }
.survey-response-date { font-size: 11.5px; color: var(--fg-4); }

/* ============================================================
   Comment form (in PostModal)
   ============================================================ */
.comment-form {
  margin-top: 16px;
  display: flex; flex-direction: column;
  gap: 10px;
}
.comment-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-m);
  padding: 12px 14px;
  font: inherit; font-size: 14px;
  color: var(--fg-1);
  outline: none;
  resize: none;
  line-height: 1.5;
  transition: border-color 160ms, background 160ms;
}
.comment-input::placeholder { color: var(--fg-3); }
.comment-input:focus { border-color: var(--fg-1); background: var(--surface); }
[data-mode="dark"] .comment-input:focus { border-color: var(--fg-2); }
.comment-form-foot {
  display: flex; align-items: center; gap: 10px;
}
.comment-form-hint {
  font-size: 11.5px; color: var(--fg-4);
  flex: 1;
}
.comment-form-ok {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600;
  color: #1E9E6B;
  animation: fadeIn 200ms ease;
}

/* ============================================================
   Email capture modal
   ============================================================ */
.email-modal-wrap {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(11,11,12,0.42);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: fadeIn 200ms ease;
}
.email-modal {
  position: relative;
  width: 100%; max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: 40px 36px 32px;
  text-align: center;
  box-shadow: 0 32px 80px -16px rgba(11,11,12,0.28);
  animation: riseIn 240ms cubic-bezier(.2,.7,.3,1.1);
}
.email-modal-orb {
  width: 56px; height: 56px; border-radius: 50%;
  background: url('../assets/halo-orb.png') center/cover;
  margin: 0 auto 20px;
}
.email-modal-title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 8px; }
.email-modal-sub { font-size: 14px; color: var(--fg-3); line-height: 1.5; margin: 0 0 24px; }
.email-modal-row {
  display: flex; gap: 8px; margin-bottom: 14px;
}
.email-input {
  flex: 1;
  background: var(--bg); border: 1px solid var(--hairline);
  border-radius: var(--radius-m);
  padding: 11px 14px; font: inherit; font-size: 14px;
  color: var(--fg-1); outline: none;
  transition: border-color 160ms;
}
.email-input:focus { border-color: var(--fg-1); }
.email-input::placeholder { color: var(--fg-3); }
.email-modal-skip {
  font-size: 12px; color: var(--fg-4);
  cursor: pointer; text-decoration: underline;
  background: none; border: 0; padding: 0;
  font-family: inherit;
}
.email-modal-skip:hover { color: var(--fg-2); }

/* ============================================================
   Bug report public section
   ============================================================ */
.bug-report-section {
  margin-bottom: 56px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-l);
  padding: 28px 28px 24px;
}
.bug-report-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.bug-report-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--fg-3);
}
.bug-icon-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--tint-peach-2, #FFB89A);
}

/* ============================================================
   Survey topic cards
   ============================================================ */
.survey-topics-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px 64px;
}
.survey-topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.survey-topic-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-l);
  padding: 28px 28px 24px;
  display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow 160ms;
}
.survey-topic-card:hover { box-shadow: 0 4px 20px -8px rgba(11,11,12,0.12); }
.survey-topic-card-title { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.survey-topic-card-desc { font-size: 13.5px; color: var(--fg-3); line-height: 1.55; margin: 0; flex: 1; }
.survey-topic-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px;
}
.survey-topic-remove {
  position: absolute; top: 12px; right: 12px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface-2); border: 0;
  color: var(--fg-3); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 120ms, color 120ms;
}
.survey-topic-remove:hover { background: #fee2e2; color: #dc2626; }
.survey-topic-completed {
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  color: #1E9E6B; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 4px;
}
.survey-topic-add-card {
  background: transparent;
  border: 1.5px dashed var(--hairline);
  border-radius: var(--radius-l);
  padding: 28px 28px 24px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; min-height: 120px;
  cursor: pointer; color: var(--fg-3);
  font: inherit; font-size: 14px;
  transition: border-color 140ms, color 140ms;
}
.survey-topic-add-card:hover { border-color: var(--fg-2); color: var(--fg-1); }
.survey-topic-new-form {
  background: var(--surface);
  border: 1.5px dashed var(--fg-2);
  border-radius: var(--radius-l);
  padding: 20px 20px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.survey-responses-link {
  font-size: 12px; font-weight: 600; letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--fg-3);
  background: none; border: 0; cursor: pointer; padding: 0;
  font-family: inherit;
}
.survey-responses-link:hover { color: var(--fg-1); text-decoration: underline; }
.survey-back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 13px; color: var(--fg-3);
  padding: 0; margin-bottom: 24px;
}
.survey-back-btn:hover { color: var(--fg-1); }

/* ============================================================
   Bug report modal
   ============================================================ */
.bug-modal {
  position: relative;
  width: 100%; max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: 40px 40px 36px;
  box-shadow: 0 32px 80px -16px rgba(11,11,12,0.28);
  animation: riseIn 240ms cubic-bezier(.2,.7,.3,1.1);
  max-height: 90vh; overflow-y: auto;
}
.bug-modal-title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 6px; }
.bug-modal-sub { font-size: 14px; color: var(--fg-3); margin: 0 0 28px; }

/* ============================================================
   Footer (redesigned)
   ============================================================ */
.footer-new {
  background: #0B0B0C;
  color: rgba(255,255,255,0.7);
  margin-top: 80px;
}

/* CTA band */
.footer-cta {
  display: flex; flex-direction: column; align-items: center;
  padding: 52px 32px 40px;
  text-align: center;
}
.footer-cta-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800; letter-spacing: -2px;
  color: #fff; margin: 0 0 12px;
  line-height: 1.05;
}
.footer-cta-sub {
  font-size: 16px; color: rgba(255,255,255,0.55);
  margin: 0 0 28px;
}
.footer-cta-btns {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 0;
}
.footer-store-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 28px;
  border-radius: var(--radius-pill);
  background: #fff; color: #0B0B0C;
  font-family: inherit; font-size: 15px; font-weight: 600;
  text-decoration: none; letter-spacing: -0.01em;
  transition: opacity 160ms;
}
.footer-store-btn:hover { opacity: 0.88; }
.footer-qr-label {
  font-size: 13px; color: rgba(255,255,255,0.4);
  margin: 0 0 16px;
}
.footer-qr {
  width: 120px; height: 120px; object-fit: contain;
  background: #fff; border-radius: 12px; padding: 8px;
}

/* Main 3-col row */
.footer-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 40px;
  max-width: 1100px; margin: 0 auto;
  padding: 36px 32px 0;
}
.footer-newsletter-title {
  font-size: 15px; font-weight: 600; color: #fff;
  margin-bottom: 6px;
}
.footer-newsletter-sub {
  font-size: 13px; color: rgba(255,255,255,0.45);
  margin-bottom: 18px;
}
.footer-newsletter-row {
  display: flex; gap: 8px;
}
.footer-newsletter-input {
  flex: 1; min-width: 0;
  height: 42px; padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: #fff; font: inherit; font-size: 13.5px;
  outline: none;
}
.footer-newsletter-input::placeholder { color: rgba(255,255,255,0.3); }
.footer-newsletter-input:focus { border-color: rgba(255,255,255,0.35); }
.footer-newsletter-btn {
  height: 42px; padding: 0 20px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: #fff; font: inherit; font-size: 13.5px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: background 160ms;
}
.footer-newsletter-btn:hover { background: rgba(255,255,255,0.18); }

.footer-center {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding-top: 4px;
}
.footer-wordmark {
  height: 28px;
}
.footer-copy {
  font-size: 12px; color: rgba(255,255,255,0.3);
  text-align: center;
}

.footer-nav-links {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 10px; padding-top: 4px;
}
.footer-nav-links a {
  font-size: 14px; color: rgba(255,255,255,0.55);
  text-decoration: none; transition: color 160ms;
}
.footer-nav-links a:hover { color: #fff; }

/* Socials */
.footer-socials {
  display: flex; justify-content: flex-end; align-items: center;
  gap: 10px;
  max-width: 1100px; margin: 0 auto;
  padding: 28px 32px 0;
}
.footer-socials a img {
  width: 36px; height: 36px; border-radius: 50%;
  display: block; transition: opacity 160ms;
}
.footer-socials a:hover img { opacity: 0.75; }

/* Legal bar */
.footer-legal {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 6px 12px;
  padding: 32px 32px 40px;
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-legal a {
  font-size: 11px; color: rgba(255,255,255,0.3);
  text-decoration: none; text-transform: uppercase; letter-spacing: 0.05em;
  transition: color 160ms;
}
.footer-legal a:hover { color: rgba(255,255,255,0.6); }
.footer-legal span { color: rgba(255,255,255,0.15); font-size: 11px; }

/* Footer mobile-only nav */
.footer-nav-mobile {
  display: none;
  justify-content: center; flex-wrap: wrap; gap: 8px 20px;
  padding: 24px 32px 0;
  max-width: 1100px; margin: 0 auto;
}
.footer-nav-mobile a {
  font-size: 14px; color: rgba(255,255,255,0.55);
  text-decoration: none;
}
.footer-nav-mobile a:hover { color: #fff; }

@media (max-width: 860px) {
  .footer-main { grid-template-columns: 1fr; }
  .footer-center { align-items: center; }
  .footer-nav-links { display: none; }
  .footer-nav-mobile { display: flex; }
  .footer-socials { justify-content: center; }
  .footer-newsletter-row { flex-direction: column; }
  .footer-newsletter-input { width: 100%; }
  .footer-newsletter-btn { width: 100%; height: 48px; }
}

@media (max-width: 520px) {
  .footer-cta-btns { flex-direction: column; width: 100%; max-width: 340px; }
  .footer-store-btn { width: 100%; }
  .footer-socials { display: grid; grid-template-columns: 1fr 1fr; justify-items: center; gap: 12px; max-width: 120px; }
  .footer-socials a img { width: 44px; height: 44px; }
  .footer-nav-mobile { padding-top: 32px; }
  .footer-main { padding: 40px 20px 0; }
  .footer-cta { padding: 60px 20px 48px; }
  .footer-legal { padding: 24px 20px 32px; gap: 6px 8px; }
}

/* Email validation */
.input-error { border-color: var(--danger) !important; }
.email-error-msg {
  font-size: 13px; color: var(--danger);
  margin: 6px 0 0; text-align: left;
}

/* Moderation row expand */
.mod-row-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mod-row-desc-open {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.mod-row-open { border-color: var(--hairline-strong); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--hairline-strong); border-radius: 10px; }
::-webkit-scrollbar-track { background: transparent; }
