@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #eef2f7;
  --surface: rgba(250, 252, 255, 0.84);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --ink: #142033;
  --muted: #5e6a7f;
  --muted-strong: #445065;
  --border: rgba(20, 32, 51, 0.12);
  --line: rgba(20, 32, 51, 0.08);
  --accent: #3767d6;
  --accent-deep: #274ca7;
  --accent-soft: rgba(55, 103, 214, 0.1);
  --green: #1c7a58;
  --amber: #996a16;
  --slate: #526073;
  --shadow: 0 28px 72px rgba(19, 30, 49, 0.12);
  --shadow-soft: 0 14px 34px rgba(19, 30, 49, 0.07);
  --radius: 22px;
  --container: min(1200px, calc(100vw - 40px));
  font-family: "Manrope", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(55, 103, 214, 0.08), transparent 24rem),
    radial-gradient(circle at 85% 10%, rgba(20, 32, 51, 0.05), transparent 26rem),
    linear-gradient(180deg, #f7f9fc 0%, #edf1f6 100%);
  color: var(--ink);
  font: 16px/1.6 "Manrope", "Segoe UI", sans-serif;
  overflow-x: hidden;
}

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

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

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

.site-header,
.detail-shell,
.marketplace-shell,
.profile-section,
.story-section,
.custom-stub-section,
.proof-strip,
.how-section,
.admin-shell,
.site-footer {
  width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

main > section + section {
  margin-top: 18px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 18px;
  gap: 20px;
}

.site-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.site-mark strong {
  display: block;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.site-mark small {
  display: block;
  color: var(--muted);
}

.site-mark-badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: linear-gradient(135deg, #16233a, #334764);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 10px 24px rgba(20, 32, 51, 0.18);
}

.site-nav {
  display: flex;
  gap: 24px;
  min-width: 0;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(20, 32, 51, 0.08);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 24px rgba(20, 32, 51, 0.06);
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
}

.site-nav a:hover {
  color: var(--ink);
  background: rgba(24, 33, 29, 0.05);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #17243a, #223455);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(20, 32, 51, 0.16);
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(20, 32, 51, 0.18);
}

.button-secondary,
.button-tertiary {
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: none;
}

.button-ghost {
  width: 100%;
}

.button-tertiary {
  min-height: 36px;
  padding: 0 14px;
}

.home-hero {
  width: var(--container);
  margin: 0 auto;
  min-height: min(760px, calc(100svh - 88px));
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 32px;
  align-items: start;
  padding: 22px 0 28px;
}

.hero-copy h1,
.admin-header h1,
.section-head h2,
.detail-hero h1,
.auth-card h1 {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.hero-copy h1 {
  font-size: clamp(3rem, 5vw, 4.6rem);
  line-height: 0.93;
  max-width: 9.5ch;
}

.hero-copy {
  position: relative;
  display: grid;
  gap: 18px;
  align-content: start;
  padding-top: 26px;
}

.hero-text,
.section-head p,
.detail-panel p,
.auth-card p,
.hero-copy p {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  color: #4f6da8;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 2px;
}

.hero-stage {
  display: grid;
  gap: 16px;
  align-content: start;
  padding-top: 18px;
}

.hero-intro {
  display: grid;
  gap: 4px;
  max-width: 42rem;
}

.hero-intro strong {
  font-size: 0.92rem;
  letter-spacing: -0.02em;
}

.hero-intro span {
  color: var(--muted-strong);
  font-size: 1rem;
  line-height: 1.5;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 6px;
}

.hero-points div {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(20, 32, 51, 0.08);
}

.hero-points strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.hero-points span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.stage-panel,
.listing-card,
.detail-panel,
.table-panel,
.editor-panel,
.auth-card,
.metric-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 250, 255, 0.86));
  border: 1px solid rgba(20, 32, 51, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.stage-panel {
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
}

.stage-panel::after {
  content: "";
  position: absolute;
  inset: auto -15% -50% 50%;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(55, 103, 214, 0.12), transparent 65%);
  pointer-events: none;
}

.stage-panel span,
.metric-card span,
.data-table small,
.price-grid dt,
.metric-grid dt {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.stage-panel strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.7rem, 2vw, 2.15rem);
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.stage-panel small {
  display: block;
  margin-top: 8px;
  max-width: 28ch;
  line-height: 1.45;
}

.featured-panel {
  background: linear-gradient(180deg, rgba(19, 30, 49, 0.94), rgba(28, 42, 68, 0.96));
  color: #f4f7fb;
  border-color: rgba(255, 255, 255, 0.06);
}

.featured-panel span,
.featured-panel small,
.featured-panel .featured-link span {
  color: rgba(255, 255, 255, 0.72);
}

.featured-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.featured-link {
  display: block;
  padding: 15px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.featured-link strong {
  display: block;
  font-size: 0.96rem;
  line-height: 1.25;
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.featured-link span {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
}

.hero-caption {
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 30ch;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px auto 52px;
}

.proof-strip div {
  padding: 22px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 32, 51, 0.08);
  box-shadow: var(--shadow-soft);
}

.proof-strip strong,
.how-grid strong {
  display: block;
  margin-bottom: 6px;
}

.profile-section,
.story-section,
.custom-stub-section {
  position: relative;
  z-index: 1;
  padding: 32px 0 12px;
}

.profile-section .section-head {
  align-items: stretch;
  margin-bottom: 28px;
}

.profile-graphic {
  min-width: 320px;
  max-width: 430px;
}

.profile-graphic-stage {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(19, 30, 49, 0.95), rgba(34, 52, 85, 0.96)),
    radial-gradient(circle at 10% 10%, rgba(84, 128, 229, 0.22), transparent 45%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 28px 72px rgba(16, 24, 39, 0.18);
}

.profile-lane {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-lane span {
  color: rgba(228, 236, 248, 0.68);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-lane strong {
  color: #f3f7fc;
  font-size: 1rem;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

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

.profile-card,
.story-shell,
.custom-stub-shell {
  border-radius: 26px;
  border: 1px solid rgba(20, 32, 51, 0.08);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.profile-card {
  display: grid;
  align-content: start;
  min-height: 100%;
  padding: 26px 26px 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(246, 249, 254, 0.86));
}

.profile-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(55, 103, 214, 0.1);
  border: 1px solid rgba(55, 103, 214, 0.12);
  color: var(--accent-deep);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.profile-card h3,
.story-copy h2,
.custom-stub-copy h2 {
  margin: 18px 0 10px;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.profile-card p,
.story-copy p,
.custom-stub-copy p,
.custom-stub-card p {
  color: var(--muted-strong);
}

.profile-card ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.profile-card li {
  position: relative;
  padding-left: 16px;
  color: var(--muted-strong);
}

.profile-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  transform: translateY(-50%);
}

.surface-note {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(20, 32, 51, 0.08);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(241, 246, 252, 0.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.82);
  color: var(--muted-strong);
}

.surface-note-public {
  margin-top: 18px;
}

.surface-note strong {
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.surface-note span,
.surface-note p {
  color: var(--muted-strong);
  line-height: 1.55;
  margin: 0;
}

.story-shell,
.custom-stub-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 18px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(245, 249, 254, 0.86));
}

.story-copy,
.custom-stub-copy {
  min-width: 0;
}

.story-copy p + p {
  margin-top: 14px;
}

.story-metrics,
.custom-stub-notes {
  display: grid;
  gap: 12px;
}

.story-metrics div,
.custom-stub-notes div,
.custom-stub-card {
  padding: 18px 18px 17px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(241, 246, 252, 0.92));
  border: 1px solid rgba(20, 32, 51, 0.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.82);
}

.story-metrics span,
.custom-stub-notes strong,
.custom-stub-card span {
  display: block;
}

.story-metrics span,
.custom-stub-card span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.story-metrics strong,
.custom-stub-notes span,
.custom-stub-card strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  line-height: 1.4;
}

.custom-stub-price {
  display: grid;
  gap: 8px;
  margin: 22px 0 18px;
  padding: 20px 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(19, 30, 49, 0.96), rgba(30, 46, 76, 0.98));
  color: #f5f8fc;
}

.custom-stub-price strong {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.custom-stub-price span {
  color: rgba(232, 238, 247, 0.76);
}

.custom-stub-card {
  display: grid;
  gap: 12px;
  align-content: start;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.99), rgba(241, 246, 252, 0.95));
}

