@import url("./site-header.css");

@font-face {
  font-family: "Inter";
  src: url("./assets/fonts/inter-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("./assets/fonts/inter-semibold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("./assets/fonts/inter-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #0b0d0c;
  --surface: #111512;
  --surface-raised: #171c18;
  --surface-soft: #1d231e;
  --line: rgba(239, 247, 235, 0.1);
  --line-strong: rgba(239, 247, 235, 0.18);
  --text: #f5f8f2;
  --muted: #8f9a91;
  --muted-strong: #bec7be;
  --accent: #c8ff5b;
  --accent-ink: #11170b;
  --warning: #ffd985;
  --danger: #ff9c8d;
  --radius-large: 28px;
  --radius-medium: 20px;
  --page-pad: clamp(20px, 4.6vw, 72px);
  --content-width: 1500px;
  font-family: "Inter", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  font-synthesis: none;
}

/* Creator additions use the existing site's surfaces, spacing and typography. */
.flow-heading { margin: 26px 0 22px; }
.flow-heading h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.16; margin: 8px 0 12px; }
.flow-note { color: var(--muted-strong); font-size: 14px; line-height: 1.6; margin: 10px 0; }
.flow-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.flow-actions button { min-height: 44px; }
.flow-field { display: grid; gap: 9px; margin: 18px 0; color: var(--text); font-size: 14px; }
.flow-field small { color: var(--muted); }
.flow-field input, .flow-field textarea { width: 100%; min-width: 0; padding: 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface); color: var(--text); font: inherit; line-height: 1.5; }
.flow-field textarea { resize: vertical; }
.flow-field input[type=range] { accent-color: var(--accent); padding: 0; min-height: 44px; }
.flow-entries { display: grid; gap: 8px; }
.flow-entries button { min-height: 76px; justify-content: flex-start; text-align: left; }
.flow-entries .flow-note { margin: 0 0 16px; }
.flow-modes, .flow-clips { display: grid; gap: 14px; margin: 20px 0; }
.flow-modes article, .flow-clips article, .flow-plan-card { border: 1px solid var(--line); background: var(--surface-raised); border-radius: var(--radius-medium); padding: 20px; }
.flow-modes h3, .flow-clips h3 { margin: 0 0 10px; }
.flow-attachment, .flow-moment { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: var(--surface-raised); width: 100%; text-align: left; }
.flow-attachment > div, .flow-moment > div { flex: 1; min-width: 0; }
.flow-attachment strong { overflow-wrap: anywhere; }
.flow-attachment small, .flow-moment small { display: block; color: var(--muted-strong); line-height: 1.5; margin-top: 6px; }
.flow-moment { cursor: pointer; min-height: 64px; }
.flow-moment:disabled { cursor: default; opacity: .5; }
.flow-moment > span { color: var(--accent); font-size: 12px; }
.flow-moments, .flow-picker { display: grid; gap: 10px; margin: 18px 0; }
.flow-plan-card { margin: 14px 0; }
.flow-outcome + .flow-outcome { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 14px; }
.flow-progress { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin: 18px 0; }
.flow-progress progress { grid-column: 1 / -1; width: 100%; accent-color: var(--accent); }
.flow-progress .flow-note { grid-column: 1 / -1; }
.flow-busy, .flow-simulation { padding: 14px; border-radius: 14px; border: 1px solid var(--line-strong); color: var(--warning); font-size: 13px; line-height: 1.5; }
.flow-source-player { width: 100%; height: 100%; object-fit: contain; background: #000; border-radius: inherit; }
.flow-source-caption { position: absolute; top: 14px; left: 12px; right: 12px; width: fit-content; max-width: calc(100% - 24px); margin: 0; padding: 8px 12px; border-radius: 12px; background: rgba(11,13,12,.88); color: var(--text); font-size: 12px; pointer-events: none; }
.flow-story { margin: 22px 0; min-width: 0; }
.flow-story-opening, .flow-story-outcome { padding: 18px; border: 1px solid var(--line-strong); border-radius: var(--radius-medium); background: var(--surface-raised); min-width: 0; }
.flow-story-outcome-heading { display: flex; align-items: flex-start; gap: 10px; }
.flow-story-outcome-heading > div { flex: 1; min-width: 0; }
.flow-story-outcome-heading h3 { margin: 5px 0; font-size: 17px; line-height: 1.3; }
.flow-story-outcome-heading small { display: block; color: var(--muted-strong); font-size: 12px; overflow-wrap: anywhere; }
.flow-story-role { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--text); background: var(--surface); font-weight: 700; }
.flow-story-state { font-size: 11px; line-height: 1.5; text-align: right; color: var(--muted-strong); max-width: 80px; }
.flow-story-path { color: var(--branch-color, var(--accent)); font-size: 12px; font-weight: 600; }
.flow-story-opening-meta, .flow-story-selected { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.flow-story-opening-meta > span { color: var(--muted-strong); font-size: 12px; }
.flow-story-opening-meta button, .flow-story-selected button { min-height: 44px; }
.flow-story-decision { position: relative; margin: 28px 0 0; padding: 18px; border: 1px solid var(--line-strong); border-radius: var(--radius-medium); background: var(--surface); text-align: center; }
.flow-story-decision::before { content: ""; position: absolute; top: -29px; left: 50%; height: 28px; border-left: 2px solid var(--line-strong); }
.flow-story-decision > strong { display: block; margin: 10px 0; }
.flow-story-decision h3 { font-size: 17px; line-height: 1.4; margin: 8px 0 16px; }
.flow-story-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.flow-story-shortcuts button { min-height: 44px; padding: 10px 6px; font-size: 12px; }
.flow-story-shortcuts button[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.flow-story-selected { text-align: left; }
.flow-story-selected small { display: block; color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.flow-story-selected strong { font-size: 14px; }
.flow-story-outcomes-title { text-align: center; margin: 20px 0 0; }
.flow-story-fork { position: relative; display: grid; grid-template-columns: 1fr 1fr; height: 36px; margin: 0 25%; }
.flow-story-fork::before { content: ""; position: absolute; top: 0; left: 50%; height: 18px; border-left: 2px solid var(--line-strong); }
.flow-story-fork span { margin-top: 17px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); border-radius: 10px 0 0; }
.flow-story-fork span + span { border-left: 0; border-right: 2px solid var(--warning); border-top-color: var(--warning); border-radius: 0 10px 0 0; }
.flow-story-endings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.flow-story-outcome { --branch-color: var(--accent); border-top: 2px solid var(--branch-color); }
.flow-story-outcome[data-story-role="C"] { --branch-color: var(--warning); }
.flow-story-outcome .flow-story-role { color: var(--branch-color); border-color: var(--branch-color); }
.flow-story-outcome > button { margin: 4px 0; min-height: 44px; width: 100%; }
.flow-story-outcome .flow-actions button { width: 100%; font-size: 12px; padding: 12px; }
.flow-story-outcome .flow-note { font-size: 12px; }
.flow-story-error { padding: 12px; border: 1px solid var(--danger); border-radius: 12px; color: var(--danger); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .flow-story-endings { grid-template-columns: 1fr; margin-left: 12px; padding-left: 14px; border-left: 2px solid var(--line-strong); }
  .flow-story-fork { height: 24px; margin: 0 0 0 12px; display: block; border-top: 2px solid var(--line-strong); border-left: 2px solid var(--line-strong); border-radius: 10px 0 0; width: calc(50% - 12px); }
  .flow-story-fork::before, .flow-story-fork span { display: none; }
  .flow-story-outcome { position: relative; padding: 16px; }
  .flow-story-outcome::before { content: ""; position: absolute; top: 30px; left: -16px; width: 14px; border-top: 2px solid var(--branch-color); }
  .flow-story-outcome-heading { flex-wrap: wrap; }
  .flow-story-state { max-width: none; }
}
.flow-dialog { width: min(620px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 24px; border: 1px solid var(--line-strong); border-radius: 24px; color: var(--text); background: var(--surface); }
.flow-dialog::backdrop { background: rgba(0,0,0,.75); }
.flow-dialog-heading { display: flex; gap: 12px; justify-content: space-between; align-items: center; }
.flow-dialog-heading h2 { font-size: 24px; margin: 0; }
.flow-clip-video { width: 100%; height: 230px; object-fit: contain; background: #000; border-radius: 14px; margin-top: 20px; }
.flow-clip-dialog[open] { display: flex; flex-direction: column; height: min(820px, calc(100dvh - 40px)); overflow: hidden; }
.flow-clip-dialog .flow-dialog-heading, .flow-cut-footer { flex-shrink: 0; }
.flow-clip-body { overflow-y: auto; min-height: 0; flex: 1; padding-right: 2px; scrollbar-gutter: stable; }
.flow-cut-preview-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.flow-cut-preview-actions button { min-height: 44px; font-size: 12px; padding: 10px; }
.flow-cut-footer { padding-top: 14px; }
.flow-cut-footer .flow-actions { margin-top: 10px; }
.flow-cut-footer button { width: 100%; }
.flow-cut-timeline { position: relative; height: 76px; margin: 24px 0 12px; border-radius: 10px; touch-action: none; cursor: ew-resize; background: var(--surface-raised); }
.flow-cut-frames { display: grid; grid-template-columns: repeat(8, 1fr); height: 100%; overflow: hidden; border-radius: inherit; }
.flow-cut-frames span { min-width: 0; border-right: 1px solid var(--line); background: linear-gradient(145deg, var(--surface-raised), var(--ink)); }
.flow-cut-frames img { display: block; width: 100%; height: 100%; object-fit: cover; }
.flow-cut-opening { position: absolute; inset: 0 auto 0 0; width: var(--cut-position); background: rgba(0,0,0,.6); border-radius: 10px 0 0 10px; pointer-events: none; }
.flow-cut-tail { position: absolute; inset: 0 0 0 var(--cut-position); border: 2px solid var(--accent); border-radius: 0 10px 10px 0; background: color-mix(in srgb, var(--accent) 18%, transparent); pointer-events: none; }
.flow-cut-divider { position: absolute; top: -6px; bottom: -6px; left: var(--cut-position); width: 3px; transform: translateX(-50%); background: var(--accent); pointer-events: none; }
.flow-cut-divider span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--ink); font-size: 18px; box-shadow: 0 2px 10px #0008; }
.flow-cut-timeline:focus-within { outline: 2px solid var(--accent); outline-offset: 6px; }
.flow-cut-labels { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.flow-cut-labels span:last-child { text-align: right; color: var(--accent); }
.flow-cut-labels small { display: block; margin-top: 6px; font-variant-numeric: tabular-nums; }
.flow-cut-selection { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 14px; border: 1px solid var(--accent); border-radius: 12px; font-size: 14px; }
.flow-cut-selection output { color: var(--accent); font-variant-numeric: tabular-nums; }
.flow-recovery { margin-top: 20px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.flow-account { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; }
.flow-account-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-medium); background: var(--surface-raised); text-align: left; cursor: pointer; }
.flow-account-card span { display: block; font-size: 28px; color: var(--accent); margin: 12px 0; }
.flow-account-card small { color: var(--muted-strong); line-height: 1.4; display: block; }
.flow-balance { font-size: 38px; color: var(--accent); }
.flow-balance small { font-size: 14px; color: var(--muted-strong); }
.flow-ledger > div { display: flex; gap: 20px; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); }
.flow-ledger small { display: block; color: var(--muted); margin-top: 6px; }
.flow-drafts-entry { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 16px; text-align: left; margin-bottom: 20px; cursor: pointer; }
.flow-drafts-entry small { display: block; color: var(--muted); margin-top: 6px; }
.flow-drafts-entry > span:last-child { font-size: 12px; color: var(--accent); }
.flow-drafts { display: grid; gap: 14px; margin: 24px 0; }
.flow-drafts article { padding: 22px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-medium); }
.flow-drafts h3 { margin: 0; overflow-wrap: anywhere; }
.flow-drafts small { color: var(--muted); }
.flow-idea-link { display: inline-block; color: var(--muted-strong); font-size: 13px; margin: 12px 0 0; }
.flow-interaction-dialog[open] { display: flex; flex-direction: column; width: min(680px, calc(100vw - 32px)); height: min(780px, calc(100dvh - 40px)); overflow: hidden; }
.flow-interaction-dialog .flow-dialog-heading { flex-shrink: 0; }
.flow-picker-selected { display: grid; gap: 6px; padding: 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface-raised); }
.flow-picker-selected small { color: var(--muted-strong); font-size: 12px; }
.flow-interaction-dialog .flow-field { margin: 14px 0; }
.flow-picker-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; }
.flow-picker-tabs button { flex-shrink: 0; min-height: 44px; font-size: 12px; padding: 10px 12px; }
.flow-picker-tabs button[aria-pressed=true] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.flow-interaction-dialog .flow-picker { overflow-y: auto; min-height: 0; margin-bottom: 0; align-content: start; scrollbar-gutter: stable; }
.flow-picker-type, .flow-picker-actions { display: grid; gap: 8px; }
.flow-picker-actions[hidden] { display: none; }
.flow-picker-secondary { margin-left: 8px; }
.flow-picker-choice { color: var(--text); }
.flow-picker-choice[aria-pressed=true] { border-color: var(--accent); }
.flow-picker-type-toggle { color: var(--text); background: var(--surface); }
.flow-picker-badge { font-size: 10px !important; color: var(--muted-strong) !important; }
.flow-interaction-dialog button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.profile-avatar-editor input.sr-only { width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; }
@media (max-width: 600px) {
  .flow-attachment { flex-wrap: wrap; }
  .flow-dialog { padding: 20px; }
  .flow-account-card { padding: 16px; }
  .flow-dialog-heading h2 { font-size: 20px; }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--ink);
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% -6rem, rgba(200, 255, 91, 0.09), transparent 34rem),
    radial-gradient(circle at -8rem 34rem, rgba(90, 137, 255, 0.05), transparent 30rem),
    var(--ink);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

