:root {
    --blue: #0d2b5e;
    --blue-2: #1558a6;
    --cyan: #0ea5e9;
    --green: #28a745;
    --green-soft: #e9f8ee;
    --amber-soft: #fff6da;
    --ink: #152235;
    --muted: #6b7788;
    --line: #e5ebf3;
    --surface: #ffffff;
    --surface-soft: #f6f9fd;
    --danger: #dc3545;
    --warning: #f2a900;
    --shadow: 0 22px 58px rgba(13, 43, 94, .13);
    --shadow-soft: 0 12px 34px rgba(13, 43, 94, .08);
    --shadow-ring: 0 0 0 1px rgba(255, 255, 255, .72), 0 20px 60px rgba(13, 43, 94, .16);
    --radius: 8px;
    --sidebar: 286px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 0%, rgba(14, 165, 233, .11), transparent 26%),
        radial-gradient(circle at 88% 8%, rgba(40, 167, 69, .12), transparent 24%),
        linear-gradient(180deg, rgba(13, 43, 94, .055), transparent 300px),
        #f7fafd;
    font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 0;
}

a {
    text-decoration: none;
}

.app-loader {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-content: center;
    gap: 16px;
    background: rgba(247, 250, 253, .92);
    backdrop-filter: blur(12px);
    transition: opacity .35s ease, visibility .35s ease;
}

.app-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-mark {
    display: flex;
    justify-content: center;
    gap: 7px;
}

.loader-mark span {
    width: 11px;
    height: 34px;
    border-radius: 8px;
    background: var(--blue);
    animation: pulseBar .9s ease-in-out infinite;
}

.loader-mark span:nth-child(2) {
    background: var(--green);
    animation-delay: .12s;
}

.loader-mark span:nth-child(3) {
    background: var(--blue-2);
    animation-delay: .24s;
}

.app-loader p {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

@keyframes pulseBar {
    0%, 100% { transform: scaleY(.45); opacity: .55; }
    50% { transform: scaleY(1); opacity: 1; }
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    position: fixed;
    inset: 18px auto 18px 18px;
    z-index: 20;
    width: var(--sidebar);
    display: flex;
    flex-direction: column;
    padding: 18px;
    border: 1px solid rgba(229, 235, 243, .92);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .84);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    transition: width .25s ease, transform .25s ease;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    margin-bottom: 18px;
}

.brand-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: var(--radius);
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--blue-2));
    box-shadow: 0 12px 26px rgba(13, 43, 94, .2);
}

.brand-icon img {
    width: 100%;
    height: 100%;
    padding: 6px;
    border-radius: var(--radius);
    object-fit: contain;
    background: #fff;
}

.brand-icon-lg {
    width: 58px;
    height: 58px;
    font-size: 1.45rem;
}

.brand-copy {
    display: grid;
}

.brand-copy strong {
    font-family: Manrope, Inter, sans-serif;
    font-size: 1.24rem;
    color: var(--blue);
    line-height: 1;
}

.brand-copy span {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
}

.sidebar-nav {
    display: grid;
    gap: 8px;
    padding-block: 8px;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 11px 12px;
    border-radius: var(--radius);
    color: #405066;
    font-weight: 700;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.sidebar-nav .nav-link i {
    width: 22px;
    text-align: center;
    color: var(--blue-2);
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    color: var(--blue);
    background: linear-gradient(135deg, rgba(13, 43, 94, .08), rgba(40, 167, 69, .1));
    transform: translateX(2px);
}

.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.sidebar-profile div:last-child {
    display: grid;
    min-width: 0;
}

.sidebar-profile strong,
.sidebar-profile span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sidebar-profile strong {
    font-size: .9rem;
}

.sidebar-profile span {
    color: var(--muted);
    font-size: .78rem;
}

.app-main {
    width: 100%;
    min-width: 0;
    margin-left: calc(var(--sidebar) + 18px);
    padding: 18px;
    transition: margin .25s ease;
}

.topbar {
    position: sticky;
    top: 18px;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 76px;
    padding: 14px 18px;
    border: 1px solid rgba(229, 235, 243, .92);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .86);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

.topbar h1 {
    margin: 0;
    font-size: 1.28rem;
    font-weight: 800;
    font-family: Manrope, Inter, sans-serif;
    color: var(--blue);
}

.topbar p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: .84rem;
    font-weight: 600;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-wrap {
    padding-top: 18px;
}

.icon-btn {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--blue);
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.icon-btn:hover {
    color: var(--blue);
    background: #f4f8ff;
    box-shadow: var(--shadow-soft);
    transform: translateY(-1px);
}

.icon-btn.sm {
    width: 34px;
    height: 34px;
    font-size: .86rem;
}

.icon-btn.danger {
    color: var(--danger);
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 6px 12px 6px 6px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    background: #fff;
    font-weight: 700;
}

.notification-menu {
    position: relative;
}

.notification-toggle {
    position: relative;
    isolation: isolate;
    overflow: visible;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(246, 250, 255, .95));
}

