:root {
  color-scheme: light;
  --page: #f4f1ea;
  --page-strong: #ebe5da;
  --surface: #ffffff;
  --surface-soft: #f8f6f1;
  --surface-tint: #eef5f0;
  --ink: #191d1a;
  --muted: #66706a;
  --subtle: #8d948f;
  --line: #e1ded6;
  --line-strong: #cec8bb;
  --brand: #146b55;
  --brand-dark: #0d4f3e;
  --accent: #a66f25;
  --danger: #b42318;
  --warning: #8a5b00;
  --shadow: 0 16px 44px rgba(33, 31, 26, 0.08);
  --shadow-soft: 0 8px 24px rgba(33, 31, 26, 0.06);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.admin-health-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.admin-health-header,
.admin-health-toolbar,
.admin-health-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

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

.admin-health-header h1,
.admin-health-toolbar h2,
.admin-health-row h2 {
  margin: 0;
}

.admin-health-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-health-filters button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 8px;
  padding: 8px 10px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.admin-health-filters button.active {
  border-color: var(--ink);
}

.admin-health-filters em {
  color: var(--muted);
  font-style: normal;
}

.admin-health-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.admin-health-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface);
}

.admin-health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.admin-health-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface-soft);
}

.admin-health-grid span,
.admin-health-details p {
  color: var(--muted);
}

.admin-health-grid strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.admin-health-details {
  display: grid;
  gap: 4px;
  margin-top: 14px;
}

.admin-health-details p {
  margin: 0;
}

@media (max-width: 760px) {
  .admin-health-header,
  .admin-health-toolbar,
  .admin-health-main {
    display: grid;
  }

  .admin-health-filters {
    justify-content: flex-start;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(244, 241, 234, 0) 420px),
    linear-gradient(135deg, rgba(20, 107, 85, 0.09), rgba(166, 111, 37, 0.08) 42%, rgba(244, 241, 234, 0) 72%),
    var(--page);
}

body:has(.home-shell) {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 76% 14%, rgba(20, 107, 85, 0.18), transparent 34%),
    radial-gradient(circle at 12% 24%, rgba(166, 111, 37, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 241, 234, 0.06) 620px),
    var(--page);
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-dark);
}

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

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 56px;
}

.home-shell {
  width: min(1220px, calc(100% - 32px));
  padding-bottom: 82px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  padding: 12px 14px;
  border: 1px solid rgba(225, 222, 214, 0.85);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.home-shell .topbar {
  position: relative;
  z-index: 2;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

.brand,
.auth-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--ink);
}

.brand strong,
.auth-brand {
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0;
}

.brand span,
.muted {
  color: var(--muted);
}

.portal-auth-links {
  width: fit-content;
  margin: 10px auto 18px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.portal-auth-links a {
  color: var(--muted);
  font-weight: 850;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.86fr);
  gap: 32px;
  align-items: center;
  padding: 46px 0 34px;
}

.home-hero {
  position: relative;
  grid-template-columns: minmax(0, 0.92fr) minmax(470px, 1.08fr);
  gap: 54px;
  min-height: 700px;
  padding: 58px 0 74px;
}

.home-hero::before {
  content: "PAID CONTENT";
  position: absolute;
  z-index: -1;
  left: -18px;
  bottom: 20px;
  max-width: 1020px;
  color: rgba(25, 29, 26, 0.035);
  font-size: clamp(5rem, 15vw, 12rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.78;
}

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

.home-hero .hero-copy {
  align-content: center;
  gap: 22px;
  animation: homeRise 720ms ease both;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 4.8rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.home-hero h1 {
  max-width: 780px;
  font-size: clamp(3.9rem, 7.2vw, 6.7rem);
  line-height: 0.92;
}

.home-hero .hero-copy > p:not(.eyebrow) {
  max-width: 640px;
  color: #505b55;
  font-size: 1.24rem;
  line-height: 1.58;
}

.home-hero .actions {
  gap: 12px;
}

.home-hero .large-button {
  min-height: 52px;
  padding: 0 18px;
}

.hero p,
.section-heading p,
.creator-focus p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.product-preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
  box-shadow: var(--shadow);
}

.portal-preview {
  position: relative;
  overflow: visible;
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    linear-gradient(145deg, #18231f, #47503b 58%, #9a7335);
  box-shadow: 0 38px 88px rgba(25, 29, 26, 0.24);
  transform: translateY(10px) rotate(-0.45deg);
  animation: mockupEnter 840ms ease 120ms both, mockupFloat 7s ease-in-out 1.1s infinite;
}

.portal-preview::before {
  content: "";
  position: absolute;
  inset: 18px -8px -18px 20px;
  z-index: -1;
  border-radius: 18px;
  background: rgba(20, 107, 85, 0.2);
  filter: blur(0);
}

.portal-preview::after {
  content: "";
  position: absolute;
  inset: -14px;
  z-index: -2;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(20, 107, 85, 0.12)),
    rgba(255, 255, 255, 0.28);
  transform: rotate(3deg);
}

.preview-top {
  display: flex;
  gap: 7px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.preview-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.chrome-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
}

.chrome-url {
  min-width: 0;
  margin-left: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.84rem;
  font-weight: 850;
}

.portal-mockup {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(170px, 0.55fr);
  grid-template-areas:
    "hero plan"
    "hero link"
    "videos videos";
  gap: 14px;
  padding: 18px;
}

.mock-hero-card,
.mock-side-card,
.mock-link-card,
.mock-video-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.15);
}

.mock-hero-card {
  grid-area: hero;
  min-height: 336px;
  display: grid;
  align-content: end;
  gap: 12px;
  padding: 24px;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(17, 22, 19, 0.74)),
    linear-gradient(135deg, rgba(20, 107, 85, 0.44), rgba(166, 111, 37, 0.32)),
    #1e2b25;
}

.mock-kicker {
  width: max-content;
  padding: 7px 10px;
  border-radius: 999px;
  color: #18332a;
  background: rgba(255, 255, 255, 0.84);
  font-size: 0.78rem;
  font-weight: 900;
}

.mock-hero-card strong {
  max-width: 390px;
  font-size: 1.92rem;
  line-height: 1.04;
}

.mock-hero-card p,
.mock-side-card span,
.mock-side-card small,
.mock-link-card span,
.mock-link-card small {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.45;
}

.mock-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mock-actions span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  color: #153027;
  background: #ffffff;
  font-weight: 900;
}

.mock-actions span + span {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.mock-side-card {
  grid-area: plan;
  align-self: start;
  display: grid;
  gap: 8px;
  min-height: 154px;
  padding: 18px;
  background: rgba(17, 22, 19, 0.56);
}

.mock-side-card strong {
  font-size: 1.36rem;
  line-height: 1.08;
}

.mock-link-card {
  grid-area: link;
  display: grid;
  gap: 8px;
  min-height: 154px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    rgba(17, 22, 19, 0.42);
}

.mock-side-card small,
.mock-link-card small {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mock-link-card strong {
  font-size: 1.16rem;
  line-height: 1.14;
}

.mock-video-row {
  grid-area: videos;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mock-video-card {
  overflow: hidden;
  min-height: 132px;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    linear-gradient(120deg, #27342e, #7c7f59);
}

.mock-video-card span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(17, 22, 19, 0.56);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.floating-panel {
  position: absolute;
  display: grid;
  gap: 4px;
  width: 190px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  color: #ffffff;
  background: rgba(24, 35, 31, 0.74);
  box-shadow: 0 22px 46px rgba(17, 22, 19, 0.2);
  backdrop-filter: blur(14px);
  animation: panelFloat 6.5s ease-in-out infinite;
}

.floating-panel small {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.floating-panel strong {
  line-height: 1.18;
}

.floating-panel-one {
  left: 18px;
  bottom: 84px;
  transform: rotate(3deg);
}

.floating-panel-two {
  right: 28px;
  top: 38px;
  width: 154px;
  transform: rotate(-3deg);
  animation-delay: 700ms;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 10px;
  border: 1px solid rgba(225, 222, 214, 0.8);
  border-radius: 14px;
  background: var(--line);
  box-shadow: var(--shadow-soft);
  animation: sectionRise 700ms ease both;
}

.proof-strip div {
  min-height: 132px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.82);
  transition: transform 180ms ease, background 180ms ease;
}

.proof-strip div:hover {
  transform: translateY(-2px);
  background: #ffffff;
}

.proof-strip strong {
  font-size: 1.06rem;
  line-height: 1.25;
}

.proof-strip span {
  color: var(--muted);
  line-height: 1.45;
}

.narrative-section,
.portal-experience-section {
  margin-top: 34px;
  padding: 44px;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  animation: sectionRise 760ms ease both;
}

.narrative-section {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  gap: 36px;
  align-items: start;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(20, 107, 85, 0.36), rgba(166, 111, 37, 0.12)),
    #202721;
}

.narrative-section::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -140px;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.narrative-section > * {
  position: relative;
  z-index: 1;
}

.narrative-copy h2,
.portal-experience-section h2 {
  max-width: 760px;
  margin: 0;
  font-size: 2.55rem;
  line-height: 1.04;
  letter-spacing: 0;
}

.narrative-copy p:not(.eyebrow),
.portal-experience-section .section-heading p {
  max-width: 650px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.08rem;
  line-height: 1.62;
}

.narrative-section .eyebrow {
  color: #d9e3dd;
}

.narrative-points {
  display: grid;
  gap: 14px;
}

.narrative-points div {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 22px 22px 22px 52px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  transition: transform 180ms ease, background 180ms ease;
}

.narrative-points div:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.1);
}

.narrative-points span {
  position: absolute;
  top: 25px;
  left: 22px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.1);
}

.narrative-points strong {
  font-size: 1.1rem;
  line-height: 1.25;
}

.narrative-points p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.mock-video-card.mock-locked {
  background:
    linear-gradient(135deg, rgba(20, 107, 85, 0.25), rgba(17, 22, 19, 0.2)),
    linear-gradient(120deg, #1b2520, #404837);
}

.mock-video-card.mock-locked span {
  color: #ffffff;
  background: rgba(17, 22, 19, 0.78);
}

.preview-top span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #cfc8ba;
}

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

.preview-panel,
.preview-video {
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.preview-panel.wide {
  grid-column: 1 / -1;
}

.preview-panel strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.45rem;
}

.preview-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.preview-video {
  min-height: 150px;
  background:
    linear-gradient(135deg, rgba(20, 107, 85, 0.08), rgba(166, 111, 37, 0.12)),
    linear-gradient(120deg, #202823, #59675d);
}

.locked-preview {
  position: relative;
}

.locked-preview::after {
  content: "Subscribers only";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(17, 22, 19, 0.62);
  font-weight: 900;
}

.section-band,
.benefit-section,
.creator-focus {
  margin-top: 34px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-soft);
  animation: sectionRise 760ms ease both;
}

.process-section {
  scroll-margin-top: 22px;
}

.process-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.88), rgba(238, 245, 240, 0.8)),
    var(--surface);
}

.portal-experience-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(238, 245, 240, 0.9)),
    var(--surface);
}

.portal-experience-section::before {
  content: "";
  position: absolute;
  right: 40px;
  top: 36px;
  width: 170px;
  height: 170px;
  border-radius: 40px;
  background: rgba(20, 107, 85, 0.08);
  transform: rotate(12deg);
}

.portal-experience-section > * {
  position: relative;
  z-index: 1;
}

.portal-experience-section .section-heading {
  max-width: 850px;
}

.portal-experience-section .section-heading p,
.portal-experience-section .eyebrow {
  color: var(--muted);
}

.experience-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 24px;
  align-items: stretch;
}

.experience-preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: rotate(-0.6deg);
}

.experience-banner {
  height: 230px;
  background:
    radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(180deg, rgba(20, 107, 85, 0.06), rgba(17, 22, 19, 0.22)),
    linear-gradient(135deg, #174c3d, #8c7a45);
}

.experience-profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 24px;
}

.experience-avatar {
  width: 82px;
  height: 82px;
  border: 4px solid #ffffff;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0)),
    #9eb8ac;
  box-shadow: var(--shadow-soft);
}

.experience-profile small {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.experience-profile strong {
  display: block;
  margin-top: 2px;
  font-size: 2rem;
  line-height: 1.05;
}

.experience-profile p {
  max-width: 430px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.experience-price {
  align-self: start;
  justify-self: end;
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #dff0e8;
  font-size: 0.88rem;
  font-weight: 900;
}

.experience-shelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 24px 24px;
}

.experience-shelf div {
  position: relative;
  min-height: 128px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(20, 107, 85, 0.1), rgba(166, 111, 37, 0.14)),
    linear-gradient(120deg, #27342e, #727b5e);
}

.experience-shelf div.locked {
  background:
    linear-gradient(120deg, #1a2520, #3d493d);
}

.experience-shelf span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 9px;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(17, 22, 19, 0.68);
  font-size: 0.78rem;
  font-weight: 900;
}

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

.experience-list div {
  display: grid;
  align-content: center;
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  transition: transform 180ms ease, background 180ms ease;
}

.experience-list div:hover {
  transform: translateY(-4px);
  background: #ffffff;
}

.experience-list strong {
  font-size: 1.12rem;
}

.experience-list p {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2,
.creator-focus h2 {
  max-width: 760px;
  margin: 0;
  font-size: 2.25rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.step-grid,
.trust-grid {
  display: grid;
  gap: 14px;
}

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

.step-grid div,
.trust-item {
  min-height: 132px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.step-grid div {
  display: grid;
  align-content: start;
  gap: 8px;
  border-color: rgba(20, 107, 85, 0.12);
  background: rgba(255, 255, 255, 0.72);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.step-grid div:hover {
  transform: translateY(-5px);
  background: #ffffff;
  box-shadow: 0 16px 32px rgba(33, 31, 26, 0.08);
}

.step-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 6px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #dff0e8;
  font-weight: 900;
}

.step-grid strong,
.trust-item strong {
  display: block;
  line-height: 1.35;
}

.step-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

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

.benefit-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    #1d2420;
}

.benefit-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 18%, rgba(255, 255, 255, 0.09), transparent 28%),
    radial-gradient(circle at 18% 78%, rgba(166, 111, 37, 0.18), transparent 24%);
  pointer-events: none;
}

.benefit-section > * {
  position: relative;
  z-index: 1;
}

.benefit-section .section-heading p,
.benefit-section .eyebrow {
  color: #d7ded8;
}

.benefit-section .section-heading h2 {
  color: #ffffff;
}

.benefit-section .trust-grid {
  margin-top: 0;
}

.benefit-section .trust-item {
  min-height: 180px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.benefit-section .trust-item:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
}

.benefit-section .trust-item.featured {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(20, 107, 85, 0.36), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.08);
}

.editorial-grid {
  grid-template-columns: 1.2fr 0.8fr 1fr;
}

.editorial-grid .trust-item:nth-child(5) {
  grid-column: span 2;
}

.benefit-section .trust-item.dark {
  background:
    linear-gradient(135deg, rgba(166, 111, 37, 0.32), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.08);
}

.trust-item p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.benefit-section .trust-item p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.76);
}

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 30px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.76rem;
  font-weight: 900;
}

.audience-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(238, 245, 240, 0.9)),
    var(--surface-tint);
}

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

.audience-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #31423a;
  background: var(--surface);
  font-weight: 850;
  box-shadow: 0 10px 22px rgba(33, 31, 26, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.audience-grid span:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px rgba(33, 31, 26, 0.08);
}

.creator-focus {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 56px;
  background:
    linear-gradient(135deg, rgba(20, 107, 85, 0.34), rgba(166, 111, 37, 0.16)),
    #1d2420;
  color: #ffffff;
}

.creator-focus::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -120px;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.creator-focus::before {
  content: "";
  position: absolute;
  left: -80px;
  bottom: -130px;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  background: rgba(166, 111, 37, 0.16);
}

