:root {
    --mpc-navy: #0b1f36;
    --mpc-navy-light: #13395f;
    --mpc-blue: #1769e0;
    --mpc-blue-dark: #0f56bd;
    --mpc-soft-blue: #edf5ff;
    --mpc-border: #dfe6ef;
    --mpc-text: #172337;
    --mpc-muted: #64748b;
    --mpc-surface: #ffffff;
    --mpc-background: #f4f7fb;
    --sidebar-background: #f3f6fa;
    --sidebar-border: #d8e1ec;
    --topbar-height: 68px;
    --sidebar-width: 256px;
}

html { min-height: 100%; }

body {
    min-height: 100vh;
    margin: 0;
    color: var(--mpc-text);
    background: var(--mpc-background);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* cod- 14-09-2026: estructura administrativa con topbar compacta y navegación lateral. */
.app-topbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1040;
    display: flex;
    height: var(--topbar-height);
    align-items: center;
    justify-content: space-between;
    color: #fff;
    background: var(--mpc-navy);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .07), 0 5px 18px rgba(4, 16, 29, .12);
}

.topbar-brand-area {
    display: flex;
    width: var(--sidebar-width);
    height: 100%;
    align-items: center;
    gap: .65rem;
    padding: 0 1.25rem;
    border-right: 1px solid rgba(255, 255, 255, .09);
    flex: 0 0 auto;
}

.topbar-brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: .7rem;
    color: #fff;
    text-decoration: none;
    font-size: 1.02rem;
    font-weight: 750;
    letter-spacing: .01em;
}

.topbar-brand:hover { color: #fff; }
.topbar-logo { width: 43px; height: 38px; object-fit: contain; flex: 0 0 auto; }
.topbar-user-area { display: flex; min-width: 0; align-items: center; gap: 1rem; padding: 0 1.5rem; }
.topbar-user { display: flex; min-width: 0; align-items: center; gap: .7rem; }

.user-avatar {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .11);
    font-size: .82rem;
    font-weight: 800;
}

