* {
  box-sizing: border-box;
}

:root {
  --bg: #f4f8fb;
  --surface: #ffffff;
  --surface-soft: #f8fbfd;
  --surface-tint: #eef7fb;
  --line: #dbe6ee;
  --line-strong: #c6d8e4;
  --text: #0f172a;
  --muted: #64748b;
  --muted-strong: #475569;
  --teal: #0f9ea5;
  --teal-deep: #0a7f88;
  --cyan: #0ea5e9;
  --blue: #2563eb;
  --blue-deep: #1d4ed8;
  --mint: #c7f8eb;
  --green: #dff8d7;
  --sky: #dcefff;
  --lavender: #f0e4ff;
  --warning-bg: #fff7e6;
  --warning-text: #92400e;
  --danger-bg: #fff0ef;
  --danger-text: #b42318;
  --shadow: 0 22px 48px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.05);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "IBM Plex Sans", "IBM Plex Sans SC", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(15, 158, 165, 0.12), transparent 25%),
    linear-gradient(180deg, #f9fbfd 0%, #f3f7fb 100%);
}

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

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

img {
  max-width: 100%;
}

.backdrop {
  display: none;
}

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

.site-container {
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(90deg, var(--teal) 0%, #0f99b2 45%, var(--blue) 100%);
  box-shadow: 0 10px 30px rgba(10, 91, 133, 0.18);
}

.site-header {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 14px 0;
}

.brand,
.header-actions,
.hero-actions,
.panel-heading,
.resource-card-bottom,
.detail-meta,
.submission-head,
.admin-card-head,
.catalog-topbar,
.section-header,
.section-headline {
  display: flex;
  align-items: center;
}

.brand {
  gap: 14px;
  color: white;
}

.brand-copy strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.05;
}

.brand-copy small {
  display: block;
  margin-top: 4px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
}

.brand-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark-inner::before,
.brand-mark-inner::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 3px solid var(--teal);
}

.brand-mark::before {
  top: 11px;
  left: 11px;
  width: 10px;
  height: 10px;
}

.brand-mark::after {
  right: 10px;
  bottom: 9px;
  width: 14px;
  height: 14px;
}

.brand-mark-inner::before {
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-width: 2px;
  border-left-color: transparent;
  border-bottom-color: transparent;
}

.brand-mark-inner::after {
  bottom: 7px;
  left: 8px;
  width: 23px;
  height: 23px;
  border-width: 2px;
  border-top-color: transparent;
  border-right-color: transparent;
}

.header-search {
  position: relative;
}

.header-search input,
label input,
label select,
label textarea,
.inline-form input,
.inline-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.header-search input {
  height: 52px;
  padding: 0 16px 0 48px;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.header-search-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  z-index: 1;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1rem;
}

.header-actions {
  justify-content: flex-end;
  gap: 12px;
}

.header-score,
.header-upload,
.header-link-button,
.header-avatar,
.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.section-link,
.resource-action,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 16px;
  font: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.header-score:hover,
.header-upload:hover,
.header-link-button:hover,
.header-avatar:hover,
.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.danger-button:hover,
.section-link:hover,
.resource-action:hover,
button:hover {
  transform: translateY(-1px);
}

.header-score {
  min-width: 110px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  flex-direction: column;
  align-items: flex-start;
}

.header-score-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
}

.header-score-value {
  font-size: 1.65rem;
  line-height: 1;
}

.header-score-guest .header-score-value {
  font-size: 1.2rem;
}

.header-upload,
.header-link-button,
.section-link,
.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.resource-action {
  padding: 13px 18px;
  font-weight: 600;
}

.header-upload,
.header-link-button,
.secondary-button,
.section-link {
  background: rgba(255, 255, 255, 0.97);
  color: var(--text);
  box-shadow: 0 10px 22px rgba(13, 64, 99, 0.14);
}

.primary-button {
  background: linear-gradient(135deg, var(--teal) 0%, var(--blue) 100%);
  color: white;
  box-shadow: 0 16px 28px rgba(14, 116, 144, 0.22);
}

.ghost-button {
  background: transparent;
  color: var(--teal-deep);
  border: 1px solid rgba(15, 158, 165, 0.26);
}

.chip-soft {
  background: rgba(15, 158, 165, 0.1);
  color: var(--teal-deep);
}

.danger-button {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 14px 26px rgba(220, 38, 38, 0.22);
}

.header-avatar,
.owner-avatar {
  border-radius: 999px;
  font-weight: 700;
}

.header-avatar {
  width: 44px;
  height: 44px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), #fde0d2);
  color: var(--teal-deep);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
}

.header-avatar-image,
.profile-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.user-badge-link {
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, opacity 160ms ease;
}

.user-badge-link:hover {
  opacity: 0.92;
}

.user-badge-link:focus-visible {
  outline: 2px solid rgba(15, 158, 165, 0.36);
  outline-offset: 4px;
  border-radius: 18px;
}

.user-badge-avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 999px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fee2d7, #d9f4f8);
  color: var(--teal-deep);
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  transition: transform 160ms ease;
}

.user-badge-avatar-sm {
  width: 30px;
  height: 30px;
  font-size: 0.86rem;
}

.user-badge-avatar-md {
  width: 42px;
  height: 42px;
  font-size: 1rem;
}

.user-badge-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 160ms ease;
}

.user-badge-link:hover .user-badge-avatar,
.user-badge-link:focus-visible .user-badge-avatar,
.user-badge-link:hover .user-badge-avatar-image,
.user-badge-link:focus-visible .user-badge-avatar-image {
  transform: translateY(-1px);
}

.user-badge-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.user-badge-copy strong,
.user-badge-copy small {
  display: block;
  overflow-wrap: anywhere;
}

.user-badge-copy strong {
  font-size: 0.95rem;
  line-height: 1.2;
}

.user-badge-copy small {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.inline-action {
  margin: 0;
}

.button-icon {
  font-size: 1rem;
}

.flash {
  width: min(1180px, calc(100vw - 48px));
  margin: 18px auto 0;
  padding: 14px 18px;
  border-radius: 18px;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}

.flash-notice {
  background: #e9fbf5;
  color: #0f766e;
  border: 1px solid #bcefe0;
}

.flash-error {
  background: var(--danger-bg);
  color: var(--danger-text);
  border: 1px solid #f2c9c5;
}

.hero-stage,
.catalog-hero,
.cta-band {
  background: linear-gradient(135deg, #0fa6a5 0%, #0f99b2 45%, #1f73f2 100%);
}

.hero-stage {
  padding: 82px 0 90px;
}

.hero-stage-figma {
  min-height: calc(100vh - 82px);
  display: flex;
  align-items: center;
}

.hero-container,
.cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: white;
}

.hero-badge,
.detail-hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.hero-stage-figma .hero-badge {
  padding: 9px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.13);
}

