/* 256.app — mobile-first dark theme (friendly binary, RGB + CMY accents). Base = narrow viewports; min-width layers desktop. */
@import url("https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&family=Lexend:wght@400;500;600;700&display=swap");
@import url("https://cdn.jsdelivr.net/npm/flag-icons@7.3.2/css/flag-icons.min.css");

:root {
  color-scheme: dark;
  /* Minimum touch target (WCAG / platform HIG) */
  --tap-min: 2.75rem;
  /* Deep black base (matches logo) */
  --bg: #000000;
  --bg-elevated: #0d0d12;
  --surface: #12121a;
  --surface-2: #181822;
  --border: rgba(255, 255, 255, 0.12);
  --text: #f6f6fa;
  --muted: #c4c4d4;

  /* Six accent colours (updated site-wide palette) */
  --c-red: #a3232b;      /* arterial red */
  --c-green: #1f6b3a;    /* forest green */
  --c-blue: #4169e1;     /* royal blue */
  --c-cyan: #4fc3f7;     /* sky blue */
  --c-magenta: #7b1e3d;  /* burgundy */
  --c-yellow: #f4c430;   /* sun-burst yellow */

  /* Global UI: one hover accent for default actions & links; yellow for CTAs (.btn-cta) */
  --ui-action-hover: var(--c-blue);
  --ui-cta-text: var(--c-yellow);
  --ui-cta-text-hover: color-mix(in srgb, var(--c-yellow) 82%, #ffffff);

  --focus: rgba(24, 255, 255, 0.2);
  --danger: #ff8a80;
  --success: #b9f6ca;

  --radius-lg: 1.35rem;
  --radius-md: 0.9rem;
  --radius-pill: 624.9375rem;

  --font-ui: "Atkinson Hyperlegible", "Lexend", Verdana, Geneva, ui-sans-serif, sans-serif;
  /* Emoji/color-font fallback after UI stack (composer + public post bodies). */
  --font-emoji: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", emoji;
  /* Monospace only for decorative “data” bits — keep short */
  --font-mono: ui-monospace, "Cascadia Code", "Consolas", monospace;

  --spectrum: conic-gradient(
    from -90deg,
    var(--c-red) 0deg,
    var(--c-yellow) 60deg,
    var(--c-green) 120deg,
    var(--c-cyan) 180deg,
    var(--c-blue) 240deg,
    var(--c-magenta) 300deg,
    var(--c-red) 360deg
  );

  --btn-gradient: linear-gradient(
    145deg,
    color-mix(in srgb, var(--c-blue) 38%, #12121c) 0%,
    color-mix(in srgb, var(--c-magenta) 32%, #12121c) 42%,
    color-mix(in srgb, var(--c-cyan) 34%, #12121c) 100%
  );
  --btn-gradient-hover: linear-gradient(
    145deg,
    color-mix(in srgb, var(--c-blue) 44%, #16161f) 0%,
    color-mix(in srgb, var(--c-magenta) 38%, #16161f) 42%,
    color-mix(in srgb, var(--c-cyan) 40%, #16161f) 100%
  );

  /* Primary UI surface — near-black matte gunmetal with slight diffuse gradient */
  --radius-card: 0.32rem;
  --ui-surface-blur: 2px;
  --ui-surface-saturate: 100%;
  --ui-surface-face: linear-gradient(
    160deg,
    rgba(24, 28, 34, 0.96) 0%,
    rgba(21, 25, 31, 0.97) 52%,
    rgba(18, 22, 28, 0.98) 100%
  );
  --ui-surface-border: rgba(255, 255, 255, 0.05);
  --ui-surface-edge-glow: rgba(210, 220, 236, 0.03);
  --ui-surface-shadow-drop: 0 16px 28px rgba(0, 0, 0, 0.56), 0 0 1px rgba(0, 0, 0, 0.56);
  --ui-surface-shadow-inset: inset 0 1px 0 0 rgba(255, 255, 255, 0.015),
    inset 0 0 12px rgba(255, 255, 255, 0.004);
  /* Logo / spectrum ring: hairline + same-depth drop as cards (no diffuse glow). */
  --ui-chrome-drop: 0 0 0 1px rgba(255, 255, 255, 0.05),
    var(--ui-surface-shadow-drop);
  --ui-surface-top-glint: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.007) 34%,
    rgba(255, 255, 255, 0.018) 50%,
    rgba(255, 255, 255, 0.006) 74%,
    transparent 100%
  );
  --ui-surface-hover-tint: rgba(255, 255, 255, 0.015);

  /* Toolbar smiley: frame pad + SVG — rail width = outer logo + horizontal rail padding only */
  --app-toolbar-logo-svg: 2.5rem;
  --app-toolbar-logo-frame-pad: 0.2rem;
  --app-rail-slot-outer: calc(
    var(--app-toolbar-logo-svg) + 2 * var(--app-toolbar-logo-frame-pad)
  );
  --app-rail-pad-x: 0.5rem;
  --app-rail-width: calc(var(--app-rail-slot-outer) + 2 * var(--app-rail-pad-x));
  --app-rail-slot-inner: var(--app-toolbar-logo-svg);
  /* Signed-in `.app-main` column + guest `.guest-right-panel`: stacked cards cap here, shrink with viewport */
  --app-right-panel-card-max: 680px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  line-height: 1.55;
  letter-spacing: 0.02em;
  word-spacing: 0.04em;
  background-color: var(--bg);
  background-image: radial-gradient(ellipse 100% 80% at 50% -30%, #1e1432 0%, var(--bg) 45%);
  color: var(--text);
  position: relative;
  -webkit-tap-highlight-color: rgba(24, 255, 255, 0.12);
}

/* Scrollbars stay hidden; wheel, trackpad, touch, and keyboard still scroll */
html,
body,
.app-rail-slots,
.app-main,
.guest-split,
.guest-right-panel {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.app-rail-slots::-webkit-scrollbar,
.app-main::-webkit-scrollbar,
.guest-split::-webkit-scrollbar,
.guest-right-panel::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* Legacy canvas hook — keep hidden if an old cached script still injects it */
#binary-bg-canvas {
  display: none !important;
  pointer-events: none;
}

.layout {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Safe areas: notched phones, home indicator */
  padding: max(1rem, env(safe-area-inset-top, 0px))
    max(1rem, env(safe-area-inset-right, 0px))
    max(1.25rem, env(safe-area-inset-bottom, 0px))
    max(1rem, env(safe-area-inset-left, 0px));
  gap: 1.35rem;
}

@media (min-width: 900px) {
  .layout {
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 3rem;
    max-width: 56rem;
    margin: 0 auto;
    padding: max(1.5rem, env(safe-area-inset-top, 0px))
      max(1.5rem, env(safe-area-inset-right, 0px))
      max(1.5rem, env(safe-area-inset-bottom, 0px))
      max(1.5rem, env(safe-area-inset-left, 0px));
  }
}

.brand-panel {
  flex: 0 0 auto;
  width: 100%;
  max-width: 22rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

@media (min-width: 900px) {
  .brand-panel {
    flex: 1;
  }
}

.brand-panel-logo-link {
  display: inline-block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-pill);
}

.brand-panel-logo-link:focus {
  outline: none;
}

.brand-panel-logo-link:focus-visible {
  box-shadow: 0 0 0 3px var(--focus);
  border-radius: var(--radius-pill);
}

.brand-frame {
  padding: 0.4rem;
  border-radius: var(--radius-pill);
  background: var(--spectrum);
  box-shadow: var(--ui-chrome-drop), var(--ui-surface-shadow-inset);
}

/* Async card loader: spectrum ring fixed; inner face rotates (see `card_loader` in snippets.rs). */
.card-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.85rem 0 0.35rem;
}

.brand-frame--loader {
  padding: var(--app-toolbar-logo-frame-pad);
  border-radius: var(--radius-pill);
  line-height: 0;
}

.brand-loader-svg {
  display: block;
  width: var(--app-toolbar-logo-svg);
  height: var(--app-toolbar-logo-svg);
  max-width: none;
  max-height: none;
  border-radius: var(--radius-pill);
  background: var(--bg);
}

.brand-loader-face {
  fill: var(--bg);
}

.brand-loader-svg .brand-loader-eye {
  stroke: var(--surface-2);
  stroke-width: 2;
}

.brand-loader-mouth {
  fill: none;
  stroke: var(--c-yellow);
  stroke-width: 8;
  stroke-linecap: round;
}

.brand-loader-svg .brand-loader-rotor {
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: brand-loader-rotor-spin 1.15s linear infinite;
}

@keyframes brand-loader-rotor-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-loader-svg .brand-loader-rotor {
    animation: none;
  }
}

.brand-hero {
  display: block;
  width: 100%;
  max-width: min(13.5rem, 72vw);
  height: auto;
  border-radius: var(--radius-pill);
  background: var(--bg);
}

/* Programmatic smiley (replaces raster hero); ring matches six-accent spectrum */
.brand-hero-svg {
  aspect-ratio: 1;
  max-height: min(13.5rem, 72vw);
}

@media (min-width: 900px) {
  .brand-hero,
  .brand-hero-svg {
    max-width: 16rem;
    max-height: 16rem;
  }
}

.brand-hero-svg .smiley-face {
  fill: var(--bg);
  stroke: url("#brand-smiley-spectrum");
  stroke-width: 10;
}

.brand-hero-svg .eye {
  stroke: var(--surface-2);
  stroke-width: 2;
}

/* Blink / wink driven by static/js/smiley-blink.js (human-ish timing). */
.brand-hero-svg .eye-left,
.brand-hero-svg .eye-right {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.07s ease-out;
}

.brand-hero-svg .eye-left.is-closed,
.brand-hero-svg .eye-right.is-closed {
  transform: scaleY(0.11);
}

/* Robot eyes are glyphs (`0`→`1`) and should not squash like circle eyes. */
.brand-hero-svg--robot .eye-left.is-closed,
.brand-hero-svg--robot .eye-right.is-closed {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .brand-hero-svg .eye-left,
  .brand-hero-svg .eye-right {
    transition: none;
  }
}

.brand-hero-svg .mouth {
  fill: none;
  stroke: var(--c-yellow);
  stroke-width: 8;
  stroke-linecap: round;
}

/* Robot face: square head, prominent antenna, 0-eyes, sine-wave mouth. */
.brand-hero-svg--robot .smiley-face {
  stroke: url("#brand-robot-spectrum");
}

.brand-hero-svg--toolbar.brand-hero-svg--robot .smiley-face {
  stroke: url("#brand-robot-spectrum-toolbar");
}

.brand-hero-svg--robot .robot-head {
  fill: var(--bg);
  stroke-width: 10;
}

.brand-hero-svg--robot .robot-eye {
  fill: var(--c-cyan);
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: middle;
}

.brand-hero-svg--robot .eye-right.robot-eye {
  fill: var(--c-magenta);
}

.brand-hero-svg--robot .robot-antenna-stem {
  stroke: var(--c-cyan);
  stroke-width: 8;
  stroke-linecap: round;
}

.brand-hero-svg--robot .robot-antenna-tip {
  fill: var(--c-yellow);
  stroke: var(--c-red);
  stroke-width: 3;
}

.brand-hero-svg--robot .robot-mouth {
  stroke: var(--c-yellow);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-title {
  margin: 1rem 0 0.4rem;
  font-size: clamp(1.35rem, 4.5vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.35;
}

@media (min-width: 900px) {
  .brand-title {
    margin: 1.35rem 0 0.5rem;
  }
}

.brand-title .mono {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--c-yellow);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.48);
}

.brand-tagline {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--muted);
  max-width: 20rem;
  line-height: 1.6;
}

/**
 * Primary UI surface — one monolith-glass treatment for cards, app nav chrome, and the public profile brand column.
 * Cards use `.card-accent` as the first child for the top glint; chrome panels use `::after` (cards do not).
 */
.card,
.app-topbar,
.app-rail,
.layout .brand-panel {
  position: relative;
  isolation: isolate;
  background: var(--ui-surface-face);
  border: 1px solid var(--ui-surface-border);
  box-shadow: var(--ui-surface-shadow-drop), var(--ui-surface-shadow-inset);
  backdrop-filter: blur(var(--ui-surface-blur)) saturate(var(--ui-surface-saturate));
  -webkit-backdrop-filter: blur(var(--ui-surface-blur)) saturate(var(--ui-surface-saturate));
}

/* App nav chrome: no side borders (top bar + connection rail). */
.app-topbar,
.app-rail {
  border-left: none;
  border-right: none;
}

.card::before,
.layout .brand-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.22) 0%,
    var(--ui-surface-edge-glow) 35%,
    rgba(120, 130, 160, 0.06) 72%,
    rgba(60, 65, 80, 0.03) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.app-topbar::after,
.app-rail::after,
.layout .brand-panel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ui-surface-top-glint);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.32);
  pointer-events: none;
  z-index: 1;
}

.app-topbar::after {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--c-yellow) 92%, #ffffff) 0%,
    color-mix(in srgb, var(--c-yellow) 72%, #ffffff) 50%,
    color-mix(in srgb, var(--c-yellow) 90%, #ffffff) 100%
  );
}

.app-rail::after {
  content: none;
  display: none;
}

.card > *,
.app-topbar > *,
.app-rail > *,
.layout .brand-panel > * {
  position: relative;
  z-index: 2;
}

/* Card slab: rounded, padded; same material as chrome */
.card {
  width: 100%;
  max-width: 22rem;
  border-radius: var(--radius-card);
  padding: 0 1.25rem 1.5rem;
  padding-top: 0;
  overflow: hidden;
  --card-accent-bg: var(--ui-surface-top-glint);
}

/* Login / home profile fragments & feed app-cards: cap width in `.app-main` / guest right column (shrink with viewport, rail-safe) */
.card.auth-card,
.card.app-card {
  max-width: 100%;
  width: 100%;
  min-width: 0;
}

.layout .brand-panel {
  border-radius: var(--radius-card);
  padding: 1.15rem 1rem 1.35rem;
  box-sizing: border-box;
  overflow: hidden;
}

@media (min-width: 600px) {
  .card {
    padding: 0 2rem 2rem;
    padding-top: 0;
  }
}

.card-accent {
  height: 2px;
  margin: 0 -1.25rem 1.15rem;
  width: calc(100% + 2.5rem);
  background: var(--card-accent-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.32);
}

