/* Noxie Labs monochrome theme; limited to the Labs host presentation marker. */
html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) {
    --mono-black: #000000;
    --mono-ink: #111111;
    --mono-strong: #262626;
    --mono-muted: #666666;
    --mono-subtle: #8a8a8a;
    --mono-border: #d4d4d4;
    --mono-soft: #f4f4f4;
    --mono-surface: #fafafa;
    --mono-white: #ffffff;

    --bg-dark: #eeeeee;
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-tertiary: #f4f4f4;
    --bg-hover: #e5e5e5;
    --bg-color: #ffffff;
    --bg-deep: #f7f7f7;
    --bg-card: #ffffff;
    --bg-card-hover: #fafafa;
    --bg-modal: #ffffff;
    --bg-overlay: rgba(0, 0, 0, 0.42);
    --surface-color: #fafafa;
    --card-bg: #ffffff;
    --terminal-bg: #111111;

    --border-color: #d4d4d4;
    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-accent: #111111;
    --text-primary: #111111;
    --text-secondary: #525252;
    --text-muted: #666666;
    --text-color: #111111;

    --accent-primary: #111111;
    --accent-hover: #333333;
    --accent-gradient: linear-gradient(135deg, #111111, #333333);
    --accent-color: #111111;
    --accent-secondary: #525252;
    --accent-cyan: #404040;
    --accent-purple: #525252;
    --accent-green: #262626;
    --accent-red: #111111;
    --accent-yellow: #737373;
    --accent-orange: #525252;
    --success: #262626;
    --danger: #111111;
    --warning: #737373;
    --success-color: #262626;
    --error-color: #111111;
    --warning-color: #737373;

    --overlay-2: rgba(0, 0, 0, 0.02);
    --overlay-3: rgba(0, 0, 0, 0.03);
    --overlay-5: rgba(0, 0, 0, 0.05);
    --overlay-6: rgba(0, 0, 0, 0.06);
    --overlay-8: rgba(0, 0, 0, 0.08);
    --overlay-10: rgba(0, 0, 0, 0.10);
    --overlay-15: rgba(0, 0, 0, 0.15);
    --overlay-20: rgba(0, 0, 0, 0.20);

    --turquoise: #111111;
    --turquoise-dark: #000000;
    --yellow: #d4d4d4;
    --yellow-dark: #a3a3a3;
    --ink: #111111;
    --ink-soft: #262626;
    --muted: #666666;
    --line: #e5e5e5;
    --gray: #fafafa;
    --white: #ffffff;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
    color-scheme: light;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing])[data-theme="light"],