.creator-focus > * {
  position: relative;
  z-index: 1;
}

.creator-focus .primary {
  min-height: 50px;
  padding: 0 20px;
  color: #173027;
  background: #ffffff;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

.creator-focus .primary:hover {
  color: #173027;
  background: #f5f2ea;
}

@keyframes homeRise {
  from {
    opacity: 0.42;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mockupEnter {
  from {
    opacity: 0.42;
    transform: translateY(38px) rotate(-4deg) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(12px) rotate(-1.4deg) scale(1);
  }
}

@keyframes mockupFloat {
  0%,
  100% {
    transform: translateY(12px) rotate(-1.4deg);
  }
  50% {
    transform: translateY(2px) rotate(-0.7deg);
  }
}

@keyframes panelFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}

@keyframes sectionRise {
  from {
    opacity: 0.58;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.creator-focus p,
.creator-focus .eyebrow {
  color: #d7ded8;
}

.card,
.auth-card,
.video-card,
.creator-hero,
.paywall,
.watch-panel,
.welcome-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.auth-page.portal-auth-page {
  display: block;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 16%, rgba(255, 255, 255, 0.74), transparent 28%),
    linear-gradient(135deg, #fffaf1 0%, #ebe1d2 46%, #cdd6c8 100%);
}

.auth-page.platform-auth-page {
  display: block;
  min-height: 100vh;
  overflow-x: hidden;
  background: #07100d;
}

.auth-shell {
  width: min(460px, calc(100% - 32px));
  display: grid;
  gap: 18px;
  padding: 56px 0;
}

.auth-brand {
  align-items: center;
}

.auth-card {
  padding: 28px;
}

.auth-card h1,
.page-title h1,
.creator-hero h1,
.watch-panel h1 {
  margin: 0 0 10px;
  letter-spacing: 0;
}

.auth-card h1,
.page-title h1 {
  font-size: 2rem;
  line-height: 1.12;
}

.auth-card p,
.page-title p,
.creator-hero p,
.watch-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.auth-switch {
  margin-top: 16px !important;
  text-align: center;
}

.auth-forgot-link {
  justify-self: center;
  margin: -4px auto 0;
  font-size: 0.94rem;
}

.creator-join-card {
  overflow: hidden;
}

.auth-shell:has(.creator-join-card) {
  width: min(960px, calc(100% - 32px));
}

.auth-shell:has(.viewer-auth-layout) {
  width: 100%;
  min-height: 100vh;
  padding: 0;
}

.platform-auth-shell {
  width: 100%;
  min-height: 100vh;
}

.platform-auth-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.82fr);
  min-height: 100vh;
  overflow: hidden;
  background: #fffaf1;
}

.platform-auth-home-link {
  position: absolute;
  z-index: 3;
  top: clamp(18px, 3vw, 36px);
  left: clamp(18px, 3vw, 42px);
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(2, 9, 7, 0.34);
  backdrop-filter: blur(14px);
  font-weight: 950;
}

.platform-auth-home-link:hover {
  color: #ffffff;
}

.platform-auth-visual {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 100vh;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(2, 8, 6, 0.08), rgba(2, 8, 6, 0.76)),
    linear-gradient(90deg, rgba(2, 8, 6, 0.08), rgba(2, 8, 6, 0.46)),
    url("/public/assets/creator-login-gradient.jpg") center / cover no-repeat;
}

.platform-auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 20%, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.2), transparent 58%);
  pointer-events: none;
}

.platform-auth-visual-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  padding: clamp(34px, 6vw, 82px);
}

.platform-auth-visual-copy h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.platform-auth-visual-copy p:not(.eyebrow) {
  max-width: 570px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.08rem;
  line-height: 1.58;
}

.platform-auth-panel {
  display: grid;
  align-content: center;
  min-height: 100vh;
  padding: clamp(32px, 6vw, 78px);
  background:
    radial-gradient(circle at 86% 12%, rgba(20, 107, 85, 0.13), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 250, 241, 0.96)),
    #fffaf1;
}

.platform-auth-form-card {
  display: grid;
  gap: 16px;
  width: min(100%, 500px);
}

.platform-auth-form-card h1 {
  margin: 0;
  font-size: clamp(2.8rem, 5.6vw, 4.6rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.platform-auth-form-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.platform-auth-form-card .form {
  margin-top: 8px;
}

.viewer-auth-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(380px, 0.76fr);
  overflow: hidden;
  min-height: 100vh;
  border: 0;
  border-radius: 0;
  background: rgba(255, 250, 241, 0.82);
  box-shadow: none;
}

.viewer-auth-home-link {
  position: absolute;
  z-index: 3;
  left: clamp(18px, 3vw, 42px);
  top: clamp(18px, 3vw, 36px);
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(8, 11, 9, 0.28);
  backdrop-filter: blur(14px);
  font-weight: 900;
}

.viewer-auth-home-link:hover {
  color: #ffffff;
}

.viewer-auth-visual {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 100vh;
  color: #ffffff;
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.16), transparent 26%),
    linear-gradient(135deg, #17231d, #53604e);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.viewer-auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 11, 9, 0.06), rgba(8, 11, 9, 0.76)),
    linear-gradient(90deg, rgba(8, 11, 9, 0.1), rgba(8, 11, 9, 0.38));
}

.viewer-auth-visual-overlay {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  padding: clamp(34px, 6vw, 78px);
}

.viewer-auth-visual-overlay h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.viewer-auth-visual-overlay p:not(.eyebrow) {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  line-height: 1.58;
}

.viewer-auth-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.viewer-auth-chips span {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.86rem;
  font-weight: 900;
}

.viewer-auth-panel {
  display: grid;
  align-content: center;
  gap: 16px;
  min-height: 100vh;
  padding: clamp(32px, 6vw, 78px);
  background:
    radial-gradient(circle at 88% 12%, rgba(20, 107, 85, 0.12), transparent 28%),
    #fffaf1;
}

.viewer-auth-form-card {
  display: grid;
  gap: 16px;
}

.viewer-auth-panel-swap {
  animation: viewerAuthSwap 220ms ease-out both;
}

.viewer-auth-form-card h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.viewer-auth-form-card p {
  margin: 0;
}

.viewer-auth-subcopy {
  color: var(--muted);
  font-weight: 750;
}

.viewer-auth-subcopy a {
  color: var(--brand);
  font-weight: 950;
}

.viewer-terms-consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(23, 33, 28, 0.1);
  border-radius: 14px;
  color: rgba(22, 28, 24, 0.72);
  background: rgba(255, 255, 255, 0.56);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.45;
}

.viewer-terms-consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.viewer-terms-consent a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.viewer-auth-note {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(23, 33, 28, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
}

.viewer-auth-note span {
  color: var(--muted);
  line-height: 1.45;
}

.viewer-auth-loading .viewer-auth-visual {
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.16), transparent 24%),
    linear-gradient(135deg, #16221d, #4f5c4e 58%, #242416);
}

.viewer-auth-loading .viewer-auth-panel {
  background:
    radial-gradient(circle at 88% 12%, rgba(20, 107, 85, 0.1), transparent 28%),
    #fffaf1;
}

.viewer-auth-loading .portal-loading-title {
  width: min(520px, 72vw);
  height: clamp(54px, 7vw, 92px);
}

.viewer-auth-loading .viewer-auth-panel .portal-loading-title {
  width: min(360px, 68vw);
  height: clamp(44px, 5vw, 66px);
  background: rgba(23, 33, 28, 0.11);
}

.viewer-auth-loading .viewer-auth-panel .portal-loading-subtitle,
.viewer-auth-loading .viewer-auth-panel .portal-loading-line {
  background: rgba(23, 33, 28, 0.1);
}

.viewer-auth-skeleton-fields {
  display: grid;
  gap: 13px;
  margin: 8px 0;
}

.viewer-auth-skeleton-fields span {
  display: block;
  height: 52px;
  overflow: hidden;
  position: relative;
  border-radius: 12px;
  background: rgba(23, 33, 28, 0.08);
}

.viewer-auth-skeleton-fields span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: translateX(-100%);
  animation: portalSkeleton 1.4s ease-in-out infinite;
}

@keyframes viewerAuthSwap {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-creator-banner {
  display: block;
  width: calc(100% + 56px);
  height: 190px;
  margin: -28px -28px 24px;
  object-fit: cover;
  background: #dce8e2;
}

.creator-join-heading {
  display: flex;
  gap: 18px;
  align-items: center;
}

.avatar.large {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  margin-top: 0;
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.trust-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-note {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.form-note span {
  color: var(--muted);
}

.two-column-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 20px;
}

.two-column-form .form {
  align-content: start;
  margin-top: 0;
}

.form {
  display: grid;
  gap: 15px;
  margin-top: 22px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: #343a36;
  font-size: 0.88rem;
  font-weight: 850;
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.subdomain-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffefa;
}

.subdomain-input:focus-within {
  border-color: rgba(20, 107, 85, 0.55);
  box-shadow: 0 0 0 3px rgba(20, 107, 85, 0.12);
}

.subdomain-input input {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.subdomain-input input:focus {
  box-shadow: none;
}

.subdomain-input span {
  padding: 0 13px;
  color: var(--muted);
  font-weight: 800;
  border-left: 1px solid var(--line);
}

.form-section-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 14px;
  background: rgba(20, 107, 85, 0.06);
  border: 1px solid rgba(20, 107, 85, 0.14);
}

.form-section-card h2 {
  margin: 0;
  font-size: 1.2rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fffefa;
  outline: none;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(20, 107, 85, 0.55);
  box-shadow: 0 0 0 3px rgba(20, 107, 85, 0.12);
}

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

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

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

.primary,
.secondary,
.danger,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  font-weight: 850;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.primary:hover,
.secondary:hover,
.danger:hover,
.small-button:hover {
  transform: translateY(-1px);
}

.primary {
  color: #ffffff;
  background: var(--brand);
  box-shadow: 0 8px 18px rgba(20, 107, 85, 0.22);
}

.primary:hover {
  color: #ffffff;
  background: var(--brand-dark);
}

.secondary,
.small-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #ffffff;
}

.secondary:hover,
.small-button:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.danger {
  color: #ffffff;
  background: var(--danger);
}

.small-button {
  min-height: 34px;
  font-size: 0.86rem;
}

.large-button {
  min-height: 46px;
  padding: 0 18px;
}

.message {
  min-height: 20px;
  color: var(--danger);
  font-size: 0.9rem;
}

.success {
  color: var(--brand);
}

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

.two-col {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.42fr);
  align-items: start;
}

.page-title {
  margin-bottom: 20px;
}

.card {
  padding: 20px;
}

.card h2 {
  margin: 0 0 12px;
  font-size: 1.18rem;
  line-height: 1.25;
}

.price-line {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
  margin-top: 12px !important;
}

.price-line strong {
  color: var(--ink);
  font-size: 1.25rem;
}

.price-line span {
  color: var(--muted);
}

.creator-hero {
  overflow: hidden;
  margin-bottom: 20px;
}

.banner {
  min-height: 280px;
  background:
    linear-gradient(120deg, rgba(13, 79, 62, 0.78), rgba(166, 111, 37, 0.42)),
    linear-gradient(120deg, #1d2822, #577568);
  background-position: center;
  background-size: cover;
}

.creator-body {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 28px;
}

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

.avatar {
  width: 116px;
  height: 116px;
  flex: 0 0 auto;
  margin-top: -72px;
  border: 4px solid #ffffff;
  border-radius: 8px;
  object-fit: cover;
  background: #dce8e2;
  box-shadow: var(--shadow-soft);
}

.price,
.price-block {
  margin-left: auto;
  font-weight: 900;
}

.price-block {
  display: grid;
  gap: 8px;
  justify-items: end;
  text-align: right;
}

.price-block strong {
  font-size: 1.28rem;
}

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

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 16px;
}

.full-span {
  grid-column: 1 / -1;
}

.video-card {
  overflow: hidden;
}

.thumb {
  position: relative;
  display: grid;
  min-height: 154px;
  place-items: center;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(20, 107, 85, 0.18), rgba(166, 111, 37, 0.18)),
    #1d2420;
  font-weight: 900;
}

.thumb img {
  width: 100%;
  height: 100%;
  min-height: 154px;
  object-fit: cover;
}

.locked {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  color: #ffffff;
  background: rgba(14, 18, 16, 0.72);
  text-align: center;
  font-weight: 900;
}

.video-body {
  padding: 15px;
}

.video-body h3 {
  margin: 0 0 7px;
  font-size: 1rem;
  line-height: 1.3;
}

.video-body p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

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

.portal-nav,
.watch-channel-nav {
  position: sticky;
  top: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(225, 222, 214, 0.85);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.portal-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  color: var(--ink);
  font-weight: 950;
}

.portal-brand img {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
  background: #dce8e2;
}

.portal-brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-nav nav,
.portal-footer nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.portal-menu {
  display: contents;
}

.portal-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: inherit;
  background: rgba(255, 255, 255, 0.1);
}

.portal-menu-toggle span {
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.portal-nav.menu-open .portal-menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.portal-nav.menu-open .portal-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.portal-nav.menu-open .portal-menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.portal-nav nav a,
.portal-footer a,
.portal-footer button {
  color: var(--muted);
  font-weight: 850;
}

.portal-nav nav a.active {
  color: var(--ink);
}

.portal-account {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.portal-account span {
  max-width: 220px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-account-menu {
  position: relative;
  display: inline-flex;
  justify-content: flex-end;
}

.portal-account-toggle {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(23, 33, 28, 0.12);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 24px rgba(11, 15, 12, 0.1);
}

.portal-account-toggle span {
  position: relative;
  width: 18px;
  height: 18px;
  display: block;
  overflow: visible;
  max-width: none;
  border: 2px solid currentColor;
  border-radius: 999px;
  color: inherit;
  white-space: normal;
}

.portal-account-toggle span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -13px;
  width: 28px;
  height: 16px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  transform: translateX(-50%);
}

.portal-account-dropdown {
  position: absolute;
  z-index: 12;
  top: calc(100% + 12px);
  right: 0;
  min-width: 220px;
  display: none;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(23, 33, 28, 0.1);
  border-radius: 18px;
  background: #fffaf1;
  box-shadow: 0 24px 54px rgba(11, 15, 12, 0.18);
}

.portal-account-menu.open .portal-account-dropdown {
  display: grid;
}

.portal-account-dropdown a,
.portal-account-dropdown button {
  width: 100%;
  min-height: 42px;
  justify-content: flex-start;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  background: transparent;
  font-weight: 900;
  text-align: left;
}

.portal-account-dropdown a:hover,
.portal-account-dropdown button:hover {
  color: var(--brand);
  background: rgba(20, 107, 85, 0.08);
}

.viewer-account-card {
  width: min(760px, calc(100vw - 32px));
  margin: 56px auto;
  display: grid;
  gap: 18px;
}

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

.account-summary-grid > div,
.subscriber-row,
.account-notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.account-summary-grid > div {
  padding: 14px;
}

.account-summary-grid span,
.subscriber-row span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.account-summary-grid strong {
  display: block;
  margin-top: 5px;
}

.account-notice {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.account-notice.success {
  border-color: rgba(21, 122, 93, 0.24);
  background: rgba(21, 122, 93, 0.08);
}

.portal-account-shell {
  gap: clamp(22px, 4vw, 34px);
}

.portal-account-page .portal-page-shell {
  width: min(1240px, calc(100% - 32px));
}

.portal-account-hero {
  display: grid;
  gap: 10px;
  min-height: 190px;
  align-content: center;
  padding: clamp(28px, 4vw, 46px);
  border-radius: 30px;
  color: #ffffff;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.16), transparent 24%),
    linear-gradient(135deg, rgba(18, 28, 22, 0.98), rgba(61, 68, 49, 0.94));
  box-shadow: 0 34px 88px rgba(11, 15, 12, 0.24);
}

.portal-account-hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.35rem, 5.4vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.portal-account-hero p:not(.eyebrow) {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
  line-height: 1.55;
}

.portal-account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 18px;
  align-items: start;
}

.portal-account-main {
  display: grid;
  gap: 18px;
}

.portal-settings-panel {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(23, 33, 28, 0.08);
  border-radius: 26px;
  background: rgba(255, 250, 241, 0.82);
  box-shadow: 0 22px 54px rgba(11, 15, 12, 0.09);
}

.portal-settings-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.portal-settings-heading h2,
.portal-account-side h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1;
}

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

.portal-settings-list > div {
  min-height: 112px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
}

.portal-settings-list span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
}

