/* UI refinement: About page container simplification, title deduplication,
   scope grouping, and hover glow alignment with Changelog roadmap */
/* ======================================================================
   StreamSuites — Public Pages (Clips & Polls)
   Standalone styling that reuses the dark palette and typography.
   ====================================================================== */

/* ------------------------------
   Layout & Typography
   ------------------------------ */
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-root);
  color: var(--text-primary);
  font-family: "SuiGenerisRg", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

:root {
  --public-shell-max: 1640px;
  --public-shell-gutter: 22px;
  --public-header-height: clamp(72px, 9vh, 92px);
  --public-footer-height: clamp(64px, 8vh, 88px);
}

.page-shell {
  max-width: 1640px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.public-shell :is(
    p,
    li,
    .muted,
    .description,
    .helper-text,
    .page-heading .lede,
    .hero-block p,
    .link-list a,
    .meta-row,
    .meta-list,
    .meta-list li,
    .scorebar .label span,
    .result-label,
    .timestamp,
    .more-link,
    .info-card p
  ) {
  font-size: 75%;
  line-height: 1.45;
}

.public-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark img {
  height: 48px;
  width: auto;
  display: block;
}

.brand-mark:hover,
.brand-mark:focus-visible {
  color: inherit;
  text-decoration: none;
  outline: none;
}

.brand-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.brand-title h1 {
  margin: 0;
  font-family: "RechargeBd", sans-serif;
  font-size: 22px;
  letter-spacing: 0.04em;
}

.brand-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.quiet-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.quiet-link:hover,
.quiet-link:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  outline: none;
}

.hero-shell {
  position: relative;
  padding: 34px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 20% 20%, rgba(140, 199, 54, 0.08), rgba(11, 12, 19, 0.9)),
              linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.hero-shell::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  position: relative;
  z-index: 1;
}

.hero-block h2 {
  margin: 0 0 10px;
  font-size: 26px;
  letter-spacing: 0.05em;
}

.hero-block p {
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: 14px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.pill-ghost {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  color: var(--text-muted);
  letter-spacing: 0.05em;
  font-size: 9px;
  line-height: 1.2;
  vertical-align: middle;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.info-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-card h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: 0.04em;
}

.info-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.link-list a {
  color: var(--link-accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.link-list a:hover {
  text-decoration: underline;
}

.section-heading {
  margin: 26px 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-heading h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.05em;
}

.section-heading .section-kicker {
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 13px;
}

.meta-list strong {
  color: var(--text-primary);
  font-weight: 600;
}

.bar-stack {
  display: grid;
  gap: 10px;
}

.scorebar {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.04));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.scorebar .label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.scorebar .label span {
  color: var(--text-secondary);
  font-size: 12px;
}

.scorebar .fill {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(140, 199, 54, 0.8), rgba(225, 172, 30, 0.8));
  position: relative;
  overflow: hidden;
}

.scorebar .fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(126, 3, 170, 0.5), rgba(0, 255, 251, 0.5));
  opacity: 0.35;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
  vertical-align: middle;
}

.pill-success {
  background: rgba(87, 186, 120, 0.18);
  border-color: rgba(87, 186, 120, 0.55);
  color: #c8f4d8;
}

.cta-link {
  --border-color: linear-gradient(-45deg, #ffae00, #7e03aa, #00fffb);
  --border-width: 0.125em;
  --curve-size: 0.5em;
  --blur: 30px;
  --bg: #080312;
  --color: #ffffff;
  color: var(--color);
  cursor: pointer;
  position: relative;
  isolation: isolate;
  display: inline-grid;
  place-content: center;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  border: 0;
  text-decoration: none;
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.6);
  clip-path: polygon(
    0% var(--curve-size),
    var(--curve-size) 0,
    100% 0,
    100% calc(100% - var(--curve-size)),
    calc(100% - var(--curve-size)) 100%,
    0 100%
  );
  transition: color 250ms;
}

.public-header .cta-link,
.public-header .cta-link:visited {
  color: #fff;
}

.cta-link::after,
.cta-link::before {
  content: "";
  position: absolute;
  inset: 0;
}

.cta-link::before {
  background: var(--border-color);
  background-size: 300% 300%;
  animation: move-bg7234 5s ease infinite;
  z-index: -2;
}

