/* Shared reading and interaction rules for the app and public documents.
   Type: interface-heading/copy/label/caption; spacing: existing space-2/3/4/6/8/12
   (8/12/16/24/32/48px); controls: platform-control 48px, platform-radius 12px.
   Hero artwork, media viewers, rails and editor tools keep their specialized layout.
   InterfaceState below owns the same loading/error/retry rhythm on public/account/owner. */
html:root {
  --interface-copy: 15px;
  --interface-caption: 13px;
  --interface-label: 14px;
  --interface-heading: clamp(28px, 3vw, 40px);
  --interface-leading: 1.6;
}
html body :is(button, input, select, textarea) { font-family: var(--font-sans, Manrope, Arial, sans-serif); }
html body :is(button, a, summary, input, select, textarea):focus-visible { outline: 2px solid var(--platform-focus, #a9baff); outline-offset: 4px; }
html body :is(button, input, select, textarea) { scroll-margin-block: 120px; }
html body :is(.account-page, .social-page, .model-directory, .platform-home) :is(h1,h2,h3,p,li,dd) { overflow-wrap: break-word; }
html body .account-page .workspace-main :is(p, li) { font-size: var(--interface-copy); line-height: var(--interface-leading); }
html body .account-page .workspace-main :is(h1,h2,h3) { text-wrap: pretty; }
html body .account-page.workspace-page .workspace-main h1 { font-size: var(--interface-heading); line-height: 1.2; }
html body .account-page .workspace-main :is(.account-help,.account-notice,.account-error,.quality-muted,.settings-service-note p,.account-generation-item>p,.account-generation-item>time) { font-size: var(--interface-caption); line-height: var(--interface-leading); }
html body .account-page :is(.account-eyebrow,.retention-section-heading .account-eyebrow) { font-size: 12px; line-height: 1.5; }
html body .account-page .workspace-main :is(label,summary) { font-size: var(--interface-label); line-height: 1.5; }
html body .account-page :is(.account-primary,.account-secondary,.account-primary-link,.builder-primary,.builder-secondary,.econ-secondary,.quality-filter-toggle,.cabinet-filter button,.studio-control-trigger) { font-size: var(--interface-label); line-height: 1.5; min-height: 48px; }
html body .account-page .workspace-main :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),textarea,select) { font-size: 16px; line-height: 1.5; }
html body .account-page .workspace-main :is(.workspace-card,.account-generations,.character-profiles,.customer-profile,.economics-panel,.quality-control) { min-width: 0; }
html body .account-page .workspace-main :is(.quality-heading,.econ-heading,.customer-directory-heading,.cabinet-section-heading) { gap: 20px; margin-bottom: 24px; }
html body .account-page .workspace-main :is(.workspace-card,.account-generations,.character-profiles)>p { margin-block: 16px 24px; }
html body .account-page .workspace-main :is(.account-form-actions,.social-actions,.feedback-choices,.topup-presets) { gap: 12px; }
html body .account-page .workspace-topbar-actions>a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
html body .account-page .workspace-topbar { gap: 16px; }
html body .account-page .generation-result>a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; font-size: 14px; }
html body .account-page .result-more a { font-size: 14px; }
html body .account-page :is(.content-import-template>summary,.economics-panel summary) { min-height: 44px; align-content: center; }
html body .account-page .economics-panel button { min-height: 48px; }
html body .account-page .economics-panel .econ-heading>button { font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
html body .account-page .economics-panel :is(.econ-stage,.econ-kicker,.econ-badge,small) { font-size: 12px; line-height: 1.6; }
html body .account-page :is(.customer-facts dt,.customer-list li dl,.quality-card-meta,.quality-rating,.quality-audit) { font-size: 13px; line-height: 1.6; }
html body .account-page .customer-profile>header h2 { font-size: var(--interface-heading); }
html body .account-page .account-check { min-height: 44px; align-items: flex-start; gap: 12px; }
html body .account-page .account-check>input { flex-shrink: 0; margin-top: 3px; }

/* Public pages share the same navigation and footer rhythm. */
html body :is(.public-site-header,.floating-site-header) :is(.public-site-brand,.wordmark) { min-height: 44px; display: inline-flex; align-items: center; }
html body .public-site-header>nav { margin-inline: auto; justify-content: center; gap: clamp(14px, 1.5vw, 24px); }
html body .public-site-header>nav a { font-size: 12px; white-space: nowrap; }
html body .public-site-footer :is(nav a,nav button,.public-site-footer-contact>a) { display: flex; align-items: center; min-height: 44px; }
html body .public-site-footer nav { gap: 4px; }
html body .public-site-footer small { font-size: 12px; line-height: 1.5; margin-bottom: 8px; }
html body .public-site-footer-bottom { font-size: 12px; line-height: 1.6; }
html body .social-page :is(.work-credit,.work-eyebrow,.work-author small) { font-size: 13px; line-height: 1.6; }
html body .social-page .work-tags>a { min-height: 44px; display: inline-flex; align-items: center; }
html body .social-page .social-tile-info>a { min-height: 44px; display: flex; align-items: center; font-size: 14px; line-height: 1.5; }
html body .social-page .social-author { min-height: 44px; display: inline-flex; align-items: center; font-size: 13px; line-height: 1.5; }
html body .social-page .social-tile :is(button,.social-save) { min-width: 44px; min-height: 44px; }
html body .social-page .social-search button { min-width: 44px; min-height: 44px; }
html body .social-page .social-filters { gap: 8px; }
html body .social-page .social-filters button { min-height: 44px; }
html body .platform-home .idea-stories-rail small { font-size: 12px; line-height: 1.5; }
html body .platform-home :is(.hero-bottom-copy,.platform-section-heading>p,.platform-price>p,.brand-inquiry-copy>p,.brand-form-intro,.referral-art-note) { font-size: var(--interface-copy); line-height: var(--interface-leading); }
html body .platform-home .guide-step-copy { font-size: var(--interface-copy); line-height: var(--interface-leading); }
html body .platform-home .guide-controls :is(p,small) { font-size: 13px; line-height: 1.5; }
html body .platform-home .brand-field :is(input,textarea) { font-size: 16px; line-height: 1.6; }
html body .platform-home .brand-consent { font-size: 14px; line-height: 1.6; min-height: 44px; }
html body .platform-home .brand-field :is(input,textarea) { scroll-margin-block: 120px; }
html body .model-directory-intro h1 em { font-family: var(--font-editorial, 'Cormorant Garamond', Georgia, serif); }
html body .model-directory :is(.model-purpose,.model-example,.model-price-hint) { line-height: 1.6; }

@media(max-width: 720px) {
  html:root { --interface-copy: 16px; }
  html body .account-page .workspace-main { padding-inline: 16px; padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  html body .account-page .workspace-topbar { margin-bottom: 24px; }
  html body .account-page .workspace-mobile-bar button { font-size: 12px; line-height: 1.4; gap: 4px; min-height: 64px; padding-inline: 3px; }
  html body .account-page .workspace-mobile-bar button span { text-align: center; }
  html body .account-page .workspace-mobile-more { max-height: calc(100dvh - 120px - env(safe-area-inset-bottom)); }
  html body .account-page .workspace-main :is(.workspace-card,.account-generations,.account-checkout,.character-profiles) { padding: 20px; border-radius: 16px; }
  html body .account-page .overview-action-card { padding: 24px; }
  html body .account-page .overview-action-card h2 { font-size: 26px; line-height: 1.3; }
  html body .account-page .overview-action-card>p { font-size: 15px; }
  html body .account-page .cabinet-characters-grid .account-secondary { font-size: 14px; }
  html body .account-page .character-source-gallery { grid-template-columns: repeat(3,minmax(0,1fr)); }
  html body .account-page .cabinet-referral .retention-share-actions { grid-template-columns: 1fr; }
  html body .account-page .cabinet-referral .retention-share-actions>button { font-size: 14px; }
  html body .account-page .cabinet-referral-stats dt, html body .account-page .cabinet-referral-stats dd small { font-size: 12px; }
  html body .account-page .quality-stats { grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 12px; }
  html body .account-page .quality-stats article { padding: 16px 12px !important; gap: 8px !important; }
  html body .account-page .quality-stats strong { font-size: 26px !important; }
  html body .account-page .quality-stats span { font-size: 12px !important; line-height: 1.5; }
  html body .account-page .quality-toolbar { grid-template-columns: minmax(0,1fr); }
  html body .account-page .quality-filter-toggle { justify-self: start; padding-inline: 16px; }
  html body .account-page .quality-search { min-height: 48px; }
  html body .account-page .quality-filters { gap: 16px; }
  html body .account-page .studio-inspector .studio-reference-strip>button>span { font-size: 14px; }
  html body .account-page .studio-root .studio-consent-panel { font-size: 13px; line-height: 1.6; }
  html body .cabinet-catalog-picker .cabinet-catalog-grid>button>strong { font-size: 15px; line-height: 1.5; }
  html body .cabinet-catalog-picker .cabinet-catalog-grid small { font-size: 12px; }
  html body .cabinet-catalog-picker .cabinet-filter button { font-size: 14px; min-height: 44px; }
  html body .platform-home .fashion-hero :is(.acid-button,.glass-button) { font-size: 14px; min-height: 52px; }
  html body .platform-home .guide-card-stack { height: 410px; }
  html body .platform-home :is(.guide-art-top,.guide-art-bottom,.guide-library-top,.guide-feature-copy>span:first-child,.guide-feature-copy small,.guide-delivery-top,.guide-delivery-status,.guide-output-summary>span:not(.guide-output-check),.guide-save-demo) { font-size: 12px; line-height: 1.5; }
  html body .platform-home .guide-feature-copy strong { font-size: 15px; }
  html body .platform-home .guide-feature-copy .guide-feature-action { font-size: 13px; padding: 10px; }
  html body .platform-home .guide-materials strong,html body .platform-home .guide-materials small { font-size: 12px; }
  html body .platform-home .guide-materials>div { flex-direction: column; align-items: start; padding: 8px; gap: 8px; }
  html body .platform-home .guide-materials img { width: 100%; height: 56px; object-fit: cover; }
  html body .platform-home .guide-delivery-top { flex-wrap: wrap; }
  html body .platform-home .idea-collection-copy p { font-size: 14px; }
  html body .public-site-menu nav { min-width: min(280px,calc(100vw - 40px)); }
  html body .public-site-header nav a { font-size: 14px; white-space: normal; }
  html body :is(.catalog-intro h1,.model-directory-intro h1) { line-height: 1.1; }
}
@media(max-width: 360px) {
  html body .account-page .quality-stats { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  html body .account-page .quality-filters { grid-template-columns: minmax(0,1fr) !important; }
  html body .platform-home .guide-card-stack { height: 430px; }
}
@media(prefers-reduced-motion: reduce) {
  html body *,html body *::before,html body *::after { scroll-behavior: auto !important; }
}

html body .account-page .account-generation-item h2 { font-size: 20px; line-height: 1.4; margin: 0; }
html body .account-page .content-template-import>summary { min-height: 44px; align-content: center; }
@media(max-width:720px){html body .account-page .workspace-main>.corporate-mobile-switch{margin-top:16px;margin-bottom:24px}html body .account-page .corporate-mobile-switch .corporate-switch{margin:0}}

.guide-mobile-copy { display: none; }
@media(max-width:720px){
 html body .platform-home .recreation-guide { gap: 24px; }
 html body .platform-home .guide-step-list { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
 html body .platform-home .guide-step-list>button { display: grid; align-content: start; gap: 8px; min-height: 104px; padding: 14px 8px; border: 1px solid #343b49; border-radius: 12px; }
 html body .platform-home .guide-step-list>button.is-active { background: #15213c; border-color: #8da7ff; }
 html body .platform-home .guide-step-list strong { font-size: 16px; line-height: 1.4; letter-spacing: 0; }
 html body .platform-home .guide-step-number { padding: 0; }
 html body .platform-home .guide-step-list :is(.guide-step-copy,svg) { display: none; }
 html body .platform-home .guide-mobile-copy { display: block; font-size: 16px; line-height: 1.6; margin: 0; color: #bac3d2; }
}

html body .account-auth-page .account-login-card h1 {font-size:32px;line-height:1.2;margin:12px 0 16px}
html body .account-page .customer-list li a {display:inline-flex;align-items:center;min-height:44px;font-size:14px;overflow-wrap:anywhere}
@media(max-width:720px){html body .account-auth-page .account-login-card h1{font-size:28px}}

html body .account-auth-page .registration-referral small {font-size:12px;line-height:1.5}
html body .account-page.workspace-page .studio-root .builder-heading .builder-heading-actions>.studio-control-trigger {font-size:14px;min-height:48px}
html body .account-page.workspace-page .studio-root .studio-inspector .studio-composer-fold>span {font-size:14px;white-space:normal;overflow:visible;text-overflow:clip;line-height:1.5}
html body .account-page.workspace-page .studio-root .studio-inspector .studio-composer-fold>small {font-size:12px;line-height:1.5}
html body .account-page.workspace-page .studio-root .studio-prompt-tip {font-size:13px;line-height:1.6}
html body .account-page.workspace-page .studio-root .studio-reference-strip :is(small,span) {font-size:12px;line-height:1.5}
html body .account-page.workspace-page .studio-root .recreation-heading-label {min-width:0;flex:1}
html body .account-page.workspace-page .studio-root .recreation-heading-label h1 {margin:0}
html body .account-page.workspace-page .studio-root .studio-control-content :is(button,label,summary) {font-size:14px;line-height:1.5}
html body .account-page.workspace-page .studio-root .studio-control-content button {min-height:44px}
html body .account-page .studio-root .studio-control-trigger>span {font-size:14px;line-height:1.5}

html body .account-page .content-admin small {font-size:13px;line-height:1.6}
html body .account-page .content-admin :is(summary,button) {min-height:44px}
html body .account-page .content-admin legend {font-size:20px;line-height:1.4}
html body .account-page .content-admin h3 {font-size:20px;line-height:1.4}

html body .interface-state {display:grid;gap:var(--platform-gap,12px);min-width:0;max-width:100%;margin-block:var(--space-4,16px);padding:var(--space-6,24px);border:1px solid var(--platform-border,#343b49);border-radius:var(--platform-radius,12px);background:var(--platform-surface,#11151c);color:var(--platform-text,#f3f2ed);font-size:var(--interface-copy);line-height:var(--interface-leading)}
html body .interface-state[data-compact=true] {margin:0;padding:0;border:0;background:transparent}
html body .interface-state-copy {display:grid;gap:var(--platform-gap,12px);min-width:0}
html body .interface-state .interface-state-copy :is(p,h1,h2,h3) {margin:0;max-width:100%;overflow-wrap:anywhere}
html body .interface-state .interface-state-copy p {font-size:var(--interface-copy);line-height:var(--interface-leading);color:var(--platform-muted,#adb5c4)}
html body .interface-state-actions {display:flex;flex-wrap:wrap;gap:var(--platform-gap,12px);min-width:0}
html body .interface-state button.interface-state-action {display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2,8px);max-width:100%;min-height:var(--platform-control,48px);padding:12px 16px;border:1px solid #728cff;border-radius:var(--platform-radius,12px);background:var(--platform-blue,#3157ff);color:#fff;font:inherit;font-size:var(--interface-label);line-height:1.5;white-space:normal;overflow-wrap:anywhere;text-align:center;cursor:pointer}
html body .interface-state button.interface-state-action:disabled {opacity:.52;cursor:not-allowed}
html body .interface-state button.interface-state-action:focus-visible {outline:2px solid var(--platform-focus,#a9baff);outline-offset:4px}
@media(max-width:720px){html body .interface-state:not([data-compact=true]){padding:20px}html body .interface-state-actions{display:grid;grid-template-columns:minmax(0,1fr)}html body .interface-state-actions>.interface-state-action{width:100%}}

/* Ordinary SocialDialog has one owner, independent of lazy route CSS order.
   Media stories, material pickers, crop tools and recipe viewers keep their own rules. */
html body .social-inline-dialog {inset:0;margin:auto;width:min(540px,calc(100vw - 32px));max-height:calc(100dvh - 48px);overflow:auto;border:1px solid #465168;border-radius:20px;padding:28px;color:#eef2fa;background:#121821;font:14px var(--font-sans,Manrope,Arial,sans-serif)}
html body .social-inline-dialog::backdrop {background:#000b;backdrop-filter:blur(5px)}
html body .social-inline-dialog>header {display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px}
html body .social-inline-dialog h2 {font:600 24px/1.25 var(--font-sans,Manrope,Arial,sans-serif);margin:0;min-width:0;overflow-wrap:anywhere}
/* Page reading rules must not change the same dialog's text or fields in the workspace. */
html body .account-page .social-inline-dialog h2 {line-height:1.25}
html body .social-inline-dialog p,html body .account-page .social-inline-dialog p {font-size:14px;line-height:normal;margin:0}
html body .social-inline-dialog>header>button {width:44px;height:44px;min-width:44px;flex-shrink:0;display:grid;place-items:center;padding:0;border:1px solid #404b60;border-radius:50%;background:transparent;color:inherit}
html body .social-inline-dialog label,html body .account-page .social-inline-dialog label {display:grid;gap:8px;font-size:14px;line-height:1.6;margin-block:16px}
html body .social-inline-dialog :is(select,textarea,input),html body .account-page .workspace-main .social-inline-dialog :is(select,textarea,input) {width:100%;min-height:48px;border:1px solid #465168;background:#090d14;border-radius:10px;padding:12px;color:inherit;font:16px/1.5 var(--font-sans,Manrope,Arial,sans-serif);scroll-margin-block:120px}
html body .social-inline-dialog :is(button,summary) {min-height:44px}
html body .social-inline-dialog button {font-size:14px;line-height:1.4}
html body .social-inline-dialog .social-primary {min-height:48px;width:100%;margin-top:16px}
@media(max-width:768px){html body .social-inline-dialog{padding:20px;max-height:90dvh}html body .social-inline-dialog h2{font-size:22px}}

/* One inset chevron for every native single-choice select, including lazy screens. */
html body select:not([multiple]):not([size]),html body select[size="1"] {
 appearance:none!important;-webkit-appearance:none!important;box-sizing:border-box;
 padding:9px 44px 9px 16px!important;min-height:44px;border-radius:999px!important;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b7c4db' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;
 background-repeat:no-repeat!important;background-position:right 16px center!important;background-size:16px!important;
}
html body .social-showcase-selects,html body .cabinet-catalog-picker .cabinet-catalog-selects {max-width:560px;gap:12px}
html body :is(.social-showcase-selects,.cabinet-catalog-selects) select {font-size:14px!important}
/* Decorative arrows stay on the text baseline, never become a new block. */
html body svg.lucide-arrow-up-right {display:inline-block;vertical-align:middle;flex-shrink:0}
html body :is(.overview-card-grid small,.cabinet-catalog-action,.customer-inline-link) {display:inline-flex;align-items:center;gap:8px}
@media(min-width:769px){html body .social-page .work-tags>a {min-height:32px;padding:4px 12px;font-size:12px;border-radius:999px}}
@media(forced-colors:active){html body select:not([multiple]):not([size]),html body select[size="1"]{appearance:auto!important;background-image:none!important}}

html body .account-page .studio-control-trigger{border-radius:999px!important;padding-inline:16px!important;column-gap:12px}