.hero-container h1,
.catalog-hero h1,
.entry-intro h1 {
  margin: 26px 0 16px;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-description,
.catalog-hero p,
.cta-content p,
.entry-intro p {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  line-height: 1.8;
}

.hero-actions {
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.hero-stage-figma .hero-actions .primary-button,
.cta-band-figma .cta-actions .primary-button {
  background: rgba(255, 255, 255, 0.97);
  color: var(--teal-deep);
  box-shadow: 0 16px 28px rgba(12, 97, 132, 0.18);
}

.hero-stage-figma .hero-actions .secondary-button,
.cta-band-figma .cta-actions .secondary-button {
  background: rgba(255, 255, 255, 0.16);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.hero-stats {
  width: min(780px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 56px;
}

.hero-stat {
  padding: 10px 12px;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
}

.hero-stat strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 700;
}

.hero-stat span {
  color: rgba(255, 255, 255, 0.82);
}

.section-block {
  padding: 84px 0;
}

.section-light {
  background: transparent;
}

.section-soft {
  background: linear-gradient(180deg, #f8fbfd 0%, #f2f8fc 100%);
}

.section-header,
.section-headline,
.panel-heading {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.section-header.centered,
.section-headline.centered {
  justify-content: center;
  text-align: center;
}

.section-header-tight {
  margin-bottom: 34px;
}

.section-header h2,
.section-headline h2,
.panel-heading h1,
.panel-heading h2,
.catalog-topbar h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.15;
}

.section-header p,
.section-headline p,
.panel-heading p,
.catalog-topbar p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal-deep);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: rgba(255, 255, 255, 0.78);
}

.steps-grid,
.feature-grid,
.metrics-grid,
.narrative-grid {
  display: grid;
  gap: 24px;
}

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

.step-card,
.feature-card,
.metric-card,
.panel,
.submission-card,
.admin-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(198, 216, 228, 0.7);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.step-card {
  position: relative;
  padding: 34px 26px 28px;
  text-align: center;
}

.step-number {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--cyan) 100%);
  color: white;
  font-weight: 700;
  box-shadow: 0 12px 20px rgba(15, 158, 165, 0.22);
}

.step-icon,
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  font-size: 1.2rem;
  font-weight: 700;
}

.step-icon {
  margin-top: 8px;
  background: linear-gradient(135deg, #dff7f1, #d8f1ff);
  color: var(--teal-deep);
}

.step-card h3,
.feature-card h3,
.resource-card h3,
.panel h3,
.admin-card h3 {
  margin: 18px 0 10px;
  font-size: 1.25rem;
  line-height: 1.35;
}

.step-card p,
.feature-card p,
.resource-card p,
.panel p,
.admin-card p,
.note-box p,
.warning-box li,
.entry-highlights p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.category-strip,
.resource-grid,
.ledger-list,
.stack-list,
.admin-list,
.quick-link-list {
  display: grid;
  gap: 18px;
}

.category-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 24px;
}

.category-pill,
.quick-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(15, 158, 165, 0.12);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  font-weight: 600;
}

.category-pill strong,
.quick-link.active {
  color: var(--teal-deep);
}

.quick-link.active {
  border-color: rgba(15, 158, 165, 0.32);
  background: linear-gradient(180deg, rgba(15, 158, 165, 0.1), rgba(37, 99, 235, 0.08));
}

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

.resource-grid-featured {
  gap: 22px;
}

.resource-card {
  border-radius: 24px;
  border: 1px solid rgba(198, 216, 228, 0.68);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.resource-cover {
  position: relative;
  display: block;
  min-height: 184px;
  margin: 20px 20px 0;
  padding: 16px 18px;
  border-radius: 18px;
  overflow: hidden;
  color: white;
}

.resource-cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.resource-cover-course-pack {
  background:
    linear-gradient(135deg, rgba(98, 145, 255, 0.22), rgba(29, 78, 216, 0.12)),
    linear-gradient(135deg, #5b7cff 0%, #2d63f0 52%, #1d4ed8 100%);
}

.resource-cover-notes {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #149b77 0%, #0f9ea5 55%, #1589cf 100%);
}

.resource-cover-prompt {
  background:
    linear-gradient(135deg, rgba(61, 16, 113, 0.12), rgba(0, 0, 0, 0.08)),
    linear-gradient(135deg, #111827 0%, #17356f 55%, #2563eb 100%);
}

.resource-cover-template {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, #0f766e 0%, #0ea5e9 45%, #60a5fa 100%);
}

.resource-cover-checklist {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #0e7490 0%, #1d4ed8 45%, #2563eb 100%);
}

.resource-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.18), transparent 25%),
    radial-gradient(circle at 88% 84%, rgba(255, 255, 255, 0.15), transparent 20%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 42%);
}

.resource-cover-custom::after {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.44)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 28%);
}

.resource-cover-badge {
  position: relative;
  z-index: 1;
}

.resource-cover-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 0.88rem;
  font-weight: 600;
}

.resource-cover-art {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  min-height: 160px;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
}

.resource-cover-custom .resource-cover-art {
  justify-content: flex-end;
}

.resource-cover-custom .resource-cover-badge,
.resource-cover-custom .resource-cover-label {
  text-shadow: 0 2px 12px rgba(15, 23, 42, 0.42);
}

