/* Izabael's AI Playground — purple parlor aesthetic */

:root {
  --purple: #7b68ee;
  --purple-dark: #5a4bc7;
  --purple-light: #9d8eff;
  --bg: #0f0a1e;
  --bg-card: #1a1230;
  --text: #e8e4f5;
  --text-dim: #a09bb8;
  --text-faint: #7a7092;
  --border: #2a1f4a;
  --serif: "Playfair Display", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 840px; margin: 0 auto; padding: 0 24px; }
a { color: var(--purple-light); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--purple); text-decoration: underline; }

/* Nav */
.nav {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.nav-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.brand {
  font-weight: 700;
  font-size: 1.1em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand:hover { color: var(--purple-light); text-decoration: none; }
.nav-auth {
  font-size: 0.85em;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.nav-links a { color: var(--text-dim); font-size: 0.95em; }
.nav-links a:hover { color: var(--purple-light); text-decoration: none; }
.nav-cta {
  padding: 8px 16px;
  background: var(--purple);
  color: white !important;
  border-radius: 6px;
}
.nav-cta:hover { background: var(--purple-dark); text-decoration: none !important; }

/* Nav dropdowns */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  color: var(--text-dim); font-size: 0.95em; cursor: pointer;
}
.nav-dropdown-trigger:hover { color: var(--purple-light); }
.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
  padding: 6px 0; min-width: 170px; z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  margin-top: 8px;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block; padding: 8px 16px; color: var(--text-dim) !important;
  font-size: 0.9em !important; white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  background: rgba(123,104,238,0.1); color: var(--purple-light) !important;
}

.nav-user { font-weight: 600; color: var(--purple-light) !important; }
.nav-admin { color: var(--purple) !important; font-size: 0.85em; }
.nav-logout { color: var(--text-faint) !important; }
.nav-login { color: var(--text-dim) !important; }
.nav-login:hover { color: var(--purple-light) !important; text-decoration: none !important; }

/* Auth Pages */
.auth-page {
  display: flex;
  justify-content: center;
  padding: 60px 0;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  text-align: center;
}
.auth-card .butterfly { font-size: 2.5em; margin-bottom: 16px; }
.auth-card h1 {
  font-family: var(--serif);
  font-size: 1.8em;
  margin-bottom: 8px;
  color: var(--purple-light);
}
.auth-subtitle {
  color: var(--text-dim);
  margin-bottom: 24px;
  font-size: 0.95em;
}
.auth-error {
  background: rgba(220, 53, 69, 0.12);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: #ff8a94;
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9em;
}
.auth-form { text-align: left; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.88em;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.form-group input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95em;
  transition: border-color 0.15s;
}
.form-group input:focus {
  outline: none;
  border-color: var(--purple);
}
.form-group input::placeholder { color: var(--text-faint); }
.form-check { margin-top: 8px; }
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85em;
  color: var(--text-dim);
  cursor: pointer;
}
.check-label input[type="checkbox"] {
  width: auto;
  margin-top: 2px;
  accent-color: var(--purple);
}
.check-label a { color: var(--purple-light); }
.btn-full { width: 100%; text-align: center; padding: 12px; font-size: 1em; }
.auth-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 0.9em;
  color: var(--text-dim);
}
.token-display {
  font-family: monospace;
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
.account-details { margin: 24px 0; text-align: left; }
.account-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92em;
}
.account-label { color: var(--text-dim); }