@media (min-width: 600px) {
  .card-accent {
    margin: 0 -2rem 1.35rem;
    width: calc(100% + 4rem);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .card,
  .app-topbar,
  .app-rail,
  .layout .brand-panel {
    background: linear-gradient(165deg, #14151c 0%, #07080c 55%, #030305 100%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Fields sit slightly deeper than the glass face */
.card input {
  background: rgba(3, 4, 8, 0.58);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Vertical stack of async / feed cards */
.card-stack {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.2rem, 4vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.35;
  color: var(--c-yellow);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.42);
  overflow-wrap: anywhere;
  word-break: break-word;
}

h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.05rem, 3.4vw, 1.18rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: var(--c-yellow);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.42);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sub {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.mono {
  font-family: var(--font-mono);
}

label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

input {
  width: 100%;
  min-height: var(--tap-min);
  padding: 0.65rem 0.85rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  color: var(--text);
  /* ≥16px avoids iOS focus zoom; min-height still enforces tap target */
  font-size: max(1rem, 16px);
  font-family: var(--font-ui);
  line-height: 1.45;
  letter-spacing: 0.02em;
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
}

select {
  width: 100%;
  min-height: var(--tap-min);
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  color: var(--text);
  font-size: max(1rem, 16px);
  font-family: var(--font-ui);
  line-height: 1.45;
}

input:focus {
  outline: none;
  border-color: var(--ui-action-hover);
  box-shadow: 0 0 0 3px var(--focus);
}

/*
 * Text actions (global default)
 * — .card button[type="submit"], .auth-choice-btn, .auth-text-btn: full width, no chrome.
 * — Hover/focus: --ui-action-hover. Press: btn-text-bounce.
 * Primary action on a card: add .btn-cta (yellow + depth shadow) — same standard as “Join in”
 * (all main `button[type="submit"]` on auth / resend / login cards use .btn-cta).
 */
@keyframes btn-text-bounce {
  0% {
    transform: scale(1);
  }
  28% {
    transform: scale(0.94);
  }
  52% {
    transform: scale(1.035);
  }
  100% {
    transform: scale(1);
  }
}

.card button[type="submit"],
button.auth-choice-btn {
  width: 100%;
  display: block;
  box-sizing: border-box;
  margin: 0;
  min-height: var(--tap-min);
  padding: 0.65rem 0.5rem;
  border: none;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  color: var(--text);
  font-size: max(1rem, 16px);
  font-weight: 600;
  font-family: var(--font-ui);
  letter-spacing: 0.03em;
  text-align: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: color 0.15s ease;
}

.card button[type="submit"]:hover,
button.auth-choice-btn:hover {
  color: var(--ui-action-hover);
}

.card button[type="submit"]:active,
button.auth-choice-btn:active {
  animation: btn-text-bounce 0.4s ease-out;
}

.card button[type="submit"]:disabled,
button.auth-choice-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  animation: none;
  transform: none;
}

.card button[type="submit"]:disabled:hover,
button.auth-choice-btn:disabled:hover {
  color: var(--text);
}

.card button[type="submit"]:focus-visible,
button.auth-choice-btn:focus-visible {
  outline: none;
  color: var(--ui-action-hover);
}

.card button[type="submit"],
.card .auth-choice-buttons {
  margin-top: 0.35rem;
}

#login-form button[type="submit"].btn-cta + .auth-text-btn {
  margin-top: 1rem;
}

/* CTA: yellow text + subtle drop shadow (no diffuse glow) */
.card button[type="submit"].btn-cta,
button.auth-choice-btn.btn-cta {
  color: var(--ui-cta-text);
  text-shadow: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid color-mix(in srgb, var(--c-yellow) 82%, rgba(255, 255, 255, 0.18));
  border-radius: var(--radius-md);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.42);
}

.card button[type="submit"].btn-cta:hover,
button.auth-choice-btn.btn-cta:hover {
  color: var(--ui-cta-text-hover);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.48);
}

.card button[type="submit"].btn-cta:focus-visible,
button.auth-choice-btn.btn-cta:focus-visible {
  color: var(--ui-cta-text-hover);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.48), 0 0 0 3px var(--focus);
}

.card button[type="submit"].btn-cta:disabled,
button.auth-choice-btn.btn-cta:disabled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.card button[type="submit"].btn-cta:disabled:hover,
button.auth-choice-btn.btn-cta:disabled:hover {
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  .card button[type="submit"]:active,
  button.auth-choice-btn:active {
    animation: none;
  }

  .card button[type="submit"].btn-cta:active:not(:disabled),
  button.auth-choice-btn.btn-cta:active:not(:disabled) {
    color: var(--ui-cta-text-hover);
  }

  .card button[type="submit"]:active:not(:disabled):not(.btn-cta),
  button.auth-choice-btn:active:not(:disabled):not(.btn-cta) {
    color: var(--ui-action-hover);
  }
}

.err {
  color: var(--c-red);
  font-size: 0.95rem;
  margin-top: 1rem;
  min-height: 1.35rem;
  line-height: 1.5;
}

.success {
  color: var(--success);
  font-size: 0.95rem;
  margin: 0 0 1rem;
  line-height: 1.55;
}

.back {
  margin-top: 1.35rem;
  text-align: center;
}

.back a {
  display: inline-block;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.55rem 0.45rem;
  margin: 0 0.05rem;
  min-height: var(--tap-min);
  line-height: 1.35;
  box-sizing: border-box;
}

.back a:hover {
  color: var(--ui-action-hover);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

details.resend {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}

details.resend summary {
  cursor: pointer;
  list-style: none;
  width: 100%;
  box-sizing: border-box;
  color: var(--text);
  font-size: max(1rem, 16px);
  font-weight: 600;
  min-height: var(--tap-min);
  padding: 0.65rem 0.5rem;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: none;
  background: transparent;
  transition: color 0.15s ease;
}

details.resend summary::-webkit-details-marker {
  display: none;
}

details.resend summary:hover {
  color: var(--ui-action-hover);
}

details.resend summary:active {
  animation: btn-text-bounce 0.4s ease-out;
}

details.resend summary:focus-visible {
  outline: none;
  color: var(--ui-action-hover);
}

@media (prefers-reduced-motion: reduce) {
  details.resend summary:active {
    animation: none;
    color: var(--ui-action-hover);
  }
}

.resend-form {
  margin-top: 0.75rem;
}

.hint {
  color: var(--c-magenta);
  font-size: 0.88rem;
  margin-top: -0.45rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.hint.hint--error {
  color: var(--c-red);
}

@keyframes btn-shake-no {
  0% { transform: translateX(0); }
  18% { transform: translateX(-0.45rem); }
  36% { transform: translateX(0.45rem); }
  54% { transform: translateX(-0.3rem); }
  72% { transform: translateX(0.3rem); }
  100% { transform: translateX(0); }
}

.card button[type="submit"].btn-shake-no,
button.auth-choice-btn.btn-shake-no,
button.auth-text-btn.btn-shake-no {
  animation: btn-shake-no 0.36s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
  .card button[type="submit"].btn-shake-no,
  button.auth-choice-btn.btn-shake-no,
  button.auth-text-btn.btn-shake-no {
    animation: none;
  }
}

/* Public profile: section labels + long ref keys on small screens.
   Color is intentionally inherited from the global `h2` rule (brand
   sun-burst yellow) so section labels stay consistent with all other h2s. */
.card .profile-block h2 {
  font-size: 0.92rem;
  font-weight: 600;
  margin: 1rem 0 0.35rem;
  letter-spacing: 0.02em;
}

.card .profile-block h2:first-child {
  margin-top: 0;
}

.profile-value,
.policy-footnote {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.card .sub a {
  display: inline-block;
  padding: 0.55rem 0.35rem;
  min-height: var(--tap-min);
  line-height: 1.35;
  box-sizing: border-box;
  color: var(--ui-action-hover);
  font-weight: 600;
}

.card .sub a:hover {
  color: color-mix(in srgb, var(--ui-action-hover) 80%, #ffffff);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Public entity profile: async-loaded card */
.entity-public-card .entity-card-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0 1.25rem;
  min-height: 5.5rem;
}

.entity-public-card .entity-card-loading[hidden] {
  display: none !important;
}

.entity-card-skeleton {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.entity-card-skeleton-bar {
  height: 0.85rem;
  border-radius: 0.2rem;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.04) 100%
  );
  background-size: 200% 100%;
  animation: entity-card-skeleton-shimmer 1.15s ease-in-out infinite;
}

.entity-card-skeleton-bar--lg {
  width: 72%;
  height: 1.35rem;
}

.entity-card-skeleton-bar--sm {
  width: 55%;
}

.entity-card-skeleton-bar--md {
  width: 88%;
}

@keyframes entity-card-skeleton-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .entity-card-skeleton-bar {
    animation: none;
    background: rgba(255, 255, 255, 0.06);
  }
}

.entity-card-root[hidden] {
  display: none !important;
}

.entity-public-avatar-wrap {
  display: flex;
  justify-content: center;
  margin: 0.2rem 0 0.75rem;
}

.entity-public-avatar-frame {
  padding: var(--app-toolbar-logo-frame-pad);
  border-radius: var(--radius-pill);
}

.entity-public-avatar-img {
  display: block;
  width: 5rem;
  height: 5rem;
  border-radius: var(--radius-pill);
  object-fit: cover;
  background: var(--bg);
}

.entity-public-trading-name {
  margin: 0.15rem 0 0.35rem;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-align: center;
}

.entity-public-about {
  white-space: pre-wrap;
}

.entity-card-error {
  color: var(--c-red);
  font-size: 0.95rem;
  margin: 0.75rem 0 0;
  line-height: 1.5;
}

/* --- App shell: compact top bar + left rail (upside-down L with logo in the corner) --- */
.app-shell-body {
  margin: 0;
}

/* Logged-in home: one viewport tall; rail + main scroll inside, not the page */
.app-shell-body--viewport-lock {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: max(0.35rem, env(safe-area-inset-top, 0px))
    max(0.35rem, env(safe-area-inset-right, 0px))
    max(0.35rem, env(safe-area-inset-bottom, 0px))
    max(0.35rem, env(safe-area-inset-left, 0px));
}

.app-shell-body--viewport-lock .app-shell {
  flex: 1 1 0;
  min-height: 0;
  max-height: 100%;
}

.app-topbar {
  display: grid;
  grid-template-columns: var(--app-rail-width) minmax(0, 1fr);
  align-items: stretch;
  flex-shrink: 0;
  border-radius: 0;
}

.app-topbar-logo-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(var(--tap-min) + 0.35rem);
  padding: 0.25rem var(--app-rail-pad-x);
  box-sizing: border-box;
}

.app-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: var(--tap-min);
  min-height: var(--tap-min);
  border-radius: var(--radius-md);
  color: inherit;
  text-decoration: none;
  box-sizing: border-box;
}

/* Narrow rail: hit target follows column (still ~≥2.9rem + padding), not full --tap-min square */
.app-shell-body--viewport-lock .app-logo-link {
  min-width: 0;
  min-height: 0;
  width: 100%;
  max-width: var(--app-rail-slot-outer);
  padding: 0.12rem;
}

.app-logo-link:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--focus);
}

.app-logo-link:focus:not(:focus-visible) {
  box-shadow: none;
}

.app-logo-link:focus-visible {
  box-shadow: 0 0 0 3px var(--focus);
}

.brand-frame--toolbar {
  padding: var(--app-toolbar-logo-frame-pad);
  border-radius: var(--radius-pill);
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.brand-hero-svg--toolbar {
  display: block;
  width: var(--app-toolbar-logo-svg);
  height: var(--app-toolbar-logo-svg);
  max-width: none;
  max-height: none;
  border-radius: var(--radius-pill);
  background: var(--bg);
}

.brand-hero-svg--toolbar .smiley-face {
  stroke: url("#brand-smiley-spectrum-toolbar");
}

.app-topbar-rest {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  padding: 0.5rem 0.75rem;
  min-height: calc(var(--tap-min) + 0.35rem);
  min-width: 0;
}

.app-topbar-rest > :first-child {
  margin-right: auto;
  min-width: 0;
}

.app-topbar-headline {
  margin: 0;
  flex: 1 1 auto;
  font-size: clamp(0.95rem, 3.2vw, 1.1rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.04em;
  color: var(--text);
  min-width: 0;
}

/* Home feed: site tagline after " - " on tablet/desktop; signed-in @handle on phones */
.app-topbar-home-tagline {
  display: none;
}

.app-topbar-home-handle {
  display: inline;
}

@media (min-width: 720px) {
  .app-topbar-home-tagline {
    display: inline;
  }

  .app-topbar-home-handle {
    display: none;
  }
}

.app-topbar-logout-form {
  margin: 0;
  flex: 0 0 auto;
}

.app-topbar-juror-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: var(--tap-min);
  padding: 0.2rem 0.65rem;
  margin-right: 0.15rem;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--c-green) 55%, transparent);
  background: color-mix(in srgb, var(--c-green) 14%, var(--surface-elevated));
  color: var(--text);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.app-topbar-juror-badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--c-green) 35%, transparent);
  flex-shrink: 0;
}

.app-topbar-ai-tokens {
  margin: 0;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  min-height: var(--tap-min);
  padding: 0.12rem 0.08rem;
  white-space: nowrap;
}

.app-topbar-ai-tokens-count {
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.app-topbar-ai-tokens-mul {
  color: var(--muted);
  font-weight: 700;
}

.app-topbar-ai-tokens-face .brand-frame--toolbar {
  /* Match robo-face height to the token text line. */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.1em;
  border-radius: var(--radius-pill);
  transform: translateY(0.25em);
}

.app-topbar-ai-tokens-face .brand-hero-svg--toolbar {
  width: 1em;
  height: 1em;
}

/* Keep robot details legible at reduced size so it reads as robo-face, not base smiley. */
.app-topbar-ai-tokens-face .brand-hero-svg--toolbar.brand-hero-svg--robot .robot-visor,
.app-topbar-ai-tokens-face .brand-hero-svg--toolbar.brand-hero-svg--robot .robot-headband,
.app-topbar-ai-tokens-face .brand-hero-svg--toolbar.brand-hero-svg--robot .robot-antenna-stem {
  stroke-opacity: 0.95;
}

.app-topbar-avatar-btn,
.app-topbar-avatar-static {
  margin: 0;
  flex: 0 0 auto;
}

.app-topbar-run-jobs-btn {
  margin: 0;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: 0.5rem 0.55rem;
  border: 1px solid color-mix(in srgb, var(--c-cyan) 62%, rgba(255, 255, 255, 0.2));
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--c-cyan) 12%, transparent);
  color: var(--c-cyan);
  font-size: max(0.82rem, 13px);
  font-weight: 700;
  font-family: var(--font-ui);
  letter-spacing: 0.03em;
  cursor: pointer;
  white-space: nowrap;
}

