@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@400;600;700&family=Sarabun:wght@400;500;600;700&display=swap');

* { box-sizing: border-box; }
body {
    margin: 0;
    background: #f6f7f4;
    color: #1c2321;
    font-family: 'Sarabun', Arial, Tahoma, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
.shell { min-height: 100vh; }
.app-header {
    background: #f4f4f4;
    border-bottom: 1px solid #d8d8d8;
    color: #17201d;
    position: sticky;
    top: 0;
    z-index: 20;
}
.header-main {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1320px;
    padding: 14px 24px 10px;
}
.brand { background: #fff; border: 1px solid #d8d8d8; color: #17201d; border-radius: 6px; padding: 12px 14px; }
.brand strong, .brand span { display: block; }
.brand strong { font-family: 'Kanit', sans-serif; font-weight: 700; font-size: 25px; line-height: 1.25; }
.brand span { font-size: 16px; margin-top: 2px; }
.top-brand { flex: 0 0 auto; }
.header-registration {
    align-items: center;
    display: flex;
    gap: 14px;
    min-width: 0;
}
.header-logo {
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    display: block;
    height: 82px;
    object-fit: contain;
    padding: 8px;
    width: 82px;
}
.registration-window-card {
    background: #fff;
    border: 1px solid #d8d8d8;
    border-left: 5px solid #276a95;
    border-radius: 6px;
    color: #17201d;
    display: grid;
    gap: 2px;
    min-width: 280px;
    padding: 10px 14px;
}
.registration-window-card span {
    color: #526058;
    font-weight: 700;
}
.registration-window-card strong {
    font-family: 'Kanit', sans-serif;
    font-size: 25px;
    line-height: 1.2;
    color: #b32626;
}
.registration-window-card small {
    color: #66746c;
    font-size: 13px;
}
.registration-window-card.open { border-left-color: #176b5d; }
.registration-window-card.pending { border-left-color: #8c6816; }
.registration-window-card.closed { border-left-color: #a13d3d; }
.userbox { background: #eaf4ff; border: 1px solid #c8ddf2; border-radius: 8px; padding: 10px 12px; }
.userbox span { color: #66746c; display: block; font-size: 13px; margin-top: 4px; }
.top-userbox {
    min-width: 240px;
    text-align: right;
}
.topnav {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    margin: 0 auto;
    max-width: 1320px;
    overflow-x: auto;
    padding: 0 24px 10px;
    scrollbar-width: thin;
}
.topnav a {
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: #17201d;
    flex: 0 0 auto;
    padding: 8px 6px 6px;
    white-space: nowrap;
}
.topnav a:hover,
.topnav a.active {
    background: transparent;
    border-bottom-color: #17201d;
    color: #17201d;
    font-weight: 700;
}
.topnav a.logout-link {
    align-items: center;
    background: #a13d3d;
    border: 0;
    border-radius: 6px;
    color: #fff;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
}
.topnav a.logout-link:hover,
.topnav a.logout-link.active {
    background: #8d3030;
    border: 0;
    color: #fff;
}
.content {
    margin: 0 auto;
    max-width: 1320px;
    padding: 24px;
}
.site-copyright {
    color: #66746c;
    font-size: 14px;
    margin: 22px 0 0;
    text-align: center;
}
.auth-copyright {
    color: #526058;
    margin-top: 16px;
}
.panel, .card, .login-card { background: #fff; border: 1px solid #dbe2dc; border-radius: 8px; }
h1, h2, h3, .panel h2, .panel h3, .login-card h1 {
    font-family: 'Kanit', sans-serif;
    font-size: 25px;
    font-weight: 600;
    line-height: 1.35;
}
.grid { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }
.card { padding: 16px; min-height: 110px; }
.card span { color: #66746c; display: block; margin-bottom: 8px; }
.card strong { font-size: 30px; }
.panel { padding: 18px; margin-bottom: 18px; overflow-x: auto; }
.panel h2, .panel h3 { margin-top: 0; }
.admin-dashboard-school-table {
    min-width: 0;
    table-layout: fixed;
}
.school-dashboard-competition-table {
    min-width: 0;
    table-layout: fixed;
}
.admin-dashboard-school-table th:nth-child(1),
.admin-dashboard-school-table td:nth-child(1),
.school-dashboard-competition-table th:nth-child(1),
.school-dashboard-competition-table td:nth-child(1) {
    width: 72px;
}
.admin-dashboard-school-table th:nth-child(3),
.admin-dashboard-school-table td:nth-child(3) {
    width: 130px;
}
.school-dashboard-competition-table th:nth-child(3),
.school-dashboard-competition-table td:nth-child(3) {
    width: 150px;
}
.school-dashboard-competition-table th:nth-child(4),
.school-dashboard-competition-table td:nth-child(4) {
    width: 130px;
}
.school-registration-details summary {
    cursor: pointer;
    display: grid;
    gap: 2px;
}
.school-registration-details summary strong {
    font-weight: 700;
}
.school-registration-details summary span {
    color: #66746c;
    font-size: 14px;
}
.school-registration-list {
    background: #f8faf8;
    border: 1px solid #dbe2dc;
    border-radius: 6px;
    color: #1c2321;
    line-height: 1.55;
    margin-top: 10px;
    padding: 10px 12px;
    white-space: normal;
}
.toolbar { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-bottom: 14px; }
.form-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.compact-form {
    align-items: end;
    border-bottom: 1px solid #dbe2dc;
    column-gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    row-gap: 10px;
}
.compact-form label {
    margin-bottom: 0;
}
.compact-form button,
.compact-form .button {
    height: 44px;
    min-height: 44px;
}
.split-admin {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.stack-admin {
    display: grid;
    gap: 18px;
}
.stack-admin .compact-form {
    grid-template-columns: minmax(320px, 1fr) 180px 130px auto;
}
.stack-admin .compact-form .full {
    grid-column: auto;
}
.stack-admin .compact-form .actions {
    grid-column: auto;
}
.schools-admin-stack .compact-form {
    grid-template-columns: repeat(4, minmax(160px, 1fr));
}
.schools-admin-stack .compact-form label {
    min-width: 0;
}
.schools-admin-stack .compact-form .actions {
    grid-column: 1 / -1;
}
.school-admins-print-panel {
    overflow-x: hidden;
}
.school-admins-report-table {
    min-width: 0;
    table-layout: fixed;
    width: 100%;
}
.school-admins-report-table th,
.school-admins-report-table td {
    overflow-wrap: normal;
    vertical-align: middle;
    white-space: normal;
}
.school-admins-report-table th:nth-child(1),
.school-admins-report-table td:nth-child(1) {
    text-align: center;
    width: 5%;
}
.school-admins-report-table th:nth-child(2),
.school-admins-report-table td:nth-child(2) {
    overflow-wrap: anywhere;
    width: 12%;
    word-break: break-word;
}
.school-admins-report-table th:nth-child(3),
.school-admins-report-table td:nth-child(3) {
    overflow-wrap: anywhere;
    width: 17%;
    word-break: break-word;
}
.school-admins-report-table th:nth-child(4),
.school-admins-report-table td:nth-child(4) {
    width: 14%;
}
.school-admins-report-table th:nth-child(5),
.school-admins-report-table td:nth-child(5) {
    width: 9%;
}
.school-admins-report-table th:nth-child(6),
.school-admins-report-table td:nth-child(6) {
    width: 15%;
    overflow-wrap: anywhere;
}
.school-admins-report-table th:nth-child(7),
.school-admins-report-table td:nth-child(7) {
    width: 14%;
}
.school-admins-report-table th:nth-child(8),
.school-admins-report-table td:nth-child(8) {
    width: 14%;
}
.school-admin-status-date {
    display: grid;
    gap: 6px;
    min-width: 130px;
}
.school-admin-status-date .status {
    justify-self: start;
    overflow-wrap: normal;
    white-space: nowrap;
    word-break: keep-all;
}
.school-admin-status-date small {
    color: #526058;
    font-size: 14px;
    line-height: 1.25;
    white-space: nowrap;
}
.school-admin-actions-cell {
    white-space: normal;
}
.school-admin-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.school-admin-actions form {
    margin: 0;
}
.school-admin-actions .button,
.school-admin-actions button {
    min-height: 36px;
    padding: 0 10px;
    white-space: nowrap;
    width: auto;
}
.checkbox-label {
    align-items: center;
    align-self: end;
    display: flex;
    gap: 8px;
    height: 44px;
    min-height: 44px;
}
.checkbox-label input {
    min-height: auto;
    width: auto;
}
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.compact-form .actions {
    align-items: end;
    align-self: end;
    height: 44px;
}
.profile-section-title {
    border-top: 1px solid #dbe2dc;
    margin-top: 8px;
    padding-top: 18px;
}
.profile-section-title h2 {
    margin: 0;
}
.school-logo-preview {
    background: #fff;
    border: 1px solid #dbe2dc;
    border-radius: 8px;
    display: block;
    height: 96px;
    object-fit: contain;
    padding: 8px;
    width: 96px;
}
table { border-collapse: collapse; min-width: 760px; width: 100%; }
th, td { border-bottom: 1px solid #dbe2dc; padding: 12px 10px; text-align: left; white-space: nowrap; }
.competitions-list-panel {
    overflow-x: hidden;
}
.competitions-list-panel table {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 0;
    table-layout: fixed;
}
.competitions-list-panel th,
.competitions-list-panel td {
    padding: 14px 12px;
    vertical-align: middle;
    white-space: normal;
    word-break: normal;
}
.competitions-list-panel tbody tr:hover {
    background: #f8fbf9;
}
.competition-main-cell {
    display: grid;
    gap: 6px;
}
.competition-main-cell strong {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: normal;
}
.competition-code {
    background: #eef5f2;
    border: 1px solid #d4e4dc;
    border-radius: 999px;
    color: #176b5d;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    padding: 5px 8px;
    width: max-content;
}
.competition-meta-cell {
    display: grid;
    gap: 4px;
}
.competition-meta-cell small {
    color: #66746c;
    font-size: 14px;
    line-height: 1.3;
}
.competition-count {
    background: #f7f1df;
    border-radius: 999px;
    color: #7a5d15;
    display: inline-flex;
    font-weight: 700;
    padding: 5px 9px;
}
.competitions-list-panel th:nth-child(1),
.competitions-list-panel td:nth-child(1) {
    text-align: center;
    width: 64px;
}
.competitions-list-panel th:nth-child(2),
.competitions-list-panel td:nth-child(2) {
    width: 34%;
}
.competitions-list-panel th:nth-child(3),
.competitions-list-panel td:nth-child(3) {
    width: 18%;
}
.competitions-list-panel th:nth-child(4),
.competitions-list-panel td:nth-child(4) {
    width: 80px;
}
.competitions-list-panel th:nth-child(5),
.competitions-list-panel td:nth-child(5) {
    width: 184px;
}
.competitions-list-panel th:nth-child(6),
.competitions-list-panel td:nth-child(6) {
    width: 104px;
}
.competitions-list-panel th:nth-child(7),
.competitions-list-panel td:nth-child(7) {
    width: 128px;
}
.competitions-list-panel .registration-dates span {
    background: #f6f7f4;
    border: 1px solid #e2e8e3;
    border-radius: 6px;
    color: #526058;
    display: block;
    font-size: 14px;
    line-height: 1.35;
    margin-bottom: 5px;
    padding: 5px 8px;
}
.competitions-list-panel .registration-dates span:last-child {
    margin-bottom: 0;
}
.competitions-list-panel td:nth-child(7) .actions {
    flex-wrap: nowrap;
}
.competitions-list-panel td:nth-child(7) form {
    margin: 0;
}
.competitions-list-panel td:nth-child(7) .button,
.competitions-list-panel td:nth-child(7) button {
    min-width: 54px;
    white-space: nowrap;
}
.admin-registrations-panel {
    overflow-x: hidden;
}
.admin-registrations-filter {
    align-items: center;
    flex-wrap: nowrap;
}
.admin-registrations-filter input {
    min-width: 320px;
}
.admin-registrations-filter button {
    height: 44px;
}
.admin-registrations-panel table {
    min-width: 0;
    table-layout: fixed;
}
.admin-registrations-panel th,
.admin-registrations-panel td {
    vertical-align: middle;
    white-space: normal;
    overflow-wrap: anywhere;
}
.admin-registrations-panel th:nth-child(1),
.admin-registrations-panel td:nth-child(1) {
    text-align: center;
    width: 64px;
}
.admin-registrations-panel th:nth-child(2),
.admin-registrations-panel td:nth-child(2) {
    width: 140px;
}
.admin-registrations-panel th:nth-child(5),
.admin-registrations-panel td:nth-child(5) {
    width: 165px;
}
.admin-registrations-panel th:nth-child(6),
.admin-registrations-panel td:nth-child(6) {
    width: 155px;
}
.admin-registrations-panel th:nth-child(7),
.admin-registrations-panel td:nth-child(7) {
    width: 180px;
}
.admin-registrations-panel td:nth-child(7) .actions {
    flex-wrap: nowrap;
}
.admin-registrations-panel td:nth-child(7) form {
    margin: 0;
}
.admin-registrations-panel td:nth-child(7) button {
    min-width: 0;
    white-space: normal;
}
th { color: #66746c; font-size: 16px; }
.status { border-radius: 999px; display: inline-block; font-size: 16px; font-weight: 700; padding: 5px 9px; }
.status.SUBMITTED { background: #dceef8; color: #276a95; }
.status.VERIFIED { background: #dff3e9; color: #1c7656; }
.status.INCOMPLETE { background: #fff3cc; color: #8c6816; }
.status.DRAFT { background: #eef0ee; color: #526058; }
.status.WITHDRAWN, .status.REJECTED { background: #f7dfdf; color: #a13d3d; }
.status.SUSPENDED { background: #fff3cc; color: #8c6816; }
.status.LOCKED { background: #f7dfdf; color: #a13d3d; }
.login-page,
.auth-page {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(23,107,93,.10), rgba(241,202,101,.14)),
        #f6f7f4;
    display: grid;
    min-height: 100vh;
    padding: 32px;
}
.login-shell {
    background: #fff;
    border: 1px solid #dbe2dc;
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(23, 32, 29, .12);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .85fr);
    margin: 0 auto;
    max-width: 980px;
    min-height: 560px;
    overflow: hidden;
    width: 100%;
}
.login-brand-panel {
    background: #f4f4f4;
    color: #17201d;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 44px;
}
.login-logo {
    display: block;
    height: auto;
    margin-bottom: 22px;
    max-width: 190px;
    width: 42%;
}
.eyebrow,
.login-card-heading p {
    color: #8fb3a8;
    font-weight: 700;
    margin: 0 0 8px;
}
.login-brand-panel h1 {
    color: #17201d;
    margin: 0 0 14px;
    max-width: 520px;
}
.login-brand-panel p {
    color: #526058;
    margin: 0;
    max-width: 520px;
}
.login-brand-panel .login-copyright {
    color: #66746c;
    font-size: 14px;
    margin-top: 28px;
}
.login-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}
.login-highlights span {
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 999px;
    color: #f1ca65;
    padding: 7px 12px;
}
.login-card {
    align-self: center;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 44px;
    width: 100%;
}
.login-card-heading {
    margin-bottom: 22px;
}
.login-card-heading h2 {
    margin: 0;
}
.login-submit {
    margin-top: 4px;
    width: 100%;
}
.login-note {
    color: #66746c;
    margin: 18px 0 0;
}
.login-register-box {
    background: #f6f7f4;
    border: 1px solid #dbe2dc;
    border-radius: 8px;
    margin-top: 18px;
    padding: 14px;
}
.login-register-box p {
    color: #1c2321;
    font-weight: 700;
    margin: 0 0 10px;
}
.login-register-box .button {
    min-height: 34px;
    padding: 0 12px;
    text-align: center;
    width: 100%;
}
.register-frame {
    margin: 0 auto;
    max-width: 1040px;
    width: 100%;
}
.register-hero {
    background: #f4f4f4;
    border-radius: 8px 8px 0 0;
    color: #17201d;
    padding: 28px;
}
.back-link {
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    color: #17201d;
    display: inline-block;
    margin-bottom: 24px;
    padding: 8px 12px;
}
.register-hero-grid {
    align-items: end;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) 300px;
}
.register-hero h1,
.register-hero p {
    margin-top: 0;
}
.register-hero h1 {
    color: #17201d;
    margin-bottom: 10px;
}
.register-hero p:not(.eyebrow) {
    color: #526058;
    max-width: 620px;
}
.approval-card {
    background: #f1ca65;
    border-radius: 8px;
    color: #17201d;
    padding: 18px;
}
.approval-card span,
.approval-card p {
    color: #4a4a36;
    display: block;
    margin: 0;
}
.approval-card p {
    color: #fff;
}
.approval-card strong {
    display: block;
    font-family: 'Kanit', sans-serif;
    font-size: 25px;
    margin: 4px 0 8px;
}
.register-form,
.success-state {
    background: #fff;
    border: 1px solid #dbe2dc;
    border-top: 0;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 18px 50px rgba(23, 32, 29, .12);
}
.form-section {
    border-bottom: 1px solid #dbe2dc;
    padding: 26px 28px;
}
.section-title {
    align-items: start;
    display: grid;
    gap: 12px;
    grid-template-columns: 38px minmax(0, 1fr);
    margin-bottom: 18px;
}
.section-title span {
    align-items: center;
    background: #176b5d;
    border-radius: 8px;
    color: #fff;
    display: grid;
    font-weight: 700;
    height: 38px;
    justify-content: center;
}
.section-title h2,
.section-title p {
    margin: 0;
}
.section-title p {
    color: #66746c;
}
.register-actions {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 22px 28px;
}
.register-actions p {
    color: #66746c;
    margin: 2px 0 0;
}
.success-state {
    display: grid;
    justify-items: center;
    padding: 48px 28px;
    text-align: center;
}
.success-mark {
    align-items: center;
    background: #dff3e9;
    border-radius: 999px;
    color: #176b5d;
    display: grid;
    font-family: 'Kanit', sans-serif;
    font-size: 25px;
    font-weight: 700;
    height: 64px;
    justify-content: center;
    margin-bottom: 18px;
    width: 64px;
}
label { color: #66746c; display: grid; font-size: 16px; font-weight: 700; gap: 7px; margin-bottom: 12px; }
input, select, textarea {
    border: 1px solid #cdd7d1;
    border-radius: 6px;
    color: #17201d;
    font-family: 'Sarabun', Arial, Tahoma, sans-serif;
    font-size: 16px;
    line-height: 1.35;
    min-height: 44px;
    padding: 0 12px;
    width: 100%;
}
.password-field {
    display: block;
    position: relative;
}
.password-field input {
    padding-right: 68px;
}
.password-toggle {
    background: transparent;
    border: 0;
    color: #176b5d;
    font-weight: 700;
    min-height: 34px;
    padding: 0 12px;
    position: absolute;
    right: 6px;
    top: 5px;
    width: auto;
}
.password-toggle:hover {
    background: #e8f4f1;
    color: #0f5247;
}
.import-preview-table input,
.import-preview-table select {
    min-width: 110px;
}
.import-preview-table td:nth-child(2) input {
    min-width: 260px;
}
.import-preview-table td:nth-child(3) input,
.import-preview-table td:nth-child(4) input {
    min-width: 170px;
}
textarea { min-height: 96px; padding-top: 10px; }
input[type="file"] {
    align-items: center;
    background: #fff;
    border: 1px dashed #b9c6bf;
    cursor: pointer;
    display: flex;
    min-height: 48px;
    padding: 7px;
}
input[type="file"]::file-selector-button {
    background: #176b5d;
    border: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-family: 'Sarabun', Arial, Tahoma, sans-serif;
    font-size: 15px;
    font-weight: 700;
    margin-right: 12px;
    min-height: 34px;
    padding: 0 12px;
}
input[type="file"]:hover {
    border-color: #176b5d;
}
input[type="file"]:hover::file-selector-button {
    background: #13594d;
}
button, .button {
    align-items: center;
    background: #176b5d;
    border: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-family: 'Sarabun', Arial, Tahoma, sans-serif;
    font-size: 15px;
    font-weight: 700;
    justify-content: center;
    line-height: 1.2;
    min-height: 34px;
    padding: 0 12px;
    text-align: center;
    vertical-align: middle;
}
.button.secondary, button.secondary { background: #edf2ee; border: 1px solid #cdd7d1; color: #17201d; }
.button.danger, button.danger { background: #a13d3d; }
.alert {
    align-items: flex-start;
    background: #fff;
    border: 1px solid #e3e7e4;
    border-left: 4px solid #a13d3d;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(23, 32, 29, .08);
    color: #17201d;
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px 16px;
}
.alert::before {
    align-items: center;
    background: #f7dfdf;
    border-radius: 999px;
    color: #a13d3d;
    content: "!";
    display: inline-flex;
    flex: 0 0 28px;
    font-weight: 700;
    height: 28px;
    justify-content: center;
    margin-top: 1px;
    width: 28px;
}
.alert.success { border-left-color: #176b5d; }
.alert.success::before {
    background: #dff3e9;
    color: #176b5d;
    content: "✓";
}
.alert.info { border-left-color: #276a95; }
.alert.info::before {
    background: #dceef8;
    color: #276a95;
    content: "i";
}
.confirm-backdrop {
    align-items: center;
    background: rgba(23, 32, 29, .48);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 22px;
    position: fixed;
    z-index: 1000;
}
.confirm-backdrop[hidden] {
    display: none;
}
.confirm-dialog {
    background: #fff;
    border: 1px solid #dbe2dc;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(23, 32, 29, .24);
    display: grid;
    gap: 14px;
    max-width: 440px;
    padding: 22px;
    width: 100%;
}
.confirm-icon {
    align-items: center;
    background: #fff3cc;
    border-radius: 999px;
    color: #8c6816;
    display: grid;
    font-family: 'Kanit', sans-serif;
    font-size: 25px;
    font-weight: 700;
    height: 48px;
    justify-content: center;
    width: 48px;
}
.confirm-copy h2 {
    margin: 0 0 6px;
}
.confirm-copy p {
    color: #526058;
    margin: 0;
}
.confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 4px;
}
.confirm-actions button {
    min-width: 92px;
}
.muted { color: #66746c; }
.inline-form { align-items: center; display: flex; gap: 8px; }
.inline-form select { min-width: 150px; }
.review-form {
    display: grid;
    gap: 8px;
    min-width: 280px;
}
.review-form label {
    margin: 0;
}
.review-form textarea {
    min-height: 72px;
    min-width: 260px;
}
.review-result {
    max-width: 320px;
    white-space: normal;
}
.review-result strong {
    display: block;
    margin-bottom: 4px;
}
.review-result p {
    color: #526058;
    margin: 0;
}
.admin-change-requests-panel {
    overflow-x: hidden;
}
.admin-change-request-list {
    display: grid;
    gap: 14px;
}
.admin-change-request-card {
    border: 1px solid #dbe2dc;
    border-radius: 8px;
    display: grid;
    gap: 12px;
    padding: 14px;
}
.admin-change-request-head {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(240px, 1.4fr) 120px 190px 130px;
}
.admin-change-request-registration {
    background: #f8fbf9;
    border: 1px solid #edf1ee;
    border-radius: 8px;
    padding: 10px 12px;
}
.admin-change-request-head span,
.admin-change-request-registration span,
.review-result span {
    color: #526058;
    display: block;
    font-weight: 700;
    margin-bottom: 4px;
}
.admin-change-request-head strong,
.admin-change-request-registration strong {
    display: block;
    overflow-wrap: anywhere;
}
.admin-substitution-list {
    border: 1px solid #dbe2dc;
    border-radius: 8px;
    overflow: hidden;
}
.admin-substitution-head,
.admin-substitution-row {
    display: grid;
    grid-template-columns: 64px minmax(150px, 1fr) minmax(150px, 1fr) 110px minmax(140px, 1fr);
}
.admin-substitution-head span {
    background: #f4f4f4;
    color: #526058;
    font-weight: 700;
    padding: 9px 10px;
}
.admin-substitution-row {
    border-top: 1px solid #dbe2dc;
}
.admin-substitution-row > span,
.admin-substitution-row > strong {
    font-weight: 600;
    overflow-wrap: anywhere;
    padding: 9px 10px;
}
.admin-substitution-row > span {
    color: #526058;
    text-align: center;
}
.admin-change-request-review {
    border-top: 1px solid #edf1ee;
    padding-top: 12px;
}
.admin-change-request-review .review-form {
    max-width: 720px;
}
.admin-change-request-review textarea {
    min-width: 0;
    width: 100%;
}
.team-summary {
    background: #f4f4f4;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    color: #526058;
    font-weight: 700;
    padding: 12px 14px;
}
.student-fields {
    display: grid;
    gap: 12px;
}
.student-card {
    border: 1px solid #dbe2dc;
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    padding: 14px;
}
.student-card h3 {
    grid-column: 1 / -1;
    margin: 0;
}
.person-row {
    border: 1px solid #dbe2dc;
    border-radius: 8px;
    display: grid;
    gap: 10px 12px;
    grid-template-columns: minmax(130px, .75fr) repeat(5, minmax(130px, 1fr));
    padding: 14px;
}
.person-row h2 {
    grid-column: 1 / -1;
    margin: 0;
}
.person-row-header {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    grid-column: 1 / -1;
    justify-content: space-between;
}
.person-row-header h2 {
    grid-column: auto;
}
.coach-as-judge-toggle {
    align-self: center;
    background: #eef6ff;
    border: 1px solid #c8ddf2;
    border-radius: 8px;
    color: #17201d;
    font-weight: 700;
    height: auto;
    min-height: 38px;
    padding: 6px 10px;
}
.person-row label {
    margin-bottom: 0;
}
.person-photo-field a,
.student-card a {
    font-weight: 700;
    margin-top: 2px;
}
.substitution-grid {
    border: 1px solid #dbe2dc;
    border-radius: 8px;
    overflow: hidden;
}
.substitution-grid-head,
.substitution-grid-row {
    display: grid;
    gap: 0;
    grid-template-columns: 70px minmax(170px, 1fr) minmax(170px, 1fr) minmax(170px, .8fr) minmax(170px, 1fr);
}
.substitution-grid-head span {
    background: #f4f4f4;
    color: #526058;
    font-weight: 700;
    padding: 10px;
}
.substitution-grid-row {
    border-top: 1px solid #dbe2dc;
}
.substitution-grid-row[hidden] {
    display: none;
}
.substitution-grid-row span {
    align-items: center;
    color: #526058;
    display: flex;
    font-weight: 700;
    justify-content: center;
    padding: 8px;
}
.substitution-grid-row input {
    border: 0;
    border-left: 1px solid #dbe2dc;
    border-radius: 0;
}
.substitution-grid-row input[type="file"] {
    font-size: 13px;
    padding: 9px 8px;
}
.substitution-grid-row.has-errors {
    background: #fffdf4;
}
.substitution-grid-row.has-errors input {
    border-color: #e0bd58;
}
.substitution-row-errors {
    background: #fff3cc;
    border-top: 1px solid #e0bd58;
    color: #7a5d15;
    font-weight: 700;
    grid-column: 1 / -1;
    line-height: 1.45;
    padding: 9px 12px;
    white-space: normal;
}
.substitution-add-actions {
    justify-content: flex-start;
    margin-top: -4px;
}
.change-request-history {
    display: grid;
    gap: 12px;
}
.change-request-card {
    border: 1px solid #dbe2dc;
    border-radius: 8px;
    display: grid;
    gap: 12px;
    padding: 14px;
}
.change-request-card-main,
.change-request-pair {
    display: grid;
    gap: 12px;
    grid-template-columns: 170px 120px minmax(260px, 1fr) 130px;
}
.change-request-pair {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.change-request-card span:not(.status) {
    color: #526058;
    display: block;
    font-weight: 700;
    margin-bottom: 4px;
}
.change-request-card strong {
    display: block;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
    white-space: normal;
}
.change-request-card .wide {
    min-width: 0;
}
.change-request-actions {
    border-top: 1px solid #edf1ee;
    padding-top: 10px;
}
.people-section-toolbar h2 {
    margin: 0;
}
.school-admins-section-toolbar h2 {
    margin: 0;
}
.print-only {
    display: none;
}
.registrations-print-meta {
    display: grid;
    gap: 8px 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.registrations-print-meta span {
    color: #526058;
    display: block;
    font-weight: 700;
}
.registrations-print-meta strong {
    display: block;
    overflow-wrap: anywhere;
}
.registrations-print-meta.compact {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
}
.registrations-print-meta.compact strong {
    flex: 1 0 100%;
    font-size: 18px;
}
.registrations-print-meta.compact span {
    display: inline;
    font-size: 13px;
    margin: 0;
}
.admin-report-section {
    margin-bottom: 18px;
}
.admin-report-section .toolbar {
    align-items: center;
}
.report-page-nav {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 18px;
}
.report-page-nav a {
    align-items: center;
    background: #fff;
    border: 1px solid #dbe2dc;
    border-radius: 8px;
    color: #17201d;
    display: flex;
    font-weight: 700;
    justify-content: center;
    min-height: 52px;
    padding: 8px 10px;
    text-align: center;
}
.report-page-nav a.active {
    background: #176b5d;
    border-color: #176b5d;
    color: #fff;
}
.report-filter {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
}
.report-filter select {
    min-width: 280px;
}
.report-filter button,
.report-filter .button {
    height: 44px;
    min-height: 44px;
    white-space: nowrap;
}
.report-print-header {
    display: none;
}
.report-print-logo {
    display: none;
}
.report-lead {
    background: #f8faf8;
    border: 1px solid #dbe2dc;
    border-radius: 8px;
    margin: 0 0 14px;
    padding: 12px 14px;
}
.report-table-wide th,
.report-table-wide td {
    vertical-align: top;
    white-space: normal;
}
.report-bordered-table {
    border: 0;
    border-bottom: 1px solid #66746c;
    border-collapse: collapse;
    border-top: 3px double #66746c;
}
.report-bordered-table th,
.report-bordered-table td {
    border: 0;
    border-bottom: 1px dashed #aeb8b1;
    white-space: normal;
}
.report-bordered-table th {
    text-align: center;
    vertical-align: middle;
}
.report-bordered-table td {
    vertical-align: middle;
}
.report-bordered-table tbody tr:last-child td {
    border-bottom: 0;
}
.report-bordered-table tfoot th {
    border-top: 1px solid #66746c;
    font-weight: 700;
    text-align: center;
}
.summary-report-table {
    min-width: 860px;
    table-layout: fixed;
}
.summary-report-table th:nth-child(1),
.summary-report-table td:nth-child(1) {
    width: 72px;
}
.summary-report-table th:nth-child(2),
.summary-report-table td:nth-child(2) {
    width: 32%;
}
.summary-report-table th:nth-child(3),
.summary-report-table td:nth-child(3) {
    width: 24%;
}
.summary-report-table th:nth-child(4),
.summary-report-table td:nth-child(4),
.summary-report-table th:nth-child(5),
.summary-report-table td:nth-child(5),
.summary-report-table th:nth-child(6),
.summary-report-table td:nth-child(6) {
    text-align: center;
    width: 118px;
}
.number-cell {
    text-align: center !important;
}
.schools-report-table {
    min-width: 980px;
    table-layout: fixed;
}
.schools-report-table th:nth-child(1),
.schools-report-table td:nth-child(1) {
    width: 72px;
}
.schools-report-table th:nth-child(2),
.schools-report-table td:nth-child(2) {
    width: 220px;
}
.schools-report-table th:nth-child(3),
.schools-report-table td:nth-child(3) {
    width: 150px;
}
.schools-report-table th:nth-child(4),
.schools-report-table td:nth-child(4) {
    text-align: center;
    width: 135px;
}
.schools-report-table th:nth-child(5),
.schools-report-table td:nth-child(5) {
    width: auto;
}
.schools-report-table th,
.competitions-report-table th {
    white-space: nowrap;
}
.competitions-report-table {
    min-width: 0;
    table-layout: fixed;
    width: 100%;
}
.competitions-report-table th:nth-child(1),
.competitions-report-table td:nth-child(1) {
    width: 72px;
}
.competitions-report-table th:nth-child(2),
.competitions-report-table td:nth-child(2) {
    width: 32%;
    white-space: normal;
    overflow-wrap: anywhere;
}
.competitions-report-table th:nth-child(3),
.competitions-report-table td:nth-child(3) {
    width: 14%;
}
.competitions-report-table th:nth-child(4),
.competitions-report-table td:nth-child(4) {
    width: 12%;
}
.competitions-report-table th:nth-child(5),
.competitions-report-table td:nth-child(5) {
    text-align: center;
    width: 118px;
}
.competitions-report-table th:nth-child(6),
.competitions-report-table td:nth-child(6) {
    width: auto;
    white-space: normal;
    overflow-wrap: anywhere;
}
.judges-report-table {
    min-width: 0;
    table-layout: fixed;
    width: 100%;
}
.judges-report-table th {
    white-space: nowrap;
}
.judges-report-table th:nth-child(1),
.judges-report-table td:nth-child(1) {
    width: 72px;
}
.judges-report-table th:nth-child(2),
.judges-report-table td:nth-child(2) {
    width: 24%;
}
.judges-report-table th:nth-child(3),
.judges-report-table td:nth-child(3) {
    width: 22%;
}
.judges-report-table th:nth-child(4),
.judges-report-table td:nth-child(4) {
    width: 22%;
}
.judges-report-table th:nth-child(5),
.judges-report-table td:nth-child(5) {
    width: 18%;
}
.students-report-table {
    min-width: 0;
    table-layout: fixed;
    width: 100%;
}
.students-report-table th {
    white-space: nowrap;
}
.students-report-table th:nth-child(1),
.students-report-table td:nth-child(1) {
    width: 72px;
}
.students-report-table th:nth-child(2),
.students-report-table td:nth-child(2) {
    width: 18%;
}
.students-report-table th:nth-child(3),
.students-report-table td:nth-child(3) {
    width: 18%;
}
.students-report-table th:nth-child(4),
.students-report-table td:nth-child(4) {
    width: 12%;
}
.students-report-table th:nth-child(5),
.students-report-table td:nth-child(5) {
    width: 20%;
}
.students-report-table th:nth-child(6),
.students-report-table td:nth-child(6),
.students-report-table th:nth-child(7),
.students-report-table td:nth-child(7) {
    width: 14%;
}
.registrations-print-panel {
    overflow-x: hidden;
}
.registration-filter-form {
    align-items: end;
    border-bottom: 1px solid #dbe2dc;
    justify-content: start;
    margin-bottom: 14px;
    padding-bottom: 14px;
}
.registration-filter-form label {
    margin-bottom: 0;
    min-width: 220px;
}
.registration-filter-form label:first-child {
    min-width: min(420px, 100%);
}
.registration-filter-form button,
.registration-filter-form .button {
    height: 44px;
}
.school-registrations-report-table {
    min-width: 0;
    table-layout: fixed;
    width: 100%;
}
.registrations-print-panel {
    overflow: visible;
}
.school-registrations-report-table th {
    text-align: center;
    white-space: nowrap;
}
.school-registrations-report-table th:nth-child(1),
.school-registrations-report-table td:nth-child(1) {
    width: 72px;
}
.school-registrations-report-table th:nth-child(2),
.school-registrations-report-table td:nth-child(2) {
    width: 130px;
}
.school-registrations-report-table th:nth-child(3),
.school-registrations-report-table td:nth-child(3) {
    width: 30%;
}
.school-registrations-report-table th:nth-child(4),
.school-registrations-report-table td:nth-child(4) {
    width: 16%;
}
.school-registrations-report-table th:nth-child(5),
.school-registrations-report-table td:nth-child(5) {
    width: 14%;
}
.school-registrations-report-table th:nth-child(6),
.school-registrations-report-table td:nth-child(6) {
    width: 145px;
}
.school-registrations-report-table th:nth-child(7),
.school-registrations-report-table td:nth-child(7) {
    width: 145px;
}
.judge-photo-trigger {
    appearance: none;
    background: transparent;
    border-bottom: 1px dotted #66746c;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    color: inherit;
    cursor: zoom-in;
    display: inline;
    font: inherit;
    font-weight: 600;
    outline: 0;
    padding: 0;
    text-align: inherit;
}
.judge-photo-trigger:focus-visible,
.judge-photo-trigger.is-open {
    border-bottom-color: #276a95;
    box-shadow: 0 2px 0 #276a95;
}
.judge-photo-preview {
    background: #fff;
    border: 1px solid #cbd5cf;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(28, 35, 33, 0.24);
    left: 50%;
    opacity: 0;
    padding: 8px;
    pointer-events: none;
    position: fixed;
    top: 50%;
    transform: translate(-50%, -48%);
    transition: opacity 0.12s ease, transform 0.12s ease;
    visibility: hidden;
    z-index: 200;
}
.judge-photo-preview img {
    aspect-ratio: 3 / 4;
    border-radius: 6px;
    display: block;
    height: min(68vh, 320px);
    object-fit: cover;
    width: min(72vw, 240px);
}
.judge-photo-preview.is-open {
    opacity: 1;
    transform: translate(-50%, -50%);
    visibility: visible;
}
@media (hover: none), (pointer: coarse) {
    .judge-photo-trigger {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
}
.people-report-print-header {
    display: none;
}
.people-filter-form {
    align-items: end;
    border-bottom: 1px solid #dbe2dc;
    justify-content: start;
    margin-bottom: 14px;
    padding-bottom: 14px;
}
.people-filter-form label {
    margin-bottom: 0;
    min-width: 220px;
}
.people-filter-form label:first-child {
    min-width: min(420px, 100%);
}
.people-filter-form button,
.people-filter-form .button {
    height: 44px;
}
.people-print-section {
    overflow-x: hidden;
}
.people-report-table {
    min-width: 0;
    table-layout: fixed;
    width: 100%;
}
.people-report-table th {
    text-align: center;
    white-space: nowrap;
}
.people-report-table th:nth-child(1),
.people-report-table td:nth-child(1) {
    width: 72px;
}
.people-report-table th:nth-child(2),
.people-report-table td:nth-child(2) {
    width: 82px;
}
.people-students-report-table th:nth-child(3),
.people-students-report-table td:nth-child(3) {
    width: 24%;
}
.people-students-report-table th:nth-child(4),
.people-students-report-table td:nth-child(4) {
    width: 110px;
}
.people-students-report-table th:nth-child(5),
.people-students-report-table td:nth-child(5) {
    width: 30%;
}
.people-students-report-table th:nth-child(6),
.people-students-report-table td:nth-child(6) {
    width: 130px;
}
.people-students-report-table th:nth-child(7),
.people-students-report-table td:nth-child(7) {
    width: 120px;
}
.people-coaches-report-table th:nth-child(3),
.people-coaches-report-table td:nth-child(3),
.people-judges-report-table th:nth-child(3),
.people-judges-report-table td:nth-child(3) {
    width: 22%;
}
.people-coaches-report-table th:nth-child(4),
.people-coaches-report-table td:nth-child(4),
.people-judges-report-table th:nth-child(4),
.people-judges-report-table td:nth-child(4) {
    width: 120px;
}
.people-coaches-report-table th:nth-child(5),
.people-coaches-report-table td:nth-child(5),
.people-judges-report-table th:nth-child(5),
.people-judges-report-table td:nth-child(5) {
    width: 20%;
}
.people-coaches-report-table th:nth-child(6),
.people-coaches-report-table td:nth-child(6),
.people-judges-report-table th:nth-child(6),
.people-judges-report-table td:nth-child(6) {
    width: 28%;
}
.people-coaches-report-table th:nth-child(7),
.people-coaches-report-table td:nth-child(7),
.people-judges-report-table th:nth-child(7),
.people-judges-report-table td:nth-child(7) {
    width: 130px;
}
.signature-group {
    border-top: 1px solid #edf1ee;
    margin-top: 18px;
    padding-top: 16px;
}
.signature-group:first-of-type {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}
.signature-report-title {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-bottom: 10px;
}
.signature-report-title h3 {
    margin: 0;
}
.signature-report-title span {
    color: #66746c;
    font-weight: 700;
}
.signature-table {
    min-width: 900px;
}
.signature-table th,
.signature-table td {
    vertical-align: middle;
    white-space: normal;
}
.student-coach-signature-table {
    min-width: 1080px;
}
.signature-cell {
    min-width: 0;
    position: relative;
}
.signature-cell::after {
    border-bottom: 1px solid #8b948e;
    bottom: 18px;
    content: "";
    left: 14px;
    position: absolute;
    right: 14px;
}
    @media (max-width: 900px) {
    .header-main { align-items: stretch; flex-direction: column; }
    .header-registration { align-items: stretch; }
    .header-logo { height: 72px; width: 72px; }
    .registration-window-card { min-width: 0; }
    .top-userbox { min-width: 0; text-align: left; }
    .topnav { padding-left: 14px; padding-right: 14px; }
    .grid { grid-template-columns: 1fr 1fr; }
    .split-admin { grid-template-columns: 1fr; }
    .stack-admin .compact-form { grid-template-columns: 1fr; }
    .stack-admin .compact-form .full { grid-column: 1 / -1; }
    .stack-admin .compact-form .actions { grid-column: 1 / -1; }
    .form-grid { grid-template-columns: 1fr; }
    .student-card,
    .person-row { grid-template-columns: 1fr; }
    .substitution-grid-head { display: none; }
    .substitution-grid-row {
        grid-template-columns: 42px 1fr;
        padding: 8px;
    }
    .substitution-grid-row input {
        border: 1px solid #cdd7d1;
        border-radius: 6px;
        grid-column: 2;
        margin-bottom: 8px;
    }
    .substitution-grid-row input:nth-child(2)::placeholder { color: transparent; }
    .change-request-card-main,
    .change-request-pair,
    .admin-change-request-head,
    .admin-substitution-head,
    .admin-substitution-row {
        grid-template-columns: 1fr;
    }
    .admin-substitution-head { display: none; }
    .admin-substitution-row > span { text-align: left; }
    .login-shell { grid-template-columns: 1fr; }
    .login-brand-panel { padding: 30px; }
    .login-card { padding: 30px; }
    .register-hero-grid { grid-template-columns: 1fr; }
    .register-actions { align-items: flex-start; flex-direction: column; }
    .report-page-nav { grid-template-columns: 1fr 1fr; }
}

@media print {
    @page {
        size: A4 landscape;
        margin: 12mm;
    }
    .app-header,
    .site-copyright,
    .people-filter-form,
    .people-section-toolbar button,
    .people-print-section .button {
        display: none !important;
    }
    .content {
        max-width: none;
        padding: 0;
    }
    body[data-print-section] .people-print-section {
        display: none;
    }
    body[data-print-section="studentsSection"] #studentsSection,
    body[data-print-section="coachesSection"] #coachesSection,
    body[data-print-section="judgesSection"] #judgesSection {
        display: block;
    }
    .people-print-section {
        border: 0;
        margin: 0;
        overflow: visible;
        padding: 0;
    }
    .people-section-toolbar {
        display: block;
        margin-bottom: 14px;
        text-align: center;
    }
    .people-section-toolbar {
        display: none;
    }
    .people-report-print-header {
        display: block;
        margin-bottom: 12px;
        position: relative;
    }
    .people-report-print-header.has-print-logo {
        min-height: 70px;
        padding-left: 76px;
    }
    .people-report-print-header .report-print-logo {
        display: block;
        height: 64px;
        left: 0;
        object-fit: contain;
        position: absolute;
        top: 0;
        width: 64px;
    }
    .people-report-print-header h2 {
        font-size: 22px;
        margin: 0 0 4px;
        text-align: center;
    }
    .people-report-print-header h3 {
        font-family: 'Kanit', sans-serif;
        font-size: 18px;
        font-weight: 600;
        line-height: 1.25;
        margin: 0 0 4px;
        text-align: center;
    }
    .people-report-print-header .registrations-print-meta {
        border: 0;
        border-radius: 0;
        display: grid;
        gap: 4px 10px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding: 0;
    }
    .people-report-print-header .registrations-print-meta strong {
        grid-column: 1 / -1;
        text-align: left;
    }
    .people-report-print-header .registrations-print-meta span {
        display: block;
        font-size: 12px;
    }
    .people-print-section table {
        border: 0;
        border-bottom: 1px solid #333;
        border-top: 3px double #333;
        min-width: 0;
        table-layout: fixed;
        width: 100%;
    }
    .people-print-section th,
    .people-print-section td {
        font-size: 14px;
        padding: 7px 6px;
        white-space: normal;
        overflow-wrap: anywhere;
        border: 0;
        border-bottom: 1px dashed #666;
        vertical-align: middle;
    }
    .people-print-section th {
        text-align: center;
        white-space: nowrap;
    }
    .people-print-section tbody tr:last-child td {
        border-bottom: 0;
    }
    .people-print-section th:nth-child(2),
    .people-print-section td:nth-child(2) {
        display: none;
    }
    body[data-print-section="schoolRegistrationsReport"] .registrations-print-panel {
        border: 0;
        margin: 0;
        overflow: visible;
        padding: 0;
    }
    body[data-print-section="schoolRegistrationsReport"] .registrations-print-header {
        display: block;
        margin-bottom: 14px;
        position: relative;
    }
    body[data-print-section="schoolRegistrationsReport"] .registrations-print-header.has-print-logo {
        min-height: 70px;
        padding-left: 76px;
    }
    body[data-print-section="schoolRegistrationsReport"] .registrations-print-header .report-print-logo {
        display: block;
        height: 64px;
        left: 0;
        object-fit: contain;
        position: absolute;
        top: 0;
        width: 64px;
    }
    body[data-print-section="schoolRegistrationsReport"] .registrations-print-header h2 {
        font-size: 22px;
        margin: 0 0 4px;
        text-align: center;
    }
    body[data-print-section="schoolRegistrationsReport"] .registrations-print-header h3 {
        font-family: 'Kanit', sans-serif;
        font-size: 18px;
        font-weight: 600;
        line-height: 1.25;
        margin: 0 0 4px;
        text-align: center;
    }
    body[data-print-section="schoolRegistrationsReport"] .registrations-print-meta {
        border: 0;
        border-radius: 0;
        display: grid;
        gap: 4px 10px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding: 0;
    }
    body[data-print-section="schoolRegistrationsReport"] .registrations-print-meta strong {
        grid-column: 1 / -1;
        text-align: left;
    }
    body[data-print-section="schoolRegistrationsReport"] .registrations-print-meta span {
        display: block;
        font-size: 12px;
    }
    body[data-print-section="schoolRegistrationsReport"] .registrations-print-panel .toolbar,
    body[data-print-section="schoolRegistrationsReport"] .registrations-print-panel th:last-child,
    body[data-print-section="schoolRegistrationsReport"] .registrations-print-panel td:last-child {
        display: none !important;
    }
    body[data-print-section="schoolRegistrationsReport"] .registrations-print-panel table {
        border: 0;
        border-bottom: 1px solid #333;
        border-top: 3px double #333;
        min-width: 0;
        table-layout: fixed;
        width: 100%;
    }
    body[data-print-section="schoolRegistrationsReport"] .registrations-print-panel th,
    body[data-print-section="schoolRegistrationsReport"] .registrations-print-panel td {
        font-size: 13px;
        padding: 6px 5px;
        white-space: normal;
        overflow-wrap: anywhere;
        border: 0;
        border-bottom: 1px dashed #666;
        vertical-align: middle;
    }
    body[data-print-section="schoolRegistrationsReport"] .registrations-print-panel th {
        text-align: center;
        white-space: nowrap;
    }
    body[data-print-section="schoolRegistrationsReport"] .registrations-print-panel tbody tr:last-child td {
        border-bottom: 0;
    }
    body[data-print-section="schoolAdminsReport"] .stack-admin > .panel:not(#schoolAdminsReport),
    body[data-print-section="schoolAdminsReport"] .alert,
    body[data-print-section="schoolAdminsReport"] #schoolAdminsReport form,
    body[data-print-section="schoolAdminsReport"] .school-admins-section-toolbar h2:not(.print-only),
    body[data-print-section="schoolAdminsReport"] #schoolAdminsReport .no-print-report,
    body[data-print-section="schoolAdminsReport"] .school-admins-section-toolbar button {
        display: none !important;
    }
    body[data-print-section="schoolAdminsReport"] #schoolAdminsReport {
        border: 0;
        margin: 0;
        overflow: visible;
        padding: 0;
    }
    body[data-print-section="schoolAdminsReport"] .school-admins-section-toolbar {
        display: block;
        margin-bottom: 10px;
    }
    body[data-print-section="schoolAdminsReport"] .print-only {
        display: block;
    }
    body[data-print-section="schoolAdminsReport"] .school-admins-report-table {
        min-width: 0;
        table-layout: fixed;
        width: 100%;
    }
    body[data-print-section="schoolAdminsReport"] .school-admins-report-table th,
    body[data-print-section="schoolAdminsReport"] .school-admins-report-table td {
        font-size: 13px;
        padding: 6px 5px;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    body[data-print-section="adminReportsAll"] .content > *:not(#adminReportsAll),
    body[data-print-section="judgeSignatureReport"] .content > *:not(#adminReportsAll),
    body[data-print-section="studentSignatureReport"] .content > *:not(#adminReportsAll) {
        display: none !important;
    }
    body[data-print-section="judgeSignatureReport"] #adminReportsAll > .admin-report-section:not(#judgeSignatureReport),
    body[data-print-section="studentSignatureReport"] #adminReportsAll > .admin-report-section:not(#studentSignatureReport) {
        display: none !important;
    }
    body[data-print-section="adminReportsAll"] .admin-report-section,
    body[data-print-section="judgeSignatureReport"] .admin-report-section,
    body[data-print-section="studentSignatureReport"] .admin-report-section {
        border: 0;
        margin: 0 0 14px;
        overflow: visible;
        padding: 0;
    }
    body[data-print-section="adminReportsAll"] .admin-report-section .toolbar button,
    body[data-print-section="judgeSignatureReport"] .admin-report-section .toolbar button,
    body[data-print-section="studentSignatureReport"] .admin-report-section .toolbar button,
    body[data-print-section="adminReportsAll"] .admin-report-section .toolbar .button,
    body[data-print-section="judgeSignatureReport"] .admin-report-section .toolbar .button,
    body[data-print-section="studentSignatureReport"] .admin-report-section .toolbar .button {
        display: none !important;
    }
    body[data-print-section="adminReportsAll"] .report-page-nav,
    body[data-print-section="adminReportsAll"] .report-filter {
        display: none !important;
    }
    body[data-print-section="adminReportsAll"] .report-print-header {
        display: block;
        margin-bottom: 12px;
        position: relative;
    }
    body[data-print-section="adminReportsAll"] .judge-overview-print-header {
        display: none;
    }
    body[data-print-section="adminReportsAll"] .report-print-header.has-print-logo {
        min-height: 70px;
        padding-left: 76px;
    }
    body[data-print-section="adminReportsAll"] .report-print-logo {
        display: block;
        height: 64px;
        left: 0;
        object-fit: contain;
        position: absolute;
        top: 0;
        width: 64px;
    }
    body[data-print-section="adminReportsAll"] .report-print-header h2 {
        font-size: 22px;
        margin: 0 0 4px;
        text-align: center;
    }
    body[data-print-section="adminReportsAll"] .report-print-header h3 {
        font-family: 'Kanit', sans-serif;
        font-size: 18px;
        font-weight: 600;
        line-height: 1.25;
        margin: 0 0 4px;
        text-align: center;
    }
    body[data-print-section="adminReportsAll"] .report-print-header .registrations-print-meta {
        border: 0;
        border-radius: 0;
        display: grid;
        gap: 4px 10px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding: 0;
    }
    body[data-print-section="adminReportsAll"] .report-print-header .registrations-print-meta strong {
        grid-column: 1 / -1;
        text-align: left;
    }
    body[data-print-section="adminReportsAll"] .report-print-header .registrations-print-meta span {
        display: block;
        font-size: 12px;
    }
    body[data-print-section="adminReportsAll"] .report-print-header + .toolbar,
    body[data-print-section="adminReportsAll"] .report-print-header ~ .report-lead {
        display: none !important;
    }
    body[data-print-section="adminReportsAll"] .admin-report-section .toolbar,
    body[data-print-section="judgeSignatureReport"] .admin-report-section .toolbar,
    body[data-print-section="studentSignatureReport"] .admin-report-section .toolbar {
        display: block;
        margin-bottom: 8px;
    }
    body[data-print-section="adminReportsAll"] .admin-report-section h2,
    body[data-print-section="judgeSignatureReport"] .admin-report-section h2,
    body[data-print-section="studentSignatureReport"] .admin-report-section h2 {
        font-size: 20px;
        margin: 0 0 8px;
        text-align: center;
    }
    body[data-print-section="adminReportsAll"] .report-table,
    body[data-print-section="adminReportsAll"] .signature-table,
    body[data-print-section="judgeSignatureReport"] .signature-table,
    body[data-print-section="studentSignatureReport"] .signature-table {
        min-width: 0;
        table-layout: fixed;
        width: 100%;
    }
    body[data-print-section="adminReportsAll"] .admin-report-section th,
    body[data-print-section="adminReportsAll"] .admin-report-section td,
    body[data-print-section="judgeSignatureReport"] .admin-report-section th,
    body[data-print-section="judgeSignatureReport"] .admin-report-section td,
    body[data-print-section="studentSignatureReport"] .admin-report-section th,
    body[data-print-section="studentSignatureReport"] .admin-report-section td {
        font-size: 12px;
        padding: 5px;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    body[data-print-section="adminReportsAll"] .signature-group,
    body[data-print-section="judgeSignatureReport"] .signature-group,
    body[data-print-section="studentSignatureReport"] .signature-group {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    body[data-print-section="adminReportsAll"] .signature-report-page + .signature-report-page,
    body[data-print-section="judgeSignatureReport"] .signature-report-page + .signature-report-page {
        break-before: page;
        page-break-before: always;
    }
    body[data-print-section="adminReportsAll"] .signature-cell,
    body[data-print-section="judgeSignatureReport"] .signature-cell,
    body[data-print-section="studentSignatureReport"] .signature-cell {
        height: 38px;
        min-width: 0;
    }
    body[data-print-section="adminReportsAll"] .report-bordered-table {
        border: 0;
        border-bottom: 1px solid #333;
        border-top: 3px double #333;
    }
    body[data-print-section="adminReportsAll"] .report-bordered-table th,
    body[data-print-section="adminReportsAll"] .report-bordered-table td {
        border: 0;
        border-bottom: 1px dashed #666;
    }
    body[data-print-section="adminReportsAll"] .report-bordered-table tbody tr:last-child td {
        border-bottom: 0;
    }
    .judge-photo-preview {
        display: none !important;
    }
}
@media (max-width: 560px) {
    .grid { grid-template-columns: 1fr; }
    .login-page, .auth-page { padding: 14px; }
    .login-shell { min-height: 0; }
    .login-brand-panel { padding: 24px; }
    .login-card { padding: 24px; }
    .register-hero,
    .form-section,
    .register-actions { padding: 20px; }
    .register-actions .actions,
    .register-actions .button,
    .register-actions button { width: 100%; }
    .admin-registrations-filter {
        flex-wrap: wrap;
        width: 100%;
    }
    .admin-registrations-filter input,
    .admin-registrations-filter button {
        min-width: 0;
        width: 100%;
    }
    .report-page-nav { grid-template-columns: 1fr; }
}
