/* Shared light UI language for secondary screens. The approved homepage stays isolated. */
html[data-theme="light"] body:not(.agent-home-tab) {
  --ui-page: #edf2fa;
  --ui-page-deep: #e6ecf6;
  --ui-surface: rgba(255, 255, 255, 0.92);
  --ui-surface-solid: #ffffff;
  --ui-surface-soft: #f7f9fd;
  --ui-text: #131827;
  --ui-muted: #737d92;
  --ui-subtle: #9aa3b5;
  --ui-line: #e5eaf3;
  --ui-line-strong: #d9e0ee;
  --ui-primary: #6257e9;
  --ui-primary-deep: #4b43c8;
  --ui-primary-soft: #f0efff;
  --ui-navy: #111827;
  --ui-warm: #ff642c;
  --ui-shadow: 0 14px 34px rgba(54, 67, 106, 0.08);
  --ui-shadow-soft: 0 8px 22px rgba(54, 67, 106, 0.055);
  --bg: #edf2fa;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-soft: rgba(19, 24, 39, 0.035);
  --line: #e5eaf3;
  --text: #131827;
  --muted: #737d92;
  --accent: #6257e9;
  --accent-text: #4b43c8;
  --accent-soft: rgba(98, 87, 233, 0.12);
  --shadow: 0 18px 48px rgba(54, 67, 106, 0.12);
  --page-bg: linear-gradient(180deg, #f5f8fe 0%, #eaf0f9 100%);
  --app-bg: linear-gradient(180deg, rgba(250, 252, 255, 0.97), rgba(240, 245, 253, 0.98));
  --nav-bg: rgba(255, 255, 255, 0.94);
  --field-bg: #f7f9fd;
  --field-bg-focus: #ffffff;
  --soft-bg: #f7f9fd;
  --panel-bg: #f5f7fc;
  --overlay-bg: rgba(28, 36, 61, 0.28);
  --sheet-bg: linear-gradient(180deg, #ffffff, #f5f7fc);
  color: var(--ui-text);
  background: var(--ui-page);
}

/* AI tools center: task-first hierarchy without duplicating the home page. */
html[data-theme="light"] body:not(.agent-home-tab) .tools-workspace {
  display: grid;
  gap: 18px;
  padding: 2px 0 116px;
}

html[data-theme="light"] body:not(.agent-home-tab) .tools-workspace-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 4px 2px 0;
}

html[data-theme="light"] body:not(.agent-home-tab) .tools-workspace-kicker,
html[data-theme="light"] body:not(.agent-home-tab) .tools-section-head span {
  color: var(--ui-primary-deep);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-transform: uppercase;
}

html[data-theme="light"] body:not(.agent-home-tab) .tools-workspace-head h2 {
  max-width: 12em;
  margin: 7px 0 5px;
  color: var(--ui-text);
  font-size: 25px;
  line-height: 1.2;
  font-weight: 950;
  letter-spacing: 0;
}

html[data-theme="light"] body:not(.agent-home-tab) .tools-workspace-head p {
  max-width: 25em;
  margin: 0;
  color: var(--ui-muted);
  font-size: 12px;
  line-height: 1.5;
}

html[data-theme="light"] body:not(.agent-home-tab) .tools-workspace-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--ui-primary);
  background: linear-gradient(145deg, #f1efff, #e9f6ff);
  box-shadow: inset 0 0 0 1px rgba(98, 87, 233, 0.08);
}

html[data-theme="light"] body:not(.agent-home-tab) .tools-workspace-mark .app-icon {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}

html[data-theme="light"] body:not(.agent-home-tab) .tools-category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 3px;
  scrollbar-width: none;
}

html[data-theme="light"] body:not(.agent-home-tab) .tools-category-tabs::-webkit-scrollbar {
  display: none;
}

html[data-theme="light"] body:not(.agent-home-tab) .tools-category-tabs button {
  min-height: 36px;
  flex: 0 0 auto;
  padding: 0 16px;
  border: 1px solid var(--ui-line);
  border-radius: 999px;
  color: var(--ui-muted);
  background: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

html[data-theme="light"] body:not(.agent-home-tab) .tools-category-tabs button.is-active {
  border-color: var(--ui-navy);
  color: #fff;
  background: var(--ui-navy);
  box-shadow: 0 7px 16px rgba(17, 24, 39, 0.14);
}

html[data-theme="light"] body:not(.agent-home-tab) .tools-section {
  display: grid;
  gap: 11px;
  min-width: 0;
}

html[data-theme="light"] body:not(.agent-home-tab) .tools-section.is-filtered-out {
  display: none;
}

html[data-theme="light"] body:not(.agent-home-tab) .tools-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
}

html[data-theme="light"] body:not(.agent-home-tab) .tools-section-head div {
  display: grid;
  gap: 4px;
}

html[data-theme="light"] body:not(.agent-home-tab) .tools-section-head h3 {
  margin: 0;
  color: var(--ui-text);
  font-size: 19px;
  line-height: 1.2;
  font-weight: 950;
  letter-spacing: 0;
}

html[data-theme="light"] body:not(.agent-home-tab) .tools-section-head p {
  margin: 0 0 1px;
  color: var(--ui-muted);
  font-size: 11px;
  line-height: 1.4;
  text-align: right;
}

