:root {
    --ccs-blue-950: #082541;
    --ccs-blue-900: #0c3864;
    --ccs-blue-800: #0f4c81;
    --ccs-blue-700: #1d6ba8;
    --ccs-blue-600: #3f89c2;
    --ccs-blue-100: #e8f1fa;
    --ccs-white: #ffffff;
    --ccs-bg: #f3f8fd;
    --ccs-surface: #f8fbff;
    --ccs-border: #c9d9ea;
    --ccs-text: #132f47;
    --ccs-muted: #4f6478;
    --ccs-success-bg: #e7f6ed;
    --ccs-success-text: #1b6a3a;
    --ccs-danger-bg: #fdeeee;
    --ccs-danger-text: #8c2231;
    --ccs-warning-bg: #fff6e7;
    --ccs-warning-text: #8a5a13;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
    font-family: "Palatino Linotype", Palatino, Cambria, "Times New Roman", serif;
    background:
        radial-gradient(circle at 10% 8%, #d9eafd 0%, transparent 34%),
        radial-gradient(circle at 92% 0%, #e6f1fc 0%, transparent 30%),
        linear-gradient(180deg, #f9fcff 0%, var(--ccs-bg) 100%);
    color: var(--ccs-text);
    line-height: 1.55;
}

a {
    color: var(--ccs-blue-800);
    text-underline-offset: 2px;
    font-weight: 600;
}

a:hover { color: var(--ccs-blue-900); }

.ui-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    flex-shrink: 0;
    vertical-align: -0.12em;
}

.icon-inline {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.panel-head h2 .ui-icon,
.panel-head h3 .ui-icon,
.auth-shell-head h2 .ui-icon,
.auth-brand h1 .ui-icon,
.auth-foot a .ui-icon {
    width: 18px;
    height: 18px;
}

h1, h2, h3, h4 {
    margin: 0 0 10px;
    color: var(--ccs-blue-900);
    line-height: 1.2;
    letter-spacing: 0.15px;
}

p { margin: 0 0 10px; }
.muted { color: var(--ccs-muted); }
.w-full { width: 100%; }

.mt-6 { margin-top: 6px; }
.mt-8 { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mb-10 { margin-bottom: 10px; }

.pagination-wrap { margin-top: 12px; }
.pagination-wrap nav {
    display: flex;
    justify-content: center;
}

.pagination-wrap .pagination {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-wrap .page-item {
    margin: 0;
}

.pagination-wrap .page-link,
.pagination-wrap .page-item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 9px;
    border: 1px solid #c7d7e8;
    background: #f8fbff;
    color: #184a76;
    text-decoration: none;
    font-weight: 700;
}

.pagination-wrap .page-item.active .page-link,
.pagination-wrap .page-item.active span {
    border-color: #2f79b8;
    background: linear-gradient(180deg, #2f79b8, #16588e);
    color: #fff;
}

.pagination-wrap .page-item.disabled span {
    opacity: .55;
    cursor: not-allowed;
}

.pagination-wrap .page-item.disabled .page-link {
    opacity: .55;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-wrap .page-link:hover {
    background: #ebf3fc;
}
.panel-no-margin { margin: 0; }

.action-inline {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.img-preview {
    max-width: 420px;
    width: 100%;
}

.app-shell {
    display: grid;
    grid-template-columns: 292px 1fr;
    min-height: 100vh;
}

.sidebar {
    background:
        radial-gradient(circle at 15% 5%, rgba(255,255,255,.2) 0%, rgba(255,255,255,0) 32%),
        linear-gradient(188deg, #0a3055, #114d83 68%, #136099);
    color: #ebf5ff;
    padding: 18px 14px;
    border-right: 4px solid #082844;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 0;
    height: 100dvh;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sidebar::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 12px;
    background: rgba(255,255,255,.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

.sidebar-brand img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.88);
    background: #fff;
}

.sidebar-brand strong { display: block; color: #fff; font-size: 14px; }
.sidebar-brand small { color: #d7e8fa; }

.sidebar-nav { display: grid; gap: 8px; }

.sidebar-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #eaf4ff;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 700;
    letter-spacing: 0.1px;
    transition: all .18s ease;
}

.sidebar-link:hover {
    transform: translateX(1px);
    background: rgba(255,255,255,.12);
}

.sidebar-link.active {
    background: #ffffff;
    color: #0f4c81;
    border-color: #ffffff;
    box-shadow: 0 4px 12px rgba(2,24,46,.22);
}

.sidebar-mobile-head,
.sidebar-toggle,
.sidebar-backdrop {
    display: none;
}

.sidebar-footer {
    margin-top: auto;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 12px;
    background: rgba(255,255,255,.09);
}

.sidebar-footer p { margin-bottom: 6px; }
.sidebar-footer p.muted {
    color: #8fe0b0;
    font-weight: 700;
}

.main-area { min-width: 0; }

.enduser-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.enduser-topnav {
    position: sticky;
    top: 0;
    z-index: 120;
    border-bottom: 1px solid #95b7d8;
    background:
        radial-gradient(circle at 10% 0, rgba(255,255,255,.22) 0%, transparent 34%),
        linear-gradient(165deg, #0c3864 0%, #1d6ba8 60%, #3f89c2 100%);
    box-shadow: 0 10px 24px rgba(6, 35, 62, .2);
}

.enduser-topnav-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px 18px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
}

.enduser-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}

.enduser-brand img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.92);
    background: #fff;
}

.enduser-brand strong {
    display: block;
    color: #fff;
    font-size: 15px;
    letter-spacing: .2px;
}

.enduser-brand small {
    display: block;
    color: #d8e9f9;
    font-size: 12px;
}

.enduser-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.enduser-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    color: #eaf4ff;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    padding: 9px 14px;
    font-weight: 700;
    letter-spacing: .2px;
    background: rgba(255,255,255,.06);
    transition: transform .14s ease, background .14s ease, box-shadow .14s ease;
}

.enduser-link:hover {
    color: #fff;
    background: rgba(255,255,255,.17);
    transform: translateY(-1px);
}

.enduser-link.active {
    color: #0f4c81;
    background: #fff;
    border-color: #fff;
    box-shadow: 0 8px 16px rgba(7, 36, 62, .22);
}

.enduser-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.enduser-user form {
    margin: 0;
}

.enduser-user .btn-logout {
    white-space: nowrap;
}

.enduser-user-meta {
    text-align: right;
}

.enduser-user-meta span,
.enduser-user-meta small {
    display: block;
    color: #d8e8f7;
    font-size: 12px;
    line-height: 1.15;
}

.enduser-user-meta span {
    color: #8fe0b0;
    font-weight: 700;
}

.enduser-user-meta strong {
    display: block;
    color: #fff;
    font-size: 13px;
}

.enduser-main {
    flex: 1;
}

.enduser-pagehead {
    padding-top: 14px;
}

.enduser-pagehead .container {
    margin-top: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.enduser-container {
    margin-top: 10px;
}

.enduser-status-strip {
    margin-top: 10px;
    border: 1px solid #c2d8ea;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fbff, #eff6ff);
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: center;
}

.enduser-status-strip p {
    margin-bottom: 4px;
}

.enduser-status-cta {
    display: flex;
    justify-content: flex-end;
}

.topbar {
    background: transparent;
    color: var(--ccs-text);
}

.topbar-inner {
    padding: 22px 18px 0;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.page-title {
    margin: 0;
    font-size: 30px;
    color: var(--ccs-blue-900);
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-title .ui-icon {
    width: 24px;
    height: 24px;
}

.container {
    max-width: 1240px;
    margin: 8px auto 24px;
    padding: 0 18px 22px;
}

.panel {
    background: linear-gradient(180deg, #ffffff 0%, var(--ccs-surface) 100%);
    border: 1px solid var(--ccs-border);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(16,63,108,.08);
    padding: 16px;
    margin-bottom: 16px;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 1px solid var(--ccs-border);
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    gap: 12px;
}

.stat {
    border: 1px solid var(--ccs-border);
    background: linear-gradient(180deg, #fdfefe, #edf5fd);
    border-radius: 11px;
    padding: 12px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--ccs-muted);
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.4px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--ccs-blue-900);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    border-radius: 10px;
    background: linear-gradient(180deg, var(--ccs-blue-700), var(--ccs-blue-800));
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    padding: 9px 13px;
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
    box-shadow: 0 6px 14px rgba(9,48,83,.26);
}

.btn:focus-visible {
    outline: 3px solid rgba(63,137,194,.35);
    outline-offset: 2px;
}

.btn-secondary { background: linear-gradient(180deg, #677d91, #54697d); }
.btn-logout {
    background: linear-gradient(120deg, #3f9c66 0%, #59b782 100%);
    border: 1px solid rgba(255,255,255,.35);
    color: #ffffff;
    text-shadow: 0 1px 0 rgba(7, 42, 27, .24);
}

.btn-logout:hover {
    box-shadow: 0 8px 14px rgba(7, 42, 27, .32);
}

.btn-danger { background: linear-gradient(180deg, #9a2c3a, #861f2e); }

body.modal-open {
    overflow: hidden;
}

.logout-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: grid;
    place-items: center;
    padding: 18px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}

.logout-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.logout-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 24, 44, .55);
    backdrop-filter: blur(2px);
}

.logout-modal__dialog {
    position: relative;
    width: min(440px, 100%);
    border-radius: 18px;
    border: 1px solid #c8d9ea;
    background: linear-gradient(180deg, #ffffff 0%, #f2f8ff 100%);
    box-shadow: 0 22px 38px rgba(8, 35, 63, .32);
    padding: 20px 20px 18px;
    transform: translateY(16px) scale(.97);
    transition: transform .22s ease;
}

.logout-modal.is-open .logout-modal__dialog {
    transform: translateY(0) scale(1);
}

.logout-modal__icon {
    width: 46px;
    height: 46px;
    margin-bottom: 10px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: 700;
    color: #174f82;
    background: linear-gradient(180deg, #deedfb 0%, #c8ddf2 100%);
    border: 1px solid #b8d0e8;
}

.logout-modal__dialog h2 {
    margin-bottom: 6px;
    font-size: 27px;
    color: #0f3f6a;
}

.logout-modal__dialog p {
    margin-bottom: 14px;
    color: #3b5d7c;
}

.logout-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.logout-modal__actions .btn {
    min-width: 110px;
}

@media (max-width: 560px) {
    .logout-modal__actions {
        flex-direction: column-reverse;
    }

    .logout-modal__actions .btn {
        width: 100%;
    }
}

form.inline { display: inline; }

label {
    display: block;
    margin: 8px 0 4px;
    font-weight: 700;
    color: var(--ccs-blue-900);
}

input, select, textarea {
    width: 100%;
    border: 1px solid #b9cde0;
    border-radius: 9px;
    padding: 9px 10px;
    font-family: inherit;
    background: #fcfeff;
    color: var(--ccs-text);
    transition: border-color .12s ease, box-shadow .12s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--ccs-blue-600);
    box-shadow: 0 0 0 3px rgba(63,137,194,.16);
}

input:disabled, textarea:disabled, select:disabled {
    background: #eef3f9;
    color: #4f6d87;
}

.enrollment-paper-wrap {
    display: flex;
    justify-content: center;
}

.enrollment-paper {
    width: min(210mm, 100%);
    border: 1px solid #b4c9dc;
    border-radius: 10px;
    padding: 18px;
    background: #fff;
    box-shadow: 0 10px 20px rgba(12, 44, 76, .08);
}

.enrollment-paper-head {
    text-align: center;
    border-bottom: 1px solid #c6d8e9;
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.enrollment-paper-head-formal {
    display: grid;
    grid-template-columns: 92px 1fr 160px;
    gap: 10px;
    align-items: center;
    border: 1px solid #b8cce0;
    padding: 8px 10px;
    margin-bottom: 10px;
}

.paper-head-left {
    display: flex;
    justify-content: center;
}

.paper-head-left img {
    width: 66px;
    height: 66px;
    object-fit: contain;
}

.paper-head-center {
    text-align: center;
}

.paper-head-center h3 {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: .45px;
    font-size: 20px;
}

.paper-head-center p {
    margin: 1px 0 0;
    text-transform: uppercase;
    font-size: 11px;
}

.paper-head-right {
    text-align: right;
}

.paper-head-right small {
    display: block;
    font-size: 11px;
    color: #2f4d6b;
    margin-bottom: 4px;
}

.annex-badge {
    display: inline-block;
    border: 1px solid #6f88a1;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .4px;
}

.enrollment-top-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.enrollment-top-meta > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.print-only {
    display: none;
}

.screen-only {
    display: block;
}

.hardcopy-print-form {
    font-family: "Arial", "Helvetica", sans-serif;
    color: #111;
}

.hpf-head {
    display: grid;
    grid-template-columns: 84px 1fr 140px;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.hpf-logo img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.hpf-title {
    text-align: center;
}

.hpf-title h1 {
    margin: 0;
    font-size: 16px;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.hpf-title p {
    margin: 2px 0 0;
    font-size: 10px;
    text-transform: uppercase;
}

.hpf-annex {
    text-align: right;
}

.hpf-annex small {
    display: block;
    font-size: 10px;
    margin-bottom: 4px;
}

.hpf-annex strong {
    display: inline-block;
    border: 1px solid #111;
    padding: 2px 8px;
    font-size: 11px;
}

.hpf-top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 6px;
    margin-bottom: 6px;
}

.hpf-box,
.hpf-field,
.hpf-disability,
.hpf-instruction {
    border: 1px solid #111;
    padding: 4px 6px;
}

.hpf-box label,
.hpf-field label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 3px;
}

.hpf-box div,
.hpf-field div {
    min-height: 14px;
    font-size: 10px;
    line-height: 1.25;
}

.hpf-instruction {
    font-size: 10px;
    margin-bottom: 6px;
}

.hpf-section-title {
    border: 1px solid #111;
    border-bottom: 0;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 6px;
    margin-top: 6px;
}

.hpf-row {
    display: grid;
    gap: 6px;
    margin-bottom: 6px;
}

.hpf-row.two {
    grid-template-columns: 1.2fr 1fr;
}

.hpf-row.three {
    grid-template-columns: 1.2fr 0.7fr 0.9fr;
}

.hpf-row.four {
    grid-template-columns: repeat(4, 1fr);
}

.hpf-disability {
    margin-bottom: 6px;
}

.hpf-check-grid {
    margin-top: 4px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px 10px;
    font-size: 10px;
}

.enrollment-paper-head h3 {
    margin: 0 0 4px;
    text-transform: uppercase;
    font-size: 20px;
    letter-spacing: .4px;
}

.enrollment-paper-head p {
    margin: 0;
    font-size: 13px;
    color: #355777;
}

.enrollment-section-title {
    margin-top: 14px;
    margin-bottom: 8px;
    padding: 4px 8px;
    border: 1px solid #bed2e4;
    border-radius: 8px;
    background: #f4f9ff;
    font-weight: 700;
    color: #123e65;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .5px;
}

.enrollment-subtitle {
    margin-top: 10px;
    margin-bottom: 4px;
    font-weight: 700;
    color: #173f66;
}

.enrollment-form-grid {
    display: grid;
    gap: 10px;
}

.enrollment-instruction-line {
    border: 1px solid #b8cde0;
    background: #f8fbff;
    padding: 6px 8px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #234661;
}

.enrollment-form-grid > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.enrollment-form-grid > div > label {
    margin: 0;
    min-height: 28px;
    display: inline-flex;
    align-items: flex-end;
}

.enrollment-paper input,
.enrollment-paper select,
.enrollment-paper textarea {
    min-height: 34px;
}

.enrollment-paper input[type="text"],
.enrollment-paper textarea {
    text-transform: uppercase;
}

.enrollment-form-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.enrollment-form-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.enrollment-form-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.enrollment-inline-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.enrollment-radio-line {
    border: 1px solid #c4d7e8;
    border-radius: 9px;
    padding: 8px 10px;
    background: #f8fbff;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.enrollment-radio-line span {
    font-weight: 700;
    color: #163f66;
}

.enrollment-radio-line label {
    margin: 0;
    font-weight: 600;
    color: #274d70;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.enrollment-checkbox-grid {
    margin-top: 8px;
    border: 1px solid #c4d7e8;
    border-radius: 9px;
    padding: 10px;
    background: #fbfdff;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px;
}

.enrollment-checkbox-grid label {
    margin: 0;
    display: inline-flex;
    gap: 7px;
    align-items: center;
    font-weight: 600;
    color: #2b4f70;
}

.enrollment-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.enrollment-form-body {
    display: block;
}

@media (max-width: 980px) {
    .enrollment-form-two,
    .enrollment-form-three,
    .enrollment-form-four,
    .enrollment-inline-options {
        grid-template-columns: 1fr;
    }

    .enrollment-checkbox-grid {
        grid-template-columns: 1fr;
    }
}

@page {
    size: A4 portrait;
    margin: 6mm;
}

@media print {
    html,
    body {
        font-size: 9.5px !important;
        line-height: 1.2 !important;
    }

    body {
        background: #fff !important;
    }

    .sidebar,
    .topbar,
    .enduser-topnav,
    .enduser-pagehead,
    .print-hide,
    .logout-modal {
        display: none !important;
    }

    .print-only {
        display: block !important;
    }

    .screen-only {
        display: none !important;
    }

    .app-shell {
        display: block !important;
    }

    .main-area,
    .container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .panel {
        border: 0 !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
    }

    .enrollment-paper {
        width: 100% !important;
        min-height: auto !important;
        border: 1px solid #111 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin: 0 auto !important;
        padding: 3.5mm !important;
        font-size: 9.5px !important;
        line-height: 1.2 !important;
    }

    .enrollment-paper-head {
        padding-bottom: 5px !important;
        margin-bottom: 5px !important;
    }

    .enrollment-paper-head-formal {
        border: 1px solid #111 !important;
        grid-template-columns: 66px 1fr 128px !important;
        gap: 6px !important;
        padding: 4px 5px !important;
        margin-bottom: 6px !important;
    }

    .paper-head-left img {
        width: 52px !important;
        height: 52px !important;
    }

    .paper-head-center h3 {
        font-size: 12px !important;
        letter-spacing: .2px !important;
        margin-bottom: 1px !important;
    }

    .paper-head-center p,
    .paper-head-right small,
    .annex-badge {
        font-size: 8px !important;
    }

    .annex-badge {
        border-color: #111 !important;
        padding: 1px 5px !important;
    }

    .enrollment-top-meta {
        gap: 5px !important;
        margin-bottom: 6px !important;
    }

    .enrollment-top-meta label {
        font-size: 8px !important;
        margin: 0 !important;
    }

    .enrollment-top-meta input {
        min-height: 18px !important;
    }

    .enrollment-paper-head h3 {
        font-size: 13px !important;
        margin-bottom: 2px !important;
    }

    .enrollment-paper-head p {
        font-size: 9px !important;
    }

    .enrollment-section-title {
        margin-top: 6px !important;
        margin-bottom: 4px !important;
        padding: 2px 5px !important;
        font-size: 9px !important;
        border-color: #111 !important;
        background: #fff !important;
        color: #000 !important;
        text-align: center !important;
    }

    .enrollment-subtitle {
        margin-top: 6px !important;
        margin-bottom: 2px !important;
        font-size: 9px !important;
    }

    .enrollment-form-grid,
    .enrollment-inline-options,
    .enrollment-checkbox-grid {
        gap: 4px !important;
    }

    .enrollment-radio-line,
    .enrollment-checkbox-grid {
        padding: 4px 6px !important;
        border-color: #111 !important;
        background: #fff !important;
    }

    .enrollment-form-grid > div > label {
        min-height: auto !important;
        font-size: 9px !important;
        color: #000 !important;
    }

    .enrollment-paper input,
    .enrollment-paper select {
        background: #fff !important;
        color: #000 !important;
        border: 1px solid #111 !important;
        min-height: 20px !important;
        padding: 1px 4px !important;
        font-size: 9px !important;
    }

    .enrollment-instruction-line {
        border-color: #111 !important;
        background: #fff !important;
        color: #000 !important;
        margin-bottom: 6px !important;
        padding: 3px 5px !important;
        font-size: 8px !important;
    }

    .hardcopy-print-form {
        font-size: 9px !important;
    }

    .hpf-title h1 {
        font-size: 12px !important;
    }

    .hpf-title p,
    .hpf-annex small,
    .hpf-annex strong,
    .hpf-box label,
    .hpf-field label,
    .hpf-box div,
    .hpf-field div,
    .hpf-check-grid,
    .hpf-instruction {
        font-size: 8px !important;
    }

    .hpf-head {
        grid-template-columns: 62px 1fr 112px !important;
        margin-bottom: 5px !important;
    }

    .hpf-logo img {
        width: 54px !important;
        height: 54px !important;
    }

    .hpf-top-grid,
    .hpf-row,
    .hpf-check-grid {
        gap: 4px !important;
    }

    .hpf-box,
    .hpf-field,
    .hpf-disability,
    .hpf-instruction,
    .hpf-section-title {
        border-color: #111 !important;
    }

    /* Final A4 fit pass: keep all enrollment inputs visible in one page */
    .enrollment-paper-wrap {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .enrollment-paper {
        width: 198mm !important;
        max-width: 198mm !important;
        height: 285mm !important;
        max-height: 285mm !important;
        overflow: hidden !important;
        padding: 3.4mm 3.6mm !important;
        font-size: 8.9px !important;
        line-height: 1.14 !important;
    }

    .enrollment-paper,
    .enrollment-paper * {
        box-sizing: border-box !important;
    }

    .enrollment-paper {
        display: flex !important;
        flex-direction: column !important;
    }

    .enrollment-form-body {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }

    .enrollment-form-body > * {
        flex-shrink: 0 !important;
    }

    .enrollment-paper-head-formal {
        grid-template-columns: 52px 1fr 105px !important;
        gap: 5px !important;
        padding: 3px 5px !important;
        margin-bottom: 4px !important;
    }

    .paper-head-left img {
        width: 40px !important;
        height: 40px !important;
    }

    .paper-head-center h3 {
        font-size: 10.8px !important;
        margin: 0 !important;
        letter-spacing: .1px !important;
    }

    .paper-head-center p,
    .paper-head-right small,
    .annex-badge {
        font-size: 7.2px !important;
    }

    .annex-badge {
        padding: 1px 4px !important;
    }

    .enrollment-top-meta {
        grid-template-columns: 1fr 1fr !important;
        gap: 4px !important;
        margin-bottom: 4px !important;
    }

    .enrollment-top-meta label {
        font-size: 7.2px !important;
        margin-bottom: 2px !important;
    }

    .enrollment-instruction-line {
        font-size: 7.1px !important;
        padding: 3px 5px !important;
        margin-bottom: 4px !important;
    }

    .enrollment-section-title {
        margin-top: 5px !important;
        margin-bottom: 3px !important;
        border-radius: 0 !important;
        font-size: 7.8px !important;
        letter-spacing: .25px !important;
    }

    .enrollment-subtitle {
        margin-top: 4px !important;
        margin-bottom: 2px !important;
        font-size: 7.4px !important;
        font-weight: 700 !important;
    }

    .enrollment-form-grid,
    .enrollment-inline-options,
    .enrollment-checkbox-grid {
        gap: 3px !important;
    }

    .enrollment-form-grid > div {
        gap: 2px !important;
    }

    .enrollment-form-grid > div > label {
        font-size: 7.1px !important;
        line-height: 1.02 !important;
        min-height: auto !important;
    }

    .enrollment-form-two {
        grid-template-columns: 0.9fr 1.1fr !important;
    }

    .enrollment-form-three {
        grid-template-columns: 1fr 0.9fr 0.95fr !important;
    }

    .enrollment-form-four {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    .enrollment-inline-options {
        grid-template-columns: 1.15fr 1fr 1.15fr !important;
    }

    .enrollment-radio-line {
        border-radius: 0 !important;
        padding: 2px 4px !important;
        gap: 5px !important;
    }

    .enrollment-radio-line span,
    .enrollment-radio-line label {
        font-size: 7px !important;
        line-height: 1.02 !important;
    }

    .enrollment-checkbox-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        border-radius: 0 !important;
        padding: 3px 5px !important;
    }

    .enrollment-checkbox-grid label {
        font-size: 7px !important;
        line-height: 1.02 !important;
    }

    .enrollment-paper input,
    .enrollment-paper select,
    .enrollment-paper textarea {
        min-height: 16px !important;
        height: 16px !important;
        border-radius: 0 !important;
        padding: 1px 3px !important;
        font-size: 7.3px !important;
        line-height: 1 !important;
        background: #fff !important;
        color: #000 !important;
        -webkit-text-fill-color: #000 !important;
        opacity: 1 !important;
    }

    .enrollment-paper textarea {
        height: 16px !important;
        resize: none !important;
    }

    .enrollment-paper input[type="radio"],
    .enrollment-paper input[type="checkbox"] {
        width: 8px !important;
        height: 8px !important;
        min-height: 8px !important;
        margin: 0 2px 0 0 !important;
        vertical-align: middle !important;
    }

    .enrollment-paper article,
    .enrollment-paper form,
    .enrollment-paper .enrollment-form-grid,
    .enrollment-paper .enrollment-inline-options,
    .enrollment-paper .enrollment-checkbox-grid {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
}

.table-wrap { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    border: 1px solid var(--ccs-border);
    padding: 9px;
    text-align: left;
    vertical-align: top;
}

th {
    background: linear-gradient(180deg, #ecf4fd, #e3eef9);
    color: var(--ccs-blue-900);
}

tr:nth-child(even) td { background: #fbfdff; }

.badge {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.pending { background: #fff6e8; color: #8a5a13; }
.reviewed { background: #ecf4ff; color: #1b578d; }
.approved { background: #e7f6ed; color: #1b6a3a; }
.rejected { background: #fdeeee; color: #8c2231; }
.waitlisted { background: #eef0ff; color: #3f4898; }

.alert {
    padding: 10px 12px;
    border-radius: 9px;
    margin-bottom: 12px;
    border: 1px solid transparent;
}

.alert-success { background: var(--ccs-success-bg); color: var(--ccs-success-text); border-color: #bee4cb; }
.alert-error { background: var(--ccs-danger-bg); color: var(--ccs-danger-text); border-color: #f5c8ce; }
.alert-warning { background: var(--ccs-warning-bg); color: var(--ccs-warning-text); border-color: #eed7ac; }

.feed-post {
    border: 1px solid var(--ccs-border);
    border-left: 4px solid var(--ccs-blue-700);
    border-radius: 11px;
    padding: 12px;
    margin-bottom: 10px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(16,63,108,.05);
}

.feed-meta {
    color: var(--ccs-muted);
    font-size: 13px;
    margin-bottom: 6px;
}

.feed-post img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--ccs-border);
}

.auth-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 18px;
}

.auth-card {
    width: min(560px, 100%);
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    border: 1px solid var(--ccs-border);
    border-radius: 16px;
    box-shadow: 0 16px 28px rgba(15,76,129,.13);
    padding: 24px;
}

.auth-top { text-align: center; margin-bottom: 14px; }
.auth-top img {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 2px solid #d4e5f6;
    background: #fff;
}

.requirements { margin: 10px 0; padding-left: 18px; color: var(--ccs-muted); font-size: 13px; }

.split {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 14px;
}

@media (max-width: 1000px) {
    .app-shell { grid-template-columns: 1fr; }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: min(86vw, 320px);
        height: 100dvh;
        min-height: 100vh;
        border-right: 4px solid #082844;
        border-bottom: 0;
        z-index: 1400;
        transform: translateX(-104%);
        transition: transform .22s ease;
        box-shadow: 12px 0 28px rgba(5, 27, 47, .38);
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-mobile-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        border: 1px solid rgba(255,255,255,.22);
        border-radius: 12px;
        padding: 8px 10px;
        background: rgba(255,255,255,.12);
    }

    .sidebar-mobile-head strong {
        color: #fff;
        font-size: 14px;
        letter-spacing: .2px;
    }

    .sidebar-close {
        border: 1px solid rgba(255,255,255,.3);
        border-radius: 999px;
        background: rgba(255,255,255,.18);
        color: #fff;
        font: inherit;
        font-weight: 700;
        padding: 5px 11px;
        cursor: pointer;
    }

    .sidebar-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: 1px solid #b8d0e5;
        border-radius: 12px;
        background: linear-gradient(180deg, #fbfdff, #eaf3fc);
        color: #124774;
        font: inherit;
        font-weight: 700;
        min-height: 40px;
        padding: 8px 12px;
        cursor: pointer;
        box-shadow: 0 8px 16px rgba(19, 64, 103, .12);
        transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
    }

    .sidebar-toggle:hover {
        transform: translateY(-1px);
        background: linear-gradient(180deg, #ffffff, #e6f1fb);
        box-shadow: 0 10px 18px rgba(16, 60, 98, .16);
    }

    .sidebar-toggle__icon {
        width: 20px;
        height: 16px;
        display: inline-flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .sidebar-toggle__bar {
        width: 100%;
        height: 2px;
        border-radius: 999px;
        background: #175184;
    }

    .sidebar-toggle__label {
        font-size: 14px;
        letter-spacing: .2px;
        line-height: 1;
    }

    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        border: 0;
        background: rgba(9, 28, 47, .5);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        z-index: 1390;
        transition: opacity .2s ease, visibility .2s ease;
    }

    body.sidebar-open .sidebar-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .sidebar-footer { margin-top: 0; }
    .split { grid-template-columns: 1fr; }
    .page-title { font-size: 24px; }

    .topbar-inner {
        padding-top: 14px;
        gap: 10px;
    }

    .enduser-topnav {
        position: static;
    }

    .enduser-topnav-inner {
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 10px;
    }

    .enduser-menu {
        justify-content: flex-start;
    }

    .enduser-user {
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 10px 12px;
        border: 1px solid rgba(255,255,255,.22);
        border-radius: 12px;
        background: rgba(255,255,255,.1);
    }

    .enduser-user-meta {
        text-align: left;
        min-width: 0;
    }

    .enduser-user-meta strong,
    .enduser-user-meta small {
        overflow-wrap: anywhere;
    }

    .enduser-status-strip {
        grid-template-columns: 1fr;
    }

    .enduser-status-cta {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .sidebar-toggle {
        min-height: 38px;
        padding: 7px 11px;
    }

    .sidebar-toggle__label {
        font-size: 13px;
    }

    .enduser-user {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 10px;
    }

    .enduser-user .btn-logout {
        min-height: 38px;
        padding: 8px 12px;
    }

    .container {
        padding: 0 12px 18px;
        margin-top: 6px;
    }

    .panel {
        padding: 12px;
        border-radius: 12px;
    }

    .action-inline > input,
    .action-inline > select,
    .action-inline > .btn {
        width: 100%;
        max-width: 100% !important;
    }

    .table-wrap {
        margin-left: -2px;
        margin-right: -2px;
    }

    table {
        min-width: 620px;
    }

    th,
    td {
        padding: 7px;
        font-size: 13px;
    }

    .action-row {
        flex-direction: column;
        align-items: stretch;
    }

    .action-row .btn {
        width: 100%;
    }

    .grade-quick-nav {
        gap: 10px;
        padding: 2px 2px 8px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .grade-quick-nav-link {
        min-height: 40px;
        padding: 10px 14px;
        font-size: 13px;
        scroll-snap-align: start;
        flex: 0 0 auto;
    }

    .grade-mobile-select {
        display: block;
        margin-top: 10px;
    }

    .grade-mobile-select select {
        border-radius: 10px;
        min-height: 40px;
        font-weight: 700;
    }
}

@media (max-width: 420px) {
    .enduser-user {
        grid-template-columns: 1fr;
    }

    .enduser-user .btn-logout {
        width: 100%;
    }
}

/* Auth split-screen redesign */
.auth-portal {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    background: #edf3fa;
}

.auth-left {
    background: linear-gradient(180deg, #0a2c52 0%, #11497d 45%, #1f66a7 100%);
    display: grid;
    place-items: center;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.auth-left::before,
.auth-left::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.auth-left::before {
    width: 330px;
    height: 330px;
    top: -120px;
    left: -80px;
}

.auth-left::after {
    width: 260px;
    height: 260px;
    bottom: -90px;
    right: -60px;
}

.auth-brand {
    text-align: center;
    color: #fff;
    max-width: 440px;
    z-index: 1;
}

.auth-seal {
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,.92);
    background: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 24px rgba(3, 23, 43, .3);
}

.auth-seal img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 50%;
}

.auth-brand h1 {
    font-size: 32px;
    color: #fff;
    margin-bottom: 10px;
}

.auth-brand p {
    color: #dfeefd;
    font-size: 16px;
    max-width: 420px;
    margin: 0 auto;
}

.auth-highlights {
    margin: 16px auto 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
    max-width: 420px;
}

.auth-highlights li {
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, .12);
    color: #eef6ff;
    font-size: 13px;
    font-weight: 700;
}

.auth-right {
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-shell-card {
    width: min(540px, 100%);
    background: linear-gradient(180deg, #f8fbff, #f1f6fc);
    border: 1px solid #d8e4f1;
    border-radius: 22px;
    box-shadow: 0 18px 32px rgba(20, 57, 92, .14);
    padding: 28px;
}

.auth-shell-card.auth-compact {
    width: min(500px, 100%);
}

.auth-shell-head {
    margin-bottom: 14px;
}

.auth-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid #b9d0e6;
    border-radius: 999px;
    padding: 6px 10px;
    background: #edf5fd;
    color: #215988;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-shell-head h2 {
    font-size: 30px;
    margin-bottom: 4px;
}

.auth-shell-head p {
    color: var(--ccs-muted);
}

.auth-shell-card input,
.auth-shell-card select {
    background: #e9f0f8;
    border: 1px solid #c8d7e9;
    border-radius: 14px;
    padding: 12px 13px;
    font-size: 15px;
}

.auth-shell-card form {
    display: grid;
    gap: 3px;
}

.auth-help {
    margin: 4px 0 2px;
    font-size: 12px;
    color: #4c6781;
}

.auth-shell-card .requirements {
    margin: 10px 0 4px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}

.auth-shell-card .requirements li {
    border: 1px solid #d5e2ee;
    border-radius: 10px;
    background: #f6fafe;
    padding: 8px 10px 8px 28px;
    position: relative;
    color: #6b3940;
    font-size: 13px;
    font-weight: 700;
}

.auth-shell-card .requirements li::before {
    content: "x";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    display: grid;
    place-items: center;
    color: #fff;
    background: #ac4d57;
}

.auth-shell-card .requirements li.is-met {
    color: #215f3b;
    border-color: #c0e2cf;
    background: #eaf8ef;
}

.auth-shell-card .requirements li.is-met::before {
    content: "✓";
    background: #2d8a56;
}

.auth-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.auth-check {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    color: var(--ccs-muted);
}

.auth-check input {
    width: 16px;
    height: 16px;
}

.btn-auth {
    width: 100%;
    border-radius: 999px;
    padding: 12px 14px;
    background: linear-gradient(180deg, #2d7ec2, #0f4c81);
    box-shadow: 0 12px 22px rgba(15, 76, 129, .33);
    font-size: 16px;
}

.btn-auth:disabled {
    cursor: not-allowed;
    filter: grayscale(.2) saturate(.5);
    box-shadow: none;
    opacity: .7;
}

.auth-foot {
    text-align: center;
    margin-top: 14px;
}

.auth-recovery-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.auth-recovery-tab {
    border: 1px solid #c9d8e9;
    background: #eef4fb;
    color: #1c4c77;
    border-radius: 12px;
    padding: 10px 8px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.auth-recovery-tab.is-active {
    background: linear-gradient(180deg, #2f79b8, #16588e);
    color: #fff;
    border-color: #1f669f;
}

@media (max-width: 980px) {
    .auth-portal { grid-template-columns: 1fr; }
    .auth-left { min-height: 280px; }
    .auth-brand h1 { font-size: 26px; }
    .auth-shell-card { padding: 22px 18px; }
}

@media (max-width: 560px) {
    .auth-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-highlights li {
        border-radius: 12px;
    }
}

/* Dashboard system blocks */
.nav-ico {
    width: 28px;
    height: 24px;
    border-radius: 7px;
    display: inline-grid;
    place-items: center;
    margin-right: 8px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.22);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .4px;
    line-height: 1;
    flex-shrink: 0;
}

.nav-ico .ui-icon {
    width: 14px;
    height: 14px;
}

.sidebar-link.active .nav-ico {
    background: #e6f2ff;
    border-color: #d0e3f8;
    color: #0f4c81;
}

.sidebar-btn {
    width: 100%;
    text-align: left;
    background: rgba(255,255,255,.08);
    color: #eaf4ff;
    font: inherit;
}

.role-chip {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.26);
    background: rgba(255,255,255,.12);
    color: #e8f3ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .4px;
}

.role-text {
    margin-top: -4px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #d4e8fc;
    letter-spacing: .5px;
}

.dashboard-topbar {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 20px 22px;
    border-color: #b8cfe5;
    background:
        radial-gradient(circle at 78% -35%, rgba(95, 154, 208, .42), rgba(95, 154, 208, 0) 52%),
        radial-gradient(circle at -10% 120%, rgba(194, 223, 249, .78), rgba(194, 223, 249, 0) 50%),
        linear-gradient(122deg, #f5fbff 0%, #edf4fb 58%, #e6f0fa 100%);
    box-shadow: 0 14px 28px rgba(15, 65, 110, .14), inset 0 1px 0 rgba(255, 255, 255, .72);
}

.dashboard-topbar::before,
.dashboard-topbar::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.dashboard-topbar::before {
    width: 180px;
    height: 180px;
    top: -120px;
    right: -45px;
    border-radius: 999px;
    background: radial-gradient(circle at 40% 35%, rgba(38, 105, 167, .2), rgba(38, 105, 167, 0) 70%);
}

.dashboard-topbar::after {
    width: 220px;
    height: 220px;
    bottom: -165px;
    left: -42px;
    border-radius: 999px;
    background: radial-gradient(circle at 58% 35%, rgba(123, 176, 226, .26), rgba(123, 176, 226, 0) 72%);
}

.dash-head-left,
.dash-head-right {
    position: relative;
    z-index: 1;
}

.dash-head-left h2 {
    margin: 0 0 6px;
    color: #0e3f70;
    font-size: clamp(30px, 2.1vw, 36px);
    letter-spacing: .18px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .8);
}

.dash-head-left .muted {
    margin: 0;
    max-width: 680px;
    color: #3d5f7d;
    font-size: 17px;
    line-height: 1.5;
}

.dash-search input {
    border-radius: 999px;
    background: #eef4fb;
    border-color: #d5e3f2;
}

.dash-head-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.notif,
.avatar {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(18, 78, 126, .22);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .25px;
}

.notif {
    position: relative;
    background: linear-gradient(160deg, #f4f9ff 0%, #ddebf8 100%);
    color: #155082;
    text-decoration: none;
    box-shadow: 0 10px 18px rgba(13, 60, 105, .16), inset 0 1px 0 rgba(255, 255, 255, .8);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.notif:hover {
    transform: translateY(-2px) scale(1.01);
    filter: brightness(1.03);
    box-shadow: 0 14px 22px rgba(11, 48, 84, .2), inset 0 1px 0 rgba(255, 255, 255, .84);
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -3px;
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #c62e3b;
    color: #fff;
    border: 1px solid #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.notif .ui-icon {
    width: 26px;
    height: 26px;
}

.avatar {
    background:
        radial-gradient(circle at 35% 20%, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 42%),
        linear-gradient(170deg, #2e82c5 0%, #115995 58%, #0a4a80 100%);
    color: #fff;
    font-size: 31px;
    text-shadow: 0 1px 1px rgba(8, 32, 56, .45);
    box-shadow: 0 12px 20px rgba(11, 48, 84, .3), inset 0 1px 0 rgba(255, 255, 255, .28);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.stat-hero {
    border-radius: 20px;
    padding: 16px 18px;
    color: #fff;
    box-shadow: 0 12px 18px rgba(12, 48, 82, .16);
    display: flex;
    gap: 12px;
    align-items: center;
}

.stat-hero .icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.2);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .5px;
}

.stat-hero .icon .ui-icon {
    width: 20px;
    height: 20px;
}

.stat-hero h3 {
    margin: 0;
    font-size: 31px;
    color: #fff;
}

.stat-hero p {
    margin: 0;
    color: rgba(255,255,255,.96);
}

.stat-blue { background: linear-gradient(135deg, #0e4e83, #1f7dbd); }
.stat-lightblue { background: linear-gradient(135deg, #2c73b0, #72ace0); }
.stat-purple { background: linear-gradient(135deg, #476aa9, #6d8ec8); }
.stat-green { background: linear-gradient(135deg, #2f8f5f, #55b37c); }
.stat-red { background: linear-gradient(135deg, #b24b56, #d56b79); }
.stat-orange { background: linear-gradient(135deg, #bf7f31, #e0a24a); }

/* Dashboard stat cards shared match (Admin + Super Admin) */
.dashboard-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.dashboard-stats .stat-hero {
    min-height: 126px;
    border-radius: 28px;
    padding: 16px 24px;
    gap: 14px;
    align-items: center;
    box-shadow: 0 14px 24px rgba(18, 54, 87, .2);
    position: relative;
    overflow: hidden;
}

.dashboard-stats .stat-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,0) 45%);
    pointer-events: none;
}

.dashboard-stats .stat-hero .icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.12);
    display: grid;
    place-items: center;
}

.dashboard-stats .stat-hero .icon .ui-icon {
    width: 28px;
    height: 28px;
    stroke-width: 2.1;
}

.dashboard-stats .stat-hero h3 {
    font-size: 48px;
    line-height: .88;
    letter-spacing: .2px;
    margin-bottom: 4px;
}

.dashboard-stats .stat-hero p {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: .1px;
    color: rgba(255,255,255,.98);
}

.dashboard-stats .stat-blue { background: linear-gradient(120deg, #216ca7 0%, #2b80b8 100%); }
.dashboard-stats .stat-lightblue { background: linear-gradient(120deg, #4e89c2 0%, #72a9dc 100%); }
.dashboard-stats .stat-purple { background: linear-gradient(120deg, #5978b9 0%, #7996cd 100%); }
.dashboard-stats .stat-green { background: linear-gradient(120deg, #3f9c66 0%, #59b782 100%); }

.chart-panel {
    min-height: 300px;
}

.bar-row {
    display: grid;
    grid-template-columns: 140px 1fr 44px;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.bar-label {
    font-weight: 700;
    color: var(--ccs-blue-900);
}

.bar-track {
    height: 14px;
    background: #e8f0f8;
    border-radius: 999px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2f78b7, #5ca5dd);
}

.bar-value {
    text-align: right;
    font-weight: 700;
}

.pie-wrap {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 14px;
    align-items: center;
}

.pie-chart {
    width: 210px;
    height: 210px;
    border-radius: 50%;
    border: 10px solid #eef4fb;
    box-shadow: inset 0 3px 8px rgba(9, 48, 82, .12);
}

.pie-legend p {
    margin: 7px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    display: inline-block;
}

.d1 { background: #2477b8; }
.d2 { background: #5f8ee8; }
.d3 { background: #67a0d8; }
.d4 { background: #d6e6f7; }

.schoolyear-panel .sy-main {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
    gap: 12px;
}

.big-badge {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 700;
    background: #e8f1fb;
    color: #134a7a;
}

.sy-list {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.applicant-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reviewed-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.reviewed-search-row {
    margin-top: 2px;
    margin-bottom: 8px;
}

.reviewed-search-input {
    max-width: 420px;
    width: 100%;
}

.reviewed-empty {
    border: 1px dashed #b4c9de;
    border-radius: 12px;
    padding: 18px 16px;
    background: linear-gradient(180deg, #fbfdff 0%, #f3f8ff 100%);
    margin-top: 6px;
}

.reviewed-empty h4 {
    margin-bottom: 4px;
}

.app-avatar {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: linear-gradient(180deg, #2d7fbe, #0f4c81);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.assisted-hint-list {
    margin: 8px 0 0;
    padding-left: 18px;
    color: #325875;
}

.assisted-hint-list li {
    margin-bottom: 4px;
}

.field-error {
    display: block;
    margin-top: 4px;
    color: #8c2231;
    font-weight: 700;
}

.grade-quick-nav-panel {
    padding-bottom: 12px;
}

.grade-mobile-select {
    display: none;
}

.grade-quick-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
}

.grade-quick-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-decoration: none;
    font-weight: 700;
    color: #184a76;
    background: linear-gradient(180deg, #f6fbff 0%, #eaf3fc 100%);
    border: 1px solid #bfd4e7;
    border-radius: 999px;
    padding: 7px 12px;
    transition: all .14s ease;
}

.grade-quick-nav-link:hover {
    color: #fff;
    border-color: #2f79b8;
    background: linear-gradient(180deg, #2f79b8 0%, #16588e 100%);
    box-shadow: 0 8px 14px rgba(13, 62, 103, .2);
}

.grade-quick-nav-link.is-active {
    color: #fff;
    border-color: #2f79b8;
    background: linear-gradient(180deg, #2f79b8 0%, #16588e 100%);
    box-shadow: 0 8px 14px rgba(13, 62, 103, .2);
}

.panel[id^="grade-"] {
    scroll-margin-top: 96px;
}

.timeline {
    display: grid;
    gap: 10px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid #d8e5f3;
    border-radius: 12px;
    background: #f9fcff;
    padding: 10px;
}

.timeline-dot {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(180deg, #2c78b5, #0f4c81);
    font-weight: 700;
}

.timeline-dot .ui-icon {
    width: 13px;
    height: 13px;
}

.backup-card .btn-backup {
    width: 100%;
    border-radius: 16px;
    padding: 12px;
    font-size: 16px;
    background: linear-gradient(135deg, #2f80c3, #145a93);
    box-shadow: 0 12px 20px rgba(17, 78, 128, .3);
}

@media (max-width: 1180px) {
    .schoolyear-panel .sy-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .dashboard-topbar { grid-template-columns: 1fr; }
    .dashboard-topbar { padding: 18px 16px; gap: 14px; }
    .dash-head-left h2 { font-size: clamp(24px, 7.2vw, 30px); }
    .dash-head-left .muted { font-size: 15px; }
    .dash-head-right { justify-content: flex-start; }
    .notif,
    .avatar {
        width: 52px;
        height: 52px;
    }
    .pie-wrap { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .dashboard-stats { grid-template-columns: 1fr; }
    .dashboard-stats .stat-hero h3 { font-size: 38px; }
    .dashboard-stats .stat-hero p { font-size: 14px; }
    .dashboard-stats .stat-hero .icon {
        width: 54px;
        height: 54px;
    }
    .dashboard-stats .stat-hero .icon .ui-icon {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 1260px) and (min-width: 901px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Welcome landing redesign */
.welcome-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% 8%, rgba(178, 211, 244, 0.55), rgba(178, 211, 244, 0) 35%),
        radial-gradient(circle at 93% 6%, rgba(108, 168, 226, 0.4), rgba(108, 168, 226, 0) 38%),
        linear-gradient(180deg, #ebeff6 0%, #dde4ef 100%);
}

.welcome-layout {
    min-height: 100vh;
    max-width: 1280px;
    margin: 0 auto;
    padding: 26px 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.welcome-system-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #1a426a;
    width: fit-content;
    animation: slide-in-left .75s ease both;
}

.welcome-system-brand img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid rgba(14, 73, 122, 0.22);
    box-shadow: 0 8px 18px rgba(9, 45, 81, 0.15);
}

.welcome-system-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.welcome-system-brand strong {
    font-size: 17px;
    font-weight: 700;
    max-width: 520px;
    line-height: 1.25;
    color: #154169;
}

.welcome-system-text span {
    font-size: 13px;
    font-weight: 600;
    color: #2c5a84;
    line-height: 1.3;
}

.welcome-card {
    position: relative;
    overflow: hidden;
    border-radius: 42px;
    border: 1px solid #d7e5f5;
    background:
        radial-gradient(circle at 82% 34%, rgba(79, 158, 230, 0.26), rgba(79, 158, 230, 0) 44%),
        linear-gradient(105deg, #f8fbff 0%, #f7fafe 47%, #eef6fe 64%, #63a7e5 100%);
    box-shadow: 0 24px 40px rgba(16, 52, 88, 0.16);
    padding: 44px 44px 74px;
}

.welcome-card::before,
.welcome-card::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.welcome-card::before {
    left: -16%;
    top: -30%;
    width: 74%;
    height: 76%;
    border-radius: 52% 48% 52% 48%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.65) 78%, rgba(255, 255, 255, 0.15) 100%);
    transform: rotate(-8deg);
}

.welcome-card::after {
    right: -24%;
    bottom: -44%;
    width: 66%;
    height: 76%;
    border-radius: 50% 50% 42% 58%;
    background: linear-gradient(165deg, rgba(33, 120, 196, 0.4), rgba(11, 84, 152, 0.85));
    filter: blur(1px);
}

.welcome-card-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 10px;
}

.welcome-message {
    max-width: 470px;
    animation: fade-up .82s ease both .15s;
}

.welcome-kicker {
    font-size: clamp(22px, 3.2vw, 52px);
    color: #23598a;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 500;
}

.welcome-message h1 {
    font-size: clamp(42px, 5.2vw, 64px);
    line-height: 1.05;
    letter-spacing: 0.8px;
    color: #1e4b77;
    margin-bottom: 28px;
}

.welcome-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.welcome-actions .btn {
    min-width: 176px;
    border-radius: 999px;
    font-size: 19px;
    letter-spacing: 0.2px;
    padding: 12px 24px;
    box-shadow: 0 14px 24px rgba(9, 46, 80, 0.18);
    animation: fade-up .82s ease both .4s;
}

.welcome-btn-login {
    background: linear-gradient(180deg, #2d6eb2 0%, #1a4f86 100%);
}

.welcome-btn-register {
    background: linear-gradient(180deg, #6ec2f3 0%, #3f95d5 100%);
}

.welcome-actions .btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 18px 28px rgba(10, 52, 91, 0.23);
}

.welcome-logo-stage {
    display: grid;
    place-items: center;
}

.welcome-seal-wrap {
    width: min(430px, 90%);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    padding: 34px;
    background:
        radial-gradient(circle at 32% 28%, #ffffff 0%, #f9fbff 56%, #ebf1f8 100%);
    box-shadow:
        0 28px 34px rgba(17, 60, 102, 0.24),
        inset 0 0 0 16px rgba(255, 255, 255, 0.86);
    animation: seal-float 6.4s ease-in-out infinite;
}

.welcome-seal-wrap::before {
    content: "";
    position: absolute;
    width: min(470px, 94%);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.44);
    z-index: -1;
}

.welcome-seal-wrap img {
    width: 100%;
    border-radius: 50%;
    border: 7px solid #eaf2fb;
    background: #fff;
    box-shadow: 0 10px 20px rgba(15, 60, 102, 0.2);
    animation: seal-enter .95s ease both .3s;
}

.welcome-particle {
    position: absolute;
    border-radius: 999px;
    background: rgba(63, 150, 224, 0.36);
    z-index: 2;
    animation: drift 7s ease-in-out infinite;
}

.welcome-particle.p1 { width: 18px; height: 18px; top: 46%; right: 41%; animation-delay: 0s; }
.welcome-particle.p2 { width: 10px; height: 10px; top: 24%; right: 35%; animation-delay: 1.2s; }
.welcome-particle.p3 { width: 12px; height: 12px; bottom: 18%; right: 30%; animation-delay: 2.3s; }
.welcome-particle.p4 { width: 16px; height: 16px; bottom: 8%; right: 44%; animation-delay: 3.1s; }
.welcome-particle.p5 { width: 9px; height: 9px; top: 66%; left: 48%; animation-delay: .6s; }

.welcome-card-footer {
    position: absolute;
    left: 44px;
    bottom: 26px;
    z-index: 3;
    color: #234b72;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.24px;
    animation: fade-up .85s ease both .55s;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes drift {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-16px) scale(1.15);
    }
}

@keyframes seal-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes seal-enter {
    from {
        opacity: 0;
        transform: scale(0.88);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 1100px) {
    .welcome-card {
        padding: 38px 28px 64px;
    }

    .welcome-card-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 18px;
    }

    .welcome-message {
        max-width: 100%;
        text-align: center;
        margin: 0 auto;
        display: contents;
    }

    .welcome-kicker {
        order: 1;
    }

    .welcome-message h1 {
        order: 2;
        margin-bottom: 20px;
    }

    .welcome-logo-stage {
        order: 3;
    }

    .welcome-actions {
        order: 4;
        justify-content: center;
    }

    .welcome-seal-wrap {
        width: min(330px, 88%);
    }
}

@media (max-width: 760px) {
    .welcome-layout {
        padding: 18px 12px 14px;
    }

    .welcome-system-brand {
        align-items: flex-start;
        gap: 10px;
    }

    .welcome-system-brand strong {
        font-size: 14px;
    }

    .welcome-system-text span {
        font-size: 11px;
    }

    .welcome-system-brand img {
        width: 44px;
        height: 44px;
    }

    .welcome-card {
        border-radius: 26px;
        padding: 26px 16px 48px;
    }

    .welcome-card-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .welcome-message {
        display: contents;
    }

    .welcome-kicker {
        order: 1;
    }

    .welcome-kicker {
        font-size: clamp(22px, 7vw, 34px);
    }

    .welcome-message h1 {
        order: 2;
        font-size: clamp(32px, 10vw, 45px);
        letter-spacing: 0.55px;
    }

    .welcome-logo-stage {
        order: 3;
    }

    .welcome-actions .btn {
        min-width: 140px;
        font-size: 16px;
        padding: 11px 14px;
    }

    .welcome-actions {
        order: 4;
    }

    .welcome-seal-wrap {
        width: min(275px, 84%);
        padding: 24px;
    }

    .welcome-card-footer {
        left: 16px;
        bottom: 16px;
        font-size: 10px;
    }
}

/* Auth pages aligned with welcome visual language */
.auth-welcome-page .welcome-layout {
    gap: 14px;
}

.auth-welcome-card {
    padding: 34px 34px 64px;
}

.auth-welcome-content {
    grid-template-columns: 1.02fr .98fr;
    gap: 20px;
    align-items: stretch;
}

.auth-welcome-message {
    max-width: 470px;
    animation: fade-up .75s ease both .12s;
}

.auth-welcome-message h1 {
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.08;
    letter-spacing: .45px;
    color: #1e4b77;
    margin-bottom: 12px;
}

.auth-welcome-copy {
    margin: 0;
    color: #2f577b;
    font-size: 16px;
    max-width: 440px;
}

.auth-brand-seal {
    margin-top: 16px;
    width: 124px;
    height: 124px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #d8e7f5;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 20px rgba(11, 53, 90, .18);
}

.auth-brand-seal img {
    width: 82px;
    height: 82px;
    border-radius: 50%;
}

.auth-shell-card--welcome {
    margin-left: auto;
    width: min(540px, 100%);
    background:
        linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,252,255,.95));
    border: 1px solid #d3e1ef;
    box-shadow: 0 18px 32px rgba(18, 66, 107, .2);
    backdrop-filter: blur(1px);
}

.auth-shell-card--welcome .auth-shell-head h2 {
    color: #184774;
}

.auth-shell-card--welcome .alert {
    margin-bottom: 10px;
}

.auth-shell-card--welcome input,
.auth-shell-card--welcome select {
    background: #f4f9ff;
    border-color: #c8d9ea;
}

.auth-password-wrap {
    position: relative;
}

.auth-password-input {
    padding-right: 52px;
}

.auth-password-input::-ms-reveal,
.auth-password-input::-ms-clear {
    display: none;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 1px solid #c4d8eb;
    border-radius: 11px;
    background: linear-gradient(180deg, #eff6ff 0%, #dfeefe 100%);
    color: #194a78;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background .14s ease, transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.auth-password-toggle:hover {
    background: linear-gradient(180deg, #e6f1fd 0%, #d3e5f8 100%);
    border-color: #aac5de;
    box-shadow: 0 4px 10px rgba(17, 64, 104, .16), inset 0 1px 0 rgba(255,255,255,.84);
    transform: translateY(-50%) scale(1.03);
}

.auth-password-toggle:focus-visible {
    outline: none;
    border-color: #5b96cb;
    box-shadow: 0 0 0 3px rgba(63,137,194,.25);
}

.auth-password-toggle .eye {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-password-toggle .eye-closed {
    display: none;
}

.auth-password-toggle[aria-pressed="true"] .eye-open {
    display: none;
}

.auth-password-toggle[aria-pressed="true"] .eye-closed {
    display: block;
}

.auth-shell-card--welcome .btn-auth {
    margin-top: 6px;
    background: linear-gradient(180deg, #2d6eb2 0%, #1a4f86 100%);
}

.auth-foot-link {
    margin-top: 6px;
    text-align: center;
    font-size: 13px;
}

.auth-foot-link a {
    color: #285f8f;
    text-decoration: none;
}

.auth-foot-link a:hover {
    text-decoration: underline;
}

.auth-welcome-content--register .auth-shell-card--welcome {
    width: min(560px, 100%);
}

.auth-shell-card--update {
    width: min(520px, 100%);
}

@media (max-width: 1100px) {
    .auth-welcome-card {
        padding: 30px 24px 60px;
    }

    .auth-welcome-content {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .auth-welcome-message {
        max-width: 100%;
        text-align: center;
        margin: 0 auto;
    }

    .auth-welcome-copy {
        margin-left: auto;
        margin-right: auto;
    }

    .auth-brand-seal {
        margin-left: auto;
        margin-right: auto;
    }

    .auth-shell-card--welcome {
        margin: 0 auto;
    }
}

@media (max-width: 760px) {
    .auth-welcome-card {
        border-radius: 26px;
        padding: 22px 14px 52px;
    }

    .auth-welcome-message h1 {
        font-size: clamp(30px, 9vw, 40px);
    }

    .auth-welcome-copy {
        font-size: 14px;
    }

    .auth-brand-seal {
        width: 104px;
        height: 104px;
    }

    .auth-brand-seal img {
        width: 70px;
        height: 70px;
    }
}