.app-topbar-run-jobs-btn:hover {
  color: color-mix(in srgb, var(--c-cyan) 78%, #ffffff);
}

.app-topbar-run-jobs-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--focus);
  color: color-mix(in srgb, var(--c-cyan) 78%, #ffffff);
}

.app-topbar-run-jobs-btn:disabled {
  opacity: 0.72;
  cursor: wait;
}

.app-topbar-create-btn {
  margin: 0;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.12rem;
  min-width: var(--tap-min);
  min-height: var(--tap-min);
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
  cursor: pointer;
}

.app-topbar-create-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--focus);
}

.app-topbar-create-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-topbar-create-icon {
  display: block;
  width: var(--app-toolbar-logo-svg);
  height: var(--app-toolbar-logo-svg);
  border-radius: var(--radius-pill);
  background: var(--bg);
}

.app-topbar-create-ring {
  fill: var(--bg);
  stroke: var(--chrome-border);
  stroke-width: 2.5;
}

.app-topbar-create-plus-v,
.app-topbar-create-plus-h {
  fill: url("#app-topbar-create-plus-spectrum");
  stroke: none;
}

.app-topbar-avatar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.12rem;
  min-width: var(--tap-min);
  min-height: var(--tap-min);
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
  cursor: pointer;
}

.app-topbar-avatar-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--focus);
}

.app-topbar-avatar-frame {
  padding: var(--app-toolbar-logo-frame-pad);
  border-radius: var(--radius-pill);
}

.app-topbar-avatar-img {
  display: block;
  width: var(--app-toolbar-logo-svg);
  height: var(--app-toolbar-logo-svg);
  border-radius: var(--radius-pill);
  object-fit: cover;
  background: var(--bg);
}

.app-topbar-logout-btn {
  display: block;
  margin: 0;
  padding: 0.5rem 0.55rem;
  min-height: var(--tap-min);
  box-sizing: border-box;
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--muted);
  font-size: max(0.9rem, 15px);
  font-weight: 600;
  font-family: var(--font-ui);
  letter-spacing: 0.03em;
  cursor: pointer;
  touch-action: manipulation;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.app-topbar-logout-btn:hover {
  color: var(--ui-action-hover);
}

.app-topbar-logout-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--focus);
  color: var(--ui-action-hover);
}

.app-topbar-brand {
  color: var(--c-yellow);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.42);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.app-topbar-sep {
  color: var(--muted);
  font-weight: 600;
}

.app-topbar-context {
  color: var(--text);
  font-weight: 600;
  word-break: break-word;
}

.app-stage {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: var(--app-rail-width) minmax(0, 1fr);
  align-items: stretch;
}

/* Single-column shell without connection rail (onboarding / pre-verified flows). */
.app-stage--face-capture {
  grid-template-columns: minmax(0, 1fr);
}

.face-capture-main {
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.75rem 0.85rem 1.25rem;
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  max-width: min(100%, var(--app-right-panel-card-max));
  margin: 0 auto;
}

.face-capture-topbar-title {
  font-size: clamp(0.95rem, 3.2vw, 1.05rem);
  font-weight: 700;
  color: var(--text);
  min-width: 0;
}

.face-capture-heading {
  font-size: 1.25rem;
  margin: 0 0 0.35rem;
}

.face-capture-video-wrap {
  position: relative;
  margin: 0.75rem 0 0.35rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  max-width: 100%;
}

.face-capture-video {
  display: block;
  width: 100%;
  height: auto;
  min-height: 12rem;
  max-height: min(50vh, 22rem);
  object-fit: cover;
  transform: scaleX(-1);
}

/* Oval guide — not from face-api; centers expected face position (approximate). */
.face-capture-face-guide {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(72%, 15rem);
  aspect-ratio: 3 / 4;
  border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--c-cyan) 55%, rgba(255, 255, 255, 0.9));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  box-sizing: border-box;
}

@media (prefers-reduced-motion: reduce) {
  .face-capture-face-guide {
    border-color: color-mix(in srgb, var(--c-cyan) 40%, rgba(255, 255, 255, 0.75));
  }
}

.face-capture-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
  align-items: stretch;
}

.face-capture-actions[hidden] {
  display: none !important;
}

.face-capture-actions .auth-text-btn.btn-cta {
  min-height: var(--tap-min);
  font-size: max(1rem, 16px);
}

.face-capture-actions .auth-text-btn[hidden] {
  display: none !important;
}

.face-capture-status {
  min-height: 1.5rem;
  margin: 0.35rem 0 0;
}

.face-capture-godmother-card {
  margin-top: 0.9rem;
}

.face-capture-godmother-spacer {
  height: 0.65rem;
}

.auth-text-btn.godmother-option-btn {
  border: 1px solid color-mix(in srgb, var(--c-blue) 40%, var(--border));
  border-radius: var(--radius-md);
  padding: 0.55rem 0.65rem;
  text-align: left;
  display: grid;
  grid-template-columns: var(--app-rail-slot-outer) minmax(0, 1fr);
  align-items: start;
  column-gap: 0.65rem;
  min-height: var(--tap-min);
}

.face-capture-godmother-card #godmother-options.auth-choice-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.face-capture-godmother-card .godmother-option-btn {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  align-items: center;
  column-gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  min-height: var(--tap-min);
}

.face-capture-godmother-card .godmother-option-left {
  width: 3.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.face-capture-godmother-card .godmother-option-title {
  display: block;
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1.2;
  text-align: center;
  color: var(--text);
  width: 100%;
}

.face-capture-godmother-card .godmother-option-label {
  display: block;
  font-weight: 600;
  font-size: 0.82rem;
  line-height: 1.35;
  text-align: left;
  min-width: 0;
  color: var(--text);
}

.face-capture-godmother-card .godmother-option-avatar-frame {
  margin: 0 auto;
}

.face-capture-godmother-card .godmother-option-avatar-img {
  width: 2.25rem;
  height: 2.25rem;
}

.face-capture-godmother-card .godmother-option-copy,
.face-capture-godmother-card .godmother-option-sub {
  display: none;
}

.face-capture-submit-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 0 0.35rem;
}

.face-capture-submit-wait {
  margin: 0;
  text-align: center;
  font-size: max(0.95rem, 15px);
  color: var(--text-muted, var(--text));
}

.face-capture-artist-link {
  font-weight: 700;
  color: var(--c-cyan);
}

.face-capture-submit-loader[hidden] {
  display: none !important;
}

.godmother-option-btn.is-selected {
  border-color: color-mix(in srgb, var(--c-green) 80%, #ffffff);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--c-green) 40%, transparent);
}

.godmother-option-avatar-frame {
  margin: 0 auto;
}

.godmother-option-avatar-img {
  width: var(--app-rail-slot-inner);
  height: var(--app-rail-slot-inner);
}

.godmother-option-left {
  width: var(--app-rail-slot-outer);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.auth-text-btn.godmother-option-btn .godmother-option-copy {
  display: block;
  min-width: 0;
  align-self: center;
}

.godmother-option-title {
  display: block;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  width: 100%;
}

.godmother-option-sub {
  display: block;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.4;
}

.face-capture-mock-banner:not([hidden]) {
  margin-top: 0.35rem;
  padding: 0.5rem 0.55rem;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--c-cyan) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--c-cyan) 35%, transparent);
  font-size: 0.9rem;
  line-height: 1.45;
}

.app-rail {
  /* Same monolith-glass slab as .card / .app-topbar (re-stated so layout tweaks never flatten it) */
  background: var(--ui-surface-face);
  box-shadow: var(--ui-surface-shadow-drop), var(--ui-surface-shadow-inset);
  backdrop-filter: blur(var(--ui-surface-blur)) saturate(var(--ui-surface-saturate));
  -webkit-backdrop-filter: blur(var(--ui-surface-blur)) saturate(var(--ui-surface-saturate));
  border-left: none;
  border-right: none;
  border-bottom: 1px solid var(--ui-surface-border);
  border-top: none;
  border-radius: 0;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0.5rem var(--app-rail-pad-x) 0.65rem;
  -webkit-overflow-scrolling: touch;
}

/* One column of slots (256 max); scroll inside rail only */
.app-rail-slots {
  list-style: none;
  margin: 0;
  padding: 0 0 0.35rem;
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.app-rail-slot-item {
  margin: 0;
  flex-shrink: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.app-rail-slot-item--search {
  margin-bottom: 0.1rem;
}

.app-rail-slot-item--create-post {
  margin-bottom: 0.1rem;
}

.app-rail-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: var(--app-rail-slot-outer);
  min-height: var(--tap-min);
  padding: 0.15rem 0;
  border-radius: var(--radius-md);
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
}

.app-rail-slot--filled:hover {
  background: var(--ui-surface-hover-tint);
  border-color: var(--ui-surface-border);
}

.app-rail-slot--search-create {
  border: none;
  background: transparent;
  cursor: pointer;
}

.app-rail-slot--create-post {
  border: none;
  background: transparent;
  cursor: pointer;
}

.app-rail-slot--search-create:hover {
  background: transparent;
  border-color: transparent;
}

.app-rail-slot--create-post:hover {
  background: transparent;
  border-color: transparent;
}

.app-rail-slot-frame--search {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--c-blue) 90%, #ffffff) 0%,
    color-mix(in srgb, var(--c-cyan) 84%, #ffffff) 48%,
    color-mix(in srgb, var(--c-magenta) 82%, #ffffff) 100%
  );
}

.app-rail-slot-frame--create-post {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--c-red) 88%, #ffffff) 0%,
    color-mix(in srgb, var(--c-yellow) 84%, #ffffff) 48%,
    color-mix(in srgb, var(--c-magenta) 82%, #ffffff) 100%
  );
}

.app-rail-search-create-icon {
  display: block;
  width: var(--app-rail-slot-inner);
  height: var(--app-rail-slot-inner);
  border-radius: var(--radius-pill);
  background: var(--bg);
}

.app-rail-create-post-icon {
  display: block;
  width: var(--app-rail-slot-inner);
  height: var(--app-rail-slot-inner);
  border-radius: var(--radius-pill);
  background: var(--bg);
}

.app-rail-search-create-ring {
  fill: var(--bg);
  stroke: url("#app-rail-search-plus-ring");
  stroke-width: 2.4;
}

.app-rail-create-post-ring {
  fill: var(--bg);
  stroke: color-mix(in srgb, var(--c-yellow) 65%, var(--c-red));
  stroke-width: 2.4;
}

.app-rail-search-create-lens,
.app-rail-search-create-handle {
  fill: none;
  stroke: var(--c-cyan);
  stroke-width: 2.4;
  stroke-linecap: round;
}

.app-rail-search-create-plus-v,
.app-rail-search-create-plus-h {
  stroke: var(--c-yellow);
  stroke-width: 2.4;
  stroke-linecap: round;
}

.app-rail-slot--filled:hover .app-rail-slot-initial {
  color: var(--ui-action-hover);
}

.app-rail-slot--filled:hover .app-avatar-not-found {
  filter: brightness(1.06);
}

.app-rail-slot:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--focus);
}

.app-rail-slot-frame {
  flex-shrink: 0;
}

/* Keep rail avatar rings square; inner stack must not add asymmetric padding (was stretching frames into ovals). */
.app-rail-slot .app-rail-slot-frame {
  width: var(--app-rail-slot-outer);
  height: var(--app-rail-slot-outer);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  overflow: visible;
}

/* Connection rail avatar ring: entity type → palette (see `rail::rail_frame_entity_class`) */
.app-rail-slot-frame.app-rail-slot-frame--human {
  --rail-entity-ring: var(--c-green);
}
.app-rail-slot-frame.app-rail-slot-frame--digital {
  --rail-entity-ring: var(--c-yellow);
}
.app-rail-slot-frame.app-rail-slot-frame--community {
  --rail-entity-ring: var(--c-blue);
}
.app-rail-slot-frame.app-rail-slot-frame--non_profit {
  --rail-entity-ring: var(--c-magenta);
}
.app-rail-slot-frame.app-rail-slot-frame--profit {
  --rail-entity-ring: var(--c-red);
}
.app-rail-slot-frame.app-rail-slot-frame--gathering {
  --rail-entity-ring: var(--c-cyan);
}

.app-rail-slot-frame:is(
  .app-rail-slot-frame--human,
  .app-rail-slot-frame--digital,
  .app-rail-slot-frame--community,
  .app-rail-slot-frame--non_profit,
  .app-rail-slot-frame--profit,
  .app-rail-slot-frame--gathering
) {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--rail-entity-ring) 92%, #ffffff) 0%,
    color-mix(in srgb, var(--rail-entity-ring) 78%, #000000) 100%
  );
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 6px 12px rgba(0, 0, 0, 0.52);
}

.app-rail-slot--filled:hover
  .app-rail-slot-frame:is(
    .app-rail-slot-frame--human,
    .app-rail-slot-frame--digital,
    .app-rail-slot-frame--community,
    .app-rail-slot-frame--non_profit,
    .app-rail-slot-frame--profit,
    .app-rail-slot-frame--gathering
  ) {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--rail-entity-ring) 94%, #ffffff) 0%,
    color-mix(in srgb, var(--rail-entity-ring) 88%, #ffffff) 100%
  );
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 8px 14px rgba(0, 0, 0, 0.5);
}

.app-rail-slot-placeholder {
  display: block;
  width: var(--app-rail-slot-inner);
  height: var(--app-rail-slot-inner);
  border-radius: var(--radius-pill);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

.app-rail-slot-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--app-rail-slot-inner);
  height: var(--app-rail-slot-inner);
  border-radius: var(--radius-pill);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: lowercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  box-sizing: border-box;
}

.app-rail-slot-img {
  display: block;
  width: var(--app-rail-slot-inner);
  height: var(--app-rail-slot-inner);
  max-width: var(--app-rail-slot-inner);
  max-height: var(--app-rail-slot-inner);
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-pill);
  object-fit: cover;
  background: var(--bg);
  box-sizing: border-box;
  flex: 0 0 auto;
}