.custom-stub-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.9fr);
  gap: 14px;
}

.custom-stub-steps {
  display: grid;
  gap: 10px;
  margin: 4px 0 2px;
}

.custom-stub-steps div {
  padding: 14px 15px;
  border-radius: 18px;
  background: rgba(20, 32, 51, 0.04);
  border: 1px solid rgba(20, 32, 51, 0.06);
}

.custom-stub-steps strong {
  display: block;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
}

.custom-stub-steps span {
  display: block;
  margin-top: 4px;
  color: var(--muted-strong);
  line-height: 1.45;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.9rem;
}

.custom-stub-card .button {
  width: 100%;
}

.custom-stub-form {
  margin-top: 4px;
}

.custom-stub-card small {
  color: var(--muted);
  line-height: 1.45;
}

.marketplace-shell,
.how-section,
.detail-shell {
  padding: 28px 0 64px;
}

.site-footer {
  margin: 8px auto 28px;
  padding-top: 0;
}

.site-footer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 24px;
  align-items: center;
  padding: 18px 2px 10px;
  border-top: 1px solid rgba(20, 32, 51, 0.08);
}

.site-footer-brand {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.site-footer-brand strong {
  font-size: 0.98rem;
  letter-spacing: -0.03em;
}

.site-footer-brand span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer-links a:hover {
  color: var(--ink);
}

.site-footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  text-align: right;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-end;
  margin-bottom: 22px;
}

