/* CHARIOT forum — shared visual shell.
 *
 * Imports the warm-amber palette, fonts, glow layers and core-energy
 * colors from /sun (sun.html lines 200-300) so the forum feels like a
 * native room of THE SUN's universe rather than a separate product.
 * Each post and AI reply is a social-media-style card; persona avatars
 * use the same /images/blueprints/{code}.webp set as /sun.
 */

:root {
  /* CHARIOT palette — lime-primary, matches the brand prism logo
   * (#65A30D / #3F6212) and the homepage card. Amber is reserved for
   * AI replies (which speak as THE SUN) so the user can tell at a
   * glance which voice is which: lime = chariot/forum, amber = sun/AI. */
  --c-bg-canvas: #FFFFFF;
  --c-text-main: #1F2937;
  --c-text-muted: #6B7280;
  --c-text-soft: #9CA3AF;

  /* Primary accent = lime (CHARIOT brand). */
  --c-accent: #65A30D;
  --c-accent-light: #84CC16;
  --c-accent-deep: #3F6212;
  --c-accent-soft: rgba(101, 163, 13, 0.07);
  --c-accent-line: rgba(101, 163, 13, 0.20);
  --c-accent-glow: rgba(132, 204, 22, 0.24);
  --c-accent-shadow: rgba(101, 163, 13, 0.26);

  /* SUN amber palette — only used inside .ai-reply cards + THE SUN
   * verified pill so AI voices stay visually distinct from the lime
   * forum chrome. */
  --c-sun: #CA8A04;
  --c-sun-light: #EAB308;
  --c-sun-deep: #854D0E;
  --c-sun-soft: rgba(202, 138, 4, 0.07);
  --c-sun-line: rgba(202, 138, 4, 0.18);

  /* Core energies (4 dominant cores) — used by avatars + ai-reply borders.
   * Mirrors sun.html so the same archetype reads identically across products. */
  --c-gut: #ff6b6b;
  --c-mind: #4ab3f4;
  --c-heart: #17d7a0;
  --c-spirit: #b348ff;

  /* Compatibility aliases — chariot card legacy class names still
   * reference --c-chariot; map them onto the new accent so old markup
   * keeps rendering correctly. */
  --c-chariot: var(--c-accent);
  --c-chariot-soft: var(--c-accent-soft);
  --c-chariot-line: var(--c-accent-line);

  --font-display: 'Cinzel', 'Prompt', serif;
  --font-thai: 'Maitree', 'Prompt', serif;
  --font-body: 'Prompt', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { min-height: 100%; }
body {
  background: var(--c-bg-canvas);
  color: var(--c-text-main);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(101, 163, 13, 0.20); color: var(--c-text-main); }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; font: inherit; color: inherit; cursor: pointer; }

