/* PYGMALION ATELIER — 2026
 * A coherent visual foundation for the product, with a rebuilt workspace home.
 * Loaded last; no provider, account, billing or generation behavior is changed.
 * Contrast-oriented, responsive, motion-respectful and without third-party assets.
 */
@font-face {
    font-family:"Pygmalion Inter";
    src:url("../fonts/inter-latin-variable.woff2") format("woff2");
    font-style:normal; font-weight:100 900; font-display:swap;
}
body.pyg-atelier {
    --ink: #f5f6f8;
    --muted: #a8aeb8;
    --paper: #101216;
    --surface: #202329;
    --line: #303640;
    --accent: #94a9eb;
    --accent-dark: #b3c3f1;
    --lime: #a7dfc9;
    --danger: #ff919b;
    --radius: 16px;
    --shadow: 0 14px 36px rgba(0, 0, 0, .17);
    --polish-bg: #101216;
    --polish-panel: #202329;
    --polish-panel2: #24272e;
    --polish-elevated: #282c33;
    --polish-border: #303640;
    --polish-text: #f5f6f8;
    --polish-muted: #a8aeb8;
    --polish-accent: #94a9eb;
    --polish-accent-border: #b3c3f1;
    --polish-soft: #2e323a;
    color-scheme: dark;
    background: #101216;
    color: var(--ink);
    font-family: "Pygmalion Inter", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}
body.pyg-atelier::before, body.pyg-atelier::after { pointer-events: none; }
body.pyg-atelier :is(h1,h2,h3,h4) { letter-spacing: -.035em; text-wrap: balance; }
body.pyg-atelier :is(button, input, textarea, select) { font-family: inherit; }
body.pyg-atelier :is(a,button,summary,input,textarea,select):focus-visible {
    outline: 2px solid #94a9eb;
    outline-offset: 3px;
}
body.pyg-atelier :is(button,a,summary) { -webkit-tap-highlight-color: transparent; }
body.pyg-atelier :is(.primary-button,.secondary-button,.create-button) {
    border-radius: 11px;
    font-weight: 720;
    letter-spacing: -.01em;
    box-shadow: none;
    transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}
