/* Shared template body for catalog pages and single-effect sites. */
.template-page {
  --display: var(--font);
  overflow-wrap: anywhere;
}
.template-page h1,
.template-page h2 {
  font-weight: 650;
  letter-spacing: -0.035em;
}
.template-page .tpl-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 48px;
  padding-block: 32px 64px;
}
.tpl-hero-primary,
.tpl-hero-secondary {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  align-content: start;
  gap: 28px;
}
.template-page .tpl-hero-solo {
  grid-template-columns: minmax(0, 760px);
}
.tpl-hero-copy {
  grid-area: auto;
  min-width: 0;
}
@media (min-width: 761px) {
  .tpl-creator {
    position: sticky;
    top: 24px;
    align-self: start;
  }
}
.tpl-hero-copy h1 {
  font-size: clamp(38px, 4.5vw, 58px);
  line-height: 1.08;
}
.tpl-hero-media {
  --hero-media-height: 300px;
  min-width: 0;
}
/* Portrait results use the free space beside them for the reference cast.
   Landscape results keep their reference strip above the wide frame. */
.tpl-hero-media[data-layout="portrait"] {
  --hero-media-height: 360px;
  display: grid;
  grid-template-columns: minmax(0, 120px) minmax(0, 210px);
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.tpl-hero-media[data-layout="portrait"] .tpl-example-inputs {
  grid-auto-flow: row;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 0;
}
.tpl-hero-media[data-layout="portrait"] .tpl-example-heading {
  font-size: 12px;
  text-align: center;
}
.tpl-hero-media[data-layout="portrait"] .tpl-example-input img,
.tpl-hero-media[data-layout="portrait"] .tpl-photo-placeholder {
  max-width: 90px;
}
.tpl-hero-media[data-layout="portrait"] .tpl-example-input figcaption {
  margin-top: 6px;
}
.tpl-hero-media[data-layout="portrait"] .tpl-media-hero .scene-enlarge {
  inset-inline: 8px;
  justify-content: center;
  gap: 8px;
}
.tpl-creator {
  min-width: 0;
}
.tpl-hero-context {
  grid-column: 1 / -1;
  min-width: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.tpl-hero-context h2 {
  margin-block: 11px 16px;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.4px;
}
.tpl-context-lead {
  max-width: 860px;
  color: #bfccd5;
  font-size: 15px;
  line-height: 1.8;
  white-space: pre-line;
}
.tpl-context-answer {
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 18px;
  color: var(--text);
}
.tpl-cast-overview {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.tpl-cast-overview ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
}
.tpl-cast-overview li {
  font-size: 13px;
}
.tpl-cast-overview li > span {
  color: var(--muted);
  font-size: 10px;
  margin-inline-end: 9px;
}
.tpl-context-spec {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  margin-top: 18px;
}
.tpl-hero-context > .inline-link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  margin-top: 5px;
  font-size: 12px;
  color: var(--accent);
}
.tpl-media {
  min-width: 0;
  margin: 0;
}
.tpl-media-poster {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #101d28;
  border: 1px solid #2a3c4b;
  min-height: 0;
}
.tpl-media-poster > img {
  width: 100%;
  height: 100%;
  max-height: 650px;
  object-fit: contain;
}
.tpl-media-hero .tpl-media-poster {
  width: fit-content;
  max-width: 100%;
  min-height: 0;
  margin-inline: auto;
}
.tpl-media-hero .tpl-media-poster > img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: var(--hero-media-height);
  min-height: 0;
  object-fit: contain;
}
.tpl-media-poster[data-aspect-ratio] {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: var(--sample-ratio);
}
.tpl-media-poster[data-aspect-ratio] > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: contain;
}
.tpl-media-hero .tpl-media-poster[data-aspect-ratio] {
  max-width: min(100%, calc(var(--hero-media-height) * var(--sample-ratio)));
}
.tpl-media figcaption {
  padding-block: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.tpl-media h3 {
  font-size: 17px;
  color: var(--text);
  font-weight: 500;
  margin: 4px 0;
}
.tpl-media-poster .scene-enlarge {
  right: 12px;
  bottom: 12px;
}
.tpl-example-inputs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.tpl-example-heading {
  margin: 0 0 14px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}
.tpl-photo-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 112px;
  aspect-ratio: 1;
  border: 1px dashed #425768;
  border-radius: 6px;
  background: #101d28;
  color: #8ea5b7;
}
.tpl-photo-placeholder svg {
  width: 46px;
  stroke: currentColor;
  stroke-width: 1.5;
}
.tpl-photo-placeholder > span {
  position: absolute;
  top: 6px;
  left: 8px;
  font-size: 10px;
}
.tpl-video-placeholder {
  margin: 0;
  text-align: center;
}
.tpl-video-placeholder-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  max-width: min(100%, calc(var(--hero-media-height) * var(--sample-ratio)));
  aspect-ratio: var(--sample-ratio);
  margin-inline: auto;
  border: 1px dashed #425768;
  border-radius: 10px;
  background: #101d28;
  color: #9eb4c6;
  font-size: 12px;
}
.tpl-video-placeholder-frame strong {
  color: #c8d7e2;
  font-size: 16px;
  font-weight: 500;
}
.tpl-placeholder-play {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid #425768;
  border-radius: 50%;
  font-size: 28px;
}
.tpl-video-placeholder figcaption {
  padding-block: 12px;
  font-size: 12px;
  color: var(--muted);
}
.tpl-story-illustration {
  max-width: 790px;
  margin-top: 28px;
}
.tpl-example-input {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.tpl-example-input img {
  width: 100%;
  max-width: 112px;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid var(--line);
}
.tpl-copy {
  max-width: 790px;
  color: #c4d0da;
  font-size: 17px;
  line-height: 1.8;
  white-space: pre-line;
}
.tpl-copy p + p {
  margin-top: 18px;
}
.tpl-section h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.7px;
}
.tpl-example-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 32px;
}
.tpl-example-grid .tpl-media-poster {
  height: auto;
}
.tpl-example-grid .tpl-media-poster img {
  object-fit: contain;
  height: auto;
  max-height: 560px;
}
.tpl-example-grid .tpl-media-poster[data-aspect-ratio] > img {
  height: 100%;
  max-height: none;
}
.tpl-example-grid .tpl-media-poster[data-aspect-ratio] {
  max-width: min(100%, calc(560px * var(--sample-ratio)));
  margin-inline: auto;
}
.tpl-style-previews {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.tpl-style-preview {
  display: flex;
  gap: 14px;
  padding-top: 16px;
  scroll-margin-top: 20px;
}
.tpl-style-preview > img {
  width: 68px;
  height: 85px;
  object-fit: cover;
  border-radius: 4px;
  flex: none;
}
.tpl-style-preview strong {
  font-size: 13px;
}
.tpl-style-preview p {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}
.tpl-style-preview .text-button {
  font-size: 12px;
  color: var(--accent);
}
.tpl-shots {
  margin-top: 32px;
  max-width: 790px;
}
.tpl-shots h3 {
  font-size: 20px;
}
.tpl-shots ol {
  padding: 0;
  margin: 15px 0;
  list-style: none;
}
.tpl-shots li {
  display: grid;
  grid-template-columns: 135px 1fr;
  align-items: start;
  gap: 22px;
  border-top: 1px solid var(--line);
  padding-block: 15px;
}
.tpl-shots .text-button {
  color: var(--accent);
  display: flex;
  gap: 12px;
  padding: 0;
  min-height: 44px;
}
.tpl-shots p {
  font-size: 14px;
  color: var(--muted);
  padding-top: 9px;
}
.tpl-role-guide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}
.tpl-role-guide article {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.tpl-role-guide img {
  height: 180px;
  width: 100%;
  object-fit: contain;
  object-position: left;
  margin-bottom: 18px;
}
.tpl-role-guide h3 {
  font-size: 18px;
  margin-bottom: 4px;
}
.tpl-role-guide p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.75;
}
.tpl-sources {
  list-style: none;
  padding: 0;
  margin: 25px 0 0;
}
.tpl-sources li {
  border-top: 1px solid var(--line);
  padding-block: 15px;
}
.tpl-sources a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 14px;
}
.tpl-sources span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 7px;
}
.tpl-output-spec {
  font-size: 15px;
  color: var(--muted);
  white-space: pre-line;
}
.tpl-quality-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.tpl-quality-list > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px 22px;
}
.tpl-quality-list dt {
  font-weight: 600;
  font-size: 16px;
}
.tpl-quality-list dt span {
  display: block;
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
}
.tpl-quality-list dd {
  margin: 0;
  font-size: 12px;
  text-align: end;
}
.tpl-quality-list strong {
  font-size: 30px;
  color: var(--accent);
}
.tpl-packs {
  margin-top: 28px;
}
.tpl-packs .pricing-grid {
  margin-top: 0;
  padding-top: 0;
  gap: 16px;
}
.tpl-packs .price-card {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  padding: 24px;
}
.tpl-packs .price-card h3 {
  font-size: 16px;
  font-weight: 500;
}
.tpl-packs .price {
  margin-block: 20px 12px;
  font-size: 56px;
}
.tpl-packs .pack-credits {
  margin-bottom: 0;
}
.tpl-packs .price-card ul {
  flex: 1;
  margin-block: 22px;
  padding-top: 16px;
}
.tpl-packs .price-card .button {
  min-height: 48px;
  border-color: #506170;
  color: var(--accent);
}
.tpl-packs .price-card .button:hover:not(:disabled) {
  border-color: var(--accent);
  background: #203b4a;
}
.tpl-packs .price-card .button:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}
.template-page .creator-permission {
  margin-top: 18px;
}
.template-page .creator-permission .consent {
  align-items: center;
  padding-bottom: 0;
  min-height: 44px;
}
.template-page .creator-permission .consent input {
  flex: none;
  margin-top: 0;
}
.template-page .photo-rights-help {
  margin: 0 0 0 26px;
  font-size: 11px;
  line-height: 1.6;
  color: #b8c6d0;
}
.template-page .photo-rights-help a {
  text-decoration: underline;
}
.tpl-price-note {
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
}
.tpl-reading-list {
  display: grid;
  gap: 25px;
}
.tpl-reading-list article {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  max-width: 790px;
}
.tpl-reading-list h3 {
  font-size: 21px;
}
.tpl-reading-list a {
  color: var(--accent);
}
.tpl-reading-list p {
  font-size: 14px;
  margin-top: 8px;
  color: var(--muted);
}
.tpl-closing h2 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.12;
}
.tpl-closing .button {
  margin-top: 24px;
}
.tpl-footer {
  grid-template-columns: 1.5fr 1fr 1fr;
}
.template-page .preview-notice:after {
  display: none;
}
.template-page .hero-jump {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--accent);
}
.template-page .hero-jump > span {
  font-size: 12px;
  color: var(--muted);
}
.template-page .steps-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.template-page .faq-list {
  max-width: 840px;
}
.template-page .faq-list details p {
  max-width: none;
  white-space: pre-line;
}
@media (max-width: 1050px) and (min-width: 761px) {
  .template-page .tpl-hero {
    gap: 25px 32px;
  }
  .tpl-hero-copy h1 {
    font-size: 42px;
  }
  .template-page .desktop-nav {
    gap: 14px;
  }
  .template-page .header-actions {
    gap: 12px;
  }
  .template-page .site-header {
    gap: 20px;
  }
  .template-page .brand {
    font-size: 22px;
  }
  .tpl-media-poster > img {
    max-height: 570px;
  }
}
@media (max-width: 760px) {
  .template-page .tpl-hero,
  .template-page .tpl-hero-no-media {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "media" "creator" "context";
    gap: 22px;
    padding-block: 16px 38px;
  }
  .template-page .tpl-hero-no-media {
    grid-template-areas: "copy" "creator" "context";
  }
  .template-page .tpl-hero-solo {
    grid-template-areas: "copy" "creator";
  }
  .tpl-hero-primary,
  .tpl-hero-secondary {
    display: contents;
  }
  .tpl-hero-copy {
    grid-area: copy;
  }
  .tpl-hero-media {
    grid-area: media;
  }
  .tpl-creator {
    grid-area: creator;
  }
  .tpl-hero-context {
    grid-area: context;
  }
  .tpl-hero-context h2 {
    font-size: 26px;
  }
  .tpl-context-lead {
    font-size: 14px;
  }
  .tpl-hero-media {
    --hero-media-height: 260px;
    padding: 0;
  }
  .tpl-hero-media[data-layout="portrait"] {
    --hero-media-height: 340px;
    grid-template-columns: minmax(0, 112px) minmax(0, 192px);
    gap: 16px;
  }
  .tpl-hero-media[data-layout="portrait"][data-input-count="3"]
    .tpl-example-input
    img,
  .tpl-hero-media[data-layout="portrait"][data-input-count="3"]
    .tpl-photo-placeholder {
    max-width: 72px;
  }
  .tpl-hero-copy h1 {
    font-size: clamp(32px, 9.5vw, 46px);
  }
  .tpl-media-poster > img {
    max-height: 330px;
    min-height: 190px;
  }
  .tpl-media-hero .tpl-media-poster > img {
    max-height: var(--hero-media-height);
    min-height: 0;
  }
  .tpl-media-hero .tpl-media-poster[data-aspect-ratio] {
    max-width: min(100%, calc(var(--hero-media-height) * var(--sample-ratio)));
  }
  .tpl-media-hero .tpl-media-poster[data-aspect-ratio] > img {
    max-height: none;
  }
  .tpl-media-hero figcaption {
    padding-block: 10px;
    font-size: 11px;
  }
  .tpl-media-hero h3 {
    font-size: 15px;
  }
  .tpl-example-input {
    font-size: 11px;
  }
  .tpl-example-input img {
    max-width: 92px;
  }
  .tpl-copy {
    font-size: 15px;
    line-height: 1.8;
  }
  .tpl-section h2 {
    font-size: 28px;
  }
  .tpl-example-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    margin-top: 24px;
  }
  .tpl-example-grid .tpl-media-poster {
    height: auto;
  }
  .tpl-example-grid .tpl-media-poster img {
    max-height: 350px;
  }
  .tpl-shots li {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 15px;
  }
  .tpl-shots p {
    font-size: 13px;
  }
  .tpl-role-guide {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 24px;
  }
  .tpl-role-guide img {
    height: 150px;
  }
  .tpl-quality-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .tpl-packs > summary > span {
    display: block;
    margin: 4px 0 0;
  }
  .tpl-reading-list h3 {
    font-size: 19px;
  }
  .tpl-footer {
    grid-template-columns: 1fr 1fr;
  }
  .tpl-footer > div:first-child {
    grid-column: 1/-1;
  }
  .template-page .site-header .header-actions > .text-button {
    display: none;
  }
  .template-page .header-actions {
    gap: 10px;
  }
  .template-page .brand {
    font-size: 23px;
  }
  .template-page .steps-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .template-page .tpl-hero-copy .hero-description {
    max-width: none;
  }
  .template-page .hero-jump > span {
    font-size: 11px;
  }
  .template-page .hero-jump {
    min-height: 48px;
    padding: 10px 16px;
    border: 1px solid #506170;
    border-radius: 6px;
    background: var(--surface);
  }
  .tpl-creator {
    padding: 17px;
  }
  .template-page .preview-notice {
    font-size: 8px;
    min-height: 28px;
  }
}

