: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-950);
    text-decoration-color: currentColor;
    text-decoration-thickness: 2px;
}

a:focus-visible {
    outline: 3px solid rgba(63,137,194,.35);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Button hover micro-interactions (covers plain <button> / <input type="button|submit|reset">). */
:where(button, input[type="button"], input[type="submit"], input[type="reset"], a[role="button"]) {
    transition:
        transform .16s cubic-bezier(.2,.8,.2,1),
        box-shadow .16s cubic-bezier(.2,.8,.2,1),
        filter .16s cubic-bezier(.2,.8,.2,1),
        opacity .14s ease;
}

:where(button, input[type="button"], input[type="submit"], input[type="reset"], a[role="button"]):not(:where(.btn, .sidebar-backdrop, .enduser-account-backdrop)) {
    will-change: transform;
}

:where(button, input[type="button"], input[type="submit"], input[type="reset"], a[role="button"]):not(:where(.btn, .sidebar-backdrop, .enduser-account-backdrop)):where(:not(:disabled):not([aria-disabled="true"])):hover {
    transform: translateY(-3px) scale(1.03);
    filter: brightness(1.08) saturate(1.08);
    box-shadow:
        0 18px 30px rgba(9, 48, 83, .22),
        0 0 0 3px rgba(63,137,194,.12);
}

:where(button, input[type="button"], input[type="submit"], input[type="reset"], a[role="button"]):not(:where(.btn, .sidebar-backdrop, .enduser-account-backdrop)):where(:not(:disabled):not([aria-disabled="true"])):active {
    transform: translateY(-1px) scale(1.01);
    filter: brightness(1.02) saturate(1.04);
    box-shadow: 0 10px 18px rgba(9, 48, 83, .18);
}

.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;
    border-color: #2f79b8;
    color: #0c3864;
}

.pagination-wrap .page-link:focus-visible {
    outline: 3px solid rgba(63,137,194,.35);
    outline-offset: 2px;
}
.panel-no-margin { margin: 0; }

.subnav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.subnav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--ccs-border);
    background: #ffffff;
    text-decoration: none;
    color: var(--ccs-blue-900);
    font-weight: 800;
    letter-spacing: .2px;
    transition: transform .16s cubic-bezier(.2,.8,.2,1), box-shadow .16s cubic-bezier(.2,.8,.2,1), background-color .16s ease, border-color .16s ease;
    will-change: transform;
}

.subnav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 20px rgba(12, 44, 76, .10);
    border-color: rgba(15, 76, 129, .24);
}

.subnav-link:active {
    transform: translateY(-1px);
    box-shadow: 0 10px 16px rgba(12, 44, 76, .08);
}

.subnav-link:focus-visible {
    outline: 3px solid rgba(63,137,194,.35);
    outline-offset: 2px;
}

.subnav-link.active {
    border-color: rgba(15, 76, 129, .28);
    box-shadow: 0 10px 18px rgba(12, 44, 76, .08);
    background: linear-gradient(180deg, #ffffff 0%, #f2f8ff 100%);
}

.subnav-link--danger {
    color: #861f2e;
    border-color: rgba(154, 44, 58, .28);
    background: linear-gradient(180deg, #fff7f7 0%, #fdeeee 100%);
}

.subnav-link--danger:hover {
    border-color: rgba(154, 44, 58, .34);
    box-shadow: 0 14px 20px rgba(86, 31, 46, .10);
}

.subnav-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 12px;
    background: #eef4fb;
    color: #0f4c81;
    font-weight: 900;
}

.subnav-link--danger .subnav-count {
    background: #fdeeee;
    color: #861f2e;
}

.subnav-divider {
    width: 1px;
    height: 26px;
    background: var(--ccs-border);
    opacity: .9;
}

.link-plain {
    color: inherit;
    text-decoration: none;
}

.link-plain:hover {
    text-decoration: underline;
}

.announcement-bulk-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
}

.announcement-bulk-bar__left,
.announcement-bulk-bar__right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.announcement-bulk-bar__right > select {
    width: auto;
    min-width: 240px;
    max-width: min(520px, 100%);
}

.announcement-bulk-bar__right > .btn {
    width: auto;
    white-space: nowrap;
}

.announcement-filter-btn {
    min-width: 90px;
    min-height: 40px;
    line-height: 1;
}

.announcement-bulk-check {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-weight: 800;
    color: #174c79;
}

.announcement-select input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2f79b8;
}

.md-toolbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px;
    border: 1px dashed var(--ccs-border);
    border-radius: 12px;
    background: #f8fbff;
    margin: 6px 0 8px;
}

.md-toolbar__divider {
    width: 1px;
    align-self: stretch;
    background: rgba(15, 76, 129, .18);
    border-radius: 99px;
    margin: 2px 2px;
}

.md-toolbar.md-toolbar--disabled {
    opacity: .72;
}

.announcement-title-input {
    font-weight: 800;
}

.md-toolbar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid rgba(15, 76, 129, .22);
    background: linear-gradient(180deg, #ffffff 0%, #edf5fe 100%);
    color: #174c79;
    padding: 7px 10px;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
}

.md-toolbar button .ui-icon {
    width: 16px;
    height: 16px;
}

