/* Site-wide selectable visual themes. Classic remains the default. */
html[data-phala-theme="light-chat"] {
  --light-bg: #fffdf7;
  --light-surface: #ffffff;
  --light-soft: #fffbea;
  --light-accent: #f5df20;
  --light-accent-hover: #ead20b;
  --light-text: #171717;
  --light-muted: #77736b;
  --light-line: #ece8dc;
  --light-shadow: 0 12px 34px rgba(39, 35, 22, .07);
  color-scheme: light;
}

html[data-phala-theme="light-chat"] body,
html[data-phala-theme="light-chat"] .phala-os,
html[data-phala-theme="light-chat"] .marketing-body,
html[data-phala-theme="light-chat"] .auth-body,
html[data-phala-theme="light-chat"] .intake-body,
html[data-phala-theme="light-chat"] .phala-page {
  background: var(--light-bg) !important;
  color: var(--light-text) !important;
  font-family: "Avenir Next", "DM Sans", Inter, system-ui, -apple-system, sans-serif !important;
}

html[data-phala-theme="light-chat"] h1,
html[data-phala-theme="light-chat"] h2,
html[data-phala-theme="light-chat"] h3,
html[data-phala-theme="light-chat"] h4,
html[data-phala-theme="light-chat"] strong,
html[data-phala-theme="light-chat"] .workspace-brand strong,
html[data-phala-theme="light-chat"] .marketing-brand strong {
  color: var(--light-text);
  font-family: inherit !important;
}

html[data-phala-theme="light-chat"] .workspace-sidebar,
html[data-phala-theme="light-chat"] .workspace-topbar,
html[data-phala-theme="light-chat"] .conversation-shell,
html[data-phala-theme="light-chat"] .living-shell,
html[data-phala-theme="light-chat"] .panel-header,
html[data-phala-theme="light-chat"] .module-status-card,
html[data-phala-theme="light-chat"] .module-live-content,
html[data-phala-theme="light-chat"] .dashboard-card,
html[data-phala-theme="light-chat"] .auth-card,
html[data-phala-theme="light-chat"] .intake-card,
html[data-phala-theme="light-chat"] .marketing-header,
html[data-phala-theme="light-chat"] .result-card,
html[data-phala-theme="light-chat"] .error-card {
  background: var(--light-surface) !important;
  border-color: var(--light-line) !important;
  box-shadow: var(--light-shadow) !important;
}

html[data-phala-theme="light-chat"] .workspace-nav button:hover,
html[data-phala-theme="light-chat"] .workspace-nav button.active,
html[data-phala-theme="light-chat"] .workspace-nav button[aria-current="page"],
html[data-phala-theme="light-chat"] .workspace-account-items a:hover,
html[data-phala-theme="light-chat"] .workspace-account-items button:hover {
  background: var(--light-soft) !important;
  color: var(--light-text) !important;
}

html[data-phala-theme="light-chat"] .workspace-nav button.active span,
html[data-phala-theme="light-chat"] .workspace-nav button[aria-current="page"] span,
html[data-phala-theme="light-chat"] .canvas-kicker,
html[data-phala-theme="light-chat"] .dashboard-kicker,
html[data-phala-theme="light-chat"] .module-page-hero > span {
  color: #887600 !important;
}

html[data-phala-theme="light-chat"] .message-bubble,
html[data-phala-theme="light-chat"] .composer-shell,
html[data-phala-theme="light-chat"] textarea,
html[data-phala-theme="light-chat"] input,
html[data-phala-theme="light-chat"] select {
  background: var(--light-surface) !important;
  border-color: var(--light-line) !important;
  color: var(--light-text) !important;
  border-radius: 18px !important;
}

html[data-phala-theme="light-chat"] .message-user .message-bubble {
  background: var(--light-soft) !important;
  border-color: #eadf9e !important;
}

html[data-phala-theme="light-chat"] button:not(.mobile-menu-button),
html[data-phala-theme="light-chat"] .marketing-cta,
html[data-phala-theme="light-chat"] .primary-btn,
html[data-phala-theme="light-chat"] .result-btn.primary {
  border-radius: 999px;
}

html[data-phala-theme="light-chat"] .send-button,
html[data-phala-theme="light-chat"] .marketing-cta,
html[data-phala-theme="light-chat"] .primary-btn,
html[data-phala-theme="light-chat"] .result-btn.primary,
html[data-phala-theme="light-chat"] .guest-workspace-banner a {
  background: var(--light-accent) !important;
  border-color: var(--light-accent) !important;
  color: var(--light-text) !important;
  box-shadow: none !important;
}

html[data-phala-theme="light-chat"] .canvas-hero,
html[data-phala-theme="light-chat"] .guest-workspace-banner,
html[data-phala-theme="light-chat"] .module-page-hero,
html[data-phala-theme="light-chat"] .evidence-card,
html[data-phala-theme="light-chat"] .career-card {
  background: var(--light-soft) !important;
  border-color: var(--light-line) !important;
}

html[data-phala-theme="light-chat"] p,
html[data-phala-theme="light-chat"] small,
html[data-phala-theme="light-chat"] .message-meta span { color: var(--light-muted); }

