:root {
    color-scheme: light;
    --primary-color: #723300;
    --primary-hover: #1d4036;
    --accent-color: #bd9852;
    --background-color: #f5f1e7;
    --surface-color: #fffefa;
    --text-color: #26342e;
    --border-color: #d7c8a5;
    --font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
    --body-font-family: "Segoe UI", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    padding-bottom: 7rem;
    color: var(--text-color);
    font-family: var(--body-font-family);
    overflow-x: hidden;
    background: var(--background-color);
}
body.admin-login-page {
    min-height: 0;
}
.footer {
    position: fixed;
    z-index: 1001;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    color: #ff6600;
    background-color: #000000fa;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -8px 24px rgba(38, 52, 46, .08);
    font-size: 14px;
    line-height: 1.3;
    text-align: center;
    margin-top: auto;
}
.footer p {
    margin: 0;
}
.footer span {
    display: block;
    margin-top: 5px;
}
@media (max-width: 600px) {
    body {
        padding-bottom: 7rem;
    }

    .footer {
        padding: 14px 12px;
        font-size: clamp(.75rem, 2.5vw, .875rem);
    }
}
.header-inner, .section-wrap, .footer-inner, .footer-bottom { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.admin-site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 4px 0 0;
    background: rgba(255, 254, 250, .97);
    color: var(--text-color);
    border-bottom: 1px solid rgba(40, 84, 71, .15);
    box-shadow: 0 8px 24px rgba(38, 52, 46, .08);
}
.admin-site-header .header-inner { min-height: 64px; display: flex; align-items: center; gap: 16px; }
.admin-site-header .site-logo { flex: 0 0 54px; width: 54px; height: 54px; object-fit: contain; padding: 3px; background: #fff; border: 1px solid var(--border-color); border-radius: 50%; }
.header-inner p { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 0 2px !important; }
.brand-mark { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border: 1px solid var(--accent-color); border-radius: 50%; color: var(--primary-color); font: 700 24px/1 var(--font-family); }
.brand-name { color: var(--text-color); font: 700 clamp(17px, 2vw, 25px)/1.2 var(--font-family); }
.user-details { display: flex; justify-content: space-between; gap: 16px; width: min(1160px, calc(100% - 64px)); margin: 0 auto; padding: 4px 0; color: #5e6b62; font-size: 12px; }
.user-details label { font-weight: 600; }
.user-details span { color: var(--primary-color); font-weight: 800; }
.primary-navigation { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; width: min(1160px, calc(100% - 64px)); margin: 0 auto; padding: 5px 0 7px; border-top: 1px solid rgba(40, 84, 71, .12); }
.primary-navigation a { padding: 7px 14px; color: var(--text-color); border-radius: 999px; text-decoration: none; font-size: 13px; font-weight: 700; transition: color 160ms ease, background-color 160ms ease; }
.primary-navigation a.active { color: #fff; background: var(--primary-color); }
.primary-navigation a:hover:not(.active) { color: var(--primary-color); background: rgba(40, 84, 71, .08); }
.primary-navigation a:focus-visible { outline: 3px solid rgba(189, 152, 82, .55); outline-offset: 2px; }
.admin-login-section {
    position: relative;
    display: grid;
    min-height: 0;
    place-items: center;
    align-content: center;
    gap: 16px;
    padding: 28px 20px;
}

.admin-login-section .error-message {
    position: relative;
    top: auto;
    left: auto;
    width: min(420px, 100%);
    margin: 0;
    padding: 14px 18px;
    color: #7f2620;
    background: #fff0ed;
    border: 1px solid #e8b8b0;
    border-left: 4px solid #b33a30;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(90, 38, 30, .08);
    line-height: 1.5;
    text-align: left;
    overflow-wrap: anywhere;
    transform: none;
}

.admin-login-section form {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 48px 44px 42px;
    overflow: hidden;
    background-color: var(--surface-color);
    border: 1px solid rgba(23, 58, 53, 0.12);
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(37, 43, 39, 0.12), 0 3px 10px rgba(37, 43, 39, 0.05);
}

.admin-login-section form::before {
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    content: "";
}

.admin-login-section h1 {
    margin: 0 0 32px;
    color: var(--primary-color);
    font-family: var(--font-family);
    font-size: clamp(2rem, 7vw, 2.45rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    text-align: center;
}

.admin-login-section label {
    display: block;
    margin: 0 0 8px;
    color: #414944;
    font-size: 0.9rem;
    font-weight: 600;
}

.admin-login-section br {
    display: none;
}
.marksheet-page {
    background:
        radial-gradient(ellipse at 8% 12%, rgba(189, 152, 82, .16), transparent 28rem),
        linear-gradient(145deg, #f8f7f2, #edf2ed);
}

.marksheet-page .marksheet {
    width: min(1320px, calc(100% - 48px));
    margin: clamp(28px, 5vw, 56px) auto;
}

.marksheet-page .marksheet > h1 {
    margin: 0 0 24px;
    color: #4b0138;
    font: 700 clamp(2rem, 4vw, 2.8rem)/1.15 var(--font-family);
    letter-spacing: -.025em;
}

.marksheet-page .admission_section {
    width: 100%;
    margin: 0;
}

.marksheet-page .admission_section form {
    gap: 24px;
    padding: clamp(20px, 3.5vw, 40px);
    border-top-color: #4b0138;
    border-radius: 18px;
    box-shadow: 0 20px 55px rgba(37, 43, 39, .1), 0 3px 10px rgba(37, 43, 39, .04);
}

.marksheet-table-wrap {
    width: 100%;
    overflow: auto hidden;
    background: #fffefa;
    border: 1px solid #e4e6dc;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(36, 61, 49, .08);
    -webkit-overflow-scrolling: touch;
    scrollbar-color: #a4b7a9 #edf0e9;
    scrollbar-width: thin;
}

.marksheet-table-wrap:focus-visible {
    outline: 3px solid rgba(189, 152, 82, .6);
    outline-offset: 3px;
}

.marksheet-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
    border-spacing: 0px;
    text-align: left;
    border-color: rgb(0, 0, 0);

}

.marksheet-table caption {
    padding: 17px 22px;
    color: #4b2201;
    background: #fffefa;
    font: 700 1rem/1.4 var(--font-family);
    text-align: left;
}

.marksheet-table th,
.marksheet-table td {
    padding:6px 16px;
    border-right: 1px solid #e8e9e1;
    border-bottom: 1px solid #e8e9e1;
    vertical-align: middle;
    border-color: rgb(0, 0, 0);
}

.marksheet-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    color: #fffefa;
    background: #294b40;
    border-color: #ffffff;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
}

.marksheet-table thead th:first-child {
    padding-left: 22px;
    text-align: center;
}

.marksheet-table tbody tr:nth-child(4n + 1) td,
.marksheet-table tbody tr:nth-child(4n + 2) td {
    background: #f7f8f3;
}


.marksheet-table tbody tr td.marksheet-subject {
    width:20%;
    color: #4b1801;
    background: #f1ead8;
    font-weight: 700;
}


.marksheet-table tbody tr td:nth-child(2),
.marksheet-table tbody tr:nth-child(4n + 2) td:first-child {
    min-width: 105px;
    color: #5f6b63;
    font-size: .9rem;
    font-weight: 600;
}

.marksheet-table th:last-child,
.marksheet-table td:last-child {
    border-right: 0;
}

.marksheet-table tbody tr:last-child td {
    border-bottom: 0;
}

.marksheet-table input[type="text"] {
    width: 100%;
    min-width: 94px;
    min-height: 40px;
    padding: 2px 12px;
    color: #26342e;
    font: 600 .95rem var(--body-font-family);
    font-variant-numeric: tabular-nums;
    text-align: center;
    background: #fff;
    border: 1px solid #999e99;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(38, 52, 46, .04);
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.marksheet-table input[type="text"]:hover {
    border-color: #546452;
}

.marksheet-table input[type="text"]:focus {
    background: #fffefa;
    border-color: #bd9852;
    outline: none;
    box-shadow: 0 0 0 3px rgba(189, 152, 82, .2);
}

.marksheet-page .marksheet-student-selector {
    display: grid;
    grid-template-columns: max-content minmax(130px, 1fr) max-content minmax(130px, 1fr) max-content minmax(130px, 1fr) max-content minmax(130px, 1fr);
    gap: 12px 16px;
    align-items: center;
    margin-bottom: 24px;
}

.marksheet-page .marksheet-student-selector label {
    margin: 0;
    color: #4b2201;
    font-size: .9rem;
    font-weight: 600;
    
}

.marksheet-page .marksheet-student-selector select,
.marksheet-page .marksheet-student-selector input[type="text"] {
    width: 100%;
    min-width: 0;
    min-height: 20px;
    padding: 10px 12px;
    color: #26342e;
    background: #fffefa;
    border: 1px solid #999e99;
    border-radius: 6px;
    font: 600 .95rem var(--body-font-family);
}

.marksheet-page .marksheet-student-selector select:focus,
.marksheet-page .marksheet-student-selector input[type="text"]:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(189, 152, 82, .18);
}

.marksheet-page .marksheet-student-selector button {
    grid-column: 1 / -1;
    justify-self: end;
    min-height: 42px;
    padding: 10px 20px;
    color: #fffaf0;
    background: #642001;
    border: 1px solid #4d3621;
    border-radius: 6px;
    font: 700 .95rem var(--font-family);
    cursor: pointer;
}

.marksheet-page .admission_section form:not(.marksheet-student-selector) {
    display: block;
}

.marksheet-page .admission_section form:not(.marksheet-student-selector) > p {
    margin: 0 0 20px;
}

.marksheet-page .admission_section form:not(.marksheet-student-selector) > button {
    display: block;
    margin: 20px 0 0 auto;
}

@media (max-width: 700px) {
    .marksheet-page .marksheet {
        width: calc(100% - 28px);
        margin: 28px auto;
    }

    .marksheet-page .marksheet-student-selector {
        grid-template-columns: max-content minmax(0, 1fr);
        gap: 12px;
    }

    .marksheet-page .marksheet-student-selector button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .marksheet-page .admission_section form {
        gap: 18px;
        padding: 18px 14px;
    }

    .marksheet-table {
        min-width: 820px;
    }

    .marksheet-table caption {
        padding: 14px 16px;
    }

    .marksheet-table th,
    .marksheet-table td {
        padding: 11px 12px;
    }
}
.admin-login-section input[type="text"],
.admin-login-section input[type="password"] {
    display: block;
    width: 100%;
    min-height: 48px;
    margin: 0 0 22px;
    padding: 11px 13px;
    color: var(--text-color);
    font: inherit;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.admin-login-section input[type="text"]:focus,
.admin-login-section input[type="password"]:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(181, 138, 69, 0.18);
}

.admin-login-section button {
    display: block;
    width: 100%;
    min-height: 49px;
    margin-top: 4px;
    padding: 12px 18px;
    color: #fff;
    font: 600 0.95rem var(--body-font-family);
    letter-spacing: 0.035em;
    background-color: var(--primary-color);
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.admin-login-section button:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 6px 14px rgba(23, 58, 53, 0.2);
    transform: translateY(-1px);
}

.admin-login-section button:focus-visible {
    outline: 3px solid rgba(181, 138, 69, 0.55);
    outline-offset: 3px;
}

.admin-login-section button:active {
    transform: translateY(0);
}
.error-message {
    position: relative;
    width: min(420px, calc(100% - 32px));
    margin: 20px auto 0;
    padding: 12px 16px;
    color: #7f2620;
    font-size: 0.9rem;
    background: #fff0ed;
    border: 1px solid #e8b8b0;
    border-left: 4px solid #b33a30;
    border-radius: 8px;
    text-align: center;
    overflow-wrap: anywhere;
}

.user-list-page {
    background:
        radial-gradient(ellipse at 12% 18%, rgba(189, 152, 82, .13), transparent 30rem),
        radial-gradient(ellipse at 92% 78%, rgba(29, 64, 54, .08), transparent 32rem),
        var(--background-color);
}

.user-list {
    width: min(1160px, calc(100% - 48px));
    margin: clamp(32px, 6vw, 72px) auto;
}

.user-list-heading {
    margin-bottom: 24px;
}

.user-list-eyebrow {
    color: var(--primary-color);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .16em;
}

.user-list-heading h1 {
    margin: 8px 0 6px;
    color: var(--primary-color);
    font: 600 clamp(2rem, 5vw, 2.8rem)/1.15 var(--font-family);
    letter-spacing: -.025em;
}

.user-list-heading p {
    margin: 0;
    color: #68736c;
    font-size: .96rem;
}

.user-list-table-wrap {
    overflow: hidden;
    background: var(--surface-color);
    border: 1px solid rgba(114, 51, 0, .14);
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(48, 42, 30, .1), 0 2px 8px rgba(48, 42, 30, .04);
}

.user-list-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.user-list-table th,
.user-list-table td {
    padding: 17px 20px;
    vertical-align: middle;
}

.user-list-table th {
    color: #fffefa;
    background: #294b40;
    font: 700 .75rem var(--body-font-family);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.user-list-table th:first-child {
    padding-left: 26px;
}

.user-list-table td {
    color: #49564f;
    border-bottom: 1px solid #eee8dc;
    font-size: .92rem;
}

.user-list-table tbody tr:last-child td {
    border-bottom: 0;
}

.user-list-table tbody tr {
    transition: background-color 150ms ease;
}

.user-list-table tbody tr:hover {
    background: #fbf8f1;
}

.session-counts {
    width: min(1160px, calc(100% - 48px));
    margin: clamp(32px, 6vw, 72px) auto;
}

.session-counts-heading {
    margin-bottom: 24px;
}

.session-counts-eyebrow {
    margin: 0;
    color: var(--primary-color);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.session-counts-heading h1 {
    margin: 8px 0 6px;
    color: var(--primary-color);
    font: 600 clamp(2rem, 5vw, 2.8rem)/1.15 var(--font-family);
    letter-spacing: -.025em;
}

.session-counts-heading > p:last-child {
    margin: 0;
    color: #68736c;
    font-size: .96rem;
}

.session-counts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 20px;
}

.session-count-card {
    overflow: hidden;
    background: var(--surface-color);
    border: 1px solid rgba(114, 51, 0, .14);
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(48, 42, 30, .08), 0 2px 8px rgba(48, 42, 30, .04);
}

.session-count-card-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 18px 20px;
    color: #fffefa;
    background: #294b40;
}

.session-count-card-heading h2,
.session-count-card-heading p {
    margin: 0;
}

.session-count-card-heading h2 {
    font: 700 1.15rem var(--font-family);
}

.session-count-card-heading p {
    font-size: .82rem;
    font-weight: 600;
}

.class-count-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
    gap: 10px;
    padding: 18px;
}

.class-count {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 48px;
    padding: 10px 12px;
    color: #49564f;
    background: #fbf8f1;
    border: 1px solid #eee8dc;
    border-radius: 8px;
    font-size: .88rem;
}

.class-count strong {
    color: var(--primary-color);
    font-size: 1rem;
}

.session-counts-message {
    margin: 0;
    padding: 18px 20px;
    color: #49564f;
    background: var(--surface-color);
    border: 1px solid rgba(114, 51, 0, .14);
    border-radius: 10px;
}

.user-list-table .user-list-id {
    color: #283e34;
    font-weight: 700;
}

.login-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 11px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
}

.login-status::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    content: "";
}