.md-toolbar button:hover {
    border-color: rgba(15, 76, 129, .30);
    box-shadow: 0 10px 18px rgba(12, 44, 76, .10);
    transform: translateY(-1px);
}

.media-thumb {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    display: inline-block;
}

.media-thumb img {
    display: block;
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid var(--ccs-border);
    box-shadow: 0 10px 22px rgba(16,63,108,.10);
}

.media-modal__dialog {
    max-width: min(920px, calc(100vw - 32px));
}

.media-modal__image {
    width: 100%;
    height: auto;
    border-radius: 14px;
    border: 1px solid var(--ccs-border);
    background: #fff;
}

.media-modal__caption {
    margin: 10px 0 0;
    text-align: center;
}

.action-inline {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.action-inline--equal {
    align-items: center;
}

.action-inline--equal > .btn,
.action-inline--equal > form > .btn {
    min-width: 92px;
    min-height: 40px;
    padding: 9px 14px;
    justify-content: center;
    text-align: center;
}

.action-inline--equal > form {
    margin: 0;
}

.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,.18);
    border-color: rgba(255,255,255,.32);
    color: #ffffff;
    box-shadow: 0 10px 18px rgba(5, 27, 47, .22);
}

.sidebar-link:focus-visible {
    outline: 3px solid rgba(176, 216, 255, .42);
    outline-offset: 2px;
}

.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; }

/* Prevent page-level sideways scroll on Admin/Super Admin pages (tooltips, long titles, etc.). */
body.admin-portal {
    overflow-x: hidden;
}

.admin-portal .topbar-inner {
    flex-wrap: wrap;
}

.admin-portal .topbar-inner > * {
    min-width: 0;
}

.admin-portal .topbar-inner > div {
    flex: 1 1 auto;
    min-width: 0;
}

.admin-portal .page-title,
.admin-portal .topbar .muted {
    overflow-wrap: anywhere;
}

.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;
    min-width: 0;
}

.enduser-brand > div {
    min-width: 0;
}

.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;
    overflow-wrap: anywhere;
}

.enduser-brand small {
    display: block;
    color: #d8e9f9;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.enduser-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.enduser-link {
    display: inline-flex;
    align-items: center;
    justify-content: 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,.24);
    border-color: rgba(255,255,255,.5);
    box-shadow: 0 10px 18px rgba(6, 35, 62, .22);
    transform: translateY(-1px);
}

.enduser-link:focus-visible {
    outline: 3px solid rgba(176, 216, 255, .42);
    outline-offset: 2px;
}

.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;
    flex-wrap: wrap;
}

.enduser-drawer-head {
    display: none;
}

.enduser-drawer-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: 6px 12px;
    cursor: pointer;
}

.enduser-drawer-close:hover {
    background: rgba(255,255,255,.26);
}

.enduser-account-backdrop {
    display: none;
}

.enduser-account-toggle {
    display: none;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font: inherit;
    font-weight: 700;
    padding: 8px 14px;
    min-height: 38px;
    cursor: pointer;
    transition: background .14s ease, transform .14s ease;
}

.enduser-account-toggle__icon {
    width: 18px;
    height: 14px;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 0 0 auto;
}

.enduser-account-toggle__bar {
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.enduser-account-toggle:hover {
    background: rgba(255,255,255,.24);
    transform: translateY(-1px);
}

.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-user-meta strong,
.enduser-user-meta small {
    overflow-wrap: anywhere;
}

.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;
}

.enrollment-status-panel .panel-head {
    border-bottom-color: #bcd3e7;
}

.enrollment-status-card {
    grid-template-columns: 1fr auto;
    padding: 14px;
    border-color: #b8d2e7;
    background:
        radial-gradient(circle at 8% 0, rgba(91, 159, 217, .12) 0%, rgba(91,159,217,0) 34%),
        linear-gradient(180deg, #f7fbff 0%, #eef6ff 100%);
}

.enrollment-status-main {
    display: grid;
    gap: 5px;
    align-content: start;
}

.enrollment-status-label {
    margin: 0;
    letter-spacing: .2px;
}

.enrollment-status-message {
    margin: 0;
    font-size: 30px;
    line-height: 1.35;
    color: #0f3e69;
}

.enrollment-status-meta {
    display: inline-block;
    width: fit-content;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 700;
    color: #1b5789;
    border: 1px solid #c1d8eb;
    border-radius: 999px;
    background: #f3f9ff;
    padding: 3px 10px;
}

.enrollment-status-panel .enduser-status-cta .btn {
    min-height: 42px;
    padding: 10px 16px;
}

.table-wrap--stack {
    overflow: visible;
}

.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;
}

.page-title-above {
    margin-bottom: 8px;
}

.btn-icon {
    padding: 8px 10px;
    min-width: 40px;
    min-height: 40px;
}

.btn-icon .ui-icon {
    width: 18px;
    height: 18px;
}

.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;
}