.notification-toggle::after {
    content: "";
    position: absolute;
    inset: 7px;
    z-index: -1;
    border-radius: 50%;
    background: rgba(14, 165, 233, .12);
    transform: scale(0);
    transition: transform .2s ease;
}

.notification-toggle:hover::after,
.notification-menu.is-open .notification-toggle::after {
    transform: scale(1);
}

.notification-toggle > span {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--danger), #f97316);
    box-shadow: 0 10px 22px rgba(220, 53, 69, .28);
    font-size: .7rem;
    font-weight: 900;
    line-height: 1;
}

.notification-dropdown {
    display: none;
    right: 0;
    left: auto;
    width: min(400px, calc(100vw - 24px));
    overflow: hidden;
    padding: 0;
    margin-top: 10px;
    border: 1px solid rgba(205, 216, 231, .95) !important;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 24px 70px rgba(13, 43, 94, .18);
    backdrop-filter: blur(18px);
}

.notification-dropdown.show,
.notification-menu.is-open .notification-dropdown {
    display: block;
}

.notification-head,
.notification-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px;
    background:
        linear-gradient(135deg, rgba(13, 43, 94, .08), rgba(14, 165, 233, .06)),
        #f8fbff;
    border-bottom: 1px solid var(--line);
}

.notification-head span {
    display: block;
    color: var(--green);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.notification-head strong {
    color: var(--blue);
    font-family: Manrope, Inter, sans-serif;
    font-size: 1.02rem;
    font-weight: 850;
}

.notification-head a,
.notification-foot button {
    border: 0;
    color: var(--blue-2);
    background: transparent;
    font-size: .82rem;
    font-weight: 850;
    white-space: nowrap;
}

.notification-head a:hover,
.notification-foot button:hover {
    color: var(--green);
}

.notification-list {
    max-height: 390px;
    overflow: auto;
    padding: 8px;
}

.notification-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 82px;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: var(--ink);
    background: #fff;
    transition: transform .18s ease, border .18s ease, background .18s ease, box-shadow .18s ease;
}

.notification-item:hover,
.notification-row:hover {
    color: var(--ink);
    border-color: rgba(13, 43, 94, .14);
    background: #f8fbff;
    box-shadow: 0 10px 24px rgba(13, 43, 94, .08);
    transform: translateY(-1px);
}

.notification-item.is-unread,
.notification-row.is-unread {
    border-color: rgba(242, 169, 0, .28);
    background:
        linear-gradient(90deg, rgba(242, 169, 0, .14), transparent 48%),
        #fffdf8;
}

.notification-mark,
.notification-row-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: var(--radius);
    color: var(--blue);
    background: #eaf1fa;
}

.notification-item.is-unread .notification-mark,
.notification-row-icon.warning {
    color: #8a5a00;
    background: var(--amber-soft);
}

.notification-row-icon.success {
    color: var(--green);
    background: var(--green-soft);
}

.notification-item strong,
.notification-item small,
.notification-item em {
    display: block;
}

.notification-item strong,
.notification-row strong {
    color: var(--ink);
    font-size: .92rem;
    font-weight: 850;
}

.notification-item small,
.notification-row div > span,
.notification-row small {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 650;
}

.notification-item em {
    margin-top: 3px;
    color: #8a96a8;
    font-size: .73rem;
    font-style: normal;
    font-weight: 750;
}

.notification-status,
.notification-row-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    min-height: 26px;
    padding: 4px 8px;
    border: 1px solid rgba(242, 169, 0, .35);
    border-radius: 999px;
    color: #805300;
    background: var(--amber-soft);
    font-size: .72rem;
    font-weight: 900;
}

.notification-row-badge.is-read {
    border-color: #cfe8d6;
    color: #145c27;
    background: var(--green-soft);
}

.notification-empty {
    display: grid;
    place-items: center;
    gap: 6px;
    min-height: 178px;
    padding: 20px;
    color: var(--muted);
    text-align: center;
    font-weight: 750;
}

.notification-empty i {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    color: var(--blue);
    background: #eaf1fa;
}

.notification-empty strong {
    color: var(--blue);
    font-weight: 850;
}

.notification-empty span {
    font-size: .86rem;
}

.notification-foot {
    border-top: 1px solid var(--line);
    border-bottom: 0;
    justify-content: center;
    padding: 12px 14px;
}

.notification-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 92px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(250, 253, 255, .94)),
        #fff;
    transition: transform .18s ease, border .18s ease, background .18s ease, box-shadow .18s ease;
}