.login-status.is-online {
    color: #23613f;
    background: #e9f5eb;
    border-color: #cce5cf;
}

.login-status.is-online::before {
    background: #3a9a5d;
    box-shadow: 0 0 0 3px rgba(58, 154, 93, .12);
}

.login-status.is-offline {
    color: #667068;
    background: #f1f1ed;
    border-color: #e1e2db;
}

.login-status.is-offline::before {
    background: #929991;
}

.user-list-table form {
    margin: 0;
}

.force-logout-button {
    min-height: 36px;
    padding: 8px 13px;
    color: #8d3026;
    background: #fff7f4;
    border: 1px solid #e8c1b9;
    border-radius: 7px;
    font: 700 .8rem var(--body-font-family);
    cursor: pointer;
    transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.force-logout-button:hover {
    color: #fff;
    background: #963a2d;
    border-color: #963a2d;
    transform: translateY(-1px);
}

.force-logout-button:focus-visible {
    outline: 3px solid rgba(189, 152, 82, .55);
    outline-offset: 3px;
}

.user-list-na {
    color: #929991;
}

.user-list-table .user-list-empty {
    padding: 38px 20px;
    color: #68736c;
    text-align: center;
}

.force-logout-page {
    background:
        radial-gradient(ellipse at 12% 18%, rgba(189, 152, 82, .15), transparent 30rem),
        radial-gradient(ellipse at 92% 78%, rgba(29, 64, 54, .09), transparent 32rem),
        var(--background-color);
}

.force-logout-form {
    position: relative;
    display: grid;
    gap: 12px;
    width: min(480px, calc(100% - 32px));
    margin: clamp(36px, 8vh, 80px) auto;
    padding: clamp(28px, 6vw, 48px);
    overflow: hidden;
    background: var(--surface-color);
    border: 1px solid rgba(114, 51, 0, .15);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(48, 42, 30, .12), 0 3px 10px rgba(48, 42, 30, .05);
}

.force-logout-form::before {
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), #294b40);
    content: "";
}

