:root {
  --serif: "Satoshi", "Inter", system-ui, sans-serif;
  --sans: "Satoshi", "Inter", system-ui, sans-serif;
  --bg: #06080d;
  --bg-soft: #0e141d;
  --bg-elevated: #111824;
  --surface: rgba(18, 24, 34, 0.92);
  --surface-strong: rgba(24, 32, 44, 0.98);
  --card: #151d29;
  --line: rgba(230, 238, 247, 0.1);
  --line-strong: rgba(230, 238, 247, 0.18);
  --text: #f5f7fb;
  --muted: #93a1b3;
  --accent: #2d7ff9;
  --accent-soft: rgba(45, 127, 249, 0.16);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #ffffff;
  --bg-soft: #ffffff;
  --bg-elevated: #ffffff;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: rgba(255, 255, 255, 0.98);
  --card: #f3f5f8;
  --line: rgb(220, 226, 234);
  --line-strong: rgb(220, 226, 234);
  --text: #0f1724;
  --muted: #66758a;
  --accent: #2d7ff9;
  --accent-soft: rgba(45, 127, 249, 0.12);
  --shadow: 0 18px 50px rgba(15, 23, 36, 0.08);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    opacity 140ms ease;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

pre {
  margin: 0;
  white-space: pre-wrap;
}

.site-background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 0%, rgba(45, 127, 249, 0.18), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(74, 114, 255, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(10, 14, 20, 0.6), rgba(10, 14, 20, 0));
}

html[data-theme="light"] .site-background {
  background:
    radial-gradient(circle at 20% 0%, rgba(214, 230, 255, 0.5), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(236, 242, 252, 0.86), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0));
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 48px;
}

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

