:root {
  color-scheme: dark;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  color: #f0f1ec;
  background: #0b0c0d;
  --bg: #0b0c0d;
  --panel: #131516;
  --muted: #8b8f91;
  --line: #292c2d;
  --accent: #dfff67;
  --radius: 16px;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 105px; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a, label[for] { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: not-allowed; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
button, a { touch-action: manipulation; }
[hidden] { display: none !important; }
svg { flex-shrink: 0; vertical-align: middle; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
.container { max-width: 1240px; width: calc(100% - 96px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 99; top: -100px; left: 20px; padding: 12px 20px; background: var(--accent); color: #141811; }
.skip-link:focus { top: 10px; }
.site-header { height: 84px; border-bottom: 1px solid #ffffff0b; background: #0b0c0df5; position: sticky; top: 0; z-index: 20; backdrop-filter: blur(18px); }
.header-inner { display: flex; height: 100%; align-items: center; justify-content: space-between; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 23px; font-weight: 750; letter-spacing: -1.1px; white-space: nowrap; }
.logo-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--accent); color: #10120c; transform: rotate(-8deg); }
.logo-mark svg { stroke-width: 2.3; transform: rotate(8deg); }
.logo-light { font-weight: 400; }
.logo-dot { color: var(--accent); }
.main-nav { display: flex; gap: 32px; font-size: 12px; color: #9ea2a2; }
.main-nav a { padding: 10px 0; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--accent); }
.library-link { border: 1px solid #353939; border-radius: 8px; padding: 11px 15px; font-size: 12px; display: flex; align-items: center; gap: 9px; }
.library-link:hover, .library-link[aria-current] { border-color: #748039; color: var(--accent); }
.draft-count { background: var(--accent); color: #13150e; border-radius: 4px; padding: 1px 5px; font-size: 10px; }
.eyebrow { font-size: 10px; font-weight: 650; letter-spacing: 1.8px; color: #a4a9a3; display: inline-flex; gap: 11px; align-items: center; }
.tiny-line { width: 23px; height: 1px; background: var(--accent); }
.home-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; padding-block: 79px 91px; align-items: center; }
.hero-copy { padding-block: 6px 10px; }
.hero-copy h1 { font-size: clamp(58px, 5.9vw, 80px); font-weight: 800; line-height: 1.04; letter-spacing: -4.8px; margin-block: 27px 25px; }
.hero-copy h1 em { font-style: normal; color: var(--accent); }
.hero-description { color: #999e9d; font-size: 15px; line-height: 1.85; max-width: 430px; }
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 29px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 11px; border: 1px solid transparent; padding: 14px 20px; border-radius: 8px; font-size: 12px; font-weight: 650; line-height: 1.4; text-align: center; }
.button-primary { background: var(--accent); color: #18200b; }
.button-primary:hover { background: #edff9d; }
.button-primary:disabled { opacity: .5; }
.button-quiet { background: #1d2021; border-color: #343738; color: #e4e8df; }
.button-quiet:hover { border-color: #7a8650; }
.button-disabled { background: #1b1e1e; border-color: #2a2f2d; color: #686f69; }
.button-danger { background: #a04d51; color: #fff; }
.subtle-link { display: inline-flex; align-items: center; gap: 10px; color: #b6bcb6; font-size: 12px; }
.subtle-link:hover { color: var(--accent); }
.hero-footnote { display: flex; gap: 19px; margin-top: 26px; color: #818780; font-size: 10px; flex-wrap: wrap; }
.hero-footnote > span { display: flex; align-items: center; gap: 6px; }
.hero-preview { border-left: 1px solid #393c34; padding-left: 15px; }
.hero-art { position: relative; min-height: 390px; margin-right: 8px; }
.hero-poster { display: block; border-radius: 15px; border: 5px solid #262b24; background: #262b24; overflow: hidden; position: absolute; box-shadow: 0 16px 40px #0006; }
.hero-poster img { height: 100%; width: 100%; object-fit: cover; }
.hero-poster::after { content: ''; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent,#070a07bc); pointer-events: none; }
.hero-poster-main { right: 0; top: 5px; width: 82%; height: 355px; transform: rotate(5deg); }
.hero-poster-main img { object-position: 55% 50%; }
.hero-poster-small { left: 0; bottom: -4px; width: 39%; height: 243px; transform: rotate(-8deg); border-width: 4px; }
.hero-poster-small img { object-position: 48% 50%; }
.poster-badge { position: absolute; top: 15px; right: 15px; background: #161e16ab; border: 1px solid #ffffff36; color: #fff; border-radius: 4px; font-size: 8px; letter-spacing: 1.4px; padding: 7px 9px; }
.poster-caption { position: absolute; inset: auto 18px 21px; z-index: 1; display: flex; justify-content: space-between; align-items: center; color: #fff9f0; font-size: 23px; font-weight: 650; letter-spacing: -.8px; }
.poster-caption small { display: block; font-size: 8px; letter-spacing: 1.4px; margin-bottom: 8px; font-weight: 500; color: #e8ddc6; }
.hero-poster-small .poster-caption { font-size: 18px; inset-inline: 12px; bottom: 16px; }
.hero-poster-small .poster-caption small { font-size: 6px; }
.round-arrow { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #ffffff70; border-radius: 50%; flex-shrink: 0; }
.hero-art-note { position: absolute; bottom: -36px; right: 5px; font-size: 8px; letter-spacing: .4px; color: #6c746d; }
.hero-spark { position: absolute; top: -27px; left: 41px; font-size: 71px; color: var(--accent); transform: rotate(-12deg); }
.process-ribbon { background: #121611; border-block: 1px solid #2d3427; }
.process-ribbon .container { display: flex; align-items: center; justify-content: space-between; padding-block: 22px; gap: 10px; }
.process-ribbon span:not(.ribbon-cross) { display: flex; align-items: center; gap: 16px; font-size: 10px; letter-spacing: 1.7px; color: #c1c8b6; }
.process-ribbon b { color: var(--accent); font-family: monospace; font-size: 10px; font-weight: 400; }
.process-ribbon .ribbon-cross { font-size: 17px; color: #536044; }
.section { padding-block: 70px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin-bottom: 30px; }
.section-heading h2, .faq-heading h2, .template-about h2, .photo-guide h2 { font-size: 36px; font-weight: 650; letter-spacing: -1.5px; line-height: 1.18; margin: 12px 0 11px; }
.section-heading p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.8; }
.accent-dot { color: var(--accent); }
.collection-count { font-family: monospace; color: #687263; font-size: 10px; letter-spacing: .5px; margin-bottom: 4px; }
.collection-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.filters { display: flex; gap: 7px; flex-wrap: wrap; }
.filters button { background: transparent; border: 1px solid #303432; border-radius: 7px; padding: 9px 14px; color: #a7ada7; font-size: 11px; display: flex; align-items: center; gap: 7px; }
.filters button[aria-pressed=true] { background: #dfff6712; color: var(--accent); border-color: #6c7b39; }
.filters button > span { font-size: 9px; border-radius: 3px; background: #ffffff0d; padding: 2px 5px; }
#filter-count { font-size: 10px; color: #747d74; }
.template-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.template-card { border: 1px solid #2a2f2a; border-radius: 12px; overflow: hidden; background: #121513; }
.template-image { display: block; aspect-ratio: 1.85; overflow: hidden; position: relative; }
.template-image > img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.template-card:hover .template-image > img { transform: scale(1.035); }
.template-image::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent,#050d069c); pointer-events: none; }
.image-topline { position: absolute; top: 15px; left: 16px; right: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 5px; font-size: 8px; letter-spacing: 1px; padding: 6px 8px; }
.badge-glass { background: #151c16a3; border: 1px solid #ffffff36; backdrop-filter: blur(10px); color: #f2f3e9; }
.art-label { font-size: 9px; color: #e3e8dd; background: #11160f80; border-radius: 4px; padding: 5px 7px; }
.image-bottomline { position: absolute; left: 20px; right: 20px; bottom: 17px; display: flex; justify-content: space-between; align-items: center; color: #e1e6db; font-size: 11px; z-index: 1; }
.template-body { padding: 22px 23px 0; }
.template-title-line { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.template-title-line h3 { font-size: 24px; letter-spacing: -.6px; font-weight: 600; margin: 0; }
.template-title-line > span { color: #959f92; font-size: 10px; }
.template-body > p { color: #85907f; font-size: 12px; line-height: 1.8; margin: 11px 0 22px; }
.card-cta { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #2b3327; padding-block: 16px; font-size: 11px; color: var(--accent); }
.how-section { border-top: 1px solid var(--line); }
.section-aside { text-align: right; }
.steps-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 40px; }
.steps-grid article { padding-top: 25px; border-top: 1px solid #31372d; }
.step-top { display: flex; align-items: center; justify-content: space-between; color: var(--accent); margin-bottom: 30px; }
.step-top span { font-family: monospace; font-size: 11px; color: #7f8c6c; }
.steps-grid h3 { font-size: 18px; letter-spacing: -.4px; font-weight: 500; margin-bottom: 13px; }
.steps-grid p { color: #87917f; font-size: 12px; line-height: 1.9; max-width: 300px; margin-bottom: 0; }
.editorial-callout { position: relative; padding: 43px 45px; border-radius: 13px; background: #182014; border: 1px solid #36432b; overflow: hidden; }
.editorial-callout .eyebrow { color: #93a279; }
.editorial-callout h2 { font-size: 40px; letter-spacing: -1.4px; font-weight: 550; line-height: 1.22; margin: 21px 0 28px; position: relative; z-index: 1; }
.editorial-callout h2 span { color: #9eae89; }
.callout-spark { position: absolute; font-size: 230px; color: #dfff67; right: 90px; top: 40px; line-height: 1; transform: rotate(-15deg); }
.faq-section { display: grid; grid-template-columns: .9fr 1.3fr; gap: 70px; }
.faq-heading p { color: var(--muted); font-size: 12px; line-height: 1.9; margin-top: 20px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; gap: 16px; padding: 23px 2px; list-style: none; cursor: pointer; font-size: 13px; line-height: 1.5; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary > svg { margin-left: auto; color: #8d9685; }
.faq-list details[open] summary > svg { transform: rotate(45deg); }
.question-number { color: #5d6852; font-family: monospace; font-size: 9px; }
.faq-list details > p { color: #929d8b; font-size: 12px; line-height: 1.9; padding: 0 35px 22px; margin: 0; }
.site-footer { border-top: 1px solid var(--line); background: #0a0c0b; }
.footer-top { display: flex; justify-content: space-between; align-items: center; padding-block: 38px; gap: 20px; }
.footer-top p { color: #6f7868; font-size: 11px; margin: 14px 0 0; }
.footer-links { display: flex; gap: 30px; font-size: 11px; color: #9ba491; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #22291e; padding-block: 21px; gap: 20px; font-size: 9px; color: #65705b; }
.preview-label { display: inline-flex; align-items: center; gap: 6px; }
.preview-label i, .generator-status i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.breadcrumb { display: flex; gap: 12px; margin-top: 28px; color: #65705e; font-size: 10px; }
.breadcrumb > span:last-child { color: #b3bda9; }
.breadcrumb a:hover { color: var(--accent); }
.template-hero { padding-block: 38px 37px; display: flex; justify-content: space-between; align-items: end; gap: 45px; }
.template-intro { max-width: 650px; }
.template-intro h1 { margin: 17px 0 20px; font-size: 52px; letter-spacing: -2.1px; font-weight: 700; line-height: 1.1; }
.template-intro h1 > span { color: #a9b49d; font-size: 32px; font-weight: 450; letter-spacing: -1px; }
.template-intro > p { color: #8c9784; font-size: 13px; max-width: 540px; line-height: 1.9; margin-bottom: 20px; }
.template-facts { display: flex; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.template-facts span { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; color: #b0baa4; }
.template-facts svg { color: #748262; }
.template-intro > .subtle-link { font-size: 10px; }
.template-quote { padding-right: 5px; padding-bottom: 8px; position: relative; flex-shrink: 0; }
.template-quote > span:not(.quote-star) { display: block; font-size: 26px; line-height: 1.35; font-weight: 450; letter-spacing: -.8px; color: #88967a; }
.template-quote > span:nth-child(2) { color: var(--accent); }
.quote-star { display: block; margin-top: 13px; text-align: right; font-size: 40px; color: var(--accent); }
.studio { display: grid; grid-template-columns: 1.08fr 1fr; gap: 25px; align-items: start; }
.scene-panel, .generator-panel { border: 1px solid #2d3527; border-radius: 12px; background: #121610; overflow: hidden; }
.panel-overline { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: monospace; font-size: 9px; color: #8c997b; letter-spacing: .6px; padding: 18px 22px; border-bottom: 1px solid #2a3323; }
.panel-overline .art-label { font-family: Arial,sans-serif; font-size: 8px; font-weight: 400; color: #9daa8c; padding: 0; background: none; letter-spacing: 0; }
.scene-image { position: relative; aspect-ratio: 1.12; }
.scene-image > img { width: 100%; height: 100%; object-fit: cover; }
.scene-image::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent,#070b06e6); }
.scene-overlay { position: absolute; bottom: 28px; left: 28px; right: 28px; z-index: 1; }
.scene-overlay h2 { font-size: 37px; letter-spacing: -1.2px; margin: 14px 0 3px; font-weight: 650; }
.scene-overlay p { font-size: 12px; color: #d5dbc7; margin: 0; }
.scene-disclosure { display: flex; align-items: start; gap: 9px; font-size: 10px; line-height: 1.7; padding: 16px 21px; color: #7b8b6b; }
.scene-disclosure > svg { margin-top: 2px; }
.source-link { display: flex; justify-content: space-between; align-items: center; margin: 0 22px 18px; padding-top: 13px; border-top: 1px solid #2a3421; color: #a6b78e; font-size: 10px; line-height: 1.5; gap: 12px; }
.generator-panel { padding-bottom: 19px; }
.generator-heading { padding: 23px 23px 0; }
.generator-heading h2 { font-size: 22px; letter-spacing: -.6px; font-weight: 550; margin-bottom: 8px; }
.generator-heading p { font-size: 11px; color: #879675; margin-bottom: 22px; line-height: 1.7; }
.portrait-grid { padding-inline: 23px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.single-portrait { grid-template-columns: minmax(0,1fr); }
.slot-heading { display: flex; align-items: center; gap: 7px; font-size: 10px; color: #b5c0a5; margin-bottom: 10px; }
.slot-heading > span { font-family: monospace; color: #63744f; font-size: 8px; }
.drop-zone { position: relative; border: 1px dashed #465738; border-radius: 8px; overflow: hidden; background: #192014; height: 202px; }
.single-portrait .drop-zone { height: 214px; }
.drop-zone.drag-over { background: #dfff671b; border-color: var(--accent); box-shadow: 0 0 0 2px #dfff6733; }
.drop-zone:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.upload-target { position: absolute; inset: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.upload-empty { display: flex; align-items: center; flex-direction: column; gap: 8px; }
.upload-plus { width: 43px; height: 43px; border-radius: 50%; background: #2c3a21; color: #bece9c; display: grid; place-items: center; margin-bottom: 7px; }
.upload-empty strong { font-size: 11px; font-weight: 500; color: #c4cfb4; }
.upload-empty > span:last-child { font-size: 9px; color: #6c7d58; }
.portrait-preview { width: 100%; height: 100%; object-fit: contain; background: #0b1008; }
.replace-hint { display: none; position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); padding: 7px 10px; border-radius: 5px; background: #10180ac9; border: 1px solid #ffffff2e; font-size: 9px; color: #dbe7c9; gap: 6px; align-items: center; white-space: nowrap; }
.portrait-slot.has-photo .upload-empty { display: none; }
.portrait-slot.has-photo .replace-hint { display: flex; }
.remove-photo { position: absolute; right: 7px; top: 7px; height: 27px; width: 27px; display: grid; place-items: center; border-radius: 50%; background: #10160de0; border: 1px solid #ffffff40; color: #e0ead5; z-index: 2; }
.portrait-slot > p { font-size: 9px; color: #70835b; margin: 9px 0 0; line-height: 1.6; }
.portrait-slot > .file-name { color: #b1c58e; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.swap-button { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 12px auto 0; border: none; background: none; font-size: 10px; color: #acbf87; padding: 5px 10px; }
.swap-button:disabled { color: #576745; }
.upload-spec { text-align: center; margin: 14px 23px 0; color: #687b51; font-size: 9px; }
.consent { margin: 20px 23px 17px; display: flex; align-items: start; gap: 8px; font-size: 10px; color: #a5b88a; line-height: 1.8; }
.consent input { accent-color: var(--accent); width: 13px; height: 13px; margin: 2px 0 0; flex-shrink: 0; }
.generator-status { margin: 0 23px 15px; border-top: 1px solid #2c3921; padding-top: 17px; display: flex; align-items: start; gap: 8px; }
.generator-status i { margin-top: 5px; background: #b4c38c; }
.generator-status strong { font-size: 10px; font-weight: 500; color: #c1d0a4; }
.generator-status p { color: #758d53; font-size: 9px; line-height: 1.8; margin: 4px 0 0; }
.generator-actions { display: grid; grid-template-columns: 1.1fr 1fr; gap: 10px; margin-inline: 23px; }
.generator-actions .button { font-size: 10px; padding: 12px 9px; gap: 7px; }
.privacy-caption { display: flex; justify-content: center; align-items: center; gap: 5px; margin: 13px 23px 0; color: #6f8255; font-size: 8px; line-height: 1.7; }
.saved-link { color: var(--accent); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 10px; margin-top: 15px; }
.inline-error { padding: 11px 13px; font-size: 11px; line-height: 1.8; color: #f0aaa5; background: #712f2a33; border: 1px solid #71433c; border-radius: 7px; }
.generator-panel .inline-error { margin: 0 23px 16px; }
.template-about { display: grid; grid-template-columns: .9fr 1.3fr; gap: 65px; }
.template-about h2 { max-width: 360px; }
.about-copy p { font-size: 13px; color: #94a087; line-height: 1.95; margin-bottom: 17px; }
.about-copy p:last-child { margin: 0; }
.template-notes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px; padding-bottom: 50px; border-bottom: 1px solid var(--line); }
.template-notes article { padding: 25px; border: 1px solid #2d3923; border-radius: 10px; background: #12180e; }
.note-number { font-size: 10px; font-family: monospace; color: #748c52; }
.template-notes h3 { font-size: 16px; font-weight: 500; margin: 20px 0 12px; }
.template-notes p { font-size: 11px; color: #84976c; line-height: 1.9; margin: 0; }
.photo-guide { display: grid; grid-template-columns: 1fr 1.2fr; gap: 45px; padding: 40px; border: 1px solid #38492a; background: #172010; border-radius: 12px; }
.photo-guide p { color: #879d6b; font-size: 11px; line-height: 1.8; margin-bottom: 0; }
.photo-guide ul { list-style: none; padding: 0; margin: 0; display: grid; align-content: center; gap: 18px; }
.photo-guide li { display: flex; align-items: start; gap: 11px; color: #b5c89c; font-size: 12px; line-height: 1.8; }
.photo-guide li svg { margin-top: 2px; color: var(--accent); }
.related-section { border-top: 1px solid var(--line); }
.related-template { display: grid; grid-template-columns: 1fr 1fr; gap: 55px; align-items: center; }
.related-copy h3 { margin: 20px 0 18px; font-size: 36px; letter-spacing: -1px; font-weight: 500; line-height: 1.25; }
.related-copy p { font-size: 12px; color: #8da174; line-height: 1.8; max-width: 300px; margin-bottom: 24px; }
.library-page { padding-block: 55px 100px; min-height: calc(100vh - 285px); }
.library-page h1 { font-size: 46px; letter-spacing: -1.8px; margin: 16px 0 12px; }
.library-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 14px; }
.library-search { display: flex; align-items: center; gap: 9px; border: 1px solid #35442a; background: #12190e; padding: 11px 12px; border-radius: 7px; color: #718856; }
.library-search input { background: transparent; border: none; font-size: 11px; color: #c2d4a8; width: 185px; min-width: 0; }
.library-search input:focus { outline: none; }
.library-search:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.library-notice { display: flex; align-items: start; gap: 7px; font-size: 10px; line-height: 1.8; color: #718a52; margin: 22px 0; }
.library-notice svg { margin-top: 1px; }
.draft-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.empty-state { grid-column: 1/-1; text-align: center; padding: 70px 20px; border: 1px dashed #35482a; border-radius: 12px; background: #10170d; }
.empty-icon { display: grid; place-items: center; width: 65px; height: 65px; margin: auto auto 20px; border: 1px solid #3b512c; background: #1e2c16; border-radius: 17px; color: #bdd591; }
.empty-state h2 { font-size: 23px; font-weight: 500; letter-spacing: -.5px; }
.empty-state p { font-size: 12px; line-height: 1.9; color: #819e62; margin-bottom: 24px; }
.draft-card { border: 1px solid #334629; background: #121c0f; border-radius: 11px; overflow: hidden; }
.draft-portraits { display: flex; height: 190px; gap: 2px; background: #080d06; position: relative; }
.draft-portraits img { flex: 1; min-width: 0; height: 100%; object-fit: cover; }
.draft-portraits .badge { position: absolute; top: 12px; left: 12px; }
.draft-body { padding: 20px; }
.draft-body h2 { font-size: 19px; font-weight: 500; letter-spacing: -.5px; margin-bottom: 9px; }
.draft-meta { color: #839e65; font-size: 10px; line-height: 1.7; margin-bottom: 20px; }
.draft-actions { display: flex; gap: 10px; }
.draft-actions .button { font-size: 10px; padding: 9px 13px; }
.delete-button { margin-left: auto; border: none; background: none; color: #a6a391; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; padding: 6px; }
.not-found { padding-block: 100px 130px; }
.not-found h1 { font-size: 70px; line-height: 1.05; letter-spacing: -3px; margin-top: 30px; }
.not-found p { color: #8ca271; margin-bottom: 30px; font-size: 14px; }
.toast { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); padding: 13px 21px; background: #e5f6d2; color: #233714; border: 1px solid #b6d68d; box-shadow: 0 10px 40px #0008; border-radius: 8px; font-size: 12px; z-index: 50; max-width: min(500px,90vw); line-height: 1.6; }
.toast a { text-decoration: underline; }
dialog { border: 1px solid #486831; background: #14200e; color: #e3eed9; padding: 30px; border-radius: 12px; max-width: min(440px,90vw); }
dialog::backdrop { background: #050a03bb; backdrop-filter: blur(6px); }
dialog h2 { font-size: 25px; margin-top: 20px; font-weight: 500; }
dialog p { font-size: 12px; color: #9bb582; line-height: 1.9; }
.dialog-actions { display: flex; gap: 10px; justify-content: end; margin-top: 25px; }
@media (min-width:1600px) { .container { max-width: 1320px; }.home-hero { padding-block: 100px; }.hero-copy h1 { font-size: 88px; }.hero-art { min-height: 430px; }.hero-poster-main { height: 395px; }.hero-poster-small { height: 270px; } }
@media (max-width:1100px) { .container { width: calc(100% - 56px); }.home-hero { padding-block: 65px 80px; gap: 25px; }.hero-copy h1 { font-size: 62px; letter-spacing: -3.5px; }.hero-description { font-size: 13px; }.hero-actions { gap: 18px; }.hero-actions .button { padding: 13px 16px; font-size: 11px; }.hero-art { min-height: 350px; }.hero-poster-main { height: 310px; }.hero-poster-small { height: 205px; bottom: 10px; }.hero-spark { font-size: 55px; left: 25px; }.hero-art-note { bottom: -10px; font-size: 7px; }.hero-footnote { gap: 10px; font-size: 9px; }.hero-preview { padding-left: 10px; }.section { padding-block: 55px; }.section-heading h2, .faq-heading h2, .template-about h2 { font-size: 31px; }.faq-section { gap: 40px; }.steps-grid { gap: 25px; }.callout-spark { right: 45px; font-size: 200px; top: 60px; }.editorial-callout h2 { font-size: 34px; }.template-intro h1 { font-size: 45px; }.template-intro h1>span { font-size: 27px; }.template-quote > span:not(.quote-star) { font-size: 22px; }.studio { gap: 18px; grid-template-columns: 1fr 1fr; }.scene-image { aspect-ratio: .84; }.portrait-grid { padding-inline: 18px; gap: 10px; }.generator-heading { padding-inline: 18px; }.generator-heading h2 { font-size: 20px; }.generator-actions { grid-template-columns: 1fr; }.generator-actions .button-disabled { padding: 8px; font-size: 9px; }.generator-actions .button-primary { padding: 12px; }.drop-zone { height: 175px; }.single-portrait .drop-zone { height: 190px; }.template-about { gap: 40px; }.template-notes { gap: 18px; }.template-notes article { padding: 20px; }.related-copy h3 { font-size: 30px; }.related-template { gap: 30px; } }
@media (max-width:800px) { .main-nav { gap: 22px; font-size: 11px; }.brand { font-size: 21px; }.home-hero { grid-template-columns: 1fr; padding-block: 50px 70px; gap: 50px; }.hero-copy { max-width: 580px; }.hero-copy h1 { font-size: 76px; }.hero-description { max-width: 440px; font-size: 14px; }.hero-art { width: 85%; max-width: 540px; margin: 0 auto; min-height: 400px; }.hero-poster-main { height: 355px; }.hero-poster-small { height: 245px; }.hero-art-note { bottom: -15px; }.hero-spark { left: 20px; top: -10px; }.process-ribbon span:not(.ribbon-cross) { gap: 8px; font-size: 8px; letter-spacing: 1px; }.process-ribbon .container { padding-block: 20px; }.template-image { aspect-ratio: 1.3; }.template-title-line h3 { font-size: 22px; }.template-body { padding-inline: 18px; }.template-title-line { flex-wrap: wrap; gap: 8px; }.template-body p { font-size: 11px; }.steps-grid { gap: 22px; }.steps-grid h3 { font-size: 16px; }.steps-grid p { font-size: 11px; }.callout-spark { font-size: 145px; right: 25px; top: 70px; opacity: .45; }.editorial-callout { padding: 35px; }.editorial-callout .button { position: relative; z-index: 1; }.faq-section { grid-template-columns: 1fr; gap: 25px; }.faq-heading p { display: none; }.faq-heading h2 br { display: none; }.faq-list summary { padding-block: 22px; }.template-quote { display: none; }.template-hero { padding-block: 30px; }.studio { grid-template-columns: 1fr; }.scene-image { aspect-ratio: 1.7; }.generator-panel { max-width: none; }.portrait-grid { padding-inline: 25px; gap: 20px; }.drop-zone { height: 230px; }.single-portrait .drop-zone { height: 230px; }.generator-actions { grid-template-columns: 1fr 1fr; }.generator-actions .button { padding: 14px; font-size: 11px; }.generator-heading { padding: 24px 25px 0; }.generator-heading h2 { font-size: 23px; }.template-about { grid-template-columns: 1fr; gap: 15px; }.template-about h2 { max-width: 550px; }.template-notes { gap: 15px; }.template-notes h3 { font-size: 14px; }.template-notes p { font-size: 10px; }.photo-guide { gap: 30px; padding: 30px; }.photo-guide h2 { font-size: 30px; }.photo-guide li { font-size: 11px; }.related-copy h3 { font-size: 26px; }.draft-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.footer-bottom { font-size: 8px; }.footer-bottom > span:nth-child(2) { max-width: 220px; line-height: 1.7; } }
@media (max-width:560px) { html { scroll-padding-top: 90px; }.container { width: calc(100% - 36px); }.site-header { height: 71px; }.header-inner { gap: 13px; }.brand { font-size: 20px; gap: 7px; }.logo-mark { width: 28px; height: 28px; border-radius: 8px; }.main-nav { display: none; }.library-link { font-size: 10px; padding: 9px 11px; gap: 6px; }.library-link > svg { width: 15px; }.home-hero { padding-block: 44px 62px; gap: 44px; }.eyebrow { font-size: 8px; letter-spacing: 1.4px; }.hero-copy h1 { font-size: clamp(48px,12.7vw,68px); letter-spacing: -3.1px; margin-block: 22px; }.hero-description { font-size: 12px; line-height: 1.9; max-width: 330px; }.hero-actions { gap: 19px; margin-top: 24px; }.hero-actions .button { font-size: 11px; padding: 13px 14px; }.hero-actions .subtle-link { font-size: 10px; gap: 7px; }.hero-footnote { margin-top: 20px; font-size: 8px; gap: 12px; }.hero-footnote svg { width: 12px; }.hero-preview { padding-left: 10px; }.hero-art { width: calc(100% - 10px); min-height: 300px; margin-right: 8px; }.hero-poster-main { height: 265px; top: 7px; }.hero-poster-small { height: 187px; width: 40%; bottom: 0; }.hero-spark { font-size: 45px; top: -14px; left: 23px; }.hero-art-note { font-size: 6px; bottom: -27px; }.poster-caption { font-size: 19px; left: 13px; right: 13px; bottom: 15px; }.poster-caption small { font-size: 6px; }.poster-badge { font-size: 6px; top: 10px; right: 10px; padding: 5px 7px; }.round-arrow { width: 29px; height: 29px; }.round-arrow svg { width: 16px; }.hero-poster-small .poster-caption { font-size: 15px; inset-inline: 8px; bottom: 12px; gap: 5px; }.hero-poster-small .poster-caption small { font-size: 5px; letter-spacing: .8px; }.hero-poster-small .poster-caption>svg { width: 15px; }.process-ribbon span:not(.ribbon-cross) { font-size: 6px; letter-spacing: .6px; gap: 5px; }.process-ribbon span>svg { display: none; }.process-ribbon b { font-size: 7px; }.process-ribbon .ribbon-cross { font-size: 10px; }.process-ribbon .container { padding-block: 17px; gap: 5px; }.section { padding-block: 42px; }.section-heading { margin-bottom: 23px; gap: 15px; }.section-heading h2, .faq-heading h2, .template-about h2 { font-size: 29px; letter-spacing: -1.1px; margin-top: 13px; }.section-heading p { font-size: 11px; }.collection-count { display: none; }.collection-toolbar { margin-bottom: 18px; }.filters { gap: 5px; }.filters button { padding: 9px 11px; font-size: 10px; gap: 5px; }.filters button>span { font-size: 8px; }.filters button>svg { width: 13px; }#filter-count { display: none; }.template-grid { grid-template-columns: 1fr; gap: 20px; }.template-image { aspect-ratio: 1.55; }.template-title-line h3 { font-size: 24px; }.template-title-line>span { font-size: 10px; }.template-body { padding: 19px 20px 0; }.template-body>p { font-size: 11px; margin-bottom: 17px; }.card-cta { padding-block: 15px; }.art-label { font-size: 8px; }.section-aside { display: none; }.steps-grid { grid-template-columns: 1fr; gap: 23px; }.steps-grid article { padding-top: 19px; }.step-top { margin-bottom: 19px; }.steps-grid h3 { font-size: 19px; margin-bottom: 10px; }.steps-grid p { font-size: 12px; max-width: none; }.editorial-callout { padding: 29px 25px; }.editorial-callout h2 { font-size: 28px; line-height: 1.25; max-width: 275px; }.callout-spark { font-size: 110px; right: -14px; top: 76px; opacity: .18; }.faq-heading h2 br { display: initial; }.faq-list summary { font-size: 12px; gap: 12px; padding-block: 20px; }.faq-list details>p { font-size: 11px; padding-left: 25px; padding-right: 23px; }.footer-top { flex-direction: column; align-items: start; padding-block: 30px; gap: 25px; }.footer-links { gap: 26px; font-size: 10px; }.footer-top p { font-size: 10px; }.footer-bottom { flex-wrap: wrap; gap: 12px; padding-block: 18px; font-size: 8px; }.footer-bottom>span:nth-child(2) { order: 3; flex-basis: 100%; max-width: none; }.footer-bottom .preview-label { margin-left: auto; }.breadcrumb { font-size: 9px; gap: 10px; margin-top: 22px; }.template-hero { padding-block: 28px; }.template-intro h1 { font-size: 42px; letter-spacing: -1.7px; margin: 14px 0 18px; }.template-intro h1>span { font-size: 24px; }.template-intro>p { font-size: 12px; line-height: 1.85; }.template-facts { gap: 12px; margin-bottom: 20px; }.template-facts span { font-size: 8px; gap: 5px; }.template-facts svg { width: 13px; }.studio { gap: 18px; }.panel-overline { padding: 16px 18px; font-size: 8px; }.panel-overline .art-label { font-size: 7px; }.scene-image { aspect-ratio: 1.3; }.scene-overlay { left: 20px; bottom: 22px; }.scene-overlay h2 { font-size: 32px; }.scene-overlay p { font-size: 10px; }.scene-disclosure { padding: 14px 17px; font-size: 9px; }.source-link { margin-inline: 18px; font-size: 9px; }.generator-heading { padding: 22px 18px 0; }.generator-heading h2 { font-size: 22px; }.generator-heading p { font-size: 10px; }.portrait-grid { padding-inline: 18px; gap: 12px; }.drop-zone { height: 175px; }.single-portrait .drop-zone { height: 210px; }.slot-heading { font-size: 9px; gap: 6px; }.upload-empty strong { font-size: 10px; }.upload-empty>span:last-child { font-size: 8px; }.portrait-slot>p { font-size: 8px; }.upload-spec { font-size: 8px; }.consent { margin-inline: 18px; font-size: 9px; }.generator-status { margin-inline: 18px; }.generator-actions { margin-inline: 18px; gap: 7px; }.generator-actions .button { font-size: 9px; padding: 12px 6px; gap: 5px; }.generator-actions .button>svg { width: 14px; }.privacy-caption { font-size: 7px; margin-inline: 16px; }.about-copy p { font-size: 12px; }.template-notes { grid-template-columns: 1fr; padding-bottom: 35px; }.template-notes article { padding: 23px; }.template-notes h3 { font-size: 17px; margin-top: 15px; }.template-notes p { font-size: 12px; }.template-steps .section-heading { display: block; }.template-steps .section-heading>.subtle-link { margin-top: 10px; font-size: 10px; }.photo-guide { grid-template-columns: 1fr; gap: 25px; padding: 27px 24px; }.photo-guide h2 { font-size: 30px; }.photo-guide li { font-size: 11px; }.related-template { grid-template-columns: 1fr; gap: 0; }.related-copy { display: none; }.related-section .section-heading { flex-wrap: wrap; }.related-section .section-heading>.subtle-link { font-size: 10px; }.library-page { padding-block: 38px 70px; }.library-page h1 { font-size: 36px; }.library-page .section-heading { align-items: start; flex-direction: column; gap: 20px; }.library-page .section-heading>.button { font-size: 11px; padding: 11px 15px; }.library-toolbar { flex-direction: column; align-items: stretch; gap: 17px; padding-top: 5px; }.library-search input { width: 100%; }.library-notice { font-size: 9px; }.draft-grid { grid-template-columns: 1fr; }.draft-portraits { height: 220px; }.empty-state { padding: 50px 19px; }.empty-state h2 { font-size: 21px; }.empty-state p { font-size: 11px; }.not-found h1 { font-size: 55px; }.toast { font-size: 11px; width: max-content; bottom: 20px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
/* Keep the featured title clear of the overlapping solo card. */
.hero-poster-main .poster-caption { left: 35%; }
@media (max-width:560px) {
  .slot-heading { font-size: 11px; }
  .upload-empty strong { font-size: 12px; }
  .upload-empty > span:last-child, .portrait-slot > p, .upload-spec { font-size: 10px; }
  .generator-heading p, .consent { font-size: 11px; }
  .generator-status strong { font-size: 12px; }
  .generator-status p, .privacy-caption { font-size: 10px; }
  .generator-actions .button { font-size: 11px; min-height: 44px; }
  .scene-disclosure, .source-link { font-size: 10px; }
  .faq-list summary { font-size: 13px; }
  .faq-list details > p, .photo-guide li { font-size: 12px; }
  .library-notice { font-size: 11px; }
}

/* Google sign-in and account controls */
.header-actions { display: flex; align-items: center; gap: 12px; }
.sign-in-link { display: inline-flex; padding: 11px 16px; border-radius: 8px; font-size: 12px; font-weight: 600; background: var(--accent); color: #18200b; white-space: nowrap; }
.sign-in-link:hover { background: #edff9d; }
.account-menu { position: relative; }
.account-menu > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 11px; padding: 5px 0 5px 5px; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-initial { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #dfff6720; color: var(--accent); border: 1px solid #dfff6740; font-size: 12px; }
#account-name { max-width: 100px; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.account-dropdown { position: absolute; right: 0; top: calc(100% + 12px); width: 255px; padding: 20px; background: #171d13; border: 1px solid #3a472f; border-radius: 10px; box-shadow: 0 15px 45px #0009; }
.account-dropdown .eyebrow { font-size: 8px; }
.account-dropdown > p { color: #c4d2b2; font-size: 12px; overflow-wrap: anywhere; margin: 10px 0 18px; }
.account-dropdown > a { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid #34402a; color: #c4d2b2; font-size: 12px; }
.account-dropdown form button { padding: 12px 0 0; border: 0; border-top: 1px solid #34402a; background: none; font-size: 12px; width: 100%; text-align: left; color: #a6b992; }
.login-page { display: grid; grid-template-columns: 1fr 1fr; gap: 75px; padding-block: 65px 85px; align-items: center; min-height: calc(100vh - 285px); }
.login-art { position: relative; height: 510px; border-radius: 15px; border: 1px solid #3a402f; overflow: hidden; }
.login-art > img { width: 100%; height: 100%; object-fit: cover; object-position: 48% center; }
.login-art::after { content: ''; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent,#0b1006ef); }
.login-art > div { position: absolute; bottom: 30px; left: 32px; right: 20px; z-index: 1; }
.login-art .eyebrow { font-size: 8px; color: #d7ddc7; letter-spacing: 1.3px; }
.login-art h2 { font-size: 35px; letter-spacing: -1.2px; line-height: 1.2; margin: 15px 0 22px; }
.login-art .art-label { font-size: 8px; }
.login-card { max-width: 430px; }
.login-card > h1 { font-size: 45px; letter-spacing: -1.8px; line-height: 1.12; margin-block: 20px; }
.login-description { color: #9ca58f; font-size: 14px; line-height: 1.8; margin-bottom: 30px; }
.google-sign-in { display: flex; align-items: center; justify-content: center; gap: 13px; min-height: 49px; width: 100%; padding: 13px 20px; background: #f3f5f0; border: 1px solid #d5d7d2; color: #252a21; border-radius: 8px; font-weight: 550; font-size: 14px; }
.google-sign-in:hover:not(:disabled) { background: white; }
.google-sign-in:disabled { opacity: .55; }
.login-privacy { font-size: 11px; line-height: 1.85; color: #859378; margin-top: 17px; }
.login-draft-note { border-top: 1px solid #313d28; padding-top: 22px; margin: 25px 0; display: flex; align-items: start; gap: 10px; color: #b1c298; }
.login-draft-note svg { margin-top: 2px; }
.login-draft-note p { font-size: 11px; line-height: 1.8; margin: 0; color: #91a27c; }
.auth-notice { font-size: 12px; line-height: 1.85; padding: 14px 16px; background: #dfff670b; border: 1px solid #3b492b; color: #b8cba0; border-radius: 7px; margin-bottom: 22px; }
.auth-notice-error { border-color: #735843; background: #a4693514; color: #d9b89e; }
.auth-page-status { color: #c4d5af; font-size: 12px; line-height: 1.8; margin-top: 20px; }
@media(max-width:1000px) { .main-nav { gap: 20px; }.login-page { gap: 40px; }.login-card>h1 { font-size: 38px; }.login-art { height: 480px; } }
@media(max-width:800px) { #account-name { display: none; }.header-inner { gap: 15px; }.main-nav { gap: 14px; }.library-link { padding: 10px; }.header-actions { gap: 8px; }.sign-in-link { padding: 11px 12px; }.login-page { gap: 30px; }.login-art { height: 450px; }.login-art>div { left: 22px; }.login-art h2 { font-size: 29px; }.login-card>h1 { font-size: 34px; }.login-card .eyebrow { font-size: 8px; } }
@media(max-width:600px) { .main-nav { display: none; }.login-page { grid-template-columns: 1fr; padding-block: 38px 60px; }.login-art { display: none; }.login-card { max-width: 450px; margin-inline: auto; }.login-card>h1 { font-size: 42px; }.login-card .eyebrow { font-size: 9px; }.login-privacy, .login-draft-note p { font-size: 12px; }.login-description { font-size: 14px; }.auth-notice { font-size: 12px; } }
@media(max-width:560px) { .header-actions { gap: 8px; }.library-link > span:not(.draft-count) { display: none; }.library-link { padding: 9px; }.sign-in-link { padding: 10px 12px; font-size: 11px; }.account-dropdown { width: 240px; }.header-inner { gap: 10px; }.account-menu>summary { gap: 4px; padding-left: 0; } }

/* Show the whole vertical reference, including native playback controls. */
.scene-video { background: #070907; padding: 0; }
.scene-video video { display: block; width: 100%; height: 530px; max-height: 70vh; object-fit: contain; background: #070907; }
.reference-facts { display: flex; flex-wrap: wrap; gap: 9px 17px; padding: 14px 21px 0; color: #b0c298; font-size: 10px; }
.scene-panel #reference-error { margin: 16px 20px; }
.scene-panel #reference-error a { text-decoration: underline; }
@media (max-width:800px) { .scene-video video { height: 560px; } }
@media (max-width:560px) { .scene-video video { height: auto; max-height: 65vh;  }.reference-facts { font-size: 10px; padding-inline: 17px; gap: 8px 13px; } }

.template-card.has-reference .template-image > img { object-position: center 20%; }
.hero-poster-small img { object-position: center 25%; }

/* Keep each supplied composition intact when switching source variants. */
.scene-video[data-orientation="landscape"] video { height: auto; aspect-ratio: 16 / 9; max-height: none; }
.reference-selector { border: 0; margin: 0; padding: 0 20px 18px; min-width: 0; }
.reference-selector legend { font-size: 13px; font-weight: 600; padding: 0 0 12px; }
.reference-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.reference-options label { cursor: pointer; position: relative; }
.reference-options input { position: absolute; left: 12px; top: 15px; accent-color: #c5f66c; }
.reference-options label > span { display: block; padding: 13px 10px 13px 34px; border: 1px solid #35402b; border-radius: 8px; }
.reference-options input:checked + span { border-color: #c5f66c; background: #202b16; }
.reference-options input:focus-visible + span { outline: 2px solid #c5f66c; outline-offset: 3px; }
.reference-options input:disabled + span { opacity: .6; }
.reference-options strong { display: block; font-size: 12px; }
.reference-options b { color: #c5f66c; font-weight: 400; margin-left: 5px; }
.reference-options small { display: block; color: #a9b49e; font-size: 10px; margin-top: 6px; }
.reference-selector > p { color: #a9b49e; font-size: 11px; line-height: 1.6; margin: 10px 0 0; }
@media (max-width: 380px) { .reference-options strong b { display: block; margin: 4px 0 0; } }

.generation-result { margin: 18px 22px; font-size: 13px; line-height: 1.6; }
.generation-result video, .draft-card video { display:block; width:100%; max-height:520px; background:#070907; object-fit:contain; margin:12px 0; }
.generation-result a, .draft-body a[download] { display:block; padding:10px 0; color:#c5f66c; }

.footer-links { flex-wrap: wrap; }
.legal-page { padding-top: 68px; padding-bottom: 88px; }
.legal-heading { max-width: 780px; margin-bottom: 40px; }
.legal-heading h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.05; margin: 18px 0; letter-spacing: -.04em; }
.legal-heading > p { max-width: 640px; color: #b4b6ad; line-height: 1.7; }
.legal-heading .legal-updated { font-size: 12px; margin-top: 18px; }
.legal-layout { display: grid; grid-template-columns: 190px minmax(0, 750px); gap: 64px; }
.legal-nav { display: flex; flex-direction: column; gap: 18px; align-self: start; position: sticky; top: 110px; font-size: 13px; }
.legal-nav a[aria-current] { color: #c5f66c; }
.legal-body section { padding: 0 0 30px; margin-bottom: 28px; border-bottom: 1px solid #303329; }
.legal-body h2 { font-size: 22px; line-height: 1.35; margin: 0 0 15px; }
.legal-body p { font-size: 15px; line-height: 1.85; color: #b4b6ad; margin: 12px 0; }
.legal-body a { color: #c5f66c; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 4px; }
.legal-draft { border: 1px solid #82713c; padding: 18px; color: #e6d398; line-height: 1.6; margin-bottom: 32px; }
.login-policy-links { font-size: 12px; line-height: 1.7; color: #b4b6ad; }
.login-policy-links a { color: #c5f66c; text-decoration: underline; text-underline-offset: 3px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pricing-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.pricing-recommended { border-color: var(--accent); }
.pricing-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; margin-bottom: 26px; }
.pricing-card-top h3 { margin: 0; font-size: 20px; }
.pricing-card-top .badge { font-size: 10px; white-space: nowrap; }
.pricing-credits { font-size: 14px; color: #b4b6ad; }
.pricing-credits strong { color: #f0f1ec; font-size: 24px; }
.pricing-comparison { color: #a5aaa7; font-size: 12px; min-height: 20px; margin: 22px 0 8px; }
.pricing-comparison s { margin-left: 5px; }
.pricing-amount { font-size: 42px; font-weight: 700; letter-spacing: -1.5px; margin-bottom: 12px; }
.pricing-amount span { display: block; margin-top: 6px; font-size: 12px; font-weight: 400; letter-spacing: 0; color: #b4b6ad; }
.pricing-saving { color: var(--accent); font-size: 14px; font-weight: 600; min-height: 20px; }
.pricing-capacity { font-size: 14px; line-height: 1.8; margin: 25px 0; }
.pricing-capacity span { color: #a5aaa7; font-size: 12px; }
.pricing-card .button { width: 100%; font-size: 12px; }
.pricing-footnote { max-width: 950px; font-size: 12px; line-height: 1.9; color: #a5aaa7; margin: 24px 0 0; }
.template-grid-single { grid-template-columns: minmax(0, 720px); }
.credit-wallet { padding: 26px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 32px; }
.credit-wallet h2 { font-size: 23px; margin-top: 12px; }
.credit-wallet dl { display: flex; flex-wrap: wrap; gap: 30px; }
.credit-wallet dt { font-size: 12px; color: var(--muted); }
.credit-wallet dd { margin: 8px 0 0; font-size: 30px; font-weight: 700; }
.credit-wallet p, .credit-wallet li { font-size: 13px; line-height: 1.8; color: #b4b6ad; }
.credit-wallet details { margin-top: 20px; font-size: 13px; }
.credit-wallet .button { margin: 10px 0; }
#checkout-status { font-size: 14px; line-height: 1.7; color: var(--accent); margin-top: 20px; }
.hero-art-single .hero-poster-main { width: 100%; left: 0; right: 0; transform: none; }
.hero-art-single .hero-poster-main .poster-caption { left: 24px; }
@media (max-width: 850px) { .pricing-grid { grid-template-columns: 1fr; }.pricing-card { padding: 24px; }.pricing-amount { font-size: 38px; } }
@media (max-width: 700px) { .legal-page { padding-top: 38px; }.legal-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }.legal-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 18px; }.legal-body h2 { font-size: 20px; } }

/* Keep the selected model visible on desktop and narrow screens. */
.hero-footnote .model-badge,
.template-facts .model-label {
  color: #d6ff66;
  background: rgba(214, 255, 102, .07);
  border: 1px solid rgba(214, 255, 102, .3);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}

/* Available credits exclude held credits; keep the badge compact on mobile. */
.header-credits { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #dfff6740; border-radius: 999px; padding: 8px 10px; color: var(--accent); background: #dfff670a; font-size: 11px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.header-credits strong { font-size: 13px; }
.header-credits:hover { background: #dfff671c; }
.generation-wallet { margin: 0 23px 16px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: #11170e; }
.generation-wallet-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 11px; }
.generation-wallet strong { color: var(--accent); font-size: 15px; font-variant-numeric: tabular-nums; }
.generation-wallet p { font-size: 10px; line-height: 1.6; color: var(--muted); margin: 8px 0 0; }
.generation-wallet [data-wallet-error] { color: #e4b58e; }
.generation-wallet-links { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 10px; }
.generation-wallet-links a { color: var(--accent); display: inline-flex; align-items: center; gap: 4px; }
.generation-wallet-links button { border: 0; padding: 0; background: none; color: var(--muted); cursor: pointer; font: inherit; }
@media(max-width:560px) { .header-credits { padding: 6px 7px; gap: 4px; font-size: 9px; }.header-credits strong { font-size: 11px; }.header-credits svg { width: 11px; }.generation-wallet { margin-inline: 18px; }.header-actions { gap: 6px; } }
@media(max-width:380px) { .header-credits-label { display: none; }.header-credits { gap: 3px; }.brand { font-size: 18px; } }