button,
a {
  color: inherit;
  font: inherit;
}

a {
  text-underline-offset: 0.2em;
}

button {
  border: 0;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 11px 15px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  width: min(100%, calc(var(--content-width) + var(--page-pad) * 2));
  min-height: 100vh;
  margin: 0 auto;
  padding-inline: var(--page-pad);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  isolation: isolate;
}

.site-header::before {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 13, 12, 0.82);
  backdrop-filter: blur(18px) saturate(130%);
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 13px;
}

.brand__copy {
  display: grid;
  gap: 1px;
}

.brand__copy strong {
  font-size: 19px;
  letter-spacing: -0.045em;
}

.brand__copy span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  background: var(--accent);
  color: var(--accent-ink);
}

.site-menu {
  position: relative;
  display: none;
}

.site-menu summary {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 12px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  place-content: center;
  gap: 4px;
  background: var(--surface);
  cursor: pointer;
  list-style: none;
}

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

.site-menu summary span {
  display: block;
  width: 18px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
}

.site-menu nav {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  width: min(280px, calc(100vw - 32px));
  overflow: hidden;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(17, 21, 18, 0.98);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.site-menu nav a {
  min-height: 46px;
  padding: 13px 14px;
  border-radius: 11px;
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.site-menu nav a:hover,
.site-menu nav a[aria-current="page"] {
  background: var(--surface-soft);
  color: var(--text);
}

.page-intro {
  display: grid;
  min-height: clamp(370px, 52vw, 620px);
  align-content: center;
  padding: clamp(72px, 11vw, 152px) 0 clamp(64px, 9vw, 118px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-intro h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(58px, 10vw, 154px);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.85;
}

.page-intro h1 span {
  color: var(--accent);
}

.page-intro__lede {
  max-width: 510px;
  margin: clamp(30px, 4vw, 48px) 0 0;
  color: var(--muted-strong);
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.65;
}

.content-section {
  padding-bottom: clamp(72px, 10vw, 148px);
}

.content-section--root {
  padding-top: 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 0 0 28px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 3.2vw, 46px);
  letter-spacing: -0.055em;
  line-height: 1;
}

.section-heading .eyebrow {
  margin-bottom: 12px;
}

.section-heading p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  text-align: right;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 26px);
  padding-top: 28px;
}