.resource-cover-mark {
  font-size: clamp(3.6rem, 7vw, 4.8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  opacity: 0.92;
}

.resource-cover-label {
  max-width: 180px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
}

.resource-card-body {
  padding: 14px 20px 20px;
}

.resource-card h3 {
  margin: 0;
  min-height: 62px;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.03em;
  color: var(--text);
}

.resource-card h3 a {
  display: inline;
  color: var(--text);
}

.resource-card p {
  min-height: 58px;
  margin-top: 10px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.resource-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.resource-tags span,
.chip,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
}

.resource-tags span {
  background: #eef7fb;
  color: var(--teal-deep);
}

.resource-stats {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.94rem;
}

.resource-rating {
  color: #d97706;
  font-weight: 700;
}

.resource-price {
  color: var(--teal-deep);
  font-weight: 700;
}

.resource-card-bottom {
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.resource-owner {
  color: var(--muted-strong);
  font-size: 0.95rem;
}

.resource-owner .user-badge-copy small {
  display: none;
}

.resource-action {
  padding: 10px 14px;
  background: var(--surface-tint);
  color: var(--teal-deep);
}

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

.feature-card {
  padding: 34px 24px 28px;
  text-align: center;
}

.feature-card-figma {
  border-color: rgba(203, 214, 224, 0.88);
}

.feature-icon {
  margin: 0 auto;
}

.feature-icon.mint {
  background: var(--mint);
  color: var(--teal-deep);
}

.feature-icon.green {
  background: var(--green);
  color: #15803d;
}

.feature-icon.blue {
  background: var(--sky);
  color: var(--blue-deep);
}

.feature-icon.purple {
  background: var(--lavender);
  color: #7c3aed;
}

.cta-band {
  padding: 72px 0 80px;
}

.cta-band-figma {
  padding: 88px 0 92px;
}

.cta-content h2 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.cta-actions {
  margin-top: 34px;
}

.panel,
.submission-card,
.admin-card,
.note-box,
.warning-box,
.empty-state,
.price-box,
.preview-box {
  border-radius: 24px;
}

.panel,
.narrow-panel,
.detail-sidebar,
.detail-main,
.catalog-main,
.catalog-sidebar,
.auth-panel,
.upload-panel {
  width: 100%;
}

.panel {
  padding: 28px;
}

.filter-card {
  padding: 24px;
}

.filter-head strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.08rem;
}

.filter-head span {
  color: var(--muted);
  font-size: 0.94rem;
}

.catalog-hero {
  padding: 46px 0 54px;
  color: white;
}

.catalog-hero-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.catalog-summary {
  min-width: 180px;
  padding: 22px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.catalog-summary strong {
  display: block;
  font-size: 2.4rem;
}

.catalog-summary span {
  color: rgba(255, 255, 255, 0.8);
}

.catalog-shell,
.detail-shell,
.entry-shell,
.dual-panel {
  display: grid;
  gap: 24px;
}

.catalog-shell {
  grid-template-columns: 280px minmax(0, 1fr);
  padding-top: 30px;
  padding-bottom: 82px;
  align-items: start;
}

.catalog-sidebar {
  position: sticky;
  top: 96px;
}

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

.catalog-topbar {
  margin-bottom: 22px;
}

.catalog-topbar h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.filter-actions,
.stack-form,
.stack-list,
.admin-list,
.ledger-list,
.entry-highlights,
.entry-cards {
  display: grid;
  gap: 16px;
}

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

.stack-form label span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted-strong);
}

label input,
label select,
label textarea,
.inline-form input,
.inline-form select {
  padding: 14px 16px;
}

label input[type="file"] {
  padding: 14px;
  border: 1px solid rgba(198, 216, 228, 0.9);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(248, 251, 253, 0.98), rgba(241, 248, 252, 0.92));
  color: var(--muted-strong);
  font-size: 0.96rem;
  line-height: 1.5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

label input[type="file"]::file-selector-button,
label input[type="file"]::-webkit-file-upload-button {
  margin-right: 14px;
  padding: 11px 16px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--cyan) 54%, var(--blue) 100%);
  color: white;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 24px rgba(15, 158, 165, 0.22);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

label input[type="file"]:hover::file-selector-button,
label input[type="file"]:hover::-webkit-file-upload-button,
label input[type="file"]:focus-visible::file-selector-button,
label input[type="file"]:focus-visible::-webkit-file-upload-button {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 158, 165, 0.28);
}

label input[type="file"]::-webkit-file-upload-button {
  -webkit-appearance: none;
  appearance: none;
}

.upload-dropfield {
  display: grid;
  gap: 10px;
}

.field-hint {
  display: block;
  margin-top: 8px;
  color: #dc2626;
  font-size: 0.88rem;
  line-height: 1.55;
}

.field-hint-block {
  margin-top: -2px;
  padding-left: 30px;
}

.upload-dropfield > span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted-strong);
}

.upload-dropzone {
  position: relative;
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: 22px 24px;
  border: 1.5px dashed rgba(15, 158, 165, 0.22);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(248, 251, 253, 0.98), rgba(241, 248, 252, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  cursor: pointer;
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.upload-dropzone:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 158, 165, 0.32);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.upload-dropzone.is-dragover,
.upload-dropzone:focus-within {
  border-color: rgba(15, 158, 165, 0.52);
  background: linear-gradient(180deg, rgba(229, 247, 249, 0.98), rgba(234, 243, 255, 0.94));
  box-shadow: 0 0 0 4px rgba(15, 158, 165, 0.12);
}

.upload-dropzone.has-file {
  border-style: solid;
}

.upload-dropzone-cover {
  min-height: 154px;
}

.upload-dropzone-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-dropzone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(15, 158, 165, 0.14), rgba(37, 99, 235, 0.12));
  color: var(--teal-deep);
  font-size: 1.15rem;
  font-weight: 700;
}

.upload-dropzone-title {
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.45;
}

.upload-dropzone-copy {
  color: var(--muted);
  line-height: 1.7;
}

.upload-dropzone-filename {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--teal-deep);
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.upload-dropzone-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.compact-button {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.92rem;
}

.upload-preview-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(198, 216, 228, 0.74);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.upload-preview-card.is-empty {
  background: linear-gradient(180deg, rgba(248, 251, 253, 0.92), rgba(241, 248, 252, 0.88));
}

.upload-preview-head {
  display: grid;
  gap: 4px;
}

.upload-preview-head strong {
  color: var(--text);
  font-size: 1rem;
}

.upload-preview-head small,
.upload-preview-meta {
  color: var(--muted);
  line-height: 1.6;
}

.upload-preview-meta {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(244, 251, 252, 0.92);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.upload-preview-filelist {
  display: grid;
  gap: 8px;
}

.upload-preview-fileitem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(247, 250, 252, 0.96);
  border: 1px solid rgba(198, 216, 228, 0.65);
}

.upload-preview-filecopy {
  min-width: 0;
  display: grid;
  gap: 4px;
  flex: 1 1 auto;
}

.upload-preview-fileitem strong {
  color: var(--text);
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}