.panel-head__title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-head__meta {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.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-color: transparent;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 58%),
        linear-gradient(180deg, var(--ccs-blue-700), var(--ccs-blue-800));
    background-repeat: no-repeat;
    background-size: 200% 200%, 160% 160%;
    background-position: 0% 0%, 0% 50%;
    color: #fff;
    text-shadow: 0 1px 0 rgba(6, 24, 41, .22);
    font-family: inherit;
    font-weight: 700;
    padding: 9px 13px;
    outline: 1px solid rgba(255,255,255,0);
    outline-offset: -1px;
    transition:
        transform .18s cubic-bezier(.2,.8,.2,1),
        box-shadow .18s cubic-bezier(.2,.8,.2,1),
        background-position .38s ease,
        outline-color .18s ease;
    will-change: transform;
}

.btn:hover:not(:disabled):not([aria-disabled="true"]) {
    color: #fff;
    transform: translateY(-4px) scale(1.02);
    background-position: 100% 0%, 100% 50%;
    text-shadow: 0 1px 0 rgba(6, 24, 41, .26);
    outline-color: rgba(255,255,255,.28);
    box-shadow:
        0 22px 36px rgba(9,48,83,.28),
        inset 0 1px 0 rgba(255,255,255,.22),
        inset 0 -10px 16px rgba(3, 19, 33, .14);
}

.btn:active:not(:disabled):not([aria-disabled="true"]) {
    transform: translateY(-2px) scale(1.01);
    outline-color: rgba(255,255,255,.18);
    box-shadow:
        0 12px 20px rgba(9,48,83,.20),
        inset 0 1px 0 rgba(255,255,255,.18),
        inset 0 -12px 18px rgba(3, 19, 33, .18);
}

.btn:focus-visible {
    outline: 3px solid rgba(63,137,194,.35);
    outline-offset: 2px;
}

.btn-secondary {
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.20) 0%, rgba(255,255,255,0) 60%),
        linear-gradient(180deg, #677d91, #54697d);
}
.btn-logout {
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.20) 0%, rgba(255,255,255,0) 60%),
        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-success {
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.20) 0%, rgba(255,255,255,0) 60%),
        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-success:hover {
    box-shadow:
        0 14px 22px rgba(7, 42, 27, .28),
        inset 0 1px 0 rgba(255,255,255,.22),
        inset 0 -10px 16px rgba(4, 20, 13, .16);
}

.btn-logout:hover {
    box-shadow:
        0 14px 22px rgba(7, 42, 27, .28),
        inset 0 1px 0 rgba(255,255,255,.22),
        inset 0 -10px 16px rgba(4, 20, 13, .16);
}

.btn-warning {
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.20) 0%, rgba(255,255,255,0) 60%),
        linear-gradient(180deg, #c08b2b, #8a5a13);
}

.btn-danger {
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 62%),
        linear-gradient(180deg, #9a2c3a, #861f2e);
}

.btn-action-view {
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 58%),
        linear-gradient(180deg, #2f91c5, #1d6ba8);
}

.btn-action-edit {
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 58%),
        linear-gradient(180deg, #2c8c7a, #1f6d61);
}

.btn-action-duplicate {
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 58%),
        linear-gradient(180deg, #5a62c7, #3d45a8);
}

.btn-action-publish {
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 58%),
        linear-gradient(180deg, #2d8b57, #1f6d3e);
}

.btn-action-unpublish {
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 58%),
        linear-gradient(180deg, #c08b2b, #8a5a13);
}

.btn-action-pin {
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 58%),
        linear-gradient(180deg, #7b4bc2, #5a2f90);
}

.announcement-actions .btn-icon .ui-icon {
    width: 19px;
    height: 19px;
}

@media (prefers-reduced-motion: reduce) {
    .btn {
        transition: none;
        will-change: auto;
    }

    .btn:hover,
    .btn:active {
        transform: none;
        background-position: 0% 0%, 0% 50%;
    }

    :where(button, input[type="button"], input[type="submit"], input[type="reset"], a[role="button"]):not(:where(.btn, .sidebar-backdrop, .enduser-account-backdrop)) {
        transition: none;
        will-change: auto;
    }

    :where(button, input[type="button"], input[type="submit"], input[type="reset"], a[role="button"]):not(:where(.btn, .sidebar-backdrop, .enduser-account-backdrop)):hover,
    :where(button, input[type="button"], input[type="submit"], input[type="reset"], a[role="button"]):not(:where(.btn, .sidebar-backdrop, .enduser-account-backdrop)):active {
        transform: none;
        filter: none;
        box-shadow: none;
    }
}

body.modal-open {
    overflow: hidden;
}

body.enduser-account-open {
    overflow: hidden;
}

.logout-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 18px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    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%);
    max-width: 100%;
    max-height: calc(100vh - 36px);
    max-height: calc(100dvh - 36px);
    overflow: auto;
    box-sizing: border-box;
    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;
    overflow-wrap: anywhere;
}

.logout-modal__dialog p {
    margin-bottom: 14px;
    color: #3b5d7c;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.logout-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.logout-modal__actions .btn {
    min-width: 110px;
}

@media (max-width: 900px) {
    .logout-modal {
        padding: 14px;
    }

    .logout-modal__dialog {
        width: min(500px, 100%);
        max-height: calc(100vh - 28px);
        max-height: calc(100dvh - 28px);
        border-radius: 16px;
        padding: 18px 16px 16px;
    }

    .logout-modal__dialog h2 {
        font-size: clamp(24px, 4.7vw, 30px);
    }
}