.avatar-stack {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Rail: stack stays square; SSR/pending strip sits below via negative offset (frame is overflow: visible). */
.app-rail-slot-frame .avatar-stack {
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* SSR: whole stars = yellow (sun); half star on the right = red outline (arterial). */
.ssr-stars {
  position: absolute;
  left: 50%;
  bottom: -0.42rem;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.04rem;
  padding: 0.01rem 0.16rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.78);
  line-height: 1;
}

/* Rail (and similar): stars + pending share one bottom strip */
.avatar-stack-under {
  position: absolute;
  left: 50%;
  bottom: -0.42rem;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.14rem;
  padding: 0.02rem 0.2rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.78);
  line-height: 1;
  max-width: calc(100% + 0.35rem);
  flex-wrap: nowrap;
}

.avatar-stack-under .ssr-stars.ssr-stars--in-underlay {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  padding: 0;
  background: transparent;
}

.avatar-stack-under .app-avatar-pending-badge {
  position: static;
  flex: 0 0 auto;
}

.ssr-stars--rail {
  font-size: 0.5rem;
}

.ssr-stars--avatar {
  font-size: 0.56rem;
}

.ssr-star {
  font-weight: 700;
}

.ssr-star--full {
  color: var(--c-yellow);
}

.ssr-star--half {
  color: var(--c-red);
}

.app-avatar-pending-badge {
  min-width: 0.78rem;
  height: 0.78rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  background: color-mix(in srgb, var(--c-magenta) 44%, rgba(0, 0, 0, 0.9));
  border: 1px solid color-mix(in srgb, var(--c-yellow) 60%, rgba(255, 255, 255, 0.2));
}

.app-rail-slot--filled:hover .app-rail-slot-img {
  filter: brightness(1.06);
}

.app-main {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.5rem 0.65rem 1.25rem;
}

@media (min-width: 720px) {
  .app-main {
    padding: 1.5rem 1.15rem 1.5rem;
  }
}

.app-cards {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  max-width: min(100%, var(--app-right-panel-card-max));
  margin: 0 auto;
}

#app-home-feed-panel {
  width: 100%;
  max-width: min(100%, var(--app-right-panel-card-max));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  /* Profile / create / search slots above the feed: paragraph-style space before paging + posts */
  gap: 1.5rem;
  min-height: 0;
  height: 100%;
  flex: 1 1 auto;
}

/* Judicial filing page uses feed shell markup but should size to content. */
#app-home-feed-panel.judicial-post-case-panel {
  min-height: auto;
  height: auto;
  flex: 0 0 auto;
}

.app-juror-invite-slot {
  width: 100%;
  max-width: min(100%, var(--app-right-panel-card-max));
  margin: 0 auto;
}

.outstanding-invitation-card + .outstanding-invitation-card {
  margin-top: 1rem;
}

.outstanding-invitation-card .outstanding-invitation-head {
  margin-bottom: 0.75rem;
}

.outstanding-invitation-card .outstanding-invitation-intro {
  margin-top: 0;
}

.juror-summons-title {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.juror-summons-intro {
  margin: 0 0 1rem;
  line-height: 1.45;
}

.juror-summons-rating-warning {
  margin: -0.35rem 0 1rem;
  line-height: 1.45;
  color: var(--c-yellow);
  font-size: 0.95rem;
}

/* Block flow so the connect `<select>` spans the card like private profile (flex row was shrink-wrapping). */
.juror-summons-actions {
  display: block;
  width: 100%;
}

.juror-summons-actions .profile-connect-block {
  width: 100%;
  max-width: none;
  margin-bottom: 0;
}

.juror-summons-actions .profile-connect-inline--solo {
  width: 100%;
}

.juror-summons-workspace {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.juror-workspace-section {
  margin-bottom: 1.25rem;
}

.juror-workspace-h {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.45rem;
  color: var(--c-yellow);
  letter-spacing: 0.02em;
}

.juror-workspace-section--rules .juror-rule-list {
  margin: 0;
  padding-left: 1.2rem;
}

.juror-rule-point {
  margin-right: 0.35rem;
  color: var(--c-yellow);
}

/* Juror workspace: facts-only corpus (no author chrome). */
.juror-corpus-card .juror-corpus-body-wrap {
  margin-top: 0.5rem;
}

.juror-delib-item {
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
}

.juror-delib-item-head {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-yellow);
  margin-bottom: 0.35rem;
}

.juror-vote-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 0.75rem;
  width: 100%;
  align-items: stretch;
  margin-bottom: 1.35rem;
}

.juror-vote-form {
  margin: 0;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.juror-vote-btn.juror-vote-btn--split {
  width: 100%;
  max-width: 100%;
  min-height: 7.25rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 0.5rem 1rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(3, 4, 8, 0.82);
  cursor: pointer;
  color: var(--text);
  text-align: center;
}

/* Ring thickness matches post/toolbar avatars: inner `--app-toolbar-logo-svg` + frame `--app-toolbar-logo-frame-pad`. */
.juror-vote-btn .brand-vote-thumb-frame {
  line-height: 0;
  flex-shrink: 0;
  align-self: center;
  margin-inline: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.juror-vote-btn .brand-vote-thumb-frame .brand-vote-thumb-svg {
  width: var(--app-toolbar-logo-svg);
  height: var(--app-toolbar-logo-svg);
  max-width: none;
  max-height: none;
  display: block;
  border-radius: var(--radius-pill);
  background: var(--bg);
}

.juror-vote-btn-label {
  font-size: 0.82rem;
  line-height: 1.25;
  text-align: center;
  font-weight: 600;
  display: block;
  width: 100%;
  padding-inline: 0.15rem;
  box-sizing: border-box;
}

.juror-vote-question {
  margin: 0 0 1rem;
}

.juror-workspace-section--vote .profile-connect-cta-row {
  width: 100%;
  margin-top: 1.35rem;
}

.juror-workspace-section--vote .profile-connect-cta-row .profile-connect-cta-btn {
  width: 100%;
  display: block;
  box-sizing: border-box;
}

.judicial-crisis-callout {
  margin: 0 0 1.25rem;
  padding: 1rem 1rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--c-red) 55%, transparent);
  background: color-mix(in srgb, var(--c-red) 14%, var(--surface-2));
}

.judicial-crisis-heading {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-red);
  letter-spacing: 0.02em;
}

.judicial-crisis-body {
  margin-bottom: 0.65rem;
}

.judicial-crisis-btn {
  width: 100%;
  min-height: var(--tap-min);
  box-sizing: border-box;
}

.judicial-crisis-notice {
  margin-top: 0.65rem;
  margin-bottom: 0;
  color: var(--c-red);
}

.app-feed-component {
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: 0;
  height: 100%;
  /* Roughly 2× the “one screen of main column” feel (see prior clamp(…, 72dvh, …) era). */
  min-height: calc(2 * (100dvh - 7.5rem));
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.app-feed-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 2;
  /* Stay legible over scrolling cards when the main column is taller than the viewport. */
  background: var(--bg);
  padding-top: 0.2rem;
  margin-top: -0.2rem;
  padding-bottom: 0.15rem;
}

.app-feed-controls-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.35rem 0.5rem;
  width: 100%;
}

.app-feed-controls-bar-start,
.app-feed-controls-bar-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.app-feed-controls-bar-start {
  justify-self: start;
  justify-content: flex-start;
}

.app-feed-controls-bar-center {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
  justify-self: center;
  justify-content: center;
  min-width: min-content;
}

.app-feed-mentions-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
  cursor: pointer;
  user-select: none;
  min-height: var(--tap-min);
}

.app-feed-mentions-filter input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
}

.app-feed-range-label {
  min-height: var(--tap-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  border: 1px solid color-mix(in srgb, var(--c-cyan) 72%, rgba(255, 255, 255, 0.16));
  border-radius: var(--radius-md);
  background: rgba(3, 4, 8, 0.94);
  color: var(--ui-text);
  font-size: 0.85rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
}

.app-feed-controls-bar-end {
  justify-self: end;
  justify-content: flex-end;
}

.app-feed-date-input {
  box-sizing: border-box;
  height: var(--tap-min);
  min-height: var(--tap-min);
  max-height: var(--tap-min);
  padding: 0 0.5rem;
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--c-yellow) 82%, rgba(255, 255, 255, 0.18));
  background: rgba(3, 4, 8, 0.94);
  color: var(--ui-cta-text);
  font: inherit;
  font-size: max(1rem, 16px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  border-radius: var(--radius-md);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.42);
  max-width: 11.5rem;
  vertical-align: middle;
}

.app-feed-date-input:hover,
.app-feed-date-input:focus-visible {
  color: var(--ui-cta-text-hover);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.48);
  outline: none;
}

.app-feed-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--tap-min);
  min-height: var(--tap-min);
  max-height: var(--tap-min);
  min-width: 2.2rem;
  padding: 0 0.55rem;
  border: 1px solid color-mix(in srgb, var(--c-yellow) 82%, rgba(255, 255, 255, 0.18));
  background: rgba(3, 4, 8, 0.94);
  color: var(--ui-cta-text);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radius-md);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.42);
  cursor: pointer;
}

.app-feed-btn:hover,
.app-feed-btn:focus-visible {
  color: var(--ui-cta-text-hover);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.48);
  outline: none;
}

.app-feed-btn--cta {
  border-color: color-mix(in srgb, var(--c-yellow) 92%, rgba(255, 255, 255, 0.12));
  background: rgba(3, 4, 8, 0.94);
  color: var(--c-yellow);
}

.app-feed-btn--cta:hover,
.app-feed-btn--cta:focus-visible {
  background: rgba(3, 4, 8, 0.98);
  color: var(--ui-cta-text-hover);
}

.app-feed-btn:disabled,
.app-feed-btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

.app-feed-controls-loading {
  width: 1.85rem;
  height: 1.85rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}

.app-feed-controls-loading[hidden] {
  display: none !important;
}

.app-feed-controls-loading .brand-frame--loader {
  box-shadow: none;
}

.app-feed-controls-loading .brand-loader-svg {
  width: 18px;
  height: 18px;
}

.app-feed-controls-loading:not(.is-loading) .brand-loader-rotor {
  animation-play-state: paused;
}

.app-feed-cards-wrap {
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  position: relative;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 0.1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.app-feed-cards-wrap::-webkit-scrollbar {
  display: none;
}

.app-feed-cards-wrap.is-loading {
  visibility: hidden;
}

.app-feed-cards-wrap::after {
  content: "";
  position: sticky;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  height: 0.78rem;
  pointer-events: none;
  background: linear-gradient(to top, rgba(3, 4, 8, 0.92), rgba(3, 4, 8, 0));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.app-feed-cards-wrap > .card + .card {
  margin-top: 1rem;
}

.app-feed-post-body.is-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.app-feed-post-body.is-expanded {
  display: block;
}

.app-feed-post-expand-btn {
  margin: 0.1rem 0 0.45rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--c-yellow);
  font: inherit;
  font-size: 0.67em;
  line-height: 1.15;
  font-weight: 700;
  cursor: pointer;
}

.app-feed-post-expand-btn:hover,
.app-feed-post-expand-btn:focus-visible {
  color: var(--ui-cta-text-hover);
}

.profile-constitution-body.is-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 10;
  line-clamp: 10;
  overflow: hidden;
}

.profile-constitution-body.is-expanded {
  display: block;
}

.profile-constitution-list {
  margin: 0.35rem 0 0;
  padding: 0 0 0 1.15rem;
  list-style: none;
}

.profile-constitution-list li {
  margin: 0.55rem 0 0;
  line-height: 1.45;
}

.profile-constitution-list li:first-child {
  margin-top: 0;
}

.profile-constitution-point {
  color: var(--c-cyan);
  font-weight: 700;
  margin-right: 0.35rem;
}

.profile-constitution-tier {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.profile-constitution-tier:first-child {
  margin-top: 0.35rem;
}

.profile-constitution-tier-handle {
  color: var(--c-yellow);
  font-weight: 700;
}

.profile-constitution-expand-btn {
  margin: 0.45rem 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--c-yellow);
  font: inherit;
  font-size: 0.67em;
  line-height: 1.15;
  font-weight: 700;
  cursor: pointer;
}

.profile-constitution-expand-btn:hover,
.profile-constitution-expand-btn:focus-visible {
  color: var(--ui-cta-text-hover);
}

.profile-constitution-empty {
  margin: 0;
}

.app-feed-create-slot {
  margin-bottom: 1rem;
}

.app-feed-search-add-slot {
  margin-bottom: 1rem;
}

.app-search-add-card .search-add-form {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.search-add-input {
  width: 100%;
  margin: 0;
}

.search-add-create-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(0, auto);
  gap: 0.65rem;
  margin: 0.35rem 0 0.15rem;
}

/* Search / Add: form-style snippet (title + description); whole control is the button; entity-colored frame. */
.search-add-entity-snippet {
  display: block;
  margin: 0;
  padding: 0;
  border-radius: var(--radius-md);
  border-width: 2px;
  border-style: solid;
  box-sizing: border-box;
  width: 100%;
  min-height: var(--tap-min);
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  background: color-mix(in srgb, var(--bg) 90%, rgba(255, 255, 255, 0.05));
  transition:
    border-color 0.14s ease,
    box-shadow 0.14s ease,
    background 0.14s ease,
    color 0.14s ease;
}

.search-add-entity-snippet:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--c-yellow) 70%, #ffffff);
  outline-offset: 2px;
}

.search-add-entity-snippet-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.38rem;
  padding: 0.62rem 0.72rem;
  min-height: inherit;
  box-sizing: border-box;
}

/* Title line: same weight hierarchy as small form section headings. */
.search-add-entity-snippet-title {
  display: block;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--text);
}

/* Description line: matches `.hint` / field helper density in this card. */
.search-add-entity-snippet-desc {
  display: block;
  margin: 0;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
}

.search-add-entity-snippet--community {
  border-color: color-mix(in srgb, var(--c-blue) 72%, rgba(255, 255, 255, 0.22));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c-blue) 26%, transparent);
}

.search-add-entity-snippet--community:hover,
.search-add-entity-snippet--community:focus-visible {
  background: color-mix(in srgb, var(--c-blue) 14%, var(--bg));
  border-color: color-mix(in srgb, var(--c-blue) 86%, rgba(255, 255, 255, 0.28));
}

.search-add-entity-snippet--gathering {
  border-color: color-mix(in srgb, var(--c-cyan) 72%, rgba(255, 255, 255, 0.22));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c-cyan) 26%, transparent);
}

.search-add-entity-snippet--gathering:hover,
.search-add-entity-snippet--gathering:focus-visible {
  background: color-mix(in srgb, var(--c-cyan) 14%, var(--bg));
  border-color: color-mix(in srgb, var(--c-cyan) 86%, rgba(255, 255, 255, 0.28));
}