.force-logout-form .force-logout-message {
    margin: 0 0 4px;
    color: #23613f;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.5;
}

.force-logout-form .force-logout-message span {
    display: block;
    padding: 12px 14px;
    background: #e9f5eb;
    border: 1px solid #cce5cf;
    border-left: 4px solid #3a9a5d;
    border-radius: 8px;
}

.force-logout-form h1 {
    margin: 0 0 10px;
    color: var(--primary-color);
    font: 600 clamp(1.8rem, 5vw, 2.25rem)/1.2 var(--font-family);
    letter-spacing: -.025em;
}

.force-logout-form label {
    color: #414944;
    font-size: .9rem;
    font-weight: 700;
}

.force-logout-form input[type="text"] {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    color: var(--text-color);
    font: inherit;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 7px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.force-logout-form input[type="text"]:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(189, 152, 82, .2);
}

.force-logout-form button {
    justify-self: start;
    min-height: 46px;
    margin-top: 8px;
    padding: 11px 20px;
    color: #fff;
    font: 700 .92rem var(--body-font-family);
    background: var(--primary-color);
    border: 0;
    border-radius: 7px;
    box-shadow: 0 5px 12px rgba(114, 51, 0, .18);
    cursor: pointer;
    transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.force-logout-form button:hover {
    background: var(--primary-hover);
    box-shadow: 0 8px 16px rgba(29, 64, 54, .2);
    transform: translateY(-1px);
}

.force-logout-form button:focus-visible {
    outline: 3px solid rgba(189, 152, 82, .6);
    outline-offset: 3px;
}

.admission-page {
    overflow-x: hidden;
    overflow-y: auto;
    background:
        radial-gradient(ellipse at top left, rgba(181, 138, 69, .14), transparent 34rem),
        #f6f2e9;
}

.admission_section {
    width: min(1360px, calc(100% - 40px));
    margin: clamp(24px, 5vw, 56px) auto;
}

.admission_section form {
    display: grid;
    gap: 30px;
    padding: clamp(22px, 5vw, 48px);
    background: var(--surface-color);
    border: 1px solid rgba(146, 55, 2, .16);
    border-top: 5px solid var(--primary-color);
    border-radius: 14px;
    box-shadow: 0 22px 60px rgba(54, 41, 22, .11), 0 3px 10px rgba(54, 41, 22, .05);
    font-family: var(--body-font-family);
}

.admission_section form > h1 {
    margin: 0;
    color: var(--primary-color);
    font: 600 clamp(1.7rem, 4vw, 2.3rem)/1.2 var(--font-family);
    letter-spacing: .045em;
    text-align: center;
}

.admission_section .submission-message {
    margin: 0;
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 700;
}

.admission_section .submission-message.success {
    color: #1d5b3e;
    background: #e8f5eb;
    border-color: #b7dfc1;
}

.admission_section .submission-message.error {
    color: #8d2923;
    background: #fff0ed;
    border-color: #efc3bb;
}

.admission_section .checkbox-section {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px;
    background: #faf7f0;
    border: 1px solid rgba(146, 55, 2, .16);
    border-radius: 10px;
}

.admission_section .checkbox-section h2 {
    margin: 0 8px 0 0;
    color: var(--primary-color);
    font-family: var(--font-family);
    font-size: 1.15rem;
}

.admission_section .checkbox-section > label:first-of-type {
    margin: 0;
    color: #b42318 !important;
}

.admission_section .checkbox-section input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.admission_section .checkbox-section label[for] {
    margin: 0;
    padding: 9px 14px;
    color: var(--text-color);
    background: #fff;
    border: 1px solid rgba(36, 43, 40, .18);
    border-radius: 999px;
    cursor: pointer;
    font-size: .92rem;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.admission_section .checkbox-section input[type="radio"]:checked + label {
    color: #fff;
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.admission_section .checkbox-section input[type="radio"]:focus-visible + label {
    outline: 3px solid rgba(181, 138, 69, .42);
    outline-offset: 2px;
}

.admission_section > form > label {
    margin-bottom: -20px;
    color: var(--text-color);
    font-weight: 700;
}

.admission_section #student-photo {
    display: grid;
    width: 136px;
    height: 136px;
    place-items: center;
    margin-bottom: -20px;
    overflow: hidden;
    color: #806f56;
    background: #faf7f0;
    border: 1px dashed rgba(146, 55, 2, .42);
    border-radius: 10px;
    cursor: pointer;
}

.admission_section #student-photo:focus-visible {
    outline: 3px solid rgba(189, 152, 82, .55);
    outline-offset: 3px;
}

.admission_section #student-photo::after {
    content: "Photo preview";
    font-size: .82rem;
}