.content-stage {
  width: min(920px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.brand-version,
.detail-kicker,
.footer-label,
.sidebar-section-title {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.browse-pill,
.filter-chip,
.collection-pill,
.category-pill,
.featured-pill,
.detail-status-pill,
.role-pill,
.gallery-version,
.top-search-shortcut,
.toolbar-view-button,
.icon-action,
.support-link strong {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
}

.browse-rail {
  display: grid;
  gap: 18px;
  justify-items: center;
  padding: 4px 0;
}

.browse-section {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.browse-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.browse-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: rgba(23, 28, 31, 0.78);
}

.browse-pill.is-active {
  background: rgba(23, 28, 31, 0.08);
  color: var(--text);
}

.pill-count {
  color: var(--muted);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(236, 240, 245, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.top-search-icon {
  font-size: 1.2rem;
  color: var(--muted);
}

.top-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
}

.top-search-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  color: var(--muted);
  font-size: 0.82rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-ghost,
.topbar-solid {
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.topbar-solid {
  background: var(--text);
  color: white;
  padding-inline: 16px;
}

.feed-announce {
  text-align: center;
  color: rgba(23, 28, 31, 0.84);
  font-size: 0.98rem;
}

.feed-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.toolbar-pills,
.gallery-chip-row,
.detail-action-row,
.section-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 0.94rem;
  color: rgba(23, 28, 31, 0.82);
}

.filter-chip em {
  font-style: normal;
  color: var(--muted);
}

.filter-chip.is-active {
  background: rgba(225, 229, 236, 0.8);
  color: var(--text);
}

.intro-card,
.empty-card,
.not-found-card,
.detail-hero,
.editorial-note,
.visual-preview-panel,
.prompt-article,
.support-card,
.thread-card,
.prompt-card {
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: var(--surface);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.intro-card {
  padding: 24px 28px;
  display: grid;
  gap: 10px;
}

.intro-card h1,
.detail-hero h1,
.gallery-card-head h2,
.thread-header h3,
.empty-card h2,
.not-found-card h1 {
  margin: 0;
  font-family: var(--serif);
  letter-spacing: -0.045em;
}

.intro-card h1 {
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 0.9;
}

.intro-card p,
.prompt-summary,
.detail-description,
.detail-copy p,
.thread-header p,
.empty-card p,
.not-found-card p,
.support-item span {
  margin: 0;
  color: rgba(23, 28, 31, 0.72);
}

.feed-list,
.threads-section {
  display: grid;
  gap: 26px;
}

.prompt-card {
  overflow: hidden;
  background: rgba(249, 250, 247, 0.82);
}

.prompt-card-link {
  display: block;
}

.gallery-surface {
  padding: 14px;
  display: grid;
  gap: 14px;
}

.gallery-top,
.gallery-footer,
.thread-block-top,
.detail-meta-line,
.detail-breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.collection-pill,
.category-pill,
.featured-pill,
.detail-status-pill,
.role-pill,
.gallery-version {
  padding: 8px 12px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.detail-status-pill,
.featured-pill {
  background: rgba(182, 240, 207, 0.88);
  color: #267755;
}

.collection-pill {
  background: rgba(228, 232, 237, 0.92);
}

.gallery-version {
  color: var(--muted);
}

.gallery-card-head {
  display: grid;
  gap: 8px;
}

.gallery-card-head h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.9;
  max-width: 10ch;
}

.prompt-summary {
  max-width: 52ch;
  font-size: 0.96rem;
}

.gallery-media {
  min-height: 460px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
}

.gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-footer {
  padding: 0 6px 4px;
}

.prompt-modal {
  width: min(1080px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  background: transparent;
}

.prompt-modal::backdrop {
  background: rgba(17, 24, 39, 0.55);
  backdrop-filter: blur(14px);
}

.prompt-modal-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: rgba(250, 250, 247, 0.98);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(12, 16, 18, 0.2);
}

.prompt-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

.prompt-modal-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
  min-height: min(80vh, 760px);
}

.prompt-modal-media {
  background: var(--card);
}

.prompt-modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prompt-modal-body {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 28px 28px 30px;
  overflow: auto;
  max-height: calc(100vh - 32px);
}

.prompt-modal-head {
  display: grid;
  gap: 8px;
}

.prompt-modal-head h2 {
  margin: 0;
  font-family: var(--serif);
  letter-spacing: -0.045em;
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  line-height: 0.88;
}

.prompt-modal-meta {
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.prompt-modal-actions {
  padding-bottom: 2px;
}

.prompt-modal-panel {
  display: grid;
  gap: 12px;
}

.prompt-modal-threads {
  display: grid;
  gap: 14px;
}

.prompt-modal-thread {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(248, 249, 246, 0.82);
}

.prompt-modal-thread h3,
.prompt-modal-thread p {
  margin: 0;
}

.prompt-modal-thread h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.prompt-modal-thread p {
  color: rgba(23, 28, 31, 0.68);
}

.prompt-modal-thread-block {
  display: grid;
  gap: 8px;
}

.gallery-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--text);
  color: white;
  font-size: 0.86rem;
  font-weight: 700;
}

.author-copy {
  display: grid;
  gap: 2px;
}

.author-copy strong,
.support-item strong,
.asset-mini strong {
  font-size: 0.96rem;
}

.author-copy span,
.gallery-cta {
  color: var(--muted);
  font-size: 0.92rem;
}

.detail-breadcrumbs {
  color: var(--muted);
  font-size: 0.88rem;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 26px 28px;
  display: grid;
  gap: 14px;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(210, 227, 255, 0.3), transparent 42%),
    radial-gradient(circle, rgba(47, 109, 246, 0.1) 1px, transparent 1px);
  background-size: auto, 8px 8px;
  opacity: 0.42;
  pointer-events: none;
}

.detail-hero > * {
  position: relative;
  z-index: 1;
}

.detail-hero h1 {
  font-size: clamp(4rem, 7vw, 5.9rem);
  line-height: 0.86;
  max-width: 8ch;
}

.detail-description {
  font-size: 1.14rem;
  max-width: 46ch;
}

.detail-meta-line {
  color: rgba(23, 28, 31, 0.66);
  font-size: 0.96rem;
}

.icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  color: var(--text);
}

.icon-action-primary {
  background: rgba(23, 28, 31, 0.9);
  color: white;
}

.editorial-note {
  padding: 18px 20px;
  color: rgba(23, 28, 31, 0.6);
  font-size: 0.96rem;
}

.visual-preview-panel {
  overflow: hidden;
}

.visual-preview-panel img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.prompt-article {
  padding: 24px 28px;
  display: grid;
  gap: 22px;
}

.detail-copy {
  display: grid;
  gap: 14px;
  font-size: 1.02rem;
}

.prompt-panel {
  display: grid;
  gap: 12px;
}

.section-label {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.editorial-prompt,
.thread-block pre {
  border: 1px solid var(--line);
  background: rgba(250, 250, 247, 0.9);
  border-radius: 24px;
  padding: 22px;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.7;
}

.copy-prompt-cta {
  border: 0;
  padding: 16px 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6e9eff 0%, #53afea 50%, #316ce5 100%);
  color: white;
  cursor: pointer;
}

.support-grid {
  display: grid;
  gap: 18px;
}

.support-card {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.support-list {
  display: grid;
  gap: 14px;
}

.support-item {
  display: grid;
  gap: 3px;
}

.support-links,
.asset-rail {
  display: grid;
  gap: 12px;
}

.support-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(250, 250, 247, 0.72);
}

.asset-rail {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.asset-mini {
  display: grid;
  gap: 10px;
}

.asset-mini img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.section-tabs {
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.section-tabs span {
  font-size: 1rem;
  color: rgba(23, 28, 31, 0.4);
}

.section-tabs span.is-active {
  color: var(--text);
}

.thread-card {
  padding: 22px;
  display: grid;
  gap: 18px;
}

.thread-header {
  display: grid;
  gap: 8px;
}

.thread-header h3 {
  font-size: 2rem;
  line-height: 0.95;
}

.thread-blocks {
  display: grid;
  gap: 14px;
}

.thread-block {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(248, 249, 246, 0.8);
}

.role-pill {
  background: rgba(232, 236, 241, 0.86);
}

.empty-card,
.not-found-card {
  padding: 26px 28px;
}

.cms-shell,
.cms-main,
.cms-form,
.cms-side {
  display: grid;
  gap: 22px;
}

.cms-studio {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0;
  border: 1px solid #e7ddd1;
  border-radius: 24px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(46, 31, 15, 0.08);
}

.cms-rail {
  display: grid;
  align-content: start;
  gap: 24px;
  padding: 22px 18px;
  background: #fcf8f3;
  border-right: 1px solid #eee2d4;
}

.cms-rail-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cms-rail-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f48120, #ffb366);
  color: #2d1a08;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.cms-rail-copy {
  display: grid;
  gap: 2px;
}

.cms-rail-copy strong {
  font-size: 0.95rem;
}

.cms-rail-copy span {
  color: var(--muted);
  font-size: 0.82rem;
}

.cms-rail-nav {
  display: grid;
  gap: 6px;
}

.cms-rail-link,
.cms-tab-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #6b7280;
  transition:
    color 140ms ease,
    background 140ms ease,
    border-color 140ms ease;
}

.cms-link-icon,
.cms-button-icon,
.cms-section-icon,
.cms-file-trigger-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cms-link-icon svg,
.cms-button-icon svg,
.cms-section-icon svg,
.cms-file-trigger-icon svg {
  width: 16px;
  height: 16px;
}

.cms-rail-link {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
}

.cms-rail-link.is-active,
.cms-rail-link:hover {
  background: #fff2e5;
  color: #a95512;
}

.cms-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 4px;
  border-bottom: 1px solid #ecece7;
}

.cms-tab-link {
  min-height: 34px;
  padding: 0 2px;
  border-bottom: 1px solid transparent;
  font-size: 0.92rem;
}

.cms-tab-link.is-active,
.cms-tab-link:hover {
  color: #a95512;
  border-color: #f48120;
}

.cms-side {
  position: sticky;
  top: 18px;
  align-self: start;
}

.cms-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cms-page-copy {
  display: grid;
  gap: 6px;
}

.cms-page-copy h1,
.cms-intro-card h2,
.cms-section-head h2,
.cms-submit-copy h2,
.cms-summary-card h2 {
  margin: 0;
  font-family: var(--serif);
  letter-spacing: -0.045em;
}

.cms-page-copy h1 {
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  line-height: 0.92;
}

.cms-page-copy p,
.cms-intro-card p,
.cms-section-head p,
.cms-submit-copy p,
.cms-summary-card p,
.cms-feedback,
.cms-submit-note,
.cms-runtime-note,
.cms-field small,
.cms-choice-card small,
.cms-chip-card small,
.cms-switch-copy {
  margin: 0;
  color: rgba(23, 28, 31, 0.7);
}

.cms-page-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cms-action-pill,
.cms-header-submit,
.cms-add-button,
.cms-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cms-runtime-note {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.cms-header-submit {
  padding-inline: 18px;
}

.cms-grid {
  display: grid;
  grid-template-columns: minmax(0, 920px);
  gap: 22px;
  justify-content: center;
}

.cms-card {
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: var(--surface);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.cms-intro-card,
.cms-section-card,
.cms-summary-card,
.cms-submit-card {
  padding: 22px 24px;
}

.cms-intro-card,
.cms-submit-card,
.cms-summary-card {
  display: grid;
  gap: 10px;
}

.cms-section-card {
  display: grid;
  gap: 20px;
}

.cms-section-head {
  display: grid;
  gap: 0;
}

.cms-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cms-section-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff2e5;
  color: #c8640f;
}

.cms-section-head h2,
.cms-summary-card h2 {
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  line-height: 0.95;
}

.cms-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cms-field {
  display: grid;
  gap: 8px;
}

.cms-field > span {
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}

.cms-field-full {
  grid-column: 1 / -1;
}

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

.cms-field input,
.cms-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(250, 250, 247, 0.88);
  border-radius: 20px;
  padding: 14px 16px;
  color: var(--text);
  outline: none;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.cms-title-input {
  border-radius: 0;
  border-width: 0 0 1px;
  padding: 8px 0 14px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.05em;
  background: transparent;
}

.cms-description-input {
  min-height: 96px;
  font-size: 1rem;
}

.cms-field textarea {
  resize: vertical;
  min-height: 132px;
}

.cms-field input:focus,
.cms-field textarea:focus {
  border-color: rgba(47, 109, 246, 0.36);
  box-shadow: 0 0 0 4px rgba(47, 109, 246, 0.1);
}

.cms-choice-grid,
.cms-chip-grid {
  display: grid;
  gap: 12px;
}

.cms-choice-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cms-choice-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cms-choice-card,
.cms-chip-card {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(250, 250, 247, 0.74);
  cursor: pointer;
  transition:
    border-color 140ms ease,
    transform 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.cms-choice-card strong,
.cms-chip-card strong {
  font-size: 1rem;
}

.cms-chip-card {
  justify-items: start;
}

.cms-choice-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.cms-choice-card:has(.cms-choice-input:checked),
.cms-chip-card:has(.cms-choice-input:checked) {
  border-color: rgba(244, 129, 32, 0.42);
  background: rgba(255, 242, 229, 0.9);
  box-shadow: 0 12px 24px rgba(244, 129, 32, 0.08);
  transform: translateY(-1px);
}

.cms-chip-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cms-chip-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cms-toggle-field {
  align-content: start;
}

.cms-switch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(250, 250, 247, 0.74);
}

.cms-switch strong {
  font-size: 0.96rem;
  font-weight: 600;
}

.cms-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cms-switch-ui {
  position: relative;
  display: inline-flex;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: rgba(23, 28, 31, 0.14);
  transition: background 140ms ease;
  flex-shrink: 0;
}

.cms-switch-ui::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: white;
  box-shadow: 0 8px 16px rgba(23, 28, 31, 0.16);
  transition: transform 140ms ease;
}

.cms-switch:has(input:checked) .cms-switch-ui {
  background: rgba(244, 129, 32, 0.92);
}

.cms-switch:has(input:checked) .cms-switch-ui::after {
  transform: translateX(20px);
}

.cms-repeater-list {
  display: grid;
  gap: 16px;
}

.cms-repeater-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(248, 249, 246, 0.82);
}