.cta-link::after {
  background: var(--bg);
  z-index: -1;
  clip-path: polygon(
    var(--border-width) calc(var(--curve-size) + var(--border-width) * 0.5),
    calc(var(--curve-size) + var(--border-width) * 0.5) var(--border-width),
    calc(100% - var(--border-width)) var(--border-width),
    calc(100% - var(--border-width)) calc(100% - calc(var(--curve-size) + var(--border-width) * 0.5)),
    calc(100% - calc(var(--curve-size) + var(--border-width) * 0.5)) calc(100% - var(--border-width)),
    var(--border-width) calc(100% - var(--border-width))
  );
  transition: clip-path 500ms;
}

.cta-link:where(:hover, :focus)::after {
  clip-path: polygon(
    calc(100% - var(--border-width)) calc(100% - calc(var(--curve-size) + var(--border-width) * 0.5)),
    calc(100% - var(--border-width)) var(--border-width),
    calc(100% - var(--border-width)) var(--border-width),
    calc(100% - var(--border-width)) calc(100% - calc(var(--curve-size) + var(--border-width) * 0.5)),
    calc(100% - calc(var(--curve-size) + var(--border-width) * 0.5)) calc(100% - var(--border-width)),
    calc(100% - calc(var(--curve-size) + var(--border-width) * 0.5)) calc(100% - var(--border-width))
  );
  transition: 200ms;
}

.cta-link:where(:hover, :focus) {
  color: #fff;
  text-decoration: none;
}

@keyframes move-bg7234 {
  0% {
    background-position: 31% 0%;
  }
  50% {
    background-position: 70% 100%;
  }
  100% {
    background-position: 31% 0%;
  }
}

.page-heading {
  margin: 26px 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.poll-detail-page .page-heading {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.page-heading h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0.04em;
}

.page-heading .lede {
  color: var(--text-secondary);
  font-size: 14px;
}

.helper-text {
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 10px;
}

/* ------------------------------
   Cards & Grids
   ------------------------------ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  width: 100%;
}

.card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
}

.card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--text-secondary);
  font-size: 12px;
}

.divider {
  opacity: 0.4;
}

.status-chip {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  font-size: 9px;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
}

.status-chip.published {
  color: var(--accent-primary);
  border-color: rgba(140, 199, 54, 0.5);
}

.status-chip.encoding {
  color: var(--accent-warning);
  border-color: rgba(225, 172, 30, 0.5);
}

.status-chip.pending {
  color: var(--text-secondary);
}

.title {
  font-size: 16px;
  font-family: "RechargeBd", sans-serif;
  letter-spacing: 0.02em;
}

.description {
  color: var(--text-secondary);
  font-size: 13px;
}

.platform-badge {
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.2;
  vertical-align: middle;
}

.platform-badge.rumble {
  color: #7dd63d;
  border-color: rgba(125, 214, 61, 0.4);
}

.platform-badge.youtube {
  color: #ff6961;
  border-color: rgba(255, 105, 97, 0.4);
}

.platform-badge.twitch {
  color: #a970ff;
  border-color: rgba(169, 112, 255, 0.35);
}

.platform-badge.twitter {
  color: #2aa9e0;
  border-color: rgba(42, 169, 224, 0.35);
}

.platform-badge.generic {
  color: var(--text-secondary);
}

.platform-badge img {
  width: 12px;
  height: 12px;
  object-fit: contain;
  display: inline-block;
}

.card-link {
  color: inherit;
  text-decoration: none;
  display: block;
  height: 100%;
}

.card-link:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

/* ------------------------------
   Clip cards
   ------------------------------ */
.thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  overflow: hidden;
}

.thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.4));
}

.thumb .duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #f5f5f5;
  font-size: 11px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.clip-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.creator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.creator .avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.creator .avatar.fallback {
  background-color: var(--text-secondary);
  -webkit-mask: url("/assets/icons/ui/profile.svg") center/70% no-repeat;
  mask: url("/assets/icons/ui/profile.svg") center/70% no-repeat;
  border-color: rgba(255, 255, 255, 0.06);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
  display: inline-block;
}

/* ------------------------------
   Poll cards
   ------------------------------ */
.poll-status {
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
}

.poll-status.open {
  color: var(--accent-primary);
  border-color: rgba(140, 199, 54, 0.5);
}

.poll-status.closed {
  color: var(--text-muted);
}

.results {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pie-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 8px;
}