.portal-settings-list strong {
  overflow-wrap: anywhere;
  font-size: 1.05rem;
}

.portal-account-side {
  position: sticky;
  top: 112px;
}

.portal-account-side p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.portal-plan-card {
  display: grid;
  gap: 12px;
  min-height: 230px;
  align-content: end;
  padding: 22px;
  border-radius: 24px;
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(145deg, #111914, #2f493d 58%, #836428);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.portal-plan-card.empty {
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(246, 242, 232, 0.72));
  box-shadow: inset 0 0 0 1px rgba(23, 33, 28, 0.08);
}

.portal-plan-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portal-plan-card.empty span {
  color: var(--muted);
}

.portal-plan-card h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 0.98;
}

.portal-plan-card strong {
  font-size: 1.35rem;
}

.portal-plan-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.portal-plan-card.empty p {
  color: var(--muted);
}

.portal-account-actions {
  display: grid;
  gap: 10px;
}

.portal-account-actions .large-button {
  width: 100%;
  justify-content: center;
}

.portal-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 18px;
}

.portal-modal.open {
  display: grid;
}

.portal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 11, 9, 0.54);
  backdrop-filter: blur(12px);
}

.portal-modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  width: min(520px, 100%);
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 12%, rgba(20, 107, 85, 0.1), transparent 30%),
    rgba(255, 250, 241, 0.96);
  box-shadow: 0 34px 88px rgba(11, 15, 12, 0.28);
}

.portal-modal-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.98;
}

.portal-modal-panel p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.portal-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 950;
}

.inline-link {
  display: inline-flex;
  width: fit-content;
  color: var(--accent);
  font-weight: 850;
}

.subscriber-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.subscriber-page-layout {
  display: grid;
  gap: 18px;
}

.subscriber-snapshot-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.35fr);
  align-items: stretch;
  gap: 20px;
}

.subscriber-snapshot-card h2 {
  margin-bottom: 8px;
}

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

.subscriber-summary-grid div {
  display: grid;
  align-content: center;
  min-height: 124px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.subscriber-summary-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 3rem;
  font-weight: 950;
  line-height: 1;
  color: var(--ink);
}

.subscriber-summary-grid span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 850;
}

.subscriber-table {
  display: grid;
  gap: 8px;
}

.subscriber-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.subscriber-row strong {
  display: block;
  margin-bottom: 4px;
}

.subscriber-data-card {
  overflow: hidden;
}

.subscriber-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin: 18px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.subscriber-toolbar .compact-field {
  max-width: none;
  margin-bottom: 0;
}

.subscriber-search-field {
  min-width: 0;
}

.subscriber-data-list {
  display: grid;
  gap: 10px;
}

.subscriber-data-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.25fr) minmax(150px, 0.95fr) minmax(110px, 0.6fr) minmax(126px, 0.7fr) minmax(124px, 0.7fr) minmax(110px, 0.62fr) minmax(112px, 0.65fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.subscriber-data-row > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.subscriber-data-row strong,
.subscriber-data-row span,
.subscriber-data-row small {
  min-width: 0;
}

.subscriber-data-row strong {
  overflow-wrap: anywhere;
  color: var(--ink);
}

.subscriber-data-row small {
  color: var(--muted);
  font-weight: 800;
}

.subscriber-identity strong {
  font-size: 1rem;
}

.subscriber-identity span {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-weight: 800;
}

.subscriber-field-label {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.portal-hero {
  min-height: 540px;
  overflow: hidden;
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(120deg, rgba(13, 79, 62, 0.78), rgba(25, 29, 26, 0.74)),
    linear-gradient(120deg, #19221d, #64766d);
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.portal-hero-overlay {
  min-height: inherit;
  display: flex;
  align-items: flex-end;
  padding: clamp(28px, 6vw, 64px);
  background:
    linear-gradient(90deg, rgba(10, 12, 11, 0.78), rgba(10, 12, 11, 0.3) 58%, rgba(10, 12, 11, 0.08)),
    linear-gradient(0deg, rgba(10, 12, 11, 0.72), rgba(10, 12, 11, 0.06) 48%);
}

.portal-hero-copy {
  width: min(720px, 100%);
  display: grid;
  gap: 15px;
}

.portal-logo {
  width: 86px;
  height: 86px;
  border: 3px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  object-fit: cover;
  background: #dce8e2;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.portal-hero .eyebrow,
.portal-hero p {
  color: rgba(255, 255, 255, 0.86);
}

.portal-hero .pill {
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  background: rgba(0, 0, 0, 0.28);
}

.portal-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.5rem, 7vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.portal-hero p {
  max-width: 620px;
  margin: 0;
  line-height: 1.55;
}

.portal-hero .secondary {
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.portal-landing-hero {
  min-height: 620px;
}

.portal-marketing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(220px, 0.8fr));
  gap: 16px;
}

.portal-marketing-grid > article,
.portal-about-teaser,
.portal-library-hero,
.portal-about-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.portal-marketing-grid > article {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 180px;
  padding: clamp(18px, 3vw, 28px);
}

.portal-marketing-grid h2,
.portal-library-hero h1,
.portal-about-card h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.portal-marketing-grid p,
.portal-about-teaser p,
.portal-library-hero p,
.portal-about-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.portal-about-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: clamp(22px, 4vw, 38px);
  background:
    linear-gradient(135deg, rgba(166, 111, 37, 0.1), rgba(255, 255, 255, 0.92)),
    var(--surface);
}

.portal-about-teaser h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.02;
}

.portal-library-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  padding: clamp(26px, 5vw, 54px);
  background:
    linear-gradient(135deg, rgba(21, 122, 93, 0.1), rgba(255, 255, 255, 0.88)),
    var(--surface);
}

.portal-library-hero > div:first-child {
  display: grid;
  gap: 12px;
}

.portal-library-actions {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.portal-about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.68fr);
  gap: 18px;
  align-items: stretch;
}

.portal-about-banner {
  min-height: 520px;
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(13, 79, 62, 0.78), rgba(25, 29, 26, 0.54)),
    linear-gradient(120deg, #19221d, #64766d);
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.portal-about-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: clamp(24px, 4vw, 42px);
}

.portal-status,
.featured-content,
.subscriber-value,
.portal-footer {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.portal-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}

.portal-status p {
  margin: 6px 0 0;
  color: var(--muted);
}

.featured-content {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 0;
  overflow: hidden;
}

.featured-media {
  position: relative;
  min-height: 340px;
  background: #111612;
}

.featured-media .thumb,
.featured-media .thumb img {
  min-height: 340px;
  height: 100%;
}

.featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: clamp(22px, 4vw, 42px);
}

.featured-copy h2,
.subscriber-value h2,
.portal-section-heading h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.featured-copy p,
.subscriber-value p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.content-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1;
  padding: 7px 9px;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(12, 16, 14, 0.76);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.locked-badge {
  background: rgba(138, 91, 0, 0.9);
}

.portal-section {
  display: grid;
  gap: 12px;
}

/* ── Featured content rail ── */
.portal-featured-slider {
  position: relative;
  display: grid;
  gap: 12px;
  overflow: visible;
  padding: 8px 0 32px;
  color: var(--ink);
}

.portal-featured-slider-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 4px;
}

.portal-featured-slider-heading .eyebrow {
  margin: 0 0 4px;
  color: rgba(20, 107, 85, 0.72);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portal-featured-slider-heading h2 {
  margin: 0;
  font-size: clamp(0.98rem, 1.4vw, 1.15rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
}

/* Nav buttons live in the heading row (desktop), hidden on mobile */
.portal-featured-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.portal-featured-slider--scrollable .portal-featured-controls {
  opacity: 1;
  pointer-events: auto;
}

.portal-featured-rail-button {
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(25, 29, 26, 0.14);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.92);
  box-shadow: 0 4px 14px rgba(33, 31, 26, 0.1);
  transition:
    background 150ms ease,
    border-color 150ms ease,
    transform 150ms ease,
    opacity 150ms ease;
  cursor: pointer;
}

.portal-featured-rail-button::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 8px;
  height: 8px;
  margin: auto;
  border-top: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  color: #17211c;
  transform: translateX(1.5px) rotate(-45deg);
}

.portal-featured-rail-button.next::before {
  transform: translateX(-1.5px) rotate(135deg);
}

.portal-featured-rail-button:hover:not(:disabled),
.portal-featured-rail-button:focus-visible {
  border-color: rgba(20, 107, 85, 0.3);
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(33, 31, 26, 0.14);
}

.portal-featured-rail-button:focus-visible {
  outline: 2px solid rgba(20, 107, 85, 0.5);
  outline-offset: 3px;
}

.portal-featured-rail-button:disabled {
  opacity: 0.28;
  pointer-events: none;
}

/* Rail container — clips overflow, hosts edge fades */
.portal-featured-rail {
  position: relative;
  overflow: hidden;
}

.portal-featured-rail::before,
.portal-featured-rail::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 12px;
  z-index: 2;
  width: clamp(32px, 8vw, 96px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms ease;
}

