:root {
  --bg: #0b0d13;
  --bg-2: #11141d;
  --card: rgba(255, 255, 255, 0.035);
  --card-strong: rgba(255, 255, 255, 0.06);
  --ink: #f6f3ea;
  --muted: #a6adc2;
  --line: rgba(255, 255, 255, 0.09);
  --yellow: #ffd166;
  --pink: #ff5d8f;
  --cyan: #57d5ff;
  --orange: #ff9f43;
  --green: #8ee0c6;
  --red: #ff6b6b;
  --grad: linear-gradient(100deg, var(--yellow), var(--orange) 45%, var(--pink));
  --grad-cool: linear-gradient(100deg, var(--cyan), var(--green));
  --radius: 18px;
  --maxw: 640px;
  --font-display: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Space Grotesk", ui-monospace, "SF Mono", monospace;
  --shadow: 0 10px 34px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animated aurora backdrop */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(38% 34% at 18% 12%, rgba(255, 209, 102, 0.16), transparent 60%),
    radial-gradient(34% 30% at 84% 20%, rgba(87, 213, 255, 0.14), transparent 60%),
    radial-gradient(40% 36% at 60% 88%, rgba(255, 93, 143, 0.13), transparent 62%),
    radial-gradient(30% 30% at 30% 72%, rgba(142, 224, 198, 0.10), transparent 60%),
    var(--bg);
  animation: aurora 26s ease-in-out infinite alternate;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(0deg, transparent 0 28px, rgba(255,255,255,0.012) 28px 29px);
  pointer-events: none;
}
@keyframes aurora {
  0% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(-3%, 2%, 0) scale(1.06); }
  100% { transform: translate3d(3%, -2%, 0) scale(1.02); }
}

.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px 150px;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  position: relative;
}

.logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.16em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: transform 0.2s ease;
  display: inline-block;
}
.logo:hover { transform: scale(1.05); text-decoration: none; }

.topnav { display: flex; gap: 6px; }
.topnav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 999px;
  transition: all 0.15s ease;
}
.topnav a:hover { color: var(--ink); background: var(--card-strong); text-decoration: none; }
.topnav a.active { color: var(--yellow); background: rgba(255, 209, 102, 0.12); }

/* ---------- Flash ---------- */
.flash {
  position: relative;
  background: linear-gradient(100deg, rgba(255,209,102,0.12), rgba(255,93,143,0.10));
  border: 1px solid rgba(255,209,102,0.35);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--yellow);
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 26px 8px 28px; position: relative; }
.hero-small { padding: 10px 8px 18px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--cyan);
  margin: 0 0 14px;
  font-weight: 600;
  text-transform: uppercase;
}

.question {
  font-family: var(--font-display);
  font-size: clamp(28px, 6.4vw, 42px);
  font-weight: 900;
  line-height: 1.12;
  margin: 0 0 20px;
  background: linear-gradient(100deg, #fff, var(--yellow) 55%, var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 24px rgba(255, 209, 102, 0.18));
}

.conversation-meta { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--card-strong);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.subtext { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  border: none;
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 15px;
  font-weight: 800;
  font-family: var(--font-display);
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.2s ease, filter 0.2s ease;
  position: relative;
}
.btn:active { transform: scale(0.96); }

.btn.primary {
  background: var(--grad);
  color: #1a1303;
  box-shadow: 0 8px 24px rgba(255, 159, 67, 0.32);
  overflow: hidden;
}
.btn.primary:hover { filter: brightness(1.07); box-shadow: 0 10px 30px rgba(255, 159, 67, 0.45); }
.btn.primary::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}
.btn.primary:hover::after { left: 130%; }
.btn.primary:disabled { opacity: 0.5; cursor: not-allowed; filter: grayscale(0.4); }

.btn.ghost {
  background: var(--card-strong);
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn.ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }

/* ---------- Composer ---------- */
.composer-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 14px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(
    180deg,
    rgba(11, 13, 19, 0) 0%,
    rgba(11, 13, 19, 0.82) 36%,
    rgba(11, 13, 19, 0.96) 100%
  );
  backdrop-filter: blur(8px);
}

.composer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--card-strong);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px 12px;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.5);
}

.composer.active {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.12), 0 10px 34px rgba(0, 0, 0, 0.5);
}

.composer-row { display: flex; align-items: flex-end; gap: 10px; }
.composer-title { display: none; }

.timer-ring[hidden],
.composer-footer[hidden],
.timeout-actions[hidden] { display: none; }

.timer-ring {
  --p: 100;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: conic-gradient(var(--yellow) calc(var(--p) * 1%), rgba(255,255,255,0.08) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 5px));
  transition: background 0.2s;
}
.timer-ring.low { background: conic-gradient(var(--red) calc(var(--p) * 1%), rgba(255,255,255,0.08) 0); animation: pulse 0.6s ease infinite alternate; }
@keyframes pulse { from { opacity: 1; } to { opacity: 0.55; } }