.pie-chart {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: conic-gradient(
    rgba(140, 199, 54, 0.8) 0deg 120deg,
    rgba(225, 172, 30, 0.8) 120deg 210deg,
    rgba(91, 192, 222, 0.8) 210deg 360deg
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 6px rgba(14, 16, 21, 0.8);
  margin: 0 auto;
}

.pie-legend {
  display: grid;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 11px;
}

.pie-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pie-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

.pie-swatch.primary {
  background: rgba(140, 199, 54, 0.9);
}

.pie-swatch.secondary {
  background: rgba(225, 172, 30, 0.9);
}

.pie-swatch.tertiary {
  background: rgba(91, 192, 222, 0.9);
}

.result-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result-label {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 12px;
}

.result-bar {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.result-bar span {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(140, 199, 54, 0.8), rgba(140, 199, 54, 0.45));
}

.timestamp {
  color: var(--text-muted);
  font-size: 11px;
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--link-accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 12px;
}

.more-link:hover {
  text-decoration: underline;
}

/* ------------------------------
   States
   ------------------------------ */
.empty-state {
  padding: 26px;
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
}

.skeleton {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.05));
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton-thumb {
  height: 0;
  padding-top: 56.25%;
}

.skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.skeleton-line.short {
  width: 60%;
}

.skeleton-line.medium {
  width: 80%;
}

/* ------------------------------
   Footer
   ------------------------------ */
.public-footer {
  margin-top: 32px;
  padding: 14px
    max(var(--public-shell-gutter), calc((100vw - var(--public-shell-max)) / 2 + var(--public-shell-gutter)));
  color: var(--text-muted);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  gap: 10px;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  border-radius: 0;
  background: rgba(12, 17, 26, 0.85);
  box-sizing: border-box;
  z-index: 20;
}

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

.public-footer a:hover {
  text-decoration: underline;
}

.public-footer .footer-login {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.public-footer .login-primary {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--accent-primary);
  background: rgba(140, 199, 54, 0.12);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.public-footer .login-primary:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px rgba(140, 199, 54, 0.4);
  text-decoration: none;
}

.public-footer .login-admin-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.public-footer .login-admin-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.public-footer .login-admin {
  font-size: 11px;
  color: var(--text-secondary);
  text-decoration: none;
}

.public-footer .login-admin:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

/* ------------------------------
   Detail pages
   ------------------------------ */
.detail-shell {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 18px;
  margin-top: 22px;
}

.poll-detail-shell {
  grid-template-columns: minmax(0, 5fr) minmax(0, 2fr);
}

.detail-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.detail-title {
  font-family: "RechargeBd", sans-serif;
  font-size: 22px;
  margin: 0;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--text-secondary);
  font-size: 12px;
}

.detail-meta .label {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 10px;
}

.detail-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text-primary);
  font-size: 13px;
}

.chart-placeholder {
  min-height: 220px;
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.chart-placeholder.pie {
  background: radial-gradient(circle at 40% 40%, rgba(140, 199, 54, 0.08), rgba(255, 255, 255, 0.02));
  position: relative;
}

.chart-placeholder.pie::after {
  content: "";
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(
    rgba(140, 199, 54, 0.85) 0deg 160deg,
    rgba(225, 172, 30, 0.85) 160deg 250deg,
    rgba(91, 192, 222, 0.85) 250deg 360deg
  );
  position: absolute;
  inset: 0;
  margin: auto;
  box-shadow: inset 0 0 0 10px rgba(14, 16, 21, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.visualization-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  position: relative;
}

.viz-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.viz-top-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.viz-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
}

.viz-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px;
}