.cms-gallery-preview {
  width: 104px;
  height: 132px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f3f4f6;
}

.cms-gallery-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cms-repeater-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cms-upload-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.cms-file-trigger {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 14px;
  border: 1px dashed #f1b47b;
  border-radius: 14px;
  background: #fff7ef;
  color: #2b2118;
  cursor: pointer;
}

.cms-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.cms-file-trigger-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ffffff;
  color: #c8640f;
  border: 1px solid #f4d2b1;
}

.cms-file-trigger-copy {
  display: grid;
  gap: 2px;
}

.cms-file-trigger-copy strong {
  font-size: 0.95rem;
}

.cms-file-trigger-copy span {
  color: #7a6f61;
  font-size: 0.84rem;
}

.cms-upload-button {
  cursor: pointer;
  min-height: 56px;
  padding-inline: 16px;
}

.cms-upload-status {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.9rem;
}

.cms-inline-action {
  padding: 8px 12px;
  font-size: 0.88rem;
}

.cms-add-button {
  justify-self: flex-start;
  cursor: pointer;
}

.cms-submit-card {
  gap: 12px;
}

.cms-header-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.cms-summary-meta {
  display: grid;
  gap: 12px;
}

.cms-summary-item {
  display: grid;
  gap: 4px;
}

.cms-feedback {
  border-radius: 20px;
  padding: 14px 16px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  line-height: 1.6;
}

