:root {
  --ps-primary: #0f766e;
  --ps-secondary: #134e4a;
  --ps-accent: #f59e0b;
  --ps-bg: #f8fafc;
  --ps-surface: #ffffff;
  --ps-text: #0f172a;
  --ps-muted: #64748b;
  --ps-font: "Source Serif 4", Georgia, serif;
  --ps-heading-font: "Fraunces", Georgia, serif;
}

.public-shell {
  min-height: 100vh;
  background: var(--ps-bg);
  color: var(--ps-text);
  font-family: var(--ps-font);
  background-image:
    radial-gradient(ellipse 80% 50% at 10% -10%, color-mix(in srgb, var(--ps-primary) 18%, transparent), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, color-mix(in srgb, var(--ps-accent) 12%, transparent), transparent);
}

.public-shell h1,
.public-shell h2,
.public-shell h3,
.site-brand a {
  font-family: var(--ps-heading-font);
}

.site-header {
  border-bottom: 1px solid color-mix(in srgb, var(--ps-text) 10%, transparent);
}

.site-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  width: 100%;
}

.site-brand a {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ps-text);
  text-decoration: none;
}

.site-logo {
  max-height: 2.25rem;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.site-nav a,
.theme-toggle {
  color: var(--ps-muted);
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.theme-toggle {
  line-height: 1;
  padding: 0.2rem 0.35rem;
}

.site-nav a:hover,
.theme-toggle:hover {
  color: var(--ps-primary);
}

.theme-toggle i {
  font-size: 1rem;
}

.site-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.site-body.sidebar-left {
  grid-template-columns: 280px minmax(0, 1fr);
}

.site-body.sidebar-left .site-sidebar {
  order: -1;
}

.site-main {
  min-width: 0;
}

.site-sidebar .sidebar-block {
  padding: 1rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ps-text) 8%, transparent);
}

.site-footer {
  padding: 1.5rem;
  text-align: center;
  color: var(--ps-muted);
  border-top: 1px solid color-mix(in srgb, var(--ps-text) 10%, transparent);
}

.page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 0.5rem;
}

.lede {
  color: var(--ps-muted);
  font-size: 1.15rem;
}

.feed-intro {
  margin: 0 0 1.5rem;
}

.feed {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feed-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  padding: 0.85rem 0;
  border-top: 1px solid color-mix(in srgb, var(--ps-text) 10%, transparent);
}

.feed-pager-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--ps-accent, var(--ps-text));
}

.feed-pager-link.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.feed-pager-status,
.feed-pager-meta {
  font-size: 0.9rem;
  color: var(--ps-muted);
  margin: 0;
}

.feed-card {
  position: relative;
  display: grid;
  grid-template-columns: 4px 1fr;
  background: var(--ps-surface);
  border: 1px solid color-mix(in srgb, var(--ps-text) 10%, transparent);
  overflow: hidden;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--ps-text) 6%, transparent);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.feed-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--ps-text) 10%, transparent);
}

.feed-card-accent {
  grid-row: 1 / -1;
  background: linear-gradient(180deg, var(--ps-primary), var(--ps-accent));
}

.feed-card-accent-short {
  background: linear-gradient(180deg, var(--ps-accent), var(--ps-secondary));
}

.feed-card-media {
  display: block;
  grid-column: 2;
  max-height: 200px;
  overflow: hidden;
}

.feed-card-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.feed-card-body {
  grid-column: 2;
  padding: 1.15rem 1.25rem 1.25rem;
}

.feed-card-type {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ps-primary);
  font-family: var(--ps-heading-font);
}

.feed-card-type-short {
  color: var(--ps-accent);
}

.feed-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.4rem;
}

.feed-card h2 a,
.content-article a,
.feed-view {
  color: var(--ps-primary);
  text-decoration: none;
}

.feed-excerpt {
  margin: 0.35rem 0 0;
  color: color-mix(in srgb, var(--ps-text) 88%, var(--ps-muted));
}

.feed-card-actions {
  margin: 0.95rem 0 0;
}