html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing])[data-theme="fluffy"] {
    --bg-dark: #eeeeee;
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-tertiary: #f4f4f4;
    --bg-hover: #e5e5e5;
    --bg-color: #ffffff;
    --bg-deep: #f7f7f7;
    --bg-card: #ffffff;
    --bg-card-hover: #fafafa;
    --bg-modal: #ffffff;
    --surface-color: #fafafa;
    --card-bg: #ffffff;
    --terminal-bg: #111111;
    --border-color: #d4d4d4;
    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-accent: #111111;
    --text-primary: #111111;
    --text-secondary: #525252;
    --text-muted: #666666;
    --text-color: #111111;
    --accent-primary: #111111;
    --accent-hover: #333333;
    --accent-gradient: linear-gradient(135deg, #111111, #333333);
    --accent-color: #111111;
    --accent-secondary: #525252;
    --accent-cyan: #404040;
    --accent-purple: #525252;
    --accent-green: #262626;
    --accent-red: #111111;
    --accent-yellow: #737373;
    --accent-orange: #525252;
    --success: #262626;
    --danger: #111111;
    --warning: #737373;
    --success-color: #262626;
    --error-color: #111111;
    --warning-color: #737373;
}

/* Shared controls and semantic states */
html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) :focus-visible {
    outline-color: #000000 !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) input[type="checkbox"],
html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) input[type="radio"],
html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) input[type="range"],
html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) progress {
    accent-color: #111111 !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) ::selection {
    background: #262626;
    color: #ffffff;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) :is(
    .btn-primary,
    .primary-btn,
    .submit-btn,
    .save-btn,
    .create-btn,
    .add-btn,
    .action-primary,
    .btn-ai-generate,
    .ai-dev-button,
    .detail-close,
    .follow-btn.not-following,
    .follower-follow-btn.not-following
) {
    background: #111111 !important;
    border-color: #111111 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) :is(
    .btn-primary,
    .primary-btn,
    .submit-btn,
    .save-btn,
    .create-btn,
    .add-btn,
    .action-primary,
    .btn-ai-generate,
    .ai-dev-button,
    .detail-close,
    .follow-btn.not-following,
    .follower-follow-btn.not-following
):hover:not(:disabled) {
    background: #333333 !important;
    border-color: #333333 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) :is(
    .btn-secondary,
    .secondary-btn,
    .cancel-btn,
    .back-btn,
    .icon-btn,
    .header-action-btn
) {
    background-color: #ffffff !important;
    border-color: #737373 !important;
    color: #111111 !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) :is(
    .btn-secondary,
    .secondary-btn,
    .cancel-btn,
    .back-btn,
    .icon-btn,
    .header-action-btn
):hover:not(:disabled) {
    background-color: #eeeeee !important;
    border-color: #666666 !important;
    color: #000000 !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) :is(
    .active,
    .selected,
    [aria-selected="true"],
    [aria-current="page"]
):where(.tab, .settings-tab, .filter-chip, .visibility-btn, .filter-tab, .mode-tab, .device-tab, .nav-item, .sidebar-link) {
    background-color: #111111 !important;
    border-color: #111111 !important;
    color: #ffffff !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) :is(
    .alert-success,
    .success-message,
    .status-success,
    .badge-success
) {
    background-color: #eeeeee !important;
    border-color: #525252 !important;
    color: #111111 !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) :is(
    .alert-warning,
    .warning-message,
    .status-warning,
    .badge-warning
) {
    background-color: #f6f6f6 !important;
    border-color: #737373 !important;
    color: #262626 !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) :is(
    .alert-danger,
    .alert-error,
    .error-message,
    .status-error,
    .badge-danger
) {
    background-color: #ffffff !important;
    border-color: #111111 !important;
    color: #000000 !important;
}