.portal-featured-rail::before {
  left: 0;
  background: linear-gradient(90deg, var(--page-bg, #f4f1ea) 10%, transparent);
}

.portal-featured-rail::after {
  right: 0;
  background: linear-gradient(270deg, var(--page-bg, #f4f1ea) 10%, transparent);
}

.portal-featured-slider--scrollable .portal-featured-rail::before,
.portal-featured-slider--scrollable .portal-featured-rail::after {
  opacity: 1;
}

.portal-featured-slider--at-start .portal-featured-rail::before,
.portal-featured-slider--at-end .portal-featured-rail::after {
  opacity: 0;
}

/* Scrollable track */
.portal-featured-track {
  display: grid;
  grid-auto-columns: clamp(220px, 26vw, 340px);
  grid-auto-flow: column;
  grid-template-columns: none;
  gap: clamp(12px, 1.4vw, 18px);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 6px 2px 16px;
  scroll-padding-inline: 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.portal-featured-track::-webkit-scrollbar {
  display: none;
}

/* Individual slide — no border by default, just shadow */
.portal-featured-slide {
  display: block;
  overflow: hidden;
  min-width: 0;
  border-radius: 14px;
  background: #0d1210;
  box-shadow: 0 8px 28px rgba(10, 14, 12, 0.2), 0 2px 6px rgba(10, 14, 12, 0.12);
  scroll-snap-align: start;
  transition:
    box-shadow 220ms ease,
    transform 220ms ease;
}

.portal-featured-slide:hover,
.portal-featured-slide:focus-within {
  box-shadow: 0 20px 52px rgba(10, 14, 12, 0.32), 0 4px 12px rgba(10, 14, 12, 0.18);
  transform: translateY(-6px) scale(1.015);
}

/* Card link — fills the slide, holds media + copy */
.portal-featured-art {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  color: #ffffff;
  text-decoration: none;
  background: linear-gradient(145deg, #1a2920, #0c100e);
}

.portal-featured-art:focus-visible {
  outline: 2px solid rgba(94, 212, 179, 0.72);
  outline-offset: 3px;
}

/* Bottom gradient overlay on card */
.portal-featured-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(6, 9, 7, 0) 40%,
      rgba(6, 9, 7, 0.55) 64%,
      rgba(6, 9, 7, 0.92) 100%);
}

.portal-featured-media {
  position: absolute;
  inset: 0;
}

.portal-featured-media img,
.portal-featured-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.portal-featured-media video {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.portal-featured-art:hover .portal-featured-media img,
.portal-featured-art:focus-visible .portal-featured-media img {
  transform: scale(1.06);
}

/* Card text — sits above the gradient */
.portal-featured-card-copy {
  position: absolute;
  right: clamp(14px, 1.6vw, 20px);
  bottom: clamp(14px, 1.6vw, 20px);
  left: clamp(14px, 1.6vw, 20px);
  z-index: 2;
  display: grid;
  gap: 5px;
}

.portal-featured-card-copy span {
  color: rgba(94, 212, 179, 0.9);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portal-featured-card-copy strong {
  display: block;
  color: #ffffff;
  font-size: clamp(0.98rem, 1.5vw, 1.32rem);
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.portal-featured-card-copy em {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 500;
}

.portal-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.content-shelf {
  display: grid;
  grid-auto-columns: minmax(245px, 29%);
  grid-auto-flow: column;
  gap: 16px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scroll-snap-type: x proximity;
}

.portal-video-card {
  scroll-snap-align: start;
}

.portal-video-card .thumb,
.portal-video-card .thumb img {
  min-height: 168px;
}

.portal-video-card .video-body {
  display: grid;
  gap: 10px;
}

.portal-video-card .video-body p {
  min-height: 42px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.portal-video-card:focus-within,
.portal-video-card:hover {
  transform: translateY(-2px);
  transition: transform 140ms ease;
}

.shelf-empty {
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
}

.subscriber-value {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: clamp(22px, 4vw, 38px);
}

.subscriber-value-actions {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.portal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
}

.portal-footer button {
  padding: 0;
  border: 0;
  background: transparent;
}

.watch-channel-nav {
  margin-bottom: 18px;
}

.portal-watch-panel {
  background: #121713;
  color: #ffffff;
}

.portal-watch-panel p {
  color: rgba(255, 255, 255, 0.72);
}

.portal-watch-panel .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.portal-lock {
  background: #fff8e8;
  color: var(--ink);
}

.pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-row.compact {
  margin-top: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #27544a;
  background: #e6f3ed;
  font-size: 0.78rem;
  font-weight: 850;
}

.pill.warning {
  color: var(--warning);
  background: #fff2cc;
}

.pill.info {
  color: #235a7a;
  background: #e6f3fb;
}

.pill.neutral {
  color: #5f625f;
  background: #eeeeea;
}

.dashboard-video {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.dashboard-video:first-child {
  border-top: 0;
}

.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.actions.left {
  justify-content: flex-start;
}

.actions.stacked {
  margin-top: 16px;
}

.share-link {
  margin: 12px 0 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.9rem;
}

.checklist {
  display: grid;
  gap: 11px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.check-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #ffffff;
  background: #ffffff;
  font-size: 0.84rem;
  font-weight: 900;
}

.check-item.done {
  color: var(--ink);
}

.check-item.done span {
  border-color: var(--brand);
  background: var(--brand);
}

.readiness-loading {
  display: grid;
  gap: 4px;
  padding: 14px 0 2px;
  color: var(--muted);
}

.readiness-loading strong {
  color: var(--ink);
}

.launch-check-card {
  display: grid;
  gap: 10px;
  margin-top: 0;
}

.launch-readiness-title-row {
  margin-bottom: 10px;
}

.launch-readiness-title-row .eyebrow {
  margin-bottom: 8px;
}

.launch-check-head,
.launch-check-meta,
.launch-check-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.launch-check-head {
  justify-content: flex-end;
}

.launch-check-head h3 {
  margin: 0;
  font-size: 1rem;
}

.launch-check-head p,
.launch-check-meta,
.launch-check-footer {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.launch-check-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.launch-check-count strong {
  color: var(--ink);
}

.launch-check-state {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.launch-check-state.complete {
  color: #0f6d56;
  background: #e6f3ed;
}

.launch-check-state.warning {
  color: var(--warning);
  background: #fff2cc;
}

.launch-check-state.info {
  color: #235a7a;
  background: #e6f3fb;
}

.launch-check-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.launch-check-group {
  display: grid;
  gap: 6px;
}

.launch-check-group + .launch-check-group {
  margin-top: 2px;
}

.launch-check-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.76rem;
}

.launch-check-group-head strong {
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.launch-check-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 16px;
  gap: 9px;
  align-items: center;
  min-height: 36px;
  padding: 7px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

a.launch-check-row {
  text-decoration: none;
}

a.launch-check-row,
.launch-check-row.expandable {
  text-decoration: none;
}

.launch-check-row.expandable {
  cursor: pointer;
  list-style: none;
}

.launch-check-row.expandable::-webkit-details-marker {
  display: none;
}

.launch-check-row.actionable:hover,
.launch-check-row.expandable:hover {
  color: var(--brand-dark);
  background: linear-gradient(90deg, rgba(20, 107, 85, 0.05), transparent);
}

.launch-check-row.actionable:focus-visible,
.launch-check-row.expandable:focus-visible {
  outline: 3px solid rgba(20, 107, 85, 0.22);
  outline-offset: 2px;
  border-radius: 8px;
}

.launch-check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: #ffffff;
  background: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
}

.launch-check-icon.complete {
  border-color: var(--brand);
  background: var(--brand);
}

.launch-check-icon.warning {
  border-color: #b07a14;
  color: #8a5b05;
  background: #fff2cc;
}

.launch-check-icon.incomplete {
  border-color: #c9c2b6;
  background: #ffffff;
}

.launch-check-icon.neutral {
  border-color: #c9c2b6;
  background: #eeeeea;
}

.launch-check-copy {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 5px;
}

.launch-check-label {
  overflow: hidden;
  font-size: 0.92rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.launch-check-note {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.launch-check-note::before {
  content: '·';
  margin-right: 5px;
  color: var(--subtle);
}

.launch-check-row.warning .launch-check-note {
  color: #8a5b05;
}

.launch-check-chevron {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
}

.launch-check-disclosure {
  border-bottom: 1px solid var(--line);
}

.launch-check-disclosure .launch-check-row {
  border-bottom: 0;
}

.launch-check-disclosure[open] .launch-check-chevron-expand {
  transform: rotate(90deg);
}

.launch-check-detail-list {
  display: grid;
  gap: 0;
  margin: -1px 0 7px 28px;
  border-left: 1px solid var(--line);
}

.launch-check-detail-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 16px;
  gap: 8px;
  align-items: center;
  min-height: 32px;
  padding: 6px 2px 6px 10px;
  color: var(--muted);
  font-size: 0.78rem;
  text-decoration: none;
}

.launch-check-detail-row + .launch-check-detail-row {
  border-top: 1px solid rgba(44, 38, 30, 0.08);
}

.launch-check-detail-row.actionable:hover {
  color: var(--brand-dark);
  background: linear-gradient(90deg, rgba(20, 107, 85, 0.05), transparent);
}

.launch-check-detail-row.actionable:focus-visible {
  outline: 3px solid rgba(20, 107, 85, 0.22);
  outline-offset: 2px;
  border-radius: 8px;
}

.launch-check-detail-icon {
  width: 15px;
  height: 15px;
  font-size: 0.66rem;
}

.launch-check-detail-copy {
  min-width: 0;
}

.launch-check-detail-copy strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.launch-check-footer {
  padding-top: 2px;
}

.launch-check-footer a {
  font-weight: 850;
}

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

.metric-grid div {
  min-height: 88px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.metric-grid strong {
  display: block;
  font-size: 1.4rem;
}

.metric-grid span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.84rem;
}

.empty-state {
  display: grid;
  gap: 11px;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: #fbfaf7;
}

.empty-state[hidden] {
  display: none;
}

.empty-state h3,
.empty-state p {
  margin: 0;
}

.empty-state p {
  color: var(--muted);
  line-height: 1.55;
}

.paywall {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 20px;
  background: #fff8e8;
}

.viewer-session-card {
  background: var(--surface);
}

.paywall.polished {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
}

.paywall.polished strong,
.paywall.polished p {
  grid-column: 1;
  margin: 0;
}

.paywall.polished button {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.welcome-panel {
  display: grid;
  gap: 20px;
  padding: 30px;
}

.welcome-panel h1,
.welcome-panel p {
  margin: 0;
}

.welcome-panel h1 {
  max-width: 760px;
  font-size: 2.4rem;
  line-height: 1.08;
}

.welcome-panel > p {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.welcome-steps div {
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.welcome-steps strong,
.welcome-steps span {
  display: block;
}

.welcome-steps span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.watch-panel {
  padding: 24px;
}

.watch-panel video {
  width: 100%;
  display: block;
  max-height: 70vh;
  border-radius: 8px;
  background: #000000;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  font-weight: 850;
}

.studio-page {
  background: #f4f1ea;
}

.studio-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns 180ms ease;
}

.studio-shell.studio-collapsed {
  grid-template-columns: 84px minmax(0, 1fr);
}

.studio-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.studio-brand {
  display: grid;
  gap: 2px;
  color: var(--ink);
}

.studio-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.studio-collapse-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
}

.studio-collapse-button svg,
.studio-nav-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.studio-collapse-button svg {
  transition: transform 180ms ease;
}

.studio-brand strong {
  font-size: 1.08rem;
  font-weight: 950;
}

.studio-brand span,
.studio-creator span,
.studio-mobile-top span {
  color: var(--muted);
  font-size: 0.9rem;
}

.studio-creator {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.studio-nav {
  display: grid;
  gap: 5px;
  overflow: auto;
  padding-right: 2px;
}

.studio-nav p {
  margin: 14px 0 4px;
  color: var(--subtle);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.studio-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 11px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 800;
}

.studio-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.studio-nav a:hover,
.studio-nav a.active {
  color: var(--brand-dark);
  background: var(--surface-tint);
}

.studio-nav-subgroup {
  display: grid;
  gap: 4px;
  margin: -2px 0 4px 24px;
  padding-left: 8px;
  border-left: 1px solid var(--line);
}

.studio-nav-subgroup a {
  min-height: 34px;
  color: var(--muted);
  font-size: 0.94rem;
}

.studio-footer {
  display: grid;
  gap: 9px;
  margin-top: auto;
}

.studio-footer .secondary {
  justify-content: flex-start;
  gap: 10px;
}

.studio-shell.studio-collapsed .studio-sidebar {
  padding-inline: 14px;
}

.studio-shell.studio-collapsed .studio-brand,
.studio-shell.studio-collapsed .studio-creator,
.studio-shell.studio-collapsed .studio-nav p,
.studio-shell.studio-collapsed .studio-nav-label {
  display: none;
}

.studio-shell.studio-collapsed .studio-nav-subgroup {
  margin: 0;
  padding-left: 0;
  border-left: 0;
}

.studio-shell.studio-collapsed .studio-brand-row {
  justify-content: center;
}

.studio-shell.studio-collapsed .studio-collapse-button svg {
  transform: rotate(180deg);
}

.studio-shell.studio-collapsed .studio-nav a,
.studio-shell.studio-collapsed .studio-footer .secondary {
  justify-content: center;
  padding-inline: 0;
}

.studio-main {
  min-width: 0;
  padding: 28px;
}

.studio-mobile-top {
  display: none;
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.studio-mobile-top div {
  display: grid;
  gap: 2px;
}

.studio-page-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.studio-page-header h1 {
  margin: 0 0 8px;
  font-size: 2.35rem;
  line-height: 1.08;
}

.studio-page-header p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.studio-grid > .card:nth-child(3),
.studio-grid > .card:nth-child(4) {
  grid-column: span 1;
}

.studio-metrics {
  margin-top: 4px;
}

.studio-skeleton-page-header {
  pointer-events: none;
}

.studio-dashboard-skeleton {
  pointer-events: none;
}

.studio-skeleton-card {
  min-height: 190px;
}

.studio-skeleton-line,
.studio-skeleton-title,
.studio-skeleton-heading,
.studio-skeleton-list span,
.studio-skeleton-metrics span,
.studio-skeleton-status-grid span,
.studio-skeleton-content-list span,
.studio-skeleton-share {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, #ece8df 0%, #f6f2ea 48%, #ece8df 100%);
  background-size: 220% 100%;
  animation: studioSkeletonPulse 1.4s ease-in-out infinite;
}

.studio-skeleton-line::after,
.studio-skeleton-title::after,
.studio-skeleton-heading::after,
.studio-skeleton-list span::after,
.studio-skeleton-metrics span::after,
.studio-skeleton-status-grid span::after,
.studio-skeleton-content-list span::after,
.studio-skeleton-share::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.56), transparent);
  transform: translateX(-100%);
  animation: portalSkeleton 1.35s ease-in-out infinite;
}

.studio-skeleton-line {
  width: 150px;
  height: 12px;
}

.studio-skeleton-line.eyebrow-line {
  width: 132px;
  height: 13px;
  margin-bottom: 10px;
}

.studio-skeleton-line.wide {
  width: min(560px, 80%);
  height: 14px;
  margin-top: 12px;
}

.studio-skeleton-line.count-line {
  width: 136px;
  height: 14px;
}

.studio-skeleton-line.group-line {
  width: 210px;
  height: 15px;
  margin: 12px 0 4px;
}

.studio-skeleton-line.group-line.shorter {
  width: 250px;
}

.studio-skeleton-title {
  width: min(360px, 72%);
  height: 38px;
  border-radius: 8px;
}

.studio-skeleton-heading {
  width: 170px;
  height: 28px;
  margin-bottom: 14px;
  border-radius: 8px;
}

.studio-skeleton-heading.medium {
  width: 220px;
}

.studio-skeleton-heading.long {
  width: min(320px, 70%);
}

.studio-skeleton-list,
.studio-skeleton-content-list {
  display: grid;
  gap: 10px;
}

.studio-skeleton-list span {
  height: 34px;
  border-radius: 8px;
}

.studio-skeleton-list.compact span {
  height: 30px;
}

.studio-skeleton-metrics,
.studio-skeleton-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.studio-skeleton-metrics span,
.studio-skeleton-status-grid span {
  height: 56px;
  border-radius: 8px;
}

.studio-skeleton-content-list span {
  height: 48px;
  border-radius: 8px;
}

.studio-skeleton-share {
  width: min(420px, 86%);
  height: 42px;
  margin-top: 18px;
  border-radius: 8px;
}

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

  50% {
    background-position: 100% 50%;
  }
}

.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.section-row h2,
.section-row p {
  margin: 0;
}

.compact-field {
  max-width: 420px;
  margin: 0 0 12px;
}

.content-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.content-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(170px, 220px);
  align-items: end;
  gap: 12px;
}

.sort-field {
  max-width: none;
}

.content-toolbar .compact-field {
  margin-bottom: 0;
  max-width: none;
}

.content-search-field {
  min-width: 0;
}

.content-menu-group {
  display: inline-flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 8px;
}

.content-selection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -6px 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.content-selection-bar[hidden] {
  display: none;
}

.content-selection-bar strong {
  font-size: 0.88rem;
}

.content-selection-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.content-selection-actions .danger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.content-selection-actions svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.content-menu {
  position: relative;
}

.content-menu summary {
  list-style: none;
}

.content-menu summary::-webkit-details-marker {
  display: none;
}

.icon-menu-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(22, 28, 25, 0.08);
}

.icon-menu-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.content-menu[open] .icon-menu-button {
  border-color: rgba(20, 107, 85, 0.38);
  box-shadow: 0 10px 24px rgba(22, 28, 25, 0.12);
}

.content-menu-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  gap: 4px;
  width: max-content;
  min-width: 190px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 48px rgba(22, 28, 25, 0.18);
}

.content-menu-popover button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  text-align: left;
  font-weight: 850;
}

.content-menu-popover button em {
  color: var(--subtle);
  font-style: normal;
}

.content-menu-popover button:hover,
.content-menu-popover button.active {
  color: var(--ink);
  background: var(--surface-soft);
}

.segmented-control {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.segmented-control button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-weight: 850;
}

.segmented-control button.active {
  color: var(--ink);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.content-row-list {
  display: grid;
  gap: 10px;
}

.content-row {
  display: grid;
  grid-template-columns: 42px 96px minmax(0, 1fr) minmax(150px, 0.34fr) auto;
  gap: 12px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.content-row.selected {
  border-color: rgba(20, 107, 85, 0.42);
  box-shadow: 0 12px 28px rgba(20, 107, 85, 0.12);
}

.content-row-select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 38px;
  min-height: 30px;
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.content-row-select input {
  width: 14px;
  height: 14px;
  accent-color: var(--brand);
}

.content-row-select span {
  min-width: 12px;
  text-align: center;
}

.content-row-thumb {
  display: grid;
  min-height: 58px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(20, 107, 85, 0.18), rgba(166, 111, 37, 0.18)),
    #1d2420;
  font-weight: 900;
}

.content-row-thumb img {
  width: 100%;
  height: 100%;
  min-height: 58px;
  object-fit: cover;
}

.content-row-main {
  min-width: 0;
}

.content-row-main h3,
.content-row-main p {
  margin: 0;
}

.content-row-main h3 {
  margin-bottom: 3px;
  font-size: 0.98rem;
  line-height: 1.28;
}

.content-row-main p {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  text-overflow: ellipsis;
}

.content-row-status {
  display: flex;
  justify-content: flex-start;
}

.content-row-actions {
  gap: 6px;
  justify-content: flex-end;
}

.icon-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #ffffff;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(22, 28, 25, 0.07);
}

.icon-action-button:hover,
.icon-action-button:focus-visible {
  color: var(--ink);
  border-color: rgba(20, 107, 85, 0.28);
  transform: translateY(-1px);
}

.icon-action-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-action-button.danger-icon {
  color: #8f3930;
  background: #fffafa;
}

.icon-action-button.danger-icon:hover,
.icon-action-button.danger-icon:focus-visible {
  color: var(--danger);
  border-color: rgba(183, 74, 59, 0.32);
}

.thumbnail-preview {
  display: grid;
  min-height: 150px;
  margin-bottom: 14px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(20, 107, 85, 0.18), rgba(166, 111, 37, 0.18)),
    #1d2420;
  font-weight: 900;
}

.thumbnail-preview img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.pagination-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.upload-guidance {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.drop-zone {
  display: grid;
  gap: 8px;
  place-items: center;
  min-height: 178px;
  padding: 22px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  background: #fbfaf7;
  text-align: center;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.compact-drop-zone {
  min-height: 132px;
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.drop-zone strong {
  color: var(--ink);
  font-size: 1.02rem;
}

.drop-zone span,
.drop-zone em {
  max-width: 420px;
  font-style: normal;
  line-height: 1.45;
}

.drop-zone em {
  padding: 5px 9px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--subtle);
  font-size: 0.84rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.drop-zone.dragging,
.drop-zone.has-file {
  border-color: rgba(20, 107, 85, 0.55);
  background: var(--surface-tint);
  box-shadow: 0 0 0 3px rgba(20, 107, 85, 0.1);
}

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

.upload-progress[hidden] {
  display: none;
}

.upload-progress div {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: var(--surface-soft);
}

.upload-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  transition: width 160ms ease;
}

.upload-progress strong {
  color: var(--muted);
  font-size: 0.88rem;
}

.publication-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.radio-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.radio-row input {
  margin-top: 4px;
}

.radio-row span {
  display: grid;
  gap: 3px;
}

.radio-row em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.35;
}

.schedule-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 4px;
}

.schedule-fields[hidden] {
  display: none;
}

.schedule-fields p {
  grid-column: 1 / -1;
  margin: 0;
}

.thumbnail-cropper {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(25, 29, 26, 0.55);
}

.thumbnail-cropper[hidden] {
  display: none;
}

.thumbnail-crop-modal {
  width: min(920px, 100%);
}

.thumbnail-crop-card {
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.thumbnail-crop-header {
  display: block;
}

.thumbnail-crop-header strong,
.thumbnail-crop-header p {
  margin: 0;
}

.thumbnail-crop-header p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.thumbnail-crop-stage {
  display: grid;
  justify-content: center;
  max-width: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: #111611;
}

.thumbnail-crop-frame {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.thumbnail-crop-frame img {
  display: block;
  max-width: 100%;
  max-height: 420px;
}

.thumbnail-crop-box {
  position: absolute;
  border: 2px solid #ffffff;
  border-radius: 8px;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.48);
  cursor: move;
  touch-action: none;
}

.crop-handle {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}

.crop-handle::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
}

.crop-handle.nw {
  top: -13px;
  left: -13px;
  cursor: nwse-resize;
}

.crop-handle.nw::before {
  transform: rotate(0deg);
}

.crop-handle.ne {
  top: -13px;
  right: -13px;
  cursor: nesw-resize;
}

.crop-handle.ne::before {
  transform: rotate(90deg);
}

.crop-handle.sw {
  bottom: -13px;
  left: -13px;
  cursor: nesw-resize;
}

.crop-handle.sw::before {
  transform: rotate(-90deg);
}

.crop-handle.se {
  right: -13px;
  bottom: -13px;
  cursor: nwse-resize;
}

.crop-handle.se::before {
  transform: rotate(180deg);
}

.thumbnail-crop-box::before,
.thumbnail-crop-box::after {
  content: "";
  position: absolute;
  inset: 33.333% 0 auto;
  height: 1px;
  background: rgba(255, 255, 255, 0.65);
}

.thumbnail-crop-box::after {
  inset: 66.666% 0 auto;
}

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

.upload-guidance div,
.upload-success {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.upload-guidance strong,
.upload-success strong {
  display: block;
  margin-bottom: 6px;
}

.upload-guidance p,
.upload-success p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.upload-success {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  border-color: rgba(20, 107, 85, 0.25);
  background: #edf8f2;
}

.studio-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
}

.studio-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 28, 25, 0.58);
  backdrop-filter: blur(8px);
}

.studio-confirm-panel {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  box-sizing: border-box;
  width: min(560px, 100%);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 30px 90px rgba(22, 28, 25, 0.32);
  text-align: center;
}

.studio-confirm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(20, 107, 85, 0.12);
}

.studio-confirm-icon.danger {
  color: var(--danger);
  background: rgba(180, 35, 24, 0.1);
}

.studio-confirm-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.studio-confirm-panel h2,
.studio-confirm-panel p {
  margin: 0;
}

.studio-confirm-panel h2 {
  max-width: 100%;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.studio-confirm-panel p {
  max-width: 100%;
  margin-top: 10px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.studio-confirm-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  margin-top: 22px;
}

.studio-confirm-actions button {
  min-width: 0;
}

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

.studio-upload-modal[hidden] {
  display: none;
}

.studio-upload-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 28, 25, 0.52);
  backdrop-filter: blur(6px);
}

.studio-upload-modal-panel {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 32px 90px rgba(22, 28, 25, 0.28);
}

.studio-upload-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #ffffff;
  font-weight: 950;
}