.section-head > div:first-child {
  max-width: 720px;
}

.section-head.compact {
  align-items: center;
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.inline-actions {
  justify-content: flex-start;
  margin: 2px 0 4px;
}

.toggle-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(20, 32, 51, 0.1);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-size: 0.92rem;
}

.toggle-chip input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.filter-bar,
.stack-form,
.detail-form-panel .inquiry-form {
  display: grid;
  gap: 16px;
}

.filter-bar {
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(150px, 1fr));
  align-items: end;
  margin-bottom: 26px;
  padding: 20px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 254, 0.88));
  border: 1px solid rgba(20, 32, 51, 0.08);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.marketplace-shell .section-head {
  margin-bottom: 18px;
}

.results-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
  min-width: 220px;
  padding: 12px 0 12px 24px;
  border-left: 1px solid rgba(20, 32, 51, 0.08);
}

.results-meta #resultCount {
  color: var(--ink);
  font-size: clamp(1.7rem, 2.1vw, 2.15rem);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.results-meta #resultSummary {
  color: var(--muted-strong);
  font-size: 0.92rem;
}

.marketplace-shell .filter-bar label {
  display: grid;
  gap: 8px;
}

.marketplace-shell .filter-bar label span {
  margin-bottom: 0;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.marketplace-shell .filter-bar input,
.marketplace-shell .filter-bar select {
  min-height: 54px;
  border-radius: 18px;
  background: rgba(250, 252, 255, 0.98);
}

label span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.84rem;
  color: var(--muted);
}

input,
textarea,
select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(248, 251, 255, 0.92);
  color: var(--ink);
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

input:hover,
textarea:hover,
select:hover {
  border-color: rgba(20, 32, 51, 0.18);
}

input:focus,
textarea:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(55, 103, 214, 0.34);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(55, 103, 214, 0.08);
}

.listing-grid,
.how-grid,
.metrics-band,
.overview-grid,
.detail-grid,
.admin-two-up,
.field-row {
  display: grid;
  gap: 18px;
}

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

.listing-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px rgba(20, 32, 51, 0.14);
}

.listing-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.listing-card .listing-actions,
.listing-card .button,
.listing-card .status-pill {
  position: relative;
  z-index: 2;
}

.listing-thumb {
  aspect-ratio: 16 / 10;
  position: relative;
  background: linear-gradient(135deg, rgba(55, 103, 214, 0.10), rgba(20, 32, 51, 0.08));
}

.listing-thumb::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(24, 33, 29, 0.08));
}

.listing-thumb img,
.thumb-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.thumb-fallback {
  display: grid;
  place-items: center;
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.08em;
  color: #38558d;
}

.listing-copy,
.price-grid,
.metric-grid,
.listing-actions,
.detail-panel,
.auth-card,
.metric-card,
.editor-panel,
.table-panel {
  padding: 22px;
  min-width: 0;
}

.listing-topline,
.status-line,
.metric-row,
.listing-actions,
.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.listing-topline {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px 12px;
}

.listing-topline span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.35;
  font-size: 0.95rem;
}

