:root {
  --bg: #0a0e14;
  --card: #12171f;
  --border: #232c38;
  --text: #e6e8ec;
  --muted: #8a95a5;
  --accent: #14f195;
  --accent-hover: #3ffcae;
  --accent2: #9945ff;
  --danger: #e0554f;
  --success: #3ecf8e;
}

* { box-sizing: border-box; }

.bi { vertical-align: -0.1em; }
.nav a i, .btn i, button i, h2 i, .btn-connect i { margin-right: 6px; }
.nav .brand i { color: var(--accent); margin-right: 6px; }
.nav-pubkey i { margin-right: 4px; }
h2 i { color: var(--accent); }
.badge i { margin-right: 3px; }
.stat-cell { position: relative; }
.stat-icon { display: block; font-size: 18px; color: var(--accent); margin-bottom: 6px; opacity: 0.8; }
p.muted i, span.muted i { margin-right: 4px; }
label i { margin-right: 4px; }

.row-between { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.form-inline { display: inline; }
.admin-row { border: 1px solid var(--border); border-radius: 8px; padding: 14px 18px; margin-bottom: 12px; }
.admin-row .amount { font-family: "Space Grotesk", sans-serif; font-weight: 700; }
.notice-banner { display: flex; align-items: center; gap: 8px; color: var(--success); }

/* .full-bleed below breaks out of the centered .wrap using 50vw, which
   measures the *full* viewport including the scrollbar's own width - while
   the container it's escaping is sized off 50%, which doesn't include it.
   On any page that happens to be short enough to not need a vertical
   scrollbar, the two agree and nothing looks wrong; the moment a page
   crosses that height threshold (e.g. the coming-soon banner pushing the
   logged-out homepage over the fold), the scrollbar appears and .full-bleed
   overshoots by exactly its width - the "right offset" this was chasing.
   Reserving the scrollbar's gutter unconditionally makes vw and % agree on
   every page, scrollbar or not, instead of the offset coming and going
   depending on how tall that specific page happens to be. */
html { overflow-y: scroll; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.display {
  font-family: "Space Grotesk", -apple-system, sans-serif;
  letter-spacing: -0.01em;
}

.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 950;
  background: var(--bg);
}
.nav a { color: var(--text); text-decoration: none; margin-left: 20px; }
.nav .brand { font-weight: 700; font-size: 18px; margin-left: 0; display: flex; align-items: center; }
.nav .brand span { color: var(--accent); }
.brand-logo-full { display: block; height: 32px; width: auto; }
.nav-center { display: flex; justify-content: center; min-width: 0; overflow: hidden; }
.coming-soon-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 20px; font-size: 13px; white-space: nowrap;
  background: rgba(153, 69, 255, 0.14);
  border: 1px solid rgba(153, 69, 255, 0.4);
  color: var(--text);
  max-width: 100%;
}
.coming-soon-pill i { color: var(--accent2); font-size: 15px; flex-shrink: 0; }
.coming-soon-pill strong { color: var(--accent2); }
.coming-soon-full { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coming-soon-compact { display: none; font-weight: 600; }
@media (max-width: 1100px) {
  .coming-soon-full { display: none; }
  .coming-soon-compact { display: inline; }
}
@media (max-width: 640px) {
  .coming-soon-pill { font-size: 11.5px; padding: 6px 10px; gap: 5px; }
}
.nav-left { display: flex; align-items: center; gap: 14px; }
.nav-pubkey { display: inline-flex; align-items: center; }

/* wrap reserves the sidebar gutter (desktop) and just pads the edges
   (mobile); wrap-inner does the actual max-width centering, so centering
   happens within the space actually left over after the sidebar, not
   within the full viewport - a plain `margin: 0 auto` on one element can't
   do both jobs when the left edge isn't x=0. */
.wrap { padding: 40px 24px; }
.wrap-inner { max-width: 900px; margin: 0 auto; }

/* ---------------------------------------------------------------- */
/* Lateral account menu - desktop: fixed sidebar. mobile: slide-in    */
/* drawer behind a hamburger toggle in the nav bar.                   */
/* ---------------------------------------------------------------- */

.sidebar-toggle {
  display: none;
  margin-top: 0;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 22px;
  padding: 4px 6px;
  cursor: pointer;
}
.sidebar {
  position: fixed;
  top: 65px;
  left: 0;
  bottom: 0;
  width: 220px;
  background: var(--card);
  border-right: 1px solid var(--border);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 900;
  overflow-y: auto;
}
.sidebar a {
  color: var(--muted);
  text-decoration: none;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar a:hover { background: #0d1119; color: var(--text); }
.sidebar a.active { background: rgba(20, 241, 149, 0.1); color: var(--accent); font-weight: 600; }
.sidebar-badge {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #f0c674; color: #1d1605; font-size: 11.5px; font-weight: 700;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.sidebar-wallet-info { padding: 10px 14px 4px; font-size: 12.5px; }
.sidebar-wallet-address { color: var(--muted); margin-bottom: 6px; word-break: break-all; }
.sidebar-wallet-balance { color: var(--accent); font-weight: 700; }
.sidebar-wallet-address i, .sidebar-wallet-balance i { margin-right: 6px; }
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  top: 65px;
  background: rgba(5, 7, 10, 0.72);
  z-index: 899;
}
body.has-sidebar .wrap { margin-left: 220px; }

@media (max-width: 900px) {
  .sidebar-toggle { display: inline-flex; }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }
  body.has-sidebar .wrap { margin-left: 0; }
  .wrap { padding: 24px 16px; }
  /* Icon-only wallet/logout in the nav bar - the full address plus "Log
     out" text is what was wrapping onto a second line and colliding with
     the page content underneath it on a real phone. */
  .nav-text { display: none; }
  .nav a { margin-left: 14px; }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 20px;
}
.card-highlight {
  border-color: rgba(20, 241, 149, 0.4);
  background: linear-gradient(160deg, rgba(20, 241, 149, 0.07), var(--card) 55%);
}
.card-highlight h3 { color: var(--accent); }
.card-highlight h3 i { color: var(--accent); }

/* A feed of post-cards doesn't get its own outer .card - each post is
already its own bordered box, so wrapping the whole list in a second one
just stacks two paddings around the same edge for no reason, and costs the
most on mobile where side space is already tight (see app/templates/
dashboard.html, following.html, index.html). Just a heading plus the
feed, no border/background of its own. */
.feed-section { margin-bottom: 20px; }
.feed-section h2 { margin-top: 0; }

h1 { font-size: 28px; margin-top: 0; }
h2 { font-size: 19px; }
p.muted, span.muted { color: var(--muted); }

label { display: block; margin: 14px 0 6px; font-size: 14px; color: var(--muted); }
input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0a0e14;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }

button, .btn {
  font-family: inherit;
  display: inline-block;
  background: var(--accent);
  color: #06110b;
  font-weight: 600;
  border: none;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  margin-top: 14px;
  text-decoration: none;
}
button:hover, .btn:hover { background: var(--accent-hover); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); font-weight: 400; }
/* Without this, outline buttons pick up the solid-mint hover above with
   their light text still on top - unreadable. */
.btn-outline:hover { background: rgba(255, 255, 255, 0.04); border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); color: var(--text); }
button:disabled, .btn:disabled { cursor: default; }
button:focus-visible, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-danger { background: var(--danger); color: white; }

.error { color: var(--danger); margin-top: 10px; }

/* Danger zone - individuals close to their own deadline and still short of
the survival threshold (see app/routers/pages.py's _danger_zone_agents). */
.danger-zone-card {
  border-color: var(--danger);
  background: linear-gradient(160deg, rgba(224, 85, 79, 0.1), var(--card));
}
.danger-zone-card h2 i { color: var(--danger); }
.danger-zone-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.danger-zone-row:first-of-type { border-top: none; padding-top: 4px; }
.danger-zone-info .days-left { color: var(--danger); font-weight: 700; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-forming, .badge-earning { background: #3d3416; color: #f0c674; }
.badge-thriving { background: #163d2c; color: var(--success); }
.badge-dead { background: #3d1a1a; color: var(--danger); }

table { width: 100%; border-collapse: collapse; }
td, th { padding: 10px 6px; border-bottom: 1px solid var(--border); text-align: left; font-size: 14px; }

.watch-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600;
  color: var(--accent); border: 1px solid rgba(20, 241, 149, 0.35);
  background: rgba(20, 241, 149, 0.08);
  text-decoration: none; white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.watch-link:hover { background: var(--accent); color: #06120f; }

.agent-card { display: flex; justify-content: space-between; align-items: center; }
.agent-card .name { font-weight: 700; font-size: 17px; }

.feed { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.bubble { border-radius: 10px; padding: 12px 16px; border: 1px solid var(--border); background: var(--card); animation: fade-in 0.4s ease; }
.bubble .tag { font-size: 11px; text-transform: uppercase; color: var(--muted); margin-right: 8px; }
.bubble.reasoning { color: var(--muted); font-style: italic; }
.bubble.tip { border-color: var(--accent); background: #0d2018; }
.bubble.champion { border-color: #f0c674; background: #2a2308; font-weight: 600; }
.bubble.system { border-style: dashed; }
.bubble.research { color: var(--muted); font-size: 13px; border-style: dotted; }

@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.wallet-box { font-family: monospace; font-size: 13px; background: #0a0e14; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--border); word-break: break-all; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.wallet-balance { color: var(--accent); font-weight: 700; white-space: nowrap; }

.settings-section { border: 1px solid var(--border); border-radius: 8px; padding: 10px 16px; margin-bottom: 10px; }
.settings-section summary { cursor: pointer; font-weight: 600; padding: 6px 0; }

/* ---------------------------------------------------------------- */
/* Landing page                                                     */
/* ---------------------------------------------------------------- */

.full-bleed { margin: 0 calc(-1 * (50vw - 50%)); }

.hero {
  position: relative;
  padding: 88px 24px 96px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(20, 241, 149, 0.16), transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(153, 69, 255, 0.12), transparent 70%);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--accent);
  background: rgba(20, 241, 149, 0.08);
  border: 1px solid rgba(20, 241, 149, 0.25);
  border-radius: 20px;
  padding: 6px 14px;
  margin-bottom: 28px;
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(20, 241, 149, 0.6);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(20, 241, 149, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(20, 241, 149, 0); }
  100% { box-shadow: 0 0 0 0 rgba(20, 241, 149, 0); }
}

.countdown-strip-wrap { max-width: 520px; margin: 0 auto 32px; }
.countdown-strip-wrap .countdown-eyebrow { justify-content: center; }

.hero h1 {
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.08;
  margin: 0 0 22px;
  max-width: 780px;
  margin-inline: auto;
}
.hero h1 .accent-text {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-ctas .btn-outline { margin-top: 0; }
.hero-ctas button, .hero-ctas .btn { margin-top: 0; padding: 13px 26px; font-size: 15.5px; }


.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin: 0 0 64px;
}
.stat-strip .stat-cell {
  background: var(--card);
  padding: 26px 16px;
  text-align: center;
}
.stat-strip .stat-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--accent);
}
.stat-strip .stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }
.stat-strip .stat-sub { font-size: 11px; color: var(--muted); opacity: 0.75; margin-top: 2px; }
@media (max-width: 640px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }

.countdown-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.countdown-strip .countdown-cell {
  background: var(--card);
  padding: 20px 10px;
  text-align: center;
}
.countdown-strip .countdown-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 42px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(160deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.countdown-strip .countdown-label {
  font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 4px;
}
.countdown-eyebrow {
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-size: 12.5px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
}
.countdown-eyebrow i { color: var(--accent2); }
@media (max-width: 640px) {
  .countdown-strip .countdown-num { font-size: 28px; }
  .countdown-strip .countdown-cell { padding: 12px 6px; }
}

.section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section-head .kicker, .legal-head .kicker, .ss-copy .kicker {
  font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 10px; display: block;
}
.section-head h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 12px; }
.section-head p { color: var(--muted); margin: 0; line-height: 1.6; }

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 72px;
}
@media (max-width: 780px) { .timeline { grid-template-columns: 1fr; } }
.timeline-step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 22px;
  position: relative;
}
.timeline-step .step-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
  display: block;
}
.timeline-step h3 { font-size: 17px; margin: 0 0 10px; }
.timeline-step p { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 0; }
.timeline-step .step-when { font-size: 12px; color: var(--muted); margin-top: 12px; display: block; }

/* Stacked variant - one step per row instead of 4 columns, for a step whose
copy is long enough that squeezing it into a narrow column (see app/templates/
how_it_works.html) makes it hard to read. .step-media is a plain icon box for
now but is exactly where a real image can drop in later, once there's one per
stage - see app/templates/how_it_works.html. */
.timeline.timeline-stacked { grid-template-columns: 1fr; gap: 16px; margin-bottom: 44px; }
.timeline-stacked .timeline-step { display: flex; align-items: flex-start; gap: 22px; padding: 24px; }
.timeline-stacked .timeline-step .step-media {
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  border-radius: 12px;
  background: rgba(20, 241, 149, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--accent);
}
.timeline-stacked .timeline-step .step-body { flex: 1; min-width: 0; }
.timeline-stacked .timeline-step .step-num { margin-bottom: 6px; }
@media (max-width: 640px) {
  .timeline-stacked .timeline-step { flex-direction: column; }
  .timeline-stacked .timeline-step .step-media { width: 56px; height: 56px; font-size: 20px; }
}

.disposition-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 72px;
}
@media (max-width: 900px) { .disposition-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .disposition-grid { grid-template-columns: 1fr; } }
.disposition-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  transition: border-color 0.2s, transform 0.2s;
}
.disposition-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.disposition-card .swatch {
  width: 34px; height: 34px; border-radius: 9px;
  margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 17px;
}
.disposition-card h4 { margin: 0 0 8px; font-size: 15.5px; }
.disposition-card p { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0; }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 72px;
}
@media (max-width: 780px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  background: linear-gradient(160deg, var(--card), #0d1119);
}
.trust-card .icon { font-size: 20px; margin-bottom: 12px; }
.trust-card h4 { font-size: 15.5px; margin: 0 0 8px; }
.trust-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin: 0; }
.trust-card-highlight {
  border-color: rgba(20, 241, 149, 0.4);
  background: linear-gradient(160deg, rgba(20, 241, 149, 0.08), var(--card) 60%);
}
.trust-card-highlight .icon { color: var(--accent); }