@media (max-width: 560px) {
    .logout-modal {
        padding: 10px;
    }

    .logout-modal__dialog {
        width: 100%;
        max-height: calc(100vh - 20px);
        max-height: calc(100dvh - 20px);
        border-radius: 14px;
        padding: 14px 12px 12px;
    }

    .logout-modal__icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
        margin-bottom: 8px;
    }

    .logout-modal__dialog h2 {
        font-size: clamp(22px, 8vw, 28px);
        margin-bottom: 4px;
    }

    .logout-modal__dialog p {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .logout-modal__actions {
        flex-direction: column;
        gap: 8px;
    }

    .logout-modal__actions .btn {
        width: 100%;
        min-height: 42px;
    }
}

form.inline { display: inline; }

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

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;
}

.md-editor {
    width: 100%;
    border: 1px solid #b9cde0;
    border-radius: 9px;
    padding: 9px 10px;
    font-family: inherit;
    background: #fcfeff;
    color: var(--ccs-text);
    min-height: 188px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.md-editor:focus {
    outline: none;
    border-color: var(--ccs-blue-600);
    box-shadow: 0 0 0 3px rgba(63,137,194,.16);
}

.md-editor ul {
    margin: 6px 0 6px 18px;
}

.md-editor blockquote {
    margin: 6px 0;
    padding-left: 12px;
    border-left: 3px solid rgba(15, 76, 129, .28);
    color: #224b70;
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    appearance: auto;
    -webkit-appearance: auto;
    accent-color: var(--ccs-blue-700);
}

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;
    box-sizing: border-box;
}

.enrollment-paper {
    width: min(210mm, 100%);
    margin: 0 auto;
    border: 1px solid #b4c9dc;
    border-radius: 10px;
    padding: 18px;
    background: #fff;
    box-shadow: 0 10px 20px rgba(12, 44, 76, .08);
    box-sizing: border-box;
}

.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;
    box-sizing: border-box;
}

.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-section-title--with-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    row-gap: 6px;
}

.enrollment-section-title--with-toggle > span {
    flex: 1 1 180px;
    min-width: 0;
}

.enrollment-section-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #274d70;
    flex: 1 1 240px;
    justify-content: flex-end;
    font-size: 11px;
    letter-spacing: .2px;
}

.enrollment-section-toggle span {
    white-space: normal;
    line-height: 1.2;
    text-align: right;
}

.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-inline-options.enrollment-inline-options--two {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.enrollment-inline-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.enrollment-inline-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid #c4d7e8;
    border-radius: 9px;
    padding: 8px 10px;
    background: #f8fbff;
}

.enrollment-inline-field--specify {
    margin-top: 10px;
}

.enrollment-inline-field > label {
    margin: 0;
    min-height: 28px;
    display: inline-flex;
    align-items: flex-end;
}

.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-inline-options .enrollment-radio-line > span {
    flex: 0 0 100%;
}

.enrollment-radio-line label {
    margin: 0;
    font-weight: 600;
    color: #274d70;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.enrollment-radio-line--checkbox label {
    width: 100%;
}

.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-checkbox-other {
    flex-wrap: wrap;
}