.timer-seconds { font-family: var(--font-display); font-size: 17px; font-weight: 900; text-shadow: 0 2px 12px rgba(0,0,0,0.4); }

#response-input {
  width: 100%;
  min-height: 46px;
  max-height: 140px;
  flex: 1;
  background: rgba(0,0,0,0.28);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px;
  resize: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#response-input:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.14); }

.composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
}
.char-count { color: var(--muted); font-size: 12px; font-family: var(--font-mono); }
.char-count.over { color: var(--red); }
.composer-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.btn-submit { border-radius: 14px; padding: 12px 20px; flex-shrink: 0; }

.composer.idle { text-align: center; padding: 28px 20px; border: 1px dashed rgba(255,255,255,0.18); }
.idle-text { color: var(--muted); margin-bottom: 16px; font-size: 16px; }

.btn-answer { font-size: 20px; padding: 16px 44px; letter-spacing: 0.02em; }

.timeup { color: var(--red); font-weight: 800; margin: 0 0 4px; font-family: var(--font-display); }
.no-paste-note { color: var(--orange); font-weight: 700; font-size: 14px; }
.timeout-actions { margin-top: 4px; }

/* ---------- Feed ---------- */
.feed-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.26em;
  color: var(--muted);
  font-weight: 700;
  margin: 6px 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.feed-label::before, .feed-label::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--line), transparent); }

.feed-scroll {
  max-height: 72vh;
  min-height: 260px;
  overflow-y: scroll;
  position: relative;
  padding-bottom: 8px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: var(--radius);
  scrollbar-width: none;
  scrollbar-gutter: stable;
}
.feed-scroll::-webkit-scrollbar { display: none; }

/* Scroll affordance: chevrons + edge fade shown while there is more to read. */
.feed-scroll-ind {
  position: sticky;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  pointer-events: none;
  z-index: 5;
  color: var(--yellow);
  font-size: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.feed-scroll-ind[hidden] { display: none; }
.feed-scroll-ind.top { top: 0; margin-bottom: -44px; background: linear-gradient(180deg, rgba(11,13,19,0.9), rgba(11,13,19,0)); }
.feed-scroll-ind.bottom { bottom: 0; margin-top: -44px; background: linear-gradient(0deg, rgba(11,13,19,0.9), rgba(11,13,19,0)); }
.feed-scroll-ind .chev { animation: chevBob 1.6s ease-in-out infinite; }
.feed-scroll-ind.bottom .chev { animation-name: chevBobUp; }
@keyframes chevBob {
  0%, 100% { transform: translateY(0); opacity: 0.85; }
  50% { transform: translateY(3px); opacity: 1; }
}
@keyframes chevBobUp {
  0%, 100% { transform: translateY(0); opacity: 0.85; }
  50% { transform: translateY(-3px); opacity: 1; }
}

.feed-window { position: relative; width: 100%; }

.feed-card { width: 100%; }

.response {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 17px;
  margin: 0;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  animation: cardIn 0.28s ease;
}

/* Spacing for the no-JS fallback feed (virtual feed spaces cards via JS). */
.feed-noscript .response { margin-bottom: 20px; }
.response:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 209, 102, 0.4);
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.response-head { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }

.avatar {
  --hue: 40;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: #0b0d13;
  background: linear-gradient(135deg, hsl(var(--hue), 85%, 62%), hsl(calc(var(--hue) + 40), 85%, 55%));
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  flex-shrink: 0;
}

.response-author { font-weight: 800; font-size: 15px; font-family: var(--font-display); }
.response-time { margin-left: auto; color: var(--muted); font-size: 12.5px; font-family: var(--font-mono); }

.response-content { margin: 0; font-size: 16px; white-space: pre-wrap; overflow-wrap: break-word; }

.response-meta { display: flex; align-items: center; margin-top: 10px; }

/* ---------- Votes ---------- */
.vote-controls {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--card-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 4px;
}

.vote-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s ease, color 0.15s ease, background 0.15s ease;
}
.vote-btn:hover { color: var(--ink); background: rgba(255,255,255,0.1); transform: scale(1.1); }
.vote-btn:disabled { cursor: wait; }
.vote-btn.up.voted { color: var(--green); background: rgba(142, 224, 198, 0.14); }
.vote-btn.down.voted { color: var(--red); background: rgba(255, 107, 107, 0.14); }