/* Noxie public landing */
html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing])[data-astrum-public-landing="true"] .hero::before,
html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing])[data-astrum-public-landing="true"] .hero-character-label {
    background-color: #ececec !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing])[data-astrum-public-landing="true"] .hero-line,
html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing])[data-astrum-public-landing="true"] .profile-poster::after,
html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing])[data-astrum-public-landing="true"] .workflow-board::after {
    border-color: rgba(0, 0, 0, 0.16) !important;
    border-left-color: transparent !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing])[data-astrum-public-landing="true"] .hero-portrait-frame::after {
    border-color: rgba(0, 0, 0, 0.72) !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing])[data-astrum-public-landing="true"] .workflow-board {
    background: linear-gradient(116deg, transparent 0 63%, rgba(0, 0, 0, 0.08) 63% 100%), #ffffff !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing])[data-astrum-public-landing="true"] .activity-band::before {
    background: rgba(0, 0, 0, 0.10) !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing])[data-astrum-public-landing="true"] .fan-touch-scene::after {
    border-color: rgba(255, 255, 255, 0.36) !important;
    border-left-color: transparent !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing])[data-astrum-public-landing="true"] .pricing-card.is-featured {
    background: linear-gradient(90deg, #ececec 0 12px, rgba(236, 236, 236, 0.34) 12px 100%) !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing])[data-astrum-public-landing="true"] :is(
    .site-nav a:hover,
    .section-kicker,
    .hero-eyebrow,
    .hero-character-label small,
    .hero-character-label span,
    .poster-kicker,
    .price,
    .faq-label
) {
    color: #111111 !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing])[data-astrum-public-landing="true"] :is(
    .header-cta,
    .btn-yellow,
    .hero-blog-label,
    .workflow-board-label,
    .pricing-badge
) {
    background-color: #ececec !important;
    border-color: #111111 !important;
    color: #111111 !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing])[data-astrum-public-landing="true"] :is(
    .btn-turquoise,
    .hero-blog-arrow,
    .cta-section,
    .site-footer
) {
    background-color: #111111 !important;
    border-color: #111111 !important;
    color: #ffffff !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing])[data-astrum-public-landing="true"] .hero-activity-rail :is(strong, em) {
    color: #ffffff !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing])[data-astrum-public-landing="true"] .hero-rail-line {
    background-color: #d8d8d8 !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing])[data-astrum-public-landing="true"] .hero-rail-icon {
    background-color: #ffffff !important;
    border-color: #d4d4d4 !important;
    color: #111111 !important;
}

/* Public blog and character media */
html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) :is(.p-vwc37d-header, .owned-media-header) {
    background-color: rgba(255, 255, 255, 0.94) !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) :is(.p-vwc37d-logo, .p-vwc37d-nav-link:hover) {
    color: #111111 !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) :is(
    .p-vwc37d-logo-icon,
    .p-vwc37d-nav-link::before,
    .p-vwc37d-btn-primary
) {
    background: #111111 !important;
    border-color: #111111 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) .p-vwc37d-hamburger {
    background-color: #eeeeee !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) .p-vwc37d-hamburger span {
    background-color: #111111 !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) .floating-consultation-btn {
    background: linear-gradient(135deg, #111111, #333333) !important;
    border-color: #111111 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28) !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) .l4o3r4-footer .l4o3r4-logo,
html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) .l4o3r4-footer ul a:hover {
    color: #ffffff !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) body.public-owned-media {
    --om-bg: #fafafa;
    --om-paper: #ffffff;
    --om-ink: #111111;
    --om-text: #262626;
    --om-muted: #666666;
    --om-line: #d4d4d4;
    --om-soft: #f4f4f4;
    --om-accent: #111111;
    --om-accent-dark: #333333;
    --om-gold: #a3a3a3;
    --om-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    background: linear-gradient(180deg, #ffffff 0, #fafafa 360px), #fafafa !important;
    color: #262626 !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) body.public-owned-media :is(
    .p-vwc37d-header,
    .owned-media-header
) {
    background-color: rgba(255, 255, 255, 0.94) !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) body.public-owned-media :is(
    .p-vwc37d-logo,
    .p-vwc37d-nav-link:hover,
    .blog-hero-title span,
    .hero-title span,
    .hero-kicker,
    .blog-link,
    .article-category,
    .author-handle,
    .article-meta a,
    .sidebar-title,
    .category-item:hover,
    .tag:hover
) {
    color: #111111 !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) body.public-owned-media :is(
    .p-vwc37d-logo svg,
    .p-vwc37d-logo path,
    .l4o3r4-logo svg,
    .l4o3r4-logo path,
    .blog-empty-icon svg,
    .blog-empty-icon path
) {
    color: #111111 !important;
    stroke: currentColor !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) body.public-owned-media :is(
    .p-vwc37d-logo-icon,
    .p-vwc37d-nav-link::before,
    .p-vwc37d-btn-primary,
    .article-tag,
    .tag.active,
    .author-filter.active,
    .author-pill.active,
    .owned-media-nav a.is-active,
    .blog-pagination .active,
    .comment-submit
) {
    background: #111111 !important;
    border-color: #111111 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) body.public-owned-media .owned-media-nav {
    background-color: rgba(255, 255, 255, 0.94) !important;
    border-color: rgba(0, 0, 0, 0.18) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) body.public-owned-media .p-vwc37d-hamburger {
    background-color: #eeeeee !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) body.public-owned-media .p-vwc37d-hamburger span {
    background-color: #111111 !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) body.public-owned-media :is(
    .sidebar-section,
    .category-title,
    .category-item,
    .blog-empty-icon
) :is(svg, path) {
    color: #111111 !important;
    stroke: currentColor !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) body.public-owned-media :is(
    .blog-hero,
    .hero,
    .article-header
) {
    background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%) !important;
    border-color: #d4d4d4 !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) body.public-owned-media :is(
    .blog-hero::before,
    .article-header::before
) {
    background: radial-gradient(circle, rgba(0, 0, 0, 0.12) 0%, transparent 68%) !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) body.public-owned-media :is(
    .article-card,
    .sidebar-section,
    .profile-panel,
    .side-card,
    .related-card,
    .article-author-box,
    .comment-form,
    .comment-item
) {
    background-color: #ffffff !important;
    border-color: #d4d4d4 !important;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.08) !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) body.public-owned-media :is(.blog-empty, .empty, .hero-stat) {
    background-color: #ffffff !important;
    border-color: #d4d4d4 !important;
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.06) !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) body.public-owned-media :is(.blog-empty-icon, .avatar-placeholder) {
    background: #eeeeee !important;
    color: #111111 !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) body.public-owned-media .floating-consultation-btn {
    background: linear-gradient(135deg, #111111, #333333) !important;
    border-color: #111111 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28) !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) body.public-owned-media .l4o3r4-footer {
    background-color: #111111 !important;
    color: #ffffff !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) body.public-owned-media .l4o3r4-footer .l4o3r4-logo {
    color: #ffffff !important;
}

/* Public contact page */
html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) :is(.le95wc-bg-blob-1, .le95wc-bg-blob-2) {
    background: radial-gradient(circle, rgba(0, 0, 0, 0.08) 0%, rgba(255, 255, 255, 0) 70%) !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) :is(
    .le95wc-page-header,
    .le95wc-faq-icon,
    .le95wc-required,
    .le95wc-bubble-ai
) {
    background-color: #eeeeee !important;
    color: #111111 !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) :is(
    .le95wc-title-accent,
    .le95wc-breadcrumbs span,
    .le95wc-company-icon,
    .le95wc-checkbox-label a,
    .le95wc-company-title,
    .le95wc-faq-summary:hover
) {
    color: #111111 !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) :is(.le95wc-title-accent, .le95wc-bubble-user) {
    background-color: #d4d4d4 !important;
    color: #111111 !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) .le95wc-company-icon {
    background: linear-gradient(135deg, #eeeeee, #d4d4d4) !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) .le95wc-faq-section {
    background-color: #fafafa !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) :is(
    .le95wc-btn-primary,
    .le95wc-chatbot-btn,
    .le95wc-faq-cta
) {
    background: #111111 !important;
    border-color: #111111 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) :is(
    .le95wc-btn-secondary,
    .le95wc-form-card,
    .le95wc-company-info,
    .le95wc-faq-item,
    .le95wc-faq-content
) {
    background-color: #ffffff !important;
    border-color: #d4d4d4 !important;
    color: #262626 !important;
    box-shadow: none !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) :is(
    .le95wc-input,
    .le95wc-select,
    .le95wc-textarea,
    .le95wc-checkbox
):focus {
    border-color: #737373 !important;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.12) !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) .le95wc-form-card::after,
html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) .le95wc-faq-icon::before,
html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) .le95wc-faq-icon::after {
    background-color: #111111 !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) .le95wc-faq-item[open] {
    border-color: #737373 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) :is(
    .category-item-count,
    .beta-badge,
    .le95wc-bubble
) {
    font-size: 12px !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) body.public-owned-media :is(
    .article-tag,
    .tag,
    .author-filter,
    .author-pill,
    .blog-pagination a,
    .blog-pagination span
):not(.active) {
    background-color: #f6f6f6 !important;
    border-color: #d4d4d4 !important;
    color: #262626 !important;
}