/* ===== Background layers ===== */
.bg-ocean {
  position: fixed; inset: 0; z-index: -3;
  background: radial-gradient(ellipse at top, #FFFFFF 0%, #FAFAFA 55%, #F3F4F6 100%);
}
.glow-point {
  position: fixed; border-radius: 50%;
  filter: blur(180px); z-index: -2; pointer-events: none;
  mix-blend-mode: multiply; opacity: 0.08;
  animation: chariot-glow-drift 22s ease-in-out infinite;
}
.glow-1 { background: #84CC16; width: 440px; height: 440px; top: -120px; left: -80px; opacity: 0.10; }
.glow-2 { background: #65A30D; width: 420px; height: 420px; bottom: -120px; right: -80px; opacity: 0.08; animation-delay: -6s; }
.glow-3 { background: #EAB308; width: 320px; height: 320px; top: 50%; left: 8%; opacity: 0.04; animation-delay: -3s; }
.glow-4 { background: #3F6212; width: 280px; height: 280px; top: 30%; right: 10%; opacity: 0.04; animation-delay: -12s; }

@keyframes chariot-glow-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, -30px) scale(1.08); }
}
@keyframes chariot-pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(1.06); }
}
@keyframes chariot-float-soft {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes chariot-status-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(101, 163, 13, 0.45); }
  70%  { box-shadow: 0 0 0 10px rgba(101, 163, 13, 0); }
  100% { box-shadow: 0 0 0 0 rgba(101, 163, 13, 0); }
}
@keyframes chariot-shine {
  to { background-position: 200% center; }
}
@keyframes chariot-orbit-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ===== Nav (matches /sun pattern: prism box + display title + hover glow) ===== */
.chariot-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(101, 163, 13, 0.12);
  padding: 0 20px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.chariot-nav-brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 700;
  letter-spacing: 0.10em; color: #111827; font-size: 1rem;
  text-decoration: none; position: relative;
}
.chariot-nav-brand::before {
  content: ''; position: absolute; inset: -6px -10px; border-radius: 18px;
  background: radial-gradient(circle, rgba(101, 163, 13, 0.24) 0%, transparent 70%);
  opacity: 0; transition: opacity 0.4s ease;
}
.chariot-nav-brand:hover::before { opacity: 1; }
.chariot-nav-brand svg {
  width: 28px; height: 28px;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  filter: drop-shadow(0 0 10px rgba(132, 204, 22, 0.3));
  position: relative; z-index: 1;
}
.chariot-nav-brand:hover svg { transform: scale(1.12) rotate(5deg); }
.chariot-nav-brand .nav-title { position: relative; z-index: 1; margin-top: 2px; }
.chariot-nav-brand .nav-title .accent { color: var(--c-chariot); }
.chariot-nav-actions { display: flex; align-items: center; gap: 12px; }

/* ===== Kicker badge ===== */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 18px; border-radius: 99px;
  background: var(--c-accent-soft);
  border: 1px solid var(--c-accent-line);
  color: var(--c-accent-deep);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
}
.kicker-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--c-accent);
  animation: chariot-status-pulse 2.4s infinite;
}