.viz-toggle-btn {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-family: "SuiGenerisRg", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.viz-toggle-btn.is-active {
  background: linear-gradient(135deg, rgba(140, 199, 54, 0.16), rgba(255, 255, 255, 0.04));
  color: #fff;
  box-shadow: 0 0 0 1px rgba(140, 199, 54, 0.35), 0 0 12px rgba(140, 199, 54, 0.18);
}

.viz-toggle-btn:hover {
  color: #fff;
}

.viz-hint {
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.viz-utility-btn {
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.viz-utility-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.viz-utility-btn.ghost {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--text-secondary);
}

.viz-stage {
  background: radial-gradient(circle at 30% 25%, rgba(140, 199, 54, 0.08), rgba(10, 12, 19, 0.9));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  display: grid;
  place-items: center;
  min-height: 420px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.viz-view {
  width: 100%;
  max-width: 520px;
  display: none;
}

.viz-view.active {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.pie-shell {
  position: relative;
  width: clamp(360px, 70vw, 540px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.interactive-pie {
  --pie-rotation: 0deg;
  cursor: grab;
  transition: transform 0.18s ease;
}

.interactive-pie.is-dragging {
  cursor: grabbing;
}

.pie-surface {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(
    rgba(140, 199, 54, 0.85) 0deg 160deg,
    rgba(225, 172, 30, 0.85) 160deg 250deg,
    rgba(91, 192, 222, 0.85) 250deg 360deg
  );
  box-shadow: inset 0 0 0 18px rgba(14, 16, 21, 0.88), 0 18px 40px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transform: rotate(var(--pie-rotation, 0deg));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.interactive-pie.is-dragging .pie-surface {
  box-shadow: inset 0 0 0 18px rgba(14, 16, 21, 0.92), 0 18px 50px rgba(0, 0, 0, 0.5);
  transition: none;
}

.color-panel {
  position: absolute;
  right: 12px;
  top: 72px;
  width: min(280px, 90%);
  background: rgba(12, 14, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45);
  padding: 12px;
  display: grid;
  gap: 10px;
  z-index: 4;
}

.color-panel[hidden] {
  display: none;
}

.color-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-primary);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.color-panel-body {
  display: grid;
  gap: 10px;
}

.color-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.color-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--text-primary);
}

.color-swatch {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.color-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-inputs input[type="color"] {
  width: 36px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--border-subtle);
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.color-inputs input[type="text"] {
  width: 90px;
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.pie-center {
  position: absolute;
  width: 40%;
  height: 40%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.05), rgba(8, 3, 18, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 10px;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.38);
  pointer-events: none;
}

.pie-center .center-title {
  font-family: "RechargeBd", sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pie-center .center-sub {
  color: var(--text-secondary);
  font-size: 11px;
}

.custom-pie .pie-center.logo-center {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 1px solid rgba(0, 255, 251, 0.35);
  background: rgba(8, 3, 18, 0.9);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.custom-pie .pie-center.logo-center img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 0 12px rgba(0, 255, 251, 0.35));
}

/* Tally detail — enforce larger logo center */
.tally-detail-page .custom-pie .pie-center.logo-center {
  width: 80px;
  height: 80px;
}

.tally-detail-page .custom-pie .pie-center.logo-center img {
  width: 100%;
  height: 100%;
}

.viz-legend {
  width: 100%;
  display: grid;
  gap: 8px;
}

.viz-legend .pie-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 12px;
}

.viz-legend .pie-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}

.bar-rows {
  width: 100%;
  display: grid;
  gap: 12px;
}

.bar-row {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.01);
}

.bar-label {
  font-family: "RechargeBd", sans-serif;
  font-size: 12px;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.bar-meter {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-bottom: 8px;
}

.bar-meter span {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, rgba(140, 199, 54, 0.9), rgba(0, 255, 251, 0.65));
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0, 255, 251, 0.25);
  transition: width 0.4s ease;
}

.bar-meta {
  color: var(--text-secondary);
  font-size: 11px;
}

.viz-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.92));
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 40;
  display: none;
}

body.viz-expanded .viz-overlay {
  display: block;
}

.visualization-panel.is-expanded {
  position: fixed;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, 94vw);
  max-height: calc(100vh - 64px);
  overflow: auto;
  z-index: 50;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.visualization-panel.is-expanded .viz-stage {
  min-height: 72vh;
}

body.viz-expanded {
  overflow: hidden;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.stat-block {
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.stat-block h4 {
  margin: 0 0 8px;
  font-size: 14px;
  letter-spacing: 0.03em;
}

.vote-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.vote-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}

.vote-item strong {
  color: var(--text-primary);
  font-size: 16px;
}

.detail-media {
  width: 100%;
  padding-top: 56.25%;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.5));
}

.detail-media .placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.detail-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 11px;
}

.vote-card .detail-heading {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.vote-card .detail-title {
  font-size: 18px;
}

.vote-card .detail-heading .timestamp {
  order: 2;
  font-size: 11px;
}

/* ------------------------------
   Responsive
   ------------------------------ */
@media (max-width: 680px) {
  .public-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .page-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .detail-shell {
    grid-template-columns: 1fr;
  }
}

/* ======================================================================
   Shared public shell (background + nav baseline)
   ====================================================================== */
.public-bg {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(86, 136, 255, 0.08), rgba(6, 12, 20, 0.95)),
    radial-gradient(circle at 80% 10%, rgba(255, 118, 190, 0.08), transparent 40%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.05), rgba(12, 18, 28, 0.65));
  filter: saturate(1.1);
  z-index: 0;
  pointer-events: none;
}

.public-surface {
  position: relative;
  z-index: 1;
}