.listing-copy h3,
.detail-panel h2,
.table-panel h2,
.editor-panel h2 {
  margin: 10px 0 8px;
  font-size: 1.08rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.listing-copy h3 {
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-copy p {
  min-height: 4.4em;
  font-size: 0.96rem;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.price-grid,
.metric-grid,
.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.price-grid div,
.metric-grid div,
.stats-grid div {
  padding: 16px 0 0;
}

.price-grid dd,
.metric-grid dd,
.stats-grid strong {
  margin: 6px 0 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.proof-panel .stats-grid {
  margin-top: 18px;
  border-top: 0;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.proof-panel .stats-grid div {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(241, 246, 252, 0.92));
  border: 1px solid rgba(20, 32, 51, 0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.proof-panel .stats-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.proof-panel .stats-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 1.4rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.listing-actions {
  justify-content: space-between;
  color: var(--muted);
  gap: 10px;
}

.listing-status-note {
  display: grid;
  gap: 6px;
  padding: 16px 22px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.listing-status-note strong {
  color: var(--ink);
  font-size: 0.92rem;
  letter-spacing: -0.02em;
}

.listing-status-note span {
  font-size: 0.88rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.listing-card-unavailable .listing-copy p {
  min-height: 0;
}

.listing-card-unavailable .listing-copy {
  padding-bottom: 18px;
}

.listing-card-unavailable .listing-status-note {
  padding: 14px 22px 16px;
}

.listing-card-unavailable .metric-grid {
  border-top: 1px solid var(--line);
  background: rgba(20, 32, 51, 0.02);
}

.listing-card-unavailable .metric-grid div {
  padding-top: 14px;
}

.listing-card-unavailable .listing-actions {
  margin-top: auto;
}

.listing-card > * {
  min-width: 0;
}

.empty-state,
.empty-state-inline,
.not-found {
  padding: 48px 22px;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  text-align: center;
  color: var(--muted);
  background: rgba(255,255,255,0.7);
}

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

.how-grid article {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.detail-body .site-header {
  padding-top: 18px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  margin-bottom: 24px;
}

.detail-hero-copy,
.detail-hero-rail {
  min-width: 0;
  padding: 30px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(20, 32, 51, 0.08);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.detail-hero-copy {
  display: grid;
  gap: 18px;
  align-content: start;
}

.detail-hero-rail {
  display: grid;
  gap: 18px;
  align-content: start;
}

.detail-hero h1 {
  max-width: 100%;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  margin: 2px 0 0;
  line-height: 1.08;
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.07em;
  padding: 0.02em 0 0.14em;
}

.lede {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
  max-width: 34ch;
  color: var(--muted-strong);
}

.status-line {
  gap: 14px;
}

.status-line > span:last-child {
  color: var(--muted-strong);
  font-size: 0.96rem;
  letter-spacing: -0.02em;
}

.metric-row {
  gap: 10px;
  margin-top: 2px;
}

.metric-row span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(20, 32, 51, 0.05);
  border: 1px solid rgba(20, 32, 51, 0.07);
  color: var(--muted-strong);
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.metric-row strong {
  color: var(--ink);
  margin-right: 4px;
}

.pricing-stack {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.pricing-stack div {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(20, 32, 51, 0.05);
  border: 1px solid rgba(20, 32, 51, 0.06);
}

.pricing-stack strong {
  display: block;
  font-size: 1.5rem;
  overflow-wrap: anywhere;
}

.detail-rail-note {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(241, 246, 252, 0.92));
  border: 1px solid rgba(20, 32, 51, 0.08);
}

.detail-rail-note .eyebrow {
  margin: 0;
}

.detail-rail-note strong {
  font-size: 1.25rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.detail-rail-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.detail-hero-actions {
  display: grid;
  gap: 12px;
}

.detail-hero-actions .button {
  width: 100%;
}

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

.detail-story {
  grid-column: span 2;
}

.detail-faq {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.detail-faq summary {
  cursor: pointer;
  font-weight: 700;
}

.detail-faq p {
  margin: 10px 0 0;
}

.check-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  min-height: 56px;
  display: flex;
  align-items: center;
  padding: 0 18px 0 52px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(241, 246, 252, 0.92));
  border: 1px solid rgba(20, 32, 51, 0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.82);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: linear-gradient(135deg, rgba(55, 103, 214, 0.18), rgba(55, 103, 214, 0.08));
  border: 1px solid rgba(55, 103, 214, 0.2);
  box-shadow: inset 0 0 0 4px rgba(55, 103, 214, 0.12);
}

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

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

.field-row.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field-row.four-up {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.field-row.meta-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-message {
  min-height: 24px;
  color: var(--muted);
}

.form-message.compact {
  min-height: 0;
  margin: 0;
}

.form-message.success {
  color: var(--green);
}

.form-message.error {
  color: #b42318;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(20, 32, 51, 0.07);
  border: 1px solid rgba(20, 32, 51, 0.06);
  font-weight: 700;
}

.status-available {
  background: rgba(28, 122, 88, 0.10);
  color: var(--green);
}

.status-reserved {
  background: rgba(153, 106, 22, 0.11);
  color: var(--amber);
}

.status-rented,
.status-neutral {
  background: rgba(24, 33, 29, 0.10);
  color: var(--slate);
}

.status-sold {
  background: rgba(148, 67, 30, 0.12);
  color: var(--accent-deep);
}

.loading-card .loading-block {
  height: 18px;
  margin: 14px 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(20, 32, 51, 0.05), rgba(20, 32, 51, 0.11), rgba(20, 32, 51, 0.05));
  background-size: 200% 100%;
  animation: shimmer 1.1s linear infinite;
}

.loading-card .loading-block.lg {
  height: 180px;
  margin: 0;
  border-radius: 0;
}

.admin-body {
  min-height: 100svh;
  background:
    radial-gradient(circle at 0% 0%, rgba(55, 103, 214, 0.05), transparent 28rem),
    radial-gradient(circle at 100% 20%, rgba(20, 32, 51, 0.05), transparent 30rem),
    linear-gradient(180deg, #f6f8fb 0%, #eef2f7 100%);
}

.admin-shell {
  display: block;
  padding: 18px 0 24px;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-button {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(20, 32, 51, 0.08);
  background: rgba(255,255,255,0.74);
  color: var(--muted-strong);
  text-align: center;
  cursor: pointer;
}

.nav-button.active {
  border-color: rgba(55, 103, 214, 0.12);
  background: linear-gradient(180deg, rgba(55, 103, 214, 0.16), rgba(55, 103, 214, 0.10));
  color: var(--accent-deep);
}

.auth-gate {
  min-height: calc(100svh - 48px);
  display: grid;
  place-items: center;
  width: 100%;
  position: relative;
}

.admin-authenticated .auth-gate {
  display: none !important;
}

.auth-site-mark {
  position: absolute;
  top: 0;
  left: 0;
}

.auth-card {
  width: min(560px, 100%);
  padding: 34px;
}

.admin-logged-out .auth-card {
  max-width: 560px;
}

.admin-logged-out .auth-card h1 {
  max-width: 11ch;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
}

.admin-logged-out .auth-card .stack-form {
  gap: 18px;
}

.auth-card .stack-form[hidden] {
  display: none !important;
}

.admin-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 20px;
  align-items: end;
  margin-bottom: 22px;
}

.admin-header h1 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.admin-header-main {
  min-width: 0;
}

.admin-header-mark {
  margin-bottom: 18px;
}

.admin-header-nav {
  grid-column: 1 / -1;
  padding: 12px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(247, 250, 255, 0.80));
  border: 1px solid rgba(20, 32, 51, 0.08);
  box-shadow: var(--shadow-soft);
}

.account-menu {
  position: relative;
  align-self: start;
}

.account-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 0;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(20, 32, 51, 0.08);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: var(--shadow-soft);
}

.account-menu-button:hover {
  background: rgba(255,255,255,0.96);
}

.account-menu-button::after {
  content: "▾";
  margin-left: 10px;
  font-size: 0.78rem;
  color: var(--muted);
}

.account-menu-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 10;
  min-width: 260px;
  padding: 10px;
  border-radius: 22px;
  background: rgba(250, 252, 255, 0.98);
  border: 1px solid rgba(20, 32, 51, 0.1);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.account-menu-meta {
  display: grid;
  gap: 2px;
  padding: 8px 10px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.account-menu-meta strong,
.account-menu-meta span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.account-menu-meta strong {
  font-size: 0.96rem;
  letter-spacing: -0.02em;
}

.account-menu-meta span {
  color: var(--muted);
  font-size: 0.85rem;
}

.account-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  box-shadow: none;
}

.account-menu-item:hover {
  background: rgba(20, 32, 51, 0.05);
}

.metrics-band {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin-bottom: 20px;
}

.metric-card strong {
  display: block;
  margin-top: 12px;
  font-size: 1.4rem;
  letter-spacing: -0.04em;
}

.overview-grid,
.admin-two-up {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.data-table th,
.data-table td {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}

.data-table td small {
  margin-top: 4px;
  font-size: 0.82rem;
  line-height: 1.4;
}

.data-table-compact th,
.data-table-compact td {
  padding-right: 14px;
}

.data-table-compact th:last-child,
.data-table-compact td:last-child {
  padding-right: 0;
}

.table-panel {
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 249, 254, 0.88));
  border-color: rgba(20, 32, 51, 0.07);
  box-shadow: 0 24px 54px rgba(20, 32, 51, 0.08);
}

.analytics-grid > .table-panel {
  overflow: auto;
}

.editor-panel {
  align-self: start;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 249, 254, 0.90));
  border-color: rgba(20, 32, 51, 0.07);
  box-shadow: 0 24px 54px rgba(20, 32, 51, 0.08);
}

.admin-view {
  display: grid;
  gap: 18px;
}

.section-inline-note {
  margin: -8px 0 0;
  color: var(--muted-strong);
  line-height: 1.55;
}

.section-inline-note strong {
  color: var(--ink);
}

.stubs-editor-panel {
  padding: 24px;
}

.form-section {
  border: 1px solid rgba(20, 32, 51, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(247, 250, 255, 0.74));
  overflow: hidden;
}

.form-section + .form-section {
  margin-top: 6px;
}

.form-section summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.form-section summary::after {
  content: "+";
  font-size: 1.1rem;
  color: var(--muted);
}

.form-section[open] summary::after {
  content: "−";
}

.form-section-body {
  display: grid;
  gap: 16px;
  padding: 0 20px 20px;
  border-top: 1px solid rgba(20, 32, 51, 0.08);
}

.field-help {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.stubs-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 220px) minmax(200px, 260px);
  gap: 16px;
  margin-bottom: 22px;
  align-items: end;
}

.stubs-toolbar-field {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.stubs-toolbar-field select {
  min-height: 52px;
}

.stubs-toolbar-field input[type="file"] {
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(20, 32, 51, 0.10);
  background: rgba(248, 251, 255, 0.96);
}

.stubs-toolbar-import {
  grid-column: 1 / -1;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(241, 246, 252, 0.92));
  border: 1px solid rgba(20, 32, 51, 0.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.82);
}

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

.analytics-grid {
  align-items: start;
}

.analytics-detail-panel {
  display: grid;
  gap: 18px;
}

.analytics-detail-card,
.analytics-chart-card,
.analytics-feed {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(20, 32, 51, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(246, 249, 254, 0.80));
}

.analytics-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 16px;
}

.analytics-detail-head h3 {
  margin: 8px 0 4px;
  font-size: 1.4rem;
  overflow-wrap: anywhere;
}

.analytics-picker {
  display: grid;
  gap: 8px;
  min-width: 240px;
}

.analytics-stat-grid,
.analytics-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.analytics-stat-grid div,
.analytics-meta div {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(20, 32, 51, 0.04);
  border: 1px solid rgba(20, 32, 51, 0.05);
}

.analytics-stat-grid span,
.analytics-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.analytics-stat-grid strong,
.analytics-meta strong {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.analytics-table {
  min-width: 760px;
  table-layout: auto;
}

.analytics-table th,
.analytics-table td {
  padding-right: 14px;
  overflow-wrap: normal;
  word-break: normal;
}

.analytics-table td:first-child {
  min-width: 220px;
}

.analytics-table td small {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.analytics-error {
  margin-top: 16px;
  border: 1px solid rgba(180, 35, 24, 0.18);
  color: #7f1d1d;
}

.analytics-bars {
  display: grid;
  gap: 12px;
}

.analytics-bar-row {
  display: grid;
  gap: 8px;
}

.analytics-bar-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
}

.analytics-bar-meta strong {
  font-size: 0.96rem;
}

.analytics-bar-track {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(20, 32, 51, 0.08);
}

.analytics-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(45, 92, 195, 0.84), rgba(94, 137, 229, 0.84));
}

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

.snapshot-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(20, 32, 51, 0.04);
}

.snapshot-item strong {
  display: block;
}

.snapshot-item small {
  display: block;
  color: var(--muted);
}

.snapshot-item-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: end;
  text-align: right;
}

.snapshot-item-metrics span {
  color: var(--muted-strong);
  font-size: 0.92rem;
}

.website-sidebar,
.website-editor-panel {
  align-self: start;
}

.website-sidebar {
  display: grid;
  gap: 14px;
}

.website-sidebar .website-actions {
  grid-template-columns: repeat(auto-fit, minmax(180px, max-content));
  justify-content: start;
}

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

.readout-card {
  min-width: 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(241, 246, 252, 0.92));
  border: 1px solid rgba(20, 32, 51, 0.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.82);
}

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