/* Shared role inputs from the live and unsaved-preview creator. */
.template-page .role-upload-grid {
  align-items: stretch;
  gap: 0 16px;
}
.template-page .role-upload-grid > .upload-slot {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  padding: 14px;
  border: 1px solid #354a59;
  border-radius: 8px;
  background: #101a24;
}
@supports (grid-template-rows: subgrid) {
  .template-page .role-upload-grid > .upload-slot {
    grid-row: span 3;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
}
.template-page .role-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  margin-bottom: 12px;
  text-align: start;
}
.template-page .role-heading strong {
  font-size: 15px;
  line-height: 1.5;
}
.template-page .role-number {
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.template-page .role-heading .micro {
  font-size: 9px;
  letter-spacing: 0.6px;
}
.template-page .role-upload-grid .upload-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 100px;
  height: 100%;
  padding: 14px 10px;
  text-align: start;
}
.template-page .role-upload-grid .upload-icon {
  flex: none;
  width: 30px;
  height: 40px;
  font-size: 24px;
}
.template-page .role-upload-grid .upload-preview {
  flex: none;
  width: 56px;
  height: 76px;
  object-fit: contain;
}
.template-page .upload-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.template-page .upload-copy > span {
  font-size: 12px;
  color: var(--accent);
}
.template-page .role-upload-meta .error:empty {
  display: none;
}
.template-page .upload-format {
  margin: 10px 0 4px;
}
.template-page .role-upload-meta > .text-button {
  min-height: 44px;
}
.template-page .role-upload-grid .upload-action:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.template-page .style-preview-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
  font-size: 12px;
}
@media (max-width: 760px) {
  .template-page .role-upload-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 10px;
  }
  .template-page .role-upload-grid > .upload-slot {
    padding: 12px;
  }
  .template-page .role-upload-grid > .upload-slot:only-child {
    grid-column: 1 / -1;
  }
  .template-page .role-upload-grid .role-heading strong {
    font-size: 13px;
  }
  .template-page .role-upload-grid .upload-action {
    flex-direction: column;
    min-height: 96px;
    gap: 6px;
    padding: 10px 4px;
    text-align: center;
  }
}