.feed-view i {
  margin-left: 0.35rem;
  font-size: 0.85em;
}

.feed-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.feed-thumbs img,
.feed-thumbs .lightbox-trigger img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.feed-thumbs-lg {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

/* Short message / post image gallery — natural aspect, click to enlarge */
.msg-gallery {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.msg-gallery.count-1 {
  grid-template-columns: 1fr;
}

.msg-gallery.count-2 {
  grid-template-columns: 1fr 1fr;
}

.msg-gallery.count-3,
.msg-gallery.count-4 {
  grid-template-columns: 1fr 1fr;
}

.msg-gallery .lightbox-trigger {
  display: block;
  background: color-mix(in srgb, var(--ps-text) 4%, var(--ps-surface));
  border: 1px solid color-mix(in srgb, var(--ps-text) 10%, transparent);
  overflow: hidden;
  cursor: zoom-in;
}

.msg-gallery .lightbox-trigger img {
  width: 100%;
  max-height: min(70vh, 560px);
  object-fit: contain;
  display: block;
}

.msg-gallery.count-1 .lightbox-trigger img {
  max-height: min(75vh, 640px);
}

.featured-lightbox {
  display: block;
  cursor: zoom-in;
}

.featured-lightbox img {
  width: 100%;
  display: block;
}

.lightbox-trigger {
  color: inherit;
  text-decoration: none;
}

.ps-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: none;
  background: rgba(0, 0, 0, 0.88);
  cursor: zoom-out;
}

.ps-lightbox-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  object-fit: none;
  cursor: default;
}

.ps-lightbox-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 999px;
  background: color-mix(in srgb, #000 55%, transparent);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.ps-lightbox-close:hover {
  background: color-mix(in srgb, #000 75%, transparent);
}

.content-card {
  margin-bottom: 1.25rem;
}

.content-card:hover {
  transform: none;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--ps-text) 6%, transparent);
}

.content-card-header {
  margin-bottom: 1.5rem;
}

.content-title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  line-height: 1.2;
}

.content-title-sm {
  font-size: 1.35rem;
}

.content-body {
  margin-top: 1rem;
}

.content-body .markdown-body > *:first-child {
  margin-top: 0;
}

.content-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
}

.content-tags a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  background: color-mix(in srgb, var(--ps-primary) 10%, transparent);
  color: var(--ps-primary);
  text-decoration: none;
  font-size: 0.9rem;
}

.feed-card-media-tall {
  max-height: 420px;
}

.feed-card-media-tall img {
  height: auto;
  max-height: 420px;
  object-fit: cover;
  background: transparent;
}

.content-card .feed-card-media-tall {
  max-height: none;
  overflow: hidden;
}

.content-card .feed-card-media-tall img {
  width: 100%;
  max-height: min(60vh, 520px);
  object-fit: cover;
  background: transparent;
}

.feed-card-accent-page {
  background: linear-gradient(180deg, var(--ps-secondary), var(--ps-primary));
}

.feed-card-accent-category {
  background: linear-gradient(180deg, #0ea5e9, var(--ps-primary));
}

.feed-card-accent-comments {
  background: linear-gradient(180deg, var(--ps-muted), var(--ps-secondary));
}

.feed-card-type-page {
  color: var(--ps-secondary);
}

.feed-card-type-category {
  color: #0284c7;
}

.feed-card-type-comments {
  color: var(--ps-muted);
}

.comments-card {
  margin-top: 0.25rem;
}

.comment-form {
  margin-top: 1rem;
}

.comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
  margin-bottom: 0.35rem;
}

.comment-body {
  color: color-mix(in srgb, var(--ps-text) 92%, var(--ps-muted));
}

.login-card {
  max-width: 36rem;
}