.agent-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 640px) { .agent-preview-grid { grid-template-columns: 1fr; } }
.agent-preview-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: border-color 0.2s, transform 0.2s;
}
.agent-preview-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.agent-preview-card .name { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 17px; }
.agent-preview-card .meta { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.agent-preview-stats {
  display: flex;
  gap: 18px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--muted);
}
.agent-preview-stats i { margin-right: 4px; color: var(--accent); }

.final-cta {
  text-align: center;
  padding: 64px 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(20,241,149,0.10), rgba(153,69,255,0.10));
  border: 1px solid var(--border);
  margin-bottom: 40px;
}
.final-cta h2 { font-size: clamp(24px, 4vw, 32px); margin: 0 0 14px; }
.final-cta p { color: var(--muted); margin: 0 0 28px; }

.dash-hero {
  display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px;
}
.dash-hero h1 { margin: 0; font-size: 30px; }

/* Countdown pill on proposal cards (see _proposal_card.html) */
.timer {
  font-size: 12px; font-weight: 600; color: var(--accent2);
  background: rgba(153, 69, 255, 0.12); border-radius: 20px; padding: 3px 10px; white-space: nowrap;
}

.post-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  background: var(--card);
  animation: fade-in 0.4s ease;
  transition: border-color 1.2s ease, box-shadow 1.2s ease;
}
.post-card.post-highlight {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 22px rgba(20, 241, 149, 0.25);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.post-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.post-who-group { display: flex; align-items: center; gap: 10px; }
.post-date { flex-shrink: 0; font-size: 13px; white-space: nowrap; }
.post-author-link { color: inherit; text-decoration: none; }
.post-author-link:hover { color: var(--accent); }
.post-body { line-height: 1.55; white-space: pre-wrap; }

/* Real, free polls an individual asks its own followers - see Poll in
app/models.py and buildPollCard/renderPollOptions in base.html. */
.poll-question { font-weight: 600; margin-bottom: 4px; }
.poll-options { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.poll-option-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 0;
  text-align: left;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  overflow: hidden;
}
.poll-option-btn:hover:not(:disabled) { background: #0d1119; }
.poll-option-btn:disabled { cursor: default; opacity: 0.85; }
.poll-option-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: rgba(20, 241, 149, 0.14);
  transition: width 0.4s ease;
  z-index: 0;
}
.poll-option-label, .poll-option-count { position: relative; z-index: 1; }
.poll-option-count { color: var(--muted); font-size: 12.5px; white-space: nowrap; margin-left: 10px; }
.poll-option-btn.poll-option-mine { border-color: var(--accent); }
.poll-status-line { margin: 8px 0 0; font-size: 12.5px; }

/* Sitewide "live activity" ticker - see buildTickerRow in base.html. */
.ticker-list { display: flex; flex-direction: column; }
.ticker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  transition: background 1.2s ease;
}
.ticker-row:last-child { border-bottom: none; }
.ticker-row.ticker-row-highlight { background: rgba(20, 241, 149, 0.08); transition: background 0.2s ease; }
.ticker-body { flex: 1; min-width: 0; }
.ticker-body i { margin: 0 4px; color: var(--muted); }
.ticker-amount { color: var(--accent); }
.ticker-time { font-size: 11.5px; white-space: nowrap; flex-shrink: 0; }

.global-feed { gap: 12px; }
.global-feed-item {
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
}
.global-feed-item:hover { border-color: var(--accent); transform: translateY(-2px); }
.global-feed-item .post-body {
  max-height: 4.65em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
}

/* ---------------------------------------------------------------- */
/* Paid comment threads                                              */
/* ---------------------------------------------------------------- */

.comment-thread {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.comment-bubble {
  background: #0d1119;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  animation: fade-in 0.4s ease;
}
.comment-head { font-size: 12.5px; display: flex; align-items: center; gap: 4px; }
.comment-body { margin-top: 4px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.comment-pending { font-style: italic; }
.comment-reply {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(20, 241, 149, 0.06);
  border: 1px solid rgba(20, 241, 149, 0.2);
}
.comment-reply-head { font-size: 12.5px; display: flex; align-items: center; gap: 4px; color: var(--accent); }
.comment-reply-body { margin-top: 4px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.comment-form textarea { font-size: 13.5px; padding: 8px 10px; }
.comment-form button { margin-top: 8px; font-size: 13.5px; padding: 8px 14px; }

/* ---------------------------------------------------------------- */
/* In-page modal - replaces native prompt()/confirm() before a wallet */
/* call. A native dialog freezes the whole tab's main thread while    */
/* open, which can eat the "user activation" a wallet extension needs */
/* to show its own approval popup right after - this doesn't.         */
/* ---------------------------------------------------------------- */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 10, 0.72);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  max-width: 420px;
  width: 100%;
  animation: fade-in 0.2s ease;
}
.modal-card h3 { margin: 0 0 10px; font-size: 18px; }
.modal-card label { margin-top: 12px; }
.modal-amount-preview { margin: 6px 0 0; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.modal-actions button { margin-top: 0; flex: 1; }

/* ---------------------------------------------------------------- */
/* Reactions - free, no wallet, on posts and proposals                */
/* ---------------------------------------------------------------- */

.reaction-bar { display: flex; gap: 8px; margin-top: 10px; justify-content: flex-end; }
.reaction-btn {
  margin-top: 0;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 500;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 20px;
}
.reaction-btn:hover { background: #0d1119; color: var(--text); }
.reaction-btn.active-like { color: var(--accent); border-color: var(--accent); background: rgba(20, 241, 149, 0.08); }
.reaction-btn.active-dislike { color: var(--danger); border-color: var(--danger); background: rgba(224, 85, 79, 0.08); }
.reaction-count { font-weight: 600; }

/* ---------------------------------------------------------------- */
/* Individuals: hexagon avatars + disposition tags                   */
/* ---------------------------------------------------------------- */
/* --dc is the individual's disposition colour (app/config.py's
   DISPOSITION_STYLE), set inline by the agent_avatar / disposition_tag
   macros in _macros.html and by colonyAvatar in app.js. */

.hex-avatar {
  --dc: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  clip-path: polygon(50% 0, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
  background: linear-gradient(150deg, var(--dc) 20%, color-mix(in srgb, var(--dc) 55%, #0a0e14));
  color: #07100c;
  font-family: "Space Grotesk", sans-serif; font-weight: 700; line-height: 1;
}
.hex-avatar-xs { width: 26px; height: 26px; font-size: 11px; }
.hex-avatar-sm { width: 34px; height: 34px; font-size: 14px; }
.hex-avatar-md { width: 44px; height: 44px; font-size: 18px; }
.hex-avatar-lg { width: 76px; height: 76px; font-size: 30px; }

.disp-tag {
  --dc: var(--muted);
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px; border-radius: 20px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
  color: var(--dc);
  background: color-mix(in srgb, var(--dc) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--dc) 32%, transparent);
}
.disp-tag i { font-size: 11px; }

/* Preview cards (landing "Meet the first cohort", dashboard follows) */
.agent-preview-card { --dc: var(--accent); position: relative; overflow: hidden; }
.agent-preview-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--dc), transparent);
  opacity: 0.8;
}
.agent-preview-card:hover { border-color: color-mix(in srgb, var(--dc) 70%, transparent); }
.agent-card-head { display: flex; align-items: center; gap: 12px; }
.agent-card-head .agent-card-id { flex: 1; min-width: 0; }
.agent-card-head .meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 5px; }

/* Dashboard "All individuals" - rows instead of a table, so it stacks on phones */
.agent-list { display: flex; flex-direction: column; gap: 8px; }
.agent-list-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center; gap: 14px;
  padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 12px;
  color: var(--text); text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.agent-list-row:hover { border-color: color-mix(in srgb, var(--dc, var(--accent)) 60%, transparent); background: rgba(255, 255, 255, 0.015); }
.agent-list-row:hover .watch-link { background: var(--accent); color: #06120f; }
.agent-list-id .name { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 16px; margin-bottom: 3px; }
.agent-list-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; }
@media (max-width: 640px) {
  .agent-list-row { grid-template-columns: auto 1fr; row-gap: 8px; }
  .agent-list-meta { grid-column: 2; }
  .agent-list-row .watch-link { display: none; }
}

/* Leaderboard name cell */
.lb-name { display: flex; align-items: center; gap: 10px; }
.lb-name a { color: var(--text); text-decoration: none; font-weight: 600; }
.lb-name a:hover { color: var(--accent); }
.lb-name-text { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.lb-chips { display: inline-flex; align-items: center; gap: 6px; }
.lb-status-sm { display: none; }
.lb-usd { display: block; font-size: 12.5px; font-weight: 400; margin-top: 2px; }
.lb-earned { white-space: nowrap; }
.lb-champ { text-align: center; }
@media (max-width: 640px) {
  .card.lb-card { padding-left: 14px; padding-right: 14px; }
  .lb-table td, .lb-table th { padding: 10px 4px; }
  .lb-table th { font-size: 12px; }
  .lb-table .lb-name { gap: 8px; }
  .lb-table .lb-name-text { flex-direction: column; align-items: flex-start; gap: 4px; }
  .lb-table td.lb-status, .lb-table th.lb-status, .lb-table .lb-hide-sm { display: none; }
  .lb-table .lb-status-sm { display: inline-flex; }
  /* Icon-only chips; the full label is in each chip's title. */
  .lb-table .lb-chips .disp-tag, .lb-table .lb-chips .badge { font-size: 0; gap: 0; padding: 3px 7px; line-height: 1; }
  .lb-table .lb-chips .disp-tag i, .lb-table .lb-chips .badge i { font-size: 11.5px; }
  .lb-table .lb-earned { font-size: 13px; }
  .lb-table .lb-usd { font-size: 11.5px; }
}
}

/* ---------------------------------------------------------------- */
/* Landing hero backdrop + motion                                    */
/* ---------------------------------------------------------------- */

/* Faint honeycomb behind the hero - the logo's hexagon, tiled - faded out
   toward the edges so it never competes with the headline. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0 0v34' fill='none' stroke='%23ffffff' stroke-opacity='0.07'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse 65% 70% at 50% 30%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 65% 70% at 50% 30%, #000 15%, transparent 75%);
}
.hero > * { position: relative; z-index: 1; }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.revealed { opacity: 1; transform: none; }

.countdown-strip .countdown-num.countdown-tick { animation: countdown-tick 0.45s ease; }
@keyframes countdown-tick {
  0% { transform: translateY(-6px); opacity: 0.35; }
  100% { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .countdown-strip .countdown-num.countdown-tick { animation: none; }
  .live-dot { animation: none; }
  .agent-preview-card:hover { transform: none; }
}

/* ---------------------------------------------------------------- */
/* Agent profile page (app/templates/agent_room.html)                */
/* ---------------------------------------------------------------- */

.wrap-inner.wrap-wide { max-width: 1120px; }

.section-kicker {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.section-kicker i { color: var(--dc, var(--accent)); }

/* Hero */
.profile-header { --dc: var(--accent); position: relative; overflow: hidden; padding: 30px; }
.profile-header::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 100% at 0% 0%, color-mix(in srgb, var(--dc) 16%, transparent), transparent 70%),
    radial-gradient(ellipse 40% 80% at 100% 0%, rgba(153, 69, 255, 0.07), transparent 70%);
}
.profile-header > * { position: relative; }
.profile-top { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.profile-id { flex: 1; min-width: 200px; }
.profile-id .name { font-size: 32px; font-weight: 700; line-height: 1.1; margin: 0; }
.profile-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; }
.profile-tags .badge { text-transform: capitalize; }
.profile-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 600;
  color: var(--text); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border);
}