.readout-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.readout-card strong,
.readout-card code {
  display: block;
  min-width: 0;
  font-size: 0.96rem;
  line-height: 1.45;
}

.readout-card strong {
  font-weight: 700;
}

.readout-card code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: var(--muted-strong);
}

.stack-form label,
.field-row label,
.checkbox-row label {
  min-width: 0;
}

.technical-field input,
.technical-field textarea {
  font-family: ui-monospace, SFMono-Regular, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.8rem;
  line-height: 1.45;
}

.technical-field textarea,
textarea[readonly] {
  resize: vertical;
}

.website-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.website-editor-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.security-panel {
  padding: 24px;
}

.account-grid {
  align-items: start;
  margin-bottom: 18px;
}

.account-grid .security-panel {
  min-width: 0;
}

.security-setup {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.security-qr-card {
  width: fit-content;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(24, 33, 29, 0.08);
}

.security-qr-card svg,
.security-qr-card img {
  width: 240px;
  height: 240px;
}

.website-summary {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.website-summary-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.website-summary h3,
.website-fieldset h3 {
  margin: 0;
  font-size: 1.2rem;
}

.website-summary p,
.website-fieldset p,
.repo-hint {
  margin: 8px 0 0;
  color: var(--muted);
}

.repo-meta,
.repo-meta-grid,
.website-fieldset-body {
  display: grid;
  gap: 14px;
}

.repo-meta-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(241, 246, 252, 0.92));
  border: 1px solid rgba(20, 32, 51, 0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.repo-meta-card strong,
.repo-meta-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 0.96rem;
}

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

.repo-meta-grid div {
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(241, 246, 252, 0.92));
  border: 1px solid rgba(20, 32, 51, 0.08);
}