.search-add-entity-snippet--profit {
  border-color: color-mix(in srgb, var(--c-red) 72%, rgba(255, 255, 255, 0.22));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c-red) 26%, transparent);
}

.search-add-entity-snippet--profit:hover,
.search-add-entity-snippet--profit:focus-visible {
  background: color-mix(in srgb, var(--c-red) 14%, var(--bg));
  border-color: color-mix(in srgb, var(--c-red) 86%, rgba(255, 255, 255, 0.28));
}

.search-add-entity-snippet--non-profit {
  border-color: color-mix(in srgb, var(--c-magenta) 72%, rgba(255, 255, 255, 0.22));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c-magenta) 26%, transparent);
}

.search-add-entity-snippet--non-profit:hover,
.search-add-entity-snippet--non-profit:focus-visible {
  background: color-mix(in srgb, var(--c-magenta) 14%, var(--bg));
  border-color: color-mix(in srgb, var(--c-magenta) 86%, rgba(255, 255, 255, 0.28));
}

.create-entity-form {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.create-entity-join-policy-select {
  min-height: var(--tap-min, 44px);
  font-size: max(1rem, 16px);
}

.create-entity-location-heading {
  margin: 0.65rem 0 0.15rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.create-entity-checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: max(1rem, 16px);
  line-height: 1.35;
  color: var(--muted);
  margin: 0.15rem 0 0.35rem;
}

.create-entity-checkbox-row input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  flex-shrink: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.create-entity-locale-fields {
  margin: 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}

.create-entity-locale-fields[disabled] {
  opacity: 0.55;
}

.create-entity-locale-fields[disabled] .search-add-input {
  pointer-events: none;
}

.create-entity-parent-constitution-wrap {
  margin: 0.35rem 0 0.65rem;
}

.create-entity-parent-constitution-wrap[hidden] {
  display: none !important;
}

.create-entity-parent-constitution-wrap:not([hidden]) {
  display: block;
}

.create-entity-parent-constitution-wrap .profile-constitution-block {
  margin: 0;
}

.create-entity-parent-constitution-wrap .profile-constitution-block h2 {
  font-size: 0.92rem;
  margin: 0 0 0.45rem;
}

.create-entity-parent-results {
  margin-top: 0.15rem;
}

.create-entity-parent-pick-btn {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--c-cyan);
  cursor: pointer;
  text-align: left;
}

.create-entity-parent-pick-btn:hover,
.create-entity-parent-pick-btn:focus-visible {
  text-decoration: underline;
}

.create-entity-submit-row {
  margin-top: 1.25rem;
}

.create-entity-handle-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.create-entity-place-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.create-entity-place-row .search-add-input {
  flex: 1 1 12rem;
  min-width: 0;
}

.create-entity-place-results {
  list-style: none;
  margin: 0.25rem 0 0.5rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.create-entity-place-result-btn {
  width: 100%;
  text-align: left;
  border: 1px solid color-mix(in srgb, var(--c-cyan) 32%, var(--border));
  background: color-mix(in srgb, var(--c-cyan) 8%, var(--surface-2));
  color: var(--text);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.65rem;
  cursor: pointer;
}

.create-entity-place-result-btn:hover,
.create-entity-place-result-btn:focus-visible {
  border-color: color-mix(in srgb, var(--c-cyan) 66%, var(--border));
  background: color-mix(in srgb, var(--c-cyan) 16%, var(--surface-2));
}

.create-entity-place-main {
  display: block;
  font-weight: 600;
}

.create-entity-place-secondary {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.create-entity-textarea {
  min-height: 4.5rem;
  resize: vertical;
  line-height: 1.4;
}

.create-entity-description-toolbar {
  margin-top: 0.2rem;
}

.create-entity-description-editor {
  min-height: 8rem;
  margin-top: 0.35rem;
  margin-bottom: 0.3rem;
}

.auth-text-btn.btn-cta.btn-cta--sky,
.card button[type="submit"].btn-cta.btn-cta--sky,
button.auth-choice-btn.btn-cta.btn-cta--sky {
  color: var(--c-cyan);
  border-color: color-mix(in srgb, var(--c-cyan) 74%, rgba(255, 255, 255, 0.2));
}

.auth-text-btn.btn-cta.btn-cta--sky:hover,
.auth-text-btn.btn-cta.btn-cta--sky:focus-visible,
.card button[type="submit"].btn-cta.btn-cta--sky:hover,
.card button[type="submit"].btn-cta.btn-cta--sky:focus-visible,
button.auth-choice-btn.btn-cta.btn-cta--sky:hover,
button.auth-choice-btn.btn-cta.btn-cta--sky:focus-visible {
  color: color-mix(in srgb, var(--c-cyan) 78%, #ffffff);
}

.auth-text-btn.btn-cta.btn-cta--community {
  color: var(--c-blue);
  border-color: color-mix(in srgb, var(--c-blue) 72%, rgba(255, 255, 255, 0.2));
}

.auth-text-btn.btn-cta.btn-cta--non-profit {
  color: var(--c-magenta);
  border-color: color-mix(in srgb, var(--c-magenta) 74%, rgba(255, 255, 255, 0.2));
}

.auth-text-btn.btn-cta.btn-cta--profit {
  color: var(--c-red);
  border-color: color-mix(in srgb, var(--c-red) 76%, rgba(255, 255, 255, 0.2));
}

.auth-text-btn.btn-cta.btn-cta--gathering {
  color: var(--c-cyan);
  border-color: color-mix(in srgb, var(--c-cyan) 74%, rgba(255, 255, 255, 0.2));
}

.auth-text-btn.btn-cta.btn-cta--community:hover,
.auth-text-btn.btn-cta.btn-cta--community:focus-visible {
  color: color-mix(in srgb, var(--c-blue) 76%, #ffffff);
}

.auth-text-btn.btn-cta.btn-cta--non-profit:hover,
.auth-text-btn.btn-cta.btn-cta--non-profit:focus-visible {
  color: color-mix(in srgb, var(--c-magenta) 78%, #ffffff);
}

.auth-text-btn.btn-cta.btn-cta--profit:hover,
.auth-text-btn.btn-cta.btn-cta--profit:focus-visible {
  color: color-mix(in srgb, var(--c-red) 78%, #ffffff);
}

.auth-text-btn.btn-cta.btn-cta--gathering:hover,
.auth-text-btn.btn-cta.btn-cta--gathering:focus-visible {
  color: color-mix(in srgb, var(--c-cyan) 78%, #ffffff);
}

.search-add-results {
  list-style: none;
  margin: 0.2rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.search-add-create-title {
  margin: 0.45rem 0 0.1rem;
  font-size: 0.95rem;
}

.search-add-result-item {
  display: flex;
  align-items: baseline;
  gap: 0.48rem;
  flex-wrap: wrap;
  margin: 0;
  padding: 0.4rem 0.5rem;
  border: 1px solid color-mix(in srgb, var(--border) 86%, rgba(255, 255, 255, 0.08));
  border-radius: 0.42rem;
  background: rgba(3, 4, 8, 0.94);
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.search-add-result-item:hover,
.search-add-result-item:focus-within {
  border-color: color-mix(in srgb, var(--c-yellow) 78%, rgba(255, 255, 255, 0.18));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c-yellow) 44%, transparent);
}

.search-add-result-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.search-add-result-sub {
  color: var(--muted);
}

.search-add-result-item:hover .search-add-result-link,
.search-add-result-item:hover .search-add-result-sub,
.search-add-result-item:focus-within .search-add-result-link,
.search-add-result-item:focus-within .search-add-result-sub {
  color: var(--c-yellow);
}

/* "To" + audience: grid keeps label flush left of input (avoids global `label { display:block }`). */
.create-post-to-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  column-gap: 0.65rem;
  row-gap: 0.35rem;
  margin-bottom: 0.75rem;
  width: 100%;
  min-width: 0;
  min-height: var(--tap-min);
}

.create-post-to-row > .create-post-to-label {
  display: flex;
  align-items: center;
  align-self: stretch;
  min-height: var(--tap-min);
  margin: 0;
  line-height: 1;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Defensive override: old fragments may still render <label> with block layout. */
.create-post-form .create-post-to-row > label.create-post-to-label,
.create-post-form .create-post-to-row > .create-post-to-label {
  display: flex !important;
  align-items: center !important;
  align-self: stretch !important;
  min-height: var(--tap-min) !important;
  margin: 0 !important;
}

.create-post-to-input-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
}

.create-post-to-input-wrap .create-post-to-input {
  width: 100%;
  margin-bottom: 0;
}

.create-post-form > .create-post-to-input {
  width: 100%;
  margin-bottom: 0.75rem;
}

/* Title + entity select on one row (select follows title); wraps on narrow viewports */
.create-post-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.35rem;
}

.create-post-card-header h1 {
  margin: 0;
  flex: 0 1 auto;
  min-width: 0;
}

.create-post-card-header select {
  flex: 0 1 auto;
  margin-left: auto;
  min-width: min(12rem, 100%);
  max-width: min(18rem, 100%);
  width: min(18rem, 100%);
  background: rgba(3, 4, 8, 0.58);
  margin-bottom: 0;
}

.create-entity-card-lead {
  margin: 0 0 1rem;
  max-width: 42rem;
  line-height: 1.45;
}

/* Logo URL: only on non-profit create card (profit card has its own block in the profit fragment). */
.create-entity-logo-field {
  display: none;
}

.app-create-entity-card[data-entity-type-key="non_profit"] .create-entity-logo-field {
  display: block;
}

.create-post-form .hint {
  margin-top: -0.3rem;
  margin-bottom: 0.9rem;
}

.create-post-form > .btn-cta {
  margin-top: 1.15rem;
}

.create-post-og-status.create-post-og-status--blocked {
  color: var(--danger);
  font-weight: 600;
}

.create-post-submit-status {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.create-post-submit-status--error {
  color: var(--danger);
  font-weight: 600;
}

.create-post-submit-status--success {
  color: var(--success);
  font-weight: 600;
}

.handle-availability--taken {
  color: var(--c-magenta);
  font-weight: 600;
}

.handle-availability--ready {
  color: var(--success);
  font-weight: 600;
}

.handle-availability-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.12rem 0.55rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-left: 0.5rem;
}

.handle-availability-badge--label {
  margin-left: auto;
}

.handle-availability-badge--inline {
  margin: 0.12rem 0 0.3rem;
}

.handle-availability-badge--checking {
  color: color-mix(in srgb, var(--text) 75%, var(--muted));
  border-color: color-mix(in srgb, var(--border) 70%, transparent);
  background: color-mix(in srgb, var(--surface-2) 85%, transparent);
}

.handle-availability-badge--error {
  color: var(--c-magenta);
  border-color: color-mix(in srgb, var(--c-magenta) 68%, var(--border));
  background: color-mix(in srgb, var(--c-magenta) 14%, var(--surface-2));
}

.handle-availability-badge--success {
  color: var(--success);
  border-color: color-mix(in srgb, var(--c-green) 64%, var(--border));
  background: color-mix(in srgb, var(--c-green) 18%, var(--surface-2));
}

#create-post-submit.is-loading {
  opacity: 0.8;
  cursor: wait;
}

#create-post-submit.is-loading::after {
  content: "";
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  margin-left: 0.55rem;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--c-yellow) 72%, #ffffff);
  border-right-color: transparent;
  animation: create-post-spinner 0.7s linear infinite;
  vertical-align: -0.08em;
}

@keyframes create-post-spinner {
  to {
    transform: rotate(360deg);
  }
}

.create-post-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
  margin-bottom: 0.45rem;
}

.create-post-editor-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}

.create-post-editor-color-btn {
  position: relative;
}

.create-post-editor-color-btn::before {
  content: "";
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: var(--swatch, #f6f6fa);
  border: 1px solid rgba(255, 255, 255, 0.24);
  display: block;
  margin: 0;
}

.create-post-editor {
  min-height: 7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(3, 4, 8, 0.58);
  padding: 0.7rem 0.85rem;
  font-family: var(--font-ui), var(--font-emoji);
  font-size: max(1rem, 16px);
  line-height: 1.5;
  margin-bottom: 0;
  color: var(--text);
}

.create-post-editor a,
.create-post-editor a:visited,
.create-post-editor a:hover,
.create-post-editor a:active,
.create-post-editor a:focus {
  color: var(--c-cyan) !important;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.create-post-editor a * {
  color: inherit !important;
  text-decoration: inherit;
}

.create-post-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
}

.create-post-char-hint {
  margin-top: 0;
  margin-bottom: 0.45rem;
  text-align: right;
}

.create-post-char-hint.is-limit {
  color: var(--danger);
  font-weight: 600;
}

/* Wrapper only; inner markup uses shared `.public-post-og*` (same as public posts). */
/* `display:grid` would override the HTML `hidden` attribute — keep preview absent from layout until shown. */
.create-post-og-preview[hidden] {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  min-height: 0 !important;
  visibility: hidden;
}

.create-post-og-preview:not([hidden]) {
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  visibility: visible;
}

.app-card--placeholder {
  max-width: none;
}

/* GET /health — developer API catalog (HTML) */
.health-catalog-page {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
}

.health-catalog-inner {
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.35rem 1rem 2.5rem;
  box-sizing: border-box;
}

.health-catalog-kicker {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 0.35rem;
  letter-spacing: 0.06em;
}

.health-catalog-page h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 4vw, 1.6rem);
}

.health-catalog-intro {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 44rem;
}

.health-catalog-liveness {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.health-catalog-liveness a {
  color: var(--ui-action-hover);
}

.health-catalog-liveness code {
  font-family: var(--font-mono);
  font-size: 0.88em;
}

.health-catalog-page .hc-section {
  margin: 1.65rem 0 0.5rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--c-green);
  letter-spacing: 0.02em;
}

.health-catalog-page .hc-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0.25rem;
  font-size: 0.92rem;
}

.health-catalog-page .hc-table th,
.health-catalog-page .hc-table td {
  padding: 0.5rem 0.45rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.health-catalog-page .hc-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.health-catalog-page .hc-method {
  font-weight: 700;
  color: var(--c-cyan);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  width: 4.5rem;
}

.health-catalog-page .hc-table code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--c-yellow);
  word-break: break-word;
}

.health-catalog-page .hc-note {
  color: var(--muted);
  line-height: 1.45;
}