body.pyg-atelier :is(.primary-button,.create-button) {
    color: #101216;
    background: #94a9eb;
    border-color: #94a9eb;
}
body.pyg-atelier :is(.primary-button,.create-button):hover:not(:disabled) {
    color: #101216;
    background: #b3c3f1;
    border-color: #b3c3f1;
    transform: none;
}
body.pyg-atelier .secondary-button {
    color: #f5f6f8;
    background: #24272e;
    border-color: #39404a;
}
body.pyg-atelier :is(input:not([type=checkbox]):not([type=radio]):not([type=file]), textarea, select) {
    color: #f5f6f8;
    background: #14171c;
    border-color: #3f4651;
    border-radius: 11px;
}
body.pyg-atelier :is(input,textarea)::placeholder { color: #a8aeb8; opacity: 1; }
body.pyg-atelier :is(input,textarea,select):focus {
    border-color: #94a9eb;
    box-shadow: 0 0 0 3px rgba(148, 169, 235,.16);
}
body.pyg-atelier :is(input[type=checkbox],input[type=radio]) { accent-color: #94a9eb; }
body.pyg-atelier .page-shell {
    width: min(1376px, calc(100% - 56px));
    max-width: 1376px;
    min-height: calc(100vh - 210px);
    padding-top: 36px;
}
body.pyg-atelier .site-header {
    position: relative;
    top: auto;
    width: min(1376px, calc(100% - 56px));
    min-height: 72px;
    height: auto;
    margin: 14px auto 0;
    padding: 0 22px;
    border: 1px solid #282c33;
    border-radius: 16px;
    background: #14171c;
    box-shadow: none;
    backdrop-filter: none;
}
body.pyg-atelier .brand { gap: 11px; }
body.pyg-atelier .brand-mark {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    flex: 0 0 40px;
    border: 1px solid #525b67;
    border-radius: 11px;
    color: #d5d8df;
    background: #282c33;
    font-size: 1.35rem;
    font-weight: 780;
    box-shadow: none;
}
body.pyg-atelier .brand strong {
    color: #f5f6f8;
    font-size: .94rem;
    font-weight: 800;
    letter-spacing: .055em;
}
body.pyg-atelier .brand small { color: #a8aeb8; font-size: .59rem; letter-spacing: .14em; }
body.pyg-atelier .top-nav { gap: clamp(6px, .65vw, 12px); }
body.pyg-atelier .top-nav > a,
body.pyg-atelier .nav-dropdown-trigger,
body.pyg-atelier .nav-account-trigger {
    color: #bdc3cb;
    font-size: .81rem;
    font-weight: 660;
}
body.pyg-atelier .top-nav > a:not(.top-nav-create) {
    min-height: 41px;
    padding: 0 10px;
    border-radius: 9px;
    background: transparent;
}
body.pyg-atelier .top-nav > a:hover,
body.pyg-atelier .nav-dropdown-trigger:hover,
body.pyg-atelier .top-nav > a[aria-current=page],
body.pyg-atelier .nav-dropdown-trigger[aria-current=page] {
    color: #fff;
    background: #282c33;
}
/* Primary navigation action: deep cobalt, legible white text, contained glow. */
body.pyg-atelier .nav-create-split--desktop {
    border: 1px solid #6880e5;
    border-radius: 11px;
    background: linear-gradient(108deg, #455fcd 0%, #3653ba 100%);
    box-shadow: 0 5px 16px rgba(49, 77, 177, .22), inset 0 1px rgba(255,255,255,.16);
}
body.pyg-atelier .nav-create-split--desktop > .top-nav-create,
body.pyg-atelier .nav-create-split--desktop .nav-create-details > summary {
    color: #fff;
    font-size: .8rem;
    font-weight: 800;
    background: transparent;
    box-shadow: none;
}
body.pyg-atelier .nav-create-split--desktop > .top-nav-create { border-radius: 10px 0 0 10px; }
body.pyg-atelier .nav-create-split--desktop .nav-create-details > summary { border-left-color: rgba(235,241,255,.33); border-radius: 0 10px 10px 0; }
body.pyg-atelier .nav-create-split--desktop :is(a,summary):hover,
body.pyg-atelier .nav-create-split--desktop .nav-create-details[open] > summary {
    background: rgba(255,255,255,.14); color: #fff;
}
body.pyg-atelier .create-menu-panel,
body.pyg-atelier .nav-tools-panel,
body.pyg-atelier .nav-account-panel {
    border: 1px solid #39404a;
    border-radius: 14px;
    background: #24272e;
    box-shadow: 0 20px 60px #0008;
    color: #f5f6f8;
}
body.pyg-atelier :is(.create-menu-panel,.nav-tools-panel,.nav-account-panel) a:hover {
    background: #2e323a; color: #fff;
}
body.pyg-atelier .credit-balance-link {
    border: 1px solid #39404a;
    border-radius: 10px;
    color: #d5d8df;
    background: #24272e;
}
body.pyg-atelier .nav-avatar {
    border: 1px solid #525b67;
    border-radius: 11px;
    color: #d5d8df;
    background: #282c33;
}
body.pyg-atelier .site-footer {
    width: min(1376px, calc(100% - 56px));
    max-width: 1376px;
    margin: 0 auto 28px;
    padding: 19px 2px 0;
    border-color: #2e323a;
    color: #b3c3f1;
    font-size: .75rem;
}
body.pyg-atelier .site-footer a { color: #b3c3f1; font-weight: 650; }
body.pyg-atelier .flash {
    margin: 0 auto 22px;
    color: #dbffed;
    background: #17382b;
    border: 1px solid #376e55;
    box-shadow: none;
}
body.pyg-atelier .flash--notice { color: #fff0cb; background: #382e20; border-color: #8d7144; }
body.pyg-atelier .global-form-errors { border-radius: 12px; }
/* Shared generator workbenches and landing pages: calmer edges and clearer states. */
body.pyg-atelier :is(.creation-form,.image-v2-workbench,.image-v2-sidebar,.image-v2-panel,
    .history-card,.analysis-history-card,.auth-card,.contact-form,.credit-package,
    .result-card,.series-panel,.characters-panel,.st-panel) { box-shadow: none; }
body.pyg-atelier :is(.image-v2-heading h1,.section-heading h1,.result-heading h1) {
    color: #f5f6f8;
    letter-spacing: -.045em;
}
body.pyg-atelier :is(.image-v2-heading p,.section-heading p,.form-hint,.image-v2-kicker) { line-height: 1.55; }
body.pyg-atelier :is(.image-v2-history-link,.image-v2-preview-heading>a) {
    border-radius: 10px;
    color: #bdc3cb;
    border-color: #39404a;
    background: #24272e;
}
body.pyg-atelier .image-v2-kicker { color: #b3c3f1; }
body.pyg-atelier :is(.prism-tool,.history-card,.analysis-history-card,.atelier-tool-card,.atelier-workflow) {
    transition: border-color .18s ease, background-color .18s ease;
}
body.pyg-atelier :is(.prism-tool,.history-card,.analysis-history-card):hover { transform: none; }


/* Shared creative workbenches: same language on Image, Video, Speech and Text. */
body.pyg-atelier.pyg-create-image-v2 {
    --imgv-bg:#101216;
    --imgv-surface:#202329;
    --imgv-elevated:#24272e;
    --imgv-border:#303640;
    --imgv-accent:#94a9eb;
    --imgv-text:#f5f6f8;
    --imgv-muted:#bdc3cb;
    background: #101216;
}
body.pyg-atelier.pyg-create-image-v2 .image-v2-heading-icon {
    color:#b3c3f1;
    border-color:#525b67;
    background:#2e323a;
    box-shadow:none;
}
body.pyg-atelier.pyg-create-image-v2 .image-v2-workbench > .creation-form,
body.pyg-atelier.pyg-create-image-v2 .image-v2-preview-panel {
    border:1px solid #303640;
    border-radius:16px;
    background:#202329;
    box-shadow:none;
}
body.pyg-atelier.pyg-create-image-v2 .image-v2-section-label > .image-v2-step,
body.pyg-atelier.pyg-create-image-v2 .image-v2-settings .image-v2-step {
    border-color:#525b67; background:#282c33; color:#f5f6f8;
}
body.pyg-atelier.pyg-create-image-v2 .image-v2-panel-eyebrow {
    color:#b3c3f1;
}
body.pyg-atelier.pyg-create-image-v2 .image-v2-option-tile {
    background:#14171c; color:#d5d8df;
    border-color:#3f4651; box-shadow:none; border-radius:11px;
}
body.pyg-atelier.pyg-create-image-v2 .image-v2-option-tile:hover {
    background:#282c33; border-color:#94a9eb; transform:none;
}
body.pyg-atelier.pyg-create-image-v2 .image-v2-option-tile.is-selected {
    background:#2e323a; color:#fff; border-color:#94a9eb;
    box-shadow:inset 0 0 0 1px #94a9eb44;
}
body.pyg-atelier.pyg-create-image-v2 .image-v2-option-tile.is-selected .image-v2-option-icon {
    color:#b3c3f1;
}
body.pyg-atelier.pyg-create-image-v2 .image-v2-option-tile.is-selected .image-v2-option-detail {
    color:#b3c3f1;
}
body.pyg-atelier.pyg-create-image-v2 .image-v2-settings {
    border-color:#39404a; border-radius:13px; background:#24272e;
}
body.pyg-atelier.pyg-create-image-v2 .image-v2-settings[open] {
    border-color:#525b67; background:#202329;
}
body.pyg-atelier.pyg-create-image-v2 .image-v2-settings > summary:hover {
    background:#282c33;
}
body.pyg-atelier.pyg-create-image-v2 :is(.generation-mode-choice input:checked + span,
    .choice-pill input:checked + span) {
    color:#d5d8df; border-color:#94a9eb; background:#282c33;
}
body.pyg-atelier.pyg-create-image-v2 .image-v2-preview-canvas {
    border-color:#39404a;
    background-color:#14171c;
}
body.pyg-atelier.pyg-create-video-v2 textarea#prompt,
body.pyg-atelier.pyg-create-output-v2 textarea#prompt,
body.pyg-atelier.pyg-create-output-v2 #lyrics {
    border-color:#3f4651; color:#d5d8df; background:#14171c;
}
body.pyg-atelier.pyg-create-video-v2 textarea#prompt:focus,
body.pyg-atelier.pyg-create-output-v2 textarea#prompt:focus,
body.pyg-atelier.pyg-create-output-v2 #lyrics:focus {
    border-color:#94a9eb; box-shadow:0 0 0 3px #94a9eb25;
}
body.pyg-atelier.pyg-create-video-v2 .video-reference-field,
body.pyg-atelier.pyg-create-output-v2 .lyrics-choice {
    border-color:#39404a; background:#24272e; border-radius:12px;
}
body.pyg-atelier.pyg-create-video-v2 .video-reference-dropzone {
    border-color:#525b67; background:#14171c;
}
body.pyg-atelier.pyg-create-video-v2 .video-reference-dropzone:is(:hover,.is-dragging) {
    border-color:#94a9eb; background:#343a44; box-shadow:0 0 0 3px #94a9eb20; transform:none;
}
body.pyg-atelier.pyg-create-video-v2 :is(.video-reference-mode,.optional-chip) {
    color:#b3c3f1; border-color:#525b67; background:#2e323a;
}
body.pyg-atelier.pyg-create-output-v2 .generation-mode-choice input:checked + span,
body.pyg-atelier.pyg-create-output-v2 .lyrics-choice .choice-pill input:checked + span {
    color:#d5d8df; border-color:#94a9eb; background:#282c33;
}
body.pyg-atelier.pyg-create-output-v2 .exact-lyrics {
    border-color:#39404a; background:#202329;
}


/* 2026-10-30 — neutral graphite refinement: color should support the content. */
body.pyg-atelier {
    --pyg-bg: #101216;
    --pyg-card: #1b1e24;
    --pyg-card-raised: #24272e;
    --pyg-stroke: #303640;
    --pyg-stroke-strong: #444c58;
    --pyg-text: #f5f6f8;
    --pyg-text-secondary: #a8aeb8;
    --pyg-brand: #94a9eb;
    --pyg-brand-hover: #b3c3f1;
    --ink: var(--pyg-text);
    --muted: var(--pyg-text-secondary);
    --paper: var(--pyg-bg);
    --surface: var(--pyg-card);
    --line: var(--pyg-stroke);
    --accent: var(--pyg-brand);
    --accent-dark: var(--pyg-brand-hover);
    --polish-bg: var(--pyg-bg);
    --polish-panel: var(--pyg-card);
    --polish-panel2: var(--pyg-card-raised);
    --polish-elevated: #282c33;
    --polish-border: var(--pyg-stroke);
    --polish-text: var(--pyg-text);
    --polish-muted: var(--pyg-text-secondary);
    --polish-accent: var(--pyg-brand);
    --polish-accent-border: var(--pyg-brand-hover);
    --polish-soft: #292d35;
}
/* Secondary headings and decorative signposting stay neutral; actions receive the accent. */
body.pyg-atelier-home .atelier-hero h1 span { color: #d5d8df; }
body.pyg-atelier-home :is(.atelier-overline,.atelier-kicker,.atelier-tool-index,
    .atelier-steps > li > span,.atelier-prompt-help) { color: #a8aeb8; }
body.pyg-atelier-home .atelier-overline-dot { background: #94a9eb; box-shadow: none; }
body.pyg-atelier-home .atelier-guide-emblem,
body.pyg-atelier-home .atelier-tool-icon,
body.pyg-atelier-home .atelier-workflow-symbol {
    color: #e0e2e8; background: #282c33; border-color: #444c58;
}
body.pyg-atelier-home .atelier-guide h2 span { color: #bfc4cd; }
body.pyg-atelier-home .atelier-surface-heading h2 { color: #f5f6f8; }
body.pyg-atelier-home .atelier-format-tabs.prism-type-switch > button.is-active {
    background: #303640; border-color: #616d82; color: #f5f6f8;
}
body.pyg-atelier-home .atelier-prompt-box.prism-search-box:focus-within {
    border-color: #94a9eb; box-shadow: 0 0 0 3px rgba(148,169,235,.13);
}
body.pyg-atelier-home .atelier-customize.prism-quick-advanced,
body.pyg-atelier-home .atelier-resume-links a {
    color: #d5d8df; border-color: #444c58; background: #24272e;
}
body.pyg-atelier-home .atelier-launch.prism-quick-primary,
body.pyg-atelier-home .atelier-arrow-submit.prism-search-submit {
    color: #101216; background: #94a9eb; border-color: #94a9eb;
}
body.pyg-atelier-home .atelier-launch.prism-quick-primary:hover:not(:disabled),
body.pyg-atelier-home .atelier-arrow-submit.prism-search-submit:hover {
    color: #101216; background: #b3c3f1; border-color: #b3c3f1;
}
body.pyg-atelier-home .atelier-tool-card,
body.pyg-atelier-home .atelier-workflow,
body.pyg-atelier-home .atelier-composer-surface { background: #1b1e24; border-color: #303640; }
body.pyg-atelier-home .atelier-guide { background: #202329; border-color: #303640; }
body.pyg-atelier-home :is(.atelier-tool-card,.atelier-workflow):hover {
    background: #24272e; border-color: #667a9b;
}
body.pyg-atelier :is(.image-v2-kicker,.image-v2-panel-eyebrow) { color: #b3c3f1; }
body.pyg-atelier.pyg-create-image-v2 .image-v2-workbench > .creation-form,
body.pyg-atelier.pyg-create-image-v2 .image-v2-preview-panel {
    background: #1b1e24; border-color: #303640;
}
body.pyg-atelier.pyg-create-image-v2 .image-v2-option-tile.is-selected {
    background: #323843; border-color: #94a9eb; color: #f5f6f8;
}
body.pyg-atelier.pyg-create-video-v2 .video-reference-field,
body.pyg-atelier.pyg-create-output-v2 .lyrics-choice { background: #202329; border-color: #303640; }

/* Home: no stock hero artwork, no neon gradients; one clear workspace. */
body.pyg-atelier-home {
    background: #101216;
}
body.pyg-atelier-home::before,
body.pyg-atelier-home::after { display: none; }
body.pyg-atelier-home .page-shell {
    width: min(1376px, calc(100% - 56px));
    max-width: 1376px;
    padding: 45px 0 82px;
}
.atelier-home { width: 100%; max-width: 1376px; margin: 0 auto; }
.atelier-hero { max-width: 900px; margin-bottom: 35px; }
.atelier-overline, .atelier-kicker {
    display: inline-flex; align-items: center; gap: 10px;
    color: #94a9eb; font-size: .72rem; font-weight: 750;
    letter-spacing: .14em;
}
.atelier-overline-dot { width: 7px; height: 7px; border-radius: 50%; background: #8ccebc; box-shadow: 0 0 0 4px #8ccebc13; }
.atelier-overline-separator { width: 18px; height: 1px; background: #525b67; }
.atelier-hero h1 {
    margin: 16px 0 12px; max-width: 920px;
    color: #f5f6f8; font-size: clamp(3.15rem, 5.3vw, 5.7rem);
    line-height: 1.04; font-weight: 790; letter-spacing: -.067em;
}
.atelier-hero h1 span { color: #94a9eb; }
.atelier-hero > p {
    max-width: 710px; margin: 0; color: #bdc3cb;
    font-size: clamp(1rem, 1.2vw, 1.14rem); line-height: 1.7;
}
.atelier-workspace {
    display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(285px, .84fr);
    gap: 18px; align-items: stretch;
}
.atelier-composer-surface, .atelier-guide {
    min-width: 0; border: 1px solid #303640;
    border-radius: 19px; background: #202329; box-shadow: none;
}
.atelier-composer-surface { padding: clamp(24px, 3vw, 37px); }
.atelier-surface-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.atelier-surface-heading h2 {
    margin: 9px 0 0; font-size: clamp(1.4rem, 2.1vw, 1.9rem);
    font-weight: 750; letter-spacing: -.045em; color: #f5f6f8;
}
.atelier-surface-status {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 11px; border: 1px solid #3a5a4d;
    border-radius: 999px; background: #1f342d; color: #b8e1d2;
    font-size: .72rem; font-weight: 680; white-space: nowrap;
}
.atelier-surface-status > span { width: 6px; height: 6px; border-radius: 50%; background: #9ad6c3; }
body.pyg-atelier-home .atelier-composer.prism-composer--search {
    display: block; width: 100%; min-width: 0; max-width: none;
    margin: 0; padding: 0; border: 0; border-radius: 0;
    background: transparent; box-shadow: none; backdrop-filter: none; text-align: left;
}
body.pyg-atelier-home .atelier-composer.prism-composer--search:focus-within { border: 0; box-shadow: none; }
body.pyg-atelier-home .atelier-format-tabs.prism-type-switch {
    display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px;
    margin: 0 0 25px; padding: 5px;
    border: 1px solid #303640; border-radius: 12px;
    background: #14171c; box-shadow: none;
}
body.pyg-atelier-home .atelier-format-tabs.prism-type-switch > button {
    display: flex; align-items: center; justify-content: center; flex-wrap: nowrap;
    gap: 8px; width: 100%; min-width: 0; min-height: 46px;
    padding: 9px 8px; border: 1px solid transparent; border-radius: 8px;
    background: transparent; box-shadow: none; color: #bdc3cb;
    font-size: .86rem; font-weight: 670;
    transition: background .16s ease,color .16s ease,border-color .16s ease;
}
body.pyg-atelier-home .atelier-format-tabs.prism-type-switch > button svg { width: 18px; height: 18px; flex: 0 0 18px; }
body.pyg-atelier-home .atelier-format-tabs.prism-type-switch > button.is-active {
    border-color: #9099a5; background: #282c33; color: #f5f6f8;
}
body.pyg-atelier-home .atelier-format-tabs.prism-type-switch > button:hover:not(.is-active) { color: #fff; background: #24272e; }
.atelier-input-label { display: block; margin-bottom: 11px; color: #d5d8df; font-size: .86rem; font-weight: 720; }
body.pyg-atelier-home .atelier-prompt-box.prism-search-box {
    display: flex; align-items: flex-end; width: 100%; min-height: 176px;
    gap: 14px; padding: 15px;
    border: 1px solid #3f4651; border-radius: 13px;
    background: #14171c; box-shadow: none;
    transition: border-color .16s ease, box-shadow .16s ease;
}
body.pyg-atelier-home .atelier-prompt-box.prism-search-box:focus-within {
    border-color: #94a9eb; box-shadow: 0 0 0 3px #94a9eb1e;
}
body.pyg-atelier-home .atelier-prompt-box textarea[data-home-prompt] {
    flex: 1 1 auto; width: 100%; min-width: 0; min-height: 127px;
    max-height: 220px; margin: 0; padding: 2px; resize: none; 
    border: 0; border-radius: 0; background: transparent;
    box-shadow: none; color: #f5f6f8; font-size: 1rem; line-height: 1.6;
}
body.pyg-atelier-home .atelier-prompt-box textarea[data-home-prompt]:focus { border: 0; box-shadow: none; outline: none; }
body.pyg-atelier-home .atelier-prompt-box textarea::placeholder { color: #a8aeb8; }
body.pyg-atelier-home .atelier-arrow-submit.prism-search-submit {
    display: grid; place-items: center; flex: 0 0 44px;
    width: 44px; height: 44px; min-height: 44px; margin: 0;
    padding: 0; border: 1px solid #94a9eb; border-radius: 11px;
    background: #94a9eb; color: #101216;
    box-shadow: none; opacity: 1; transform: none;
}
body.pyg-atelier-home .atelier-arrow-submit svg { width: 20px; height: 20px; stroke-width: 2; }
body.pyg-atelier-home .atelier-arrow-submit:hover { background: #b3c3f1; }
.atelier-composer-bottom {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; margin-top: 16px;
}
.atelier-prompt-help { color: #9099a5; font-size: .76rem; line-height: 1.5; }
body.pyg-atelier-home .atelier-composer-actions.prism-quick-actions {
    display: flex; align-items: center; justify-content: flex-end;
    gap: 9px; margin: 0; padding: 0;
}
body.pyg-atelier-home .atelier-composer-actions > button {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 43px; margin: 0; padding: 9px 15px;
    border-radius: 10px; font-size: .78rem; line-height: 1.3;
    letter-spacing: 0; font-weight: 740; transform: none; box-shadow: none;
    white-space: nowrap;
}
body.pyg-atelier-home .atelier-customize.prism-quick-advanced {
    color: #d5d8df; border: 1px solid #3f4651; background: #24272e;
}
body.pyg-atelier-home .atelier-customize:hover { color: #fff; background: #303640; }
body.pyg-atelier-home .atelier-launch.prism-quick-primary {
    color: #101216; border: 1px solid #94a9eb; background: #94a9eb;
}
body.pyg-atelier-home .atelier-launch.prism-quick-primary:hover:not(:disabled) { background: #b3c3f1; }
body.pyg-atelier-home .atelier-launch.prism-quick-primary:disabled {
    color: #a8aeb8; border-color: #444c58; background: #282c33; opacity: .85; cursor: not-allowed;
}
body.pyg-atelier-home .atelier-launch [data-home-quick-price] { color: inherit; font-size: .77rem; opacity: .8; }
body.pyg-atelier-home .atelier-quote-status.prism-quick-status {
    min-height: 18px; margin: 14px 0 0; padding: 0;
    color: #a8aeb8; font-size: .75rem; text-align: left; line-height: 1.5;
}
.atelier-guide {
    display: flex; flex-direction: column; min-height: 100%;
    padding: clamp(24px, 3vw, 33px);
    background: #202329; border-color: #303640;
}
.atelier-guide-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.atelier-guide-emblem { display: grid; place-items: center; width: 41px; height: 41px; border: 1px solid #525b67; border-radius: 12px; color: #b3c3f1; background: #2e323a; }
.atelier-guide-emblem svg { width: 24px; height: 24px; }
.atelier-guide h2 { margin: 23px 0 8px; font-size: clamp(1.55rem, 2.3vw, 2.25rem); line-height: 1.15; color: #f5f6f8; }
.atelier-guide h2 span { color: #d5d8df; }
.atelier-guide > p { margin: 4px 0 22px; color: #a8aeb8; font-size: .88rem; line-height: 1.6; }
.atelier-steps { display: grid; gap: 0; margin: auto 0 24px; padding: 0; list-style: none; }
.atelier-steps > li { display: grid; grid-template-columns: 29px minmax(0,1fr); gap: 13px; padding: 16px 0; border-top: 1px solid #525b67; }
.atelier-steps > li > span { color: #94a9eb; font-size: .73rem; font-weight: 770; padding-top: 3px; font-variant-numeric: tabular-nums; }
.atelier-steps strong { display: block; color: #f5f6f8; font-size: .86rem; font-weight: 720; }
.atelier-steps small { display: block; margin-top: 4px; color: #a8aeb8; font-size: .78rem; line-height: 1.42; }
.atelier-guide-link {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    margin-top: auto; padding: 15px 0 0; border-top: 1px solid #525b67;
    color: #b3c3f1; font-size: .83rem; font-weight: 720;
}
.atelier-guide-link:hover { color: #fff; }
.atelier-inspiration { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.atelier-inspiration > span { margin-right: 3px; color: #a8aeb8; font-size: .8rem; }
.atelier-inspiration button {
    display: inline-flex; gap: 10px; align-items: center;
    min-height: 36px; padding: 7px 12px;
    border: 1px solid #525b67; border-radius: 999px;
    color: #d5d8df; background: #202329;
    font-size: .78rem; font-weight: 630;
}
.atelier-inspiration button:hover { color: #fff; border-color: #94a9eb; background: #343a44; }
.atelier-inspiration button span { color: #94a9eb; }
body.pyg-atelier-home .atelier-story-hint.prism-home-intent {
    display: flex; align-items: center; flex-wrap: wrap; gap: 15px;
    margin: 18px 0 0; padding: 15px 19px;
    border: 1px solid #525b67; border-radius: 12px;
    background: #24272e; box-shadow: none; color: #d5d8df;
}
body.pyg-atelier-home .atelier-story-hint p { margin: 0; flex: 1; font-size: .83rem; line-height: 1.5; }
body.pyg-atelier-home .atelier-story-hint a { color: #b3c3f1; font-size: .82rem; font-weight: 750; }
.atelier-noscript { color: #f5d8ad; font-size: .87rem; }
.atelier-resume {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    margin: 30px 0 0; padding: 22px 25px;
    border: 1px solid #2e323a; border-radius: 15px; background: #24272e;
}
.atelier-resume > div:first-child { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.atelier-resume strong { color: #f5f6f8; font-size: 1rem; }
.atelier-resume small { color: #a8aeb8; font-size: .8rem; }
.atelier-resume-links { display: flex; flex-wrap: wrap; gap: 12px; }
.atelier-resume-links a {
    display: inline-flex; align-items: center; gap: 14px; min-height: 40px;
    padding: 9px 13px; border: 1px solid #3f4651; border-radius: 10px;
    color: #f5f6f8; background: #282c33; font-size: .81rem; font-weight: 680;
}
.atelier-resume-links a:hover { border-color: #94a9eb; }
.atelier-explore, .atelier-workflows { margin-top: 66px; }
.atelier-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 0 20px; }
.atelier-section-heading h2 { margin: 7px 0 0; color: #f5f6f8; font-size: clamp(1.55rem,2.5vw,2.18rem); line-height: 1.18; }
.atelier-section-heading > p { margin: 0 0 3px; color: #bdc3cb; font-size: .87rem; }
.atelier-tool-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.atelier-tool-card {
    display: flex; flex-direction: column; min-width: 0; min-height: 215px;
    padding: 21px; border: 1px solid #303640; border-radius: 15px;
    background: #202329; color: #f5f6f8; text-decoration: none;
    box-shadow: none;
}
.atelier-tool-card:hover { border-color: #94a9eb; background: #24272e; }
.atelier-tool-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.atelier-tool-icon {
    display: grid; place-items: center; width: 42px; height: 42px;
    border: 1px solid #444c58; border-radius: 11px; color: #94a9eb; background: #343a44;
}
.atelier-tool-icon svg { width: 23px; height: 23px; }
.atelier-tool-index { color: #9099a5; font-size: .72rem; font-variant-numeric: tabular-nums; }
.atelier-tool-copy { display: block; margin: 24px 0 auto; }
.atelier-tool-copy strong { display: block; color: #f5f6f8; font-size: 1.16rem; font-weight: 730; letter-spacing: -.03em; }
.atelier-tool-copy small { display: block; margin-top: 6px; color: #a8aeb8; font-size: .8rem; line-height: 1.48; }
.atelier-tool-action { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; padding-top: 14px; border-top: 1px solid #303640; color: #b3c3f1; font-size: .79rem; font-weight: 680; }
.atelier-workflow-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.atelier-workflow {
    display: grid; grid-template-columns: 47px minmax(0,1fr) auto; align-items: center; gap: 16px;
    min-height: 122px; padding: 23px; border: 1px solid #303640; border-radius: 15px;
    background: #202329; color: #f5f6f8;
}
.atelier-workflow:hover { border-color: #94a9eb; background: #282c33; }
.atelier-workflow-symbol {
    display: grid; place-items: center; width: 47px; height: 47px;
    border: 1px solid #444c58; border-radius: 12px; color: #b3c3f1; background: #2e323a;
    font-size: 1.35rem;
}
.atelier-workflow strong { display: block; font-size: 1.06rem; }
.atelier-workflow small { display: block; margin-top: 6px; color: #a8aeb8; font-size: .82rem; line-height: 1.48; }
.atelier-workflow-arrow { align-self: start; color: #b3c3f1; font-size: 1.1rem; }

/* Keep existing functional pages readable within a coherent visual system. */
body.pyg-atelier :is(.section-heading,.image-v2-heading,.prism-section-heading) h1 { text-wrap: balance; }
body.pyg-atelier :is(.creator,.result-page,.library-page,.credits-page,.analysis-page,.account-page) { min-width: 0; }
body.pyg-atelier :is(.modal,.payment-dialog,.nav-account-panel,.nav-tools-panel,.create-menu-panel) { overscroll-behavior: contain; }
body.pyg-atelier :is(.flash,.global-form-errors,.field-error) { line-height: 1.5; }

@media (max-width: 1180px) {
    body.pyg-atelier .site-header { padding: 0 14px; width: min(1376px, calc(100% - 32px)); }
    body.pyg-atelier .page-shell,
    body.pyg-atelier-home .page-shell,
    body.pyg-atelier .site-footer { width: calc(100% - 32px); }
    body.pyg-atelier .top-nav { gap: 3px; }
    body.pyg-atelier .top-nav > a:not(.top-nav-create) { padding: 0 6px; }
    .atelier-workspace { grid-template-columns: minmax(0,1.3fr) minmax(270px,.78fr); }
    .atelier-composer-bottom { flex-wrap: wrap; }
    .atelier-composer-actions { margin-left: auto !important; }
}
@media (max-width: 900px) {
    .atelier-workspace { grid-template-columns: 1fr; }
    .atelier-guide { min-height: 0; }
    .atelier-guide h2 { margin-top: 14px; }
    .atelier-steps { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 12px 0 19px; }
    .atelier-steps > li { display: block; }
    .atelier-steps > li > span { display: block; margin-bottom: 10px; }
    .atelier-tool-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
    body.pyg-atelier .site-header { min-height: 62px; height: 62px; margin-top: 8px; padding: 0 15px; border-radius: 13px; }
    body.pyg-atelier .brand-mark { width: 36px; height: 36px; flex-basis: 36px; font-size: 1.16rem; }
    body.pyg-atelier .brand strong { font-size: .85rem; }
    body.pyg-atelier .page-shell,
    body.pyg-atelier-home .page-shell { padding: 28px 0 115px; }
    body.pyg-atelier .site-footer { margin: 0 auto 100px; flex-wrap: wrap; gap: 12px; }
    body.pyg-atelier .mobile-nav {
        z-index: 55; bottom: max(10px, env(safe-area-inset-bottom));
        border: 1px solid #525b67; border-radius: 17px;
        background: rgba(27,30,36,.97); box-shadow: 0 12px 40px rgba(0,0,0,.4);
        backdrop-filter: blur(16px);
    }
    body.pyg-atelier .mobile-nav :is(a,summary) { color: #bdc3cb; }
    body.pyg-atelier .mobile-nav :is(a,summary)[aria-current=page] { color: #f5f6f8; }
    body.pyg-atelier .mobile-nav span { color: #b3c3f1; }
    .atelier-hero { margin-bottom: 25px; }
    .atelier-hero h1 { font-size: clamp(2.4rem,10vw,4.2rem); }
    .atelier-hero > p { font-size: .95rem; line-height: 1.55; }
    .atelier-composer-surface { padding: 23px 18px; }
    .atelier-surface-heading { margin-bottom: 20px; }
    .atelier-surface-status { display: none; }
    .atelier-steps { grid-template-columns: 1fr; gap: 0; }
    .atelier-steps > li { display: grid; grid-template-columns: 29px 1fr; padding: 13px 0; }
    .atelier-steps > li > span { margin: 0; }
    .atelier-section-heading { display: block; }
    .atelier-section-heading > p { margin-top: 8px; }
    .atelier-workflow-grid { grid-template-columns: 1fr; }
    .atelier-resume { display: block; }
    .atelier-resume-links { margin-top: 17px; }
}
@media (max-width: 520px) {
    .atelier-overline { font-size: .64rem; gap: 7px; }
    .atelier-hero h1 { font-size: clamp(2.32rem,11.2vw,3.1rem); }
    .atelier-surface-heading h2 { font-size: 1.43rem; }
    body.pyg-atelier-home .atelier-format-tabs.prism-type-switch { gap: 3px; padding: 4px; }
    body.pyg-atelier-home .atelier-format-tabs.prism-type-switch > button {
        flex-direction: column; gap: 5px; min-height: 64px; padding: 6px 3px;
        font-size: .71rem; line-height: 1.2;
    }
    body.pyg-atelier-home .atelier-format-tabs.prism-type-switch > button svg { width: 18px; height: 18px; }
    body.pyg-atelier-home .atelier-prompt-box.prism-search-box { min-height: 180px; }
    body.pyg-atelier-home .atelier-prompt-box textarea[data-home-prompt] { min-height: 130px; font-size: .93rem; }
    .atelier-composer-bottom { display: block; }
    .atelier-prompt-help { display: block; margin-bottom: 15px; }
    body.pyg-atelier-home .atelier-composer-actions.prism-quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
    body.pyg-atelier-home .atelier-composer-actions > button { padding: 9px 6px; white-space: normal; font-size: .74rem; }
    body.pyg-atelier-home .atelier-launch [data-home-quick-price] { font-size: .7rem; }
    .atelier-tool-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .atelier-tool-card { padding: 16px; min-height: 230px; }
    .atelier-tool-copy { margin-top: 19px; }
    .atelier-tool-copy small { font-size: .74rem; }
    .atelier-tool-icon { width: 37px; height: 37px; }
    .atelier-resume-links a { width: 100%; justify-content: space-between; }
    .atelier-workflow { grid-template-columns: 39px minmax(0,1fr) auto; padding: 17px; gap: 10px; }
    .atelier-workflow-symbol { width: 39px; height: 39px; }
}
@media (prefers-reduced-motion: reduce) {
    body.pyg-atelier *, body.pyg-atelier *::before, body.pyg-atelier *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