.admission_section #student-photo.has-image::after {
    content: none;
}

.admission_section #student-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-editor {
    width: min(440px, calc(100% - 24px));
    max-width: none;
    max-height: calc(100% - 24px);
    padding: 0;
    overflow: auto;
    color: var(--text-color);
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(38, 52, 46, .28);
}

.photo-editor::backdrop {
    background: rgba(25, 38, 32, .68);
}

.photo-editor-content {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 24px;
    text-align: center;
}

.photo-editor-content h2,
.photo-editor-content p {
    margin: 0;
}

.photo-editor-content h2 {
    color: var(--primary-color);
    font: 600 1.4rem var(--font-family);
}

.photo-editor-content > p:not(.crop-error) {
    color: #5e6b62;
    font-size: .9rem;
}

.crop-stage {
    position: relative;
    width: min(300px, 75vw);
    aspect-ratio: 1;
    overflow: hidden;
    background: #e7e5df;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    cursor: grab;
    touch-action: none;
}

.crop-stage:active {
    cursor: grabbing;
}

.crop-stage img {
    position: absolute;
    max-width: none;
    user-select: none;
    pointer-events: none;
}

.zoom-control {
    display: grid;
    width: min(300px, 75vw);
    gap: 6px;
    color: var(--text-color);
    font-weight: 700;
    text-align: left;
}