.upload-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.studio-upload-drop {
  margin: 16px 0;
  cursor: pointer;
  place-items: center;
}

.upload-drop-content {
  display: grid;
  gap: 8px;
  justify-items: center;
  width: min(620px, 100%);
  margin: 0 auto;
  text-align: center;
  cursor: pointer;
}

.upload-drop-content strong {
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 950;
}

.upload-drop-content span,
.upload-drop-content em {
  color: var(--muted);
  font-style: normal;
}

.upload-drop-content span {
  max-width: 560px;
}

.upload-drop-content em {
  display: inline-flex;
  justify-content: center;
  width: auto;
  max-width: 100%;
}

.upload-queue-list {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.upload-queue-list.has-queue {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.upload-queue-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 4px 4px 10px;
}

.upload-queue-header strong,
.upload-queue-header p {
  margin: 0;
}

.upload-queue-header strong {
  color: var(--ink);
  font-weight: 950;
}

.upload-queue-header p {
  color: var(--muted);
  font-size: 0.92rem;
}

.upload-queue-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 270px);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.upload-queue-row.processing {
  border-color: rgba(20, 107, 85, 0.28);
  background: #f4fbf7;
}

.upload-queue-row.failed {
  border-color: rgba(180, 35, 24, 0.24);
  background: #fff7f5;
}

.upload-queue-main {
  min-width: 0;
}

.upload-queue-main strong,
.upload-queue-main p {
  margin: 0;
}

.upload-queue-main strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.upload-queue-main p {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-queue-main .warning-text {
  margin-top: 6px;
  color: var(--danger);
  white-space: normal;
}

.upload-queue-state {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.upload-queue-progress-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
}

.upload-queue-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.upload-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(22, 28, 25, 0.08);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.upload-icon-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.upload-icon-button:hover:not(:disabled) {
  border-color: rgba(20, 107, 85, 0.35);
  box-shadow: 0 10px 20px rgba(22, 28, 25, 0.12);
  transform: translateY(-1px);
}

.upload-icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.upload-icon-button.danger-icon {
  color: var(--danger);
}

.compact-progress {
  width: 100%;
}

.compact-progress div {
  height: 8px;
}

.compact-empty {
  padding: 18px;
}

.big-stat {
  margin: 12px 0;
  font-size: 4rem;
  font-weight: 950;
  line-height: 1;
}

.profile-preview-card {
  overflow: hidden;
}

.mini-banner {
  min-height: 150px;
  margin: -20px -20px 18px;
  background:
    linear-gradient(120deg, rgba(13, 79, 62, 0.78), rgba(166, 111, 37, 0.42)),
    linear-gradient(120deg, #1d2822, #577568);
  background-position: center;
  background-size: cover;
}

.branding-studio-grid {
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
}

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

.branding-upload-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.branding-upload-card label {
  font-weight: 900;
}

.branding-avatar-preview,
.branding-banner-preview {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(20, 107, 85, 0.12), rgba(166, 111, 37, 0.14)),
    #eff4f0;
  color: var(--muted);
  font-weight: 900;
}

.branding-avatar-preview {
  width: 132px;
  height: 132px;
}

.branding-avatar-preview img,
.mini-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.branding-banner-preview {
  min-height: 154px;
  background-position: center;
  background-size: cover;
}

.public-profile-preview {
  align-self: start;
}

.branding-profile-line {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.mini-avatar {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border: 3px solid #ffffff;
  border-radius: 8px;
  background: #dce8e2;
  box-shadow: var(--shadow-soft);
}

/* Public design systems: marketing and creator portals intentionally diverge from Creator Studio/admin surfaces. */
.marketing-page {
  --marketing-ink: #171a16;
  --marketing-warm: #f6efe2;
  --marketing-deep: #17211c;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 8%, rgba(20, 107, 85, 0.2), transparent 34%),
    radial-gradient(circle at 16% 28%, rgba(166, 111, 37, 0.18), transparent 32%),
    linear-gradient(180deg, #fffaf1 0%, #f4efe6 42%, #ede7dc 100%);
}

.marketing-page .home-shell {
  width: min(1280px, calc(100% - 36px));
  padding-top: 24px;
}

.marketing-page .topbar {
  border-color: rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.76);
  box-shadow: 0 18px 42px rgba(33, 31, 26, 0.08);
}

.marketing-page .brand span {
  color: #6f675b;
}

.marketing-page .primary {
  border: 1px solid rgba(23, 33, 28, 0.08);
  background: linear-gradient(135deg, #105c49, #18372d);
  box-shadow: 0 14px 28px rgba(16, 92, 73, 0.18);
}

.marketing-page .secondary {
  border-color: rgba(23, 33, 28, 0.14);
  color: #26362f;
  background: rgba(255, 255, 255, 0.68);
}

.marketing-page .home-hero {
  overflow: hidden;
  min-height: 760px;
  padding: 82px 0 92px;
}

.marketing-page .home-hero::before {
  left: -34px;
  bottom: 58px;
  color: rgba(23, 26, 22, 0.045);
  font-size: clamp(5.4rem, 16vw, 13.8rem);
}

.marketing-page .home-hero h1 {
  color: var(--marketing-ink);
  font-size: clamp(4.2rem, 7.8vw, 7.4rem);
  line-height: 0.9;
}

.marketing-page .home-hero .hero-copy > p:not(.eyebrow) {
  max-width: 690px;
  color: #504a40;
  font-size: 1.28rem;
}

.marketing-page .eyebrow {
  color: #7c5728;
}

.marketing-page .portal-preview {
  border-radius: 24px;
  box-shadow: 0 44px 100px rgba(23, 26, 22, 0.28);
}

.marketing-page .preview-chrome {
  border-radius: 24px 24px 0 0;
}

.marketing-page .mock-hero-card,
.marketing-page .mock-side-card,
.marketing-page .mock-link-card,
.marketing-page .floating-panel {
  border-radius: 18px;
}

.marketing-page .proof-strip,
.marketing-page .section-band,
.marketing-page .benefit-section,
.marketing-page .creator-focus,
.marketing-page .narrative-section,
.marketing-page .portal-experience-section {
  border-radius: 24px;
}

.marketing-page .proof-strip {
  margin-top: 0;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(23, 33, 28, 0.12);
  box-shadow: 0 22px 56px rgba(33, 31, 26, 0.09);
}

.marketing-page .proof-strip div {
  background: rgba(255, 250, 241, 0.78);
}

.marketing-page .narrative-section {
  margin-top: 44px;
  min-height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.12), transparent 24%),
    linear-gradient(135deg, rgba(20, 107, 85, 0.35), rgba(166, 111, 37, 0.16)),
    var(--marketing-deep);
  box-shadow: 0 32px 76px rgba(23, 26, 22, 0.16);
}

.marketing-page .section-band,
.marketing-page .portal-experience-section {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 250, 241, 0.72);
  box-shadow: 0 22px 54px rgba(33, 31, 26, 0.08);
}

.marketing-page .step-grid div,
.marketing-page .experience-list div,
.marketing-page .audience-grid span {
  border-color: rgba(23, 33, 28, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 32px rgba(33, 31, 26, 0.055);
}

.marketing-page .benefit-section {
  padding: clamp(34px, 5vw, 58px);
  background:
    radial-gradient(circle at 84% 12%, rgba(255, 255, 255, 0.1), transparent 28%),
    linear-gradient(145deg, #18211d, #243128 58%, #5a4e2e);
}

.marketing-page .benefit-section .trust-item {
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.marketing-page .creator-focus {
  min-height: 320px;
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.1), transparent 24%),
    radial-gradient(circle at 18% 88%, rgba(166, 111, 37, 0.22), transparent 26%),
    #17211c;
  box-shadow: 0 34px 80px rgba(23, 26, 22, 0.16);
}

.portal-page {
  --portal-bg: #111612;
  --portal-panel: #fbf7ee;
  --portal-panel-warm: #f2eadc;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 86% 0%, rgba(20, 107, 85, 0.16), transparent 34%),
    linear-gradient(180deg, #151b17 0, #f0eadf 470px, #f5f1e9 100%);
}

.portal-page-shell {
  width: min(1240px, calc(100% - 32px));
  padding-top: 20px;
}

.portal-page-shell:has(.portal-feature-header) {
  padding-top: 0;
}

.portal-page .portal-shell {
  position: relative;
  gap: 26px;
  padding-top: 92px;
}

.portal-page .portal-shell:has(.portal-feature-header) {
  padding-top: 0;
}

.portal-page .portal-nav,
.portal-page .watch-channel-nav {
  position: fixed;
  top: 22px;
  left: 50%;
  width: min(1240px, calc(100vw - 64px));
  transform: translateX(-50%);
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(17, 22, 18, 0.78);
  box-shadow: 0 22px 54px rgba(11, 15, 12, 0.22);
}

.portal-page .portal-shell:has(.portal-feature-header) .portal-nav {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(8, 11, 9, 0.22);
  box-shadow: none;
}

.portal-page .portal-brand,
.portal-page .watch-channel-nav strong {
  color: #ffffff;
}

.portal-page .portal-nav nav a,
.portal-page .portal-footer a,
.portal-page .portal-footer button,
.portal-page .portal-account span,
.portal-page .watch-channel-nav a.secondary {
  color: rgba(255, 255, 255, 0.72);
}

.portal-page .portal-nav nav a.active,
.portal-page .portal-nav nav a:hover,
.portal-page .portal-footer a:hover,
.portal-page .portal-footer button:hover {
  color: #ffffff;
}

.portal-page .portal-nav .secondary,
.portal-page .watch-channel-nav .secondary {
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.portal-page .portal-nav .primary,
.portal-page .watch-channel-nav .primary {
  color: #16241e;
  background: #fff8e8;
}

.portal-page .portal-account-toggle {
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.portal-page .portal-account-toggle:hover,
.portal-page .portal-account-menu.open .portal-account-toggle {
  color: #16241e;
  background: #fff8e8;
}

.portal-page .portal-hero {
  position: relative;
  min-height: 680px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.16), transparent 24%),
    linear-gradient(135deg, rgba(20, 107, 85, 0.78), rgba(21, 28, 23, 0.9)),
    linear-gradient(120deg, #19221d, #64766d);
  box-shadow: 0 34px 92px rgba(11, 15, 12, 0.28);
}

.portal-feature-header {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  border-radius: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.portal-page .portal-feature-header {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.portal-feature-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 74% 20%, rgba(255, 255, 255, 0.12), transparent 24%),
    linear-gradient(90deg, rgba(8, 11, 9, 0.6), rgba(8, 11, 9, 0.46) 50%, rgba(8, 11, 9, 0.6)),
    linear-gradient(0deg, rgba(8, 11, 9, 0.78), rgba(8, 11, 9, 0.08) 48%);
  pointer-events: none;
}

.portal-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  z-index: 0;
}

.portal-page .portal-hero-overlay {
  position: relative;
  z-index: 1;
  padding: clamp(32px, 7vw, 78px);
  background: transparent;
}

.portal-page .portal-logo,
.portal-page .portal-brand img {
  border-radius: 16px;
}

.portal-page .portal-hero h1 {
  font-size: clamp(3.2rem, 8vw, 6.8rem);
}

.portal-page .portal-feature-header .portal-hero-copy {
  width: min(840px, 100%);
  margin: 0 auto;
  gap: 18px;
  justify-items: center;
  text-align: center;
}

.portal-page .portal-feature-header .portal-hero-overlay {
  align-items: center;
}

.portal-page .portal-feature-header .portal-hero-copy > p:not(.eyebrow):not(.portal-hero-meta) {
  max-width: 680px;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
}

.portal-page .portal-feature-header .actions {
  justify-content: center;
}

.portal-page .portal-feature-header {
  min-height: clamp(560px, 76vh, 860px);
  border-radius: 0;
}

.portal-hero-meta {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.96rem;
  font-weight: 850;
}

.portal-page .portal-marketing-grid > article,
.portal-page .portal-about-teaser,
.portal-page .portal-library-hero,
.portal-page .portal-about-card,
.portal-page .portal-status,
.portal-page .featured-content,
.portal-page .subscriber-value,
.portal-page .portal-footer,
.portal-page .viewer-account-card {
  border-color: rgba(23, 33, 28, 0.08);
  border-radius: 24px;
  background: rgba(255, 250, 241, 0.88);
  box-shadow: 0 22px 56px rgba(33, 31, 26, 0.09);
}

.portal-page .portal-footer a,
.portal-page .portal-footer button {
  color: rgba(22, 28, 24, 0.72);
}

.portal-page .portal-footer a:hover,
.portal-page .portal-footer button:hover {
  color: var(--ink);
}

.portal-page .portal-marketing-grid > article:first-child {
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 255, 255, 0.14), transparent 28%),
    linear-gradient(145deg, #18231f, #3c4a3f);
}

.portal-page .portal-marketing-grid > article:first-child p {
  color: rgba(255, 255, 255, 0.78);
}

.portal-membership-story,
.portal-content-preview {
  display: grid;
  gap: 24px;
  border-radius: 30px;
  box-shadow: 0 28px 70px rgba(33, 31, 26, 0.1);
}

.portal-membership-story {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: stretch;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.13), transparent 28%),
    linear-gradient(135deg, #18231f, #3d4939 62%, #755b2b);
}