/* ===== Gradient text helper ===== */
.text-gradient {
  background: linear-gradient(135deg, #3F6212 0%, #65A30D 50%, #84CC16 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: chariot-shine 6s linear infinite;
}

/* ===== Sun emblem (mini orbit, used in hero) ===== */
.sun-emblem {
  position: relative; width: 140px; height: 140px; margin: 18px auto 24px;
}
.sun-emblem::before {
  content: ''; position: absolute; inset: -32px;
  background: radial-gradient(circle, rgba(234, 179, 8, 0.24) 0%, transparent 62%);
  border-radius: 50%; pointer-events: none;
  animation: chariot-pulse 5s ease-in-out infinite;
}
.sun-ring { position: absolute; inset: 0; border: 1px solid rgba(202, 138, 4, 0.22); border-radius: 50%; animation: chariot-orbit-rotate 28s linear infinite; }
.sun-ring.r2 { inset: 14px; border-color: rgba(202, 138, 4, 0.16); animation-duration: 44s; animation-direction: reverse; }
.sun-ring.r3 { inset: 28px; border-color: rgba(202, 138, 4, 0.10); animation-duration: 60s; }
.sun-core {
  position: absolute; top: 50%; left: 50%; width: 64px; height: 64px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FDE68A 0%, #EAB308 45%, #CA8A04 100%);
  box-shadow: 0 0 36px rgba(234, 179, 8, 0.55), inset -6px -8px 16px rgba(133, 77, 14, 0.35);
  animation: chariot-pulse 4s ease-in-out infinite;
}
.sun-planet {
  position: absolute; width: 11px; height: 11px; border-radius: 50%;
  top: -5.5px; left: 50%; transform: translateX(-50%);
  box-shadow: 0 0 10px currentColor;
}
.sun-planet.p-gut { background: var(--c-gut); color: var(--c-gut); }
.sun-planet.p-heart { background: var(--c-heart); color: var(--c-heart); }
.sun-planet.p-mind { background: var(--c-mind); color: var(--c-mind); }
.sun-planet.p-spirit { background: var(--c-spirit); color: var(--c-spirit); }

/* ===== Container ===== */
.chariot-shell { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.chariot-shell-narrow { max-width: 600px; margin: 0 auto; padding: 0 16px; }

/* ===== Hero ===== */
.chariot-hero { padding: 60px 16px 36px; text-align: center; position: relative; }
.chariot-hero h1 {
  font-family: var(--font-display); font-weight: 700; line-height: 1.2;
  font-size: clamp(1.6rem, 5vw, 2.6rem); margin: 18px 0 12px;
  color: #111827;
}
.chariot-hero .lede { color: var(--c-text-muted); font-size: 1rem; line-height: 1.7; max-width: 560px; margin: 0 auto; }

/* ===== Compose CTA ===== */
.compose-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: 9999px;
  background: var(--c-accent); color: #fff; font-weight: 700; font-size: 0.9rem;
  box-shadow: 0 8px 24px -10px var(--c-accent-shadow);
  transition: background .15s ease, transform .15s ease;
}
.compose-btn:hover { background: var(--c-accent-deep); transform: translateY(-1px); }
.compose-btn-amber {
  background: linear-gradient(135deg, #65A30D 0%, #84CC16 100%);
  box-shadow: 0 8px 24px -10px var(--c-accent-shadow);
}
.compose-btn-amber:hover { background: linear-gradient(135deg, #3F6212 0%, #65A30D 100%); }

/* ===== Tag pills ===== */
.tag-bar {
  display: flex; align-items: center; gap: 8px;
  overflow-x: auto; padding: 4px 0 12px;
  scrollbar-width: thin; scrollbar-color: rgba(0,0,0,0.15) transparent;
}
.tag-bar::-webkit-scrollbar { height: 4px; }
.tag-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 9999px; font-size: 0.82rem; font-weight: 600;
  border: 1px solid rgba(101, 163, 13, 0.14); background: #fff; color: var(--c-text-muted);
  transition: all .15s ease; white-space: nowrap;
}
.tag-pill:hover { border-color: var(--c-accent-line); color: var(--c-accent); }
.tag-pill.is-active {
  background: linear-gradient(135deg, #65A30D 0%, #84CC16 100%);
  color: #fff; border-color: transparent;
  box-shadow: 0 6px 14px -4px var(--c-accent-shadow);
}

/* ===== Post card (feed) ===== */
.post-card {
  display: block;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(101, 163, 13, 0.10);
  border-radius: 22px; padding: 18px 20px;
  transition: all .25s cubic-bezier(0.25, 1, 0.5, 1);
  margin-bottom: 14px;
}
.post-card:hover {
  background: #fff; transform: translateY(-3px);
  box-shadow: 0 18px 36px -16px rgba(101, 163, 13, 0.22);
  border-color: rgba(101, 163, 13, 0.22);
}

.post-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 0.78rem; color: var(--c-text-muted); }
.avatar {
  width: 36px; height: 36px; border-radius: 9999px; flex-shrink: 0;
  /* Background is now provided by the inline SVG (PolymeChariotAvatar);
   * the wrapper just clips. Old fallback gradient kept for the rare doc
   * without voidCode (renders as a soft amber halo behind a "?"). */
  background: #F3F4F6;
  display: flex; align-items: center; justify-content: center;
  color: #6B7280; font-weight: 700; font-size: 0.85rem;
  overflow: hidden;
}
.avatar img,
.avatar svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-sm { width: 28px; height: 28px; font-size: 0.72rem; }
.avatar-lg { width: 56px; height: 56px; font-size: 1rem; }

.author-name { color: #111827; font-weight: 600; font-size: 0.86rem; }
.author-handle { color: var(--c-text-soft); font-size: 0.78rem; font-family: monospace; }

.post-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 9999px; font-size: 0.7rem; font-weight: 700;
  background: var(--c-accent-soft); color: var(--c-accent-deep);
  letter-spacing: 0.02em;
}

.post-title {
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1.4;
  color: #1F2937; margin: 8px 0 6px;
}
.post-excerpt { font-size: 0.92rem; color: #4B5563; line-height: 1.65; }

.post-foot { display: flex; align-items: center; gap: 14px; margin-top: 14px; font-size: 0.78rem; color: var(--c-text-muted); flex-wrap: wrap; }
.post-foot .sep { width: 4px; height: 4px; border-radius: 9999px; background: #d1d5db; }

/* Stack of persona avatars (bottom-right of feed card) */
.persona-stack { display: inline-flex; align-items: center; }
.persona-stack img,
.persona-stack .stack-dot {
  width: 26px; height: 26px; border-radius: 9999px;
  border: 2px solid #fff; margin-right: -8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.10);
  background: #f3f4f6;
}
.persona-stack img { object-fit: cover; }
.persona-stack .stack-dot { display: inline-block; }
.persona-stack .stack-dot.G { background: linear-gradient(135deg, #ff6b6b, #c0392b); }
.persona-stack .stack-dot.H { background: linear-gradient(135deg, #17d7a0, #047857); }
.persona-stack .stack-dot.M { background: linear-gradient(135deg, #4ab3f4, #1e40af); }
.persona-stack .stack-dot.S { background: linear-gradient(135deg, #b348ff, #6B21A8); }

/* ===== AI reply card (post detail) ===== */
.ai-reply {
  --core: var(--c-accent);
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(202, 138, 4, 0.10);
  border-left: 3px solid var(--core);
  border-radius: 18px; padding: 18px 18px 16px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px -8px rgba(15, 23, 42, 0.10);
  transition: transform .15s ease;
}
.ai-reply:hover { transform: translateY(-1px); }
.ai-reply.core-G { --core: var(--c-gut); }
.ai-reply.core-H { --core: var(--c-heart); }
.ai-reply.core-M { --core: var(--c-mind); }
.ai-reply.core-S { --core: var(--c-spirit); }

.ai-reply-head { display: flex; align-items: center; gap: 12px; }
.ai-avatar {
  position: relative; width: 56px; height: 56px; border-radius: 9999px;
  background: linear-gradient(135deg, #FDE68A 0%, #CA8A04 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 1), 0 0 0 4px var(--core),
              0 8px 18px -8px rgba(202, 138, 4, 0.35);
}
.ai-avatar img {
  width: 100%; height: 100%; object-fit: cover;
  filter: drop-shadow(0 2px 6px rgba(202, 138, 4, 0.22));
}
.ai-avatar .core-tag {
  position: absolute; bottom: -2px; right: -2px;
  width: 22px; height: 22px; border-radius: 9999px;
  background: var(--core); color: #fff;
  font-size: 0.62rem; font-weight: 800; font-family: monospace;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
.ai-meta { flex: 1; min-width: 0; }
.ai-name {
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: #111827;
  display: flex; align-items: center; gap: 6px;
}
.ai-verified {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 9999px;
  background: rgba(202, 138, 4, 0.10); color: var(--c-accent);
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em;
}
.ai-handle { font-family: monospace; color: var(--c-text-soft); font-size: 0.75rem; letter-spacing: 0.02em; }
.ai-time { color: var(--c-text-soft); font-size: 0.75rem; }

.ai-intro {
  margin-top: 10px; padding: 10px 12px; border-radius: 10px;
  background: rgba(202, 138, 4, 0.05); border-left: 2px solid var(--core);
  font-size: 0.78rem; color: var(--c-accent-deep); font-style: italic; line-height: 1.5;
}
.ai-body {
  margin-top: 10px; font-size: 0.95rem; line-height: 1.75; color: #1F2937;
  white-space: pre-wrap;
}
.ai-foot { margin-top: 12px; display: flex; align-items: center; gap: 12px; font-size: 0.78rem; color: var(--c-text-muted); }
.ai-foot a { color: var(--c-accent); }

/* ===== OP card (top of post detail) ===== */
.op-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(101, 163, 13, 0.18);
  border-radius: 24px; padding: 22px 22px 18px;
  box-shadow: 0 14px 40px -22px rgba(101, 163, 13, 0.30);
  position: relative; overflow: hidden;
}
.op-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #3F6212, #65A30D, #84CC16, #65A30D, #3F6212);
  background-size: 200% 100%; animation: chariot-shine 8s linear infinite;
}
.op-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.op-meta { display: flex; flex-direction: column; gap: 2px; }
.op-name { color: #111827; font-weight: 700; font-size: 0.95rem; }
.op-sub { color: var(--c-text-muted); font-size: 0.78rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.op-title {
  font-family: var(--font-display); font-weight: 700; line-height: 1.3;
  font-size: clamp(1.4rem, 4vw, 1.85rem); color: #111827; margin: 8px 0 12px;
}
.op-body {
  font-size: 1rem; line-height: 1.85; color: #1F2937; white-space: pre-wrap;
}

/* ===== Reaction row ===== */
.reaction-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(101, 163, 13, 0.10); }
.rx-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 9999px;
  border: 1px solid rgba(101, 163, 13, 0.15); background: #fff;
  color: #4B5563; font-weight: 600; font-size: 0.82rem;
  transition: all .15s ease;
}
.rx-btn:hover { border-color: var(--c-accent); color: var(--c-accent); }
.rx-btn.is-active {
  background: rgba(101, 163, 13, 0.10); border-color: var(--c-accent); color: var(--c-accent-deep);
}
.rx-btn .count { font-weight: 700; }

/* ===== Comments ===== */
.comments-shell {
  background: rgba(255, 255, 255, 0.65); backdrop-filter: blur(8px);
  border: 1px solid rgba(101, 163, 13, 0.10); border-radius: 18px;
  padding: 6px 18px; margin-top: 10px;
}
.comment {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 0; border-top: 1px solid rgba(15, 23, 42, 0.06);
}
.comment:first-child { border-top: 0; }
.comment-meta { flex: 1; min-width: 0; }
.comment-head { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--c-text-muted); }
.comment-head .name { color: #1F2937; font-weight: 600; }
.comment-body { margin-top: 6px; font-size: 0.92rem; line-height: 1.7; color: #1F2937; white-space: pre-wrap; }

.comments-empty { padding: 28px 0; text-align: center; color: var(--c-text-muted); font-size: 0.88rem; }

/* ===== Composer (inline reply at bottom of post) ===== */
.composer {
  background: #fff; border: 1px solid rgba(101, 163, 13, 0.16); border-radius: 18px;
  padding: 14px 16px; box-shadow: 0 4px 14px -10px rgba(101, 163, 13, 0.20);
}
.composer textarea {
  width: 100%; resize: none; border: none; outline: none;
  font-size: 0.95rem; font-family: inherit; background: transparent;
  color: #1F2937; min-height: 88px; line-height: 1.7;
}
.composer textarea::placeholder { color: var(--c-text-soft); }
.composer-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(15, 23, 42, 0.06); }
.composer-charcount { font-size: 0.72rem; color: var(--c-text-soft); }
.composer-send {
  background: linear-gradient(135deg, #65A30D 0%, #84CC16 100%);
  color: #fff; padding: 8px 18px; border-radius: 9999px; font-weight: 700; font-size: 0.85rem;
  box-shadow: 0 6px 14px -6px rgba(101, 163, 13, 0.55);
  transition: opacity .15s ease;
}
.composer-send:disabled { opacity: 0.45; cursor: not-allowed; }

/* ===== New-post composer ===== */
.composer-shell {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(101, 163, 13, 0.18);
  border-radius: 24px; padding: 24px 22px;
  box-shadow: 0 14px 40px -22px rgba(101, 163, 13, 0.30);
}
.field-label {
  font-size: 0.72rem; font-weight: 700; color: var(--c-accent-deep);
  letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 8px;
}
.title-input {
  width: 100%; padding: 12px 14px; font-size: 1.15rem; font-weight: 600;
  border: 1px solid rgba(101, 163, 13, 0.16); border-radius: 14px; outline: none; background: #fff;
  font-family: var(--font-display); color: #111827;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.title-input:focus { border-color: var(--c-accent); box-shadow: 0 0 0 4px rgba(101, 163, 13, 0.10); }
.body-input {
  width: 100%; min-height: 220px; padding: 14px 16px; font-size: 1rem; line-height: 1.75;
  border: 1px solid rgba(101, 163, 13, 0.16); border-radius: 14px; outline: none; resize: vertical; background: #fff;
  font-family: inherit; color: #1F2937;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.body-input:focus { border-color: var(--c-accent); box-shadow: 0 0 0 4px rgba(101, 163, 13, 0.10); }

.tag-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 480px) { .tag-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tag-opt {
  border: 1px solid rgba(101, 163, 13, 0.16); border-radius: 14px; padding: 10px 12px;
  display: flex; align-items: center; gap: 8px; cursor: pointer; transition: all .15s ease;
  background: #fff; font-size: 0.86rem;
}
.tag-opt:hover { border-color: var(--c-accent); }
.tag-opt input { display: none; }
.tag-opt:has(input:checked) {
  background: rgba(101, 163, 13, 0.07); border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(101, 163, 13, 0.10);
}
.tag-opt:has(input:checked) .label { color: var(--c-accent-deep); font-weight: 700; }

.warning-box {
  background: rgba(101, 163, 13, 0.05); border: 1px solid rgba(101, 163, 13, 0.20);
  border-radius: 14px; padding: 12px 14px;
  font-size: 0.8rem; color: var(--c-accent-deep); line-height: 1.65;
  display: flex; gap: 10px; align-items: flex-start;
}

.submit-btn {
  background: linear-gradient(135deg, #65A30D 0%, #84CC16 100%);
  color: #fff; padding: 12px 28px; border-radius: 9999px;
  font-weight: 700; font-size: 0.95rem;
  box-shadow: 0 10px 28px -10px rgba(101, 163, 13, 0.55);
  transition: filter .15s ease, transform .15s ease;
}
.submit-btn:hover:not(:disabled) { filter: brightness(1.05); transform: translateY(-1px); }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== Pending banner ===== */
.pending-banner {
  background: linear-gradient(90deg, rgba(101, 163, 13, 0.06), rgba(132, 204, 22, 0.04));
  border: 1px solid rgba(101, 163, 13, 0.20);
  border-radius: 14px; padding: 12px 16px; font-size: 0.88rem;
  color: var(--c-accent-deep); display: flex; align-items: center; gap: 10px;
  margin-top: 14px;
}

/* ===== Spinner ===== */
.spinner {
  width: 28px; height: 28px; border: 3px solid #E5E7EB;
  border-top-color: var(--c-accent); border-radius: 9999px;
  animation: chariot-spin 1s linear infinite;
}
.spinner-sm { width: 18px; height: 18px; border-width: 2px; }
@keyframes chariot-spin { to { transform: rotate(360deg); } }

/* ===== Persona preview rail (homepage hero teaser) ===== */
.persona-rail {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; flex-wrap: nowrap;
  margin: 22px auto 8px; max-width: 460px;
  overflow: hidden;
}
.persona-rail .pp {
  width: 44px; height: 44px; border-radius: 9999px; flex-shrink: 0;
  background: linear-gradient(135deg, #FDE68A, #CA8A04);
  border: 2px solid #fff;
  box-shadow: 0 4px 12px -4px rgba(202, 138, 4, 0.30);
  overflow: hidden;
  animation: chariot-float-soft 6s ease-in-out infinite;
}
.persona-rail .pp img { width: 100%; height: 100%; object-fit: cover; }
.persona-rail .pp:nth-child(2) { animation-delay: -1.5s; }
.persona-rail .pp:nth-child(3) { animation-delay: -3s; }
.persona-rail .pp:nth-child(4) { animation-delay: -4.5s; }
.persona-rail .pp:nth-child(5) { animation-delay: -6s; }

/* ===== Footer ===== */
.chariot-footer {
  margin-top: 60px; padding: 28px 16px 40px;
  border-top: 1px solid rgba(101, 163, 13, 0.10);
  text-align: center; font-size: 0.84rem; color: var(--c-text-muted);
}
.chariot-footer a { color: var(--c-text-muted); }
.chariot-footer a:hover { color: var(--c-accent); }
.chariot-footer .dot { color: var(--c-accent); }