.notifications-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: clamp(20px, 3vw, 28px);
    border: 1px solid rgba(229, 235, 243, .92);
    border-radius: var(--radius);
    color: #fff;
    background:
        linear-gradient(125deg, rgba(255, 255, 255, .14), transparent 34%),
        linear-gradient(135deg, rgba(13, 43, 94, .98), rgba(21, 88, 166, .92) 58%, rgba(40, 167, 69, .88));
    box-shadow: var(--shadow);
}

.notifications-hero h3 {
    margin: 4px 0 6px;
    font-family: Manrope, Inter, sans-serif;
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    font-weight: 900;
}

.notifications-hero p {
    max-width: 640px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-weight: 650;
}

.notifications-hero .eyebrow {
    color: #b9f4c7;
}

.notifications-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(92px, 1fr));
    gap: 10px;
    min-width: 230px;
}

.notifications-stats div {
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(12px);
}

.notifications-stats span,
.notifications-stats strong {
    display: block;
}

.notifications-stats span {
    color: rgba(255, 255, 255, .72);
    font-size: .75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.notifications-stats strong {
    color: #fff;
    font-family: Manrope, Inter, sans-serif;
    font-size: 1.55rem;
    font-weight: 900;
}

.notifications-panel .list-stack {
    gap: 12px;
}

.notifications-empty-state {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 260px;
    padding: 24px;
    border: 1px dashed #c9d5e4;
    border-radius: var(--radius);
    color: var(--muted);
    text-align: center;
    background:
        linear-gradient(180deg, rgba(234, 241, 250, .58), rgba(255, 255, 255, .94));
}

.notifications-empty-state i {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    color: var(--blue);
    background: #eaf1fa;
    font-size: 1.45rem;
}

.notifications-empty-state strong {
    color: var(--blue);
    font-family: Manrope, Inter, sans-serif;
    font-size: 1.1rem;
    font-weight: 900;
}

.notifications-empty-state span {
    max-width: 420px;
    font-weight: 700;
}

.avatar {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--green));
    font-weight: 800;
}

.avatar-img {
    display: inline-block;
    object-fit: cover;
    border: 1px solid var(--line);
    background: #fff;
}

.avatar-sm {
    width: 38px;
    height: 38px;
}

.avatar-xs {
    width: 30px;
    height: 30px;
    font-size: .8rem;
}

.hero-band {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid rgba(229, 235, 243, .9);
    border-radius: var(--radius);
    color: #fff;
    background:
        linear-gradient(125deg, rgba(255, 255, 255, .12), transparent 30%),
        linear-gradient(135deg, rgba(13, 43, 94, .96), rgba(21, 88, 166, .92)),
        linear-gradient(45deg, rgba(40, 167, 69, .36), transparent);
    box-shadow: var(--shadow);
}

.hero-band h2 {
    max-width: 820px;
    margin: 6px 0 8px;
    font-size: clamp(1.55rem, 3vw, 2.45rem);
    font-weight: 850;
    font-family: Manrope, Inter, sans-serif;
}

.hero-band p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
}

.hero-actions {
    display: flex;
    align-items: end;
    gap: 10px;
    flex-wrap: wrap;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--green);
    font-size: .74rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0;
}

.hero-band .eyebrow {
    color: #b9f4c7;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.metric-card {
    display: grid;
    gap: 4px;
    min-height: 154px;
    padding: 18px;
    border: 1px solid rgba(229, 235, 243, .95);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .88)),
        #fff;
    box-shadow: var(--shadow-soft);
    transition: transform .2s ease, box-shadow .2s ease;
}

.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.metric-card span,
.metric-card small {
    color: var(--muted);
    font-weight: 700;
}

.metric-card strong {
    color: var(--blue);
    font-size: 2.2rem;
    font-family: Manrope, Inter, sans-serif;
    line-height: 1;
}

.metric-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: 8px;
    border-radius: var(--radius);
}

.metric-icon.primary {
    color: var(--blue);
    background: #eaf1fa;
}

.metric-icon.success {
    color: var(--green);
    background: var(--green-soft);
}

.metric-icon.danger {
    color: var(--danger);
    background: #fdecee;
}

.metric-icon.warning {
    color: #9b6a00;
    background: #fff6da;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.dashboard-grid-wide {
    align-items: start;
}

.panel {
    border: 1px solid rgba(229, 235, 243, .95);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .91)),
        #fff;
    box-shadow: var(--shadow-soft);
    padding: 18px;
}

.panel-head,
.page-actions,
.form-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.panel-head h3,
.page-actions h2,
.form-section-head h3 {
    margin: 0;
    color: var(--blue);
    font-weight: 850;
    font-family: Manrope, Inter, sans-serif;
}

.panel-head p,
.form-section-head p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: .92rem;
}

.page-actions {
    margin-bottom: 18px;
}