.vote-count {
  min-width: 20px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.vote-count.up { color: var(--green); }
.vote-count.down { color: var(--red); }
.vote-divider { color: var(--muted); font-size: 12px; opacity: 0.6; margin: 0 1px; }

.response-meta .vote-controls { margin-right: 8px; }

.question-votes {
  margin-top: 16px;
  padding: 6px 10px;
  gap: 6px;
}
.question-votes .vote-btn { width: 30px; height: 30px; font-size: 14px; }
.question-votes .vote-count { font-size: 15px; min-width: 26px; }

.feed-empty { color: var(--muted); text-align: center; padding: 36px 20px; font-size: 16px; }
.feed-loading { text-align: center; color: var(--muted); font-size: 13px; padding: 10px; font-family: var(--font-mono); }

.feed-noscript { display: block; }

/* ---------- Chat bubble ---------- */
.jolt-chat { position: fixed; right: 18px; bottom: 18px; z-index: 60; }

.chat-fab {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--grad);
  box-shadow: 0 10px 30px rgba(255, 159, 67, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  position: relative;
  animation: fabFloat 3.5s ease-in-out infinite;
}
.chat-fab:hover { transform: scale(1.08); box-shadow: 0 14px 36px rgba(255, 159, 67, 0.6); }
.chat-fab.open { transform: scale(0.95); animation: none; }
@keyframes fabFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.chat-fab::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255, 209, 102, 0.4);
  animation: ping 2.6s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(0.9); opacity: 1; }
  80%, 100% { transform: scale(1.45); opacity: 0; }
}

.chat-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(66px + env(safe-area-inset-bottom) + 10px);
  margin: 0 auto;
  width: min(608px, calc(100vw - 32px));
  max-height: calc(100vh - 132px);
  display: flex;
  flex-direction: column;
  background: rgba(17, 20, 29, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 22px 22px 12px 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  animation: panelIn 0.25s ease;
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(100deg, rgba(255,209,102,0.14), rgba(255,93,143,0.10));
  border-bottom: 1px solid var(--line);
}
.chat-title { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: 16px; }
.chat-sub { margin: 0; color: var(--muted); font-size: 12px; }

.chat-head-actions { display: flex; gap: 6px; }
.chat-head-actions button {
  background: var(--card-strong);
  border: 1px solid var(--line);
  color: var(--ink);
  width: 32px; height: 32px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s ease;
}
.chat-head-actions button:hover { background: rgba(255,255,255,0.14); transform: scale(1.06); }

.chat-messages {
  flex: 1;
  overflow-y: scroll;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 120px;
  scrollbar-gutter: stable;
}
/* Firefox ignores ::-webkit-scrollbar, so style via the standard properties.
   Kept in a Firefox-only @supports block: if applied in Chromium/WebKit, the
   standard props make Chrome drop the ::-webkit-scrollbar styling below and
   revert to hidden overlay scrollbars. */
@supports (-moz-appearance: none) {
  .chat-messages {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.5) rgba(255, 255, 255, 0.08);
  }
}
.chat-messages::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 7px;
}
.chat-messages::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
}
.chat-messages::-webkit-scrollbar-track {
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.08);
}

.chat-msg { display: flex; }
.chat-msg.assistant { justify-content: flex-start; }
.chat-msg.user { justify-content: flex-end; }

.chat-msg p {
  margin: 0;
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: break-word;
  white-space: pre-wrap;
}
.chat-msg.assistant p {
  background: var(--card-strong);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.chat-msg.user p {
  background: var(--grad);
  color: #1a1303;
  font-weight: 600;
  border-bottom-right-radius: 4px;
}

.chat-form {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: rgba(17, 20, 29, 0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35);
}
.chat-form-inner {
  display: flex;
  gap: 8px;
  max-width: 608px;
  margin: 0 auto;
}
.chat-form input {
  flex: 1;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  padding: 11px 16px;
  font-size: 14px;
  font-family: inherit;
}
.chat-form input:focus { outline: none; border-color: var(--yellow); }

.chat-send {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--grad);
  color: #1a1303;
  font-size: 17px;
  cursor: pointer;
  transition: transform 0.12s ease;
  flex-shrink: 0;
}
.chat-send:hover { transform: scale(1.08); }

.chat-feedback-form {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.chat-feedback-label { margin: 0 0 8px; font-size: 13px; font-weight: 800; font-family: var(--font-display); color: var(--cyan); }
.chat-feedback-form textarea {
  width: 100%;
  min-height: 64px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}
.chat-feedback-form textarea:focus { outline: none; border-color: var(--yellow); }
.chat-feedback-actions { display: flex; gap: 8px; margin-top: 8px; }
.chat-feedback-actions .btn { padding: 7px 16px; font-size: 13px; }
.chat-feedback-done { margin: 8px 0 0; color: var(--green); font-weight: 800; font-size: 13px; }

.chat-feedback-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 4px 0;
  color: var(--muted);
  font-size: 12.5px;
}
.chat-feedback-row .chat-feedback-ask { margin-right: 2px; }
.chat-feedback-row.done .chat-feedback-ask { color: var(--green); font-weight: 700; }
.chat-fb-btn {
  background: var(--card-strong);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 28px; height: 28px;
  cursor: pointer;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.12s ease, background 0.15s ease;
}
.chat-fb-btn:hover { transform: scale(1.12); background: rgba(255,255,255,0.14); }