.archive-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.45rem;
  border: 1px solid color-mix(in srgb, var(--ps-text) 14%, transparent);
  background: color-mix(in srgb, var(--ps-muted) 12%, var(--ps-surface));
  color: var(--ps-muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.archive-notice i {
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.meta,
.muted {
  color: var(--ps-muted);
  font-size: 0.95rem;
}

.markdown-body img,
.featured,
.media-grid img {
  max-width: 100%;
  height: auto;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.file-card {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  background: var(--ps-surface);
  border: 1px solid color-mix(in srgb, var(--ps-text) 12%, transparent);
}

.file-card-link {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ps-primary);
  text-decoration: none;
}

.comment-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.comment-item {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem;
  background: color-mix(in srgb, var(--ps-bg) 70%, var(--ps-surface));
  border: 1px solid color-mix(in srgb, var(--ps-text) 8%, transparent);
}

.comment-avatar {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ps-primary) 18%, transparent);
  color: var(--ps-primary);
  font-family: var(--ps-heading-font);
  font-size: 0.8rem;
  font-weight: 700;
}

.comment-content {
  min-width: 0;
}

.comment-author {
  font-family: var(--ps-heading-font);
}

.comment-input {
  width: 100%;
  margin: 0.35rem 0 0.65rem;
  padding: 0.75rem;
  font: inherit;
  background: var(--ps-surface);
  color: var(--ps-text);
  border: 1px solid color-mix(in srgb, var(--ps-text) 14%, transparent);
}

.comment-label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: var(--ps-muted);
}

.comment-hint {
  margin: 0.5rem 0 0;
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.btn {
  display: inline-block;
  margin: 0.25rem 0.25rem 0.25rem 0;
  padding: 0.55rem 0.9rem;
  background: var(--ps-primary);
  color: #fff;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}

.login-providers {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1.25rem 0 0.5rem;
}

.login-provider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  text-align: center;
}

.login-dev {
  margin: 1rem 0 0;
}

.admin-shell {
  min-height: 100vh;
}

.theme-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.theme-preview {
  padding: 1.25rem;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  min-height: 12rem;
}

.theme-preview-label {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
}

.theme-preview-logo {
  max-height: 2rem;
  width: auto;
  margin-bottom: 0.5rem;
}

.theme-preview-chip {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.85rem;
}

.follow-list,
.category-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.follow-list a,
.category-list a,
.sidebar-rss {
  color: var(--ps-primary);
  text-decoration: none;
}

.follow-link,
.sidebar-rss,
.category-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.category-link {
  color: var(--ps-primary);
  text-decoration: none;
}

.profile-form {
  max-width: 28rem;
}

.profile-avatar-preview {
  width: 4rem;
  height: 4rem;
  object-fit: cover;
  border-radius: 999px;
  margin: 0.5rem 0 1rem;
  display: block;
}

.follow-link i,
.sidebar-rss i {
  width: 1.1rem;
  text-align: center;
}

.social-admin-icon {
  width: 2.25rem;
  font-size: 1.75rem;
  line-height: 1;
  text-align: center;
  flex-shrink: 0;
  align-self: center;
  color: var(--rz-text-secondary-color, #64748b);
}

.fa-icon-picker {
  width: 100%;
}

.fa-icon-picker-preview {
  font-size: 1.5rem;
  width: 2rem;
  text-align: center;
}

.fa-icon-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(2.5rem, 1fr));
  gap: 0.35rem;
  max-height: 10rem;
  overflow: auto;
  margin-top: 0.5rem;
  padding: 0.35rem;
  border: 1px solid var(--rz-border-color, #e2e8f0);
  border-radius: 0.5rem;
  background: var(--rz-base-50, #f8fafc);
}

.fa-icon-picker-grid-tall {
  max-height: 16rem;
}

.site-nav a.nav-icon-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  padding: 0.2rem 0.35rem;
}

.site-nav .nav-link-icon {
  margin-right: 0.35rem;
}

.site-nav a.nav-icon-only .nav-link-icon {
  margin-right: 0;
}

.account-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.account-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  border: 0;
  color: var(--ps-muted);
  cursor: pointer;
  font: inherit;
  padding: 0.15rem 0.25rem;
}

.account-menu-toggle:hover {
  color: var(--ps-primary);
}

.account-avatar,
.account-avatar-fallback {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--ps-primary) 15%, transparent);
  color: var(--ps-primary);
  font-size: 0.85rem;
}