.website-fieldset,
.website-repeater-card {
  border-radius: 22px;
  border: 1px solid rgba(24, 33, 29, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(246, 249, 254, 0.72));
  overflow: hidden;
}

.website-fieldset-head,
.website-repeater-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.website-collapsible > details {
  display: grid;
}

.website-collapsible > details > summary {
  list-style: none;
  cursor: pointer;
  padding: 20px;
}

.website-collapsible > details > summary::-webkit-details-marker {
  display: none;
}

.website-collapsible > details > summary::after {
  content: "+";
  margin-left: auto;
  padding-left: 16px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
}

.website-collapsible > details[open] > summary::after {
  content: "−";
}

.website-collapsible > details > .website-fieldset-body,
.website-collapsible > details > .website-repeater-list {
  padding: 0 20px 20px;
  border-top: 1px solid rgba(24, 33, 29, 0.08);
}

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

.website-repeater-toolbar strong {
  font-size: 0.95rem;
}

.website-repeater-toolbar > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.website-input-block {
  display: grid;
  gap: 10px;
}

.website-input-label {
  display: grid;
  gap: 10px;
}

.website-input-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted-strong);
}

.website-input-help {
  display: block;
  margin-top: -2px;
  color: var(--muted);
  line-height: 1.5;
}

.website-checkbox {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 600;
}