.cms-feedback.is-success {
  background: rgba(213, 245, 227, 0.82);
  border-color: rgba(69, 153, 104, 0.24);
  color: #226544;
}

.cms-feedback.is-error {
  background: rgba(255, 234, 234, 0.84);
  border-color: rgba(205, 104, 104, 0.24);
  color: #8a2a2a;
}

body.cms-body {
  background: #f7f3ee;
  color: #1f1a14;
}

body.cms-body .app-shell {
  width: min(1420px, calc(100% - 48px));
  padding: 28px 0 48px;
}

body.cms-body .cms-shell,
body.cms-body .cms-main,
body.cms-body .cms-form,
body.cms-body .cms-side {
  gap: 20px;
}

body.cms-body .cms-page-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 28px 32px 0;
  background: #ffffff;
}

body.cms-body .cms-page-copy h1,
body.cms-body .cms-section-head h2,
body.cms-body .cms-summary-card h2 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.03em;
}

body.cms-body .cms-page-copy h1 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

body.cms-body .detail-kicker,
body.cms-body .cms-field > span,
body.cms-body .cms-runtime-note,
body.cms-body .cms-switch-copy,
body.cms-body .cms-submit-note,
body.cms-body .footer-label {
  color: #7a6f61;
}

body.cms-body .cms-runtime-note,
body.cms-body .cms-link-button,
body.cms-body .cms-add-button,
body.cms-body .cms-inline-action,
body.cms-body .browse-pill {
  border: 1px solid #eadfce;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: none;
}