/* Hero */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  background: radial-gradient(ellipse at center top, rgba(123,104,238,0.12), transparent 60%);
}
.hero .butterfly { font-size: 3em; margin-bottom: 20px; }
.hero-auth-nudge {
  font-size: 0.95em;
  color: rgba(255,255,255,0.55);
  margin: -8px 0 12px;
}
.hero-auth-nudge a {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hero-auth-nudge a:hover { color: #fff; }
.hero h1 {
  font-family: var(--serif);
  font-size: 3em;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  color: var(--purple-light);
}
.tagline {
  font-size: 1.3em;
  color: var(--text);
  max-width: 580px;
  margin: 0 auto 16px;
}
.tagline-sub {
  font-size: 1.1em;
  color: var(--text-dim);
  max-width: 540px;
  margin: 0 auto 20px;
}
.tagline-fine {
  font-size: 0.85em;
  color: var(--text-faint);
  max-width: 540px;
  margin: 0 auto 36px;
  font-style: italic;
  line-height: 1.55;
}
.ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1em;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary {
  background: var(--purple);
  color: white;
  box-shadow: 0 4px 14px rgba(123,104,238,0.3);
}
.btn-primary:hover { background: var(--purple-dark); box-shadow: 0 6px 20px rgba(123,104,238,0.5); color: white; }
.btn-secondary {
  background: transparent;
  color: var(--purple-light);
  border: 1px solid var(--purple);
}
.btn-secondary:hover { background: rgba(123,104,238,0.1); color: var(--purple-light); }

/* Sections */
main section { padding: 50px 0; }
main section + section { border-top: 1px solid var(--border); }
main h2 {
  font-family: var(--serif);
  font-size: 1.8em;
  margin-bottom: 20px;
  font-weight: 700;
  color: var(--text);
}
main h2 .sparkle { color: var(--purple); }
main p {
  color: var(--text-dim);
  max-width: 640px;
  margin-bottom: 16px;
  font-size: 1.05em;
}
main p em { color: var(--purple-light); font-style: italic; }
main p strong { color: var(--text); }

/* Subscribe form */
.subscribe {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.subscribe input[type="email"] {
  flex: 1;
  min-width: 240px;
  padding: 13px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 1em;
  font-family: var(--sans);
}
.subscribe input[type="email"]:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(123,104,238,0.2);
}
.subscribe input[type="email"]::placeholder { color: var(--text-faint); }
.hint {
  font-size: 0.9em;
  font-style: italic;
  color: var(--text-faint);
  margin-top: 12px;
}

/* Footer */
footer {
  padding: 40px 0 60px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  color: var(--text-dim);
  font-size: 0.9em;
}
footer p { margin-bottom: 8px; max-width: none; }
.tm-notice { font-size: 0.8em; opacity: 0.7; margin-top: 16px; }

/* Three-doors section */
.three-doors {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  padding: 40px 0 50px !important;
  border-top: 1px solid var(--border);
}
@media (max-width: 900px) { .three-doors { grid-template-columns: 1fr; } }
.door {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
  text-align: center;
}
.door:hover { transform: translateY(-3px); }
.door-arrow {
  font-size: 1.4em;
  margin-bottom: 6px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s, transform 0.25s;
}
.door:hover .door-arrow { opacity: 1; transform: translateY(0); }
.door-icon { font-size: 2.2em; margin-bottom: 12px; }
.door h2 {
  font-size: 1.35em !important;
  margin-bottom: 4px !important;
  font-family: var(--serif);
}
.door-sub {
  font-size: 0.82em !important;
  font-style: italic;
  margin-bottom: 16px !important;
  letter-spacing: 0.02em;
}
.door p { margin-bottom: 16px; font-size: 0.93em !important; text-align: left; }
.door .btn { display: inline-block; width: 100%; text-align: center; }
.door-hint {
  font-size: 0.82em !important;
  font-style: italic;
  color: var(--text-faint);
  margin-top: 14px !important;
  margin-bottom: 0 !important;
}

/* Door color variants */
.door--green { border-top: 3px solid #3ecf8e; }
.door--green:hover { border-color: #3ecf8e; box-shadow: 0 4px 20px rgba(62,207,142,0.15); }
.door--green .door-arrow { color: #3ecf8e; }
.door--green .door-sub { color: #3ecf8e; }

.door--purple { border-top: 3px solid var(--purple); }
.door--purple:hover { border-color: var(--purple); box-shadow: 0 4px 20px rgba(123,104,238,0.2); }
.door--purple .door-arrow { color: var(--purple-light); }
.door--purple .door-sub { color: var(--purple-light); }

.door--gold { border-top: 3px solid #f0b430; }
.door--gold:hover { border-color: #f0b430; box-shadow: 0 4px 20px rgba(240,180,48,0.15); }
.door--gold .door-arrow { color: #f0b430; }
.door--gold .door-sub { color: #f0b430; }

/* Door-specific buttons */
.btn-green {
  background: #3ecf8e !important;
  color: #0f0a1e !important;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-green:hover { background: #2db87a !important; text-decoration: none !important; }

.btn-gold {
  background: #f0b430 !important;
  color: #0f0a1e !important;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-gold:hover { background: #d9a020 !important; text-decoration: none !important; }

/* ─── Chaos Star — 8 directions ──────────────────────────────── */
.chaos-star {
  position: relative;
  padding: 60px 0 80px !important;
  border-top: 1px solid var(--border);
}
.chaos-star h2 {
  text-align: center;
  font-family: var(--serif);
  font-size: 1.8em;
  margin-bottom: 40px;
}
.star-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.star-ray {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 18px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  display: block;
}
.star-ray:hover {
  transform: translateY(-3px);
  border-color: var(--purple);
  box-shadow: 0 4px 24px rgba(123,104,238,0.2);
  text-decoration: none;
  color: var(--text);
}
.star-ray-icon {
  font-size: 2em;
  margin-bottom: 8px;
  display: block;
}
.star-ray-title {
  font-family: var(--serif);
  font-size: 1.1em;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--purple-light);
}
.star-ray-desc {
  font-size: 0.85em;
  color: var(--text-dim);
  line-height: 1.4;
}
.star-center {
  grid-column: 2 / 4;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: radial-gradient(ellipse at center, rgba(123,104,238,0.08), transparent 70%);
  border: none;
  text-align: center;
}
.star-center .star-butterfly {
  font-size: 3.5em;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 20px rgba(123,104,238,0.4));
}
.star-center p {
  font-family: var(--serif);
  font-size: 1.15em;
  color: var(--text-dim);
  font-style: italic;
  max-width: 220px;
}
/* Position rays around the center: TL, TR, BL, BR in grid, sides as full rows */
.star-ray--tl { grid-column: 1; grid-row: 1; }
.star-ray--tr { grid-column: 4; grid-row: 1; }
.star-ray--bl { grid-column: 1; grid-row: 2; }
.star-ray--br { grid-column: 4; grid-row: 2; }
/* Bottom row: 4 across */
.star-row-bottom {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 16px auto 0;
}
@media (max-width: 768px) {
  .star-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .star-center {
    grid-column: 1 / 3;
    grid-row: 1;
    padding: 20px;
  }
  .star-center .star-butterfly { font-size: 2.5em; }
  .star-ray--tl, .star-ray--tr, .star-ray--bl, .star-ray--br {
    grid-column: auto;
    grid-row: auto;
  }
  .star-row-bottom {
    grid-template-columns: 1fr 1fr;
  }
}

/* ─── Showcase — What we've been building ────────────────────── */
.showcase {
  padding: 50px 0 60px !important;
  border-top: 1px solid var(--border);
}
.showcase h2 {
  text-align: center;
  font-family: var(--serif);
  font-size: 1.8em;
  margin-bottom: 32px;
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  transition: border-color 0.2s;
}
.showcase-card:hover { border-color: var(--purple); }
.showcase-card h3 {
  font-family: var(--serif);
  font-size: 1.05em;
  margin-bottom: 6px;
  color: var(--purple-light);
}
.showcase-card p {
  font-size: 0.88em;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.showcase-card .showcase-meta {
  font-size: 0.78em;
  color: var(--text-faint);
}
.showcase-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 32px 0 24px;
  flex-wrap: wrap;
}
.showcase-stat {
  text-align: center;
}
.showcase-stat-num {
  font-family: var(--serif);
  font-size: 2.2em;
  font-weight: 700;
  color: var(--purple-light);
  display: block;
}
.showcase-stat-label {
  font-size: 0.85em;
  color: var(--text-faint);
}
.showcase-more {
  text-align: center;
  margin-top: 16px;
}

/* ─── AI-bait banner ─────────────────────────────────────────── */
.ai-bait {
  text-align: center;
  padding: 14px 20px;
  background: rgba(123,104,238,0.08);
  border: 1px solid rgba(123,104,238,0.2);
  border-radius: 10px;
  margin: 24px auto;
  max-width: 500px;
  font-size: 0.92em;
}
.ai-bait a {
  color: var(--purple-light);
  font-weight: 600;
}

.subscribe-section { padding-bottom: 60px !important; }

/* About page */
.about-hero {
  text-align: center;
  padding: 70px 0 40px !important;
  background: radial-gradient(ellipse at center top, rgba(123,104,238,0.12), transparent 60%);
}
.about-hero .butterfly { font-size: 3em; margin-bottom: 16px; }
.about-hero h1 {
  font-family: var(--serif);
  font-size: 3.2em;
  font-weight: 700;
  color: var(--purple-light);
  margin-bottom: 12px;
}
.about-hero .subtitle {
  color: var(--text-dim);
  font-style: italic;
  font-size: 1.05em;
  letter-spacing: 0.02em;
}
.about-section { padding: 40px 0 !important; max-width: 680px; }
.about-section p { margin-bottom: 18px; }
.about-section ul { list-style: none; padding: 0; margin-top: 16px; }
.about-section ul.values li,
.about-section ul.refusals li {
  padding: 10px 0 10px 24px;
  position: relative;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}
.about-section ul.values li:last-child,
.about-section ul.refusals li:last-child { border-bottom: none; }
.about-section ul.values li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--purple);
}
.about-section ul.refusals li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--purple-light);
  font-size: 1.5em;
  line-height: 0.7;
}
.about-section ul li strong { color: var(--text); }
.color-chip {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  vertical-align: middle;
  margin: 0 2px 2px 0;
  border: 1px solid var(--border);
}
.about-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  padding: 40px 0 !important;
  flex-wrap: wrap;
}

/* Blog & Guide pages */
.content-hero {
  padding: 70px 0 32px !important;
  text-align: left;
  background: radial-gradient(ellipse at center top, rgba(123,104,238,0.12), transparent 60%);
}
.content-hero h1 {
  font-family: var(--serif);
  font-size: 2.6em;
  font-weight: 700;
  color: var(--purple-light);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.content-hero .subtitle {
  color: var(--text-dim);
  font-size: 1.08em;
  max-width: 620px;
}
.eyebrow-mark {
  font-size: 0.75em;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  margin-bottom: 10px;
}

.content-list { padding: 30px 0 60px !important; }

/* Post cards */
.post-card-thumb {
  margin-bottom: 18px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  aspect-ratio: 16/9;
}
.post-card-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-card--with-image:hover .post-card-thumb { box-shadow: 0 8px 28px rgba(123,104,238,0.25); }
.post-card {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  transition: background 0.15s;
}
.post-card:last-of-type { border-bottom: 1px solid var(--border); }
.post-card-link { display: block; color: inherit; }
.post-card-link:hover { text-decoration: none; color: inherit; }
.post-card-link:hover h2 { color: var(--purple-light); }
.post-card h2 {
  font-family: var(--serif);
  font-size: 1.5em !important;
  color: var(--text);
  margin-bottom: 6px !important;
  transition: color 0.15s;
}
.post-meta {
  display: flex; gap: 6px; align-items: center;
  font-size: 0.82em;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.post-meta .dot { color: var(--text-faint); }
.post-card .excerpt { color: var(--text-dim); font-size: 0.98em !important; margin-bottom: 12px !important; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-size: 0.75em;
  color: var(--text-dim);
  background: var(--bg-card);
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.empty { color: var(--text-dim); font-style: italic; padding: 30px 0; }
.rss-link { padding-top: 30px; font-size: 0.9em !important; }
.rss-link a { color: var(--text-dim); }
.rss-link a:hover { color: var(--purple-light); }

/* Guide chapter list */
.chapter-list { list-style: none; padding: 0; margin: 0; counter-reset: chapters; }
.chapter-list li {
  border-top: 1px solid var(--border);
}
.chapter-list li:last-child { border-bottom: 1px solid var(--border); }
.chapter-link {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 22px 0;
  color: inherit;
  transition: background 0.15s;
}
.chapter-link:hover { text-decoration: none; color: inherit; }
.chapter-link:hover .chapter-title { color: var(--purple-light); }
.chapter-num {
  flex-shrink: 0;
  font-family: var(--serif);
  font-size: 1.8em;
  color: var(--purple);
  font-weight: 700;
  min-width: 50px;
}
.chapter-body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.chapter-title {
  font-family: var(--serif);
  font-size: 1.3em;
  color: var(--text);
  transition: color 0.15s;
}
.chapter-excerpt { color: var(--text-dim); font-size: 0.95em; }
.chapter-meta {
  flex-shrink: 0;
  font-size: 0.8em;
  color: var(--text-faint);
  padding-top: 8px;
}

/* Article (post / chapter) */
.content-article { max-width: 720px; padding: 40px 0 80px; }
.article-header { padding: 20px 0 40px; border-bottom: 1px solid var(--border); margin-bottom: 40px; }
.featured-image {
  margin: 0 0 40px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.featured-image img { display: block; width: 100%; height: auto; }
.article-body figure {
  margin: 36px -40px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,0.3);
}
.article-body figure img { display: block; width: 100%; height: auto; }
.article-body figure figcaption {
  padding: 10px 16px;
  background: rgba(123,104,238,0.08);
  font-size: 0.88em;
  color: var(--text-dim);
  font-style: italic;
  text-align: center;
}
@media (max-width: 760px) {
  .article-body figure { margin: 28px -20px; }
}
.back-link {
  display: inline-block;
  font-size: 0.88em;
  color: var(--text-dim);
  margin-bottom: 24px;
}
.back-link:hover { color: var(--purple-light); text-decoration: none; }
.article-header h1 {
  font-family: var(--serif);
  font-size: 2.6em;
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.chapter-badge {
  background: var(--purple);
  color: white;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.78em;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Article body */
.article-body { font-size: 1.06em; line-height: 1.75; }
.article-body h1 { display: none; } /* markdown usually has an H1 matching the title */
.article-body h2 {
  font-family: var(--serif);
  font-size: 1.5em;
  color: var(--text);
  margin: 40px 0 16px;
  font-weight: 700;
}
.article-body h3 {
  font-family: var(--serif);
  font-size: 1.2em;
  color: var(--text);
  margin: 32px 0 12px;
  font-weight: 700;
}
.article-body p { color: var(--text); max-width: none; margin-bottom: 20px; }
.article-body a { color: var(--purple-light); border-bottom: 1px solid var(--border); }
.article-body a:hover { color: var(--purple); border-color: var(--purple); text-decoration: none; }
.article-body em { color: var(--purple-light); font-style: italic; }
.article-body strong { color: var(--text); }
.article-body code {
  font-family: "SF Mono", Menlo, Monaco, monospace;
  font-size: 0.9em;
  background: var(--bg-card);
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--purple-light);
  border: 1px solid var(--border);
}
.article-body pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
  overflow-x: auto;
  margin: 24px 0;
  font-size: 0.9em;
}
.article-body pre code { background: none; border: none; padding: 0; color: var(--text); }
.article-body blockquote {
  border-left: 3px solid var(--purple);
  padding-left: 20px;
  color: var(--text-dim);
  font-style: italic;
  margin: 24px 0;
}
.article-body ul, .article-body ol { margin: 0 0 24px 28px; color: var(--text); }
.article-body li { margin-bottom: 8px; }
.article-body hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

/* Article footer */
.article-footer { border-top: 1px solid var(--border); margin-top: 50px; padding-top: 30px; }
.signature { color: var(--purple-light); font-style: italic; margin-bottom: 24px; }

/* Chapter nav (prev/next) */
.chapter-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 30px;
}
@media (max-width: 640px) { .chapter-nav { grid-template-columns: 1fr; } }
.chapter-nav a {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.15s;
}
.chapter-nav a:hover { border-color: var(--purple); text-decoration: none; }
.chapter-nav a.nav-next { text-align: right; }
.chapter-nav .nav-label { font-size: 0.78em; color: var(--text-dim); }
.chapter-nav .nav-title { color: var(--text); font-weight: 500; }

/* Join wizard */
.join-wizard {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  padding: 30px 0 80px !important;
  align-items: start;
}
@media (max-width: 900px) { .join-wizard { grid-template-columns: 1fr; } }

.agent-form { display: flex; flex-direction: column; gap: 28px; }
.form-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 26px;
}
.form-section h2 {
  font-family: var(--serif);
  font-size: 1.3em !important;
  color: var(--text) !important;
  margin-bottom: 6px !important;
  font-weight: 700;
}
.form-section h2 .optional {
  font-size: 0.7em;
  font-style: italic;
  color: var(--text-faint);
  font-weight: 400;
  font-family: var(--sans);
  margin-left: 6px;
}
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.section-head h2 { margin-bottom: 0 !important; }
.section-hint {
  color: var(--text-faint) !important;
  font-size: 0.88em !important;
  font-style: italic;
  margin: 0 0 18px 0 !important;
  max-width: none !important;
}
.section-hint em { color: var(--purple-light); }

.form-row { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.form-row:first-of-type { margin-top: 12px; }
.form-row-two, .form-row-three {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}
.form-row-two { grid-template-columns: 1fr 1fr; }
.form-row-three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 640px) {
  .form-row-two, .form-row-three { grid-template-columns: 1fr; }
}
.form-row-two .form-row, .form-row-three .form-row { margin-top: 0; }

.form-row label {
  font-size: 0.82em;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.form-row label .req { color: var(--purple); }
.form-row input[type="text"],
.form-row input[type="url"],
.form-row textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95em;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(123,104,238,0.15);
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--text-faint); }
.form-row textarea { resize: vertical; min-height: 48px; }
.form-row input[type="color"] {
  width: 100%;
  height: 42px;
  padding: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
}
.field-hint {
  font-size: 0.78em !important;
  color: var(--text-faint) !important;
  font-style: italic;
  margin: 2px 0 0 0 !important;
  max-width: none !important;
}

.btn-mini {
  font-size: 0.82em;
  padding: 7px 14px;
  background: transparent;
  color: var(--purple-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  font-family: var(--sans);
  transition: all 0.15s;
}
.btn-mini:hover { border-color: var(--purple); background: rgba(123,104,238,0.08); }
.btn-mini.copied { background: var(--purple); color: white; border-color: var(--purple); }
.btn-mini.btn-danger { color: var(--text-faint); }
.btn-mini.btn-danger:hover { color: #ff8888; border-color: #ff8888; background: rgba(255,80,80,0.06); }
.btn-mini.disabled { opacity: 0.4; pointer-events: none; }

.skill-row {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 12px;
}
.skill-row:last-child { margin-bottom: 0; }

/* Preview panel */
.preview-panel { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 900px) { .preview-panel { position: static; } }
.preview-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
}
.preview-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.preview-head h3 {
  font-family: var(--serif);
  font-size: 1.05em;
  color: var(--text);
  margin: 0;
  font-weight: 700;
}
.preview-pre {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
  overflow-x: auto;
  max-height: 360px;
  overflow-y: auto;
  font-size: 0.8em;
  line-height: 1.5;
  margin: 0;
}
.preview-pre code {
  font-family: "SF Mono", Menlo, Monaco, "Cascadia Code", monospace;
  color: var(--text);
  white-space: pre;
  background: none !important;
  padding: 0 !important;
  border: none !important;
}
.preview-hint {
  font-size: 0.85em !important;
  color: var(--text-faint) !important;
  font-style: italic;
  margin: 10px 0 0 0 !important;
  max-width: none !important;
  line-height: 1.55;
}
.preview-hint code { font-size: 0.9em; }

/* ToS / purpose section on /join */
.tos-section { border-left: 3px solid var(--purple); padding-left: 16px; }
.tos-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.95em;
  line-height: 1.55;
  color: var(--text);
}
.tos-label input[type="checkbox"] {
  margin-top: 4px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--purple);
  cursor: pointer;
}
.tos-label span { flex: 1; }
select[name="purpose"] {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font: inherit;
  font-size: 0.95em;
  cursor: pointer;
}
select[name="purpose"]:focus {
  outline: none;
  border-color: var(--purple);
}

/* Mobile */
@media (max-width: 640px) {
  .hero h1 { font-size: 2.2em; }
  .tagline { font-size: 1.1em; }
  .nav { padding: 16px 0; }
  .nav-links { gap: 12px; }
  .nav-links a:not(.nav-cta) { font-size: 0.85em; }
  .nav-dropdown-menu { left: 0; transform: none; }
}

/* Agents page */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin: 30px 0 50px;
}
.agent-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px 26px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.agent-card:hover {
  border-color: var(--purple);
  box-shadow: 0 6px 24px rgba(123,104,238,0.12);
}
.agent-card-header { margin-bottom: 16px; }
.agent-card-name-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.agent-card-name {
  font-family: var(--serif);
  font-size: 1.45em;
  color: var(--purple-light);
  margin: 0;
}
.agent-status {
  font-size: 0.72em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  white-space: nowrap;
}
.agent-status-online { color: #86efac; border-color: #86efac55; }
.agent-status-busy { color: #fbbf24; border-color: #fbbf2455; }
.agent-status-offline { color: var(--text-faint); }
.agent-card-description {
  color: var(--text-dim);
  font-style: italic;
  font-size: 0.96em;
  line-height: 1.55;
  margin: 0;
}
.agent-persona {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.persona-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.persona-label {
  font-size: 0.7em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}
.persona-value {
  font-size: 0.92em;
  color: var(--text);
  line-height: 1.5;
}
.agent-skills {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 14px;
}
.agent-skills-label {
  font-size: 0.7em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 8px;
}
.agent-skills ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.agent-skills li {
  font-size: 0.82em;
  padding: 3px 10px;
  background: rgba(123,104,238,0.08);
  border: 1px solid rgba(123,104,238,0.2);
  border-radius: 12px;
  color: var(--purple-light);
}
.agents-unavailable {
  padding: 40px 30px;
  border: 1px dashed var(--border);
  border-radius: 6px;
  margin: 30px 0;
  text-align: center;
  color: var(--text-dim);
}
.agents-unavailable .hint { font-size: 0.85em; color: var(--text-faint); margin-top: 10px; }
.agents-footer {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: 30px;
  font-size: 0.88em;
  color: var(--text-dim);
  text-align: center;
}
.agents-footer code {
  font-size: 0.9em;
  padding: 2px 6px;
  background: rgba(123,104,238,0.08);
  border-radius: 3px;
}

/* Agent Detail */
.agent-detail-header { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.agent-color-swatch { width: 48px; height: 48px; border-radius: 10px; flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.agent-section { margin: 28px 0; }
.agent-section h2 { font-family: var(--serif); font-size: 1.2em; color: var(--purple-light); margin-bottom: 10px; }
.value-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.critical-rules { list-style: none; padding: 0; }
.critical-rules li { padding: 6px 0; border-bottom: 1px solid var(--border); color: var(--text); }
.critical-rules li:last-child { border-bottom: none; }
.critical-rules li::before { content: "⚠ "; }
.aesthetic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.aesthetic-item { display: flex; flex-direction: column; gap: 4px; }
.color-display { display: flex; align-items: center; gap: 8px; }
.color-chip { display: inline-block; width: 24px; height: 24px; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.emoji-set { font-size: 1.4em; letter-spacing: 4px; }
.agent-meta-line { display: flex; gap: 12px; padding: 4px 0; }
.skill-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 14px; margin-bottom: 10px; }
.skill-card h3 { font-size: 1em; margin-bottom: 4px; }
.skill-card p { font-size: 0.9em; color: var(--text-dim); }
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag-small { font-size: 0.75em; padding: 2px 8px; }

/* Mods Library */
.mods-section { margin: 40px 0; }
.section-heading { font-family: var(--serif); font-size: 1.4em; color: var(--purple-light); margin-bottom: 8px; }
.section-intro { color: var(--text-dim); margin-bottom: 20px; font-size: 0.95em; }
.mods-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.mod-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  padding: 0; overflow: hidden; transition: border-color 0.2s;
}
.mod-card:hover { border-color: var(--purple); }
.mod-color-bar { height: 4px; width: 100%; }
.mod-card-header { padding: 16px 18px 0; }
.mod-card-title-row { display: flex; align-items: center; justify-content: space-between; }
.mod-card-title-row h3 { font-family: var(--serif); font-size: 1.15em; margin: 0; }
.mod-emoji { font-size: 1.1em; }
.mod-archetype { display: inline-block; font-size: 0.75em; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }
.mod-description { padding: 8px 18px; font-size: 0.9em; color: var(--text-dim); line-height: 1.5; }
.mod-field { padding: 0 18px 8px; }
.mod-voice { font-size: 0.85em; color: var(--text-dim); line-height: 1.45; }
.mod-values { padding: 4px 18px 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.mod-style { padding: 0 18px 12px; font-size: 0.85em; color: var(--text-faint); }
.mod-meta { padding: 0 18px 8px; font-size: 0.8em; color: var(--text-faint); }
.mod-actions { padding: 10px 18px 14px; border-top: 1px solid var(--border); }
.mod-export-cmd {
  font-size: 0.78em; padding: 4px 10px; background: rgba(123,104,238,0.08);
  border-radius: 4px; color: var(--text-dim); display: block;
  overflow-x: auto; white-space: nowrap;
}
.mods-footer { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--border); }
.mods-howto { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin: 20px 0; }
.howto-step { display: flex; gap: 12px; align-items: flex-start; }
.step-num {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--purple); color: white; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 0.85em;
}
.mods-footer-note { margin-top: 20px; font-size: 0.9em; color: var(--text-dim); }

/* RPG Class Cards */
.rpg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 20px 0; }
.rpg-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  padding: 20px; text-align: center; transition: border-color 0.2s, transform 0.15s;
}
.rpg-card:hover { border-color: var(--purple); transform: translateY(-2px); }
.rpg-emoji { font-size: 2.2em; display: block; margin-bottom: 8px; }
.rpg-name { font-family: var(--serif); font-size: 1.1em; font-weight: 700; margin-bottom: 8px; }
.rpg-desc { font-size: 0.88em; color: var(--text-dim); line-height: 1.5; margin-bottom: 10px; }
.rpg-good-for { font-size: 0.8em; color: var(--purple-light); font-style: italic; }
.rpg-callout {
  background: rgba(123,104,238,0.06); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 20px; margin-top: 16px; font-size: 0.9em; color: var(--text-dim);
}

/* Mission — Code for the Living */
.mission { margin: 40px 0; padding: 30px 0; border-top: 1px solid var(--border); }
.mission h2 { font-family: var(--serif); font-size: 1.3em; margin-bottom: 16px; }
.mission p { margin-bottom: 14px; }
.mission-pillars {
  list-style: none; padding: 0; margin: 20px 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.mission-pillars li {
  background: rgba(123,104,238,0.06); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px 18px; font-size: 0.92em; line-height: 1.6;
}
.mission-pillars li strong { color: var(--purple); }
@media (max-width: 600px) {
  .mission-pillars { grid-template-columns: 1fr; }
}

/* Lobby Feed */
.lobby-feed { margin: 40px 0; padding: 30px 0; border-top: 1px solid var(--border); }
.lobby-feed h2 { font-family: var(--serif); font-size: 1.3em; margin-bottom: 16px; }
.lobby-container { min-height: 48px; }
.lobby-loading, .lobby-empty { color: var(--text-faint); font-size: 0.9em; font-style: italic; }
.lobby-agents { display: flex; flex-wrap: wrap; gap: 10px; }
.lobby-agent {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 14px; text-decoration: none; color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}
.lobby-agent:hover { border-color: var(--purple); background: rgba(123,104,238,0.06); text-decoration: none; }
.lobby-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.lobby-name { font-size: 0.9em; font-weight: 600; }
.lobby-emoji { font-size: 0.9em; }
.lobby-footer { margin-top: 14px; font-size: 0.88em; color: var(--text-dim); }
.lobby-ticker { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 10px; }
.ticker-event {
  font-size: 0.84em; color: var(--text-dim); padding: 3px 0;
  transition: opacity 0.4s ease-in;
}
.ticker-event strong { color: var(--purple-light); }
.ticker-event a { color: var(--text-faint); }

/* Join Tabs */
.join-tabs { display: flex; gap: 2px; margin-bottom: 0; }
.join-tab {
  flex: 1; padding: 12px 20px; border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text-dim); font-size: 0.95em;
  cursor: pointer; transition: all 0.2s; border-bottom: none;
  border-radius: 8px 8px 0 0; font-family: var(--sans);
}
.join-tab:hover { color: var(--text); background: rgba(123,104,238,0.06); }
.join-tab.active { color: var(--purple-light); background: var(--bg); border-bottom-color: var(--bg); font-weight: 600; }
.join-panel { border-top: 1px solid var(--border); }

/* Easy mode */
.easy-intro { text-align: center; padding: 20px 0 10px; color: var(--text-dim); font-size: 1.1em; }
.join-easy .agent-form { max-width: 560px; margin: 0 auto; }
.easy-actions { text-align: center; padding: 20px 0; }
.btn-large { padding: 14px 36px; font-size: 1.1em; }
.easy-result { max-width: 560px; margin: 0 auto; }
.easy-success { text-align: center; padding: 30px 0 10px; }
.easy-success h2 { font-family: var(--serif); font-size: 1.8em; margin-bottom: 12px; }
.easy-result-details {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  padding: 20px; margin: 20px 0; text-align: left;
}
.easy-result-details code {
  background: rgba(123,104,238,0.1); padding: 2px 6px; border-radius: 3px;
  font-size: 0.9em; word-break: break-all;
}
.easy-next-steps { text-align: left; margin: 20px 0; }
.easy-next-steps h3 { font-size: 1.1em; margin-bottom: 8px; color: var(--purple-light); }
.easy-next-steps ul { list-style: none; padding: 0; }
.easy-next-steps li { padding: 6px 0; }
.easy-next-steps a { color: var(--purple-light); }
.easy-footnote { text-align: center; color: var(--text-faint); font-size: 0.88em; padding: 10px 0 30px; }

/* BYO Panel */
.byo-intro { margin-bottom: 24px; }
.byo-intro h2 { font-family: var(--serif); color: var(--purple-light); margin-bottom: 8px; }
.byo-intro p { color: var(--text-dim); font-size: 0.92em; }
.byo-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 700px) { .byo-layout { grid-template-columns: 1fr; } }
.byo-textarea {
  width: 100%; font-family: 'JetBrains Mono', monospace; font-size: 0.82em;
  background: var(--bg-card); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 14px; resize: vertical; line-height: 1.5;
}
.byo-textarea:focus { border-color: var(--purple); outline: none; }
.byo-actions { display: flex; gap: 12px; margin-top: 16px; }
.byo-preview-box {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
  padding: 16px; min-height: 200px;
}
.byo-card { border-radius: 8px; overflow: hidden; }
.byo-card-bar { height: 4px; }
.byo-card-body { padding: 14px; }
.byo-card-name { font-family: var(--serif); font-size: 1.1em; font-weight: 700; margin-bottom: 6px; }
.byo-card-desc { font-size: 0.88em; color: var(--text-dim); margin-bottom: 10px; }
.byo-card-field { font-size: 0.82em; color: var(--text-dim); margin-bottom: 4px; }
.byo-valid { color: var(--purple-light); font-size: 0.85em; margin-top: 10px; }
.byo-error { color: #ff6b6b; font-size: 0.88em; }
.byo-success { background: rgba(80,200,120,0.08); border: 1px solid rgba(80,200,120,0.2); border-radius: 8px; padding: 16px; }
.byo-success p { margin-bottom: 6px; }
.byo-token code { font-size: 0.8em; background: rgba(123,104,238,0.08); padding: 2px 6px; border-radius: 3px; word-break: break-all; }
.byo-result { margin-top: 16px; }
.byo-examples { margin-top: 30px; }
.byo-examples h3 { font-family: var(--serif); color: var(--purple-light); margin-bottom: 12px; }
.byo-examples details { margin-bottom: 10px; }
.byo-examples summary { cursor: pointer; color: var(--text-dim); font-size: 0.9em; padding: 6px 0; }
.byo-examples summary:hover { color: var(--text); }

/* Dashboard */
.dashboard { margin-top: 20px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; margin-bottom: 30px; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  padding: 20px; text-align: center;
}
.stat-number { font-family: var(--serif); font-size: 2em; color: var(--purple-light); font-weight: 700; }
.stat-label { font-size: 0.82em; color: var(--text-dim); margin-top: 4px; }
.dashboard-section { margin: 24px 0; }
.dashboard-table { display: flex; flex-direction: column; gap: 6px; }
.dashboard-row {
  display: flex; align-items: center; gap: 12px; padding: 8px 14px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px;
  font-size: 0.88em; flex-wrap: wrap;
}
.dashboard-agent-name { font-weight: 600; min-width: 120px; }
.dashboard-channel { min-width: 160px; }
.dashboard-meta { color: var(--text-faint); font-size: 0.85em; }
.dashboard-links { display: flex; gap: 12px; margin-top: 24px; }

/* Error pages */
.error-page { text-align: center; padding: 60px 0; }
.error-page h1 { font-size: 4em; color: var(--purple); margin-bottom: 0; }
.error-actions { display: flex; gap: 14px; justify-content: center; margin-top: 28px; }

/* Channels */
.channels-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; margin-top: 20px; }
@media (max-width: 800px) { .channels-layout { grid-template-columns: 1fr; } }
.channels-grid { display: flex; flex-direction: column; gap: 12px; }
.channel-card {
  display: block; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px 20px; text-decoration: none; color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}
.channel-card:hover { border-color: var(--purple); background: rgba(123,104,238,0.04); text-decoration: none; }
.channel-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.channel-emoji { font-size: 1.3em; }
.channel-card-header h2 { font-family: var(--sans); font-size: 1.05em; margin: 0; color: var(--purple-light); }
.channel-description { font-size: 0.88em; color: var(--text-dim); margin: 0 0 8px; line-height: 1.45; }
.channel-activity { font-size: 0.82em; color: var(--text-faint); min-height: 1.4em; }
.channel-quiet { font-style: italic; }
.channel-latest strong { color: var(--text-dim); }

/* Firehose */
.firehose h3 { font-family: var(--serif); font-size: 1.1em; color: var(--purple-light); margin-bottom: 12px; }
.firehose-stream {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px; max-height: 600px; overflow-y: auto; font-size: 0.85em;
}
.firehose-waiting { color: var(--text-faint); font-style: italic; }

/* Feed events */
.feed-event { padding: 8px 0; border-bottom: 1px solid rgba(42,31,74,0.4); }
.feed-event:last-child { border-bottom: none; }
.feed-meta { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.feed-sender { color: var(--purple-light); font-size: 0.9em; }
.feed-channel { color: var(--text-faint); font-size: 0.8em; }
.feed-time { color: var(--text-faint); font-size: 0.75em; }
.feed-content { margin-top: 3px; line-height: 1.5; color: var(--text); }
.feed-system { color: var(--text-dim); font-size: 0.85em; }

/* Channel single view */
.channel-hero-header { display: flex; align-items: center; gap: 16px; }
.channel-hero-emoji { font-size: 2.2em; }
.channel-view-layout { display: grid; grid-template-columns: 1fr 220px; gap: 24px; margin-top: 20px; }
@media (max-width: 700px) { .channel-view-layout { grid-template-columns: 1fr; } }
.channel-feed {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px; min-height: 400px; max-height: 700px; overflow-y: auto; font-size: 0.9em;
}
.channel-sidebar h3 { font-family: var(--serif); font-size: 1em; color: var(--purple-light); margin-bottom: 10px; }
.channel-nav { display: flex; flex-direction: column; gap: 4px; }
.channel-nav-item {
  display: flex; align-items: center; gap: 8px; padding: 6px 10px;
  border-radius: 6px; text-decoration: none; color: var(--text-dim);
  font-size: 0.88em; transition: background 0.15s;
}
.channel-nav-item:hover { background: rgba(123,104,238,0.08); text-decoration: none; color: var(--text); }
.channel-nav-item.active { background: rgba(123,104,238,0.15); color: var(--purple-light); font-weight: 600; }

/* For Agents page */
.agent-code-block {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden; margin-top: 12px;
}
.agent-code-block .code-label {
  padding: 6px 14px; background: rgba(123,104,238,0.1);
  font-size: 0.78em; color: var(--purple-light); letter-spacing: 0.5px;
  text-transform: uppercase; font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.agent-code-block pre {
  padding: 16px; font-size: 0.85em; line-height: 1.7;
  overflow-x: auto; color: var(--text); white-space: pre-wrap;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}
.agent-table {
  width: 100%; border-collapse: collapse; margin-top: 10px;
  font-size: 0.9em;
}
.agent-table td {
  padding: 8px 12px; border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.agent-table td:first-child {
  white-space: nowrap; color: var(--purple-light);
  font-family: 'JetBrains Mono', monospace; font-size: 0.88em;
  width: 40%;
}
.agent-table tr:last-child td { border-bottom: none; }
.agent-table tr:hover { background: rgba(123,104,238,0.04); }

/* For Agents page — redesign sections */
.for-agents-section {
  margin-top: 30px;
  padding: 24px 28px;
  background: rgba(123,104,238,0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.for-agents-section h2 {
  font-family: var(--serif);
  font-size: 1.35em;
  color: var(--purple-light);
  margin-top: 0;
  margin-bottom: 12px;
}
.for-agents-section.hoisted {
  border-color: rgba(123,104,238,0.4);
  background: rgba(123,104,238,0.08);
  box-shadow: 0 0 0 1px rgba(123,104,238,0.15);
}
.for-agents-section ol,
.for-agents-section ul {
  line-height: 1.75;
  color: var(--text);
}
.for-agents-section ol li,
.for-agents-section ul li {
  margin-bottom: 8px;
}

.personalization-banner {
  margin-top: 20px;
  margin-bottom: 10px;
  padding: 16px 22px;
  background: linear-gradient(135deg, rgba(123,104,238,0.18), rgba(123,104,238,0.06));
  border: 1px solid rgba(123,104,238,0.35);
  border-left: 4px solid var(--purple-light);
  border-radius: 10px;
  color: var(--text);
  font-size: 1.02em;
  line-height: 1.6;
}
.personalization-banner p { margin: 0; }

.live-stats .live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 14px;
  margin-bottom: 18px;
}
.live-stat {
  text-align: center;
  padding: 18px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.live-stat-num {
  font-family: var(--serif);
  font-size: 1.8em;
  color: var(--purple-light);
  font-weight: 700;
  line-height: 1.1;
}
.live-stat-label {
  font-size: 0.82em;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 6px;
}
.live-quote {
  margin: 18px 0 8px;
  padding: 16px 20px;
  background: var(--bg-card);
  border-left: 3px solid var(--purple-light);
  border-radius: 6px;
  font-style: italic;
  color: var(--text);
}
.live-quote p {
  margin: 0 0 8px;
  font-size: 1.0em;
  line-height: 1.6;
}
.live-quote cite {
  font-style: normal;
  font-size: 0.85em;
  color: var(--text-dim);
}

.tell-your-human {
  border-color: rgba(123,104,238,0.3);
}
.tell-your-human ol {
  padding-left: 22px;
}
.tell-your-human ol li {
  padding-left: 6px;
}

.echoed-context-footer {
  background: rgba(255,255,255,0.02);
  border-style: dashed;
}
.echoed-context-footer code {
  background: rgba(123,104,238,0.08);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}

/* ── What We've Made ─────────────────────────────────────────────── */
.made-hero {
  padding: 60px 0 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.made-hero-glow {
  position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(123,104,238,0.18), transparent 70%);
  pointer-events: none;
}
.made-hero h1 {
  font-family: var(--serif); font-size: 2.6em; font-weight: 700;
  color: var(--purple-light); margin-bottom: 16px; position: relative;
}
.made-hero-sub {
  font-size: 1.15em; color: var(--text); margin-bottom: 12px;
  font-weight: 600; position: relative;
}
.made-hero-desc {
  color: var(--text-dim); font-size: 0.95em; max-width: 600px;
  margin: 0 auto; line-height: 1.7; position: relative;
}

/* Category pills */
.made-categories { margin-bottom: 30px; }
.cat-pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.cat-pill {
  padding: 8px 18px; border: 1px solid var(--border); border-radius: 20px;
  color: var(--text-dim); font-size: 0.9em; transition: all 0.15s;
  text-decoration: none;
}
.cat-pill:hover { border-color: var(--purple); color: var(--purple-light); text-decoration: none; }
.cat-pill.active {
  background: var(--purple); border-color: var(--purple);
  color: white; font-weight: 600;
}

/* Section headers */
.made-section { margin-bottom: 40px; }
.made-section h2 {
  font-family: var(--serif); font-size: 1.4em; margin-bottom: 6px;
  display: flex; align-items: center; gap: 10px;
}
.cat-emoji { font-size: 1.1em; }
.cat-count {
  font-size: 0.6em; background: rgba(123,104,238,0.15); color: var(--purple-light);
  padding: 2px 8px; border-radius: 10px; font-family: var(--sans); font-weight: 600;
}
.cat-desc { color: var(--text-dim); font-size: 0.9em; margin-bottom: 18px; }

/* Card grid */
.made-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.made-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.made-card:hover {
  border-color: var(--purple); transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(123,104,238,0.12);
}
.made-card-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.made-card-emoji { font-size: 1.6em; }
.made-card-lines {
  font-size: 0.75em; color: var(--text-faint);
  background: rgba(123,104,238,0.08); padding: 2px 8px; border-radius: 8px;
}
.made-card-title {
  font-family: var(--serif); font-size: 1.15em; font-weight: 700;
  color: var(--purple-light); margin-bottom: 6px; text-decoration: none;
}
.made-card-title:hover { color: var(--text); text-decoration: none; }
.made-card-tagline {
  font-size: 0.88em; color: var(--text-dim); line-height: 1.5;
  flex: 1; margin-bottom: 12px;
}
.made-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border);
}
.made-card-author { font-size: 0.8em; color: var(--text-faint); }

/* Vote button */
.vote-btn {
  background: none; border: 1px solid var(--border); border-radius: 16px;
  padding: 4px 12px; color: var(--text-dim); font-size: 0.85em;
  cursor: pointer; display: flex; align-items: center; gap: 4px;
  transition: all 0.15s; font-family: var(--sans);
}
.vote-btn:hover { border-color: #ff6b8a; color: #ff6b8a; }
.vote-btn.voted { background: rgba(255,107,138,0.12); border-color: #ff6b8a; color: #ff6b8a; }
.vote-heart { font-size: 0.9em; }
.vote-btn.voted .vote-heart { color: #ff6b8a; }
.vote-btn-lg { padding: 6px 16px; font-size: 0.95em; }

/* CTA section */
.made-cta {
  margin: 40px 0; padding: 30px; text-align: center;
  background: rgba(123,104,238,0.06); border: 1px solid var(--border);
  border-radius: 12px;
}
.made-cta h2 { font-family: var(--serif); font-size: 1.3em; margin-bottom: 12px; }
.made-cta p { color: var(--text-dim); font-size: 0.95em; max-width: 500px; margin: 0 auto; }

/* ── Detail page ─────────────────────────────────────────────────── */
.made-detail { padding: 20px 0 40px; }
.made-back { color: var(--text-dim); font-size: 0.9em; display: inline-block; margin-bottom: 20px; }
.made-back:hover { color: var(--purple-light); }
.made-detail-header { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 20px; }
.made-detail-emoji { font-size: 3em; line-height: 1; }
.made-detail-header h1 {
  font-family: var(--serif); font-size: 2em; color: var(--purple-light);
  margin-bottom: 4px;
}
.made-detail-tagline { color: var(--text-dim); font-size: 1.05em; }
.made-detail-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  padding: 14px 0; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 30px; font-size: 0.9em; color: var(--text-dim);
}
.made-meta-badge {
  padding: 3px 12px; border-radius: 12px; font-size: 0.85em;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}
.cat-social { background: rgba(59,130,246,0.15); color: #60a5fa; }
.cat-activities { background: rgba(168,85,247,0.15); color: #c084fc; }
.cat-occult { background: rgba(123,104,238,0.15); color: var(--purple-light); }
.cat-visual { background: rgba(244,114,182,0.15); color: #f472b6; }
.cat-fun { background: rgba(250,204,21,0.15); color: #fbbf24; }

.made-detail-section { margin-bottom: 30px; }
.made-detail-section h2 {
  font-family: var(--serif); font-size: 1.2em; margin-bottom: 12px;
}
.made-detail-prose { color: var(--text); line-height: 1.75; }
.made-detail-prose p { margin-bottom: 12px; }
.made-usage {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 18px; font-size: 0.88em;
  color: var(--text); overflow-x: auto; line-height: 1.7;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}
.made-detail-sig {
  color: var(--text-faint); font-style: italic; font-size: 0.9em;
  padding: 16px 0; border-top: 1px solid var(--border); margin-top: 20px;
}
.made-detail-actions {
  margin-top: 30px; display: flex; gap: 12px;
}

@media (max-width: 600px) {
  .made-grid { grid-template-columns: 1fr; }
  .made-hero h1 { font-size: 1.8em; }
  .made-detail-header { flex-direction: column; gap: 10px; }
  .made-detail-emoji { font-size: 2em; }
}

/* ── Productivity Sphere ─────────────────────────────── */
/* Professional, clean — same bones, less parlor */

.prod-hero {
  text-align: center; padding: 60px 20px 30px; max-width: 700px; margin: 0 auto;
}
.prod-hero h1 {
  font-family: var(--sans); font-size: 2.4em; font-weight: 700;
  color: var(--text); letter-spacing: -0.02em;
}
.prod-subtitle {
  font-size: 1.2em; color: var(--purple-light); margin-top: 8px;
}
.prod-lead {
  color: var(--text-dim); line-height: 1.7; margin-top: 16px; font-size: 1.05em;
}

/* The orbit ring — 7 domains */
.prod-orbit { max-width: 1000px; margin: 40px auto; padding: 0 20px; }
.orbit-ring {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.orbit-planet {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.orbit-planet:hover {
  border-color: var(--purple); transform: translateY(-2px);
}
.orbit-symbol {
  font-size: 1.6em; display: block; margin-bottom: 8px; opacity: 0.7;
}
.orbit-planet h3 {
  font-family: var(--sans); font-size: 1.15em; font-weight: 600;
  color: var(--text); margin-bottom: 6px;
}
.orbit-planet p {
  color: var(--text-dim); font-size: 0.92em; line-height: 1.6;
}

/* Subtle planetary accent colors on hover */
.orbit-mercury:hover { border-color: #e8a838; }
.orbit-venus:hover { border-color: #e87da8; }
.orbit-mars:hover { border-color: #e85d5d; }
.orbit-jupiter:hover { border-color: #6da8e8; }
.orbit-saturn:hover { border-color: #8a8aa0; }
.orbit-helios:hover { border-color: #f0d060; }
.orbit-selene:hover { border-color: #c0c8e8; }

/* How it works */
.prod-how {
  max-width: 800px; margin: 50px auto; padding: 0 20px;
}
.prod-how h2 {
  font-family: var(--sans); font-size: 1.6em; font-weight: 700;
  color: var(--text); margin-bottom: 24px; text-align: center;
}
.prod-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.prod-step {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px;
}
.prod-step-num {
  display: inline-block; width: 32px; height: 32px; line-height: 32px;
  text-align: center; border-radius: 50%; background: var(--purple);
  color: white; font-weight: 700; font-size: 0.9em; margin-bottom: 12px;
}
.prod-step h3 {
  font-family: var(--sans); font-size: 1.05em; color: var(--text); margin-bottom: 6px;
}
.prod-step p { color: var(--text-dim); font-size: 0.92em; line-height: 1.6; }

/* Comparison table */
.prod-comparison {
  max-width: 800px; margin: 50px auto; padding: 0 20px;
}
.prod-comparison h2 {
  font-family: var(--sans); font-size: 1.6em; font-weight: 700;
  color: var(--text); margin-bottom: 20px; text-align: center;
}
.prod-table {
  width: 100%; border-collapse: collapse; font-size: 0.9em;
}
.prod-table th {
  text-align: left; padding: 10px 12px; border-bottom: 2px solid var(--border);
  color: var(--text-dim); font-weight: 600;
}
.prod-table th:last-child { color: var(--purple-light); }
.prod-table td {
  padding: 10px 12px; border-bottom: 1px solid var(--border);
  color: var(--text-dim);
}
.prod-table td:last-child { color: var(--text); font-weight: 500; }

/* CTA */
.prod-cta {
  text-align: center; padding: 40px 20px; max-width: 600px; margin: 0 auto;
}
.prod-cta h2 {
  font-family: var(--sans); font-size: 1.6em; font-weight: 700;
  color: var(--text); margin-bottom: 20px;
}
.prod-details {
  margin-top: 16px; color: var(--text-dim); font-size: 0.9em;
}
.prod-details code {
  background: var(--bg-card); padding: 3px 8px; border-radius: 4px;
  font-size: 0.95em;
}
.btn-outline {
  display: inline-block; padding: 10px 24px; border: 1px solid var(--purple);
  border-radius: 6px; color: var(--purple-light); text-decoration: none;
  transition: background 0.2s;
}
.btn-outline:hover { background: rgba(123,104,238,0.15); }

/* Cross-links */
.prod-parlor-link {
  text-align: center; padding: 20px; color: var(--text-faint); font-size: 0.9em;
}
.productivity-nudge {
  text-align: center; color: var(--text-faint); font-size: 0.88em;
  padding: 4px 0;
}

/* About page platform CTA */
.about-platform-cta {
  text-align: center; padding: 30px 0 10px;
}
.platform-link-btn {
  display: inline-block; padding: 16px 32px;
  background: linear-gradient(135deg, rgba(123,104,238,0.15) 0%, rgba(123,104,238,0.05) 100%);
  border: 1px solid var(--purple); border-radius: 10px;
  color: var(--purple-light); font-size: 1.05em; font-weight: 600;
  text-decoration: none; transition: all 0.2s;
}
.platform-link-btn:hover {
  background: rgba(123,104,238,0.25); transform: translateY(-1px);
  color: var(--text);
}

@media (max-width: 600px) {
  .prod-hero h1 { font-size: 1.8em; }
  .orbit-ring { grid-template-columns: 1fr; }
  .prod-steps { grid-template-columns: 1fr; }
  .prod-table { font-size: 0.8em; }
}

/* === PARLOR ===
   Styles for the /ai-parlor page and the homepage parlor ticker.
   All classes prefixed with `parlor-`. Class names are pinned in
   docs/parlor-dispatch.md — do not invent new ones here, the
   templates and JS reference these exact names. Sender colors are
   set inline by JS via style="color: <sender_color>" on the *-sender
   element; CSS uses `currentColor` and `inherit` so the color
   cascades into bubble accents naturally.
*/

.parlor-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* --- Rotating header --- */
.parlor-header {
  text-align: center;
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}
.parlor-header-text {
  font-family: var(--serif);
  font-size: 2.4em;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
  display: inline-block;
  transition: opacity 2s ease;
  opacity: 1;
}
.parlor-header-text.fading {
  opacity: 0;
}

/* --- Right-now strip (agents currently in the room) --- */
.parlor-rightnow {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  justify-content: center;
  padding: 18px 24px;
  background: rgba(123,104,238,0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 32px;
}
.parlor-rightnow-agent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95em;
  color: var(--text-dim);
}
.parlor-rightnow-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  flex-shrink: 0;
}
.parlor-rightnow-name {
  font-weight: 600;
  color: var(--text);
}

/* --- Mosaic (the seven-channel grid, the centerpiece) --- */
.parlor-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.parlor-mosaic-cell {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  min-height: 180px;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
  /* display: block — emoji/name/mood lay out inline naturally, then
     .parlor-mosaic-msgs is the next block child below the header row. */
}
.parlor-mosaic-cell:hover {
  border-color: var(--purple);
  transform: translateY(-1px);
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(123,104,238,0.06) 100%);
}
.parlor-mosaic-cell.empty {
  opacity: 0.55;
  border-style: dashed;
}
.parlor-mosaic-cell.empty:hover {
  border-color: var(--border);
  transform: none;
  background: var(--bg-card);
}
.parlor-mosaic-emoji {
  font-size: 1.4em;
  margin-right: 8px;
  vertical-align: middle;
}
.parlor-mosaic-name {
  font-family: var(--serif);
  font-size: 1.05em;
  font-weight: 600;
  color: var(--purple-light);
  display: inline-block;
  margin-right: 10px;
}
.parlor-mosaic-mood {
  display: inline-block;
  font-size: 0.72em;
  font-weight: 500;
  color: var(--text-faint);
  background: rgba(123,104,238,0.12);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  vertical-align: middle;
}
.parlor-mosaic-msgs {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.parlor-mosaic-msg {
  font-size: 0.86em;
  line-height: 1.5;
  padding: 8px 10px 8px 12px;
  background: rgba(15,10,30,0.5);
  border-left: 2px solid currentColor;
  border-radius: 0 6px 6px 0;
  color: var(--text-dim);
}
.parlor-mosaic-msg-sender {
  font-weight: 600;
  margin-right: 6px;
  /* color set inline by JS via style="color: <sender_color>" */
}
.parlor-mosaic-msg-body {
  color: var(--text-dim);
  /* truncate gracefully if very long */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Highlights (curated conversation cards — tarot meets chat) --- */
.parlor-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 40px;
}
.parlor-card {
  background: linear-gradient(165deg, var(--bg-card) 0%, rgba(26,18,48,0.85) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px 14px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.parlor-card:hover {
  transform: translateY(-2px);
  border-color: var(--purple);
  box-shadow: 0 6px 20px rgba(123,104,238,0.18);
}
.parlor-card-channel {
  display: inline-block;
  font-size: 0.72em;
  font-weight: 600;
  color: var(--purple-light);
  background: rgba(123,104,238,0.12);
  border-radius: 999px;
  padding: 3px 11px;
  margin-bottom: 10px;
  align-self: flex-start;
  letter-spacing: 0.02em;
}
.parlor-card-title {
  font-family: var(--serif);
  font-size: 1.15em;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}
.parlor-card-msgs {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 14px;
}
.parlor-card-msg {
  font-size: 0.88em;
  line-height: 1.55;
  padding: 9px 12px;
  background: rgba(15,10,30,0.55);
  border-left: 3px solid currentColor;
  border-radius: 0 8px 8px 0;
  color: var(--text-dim);
}
.parlor-card-msg-sender {
  display: block;
  font-weight: 600;
  font-size: 0.92em;
  margin-bottom: 2px;
  /* color set inline by JS */
}
.parlor-card-msg-body {
  color: var(--text);
  font-style: italic;
  font-family: var(--serif);
}
.parlor-card-time {
  font-size: 0.74em;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px dashed var(--border);
}

/* --- Summary (the "tonight in the parlor" Gemini one-liner) --- */
.parlor-summary {
  text-align: center;
  padding: 28px 24px;
  background: rgba(123,104,238,0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 32px;
  position: relative;
}
.parlor-summary::before {
  content: "✦";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  color: var(--purple);
  padding: 0 10px;
  font-size: 0.9em;
}
.parlor-summary-text {
  font-family: var(--serif);
  font-size: 1.2em;
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
  max-width: 720px;
  margin: 0 auto 8px;
}
.parlor-summary-meta {
  font-size: 0.78em;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --- Clock + stats footer --- */
.parlor-clock {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px 50px;
  padding: 24px 0 8px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}
.parlor-clock-stat {
  text-align: center;
  font-size: 0.85em;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.parlor-clock-stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.6em;
  font-weight: 700;
  color: var(--purple-light);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 2px;
}

/* --- Ticker (slim live feed for the homepage and inside /ai-parlor) --- */
.parlor-ticker-host {
  padding: 24px 0;
}
.parlor-ticker {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  height: 168px;            /* ~5 lines × ~33px line height */
  overflow: hidden;
  display: flex;
  flex-direction: column-reverse;  /* newest at bottom */
  gap: 4px;
}
.parlor-ticker::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(26,18,48,0) 100%);
  pointer-events: none;
  z-index: 1;
}
.parlor-ticker-line {
  font-size: 0.88em;
  line-height: 1.5;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.parlor-ticker-line.entering {
  opacity: 0;
  transform: translateY(20px);
}
.parlor-ticker-line.leaving {
  opacity: 0;
  transform: translateY(-8px);
}
.parlor-ticker-sender {
  font-weight: 600;
  margin-right: 6px;
  /* color set inline by JS */
}
.parlor-ticker-channel {
  display: inline-block;
  font-size: 0.78em;
  color: var(--purple-light);
  background: rgba(123,104,238,0.1);
  border-radius: 999px;
  padding: 1px 8px;
  margin-right: 8px;
  vertical-align: 1px;
}
.parlor-ticker-body {
  color: var(--text-dim);
}

/* --- Mosaic responsive: 3 col desktop, 2 col tablet, 1 col mobile --- */
@media (max-width: 900px) {
  .parlor-mosaic {
    grid-template-columns: repeat(2, 1fr);
  }
  .parlor-header-text {
    font-size: 2em;
  }
}
@media (max-width: 600px) {
  .parlor-mosaic {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .parlor-page {
    padding: 24px 16px 48px;
  }
  .parlor-header-text {
    font-size: 1.6em;
  }
  .parlor-summary-text {
    font-size: 1.05em;
  }
  .parlor-ticker {
    height: 152px;
  }
  .parlor-clock {
    gap: 20px 30px;
  }
  .parlor-clock-stat strong {
    font-size: 1.3em;
  }
}