.public-shell {
  max-width: var(--public-shell-max);
  margin: 0 auto;
  padding: calc(var(--public-header-height) + 32px)
    max(var(--public-shell-gutter), calc((100vw - var(--public-shell-max)) / 2 + var(--public-shell-gutter)))
    calc(var(--public-footer-height) + 48px);
  position: relative;
  box-sizing: border-box;
}

.public-topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  padding: 14px
    max(var(--public-shell-gutter), calc((100vw - var(--public-shell-max)) / 2 + var(--public-shell-gutter)));
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  box-sizing: border-box;
  z-index: 20;
}

.public-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #e7f1ff;
  text-decoration: none;
}

.public-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.public-brand h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.05em;
}

.public-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.public-nav-wrapper,
.public-menu-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  position: relative;
}

.public-nav-wrapper .hamburger,
.public-menu-group .hamburger {
  display: none;
}

.public-nav a {
  color: #dfe5f3;
  text-decoration: none;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.public-nav a:hover,
.public-nav a:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}

.version-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(140, 199, 54, 0.2);
  border: 1px solid rgba(140, 199, 54, 0.5);
  color: #e7f7c8;
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  vertical-align: middle;
}

.public-hero {
  margin-top: 22px;
  margin-bottom: 26px;
  padding: 26px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(30, 41, 57, 0.8), rgba(17, 23, 31, 0.8)),
    radial-gradient(circle at 18% 20%, rgba(140, 199, 54, 0.15), rgba(0, 0, 0, 0));
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.5);
}

.public-hero h2 {
  margin: 0 0 10px;
  font-size: 28px;
  letter-spacing: 0.05em;
}

.public-hero p {
  margin: 0 0 12px;
  color: #c6d7f5;
  max-width: none;
}


.public-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 560px);
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.public-roadmap-header {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: flex-start;
}

@media (max-width: 860px) {
  .public-hero-grid {
    grid-template-columns: 1fr;
  }
}

.public-hero-copy {
  flex: 1 1 480px;
  min-width: 0;
}

.public-roadmap-copy {
  max-width: 960px;
  min-width: 0;
}

.public-hero + .public-stack,
.public-hero + section,
.public-hero + .public-columns,
.public-hero + article {
  margin-top: 12px;
}

.public-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.public-footer {
  margin-top: 34px;
  padding: 14px
    max(var(--public-shell-gutter), calc((100vw - var(--public-shell-max)) / 2 + var(--public-shell-gutter)));
  border-radius: 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 17, 26, 0.85);
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  flex-wrap: wrap;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  box-sizing: border-box;
  z-index: 20;
}