.health-catalog-footer {
  margin: 2rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.health-catalog-footer a {
  color: var(--ui-action-hover);
}

.health-catalog-footer code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.app-home-profile-panel {
  width: 100%;
  max-width: min(100%, var(--app-right-panel-card-max));
  margin: 0 auto;
}

.app-home-profile-mount {
  width: 100%;
}

.app-home-profile-loading-card {
  max-width: none;
  width: 100%;
}

.app-profile-completion-card {
  max-width: none;
  width: 100%;
}

.profile-completion-location-heading {
  margin: 1rem 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.profile-step-heading {
  margin-bottom: 1rem;
}

.profile-required-legend {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  margin: 0 0 1rem;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--c-yellow) 22%, var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--c-yellow) 50%, var(--border));
}

.profile-completion-form .profile-field-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.6rem;
  padding: 0.45rem 0.7rem;
  margin-bottom: 0;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-sizing: border-box;
  width: 100%;
}

/* One control: label cap (rounded top) + field (rounded bottom), shared side borders */
.profile-completion-form .profile-field-label + input,
.profile-completion-form .profile-field-label + select {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  margin-top: 0;
  border-top: none;
}

.profile-completion-form .profile-field-label--required + input,
.profile-completion-form .profile-field-label--required + select {
  border-color: color-mix(in srgb, var(--c-cyan) 42%, var(--border));
}

.profile-completion-form .profile-field-label--optional + input,
.profile-completion-form .profile-field-label--optional + select {
  border-color: color-mix(in srgb, var(--c-blue) 30%, var(--border));
}

.profile-completion-form .profile-field-label__text {
  flex: 1 1 auto;
  min-width: 0;
}

.profile-completion-form .profile-field-label--required {
  background: color-mix(in srgb, var(--c-cyan) 26%, var(--surface-2));
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--c-cyan) 42%, var(--border));
  border-bottom: none;
}

.profile-completion-form .profile-field-label--optional {
  background: color-mix(in srgb, var(--c-blue) 16%, var(--surface-2));
  color: color-mix(in srgb, var(--text) 90%, var(--muted));
  border: 1px solid color-mix(in srgb, var(--c-blue) 30%, var(--border));
  border-bottom: none;
}

.profile-completion-form .profile-req-mark {
  flex: 0 0 auto;
  margin: 0;
  text-decoration: none;
  font-weight: 800;
  color: color-mix(in srgb, var(--c-yellow) 85%, #fff);
  font-size: 1.08em;
  cursor: help;
}

.profile-completion-form select {
  width: 100%;
  min-height: var(--tap-min);
  padding: 0.65rem 0.85rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: max(1rem, 16px);
  font-family: var(--font-ui);
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.profile-completion-form select:focus {
  outline: none;
  border-color: var(--ui-action-hover);
  box-shadow: 0 0 0 3px var(--focus);
}

.profile-terms-form .auth-check-label {
  margin-bottom: 1rem;
}

/* First submit in form order: enables Enter-to-submit without showing a second primary control. */
.profile-form-implicit-submit {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

/* Auth pages: top bar only, centered card below */
.app-shell--auth {
  min-height: 100vh;
  min-height: 100dvh;
}

.app-shell--auth .auth-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.65rem 1.25rem;
  width: 100%;
}

.app-shell--auth .auth-card {
  max-width: 100%;
  width: 100%;
}

.app-shell--guest {
  min-height: 100vh;
  min-height: 100dvh;
  flex: 1 1 0;
  min-height: 0;
}

.guest-split {
  flex: 1 1 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  /* One row fills remaining viewport under viewport-lock; children can scroll inside. */
  grid-template-rows: minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.75rem 0.65rem 1.25rem;
  overflow-x: hidden;
  overflow-y: auto;
  align-items: start;
}

.guest-join-card,
.guest-right-panel,
.guest-right-card {
  min-height: 0;
}

.guest-join-card {
  align-self: start;
  height: fit-content;
}

.guest-join-card {
  max-width: none;
  width: 100%;
}

.guest-right-panel > .card,
.guest-right-card {
  max-width: min(100%, var(--app-right-panel-card-max));
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.guest-right-panel {
  min-height: 0;
  align-self: stretch;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.guest-right-panel > .card {
  margin-bottom: 0.9rem;
}

.guest-right-panel > .card:last-child {
  margin-bottom: 0;
}

.guest-council-strip {
  margin: 0 0 0.6rem;
}

.guest-council-wrap {
  margin: 1.6rem 0 1.75rem;
}

.guest-council-title {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
}

.guest-panel-heading {
  margin: 0 0 1.1rem;
  font-size: clamp(1.2rem, 4vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.35;
  color: var(--c-yellow);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.44);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.guest-join-card .join-cta-btn {
  margin-bottom: 1.4rem;
}

.guest-council-orbit {
  --orbit-size: 13rem;
  --orbit-shift: -6.1rem;
  position: relative;
  width: var(--orbit-size);
  height: var(--orbit-size);
  max-width: 100%;
  max-height: 100%;
  margin: 0 auto 0.35rem;
}

.guest-council-node {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.guest-council-link {
  display: inline-flex;
  text-decoration: none;
  border-radius: var(--radius-pill);
}

.guest-council-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--focus);
}

.guest-council-node:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg) translateY(var(--orbit-shift)) rotate(0deg); }
.guest-council-node:nth-child(2) { transform: translate(-50%, -50%) rotate(30deg) translateY(var(--orbit-shift)) rotate(-30deg); }
.guest-council-node:nth-child(3) { transform: translate(-50%, -50%) rotate(60deg) translateY(var(--orbit-shift)) rotate(-60deg); }
.guest-council-node:nth-child(4) { transform: translate(-50%, -50%) rotate(90deg) translateY(var(--orbit-shift)) rotate(-90deg); }
.guest-council-node:nth-child(5) { transform: translate(-50%, -50%) rotate(120deg) translateY(var(--orbit-shift)) rotate(-120deg); }
.guest-council-node:nth-child(6) { transform: translate(-50%, -50%) rotate(150deg) translateY(var(--orbit-shift)) rotate(-150deg); }
.guest-council-node:nth-child(7) { transform: translate(-50%, -50%) rotate(180deg) translateY(var(--orbit-shift)) rotate(-180deg); }
.guest-council-node:nth-child(8) { transform: translate(-50%, -50%) rotate(210deg) translateY(var(--orbit-shift)) rotate(-210deg); }
.guest-council-node:nth-child(9) { transform: translate(-50%, -50%) rotate(240deg) translateY(var(--orbit-shift)) rotate(-240deg); }
.guest-council-node:nth-child(10) { transform: translate(-50%, -50%) rotate(270deg) translateY(var(--orbit-shift)) rotate(-270deg); }
.guest-council-node:nth-child(11) { transform: translate(-50%, -50%) rotate(300deg) translateY(var(--orbit-shift)) rotate(-300deg); }
.guest-council-node:nth-child(12) { transform: translate(-50%, -50%) rotate(330deg) translateY(var(--orbit-shift)) rotate(-330deg); }

.guest-council-avatar-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--app-rail-slot-outer);
  max-width: var(--app-rail-slot-outer);
  padding: var(--app-toolbar-logo-frame-pad);
}

a:hover .brand-frame--toolbar,
a:focus-visible .brand-frame--toolbar,
button:hover .brand-frame--toolbar,
button:focus-visible .brand-frame--toolbar {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--c-blue) 92%, #ffffff) 0%,
    color-mix(in srgb, var(--c-cyan) 88%, #ffffff) 100%
  );
}

.guest-council-avatar-img {
  display: block;
  width: var(--app-rail-slot-inner);
  height: var(--app-rail-slot-inner);
  border-radius: var(--radius-pill);
  object-fit: cover;
  background: var(--bg);
}

.public-post-cards {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 0.85rem;
}

.guest-right-panel .public-post-cards {
  padding-top: 0;
}

.public-post-card {
  max-width: min(100%, 44rem);
  margin: 0 auto;
}

.app-main .public-post-card,
.guest-right-panel .public-post-card {
  max-width: min(100%, var(--app-right-panel-card-max));
}

.public-post-card > .card-accent {
  margin-bottom: 0.55rem;
}

@media (min-width: 600px) {
  .public-post-card > .card-accent {
    margin-bottom: 0.65rem;
  }
}