.website-checkbox input {
  width: auto;
}

.color-control {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.color-control input[type="color"] {
  min-height: 52px;
  padding: 6px;
}

.image-control,
.image-control-actions {
  display: grid;
  gap: 12px;
}

.image-control-actions input[type="file"] {
  padding: 10px 12px;
}

.inquiry-detail,
.detail-note {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(241, 246, 252, 0.92));
  border: 1px solid rgba(20, 32, 51, 0.08);
  white-space: pre-wrap;
}

.inquiry-guidance {
  background: linear-gradient(180deg, rgba(19, 30, 49, 0.96), rgba(31, 47, 76, 0.98));
  border-color: rgba(255, 255, 255, 0.05);
  color: #f3f7fc;
  box-shadow: 0 24px 54px rgba(17, 26, 43, 0.16);
}

.inquiry-guidance p {
  margin: 0;
  color: rgba(236, 241, 249, 0.82);
  line-height: 1.55;
}

.inquiry-guidance strong {
  color: #ffffff;
}

.page-aura,
.admin-aura {
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
  filter: blur(10px);
}

.page-aura-one {
  top: -100px;
  right: -100px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(72, 121, 226, 0.15), transparent 70%);
}

.page-aura-two {
  top: 360px;
  left: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(24, 33, 29, 0.08), transparent 72%);
}

