@font-face {
    font-family: Evolventa;
    src: url("../fonts/Evolventa-Regular.woff") format("woff");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: Evolventa;
    src: url("../fonts/Evolventa-Bold.woff") format("woff");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: "Bebas Neue";
    src: url("../fonts/BebasNeue-Bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}
* {
    box-sizing: border-box;
}
:root {
    --brand: #102fa1;
    --navy: #082567;
    --pale: #d5e4f4;
    --accent: #0085ff;
    --danger: #a91917;
    --ink: #102344;
    --muted: #566584;
    --line: #d8e0ed;
    --bg: #f3f5f8;
    --radius: 14px;
}
body {
    margin: 0;
    background: var(--bg);
    font-family: Evolventa, Arial, sans-serif;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.6;
}
a {
    color: inherit;
    text-decoration: none;
}
button,
input,
select {
    font: inherit;
}
button,
a,
input,
select {
    outline-offset: 4px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
.table-scroll:focus-visible {
    outline: 3px solid var(--accent);
}
h1,
h2,
h3,
p {
    margin-top: 0;
}
h1 {
    font-family: "Bebas Neue", Evolventa, Arial, sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 1.06;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: var(--navy);
}
h2 {
    font-size: 19px;
    line-height: 1.4;
    letter-spacing: -0.3px;
}
h3 {
    font-size: 16px;
    line-height: 1.5;
}
small {
    font-size: 11px;
}
p {
    margin-bottom: 16px;
}
.icon {
    display: block;
    width: 22px;
    height: 22px;
    flex: none;
}
.muted,
.context {
    color: var(--muted);
}
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 1.6px;
    font-size: 10px;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 13px;
}
.sidebar {
    width: 274px;
    position: fixed;
    inset: 0 auto 0 0;
    background: var(--navy);
    color: white;
    padding: 30px 22px;
    display: flex;
    flex-direction: column;
}
.brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}
.brand picture {
    display: block;
    line-height: 0;
}
.brand img {
    display: block;
    max-width: 100%;
    width: 214px;
    height: auto;
}
.brand-product {
    display: block;
    max-width: 230px;
    border-top: 1px solid #ffffff38;
    padding-top: 15px;
    font-size: 11px;
    line-height: 1.7;
    letter-spacing: 0.25px;
    color: #e7efff;
}
.nav-caption {
    text-transform: uppercase;
    letter-spacing: 1.4px;
    font-size: 9px;
    color: #b6c9ed;
    margin: 34px 10px 14px;
}
.nav-link {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 12px;
    margin: 6px 0;
    padding: 13px 12px;
    border-radius: 8px;
    color: #d4e1f9;
    line-height: 1.7;
}
.nav-link .icon {
    width: 20px;
    height: 20px;
}
.nav-link:hover {
    background: #ffffff10;
    color: white;
}
.nav-link.active {
    background: var(--brand);
    color: white;
    box-shadow: inset 3px 0 var(--pale);
}
.sidebar-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 10px;
    color: #d2e0f7;
    margin-top: auto;
    padding: 22px 0 0;
    border-top: 1px solid #ffffff24;
}
.sidebar-note .icon {
    width: 18px;
    height: 18px;
}
.sidebar-note small {
    display: block;
    color: #b5c7e8;
    font-size: 9px;
    margin-top: 5px;
}
.status-dot {
    width: 6px;
    height: 6px;
    display: inline-block;
    border-radius: 50%;
    background: var(--brand);
    margin-right: 5px;
}
.page {
    margin-left: 274px;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}