.enrollment-checkbox-specify {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.enrollment-checkbox-specify-label {
    font-weight: 700;
    color: #163f66;
}

.enrollment-checkbox-specify input[type="text"] {
    width: 190px;
    max-width: 100%;
    padding: 7px 10px;
}

.enrollment-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.enrollment-actions--center {
    justify-content: center;
}

.enrollment-form-body {
    display: block;
}

@media (max-width: 980px) {
    .enrollment-paper-wrap {
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .enrollment-paper {
        width: 100%;
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
        padding: 14px;
    }

    .enrollment-form-two,
    .enrollment-form-three,
    .enrollment-form-four,
    .enrollment-inline-options {
        grid-template-columns: 1fr;
    }

    .enrollment-inline-options.enrollment-inline-options--two {
        grid-template-columns: 1fr !important;
    }

    .enrollment-checkbox-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .enrollment-paper-wrap {
        padding: 0 8px;
    }

    .enrollment-paper {
        padding: 12px;
    }

    .enrollment-paper-head-formal {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .paper-head-right {
        text-align: center;
    }

    .paper-head-center h3 {
        font-size: 16px;
    }

    .paper-head-center p {
        font-size: 10px;
    }

    .enrollment-section-title--with-toggle {
        gap: 10px;
        align-items: flex-start;
    }

    .enrollment-section-toggle span {
        white-space: normal;
    }

    .enrollment-section-toggle {
        justify-content: flex-start;
        flex-basis: 100%;
    }

    .enrollment-section-toggle span {
        text-align: left;
    }

    .enrollment-checkbox-specify {
        flex: 0 0 100%;
    }

    .enrollment-checkbox-specify input[type="text"] {
        width: 100%;
    }
}

@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-inline-field,
    .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-post-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.feed-post-head h3,
.feed-post-head h4 {
    margin: 0;
    flex: 1 1 220px;
    min-width: 0;
}

.feed-meta {
    color: var(--ccs-muted);
    font-size: 13px;
    margin-bottom: 6px;
}

.feed-content {
    margin: 0 0 10px;
    overflow-wrap: anywhere;
    line-height: 1.6;
}

.feed-content > *:first-child { margin-top: 0; }
.feed-content > *:last-child { margin-bottom: 0; }

.feed-content--clamp {
    max-height: 8.4em;
    overflow: hidden;
    position: relative;
}

.feed-content--clamp.is-expanded {
    max-height: none;
}

.feed-readmore {
    border: 0;
    background: transparent;
    color: #0f4c81;
    font-weight: 800;
    padding: 0;
    margin: 0 0 10px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.feed-caption {
    margin-top: 6px;
    font-size: 12px;
    color: var(--ccs-muted);
}

.feed-preview .feed-content {
    border: 1px dashed var(--ccs-border);
    border-radius: 10px;
    padding: 10px;
    background: #fbfdff;
}

.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;
}

.chart-stack {
    display: grid;
    grid-template-columns: 1fr;
    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: 0;
        border: 1px solid #b8d0e5;
        border-radius: 14px;
        background: linear-gradient(180deg, #fbfdff, #eaf3fc);
        color: #124774;
        font: inherit;
        font-weight: 700;
        width: 44px;
        height: 44px;
        min-height: 44px;
        min-width: 44px;
        padding: 0;
        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:focus-visible {
        outline: 3px solid rgba(63,137,194,.35);
        outline-offset: 2px;
    }

    .sidebar-toggle__icon {
        width: 20px;
        height: 16px;
        display: inline-flex;
        flex-direction: column;
        justify-content: space-between;
        flex: 0 0 auto;
    }

    .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: minmax(0, 1fr) auto;
        grid-template-areas:
            "brand account"
            "menu menu";
        align-items: center;
        gap: 10px;
    }

    .enduser-brand {
        grid-area: brand;
    }

    .enduser-brand small {
        display: none;
    }

    .enduser-menu {
        grid-area: menu;
        justify-content: flex-start;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .enduser-link,
    .enduser-account-toggle {
        min-height: 42px;
        white-space: nowrap;
    }

    .enduser-account-toggle {
        grid-area: account;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: fit-content;
        min-height: 42px;
        padding: 9px 12px;
        border: 1px solid rgba(255,255,255,.28);
        border-radius: 999px;
        background: rgba(255,255,255,.06);
        color: #eaf4ff;
        box-shadow: 0 10px 16px rgba(6, 35, 62, .16);
        justify-self: end;
    }

    .enduser-account-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        border: 0;
        background: rgba(9, 28, 47, .5);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        z-index: 110;
        transition: opacity .2s ease, visibility .2s ease;
    }

    body.enduser-account-open .enduser-account-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .enduser-user {
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        width: min(84vw, 320px);
        height: 100dvh;
        min-height: 100vh;
        box-sizing: border-box;
        padding: calc(14px + env(safe-area-inset-top)) calc(14px + env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) 14px;
        border-left: 1px solid rgba(255,255,255,.18);
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
        background:
            radial-gradient(circle at 15% 5%, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 36%),
            linear-gradient(165deg, #0c3864 0%, #1d6ba8 60%, #3f89c2 100%);
        box-shadow: -12px 0 28px rgba(5, 27, 47, .38);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        transform: translateX(104%);
        transition: transform .22s ease;
        z-index: 1500;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        scrollbar-width: none;
    }

    .enduser-user::-webkit-scrollbar {
        width: 0;
        height: 0;
        display: none;
    }

    .enduser-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 10px;
        border: 1px solid rgba(255,255,255,.22);
        border-radius: 12px;
        background: rgba(255,255,255,.08);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .enduser-drawer-head strong {
        color: #ffffff;
        font-size: 14px;
        letter-spacing: .2px;
    }

    .enduser-drawer-close {
        border: 1px solid rgba(255,255,255,.3);
        border-radius: 999px;
        background: rgba(255,255,255,.16);
        color: #ffffff;
    }

    .enduser-drawer-close:hover {
        background: rgba(255,255,255,.26);
    }

    .enduser-user-meta {
        padding: 12px;
        border: 1px solid rgba(255,255,255,.22);
        border-radius: 12px;
        background: rgba(255,255,255,.08);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
    }

    .enduser-user-meta span {
        color: #eaf4ff;
        font-weight: 800;
        letter-spacing: .3px;
    }

    .enduser-user-meta strong {
        font-size: clamp(14px, 4.3vw, 16px);
        line-height: 1.2;
    }

    .enduser-user-meta small {
        letter-spacing: .6px;
        opacity: .95;
    }

    .enduser-user form {
        width: 100%;
        margin-top: auto;
        position: sticky;
        bottom: 0;
    }

    .enduser-user .btn-logout {
        width: 100%;
        justify-content: center;
        text-align: center;
        min-height: 44px;
    }

    body.enduser-account-open .enduser-user {
        transform: translateX(0);
    }

    .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 {
        width: 42px;
        height: 42px;
        min-height: 42px;
        min-width: 42px;
        padding: 0;
    }

    .sidebar-toggle__label {
        font-size: 13px;
    }

    .enduser-user .btn-logout {
        min-height: 38px;
        padding: 8px 12px;
    }

    .enduser-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .enduser-status-cta .btn {
        width: 100%;
    }

    .enrollment-status-card {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }

    .enrollment-status-message {
        font-size: 21px;
    }

    .enrollment-status-panel .panel-head .btn {
        width: 100%;
    }

    .panel-head .btn {
        width: 100%;
    }

    .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;
    }

    .announcement-bulk-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .announcement-bulk-bar__left,
    .announcement-bulk-bar__right {
        width: 100%;
    }

    .announcement-bulk-bar__left {
        justify-content: space-between;
    }

    .announcement-bulk-bar__right > select,
    .announcement-bulk-bar__right > .btn {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .table-wrap {
        margin-left: -2px;
        margin-right: -2px;
    }

    table {
        min-width: 620px;
    }

    th,
    td {
        padding: 7px;
        font-size: 13px;
    }

    table.enduser-table--stack {
        min-width: 0;
        border: 0;
        border-radius: 0;
    }

    table.enduser-table--stack thead {
        display: none;
    }

    table.enduser-table--stack tbody,
    table.enduser-table--stack tr,
    table.enduser-table--stack td {
        display: block;
        width: 100%;
    }

    table.enduser-table--stack tr {
        border: 1px solid var(--ccs-border);
        border-radius: 12px;
        padding: 8px 10px;
        margin-bottom: 10px;
        background: #fff;
        box-shadow: 0 4px 12px rgba(16,63,108,.06);
    }

    table.enduser-table--stack td {
        border: 0;
        border-bottom: 1px dashed #d6e4f2;
        padding: 6px 0;
        text-align: left;
    }

    table.enduser-table--stack td:last-child {
        border-bottom: 0;
        padding-top: 10px;
    }

    table.enduser-table--stack td::before {
        content: attr(data-label);
        display: block;
        font-size: 11px;
        font-weight: 700;
        color: #315777;
        margin-bottom: 2px;
        text-transform: uppercase;
        letter-spacing: .2px;
    }

    table.enduser-table--stack td[data-label="Action"] .btn {
        width: 100%;
    }

    .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: 560px) {
    .admin-portal .topbar-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 14px 12px 0;
    }

    .admin-portal .sidebar-toggle {
        width: auto;
    }

    .admin-portal .topbar-inner > div {
        width: 100%;
    }

    .admin-portal .page-title {
        font-size: clamp(22px, 7.5vw, 30px);
        line-height: 1.08;
    }

    .admin-portal .topbar .muted {
        font-size: 14px;
        line-height: 1.35;
    }
}

@media (max-width: 420px) {
    .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;
}

.btn-auth-secondary {
    background: #eef4fb;
    color: #0f4c81;
    border: 1px solid #c9d8e9;
    box-shadow: none;
}

.btn-auth-secondary:hover {
    background: #e6effa;
    border-color: #b6cbe3;
}

.auth-code-input {
    text-align: center;
    letter-spacing: .35em;
    font-weight: 800;
    font-size: 18px;
}

.auth-timer {
    margin-top: 10px;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--ccs-muted);
    text-align: center;
}

.auth-timer strong {
    color: #0f4c81;
    font-weight: 900;
    letter-spacing: .16em;
}

.auth-timer.is-expired strong {
    color: #b91c1c;
}

.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;
}

.notif:hover {
    transform: translateY(-2px);
    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 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--ccs-blue-900);
}