.work-card {
  min-width: 0;
  animation: card-in 520ms both;
  animation-delay: calc(var(--card-index) * 45ms);
}

.work-card__button {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: linear-gradient(180deg, #151a16, var(--surface));
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  text-align: left;
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.work-card__button:hover,
.work-card__button:focus-visible {
  border-color: rgba(200, 255, 91, 0.42);
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.34);
  transform: translateY(-4px);
}

.work-card__button.is-disabled {
  cursor: default;
}

.work-card__button.is-disabled:hover {
  border-color: var(--line);
  box-shadow: none;
  transform: none;
}

.work-card__button.is-disabled:hover .work-card__video {
  filter: none;
  transform: none;
}

.work-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(145deg, rgba(202, 255, 100, 0.12), transparent),
    #090b08;
}

.work-card__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #090b08;
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 260ms ease;
}

.work-card__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(202, 255, 100, 0.7);
}

.work-card__placeholder svg {
  width: 64px;
  height: 64px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1;
}

.work-card__button:hover .work-card__video {
  filter: saturate(1.06);
  transform: scale(1.035);
}

.work-card__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 6, 4, 0.5) 0%, transparent 32%),
    linear-gradient(0deg, rgba(4, 6, 4, 0.48) 0%, transparent 36%);
  pointer-events: none;
}

.work-card__topline {
  position: absolute;
  top: 14px;
  right: 14px;
  left: 14px;
  display: flex;
  align-items: center;
}

.support-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  background: rgba(16, 20, 15, 0.72);
  backdrop-filter: blur(10px);
  color: #edf2e7;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.support-chip__dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
}

.support-chip--permission .support-chip__dot {
  background: var(--warning);
}

.support-chip--capability .support-chip__dot {
  background: #8fc7ff;
}

.support-chip--app-only .support-chip__dot {
  background: #d9a8ff;
}

.support-chip--limited .support-chip__dot {
  background: var(--danger);
}

.work-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 13px 34px rgba(5, 8, 4, 0.36);
  color: var(--accent-ink);
  opacity: 0;
  transform: translate(-50%, -42%) scale(0.92);
  transition: opacity 200ms ease, transform 240ms ease;
}