.btn {
    border-radius: var(--radius);
    font-weight: 750;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.btn-primary {
    --bs-btn-bg: var(--blue);
    --bs-btn-border-color: var(--blue);
    --bs-btn-hover-bg: var(--blue-2);
    --bs-btn-hover-border-color: var(--blue-2);
    box-shadow: 0 12px 24px rgba(13, 43, 94, .18);
}

.btn-success {
    --bs-btn-bg: var(--green);
    --bs-btn-border-color: var(--green);
    box-shadow: 0 12px 24px rgba(40, 167, 69, .18);
}

.btn-lift {
    transition: transform .18s ease, box-shadow .18s ease;
}

.btn-lift:hover {
    transform: translateY(-2px);
}

.btn-light {
    border-color: var(--line);
    background: #fff;
}

.shadow-soft {
    box-shadow: var(--shadow-soft);
}

.list-stack {
    display: grid;
    gap: 10px;
}

.activity-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.activity-item strong {
    display: block;
    color: var(--ink);
}

.activity-item span,
.activity-item small {
    color: var(--muted);
    font-weight: 650;
}

.activity-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    color: var(--blue);
    background: #eef4fb;
}

.activity-icon.danger {
    color: var(--danger);
    background: #fdecee;
}

.soft-empty {
    padding: 18px;
    border: 1px dashed #c9d5e4;
    border-radius: var(--radius);
    color: var(--muted);
    text-align: center;
    background: #fbfdff;
    font-weight: 700;
}

.table {
    --bs-table-hover-bg: #f8fbff;
    color: var(--ink);
    border-collapse: separate;
    border-spacing: 0 6px;
}

.table thead th {
    color: #607087;
    border-bottom: 0;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: 0;
}

.table td {
    vertical-align: middle;
    background: #fff;
    border-top: 1px solid #edf2f8;
    border-bottom: 1px solid #edf2f8;
}

.table tbody tr td:first-child {
    border-left: 1px solid #edf2f8;
    border-radius: var(--radius) 0 0 var(--radius);
}

.table tbody tr td:last-child {
    border-right: 1px solid #edf2f8;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select,
.form-control,
.form-select {
    border-color: #dce5f0;
    border-radius: var(--radius);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(13, 43, 94, .45);
    box-shadow: 0 0 0 .24rem rgba(13, 43, 94, .1);
}

.form-label {
    color: #405066;
    font-size: .86rem;
    font-weight: 800;
}

.form-panel {
    padding: 22px;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.select2-container--bootstrap-5 .select2-selection {
    border-radius: var(--radius);
    border-color: #dce5f0;
    min-height: 38px;
}

.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dataTables_length label {
    color: var(--muted);
    font-weight: 750;
}

.dataTables_wrapper .dataTables_filter input {
    min-width: 250px;
    padding: 8px 12px;
    background: #fff;
}

.dataTables_wrapper .page-link {
    border-color: var(--line);
    color: var(--blue);
    font-weight: 750;
}

.dataTables_wrapper .active > .page-link {
    color: #fff;
    background: var(--blue);
    border-color: var(--blue);
}

.sabi-modal .modal-dialog {
    transform: translateY(18px) scale(.98);
    transition: transform .24s ease;
}

.sabi-modal.show .modal-dialog {
    transform: translateY(0) scale(1);
}

.modal-backdrop.show {
    opacity: .38;
    backdrop-filter: blur(8px);
}

.sabi-modal .modal-content {
    overflow: hidden;
    border: 1px solid rgba(229, 235, 243, .92);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(250, 253, 255, .95)),
        #fff;
    box-shadow: var(--shadow-ring);
}

.sabi-modal .modal-header,
.sabi-modal .modal-footer {
    border-color: var(--line);
    background: rgba(248, 251, 255, .74);
}

.sabi-modal .modal-header {
    padding: 18px 20px;
}

.sabi-modal .modal-body {
    padding: 20px;
}

.sabi-modal .modal-footer {
    padding: 14px 20px;
}

.modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-title-wrap h5 {
    margin: 2px 0 0;
    color: var(--blue);
    font-family: Manrope, Inter, sans-serif;
    font-weight: 850;
}

.modal-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: var(--radius);
}

.modal-icon.primary {
    color: var(--blue);
    background: #eaf1fa;
}

.modal-icon.success {
    color: var(--green);
    background: var(--green-soft);
}

.modal-section {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .72);
}

.modal-section + .modal-section {
    margin-top: 14px;
}

.modal-section h6 {
    margin: 0 0 14px;
    color: var(--blue);
    font-family: Manrope, Inter, sans-serif;
    font-weight: 850;
}