.topbar {
    background: white;
    min-height: 84px;
    border-bottom: 1px solid var(--line);
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.context {
    font-size: 11px;
}
.context span {
    margin: 0 10px;
    color: #97a8c4;
}
.account {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}
.account form {
    margin-left: 10px;
}
.avatar {
    width: 34px;
    height: 34px;
    background: var(--pale);
    color: var(--brand);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
}
main {
    padding: 36px 40px 48px;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    flex: 1;
}
.heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}
.heading-row p:last-child {
    margin: 0;
}
.badge {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 6px 11px;
    border-radius: 6px;
    background: var(--bg);
    font-size: 10px;
    font-weight: 700;
}
.badge.success {
    background: #e8eefb;
    color: var(--brand);
}
.panel {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
}
.welcome-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    padding: 32px 34px;
    background: var(--brand);
    color: white;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 32px;
}
.welcome-panel .eyebrow {
    color: var(--pale);
}
.welcome-panel h2 {
    font-family: "Bebas Neue", Evolventa, sans-serif;
    font-size: 37px;
    line-height: 1.12;
    letter-spacing: 0.4px;
    margin-bottom: 16px;
}
.welcome-panel p:last-child {
    max-width: 560px;
    color: #e4ecff;
    font-size: 13px;
    margin: 0;
}
.welcome-art {
    display: grid;
    place-items: center;
    flex: none;
    width: 112px;
    height: 112px;
    border: 1px solid #ffffff40;
    border-radius: 22px;
    transform: rotate(-6deg);
    background: #ffffff09;
}
.welcome-art .icon {
    width: 66px;
    height: 66px;
    stroke-width: 1.1;
    transform: rotate(6deg);
    color: #d5e4f4;
}
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 18px;
}
.section-heading h2 {
    font-size: 17px;
    margin: 0;
}
.section-heading > span {
    font-size: 11px;
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.section-card {
    position: relative;
    transition:
        border-color 0.15s,
        transform 0.15s,
        box-shadow 0.15s;
}
.section-card:hover {
    border-color: #8fa4db;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px #0825670a;
}
.card-icon {
    display: grid;
    place-items: center;
    background: #edf2fc;
    color: var(--brand);
    width: 48px;
    height: 48px;
    border-radius: 10px;
    margin-bottom: 22px;
}
.card-icon .icon {
    width: 26px;
    height: 26px;
}
.section-card h3 {
    margin-bottom: 9px;
}
.section-card p {
    font-size: 12px;
    color: var(--muted);
}
.card-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 26px;
}
.card-link .icon {
    width: 18px;
    height: 18px;
}
.bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 24px;
}
.bottom-grid h2 {
    font-size: 16px;
}
.bottom-grid p {
    font-size: 12px;
}
.role-list > div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    padding-top: 15px;
    border-top: 1px solid var(--line);
}
.role-list span {
    color: var(--muted);
}
.inline-link {
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.inline-link .icon {
    width: 17px;
    height: 17px;
}
footer {
    padding: 20px 40px;
    color: var(--muted);
    font-size: 10px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--line);
}
.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    min-height: 48px;
    border-radius: 8px;
    padding: 13px 20px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s;
}
.button .icon {
    width: 20px;
    height: 20px;
}
.primary {
    background: var(--brand);
    color: white;
}
.primary:hover {
    background: var(--navy);
}
.secondary {
    border-color: var(--line);
    background: white;
    color: var(--brand);
}
.secondary:hover {
    background: var(--bg);
}
.wide {
    display: flex;
    width: 100%;
    justify-content: space-between;
}
.text-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 0;
    padding: 5px 0;
    color: var(--brand);
    font-size: 11px;
    cursor: pointer;
}
.text-button:hover {
    text-decoration: underline;
}
.logout-button .icon {
    width: 17px;
    height: 17px;
}
.danger {
    color: var(--danger);
}
.notice,
.error-notice {
    padding: 14px 18px;
    margin-bottom: 24px;
    border-radius: 8px;
    background: #eaf0fc;
    border: 1px solid var(--pale);
    font-size: 12px;
}
.error-notice {
    background: #fff1f0;
    border-color: #ebc9c9;
    color: #801310;
}
.error-notice ul {
    margin: 8px 0 0;
}
.guest {
    background: white;
}
.guest .page {
    margin: 0;
}
.guest .topbar {
    padding: 24px 7vw;
    min-height: 116px;
}
.guest-brand {
    flex-direction: row;
    align-items: center;
    gap: 28px;
}
.guest-brand img {
    width: 220px;
}
.guest-brand .brand-product {
    color: var(--navy);
    border-top: 0;
    border-left: 1px solid var(--line);
    padding: 5px 0 5px 26px;
    font-size: 11px;
    max-width: 190px;
}
.guest main {
    max-width: 1290px;
    padding: 70px 48px 88px;
}
.guest footer {
    padding-left: 7vw;
    padding-right: 7vw;
}
.login-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 74px;
    align-items: center;
    min-height: 540px;
}
.login-intro h1 {
    font-size: clamp(50px, 4.4vw, 72px);
    line-height: 1.05;
    letter-spacing: 0.2px;
    margin: 20px 0 26px;
    color: var(--ink);
}
.login-intro h1 span {
    color: var(--brand);
}
.lead {
    font-size: 15px;
    color: var(--muted);
    max-width: 490px;
    line-height: 1.9;
}
.intro-points {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 30px;
    font-size: 12px;
}
.intro-points span {
    display: flex;
    align-items: center;
    gap: 14px;
}
.intro-points b {
    font-family: "Bebas Neue", Evolventa, sans-serif;
    font-size: 24px;
    line-height: 1;
    color: var(--brand);
    width: 32px;
}
.intro-points strong {
    font-weight: 400;
    color: var(--ink);
}
.login-panel {
    padding: 36px;
    background: var(--bg);
    border-color: transparent;
    border-top: 4px solid var(--brand);
    box-shadow: none;
}
.lock-symbol {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: var(--pale);
    color: var(--brand);
    margin-bottom: 24px;
}
.lock-symbol .icon {
    width: 27px;
    height: 27px;
}
.login-panel h2 {
    font-size: 22px;
    color: var(--navy);
}
.login-panel > p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
    margin-bottom: 26px;
}
.access-note {
    border-top: 1px solid var(--line);
    margin-top: 28px;
    padding-top: 24px;
    font-size: 11px;
}
.access-note strong {
    font-size: 12px;
}
.access-note p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.9;
    margin: 9px 0 0;
}
.login-panel .dev-label {
    font-size: 9px;
    line-height: 1.8;
    color: var(--muted);
    background: #e8edf4;
    border-radius: 5px;
    padding: 8px 10px;
    margin: 20px 0 0;
}
.empty-state {
    max-width: 850px;
    text-align: center;
    padding: 70px 40px;
    margin-top: 30px;
}
.empty-state > span:first-child {
    display: block;
    font-size: 40px;
    color: var(--brand);
    margin-bottom: 20px;
}
.empty-state > span.eyebrow {
    font-size: 11px;
}
.empty-state p {
    max-width: 560px;
    margin: 0 auto 28px;
    color: var(--muted);
    font-size: 13px;
}
.table-scroll {
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 12px;
}
th {
    color: var(--navy);
    font-weight: 700;
    background: var(--bg);
}
th,
td {
    padding: 16px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
td code {
    display: block;
    max-width: 280px;
    overflow-wrap: anywhere;
    font-size: 10px;
    margin: 5px 0;
}
td small {
    display: block;
    font-size: 10px;
    max-width: 280px;
    overflow-wrap: anywhere;
}
.admission-form {
    margin-top: 24px;
}
.admission-form p {
    font-size: 12px;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 18px;
}
input,
select {
    display: block;
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #bbc9df;
    background: white;
    color: var(--ink);
    border-radius: 7px;
    margin-top: 7px;
    font-size: 13px;
}
input[readonly] {
    background: var(--bg);
    color: var(--muted);
}
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    font-size: 11px;
}
.pagination a {
    color: var(--brand);
    font-weight: 700;
}
.pagination [aria-disabled] {
    color: var(--muted);
}
.skip-link {
    position: absolute;
    top: -80px;
    left: 20px;
    padding: 10px;
    background: white;
    z-index: 10;
}
.skip-link:focus {
    top: 10px;
}
@media (min-width: 1500px) {
    .card-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (max-width: 1100px) {
    .sidebar {
        width: 230px;
        padding: 24px 16px;
    }
    .sidebar .brand img {
        width: 196px;
    }
    .page {
        margin-left: 230px;
    }
    .topbar {
        padding: 18px 24px;
    }
    main {
        padding: 28px 24px;
    }
    footer {
        padding: 18px 24px;
    }
    .login-grid {
        gap: 32px;
    }
    .login-intro h1 {
        font-size: 54px;
    }
    .guest main {
        padding: 50px 32px 70px;
    }
    .account > span:not(.avatar) {
        max-width: 135px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .welcome-art {
        width: 82px;
        height: 82px;
    }
    .welcome-art .icon {
        width: 48px;
        height: 48px;
    }
    .guest .topbar .context {
        display: none;
    }
    .welcome-panel {
        padding: 28px;
    }
    .welcome-panel h2 {
        font-size: 32px;
    }
}
@media (max-width: 760px) {
    .sidebar {
        position: static;
        width: auto;
        padding: 18px;
    }
    .sidebar .brand {
        flex-direction: row;
        align-items: center;
        gap: 17px;
    }
    .sidebar .brand img {
        height: 58px;
        width: auto;
        max-width: none;
    }
    .sidebar .brand-product {
        border: 0;
        padding: 0;
        font-size: 12px;
        max-width: 210px;
        line-height: 1.7;
    }
    .nav-caption,
    .sidebar-note {
        display: none;
    }
    .sidebar nav {
        display: flex;
        overflow-x: auto;
        gap: 6px;
        margin-top: 20px;
        padding-bottom: 4px;
    }
    .nav-link {
        flex: none;
        font-size: 10px;
        margin: 0;
        padding: 10px;
        gap: 8px;
    }
    .nav-link .icon {
        width: 18px;
        height: 18px;
    }
    .nav-link.active {
        box-shadow: inset 0 -2px var(--pale);
    }
    .page {
        margin-left: 0;
    }
    .topbar {
        padding: 14px 18px;
        min-height: 64px;
    }
    .topbar .context {
        display: none;
    }
    .account {
        width: 100%;
        justify-content: flex-end;
        font-size: 12px;
        gap: 8px;
    }
    .account > span:not(.avatar) {
        max-width: 205px;
    }
    .account form {
        margin-left: 6px;
    }
    .avatar {
        width: 30px;
        height: 30px;
    }
    .heading-row {
        display: block;
    }
    .heading-row > .badge {
        margin-top: 18px;
    }
    main {
        padding: 25px 18px 36px;
    }
    h1 {
        font-size: 40px;
    }
    .welcome-panel {
        padding: 24px;
        gap: 0;
    }
    .welcome-panel h2 {
        font-size: 32px;
    }
    .welcome-panel p {
        font-size: 11px;
    }
    .welcome-art {
        display: none;
    }
    .card-grid,
    .bottom-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }
    .section-heading > span {
        display: none;
    }
    .panel {
        padding: 23px;
    }
    .card-icon {
        margin-bottom: 22px;
    }
    .section-card h3 {
        font-size: 17px;
    }
    .section-card p {
        font-size: 12px;
    }
    .guest .topbar {
        padding: 20px;
        min-height: 98px;
    }
    .guest-brand {
        gap: 18px;
    }
    .guest-brand img {
        width: auto;
        height: 58px;
        max-width: none;
    }
    .guest-brand .brand-product {
        border: 0;
        padding: 0;
        max-width: 210px;
        font-size: 11px;
    }
    .guest main {
        padding: 36px 20px 45px;
    }
    .login-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        min-height: 0;
    }
    .login-intro h1 {
        font-size: 48px;
        margin: 18px 0 22px;
    }
    .login-intro .eyebrow {
        font-size: 9px;
        line-height: 1.8;
        letter-spacing: 1.1px;
        max-width: 290px;
    }
    .login-intro .lead {
        font-size: 13px;
        line-height: 1.9;
        margin-bottom: 0;
    }
    .intro-points {
        display: none;
    }
    .login-panel {
        padding: 26px 24px;
    }
    .login-panel h2 {
        font-size: 21px;
    }
    .login-panel > p {
        font-size: 13px;
    }
    .empty-state {
        padding: 44px 22px;
    }
    .empty-state h1 {
        font-size: 35px;
    }
    footer {
        padding: 18px;
        font-size: 10px;
    }
    footer span {
        display: none;
    }
    table {
        min-width: 640px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .section-card,
    .button {
        transition: none;
    }
    .section-card:hover {
        transform: none;
    }
}