.portal-story-lead {
  display: grid;
  align-content: end;
  gap: 14px;
  min-height: 430px;
  padding: clamp(30px, 6vw, 62px);
}

.portal-story-lead h2,
.portal-preview-copy h2 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.portal-story-lead p:not(.eyebrow),
.portal-preview-copy p {
  max-width: 620px;
  margin: 0;
  line-height: 1.58;
}

.portal-story-lead p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
}

.portal-story-rail {
  display: grid;
  gap: 1px;
  padding: clamp(18px, 3vw, 28px);
  background: rgba(255, 255, 255, 0.07);
}

.portal-story-rail > div {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 132px;
  padding: 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.portal-story-rail span {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: #1b2a23;
  background: #fff8e8;
  font-size: 0.76rem;
  font-weight: 950;
}

.portal-story-rail strong {
  font-size: 1.12rem;
}

.portal-story-rail p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.portal-content-preview {
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  padding: clamp(24px, 5vw, 52px);
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.92), rgba(238, 245, 240, 0.78)),
    #fffaf1;
}

.portal-preview-copy {
  display: grid;
  gap: 14px;
  align-content: center;
}

.portal-preview-copy p {
  color: var(--muted);
}

.portal-preview-window {
  overflow: hidden;
  padding: 14px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 80% 16%, rgba(255, 255, 255, 0.68), transparent 26%),
    linear-gradient(135deg, rgba(20, 107, 85, 0.14), rgba(166, 111, 37, 0.1)),
    rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 0 0 1px rgba(23, 33, 28, 0.08);
}

.portal-preview-window .content-shelf {
  padding: 0 0 8px;
}

.portal-page .portal-library-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 78% 16%, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(135deg, #16231d, #344136);
}

.portal-page .portal-library-hero p {
  color: rgba(255, 255, 255, 0.76);
}

.portal-page .featured-content {
  overflow: hidden;
}

.portal-page .featured-media {
  min-height: 420px;
}

.portal-page .featured-media .thumb,
.portal-page .featured-media .thumb img {
  min-height: 420px;
}

.portal-page .content-shelf {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-flow: row;
  grid-auto-columns: initial;
  gap: 18px;
  overflow: visible;
  padding: 0;
}

.portal-page .portal-section-heading {
  display: grid;
  justify-content: start;
  gap: 6px;
}

.portal-page .portal-video-card {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #111612;
  box-shadow: 0 18px 42px rgba(33, 31, 26, 0.12);
}

.portal-page .portal-video-card .thumb {
  position: relative;
  display: block;
  min-height: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 70% 18%, rgba(255, 255, 255, 0.14), transparent 28%),
    linear-gradient(135deg, #243228, #101512);
}

.portal-page .portal-video-card .thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 8, 6, 0.04), rgba(5, 8, 6, 0.76)),
    linear-gradient(90deg, rgba(5, 8, 6, 0.28), rgba(5, 8, 6, 0.04) 50%, rgba(5, 8, 6, 0.38));
}

.portal-page .portal-video-card .thumb img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  transition: transform 180ms ease;
}

.portal-page .portal-video-card-title {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 1;
  color: #ffffff;
  font-size: clamp(1rem, 1.55vw, 1.28rem);
  font-weight: 900;
  line-height: 1.08;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.38);
}

.portal-page .portal-video-card:hover .thumb img,
.portal-page .portal-video-card:focus-within .thumb img {
  transform: scale(1.035);
}

.portal-page .content-badge,
.portal-page .locked-badge {
  border-radius: 999px;
}

.portal-page .subscriber-value {
  background:
    linear-gradient(135deg, rgba(20, 107, 85, 0.12), rgba(166, 111, 37, 0.08)),
    rgba(255, 250, 241, 0.9);
}

.portal-page .portal-about-hero {
  gap: 22px;
}

.portal-page .portal-about-banner,
.portal-page .portal-about-card {
  border-radius: 28px;
}

.portal-page .portal-about-banner {
  min-height: 590px;
  box-shadow: 0 28px 72px rgba(33, 31, 26, 0.14);
}

.portal-page .auth-shell {
  min-height: 100vh;
  padding: 48px 16px;
}

.portal-page.portal-auth-page .auth-shell:has(.viewer-auth-layout) {
  width: 100%;
  padding: 0;
}

.portal-page .auth-card,
.portal-page .viewer-account-card {
  border-color: rgba(255, 255, 255, 0.58);
  border-radius: 24px;
}

.portal-page .portal-auth-links {
  padding: 9px 12px;
  border: 1px solid rgba(23, 33, 28, 0.08);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.74);
  box-shadow: 0 12px 28px rgba(33, 31, 26, 0.08);
}

.portal-page .portal-watch-panel {
  display: grid;
  gap: 0;
  width: 100%;
  overflow: hidden;
  padding: 0;
  border-radius: 24px;
  background:
    radial-gradient(circle at 80% 12%, rgba(255, 255, 255, 0.1), transparent 24%),
    #101511;
  box-shadow: 0 30px 80px rgba(11, 15, 12, 0.22);
  transition: width 280ms ease;
}

.portal-page .portal-watch-panel--mirror-active {
  width: min(1630px, calc(100vw - 32px));
  justify-self: center;
}

.portal-watch-page .portal-page-shell {
  padding-top: 118px;
  transition: width 280ms ease;
}

.portal-watch-page .portal-page-shell:has(.portal-watch-panel--mirror-active) {
  width: min(1630px, calc(100% - 32px));
}

.portal-watch-page #watch-page {
  display: grid;
  gap: 22px;
}

.portal-page .portal-watch-panel .watch-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(72vh, 760px);
  border-radius: 0;
  object-fit: contain;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.watch-player-layout,
.watch-player-media {
  display: grid;
  gap: 0;
}

.watch-player-layout {
  grid-template-columns: minmax(0, 1fr);
}

.watch-player-media {
  position: relative;
  grid-template-columns: minmax(0, 1fr) 0;
  align-items: stretch;
  overflow: hidden;
  background: #050806;
  transition: grid-template-columns 260ms ease;
}

.watch-player-layout--mirror-active .watch-player-media {
  grid-template-columns: minmax(0, 1fr) clamp(280px, 22vw, 390px);
}

.watch-player-controls {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: auto auto minmax(120px, 1fr) repeat(6, auto);
  gap: 10px;
  align-items: center;
  padding: 38px clamp(12px, 2vw, 20px) 14px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.34) 58%, transparent);
}

.watch-player-button {
  position: relative;
  display: inline-grid;
  width: 38px;
  min-width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.36);
  box-shadow: none;
}

.watch-player-button:hover,
.watch-player-button:focus-visible,
.watch-player-button[aria-pressed="true"] {
  color: #16241e;
  background: #fff8e8;
}

.watch-player-button::after {
  content: attr(title);
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  width: max-content;
  max-width: 220px;
  padding: 6px 8px;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.78);
  font-size: 0.78rem;
  line-height: 1.25;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.watch-player-button:nth-last-child(-n + 2)::after {
  right: 0;
  left: auto;
}

.watch-player-button:hover::after,
.watch-player-button:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.watch-player-button-play > span {
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid currentColor;
}

.watch-player-layout--playing .watch-player-button-play > span {
  width: 14px;
  height: 16px;
  margin-left: 0;
  border: 0;
  border-right: 4px solid currentColor;
  border-left: 4px solid currentColor;
}

.watch-player-button-mute > span {
  position: relative;
  width: 20px;
  height: 18px;
}

.watch-player-button-mute > span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 7px;
  height: 8px;
  border-radius: 2px;
  background: currentColor;
}

.watch-player-button-mute > span::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 2px;
  width: 10px;
  height: 14px;
  border: 2px solid currentColor;
  border-left: 0;
  border-radius: 0 999px 999px 0;
}

.watch-player-button-mute[aria-pressed="true"] > span {
  transform: rotate(-18deg);
}

.watch-player-button-mute[aria-pressed="true"] > span::after {
  width: 14px;
  height: 2px;
  top: 8px;
  left: 4px;
  border: 0;
  border-radius: 999px;
  background: currentColor;
}

.watch-player-button-fullscreen > span {
  position: relative;
  width: 20px;
  height: 20px;
}

.watch-player-button-fullscreen > span::before,
.watch-player-button-fullscreen > span::after {
  content: "";
  position: absolute;
  inset: 2px;
  border: 2px solid currentColor;
}

.watch-player-button-fullscreen > span::before {
  border-right: 0;
  border-bottom: 0;
}

.watch-player-button-fullscreen > span::after {
  border-top: 0;
  border-left: 0;
}

.watch-player-button-pip > span {
  position: relative;
  width: 21px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.watch-player-button-pip > span::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 8px;
  height: 5px;
  border-radius: 2px;
  background: currentColor;
}

.watch-player-speed {
  width: 64px;
  height: 38px;
  padding: 0 24px 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.36);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
}

.watch-player-speed:hover,
.watch-player-speed:focus-visible {
  color: #16241e;
  background: #fff8e8;
}

.watch-player-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 92px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.86rem;
  font-weight: 850;
}

.watch-player-progress {
  --player-progress: 0%;
  width: 100%;
  height: 18px;
  accent-color: #fff8e8;
  background: transparent;
  cursor: pointer;
}

.watch-player-progress::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff8e8 var(--player-progress), rgba(255, 255, 255, 0.32) 0);
}

.watch-player-progress::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border: 0;
  border-radius: 999px;
  background: #fff8e8;
  appearance: none;
}

.watch-player-progress::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

.watch-player-progress::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: #fff8e8;
}

.watch-player-progress::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 999px;
  background: #fff8e8;
}

.watch-player-media:fullscreen,
.watch-player-media:-webkit-full-screen {
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: #050806;
}

.watch-player-media:fullscreen .watch-video,
.watch-player-media:-webkit-full-screen .watch-video {
  max-height: none;
  height: 100%;
}

.watch-player-media:fullscreen .watch-player-controls,
.watch-player-media:-webkit-full-screen .watch-player-controls {
  padding-bottom: max(18px, env(safe-area-inset-bottom));
}

.watch-video-column {
  min-width: 0;
}

.watch-video.watch-video-mirrored {
  transform: scaleX(-1);
}

.watch-video.watch-video-mirrored::-webkit-media-controls,
.watch-video.watch-video-mirrored::-webkit-media-controls-enclosure,
.watch-video.watch-video-mirrored::-webkit-media-controls-panel {
  transform: scaleX(-1);
}

.watch-tool-icon {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 22px;
}

.watch-tool-icon-flip::before,
.watch-tool-icon-flip::after {
  content: "";
  position: absolute;
  top: 4px;
  width: 8px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 999px 0 0 999px;
}

.watch-tool-icon-flip::before {
  left: 1px;
  border-right: 0;
}

.watch-tool-icon-flip::after {
  right: 1px;
  border-right: 0;
  transform: scaleX(-1);
}

.watch-tool-icon-camera::before {
  content: "";
  position: absolute;
  inset: 5px 2px 4px;
  border: 2px solid currentColor;
  border-radius: 6px;
}

.watch-tool-icon-camera::after {
  content: "";
  position: absolute;
  right: 0;
  top: 8px;
  width: 6px;
  height: 8px;
  border: 2px solid currentColor;
  border-left: 0;
  border-radius: 0 5px 5px 0;
}

.watch-mirror-status {
  position: absolute;
  right: clamp(12px, 2vw, 20px);
  bottom: 66px;
  left: clamp(12px, 2vw, 20px);
  z-index: 4;
  width: fit-content;
  max-width: min(620px, calc(100% - 24px));
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.58);
  min-height: 0;
  font-size: 0.82rem;
  font-weight: 850;
}

.watch-mirror-status:empty {
  display: none;
}

.portal-watch-panel .watch-mirror-status[data-tone="privacy"] {
  color: rgba(255, 255, 255, 0.74);
}

.portal-watch-panel .watch-mirror-status[data-tone="warning"] {
  color: #ffe5b6;
}

.virtual-mirror-panel {
  display: grid;
  align-content: stretch;
  min-width: 0;
  padding: 0;
  border-left: 0;
  background: #050806;
  opacity: 0;
  pointer-events: none;
  transform: translateX(18px);
  transition: opacity 220ms ease, transform 260ms ease;
}

.virtual-mirror-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  justify-self: center;
  border: 0;
  border-radius: 0;
  background: #050806;
  box-shadow: none;
}

.watch-player-layout--mirror-active .virtual-mirror-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.watch-player-layout--mirror-closing .virtual-mirror-panel {
  opacity: 0;
  pointer-events: none;
  transform: translateX(18px);
}

.virtual-mirror-frame video {
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 0;
  object-fit: cover;
  transform: scaleX(-1);
}

.virtual-mirror-frame span {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.42);
  font-size: 0.78rem;
  font-weight: 900;
}

@media (prefers-reduced-motion: reduce) {
  .portal-watch-page .portal-page-shell,
  .portal-page .portal-watch-panel,
  .watch-player-media,
  .virtual-mirror-panel {
    transition: none;
  }
}

.watch-loading-nav {
  pointer-events: none;
}

.watch-loading-brand,
.watch-loading-nav-link,
.watch-loading-video,
.watch-loading-copy,
.watch-loading-title,
.watch-loading-icon,
.watch-loading-chip {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.watch-loading-video::after,
.watch-loading-copy::after,
.watch-loading-title::after,
.watch-loading-icon::after,
.watch-loading-chip::after,
.watch-loading-brand::after,
.watch-loading-nav-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: translateX(-100%);
  animation: portalSkeleton 1.25s ease-in-out infinite;
}

.watch-loading-brand {
  width: min(220px, 32vw);
  height: 22px;
}

.watch-loading-nav-link {
  width: 64px;
  height: 16px;
}

.watch-loading-panel {
  pointer-events: none;
}

.watch-loading-video {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-height: min(72vh, 760px);
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.08), transparent 20%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    #161c18;
}

.watch-loading-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 16px clamp(18px, 3vw, 28px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.watch-loading-copy {
  width: 220px;
  height: 16px;
}

.watch-loading-copy.wide {
  width: min(520px, 60vw);
}

.watch-loading-copy.eyebrow {
  width: 180px;
  height: 14px;
}

.watch-loading-title {
  width: min(520px, 70vw);
  height: clamp(38px, 5vw, 58px);
  border-radius: 14px;
}

.watch-loading-icon {
  width: 48px;
  height: 44px;
  border-radius: 14px;
}

.watch-loading-chip {
  width: 260px;
  height: 66px;
  border-radius: 999px;
}

.watch-gate-preview {
  position: relative;
  overflow: hidden;
  min-height: clamp(360px, 58vw, 760px);
  background:
    radial-gradient(circle at 70% 16%, rgba(255, 255, 255, 0.16), transparent 28%),
    #08100c;
}

.watch-gate-preview > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.watch-gate-preview > img {
  object-fit: cover;
  filter: saturate(0.82) contrast(0.92);
  transform: scale(1.015);
}

.watch-gate-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 248, 232, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(5, 8, 6, 0.28), rgba(5, 8, 6, 0.76)),
    linear-gradient(90deg, rgba(5, 8, 6, 0.72), rgba(5, 8, 6, 0.28) 50%, rgba(5, 8, 6, 0.72));
}