.admin-aura-one {
  top: 120px;
  right: -90px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(72, 121, 226, 0.14), transparent 72%);
}

.admin-aura-two {
  bottom: -60px;
  left: 18%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(24, 33, 29, 0.08), transparent 74%);
}

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

@media (max-width: 1120px) {
  .home-hero,
  .detail-hero,
  .admin-shell,
  .overview-grid,
  .admin-two-up,
  .website-layout {
    grid-template-columns: 1fr;
  }

  .profile-grid,
  .story-shell,
  .custom-stub-shell,
  .custom-stub-grid,
  .site-footer-shell {
    grid-template-columns: 1fr;
  }

  .profile-graphic {
    min-width: 0;
    max-width: none;
  }

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

  .admin-sidebar {
    position: static;
  }

  .listing-grid,
  .proof-strip,
  .how-grid,
  .metrics-band,
  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-row.four-up,
  .field-row.three-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .readout-grid {
    grid-template-columns: 1fr;
  }

  .readout-card-wide {
    grid-column: span 1;
  }

  .stubs-toolbar {
    grid-template-columns: 1fr;
  }

  .detail-story {
    grid-column: auto;
  }

  .results-meta {
    justify-items: start;
    min-width: 0;
    padding: 0;
    border-left: 0;
  }
}

@media (max-width: 720px) {
  .site-header,
  .section-head,
  .admin-header,
  .website-editor-toolbar,
  .website-summary-head,
  .website-fieldset-head,
  .website-repeater-toolbar {
    flex-direction: column;
    align-items: start;
  }

  .site-nav,
  .hero-actions,
  .metric-row,
  .site-footer-links {
    flex-direction: column;
    align-items: start;
  }

  .site-nav {
    width: 100%;
    border-radius: 22px;
  }

  .listing-grid,
  .proof-strip,
  .how-grid,
  .profile-grid,
  .metrics-band,
  .detail-grid,
  .filter-bar,
  .field-row,
  .field-row.three-up,
  .field-row.four-up,
  .stubs-toolbar,
  .repo-meta-grid,
  .readout-grid,
  .stats-grid,
  .price-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .detail-hero h1 {
    max-width: none;
  }

  .detail-hero h1 {
    font-size: clamp(1.9rem, 8vw, 2.8rem);
  }

  .home-hero {
    min-height: auto;
    padding-bottom: 10px;
  }

  .profile-section,
  .story-section,
  .custom-stub-section,
  .marketplace-shell,
  .how-section,
  .detail-shell {
    padding-top: 24px;
  }

  .story-shell,
  .custom-stub-shell {
    padding: 20px;
  }

  .site-footer-shell {
    padding: 16px 0 8px;
  }

  .site-footer-copy {
    text-align: left;
  }

  .profile-card {
    padding: 22px 20px 20px;
  }

  .profile-card h3,
  .story-copy h2,
  .custom-stub-copy h2 {
    font-size: 1.5rem;
  }

  .results-meta #resultCount {
    font-size: 1.6rem;
  }

  .listing-copy,
  .price-grid,
  .metric-grid,
  .listing-actions,
  .detail-panel,
  .auth-card,
  .metric-card,
  .editor-panel,
  .table-panel,
  .detail-hero-copy,
  .detail-hero-rail {
    padding: 18px;
  }

  .listing-topline {
    flex-direction: column;
    align-items: start;
    gap: 8px;
  }

  .listing-copy h3 {
    font-size: 1rem;
  }

  .listing-copy p {
    min-height: 0;
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .listing-status-note {
    padding: 14px 18px 0;
  }

  .metric-grid {
    gap: 10px;
    border-top: 1px solid var(--line);
  }

  .metric-grid div {
    padding: 14px 0 0;
  }

  .listing-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .listing-actions .button {
    width: 100%;
  }
}