.work-card__button:hover .work-card__play,
.work-card__button:focus-visible .work-card__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.work-card__play svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.work-card__number {
  position: absolute;
  right: 16px;
  bottom: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.work-card__body {
  display: grid;
  gap: 14px;
  min-height: 178px;
  padding: 20px;
}

.work-card__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.work-card__heading strong {
  overflow: hidden;
  font-size: 17px;
  letter-spacing: -0.035em;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-card__heading > span {
  flex: none;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.work-card__description {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.work-card__types {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: end;
  overflow: hidden;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-card__types svg {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.state-panel {
  display: grid;
  min-height: 390px;
  margin-top: 32px;
  place-items: center;
  align-content: center;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: linear-gradient(145deg, var(--surface-raised), var(--surface));
  text-align: center;
}

.state-panel strong {
  margin: 22px 0 0;
  font-size: 20px;
}

.state-panel p {
  max-width: 480px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.state-panel--error {
  border-color: rgba(255, 156, 141, 0.25);
}

.state-panel--loading {
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.skeleton-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 26px);
}

.skeleton-gallery span {
  aspect-ratio: 4 / 7;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  background: var(--surface);
}

.skeleton-gallery span::after {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent 18%,
    rgba(255, 255, 255, 0.055) 45%,
    transparent 72%
  );
  content: "";
  transform: translateX(-100%);
  animation: shimmer 1.4s ease-in-out infinite;
}

.state-button {
  min-height: 44px;
  margin-top: 22px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: filter 160ms ease, transform 160ms ease;
}

.state-button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.feed-pagination {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.feed-pagination__spinner {
  width: 18px;
  height: 18px;
  flex: none;
  border: 1.5px solid rgba(202, 255, 100, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.feed-pagination__button {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.feed-pagination__button:hover {
  border-color: rgba(202, 255, 100, 0.42);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 40px;
  padding: 34px 0 max(42px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.site-footer > div {
  display: grid;
  gap: 7px;
}

.site-footer strong {
  color: var(--text);
  font-size: 17px;
  letter-spacing: -0.04em;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer a {
  color: var(--muted-strong);
  text-decoration: none;
}

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

.player-open {
  overflow: hidden;
}

.player-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  overflow: auto;
  padding: clamp(16px, 3vw, 44px);
  place-items: center;
  background: rgba(3, 4, 3, 0.9);
  backdrop-filter: blur(20px);
  animation: modal-in 180ms ease both;
}

.player-modal__surface {
  position: relative;
  display: block;
  width: min(calc(92dvh * 0.5625), 92vw);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: #0b0e0a;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
}

.player-close {
  position: absolute;
  z-index: 4;
  top: 17px;
  right: 17px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  background: rgba(16, 20, 15, 0.76);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.player-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.player-stage {
  display: grid;
  width: 100%;
  height: 100%;
  padding: 0;
  place-items: center;
  background: #000;
}

.player-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  aspect-ratio: 9 / 16;
  border: 0;
  border-radius: 0;
  background: #000;
}

.player-state {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  min-height: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  padding: 72px 28px 40px;
  background:
    radial-gradient(circle at 50% 34%, rgba(202, 255, 100, 0.12), transparent 34%),
    #090b08;
  color: var(--text);
  text-align: center;
}

.player-state__spinner {
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
  border: 2px solid rgba(202, 255, 100, 0.18);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.player-state strong {
  font-size: clamp(20px, 5vw, 28px);
  line-height: 1.15;
}

.player-state p {
  max-width: 320px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.player-state__actions {
  display: flex;
  width: min(100%, 320px);
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.player-state__actions .state-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  border: 1px solid transparent;
  text-decoration: none;
}

.player-state__actions .state-button--quiet {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--text);
}

.player-state__actions .state-button--app {
  border-color: rgba(202, 255, 100, 0.4);
  background: rgba(202, 255, 100, 0.06);
  color: var(--text);
}

.player-state__actions .state-button--app:hover {
  background: rgba(202, 255, 100, 0.12);
}

.player-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

/* Shared legal and download pages */

.subpage-shell {
  width: min(100%, calc(var(--content-width) + var(--page-pad) * 2));
}

.subpage-shell > main,
.subpage-shell > .site-footer {
  width: min(100%, 1176px);
  margin-inline: auto;
}

.subpage-intro {
  padding: clamp(76px, 10vw, 144px) 0 clamp(58px, 8vw, 104px);
}

.subpage-intro h1 {
  max-width: 1080px;
  margin: 0;
  font-size: clamp(52px, 8.8vw, 126px);
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.subpage-intro h1 span {
  color: var(--accent);
}

.subpage-intro > p:last-child {
  max-width: 590px;
  margin: 32px 0 0;
  color: var(--muted-strong);
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.65;
}

.download-page {
  padding-bottom: clamp(80px, 11vw, 160px);
}

.download-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.85fr);
  gap: clamp(28px, 5vw, 76px);
  padding: clamp(28px, 4.5vw, 64px);
  border: 1px solid var(--line-strong);
  border-radius: 32px;
  background:
    radial-gradient(circle at 88% 0, rgba(200, 255, 91, 0.12), transparent 30rem),
    linear-gradient(145deg, var(--surface-raised), var(--surface));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.25);
}

.download-card__identity {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 34px);
}

.download-card__identity > img {
  width: clamp(86px, 11vw, 138px);
  aspect-ratio: 1;
  border-radius: 27%;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.34);
}

.download-card__identity h2 {
  margin: 8px 0 9px;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.055em;
  line-height: 1;
}

.download-card__identity p {
  margin: 0;
  color: var(--muted);
}

.download-card__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent) !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.download-card__status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(200, 255, 91, 0.1);
}

.release-facts {
  display: grid;
  grid-column: 1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 4px 0 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
}

.release-facts div {
  min-width: 0;
  padding: 17px;
  background: rgba(11, 13, 12, 0.54);
}

.release-facts dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.release-facts dd {
  overflow: hidden;
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-action {
  display: flex;
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: 238px;
  align-items: stretch;
  justify-content: center;
  flex-direction: column;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 23px;
  background: rgba(7, 9, 7, 0.48);
}

.download-button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 24px;
  border-radius: 16px;
  background: var(--accent);
  box-shadow: 0 16px 34px rgba(83, 110, 32, 0.2);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  transition: filter 180ms ease, transform 180ms ease;
}

.download-button:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.download-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.download-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: var(--muted-strong);
  font-size: 13px;
}

.download-loading span {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(200, 255, 91, 0.18);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.download-error {
  text-align: center;
}

.download-error p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 13px;
}

.download-note {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.install-guide {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(42px, 8vw, 120px);
  padding-top: clamp(76px, 10vw, 140px);
}

.install-guide h2 {
  max-width: 370px;
  margin: 0;
  font-size: clamp(36px, 5vw, 68px);
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.install-guide ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.install-guide li {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 22px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.install-guide li:last-child {
  border-bottom: 1px solid var(--line);
}

.install-guide li > span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.install-guide strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
}

.install-guide li p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.legal-page {
  padding: clamp(70px, 9vw, 130px) 0 clamp(92px, 12vw, 170px);
}

.legal-header {
  max-width: 850px;
  margin: 0 auto clamp(52px, 7vw, 90px);
}

.legal-header h1 {
  margin: 0 0 22px;
  font-size: clamp(48px, 8vw, 92px);
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.legal-header .last-updated {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.legal-document {
  max-width: 850px;
  margin: 0 auto;
  padding: clamp(26px, 5.5vw, 72px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(17, 21, 18, 0.8);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.2);
}

.legal-document > :first-child {
  margin-top: 0;
}

.legal-document h2 {
  margin: 46px 0 14px;
  color: var(--text);
  font-size: clamp(21px, 3vw, 27px);
  letter-spacing: -0.035em;
  line-height: 1.25;
  scroll-margin-top: 110px;
}

.legal-document p,
.legal-document li {
  color: #cbd2cc;
  font-size: 15px;
  line-height: 1.78;
}

.legal-document p {
  margin: 0 0 18px;
}

.legal-document ul,
.legal-document ol {
  margin: 0 0 22px;
  padding-left: 24px;
}

.legal-document li {
  margin: 9px 0;
  padding-left: 4px;
}

.legal-document li::marker {
  color: var(--accent);
}

.legal-document strong {
  color: var(--text);
}

.legal-document a {
  color: var(--accent);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes orbit {
  to { transform: translateX(-50%) rotate(360deg); }
}

@keyframes shimmer {
  to { transform: translateX(100%); }
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modal-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 1180px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  .site-nav {
    display: none;
  }

  .site-menu {
    display: block;
  }

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

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

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .site-footer > span {
    grid-column: 1 / -1;
  }

  .download-card {
    grid-template-columns: 1fr;
  }

  .download-action {
    grid-column: 1;
    grid-row: auto;
    min-height: 190px;
  }

  .install-guide {
    grid-template-columns: 1fr;
  }

  .player-modal {
    padding: 0;
    place-items: stretch;
  }

  .player-modal__surface {
    display: block;
    width: 100%;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .player-stage {
    min-height: 100dvh;
    padding: 0;
  }

  .player-frame {
    width: min(100%, 56.25dvh);
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .player-close {
    top: max(14px, env(safe-area-inset-top));
    right: 14px;
  }
}

@media (max-width: 640px) {
  :root {
    --page-pad: 16px;
  }

  .site-header {
    min-height: 72px;
  }

  .brand img {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .page-intro {
    min-height: 420px;
    padding: 76px 0 68px;
  }

  .page-intro h1 {
    font-size: clamp(56px, 18vw, 82px);
    line-height: 0.9;
  }

  .page-intro__lede {
    margin-top: 28px;
    font-size: 15px;
  }

  .section-heading {
    display: grid;
    gap: 10px;
  }

  .section-heading p {
    font-size: 11px;
    text-align: left;
  }

  .gallery {
    gap: 12px;
    padding-top: 18px;
  }

  .work-card__button {
    border-radius: 17px;
  }

  .work-card__topline {
    top: 10px;
    right: 10px;
    left: 10px;
  }

  .support-chip {
    max-width: calc(100% - 2px);
    min-height: 24px;
    padding: 0 8px;
    overflow: hidden;
    font-size: 8px;
    text-overflow: ellipsis;
  }

  .work-card__play {
    width: 46px;
    height: 46px;
    opacity: 0.94;
    transform: translate(-50%, -50%);
  }

  .work-card__play svg {
    width: 20px;
    height: 20px;
  }

  .work-card__number {
    right: 11px;
    bottom: 10px;
    font-size: 9px;
  }

  .work-card__body {
    gap: 10px;
    min-height: 156px;
    padding: 14px 12px 13px;
  }

  .work-card__heading {
    display: grid;
    gap: 4px;
  }

  .work-card__heading strong {
    font-size: 14px;
  }

  .work-card__heading > span {
    font-size: 8px;
  }

  .work-card__description {
    font-size: 10px;
  }

  .work-card__types {
    gap: 5px;
    padding-top: 10px;
    font-size: 8px;
  }

  .work-card__types svg {
    width: 12px;
    height: 12px;
  }

  .state-panel {
    min-height: 300px;
    padding: 30px 20px;
    border-radius: 20px;
  }

  .site-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    padding-bottom: 28px;
  }

  .site-footer > span {
    grid-column: auto;
  }

  .subpage-intro {
    padding: 72px 0 58px;
  }

  .subpage-intro h1 {
    font-size: clamp(48px, 15vw, 72px);
  }

  .download-card {
    padding: 22px;
    border-radius: 23px;
  }

  .download-card__identity {
    align-items: flex-start;
    flex-direction: column;
  }

  .download-card__identity > img {
    width: 88px;
  }

  .release-facts {
    grid-template-columns: 1fr;
  }

  .download-action {
    min-height: 170px;
    padding: 20px;
  }

  .install-guide li {
    grid-template-columns: 38px 1fr;
    gap: 12px;
  }

  .legal-page {
    padding-top: 70px;
  }

  .legal-document {
    padding: 26px 20px;
    border-radius: 21px;
  }

  .legal-document p,
  .legal-document li {
    font-size: 14px;
  }
}

/* Creator, authentication, and profile */

.site-view[hidden] {
  display: none;
}

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

.account-login,
.account-menu summary {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-raised);
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
}

.account-login {
  padding: 0 18px;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease;
}

.account-login:hover {
  border-color: rgba(200, 255, 91, 0.42);
  background: var(--surface-soft);
}

.account-menu {
  position: relative;
}

.account-menu summary {
  width: 44px;
  padding: 0;
  list-style: none;
}

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

.account-avatar,
.profile-avatar {
  display: grid;
  overflow: hidden;
  border-radius: 50%;
  background-color: var(--accent);
  background-position: center;
  background-size: cover;
  color: var(--accent-ink);
  font-weight: 800;
  place-items: center;
}

.account-avatar {
  width: 32px;
  height: 32px;
}

.account-menu nav {
  position: absolute;
  z-index: 60;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  width: 190px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 17px;
  background: rgba(17, 21, 18, 0.98);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.account-menu nav a,
.account-menu nav button,
.site-menu nav button {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 0 13px;
  border-radius: 10px;
  background: transparent;
  color: var(--muted-strong);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
}

.account-menu nav a:hover,
.account-menu nav button:hover,
.site-menu nav button:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.creator-entry {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(48px, 7vh, 72px) 0 clamp(38px, 6vh, 64px);
  text-align: center;
}

.creator-entry::before {
  position: absolute;
  z-index: -1;
  top: 12%;
  left: 50%;
  width: min(760px, 90vw);
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 255, 91, 0.1), transparent 68%);
  content: "";
  filter: blur(12px);
  transform: translateX(-50%);
}

.creator-entry__heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 24px);
}

.creator-mark {
  position: relative;
  display: grid;
  width: clamp(52px, 5.5vw, 68px);
  height: clamp(52px, 5.5vw, 68px);
  flex: none;
  color: var(--text);
  place-items: center;
}

.creator-mark::after {
  position: absolute;
  top: 2px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(200, 255, 91, 0.1);
  content: "";
}

.creator-mark svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.creator-mark svg circle,
.creator-mark svg path:last-child {
  fill: var(--ink);
}

.creator-entry .eyebrow {
  margin-bottom: 10px;
  text-align: left;
}

.creator-entry h1 {
  margin: 0;
  font-size: clamp(44px, 5.8vw, 76px);
  letter-spacing: -0.07em;
  line-height: 0.94;
  text-align: left;
}

.creator-entry h1 span,
.view-heading h1 span {
  color: var(--accent);
}

.creator-entry__lede {
  margin: 18px auto 0;
  color: var(--muted-strong);
  font-size: clamp(15px, 1.6vw, 19px);
}

.idea-composer {
  position: relative;
  max-width: 930px;
  margin: 24px auto 0;
  padding: 14px;
  border: 1px solid rgba(239, 247, 235, 0.24);
  border-radius: 26px;
  background: linear-gradient(155deg, rgba(30, 35, 31, 0.98), rgba(19, 23, 20, 0.98));
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.38), inset 0 1px rgba(255, 255, 255, 0.04);
  text-align: left;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.idea-composer:focus-within {
  border-color: rgba(200, 255, 91, 0.52);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.38), 0 0 0 3px rgba(200, 255, 91, 0.08);
}

.idea-composer textarea {
  width: 100%;
  min-height: 64px;
  resize: vertical;
  padding: 4px 4px 18px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.55;
}

.idea-composer textarea::placeholder,
.creator-brief textarea::placeholder,
.inline-form textarea::placeholder {
  color: #717b73;
}

.idea-composer__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.composer-icon,
.composer-submit {
  display: grid;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 13px;
  cursor: pointer;
  place-items: center;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.composer-icon {
  border: 1px solid var(--line-strong);
  background: #222823;
  color: var(--text);
}

.composer-icon:hover {
  border-color: rgba(200, 255, 91, 0.4);
  background: #293029;
}

.composer-submit {
  margin-left: auto;
  background: var(--accent);
  color: var(--accent-ink);
}

.composer-submit:disabled {
  background: #303630;
  color: #697169;
  cursor: not-allowed;
}

.composer-submit[aria-busy="true"],
.work-card__button[aria-busy="true"] {
  cursor: progress;
  opacity: 0.72;
  pointer-events: none;
}

.composer-icon svg,
.composer-submit svg,
.primary-button svg,
.file-drop svg,
.selected-file svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.idea-composer__file {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer-access-label {
  margin-left: auto;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.composer-access-label:not([hidden]) + .composer-submit {
  margin-left: 0;
}

.idea-suggestions {
  display: flex;
  max-width: 860px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 16px auto 0;
}

.idea-suggestions button {
  min-height: 40px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(29, 35, 30, 0.88);
  color: var(--muted-strong);
  cursor: pointer;
  font-size: 12px;
  transition: border-color 180ms ease, color 180ms ease;
}

.idea-suggestions button:hover {
  border-color: rgba(200, 255, 91, 0.4);
  color: var(--text);
}

.creator-entry__limits {
  margin: 12px 0 0;
  color: #707a71;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field-message {
  margin: 10px 0 0;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.45;
}

.field-message[data-kind="success"] {
  color: var(--accent);
}

.view-heading {
  max-width: 900px;
  padding: clamp(76px, 9vw, 126px) 0 clamp(50px, 7vw, 82px);
}

.view-heading h1 {
  margin: 0;
  font-size: clamp(52px, 7.5vw, 106px);
  letter-spacing: -0.07em;
  line-height: 0.91;
}

.view-heading > p:last-child {
  max-width: 620px;
  margin: 30px 0 0;
  color: var(--muted-strong);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.65;
}

.view-heading--compact {
  padding-bottom: clamp(42px, 5vw, 64px);
}

.view-heading--compact h1 {
  font-size: clamp(50px, 7vw, 92px);
}

.creator-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  padding: clamp(32px, 4.5vw, 64px) 0 clamp(72px, 8vw, 112px);
}

.creator-library {
  padding-bottom: clamp(90px, 12vw, 170px);
}

.creator-library__state {
  min-height: 280px;
}

.creator-library__loading {
  margin-top: 28px;
}

.creator-console,
.creator-preview,
.profile-card,
.current-creation,
.publication-section {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-large);
  background: linear-gradient(155deg, rgba(23, 28, 24, 0.96), rgba(14, 17, 15, 0.98));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.22);
}

.creator-console {
  min-height: 720px;
  padding: clamp(20px, 3.5vw, 42px);
}

.creator-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0 0 38px;
  padding: 0;
  list-style: none;
}

.creator-steps li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #6f7970;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.creator-steps li::before {
  position: absolute;
  z-index: 0;
  top: 15px;
  right: 50%;
  width: 100%;
  height: 1px;
  background: var(--line-strong);
  content: "";
}

.creator-steps li:first-child::before {
  display: none;
}

.creator-steps li span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  place-items: center;
}

.creator-steps li[aria-current="step"],
.creator-steps li.is-complete {
  color: var(--text);
}

.creator-steps li[aria-current="step"] span,
.creator-steps li.is-complete span {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.creator-conversation {
  display: grid;
  gap: 18px;
  margin-bottom: 30px;
}

.conversation-message {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
}

.conversation-message--user {
  margin-left: clamp(18px, 7vw, 80px);
}

.conversation-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--surface-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  place-items: center;
}

.conversation-message--user .conversation-avatar {
  background: var(--accent);
  color: var(--accent-ink);
}

.conversation-message > div {
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 8px 18px 18px;
  background: rgba(29, 35, 30, 0.72);
}

.conversation-message--user > div {
  border-radius: 18px 8px 18px 18px;
  background: rgba(200, 255, 91, 0.08);
}

.conversation-message strong {
  display: block;
  font-size: 14px;
}

.conversation-message p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.creator-controls,
.creator-gate,
.source-review,
.tweak-panel,
.publish-panel,
.publish-result {
  padding: clamp(19px, 2.5vw, 28px);
  border: 1px solid var(--line);
  border-radius: 21px;
  background: rgba(8, 11, 8, 0.45);
}

.creator-gate,
.source-review,
.tweak-panel,
.publish-panel,
.publish-result {
  margin-top: 20px;
}

.creator-gate h2,
.source-review h2,
.publish-panel h2,
.publish-result h2 {
  margin: 0;
  font-size: clamp(23px, 3vw, 32px);
  letter-spacing: -0.045em;
}

.creator-gate > p:not(.eyebrow),
.publish-result > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.creator-access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.creator-gate label,
.creator-brief > span,
.source-regenerate label,
.tweak-panel > label,
.publish-panel label,
.profile-card label,
.auth-email label,
.auth-code label {
  display: grid;
  gap: 9px;
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.creator-brief > span small {
  color: var(--muted);
  font-weight: 500;
  text-transform: none;
}

.creator-mode-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.creator-mode-intro > div {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 11px;
}

.creator-mode-intro__mark {
  width: 9px;
  height: 9px;
  flex: none;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(200, 255, 91, 0.09);
}

.creator-mode-intro p {
  display: grid;
  gap: 4px;
  margin: 0;
}

.creator-mode-intro strong {
  font-size: 13px;
}

.creator-mode-intro p span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.creator-quota {
  flex: none;
  padding: 7px 10px;
  border: 1px solid rgba(200, 255, 91, 0.2);
  border-radius: 999px;
  background: rgba(200, 255, 91, 0.06);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.file-drop {
  display: flex;
  width: 100%;
  min-height: 104px;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 20px;
  border: 1px dashed rgba(200, 255, 91, 0.35);
  border-radius: 17px;
  background: rgba(200, 255, 91, 0.035);
  color: var(--accent);
  cursor: pointer;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease;
}

.file-drop:hover {
  border-color: var(--accent);
  background: rgba(200, 255, 91, 0.07);
}

.file-drop span,
.selected-file > span:nth-child(2) {
  display: grid;
  gap: 5px;
}

.file-drop strong,
.selected-file strong {
  color: var(--text);
  font-size: 14px;
}

.file-drop small,
.selected-file small {
  color: var(--muted);
  font-size: 11px;
}

.selected-file {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 40px;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(200, 255, 91, 0.22);
  border-radius: 16px;
  background: rgba(200, 255, 91, 0.055);
}

.selected-file__icon {
  display: grid;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  place-items: center;
}

.selected-file button {
  display: grid;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  place-items: center;
}

.selected-file button:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.creator-brief {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.creator-brief textarea,
.source-regenerate textarea,
.inline-form input,
.inline-form textarea,
.publish-panel input,
.publish-panel textarea,
.profile-card input,
.profile-card textarea,
.auth-email input,
.auth-code input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  outline: 0;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.creator-brief textarea,
.source-regenerate textarea,
.inline-form textarea,
.publish-panel textarea,
.profile-card textarea {
  resize: vertical;
  padding: 14px;
}

.inline-form input,
.publish-panel input,
.profile-card input,
.auth-email input,
.auth-code input {
  min-height: 48px;
  padding: 0 14px;
}

.creator-brief textarea:focus,
.source-regenerate textarea:focus,
.inline-form input:focus,
.inline-form textarea:focus,
.publish-panel input:focus,
.publish-panel textarea:focus,
.profile-card input:focus,
.profile-card textarea:focus,
.auth-email input:focus,
.auth-code input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 255, 91, 0.1);
}

.creator-cost-note {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.creator-controls[data-mode="progress"] .creator-mode-intro,
.creator-controls[data-mode="progress"] .creator-file,
.creator-controls[data-mode="progress"] .creator-brief,
.creator-controls[data-mode="progress"] .creator-cost-note {
  display: none;
}

.creator-controls[data-mode="progress"] .creator-progress {
  margin-top: 0;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 11px;
}

.inline-form--textarea {
  align-items: end;
}

.creator-progress {
  margin-top: 20px;
  padding: 16px;
  border-radius: 15px;
  background: var(--surface);
}

.creator-progress > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted-strong);
  font-size: 12px;
}

.creator-progress strong {
  color: var(--accent);
}

.creator-progress progress {
  width: 100%;
  height: 7px;
  overflow: hidden;
  margin-top: 12px;
  border: 0;
  border-radius: 999px;
  background: #252c26;
  accent-color: var(--accent);
}

.creator-progress progress::-webkit-progress-bar {
  background: #252c26;
}

.creator-progress progress::-webkit-progress-value {
  border-radius: 999px;
  background: var(--accent);
}

.creator-progress p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.creator-progress .creator-progress__meta {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted-strong);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.creator-generation-stages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.creator-generation-stages li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 56px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
}

.creator-generation-stages li[data-state="active"] {
  border-color: rgba(200, 255, 91, 0.42);
  background: rgba(200, 255, 91, 0.055);
}

.creator-generation-stages li[data-state="done"] {
  border-color: rgba(200, 255, 91, 0.2);
}

.creator-generation-stages li[data-state="failed"] {
  border-color: rgba(255, 121, 121, 0.42);
}

.creator-generation-stages__marker {
  display: grid;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 750;
  place-items: center;
}

.creator-generation-stages li[data-state="active"] .creator-generation-stages__marker,
.creator-generation-stages li[data-state="done"] .creator-generation-stages__marker {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.creator-generation-stages li[data-state="failed"] .creator-generation-stages__marker {
  border-color: #ff7979;
  color: #ff9a9a;
}

.creator-generation-stages li > span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.creator-generation-stages strong {
  overflow: hidden;
  color: var(--text);
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-generation-stages small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.3;
}

.creator-generation-stages li[data-state="active"] small {
  color: var(--accent);
}

.creator-generation-stages li[data-state="failed"] small {
  color: #ff9a9a;
}

.creator-primary-actions,
.publish-result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
}

.source-review {
  overflow: hidden;
}

.source-review__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.source-review__heading .eyebrow {
  margin-bottom: 7px;
}

.source-review__badge {
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.source-review__layout {
  display: grid;
  grid-template-columns: minmax(190px, 0.7fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 30px);
  align-items: center;
  margin-top: 22px;
}

.source-review__media {
  display: grid;
  overflow: hidden;
  max-height: 500px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: #050605;
  place-items: center;
}

.source-review__media video {
  display: block;
  width: 100%;
  max-height: 500px;
  aspect-ratio: 9 / 16;
  background: #000;
  object-fit: contain;
}

.source-review__details > p:first-child {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

.source-review__details dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 14px;
  margin: 20px 0;
}

.source-review__details dl > * {
  margin: 0;
}

.source-review__details dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.source-review__details dd {
  margin-bottom: 7px;
  color: var(--muted-strong);
  font-size: 12px;
}

.source-review__details details {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}

.source-review__details summary {
  color: var(--muted-strong);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.source-review__details details p {
  max-height: 150px;
  overflow: auto;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.source-review__expiry {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.source-review__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  margin-top: 22px;
}

.source-regenerate {
  min-width: min(100%, 270px);
}

.source-regenerate > summary {
  width: max-content;
  list-style: none;
}

.source-regenerate > summary::-webkit-details-marker {
  display: none;
}

.source-regenerate form {
  display: grid;
  width: min(440px, 72vw);
  gap: 10px;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
}

.source-regenerate textarea {
  width: 100%;
  resize: vertical;
  padding: 13px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  outline: 0;
  background: #0c0f0d;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
}

.source-regenerate form > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.source-regenerate form > div span {
  color: var(--muted);
  font-size: 10px;
}

.primary-button,
.secondary-button,
.text-button,
.danger-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: 13px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  transition: filter 180ms ease, border-color 180ms ease, background 180ms ease;
}

.primary-button {
  background: var(--accent);
  color: var(--accent-ink);
}

.primary-button--large {
  min-height: 54px;
  padding: 0 22px;
}

.secondary-button--large {
  min-height: 54px;
  padding: 0 22px;
}

.primary-button:hover:not(:disabled) {
  filter: brightness(1.07);
}

.secondary-button {
  border: 1px solid var(--line-strong);
  background: var(--surface-soft);
  color: var(--text);
}

.secondary-button:hover:not(:disabled) {
  border-color: rgba(200, 255, 91, 0.42);
}

.danger-button {
  border: 1px solid rgba(255, 121, 121, 0.42);
  background: rgba(255, 121, 121, 0.1);
  color: #ff9a9a;
}

.danger-button:hover:not(:disabled) {
  border-color: rgba(255, 121, 121, 0.72);
  background: rgba(255, 121, 121, 0.16);
}

.text-button {
  background: transparent;
  color: var(--muted-strong);
}

.primary-button:disabled,
.secondary-button:disabled,
.text-button:disabled,
.danger-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.tweak-panel > label {
  margin-bottom: 10px;
}

.publish-panel {
  display: grid;
  gap: 17px;
}

.publish-panel__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.publish-panel__heading .eyebrow {
  margin-bottom: 8px;
}

.publish-panel__heading > span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.publish-panel__actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
}

.publish-panel__actions > * {
  width: 100%;
}

.creator-preview {
  position: sticky;
  top: 106px;
  padding: 18px;
}

.creator-preview__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 3px 3px 15px;
}

.creator-preview__heading > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.creator-preview__heading strong {
  font-size: 12px;
}

.creator-preview__heading > span {
  color: var(--muted);
  font-size: 10px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(200, 255, 91, 0.09);
}

.preview-device {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: #070907;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.025);
}

.preview-device iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.preview-empty {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 34px;
  color: var(--muted);
  text-align: center;
}

.preview-empty svg {
  width: 58px;
  height: 58px;
  margin-bottom: 6px;
  fill: none;
  stroke: rgba(200, 255, 91, 0.66);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
}

.preview-empty strong {
  max-width: 240px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.4;
}

.preview-empty span {
  max-width: 240px;
  font-size: 11px;
  line-height: 1.5;
}

.preview-capability {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: clamp(22px, 6vw, 38px);
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 191, 71, 0.09), transparent 42%),
    #070907;
  color: var(--muted);
  text-align: center;
}

.preview-capability__icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 4px;
  border: 1px solid rgba(255, 191, 71, 0.3);
  border-radius: 16px;
  background: rgba(255, 191, 71, 0.08);
  color: #ffbf47;
  place-items: center;
}

