/* AniMaker visual refinement layer.
   This file intentionally loads after the legacy bundle so the current
   visual system has one maintainable source of truth. */

:root {
    --ref-paper: #f7f9f8;
    --ref-paper-strong: #ffffff;
    --ref-ink: #171a21;
    --ref-ink-soft: #4f5967;
    --ref-ink-faint: #687483;
    --ref-line: rgba(28, 39, 51, 0.11);
    --ref-line-strong: rgba(28, 39, 51, 0.18);
    --ref-teal: #147f84;
    --ref-teal-bright: #25b9bd;
    --ref-mint: #d9f4eb;
    --ref-coral: #f06f5f;
    --ref-yellow: #f3d75f;
    --ref-shadow: 0 18px 50px rgba(35, 48, 60, 0.09);
    --ref-radius: 18px;
    --ref-radius-lg: 26px;
    --ref-content: 1180px;
}

html {
    color-scheme: light;
    background: var(--ref-paper);
}

html body[data-page] {
    --ink: var(--ref-ink);
    --muted: var(--ref-ink-soft);
    min-height: 100vh;
    color: var(--ref-ink);
    background:
        linear-gradient(180deg, rgba(214, 242, 238, 0.34), transparent 260px),
        var(--ref-paper) !important;
    font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    font-weight: 500;
}

html body[data-page] :is(h1, h2, h3, h4, strong, b) {
    color: var(--ref-ink);
    text-wrap: balance;
}

html body[data-page] :is(p, small, .muted) {
    color: var(--ref-ink-soft);
}

html body[data-page] :is(p, small) {
    line-height: 1.68;
}

html body[data-page] :is(.eyebrow, [class*="-source-notice"] > span) {
    color: var(--ref-teal) !important;
    letter-spacing: 0 !important;
    font-weight: 900 !important;
}

html body[data-page] :is(a, button, input, textarea, select, summary):focus-visible {
    outline: 3px solid rgba(37, 185, 189, 0.28) !important;
    outline-offset: 3px !important;
}

html body[data-page] :is(input, textarea, select) {
    border: 1px solid var(--ref-line-strong) !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    color: var(--ref-ink) !important;
    box-shadow: none !important;
}

html body[data-page] :is(input, textarea, select)::placeholder {
    color: #7b8694 !important;
    opacity: 1 !important;
}

html body[data-page] :is(input, textarea, select):focus {
    border-color: rgba(20, 127, 132, 0.58) !important;
    box-shadow: 0 0 0 4px rgba(37, 185, 189, 0.11) !important;
}

/* Navigation: one quiet utility bar, not a floating card. */
html body[data-page] :is(.topbar, .shared-nav-root) {
    position: relative;
    z-index: 50;
}

html body[data-page] .shared-nav {
    width: 100% !important;
    max-width: none !important;
    min-height: 68px !important;
    padding: 8px max(22px, calc((100vw - var(--ref-content)) / 2)) !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ref-line) !important;
    border-radius: 0 !important;
    background: rgba(252, 253, 253, 0.92) !important;
    box-shadow: none !important;
    backdrop-filter: blur(18px) saturate(1.08) !important;
}

html body[data-page] .shared-nav-links > a {
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: #566170 !important;
    box-shadow: none !important;
}

html body[data-page] .shared-nav-links > a:is(:hover, :focus-visible) {
    color: var(--ref-ink) !important;
    background: rgba(20, 127, 132, 0.07) !important;
}

html body[data-page] .shared-nav-links > a.active {
    color: var(--ref-ink) !important;
    background: transparent !important;
    box-shadow: inset 0 -3px 0 var(--ref-teal-bright) !important;
}

html body[data-page] :is(.primary-btn, .primary-link) {
    border: 1px solid #1d2632 !important;
    border-radius: 14px !important;
    background: #1d2632 !important;
    color: #fff !important;
    box-shadow: 0 9px 22px rgba(29, 38, 50, 0.16) !important;
}

html body[data-page] :is(.primary-btn, .primary-link):is(:hover, :focus-visible) {
    border-color: #0d6569 !important;
    background: #0d6569 !important;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(13, 101, 105, 0.22) !important;
}

html body[data-page] :is(.secondary-btn, .ghost-link, .link-button, .nav-button) {
    border: 1px solid var(--ref-line-strong) !important;
    border-radius: 13px !important;
    background: rgba(255, 255, 255, 0.64) !important;
    color: #2f3946 !important;
    box-shadow: none !important;
}

html body[data-page] :is(.secondary-btn, .ghost-link, .link-button, .nav-button):is(:hover, :focus-visible) {
    border-color: rgba(20, 127, 132, 0.32) !important;
    background: rgba(218, 245, 237, 0.62) !important;
    color: #0d6469 !important;
}

html body[data-page] .shared-nav-primary-action {
    border: 0 !important;
    background: linear-gradient(105deg, #1b2835 0 64%, #16878c) !important;
}

html body[data-page] :is(.pill, .filter-count) {
    border-color: rgba(20, 127, 132, 0.16) !important;
    background: rgba(217, 244, 235, 0.76) !important;
    color: #146a6e !important;
}

/* Shared page rhythm. Sections use space and rules; cards are reserved for items. */
html body[data-page] :is(
    .vue-home,
    .vue-gallery,
    .vue-characters,
    .vue-templates,
    .vue-feed,
    .vue-me-dashboard
) {
    width: min(var(--ref-content), calc(100% - 40px)) !important;
    margin-inline: auto !important;
}

html body[data-page] :is(.section-heading, [class$="-head"]):where(:not(.vue-login-card-head)) {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page] .section-heading {
    padding: 26px 0 14px !important;
    border-top: 1px solid var(--ref-line) !important;
}

html body[data-page] :is(.empty-state, [class*="-source-notice"]) {
    border: 0 !important;
    border-left: 3px solid rgba(20, 127, 132, 0.52) !important;
    border-radius: 0 14px 14px 0 !important;
    background: rgba(217, 244, 235, 0.38) !important;
    box-shadow: none !important;
}

html body[data-page] :is(details.vue-home-community-more, details.vue-gallery-more, details.vue-character-more, details.vue-template-more, .vue-me-more-section) {
    border: 0 !important;
    border-top: 1px solid var(--ref-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page] :is(details.vue-home-community-more, details.vue-gallery-more, details.vue-character-more, details.vue-template-more) > summary {
    min-height: 104px;
    padding-inline: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

html body[data-page] :is(.work-card, .character-card, .player-card, .feed-card) {
    border: 0 !important;
    border-radius: var(--ref-radius) !important;
    background: var(--ref-paper-strong) !important;
    box-shadow: 0 10px 34px rgba(36, 49, 62, 0.08) !important;
    overflow: hidden;
}

html body[data-page] :is(.work-card, .character-card, .player-card, .feed-card):is(:hover, :focus-within) {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(36, 49, 62, 0.12) !important;
}

/* Home: let the studio image and the prompt be the visual thesis. */
html body[data-page="home"] .vue-home {
    width: 100% !important;
    max-width: none !important;
}

html body[data-page="home"] section.vue-home-hero {
    min-height: calc(100svh - 68px) !important;
    padding-inline: max(42px, calc((100vw - var(--ref-content)) / 2)) !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

html body[data-page="home"] .vue-home-copy {
    max-width: 610px !important;
}

html body[data-page="home"] .vue-home-copy > h1 {
    font-size: clamp(54px, 7vw, 92px) !important;
    line-height: 0.96 !important;
}

html body[data-page="home"] .vue-home-brief {
    padding: 18px 0 0 !important;
    border: 0 !important;
    border-top: 1px solid rgba(25, 39, 51, 0.18) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

html body[data-page="home"] .vue-home-intent-row {
    gap: 0 !important;
    border-bottom: 1px solid rgba(25, 39, 51, 0.12);
}

html body[data-page="home"] .vue-home-intent-row button {
    min-height: 64px !important;
    border: 0 !important;
    border-right: 1px solid rgba(25, 39, 51, 0.12) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="home"] .vue-home-intent-row button:last-child {
    border-right: 0 !important;
}

html body[data-page="home"] .vue-home-intent-row button:is(:hover, :focus-visible) {
    background: rgba(217, 244, 235, 0.62) !important;
}

html body[data-page="home"] .vue-home-brief label {
    padding-top: 6px;
}

html body[data-page="home"] .vue-home-brief textarea {
    min-height: 86px !important;
    background: rgba(255, 255, 255, 0.84) !important;
}

html body[data-page="home"] .vue-home-brief-output {
    border: 0 !important;
    border-left: 3px solid var(--ref-teal-bright) !important;
    border-radius: 0 !important;
    background: rgba(255, 255, 255, 0.42) !important;
    box-shadow: none !important;
}

html body[data-page="home"] :is(.vue-home-creation, .vue-home-next, .vue-home-community-more) {
    width: min(var(--ref-content), calc(100% - 40px)) !important;
    margin-inline: auto !important;
}

html body[data-page="home"] .vue-home-creation {
    padding-inline: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="home"] .vue-home-creation-card {
    border: 0 !important;
    border-radius: var(--ref-radius) !important;
    background: #fff !important;
    box-shadow: 0 12px 34px rgba(36, 49, 62, 0.08) !important;
}

html body[data-page="home"] .vue-home-starter-card {
    border: 0 !important;
    border-top: 2px solid rgba(20, 127, 132, 0.22) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="home"] .vue-home-next {
    border: 0 !important;
    border-block: 1px solid var(--ref-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="home"] .vue-home-next > a {
    border: 0 !important;
    border-left: 1px solid var(--ref-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Gallery, public archive and templates share an editorial library shell. */
html body:is([data-page="gallery"], [data-page="characters"], [data-page="templates"]) :is(
    .vue-gallery-hero,
    .vue-characters-hero,
    .vue-templates-hero
) {
    padding: clamp(42px, 6vw, 78px) 0 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ref-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body:is([data-page="gallery"], [data-page="characters"], [data-page="templates"]) :is(
    .vue-gallery-copy,
    .vue-characters-copy,
    .vue-templates-copy
) > h1 {
    max-width: 10em !important;
    color: var(--ref-ink) !important;
    font-size: clamp(48px, 6vw, 78px) !important;
    line-height: 0.98 !important;
}

html body:is([data-page="gallery"], [data-page="characters"], [data-page="templates"]) :is(
    .vue-light-start,
    .vue-creation-command
) {
    padding: 22px 0 0 !important;
    border: 0 !important;
    border-top: 1px solid var(--ref-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body:is([data-page="gallery"], [data-page="characters"], [data-page="templates"]) .vue-light-start textarea {
    background: #fff !important;
}

html body:is([data-page="gallery"], [data-page="characters"], [data-page="templates"]) .vue-quick-idea-row {
    gap: 0 !important;
    border-top: 1px solid var(--ref-line);
    border-bottom: 1px solid var(--ref-line);
}

html body:is([data-page="gallery"], [data-page="characters"], [data-page="templates"]) .vue-quick-idea-row button {
    border: 0 !important;
    border-right: 1px solid var(--ref-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body:is([data-page="gallery"], [data-page="characters"], [data-page="templates"]) .vue-quick-idea-row button:last-child {
    border-right: 0 !important;
}

html body:is([data-page="gallery"], [data-page="characters"], [data-page="templates"]) .vue-ownership-strip {
    gap: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body:is([data-page="gallery"], [data-page="characters"], [data-page="templates"]) .vue-ownership-strip > span {
    border: 0 !important;
    border-right: 1px solid var(--ref-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
}

html body:is([data-page="gallery"], [data-page="characters"], [data-page="templates"]) .vue-ownership-strip > span:last-child {
    border-right: 0 !important;
}

html body[data-page="gallery"] .vue-gallery-feature,
html body[data-page="characters"] .vue-character-command,
html body[data-page="templates"] .vue-template-command {
    border: 0 !important;
    border-radius: var(--ref-radius-lg) !important;
    background: #fff !important;
    box-shadow: var(--ref-shadow) !important;
}

html body[data-page="gallery"] .vue-gallery-feature {
    overflow: hidden;
}

html body[data-page="gallery"] .vue-gallery-feature > div {
    border: 0 !important;
    border-radius: 0 !important;
    background: linear-gradient(180deg, transparent, rgba(15, 20, 28, 0.92)) !important;
    box-shadow: none !important;
}

html body:is([data-page="gallery"], [data-page="characters"], [data-page="templates"]) :is(
    .vue-library-boundary,
    .vue-gallery-mission,
    .vue-character-completion,
    .vue-template-starter,
    .vue-gallery-pulse,
    .vue-character-remix,
    .vue-template-match,
    .vue-gallery-cocreate,
    .vue-character-dimensions,
    .vue-template-social,
    .vue-character-guide,
    .vue-template-guide
) {
    border: 0 !important;
    border-top: 1px solid var(--ref-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body:is([data-page="gallery"], [data-page="characters"], [data-page="templates"]) :is(
    .vue-library-boundary-card,
    .vue-path-card,
    .vue-gallery-mission-grid article,
    .vue-gallery-pulse-grid article,
    .vue-character-completion-grid article,
    .vue-character-dimension-grid article,
    .vue-template-starter-grid article,
    .vue-template-social-grid article,
    .vue-gallery-cocreate-grid article,
    .vue-character-remix-grid article,
    .vue-template-fit-grid article,
    .vue-character-guide-grid article,
    .vue-template-guide-grid article
) {
    border: 0 !important;
    border-radius: 0 !important;
    border-top: 2px solid rgba(20, 127, 132, 0.22) !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body:is([data-page="gallery"], [data-page="characters"], [data-page="templates"]) :is(
    .vue-gallery-filter,
    .vue-character-filter,
    .vue-template-filter
) {
    border: 0 !important;
    border-block: 1px solid var(--ref-line) !important;
    border-radius: 0 !important;
    background: rgba(255, 255, 255, 0.42) !important;
    box-shadow: none !important;
}

/* Studio: one active canvas, one preview. Remove panels around panels. */
html body[data-page="studio"] {
    background:
        linear-gradient(180deg, rgba(217, 244, 235, 0.48), transparent 320px),
        #f7f9f8 !important;
}

html body[data-page="studio"] :is(.studio-hero-title, .studio-arrival-note, .studio-launchpad-lite, .studio-hero-beats, .studio-mode-hub) {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="studio"].studio-wizard-ready :is(.studio-hero-title, .studio-arrival-note, .studio-launchpad-lite, .studio-hero-beats, .studio-mode-hub) {
    display: none !important;
}

html body[data-page="studio"] .vue-route-hero-shell {
    width: min(var(--ref-content), calc(100% - 40px)) !important;
    margin: 28px auto 18px !important;
}

html body[data-page="studio"] .vue-route-director {
    padding: 10px 0 24px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ref-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="studio"] .vue-route-director-copy h2 {
    color: var(--ref-ink) !important;
    font-size: clamp(34px, 4vw, 58px) !important;
}

html body[data-page="studio"] .vue-route-director-progress {
    gap: 0 !important;
    border-block: 1px solid var(--ref-line);
}

html body[data-page="studio"] .vue-route-director-progress > * {
    min-height: 60px !important;
    border: 0 !important;
    border-right: 1px solid var(--ref-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="studio"] .vue-route-director-progress > *:last-child {
    border-right: 0 !important;
}

html body[data-page="studio"] .vue-route-director-progress > *.active,
html body[data-page="studio"] .vue-route-director-progress > *[aria-current="step"] {
    background: rgba(217, 244, 235, 0.72) !important;
    box-shadow: inset 0 -3px 0 var(--ref-teal-bright) !important;
}

html body[data-page="studio"] .studio-workbench {
    width: min(var(--ref-content), calc(100% - 40px)) !important;
    margin: 0 auto 110px !important;
}

html body[data-page="studio"] :is(.studio-path-banner, .studio-rail) {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="studio"] .studio-stage {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="studio"] .studio-panel {
    padding: 26px 0 54px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="studio"] :is(.vue-step-head, .vue-step-head-shell) {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="studio"] :is(
    .vue-core-shell,
    .vue-visual-shell,
    .vue-story-shell,
    .vue-image-shell,
    .vue-publish-shell
) {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="studio"] :is(
    .vue-core-shell,
    .vue-visual-shell,
    .vue-story-shell,
    .vue-image-shell,
    .vue-publish-shell
) > :is(section, article, div):where(:not(.row-between):not(.social-row):not([class*="actions"]):not([class*="grid"])) {
    box-shadow: none !important;
}

html body[data-page="studio"] :is(.vue-route-creation-type, .vue-core-fanwork-grid, .vue-route-ip-presets) {
    gap: 0 !important;
    border-block: 1px solid var(--ref-line);
}

html body[data-page="studio"] :is(.vue-route-creation-type, .vue-core-fanwork-grid, .vue-route-ip-presets) > button {
    border: 0 !important;
    border-right: 1px solid var(--ref-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="studio"] :is(.vue-route-creation-type, .vue-core-fanwork-grid, .vue-route-ip-presets) > button:last-child {
    border-right: 0 !important;
}

html body[data-page="studio"] :is(.vue-route-creation-type, .vue-core-fanwork-grid, .vue-route-ip-presets) > button.active {
    background: rgba(217, 244, 235, 0.72) !important;
    box-shadow: inset 0 -3px 0 var(--ref-teal-bright) !important;
}

html body[data-page="studio"] :is(.studio-ai-bridge, .studio-publish-bridge, .vue-route-fanwork-panel, .vue-core-fanwork-quick) {
    border: 0 !important;
    border-left: 3px solid rgba(20, 127, 132, 0.45) !important;
    border-radius: 0 16px 16px 0 !important;
    background: rgba(217, 244, 235, 0.34) !important;
    box-shadow: none !important;
}

html body[data-page="studio"] .studio-preview {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="studio"] .vue-board-shell {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="studio"] :is(.vue-board-default-art, .vue-board-cover, .studio-preview img) {
    border: 0 !important;
    border-radius: var(--ref-radius-lg) !important;
    box-shadow: var(--ref-shadow) !important;
    overflow: hidden;
}

html body[data-page="studio"] .studio-preview :is(h2, h3, strong, b) {
    color: var(--ref-ink) !important;
    text-shadow: none !important;
}

html body[data-page="studio"] .studio-preview :is(p, small, span) {
    color: var(--ref-ink-soft) !important;
    text-shadow: none !important;
}

html body[data-page="studio"] .studio-step-dock {
    width: min(var(--ref-content), calc(100% - 32px)) !important;
    min-height: 70px !important;
    padding: 10px 12px !important;
    border: 1px solid var(--ref-line) !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 14px 38px rgba(31, 43, 55, 0.12) !important;
    backdrop-filter: blur(18px) !important;
}

/* Login: full-bleed artwork with one necessary form surface. */
html body[data-page="login"] {
    overflow-x: hidden;
    background: #101722 !important;
}

html body[data-page="login"] main,
html body[data-page="login"] .auth-widget-root {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body[data-page="login"] .auth-shell.vue-login-shell {
    width: 100% !important;
    max-width: none !important;
    min-height: calc(100svh - 68px) !important;
    margin: 0 !important;
    padding: clamp(34px, 6vw, 82px) max(28px, calc((100vw - var(--ref-content)) / 2)) !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background-position: center !important;
    background-size: cover !important;
}

html body[data-page="login"] .vue-login-art {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="login"] .vue-login-art :is(.eyebrow, h1, p, strong, span) {
    color: #fff !important;
    text-shadow: 0 2px 22px rgba(0, 0, 0, 0.56) !important;
}

html body[data-page="login"] .vue-login-art h1 {
    max-width: 7em;
    font-size: clamp(50px, 6vw, 86px) !important;
    line-height: 0.98 !important;
}

html body[data-page="login"] .vue-login-flow {
    gap: 0 !important;
    border-block: 1px solid rgba(255, 255, 255, 0.24);
}

html body[data-page="login"] .vue-login-flow article {
    border: 0 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="login"] .vue-login-flow article:last-child {
    border-right: 0 !important;
}

html body[data-page="login"] .vue-login-card {
    border: 0 !important;
    border-radius: 22px !important;
    background: rgba(250, 252, 252, 0.94) !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(22px) !important;
}

html body[data-page="login"] .vue-login-card-head {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="login"] .vue-login-card :is(h2, strong) {
    color: var(--ref-ink) !important;
}

html body[data-page="login"] .vue-login-card :is(p, span, label) {
    color: var(--ref-ink-soft) !important;
}

html body[data-page="login"] .vue-login-pass {
    border: 0 !important;
    border-left: 3px solid var(--ref-teal-bright) !important;
    border-radius: 0 !important;
    background: transparent !important;
}

html body[data-page="login"] .vue-auth-tabs {
    border: 0 !important;
    border-bottom: 1px solid var(--ref-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
}

html body[data-page="login"] .vue-auth-tabs button {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--ref-ink-soft) !important;
    box-shadow: none !important;
}

html body[data-page="login"] .vue-auth-tabs button.active {
    color: var(--ref-ink) !important;
    box-shadow: inset 0 -3px 0 var(--ref-teal-bright) !important;
}

/* Me and feed: dashboards use lanes and dividers instead of stacked cards. */
html body:is([data-page="me"], [data-page="feed"]) :is(.vue-me-hero, .vue-feed-hero) {
    border: 0 !important;
    border-bottom: 1px solid var(--ref-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="me"] :is(
    .vue-me-next,
    .vue-me-sprint,
    .vue-me-workflow,
    .vue-me-inventory,
    .vue-me-achievement,
    .vue-me-ownership,
    .vue-me-ops-desk,
    .vue-me-triage,
    .vue-me-export-queue,
    .vue-me-profile-editor
),
html body[data-page="feed"] :is(
    .vue-feed-command,
    .vue-feed-response,
    .vue-feed-loop,
    .vue-feed-recommend,
    .vue-feed-following-strip
) {
    border: 0 !important;
    border-top: 1px solid var(--ref-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="me"] :is(
    .vue-me-command-card,
    .vue-me-ownership-card,
    .vue-me-achievement-grid article,
    .vue-me-health-grid article,
    .vue-me-pipeline-grid article
),
html body[data-page="feed"] :is(
    .vue-feed-loop-grid article,
    .vue-feed-response-grid article,
    .vue-feed-priority-grid article
) {
    border: 0 !important;
    border-radius: 0 !important;
    border-top: 2px solid rgba(20, 127, 132, 0.22) !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Night theme: neutral charcoal, strong readable type, restrained color. */
html body[data-page].animaker-theme-night,
html body[data-page].studio-theme-night {
    --ink: #f2f5f7;
    --muted: #bac3cc;
    --ref-ink: #f2f5f7;
    --ref-ink-soft: #bac3cc;
    --ref-ink-faint: #96a2af;
    --ref-line: rgba(235, 242, 247, 0.13);
    --ref-line-strong: rgba(235, 242, 247, 0.2);
    --ref-paper: #15191e;
    --ref-paper-strong: #20262c;
    --ref-teal: #78d9d8;
    --ref-teal-bright: #54d2d0;
    color: #f2f5f7 !important;
    background:
        linear-gradient(180deg, rgba(36, 88, 90, 0.28), transparent 300px),
        #15191e !important;
}

html body[data-page].animaker-theme-night .shared-nav,
html body[data-page].studio-theme-night .shared-nav {
    border-bottom-color: rgba(235, 242, 247, 0.12) !important;
    background: rgba(20, 24, 29, 0.92) !important;
}

html body[data-page].animaker-theme-night .shared-nav-links > a,
html body[data-page].studio-theme-night .shared-nav-links > a {
    color: #b7c0ca !important;
}

html body[data-page].animaker-theme-night .shared-nav-links > a:is(.active, :hover, :focus-visible),
html body[data-page].studio-theme-night .shared-nav-links > a:is(.active, :hover, :focus-visible) {
    color: #fff !important;
}

html body[data-page].animaker-theme-night :is(input, textarea, select),
html body[data-page].studio-theme-night :is(input, textarea, select) {
    border-color: rgba(235, 242, 247, 0.19) !important;
    background: rgba(31, 38, 45, 0.92) !important;
    color: #f6f8fa !important;
}

html body[data-page].animaker-theme-night :is(input, textarea, select)::placeholder,
html body[data-page].studio-theme-night :is(input, textarea, select)::placeholder {
    color: #929da9 !important;
}

html body[data-page].animaker-theme-night :is(.secondary-btn, .ghost-link, .link-button, .nav-button),
html body[data-page].studio-theme-night :is(.secondary-btn, .ghost-link, .link-button, .nav-button) {
    border-color: rgba(235, 242, 247, 0.16) !important;
    background: rgba(37, 44, 51, 0.74) !important;
    color: #eef3f6 !important;
}

html body[data-page].animaker-theme-night :is(.work-card, .character-card, .player-card, .feed-card),
html body[data-page].studio-theme-night :is(.work-card, .character-card, .player-card, .feed-card),
html body[data-page="studio"].studio-theme-night .studio-step-dock {
    border-color: rgba(235, 242, 247, 0.12) !important;
    background: #20262c !important;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24) !important;
}

html body[data-page].animaker-theme-night :is(.pill, .filter-count),
html body[data-page].studio-theme-night :is(.pill, .filter-count) {
    border-color: rgba(84, 210, 208, 0.2) !important;
    background: rgba(84, 210, 208, 0.12) !important;
    color: #9ce6e4 !important;
}

html body[data-page].animaker-theme-night :is(.empty-state, [class*="-source-notice"]),
html body[data-page].studio-theme-night :is(.empty-state, [class*="-source-notice"]),
html body[data-page="studio"].studio-theme-night :is(.studio-ai-bridge, .studio-publish-bridge, .vue-route-fanwork-panel, .vue-core-fanwork-quick) {
    background: rgba(84, 210, 208, 0.08) !important;
}

html body[data-page="gallery"].animaker-theme-night .vue-gallery-feature,
html body[data-page="characters"].animaker-theme-night .vue-character-command,
html body[data-page="templates"].animaker-theme-night .vue-template-command {
    background: #20262c !important;
}

html body[data-page="studio"].studio-theme-night .studio-preview :is(h2, h3, strong, b),
html body.animaker-theme-night[data-page="studio"] .studio-preview :is(h2, h3, strong, b) {
    color: #f5f7f8 !important;
}

html body[data-page="studio"].studio-theme-night .studio-preview :is(p, small, span),
html body.animaker-theme-night[data-page="studio"] .studio-preview :is(p, small, span) {
    color: #b8c2cb !important;
}

@media (max-width: 980px) {
    html body[data-page] .shared-nav {
        padding-inline: 16px !important;
    }

    html body[data-page="home"] section.vue-home-hero {
        padding-inline: 24px !important;
    }

    html body[data-page="home"] .vue-home-copy {
        max-width: 680px !important;
    }

    html body[data-page="studio"] .studio-workbench {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    html body[data-page="studio"] .studio-preview {
        position: static !important;
        order: -1 !important;
    }
}

@media (max-width: 720px) {
    html body[data-page] :is(
        .vue-home,
        .vue-gallery,
        .vue-characters,
        .vue-templates,
        .vue-feed,
        .vue-me-dashboard
    ) {
        width: min(100% - 24px, var(--ref-content)) !important;
    }

    html body[data-page="home"] section.vue-home-hero {
        min-height: auto !important;
        padding: 42px 18px 54px !important;
    }

    html body[data-page="home"] .vue-home-copy > h1 {
        font-size: clamp(46px, 16vw, 68px) !important;
    }

    html body[data-page="home"] .vue-home-intent-row,
    html body[data-page="home"] .vue-home-brief-actions,
    html body[data-page="home"] .vue-home-next,
    html body[data-page="home"] .vue-home-creation-grid,
    html body[data-page="home"] .vue-home-starter-strip {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    html body[data-page="home"] .vue-home-intent-row button,
    html body[data-page="home"] .vue-home-next > a {
        border-right: 0 !important;
        border-bottom: 1px solid var(--ref-line) !important;
    }

    html body:is([data-page="gallery"], [data-page="characters"], [data-page="templates"]) :is(
        .vue-gallery-hero,
        .vue-characters-hero,
        .vue-templates-hero
    ) {
        padding: 34px 0 44px !important;
    }

    html body:is([data-page="gallery"], [data-page="characters"], [data-page="templates"]) :is(
        .vue-gallery-copy,
        .vue-characters-copy,
        .vue-templates-copy
    ) > h1 {
        font-size: clamp(42px, 13vw, 62px) !important;
    }

    html body:is([data-page="gallery"], [data-page="characters"], [data-page="templates"]) .vue-quick-idea-row {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    html body:is([data-page="gallery"], [data-page="characters"], [data-page="templates"]) .vue-quick-idea-row button {
        border-right: 0 !important;
        border-bottom: 1px solid var(--ref-line) !important;
    }

    html body[data-page="studio"] .vue-route-hero-shell,
    html body[data-page="studio"] .studio-workbench {
        width: calc(100% - 24px) !important;
    }

    html body[data-page="studio"] .vue-route-director-progress {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    html body[data-page="studio"] .vue-route-director-progress > * {
        border-bottom: 1px solid var(--ref-line) !important;
    }

    html body[data-page="login"] .auth-shell.vue-login-shell {
        min-height: calc(100svh - 64px) !important;
        padding: 32px 16px !important;
    }

    html body[data-page="login"] .vue-login-art {
        display: none !important;
    }

    html body[data-page="login"] .vue-login-card {
        width: 100% !important;
        max-width: 480px !important;
        margin: auto !important;
    }
}

/* V69: OC editor controls read like a focused tool, not a wall of nested cards. */
html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-write-head {
    display: block !important;
    padding: 4px 2px 2px !important;
    border: 0 !important;
    background: transparent !important;
}

html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-write-head > div {
    display: flex !important;
    align-items: baseline !important;
    gap: 10px !important;
}

html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-write-head span {
    min-height: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #168489 !important;
    font-size: 12px !important;
}

html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-write-head strong {
    max-width: none !important;
    font-size: clamp(24px, 3vw, 32px) !important;
    line-height: 1.15 !important;
}

html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-write-head > .primary-btn,
html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-write-head p {
    display: none !important;
}

html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-ai-brief {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 176px !important;
    align-items: end !important;
    gap: 12px !important;
    padding: 14px !important;
    border: 1px solid #dce6e6 !important;
    border-radius: 16px !important;
    background: #f8fbfa !important;
    box-shadow: none !important;
}

html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-ai-brief label {
    gap: 7px !important;
}

html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-ai-brief label > span {
    color: #526266 !important;
    font-size: 12px !important;
    font-weight: 850 !important;
}

html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-ai-brief textarea {
    min-height: 118px !important;
    padding: 14px 16px !important;
    border: 1px solid #cfdadb !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: inset 0 1px 0 rgba(23, 39, 45, 0.03) !important;
    font-size: 15px !important;
    line-height: 1.65 !important;
}

html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-ai-brief-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
}

html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-ai-brief-actions :is(.primary-btn, .secondary-btn) {
    width: 100% !important;
    min-height: 48px !important;
    border-radius: 12px !important;
}

html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-ai-brief-actions .primary-btn {
    min-height: 62px !important;
    background: #18212d !important;
    color: #fff !important;
    border-color: #18212d !important;
    box-shadow: 0 10px 24px rgba(24, 33, 45, 0.14) !important;
}

html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-ai-brief-chips {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 0 !important;
    overflow: visible !important;
}

html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-ai-brief-chips button[data-ui-icon] {
    display: grid !important;
    grid-template-columns: 20px auto minmax(0, 1fr) !important;
    grid-template-areas: "icon tag title" !important;
    align-items: center !important;
    gap: 7px !important;
    min-height: 44px !important;
    padding: 8px 10px !important;
    border: 1px solid #dce4e5 !important;
    border-radius: 11px !important;
    background: #fff !important;
    box-shadow: none !important;
}

html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-ai-brief-chips button[data-ui-icon] span {
    grid-area: tag !important;
    color: #168489 !important;
    font-size: 11px !important;
    white-space: nowrap !important;
}

html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-ai-brief-chips button[data-ui-icon] strong {
    grid-area: title !important;
    min-width: 0 !important;
    color: #27333d !important;
    font-size: 12px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

@supports ((-webkit-mask-image: linear-gradient(#000, #000)) or (mask-image: linear-gradient(#000, #000))) {
    html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-ai-brief-chips button[data-ui-icon]::before {
        grid-area: icon !important;
        position: static !important;
        width: 16px !important;
        height: 16px !important;
        place-self: center !important;
        opacity: 0.68 !important;
        transform: none !important;
    }
}

html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-fanwork-quick {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: 180px minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 14px !important;
    padding: 14px !important;
    border: 1px solid #dce4e8 !important;
    border-left: 4px solid #31a8aa !important;
    border-radius: 12px !important;
    background: #f5f8fa !important;
    box-shadow: none !important;
}

html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-fanwork-copy {
    align-content: start !important;
    gap: 5px !important;
}

html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-fanwork-copy strong {
    font-size: 17px !important;
}

html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-fanwork-copy p {
    font-size: 11px !important;
    line-height: 1.55 !important;
}

html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-fanwork-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
}

html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-fanwork-grid button[data-ui-icon] {
    display: grid !important;
    grid-template-columns: 22px minmax(0, 1fr) !important;
    grid-template-areas:
        "icon name"
        "icon label" !important;
    align-items: center !important;
    gap: 2px 8px !important;
    min-height: 54px !important;
    padding: 8px 10px !important;
    border: 1px solid #d9e2e4 !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: none !important;
}

html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-fanwork-grid button[data-ui-icon] strong {
    grid-area: name !important;
    color: #26323c !important;
    font-size: 13px !important;
    white-space: normal !important;
}

html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-fanwork-grid button[data-ui-icon] span {
    grid-area: label !important;
    font-size: 10px !important;
}

html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-fanwork-grid button[data-ui-icon] small {
    display: none !important;
}

@supports ((-webkit-mask-image: linear-gradient(#000, #000)) or (mask-image: linear-gradient(#000, #000))) {
    html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-fanwork-grid button[data-ui-icon]::before {
        grid-area: icon !important;
        position: static !important;
        width: 17px !important;
        height: 17px !important;
        place-self: center !important;
        opacity: 0.7 !important;
        transform: none !important;
    }
}

html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-bridge-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    height: auto !important;
}

html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-bridge-actions > :is(.primary-btn, .primary-link) {
    grid-column: 1 / -1 !important;
    order: -1 !important;
    width: 100% !important;
    min-height: 54px !important;
}

html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-bridge-actions > .secondary-btn {
    width: 100% !important;
}

html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .vue-visual-kit {
    padding: 14px !important;
    border: 1px solid #dfe7e7 !important;
    border-radius: 14px !important;
    background: #f8faf9 !important;
}

html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .vue-visual-kit-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
}

html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .vue-visual-kit-card {
    display: grid !important;
    grid-template-columns: 132px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #e2e9e9 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .vue-visual-kit-card:last-child {
    border-bottom: 0 !important;
}

html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .vue-visual-kit-card::before {
    display: none !important;
}

html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .vue-visual-kit-head {
    display: grid !important;
    justify-items: start !important;
    gap: 5px !important;
}

html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .vue-visual-kit-head strong {
    max-width: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    color: #26323c !important;
    white-space: normal !important;
}

html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .vue-visual-kit-options {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
}

html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .vue-visual-kit-options button[data-ui-icon] {
    min-height: 46px !important;
    padding: 7px 9px !important;
    border-radius: 9px !important;
    background: #fff !important;
    box-shadow: none !important;
}

html body[data-page="studio"].studio-theme-night.studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-ai-brief,
html body.animaker-theme-night[data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-ai-brief {
    border-color: rgba(255, 255, 255, 0.12) !important;
    background: #151b24 !important;
}

html body[data-page="studio"].studio-theme-night.studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-ai-brief textarea,
html body.animaker-theme-night[data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-ai-brief textarea,
html body[data-page="studio"].studio-theme-night.studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-ai-brief-chips button[data-ui-icon],
html body.animaker-theme-night[data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-ai-brief-chips button[data-ui-icon],
html body[data-page="studio"].studio-theme-night.studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-fanwork-grid button[data-ui-icon],
html body.animaker-theme-night[data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-fanwork-grid button[data-ui-icon] {
    border-color: rgba(255, 255, 255, 0.13) !important;
    color: #eef4f6 !important;
    background: #202832 !important;
}

html body[data-page="studio"].studio-theme-night.studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-fanwork-quick,
html body.animaker-theme-night[data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-fanwork-quick {
    border-color: rgba(255, 255, 255, 0.13) !important;
    border-left-color: #49c7c5 !important;
    background: #1b222c !important;
}

html body[data-page="studio"].studio-theme-night.studio-focus-flow.studio-wizard-ready main .studio-panel.is-active :is(.vue-core-ai-brief-chips, .vue-core-fanwork-grid) button[data-ui-icon] :is(strong, span),
html body.animaker-theme-night[data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active :is(.vue-core-ai-brief-chips, .vue-core-fanwork-grid) button[data-ui-icon] :is(strong, span) {
    color: #eef4f6 !important;
}

@media (max-width: 760px) {
    html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-ai-brief,
    html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-fanwork-quick,
    html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .vue-visual-kit-card {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-ai-brief-chips {
        display: flex !important;
        gap: 8px !important;
        overflow-x: auto !important;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
    }

    html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-ai-brief-chips::-webkit-scrollbar {
        display: none;
    }

    html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-ai-brief-chips button[data-ui-icon] {
        flex: 0 0 210px !important;
    }

    html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-fanwork-grid,
    html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .vue-visual-kit-options {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* V100.1: remove the remaining cyan-era page glows and studio suggestion states. */
html body[data-page] {
    --oc-air-bg: var(--archive-page);
    --oc-air-panel: color-mix(in srgb, var(--archive-surface) 88%, transparent);
    --oc-air-panel-strong: var(--archive-surface);
    --oc-air-line: var(--archive-line);
    --oc-air-ink: var(--archive-ink);
    --oc-air-text: var(--archive-text);
    --oc-air-muted: var(--archive-muted);
    --oc-air-cyan: var(--archive-coral);
    --oc-air-rose: var(--archive-plum);
    --oc-air-gold: var(--archive-gold);
}

html body[data-page]:is([data-page="gallery"], [data-page="templates"], [data-page="characters"]) .vue-light-page-bg,
html body[data-page]:is([data-page="gallery"], [data-page="templates"], [data-page="characters"]) :is(.vue-gallery, .vue-templates, .vue-characters)::before,
html body[data-page]:is([data-page="gallery"], [data-page="templates"], [data-page="characters"]) main::before {
    background:
        linear-gradient(112deg, rgba(184, 84, 72, 0.055) 0%, transparent 30%),
        linear-gradient(244deg, rgba(201, 155, 76, 0.07) 0%, transparent 34%),
        linear-gradient(180deg, var(--archive-page) 0%, var(--archive-page-low) 100%) !important;
}

html body[data-page].animaker-theme-night:is([data-page="gallery"], [data-page="templates"], [data-page="characters"]) .vue-light-page-bg,
html body[data-page].animaker-theme-night:is([data-page="gallery"], [data-page="templates"], [data-page="characters"]) :is(.vue-gallery, .vue-templates, .vue-characters)::before,
html body[data-page].animaker-theme-night:is([data-page="gallery"], [data-page="templates"], [data-page="characters"]) main::before {
    background:
        linear-gradient(112deg, rgba(222, 123, 106, 0.09) 0%, transparent 30%),
        linear-gradient(244deg, rgba(221, 181, 106, 0.07) 0%, transparent 34%),
        linear-gradient(180deg, var(--archive-page) 0%, var(--archive-page-low) 100%) !important;
}

html body[data-page] :is(.vue-gallery-hero, .vue-feed-hero, .vue-me-hero, .vue-templates-hero, .vue-characters-hero) {
    background:
        linear-gradient(124deg, color-mix(in srgb, var(--archive-surface) 96%, transparent) 0%, color-mix(in srgb, var(--archive-surface-soft) 92%, transparent) 70%, var(--archive-gold-wash) 100%) !important;
}

html body[data-page] :is(.vue-light-start, .vue-gallery-filter, .vue-template-filter, .vue-character-filter, .filter-bar) {
    border-color: var(--archive-line) !important;
    background: linear-gradient(124deg, color-mix(in srgb, var(--archive-surface) 96%, transparent), var(--archive-surface-soft)) !important;
    box-shadow: var(--archive-shadow-soft) !important;
}

html body[data-page="studio"] :is(
    .vue-field-suggestions button,
    .vue-core-ai-brief-chips button,
    .vue-core-inspiration-grid button,
    .vue-world-chip-row .secondary-btn,
    .vue-step-task-chips button,
    .vue-route-steps button,
    .vue-route-mini-steps button,
    .vue-visual-swatches button
) {
    border-color: var(--archive-line) !important;
    color: var(--archive-ink) !important;
    background: var(--archive-surface) !important;
    box-shadow: none !important;
}

html body[data-page="studio"] :is(
    .vue-field-suggestions button,
    .vue-core-ai-brief-chips button,
    .vue-core-inspiration-grid button,
    .vue-world-chip-row .secondary-btn,
    .vue-step-task-chips button,
    .vue-route-steps button,
    .vue-route-mini-steps button
):is(:hover, :focus-visible, .active, .is-active, .done, .complete) {
    border-color: color-mix(in srgb, var(--archive-coral) 68%, var(--archive-line)) !important;
    color: var(--archive-coral-deep) !important;
    background: var(--archive-coral-wash) !important;
    box-shadow: inset 2px 0 0 var(--archive-coral) !important;
}

html body[data-page="studio"] :is(.vue-field-suggestions button, .vue-core-ai-brief-chips button, .vue-core-inspiration-grid button, .vue-world-chip-row .secondary-btn, .vue-step-task-chips button, .vue-route-steps button, .vue-route-mini-steps button) :is(span, strong, em, small) {
    color: inherit !important;
    background-color: transparent !important;
}

html body[data-page="studio"] .vue-visual-swatches button.active {
    box-shadow: 0 0 0 3px rgba(184, 84, 72, 0.22), 0 8px 18px rgba(49, 37, 43, 0.12) !important;
}

html body[data-page="studio"].studio-wizard-ready .studio-panel.is-active .vue-core-ai-brief {
    border-color: var(--archive-line) !important;
    background: linear-gradient(124deg, var(--archive-surface) 0%, var(--archive-surface-soft) 72%, var(--archive-gold-wash) 100%) !important;
}

html body[data-page="studio"].studio-wizard-ready .studio-panel.is-active :is(.vue-core-ai-brief label > span, .vue-core-write-head span) {
    color: var(--archive-coral-deep) !important;
    background: var(--archive-coral-wash) !important;
}

html body[data-page="studio"].studio-wizard-ready .studio-panel.is-active .vue-core-flow-console {
    border-color: var(--archive-line) !important;
    background: var(--archive-surface-soft) !important;
}

html body[data-page="studio"].studio-wizard-ready .studio-panel.is-active :is(.vue-core-flow-mode > button, .vue-core-flow-steps > button, .vue-core-ai-brief-chips button) {
    border-color: var(--archive-line) !important;
    color: var(--archive-ink) !important;
    background: var(--archive-surface) !important;
    box-shadow: none !important;
}

html body[data-page="studio"].studio-wizard-ready .studio-panel.is-active :is(.vue-core-flow-mode > button, .vue-core-flow-steps > button, .vue-core-ai-brief-chips button):is(:hover, :focus-visible, .active, .is-active, [data-flow-state="active"], [data-flow-state="done"]) {
    border-color: color-mix(in srgb, var(--archive-coral) 66%, var(--archive-line)) !important;
    color: var(--archive-coral-deep) !important;
    background: var(--archive-coral-wash) !important;
    box-shadow: inset 0 -3px 0 var(--archive-coral) !important;
}

html body[data-page="studio"].studio-wizard-ready .studio-panel.is-active .vue-core-ai-brief-chips button span {
    color: var(--archive-coral-deep) !important;
    background: color-mix(in srgb, var(--archive-coral-wash) 86%, var(--archive-surface)) !important;
}

html body[data-page="studio"].studio-mode-quick.studio-wizard-ready.studio-focus-flow .studio-panel.is-active .vue-core-ai-brief-chips button span {
    color: var(--archive-coral-deep) !important;
    -webkit-text-fill-color: var(--archive-coral-deep) !important;
    background: color-mix(in srgb, var(--archive-coral-wash) 86%, var(--archive-surface)) !important;
}

html body[data-page="studio"].studio-wizard-ready .studio-panel.is-active .vue-core-flow-mode > button.active::after,
html body[data-page="studio"].studio-wizard-ready .studio-panel.is-active .vue-core-flow-mode > button.active::before {
    background-color: var(--archive-coral) !important;
}

/* V100.2: community and archive pages stay single-column inside a narrow viewport. */
@media (max-width: 760px) {
    html body:is([data-page="gallery"], [data-page="templates"], [data-page="characters"]) main,
    html body:is([data-page="gallery"], [data-page="templates"], [data-page="characters"]) :is(.vue-gallery, .vue-templates, .vue-characters) {
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        min-width: 0 !important;
        margin-inline: auto !important;
    }

    html body:is([data-page="gallery"], [data-page="templates"], [data-page="characters"]) :is(.vue-gallery-hero, .vue-templates-hero, .vue-characters-hero) {
        grid-template-columns: minmax(0, 1fr) !important;
        min-width: 0 !important;
        padding: 22px 18px !important;
        overflow: hidden !important;
    }

    html body:is([data-page="gallery"], [data-page="templates"], [data-page="characters"]) :is(.vue-gallery-copy, .vue-templates-copy, .vue-characters-copy) {
        min-width: 0 !important;
    }

    html body:is([data-page="gallery"], [data-page="templates"], [data-page="characters"]) :is(.vue-gallery-copy h1, .vue-templates-copy h1, .vue-characters-copy h1) {
        max-width: 100% !important;
        font-size: clamp(34px, 11vw, 46px) !important;
        line-height: 1.06 !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
    }

    html body:is([data-page="gallery"], [data-page="templates"], [data-page="characters"]) :is(.vue-gallery-feature, .vue-template-feature, .vue-character-feature) {
        width: 100% !important;
        min-width: 0 !important;
    }

    html body:is([data-page="gallery"], [data-page="templates"], [data-page="characters"]) :is(.vue-gallery-actions, .vue-templates-actions, .vue-characters-actions, .vue-light-start-actions) {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
    }

    html body:is([data-page="gallery"], [data-page="templates"], [data-page="characters"]) :is(.vue-gallery-actions, .vue-templates-actions, .vue-characters-actions, .vue-light-start-actions) :is(a, button) {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* V60: content-first OC product structure.
   Character libraries lead with real assets; guidance becomes secondary. */
html body[data-page="gallery"] .vue-gallery,
html body[data-page="characters"] .vue-characters,
html body[data-page="templates"] .vue-templates {
    display: flex !important;
    flex-direction: column !important;
}

html body[data-page="gallery"] .vue-gallery > .vue-gallery-hero,
html body[data-page="characters"] .vue-characters > .vue-characters-hero,
html body[data-page="templates"] .vue-templates > .vue-templates-hero {
    order: 1;
    min-height: 0 !important;
    padding: 34px 0 38px !important;
    align-items: stretch !important;
}

html body:is([data-page="gallery"], [data-page="characters"], [data-page="templates"]) :is(
    .vue-gallery-copy,
    .vue-characters-copy,
    .vue-templates-copy
) > h1 {
    max-width: 12em !important;
    margin-bottom: 14px !important;
    font-size: clamp(42px, 5vw, 64px) !important;
    line-height: 1.02 !important;
}

html body:is([data-page="gallery"], [data-page="characters"], [data-page="templates"]) :is(
    .vue-gallery-copy,
    .vue-characters-copy,
    .vue-templates-copy
) > p:not(.eyebrow) {
    max-width: 54ch !important;
    margin-bottom: 18px !important;
}

html body:is([data-page="gallery"], [data-page="characters"], [data-page="templates"]) :is(
    .vue-gallery-light-start,
    .vue-character-light-start,
    .vue-template-light-start,
    .vue-ownership-strip
) {
    display: none !important;
}

html body:is([data-page="gallery"], [data-page="characters"], [data-page="templates"]) :is(
    .vue-gallery-actions,
    .vue-characters-actions,
    .vue-templates-actions
) {
    margin-top: 8px !important;
}

html body:is([data-page="gallery"], [data-page="characters"], [data-page="templates"]) .shared-ai-mini-dock {
    display: none !important;
}

html body:is([data-page="characters"], [data-page="templates"]) :is(
    .vue-characters-hero,
    .vue-templates-hero
) {
    grid-template-columns: minmax(0, 1fr) !important;
}

html body:is([data-page="characters"], [data-page="templates"]) :is(
    .vue-characters-copy,
    .vue-templates-copy
) {
    max-width: 820px !important;
}

html body:is([data-page="characters"], [data-page="templates"]) :is(
    .vue-character-command,
    .vue-template-command
) {
    display: none !important;
}

/* Community: browse first, then expand trends, creators and activities. */
html body[data-page="gallery"] .vue-gallery > :is(.vue-gallery-source-notice, .vue-gallery-workspace) {
    order: 2;
}

html body[data-page="gallery"] .vue-gallery > .vue-gallery-more {
    order: 3;
}

html body[data-page="gallery"] .vue-gallery-feature {
    min-height: 300px !important;
    aspect-ratio: 4 / 3 !important;
    border-radius: 20px !important;
}

html body[data-page="gallery"] #galleryWorks.vue-gallery-workspace {
    margin-top: 24px !important;
}

html body[data-page="gallery"] .vue-gallery-discovery {
    padding: 0 0 18px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ref-line) !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="gallery"] .vue-gallery-discovery-head {
    align-items: end !important;
}

html body[data-page="gallery"] .vue-gallery-discovery-head h2 {
    font-size: clamp(30px, 4vw, 46px) !important;
}

html body[data-page="gallery"] .vue-gallery-chip-row:not(.is-category),
html body[data-page="gallery"] .vue-gallery-sort-row {
    display: none !important;
}

html body[data-page="gallery"] .vue-gallery-chip-row.is-category {
    margin-top: 16px !important;
    padding: 0 !important;
    border: 1px solid var(--ref-line) !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.66) !important;
    overflow: hidden;
}

html body[data-page="gallery"] .vue-gallery-filter {
    position: sticky !important;
    top: 68px !important;
    z-index: 12 !important;
    margin: 0 0 24px !important;
    padding: 14px !important;
    border: 1px solid var(--ref-line) !important;
    border-radius: 16px !important;
    background: rgba(250, 252, 251, 0.94) !important;
    backdrop-filter: blur(16px) !important;
}

html body[data-page="gallery"] .vue-gallery-more {
    margin-top: 56px !important;
}

/* Public archive: the character collection is the page, analysis is optional. */
html body[data-page="characters"] .vue-characters > .vue-character-library {
    order: 2;
}

html body[data-page="characters"] .vue-characters > .vue-character-boundary {
    order: 3;
}

html body[data-page="characters"] .vue-character-library-head,
html body[data-page="templates"] .vue-template-library-head {
    display: flex !important;
    align-items: end !important;
    justify-content: space-between !important;
    gap: 24px !important;
    padding: 30px 0 18px !important;
    border-bottom: 1px solid var(--ref-line) !important;
}

html body[data-page="characters"] .vue-character-library-head h2,
html body[data-page="templates"] .vue-template-library-head h2 {
    margin: 2px 0 4px !important;
    font-size: clamp(30px, 4vw, 46px) !important;
}

html body[data-page="characters"] .vue-character-library-head > strong,
html body[data-page="templates"] .vue-template-library-head > strong {
    flex: 0 0 auto;
    color: var(--ref-teal) !important;
    font-family: "DIN Alternate", "Roboto Mono", ui-monospace, monospace;
}

html body[data-page="characters"] .vue-characters-stats {
    display: none !important;
}

html body[data-page="characters"] .vue-character-filter {
    position: sticky !important;
    top: 68px !important;
    z-index: 12 !important;
    margin: 0 0 24px !important;
    padding: 14px !important;
    border: 1px solid var(--ref-line) !important;
    border-radius: 16px !important;
    background: rgba(250, 252, 251, 0.94) !important;
    backdrop-filter: blur(16px) !important;
}

html body[data-page="characters"] .vue-character-grid {
    margin-top: 0 !important;
}

html body[data-page="characters"] .vue-character-insights {
    margin-top: 58px !important;
    border: 0 !important;
    border-top: 1px solid var(--ref-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
}

html body[data-page="characters"] .vue-character-insights > summary {
    min-height: 112px !important;
    padding: 24px 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    cursor: pointer;
}

html body[data-page="characters"] .vue-character-insights > summary > strong {
    color: var(--ref-teal) !important;
}

/* Templates: pick a usable structure before reading methodology. */
html body[data-page="templates"] .vue-templates > .vue-template-library {
    order: 2;
    display: flex !important;
    flex-direction: column !important;
}

html body[data-page="templates"] .vue-templates > .vue-template-boundary {
    order: 3;
}

html body[data-page="templates"] .vue-template-library > .vue-template-library-head {
    order: 0;
}

html body[data-page="templates"] .vue-template-library > .vue-template-workspace {
    order: 1;
    display: flex !important;
    flex-direction: column !important;
}

html body[data-page="templates"] .vue-template-library > :is(
    .vue-templates-stats,
    .vue-template-pathfinder,
    .vue-template-starter,
    .vue-template-rank
),
html body[data-page="templates"] .vue-template-workspace > :is(
    .vue-template-match,
    .vue-template-social,
    .vue-template-guide
) {
    display: none !important;
}

html body[data-page="templates"] .vue-template-workspace > .vue-template-filter {
    order: 1;
    position: sticky !important;
    top: 68px !important;
    z-index: 12 !important;
    margin: 0 0 24px !important;
    padding: 14px !important;
    border: 1px solid var(--ref-line) !important;
    border-radius: 16px !important;
    background: rgba(250, 252, 251, 0.94) !important;
    backdrop-filter: blur(16px) !important;
}

html body[data-page="templates"] .vue-template-workspace > :is(
    .vue-template-grid,
    .empty-state
) {
    order: 2;
}

html body[data-page="templates"] .vue-template-grid {
    margin-top: 0 !important;
}

/* Quick studio: one job per step. Progress and deep tools already live elsewhere. */
html body[data-page="studio"].studio-mode-quick.studio-wizard-ready.studio-focus-flow .studio-panel.is-active :is(
    .vue-core-head,
    .vue-visual-head,
    .vue-visual-meter,
    .vue-story-head,
    .vue-story-meter,
    .vue-step-mission,
    .vue-visual-route-card,
    .vue-core-command,
    .vue-core-pathline-drawer,
    .vue-image-prompt-map,
    .vue-image-channel-drawer
) {
    display: none !important;
}

html body[data-page="studio"].studio-mode-quick.studio-wizard-ready.studio-focus-flow .studio-panel.is-active .vue-core-flow-steps {
    display: none !important;
}

html body[data-page="studio"].studio-mode-quick.studio-wizard-ready.studio-focus-flow .studio-panel.is-active :is(
    .vue-core-write-now,
    .vue-visual-write-now,
    .vue-story-write-now,
    .vue-image-write-now,
    .vue-publish-decision
) {
    padding-top: 8px !important;
}

/* Mobile: the first useful field and action must fit in the first viewport. */
@media (max-width: 720px) {
    html body[data-page="home"] section.vue-home-hero {
        min-height: auto !important;
        padding: 26px 20px 34px !important;
    }

    html body[data-page="home"] .vue-home-copy > h1 {
        font-size: 46px !important;
        line-height: 1 !important;
    }

    html body[data-page="home"] .vue-home-copy > p:not(.eyebrow) {
        margin-bottom: 14px !important;
        font-size: 14px !important;
    }

    html body[data-page="home"] .vue-home-brief {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        padding-top: 12px !important;
    }

    html body[data-page="home"] .vue-home-brief > label {
        order: 1;
    }

    html body[data-page="home"] .vue-home-brief-actions {
        order: 2;
    }

    html body[data-page="home"] .vue-home-brief-cue {
        order: 3;
    }

    html body[data-page="home"] .vue-home-brief :is(
        .vue-home-intent-row,
        .vue-home-brief-output,
        .vue-home-brief-chips
    ),
    html body[data-page="home"] :is(
        .vue-home-flow,
        .vue-home-hero-routes
    ) {
        display: none !important;
    }

    html body[data-page="home"] .vue-home-actions {
        margin-top: 14px !important;
    }

    html body:is([data-page="gallery"], [data-page="characters"], [data-page="templates"]) :is(
        .vue-gallery-hero,
        .vue-characters-hero,
        .vue-templates-hero
    ) {
        padding: 24px 0 28px !important;
    }

    html body:is([data-page="gallery"], [data-page="characters"], [data-page="templates"]) :is(
        .vue-gallery-copy,
        .vue-characters-copy,
        .vue-templates-copy
    ) > h1 {
        font-size: 38px !important;
    }

    html body[data-page="gallery"] .vue-gallery-feature,
    html body[data-page="characters"] .vue-character-command,
    html body[data-page="templates"] .vue-template-command {
        display: none !important;
    }

    html body[data-page="gallery"] :is(.vue-gallery-filter, .vue-gallery-chip-row.is-category),
    html body[data-page="characters"] .vue-character-filter,
    html body[data-page="templates"] .vue-template-filter {
        position: static !important;
    }

    html body[data-page="characters"] .vue-character-library-head,
    html body[data-page="templates"] .vue-template-library-head {
        align-items: start !important;
        flex-direction: column !important;
        gap: 8px !important;
    }
}

/* Mount-point specificity: neutralize legacy page-level fills. */
html body[data-page="home"] #homeVueApp .vue-home-copy > p.eyebrow,
html body[data-page="gallery"] #galleryVueApp .vue-gallery-copy > p.eyebrow,
html body[data-page="characters"] #charactersVueApp .vue-characters-copy > p.eyebrow,
html body[data-page="templates"] #templatesVueApp .vue-templates-copy > p.eyebrow,
html body[data-page="me"] #meVueDashboard .vue-me-hero-copy > p.eyebrow,
html body[data-page="feed"] #feedVueApp .vue-feed-hero > div > p.eyebrow,
html body[data-page="studio"].studio-wizard-ready .vue-step-head > div:first-child > p.eyebrow {
    display: inline-flex !important;
    width: max-content !important;
    max-width: 100% !important;
    min-height: 0 !important;
    padding: 0 0 0 18px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

html body[data-page="gallery"] #galleryVueApp .vue-light-start > div:first-child > span,
html body[data-page="characters"] #charactersVueApp .vue-light-start > div:first-child > span,
html body[data-page="templates"] #templatesVueApp .vue-light-start > div:first-child > span,
html body[data-page="studio"].studio-wizard-ready .vue-core-write-head > span,
html body[data-page="studio"] #studioVueBoard .vue-board-info > p.eyebrow,
html body[data-page="me"] #meVueDashboard .vue-me-next > span,
html body[data-page="feed"] #feedVueApp .vue-feed-next > span {
    display: inline-flex !important;
    width: max-content !important;
    min-height: 0 !important;
    padding: 0 0 0 18px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

html body[data-page="home"] #homeVueApp :is(.primary-btn, .primary-link),
html body[data-page="gallery"] #galleryVueApp :is(.primary-btn, .primary-link),
html body[data-page="characters"] #charactersVueApp :is(.primary-btn, .primary-link),
html body[data-page="templates"] #templatesVueApp :is(.primary-btn, .primary-link),
html body[data-page="login"] #loginVueApp :is(.primary-btn, .primary-link),
html body[data-page="me"] #meVueDashboard :is(.primary-btn, .primary-link),
html body[data-page="feed"] #feedVueApp :is(.primary-btn, .primary-link),
html body[data-page="studio"].studio-wizard-ready main :is(.primary-btn, .primary-link) {
    border-color: #19212b !important;
    background: #19212b !important;
    background-color: #19212b !important;
    background-image: none !important;
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(25, 33, 43, 0.16) !important;
}

html body[data-page="home"] #homeVueApp :is(.primary-btn, .primary-link):is(:hover, :focus-visible),
html body[data-page="gallery"] #galleryVueApp :is(.primary-btn, .primary-link):is(:hover, :focus-visible),
html body[data-page="characters"] #charactersVueApp :is(.primary-btn, .primary-link):is(:hover, :focus-visible),
html body[data-page="templates"] #templatesVueApp :is(.primary-btn, .primary-link):is(:hover, :focus-visible),
html body[data-page="me"] #meVueDashboard :is(.primary-btn, .primary-link):is(:hover, :focus-visible),
html body[data-page="feed"] #feedVueApp :is(.primary-btn, .primary-link):is(:hover, :focus-visible),
html body[data-page="studio"].studio-wizard-ready main :is(.primary-btn, .primary-link):is(:hover, :focus-visible) {
    border-color: #116e72 !important;
    background: #116e72 !important;
    background-image: none !important;
}

html body[data-page="home"] #homeVueApp .secondary-btn,
html body[data-page="gallery"] #galleryVueApp .secondary-btn,
html body[data-page="characters"] #charactersVueApp .secondary-btn,
html body[data-page="templates"] #templatesVueApp .secondary-btn,
html body[data-page="login"] #loginVueApp .secondary-btn,
html body[data-page="me"] #meVueDashboard .secondary-btn,
html body[data-page="feed"] #feedVueApp .secondary-btn,
html body[data-page="studio"].studio-wizard-ready main .secondary-btn {
    border-color: rgba(32, 48, 62, 0.17) !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: #2f3a46 !important;
    box-shadow: none !important;
}

html body[data-page="me"] #meVueDashboard .vue-me-source-notice,
html body[data-page="feed"] #feedVueApp .vue-feed-source-notice,
html body[data-page="gallery"] #galleryVueApp .vue-gallery-source-notice,
html body[data-page="characters"] #charactersVueApp .vue-archive-source-notice,
html body[data-page="templates"] #templatesVueApp .vue-template-source-notice {
    border: 0 !important;
    border-left: 2px solid rgba(17, 110, 114, 0.52) !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

html body[data-page="studio"] #studioVueBoard .vue-board-tags > span,
html body[data-page="studio"] #studioVueBoard .vue-board-info > p.eyebrow,
html body[data-page="characters"] #charactersVueApp :is(.pill, .vue-light-output-pills > span),
html body[data-page="templates"] #templatesVueApp :is(.pill, .vue-light-output-pills > span),
html body[data-page="gallery"] #galleryVueApp :is(.pill, .vue-card-license) {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

html body[data-page][data-page] > section.shared-ai-mini-dock,
html body[data-page][data-page] > form.shared-ai-dock {
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(22, 28, 36, 0.95) !important;
    background-color: rgba(22, 28, 36, 0.95) !important;
    background-image: none !important;
    color: #ffffff !important;
    box-shadow: 0 18px 42px rgba(17, 24, 32, 0.24) !important;
}

html body[data-page].animaker-theme-night #homeVueApp :is(.primary-btn, .primary-link),
html body[data-page].animaker-theme-night #galleryVueApp :is(.primary-btn, .primary-link),
html body[data-page].animaker-theme-night #charactersVueApp :is(.primary-btn, .primary-link),
html body[data-page].animaker-theme-night #templatesVueApp :is(.primary-btn, .primary-link),
html body[data-page].animaker-theme-night #loginVueApp :is(.primary-btn, .primary-link),
html body[data-page].animaker-theme-night #meVueDashboard :is(.primary-btn, .primary-link),
html body[data-page].animaker-theme-night #feedVueApp :is(.primary-btn, .primary-link),
html body[data-page="studio"].studio-theme-night.studio-wizard-ready main :is(.primary-btn, .primary-link) {
    border-color: #edf1f3 !important;
    background: #edf1f3 !important;
    background-image: none !important;
    color: #151b22 !important;
    box-shadow: none !important;
}

html body[data-page="studio"][data-page="studio"].studio-mode-quick.studio-wizard-ready.studio-focus-flow #studioVueCore .vue-core-write-now .vue-core-write-head > div > span {
    display: inline-flex !important;
    width: max-content !important;
    min-height: 0 !important;
    padding: 0 0 0 16px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: #167276 !important;
    box-shadow: none !important;
}

html body[data-page="studio"][data-page="studio"].studio-mode-quick.studio-wizard-ready.studio-focus-flow #studioVueBoard .vue-board-dock .vue-board-info .vue-board-tags > span {
    border-color: rgba(32, 48, 62, 0.16) !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: #3d4a57 !important;
    box-shadow: none !important;
}

html body[data-page][data-page].animaker-ai-dock-compact > section.shared-ai-mini-dock .shared-ai-mini-main :is(span, strong),
html body[data-page][data-page].animaker-ai-dock-visible > form.shared-ai-dock .shared-ai-dock-copy :is(span, strong) {
    color: #f6f8fa !important;
    opacity: 1 !important;
}

html body[data-page="studio"].studio-theme-night[data-page="studio"].studio-mode-quick.studio-wizard-ready.studio-focus-flow #studioVueCore .vue-core-write-now .vue-core-write-head > div > span,
html body.animaker-theme-night[data-page="studio"][data-page="studio"].studio-mode-quick.studio-wizard-ready.studio-focus-flow #studioVueCore .vue-core-write-now .vue-core-write-head > div > span {
    color: #84d7d5 !important;
}

html body.animaker-theme-night[data-page][data-page] > header.topbar .shared-nav .shared-nav-links > a.active,
html body[data-page].studio-theme-night[data-page] > header.topbar .shared-nav .shared-nav-links > a.active {
    background: transparent !important;
    background-image: none !important;
    color: #f4f7f9 !important;
    box-shadow: inset 0 -2px 0 #72d8d6 !important;
}

html body.animaker-theme-night[data-page="gallery"] #galleryVueApp .vue-light-start > div:first-child > span,
html body.animaker-theme-night[data-page="characters"] #charactersVueApp .vue-light-start > div:first-child > span,
html body.animaker-theme-night[data-page="templates"] #templatesVueApp .vue-light-start > div:first-child > span,
html body[data-page="gallery"].studio-theme-night #galleryVueApp .vue-light-start > div:first-child > span,
html body[data-page="characters"].studio-theme-night #charactersVueApp .vue-light-start > div:first-child > span,
html body[data-page="templates"].studio-theme-night #templatesVueApp .vue-light-start > div:first-child > span {
    color: #84d7d5 !important;
}

html body[data-page][data-page].animaker-theme-day,
html body[data-page][data-page].studio-theme-day {
    background: linear-gradient(180deg, #fafcfb 0, #f3f6f5 640px, #f5f7f6 100%) !important;
    background-color: #f5f7f6 !important;
    background-image: linear-gradient(180deg, #fafcfb 0, #f3f6f5 640px, #f5f7f6 100%) !important;
}

html body[data-page][data-page] > header.topbar .shared-nav .shared-nav-links > a.active {
    border: 0 !important;
    border-radius: 8px 8px 0 0 !important;
    background: transparent !important;
    background-image: none !important;
    color: #17212b !important;
    box-shadow: inset 0 -2px 0 #1aa3a6 !important;
}

html body[data-page][data-page].animaker-ai-dock-compact > section.shared-ai-mini-dock,
html body[data-page][data-page].animaker-ai-dock-visible > form.shared-ai-dock {
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(22, 28, 36, 0.96) !important;
    background-color: rgba(22, 28, 36, 0.96) !important;
    background-image: none !important;
    color: #ffffff !important;
    box-shadow: 0 18px 42px rgba(17, 24, 32, 0.24) !important;
}

html body[data-page="studio"].studio-mode-quick.studio-wizard-ready.studio-focus-flow #studioVueCore .vue-core-flow-mode > button,
html body[data-page="studio"].studio-mode-quick.studio-wizard-ready.studio-focus-flow #studioVueCore .vue-core-flow-steps > button {
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

html body[data-page="studio"].studio-mode-quick.studio-wizard-ready.studio-focus-flow #studioVueCore .vue-core-flow-mode > button.active,
html body[data-page="studio"].studio-mode-quick.studio-wizard-ready.studio-focus-flow #studioVueCore .vue-core-flow-steps > button:is(.active, [aria-current="step"]) {
    border-color: rgba(28, 41, 53, 0.14) !important;
    background: rgba(255, 255, 255, 0.42) !important;
    background-image: none !important;
    color: #17212b !important;
    box-shadow: inset 0 -2px 0 #1aa3a6 !important;
}

html body[data-page="studio"].studio-mode-quick.studio-wizard-ready.studio-focus-flow #studioVueCoreHead .vue-step-head :is(.eyebrow, .vue-step-state, .vue-step-next-cue),
html body[data-page="studio"].studio-mode-quick.studio-wizard-ready.studio-focus-flow #studioVueCore .vue-core-write-head > span {
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

html body[data-page="studio"].studio-mode-quick.studio-wizard-ready.studio-focus-flow #studioVueCoreHead .vue-step-next-actions > .primary-btn,
html body[data-page="studio"].studio-mode-quick.studio-wizard-ready.studio-focus-flow .studio-workbench .studio-wizard-nav > .primary-btn {
    border-color: #19212b !important;
    background: #19212b !important;
    background-color: #19212b !important;
    background-image: none !important;
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(25, 33, 43, 0.16) !important;
}

html body[data-page="studio"].studio-mode-quick.studio-wizard-ready.studio-focus-flow #studioVueBoard .vue-board-tags > span {
    border-color: rgba(32, 48, 62, 0.16) !important;
    background: transparent !important;
    background-image: none !important;
    color: #3d4a57 !important;
}

html body[data-page].animaker-theme-night[data-page],
html body[data-page].studio-theme-night[data-page] {
    background: linear-gradient(180deg, #151a20 0, #11161b 680px, #12171c 100%) !important;
    background-color: #12171c !important;
    background-image: linear-gradient(180deg, #151a20 0, #11161b 680px, #12171c 100%) !important;
}

html body[data-page="studio"].studio-theme-night.studio-mode-quick.studio-wizard-ready.studio-focus-flow #studioVueCore .vue-core-flow-mode > button.active,
html body.animaker-theme-night[data-page="studio"].studio-mode-quick.studio-wizard-ready.studio-focus-flow #studioVueCore .vue-core-flow-mode > button.active {
    background: rgba(255, 255, 255, 0.07) !important;
    color: #f3f6f8 !important;
    box-shadow: inset 0 -2px 0 #72d8d6 !important;
}

html body[data-page="studio"].studio-theme-night.studio-mode-quick.studio-wizard-ready.studio-focus-flow #studioVueCoreHead .vue-step-next-actions > .primary-btn,
html body[data-page="studio"].studio-theme-night.studio-mode-quick.studio-wizard-ready.studio-focus-flow .studio-workbench .studio-wizard-nav > .primary-btn,
html body.animaker-theme-night[data-page="studio"].studio-mode-quick.studio-wizard-ready.studio-focus-flow #studioVueCoreHead .vue-step-next-actions > .primary-btn,
html body.animaker-theme-night[data-page="studio"].studio-mode-quick.studio-wizard-ready.studio-focus-flow .studio-workbench .studio-wizard-nav > .primary-btn {
    border-color: #edf1f3 !important;
    background: #edf1f3 !important;
    background-image: none !important;
    color: #151b22 !important;
    box-shadow: none !important;
}

html body[data-page="studio"][data-page="studio"].studio-mode-quick.studio-wizard-ready.studio-focus-flow #studioVueCoreHead .vue-step-head .eyebrow,
html body[data-page="studio"][data-page="studio"].studio-mode-quick.studio-wizard-ready.studio-focus-flow #studioVueCoreHead .vue-step-head .vue-step-state,
html body[data-page="studio"][data-page="studio"].studio-mode-quick.studio-wizard-ready.studio-focus-flow #studioVueCore .vue-core-write-now .vue-core-write-head > span {
    display: inline-flex !important;
    width: max-content !important;
    min-height: 0 !important;
    padding: 0 0 0 16px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: #167276 !important;
    box-shadow: none !important;
}

html body[data-page="studio"][data-page="studio"].studio-mode-quick.studio-wizard-ready.studio-focus-flow #studioVueBoard .vue-board-info .vue-board-tags > span {
    border-color: rgba(32, 48, 62, 0.16) !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: #3d4a57 !important;
    box-shadow: none !important;
}

html body[data-page="me"] #meVueDashboard .vue-me-source-notice > span,
html body[data-page="feed"] #feedVueApp .vue-feed-source-notice > span,
html body[data-page="gallery"] #galleryVueApp .vue-gallery-source-notice > span,
html body[data-page="characters"] #charactersVueApp .vue-archive-source-notice > span,
html body[data-page="templates"] #templatesVueApp .vue-template-source-notice > span,
html body[data-page="home"] #homeVueApp .vue-home-source-notice > span {
    display: inline-flex !important;
    width: max-content !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    color: #167276 !important;
    box-shadow: none !important;
}

html body[data-page][data-page].animaker-ai-dock-compact > section.shared-ai-mini-dock :is(span, strong, a, button),
html body[data-page][data-page].animaker-ai-dock-visible > form.shared-ai-dock :is(span, strong, label, a, button) {
    color: #f6f8fa !important;
}

html body[data-page][data-page].animaker-ai-dock-compact > section.shared-ai-mini-dock .shared-ai-mini-go,
html body[data-page][data-page].animaker-ai-dock-visible > form.shared-ai-dock .primary-link {
    background: #16878a !important;
    background-image: none !important;
    color: #ffffff !important;
}

html body[data-page="studio"].studio-theme-night[data-page="studio"].studio-mode-quick.studio-wizard-ready.studio-focus-flow #studioVueCoreHead .vue-step-head :is(.eyebrow, .vue-step-state),
html body[data-page="studio"].studio-theme-night[data-page="studio"].studio-mode-quick.studio-wizard-ready.studio-focus-flow #studioVueCore .vue-core-write-now .vue-core-write-head > span,
html body.animaker-theme-night[data-page="studio"][data-page="studio"].studio-mode-quick.studio-wizard-ready.studio-focus-flow #studioVueCoreHead .vue-step-head :is(.eyebrow, .vue-step-state),
html body.animaker-theme-night[data-page="studio"][data-page="studio"].studio-mode-quick.studio-wizard-ready.studio-focus-flow #studioVueCore .vue-core-write-now .vue-core-write-head > span {
    color: #84d7d5 !important;
}

/* Editorial polish: color is a signal, never the container. */
html body[data-page],
html body[data-page].animaker-theme-day,
html body[data-page].studio-theme-day {
    background: linear-gradient(180deg, #fafcfb 0, #f3f6f5 620px, #f5f7f6 100%) !important;
}

html body[data-page] main :is(.eyebrow, p.eyebrow),
html body[data-page] main :is(
    .vue-light-start > div > span,
    .vue-core-write-head > span,
    .vue-visual-write-head > span,
    .vue-story-write-head > span,
    .vue-image-write-head > span,
    .vue-board-info > .eyebrow,
    .vue-me-next > span,
    .vue-feed-next > span
) {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 0 12px !important;
    padding: 0 0 0 18px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #167276 !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
}

html body[data-page] main :is(.eyebrow, p.eyebrow)::before,
html body[data-page] main :is(
    .vue-light-start > div > span,
    .vue-core-write-head > span,
    .vue-visual-write-head > span,
    .vue-story-write-head > span,
    .vue-image-write-head > span,
    .vue-board-info > .eyebrow,
    .vue-me-next > span,
    .vue-feed-next > span
)::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    width: 10px !important;
    height: 2px !important;
    border-radius: 0 !important;
    background: #27aeb0 !important;
    transform: translateY(-50%) !important;
}

html body[data-page] main :is(.pill, .filter-count),
html body[data-page] main :is(.vue-light-output-pills, .vue-ownership-strip) > span,
html body[data-page="studio"] .studio-preview .vue-board-dock .vue-board-tags > span {
    border: 1px solid rgba(32, 48, 62, 0.16) !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #3d4a57 !important;
    box-shadow: none !important;
}

html body[data-page] main :is(.primary-btn, .primary-link),
html body[data-page] main :is(button.primary-btn, a.primary-link)[data-ui-icon] {
    border: 1px solid #19212b !important;
    border-radius: 12px !important;
    background: #19212b !important;
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(25, 33, 43, 0.16) !important;
}

html body[data-page] main :is(.primary-btn, .primary-link):is(:hover, :focus-visible),
html body[data-page] main :is(button.primary-btn, a.primary-link)[data-ui-icon]:is(:hover, :focus-visible) {
    border-color: #116e72 !important;
    background: #116e72 !important;
    color: #ffffff !important;
    box-shadow: 0 13px 28px rgba(17, 110, 114, 0.2) !important;
}

html body[data-page] main :is(.primary-btn, .primary-link)[data-ui-icon]::before {
    border: 0 !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: currentColor !important;
    box-shadow: none !important;
}

html body[data-page] main :is(.secondary-btn, .ghost-link, .link-button) {
    border: 1px solid rgba(32, 48, 62, 0.17) !important;
    border-radius: 12px !important;
    background: transparent !important;
    color: #2f3a46 !important;
    box-shadow: none !important;
}

html body[data-page] main :is(.secondary-btn, .ghost-link, .link-button):is(:hover, :focus-visible) {
    border-color: rgba(17, 110, 114, 0.45) !important;
    background: rgba(17, 110, 114, 0.04) !important;
    color: #116e72 !important;
}

html body[data-page] > header.topbar .shared-nav .shared-nav-actions a.shared-nav-primary-action {
    border: 1px solid #19212b !important;
    border-radius: 12px !important;
    background: #19212b !important;
    color: #ffffff !important;
    box-shadow: 0 9px 22px rgba(25, 33, 43, 0.14) !important;
}

html body[data-page] > header.topbar .shared-nav .shared-nav-actions a.shared-nav-primary-action:is(:hover, :focus-visible) {
    border-color: #116e72 !important;
    background: #116e72 !important;
}

html body[data-page] :is(
    .vue-gallery,
    .vue-characters,
    .vue-templates,
    .vue-me-dashboard,
    .vue-feed
) {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page] :is(.vue-light-page-bg) {
    opacity: 0.35 !important;
    filter: grayscale(0.82) !important;
}

html body[data-page] :is(.empty-state, [class*="-source-notice"]) {
    border: 0 !important;
    border-left: 2px solid rgba(17, 110, 114, 0.52) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="home"] .vue-home-copy > p.eyebrow,
html body[data-page="gallery"] .vue-gallery-copy > p.eyebrow,
html body[data-page="characters"] .vue-characters-copy > p.eyebrow,
html body[data-page="templates"] .vue-templates-copy > p.eyebrow,
html body[data-page="me"] .vue-me-hero-copy > p.eyebrow,
html body[data-page="feed"] .vue-feed-hero > div > p.eyebrow {
    margin-bottom: 18px !important;
}

/* Home prompt tools: a ruled instrument strip instead of a white tile. */
html body[data-page="home"] .vue-home-copy .vue-home-brief,
html body[data-page="home"] .vue-home-copy .vue-home-brief .vue-home-intent-row {
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

html body[data-page="home"] .vue-home-copy .vue-home-brief .vue-home-intent-row {
    border-block: 1px solid rgba(28, 41, 53, 0.2) !important;
}

html body[data-page="home"] .vue-home-copy .vue-home-brief .vue-home-intent-row > button {
    border: 0 !important;
    border-right: 1px solid rgba(28, 41, 53, 0.16) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="home"] .vue-home-copy .vue-home-brief .vue-home-intent-row > button:last-child {
    border-right: 0 !important;
}

html body[data-page="home"] .vue-home-copy .vue-home-brief .vue-home-intent-row > button:is(:hover, :focus-visible) {
    background: rgba(255, 255, 255, 0.42) !important;
}

html body[data-page="home"] .vue-home-copy .vue-home-brief .vue-home-brief-output {
    border: 0 !important;
    border-left: 2px solid rgba(17, 110, 114, 0.62) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Library heroes: remove banner labels and let the work image carry color. */
html body:is([data-page="gallery"], [data-page="characters"], [data-page="templates"]) :is(
    .vue-gallery-copy,
    .vue-characters-copy,
    .vue-templates-copy
) > p.eyebrow {
    background: transparent !important;
}

html body:is([data-page="gallery"], [data-page="characters"], [data-page="templates"]) :is(
    .vue-gallery-light-start,
    .vue-character-light-start,
    .vue-template-light-start
) > div:first-child > span {
    margin-bottom: 8px !important;
}

html body:is([data-page="gallery"], [data-page="characters"], [data-page="templates"]) :is(
    .vue-gallery-light-start,
    .vue-character-light-start,
    .vue-template-light-start
) :is(.vue-quick-idea-row, .vue-light-output-pills) {
    border-color: rgba(28, 41, 53, 0.14) !important;
    background: transparent !important;
}

html body:is([data-page="gallery"], [data-page="characters"], [data-page="templates"]) :is(
    .vue-gallery-light-start,
    .vue-character-light-start,
    .vue-template-light-start
) .vue-quick-idea-row > button {
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="gallery"] .vue-gallery-feature > div,
html body[data-page="characters"] .vue-character-command .vue-command-anchor,
html body[data-page="templates"] .vue-template-command .vue-command-anchor {
    box-shadow: none !important;
}

html body[data-page="characters"] .vue-character-command .vue-command-anchor .eyebrow,
html body[data-page="templates"] .vue-template-command .vue-command-anchor .eyebrow,
html body[data-page="studio"] .vue-board-info .eyebrow {
    width: auto !important;
    background: transparent !important;
}

/* Studio: active state is a precise underline, never a mint slab. */
html body[data-page="studio"].studio-focus-flow.studio-wizard-ready .studio-panel.is-active :is(
    .vue-core-flow-mode,
    .vue-core-flow-steps
) > button {
    background: transparent !important;
}

html body[data-page="studio"].studio-focus-flow.studio-wizard-ready .studio-panel.is-active :is(
    .vue-core-flow-mode,
    .vue-core-flow-steps
) > button:is(.active, [aria-current="step"]) {
    background: rgba(255, 255, 255, 0.44) !important;
    box-shadow: inset 0 -2px 0 #1aa3a6 !important;
}

html body[data-page="studio"] .studio-preview .vue-board-dock .vue-board-info > .eyebrow,
html body[data-page="studio"] .studio-preview .vue-board-dock .vue-board-tags > span {
    background: transparent !important;
}

html body[data-page="studio"] .studio-wizard-nav {
    border: 1px solid rgba(30, 43, 56, 0.14) !important;
    border-radius: 14px !important;
    background: rgba(250, 252, 251, 0.93) !important;
    box-shadow: 0 16px 36px rgba(25, 34, 44, 0.11) !important;
}

/* Personal and feed pages: metadata is indexed, not highlighted in blocks. */
html body[data-page="me"] .vue-me-dashboard .vue-me-ownership-strip,
html body[data-page="feed"] .vue-feed .vue-feed-filter-row {
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="me"] .vue-me-dashboard .vue-me-ownership-strip > span,
html body[data-page="feed"] .vue-feed .vue-feed-filter-row > button {
    border: 0 !important;
    border-right: 1px solid rgba(30, 43, 56, 0.14) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="me"] .vue-me-dashboard .vue-me-ownership-strip > span:last-child,
html body[data-page="feed"] .vue-feed .vue-feed-filter-row > button:last-child {
    border-right: 0 !important;
}

html body[data-page="me"] .vue-me-dashboard .vue-me-source-notice,
html body[data-page="feed"] .vue-feed .vue-feed-source-notice {
    background: transparent !important;
}

/* Floating creation entry becomes a compact dark utility dock. */
html body[data-page] :is(.shared-ai-mini-dock, .shared-ai-dock) {
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 14px !important;
    background: rgba(22, 28, 36, 0.94) !important;
    color: #ffffff !important;
    box-shadow: 0 18px 42px rgba(17, 24, 32, 0.24) !important;
    backdrop-filter: blur(18px) !important;
}

html body[data-page] .shared-ai-mini-dock :is(span, strong, a, button),
html body[data-page] .shared-ai-dock :is(span, strong, label) {
    color: #f6f8fa !important;
}

html body[data-page] .shared-ai-mini-dock :is(.shared-ai-mini-main, .shared-ai-mini-go, .shared-ai-mini-close),
html body[data-page] .shared-ai-dock :is(.primary-link, .nav-button) {
    border: 0 !important;
    border-radius: 9px !important;
    background: transparent !important;
    color: #f6f8fa !important;
    box-shadow: none !important;
}

html body[data-page] .shared-ai-mini-dock .shared-ai-mini-go,
html body[data-page] .shared-ai-dock .primary-link {
    background: #16878a !important;
}

html body[data-page] .shared-ai-mini-dock .shared-ai-mini-close,
html body[data-page] .shared-ai-dock .nav-button {
    color: rgba(246, 248, 250, 0.68) !important;
}

html body[data-page].animaker-theme-night,
html body[data-page].studio-theme-night {
    background: linear-gradient(180deg, #151a20 0, #11161b 680px, #12171c 100%) !important;
}

html body[data-page].animaker-theme-night main :is(.eyebrow, p.eyebrow),
html body[data-page].studio-theme-night main :is(.eyebrow, p.eyebrow) {
    color: #84d7d5 !important;
}

html body[data-page].animaker-theme-night main :is(.pill, .filter-count),
html body[data-page].studio-theme-night main :is(.pill, .filter-count),
html body[data-page="studio"].studio-theme-night .studio-preview .vue-board-dock .vue-board-tags > span {
    border-color: rgba(229, 238, 244, 0.18) !important;
    background: transparent !important;
    color: #c6d0d9 !important;
}

html body[data-page].animaker-theme-night main :is(.secondary-btn, .ghost-link, .link-button),
html body[data-page].studio-theme-night main :is(.secondary-btn, .ghost-link, .link-button) {
    border-color: rgba(229, 238, 244, 0.17) !important;
    background: transparent !important;
    color: #e8edf1 !important;
}

html body[data-page].animaker-theme-night main :is(.primary-btn, .primary-link),
html body[data-page].studio-theme-night main :is(.primary-btn, .primary-link) {
    border-color: #e7ecef !important;
    background: #e7ecef !important;
    color: #151b22 !important;
    box-shadow: none !important;
}

html body[data-page].animaker-theme-night main :is(.primary-btn, .primary-link)[data-ui-icon]::before,
html body[data-page].studio-theme-night main :is(.primary-btn, .primary-link)[data-ui-icon]::before {
    background: rgba(21, 27, 34, 0.1) !important;
}

@media (max-width: 720px) {
    html body[data-page="home"] .vue-home-copy .vue-home-brief .vue-home-intent-row > button {
        border-right: 0 !important;
        border-bottom: 1px solid rgba(28, 41, 53, 0.14) !important;
    }

    html body[data-page="home"] .vue-home-copy .vue-home-brief .vue-home-intent-row > button:last-child {
        border-bottom: 0 !important;
    }
}

html body[data-page="me"] .vue-me-dashboard > .vue-me-hero,
html body[data-page="feed"] .vue-feed > section.vue-feed-hero {
    padding: clamp(40px, 5vw, 68px) 0 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ref-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="me"] .vue-me-dashboard > .vue-me-hero > aside.vue-me-next,
html body[data-page="feed"] .vue-feed > .vue-feed-hero > aside.vue-feed-next {
    align-self: stretch !important;
    padding: 26px 0 26px 28px !important;
    border: 0 !important;
    border-left: 1px solid var(--ref-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="me"] .vue-me-dashboard .vue-me-hero .vue-me-source-notice,
html body[data-page="feed"] .vue-feed .vue-feed-hero .vue-feed-source-notice {
    border: 0 !important;
    border-left: 3px solid rgba(20, 127, 132, 0.46) !important;
    border-radius: 0 !important;
    background: rgba(217, 244, 235, 0.28) !important;
    box-shadow: none !important;
}

html body[data-page="me"] .vue-me-dashboard > :is(
    .vue-me-profile-editor,
    .vue-me-ownership,
    .vue-me-triage,
    .vue-me-ops-desk,
    .vue-me-workflow,
    .vue-me-inventory,
    .vue-me-achievement,
    .vue-me-export-queue
),
html body[data-page="feed"] .vue-feed > :is(
    .vue-feed-response,
    .vue-feed-loop,
    .vue-feed-command,
    .vue-feed-recommend,
    .vue-feed-following-strip
) {
    border: 0 !important;
    border-top: 1px solid var(--ref-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="me"] .vue-me-dashboard > .vue-me-stats,
html body[data-page="feed"] .vue-feed > .vue-feed-stats {
    gap: 0 !important;
    border-block: 1px solid var(--ref-line) !important;
}

html body[data-page="me"] .vue-me-dashboard > .vue-me-stats > article,
html body[data-page="feed"] .vue-feed > .vue-feed-stats > article {
    border: 0 !important;
    border-right: 1px solid var(--ref-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="me"] .vue-me-dashboard > .vue-me-stats > article:last-child,
html body[data-page="feed"] .vue-feed > .vue-feed-stats > article:last-child {
    border-right: 0 !important;
}

@media (max-width: 720px) {
    html body[data-page="me"] .vue-me-dashboard > .vue-me-hero > aside.vue-me-next,
    html body[data-page="feed"] .vue-feed > .vue-feed-hero > aside.vue-feed-next {
        padding: 22px 0 0 !important;
        border-left: 0 !important;
        border-top: 1px solid var(--ref-line) !important;
    }
}

html body[data-page="studio"].studio-mode-quick.studio-wizard-ready.studio-focus-flow > main > section.page-title.studio-hero-title,
html body[data-page="studio"].studio-mode-quick.studio-wizard-ready.studio-focus-flow > main > details.studio-advanced-start {
    display: none !important;
}

html body[data-page="studio"].studio-mode-quick.studio-wizard-ready.studio-focus-flow #avatarPreview #studioVueBoard.vue-board-shell .vue-board-dock .vue-board-info h2 {
    color: #17202b !important;
    opacity: 1 !important;
}

html body[data-page="studio"].studio-mode-quick.studio-wizard-ready.studio-focus-flow #avatarPreview #studioVueBoard.vue-board-shell .vue-board-dock .vue-board-info > p:not(.eyebrow) {
    color: #53606d !important;
    opacity: 1 !important;
}

html body[data-page="studio"].studio-mode-quick.studio-wizard-ready.studio-focus-flow #avatarPreview #studioVueBoard.vue-board-shell .vue-board-dock .vue-board-tags > span {
    border-color: rgba(20, 127, 132, 0.14) !important;
    background: rgba(217, 244, 235, 0.72) !important;
    color: #285f63 !important;
    opacity: 1 !important;
}

html body[data-page="studio"].studio-theme-night.studio-mode-quick.studio-wizard-ready.studio-focus-flow #avatarPreview #studioVueBoard.vue-board-shell .vue-board-dock .vue-board-info h2,
html body.animaker-theme-night[data-page="studio"].studio-mode-quick.studio-wizard-ready.studio-focus-flow #avatarPreview #studioVueBoard.vue-board-shell .vue-board-dock .vue-board-info h2 {
    color: #f5f8fa !important;
}

html body[data-page="studio"].studio-theme-night.studio-mode-quick.studio-wizard-ready.studio-focus-flow #avatarPreview #studioVueBoard.vue-board-shell .vue-board-dock .vue-board-info > p:not(.eyebrow),
html body.animaker-theme-night[data-page="studio"].studio-mode-quick.studio-wizard-ready.studio-focus-flow #avatarPreview #studioVueBoard.vue-board-shell .vue-board-dock .vue-board-info > p:not(.eyebrow) {
    color: #bdc7d0 !important;
}

html body[data-page="studio"].studio-focus-flow.studio-wizard-ready .studio-panel.is-active .vue-step-next-cue > :is(span, small) {
    display: none !important;
}

html body[data-page="studio"].studio-focus-flow.studio-wizard-ready .studio-panel.is-active .vue-step-next-cue > strong {
    max-width: 11em !important;
    overflow: hidden !important;
    color: var(--ref-ink) !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body.animaker-theme-night[data-page] > header.topbar .shared-nav .shared-nav-actions a.shared-nav-primary-action,
html body[data-page].studio-theme-night > header.topbar .shared-nav .shared-nav-actions a.shared-nav-primary-action {
    border-color: #24303c !important;
    background: linear-gradient(105deg, #202a35 0 64%, #126f74) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24) !important;
}

html body[data-page="studio"].studio-theme-night.studio-focus-flow.studio-wizard-ready .studio-panel.is-active .vue-core-flow-mode > button.active,
html body.animaker-theme-night[data-page="studio"].studio-focus-flow.studio-wizard-ready .studio-panel.is-active .vue-core-flow-mode > button.active {
    background: #245e62 !important;
    color: #ffffff !important;
    box-shadow: inset 0 -3px 0 #72dfdd !important;
}

@media (max-width: 720px) {
    html body[data-page] :is(.shared-ai-mini-dock, .shared-ai-dock) {
        display: none !important;
    }

    html body[data-page="gallery"] .vue-gallery .vue-gallery-light-start .vue-quick-idea-row.vue-gallery-idea-row,
    html body[data-page="characters"] .vue-characters .vue-character-light-start .vue-quick-idea-row,
    html body[data-page="templates"] .vue-templates .vue-template-light-start .vue-quick-idea-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        overflow: visible !important;
    }

    html body[data-page="gallery"] .vue-gallery .vue-gallery-light-start .vue-quick-idea-row.vue-gallery-idea-row > button,
    html body[data-page="characters"] .vue-characters .vue-character-light-start .vue-quick-idea-row > button,
    html body[data-page="templates"] .vue-templates .vue-template-light-start .vue-quick-idea-row > button {
        width: 100% !important;
        min-width: 0 !important;
        border-right: 0 !important;
        border-bottom: 1px solid var(--ref-line) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html body[data-page] *,
    html body[data-page] *::before,
    html body[data-page] *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* V108: terminal day-theme boundary for high-specificity legacy color rules. */
html body.animaker-theme-day[data-page][data-page],
html body[data-page="studio"].studio-theme-day[data-page] {
    color: var(--archive-text) !important;
    background:
        linear-gradient(132deg, rgba(197, 105, 84, 0.1) 0%, rgba(197, 105, 84, 0) 36%),
        linear-gradient(226deg, rgba(214, 172, 87, 0.12) 0%, rgba(214, 172, 87, 0) 40%),
        linear-gradient(180deg, #fbf6f2 0%, var(--archive-page) 48%, var(--archive-page-low) 100%) !important;
}

html body.animaker-theme-day[data-page][data-page] :is(.topbar, .shared-nav, .shared-nav-root, .shared-nav-links, .shared-nav-actions),
html body[data-page="studio"].studio-theme-day[data-page] :is(.topbar, .shared-nav, .shared-nav-root, .shared-nav-links, .shared-nav-actions) {
    color: var(--archive-text) !important;
    border-color: var(--archive-line) !important;
}

html body.animaker-theme-day[data-page][data-page] :is(.topbar, .shared-nav) :is(.brand, a, button):not(.primary-btn):not(.primary-link):not(.shared-nav-primary-action),
html body[data-page="studio"].studio-theme-day[data-page] :is(.topbar, .shared-nav) :is(.brand, a, button):not(.primary-btn):not(.primary-link):not(.shared-nav-primary-action) {
    color: var(--archive-muted) !important;
    border-color: var(--archive-line) !important;
}

html body.animaker-theme-day[data-page][data-page] :is(.topbar, .shared-nav) :is(.brand, a, button):is(:hover, :focus-visible, .active):not(.primary-btn):not(.primary-link):not(.shared-nav-primary-action),
html body[data-page="studio"].studio-theme-day[data-page] :is(.topbar, .shared-nav) :is(.brand, a, button):is(:hover, :focus-visible, .active):not(.primary-btn):not(.primary-link):not(.shared-nav-primary-action) {
    color: var(--archive-coral-deep) !important;
}

html body.animaker-theme-day[data-page]:not([data-page="home"])[data-page] main,
html body[data-page="studio"].studio-theme-day[data-page] main {
    color: var(--archive-text) !important;
    border-color: var(--archive-line) !important;
}

html body.animaker-theme-day[data-page]:not([data-page="home"])[data-page] main :is(h1, h2, h3, h4, strong, b),
html body[data-page="studio"].studio-theme-day[data-page] main :is(h1, h2, h3, h4, strong, b) {
    color: var(--archive-ink) !important;
    -webkit-text-fill-color: currentColor !important;
}

html body.animaker-theme-day[data-page]:not([data-page="home"])[data-page] main :is(p, small, label, blockquote, .muted),
html body[data-page="studio"].studio-theme-day[data-page] main :is(p, small, label, blockquote, .muted) {
    color: var(--archive-muted) !important;
    -webkit-text-fill-color: currentColor !important;
}

html body.animaker-theme-day[data-page]:not([data-page="home"])[data-page] main :is(input, textarea, select),
html body[data-page="studio"].studio-theme-day[data-page] main :is(input, textarea, select) {
    color: var(--archive-ink) !important;
    border-color: var(--archive-line) !important;
    background: rgba(255, 251, 247, 0.94) !important;
}

html body.animaker-theme-day[data-page]:not([data-page="home"])[data-page] main :is(.secondary-btn, .ghost-link, .link-button, .nav-button),
html body[data-page="studio"].studio-theme-day[data-page] main :is(.secondary-btn, .ghost-link, .link-button, .nav-button) {
    color: var(--archive-ink) !important;
    border-color: var(--archive-line) !important;
    background: rgba(255, 251, 247, 0.9) !important;
}

html body.animaker-theme-day[data-page="home"][data-page] main :is(.vue-home-root, .vue-home, .vue-home-hero, .vue-home-brief) {
    color: var(--archive-text) !important;
    border-color: var(--archive-line) !important;
}

html body.animaker-theme-day[data-page="home"][data-page] .vue-home-brief :is(label, small, p),
html body.animaker-theme-day[data-page="home"][data-page] :is(.vue-home-next, .vue-home-community-more, .vue-home-metrics, .section-heading, .vue-home-work-card, .vue-home-ip-card, .vue-home-feed-card) :is(label, small, p) {
    color: var(--archive-muted) !important;
    -webkit-text-fill-color: currentColor !important;
}

html body.animaker-theme-day[data-page="home"][data-page] .vue-home-brief label > span {
    color: var(--archive-coral-deep) !important;
}

html body.animaker-theme-day[data-page="home"][data-page] .vue-home-brief :is(textarea, input) {
    color: var(--archive-ink) !important;
    border-color: var(--archive-line) !important;
    background: rgba(255, 251, 247, 0.95) !important;
}

html body.animaker-theme-day[data-page="home"][data-page] .vue-home-brief .secondary-btn {
    color: var(--archive-ink) !important;
    border-color: var(--archive-line) !important;
    background: rgba(255, 251, 247, 0.92) !important;
}

html body.animaker-theme-day[data-page="studio"][data-page].studio-wizard-ready .studio-panel.is-active :is(.vue-core-write-head, .vue-core-ai-brief, .vue-core-ai-brief-chips, .vue-core-flow-mode) :is(span, strong),
html body[data-page="studio"].studio-theme-day[data-page].studio-wizard-ready .studio-panel.is-active :is(.vue-core-write-head, .vue-core-ai-brief, .vue-core-ai-brief-chips, .vue-core-flow-mode) :is(span, strong) {
    color: var(--archive-text) !important;
    -webkit-text-fill-color: currentColor !important;
}

html body.animaker-theme-day[data-page="studio"][data-page].studio-wizard-ready .studio-panel.is-active .vue-core-ai-brief-chips button span,
html body[data-page="studio"].studio-theme-day[data-page].studio-wizard-ready .studio-panel.is-active .vue-core-ai-brief-chips button span {
    color: var(--archive-coral-deep) !important;
    -webkit-text-fill-color: var(--archive-coral-deep) !important;
}

html body.animaker-theme-day[data-page="studio"][data-page] :is(.studio-wizard-nav, .vue-board-dock, .vue-board-cover, .vue-board-info, .vue-board-tags, .vue-board-actions),
html body[data-page="studio"].studio-theme-day[data-page] :is(.studio-wizard-nav, .vue-board-dock, .vue-board-cover, .vue-board-info, .vue-board-tags, .vue-board-actions) {
    color: var(--archive-text) !important;
    border-color: var(--archive-line) !important;
}

html body.animaker-theme-day[data-page="studio"][data-page] :is(.vue-board-empty-cover, .vue-board-empty-stage, .vue-board-default-art),
html body[data-page="studio"].studio-theme-day[data-page] :is(.vue-board-empty-cover, .vue-board-empty-stage, .vue-board-default-art) {
    color: var(--archive-ink) !important;
    border-color: var(--archive-line) !important;
}

html body.animaker-theme-day[data-page][data-page] main :is(section, article, div, form, nav):not(.vue-home-gateway):not(.vue-gallery-feature),
html body[data-page="studio"].studio-theme-day[data-page] main :is(section, article, div, form, nav) {
    border-color: var(--archive-line) !important;
}

html body.animaker-theme-day[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-write-head span,
html body[data-page="studio"][data-page="studio"].studio-theme-day.studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-write-head span,
html body.animaker-theme-day[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-ai-brief-chips button[data-ui-icon] span,
html body[data-page="studio"][data-page="studio"].studio-theme-day.studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-ai-brief-chips button[data-ui-icon] span {
    color: var(--archive-coral-deep) !important;
    -webkit-text-fill-color: var(--archive-coral-deep) !important;
}

html body.animaker-theme-day[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-write-head strong,
html body[data-page="studio"][data-page="studio"].studio-theme-day.studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-write-head strong,
html body.animaker-theme-day[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-ai-brief-chips button[data-ui-icon] strong,
html body[data-page="studio"][data-page="studio"].studio-theme-day.studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-ai-brief-chips button[data-ui-icon] strong {
    color: var(--archive-ink) !important;
    -webkit-text-fill-color: var(--archive-ink) !important;
}

html body.animaker-theme-day[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-ai-brief,
html body[data-page="studio"][data-page="studio"].studio-theme-day.studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-ai-brief {
    border-color: var(--archive-line) !important;
    background: linear-gradient(145deg, #fffaf6 0%, #f8eee8 100%) !important;
}

html body.animaker-theme-day[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-ai-brief label > span,
html body[data-page="studio"][data-page="studio"].studio-theme-day.studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-ai-brief label > span {
    color: var(--archive-muted) !important;
    -webkit-text-fill-color: var(--archive-muted) !important;
}

html body.animaker-theme-day[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-ai-brief textarea,
html body[data-page="studio"][data-page="studio"].studio-theme-day.studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-ai-brief textarea {
    color: var(--archive-ink) !important;
    border-color: var(--archive-line) !important;
    background: rgba(255, 251, 247, 0.96) !important;
    box-shadow: inset 0 1px 0 rgba(91, 61, 52, 0.035) !important;
}

html body.animaker-theme-day[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-ai-brief-chips button[data-ui-icon],
html body[data-page="studio"][data-page="studio"].studio-theme-day.studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-ai-brief-chips button[data-ui-icon] {
    color: var(--archive-text) !important;
    border-color: var(--archive-line) !important;
    background: rgba(255, 251, 247, 0.94) !important;
}

html body.animaker-theme-day[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-ai-brief-chips button[data-ui-icon]:is(:hover, :focus-visible),
html body[data-page="studio"][data-page="studio"].studio-theme-day.studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .vue-core-ai-brief-chips button[data-ui-icon]:is(:hover, :focus-visible) {
    border-color: var(--archive-coral) !important;
    background: var(--archive-coral-wash) !important;
}

/* V96 gallery/template specificity: replace flat legacy cyan bands with warm elevated surfaces. */
html body.animaker-theme-day[data-page="gallery"] #galleryVueApp .vue-gallery-hero,
html body.animaker-theme-day[data-page="templates"] #templatesVueApp .vue-templates-hero {
    overflow: hidden !important;
    padding: clamp(34px, 4.5vw, 58px) !important;
    border: 1px solid rgba(174, 116, 95, 0.22) !important;
    border-radius: 8px !important;
    background:
        linear-gradient(135deg, #ffffff 0%, #fffaf7 64%, #f4e8e1 100%) !important;
    box-shadow:
        0 30px 72px rgba(74, 40, 32, 0.14),
        0 7px 20px rgba(74, 40, 32, 0.07) !important;
}

html body.animaker-theme-day[data-page="gallery"] #galleryVueApp .vue-gallery-discovery {
    padding: clamp(22px, 3vw, 34px) !important;
    border: 1px solid rgba(174, 116, 95, 0.2) !important;
    border-radius: 8px !important;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(252, 245, 241, 0.94) 100%) !important;
    box-shadow:
        0 20px 50px rgba(74, 40, 32, 0.11),
        0 4px 13px rgba(74, 40, 32, 0.05) !important;
}

html body.animaker-theme-day[data-page="gallery"] #galleryVueApp .vue-gallery-chip-row.is-category {
    gap: 8px !important;
    padding: 8px !important;
    border: 1px solid rgba(174, 116, 95, 0.24) !important;
    border-radius: 8px !important;
    background:
        linear-gradient(105deg, rgba(247, 233, 226, 0.92) 0%, rgba(255, 250, 246, 0.96) 100%) !important;
    box-shadow:
        0 10px 25px rgba(74, 40, 32, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
}

html body.animaker-theme-day[data-page="gallery"] #galleryVueApp .vue-gallery-chip-row.is-category > span {
    color: var(--canyon-red-dark) !important;
}

html body.animaker-theme-day[data-page="gallery"] #galleryVueApp .vue-gallery-chip-row.is-category > .vue-filter-chip {
    border: 1px solid rgba(174, 116, 95, 0.2) !important;
    border-radius: 6px !important;
    color: var(--canyon-ink-soft) !important;
    background: rgba(255, 255, 255, 0.88) !important;
    box-shadow: 0 5px 14px rgba(74, 40, 32, 0.07) !important;
}

html body.animaker-theme-day[data-page="gallery"] #galleryVueApp .vue-gallery-chip-row.is-category > .vue-filter-chip.is-active {
    border-color: rgba(176, 86, 64, 0.48) !important;
    color: var(--canyon-red-dark) !important;
    background:
        linear-gradient(135deg, #fff7f3 0%, #f5dcd3 100%) !important;
    box-shadow:
        0 8px 18px rgba(150, 67, 50, 0.12),
        inset 0 0 0 1px rgba(255, 255, 255, 0.7) !important;
}

html body.animaker-theme-day[data-page="gallery"] #galleryVueApp .vue-gallery-filter,
html body.animaker-theme-day[data-page="templates"] #templatesVueApp .vue-template-filter {
    border: 1px solid rgba(174, 116, 95, 0.2) !important;
    border-radius: 8px !important;
    background: rgba(255, 252, 250, 0.94) !important;
    box-shadow:
        0 14px 34px rgba(74, 40, 32, 0.1),
        0 3px 9px rgba(74, 40, 32, 0.05) !important;
}

@media (max-width: 780px) {
    html body.animaker-theme-day[data-page="gallery"] #galleryVueApp .vue-gallery-hero,
    html body.animaker-theme-day[data-page="templates"] #templatesVueApp .vue-templates-hero {
        padding: 24px 18px !important;
    }

    html body.animaker-theme-day[data-page="gallery"] #galleryVueApp .vue-gallery-discovery {
        padding: 20px 14px !important;
    }
}

/* High-specificity cleanup for legacy !important shells. Keep this block
   narrow: these are the exact structural wrappers observed in the DOM. */
html body[data-page] > header.topbar {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ref-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="login"] > main,
html body[data-page="login"] > main #loginVueApp,
html body[data-page="login"] > main #loginVueApp .auth-shell.vue-login-shell {
    width: 100vw !important;
    max-width: none !important;
    margin: 0 !important;
}

html body[data-page="gallery"] .vue-gallery > section.vue-gallery-hero,
html body[data-page="characters"] .vue-characters > section.vue-characters-hero,
html body[data-page="templates"] .vue-templates > section.vue-templates-hero {
    padding: clamp(42px, 6vw, 78px) 0 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ref-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="gallery"] .vue-gallery > :is(
    .vue-gallery-pulse,
    .vue-gallery-mission,
    .vue-gallery-creator-radar,
    .vue-gallery-cocreate,
    .vue-gallery-discovery,
    .section-heading
),
html body[data-page="characters"] .vue-characters > :is(
    .vue-character-pathfinder,
    .vue-character-completion,
    .vue-character-dimensions,
    .vue-character-worlds,
    .section-heading
),
html body[data-page="templates"] .vue-templates > :is(
    .vue-library-boundary,
    .vue-template-pathfinder,
    .vue-template-starter,
    .vue-template-rank,
    .section-heading
) {
    border: 0 !important;
    border-top: 1px solid var(--ref-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="gallery"] .vue-gallery #galleryWorks.vue-gallery-workspace,
html body[data-page="characters"] .vue-characters .vue-character-workspace,
html body[data-page="templates"] .vue-templates .vue-template-workspace {
    padding-inline: 0 !important;
    border: 0 !important;
    border-top: 1px solid var(--ref-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="gallery"] .vue-gallery #galleryWorks.vue-gallery-workspace > :is(
    .vue-gallery-discovery,
    .vue-gallery-filter,
    .section-heading
),
html body[data-page="characters"] .vue-characters .vue-character-workspace > :is(
    .vue-character-remix,
    .vue-character-guide,
    .vue-character-filter,
    .section-heading
),
html body[data-page="templates"] .vue-templates .vue-template-workspace > :is(
    .vue-template-match,
    .vue-template-social,
    .vue-template-guide,
    .vue-template-filter,
    .section-heading
) {
    border-radius: 0 !important;
    box-shadow: none !important;
}

html body[data-page="studio"].studio-wizard-ready > main > :is(
    .page-title,
    .studio-advanced-start
) {
    display: none !important;
}

html body[data-page="studio"] .studio-workbench > form.designer-form.studio-flow > section.studio-panel,
html body[data-page="studio"].studio-mode-quick.studio-wizard-ready .studio-workbench > form.designer-form.studio-flow > section.studio-panel,
html body[data-page="studio"].studio-focus-flow.studio-wizard-ready .studio-workbench > form.designer-form.studio-flow > section.studio-panel.is-active {
    padding: 22px 0 48px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="studio"] .studio-panel .vue-step-head-shell > section.vue-step-head,
html body[data-page="studio"] .studio-panel section.vue-step-head,
html body[data-page="studio"].studio-focus-flow.studio-wizard-ready .studio-panel.is-active .vue-step-head {
    padding: 8px 0 22px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ref-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="studio"] .studio-panel :is(
    .vue-core-flow-console,
    .vue-core-ai-brief,
    .vue-core-write-now,
    .vue-visual-dock,
    .vue-story-dock,
    .vue-image-dock,
    .vue-publish-dock
) {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="studio"] .studio-panel .vue-core-ai-brief {
    padding-inline: 0 !important;
    border-top: 1px solid var(--ref-line) !important;
}

html body[data-page="studio"] .studio-workbench > aside.studio-preview,
html body[data-page="studio"] .studio-workbench .studio-preview.avatar-preview {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="studio"] .studio-preview .vue-board-shell > :is(section, article, div) {
    box-shadow: none !important;
}

html body[data-page="studio"] .studio-preview .vue-board-shell :is(
    .vue-board-summary,
    .vue-board-meta,
    .vue-board-story,
    .vue-board-status,
    .vue-board-actions
) {
    border: 0 !important;
    border-top: 1px solid var(--ref-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
}

html body[data-page="studio"] .studio-preview .vue-board-shell :is(h1, h2, h3, h4, strong, b) {
    color: #17202b !important;
    opacity: 1 !important;
}

html body[data-page="studio"] .studio-preview .vue-board-shell :is(p, small, span, em) {
    color: #53606d !important;
    opacity: 1 !important;
}

html body[data-page="studio"].studio-theme-night .studio-preview .vue-board-shell :is(h1, h2, h3, h4, strong, b),
html body.animaker-theme-night[data-page="studio"] .studio-preview .vue-board-shell :is(h1, h2, h3, h4, strong, b) {
    color: #f5f8fa !important;
}

html body[data-page="studio"].studio-theme-night .studio-preview .vue-board-shell :is(p, small, span, em),
html body.animaker-theme-night[data-page="studio"] .studio-preview .vue-board-shell :is(p, small, span, em) {
    color: #bdc7d0 !important;
}

html body[data-page="studio"] > main > :is(.page-title.studio-hero-title, details.studio-advanced-start) {
    display: none !important;
}

html body[data-page="studio"].studio-focus-flow.studio-wizard-ready .studio-panel.is-active .vue-step-next-cue {
    padding: 4px 0 4px 14px !important;
    border: 0 !important;
    border-left: 3px solid rgba(20, 127, 132, 0.42) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="studio"].studio-focus-flow.studio-wizard-ready .studio-panel.is-active .vue-core-flow-console {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-block: 1px solid var(--ref-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
}

html body[data-page="studio"].studio-focus-flow.studio-wizard-ready .studio-panel.is-active .vue-core-flow-mode {
    width: 100% !important;
    height: auto !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0 !important;
}

html body[data-page="studio"].studio-focus-flow.studio-wizard-ready .studio-panel.is-active .vue-core-flow-mode > button {
    width: 100% !important;
    min-height: 44px !important;
    height: 44px !important;
    padding: 6px 12px !important;
    border: 0 !important;
    border-right: 1px solid var(--ref-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="studio"].studio-focus-flow.studio-wizard-ready .studio-panel.is-active .vue-core-flow-mode > button:last-child {
    border-right: 0 !important;
}

html body[data-page="studio"].studio-focus-flow.studio-wizard-ready .studio-panel.is-active .vue-core-flow-mode > button.active {
    background: rgba(217, 244, 235, 0.72) !important;
    box-shadow: inset 0 -3px 0 var(--ref-teal-bright) !important;
}

html body[data-page="studio"].studio-focus-flow.studio-wizard-ready .studio-panel.is-active .vue-core-flow-steps {
    width: 100% !important;
    height: auto !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0 !important;
}

html body[data-page="studio"].studio-focus-flow.studio-wizard-ready .studio-panel.is-active .vue-core-flow-steps > button {
    width: 100% !important;
    min-height: 68px !important;
    height: 68px !important;
    padding: 9px 12px !important;
    border: 0 !important;
    border-right: 1px solid var(--ref-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="studio"].studio-focus-flow.studio-wizard-ready .studio-panel.is-active .vue-core-flow-steps > button:last-child {
    border-right: 0 !important;
}

html body[data-page="studio"].studio-focus-flow.studio-wizard-ready .studio-panel.is-active .vue-core-flow-steps > button:is(.active, [aria-current="step"]) {
    background: rgba(217, 244, 235, 0.62) !important;
    box-shadow: inset 0 -3px 0 var(--ref-teal-bright) !important;
}

html body[data-page="studio"].studio-focus-flow.studio-wizard-ready .studio-panel.is-active .vue-core-ai-brief {
    padding: 18px 0 0 !important;
    border: 0 !important;
    border-top: 1px solid var(--ref-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="studio"] .studio-preview .vue-board-shell > section.vue-board-dock {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="studio"] .studio-preview .vue-board-dock .vue-board-cover {
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 22px !important;
    box-shadow: 0 18px 46px rgba(31, 43, 55, 0.12) !important;
}

html body[data-page="studio"] .studio-preview .vue-board-dock .vue-board-info {
    padding: 18px 2px 14px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ref-line) !important;
    background: transparent !important;
}

html body[data-page="studio"] .studio-preview .vue-board-dock .vue-board-info h2 {
    color: #17202b !important;
    opacity: 1 !important;
}

html body[data-page="studio"] .studio-preview .vue-board-dock .vue-board-info > p:not(.eyebrow) {
    color: #53606d !important;
    opacity: 1 !important;
}

html body[data-page="studio"] .studio-preview .vue-board-dock .vue-board-tags > span {
    border-color: rgba(20, 127, 132, 0.14) !important;
    background: rgba(217, 244, 235, 0.72) !important;
    color: #285f63 !important;
    opacity: 1 !important;
}

html body[data-page="login"] > main #loginVueApp .vue-login-art h1,
html body[data-page="login"] > main #loginVueApp .vue-login-art > p,
html body[data-page="login"] > main #loginVueApp .vue-login-art .eyebrow,
html body[data-page="login"] > main #loginVueApp .vue-login-flow article :is(strong, span) {
    color: #f7fafc !important;
    opacity: 1 !important;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.64) !important;
}

html body[data-page="login"] > main #loginVueApp .vue-login-art > p,
html body[data-page="login"] > main #loginVueApp .vue-login-flow article span {
    color: rgba(239, 245, 250, 0.82) !important;
}

@media (max-width: 720px) {
    html body[data-page="studio"].studio-focus-flow.studio-wizard-ready .studio-panel.is-active .vue-core-flow-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    html body[data-page="studio"].studio-focus-flow.studio-wizard-ready .studio-panel.is-active .vue-core-flow-steps > button:nth-child(2) {
        border-right: 0 !important;
    }
}

/* V61 final cascade: keep content-first rules authoritative over legacy layers. */
html body[data-page="gallery"] .shared-ai-mini-dock,
html body[data-page="characters"] .shared-ai-mini-dock,
html body[data-page="templates"] .shared-ai-mini-dock,
html body[data-page="characters"] .vue-characters .vue-character-command,
html body[data-page="templates"] .vue-templates .vue-template-command {
    display: none !important;
}

html body[data-page="characters"] .vue-characters > .vue-characters-hero,
html body[data-page="templates"] .vue-templates > .vue-templates-hero {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 34px 0 38px !important;
}

html body[data-page="characters"] .vue-characters > .vue-characters-hero .vue-characters-copy,
html body[data-page="templates"] .vue-templates > .vue-templates-hero .vue-templates-copy {
    width: min(820px, 100%) !important;
    max-width: 820px !important;
    min-height: 0 !important;
    padding: 0 !important;
}

html body[data-page="characters"] .vue-characters > .vue-character-library,
html body[data-page="templates"] .vue-templates > .vue-template-library {
    margin-top: 0 !important;
}

@media (max-width: 720px) {
    html body[data-page] .shared-nav {
        min-height: 58px !important;
        padding: 8px 12px !important;
    }

    html body[data-page="gallery"] .vue-gallery,
    html body[data-page="characters"] .vue-characters,
    html body[data-page="templates"] .vue-templates {
        width: calc(100% - 24px) !important;
    }

    html body[data-page="gallery"] .vue-gallery > .vue-gallery-hero,
    html body[data-page="characters"] .vue-characters > .vue-characters-hero,
    html body[data-page="templates"] .vue-templates > .vue-templates-hero {
        min-height: 0 !important;
        padding: 22px 0 24px !important;
    }

    html body:is([data-page="gallery"], [data-page="characters"], [data-page="templates"]) :is(
        .vue-gallery-copy,
        .vue-characters-copy,
        .vue-templates-copy
    ) > h1 {
        max-width: 100% !important;
        margin: 4px 0 12px !important;
        font-size: 36px !important;
        line-height: 1.05 !important;
    }

    html body:is([data-page="gallery"], [data-page="characters"], [data-page="templates"]) :is(
        .vue-gallery-copy,
        .vue-characters-copy,
        .vue-templates-copy
    ) > p:not(.eyebrow) {
        margin-bottom: 14px !important;
        font-size: 14px !important;
        line-height: 1.6 !important;
    }

    html body:is([data-page="gallery"], [data-page="characters"], [data-page="templates"]) :is(
        .vue-gallery-actions,
        .vue-characters-actions,
        .vue-templates-actions
    ) {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    html body:is([data-page="gallery"], [data-page="characters"], [data-page="templates"]) :is(
        .vue-gallery-actions,
        .vue-characters-actions,
        .vue-templates-actions
    ) > * {
        width: 100% !important;
        min-height: 46px !important;
        justify-content: center !important;
    }

    html body[data-page="gallery"] #galleryWorks.vue-gallery-workspace {
        margin-top: 12px !important;
    }

    html body[data-page="gallery"] .vue-gallery-discovery-head {
        align-items: start !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    html body[data-page="gallery"] .vue-gallery-chip-row.is-category {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
    }

    html body[data-page="gallery"] .vue-gallery-chip-row.is-category > span {
        grid-column: 1 / -1;
    }

    html body[data-page="gallery"] .vue-gallery-filter,
    html body[data-page="characters"] .vue-character-filter,
    html body[data-page="templates"] .vue-template-filter {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        padding: 12px !important;
        position: static !important;
    }

    html body[data-page="gallery"] .vue-gallery-filter > label,
    html body[data-page="characters"] .vue-character-filter > label,
    html body[data-page="templates"] .vue-template-filter > label {
        width: 100% !important;
    }

    html body[data-page="gallery"] .vue-gallery-filter :is(input, select),
    html body[data-page="characters"] .vue-character-filter :is(input, select),
    html body[data-page="templates"] .vue-template-filter :is(input, select) {
        width: 100% !important;
    }

    html body[data-page="characters"] .vue-character-library-head,
    html body[data-page="templates"] .vue-template-library-head {
        padding: 22px 0 14px !important;
    }

    html body[data-page="characters"] .vue-character-library-head h2,
    html body[data-page="templates"] .vue-template-library-head h2 {
        font-size: 30px !important;
    }

    html body[data-page="gallery"] .vue-gallery-work-grid,
    html body[data-page="characters"] .vue-character-grid,
    html body[data-page="templates"] .vue-template-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 16px !important;
    }

    html body[data-page="characters"] .vue-character-insights {
        margin-top: 36px !important;
    }

    html body[data-page="studio"] .vue-route-hero-shell,
    html body[data-page="studio"] .studio-workbench {
        width: calc(100% - 24px) !important;
    }

    html body[data-page="studio"] .vue-route-hero-shell {
        margin: 12px auto 6px !important;
    }

    html body[data-page="studio"] .vue-route-director {
        padding: 4px 0 12px !important;
    }

    html body[data-page="studio"] .vue-route-director-copy h2 {
        font-size: 28px !important;
    }

    html body[data-page="studio"] .vue-route-director-copy > p,
    html body[data-page="studio"] .vue-route-director-copy > small {
        display: none !important;
    }

    html body[data-page="studio"] .studio-workbench {
        grid-template-columns: minmax(0, 1fr) !important;
        margin-bottom: 92px !important;
    }

    html body[data-page="studio"] .studio-panel {
        padding: 10px 0 26px !important;
    }

    html body[data-page="studio"] .studio-preview,
    html body[data-page="studio"] .studio-preview.avatar-preview {
        position: static !important;
        width: 100% !important;
        max-width: none !important;
    }

    html body[data-page="studio"] .studio-panel.is-active :is(
        .vue-core-write-grid,
        .vue-visual-write-grid,
        .vue-story-write-grid
    ) {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    html body[data-page="studio"] .studio-wizard-nav {
        left: 12px !important;
        right: 12px !important;
        bottom: 10px !important;
        width: auto !important;
    }
}

/* V63 mobile action economy. */
html body[data-page="studio"].studio-mode-quick.studio-wizard-ready.studio-focus-flow .studio-panel.is-active .vue-step-next-actions {
    display: none !important;
}

html body[data-page="characters"][data-page="characters"] .vue-characters.vue-characters > section.vue-characters-hero,
html body[data-page="templates"][data-page="templates"] .vue-templates.vue-templates > section.vue-templates-hero {
    padding: 24px 0 28px !important;
}

@media (max-width: 720px) {
    html body[data-page="gallery"] .vue-gallery-chip-row.is-category {
        display: flex !important;
        gap: 0 !important;
        overflow-x: auto !important;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
    }

    html body[data-page="gallery"] .vue-gallery-chip-row.is-category::-webkit-scrollbar {
        display: none;
    }

    html body[data-page="gallery"] .vue-gallery-chip-row.is-category > span {
        display: none !important;
    }

    html body[data-page="gallery"] .vue-gallery-chip-row.is-category > button {
        flex: 0 0 132px !important;
        min-height: 62px !important;
        border-right: 1px solid var(--ref-line) !important;
    }

    html body[data-page="gallery"] .vue-gallery-filter > label:not(:first-child),
    html body[data-page="characters"] .vue-character-filter > label:not(:first-child),
    html body[data-page="templates"] .vue-template-filter > label:not(:first-child) {
        display: none !important;
    }

    html body[data-page="gallery"] .vue-gallery-filter-meta,
    html body[data-page="characters"] .vue-character-filter-meta,
    html body[data-page="templates"] .vue-template-filter-meta {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
    }
}

html body[data-page="studio"][data-page="studio"].studio-mode-quick.studio-wizard-ready.studio-focus-flow main .studio-panel.is-active .vue-step-head .vue-step-next-actions {
    display: none !important;
}

html body[data-page="characters"][data-page="characters"] .vue-characters .vue-character-library > .vue-character-library-head,
html body[data-page="templates"][data-page="templates"] .vue-templates .vue-template-library > .vue-template-library-head {
    padding: 16px 0 12px !important;
}

/* V65: text-fit and breathing room audit.
   Text containers grow with their content; boxes are reserved for actions and assets. */
html body[data-page] main :is(
    .primary-btn,
    .primary-link,
    .secondary-btn,
    .ghost-link,
    .link-button
) {
    width: auto;
    min-width: 0 !important;
    min-height: 42px !important;
    height: auto !important;
    padding: 10px 14px !important;
    justify-content: center;
    line-height: 1.3 !important;
    white-space: normal !important;
    text-align: center;
    overflow-wrap: anywhere;
}

html body[data-page] main :is(
    .row-between,
    .social-row,
    [class$="-actions"]
) {
    flex-wrap: wrap !important;
    row-gap: 10px !important;
}

html body[data-page] main :is(
    .work-card,
    .character-card,
    .player-card,
    .feed-card,
    .vue-template-card,
    .vue-character-card,
    .vue-home-creation-card,
    .vue-home-starter-card,
    .vue-path-card,
    .oc-lore-card
) {
    height: auto !important;
    min-height: 0 !important;
}

html body[data-page] main :is(
    .work-card,
    .character-card,
    .player-card,
    .feed-card,
    .vue-template-card,
    .vue-character-card,
    .vue-home-creation-card,
    .vue-home-starter-card,
    .vue-path-card,
    .oc-lore-card
) :is(h2, h3, h4, p, blockquote, small) {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere;
    text-wrap: pretty;
}

html body[data-page] main .card-body {
    padding: 18px 18px 20px !important;
}

html body[data-page] main .card-body h3 {
    margin: 8px 0 6px !important;
    font-size: clamp(20px, 2.1vw, 27px) !important;
    line-height: 1.25 !important;
}

html body[data-page] main .card-body > p {
    margin: 0 0 14px !important;
    line-height: 1.7 !important;
}

html body[data-page] main :is(.pill, .filter-count) {
    max-width: 100%;
    height: auto !important;
    min-height: 0 !important;
    padding: 5px 9px !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
}

html body[data-page] main .filter-count {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--ref-ink-soft) !important;
    box-shadow: none !important;
}

html body[data-page] main :is(
    [class*="-source-notice"],
    .vue-gallery-action-status
) {
    padding: 9px 0 9px 14px !important;
    border: 0 !important;
    border-left: 3px solid rgba(20, 127, 132, 0.48) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page] main [class*="-source-notice"] > p {
    margin: 2px 0 0 !important;
    max-width: 72ch;
    line-height: 1.55 !important;
}

html body[data-page] main details > summary {
    height: auto !important;
    min-height: 58px !important;
    max-height: none !important;
    padding-block: 14px !important;
    overflow: visible !important;
}

html body[data-page] main details > summary :is(strong, p, small, span) {
    height: auto !important;
    max-height: none !important;
    line-height: 1.45 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere;
}

html body[data-page="home"] .vue-home-feature-body > p {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
    line-height: 1.55 !important;
}

html body[data-page="studio"] .studio-preview .vue-board-dock .vue-board-info h2 {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    line-height: 1.2 !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere;
}

html body[data-page="studio"] .vue-visual-kit-card {
    height: auto !important;
    min-height: 0 !important;
    padding: 14px !important;
}

html body[data-page="studio"] .vue-visual-kit-options {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

html body[data-page="studio"] .vue-visual-kit-options button[data-ui-icon] {
    min-width: 0 !important;
    min-height: 46px !important;
    height: auto !important;
    padding: 8px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
}

html body[data-page="studio"] .vue-visual-kit-options button[data-ui-icon] small {
    display: none !important;
}

html body[data-page="studio"] :is(
    .vue-core-ai-brief-chips,
    .vue-field-suggestions,
    .vue-quick-idea-row
) button {
    min-height: 40px !important;
    height: auto !important;
    padding-block: 7px !important;
    line-height: 1.3 !important;
    white-space: normal !important;
}

@media (max-width: 720px) {
    html body[data-page][data-page] > header.topbar {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: auto auto !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        padding: 0 14px 10px !important;
        row-gap: 10px !important;
        overflow: visible !important;
    }

    html body[data-page] > header.topbar > .brand {
        width: 100% !important;
        height: auto !important;
        min-height: 32px !important;
        margin: 0 !important;
        padding-top: 2px !important;
    }

    html body[data-page] > header.topbar > #sharedNavApp,
    html body[data-page] > header.topbar .shared-nav-root,
    html body[data-page] > header.topbar .shared-nav {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    html body[data-page] main .card-body {
        padding: 16px 16px 18px !important;
    }

    html body[data-page] main .card-body h3 {
        font-size: 22px !important;
    }

    html body[data-page] main :is(
        .primary-btn,
        .primary-link,
        .secondary-btn,
        .ghost-link,
        .link-button
    ) {
        min-height: 44px !important;
        padding: 10px 13px !important;
    }

    html body[data-page] main [class$="-actions"] > :is(
        .primary-btn,
        .primary-link,
        .secondary-btn
    ) {
        flex: 1 1 138px;
    }

    html body[data-page] main :is(
        [class*="-source-notice"],
        .vue-gallery-action-status
    ) {
        padding: 8px 0 8px 12px !important;
    }

    html body[data-page="studio"] .vue-visual-kit-options {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    html body[data-page="studio"] .vue-visual-kit-options button[data-ui-icon] {
        min-height: 44px !important;
        padding: 7px 6px !important;
        font-size: 13px !important;
    }

    html body[data-page="studio"] .vue-board-dock {
        padding: 12px !important;
    }

    html body[data-page="studio"] .vue-board-info {
        padding: 14px 2px 12px !important;
    }
}

html body[data-page="studio"][data-page="studio"].studio-wizard-ready .studio-preview.avatar-preview #studioVueBoard.vue-board-shell .vue-board-dock .vue-board-info h2 {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    line-height: 1.22 !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

html body[data-page="templates"][data-page="templates"] main .vue-template-grid .work-card.vue-template-card .card-body > p {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
}

/* V68: production content can be longer than the local preview fixtures. */
html body[data-page="gallery"][data-page="gallery"] main .vue-gallery-work-grid .work-card .card-body > p {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin-top: 0 !important;
    overflow: visible !important;
    opacity: 1 !important;
    transform: none !important;
    -webkit-box-orient: initial !important;
    -webkit-line-clamp: unset !important;
}

html body[data-page="templates"][data-page="templates"] main .vue-template-grid .work-card.vue-template-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    height: auto !important;
    min-height: 0 !important;
}

html body[data-page="templates"][data-page="templates"] main .vue-template-grid .work-card.vue-template-card > img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 4 / 3 !important;
    object-fit: cover !important;
    object-position: 50% 34% !important;
}

html body[data-page="templates"][data-page="templates"] main .vue-template-grid .work-card.vue-template-card > .card-body {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
}

html body[data-page="templates"][data-page="templates"] main .vue-template-grid .work-card.vue-template-card .card-body > p {
    display: block !important;
    overflow: visible !important;
    -webkit-box-orient: initial !important;
    -webkit-line-clamp: unset !important;
}

@media (max-width: 720px) {
    html body[data-page="characters"][data-page="characters"] main .vue-character-grid .character-card.vue-character-card,
    html body[data-page="templates"][data-page="templates"] main .vue-template-grid .work-card.vue-template-card,
    html body[data-page="gallery"][data-page="gallery"] main .vue-gallery-work-grid .work-card {
        display: flex !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        flex-direction: column !important;
        align-items: stretch !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    html body[data-page="characters"][data-page="characters"] main .vue-character-grid .vue-character-card > .oc-archive-cover,
    html body[data-page="templates"][data-page="templates"] main .vue-template-grid .vue-template-card > img,
    html body[data-page="gallery"][data-page="gallery"] main .vue-gallery-work-grid .work-card > a:first-child {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 4 / 3 !important;
        overflow: hidden !important;
    }

    html body[data-page="characters"][data-page="characters"] main .vue-character-grid .vue-character-card > .oc-archive-cover img,
    html body[data-page="templates"][data-page="templates"] main .vue-template-grid .vue-template-card > img,
    html body[data-page="gallery"][data-page="gallery"] main .vue-gallery-work-grid .work-card > a:first-child img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        object-fit: cover !important;
    }

    html body[data-page="characters"][data-page="characters"] main .vue-character-grid .vue-character-card > .card-body,
    html body[data-page="templates"][data-page="templates"] main .vue-template-grid .vue-template-card > .card-body,
    html body[data-page="gallery"][data-page="gallery"] main .vue-gallery-work-grid .work-card > .card-body {
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
    }

    html body[data-page="home"][data-page="home"] main .vue-home-metrics {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 14px !important;
    }

    html body[data-page="home"][data-page="home"] main .vue-home-metrics > a {
        display: grid !important;
        grid-template-columns: 84px minmax(0, 1fr) auto !important;
        grid-template-rows: auto auto auto !important;
        align-items: start !important;
        gap: 5px 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 124px !important;
        padding: 16px !important;
        overflow: visible !important;
    }

    html body[data-page="home"][data-page="home"] main .vue-home-metrics > a > img {
        grid-column: 1 !important;
        grid-row: 1 / 4 !important;
        width: 84px !important;
        height: 84px !important;
        max-width: 84px !important;
        aspect-ratio: 1 !important;
        object-fit: cover !important;
        border-radius: 12px !important;
    }

    html body[data-page="home"][data-page="home"] main .vue-home-metrics > a > span {
        grid-column: 2 !important;
        grid-row: 1 !important;
        width: auto !important;
        height: auto !important;
    }

    html body[data-page="home"][data-page="home"] main .vue-home-metrics > a > strong {
        grid-column: 3 !important;
        grid-row: 1 !important;
        width: auto !important;
        height: auto !important;
    }

    html body[data-page="home"][data-page="home"] main .vue-home-metrics > a > p {
        grid-column: 2 / 4 !important;
        grid-row: 2 !important;
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        line-height: 1.55 !important;
        overflow: visible !important;
    }

    html body[data-page="home"][data-page="home"] main .vue-home-metrics > a > small {
        grid-column: 2 / 4 !important;
        grid-row: 3 !important;
        width: auto !important;
        height: auto !important;
        line-height: 1.4 !important;
    }
}

/* V69.1: helper copy stays readable when real content is longer than a fixture. */
html body[data-page][data-page] main :is(
    .vue-gallery-source-notice,
    .vue-template-source-notice,
    .vue-archive-source-notice,
    .vue-home-source-notice,
    .vue-me-source-notice,
    .vue-feed-source-notice
) > p {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    opacity: 1 !important;
    transform: none !important;
    -webkit-box-orient: initial !important;
    -webkit-line-clamp: unset !important;
}

html body[data-page="export"][data-page="export"] main .vue-export-caption-sections span {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    -webkit-box-orient: initial !important;
    -webkit-line-clamp: unset !important;
}

html body[data-page="me"][data-page="me"] main .vue-me-pipeline-grid :is(p, small) {
    height: auto !important;
    max-height: none !important;
    margin-top: 4px !important;
    overflow: visible !important;
    opacity: 1 !important;
    transform: none !important;
}

html body[data-page="me"][data-page="me"] main :is(.vue-me-mini-list, .vue-me-message-list) p {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    -webkit-box-orient: initial !important;
    -webkit-line-clamp: unset !important;
}

/* Studio palette trial: an OC drafting desk with blueprint violet, cyan guides and yellow actions. */
html body[data-page="studio"].studio-theme-aurora {
    --ref-paper: #111027;
    --ref-paper-strong: #1a1838;
    --ref-ink: #f7f5ff;
    --ref-ink-soft: #c3c1dc;
    --ref-ink-faint: #9998ba;
    --ref-line: rgba(151, 162, 255, 0.16);
    --ref-line-strong: rgba(151, 162, 255, 0.28);
    --ref-teal: #61e6dc;
    --ref-teal-bright: #61e6dc;
    --ref-mint: rgba(97, 230, 220, 0.13);
    --ref-coral: #ff77ad;
    --ref-yellow: #f5df69;
    --ref-shadow: 0 22px 54px rgba(4, 3, 22, 0.34);
    color: var(--ref-ink) !important;
    color-scheme: dark;
    background-color: #111027 !important;
    background-image:
        linear-gradient(rgba(128, 143, 224, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(128, 143, 224, 0.055) 1px, transparent 1px) !important;
    background-size: 32px 32px !important;
}

html body[data-page="studio"].studio-theme-aurora :is(h1, h2, h3, h4, strong, b) {
    color: #f8f7ff !important;
}

html body[data-page="studio"].studio-theme-aurora :is(p, small, .muted) {
    color: #b9b8d2 !important;
}

html body[data-page="studio"].studio-theme-aurora > header.topbar .shared-nav {
    border-bottom-color: rgba(151, 162, 255, 0.2) !important;
    background: rgba(14, 13, 35, 0.94) !important;
    box-shadow: 0 14px 38px rgba(5, 4, 25, 0.24) !important;
}

html body[data-page="studio"].studio-theme-aurora > header.topbar :is(.brand, .brand strong, .shared-nav-links > a) {
    color: #bbbcd6 !important;
}

html body[data-page="studio"].studio-theme-aurora > header.topbar .shared-nav-links > a:is(:hover, :focus-visible, .active) {
    color: #ffffff !important;
    background: rgba(97, 230, 220, 0.08) !important;
}

html body[data-page="studio"].studio-theme-aurora > header.topbar .shared-nav-links > a.active {
    box-shadow: inset 0 -3px 0 #61e6dc !important;
}

html body[data-page="studio"] .shared-theme-switcher {
    display: inline-grid;
    grid-template-columns: repeat(3, minmax(0, auto));
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--ref-line-strong);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.42);
}

html body[data-page="studio"] .shared-theme-switcher > button.nav-button {
    min-width: 62px;
    min-height: 36px;
    padding: 7px 10px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 13px;
}

html body[data-page="studio"] .shared-theme-switcher > button.nav-button.active {
    background: #ffffff !important;
    color: #17202b !important;
    box-shadow: 0 4px 12px rgba(27, 38, 51, 0.12) !important;
}

html body[data-page="studio"].studio-theme-night .shared-theme-switcher,
html body[data-page="studio"].studio-theme-aurora .shared-theme-switcher {
    background: rgba(255, 255, 255, 0.045) !important;
}

html body[data-page="studio"].studio-theme-night .shared-theme-switcher > button.nav-button,
html body[data-page="studio"].studio-theme-aurora .shared-theme-switcher > button.nav-button {
    color: #bfc3d9 !important;
}

html body[data-page="studio"].studio-theme-night .shared-theme-switcher > button.nav-button.active {
    background: #edf1f3 !important;
    color: #151b22 !important;
}

html body[data-page="studio"].studio-theme-aurora .shared-theme-switcher > button.nav-button.active {
    background: #61e6dc !important;
    color: #111027 !important;
    box-shadow: 0 5px 18px rgba(97, 230, 220, 0.18) !important;
}

html body[data-page="studio"].studio-theme-aurora main :is(
    .studio-panel.is-active,
    .vue-step-head,
    .vue-core-dock,
    .vue-visual-dock,
    .vue-story-dock,
    .vue-image-dock,
    .vue-publish-dock,
    .vue-board-dock
) {
    border-color: rgba(151, 162, 255, 0.22) !important;
    background: #191735 !important;
    background-image: none !important;
    color: #f7f5ff !important;
    box-shadow: 0 22px 54px rgba(4, 3, 22, 0.3) !important;
}

html body[data-page="studio"].studio-theme-aurora main :is(
    .vue-core-write-now,
    .vue-core-ai-brief,
    .vue-core-fanwork-quick,
    .vue-core-command,
    .vue-step-mission,
    .vue-visual-write-now,
    .vue-story-write-now,
    .vue-image-readiness,
    .vue-image-path,
    .vue-publish-showcase,
    .vue-route-focus-card,
    .vue-route-next,
    .vue-route-progress,
    details
) {
    border-color: rgba(151, 162, 255, 0.18) !important;
    background: #201d45 !important;
    background-image: none !important;
    box-shadow: none !important;
}

html body[data-page="studio"].studio-theme-aurora main :is(input, textarea, select) {
    border-color: rgba(151, 162, 255, 0.28) !important;
    background: #12112b !important;
    color: #f9f8ff !important;
}

html body[data-page="studio"].studio-theme-aurora main :is(input, textarea, select)::placeholder {
    color: #8181a6 !important;
}

html body[data-page="studio"].studio-theme-aurora main :is(input, textarea, select):focus {
    border-color: #61e6dc !important;
    box-shadow: 0 0 0 4px rgba(97, 230, 220, 0.13) !important;
}

html body[data-page="studio"].studio-theme-aurora main :is(.primary-btn, .primary-link),
html body[data-page="studio"].studio-theme-aurora .studio-workbench .studio-wizard-nav > .primary-btn {
    border-color: #f5df69 !important;
    background: #f5df69 !important;
    background-image: none !important;
    color: #17152f !important;
    box-shadow: 0 10px 26px rgba(245, 223, 105, 0.16) !important;
}

html body[data-page="studio"].studio-theme-aurora main :is(.primary-btn, .primary-link):is(:hover, :focus-visible) {
    border-color: #fff19d !important;
    background: #fff19d !important;
    color: #111027 !important;
}

html body[data-page="studio"].studio-theme-aurora main :is(.secondary-btn, .ghost-link, .link-button, button:not(.primary-btn)) {
    border-color: rgba(151, 162, 255, 0.24) !important;
    background-color: rgba(99, 91, 174, 0.12) !important;
    color: #e7e5f6 !important;
}

html body[data-page="studio"].studio-theme-aurora main :is(.secondary-btn, .ghost-link, .link-button, button:not(.primary-btn)):is(:hover, :focus-visible) {
    border-color: rgba(97, 230, 220, 0.46) !important;
    background-color: rgba(97, 230, 220, 0.11) !important;
    color: #ffffff !important;
}

html body[data-page="studio"].studio-theme-aurora main :is(.eyebrow, p.eyebrow, [class*="-write-head"] > span, .vue-step-state) {
    color: #61e6dc !important;
}

html body[data-page="studio"].studio-theme-aurora main :is(
    .vue-core-flow-mode > button.active,
    .vue-core-fanwork-grid > button.active,
    .vue-route-steps > button.active,
    .vue-route-mini-steps > button.active,
    .vue-route-director-progress > button.active
) {
    border-color: #61e6dc !important;
    background: #2b3263 !important;
    color: #ffffff !important;
    box-shadow: inset 0 -3px 0 #61e6dc !important;
}

html body[data-page="studio"].studio-theme-aurora main :is(.pill, .filter-count, .vue-board-tags > span, [data-field-state="complete"] > small) {
    border-color: rgba(97, 230, 220, 0.24) !important;
    background: rgba(97, 230, 220, 0.09) !important;
    color: #9bf2eb !important;
}

html body[data-page="studio"].studio-theme-aurora .studio-preview .vue-board-dock {
    border-color: rgba(151, 162, 255, 0.28) !important;
    background: #15132f !important;
}

html body[data-page="studio"].studio-theme-aurora .studio-preview .vue-board-dock .vue-board-info > p:not(.eyebrow) {
    color: #bdbbd7 !important;
}

html body[data-page="studio"].studio-theme-aurora .shared-nav-primary-action {
    border-color: #61e6dc !important;
    background: #61e6dc !important;
    background-image: none !important;
    color: #111027 !important;
    box-shadow: 0 8px 24px rgba(97, 230, 220, 0.16) !important;
}

@media (max-width: 780px) {
    html body[data-page="studio"] .shared-theme-switcher {
        gap: 0;
        padding: 2px;
    }

    html body[data-page="studio"] .shared-theme-switcher > button.nav-button {
        min-width: 38px;
        width: 38px;
        padding: 6px !important;
        overflow: hidden;
        color: transparent !important;
        font-size: 0;
    }

    html body[data-page="studio"] .shared-theme-switcher > button.nav-button::before {
        margin: 0 !important;
    }
}

/* Aurora must outrank the focused quick-mode light skin loaded earlier. */
html body[data-page="studio"][data-page="studio"].studio-theme-aurora > header.topbar .shared-nav :is(.brand, .brand strong, .brand span) {
    background: transparent !important;
    color: #f7f5ff !important;
    opacity: 1 !important;
}

html body[data-page="studio"][data-page="studio"].studio-theme-aurora > header.topbar {
    border-bottom-color: rgba(151, 162, 255, 0.2) !important;
    background: #0f0e23 !important;
    background-color: #0f0e23 !important;
    background-image: none !important;
}

html body[data-page="studio"][data-page="studio"].studio-theme-aurora > header.topbar > .brand {
    color: #f7f5ff !important;
    opacity: 1 !important;
}

html body[data-page="studio"][data-page="studio"].studio-theme-aurora.studio-focus-flow.studio-wizard-ready main .studio-panel.is-active :is(
    .vue-step-head h2,
    .vue-step-head strong,
    .vue-core-head h3,
    .vue-core-write-head strong,
    .vue-visual-write-head strong,
    .vue-story-write-head strong,
    .vue-image-write-head strong
) {
    color: #f8f7ff !important;
    opacity: 1 !important;
}

html body[data-page="studio"][data-page="studio"].studio-theme-aurora.studio-focus-flow.studio-wizard-ready main .studio-panel.is-active :is(
    .vue-step-head p,
    .vue-step-head small,
    .vue-core-head p,
    .vue-core-write-head p,
    .vue-visual-write-head p,
    .vue-story-write-head p,
    .vue-image-write-head p
) {
    color: #b9b8d2 !important;
    opacity: 1 !important;
}

html body[data-page="studio"][data-page="studio"].studio-theme-aurora.studio-focus-flow.studio-wizard-ready #studioVueCore .vue-core-dock :is(
    .vue-core-ai-brief,
    .vue-core-fanwork-quick,
    .vue-core-command,
    .vue-core-mission,
    .vue-core-pathline-drawer,
    .vue-core-advanced,
    .vue-core-inspiration
),
html body[data-page="studio"][data-page="studio"].studio-theme-aurora.studio-focus-flow.studio-wizard-ready #studioVueVisual .vue-visual-dock :is(
    .vue-visual-write-now,
    .vue-visual-mission,
    .vue-visual-toolbox
),
html body[data-page="studio"][data-page="studio"].studio-theme-aurora.studio-focus-flow.studio-wizard-ready #studioVueStory .vue-story-dock :is(
    .vue-story-write-now,
    .vue-story-mission,
    .vue-story-toolbox
),
html body[data-page="studio"][data-page="studio"].studio-theme-aurora.studio-focus-flow.studio-wizard-ready #studioVueImage .vue-image-dock :is(
    .vue-image-readiness,
    .vue-image-path,
    .vue-image-prompt,
    .vue-image-toolbox
),
html body[data-page="studio"][data-page="studio"].studio-theme-aurora.studio-focus-flow.studio-wizard-ready #studioVuePublish .vue-publish-dock :is(
    .vue-publish-showcase,
    .vue-publish-decision,
    .vue-publish-toolbox
) {
    border-color: rgba(151, 162, 255, 0.2) !important;
    background: #201d45 !important;
    background-color: #201d45 !important;
    background-image: none !important;
    color: #f7f5ff !important;
    box-shadow: none !important;
}

html body[data-page="studio"][data-page="studio"].studio-theme-aurora.studio-focus-flow.studio-wizard-ready main .studio-panel.is-active :is(input, textarea, select),
html body[data-page="studio"][data-page="studio"].studio-theme-aurora.studio-focus-flow.studio-wizard-ready main .studio-panel.is-active [data-bridge-field] :is(input, textarea, select) {
    border-color: rgba(151, 162, 255, 0.3) !important;
    background: #12112b !important;
    background-color: #12112b !important;
    background-image: none !important;
    color: #f9f8ff !important;
    -webkit-text-fill-color: #f9f8ff !important;
}

html body[data-page="studio"][data-page="studio"].studio-theme-aurora.studio-focus-flow.studio-wizard-ready #studioVueCore .vue-core-flow-mode > button.active,
html body[data-page="studio"][data-page="studio"].studio-theme-aurora.studio-focus-flow.studio-wizard-ready #studioVueCore .vue-core-fanwork-grid > button.active {
    border-color: #61e6dc !important;
    background: #2b3263 !important;
    background-color: #2b3263 !important;
    color: #ffffff !important;
    box-shadow: inset 0 -3px 0 #61e6dc !important;
}

html body[data-page="studio"][data-page="studio"].studio-theme-aurora.studio-focus-flow.studio-wizard-ready #studioVueCore .vue-core-flow-mode > button.active :is(span, strong),
html body[data-page="studio"][data-page="studio"].studio-theme-aurora.studio-focus-flow.studio-wizard-ready #studioVueCore .vue-core-fanwork-grid > button.active :is(span, strong, small) {
    color: #ffffff !important;
}

html body[data-page="studio"][data-page="studio"].studio-theme-aurora.studio-wizard-ready .studio-workbench .studio-wizard-nav {
    border-color: rgba(151, 162, 255, 0.22) !important;
    background: rgba(20, 18, 48, 0.96) !important;
    background-image: none !important;
    box-shadow: 0 -12px 32px rgba(5, 4, 25, 0.24) !important;
}

html body[data-page="studio"][data-page="studio"].studio-theme-aurora.studio-wizard-ready .studio-workbench .studio-wizard-nav > :is(strong, span) {
    color: #f7f5ff !important;
}

html body[data-page="studio"][data-page="studio"].studio-theme-aurora.studio-wizard-ready .studio-workbench .studio-wizard-nav > .primary-btn {
    border-color: #f5df69 !important;
    background: #f5df69 !important;
    color: #17152f !important;
}

html body[data-page="studio"][data-page="studio"].studio-theme-aurora.studio-wizard-ready .studio-workbench .studio-wizard-nav > .secondary-btn,
html body[data-page="studio"][data-page="studio"].studio-theme-aurora.studio-wizard-ready #avatarPreview #studioVueBoard.vue-board-shell .vue-board-dock .secondary-btn {
    border-color: rgba(151, 162, 255, 0.28) !important;
    background: #25224f !important;
    background-color: #25224f !important;
    background-image: none !important;
    color: #eceaf8 !important;
    box-shadow: none !important;
}

html body[data-page="studio"][data-page="studio"].studio-theme-aurora.studio-wizard-ready #avatarPreview #studioVueBoard.vue-board-shell .vue-board-dock {
    border-color: rgba(151, 162, 255, 0.3) !important;
    background: #171531 !important;
    background-color: #171531 !important;
    background-image: none !important;
    color: #f7f5ff !important;
    box-shadow: 0 22px 54px rgba(4, 3, 22, 0.34) !important;
}

html body[data-page="studio"][data-page="studio"].studio-theme-aurora.studio-wizard-ready #avatarPreview #studioVueBoard.vue-board-shell .vue-board-dock .vue-board-info h2 {
    color: #ffffff !important;
}

html body[data-page="studio"][data-page="studio"].studio-theme-aurora.studio-wizard-ready #avatarPreview #studioVueBoard.vue-board-shell .vue-board-dock .vue-board-info > p:not(.eyebrow) {
    color: #bdbbd7 !important;
}

html body[data-page="studio"][data-page="studio"].studio-theme-aurora.studio-wizard-ready #avatarPreview #studioVueBoard.vue-board-shell .vue-board-dock .vue-board-info .vue-board-tags > span {
    border-color: rgba(97, 230, 220, 0.24) !important;
    background: rgba(97, 230, 220, 0.09) !important;
    color: #9bf2eb !important;
}

html body[data-page="studio"][data-page="studio"].studio-theme-aurora.studio-focus-flow.studio-wizard-ready main .studio-panel.is-active :is(
    .vue-core-field,
    .vue-visual-field,
    .vue-story-field,
    .vue-image-field,
    .vue-step-mission,
    .vue-visual-route-card > article,
    .vue-image-prompt-map > article,
    .vue-image-live-status,
    .vue-publish-card-preview,
    .vue-publish-caption-preview,
    .vue-publish-mode-list > button,
    .vue-publish-permission-strip > article,
    .vue-publish-permission-strip > button
) {
    border-color: rgba(151, 162, 255, 0.22) !important;
    background: #17152f !important;
    background-color: #17152f !important;
    background-image: none !important;
    color: #f7f5ff !important;
    box-shadow: none !important;
}

html body[data-page="studio"][data-page="studio"].studio-theme-aurora.studio-focus-flow.studio-wizard-ready main .studio-panel.is-active :is(
    .vue-core-field,
    .vue-visual-field,
    .vue-story-field,
    .vue-image-field
) > span,
html body[data-page="studio"][data-page="studio"].studio-theme-aurora.studio-focus-flow.studio-wizard-ready main .studio-panel.is-active :is(
    .vue-visual-field-drawer,
    .vue-studio-toolbox,
    .vue-studio-refine
) > summary > div > span {
    color: #72e8df !important;
}

html body[data-page="studio"][data-page="studio"].studio-theme-aurora.studio-focus-flow.studio-wizard-ready main .studio-panel.is-active :is(
    .vue-visual-field-drawer,
    .vue-studio-toolbox,
    .vue-studio-refine
) > summary {
    border-color: rgba(151, 162, 255, 0.2) !important;
    background: #1b1838 !important;
    background-color: #1b1838 !important;
    background-image: none !important;
    color: #f7f5ff !important;
}

html body[data-page="studio"][data-page="studio"].studio-theme-aurora.studio-focus-flow.studio-wizard-ready main .studio-panel.is-active :is(
    .vue-visual-field-drawer,
    .vue-studio-toolbox,
    .vue-studio-refine
) > summary > em {
    border-color: rgba(245, 223, 105, 0.26) !important;
    background: rgba(245, 223, 105, 0.09) !important;
    color: #f7e778 !important;
}

html body[data-page="studio"][data-page="studio"].studio-theme-aurora.studio-focus-flow.studio-wizard-ready main .studio-panel.is-active :is(
    .vue-step-task-chips,
    .vue-visual-kit-options,
    .vue-field-suggestions,
    .vue-image-director-grid,
    .vue-publish-gap-row
) > button {
    border-color: rgba(151, 162, 255, 0.2) !important;
    background: #211e45 !important;
    background-color: #211e45 !important;
    color: #e8e6f7 !important;
}

html body[data-page="studio"][data-page="studio"].studio-theme-aurora.studio-focus-flow.studio-wizard-ready main .studio-panel.is-active :is(
    .vue-step-task-chips,
    .vue-visual-kit-options,
    .vue-field-suggestions,
    .vue-image-director-grid,
    .vue-publish-gap-row
) > button:is(.done, .active, [aria-pressed="true"]) {
    border-color: rgba(97, 230, 220, 0.5) !important;
    background: rgba(97, 230, 220, 0.12) !important;
    color: #a3f4ee !important;
}

html body[data-page="studio"][data-page="studio"].studio-theme-aurora.studio-focus-flow.studio-wizard-ready main .studio-panel.is-active :is(
    .vue-publish-card-body,
    .vue-image-result-copy,
    .vue-publish-completion-main
) {
    background: #15132d !important;
    background-color: #15132d !important;
    color: #f7f5ff !important;
}

html body[data-page="studio"][data-page="studio"].studio-theme-aurora.studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .studio-bridge-head > strong {
    color: #f8f7ff !important;
}

html body[data-page="studio"][data-page="studio"].studio-theme-aurora.studio-focus-flow.studio-wizard-ready main .studio-panel.is-active .studio-bridge-head > p {
    color: #b9b8d2 !important;
}

/* Mobile studio is a task-first app surface, not a squeezed desktop workbench. */
html body[data-page="studio"] .vue-mobile-studio-shell,
html body[data-page="studio"] .vue-mobile-character-sheet {
    display: none;
}

@media (max-width: 780px) {
    html body[data-page="studio"] {
        --mobile-nav-height: 66px;
        --mobile-action-height: 76px;
        --mobile-topbar-height: 58px;
        min-width: 0;
        padding-bottom: calc(var(--mobile-nav-height) + var(--mobile-action-height) + env(safe-area-inset-bottom));
        overflow-x: clip;
    }

    html body[data-page="studio"].studio-mobile-sheet-open {
        overflow: hidden;
    }

    html body[data-page="studio"] > header.topbar {
        position: sticky !important;
        top: 0;
        z-index: 120;
        min-height: var(--mobile-topbar-height) !important;
        padding: 0 12px !important;
        border-bottom: 1px solid var(--ref-line) !important;
        background: rgba(248, 250, 251, 0.96) !important;
        backdrop-filter: blur(18px);
    }

    html body[data-page="studio"].studio-theme-night > header.topbar,
    html body[data-page="studio"].studio-theme-aurora > header.topbar {
        background: rgba(15, 14, 35, 0.96) !important;
    }

    html body[data-page="studio"] > header.topbar > :is(.brand, .nav, .primary-link) {
        display: none !important;
    }

    html body[data-page="studio"] > header.topbar > .shared-nav-root,
    html body[data-page="studio"] > header.topbar .shared-nav {
        width: 100% !important;
        min-width: 0 !important;
    }

    html body[data-page="studio"] > header.topbar .shared-nav {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: center !important;
        gap: 10px !important;
        min-height: var(--mobile-topbar-height) !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    html body[data-page="studio"] > header.topbar .shared-nav::before {
        content: "AniMaker";
        min-width: 0;
        color: var(--ref-ink);
        font-size: 18px;
        font-weight: 900;
        line-height: 1;
        white-space: nowrap;
    }

    html body[data-page="studio"] > header.topbar .shared-nav::after {
        content: "OC STUDIO";
        position: absolute;
        left: 12px;
        bottom: 7px;
        color: var(--ref-ink-faint);
        font-size: 8px;
        font-weight: 800;
        letter-spacing: 0.08em;
    }

    html body[data-page="studio"] > header.topbar .shared-nav > .shared-nav-links {
        position: fixed !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        z-index: 180 !important;
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 0 !important;
        width: 100% !important;
        height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom)) !important;
        padding: 5px 8px env(safe-area-inset-bottom) !important;
        border-top: 1px solid var(--ref-line) !important;
        background: rgba(250, 251, 252, 0.97) !important;
        box-shadow: 0 -12px 32px rgba(20, 30, 38, 0.1) !important;
        backdrop-filter: blur(20px);
    }

    html body[data-page="studio"].studio-theme-night > header.topbar .shared-nav > .shared-nav-links,
    html body[data-page="studio"].studio-theme-aurora > header.topbar .shared-nav > .shared-nav-links {
        border-top-color: rgba(151, 162, 255, 0.2) !important;
        background: rgba(15, 14, 35, 0.97) !important;
        box-shadow: 0 -14px 34px rgba(4, 3, 22, 0.34) !important;
    }

    html body[data-page="studio"] > header.topbar .shared-nav-links > a {
        display: none !important;
    }

    html body[data-page="studio"] > header.topbar .shared-nav-links > a:nth-child(1),
    html body[data-page="studio"] > header.topbar .shared-nav-links > a:nth-child(2),
    html body[data-page="studio"] > header.topbar .shared-nav-links > a:nth-child(3),
    html body[data-page="studio"] > header.topbar .shared-nav-links > a:last-child {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 2px !important;
        min-width: 0 !important;
        min-height: 54px !important;
        padding: 4px 2px !important;
        border: 0 !important;
        border-radius: 8px !important;
        background: transparent !important;
        color: var(--ref-ink-faint) !important;
        box-shadow: none !important;
        font-size: 11px !important;
        line-height: 1.1 !important;
    }

    html body[data-page="studio"] > header.topbar .shared-nav-links > a::before {
        width: 20px !important;
        height: 20px !important;
        margin: 0 !important;
        font-size: 18px !important;
    }

    html body[data-page="studio"] > header.topbar .shared-nav-links > a.active {
        color: var(--ref-teal) !important;
        background: var(--ref-mint) !important;
        box-shadow: none !important;
    }

    html body[data-page="studio"] > header.topbar .shared-nav-actions {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 6px !important;
        min-width: 0 !important;
    }

    html body[data-page="studio"] > header.topbar .shared-nav-actions > :is(.shared-nav-status, .shared-nav-primary-action) {
        display: none !important;
    }

    html body[data-page="studio"] > header.topbar .shared-nav-actions > .nav-button[data-ui-icon="logout"] {
        width: 34px !important;
        min-width: 34px !important;
        height: 34px !important;
        padding: 0 !important;
        overflow: hidden;
        color: transparent !important;
        font-size: 0 !important;
    }

    html body[data-page="studio"] > header.topbar .shared-nav-actions > .nav-button[data-ui-icon="logout"]::before {
        margin: 0 !important;
        color: var(--ref-ink-soft) !important;
    }

    html body[data-page="studio"] .shared-theme-switcher {
        width: auto !important;
        padding: 2px !important;
        border-radius: 8px !important;
    }

    html body[data-page="studio"] .shared-theme-switcher > button.nav-button {
        width: 32px !important;
        min-width: 32px !important;
        height: 32px !important;
        min-height: 32px !important;
        border-radius: 7px !important;
    }

    html body[data-page="studio"] > main {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    html body[data-page="studio"] > main > :is(.page-title, .studio-advanced-start, .studio-hero-beats, .studio-launchpad-lite, .vue-reference-shell) {
        display: none !important;
    }

    html body[data-page="studio"] .studio-workbench {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 0 24px !important;
    }

    html body[data-page="studio"] .studio-workbench > :is(.studio-path-banner, .studio-rail, .studio-preview) {
        display: none !important;
    }

    html body[data-page="studio"] .vue-mobile-studio-shell {
        position: sticky;
        top: var(--mobile-topbar-height);
        z-index: 90;
        display: block !important;
        width: 100%;
        border-bottom: 1px solid var(--ref-line);
        background: rgba(246, 248, 249, 0.97);
        box-shadow: 0 10px 26px rgba(20, 30, 38, 0.08);
        backdrop-filter: blur(18px);
    }

    html body[data-page="studio"].studio-theme-night .vue-mobile-studio-shell,
    html body[data-page="studio"].studio-theme-aurora .vue-mobile-studio-shell {
        border-bottom-color: rgba(151, 162, 255, 0.18);
        background: rgba(17, 16, 39, 0.97);
        box-shadow: 0 12px 28px rgba(4, 3, 22, 0.3);
    }

    html body[data-page="studio"] .vue-mobile-studio {
        display: grid;
        gap: 6px;
        padding: 7px 10px 8px;
    }

    html body[data-page="studio"] .vue-mobile-character-trigger {
        display: grid;
        grid-template-columns: 34px minmax(0, 1fr) auto;
        align-items: center;
        gap: 9px;
        width: 100%;
        min-height: 42px;
        padding: 4px 8px 4px 4px;
        border: 1px solid var(--ref-line);
        border-radius: 8px;
        background: var(--ref-paper-strong);
        color: var(--ref-ink);
        text-align: left;
        box-shadow: none;
    }

    html body[data-page="studio"].studio-theme-aurora .vue-mobile-character-trigger {
        border-color: rgba(151, 162, 255, 0.22);
        background: #1b1838;
    }

    html body[data-page="studio"] .vue-mobile-character-trigger > :is(img, span[data-ui-icon]) {
        display: grid;
        width: 34px;
        height: 34px;
        place-items: center;
        overflow: hidden;
        border-radius: 7px;
        background: var(--ref-mint);
        object-fit: cover;
    }

    html body[data-page="studio"] .vue-mobile-character-trigger > span:nth-child(2) {
        display: grid;
        min-width: 0;
        gap: 2px;
    }

    html body[data-page="studio"] .vue-mobile-character-trigger small {
        overflow: hidden;
        color: var(--ref-ink-faint) !important;
        font-size: 9px;
        line-height: 1;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    html body[data-page="studio"] .vue-mobile-character-trigger strong {
        overflow: hidden;
        color: var(--ref-ink) !important;
        font-size: 14px;
        line-height: 1.1;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    html body[data-page="studio"] .vue-mobile-character-trigger em {
        color: var(--ref-teal);
        font-size: 12px;
        font-style: normal;
        font-weight: 900;
    }

    html body[data-page="studio"] .vue-mobile-step-tabs {
        display: grid;
        grid-template-columns: repeat(var(--mobile-step-count, 4), minmax(0, 1fr));
        gap: 4px;
    }

    html body[data-page="studio"] .vue-mobile-step-tabs:has(> button:nth-child(5)) {
        --mobile-step-count: 5;
    }

    html body[data-page="studio"] .vue-mobile-step-tabs > button {
        display: grid;
        grid-template-columns: auto minmax(0, auto);
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-width: 0;
        min-height: 32px;
        padding: 4px 3px;
        border: 1px solid transparent;
        border-radius: 7px;
        background: transparent;
        color: var(--ref-ink-faint);
        box-shadow: none;
    }

    html body[data-page="studio"] .vue-mobile-step-tabs > button::before {
        display: none !important;
    }

    html body[data-page="studio"] .vue-mobile-step-tabs > button > span {
        font-size: 9px;
        font-weight: 800;
    }

    html body[data-page="studio"] .vue-mobile-step-tabs > button > strong {
        overflow: hidden;
        color: inherit !important;
        font-size: 11px;
        line-height: 1;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    html body[data-page="studio"] .vue-mobile-step-tabs > button.done {
        color: var(--ref-teal);
    }

    html body[data-page="studio"] .vue-mobile-step-tabs > button.active {
        border-color: rgba(33, 183, 197, 0.34);
        background: var(--ref-mint);
        color: var(--ref-ink);
    }

    html body[data-page="studio"].studio-theme-aurora .vue-mobile-step-tabs > button.active {
        border-color: rgba(97, 230, 220, 0.36);
        background: rgba(97, 230, 220, 0.11);
        color: #ffffff;
    }

    html body[data-page="studio"][data-page="studio"].studio-theme-night .vue-mobile-step-tabs > button.active,
    html body[data-page="studio"][data-page="studio"].studio-theme-night .vue-mobile-step-tabs > button.active > :is(span, strong) {
        color: #151b22 !important;
    }

    html body[data-page="studio"] .designer-form.studio-flow {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 10px !important;
    }

    html body[data-page="studio"] .studio-panel {
        width: 100% !important;
        min-width: 0 !important;
    }

    html body[data-page="studio"] .studio-panel.is-active {
        display: block !important;
        padding: 0 0 18px !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    html body[data-page="studio"] .studio-panel.is-active > :is(.vue-core-shell, .vue-visual-shell, .vue-story-shell, .vue-image-shell, .vue-publish-shell) {
        width: 100% !important;
        min-width: 0 !important;
    }

    html body[data-page="studio"] .studio-panel.is-active :is(.vue-core-dock, .vue-visual-dock, .vue-story-dock, .vue-image-dock, .vue-publish-dock) {
        width: 100% !important;
        min-width: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    html body[data-page="studio"] .studio-panel.is-active :is(.vue-core-head, .vue-visual-head, .vue-story-head) {
        display: none !important;
    }

    html body[data-page="studio"] .studio-panel.is-active .vue-step-head {
        display: block !important;
        min-height: 0 !important;
        padding: 18px 2px 12px !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    html body[data-page="studio"] .studio-panel.is-active .vue-step-head > div:first-child {
        display: grid;
        gap: 5px;
    }

    html body[data-page="studio"] .studio-panel.is-active .vue-step-head .eyebrow {
        margin: 0 !important;
        font-size: 10px !important;
    }

    html body[data-page="studio"] .studio-panel.is-active .vue-step-head h2 {
        margin: 0 !important;
        font-size: clamp(22px, 7vw, 28px) !important;
        line-height: 1.12 !important;
    }

    html body[data-page="studio"] .studio-panel.is-active .vue-step-head > div:first-child > p:not(.eyebrow),
    html body[data-page="studio"] .studio-panel.is-active .vue-step-head .vue-step-side {
        display: none !important;
    }

    html body[data-page="studio"] .studio-panel.is-active :is(
        .vue-core-write-now,
        .vue-visual-write-now,
        .vue-story-write-now,
        .vue-image-readiness,
        .vue-image-write-now,
        .vue-publish-decision,
        .vue-publish-showcase,
        .studio-ai-bridge,
        .studio-publish-bridge
    ) {
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 0 10px !important;
        padding: 14px !important;
        border-radius: 8px !important;
    }

    html body[data-page="studio"] .studio-panel.is-active :is(.studio-bridge-flow, .vue-core-command, .vue-visual-route-card, .vue-step-mission) {
        display: none !important;
    }

    html body[data-page="studio"] .studio-panel.is-active :is(.vue-core-write-head, .vue-visual-write-head, .vue-story-write-head, .vue-image-write-head, .vue-publish-decision-head) {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    html body[data-page="studio"] .studio-panel.is-active :is(.vue-core-write-head, .vue-visual-write-head, .vue-story-write-head, .vue-image-write-head) p {
        display: none !important;
    }

    html body[data-page="studio"] .studio-panel.is-active :is(button, .primary-btn, .secondary-btn, .primary-link) {
        min-height: 46px;
    }

    html body[data-page="studio"] .studio-panel.is-active :is(input, select, textarea) {
        width: 100% !important;
        min-width: 0 !important;
        font-size: 16px !important;
    }

    html body[data-page="studio"] .studio-panel.is-active textarea {
        min-height: 104px;
        resize: vertical;
    }

    html body[data-page="studio"] .studio-panel.is-active :is(.vue-visual-field, .vue-story-field, .vue-image-field) {
        padding: 10px !important;
        border-radius: 8px !important;
    }

    html body[data-page="studio"] .studio-panel.is-active :is(details, details > summary) {
        border-radius: 8px !important;
    }

    html body[data-page="studio"] .studio-panel.is-active :is(.studio-bridge-actions, .vue-image-primary-actions, .vue-publish-main-actions, .vue-visual-actions) {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    html body[data-page="studio"] .studio-wizard-nav {
        position: fixed !important;
        right: 0 !important;
        bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom)) !important;
        left: 0 !important;
        z-index: 170 !important;
        display: grid !important;
        grid-template-columns: 48px minmax(0, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
        min-height: var(--mobile-action-height) !important;
        margin: 0 !important;
        padding: 10px 12px !important;
        border: 0 !important;
        border-top: 1px solid var(--ref-line) !important;
        border-radius: 0 !important;
        background: rgba(250, 251, 252, 0.97) !important;
        box-shadow: 0 -10px 26px rgba(20, 30, 38, 0.1) !important;
        backdrop-filter: blur(20px);
    }

    html body[data-page="studio"].studio-theme-night .studio-wizard-nav,
    html body[data-page="studio"].studio-theme-aurora .studio-wizard-nav {
        border-top-color: rgba(151, 162, 255, 0.2) !important;
        background: rgba(20, 18, 48, 0.97) !important;
        box-shadow: 0 -12px 28px rgba(4, 3, 22, 0.32) !important;
    }

    html body[data-page="studio"] .studio-wizard-nav > div {
        display: none !important;
    }

    html body[data-page="studio"] .studio-wizard-nav > button {
        min-width: 0 !important;
        min-height: 54px !important;
        margin: 0 !important;
        border-radius: 8px !important;
    }

    html body[data-page="studio"] .studio-wizard-nav > .secondary-btn {
        width: 48px !important;
        padding: 0 !important;
        overflow: hidden;
        color: transparent !important;
        font-size: 0 !important;
    }

    html body[data-page="studio"] .studio-wizard-nav > .secondary-btn::before {
        margin: 0 !important;
        color: var(--ref-ink-soft) !important;
    }

    html body[data-page="studio"] .studio-wizard-nav > .primary-btn {
        grid-column: 2;
        width: 100% !important;
        justify-content: center !important;
        font-size: 15px !important;
    }

    html body[data-page="studio"] .vue-mobile-character-sheet {
        position: fixed;
        inset: 0;
        z-index: 260;
        display: flex !important;
        align-items: flex-end;
        justify-content: stretch;
        padding-top: 12vh;
        background: rgba(8, 8, 18, 0.58);
        backdrop-filter: blur(7px);
    }

    html body[data-page="studio"] .vue-mobile-character-sheet > section {
        width: 100%;
        max-height: 82vh;
        padding: 8px 14px calc(16px + env(safe-area-inset-bottom));
        overflow-y: auto;
        border: 1px solid var(--ref-line-strong);
        border-bottom: 0;
        border-radius: 18px 18px 0 0;
        background: var(--ref-paper);
        color: var(--ref-ink);
        box-shadow: 0 -24px 70px rgba(5, 8, 16, 0.26);
    }

    html body[data-page="studio"].studio-theme-aurora .vue-mobile-character-sheet > section {
        border-color: rgba(151, 162, 255, 0.28);
        background: #171531;
        color: #f7f5ff;
        box-shadow: 0 -28px 76px rgba(4, 3, 22, 0.5);
    }

    html body[data-page="studio"] .vue-mobile-sheet-handle {
        width: 38px;
        height: 4px;
        margin: 0 auto 10px;
        border-radius: 999px;
        background: var(--ref-line-strong);
    }

    html body[data-page="studio"] .vue-mobile-character-sheet header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 12px;
    }

    html body[data-page="studio"] .vue-mobile-character-sheet header > div {
        display: grid;
        gap: 3px;
    }

    html body[data-page="studio"] .vue-mobile-character-sheet header span {
        color: var(--ref-teal);
        font-size: 10px;
        font-weight: 800;
    }

    html body[data-page="studio"] .vue-mobile-character-sheet header strong {
        color: inherit !important;
        font-size: 20px;
    }

    html body[data-page="studio"] .vue-mobile-character-sheet header button {
        width: 40px;
        min-width: 40px;
        height: 40px;
        padding: 0;
        border: 1px solid var(--ref-line);
        border-radius: 8px;
        background: transparent;
        color: inherit;
    }

    html body[data-page="studio"] .vue-mobile-sheet-preview {
        display: grid;
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 12px;
        padding: 10px;
        border: 1px solid var(--ref-line);
        border-radius: 8px;
        background: var(--ref-paper-strong);
    }

    html body[data-page="studio"].studio-theme-aurora .vue-mobile-sheet-preview {
        border-color: rgba(151, 162, 255, 0.22);
        background: #111027;
    }

    html body[data-page="studio"] .vue-mobile-sheet-preview > :is(img, div[data-ui-icon]) {
        display: grid;
        width: 92px;
        aspect-ratio: 3 / 4;
        place-items: center;
        overflow: hidden;
        border-radius: 7px;
        background: var(--ref-mint);
        object-fit: cover;
    }

    html body[data-page="studio"] .vue-mobile-sheet-preview > div:not([data-ui-icon]) {
        display: grid;
        align-content: center;
        gap: 6px;
        min-width: 0;
    }

    html body[data-page="studio"] .vue-mobile-sheet-preview span {
        color: var(--ref-teal);
        font-size: 10px;
        font-weight: 800;
    }

    html body[data-page="studio"] .vue-mobile-sheet-preview strong {
        color: inherit !important;
        font-size: 15px;
    }

    html body[data-page="studio"] .vue-mobile-sheet-preview p {
        display: -webkit-box;
        margin: 0;
        overflow: hidden;
        color: var(--ref-ink-soft) !important;
        font-size: 12px;
        line-height: 1.55;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
    }

    html body[data-page="studio"] .vue-mobile-sheet-progress {
        display: grid;
        gap: 7px;
        margin: 12px 0;
    }

    html body[data-page="studio"] .vue-mobile-sheet-progress > span {
        display: block;
        height: 6px;
        overflow: hidden;
        border-radius: 999px;
        background: var(--ref-line);
    }

    html body[data-page="studio"] .vue-mobile-sheet-progress i {
        display: block;
        height: 100%;
        border-radius: inherit;
        background: var(--ref-teal);
    }

    html body[data-page="studio"] .vue-mobile-sheet-progress small {
        color: var(--ref-ink-faint) !important;
        font-size: 11px;
    }

    html body[data-page="studio"] .vue-mobile-sheet-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
    }

    html body[data-page="studio"] .vue-mobile-sheet-actions > :is(button, a) {
        min-height: 48px;
        border-radius: 8px;
    }
}

@media (max-width: 360px) {
    html body[data-page="studio"] .vue-mobile-step-tabs > button {
        grid-template-columns: 1fr;
        gap: 1px;
    }

    html body[data-page="studio"] .vue-mobile-step-tabs > button > strong {
        font-size: 10px;
    }

    html body[data-page="studio"] .vue-mobile-sheet-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready > header.topbar {
        display: flex !important;
        width: 100% !important;
        min-height: var(--mobile-topbar-height) !important;
        height: var(--mobile-topbar-height) !important;
        padding: 0 12px !important;
        backdrop-filter: none !important;
    }

    html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready > header.topbar .shared-nav {
        grid-template-columns: minmax(104px, 1fr) auto !important;
        min-height: var(--mobile-topbar-height) !important;
        height: var(--mobile-topbar-height) !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }

    html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready > header.topbar .shared-nav-actions {
        grid-column: 2 !important;
        width: auto !important;
        min-width: 0 !important;
        justify-self: end !important;
    }

    html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready > header.topbar .shared-theme-switcher {
        display: grid !important;
        grid-template-columns: repeat(3, 32px) !important;
        width: 102px !important;
        min-width: 102px !important;
        height: 36px !important;
        padding: 2px !important;
    }

    html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready > header.topbar .shared-theme-switcher > button.nav-button {
        width: 32px !important;
        min-width: 32px !important;
        height: 32px !important;
        min-height: 32px !important;
        padding: 0 !important;
        overflow: hidden !important;
        color: transparent !important;
        font-size: 0 !important;
    }

    html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready > header.topbar .shared-theme-switcher > button.nav-button::before {
        content: "" !important;
        display: block !important;
        width: 16px !important;
        height: 16px !important;
        flex: 0 0 16px !important;
        margin: 0 !important;
        border-radius: 0 !important;
        background: currentColor !important;
        color: var(--ref-ink-soft) !important;
        opacity: 0.88 !important;
        -webkit-mask: var(--ui-icon-mask) center / contain no-repeat !important;
        mask: var(--ui-icon-mask) center / contain no-repeat !important;
        box-shadow: none !important;
    }

    html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready > header.topbar .shared-theme-switcher > button.nav-button.active::before {
        color: #111027 !important;
        opacity: 1 !important;
    }

    html body[data-page="studio"][data-page="studio"].studio-theme-night.studio-focus-flow.studio-wizard-ready > header.topbar .shared-theme-switcher > button.nav-button:not(.active)::before,
    html body[data-page="studio"][data-page="studio"].studio-theme-aurora.studio-focus-flow.studio-wizard-ready > header.topbar .shared-theme-switcher > button.nav-button:not(.active)::before {
        color: #c7c5dc !important;
    }

    html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready > header.topbar .shared-nav-links > a:nth-child(n) {
        display: none !important;
    }

    html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready > header.topbar .shared-nav-links > a:nth-child(1),
    html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready > header.topbar .shared-nav-links > a:nth-child(2),
    html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready > header.topbar .shared-nav-links > a:nth-child(3),
    html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready > header.topbar .shared-nav-links > a:last-child {
        display: flex !important;
    }

    html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready > header.topbar .shared-nav-links {
        position: fixed !important;
        inset: auto 0 0 0 !important;
        width: 100vw !important;
        height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom)) !important;
        overflow: visible !important;
    }

    html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready .studio-workbench {
        display: block !important;
        grid-template: none !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 0 24px !important;
    }

    html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready > main {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready > main > .vue-mobile-studio-shell {
        position: sticky !important;
        top: 0 !important;
        z-index: 130 !important;
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
    }

    html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready .studio-workbench > :is(.studio-path-banner, .studio-rail, .studio-preview) {
        display: none !important;
    }

    html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready .designer-form.studio-flow {
        display: block !important;
        order: 0 !important;
        grid-area: auto !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 10px !important;
    }

    html body[data-page="studio"][data-page="studio"].studio-focus-flow.studio-wizard-ready .designer-form.studio-flow > .studio-wizard-nav {
        position: fixed !important;
        inset: auto 0 calc(var(--mobile-nav-height) + env(safe-area-inset-bottom)) 0 !important;
        z-index: 170 !important;
        display: grid !important;
        grid-template-columns: 48px minmax(0, 1fr) !important;
        width: 100vw !important;
        min-height: var(--mobile-action-height) !important;
        margin: 0 !important;
        padding: 10px 12px !important;
        border-radius: 0 !important;
    }
}

/* 20260713-canyon-editorial-v85: one light theme, clearer hierarchy, fewer sticker-like surfaces. */
:root {
    --ref-paper: #faf8f6;
    --ref-paper-strong: #ffffff;
    --ref-ink: #241d1a;
    --ref-ink-soft: #625753;
    --ref-ink-faint: #867975;
    --ref-line: #e8dfda;
    --ref-line-strong: #d8c9c2;
    --ref-teal: #c05c42;
    --ref-teal-bright: #e18466;
    --ref-mint: #f5ddd5;
    --ref-coral: #e58a6c;
    --ref-yellow: #d8a44d;
    --ref-shadow: 0 12px 32px rgba(69, 40, 31, 0.08);
    --ref-radius: 8px;
    --ref-radius-lg: 8px;
    --canyon-paper: #faf8f6;
    --canyon-white: #ffffff;
    --canyon-ink: #241d1a;
    --canyon-muted: #6f625d;
    --canyon-line: #e5dad5;
    --canyon-red: #c05c42;
    --canyon-red-dark: #94402f;
    --canyon-coral: #e58a6c;
    --canyon-ochre: #d8a44d;
    --canyon-blush: #faece7;
    --canyon-plum: #7d4947;
}

html body[data-page] {
    --ink: var(--canyon-ink) !important;
    --muted: var(--canyon-muted) !important;
    --cyan: var(--canyon-red) !important;
    --teal: var(--canyon-red-dark) !important;
    --mint: #efc8bd !important;
    --pink: var(--canyon-coral) !important;
    --yellow: var(--canyon-ochre) !important;
    --green: #9b6355 !important;
    --violet: var(--canyon-plum) !important;
    --oc-v6-cyan: var(--canyon-red) !important;
    --oc-v6-mint: #efc8bd !important;
    --oc-v6-lemon: var(--canyon-ochre) !important;
    --oc-v6-pink: var(--canyon-coral) !important;
    --oc-v13-cyan: var(--canyon-red) !important;
    --oc-v13-coral: var(--canyon-coral) !important;
    --oc-v13-lemon: var(--canyon-ochre) !important;
    --studio-focus-ink: var(--canyon-ink) !important;
    --studio-focus-panel: var(--canyon-white) !important;
    color-scheme: light !important;
    color: var(--canyon-ink) !important;
    background: var(--canyon-paper) !important;
    background-image: none !important;
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif !important;
}

html body[data-page] :is(h1, h2, h3, h4, p, span, strong, small, label, summary, em, b) {
    letter-spacing: 0 !important;
}

html body[data-page] :is(h1, h2, h3, h4, strong, b) {
    color: inherit;
}

html body[data-page] :is(.eyebrow, [class*="-kicker"], [class*="-index"]) {
    color: var(--canyon-red) !important;
}

html body[data-page] > header.topbar {
    min-height: 68px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--canyon-line) !important;
    border-radius: 0 !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

html body[data-page] .brand {
    color: var(--canyon-ink) !important;
}

html body[data-page] .brand::before {
    background: var(--canyon-red) !important;
    box-shadow: 0 0 0 5px var(--canyon-blush) !important;
}

html body[data-page] .shared-nav {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page] :is(.topbar .nav, .shared-nav-links) {
    gap: 2px !important;
}

html body[data-page] :is(.topbar .nav a, .shared-nav-links > a) {
    min-height: 40px !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    color: #675b56 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page] :is(.topbar .nav a, .shared-nav-links > a):is(:hover, :focus-visible, .active) {
    color: var(--canyon-red-dark) !important;
    border-bottom-color: var(--canyon-coral) !important;
    background: #fbf2ef !important;
}

html body[data-page] :is(.primary-btn, .primary-link, .shared-nav-primary-action) {
    min-height: 44px !important;
    padding: 10px 16px !important;
    border: 1px solid var(--canyon-red) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    background: var(--canyon-red) !important;
    background-image: none !important;
    box-shadow: none !important;
    font-weight: 760 !important;
}

html body[data-page] :is(.primary-btn, .primary-link, .shared-nav-primary-action):is(:hover, :focus-visible) {
    border-color: var(--canyon-red-dark) !important;
    background: var(--canyon-red-dark) !important;
    transform: translateY(-1px) !important;
}

html body[data-page] :is(.secondary-btn, .ghost-link, .link-button, .nav-button) {
    min-height: 40px !important;
    padding: 9px 13px !important;
    border: 1px solid var(--canyon-line) !important;
    border-radius: 8px !important;
    color: var(--canyon-ink) !important;
    background: var(--canyon-white) !important;
    background-image: none !important;
    box-shadow: none !important;
}

html body[data-page] :is(.secondary-btn, .ghost-link, .link-button, .nav-button):is(:hover, :focus-visible, .active) {
    border-color: #cda99e !important;
    color: var(--canyon-red-dark) !important;
    background: #fcf3f0 !important;
    transform: translateY(-1px) !important;
}

html body[data-page] :is(.primary-btn, .primary-link, .secondary-btn, .ghost-link, .link-button, .nav-button, .shared-nav-primary-action):disabled {
    opacity: 0.48 !important;
    transform: none !important;
}

@supports ((-webkit-mask-image: linear-gradient(#000, #000)) or (mask-image: linear-gradient(#000, #000))) {
    html body[data-page] :is(
        .primary-btn,
        .primary-link,
        .secondary-btn,
        .ghost-link,
        .link-button,
        .nav-button,
        .shared-nav-primary-action
    )[data-ui-icon]::before {
        content: "" !important;
        display: inline-block !important;
        width: 17px !important;
        height: 17px !important;
        flex: 0 0 17px !important;
        border-radius: 0 !important;
        color: currentColor !important;
        background: currentColor !important;
        background-image: none !important;
        -webkit-mask: var(--ui-icon-mask, var(--ui-icon-spark-mask)) center / contain no-repeat !important;
        mask: var(--ui-icon-mask, var(--ui-icon-spark-mask)) center / contain no-repeat !important;
        box-shadow: none !important;
        filter: none !important;
        opacity: 0.9 !important;
        transform: none !important;
    }
}

html body[data-page] :is(input, textarea, select) {
    border: 1px solid var(--canyon-line) !important;
    border-radius: 8px !important;
    color: var(--canyon-ink) !important;
    background: #ffffff !important;
    background-image: none !important;
    box-shadow: none !important;
}

html body[data-page] :is(input, textarea, select):focus {
    border-color: var(--canyon-coral) !important;
    box-shadow: 0 0 0 3px rgba(222, 116, 87, 0.14) !important;
    outline: 0 !important;
}

html body[data-page] :is(input, textarea, select)::placeholder {
    color: #9a8e89 !important;
}

html body[data-page] :is(.pill, .filter-count, [class*="-chip"], [class*="-tag"]) {
    border-radius: 5px !important;
}

html body[data-page] .pill {
    border: 1px solid #ead7d0 !important;
    color: var(--canyon-red-dark) !important;
    background: #fbefeb !important;
}

html body[data-page] :is(
    .work-card,
    .character-card,
    .player-card,
    .feed-card,
    .vue-template-card,
    .vue-gallery-radar-card,
    .vue-gallery-feed-card,
    .vue-home-creation-card,
    .vue-home-work-card,
    .vue-home-ip-card,
    .vue-home-feed-card,
    .vue-me-inventory-panel,
    .vue-me-command-card
) {
    overflow: hidden !important;
    border: 1px solid var(--canyon-line) !important;
    border-radius: 8px !important;
    color: var(--canyon-ink) !important;
    background: var(--canyon-white) !important;
    background-image: none !important;
    box-shadow: none !important;
}

html body[data-page] :is(
    .work-card,
    .character-card,
    .player-card,
    .feed-card,
    .vue-template-card,
    .vue-gallery-radar-card,
    .vue-home-creation-card
):is(:hover, :focus-within) {
    border-color: #cda99e !important;
    box-shadow: 0 10px 28px rgba(89, 48, 36, 0.08) !important;
    transform: translateY(-2px) !important;
}

html body[data-page] :is(.card-body, [class*="-card"] > div) {
    min-width: 0;
}

html body[data-page] :is(.empty-state, .modal, .comment-modal) {
    border: 1px solid var(--canyon-line) !important;
    border-radius: 8px !important;
    background: var(--canyon-white) !important;
    background-image: none !important;
    box-shadow: var(--ref-shadow) !important;
}

html body[data-page] :is(.section-heading, [class*="-library-head"], [class*="-guide-head"], [class*="-creation-head"]) {
    padding-bottom: 14px !important;
    border-bottom: 1px solid var(--canyon-line) !important;
}

/* Home: open directly into one useful action, with the artwork integrated as the scene. */
html body[data-page="home"] main {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
}

html body[data-page="home"] section.vue-home-hero {
    position: relative !important;
    z-index: 0 !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-height: calc(100svh - 116px) !important;
    margin: 0 !important;
    padding: clamp(48px, 7vw, 92px) max(24px, calc((100vw - 1180px) / 2)) 54px !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    background-color: #4d2926 !important;
    background-image: var(--home-hero-image) !important;
    background-position: 58% 50% !important;
    background-size: cover !important;
    box-shadow: none !important;
}

html body[data-page="home"] section.vue-home-hero::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: -1 !important;
    display: block !important;
    background: rgba(44, 23, 20, 0.64) !important;
}

html body[data-page="home"] .vue-home-copy {
    width: min(100%, 660px) !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #ffffff !important;
}

html body[data-page="home"] .vue-home-copy > .eyebrow {
    color: #f2b969 !important;
}

html body[data-page="home"] .vue-home-copy > h1 {
    margin: 12px 0 16px !important;
    color: #ffffff !important;
    font-size: clamp(44px, 6.6vw, 82px) !important;
    line-height: 0.98 !important;
}

html body[data-page="home"] .vue-home-copy > p:not(.eyebrow) {
    max-width: 580px !important;
    color: rgba(255, 255, 255, 0.84) !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
}

html body[data-page="home"] .vue-home-brief {
    width: min(100%, 640px) !important;
    margin-top: 26px !important;
    padding: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-left: 4px solid var(--canyon-coral) !important;
    border-radius: 8px !important;
    color: var(--canyon-ink) !important;
    background: rgba(255, 252, 250, 0.95) !important;
    box-shadow: 0 18px 50px rgba(25, 11, 10, 0.22) !important;
    backdrop-filter: none !important;
}

html body[data-page="home"] .vue-home-intent-row {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0 !important;
    overflow: hidden !important;
    border: 1px solid var(--canyon-line) !important;
    border-radius: 7px !important;
    background: #ffffff !important;
}

html body[data-page="home"] .vue-home-intent-row button {
    min-height: 54px !important;
    padding: 8px 10px !important;
    border: 0 !important;
    border-right: 1px solid var(--canyon-line) !important;
    border-radius: 0 !important;
    color: var(--canyon-ink) !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="home"] .vue-home-intent-row button:last-child {
    border-right: 0 !important;
}

html body[data-page="home"] .vue-home-intent-row button:is(:hover, :focus-visible) {
    color: var(--canyon-red-dark) !important;
    background: var(--canyon-blush) !important;
}

html body[data-page="home"] .vue-home-brief label {
    margin-top: 12px !important;
}

html body[data-page="home"] .vue-home-brief textarea {
    min-height: 94px !important;
    font-size: 15px !important;
}

html body[data-page="home"] :is(.vue-home-brief-output, .vue-home-brief-chips, .vue-home-feature, .vue-home-actions, .vue-home-flow, .vue-home-hero-routes) {
    display: none !important;
}

html body[data-page="home"].home-gateway-open {
    overflow: hidden !important;
}

html body[data-page="home"].home-gateway-open > header.topbar {
    opacity: 0 !important;
    pointer-events: none !important;
}

html body[data-page="home"] .vue-home-gateway {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1000 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: end !important;
    gap: 36px !important;
    width: 100vw !important;
    min-height: 100svh !important;
    padding: clamp(28px, 5vw, 72px) !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #ffffff !important;
    background: #4f2624 !important;
    box-shadow: none !important;
    isolation: isolate !important;
    transition: opacity 360ms ease, transform 360ms ease !important;
}

html body[data-page="home"] .vue-home-gateway::before {
    content: "" !important;
    position: absolute !important;
    inset: -2% !important;
    z-index: -2 !important;
    display: block !important;
    background-color: #4f2624 !important;
    background-image: var(--home-gateway-image) !important;
    background-position: center !important;
    background-size: cover !important;
    filter: sepia(0.24) saturate(0.94) hue-rotate(336deg) contrast(1.02) brightness(0.91) !important;
    transform: scale(1.025) !important;
    transition: transform 900ms ease !important;
}

html body[data-page="home"] .vue-home-gateway::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: -1 !important;
    display: block !important;
    background: rgba(137, 71, 54, 0.2) !important;
}

html body[data-page="home"] .vue-home-gateway.is-leaving {
    opacity: 0 !important;
    transform: translateY(-12px) !important;
    pointer-events: none !important;
}

html body[data-page="home"] .vue-home-gateway.is-leaving::before {
    transform: scale(1.055) !important;
}

html body[data-page="home"] .vue-home-gateway-copy {
    display: grid !important;
    gap: 16px !important;
    width: min(760px, 72vw) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: #ffffff !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="home"] .vue-home-gateway-copy > span {
    color: #f4bc69 !important;
    font-family: "DIN Alternate", "Arial Narrow", sans-serif !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0.12em !important;
}

html body[data-page="home"] .vue-home-gateway-copy h1 {
    display: grid !important;
    gap: 0 !important;
    margin: 0 !important;
    color: #ffffff !important;
    font-size: clamp(58px, 10vw, 150px) !important;
    font-weight: 850 !important;
    line-height: 0.84 !important;
}

html body[data-page="home"] .vue-home-gateway-copy h1 b:last-child {
    font-size: 0.58em !important;
}

html body[data-page="home"] .vue-home-gateway-copy p {
    max-width: 560px !important;
    margin: 8px 0 0 !important;
    color: rgba(255, 255, 255, 0.82) !important;
    font-size: 17px !important;
    line-height: 1.7 !important;
}

html body[data-page="home"] .vue-home-gateway-index {
    display: flex !important;
    gap: 20px !important;
    margin-top: 10px !important;
    padding-top: 14px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.26) !important;
    color: rgba(255, 255, 255, 0.58) !important;
    font-family: "DIN Alternate", "Arial Narrow", sans-serif !important;
    font-size: 11px !important;
}

html body[data-page="home"] .vue-home-gateway-enter {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 22px !important;
    grid-template-areas: "label icon" "meta icon" !important;
    align-items: center !important;
    gap: 2px 24px !important;
    min-width: 220px !important;
    padding: 16px 0 12px !important;
    border: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.52) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 0 !important;
    color: #ffffff !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: left !important;
    cursor: pointer !important;
    transition: padding-left 180ms ease, border-color 180ms ease !important;
}

html body[data-page="home"] .vue-home-gateway-enter:is(:hover, :focus-visible) {
    padding-left: 12px !important;
    border-top-color: #f4bc69 !important;
    outline: 0 !important;
}

html body[data-page="home"] .vue-home-gateway-enter > span {
    grid-area: label !important;
    color: #ffffff !important;
    font-size: 17px !important;
    font-weight: 760 !important;
}

html body[data-page="home"] .vue-home-gateway-enter > small {
    grid-area: meta !important;
    color: rgba(255, 255, 255, 0.56) !important;
    font-family: "DIN Alternate", "Arial Narrow", sans-serif !important;
    font-size: 10px !important;
    letter-spacing: 0.1em !important;
}

@supports ((-webkit-mask-image: linear-gradient(#000, #000)) or (mask-image: linear-gradient(#000, #000))) {
    html body[data-page="home"] .vue-home-gateway-enter::before {
        content: "" !important;
        grid-area: icon !important;
        display: block !important;
        width: 22px !important;
        height: 22px !important;
        border-radius: 0 !important;
        background: currentColor !important;
        -webkit-mask: var(--ui-icon-next-mask) center / contain no-repeat !important;
        mask: var(--ui-icon-next-mask) center / contain no-repeat !important;
        box-shadow: none !important;
        transition: transform 180ms ease !important;
    }

    html body[data-page="home"] .vue-home-gateway-enter:hover::before {
        transform: translateX(5px) !important;
    }
}

html body[data-page="home"] .vue-home-creation {
    width: min(1180px, calc(100% - 40px)) !important;
    margin: 0 auto !important;
    padding: 52px 0 36px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="home"] .vue-home-creation-grid {
    gap: 14px !important;
}

html body[data-page="home"] .vue-home-creation-card img {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    max-height: none !important;
    border-radius: 0 !important;
    object-fit: cover !important;
}

html body[data-page="home"] :is(.vue-home-next, .vue-home-community-more) {
    width: min(1180px, calc(100% - 40px)) !important;
    margin-inline: auto !important;
    border-radius: 8px !important;
}

/* Community, archives and templates: editorial bands instead of stacked floating panels. */
html body[data-page] :is(
    .vue-gallery-hero,
    .vue-characters-hero,
    .vue-templates-hero,
    .vue-feed-hero,
    .vue-me-hero
) {
    border: 0 !important;
    border-bottom: 1px solid var(--canyon-line) !important;
    border-radius: 0 !important;
    color: var(--canyon-ink) !important;
    background: #ffffff !important;
    background-image: none !important;
    box-shadow: none !important;
}

html body[data-page] :is(.vue-light-page-bg, .vue-gallery, .vue-characters, .vue-templates, .vue-feed, .vue-me-dashboard) {
    background: transparent !important;
    background-image: none !important;
}

html body[data-page] :is(.vue-light-start, .vue-creation-command, .vue-gallery-pulse, .vue-gallery-mission, .vue-feed-response, .vue-me-triage) {
    border: 1px solid var(--canyon-line) !important;
    border-left: 4px solid var(--canyon-red) !important;
    border-radius: 8px !important;
    color: var(--canyon-ink) !important;
    background: #ffffff !important;
    background-image: none !important;
    box-shadow: none !important;
}

html body[data-page] :is(.vue-ownership-strip, .vue-library-boundary, .vue-gallery-cocreate, .vue-character-remix, .vue-template-match, .vue-template-social) {
    border: 1px solid var(--canyon-line) !important;
    border-radius: 8px !important;
    color: var(--canyon-ink) !important;
    background: #f9f5f2 !important;
    background-image: none !important;
    box-shadow: none !important;
}

html body[data-page] :is(.vue-filter-chip, .vue-sort-chip, .vue-template-chip, .vue-feed-filter-chip) {
    min-height: 36px !important;
    border: 1px solid var(--canyon-line) !important;
    border-radius: 6px !important;
    color: var(--canyon-muted) !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

html body[data-page] :is(.vue-filter-chip, .vue-sort-chip, .vue-template-chip, .vue-feed-filter-chip).is-active {
    border-color: var(--canyon-red) !important;
    color: var(--canyon-red-dark) !important;
    background: var(--canyon-blush) !important;
}

/* Studio: one route, one main action, and a compact Fan OC picker. */
html body[data-page="studio"] :is(.studio-theme-switch, .shared-theme-switcher, .theme-toggle-button) {
    display: none !important;
}

html body[data-page="studio"] .page-title.studio-hero-title {
    border: 0 !important;
    border-bottom: 1px solid var(--canyon-line) !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    background-image: none !important;
    box-shadow: none !important;
}

html body[data-page="studio"].studio-focus-flow.studio-wizard-ready .page-title.studio-hero-title {
    width: 100% !important;
    margin: 0 !important;
    padding: 12px max(16px, calc((100vw - 1180px) / 2)) !important;
    border-radius: 0 !important;
}

html body[data-page="studio"] :is(.vue-route-director, .vue-mobile-studio-shell, .studio-panel.is-active) {
    color: var(--canyon-ink) !important;
    background: transparent !important;
    background-image: none !important;
}

html body[data-page="studio"] .vue-core-head,
html body[data-page="studio"] .vue-core-write-head,
html body[data-page="studio"] .vue-core-command {
    display: none !important;
}

html body[data-page="studio"] .vue-core-write-now {
    display: grid !important;
    gap: 18px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="studio"] .vue-core-flow-console {
    display: grid !important;
    grid-template-columns: 190px minmax(0, 1fr) !important;
    gap: 16px !important;
    padding: 0 0 18px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--canyon-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="studio"] .vue-core-flow-mode {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0 !important;
    overflow: hidden !important;
    border: 1px solid var(--canyon-line) !important;
    border-radius: 7px !important;
    background: #ffffff !important;
}

html body[data-page="studio"] .vue-core-flow-mode > button {
    min-height: 62px !important;
    padding: 10px !important;
    border: 0 !important;
    border-right: 1px solid var(--canyon-line) !important;
    border-radius: 0 !important;
    color: var(--canyon-muted) !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

html body[data-page="studio"] .vue-core-flow-mode > button:last-child {
    border-right: 0 !important;
}

html body[data-page="studio"] .vue-core-flow-mode > button.active {
    color: var(--canyon-red-dark) !important;
    background: var(--canyon-blush) !important;
}

html body[data-page="studio"] .vue-core-flow-steps {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0 !important;
    overflow: hidden !important;
    border: 1px solid var(--canyon-line) !important;
    border-radius: 7px !important;
    background: #ffffff !important;
}

html body[data-page="studio"] .vue-core-flow-steps > button {
    min-height: 62px !important;
    padding: 9px 10px 9px 34px !important;
    border: 0 !important;
    border-right: 1px solid var(--canyon-line) !important;
    border-radius: 0 !important;
    color: var(--canyon-ink) !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

html body[data-page="studio"] .vue-core-flow-steps > button:last-child {
    border-right: 0 !important;
}

html body[data-page="studio"] .vue-core-flow-steps > button[data-flow-state="active"] {
    color: var(--canyon-red-dark) !important;
    background: #fbefeb !important;
}

html body[data-page="studio"] .vue-core-flow-steps > button[data-flow-state="done"] {
    color: #67483e !important;
    background: #f8f1ed !important;
}

html body[data-page="studio"] .vue-core-flow-steps > button:is(:disabled, [data-flow-state="locked"]) {
    color: #9b908b !important;
    background: #faf9f8 !important;
}

html body[data-page="studio"] .vue-core-flow-steps > button small {
    display: none !important;
}

html body[data-page="studio"] .vue-core-ai-brief {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 12px !important;
    padding: 18px !important;
    border: 1px solid var(--canyon-line) !important;
    border-left: 4px solid var(--canyon-red) !important;
    border-radius: 8px !important;
    color: var(--canyon-ink) !important;
    background: #ffffff !important;
    background-image: none !important;
    box-shadow: none !important;
}

html body[data-page="studio"] .vue-core-ai-brief > label {
    grid-column: 1 !important;
    margin: 0 !important;
}

html body[data-page="studio"] .vue-core-ai-brief textarea {
    min-height: 112px !important;
    resize: vertical !important;
}

html body[data-page="studio"] .vue-core-ai-brief-actions {
    grid-column: 2 !important;
    display: grid !important;
    grid-template-columns: minmax(150px, 1fr) !important;
    align-content: end !important;
    gap: 8px !important;
}

html body[data-page="studio"] .vue-core-ai-brief-actions > :is(button, a) {
    width: 100% !important;
    min-height: 50px !important;
    border-radius: 8px !important;
}

html body[data-page="studio"] .vue-core-ai-brief-chips {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

html body[data-page="studio"] .vue-core-ai-brief-chips > button[data-ui-icon] {
    display: grid !important;
    grid-template-columns: 18px minmax(0, 1fr) !important;
    grid-template-areas: "icon title" !important;
    min-height: 42px !important;
    padding: 8px 10px !important;
    border: 1px solid var(--canyon-line) !important;
    border-radius: 6px !important;
    color: var(--canyon-muted) !important;
    background: #faf8f7 !important;
    box-shadow: none !important;
}

html body[data-page="studio"] .vue-core-ai-brief-chips > button > span {
    display: none !important;
}

html body[data-page="studio"] .vue-core-ai-brief-chips > button > strong {
    grid-area: title !important;
    overflow: hidden !important;
    color: inherit !important;
    font-size: 13px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body[data-page="studio"] .vue-core-ai-brief-chips > button:is(:hover, :focus-visible, .is-active) {
    border-color: #cda99e !important;
    color: var(--canyon-red-dark) !important;
    background: var(--canyon-blush) !important;
}

html body[data-page="studio"] .vue-core-fanwork-quick {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: 190px minmax(0, 1fr) !important;
    gap: 14px !important;
    padding: 14px 0 0 !important;
    border: 0 !important;
    border-top: 1px solid var(--canyon-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-page="studio"] .vue-core-fanwork-copy p {
    margin-top: 4px !important;
    color: var(--canyon-muted) !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
}

html body[data-page="studio"] .vue-core-fanwork-copy span {
    color: var(--canyon-red) !important;
}

html body[data-page="studio"] .vue-core-fanwork-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 0 !important;
    overflow: hidden !important;
    border: 1px solid var(--canyon-line) !important;
    border-radius: 7px !important;
    background: #ffffff !important;
}

html body[data-page="studio"] .vue-core-fanwork-grid > button {
    min-height: 64px !important;
    padding: 9px 10px !important;
    border: 0 !important;
    border-right: 1px solid var(--canyon-line) !important;
    border-radius: 0 !important;
    color: var(--canyon-ink) !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

html body[data-page="studio"] .vue-core-fanwork-grid > button:last-child {
    border-right: 0 !important;
}

html body[data-page="studio"] .vue-core-fanwork-grid > button small {
    display: none !important;
}

html body[data-page="studio"] .vue-core-fanwork-grid > button:is(:hover, :focus-visible, .active) {
    color: var(--canyon-red-dark) !important;
    background: var(--canyon-blush) !important;
}

html body[data-page="studio"] :is(
    .vue-studio-toolbox,
    .vue-core-pathline-drawer,
    .vue-core-inspiration-drawer,
    .vue-core-actions-drawer,
    .vue-image-channel-drawer,
    .vue-studio-refine
) {
    border: 1px solid var(--canyon-line) !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    background-image: none !important;
    box-shadow: none !important;
}

html body[data-page="studio"] :is(.vue-step-head, .studio-wizard-nav) {
    border-color: var(--canyon-line) !important;
    color: var(--canyon-ink) !important;
    background: #ffffff !important;
    background-image: none !important;
    box-shadow: none !important;
}

html body[data-page="studio"] .vue-mobile-step-tabs > button.active,
html body[data-page="studio"] .vue-mobile-step-tabs > button[aria-current="step"] {
    color: var(--canyon-red-dark) !important;
    background: var(--canyon-blush) !important;
}

html body[data-page="studio"] .vue-mobile-sheet-progress i {
    background: var(--canyon-red) !important;
}

/* Login remains image-led but the form is the only framed tool. */
html body[data-page="login"] main {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
}

html body[data-page="login"] .auth-shell {
    width: 100% !important;
    max-width: none !important;
    min-height: calc(100svh - 68px) !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #f0d8cf !important;
    box-shadow: none !important;
}

html body[data-page="login"] .vue-login-card {
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    border-radius: 8px !important;
    background: rgba(255, 252, 250, 0.97) !important;
    box-shadow: 0 20px 60px rgba(28, 12, 10, 0.22) !important;
}

html body[data-page="login"] .vue-auth-tabs {
    padding: 3px !important;
    border: 1px solid var(--canyon-line) !important;
    border-radius: 7px !important;
    background: #f6f2f0 !important;
}

html body[data-page="login"] .vue-auth-tabs > button {
    border-radius: 5px !important;
}

html body[data-page="login"] .vue-auth-tabs > button.active {
    color: var(--canyon-red-dark) !important;
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(78, 39, 30, 0.08) !important;
}

@media (max-width: 980px) {
    html body[data-page="studio"] .vue-core-flow-console {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    html body[data-page="studio"] .vue-core-flow-mode {
        width: min(100%, 320px) !important;
    }

    html body[data-page="studio"] .vue-core-fanwork-quick {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

@media (max-width: 780px) {
    html body[data-page] > header.topbar {
        min-height: 58px !important;
        height: 58px !important;
        padding-inline: 12px !important;
    }

    html body[data-page] .brand {
        font-size: 16px !important;
    }

    html body[data-page] .shared-nav-primary-action {
        min-width: 42px !important;
        min-height: 40px !important;
        padding: 9px 11px !important;
    }

    html body[data-page] .shared-nav-primary-action .shared-nav-label-full {
        display: none !important;
    }

    html body[data-page] .shared-nav-primary-action .shared-nav-label-short {
        display: inline !important;
    }

    html body[data-page] .shared-nav-links {
        border-top: 1px solid var(--canyon-line) !important;
        background: rgba(255, 255, 255, 0.98) !important;
        box-shadow: 0 -8px 24px rgba(62, 34, 27, 0.06) !important;
    }

    html body[data-page] .shared-nav-links > a {
        border-bottom: 0 !important;
        border-top: 2px solid transparent !important;
        background: transparent !important;
    }

    html body[data-page] .shared-nav-links > a.active {
        border-top-color: var(--canyon-red) !important;
        color: var(--canyon-red-dark) !important;
        background: #fff7f4 !important;
    }

    html body[data-page="home"] section.vue-home-hero {
        min-height: calc(100svh - 108px) !important;
        padding: 42px 16px 34px !important;
        background-position: 63% 50% !important;
    }

    html body[data-page="home"] .vue-home-gateway {
        grid-template-columns: minmax(0, 1fr) !important;
        align-content: end !important;
        gap: 28px !important;
        padding: 28px 20px calc(32px + env(safe-area-inset-bottom)) !important;
    }

    html body[data-page="home"] .vue-home-gateway-copy {
        width: 100% !important;
    }

    html body[data-page="home"] .vue-home-gateway-copy h1 {
        font-size: clamp(58px, 19vw, 88px) !important;
    }

    html body[data-page="home"] .vue-home-gateway-copy p {
        max-width: 34em !important;
        font-size: 14px !important;
    }

    html body[data-page="home"] .vue-home-gateway-enter {
        width: 100% !important;
        min-width: 0 !important;
    }

    html body[data-page="home"] section.vue-home-hero::before {
        background: rgba(44, 23, 20, 0.7) !important;
    }

    html body[data-page="home"] .vue-home-copy > h1 {
        font-size: clamp(42px, 13vw, 62px) !important;
    }

    html body[data-page="home"] .vue-home-copy > p:not(.eyebrow) {
        font-size: 14px !important;
        line-height: 1.65 !important;
    }

    html body[data-page="home"] .vue-home-brief {
        margin-top: 20px !important;
        padding: 12px !important;
    }

    html body[data-page="home"] .vue-home-intent-row {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    html body[data-page="home"] .vue-home-intent-row button:nth-child(2) {
        border-right: 0 !important;
    }

    html body[data-page="home"] .vue-home-intent-row button:nth-child(-n + 2) {
        border-bottom: 1px solid var(--canyon-line) !important;
    }

    html body[data-page="home"] .vue-home-brief-actions {
        grid-template-columns: minmax(0, 1fr) auto !important;
    }

    html body[data-page="home"] .vue-home-creation,
    html body[data-page="home"] :is(.vue-home-next, .vue-home-community-more) {
        width: calc(100% - 24px) !important;
    }

    html body[data-page="studio"] .vue-core-flow-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    html body[data-page="studio"] .vue-core-flow-steps > button:nth-child(2) {
        border-right: 0 !important;
    }

    html body[data-page="studio"] .vue-core-flow-steps > button:nth-child(-n + 2) {
        border-bottom: 1px solid var(--canyon-line) !important;
    }

    html body[data-page="studio"] .vue-core-ai-brief {
        grid-template-columns: minmax(0, 1fr) !important;
        padding: 14px !important;
    }

    html body[data-page="studio"] .vue-core-ai-brief > label,
    html body[data-page="studio"] .vue-core-ai-brief-actions {
        grid-column: 1 !important;
    }

    html body[data-page="studio"] .vue-core-ai-brief-actions {
        grid-template-columns: minmax(0, 1fr) auto !important;
    }

    html body[data-page="studio"] .vue-core-ai-brief-chips {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    html body[data-page="studio"] .vue-core-fanwork-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
    }

    html body[data-page="studio"] .vue-core-fanwork-grid > button {
        min-width: 142px !important;
        scroll-snap-align: start !important;
    }

    html body[data-page="studio"] :is(.studio-panel.is-active, .vue-core-dock) {
        padding-inline: 0 !important;
    }
}

@media (max-width: 480px) {
    html body[data-page="home"] .vue-home-copy > h1 {
        margin-top: 8px !important;
        font-size: 42px !important;
    }

    html body[data-page="home"] .vue-home-brief-cue {
        display: none !important;
    }

    html body[data-page="studio"] .vue-core-flow-mode {
        width: 100% !important;
    }

    html body[data-page="studio"] .vue-core-ai-brief-actions {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

/* Final light-theme action and navigation guards against legacy high-specificity colors. */
html body.animaker-theme-day[data-page] :is(
    main,
    .studio-wizard-nav,
    .shared-nav-actions,
    .modal,
    .comment-modal
) :is(.primary-btn, .primary-link) {
    border-color: var(--canyon-red) !important;
    color: #ffffff !important;
    background: var(--canyon-red) !important;
    background-image: none !important;
    box-shadow: none !important;
}

html body.animaker-theme-day[data-page] :is(
    main,
    .studio-wizard-nav,
    .shared-nav-actions,
    .modal,
    .comment-modal
) :is(.primary-btn, .primary-link):is(:hover, :focus-visible) {
    border-color: var(--canyon-red-dark) !important;
    background: var(--canyon-red-dark) !important;
}

html body.animaker-theme-day[data-page] > header.topbar .shared-nav .shared-nav-links > a.active {
    border-color: var(--canyon-coral) !important;
    color: var(--canyon-red-dark) !important;
    background: #fff6f2 !important;
    box-shadow: none !important;
}

html body.animaker-theme-day[data-page] :is(
    .eyebrow,
    .vue-step-state,
    .vue-step-head .eyebrow,
    .vue-core-ai-brief > label > span,
    .vue-core-brief-source > span,
    .vue-core-fanwork-copy > span,
    .vue-mobile-sheet-preview > div > span,
    [class*="-source-notice"] > span
) {
    color: var(--canyon-red) !important;
}

html body.animaker-theme-day[data-page="studio"] :is(
    .vue-mobile-step-tabs > button.active,
    .vue-mobile-step-tabs > button[aria-current="step"],
    .vue-core-flow-mode > button.active
) {
    border-color: #d8aaa0 !important;
    color: var(--canyon-red-dark) !important;
    background: var(--canyon-blush) !important;
    box-shadow: inset 0 -2px 0 var(--canyon-coral) !important;
}

html body.animaker-theme-day[data-page="home"] section.vue-home-hero {
    background-color: #d68b70 !important;
    background-blend-mode: soft-light !important;
}

html body.animaker-theme-day[data-page="home"] section.vue-home-hero::before {
    z-index: 0 !important;
    background: rgba(75, 42, 34, 0.36) !important;
}

html body.animaker-theme-day[data-page="home"] section.vue-home-hero .vue-home-copy {
    position: relative !important;
    z-index: 1 !important;
}

html body.animaker-theme-day[data-page="home"] section.vue-home-hero .vue-home-copy > h1,
html body.animaker-theme-day[data-page="home"] section.vue-home-hero .vue-home-copy > h1 > span {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

html body.animaker-theme-day[data-page="home"] section.vue-home-hero .vue-home-copy > p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.84) !important;
}

html body.animaker-theme-day[data-page="home"] section.vue-home-hero .vue-home-brief {
    color: var(--canyon-ink) !important;
    background: rgba(255, 252, 250, 0.96) !important;
}

@media (max-width: 780px) {
    html body.animaker-theme-day[data-page]:not([data-page="studio"]) > header.topbar {
        display: grid !important;
        grid-template-columns: minmax(130px, 1fr) auto !important;
        align-items: center !important;
        gap: 10px !important;
        width: 100% !important;
        height: 58px !important;
        min-height: 58px !important;
        padding: 0 12px !important;
    }

    html body.animaker-theme-day[data-page]:not([data-page="studio"]) > header.topbar > .shared-nav-root {
        display: block !important;
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    html body.animaker-theme-day[data-page]:not([data-page="studio"]) > header.topbar .shared-nav {
        display: flex !important;
        justify-content: flex-end !important;
        width: auto !important;
        min-width: 0 !important;
        height: 58px !important;
        padding: 0 !important;
    }

    html body.animaker-theme-day[data-page]:not([data-page="studio"]) > header.topbar .shared-nav-actions {
        display: flex !important;
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    html body.animaker-theme-day[data-page]:not([data-page="studio"]) > header.topbar .shared-nav-actions > :not(.shared-nav-primary-action) {
        display: none !important;
    }

    html body.animaker-theme-day[data-page]:not([data-page="studio"]) > header.topbar .shared-nav-primary-action {
        width: auto !important;
        min-width: 74px !important;
        max-width: 96px !important;
        min-height: 40px !important;
        padding: 8px 10px !important;
        overflow: hidden !important;
        white-space: nowrap !important;
    }

    html body.animaker-theme-day[data-page]:not([data-page="studio"]) > header.topbar .shared-nav-links {
        position: fixed !important;
        inset: auto 0 0 0 !important;
        z-index: 300 !important;
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        width: 100vw !important;
        height: calc(58px + env(safe-area-inset-bottom)) !important;
        padding: 0 8px env(safe-area-inset-bottom) !important;
    }

    html body.animaker-theme-day[data-page]:not([data-page="studio"]) > header.topbar .shared-nav-links > a:nth-child(n) {
        display: none !important;
    }

    html body.animaker-theme-day[data-page]:not([data-page="studio"]) > header.topbar .shared-nav-links > a:nth-child(1),
    html body.animaker-theme-day[data-page]:not([data-page="studio"]) > header.topbar .shared-nav-links > a:nth-child(2),
    html body.animaker-theme-day[data-page]:not([data-page="studio"]) > header.topbar .shared-nav-links > a:nth-child(3),
    html body.animaker-theme-day[data-page]:not([data-page="studio"]) > header.topbar .shared-nav-links > a:last-child {
        display: flex !important;
    }

    html body.animaker-theme-day[data-page]:not([data-page="studio"]) > header.topbar .shared-nav-links > a {
        flex-direction: column !important;
        justify-content: center !important;
        gap: 3px !important;
        min-width: 0 !important;
        min-height: 54px !important;
        padding: 4px !important;
        border: 0 !important;
        border-top: 2px solid transparent !important;
        font-size: 11px !important;
    }

    html body.animaker-theme-day[data-page]:not([data-page="studio"]) > header.topbar .shared-nav-links > a.active {
        border-top-color: var(--canyon-red) !important;
    }

    html body.animaker-theme-day[data-page]:not([data-page="studio"]) main {
        padding-bottom: calc(70px + env(safe-area-inset-bottom)) !important;
    }
}

/* Entrance specificity guard: neutralize legacy pill and title styles. */
html body.animaker-theme-day[data-page="home"].home-gateway-open .vue-home-gateway .vue-home-gateway-copy > span {
    display: block !important;
    width: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #f4bc69 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body.animaker-theme-day[data-page="home"].home-gateway-open .vue-home-gateway .vue-home-gateway-copy h1,
html body.animaker-theme-day[data-page="home"].home-gateway-open .vue-home-gateway .vue-home-gateway-copy h1 > b {
    padding: 0 !important;
    border: 0 !important;
    color: #ffffff !important;
    background: transparent !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 2px 24px rgba(31, 12, 10, 0.18) !important;
}

html body.animaker-theme-day[data-page="home"].home-gateway-open .vue-home-gateway .vue-home-gateway-copy > p {
    color: rgba(255, 255, 255, 0.82) !important;
}

html body.animaker-theme-day[data-page="home"].home-gateway-open .vue-home-gateway .vue-home-gateway-index > span {
    display: inline !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: rgba(255, 255, 255, 0.62) !important;
    background: transparent !important;
    box-shadow: none !important;
}

@supports ((-webkit-mask-image: linear-gradient(#000, #000)) or (mask-image: linear-gradient(#000, #000))) {
    html body.animaker-theme-day[data-page="home"].home-gateway-open .vue-home-gateway .vue-home-gateway-enter::before {
        content: "→" !important;
        display: grid !important;
        place-items: center !important;
        width: 22px !important;
        height: 22px !important;
        color: #ffffff !important;
        background: transparent !important;
        -webkit-mask: none !important;
        mask: none !important;
        font-size: 22px !important;
        font-weight: 500 !important;
        line-height: 1 !important;
    }
}

/* Mobile polish guard: keep actions warm and release the bottom dock from filtered ancestors. */
html body.animaker-theme-day[data-page][data-page][data-page][data-page] main :is(.primary-btn, .primary-link),
html body.animaker-theme-day[data-page][data-page][data-page][data-page] .studio-wizard-nav :is(.primary-btn, .primary-link),
html body.animaker-theme-day[data-page][data-page][data-page][data-page] .shared-nav-actions .shared-nav-primary-action {
    border-color: var(--canyon-red) !important;
    color: #ffffff !important;
    background: var(--canyon-red) !important;
    background-image: none !important;
    box-shadow: none !important;
}

html body.animaker-theme-day[data-page][data-page][data-page][data-page] main :is(.primary-btn, .primary-link):is(:hover, :focus-visible),
html body.animaker-theme-day[data-page][data-page][data-page][data-page] .studio-wizard-nav :is(.primary-btn, .primary-link):is(:hover, :focus-visible) {
    border-color: var(--canyon-red-dark) !important;
    background: var(--canyon-red-dark) !important;
}

html body.animaker-theme-day[data-page][data-page] :is(.eyebrow, .eyebrow::before) {
    border-color: var(--canyon-coral) !important;
    color: var(--canyon-red-dark) !important;
    background-color: var(--canyon-coral) !important;
}

@media (max-width: 780px) {
    html body.animaker-theme-day[data-page][data-page] > header.topbar,
    html body.animaker-theme-day[data-page][data-page] > header.topbar .shared-nav {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        filter: none !important;
        transform: none !important;
    }

    html body.animaker-theme-day[data-page][data-page] > header.topbar .shared-nav-links {
        position: fixed !important;
        inset: auto 0 0 0 !important;
        z-index: 1000 !important;
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        width: 100vw !important;
        max-width: none !important;
        height: calc(58px + env(safe-area-inset-bottom)) !important;
        margin: 0 !important;
        padding: 0 8px env(safe-area-inset-bottom) !important;
        overflow: visible !important;
        border-top: 1px solid var(--canyon-line) !important;
        background: rgba(255, 255, 255, 0.98) !important;
        box-shadow: 0 -8px 26px rgba(80, 48, 38, 0.07) !important;
    }

    html body.animaker-theme-day[data-page][data-page] > header.topbar .shared-nav-links > a {
        width: auto !important;
        min-width: 0 !important;
        min-height: 56px !important;
        padding: 4px 2px !important;
        border: 0 !important;
        border-top: 2px solid transparent !important;
        border-radius: 0 !important;
        font-size: 11px !important;
        background: transparent !important;
    }

    html body.animaker-theme-day[data-page][data-page] > header.topbar .shared-nav-links > a.active {
        border-top-color: var(--canyon-red) !important;
        color: var(--canyon-red-dark) !important;
        background: #fff8f5 !important;
    }

    html body.animaker-theme-day[data-page][data-page] > header.topbar .shared-nav-root,
    html body.animaker-theme-day[data-page][data-page] > header.topbar .shared-nav,
    html body.animaker-theme-day[data-page][data-page] > header.topbar .shared-nav-actions {
        overflow: visible !important;
    }

    html body.animaker-theme-day[data-page]:not([data-page="studio"]) > header.topbar .shared-nav-root {
        width: auto !important;
        min-width: 82px !important;
    }

    html body.animaker-theme-day[data-page]:not([data-page="studio"]) > header.topbar .shared-nav-actions {
        width: auto !important;
        min-width: 0 !important;
    }

    html body.animaker-theme-day[data-page]:not([data-page="studio"]) > header.topbar .shared-nav-primary-action {
        display: inline-flex !important;
        width: auto !important;
        min-width: 76px !important;
        max-width: 98px !important;
    }

    html body.animaker-theme-day[data-page]:is(
        [data-page="gallery"],
        [data-page="characters"],
        [data-page="templates"],
        [data-page="feed"],
        [data-page="me"]
    ) :is(.vue-gallery-hero, .vue-characters-hero, .vue-templates-hero, .vue-feed-hero, .vue-me-hero) {
        width: 100% !important;
        max-width: none !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 34px 18px 30px !important;
        border: 0 !important;
        border-bottom: 1px solid var(--canyon-line) !important;
        border-radius: 0 !important;
        background: #ffffff !important;
        box-shadow: none !important;
    }

    html body.animaker-theme-day[data-page] :is(
        .vue-gallery-copy,
        .vue-characters-copy,
        .vue-templates-copy,
        .vue-feed-hero > div,
        .vue-me-hero-copy
    ) > h1 {
        max-width: 10em !important;
        margin: 16px 0 14px !important;
        font-size: clamp(36px, 12.5vw, 44px) !important;
        line-height: 1.02 !important;
        text-wrap: balance !important;
    }

    html body.animaker-theme-day[data-page] :is(
        .vue-gallery-copy,
        .vue-characters-copy,
        .vue-templates-copy,
        .vue-feed-hero > div,
        .vue-me-hero-copy
    ) > p:not(.eyebrow) {
        font-size: 14px !important;
        line-height: 1.7 !important;
    }

    html body.animaker-theme-day[data-page] :is(
        .vue-gallery-actions,
        .vue-characters-actions,
        .vue-templates-actions,
        .vue-feed-actions,
        .vue-me-actions
    ) {
        gap: 8px !important;
    }

    html body.animaker-theme-day[data-page="login"] .auth-shell {
        background: #f0d8cf !important;
    }

    html body.animaker-theme-day[data-page="login"] .vue-login-card {
        border-color: #e5c7bd !important;
        background: rgba(255, 253, 251, 0.98) !important;
        box-shadow: 0 18px 48px rgba(102, 57, 44, 0.12) !important;
    }
}

/* V89 warm editorial closure: one accent system, visual hero anchors, and quieter guidance. */
html body.animaker-theme-day[data-page="home"] #homeVueApp :is(.primary-btn, .primary-link),
html body.animaker-theme-day[data-page="gallery"] #galleryVueApp :is(.primary-btn, .primary-link),
html body.animaker-theme-day[data-page="characters"] #charactersVueApp :is(.primary-btn, .primary-link),
html body.animaker-theme-day[data-page="templates"] #templatesVueApp :is(.primary-btn, .primary-link),
html body.animaker-theme-day[data-page="login"] #loginVueApp :is(.primary-btn, .primary-link),
html body.animaker-theme-day[data-page="me"] #meVueDashboard :is(.primary-btn, .primary-link),
html body.animaker-theme-day[data-page="feed"] #feedVueApp :is(.primary-btn, .primary-link),
html body.animaker-theme-day[data-page="studio"].studio-wizard-ready main :is(.primary-btn, .primary-link) {
    border-color: var(--canyon-red) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    background: var(--canyon-red) !important;
    background-color: var(--canyon-red) !important;
    background-image: none !important;
    box-shadow: none !important;
}

html body.animaker-theme-day[data-page="home"] #homeVueApp :is(.primary-btn, .primary-link):is(:hover, :focus-visible),
html body.animaker-theme-day[data-page="gallery"] #galleryVueApp :is(.primary-btn, .primary-link):is(:hover, :focus-visible),
html body.animaker-theme-day[data-page="characters"] #charactersVueApp :is(.primary-btn, .primary-link):is(:hover, :focus-visible),
html body.animaker-theme-day[data-page="templates"] #templatesVueApp :is(.primary-btn, .primary-link):is(:hover, :focus-visible),
html body.animaker-theme-day[data-page="login"] #loginVueApp :is(.primary-btn, .primary-link):is(:hover, :focus-visible),
html body.animaker-theme-day[data-page="me"] #meVueDashboard :is(.primary-btn, .primary-link):is(:hover, :focus-visible),
html body.animaker-theme-day[data-page="feed"] #feedVueApp :is(.primary-btn, .primary-link):is(:hover, :focus-visible),
html body.animaker-theme-day[data-page="studio"].studio-wizard-ready main :is(.primary-btn, .primary-link):is(:hover, :focus-visible) {
    border-color: var(--canyon-red-dark) !important;
    background: var(--canyon-red-dark) !important;
    background-color: var(--canyon-red-dark) !important;
    box-shadow: 0 10px 24px rgba(148, 64, 47, 0.16) !important;
}

html body.animaker-theme-day[data-page] main .eyebrow {
    border-color: transparent !important;
    color: var(--canyon-red-dark) !important;
    background: transparent !important;
    background-color: transparent !important;
}

html body.animaker-theme-day[data-page] main .eyebrow::before,
html body.animaker-theme-day[data-page] main :is(
    .vue-light-start > div > span,
    .vue-core-write-head > span,
    .vue-visual-write-head > span,
    .vue-story-write-head > span,
    .vue-image-write-head > span,
    .vue-board-info > .eyebrow,
    .vue-me-next > span,
    .vue-feed-next > span
)::before {
    background: var(--canyon-coral) !important;
}

html body.animaker-theme-day[data-page] :is(.topbar .nav a, .shared-nav-links > a)[data-ui-icon]::before,
html body.animaker-theme-day[data-page] :is(.primary-btn, .primary-link, .secondary-btn, .ghost-link, .link-button, .nav-button)[data-ui-icon]::before {
    border: 0 !important;
    border-radius: 0 !important;
    color: currentColor !important;
    background: transparent !important;
    box-shadow: none !important;
}

@supports ((-webkit-mask-image: linear-gradient(#000, #000)) or (mask-image: linear-gradient(#000, #000))) {
    html body.animaker-theme-day[data-page] :is(.topbar .nav a, .shared-nav-links > a)[data-ui-icon]::before,
    html body.animaker-theme-day[data-page] :is(.primary-btn, .primary-link, .secondary-btn, .ghost-link, .link-button, .nav-button)[data-ui-icon]::before {
        content: "" !important;
        display: inline-block !important;
        width: 17px !important;
        height: 17px !important;
        flex: 0 0 17px !important;
        color: currentColor !important;
        background: currentColor !important;
        -webkit-mask: var(--ui-icon-mask, var(--ui-icon-spark-mask)) center / contain no-repeat !important;
        mask: var(--ui-icon-mask, var(--ui-icon-spark-mask)) center / contain no-repeat !important;
    }
}

html body.animaker-theme-day[data-page][data-page][data-page][data-page] main .eyebrow,
html body.animaker-theme-day[data-page="characters"] #charactersVueApp .vue-character-command .vue-command-anchor .eyebrow,
html body.animaker-theme-day[data-page="templates"] #templatesVueApp .vue-template-command .vue-command-anchor .eyebrow {
    border-color: transparent !important;
    background: transparent !important;
    background-color: transparent !important;
}

html body.animaker-theme-day[data-page="home"] #homeVueApp [class*="-source-notice"],
html body.animaker-theme-day[data-page="gallery"] #galleryVueApp [class*="-source-notice"],
html body.animaker-theme-day[data-page="characters"] #charactersVueApp [class*="-source-notice"],
html body.animaker-theme-day[data-page="templates"] #templatesVueApp [class*="-source-notice"] {
    border-color: var(--canyon-line) !important;
    border-left-color: var(--canyon-coral) !important;
    color: var(--canyon-muted) !important;
    background: transparent !important;
}

html body.animaker-theme-day[data-page="home"] #homeVueApp [class*="-source-notice"] > span,
html body.animaker-theme-day[data-page="gallery"] #galleryVueApp [class*="-source-notice"] > span,
html body.animaker-theme-day[data-page="characters"] #charactersVueApp [class*="-source-notice"] > span,
html body.animaker-theme-day[data-page="templates"] #templatesVueApp [class*="-source-notice"] > span {
    color: var(--canyon-red-dark) !important;
}

html body.animaker-theme-day[data-page="gallery"] #galleryVueApp .vue-gallery-pulse-grid :is(button, a) {
    border-color: #d9b6ac !important;
    color: var(--canyon-red-dark) !important;
}

html body.animaker-theme-day[data-page="gallery"] #galleryVueApp .vue-gallery-pulse-grid :is(button, a):is(:hover, :focus-visible) {
    border-color: var(--canyon-coral) !important;
    background: var(--canyon-blush) !important;
}

html body.animaker-theme-day[data-page="gallery"] #galleryVueApp .vue-gallery-feature .pill,
html body.animaker-theme-day[data-page="gallery"] #galleryVueApp .vue-gallery-card-actions :is(button, a) {
    border-color: rgba(238, 173, 151, 0.56) !important;
    color: #ffe9df !important;
}

html body.animaker-theme-day:is([data-page="characters"], [data-page="templates"]) :is(.vue-characters-hero, .vue-templates-hero) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 410px) !important;
    align-items: center !important;
    gap: clamp(28px, 5vw, 72px) !important;
    min-height: 480px !important;
    padding: clamp(48px, 6vw, 78px) 0 !important;
}

html body.animaker-theme-day[data-page="characters"] #charactersVueApp .vue-character-command,
html body.animaker-theme-day[data-page="templates"] #templatesVueApp .vue-template-command {
    position: relative !important;
    display: block !important;
    align-self: stretch !important;
    min-height: 350px !important;
    overflow: hidden !important;
    border: 1px solid var(--canyon-line) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    background: #2f2826 !important;
    box-shadow: 0 18px 46px rgba(72, 42, 33, 0.11) !important;
}

html body.animaker-theme-day[data-page="characters"] #charactersVueApp .vue-character-command::after,
html body.animaker-theme-day[data-page="templates"] #templatesVueApp .vue-template-command::after {
    content: "" !important;
    position: absolute !important;
    inset: 40% 0 0 !important;
    z-index: 1 !important;
    pointer-events: none !important;
    background: linear-gradient(180deg, transparent, rgba(36, 20, 17, 0.88)) !important;
}

html body.animaker-theme-day[data-page="characters"] #charactersVueApp .vue-character-command .vue-command-anchor,
html body.animaker-theme-day[data-page="templates"] #templatesVueApp .vue-template-command .vue-command-anchor {
    display: block !important;
    height: 100% !important;
    min-height: 350px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

html body.animaker-theme-day[data-page="characters"] #charactersVueApp .vue-character-command .vue-command-anchor > img,
html body.animaker-theme-day[data-page="templates"] #templatesVueApp .vue-template-command .vue-command-anchor > img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    object-fit: cover !important;
    object-position: center 24% !important;
    filter: saturate(0.88) contrast(1.02) sepia(0.08) !important;
}

html body.animaker-theme-day[data-page="characters"] #charactersVueApp .vue-character-command .vue-command-anchor > div,
html body.animaker-theme-day[data-page="templates"] #templatesVueApp .vue-template-command .vue-command-anchor > div {
    position: absolute !important;
    inset: auto 22px 20px !important;
    z-index: 2 !important;
    color: #ffffff !important;
}

html body.animaker-theme-day[data-page="characters"] #charactersVueApp .vue-character-command .vue-command-anchor :is(.eyebrow, h2),
html body.animaker-theme-day[data-page="templates"] #templatesVueApp .vue-template-command .vue-command-anchor :is(.eyebrow, h2) {
    color: #ffffff !important;
}

html body.animaker-theme-day[data-page="characters"] #charactersVueApp .vue-character-command .vue-command-anchor p:not(.eyebrow),
html body.animaker-theme-day[data-page="templates"] #templatesVueApp .vue-template-command .vue-command-anchor p:not(.eyebrow),
html body.animaker-theme-day[data-page="characters"] #charactersVueApp .vue-character-command :is(.vue-command-track, .vue-command-actions),
html body.animaker-theme-day[data-page="templates"] #templatesVueApp .vue-template-command :is(.vue-command-track, .vue-command-actions) {
    display: none !important;
}

html body.animaker-theme-day[data-page="login"] #loginVueApp .vue-login-flow {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0 !important;
    max-width: 520px !important;
    padding: 14px 0 0 !important;
    border: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 0 !important;
    color: #ffffff !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body.animaker-theme-day[data-page="login"] #loginVueApp .vue-login-flow > article {
    min-width: 0 !important;
    padding: 0 14px !important;
    border: 0 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.34) !important;
    border-radius: 0 !important;
    color: rgba(255, 255, 255, 0.78) !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body.animaker-theme-day[data-page="login"] #loginVueApp .vue-login-flow > article:first-child {
    padding-left: 0 !important;
}

html body.animaker-theme-day[data-page="login"] #loginVueApp .vue-login-flow > article:last-child {
    padding-right: 0 !important;
    border-right: 0 !important;
}

html body.animaker-theme-day[data-page="login"] #loginVueApp .vue-login-flow > article > strong {
    color: #ffffff !important;
}

html body.animaker-theme-day[data-page="login"] #loginVueApp .vue-login-flow > article > span {
    display: none !important;
}

html body.animaker-theme-day[data-page="login"] #loginVueApp .auth-shell {
    background:
        linear-gradient(90deg, rgba(250, 246, 243, 0.94) 0%, rgba(250, 246, 243, 0.84) 42%, rgba(246, 224, 215, 0.5) 70%, rgba(230, 172, 150, 0.32) 100%),
        url("../img/generated/ux/home-oc-daylight-studio-v2100.webp") center / cover no-repeat !important;
}

html body.animaker-theme-day[data-page="login"] #loginVueApp .vue-login-art :is(.eyebrow, h1, p),
html body.animaker-theme-day[data-page="login"] #loginVueApp .vue-login-flow > article > strong {
    color: var(--canyon-ink) !important;
    text-shadow: none !important;
}

html body.animaker-theme-day[data-page="login"] #loginVueApp .vue-login-art > .eyebrow,
html body.animaker-theme-day[data-page="login"] #loginVueApp .vue-login-card-head > .eyebrow {
    width: max-content !important;
    padding-left: 18px !important;
    color: var(--canyon-red-dark) !important;
    background: transparent !important;
}

html body.animaker-theme-day[data-page="login"] #loginVueApp .vue-login-art > .eyebrow::before,
html body.animaker-theme-day[data-page="login"] #loginVueApp .vue-login-card-head > .eyebrow::before {
    background: var(--canyon-coral) !important;
}

html body.animaker-theme-day[data-page="login"] #loginVueApp .vue-login-flow {
    border-top-color: rgba(148, 64, 47, 0.2) !important;
    color: var(--canyon-muted) !important;
}

html body.animaker-theme-day[data-page="login"] #loginVueApp .vue-login-flow > article {
    border-right-color: rgba(148, 64, 47, 0.18) !important;
    color: var(--canyon-muted) !important;
}

html body.animaker-theme-day[data-page="login"] #loginVueApp .vue-login-pass > strong {
    border-color: #e2b5a8 !important;
    color: var(--canyon-red-dark) !important;
    background: var(--canyon-blush) !important;
}

@media (max-width: 780px) {
    html body.animaker-theme-day:is([data-page="characters"], [data-page="templates"]) :is(.vue-characters-hero, .vue-templates-hero) {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 20px !important;
        min-height: 0 !important;
        padding: 30px 18px 24px !important;
    }

    html body.animaker-theme-day[data-page="characters"] #charactersVueApp .vue-character-command,
    html body.animaker-theme-day[data-page="templates"] #templatesVueApp .vue-template-command {
        min-height: 248px !important;
        box-shadow: none !important;
    }

    html body.animaker-theme-day[data-page="characters"] #charactersVueApp .vue-character-command .vue-command-anchor,
    html body.animaker-theme-day[data-page="templates"] #templatesVueApp .vue-template-command .vue-command-anchor {
        min-height: 248px !important;
    }

    html body.animaker-theme-day[data-page="characters"] #charactersVueApp .vue-character-command .vue-command-anchor > div,
    html body.animaker-theme-day[data-page="templates"] #templatesVueApp .vue-template-command .vue-command-anchor > div {
        inset: auto 16px 14px !important;
    }

    html body.animaker-theme-day[data-page="login"] #loginVueApp .vue-login-flow {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px !important;
        border-top: 0 !important;
    }

    html body.animaker-theme-day[data-page="login"] #loginVueApp .vue-login-flow > article {
        padding: 0 !important;
        border: 0 !important;
    }

    html body.animaker-theme-day[data-page="login"] #loginVueApp .vue-login-flow > article:not(:first-child) {
        display: none !important;
    }

    html body.animaker-theme-day[data-page="login"] #loginVueApp .auth-shell {
        background:
            linear-gradient(180deg, rgba(250, 246, 243, 0.76), rgba(246, 224, 215, 0.9)),
            url("../img/generated/ux/home-oc-daylight-studio-v2100.webp") 61% center / cover no-repeat !important;
    }
}

/* V91 restrained depth: gradients communicate material and focus without becoming decoration. */
html body.animaker-theme-day[data-page] {
    background: linear-gradient(180deg, #fcfbfa 0%, #f8f4f1 58%, #faf8f6 100%) !important;
}

html body.animaker-theme-day[data-page] :is(
    .vue-gallery-hero,
    .vue-characters-hero,
    .vue-templates-hero,
    .vue-feed-hero,
    .vue-me-hero
) {
    background: linear-gradient(145deg, #ffffff 0%, #fffdfc 62%, #fbf3ef 100%) !important;
}

html body.animaker-theme-day[data-page="home"] #homeVueApp :is(.primary-btn, .primary-link),
html body.animaker-theme-day[data-page="gallery"] #galleryVueApp :is(.primary-btn, .primary-link),
html body.animaker-theme-day[data-page="characters"] #charactersVueApp :is(.primary-btn, .primary-link),
html body.animaker-theme-day[data-page="templates"] #templatesVueApp :is(.primary-btn, .primary-link),
html body.animaker-theme-day[data-page="login"] #loginVueApp :is(.primary-btn, .primary-link),
html body.animaker-theme-day[data-page="me"] #meVueDashboard :is(.primary-btn, .primary-link),
html body.animaker-theme-day[data-page="feed"] #feedVueApp :is(.primary-btn, .primary-link),
html body.animaker-theme-day[data-page="studio"].studio-wizard-ready main :is(.primary-btn, .primary-link),
html body.animaker-theme-day[data-page] .shared-nav-actions .shared-nav-primary-action,
html body.animaker-theme-day[data-page="studio"] .studio-wizard-nav .primary-btn,
html body.animaker-theme-day[data-page="studio"] .vue-core-ai-brief .vue-core-ai-brief-actions > .primary-btn {
    border-color: #b84e3b !important;
    background-color: #c05c42 !important;
    background-image: linear-gradient(135deg, #d47457 0%, #c05c42 48%, #a94738 100%) !important;
    box-shadow: 0 8px 20px rgba(147, 64, 47, 0.16), inset 0 1px rgba(255, 255, 255, 0.2) !important;
}

html body.animaker-theme-day[data-page="home"] #homeVueApp :is(.primary-btn, .primary-link):is(:hover, :focus-visible),
html body.animaker-theme-day[data-page="gallery"] #galleryVueApp :is(.primary-btn, .primary-link):is(:hover, :focus-visible),
html body.animaker-theme-day[data-page="characters"] #charactersVueApp :is(.primary-btn, .primary-link):is(:hover, :focus-visible),
html body.animaker-theme-day[data-page="templates"] #templatesVueApp :is(.primary-btn, .primary-link):is(:hover, :focus-visible),
html body.animaker-theme-day[data-page="login"] #loginVueApp :is(.primary-btn, .primary-link):is(:hover, :focus-visible),
html body.animaker-theme-day[data-page="me"] #meVueDashboard :is(.primary-btn, .primary-link):is(:hover, :focus-visible),
html body.animaker-theme-day[data-page="feed"] #feedVueApp :is(.primary-btn, .primary-link):is(:hover, :focus-visible),
html body.animaker-theme-day[data-page="studio"].studio-wizard-ready main :is(.primary-btn, .primary-link):is(:hover, :focus-visible),
html body.animaker-theme-day[data-page] .shared-nav-actions .shared-nav-primary-action:is(:hover, :focus-visible),
html body.animaker-theme-day[data-page="studio"] .studio-wizard-nav .primary-btn:is(:hover, :focus-visible),
html body.animaker-theme-day[data-page="studio"] .vue-core-ai-brief .vue-core-ai-brief-actions > .primary-btn:is(:hover, :focus-visible) {
    border-color: #913a2f !important;
    background-color: #94402f !important;
    background-image: linear-gradient(135deg, #c05c42 0%, #94402f 100%) !important;
    box-shadow: 0 10px 24px rgba(116, 46, 38, 0.2), inset 0 1px rgba(255, 255, 255, 0.14) !important;
}

html body.animaker-theme-day[data-page="studio"] :is(.vue-route-cover-refresh, .vue-board-cover-candidates button) {
    border-color: #ddbdb4 !important;
    color: var(--canyon-red-dark) !important;
    background: linear-gradient(180deg, #ffffff 0%, #fcf2ee 100%) !important;
    box-shadow: none !important;
}

html body.animaker-theme-day[data-page="home"] section.vue-home-hero::before {
    background:
        linear-gradient(90deg, rgba(80, 40, 31, 0.64) 0%, rgba(122, 61, 45, 0.42) 42%, rgba(115, 55, 42, 0.12) 78%),
        linear-gradient(180deg, rgba(53, 29, 24, 0.06) 42%, rgba(53, 29, 24, 0.34) 100%) !important;
}

html body.animaker-theme-day[data-page="home"] section.vue-home-hero {
    background-color: transparent !important;
    background-blend-mode: normal !important;
}

html body.animaker-theme-day[data-page="studio"][data-page="studio"].studio-wizard-ready #studioVueCore .vue-core-ai-brief .vue-core-ai-brief-actions > .primary-btn {
    border-color: #b84e3b !important;
    color: #ffffff !important;
    background-color: #c05c42 !important;
    background-image: linear-gradient(135deg, #d47457 0%, #c05c42 48%, #a94738 100%) !important;
    box-shadow: 0 8px 20px rgba(147, 64, 47, 0.16), inset 0 1px rgba(255, 255, 255, 0.2) !important;
}

html body.animaker-theme-day[data-page="studio"][data-page="studio"].studio-wizard-ready #studioVueCoreHead :is(.eyebrow, .vue-step-state),
html body.animaker-theme-day[data-page="studio"][data-page="studio"].studio-wizard-ready #studioVueCore .vue-core-write-head > span {
    border-color: var(--canyon-coral) !important;
    color: var(--canyon-red-dark) !important;
    background-color: transparent !important;
}

html body.animaker-theme-day[data-page="studio"][data-page="studio"].studio-wizard-ready #studioVueCoreHead :is(.eyebrow, .vue-step-state)::before,
html body.animaker-theme-day[data-page="studio"][data-page="studio"].studio-wizard-ready #studioVueCore .vue-core-write-head > span::before {
    background: var(--canyon-coral) !important;
}

html body.animaker-theme-day[data-page="home"][data-page="home"] #homeVueApp section.vue-home-hero {
    background:
        linear-gradient(90deg, rgba(75, 39, 32, 0.62) 0%, rgba(111, 54, 42, 0.38) 40%, rgba(154, 88, 65, 0.12) 72%, rgba(42, 31, 29, 0.04) 100%),
        var(--home-hero-image) center / cover no-repeat !important;
    background-blend-mode: normal !important;
}

html body.animaker-theme-day[data-page="home"][data-page="home"] #homeVueApp section.vue-home-hero::before {
    opacity: 1 !important;
    background: linear-gradient(180deg, rgba(53, 29, 24, 0.02) 44%, rgba(53, 29, 24, 0.28) 100%) !important;
}

html body.animaker-theme-day[data-page="home"].home-gateway-open .vue-home-gateway {
    cursor: pointer !important;
}

html body.animaker-theme-day[data-page="home"].home-gateway-open .vue-home-gateway:not(.is-leaving):hover::before {
    transform: scale(1.04) !important;
}

html body.animaker-theme-day[data-page="home"].home-gateway-open .vue-home-gateway:not(.is-leaving):hover .vue-home-gateway-enter {
    padding-left: 12px !important;
    border-top-color: #f4bc69 !important;
}

html body.animaker-theme-day[data-page="home"].home-gateway-open .vue-home-gateway:not(.is-leaving):hover .vue-home-gateway-enter::before {
    transform: translateX(5px) !important;
}

html body.animaker-theme-day.studio-theme-day.studio-mode-quick.studio-wizard-ready.studio-focus-flow[data-page="studio"][data-page="studio"][data-page="studio"] #studioVueCoreHead :is(.eyebrow, .vue-step-state),
html body.animaker-theme-day.studio-theme-day.studio-mode-quick.studio-wizard-ready.studio-focus-flow[data-page="studio"][data-page="studio"][data-page="studio"] #studioVueCore .vue-core-write-head > span {
    border-color: var(--canyon-coral) !important;
    color: var(--canyon-red-dark) !important;
    background: transparent !important;
    background-color: transparent !important;
}

html body.animaker-theme-day.studio-theme-day.studio-mode-quick.studio-wizard-ready.studio-focus-flow[data-page="studio"][data-page="studio"][data-page="studio"] #studioVueCoreHead :is(.eyebrow, .vue-step-state)::before,
html body.animaker-theme-day.studio-theme-day.studio-mode-quick.studio-wizard-ready.studio-focus-flow[data-page="studio"][data-page="studio"][data-page="studio"] #studioVueCore .vue-core-write-head > span::before {
    background: var(--canyon-coral) !important;
}

/* V94 cross-page accent cleanup for legacy status and compact AI components. */
html body.animaker-theme-day[data-page="feed"] #feedVueApp :is(.vue-feed-source-notice, .vue-feed-next) > span,
html body.animaker-theme-day[data-page="me"] #meVueDashboard :is(.vue-me-source-notice, .vue-me-next) > span {
    border-color: transparent !important;
    color: var(--canyon-red-dark) !important;
    background: transparent !important;
}

html body.animaker-theme-day[data-page="feed"] #feedVueApp :is(.vue-feed-source-notice, .vue-feed-next) > span::before,
html body.animaker-theme-day[data-page="me"] #meVueDashboard :is(.vue-me-source-notice, .vue-me-next) > span::before {
    background: var(--canyon-coral) !important;
}

html body.animaker-theme-day[data-page] .shared-ai-mini-go {
    border-color: #b84e3b !important;
    color: #ffffff !important;
    background-color: #c05c42 !important;
    background-image: linear-gradient(135deg, #d47457 0%, #c05c42 52%, #a94738 100%) !important;
    box-shadow: 0 8px 20px rgba(147, 64, 47, 0.16) !important;
}

html body.animaker-theme-day[data-page][data-page].animaker-ai-dock-compact > section.shared-ai-mini-dock .shared-ai-mini-go,
html body.animaker-theme-day[data-page][data-page].animaker-ai-dock-visible > form.shared-ai-dock .primary-link {
    border-color: #b84e3b !important;
    color: #ffffff !important;
    background-color: #c05c42 !important;
    background-image: linear-gradient(135deg, #d47457 0%, #c05c42 52%, #a94738 100%) !important;
    box-shadow: 0 8px 20px rgba(147, 64, 47, 0.16) !important;
}

html body.animaker-theme-day[data-page="admin"] #adminVueApp .vue-admin-login > aside > span {
    border: 1px solid #e3b9ad !important;
    border-radius: 6px !important;
    color: var(--canyon-red-dark) !important;
    background: linear-gradient(180deg, #fffaf8 0%, var(--canyon-blush) 100%) !important;
    box-shadow: none !important;
}

@media (max-width: 780px) {
    html body.animaker-theme-day[data-page="home"] section.vue-home-hero::before {
        background:
            linear-gradient(180deg, rgba(60, 31, 25, 0.38) 0%, rgba(72, 34, 28, 0.58) 70%, rgba(50, 24, 20, 0.74) 100%) !important;
    }
}

/* V96 restrained depth: a visible entrance cue and lifted community/template surfaces. */
html body.animaker-theme-day[data-page="home"].home-gateway-open .vue-home-gateway .vue-home-gateway-enter {
    min-width: 248px !important;
    padding: 16px 18px !important;
    border: 1px solid rgba(255, 238, 218, 0.58) !important;
    border-radius: 8px !important;
    background:
        linear-gradient(115deg, rgba(82, 34, 27, 0.76) 0%, rgba(118, 52, 39, 0.62) 55%, rgba(202, 130, 72, 0.28) 100%) !important;
    box-shadow:
        0 18px 48px rgba(28, 12, 10, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    -webkit-backdrop-filter: blur(10px) saturate(1.08) !important;
    backdrop-filter: blur(10px) saturate(1.08) !important;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease !important;
}

html body.animaker-theme-day[data-page="home"].home-gateway-open .vue-home-gateway:not(.is-leaving):hover .vue-home-gateway-enter,
html body.animaker-theme-day[data-page="home"].home-gateway-open .vue-home-gateway .vue-home-gateway-enter:is(:hover, :focus-visible) {
    padding-left: 18px !important;
    border-color: rgba(255, 215, 153, 0.94) !important;
    box-shadow:
        0 22px 58px rgba(28, 12, 10, 0.32),
        0 0 0 4px rgba(244, 188, 105, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.26) !important;
    transform: translateY(-3px) !important;
}

html body.animaker-theme-day[data-page="home"].home-gateway-open .vue-home-gateway .vue-home-gateway-enter > small {
    color: rgba(255, 238, 218, 0.7) !important;
}

@media (prefers-reduced-motion: no-preference) {
    html body.animaker-theme-day[data-page="home"].home-gateway-open .vue-home-gateway .vue-home-gateway-enter {
        animation: animaker-gateway-cue 3.2s ease-in-out infinite !important;
    }
}

@keyframes animaker-gateway-cue {
    0%, 100% {
        box-shadow:
            0 18px 48px rgba(28, 12, 10, 0.26),
            0 0 0 0 rgba(244, 188, 105, 0),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow:
            0 21px 54px rgba(28, 12, 10, 0.3),
            0 0 0 5px rgba(244, 188, 105, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.24);
    }
}

html body.animaker-theme-day[data-page="home"] #homeVueApp .vue-home-community-more {
    overflow: hidden !important;
    border: 1px solid rgba(174, 116, 95, 0.22) !important;
    border-radius: 8px !important;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 250, 247, 0.98) 58%, rgba(246, 236, 230, 0.96) 100%) !important;
    box-shadow:
        0 30px 76px rgba(74, 40, 32, 0.14),
        0 8px 22px rgba(74, 40, 32, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

html body.animaker-theme-day[data-page="home"] #homeVueApp .vue-home-community-more > summary {
    background:
        linear-gradient(110deg, rgba(255, 255, 255, 0.94) 0%, rgba(252, 244, 239, 0.9) 100%) !important;
}

html body.animaker-theme-day[data-page="home"] #homeVueApp .vue-home-community-more[open] > summary {
    border-bottom-color: rgba(174, 116, 95, 0.2) !important;
    box-shadow: 0 12px 30px rgba(74, 40, 32, 0.06) !important;
}

html body.animaker-theme-day[data-page="home"] #homeVueApp :is(
    .vue-home-work-card,
    .vue-home-ip-card,
    .vue-home-feed-card,
    .vue-home-template-list > a,
    .vue-home-list > a,
    .vue-home-creator-list > a,
    .vue-home-post-list > article
) {
    border-color: rgba(174, 116, 95, 0.2) !important;
    background-color: #ffffff !important;
    box-shadow:
        0 16px 36px rgba(74, 40, 32, 0.11),
        0 3px 10px rgba(74, 40, 32, 0.06) !important;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease !important;
}

html body.animaker-theme-day[data-page="home"] #homeVueApp :is(
    .vue-home-work-card,
    .vue-home-ip-card,
    .vue-home-feed-card,
    .vue-home-template-list > a,
    .vue-home-list > a,
    .vue-home-creator-list > a
):is(:hover, :focus-within) {
    border-color: rgba(176, 86, 64, 0.38) !important;
    box-shadow:
        0 22px 48px rgba(74, 40, 32, 0.16),
        0 5px 14px rgba(74, 40, 32, 0.08) !important;
    transform: translateY(-3px) !important;
}

html body.animaker-theme-day[data-page="templates"] #templatesVueApp :is(
    .vue-template-command,
    .vue-template-match,
    .vue-template-social,
    .vue-template-guide,
    .vue-template-card
),
html body.animaker-theme-day[data-page="gallery"] #galleryVueApp :is(
    .vue-gallery-feature,
    .vue-gallery-pulse,
    .vue-gallery-work-grid > .work-card
) {
    border-color: rgba(174, 116, 95, 0.22) !important;
    box-shadow:
        0 18px 42px rgba(74, 40, 32, 0.12),
        0 4px 12px rgba(74, 40, 32, 0.06) !important;
}

html body.animaker-theme-day[data-page="templates"] #templatesVueApp .vue-template-grid > .vue-template-card,
html body.animaker-theme-day[data-page="gallery"] #galleryVueApp .vue-gallery-work-grid > .work-card {
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease !important;
}

html body.animaker-theme-day[data-page="templates"] #templatesVueApp .vue-template-grid > .vue-template-card:is(:hover, :focus-within),
html body.animaker-theme-day[data-page="gallery"] #galleryVueApp .vue-gallery-work-grid > .work-card:is(:hover, :focus-within) {
    border-color: rgba(176, 86, 64, 0.4) !important;
    box-shadow:
        0 25px 54px rgba(74, 40, 32, 0.17),
        0 6px 16px rgba(74, 40, 32, 0.08) !important;
    transform: translateY(-3px) !important;
}

@media (prefers-reduced-motion: reduce) {
    html body.animaker-theme-day[data-page] :is(.vue-home-gateway-enter, .vue-home-work-card, .vue-home-ip-card, .vue-home-feed-card, .vue-template-card, .work-card) {
        animation: none !important;
        transition-duration: 0.01ms !important;
        transform: none !important;
    }
}

/* V97 studio task console: one cover action, visible progress, and one coherent UI palette. */
html body.animaker-theme-day[data-page="studio"] {
    --studio-ui-paper: #fbfaf9;
    --studio-ui-surface: #ffffff;
    --studio-ui-surface-soft: #f4f5f7;
    --studio-ui-ink: #241d1a;
    --studio-ui-muted: #6f6662;
    --studio-ui-slate: #59616f;
    --studio-ui-line: #e3d9d4;
    --studio-ui-line-strong: #cfb9af;
    --studio-ui-action: #bd573f;
    --studio-ui-action-dark: #8f3d2f;
    --studio-ui-coral: #e28668;
    --studio-ui-ochre: #c8953e;
    --studio-ui-blush: #fbefeb;
    --studio-ui-shadow: 0 18px 48px rgba(67, 41, 34, 0.1), 0 3px 10px rgba(67, 41, 34, 0.05);
}

html body.animaker-theme-day[data-page="studio"] .studio-panel.is-active {
    color: var(--studio-ui-ink) !important;
}

html body.animaker-theme-day[data-page="studio"] .studio-panel.is-active :is(
    .vue-step-next-cue,
    .vue-step-mission,
    .vue-route-director-focus,
    .vue-board-director-cue,
    .vue-core-ai-brief,
    .vue-image-readiness,
    .vue-image-write-now,
    .vue-publish-decision
) {
    border-color: var(--studio-ui-line) !important;
    color: var(--studio-ui-ink) !important;
    background-color: var(--studio-ui-surface) !important;
    background-image: linear-gradient(145deg, #ffffff 0%, #fdfaf8 62%, #f5f3f2 100%) !important;
    box-shadow: var(--studio-ui-shadow) !important;
}

html body.animaker-theme-day[data-page="studio"] .studio-panel.is-active :is(
    .vue-step-next-cue,
    .vue-step-mission,
    .vue-route-director-focus,
    .vue-board-director-cue
) :is(span, em):first-child {
    color: var(--studio-ui-action-dark) !important;
    background-color: transparent !important;
    background-image: none !important;
}

html body.animaker-theme-day[data-page="studio"] .studio-panel.is-active :is(
    [data-field-state="complete"],
    [data-ready-state="ready"],
    [data-flow-state="done"],
    .ready,
    .done
) > :is(span, small):first-child {
    color: var(--studio-ui-action-dark) !important;
    background-color: transparent !important;
    background-image: none !important;
}

html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-dock {
    display: grid !important;
    gap: 20px !important;
    color: var(--studio-ui-ink) !important;
}

html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-readiness {
    position: relative !important;
    display: grid !important;
    gap: 18px !important;
    overflow: hidden !important;
    padding: clamp(22px, 3vw, 34px) !important;
    border: 1px solid var(--studio-ui-line) !important;
    border-radius: 8px !important;
    background:
        linear-gradient(125deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 249, 246, 0.96) 58%, rgba(244, 245, 247, 0.96) 100%) !important;
    box-shadow: var(--studio-ui-shadow) !important;
    isolation: isolate !important;
}

html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-readiness::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 auto 0 0 !important;
    width: 4px !important;
    background: linear-gradient(180deg, var(--studio-ui-coral), var(--studio-ui-action), var(--studio-ui-ochre)) !important;
}

html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-readiness-head {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.72fr) !important;
    align-items: end !important;
    gap: clamp(22px, 4vw, 52px) !important;
}

html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-readiness-head > div:first-child {
    min-width: 0 !important;
}

html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-readiness-head > div:first-child > span {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 26px !important;
    margin-bottom: 12px !important;
    padding: 0 10px !important;
    border: 1px solid rgba(189, 87, 63, 0.24) !important;
    border-radius: 5px !important;
    color: var(--studio-ui-action-dark) !important;
    background: rgba(251, 239, 235, 0.76) !important;
    font-size: 12px !important;
    font-weight: 850 !important;
}

html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-readiness-head > div:first-child > strong {
    display: block !important;
    max-width: 720px !important;
    color: var(--studio-ui-ink) !important;
    font-size: clamp(28px, 3.6vw, 46px) !important;
    font-weight: 850 !important;
    line-height: 1.08 !important;
}

html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-readiness-head > div:first-child > p {
    max-width: 720px !important;
    margin: 12px 0 0 !important;
    color: var(--studio-ui-muted) !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
}

html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-command-status {
    display: grid !important;
    grid-template-columns: 38px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 0 !important;
    padding: 2px 0 2px 20px !important;
    border: 0 !important;
    border-left: 1px solid var(--studio-ui-line-strong) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-command-status > span[data-ui-icon] {
    display: grid !important;
    width: 38px !important;
    height: 38px !important;
    place-items: center !important;
    border: 1px solid rgba(189, 87, 63, 0.2) !important;
    border-radius: 50% !important;
    color: var(--studio-ui-action-dark) !important;
    background: var(--studio-ui-blush) !important;
}

html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-command-status > span[data-ui-icon]::before {
    width: 17px !important;
    height: 17px !important;
}

html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-command-status strong {
    display: block !important;
    color: var(--studio-ui-ink) !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
}

html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-command-status small {
    display: block !important;
    margin-top: 4px !important;
    color: var(--studio-ui-muted) !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
}

html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-runway {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-top: 1px solid var(--studio-ui-line) !important;
    border-bottom: 1px solid var(--studio-ui-line) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-runway > span {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 14px minmax(0, 1fr) !important;
    grid-template-areas: "dot title" "dot meta" !important;
    align-items: center !important;
    gap: 2px 10px !important;
    min-width: 0 !important;
    min-height: 72px !important;
    padding: 12px 16px !important;
    border: 0 !important;
    border-right: 1px solid var(--studio-ui-line) !important;
    border-radius: 0 !important;
    color: var(--studio-ui-muted) !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-runway > span:last-child {
    border-right: 0 !important;
}

html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-runway > span > i {
    grid-area: dot !important;
    width: 10px !important;
    height: 10px !important;
    margin: 0 !important;
    border: 2px solid #a8adb5 !important;
    border-radius: 50% !important;
    background: var(--studio-ui-surface) !important;
    box-shadow: none !important;
}

html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-runway > span > strong {
    grid-area: title !important;
    min-width: 0 !important;
    color: inherit !important;
    font-size: 13px !important;
}

html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-runway > span > small {
    grid-area: meta !important;
    min-width: 0 !important;
    overflow: hidden !important;
    color: inherit !important;
    font-size: 11px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-runway > span:is(.active, .done) {
    color: var(--studio-ui-action-dark) !important;
    background: linear-gradient(180deg, rgba(251, 239, 235, 0.72), rgba(255, 255, 255, 0.32)) !important;
}

html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-runway > span.active > i {
    border-color: var(--studio-ui-ochre) !important;
    background: #fff7e8 !important;
    box-shadow: 0 0 0 4px rgba(200, 149, 62, 0.14) !important;
}

html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-runway > span.done > i {
    border-color: var(--studio-ui-action) !important;
    background: var(--studio-ui-action) !important;
}

html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-primary-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: stretch !important;
    gap: 10px !important;
}

html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-submit-action {
    width: 100% !important;
    min-height: 56px !important;
    border-color: var(--studio-ui-action) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #ce6a50 0%, var(--studio-ui-action) 54%, var(--studio-ui-action-dark) 100%) !important;
    box-shadow: 0 12px 26px rgba(143, 61, 47, 0.19), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    font-size: 15px !important;
}

html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-submit-action:is(:hover, :focus-visible) {
    border-color: var(--studio-ui-action-dark) !important;
    background: linear-gradient(135deg, #c65e47 0%, #aa4938 58%, #7f352a 100%) !important;
    box-shadow: 0 15px 32px rgba(143, 61, 47, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
    transform: translateY(-1px) !important;
}

html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-quick-tools {
    display: grid !important;
    grid-template-columns: repeat(2, 48px) !important;
    gap: 8px !important;
}

html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-icon-action {
    display: grid !important;
    width: 48px !important;
    min-width: 48px !important;
    height: 56px !important;
    min-height: 56px !important;
    padding: 0 !important;
    place-items: center !important;
    border-color: var(--studio-ui-line) !important;
    border-radius: 8px !important;
    color: var(--studio-ui-slate) !important;
    background: rgba(255, 255, 255, 0.86) !important;
    box-shadow: none !important;
}

html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-icon-action::before {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
}

html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-action-feedback {
    min-height: 20px !important;
    margin: -6px 0 0 !important;
    color: var(--studio-ui-muted) !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
}

html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-action-feedback::before {
    content: "" !important;
    display: inline-block !important;
    width: 6px !important;
    height: 6px !important;
    margin: 0 8px 1px 1px !important;
    border-radius: 50% !important;
    background: var(--studio-ui-slate) !important;
}

html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-readiness[data-readiness-state="running"] .vue-image-action-feedback::before {
    background: var(--studio-ui-ochre) !important;
    box-shadow: 0 0 0 4px rgba(200, 149, 62, 0.12) !important;
}

html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-readiness[data-readiness-state="failed"] .vue-image-action-feedback::before {
    background: var(--studio-ui-action) !important;
}

html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-readiness[data-readiness-state="running"] .vue-image-submit-action:disabled {
    opacity: 1 !important;
    cursor: wait !important;
}

html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-readiness[data-readiness-state="running"] .vue-image-submit-action::before {
    animation: animaker-studio-task-spin 1s linear infinite !important;
}

html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-write-now {
    padding: 28px 0 0 !important;
    border: 0 !important;
    border-top: 1px solid var(--studio-ui-line) !important;
    border-radius: 0 !important;
    color: var(--studio-ui-ink) !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-write-head > div > span {
    color: var(--studio-ui-action-dark) !important;
    background: transparent !important;
}

html body.animaker-theme-day[data-page="studio"] #studioVueImage :is(.vue-image-prompt-map > article, .vue-image-field) {
    border-color: var(--studio-ui-line) !important;
    border-radius: 8px !important;
    color: var(--studio-ui-ink) !important;
    background: var(--studio-ui-surface) !important;
    background-image: none !important;
    box-shadow: none !important;
}

html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-prompt-map > article.ready {
    border-color: #d9b9af !important;
    background: linear-gradient(180deg, #fffdfc 0%, #fbf2ef 100%) !important;
}

html body.animaker-theme-day[data-page="studio"] #studioVueImage :is(.vue-image-channel-drawer, .vue-image-manual) {
    border-color: var(--studio-ui-line) !important;
    border-radius: 8px !important;
    background: var(--studio-ui-surface) !important;
    background-image: none !important;
    box-shadow: 0 8px 24px rgba(67, 41, 34, 0.06) !important;
}

html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-result-card {
    overflow: hidden !important;
    border: 1px solid var(--studio-ui-line) !important;
    border-radius: 8px !important;
    color: var(--studio-ui-ink) !important;
    background: linear-gradient(135deg, #ffffff 0%, #fff9f6 68%, #f4f5f7 100%) !important;
    box-shadow: var(--studio-ui-shadow) !important;
}

html body.animaker-theme-day[data-page="studio"] #studioVueBoard .vue-board-dock :is(
    .vue-board-readiness,
    .vue-board-status,
    .vue-board-source-card,
    .vue-board-notice
) {
    border-color: var(--studio-ui-line) !important;
    color: var(--studio-ui-ink) !important;
    background: linear-gradient(145deg, #ffffff 0%, #fbf8f6 100%) !important;
    box-shadow: none !important;
}

html body.animaker-theme-day[data-page="studio"] #studioVueBoard .vue-board-dock :is(
    .vue-board-readiness-grid > button,
    .vue-board-tags > span,
    .vue-board-file-stamps > span
) {
    border-color: var(--studio-ui-line) !important;
    color: var(--studio-ui-slate) !important;
    background: var(--studio-ui-surface-soft) !important;
    background-image: none !important;
}

html body.animaker-theme-day[data-page="studio"] #studioVueBoard .vue-board-dock .vue-board-readiness-grid > button.ready {
    border-color: #d9b9af !important;
    color: var(--studio-ui-action-dark) !important;
    background: var(--studio-ui-blush) !important;
}

html body.animaker-theme-day[data-page="studio"] #studioVueBoard .vue-board-readiness-bar > span {
    background: linear-gradient(90deg, var(--studio-ui-action), var(--studio-ui-ochre)) !important;
}

@keyframes animaker-studio-task-spin {
    to {
        transform: rotate(1turn);
    }
}

@media (max-width: 860px) {
    html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-readiness-head {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 18px !important;
    }

    html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-command-status {
        padding: 14px 0 0 !important;
        border-left: 0 !important;
        border-top: 1px solid var(--studio-ui-line) !important;
    }
}

@media (max-width: 620px) {
    html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-readiness {
        padding: 20px 16px !important;
    }

    html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-runway {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-runway > span {
        min-height: 58px !important;
        border-right: 0 !important;
        border-bottom: 1px solid var(--studio-ui-line) !important;
    }

    html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-runway > span:last-child {
        border-bottom: 0 !important;
    }

    html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-primary-actions {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-quick-tools {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-icon-action {
        width: 100% !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-readiness[data-readiness-state="running"] .vue-image-submit-action::before {
        animation: none !important;
    }
}

/* V98: carry the cover step and dossier metadata into the same warm task system. */
html body.animaker-theme-day.studio-theme-day.studio-wizard-ready.studio-focus-flow[data-page="studio"][data-page="studio"] #studioVueImageHead .vue-step-head :is(.eyebrow, .vue-step-state) {
    border-color: rgba(189, 87, 63, 0.36) !important;
    color: var(--studio-ui-action-dark) !important;
    background: rgba(251, 239, 235, 0.8) !important;
    box-shadow: none !important;
}

html body.animaker-theme-day.studio-theme-day.studio-wizard-ready.studio-focus-flow[data-page="studio"][data-page="studio"] #studioVueImageHead .vue-step-head .eyebrow {
    min-height: 24px !important;
    padding: 0 9px !important;
    border-radius: 5px !important;
}

html body.animaker-theme-day.studio-theme-day.studio-wizard-ready.studio-focus-flow[data-page="studio"][data-page="studio"] #studioVueImageHead .vue-step-head .vue-step-state {
    min-height: 30px !important;
    padding: 0 10px !important;
    border-radius: 5px !important;
}

html body.animaker-theme-day.studio-theme-day.studio-wizard-ready.studio-focus-flow[data-page="studio"][data-page="studio"] #studioVueImageHead .vue-step-head :is(.eyebrow, .vue-step-state)::before {
    background: var(--studio-ui-coral) !important;
}

html body.animaker-theme-day[data-page="studio"] #studioVueImageHead .vue-step-next-cue {
    border-left-color: rgba(189, 87, 63, 0.42) !important;
}

html body.animaker-theme-day.studio-theme-day.studio-mode-quick.studio-wizard-ready.studio-focus-flow[data-page="studio"][data-page="studio"] #avatarPreview #studioVueBoard.vue-board-shell .vue-board-dock .vue-board-info .vue-board-tags > span {
    border-color: var(--studio-ui-line) !important;
    color: var(--studio-ui-slate) !important;
    background: var(--studio-ui-surface-soft) !important;
    box-shadow: none !important;
}

html body.animaker-theme-day[data-page="studio"] #studioVueImage .vue-image-readiness::after {
    display: none !important;
}

/* V99: keep a single primary cover command in each viewport. */
@media (min-width: 781px) {
    html body.animaker-theme-day[data-page="studio"].studio-step-ai .studio-wizard-nav[data-cover-pending="true"] {
        display: none !important;
    }
}

@media (max-width: 780px) {
    html body.animaker-theme-day[data-page="studio"].studio-step-ai #studioVueImage .vue-image-readiness .vue-image-primary-actions {
        display: none !important;
    }
}

/* V100: one visual language for every AniMaker surface.
   The product uses a quiet archive palette: paper, ink, coral for action and old gold for progress. */
html body[data-page] {
    --archive-page: #f3f1ef;
    --archive-page-low: #ebe8e5;
    --archive-surface: #fdfcfa;
    --archive-surface-soft: #f7f4f1;
    --archive-surface-strong: #eee9e6;
    --archive-ink: #262229;
    --archive-text: #4e4851;
    --archive-muted: #7a727c;
    --archive-line: #ded8d5;
    --archive-line-strong: #c9c0bc;
    --archive-coral: #b85448;
    --archive-coral-deep: #8d3e35;
    --archive-coral-wash: #f5e3df;
    --archive-gold: #c99b4c;
    --archive-gold-wash: #f5eddb;
    --archive-steel: #626c76;
    --archive-plum: #756778;
    --archive-shadow: 0 18px 42px rgba(49, 37, 43, 0.09);
    --archive-shadow-soft: 0 8px 22px rgba(49, 37, 43, 0.06);
    --archive-radius: 16px;
    --archive-radius-sm: 10px;

    /* Legacy aliases let pre-existing screens inherit the same language. */
    --ui-page: var(--archive-page);
    --ui-page-low: var(--archive-page-low);
    --ui-panel: rgba(253, 252, 250, 0.88);
    --ui-panel-solid: var(--archive-surface);
    --ui-panel-soft: var(--archive-surface-soft);
    --ui-ink: var(--archive-ink);
    --ui-text: var(--archive-text);
    --ui-muted: var(--archive-muted);
    --ui-line: var(--archive-line);
    --ui-line-strong: var(--archive-line-strong);
    --ui-accent: var(--archive-coral);
    --ui-accent-ink: var(--archive-coral-deep);
    --ui-warm: var(--archive-gold);
    --ui-pink: var(--archive-plum);
    --ui-shadow: var(--archive-shadow);
    --ui-shadow-soft: var(--archive-shadow-soft);
    --ui-radius: var(--archive-radius);
    --ui-radius-sm: var(--archive-radius-sm);
    --paper: var(--archive-page);
    --panel: var(--ui-panel);
    --panel-solid: var(--archive-surface);
    --panel-soft: var(--archive-surface-soft);
    --ink: var(--archive-ink);
    --text: var(--archive-text);
    --muted: var(--archive-muted);
    --line: var(--archive-line);
    --cyan: var(--archive-coral);
    --teal: var(--archive-coral-deep);
    --yellow: var(--archive-gold);
    --pink: var(--archive-plum);
    --green: #748072;
    --mint: #748072;
    --violet: var(--archive-plum);
    color: var(--archive-text) !important;
    background:
        linear-gradient(112deg, rgba(184, 84, 72, 0.045) 0%, transparent 28%),
        linear-gradient(244deg, rgba(201, 155, 76, 0.07) 0%, transparent 34%),
        linear-gradient(180deg, var(--archive-page) 0%, var(--archive-page-low) 100%) !important;
}

html body[data-page].animaker-theme-night,
html body[data-page="studio"].studio-theme-night {
    --archive-page: #17151a;
    --archive-page-low: #121116;
    --archive-surface: #211f26;
    --archive-surface-soft: #29262e;
    --archive-surface-strong: #332e37;
    --archive-ink: #faf6f4;
    --archive-text: #e2dbdf;
    --archive-muted: #b6adb3;
    --archive-line: #403a44;
    --archive-line-strong: #5b535e;
    --archive-coral: #de7b6a;
    --archive-coral-deep: #f0a28f;
    --archive-coral-wash: #3a292d;
    --archive-gold: #ddb56a;
    --archive-gold-wash: #362e21;
    --archive-steel: #b9c0c9;
    --archive-plum: #c3a9c1;
    --archive-shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
    --archive-shadow-soft: 0 10px 26px rgba(0, 0, 0, 0.23);
    --ui-panel: rgba(33, 31, 38, 0.9);
    color: var(--archive-text) !important;
    background:
        linear-gradient(118deg, rgba(222, 123, 106, 0.09) 0%, transparent 31%),
        linear-gradient(244deg, rgba(221, 181, 106, 0.07) 0%, transparent 34%),
        linear-gradient(180deg, var(--archive-page) 0%, var(--archive-page-low) 100%) !important;
}

html body[data-page] :is(h1, h2, h3, h4, strong, b, .brand) {
    color: var(--archive-ink) !important;
}

html body[data-page] :is(p, small, label, .muted, blockquote) {
    color: var(--archive-muted) !important;
}

html body[data-page] :is(.topbar, .shared-nav) {
    border-color: var(--archive-line) !important;
    background: color-mix(in srgb, var(--archive-surface) 92%, transparent) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.64), 0 10px 26px rgba(49, 37, 43, 0.035) !important;
    backdrop-filter: blur(18px) saturate(1.02) !important;
}

html body[data-page].animaker-theme-night :is(.topbar, .shared-nav),
html body[data-page="studio"].studio-theme-night :is(.topbar, .shared-nav) {
    background: color-mix(in srgb, var(--archive-surface) 88%, transparent) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 12px 26px rgba(0, 0, 0, 0.17) !important;
}

html body[data-page] :is(.shared-nav-links a, .nav a, .nav-button) {
    color: var(--archive-muted) !important;
}

html body[data-page] :is(.shared-nav-links a:hover, .shared-nav-links a.active, .nav a:hover, .nav a.active, .nav-button:hover, .nav-button:focus-visible) {
    color: var(--archive-coral-deep) !important;
    background: var(--archive-coral-wash) !important;
    box-shadow: inset 0 -2px 0 var(--archive-coral) !important;
}

html body[data-page].animaker-theme-night :is(.shared-nav-links a:hover, .shared-nav-links a.active, .nav a:hover, .nav a.active, .nav-button:hover, .nav-button:focus-visible),
html body[data-page="studio"].studio-theme-night :is(.shared-nav-links a:hover, .shared-nav-links a.active, .nav a:hover, .nav a.active, .nav-button:hover, .nav-button:focus-visible) {
    color: var(--archive-coral-deep) !important;
    background: var(--archive-coral-wash) !important;
}

html body[data-page] :is(.primary-btn, .primary-link, .shared-nav-primary-action) {
    border-color: var(--archive-coral-deep) !important;
    color: #fffdfb !important;
    background: linear-gradient(135deg, #ca6b58 0%, var(--archive-coral) 54%, var(--archive-coral-deep) 100%) !important;
    box-shadow: 0 12px 24px rgba(141, 62, 53, 0.18), inset 0 1px rgba(255, 255, 255, 0.2) !important;
}

html body[data-page] :is(.primary-btn, .primary-link, .shared-nav-primary-action):is(:hover, :focus-visible) {
    border-color: #713027 !important;
    background: linear-gradient(135deg, #b95345 0%, #963e33 58%, #713027 100%) !important;
    box-shadow: 0 16px 30px rgba(116, 48, 39, 0.24), inset 0 1px rgba(255, 255, 255, 0.16) !important;
}

html body[data-page] :is(.secondary-btn, .ghost-link, .link-button, .nav-button, .text-danger-btn) {
    border-color: var(--archive-line) !important;
    color: var(--archive-ink) !important;
    background: color-mix(in srgb, var(--archive-surface) 88%, transparent) !important;
    box-shadow: none !important;
}

html body[data-page] :is(.secondary-btn, .ghost-link, .link-button, .nav-button, .text-danger-btn):is(:hover, :focus-visible) {
    border-color: var(--archive-line-strong) !important;
    color: var(--archive-coral-deep) !important;
    background: var(--archive-surface-strong) !important;
}

html body[data-page] :is(input, textarea, select) {
    border-color: var(--archive-line) !important;
    color: var(--archive-ink) !important;
    background: color-mix(in srgb, var(--archive-surface) 94%, transparent) !important;
    box-shadow: inset 0 1px 0 rgba(49, 37, 43, 0.025) !important;
}

html body[data-page] :is(input, textarea, select):focus {
    border-color: var(--archive-coral) !important;
    box-shadow: 0 0 0 3px rgba(184, 84, 72, 0.13), inset 0 1px 0 rgba(49, 37, 43, 0.025) !important;
}

html body[data-page].animaker-theme-night :is(input, textarea, select),
html body[data-page="studio"].studio-theme-night :is(input, textarea, select) {
    color: var(--archive-ink) !important;
    background: rgba(20, 18, 24, 0.74) !important;
}

html body[data-page] :is(
    .auth-card,
    .comment-modal,
    .empty-state,
    .work-card,
    .feed-card,
    .player-card,
    .version-card,
    .cocreate-card,
    .detail-panel,
    .vue-gallery-shell,
    .vue-feed-shell,
    .vue-me-shell,
    .vue-template-shell,
    .vue-character-shell,
    .vue-gallery-stats article,
    .vue-feed-stats article,
    .vue-me-stats article,
    .vue-templates-stats article,
    .vue-characters-stats article,
    .vue-gallery-pulse-grid article,
    .vue-gallery-mission-grid article,
    .vue-gallery-cocreate-grid article,
    .vue-feed-response-grid article,
    .vue-feed-loop-grid article,
    .vue-feed-priority-grid article,
    .vue-me-triage-grid article,
    .vue-template-starter-grid article,
    .vue-template-fit-grid article,
    .vue-template-social-grid article,
    .vue-template-guide-grid article,
    .vue-character-queue-grid article,
    .vue-character-dimension-grid article,
    .vue-character-completion-grid article,
    .vue-character-remix-grid article,
    .vue-character-guide-grid article,
    .vue-ip-section-grid article,
    .vue-ip-series-grid article,
    .vue-ip-production-grid article,
    .vue-ip-version-list article
) {
    border-color: var(--archive-line) !important;
    border-radius: var(--archive-radius-sm) !important;
    color: var(--archive-text) !important;
    background: color-mix(in srgb, var(--archive-surface) 92%, transparent) !important;
    box-shadow: var(--archive-shadow-soft) !important;
}

html body[data-page] :is(
    .vue-gallery-hero,
    .vue-feed-hero,
    .vue-me-hero,
    .vue-templates-hero,
    .vue-characters-hero,
    .vue-work-dock,
    .vue-ip,
    .vue-gallery-pulse,
    .vue-gallery-mission,
    .vue-gallery-creator-radar,
    .vue-gallery-cocreate,
    .vue-feed-next,
    .vue-feed-response,
    .vue-feed-loop,
    .vue-feed-command,
    .vue-me-next,
    .vue-me-ownership,
    .vue-me-inventory,
    .vue-me-triage,
    .vue-template-pathfinder,
    .vue-template-starter,
    .vue-template-match,
    .vue-template-social,
    .vue-template-guide,
    .vue-character-pathfinder,
    .vue-character-queue,
    .vue-character-dimensions,
    .vue-character-completion,
    .vue-character-remix,
    .vue-character-guide,
    .vue-ip-series,
    .vue-ip-production,
    .vue-ip-cocreate,
    .vue-export-shell,
    .vue-admin-shell
) {
    border-color: var(--archive-line) !important;
    border-radius: var(--archive-radius) !important;
    box-shadow: inset 3px 0 0 var(--archive-coral), var(--archive-shadow) !important;
}

html body[data-page] :is(
    .vue-gallery-mission,
    .vue-template-starter,
    .vue-creator-nextline,
    .vue-character-nextline,
    .vue-me-next,
    .vue-me-triage,
    .vue-feed-response,
    .vue-character-completion,
    .vue-ip-production
) {
    background: linear-gradient(124deg, var(--archive-surface) 0%, var(--archive-surface-soft) 72%, var(--archive-gold-wash) 100%) !important;
}

html body[data-page].animaker-theme-night :is(
    .vue-gallery-mission,
    .vue-template-starter,
    .vue-creator-nextline,
    .vue-character-nextline,
    .vue-me-next,
    .vue-me-triage,
    .vue-feed-response,
    .vue-character-completion,
    .vue-ip-production
),
html body[data-page="studio"].studio-theme-night :is(.vue-me-next, .vue-me-triage) {
    background: linear-gradient(124deg, var(--archive-surface) 0%, var(--archive-surface-soft) 72%, #30281f 100%) !important;
}

html body[data-page] :is(
    .pill,
    .eyebrow,
    .tag-row span,
    .post-item span,
    .vue-filter-chip,
    .vue-sort-chip,
    .vue-template-chip,
    .vue-feed-filter-chip,
    .vue-gallery-action-status,
    .preview-tags span,
    .vue-board-tags > span
) {
    border-color: color-mix(in srgb, var(--archive-coral) 30%, var(--archive-line)) !important;
    color: var(--archive-coral-deep) !important;
    background: var(--archive-coral-wash) !important;
    box-shadow: none !important;
}

html body[data-page] :is(.vue-filter-chip, .vue-sort-chip, .vue-template-chip, .vue-feed-filter-chip):is(.active, .is-active),
html body[data-page] :is(.vue-filter-chip, .vue-sort-chip, .vue-template-chip, .vue-feed-filter-chip):is(:hover, :focus-visible) {
    border-color: var(--archive-coral) !important;
    color: #fffdfb !important;
    background: var(--archive-coral) !important;
}

html body[data-page] :is(.success-pill, [data-state="success"], [data-status="success"]) {
    color: #52684e !important;
    background: #e8efe2 !important;
}

html body[data-page] :is(.progress span, .vue-board-readiness-bar > span, .vue-image-runway > span.done > i) {
    background: linear-gradient(90deg, var(--archive-coral), var(--archive-gold)) !important;
}

html body[data-page] :is(.vue-gallery-feature, .vue-template-feature, .vue-character-feature, .vue-work-cover, .detail-cover, .oc-poster, .vue-home-feature, .vue-me-shot-list a) {
    border-radius: var(--archive-radius) !important;
    outline: 1px solid color-mix(in srgb, var(--archive-line) 84%, transparent) !important;
    outline-offset: -1px !important;
}

html body[data-page="studio"] {
    --studio-page: var(--archive-page);
    --studio-page-low: var(--archive-page-low);
    --studio-panel-solid: var(--archive-surface);
    --studio-panel: color-mix(in srgb, var(--archive-surface) 90%, transparent);
    --studio-panel-soft: var(--archive-surface-soft);
    --studio-ui-ink: var(--archive-ink);
    --studio-ui-muted: var(--archive-muted);
    --studio-ui-line: var(--archive-line);
    --studio-ui-line-strong: var(--archive-line-strong);
    --studio-ui-surface: var(--archive-surface);
    --studio-ui-surface-soft: var(--archive-surface-soft);
    --studio-ui-slate: var(--archive-steel);
    --studio-ui-action: var(--archive-coral);
    --studio-ui-action-dark: var(--archive-coral-deep);
    --studio-ui-coral: var(--archive-coral);
    --studio-ui-ochre: var(--archive-gold);
    --studio-ui-blush: var(--archive-coral-wash);
    --studio-ui-shadow: var(--archive-shadow);
    --canyon-coral: var(--archive-coral);
    --canyon-red-dark: var(--archive-coral-deep);
    --canyon-ochre: var(--archive-gold);
}

html body[data-page="studio"] :is(.studio-panel, .studio-route-sidebar, .studio-preview, .vue-route-director, .vue-assist-card, .vue-board-dock, .vue-core-card, .vue-visual-card, .vue-story-dock, .vue-image-dock, .vue-publish-dock) {
    border-color: var(--archive-line) !important;
    color: var(--archive-text) !important;
    background-color: color-mix(in srgb, var(--archive-surface) 92%, transparent) !important;
    box-shadow: var(--archive-shadow-soft) !important;
}

html body[data-page="studio"] :is(.studio-panel.is-active, .vue-route-director, .vue-image-readiness, .vue-publish-completion) {
    box-shadow: inset 3px 0 0 var(--archive-coral), var(--archive-shadow) !important;
}

@media (max-width: 760px) {
    html body[data-page] {
        --archive-radius: 13px;
        --archive-radius-sm: 9px;
    }

    html body[data-page] :is(.vue-gallery-hero, .vue-feed-hero, .vue-me-hero, .vue-templates-hero, .vue-characters-hero, .vue-work-dock, .vue-ip) {
        box-shadow: inset 2px 0 0 var(--archive-coral), var(--archive-shadow-soft) !important;
    }
}

/* V101: final cascade boundary for the unified archive system.
   Keep page-specific legacy styling behind this block. */
html body[data-page] {
    --oc-air-bg: var(--archive-page);
    --oc-air-panel: color-mix(in srgb, var(--archive-surface) 88%, transparent);
    --oc-air-panel-strong: var(--archive-surface);
    --oc-air-line: var(--archive-line);
    --oc-air-ink: var(--archive-ink);
    --oc-air-text: var(--archive-text);
    --oc-air-muted: var(--archive-muted);
    --oc-air-cyan: var(--archive-coral);
    --oc-air-rose: var(--archive-plum);
    --oc-air-gold: var(--archive-gold);
}

html body[data-page="gallery"] :is(.vue-light-page-bg, .vue-gallery::before),
html body[data-page="templates"] :is(.vue-templates::before),
html body[data-page="characters"] :is(.vue-characters::before),
html body:is([data-page="gallery"], [data-page="templates"], [data-page="characters"]) main::before {
    background:
        linear-gradient(112deg, rgba(184, 84, 72, 0.055) 0%, transparent 30%),
        linear-gradient(244deg, rgba(201, 155, 76, 0.07) 0%, transparent 34%),
        linear-gradient(180deg, var(--archive-page) 0%, var(--archive-page-low) 100%) !important;
}

html body[data-page].animaker-theme-night[data-page="gallery"] :is(.vue-light-page-bg, .vue-gallery::before),
html body[data-page].animaker-theme-night[data-page="templates"] :is(.vue-templates::before),
html body[data-page].animaker-theme-night[data-page="characters"] :is(.vue-characters::before),
html body[data-page].animaker-theme-night:is([data-page="gallery"], [data-page="templates"], [data-page="characters"]) main::before {
    background:
        linear-gradient(112deg, rgba(222, 123, 106, 0.09) 0%, transparent 30%),
        linear-gradient(244deg, rgba(221, 181, 106, 0.07) 0%, transparent 34%),
        linear-gradient(180deg, var(--archive-page) 0%, var(--archive-page-low) 100%) !important;
}

html body[data-page] :is(.vue-gallery-hero, .vue-feed-hero, .vue-me-hero, .vue-templates-hero, .vue-characters-hero) {
    background:
        linear-gradient(124deg, color-mix(in srgb, var(--archive-surface) 96%, transparent) 0%, color-mix(in srgb, var(--archive-surface-soft) 92%, transparent) 70%, var(--archive-gold-wash) 100%) !important;
}

html body[data-page] :is(.vue-light-start, .vue-gallery-filter, .vue-template-filter, .vue-character-filter, .filter-bar) {
    border-color: var(--archive-line) !important;
    background: linear-gradient(124deg, color-mix(in srgb, var(--archive-surface) 96%, transparent), var(--archive-surface-soft)) !important;
    box-shadow: var(--archive-shadow-soft) !important;
}

html body[data-page="studio"].studio-wizard-ready .studio-panel.is-active .vue-core-ai-brief {
    border-color: var(--archive-line) !important;
    background: linear-gradient(124deg, var(--archive-surface) 0%, var(--archive-surface-soft) 72%, var(--archive-gold-wash) 100%) !important;
}

html body[data-page="studio"].studio-wizard-ready .studio-panel.is-active :is(.vue-core-ai-brief label > span, .vue-core-write-head span) {
    color: var(--archive-coral-deep) !important;
    background: var(--archive-coral-wash) !important;
}

html body[data-page="studio"].studio-wizard-ready .studio-panel.is-active .vue-core-flow-console {
    border-color: var(--archive-line) !important;
    background: var(--archive-surface-soft) !important;
}

html body[data-page="studio"].studio-wizard-ready .studio-panel.is-active :is(
    .vue-field-suggestions button,
    .vue-core-flow-mode > button,
    .vue-core-flow-steps > button,
    .vue-core-ai-brief-chips button,
    .vue-core-inspiration-grid button,
    .vue-world-chip-row .secondary-btn,
    .vue-step-task-chips button,
    .vue-route-steps button,
    .vue-route-mini-steps button
) {
    border-color: var(--archive-line) !important;
    color: var(--archive-ink) !important;
    background: var(--archive-surface) !important;
    box-shadow: none !important;
}

html body[data-page="studio"].studio-wizard-ready .studio-panel.is-active :is(
    .vue-field-suggestions button,
    .vue-core-flow-mode > button,
    .vue-core-flow-steps > button,
    .vue-core-ai-brief-chips button,
    .vue-core-inspiration-grid button,
    .vue-world-chip-row .secondary-btn,
    .vue-step-task-chips button,
    .vue-route-steps button,
    .vue-route-mini-steps button
):is(:hover, :focus-visible, .active, .is-active, .done, .complete, [data-flow-state="active"], [data-flow-state="done"]) {
    border-color: color-mix(in srgb, var(--archive-coral) 66%, var(--archive-line)) !important;
    color: var(--archive-coral-deep) !important;
    background: var(--archive-coral-wash) !important;
    box-shadow: inset 0 -3px 0 var(--archive-coral) !important;
}

html body[data-page="studio"].studio-wizard-ready .studio-panel.is-active :is(.vue-field-suggestions button, .vue-core-flow-mode > button, .vue-core-flow-steps > button, .vue-core-ai-brief-chips button, .vue-core-inspiration-grid button, .vue-world-chip-row .secondary-btn, .vue-step-task-chips button, .vue-route-steps button, .vue-route-mini-steps button) :is(span, strong, em, small) {
    color: inherit !important;
    -webkit-text-fill-color: currentColor !important;
    background-color: transparent !important;
}

html body[data-page="studio"].studio-wizard-ready .studio-panel.is-active .vue-core-ai-brief-chips button span {
    color: var(--archive-coral-deep) !important;
    -webkit-text-fill-color: var(--archive-coral-deep) !important;
    background: color-mix(in srgb, var(--archive-coral-wash) 86%, var(--archive-surface)) !important;
}

html body[data-page="studio"].studio-wizard-ready .studio-panel.is-active .vue-core-flow-mode > button.active::after,
html body[data-page="studio"].studio-wizard-ready .studio-panel.is-active .vue-core-flow-mode > button.active::before {
    background-color: var(--archive-coral) !important;
}

html body[data-page="studio"] .vue-visual-swatches button.active {
    box-shadow: 0 0 0 3px rgba(184, 84, 72, 0.22), 0 8px 18px rgba(49, 37, 43, 0.12) !important;
}

@media (max-width: 760px) {
    html body:is([data-page="gallery"], [data-page="templates"], [data-page="characters"]) {
        overflow-x: clip !important;
    }

    html body:is([data-page="gallery"], [data-page="templates"], [data-page="characters"]) main,
    html body[data-page="gallery"] .vue-gallery,
    html body[data-page="templates"] .vue-templates,
    html body[data-page="characters"] .vue-characters {
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        min-width: 0 !important;
        margin-inline: auto !important;
    }

    html body[data-page="gallery"] .vue-gallery > .vue-gallery-hero,
    html body[data-page="templates"] .vue-templates > .vue-templates-hero,
    html body[data-page="characters"] .vue-characters > .vue-characters-hero {
        grid-template-columns: minmax(0, 1fr) !important;
        min-width: 0 !important;
        padding: 22px 18px !important;
        overflow: hidden !important;
    }

    html body:is([data-page="gallery"], [data-page="templates"], [data-page="characters"]) :is(.vue-gallery-copy, .vue-templates-copy, .vue-characters-copy, .vue-gallery-feature, .vue-template-feature, .vue-character-feature) {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    html body:is([data-page="gallery"], [data-page="templates"], [data-page="characters"]) :is(.vue-gallery-copy h1, .vue-templates-copy h1, .vue-characters-copy h1) {
        max-width: 100% !important;
        font-size: clamp(34px, 11vw, 46px) !important;
        line-height: 1.06 !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
    }

    html body:is([data-page="gallery"], [data-page="templates"], [data-page="characters"]) :is(.vue-gallery-actions, .vue-templates-actions, .vue-characters-actions, .vue-light-start-actions) {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
    }

    html body:is([data-page="gallery"], [data-page="templates"], [data-page="characters"]) :is(.vue-gallery-actions, .vue-templates-actions, .vue-characters-actions, .vue-light-start-actions) :is(a, button) {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* V102: hard mobile boundary. These selectors intentionally match the older
   theme-specific rules so no inherited desktop min-width can escape the viewport. */
@media (max-width: 760px) {
    html body[data-page="gallery"] #galleryVueApp,
    html body[data-page="templates"] #templatesVueApp,
    html body[data-page="characters"] #charactersVueApp {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: clip !important;
    }

    html body[data-page="gallery"] .vue-gallery,
    html body[data-page="templates"] .vue-templates,
    html body[data-page="characters"] .vue-characters {
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        min-width: 0 !important;
        margin-inline: auto !important;
    }

    html body[data-page="gallery"] .vue-gallery > .vue-gallery-hero,
    html body[data-page="templates"] .vue-templates > .vue-templates-hero,
    html body[data-page="characters"] .vue-characters > .vue-characters-hero {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: clip !important;
    }

    html body[data-page] :is(.vue-gallery-hero, .vue-templates-hero, .vue-characters-hero) > * {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        grid-column: 1 / -1 !important;
    }

    html body[data-page] :is(.vue-gallery-copy, .vue-templates-copy, .vue-characters-copy) > h1 {
        width: 100% !important;
        max-width: calc(100vw - 56px) !important;
        min-width: 0 !important;
        font-size: clamp(32px, 10.4vw, 38px) !important;
        line-height: 1.08 !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
        text-wrap: balance !important;
    }

    html body[data-page] :is(.vue-gallery-copy, .vue-templates-copy, .vue-characters-copy) > :is(p, .vue-gallery-actions, .vue-templates-actions, .vue-characters-actions, .vue-light-start-actions) {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
}

/* V103: theme state arrives after the initial document, so it needs the same
   terminal mobile boundary instead of inheriting the historical day-theme sizes. */
@media (max-width: 760px) {
    html body.animaker-theme-day[data-page="gallery"] .vue-gallery > .vue-gallery-hero,
    html body.animaker-theme-day[data-page="templates"] .vue-templates > .vue-templates-hero,
    html body.animaker-theme-day[data-page="characters"] .vue-characters > .vue-characters-hero {
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: clip !important;
    }

    html body.animaker-theme-day[data-page] :is(.vue-gallery-hero, .vue-templates-hero, .vue-characters-hero) > * {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        grid-column: 1 / -1 !important;
    }

    html body.animaker-theme-day[data-page] :is(.vue-gallery-copy, .vue-templates-copy, .vue-characters-copy) > h1 {
        width: 100% !important;
        max-width: calc(100vw - 56px) !important;
        min-width: 0 !important;
        font-size: clamp(32px, 10.4vw, 38px) !important;
        line-height: 1.08 !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
        text-wrap: balance !important;
    }

    html body.animaker-theme-day[data-page] :is(.vue-gallery-copy, .vue-templates-copy, .vue-characters-copy) > :is(p, .vue-gallery-actions, .vue-templates-actions, .vue-characters-actions, .vue-light-start-actions) {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
}

/* V107: warm editorial light and continuous interaction motion.
   Layout boxes stay stable while transforms carry intentional size feedback. */
html body[data-page] {
    --motion-quick: 160ms cubic-bezier(0.22, 1, 0.36, 1);
    --motion-settle: 300ms cubic-bezier(0.16, 1, 0.3, 1);
    --motion-breathe: 2400ms cubic-bezier(0.45, 0, 0.55, 1);
    --archive-page: #f6f0ec;
    --archive-page-low: #eee5df;
    --archive-surface: #fffaf6;
    --archive-surface-soft: #f8eee8;
    --archive-surface-strong: #f0dfd7;
    --archive-ink: #2b211f;
    --archive-text: #51423e;
    --archive-muted: #806f68;
    --archive-line: #e4d4cc;
    --archive-line-strong: #ccb9b0;
    --archive-coral: #b95745;
    --archive-coral-deep: #8f3f32;
    --archive-coral-wash: #f7e3dc;
    --archive-gold: #c99643;
    --archive-gold-wash: #f7edd6;
    --archive-steel: #796760;
    --archive-plum: #95606a;
    --animaker-day-ink: var(--archive-ink);
    --animaker-day-text: var(--archive-text);
    --animaker-day-muted: var(--archive-muted);
    --animaker-day-line: rgba(81, 66, 62, 0.14);
    --animaker-day-paper: var(--archive-surface);
    --animaker-day-panel: rgba(255, 250, 246, 0.88);
    --animaker-day-cyan: var(--archive-coral);
    --animaker-day-mint: var(--archive-coral-wash);
    --animaker-day-amber: #e8bd66;
    --animaker-day-pink: #c9787e;
    --ui-page: var(--archive-page);
    --ui-page-low: var(--archive-page-low);
    --ui-panel: rgba(255, 250, 246, 0.9);
    --ui-panel-solid: var(--archive-surface);
    --ui-panel-soft: var(--archive-surface-soft);
    --ui-ink: var(--archive-ink);
    --ui-text: var(--archive-text);
    --ui-muted: var(--archive-muted);
    --ui-line: var(--archive-line);
    --ui-line-strong: var(--archive-line-strong);
    --ui-accent: var(--archive-coral);
    --ui-accent-ink: var(--archive-coral-deep);
    --ui-warm: var(--archive-gold);
    --ui-pink: var(--archive-plum);
    --site-ink: var(--archive-ink);
    --site-text: var(--archive-text);
    --site-muted: var(--archive-muted);
    --studio-ui-paper: var(--archive-page);
    --studio-ui-surface: var(--archive-surface);
    --studio-ui-surface-soft: var(--archive-surface-soft);
    --studio-ui-ink: var(--archive-ink);
    --studio-ui-muted: var(--archive-muted);
    --studio-ui-slate: var(--archive-steel);
    --studio-ui-line: var(--archive-line);
    --studio-ui-action: var(--archive-coral);
    --studio-ui-action-dark: var(--archive-coral-deep);
    --studio-ui-coral: #d9866e;
    --studio-ui-ochre: var(--archive-gold);
    --studio-ui-blush: var(--archive-coral-wash);
    --oc-v6000-ink: var(--archive-ink);
    --oc-v6000-muted: rgba(81, 66, 62, 0.68);
    --oc-v6000-cyan: var(--archive-coral);
    --oc-v6000-coral: #c97072;
    --home4300-ink: var(--archive-ink);
    --home4300-text: var(--archive-text);
    --home4300-muted: var(--archive-muted);
    --home4300-line: rgba(81, 66, 62, 0.14);
    --home4300-cyan: var(--archive-coral);
    --home4300-yellow: #edc86f;
    --home4300-pink: #c9787e;
    --oc-v8000-ink: var(--archive-ink);
    --oc-v8000-muted: rgba(81, 66, 62, 0.68);
    --oc-v8000-line: rgba(81, 66, 62, 0.13);
    --oc-v8000-cyan: var(--archive-coral);
    --oc-v8000-lemon: #edc86f;
    color: var(--archive-text) !important;
    background:
        linear-gradient(132deg, rgba(197, 105, 84, 0.1) 0%, rgba(197, 105, 84, 0) 36%),
        linear-gradient(226deg, rgba(214, 172, 87, 0.12) 0%, rgba(214, 172, 87, 0) 40%),
        linear-gradient(180deg, #fbf6f2 0%, var(--archive-page) 48%, var(--archive-page-low) 100%) !important;
}

html body[data-page].animaker-theme-night,
html body[data-page="studio"].studio-theme-night {
    --archive-page: #1c1514;
    --archive-page-low: #130f0e;
    --archive-surface: #271e1c;
    --archive-surface-soft: #302421;
    --archive-surface-strong: #3b2c28;
    --archive-ink: #fff7f2;
    --archive-text: #eadbd5;
    --archive-muted: #bca9a1;
    --archive-line: #493833;
    --archive-line-strong: #675049;
    --archive-coral: #df7d68;
    --archive-coral-deep: #f0a18d;
    --archive-coral-wash: #422b29;
    --archive-gold: #ddb261;
    --archive-gold-wash: #3b3020;
    --archive-steel: #c4aea5;
    --archive-plum: #d29ba4;
    --animaker-night-ink: var(--archive-ink);
    --animaker-night-text: var(--archive-text);
    --animaker-night-muted: var(--archive-muted);
    --animaker-night-line: rgba(255, 239, 230, 0.14);
    --animaker-night-panel: rgba(39, 30, 28, 0.9);
    --animaker-night-cyan: var(--archive-coral-deep);
    --animaker-night-amber: var(--archive-gold);
    background:
        linear-gradient(128deg, rgba(188, 82, 61, 0.13) 0%, rgba(188, 82, 61, 0) 36%),
        linear-gradient(232deg, rgba(202, 153, 67, 0.1) 0%, rgba(202, 153, 67, 0) 38%),
        linear-gradient(180deg, var(--archive-page) 0%, var(--archive-page-low) 100%) !important;
}

html body[data-page] :is(
    .auth-card,
    .comment-modal,
    .empty-state,
    .work-card,
    .feed-card,
    .player-card,
    .version-card,
    .cocreate-card,
    .detail-panel,
    .studio-panel,
    .designer-form,
    .studio-workbench,
    .vue-image-readiness,
    .vue-image-runway,
    .vue-gallery-stats article,
    .vue-feed-stats article,
    .vue-me-stats article,
    .vue-templates-stats article,
    .vue-characters-stats article,
    .vue-gallery-pulse-grid article,
    .vue-gallery-mission-grid article,
    .vue-gallery-cocreate-grid article,
    .vue-feed-response-grid article,
    .vue-feed-loop-grid article,
    .vue-me-triage-grid article,
    .vue-template-starter-grid article,
    .vue-template-fit-grid article,
    .vue-character-queue-grid article,
    .vue-character-dimension-grid article,
    .vue-character-completion-grid article,
    .vue-character-remix-grid article
) {
    box-sizing: border-box !important;
    border-width: 1px !important;
    background:
        linear-gradient(145deg, rgba(255, 253, 250, 0.96) 0%, rgba(255, 248, 243, 0.94) 62%, rgba(247, 237, 224, 0.9) 100%) !important;
    box-shadow:
        0 14px 34px rgba(91, 61, 52, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.76) !important;
}

html body[data-page].animaker-theme-night :is(
    .auth-card,
    .comment-modal,
    .empty-state,
    .work-card,
    .feed-card,
    .player-card,
    .version-card,
    .cocreate-card,
    .detail-panel,
    .studio-panel,
    .designer-form,
    .studio-workbench,
    .vue-image-readiness,
    .vue-image-runway
),
html body[data-page="studio"].studio-theme-night :is(.studio-panel, .designer-form, .studio-workbench, .vue-image-readiness, .vue-image-runway) {
    background:
        linear-gradient(145deg, rgba(49, 37, 34, 0.96) 0%, rgba(39, 29, 27, 0.95) 62%, rgba(57, 43, 35, 0.9) 100%) !important;
    box-shadow: 0 16px 38px rgba(15, 9, 8, 0.3), inset 0 1px 0 rgba(255, 242, 233, 0.05) !important;
}

html body[data-page] :is(
    .vue-home-next,
    .vue-home-community-more,
    .vue-home-metrics,
    .section-heading,
    .vue-home-work-card,
    .vue-home-ip-card,
    .vue-home-feed-card,
    .vue-gallery-copy,
    .vue-gallery-mission-grid,
    .vue-gallery-cocreate-grid,
    .vue-character-pathfinder,
    .vue-template-pathfinder,
    .vue-archives,
    .vue-me,
    .vue-feed
) {
    color: var(--archive-text) !important;
}

html body[data-page] :is(
    .vue-home-next,
    .vue-home-community-more,
    .vue-home-metrics,
    .section-heading,
    .vue-home-work-card,
    .vue-home-ip-card,
    .vue-home-feed-card,
    .vue-gallery-copy,
    .vue-gallery-mission-grid,
    .vue-gallery-cocreate-grid,
    .vue-character-pathfinder,
    .vue-template-pathfinder,
    .vue-archives,
    .vue-me,
    .vue-feed
) :is(h1, h2, h3, h4, strong, b) {
    color: var(--archive-ink) !important;
}

html body[data-page] :is(
    .vue-home-next,
    .vue-home-community-more,
    .vue-home-metrics,
    .section-heading,
    .vue-home-work-card,
    .vue-home-ip-card,
    .vue-home-feed-card,
    .vue-gallery-copy,
    .vue-gallery-mission-grid,
    .vue-gallery-cocreate-grid,
    .vue-character-pathfinder,
    .vue-template-pathfinder,
    .vue-archives,
    .vue-me,
    .vue-feed
) :is(p, small, label) {
    color: var(--archive-muted) !important;
}

html body[data-page="gallery"] :is(.vue-gallery-mission-grid, .vue-gallery-cocreate-grid) :is(a, button, article) {
    border-color: var(--archive-line) !important;
    color: var(--archive-ink) !important;
    background: linear-gradient(142deg, var(--archive-surface) 0%, var(--archive-coral-wash) 100%) !important;
}

html body[data-page="gallery"] .vue-gallery-cocreate-grid span,
html body[data-page="studio"].studio-wizard-ready .studio-panel.is-active .vue-core-write-head span,
html body[data-page="studio"].studio-wizard-ready .studio-panel.is-active .vue-core-ai-brief-chips button span {
    color: var(--archive-coral-deep) !important;
    -webkit-text-fill-color: var(--archive-coral-deep) !important;
}

html body[data-page="studio"].studio-wizard-ready .studio-panel.is-active .vue-core-ai-brief {
    border-color: var(--archive-line) !important;
    background: linear-gradient(145deg, #fffaf6 0%, #f8eee8 100%) !important;
}

html body[data-page="studio"].studio-wizard-ready .studio-panel.is-active .vue-core-ai-brief label > span,
html body[data-page="studio"].studio-wizard-ready .studio-panel.is-active .vue-core-ai-brief-chips button strong {
    color: var(--archive-text) !important;
}

html body[data-page="studio"].studio-wizard-ready .studio-panel.is-active .vue-core-ai-brief-chips button[data-ui-icon] {
    border-color: var(--archive-line) !important;
    background: var(--archive-surface) !important;
}

html body[data-page] :is(a, button, summary, input, textarea, select),
html body[data-page] :is(.work-card, .feed-card, .player-card, .version-card, .studio-panel, .vue-image-readiness, .vue-image-runway) {
    box-sizing: border-box !important;
}

html body[data-page] :is(a, button, summary)[data-ui-icon] {
    transform-origin: 50% 50% !important;
    backface-visibility: hidden !important;
    transition:
        transform var(--motion-settle),
        box-shadow var(--motion-settle),
        border-color var(--motion-quick),
        background-color var(--motion-quick),
        color var(--motion-quick),
        filter var(--motion-quick),
        opacity var(--motion-quick) !important;
}

@media (hover: hover) {
    html body[data-page] :is(a, button, summary)[data-ui-icon]:not(:disabled):is(:hover, :focus-visible) {
        transform: translate3d(0, -1px, 0) scale(1.006) !important;
    }
}

html body[data-page] :is(a, button, summary)[data-ui-icon].is-action-pressed,
html body[data-page] :is(a, button, summary)[data-ui-icon]:not(:disabled):active {
    transform: translate3d(0, 1px, 0) scale(0.986) !important;
    transition-duration: 110ms !important;
}

html body[data-page] :is(a, button, summary)[data-ui-icon]:disabled,
html body[data-page] :is(a, button, summary)[data-ui-icon][aria-disabled="true"] {
    transform: none !important;
}

html body[data-page] :is(.studio-panel, .vue-image-readiness, .vue-image-runway, .global-ai-task, .global-action-toast) {
    transform-origin: 50% 50% !important;
    transition:
        transform var(--motion-settle),
        opacity var(--motion-settle),
        box-shadow var(--motion-settle),
        border-color var(--motion-quick),
        background-color var(--motion-quick) !important;
}

html body[data-page="studio"].studio-image-busy .vue-image-readiness,
html body[data-page="studio"] .vue-image-readiness[data-readiness-state="running"] {
    border-width: 1px !important;
    border-color: rgba(185, 87, 69, 0.48) !important;
    background:
        linear-gradient(135deg, rgba(255, 241, 235, 0.94), rgba(255, 248, 225, 0.9)),
        var(--archive-surface) !important;
    box-shadow: 0 18px 44px rgba(143, 63, 50, 0.13), inset 0 0 0 1px rgba(185, 87, 69, 0.1) !important;
}

html body[data-page="studio"].studio-image-busy .vue-image-runway,
html body[data-page="studio"] .vue-image-runway[data-generation-phase="queued"],
html body[data-page="studio"] .vue-image-runway[data-generation-phase="drawing"],
html body[data-page="studio"] .vue-image-runway[data-generation-phase="storing"] {
    border-width: 1px !important;
    border-color: rgba(185, 87, 69, 0.25) !important;
    background: rgba(255, 250, 246, 0.9) !important;
}

html body[data-page="studio"] .vue-image-readiness.studio-cover-action-pulse,
html body[data-page="studio"] #studioVueImage.studio-cover-action-pulse {
    border-width: 1px !important;
    border-color: rgba(185, 87, 69, 0.58) !important;
    box-shadow: 0 18px 46px rgba(143, 63, 50, 0.14), inset 0 0 0 1px rgba(201, 150, 67, 0.22) !important;
}

html body[data-page="studio"] .vue-image-readiness.studio-cover-action-pulse::after,
html body[data-page="studio"] #studioVueImage.studio-cover-action-pulse::after {
    border-color: rgba(201, 150, 67, 0.52) !important;
    animation: studioCoverPulseRingSmooth var(--motion-breathe) ease-out both !important;
}

@keyframes studioCoverPulseRingSmooth {
    0% { opacity: 0; transform: scale(0.992); }
    22% { opacity: 0.86; }
    100% { opacity: 0; transform: scale(1.012); }
}

html body[data-page] .global-action-toast {
    border-color: var(--archive-line) !important;
    color: var(--archive-ink) !important;
    background: linear-gradient(135deg, rgba(255, 251, 247, 0.97), rgba(249, 235, 227, 0.96)) !important;
    box-shadow: 0 18px 46px rgba(91, 61, 52, 0.16) !important;
    transform: translate3d(0, 10px, 0) scale(0.994) !important;
    transition: opacity var(--motion-settle), transform var(--motion-settle) !important;
}

html body[data-page] .global-action-toast.is-visible {
    transform: translate3d(0, 0, 0) scale(1) !important;
}

html body[data-page] .global-action-toast :is(.ui-action-mark, [data-feedback-tone="creative"] .ui-action-mark, [data-feedback-tone="done"] .ui-action-mark) {
    color: var(--archive-coral) !important;
}

html body[data-page] .global-ai-task {
    border-color: rgba(143, 63, 50, 0.24) !important;
    color: var(--archive-ink) !important;
    background: linear-gradient(112deg, rgba(255, 241, 235, 0.98) 0%, rgba(255, 249, 243, 0.98) 56%, rgba(250, 238, 209, 0.98) 100%) !important;
    box-shadow: 0 22px 58px rgba(91, 61, 52, 0.19) !important;
}

html body[data-page] .global-ai-task[data-task-status="done"] {
    border-color: rgba(185, 87, 69, 0.38) !important;
    box-shadow: 0 24px 62px rgba(143, 63, 50, 0.2) !important;
}

html body[data-page] .global-ai-task-progress {
    background: rgba(81, 66, 62, 0.08) !important;
}

html body[data-page] .global-ai-task-progress i {
    background: linear-gradient(90deg, var(--archive-coral-deep) 0%, #d9856b 56%, var(--archive-gold) 100%) !important;
    box-shadow: 0 0 16px rgba(185, 87, 69, 0.28) !important;
    transition: width 720ms cubic-bezier(0.22, 1, 0.36, 1) !important;
}

html body[data-page] :is(.global-ai-task-icon, .global-ai-task-thumb) {
    border-color: rgba(143, 63, 50, 0.2) !important;
    color: var(--archive-coral-deep) !important;
    background: rgba(255, 251, 247, 0.82) !important;
}

html body[data-page] .global-ai-task :is(.global-ai-task-copy > span, .global-ai-task-copy > strong) {
    color: var(--archive-ink) !important;
}

html body[data-page] .global-ai-task-copy > small {
    color: var(--archive-muted) !important;
}

html body[data-page] .global-ai-task[data-task-status="running"] .global-ai-task-icon::before {
    animation: globalAiTaskPulseSmooth var(--motion-breathe) ease-in-out infinite !important;
}

@keyframes globalAiTaskPulseSmooth {
    0%, 100% { transform: scale(0.97); opacity: 0.76; }
    50% { transform: scale(1.02); opacity: 1; }
}

html body[data-page="studio"] .studio-field-pulse {
    outline-color: rgba(185, 87, 69, 0.4) !important;
    animation: studioFieldPulseWarm 1100ms cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

html body[data-page="studio"] .studio-step-pulse {
    animation: studioStepPulseWarm 900ms cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

@keyframes studioFieldPulseWarm {
    0% { box-shadow: 0 0 0 0 rgba(185, 87, 69, 0.22); }
    100% { box-shadow: 0 0 0 8px rgba(185, 87, 69, 0); }
}

@keyframes studioStepPulseWarm {
    0% { box-shadow: inset 0 0 0 1px rgba(185, 87, 69, 0.28), 0 12px 30px rgba(143, 63, 50, 0.1); }
    100% { box-shadow: inset 0 0 0 1px rgba(185, 87, 69, 0), 0 0 0 rgba(143, 63, 50, 0); }
}

@media (prefers-reduced-motion: reduce) {
    html body[data-page] *,
    html body[data-page] *::before,
    html body[data-page] *::after {
        scroll-behavior: auto !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
    }
}

/* V109: final motion authority; keeps layout dimensions fixed and eases visual scale. */
html body[data-page][data-page] :is(.primary-btn, .primary-link, .secondary-btn, .ghost-link, .link-button, .nav-button, .shared-nav-primary-action)[data-ui-icon] {
    transform-origin: 50% 50% !important;
    backface-visibility: hidden !important;
    transition:
        transform var(--motion-settle),
        box-shadow var(--motion-settle),
        border-color var(--motion-quick),
        background-color var(--motion-quick),
        color var(--motion-quick),
        filter var(--motion-quick),
        opacity var(--motion-quick) !important;
}

html body[data-page][data-page] :is(.primary-btn, .primary-link, .secondary-btn, .ghost-link, .link-button, .nav-button, .shared-nav-primary-action)[data-ui-icon].is-action-pressed,
html body[data-page][data-page] :is(.primary-btn, .primary-link, .secondary-btn, .ghost-link, .link-button, .nav-button, .shared-nav-primary-action)[data-ui-icon]:not(:disabled):active {
    transform: translate3d(0, 1px, 0) scale(0.99) !important;
    transition-duration: 140ms !important;
}

/* V110: remove the last cool emphasis marks from the quick OC path. */
html body.animaker-theme-day[data-page="studio"][data-page="studio"].studio-mode-quick.studio-wizard-ready.studio-focus-flow #studioVueCore .vue-core-write-now .vue-core-write-head > div > span,
html body[data-page="studio"][data-page="studio"].studio-theme-day.studio-mode-quick.studio-wizard-ready.studio-focus-flow #studioVueCore .vue-core-write-now .vue-core-write-head > div > span {
    color: var(--archive-coral-deep) !important;
    -webkit-text-fill-color: var(--archive-coral-deep) !important;
}

html body.animaker-theme-day[data-page="studio"][data-page="studio"].studio-mode-quick.studio-wizard-ready.studio-focus-flow #studioVueCore .vue-core-flow-mode > button.active,
html body.animaker-theme-day[data-page="studio"][data-page="studio"].studio-mode-quick.studio-wizard-ready.studio-focus-flow #studioVueCore .vue-core-flow-steps > button:is(.active, [aria-current="step"]),
html body[data-page="studio"][data-page="studio"].studio-theme-day.studio-mode-quick.studio-wizard-ready.studio-focus-flow #studioVueCore .vue-core-flow-mode > button.active,
html body[data-page="studio"][data-page="studio"].studio-theme-day.studio-mode-quick.studio-wizard-ready.studio-focus-flow #studioVueCore .vue-core-flow-steps > button:is(.active, [aria-current="step"]) {
    border-color: var(--archive-line) !important;
    color: var(--archive-ink) !important;
    background: rgba(255, 247, 242, 0.72) !important;
    box-shadow: inset 0 -2px 0 var(--archive-coral) !important;
}

html body.animaker-theme-day[data-page="studio"][data-page="studio"].studio-wizard-ready.studio-focus-flow :is(#studioVueCoreHead, #studioVueVisualHead, #studioVueStoryHead, #studioVueImageHead, #studioVuePublishHead) .vue-step-next-cue,
html body[data-page="studio"][data-page="studio"].studio-theme-day.studio-wizard-ready.studio-focus-flow :is(#studioVueCoreHead, #studioVueVisualHead, #studioVueStoryHead, #studioVueImageHead, #studioVuePublishHead) .vue-step-next-cue {
    border-left-color: rgba(185, 87, 69, 0.46) !important;
}

html body.animaker-theme-day[data-page="studio"][data-page="studio"].studio-wizard-ready.studio-focus-flow #studioVueBoard :is(.vue-board-dock, .vue-board-info, .vue-board-tags),
html body[data-page="studio"][data-page="studio"].studio-theme-day.studio-wizard-ready.studio-focus-flow #studioVueBoard :is(.vue-board-dock, .vue-board-info, .vue-board-tags) {
    color: var(--archive-text) !important;
}

/* V113: close the remaining cool legacy states in the home creation path. */
html body[data-page="home"][data-page="home"] #homeVueApp .vue-home-brief-output > span {
    border-color: color-mix(in srgb, var(--archive-coral) 36%, var(--archive-line)) !important;
    color: var(--archive-coral-deep) !important;
    background: linear-gradient(135deg, var(--archive-coral-wash), rgba(248, 233, 223, 0.92)) !important;
}

html body[data-page="home"][data-page="home"] #homeVueApp .vue-home-brief-output em,
html body[data-page="home"][data-page="home"] #homeVueApp .vue-home-brief-output.is-ready em {
    border-color: color-mix(in srgb, var(--archive-coral) 29%, var(--archive-line)) !important;
    color: var(--archive-ink) !important;
    background: linear-gradient(145deg, rgba(255, 253, 251, 0.98), rgba(250, 237, 229, 0.9)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 28px rgba(91, 61, 52, 0.07) !important;
}

html body[data-page="home"][data-page="home"] #homeVueApp .vue-home-brief-output em b {
    color: var(--archive-coral-deep) !important;
}

html body[data-page="home"][data-page="home"] #homeVueApp .vue-home-brief-output em strong {
    color: var(--archive-ink) !important;
}

html body[data-page="home"][data-page="home"] #homeVueApp .vue-home-brief-chips button {
    border-color: var(--archive-line) !important;
    color: var(--archive-text) !important;
    background: linear-gradient(145deg, rgba(255, 253, 251, 0.98), rgba(255, 247, 242, 0.94)) !important;
    box-shadow: 0 12px 28px rgba(91, 61, 52, 0.07) !important;
    transition:
        transform var(--motion-settle),
        border-color var(--motion-quick),
        box-shadow var(--motion-settle),
        background-color var(--motion-quick) !important;
}

html body[data-page="home"][data-page="home"] #homeVueApp .vue-home-brief-chips button span {
    color: var(--archive-coral-deep) !important;
    background: var(--archive-coral-wash) !important;
}

html body[data-page="home"][data-page="home"] #homeVueApp .vue-home-brief-chips button:is(:hover, :focus-visible, .is-active) {
    border-color: color-mix(in srgb, var(--archive-coral) 68%, var(--archive-line)) !important;
    color: var(--archive-ink) !important;
    background: linear-gradient(135deg, rgba(255, 249, 245, 0.99) 0%, rgba(248, 226, 216, 0.95) 62%, rgba(248, 238, 213, 0.92) 100%) !important;
    box-shadow: 0 16px 34px rgba(143, 63, 50, 0.13) !important;
    transform: translate3d(0, -1px, 0) scale(1.002) !important;
}

html body[data-page="home"][data-page="home"] #homeVueApp .vue-home-brief.has-brief {
    border-color: color-mix(in srgb, var(--archive-coral) 34%, var(--archive-line)) !important;
    box-shadow: 0 26px 68px rgba(91, 61, 52, 0.12) !important;
}

html body[data-page="home"][data-page="home"] #homeVueApp .vue-home-brief.has-brief .primary-link {
    border-color: var(--archive-coral-deep) !important;
    color: #fffaf6 !important;
    background: linear-gradient(135deg, var(--archive-coral) 0%, var(--archive-coral-deep) 100%) !important;
    box-shadow: 0 14px 30px rgba(143, 63, 50, 0.19) !important;
}

html body[data-page="home"][data-page="home"] #homeVueApp .vue-home-community-more > summary > strong {
    border: 1px solid color-mix(in srgb, var(--archive-coral-deep) 72%, var(--archive-line)) !important;
    color: #fffaf6 !important;
    background: linear-gradient(135deg, #ce715f 0%, var(--archive-coral) 52%, var(--archive-coral-deep) 100%) !important;
    box-shadow: 0 14px 30px rgba(143, 63, 50, 0.2) !important;
    transition:
        transform var(--motion-settle),
        box-shadow var(--motion-settle),
        filter var(--motion-quick) !important;
}

html body[data-page="home"][data-page="home"] #homeVueApp .vue-home-community-more > summary:is(:hover, :focus-visible) > strong {
    box-shadow: 0 18px 36px rgba(143, 63, 50, 0.25) !important;
    filter: saturate(1.04) brightness(1.02) !important;
    transform: translate3d(0, -1px, 0) !important;
}

html body[data-page="home"][data-page="home"] #homeVueApp .pill {
    border-color: color-mix(in srgb, var(--archive-coral) 28%, var(--archive-line)) !important;
    color: var(--archive-coral-deep) !important;
    background: var(--archive-coral-wash) !important;
    box-shadow: none !important;
}

html body[data-page="home"][data-page="home"] #homeVueApp .secondary-btn {
    border-color: var(--archive-line) !important;
    color: var(--archive-ink) !important;
    background: rgba(255, 252, 249, 0.88) !important;
    box-shadow: none !important;
}

html body[data-page="home"][data-page="home"] #homeVueApp .secondary-btn:is(:hover, :focus-visible) {
    border-color: color-mix(in srgb, var(--archive-coral) 45%, var(--archive-line)) !important;
    color: var(--archive-coral-deep) !important;
    background: var(--archive-coral-wash) !important;
}