.theme-picker { margin-top: 24px; }
.theme-picker > h3 { margin: 0 0 6px; }
.theme-picker > p { margin: 0 0 16px; color: #786d65; }
.theme-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.theme-option { min-height: 112px; padding: 16px !important; border: 1px solid #e7ddd4 !important; border-radius: 18px !important; background: #fff !important; color: #24130e !important; text-align: left; cursor: pointer; }
.theme-option strong, .theme-option span { display: block; }
.theme-option span { margin-top: 6px; color: #806f65; line-height: 1.4; }
.theme-option[aria-pressed="true"] { border: 2px solid #d78a20 !important; box-shadow: 0 0 0 4px rgba(215,138,32,.10); }
.theme-option-light-chat[aria-pressed="true"] { border-color: #dbc500 !important; box-shadow: 0 0 0 4px rgba(245,223,32,.20); }
.theme-swatch { display: flex !important; gap: 5px; margin-bottom: 12px; }
.theme-swatch i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.08); }
.theme-option-classic .theme-swatch i:nth-child(1){background:#fff4e3}.theme-option-classic .theme-swatch i:nth-child(2){background:#a92f18}.theme-option-classic .theme-swatch i:nth-child(3){background:#351812}
.theme-option-light-chat .theme-swatch i:nth-child(1){background:#fff}.theme-option-light-chat .theme-swatch i:nth-child(2){background:#f5df20}.theme-option-light-chat .theme-swatch i:nth-child(3){background:#171717}
@media (max-width: 640px) { .theme-options { grid-template-columns: 1fr; } }

/* Light Chat is a complete design system, not a chat-only color overlay. */
html[data-phala-theme="light-chat"] {
  --deep: #17140c;
  --brown: #756100;
  --brown-soft: #8b7600;
  --saffron: #f5df20;
  --gold: #e4cb08;
  --cream: #fffdf2;
  --cream-2: #fffef9;
  --paper: #ffffff;
  --ink: #1c1912;
  --muted: #766f62;
  --line: rgba(55, 48, 25, .12);
  --line-strong: rgba(55, 48, 25, .20);
  --shadow: 0 12px 34px rgba(43, 38, 18, .07);
  --soft-shadow: 0 7px 20px rgba(43, 38, 18, .055);
  --phala-ink: #1c1912;
  --phala-deep: #17140c;
  --phala-rust: #756100;
  --phala-orange: #d1b900;
  --phala-gold: #f5df20;
  --phala-cream: #fffdf2;
  --phala-paper: #ffffff;
  --phala-muted: #766f62;
  --phala-line: rgba(55, 48, 25, .12);
  --phala-shadow: 0 12px 34px rgba(43, 38, 18, .07);
}

html[data-phala-theme="light-chat"] body *,
html[data-phala-theme="light-chat"] button,
html[data-phala-theme="light-chat"] input,
html[data-phala-theme="light-chat"] select,
html[data-phala-theme="light-chat"] textarea {
  font-family: "DM Sans", "Avenir Next", Inter, system-ui, -apple-system, sans-serif !important;
}

html[data-phala-theme="light-chat"] body {
  background: linear-gradient(115deg, #ffffff 0%, #fffef7 58%, #fff9cf 100%) !important;
}

html[data-phala-theme="light-chat"] .phala-os.workspace-mode,
html[data-phala-theme="light-chat"] .workspace-content,
html[data-phala-theme="light-chat"] .workspace-view-stack,
html[data-phala-theme="light-chat"] .module-page-scroll,
html[data-phala-theme="light-chat"] .dashboard-scroll,
html[data-phala-theme="light-chat"] .evidence-canvas,
html[data-phala-theme="light-chat"] .message-stream,
html[data-phala-theme="light-chat"] .workspace-mode .advisor-view .os-main {
  background: var(--light-bg) !important;
}

html[data-phala-theme="light-chat"] .workspace-frame { padding: 8px 10px 5px; }
html[data-phala-theme="light-chat"] .workspace-sidebar { border-radius: 18px 0 0 18px; }
html[data-phala-theme="light-chat"] .workspace-content { border-radius: 0 18px 18px 0; }
html[data-phala-theme="light-chat"] .conversation-shell,
html[data-phala-theme="light-chat"] .living-shell { border-radius: 20px; backdrop-filter: none; }

/* Brand imagery gets its own Light Chat treatment while retaining PHALA identity. */
html[data-phala-theme="light-chat"] .workspace-brand img,
html[data-phala-theme="light-chat"] .marketing-brand img,
html[data-phala-theme="light-chat"] .os-logo,
html[data-phala-theme="light-chat"] .result-card > img {
  border: 3px solid var(--light-accent) !important;
  border-radius: 50% !important;
  background: var(--light-accent) !important;
  box-shadow: 0 5px 15px rgba(86, 74, 0, .14) !important;
  filter: saturate(.76) contrast(1.05) brightness(1.08);
}

html[data-phala-theme="light-chat"] .workspace-brand strong,
html[data-phala-theme="light-chat"] .marketing-brand strong,
html[data-phala-theme="light-chat"] .os-brand strong { letter-spacing: .01em; font-weight: 800; }

/* Navigation, header, menus and account surfaces. */
html[data-phala-theme="light-chat"] .workspace-nav button,
html[data-phala-theme="light-chat"] .workspace-new-session,
html[data-phala-theme="light-chat"] .new-session-button,
html[data-phala-theme="light-chat"] .workspace-account-items button,
html[data-phala-theme="light-chat"] .workspace-account-items > a {
  color: var(--light-text) !important;
}
html[data-phala-theme="light-chat"] .workspace-nav button.is-active,
html[data-phala-theme="light-chat"] .workspace-nav button.active,
html[data-phala-theme="light-chat"] .workspace-nav button[aria-current="page"] {
  color: var(--light-text) !important;
  background: #fff9d7 !important;
}
html[data-phala-theme="light-chat"] .workspace-nav button span,
html[data-phala-theme="light-chat"] .workspace-account-items button > span,
html[data-phala-theme="light-chat"] .workspace-account-items > a > span { color: #786900 !important; }
html[data-phala-theme="light-chat"] .workspace-account-menu,
html[data-phala-theme="light-chat"] .workspace-account-message {
  background: #fff !important; border-color: var(--light-line) !important; box-shadow: var(--light-shadow) !important;
}
html[data-phala-theme="light-chat"] .workspace-user-avatar {
  color: #171717 !important; background: var(--light-accent) !important;
}
html[data-phala-theme="light-chat"] .workspace-new-session span,
html[data-phala-theme="light-chat"] .new-session-button span { color: #171717 !important; background: #fff7bd !important; }

/* All major cards and right-panel surfaces. */
html[data-phala-theme="light-chat"] .canvas-card,
html[data-phala-theme="light-chat"] .mini-metric,
html[data-phala-theme="light-chat"] .compare-card,
html[data-phala-theme="light-chat"] .report-link,
html[data-phala-theme="light-chat"] .foundation-now-card,
html[data-phala-theme="light-chat"] .foundation-map-card,
html[data-phala-theme="light-chat"] .foundation-signal,
html[data-phala-theme="light-chat"] .foundation-profile-list,
html[data-phala-theme="light-chat"] .foundation-journey-card,
html[data-phala-theme="light-chat"] .life-map-flow-card,
html[data-phala-theme="light-chat"] .profile-confirmation-box,
html[data-phala-theme="light-chat"] .horoscope-data-notice,
html[data-phala-theme="light-chat"] .horoscope-data-section,
html[data-phala-theme="light-chat"] .horoscope-fact-grid article,
html[data-phala-theme="light-chat"] .horoscope-summary-grid article,
html[data-phala-theme="light-chat"] .dasha-current-grid article,
html[data-phala-theme="light-chat"] .horoscope-yoga-grid article,
html[data-phala-theme="light-chat"] .horoscope-table-wrap,
html[data-phala-theme="light-chat"] .horoscope-data-table,
html[data-phala-theme="light-chat"] .dashboard-status-grid article,
html[data-phala-theme="light-chat"] .dashboard-question-box,
html[data-phala-theme="light-chat"] .intake-composer-card,
html[data-phala-theme="light-chat"] .intake-progress-card,
html[data-phala-theme="light-chat"] .account-action-row,
html[data-phala-theme="light-chat"] .horoscope-library-item {
  background: var(--light-surface) !important;
  border-color: var(--light-line) !important;
  box-shadow: var(--light-shadow) !important;
}

html[data-phala-theme="light-chat"] .canvas-hero,
html[data-phala-theme="light-chat"] .foundation-hero,
html[data-phala-theme="light-chat"] .module-page-hero,
html[data-phala-theme="light-chat"] .guest-workspace-banner,
html[data-phala-theme="light-chat"] .marketing-bottom-cta,
html[data-phala-theme="light-chat"] .intake-generation-gate {
  background: linear-gradient(115deg, #fffef7, #fff9d4) !important;
  border-color: var(--light-line) !important;
  box-shadow: none !important;
}

/* Icons, status marks, tags and semantic chips. */
html[data-phala-theme="light-chat"] .panel-title span,
html[data-phala-theme="light-chat"] .module-status-icon,
html[data-phala-theme="light-chat"] .foundation-focus-icon,
html[data-phala-theme="light-chat"] .dashboard-status-grid article > span,
html[data-phala-theme="light-chat"] .dashboard-empty-list > span,
html[data-phala-theme="light-chat"] .horoscope-summary-grid article > span,
html[data-phala-theme="light-chat"] .auth-status-icon,
html[data-phala-theme="light-chat"] .intake-trust-row > div > span {
  color: #756500 !important;
  background: #fff8c5 !important;
  border-color: #eee08a !important;
}
html[data-phala-theme="light-chat"] .card-topline em,
html[data-phala-theme="light-chat"] .dashboard-readiness-pill,
html[data-phala-theme="light-chat"] .horoscope-data-section > header > span,
html[data-phala-theme="light-chat"] .motion-pill,
html[data-phala-theme="light-chat"] .intake-progress-pill,
html[data-phala-theme="light-chat"] .privacy-pill {
  color: #655800 !important; background: #fff7ba !important; border-color: #eadc80 !important;
}

/* Chat typography and controls. */
html[data-phala-theme="light-chat"] .message-avatar {
  color: #171717 !important; background: var(--light-accent) !important; border-color: #e0c900 !important; box-shadow: none !important;
}
html[data-phala-theme="light-chat"] .message-assistant .message-avatar {
  width: 28px !important;
  height: 28px !important;
  color: transparent !important;
  background: #fff8c9 !important;
  border: 1px solid #eadb75 !important;
}
html[data-phala-theme="light-chat"] .message-assistant .message-avatar::before {
  content: "✦";
  color: #887600;
  font-size: 14px;
  line-height: 1;
}
html[data-phala-theme="light-chat"] .message-assistant + .message-assistant:not(.message-continuation) {
  padding-left: 46px;
  grid-template-columns: minmax(0, 1fr);
}
html[data-phala-theme="light-chat"] .message-assistant + .message-assistant:not(.message-continuation) .message-avatar,
html[data-phala-theme="light-chat"] .message-assistant + .message-assistant:not(.message-continuation) .message-meta {
  display: none !important;
}
html[data-phala-theme="light-chat"] .message-bubble,
html[data-phala-theme="light-chat"] .typing-bubble {
  color: var(--light-text) !important; background: #fff !important; border-color: var(--light-line) !important; box-shadow: var(--light-shadow) !important;
}
html[data-phala-theme="light-chat"] .message-user .message-bubble { background: #fffbe5 !important; border-color: #ebdf91 !important; }
html[data-phala-theme="light-chat"] .message-bubble.formatted-reply strong,
html[data-phala-theme="light-chat"] .phala-reply strong { color: #332e13 !important; }
html[data-phala-theme="light-chat"] .composer {
  background: #fff !important; border-top-color: var(--light-line) !important;
}
html[data-phala-theme="light-chat"] .composer textarea:focus,
html[data-phala-theme="light-chat"] .birth-detail-field input:focus,
html[data-phala-theme="light-chat"] .auth-form input:focus {
  outline-color: rgba(207, 184, 0, .24) !important; border-color: #d2bd16 !important; box-shadow: 0 0 0 3px rgba(245,223,32,.18) !important;
}
html[data-phala-theme="light-chat"] .voice-button,
html[data-phala-theme="light-chat"] .ghost-button,
html[data-phala-theme="light-chat"] .jump-to-latest {
  color: #514800 !important; background: #fffbed !important; border-color: var(--light-line) !important;
}

/* Buttons: neutral actions stay white; primary actions use the theme yellow. */
html[data-phala-theme="light-chat"] .module-actions button,
html[data-phala-theme="light-chat"] .module-actions a,
html[data-phala-theme="light-chat"] .birth-form-launcher button,
html[data-phala-theme="light-chat"] .birth-details-actions button.secondary,
html[data-phala-theme="light-chat"] .account-action-row button,
html[data-phala-theme="light-chat"] .account-action-row .auth-secondary-link,
html[data-phala-theme="light-chat"] .password-toggle,
html[data-phala-theme="light-chat"] .clarification-actions button {
  color: var(--light-text) !important; background: #fff !important; border-color: var(--light-line) !important; box-shadow: none !important;
}
html[data-phala-theme="light-chat"] .send-button,
html[data-phala-theme="light-chat"] .intake-send,
html[data-phala-theme="light-chat"] .auth-primary,
html[data-phala-theme="light-chat"] .confirm-profile-button,
html[data-phala-theme="light-chat"] .birth-details-actions button:not(.secondary):not(.danger),
html[data-phala-theme="light-chat"] .intake-generation-gate > button,
html[data-phala-theme="light-chat"] .intake-generation-gate > a,
html[data-phala-theme="light-chat"] .save-workspace-link {
  color: #171717 !important; background: var(--light-accent) !important; border-color: var(--light-accent) !important; box-shadow: 0 7px 18px rgba(125,108,0,.13) !important;
}

/* Tables, dividers, charts and generated report surfaces. */
html[data-phala-theme="light-chat"] .horoscope-data-table th { color: #686155 !important; background: #fffbea !important; }
html[data-phala-theme="light-chat"] .horoscope-data-table td,
html[data-phala-theme="light-chat"] .rating-row,
html[data-phala-theme="light-chat"] .foundation-profile-row,
html[data-phala-theme="light-chat"] .account-action-row,
html[data-phala-theme="light-chat"] hr { border-color: var(--light-line) !important; }
html[data-phala-theme="light-chat"] .foundation-profile-row.has-value {
  background: transparent !important;
}
html[data-phala-theme="light-chat"] .foundation-profile-row.has-value strong {
  color: var(--light-text) !important;
}
html[data-phala-theme="light-chat"] .foundation-profile-row.has-value em {
  color: #796900 !important;
}
html[data-phala-theme="light-chat"] .foundation-progress-ring,
html[data-phala-theme="light-chat"] .life-map-ready-ring {
  background:
    radial-gradient(circle at center, #fff 58%, transparent 60%),
    conic-gradient(var(--light-accent) var(--progress, 0%), #f1eee3 0) !important;
  box-shadow: inset 0 0 0 1px var(--light-line), 0 8px 20px rgba(43,38,18,.06) !important;
}

/* Landing, intake, authentication, library, result and error pages. */
html[data-phala-theme="light-chat"] .marketing-page,
html[data-phala-theme="light-chat"] .intake-page,
html[data-phala-theme="light-chat"] .auth-page { background: transparent !important; }
html[data-phala-theme="light-chat"] .story-panel,
html[data-phala-theme="light-chat"] .workspace-preview-panel,
html[data-phala-theme="light-chat"] .feature-panel,
html[data-phala-theme="light-chat"] .dashboard-preview,
html[data-phala-theme="light-chat"] .preview-sidebar,
html[data-phala-theme="light-chat"] .preview-grid > div,
html[data-phala-theme="light-chat"] .intake-requirements,
html[data-phala-theme="light-chat"] .smart-help-card,
html[data-phala-theme="light-chat"] .consent-history {
  background: #fff !important; border-color: var(--light-line) !important; box-shadow: var(--light-shadow) !important;
}
html[data-phala-theme="light-chat"] .story-copy em,
html[data-phala-theme="light-chat"] .workspace-preview-panel h2 em,
html[data-phala-theme="light-chat"] .feature-panel h2 em,
html[data-phala-theme="light-chat"] .intake-intro h1 em,
html[data-phala-theme="light-chat"] .future-link small,
html[data-phala-theme="light-chat"] .intake-example strong,
html[data-phala-theme="light-chat"] .auth-kicker,
html[data-phala-theme="light-chat"] .intake-kicker { color: #827000 !important; }

html[data-phala-theme="light-chat"] ::selection { color: #171717; background: #f5df20; }
html[data-phala-theme="light-chat"] :focus-visible { outline-color: #cdb700 !important; }

/* R29.6 interaction density and readability. */
html[data-phala-theme="light-chat"] .workspace-nav { gap: 6px; }
html[data-phala-theme="light-chat"] .workspace-nav button {
  min-height: 44px;
  padding: 0 13px;
  gap: 12px;
  border-radius: 12px;
  font-size: 13px !important;
  font-weight: 650 !important;
}
html[data-phala-theme="light-chat"] .workspace-nav button span { width: 22px; }
html[data-phala-theme="light-chat"] .workspace-breadcrumb { font-size: 9px !important; }
html[data-phala-theme="light-chat"] .workspace-topbar h1 { font-size: 19px !important; }
html[data-phala-theme="light-chat"] .workspace-online,
html[data-phala-theme="light-chat"] .workspace-new-session { font-size: 11px !important; }
html[data-phala-theme="light-chat"] .workspace-user-card strong { font-size: 11px !important; }
html[data-phala-theme="light-chat"] .workspace-user-card small { font-size: 9px !important; }

html[data-phala-theme="light-chat"] .panel-title strong { font-size: 15px !important; }
html[data-phala-theme="light-chat"] .message-stream { gap: 17px; padding: 18px !important; }
html[data-phala-theme="light-chat"] .message-bubble,
html[data-phala-theme="light-chat"] .message-bubble p,
html[data-phala-theme="light-chat"] .phala-reply,
html[data-phala-theme="light-chat"] .phala-reply p,
html[data-phala-theme="light-chat"] .phala-reply li {
  font-size: 16px !important;
  line-height: 1.62 !important;
  color: #2a271f !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}
html[data-phala-theme="light-chat"] .message-user .message-content {
  width: 100% !important;
  max-width: 100% !important;
}
html[data-phala-theme="light-chat"] .message-user .message-bubble {
  width: fit-content !important;
  max-width: 100% !important;
  overflow: hidden;
}
html[data-phala-theme="light-chat"] .message-meta,
html[data-phala-theme="light-chat"] .message-meta strong,
html[data-phala-theme="light-chat"] .message-meta span { font-size: 12px !important; }
html[data-phala-theme="light-chat"] .message.message-continuation { padding-left: 46px; }
html[data-phala-theme="light-chat"] .message.message-continuation .message-content { width: min(84%, 720px) !important; }

html[data-phala-theme="light-chat"] .message-canvas-action button {
  min-height: 58px;
  padding: 11px 16px;
  border: 1px solid var(--light-line) !important;
  border-radius: 16px !important;
  background: #fff !important;
  color: var(--light-text) !important;
  box-shadow: var(--light-shadow) !important;
}
html[data-phala-theme="light-chat"] .message-canvas-action button span { font-size: 15px !important; font-weight: 700 !important; }
html[data-phala-theme="light-chat"] .message-canvas-action button small { font-size: 12px !important; color: var(--light-muted) !important; }
html[data-phala-theme="light-chat"] .message-follow-up {
  gap: 8px;
  padding: 14px 16px 15px;
  border: 1px solid var(--light-line) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: var(--light-shadow) !important;
}
html[data-phala-theme="light-chat"] .message-follow-up > span {
  color: #756500 !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  letter-spacing: .06em !important;
}
html[data-phala-theme="light-chat"] .message-follow-up p {
  margin: 0;
  color: #3d392f !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
}
html[data-phala-theme="light-chat"] .dasha-sequence-card {
  background: #fffdf6 !important;
}
html[data-phala-theme="light-chat"] .dasha-sequence-step > strong {
  background: #fff !important;
  color: var(--light-text) !important;
  box-shadow: 0 6px 16px rgba(43, 38, 18, .05) !important;
}

html[data-phala-theme="light-chat"] .canvas-action-highlight {
  position: relative;
  isolation: isolate;
}
html[data-phala-theme="light-chat"] .canvas-action-highlight::after {
  content: "";
  position: absolute;
  inset: -5px;
  z-index: 4;
  pointer-events: none;
  border: 3px solid #e5cb00;
  border-radius: inherit;
  box-shadow: 0 0 0 5px rgba(245, 223, 32, .30), 0 0 28px rgba(212, 184, 0, .42);
  animation: light-chat-target-pulse 2.2s ease-out both;
}
@keyframes light-chat-target-pulse {
  0% { opacity: 0; transform: scale(.985); }
  16%, 68% { opacity: 1; transform: scale(1); }
  38% { opacity: .48; transform: scale(1.008); }
  100% { opacity: 0; transform: scale(1.015); }
}

html[data-phala-theme="light-chat"] .historical-review-card.is-review-offered,
html[data-phala-theme="light-chat"] .historical-window.is-current {
  border-color: #e5cb00 !important;
  animation: light-chat-historical-glow 1.8s ease-in-out infinite !important;
}
@keyframes light-chat-historical-glow {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(229, 203, 0, .28)); }
  50% { filter: drop-shadow(0 0 15px rgba(229, 203, 0, .78)); }
}
@media (prefers-reduced-motion: reduce) {
  html[data-phala-theme="light-chat"] .historical-review-card.is-review-offered,
  html[data-phala-theme="light-chat"] .historical-window.is-current {
    animation: none !important;
    filter: drop-shadow(0 0 10px rgba(229, 203, 0, .58));
  }
}

/* Compact single-bar composer with soft vector controls. */
html[data-phala-theme="light-chat"] .composer:not(.structured-input-active) {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 12px 14px 10px !important;
}
html[data-phala-theme="light-chat"] .composer:not(.structured-input-active) textarea {
  grid-column: 1 / -1;
  grid-row: 1;
  min-height: 56px !important;
  max-height: 88px !important;
  padding: 15px 104px 15px 17px !important;
  border-radius: 20px !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
  overflow-y: auto;
  box-shadow: 0 5px 18px rgba(43,38,18,.045) !important;
}
html[data-phala-theme="light-chat"] .composer:not(.structured-input-active) .composer-actions {
  position: relative;
  top: auto;
  right: auto;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  z-index: 2;
  margin: 0 10px 0 0;
  gap: 8px;
}
html[data-phala-theme="light-chat"] .composer.historical-review-active .composer-input-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-column: 1 / -1;
}
html[data-phala-theme="light-chat"] .composer.historical-review-active .conversation-interaction {
  grid-column: 1 / -1;
  grid-row: 1;
}
html[data-phala-theme="light-chat"] .composer.historical-review-active textarea {
  grid-column: 1 / -1;
  grid-row: 2;
  padding-right: 104px !important;
}
html[data-phala-theme="light-chat"] .composer.historical-review-active .composer-actions {
  grid-column: 2;
  grid-row: 2;
}
html[data-phala-theme="light-chat"] .voice-button,
html[data-phala-theme="light-chat"] .workspace-mode .send-button,
html[data-phala-theme="light-chat"] .workspace-mode.canvas-locked.chat-open .send-button {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 50% !important;
}
html[data-phala-theme="light-chat"] .voice-button {
  color: #514c3f !important;
  background: #f7f4eb !important;
  border: 1px solid #e8e3d7 !important;
}
html[data-phala-theme="light-chat"] .workspace-mode .send-button,
html[data-phala-theme="light-chat"] .workspace-mode.canvas-locked.chat-open .send-button {
  color: #171717 !important;
  background: var(--light-accent) !important;
  box-shadow: 0 5px 13px rgba(108,94,0,.14) !important;
}
html[data-phala-theme="light-chat"] .composer-hint {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 7px 4px 0;
  font-size: 10px !important;
  color: #8a8478 !important;
}
html[data-phala-theme="light-chat"] .composer:not(.is-processing) .stop-icon { display: none !important; }
html[data-phala-theme="light-chat"] .composer.is-processing .send-icon { display: none !important; }
html[data-phala-theme="light-chat"] .composer.is-processing .stop-icon { display: grid !important; place-items: center; }

/* Horoscope generation progress belongs to the selected theme. */
html[data-phala-theme="light-chat"] .generation-progress {
  min-width: min(100%, 430px);
  padding: 17px 18px !important;
  border: 1px solid var(--light-line) !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: var(--light-shadow) !important;
}
html[data-phala-theme="light-chat"] .generation-progress-heading strong { font-size: 15px !important; }
html[data-phala-theme="light-chat"] .generation-spinner {
  border-color: #efead7 !important;
  border-top-color: #cfb900 !important;
}
html[data-phala-theme="light-chat"] .generation-progress-track {
  height: 8px !important;
  border-radius: 999px !important;
  background: #efede5 !important;
  overflow: hidden;
}
html[data-phala-theme="light-chat"] .generation-progress-track span {
  border-radius: inherit;
  background: linear-gradient(90deg, #f5df20, #dfc900) !important;
  box-shadow: none !important;
}
html[data-phala-theme="light-chat"] .generation-progress p { font-size: 13px !important; }
html[data-phala-theme="light-chat"] .generation-progress small { font-size: 11px !important; }

/* Right panel: readable hierarchy without legacy green confirmation marks. */
html[data-phala-theme="light-chat"] .canvas-hero h1,
html[data-phala-theme="light-chat"] .canvas-hero h2 { font-size: clamp(29px, 2.4vw, 38px) !important; line-height: 1.12 !important; }
html[data-phala-theme="light-chat"] .canvas-hero p { font-size: 14px !important; line-height: 1.55 !important; }
html[data-phala-theme="light-chat"] .canvas-kicker,
html[data-phala-theme="light-chat"] .card-topline span,
html[data-phala-theme="light-chat"] .horoscope-data-section > header small { font-size: 10px !important; }
html[data-phala-theme="light-chat"] .canvas-card h2,
html[data-phala-theme="light-chat"] .foundation-focus-copy h2 { font-size: 20px !important; }
html[data-phala-theme="light-chat"] .canvas-card p,
html[data-phala-theme="light-chat"] .evidence-item p,
html[data-phala-theme="light-chat"] .foundation-signal p { font-size: 13px !important; line-height: 1.5 !important; }
html[data-phala-theme="light-chat"] .evidence-item strong,
html[data-phala-theme="light-chat"] .foundation-signal strong,
html[data-phala-theme="light-chat"] .foundation-profile-row strong { font-size: 13px !important; }
html[data-phala-theme="light-chat"] .evidence-ready > span,
html[data-phala-theme="light-chat"] .foundation-step.ready > span,
html[data-phala-theme="light-chat"] .foundation-profile-row.has-value em,
html[data-phala-theme="light-chat"] .life-map-flow-step.complete > span,
html[data-phala-theme="light-chat"] .life-map-flow-step.complete > span > i {
  color: #2f2a10 !important;
  background: #fff4a6 !important;
  border-color: #e6d34e !important;
  box-shadow: none !important;
}

/* D-chart library and chart detail controls. */
html[data-phala-theme="light-chat"] .real-chart-tabs,
html[data-phala-theme="light-chat"] .connected-chart-tabs { gap: 9px !important; }
html[data-phala-theme="light-chat"] .real-chart-tab,
html[data-phala-theme="light-chat"] .connected-chart-tabs button {
  min-width: 58px !important;
  min-height: 42px !important;
  padding: 0 15px !important;
  border: 1px solid var(--light-line) !important;
  border-radius: 12px !important;
  color: #504b3e !important;
  background: #fff !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}
html[data-phala-theme="light-chat"] .real-chart-tab.active,
html[data-phala-theme="light-chat"] .connected-chart-tabs button.active {
  color: #171717 !important;
  border-color: #d7c000 !important;
  background: #fff7b8 !important;
}
html[data-phala-theme="light-chat"] .career-focus-grid { gap: 12px !important; }
html[data-phala-theme="light-chat"] .career-focus-card {
  min-height: 128px;
  border: 1px solid var(--light-line) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 6px 18px rgba(43,38,18,.045) !important;
}
html[data-phala-theme="light-chat"] .career-focus-card span { font-size: 15px !important; }
html[data-phala-theme="light-chat"] .career-focus-card strong,
html[data-phala-theme="light-chat"] .career-focus-card em { color: #625600 !important; font-size: 12px !important; }
html[data-phala-theme="light-chat"] .career-focus-card small { font-size: 11px !important; }
html[data-phala-theme="light-chat"] .real-chart-side h3 { font-size: 23px !important; }
html[data-phala-theme="light-chat"] .real-chart-side p,
html[data-phala-theme="light-chat"] .real-chart-table-row { font-size: 13px !important; }
html[data-phala-theme="light-chat"] .real-chart-table,
html[data-phala-theme="light-chat"] .real-chart-stage,
html[data-phala-theme="light-chat"] .real-chart-inspector {
  border-color: var(--light-line) !important;
  background: #fff !important;
  box-shadow: none !important;
}
html[data-phala-theme="light-chat"] .vedic-house.is-house-highlight,
html[data-phala-theme="light-chat"] .vedic-planet.is-highlight,
html[data-phala-theme="light-chat"] .real-chart-table-row.is-highlight {
  color: #3e370f !important;
  border-color: #dec927 !important;
  background: #fff8c9 !important;
  box-shadow: none !important;
}

@media (max-width: 620px) {
  html[data-phala-theme="light-chat"] .composer:not(.structured-input-active) textarea { padding-right: 104px !important; }
  html[data-phala-theme="light-chat"] .message.message-continuation { padding-left: 42px; }
  html[data-phala-theme="light-chat"] .message-bubble,
  html[data-phala-theme="light-chat"] .message-bubble p { font-size: 15px !important; }
}

/* R29.7 Home dashboard: use available space for legibility, not micro cards. */
html[data-phala-theme="light-chat"] .dashboard-scroll {
  padding: 28px 30px 40px !important;
}
html[data-phala-theme="light-chat"] .dashboard-welcome h2 {
  margin: 8px 0 7px;
  font-size: clamp(28px, 2.5vw, 38px) !important;
  line-height: 1.12;
}
html[data-phala-theme="light-chat"] .dashboard-kicker {
  font-size: 10px !important;
  letter-spacing: .12em !important;
}
html[data-phala-theme="light-chat"] .dashboard-welcome p {
  font-size: 14px !important;
  line-height: 1.5;
}
html[data-phala-theme="light-chat"] .dashboard-readiness-pill {
  padding: 10px 15px;
  font-size: 11px !important;
}

html[data-phala-theme="light-chat"] .dashboard-status-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 16px;
}
html[data-phala-theme="light-chat"] .dashboard-status-grid article {
  min-height: 118px;
  padding: 20px;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  border-radius: 18px;
}
html[data-phala-theme="light-chat"] .dashboard-status-grid article > span {
  width: 46px;
  height: 46px;
  font-size: 20px;
}
html[data-phala-theme="light-chat"] .dashboard-status-grid small {
  font-size: 10px !important;
  letter-spacing: .08em;
}
html[data-phala-theme="light-chat"] .dashboard-status-grid strong {
  margin-top: 6px;
  font-size: 16px !important;
  line-height: 1.25;
}
html[data-phala-theme="light-chat"] .dashboard-status-grid em {
  margin-top: 7px;
  font-size: 12px !important;
  line-height: 1.4;
}

html[data-phala-theme="light-chat"] .dashboard-main-grid { gap: 16px; }
html[data-phala-theme="light-chat"] .dashboard-card {
  min-height: 300px;
  padding: 23px;
  border-radius: 18px;
}
html[data-phala-theme="light-chat"] .dashboard-card header small {
  font-size: 9px !important;
  letter-spacing: .1em;
}
html[data-phala-theme="light-chat"] .dashboard-card h3 {
  margin-top: 6px;
  font-size: 19px !important;
}
html[data-phala-theme="light-chat"] .dashboard-card header button {
  font-size: 12px !important;
}
html[data-phala-theme="light-chat"] .dashboard-empty-list { min-height: 215px; }
html[data-phala-theme="light-chat"] .dashboard-empty-list > span {
  width: 50px;
  height: 50px;
  font-size: 21px;
}
html[data-phala-theme="light-chat"] .dashboard-empty-list strong {
  margin-top: 14px;
  font-size: 14px !important;
}
html[data-phala-theme="light-chat"] .dashboard-empty-list p {
  max-width: 420px;
  margin-top: 8px;
  font-size: 12px !important;
  line-height: 1.55;
}
html[data-phala-theme="light-chat"] .dashboard-question-box {
  min-height: 76px;
  margin-top: 25px;
  padding: 0 18px;
  font-size: 14px !important;
}
html[data-phala-theme="light-chat"] .recent-question-list p {
  font-size: 12px !important;
  line-height: 1.5;
}

html[data-phala-theme="light-chat"] .dashboard-quick-section {
  margin-top: 22px;
}
html[data-phala-theme="light-chat"] .dashboard-quick-section > small {
  font-size: 10px !important;
  letter-spacing: .11em;
}
html[data-phala-theme="light-chat"] .dashboard-quick-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}
html[data-phala-theme="light-chat"] .dashboard-quick-grid button {
  min-height: 86px;
  padding: 15px 18px;
  border-radius: 18px !important;
  background: #fff !important;
  border-color: var(--light-line) !important;
  box-shadow: 0 6px 18px rgba(43,38,18,.045) !important;
}
html[data-phala-theme="light-chat"] .dashboard-quick-grid button > span {
  width: 42px;
  height: 42px;
  font-size: 18px;
  color: #756500 !important;
  background: #fff8c5 !important;
}
html[data-phala-theme="light-chat"] .dashboard-quick-grid strong {
  font-size: 14px !important;
}
html[data-phala-theme="light-chat"] .dashboard-quick-grid small {
  margin-top: 5px;
  font-size: 11px !important;
}

@media (max-width: 760px) {
  html[data-phala-theme="light-chat"] .dashboard-scroll { padding: 20px 16px 30px !important; }
  html[data-phala-theme="light-chat"] .dashboard-status-grid,
  html[data-phala-theme="light-chat"] .dashboard-main-grid,
  html[data-phala-theme="light-chat"] .dashboard-quick-grid { grid-template-columns: 1fr; }
}