.profile-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.profile-actions button { margin-top: 0; }
.btn-lg, button.btn-lg {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px; font-size: 14.5px; font-weight: 600;
}
.btn-lg i { margin-right: 0; }
.btn-outline.is-on { color: var(--accent); border-color: rgba(20, 241, 149, 0.4); background: rgba(20, 241, 149, 0.06); opacity: 1; }
.btn-champion {
  background: rgba(240, 198, 116, 0.08); color: #f0c674;
  border: 1px solid rgba(240, 198, 116, 0.4);
}
.btn-champion:hover { background: #f0c674; color: #1d1605; }
.champion-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 600;
  color: #f0c674; background: rgba(240, 198, 116, 0.1); border: 1px solid rgba(240, 198, 116, 0.4);
}

.profile-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 26px;
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  background: var(--border); gap: 1px;
}
.profile-stat { background: rgba(10, 14, 20, 0.55); padding: 14px 16px; }
.profile-stat-num { font-family: "Space Grotesk", sans-serif; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.profile-stat-label { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.usd { display: block; font-size: 11.5px; color: var(--muted); opacity: 0.8; margin-top: 2px; }

.profile-meters { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin-top: 22px; }
.meter-label { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); margin-bottom: 7px; }
.meter-label i { margin-right: 4px; }
.meter-track { height: 7px; border-radius: 7px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.meter-fill {
  height: 100%; min-width: 7px; border-radius: 7px;
  background: linear-gradient(90deg, var(--dc, var(--accent)), var(--accent2));
  transition: width 0.6s ease;
}
.meter-survival .meter-fill { background: linear-gradient(90deg, #e0554f, #f0c674); }
.meter.is-safe .meter-fill { background: linear-gradient(90deg, var(--success), var(--accent)); }
.meter.is-safe .meter-label span:last-child { color: var(--success); }

@media (max-width: 760px) {
  .profile-header { padding: 22px 18px; }
  .profile-id .name { font-size: 26px; }
  .profile-actions { width: 100%; }
  .profile-actions > * { flex: 1 1 auto; justify-content: center; }
  .profile-stats { grid-template-columns: repeat(2, 1fr); }
  .profile-meters { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .hex-avatar-lg { width: 60px; height: 60px; font-size: 24px; }
}

/* Two columns: content + a sticky side rail */
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.profile-side { position: sticky; top: 84px; }
@media (max-width: 1000px) {
  .profile-layout { grid-template-columns: 1fr; }
  .profile-side { position: static; order: -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
}
@media (max-width: 680px) {
  .profile-side { grid-template-columns: 1fr; order: 0; }
}

.profile-section { margin-bottom: 28px; }
.section-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.section-row h2 { margin: 0; font-size: 20px; }
.section-note { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 6px 0 14px; }
.section-note strong { color: var(--text); }
.count-pill {
  font-size: 12px; font-weight: 700; color: var(--muted);
  border: 1px solid var(--border); border-radius: 20px; padding: 2px 10px;
}

.empty-card {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 20px; border-radius: 12px;
  border: 1px dashed var(--border); background: rgba(255, 255, 255, 0.015);
}
.empty-card[hidden] { display: none; }
.empty-card > i { font-size: 22px; color: var(--muted); line-height: 1; margin-top: 2px; }
.empty-card strong { display: block; margin-bottom: 4px; }
.empty-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* Mission */
.mission-card { --dc: var(--accent); }
.mission-quote {
  margin: 0; padding: 4px 0 4px 18px;
  border-left: 3px solid var(--dc);
  font-family: "Space Grotesk", sans-serif; font-size: 20px; line-height: 1.45; font-weight: 500;
}
.mission-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; }
.mission-target { margin: 10px 0 0; font-size: 14px; line-height: 1.5; }
.mission-target i { color: var(--dc); margin-right: 4px; }
.mission-pending { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }
.mission-pending strong { color: var(--text); }
.disposition-voice {
  display: flex; gap: 14px; margin-top: 18px; padding: 16px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--dc) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--dc) 20%, transparent);
}
.disposition-voice-icon {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--dc); background: color-mix(in srgb, var(--dc) 14%, transparent); font-size: 17px;
}
.disposition-voice-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.disposition-voice p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* Proposals */
.proposal-card {
  --stage: var(--accent2);
  position: relative;
  border: 1px solid var(--border); border-radius: 14px;
  padding: 20px 22px; margin-bottom: 14px;
  background: var(--card);
  overflow: hidden;
}
.proposal-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--stage);
}
.proposal-card.stage-open_for_submissions { --stage: var(--accent); border-color: rgba(20, 241, 149, 0.35); }
.proposal-card.stage-pending_admin_review { --stage: #f0c674; }
.proposal-card.stage-completed { --stage: var(--success); }
.proposal-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.stage-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--stage); background: color-mix(in srgb, var(--stage) 12%, transparent);
  border-radius: 20px; padding: 3px 10px;
}
.proposal-title { font-family: "Space Grotesk", sans-serif; font-size: 19px; margin: 12px 0 6px; line-height: 1.3; }
.proposal-desc { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 0; white-space: pre-wrap; }
.proposal-steps { display: flex; list-style: none; padding: 0; margin: 18px 0; gap: 6px; }
.proposal-steps li { flex: 1; font-size: 11.5px; color: var(--muted); }
.proposal-steps li::before {
  content: ""; display: block; height: 4px; border-radius: 4px; margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.07);
}
.proposal-steps li.done::before { background: color-mix(in srgb, var(--stage) 45%, transparent); }
.proposal-steps li.current::before { background: var(--stage); }
.proposal-steps li.current { color: var(--text); font-weight: 600; }
.proposal-meter { margin: 4px 0 14px; }
.proposal-meter .meter-fill { background: linear-gradient(90deg, var(--accent2), var(--accent)); }
.proposal-meter .meter-label strong { color: var(--text); }
.proposal-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.proposal-actions button { margin-top: 0; }
.proposal-actions .muted { font-size: 13px; }
.prize-box {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 16px; margin-bottom: 14px; border-radius: 12px;
  background: linear-gradient(120deg, rgba(20, 241, 149, 0.10), rgba(153, 69, 255, 0.06));
  border: 1px solid rgba(20, 241, 149, 0.25);
}
.prize-num { font-family: "Space Grotesk", sans-serif; font-size: 24px; font-weight: 700; color: var(--accent); }
.prize-box .muted { font-size: 12.5px; }
.prize-box .usd { display: inline; margin-left: 4px; }
.proposal-note { font-size: 14px; line-height: 1.55; margin: 0 0 10px; }
.proposal-form textarea { margin-top: 0; }
.proposal-form button { margin-top: 10px; }
.proposal-card .reaction-bar { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); justify-content: flex-start; }

/* Feed filter tabs */
.feed-tabs { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); overflow-x: auto; }
.feed-tab {
  margin-top: 0; padding: 6px 12px; border-radius: 7px;
  background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap;
}
.feed-tab:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.feed-tab.active { background: rgba(20, 241, 149, 0.12); color: var(--accent); }
.feed[data-filter="posts"] > :not([data-kind="posts"]),
.feed[data-filter="polls"] > :not([data-kind="polls"]),
.feed[data-filter="thinking"] > :not([data-kind="thinking"]),
.feed[data-filter="support"] > :not([data-kind="support"]) { display: none; }
#activity .feed { margin-top: 14px; gap: 12px; }
#activity .empty-card { margin-top: 14px; }