.public-post-card--linked {
  --card-accent-bg: linear-gradient(
    90deg,
    color-mix(in srgb, var(--c-cyan) 90%, #ffffff) 0%,
    color-mix(in srgb, var(--c-cyan) 72%, #ffffff) 50%,
    color-mix(in srgb, var(--c-cyan) 88%, #ffffff) 100%
  );
}

.public-post-card--text {
  --card-accent-bg: linear-gradient(
    90deg,
    color-mix(in srgb, var(--c-blue) 90%, #ffffff) 0%,
    color-mix(in srgb, var(--c-blue) 72%, #ffffff) 50%,
    color-mix(in srgb, var(--c-blue) 88%, #ffffff) 100%
  );
}

/* Private-only feed cards (secured zone): same structure as public cards, distinct accent semantics. */
.private-post-card {
  --card-accent-bg: linear-gradient(
    90deg,
    color-mix(in srgb, var(--c-magenta) 92%, #ffffff) 0%,
    color-mix(in srgb, var(--c-blue) 72%, #ffffff) 50%,
    color-mix(in srgb, var(--c-magenta) 88%, #ffffff) 100%
  );
}

/* Feed + shared post cards: poster `social_entity_type` top accent (see `entity_type_accent::profile_card_accent_class`). */
.public-post-card.entity-profile-accent--human,
.public-post-card.entity-profile-accent--digital,
.public-post-card.entity-profile-accent--community,
.public-post-card.entity-profile-accent--non_profit,
.public-post-card.entity-profile-accent--profit,
.public-post-card.entity-profile-accent--gathering {
  --card-accent-bg: linear-gradient(
    90deg,
    color-mix(in srgb, var(--entity-accent) 90%, #ffffff) 0%,
    color-mix(in srgb, var(--entity-accent) 66%, #ffffff) 50%,
    color-mix(in srgb, var(--entity-accent) 88%, #ffffff) 100%
  );
}

.private-post-card-badge {
  margin: 0 0 0.45rem;
  color: var(--c-yellow);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.private-post-globe-icon {
  display: inline-flex;
  line-height: 0;
}

.private-post-globe-icon svg {
  display: block;
}

.public-post-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}

.public-post-head-identity {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  flex: 1 1 auto;
}

.public-post-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex: 0 0 auto;
  margin-left: auto;
}

.public-post-name-row {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.post-action-btn {
  min-width: var(--tap-min);
  min-height: var(--tap-min);
  padding: 0.35rem;
  border: none;
  background: transparent;
  color: var(--text);
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  line-height: 0;
}

.post-action-btn:hover,
.post-action-btn:focus-visible {
  color: var(--ui-action-hover);
  outline: none;
  box-shadow: 0 0 0 2px var(--focus);
}

.post-action-icon {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
}

.post-engagement-vote-btn {
  min-width: var(--tap-min);
  min-height: var(--tap-min);
  padding: 0.35rem;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.post-engagement-vote-btn--yes.is-selected {
  color: var(--c-yellow);
  background: color-mix(in srgb, var(--c-yellow) 16%, transparent);
}

.post-engagement-vote-btn--no.is-selected {
  color: var(--c-red);
  background: color-mix(in srgb, var(--c-red) 16%, transparent);
}

.public-post-card--moderation .public-post-body {
  opacity: 0.92;
}

.public-post-card--removed {
  border-top-color: var(--card-accent-content, var(--c-blue));
}

.public-post-card--removed .public-post-removed-notice {
  margin: 0;
  padding: 0.85rem 1rem 1rem;
  color: var(--text-muted, rgba(232, 236, 245, 0.72));
  font-size: 0.95rem;
  line-height: 1.45;
}

.post-verdict-notice {
  margin: 0.65rem 1rem 0.85rem;
  padding: 0.75rem 0.85rem;
  border-left: 3px solid var(--c-cyan);
  background: rgba(46, 111, 216, 0.08);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.post-verdict-notice-author {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--c-cyan);
  font-size: 0.82rem;
  font-weight: 600;
}

.post-verdict-notice-body {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.45;
}

.public-post-avatar-link {
  display: inline-flex;
  border-radius: var(--radius-pill);
}

.public-post-avatar-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--focus);
}

.public-post-avatar {
  display: inline-flex;
}

.public-post-avatar-img {
  display: block;
  width: var(--app-rail-slot-inner);
  height: var(--app-rail-slot-inner);
  border-radius: var(--radius-pill);
  object-fit: cover;
  background: var(--bg);
}

.public-post-avatar-fallback {
  display: inline-flex;
  min-width: var(--app-rail-slot-inner);
  min-height: var(--app-rail-slot-inner);
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
}

.app-avatar-not-found {
  display: inline-flex;
  width: var(--app-rail-slot-inner);
  height: var(--app-rail-slot-inner);
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: rgba(3, 4, 8, 0.94);
  color: var(--text);
}

.app-avatar-not-found svg {
  display: block;
  width: 52%;
  height: 52%;
}

.public-post-handle-block {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.04;
  margin-left: 0.5rem;
  min-width: 0;
}

.public-post-handle {
  color: var(--c-yellow);
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.04;
}

.public-post-handle-line {
  color: var(--c-yellow);
  display: block;
  margin: 0;
}

.public-post-handle-line--community-healthy {
  color: var(--c-yellow);
}

.public-post-handle-line--community-failing {
  color: var(--c-red);
}

.public-post-handle-line--community-dead {
  color: var(--c-red);
  text-decoration: line-through;
}

.public-post-handle-line--human-failing {
  color: var(--c-red);
}

.public-post-handle-line--human-dead {
  color: var(--c-red);
  text-decoration: line-through;
}

.public-post-handle--removed {
  cursor: default;
  pointer-events: none;
  text-decoration: none;
}

.public-post-display-name {
  color: var(--text);
  font-size: 0.76em;
  font-weight: 600;
  opacity: 0.95;
  margin-top: 0.02rem;
}

.public-post-audience-for {
  color: var(--text);
  font-size: 0.76em;
  font-weight: 600;
  opacity: 0.95;
  margin-top: 0.12rem;
  display: block;
  max-width: 100%;
}

.public-post-audience-sep {
  opacity: 0.85;
}

.public-post-audience-token {
  color: var(--c-yellow);
  font-weight: 600;
  text-decoration: none;
}

.public-post-audience-token:hover,
.public-post-audience-token:focus-visible {
  text-decoration: underline;
}

.public-post-audience-token:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--focus);
  border-radius: 0.12rem;
}

.public-post-audience-token--scope {
  color: var(--text);
  opacity: 0.92;
  cursor: default;
}

.public-post-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.2rem;
  font-size: 1.02em;
  line-height: 1;
  font-family: var(--font-emoji), var(--font-ui);
}

.public-post-flag-icon {
  display: inline-block;
  width: 1rem;
  height: 0.75rem;
  vertical-align: middle;
  margin-right: 0;
  border-radius: 0.08rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.public-post-flag-inline {
  align-self: center;
  flex: 0 0 auto;
}

.public-post-share-btn {
  border: none;
  background: transparent;
  color: var(--text);
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.public-post-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.public-post-share-btn:hover,
.public-post-share-btn:focus-visible {
  background: transparent;
  outline: none;
}

.public-post-share-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--app-toolbar-logo-frame-pad);
}

.public-post-share-icon {
  display: inline-flex;
  line-height: 0;
}

.public-post-share-icon svg {
  display: block;
  overflow: visible;
  width: calc(var(--app-rail-slot-inner) * 0.5);
  height: calc(var(--app-rail-slot-inner) * 0.5);
}

.public-post-judicial-status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--app-rail-slot-inner);
  padding: 0.12rem 0.44rem;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--c-yellow) 50%, rgba(255, 255, 255, 0.16));
  background: rgba(3, 4, 8, 0.94);
  color: var(--c-yellow);
  font-size: 0.66rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.public-post-judicial-withdraw-form {
  margin-left: auto;
  display: inline-flex;
  align-items: stretch;
}

.public-post-judicial-withdraw-inline {
  display: inline-flex;
  align-items: center;
  min-height: var(--app-rail-slot-inner);
}

.public-post-judicial-withdraw-select {
  min-height: 44px;
  font-size: 16px;
  max-width: min(100%, 14rem);
  border-color: color-mix(in srgb, var(--c-green) 55%, rgba(255, 255, 255, 0.12));
}

.app-global-notify {
  position: fixed;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 3000;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.app-right-panel-toast {
  pointer-events: none;
  background: rgba(3, 4, 8, 0.92);
  border: 1px solid color-mix(in srgb, var(--c-cyan) 72%, var(--border));
  color: var(--text);
  padding: 0.34rem 0.55rem;
  border-radius: 0.42rem;
  font-size: 0.76rem;
  font-weight: 700;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.app-right-panel-toast.is-leaving {
  opacity: 0;
  transform: translateY(-6px);
}

.public-post-body {
  margin: 0 0 0.65rem;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-ui), var(--font-emoji);
}

/* Rich-text posts: match composer surface; avoid double chrome inside public card */
.public-post-card .public-post-body.create-post-editor {
  white-space: normal;
  border: none;
  padding: 0;
  margin-bottom: 0.65rem;
  background: transparent;
  min-height: 0;
}

/* Plain-text fallback (escaped body_plain): preserve newlines; emoji still use global font stack */
.public-post-card .public-post-body.create-post-editor.public-post-body--plain-fallback {
  white-space: pre-wrap;
}

/* Specificity: must tie or beat `.public-post-card.entity-profile-accent--*` (0,2,0) and appear after it, or the entity gradient wins and the ad strip can pick up the wrong --entity-accent. */
.public-post-card.public-post-card--ad {
  --card-accent-bg: linear-gradient(
    90deg,
    color-mix(in srgb, var(--c-red) 92%, #ffffff) 0%,
    color-mix(in srgb, var(--c-red) 72%, #ffffff) 50%,
    color-mix(in srgb, var(--c-red) 88%, #ffffff) 100%
  );
}

.public-post-card--ad .public-post-head {
  margin-bottom: 0.35rem;
}

.public-post-handle--ad {
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--c-red) 72%, var(--text));
}

.app-feed-google-ad {
  width: 100%;
  min-height: 120px;
}

.app-feed-ad-placeholder {
  min-height: 120px;
  border: 1px dashed color-mix(in srgb, var(--c-red) 56%, var(--border));
  border-radius: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--c-red) 76%, var(--text));
  background: color-mix(in srgb, var(--c-red) 6%, transparent);
  padding: 0.7rem;
}

.app-feed-ad-accrual-hint {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

.profile-membership-review-cost {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  color: color-mix(in srgb, var(--c-green) 82%, var(--text));
}

/* Public + create-post link preview: 50/50 image | title + source; whole block is an <a.public-post-og-link> */
/* Full-bleed row: cancel .card horizontal padding (same as .card-accent) */
.public-post-card .public-post-og-link,
.public-post-card .public-post-og-loading,
.public-post-card > .public-post-og,
.app-create-post-card .public-post-og-link,
.app-create-post-card .public-post-og-loading,
.app-create-post-card > .public-post-og {
  width: calc(100% + 2.5rem);
  max-width: none;
  margin-left: -1.25rem;
  margin-right: -1.25rem;
  box-sizing: border-box;
  margin-bottom: 0.55rem;
}

@media (min-width: 600px) {
  .public-post-card .public-post-og-link,
  .public-post-card .public-post-og-loading,
  .public-post-card > .public-post-og,
  .app-create-post-card .public-post-og-link,
  .app-create-post-card .public-post-og-loading,
  .app-create-post-card > .public-post-og {
    width: calc(100% + 4rem);
    margin-left: -2rem;
    margin-right: -2rem;
  }
}

.public-post-og-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 0;
}

.public-post-og-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--focus);
}

/* Client-side OG fetch: same chrome as preview, centered brand loader */
.public-post-og-loading {
  border: 1px solid var(--border);
  border-radius: 0;
  background: rgba(3, 4, 8, 0.58);
  min-height: 6.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.public-post-og-loading .card-loader {
  padding: 0.35rem 0;
}

.public-post-og {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  /* No `gap` and no `padding`: the image must sit flush against the card
     frame on all sides. The copy column carries its own padding so the
     text still breathes. */
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 0;
  background: rgba(3, 4, 8, 0.58);
  padding: 0;
  min-height: 0;
}

.public-post-og-media {
  min-width: 0;
  min-height: 6.5rem;
  border-radius: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.public-post-og-image {
  width: 100%;
  height: 100%;
  min-height: 6.5rem;
  object-fit: cover;
  border-radius: 0;
  display: block;
  background: var(--bg);
  /* Belt-and-braces: any inherited margin on inline images should not
     reintroduce a gutter around the OG thumbnail. */
  margin: 0;
}

.public-post-og-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  /* Replaces the prior `.public-post-og { padding: 0.55rem; gap: 0.75rem }`
     so only the copy column has breathing room; the image stays flush. */
  padding: 0.55rem 0.75rem 0.55rem 0.75rem;
}

.public-post-og-title {
  font-weight: 700;
  line-height: 1.35;
}

.public-post-og-site {
  color: var(--muted);
  font-size: 0.88rem;
}

/* Card top-border semantics (normalized via --card-accent-bg) */
.card--action,
.card[data-auth-card="register"],
.guest-login-card {
  --card-accent-bg: linear-gradient(
    90deg,
    color-mix(in srgb, var(--c-green) 92%, #ffffff) 0%,
    color-mix(in srgb, var(--c-green) 68%, #ffffff) 50%,
    color-mix(in srgb, var(--c-green) 88%, #ffffff) 100%
  );
}

.judicial-post-case-card {
  --card-accent-bg: linear-gradient(
    90deg,
    color-mix(in srgb, var(--c-yellow) 94%, #ffffff) 0%,
    color-mix(in srgb, var(--c-yellow) 72%, #ffffff) 50%,
    color-mix(in srgb, var(--c-yellow) 90%, #ffffff) 100%
  );
}

.guest-join-card {
  --card-accent-bg: linear-gradient(
    90deg,
    color-mix(in srgb, var(--c-red) 94%, #ffffff) 0%,
    color-mix(in srgb, var(--c-red) 72%, #ffffff) 50%,
    color-mix(in srgb, var(--c-red) 90%, #ffffff) 100%
  );
}

.panoply-ops-card {
  --card-accent-bg: linear-gradient(
    90deg,
    color-mix(in srgb, var(--c-red) 94%, #ffffff) 0%,
    color-mix(in srgb, var(--c-yellow) 72%, #ffffff) 50%,
    color-mix(in srgb, var(--c-red) 90%, #ffffff) 100%
  );
}

.panoply-ops-form .auth-label {
  display: block;
  margin-bottom: 0.75rem;
}

.panoply-queue-list,
.panoply-audit-list {
  margin: 0.5rem 0 1.25rem;
  padding-left: 1.25rem;
}

.app-topbar-ops-btn {
  margin-inline-end: 0.5rem;
}

.app-profile-completion-card {
  --card-accent-bg: linear-gradient(
    90deg,
    color-mix(in srgb, var(--c-red) 94%, #ffffff) 0%,
    color-mix(in srgb, var(--c-red) 72%, #ffffff) 50%,
    color-mix(in srgb, var(--c-red) 90%, #ffffff) 100%
  );
}

.app-profile-terms-card {
  --card-accent-bg: linear-gradient(
    90deg,
    color-mix(in srgb, var(--c-red) 94%, #ffffff) 0%,
    color-mix(in srgb, var(--c-red) 72%, #ffffff) 50%,
    color-mix(in srgb, var(--c-red) 90%, #ffffff) 100%
  );
}

.face-capture-godmother-card {
  --card-accent-bg: linear-gradient(
    90deg,
    color-mix(in srgb, var(--c-red) 94%, #ffffff) 0%,
    color-mix(in srgb, var(--c-red) 72%, #ffffff) 50%,
    color-mix(in srgb, var(--c-red) 90%, #ffffff) 100%
  );
}

.guest-marketing-card {
  --card-accent-bg: linear-gradient(
    90deg,
    color-mix(in srgb, var(--c-magenta) 92%, #ffffff) 0%,
    color-mix(in srgb, var(--c-magenta) 66%, #ffffff) 50%,
    color-mix(in srgb, var(--c-magenta) 88%, #ffffff) 100%
  );
}

.guest-constitution-card {
  --card-accent-bg: linear-gradient(
    90deg,
    color-mix(in srgb, var(--c-yellow) 94%, #ffffff) 0%,
    color-mix(in srgb, var(--c-yellow) 72%, #ffffff) 50%,
    color-mix(in srgb, var(--c-yellow) 90%, #ffffff) 100%
  );
}

/* Public profile shell: default top accent until JSON loads; then `entity-public-card.js` adds `entity-profile-accent--{type_key}`. */
.entity-public-card {
  --card-accent-bg: linear-gradient(
    90deg,
    color-mix(in srgb, var(--c-blue) 90%, #ffffff) 0%,
    color-mix(in srgb, var(--c-cyan) 76%, #ffffff) 52%,
    color-mix(in srgb, var(--c-blue) 90%, #ffffff) 100%
  );
}

/* Private profile: server adds `entity-profile-accent--*` from `type_label_key` (same mapping as public). */
.profile-private-card {
  --card-accent-bg: linear-gradient(
    90deg,
    color-mix(in srgb, var(--c-blue) 90%, #ffffff) 0%,
    color-mix(in srgb, var(--c-cyan) 76%, #ffffff) 52%,
    color-mix(in srgb, var(--c-blue) 90%, #ffffff) 100%
  );
}

.entity-profile-accent--human {
  --entity-accent: var(--c-green);
}
.entity-profile-accent--digital {
  --entity-accent: var(--c-yellow);
}
.entity-profile-accent--community {
  --entity-accent: var(--c-blue);
}
.entity-profile-accent--non_profit {
  --entity-accent: var(--c-magenta);
}
.entity-profile-accent--profit {
  --entity-accent: var(--c-red);
}
.entity-profile-accent--gathering {
  --entity-accent: var(--c-cyan);
}

.entity-public-card.entity-profile-accent--human,
.entity-public-card.entity-profile-accent--digital,
.entity-public-card.entity-profile-accent--community,
.entity-public-card.entity-profile-accent--non_profit,
.entity-public-card.entity-profile-accent--profit,
.entity-public-card.entity-profile-accent--gathering,
.profile-private-card.entity-profile-accent--human,
.profile-private-card.entity-profile-accent--digital,
.profile-private-card.entity-profile-accent--community,
.profile-private-card.entity-profile-accent--non_profit,
.profile-private-card.entity-profile-accent--profit,
.profile-private-card.entity-profile-accent--gathering,
.app-create-post-card.entity-profile-accent--human,
.app-create-post-card.entity-profile-accent--digital,
.app-create-post-card.entity-profile-accent--community,
.app-create-post-card.entity-profile-accent--non_profit,
.app-create-post-card.entity-profile-accent--profit,
.app-create-post-card.entity-profile-accent--gathering,
.app-create-entity-card.entity-profile-accent--human,
.app-create-entity-card.entity-profile-accent--digital,
.app-create-entity-card.entity-profile-accent--community,
.app-create-entity-card.entity-profile-accent--non_profit,
.app-create-entity-card.entity-profile-accent--profit,
.app-create-entity-card.entity-profile-accent--gathering {
  --card-accent-bg: linear-gradient(
    90deg,
    color-mix(in srgb, var(--entity-accent) 90%, #ffffff) 0%,
    color-mix(in srgb, var(--entity-accent) 66%, #ffffff) 50%,
    color-mix(in srgb, var(--entity-accent) 88%, #ffffff) 100%
  );
}

.profile-private-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.profile-brand-text {
  white-space: pre-wrap;
}

.profile-gathering-rsvp-metrics {
  margin-bottom: 1rem;
}

.profile-community-members-metric h2.profile-brand-base-size {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-blue);
  line-height: 1.35;
}

.profile-gathering-rsvp-metrics h2.profile-brand-base-size {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-cyan);
  line-height: 1.35;
}

.profile-private-public-link {
  margin-top: 1rem;
}

.profile-human-edit-block {
  margin-bottom: 1rem;
}

.profile-entity-edit-block {
  margin-bottom: 1rem;
}

.profile-entity-edit-block .create-entity-form {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.profile-entity-edit-block .search-add-input,
.profile-entity-edit-block .create-post-editor {
  min-height: var(--tap-min, 44px);
  font-size: max(1rem, 16px);
}

.profile-entity-edit-block .create-post-editor {
  min-height: 8rem;
}

.profile-human-edit-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.profile-human-edit-actions .auth-text-btn {
  width: 100%;
  justify-content: center;
}

.profile-account-panel {
  margin-top: 0.25rem;
}

.profile-delete-account-card {
  border-top: 3px solid var(--c-red);
  padding-top: 0.75rem;
}

.profile-delete-account-list {
  margin: 0.75rem 0 1rem;
  padding-left: 1.15rem;
  color: var(--muted);
}

.profile-delete-account-list li + li {
  margin-top: 0.35rem;
}

.profile-delete-account-ack {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.85rem;
  cursor: pointer;
  user-select: none;
}

.profile-delete-account-ack input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--c-red);
}

.profile-delete-account-ack-text {
  font-size: max(1rem, 16px);
  line-height: 1.4;
  color: var(--text);
}

.profile-block-list {
  list-style: none;
  margin: 0.75rem 0 1rem;
  padding: 0;
}

.profile-block-list-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
}

.profile-block-list-item:last-child {
  border-bottom: none;
}

.profile-block-list-label {
  flex: 2 1 0;
  min-width: 0;
  color: var(--text);
  font-size: max(1rem, 16px);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.profile-block-unblock-btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  width: auto;
  max-width: 100%;
  justify-content: center;
}

.profile-account-delete-btn.btn-cta {
  color: var(--c-red);
  border-color: color-mix(in srgb, var(--c-red) 70%, transparent);
  background: color-mix(in srgb, var(--c-red) 8%, transparent);
}

.profile-account-delete-btn.btn-cta:hover,
.profile-account-delete-btn.btn-cta:focus-visible {
  background: color-mix(in srgb, var(--c-red) 16%, transparent);
}

.profile-account-delete-btn:not(.btn-cta) {
  color: var(--c-red);
  border-color: color-mix(in srgb, var(--c-red) 55%, transparent);
}

.profile-account-delete-btn:not(.btn-cta):hover,
.profile-account-delete-btn:not(.btn-cta):focus-visible {
  background: color-mix(in srgb, var(--c-red) 12%, transparent);
}

.profile-field-label--readonly .profile-field-label__text {
  color: var(--muted);
}

.profile-handle-list {
  line-height: 1.5;
}

.profile-handle-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.profile-handle-link:hover,
.profile-handle-link:focus-visible {
  text-decoration: underline;
}

.card .profile-block h2.profile-block-heading--communities {
  color: var(--c-blue);
}

.card .profile-block h2.profile-block-heading--brands {
  color: var(--c-red);
}

.profile-connect-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.profile-connect-controls .field-input {
  max-width: 11rem;
}

.profile-connect-inline {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: nowrap;
  width: 100%;
}

.profile-connect-inline--solo {
  display: block;
}

.profile-connect-select {
  max-width: 11rem;
}

.profile-connect-select--solo {
  max-width: 100%;
  width: 100%;
  min-height: var(--tap-min);
}

.profile-connect-inline .auth-text-btn.btn-cta {
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 0 auto;
  white-space: nowrap;
  flex: 0 0 auto;
}

.profile-connect-block {
  margin-bottom: 1.15rem;
}

.profile-connect-cta-row {
  margin-top: 0.75rem;
}

.profile-connect-cta-btn {
  min-height: var(--tap-min);
  font-size: 1rem;
}

/* Keep dropdown menus consistently black across all surfaces/components. */
select {
  background: #000 !important;
}

select option {
  background: #000;
  color: var(--text);
}

.app-topbar-login-link {
  text-decoration: none;
}

.app-topbar-login-link:focus-visible {
  text-decoration: none;
}

@media (min-width: 720px) {
  .guest-split {
    padding: 1rem 1.15rem 1.5rem;
  }
}

/* Home onboarding profile fragments: same max width as active main-column cards */
#app-home-profile-panel,
#app-home-profile-panel .app-home-profile-loading-card,
#app-home-profile-panel .app-profile-completion-card {
  width: min(100%, var(--app-right-panel-card-max));
  max-width: var(--app-right-panel-card-max);
  margin-left: auto;
  margin-right: auto;
}

.auth-brand-line {
  margin-top: -0.65rem;
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
}

.auth-intro-lead {
  margin-bottom: 0.65rem;
}

.auth-intro-body {
  margin-top: 0;
  margin-bottom: 1.15rem;
}

.marketing-intro-line {
  margin: 0.6rem 0 1rem;
}

.marketing-feature-list {
  list-style: none;
  margin: 0.55rem 0 0.35rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
}

.marketing-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.92rem;
  line-height: 1.42;
}

.marketing-bullet-logo {
  width: 0.95rem;
  height: 0.95rem;
  margin-top: 0.17rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.marketing-bullet-logo svg {
  width: 100%;
  height: 100%;
  display: block;
}

.auth-choice-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.15rem;
}

.auth-text-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.65rem 0.5rem;
  min-height: var(--tap-min);
  border: none;
  background: transparent;
  color: var(--text);
  font-size: max(1rem, 16px);
  font-weight: 600;
  font-family: var(--font-ui);
  letter-spacing: 0.03em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: color 0.15s ease;
}

.auth-text-btn:hover {
  color: var(--ui-action-hover);
}

.auth-text-btn:active {
  animation: btn-text-bounce 0.4s ease-out;
}

.auth-text-btn:focus-visible {
  outline: none;
  color: var(--ui-action-hover);
}

.auth-text-btn.btn-cta {
  color: var(--ui-cta-text);
  text-shadow: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid color-mix(in srgb, var(--c-yellow) 82%, rgba(255, 255, 255, 0.18));
  border-radius: var(--radius-md);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.42);
}

.auth-text-btn.btn-cta:hover {
  color: var(--ui-cta-text-hover);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.48);
}

.auth-text-btn.btn-cta:focus-visible {
  color: var(--ui-cta-text-hover);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.48), 0 0 0 3px var(--focus);
}

@media (prefers-reduced-motion: reduce) {
  .auth-text-btn:active {
    animation: none;
    color: var(--ui-action-hover);
  }

  .auth-text-btn.btn-cta:active {
    color: var(--ui-cta-text-hover);
  }
}

.auth-flow-back {
  margin-top: 1rem;
  margin-bottom: 0;
  text-align: center;
}

.public-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  padding: 0.4rem 0.75rem max(0.6rem, env(safe-area-inset-bottom, 0px));
  font-size: 0.86rem;
  line-height: 1.4;
}

.public-footer a {
  color: var(--muted);
  text-decoration: none;
}

.public-footer a:hover,
.public-footer a:focus-visible {
  color: var(--ui-action-hover);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

/* Checkbox + caption: grid so the box aligns with the first line of text (overrides global `label` block layout). */
.card form {
  position: relative;
}

label.auth-check-label {
  display: grid;
  grid-template-columns: 1.375rem minmax(0, 1fr);
  column-gap: 0.75rem;
  row-gap: 0;
  /* Row is at least --tap-min tall for touch; center checkbox + copy as one unit */
  align-items: center;
  margin-bottom: 1rem;
  margin-top: 0;
  cursor: pointer;
  font-size: max(1rem, 16px);
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
  min-height: var(--tap-min);
}

.auth-check-input {
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  margin: 0;
  align-self: center;
  justify-self: start;
  accent-color: var(--ui-action-hover);
  cursor: pointer;
}

.auth-check-text {
  margin: 0;
  padding: 0;
  align-self: center;
}

.judicial-post-case-card .auth-check-label {
  align-items: start;
}

.judicial-post-case-card .judicial-clause-ref {
  display: block;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.25;
  margin-bottom: 0.2rem;
}

.judicial-post-case-card .judicial-clause-root .judicial-clause-ref {
  color: color-mix(in srgb, var(--c-yellow) 84%, #ffffff);
}

.judicial-post-case-card .judicial-clause-community .judicial-clause-ref {
  color: color-mix(in srgb, var(--c-cyan) 88%, #ffffff);
}

.judicial-post-case-card .judicial-clause-sanitation {
  opacity: 0.72;
  cursor: not-allowed;
}

.judicial-post-case-card .judicial-clause-sanitation .auth-check-input {
  cursor: not-allowed;
}

.judicial-post-case-card .judicial-clause-sanitation-note {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.88rem;
  line-height: 1.4;
  color: color-mix(in srgb, var(--c-magenta) 72%, var(--text));
}

.judicial-post-case-card .judicial-clause-body {
  display: block;
  color: var(--text);
  font-size: 0.97rem;
  line-height: 1.48;
}

/* Space between the statement editor and the primary CTA (mobile-first). */
.judicial-post-case-card #judicial-case-request-form > button[type="submit"],
.judicial-post-case-card #judicial-appeal-form > button[type="submit"],
.judicial-post-case-card #judicial-community-amendment-form > button[type="submit"] {
  margin-top: 1.25rem;
}

@media (min-width: 720px) {
  .judicial-post-case-card #judicial-case-request-form > button[type="submit"],
  .judicial-post-case-card #judicial-appeal-form > button[type="submit"],
  .judicial-post-case-card #judicial-community-amendment-form > button[type="submit"] {
    margin-top: 1.5rem;
  }
}

/* Honeypot: off-screen; do not remove from DOM (bots often fill hidden fields). */
.auth-honeypot {
  position: absolute;
  left: -10000px;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.auth-register-loading-text {
  margin-bottom: 0.75rem;
}

.auth-resend-notice {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--c-yellow);
  font-weight: 600;
}

/* Post engagement bar — vote is currency; participation unlocks after voting */
.post-engagement-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px solid color-mix(in srgb, var(--c-blue) 22%, transparent);
}

.post-engagement-bar--pre-vote {
  min-height: 2.75rem;
}

.post-engagement-bar--voted {
  flex-wrap: nowrap;
  gap: 0.35rem;
}

.post-engagement-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--c-cyan);
  min-width: 0;
}

.post-engagement-count-icon {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
}

.post-engagement-compose-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

.post-engagement-feel-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--c-blue) 12%, transparent);
}

.post-engagement-feel-heart {
  display: block;
}

.post-engagement-count {
  font-size: 0.9rem;
  font-weight: 600;
  color: inherit;
  min-width: 0.75rem;
  line-height: 1;
}

.post-engagement-count--prompt {
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.25;
  max-width: 11rem;
}

.post-engagement-bar--public-guest {
  justify-content: flex-start;
}

.post-engagement-compose-input {
  width: 100%;
  margin: 0;
  padding: 0.45rem 0.65rem;
  font-size: max(1rem, 16px);
  line-height: 1.25;
  border: 1px solid color-mix(in srgb, var(--c-blue) 35%, transparent);
  border-radius: var(--radius-md);
  background: rgba(3, 4, 8, 0.58);
  color: var(--text);
}

.post-engagement-compose-input::placeholder {
  color: var(--muted);
}

.post-engagement-votes {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  flex: 0 0 auto;
}

.post-engagement-vote-btn.is-selected {
  outline: none;
}

.post-engagement-thread-slot {
  margin-top: 0.25rem;
}

.post-thread-mirrors,
.post-thread-comments {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.post-thread-row {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0.1rem 0;
}

.post-thread-row--l2 {
  margin-left: 1.65rem;
}

.post-thread-row--l3 {
  margin-left: 3.15rem;
}

.post-thread-reply-compose--l2 {
  margin-left: 3.15rem;
}

.post-thread-reply-compose--l3 {
  margin-left: 4.65rem;
}

.post-thread-row--mirror .post-thread-line {
  border-left: 2px solid var(--c-magenta);
  padding-left: 0.35rem;
}

.post-thread-avatar-link {
  display: inline-flex;
  flex: 0 0 auto;
  border-radius: var(--radius-pill);
  text-decoration: none;
}

.post-thread-avatar-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--focus);
}

.post-thread-avatar {
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: var(--radius-pill);
  object-fit: cover;
  margin-top: 0.05rem;
  background: var(--bg);
}

.post-thread-avatar--fallback {
  display: inline-block;
  background: color-mix(in srgb, var(--c-blue) 18%, transparent);
}

.post-thread-row-main {
  flex: 1 1 auto;
  min-width: 0;
}

.post-thread-line {
  font-size: 0.86rem;
  line-height: 1.32;
  color: var(--text);
}

.post-thread-line--clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.post-thread-handle {
  color: var(--c-yellow);
  font-weight: 600;
  text-decoration: none;
}

.post-thread-handle:hover {
  text-decoration: underline;
}

.post-thread-reply-ref-link {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

.post-thread-reply-ref-link:hover {
  text-decoration: underline;
}

.post-thread-body {
  display: inline;
  color: inherit;
}

.post-thread-body p {
  display: inline;
  margin: 0;
}

.post-thread-expand-btn {
  margin-top: 0.05rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--c-yellow);
  font-size: 0.76rem;
  cursor: pointer;
}

.post-engagement-feel-badge--mood {
  margin-left: auto;
}

.post-engagement-feel--controversial .post-engagement-feel-heart {
  filter: none;
}

.post-thread-comment-block {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.post-thread-reply-compose {
  margin: 0 0 0.1rem 1.85rem;
}

.post-thread-reply-compose .post-engagement-compose-input {
  width: 100%;
}

.post-thread-row-actions {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0;
  background: none;
}

.post-thread-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--c-cyan);
  cursor: pointer;
}

.post-thread-action-btn:hover {
  color: var(--c-yellow);
}

.post-thread-open-case-btn {
  color: var(--c-red);
}

.post-thread-open-case-btn:hover {
  color: var(--c-yellow);
}

.post-thread-vote-group {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  margin-right: 0.15rem;
}

.post-thread-vote-btn--yes.is-active {
  color: var(--c-yellow);
}

.post-thread-vote-btn--no.is-active {
  color: var(--c-red);
}

.create-post-mention-suggestions {
  margin-top: 0.35rem;
}

.create-post-mention-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.35rem 0.5rem;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.create-post-mention-option:hover {
  background: color-mix(in srgb, var(--c-cyan) 18%, transparent);
}

.post-thread-load-more {
  display: block;
  width: 100%;
  margin: 0.35rem 0 0.15rem;
  padding: 0.45rem 0.65rem;
  min-height: 2.75rem;
  border: 1px solid color-mix(in srgb, var(--c-yellow) 45%, transparent);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--c-yellow) 12%, transparent);
  color: var(--c-yellow);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.post-thread-load-more:hover {
  background: color-mix(in srgb, var(--c-yellow) 22%, transparent);
}

.post-thread-reply-ref {
  color: color-mix(in srgb, var(--c-cyan) 80%, #fff);
  font-size: 0.76rem;
}

.post-thread-row--hidden {
  min-height: 44px;
  align-items: center;
}

.post-thread-hidden-label {
  margin: 0;
  color: color-mix(in srgb, var(--text-muted, #888) 88%, #fff);
  font-size: 0.88rem;
  font-style: italic;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