.account-menu-name {
  max-width: 8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  min-width: 11rem;
  padding: 0.4rem;
  border-radius: 0.6rem;
  background: var(--ps-surface);
  border: 1px solid color-mix(in srgb, var(--ps-text) 12%, transparent);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--ps-text) 12%, transparent);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.account-menu-panel a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.4rem;
  color: var(--ps-text);
  text-decoration: none;
}

.account-menu-panel a:hover {
  background: color-mix(in srgb, var(--ps-primary) 10%, transparent);
  color: var(--ps-primary);
}

.nav-signin {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ps-primary) 35%, transparent);
  color: var(--ps-primary) !important;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.tier-stack-hint {
  margin: 1rem 0 0.75rem;
  font-size: 0.92rem;
}

.tier-combo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.15rem;
  margin: 0.5rem 0 1.75rem;
  width: 100%;
}

.tier-combo-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.25rem 1.3rem 1.35rem;
  border-radius: 0.9rem;
  background: var(--ps-surface);
  border: 1px solid color-mix(in srgb, var(--ps-text) 10%, transparent);
  min-height: 100%;
}

.tier-combo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.tier-combo-rank {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ps-muted);
}

.tier-combo-bundle {
  flex: 1;
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid color-mix(in srgb, var(--ps-text) 8%, transparent);
}

.tier-combo-features {
  font-size: 0.95rem;
}

.tier-combo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-top: 0.5rem;
}

.tier-yearly {
  margin: 0;
  font-size: 0.9rem;
}

.tier-includes {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  color: var(--ps-primary);
  font-weight: 600;
}

.tier-card {
  padding: 1.1rem;
  border-radius: 0.85rem;
  background: var(--ps-surface);
  border: 1px solid color-mix(in srgb, var(--ps-text) 10%, transparent);
}

.tier-card-current {
  border-color: color-mix(in srgb, var(--ps-primary) 55%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ps-primary) 25%, transparent);
}

.tier-current-label {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ps-primary);
}