.action-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.action-choice {
    display: grid;
    gap: 9px;
    min-height: 178px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    background:
        linear-gradient(180deg, #fff, #f9fbff);
    transition: transform .2s ease, box-shadow .2s ease, border .2s ease;
}

.action-choice:hover {
    color: var(--ink);
    border-color: rgba(13, 43, 94, .26);
    box-shadow: var(--shadow-soft);
    transform: translateY(-3px);
}

.action-choice i {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    color: var(--blue);
    background: #eaf1fa;
}

.action-choice strong {
    color: var(--blue);
    font-family: Manrope, Inter, sans-serif;
    font-weight: 850;
}

.action-choice span {
    color: var(--muted);
    font-size: .9rem;
    font-weight: 650;
}

.upload-spotlight {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 20px;
    border: 1px solid rgba(229, 235, 243, .92);
    border-radius: var(--radius);
    color: #fff;
    background:
        linear-gradient(125deg, rgba(255, 255, 255, .14), transparent 32%),
        linear-gradient(135deg, var(--blue), #1767b7 58%, #1c8b61);
    box-shadow: var(--shadow);
}

.upload-spotlight .eyebrow {
    color: #b9f4c7;
}

.upload-spotlight h3 {
    margin: 4px 0 5px;
    font-family: Manrope, Inter, sans-serif;
    font-weight: 850;
}

.upload-spotlight p {
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-weight: 650;
}

.upload-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    color: var(--blue);
    background: rgba(255, 255, 255, .92);
    font-size: 1.35rem;
}

.upload-dropzone {
    position: relative;
    display: grid;
    place-items: center;
    gap: 7px;
    min-height: 174px;
    padding: 18px;
    border: 1px dashed #b9c8da;
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(234, 241, 250, .56), rgba(233, 248, 238, .44));
    text-align: center;
}

.upload-dropzone i {
    color: var(--green);
    font-size: 2rem;
}

.upload-dropzone strong {
    color: var(--blue);
    font-family: Manrope, Inter, sans-serif;
    font-weight: 850;
}

.upload-dropzone span {
    color: var(--muted);
    font-size: .88rem;
    font-weight: 700;
}

.upload-dropzone input {
    max-width: 440px;
    background: #fff;
}

.file-preview-text {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #cfe8d6;
    border-radius: var(--radius);
    color: #145c27;
    background: var(--green-soft);
    font-weight: 800;
}

.person-cell,
.file-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.person-cell img {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.person-cell strong,
.file-cell strong {
    display: block;
    color: var(--ink);
}

.person-cell span,
.file-cell span {
    display: block;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 650;
}

.file-cell i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    color: var(--green);
    background: var(--green-soft);
}

.mini-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 44px;
    padding: 5px 8px;
    border-radius: 999px;
    color: var(--blue);
    background: #edf4fc;
    font-size: .78rem;
    font-weight: 800;
}

.quick-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: min(360px, 100%);
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.quick-search input {
    width: 100%;
    border: 0;
    outline: 0;
    font-weight: 650;
}

.ajax-result {
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid #cfe8d6;
    border-radius: var(--radius);
    color: #145c27;
    background: var(--green-soft);
    font-weight: 700;
}

.account-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(13, 43, 94, .98), rgba(21, 88, 166, .94) 55%, rgba(40, 167, 69, .92));
    box-shadow: var(--shadow);
}

.account-hero-security {
    background:
        linear-gradient(135deg, rgba(13, 43, 94, .98), rgba(18, 80, 135, .96) 58%, rgba(242, 169, 0, .88));
}

.account-hero-main {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.account-hero .eyebrow,
.account-hero p {
    color: rgba(255, 255, 255, .78);
}

.account-hero h3 {
    margin: 4px 0;
    font-family: Manrope, Inter, sans-serif;
    font-size: clamp(1.55rem, 2vw, 2.25rem);
    font-weight: 900;
}

.account-photo-frame {
    position: relative;
    flex: 0 0 auto;
}

.account-avatar,
.account-avatar-img {
    width: 118px;
    height: 118px;
    border: 3px solid rgba(255, 255, 255, .76);
    border-radius: var(--radius);
    box-shadow: 0 20px 42px rgba(3, 14, 32, .22);
}

.account-avatar {
    font-size: 3rem;
}

.account-avatar-img {
    object-fit: cover;
    background: #fff;
}

.account-photo-ring {
    position: absolute;
    right: -8px;
    bottom: -8px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 3px solid #fff;
    border-radius: 50%;
    color: var(--blue);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.account-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.account-badges span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: .84rem;
    font-weight: 800;
}

.account-hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.account-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .8fr);
    gap: 18px;
    align-items: start;
}

.account-grid-password {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr);
}

.account-form-panel,
.account-security-panel {
    min-height: 100%;
}

.photo-uploader {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px dashed #b9c8da;
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(234, 241, 250, .64), rgba(255, 255, 255, .92));
}

.photo-uploader-preview {
    display: grid;
    place-items: center;
    width: 104px;
    height: 104px;
    overflow: hidden;
    border-radius: var(--radius);
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--green));
    font-size: 2.2rem;
    font-weight: 900;
}

.photo-uploader-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-uploader-body small {
    display: inline-block;
    margin-top: 8px;
    color: var(--muted);
    font-weight: 700;
}