/* Three characters stay side by side, matching their positions in the video. */
.template-page .role-upload-grid:has(> .upload-slot:nth-child(3)) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 8px;
}
.template-page
  .role-upload-grid:has(> .upload-slot:nth-child(3))
  > .upload-slot {
  padding: 10px 8px;
}
.template-page
  .role-upload-grid:has(> .upload-slot:nth-child(3))
  .role-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.template-page
  .role-upload-grid:has(> .upload-slot:nth-child(3))
  .role-heading
  strong {
  font-size: 13px;
  line-height: 1.4;
}
.template-page
  .role-upload-grid:has(> .upload-slot:nth-child(3))
  .upload-action {
  flex-direction: column;
  padding: 10px 4px;
  gap: 6px;
  text-align: center;
}
.template-page .role-upload-grid:has(> .upload-slot:nth-child(3)) .text-button {
  font-size: 11px;
  padding-inline: 0;
}
@supports (grid-template-rows: subgrid) {
  .template-page
    .role-upload-grid:has(> .upload-slot:nth-child(3))
    > .upload-slot {
    grid-row: span 3;
    grid-template-rows: subgrid;
  }
}
.template-page .quality-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.template-page .quality-choices .choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  border: 1px solid #506170;
  border-radius: 6px;
  padding: 13px;
  text-align: start;
}
.template-page .quality-choices .choice strong {
  font-size: 17px;
}
.template-page .quality-choices .choice small {
  font-size: 11px;
  font-weight: 400;
  margin-inline-start: 4px;
  color: var(--muted);
}
.template-page .quality-choices .choice.selected {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  background: #203b4a;
}
.template-page .quality-choices .choice:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@media (max-width: 480px) {
  .template-page
    .role-upload-grid:has(> .upload-slot:nth-child(3))
    .role-heading
    strong {
    min-height: 2.8em;
  }
}