/* Authentication */
html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) body:has(.auth-container)::before {
    background: radial-gradient(ellipse at 80% 20%, rgba(0, 0, 0, 0.06) 0%, transparent 50%), radial-gradient(ellipse at 20% 80%, rgba(128, 128, 128, 0.08) 0%, transparent 50%) !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) :is(.auth-card, .login-card, .register-card) {
    background-color: #ffffff !important;
    border-color: #d4d4d4 !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.20), 0 0 0 1px rgba(255, 255, 255, 0.72) inset !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) :is(.logo-icon, .auth-logo, .auth-logo-icon) {
    background: linear-gradient(135deg, #111111, #404040) !important;
    box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.28) !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) :is(.auth-title, .logo-text) {
    background-image: linear-gradient(135deg, #111111, #525252) !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) :is(.form-input, .form-control, input, textarea, select):focus {
    border-color: #737373 !important;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.18) !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) :is(.auth-submit, .auth-button, .login-btn, .register-btn) {
    background: linear-gradient(135deg, #111111, #333333) !important;
    border-color: #111111 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.24) !important;
}

/* Authenticated Noxie shell */
html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing])[data-theme] body {
    background-color: #f7f7f7 !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) :is(
    .sidebar,
    .server-sidebar,
    .channel-sidebar,
    .right-sidebar,
    .user-panel
) {
    background-color: #ffffff !important;
    border-color: #d4d4d4 !important;
    color: #262626 !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) :is(
    .main-header,
    .main-content > .header,
    .main-content > .article-header
) {
    background: #111111 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) :is(
    .main-header,
    .main-content > .header,
    .main-content > .article-header
) :is(h1, h2, a, span, svg) {
    color: inherit !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) :is(
    .sidebar-link,
    .nav-item,
    .channel-item,
    .server-icon
):hover {
    background-color: #eeeeee !important;
    color: #111111 !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) :is(
    .sidebar-link.active,
    .nav-item.active,
    .channel-item.active,
    .server-icon.active
) {
    background: #111111 !important;
    border-color: #111111 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) :is(
    .tabs,
    .timeline-tabs,
    .settings-tabs,
    .projects-filter-tabs
) {
    background-color: #ffffff !important;
    border-color: #d4d4d4 !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) :is(
    .card,
    .settings-card,
    .post,
    .post-composer,
    .room-info,
    .modal-content,
    .dropdown-menu,
    .item-card,
    .service-link-item,
    .theme-option
) {
    background-color: #ffffff !important;
    border-color: #d4d4d4 !important;
    color: #262626 !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) :is(
    .settings-tab.active,
    .filter-chip.active,
    .visibility-btn.active,
    .filter-tab.active,
    .mode-tab.active,
    .device-tab.active
) {
    background: #111111 !important;
    border-color: #111111 !important;
    color: #ffffff !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) :is(
    .settings-tab:hover,
    .filter-chip:hover,
    .filter-tab:hover,
    .mode-tab:hover,
    .device-tab:hover
) {
    background-color: #eeeeee !important;
    border-color: #737373 !important;
    color: #111111 !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) #editModal .modal-header {
    background: #111111 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) .ai-generate-section {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.02)) !important;
    border-color: rgba(0, 0, 0, 0.22) !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) .item-card.selected {
    border-color: #111111 !important;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12) !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) :is(.badge, .chip, .tag, .status-badge) {
    border-color: #a3a3a3 !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) :disabled,
html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) [aria-disabled="true"] {
    background-color: #e5e5e5 !important;
    border-color: #bdbdbd !important;
    color: #737373 !important;
}