.photo-file-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid rgba(13, 43, 94, .18);
    border-radius: var(--radius);
    color: var(--blue);
    background: #fff;
    font-weight: 850;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.photo-file-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

.photo-file-button input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.security-stack {
    display: grid;
    gap: 10px;
}

.security-stat {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fbfdff;
}

.security-stat > i {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    color: var(--green);
    background: var(--green-soft);
}

.security-stat.warning > i {
    color: #8a5a00;
    background: var(--amber-soft);
}

.security-stat span {
    display: block;
    color: var(--muted);
    font-size: .76rem;
    font-weight: 850;
    text-transform: uppercase;
}

.security-stat strong {
    color: var(--ink);
    font-weight: 850;
}

.institution-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
    color: #fff;
    background:
        linear-gradient(125deg, rgba(255, 255, 255, .14), transparent 34%),
        linear-gradient(135deg, var(--blue), #1767b7 56%, #17835d);
}

.institution-hero-mark {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .95);
    color: var(--blue);
    font-size: 2rem;
    box-shadow: 0 18px 36px rgba(0, 0, 0, .16);
}

.institution-hero-mark img {
    width: 100%;
    height: 100%;
    padding: 8px;
    object-fit: contain;
}

.institution-hero h3 {
    margin: 3px 0 5px;
    font-size: 1.55rem;
    font-weight: 900;
}

.institution-hero p {
    margin: 0;
    color: rgba(255, 255, 255, .8);
    font-weight: 700;
}

.institution-hero .eyebrow {
    color: rgba(255, 255, 255, .72);
}

.institution-hero-meta {
    margin-left: auto;
    min-width: 160px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .12);
}

.institution-hero-meta span,
.institution-hero-meta strong {
    display: block;
}

.institution-hero-meta span {
    color: rgba(255, 255, 255, .72);
    font-size: .78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.institution-hero-meta strong {
    margin-top: 3px;
    color: #fff;
    font-size: 1.05rem;
}

.institution-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .75fr);
    gap: 18px;
    align-items: start;
}

.institution-logo-uploader {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px dashed #b9c8da;
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(234, 241, 250, .68), rgba(255, 255, 255, .94));
}

.institution-logo-preview {
    display: grid;
    place-items: center;
    width: 132px;
    height: 108px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--blue);
    background: #fff;
    font-size: 1.8rem;
}

.institution-logo-preview img {
    width: 100%;
    height: 100%;
    padding: 10px;
    object-fit: contain;
}

.institution-logo-uploader small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-weight: 700;
}

.institution-preview-panel {
    position: sticky;
    top: 104px;
}

.institution-preview-stack {
    display: grid;
    gap: 10px;
}

.profile-grid {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.profile-panel {
    grid-row: span 2;
    text-align: center;
}

.profile-photo {
    width: 132px;
    height: 132px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.profile-avatar {
    width: 132px;
    height: 132px;
    margin: 0 auto;
    border: 1px solid rgba(13, 43, 94, .12);
    font-size: 3.2rem;
    box-shadow: var(--shadow-soft);
}

.profile-panel h3 {
    margin: 12px 0 2px;
    color: var(--blue);
}

.profile-panel p {
    color: var(--muted);
    font-weight: 700;
}

.profile-data {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    text-align: left;
}

.password-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.password-rules span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border: 1px solid #cfe8d6;
    border-radius: var(--radius);
    color: #145c27;
    background: var(--green-soft);
    font-size: .86rem;
    font-weight: 800;
}

.profile-data div,
.info-grid div,
.vitals-grid div {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fbfdff;
}

.profile-data span,
.info-grid span,
.vitals-grid span {
    color: var(--muted);
    font-size: .76rem;
    font-weight: 850;
    text-transform: uppercase;
}

.profile-data strong,
.info-grid strong,
.vitals-grid strong {
    color: var(--ink);
    font-weight: 750;
}

.timeline {
    display: grid;
    gap: 10px;
}

.timeline-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    background: #fff;
    transition: border .2s ease, transform .2s ease;
}

.timeline-item:hover {
    border-color: rgba(13, 43, 94, .28);
    transform: translateX(2px);
}

.timeline-item > span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
}

.timeline-item strong {
    display: block;
}

.timeline-item small {
    color: var(--muted);
    font-weight: 650;
}

.document-panel {
    max-width: 1120px;
    margin: 0 auto;
    background: #fff;
}

.document-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--blue);
}

.document-logo,
.report-logo {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--green));
    font-size: 1.35rem;
}

.document-logo img,
.report-logo img {
    width: 100%;
    height: 100%;
    padding: 7px;
    border-radius: var(--radius);
    object-fit: contain;
    background: #fff;
}

.document-header strong {
    display: block;
    color: var(--blue);
    font-size: 1.02rem;
}

.document-header span {
    color: var(--muted);
    font-weight: 650;
}