.preview-capability__icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.preview-capability strong {
  max-width: 240px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.4;
}

.preview-capability p {
  max-width: 260px;
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
}

.preview-capability > div {
  display: grid;
  width: min(100%, 230px);
  gap: 9px;
  margin-top: 5px;
}

.preview-capability .primary-button,
.preview-capability .secondary-button {
  width: 100%;
  min-height: 44px;
  justify-content: center;
}

.version-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 3px 2px;
}

.version-list > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.version-list > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.version-list button {
  min-width: 38px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--muted-strong);
  cursor: pointer;
  font-size: 11px;
}

.version-list button.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.auth-dialog {
  width: min(100% - 32px, 500px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}

.auth-dialog::backdrop {
  background: rgba(3, 5, 3, 0.84);
  backdrop-filter: blur(14px);
}

.auth-dialog__surface {
  position: relative;
  padding: clamp(28px, 6vw, 48px);
}

.reset-dialog__icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 25px;
  border: 1px solid rgba(255, 121, 121, 0.3);
  border-radius: 16px;
  background: rgba(255, 121, 121, 0.09);
  color: #ff9a9a;
  place-items: center;
}

.reset-dialog__icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.reset-dialog__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 28px;
}

.reset-dialog__actions > * {
  width: 100%;
}