/* Final contrast corrections for shared public/auth elements. */
html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) body .l4o3r4-footer a.l4o3r4-logo {
    color: #ffffff !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) body .l4o3r4-footer .l4o3r4-bottom {
    color: #a3a3a3 !important;
    border-color: #404040 !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) body.public-owned-media :is(
    .hero-stat span,
    .section-desc
) {
    color: #666666 !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) :is(.beta-title, .beta-description strong) {
    color: #525252 !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) .beta-badge {
    background: #d4d4d4 !important;
    color: #111111 !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing]) .beta-notice {
    background: #f6f6f6 !important;
    border-color: #737373 !important;
}

/* Higher-specificity neutralization for the authenticated fluffy header. */
html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing])[data-theme] .main-header :is(
    .visibility-toggle,
    .btn-post,
    .icon-btn,
    .header-save-btn,
    .points-badge,
    .add-residence-btn,
    .btn-secondary,
    .btn-memory,
    .back-btn,
    .btn-danger,
    .edit-btn,
    .edit-course-btn,
    .hamburger-btn,
    .close-btn,
    .npc-unsub-btn,
    .sidebar-toggle-btn,
    .header-icon,
    .btn-create
),
html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing])[data-theme] .main-content > :is(.header, .article-header) :is(
    .visibility-btn,
    .publish-scope-btn,
    .retweet-btn,
    .dropdown-trigger,
    .save-btn,
    .edit-btn
) {
    background: #ffffff !important;
    border-color: #737373 !important;
    color: #111111 !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing])[data-theme] .main-header .header-actions .btn-primary {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: #111111 !important;
    box-shadow: none !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing])[data-theme] .main-header :is(
    .visibility-toggle,
    .btn-post,
    .icon-btn,
    .header-save-btn,
    .points-badge,
    .add-residence-btn,
    .btn-secondary,
    .btn-memory,
    .back-btn,
    .btn-danger,
    .edit-btn,
    .edit-course-btn,
    .hamburger-btn,
    .close-btn,
    .npc-unsub-btn,
    .sidebar-toggle-btn,
    .header-icon,
    .btn-create,
    .header-actions .btn-primary
) :is(svg, path, span),
html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing])[data-theme] .main-content > :is(.header, .article-header) :is(
    .visibility-btn,
    .publish-scope-btn,
    .retweet-btn,
    .dropdown-trigger,
    .save-btn,
    .edit-btn
) :is(svg, path, span) {
    color: #111111 !important;
    stroke: currentColor !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing])[data-theme] .main-header :is(.mode-tabs, .device-tabs) {
    background: #d4d4d4 !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing])[data-theme] .main-header :is(.mode-tab, .device-tab) {
    color: #111111 !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing])[data-theme] .main-header :is(.mode-tab.active, .device-tab.active) {
    background: #ffffff !important;
    color: #111111 !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing])[data-theme] :is(
    .follow-btn.following,
    .follower-follow-btn.following,
    .residence-type-badge
) {
    background: #eeeeee !important;
    border-color: #a3a3a3 !important;
    color: #111111 !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing])[data-theme] :is(
    .item-rarity.legendary,
    .modal-rarity.legendary,
    .celebration-badge.legendary
) {
    color: #525252 !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing])[data-theme] .replies-container .post.reply {
    background: #fafafa !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing])[data-theme] .data-thumbnail {
    background: linear-gradient(135deg, #eeeeee, #d4d4d4) !important;
}

/* Some tool pages reuse the tertiary surface token for spinner strokes. */
html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing])[data-theme] .progress-spinner {
    border-right-color: #eeeeee !important;
    border-bottom-color: #eeeeee !important;
    border-left-color: #eeeeee !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing])[data-theme] .main-header .npc-unsub-btn:hover {
    background: #262626 !important;
    border-color: #262626 !important;
    color: #ffffff !important;
}