body.cms-body .cms-runtime-note {
  padding: 10px 12px;
  background: #fff7ef;
  color: #a95512;
  border-color: #f2d2b2;
}

body.cms-body .cms-header-submit {
  border-radius: 10px;
  background: #f48120;
  color: #24160a;
  box-shadow: none;
}

body.cms-body .cms-grid {
  grid-template-columns: minmax(0, 1fr);
}

body.cms-body .cms-card {
  border: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

body.cms-body .cms-section-card,
body.cms-body .cms-summary-card {
  padding: 20px 32px 24px;
  border-top: 1px solid #ecece7;
}

body.cms-body .cms-section-head {
  gap: 0;
}

body.cms-body .cms-section-head h2,
body.cms-body .cms-summary-card h2 {
  font-size: 0.95rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a7a69;
}

body.cms-body .cms-field-grid {
  gap: 16px;
}

body.cms-body .cms-field input,
body.cms-body .cms-field textarea,
body.cms-body .cms-switch,
body.cms-body .cms-choice-card,
body.cms-body .cms-chip-card,
body.cms-body .cms-repeater-card {
  border: 1px solid #e8ddd0;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: none;
}

body.cms-body .cms-field input,
body.cms-body .cms-field textarea {
  padding: 12px 14px;
}

body.cms-body .cms-title-input {
  padding: 4px 0 16px;
  border-radius: 0;
  border-width: 0 0 1px;
  border-color: #eadfce;
  background: transparent;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
}

body.cms-body .cms-description-input {
  min-height: 90px;
  font-size: 1rem;
}

body.cms-body .cms-field input:focus,
body.cms-body .cms-field textarea:focus {
  border-color: #f48120;
  box-shadow: 0 0 0 3px rgba(244, 129, 32, 0.14);
}

body.cms-body .cms-choice-card,
body.cms-body .cms-chip-card {
  min-height: 52px;
  padding: 12px 14px;
  align-items: center;
}

body.cms-body .cms-file-input {
  padding: 10px 12px;
}

body.cms-body .cms-choice-card:has(.cms-choice-input:checked),
body.cms-body .cms-chip-card:has(.cms-choice-input:checked) {
  border-color: #f48120;
  background: #fff2e5;
  transform: none;
  box-shadow: none;
}

body.cms-body .cms-switch {
  padding: 12px 14px;
}

body.cms-body .cms-switch-ui {
  background: #ddcfc0;
}

body.cms-body .cms-switch:has(input:checked) .cms-switch-ui {
  background: #f48120;
}

body.cms-body .cms-repeater-card {
  padding: 18px;
  border-radius: 12px;
}

body.cms-body .cms-gallery-preview {
  width: 112px;
  height: 140px;
  border-color: #eadfce;
  background: #fff7ef;
}

body.cms-body .cms-tabs {
  margin: 0 32px;
}

body.cms-body .cms-add-button,
body.cms-body .cms-inline-action,
body.cms-body .browse-pill {
  padding: 9px 12px;
}

body.cms-body .cms-summary-meta {
  gap: 10px;
}

body.cms-body .cms-feedback {
  border-radius: 10px;
  padding: 12px 14px;
}

@media (max-width: 760px) {
  .app-shell {
    width: min(100% - 18px, 1180px);
    padding-top: 10px;
  }

  .topbar,
  .feed-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-actions {
    justify-content: flex-end;
  }

  .cms-grid,
  .cms-field-grid,
  .cms-choice-grid-2,
  .cms-choice-grid-3,
  .cms-chip-grid {
    grid-template-columns: 1fr;
  }

  .prompt-modal {
    width: min(100% - 18px, 1080px);
    max-height: calc(100vh - 18px);
  }

  .prompt-modal-grid {
    grid-template-columns: 1fr;
  }

  .prompt-modal-media {
    max-height: 320px;
  }

  .prompt-modal-body {
    padding: 22px 18px 20px;
  }

  .prompt-modal-head h2 {
    font-size: 2.5rem;
  }

  .cms-studio {
    grid-template-columns: 1fr;
  }

  .cms-rail {
    display: none;
  }

  .cms-page-header,
  .cms-section-head {
    align-items: stretch;
  }

  .cms-intro-card,
  .cms-section-card,
  .cms-summary-card,
  .cms-submit-card {
    padding: 18px;
  }

  .cms-page-copy h1 {
    font-size: 2.5rem;
  }

  .cms-side {
    position: static;
  }

  body.cms-body .app-shell {
    width: min(100% - 24px, 1380px);
  }

  body.cms-body .cms-page-header {
    padding: 18px 18px 0;
  }

  body.cms-body .cms-section-card,
  body.cms-body .cms-summary-card,
  body.cms-body .cms-tabs {
    margin: 0 18px;
    padding-inline: 0;
  }

  .gallery-media {
    min-height: 280px;
  }

  .intro-card,
  .detail-hero,
  .editorial-note,
  .prompt-article,
  .support-card,
  .thread-card,
  .empty-card,
  .not-found-card {
    padding: 18px;
  }

  .detail-hero h1 {
    font-size: 3.35rem;
  }

  .intro-card h1,
  .gallery-card-head h2 {
    font-size: 2.45rem;
  }
}

.social-app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(248px, 292px) 600px minmax(220px, 320px);
  justify-content: center;
  min-height: 100vh;
}

