:root {
  color-scheme: dark;
  --background: #111;
  --surface: #181818;
  --ink: #f6f4ef;
  --muted: #b2afaa;
  --line: #373531;
  --red: #ff473e;
  --red-hover: #ff645c;
  --dark-red: #e63730;
  --black: #101010;
  --radius: 5px;
  --gutter: clamp(18px, 5vw, 74px);
  font: 16px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--background); }
button, input, textarea { font: inherit; }
button, a { cursor: pointer; }
button { color: inherit; }
button:disabled { cursor: wait; opacity: .65; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}
svg { display: block; width: 20px; height: 20px; flex: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.top {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 12px max(var(--gutter), calc((100vw - 1370px) / 2));
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  font-size: 1.5rem;
  font-weight: 780;
  letter-spacing: -.09em;
  line-height: 1;
}
.brand-icon {
  display: block;
  width: 36px;
  height: 36px;
  margin-right: 7px;
  object-fit: contain;
}
.site-nav { display: flex; justify-content: center; gap: clamp(13px, 3vw, 37px); }
.site-nav a { white-space: nowrap; color: var(--muted); font-size: .875rem; font-weight: 650; }
.site-nav a:hover { color: var(--ink); }
.header-actions { display: flex; justify-self: end; align-items: center; gap: 9px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: #252525;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .17s ease;
}
.button svg { width: 16px; height: 16px; }
.red { color: var(--black); background: var(--red); }
.red:hover { background: var(--red-hover); }
.ghost { background: transparent; border-color: var(--line); }
.ghost:hover { background: #252424; border-color: #77716b; }
.top .ghost { border-color: transparent; }
.top .ghost:hover { border-color: var(--line); }

main {
  width: min(1370px, calc(100% - 2 * var(--gutter)));
  margin: auto;
  padding: clamp(28px, 4vw, 58px) 0 52px;
  outline: none;
}
.welcome {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 70px);
  margin-bottom: clamp(22px, 3.4vw, 44px);
}
.welcome-copy { min-width: 0; padding-block: 30px; }
.welcome h1 { margin: 0; font-weight: 780; letter-spacing: -.086em; overflow-wrap: anywhere; }
.welcome h1 > span {
  display: block;
  font-size: clamp(2rem, 4.35vw, 4.55rem);
  line-height: 1;
}
.welcome h1 strong {
  display: block;
  margin-left: -.055em;
  font-size: clamp(3.25rem, 7.15vw, 7.55rem);
  font-weight: 800;
  line-height: .99;
}
.welcome-period { color: var(--red); }
.welcome h1 .personal-welcome { font-size: clamp(2.75rem, 6vw, 6.5rem); }
.welcome p { max-width: 33ch; text-wrap: pretty; margin: 27px 0 25px; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.3rem); }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.welcome-actions .button { min-height: 49px; padding-inline: 19px; }