.tier-card h3 {
  margin: 0.4rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tier-price {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0.35rem 0;
}

.sidebar-subscribe {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border-radius: 0.55rem;
  background: color-mix(in srgb, var(--ps-primary) 12%, transparent);
  color: var(--ps-primary);
  text-decoration: none;
  font-weight: 600;
}

.profile-avatar-preview {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.profile-avatar-fallback {
  width: 5rem !important;
  height: 5rem !important;
  font-size: 1.75rem !important;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 36rem;
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.profile-identity-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.profile-role {
  margin: 0;
  font-weight: 600;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.profile-hint {
  margin: 0;
  font-size: 0.9rem;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.subscribe-active {
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  border-radius: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--ps-primary) 35%, transparent);
  background: color-mix(in srgb, var(--ps-primary) 8%, transparent);
}

.subscribe-active-title {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.subscribe-renew-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

.subscribe-renew-on .subscribe-renew-badge,
.subscribe-renew-badge.subscribe-renew-on {
  background: color-mix(in srgb, #1a7f4b 16%, transparent);
  color: #1a7f4b;
}

.subscribe-renew-off .subscribe-renew-badge,
.subscribe-renew-badge.subscribe-renew-off {
  background: color-mix(in srgb, var(--ps-text) 10%, transparent);
  color: var(--ps-muted);
}

.subscribe-flash {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.55rem;
  background: color-mix(in srgb, var(--ps-accent) 12%, transparent);
}

.btn-danger-outline {
  border-color: color-mix(in srgb, #b42318 45%, transparent) !important;
  color: #b42318 !important;
}

.category-nest {
  color: var(--ps-muted);
  margin-right: 0.2rem;
}

.category-tree-item[data-depth="1"] .feed-card-body,
.category-tree .category-tree-item.depth-1 {
  margin-left: 1.25rem;
}

.category-tree-item[data-depth="2"] .feed-card-body,
.category-tree .category-tree-item.depth-2 {
  margin-left: 2.5rem;
}

.category-tree-item[data-depth="3"] .feed-card-body,
.category-tree .category-tree-item.depth-3 {
  margin-left: 3.75rem;
}

.category-tree-item {
  position: relative;
}

.category-tree-item[data-depth]:not([data-depth="0"]) {
  margin-left: calc(var(--cat-depth, 0) * 1.35rem);
  border-left: 2px solid color-mix(in srgb, var(--ps-primary) 22%, transparent);
}

.content-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin: 0.35rem 0 1rem;
  color: var(--ps-muted);
  font-size: 0.92rem;
}

.content-meta time {
  font-variant-numeric: tabular-nums;
}

.content-meta-sep {
  opacity: 0.45;
}

/* Compact author line — same on detail pages, feeds, and categories */
.author-inline {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.35rem;
  color: var(--ps-muted);
  font-size: inherit;
  font-weight: 400;
}

.author-inline-by {
  margin-right: 0.1rem;
}

.author-inline-sep {
  margin-right: 0.1rem;
}

.author-inline-person {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.author-inline-name {
  font-weight: 500;
  color: color-mix(in srgb, var(--ps-text) 72%, var(--ps-muted));
}

.author-inline-avatar {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-inline-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  background: color-mix(in srgb, var(--ps-text) 8%, transparent);
  color: var(--ps-muted);
}

.paywall-card .lede,
.paywall-card .feed-excerpt {
  margin-top: 0.5rem;
}

.benefit-section {
  margin: 1.25rem 0;
  padding-top: 0.5rem;
  border-top: 1px solid color-mix(in srgb, var(--ps-text) 10%, transparent);
}

.benefit-section h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.benefit-tier-tag {
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ps-primary);
}

.nav-sub-indicator {
  font-size: 0.65rem;
  opacity: 0.7;
  margin-left: 0.15rem;
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.15rem;
}

.nav-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% - 0.15rem);
  left: 0;
  min-width: 12rem;
  padding: 0.35rem 0;
  margin: 0;
  border-radius: 0.45rem;
  background: var(--ps-surface);
  border: 1px solid color-mix(in srgb, var(--ps-text) 12%, transparent);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--ps-text) 12%, transparent);
  z-index: 30;
  flex-direction: column;
  gap: 0;
}

/* Hover bridge: keep panel open while moving, but never steal clicks. */
.nav-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 0.65rem;
  pointer-events: none;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
  display: flex;
}

.nav-dropdown-panel a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.65rem 0.9rem;
  border-radius: 0;
  white-space: nowrap;
  line-height: 1.25;
}

.nav-dropdown-panel a .nav-link-label {
  flex: 1;
  min-width: 0;
  pointer-events: none; /* clicks land on the <a>, not only the text span */
}

.nav-dropdown-panel a .nav-link-icon,
.nav-dropdown-panel a .nav-sub-indicator {
  pointer-events: none;
  flex-shrink: 0;
}

.nav-dropdown-panel a.nav-icon-only {
  min-width: 100%;
  justify-content: flex-start;
  padding: 0.65rem 0.9rem;
}

.nav-dropdown-panel a:hover,
.nav-dropdown-panel a:focus-visible {
  background: color-mix(in srgb, var(--ps-primary) 10%, transparent);
  color: var(--ps-primary);
  outline: none;
}

.fa-icon-picker-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid transparent;
  border-radius: 0.4rem;
  background: transparent;
  cursor: pointer;
  font-size: 1.1rem;
  color: inherit;
}

.fa-icon-picker-item:hover,
.fa-icon-picker-item.is-selected {
  border-color: var(--rz-primary, #3b82f6);
  background: color-mix(in srgb, var(--rz-primary, #3b82f6) 12%, transparent);
}

.user-admin-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
  cursor: pointer;
  user-select: all;
}

.user-admin-avatar {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  object-fit: cover;
}

.user-admin-avatar-sm {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
}

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

.error {
  color: #b91c1c;
}

.notice {
  padding: 1rem;
  background: color-mix(in srgb, var(--ps-accent) 15%, transparent);
}

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

  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