.zoom-control input {
    width: 100%;
    accent-color: var(--primary-color);
}

.crop-error {
    width: 100%;
    color: #b42318;
    font-size: .88rem;
    font-weight: 700;
}

.photo-editor-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    margin-top: 4px;
}

.photo-editor-actions button {
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid var(--primary-color);
    border-radius: 7px;
    cursor: pointer;
    font: 700 .95rem var(--body-font-family);
}

.photo-cancel {
    color: var(--primary-color);
    background: #fff;
}

.photo-apply {
    color: #fff;
    background: var(--primary-color);
}

.photo-editor-actions button:disabled {
    opacity: .65;
    cursor: wait;
}

.admission_section > form > .photo-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admission_section .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

.admission_section .photo-picker {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    color: var(--primary-color);
    background: #fff;
    border: 1px solid var(--primary-color);
    border-radius: 7px;
    cursor: pointer;
    font-weight: 700;
}

.admission_section .photo-picker:hover {
    color: #fff;
    background: var(--primary-color);
}

.admission_section .photo-picker:focus-within,
.admission_section .visually-hidden:focus-visible + .photo-picker {
    outline: 3px solid rgba(189, 152, 82, .55);
    outline-offset: 3px;
}



.admission_section > form > p {
    margin: -22px 0 0;
    font-size: .84rem;
}