/* Keep every authenticated Noxie workspace neutral while content cards stay white. */
html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing])[data-theme] .main-content {
    background: #fafafa !important;
}

/* Remove the legacy beige surfaces from the dedicated AI memory workspace. */
html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing])[data-theme] :is(
    .graph-container,
    .graph-header,
    .graph-input-wrap
) {
    background: #fafafa !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing])[data-theme] :is(
    .node-item,
    .edge-item
) {
    background: #f4f4f4 !important;
}

html[data-noxie-labs][data-astrum-platform="automates"]:not([data-noxie-labs-landing])[data-theme] .graph-row:hover {
    background: #f7f7f7 !important;
}

/* Labs keeps a neutral system typeface and visible keyboard focus. */
html[data-noxie-labs] body,
html[data-noxie-labs] :is(button, input, textarea, select) {
    font-family: Inter, "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif !important;
}
html[data-noxie-labs] :focus-visible {
    outline: 2px solid currentColor !important;
    outline-offset: 4px;
}
html[data-noxie-labs][data-noxie-labs-landing] {
    --color-primary-500: #222222;
    --color-primary-600: #111111;
    --color-secondary-400: #333333;
    --color-secondary-500: #111111;
    --color-secondary-600: #000000;
    --color-secondary-700: #000000;
    --color-cream-50: #ffffff;
    --color-cream-100: #ffffff;
    --color-cream-200: #f5f5f5;
    --color-cream-300: #eeeeee;
    --font-display: Inter, "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
}
html[data-noxie-labs] .site-header {
    background: rgba(255,255,255,.97) !important;
    border-bottom: 1px solid #dedede;
}
html[data-noxie-labs] .site-header .logo,
html[data-noxie-labs] .site-header .logo span {
    color: #111111 !important;
}
html[data-noxie-labs] .logo-kana { color: #666666 !important; font-size: 12px !important; }
html[data-noxie-labs] :is(.hero, .section-green, .section-green-deep, .site-footer) {
    background-color: #111111;
}
html[data-noxie-labs] .site-footer .logo span { color: #ffffff !important; }
html[data-noxie-labs] :is(.testimonial-avatar, .founder-avatar, .founder-image) img,
html[data-noxie-labs] :is(img.testimonial-avatar, img.founder-avatar) { filter: grayscale(1); }

html[data-noxie-labs] .profile-card-tag { font-size: 12px; }
html[data-noxie-labs] body:has(.auth-container) { padding-top: 5rem; padding-bottom: 2rem; }
html[data-noxie-labs] .hero .highlight {
    background: none !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    -webkit-text-stroke: 0 !important;
    text-decoration: underline;
    text-decoration-color: #9e9e9e;
    text-underline-offset: .15em;
}

/* Authenticated page-owned status labels may carry inline palette values. */
html[data-noxie-labs]:not([data-noxie-labs-landing]) :is(.daily-card-status, .status-badge, .badge, .profile-card-tag) {
    background: #eeeeee !important;
    border: 1px solid #bdbdbd;
    color: #222222 !important;
    font-size: max(12px, .75rem) !important;
}
html[data-noxie-labs]:not([data-noxie-labs-landing]) .server-icon:not(.has-logo):not(.active) {
    color: #333333 !important;
    background-color: #f5f5f5 !important;
}
html[data-noxie-labs]:not([data-noxie-labs-landing]) .server-icon svg {
    color: inherit !important;
}