.access-options {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.access-options > button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  min-height: 76px;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 17px;
  background: rgba(29, 35, 30, 0.72);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.access-options > button:hover,
.access-options > button:focus-visible {
  border-color: rgba(200, 255, 91, 0.48);
  background: rgba(200, 255, 91, 0.07);
  transform: translateY(-1px);
}

.access-options > button > span:nth-child(2) {
  display: grid;
  gap: 5px;
}

.access-options strong {
  font-size: 14px;
}

.access-options small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.access-option__icon {
  display: grid;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 17px;
  font-weight: 800;
  place-items: center;
}

.access-back {
  margin: 25px 0 14px;
  padding: 0;
  background: transparent;
  color: var(--muted-strong);
  cursor: pointer;
  font-size: 12px;
}

.access-form {
  display: grid;
  gap: 11px;
}

.access-form label {
  display: grid;
  gap: 6px;
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.access-form label small {
  color: var(--muted);
  font-weight: 500;
  text-transform: none;
}

.access-form input,
.access-form textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  outline: 0;
  background: var(--ink);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
}

.access-form input {
  min-height: 50px;
  padding: 0 14px;
}

.access-form textarea {
  resize: vertical;
  padding: 13px 14px;
}

.access-form input:focus,
.access-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 255, 91, 0.1);
}