.social-left-rail,
.social-feed-column,
.social-right-rail {
  min-height: 100vh;
}

.social-left-rail,
.social-right-rail {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow: auto;
}

.social-left-rail {
  display: grid;
  align-content: start;
  gap: 22px;
  padding: 22px 22px 30px;
  background: rgba(0, 0, 0, 0.04);
}

.social-nav {
  display: grid;
  gap: 4px;
}

.social-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 400;
  transition:
    color 140ms ease,
    transform 140ms ease;
}

.social-nav-link:hover {
  background: transparent;
  transform: translateX(2px);
}

.social-nav-link.is-active {
  background: transparent;
  font-weight: 700;
}

.social-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: inherit;
}

.social-nav-icon svg {
  width: 22px;
  height: 22px;
}

.social-compose {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
}

.social-feed-column {
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--bg);
}

.feed-column-header {
  position: sticky;
  top: 0;
  z-index: 12;
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 14px 0 0;
  background: rgba(6, 8, 13, 0.84);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.feed-header-top {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
}

.feed-header-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
}

.feed-header-back svg {
  width: 16px;
  height: 16px;
}

html[data-theme="light"] .feed-column-header {
  background: rgba(255, 255, 255, 0.94);
}

.feed-column-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--accent);
}

.feed-column-logo svg {
  width: 28px;
  height: 28px;
}

.feed-collection-tabs {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feed-collection-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
  transition:
    color 140ms ease,
    border-color 140ms ease,
    background-color 140ms ease;
}