.portal-page .portal-watch-panel .portal-lock {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  min-height: inherit;
  margin: 0;
  padding: clamp(24px, 5vw, 54px);
  border: 0;
  border-radius: 0;
  color: #ffffff;
  text-align: center;
  box-shadow: none;
  background: transparent;
}

.portal-page .portal-watch-panel .portal-lock strong {
  max-width: 620px;
  font-size: clamp(1.65rem, 4vw, 3.35rem);
  line-height: 1;
}

.portal-page .portal-watch-panel .portal-lock p {
  max-width: 540px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.02rem;
  line-height: 1.6;
}

.portal-page .portal-watch-panel .portal-lock .primary,
.portal-page .portal-watch-panel .portal-lock .secondary {
  width: min(100%, 260px);
  min-height: 48px;
}

.watch-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: clamp(18px, 4vw, 44px);
  align-items: start;
  padding: clamp(22px, 4vw, 38px);
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0)),
    rgba(9, 13, 10, 0.64);
}

.watch-detail-main {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.portal-watch-panel .watch-detail-main h1 {
  max-width: 920px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.85rem, 4vw, 3.65rem);
  line-height: 1.02;
}

.portal-watch-panel .watch-detail-main p:not(.eyebrow) {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.02rem;
  line-height: 1.7;
}

.watch-channel-chip {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 220px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

.watch-channel-chip:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.watch-channel-chip img {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.12);
}

.watch-channel-chip span {
  display: grid;
  min-width: 0;
}

.watch-channel-chip strong,
.watch-channel-chip em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watch-channel-chip strong {
  color: #ffffff;
  font-size: 0.94rem;
}

.watch-channel-chip em {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 750;
}

.portal-page .watch-panel,
.portal-page .portal-lock {
  border-radius: 20px;
}

.portal-loading-shell {
  min-height: 100vh;
}