html[data-theme="light"] body:not(.agent-home-tab) .tools-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-feature-card,
html[data-theme="light"] body:not(.agent-home-tab) .tool-secondary-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--ui-line);
  text-align: left;
  cursor: pointer;
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-feature-card {
  min-height: 174px;
  display: grid;
  align-content: space-between;
  gap: 16px;
  padding: 16px;
  overflow: hidden;
  border-radius: 22px;
  color: #fff;
  box-shadow: 0 14px 28px rgba(32, 41, 74, 0.12);
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-feature-card::after {
  position: absolute;
  right: -22px;
  bottom: -36px;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  content: "";
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-feature-card-xhs {
  background: linear-gradient(145deg, #2b244c, #6257e9);
  border-color: rgba(98, 87, 233, 0.36);
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-feature-card-video {
  background: linear-gradient(145deg, #102a43, #1c8fa4);
  border-color: rgba(28, 143, 164, 0.34);
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-feature-card > i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-feature-card > i .app-icon {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-feature-card > div {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  min-width: 0;
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-feature-card small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  font-weight: 750;
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-feature-card strong {
  font-size: 18px;
  line-height: 1.22;
  font-weight: 950;
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-feature-card span {
  max-width: 15em;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  line-height: 1.45;
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-feature-card > b,
html[data-theme="light"] body:not(.agent-home-tab) .tool-secondary-card > b {
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-feature-card > b {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  width: 28px;
  height: 28px;
  color: var(--ui-navy);
  background: rgba(255, 255, 255, 0.9);
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-feature-card > b .app-icon,
html[data-theme="light"] body:not(.agent-home-tab) .tool-secondary-card > b .app-icon {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}

html[data-theme="light"] body:not(.agent-home-tab) .tools-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-secondary-card {
  min-height: 82px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 10px;
  padding: 13px 12px;
  border-radius: 17px;
  color: var(--ui-text);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 8px 18px rgba(37, 49, 85, 0.04);
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-secondary-card > i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--ui-primary);
  background: var(--ui-primary-soft);
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-secondary-card > i .app-icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-secondary-card > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-secondary-card strong {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-secondary-card span {
  overflow: hidden;
  color: var(--ui-muted);
  font-size: 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-secondary-card > b {
  width: 28px;
  height: 28px;
  color: var(--ui-primary-deep);
  background: var(--ui-primary-soft);
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-secondary-card > em {
  grid-column: 2 / -1;
  justify-self: start;
  margin-top: -3px;
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--ui-primary-deep);
  background: #efedff;
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-secondary-card.is-coming {
  cursor: default;
  background: rgba(255, 255, 255, 0.52);
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-secondary-card.is-coming > i {
  color: #9a9eac;
  background: #f0f1f5;
}

@media (max-width: 360px) {
  html[data-theme="light"] body:not(.agent-home-tab) .tools-workspace-head h2 {
    font-size: 22px;
  }

  html[data-theme="light"] body:not(.agent-home-tab) .tools-feature-grid,
  html[data-theme="light"] body:not(.agent-home-tab) .tools-secondary-grid {
    grid-template-columns: 1fr;
  }

  html[data-theme="light"] body:not(.agent-home-tab) .tool-feature-card {
    min-height: 148px;
  }
}

html[data-theme="light"] body:not(.agent-home-tab) .backdrop {
  opacity: 0.18;
}

html[data-theme="light"] body:not(.agent-home-tab) .app-shell {
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.97), rgba(240, 245, 253, 0.98));
  border-color: rgba(255, 255, 255, 0.82);
  box-shadow: 0 22px 60px rgba(46, 59, 96, 0.12);
}

html[data-theme="light"] body:not(.agent-home-tab) .app-shell::before {
  background: radial-gradient(circle at 78% 12%, rgba(98, 87, 233, 0.12) 0 12%, rgba(124, 142, 255, 0.06) 34%, transparent 70%);
}

html[data-theme="light"] body:not(.agent-home-tab) .global-actions-bar {
  min-height: 58px;
  margin-bottom: 12px;
  padding: 2px 2px 8px;
}

html[data-theme="light"] body:not(.agent-home-tab) .global-actions-bar h2,
html[data-theme="light"] body:not(.agent-home-tab) .app-hub-hero h2,
html[data-theme="light"] body:not(.agent-home-tab) .workflow-catalog-head h2 {
  color: var(--ui-text);
}

html[data-theme="light"] body:not(.agent-home-tab) .global-actions-bar h2[data-subtitle]::after {
  color: var(--ui-muted);
}

html[data-theme="light"] body:not(.agent-home-tab) .marketing-calendar-button {
  background: var(--ui-warm);
  box-shadow: 0 8px 18px rgba(255, 100, 44, 0.18);
}

html[data-theme="light"] body:not(.agent-home-tab) .balance-pill,
html[data-theme="light"] body:not(.agent-home-tab) .system-notice-button {
  color: var(--ui-text);
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: var(--ui-shadow-soft);
}

html[data-theme="light"] body:not(.agent-home-tab) .screen {
  gap: 14px;
  padding-bottom: 22px;
}

html[data-theme="light"] body:not(.agent-home-tab) .tab-panel {
  gap: 14px;
}

html[data-theme="light"] body:not(.agent-home-tab) .surface,
html[data-theme="light"] body:not(.agent-home-tab) .composer-card,
html[data-theme="light"] body:not(.agent-home-tab) .result-card,
html[data-theme="light"] body:not(.agent-home-tab) .mall-toolbar,
html[data-theme="light"] body:not(.agent-home-tab) .menu-list,
html[data-theme="light"] body:not(.agent-home-tab) .subpage-panel,
html[data-theme="light"] body:not(.agent-home-tab) .one-shot-card,
html[data-theme="light"] body:not(.agent-home-tab) .profile-summary,
html[data-theme="light"] body:not(.agent-home-tab) .profile-safety-card {
  border-color: var(--ui-line);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow);
}

html[data-theme="light"] body:not(.agent-home-tab) .surface {
  backdrop-filter: blur(18px);
}

html[data-theme="light"] body:not(.agent-home-tab) .app-hub {
  gap: 14px;
}

html[data-theme="light"] body:not(.agent-home-tab) .app-hub-hero {
  padding: 16px 4px 6px;
}

html[data-theme="light"] body:not(.agent-home-tab) .app-hub-hero span,
html[data-theme="light"] body:not(.agent-home-tab) .workflow-catalog-head span {
  color: var(--ui-primary);
  letter-spacing: 0.08em;
}

html[data-theme="light"] body:not(.agent-home-tab) .app-hub-hero h2 {
  font-size: clamp(26px, 7vw, 34px);
  letter-spacing: -0.035em;
}

html[data-theme="light"] body:not(.agent-home-tab) .app-hub-hero p,
html[data-theme="light"] body:not(.agent-home-tab) .workflow-catalog-head p {
  color: var(--ui-muted);
}

html[data-theme="light"] body:not(.agent-home-tab) .workflow-catalog-panel {
  padding: 10px 0 110px;
  gap: 14px;
}

html[data-theme="light"] body:not(.agent-home-tab) .workflow-catalog-head {
  padding: 10px 4px 2px;
}

html[data-theme="light"] body:not(.agent-home-tab) .workflow-catalog-head h2 {
  font-size: clamp(27px, 7vw, 34px);
  letter-spacing: -0.035em;
}

html[data-theme="light"] body:not(.agent-home-tab) .workflow-catalog-list,
html[data-theme="light"] body:not(.agent-home-tab) .tools-grid {
  gap: 12px;
}

html[data-theme="light"] body:not(.agent-home-tab) .workflow-card {
  min-height: 108px;
  border-color: var(--ui-line);
  border-radius: 20px;
  background: var(--ui-surface-solid);
  box-shadow: var(--ui-shadow-soft);
}

html[data-theme="light"] body:not(.agent-home-tab) .workflow-card-copy small,
html[data-theme="light"] body:not(.agent-home-tab) .workflow-card-arrow {
  color: var(--ui-primary);
}

html[data-theme="light"] body:not(.agent-home-tab) .workflow-card-copy strong {
  color: var(--ui-text);
}

html[data-theme="light"] body:not(.agent-home-tab) .workflow-card-copy em,
html[data-theme="light"] body:not(.agent-home-tab) .workflow-catalog-empty {
  color: var(--ui-muted);
}

html[data-theme="light"] body:not(.agent-home-tab) .workflow-catalog-empty {
  border: 1px solid var(--ui-line);
  background: var(--ui-surface-solid);
}

html[data-theme="light"] body:not(.agent-home-tab) .tools-grid {
  border-radius: 22px;
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-tile {
  min-height: 132px;
  padding: 15px;
  border-color: var(--ui-line);
  border-radius: 20px;
  background: var(--ui-surface-solid);
  box-shadow: var(--ui-shadow-soft);
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-tile i {
  color: var(--ui-primary);
  background: var(--ui-primary-soft);
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-tile strong,
html[data-theme="light"] body:not(.agent-home-tab) .tool-tile span {
  color: var(--ui-text);
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-tile span {
  color: var(--ui-muted);
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-tile.primary,
html[data-theme="light"] body:not(.agent-home-tab) .tool-tile.promo-pack-tile {
  color: #fff;
  background: linear-gradient(135deg, #111827, #273653);
  border-color: #111827;
  box-shadow: 0 16px 30px rgba(17, 24, 39, 0.16);
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-tile.primary strong,
html[data-theme="light"] body:not(.agent-home-tab) .tool-tile.primary span,
html[data-theme="light"] body:not(.agent-home-tab) .tool-tile.promo-pack-tile strong,
html[data-theme="light"] body:not(.agent-home-tab) .tool-tile.promo-pack-tile span {
  color: #fff;
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-tile.primary span,
html[data-theme="light"] body:not(.agent-home-tab) .tool-tile.promo-pack-tile span {
  color: rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-tile.primary i,
html[data-theme="light"] body:not(.agent-home-tab) .tool-tile.promo-pack-tile i {
  color: var(--ui-primary);
  background: #fff;
}

html[data-theme="light"] body:not(.agent-home-tab) .primary-button {
  border: 0;
  background: var(--ui-navy);
  color: #fff;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.16);
}

html[data-theme="light"] body:not(.agent-home-tab) .primary-button:hover {
  background: #202b42;
}

html[data-theme="light"] body:not(.agent-home-tab) .soft-button,
html[data-theme="light"] body:not(.agent-home-tab) .ghost-button {
  color: var(--ui-text);
  background: var(--ui-surface-solid);
  border-color: var(--ui-line);
}

html[data-theme="light"] body:not(.agent-home-tab) .ghost-button {
  color: var(--ui-muted);
  background: transparent;
}

html[data-theme="light"] body:not(.agent-home-tab) .chip-button,
html[data-theme="light"] body:not(.agent-home-tab) .chip {
  border-color: var(--ui-line);
  background: var(--ui-surface-soft);
  color: var(--ui-muted);
}

html[data-theme="light"] body:not(.agent-home-tab) .chip.active,
html[data-theme="light"] body:not(.agent-home-tab) .chip-button.active {
  border-color: var(--ui-primary);
  background: var(--ui-primary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(98, 87, 233, 0.18);
}

html[data-theme="light"] body:not(.agent-home-tab) .field input,
html[data-theme="light"] body:not(.agent-home-tab) .field select,
html[data-theme="light"] body:not(.agent-home-tab) .field textarea,
html[data-theme="light"] body:not(.agent-home-tab) .subpage-body input,
html[data-theme="light"] body:not(.agent-home-tab) .subpage-body select,
html[data-theme="light"] body:not(.agent-home-tab) .subpage-body textarea {
  border-color: var(--ui-line);
  background: var(--ui-surface-solid);
  color: var(--ui-text);
  box-shadow: inset 0 1px 2px rgba(42, 54, 91, 0.025);
}

html[data-theme="light"] body:not(.agent-home-tab) .field input:focus,
html[data-theme="light"] body:not(.agent-home-tab) .field select:focus,
html[data-theme="light"] body:not(.agent-home-tab) .field textarea:focus,
html[data-theme="light"] body:not(.agent-home-tab) .subpage-body input:focus,
html[data-theme="light"] body:not(.agent-home-tab) .subpage-body select:focus,
html[data-theme="light"] body:not(.agent-home-tab) .subpage-body textarea:focus {
  border-color: rgba(98, 87, 233, 0.62);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(98, 87, 233, 0.1);
}

html[data-theme="light"] body:not(.agent-home-tab) .short-video-stage,
html[data-theme="light"] body:not(.agent-home-tab) .workbench-canvas {
  border-color: var(--ui-line);
  background: linear-gradient(180deg, #f9fbff, #eef3fb);
  box-shadow: var(--ui-shadow);
}

html[data-theme="light"] body:not(.agent-home-tab) .short-video-composer,
html[data-theme="light"] body:not(.agent-home-tab) .workbench-composer {
  border: 1px solid var(--ui-line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 -12px 28px rgba(54, 67, 106, 0.1);
}

html[data-theme="light"] body:not(.agent-home-tab) .short-video-prompt-pill,
html[data-theme="light"] body:not(.agent-home-tab) .workbench-prompt-pill,
html[data-theme="light"] body:not(.agent-home-tab) .workbench-setting-button {
  border-color: var(--ui-line);
  background: var(--ui-surface-soft);
  color: var(--ui-text);
}

html[data-theme="light"] body:not(.agent-home-tab) .short-video-generate-button,
html[data-theme="light"] body:not(.agent-home-tab) .workbench-generate-button {
  background: linear-gradient(135deg, var(--ui-primary), #7b6cf1);
  box-shadow: 0 10px 22px rgba(98, 87, 233, 0.26);
}

html[data-theme="light"] body:not(.agent-home-tab) .workbench-point-cost,
html[data-theme="light"] body:not(.agent-home-tab) .workbench-cost-hint,
html[data-theme="light"] body:not(.agent-home-tab) .workbench-model-pill {
  border-color: rgba(98, 87, 233, 0.18);
  background: var(--ui-primary-soft);
  color: var(--ui-primary-deep);
  box-shadow: none;
}

html[data-theme="light"] body:not(.agent-home-tab) .profile-summary {
  gap: 10px;
  padding: 14px;
  background: var(--ui-surface);
}

html[data-theme="light"] body:not(.agent-home-tab) .profile-line,
html[data-theme="light"] body:not(.agent-home-tab) .points-card {
  border: 1px solid var(--ui-line);
  background: var(--ui-surface-soft);
}

html[data-theme="light"] body:not(.agent-home-tab) .points-card {
  background: linear-gradient(135deg, #f1efff, #f8f9ff);
}

html[data-theme="light"] body:not(.agent-home-tab) .profile-store-tip,
html[data-theme="light"] body:not(.agent-home-tab) .store-completion-tip,
html[data-theme="light"] body:not(.agent-home-tab) .store-info-inline-tip,
html[data-theme="light"] body:not(.agent-home-tab) .workbench-next-guide,
html[data-theme="light"] body:not(.agent-home-tab) .feedback-hero {
  border-color: rgba(98, 87, 233, 0.16);
  background: linear-gradient(135deg, #f2f0ff, #fafaff);
}

html[data-theme="light"] body:not(.agent-home-tab) .profile-store-tip strong,
html[data-theme="light"] body:not(.agent-home-tab) .store-completion-tip strong,
html[data-theme="light"] body:not(.agent-home-tab) .store-info-inline-tip strong,
html[data-theme="light"] body:not(.agent-home-tab) .workbench-next-guide strong,
html[data-theme="light"] body:not(.agent-home-tab) .feedback-tip b,
html[data-theme="light"] body:not(.agent-home-tab) .profile-safety-card strong {
  color: var(--ui-primary-deep);
}

html[data-theme="light"] body:not(.agent-home-tab) .profile-safety-card {
  border-color: rgba(98, 87, 233, 0.14);
  background: linear-gradient(135deg, #f5f3ff, #fff);
}

html[data-theme="light"] body:not(.agent-home-tab) .menu-list {
  padding: 8px 18px;
}

html[data-theme="light"] body:not(.agent-home-tab) .menu-cell {
  color: var(--ui-text);
  border-bottom-color: var(--ui-line);
}

html[data-theme="light"] body:not(.agent-home-tab) .menu-cell em,
html[data-theme="light"] body:not(.agent-home-tab) .profile-line .summary-label,
html[data-theme="light"] body:not(.agent-home-tab) .points-card .summary-label {
  color: var(--ui-muted);
}

html[data-theme="light"] body:not(.agent-home-tab) .bottom-nav {
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 32px rgba(54, 67, 106, 0.12);
}

html[data-theme="light"] body:not(.agent-home-tab) .nav-button {
  color: var(--ui-muted);
}

html[data-theme="light"] body:not(.agent-home-tab) .nav-button.active {
  color: var(--ui-primary);
  background: var(--ui-primary-soft);
}

html[data-theme="light"] body:not(.agent-home-tab) .nav-button.active .nav-icon,
html[data-theme="light"] body:not(.agent-home-tab) .nav-button.nav-button-strong .nav-icon,
html[data-theme="light"] body:not(.agent-home-tab) .nav-button.nav-button-strong.active .nav-icon {
  color: var(--ui-primary);
}

html[data-theme="light"] body:not(.agent-home-tab) .modal-backdrop,
html[data-theme="light"] body:not(.agent-home-tab) .workflow-runner {
  background: rgba(28, 36, 61, 0.28);
  backdrop-filter: blur(10px) saturate(0.92);
}

html[data-theme="light"] body:not(.agent-home-tab) .drawer-sheet,
html[data-theme="light"] body:not(.agent-home-tab) .plan-sheet,
html[data-theme="light"] body:not(.agent-home-tab) .contact-sheet,
html[data-theme="light"] body:not(.agent-home-tab) .onboarding-sheet,
html[data-theme="light"] body:not(.agent-home-tab) .notice-sheet,
html[data-theme="light"] body:not(.agent-home-tab) .calendar-sheet,
html[data-theme="light"] body:not(.agent-home-tab) .calendar-style-sheet,
html[data-theme="light"] body:not(.agent-home-tab) .image-preview-sheet,
html[data-theme="light"] body:not(.agent-home-tab) .prompt-trace-sheet,
html[data-theme="light"] body:not(.agent-home-tab) .image-frame-sheet,
html[data-theme="light"] body:not(.agent-home-tab) .one-shot-source-sheet,
html[data-theme="light"] body:not(.agent-home-tab) .ecommerce-beautify-sheet,
html[data-theme="light"] body:not(.agent-home-tab) .store-agent-editor-sheet,
html[data-theme="light"] body:not(.agent-home-tab) .store-agent-mode-sheet,
html[data-theme="light"] body:not(.agent-home-tab) .logo-frame-editor-sheet,
html[data-theme="light"] body:not(.agent-home-tab) .workflow-runner-shell {
  border-color: var(--ui-line);
  background: linear-gradient(180deg, #ffffff, #f5f7fc);
  box-shadow: 0 24px 70px rgba(38, 49, 83, 0.2);
}

html[data-theme="light"] body:not(.agent-home-tab) .close-button,
html[data-theme="light"] body:not(.agent-home-tab) .icon-button {
  border: 1px solid var(--ui-line);
  background: var(--ui-surface-soft);
  color: var(--ui-muted);
}

html[data-theme="light"] body:not(.agent-home-tab) .custom-select-trigger,
html[data-theme="light"] body:not(.agent-home-tab) .store-link-toggle,
html[data-theme="light"] body:not(.agent-home-tab) .poster-reference-strip,
html[data-theme="light"] body:not(.agent-home-tab) .feedback-tip {
  border-color: var(--ui-line);
  background: var(--ui-surface-soft);
  color: var(--ui-text);
}

html[data-theme="light"] body:not(.agent-home-tab) .store-link-toggle.active .switch-track,
html[data-theme="light"] body:not(.agent-home-tab) .menu-cell-toggle.active .theme-switch-track {
  background: var(--ui-primary);
  border-color: var(--ui-primary);
}

html[data-theme="light"] body:not(.agent-home-tab) .store-link-toggle.active .switch-dot,
html[data-theme="light"] body:not(.agent-home-tab) .menu-cell-toggle.active .theme-switch-dot {
  box-shadow: 0 3px 10px rgba(98, 87, 233, 0.2);
}

@media (max-width: 520px) {
  html[data-theme="light"] body:not(.agent-home-tab) .app-shell {
    width: min(100%, 460px);
    margin: 0 auto;
    padding-top: 14px;
    border-radius: 0;
    box-shadow: none;
  }

  html[data-theme="light"] body:not(.agent-home-tab) .global-actions-bar {
    padding-inline: 4px;
  }
}

/* Page-specific leftovers: bring older flows onto the same visual system. */
html[data-theme="light"] body:not(.agent-home-tab) .subpage {
  background: transparent;
}

html[data-theme="light"] body:not(.agent-home-tab) .subpage-head {
  padding: 2px 0 10px;
  border-bottom: 1px solid var(--ui-line);
}

html[data-theme="light"] body:not(.agent-home-tab) .subpage-head h3 {
  color: var(--ui-text);
  font-size: 22px;
}

html[data-theme="light"] body:not(.agent-home-tab) .subpage-body {
  color: var(--ui-text);
}

html[data-theme="light"] body:not(.agent-home-tab) .marketing-composer,
html[data-theme="light"] body:not(.agent-home-tab) .planner-task-panel,
html[data-theme="light"] body:not(.agent-home-tab) .moments-editor-panel,
html[data-theme="light"] body:not(.agent-home-tab) .store-energy-panel,
html[data-theme="light"] body:not(.agent-home-tab) .promo-pack-panel {
  gap: 14px;
}

html[data-theme="light"] body:not(.agent-home-tab) .marketing-choice-row button.active,
html[data-theme="light"] body:not(.agent-home-tab) .store-energy-mode-row button.active,
html[data-theme="light"] body:not(.agent-home-tab) .planner-goal-switch button.active,
html[data-theme="light"] body:not(.agent-home-tab) .moments-template-row button.active,
html[data-theme="light"] body:not(.agent-home-tab) .moments-polish-row button.active {
  border-color: rgba(98, 87, 233, 0.28);
  background: var(--ui-primary-soft);
  color: var(--ui-primary-deep);
  box-shadow: inset 0 0 0 1px rgba(98, 87, 233, 0.06);
}

html[data-theme="light"] body:not(.agent-home-tab) .diagnosis-evidence-card,
html[data-theme="light"] body:not(.agent-home-tab) .store-energy-disclaimer,
html[data-theme="light"] body:not(.agent-home-tab) .planner-followup-note,
html[data-theme="light"] body:not(.agent-home-tab) .planner-publish-ready-card,
html[data-theme="light"] body:not(.agent-home-tab) .moments-editor-hero,
html[data-theme="light"] body:not(.agent-home-tab) .moments-publish-guide,
html[data-theme="light"] body:not(.agent-home-tab) .one-shot-current-guide,
html[data-theme="light"] body:not(.agent-home-tab) .one-shot-card .one-shot-current-guide {
  border-color: rgba(98, 87, 233, 0.14);
  background: linear-gradient(135deg, #f3f1ff, #ffffff);
}

html[data-theme="light"] body:not(.agent-home-tab) .diagnosis-photo-card {
  border-color: rgba(98, 87, 233, 0.26);
  background: rgba(98, 87, 233, 0.045);
}

html[data-theme="light"] body:not(.agent-home-tab) .diagnosis-photo-card.has-image {
  border-color: rgba(98, 87, 233, 0.4);
  background: #1a2031;
}

html[data-theme="light"] body:not(.agent-home-tab) .marketing-composer .action-row > .primary-button {
  box-shadow: 0 14px 28px rgba(98, 87, 233, 0.2);
}

html[data-theme="light"] body:not(.agent-home-tab) .owner-flow-strip span,
html[data-theme="light"] body:not(.agent-home-tab) .owner-tip,
html[data-theme="light"] body:not(.agent-home-tab) .moments-owner-tip,
html[data-theme="light"] body:not(.agent-home-tab) .stage-mini-guide.light span {
  border: 1px solid var(--ui-line);
  background: var(--ui-surface-soft);
  color: var(--ui-muted);
}

html[data-theme="light"] body:not(.agent-home-tab) .owner-tip strong,
html[data-theme="light"] body:not(.agent-home-tab) .owner-tip span {
  color: var(--ui-muted);
}

html[data-theme="light"] body:not(.agent-home-tab) .store-energy-hero,
html[data-theme="light"] body:not(.agent-home-tab) .planner-task-hero {
  border: 1px solid rgba(98, 87, 233, 0.14);
  background: linear-gradient(135deg, #f3f1ff, #ffffff);
}

html[data-theme="light"] body:not(.agent-home-tab) .store-energy-hero span,
html[data-theme="light"] body:not(.agent-home-tab) .planner-task-hero span,
html[data-theme="light"] body:not(.agent-home-tab) .planner-flow-card > span,
html[data-theme="light"] body:not(.agent-home-tab) .planner-material-head span,
html[data-theme="light"] body:not(.agent-home-tab) .planner-brief-grid span,
html[data-theme="light"] body:not(.agent-home-tab) .moments-editor-hero span,
html[data-theme="light"] body:not(.agent-home-tab) .moments-editor-field span,
html[data-theme="light"] body:not(.agent-home-tab) .moments-preview-card span {
  color: var(--ui-primary-deep);
}

html[data-theme="light"] body:not(.agent-home-tab) .planner-task-hero h4,
html[data-theme="light"] body:not(.agent-home-tab) .planner-simple-plan > strong,
html[data-theme="light"] body:not(.agent-home-tab) .planner-publish-ready-card strong {
  color: var(--ui-text);
}

html[data-theme="light"] body:not(.agent-home-tab) .planner-followup-note span,
html[data-theme="light"] body:not(.agent-home-tab) .planner-publish-ready-card p,
html[data-theme="light"] body:not(.agent-home-tab) .planner-publish-channel-row em,
html[data-theme="light"] body:not(.agent-home-tab) .planner-publish-channel-row b,
html[data-theme="light"] body:not(.agent-home-tab) .planner-strategy-card ul {
  color: var(--ui-muted);
}

html[data-theme="light"] body:not(.agent-home-tab) .planner-simple-plan,
html[data-theme="light"] body:not(.agent-home-tab) .planner-owner-route article,
html[data-theme="light"] body:not(.agent-home-tab) .planner-insight-card,
html[data-theme="light"] body:not(.agent-home-tab) .planner-brief-grid article,
html[data-theme="light"] body:not(.agent-home-tab) .planner-flow-card,
html[data-theme="light"] body:not(.agent-home-tab) .planner-publish-card,
html[data-theme="light"] body:not(.agent-home-tab) .planner-community-card,
html[data-theme="light"] body:not(.agent-home-tab) .planner-strategy-card,
html[data-theme="light"] body:not(.agent-home-tab) .planner-review-card,
html[data-theme="light"] body:not(.agent-home-tab) .planner-more-panel summary,
html[data-theme="light"] body:not(.agent-home-tab) .planner-publish-copy-card {
  border: 1px solid var(--ui-line);
  background: var(--ui-surface-solid);
  box-shadow: var(--ui-shadow-soft);
}

html[data-theme="light"] body:not(.agent-home-tab) .planner-simple-plan > span,
html[data-theme="light"] body:not(.agent-home-tab) .planner-insight-card b,
html[data-theme="light"] body:not(.agent-home-tab) .planner-goal-switch button.active {
  background: var(--ui-primary-soft);
  color: var(--ui-primary-deep);
}

html[data-theme="light"] body:not(.agent-home-tab) .planner-simple-plan i,
html[data-theme="light"] body:not(.agent-home-tab) .planner-next-action,
html[data-theme="light"] body:not(.agent-home-tab) .planner-next-action.started,
html[data-theme="light"] body:not(.agent-home-tab) .planner-owner-route article.active,
html[data-theme="light"] body:not(.agent-home-tab) .planner-publish-ready-action,
html[data-theme="light"] body:not(.agent-home-tab) .planner-publish-package-copy,
html[data-theme="light"] body:not(.agent-home-tab) .moments-edit-fab {
  background: linear-gradient(135deg, var(--ui-primary), #7c6df2);
  box-shadow: 0 12px 26px rgba(98, 87, 233, 0.2);
}

html[data-theme="light"] body:not(.agent-home-tab) .planner-publish-package,
html[data-theme="light"] body:not(.agent-home-tab) .planner-boss-brief,
html[data-theme="light"] body:not(.agent-home-tab) .planner-progress-card,
html[data-theme="light"] body:not(.agent-home-tab) .planner-publish-ready-tip,
html[data-theme="light"] body:not(.agent-home-tab) .promo-pack-hero,
html[data-theme="light"] body:not(.agent-home-tab) .one-shot-magic-hero {
  background: linear-gradient(135deg, #111827, #273653);
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.16);
}

html[data-theme="light"] body:not(.agent-home-tab) .planner-publish-package-head span,
html[data-theme="light"] body:not(.agent-home-tab) .promo-pack-hero span,
html[data-theme="light"] body:not(.agent-home-tab) .one-shot-magic-hero span {
  color: #dcd9ff;
}

html[data-theme="light"] body:not(.agent-home-tab) .moments-source-card,
html[data-theme="light"] body:not(.agent-home-tab) .moments-publish-guide,
html[data-theme="light"] body:not(.agent-home-tab) .moments-source-card,
html[data-theme="light"] body:not(.agent-home-tab) .promo-pack-photo-card,
html[data-theme="light"] body:not(.agent-home-tab) .promo-pack-field,
html[data-theme="light"] body:not(.agent-home-tab) .promo-pack-step,
html[data-theme="light"] body:not(.agent-home-tab) .store-energy-result {
  border-color: var(--ui-line);
  background: var(--ui-surface-solid);
  box-shadow: var(--ui-shadow-soft);
}

html[data-theme="light"] body:not(.agent-home-tab) .moments-edit-row,
html[data-theme="light"] body:not(.agent-home-tab) .moments-style-hint,
html[data-theme="light"] body:not(.agent-home-tab) .promo-pack-field span,
html[data-theme="light"] body:not(.agent-home-tab) .promo-pack-steps span {
  color: var(--ui-muted);
}

html[data-theme="light"] body:not(.agent-home-tab) .one-shot-hero {
  background: linear-gradient(135deg, #111827, #273653 58%, #5148bb);
  box-shadow: 0 20px 42px rgba(17, 24, 39, 0.18);
}

html[data-theme="light"] body:not(.agent-home-tab) .one-shot-hero-copy span {
  color: #dcd9ff;
}

html[data-theme="light"] body:not(.agent-home-tab) .one-shot-source-sheet [data-one-shot-source],
html[data-theme="light"] body:not(.agent-home-tab) .ecommerce-shoot-guide,
html[data-theme="light"] body:not(.agent-home-tab) .ecommerce-mode-list button.active {
  border-color: rgba(98, 87, 233, 0.16);
  background: #f3f1ff;
  box-shadow: none;
}

html[data-theme="light"] body:not(.agent-home-tab) .one-shot-source-sheet [data-one-shot-source]:first-child,
html[data-theme="light"] body:not(.agent-home-tab) .ecommerce-camera-button {
  background: linear-gradient(135deg, var(--ui-primary), #7c6df2);
  box-shadow: 0 14px 28px rgba(98, 87, 233, 0.22);
}

html[data-theme="light"] body:not(.agent-home-tab) .one-shot-prompt-button,
html[data-theme="light"] body:not(.agent-home-tab) .one-shot-play-button.active {
  border-color: rgba(98, 87, 233, 0.18);
  background: var(--ui-primary-soft);
  color: var(--ui-primary-deep);
}

html[data-theme="light"] body:not(.agent-home-tab) .one-shot-play-card.active {
  outline-color: rgba(98, 87, 233, 0.5);
}

html[data-theme="light"] body:not(.agent-home-tab) .workflow-runner-head span,
html[data-theme="light"] body:not(.agent-home-tab) .workflow-runner-steps span.active,
html[data-theme="light"] body:not(.agent-home-tab) .workflow-runner-result-label,
html[data-theme="light"] body:not(.agent-home-tab) .workflow-runner-result-actions button {
  color: var(--ui-primary-deep);
}

html[data-theme="light"] body:not(.agent-home-tab) .workflow-runner-result-version.is-edit-source,
html[data-theme="light"] body:not(.agent-home-tab) .workflow-runner-frame-toggle.active {
  border-color: rgba(98, 87, 233, 0.44);
  background: var(--ui-primary-soft);
  box-shadow: 0 8px 22px rgba(98, 87, 233, 0.1);
}

html[data-theme="light"] body:not(.agent-home-tab) .workflow-runner-result-current,
html[data-theme="light"] body:not(.agent-home-tab) .workflow-runner-frame-action,
html[data-theme="light"] body:not(.agent-home-tab) .workflow-runner-start {
  background: var(--ui-primary);
  box-shadow: 0 8px 18px rgba(98, 87, 233, 0.18);
}

html[data-theme="light"] body:not(.agent-home-tab) .workflow-runner-result-select,
html[data-theme="light"] body:not(.agent-home-tab) .workflow-runner-edit-panel {
  border-color: rgba(98, 87, 233, 0.18);
  background: var(--ui-primary-soft);
  color: var(--ui-text);
}

html[data-theme="light"] body:not(.agent-home-tab) .calendar-intent-card,
html[data-theme="light"] body:not(.agent-home-tab) .calendar-style-option.active,
html[data-theme="light"] body:not(.agent-home-tab) .calendar-item.is-next {
  border-color: rgba(98, 87, 233, 0.2);
  background: linear-gradient(135deg, #f3f1ff, #ffffff);
  box-shadow: 0 12px 26px rgba(98, 87, 233, 0.1);
}

html[data-theme="light"] body:not(.agent-home-tab) .calendar-item.is-next .calendar-date {
  background: linear-gradient(145deg, var(--ui-primary), #7c6df2);
}

html[data-theme="light"] body:not(.agent-home-tab) .calendar-date,
html[data-theme="light"] body:not(.agent-home-tab) .calendar-style-option.active,
html[data-theme="light"] body:not(.agent-home-tab) .calendar-tags span {
  background: var(--ui-primary-soft);
}

html[data-theme="light"] body:not(.agent-home-tab) .calendar-date strong,
html[data-theme="light"] body:not(.agent-home-tab) .calendar-intent-card span,
html[data-theme="light"] body:not(.agent-home-tab) .calendar-style-option.active strong {
  color: var(--ui-primary-deep);
}

html[data-theme="light"] body:not(.agent-home-tab) .calendar-item-main h4 em {
  background: var(--ui-primary);
}

html[data-theme="light"] body:not(.agent-home-tab) .short-video-feature-grid button.active,
html[data-theme="light"] body:not(.agent-home-tab) .short-video-settings .chip.active,
html[data-theme="light"] body:not(.agent-home-tab) .short-video-ratio-grid .chip.active,
html[data-theme="light"] body:not(.agent-home-tab) .workbench-result-tool.primary .workbench-result-tool-icon {
  border-color: rgba(98, 87, 233, 0.26);
  background: var(--ui-primary-soft);
  color: var(--ui-primary-deep);
}

html[data-theme="light"] body:not(.agent-home-tab) .short-video-tool-button.active,
html[data-theme="light"] body:not(.agent-home-tab) .short-video-tool-button:hover {
  color: var(--ui-primary-deep);
  background: var(--ui-primary-soft);
}

/* Design-system pass: typography, spacing, control geometry, icon rhythm, and proportions. */
html[data-theme="light"] body:not(.agent-home-tab) {
  --ds-font: "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", "Segoe UI", sans-serif;
  --ds-space-1: 4px;
  --ds-space-2: 8px;
  --ds-space-3: 12px;
  --ds-space-4: 16px;
  --ds-space-5: 20px;
  --ds-space-6: 24px;
  --ds-radius-control: 14px;
  --ds-radius-card: 20px;
  --ds-radius-sheet: 24px;
  font-family: var(--ds-font);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

html[data-theme="light"] body:not(.agent-home-tab) button,
html[data-theme="light"] body:not(.agent-home-tab) input,
html[data-theme="light"] body:not(.agent-home-tab) select,
html[data-theme="light"] body:not(.agent-home-tab) textarea {
  font-family: var(--ds-font);
  letter-spacing: 0;
}

html[data-theme="light"] body:not(.agent-home-tab) .app-shell {
  padding: 18px 18px calc(112px + env(safe-area-inset-bottom, 0px));
  border-radius: 28px;
}

html[data-theme="light"] body:not(.agent-home-tab) .screen,
html[data-theme="light"] body:not(.agent-home-tab) .tab-panel {
  gap: var(--ds-space-4);
}

html[data-theme="light"] body:not(.agent-home-tab) .global-actions-bar {
  min-height: 56px;
  gap: var(--ds-space-2);
  margin-bottom: var(--ds-space-2);
}

html[data-theme="light"] body:not(.agent-home-tab) .global-actions-bar h2 {
  font-size: 26px;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: 0;
}

html[data-theme="light"] body:not(.agent-home-tab) .panel-head h2,
html[data-theme="light"] body:not(.agent-home-tab) .app-hub-hero h2,
html[data-theme="light"] body:not(.agent-home-tab) .workflow-catalog-head h2 {
  font-size: 28px;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: 0;
}

html[data-theme="light"] body:not(.agent-home-tab) .app-hub-hero p,
html[data-theme="light"] body:not(.agent-home-tab) .workflow-catalog-head p {
  font-size: 13px;
  line-height: 1.55;
}

html[data-theme="light"] body:not(.agent-home-tab) .surface,
html[data-theme="light"] body:not(.agent-home-tab) .composer-card,
html[data-theme="light"] body:not(.agent-home-tab) .result-card,
html[data-theme="light"] body:not(.agent-home-tab) .mall-toolbar,
html[data-theme="light"] body:not(.agent-home-tab) .menu-list,
html[data-theme="light"] body:not(.agent-home-tab) .subpage-panel,
html[data-theme="light"] body:not(.agent-home-tab) .one-shot-card,
html[data-theme="light"] body:not(.agent-home-tab) .profile-summary,
html[data-theme="light"] body:not(.agent-home-tab) .profile-safety-card {
  border-radius: var(--ds-radius-card);
}

html[data-theme="light"] body:not(.agent-home-tab) .composer-card,
html[data-theme="light"] body:not(.agent-home-tab) .result-card,
html[data-theme="light"] body:not(.agent-home-tab) .mall-toolbar,
html[data-theme="light"] body:not(.agent-home-tab) .subpage-panel {
  padding: var(--ds-space-4);
}

html[data-theme="light"] body:not(.agent-home-tab) .primary-button,
html[data-theme="light"] body:not(.agent-home-tab) .soft-button,
html[data-theme="light"] body:not(.agent-home-tab) .ghost-button,
html[data-theme="light"] body:not(.agent-home-tab) .mini-button,
html[data-theme="light"] body:not(.agent-home-tab) .close-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-2);
  padding: 0 var(--ds-space-4);
  border-radius: var(--ds-radius-control);
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
}

html[data-theme="light"] body:not(.agent-home-tab) .small-button {
  min-height: 36px;
  padding-inline: var(--ds-space-3);
  border-radius: 11px;
  font-size: 12px;
}

html[data-theme="light"] body:not(.agent-home-tab) .icon-button {
  width: 40px;
  height: 40px;
  min-height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 13px;
  font-size: 0;
}

html[data-theme="light"] body:not(.agent-home-tab) .icon-button .app-icon,
html[data-theme="light"] body:not(.agent-home-tab) .close-button .app-icon {
  width: 18px;
  height: 18px;
}

html[data-theme="light"] body:not(.agent-home-tab) .field {
  gap: var(--ds-space-2);
}

html[data-theme="light"] body:not(.agent-home-tab) .field > span,
html[data-theme="light"] body:not(.agent-home-tab) .settings-group > span,
html[data-theme="light"] body:not(.agent-home-tab) .marketing-form-section span {
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

html[data-theme="light"] body:not(.agent-home-tab) .field input,
html[data-theme="light"] body:not(.agent-home-tab) .field select,
html[data-theme="light"] body:not(.agent-home-tab) .field textarea,
html[data-theme="light"] body:not(.agent-home-tab) .subpage-body input,
html[data-theme="light"] body:not(.agent-home-tab) .subpage-body select,
html[data-theme="light"] body:not(.agent-home-tab) .subpage-body textarea {
  min-height: 48px;
  padding: 0 14px;
  border-radius: var(--ds-radius-control);
  font-size: 14px;
  line-height: 1.5;
}

html[data-theme="light"] body:not(.agent-home-tab) .field textarea,
html[data-theme="light"] body:not(.agent-home-tab) .subpage-body textarea {
  min-height: 112px;
  padding-block: 12px;
}

html[data-theme="light"] body:not(.agent-home-tab) .chip-button,
html[data-theme="light"] body:not(.agent-home-tab) .chip,
html[data-theme="light"] body:not(.agent-home-tab) .store-chip,
html[data-theme="light"] body:not(.agent-home-tab) .plan-badge,
html[data-theme="light"] body:not(.agent-home-tab) .meta-chip,
html[data-theme="light"] body:not(.agent-home-tab) .shop-chip,
html[data-theme="light"] body:not(.agent-home-tab) .status-chip {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
}

html[data-theme="light"] body:not(.agent-home-tab) .tools-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ds-space-3);
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-tile {
  min-height: 136px;
  display: grid;
  align-content: space-between;
  gap: var(--ds-space-2);
  padding: var(--ds-space-4);
  border-radius: var(--ds-radius-card);
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-tile i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 0;
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-tile i .app-icon {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-tile strong {
  font-size: 16px;
  line-height: 1.25;
  font-weight: 850;
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-tile span {
  min-height: 34px;
  font-size: 12px;
  line-height: 1.45;
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-tile.promo-pack-tile {
  min-height: 122px;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: var(--ds-space-3);
  align-items: center;
  align-content: center;
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-tile.promo-pack-tile i {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

html[data-theme="light"] body:not(.agent-home-tab) .workflow-card {
  grid-template-columns: 76px minmax(0, 1fr) 32px;
  min-height: 96px;
  gap: var(--ds-space-3);
  padding: 10px;
  border-radius: var(--ds-radius-card);
}

html[data-theme="light"] body:not(.agent-home-tab) .workflow-card-image {
  width: 76px;
  height: 76px;
  border-radius: 14px;
}

html[data-theme="light"] body:not(.agent-home-tab) .workflow-card-copy {
  gap: 3px;
}

html[data-theme="light"] body:not(.agent-home-tab) .workflow-card-copy strong {
  font-size: 15px;
  line-height: 1.3;
  font-weight: 850;
  white-space: normal;
}

html[data-theme="light"] body:not(.agent-home-tab) .workflow-card-copy em {
  font-size: 12px;
  line-height: 1.4;
  white-space: normal;
}

html[data-theme="light"] body:not(.agent-home-tab) .workflow-card-arrow {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ui-primary-soft);
  font-size: 22px;
}

html[data-theme="light"] body:not(.agent-home-tab) .short-video-stage,
html[data-theme="light"] body:not(.agent-home-tab) .workbench-canvas {
  min-height: min(54svh, 520px);
  padding: 20px 16px 24px;
  border-radius: var(--ds-radius-card);
}

html[data-theme="light"] body:not(.agent-home-tab) .short-video-composer,
html[data-theme="light"] body:not(.agent-home-tab) .workbench-composer {
  gap: var(--ds-space-2);
  padding: var(--ds-space-3);
  border-radius: var(--ds-radius-card);
}

html[data-theme="light"] body:not(.agent-home-tab) .short-video-toolbar,
html[data-theme="light"] body:not(.agent-home-tab) .workbench-main-row {
  gap: var(--ds-space-2);
}

html[data-theme="light"] body:not(.agent-home-tab) .short-video-tool-button,
html[data-theme="light"] body:not(.agent-home-tab) .workbench-setting-button,
html[data-theme="light"] body:not(.agent-home-tab) .workbench-generate-button {
  min-width: 40px;
  min-height: 40px;
  border-radius: 12px;
}

html[data-theme="light"] body:not(.agent-home-tab) .workbench-generate-button {
  width: 44px;
  height: 44px;
}

html[data-theme="light"] body:not(.agent-home-tab) .profile-line,
html[data-theme="light"] body:not(.agent-home-tab) .points-card {
  min-height: 64px;
  padding: 12px 14px;
  border-radius: 16px;
}

html[data-theme="light"] body:not(.agent-home-tab) .profile-line strong,
html[data-theme="light"] body:not(.agent-home-tab) .points-card strong {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 850;
}

html[data-theme="light"] body:not(.agent-home-tab) .menu-list {
  gap: 0;
  padding: 4px 16px;
}

html[data-theme="light"] body:not(.agent-home-tab) .menu-cell {
  min-height: 52px;
  padding: 12px 0;
}

html[data-theme="light"] body:not(.agent-home-tab) .menu-cell span {
  font-size: 14px;
  font-weight: 650;
}

html[data-theme="light"] body:not(.agent-home-tab) .bottom-nav {
  min-height: 72px;
  gap: 4px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  border-radius: 22px;
}

html[data-theme="light"] body:not(.agent-home-tab) .nav-button,
html[data-theme="light"] body:not(.agent-home-tab) .nav-button.nav-button-strong,
html[data-theme="light"] body:not(.agent-home-tab) .nav-button.nav-button-strong.active {
  min-height: 52px;
  gap: 4px;
  border-radius: 15px;
}

html[data-theme="light"] body:not(.agent-home-tab) .nav-button .nav-icon,
html[data-theme="light"] body:not(.agent-home-tab) .nav-button.nav-button-strong .nav-icon,
html[data-theme="light"] body:not(.agent-home-tab) .nav-button.nav-button-strong.active .nav-icon {
  width: 22px;
  height: 22px;
  border-radius: 0;
  color: currentColor;
  background: transparent;
  box-shadow: none;
  transform: none;
}

html[data-theme="light"] body:not(.agent-home-tab) .nav-button em {
  font-size: 11px;
  line-height: 1.2;
  font-weight: 650;
}

html[data-theme="light"] body:not(.agent-home-tab) .nav-button.nav-button-strong .nav-icon::before {
  width: 22px;
  height: 22px;
}

html[data-theme="light"] body:not(.agent-home-tab) .drawer-sheet,
html[data-theme="light"] body:not(.agent-home-tab) .plan-sheet,
html[data-theme="light"] body:not(.agent-home-tab) .contact-sheet,
html[data-theme="light"] body:not(.agent-home-tab) .onboarding-sheet,
html[data-theme="light"] body:not(.agent-home-tab) .notice-sheet,
html[data-theme="light"] body:not(.agent-home-tab) .calendar-sheet,
html[data-theme="light"] body:not(.agent-home-tab) .calendar-style-sheet,
html[data-theme="light"] body:not(.agent-home-tab) .image-preview-sheet,
html[data-theme="light"] body:not(.agent-home-tab) .prompt-trace-sheet,
html[data-theme="light"] body:not(.agent-home-tab) .image-frame-sheet,
html[data-theme="light"] body:not(.agent-home-tab) .one-shot-source-sheet,
html[data-theme="light"] body:not(.agent-home-tab) .ecommerce-beautify-sheet,
html[data-theme="light"] body:not(.agent-home-tab) .workflow-runner-shell {
  border-radius: var(--ds-radius-sheet);
}

html[data-theme="light"] body:not(.agent-home-tab) .drawer-head h3,
html[data-theme="light"] body:not(.agent-home-tab) .notice-sheet-head h3,
html[data-theme="light"] body:not(.agent-home-tab) .calendar-sheet-head h3,
html[data-theme="light"] body:not(.agent-home-tab) .calendar-style-head h3,
html[data-theme="light"] body:not(.agent-home-tab) .prompt-trace-head h3,
html[data-theme="light"] body:not(.agent-home-tab) .ecommerce-beautify-head h3,
html[data-theme="light"] body:not(.agent-home-tab) .workflow-runner-head h2 {
  font-size: 21px;
  line-height: 1.25;
  font-weight: 850;
  letter-spacing: 0;
}

/* Micro-polish: shared icon geometry, content baselines, and narrow-screen resilience. */
html[data-theme="light"] body:not(.agent-home-tab) :where(button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(98, 87, 233, 0.2);
  outline-offset: 2px;
}

html[data-theme="light"] body:not(.agent-home-tab) :where(button, .chip-button, .chip, .tool-tile, .workflow-card, .menu-cell) {
  -webkit-tap-highlight-color: transparent;
}

html[data-theme="light"] body:not(.agent-home-tab) :where(.primary-button, .soft-button, .ghost-button, .mini-button, .close-button, .icon-button, .chip-button, .chip, .tool-tile, .workflow-card, .menu-cell, .short-video-tool-button, .workbench-setting-button, .workbench-generate-button) {
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

html[data-theme="light"] body:not(.agent-home-tab) :where(.primary-button, .soft-button, .ghost-button, .mini-button, .close-button, .icon-button, .chip-button, .chip, .short-video-tool-button, .workbench-setting-button, .workbench-generate-button):active {
  transform: translateY(1px) scale(0.985);
}

html[data-theme="light"] body:not(.agent-home-tab) .app-icon {
  flex: none;
  display: block;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-tile,
html[data-theme="light"] body:not(.agent-home-tab) .workflow-card,
html[data-theme="light"] body:not(.agent-home-tab) .menu-cell,
html[data-theme="light"] body:not(.agent-home-tab) .profile-line,
html[data-theme="light"] body:not(.agent-home-tab) .points-card {
  min-width: 0;
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-tile strong,
html[data-theme="light"] body:not(.agent-home-tab) .tool-tile span,
html[data-theme="light"] body:not(.agent-home-tab) .workflow-card-copy,
html[data-theme="light"] body:not(.agent-home-tab) .workflow-card-copy strong,
html[data-theme="light"] body:not(.agent-home-tab) .workflow-card-copy em,
html[data-theme="light"] body:not(.agent-home-tab) .menu-cell > span,
html[data-theme="light"] body:not(.agent-home-tab) .profile-line > div {
  min-width: 0;
  overflow-wrap: anywhere;
}

html[data-theme="light"] body:not(.agent-home-tab) .workflow-card-copy strong,
html[data-theme="light"] body:not(.agent-home-tab) .workflow-card-copy em {
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-theme="light"] body:not(.agent-home-tab) .workflow-card-arrow {
  flex: none;
  color: var(--ui-primary-deep);
  font-size: 0;
  box-shadow: inset 0 0 0 1px rgba(98, 87, 233, 0.08);
}

html[data-theme="light"] body:not(.agent-home-tab) .workflow-card-arrow .app-icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.1;
}

html[data-theme="light"] body:not(.agent-home-tab) .workflow-card:hover,
html[data-theme="light"] body:not(.agent-home-tab) .tool-tile:hover,
html[data-theme="light"] body:not(.agent-home-tab) .menu-cell:hover {
  border-color: rgba(98, 87, 233, 0.18);
  box-shadow: 0 12px 26px rgba(54, 67, 106, 0.08);
}

html[data-theme="light"] body:not(.agent-home-tab) .workbench-result-tool-icon,
html[data-theme="light"] body:not(.agent-home-tab) .short-video-result-tool .workbench-result-tool-icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--ui-line);
  color: var(--ui-primary-deep);
  background: var(--ui-primary-soft);
  box-shadow: 0 6px 16px rgba(54, 67, 106, 0.08);
}

html[data-theme="light"] body:not(.agent-home-tab) .workbench-result-tool-icon .app-icon,
html[data-theme="light"] body:not(.agent-home-tab) .short-video-result-tool .workbench-result-tool-icon .app-icon {
  width: 17px;
  height: 17px;
  stroke-width: 1.9;
}

html[data-theme="light"] body:not(.agent-home-tab) .workbench-result-tool:not(.primary):hover .workbench-result-tool-icon,
html[data-theme="light"] body:not(.agent-home-tab) .short-video-result-tool:not(.primary):hover .workbench-result-tool-icon {
  border-color: rgba(98, 87, 233, 0.24);
  background: #eae8ff;
}

html[data-theme="light"] body:not(.agent-home-tab) .short-video-result-actions {
  gap: 10px;
}

html[data-theme="light"] body:not(.agent-home-tab) .short-video-result-tool {
  min-width: 0;
  gap: 5px;
  color: var(--ui-text);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
}

html[data-theme="light"] body:not(.agent-home-tab) .short-video-result-tool > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-theme="light"] body:not(.agent-home-tab) .short-video-tool-button,
html[data-theme="light"] body:not(.agent-home-tab) .workbench-setting-button {
  min-width: 44px;
  padding-inline: 12px;
  color: var(--ui-muted);
  font-size: 13px;
  font-weight: 750;
}

html[data-theme="light"] body:not(.agent-home-tab) .short-video-tool-button svg,
html[data-theme="light"] body:not(.agent-home-tab) .workbench-setting-button svg,
html[data-theme="light"] body:not(.agent-home-tab) .workbench-generate-button svg {
  flex: none;
  width: 17px;
  height: 17px;
}

html[data-theme="light"] body:not(.agent-home-tab) .short-video-toolbar,
html[data-theme="light"] body:not(.agent-home-tab) .workbench-main-row,
html[data-theme="light"] body:not(.agent-home-tab) .workbench-result-actions,
html[data-theme="light"] body:not(.agent-home-tab) .short-video-result-actions {
  min-width: 0;
}

html[data-theme="light"] body:not(.agent-home-tab) .bottom-nav .nav-button em {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 380px) {
  html[data-theme="light"] body:not(.agent-home-tab) .app-shell {
    padding-inline: 14px;
  }

  html[data-theme="light"] body:not(.agent-home-tab) .global-actions-bar h2 {
    font-size: 23px;
  }

  html[data-theme="light"] body:not(.agent-home-tab) .tool-tile {
    min-height: 126px;
    padding: 13px;
  }

  html[data-theme="light"] body:not(.agent-home-tab) .tool-tile strong {
    font-size: 15px;
  }

  html[data-theme="light"] body:not(.agent-home-tab) .workflow-card {
    grid-template-columns: 64px minmax(0, 1fr) 30px;
    gap: 9px;
    padding: 9px;
  }

  html[data-theme="light"] body:not(.agent-home-tab) .workflow-card-image {
    width: 64px;
    height: 64px;
  }

  html[data-theme="light"] body:not(.agent-home-tab) .workflow-card-copy strong {
    font-size: 14px;
  }

  html[data-theme="light"] body:not(.agent-home-tab) .workflow-card-copy em {
    font-size: 11px;
  }

  html[data-theme="light"] body:not(.agent-home-tab) .workflow-card-arrow {
    width: 30px;
    height: 30px;
  }

  html[data-theme="light"] body:not(.agent-home-tab) .bottom-nav {
    padding-inline: 6px;
  }

  html[data-theme="light"] body:not(.agent-home-tab) .nav-button em {
    font-size: 10px;
  }
}

/* Product flow system: every creation path shares the same page, type and control language. */
html[data-theme="light"] body:not(.agent-home-tab) {
  font-family: var(--ds-font);
  color: var(--ui-text);
  background: #eef2f8;
}

html[data-theme="light"] body:not(.agent-home-tab) :where(h1, h2, h3, h4, strong, button, input, textarea, select) {
  letter-spacing: 0;
}

html[data-theme="light"] body:not(.agent-home-tab) :where(.screen, .tools-hub, .profile-screen, .workflow-catalog-panel) :where(h2, h3) {
  color: var(--ui-text);
  font-weight: 850;
}

html[data-theme="light"] body:not(.agent-home-tab) :where(.screen, .tools-hub, .profile-screen) :where(p, small, em) {
  color: var(--ui-muted);
}

html[data-theme="light"] body:not(.agent-home-tab) :where(.tool-secondary-card, .tool-operation-card, .tool-workflow-card, .workflow-card, .menu-cell) {
  border-radius: var(--ds-radius-control);
  border-color: var(--ui-line);
  box-shadow: none;
}

html[data-theme="light"] body.workflow-runner-active .workflow-runner,
html[data-theme="light"] body.xiaohongshu-assistant-active .xiaohongshu-assistant-flow,
html[data-theme="light"] body.cargo-video-active .cargo-video-flow {
  background: rgba(15, 23, 42, 0.26);
}

html[data-theme="light"] body.workflow-runner-active .workflow-runner-shell,
html[data-theme="light"] body.xiaohongshu-assistant-active .xiaohongshu-assistant-shell,
html[data-theme="light"] body.cargo-video-active .cargo-video-shell {
  width: min(100%, 560px);
  background: var(--ui-page);
  color: var(--ui-text);
}

html[data-theme="light"] body.workflow-runner-active .workflow-runner-head,
html[data-theme="light"] body.xiaohongshu-assistant-active .xiaohongshu-assistant-header,
html[data-theme="light"] body.cargo-video-active .cargo-video-header {
  min-height: 72px;
  border-bottom: 1px solid var(--ui-line);
  background: rgba(248, 250, 255, 0.96);
}

html[data-theme="light"] body.workflow-runner-active .workflow-runner-head h2,
html[data-theme="light"] body.xiaohongshu-assistant-active .xiaohongshu-assistant-header h2,
html[data-theme="light"] body.cargo-video-active .cargo-video-header h2 {
  color: var(--ui-text);
  font-size: 21px;
  font-weight: 850;
  line-height: 1.2;
}

html[data-theme="light"] body.workflow-runner-active .workflow-runner-head span,
html[data-theme="light"] body.workflow-runner-active .workflow-runner-steps span.active,
html[data-theme="light"] body.xiaohongshu-assistant-active .xiaohongshu-assistant-step.is-active strong,
html[data-theme="light"] body.xiaohongshu-assistant-active .xiaohongshu-assistant-step.is-done strong {
  color: var(--ui-primary-deep);
}

html[data-theme="light"] body.workflow-runner-active .workflow-runner-body,
html[data-theme="light"] body.xiaohongshu-assistant-active .xiaohongshu-assistant-body,
html[data-theme="light"] body.cargo-video-active .cargo-video-body {
  gap: 12px;
  padding-inline: 18px;
}

html[data-theme="light"] body.workflow-runner-active .workflow-runner-intro {
  border: 1px solid var(--ui-line);
  background: var(--ui-surface-solid);
  box-shadow: none;
}

html[data-theme="light"] body.workflow-runner-active .workflow-runner-intro strong {
  color: var(--ui-primary-deep);
  font-size: 12px;
}

html[data-theme="light"] body.workflow-runner-active .workflow-runner-intro p {
  margin-top: 4px;
  color: var(--ui-muted);
  font-size: 12px;
  line-height: 1.45;
}

html[data-theme="light"] body.workflow-runner-active .workflow-skill-panel,
html[data-theme="light"] body.workflow-runner-active .workflow-beautify-panel,
html[data-theme="light"] body.xiaohongshu-assistant-active :where(.xhs-flow-intro, .xhs-flow-panel, .xhs-flow-summary),
html[data-theme="light"] body.cargo-video-active .cargo-panel {
  border: 1px solid var(--ui-line);
  border-radius: var(--ds-radius-control);
  background: var(--ui-surface-solid);
  box-shadow: none;
}

html[data-theme="light"] body.workflow-runner-active .workflow-skill-panel-head p,
html[data-theme="light"] body.xiaohongshu-assistant-active :where(.xhs-flow-intro p, .xhs-flow-panel-head p),
html[data-theme="light"] body.cargo-video-active .cargo-panel > p {
  display: none;
}

html[data-theme="light"] body.workflow-runner-active .workflow-skill-panel-head,
html[data-theme="light"] body.workflow-runner-active .workflow-panel-heading {
  margin-bottom: 14px;
}

html[data-theme="light"] body.workflow-runner-active :where(.workflow-skill-panel-head strong, .workflow-panel-heading strong),
html[data-theme="light"] body.xiaohongshu-assistant-active :where(.xhs-flow-intro h3, .xhs-flow-panel-head h3),
html[data-theme="light"] body.cargo-video-active .cargo-panel h3 {
  color: var(--ui-text);
  font-size: 17px;
  font-weight: 850;
  line-height: 1.3;
}

html[data-theme="light"] body.workflow-runner-active .workflow-skill-field :where(input, textarea, select),
html[data-theme="light"] body.xiaohongshu-assistant-active :where(.xhs-flow-textarea, .xhs-copy-editor textarea),
html[data-theme="light"] body.cargo-video-active :where(input, textarea, select) {
  border-color: var(--ui-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  color: var(--ui-text);
}

html[data-theme="light"] body.workflow-runner-active .workflow-beautify-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

html[data-theme="light"] body.workflow-runner-active .workflow-beautify-mode {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px 8px;
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  background: #fff;
  color: var(--ui-text);
  text-align: left;
}

html[data-theme="light"] body.workflow-runner-active .workflow-beautify-mode strong {
  font-size: 13px;
  font-weight: 850;
}

html[data-theme="light"] body.workflow-runner-active .workflow-beautify-mode small {
  color: var(--ui-muted);
  font-size: 11px;
}

html[data-theme="light"] body.workflow-runner-active .workflow-beautify-mode.active {
  border-color: rgba(98, 87, 233, 0.38);
  background: var(--ui-primary-soft);
  color: var(--ui-primary-deep);
}

html[data-theme="light"] body.workflow-runner-active .workflow-runner-footer,
html[data-theme="light"] body.xiaohongshu-assistant-active .xiaohongshu-assistant-footer,
html[data-theme="light"] body.cargo-video-active .cargo-bottom-bar {
  border-top: 1px solid var(--ui-line);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -8px 24px rgba(23, 31, 53, 0.06);
}

html[data-theme="light"] body.workflow-runner-active :where(.workflow-runner-start, .workflow-runner-frame-action),
html[data-theme="light"] body.xiaohongshu-assistant-active :where(.xhs-primary-flow-action, .xhs-footer-next),
html[data-theme="light"] body.cargo-video-active :where(.cargo-primary-button, .cargo-bottom-next) {
  border: 0;
  background: var(--ui-primary);
  color: #fff;
  box-shadow: none;
}

html[data-theme="light"] body.cargo-video-active :where(.cargo-primary-action, .cargo-manager-primary) {
  border: 0;
  background: var(--ui-primary);
  color: #fff;
  box-shadow: none;
}

html[data-theme="light"] body.cargo-video-active :where(.cargo-type-card.is-selected, .cargo-duration-switch button.is-selected, .cargo-export-grid button.is-selected, .cargo-script-variants button.is-selected) {
  border-color: rgba(98, 87, 233, 0.42);
  background: var(--ui-primary-soft);
  color: var(--ui-primary-deep);
  box-shadow: none;
}

html[data-theme="light"] body.xiaohongshu-assistant-active .xiaohongshu-assistant-shell {
  --accent: var(--ui-primary);
  --accent-text: var(--ui-primary-deep);
}

html[data-theme="light"] body.xiaohongshu-assistant-active .xiaohongshu-assistant-stepper {
  padding: 12px 18px 18px;
  background: var(--ui-page);
}

html[data-theme="light"] body.xiaohongshu-assistant-active .xiaohongshu-assistant-header p,
html[data-theme="light"] body.xiaohongshu-assistant-active .xhs-flow-intro > span {
  display: none;
}

html[data-theme="light"] body.xiaohongshu-assistant-active .xhs-flow-intro {
  padding: 16px;
  background: var(--ui-surface-solid);
}

html[data-theme="light"] body.xiaohongshu-assistant-active .xhs-flow-panel {
  padding: 16px;
}

html[data-theme="light"] body.cargo-video-active .cargo-stepper {
  background: var(--ui-page);
}

@media (max-width: 380px) {
  html[data-theme="light"] body.workflow-runner-active .workflow-beautify-mode-grid {
    grid-template-columns: 1fr;
  }
}

/* Keep the global navigation aligned with the four primary destinations. */
html[data-theme="light"] .bottom-nav {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

html[data-theme="light"] body:not(.agent-home-tab) .tools-skill-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

html[data-theme="light"] body:not(.agent-home-tab) .tools-skill-grid .tool-feature-card {
  min-height: 148px;
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-feature-card-poster {
  background: linear-gradient(145deg, #43378f, #675be5);
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-feature-card-flyer {
  background: linear-gradient(145deg, #0b6674, #2694a1);
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-feature-card-illustration {
  background: linear-gradient(145deg, #c25c8e, #ef9b67);
}

@media (max-width: 430px) {
  html[data-theme="light"] body:not(.agent-home-tab) .tools-skill-grid {
    grid-template-columns: 1fr;
  }

  html[data-theme="light"] body:not(.agent-home-tab) .tools-skill-grid .tool-feature-card {
    min-height: 118px;
  }
}

/* Configurable Skill workflow: short form first, editable prompt second, generation last. */
html[data-theme="light"] body:not(.agent-home-tab) .workflow-skill-panel {
  display: grid;
  gap: 14px;
  margin: 14px 0;
  padding: 16px;
  border: 1px solid var(--ui-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
}

html[data-theme="light"] body:not(.agent-home-tab) .workflow-skill-panel-head,
html[data-theme="light"] body:not(.agent-home-tab) .workflow-skill-prompt-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

html[data-theme="light"] body:not(.agent-home-tab) .workflow-skill-panel-head > div,
html[data-theme="light"] body:not(.agent-home-tab) .workflow-skill-prompt-head > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

html[data-theme="light"] body:not(.agent-home-tab) .workflow-skill-panel-head span,
html[data-theme="light"] body:not(.agent-home-tab) .workflow-skill-prompt-head span {
  color: var(--ui-primary-deep);
  font-size: 11px;
  font-weight: 800;
}

html[data-theme="light"] body:not(.agent-home-tab) .workflow-skill-panel-head strong,
html[data-theme="light"] body:not(.agent-home-tab) .workflow-skill-prompt-head strong {
  color: var(--ui-text);
  font-size: 16px;
  line-height: 1.25;
}

html[data-theme="light"] body:not(.agent-home-tab) .workflow-skill-panel-head p {
  margin: 0;
  color: var(--ui-muted);
  font-size: 12px;
  line-height: 1.5;
}

html[data-theme="light"] body:not(.agent-home-tab) .workflow-skill-panel-head b {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 7px;
  color: var(--ui-primary-deep);
  background: var(--ui-primary-soft);
  font-size: 10px;
  line-height: 1;
}

html[data-theme="light"] body:not(.agent-home-tab) .workflow-skill-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

html[data-theme="light"] body:not(.agent-home-tab) .workflow-skill-field {
  display: grid;
  min-width: 0;
  gap: 5px;
}

html[data-theme="light"] body:not(.agent-home-tab) .workflow-skill-field-wide {
  grid-column: 1 / -1;
}

html[data-theme="light"] body:not(.agent-home-tab) .workflow-skill-field > span {
  color: var(--ui-text);
  font-size: 12px;
  font-weight: 750;
}

html[data-theme="light"] body:not(.agent-home-tab) .workflow-skill-field input,
html[data-theme="light"] body:not(.agent-home-tab) .workflow-skill-field select,
html[data-theme="light"] body:not(.agent-home-tab) .workflow-skill-field textarea,
html[data-theme="light"] body:not(.agent-home-tab) .workflow-skill-prompt {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid var(--ui-line);
  border-radius: 10px;
  color: var(--ui-text);
  background: var(--ui-surface-solid);
  font: inherit;
  font-size: 12px;
}

html[data-theme="light"] body:not(.agent-home-tab) .workflow-skill-field input,
html[data-theme="light"] body:not(.agent-home-tab) .workflow-skill-field select {
  min-height: 38px;
  padding: 0 10px;
}

html[data-theme="light"] body:not(.agent-home-tab) .workflow-skill-field textarea {
  min-height: 74px;
  padding: 9px 10px;
  resize: vertical;
}

html[data-theme="light"] body:not(.agent-home-tab) .workflow-skill-prompt-head {
  align-items: center;
}

html[data-theme="light"] body:not(.agent-home-tab) .workflow-skill-prompt-head button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(98, 87, 233, 0.22);
  border-radius: 9px;
  color: var(--ui-primary-deep);
  background: var(--ui-primary-soft);
  font-size: 11px;
  font-weight: 750;
}

html[data-theme="light"] body:not(.agent-home-tab) .workflow-skill-prompt {
  min-height: 142px;
  padding: 11px;
  line-height: 1.65;
  resize: vertical;
}

html[data-theme="light"] body:not(.agent-home-tab) .workflow-skill-retention {
  color: var(--ui-subtle);
  font-size: 11px;
  line-height: 1.4;
}

@media (max-width: 380px) {
  html[data-theme="light"] body:not(.agent-home-tab) .workflow-skill-panel {
    padding: 13px;
  }

  html[data-theme="light"] body:not(.agent-home-tab) .workflow-skill-fields {
    grid-template-columns: 1fr;
  }

  html[data-theme="light"] body:not(.agent-home-tab) .workflow-skill-field-wide {
    grid-column: auto;
  }
}

/* Secondary surfaces: keep page framing, forms, empty states, and auth in the same system. */
html[data-theme="light"] body:not(.agent-home-tab) .global-actions-bar {
  min-height: 60px;
  padding: 2px 2px 10px;
  border-bottom: 1px solid rgba(217, 224, 238, 0.72);
}

html[data-theme="light"] body:not(.agent-home-tab) .global-actions-bar h2 {
  font-size: clamp(24px, 4vw, 28px);
  line-height: 1.12;
  font-weight: 900;
}

html[data-theme="light"] body:not(.agent-home-tab) .global-actions-bar h2[data-subtitle]::after {
  margin-top: 1px;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 650;
}

html[data-theme="light"] body:not(.agent-home-tab) .panel-head,
html[data-theme="light"] body:not(.agent-home-tab) .section-mini-head,
html[data-theme="light"] body:not(.agent-home-tab) .list-head,
html[data-theme="light"] body:not(.agent-home-tab) .subpage-head {
  min-height: 40px;
  align-items: center;
  gap: var(--ds-space-3);
}

html[data-theme="light"] body:not(.agent-home-tab) .panel-head h2,
html[data-theme="light"] body:not(.agent-home-tab) .subpage-head h3 {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 850;
  letter-spacing: 0;
}

html[data-theme="light"] body:not(.agent-home-tab) .section-mini-head,
html[data-theme="light"] body:not(.agent-home-tab) .list-head {
  margin-bottom: 10px;
}

html[data-theme="light"] body:not(.agent-home-tab) .section-mini-head strong,
html[data-theme="light"] body:not(.agent-home-tab) .list-head strong {
  font-size: 15px;
  line-height: 1.3;
  font-weight: 800;
}

html[data-theme="light"] body:not(.agent-home-tab) .panel-head > :last-child,
html[data-theme="light"] body:not(.agent-home-tab) .list-head > :last-child,
html[data-theme="light"] body:not(.agent-home-tab) .subpage-head > :last-child {
  flex: none;
  color: var(--ui-muted);
  font-size: 12px;
}

html[data-theme="light"] body:not(.agent-home-tab) .slim-section,
html[data-theme="light"] body:not(.agent-home-tab) .marketing-composer,
html[data-theme="light"] body:not(.agent-home-tab) .subpage-body {
  padding: var(--ds-space-4);
}

html[data-theme="light"] body:not(.agent-home-tab) .field-grid {
  gap: var(--ds-space-3);
}

html[data-theme="light"] body:not(.agent-home-tab) .field > span,
html[data-theme="light"] body:not(.agent-home-tab) .marketing-form-section > span,
html[data-theme="light"] body:not(.agent-home-tab) .settings-group > span {
  color: var(--ui-muted);
  letter-spacing: 0.01em;
}

html[data-theme="light"] body:not(.agent-home-tab) :where(.field input, .field select, .field textarea, .subpage-body input, .subpage-body select, .subpage-body textarea):hover {
  border-color: var(--ui-line-strong);
  background: var(--ui-surface-solid);
}

html[data-theme="light"] body:not(.agent-home-tab) :where(.field input, .field select, .field textarea, .subpage-body input, .subpage-body select, .subpage-body textarea):focus {
  border-color: rgba(98, 87, 233, 0.56);
  background: var(--ui-surface-solid);
  box-shadow: 0 0 0 4px rgba(98, 87, 233, 0.1);
}

html[data-theme="light"] body:not(.agent-home-tab) .empty-state {
  min-height: 148px;
  gap: 8px;
  padding: 22px 18px;
  border: 1px dashed var(--ui-line-strong);
  border-radius: var(--ds-radius-card);
  background: var(--ui-surface-soft);
}

html[data-theme="light"] body:not(.agent-home-tab) .empty-state::before {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border-color: rgba(98, 87, 233, 0.16);
  background: var(--ui-primary-soft);
}

html[data-theme="light"] body:not(.agent-home-tab) .empty-state strong {
  color: var(--ui-text);
  font-size: 15px;
  font-weight: 800;
}

html[data-theme="light"] body:not(.agent-home-tab) .empty-state p {
  max-width: 30em;
  color: var(--ui-muted);
}

html[data-theme="light"] body:not(.agent-home-tab) .auth-screen {
  background:
    radial-gradient(circle at 12% 10%, rgba(98, 87, 233, 0.16), transparent 30%),
    radial-gradient(circle at 88% 84%, rgba(124, 109, 242, 0.12), transparent 32%),
    var(--ui-page);
}

html[data-theme="light"] body:not(.agent-home-tab) .auth-card {
  gap: 18px;
  padding: 24px;
  border-color: rgba(255, 255, 255, 0.86);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 64px rgba(54, 67, 106, 0.16);
}

html[data-theme="light"] body:not(.agent-home-tab) .auth-brand > span {
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ui-primary), #8d82ff);
  box-shadow: 0 12px 24px rgba(98, 87, 233, 0.22);
}

html[data-theme="light"] body:not(.agent-home-tab) .auth-brand strong {
  color: var(--ui-text);
  font-size: 20px;
  letter-spacing: 0;
}

html[data-theme="light"] body:not(.agent-home-tab) .auth-promise {
  border: 1px solid rgba(98, 87, 233, 0.12);
  background: linear-gradient(135deg, #f3f1ff, #ffffff);
}

html[data-theme="light"] body:not(.agent-home-tab) .auth-promise strong {
  color: var(--ui-text);
  font-size: 17px;
  font-weight: 850;
}

html[data-theme="light"] body:not(.agent-home-tab) .auth-proof-row span {
  border: 1px solid var(--ui-line);
  background: var(--ui-surface-soft);
  color: var(--ui-primary-deep);
  font-weight: 750;
}

html[data-theme="light"] body:not(.agent-home-tab) .auth-tabs {
  border-color: var(--ui-line);
  background: var(--ui-surface-soft);
}

html[data-theme="light"] body:not(.agent-home-tab) .auth-tabs button {
  min-height: 40px;
  padding: 0 10px;
  border-radius: 11px;
  font-size: 13px;
}

html[data-theme="light"] body:not(.agent-home-tab) .auth-tabs button.active {
  color: var(--ui-primary-deep);
  box-shadow: 0 4px 12px rgba(54, 67, 106, 0.06);
}

html[data-theme="light"] body:not(.agent-home-tab) .password-toggle,
html[data-theme="light"] body:not(.agent-home-tab) .sms-code-button {
  border-color: rgba(98, 87, 233, 0.14);
  background: var(--ui-primary-soft);
  color: var(--ui-primary-deep);
}

html[data-theme="light"] body:not(.agent-home-tab) .auth-helper-text,
html[data-theme="light"] body:not(.agent-home-tab) .agreement-check {
  color: var(--ui-muted);
}

@media (max-width: 600px) {
  html[data-theme="light"] body:not(.agent-home-tab) .global-actions-bar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  html[data-theme="light"] body:not(.agent-home-tab) .global-actions-bar .marketing-calendar-button {
    grid-column: 2;
    grid-row: 1;
  }

  html[data-theme="light"] body:not(.agent-home-tab) .global-actions-bar .home-utility-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: end;
    margin-top: -4px;
  }

  html[data-theme="light"] body:not(.agent-home-tab) .auth-card {
    padding: 20px;
    border-radius: 22px;
  }
}

/* AI image catalog: clear first recommendation, denser secondary list, and a real scroll region. */
html[data-theme="light"] body.ai-image-tab .workflow-catalog-panel {
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 0 18px calc(92px + env(safe-area-inset-bottom, 0px));
  gap: 14px;
  overflow-y: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

html[data-theme="light"] body.ai-image-tab .workflow-catalog-panel::-webkit-scrollbar {
  display: none;
}

html[data-theme="light"] body.ai-image-tab .workflow-catalog-head {
  gap: 5px;
  padding: 10px 2px 4px;
}

html[data-theme="light"] body.ai-image-tab .workflow-catalog-head > span {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: none;
}

html[data-theme="light"] body.ai-image-tab .workflow-catalog-head h2 {
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: 0;
}

html[data-theme="light"] body.ai-image-tab .workflow-catalog-head p {
  max-width: none;
  color: var(--ui-muted);
  font-size: 13px;
  line-height: 1.5;
}

html[data-theme="light"] body.ai-image-tab .workflow-catalog-list {
  gap: 10px;
}

html[data-theme="light"] body.ai-image-tab .workflow-catalog-featured {
  padding: 0;
}

html[data-theme="light"] body.ai-image-tab .workflow-card {
  grid-template-columns: 64px minmax(0, 1fr) 32px;
  min-height: 84px;
  gap: 11px;
  padding: 9px;
  border-color: var(--ui-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 20px rgba(54, 67, 106, 0.06);
}

html[data-theme="light"] body.ai-image-tab .workflow-card-image {
  width: 64px;
  height: 64px;
  border-radius: 13px;
  background: #eef2f8;
}

html[data-theme="light"] body.ai-image-tab .workflow-card-copy {
  gap: 2px;
}

html[data-theme="light"] body.ai-image-tab .workflow-card-copy small {
  color: var(--ui-primary-deep);
  font-size: 10px;
  line-height: 1.2;
  font-weight: 750;
}

html[data-theme="light"] body.ai-image-tab .workflow-card-copy strong {
  font-size: 15px;
  line-height: 1.28;
  font-weight: 850;
}

html[data-theme="light"] body.ai-image-tab .workflow-card-copy em {
  color: var(--ui-muted);
  font-size: 11px;
  line-height: 1.3;
}

html[data-theme="light"] body.ai-image-tab .workflow-card-arrow {
  width: 32px;
  height: 32px;
  background: var(--ui-primary-soft);
  box-shadow: inset 0 0 0 1px rgba(98, 87, 233, 0.08);
}

html[data-theme="light"] body.ai-image-tab .workflow-card-featured {
  grid-template-columns: 76px minmax(0, 1fr) 32px;
  min-height: 96px;
  padding: 10px;
  border-color: rgba(98, 87, 233, 0.16);
  background: linear-gradient(135deg, #f5f3ff 0%, #ffffff 72%);
  box-shadow: 0 12px 26px rgba(98, 87, 233, 0.08);
}

html[data-theme="light"] body.ai-image-tab .workflow-card-featured .workflow-card-image {
  width: 76px;
  height: 76px;
  border-radius: 15px;
}

html[data-theme="light"] body.ai-image-tab .workflow-card-featured .workflow-card-copy strong {
  font-size: 16px;
  line-height: 1.25;
}

html[data-theme="light"] body.ai-image-tab .workflow-card-featured .workflow-card-copy em {
  font-size: 11px;
}

html[data-theme="light"] body.ai-image-tab .workflow-catalog-subhead {
  align-items: center;
  padding: 2px 2px 0;
}

html[data-theme="light"] body.ai-image-tab .workflow-catalog-subhead strong {
  color: var(--ui-text);
  font-size: 17px;
  line-height: 1.25;
  font-weight: 850;
}

html[data-theme="light"] body.ai-image-tab .workflow-catalog-subhead span {
  color: var(--ui-subtle);
  font-size: 11px;
}

html[data-theme="light"] body.ai-image-tab .workflow-catalog-secondary {
  gap: 10px;
}

html[data-theme="light"] body.ai-image-tab .workflow-catalog-secondary .workflow-card:hover,
html[data-theme="light"] body.ai-image-tab .workflow-catalog-featured .workflow-card:hover {
  border-color: rgba(98, 87, 233, 0.3);
  box-shadow: 0 12px 24px rgba(98, 87, 233, 0.1);
}

@media (max-width: 380px) {
  html[data-theme="light"] body.ai-image-tab .workflow-catalog-panel {
    padding-inline: 14px;
  }

  html[data-theme="light"] body.ai-image-tab .workflow-card {
    grid-template-columns: 60px minmax(0, 1fr) 30px;
    gap: 9px;
  }

  html[data-theme="light"] body.ai-image-tab .workflow-card-image {
    width: 60px;
    height: 60px;
  }

  html[data-theme="light"] body.ai-image-tab .workflow-card-featured {
    grid-template-columns: 70px minmax(0, 1fr) 30px;
  }

  html[data-theme="light"] body.ai-image-tab .workflow-card-featured .workflow-card-image {
    width: 70px;
    height: 70px;
  }
}

/* Global chrome baseline: home and inner pages share one header and one bottom nav. */
html[data-theme="light"] body.agent-home-tab .global-actions-bar,
html[data-theme="light"] body:not(.agent-home-tab) .global-actions-bar {
  grid-template-columns: minmax(88px, 1fr) auto auto;
  align-items: center;
  gap: 8px;
}

html[data-theme="light"] body.agent-home-tab .global-actions-bar h2,
html[data-theme="light"] body:not(.agent-home-tab) .global-actions-bar h2 {
  min-width: 0;
  font-size: 27px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

html[data-theme="light"] body.agent-home-tab .global-actions-bar h2[data-subtitle]::after,
html[data-theme="light"] body:not(.agent-home-tab) .global-actions-bar h2[data-subtitle]::after {
  margin-top: 3px;
  color: #5f6575;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 500;
}

html[data-theme="light"] body.agent-home-tab .marketing-calendar-button,
html[data-theme="light"] body:not(.agent-home-tab) .marketing-calendar-button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 22px;
  color: #fff;
  background: #ff6126;
  box-shadow: 0 7px 18px rgba(255, 97, 38, 0.19);
  font-size: 12px;
  font-weight: 800;
}

html[data-theme="light"] body.agent-home-tab .marketing-calendar-button .app-icon,
html[data-theme="light"] body:not(.agent-home-tab) .marketing-calendar-button .app-icon {
  width: 16px;
  height: 16px;
}

html[data-theme="light"] body.agent-home-tab .home-utility-actions,
html[data-theme="light"] body:not(.agent-home-tab) .home-utility-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  background: transparent;
}

html[data-theme="light"] body.agent-home-tab .balance-pill,
html[data-theme="light"] body:not(.agent-home-tab) .balance-pill,
html[data-theme="light"] body.agent-home-tab .system-notice-button,
html[data-theme="light"] body:not(.agent-home-tab) .system-notice-button {
  min-width: 40px;
  min-height: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 22px;
  color: #151823;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 7px 19px rgba(45, 57, 86, 0.06);
}

html[data-theme="light"] body.agent-home-tab .balance-pill,
html[data-theme="light"] body:not(.agent-home-tab) .balance-pill {
  padding: 0 13px;
}

html[data-theme="light"] body.agent-home-tab .balance-pill span,
html[data-theme="light"] body:not(.agent-home-tab) .balance-pill span {
  display: none;
}

html[data-theme="light"] body.agent-home-tab .balance-pill strong,
html[data-theme="light"] body:not(.agent-home-tab) .balance-pill strong {
  font-size: 14px;
  line-height: 1;
}

html[data-theme="light"] body.agent-home-tab .system-notice-button,
html[data-theme="light"] body:not(.agent-home-tab) .system-notice-button {
  width: 40px;
  padding: 0;
}

html[data-theme="light"] body.agent-home-tab .system-notice-button .app-icon,
html[data-theme="light"] body:not(.agent-home-tab) .system-notice-button .app-icon {
  width: 17px;
  height: 17px;
}

html[data-theme="light"] body.agent-home-tab .bottom-nav,
html[data-theme="light"] body:not(.agent-home-tab) .bottom-nav {
  left: 8px !important;
  right: 8px !important;
  bottom: max(6px, env(safe-area-inset-bottom, 0px)) !important;
  width: auto !important;
  max-width: none !important;
  min-height: 66px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 7px 10px calc(7px + env(safe-area-inset-bottom, 0px));
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 32px rgba(41, 48, 75, 0.11);
  backdrop-filter: blur(20px);
}

html[data-theme="light"] body.agent-home-tab .nav-button,
html[data-theme="light"] body:not(.agent-home-tab) .nav-button,
html[data-theme="light"] body.agent-home-tab .nav-button.nav-button-strong,
html[data-theme="light"] body:not(.agent-home-tab) .nav-button.nav-button-strong,
html[data-theme="light"] body.agent-home-tab .nav-button.nav-button-strong.active,
html[data-theme="light"] body:not(.agent-home-tab) .nav-button.nav-button-strong.active {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  gap: 4px;
  padding: 5px 4px;
  border: 0 !important;
  border-radius: 16px;
  color: #62697c;
  background: transparent;
  box-shadow: none;
}

html[data-theme="light"] body.agent-home-tab .nav-button em,
html[data-theme="light"] body:not(.agent-home-tab) .nav-button em {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 650;
}

html[data-theme="light"] body.agent-home-tab .nav-button .nav-icon,
html[data-theme="light"] body:not(.agent-home-tab) .nav-button .nav-icon,
html[data-theme="light"] body.agent-home-tab .nav-button.nav-button-strong .nav-icon,
html[data-theme="light"] body:not(.agent-home-tab) .nav-button.nav-button-strong .nav-icon,
html[data-theme="light"] body.agent-home-tab .nav-button.nav-button-strong.active .nav-icon,
html[data-theme="light"] body:not(.agent-home-tab) .nav-button.nav-button-strong.active .nav-icon {
  width: 23px;
  height: 23px;
  border-radius: 0;
  color: currentColor;
  background: transparent;
  box-shadow: none;
  transform: none;
}

html[data-theme="light"] body.agent-home-tab .nav-button.active,
html[data-theme="light"] body:not(.agent-home-tab) .nav-button.active {
  color: #5649ed;
  background: #f5f2ff;
  box-shadow: inset 0 0 0 1px rgba(98, 87, 233, 0.08);
}

html[data-theme="light"] body.agent-home-tab .nav-button.active .nav-icon,
html[data-theme="light"] body:not(.agent-home-tab) .nav-button.active .nav-icon,
html[data-theme="light"] body.agent-home-tab .nav-button.nav-button-strong.active .nav-icon,
html[data-theme="light"] body:not(.agent-home-tab) .nav-button.nav-button-strong.active .nav-icon {
  color: #6554ef;
}

@media (max-width: 600px) {
  html[data-theme="light"] body.agent-home-tab .global-actions-bar,
  html[data-theme="light"] body:not(.agent-home-tab) .global-actions-bar {
    grid-template-columns: minmax(88px, 1fr) auto auto;
  }

  html[data-theme="light"] body.agent-home-tab .global-actions-bar .home-utility-actions,
  html[data-theme="light"] body:not(.agent-home-tab) .global-actions-bar .home-utility-actions {
    grid-column: auto;
    grid-row: auto;
    justify-self: auto;
    margin-top: 0;
  }
}

@media (min-width: 460px) {
  html[data-theme="light"] body.agent-home-tab .bottom-nav,
  html[data-theme="light"] body:not(.agent-home-tab) .bottom-nav {
    left: 50% !important;
    right: auto !important;
    width: 444px !important;
    transform: translateX(-50%) !important;
  }
}

/* Phase 1 templates: tools hub and image workbench. */
html[data-theme="light"] body:not(.agent-home-tab) .tools-hub .app-hub-hero {
  padding: 10px 2px 4px;
  gap: 6px;
}

html[data-theme="light"] body:not(.agent-home-tab) .tools-hub .app-hub-hero span,
html[data-theme="light"] body:not(.agent-home-tab) .workflow-catalog-head > span {
  color: var(--ui-primary-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[data-theme="light"] body:not(.agent-home-tab) .tools-hub .app-hub-hero h2 {
  max-width: none;
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: 0;
}

html[data-theme="light"] body:not(.agent-home-tab) .tools-hub .app-hub-hero p {
  max-width: none;
  font-size: 13px;
  line-height: 1.5;
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-tile {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  grid-template-rows: auto auto minmax(0, 1fr);
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-tile > strong {
  padding-right: 34px;
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-tile > span {
  max-width: calc(100% - 26px);
  padding-right: 8px;
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-tile-arrow {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  margin: 0;
  border-radius: 50%;
  color: var(--ui-primary-deep);
  background: var(--ui-primary-soft);
  box-shadow: inset 0 0 0 1px rgba(98, 87, 233, 0.08);
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-tile-arrow .app-icon {
  width: 15px;
  height: 15px;
  stroke-width: 2.05;
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-tile:hover .tool-tile-arrow {
  color: #fff;
  background: var(--ui-primary);
  transform: translateX(2px);
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-tile.primary .tool-tile-arrow,
html[data-theme="light"] body:not(.agent-home-tab) .tool-tile.promo-pack-tile .tool-tile-arrow {
  color: var(--ui-navy);
  background: rgba(255, 255, 255, 0.92);
}

html[data-theme="light"] body:not(.agent-home-tab) .tool-tile.primary:hover .tool-tile-arrow,
html[data-theme="light"] body:not(.agent-home-tab) .tool-tile.promo-pack-tile:hover .tool-tile-arrow {
  color: var(--ui-primary-deep);
  background: #fff;
}

html[data-theme="light"] body:not(.agent-home-tab) .workflow-catalog-panel {
  display: grid;
  gap: var(--ds-space-3);
  padding: 2px 0 0;
}

html[data-theme="light"] body:not(.agent-home-tab) .workflow-catalog-head {
  display: grid;
  gap: 5px;
  padding: 8px 2px 0;
}

html[data-theme="light"] body:not(.agent-home-tab) .workflow-catalog-head h2 {
  margin: 0;
  color: var(--ui-text);
  font-size: 26px;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: 0;
}

html[data-theme="light"] body:not(.agent-home-tab) .workflow-catalog-head p {
  max-width: 30em;
  margin: 0;
  color: var(--ui-muted);
  font-size: 13px;
  line-height: 1.55;
}

html[data-theme="light"] body:not(.agent-home-tab) .workflow-catalog-list {
  display: grid;
  gap: var(--ds-space-3);
}

html[data-theme="light"] body.ai-image-tab .workbench-canvas {
  min-height: min(56svh, 540px);
  border: 1px solid var(--ui-line);
  background:
    radial-gradient(circle at 50% 32%, rgba(98, 87, 233, 0.08), transparent 34%),
    linear-gradient(180deg, #fbfcff 0%, #eef2fa 100%);
  box-shadow: var(--ui-shadow-soft);
}

html[data-theme="light"] body.ai-image-tab .workbench-empty {
  width: min(84vw, 340px);
  gap: 10px;
}

html[data-theme="light"] body.ai-image-tab .workbench-stage-icon {
  width: 56px;
  height: 56px;
  padding: 15px;
  border-radius: 20px;
  color: var(--ui-primary-deep);
  background: var(--ui-primary-soft);
  box-shadow: 0 16px 28px rgba(98, 87, 233, 0.14);
}

html[data-theme="light"] body.ai-image-tab .workbench-empty strong {
  color: var(--ui-text);
  font-size: 20px;
  font-weight: 850;
}

html[data-theme="light"] body.ai-image-tab .workbench-empty p {
  color: var(--ui-muted);
  font-size: 13px;
}

html[data-theme="light"] body.ai-image-tab .workbench-composer {
  border: 1px solid var(--ui-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -12px 30px rgba(54, 67, 106, 0.1);
}

html[data-theme="light"] body.ai-image-tab .workbench-hint-row {
  padding-inline: 2px;
}

html[data-theme="light"] body.ai-image-tab .workbench-cost-hint {
  border-color: rgba(98, 87, 233, 0.14);
  background: var(--ui-primary-soft);
  color: var(--ui-primary-deep);
}

html[data-theme="light"] body.ai-image-tab .workbench-prompt-pill {
  height: 48px;
  border-radius: 15px;
  border-color: var(--ui-line-strong);
  background: var(--ui-surface-soft);
  box-shadow: none;
}

html[data-theme="light"] body.ai-image-tab .workbench-prompt-pill span {
  color: var(--ui-primary-deep);
  font-size: 11px;
  font-weight: 800;
}

html[data-theme="light"] body.ai-image-tab .workbench-prompt-pill strong {
  color: var(--ui-text);
  font-size: 13px;
  font-weight: 700;
}

html[data-theme="light"] body.ai-image-tab .workbench-reference-compact {
  min-height: 36px;
}

html[data-theme="light"] body.ai-image-tab .workbench-upload-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-inline: 11px;
  border: 1px dashed var(--ui-line-strong);
  border-radius: 11px;
  color: var(--ui-muted);
  background: var(--ui-surface-soft);
  font-size: 12px;
  font-weight: 750;
}

html[data-theme="light"] body.ai-image-tab .workbench-upload-button:hover {
  border-color: rgba(98, 87, 233, 0.34);
  color: var(--ui-primary-deep);
  background: var(--ui-primary-soft);
}

html[data-theme="light"] body.ai-image-tab .workbench-upload-button .app-icon {
  width: 16px;
  height: 16px;
}

html[data-theme="light"] body.ai-image-tab .workbench-generate-button {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--ui-primary), #8175f4);
  box-shadow: 0 12px 24px rgba(98, 87, 233, 0.24);
}

html[data-theme="light"] body.ai-image-tab .workbench-generate-button .app-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2.15;
}

html[data-theme="light"] body.ai-image-tab .workbench-setting-button {
  color: var(--ui-muted);
  background: var(--ui-surface-soft);
}

html[data-theme="light"] body.ai-image-tab .workbench-setting-button .app-icon {
  width: 18px;
  height: 18px;
}

html[data-theme="light"] body.ai-image-tab .workbench-output > img,
html[data-theme="light"] body.ai-image-tab .workbench-image-stage > img {
  box-shadow: 0 20px 42px rgba(54, 67, 106, 0.16);
}

@media (max-width: 600px) {
  html[data-theme="light"] body:not(.agent-home-tab) .tools-grid {
    gap: 10px;
  }

  html[data-theme="light"] body:not(.agent-home-tab) .tool-tile {
    padding: 14px;
  }

  html[data-theme="light"] body.ai-image-tab .workbench-canvas {
    min-height: min(52svh, 470px);
  }

  html[data-theme="light"] body.ai-image-tab .workbench-hint-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  html[data-theme="light"] body.ai-image-tab .workbench-cost-hint {
    align-self: flex-start;
  }
}

/* Keep the bottom navigation icon family stroke-based and optically balanced. */
html[data-theme="light"] body.agent-home-tab .bottom-nav .nav-icon .app-icon,
html[data-theme="light"] body:not(.agent-home-tab) .bottom-nav .nav-icon .app-icon {
  width: 23px;
  height: 23px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[data-theme="light"] body.agent-home-tab .bottom-nav .nav-button.active .nav-icon .app-icon,
html[data-theme="light"] body:not(.agent-home-tab) .bottom-nav .nav-button.active .nav-icon .app-icon {
  stroke-width: 2;
}

/* The legacy mask icons must stay off once the shared SVG icons are mounted. */
html[data-theme="light"] body.agent-home-tab .bottom-nav .nav-icon::before,
html[data-theme="light"] body:not(.agent-home-tab) .bottom-nav .nav-icon::before {
  content: none !important;
  display: none !important;
}

/* The relocated play cards live inside the AI image catalog scroll region. */
html[data-theme="light"] body.ai-image-tab .workbench-one-shot {
  display: grid;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

html[data-theme="light"] body.ai-image-tab .workbench-one-shot .one-shot-card {
  gap: 12px;
  padding: 0;
}

html[data-theme="light"] body.ai-image-tab .workbench-one-shot .one-shot-hero {
  min-height: 118px;
  padding: 17px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, #17213c, #3b3a83 58%, #6b60df),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.28), transparent 34%);
  box-shadow: 0 16px 30px rgba(57, 55, 139, 0.16);
}

html[data-theme="light"] body.ai-image-tab .workbench-one-shot .one-shot-hero-copy strong {
  font-size: 24px;
}

/* Keep every AI image play card in one reusable, upload-friendly format. */
html[data-theme="light"] body.ai-image-tab .workbench-one-shot .one-shot-daily-list,
html[data-theme="light"] body.ai-image-tab .workbench-one-shot .one-shot-play-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  overflow: visible;
}

html[data-theme="light"] body.ai-image-tab .workbench-one-shot .one-shot-daily-list .one-shot-play-card:first-child,
html[data-theme="light"] body.ai-image-tab .workbench-one-shot .one-shot-daily-list .one-shot-play-card:not(:first-child) {
  grid-row: auto;
  min-height: 0;
  border-radius: 18px;
}

html[data-theme="light"] body.ai-image-tab .workbench-one-shot .one-shot-play-card {
  min-height: 0;
  aspect-ratio: 1.4 / 1;
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] body.ai-image-tab .workbench-one-shot .one-shot-play-card .one-shot-card-copy,
html[data-theme="light"] body.ai-image-tab .workbench-one-shot .one-shot-daily-list .one-shot-play-card:not(:first-child) .one-shot-card-copy {
  min-height: 0;
  padding: 44px 11px 12px;
  gap: 4px;
  background: linear-gradient(180deg, transparent 38%, rgba(6, 12, 24, 0.12) 48%, rgba(6, 12, 24, 0.82) 100%);
}

html[data-theme="light"] body.ai-image-tab .workbench-one-shot .one-shot-play-card .one-shot-card-copy strong,
html[data-theme="light"] body.ai-image-tab .workbench-one-shot .one-shot-daily-list .one-shot-play-card:not(:first-child) .one-shot-card-copy strong {
  font-size: 16px;
  line-height: 1.08;
}

html[data-theme="light"] body.ai-image-tab .workbench-one-shot .one-shot-play-card .one-shot-card-copy em {
  padding: 4px 7px;
  font-size: 9px;
}

html[data-theme="light"] body.ai-image-tab .workbench-one-shot .one-shot-play-card .one-shot-card-image img {
  object-position: center;
}

/* AI 生图 catalog: the whole page follows the image-led play-square layout. */
html[data-theme="light"] body.ai-image-tab .app-shell {
  display: flex;
  flex-direction: column;
  height: calc(100svh - 28px);
  min-height: 0;
  overflow: hidden;
}

html[data-theme="light"] body.ai-image-tab .screen {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 0;
  gap: 0;
}

html[data-theme="light"] body.ai-image-tab .tab-panel[data-tab="workbench"].active {
  display: flex !important;
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
  overflow: visible;
  gap: 0;
  padding: 0 0 122px !important;
}

html[data-theme="light"] body.ai-image-tab .workflow-catalog-panel {
  width: 100%;
  max-width: none;
  gap: 12px;
  padding: 2px 0 10px;
}

html[data-theme="light"] body.ai-image-tab .workflow-catalog-head {
  gap: 5px;
  padding: 8px 2px 0;
}

html[data-theme="light"] body.ai-image-tab .workflow-catalog-head h2 {
  font-size: 28px;
  line-height: 1.12;
}

html[data-theme="light"] body.ai-image-tab .workflow-catalog-list {
  display: grid;
  gap: 12px;
}

html[data-theme="light"] body.ai-image-tab .workflow-image-subhead {
  min-height: 28px;
  padding: 4px 2px 0;
}

html[data-theme="light"] body.ai-image-tab .workflow-image-subhead strong {
  color: var(--ui-text);
  font-size: 20px;
  line-height: 1.1;
  font-weight: 950;
}

html[data-theme="light"] body.ai-image-tab .workflow-image-subhead span {
  color: var(--ui-subtle);
  font-size: 11px;
  font-weight: 750;
}

html[data-theme="light"] body.ai-image-tab .workflow-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

html[data-theme="light"] body.ai-image-tab .workflow-image-grid .workflow-card {
  position: relative;
  isolation: isolate;
  display: block;
  min-height: 0;
  aspect-ratio: 1.4 / 1;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #dce4f0;
  color: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
  transform: translateZ(0);
}

html[data-theme="light"] body.ai-image-tab .workflow-image-grid .workflow-card:active {
  transform: scale(0.985);
}

html[data-theme="light"] body.ai-image-tab .workflow-image-grid .workflow-card-image {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: auto;
  height: auto;
  border-radius: 0;
  background: #dce4f0;
}

html[data-theme="light"] body.ai-image-tab .workflow-image-grid .workflow-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 34%, rgba(6, 12, 24, 0.08) 47%, rgba(6, 12, 24, 0.84) 100%);
}

html[data-theme="light"] body.ai-image-tab .workflow-image-grid .workflow-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

html[data-theme="light"] body.ai-image-tab .workflow-image-grid .workflow-card-copy {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 42px 11px 12px;
  text-align: left;
  background: linear-gradient(180deg, transparent, rgba(6, 12, 24, 0.78));
}

html[data-theme="light"] body.ai-image-tab .workflow-image-grid .workflow-card-copy small {
  width: max-content;
  max-width: 100%;
  padding: 4px 7px;
  overflow: hidden;
  border-radius: 999px;
  color: #111827;
  background: rgba(255, 255, 255, 0.9);
  font-size: 9px;
  line-height: 1;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme="light"] body.ai-image-tab .workflow-image-grid .workflow-card-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  line-height: 1.08;
  font-weight: 950;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

html[data-theme="light"] body.ai-image-tab .workflow-image-grid .workflow-card-copy em,
html[data-theme="light"] body.ai-image-tab .workflow-image-grid .workflow-card-arrow {
  display: none;
}

html[data-theme="light"] body.ai-image-tab .workbench-one-shot {
  width: 100%;
  gap: 10px;
  padding: 0 0 8px;
}

html[data-theme="light"] body.ai-image-tab .workbench-one-shot .one-shot-card {
  gap: 10px;
  padding: 0;
}

html[data-theme="light"] body.ai-image-tab .workbench-one-shot .one-shot-hero,
html[data-theme="light"] body.ai-image-tab .workbench-one-shot .one-shot-daily {
  display: none !important;
}

html[data-theme="light"] body.ai-image-tab .workbench-one-shot .one-shot-section:not(.one-shot-daily) {
  gap: 10px;
}

html[data-theme="light"] body.ai-image-tab .workbench-one-shot .one-shot-section-head {
  min-height: 28px;
  padding: 4px 2px 0;
}

html[data-theme="light"] body.ai-image-tab .workbench-one-shot .one-shot-section-head strong {
  color: var(--ui-text);
  font-size: 20px;
  line-height: 1.1;
}

html[data-theme="light"] body.ai-image-tab .workbench-canvas,
html[data-theme="light"] body.ai-image-tab .workbench-composer {
  display: none !important;
}

@media (max-width: 380px) {
  html[data-theme="light"] body.ai-image-tab .workflow-image-grid {
    gap: 8px;
  }

  html[data-theme="light"] body.ai-image-tab .workflow-image-grid .workflow-card-copy {
    padding-inline: 9px;
  }
}

/* Inspiration plaza v1: answer a business question with an image or a line of copy. */
html[data-theme="light"] body:not(.agent-home-tab) .tab-panel[data-tab="mall"].active {
  gap: 0;
  padding: 0 0 calc(92px + env(safe-area-inset-bottom, 0px));
}

html[data-theme="light"] body:not(.agent-home-tab) .inspiration-mall-shell {
  display: grid;
  gap: 15px;
  min-width: 0;
}

html[data-theme="light"] body:not(.agent-home-tab) .inspiration-mall-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 132px;
  padding: 22px 18px;
  border-radius: 22px;
  color: #f7f8ff;
  background: #1b2644;
  box-shadow: 0 14px 30px rgba(28, 39, 75, 0.16);
}

html[data-theme="light"] body:not(.agent-home-tab) .inspiration-mall-intro h2 {
  margin: 0;
  color: inherit;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 900;
}

html[data-theme="light"] body:not(.agent-home-tab) .inspiration-mall-intro p {
  max-width: 180px;
  margin: 8px 0 0;
  color: #b8c2d9;
  font-size: 12px;
  line-height: 1.55;
}

html[data-theme="light"] body:not(.agent-home-tab) .inspiration-mall-intro button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 20px;
  color: #202841;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

html[data-theme="light"] body:not(.agent-home-tab) .inspiration-mall-intro button .app-icon {
  width: 15px;
  height: 15px;
  color: #6554ef;
}

html[data-theme="light"] body:not(.agent-home-tab) .inspiration-mall-goals,
html[data-theme="light"] body:not(.agent-home-tab) .inspiration-mall-types {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 1px 1px 3px;
  scrollbar-width: none;
}

html[data-theme="light"] body:not(.agent-home-tab) .inspiration-mall-goals::-webkit-scrollbar,
html[data-theme="light"] body:not(.agent-home-tab) .inspiration-mall-types::-webkit-scrollbar {
  display: none;
}

html[data-theme="light"] body:not(.agent-home-tab) .inspiration-mall-goals button,
html[data-theme="light"] body:not(.agent-home-tab) .inspiration-mall-types button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(222, 227, 240, 0.96);
  border-radius: 15px;
  color: #687188;
  background: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

html[data-theme="light"] body:not(.agent-home-tab) .inspiration-mall-goals button.active,
html[data-theme="light"] body:not(.agent-home-tab) .inspiration-mall-types button.active {
  border-color: #20283b;
  color: #fff;
  background: #20283b;
}

html[data-theme="light"] body:not(.agent-home-tab) .inspiration-mall-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 3px;
}

html[data-theme="light"] body:not(.agent-home-tab) .inspiration-mall-section-head h3 {
  margin: 0;
  color: var(--ui-text);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 900;
}

html[data-theme="light"] body:not(.agent-home-tab) .inspiration-mall-section-head p {
  margin: 5px 0 0;
  color: var(--ui-muted);
  font-size: 11px;
}

html[data-theme="light"] body:not(.agent-home-tab) .inspiration-mall-section-head > strong {
  color: #7a849b;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

html[data-theme="light"] body:not(.agent-home-tab) .inspiration-mall-types {
  gap: 16px;
  border-bottom: 1px solid rgba(221, 226, 238, 0.9);
}

html[data-theme="light"] body:not(.agent-home-tab) .inspiration-mall-types button {
  min-height: 34px;
  padding: 0 2px 8px;
  border: 0;
  border-radius: 0;
  color: #7b8498;
  background: transparent;
  font-size: 12px;
}

html[data-theme="light"] body:not(.agent-home-tab) .inspiration-mall-types button.active {
  position: relative;
  color: #5649ed;
  background: transparent;
}

html[data-theme="light"] body:not(.agent-home-tab) .inspiration-mall-types button.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: #6554ef;
  content: "";
}

html[data-theme="light"] body:not(.agent-home-tab) .inspiration-mall-feed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

html[data-theme="light"] body:not(.agent-home-tab) .inspiration-mall-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(224, 229, 240, 0.94);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 20px rgba(38, 49, 84, 0.06);
}

html[data-theme="light"] body:not(.agent-home-tab) .inspiration-mall-card.is-copy {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: stretch;
  background: #f7f5ff;
}

html[data-theme="light"] body:not(.agent-home-tab) .inspiration-mall-card-media {
  position: relative;
  aspect-ratio: 1 / 0.86;
  overflow: hidden;
  background: #e8ecf5;
}

html[data-theme="light"] body:not(.agent-home-tab) .inspiration-mall-card-media::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(12, 18, 33, 0.72));
  content: "";
}

html[data-theme="light"] body:not(.agent-home-tab) .inspiration-mall-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html[data-theme="light"] body:not(.agent-home-tab) .inspiration-mall-card-media > span {
  position: absolute;
  z-index: 1;
  right: 9px;
  bottom: 8px;
  left: 9px;
  overflow: hidden;
  color: #fff;
  font-size: 10px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme="light"] body:not(.agent-home-tab) .inspiration-mall-card-quote {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  background: #ece9ff;
}

html[data-theme="light"] body:not(.agent-home-tab) .inspiration-mall-card-quote span {
  color: #6554ef;
  font-size: 11px;
  font-weight: 850;
}

html[data-theme="light"] body:not(.agent-home-tab) .inspiration-mall-card-quote strong {
  color: #252a40;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 850;
}

html[data-theme="light"] body:not(.agent-home-tab) .inspiration-mall-card-body {
  display: grid;
  gap: 8px;
  padding: 12px 12px 13px;
}

html[data-theme="light"] body:not(.agent-home-tab) .inspiration-mall-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

html[data-theme="light"] body:not(.agent-home-tab) .inspiration-mall-card-meta span {
  color: #5649ed;
  font-size: 10px;
  font-weight: 850;
}

html[data-theme="light"] body:not(.agent-home-tab) .inspiration-mall-card-meta small {
  color: #8a92a6;
  font-size: 10px;
}

html[data-theme="light"] body:not(.agent-home-tab) .inspiration-mall-card h3 {
  margin: 0;
  color: #181d2b;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 850;
}

html[data-theme="light"] body:not(.agent-home-tab) .inspiration-mall-card p {
  display: -webkit-box;
  min-height: 32px;
  margin: 0;
  overflow: hidden;
  color: #727b91;
  font-size: 11px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

html[data-theme="light"] body:not(.agent-home-tab) .inspiration-mall-card-foot {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 7px;
  margin-top: 2px;
}

html[data-theme="light"] body:not(.agent-home-tab) .inspiration-mall-card-foot > small {
  min-width: 0;
  overflow: hidden;
  color: #8991a4;
  font-size: 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme="light"] body:not(.agent-home-tab) .inspiration-mall-card-foot button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 9px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: #6554ef;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

html[data-theme="light"] body:not(.agent-home-tab) .inspiration-mall-empty {
  grid-column: 1 / -1;
  padding: 36px 18px;
  border: 1px dashed rgba(197, 204, 222, 0.95);
  border-radius: 18px;
  color: #7b8498;
  background: rgba(255, 255, 255, 0.55);
  text-align: center;
  font-size: 12px;
}

@media (max-width: 380px) {
  html[data-theme="light"] body:not(.agent-home-tab) .inspiration-mall-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  html[data-theme="light"] body:not(.agent-home-tab) .inspiration-mall-intro button {
    align-self: flex-start;
  }

  html[data-theme="light"] body:not(.agent-home-tab) .inspiration-mall-card.is-copy {
    display: block;
  }
}

/* Home inspiration plaza: three filters and a 3:4 image-led waterfall. */
html[data-theme="light"] body.agent-home-tab .home-inspiration-section {
  gap: 14px;
  padding: 4px 0 18px;
}

html[data-theme="light"] body.agent-home-tab .home-inspiration-heading {
  font-size: 26px;
}

html[data-theme="light"] body.agent-home-tab .home-inspiration-categories {
  gap: 8px;
  padding-bottom: 1px;
}

html[data-theme="light"] body.agent-home-tab .home-inspiration-categories button {
  min-width: 76px;
  min-height: 38px;
  border-radius: 15px;
  font-size: 13px;
  font-weight: 750;
}

html[data-theme="light"] body.agent-home-tab .home-inspiration-rail {
  display: block;
  column-count: 2;
  column-gap: 10px;
  overflow: visible;
  padding: 0;
}

html[data-theme="light"] body.agent-home-tab .home-inspiration-tile {
  display: flex;
  width: 100%;
  min-width: 0;
  aspect-ratio: 3 / 4;
  margin: 0 0 10px;
  break-inside: avoid;
  border-radius: 16px;
  box-shadow: 0 7px 18px rgba(29, 37, 60, 0.09);
}

html[data-theme="light"] body.agent-home-tab .home-inspiration-tile img {
  object-fit: cover;
}

html[data-theme="light"] body.agent-home-tab .home-inspiration-tile::before,
html[data-theme="light"] body.agent-home-tab .home-inspiration-tile::after {
  display: none !important;
  content: none !important;
}

html[data-theme="light"] body.agent-home-tab .home-inspiration-tile > .home-inspiration-overlay {
  display: block;
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 14, 24, 0) 0%, rgba(10, 14, 24, 0) 54%, rgba(10, 14, 24, 0.04) 63%, rgba(10, 14, 24, 0.3) 77%, rgba(10, 14, 24, 0.72) 94%, rgba(10, 14, 24, 0.84) 100%);
}

html[data-theme="light"] body.agent-home-tab .home-inspiration-tile > div {
  display: flex;
  z-index: 2;
  inset: auto 48px 14px 11px !important;
  right: 48px;
  bottom: 14px;
  left: 11px;
  height: auto !important;
  min-height: 0;
  padding: 0 !important;
  align-items: center;
  align-content: center;
  gap: 0;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-theme="light"] body.agent-home-tab .home-inspiration-tile > div::before {
  display: none !important;
  content: none !important;
}

html[data-theme="light"] body.agent-home-tab .home-inspiration-tile span {
  display: none !important;
}

html[data-theme="light"] body.agent-home-tab .home-inspiration-tile strong {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  width: 100%;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme="light"] body.agent-home-tab .home-inspiration-tile > b {
  top: 9px;
  right: 9px;
  bottom: auto;
  left: auto;
  z-index: 2;
  padding: 3px 7px;
  border-radius: 10px;
  color: #fff;
  background: #6554ef;
  font-size: 9px;
  line-height: 1;
}

html[data-theme="light"] body.agent-home-tab .home-inspiration-arrow {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  right: 9px;
  bottom: 9px;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  color: #1d2744;
  background: rgba(255, 255, 255, 0.88);
  font-style: normal;
}

html[data-theme="light"] body.agent-home-tab .home-inspiration-arrow .app-icon {
  width: 15px;
  height: 15px;
  stroke-width: 2.1;
}

@media (max-width: 380px) {
  html[data-theme="light"] body.agent-home-tab .home-inspiration-rail {
    column-gap: 8px;
  }

  html[data-theme="light"] body.agent-home-tab .home-inspiration-tile {
    margin-bottom: 8px;
    border-radius: 14px;
  }
}

html[data-theme="light"] body:not(.agent-home-tab) .inspiration-reframe-panel {
  display: grid;
  gap: 12px;
  padding: 22px 18px 24px;
  border: 1px solid var(--ui-line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(239, 243, 252, 0.9));
  box-shadow: var(--ui-shadow-soft);
}

html[data-theme="light"] body:not(.agent-home-tab) .inspiration-reframe-kicker {
  color: var(--ui-primary-deep);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

html[data-theme="light"] body:not(.agent-home-tab) .inspiration-reframe-panel h2 {
  margin: 0;
  color: var(--ui-text);
  font-size: 25px;
  line-height: 1.2;
  font-weight: 950;
}

html[data-theme="light"] body:not(.agent-home-tab) .inspiration-reframe-panel > p {
  margin: 0;
  color: var(--ui-muted);
  font-size: 13px;
  line-height: 1.65;
}

html[data-theme="light"] body:not(.agent-home-tab) .inspiration-reframe-grid {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

html[data-theme="light"] body:not(.agent-home-tab) .inspiration-reframe-grid div {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(229, 234, 243, 0.9);
}

html[data-theme="light"] body:not(.agent-home-tab) .inspiration-reframe-grid strong {
  color: var(--ui-text);
  font-size: 13px;
  font-weight: 900;
}

html[data-theme="light"] body:not(.agent-home-tab) .inspiration-reframe-grid span {
  color: var(--ui-muted);
  font-size: 11px;
}

html[data-theme="light"] body:not(.agent-home-tab) .inspiration-reframe-panel > em {
  justify-self: start;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--ui-primary-deep);
  background: var(--ui-primary-soft);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}

/* Temporary catalog framework: category tabs first, then one consistent card grid. */
html[data-theme="light"] body.ai-image-tab .workflow-catalog-head,
html[data-theme="light"] body.ai-video-tab .workflow-catalog-head,
html[data-theme="light"] body.ai-image-tab .workbench-one-shot,
html[data-theme="light"] body.ai-video-tab .short-video-home {
  display: none !important;
}

/* Image and video are independent creation pages, like the AI dialogue flow. */
html[data-theme="light"] body.ai-creation-page-active {
  overflow: hidden;
}

html[data-theme="light"] body.ai-creation-page-active .app-shell {
  display: flex;
  flex-direction: column;
  width: min(100%, 560px);
  height: 100dvh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #f3f6fc;
  box-shadow: none;
}

html[data-theme="light"] body.ai-creation-page-active .global-actions-bar,
html[data-theme="light"] body.ai-creation-page-active .bottom-nav {
  display: none !important;
}

html[data-theme="light"] body.ai-creation-page-active .screen {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
  gap: 0;
}

html[data-theme="light"] body.ai-creation-page-active .tab-panel[data-tab="poster"].active,
html[data-theme="light"] body.ai-creation-page-active .tab-panel[data-tab="workbench"].active {
  display: flex !important;
  flex: 0 0 auto;
  min-height: 100%;
  gap: 0;
  padding: 0 0 max(24px, env(safe-area-inset-bottom, 0px)) !important;
}

html[data-theme="light"] body.ai-creation-page-active .ai-creation-page-header {
  position: sticky;
  top: 0;
  z-index: 20;
  flex: 0 0 auto;
  min-height: 72px;
  padding: max(18px, env(safe-area-inset-top, 0px)) 20px 14px;
  border-bottom: 1px solid #e2e8f2;
  background: rgba(248, 250, 255, 0.96);
  backdrop-filter: blur(14px);
}

html[data-theme="light"] body.ai-creation-page-active .ai-creation-page-header span {
  color: #5147c9;
}

html[data-theme="light"] body.ai-creation-page-active .ai-creation-page-header h2 {
  color: #1d2636;
}

html[data-theme="light"] body.ai-creation-page-active .workflow-catalog-panel {
  padding: 12px 18px 24px;
}

html[data-theme="light"] body.ai-image-tab .app-shell,
html[data-theme="light"] body.ai-video-tab .app-shell {
  display: flex;
  flex-direction: column;
  height: calc(100svh - 28px);
  min-height: 0;
  overflow: hidden;
}

html[data-theme="light"] body.ai-image-tab .screen,
html[data-theme="light"] body.ai-video-tab .screen {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 0;
  gap: 0;
}

html[data-theme="light"] body.ai-image-tab .tab-panel[data-tab="workbench"].active,
html[data-theme="light"] body.ai-video-tab .tab-panel[data-tab="poster"].active {
  display: flex !important;
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
  overflow: visible;
  gap: 0;
  padding: 0 0 122px !important;
}

html[data-theme="light"] body.ai-image-tab .workflow-catalog-panel,
html[data-theme="light"] body.ai-video-tab .workflow-catalog-panel {
  width: 100%;
  max-width: none;
  gap: 0;
  padding: 12px 18px 24px;
}

html[data-theme="light"] body.ai-image-tab .workflow-category-bar,
html[data-theme="light"] body.ai-video-tab .workflow-category-bar {
  display: flex;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  margin: 0 0 12px;
  padding: 0 0 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

html[data-theme="light"] body.ai-image-tab .workflow-category-bar::-webkit-scrollbar,
html[data-theme="light"] body.ai-video-tab .workflow-category-bar::-webkit-scrollbar {
  display: none;
}

html[data-theme="light"] body.ai-image-tab .workflow-category-button,
html[data-theme="light"] body.ai-video-tab .workflow-category-button {
  flex: 0 0 auto;
  min-width: 66px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  color: var(--ui-muted);
  background: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

html[data-theme="light"] body.ai-image-tab .workflow-category-button.active,
html[data-theme="light"] body.ai-video-tab .workflow-category-button.active {
  border-color: #111827;
  color: #fff;
  background: #111827;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] body.ai-image-tab .workflow-category-button:active,
html[data-theme="light"] body.ai-video-tab .workflow-category-button:active {
  transform: scale(0.97);
}

html[data-theme="light"] body.ai-image-tab .workflow-catalog-list,
html[data-theme="light"] body.ai-video-tab .workflow-catalog-list {
  display: grid;
  gap: 0;
}

html[data-theme="light"] body.ai-image-tab .workflow-image-grid,
html[data-theme="light"] body.ai-video-tab .workflow-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

html[data-theme="light"] body.ai-image-tab .workflow-image-grid .workflow-card,
html[data-theme="light"] body.ai-video-tab .workflow-image-grid .workflow-card {
  position: relative;
  isolation: isolate;
  display: block;
  min-height: 0;
  aspect-ratio: 1.4 / 1;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #dce4f0;
  color: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
  transform: translateZ(0);
}

html[data-theme="light"] body.ai-image-tab .workflow-image-grid .workflow-card-image,
html[data-theme="light"] body.ai-video-tab .workflow-image-grid .workflow-card-image {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: auto;
  height: auto;
  border-radius: 0;
  background: #dce4f0;
}

html[data-theme="light"] body.ai-image-tab .workflow-image-grid .workflow-card-image::after,
html[data-theme="light"] body.ai-video-tab .workflow-image-grid .workflow-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 34%, rgba(6, 12, 24, 0.08) 47%, rgba(6, 12, 24, 0.84) 100%);
}

html[data-theme="light"] body.ai-image-tab .workflow-image-grid .workflow-card-image img,
html[data-theme="light"] body.ai-video-tab .workflow-image-grid .workflow-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

html[data-theme="light"] body.ai-image-tab .workflow-image-grid .workflow-card-copy,
html[data-theme="light"] body.ai-video-tab .workflow-image-grid .workflow-card-copy {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 42px 11px 12px;
  text-align: left;
  background: linear-gradient(180deg, transparent, rgba(6, 12, 24, 0.78));
}

html[data-theme="light"] body.ai-image-tab .workflow-image-grid .workflow-card-copy small,
html[data-theme="light"] body.ai-video-tab .workflow-image-grid .workflow-card-copy small {
  width: max-content;
  max-width: 100%;
  padding: 4px 7px;
  overflow: hidden;
  border-radius: 999px;
  color: #111827;
  background: rgba(255, 255, 255, 0.9);
  font-size: 9px;
  line-height: 1;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme="light"] body.ai-image-tab .workflow-image-grid .workflow-card-copy strong,
html[data-theme="light"] body.ai-video-tab .workflow-image-grid .workflow-card-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  line-height: 1.08;
  font-weight: 950;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

html[data-theme="light"] body.ai-image-tab .workflow-image-grid .workflow-card-copy em,
html[data-theme="light"] body.ai-image-tab .workflow-image-grid .workflow-card-arrow,
html[data-theme="light"] body.ai-video-tab .workflow-image-grid .workflow-card-copy em,
html[data-theme="light"] body.ai-video-tab .workflow-image-grid .workflow-card-arrow {
  display: none;
}

html[data-theme="light"] body.ai-image-tab .workbench-canvas,
html[data-theme="light"] body.ai-image-tab .workbench-composer,
html[data-theme="light"] body.ai-video-tab .short-video-home {
  display: none !important;
}

@media (max-width: 380px) {
  html[data-theme="light"] body.ai-image-tab .workflow-image-grid,
  html[data-theme="light"] body.ai-video-tab .workflow-image-grid {
    gap: 8px;
  }

  html[data-theme="light"] body.ai-image-tab .workflow-image-grid .workflow-card-copy,
  html[data-theme="light"] body.ai-video-tab .workflow-image-grid .workflow-card-copy {
    padding-inline: 9px;
  }
}

/* Home keeps its own visual mode. A workflow must explicitly exit that mode instead of inheriting it. */
html[data-theme="light"] body.workflow-runner-active {
  overflow: hidden;
}

html[data-theme="light"] body.workflow-runner-active .bottom-nav {
  display: none !important;
}

html[data-theme="light"] body.workflow-runner-active .workflow-runner {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: block;
  padding: 0;
  overflow: hidden;
  background: #f3f6fc;
}

/* The brand-frame picker is opened from inside the full-screen workflow. */
html[data-theme="light"] body.workflow-runner-active #imageFrameBackdrop {
  z-index: 3090;
}

html[data-theme="light"] body.workflow-runner-active #imageFrameSheet {
  z-index: 3100;
}

html[data-theme="light"] body.workflow-runner-active .workflow-runner-shell {
  width: min(100%, 560px);
  height: 100dvh;
  min-height: 100dvh;
  margin: 0 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 0;
  background: #f3f6fc;
  box-shadow: none;
}

html[data-theme="light"] body.workflow-runner-active .workflow-runner-head {
  position: sticky;
  top: 0;
  z-index: 3;
  min-height: 72px;
  padding: max(18px, env(safe-area-inset-top, 0px)) 20px 14px;
  border-bottom: 1px solid #e2e8f2;
  background: #f8faff;
  backdrop-filter: none;
}

html[data-theme="light"] body.workflow-runner-active .workflow-runner-body {
  gap: 12px;
  padding: 16px 18px 150px;
}

html[data-theme="light"] body.workflow-runner-active .workflow-runner-generation-view {
  align-content: start;
  min-height: calc(100dvh - 72px);
}

html[data-theme="light"] body.workflow-runner-active .workflow-runner-generation-view .workflow-runner-status {
  min-height: 172px;
  margin-top: 8px;
}

html[data-theme="light"] body.workflow-runner-active .workflow-runner-generation-view .workflow-runner-result {
  margin-top: 8px;
}

html[data-theme="light"] body.workflow-runner-active .workflow-skill-panel {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 16px;
  border: 1px solid #e2e8f2;
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}

html[data-theme="light"] body.workflow-runner-active :where(.workflow-skill-panel-head, .workflow-skill-prompt-head) {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

html[data-theme="light"] body.workflow-runner-active :where(.workflow-skill-panel-head > div, .workflow-skill-prompt-head > div) {
  display: grid;
  gap: 3px;
}

html[data-theme="light"] body.workflow-runner-active :where(.workflow-skill-panel-head span, .workflow-skill-prompt-head span) {
  color: #4f46c9;
  font-size: 11px;
  font-weight: 800;
}

html[data-theme="light"] body.workflow-runner-active .workflow-skill-panel-head b {
  padding: 4px 7px;
  border-radius: 7px;
  color: #4f46c9;
  background: #f0efff;
  font-size: 10px;
  line-height: 1;
}

html[data-theme="light"] body.workflow-runner-active .workflow-skill-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

html[data-theme="light"] body.workflow-runner-active .workflow-skill-field {
  display: grid;
  min-width: 0;
  gap: 5px;
}

html[data-theme="light"] body.workflow-runner-active .workflow-skill-field-wide {
  grid-column: 1 / -1;
}

html[data-theme="light"] body.workflow-runner-active .workflow-skill-field > span {
  color: #1d2636;
  font-size: 12px;
  font-weight: 750;
}

html[data-theme="light"] body.workflow-runner-active :where(.workflow-skill-field input, .workflow-skill-field select, .workflow-skill-field textarea, .workflow-skill-prompt) {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid #dfe6f0;
  border-radius: 10px;
  color: #1d2636;
  background: #fff;
  font: inherit;
  font-size: 12px;
}

html[data-theme="light"] body.workflow-runner-active :where(.workflow-skill-field input, .workflow-skill-field select) {
  min-height: 38px;
  padding: 0 10px;
}

html[data-theme="light"] body.workflow-runner-active .workflow-skill-field textarea {
  min-height: 74px;
  padding: 9px 10px;
  resize: vertical;
}

html[data-theme="light"] body.workflow-runner-active .workflow-skill-prompt-head {
  align-items: center;
}

html[data-theme="light"] body.workflow-runner-active .workflow-skill-prompt-head button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #dcd8ff;
  border-radius: 9px;
  color: #4f46c9;
  background: #f0efff;
  font-size: 11px;
  font-weight: 750;
}

html[data-theme="light"] body.workflow-runner-active .workflow-skill-prompt {
  min-height: 142px;
  padding: 11px;
  line-height: 1.65;
  resize: vertical;
}

html[data-theme="light"] body.workflow-runner-active .workflow-runner-footer {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 4;
  width: min(100%, 560px);
  transform: translateX(-50%);
  padding: 12px 18px max(16px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #e2e8f2;
  background: #fff;
  box-shadow: 0 -8px 24px rgba(23, 31, 53, 0.06);
}

html[data-theme="light"] body.workflow-runner-active .workflow-runner-start {
  min-height: 48px;
  margin-top: 10px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: #6257e9;
  box-shadow: 0 10px 20px rgba(98, 87, 233, 0.2);
}

html[data-theme="light"] body.workflow-runner-active .workflow-runner-start:disabled {
  color: rgba(255, 255, 255, 0.72);
  background: #a5aab5;
  box-shadow: none;
}

@media (max-width: 380px) {
  html[data-theme="light"] body.workflow-runner-active .workflow-skill-fields {
    grid-template-columns: 1fr;
  }

  html[data-theme="light"] body.workflow-runner-active .workflow-skill-field-wide {
    grid-column: auto;
  }
}

/* Calendar and notices are product pages, not legacy pop-up sheets. */
html[data-theme="light"] body:where(.calendar-page-active, .notice-page-active) {
  overflow: hidden;
}

html[data-theme="light"] body:where(.calendar-page-active, .notice-page-active) .bottom-nav {
  display: none !important;
}

html[data-theme="light"] body:where(.calendar-page-active, .notice-page-active) :where(#calendarBackdrop, #noticeBackdrop) {
  display: none !important;
}

html[data-theme="light"] body.calendar-page-active .calendar-sheet,
html[data-theme="light"] body.notice-page-active .notice-sheet {
  position: fixed;
  inset: 0;
  z-index: 3000;
  width: min(100%, 560px);
  height: 100dvh;
  max-height: none;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #f3f6fc;
  box-shadow: none;
  animation: none;
}

html[data-theme="light"] body.calendar-page-active .calendar-sheet {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
}

/* Date details must sit above the full-screen calendar page. */
html[data-theme="light"] body.calendar-page-active #calendarDateBackdrop {
  z-index: 3010;
}

html[data-theme="light"] body.calendar-page-active #calendarDateSheet {
  z-index: 3020;
}

html[data-theme="light"] body.notice-page-active .notice-sheet {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0;
}

html[data-theme="light"] body:where(.calendar-page-active, .notice-page-active) :where(.calendar-sheet-head, .notice-sheet-head) {
  position: relative;
  min-height: 76px;
  padding: max(18px, env(safe-area-inset-top, 0px)) 20px 14px;
  border-bottom: 1px solid #e2e8f2;
  background: #f8faff;
}

html[data-theme="light"] body:where(.calendar-page-active, .notice-page-active) :where(.calendar-sheet-head span, .notice-sheet-head span) {
  display: inline-flex;
  margin: 0 0 4px;
  padding: 0;
  border-radius: 0;
  color: #4f46c9;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

html[data-theme="light"] body:where(.calendar-page-active, .notice-page-active) :where(.calendar-sheet-head h3, .notice-sheet-head h3) {
  color: #172033;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: 0;
}

html[data-theme="light"] body.calendar-page-active .calendar-sheet-head p {
  max-width: 320px;
  margin: 5px 0 0;
  color: #707b8d;
  font-size: 12px;
  line-height: 1.45;
}

html[data-theme="light"] body.calendar-page-active .calendar-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  min-height: 72px;
  padding: max(18px, env(safe-area-inset-top, 0px)) 20px 14px;
}

html[data-theme="light"] body.calendar-page-active .calendar-sheet-head > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

html[data-theme="light"] body.calendar-page-active #closeCalendar {
  position: static;
  order: -1;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  min-height: 34px;
  margin: 0;
  border-radius: 50%;
  font-size: 0;
}

html[data-theme="light"] body.calendar-page-active #closeCalendar::before {
  content: "‹";
  font-size: 28px;
  font-weight: 300;
  line-height: 28px;
}

html[data-theme="light"] body:where(.calendar-page-active, .notice-page-active) :where(#closeCalendar, #closeNotice) {
  position: absolute;
  top: max(18px, env(safe-area-inset-top, 0px));
  right: 18px;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid #e2e8f2;
  border-radius: 50%;
  color: #647084;
  background: #fff;
  box-shadow: none;
  font-size: 0;
}

html[data-theme="light"] body:where(.calendar-page-active, .notice-page-active) :where(#closeCalendar, #closeNotice)::before {
  content: "‹";
  font-size: 28px;
  font-weight: 300;
  line-height: 28px;
}

html[data-theme="light"] body.calendar-page-active .calendar-sheet-content,
html[data-theme="light"] body.notice-page-active .notice-sheet-content {
  min-height: 0;
  max-height: none;
  padding: 18px;
  overflow-y: auto;
  background: #f3f6fc;
}

html[data-theme="light"] body.calendar-page-active .calendar-section + .calendar-section {
  margin-top: 20px;
}

html[data-theme="light"] body.calendar-page-active .calendar-section-title {
  margin-bottom: 9px;
}

html[data-theme="light"] body.calendar-page-active .calendar-section-title strong {
  color: #172033;
  font-size: 16px;
  font-weight: 850;
}

html[data-theme="light"] body.calendar-page-active .calendar-section-title span {
  color: #7a8496;
  font-size: 12px;
}

html[data-theme="light"] body.calendar-page-active .calendar-list {
  gap: 10px;
}

html[data-theme="light"] body.calendar-page-active .calendar-item,
html[data-theme="light"] body.calendar-page-active .calendar-hero {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid #e2e8f2;
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}

html[data-theme="light"] body.calendar-page-active .calendar-item.is-next {
  border-color: rgba(98, 87, 233, 0.36);
  background: #fff;
  box-shadow: 0 10px 24px rgba(98, 87, 233, 0.1);
}

html[data-theme="light"] body.calendar-page-active .calendar-date,
html[data-theme="light"] body.calendar-page-active .calendar-item.is-next .calendar-date {
  width: 58px;
  min-height: 58px;
  border-radius: 13px;
  color: #4f46c9;
  background: #f0efff;
}

html[data-theme="light"] body.calendar-page-active .calendar-date strong,
html[data-theme="light"] body.calendar-page-active .calendar-date span,
html[data-theme="light"] body.calendar-page-active .calendar-item.is-next .calendar-date :where(strong, span) {
  color: inherit;
}

html[data-theme="light"] body.calendar-page-active .calendar-item h4 {
  color: #172033;
  font-size: 15px;
  font-weight: 850;
}

html[data-theme="light"] body.calendar-page-active .calendar-item h4 em {
  margin-left: 6px;
  padding: 3px 6px;
  border-radius: 7px;
  color: #4f46c9;
  background: #f0efff;
  font-size: 10px;
  font-style: normal;
}

html[data-theme="light"] body.calendar-page-active .calendar-item p,
html[data-theme="light"] body.calendar-page-active .calendar-item-meta {
  color: #758093;
  font-size: 12px;
}

html[data-theme="light"] body.calendar-page-active .calendar-item-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

html[data-theme="light"] body.calendar-page-active .calendar-item-actions button {
  min-height: 38px;
  padding: 0 6px;
  border: 1px solid #e0e6f0;
  border-radius: 11px;
  color: #4b5870;
  background: #fff;
  box-shadow: none;
  font-size: 12px;
  font-weight: 750;
}

html[data-theme="light"] body.calendar-page-active .calendar-item-actions .calendar-poster-button {
  border-color: #6257e9;
  color: #fff;
  background: #6257e9;
}

html[data-theme="light"] body.notice-page-active .notice-sheet-content {
  display: grid;
  align-content: start;
  gap: 10px;
}

html[data-theme="light"] body.notice-page-active .notice-block {
  gap: 10px;
  padding: 14px;
  border: 1px solid #e2e8f2;
  border-radius: 16px;
  background: #fff;
}

html[data-theme="light"] body.notice-page-active .notice-block + .notice-block {
  margin-top: 0;
}

html[data-theme="light"] body.notice-page-active .notice-block > strong {
  color: #172033;
  font-size: 15px;
  font-weight: 850;
}

html[data-theme="light"] body.notice-page-active .notice-sheet-content p,
html[data-theme="light"] body.notice-page-active .notice-log-item strong {
  color: #566176;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 600;
}

html[data-theme="light"] body.notice-page-active .notice-log-item {
  gap: 5px;
  padding: 12px 0;
  border-top-color: #edf0f5;
}

html[data-theme="light"] body.notice-page-active .notice-log-item span {
  color: #4f46c9;
  font-size: 11px;
  font-weight: 800;
}

html[data-theme="light"] body.notice-page-active #noticeConfirm {
  min-height: 48px;
  margin: 12px 18px max(16px, env(safe-area-inset-bottom, 0px));
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: #6257e9;
  box-shadow: none;
}

/* System notices use the same left-back secondary-page header as the other product pages. */
html[data-theme="light"] body.notice-page-active .notice-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  min-height: 72px;
  padding: max(18px, env(safe-area-inset-top, 0px)) 20px 14px;
}

html[data-theme="light"] body.notice-page-active #closeNotice {
  position: static;
  order: -1;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  min-height: 34px;
  margin: 0;
  border: 1px solid #e2e8f2;
  border-radius: 50%;
  color: #647084;
  background: #fff;
  font-size: 0;
}

html[data-theme="light"] body.notice-page-active #closeNotice::before {
  content: "‹";
  font-size: 28px;
  font-weight: 300;
  line-height: 28px;
}

html[data-theme="light"] body.notice-page-active .notice-rich-content {
  display: block;
}

html[data-theme="light"] body.notice-page-active .notice-rich-content :where(h2, h3) {
  margin: 4px 0 10px;
  color: #172033;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 850;
}

html[data-theme="light"] body.notice-page-active .notice-rich-content :where(p, li, blockquote) {
  margin: 8px 0;
  color: #566176;
  font-size: 13px;
  line-height: 1.6;
}

html[data-theme="light"] body.notice-page-active .notice-rich-content :where(ul, ol) {
  margin: 8px 0;
  padding-left: 20px;
}

html[data-theme="light"] body.notice-page-active .notice-rich-content blockquote {
  padding-left: 10px;
  border-left: 3px solid #6257e9;
}

html[data-theme="light"] body.notice-page-active .notice-rich-content a {
  color: #5147c9;
  text-decoration: underline;
}

html[data-theme="light"] body.notice-page-active .notice-rich-content img {
  width: 100%;
  max-height: 360px;
  display: block;
  margin: 10px 0;
  border-radius: 12px;
  object-fit: contain;
}

/* Every profile/detail page uses the same full-screen secondary container. */
html[data-theme="light"] body.subpage-scroll-lock {
  overflow: hidden;
}

html[data-theme="light"] body.subpage-scroll-lock .bottom-nav {
  display: none !important;
}

html[data-theme="light"] body.subpage-scroll-lock #subpage {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(100%, 560px);
  height: 100dvh;
  margin: 0 auto;
  transform: none;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #f3f6fc;
  box-shadow: none;
}

html[data-theme="light"] body.subpage-scroll-lock .subpage-head {
  min-height: 72px;
  padding: max(18px, env(safe-area-inset-top, 0px)) 20px 14px;
  border-bottom: 1px solid #e2e8f2;
  background: #f8faff;
}

html[data-theme="light"] body.subpage-scroll-lock .subpage-head h3 {
  color: #172033;
  font-size: 21px;
  font-weight: 850;
  letter-spacing: 0;
}

html[data-theme="light"] body.subpage-scroll-lock .subpage-head #closeSubpage {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e2e8f2;
  border-radius: 50%;
  color: transparent;
  background: #fff;
  box-shadow: none;
}

html[data-theme="light"] body.subpage-scroll-lock .subpage-head #closeSubpage::before {
  content: "‹";
  display: block;
  color: #647084;
  font-size: 28px;
  font-weight: 300;
  line-height: 28px;
}

html[data-theme="light"] body.subpage-scroll-lock .subpage-body {
  min-height: 0;
  padding: 18px;
  overflow-y: auto;
  background: #f3f6fc;
}

html[data-theme="light"] body.subpage-scroll-lock .subpage-panel {
  border: 1px solid #e2e8f2;
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}

html[data-theme="light"] body.subpage-scroll-lock :where(.subpage-body input, .subpage-body select, .subpage-body textarea) {
  border-color: #dfe6f0;
  border-radius: 12px;
  background: #fff;
  color: #172033;
  box-shadow: none;
}

html[data-theme="light"] body.subpage-scroll-lock :where(.subpage-action-row, .sheet-actions) .primary-button {
  border: 0;
  color: #fff;
  background: #6257e9;
  box-shadow: none;
}

html[data-theme="light"] body.subpage-scroll-lock .store-archive-summary {
  border: 1px solid rgba(98, 87, 233, 0.24);
  background: linear-gradient(135deg, #3f3695, #6257e9);
  box-shadow: none;
}

html[data-theme="light"] body.subpage-scroll-lock .store-archive-summary > i {
  background: rgba(255, 255, 255, 0.24);
}

html[data-theme="light"] body.subpage-scroll-lock .store-archive-summary > i b,
html[data-theme="light"] body.subpage-scroll-lock .store-archive-mini-progress b {
  background: #8b80ff;
}

html[data-theme="light"] body.subpage-scroll-lock .store-archive-tier-grid article {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.14);
}

html[data-theme="light"] body.subpage-scroll-lock .store-archive-tier-grid button {
  color: #eef0ff;
  background: rgba(255, 255, 255, 0.16);
}

html[data-theme="light"] body.subpage-scroll-lock .store-archive-tier-grid button.done {
  color: #d6f7e2;
  background: rgba(73, 217, 143, 0.22);
}

html[data-theme="light"] body.subpage-scroll-lock .store-capability-card,
html[data-theme="light"] body.subpage-scroll-lock .store-material-card,
html[data-theme="light"] body.subpage-scroll-lock .store-archive-section {
  border: 1px solid #e2e8f2;
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}

html[data-theme="light"] body.subpage-scroll-lock .store-capability-card em,
html[data-theme="light"] body.subpage-scroll-lock .store-archive-section-head em {
  color: #4f46c9;
  background: #f0efff;
}

html[data-theme="light"] body.subpage-scroll-lock .store-capability-card button,
html[data-theme="light"] body.subpage-scroll-lock .store-signal-chips button.active {
  color: #fff;
  background: #6257e9;
}

html[data-theme="light"] body.subpage-scroll-lock .store-priority-chips {
  border-color: #e1defc;
  background: #f6f5ff;
}

html[data-theme="light"] body.subpage-scroll-lock .store-priority-chips > span {
  color: #4f46c9;
}

html[data-theme="light"] body.subpage-scroll-lock .store-priority-chips button {
  border-color: #e1defc;
  color: #4f46c9;
  background: #fff;
}

html[data-theme="light"] body.subpage-scroll-lock :where(.marketing-image-notice, .record-guide) {
  border-color: rgba(98, 87, 233, 0.22);
  background: #f6f5ff;
  color: #4f46c9;
  box-shadow: none;
}

html[data-theme="light"] body.subpage-scroll-lock :where(.marketing-image-notice, .record-guide) :where(strong, span) {
  color: inherit;
}

html[data-theme="light"] body.subpage-scroll-lock :where(.history-filter-row, .task-filter-row) .chip.active {
  border-color: #6257e9;
  color: #fff;
  background: #6257e9;
}

html[data-theme="light"] body.subpage-scroll-lock #subpage .marketing-image-notice.inline-notice.record-guide {
  border-color: rgba(98, 87, 233, 0.22);
  background: #f6f5ff;
  color: #4f46c9;
}

html[data-theme="light"] body.subpage-scroll-lock #subpage .marketing-image-notice.inline-notice.record-guide :where(strong, span) {
  color: inherit;
}

/* AI one-click promo package: one compact, predictable workflow rather than a long form. */
html[data-theme="light"] body.subpage-scroll-lock .promo-pack-panel {
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-hero {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #25215d, #6257e9);
  box-shadow: 0 14px 28px rgba(50, 44, 135, 0.18);
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-hero > span {
  color: #ddd9ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-hero h4 {
  margin: 0;
  color: #fff;
  font-size: 21px;
  line-height: 1.24;
  font-weight: 850;
  letter-spacing: 0;
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-output-pills {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-output-pills span {
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 11px;
  font-weight: 700;
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-step,
html[data-theme="light"] body.subpage-scroll-lock .promo-pack-more-options {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e2e8f2;
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-step-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-step-head > i {
  display: grid;
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  place-items: center;
  border-radius: 8px;
  color: #4f46c9;
  background: #f0efff;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-step-head > div {
  display: grid;
  gap: 2px;
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-step-head strong,
html[data-theme="light"] body.subpage-scroll-lock .promo-pack-more-options summary {
  color: #172033;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 850;
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-step-head span {
  color: #7a8496;
  font-size: 12px;
  line-height: 1.2;
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-field {
  display: block;
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-field :is(input, textarea) {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #dfe6f0;
  border-radius: 12px;
  color: #172033;
  background: #fff;
  box-shadow: none;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-field :is(input, textarea):focus {
  border-color: #6257e9;
  box-shadow: 0 0 0 3px rgba(98, 87, 233, 0.11);
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-photo-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 1px dashed #d7ddec;
  border-radius: 13px;
  background: #fbfcff;
  box-shadow: none;
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-photo-button {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  color: #6257e9;
  background: #f0efff;
  box-shadow: none;
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-photo-button img {
  border-radius: 9px;
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-camera-icon,
html[data-theme="light"] body.subpage-scroll-lock .promo-pack-camera-icon::before {
  background: #6257e9;
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-camera-icon::after {
  background: #f0efff;
  box-shadow: 0 0 0 2px rgba(98, 87, 233, 0.18);
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-photo-card > div {
  gap: 3px;
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-photo-card > div strong {
  color: #344056;
  font-size: 13px;
  font-weight: 800;
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-photo-card > div span,
html[data-theme="light"] body.subpage-scroll-lock .promo-pack-photo-optional {
  color: #8791a5;
  font-size: 11px;
  font-weight: 600;
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-photo-change {
  padding: 6px 8px;
  border: 0;
  border-radius: 8px;
  color: #6257e9;
  background: #f0efff;
  font-size: 11px;
  font-weight: 750;
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-option-group {
  display: grid;
  gap: 8px;
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-option-heading strong {
  color: #566176;
  font-size: 12px;
  font-weight: 800;
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-option-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-option-row button,
html[data-theme="light"] body.subpage-scroll-lock .promo-pack-purpose-row button {
  min-width: 0;
  min-height: 54px;
  padding: 7px 5px;
  border: 1px solid #e1e7f0;
  border-radius: 11px;
  color: #4c586e;
  background: #fff;
  box-shadow: none;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, transform 140ms ease;
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-option-row button:active,
html[data-theme="light"] body.subpage-scroll-lock .promo-pack-purpose-row button:active {
  transform: scale(0.98);
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-option-row button.active,
html[data-theme="light"] body.subpage-scroll-lock .promo-pack-purpose-row button.active {
  border-color: #6257e9;
  color: #4f46c9;
  background: #f0efff;
  box-shadow: inset 0 0 0 1px rgba(98, 87, 233, 0.06);
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-option-row strong,
html[data-theme="light"] body.subpage-scroll-lock .promo-pack-purpose-row strong {
  display: block;
  color: inherit;
  font-size: 12px;
  line-height: 1.18;
  font-weight: 800;
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-option-row small,
html[data-theme="light"] body.subpage-scroll-lock .promo-pack-purpose-row span {
  display: block;
  margin-top: 3px;
  color: #8791a5;
  font-size: 9px;
  line-height: 1.15;
  font-weight: 600;
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-purpose-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-purpose-row button {
  min-height: 58px;
  padding-inline: 3px;
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-settings-grid {
  display: grid;
  gap: 12px;
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-settings-grid .promo-pack-option-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-settings-grid .promo-pack-option-group:last-child .promo-pack-option-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-calendar-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  padding: 10px 11px;
  border: 1px solid #e1e7f0;
  border-radius: 12px;
  text-align: left;
  background: #fbfcff;
  box-shadow: none;
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-calendar-toggle > span:first-child {
  color: #344056;
  font-size: 13px;
  font-weight: 800;
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-calendar-toggle small {
  grid-column: 1;
  color: #8791a5;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 600;
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-calendar-toggle .switch-track {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 39px;
  height: 23px;
  border: 0;
  border-radius: 14px;
  background: #dce2ec;
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-calendar-toggle .switch-dot {
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  background: #fff;
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-calendar-toggle.active {
  border-color: rgba(98, 87, 233, 0.28);
  background: #f6f5ff;
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-calendar-toggle.active .switch-track {
  background: #6257e9;
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-calendar-toggle.active .switch-dot {
  transform: translateX(16px);
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-more-options {
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-more-options summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  color: #566176;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-more-options summary::-webkit-details-marker {
  display: none;
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-more-options summary span {
  color: #8791a5;
  font-size: 11px;
  font-weight: 600;
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-more-options[open] {
  padding: 12px;
  border: 1px solid #e2e8f2;
  border-radius: 14px;
  background: #fff;
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-generate {
  position: static;
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: #6257e9;
  box-shadow: 0 12px 24px rgba(98, 87, 233, 0.22);
  font-size: 15px;
  font-weight: 800;
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-empty {
  padding: 12px 14px;
  border: 1px solid #e2e8f2;
  border-radius: 14px;
  color: #7a8496;
  background: #fbfcff;
}

html[data-theme="light"] body.subpage-scroll-lock .promo-pack-empty strong {
  color: #344056;
  font-size: 14px;
  font-weight: 800;
}

/* The home CTA uses the same action language as workflow pages. */
body.agent-home-tab .home-promo-pack-hero {
  outline: 1px solid rgba(98, 87, 233, 0.16);
}

body.agent-home-tab .home-promo-pack-hero:focus-visible {
  outline: 3px solid rgba(98, 87, 233, 0.32);
  outline-offset: 3px;
}

/* Password visibility is an icon action, with a tooltip and accessible label. */
html[data-theme="light"] body .password-toggle {
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 0;
}

html[data-theme="light"] body .password-toggle .app-icon {
  width: 17px;
  height: 17px;
  stroke-width: 1.9;
}

/* A handoff from the promo pack opens the actual generator, not its catalog. */
html[data-theme="light"] body.workbench-compose-entry.ai-image-tab .workflow-catalog-panel,
html[data-theme="light"] body.workbench-compose-entry.ai-image-tab .workbench-one-shot,
html[data-theme="light"] body.workbench-compose-entry.ai-video-tab .workflow-catalog-panel {
  display: none !important;
}

html[data-theme="light"] body.workbench-compose-entry.ai-image-tab .workbench-canvas,
html[data-theme="light"] body.workbench-compose-entry.ai-image-tab .workbench-composer,
html[data-theme="light"] body.workbench-compose-entry.ai-video-tab .short-video-home {
  display: block !important;
}

html[data-theme="light"] body.workbench-compose-entry .tab-panel[data-tab="workbench"],
html[data-theme="light"] body.workbench-compose-entry .tab-panel[data-tab="poster"] {
  padding-bottom: 122px !important;
}

html[data-theme="light"] body.workflow-runner-active .workflow-material-panel,
html[data-theme="light"] body.workflow-runner-active .workflow-model-panel {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 12px;
  border: 1px solid #e1e6f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}

html[data-theme="light"] body.workflow-runner-active .workflow-material-content,
html[data-theme="light"] body.workflow-runner-active .workflow-model-grid {
  display: grid;
  gap: 8px;
}

html[data-theme="light"] body.workflow-runner-active .workflow-model-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html[data-theme="light"] body.workflow-runner-active .workflow-material-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

html[data-theme="light"] body.workflow-runner-active .workflow-material-thumb,
html[data-theme="light"] body.workflow-runner-active .workflow-material-file {
  min-width: 76px;
  display: grid;
  gap: 5px;
  justify-items: center;
  color: #667085;
  font-size: 11px;
  text-align: center;
}

html[data-theme="light"] body.workflow-runner-active .workflow-material-thumb img,
html[data-theme="light"] body.workflow-runner-active .workflow-material-file .app-icon {
  width: 54px;
  height: 54px;
  display: block;
  border-radius: 11px;
  object-fit: cover;
  color: #6a5af0;
  background: #f1efff;
}

html[data-theme="light"] body.workflow-runner-active .workflow-material-thumb em,
html[data-theme="light"] body.workflow-runner-active .workflow-material-file em {
  max-width: 76px;
  overflow: hidden;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme="light"] body.workflow-runner-active .workflow-material-empty {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #8a93a5;
  font-size: 12px;
  background: #f8f9fc;
  border-radius: 12px;
}

html[data-theme="light"] body.workflow-runner-active .workflow-material-empty .app-icon {
  width: 20px;
  height: 20px;
  color: #6a5af0;
}

html[data-theme="light"] body.workflow-runner-active .workflow-material-add {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px dashed #cfc9ff;
  border-radius: 12px;
  color: #5b50d6;
  background: #faf9ff;
  font-size: 12px;
  cursor: pointer;
}

html[data-theme="light"] body.workflow-runner-active .workflow-material-add span {
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

html[data-theme="light"] body.workflow-runner-active .workflow-panel-heading {
  display: grid;
  gap: 4px;
}

html[data-theme="light"] body.workflow-runner-active .workflow-panel-heading span {
  color: #5b50d6;
  font-size: 11px;
  font-weight: 800;
}

html[data-theme="light"] body.workflow-runner-active .workflow-panel-heading strong {
  color: #1d2636;
  font-size: 16px;
  font-weight: 850;
}

html[data-theme="light"] body.workflow-runner-active .workflow-model-option {
  min-width: 0;
  display: grid;
  gap: 2px;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid #e1e6f0;
  border-radius: 12px;
  color: #1d2636;
  background: #fff;
  text-align: left;
}

html[data-theme="light"] body.workflow-runner-active .workflow-model-option.active {
  border-color: #7568f4;
  background: #f2f0ff;
  box-shadow: 0 0 0 2px rgba(117, 104, 244, 0.1);
}

html[data-theme="light"] body.workflow-runner-active .workflow-model-option strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme="light"] body.workflow-runner-active .workflow-model-option span {
  overflow: hidden;
  color: #7b8494;
  font-size: 10px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme="light"] body.workflow-runner-active .workflow-runner-result-select {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #dcd8ff;
  border-radius: 11px;
  color: #5b50d6;
  background: #faf9ff;
  font-size: 12px;
  font-weight: 800;
}

/* Unified creative flow baseline: image, video, calendar and skill flows share these controls. */
html[data-theme="light"] body.xiaohongshu-assistant-active .xiaohongshu-assistant-flow,
html[data-theme="light"] body.cargo-video-active .cargo-video-flow {
  display: block;
  overflow: hidden;
  padding: 0;
  background: #f5f7fb;
}

html[data-theme="light"] body.xiaohongshu-assistant-active .xiaohongshu-assistant-shell,
html[data-theme="light"] body.cargo-video-active .cargo-video-shell {
  width: min(100%, 560px);
  height: 100%;
  min-height: 100%;
  margin: 0 auto;
  box-shadow: none;
  background: #f5f7fb;
}

html[data-theme="light"] body.xiaohongshu-assistant-active .xiaohongshu-assistant-header,
html[data-theme="light"] body.cargo-video-active .cargo-video-header {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  min-height: 72px;
  padding: max(18px, env(safe-area-inset-top)) 20px 14px;
  border-bottom: 1px solid #e2e8f2;
  background: #f8faff;
}

html[data-theme="light"] body.xiaohongshu-assistant-active .xiaohongshu-assistant-header > div,
html[data-theme="light"] body.cargo-video-active .cargo-video-header > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

html[data-theme="light"] body.xiaohongshu-assistant-active .xiaohongshu-assistant-header > div > span,
html[data-theme="light"] body.cargo-video-active .cargo-video-header > div > span {
  color: #5147c9;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
}

html[data-theme="light"] body.xiaohongshu-assistant-active .xiaohongshu-assistant-header h2,
html[data-theme="light"] body.cargo-video-active .cargo-video-header h2 {
  margin: 0;
  overflow: hidden;
  color: #172033;
  font-size: 21px;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme="light"] body.xiaohongshu-assistant-active .xiaohongshu-assistant-header .workflow-runner-close,
html[data-theme="light"] body.cargo-video-active .cargo-video-header .workflow-runner-close {
  position: static;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0 0 3px;
  border: 1px solid #e2e8f2;
  border-radius: 50%;
  color: #657084;
  background: #fff;
  box-shadow: 0 5px 14px rgba(31, 45, 76, 0.08);
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
}

html[data-theme="light"] body.xiaohongshu-assistant-active .xiaohongshu-assistant-stepper,
html[data-theme="light"] body.cargo-video-active .cargo-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 11px 18px 13px;
  background: #f3f6fc;
}

html[data-theme="light"] body.xiaohongshu-assistant-active .xiaohongshu-assistant-stepper > span,
html[data-theme="light"] body.cargo-video-active .cargo-stepper > span {
  flex: 0 0 auto;
  color: #98a2b3;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

html[data-theme="light"] body.xiaohongshu-assistant-active .xiaohongshu-assistant-stepper > span.active,
html[data-theme="light"] body.xiaohongshu-assistant-active .xiaohongshu-assistant-stepper > span.done,
html[data-theme="light"] body.xiaohongshu-assistant-active .xiaohongshu-assistant-stepper > span.is-active,
html[data-theme="light"] body.xiaohongshu-assistant-active .xiaohongshu-assistant-stepper > span.is-done,
html[data-theme="light"] body.cargo-video-active .cargo-stepper > span.active,
html[data-theme="light"] body.cargo-video-active .cargo-stepper > span.done,
html[data-theme="light"] body.cargo-video-active .cargo-stepper > span.is-active,
html[data-theme="light"] body.cargo-video-active .cargo-stepper > span.is-done {
  color: #5147c9;
}

html[data-theme="light"] body.xiaohongshu-assistant-active .xiaohongshu-assistant-stepper > i,
html[data-theme="light"] body.cargo-video-active .cargo-stepper > i {
  flex: 1 1 auto;
  height: 1px;
  min-width: 12px;
  background: #dfe5ef;
}

html[data-theme="light"] body.xiaohongshu-assistant-active .workflow-model-panel,
html[data-theme="light"] body.cargo-video-active .workflow-model-panel {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 12px;
  border: 1px solid #e1e6f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}

html[data-theme="light"] body.xiaohongshu-assistant-active .workflow-model-grid,
html[data-theme="light"] body.cargo-video-active .workflow-model-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

html[data-theme="light"] body.xiaohongshu-assistant-active .workflow-model-option,
html[data-theme="light"] body.cargo-video-active .workflow-model-option {
  min-width: 0;
  min-height: 52px;
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid #e1e6f0;
  border-radius: 12px;
  color: #1d2636;
  background: #fff;
  text-align: left;
}

html[data-theme="light"] body.xiaohongshu-assistant-active .workflow-model-option.active,
html[data-theme="light"] body.cargo-video-active .workflow-model-option.active {
  border-color: #7568f4;
  background: #f2f0ff;
  box-shadow: 0 0 0 2px rgba(117, 104, 244, 0.1);
}

html[data-theme="light"] body.xiaohongshu-assistant-active .workflow-model-option strong,
html[data-theme="light"] body.cargo-video-active .workflow-model-option strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme="light"] body.xiaohongshu-assistant-active .workflow-model-option span,
html[data-theme="light"] body.cargo-video-active .workflow-model-option span {
  overflow: hidden;
  color: #7b8494;
  font-size: 10px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme="light"] body.xiaohongshu-assistant-active .workflow-panel-heading,
html[data-theme="light"] body.cargo-video-active .workflow-panel-heading {
  display: grid;
  gap: 4px;
}

html[data-theme="light"] body.xiaohongshu-assistant-active .workflow-panel-heading span,
html[data-theme="light"] body.cargo-video-active .workflow-panel-heading span {
  color: #5147c9;
  font-size: 11px;
  font-weight: 800;
}

html[data-theme="light"] body.xiaohongshu-assistant-active .workflow-panel-heading strong,
html[data-theme="light"] body.cargo-video-active .workflow-panel-heading strong {
  color: #1d2636;
  font-size: 16px;
  font-weight: 850;
}

/* AI dialogue uses the same secondary-page shell, with a conversation-first layout. */
html[data-theme="light"] body.ai-dialogue-active {
  overflow: hidden;
}

html[data-theme="light"] body.ai-dialogue-active .bottom-nav {
  display: none !important;
}

html[data-theme="light"] body.ai-dialogue-active .ai-dialogue-flow {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: block;
  overflow: hidden;
  background: #f3f6fc;
}

html[data-theme="light"] body.ai-dialogue-active .ai-dialogue-flow.hidden {
  display: none;
}

html[data-theme="light"] body.ai-dialogue-active .ai-dialogue-shell {
  display: flex;
  flex-direction: column;
  width: min(100%, 560px);
  height: 100dvh;
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: #f3f6fc;
  color: #1d2636;
}

html[data-theme="light"] body.ai-dialogue-active .ai-dialogue-header {
  position: relative;
  flex: 0 0 auto;
  min-height: 72px;
  padding: max(18px, env(safe-area-inset-top, 0px)) 20px 14px;
  border-bottom: 1px solid #e2e8f2;
  background: #f8faff;
}

html[data-theme="light"] body.ai-dialogue-active .ai-dialogue-header span {
  color: #5147c9;
}

html[data-theme="light"] body.ai-dialogue-active .ai-dialogue-header h2 {
  color: #1d2636;
}

html[data-theme="light"] body.ai-dialogue-active .ai-dialogue-reset {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-left: auto;
  border: 1px solid #dfe5f1;
  border-radius: 50%;
  background: #fff;
  color: #5147c9;
  box-shadow: 0 4px 12px rgba(31, 41, 55, 0.06);
}

html[data-theme="light"] body.ai-dialogue-active .ai-dialogue-reset .app-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

html[data-theme="light"] body.ai-dialogue-active .ai-dialogue-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  padding: 14px 18px max(18px, env(safe-area-inset-bottom, 0px));
  overflow: hidden;
}

html[data-theme="light"] body.ai-dialogue-active .ai-dialogue-intro {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #e0e5f1;
  border-radius: 16px;
  background: #fff;
}

html[data-theme="light"] body.ai-dialogue-active .ai-dialogue-intro-icon {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  color: #5147c9;
  background: #efedff;
}

html[data-theme="light"] body.ai-dialogue-active .ai-dialogue-intro-icon .app-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

html[data-theme="light"] body.ai-dialogue-active .ai-dialogue-intro div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

html[data-theme="light"] body.ai-dialogue-active .ai-dialogue-intro strong {
  color: #1d2636;
  font-size: 14px;
  font-weight: 850;
}

html[data-theme="light"] body.ai-dialogue-active .ai-dialogue-intro p {
  margin: 0;
  color: #7b8494;
  font-size: 12px;
  line-height: 1.4;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-panel {
  display: grid;
  flex: 1 1 auto;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  gap: 10px;
  min-height: 0;
  padding: 12px;
  border: 1px solid #e0e5f1;
  border-radius: 18px;
  background: #f9faff;
  box-shadow: 0 10px 28px rgba(45, 56, 95, 0.05);
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-session-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px 2px;
}

html[data-theme="light"] body.ai-dialogue-active .ai-dialogue-session-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

html[data-theme="light"] body.ai-dialogue-active .ai-dialogue-session-copy span {
  color: #7b8494;
  font-size: 11px;
  font-weight: 750;
}

html[data-theme="light"] body.ai-dialogue-active .ai-dialogue-session-copy strong {
  color: #1d2636;
  font-size: 13px;
  font-weight: 850;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-mode-switch {
  flex: 0 0 auto;
  padding: 3px;
  border: 1px solid #e0e5f1;
  border-radius: 999px;
  background: #fff;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-mode-switch button {
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #7b8494;
  font-size: 11px;
  font-weight: 800;
  padding: 0 9px;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-mode-switch button.active {
  color: #5147c9;
  background: #efedff;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-messages {
  min-height: 0;
  padding: 4px 2px 8px;
  overflow-y: auto;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-message {
  max-width: min(90%, 36em);
  border-radius: 16px;
  font-size: 13px;
  font-weight: 700;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-message.assistant {
  margin-left: 34px;
  border-top-left-radius: 8px;
  border-color: #e0e5f1;
  background: #fff;
  box-shadow: 0 7px 18px rgba(45, 56, 95, 0.04);
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-message.assistant::before {
  left: -34px;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: linear-gradient(135deg, #7667f6, #5147c9);
  box-shadow: 0 7px 16px rgba(98, 87, 233, 0.18);
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-message.user {
  border-top-right-radius: 7px;
  background: #5147c9;
  box-shadow: 0 8px 18px rgba(98, 87, 233, 0.16);
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-inspiration-row {
  padding-left: 34px;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-inspiration-card {
  border-color: #e0e5f1;
  background: #fff;
  box-shadow: none;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-inspiration-card span {
  color: #5147c9;
  background: #efedff;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-action-card {
  margin-left: 34px;
  border-color: #ddd9ff;
  background: #f5f3ff;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-action-buttons button.primary {
  background: #5147c9;
  box-shadow: 0 8px 18px rgba(98, 87, 233, 0.16);
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-composer {
  flex: 0 0 auto;
  margin: 0;
  border-color: #dfe5f1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(45, 56, 95, 0.08);
}

html[data-theme="light"] body.ai-dialogue-active :where(.store-agent-image-button, .store-agent-template-toggle, .store-agent-help, .store-agent-expand-input) {
  color: #5147c9;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-image-button .app-icon,
html[data-theme="light"] body.ai-dialogue-active .store-agent-template-toggle .app-icon,
html[data-theme="light"] body.ai-dialogue-active .store-agent-expand-input .app-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-composer textarea {
  min-height: 54px;
  border-color: #dfe5f1;
  border-radius: 12px;
  background: #f8faff;
  color: #1d2636;
  font-size: 13px;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-send {
  background: #5147c9;
  box-shadow: 0 8px 18px rgba(98, 87, 233, 0.18);
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-send .app-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-template-panel {
  bottom: calc(112px + env(safe-area-inset-bottom, 0px));
  border-color: #dfe5f1;
  background: rgba(255, 255, 255, 0.97);
}

@media (max-width: 390px) {
  html[data-theme="light"] body.ai-dialogue-active .store-agent-session-row {
    align-items: flex-start;
    flex-direction: column;
  }

  html[data-theme="light"] body.ai-dialogue-active .store-agent-mode-switch {
    width: 100%;
  }

  html[data-theme="light"] body.ai-dialogue-active .store-agent-mode-switch button {
    width: 50%;
  }
}

/* AI dialogue upgrade: keep the first step light, then make the next action explicit. */
html[data-theme="light"] body.ai-dialogue-active .store-agent-panel.is-empty .store-agent-session-row {
  display: none;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-session-row,
html[data-theme="light"] body.ai-dialogue-active .store-agent-composer-modebar {
  display: none !important;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-composer {
  grid-template-columns: 34px minmax(0, 1fr) 42px;
  padding: 9px;
  border-radius: 18px;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-composer textarea {
  min-height: 58px;
  padding: 12px 13px;
  font-size: 13px;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-image-button {
  width: 34px;
  height: 34px;
  align-self: end;
  border: 1px solid #e0e5f1;
  border-radius: 10px;
  background: #f8faff;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-send {
  width: 42px;
  height: 42px;
}

html[data-theme="light"] body:not(.agent-home-tab) .agent-workbench-bridge {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 2px;
  padding: 10px 12px;
  border: 1px solid #ddd9ff;
  border-radius: 12px;
  background: #f7f5ff;
}

html[data-theme="light"] body.workflow-runner-active .agent-workflow-intro {
  min-height: 0;
  padding: 12px 14px;
  border-color: #ddd9ff;
  background: #f8f7ff;
}

html[data-theme="light"] body.workflow-runner-active .agent-workflow-intro strong {
  color: #5147c9;
  font-size: 14px;
}

html[data-theme="light"] body.workflow-runner-active .agent-workflow-intro p {
  color: #68738a;
}

html[data-theme="light"] body.workflow-runner-active .agent-workflow-preview {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e0e5f1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(45, 56, 95, 0.05);
}

html[data-theme="light"] body.workflow-runner-active .agent-workflow-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

html[data-theme="light"] body.workflow-runner-active .agent-workflow-preview-head > div,
html[data-theme="light"] body.workflow-runner-active .agent-workflow-preview-subject {
  display: grid;
  gap: 3px;
  min-width: 0;
}

html[data-theme="light"] body.workflow-runner-active .agent-workflow-preview-head span,
html[data-theme="light"] body.workflow-runner-active .agent-workflow-preview-subject > span,
html[data-theme="light"] body.workflow-runner-active .agent-workflow-preview-grid span {
  color: #7b8494;
  font-size: 11px;
  font-weight: 800;
}

html[data-theme="light"] body.workflow-runner-active .agent-workflow-preview-head strong {
  color: #1d2636;
  font-size: 15px;
  font-weight: 900;
}

html[data-theme="light"] body.workflow-runner-active .agent-workflow-preview-head em {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 7px;
  background: #efedff;
  color: #5147c9;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}

html[data-theme="light"] body.workflow-runner-active .agent-workflow-preview-subject {
  padding: 11px;
  border: 1px solid #e5e2ff;
  border-radius: 12px;
  background: #faf9ff;
}

html[data-theme="light"] body.workflow-runner-active .agent-workflow-preview-subject strong {
  color: #1d2636;
  font-size: 16px;
  font-weight: 900;
}

html[data-theme="light"] body.workflow-runner-active .agent-workflow-preview-subject p {
  max-height: 44px;
  margin: 0;
  overflow: hidden;
  color: #68738a;
  font-size: 11px;
  line-height: 1.45;
}

html[data-theme="light"] body.workflow-runner-active .agent-workflow-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

html[data-theme="light"] body.workflow-runner-active .agent-workflow-preview-grid > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px;
  border-radius: 10px;
  background: #f8faff;
}

html[data-theme="light"] body.workflow-runner-active .agent-workflow-preview-grid strong {
  overflow: hidden;
  color: #2e384b;
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme="light"] body.workflow-runner-active .agent-workflow-preview-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 8px 9px;
  border-radius: 9px;
  background: #fffaf3;
  color: #8a6a43;
}

html[data-theme="light"] body.workflow-runner-active .agent-workflow-preview-note > span {
  flex: 0 0 auto;
  color: #d18b31;
  font-size: 14px;
  line-height: 1.2;
}

html[data-theme="light"] body.workflow-runner-active .agent-workflow-preview-note p {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 750;
}

html[data-theme="light"] body.workflow-runner-active .agent-workflow-preview-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid #e5e2ff;
  border-radius: 12px;
  background: #fbfaff;
}

html[data-theme="light"] body.workflow-runner-active .agent-workflow-preview-choice > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

html[data-theme="light"] body.workflow-runner-active .agent-workflow-preview-choice span,
html[data-theme="light"] body.workflow-runner-active .agent-workflow-addendum > span {
  color: #7b8494;
  font-size: 11px;
  font-weight: 800;
}

html[data-theme="light"] body.workflow-runner-active .agent-workflow-preview-choice strong {
  color: #2e384b;
  font-size: 11px;
  font-weight: 850;
}

html[data-theme="light"] body.workflow-runner-active .agent-workflow-variant-options {
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: #efedff;
}

html[data-theme="light"] body.workflow-runner-active .agent-workflow-variant-options button {
  min-width: 42px;
  padding: 6px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #68738a;
  font-size: 11px;
  font-weight: 850;
}

html[data-theme="light"] body.workflow-runner-active .agent-workflow-variant-options button.active {
  background: #fff;
  color: #5147c9;
  box-shadow: 0 2px 7px rgba(68, 59, 164, 0.12);
}

html[data-theme="light"] body.workflow-runner-active .agent-workflow-addendum {
  display: grid;
  gap: 6px;
}

html[data-theme="light"] body.workflow-runner-active .agent-workflow-addendum > span {
  display: flex;
  align-items: center;
  gap: 5px;
}

html[data-theme="light"] body.workflow-runner-active .agent-workflow-addendum em {
  color: #a0a8b6;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

html[data-theme="light"] body.workflow-runner-active .agent-workflow-addendum textarea {
  width: 100%;
  min-height: 54px;
  resize: vertical;
  box-sizing: border-box;
  padding: 9px 10px;
  border: 1px solid #e0e5f1;
  border-radius: 11px;
  outline: none;
  background: #fff;
  color: #2e384b;
  font: inherit;
  font-size: 12px;
  line-height: 1.45;
}

html[data-theme="light"] body.workflow-runner-active .agent-workflow-addendum textarea:focus {
  border-color: #9a91ff;
  box-shadow: 0 0 0 3px rgba(98, 87, 233, 0.1);
}

html[data-theme="light"] body.workflow-runner-active .agent-workflow-prompt-check,
html[data-theme="light"] body.workflow-runner-active .agent-quality-check {
  display: grid;
  gap: 5px;
  padding: 9px 10px;
  border-radius: 11px;
}

html[data-theme="light"] body.workflow-runner-active .agent-workflow-prompt-check {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  background: #fffaf3;
  color: #8a6a43;
}

html[data-theme="light"] body.workflow-runner-active .agent-workflow-prompt-check.is-ready {
  background: #f2fbf6;
  color: #28784f;
}

html[data-theme="light"] body.workflow-runner-active .agent-workflow-prompt-check > span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: currentColor;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

html[data-theme="light"] body.workflow-runner-active .agent-workflow-prompt-check p,
html[data-theme="light"] body.workflow-runner-active .agent-quality-check small {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 750;
}

html[data-theme="light"] body.workflow-runner-active .agent-quality-check {
  border: 1px solid #dbe7ff;
  background: #f7faff;
}

html[data-theme="light"] body.workflow-runner-active .agent-quality-check strong {
  color: #2e384b;
  font-size: 12px;
  font-weight: 900;
}

html[data-theme="light"] body.workflow-runner-active .agent-quality-check > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
}

html[data-theme="light"] body.workflow-runner-active .agent-quality-check span {
  color: #28784f;
  font-size: 10px;
  font-weight: 800;
}

html[data-theme="light"] body.workflow-runner-active .agent-quality-check small {
  color: #68738a;
  font-weight: 650;
}

html[data-theme="light"] body:not(.agent-home-tab) .agent-workbench-bridge > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

html[data-theme="light"] body:not(.agent-home-tab) .agent-workbench-bridge span {
  color: #5147c9;
  font-size: 11px;
  font-weight: 850;
}

html[data-theme="light"] body:not(.agent-home-tab) .agent-workbench-bridge strong {
  color: #1d2636;
  font-size: 13px;
  font-weight: 900;
}

html[data-theme="light"] body:not(.agent-home-tab) .agent-workbench-bridge em {
  overflow: hidden;
  color: #68738a;
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme="light"] body:not(.agent-home-tab) .agent-workbench-bridge button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #cfc8ff;
  border-radius: 8px;
  background: #fff;
  color: #5147c9;
  font-size: 11px;
  font-weight: 850;
}

@media (max-width: 390px) {
  html[data-theme="light"] body:not(.agent-home-tab) .agent-workbench-bridge {
    align-items: flex-start;
    flex-direction: column;
  }
}

html[data-theme="light"] body.agent-home-tab .home-creation-card:nth-child(3) strong {
  max-width: 100%;
  font-size: 13px;
  line-height: 1.2;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-quick-actions {
  display: grid;
  gap: 7px;
  margin-left: 34px;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-quick-actions > span {
  color: #7b8494;
  font-size: 11px;
  font-weight: 800;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-quick-actions > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-quick-actions button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #e0e5f1;
  border-radius: 10px;
  background: #fff;
  color: #5147c9;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-quick-actions button::after {
  content: "›";
  float: right;
  color: #8d84e9;
  font-size: 16px;
  line-height: 1;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-quick-actions button:hover,
html[data-theme="light"] body.ai-dialogue-active .store-agent-quick-actions button:focus-visible {
  border-color: #c7c1ff;
  background: #f7f5ff;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-quick-actions button:disabled {
  cursor: wait;
  opacity: 0.55;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-action-card {
  display: grid;
  gap: 10px;
  padding: 14px;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-next-card {
  border-color: #d8d3ff;
  background: #faf9ff;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-action-head {
  display: grid;
  gap: 3px;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-action-head > span {
  color: #5147c9;
  font-size: 11px;
  font-weight: 850;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-action-head > strong {
  color: #1d2636;
  font-size: 15px;
  font-weight: 900;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-action-head > p {
  margin: 0;
  color: #68738a;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-action-sources {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-action-sources > span {
  color: #7b8494;
  font-size: 11px;
  font-weight: 800;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-action-sources > b {
  padding: 4px 7px;
  border-radius: 6px;
  background: #fff;
  color: #5147c9;
  font-size: 10px;
  font-weight: 850;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-action-hint {
  color: #7b8494;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 700;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-profile-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 9px;
  border: 1px solid #f0dfc8;
  border-radius: 9px;
  background: #fffaf3;
  color: #8a6a43;
  font-size: 10px;
  line-height: 1.35;
  font-weight: 750;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-profile-hint span {
  min-width: 0;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-profile-hint button {
  flex: 0 0 auto;
  min-height: 25px;
  padding: 0 8px;
  border: 1px solid #edc995;
  border-radius: 7px;
  background: #fff;
  color: #9a692c;
  font-size: 10px;
  font-weight: 850;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-action-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-action-buttons button {
  min-height: 34px;
  min-width: 0;
  padding: 0 8px;
  border: 1px solid #dfe5f1;
  border-radius: 9px;
  background: #fff;
  color: #59657b;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-action-buttons button.primary {
  color: #fff;
  grid-column: 1 / -1;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-error-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-left: 34px;
  padding: 12px 14px;
  border: 1px solid #f2c9c9;
  border-radius: 14px;
  background: #fff8f8;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-error-card > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-error-card strong {
  color: #b54747;
  font-size: 13px;
  font-weight: 850;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-error-card p {
  margin: 0;
  color: #8d6565;
  font-size: 11px;
  line-height: 1.4;
}

html[data-theme="light"] body.ai-dialogue-active .store-agent-error-card button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid #e5b7b7;
  border-radius: 8px;
  background: #fff;
  color: #b54747;
  font-size: 11px;
  font-weight: 850;
}

@media (max-width: 390px) {
  html[data-theme="light"] body.ai-dialogue-active .store-agent-action-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-theme="light"] body.ai-dialogue-active .store-agent-action-buttons button.primary {
    grid-column: 1 / -1;
  }
}
/* Profile identity and account overview refresh. */
html[data-theme="light"] body:not(.agent-home-tab) .tab-panel[data-tab="profile"].active .profile-summary {
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(113, 88, 246, 0.12);
  background: linear-gradient(145deg, #ffffff 0%, #fbfaff 58%, #fff8f1 100%);
}

html[data-theme="light"] body:not(.agent-home-tab) .profile-identity {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 2px 0 3px;
}

html[data-theme="light"] body:not(.agent-home-tab) .profile-avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border: 4px solid #ffffff;
  border-radius: 22px;
  background: linear-gradient(135deg, #ff7a1a, #ffb36d 58%, #ffd9b1);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(255, 122, 26, 0.2);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
}

html[data-theme="light"] body:not(.agent-home-tab) .profile-avatar.has-image {
  background: #f2f4f8;
}

html[data-theme="light"] body:not(.agent-home-tab) .profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html[data-theme="light"] body:not(.agent-home-tab) .profile-identity-copy {
  min-width: 0;
}

html[data-theme="light"] body:not(.agent-home-tab) .profile-identity-copy .summary-label {
  margin-bottom: 3px;
}

html[data-theme="light"] body:not(.agent-home-tab) .profile-identity-copy strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--text);
  font-size: 21px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme="light"] body:not(.agent-home-tab) .profile-identity-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

html[data-theme="light"] body:not(.agent-home-tab) .profile-identity-meta > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme="light"] body:not(.agent-home-tab) .profile-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

html[data-theme="light"] body:not(.agent-home-tab) .profile-overview-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto minmax(28px, auto);
  align-items: center;
  gap: 3px 8px;
  min-width: 0;
  min-height: 92px;
  padding: 12px 13px;
  border: 1px solid rgba(113, 88, 246, 0.1);
  border-radius: 17px;
  background: rgba(247, 248, 252, 0.92);
}

html[data-theme="light"] body:not(.agent-home-tab) .profile-overview-item .summary-label {
  grid-column: 1 / -1;
  margin: 0;
}

html[data-theme="light"] body:not(.agent-home-tab) .profile-overview-item strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 17px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme="light"] body:not(.agent-home-tab) .profile-overview-item .small-button {
  min-width: 78px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 11px;
  white-space: nowrap;
}

html[data-theme="light"] body:not(.agent-home-tab) .profile-points-item {
  border-color: rgba(113, 88, 246, 0.16);
  background: linear-gradient(145deg, rgba(242, 239, 255, 0.96), rgba(255, 248, 242, 0.96));
}

html[data-theme="light"] body.personal-account:not(.agent-home-tab) .profile-overview-grid {
  grid-template-columns: 1fr;
}

@media (max-width: 420px) {
  html[data-theme="light"] body:not(.agent-home-tab) .profile-identity {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 10px;
  }

  html[data-theme="light"] body:not(.agent-home-tab) .profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 19px;
    font-size: 21px;
  }

  html[data-theme="light"] body:not(.agent-home-tab) .profile-identity-copy strong {
    font-size: 19px;
  }

  html[data-theme="light"] body:not(.agent-home-tab) .profile-overview-item {
    padding: 11px;
  }

  html[data-theme="light"] body:not(.agent-home-tab) .profile-overview-item strong {
    font-size: 15px;
  }
}
/* Keep every primary bottom-nav destination visually consistent when selected. */
html[data-theme="light"] .bottom-nav .nav-button.active {
  color: #5649ed !important;
  background: #f5f2ff !important;
  box-shadow: inset 0 0 0 1px rgba(98, 87, 233, 0.08) !important;
}

html[data-theme="light"] .bottom-nav .nav-button.active .nav-icon,
html[data-theme="light"] .bottom-nav .nav-button.nav-button-strong.active .nav-icon {
  color: #6554ef !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Keep the bottom navigation dock identical across Home and AI Tools. */
html[data-theme="light"] .bottom-nav {
  bottom: max(6px, env(safe-area-inset-bottom, 0px)) !important;
}

/* Keep the home inspiration filter from reading as a black artifact when it sits near the dock. */
html[data-theme="light"] body.agent-home-tab .home-inspiration-categories button.active {
  border-color: rgba(98, 87, 233, 0.2);
  color: #5649ed;
  background: #f5f2ff;
}

/* Profile menu: clear row rhythm with quiet grouping and reliable touch targets. */
html[data-theme="light"] body:not(.agent-home-tab) .menu-list {
  display: grid;
  gap: 0;
  padding: 6px 16px;
  border-radius: 20px;
}

html[data-theme="light"] body:not(.agent-home-tab) .menu-cell {
  min-height: 50px;
  margin: 0;
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid rgba(128, 141, 173, 0.16);
  border-radius: 0;
  color: var(--ui-text);
  background: transparent;
  transition: background-color 160ms ease, color 160ms ease;
}

html[data-theme="light"] body:not(.agent-home-tab) .menu-cell:first-child {
  padding-top: 11px;
}

html[data-theme="light"] body:not(.agent-home-tab) .menu-cell:last-child {
  padding-bottom: 11px;
}

html[data-theme="light"] body:not(.agent-home-tab) .menu-cell > span:first-child {
  min-width: 0;
  color: var(--ui-text);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.25;
}

html[data-theme="light"] body:not(.agent-home-tab) .menu-cell > em {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 5px;
  color: #7d879d;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

html[data-theme="light"] body:not(.agent-home-tab) .menu-cell[data-open-page] > em::after,
html[data-theme="light"] body:not(.agent-home-tab) #profileAgreementButton > em::after,
html[data-theme="light"] body:not(.agent-home-tab) #profileContactSupport > em::after {
  content: "›";
  color: #9aa3b6;
  font-size: 17px;
  line-height: 0.8;
}

html[data-theme="light"] body:not(.agent-home-tab) .menu-cell:hover {
  transform: none;
  border-color: rgba(128, 141, 173, 0.16);
  background: rgba(98, 87, 233, 0.045);
}

html[data-theme="light"] body:not(.agent-home-tab) .menu-cell:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid rgba(98, 87, 233, 0.18);
  outline-offset: -3px;
  border-radius: 10px;
}

html[data-theme="light"] body:not(.agent-home-tab) #profileAgreementButton,
html[data-theme="light"] body:not(.agent-home-tab) #logoutAccount {
  margin-top: 8px;
  border-top: 1px solid rgba(128, 141, 173, 0.16);
}

html[data-theme="light"] body:not(.agent-home-tab) .menu-cell[data-open-page="generationTasks"],
html[data-theme="light"] body:not(.agent-home-tab) #profileContactSupport {
  border-bottom: 0;
}

html[data-theme="light"] body:not(.agent-home-tab) #logoutAccount {
  color: #b65b67;
  border-bottom: 0;
}

html[data-theme="light"] body:not(.agent-home-tab) #logoutAccount > span:first-child {
  color: #b65b67;
}

html[data-theme="light"] body:not(.agent-home-tab) #logoutAccount > em {
  color: #b68b91;
}

/* Final alignment pass: every visible row shares one fixed rhythm and one separator. */
html[data-theme="light"] body:not(.agent-home-tab) .menu-list {
  padding: 8px 16px;
}

html[data-theme="light"] body:not(.agent-home-tab) .menu-cell {
  box-sizing: border-box;
  height: 50px;
  min-height: 50px;
  padding: 0;
  align-items: center;
}

html[data-theme="light"] body:not(.agent-home-tab) .menu-cell:first-child,
html[data-theme="light"] body:not(.agent-home-tab) .menu-cell:last-child {
  padding-top: 0;
  padding-bottom: 0;
}

html[data-theme="light"] body:not(.agent-home-tab) #profileAgreementButton,
html[data-theme="light"] body:not(.agent-home-tab) #logoutAccount {
  margin-top: 0;
  border-top: 0;
}

html[data-theme="light"] body:not(.agent-home-tab) .menu-cell[data-open-page="generationTasks"],
html[data-theme="light"] body:not(.agent-home-tab) #profileContactSupport {
  border-bottom: 1px solid rgba(128, 141, 173, 0.16);
}

html[data-theme="light"] body:not(.agent-home-tab) #logoutAccount {
  border-bottom: 0;
}

/* Calendar page final palette: orange actions, cool neutral surfaces, quiet lavender tags. */
html[data-theme="light"] body.calendar-page-active .calendar-sheet-head span {
  color: #d45d16;
  background: transparent;
}

html[data-theme="light"] body.calendar-page-active .calendar-quick-card {
  border-color: rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(31, 41, 55, 0.04);
}

html[data-theme="light"] body.calendar-page-active .calendar-quick-card.is-next {
  border-color: rgba(255, 107, 0, 0.58);
  box-shadow: 0 10px 24px rgba(255, 107, 0, 0.11);
}

html[data-theme="light"] body.calendar-page-active .calendar-quick-card-date {
  background: #f0edff;
  color: #6458d8;
}

html[data-theme="light"] body.calendar-page-active .calendar-quick-card-actions .primary-button {
  border-color: transparent;
  background: #ff6b00;
  color: #ffffff;
  box-shadow: 0 6px 12px rgba(255, 107, 0, 0.16);
}

html[data-theme="light"] body.calendar-page-active .calendar-quick-card-actions .ghost-button {
  border: 1px solid #e3e7ef;
  background: #ffffff;
  color: #61708a;
}

html[data-theme="light"] body.calendar-page-active .marketing-calendar-month {
  border-color: rgba(148, 163, 184, 0.22);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(31, 41, 55, 0.05);
}

html[data-theme="light"] body.calendar-page-active .calendar-month-button,
html[data-theme="light"] body.calendar-page-active .calendar-today-button {
  border-color: #e3e7ef;
  background: #ffffff;
  color: #ff6b00;
  box-shadow: none;
}

html[data-theme="light"] body.calendar-page-active .marketing-calendar-day {
  border-color: transparent;
  border-radius: 13px;
  background: #ffffff;
}

html[data-theme="light"] body.calendar-page-active .marketing-calendar-day.is-weekend {
  background: #f3f6fb;
}

html[data-theme="light"] body.calendar-page-active .marketing-calendar-day:hover {
  border-color: rgba(255, 107, 0, 0.42);
  background: #fffaf5;
}

html[data-theme="light"] body.calendar-page-active .marketing-calendar-day.is-today {
  border-color: #ff6b00;
  box-shadow: inset 0 0 0 1px rgba(255, 107, 0, 0.38);
}

html[data-theme="light"] body.calendar-page-active .marketing-calendar-day.is-today .marketing-calendar-day-number {
  background: #ff6b00;
  color: #ffffff;
}

html[data-theme="light"] body.calendar-page-active .calendar-date-sheet,
html[data-theme="light"] body.calendar-page-active .calendar-style-sheet {
  border-color: #e2e8f2;
  background: #f8faff;
  box-shadow: 0 26px 72px rgba(31, 41, 55, 0.18);
}

html[data-theme="light"] body.calendar-page-active .calendar-date-sheet-head,
html[data-theme="light"] body.calendar-page-active .calendar-style-head {
  border-bottom-color: #e2e8f2;
  background: #f8faff;
}

html[data-theme="light"] body.calendar-page-active .calendar-date-sheet-head span,
html[data-theme="light"] body.calendar-page-active .calendar-style-head span {
  color: #d45d16;
}

html[data-theme="light"] body.calendar-page-active .calendar-date-sheet-head h3,
html[data-theme="light"] body.calendar-page-active .calendar-style-head h3 {
  color: #172033;
}

html[data-theme="light"] body.calendar-page-active .calendar-date-sheet-content {
  background: #f3f6fc;
}

html[data-theme="light"] body.calendar-page-active .calendar-date-detail-top {
  border: 1px solid rgba(255, 107, 0, 0.14);
  border-radius: 16px;
  background: linear-gradient(135deg, #fff7ed, #ffffff);
}

html[data-theme="light"] body.calendar-page-active .calendar-date-detail-top span,
html[data-theme="light"] body.calendar-page-active .calendar-date-detail-block strong {
  color: #d45d16;
}

html[data-theme="light"] body.calendar-page-active .calendar-date-detail-block {
  border-top-color: #e2e8f2;
}

html[data-theme="light"] body.calendar-page-active .calendar-date-management {
  border-color: #e2e8f2;
  background: #ffffff;
}

html[data-theme="light"] body.calendar-page-active .calendar-node-row {
  border-color: #e2e8f2;
  background: #ffffff;
}

html[data-theme="light"] body.calendar-page-active .calendar-date-progress {
  background: #fff0e5;
  color: #d45d16;
}

html[data-theme="light"] body.calendar-page-active .calendar-date-detail-actions .primary-button,
html[data-theme="light"] body.calendar-page-active .calendar-node-editor-actions .primary-button {
  border-color: transparent;
  background: #ff6b00;
  color: #ffffff;
}