.bar-label::before {
    content: "";
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--bar-color-start, #2f78b7), var(--bar-color-end, #5ca5dd));
    box-shadow: 0 0 0 1px rgba(9, 52, 88, .2);
    flex-shrink: 0;
}

.bar-track {
    height: 14px;
    background: #e8f0f8;
    border-radius: 999px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--bar-color-start, #2f78b7), var(--bar-color-end, #5ca5dd));
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.08);
}

.bar-value {
    text-align: right;
    font-weight: 700;
}

.grade-bar-graph {
    margin-top: 4px;
    min-height: 240px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
    gap: 12px;
    align-items: end;
    padding: 28px 4px 2px;
}

.grade-bar-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: default;
    min-width: 0;
}

.grade-bar-item::before,
.grade-bar-item::after {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
}

.grade-bar-item::after {
    content: attr(data-tooltip);
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translate(-50%, 6px);
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .15px;
    color: #f7fbff;
    background: rgba(8, 28, 48, .96);
    border: 1px solid rgba(154, 192, 223, .32);
    border-radius: 10px;
    padding: 9px 11px;
    min-width: 150px;
    max-width: min(240px, 78vw);
    text-align: left;
    line-height: 1.25;
    white-space: pre-line;
    box-shadow: 0 10px 18px rgba(6, 23, 39, .28);
    z-index: 50;
}

.grade-bar-item::before {
    content: "";
    left: 50%;
    bottom: calc(100% + 4px);
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(8, 28, 48, .96);
    z-index: 4;
}

.grade-bar-item:hover::before,
.grade-bar-item:hover::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.grade-bar-value {
    font-weight: 800;
    color: #1e4f79;
    font-size: 14px;
}