/* ---------- Archive ---------- */
.archive-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.archive-tools input[type="search"] {
  flex: 1;
  min-width: 180px;
  background: var(--card-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  padding: 11px 18px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s;
}
.archive-tools input[type="search"]:focus { outline: none; border-color: var(--cyan); }
.archive-tools select {
  background: var(--card-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
}

.archive-count { color: var(--muted); font-size: 13px; margin: 0 0 14px; font-family: var(--font-mono); }

.archive-list { display: flex; flex-direction: column; gap: 12px; }
.archive-main { min-width: 0; }

.archive-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  color: var(--ink);
  backdrop-filter: blur(8px);
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.archive-item:hover { transform: translateY(-2px); border-color: var(--accent, var(--cyan)); box-shadow: 0 10px 28px rgba(0,0,0,0.3); text-decoration: none; }

.archive-date {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #0b0d13;
  background: var(--grad-cool);
  padding: 3px 11px;
  border-radius: 999px;
  margin: 0 0 8px;
}
.archive-question { margin: 0; font-weight: 800; font-family: var(--font-display); font-size: 17px; }
.archive-stats { display: flex; gap: 14px; color: var(--muted); font-size: 13px; margin: 8px 0 0; }

.archive-votes {
  display: flex;
  gap: 14px;
  margin: 8px 0 0;
  font-size: 13px;
}
.votes-ro { color: var(--muted); font-family: var(--font-mono); }
.votes-ro b { font-weight: 700; }
.votes-ro .up { color: var(--green); }
.votes-ro .down { color: var(--red); }
.archive-arrow { color: var(--yellow); font-size: 22px; font-weight: 800; flex-shrink: 0; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 24px; }
.pagination-status { color: var(--muted); font-size: 14px; font-family: var(--font-mono); }

/* ---------- About ---------- */
.about-body { display: flex; flex-direction: column; gap: 14px; }

.about-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  backdrop-filter: blur(8px);
}
.about-section h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  margin: 0 0 12px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about-section p { margin: 0 0 12px; color: #dfe3f0; }
.about-section p:last-child { margin-bottom: 0; }

.how-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.how-list li { display: flex; gap: 14px; align-items: flex-start; }
.how-list li > span {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 13px;
  color: #0b0d13;
  background: var(--grad);
  border-radius: 10px;
  padding: 5px 10px;
  flex-shrink: 0;
  margin-top: 2px;
}
.how-list strong { color: var(--ink); }

.benefit-list { margin: 0; padding-left: 4px; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.benefit-list li { padding-left: 24px; position: relative; color: #dfe3f0; }
.benefit-list li::before { content: "⚡"; position: absolute; left: 0; top: 0; font-size: 14px; }
.benefit-list strong { color: var(--yellow); }

.faq { margin: 0; }
.faq dt { font-weight: 800; font-family: var(--font-display); margin: 0 0 4px; color: var(--cyan); }
.faq dd { margin: 0 0 16px; color: #dfe3f0; }
.faq dd:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { text-align: center; padding: 30px 16px 40px; border-top: 1px solid var(--line); margin-top: 48px; }
.footer-name { margin: 0 0 8px; color: var(--muted); font-size: 14px; font-weight: 700; font-family: var(--font-display); }
.footer-links { display: flex; justify-content: center; gap: 22px; }
.footer-links a { color: var(--muted); font-size: 14px; font-weight: 600; }
.footer-links a:hover { color: var(--yellow); text-decoration: none; }

/* ---------- Responsive ---------- */
/* Feed scoots up so it lives above the docked chat sheet. */
body.chat-open .shell { padding-bottom: calc(66px + env(safe-area-inset-bottom) + 16px); }

@media (max-width: 480px) {
  .btn-answer { width: 100%; }
  .composer-actions { width: 100%; justify-content: flex-end; }
  .chat-fab { width: 56px; height: 56px; font-size: 23px; }
  .chat-panel { width: calc(100vw - 20px); border-radius: 22px 22px 10px 10px; }
  .about-section { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  body::before, .chat-fab, .chat-fab::before, .logo, .btn.primary::after { animation: none; }
  .response, .flash, .chat-panel { animation: none; }
  .response:hover, .archive-item:hover { transform: none; }
}