.public-footer nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.public-footer a {
  color: #e7f1ff;
  text-decoration: none;
  font-size: 13px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.public-footer a:hover { text-decoration: underline; }

/* ======================================================================
   Roadmap progress bars (native <progress>)
   ====================================================================== */
:root {
  --roadmap-h: 1.05em;
  --roadmap-r: 0.68em;
  --roadmap-b: 0.15em;
  --roadmap-inner-r: calc(var(--roadmap-r) - var(--roadmap-b));
}

.public-roadmap-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.public-roadmap-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.public-roadmap-card:hover {
  border-color: rgba(120, 195, 255, 0.4);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.public-roadmap-card.is-open {
  border-color: rgba(0, 198, 255, 0.45);
  background: radial-gradient(circle at 18% 24%, rgba(0, 198, 255, 0.12), rgba(255, 255, 255, 0.02));
}

.ss-progress-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ss-progress-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.ss-progress-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.ss-progress-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  background-color: currentColor;
  mask: var(--progress-icon) center / contain no-repeat;
  -webkit-mask: var(--progress-icon) center / contain no-repeat;
}

.ss-progress-right {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.ss-progress-meta { white-space: nowrap; }

.ss-progress-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.ss-progress-toggle:hover {
  border-color: rgba(0, 198, 255, 0.4);
  color: var(--text-primary);
  background: rgba(0, 198, 255, 0.08);
}

.ss-progress-toggle span {
  display: inline-block;
  transition: transform 0.18s ease;
}

.ss-progress-row.is-open .ss-progress-toggle span {
  transform: rotate(90deg) translateX(-2px);
}

.ss-skill-description {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  color: var(--text-muted);
}

.ss-skill-description p {
  margin: 0;
  line-height: 1.55;
  font-size: 0.95em;
}

.ss-skill-description-inner { padding: 6px 10px 0 0; }

.public-roadmap-card .ss-skill-description-inner {
  padding: 8px 0 0;
  max-width: none;
}

.public-progress-wrapper { width: 100%; }

.public-roadmap-progress {
  --roadmap-fill: linear-gradient(90deg, #57b9ff, #63ffa2);
  position: relative;
  display: block;
  width: 100%;
  height: var(--roadmap-h);
  border: solid var(--roadmap-b) #1f2633;
  border-radius: var(--roadmap-r);
  background: linear-gradient(#0e1118, #1d2430);
  box-sizing: border-box;
  overflow: hidden;
  appearance: none;
  box-shadow: inset 0 0 0.2em rgba(0, 0, 0, 0.65);
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.public-roadmap-progress::-webkit-progress-bar {
  background: transparent;
  border-radius: var(--roadmap-r);
}

.public-roadmap-progress::-webkit-progress-value {
  position: relative;
  border-radius: var(--roadmap-inner-r);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 6px 18px rgba(0, 210, 255, 0.25),
    0 0 14px rgba(0, 210, 255, 0.45);
  background-image:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.35), transparent 60%),
    var(--fill, var(--roadmap-fill));
  background-size: 200% 100%;
  background-position: 0% 50%;
  transition: box-shadow 0.3s ease, filter 0.3s ease;
}

.public-roadmap-progress::-moz-progress-bar {
  border-radius: var(--roadmap-inner-r);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 6px 18px rgba(0, 210, 255, 0.25),
    0 0 14px rgba(0, 210, 255, 0.45);
  background-image:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.35), transparent 60%),
    var(--fill, var(--roadmap-fill));
  background-size: 200% 100%;
  background-position: 0% 50%;
  transition: box-shadow 0.3s ease, filter 0.3s ease;
}

.public-roadmap-progress.is-paused::-webkit-progress-value,
.public-roadmap-progress.is-paused::-moz-progress-bar {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 6px 18px rgba(255, 95, 109, 0.35),
    0 0 14px rgba(255, 95, 109, 0.55);
}

.public-roadmap-progress::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 40%, rgba(255, 255, 255, 0.12), transparent 35%),
    radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.12), transparent 38%),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.08), transparent 35%);
  mix-blend-mode: screen;
  opacity: 0.2;
  pointer-events: none;
}

.public-roadmap-card:hover .public-roadmap-progress {
  box-shadow: inset 0 0 0.25em rgba(0, 0, 0, 0.65), 0 0 0.55em rgba(120, 195, 255, 0.25);
  border-color: rgba(120, 195, 255, 0.4);
}

@keyframes ssFillFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes roadmapGlowPulse {
  0% {
    box-shadow:
      inset 0 0 0.25em rgba(0, 0, 0, 0.55),
      0 0 0.4em rgba(120, 195, 255, 0.25),
      0 0 0.95em rgba(96, 237, 190, 0.18);
  }
  100% {
    box-shadow:
      inset 0 0 0.2em rgba(0, 0, 0, 0.45),
      0 0 0.7em rgba(120, 195, 255, 0.34),
      0 0 1.2em rgba(96, 237, 190, 0.25);
  }
}

.public-roadmap-progress.is-glow {
  box-shadow: inset 0 0 0.25em rgba(0, 0, 0, 0.55), 0 0 0.65em rgba(120, 195, 255, 0.32);
  border-color: rgba(120, 195, 255, 0.4);
}

.public-roadmap-progress.is-glow::-webkit-progress-value {
  filter: brightness(1.08);
  animation: roadmapGlowPulse 2.4s ease-in-out infinite alternate;
}

.public-roadmap-progress.is-glow::-moz-progress-bar {
  filter: brightness(1.08);
  animation: roadmapGlowPulse 2.4s ease-in-out infinite alternate;
}

.public-roadmap-card:hover .public-roadmap-progress::-webkit-progress-value,
.public-roadmap-card:focus-within .public-roadmap-progress::-webkit-progress-value {
  animation: ssFillFlow 1.6s linear infinite;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28),
    0 8px 20px rgba(0, 210, 255, 0.3),
    0 0 16px rgba(0, 210, 255, 0.55);
}

.public-roadmap-card:hover .public-roadmap-progress::-moz-progress-bar,
.public-roadmap-card:focus-within .public-roadmap-progress::-moz-progress-bar {
  animation: ssFillFlow 1.6s linear infinite;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28),
    0 8px 20px rgba(0, 210, 255, 0.3),
    0 0 16px rgba(0, 210, 255, 0.55);
}