.user-copy { display: block; min-width: 0; line-height: 1.15; text-align: right; }
.user-copy strong, .user-copy small { display: block; overflow: hidden; max-width: 230px; text-overflow: ellipsis; white-space: nowrap; }
.user-copy strong { font-size: .88rem; font-weight: 700; }
.user-copy small { margin-top: .2rem; color: #aebfd2; font-size: .73rem; }

.topbar-logout {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .48rem .7rem;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 9px;
    color: #dbe7f3;
    background: rgba(255, 255, 255, .05);
    font-size: .8rem;
    font-weight: 650;
    transition: background-color .15s ease, border-color .15s ease;
}

.topbar-logout:hover { border-color: rgba(255, 255, 255, .28); color: #fff; background: rgba(255, 255, 255, .11); }
.topbar-logout svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-toggle { display: none; width: 36px; height: 36px; padding: 8px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .08); }
.sidebar-toggle span { display: block; height: 2px; margin: 4px 0; border-radius: 2px; background: #fff; }

/* cod- 14-09-2026: integra visualmente el sidebar con la paleta azul institucional. */
.app-sidebar {
    position: fixed;
    inset: var(--topbar-height) auto 0 0;
    z-index: 1030;
    display: flex;
    width: var(--sidebar-width);
    flex-direction: column;
    border-right: 1px solid var(--sidebar-border);
    background: var(--sidebar-background);
    box-shadow: 7px 0 24px rgba(15, 35, 58, .04);
}

.sidebar-product { padding: 1.5rem 1.35rem 1.15rem; border-bottom: 1px solid var(--sidebar-border); background: #eef3f8; }
.sidebar-product span, .sidebar-product strong { display: block; }
.sidebar-product span, .sidebar-section-label { color: #75869b; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sidebar-product strong { margin-top: .2rem; color: var(--mpc-navy); font-size: 1.18rem; letter-spacing: -.02em; }
.sidebar-nav { display: flex; flex: 1; flex-direction: column; gap: .3rem; padding: 1rem .8rem; }
.sidebar-section-label { padding: .25rem .75rem .55rem; }

.sidebar-link {
    display: flex;
    align-items: center;
    gap: .8rem;
    min-height: 44px;
    padding: .68rem .8rem;
    border-radius: 10px;
    color: #46586d;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 650;
    transition: color .15s ease, background-color .15s ease, transform .15s ease;
}

.sidebar-link:hover { color: var(--mpc-blue); background: #e8f0f8; }
.sidebar-link.active { color: #0d5dcf; background: #e2efff; box-shadow: inset 3px 0 0 var(--mpc-blue); }
.sidebar-link svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-footer { display: flex; align-items: center; gap: .55rem; margin: .8rem; padding: .8rem; border-top: 1px solid var(--sidebar-border); color: #607287; background: transparent; font-size: .76rem; }
.sidebar-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #19a668; box-shadow: 0 0 0 4px #e3f8ef; }
.sidebar-backdrop { display: none; }

.app-content-shell { min-height: 100vh; margin-left: var(--sidebar-width); padding-top: var(--topbar-height); }
.app-main { min-height: calc(100vh - var(--topbar-height) - 52px); }
.app-footer { padding: 1rem 1.75rem; border-top: 1px solid var(--mpc-border); color: #8491a3; background: #f8fafc; font-size: .76rem; text-align: right; }
.anonymous-main { min-height: 100vh; padding-top: var(--topbar-height); }

.admin-page, .dashboard-container { width: 100%; max-width: 1600px; margin: 0 auto; padding-right: 1.75rem; padding-left: 1.75rem; }
.admin-page { padding-top: 1.75rem; padding-bottom: 2.25rem; }
.page-header { margin-bottom: 1.4rem; }
.page-header h1 { margin: .2rem 0 .2rem; color: var(--mpc-navy); font-size: clamp(1.55rem, 2.2vw, 2rem); font-weight: 760; letter-spacing: -.025em; }
.page-header p { margin: 0; color: var(--mpc-muted); }

.dashboard-heading {
    padding: 1.35rem 0 1.45rem;
    color: #fff;
    background: linear-gradient(112deg, var(--mpc-navy) 0%, #12375c 62%, #17558f 100%);
}

.dashboard-heading h1 { margin: .2rem 0 .15rem; font-size: clamp(1.65rem, 3vw, 2.25rem); font-weight: 760; letter-spacing: -.03em; }
.dashboard-heading p { margin: 0; color: #c9d7e7; font-size: .95rem; }
.dashboard-content { padding-top: 1.5rem; padding-bottom: 1.75rem; }

/* cod- 14-09-2026: tablero operativo compacto, legible y adaptable al layout administrativo. */
.operations-dashboard { display: grid; gap: 1rem; }
.operations-dashboard-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.operations-dashboard-header h2 { margin: 0; color: var(--mpc-navy); font-size: 1.25rem; font-weight: 760; }
.operations-dashboard-header p, .dashboard-section-title p { margin: .25rem 0 0; color: var(--mpc-muted); font-size: .84rem; }
.dashboard-quick-links { display: flex; flex-wrap: wrap; gap: .55rem; }
.health-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; }
.health-metric { position: relative; min-height: 105px; overflow: hidden; padding: 1rem; border: 1px solid var(--mpc-border); border-radius: 12px; background: #fff; box-shadow: 0 5px 18px rgba(13, 36, 64, .04); }
.health-metric::before { position: absolute; inset: 0 auto 0 0; width: 4px; background: #8aa0b8; content: ""; }
.health-metric span { display: block; min-height: 2.3em; color: var(--mpc-muted); font-size: .76rem; font-weight: 700; line-height: 1.2; }
.health-metric strong { display: block; margin-top: .45rem; color: var(--mpc-navy); font-size: 1.65rem; line-height: 1; }
.health-metric-success::before { background: #19a668; }
.health-metric-danger::before { background: #cf334f; }
.health-metric-neutral::before { background: var(--mpc-blue); }
.dashboard-section-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.dashboard-section-title h3 { margin: 0; color: var(--mpc-navy); font-size: 1rem; font-weight: 750; }
.dashboard-attention-count { padding: .3rem .55rem; border-radius: 999px; color: #755b00; background: #fff3cd; font-size: .7rem; font-weight: 750; white-space: nowrap; }
.college-health-list, .recent-errors-list { display: grid; gap: .7rem; }
.college-health-item, .recent-error-item { padding: .85rem; border: 1px solid #e5ebf2; border-radius: 10px; background: #fbfcfe; }
.college-health-main { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.college-health-main > strong, .recent-error-item strong { color: var(--mpc-navy); font-size: .86rem; }
.dashboard-health-state { padding: .25rem .5rem; border-radius: 999px; font-size: .68rem; font-weight: 750; white-space: nowrap; }
.dashboard-health-ok { color: #087443; background: #dcf8e9; }
.dashboard-health-warning { color: #755b00; background: #fff3cd; }
.college-health-detail { display: grid; grid-template-columns: minmax(130px, .65fr) minmax(180px, 1fr) auto; gap: .65rem; margin-top: .55rem; color: #526175; font-size: .77rem; }
.college-health-detail code, .recent-error-item code { color: #354963; }
.college-health-detail small { color: var(--mpc-muted); text-align: right; }
.recent-error-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem .65rem; }
.recent-error-item > div { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: .5rem; grid-column: 1 / -1; }
.recent-error-item time, .recent-error-item span { color: var(--mpc-muted); font-size: .7rem; white-space: nowrap; }
.recent-error-item p { margin: .2rem 0 0; grid-column: 1 / -1; color: #a71930; font-size: .75rem; }
.dashboard-empty-state { padding: 2.5rem 1rem; border: 1px dashed #d7e0ea; border-radius: 10px; color: var(--mpc-muted); background: #fbfcfe; font-size: .84rem; text-align: center; }
.eyebrow { color: #8fc2ff; font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.login-eyebrow { color: var(--mpc-blue); }

.app-card {
    border: 1px solid rgba(220, 228, 238, .95);
    border-radius: 14px;
    background: rgba(255, 255, 255, .99);
    box-shadow: 0 8px 26px rgba(13, 36, 64, .055);
}

.section-heading { display: flex; align-items: flex-start; gap: .85rem; margin-bottom: 1.5rem; }
.section-heading h2, .status-card h2, .file-card h2 { margin: 0; font-size: 1.08rem; font-weight: 720; }
.section-heading p, .status-card p { margin: .25rem 0 0; color: var(--mpc-muted); font-size: .9rem; }
.step-badge { display: inline-grid; min-width: 38px; height: 38px; place-items: center; border-radius: 10px; color: var(--mpc-blue); background: var(--mpc-soft-blue); font-size: .75rem; font-weight: 800; }
.form-label { margin-bottom: .45rem; color: #344257; font-size: .86rem; font-weight: 680; }
.form-control, .form-select { border-color: var(--mpc-border); border-radius: 9px; font-size: .92rem; }
.form-control:focus, .form-select:focus { border-color: var(--mpc-blue); box-shadow: 0 0 0 .2rem rgba(23, 105, 224, .12); }
.btn { border-radius: 9px; font-size: .9rem; font-weight: 680; }
.btn-primary { border-color: var(--mpc-blue); background: var(--mpc-blue); }
.btn-primary:hover { border-color: var(--mpc-blue-dark); background: var(--mpc-blue-dark); }
.current-school { padding: .9rem 1rem; border: 1px solid var(--mpc-border); border-radius: 10px; background: #f8fafc; }
.current-school strong { display: block; font-size: 1rem; }
.card-label { display: block; margin-bottom: .3rem; color: var(--mpc-muted); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

/* cod- 14-09-2026: composición corporativa de acceso en dos zonas y adaptación móvil. */
.login-shell {
    min-height: calc(100vh - var(--topbar-height));
    display: grid;
    place-items: center;
    padding: 2.5rem 1.25rem 1.5rem;
    background:
        radial-gradient(circle at 12% 18%, rgba(23, 105, 224, .1), transparent 30%),
        linear-gradient(135deg, #f2f6fb 0%, #f8fafc 50%, #eef4fb 100%);
}

.login-container { width: min(100%, 1080px); }
.login-panel {
    display: grid;
    min-height: 570px;
    grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr);
    overflow: hidden;
    border: 1px solid rgba(200, 213, 228, .85);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(11, 31, 54, .12);
}

.login-identity {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: clamp(2.5rem, 5vw, 4.75rem);
    color: #fff;
    background: linear-gradient(145deg, var(--mpc-navy) 0%, #123d68 62%, #1769a8 100%);
}

.login-identity::before,
.login-identity::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
    content: "";
}

.login-identity::before { width: 330px; height: 330px; right: -155px; top: -110px; }
.login-identity::after { width: 230px; height: 230px; right: -75px; bottom: -125px; background: rgba(255, 255, 255, .035); }
.login-identity-content { position: relative; z-index: 1; max-width: 420px; }
.login-logo { width: 150px; height: 58px; margin-bottom: 3rem; object-fit: contain; object-position: left center; }
.login-product-label { display: block; margin-bottom: .8rem; color: #90c5ff; font-size: .7rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.login-identity h1 { margin: 0 0 .65rem; font-size: clamp(2.15rem, 4vw, 3.15rem); font-weight: 780; letter-spacing: -.045em; }
.login-product-subtitle { max-width: 360px; margin: 0; color: #d8e7f7; font-size: 1.12rem; line-height: 1.55; }
.login-product-copy { margin: 2rem 0 0; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .14); color: #afc7df; font-size: .88rem; }

.login-form-panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(2.5rem, 5vw, 4.5rem); }
.login-form-header { margin-bottom: 2rem; }
.login-form-header h2 { margin: .55rem 0 .35rem; color: var(--mpc-navy); font-size: 1.75rem; font-weight: 760; letter-spacing: -.03em; }
.login-form-header p { margin: 0; color: var(--mpc-muted); font-size: .9rem; }
.login-form { width: 100%; }
.login-input-wrap { position: relative; }
.login-input-wrap svg { position: absolute; z-index: 2; top: 50%; left: 1rem; width: 19px; height: 19px; transform: translateY(-50%); fill: none; stroke: #8493a6; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.login-input-wrap .form-control { min-height: 50px; padding-left: 2.85rem; border-color: #d7e0ea; background: #fbfcfe; font-size: .94rem; }
.login-input-wrap .form-control:hover { border-color: #bdcada; }
.login-input-wrap .form-control:focus { border-color: var(--mpc-blue); background: #fff; box-shadow: 0 0 0 .22rem rgba(23, 105, 224, .11); }
.login-input-wrap:focus-within svg { stroke: var(--mpc-blue); }
.login-submit { min-height: 50px; box-shadow: 0 8px 18px rgba(23, 105, 224, .2); }
.login-footer { padding: 1rem 0 0; color: #7b899b; font-size: .75rem; text-align: center; }
.user-form-card { width: min(100%, 760px); }

.status-card .card-body { display: flex; gap: .9rem; align-items: flex-start; }
.status-icon { display: inline-grid; min-width: 40px; height: 40px; place-items: center; border-radius: 11px; color: #795b00; background: #fff4cc; font-size: 1.2rem; font-weight: 700; }
.status-icon-success { color: #087443; background: #dcf8e9; }
.status-icon-error { color: #a71930; background: #fde8ec; }
.backup-progress .progress, .backup-all-progress .progress { height: .65rem; background: #dce7f5; }
.backup-progress .progress-bar, .backup-all-progress .progress-bar { background-color: var(--mpc-blue); }
.backup-progress p, .backup-all-progress p, .backup-all-progress span { color: var(--mpc-muted); font-size: .85rem; }
.backup-all-progress, .backup-all-summary { padding: .9rem; border: 1px solid var(--mpc-border); border-radius: 10px; background: #f8fafc; }
.backup-all-progress .progress-bar { transition: width .3s ease; }
.backup-all-summary h3 { margin: 0 0 .5rem; font-size: 1rem; font-weight: 750; }
.backup-all-results { display: grid; gap: .6rem; padding: 0; list-style: none; }
.backup-all-result { padding-top: .6rem; border-top: 1px solid var(--mpc-border); }
.backup-all-result:first-child { padding-top: 0; border-top: 0; }
.backup-all-result strong, .backup-all-result small { display: block; }
.backup-all-result small { margin: .15rem 0 0 1.35rem; color: var(--mpc-muted); }
.backup-all-result-success strong { color: #087443; }
.backup-all-result-error strong { color: #a71930; }
.backup-result-details { display: grid; grid-template-columns: max-content 1fr; gap: .25rem .75rem; font-size: .82rem; }
.backup-result-details dt { color: var(--mpc-muted); font-weight: 650; }
.backup-result-details dd { margin: 0; overflow-wrap: anywhere; }
.file-card .card-body { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.file-placeholder { display: inline-grid; min-width: 42px; height: 42px; place-items: center; border-radius: 10px; color: #94a3b8; background: #f0f3f8; }

.table { --bs-table-bg: transparent; }
.table thead th { padding: .85rem .9rem; border-bottom-color: var(--mpc-border); color: #6b7889; background: #f8fafc; font-size: .72rem; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; white-space: nowrap; }
.table tbody td { padding: .85rem .9rem; border-bottom-color: #edf1f6; font-size: .86rem; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafcff; }
.history-state { color: #334155; background: #e2e8f0; }
.history-state-completado { color: #087443; background: #dcf8e9; }
.history-state-error { color: #a71930; background: #fde8ec; }
.history-state-enproceso { color: #075985; background: #e0f2fe; }
.history-detail { display: grid; grid-template-columns: minmax(150px, max-content) 1fr; gap: .75rem 1.25rem; }
.history-detail dt { color: var(--mpc-muted); }
.history-detail dd { margin: 0; overflow-wrap: anywhere; }

/* cod- 14-09-2026: estados y detalle administrativo de agentes. */
.agent-server-name, .agent-server-id, .agent-timestamp { display: block; }
.agent-server-name { color: var(--mpc-navy); }
.agent-server-id, .agent-timestamp { margin-top: .2rem; color: var(--mpc-muted); font-size: .74rem; }
.agent-state { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .65rem; border-radius: 999px; font-size: .76rem; font-weight: 750; white-space: nowrap; }
.agent-state > span { width: 7px; height: 7px; border-radius: 50%; }
.agent-state-online { color: #087443; background: #dcf8e9; }
.agent-state-online > span { background: #19a668; box-shadow: 0 0 0 3px rgba(25, 166, 104, .13); }
.agent-state-offline { color: #6b7280; background: #edf1f5; }
.agent-state-offline > span { background: #94a3b8; }
.mysql-state { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .65rem; border-radius: 999px; font-size: .76rem; font-weight: 750; white-space: nowrap; }
.mysql-state > span { width: 7px; height: 7px; border-radius: 50%; }
.mysql-state-online { color: #087443; background: #dcf8e9; }
.mysql-state-online > span { background: #19a668; box-shadow: 0 0 0 3px rgba(25, 166, 104, .13); }
.mysql-state-offline { color: #a71930; background: #fde8ec; }
.mysql-state-offline > span { background: #cf334f; box-shadow: 0 0 0 3px rgba(207, 51, 79, .11); }
.mysql-state-unknown { color: #755b00; background: #fff3cd; }
.mysql-state-unknown > span { background: #c29300; }
.agent-college-list { display: flex; max-width: 300px; flex-wrap: wrap; gap: .35rem; }
.agent-college-list span { padding: .25rem .5rem; border: 1px solid #dce5ef; border-radius: 7px; color: #46586d; background: #f5f8fb; font-size: .72rem; white-space: nowrap; }
.agent-empty-state { padding: 4rem 1.5rem; text-align: center; }
.agent-empty-state h2 { margin: .75rem 0 .35rem; color: var(--mpc-navy); font-size: 1.15rem; }
.agent-empty-state p { margin: 0; color: var(--mpc-muted); }
.agent-empty-icon { color: #b7c6d8; font-size: 2rem; }
.agent-detail-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.agent-detail-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.agent-detail-title h2, .agent-colleges-title { margin: 0; color: var(--mpc-navy); font-size: 1.05rem; font-weight: 740; }
.agent-detail-list { padding-top: 1.25rem; border-top: 1px solid var(--mpc-border); }
.agent-detail-colleges { display: grid; gap: .75rem; margin-top: 1.35rem; }
.agent-detail-colleges div { display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; border: 1px solid var(--mpc-border); border-radius: 9px; background: #f8fafc; font-size: .86rem; font-weight: 650; }

@media (max-width: 991.98px) {
    .topbar-brand-area { width: auto; border-right: 0; }
    .sidebar-toggle { display: block; flex: 0 0 auto; }
    .app-sidebar { transform: translateX(-100%); transition: transform .2s ease; }
    .app-content-shell { margin-left: 0; }
    .sidebar-backdrop { position: fixed; inset: var(--topbar-height) 0 0; z-index: 1025; border: 0; background: rgba(8, 23, 40, .48); }
    .sidebar-open { overflow: hidden; }
    .sidebar-open .app-sidebar { transform: translateX(0); }
    .sidebar-open .sidebar-backdrop { display: block; }
    .admin-page, .dashboard-container { padding-right: 1.25rem; padding-left: 1.25rem; }
    .login-panel { min-height: 520px; grid-template-columns: minmax(0, .9fr) minmax(370px, 1.1fr); }
    .login-identity, .login-form-panel { padding: 2.5rem; }
    .agent-table { min-width: 1080px; }
    .health-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
    :root { --topbar-height: 62px; --sidebar-width: 238px; }
    .topbar-brand-area { gap: .45rem; padding: 0 .7rem; }
    .topbar-logo { width: 37px; height: 33px; }
    .topbar-brand { gap: .45rem; font-size: .86rem; }
    .topbar-user-area { gap: .45rem; padding: 0 .65rem 0 .25rem; }
    .user-avatar { display: none; }
    .user-copy strong, .user-copy small { max-width: 125px; }
    .user-copy strong { font-size: .76rem; }
    .user-copy small { font-size: .66rem; }
    .topbar-logout { padding: .48rem; }
    .topbar-logout span { display: none; }
    .admin-page, .dashboard-container { padding-right: .85rem; padding-left: .85rem; }
    .admin-page { padding-top: 1.15rem; }
    .dashboard-heading { padding: 1rem 0 1.1rem; }
    .dashboard-content { padding-top: 1rem; }
    .operations-dashboard-header, .dashboard-section-title { align-items: stretch; flex-direction: column; }
    .health-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .health-metric { min-height: 92px; }
    .college-health-detail { grid-template-columns: 1fr; gap: .2rem; }
    .college-health-detail small { text-align: left; }
    .dashboard-attention-count { align-self: flex-start; }
    .card-body { padding: 1.15rem !important; }
    .history-detail { grid-template-columns: 1fr; gap: .2rem; }
    .history-detail dd { margin-bottom: .8rem; }
    .app-footer { padding: .9rem; text-align: center; }
    .login-shell { padding: 1rem .85rem; }
    .login-panel { min-height: auto; grid-template-columns: 1fr; border-radius: 14px; }
    .login-identity { min-height: 230px; padding: 2rem; }
    .login-logo { width: 120px; height: 46px; margin-bottom: 1.5rem; }
    .login-identity h1 { font-size: 2rem; }
    .login-product-subtitle { font-size: .96rem; }
    .login-product-copy { margin-top: 1.2rem; padding-top: 1rem; }
    .login-form-panel { padding: 2rem; }
    .login-form-header { margin-bottom: 1.5rem; }
    .login-form-header h2 { font-size: 1.5rem; }
    .agent-detail-header { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 420px) {
    .topbar-brand span { display: none; }
    .user-copy strong, .user-copy small { max-width: 112px; }
}