.document-number {
    text-align: right;
}

.document-number strong {
    font-size: 1.2rem;
}

.document-section {
    margin-top: 20px;
}

.document-section h3 {
    margin: 0 0 12px;
    color: var(--blue);
    font-size: 1rem;
    font-weight: 850;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.info-grid .wide {
    grid-column: 1 / -1;
}

.confidential {
    border-color: #f2d6d9 !important;
    background: #fff8f8 !important;
}

.vitals-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 8px;
}

.signature-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    margin-top: 46px;
}

.signature-row-single {
    grid-template-columns: minmax(96px, .35fr) minmax(260px, .8fr);
    align-items: end;
    justify-content: center;
}

.signature-row-no-logo {
    grid-template-columns: minmax(260px, 420px);
}

.signature-row div {
    display: grid;
    gap: 8px;
    text-align: center;
    color: var(--muted);
    font-size: .86rem;
}

.signature-row span {
    border-bottom: 1px solid #7b8899;
    height: 32px;
}

.signature-logo {
    justify-self: center;
    width: 86px;
    color: var(--blue);
    font-size: .78rem;
    font-weight: 850;
}

.signature-logo img {
    width: 58px;
    height: 58px;
    margin: 0 auto;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    object-fit: contain;
    background: #fff;
}

.signature-line strong {
    color: var(--blue);
    font-size: .82rem;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.report-header h3 {
    margin: 4px 0;
    color: var(--blue);
    font-weight: 850;
}

.report-header span,
.report-header p {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.report-table {
    margin-bottom: 0;
}

.survey-base-switch {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    padding: 14px;
    border: 1px solid #cfe8d6;
    border-radius: var(--radius);
    background: var(--green-soft);
}

.survey-base-switch strong,
.survey-base-switch span {
    display: block;
}

.survey-base-switch strong {
    color: var(--blue);
    font-weight: 850;
}

.survey-base-switch span {
    color: var(--muted);
    font-weight: 700;
}

.survey-builder,
.question-preview-list {
    display: grid;
    gap: 12px;
}

.survey-question-row,
.question-preview-list > div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fbfdff;
}

.question-preview-list span {
    display: block;
    color: var(--muted);
    font-size: .76rem;
    font-weight: 850;
    text-transform: uppercase;
}

.question-preview-list strong {
    color: var(--ink);
    font-weight: 800;
}

.survey-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.survey-item strong,
.survey-item span,
.survey-item small {
    display: block;
}

.survey-item strong {
    color: var(--ink);
}

.survey-item span,
.survey-item small {
    color: var(--muted);
    font-weight: 650;
}

.activity-icon.success {
    color: var(--green);
    background: var(--green-soft);
}

.activity-icon.warning {
    color: #8a5a00;
    background: var(--amber-soft);
}

.survey-answer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.survey-answer-head h3 {
    margin: 4px 0;
    color: var(--blue);
    font-weight: 850;
}

.survey-answer-head p {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.survey-section {
    margin-bottom: 18px;
}

.survey-question-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.survey-field.wide {
    grid-column: 1 / -1;
}

.survey-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    min-height: 40px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid #dce5f0;
    border-radius: var(--radius);
    background: #fbfdff;
}

.survey-acceptance {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid #cfe8d6;
    border-radius: var(--radius);
    background: var(--green-soft);
}

.empty-state {
    display: grid;
    place-items: center;
    text-align: center;
    gap: 10px;
    min-height: 52vh;
}

.empty-icon {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    color: var(--blue);
    background: #eaf1fa;
    font-size: 1.7rem;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(16px, 3vw, 28px);
    background:
        linear-gradient(135deg, rgba(13, 43, 94, .08), rgba(40, 167, 69, .06) 46%, transparent 46%),
        linear-gradient(180deg, #f8fbff, #eef6f3);
}

.auth-shell {
    width: min(1080px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(390px, .82fr);
    gap: 16px;
    align-items: stretch;
}

.auth-panel,
.login-card {
    border: 1px solid rgba(229, 235, 243, .96);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.auth-panel {
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(24px, 5vw, 46px);
    color: #fff;
    background:
        linear-gradient(135deg, rgba(13, 43, 94, .98), rgba(18, 78, 139, .96) 56%, rgba(35, 145, 91, .94)),
        #0d2b5e;
    overflow: hidden;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.auth-brand span {
    color: rgba(255, 255, 255, .75);
    text-transform: uppercase;
    letter-spacing: 0;
    font-size: .78rem;
    font-weight: 800;
}

.auth-brand h1 {
    margin: 0;
    font-size: 2.25rem;
    font-weight: 900;
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 12px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: var(--radius);
    color: rgba(255, 255, 255, .86);
    background: rgba(255, 255, 255, .12);
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.auth-copy h2 {
    max-width: 520px;
    margin: 0 0 12px;
    font-size: 3.25rem;
    line-height: 1.02;
    font-weight: 900;
}

.auth-copy p {
    max-width: 560px;
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 1.05rem;
    font-weight: 650;
}

.auth-institution-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(12px);
}

.auth-institution-card span {
    display: block;
    color: rgba(255, 255, 255, .68);
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.auth-institution-card strong {
    display: block;
    margin-top: 3px;
    color: #fff;
    font-weight: 850;
}

.auth-institution-card i {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border-radius: var(--radius);
    color: var(--blue);
    background: #fff;
}

.auth-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.auth-highlights div {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(10px);
}

.auth-highlights i {
    color: #aef0bd;
}

.auth-highlights span {
    color: rgba(255, 255, 255, .86);
    font-weight: 800;
}

.login-card {
    align-self: center;
    padding: clamp(24px, 4vw, 38px);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(18px);
}

.login-card-modern {
    position: relative;
}

.login-card-head {
    margin-bottom: 22px;
}

.login-mark {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 14px;
    border-radius: var(--radius);
    color: var(--blue);
    background: #eaf1fa;
    font-size: 1.18rem;
}

.login-card h3 {
    margin: 4px 0;
    color: var(--blue);
    font-size: 2rem;
    font-weight: 900;
}

.login-card p {
    margin: 0;
    color: var(--muted);
    font-weight: 650;
}

.login-form {
    display: grid;
    gap: 14px;
}

.login-field .form-control {
    min-height: 58px;
    border-color: #d8e2ee;
    background: #fbfdff;
    font-weight: 750;
}

.login-field .form-control:focus {
    background: #fff;
}

.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 52px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: var(--radius);
    color: var(--blue);
    background: #eef4fb;
}

.login-foot {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 12px 14px;
    border: 1px solid #dce8f5;
    border-radius: var(--radius);
    background: #f4f8ff;
    color: var(--muted);
    font-size: .9rem;
}

.login-foot i {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    color: var(--green);
    background: var(--green-soft);
}

.login-foot span {
    display: block;
    font-weight: 800;
}

.login-foot strong {
    display: block;
    color: var(--blue);
}

body.sidebar-collapsed .app-sidebar {
    width: 88px;
}

body.sidebar-collapsed .brand-copy,
body.sidebar-collapsed .sidebar-nav span,
body.sidebar-collapsed .sidebar-profile div:last-child {
    display: none;
}

body.sidebar-collapsed .app-main {
    margin-left: 106px;
}

body.sidebar-collapsed .sidebar-nav .nav-link {
    justify-content: center;
}

@media (max-width: 1180px) {
    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vitals-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .app-sidebar {
        transform: translateX(calc(-100% - 28px));
    }

    body.sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    .app-main,
    body.sidebar-collapsed .app-main {
        margin-left: 0;
    }

    .dashboard-grid,
    .profile-grid,
    .account-grid,
    .institution-grid,
    .auth-shell,
    .action-choice-grid,
    .survey-question-grid {
        grid-template-columns: 1fr;
    }

    .profile-panel {
        grid-row: auto;
    }

    .auth-panel {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .app-main {
        padding: 12px;
    }

    .topbar {
        top: 12px;
        align-items: flex-start;
    }

    .topbar p,
    .user-chip span:not(.avatar) {
        display: none;
    }

    .hero-band,
    .account-hero,
    .institution-hero,
    .notifications-hero,
    .page-actions,
    .panel-head,
    .form-section-head,
    .report-header,
    .upload-spotlight,
    .survey-base-switch,
    .survey-answer-head,
    .survey-item {
        flex-direction: column;
        align-items: stretch;
    }

    .notification-dropdown {
        position: fixed !important;
        top: 76px !important;
        left: 12px !important;
        right: 12px !important;
        width: auto;
        margin-top: 0;
    }

    .notification-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .notification-row-badge {
        grid-column: 2;
        justify-self: start;
    }

    .notifications-stats {
        min-width: 0;
    }

    .survey-item {
        display: grid;
        grid-template-columns: 1fr;
    }

    .account-hero-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .photo-uploader {
        grid-template-columns: 1fr;
    }

    .institution-logo-uploader {
        grid-template-columns: 1fr;
    }

    .institution-hero-meta {
        margin-left: 0;
    }

    .account-hero-actions {
        width: 100%;
    }

    .account-hero-actions .btn {
        width: 100%;
    }

    .photo-uploader {
        justify-items: stretch;
    }

    .upload-spotlight {
        display: grid;
        grid-template-columns: 1fr;
    }

    .sabi-modal .modal-dialog {
        margin: 10px;
    }

    .sabi-modal .modal-body {
        padding: 16px;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }

    .info-grid,
    .signature-row {
        grid-template-columns: 1fr;
    }

    .vitals-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .document-header {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .document-number {
        text-align: left;
    }

    .auth-highlights {
        grid-template-columns: 1fr;
    }
}