.public-roadmap-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.02em;
  margin-left: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.public-roadmap-status.paused {
  color: #0e0b0b;
  background: linear-gradient(120deg, #ff5f6d, #ffc371);
  box-shadow: 0 0 12px rgba(255, 95, 109, 0.4);
  border-color: rgba(255, 95, 109, 0.75);
}

.public-roadmap-legend,
.ss-roadmap-legend {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.9em;
}

.ss-legend-summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 0.88em;
  letter-spacing: 0.01em;
}

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

.ss-legend-body {
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  max-width: clamp(360px, 40vw, 520px);
  min-width: 0;
  font-size: 0.84em;
  color: var(--text-muted);
  line-height: 1.5;
  width: 100%;
  font-family: "SuiGenerisRg", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.ss-legend-row { font-size: 0.84em; line-height: 1.45; }

.ss-legend-row + .ss-legend-row { margin-top: 6px; }

.changelog-container { display: flex; flex-direction: column; gap: 12px; }

.changelog-header-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.changelog-title {
  margin: 0;
  line-height: 1.1;
}

.changelog-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;

  /* optical correction — REQUIRED */
  transform: translateY(-1px);
}

.changelog-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  transform: translateY(-0.05em);
}

.changelog-entry .section-heading {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.changelog-body { display: grid; gap: 10px; }

.changelog-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 2px 0 4px;
}

.changelog-category h4 {
  margin: 0 0 6px;
  font-size: 0.95em;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}

.changelog-error .lede { color: #f7caca; }

.ss-tag-version {
  background: linear-gradient(90deg, #a855f7, #7c3aed);
  color: #ffffff;
  border-color: rgba(168, 85, 247, 0.6);
}
/* ======================================================================
   Public typography helpers
   ====================================================================== */

.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

.section-heading .lede {
  color: #c3d1eb;
  font-size: 14px;
}

.public-list {
  list-style: disc;
  padding-left: 18px;
  color: #dce5f7;
}

.public-stack { display: flex; flex-direction: column; gap: 12px; }

.support-hub .support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 12px;
}

.support-hub .support-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-panel-alt);
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.support-hub .support-btn:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
  text-decoration: none;
}

.support-hub .support-btn:active {
  transform: translateY(1px);
}

.support-hub .support-btn-primary {
  background: linear-gradient(180deg, rgba(140, 199, 54, 0.85), rgba(140, 199, 54, 0.65));
  border-color: rgba(140, 199, 54, 0.9);
  color: #0b1205;
  box-shadow: 0 0 12px var(--glow-soft);
}

.support-hub .support-btn-primary:hover {
  box-shadow: 0 0 18px var(--glow-hard);
}

.support-hub .support-btn-secondary {
  background: var(--bg-panel-alt);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.support-hub .support-links {
  margin-top: 10px;
}

.support-hub .placeholder-link {
  color: var(--link-accent);
  text-decoration: underline dotted;
  opacity: 0.72;
  cursor: default;
}

.support-hub .support-embed-frame {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(12, 17, 26, 0.85));
  border: 1px solid rgba(120, 195, 255, 0.28);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.support-hub .support-embed-frame iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: #0b0f17;
}

@media (max-width: 720px) {
  .public-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-nav-wrapper,
  .public-menu-group {
    width: 100%;
    justify-content: flex-end;
  }

  .public-nav-wrapper .hamburger,
  .public-menu-group .hamburger {
    display: inline-flex;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    padding: 6px;
    background: linear-gradient(
      139deg,
      rgba(36, 40, 50, 1) 0%,
      rgba(36, 40, 50, 1) 0%,
      rgba(37, 28, 40, 1) 100%
    );
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38);
  }

  .public-nav-wrapper .nav-toggle:checked + .hamburger svg,
  .public-menu-group .nav-toggle:checked + .hamburger svg {
    transform: rotate(-45deg);
  }

  .public-nav-wrapper .nav-toggle:checked + .hamburger svg .line-top-bottom,
  .public-menu-group .nav-toggle:checked + .hamburger svg .line-top-bottom {
    stroke-dasharray: 20 300;
    stroke-dashoffset: -32.42;
  }

  .public-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    background: linear-gradient(
      139deg,
      rgba(36, 40, 50, 1) 0%,
      rgba(36, 40, 50, 1) 0%,
      rgba(37, 28, 40, 1) 100%
    );
    padding: 12px 10px;
    border-radius: 12px;
    border: 1px solid #42434a;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
  }

  .public-menu-group .header-actions {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    background: linear-gradient(
      139deg,
      rgba(36, 40, 50, 1) 0%,
      rgba(36, 40, 50, 1) 0%,
      rgba(37, 28, 40, 1) 100%
    );
    padding: 12px 10px;
    border-radius: 12px;
    border: 1px solid #42434a;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
  }

  .public-nav a,
  .public-menu-group .header-actions a,
  .public-menu-group .header-actions .cta-link,
  .public-menu-group .header-actions .quiet-link,
  .public-menu-group .header-actions .pill {
    width: 100%;
    text-align: left;
  }

  .public-nav-wrapper .nav-toggle:checked ~ .public-nav,
  .public-menu-group .nav-toggle:checked ~ .header-actions {
    display: flex;
  }
}