.admission_section > form > #photo-error {
    margin: -22px 0 0;
    color: #b42318;
    font-weight: 600;
}

.admission_section .student-section {
    display: grid;
    grid-template-columns: minmax(100px, .7fr) minmax(0, 1fr) minmax(100px, .7fr) minmax(0, 1fr);
    align-items: center;
    gap: 12px 5px;
    padding: 22px;
    background: #fff;
    border: 1px solid rgba(36, 43, 40, .12);
    border-radius: 10px;
}

.admission_section .student-section h2 {
    grid-column: 1 / -1;
    margin: 0 0 8px;
    padding-bottom: 12px;
    color: var(--primary-color);
    border-bottom: 1px solid rgba(146, 55, 2, .18);
    font: 600 1.25rem var(--font-family);
}

.admission_section .student-section label {
    color: var(--text-color);
    font-size: .9rem;
    font-weight: 600;
}

.admission_section .student-section > label:nth-of-type(2n) {
    margin-left: 100px;
}

.admission_section .student-section > .aadhar-label {
    margin-left: 0;
}

.admission_section .student-section label span {
    margin-right: 5px;
    color: #b42318;
}

.admission_section .student-section input,
.admission_section .student-section select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    color: var(--text-color);
    font: inherit;
    background: #fff;
    border: 1px solid rgba(36, 43, 40, .22);
    border-radius: 6px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.admission_section .student-section .aadhar-inputs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    min-width: 0;
}