.portal-loading-hero {
  background:
    radial-gradient(circle at 52% 48%, rgba(255, 255, 255, 0.12), transparent 20%),
    linear-gradient(135deg, #151d18, #3f4a3f 58%, #151914);
}

.portal-loading-line,
.portal-loading-title,
.portal-loading-subtitle,
.portal-loading-button,
.portal-loading-cta,
.portal-loading-avatar,
.portal-loading-heading,
.portal-loading-card,
.portal-loading-wide-card,
.portal-loading-featured-card {
  display: inline-block;
  overflow: hidden;
  position: relative;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.portal-loading-line::after,
.portal-loading-title::after,
.portal-loading-subtitle::after,
.portal-loading-button::after,
.portal-loading-cta::after,
.portal-loading-avatar::after,
.portal-loading-heading::after,
.portal-loading-card::after,
.portal-loading-wide-card::after,
.portal-loading-featured-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: translateX(-100%);
  animation: portalSkeleton 1.4s ease-in-out infinite;
}

.portal-loading-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.portal-loading-line.short {
  width: 150px;
  height: 15px;
}

.portal-loading-line.tiny {
  width: 58px;
  height: 14px;
}

.portal-loading-button {
  width: 76px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.portal-loading-button.full {
  width: 100%;
  height: 44px;
  background: rgba(20, 107, 85, 0.74);
}

.portal-loading-button.light {
  background: rgba(255, 248, 232, 0.84);
}

.portal-loading-title {
  width: min(560px, 78vw);
  height: clamp(64px, 8vw, 96px);
  background: rgba(255, 255, 255, 0.2);
}

.portal-account-hero .portal-loading-title {
  width: min(420px, 64vw);
  height: clamp(42px, 5vw, 62px);
}

.portal-loading-subtitle {
  width: min(320px, 56vw);
  height: 24px;
}

.portal-account-hero .portal-loading-subtitle {
  width: min(460px, 72vw);
  height: 18px;
}

.portal-loading-heading {
  width: min(360px, 64vw);
  height: 44px;
  border-radius: 10px;
  background: rgba(25, 29, 26, 0.12);
}

.portal-loading-heading.medium {
  width: min(260px, 52vw);
}

.portal-loading-card,
.portal-loading-wide-card {
  width: 100%;
  min-height: 94px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.portal-loading-wide-card {
  min-height: 118px;
}

.portal-loading-featured {
  pointer-events: none;
}

.portal-loading-featured .portal-featured-track {
  grid-auto-columns: clamp(220px, 26vw, 340px);
  grid-auto-flow: column;
  grid-template-columns: none;
}

.portal-loading-featured-card {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  background:
    radial-gradient(circle at 65% 20%, rgba(255, 255, 255, 0.1), transparent 40%),
    rgba(20, 25, 22, 0.14);
}

.portal-account-side .portal-loading-line,
.portal-settings-panel .portal-loading-line {
  background: rgba(20, 107, 85, 0.18);
}

.portal-account-side .portal-loading-subtitle {
  width: 82%;
  height: 18px;
  background: rgba(25, 29, 26, 0.12);
}

.portal-loading-cta {
  width: 104px;
  height: 48px;
  border-radius: 8px;
  background: rgba(20, 107, 85, 0.7);
}

.portal-loading-cta.secondary {
  width: 152px;
  background: rgba(255, 255, 255, 0.16);
}

@keyframes portalSkeleton {
  to {
    transform: translateX(100%);
  }
}

@media (max-width: 920px) {
  .hero,
  .narrative-section,
  .experience-layout,
	  .featured-content,
	  .subscriber-value,
	  .portal-membership-story,
	  .portal-content-preview,
	  .portal-marketing-grid,
	  .portal-about-teaser,
	  .portal-library-hero,
	  .portal-about-hero,
	  .portal-featured-controls,
	  .portal-account-layout,
	  .platform-auth-layout,
	  .viewer-auth-layout,
	  .audience-section {
	    grid-template-columns: 1fr;
	  }

  .platform-auth-layout,
  .viewer-auth-layout {
    min-height: auto;
  }

  .platform-auth-visual,
  .viewer-auth-visual {
    min-height: 46vh;
  }

  .platform-auth-panel,
  .viewer-auth-panel {
    min-height: auto;
  }

  .portal-account-side {
    position: static;
  }

  .home-hero {
    min-height: auto;
    gap: 30px;
    padding-bottom: 44px;
  }

  .portal-mockup {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "plan"
      "link"
      "videos";
  }

  .mock-side-card,
  .mock-link-card {
    align-self: stretch;
  }

  .floating-panel {
    display: none;
  }

  .portal-preview {
    transform: none;
  }

  .portal-nav,
  .watch-channel-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-page .portal-nav,
  .portal-page .watch-channel-nav,
  .portal-page .portal-shell:has(.portal-feature-header) .portal-nav {
    width: calc(100vw - 28px);
    top: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 22px;
  }

  .portal-page .portal-shell {
    padding-top: 78px;
  }

  .portal-page .portal-shell:has(.portal-feature-header) {
    padding-top: 0;
  }

  .portal-watch-page .portal-page-shell {
    width: min(100% - 20px, 1240px);
    padding-top: 136px;
  }

  .portal-page .portal-watch-panel--mirror-active {
    width: 100%;
  }

  .watch-detail {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .watch-player-controls {
    grid-template-columns: auto auto minmax(100px, 1fr) repeat(6, auto);
    gap: 8px;
    padding-inline: 10px;
  }

  .watch-player-button {
    width: 36px;
    min-width: 36px;
    height: 36px;
  }

  .watch-player-speed {
    width: 60px;
    height: 36px;
    padding-left: 8px;
  }

  .watch-player-time {
    min-width: 82px;
    font-size: 0.8rem;
  }

  .watch-player-layout--mirror-active .watch-player-media {
    grid-template-columns: 1fr;
  }

  .virtual-mirror-panel {
    padding: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 0;
  }

  .virtual-mirror-frame {
    aspect-ratio: 9 / 16;
    width: min(100%, 320px);
    height: auto;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2);
  }

  .watch-channel-chip {
    width: 100%;
    min-width: 0;
    border-radius: 18px;
  }

  .portal-page .portal-nav nav,
  .portal-page .portal-shell:has(.portal-feature-header) .portal-nav nav {
    grid-column: 1 / -1;
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 18px;
  }

  .portal-page .portal-account,
  .portal-page .portal-shell:has(.portal-feature-header) .portal-account {
    justify-content: flex-end;
  }

  .portal-page .portal-account span,
  .portal-page .portal-shell:has(.portal-feature-header) .portal-account span {
    display: none;
  }

  .account-summary-grid,
  .subscriber-row,
  .subscriber-snapshot-card,
  .subscriber-summary-grid,
  .subscriber-data-row {
    grid-template-columns: 1fr;
  }

  .subscriber-summary-grid div {
    min-height: auto;
  }

  .portal-hero {
    min-height: 500px;
  }

  .content-shelf {
    grid-auto-columns: minmax(238px, 44%);
  }

  .portal-featured-track {
    grid-auto-columns: clamp(220px, 30vw, 280px);
  }

  .portal-featured-slide {
    min-height: 0;
  }

  .portal-featured-art {
    min-height: 0;
  }

	  .subscriber-value-actions {
	    justify-items: start;
	  }

	  .portal-library-actions {
	    justify-items: start;
	  }

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

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

  .trust-grid,
  .two-col,
  .branding-studio-grid,
  .branding-upload-grid {
    grid-template-columns: 1fr;
  }

  .benefit-section .trust-item.featured,
  .editorial-grid .trust-item:nth-child(5) {
    grid-column: span 1;
  }

  .creator-focus {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .studio-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .studio-collapse-button {
    display: none;
  }

  .studio-shell.studio-collapsed .studio-brand,
  .studio-shell.studio-collapsed .studio-creator,
  .studio-shell.studio-collapsed .studio-nav p {
    display: grid;
  }

  .studio-shell.studio-collapsed .studio-nav-label {
    display: inline;
  }

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

  .studio-nav p {
    grid-column: 1 / -1;
  }

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

  .studio-main {
    padding: 20px;
  }
}

@media (max-width: 760px) {
  /* Hide arrow nav on mobile — touch swipe handles it */
  .portal-featured-controls {
    display: none;
  }

  /* Larger cards on mobile for thumb-friendly swiping */
  .portal-featured-track {
    grid-auto-columns: clamp(180px, 72vw, 280px);
    scroll-snap-type: x mandatory;
  }

  .portal-loading-featured .portal-featured-track {
    grid-auto-columns: clamp(180px, 72vw, 280px);
  }

  .shell {
    width: min(100% - 24px, 1160px);
    padding-top: 14px;
  }

  .topbar,
  .creator-body,
  .dashboard-video {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar,
  .creator-body {
    display: flex;
  }

  .hero {
    padding-top: 24px;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .home-hero h1 {
    font-size: clamp(3rem, 16vw, 4rem);
  }

  .home-hero .hero-copy > p:not(.eyebrow) {
    font-size: 1.08rem;
  }

  .product-preview {
    display: none;
  }

  .home-hero .product-preview {
    display: block;
  }

  .portal-mockup {
    padding: 12px;
  }

  .mock-hero-card {
    min-height: 250px;
    padding: 18px;
  }

  .mock-hero-card strong {
    font-size: 1.55rem;
  }

  .mock-video-row {
    grid-template-columns: 1fr;
  }

  .mock-video-card {
    min-height: 92px;
  }

  .section-band,
  .benefit-section,
  .narrative-section,
  .portal-experience-section,
  .portal-story-lead,
  .portal-content-preview,
  .portal-featured-slider,
  .portal-account-hero,
  .portal-settings-panel,
  .platform-auth-panel,
  .viewer-auth-panel,
  .creator-focus {
    padding: 20px;
  }

  .portal-account-hero {
    min-height: 180px;
    border-radius: 24px;
  }

  .portal-settings-list {
    grid-template-columns: 1fr;
  }

  .auth-shell:has(.viewer-auth-layout) {
    width: 100%;
    padding: 0;
  }

  .platform-auth-layout,
  .viewer-auth-layout {
    border-radius: 0;
  }

  .platform-auth-visual,
  .viewer-auth-visual {
    min-height: 38vh;
  }

  .platform-auth-home-link,
  .viewer-auth-home-link {
    left: 14px;
    top: 14px;
  }

  .platform-auth-visual-copy {
    padding-top: 84px;
  }

  .platform-auth-visual-copy h2 {
    font-size: clamp(2.4rem, 13vw, 3.8rem);
  }

  .platform-auth-form-card h1 {
    font-size: clamp(2.4rem, 12vw, 3.55rem);
  }

  .step-grid,
  .trust-grid,
  .audience-grid,
  .proof-strip,
  .experience-shelf,
  .welcome-steps,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .proof-strip div {
    min-height: auto;
    padding: 18px;
  }

  .narrative-copy h2,
  .portal-experience-section h2,
  .section-heading h2,
  .creator-focus h2 {
    font-size: 1.9rem;
  }

  .narrative-points div {
    min-height: auto;
  }

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

  .experience-avatar {
    width: 76px;
    height: 76px;
  }

  .experience-price {
    justify-self: start;
  }

  .experience-banner {
    height: 170px;
  }

  .experience-preview {
    transform: none;
  }

  .portal-featured-track {
    grid-auto-columns: minmax(214px, 72vw);
    grid-auto-flow: column;
    grid-template-columns: none;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 3px 0 12px;
    margin-inline: 0;
    scroll-padding-inline: 0;
    scroll-snap-type: x mandatory;
  }

  .portal-loading-featured .portal-featured-track {
    grid-auto-columns: minmax(214px, 72vw);
    grid-auto-flow: column;
    grid-template-columns: none;
  }

  .portal-featured-slide {
    border-radius: 20px;
    scroll-snap-align: start;
  }

  .portal-featured-card-copy strong {
    font-size: 1.55rem;
  }

  .portal-featured-controls {
    display: none;
  }

  .price,
  .price-block {
    margin-left: 0;
    justify-items: start;
    text-align: left;
  }

  .paywall.polished {
    grid-template-columns: 1fr;
  }

  .paywall.polished button,
  .paywall.polished strong,
  .paywall.polished p {
    grid-column: auto;
    grid-row: auto;
  }

  .actions {
    justify-content: stretch;
  }

  .actions > *,
  .primary,
  .secondary,
  .danger {
    width: 100%;
  }

  .portal-nav nav,
  .portal-account,
  .portal-footer,
  .portal-footer nav {
    width: 100%;
  }

  .portal-page .portal-nav,
  .portal-page .portal-shell:has(.portal-feature-header) .portal-nav {
    width: calc(100vw - 20px);
    gap: 8px;
  }

  .portal-page .portal-brand,
  .portal-page .portal-shell:has(.portal-feature-header) .portal-brand {
    gap: 8px;
  }

  .portal-page .portal-brand img,
  .portal-page .portal-shell:has(.portal-feature-header) .portal-brand img {
    width: 30px;
    height: 30px;
  }

  .portal-page .portal-brand span,
  .portal-page .portal-shell:has(.portal-feature-header) .portal-brand span {
    max-width: 42vw;
    font-size: 0.92rem;
  }

  .portal-page .portal-account,
  .portal-page .portal-shell:has(.portal-feature-header) .portal-account {
    width: auto;
    gap: 6px;
  }

  .portal-page .portal-account .secondary,
  .portal-page .portal-account .primary,
  .portal-page .portal-shell:has(.portal-feature-header) .portal-account .secondary,
  .portal-page .portal-shell:has(.portal-feature-header) .portal-account .primary {
    width: auto;
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.86rem;
  }

  .portal-page .portal-nav nav a,
  .portal-page .portal-shell:has(.portal-feature-header) .portal-nav nav a {
    font-size: 0.9rem;
  }

  .portal-nav nav {
    justify-content: space-between;
  }

  .portal-account span {
    max-width: 100%;
    width: 100%;
  }

  .portal-hero {
    min-height: 470px;
  }

  .portal-page .portal-feature-header {
    min-height: clamp(500px, 72vh, 680px);
  }

  .portal-hero-overlay {
    padding: 24px;
  }

  .portal-page .portal-feature-header .portal-hero-overlay {
    padding: 108px 18px 40px;
  }

  .portal-page .portal-feature-header h1 {
    max-width: 100%;
    font-size: clamp(3rem, 15vw, 4.5rem);
    overflow-wrap: anywhere;
  }

  .portal-page .portal-feature-header .portal-hero-copy > p:not(.eyebrow):not(.portal-hero-meta) {
    max-width: 34rem;
    font-size: 1.02rem;
  }

  .portal-page .portal-feature-header .actions {
    width: min(100%, 360px);
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 10px;
  }

  .portal-logo {
    width: 72px;
    height: 72px;
  }

	  .portal-status,
	  .portal-footer {
	    align-items: stretch;
	    flex-direction: column;
	  }

	  .portal-about-banner {
	    min-height: 300px;
	  }

	  .content-shelf {
	    grid-auto-columns: minmax(228px, 82%);
  }

  .featured-media,
  .featured-media .thumb,
  .featured-media .thumb img {
    min-height: 230px;
  }

  .nav .muted {
    width: 100%;
    overflow-wrap: anywhere;
  }

  .banner {
    min-height: 190px;
  }

  .avatar {
    margin-top: -48px;
    width: 96px;
    height: 96px;
  }

  .studio-mobile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

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

  .studio-skeleton-metrics,
  .studio-skeleton-status-grid {
    grid-template-columns: 1fr;
  }

  .studio-skeleton-title {
    width: min(280px, 78%);
  }

  .launch-check-head,
  .launch-check-meta,
  .launch-check-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .launch-check-head {
    align-items: flex-end;
  }

  .launch-check-row {
    grid-template-columns: 22px minmax(0, 1fr) 16px;
    min-height: 34px;
    padding: 6px 0;
  }

  .launch-check-copy {
    align-items: flex-start;
    flex-direction: column;
    gap: 1px;
  }

  .launch-check-note::before {
    content: '';
    margin-right: 0;
  }

  .launch-check-group-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .launch-check-note {
    font-size: 0.66rem;
  }

  .launch-check-detail-list {
    margin-left: 24px;
  }

  .launch-readiness-title-row {
    align-items: flex-start;
  }

  .launch-check-detail-row {
    grid-template-columns: 20px minmax(0, 1fr) 16px;
    gap: 7px;
    padding: 6px 0 6px 9px;
  }

  .launch-check-label {
    font-size: 0.9rem;
  }

  .studio-page-header h1 {
    font-size: 2rem;
  }

  .section-row {
    align-items: stretch;
    flex-direction: column;
  }

  .content-toolbar {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .subscriber-toolbar {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .content-tools {
    grid-template-columns: 1fr;
  }

  .content-menu-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .icon-menu-button {
    justify-content: center;
    width: 100%;
  }

  .content-menu-popover {
    left: 0;
    right: auto;
    width: min(260px, 92vw);
  }

  .compact-field {
    max-width: none;
  }

  .sort-field {
    max-width: none;
  }

  .content-row {
    grid-template-columns: 42px 84px minmax(0, 1fr);
    align-items: start;
  }

  .content-row-status,
  .content-row-actions {
    grid-column: 1 / -1;
  }

  .content-row-actions {
    justify-content: flex-start;
  }

  .content-selection-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .content-selection-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .content-selection-actions button {
    width: 100%;
    justify-content: center;
  }

  .studio-upload-modal {
    padding: 12px;
  }

  .studio-upload-modal-panel {
    max-height: calc(100vh - 24px);
    padding: 18px;
  }

  .studio-confirm-panel {
    padding: 22px;
  }

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

  .upload-queue-header {
    align-items: stretch;
    flex-direction: column;
  }

  .upload-queue-row {
    grid-template-columns: 1fr;
  }

  .upload-queue-state {
    justify-items: stretch;
  }

  .upload-queue-progress-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

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

  .pagination-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .schedule-fields {
    grid-template-columns: 1fr;
  }

  .creator-join-heading,
  .two-column-form {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .thumbnail-crop-header {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .portal-preview,
  .experience-preview {
    transform: none;
  }

  .floating-panel {
    translate: 0 0;
  }
}

@media (max-width: 460px) {
  .auth-card,
  .card,
  .watch-panel,
  .welcome-panel {
    padding: 18px;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .home-hero h1 {
    font-size: 2.85rem;
  }

  .studio-sidebar,
  .studio-main {
    padding: 14px;
  }

.studio-nav,
.studio-footer {
    grid-template-columns: 1fr;
  }
}

.blog-shell {
  width: min(1180px, calc(100% - 32px));
  padding-bottom: 80px;
}

.blog-page .topbar .secondary.active {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: #eef5f0;
}

.blog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr);
  gap: 28px;
  align-items: stretch;
  padding: 54px 0 30px;
}

.blog-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.blog-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.65;
}

.blog-hero-panel {
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 280px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(20, 107, 85, 0.12), rgba(166, 111, 37, 0.08)),
    rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.blog-hero-panel strong {
  font-size: 1.35rem;
}

.blog-hero-panel span {
  display: block;
  padding: 10px 12px;
  border: 1px solid rgba(20, 107, 85, 0.12);
  border-radius: 8px;
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.66);
  font-weight: 850;
}

.creator-starter-section,
.glossary-strip,
.blog-filter-section,
.blog-featured,
.blog-category-section,
.article-related {
  margin-top: 28px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.creator-starter-section {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(238, 245, 240, 0.84)),
    var(--surface);
}

.starter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.starter-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 150px;
  padding: 18px;
  border: 1px solid rgba(20, 107, 85, 0.14);
  border-radius: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.starter-card:hover {
  transform: translateY(-4px);
  color: var(--ink);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.starter-card strong {
  font-size: 1.08rem;
  line-height: 1.22;
}

.starter-card span {
  color: var(--muted);
  line-height: 1.5;
}

.glossary-strip {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    #1d2420;
}

.glossary-strip h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.08;
}

.glossary-strip .eyebrow {
  color: #d7ded8;
}

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

.glossary-card {
  min-height: 160px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
}

.glossary-card strong,
.glossary-card span {
  display: block;
}

.glossary-card strong {
  font-size: 1.35rem;
}

.glossary-card span {
  margin-top: 4px;
  color: #d7ded8;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.glossary-card p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.blog-filter-section h2 {
  margin: 0 0 14px;
  font-size: 1.2rem;
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-filters a,
.blog-category {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(20, 107, 85, 0.16);
  border-radius: 999px;
  color: var(--brand-dark);
  background: #eef5f0;
  font-size: 0.82rem;
  font-weight: 900;
}

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

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

.blog-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.blog-card a {
  display: grid;
  height: 100%;
  color: var(--ink);
}

.blog-card-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.blog-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.22rem;
  line-height: 1.2;
}

.blog-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.blog-card-meta,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.blog-card-meta span,
.article-meta span {
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--surface-soft);
}

.blog-cover {
  display: grid;
  align-content: end;
  gap: 10px;
  min-height: 186px;
  padding: 18px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(17, 22, 19, 0.08), rgba(17, 22, 19, 0.74)),
    linear-gradient(135deg, #174c3d, #8c7a45 58%, #28332d);
}

.blog-cover span {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  color: #173027;
  background: rgba(255, 255, 255, 0.84);
  font-size: 0.76rem;
  font-weight: 900;
}

.blog-cover strong {
  max-width: 360px;
  font-size: 1.3rem;
  line-height: 1.12;
}

.blog-cta .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.blog-cta .secondary {
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.article-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 28px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.article-header h1 {
  max-width: 860px;
  margin: 16px 0;
  font-size: clamp(2.5rem, 5.4vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.article-header p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.62;
}

.article-header .blog-cover {
  min-height: 100%;
  border-radius: 12px;
}

.article-body-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.article-sidebar {
  position: sticky;
  top: 18px;
}

.toc {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-soft);
}

.toc strong {
  font-size: 0.95rem;
}

.toc nav {
  display: grid;
  gap: 8px;
}

.toc a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
}

.article-content {
  min-width: 0;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.article-content section {
  scroll-margin-top: 24px;
}

.article-content section + section {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.article-content h2 {
  margin: 0 0 14px;
  font-size: 1.8rem;
  line-height: 1.16;
}

.article-content h3 {
  margin: 24px 0 10px;
  font-size: 1.25rem;
}

.article-content p,
.article-content li {
  color: #3f4843;
  font-size: 1.02rem;
  line-height: 1.75;
}

.article-content p {
  margin: 0 0 14px;
}

.article-content ul,
.article-content ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.article-direct-answer {
  padding: 22px;
  border: 1px solid rgba(20, 107, 85, 0.18);
  border-radius: 12px;
  background: #eef5f0;
}

.article-beginner-note {
  padding: 24px;
  border: 1px solid rgba(20, 107, 85, 0.18);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(238, 245, 240, 0.98), rgba(255, 248, 232, 0.86)),
    var(--surface-soft);
}

.article-beginner-note .eyebrow {
  color: var(--brand-dark);
}

.article-beginner-note h2 {
  margin-top: 0;
}

.simple-term {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(20, 107, 85, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.simple-term strong {
  color: var(--brand-dark);
  font-size: 1.08rem;
}

.simple-term span {
  color: #3f4843;
  line-height: 1.55;
}

.article-direct-answer h2 {
  color: var(--brand-dark);
}

.article-table-wrap {
  overflow-x: auto;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.article-content table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: #ffffff;
}

.article-content th,
.article-content td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}

.article-content th {
  color: var(--ink);
  background: var(--surface-soft);
  font-size: 0.92rem;
}

.article-content tr:last-child td {
  border-bottom: 0;
}

.article-steps li {
  padding-left: 4px;
}

.article-steps strong {
  display: block;
  margin-bottom: 4px;
}

.article-steps p {
  margin: 0;
}

.article-todo {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(138, 91, 0, 0.22);
  border-radius: 12px;
  background: #fff8e8;
}

.article-todo strong {
  color: var(--warning);
}

.article-cta {
  padding: 26px;
  border: 1px solid rgba(20, 107, 85, 0.16);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(20, 107, 85, 0.12), rgba(166, 111, 37, 0.08)),
    var(--surface-soft);
}

.article-related,
.article-prev-next {
  margin-top: 28px;
}

.article-prev-next {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.article-prev-next a {
  max-width: 48%;
  text-align: center;
}

.contact-hero {
  min-height: 560px;
  align-items: center;
}

@media (max-width: 920px) {
  .blog-hero,
  .glossary-strip,
  .article-header,
  .article-body-layout {
    grid-template-columns: 1fr;
  }

  .blog-grid,
  .featured-grid,
  .starter-grid,
  .glossary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-sidebar {
    position: static;
  }

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

@media (max-width: 760px) {
  .blog-shell {
    width: min(100% - 24px, 1160px);
  }

  .blog-hero {
    padding-top: 26px;
  }

  .blog-hero h1,
  .article-header h1 {
    font-size: clamp(2.55rem, 13vw, 3.6rem);
  }

  .blog-filter-section,
  .creator-starter-section,
  .glossary-strip,
  .blog-featured,
  .blog-category-section,
  .article-related,
  .article-header,
  .article-content {
    padding: 20px;
  }

  .blog-grid,
  .featured-grid,
  .starter-grid,
  .glossary-grid,
  .toc nav {
    grid-template-columns: 1fr;
  }

  .blog-cta .actions,
  .article-prev-next,
  .article-prev-next a {
    width: 100%;
    max-width: none;
  }

  .article-prev-next {
    flex-direction: column;
  }
}

.legal-studio-grid {
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.4fr);
}

.legal-readiness-card .compact-checklist {
  margin-top: 18px;
}

.legal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.legal-tabs button {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
}

.legal-tabs button span {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.legal-tabs button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.legal-tabs button.active span {
  color: rgba(255, 255, 255, 0.72);
}

.legal-form textarea {
  min-height: 420px;
  line-height: 1.55;
}

.toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
}

.toggle-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.portal-legal-page {
  width: min(1120px, calc(100% - 48px));
  margin: 34px auto 70px;
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
  gap: 28px;
  align-items: start;
}

.portal-legal-header,
.portal-legal-body {
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  background: rgba(255, 252, 244, 0.88);
  box-shadow: 0 28px 80px rgba(16, 28, 20, 0.12);
}

.portal-legal-header {
  padding: 32px;
  position: sticky;
  top: 118px;
}

.portal-legal-header h1 {
  margin: 8px 0 12px;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.95;
}

.portal-legal-header p {
  color: var(--muted);
}

.portal-legal-header .large-button {
  margin-top: 18px;
}

.portal-legal-body {
  padding: clamp(24px, 4vw, 48px);
  color: rgba(22, 28, 24, 0.82);
  font-size: 1.04rem;
  line-height: 1.75;
}

.portal-legal-body p {
  margin: 0 0 1.35em;
}

@media (max-width: 760px) {
  .legal-studio-grid,
  .portal-legal-page {
    grid-template-columns: 1fr;
  }

  .portal-legal-page {
    width: min(100% - 28px, 720px);
    margin-top: 22px;
  }

  .portal-legal-header {
    position: static;
  }

  .portal-page .portal-nav,
  .portal-page .watch-channel-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    flex-direction: initial;
    gap: 10px;
    padding: 10px;
    border-radius: 22px;
  }

  .watch-player-controls {
    grid-template-columns: auto minmax(0, 1fr) repeat(6, auto);
    gap: 6px;
  }

  .watch-player-time {
    display: none;
  }

  .watch-player-speed {
    width: 54px;
    font-size: 0.76rem;
  }

  .portal-page .portal-menu-toggle {
    display: inline-flex;
  }

  .portal-page .portal-menu {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .portal-page .portal-nav.menu-open .portal-menu {
    display: grid;
    gap: 10px;
  }

  .portal-page .portal-menu nav,
  .portal-page .portal-menu .portal-account,
  .portal-page .portal-shell:has(.portal-feature-header) .portal-menu nav,
  .portal-page .portal-shell:has(.portal-feature-header) .portal-menu .portal-account {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .portal-page .portal-menu nav {
    justify-content: stretch;
  }

  .portal-page .portal-menu nav a {
    width: 100%;
    padding: 10px 12px;
    border-radius: 14px;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
  }

  .portal-page .portal-menu nav a.active {
    background: rgba(255, 255, 255, 0.15);
  }

  .portal-page .portal-menu .portal-account span,
  .portal-page .portal-shell:has(.portal-feature-header) .portal-menu .portal-account span {
    display: block;
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  .portal-page .portal-menu .portal-account .secondary,
  .portal-page .portal-menu .portal-account .primary,
  .portal-page .portal-shell:has(.portal-feature-header) .portal-menu .portal-account .secondary,
  .portal-page .portal-shell:has(.portal-feature-header) .portal-menu .portal-account .primary {
    width: 100%;
    min-height: 40px;
    justify-content: center;
  }

  .portal-page .portal-menu .portal-account-menu {
    width: 100%;
  }

  .portal-page .portal-menu .portal-account-toggle {
    width: 100%;
    height: 44px;
    border-radius: 14px;
  }

  .portal-page .portal-menu .portal-account-toggle span {
    width: 16px;
    height: 16px;
  }

  .portal-page .portal-menu .portal-account-toggle span::after {
    width: 24px;
    height: 14px;
    bottom: -12px;
  }

  .portal-page .portal-menu .portal-account-dropdown {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 8px;
  }
}