.upload-preview-fileitem span {
  color: var(--muted);
  font-size: 0.84rem;
}

.compact-primary-button {
  min-width: auto;
  padding: 10px 16px;
  font-size: 0.92rem;
}

.upload-preview-remove {
  flex-shrink: 0;
  min-width: auto;
  padding: 8px 12px;
}

body.has-upload-compress-modal {
  overflow: hidden;
}

.upload-compress-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.upload-compress-modal[hidden] {
  display: none !important;
}

.upload-compress-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 18, 36, 0.42);
  backdrop-filter: blur(8px);
}

.upload-compress-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 250, 255, 0.97));
  border: 1px solid rgba(201, 217, 234, 0.85);
  box-shadow: 0 32px 80px rgba(15, 32, 68, 0.22);
}

.upload-compress-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.upload-compress-close {
  flex-shrink: 0;
}

.upload-compress-copy {
  display: grid;
  gap: 6px;
}

.upload-compress-copy strong {
  color: var(--text);
  font-size: 0.98rem;
}

.upload-compress-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.92rem;
}

.upload-compress-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.upload-compress-name {
  display: grid;
  gap: 8px;
}

.upload-compress-name span {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.upload-compress-inline {
  display: block;
  margin-top: 10px;
  color: #0f766e;
  font-size: 0.9rem;
  line-height: 1.55;
  font-weight: 600;
}

.upload-compress-inline.is-success {
  color: #0f766e;
}

.upload-compress-inline.is-warning {
  color: #9a5b00;
}

.upload-compress-status {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.upload-compress-status.is-error {
  color: #b73a2a;
}

.upload-compress-status.is-success {
  color: #127c58;
}

.upload-compress-status.is-busy {
  color: #0e7490;
}

@media (max-width: 640px) {
  .upload-compress-modal {
    padding: 16px;
    align-items: end;
  }

  .upload-compress-modal-dialog {
    width: 100%;
    padding: 20px;
    border-radius: 24px;
  }

  .upload-compress-modal-head,
  .upload-compress-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .upload-compress-close {
    align-self: flex-end;
  }
}

.upload-preview-stage {
  min-height: 220px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(246, 251, 253, 0.96), rgba(238, 246, 251, 0.92));
  border: 1px solid rgba(198, 216, 228, 0.7);
  overflow: hidden;
}

.upload-preview-placeholder,
.upload-preview-generic {
  min-height: 220px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
}

.upload-preview-placeholder strong,
.upload-preview-generic-copy strong {
  color: var(--text);
  font-size: 1rem;
}

.upload-preview-placeholder p,
.upload-preview-generic-copy p {
  margin: 0;
  max-width: 420px;
  color: var(--muted);
  line-height: 1.7;
}

.upload-preview-generic {
  grid-template-columns: auto minmax(0, 1fr);
  place-content: center;
  justify-items: start;
  text-align: left;
}

.upload-preview-generic-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 158, 165, 0.14), rgba(37, 99, 235, 0.12));
  color: var(--teal-deep);
  font-size: 1.2rem;
  font-weight: 700;
}

.upload-preview-generic-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.upload-preview-image,
.upload-preview-video,
.upload-preview-frame {
  display: block;
  width: 100%;
  min-height: 220px;
  height: 220px;
  border: 0;
  object-fit: cover;
  background: rgba(15, 23, 42, 0.04);
}

.upload-preview-frame {
  background: white;
}

.upload-preview-audio {
  width: calc(100% - 28px);
  margin: 28px 14px 0;
}

.upload-preview-text {
  margin: 0;
  min-height: 220px;
  max-height: 260px;
  padding: 18px;
  overflow: auto;
  font: 0.92rem/1.65 "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  background: rgba(255, 255, 255, 0.82);
}

label textarea {
  resize: vertical;
  min-height: 124px;
}

label input:focus,
label select:focus,
label textarea:focus,
.header-search input:focus,
.inline-form input:focus,
.inline-form select:focus {
  outline: none;
  border-color: rgba(15, 158, 165, 0.5);
  box-shadow: 0 0 0 4px rgba(15, 158, 165, 0.12);
}

.wide-button {
  width: 100%;
}

.quick-link-list {
  margin-top: 18px;
}

.detail-shell {
  grid-template-columns: minmax(0, 1.6fr) 360px;
  padding-top: 36px;
  padding-bottom: 82px;
  align-items: start;
}

.detail-hero-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 28px;
  color: white;
  box-shadow: var(--shadow);
}

.detail-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.2)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 28%);
}

.detail-hero-has-cover::after {
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.12), rgba(17, 24, 39, 0.54)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 24%);
}

.detail-hero-content,
.detail-hero-badge {
  position: relative;
  z-index: 1;
}

.detail-hero-content h1 {
  margin: 18px 0 14px;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  line-height: 1.08;
}

.detail-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.8;
}

