.dashboard-nav-icon--bloqueos::before { width: 15px; height: 15px; border: 1.7px solid currentColor; border-radius: 4px; }
.dashboard-nav-icon--bloqueos::after { width: 12px; height: 1.7px; background: currentColor; transform: rotate(-45deg); }
.dashboard-nav-icon--notificaciones::before { width: 15px; height: 11px; border: 1.6px solid currentColor; border-radius: 3px; }
.dashboard-nav-icon--notificaciones::after { width: 10px; height: 6px; border-bottom: 1.6px solid currentColor; border-left: 1.6px solid currentColor; transform: translateY(-3px) rotate(-45deg); }
:root {
    --dash-navy-950: #071a2b;
    --dash-navy-900: #0b2339;
    --dash-navy-800: #12324e;
    --dash-blue: #176b87;
    --dash-teal: #0f8b8d;
    --dash-cyan: #dff6f4;
    --dash-bg: #f4f7fa;
    --dash-surface: #fff;
    --dash-text: #152535;
    --dash-muted: #66788a;
    --dash-border: #dfe7ee;
    --dash-danger: #b42318;
    --dash-shadow: 0 12px 32px rgba(20, 46, 70, .08);
    --dash-radius: 16px;
    --dash-sidebar: 304px;
    color-scheme: light;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--dash-bg);
    color: var(--dash-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, select, textarea { font: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid #2bb7b3; outline-offset: 2px; }

.dashboard-shell { min-height: 100vh; }
.dashboard-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    display: flex;
    width: var(--dash-sidebar);
    flex-direction: column;
    overflow: hidden;
    border-right: 1px solid rgba(255,255,255,.08);
    background:
        radial-gradient(circle at 20% 0, rgba(23,107,135,.2), transparent 34%),
        linear-gradient(180deg, #071a2b, #091f34 62%, #071a2b);
    color: #fff;
    transition: width .2s ease, transform .2s ease;
}
.dashboard-sidebar-header {
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,.09);
}
.dashboard-brand {
    display: flex;
    min-height: 92px;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    text-decoration: none;
}
.dashboard-brand-mark, .auth-logo {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 13px;
    background: linear-gradient(135deg, #26bdb4, #176b87);
    color: #fff;
    font-weight: 800;
    letter-spacing: -.03em;
    box-shadow: 0 8px 24px rgba(23, 158, 163, .28);
}
.dashboard-brand-logo { width: 100%; height: 100%; object-fit: contain; }
.dashboard-brand--official { min-height: 108px; padding-block: 16px; }
.dashboard-brand--official .dashboard-brand-mark {
    width: 190px;
    height: 72px;
    flex-basis: 190px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.dashboard-brand--official .dashboard-brand-copy {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.dashboard-brand-copy { display: flex; min-width: 0; flex-direction: column; }
.dashboard-brand-copy strong { font-size: 1.05rem; line-height: 1.2; letter-spacing: -.01em; }
.dashboard-brand-copy small {
    margin-top: 3px;
    color: #8da5b8;
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .09em;
}
.dashboard-sidebar-close { display: none; }
.dashboard-navigation {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    gap: 5px;
    overflow-y: auto;
    padding: 16px 14px 24px;
    scrollbar-color: rgba(255,255,255,.18) transparent;
    scrollbar-width: thin;
}
.dashboard-nav-section {
    display: block;
    margin: 16px 12px 5px;
    color: #69869d;
    font-size: .63rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .14em;
    white-space: nowrap;
    transition: opacity .15s ease;
}
.dashboard-nav-section:first-child { margin-top: 3px; }
.dashboard-nav-link {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 12px;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #afc1cf;
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.dashboard-nav-link:hover {
    border-color: rgba(255,255,255,.06);
    background: rgba(255,255,255,.055);
    color: #fff;
}
.dashboard-nav-link.is-active {
    border-color: rgba(72,214,202,.2);
    background: linear-gradient(100deg, rgba(35,180,171,.25), rgba(31,126,151,.12));
    color: #fff;
    box-shadow: inset 3px 0 #36c8bd, 0 7px 20px rgba(0,0,0,.08);
}
.dashboard-nav-icon {
    position: relative;
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    border-radius: 9px;
    background: rgba(255,255,255,.055);
    color: #8ba6b9;
}
.dashboard-nav-link:hover .dashboard-nav-icon,
.dashboard-nav-link.is-active .dashboard-nav-icon {
    background: rgba(50,199,189,.16);
    color: #61dbd1;
}
.dashboard-nav-icon::before,
.dashboard-nav-icon::after {
    position: absolute;
    content: "";
}
.dashboard-nav-icon--dashboard::before {
    width: 5px;
    height: 5px;
    border-radius: 1px;
    background: currentColor;
    box-shadow: 8px 0 currentColor, 0 8px currentColor, 8px 8px currentColor;
    transform: translate(-4px, -4px);
}
.dashboard-nav-icon--atenciones::before {
    width: 15px;
    height: 14px;
    border: 1.6px solid currentColor;
    border-radius: 3px;
}
.dashboard-nav-icon--atenciones::after {
    top: 11px;
    width: 12px;
    height: 1.5px;
    background: currentColor;
    box-shadow: -4px -3px 0 -0.25px currentColor, 4px -3px 0 -0.25px currentColor;
}
.dashboard-nav-icon--agenda::before {
    width: 15px;
    height: 15px;
    border: 1.6px solid currentColor;
    border-radius: 50%;
}
.dashboard-nav-icon--agenda::after {
    width: 5px;
    height: 5px;
    border-bottom: 1.6px solid currentColor;
    border-left: 1.6px solid currentColor;
    transform: translate(2px, -2px);
}
.dashboard-nav-icon--disponibilidad::before {
    width: 16px;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    box-shadow: 0 -6px currentColor, 0 6px currentColor;
}
.dashboard-nav-icon--disponibilidad::after {
    width: 3px;
    height: 3px;
    border: 2px solid #0b2339;
    border-radius: 50%;
    background: currentColor;
    box-shadow: -5px -6px 0 -1px currentColor, 5px 6px 0 -1px currentColor;
}
.dashboard-nav-icon--archivadas::before {
    width: 16px;
    height: 12px;
    border: 1.6px solid currentColor;
    border-radius: 2px;
    transform: translateY(2px);
}
.dashboard-nav-icon--archivadas::after {
    top: 8px;
    width: 18px;
    height: 4px;
    border: 1.6px solid currentColor;
    border-radius: 2px;
}
.dashboard-nav-icon--usuarios::before {
    width: 6px;
    height: 6px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    transform: translate(-3px, -5px);
    box-shadow: 8px 2px 0 -1px #0b2339, 8px 2px 0 0 currentColor;
}
.dashboard-nav-icon--usuarios::after {
    bottom: 7px;
    width: 13px;
    height: 6px;
    border: 1.5px solid currentColor;
    border-radius: 8px 8px 3px 3px;
}
.dashboard-nav-icon--auditoria::before {
    width: 14px;
    height: 17px;
    border: 1.6px solid currentColor;
    border-radius: 2px;
}
.dashboard-nav-icon--auditoria::after {
    width: 8px;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    box-shadow: 0 -4px currentColor, 0 4px currentColor;
}
.dashboard-nav-icon--apariencia::before {
    width: 16px;
    height: 16px;
    border: 1.6px solid currentColor;
    border-radius: 55% 48% 58% 42%;
    transform: rotate(-20deg);
}
.dashboard-nav-icon--apariencia::after {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 5px -2px currentColor, 4px 4px currentColor, -2px 5px currentColor;
    transform: translate(-3px, -2px);
}
.dashboard-sidebar-footer {
    display: flex;
    min-height: 76px;
    align-items: center;
    gap: 11px;
    padding: 15px 20px;
    border-top: 1px solid rgba(255,255,255,.09);
    background: rgba(0,0,0,.08);
    white-space: nowrap;
}
.dashboard-session-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: #48d5a7;
    box-shadow: 0 0 0 4px rgba(72,213,167,.1);
}
.dashboard-sidebar-footer div { display: flex; flex-direction: column; }
.dashboard-sidebar-footer small { color: #7892a6; font-size: .68rem; }
.dashboard-sidebar-footer strong { margin-top: 2px; color: #d7e2ea; font-size: .82rem; }

.dashboard-main { min-height: 100vh; margin-left: var(--dash-sidebar); transition: margin-left .2s ease; }
.dashboard-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    min-height: 88px;
    align-items: center;
    gap: 18px;
    padding: 14px 28px;
    border-bottom: 1px solid var(--dash-border);
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(12px);
}
.dashboard-menu-button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--dash-border);
    border-radius: 10px;
    background: #fff;
    color: var(--dash-navy-800);
    cursor: pointer;
}
.dashboard-menu-button > span,
.dashboard-menu-button > span::before,
.dashboard-menu-button > span::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}
.dashboard-menu-button > span { position: relative; }
.dashboard-menu-button > span::before,
.dashboard-menu-button > span::after {
    position: absolute;
    left: 0;
    content: "";
}
.dashboard-menu-button > span::before { top: -6px; }
.dashboard-menu-button > span::after { top: 6px; }
.dashboard-topbar-title { display: flex; flex-direction: column; min-width: 0; }
.dashboard-topbar-title span { color: var(--dash-muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; }
.dashboard-topbar-title strong { font-size: .96rem; }
.dashboard-topbar-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.dashboard-quick-action, .dashboard-primary-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 0;
    border-radius: 10px;
    background: var(--dash-teal);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.dashboard-quick-action:hover, .dashboard-primary-button:hover { background: #0c7779; color: #fff; }
.dashboard-profile { display: flex; align-items: center; gap: 9px; padding-left: 14px; border-left: 1px solid var(--dash-border); }
.dashboard-avatar { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--dash-cyan); color: #126c70; font-size: .78rem; font-weight: 800; }
.dashboard-profile-copy { display: flex; flex-direction: column; line-height: 1.25; }
.dashboard-profile-copy strong { font-size: .84rem; }
.dashboard-profile-copy small { color: var(--dash-muted); font-size: .72rem; text-transform: capitalize; }
.dashboard-logout { padding: 8px 10px; border: 0; background: transparent; color: var(--dash-muted); font-weight: 600; cursor: pointer; }
.dashboard-logout:hover { color: var(--dash-danger); }
.dashboard-content { width: min(100%, 1540px); margin: 0 auto; padding: 30px; }

.dashboard-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.dashboard-kicker { color: var(--dash-teal); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.dashboard-page-heading h1 { margin: 4px 0 5px; color: var(--dash-navy-900); font-size: clamp(1.65rem, 3vw, 2.25rem); letter-spacing: -.035em; }
.dashboard-page-heading p { margin: 0; color: var(--dash-muted); }
.dashboard-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; }
.dashboard-metric-card, .dashboard-card {
    border: 1px solid var(--dash-border);
    border-radius: var(--dash-radius);
    background: var(--dash-surface);
    box-shadow: var(--dash-shadow);
}
.dashboard-metric-card { display: grid; grid-template-columns: auto 1fr; gap: 13px; padding: 20px; }
.dashboard-metric-card > div { display: flex; flex-direction: column; }
.dashboard-metric-card > div span { color: var(--dash-muted); font-size: .8rem; }
.dashboard-metric-card > div strong { margin-top: 2px; font-size: 1.8rem; line-height: 1.1; }
.dashboard-metric-card > a, .metric-muted { grid-column: 1 / -1; color: var(--dash-blue); font-size: .76rem; font-weight: 700; text-decoration: none; }
.metric-muted { color: var(--dash-muted); }
.metric-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; font-size: 1.2rem; }
.metric-icon--blue { background: #e4f1fa; color: #176b9a; }
.metric-icon--amber { background: #fff2d9; color: #a15c00; }
.metric-icon--green { background: #dcf5ec; color: #087a56; }
.metric-icon--violet { background: #ede9fe; color: #6842b8; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, .8fr); gap: 20px; }
.dashboard-card { min-width: 0; padding: 22px; }
.dashboard-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.dashboard-card-header h2 { margin: 0 0 4px; font-size: 1.06rem; }
.dashboard-card-header p { margin: 0; color: var(--dash-muted); font-size: .79rem; }
.dashboard-card-header > a { color: var(--dash-teal); font-size: .78rem; font-weight: 700; text-decoration: none; }
.dashboard-table-wrap { overflow-x: auto; }
.dashboard-table { width: 100%; border-collapse: collapse; }
.dashboard-table th { padding: 10px 12px; border-bottom: 1px solid var(--dash-border); color: var(--dash-muted); font-size: .69rem; text-align: left; text-transform: uppercase; letter-spacing: .07em; }
.dashboard-table td { padding: 13px 12px; border-bottom: 1px solid #edf1f4; font-size: .82rem; vertical-align: middle; }
.dashboard-table tbody tr:last-child td { border-bottom: 0; }
.dashboard-table td a { color: var(--dash-blue); font-weight: 700; text-decoration: none; }
.dashboard-empty { padding: 30px !important; color: var(--dash-muted); text-align: center; }
.status-pill { display: inline-flex; padding: 4px 8px; border-radius: 999px; background: #fff2d9; color: #88520a; font-size: .69rem; font-weight: 700; }
.dashboard-actions-list { display: grid; gap: 9px; }
.dashboard-actions-list a { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--dash-border); border-radius: 12px; text-decoration: none; }
.dashboard-actions-list a:hover { border-color: #8ecfca; background: #f6fffe; }
.dashboard-actions-list a > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; background: var(--dash-cyan); color: #126c70; font-weight: 800; }
.dashboard-actions-list div { display: flex; flex-direction: column; }
.dashboard-actions-list strong { font-size: .82rem; }
.dashboard-actions-list small { margin-top: 2px; color: var(--dash-muted); font-size: .71rem; }
.dashboard-alert { margin-bottom: 18px; padding: 13px 16px; border: 1px solid #badbd7; border-radius: 12px; background: #eafaf7; color: #126158; font-size: .86rem; }
.dashboard-alert--error { border-color: #f1c0bc; background: #fff0ef; color: #8f241c; }

.dashboard-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.dashboard-form-grid label, .auth-form label { display: flex; flex-direction: column; gap: 6px; color: var(--dash-text); font-size: .8rem; font-weight: 700; }
.dashboard-form-grid small { color: var(--dash-muted); font-weight: 400; }
input, select, textarea {
    min-height: 42px;
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #cfdbe4;
    border-radius: 9px;
    background: #fff;
    color: var(--dash-text);
}
input:focus, select:focus, textarea:focus { border-color: var(--dash-teal); box-shadow: 0 0 0 3px rgba(15,139,141,.12); outline: none; }
.form-actions { display: flex; align-items: flex-end; }
.user-create-card { margin-bottom: 20px; }
.user-role-guide {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.user-role-guide article {
    display: grid;
    gap: 5px;
    padding: 16px 18px;
    border: 1px solid var(--dash-border);
    border-radius: 14px;
    background: #fff;
}
.user-role-guide span {
    color: var(--dash-teal);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.user-role-guide strong { color: var(--dash-ink); }
.user-role-guide p { margin: 0; color: var(--dash-muted); font-size: .82rem; line-height: 1.45; }
.user-create-card summary { color: var(--dash-teal); font-weight: 800; cursor: pointer; }
.dashboard-users-table input, .dashboard-users-table select { min-width: 130px; font-size: .78rem; }
@media (max-width: 760px) {
    .user-role-guide { grid-template-columns: 1fr; }
}
.inline-name { display: flex; gap: 6px; min-width: 240px; }
.table-actions { display: flex; gap: 7px; }
.button-secondary, .button-danger { min-height: 36px; padding: 7px 10px; border: 1px solid var(--dash-border); border-radius: 8px; background: #fff; font-size: .74rem; font-weight: 700; cursor: pointer; }
.button-secondary { color: var(--dash-blue); }
.button-danger { color: var(--dash-danger); }
.button-danger:hover { border-color: #e4a19c; background: #fff4f3; }

/* Integración progresiva: las páginas heredadas conservan su HTML y reciben el shell. */
.legacy-dashboard-content > .main-header,
.legacy-dashboard-content > header:has(.main-header) { display: none !important; }
.legacy-dashboard-content > .container,
.legacy-dashboard-content > main.container { max-width: 100% !important; margin-top: 0 !important; }
.legacy-dashboard-content .card { border: 1px solid var(--dash-border); border-radius: var(--dash-radius); box-shadow: var(--dash-shadow); }
.legacy-dashboard-content .btn-primary { border-color: var(--dash-teal); background: var(--dash-teal); }
.legacy-dashboard-content table { background: #fff; }

.auth-page { background: var(--dash-navy-950); }
.auth-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(0, 1.05fr) minmax(430px, .7fr); }
.auth-intro { position: relative; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: clamp(48px, 8vw, 120px); color: #fff; background: radial-gradient(circle at 25% 25%, rgba(27,168,167,.24), transparent 35%), linear-gradient(145deg, var(--dash-navy-950), #0f3853); }
.auth-intro::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 460px; height: 460px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.018); }
.auth-kicker, .auth-eyebrow { color: #51d3c9; font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.auth-intro h1 { max-width: 660px; margin: 12px 0; font-size: clamp(2.7rem, 6vw, 5rem); letter-spacing: -.055em; line-height: .96; }
.auth-intro > p { max-width: 580px; color: #b9cbd8; font-size: 1.05rem; line-height: 1.7; }
.auth-intro-stat { display: flex; max-width: 540px; flex-direction: column; margin-top: 48px; padding: 18px 20px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.05); backdrop-filter: blur(10px); }
.auth-intro-stat span { margin-top: 4px; color: #a9bfce; font-size: .82rem; line-height: 1.5; }
.auth-panel { display: grid; place-items: center; padding: 40px; background: #fff; }
.auth-form-wrap { width: min(100%, 420px); }
.auth-form-wrap .auth-logo {
    width: min(100%, 250px);
    height: 102px;
    margin-bottom: 32px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.auth-form-wrap .auth-logo img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.auth-form-wrap h2 { margin: 8px 0 5px; color: var(--dash-navy-900); font-size: 2rem; letter-spacing: -.035em; }
.auth-help { margin: 0 0 28px; color: var(--dash-muted); }
.auth-form { display: grid; gap: 18px; }
.auth-form input { min-height: 48px; }
.auth-form button { min-height: 49px; margin-top: 6px; border: 0; border-radius: 10px; background: var(--dash-teal); color: #fff; font-weight: 800; cursor: pointer; }
.auth-form button:hover { background: #0b7476; }
.auth-forgot-link,
.auth-primary-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--dash-teal);
    font-size: .86rem;
    font-weight: 800;
    text-decoration: none;
}
.auth-forgot-link:hover,
.auth-primary-link:hover { text-decoration: underline; }
.auth-local-reset {
    display: grid;
    gap: 6px;
    margin: 0 0 20px;
    padding: 14px 16px;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    color: #0c4a6e;
    background: #f0f9ff;
    font-size: .82rem;
    line-height: 1.45;
}
.auth-local-reset a { color: #075985; font-weight: 800; overflow-wrap: anywhere; }
.auth-back { display: inline-block; margin-top: 26px; color: var(--dash-muted); font-size: .82rem; text-decoration: none; }
.dashboard-overlay { display: none; }

body.sidebar-collapsed .dashboard-sidebar { width: 76px; }
body.sidebar-collapsed .dashboard-main { margin-left: 76px; }
body.sidebar-collapsed .dashboard-brand { padding-inline: 16px; }
body.sidebar-collapsed .dashboard-brand--official .dashboard-brand-mark {
    width: 44px;
    height: 52px;
    flex-basis: 44px;
    object-fit: cover;
    object-position: left center;
}
body.sidebar-collapsed .dashboard-brand--official .dashboard-brand-logo { object-fit: cover; object-position: left center; }
body.sidebar-collapsed .dashboard-brand-copy,
body.sidebar-collapsed .dashboard-nav-label,
body.sidebar-collapsed .dashboard-nav-section,
body.sidebar-collapsed .dashboard-sidebar-footer { opacity: 0; pointer-events: none; }
body.sidebar-collapsed .dashboard-navigation { padding-inline: 10px; }
body.sidebar-collapsed .dashboard-nav-link {
    justify-content: center;
    padding-inline: 10px;
}
body.sidebar-collapsed .dashboard-nav-section {
    height: 0;
    margin-block: 4px;
    overflow: hidden;
}

@media (max-width: 1180px) {
    .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .dashboard-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-quick-action { display: none; }
}
@media (max-width: 991px) {
    .dashboard-sidebar { width: min(84vw, 280px); transform: translateX(-100%); }
    .dashboard-sidebar-header { padding-right: 48px; }
    .dashboard-sidebar-close {
        position: absolute;
        top: 28px;
        right: 15px;
        display: block;
        width: 34px;
        height: 34px;
        border: 1px solid rgba(255,255,255,.12);
        border-radius: 9px;
        background: rgba(255,255,255,.06);
        color: #c6d5df;
        cursor: pointer;
    }
    .dashboard-sidebar-close::before,
    .dashboard-sidebar-close::after {
        position: absolute;
        top: 16px;
        left: 9px;
        width: 15px;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
        content: "";
        transform: rotate(45deg);
    }
    .dashboard-sidebar-close::after { transform: rotate(-45deg); }
    .dashboard-main, body.sidebar-collapsed .dashboard-main { margin-left: 0; }
    body.sidebar-open .dashboard-sidebar { transform: translateX(0); }
    body.sidebar-open .dashboard-overlay { position: fixed; inset: 0; z-index: 35; display: block; background: rgba(3,16,28,.55); }
    .dashboard-content { padding: 24px 18px; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-intro { display: none; }
    .auth-panel { min-height: 100vh; padding: 28px; }
}
@media (max-width: 680px) {
    .dashboard-topbar { min-height: 72px; padding: 10px 14px; }
    .dashboard-topbar-title, .dashboard-profile-copy { display: none; }
    .dashboard-topbar-actions { gap: 6px; }
    .dashboard-profile { padding-left: 0; border-left: 0; }
    .dashboard-page-heading { align-items: stretch; flex-direction: column; }
    .dashboard-metrics { grid-template-columns: 1fr; }
    .dashboard-form-grid { grid-template-columns: 1fr; }
    .dashboard-card { padding: 17px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