/* Auth stays in the creator and uses the same quiet, readable type. */
.creator-auth-modal {
  --foreground: #eef2f4;
  --card: #101924;
  --card-foreground: #eef2f4;
  --popover: #101924;
  --popover-foreground: #eef2f4;
  --muted-foreground: #aab9c8;
  --primary: #99d9ee;
  --primary-foreground: #10212d;
  --border: #364554;
  --input: #364554;
  --ring: #99d9ee;
  --secondary: #1d2b39;
  --secondary-foreground: #eef2f4;
  --accent: #1d2b39;
  --accent-foreground: #eef2f4;
  color-scheme: dark;
  padding: 28px;
  max-width: min(440px, calc(100% - 32px));
  font-family: var(--font);
}
.creator-auth-modal [data-slot="dialog-title"] {
  padding-right: 24px;
  font: 650 26px/1.2 var(--font);
  letter-spacing: -0.035em;
}
.creator-auth-modal [data-slot="dialog-description"] {
  line-height: 1.6;
}
.auth-form-embedded [data-slot="card"],
.auth-form-embedded [data-slot="card-content"] {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}
.auth-form-embedded input {
  min-height: 44px;
  font-size: 16px;
}
.auth-form-embedded button {
  min-height: 44px;
}
.auth-form-embedded button[type="submit"] {
  color: var(--primary-foreground);
  font-weight: 600;
}
.auth-form-embedded a {
  color: #99d9ee;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-form-embedded [data-slot="field-group"] {
  gap: 20px;
}
@media (max-width: 400px) {
  .creator-auth-modal {
    padding: 24px 20px;
  }
}