.grade-bar-track {
    width: 100%;
    height: 168px;
    border-radius: 12px;
    padding: 8px;
    background: linear-gradient(180deg, #eff5fc 0%, #e1ebf7 100%);
    border: 1px solid #d0deec;
    display: flex;
    align-items: flex-end;
}

.grade-bar-fill {
    width: 100%;
    min-height: 6px;
    border-radius: 8px;
    background: linear-gradient(180deg, var(--bar-color-start, #2f78b7), var(--bar-color-end, #5ca5dd));
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.12), 0 6px 10px rgba(14, 68, 109, .14);
    transition: height .25s ease;
}

.grade-bar-label {
    width: 100%;
    text-align: center;
    font-weight: 700;
    color: #13466f;
    font-size: 13px;
    line-height: 1.2;
}

.pie-wrap {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 14px;
    align-items: center;
}

.pie-chart {
    width: min(210px, 72vw);
    height: auto;
    aspect-ratio: 1 / 1;
    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: #2f7ebd; }
.d2 { background: #d64b9a; }
.d3 { background: #2f9d67; }
.d4 { background: #9aa6b2; }

.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);
}

.announcement-quick-nav {
    flex-wrap: wrap;
    overflow-x: visible;
    margin-bottom: 12px;
}

.announcement-quick-nav .grade-quick-nav-link {
    gap: 8px;
}

.announcement-quick-nav-divider {
    width: 1px;
    height: 26px;
    background: var(--ccs-border);
    opacity: .9;
    align-self: center;
}

.announcement-quick-nav-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    font-size: 12px;
    background: #eef4fb;
    color: #0f4c81;
    font-weight: 900;
}

.grade-quick-nav-link.announcement-quick-nav-link--danger {
    color: #861f2e;
    border-color: rgba(154, 44, 58, .28);
    background: linear-gradient(180deg, #fff7f7 0%, #fdeeee 100%);
}

.grade-quick-nav-link.announcement-quick-nav-link--danger:hover {
    color: #861f2e;
    border-color: rgba(154, 44, 58, .34);
    box-shadow: 0 14px 20px rgba(86, 31, 46, .10);
}

.grade-quick-nav-link.announcement-quick-nav-link--danger.is-active {
    color: #861f2e;
    border-color: rgba(154, 44, 58, .34);
    background: linear-gradient(180deg, #fff7f7 0%, #fdeeee 100%);
    box-shadow: 0 10px 18px rgba(86, 31, 46, .08);
}

.announcement-quick-nav-link--danger .announcement-quick-nav-count {
    background: #fdeeee;
    color: #861f2e;
}

.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);
}

/* Admin + Super Admin table and grade navigation refinement */
.admin-portal .table-wrap {
    margin-top: 8px;
    border: 1px solid #bed2e6;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 10px 22px rgba(15, 63, 107, .08);
    overflow: auto;
}

.admin-portal .table-wrap > table {
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 760px;
}

.admin-portal .table-wrap th,
.admin-portal .table-wrap td {
    border-left: 1px solid #d5e3f0;
    border-right: 0;
    border-top: 0;
    border-bottom: 1px solid #d2e1ef;
}

.admin-portal .table-wrap tr > *:first-child {
    border-left: 0;
}

.admin-portal .table-wrap thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: linear-gradient(180deg, #edf5fe 0%, #e2eef9 100%);
    color: #114a78;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .35px;
    white-space: nowrap;
    box-shadow: inset 0 -1px 0 #c7daec;
}

.admin-portal .table-wrap tbody tr {
    transition: transform .16s ease, background-color .16s ease;
}

.admin-portal .table-wrap tbody tr:nth-child(even) td {
    background: #f8fbff;
}

.admin-portal .table-wrap tbody tr:hover td {
    background: #edf6ff;
}

.admin-portal .table-wrap tbody tr:last-child td {
    border-bottom: 0;
}

.admin-portal .table-wrap tbody tr:hover {
    transform: translateX(1px);
}

.admin-portal .table-wrap .badge {
    min-width: 90px;
    text-align: center;
}

.admin-portal td.action-row {
    min-width: 250px;
}

.admin-portal .action-row {
    align-items: flex-start;
    gap: 6px;
}

.admin-portal .action-row .btn {
    min-height: 36px;
}

.admin-portal .action-row form {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.admin-portal .action-row form input,
.admin-portal .action-row form select {
    min-width: 170px;
    max-width: 220px;
}

.admin-portal .grade-quick-nav-panel {
    border: 1px solid #bed4e8;
    background:
        radial-gradient(circle at 8% -20%, rgba(114, 171, 219, .24), rgba(114,171,219,0) 38%),
        linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%);
}

.admin-portal .grade-quick-nav {
    gap: 10px;
    padding: 4px 2px 8px;
}

.admin-portal .grade-quick-nav-link {
    position: relative;
    overflow: hidden;
    min-height: 39px;
    padding: 8px 14px;
    border-radius: 12px;
    border-color: #b4cde4;
    background: linear-gradient(180deg, #ffffff 0%, #edf5fe 100%);
    color: #174c79;
    box-shadow: 0 4px 10px rgba(19, 71, 116, .08);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}

.admin-portal .grade-quick-nav-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0) 20%, rgba(255,255,255,.55) 50%, rgba(255,255,255,0) 80%);
    transform: translateX(-130%);
    transition: transform .45s ease;
    pointer-events: none;
}

.admin-portal .grade-quick-nav-link:hover {
    transform: translateY(-2px);
    border-color: #8fb5d6;
    box-shadow: 0 12px 20px rgba(13, 62, 103, .2);
}

.admin-portal .grade-quick-nav-link:hover::after {
    transform: translateX(130%);
}

.admin-portal .grade-quick-nav-link:focus-visible {
    outline: none;
    border-color: #2f79b8;
    box-shadow: 0 0 0 3px rgba(47,121,184,.2), 0 10px 18px rgba(13, 62, 103, .16);
}

.admin-portal .grade-quick-nav-link.is-active {
    color: #ffffff;
    border-color: #236ea9;
    background: linear-gradient(180deg, #2f79b8 0%, #16588e 100%);
    box-shadow: 0 12px 20px rgba(13, 62, 103, .23);
    animation: grade-nav-pop .26s ease;
}

.admin-portal .grade-mobile-select {
    margin-top: 8px;
    padding: 10px;
    border: 1px dashed #b8cee2;
    border-radius: 12px;
    background: #f4f9ff;
}

.admin-portal .grade-mobile-select label {
    margin-top: 0;
}

.admin-portal .table-wrap-wide > table.table-wide {
    min-width: 960px;
}

.admin-portal .table-wrap-wide td,
.admin-portal .table-wrap-wide th {
    padding: 10px 12px;
}

.admin-portal .table-wrap-wide td.action-row {
    min-width: 290px;
}

.admin-portal .table-wrap-compact {
    border-radius: 12px;
}

.admin-portal .table-wrap-compact > table.table-compact {
    min-width: 640px;
}

.admin-portal .table-wrap-compact th {
    font-size: 11px;
    letter-spacing: .28px;
}

.admin-portal .table-wrap-compact td,
.admin-portal .table-wrap-compact th {
    padding: 7px 9px;
}

.admin-portal .table-wrap-compact .badge {
    min-width: 78px;
    padding: 3px 8px;
    font-size: 11px;
}

.admin-portal .grade-quick-nav-panel--priority {
    border: 1px solid #a9c7e2;
    box-shadow: 0 12px 22px rgba(14, 62, 103, .12);
}

.admin-portal .grade-quick-nav-panel--priority .panel-head h3 {
    color: #114977;
}

.admin-portal .grade-quick-nav-panel--priority .grade-quick-nav-link {
    min-width: 108px;
    font-size: 13px;
    font-weight: 800;
}

@keyframes grade-nav-pop {
    0% {
        transform: scale(.96);
    }
    60% {
        transform: scale(1.03);
    }
    100% {
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .admin-portal .table-wrap tbody tr,
    .admin-portal .grade-quick-nav-link,
    .admin-portal .grade-quick-nav-link::after,
    .admin-portal .grade-quick-nav-link.is-active {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

@media (max-width: 1000px) {
    .admin-portal .table-wrap {
        border-radius: 12px;
    }

    .admin-portal .table-wrap > table {
        min-width: 690px;
    }

    .admin-portal .table-wrap th,
    .admin-portal .table-wrap td {
        font-size: 13px;
    }

    .admin-portal td.action-row {
        min-width: 220px;
    }

    .admin-portal .table-wrap-wide > table.table-wide {
        min-width: 840px;
    }

    .admin-portal .table-wrap-wide td.action-row {
        min-width: 250px;
    }
}

@media (max-width: 760px) {
    .admin-portal .table-wrap {
        margin-left: -2px;
        margin-right: -2px;
    }

    .admin-portal .table-wrap > table {
        min-width: 620px;
    }

    .admin-portal .table-wrap-wide > table.table-wide {
        min-width: 700px;
    }

    .admin-portal .table-wrap-compact > table.table-compact {
        min-width: 560px;
    }

    .admin-portal .grade-quick-nav {
        gap: 8px;
        padding: 2px 1px 8px;
    }

    .admin-portal .grade-quick-nav-link {
        min-height: 38px;
        padding: 9px 12px;
        font-size: 12px;
    }
}

@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;
    }

    .grade-bar-graph {
        grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
        gap: 10px;
        min-height: 220px;
        padding-top: 22px;
    }

    .grade-bar-track {
        height: 150px;
    }
}

@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:not(:disabled):not([aria-disabled="true"]) {
    transform: translateY(-5px) scale(1.03);
    box-shadow:
        0 24px 36px rgba(10, 52, 91, 0.28),
        0 0 0 3px rgba(63,137,194,.12);
}

.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-shell-card--welcome .btn-auth.btn-auth-secondary {
    color: #fff;
}

.auth-foot-link {
    margin-top: 6px;
    text-align: center;
    font-size: 13px;
}

.auth-foot-link a {
    color: #285f8f;
    text-decoration: none;
}

.auth-foot-link .auth-link-button {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: #285f8f;
    cursor: pointer;
    text-decoration: none;
}

.auth-foot-link .auth-link-button:hover {
    text-decoration: underline;
}

.auth-foot-link .auth-link-button:focus-visible {
    outline: 3px solid rgba(63,137,194,.35);
    outline-offset: 3px;
    border-radius: 8px;
}

.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;
    }
}
