/* Approved home, catalog and form-workflow presentation; flow extensions are scoped separately. */
html body:is([data-ui-page="home"], [data-ui-page="tools"], [data-ui-page="poster"]) {
  --control-surface: #1b191f;
  --control-line: #37323d;
  --control-line-hover: #9f80cc;
  --control-focus: #b18aff;
  --control-selected: #30233f;
  --control-muted: #c4b9d3;
  --control-shadow: none;
  --ui-background: #0b0b0d;
  --ui-surface: #19191e;
  --ui-control: #1b191f;
  --ui-text: #f4f3f7;
  --ui-muted: #b1abbc;
  --ui-border: #37323d;
  --ui-accent: #8962ed;
  --ui-cover-radius: 35px;
  --text: var(--ui-text);
  --muted: var(--ui-muted);
  --line: #2b2730;
  --accent: var(--ui-accent);
  --accent-text: #c4a9ff;
  --accent-soft: #30233f;
  --field-bg: var(--ui-control);
  --nav-bg: #101012;
  --page-bg: #0b0b0d;
  color: var(--ui-text);
  background: var(--ui-background);
  color-scheme: dark;
  letter-spacing: 0;
}
body[data-ui-page]:not([data-ui-page=""]) #appShell :is(button, input, select, textarea, h2, h3, strong, span) { letter-spacing: 0; }
body:is([data-ui-page="home"], [data-ui-page="tools"], [data-ui-page="poster"])::before,
body:is([data-ui-page="home"], [data-ui-page="tools"], [data-ui-page="poster"])::after { content: none; }
body:is([data-ui-page="home"], [data-ui-page="tools"], [data-ui-workspace="true"]) #appShell {
  width: min(100%, 1080px); height: 100dvh; min-height: 0; margin: 0 auto; padding: env(safe-area-inset-top, 0px) 0 0;
  border: 0; border-radius: 0; background: #0b0b0d; box-shadow: none; backdrop-filter: none;
  overflow: auto; scrollbar-width: none;
}
body:is([data-ui-page="home"], [data-ui-page="tools"], [data-ui-workspace="true"]) #appShell .screen { height: auto; min-height: 0; padding: 0; overflow: visible; background: none; }
body:is([data-ui-page="home"], [data-ui-page="tools"], [data-ui-workspace="true"]) #appShell .tab-panel.active { height: auto; padding: 0; overflow: visible; background: none; }
/* Shared chrome: page switches must not change utility geometry or icon treatment. */
html[data-ui-release="obsidian"] body #appShell .global-actions-bar {
  position: relative; display: flex; align-items: center; width: 100%; max-width: none; gap: 0; min-height: 54px; padding: 4px 16px 0 22px; margin: 0; border: 0; background: #0b0b0d; box-shadow: none;
}
html[data-ui-release="obsidian"] body #globalPageTitle { flex: 1 1 auto; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #f4f3f7; font-size: 18px; line-height: 28px; font-weight: 500; }
html[data-ui-release="obsidian"] body #globalPageTitle::after { content: none; }
html[data-ui-release="obsidian"] body #appShell .global-actions-bar :is(#marketingCalendarButton, #systemNoticeButton) {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; min-width: 44px; min-height: 44px; flex: 0 0 44px; padding: 0; margin: 0; border: 0; background: none; color: #efebf5; box-shadow: none; border-radius: var(--ob-button-radius); transform: none;
}
html[data-ui-release="obsidian"] body #appShell .global-actions-bar #marketingCalendarButton > span { display: none; }
html[data-ui-release="obsidian"] body #appShell .global-actions-bar .app-icon { display: block; width: 23px; height: 23px; fill: currentColor; stroke: none; }
html[data-ui-release="obsidian"] body #appShell .global-actions-bar .balance-pill { display: flex; align-items: center; justify-content: center; padding: 0 4px; height: 44px; min-height: 44px; flex: 0 0 auto; margin: 0; border: 0; box-shadow: none; background: none; color: #c4bacf; gap: 4px; white-space: nowrap; }
html[data-ui-release="obsidian"] body #appShell .global-actions-bar .balance-pill span { display: inline; font-size: 10px; line-height: 16px; }
html[data-ui-release="obsidian"] body #appShell .global-actions-bar .balance-pill strong { font-size: 12px; line-height: 16px; font-variant-numeric: tabular-nums; }
html[data-ui-release="obsidian"] body #appShell .global-actions-bar .home-utility-actions { display: flex; align-items: center; flex: 0 0 auto; gap: 0; margin: 0; padding: 0; }
html[data-ui-release="obsidian"] body #appShell .global-actions-bar #systemNoticeButton .notice-dot { width: 4px; height: 4px; top: 8px; right: 10px; background: transparent; box-shadow: none; }
html[data-ui-release="obsidian"] body #appShell .global-actions-bar #systemNoticeButton.has-new .notice-dot { background: #9ee5d7; }
body[data-ui-page="home"] #appShell { font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; }
body[data-ui-page="home"] #appShell svg.home-fidelity-icon { fill: currentColor; stroke: none; }
.home-feedback-icon { display: none; }
body:is([data-ui-page="home"], [data-ui-page="tools"], [data-ui-workspace="true"]) #mainNavigation {
  position: fixed; z-index: 32; left: 50%; right: auto; bottom: 0; transform: translateX(-50%); width: min(100%, 1080px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; min-height: 64px; margin: 0; border: 0; border-radius: 0; padding: 5px 16px calc(6px + env(safe-area-inset-bottom, 0px)); background: #101012; border-top: 1px solid #242329; box-shadow: none; backdrop-filter: none;
}
html[data-ui-release="obsidian"] body #mainNavigation .nav-button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 54px; color: #b5b1be; background: none; border: 0; border-radius: var(--ob-button-radius); padding: 4px 0; margin: 0; box-shadow: none; }
html[data-ui-release="obsidian"] body #mainNavigation .nav-button.active { color: #b18aff; background: none; }
html[data-ui-release="obsidian"] body #mainNavigation .nav-button .nav-icon { display: grid; place-items: center; flex: 0 0 23px; width: 23px; height: 23px; min-width: 23px; padding: 0; margin: 0; border: 0; line-height: 0; transform: none; background: none; box-shadow: none; color: inherit; }
html[data-ui-release="obsidian"] body #mainNavigation .nav-button .app-icon { display: block; width: 23px; height: 23px; fill: currentColor; stroke: none; }
body:is([data-ui-page="home"], [data-ui-page="tools"], [data-ui-workspace="true"]) #mainNavigation .nav-icon::before { content: none; display: none; }
body:is([data-ui-page="home"], [data-ui-page="tools"], [data-ui-workspace="true"]) #mainNavigation .app-icon { display: block; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body:is([data-ui-page="home"], [data-ui-page="tools"], [data-ui-workspace="true"]) #mainNavigation .nav-button em { font-size: 11px; line-height: 16px; }
html[data-ui-release="obsidian"] body #mainNavigation .nav-button.active::after { content: ""; position: absolute; bottom: 0; width: 16px; height: 2px; border-radius: 2px; background: #aa82ff; }
body[data-ui-page="home"] #appShell .home-marketing-hub { padding: 0 20px calc(90px + env(safe-area-inset-bottom, 0px)); gap: 0; background: none; }
body[data-ui-page="home"] #homePromoCarousel { position: relative; width: calc(100% + 40px); margin: 0 -20px; height: 374px; min-height: 374px; border-radius: 0; background: #0b0b0d; box-shadow: none; }
body[data-ui-page="home"] #homePromoCarouselTrack { height: 100%; min-height: 0; }
body[data-ui-page="home"] #homePromoCarousel .home-promo-carousel-rail { height: 100%; }
body[data-ui-page="home"] #homePromoCarousel :is(.home-promo-slide, .home-promo-loop-slide) { height: 100%; min-height: 0; padding: 0; background-color: #0b0b0d; }
body[data-ui-page="home"] #homePromoCarousel .home-promo-slide::after,
body[data-ui-page="home"] #homePromoCarousel .home-promo-loop-slide::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, #0b0b0d00 36%, #0b0b0d33 55%, #0b0b0d99 73%, #0b0b0deb 92%, #0b0b0d 100%); }
body[data-ui-page="home"] #homePromoCarousel .home-promo-loop-slide { position: relative; overflow: hidden; }
body[data-ui-page="home"] #homePromoCarousel .home-promo-loop-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
body[data-ui-page="home"] #homePromoCarousel .home-promo-hero-slide::after { content: none; }
body[data-ui-page="home"] #homePromoCarousel .home-promo-hero-buffer::after { content: none; }
body[data-ui-page="home"] #homePromoCarousel .home-promo-slide-copy { display: grid; position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 52px; width: auto; gap: 12px; }
body[data-ui-page="home"] #homePromoCarousel .home-promo-slide-copy strong { font-family: "Songti SC", SimSun, serif; font-size: 25px; line-height: 1.4; font-weight: 400; color: #fff; }
body[data-ui-page="home"] #homePromoCarousel .home-promo-slide-copy em { display: inline-flex; align-items: center; gap: 12px; justify-self: start; min-height: 44px; padding: 10px 24px; border-radius: 999px; background: #8962ed; color: #fff; font-size: 15px; font-style: normal; }
body[data-ui-page="home"] #homePromoCarousel .home-marketing-hero { width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; border-radius: 0; background: none; }
body[data-ui-page="home"] #homePromoCarousel .home-hero-art { position: absolute; inset: 0; height: 100%; width: 100%; opacity: 1; background-size: cover; background-position: 50% 46%; border-radius: 0; mask-image: none; filter: none; }
body[data-ui-page="home"] #homePromoCarousel .home-hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #0b0b0d00 36%, #0b0b0d33 55%, #0b0b0d99 73%, #0b0b0deb 92%, #0b0b0d 100%); }
body[data-ui-page="home"] #homePromoCarousel .home-marketing-hero-copy { position: absolute; top: auto; left: 0; right: 0; bottom: 52px; width: auto; max-width: none; padding: 0 22px; }
body[data-ui-page="home"] #homePromoCarousel .home-marketing-hero-copy > span,
body[data-ui-page="home"] #homePromoCarousel .home-hero-caption { display: none; }
body[data-ui-page="home"] #homePromoCarousel h2 { margin: 0 0 12px; color: #fff; font-family: "Songti SC", SimSun, serif; font-size: 27px; font-weight: 400; line-height: 1.4; text-shadow: 0 2px 12px #0005; }
body[data-ui-page="home"] #homePromoCarousel h2 :is(span, b) { color: inherit; font: inherit; background: none; -webkit-text-fill-color: currentColor; }
body[data-ui-page="home"] #homePromoCarousel h2::after { content: none; }
body[data-ui-page="home"] #homePromoCarousel .home-marketing-hero-copy p { display: none; }
body[data-ui-page="home"] #homePromoCarousel .home-promo-pack-hero { display: inline-flex; align-items: center; gap: 13px; min-height: 44px; width: auto; margin: 0; padding: 10px 24px; border: 0; border-radius: 999px; background: #8962ed; color: #fff; font-size: 15px; line-height: 21px; font-weight: 650; box-shadow: none; }
body[data-ui-page="home"] #homePromoCarousel .home-promo-pack-hero i { display: grid; place-items: center; width: 20px; height: 20px; color: inherit; background: none; border: 0; transform: none; }
body[data-ui-page="home"] #homePromoCarousel .home-promo-pack-hero i svg { width: 20px; height: 20px; transform: none; }
body[data-ui-page="home"] #homePromoCarousel .home-promo-carousel-controls { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; justify-content: center; align-items: center; min-height: 44px; padding-inline: 44px; }
body[data-ui-page="home"] #homePromoCarouselDots { position: static; display: flex; flex-wrap: wrap; justify-content: center; gap: 0; }
body[data-ui-page="home"] #homePromoCarouselDots button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; box-shadow: none; }
body[data-ui-page="home"] #homePromoCarouselDots button::after { content: none; }
body[data-ui-page="home"] #homePromoCarouselDots button span { width: 5px; height: 5px; border-radius: 50%; background: #625b6c; }
body[data-ui-page="home"] #homePromoCarouselDots button[aria-pressed="true"] span { background: #b18aff; }
body[data-ui-page="home"] #homePromoPlayback { position: absolute; right: 12px; bottom: 0; display: grid; place-items: center; width: 44px; height: 44px; padding: 14px; border: 0; color: #aca4b8; background: none; }
body[data-ui-page="home"] #homePromoPlayback svg { width: 15px; height: 15px; }
body[data-ui-page="home"] #appShell .home-creation-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding: 4px 0 8px; border-bottom: 1px solid #28272d; background: none; }
body[data-ui-page="home"] #appShell .home-creation-card { display: grid; position: relative; grid-template-columns: 36px minmax(0, 1fr) 12px; grid-template-rows: 22px 16px; gap: 2px 10px; align-content: center; min-width: 0; height: auto; min-height: 52px; padding: 0 12px 0 0; border: 0; border-radius: 0; background: none; box-shadow: none; text-align: left; }
body[data-ui-page="home"] #appShell .home-quick-symbol { display: grid; place-items: center; grid-column: 1; grid-row: 1 / 3; align-self: center; width: 34px; max-width: none; height: 34px; margin: 0; padding: 0; background: #201e27; border-radius: 10px; transform: rotate(-9deg); }
body[data-ui-page="home"] #appShell .home-quick-icon { width: 28px; height: 28px; padding: 0; color: #ece9f2; transform: rotate(9deg); }
body[data-ui-page="home"] #appShell .home-creation-card[data-home-primary="dialogueSoon"] { padding-left: 14px; padding-right: 0; border-left: 1px solid #28272d; }
body[data-ui-page="home"] #appShell .home-creation-card img { position: static; grid-row: 1 / 3; width: 36px; height: 42px; margin: 0; object-fit: contain; filter: saturate(.45); }
body[data-ui-page="home"] #appShell .home-creation-card strong { position: static; grid-column: 2; font-size: 15px; line-height: 22px; font-weight: 600; color: #f4f3f7; }
body[data-ui-page="home"] #appShell .home-creation-card > span:not(.home-quick-symbol) { position: static; grid-column: 2; margin: 0; padding: 0; max-width: none; font-size: 11px; line-height: 16px; color: #b1abbc; white-space: nowrap; }
body[data-ui-page="home"] #appShell .home-creation-card i { display: grid; place-items: center; position: static; grid-column: 3; grid-row: 1 / 3; align-self: center; width: 12px; height: 12px; border: 0; background: none; color: #d5d1de; box-shadow: none; transform: none; }
body[data-ui-page="home"] #appShell .home-creation-card i svg { width: 12px; height: 12px; transform: none; }
body[data-ui-page="home"] #appShell .home-creation-card::before,
body[data-ui-page="home"] #appShell .home-creation-card::after { content: none; }
body[data-ui-page="home"] #appShell .home-today-task { margin: 8px 0 0; padding: 0 0 4px; height: auto; border: 0; background: none; box-shadow: none; border-radius: 0; }
body[data-ui-page="home"] #homeActionCard { position: relative; display: block; min-height: 0; background: none; border: 0; box-shadow: none; }
body[data-ui-page="home"] #homeActionCard .home-secretary-notice { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; grid-template-rows: 44px auto auto; gap: 0 10px; align-items: center; min-height: 88px; padding: 0; background: none; color: #f4f3f7; }
body[data-ui-page="home"] #homeActionCard .home-secretary-notice-icon { grid-column: 1; grid-row: 1; width: 22px; height: 22px; align-self: start; margin-top: 11px; background: none; color: #956bff; border-radius: 0; }
body[data-ui-page="home"] #homeActionCard .home-secretary-notice-icon svg { width: 22px; height: 22px; }
body[data-ui-page="home"] #homeActionCard .home-secretary-notice-copy { display: contents; }
body[data-ui-page="home"] #homeActionCard .home-secretary-notice-copy small { display: flex; align-items: center; grid-column: 2 / 4; grid-row: 1; min-height: 44px; padding-right: 78px; color: #f4f3f7; font-size: 12px; line-height: 18px; font-weight: 600; }
body[data-ui-page="home"] #homeActionCard .home-secretary-notice-copy small b { font: inherit; color: inherit; }
body[data-ui-page="home"] #homeActionCard .home-secretary-notice-copy strong { grid-column: 2; grid-row: 2; align-self: end; color: #f4f3f7; font-size: 12px; font-weight: 400; line-height: 19px; }
body[data-ui-page="home"] #homeActionCard .home-secretary-notice-reason { grid-column: 2; grid-row: 3; align-self: start; padding-top: 2px; color: #b1abbc; font-size: 11px; line-height: 17px; }
body[data-ui-page="home"] #homeActionCard .home-secretary-notice-cta { position: relative; grid-column: 3; grid-row: 2 / 4; margin: 0; padding: 0 11px; min-height: 44px; gap: 6px; color: #b395ff; border: 0; border-radius: 0; font-size: 11px; line-height: 16px; font-weight: 400; white-space: nowrap; text-align: center; }
body[data-ui-page="home"] #homeActionCard .home-secretary-notice-cta::before { content: ""; position: absolute; inset: 8px 0; border: 1px solid #8066a8; border-radius: 999px; }
body[data-ui-page="home"] #homeActionCard .home-secretary-notice-cta svg { width: 15px; height: 15px; }
body[data-ui-page="home"] #homeActionCard .home-notice-feedback { position: absolute; top: 0; right: -10px; border: 0; display: flex; gap: 0; padding: 0; }
body[data-ui-page="home"] #homeActionCard .home-notice-feedback button { display: grid; place-items: center; width: 44px; height: 44px; min-height: 44px; padding: 12px; color: #9b96aa; background: none; border: 0; }
body[data-ui-page="home"] #homeActionCard .home-notice-feedback button span { display: none; }
body[data-ui-page="home"] #homeActionCard .home-feedback-icon { display: block; width: 15px; height: 15px; }
body[data-ui-page="home"] #homeInspirationSection { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: calc(100% + 14px); margin: 0 -7px; padding: 4px 0 18px; gap: 8px 16px; }
body[data-ui-page="home"] #homeInspirationSection .home-inspiration-title-row { grid-column: 1; grid-row: 1; margin: 0 0 0 7px; min-width: 0; align-items: center; }
body[data-ui-page="home"] #homeInspirationHeading { margin: 0; font-size: 23px; line-height: 34.5px; color: #f4f3f7; font-weight: 700; }
body[data-ui-page="home"] #homeInspirationWaterfall { display: contents; }
body[data-ui-page="home"] #homeInspirationWaterfall .home-inspiration-categories { display: flex; grid-column: 2; grid-row: 1; width: auto; margin: 0 7px 0 0; padding: 0; overflow-x: auto; gap: 0; border: 0; background: none; }
body[data-ui-page="home"] #homeInspirationWaterfall .home-inspiration-categories button { position: relative; flex: 0 0 auto; min-width: 48px; min-height: 44px; padding: 6px 8px; background: none; color: #8b8795; border: 0; border-radius: var(--ob-button-radius); font-size: 13px; font-weight: 400; box-shadow: none; }
body[data-ui-page="home"] #homeInspirationWaterfall .home-inspiration-categories button.active { color: #eee9ff; background: none; border-radius: var(--ob-button-radius); }
body[data-ui-page="home"] #homeInspirationWaterfall .home-inspiration-categories button.active::after { content: ""; position: absolute; width: 15px; height: 2px; left: calc(50% - 7.5px); bottom: 2px; background: #956bff; border-radius: 4px; }
body[data-ui-page="home"] #homeInspirationWaterfall .home-inspiration-rail { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; margin: 0; padding: 0; gap: 7px; overflow: visible; }
body[data-ui-page="home"] #homeInspirationWaterfall .home-inspiration-load-more { grid-column: 1 / -1; }
body[data-ui-page="home"] #homeInspirationWaterfall .home-inspiration-tile { width: 100%; min-width: 0; aspect-ratio: .91; height: auto; min-height: 0; border: 0; border-radius: 8px; background: #19191e; }
body[data-ui-page="home"] #homeInspirationWaterfall .home-inspiration-tile > div { height: auto; inset: auto 0 0; padding: 20px 28px 10px 10px; background: linear-gradient(180deg, transparent, #0b0b0d99); backdrop-filter: none; }
body[data-ui-page="home"] #homeInspirationWaterfall .home-inspiration-tile > div::before { content: none; }
body[data-ui-page="home"] #homeInspirationWaterfall .home-inspiration-tile strong { font-size: 12px; line-height: 18px; font-weight: 500; }
body[data-ui-page="home"] #homeInspirationWaterfall .home-inspiration-arrow { width: 16px; height: 16px; right: 8px; bottom: 11px; padding: 0; border: 0; background: none; color: #fff; box-shadow: none; }
body[data-ui-page="home"] #homeInspirationWaterfall .home-inspiration-arrow svg { width: 15px; height: 15px; }
body[data-ui-page="tools"] #toolsGrid { width: 100%; max-width: none; margin: 0; padding: 0 20px calc(100px + env(safe-area-inset-bottom, 0px)); background: none; gap: 0; }
body[data-ui-page="tools"] #toolsGrid .tools-workspace-head { display: none; }
body[data-ui-page="tools"] #toolsGrid .tools-workspace-head :is(.tools-workspace-kicker, .tools-workspace-mark) { display: none; }
body[data-ui-page="tools"] #toolsGrid .tools-workspace-head h2 { margin: 0; font-size: 23px; color: #f4f3f7; line-height: 32px; }
body[data-ui-page="tools"] #toolsGrid .obsidian-tool-search { display: flex; align-items: center; gap: 8px; min-height: 46px; padding-left: 12px; background: #19191e; border: 1px solid #2b2a31; border-radius: var(--ob-field-radius); }
body[data-ui-page="tools"] #toolsGrid .obsidian-tool-search > svg { width: 18px; height: 18px; color: #b1abbc; }
body[data-ui-page="tools"] #toolHubSearch { flex: 1; min-width: 0; min-height: 44px; padding: 8px 0; font-size: 14px; border: 0; background: none; color: #f4f3f7; box-shadow: none; }
body[data-ui-page="tools"] #toolHubSearchClear { display: grid; place-items: center; width: 44px; height: 44px; padding: 13px; border: 0; background: none; color: #b1abbc; }
body[data-ui-page="tools"] #toolHubSearchEmpty { font-size: 13px; line-height: 22px; color: #b1abbc; padding: 20px 0; }
body[data-ui-page="tools"] #toolsGrid .tools-category-tabs { display: flex; gap: 6px; padding: 12px 0; margin: 0; overflow-x: auto; flex-wrap: nowrap; border: 0; background: none; scrollbar-width: none; }
body[data-ui-page="tools"] #toolsGrid .tools-category-tabs button { flex: 0 0 auto; min-height: 44px; padding: 9px 14px; border: 0; background: none; color: #b1abbc; border-radius: var(--ob-button-radius); font-size: 13px; }
body[data-ui-page="tools"] #toolsGrid .tools-category-tabs button.is-active { background: #30233f; color: #c4a9ff; box-shadow: none; }
body[data-ui-page="tools"] #toolsGrid .tools-section { padding: 8px 0 20px; background: none; border: 0; border-radius: 0; box-shadow: none; }
body[data-ui-page="tools"] #toolsGrid .tools-section-head { padding: 8px 0 16px; margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
body[data-ui-page="tools"] #toolsGrid .tools-section-head h3 { font-size: 16px; font-weight: 600; color: #f4f3f7; }
body[data-ui-page="tools"] #toolsGrid .tools-section-head p { font-size: 11px; color: #b1abbc; }
body[data-ui-page="tools"] #toolsGrid :is(.tools-feature-grid, .tools-secondary-grid) { gap: 22px 16px; }
body[data-ui-page="tools"] #toolsGrid :is(.tool-feature-card, .tool-secondary-card) { display: flex; flex-direction: column; position: relative; isolation: isolate; gap: 0; padding: 0; aspect-ratio: auto; border: 0; border-radius: 0; background: none; overflow: visible; box-shadow: none; color: #f4f3f7; }
body[data-ui-page="tools"] #toolsGrid :is(.tool-feature-card, .tool-secondary-card)::before,
body[data-ui-page="tools"] #toolsGrid :is(.tool-feature-card, .tool-secondary-card)::after { content: none; }
body[data-ui-page="tools"] #toolsGrid :is(.tool-feature-card, .tool-secondary-card) > i { display: grid; place-items: center; width: 100%; height: auto; aspect-ratio: 1; margin: 0; border: 0; border-radius: 35px; background: #242128; color: #c4b9d3; }
body[data-ui-page="tools"] #toolsGrid :is(.tool-feature-card, .tool-secondary-card) > i svg { width: 32px; height: 32px; }
body[data-ui-page="tools"] #toolsGrid .has-tool-cover > i { display: none; }
body[data-ui-page="tools"] #toolsGrid .tool-hub-cover { position: static; width: 100%; height: auto; aspect-ratio: 1; border-radius: 35px; z-index: auto; object-fit: cover; }
body[data-ui-page="tools"] #toolsGrid :is(.tool-feature-card, .tool-secondary-card) > div { display: grid; align-self: stretch; gap: 2px; padding: 10px 18px 0 0; min-width: 0; }
body[data-ui-page="tools"] #toolsGrid :is(.tool-feature-card, .tool-secondary-card) small { display: none; }
body[data-ui-page="tools"] #toolsGrid :is(.tool-feature-card, .tool-secondary-card) strong { display: block; color: #f4f3f7; font-size: 14px; font-weight: 600; line-height: 22px; overflow: visible; }
body[data-ui-page="tools"] #toolsGrid :is(.tool-feature-card, .tool-secondary-card) div > span { display: block; padding: 0; color: #b1abbc; font-size: 11px; line-height: 18px; overflow: visible; }
body[data-ui-page="tools"] #toolsGrid :is(.tool-feature-card, .tool-secondary-card) > b { position: absolute; top: auto; bottom: 24px; right: 0; width: 14px; height: 14px; background: none; color: #b8acc6; }
body[data-ui-page="tools"] #toolsGrid :is([data-search-hidden], [data-search-empty], .is-filtered-out) { display: none; }
/* IDs deliberately outrank the legacy light rules, without global !important patches. */
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunner { background: #0b0b0d; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunner #workflowRunnerShell { width: min(100%, 940px); height: 100dvh; min-height: 0; max-height: 100dvh; margin: auto; background: #0b0b0d; color: #f4f3f7; box-shadow: none; scrollbar-width: none; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .workflow-runner-head { position: sticky; top: 0; z-index: 5; padding: max(8px, env(safe-area-inset-top, 0px)) 8px 8px; min-height: 64px; border: 0; background: #0b0b0d; grid-template-columns: 88px minmax(0, 1fr) 88px; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .workflow-runner-head > div { text-align: center; min-width: 0; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .workflow-runner-head h2 { font-size: 16px; color: #f4f3f7; font-weight: 600; line-height: 24px; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .workflow-runner-head > div > span { display: none; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .workflow-runner-head button { width: 44px; height: 44px; min-height: 44px; padding: 12px; border: 0; border-radius: var(--ob-button-radius); background: none; box-shadow: none; color: #d5c9e6; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .workflow-runner-body { padding: 8px 20px 152px; gap: 16px; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell :is(.workflow-skill-panel, .workflow-model-panel, .workflow-material-panel, .workflow-edit-panel, .workflow-runner-result, .workflow-runner-status) { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: #f4f3f7; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .workflow-skill-panel-head { display: none; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .workflow-skill-fields { gap: 14px 12px; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .workflow-skill-field:has([data-workflow-skill-field="headline"]) { grid-column: 1 / -1; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .workflow-visual-options { scrollbar-width: thin; scrollbar-color: #55495f transparent; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell :is(input:not([type="radio"]):not([type="file"]), select, textarea) { min-height: 44px; padding: 10px 11px; border: 1px solid #37323d; border-radius: var(--ob-field-radius); background: #1b191f; color: #f4f3f7; font-size: 14px; line-height: 22px; box-shadow: none; color-scheme: dark; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell :is(input, textarea)::placeholder { color: #aaa3b3; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .workflow-skill-field > span { color: #ece9f1; font-size: 13px; line-height: 20px; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .workflow-visual-field { margin-top: 4px; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .workflow-visual-field legend { color: #f4f3f7; font-size: 15px; font-weight: 600; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .workflow-visual-options { grid-auto-columns: calc((100% - 24px) / 3); gap: 10px; padding: 2px 2px 10px; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .workflow-visual-option-body { border-color: #37323d; background: #19191e; color: #f4f3f7; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .workflow-visual-image { aspect-ratio: 3 / 4; padding: 0; background: #242128; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .workflow-visual-image > span { color: #b1abbc; font-size: 11px; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .workflow-visual-option-name { padding: 6px; font-size: 12px; line-height: 18px; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .workflow-visual-option input:checked + .workflow-visual-option-body { background: #322442; border-color: #a985ff; box-shadow: 0 0 0 1px #a985ff; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .workflow-visual-check { color: #c5acff; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .workflow-optional-settings { margin-top: 6px; border-top: 1px solid #2b2730; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .workflow-optional-settings summary { min-height: 48px; padding: 14px 0; color: #c4bdd0; font-size: 13px; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .workflow-optional-settings summary span { color: #b1abbc; font-size: 11px; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell :is(.workflow-model-option, .workflow-material-upload, .workflow-runner-upload, .workflow-material-preview) { border: 1px solid #37323d; border-radius: var(--ob-button-radius); background: #19171d; color: #d8cce7; box-shadow: none; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .workflow-model-option.active { background: #30233f; border-color: #b18aff; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell :is(.workflow-material-empty, .workflow-material-add) { min-height: 56px; border: 1px dashed #51495e; border-radius: 8px; background: #19171d; color: #c4bdd0; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .workflow-material-empty .app-icon { color: #c4a9ff; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .workflow-material-add { min-height: 44px; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell :is(.workflow-model-option strong, .workflow-panel-heading strong, .workflow-skill-prompt-head strong) { color: #f4f3f7; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell :is(.workflow-model-option span, .workflow-panel-heading > span, .workflow-skill-retention, .workflow-runner-steps span, .workflow-runner-files, .workflow-material-panel p) { color: #b1abbc; font-size: 11px; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .workflow-runner-steps span.active { color: #bf9fff; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .workflow-runner-steps i { background: #37323d; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .workflow-runner-footer { width: min(100%, 940px); padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #2a262f; background: #111013; box-shadow: none; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .workflow-runner-cost { color: #b1abbc; font-size: 12px; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .workflow-runner-cost strong { color: #f4f3f7; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell :is(.primary-button, .result-primary) { min-height: 48px; border: 0; border-radius: var(--ob-button-radius); background: #8962ed; color: #fff; font-weight: 600; box-shadow: none; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell :is(.soft-button, .result-secondary, .workflow-runner-result-select) { min-height: 44px; border: 1px solid #37323d; border-radius: var(--ob-button-radius); background: #24212c; color: #e1d4ff; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .workflow-runner-result > img { width: 100%; max-height: 70dvh; object-fit: contain; border-radius: 8px; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .workflow-runner-result-label { color: #e9e0f4; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .workflow-runner-result-current { background: #30233f; color: #d7c0ff; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .workflow-view-original { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 10px; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .workflow-result-actions .result-primary { background: #24212c; color: #e1d4ff; border: 1px solid #37323d; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .workflow-result-actions .result-primary:disabled { background: #17241e; color: #b2d7c5; border-color: #304539; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .result-storage { color: #b1abbc; font-size: 12px; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .result-storage-title { color: #c0b5ce; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell [data-result-storage="saved"] .result-storage-title { color: #a7d7be; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .result-issue { background: #2d1e23; color: #f0bfc8; border-left-color: #d49aaa; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .workflow-runner-edit-panel { background: none; border: 0; border-radius: 0; border-top: 1px solid #302b36; padding: 18px 0; color: #f4f3f7; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .workflow-runner-edit-panel > strong { color: #f4f3f7; font-size: 15px; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .workflow-runner-edit-panel > span { color: #b1abbc; font-size: 12px; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell:has([data-result-regenerate]) .workflow-runner-footer { position: static; width: 100%; transform: none; border-top: 1px solid #302b36; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell:has([data-result-regenerate]) .workflow-runner-body { padding-bottom: 24px; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell [data-result-regenerate] { background: #24212c; color: #e1d4ff; border: 1px solid #37323d; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .usage-cue { background: #221b2d; color: #cbb4ef; border-left-color: #9470d3; font-size: 12px; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .usage-cue button { width: 44px; height: 44px; flex-basis: 44px; }
body:is([data-ui-page="home"], [data-ui-page="tools"], [data-ui-page="poster"]) :is(button, input, select, textarea, summary):focus-visible { outline: 2px solid #c5acff; outline-offset: 3px; }
body:is([data-ui-page="home"], [data-ui-page="tools"], [data-ui-page="poster"]) :is(.app-action-confirmation, .usage-guide-sheet) { background: #1b171f; color: #f4f3f7; border-color: #40344c; }
body:is([data-ui-page="home"], [data-ui-page="tools"], [data-ui-page="poster"]) .usage-guide-sheet :is(p, span, summary) { color: #c4b6cf; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #imagePreviewBackdrop { z-index: 6190; background: #050408c9; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #imagePreviewSheet { z-index: 6200; border: 1px solid #37323d; border-radius: 8px; background: #17131b; color: #f4f3f7; box-shadow: 0 16px 48px #0005; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #imagePreviewSheet .image-preview-stage { background: #0b0b0d; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #imagePreviewSheet :is(strong, p) { color: #eee5f7; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #imagePreviewSheet button { min-height: 44px; border-color: #44374f; background: #292031; color: #e7d9ff; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #promptTraceBackdrop { z-index: 6210; }
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #promptTraceSheet { z-index: 6220; background: #17131b; color: #f4f3f7; }
body:is([data-ui-page="home"], [data-ui-page="tools"], [data-ui-page="poster"]) .app-action-confirm-panel { background: #1b171f; color: #f4f3f7; border-color: #40344c; }
body:is([data-ui-page="home"], [data-ui-page="tools"], [data-ui-page="poster"]) .app-action-confirm-panel p { color: #c4b6cf; }
body:is([data-ui-page="home"], [data-ui-page="tools"], [data-ui-page="poster"]) #appShell [hidden],
body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell [hidden],
body[data-ui-page="home"] #homePromoPlayback[hidden] { display: none; }
@media (min-width: 760px) {
  body[data-ui-page="home"] #homePromoCarousel { height: 460px; }
  body[data-ui-page="home"] #homePromoCarousel .home-marketing-hero-copy { padding: 0 42px; bottom: 60px; }
  body[data-ui-page="home"] #homePromoCarousel h2 { font-size: 36px; }
  body[data-ui-page="home"] #homeInspirationWaterfall .home-inspiration-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body[data-ui-page="tools"] #toolsGrid :is(.tools-feature-grid, .tools-secondary-grid) { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 22px; }
  body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .workflow-runner-body:not(.workflow-runner-generation-view) { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, 1fr); align-items: start; column-gap: 32px; }
  body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .workflow-runner-steps { grid-column: 1 / -1; }
  body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .workflow-skill-panel { grid-column: 1; grid-row: span 3; }
  body:is([data-ui-page="poster"], [data-ui-page="workflow"]) #workflowRunnerShell .workflow-runner-result { max-width: 580px; margin-inline: auto; }
}
@media (max-width: 360px) {
  body[data-ui-page="home"] #homePromoCarousel { height: 350px; min-height: 350px; }
  body[data-ui-page="home"] #homePromoCarousel h2 { font-size: 25px; }
  body[data-ui-page="home"] #appShell .home-creation-card { gap: 2px 6px; grid-template-columns: 32px minmax(0, 1fr) 12px; }
  body[data-ui-page="home"] #appShell .home-quick-symbol { width: 30px; height: 30px; }
  body[data-ui-page="home"] #homeActionCard .home-secretary-notice { column-gap: 7px; }
  body[data-ui-page="home"] #homeActionCard .home-secretary-notice-cta { padding-inline: 8px; }
  body[data-ui-page="tools"] #toolsGrid .tools-section-head { flex-wrap: wrap; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-ui-page="home"] #homePromoCarousel .home-promo-carousel-rail { transition: none; }
}