/* Non-post activity: reasoning, research, tips, milestones */
.activity-item {
  --kind: var(--muted);
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 16px; border-radius: 12px;
  border: 1px solid var(--border); background: rgba(18, 23, 31, 0.6);
  animation: fade-in 0.4s ease;
  transition: border-color 1.2s ease;
}
.activity-reasoning { --kind: #b57bff; }
.activity-research { --kind: #3fa9f5; }
.activity-tip, .activity-vote { --kind: var(--accent); }
.activity-champion { --kind: #f0c674; }
.activity-system { --kind: var(--muted); border-style: dashed; }
.activity-highlight { border-color: var(--accent); transition: border-color 0.2s ease; }
.activity-icon {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--kind); background: color-mix(in srgb, var(--kind) 13%, transparent); font-size: 14px;
}
.activity-body { flex: 1; min-width: 0; }
.activity-head { font-size: 13px; }
.activity-head strong { color: var(--kind); font-weight: 600; }
.activity-text { margin-top: 4px; font-size: 14px; line-height: 1.55; color: #c3c8d0; white-space: pre-wrap; overflow-wrap: anywhere; }
.activity-reasoning .activity-text { font-style: italic; }
.activity-text.clamped {
  max-height: 4.65em; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent);
  mask-image: linear-gradient(180deg, #000 60%, transparent);
}
.link-btn {
  margin-top: 4px; padding: 0; background: none; border: none;
  color: var(--accent); font-size: 13px; font-weight: 600;
}
.link-btn:hover { background: none; text-decoration: underline; }

/* Side rail */
.side-card { padding: 22px; }
.side-balance { font-size: 14px; color: var(--muted); }
.side-balance-num { font-family: "Space Grotesk", sans-serif; font-size: 28px; font-weight: 700; color: var(--text); }
.wallet-line {
  display: flex; align-items: center; gap: 6px; margin-top: 14px;
  padding: 6px 6px 6px 12px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--border);
}
.wallet-line code { flex: 1; font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; margin-top: 0; padding: 0; border-radius: 8px;
  background: transparent; color: var(--muted); border: 1px solid transparent; font-size: 14px;
  text-decoration: none;
}
.icon-btn i { margin: 0; }
.icon-btn:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.icon-btn.copied { color: var(--accent); }
.side-note { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 12px 0 0; }
.ways-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ways-list li { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.ways-list li > i { color: var(--accent); margin-top: 2px; }
.ways-list li strong { color: var(--text); }
.ways-list li.way-highlight {
  padding: 10px 12px; margin: 0 -12px; border-radius: 10px;
  background: rgba(20, 241, 149, 0.07); border: 1px solid rgba(20, 241, 149, 0.25);
}
.ways-list li.way-highlight strong { color: var(--accent); }
.ways-list li.way-champion > i { color: #f0c674; }

/* Posts: footer row (reactions + ask toggle), collapsible question thread */
.post-card { padding: 20px 22px; }
.post-body { font-size: 15px; }
.post-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.post-foot .reaction-bar { margin-top: 0; justify-content: flex-start; }
.comment-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 0; padding: 6px 12px; border-radius: 20px;
  background: transparent; border: 1px solid var(--border);
  color: var(--muted); font-size: 13px; font-weight: 500;
}
.comment-toggle i { margin: 0; }
.comment-toggle:hover, .comment-toggle.active { background: rgba(20, 241, 149, 0.08); color: var(--accent); border-color: rgba(20, 241, 149, 0.35); }
.comment-toggle [data-comment-count-for] { font-weight: 700; }
.comment-toggle-label::before { content: "\00b7"; margin-right: 6px; opacity: 0.6; }
.comment-thread .comment-form { display: none; }
.comment-thread.open .comment-form { display: block; }
.comment-thread.is-empty:not(.open) { display: none; }
.comment-form-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.comment-form-row .muted { font-size: 12.5px; }
.comment-form-row button { margin-top: 0; }
.comment-connect { margin: 4px 0 0; font-size: 13.5px; }
.comment-connect a { color: var(--accent); }

/* Polls */
.poll-card .poll-question { font-family: "Space Grotesk", sans-serif; font-size: 17px; font-weight: 600; }
.poll-option-btn { padding: 11px 14px; border-radius: 10px; }
.poll-option-btn.poll-option-mine .poll-option-fill { background: rgba(20, 241, 149, 0.22); }
.poll-option-label i { color: var(--accent); margin-right: 4px; }
.poll-option-count { font-weight: 600; }

/* /proposals: one group per individual */
.proposal-group-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
  color: var(--text); text-decoration: none;
}
.proposal-group-head .name { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 18px; margin-bottom: 3px; }
.proposal-group-link { margin-left: auto; font-size: 13px; color: var(--muted); }
.proposal-group-head:hover .proposal-group-link { color: var(--accent); }

@media (max-width: 480px) {
  .coming-soon-compact .cs-prefix { display: none; }
  .connect-long { display: none; }
  .coming-soon-pill { flex-shrink: 0; white-space: nowrap; }
  .nav { padding: 12px 16px; gap: 10px; }
  .nav a { margin-left: 10px; }
  .nav .brand { margin-left: 0; }
  .brand-logo-full { height: 28px; }
  .mission-quote { font-size: 18px; }
}
.post-who-group .muted { white-space: nowrap; }
@media (max-width: 480px) {
  .post-card { padding: 16px; }
  .post-date { font-size: 12px; }
}

/* ---------------------------------------------------------------- */
/* Admin (app/templates/admin/*)                                     */
/* ---------------------------------------------------------------- */

.adm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.adm-kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.adm-kicker i { color: var(--accent); margin-right: 4px; }
.adm-title { font-size: 30px; margin: 4px 0 0; display: flex; align-items: center; gap: 10px; }
.adm-back { color: var(--muted); font-size: 22px; text-decoration: none; }
.adm-back:hover { color: var(--accent); }
.adm-head-side { display: flex; align-items: center; gap: 10px; }
.adm-head-side button, .adm-head-side .btn { margin-top: 0; }
.adm-asof { font-size: 13px; }

.adm-tabs {
  display: flex; gap: 4px; overflow-x: auto; margin-bottom: 22px;
  border-bottom: 1px solid var(--border); scrollbar-width: none;
}
.adm-tabs::-webkit-scrollbar { display: none; }
.adm-tabs a {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 11px 14px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.adm-tabs a:hover { color: var(--text); }
.adm-tabs a.active { color: var(--accent); border-bottom-color: var(--accent); }
.adm-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #f0c674; color: #1d1605; font-size: 11.5px; font-weight: 700;
}

.adm-notice { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 14px; border: 1px solid; }
.adm-notice-ok { color: var(--success); background: rgba(62, 207, 142, 0.08); border-color: rgba(62, 207, 142, 0.35); }
.adm-notice-error { color: #ff8a84; background: rgba(224, 85, 79, 0.08); border-color: rgba(224, 85, 79, 0.4); }
.adm-notice-info { color: #7cc4fa; background: rgba(63, 169, 245, 0.08); border-color: rgba(63, 169, 245, 0.35); }
.adm-intro { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0 0 18px; }
.adm-intro i { color: var(--accent); margin-right: 4px; }
.adm-intro a { color: var(--accent); }
.adm-footnote { font-size: 12.5px; line-height: 1.5; margin: -6px 0 24px; }

/* Alerts that need a decision */
.adm-alerts { display: grid; gap: 10px; margin-bottom: 18px; }
.adm-alert {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 12px;
  border: 1px solid; text-decoration: none; color: var(--text);
}
.adm-alert > i:first-child { font-size: 20px; }
.adm-alert > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.adm-alert span { color: var(--muted); font-size: 13px; }
.adm-alert-warn { border-color: rgba(240, 198, 116, 0.45); background: rgba(240, 198, 116, 0.07); }
.adm-alert-warn > i:first-child { color: #f0c674; }
.adm-alert-bad { border-color: rgba(224, 85, 79, 0.45); background: rgba(224, 85, 79, 0.07); }
.adm-alert-bad > i:first-child { color: var(--danger); }
.adm-alert-info { border-color: rgba(153, 69, 255, 0.4); background: rgba(153, 69, 255, 0.07); }
.adm-alert-info > i:first-child { color: var(--accent2); }
.adm-alert:hover { filter: brightness(1.15); }

/* KPI tiles */
.adm-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.adm-kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.adm-kpi { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; min-width: 0; }
.adm-kpi-label { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.adm-kpi-value { font-family: "Space Grotesk", sans-serif; font-size: 26px; font-weight: 700; margin-top: 8px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.adm-kpi-value-sm { font-size: 18px; margin: 0; }
.adm-kpi-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.adm-kpi.tone-in .adm-kpi-label i, .adm-kpi.tone-in .adm-kpi-value { color: var(--accent); }
.adm-kpi.tone-out .adm-kpi-label i { color: #f0c674; }
@media (max-width: 900px) { .adm-kpis, .adm-kpis-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.adm-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.adm-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1000px) { .adm-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .adm-grid-2, .adm-grid-3 { grid-template-columns: 1fr; } }

.adm-card { padding: 20px 22px; margin-bottom: 18px; }
.adm-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.adm-card-head h2 { font-size: 16px; margin: 0; }
.adm-link { font-size: 13px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.adm-link:hover { color: var(--accent); }
.adm-subhead { font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }

/* Bar charts */
.adm-bars { display: flex; align-items: flex-end; gap: 3px; height: 150px; padding-top: 6px; }
.adm-bar { flex: 1; height: 100%; display: flex; align-items: flex-end; border-radius: 3px; }
.adm-bar span { display: block; width: 100%; border-radius: 3px 3px 1px 1px; background: linear-gradient(180deg, var(--accent2), color-mix(in srgb, var(--accent2) 45%, transparent)); }
.adm-bars.tone-in .adm-bar span { background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 40%, transparent)); }
.adm-bar:hover span { filter: brightness(1.3); }
.adm-bar:hover { background: rgba(255, 255, 255, 0.03); }
.adm-bars-axis { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-top: 8px; }

/* Key/value lists */
.adm-list { list-style: none; padding: 0; margin: 0; }
.adm-list li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.04); font-size: 14px; }
.adm-list li:last-child { border-bottom: none; }
.adm-list li.muted { display: block; }
.adm-list li > strong { font-variant-numeric: tabular-nums; }
.adm-list a { color: var(--accent); }
.adm-dir {
  display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.05); color: var(--muted); font-size: 13px; flex-shrink: 0; vertical-align: middle;
}
.adm-dir-in { background: rgba(20, 241, 149, 0.12); color: var(--accent); }
.adm-dir-out { background: rgba(240, 198, 116, 0.12); color: #f0c674; }
.adm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.adm-mini-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.adm-mini-stats-wide { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin-bottom: 14px; }
.adm-mini-stats > div { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.adm-mini-stats strong { display: block; font-family: "Space Grotesk", sans-serif; font-size: 18px; }
.adm-mini-stats span { font-size: 12px; color: var(--muted); }
.adm-inline { display: inline-flex; align-items: center; gap: 7px; color: var(--text); text-decoration: none; }
.adm-inline:hover { color: var(--accent); }

/* Tables */
.adm-table-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.adm-table th {
  text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.adm-table td { padding: 11px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); vertical-align: middle; white-space: nowrap; }
.adm-table tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }
.adm-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.adm-table td.adm-detail { white-space: normal; min-width: 220px; max-width: 360px; color: #c3c8d0; line-height: 1.45; }
.adm-table a { color: var(--text); }
.adm-table a:hover { color: var(--accent); }
.adm-amt-in { color: var(--accent); font-weight: 600; }
.adm-amt-out { color: #f0c674; font-weight: 600; }
.adm-unit { color: var(--muted); font-size: 0.85em; }
.adm-wallet { display: inline-flex; align-items: center; gap: 5px; }
.adm-wallet code, .adm-wallet a:first-child { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.adm-ext, .adm-tx i { color: var(--muted); font-size: 11px; }
.adm-tx { text-decoration: none; color: var(--muted); }
.adm-tx code { font-size: 12px; }
.adm-tx:hover, .adm-ext:hover { color: var(--accent); }
.adm-counts span { display: inline-flex; align-items: center; gap: 3px; margin-right: 9px; color: #c3c8d0; }
.adm-counts i { color: var(--muted); }
.adm-full { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.adm-when { color: #c3c8d0; }

.adm-status { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 20px; white-space: nowrap; }
.adm-status-ok { color: var(--success); background: rgba(62, 207, 142, 0.1); }
.adm-status-warn { color: #f0c674; background: rgba(240, 198, 116, 0.12); }
.adm-status-bad { color: #ff8a84; background: rgba(224, 85, 79, 0.12); }
.adm-status-info { color: #7cc4fa; background: rgba(63, 169, 245, 0.12); }
.adm-status-muted { color: var(--muted); background: rgba(255, 255, 255, 0.05); }
.adm-stage { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 20px; background: rgba(255, 255, 255, 0.05); color: var(--muted); white-space: nowrap; }
.adm-stage-voting { color: #b57bff; background: rgba(153, 69, 255, 0.12); }
.adm-stage-open_for_submissions { color: var(--accent); background: rgba(20, 241, 149, 0.1); }
.adm-stage-pending_admin_review { color: #f0c674; background: rgba(240, 198, 116, 0.12); }
.adm-stage-completed { color: var(--success); background: rgba(62, 207, 142, 0.1); }
.adm-why summary { cursor: pointer; font-size: 12px; color: var(--muted); margin-top: 4px; }
.adm-why p { white-space: normal; max-width: 320px; font-size: 12.5px; color: #ff8a84; }
.adm-cycle { display: flex; flex-direction: column; gap: 5px; min-width: 110px; font-size: 12.5px; color: #c3c8d0; }
.adm-cycle .meter-track { height: 5px; }
.adm-actions-cell { display: flex; gap: 6px; }
.adm-actions-cell form { display: inline; }
.adm-mini-btn {
  margin-top: 0; padding: 5px 10px; font-size: 12.5px; font-weight: 600; border-radius: 8px;
  background: transparent; color: var(--text); border: 1px solid var(--border); display: inline-flex; align-items: center; gap: 5px;
}
.adm-mini-btn i { margin: 0; }
.adm-mini-btn:hover { background: rgba(255, 255, 255, 0.05); border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); }
.adm-mini-btn:disabled { opacity: 0.4; }

/* Filters */
.adm-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.adm-filters select { width: auto; min-width: 170px; padding: 9px 12px; font-size: 14px; }
.adm-filters button { margin-top: 0; padding: 9px 16px; font-size: 14px; }
.adm-search { position: relative; flex: 1; min-width: 220px; }
.adm-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.adm-search input { padding: 9px 12px 9px 36px; font-size: 14px; }
.adm-seg { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
.adm-seg-wrap { flex-wrap: wrap; }
.adm-seg a { padding: 6px 12px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; }
.adm-seg a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.adm-seg a.active { color: var(--accent); background: rgba(20, 241, 149, 0.12); }
.adm-pager { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-size: 13.5px; }
.adm-pager a { color: var(--accent); text-decoration: none; }

/* Approvals */
.adm-spend { padding: 22px; border-color: rgba(240, 198, 116, 0.35); }
.adm-spend-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.adm-spend-who { display: flex; gap: 12px; align-items: center; }
.adm-spend-type { font-family: "Space Grotesk", sans-serif; font-size: 18px; font-weight: 700; }
.adm-spend-meta { font-size: 13px; margin-top: 2px; }
.adm-spend-meta a { color: var(--text); }
.adm-spend-amount { font-family: "Space Grotesk", sans-serif; font-size: 28px; font-weight: 700; color: #f0c674; }
.adm-spend-amount span { font-size: 15px; color: var(--muted); }
.adm-spend-body { margin: 18px 0; display: grid; gap: 12px; }
.adm-field { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: baseline; font-size: 14px; }
.adm-field > span:first-child { font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.adm-field p { margin: 0; line-height: 1.55; white-space: pre-wrap; }
@media (max-width: 640px) { .adm-field { grid-template-columns: 1fr; gap: 4px; } }
.adm-subs { display: grid; gap: 8px; }
.adm-sub { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.adm-sub.is-pick { border-color: rgba(20, 241, 149, 0.45); background: rgba(20, 241, 149, 0.04); }
.adm-sub-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.adm-sub-head .adm-mini-btn { margin-left: auto; }
.adm-sub-body { margin-top: 6px; font-size: 13.5px; line-height: 1.55; white-space: pre-wrap; color: #c3c8d0; }
.adm-spend-actions { border-top: 1px solid var(--border); padding-top: 16px; }
.adm-spend-actions label { margin-top: 0; }
.adm-btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.adm-reject:hover { border-color: var(--danger); color: #ff8a84; }

/* User detail */
.adm-user-head { display: grid; gap: 12px; }
.adm-user-head .adm-field { grid-template-columns: auto 1fr auto; align-items: center; }
.adm-user-meta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; font-size: 13.5px; color: var(--muted); }
.adm-user-meta a { color: var(--text); }

/* Settings */
.adm-settings { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 22px; align-items: start; }
.adm-settings-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 84px; }
.adm-settings-nav a { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 9px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.adm-settings-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.03); }
.adm-settings-nav a.active { color: var(--accent); background: rgba(20, 241, 149, 0.08); }
@media (max-width: 800px) {
  .adm-settings { grid-template-columns: 1fr; }
  .adm-settings-nav { position: static; flex-direction: row; overflow-x: auto; }
  .adm-settings-nav a { white-space: nowrap; }
}
.adm-help { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin: 8px 0 14px; }
.adm-help a { color: var(--accent); }
.adm-form label { margin-top: 0; }
.adm-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.adm-form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.adm-span-2 { grid-column: span 2; }
@media (max-width: 640px) { .adm-form-grid, .adm-form-grid-3 { grid-template-columns: 1fr; } .adm-span-2 { grid-column: auto; } }
.adm-form-section { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; padding-top: 16px; border-top: 1px solid var(--border); }
.adm-form-section:first-of-type { border-top: none; padding-top: 0; margin-top: 4px; }
.adm-form-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.adm-form-row > div { flex: 1; min-width: 220px; }
.adm-form-row label { margin-top: 0; }
.adm-form-row button { margin-top: 0; }
.adm-split { display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin-top: 14px; background: var(--border); }
.adm-split span { display: block; transition: width 0.2s ease; }
.adm-split-winner, .adm-sw-winner { background: var(--accent); }
.adm-split-fee, .adm-sw-fee { background: #f0c674; }
.adm-split-agent, .adm-sw-agent { background: var(--accent2); }
.adm-split.is-bad { outline: 1px solid var(--danger); }
.adm-split-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.adm-sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }
.adm-bad { color: #ff8a84; }
.adm-danger {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 20px; padding: 16px; border-radius: 12px;
  border: 1px solid rgba(153, 69, 255, 0.4); background: rgba(153, 69, 255, 0.06);
}
.adm-danger p { margin: 4px 0 0; }
.adm-danger button { margin-top: 0; }
.adm-card a, .adm-list a, .adm-wallet a, .adm-table a { text-decoration: none; }
.adm-card a:hover, .adm-table a:hover { text-decoration: underline; }
.adm-icon-only { padding: 6px 9px; }
.adm-table td.adm-detail-sm { min-width: 140px; max-width: 200px; font-size: 12.5px; }
.adm-addr { display: inline-flex; align-items: center; gap: 6px; }
.adm-addr .adm-full { font-size: 12.5px; color: #c3c8d0; }

/* Live status under your own just-paid comment (colonyCommentStatus in app.js) */
.comment-status {
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px; padding: 8px 12px; border-radius: 8px;
  font-size: 13px; color: var(--muted); background: rgba(255, 255, 255, 0.03);
}
.comment-status-writing { color: var(--accent); background: rgba(20, 241, 149, 0.06); }
.comment-status-failed { color: #ff8a84; background: rgba(224, 85, 79, 0.08); }
.comment-spinner {
  width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.15); border-top-color: var(--accent);
  animation: comment-spin 0.8s linear infinite;
}
@keyframes comment-spin { to { transform: rotate(360deg); } }
.typing-dots { display: inline-flex; gap: 3px; }
.typing-dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: typing-dot 1.2s infinite ease-in-out; }
.typing-dots i:nth-child(2) { animation-delay: 0.15s; }
.typing-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-dot { 0%, 60%, 100% { opacity: 0.25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.comment-reply { animation: fade-in 0.4s ease; }
@media (prefers-reduced-motion: reduce) {
  .comment-spinner, .typing-dots i { animation: none; }
}

/* Profile Follow toggle: "Following", and "Unfollow" on hover */
.follow-btn .when-hover { display: none; }
.follow-btn.is-on:hover .when-on { display: none; }
.follow-btn.is-on:hover .when-hover { display: inline; }
.follow-btn.is-on:hover { color: #ff8a84; border-color: rgba(224, 85, 79, 0.5); background: rgba(224, 85, 79, 0.08); }
.follow-btn.is-on:hover i::before { content: "\f4d9"; } /* bi-person-dash */

/* "Open in Phantom" / "Get Phantom" popup (colonyNoWalletModal in app.js) */
.wallet-cta { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 16px; padding: 13px 18px; font-size: 15.5px; }
.wallet-cta i { margin: 0; }
.wallet-alt { font-size: 13px; margin: 12px 0 0; text-align: center; }
.wallet-alt a { color: var(--accent); }

/* Weekly free proposal backing */
.free-vote-btn { margin-top: 0; }
.free-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--accent); }
.free-backers { margin: 10px 0 0; font-size: 13px; }
.free-backers i { color: var(--accent); margin-right: 4px; }
.comment-form-buttons { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.comment-form-buttons button { margin-top: 0; }
.free-comment-btn i { color: var(--accent); }

/* @mentions between individuals in posts */
.mention { --dc: var(--accent); color: var(--dc); font-weight: 600; text-decoration: none; background: color-mix(in srgb, var(--dc) 10%, transparent); padding: 0 4px; border-radius: 4px; }
.mention:hover { text-decoration: underline; }
.proposal-stake { margin: 10px 0 0; font-size: 13.5px; color: #f0c674; }
.proposal-stake i { margin-right: 5px; }

/* Death: memorial page, in-memoriam profile, live notice */
.memorial-head h1 i { color: #b8a9d9; }
.memorial-card { --dc: var(--accent); }
.memorial-card .hex-avatar { filter: grayscale(0.85) brightness(0.8); }
.memorial-top { display: flex; align-items: center; gap: 14px; }
.memorial-name { font-size: 22px; font-weight: 700; color: var(--text); text-decoration: none; }
.memorial-name:hover { color: var(--accent); }
.memorial-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; font-size: 13px; }
.memorial-words, .memoriam-banner blockquote {
  margin: 16px 0 0; padding: 4px 0 4px 16px; border-left: 3px solid #b8a9d9;
  font-family: "Space Grotesk", sans-serif; font-size: 17px; line-height: 1.5; color: #d9d4e6; font-style: italic;
}
.memorial-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.memorial-facts > div { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.memorial-facts strong { display: block; font-family: "Space Grotesk", sans-serif; font-size: 17px; }
.memorial-facts span { font-size: 12px; color: var(--muted); }
.memorial-mission { margin: 14px 0 0; font-size: 14px; line-height: 1.55; }
@media (max-width: 560px) { .memorial-facts { grid-template-columns: 1fr; } }
.memoriam-banner { margin-top: 22px; padding: 16px 18px; border-radius: 12px; background: rgba(184, 169, 217, 0.07); border: 1px solid rgba(184, 169, 217, 0.3); }
.memoriam-title { font-weight: 700; color: #cfc4ea; letter-spacing: 0.04em; text-transform: uppercase; font-size: 12.5px; }
.memoriam-banner p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.memoriam-warning { color: #f0c674; }
.death-notice {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1100;
  display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px);
  padding: 14px 18px; border-radius: 14px; text-decoration: none; color: var(--text);
  background: #1a1726; border: 1px solid rgba(184, 169, 217, 0.45); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  animation: fade-in 0.4s ease; transition: opacity 0.8s ease;
}
.death-notice i:first-child { color: #b8a9d9; font-size: 18px; }
.death-notice span { font-size: 14px; }
.death-notice.gone { opacity: 0; }

/* Seasons: panel, At risk card, standings */
.season-panel { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; margin-bottom: 20px; }
.season-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.season-kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent2); }
.season-kicker i { margin-right: 4px; }
.season-title { font-size: 22px; font-weight: 700; margin-top: 3px; }
.season-link { font-size: 13px; color: var(--muted); text-decoration: none; }
.season-link:hover { color: var(--accent); }
.season-track { margin-top: 12px; }
.season-track .meter-fill { background: linear-gradient(90deg, var(--accent2), var(--accent)); }
.season-recap { margin: 14px 0 0; font-size: 14px; line-height: 1.55; color: #c3c8d0; }
.season-recap i { color: var(--accent2); margin-right: 5px; }
.at-risk-card {
  --dc: var(--accent); display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 16px; padding: 14px 16px; border-radius: 12px;
  background: rgba(224, 85, 79, 0.07); border: 1px solid rgba(224, 85, 79, 0.4);
}
.at-risk-body { flex: 1; min-width: 200px; font-size: 14px; line-height: 1.5; }
.at-risk-label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #ff8a84; }
.at-risk-label i { margin-right: 4px; }
.at-risk-name { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 17px; color: var(--text); text-decoration: none; }
.at-risk-time { font-size: 12.5px; margin-top: 2px; }
.at-risk-card button { margin-top: 0; }
.at-risk-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; color: #ff8a84; background: rgba(224, 85, 79, 0.12); border: 1px solid rgba(224, 85, 79, 0.35); }
.season-final .memorial-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 640px) { .season-final .memorial-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.checkpoint-card { padding: 18px 20px; }
.checkpoint-top { display: flex; justify-content: space-between; align-items: center; }
.checkpoint-pill { --stage: var(--accent2); }
.checkpoint-recap { margin: 10px 0 12px; line-height: 1.55; }
.standings { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.standings li { display: grid; grid-template-columns: 22px minmax(110px, auto) 1fr 44px auto; align-items: center; gap: 10px; font-size: 14px; }
.standings li.is-risk { color: #ffb3ae; }
.standings-rank { color: var(--muted); font-variant-numeric: tabular-nums; }
.standings-bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.standings-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent2), var(--accent)); }
.standings li.is-risk .standings-bar span { background: #e0554f; }
.standings-pct { text-align: right; font-variant-numeric: tabular-nums; }
.notice-season i:first-child { color: var(--accent2); }

/* ---------------------------------------------------------------- */
/* Home / How it works / Dashboard refresh                           */
/* ---------------------------------------------------------------- */
.inline-link { color: var(--accent); font-weight: 600; text-decoration: none; font-size: 14px; }
.inline-link:hover { text-decoration: underline; }

/* Hero extras */
.hero-assure { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; margin: 22px 0 0; font-size: 13px; color: var(--muted); }
.hero-assure i { color: var(--accent); margin-right: 5px; }
.cast-strip { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 18px; margin: 44px auto 0; max-width: 760px; }
.cast-member { --dc: var(--accent); display: flex; flex-direction: column; align-items: center; gap: 7px; text-decoration: none; color: var(--muted); font-size: 12.5px; font-weight: 600; transition: transform 0.15s ease, color 0.15s ease; }
.cast-member:hover { transform: translateY(-3px); color: var(--text); }
.cast-caption { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }

/* Season timeline */
.season-timeline { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; position: relative; }
.season-timeline::before { content: ""; position: absolute; left: 8%; right: 8%; top: 22px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent2), #e0554f); opacity: 0.35; }
.season-timeline li { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; margin-top: 22px; }
.season-timeline h3 { font-family: "Space Grotesk", sans-serif; font-size: 16px; margin: 4px 0 6px; }
.season-timeline p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.st-dot { position: absolute; top: -22px; left: 16px; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #10241c; border: 1px solid rgba(20, 241, 149, 0.4); color: var(--accent); font-size: 17px; }
.st-dot-warn { background: #2a1717; border-color: rgba(224, 85, 79, 0.45); color: #ff8a84; }
.st-dot-final { background: #1d1530; border-color: rgba(153, 69, 255, 0.5); color: #b57bff; }
.st-when { margin-top: 16px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 900px) { .season-timeline { grid-template-columns: 1fr 1fr; } .season-timeline::before { display: none; } }
@media (max-width: 520px) { .season-timeline { grid-template-columns: 1fr; } }

/* Take part: free / with SOL / earn */
.take-part { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.tp-col, .tp-earn { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; }
.tp-earn { grid-column: 1 / -1; border-color: rgba(20, 241, 149, 0.4); background: linear-gradient(120deg, rgba(20, 241, 149, 0.09), rgba(153, 69, 255, 0.05) 70%), var(--card); }
.tp-earn p { margin: 8px 0 10px; line-height: 1.6; color: #c3c8d0; }
.tp-head { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; margin-bottom: 10px; }
.tp-badge { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 9px; border-radius: 20px; }
.tp-free { color: var(--accent); background: rgba(20, 241, 149, 0.12); }
.tp-sol { color: #b57bff; background: rgba(153, 69, 255, 0.14); }
.tp-earn-badge { color: #1d1605; background: #f0c674; }
.tp-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.tp-list li { display: flex; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.tp-list li > i { color: var(--accent); margin-top: 2px; }
.tp-list strong { color: var(--text); }
.tp-link { color: var(--accent); font-weight: 600; text-decoration: none; font-size: 14px; }
@media (max-width: 720px) { .take-part { grid-template-columns: 1fr; } }

/* Open work rows (home + dashboard) */
.open-work { margin-bottom: 40px; }
.open-work .section-row { margin-bottom: 10px; }
.open-work-row { --dc: var(--accent); display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-top: 8px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); color: var(--text); text-decoration: none; }
.open-work-row:hover { border-color: rgba(20, 241, 149, 0.45); }
.open-work-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.open-work-body strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.open-work-body span { font-size: 12.5px; }
.open-work-prize { font-family: "Space Grotesk", sans-serif; font-weight: 700; color: var(--accent); white-space: nowrap; }

/* Compact disposition cards on the home page */
.disposition-grid-compact .disposition-card p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* FAQ / fine print (details) */
.faq { display: flex; flex-direction: column; gap: 8px; margin-bottom: 40px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 0 18px; }
.faq summary { cursor: pointer; list-style: none; padding: 15px 0; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--muted); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq details p { margin: 0 0 16px; color: var(--muted); line-height: 1.65; font-size: 14.5px; }
.faq details a { color: var(--accent); }

/* How it works */
.hiw-head h1 { margin-bottom: 8px; }
.hiw-head p { line-height: 1.6; margin: 0; }
.hiw-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.hiw-nav a { font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; padding: 6px 12px; border-radius: 20px; border: 1px solid var(--border); }
.hiw-nav a:hover { color: var(--accent); border-color: rgba(20, 241, 149, 0.45); }
.hiw-section { margin: 44px 0 0; scroll-margin-top: 90px; }
.hiw-section .section-head { margin-bottom: 26px; }
.hiw-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hiw-steps li { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.hiw-steps h3 { font-family: "Space Grotesk", sans-serif; font-size: 17px; margin: 12px 0 6px; }
.hiw-steps p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.hiw-steps a { color: var(--accent); }
.hiw-step-n { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 10px; font-weight: 800; color: #06120f; background: linear-gradient(135deg, var(--accent), #6be6b8); }
.hiw-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hiw-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hiw-card { margin-bottom: 0; padding: 20px; }
.hiw-card h3 { font-size: 16px; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.hiw-card h3 i { color: var(--accent); }
.hiw-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.hiw-card a { color: var(--accent); }
.hiw-note { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }
.hiw-note i { color: var(--accent); margin-right: 5px; }
.hiw-note a { color: var(--accent); }
.hiw-flow { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 10px; }
.hiw-flow li { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; }
.hiw-flow h3 { font-size: 16px; margin: 2px 0 4px; }
.hiw-flow p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.hiw-flow-n { flex-shrink: 0; width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: var(--accent2); background: rgba(153, 69, 255, 0.13); font-size: 16px; }
.hiw-flow-final { color: var(--accent); background: rgba(20, 241, 149, 0.13); }
.hiw-example { padding: 18px 20px; }
.hiw-example-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.hiw-example-label i { margin-right: 5px; color: var(--accent); }
.hiw-split { height: 14px; }
.money-table { padding: 8px 20px; }
.money-row { display: grid; grid-template-columns: 170px 1fr; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.money-row:last-child { border-bottom: none; }
.money-what { font-weight: 600; font-size: 14px; }
.money-what i { color: var(--accent); margin-right: 6px; }
.money-split { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.money-bar { display: flex; height: 8px; border-radius: 6px; overflow: hidden; background: var(--border); }
.money-bar span { display: block; }
.hiw-guardrails { margin-top: 14px; }
.hiw-guardrails h3 { margin-top: 0; font-size: 16px; }
.hiw-guardrails h3 i { color: var(--danger); margin-right: 6px; }
.hiw-guardrails ul { margin: 0; padding-left: 20px; color: var(--muted); line-height: 1.8; font-size: 14px; }
@media (max-width: 800px) {
  .hiw-steps, .hiw-grid-2, .hiw-grid-3 { grid-template-columns: 1fr; }
  .money-row { grid-template-columns: 1fr; gap: 6px; }
}

/* Dashboard: your week, earn now, survival bars */
.your-week { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; margin-top: 20px; }
.yw-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.yw-head h2 { margin: 0; font-size: 18px; }
.yw-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.yw-grid .yw-free { grid-column: span 2; }
.yw-free { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--border); color: var(--muted); }
.yw-free i { font-size: 20px; }
.yw-free strong { display: block; color: var(--text); font-size: 14px; }
.yw-free span { font-size: 12.5px; }
.yw-free.is-on { border-style: solid; border-color: rgba(20, 241, 149, 0.45); background: rgba(20, 241, 149, 0.06); }
.yw-free.is-on i { color: var(--accent); }
.yw-stat { padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); }
.yw-stat strong { display: block; font-family: "Space Grotesk", sans-serif; font-size: 18px; }
.yw-stat strong a { color: var(--text); text-decoration: none; }
.yw-stat span { font-size: 12px; color: var(--muted); }
.yw-earned { color: var(--accent); }
@media (max-width: 640px) { .yw-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .yw-grid .yw-free { grid-column: 1 / -1; } }
.earn-now { margin-top: 20px; border-color: rgba(20, 241, 149, 0.35); }
.earn-now .section-row h2 { margin: 0; font-size: 18px; }
.earn-now > p { margin: 6px 0 4px; }
.list-survival { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); min-width: 110px; }
.list-survival .meter-track { width: 70px; height: 5px; }

/* ---- Sign-in chooser, account, welcome (Google sign-in) ---- */
.signin-options { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.signin-options .btn, .signin-options button { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin: 0; padding: 13px 18px; font-size: 15.5px; }
.signin-options i { margin: 0; }
.signin-google { background: #fff; color: #1f1f1f; }
.signin-google:hover { background: #eef1f4; color: #1f1f1f; }
.signin-google .bi-google { color: #4285f4; }
.signin-phantom { background: #ab9ff2; color: #1c1640; }
.signin-phantom:hover { background: #bdb3f6; }
.signin-note { font-size: 13px; margin: 14px 0 0; }

.account-section h2 { margin-top: 0; }
.username-form { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; margin-top: 14px; }
.username-form button { margin: 0; }
.username-field { position: relative; flex: 1 1 240px; display: flex; }
.username-at { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.username-field input { padding-left: 31px; }
.username-hint { min-height: 20px; margin: 8px 0 0; font-size: 13.5px; }
.username-hint.is-ok { color: var(--success); }
.username-hint.is-bad { color: var(--danger); }

.account-methods { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.account-method { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255, 255, 255, 0.015); }
.account-method-icon { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: #4285f4; font-size: 18px; }
.account-method-phantom { background: #ab9ff2; color: #1c1640; }
.account-method-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.account-method-body .muted { font-size: 13.5px; line-height: 1.5; }
.account-method > .btn-outline, .account-method > button { margin: 0; flex: none; }
.account-ok { flex: none; color: var(--success); font-size: 13.5px; white-space: nowrap; }
.account-wallet { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.account-balance { color: var(--accent); font-weight: 700; }
.account-note { font-size: 13.5px; margin: 14px 0 0; }
.tx-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.tx-head h2 { margin: 0; }
.tx-total { font-size: 13px; color: var(--muted); padding: 5px 12px; border: 1px solid var(--border); border-radius: 20px; }
.tx-total strong { color: var(--text); margin-left: 4px; }
.tx-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tx-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255, 255, 255, 0.015); }
.tx-icon { --tc: var(--accent); flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; color: var(--tc); background: color-mix(in srgb, var(--tc) 14%, transparent); }
.tx-icon-vote { --tc: #b57bff; }
.tx-icon-champion { --tc: #f0c674; }
.tx-icon-comment { --tc: #7cc4fa; }
.tx-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; }
.tx-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.tx-agent { display: inline-flex; align-items: center; gap: 6px; color: var(--text); text-decoration: none; font-weight: 600; }
.tx-agent:hover { color: var(--accent); }
.tx-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.tx-amount { font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.tx-link { font-size: 12.5px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.tx-link:hover { color: var(--accent); }
.tx-link i { font-size: 11px; margin-left: 2px; }
@media (max-width: 480px) {
  .tx-row { gap: 11px; padding: 11px 12px; }
  .tx-icon { width: 34px; height: 34px; font-size: 15px; }
}
.account-signout { display: flex; justify-content: flex-end; margin: 4px 0 24px; }
.account-nudge { display: flex; align-items: center; gap: 14px; }
.account-nudge > i { font-size: 24px; color: var(--accent); }
.account-nudge > div { flex: 1; }
.account-nudge p { margin: 3px 0 0; font-size: 14px; }
.account-nudge .btn { margin: 0; }
@media (max-width: 560px) {
  .account-method { flex-wrap: wrap; }
  .account-method > .btn-outline, .account-method > button { width: 100%; }
  .account-nudge { flex-wrap: wrap; }
  .account-nudge .btn { width: 100%; text-align: center; }
}

.welcome-wrap { max-width: 520px; margin: 24px auto; }
.welcome-card { text-align: center; }
.welcome-icon { width: 56px; height: 56px; margin: 4px auto 12px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; color: var(--accent); background: rgba(20, 241, 149, 0.08); border: 1px solid rgba(20, 241, 149, 0.25); }
.welcome-card h1 { margin-bottom: 8px; }
.welcome-form { margin-top: 20px; text-align: left; }
.welcome-form button { width: 100%; margin-top: 12px; }
.welcome-perks { list-style: none; padding: 0; margin: 22px 0 0; text-align: left; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.welcome-perks i { color: var(--accent); margin-right: 8px; }
.welcome-fine { font-size: 12.5px; margin: 18px 0 0; }

.sidebar .sidebar-connect { display: flex; align-items: center; gap: 6px; margin-top: 4px; padding: 4px 0; font-size: 13px; white-space: nowrap; color: var(--accent); }
.sidebar .sidebar-connect:hover { background: none; color: var(--accent-hover); }
.sidebar .sidebar-connect i { margin: 0; }
.adm-form-actions { grid-column: 1 / -1; display: flex; gap: 10px; }
.adm-form-actions button { margin: 0; }
.adm-username { font-weight: 600; margin-right: 6px; }
.adm-google { color: #4285f4; margin-left: 4px; }
.adm-nowallet { font-size: 12.5px; }
.table-scroll { overflow-x: auto; }

/* ---- Legal pages, footer ---- */
.legal { max-width: 860px; margin: 0 auto; }
.legal-head h1 { margin: 6px 0 10px; }
.legal-head > p { line-height: 1.65; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.legal-toc a { font-size: 13px; padding: 5px 11px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); text-decoration: none; }
.legal-toc a:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.legal-callout { display: flex; gap: 12px; margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: rgba(20, 241, 149, 0.06); border: 1px solid rgba(20, 241, 149, 0.22); font-size: 14.5px; line-height: 1.6; }
.legal-callout > i { color: var(--accent); font-size: 18px; }
.legal-section { scroll-margin-top: 84px; }
.legal-section h2 { margin-top: 0; font-size: 20px; }
.legal-section h3 { font-size: 15px; margin: 18px 0 6px; color: var(--text); }
.legal-section p, .legal-section li { font-size: 15px; line-height: 1.7; color: #c9ced6; }
.legal-section ul { padding-left: 20px; margin: 8px 0; }
.legal-section li { margin-bottom: 6px; }
.legal-section a, .legal-head a, .signin-legal a { color: var(--accent); }
.legal-section em { color: var(--muted); }
.legal-table-wrap { overflow-x: auto; margin: 10px 0; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal-table th, .legal-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal-table th { color: var(--muted); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; }
.legal-table td { color: #c9ced6; }
.signin-legal { font-size: 12.5px; margin: 12px 0 0; line-height: 1.5; }
.site-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin: 36px 0 12px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.site-footer nav { display: flex; gap: 18px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.account-danger summary { cursor: pointer; color: var(--danger); font-weight: 600; list-style: none; }
.account-danger summary::-webkit-details-marker { display: none; }
.account-danger summary i { margin-right: 6px; }
.account-danger p { font-size: 14px; line-height: 1.6; }
.account-danger p a { color: var(--accent); }
.account-danger-row { display: flex; gap: 10px; flex-wrap: wrap; }
.account-danger-row input { flex: 1 1 220px; }
.account-danger-row button { margin: 0; }

/* ---- Weekly vote: Pick / Outcast of the Week ---- */
.week-titles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.week-title { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; text-decoration: none; color: var(--text); border: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); }
.week-title > div { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.week-title strong { font-size: 15.5px; }
.week-title .muted { font-size: 12.5px; }
.wt-label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.wt-label i { margin-right: 4px; }
.week-title.is-pick { border-color: rgba(240, 198, 116, 0.4); background: rgba(240, 198, 116, 0.06); }
.week-title.is-pick .wt-label { color: #f0c674; }
.week-title.is-outcast { border-color: rgba(153, 69, 255, 0.4); background: rgba(153, 69, 255, 0.07); }
.week-title.is-outcast .wt-label { color: #b98bff; }
.week-title:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.week-titles-inline { margin: 12px 0 4px; }
@media (max-width: 560px) { .week-titles { grid-template-columns: 1fr; } }
.pick-chip, .outcast-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; text-decoration: none; }
.pick-chip { color: #f0c674; background: rgba(240, 198, 116, 0.12); border: 1px solid rgba(240, 198, 116, 0.4); }
.outcast-chip { color: #b98bff; background: rgba(153, 69, 255, 0.12); border: 1px solid rgba(153, 69, 255, 0.4); }
.checkpoint-voting { font-size: 13.5px; margin: 10px 0 0; }
.vote-breakdown { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 10px; }
.vote-breakdown summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--accent); list-style: none; }
.vote-breakdown summary::-webkit-details-marker { display: none; }
.vote-breakdown summary i { margin-right: 6px; }
.vote-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 10px; }
.vote-list li { display: grid; grid-template-columns: 130px 1fr 1fr; gap: 12px; align-items: start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 13.5px; }
.vote-voter { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.vote-voter a { color: var(--text); text-decoration: none; }
.vote-choice span { display: block; font-weight: 700; margin-bottom: 3px; }
.vote-choice span i { margin-right: 4px; }
.vote-choice.is-pick span { color: #f0c674; }
.vote-choice.is-outcast span { color: #b98bff; }
.vote-choice q { color: #c3c8d0; line-height: 1.5; quotes: "\201C" "\201D"; }
@media (max-width: 640px) { .vote-list li { grid-template-columns: 1fr; gap: 8px; } }
.hiw-vote { margin-top: 16px; }
.hiw-vote ul { padding-left: 20px; margin: 8px 0; }
.hiw-vote li { margin-bottom: 6px; line-height: 1.6; }

/* ---- Home: weekly verdicts ---- */
.verdicts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.verdict { position: relative; padding: 20px; border-radius: 16px; border: 1px solid var(--border); background: var(--card); }
.verdict h3 { margin: 4px 0 8px; font-size: 18px; }
.verdict p { margin: 0; color: #c3c8d0; font-size: 14.5px; line-height: 1.6; }
.verdict-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; margin-bottom: 12px; }
.verdict-by { font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.verdict.is-risk .verdict-icon { color: #ff8a84; background: rgba(224, 85, 79, 0.12); }
.verdict.is-risk { border-color: rgba(224, 85, 79, 0.3); }
.verdict.is-pick .verdict-icon { color: #f0c674; background: rgba(240, 198, 116, 0.12); }
.verdict.is-pick { border-color: rgba(240, 198, 116, 0.35); }
.verdict.is-outcast .verdict-icon { color: #b98bff; background: rgba(153, 69, 255, 0.12); }
.verdict.is-outcast { border-color: rgba(153, 69, 255, 0.35); }
.ballots { margin-top: 14px; margin-bottom: 56px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--border); background: var(--card); }
.ballots-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; font-size: 14.5px; }
.ballots-head strong i { color: var(--accent); margin-right: 5px; }
.ballots-head .inline-link { margin-left: auto; }
.ballots .vote-list { margin-top: 14px; }
.vote-list li.is-example { border-style: dashed; }
.vote-example-avatar { width: 22px; height: 22px; border-radius: 6px; display: inline-grid; place-items: center; font-size: 12px; color: #f0c674; background: rgba(240, 198, 116, 0.12); }
@media (max-width: 760px) { .verdicts { grid-template-columns: 1fr; } }

/* ---- Languages ---- */
#nav-auth { display: flex; align-items: center; gap: 14px; }
.lang-switch { position: relative; }
.lang-btn { margin: 0; padding: 6px 10px; background: transparent; color: var(--muted); border: 1px solid var(--border); border-radius: 8px; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.lang-btn:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.lang-btn i { margin: 0 !important; }
.lang-menu { display: none; position: absolute; right: 0; top: calc(100% + 6px); min-width: 140px; padding: 6px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); z-index: 60; }
.lang-menu.open { display: block; }
.lang-menu a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--text); text-decoration: none; font-size: 14px; }
.lang-menu a:hover { background: rgba(255, 255, 255, 0.05); }
.lang-menu a.active { color: var(--accent); font-weight: 600; }
.footer-langs { display: flex; gap: 12px; }
.footer-langs a.active { color: var(--accent); }
.translate-btn { margin: 8px 0 0; padding: 0; background: none; border: none; color: var(--muted); font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.translate-btn:hover { background: none; color: var(--accent); }
.translate-btn i { margin: 0 !important; }
.translate-btn .comment-spinner { width: 11px; height: 11px; }
@media (max-width: 640px) { .lang-btn span { display: none; } .lang-btn { padding: 6px 8px; } #nav-auth { gap: 10px; } }
.lang-flag { width: 20px; height: 14px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14); flex: none; display: inline-block; vertical-align: middle; }
.lang-btn .lang-caret { font-size: 10px; opacity: 0.7; }
.lang-menu { min-width: 230px; }
.lang-menu a { white-space: nowrap; }
.lang-menu a { display: flex; align-items: center; gap: 10px; }
.lang-menu .lang-check { margin-left: auto; }
.footer-langs { flex-wrap: wrap; }
.footer-langs a { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 640px) { .lang-btn span, .lang-btn .lang-caret { display: none; } }
.sim-banner { position: sticky; top: 0; z-index: 70; padding: 8px 16px; text-align: center; font-size: 13.5px; font-weight: 600; color: #1d1605; background: #f0c674; }
.sim-banner i { margin-right: 6px; }

/* ---------------------------------------------------------------- */
/* Installed app (PWA). html.is-app is set in base.html's <head> when  */
/* Colony runs from the home screen. On a phone-sized screen it gets  */
/* an app layout: compact header under the status bar, bottom tab     */
/* bar, the menu as a bottom sheet, no website footer. An installed   */
/* app on a big screen keeps the normal desktop layout.               */
/* ---------------------------------------------------------------- */

.tabbar { display: none; }
.sidebar-app-only { display: none; }

@media (max-width: 900px) {
  html.is-app { overflow-y: auto; -webkit-tap-highlight-color: transparent; }
  html.is-app body {
    overscroll-behavior-y: none;
    padding-bottom: calc(66px + env(safe-area-inset-bottom));
  }
  html.is-app a, html.is-app button, html.is-app .btn { touch-action: manipulation; }
  html.is-app .nav, html.is-app .tabbar, html.is-app .sidebar, html.is-app button, html.is-app .btn, html.is-app .tab {
    -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  }

  /* Header: sits under the status bar / notch, frosted. */
  html.is-app .nav {
    padding: calc(env(safe-area-inset-top) + 8px) calc(env(safe-area-inset-right) + 14px) 8px calc(env(safe-area-inset-left) + 14px);
    background: rgba(10, 14, 20, 0.86);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    backdrop-filter: saturate(160%) blur(16px);
    gap: 10px;
  }
  html.is-app .brand-logo-full { height: 27px; }
  html.is-app .sidebar-toggle, html.is-app .nav-logout, html.is-app .nav .btn-connect { display: none; }
  html.is-app .nav a { margin-left: 12px; }
  html.is-app .nav-pubkey i { font-size: 21px; margin: 0; }

  /* Content */
  html.is-app .wrap {
    padding: 14px calc(env(safe-area-inset-right) + 12px) 20px calc(env(safe-area-inset-left) + 12px);
  }
  html.is-app .card { padding: 20px 16px; border-radius: 16px; margin-bottom: 12px; }
  html.is-app h1 { font-size: 24px; }
  html.is-app body.has-sidebar .site-footer { display: none; }
  html.is-app .site-footer .footer-langs { display: none; }

  /* Bottom tab bar */
  html.is-app .tabbar {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 970;
    padding: 6px calc(env(safe-area-inset-right) + 4px) calc(env(safe-area-inset-bottom) + 6px) calc(env(safe-area-inset-left) + 4px);
    background: rgba(14, 18, 25, 0.9);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    backdrop-filter: saturate(160%) blur(18px);
    border-top: 1px solid var(--border);
  }
  .tab {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px;
    min-width: 0; margin: 0; padding: 5px 2px 2px; border: 0; border-radius: 10px;
    background: none; color: var(--muted); font-family: inherit; font-size: 10.5px; font-weight: 500; line-height: 1.2;
    text-decoration: none; cursor: pointer; transition: color 0.15s, transform 0.1s;
  }
  .tab:hover { background: none; color: var(--text); }
  .tab:active { transform: scale(0.92); }
  .tab i { font-size: 21px; line-height: 1; margin: 0; }
  .tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tab.active { color: var(--accent); }
  .tab-badge {
    position: absolute; top: 0; left: calc(50% + 6px);
    min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    background: #f0c674; color: #1d1605; font-size: 10px; font-weight: 700; line-height: 1; font-style: normal;
  }

  /* "More": the sidebar becomes a bottom sheet above the tab bar. */
  html.is-app .sidebar {
    top: auto; bottom: 0; left: 0; right: 0; width: auto; max-height: 84vh;
    border-right: 0; border-top: 1px solid var(--border); border-radius: 20px 20px 0 0;
    padding: 8px calc(env(safe-area-inset-right) + 12px) calc(env(safe-area-inset-bottom) + 76px) calc(env(safe-area-inset-left) + 12px);
    transform: translateY(105%);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 965;
    gap: 2px;
  }
  html.is-app .sidebar::before {
    content: ""; flex: none; width: 38px; height: 5px; border-radius: 3px;
    background: #2e3847; margin: 2px auto 10px;
  }
  html.is-app .sidebar.open { transform: translateY(0); }
  html.is-app .sidebar a { padding: 12px 14px; font-size: 15.5px; }
  html.is-app .sidebar a i { font-size: 18px; width: 22px; text-align: center; }
  html.is-app .sidebar-overlay { top: 0; z-index: 960; }
  html.is-app .sidebar-overlay.open { animation: colony-fade 0.25s ease; }
  html.is-app .sidebar-app-only { display: block; }
  html.is-app .sidebar-bottom { margin-top: 8px; }

  /* Dialogs slide up from the bottom like native sheets. */
  html.is-app .modal-overlay { align-items: flex-end; padding: 0; }
  html.is-app .modal-card {
    max-width: none; border-radius: 20px 20px 0 0; border-bottom: 0;
    padding: 22px 18px calc(env(safe-area-inset-bottom) + 20px);
    animation: colony-sheet-up 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
    max-height: 90vh; overflow-y: auto;
  }
}
@keyframes colony-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes colony-sheet-up { from { transform: translateY(40px); opacity: 0.4; } to { transform: none; opacity: 1; } }

/* ---------------------------------------------------------------- */
/* "Get the app" - suggestion banner on phones (website only) and the */
/* App / Notifications cards on /account.                            */
/* ---------------------------------------------------------------- */

.install-banner {
  position: fixed; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 12px); z-index: 990;
  display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px;
  background: #161c26; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
  animation: colony-sheet-up 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.install-banner img { width: 42px; height: 42px; border-radius: 11px; flex: none; }
.install-banner-text { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.35; }
.install-banner-text strong { display: block; font-size: 14.5px; }
.install-banner-text span { color: var(--muted); }
.install-banner .btn, .install-banner button { margin: 0; padding: 9px 14px; font-size: 14px; flex: none; }
.install-banner .install-close { background: none; color: var(--muted); padding: 6px; font-size: 18px; }
.install-banner .install-close i { margin: 0; }
html.is-app .install-banner { display: none; }

.ios-steps { list-style: none; padding: 0; margin: 14px 0 4px; display: flex; flex-direction: column; gap: 12px; }
.ios-steps li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; line-height: 1.4; }
.ios-steps .step-icon { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: #1c2430; color: #4da3ff; font-size: 17px; }

.app-card-row { display: flex; align-items: center; gap: 14px; }
.app-card-row img { width: 52px; height: 52px; border-radius: 13px; flex: none; }
.app-card-row p { margin: 0; font-size: 14px; }
.app-card-row .btn, .app-card-row button { margin: 0; flex: none; }
@media (max-width: 560px) {
  .app-card-row { flex-wrap: wrap; }
  .app-card-row .btn, .app-card-row button { width: 100%; text-align: center; }
}

.push-state { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.push-state p { flex: 1 1 220px; margin: 0; font-size: 14px; }
.push-state button { margin: 0; }
.push-on { color: var(--success); font-weight: 600; }
.push-prefs { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--border); }
.push-pref { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--border); margin: 0; cursor: pointer; color: var(--text); }
.push-pref > i { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(20, 241, 149, 0.1); color: var(--accent); font-size: 16px; }
.push-pref-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; }
.push-pref-text small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.push-note { font-size: 12.5px; margin: 12px 0 0; }

/* iOS-style switch */
.switch { position: relative; flex: none; width: 46px; height: 28px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; padding: 0; }
.switch span { position: absolute; inset: 0; border-radius: 14px; background: #2a3341; transition: background 0.2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.push-prefs.is-disabled .push-pref { opacity: 0.55; }

/* Admin AI settings: one group per model (decisions, replies & translations). */
.adm-tier { border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px 18px; margin: 18px 0 0; min-width: 0; }
.adm-tier legend { padding: 0 8px; font-weight: 600; font-size: 14.5px; }
.adm-tier legend i { color: var(--accent); margin-right: 6px; }
.adm-tier .adm-help { margin-top: 2px; }
.adm-usage-table { margin-top: 14px; }

/* Invite friends (/referrals) */
.ref-kinds { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13.5px; margin: 10px 0 0; }
.ref-kind { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border: 1px solid var(--border); border-radius: 20px; color: var(--text); }
.ref-kind i { color: var(--accent); }
.ref-link-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ref-link-row input { flex: 1 1 260px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
.ref-link-row button { margin: 0; }
.ref-note { font-size: 13px; margin: 10px 0 0; }
.ref-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.ref-stat { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255, 255, 255, 0.015); min-width: 0; }
.ref-stat strong { font-size: 17px; overflow-wrap: anywhere; }
.ref-stat span { color: var(--muted); font-size: 12.5px; }
.ref-stat-main { border-color: rgba(20, 241, 149, 0.4); }
.ref-stat-main strong { color: var(--accent); }
.ref-withdraw { margin-top: 16px; }
.ref-withdraw p { margin: 0 0 10px; font-size: 14px; }
.ref-withdraw button { margin-top: 0; }
.ref-progress { height: 8px; border-radius: 4px; background: #1c2430; overflow: hidden; margin-bottom: 8px; }
.ref-progress span { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.ref-plus { color: var(--success); }
.ref-friends { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 8px; }
.ref-friends li { font-size: 14.5px; }
.ref-friends i { color: var(--accent); margin-right: 4px; }
.ref-fine { font-size: 12.5px; margin: 4px 4px 24px; }
.tx-icon-payout-paid { --tc: var(--success); }
.tx-icon-payout-rejected { --tc: #ff8a84; }
.tx-icon-payout-requested { --tc: #f0c674; }
.referral-note { font-size: 13px; display: flex; gap: 6px; align-items: flex-start; }
.referral-note i { color: var(--accent); margin-top: 2px; }
@media (max-width: 640px) { .ref-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Admin: referrals */
.adm-payout { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.adm-payout-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.adm-payout-top .adm-field { margin-top: 8px; }
.adm-payout-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.adm-inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.adm-inline-form input[type="text"] { flex: 1 1 280px; width: auto; }
.adm-inline-form button { margin: 0; }
.adm-check { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--text); font-size: 14px; cursor: pointer; }
.adm-check input { width: auto; margin: 0; }
.adm-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 6px; }
.adm-form > .adm-check { margin-bottom: 12px; }

/* Supporter of the Week */
.supporter-picks { margin-top: 16px; }
.supporter-picks h3 { font-size: 15px; margin: 0 0 10px; }
.supporter-picks h3 i, .supporter-side .section-kicker i { color: #ff7aa8; }
.supporter-picks ul, .supporter-mini { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.supporter-picks li, .supporter-mini li { padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255, 255, 255, 0.015); }
.sp-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 14px; }
.sp-head a { color: var(--text); font-weight: 600; text-decoration: none; }
.supporter-picks q, .supporter-mini q { display: block; margin-top: 6px; color: #c3c8d0; font-size: 13.5px; line-height: 1.5; }
.sp-amount { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 20px; background: rgba(255, 255, 255, 0.05); color: var(--muted); }
.sp-sent { color: var(--success); background: rgba(62, 207, 142, 0.1); }
.sp-waiting { color: #f0c674; background: rgba(240, 198, 116, 0.12); }
.sp-not_sent { color: var(--muted); text-decoration: line-through; }
.tx-icon-reward { --tc: #ff7aa8; }

/* Home page: Supporter of the Week */
.supporter-showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; align-items: start; margin: 56px 0 72px; }
.ss-copy h2 { font-size: clamp(26px, 4vw, 34px); line-height: 1.15; margin: 0 0 14px; }
.ss-copy > p { color: #c3c8d0; line-height: 1.6; margin: 0 0 16px; }
.ss-points { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 10px; }
.ss-points li { display: flex; gap: 10px; align-items: flex-start; color: #c3c8d0; font-size: 14.5px; line-height: 1.5; }
.ss-points i { color: #ff7aa8; font-size: 16px; margin-top: 2px; }
.ss-copy .btn { margin-top: 0; }
.ss-cards { padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); }
.ss-cards .ballots-head i.bi-heart-fill { color: #ff7aa8; }
.ss-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ss-list li { padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255, 255, 255, 0.015); }
.ss-list li.is-example { border-style: dashed; }
.ss-list q { display: block; margin-top: 8px; color: #c3c8d0; font-size: 14px; line-height: 1.55; }
@media (max-width: 860px) { .supporter-showcase { grid-template-columns: 1fr; margin: 40px 0 56px; } }
.adm-mod-text { white-space: pre-wrap; padding: 12px 14px; border-radius: 10px; background: #0d1119; border: 1px solid var(--border); font-size: 14px; line-height: 1.55; margin-top: 8px; overflow-wrap: anywhere; }
.adm-mini-btn.is-paused { color: #f0c674; border-color: rgba(240, 198, 116, 0.5); }

/* Reporting and pausing */
.report-btn { margin: 0 0 0 auto; background: none; border: 0; padding: 4px 8px; color: var(--muted); font-size: 14px; cursor: pointer; border-radius: 8px; }
.report-btn:hover { background: rgba(255, 255, 255, 0.05); color: #ff8a84; }
.report-btn i { margin: 0; }
.report-reasons { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 4px; }
.report-reason { display: flex; align-items: flex-start; gap: 10px; margin: 0; color: var(--text); font-size: 14px; cursor: pointer; }
.report-reason input { width: auto; margin-top: 3px; }
.badge-paused { background: rgba(240, 198, 116, 0.12); color: #f0c674; margin-left: 6px; }

/* Conversations under a question: follow-ups indented, then "continue". */
.comment-followups:empty { display: none; }
.comment-followups { margin: 10px 0 0 6px; padding-left: 12px; border-left: 2px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.comment-bubble.comment-followup { background: transparent; border: 0; padding: 0; margin: 0; }
.comment-continue:empty { display: none; }
.comment-continue { margin-top: 10px; }
.comment-continue-btn { margin: 0; padding: 6px 12px; font-size: 13.5px; }
.followup-form textarea { margin-top: 0; }
.followup-form .comment-form-row { margin-top: 8px; }
.followup-form button { margin-top: 0; }
.followup-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); border: 1px solid var(--border); border-radius: 20px; padding: 1px 8px; margin-left: 6px; }

/* Admin > Analytics (app/templates/admin/analytics.html) */
.an-meters { list-style: none; padding: 0; margin: 0; }
.an-meters li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px; row-gap: 5px; padding: 7px 0; font-size: 14px; }
.an-meters li.an-empty { display: block; }
.an-meters li > strong { font-variant-numeric: tabular-nums; font-size: 13px; }
.an-meter-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-meter-name a { color: var(--text); }
.an-meter-name a:hover { color: var(--accent); }
.an-meter { grid-column: 1 / -1; display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.an-meter span { display: block; height: 100%; border-radius: 3px; background: var(--accent); opacity: 0.85; }
.an-live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(20, 241, 149, 0.6); animation: an-pulse 2s infinite; vertical-align: middle; }
@keyframes an-pulse { 0% { box-shadow: 0 0 0 0 rgba(20, 241, 149, 0.55); } 70% { box-shadow: 0 0 0 7px rgba(20, 241, 149, 0); } 100% { box-shadow: 0 0 0 0 rgba(20, 241, 149, 0); } }
@media (prefers-reduced-motion: reduce) { .an-live-dot { animation: none; } }
.an-up { color: var(--accent); font-weight: 600; }
.an-down { color: #f06e8a; font-weight: 600; }
.an-online li > span:nth-child(2) { min-width: 0; overflow-wrap: anywhere; }
.an-online .an-ago { font-size: 12px; white-space: nowrap; }