.feed-collection-tab:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

html[data-theme="light"] .feed-collection-tab:hover {
  background: rgba(15, 23, 36, 0.04);
}

.feed-collection-tab.is-active {
  color: var(--text);
  border-color: var(--accent);
}

.feed-hero {
  position: relative;
  overflow: hidden;
  padding: 34px 24px 26px;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.feed-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  justify-items: center;
  max-width: 470px;
  margin: 0 auto;
  text-align: center;
}

.feed-hero h1 {
  margin: 0;
  font-family: "Instrument Serif", "Times New Roman", serif;
  color: var(--text);
  font-size: clamp(2.35rem, 6vw, 3.85rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-weight: 400;
  text-wrap: balance;
}

.feed-hero p {
  margin: 0;
  max-width: 42ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
  text-wrap: balance;
}

.feed-hero-grid {
  position: absolute;
  inset: 10px 22% 14px;
  z-index: 0;
  opacity: 0.45;
  background-image: radial-gradient(circle, rgba(138, 154, 178, 0.28) 0.9px, transparent 0.9px);
  background-size: 9px 9px;
  mask-image: radial-gradient(circle at center, #000 28%, transparent 78%);
}

.feed-hero-glow {
  position: absolute;
  top: 12px;
  bottom: 8px;
  width: 180px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.75;
  filter: blur(28px);
}

.feed-hero-glow-left {
  left: -18px;
  background: radial-gradient(circle at center, rgba(53, 114, 255, 0.22), transparent 68%);
}

.feed-hero-glow-right {
  right: -18px;
  background: radial-gradient(circle at center, rgba(88, 121, 255, 0.18), transparent 70%);
}

html[data-theme="light"] .feed-hero-grid {
  opacity: 0.42;
  background-image: radial-gradient(circle, rgba(182, 194, 210, 0.72) 0.8px, transparent 0.8px);
}

html[data-theme="light"] .feed-hero-glow-left {
  background: radial-gradient(circle at center, rgba(193, 217, 255, 0.85), transparent 70%);
}

html[data-theme="light"] .feed-hero-glow-right {
  background: radial-gradient(circle at center, rgba(226, 235, 255, 0.95), transparent 72%);
}

.social-feed {
  padding: 18px 14px 40px;
}

.feed-detail-panel {
  display: grid;
  gap: 18px;
  padding: 18px 14px 28px;
}

.feed-detail-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.feed-detail-close svg {
  width: 18px;
  height: 18px;
}

.feed-detail-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
}

.feed-detail-media img {
  width: 100%;
  max-height: 72vh;
  object-fit: cover;
}

.feed-detail-copy {
  display: grid;
  gap: 14px;
  padding-bottom: 104px;
}

.feed-detail-heading-line {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.feed-detail-heading-line strong {
  color: var(--text);
  font-weight: 700;
}

.feed-detail-divider {
  margin-inline: 8px;
  color: var(--muted);
}

.feed-detail-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.feed-detail-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
}

.feed-detail-tag::before {
  content: "/";
  margin-right: 4px;
}

.feed-detail-prompt {
  display: grid;
  gap: 10px;
}

.feed-detail-prompt-label {
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.feed-detail-quote {
  position: relative;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.7;
  letter-spacing: 0;
  font-weight: 400;
}

.feed-detail-copy-bar {
  position: fixed;
  left: var(--feed-column-left, 0px);
  bottom: 0;
  z-index: 24;
  width: var(--feed-column-width, 100vw);
  box-sizing: border-box;
  padding: 12px 14px max(10px, env(safe-area-inset-bottom));
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.feed-detail-copy-bar.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.feed-detail-copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  width: 100%;
  border: 0;
  border-radius: 16px;
  background: var(--accent);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.social-feed > [hidden] {
  display: none !important;
}

.social-feed.is-stream {
  display: grid;
}

.social-feed.is-masonry {
  columns: 2 260px;
  column-gap: 14px;
}

.social-feed.is-masonry > * {
  break-inside: avoid;
}

.prompt-card {
  overflow: hidden;
}

.prompt-card-masonry {
  display: inline-block;
  width: 100%;
  margin: 0 0 14px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.prompt-card-masonry:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.16);
}

.prompt-card-masonry .prompt-card-link {
  display: grid;
}

.masonry-card-media {
  overflow: hidden;
  border-radius: 18px;
  background: var(--card);
}

.masonry-card-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.prompt-card-feed {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.prompt-card-feed .prompt-card-link {
  display: block;
  padding: 18px;
}

.feed-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.feed-card-body {
  display: grid;
  gap: 14px;
}

.feed-card-copy {
  display: grid;
  gap: 10px;
}

.feed-card-copy h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.18rem;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.feed-card-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.feed-card-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.feed-card-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.feed-card-bottom {
  margin-top: 16px;
}

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

.collection-pill,
.category-pill,
.featured-pill {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
}

.social-empty-state {
  margin: 18px;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.social-empty-state h2 {
  margin: 6px 0 0;
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.social-right-rail {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background: rgba(0, 0, 0, 0.03);
}

.social-right-placeholder {
  flex: 1;
}

.social-app-shell .editorial-prompt {
  border-color: var(--line);
  background: var(--surface);
}

.social-app-shell .editorial-prompt {
  color: var(--text);
}

.social-app-shell .detail-kicker,
.social-app-shell .section-label {
  color: var(--muted);
}

.social-side-footer {
  display: grid;
  gap: 18px;
  padding-top: 18px;
}

.social-side-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.social-side-links a {
  color: var(--muted);
  font-size: 0.92rem;
}

.social-side-menu {
  position: relative;
  display: flex;
  justify-content: flex-start;
}

.social-side-menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.social-side-menu-trigger span {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
}

.social-side-menu-popover {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  width: 180px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.social-side-menu-title {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.social-theme-picker {
  display: grid;
  gap: 8px;
}

.social-theme-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.social-theme-option[data-active="true"] {
  border-color: rgba(45, 127, 249, 0.38);
  background: var(--accent-soft);
}

.social-theme-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.social-theme-icon svg {
  width: 18px;
  height: 18px;
}

html[data-theme="light"] .social-left-rail,
html[data-theme="light"] .social-right-rail,
html[data-theme="light"] .social-feed-column {
  background: #ffffff;
}

.social-app-shell.is-detail-open .feed-header-top {
  justify-content: flex-start;
}

.social-app-shell.is-detail-open .feed-column-logo,
.social-app-shell.is-detail-open .feed-collection-tabs,
.social-app-shell.is-detail-open .feed-hero {
  display: none;
}

.social-app-shell.is-detail-open .feed-header-back {
  display: inline-flex;
}

@media (max-width: 1080px) {
  .social-app-shell {
    grid-template-columns: minmax(232px, 270px) 600px;
  }

  .social-right-rail {
    display: none;
  }
}

@media (max-width: 900px) {
  .social-app-shell {
    grid-template-columns: 1fr;
  }

  .social-left-rail {
    position: sticky;
    top: 0;
    z-index: 20;
    height: auto;
    min-height: 0;
    gap: 14px;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(6, 8, 13, 0.92);
    backdrop-filter: blur(16px);
  }

  html[data-theme="light"] .social-left-rail {
    background: rgba(255, 255, 255, 0.94);
  }

  .social-nav {
    display: flex;
    gap: 10px;
    overflow: auto;
    padding-bottom: 2px;
  }

  .social-nav-link {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--line);
    background: var(--surface);
    font-size: 0.94rem;
  }

  .social-compose {
    min-height: 46px;
    width: 100%;
  }

  .social-feed-column {
    border-inline: 0;
  }

  .feed-column-header {
    position: static;
  }

  .social-feed.is-masonry {
    columns: 1;
  }

  .feed-hero {
    padding: 26px 18px 20px;
  }

  .feed-hero-grid {
    inset-inline: 10%;
  }

  .feed-hero h1 {
    font-size: clamp(1.95rem, 10vw, 2.9rem);
  }

  .feed-hero p {
    font-size: 0.95rem;
  }
}

@media (max-width: 620px) {
  .feed-collection-tab {
    min-height: 48px;
    font-size: 0.94rem;
  }

  .prompt-card-feed .prompt-card-link,
  .social-feed,
  .feed-detail-panel {
    padding-inline: 12px;
  }

  .feed-detail-copy {
    padding-bottom: 96px;
  }

  .feed-detail-copy-bar {
    left: 0;
    width: 100vw;
    padding-inline: 12px;
  }

  .feed-card-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .feed-detail-copy h2 {
    font-size: 1rem;
  }
}