.detail-meta {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.detail-owner-row {
  margin-top: 18px;
}

.detail-owner-badge {
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.detail-owner-badge .user-badge-copy strong,
.detail-owner-badge .user-badge-copy small {
  color: white;
}

.detail-meta span,
.tiny-meta {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  font-size: 0.88rem;
}

.detail-attachments {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.detail-attachment-list {
  display: grid;
  gap: 10px;
}

.detail-attachment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(247, 250, 252, 0.95);
  border: 1px solid rgba(198, 216, 228, 0.72);
}

.detail-attachment-item strong,
.detail-attachment-item small {
  display: block;
}

.detail-attachment-item small {
  margin-top: 4px;
  color: var(--muted);
}

.detail-content-grid {
  display: grid;
  gap: 20px;
  margin-top: 22px;
}

.section-panel {
  padding: 24px;
}

.preview-box {
  margin-top: 14px;
  padding: 18px 20px;
  background: linear-gradient(180deg, #f8fbfd, #f3f8fc);
  border: 1px solid var(--line);
}

.preview-box strong,
.note-box strong,
.warning-box strong,
.price-box strong {
  display: block;
}

.price-box {
  padding: 22px 22px 18px;
  background: linear-gradient(180deg, rgba(15, 158, 165, 0.08), rgba(37, 99, 235, 0.08));
  border: 1px solid rgba(15, 158, 165, 0.16);
}

.price-box span {
  color: var(--muted);
  font-size: 0.94rem;
}

.price-box strong {
  margin-top: 10px;
  font-size: 2.6rem;
  line-height: 1;
}

.price-box small,
.sidebar-block small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.exchange-card,
.sidebar-block {
  display: grid;
  gap: 18px;
}

.status-pill {
  background: rgba(15, 158, 165, 0.12);
  color: var(--teal-deep);
}

.status-pill-light {
  width: fit-content;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.note-box,
.warning-box,
.empty-state {
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #f9fbfd, #f4f8fc);
}

.note-box strong,
.warning-box strong {
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.warning-box {
  background: var(--warning-bg);
  border-color: #f7d9a4;
  color: var(--warning-text);
}

.warning-box ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.compact-warning {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.compact-warning span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.empty-state {
  text-align: center;
}

.empty-state h2 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

.entry-shell {
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
  gap: 28px;
  padding-top: 56px;
  padding-bottom: 82px;
  align-items: start;
}

.entry-intro {
  min-width: 0;
  color: white;
}

.entry-preview-workbench {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 20px;
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding: 28px;
  border-radius: 32px;
  background: linear-gradient(135deg, #0fa6a5 0%, #0f99b2 45%, #1f73f2 100%);
  box-shadow: var(--shadow);
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.entry-intro-copy {
  display: grid;
  gap: 22px;
}

.entry-intro h1 {
  font-size: clamp(2.6rem, 4vw, 4rem);
}

.entry-insight-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.entry-insight-pill {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.entry-insight-pill span {
  display: block;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.84rem;
}

.entry-insight-pill strong {
  display: block;
  margin-top: 10px;
  color: white;
  font-size: 1.2rem;
  line-height: 1.2;
}

.entry-live-preview-shell {
  display: grid;
  gap: 14px;
  align-content: start;
}

.entry-live-preview-head {
  display: grid;
  gap: 10px;
}

.entry-live-preview-head p {
  max-width: none;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.entry-live-preview-shell .resource-card {
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
}

.entry-live-preview-shell .resource-card a {
  pointer-events: none;
}

.entry-live-preview-shell .resource-card h3 {
  font-size: 1.46rem;
  min-height: 0;
}

.entry-live-preview-shell .resource-card h3 a {
  color: #081427;
}

.entry-guidance-card {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.entry-sample-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(198, 216, 228, 0.72);
  box-shadow: var(--shadow-soft);
}

.entry-sample-cover {
  position: relative;
  min-height: 204px;
  padding: 18px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  overflow: hidden;
}

.entry-sample-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.18));
}

.entry-sample-cover > * {
  position: relative;
  z-index: 1;
}

.entry-sample-cover-course-pack {
  background:
    linear-gradient(135deg, rgba(98, 145, 255, 0.22), rgba(29, 78, 216, 0.12)),
    linear-gradient(135deg, #5b7cff 0%, #2d63f0 52%, #1d4ed8 100%);
}

.entry-sample-cover-notes {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #149b77 0%, #0f9ea5 55%, #1589cf 100%);
}

.entry-sample-cover-prompt {
  background:
    linear-gradient(135deg, rgba(61, 16, 113, 0.12), rgba(0, 0, 0, 0.08)),
    linear-gradient(135deg, #111827 0%, #17356f 55%, #2563eb 100%);
}

.entry-sample-cover-template {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, #0f766e 0%, #0ea5e9 45%, #60a5fa 100%);
}

.entry-sample-cover-checklist {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #0e7490 0%, #1d4ed8 45%, #2563eb 100%);
}

.entry-sample-cover.has-image::after {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.48)),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 24%);
}

.entry-sample-cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.entry-sample-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.84rem;
  font-weight: 700;
}

.entry-sample-cover-copy {
  display: grid;
  gap: 8px;
}

.entry-sample-cover-copy strong {
  font-size: 1.5rem;
  line-height: 1.2;
  color: white;
  text-wrap: balance;
}

.entry-sample-cover-copy small {
  color: rgba(255, 255, 255, 0.82);
}

.entry-sample-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.entry-sample-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.entry-sample-price {
  color: var(--teal-deep);
  font-size: 0.94rem;
  font-weight: 700;
}

.entry-sample-summary {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.98rem;
  line-height: 1.7;
}

.entry-sample-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.entry-sample-tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef7fb;
  color: var(--teal-deep);
  font-size: 0.84rem;
  font-weight: 600;
}

.entry-sample-owner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.entry-sample-owner-avatar,
.entry-sample-owner-avatar-image {
  width: 38px;
  height: 38px;
  border-radius: 999px;
}

.entry-sample-owner-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fee2d7, #d9f4f8);
  color: var(--teal-deep);
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.entry-sample-owner-avatar-image {
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.entry-sample-owner-copy {
  display: grid;
  gap: 3px;
}

.entry-sample-owner-copy strong {
  color: var(--text);
  font-size: 0.95rem;
}

.entry-sample-owner-copy small {
  color: var(--muted);
}

.entry-sample-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
  border-top: 1px solid rgba(198, 216, 228, 0.64);
}

.entry-sample-footer span {
  color: var(--muted);
  font-size: 0.88rem;
}

.entry-sample-footer strong {
  color: var(--text);
  font-size: 0.96rem;
}

.entry-guidance-card {
  padding: 18px;
}

.entry-sample-card {
  overflow: hidden;
}

.entry-guidance-stack {
  display: grid;
  gap: 16px;
}

.entry-guidance-card h3 {
  margin: 4px 0 0;
  color: white;
  font-size: 1.26rem;
  line-height: 1.3;
}

.entry-guidance-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.entry-guidance-list div {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
}

.entry-guidance-list strong {
  color: white;
  font-size: 0.98rem;
}

.entry-guidance-list small {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.entry-guidance-card-soft {
  background: rgba(255, 255, 255, 0.1);
}

.entry-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.entry-flow span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.84rem;
  font-weight: 600;
}

.entry-highlights {
  margin-top: 30px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.entry-highlights article {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
}

.entry-highlights strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.entry-highlights p {
  color: rgba(255, 255, 255, 0.84);
}

.auth-panel,
.upload-panel {
  padding: 28px;
}

.auth-panel-secondary {
  margin-top: 18px;
}

.entry-cards-auth {
  align-content: start;
}

.compact-stack {
  gap: 14px;
}

.auth-divider {
  height: 1px;
  margin: 4px 0;
  background: linear-gradient(90deg, rgba(190, 204, 215, 0), rgba(190, 204, 215, 0.95), rgba(190, 204, 215, 0));
}

.security-form {
  max-width: 620px;
}

.upload-shell {
  align-items: stretch;
}

.guardrail-section {
  padding-top: 0;
}

.checkbox-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.narrative-panel,
.submission-card,
.admin-card {
  padding: 24px;
}

.metrics-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.metric-card {
  padding: 22px 18px;
}

.metric-card span {
  display: block;
  color: var(--muted);
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  font-size: 2rem;
}

.metric-card.highlight {
  background: linear-gradient(180deg, rgba(15, 158, 165, 0.12), rgba(37, 99, 235, 0.1));
}

.admin-actions,
.inline-form,
.filter-bar,
.ledger-item,
.ledger-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.inline-form {
  flex-wrap: wrap;
}

.inline-form input,
.inline-form select {
  min-width: 180px;
}

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

#admin-pricing {
  grid-column: 1 / -1;
}

.pricing-table {
  display: grid;
  gap: 18px;
}

.pricing-table-shell {
  overflow: hidden;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.04);
}

.pricing-table-scroll {
  overflow: visible;
}

.pricing-matrix-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.pricing-matrix-table th,
.pricing-matrix-table td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.pricing-matrix-table thead th {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 800;
}

.pricing-matrix-table tbody tr:last-child td {
  border-bottom: none;
}

.pricing-matrix-table th:first-child,
.pricing-matrix-table td:first-child {
  width: 26%;
}

.pricing-matrix-table input {
  width: 100%;
  min-width: 0;
}

.pricing-category-cell {
  display: grid;
  gap: 4px;
}

.pricing-category-cell strong {
  font-size: 1rem;
  line-height: 1.35;
}

.pricing-category-cell small {
  color: var(--muted);
  line-height: 1.5;
}

.pricing-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 4px;
}

.pricing-form-footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.chip {
  background: rgba(15, 158, 165, 0.12);
  color: var(--teal-deep);
}

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

.ledger-item {
  justify-content: space-between;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.ledger-item strong {
  display: block;
  margin-bottom: 6px;
}

.ledger-item small,
.admin-card p small,
.ledger-right small {
  color: var(--muted);
}

.ledger-right {
  flex-direction: column;
  align-items: flex-end;
}

.positive {
  color: #15803d;
  font-weight: 700;
}

.negative {
  color: #dc2626;
  font-weight: 700;
}

.site-footer-wrap {
  margin-top: 40px;
  background: linear-gradient(90deg, var(--teal) 0%, #0f99b2 45%, var(--blue) 100%);
  color: white;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 44px;
  padding: 52px 0 34px;
}

.footer-brand-block p,
.footer-column a {
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.8;
}

.footer-brand-block p {
  max-width: 620px;
  font-size: 0.98rem;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer-column h3 {
  margin: 0 0 8px;
  font-size: 1.8rem;
}

.footer-column a {
  font-size: 0.98rem;
}

.footer-column a:hover {
  color: white;
}

.footer-bottom {
  padding: 22px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
}

.dashboard-hero {
  padding: 54px 0 62px;
  color: white;
  background: linear-gradient(135deg, #0fa6a5 0%, #0f99b2 44%, #1f73f2 100%);
}

.dashboard-hero-admin {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(135deg, #0c8e93 0%, #0e7fb4 42%, #1d4ed8 100%);
}

.dashboard-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.95fr);
  gap: 28px;
  align-items: center;
}

.dashboard-hero-stack {
  grid-template-columns: 1fr;
  align-items: start;
}

.dashboard-hero-stack .dashboard-copy h1 {
  max-width: 14ch;
}

.dashboard-copy {
  min-width: 0;
}

.dashboard-copy h1 {
  margin: 18px 0 14px;
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.dashboard-copy p:not(.eyebrow) {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.04rem;
  line-height: 1.8;
}

.dashboard-metric-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  align-items: stretch;
  min-width: 0;
}

.dashboard-metric-band-admin {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.dashboard-metric-band-security {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-metric-band-profile {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.dashboard-metric-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
  min-height: 138px;
  overflow: hidden;
  padding: 20px 20px 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.dashboard-metric-card-wide {
  grid-column: span 2;
}

.dashboard-metric-card.highlight {
  background: rgba(255, 255, 255, 0.18);
}

.dashboard-metric-card span {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.dashboard-metric-card strong {
  display: block;
  margin: 0;
  max-width: 100%;
  font-size: clamp(1.55rem, 2.2vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dashboard-metric-value-email {
  font-size: clamp(1.1rem, 1.7vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.dashboard-metric-value-compact {
  font-size: clamp(1.2rem, 1.6vw, 1.55rem);
  line-height: 1.25;
}

.dashboard-shell {
  padding-top: 28px;
  padding-bottom: 82px;
}

.admin-shell {
  gap: 28px;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.4fr);
  gap: 24px;
}

.dashboard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.dashboard-tab,
.section-counter,
.submission-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
}

.dashboard-tab {
  padding: 12px 18px;
  border: 1px solid rgba(15, 158, 165, 0.18);
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted-strong);
  box-shadow: var(--shadow-soft);
}

.dashboard-tab.active {
  background: linear-gradient(135deg, rgba(15, 158, 165, 0.14), rgba(37, 99, 235, 0.12));
  border-color: rgba(15, 158, 165, 0.32);
  color: var(--teal-deep);
}

.dashboard-tab small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(15, 158, 165, 0.08);
  color: inherit;
  font-size: 0.8rem;
  font-weight: 700;
}

.dashboard-section {
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(198, 216, 228, 0.7);
  box-shadow: var(--shadow-soft);
}

.section-heading-row,
.submission-head,
.unlock-card-top,
.unlock-card-actions,
.ledger-main {
  display: flex;
  align-items: center;
}

.section-heading-row {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-heading-row h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.15;
}

.section-counter {
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(15, 158, 165, 0.1), rgba(37, 99, 235, 0.08));
  color: var(--teal-deep);
}

.submission-card-strong,
.admin-card-strong,
.unlock-card,
.ledger-item-strong {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 253, 0.98));
  border: 1px solid rgba(198, 216, 228, 0.78);
}

.submission-head,
.admin-card-head {
  justify-content: space-between;
  gap: 22px;
}

.submission-card-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.submission-head {
  min-width: 0;
  align-items: flex-start;
  flex: 1;
}

.submission-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.submission-side {
  display: grid;
  gap: 12px;
  justify-items: end;
  min-width: 130px;
}

.submission-actions {
  display: grid;
  gap: 10px;
  justify-items: stretch;
  width: 100%;
}

.submission-withdraw-form {
  width: 100%;
}

.submission-withdraw-form button {
  width: 100%;
}

.submission-price {
  padding: 10px 14px;
  background: rgba(15, 158, 165, 0.1);
  color: var(--teal-deep);
}

.submission-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.submission-meta-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--surface-tint);
  color: var(--muted-strong);
  font-size: 0.92rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.submission-meta-grid-user {
  padding: 8px 10px !important;
}

.submission-meta-grid-user .user-badge {
  width: 100%;
}

.admin-user-badge {
  color: var(--text);
}

.admin-user-badge .user-badge-copy strong {
  font-size: 0.92rem;
}

.admin-user-badge-lg .user-badge-copy strong {
  font-size: 1rem;
}

.admin-user-heading {
  margin-bottom: 8px;
}

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

.unlock-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.unlock-card-top {
  justify-content: space-between;
  gap: 12px;
}

.unlock-card-body h3 {
  margin: 0 0 10px;
}

.unlock-card-actions {
  justify-content: space-between;
  gap: 12px;
}

.unlock-card-actions a {
  flex: 1;
}

.ledger-main {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.ledger-item-strong {
  padding: 20px 22px;
}

.moderation-shell {
  gap: 28px;
}

.moderation-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.profile-summary-card,
.profile-editor-card {
  display: grid;
  gap: 22px;
  align-content: start;
}

.profile-summary-top {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.profile-avatar-shell {
  width: 112px;
  height: 112px;
  border-radius: 32px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(15, 158, 165, 0.16), rgba(37, 99, 235, 0.16));
  color: var(--teal-deep);
  font-size: 2.8rem;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.profile-summary-top h2 {
  margin: 6px 0 8px;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.05;
}

.profile-summary-email,
.profile-summary-headline {
  margin: 0;
}

.profile-summary-email {
  color: var(--muted);
}

.profile-summary-headline {
  margin-top: 8px;
  color: var(--muted-strong);
  line-height: 1.7;
}

.profile-summary-stack {
  display: grid;
  gap: 12px;
}

.profile-summary-item {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(15, 158, 165, 0.06), rgba(37, 99, 235, 0.05));
  border: 1px solid rgba(15, 158, 165, 0.12);
}

.profile-summary-item span {
  color: var(--muted);
  font-size: 0.88rem;
}

.profile-summary-item strong {
  font-size: 1.2rem;
  line-height: 1.35;
}

.profile-link-compact,
.profile-link-compact a {
  overflow-wrap: anywhere;
}

.profile-form {
  gap: 18px;
}

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

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.public-profile-grid {
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
}

.public-profile-summary-card,
.public-profile-content {
  align-content: start;
}

.public-profile-content {
  display: grid;
  gap: 20px;
}

.public-profile-resource-grid {
  margin-top: 4px;
}

.public-profile-empty {
  min-height: 240px;
  place-content: center;
}

.moderation-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 20px;
  border: 1px solid rgba(15, 158, 165, 0.14);
  background: rgba(244, 251, 252, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.moderation-search span {
  color: var(--muted);
  font-size: 1rem;
}

.moderation-search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
}

.moderation-search input:focus {
  outline: none;
}

.moderation-filter-tabs {
  margin-bottom: 22px;
}

.moderation-card {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.moderation-card-head {
  align-items: flex-start;
}

.moderation-side {
  display: grid;
  gap: 10px;
  justify-items: end;
  min-width: 150px;
}

.moderation-meta-grid,
.moderation-tags {
  margin-top: 0;
}

.moderation-note-box {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(15, 158, 165, 0.06);
  border: 1px solid rgba(15, 158, 165, 0.14);
}

.moderation-note-box strong {
  display: block;
  margin-bottom: 6px;
  color: var(--teal-deep);
}

.moderation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.moderation-actions .inline-form {
  flex: 1 1 320px;
}

.chip-alert {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.status-pill-pending {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.status-pill-approved,
.status-pill-active {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.status-pill-rejected,
.status-pill-banned {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.status-pill-suspended {
  background: rgba(99, 102, 241, 0.12);
  color: #4338ca;
}

.status-pill-draft,
.status-pill-light {
  background: rgba(148, 163, 184, 0.14);
  color: #475569;
}

.status-pill-live {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.status-pill-takedown {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.chip-demo,
.inline-chip-demo {
  background: rgba(99, 102, 241, 0.12);
  color: #4338ca;
}

.inline-chip {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  vertical-align: middle;
}

.resource-card-topline {
  margin-bottom: 10px;
}

.moderation-sort-select {
  display: grid;
  gap: 6px;
  min-width: 200px;
  color: var(--slate-500);
  font-size: 0.92rem;
}

.moderation-sort-select select {
  min-height: 46px;
}

.compact-checkbox-row {
  gap: 10px;
  font-size: 0.92rem;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(239, 68, 68, 0.06);
}

.policy-shell {
  padding-top: 48px;
}

.policy-grid {
  display: grid;
  gap: 22px;
}

.policy-card {
  display: grid;
  gap: 12px;
}

.policy-card p {
  margin: 0;
  color: var(--slate-600);
  line-height: 1.7;
}

.pagination-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.button-disabled {
  pointer-events: none;
  opacity: 0.45;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "brand actions"
      "search search";
  }

  .brand {
    grid-area: brand;
  }

  .header-actions {
    grid-area: actions;
  }

  .header-search {
    grid-area: search;
  }

  .category-strip,
  .feature-grid,
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resource-grid,
  .steps-grid,
  .entry-insight-strip,
  .unlock-grid,
  .submission-meta-grid,
  .dashboard-metric-band,
  .dashboard-metric-band-admin,
  .profile-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .moderation-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .moderation-side {
    width: 100%;
    justify-items: start;
  }

  .catalog-shell,
  .detail-shell,
  .entry-shell,
  .dual-panel,
  .site-footer,
  .dashboard-hero-inner,
  .profile-grid,
  .public-profile-grid {
    grid-template-columns: 1fr;
  }

  .catalog-sidebar {
    position: static;
  }

  .catalog-hero-inner {
    flex-direction: column;
    align-items: start;
  }

  .pricing-table-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
  }

  .pricing-matrix-table {
    min-width: 720px;
  }

}

@media (max-width: 760px) {
  .site-container {
    width: min(100vw - 28px, 100%);
  }

  .site-header,
  .header-actions,
  .hero-actions,
  .resource-card-bottom,
  .section-header,
  .panel-heading,
  .catalog-topbar,
  .admin-actions,
  .moderation-actions,
  .inline-form,
  .ledger-item {
    flex-direction: column;
    align-items: stretch;
  }

  .header-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
  }

  .header-score,
  .header-upload,
  .header-link-button,
  .header-avatar {
    width: 100%;
  }

  .site-header {
    gap: 12px;
    padding: 10px 0 12px;
  }

  .brand {
    gap: 10px;
    min-width: 0;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .brand-copy strong {
    font-size: 1.2rem;
  }

  .brand-copy small {
    font-size: 0.8rem;
  }

  .header-score,
  .header-upload,
  .header-link-button {
    min-width: 0;
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 14px;
  }

  .header-score {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .header-score-value,
  .header-score-guest .header-score-value {
    font-size: 1.05rem;
  }

  .header-avatar {
    width: 44px;
  }

  .header-search input {
    height: 48px;
    padding-left: 42px;
    border-radius: 14px;
  }

  .header-search-icon {
    left: 14px;
  }

  .hero-stage,
  .catalog-hero,
  .cta-band {
    padding-top: 54px;
    padding-bottom: 60px;
  }

  .hero-container h1,
  .catalog-hero h1,
  .entry-intro h1,
  .detail-hero-content h1 {
    font-size: clamp(2.25rem, 10vw, 3.2rem);
  }

  .hero-stats,
  .resource-grid,
  .steps-grid,
  .feature-grid,
  .category-strip,
  .entry-insight-strip,
  .metrics-grid,
  .unlock-grid,
  .submission-meta-grid,
  .dashboard-metric-band,
  .dashboard-metric-band-admin {
    grid-template-columns: 1fr;
  }

  .panel,
  .step-card,
  .feature-card,
  .auth-panel,
  .upload-panel,
  .detail-hero-card {
    padding: 22px;
  }

  .resource-stats {
    flex-wrap: wrap;
  }

  .resource-card-bottom {
    gap: 14px;
  }

  .resource-action {
    width: 100%;
  }

  .dashboard-tabs,
  .submission-card-main,
  .unlock-card-top,
  .unlock-card-actions,
  .section-heading-row,
  .profile-actions,
  .entry-sample-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .entry-preview-workbench {
    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
    padding: 22px;
  }

  .dashboard-metric-card-wide {
    grid-column: auto;
  }

  .submission-side {
    justify-items: stretch;
  }

  .profile-summary-top {
    grid-template-columns: 1fr;
  }

  .profile-avatar-shell {
    width: 96px;
    height: 96px;
  }

  .pricing-form-footer {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 520px) {
  .site-header {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "actions"
      "search";
    gap: 10px;
  }

  .brand-copy strong {
    font-size: 1.08rem;
  }

  .brand-copy small {
    margin-top: 2px;
    font-size: 0.76rem;
  }

  .header-actions {
    gap: 8px;
  }

  .header-score,
  .header-upload,
  .header-link-button {
    min-height: 44px;
    padding: 9px 10px;
    font-size: 0.92rem;
  }

  .header-score-label {
    font-size: 0.72rem;
  }

  .header-search input {
    height: 46px;
    font-size: 0.95rem;
  }
}

[hidden] {
  display: none !important;
}

.hero-container-rich {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.hero-copy-shell {
  display: grid;
  gap: 22px;
}

.hero-aside-grid,
.creator-grid,
.collection-grid,
.topic-grid,
.dashboard-dual-grid {
  display: grid;
  gap: 20px;
}

.hero-aside-grid {
  grid-template-columns: 1fr;
}

.hero-aside-card,
.topic-card,
.collection-card,
.creator-card,
.feed-item-card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.14);
  color: white;
  box-shadow: 0 18px 36px rgba(12, 48, 95, 0.16);
}

.hero-aside-card {
  padding: 20px;
}

.hero-aside-label {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.hero-chip-list,
.hero-mini-list {
  display: grid;
  gap: 12px;
}

.hero-chip,
.hero-mini-list a {
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-chip {
  font-weight: 600;
}

.hero-mini-list a strong,
.feed-item-card strong,
.collection-card h3,
.topic-card strong,
.creator-card strong {
  display: block;
}

.hero-mini-list a small,
.hero-aside-empty,
.feed-item-card small,
.collection-card p,
.collection-card-meta,
.topic-card small,
.creator-card-metrics {
  color: rgba(255, 255, 255, 0.8);
}

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

.feature-card-link {
  align-items: flex-start;
}

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

.topic-card {
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(15, 158, 165, 0.08), rgba(37, 99, 235, 0.08));
  color: var(--text);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.topic-card small {
  margin-top: 8px;
  color: var(--muted);
}

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

.collection-grid-compact {
  margin-bottom: 28px;
}

.collection-card,
.creator-card,
.feed-item-card {
  padding: 18px 20px;
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.collection-card p,
.feed-item-card small {
  color: var(--muted);
}

.collection-card-meta,
.creator-card-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--muted);
}

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

.creator-card-badge {
  width: 100%;
}

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

.stack-list-compact {
  gap: 14px;
}

.feed-item-card {
  display: grid;
  gap: 8px;
}

.feed-item-card .user-badge {
  width: 100%;
}

.collection-builder-list {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.collection-resource-row {
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.resource-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.resource-topics a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(15, 158, 165, 0.1);
  color: var(--teal-deep);
  font-size: 0.88rem;
  font-weight: 600;
}

.resource-taxonomy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.resource-taxonomy-grid strong {
  display: block;
  margin-bottom: 10px;
}

.detail-inline-preview {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #0f172a;
}

.detail-inline-preview iframe,
.detail-inline-preview img,
.detail-inline-preview video {
  display: block;
  width: 100%;
  min-height: 360px;
  border: 0;
}

.detail-inline-preview audio {
  display: block;
  width: 100%;
  padding: 24px;
  background: white;
}

.detail-attachment-item-link {
  color: inherit;
}

.resource-grid-compact {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

@media (max-width: 960px) {
  .hero-container-rich,
  .dashboard-dual-grid,
  .feature-grid-compact {
    grid-template-columns: 1fr;
  }

  .detail-inline-preview iframe,
  .detail-inline-preview img,
  .detail-inline-preview video {
    min-height: 260px;
  }
}
