body.app-shell:not(.ops-home-shell):not([data-endpoint="admin.map_editor"]) .page-shell {
    color: var(--text);
}

body.app-shell:not(.ops-home-shell):not([data-endpoint="admin.map_editor"]) .page-shell :is(
    h1, h2, h3, h4, h5, h6,
    strong,
    th,
    td,
    label,
    legend,
    .page-title,
    .page-subtitle,
    .page-meta,
    .section-title,
    .section-header,
    .section-heading,
    .card-title,
    .table-subtext,
    .muted,
    .soft,
    .section-subtitle,
    .module-panel-head h2,
    .module-panel-head h3,
    .module-panel-head h4,
    .module-toolbar strong,
    .module-toolbar-sub,
    .settings-title,
    .settings-desc,
    .tree-parent-title,
    .tree-parent-subtitle,
    .central-title,
    .central-name,
    .central-summary-value,
    .central-summary-label,
    .th-title,
    .sidebar-item-title,
    .sidebar-item-subtitle,
    .visual-note,
    .visual-role-link-note,
    .kv-list b,
    .badge,
    .mini-chip,
    .active-filter-chip
) {
    opacity: 1 !important;
}

body.app-shell:not(.ops-home-shell):not([data-endpoint="admin.map_editor"]) .page-shell :is(
    h1, h2, h3, h4, h5, h6,
    strong,
    .page-title,
    .section-title,
    .module-panel-head h2,
    .module-panel-head h3,
    .module-panel-head h4,
    .central-title,
    .central-name,
    .central-summary-value,
    .th-title,
    label,
    legend
) {
    color: var(--text) !important;
}

body.app-shell:not(.ops-home-shell):not([data-endpoint="admin.map_editor"]) .page-shell :is(
    p,
    span,
    li,
    small,
    div,
    td,
    .table-subtext,
    .muted,
    .soft,
    .section-subtitle,
    .module-panel-head p,
    .module-toolbar-sub,
    .settings-desc,
    .tree-parent-subtitle,
    .sidebar-item-subtitle,
    .kv-list span,
    .central-sub,
    .central-meta,
    .visual-note,
    .visual-role-link-note
):not(.btn):not(.btn-primary):not(.btn-secondary):not(.btn-danger):not(.badge):not(.access-status-badge):not(.access-pill):not(.role-badge):not(.ops-badge):not(.sidebar-link):not(.sidebar-link-copy):not(.sidebar-link-icon):not(.sidebar-system-entry):not(.sidebar-back-link):not(.sidebar-logout-link) {
    color: var(--text-soft) !important;
    opacity: 1 !important;
}

body.app-shell:not(.ops-home-shell):not([data-endpoint="admin.map_editor"]) .page-shell :is(
    .module-hero,
    .module-panel,
    .panel-soft,
    .surface-card,
    .card,
    .settings-module,
    .access-panel,
    .access-canvas,
    .access-table-wrap,
    .users-role-card,
    .users-matrix-card,
    .users-system-card,
    .theme-preview-card,
    .settings-info-card,
    .status-item,
    .admin-kpi,
    .panel,
    .panel-box,
    .panel-shell,
    .device-section,
    .central-summary-card,
    .filter-panel,
    .column-panel,
    .table-wrap,
    .module-table-wrap,
    .config-panel,
    .network-scan-box,
    .site-item,
    .building-card,
    .floor-card,
    .hint-box,
    .mode-card,
    .intro-card,
    .edit-card,
    .table-card,
    .info-card,
    .sub-panel,
    .focus-note,
    .status-column,
    .comment-box,
    .attachment-box,
    .work-card,
    .symbol-modal-card,
    .symbol-preview-popup
) {
    background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%) !important;
    color: var(--text) !important;
    border-color: var(--border-soft) !important;
}

body.app-shell:not(.ops-home-shell):not([data-endpoint="admin.map_editor"]) .page-shell :is(
    input,
    select,
    textarea,
    .search-input,
    .toolbar-select,
    .site-select,
    .text-input,
    .text-area,
    .select-input,
    .form-control,
    .file-input,
    .col-popup-input,
    .col-popup-select
) {
    background: #fbfdff !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
    opacity: 1 !important;
}

body.app-shell:not(.ops-home-shell):not([data-endpoint="admin.map_editor"]) .page-shell ::placeholder {
    color: var(--text-muted) !important;
    opacity: 1 !important;
}

body.app-shell:not(.ops-home-shell):not([data-endpoint="admin.map_editor"]) .page-shell :is(
    table,
    .table,
    .data-table,
    .table-basic,
    .access-table,
    .users-table,
    .users-matrix,
    .status-table,
    .doc-table
) {
    color: var(--text) !important;
}

body.app-shell:not(.ops-home-shell):not([data-endpoint="admin.map_editor"]) .page-shell :is(
    th,
    .table th,
    .data-table th,
    .table-basic th,
    .access-table th,
    .users-table th,
    .users-matrix th,
    .status-table th,
    .doc-table th
) {
    color: var(--text-muted) !important;
    background: #f7fafc !important;
    opacity: 1 !important;
}

body.app-shell:not(.ops-home-shell):not([data-endpoint="admin.map_editor"]) .page-shell :is(
    td,
    .table td,
    .data-table td,
    .table-basic td,
    .access-table td,
    .users-table td,
    .users-matrix td,
    .status-table td,
    .doc-table td
) {
    color: var(--text-soft) !important;
    opacity: 1 !important;
}

body.app-shell:not(.ops-home-shell):not([data-endpoint="admin.map_editor"]) .page-shell :is(
    .table tbody tr:hover,
    .data-table tbody tr:hover,
    .table-basic tbody tr:hover,
    .access-table tbody tr:hover,
    .users-table tbody tr:hover,
    .users-matrix tbody tr:hover,
    .status-table tbody tr:hover,
    .doc-table tbody tr:hover
) {
    background: rgba(16, 132, 214, 0.035) !important;
}

body.app-shell:not(.ops-home-shell):not([data-endpoint="admin.map_editor"]) .page-shell :is(
    .status-online,
    .badge.status-online,
    .status-badge.status-online
) {
    color: #2f6f45 !important;
}

body.app-shell:not(.ops-home-shell):not([data-endpoint="admin.map_editor"]) .page-shell :is(
    .status-offline,
    .badge.status-offline,
    .status-badge.status-offline
) {
    color: #8b4040 !important;
}

body.app-shell:not(.ops-home-shell):not([data-endpoint="admin.map_editor"]) .page-shell :is(
    .status-warning,
    .badge.status-warning,
    .status-badge.status-warning
) {
    color: #8a651f !important;
}

body.app-shell:not(.ops-home-shell):not([data-endpoint="admin.map_editor"]) .page-shell [style*="color:#fff"],
body.app-shell:not(.ops-home-shell):not([data-endpoint="admin.map_editor"]) .page-shell [style*="color: #fff"],
body.app-shell:not(.ops-home-shell):not([data-endpoint="admin.map_editor"]) .page-shell [style*="color:#f7faff"],
body.app-shell:not(.ops-home-shell):not([data-endpoint="admin.map_editor"]) .page-shell [style*="color: #f7faff"] {
    color: var(--text) !important;
}
