:root {
    --simm-ui-canvas: #f4f7fb;
    --simm-ui-surface: #ffffff;
    --simm-ui-surface-soft: #eef5f8;
    --simm-ui-ink: #10233e;
    --simm-ui-muted: #52657b;
    --simm-ui-border: #d6e1ec;
    --simm-ui-primary: #075ea8;
    --simm-ui-primary-strong: #064a84;
    --simm-ui-accent: #007f87;
    --simm-ui-focus: #f4b942;
    --simm-ui-danger: #b42338;
    --simm-ui-success: #08775b;
    --simm-ui-shadow: 0 16px 44px rgba(15, 43, 72, .09);
}

body:not([data-theme-mode="dark"]),
.app-shell:not([data-theme-mode="dark"]),
.docente360-shell-body,
.secretaria360-shell,
.dece360-shell,
.ins360-shell,
.financial360-shell {
    color: var(--simm-ui-ink);
}

body:not([data-theme-mode="dark"]) .page-content,
body:not([data-theme-mode="dark"]) .workspace-content,
body:not([data-theme-mode="dark"]) .main-content {
    color: var(--simm-ui-ink);
}

body:not([data-theme-mode="dark"]) :is(.card, .panel-card, .console-card, .module-card, .modal-content, .dropdown-menu, .offcanvas, .table-responsive) {
    color: var(--simm-ui-ink);
    border-color: var(--simm-ui-border);
}

body:not([data-theme-mode="dark"]) :is(.card, .panel-card, .console-card, .module-card, .modal-content, .dropdown-menu, .offcanvas) {
    background-color: var(--simm-ui-surface);
}

body:not([data-theme-mode="dark"]) :is(h1, h2, h3, h4, h5, h6, .page-title, .section-title, .card-title, .modal-title) {
    color: var(--simm-ui-ink);
}

body:not([data-theme-mode="dark"]) :is(.text-secondary, .form-text, .small.text-muted, .text-muted, .page-subtitle) {
    color: var(--simm-ui-muted) !important;
}

body:not([data-theme-mode="dark"]) :is(.form-control, .form-select, .input-group-text) {
    color: var(--simm-ui-ink);
    background-color: #fff;
    border-color: #bfcede;
}

body:not([data-theme-mode="dark"]) :is(.form-control, .form-select)::placeholder {
    color: #6d7f93;
    opacity: 1;
}

body:not([data-theme-mode="dark"]) :is(.form-control, .form-select, .btn, a, button):focus-visible {
    outline: 3px solid color-mix(in srgb, var(--simm-ui-focus) 70%, transparent);
    outline-offset: 2px;
    box-shadow: none;
}

body:not([data-theme-mode="dark"]) .btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--simm-ui-primary), #087db3);
    border-color: var(--simm-ui-primary-strong);
}

body:not([data-theme-mode="dark"]) .btn-primary:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--simm-ui-primary-strong), #056a99);
}

body:not([data-theme-mode="dark"]) .btn-outline-primary {
    color: var(--simm-ui-primary-strong);
    border-color: #73a6cf;
    background: #fff;
}

body:not([data-theme-mode="dark"]) .btn-outline-primary:hover {
    color: #fff;
    background: var(--simm-ui-primary);
    border-color: var(--simm-ui-primary);
}

body:not([data-theme-mode="dark"]) .table {
    --bs-table-color: var(--simm-ui-ink);
    --bs-table-bg: #fff;
    --bs-table-border-color: #dce5ee;
}

body:not([data-theme-mode="dark"]) .table thead th {
    color: #344c66;
    background: #eaf2f8;
}

body:not([data-theme-mode="dark"]) :is(.badge.text-bg-light, .bg-light) {
    color: #28415d !important;
    background-color: #edf3f8 !important;
}

body:not([data-theme-mode="dark"]) :is(.alert-info, .text-bg-info-subtle) { color: #0a4d64; }
body:not([data-theme-mode="dark"]) :is(.alert-warning, .text-bg-warning-subtle) { color: #684800; }
body:not([data-theme-mode="dark"]) :is(.alert-danger, .text-bg-danger-subtle) { color: #842035; }

body:not([data-theme-mode="dark"]) .console-sidebar .text-secondary,
body:not([data-theme-mode="dark"]) .sidebar .text-secondary,
body:not([data-theme-mode="dark"]) .app-sidebar .text-secondary {
    color: rgba(255, 255, 255, .76) !important;
}

.login-brand-slots {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    width: min(760px, calc(100vw - 32px));
    margin: 0 auto 1rem;
}

.login-brand-slot {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    gap: .85rem;
    min-height: 82px;
    padding: .75rem .9rem;
    border: 1px solid rgba(196, 213, 228, .85);
    border-radius: 20px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 14px 36px rgba(9, 34, 60, .1);
    backdrop-filter: blur(14px);
}

.login-brand-slot__media {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    overflow: hidden;
    border: 1px dashed #8ea9bf;
    border-radius: 18px;
    background: #f1f6fa;
    color: #557087;
}

.login-brand-slot__media img {
    width: 100%;
    height: 100%;
    padding: .35rem;
    object-fit: contain;
}

.login-brand-slot__copy span,
.login-brand-slot__copy strong,
.login-brand-slot__copy small { display: block; }

.login-brand-slot__copy span {
    color: var(--simm-ui-primary);
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.login-brand-slot__copy strong {
    margin-top: .18rem;
    color: var(--simm-ui-ink);
    font-size: .88rem;
}

.login-brand-slot__copy small {
    margin-top: .18rem;
    color: var(--simm-ui-muted);
    font-size: .7rem;
    line-height: 1.35;
}

@media (max-width: 680px) {
    .login-brand-slots { grid-template-columns: 1fr; }
    .login-brand-slot { min-height: 72px; }
    .login-brand-slot__media { width: 54px; height: 54px; }
}


/* SIMM login contrast guard v3 */
body.auth-shell:not(.simm-macro-auth):not([data-theme-mode="dark"]) .auth-showcase {
    color: var(--simm-ui-ink);
    background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(232,244,248,.96));
    border-color: #bfd3e1;
}
body.auth-shell:not(.simm-macro-auth):not([data-theme-mode="dark"]) .auth-heading { color: var(--simm-ui-ink) !important; }
body.auth-shell:not(.simm-macro-auth):not([data-theme-mode="dark"]) .auth-copy { color: var(--simm-ui-muted) !important; }
body.auth-shell:not(.simm-macro-auth):not([data-theme-mode="dark"]) .auth-badge { color: #075b67 !important; background: #dcf4f2 !important; border: 1px solid #99d8d3; }
body.auth-shell:not(.simm-macro-auth):not([data-theme-mode="dark"]) :is(.auth-point, .auth-support-card) { color: var(--simm-ui-ink); background: rgba(255,255,255,.96); border-color: #ccdae6; }

/* SIMM colored header guard v4 */
body:not([data-theme-mode="dark"]) :is(.docente360-topbar, .financial360-topbar) :is(h1, h2, h3, h4, h5, h6, .page-title, .section-title) { color: #ffffff !important; }
body:not([data-theme-mode="dark"]) :is(.docente360-topbar, .financial360-topbar) :is(.text-secondary, .text-muted, .page-subtitle) { color: rgba(238, 247, 255, .86) !important; }