.access-form .primary-button {
  min-height: 50px;
  margin-top: 5px;
}

.access-success {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 26px;
  padding: 17px;
  border: 1px solid rgba(200, 255, 91, 0.25);
  border-radius: 17px;
  background: rgba(200, 255, 91, 0.07);
}

.access-success > span {
  display: grid;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  place-items: center;
}

.access-success p {
  margin: 6px 0 0;
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1.55;
}

.access-success p span {
  color: var(--text);
}

.access-error {
  margin-top: 14px;
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
  color: var(--muted-strong);
  cursor: pointer;
  place-items: center;
}

.dialog-close svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.auth-logo {
  display: block;
  width: 54px;
  height: 54px;
  margin-bottom: 25px;
}

.auth-logo img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
}

.auth-heading h2 {
  margin: 0;
  font-size: clamp(30px, 6vw, 42px);
  letter-spacing: -0.055em;
}

.auth-heading > p:last-child {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.google-signin {
  display: grid;
  min-height: 48px;
  margin-top: 28px;
  place-items: center;
}

.google-signin > div {
  max-width: 100%;
}

.google-fallback {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #f5f7f3;
  color: #171a17;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
}

.google-fallback svg {
  width: 20px;
  height: 20px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.auth-email,
.auth-code {
  display: grid;
  gap: 12px;
}

.auth-code input {
  font-size: 22px;
  letter-spacing: 0.32em;
  text-align: center;
}

.auth-back,
.auth-resend {
  justify-self: start;
  padding: 0;
  background: transparent;
  color: var(--muted-strong);
  cursor: pointer;
  font-size: 12px;
}

.auth-resend:disabled {
  color: var(--muted);
  cursor: default;
}

.auth-legal {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

.auth-legal a {
  color: var(--muted-strong);
}

.login-page {
  display: grid;
  min-height: calc(100vh - 170px);
  padding: 70px 0 120px;
  place-items: center;
}

.login-page__card,
.profile-auth-card {
  width: min(100%, 650px);
  padding: clamp(34px, 7vw, 72px);
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  background: radial-gradient(circle at 85% 0, rgba(200, 255, 91, 0.12), transparent 20rem), var(--surface);
  text-align: center;
}

.login-page__card h1 {
  margin: 0;
  font-size: clamp(43px, 7vw, 72px);
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.login-page__card > p:not(.eyebrow),
.profile-auth-card p {
  margin: 22px auto;
  color: var(--muted);
  line-height: 1.6;
}

.profile-page {
  padding-bottom: clamp(90px, 12vw, 170px);
}

.profile-loading {
  min-height: 320px;
  color: var(--muted);
}

.profile-auth-card {
  margin-bottom: 120px;
}

.profile-auth-card h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.05em;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.32fr) minmax(0, 0.68fr);
  gap: clamp(20px, 3vw, 38px);
  align-items: start;
}

.profile-card {
  position: sticky;
  top: 106px;
  display: grid;
  gap: 18px;
  padding: clamp(21px, 3vw, 30px);
}

.profile-avatar-editor {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 5px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  flex: none;
  font-size: 24px;
}

.profile-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 15px 0;
  border-block: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.profile-counts strong {
  margin-right: 4px;
  color: var(--text);
  font-size: 14px;
}

.profile-main {
  display: grid;
  gap: 26px;
}

.current-creation,
.publication-section {
  padding: clamp(22px, 3.5vw, 36px);
}

.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-title-row .eyebrow {
  margin-bottom: 9px;
}

.section-title-row h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 36px);
  letter-spacing: -0.05em;
}

.section-title-row > a,
.section-title-row > span {
  color: var(--muted);
  font-size: 11px;
}

.section-title-row > a:hover {
  color: var(--accent);
}

.current-creation__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(200, 255, 91, 0.045);
}

.current-creation__card strong {
  font-size: 14px;
}

.current-creation__card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

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

.publication-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
}

.publication-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: radial-gradient(circle at 70% 20%, rgba(200, 255, 91, 0.17), transparent 50%), #090c09;
}