.admission_section .student-section .aadhar-inputs input {
    min-width: 0;
    padding: 10px 6px;
    text-align: center;
    letter-spacing: .04em;
}

.admission_section .student-section .aadhar-status {
    grid-column: 1 / -1;
    min-height: 1.2em;
    font-size: .82rem;
    font-weight: 700;
}

.admission_section .student-section .aadhar-status.duplicate,
.admission_section .student-section .aadhar-status.verification-error {
    color: #b42318;
}

.admission_section .student-section .aadhar-status.available {
    color: #1d5b3e;
}

.admission_section input[type="text"],
.admission_section input[type="tel"] {
    text-transform: uppercase;
}

.admission_section input[type="email"] {
    text-transform: lowercase;
}

.admission_section .student-section input:focus,
.admission_section .student-section select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(146, 55, 2, .13);
}

.admission_section form > button {
    justify-self: end;
    min-width: 160px;
    min-height: 48px;
    padding: 12px 24px;
    color: #fff;
    font: 600 1rem var(--body-font-family);
    background: var(--primary-color);
    border: 0;
    border-radius: 7px;
    cursor: pointer;
    box-shadow: 0 5px 12px rgba(146, 55, 2, .2);
    transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.admission_section form > button:hover {
    background: var(--primary-hover);
    box-shadow: 0 8px 16px rgba(146, 55, 2, .24);
    transform: translateY(-1px);
}

.admission_section form > button:disabled {
    opacity: .6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.admission_section form > button:focus-visible {
    outline: 3px solid rgba(181, 138, 69, .55);
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .admission_section {
        width: calc(100% - 24px);
        margin: 18px auto 32px;
    }

    .admission_section form {
        gap: 20px;
        padding: 22px 16px;
    }

    .admission_section .checkbox-section {
        gap: 10px;
        padding: 16px;
    }

    .admission_section .checkbox-section h2 {
        width: 100%;
        margin: 0 0 2px;
    }

    .admission_section .student-section {
        grid-template-columns: minmax(100px, .7fr) minmax(0, 1fr);
        gap: 8px 12px;
        padding: 16px;
    }

    .admission_section .student-section > label:nth-of-type(2n) {
        margin-left: 0;
    }

    .admission_section .student-section h2 {
        margin-bottom: 4px;
    }

    .admission_section form > button {
        width: 100%;
    }
}
@media (max-width: 700px) {
    .user-list {
        width: calc(100% - 28px);
        margin: 30px auto;
    }

    .user-list-table-wrap {
        overflow: visible;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .user-list-table,
    .user-list-table tbody {
        display: block;
        width: 100%;
    }

    .user-list-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        clip-path: inset(50%);
    }

    .user-list-table tbody tr {
        display: grid;
        gap: 0;
        margin-bottom: 14px;
        padding: 5px 16px;
        background: var(--surface-color);
        border: 1px solid rgba(114, 51, 0, .14);
        border-radius: 11px;
        box-shadow: 0 8px 24px rgba(48, 42, 30, .07);
    }

    .user-list-table tbody tr:hover {
        background: var(--surface-color);
    }

    .user-list-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 0;
        border-bottom: 1px solid #eee8dc;
        text-align: right;
    }

    .user-list-table td::before {
        flex: 0 0 auto;
        color: #68736c;
        content: attr(data-label);
        font-size: .72rem;
        font-weight: 800;
        letter-spacing: .06em;
        text-align: left;
        text-transform: uppercase;
    }

    .user-list-table td:last-child {
        border-bottom: 0;
    }

    .user-list-table .user-list-empty {
        justify-content: center;
        border-bottom: 0;
        text-align: center;
    }

    .user-list-table .user-list-empty::before {
        content: none;
    }
}
@media (max-width: 420px) {
    .admission_section .student-section {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .admission_section .student-section > label:nth-of-type(2n) {
        margin-left: 0;
    }
}
@media (max-width: 480px) {
    .admin-login-section {
        padding: 20px 16px;
    }

    .admin-login-section form {
        padding: 40px 26px 30px;
    }
}

@media (max-width: 640px) {
    .header-inner, .primary-navigation, .user-details { width: calc(100% - 32px); }
    .admin-site-header .header-inner { min-height: 58px; gap: 12px; }
    .admin-site-header .site-logo { flex-basis: 46px; width: 46px; height: 46px; }
    .header-inner p { gap: 8px; }
    .brand-mark { width: 34px; height: 34px; flex-basis: 34px; font-size: 20px; }
    .brand-name { font-size: clamp(14px, 4vw, 19px); }
    .user-details { flex-wrap: wrap; justify-content: flex-start; gap: 4px 20px; }
    .primary-navigation { justify-content: flex-start; gap: 4px; }
    .primary-navigation a { padding: 8px 12px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