.welcome-art {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1.24;
  overflow: hidden;
  border: 1px solid #62574f;
  background:
    repeating-linear-gradient(90deg, transparent 0 32px, #f6f4ef0b 32px 33px),
    repeating-linear-gradient(0deg, transparent 0 32px, #f6f4ef0b 32px 33px),
    #181616;
}
.welcome-art::before {
  position: absolute;
  inset: 4% 3%;
  border-block: 1px solid #756760;
  content: '';
}
.film-sprockets {
  position: absolute;
  inset-block: 10% 15%;
  width: 2.9%;
  background: repeating-linear-gradient(0deg, #b8a8a4 0 7px, transparent 7px 16px);
  opacity: .44;
}
.left-sprockets { left: 3%; }
.right-sprockets { right: 3%; }
.film-window {
  position: absolute;
  isolation: isolate;
  inset: 8% 8.2% 13%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #fa5e54;
  background:
    repeating-linear-gradient(0deg, #10101025 0 1px, transparent 1px 4px),
    linear-gradient(150deg, #f65548 0%, #e63730 57%, #a7201e 100%);
}
.film-window::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, transparent calc(50% - .5px), #30100e80 calc(50% - .5px) calc(50% + .5px), transparent calc(50% + .5px)),
    linear-gradient(0deg, transparent calc(50% - .5px), #30100e80 calc(50% - .5px) calc(50% + .5px), transparent calc(50% + .5px)),
    repeating-radial-gradient(circle, transparent 0 9.1%, #30100e65 9.2% 9.48%, transparent 9.55% 18.2%);
  content: '';
}
.film-track {
  position: absolute;
  inset: auto 8.2% 7% 8.2%;
  height: 2.8%;
  border-top: 1px solid #674c47;
  border-bottom: 1px solid #674c47;
  background: repeating-linear-gradient(90deg, #6d5751 0 1px, transparent 1px 10px);
}
.frame-corner {
  position: absolute;
  width: clamp(11px, 2vw, 29px);
  aspect-ratio: 1;
  border: solid #21100f;
}
.top-left { top: 5%; left: 4.5%; border-width: 2px 0 0 2px; }
.top-right { top: 5%; right: 4.5%; border-width: 2px 2px 0 0; }
.bottom-left { bottom: 5%; left: 4.5%; border-width: 0 0 2px 2px; }
.bottom-right { bottom: 5%; right: 4.5%; border-width: 0 2px 2px 0; }
.art-disc {
  display: grid;
  place-items: center;
  width: 48%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #111;
  outline: 1px solid #1b0e0d;
  outline-offset: clamp(6px, 1.2vw, 16px);
}
.hero-mark {
  display: block;
  width: 70%;
  height: auto;
}

.upload-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--line);
  background: var(--surface);
}
.upload-specs div { padding: 14px clamp(10px, 2.4vw, 30px) 17px; }
.upload-specs div + div { border-left: 1px solid var(--line); }
.upload-specs dt { color: var(--muted); font-size: .875rem; }
.upload-specs dd {
  margin: 3px 0 0;
  font-size: clamp(1.125rem, 3vw, 2rem);
  font-weight: 740;
  letter-spacing: -.05em;
  line-height: 1.12;
}
.workflow, .watch-features {
  margin-top: clamp(32px, 5.2vw, 70px);
  scroll-margin-top: 25px;
}
.workflow {
  padding: clamp(22px, 4vw, 54px);
  border-top: 5px solid var(--red);
  background: var(--ink);
  color: var(--black);
}
.workflow h2, .watch-features h2 {
  margin: 0 0 21px;
  font-size: clamp(1.95rem, 4.4vw, 4rem);
  line-height: 1;
  letter-spacing: -.075em;
}
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid #aaa49c;
  list-style: none;
}
.workflow-steps li { padding: 18px clamp(13px, 2vw, 31px) 0; }
.workflow-steps li:first-child { padding-left: 0; }
.workflow-steps li:last-child { padding-right: 0; }
.workflow-steps li + li { border-left: 1px solid #aaa49c; }
.workflow-icon {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 1px solid #b6afa6;
  border-radius: 3px;
  color: #b9211a;
}
.workflow-steps h3 { margin: 10px 0 3px; font-size: 1.12rem; line-height: 1.2; }
.workflow-steps p { max-width: 26ch; margin: 0; color: #4b4742; font-size: .9375rem; }
.watch-features {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(18px, 5vw, 66px);
  padding: clamp(18px, 3.4vw, 48px);
  border: 1px solid var(--line);
  background: var(--surface);
}
.watch-features h2 { margin-bottom: 7px; }
.watch-feature-copy dl { margin: 0; }
.watch-feature-copy dl div { margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); }
.watch-feature-copy dt { display: flex; align-items: center; gap: 7px; font-weight: 700; }
.watch-feature-copy dt svg { width: 16px; height: 16px; color: var(--red); }
.watch-feature-copy dd { max-width: 41ch; margin: 3px 0 0 23px; color: var(--muted); font-size: .9375rem; }
.watch-diagram { padding: 11px; border: 1px solid #514740; background: var(--black); }
.diagram-player {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 8.5;
  border: 1px solid #6f3b37;
  background:
    repeating-linear-gradient(126deg, transparent 0 21px, #f2918518 21px 23px),
    linear-gradient(132deg, #271919, #7b251f);
}
.diagram-player span {
  display: grid;
  place-items: center;
  width: clamp(32px, 4.4vw, 61px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--red);
  color: var(--black);
}
.diagram-player svg { width: 48%; height: 48%; }
.diagram-controls, .diagram-metadata { display: flex; align-items: center; gap: 7px; padding: 8px 1px; }
.diagram-controls i, .diagram-metadata i { display: block; border-radius: 2px; background: #554943; }
.diagram-controls i { width: 8px; height: 8px; }
.diagram-controls i:first-child { width: 74%; height: 3px; margin-right: auto; background: linear-gradient(90deg, var(--red) 0 32%, #554943 32%); }
.diagram-metadata { justify-content: space-between; padding: 11px 1px 3px; border-top: 1px solid var(--line); }
.diagram-metadata i:first-child { width: 42%; height: 10px; }
.diagram-metadata i:last-child { width: 15%; height: 14px; background: #74322e; }

.watch-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: .875rem;
}
.watch-back:hover { color: var(--ink); }
.watch-back svg { width: 16px; height: 16px; }
.watch-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 278px); gap: clamp(18px, 2.7vw, 40px); }
.player {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #050505;
}
.player video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.player-play {
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(50px, 5.8vw, 76px);
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: var(--red);
  color: var(--black);
  box-shadow: 0 3px 18px #0008;
}
.player-play:hover { background: var(--red-hover); }
.player-play svg { width: 42%; height: 42%; }

.watch-toolbar, .library-head, .library-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.watch-toolbar { align-items: start; margin: 19px 0; }
.watch h1, .page-title {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 4vw, 3.15rem);
  line-height: 1.02;
  letter-spacing: -.065em;
  overflow-wrap: anywhere;
}
.watch-info, .empty-state, .library-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow-wrap: anywhere;
}
.watch-info p { margin: 12px 0 0; color: var(--muted); white-space: pre-wrap; }
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .875rem; }
.meta span, .uploader { display: inline-flex; align-items: center; gap: 7px; }
.meta svg { width: 15px; height: 15px; }
.uploader { gap: 9px; font-size: .9375rem; font-weight: 700; }
.initials {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 3px;
  background: #3a201e;
  color: #ff817b;
  font-size: .8125rem;
  font-weight: 800;
  text-transform: uppercase;
}
.watch-rail { display: grid; gap: 12px; align-content: start; }
.creator-support, .watch-share { padding: 17px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.watch-share input {
  width: 100%;
  height: 38px;
  margin: 10px 0 8px;
  padding: 0 9px;
  border: 1px solid #514a45;
  border-radius: 3px;
  background: var(--black);
  color: var(--muted);
  font-size: .875rem;
  text-overflow: ellipsis;
}
.watch-share .button { width: 100%; }
.creator-support h2, .watch-share h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.0625rem; letter-spacing: -.035em; }
.creator-support h2 svg, .watch-share h2 svg { width: 17px; height: 17px; color: var(--red); }
.creator-support p { margin: 7px 0 15px; color: var(--muted); font-size: .875rem; }
.creator-support .button { width: 100%; }

.library-head, .admin-heading { margin-bottom: 18px; }
.admin-heading p, .empty-state p:last-child { margin: 0; }
.empty-state p { margin: 0 0 13px; color: var(--muted); }
.library-list { display: grid; gap: 8px; }
.library-item strong { display: block; margin-bottom: 3px; }
a.library-item:hover, .library-item:focus-within { border-color: #77716b; }
.library-details { display: flex; align-items: center; gap: 13px; min-width: 0; }
.mini-preview {
  display: block;
  flex: none;
  width: 100px;
  aspect-ratio: 16 / 9;
  border-radius: 3px;
  background: #262323;
  object-fit: cover;
}
.mini-placeholder, .feature-icon { display: grid; place-items: center; color: #ff817b; }
.admin-item .muted { display: block; font-size: .8125rem; }
.admin-item .meta { margin-top: 3px; }
.admin-more { margin-top: 14px; }
.muted { color: var(--muted); }
.error-status { color: #ff8a83; }

dialog {
  width: min(480px, calc(100% - 30px));
  max-height: calc(100% - 30px);
  padding: 0;
  border: 1px solid #605a54;
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 22px 56px #0009;
}
dialog::backdrop { background: #050505b5; backdrop-filter: blur(4px); }
.modal { padding: clamp(19px, 4vw, 26px); }
.modal-top { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.modal h2 { margin: 0; font-size: 1.8rem; line-height: 1.08; letter-spacing: -.055em; }
.modal p { margin: 10px 0 18px; color: var(--muted); font-size: .875rem; }
.close { width: 33px; min-height: 33px; padding: 0; }
.modal form { display: grid; gap: 13px; }
.modal label { display: grid; gap: 5px; font-size: .875rem; font-weight: 700; }
.modal label small { color: var(--muted); font-size: .8125rem; font-weight: 400; }
.modal input, .modal textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #51504c;
  border-radius: var(--radius);
  background: #101010;
  color: var(--ink);
  font-size: 1rem;
}
.modal input::placeholder, .modal textarea::placeholder { color: #9f9b95; }
.modal input[type=file] { padding: 7px; font-size: .875rem; }
.modal input::file-selector-button {
  margin-right: 8px;
  padding: 5px 8px;
  border: 0;
  border-radius: 3px;
  background: #343230;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.modal .error { margin: 0; color: #ff8a83; }
.modal .error:empty { display: none; }
.modal-submit { width: 100%; margin-top: 3px; }
.modal .account-switch { margin: 3px 0 0; text-align: center; }
.account-switch a { color: #ff817b; font-weight: 700; }
.account-switch a:hover { text-decoration: underline; }
.modal progress { width: 100%; accent-color: var(--red); }
.edit-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.thumbnail-preview { width: min(220px, 100%); aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 3px; object-fit: contain; }

#toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 5;
  max-width: calc(100% - 36px);
  padding: 11px 14px;
  border: 1px solid #6f635d;
  border-radius: var(--radius);
  background: #242322;
  color: var(--ink);
}
#toast:empty { display: none; }

@media (max-width: 900px) {
  .top { grid-template-columns: auto minmax(0, 1fr); gap: 8px 6px; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; border-top: 1px solid var(--line); padding-top: 8px; }
}
@media (max-width: 790px) {
  .watch-layout { grid-template-columns: 1fr; }
  .watch-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .welcome { gap: 23px; }
  .welcome-copy { padding-block: 20px; }
}
@media (max-width: 620px) {
  .top { min-height: 67px; padding: 9px var(--gutter); }
  .brand { font-size: 1.32rem; }
  .brand-icon { width: 31px; height: 31px; margin-right: 4px; }
  .header-actions { gap: 3px; }
  .header-actions .button { min-height: 35px; padding-inline: 8px; font-size: .75rem; }
  .header-actions svg { display: none; }
  main { padding-top: 25px; }
  .welcome { grid-template-columns: 1fr; gap: 23px; }
  .welcome-copy { padding: 8px 0 0; }
  .welcome h1 strong { font-size: clamp(3.2rem, 13.7vw, 5.5rem); }
  .welcome h1 .personal-welcome { font-size: clamp(2.8rem, 11vw, 4.75rem); }
  .welcome p { margin: 19px 0 19px; }
  .welcome-art { aspect-ratio: 1.4; }
  .workflow-steps { grid-template-columns: 1fr; }
  .workflow-steps li { padding: 15px 0; }
  .workflow-steps li + li { border-left: 0; border-top: 1px solid #aaa49c; }
  .workflow-steps li:last-child { padding-bottom: 0; }
  .watch-features { grid-template-columns: 1fr; }
  .watch-feature-copy { grid-row: 1; }
  .watch-rail { grid-template-columns: 1fr; }
  .watch-toolbar { flex-wrap: wrap; }
  .library-item { padding: 10px; }
  .library-details { gap: 8px; }
  .mini-preview { width: 61px; }
}
@keyframes arrive {
  from { opacity: .25; transform: translateY(11px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes frame-sweep {
  0% { opacity: 0; transform: translateX(-140%) skewX(-14deg); }
  22% { opacity: .7; }
  85% { opacity: .55; }
  100% { opacity: 0; transform: translateX(140%) skewX(-14deg); }
}

@keyframes mark-settle {
  from { transform: scale(.83) rotate(-7deg); }
  to { transform: scale(1) rotate(0); }
}

@keyframes dialog-arrive {
  from { opacity: .55; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: no-preference) {
  .welcome-motion .welcome-copy,
  .welcome-motion .upload-specs,
  .section-arrived { animation: arrive .59s cubic-bezier(.2,.65,.25,1) both; }
  .welcome-motion .upload-specs { animation-delay: .13s; }
  .welcome-motion .hero-mark { animation: mark-settle .72s cubic-bezier(.16,.75,.24,1) both; }
  .welcome-motion .film-window::after {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(94deg, transparent 30%, #ffd9c33f 50%, transparent 67%);
    content: '';
    animation: frame-sweep 1.3s .12s ease-out both;
  }
  dialog[open] { animation: dialog-arrive .21s ease-out both; }
  #toast:not(:empty) { animation: arrive .22s ease-out both; }
  .player-play { transition: background-color .17s ease, transform .2s cubic-bezier(.2,.65,.25,1); }
  .brand-icon { transition: transform .22s cubic-bezier(.2,.65,.25,1); }
  .site-nav a { position: relative; }
  .site-nav a::after {
    position: absolute;
    inset: auto 0 -4px;
    height: 1px;
    background: var(--red);
    content: '';
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .19s ease;
  }
  @media (hover: hover) {
    .button:hover { transform: translateY(-1px); }
    .player-play:hover { transform: scale(1.07); }
    .brand:hover .brand-icon { transform: translateY(-2px); }
    .site-nav a:hover::after { transform: scaleX(1); }
  }
  .button:active, .player-play:active { transform: scale(.98); }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}

.share-note { margin: 10px 0; color: var(--muted); font-size: .875rem; }
.watch-share .share-manage { margin-top: 7px; }
.watch-share .share-note:last-child { margin-bottom: 0; }
.guest-watch .site-nav, .guest-watch .header-actions, .guest-watch .watch-back { display: none; }
.guest-gate {
  width: min(100%, 560px);
  margin: clamp(12px, 6vw, 90px) auto;
  padding: clamp(18px, 4vw, 36px);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  background: var(--surface);
}
.guest-gate h1 { font-size: clamp(1.65rem, 4vw, 2.6rem); }
.guest-gate p { margin: 8px 0 15px; }
.guest-gate form { display: grid; gap: 10px; }
.guest-gate label { display: grid; gap: 5px; font-weight: 700; font-size: .875rem; }
.guest-gate input { min-height: 42px; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--black); padding: 8px; }
.guest-gate .error { margin: 0; color: #ff8a83; }
.guest-gate .error:empty { display: none; }

body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 20px max(var(--gutter), calc((100vw - 1370px) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .875rem;
}
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.site-footer a:hover, .site-footer a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.help-heading { margin-bottom: 22px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.help-heading .page-title { margin: 0; }
.help-layout { display: grid; grid-template-columns: 185px minmax(0, 720px); gap: clamp(18px, 5vw, 74px); align-items: start; }
.help-nav { display: grid; gap: 5px; }
.help-nav a { padding: 9px 11px; border: 1px solid transparent; border-radius: var(--radius); color: var(--muted); font-size: .9375rem; font-weight: 700; }
.help-nav a:hover { color: var(--ink); border-color: var(--line); }
.help-nav a[aria-current="page"] { color: var(--ink); border-color: var(--line); border-left: 3px solid var(--red); background: var(--surface); }
.help-content { color: var(--muted); }
.help-content .help-lead { margin: 0 0 20px; color: var(--ink); font-size: 1.125rem; }
.help-content section { padding: 18px 0 22px; border-top: 1px solid var(--line); }
.help-content h2, .support-ticket h2 { margin: 0 0 6px; color: var(--ink); font-size: 1.24rem; letter-spacing: -.025em; }
.help-content p { margin: 5px 0 12px; }
.help-text-link { color: #ff827a; text-decoration: underline; text-underline-offset: 4px; }
.help-details { padding: 12px 0; border-top: 1px solid var(--line); }
.help-details summary { color: var(--ink); cursor: pointer; font-weight: 700; }
.help-details summary:focus-visible, .support-form select:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.help-details p { margin-bottom: 0; }
.support-form { display: grid; gap: 12px; max-width: 580px; margin-top: 15px; }
.support-form label { display: grid; gap: 5px; color: var(--ink); font-size: .875rem; font-weight: 700; }
.support-form label small { color: var(--muted); font-size: .8125rem; font-weight: 400; }
.support-form input, .support-form textarea, .support-form select {
  width: 100%;
  min-height: 43px;
  padding: 8px 10px;
  border: 1px solid #514a45;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}
.support-form .error { margin: 0; color: #ff8a83; }
.support-form .error:empty { display: none; }
.support-form .button { justify-self: start; width: auto; }
.support-receipt { max-width: 580px; padding: 14px; border: 1px solid var(--line); border-left: 3px solid var(--red); background: var(--surface); color: var(--ink); }

.support-ticket { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow-wrap: anywhere; }
.support-ticket header { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.support-ticket header p { margin: 0; font-size: .875rem; }
.support-message { white-space: pre-wrap; margin-bottom: 0; }

@media (max-width: 620px) {
  .help-layout { grid-template-columns: 1fr; }
  .help-nav { display: flex; flex-wrap: wrap; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

.modal .upload-status { margin: 0; }
.modal .upload-status:empty { display: none; }