.publication-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.publication-status {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(10, 13, 10, 0.82);
  color: var(--muted-strong);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.publication-status--live {
  color: var(--accent);
}

.publication-status--rejected,
.publication-status--deleted {
  color: var(--danger);
}

.publication-status--warming,
.publication-status--pending_review {
  color: var(--warning);
}

.publication-card__body {
  padding: 18px;
}

.publication-card h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.03em;
}

.publication-card p {
  display: -webkit-box;
  min-height: 38px;
  overflow: hidden;
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.publication-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.publication-card__actions a,
.publication-card__actions button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--muted-strong);
  cursor: pointer;
  font-size: 10px;
  font-weight: 650;
  line-height: 34px;
  text-decoration: none;
}

.publication-card__actions a:hover,
.publication-card__actions button:hover {
  border-color: rgba(200, 255, 91, 0.4);
  color: var(--text);
}

.profile-empty {
  grid-column: 1 / -1;
  padding: 48px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

.profile-empty strong {
  color: var(--text);
}

.profile-empty p {
  margin: 9px 0 0;
  font-size: 12px;
}

.seo-overview,
.seo-capabilities,
.seo-faq {
  padding: clamp(68px, 9vw, 128px) 0;
  border-top: 1px solid var(--line);
}

.seo-overview h2,
.seo-capabilities h2,
.seo-faq h2 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(40px, 5.8vw, 82px);
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.seo-overview__lede {
  max-width: 780px;
  margin: 30px 0 46px;
  color: var(--muted-strong);
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.65;
}

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

.seo-feature-grid article {
  min-height: 230px;
  padding: clamp(22px, 2.4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(200, 255, 91, 0.06), transparent 54%),
    var(--surface);
}

.seo-feature-grid article > span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.seo-feature-grid h3 {
  margin: 58px 0 10px;
  font-size: clamp(21px, 2vw, 29px);
  letter-spacing: -0.045em;
}

.seo-feature-grid p {
  max-width: 42ch;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.seo-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.seo-link-row a {
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.seo-link-row a:hover {
  border-color: rgba(200, 255, 91, 0.48);
  color: var(--accent);
}

.seo-capabilities {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(480px, 1.15fr);
  gap: clamp(48px, 8vw, 132px);
}

.seo-capabilities h2 {
  font-size: clamp(38px, 4.5vw, 68px);
}

.seo-capability-list {
  border-top: 1px solid var(--line-strong);
}

.seo-capability-list a {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 26px;
  padding: 25px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease;
}

.seo-capability-list a:hover {
  border-color: rgba(200, 255, 91, 0.48);
  color: var(--accent);
}

.seo-capability-list strong {
  font-size: 15px;
}

.seo-capability-list span {
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.6;
}

.seo-faq {
  max-width: 1020px;
}

.seo-faq h2 {
  margin-bottom: 38px;
  font-size: clamp(38px, 5vw, 70px);
}

.seo-faq details {
  border-bottom: 1px solid var(--line);
}

.seo-faq details:first-of-type {
  border-top: 1px solid var(--line-strong);
}

.seo-faq summary {
  padding: 24px 40px 24px 0;
  cursor: pointer;
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 650;
  letter-spacing: -0.025em;
}

.seo-faq details p {
  max-width: 72ch;
  margin: -5px 0 25px;
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 1120px) {
  .site-nav a {
    padding-inline: 10px;
  }

  .site-nav a:nth-last-child(-n + 2) {
    display: none;
  }

  .creator-workbench {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.66fr);
  }
}

@media (max-width: 860px) {
  .account-actions {
    display: none;
  }

  .site-menu nav button {
    width: 100%;
  }

  .creator-workbench,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .creator-preview,
  .profile-card {
    position: static;
  }

  .creator-preview {
    max-width: 480px;
    margin: 0 auto;
  }

  .profile-card {
    max-width: 600px;
  }

  .seo-feature-grid,
  .seo-capabilities {
    grid-template-columns: 1fr;
  }

  .seo-capabilities {
    gap: 42px;
  }
}

@media (max-width: 600px) {
  .creator-entry {
    padding: 42px 0 48px;
  }

  .creator-entry__heading {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .creator-entry .eyebrow {
    margin-bottom: 8px;
  }

  .creator-entry h1 {
    font-size: clamp(44px, 13vw, 64px);
  }

  .creator-entry__lede {
    margin-top: 20px;
    text-align: left;
  }

  .idea-composer {
    margin-top: 22px;
    padding: 14px;
    border-radius: 20px;
  }

  .idea-composer textarea {
    min-height: 82px;
    padding-bottom: 12px;
  }

  .idea-suggestions {
    justify-content: flex-start;
  }

  .idea-suggestions button {
    min-height: 44px;
  }

  .creator-entry__limits {
    text-align: left;
  }

  .creator-workbench {
    padding-top: 28px;
  }

  .composer-access-label {
    max-width: 118px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .view-heading {
    padding: 64px 0 42px;
  }

  .view-heading h1 {
    font-size: clamp(48px, 14vw, 68px);
  }

  .creator-console,
  .creator-preview,
  .profile-card,
  .current-creation,
  .publication-section {
    border-radius: 22px;
  }

  .creator-console {
    min-height: 0;
    padding: 18px 14px;
  }

  .creator-preview {
    width: 100%;
    padding: 13px;
  }

  .preview-device {
    border-radius: 19px;
  }

  .creator-steps {
    margin-bottom: 28px;
  }

  .creator-steps li {
    font-size: 8px;
  }

  .conversation-message {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
  }

  .conversation-message--user {
    margin-left: 14px;
  }

  .conversation-avatar {
    width: 34px;
    height: 34px;
  }

  .conversation-message > div {
    padding: 13px;
  }

  .creator-controls,
  .creator-gate,
  .source-review,
  .tweak-panel,
  .publish-panel,
  .publish-result {
    padding: 16px;
    border-radius: 17px;
  }

  .creator-mode-intro,
  .source-review__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .creator-quota {
    white-space: normal;
  }

  .creator-generation-stages {
    grid-template-columns: 1fr;
  }

  .source-review__layout {
    grid-template-columns: 1fr;
  }

  .source-review__media,
  .source-review__media video {
    max-height: 68dvh;
  }

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

  .source-review__actions {
    display: grid;
  }

  .source-review__actions > .primary-button,
  .source-regenerate,
  .source-regenerate > summary,
  .source-regenerate form {
    width: 100%;
  }

  .source-regenerate form {
    max-width: none;
  }

  .inline-form,
  .inline-form--textarea {
    grid-template-columns: 1fr;
  }

  .creator-access-actions {
    display: grid;
  }

  .creator-access-actions > * {
    width: 100%;
  }

  .inline-form .primary-button {
    min-height: 48px;
  }

  .creator-primary-actions .primary-button--large {
    width: 100%;
  }

  .publish-panel__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-dialog {
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - 8px);
    margin: auto 0 0;
    border-radius: 27px 27px 0 0;
  }

  .auth-dialog__surface {
    padding: 34px 20px max(26px, env(safe-area-inset-bottom));
  }

  .profile-layout {
    gap: 18px;
  }

  .profile-avatar-editor,
  .current-creation__card {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .section-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .seo-overview,
  .seo-capabilities,
  .seo-faq {
    padding: 58px 0;
  }

  .seo-feature-grid article {
    min-height: 200px;
  }

  .seo-capability-list a {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .seo-link-row {
    display: grid;
  }

  .seo-link-row a {
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* The personal library keeps the original work cards and publication actions. */
.profile-main .creator-library { padding-top: 0; }
.profile-main .creator-library__gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.work-card .publication-card__actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 16px; }
.work-card .publication-card__actions a, .work-card .publication-card__actions button { min-height: 36px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 10px; background: var(--surface-soft); color: var(--text); text-decoration: none; cursor: pointer; }
@media (max-width:600px) { .profile-main .creator-library__gallery { grid-template-columns: 1fr; } }