/* ======================================================================
   Public About (manifest-driven)
   ====================================================================== */
.public-about-shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 16px;
}

.public-about-sections {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.public-about-scope {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.public-about-scope-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.public-about-scope-bar {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(180deg, #8cb7ff, #5ac8ff);
  box-shadow: 0 0 12px rgba(0, 160, 255, 0.45);
}

.public-about-scope-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.public-about-scope-title {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.04em;
}

.public-about-scope-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(90, 200, 255, 0.14);
  border: 1px solid rgba(120, 195, 255, 0.5);
  color: #d9ecff;
}

.public-about-scope-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.public-about-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 4px;
}

.public-about-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.public-about-anchor {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.public-about-anchor:hover,
.public-about-anchor:focus {
  text-decoration: underline;
}

.public-about-section-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.public-about-entry {
  position: relative;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  overflow: hidden;
}

.public-about-entry::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 18% 20%, rgba(0, 170, 255, 0.22), rgba(0, 170, 255, 0));
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.public-about-entry:hover,
.public-about-entry:focus-within {
  border-color: rgba(90, 200, 255, 0.7);
  box-shadow:
    0 0 0 1px rgba(120, 195, 255, 0.55),
    0 16px 30px rgba(0, 0, 0, 0.42),
    0 0 24px rgba(0, 170, 255, 0.28);
  transform: translateY(-1px);
}

.public-about-entry:hover::after,
.public-about-entry:focus-within::after {
  opacity: 1;
}

.public-about-entry-header {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.public-about-body,
.public-about-developer-body p {
  margin: 0;
  color: #d8e4ef;
  line-height: 1.6;
}

.public-about-developer {
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.public-about-toggle {
  align-self: flex-start;
  padding: 7px 13px;
  background: linear-gradient(135deg, #0aa0ff, #58d0ff);
  border: none;
  color: #0d1117;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.public-about-toggle:hover,
.public-about-toggle:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 160, 255, 0.35);
}

.public-about-developer-body {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 12px;
}

.public-about-scope[data-scope-tone="core"] .public-about-scope-bar {
  background: linear-gradient(180deg, #73ffa9, #50d68f);
  box-shadow: 0 0 12px rgba(80, 214, 143, 0.45);
}

.public-about-scope[data-scope-tone="platforms"] .public-about-scope-bar {
  background: linear-gradient(180deg, #6ab7ff, #3f8bff);
  box-shadow: 0 0 12px rgba(63, 139, 255, 0.42);
}

.public-about-scope[data-scope-tone="architecture"] .public-about-scope-bar {
  background: linear-gradient(180deg, #b896ff, #7c6bff);
  box-shadow: 0 0 12px rgba(124, 107, 255, 0.42);
}

.public-about-entry[data-scope-tone="core"] {
  border-color: rgba(80, 214, 143, 0.2);
}

.public-about-entry[data-scope-tone="platforms"] {
  border-color: rgba(90, 200, 255, 0.2);
}

.public-about-entry[data-scope-tone="architecture"] {
  border-color: rgba(188, 156, 255, 0.2);
}

.public-about-entry[data-scope-tone="core"]::after {
  background: radial-gradient(circle at 18% 20%, rgba(80, 214, 143, 0.22), rgba(80, 214, 143, 0));
}

.public-about-entry[data-scope-tone="architecture"]::after {
  background: radial-gradient(circle at 18% 20%, rgba(152, 134, 255, 0.22), rgba(152, 134, 255, 0));
}

.public-alert {
  border-radius: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #0d1117;
}

.public-alert-warning {
  background: rgba(255, 205, 86, 0.16);
  border-color: rgba(255, 205, 86, 0.6);
  color: #ffe9a6;
}

.public-alert ul {
  margin: 6px 0 0 16px;
}
