:root {
    --color-navy: #002147;
    --color-navy-soft: #001F3A;
    --color-gold: #FFB800;
    --color-gold-soft: #FFF4CC;
    --color-teal: #0B6EDC;
    --color-teal-dark: #084F9E;
    --color-blue: #0B6EDC;
    --color-bg: #F4F7FB;
    --color-surface: #ffffff;
    --color-border: #DCE4EE;
    --color-muted: #66758A;
    --color-text: #12243D;
    --color-danger: #b42318;
    --color-success: #0f766e;
    --shadow-sm: 0 10px 30px rgba(11, 34, 64, 0.08);
    --shadow-md: 0 18px 45px rgba(11, 34, 64, 0.12);
    --radius-sm: 6px;
    --radius-md: 8px;
    --container: 1120px;
    --focus-ring: 0 0 0 3px rgba(255, 184, 0, 0.34);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.container {
    width: min(100% - 32px, var(--container));
    margin-inline: auto;
}

.narrow {
    max-width: 720px;
}

.sr-only,
.skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.skip-link:focus {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--color-navy);
    color: #ffffff;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 2px solid var(--color-gold);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 6px 22px rgba(0, 33, 71, 0.06);
    backdrop-filter: blur(12px);
    transition: transform 180ms ease;
    will-change: transform;
}

.site-header.is-scroll-hidden {
    transform: translateY(-100%);
}

.header-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    gap: 32px;
}

.public-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 1 300px;
    min-width: 0;
}

.public-brand-logo {
    display: block;
    width: 185px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: left center;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.primary-nav a {
    position: relative;
    color: var(--color-navy);
    font-size: 0.94rem;
    font-weight: 600;
    padding: 12px 0;
    transition: color 160ms ease;
}

.primary-nav a:not(.staff-login-link)::after {
    position: absolute;
    right: 0;
    bottom: 4px;
    left: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--color-gold);
    content: "";
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 160ms ease;
}

.primary-nav a:hover,
.primary-nav a.is-active {
    color: var(--color-navy-soft);
}

.primary-nav a:hover::after,
.primary-nav a.is-active::after {
    transform: scaleX(1);
}

.primary-nav .staff-login-link {
    border: 1px solid var(--color-navy);
    border-radius: var(--radius-sm);
    background: var(--color-navy);
    color: #ffffff;
    padding: 9px 16px;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.primary-nav .staff-login-link:hover,
.primary-nav .staff-login-link.is-active {
    border-color: var(--color-gold);
    background: var(--color-gold);
    color: var(--color-navy-soft);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #ffffff;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--color-navy);
    content: "";
}

.nav-toggle-lines::before {
    transform: translateY(-7px);
}

.nav-toggle-lines::after {
    transform: translateY(5px);
}

.timetable-anchor {
    scroll-margin-top: 106px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 10px 18px;
    font-weight: 700;
    line-height: 1.2;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--color-gold);
    color: var(--color-navy-soft);
}

.btn-primary:hover {
    background: #e0a200;
}

.btn-secondary {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.btn-outline {
    border-color: var(--color-gold);
    background: #ffffff;
    color: var(--color-navy);
}

.btn-outline:hover {
    background: var(--color-gold-soft);
}

.btn-small {
    min-height: 38px;
    padding: 8px 13px;
}

.public-hero {
    /* One quarter of the 40% panel equals an exact 10% hero overlap. */
    --hero-curve-width: 25%;
    position: relative;
    min-height: clamp(500px, 36vw, 540px);
    overflow: hidden;
    background: var(--color-navy);
    color: #ffffff;
}

.public-hero-image {
    position: absolute;
    inset: 0 auto 0 40%;
    z-index: 0;
    display: block;
    width: 60%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 34%;
}

.public-hero-panel {
    position: relative;
    z-index: 1;
    display: flex;
    width: 40%;
    min-height: inherit;
    align-items: center;
    background: var(--color-navy);
    padding: clamp(38px, 3.25vw, 48px) 0 clamp(38px, 3.25vw, 48px) max(32px, calc((100vw - var(--container)) / 2 + 16px));
}

.public-hero-panel::after,
.public-hero-panel::before {
    position: absolute;
    top: 0;
    right: calc(var(--hero-curve-width) * -1);
    width: var(--hero-curve-width);
    height: 100%;
    border-radius: 0 100% 100% 0 / 0 50% 50% 0;
    content: "";
    pointer-events: none;
}

.public-hero-panel::after {
    z-index: 0;
    background: var(--color-navy);
}

.public-hero-panel::before {
    z-index: 1;
    border-right: 3px solid var(--color-gold);
}

.public-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
    padding-right: 28px;
}

.public-hero-eyebrow {
    margin: 0 0 12px;
    color: var(--color-gold);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.public-hero-title {
    max-width: 430px;
    font-size: clamp(2.6rem, 3.1vw, 3rem);
    letter-spacing: 0;
    line-height: 1.09;
}

.public-hero-text {
    max-width: 425px;
    margin: 16px 0 0;
    color: #e5edf6;
    font-size: 1.03rem;
    line-height: 1.65;
}

.public-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.public-hero-action {
    min-width: 164px;
    min-height: 44px;
    border-radius: var(--radius-sm);
    padding: 10px 18px;
    font-size: 0.94rem;
}

.public-hero-action-primary {
    border-color: var(--color-gold);
    background: var(--color-gold);
    color: var(--color-navy-soft);
}

.public-hero-action-primary:hover {
    border-color: #e0a200;
    background: #e0a200;
}

.public-hero-action-secondary {
    border-color: rgba(255, 184, 0, 0.82);
    background: transparent;
    color: #ffffff;
}

.public-hero-action-secondary:hover {
    border-color: var(--color-gold);
    background: rgba(255, 184, 0, 0.12);
    color: #ffffff;
}

.public-hero-action:active {
    transform: translateY(0);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--color-teal);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1,
h2,
h3 {
    margin: 0;
    color: inherit;
    line-height: 1.15;
}

h1 {
    max-width: 720px;
    font-size: clamp(2.25rem, 6vw, 4rem);
}

h2 {
    color: var(--color-navy);
    font-size: clamp(1.65rem, 4vw, 2.35rem);
}

h3 {
    color: var(--color-navy);
    font-size: 1.2rem;
}

.section {
    padding: 58px 0;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 22px;
}

.timetable-card,
.results-panel {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
}

.tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--color-border);
    padding: 12px;
}

.tab {
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-muted);
    font-weight: 800;
    padding: 9px 14px;
}

.tab:hover {
    background: #f0f5fa;
}

.tab.is-active {
    border-color: var(--color-gold);
    background: var(--color-gold-soft);
    color: var(--color-navy);
}

.tab-panel {
    padding: 20px;
}

.search-form {
    display: flex;
    align-items: end;
    gap: 16px;
}

.form-grid {
    display: grid;
    flex: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.field {
    display: grid;
    gap: 7px;
    color: var(--color-navy);
    font-weight: 700;
}

.field span {
    font-size: 0.92rem;
}

select,
input[type="search"],
input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"] {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--color-text);
    padding: 10px 12px;
}

select:focus,
input[type="search"]:focus,
input[type="text"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
    border-color: var(--color-teal);
}

.status-message {
    min-height: 24px;
    margin: 16px 0;
    color: var(--color-muted);
    font-weight: 700;
}

.status-message.is-error {
    color: var(--color-danger);
}

.status-message.is-success {
    color: var(--color-success);
}

.results-panel {
    min-height: 230px;
    padding: 20px;
}

.empty-state,
.loading-state,
.no-result-state {
    display: grid;
    min-height: 190px;
    place-items: center;
    text-align: center;
}

.empty-state p,
.no-result-state p {
    max-width: 540px;
    margin: 10px auto 0;
    color: var(--color-muted);
}

.loading-state::before {
    width: 34px;
    height: 34px;
    border: 4px solid #d6eef1;
    border-top-color: var(--color-teal);
    border-radius: 999px;
    content: "";
    animation: spin 820ms linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.result-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.result-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.summary-pill {
    border: 1px solid #c9d8e8;
    border-radius: 999px;
    background: #f5f9fd;
    color: var(--color-navy);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 6px 10px;
}

.table-scroll {
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.timetable-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
    background: #ffffff;
}

.timetable-table th,
.timetable-table td {
    border-bottom: 1px solid var(--color-border);
    padding: 13px 14px;
    text-align: left;
    vertical-align: top;
}

.timetable-table th {
    background: #f1f6fb;
    color: var(--color-navy);
    font-size: 0.88rem;
    text-transform: uppercase;
}

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

.day-cell,
.time-cell {
    color: var(--color-navy);
    font-weight: 800;
    white-space: nowrap;
}

.course-title {
    display: block;
    color: var(--color-text);
    font-weight: 800;
}

.course-code {
    display: block;
    color: var(--color-muted);
    font-size: 0.9rem;
    margin-top: 2px;
}

/* Public timetable search and result UI */
.timetable-section {
    overflow: clip;
    background: #f7f5ef;
    scroll-margin-top: 92px;
}

.timetable-section-heading {
    max-width: 760px;
    margin-bottom: 26px;
}

.timetable-section-heading .eyebrow,
.timetable-mode-label,
.timetable-result-kicker {
    color: #856000;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.timetable-section-heading > p:last-child {
    max-width: 660px;
    margin: 12px 0 0;
    color: var(--color-muted);
}

.timetable-search-card {
    border: 1px solid #d6dee8;
    border-top: 3px solid var(--color-gold);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(0, 33, 71, 0.09);
}

.timetable-search-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    border-bottom: 1px solid var(--color-border);
    padding: 24px 26px 22px;
}

.timetable-mode-copy,
.timetable-mode-copy > div,
.timetable-search-form > *,
.timetable-result-identity {
    min-width: 0;
}

.timetable-mode-label,
.timetable-result-kicker {
    margin: 0 0 7px;
}

.timetable-mode-copy h3 {
    font-size: 1.4rem;
}

.timetable-mode-copy h3 + p {
    max-width: 650px;
    margin: 8px 0 0;
    color: var(--color-muted);
}

.timetable-section .timetable-mode-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 0;
    align-self: center;
    border: 1px solid #ccd6e2;
    border-radius: 7px;
    padding: 3px;
}

.timetable-section .timetable-mode-tab {
    position: relative;
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: #ffffff;
    color: var(--color-navy);
    font-size: 0.9rem;
    padding: 9px 15px;
    white-space: nowrap;
}

.timetable-section .timetable-mode-tab:hover {
    background: #f4f7fa;
}

.timetable-section .timetable-mode-tab.is-active {
    border-color: var(--color-navy);
    background: var(--color-navy);
    color: #ffffff;
    box-shadow: inset 0 -3px 0 var(--color-gold);
}

.timetable-search-body {
    padding: 22px 26px 26px;
}

.timetable-section .tab-panel {
    padding: 0;
}

.timetable-search-form {
    display: grid;
    align-items: start;
    gap: 16px;
}

.timetable-search-form-student {
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(210px, auto);
}

.timetable-search-form-faculty {
    grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(210px, auto);
}

.timetable-field {
    display: grid;
    min-width: 0;
    gap: 7px;
    color: var(--color-navy);
    font-size: 0.92rem;
    font-weight: 800;
}

.timetable-field select {
    min-width: 0;
    min-height: 46px;
    overflow: hidden;
    border-color: #cbd5e1;
    background-color: #ffffff;
    padding-right: 38px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.timetable-field select:hover {
    border-color: #aebdce;
}

.timetable-field select:focus {
    border-color: var(--color-navy);
}

.timetable-field select[aria-invalid="true"] {
    border-color: var(--color-danger);
    box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

.timetable-field-error {
    min-height: 18px;
    color: var(--color-danger);
    font-size: 0.78rem;
    font-weight: 700;
}

.timetable-submit {
    align-self: start;
    min-height: 46px;
    margin-top: 28px;
    border-radius: 6px;
    font-size: 0.91rem;
    white-space: nowrap;
}

.timetable-submit-student {
    border-color: var(--color-navy);
    background: var(--color-navy);
    color: #ffffff;
}

.timetable-submit-student:hover {
    border-color: #063563;
    background: #063563;
}

.timetable-submit-faculty {
    border-color: var(--color-gold);
    background: var(--color-gold);
    color: var(--color-navy-soft);
}

.timetable-submit-faculty:hover {
    border-color: #e0a200;
    background: #e0a200;
}

.timetable-submit:active,
.timetable-result-actions .btn:active {
    transform: translateY(0);
}

.timetable-submit:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.timetable-status {
    min-height: 0;
    margin: 14px 2px;
    font-size: 0.9rem;
}

.timetable-status:empty {
    margin-block: 10px;
}

.timetable-results {
    min-height: 0;
    border-color: #d6dee8;
    border-radius: 10px;
    padding: 24px;
}

.timetable-results.is-initial,
.timetable-results.is-empty,
.timetable-results.is-loading {
    padding: 20px 24px;
}

.timetable-initial-state,
.timetable-loading-state,
.timetable-no-result {
    display: flex;
    min-height: 76px;
    align-items: center;
    gap: 16px;
}

.timetable-initial-state svg {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    fill: none;
    stroke: var(--color-navy);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.timetable-initial-state h3,
.timetable-no-result h3 {
    font-size: 1.05rem;
}

.timetable-initial-state p,
.timetable-loading-state p,
.timetable-no-result p {
    margin: 5px 0 0;
    color: var(--color-muted);
}

.timetable-no-result {
    display: grid;
    gap: 0;
}

.timetable-spinner {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border: 3px solid #d8e1eb;
    border-top-color: var(--color-gold);
    border-radius: 50%;
    animation: spin 700ms linear infinite;
}

.timetable-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--color-border);
    margin: -2px 0 20px;
    padding: 0 0 19px;
}

.timetable-result-identity h3 {
    font-size: 1.55rem;
}

.timetable-result-identity h3:focus {
    outline: none;
}

.timetable-result-identity > p:last-child {
    margin: 7px 0 0;
    color: var(--color-muted);
    font-weight: 700;
}

.timetable-result-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
}

.timetable-change-selection {
    min-height: 40px;
    border: 0;
    background: transparent;
    color: var(--color-navy);
    font-weight: 800;
    padding: 8px 10px;
    text-decoration: underline;
    text-decoration-color: var(--color-gold);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.timetable-print-button {
    min-height: 42px;
    border-color: var(--color-navy);
    background: var(--color-navy);
    color: #ffffff;
}

.timetable-print-button:hover {
    border-color: var(--color-gold);
    background: var(--color-gold);
    color: var(--color-navy-soft);
}

.timetable-scroll-hint {
    display: none;
    margin: 0 0 9px;
    color: var(--color-muted);
    font-size: 0.82rem;
}

.weekly-grid-scroll {
    max-height: 680px;
    overflow: auto;
    border: 1px solid #cfd9e5;
    border-radius: 7px;
    scrollbar-width: thin;
}

.weekly-timetable {
    width: 100%;
    min-width: 1020px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    background: #ffffff;
}

.weekly-timetable th,
.weekly-timetable td {
    border-right: 1px solid #dde4ec;
    border-bottom: 1px solid #dde4ec;
    text-align: left;
    vertical-align: top;
}

.weekly-timetable tr > *:last-child {
    border-right: 0;
}

.weekly-timetable tbody tr:last-child > * {
    border-bottom: 0;
}

.weekly-timetable thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    height: 72px;
    background: #eef2f6;
    color: var(--color-navy);
    padding: 13px 12px;
}

.weekly-timetable .schedule-day-heading,
.weekly-timetable .schedule-day {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 112px;
    background: #f8f6f0;
}

.weekly-timetable .schedule-day-heading {
    z-index: 5;
}

.weekly-timetable .schedule-day {
    color: var(--color-navy);
    font-size: 0.92rem;
    font-weight: 800;
    padding: 16px 13px;
}

.slot-label,
.slot-time {
    display: block;
}

.slot-label {
    font-size: 0.88rem;
    font-weight: 800;
}

.slot-time {
    margin-top: 4px;
    color: #5f6d80;
    font-size: 0.73rem;
    font-weight: 700;
    white-space: nowrap;
}

.schedule-slot {
    width: calc((100% - 112px) / 5);
    height: 142px;
    padding: 7px;
}

.schedule-slot.is-empty {
    background: #fbfcfd;
}

.timetable-class {
    display: flex;
    min-height: 126px;
    height: 100%;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid #d5e0ec;
    border-left: 3px solid var(--color-navy);
    border-radius: 5px;
    background: #f4f7fb;
    color: var(--color-text);
    padding: 10px;
}

.timetable-class.is-lab {
    border-color: #e8cb78;
    border-left-color: var(--color-gold);
    background: #fff9e8;
}

.timetable-class:focus-visible {
    box-shadow: inset 0 0 0 2px var(--color-gold), var(--focus-ring);
}

.class-heading {
    display: flex;
    width: 100%;
    align-items: flex-start;
    justify-content: space-between;
    gap: 7px;
}

.class-heading strong {
    color: var(--color-navy);
    font-size: 0.86rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.class-type-badge {
    flex: 0 0 auto;
    border: 1px solid #c99800;
    border-radius: 4px;
    color: #765600;
    font-size: 0.61rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    padding: 2px 4px;
}

.class-code,
.class-context,
.class-room {
    display: block;
    overflow-wrap: anywhere;
}

.class-code {
    margin-top: 4px;
    color: var(--color-muted);
    font-size: 0.72rem;
    font-weight: 800;
}

.class-context {
    margin-top: 8px;
    color: #43546a;
    font-size: 0.74rem;
    line-height: 1.35;
}

.class-room {
    margin-top: auto;
    border: 1px solid #becbd9;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--color-navy);
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 6px;
}

.mobile-schedule-view {
    display: none;
}

.site-footer {
    position: relative;
    overflow: hidden;
    background: var(--color-navy);
}

.site-footer::before {
    position: absolute;
    top: 0;
    right: clamp(12px, 2vw, 28px);
    left: clamp(12px, 2vw, 28px);
    height: 3px;
    border-radius: 999px;
    background: var(--color-gold);
    content: "";
}

.footer-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(14px, 2vw, 28px);
    padding: 20px 0 18px;
    color: #e4eaf1;
    font-size: 0.86rem;
    line-height: 1.45;
}

.footer-shell p {
    margin: 0;
}

.footer-copy {
    text-align: left;
}

.footer-motto {
    color: var(--color-gold);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-align: center;
    white-space: nowrap;
}

.footer-credit {
    text-align: right;
}

.error-section {
    min-height: 56vh;
    display: flex;
    align-items: center;
}

.error-section p:not(.eyebrow) {
    color: var(--color-muted);
    margin: 14px 0 24px;
}

.login-page.auth-section {
    display: flex;
    min-height: calc(100svh - 149px);
    align-items: center;
    background: #f7f5ef;
    padding: clamp(30px, 5vh, 52px) 0;
}

.login-page .auth-shell {
    display: grid;
    width: min(100% - 32px, 1120px);
    min-height: clamp(480px, 39vw, 510px);
    grid-template-columns: minmax(0, 43%) minmax(0, 57%);
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #ced8e4;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 20px 52px rgba(0, 33, 71, 0.13);
}

.login-page .auth-intro {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background: var(--color-navy);
    color: #ffffff;
    padding: clamp(38px, 4vw, 52px);
}

.login-page .auth-intro-content,
.login-page .auth-back-link {
    position: relative;
    z-index: 1;
}

.login-page .auth-eyebrow,
.login-page .auth-form-kicker {
    margin: 0;
    color: var(--color-gold);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.login-page .auth-brand-accent {
    display: block;
    width: 54px;
    height: 2px;
    margin: 15px 0 22px;
    background: var(--color-gold);
}

.login-page .auth-intro h1 {
    max-width: 390px;
    color: #ffffff;
    font-size: clamp(2rem, 3.1vw, 2.7rem);
    line-height: 1.12;
}

.login-page .auth-intro h1 + p {
    max-width: 390px;
    margin: 18px 0 0;
    color: #dbe5f0;
    font-size: 1rem;
    line-height: 1.65;
}

.login-page .auth-capability-list {
    display: grid;
    gap: 10px;
    margin: 28px 0 0;
    padding: 0;
    color: #eef3f8;
    font-size: 0.91rem;
    font-weight: 700;
    list-style: none;
}

.login-page .auth-capability-list li {
    position: relative;
    padding-left: 18px;
}

.login-page .auth-capability-list li::before {
    position: absolute;
    top: 0.55em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 1px;
    background: var(--color-gold);
    content: "";
}

.login-page .auth-back-link {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    align-items: center;
    gap: 9px;
    margin-top: 30px;
    color: #ffffff;
    font-size: 0.91rem;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: var(--color-gold);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.login-page .auth-back-link:hover {
    color: var(--color-gold);
}

.text-link {
    color: var(--color-blue);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.login-page .auth-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
    padding: clamp(40px, 5vw, 66px) clamp(38px, 6vw, 74px);
}

.login-page .auth-form-header {
    margin-bottom: 27px;
}

.login-page .auth-form-kicker {
    color: #856000;
}

.login-page .auth-form-header h2 {
    margin-top: 8px;
    color: var(--color-navy);
    font-size: clamp(1.8rem, 3vw, 2.25rem);
}

.login-page .auth-form-header h2 + p {
    margin: 9px 0 0;
    color: var(--color-muted);
}

.login-page .auth-form {
    display: grid;
    gap: 18px;
}

.login-page .auth-field {
    display: grid;
    min-width: 0;
    gap: 8px;
    color: var(--color-navy);
    font-size: 0.92rem;
    font-weight: 800;
}

.login-page .auth-field > input,
.login-page .password-control {
    width: 100%;
    min-height: 50px;
    border: 1px solid #c8d3df;
    border-radius: 7px;
    background: #ffffff;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.login-page .auth-field > input {
    padding: 11px 14px;
}

.login-page .auth-field > input:hover,
.login-page .password-control:hover {
    border-color: #aebdcd;
}

.login-page .auth-field > input:focus {
    border-color: var(--color-navy);
    box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.28);
}

.login-page .auth-field > input[aria-invalid="true"],
.login-page .password-control:has(input[aria-invalid="true"]) {
    border-color: var(--color-danger);
    box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

.login-page .password-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    overflow: hidden;
}

.login-page .password-control:focus-within {
    border-color: var(--color-navy);
    box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.28);
}

.login-page .password-control input[type="password"],
.login-page .password-control input[type="text"] {
    min-width: 0;
    min-height: 48px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 11px 14px;
}

.login-page .password-toggle {
    min-width: 64px;
    min-height: 48px;
    border: 0;
    border-left: 1px solid #d5dee8;
    background: #f5f7fa;
    color: var(--color-navy);
    font-size: 0.85rem;
    font-weight: 800;
    padding: 8px 12px;
}

.login-page .password-toggle:hover {
    background: var(--color-gold-soft);
}

.login-page .auth-submit {
    width: 100%;
    min-height: 50px;
    border-color: var(--color-gold);
    border-radius: 7px;
    background: var(--color-gold);
    color: var(--color-navy-soft);
    margin-top: 3px;
}

.login-page .auth-submit:hover {
    border-color: #e0a200;
    background: #e0a200;
}

.login-page .auth-submit:active {
    transform: translateY(0);
}

.login-page .auth-submit:disabled {
    cursor: wait;
    opacity: 0.7;
    transform: none;
}

.login-page .auth-security-note {
    border-top: 1px solid var(--color-border);
    margin: 26px 0 0;
    color: var(--color-muted);
    font-size: 0.82rem;
    padding-top: 17px;
}

.alert {
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    padding: 12px 14px;
    font-weight: 700;
}

.alert-error {
    border: 1px solid #f2b8b5;
    background: #fff1f0;
    color: var(--color-danger);
}

.alert-success {
    border: 1px solid #9ed7ce;
    background: #effaf8;
    color: var(--color-success);
}

.login-page .auth-alert {
    border-radius: 7px;
    margin: 0 0 20px;
    font-size: 0.9rem;
    line-height: 1.45;
    padding: 12px 14px;
}

.login-page .auth-alert:focus {
    outline: none;
    box-shadow: var(--focus-ring);
}

.incident-id {
    border-left: 3px solid var(--color-teal);
    padding-left: 12px;
}

.app-body {
    background: var(--color-bg);
}

.app-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.app-shell.is-collapsed {
    grid-template-columns: 84px minmax(0, 1fr);
}

.app-overlay {
    display: none;
}

.app-sidebar {
    position: sticky;
    top: 0;
    z-index: 40;
    grid-column: 1;
    grid-row: 1;
    height: 100vh;
    overflow-y: auto;
    background: var(--color-navy-soft);
    color: #ffffff;
}

.app-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 16px;
}

.app-brand-mark,
.app-nav-icon,
.user-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.app-brand-mark {
    width: 42px;
    height: 42px;
    border: 2px solid var(--color-gold);
    border-radius: var(--radius-sm);
    color: var(--color-gold);
    font-weight: 800;
}

.app-brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.app-brand-text {
    display: grid;
    min-width: 0;
}

.app-brand-text small {
    color: #c6d3e1;
}

.app-sidebar-close {
    display: none;
    width: 38px;
    height: 38px;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-sm);
    background: transparent;
    color: #ffffff;
    font-size: 1.25rem;
}

.app-nav {
    display: grid;
    gap: 6px;
    padding: 14px 10px;
}

.app-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    border-radius: var(--radius-sm);
    color: #d9e5f1;
    font-weight: 800;
    padding: 10px 12px;
}

.app-nav-link:hover,
.app-nav-link.is-active {
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
}

.app-nav-link.is-active::before {
    position: absolute;
    left: 0;
    width: 4px;
    height: 26px;
    border-radius: 0 4px 4px 0;
    background: var(--color-gold);
    content: "";
}

.app-nav-icon {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-sm);
    color: var(--color-gold);
    background: rgba(255, 255, 255, 0.04);
}

.app-nav-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.app-nav-link:hover .app-nav-icon,
.app-nav-link.is-active .app-nav-icon {
    border-color: rgba(255, 184, 0, 0.42);
    background: rgba(255, 184, 0, 0.12);
    color: #ffd76a;
}

.app-shell.is-collapsed .app-brand-text,
.app-shell.is-collapsed .app-nav-label {
    display: none;
}

.app-shell.is-collapsed .app-sidebar-brand,
.app-shell.is-collapsed .app-nav-link {
    justify-content: center;
}

.app-shell.is-collapsed .app-nav-link {
    padding-inline: 8px;
}

.app-main {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    min-height: 100vh;
    flex-direction: column;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 18px;
    border-bottom: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.96);
    padding: 12px 24px;
}

.app-topbar-left {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
}

.app-topbar h1 {
    color: var(--color-navy);
    font-size: 1.2rem;
}

.app-icon-button {
    width: 42px;
    height: 42px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--color-navy);
    font-size: 1.25rem;
    font-weight: 800;
}

.user-menu {
    position: relative;
    width: max-content;
    max-width: min(340px, 42vw);
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    gap: 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--color-text);
    padding: 6px 9px 6px 7px;
    transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.user-menu-trigger:hover,
.user-menu-trigger[aria-expanded="true"] {
    border-color: #c8d5e4;
    background: #f7fafc;
}

.user-menu-trigger[aria-expanded="true"] {
    box-shadow: 0 8px 22px rgba(11, 34, 64, 0.08);
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--color-navy);
    color: var(--color-gold);
    font-weight: 800;
}

.user-menu-chevron {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: var(--color-muted);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
    transition: transform 160ms ease, stroke 160ms ease;
}

.user-menu-trigger:hover .user-menu-chevron,
.user-menu-trigger[aria-expanded="true"] .user-menu-chevron {
    stroke: var(--color-navy);
}

.user-menu-trigger[aria-expanded="true"] .user-menu-chevron {
    transform: rotate(180deg);
}

.user-menu-text,
.user-menu-details {
    display: grid;
    min-width: 0;
    text-align: left;
}

.user-menu-text {
    gap: 1px;
}

.user-menu-text span,
.user-menu-text small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-text span,
.user-menu-details strong {
    color: var(--color-navy);
    font-weight: 800;
}

.user-menu-text small,
.user-menu-details span,
.user-menu-details small {
    color: var(--color-muted);
}

.user-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(11, 34, 64, 0.16);
    padding: 10px;
}

.user-menu-details {
    gap: 3px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 8px;
    padding: 6px 6px 12px;
}

.user-menu-details strong,
.user-menu-details span,
.user-menu-details small {
    overflow-wrap: anywhere;
}

.logout-button {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--color-danger);
    font-weight: 800;
    transition: background 160ms ease, border-color 160ms ease;
}

.logout-button:hover {
    border-color: #f2b8b5;
    background: #fff1f0;
}

.app-content {
    flex: 1;
    padding: 28px;
}

.welcome-state,
.app-error-state {
    max-width: 760px;
    border: 1px solid var(--color-border);
    border-left: 5px solid var(--color-gold);
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    padding: 28px;
}

.welcome-state h2,
.app-error-state h2 {
    color: var(--color-navy);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.welcome-state p:not(.eyebrow),
.app-error-state p:not(.eyebrow) {
    color: var(--color-muted);
    margin: 12px 0 0;
}

.app-error-state .btn {
    margin-top: 22px;
}

.app-footer {
    border-top: 1px solid var(--color-border);
    color: var(--color-muted);
    padding: 16px 28px;
}

.app-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px 18px;
    flex-wrap: wrap;
}

.app-footer p {
    margin: 0;
    font-size: 0.9rem;
}

.module-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.module-heading h2 {
    color: var(--color-navy);
}

.module-heading p:not(.eyebrow) {
    margin: 8px 0 0;
    color: var(--color-muted);
}

.user-management-heading {
    align-items: center;
    margin-bottom: 16px;
}

.user-management-heading .btn {
    flex: 0 0 auto;
}

.academic-setup-heading {
    align-items: center;
    margin-bottom: 16px;
}

.academic-subnav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
    padding: 8px;
    scrollbar-width: thin;
}

.academic-subnav-link {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--color-muted);
    font-size: 0.92rem;
    font-weight: 800;
    padding: 9px 12px;
    white-space: nowrap;
}

.academic-subnav-link svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.academic-subnav-link:hover,
.academic-subnav-link:focus-visible {
    border-color: var(--color-gold);
    background: var(--color-gold-soft);
    color: var(--color-navy);
    outline: none;
}

.academic-subnav-link.is-active {
    border-color: var(--color-navy);
    background: var(--color-navy);
    color: var(--color-gold);
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(170px, 220px) minmax(150px, 190px) auto;
    align-items: end;
    gap: 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    margin-bottom: 18px;
    padding: 16px;
}

.filter-actions,
.row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.academic-subnav,
.filter-bar,
.data-panel {
    box-sizing: border-box;
    width: 100%;
}

.room-filter-bar {
    grid-template-columns:
        minmax(190px, 1.35fr)
        minmax(130px, 0.9fr)
        minmax(145px, 1fr)
        minmax(160px, 1.1fr)
        minmax(112px, 0.7fr)
        minmax(125px, 0.8fr);
}

.room-master-filter-bar {
    grid-template-columns: minmax(220px, 1fr) auto;
}

.room-filter-bar .field,
.room-master-filter-bar .field {
    min-width: 0;
    margin: 0;
}

.room-filter-bar .filter-actions,
.room-master-filter-bar .filter-actions {
    align-items: end;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.room-filter-bar .filter-actions {
    grid-column: 1 / -1;
    justify-self: end;
}

.room-filter-bar .btn,
.room-master-filter-bar .btn {
    min-height: 42px;
    white-space: nowrap;
}

.room-management-table {
    min-width: 980px;
}

.room-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.room-modal-grid .field {
    margin: 0;
}

.room-modal-submit {
    grid-column: 1 / -1;
}

.data-panel {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.data-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--color-border);
    padding: 16px 18px;
}

.data-panel-header span,
.muted-text {
    color: var(--color-muted);
}

.department-table-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-bottom: 1px solid var(--color-border);
    background: #fbfcfe;
    padding: 10px 18px;
}

.department-filter-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: min(100%, 320px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--color-navy);
    padding: 7px 9px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.department-filter-control:hover {
    border-color: #cfd8e5;
    background: #fdfefe;
}

.department-filter-control:focus-within {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(245, 184, 0, 0.18);
}

.department-filter-control svg {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.department-filter-control label {
    flex: 0 0 auto;
    color: var(--color-muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.department-filter-control select {
    min-width: 0;
    flex: 1 1 auto;
    border: 0;
    background: transparent;
    color: var(--color-navy);
    font-weight: 800;
    padding: 2px 0;
}

.department-filter-control select:focus {
    outline: none;
}

.program-filter-card,
.batch-filter-card {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) minmax(210px, 1fr) minmax(160px, 220px) auto;
    align-items: end;
    gap: 12px;
    border-bottom: 1px solid var(--color-border);
    background: #fbfcfe;
    padding: 14px 18px;
}

.program-filter-card .field,
.batch-filter-card .field {
    margin: 0;
}

.program-filter-card .filter-actions,
.batch-filter-card .filter-actions {
    align-self: end;
}

.batch-filter-card {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
    gap: 14px;
    padding: 16px 18px;
}

.batch-filter-card > * {
    min-width: 0;
}

.batch-filter-card .batch-filter-wide {
    grid-column: span 2;
}

.batch-filter-card select {
    overflow: hidden;
    min-width: 0;
    padding-right: 36px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.batch-filter-card .filter-actions {
    display: flex;
    align-items: center;
    align-self: end;
    justify-content: flex-end;
    gap: 10px;
    grid-column: span 2;
    min-height: 44px;
}

.batch-filter-card .filter-actions .btn {
    min-height: 44px;
    white-space: nowrap;
}

.batch-load-error {
    margin: 0 18px 14px;
}

.batch-load-more {
    display: flex;
    justify-content: center;
    padding: 16px 18px 18px;
}

.batch-load-more[hidden] {
    display: none;
}

.data-panel-subheader {
    display: flex;
    justify-content: flex-end;
    border-bottom: 1px solid var(--color-border);
    background: #ffffff;
    color: var(--color-muted);
    font-weight: 800;
    padding: 10px 18px;
}

.users-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

.users-table th,
.users-table td {
    border-bottom: 1px solid var(--color-border);
    padding: 13px 14px;
    text-align: left;
    vertical-align: middle;
}

.users-table th {
    background: #f7f9fc;
    color: var(--color-navy);
    font-size: 0.84rem;
    text-transform: uppercase;
}

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

.current-template-row td {
    background: #fbf7e8;
}

.empty-table-message {
    color: var(--color-muted);
    font-weight: 700;
    text-align: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 5px 9px;
}

.status-badge.is-active {
    background: #e8f7f4;
    color: var(--color-success);
}

.status-badge.is-inactive {
    background: #f2f4f7;
    color: var(--color-muted);
}

.status-badge.is-warning {
    background: var(--color-gold-soft);
    color: #7a5200;
}

.action-button {
    min-height: 34px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--color-navy);
    font-weight: 800;
    padding: 6px 10px;
}

.action-button:hover {
    background: var(--color-gold-soft);
    border-color: var(--color-gold);
}

.action-button.danger {
    color: var(--color-danger);
}

.action-button.success {
    color: #147a3f;
}

.action-button.warning {
    color: #9a6700;
}

.action-button.icon-button {
    display: inline-grid;
    place-items: center;
    width: 36px;
    min-height: 36px;
    padding: 0;
}

.action-button.icon-button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.action-button.icon-button.danger:hover {
    border-color: #f2b8b5;
    background: #fff1f0;
}

.action-button.icon-button.success:hover {
    border-color: #9bd8b5;
    background: #edfdf4;
}

.action-button.icon-button.warning:hover {
    border-color: #f0cf75;
    background: var(--color-gold-soft);
}

.users-table .row-actions {
    flex-wrap: nowrap;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
}

.pagination a,
.pagination span {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--color-navy);
    font-weight: 800;
    padding: 8px 11px;
}

.page-tabs {
    margin-bottom: 16px;
}

.mt-18 {
    margin-top: 18px;
}

.inline-form {
    display: inline-flex;
}

select[multiple] {
    min-height: 112px;
}

.modal[hidden] {
    display: none;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    background: rgba(0, 31, 58, 0.58);
    padding: 20px;
}

.modal-dialog {
    position: relative;
    width: min(100%, 560px);
    max-height: min(720px, calc(100vh - 40px));
    overflow-y: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-md);
    padding: 22px;
}

.modal-dialog h3 {
    margin-bottom: 16px;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--color-navy);
    font-size: 1.2rem;
}

.modal-form {
    display: grid;
    gap: 14px;
}

.template-modal-dialog {
    width: min(100%, 780px);
}

.template-builder-form {
    gap: 16px;
}

.template-form-section {
    display: grid;
    gap: 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #fbfcfe;
    padding: 14px;
}

.template-form-section h4 {
    margin: 0;
    color: var(--color-navy);
    font-size: 0.95rem;
}

.template-builder-form input[type="time"] {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--color-text);
    padding: 10px 12px;
}

.template-builder-form input[type="time"]:focus {
    border-color: var(--color-teal);
}

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

.weekday-grid label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text);
    font-weight: 700;
}

.slot-generator-grid {
    display: grid;
    grid-template-columns: minmax(120px, 150px) minmax(150px, 1fr) minmax(150px, 1fr) auto;
    align-items: end;
    gap: 12px;
}

.generated-slots {
    display: grid;
    gap: 10px;
}

.generated-slot-row {
    display: grid;
    grid-template-columns: 54px minmax(130px, 1fr) minmax(130px, 1fr);
    align-items: end;
    gap: 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #ffffff;
    padding: 10px;
}

.generated-slot-row strong {
    align-self: center;
    color: var(--color-navy);
}

.generated-slot-time input[type="time"] {
    min-height: 40px;
    padding: 8px 10px;
}

.day-chip-list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.day-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border: 1px solid #d6e0ea;
    border-radius: 999px;
    background: #f7f9fc;
    color: var(--color-navy);
    font-size: 0.82rem;
    font-weight: 800;
    padding: 4px 9px;
}

.template-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--color-border);
    padding: 14px 18px;
}

.hod-assignment {
    display: grid;
    gap: 14px;
    min-width: 0;
    margin: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 14px;
}

.hod-assignment[hidden] {
    display: none;
}

.hod-assignment legend {
    color: var(--color-navy);
    font-weight: 800;
    padding: 0 6px;
}

.modal-summary {
    color: var(--color-muted);
    margin: 0 0 16px;
}

.warning-box {
    border: 1px solid #f2b8b5;
    border-radius: var(--radius-sm);
    background: #fff1f0;
    color: var(--color-danger);
    font-weight: 800;
    padding: 12px;
}

.academic-notice {
    margin: 14px 18px 0;
}

.instructor-filter-bar {
    grid-template-columns: minmax(220px, 1fr) minmax(170px, 220px) minmax(160px, 210px) minmax(140px, 180px) auto;
}

.instructor-table {
    min-width: 860px;
    table-layout: fixed;
}

.instructor-table th,
.instructor-table td {
    height: 60px;
    padding: 13px 10px;
    line-height: 1.35;
    vertical-align: middle;
}

.instructor-table th {
    line-height: 1.25;
}

.instructor-table td:first-child strong {
    display: block;
    overflow-wrap: anywhere;
}

.instructor-table th:nth-child(1),
.instructor-table td:nth-child(1) {
    width: 18%;
}

.instructor-table th:nth-child(2),
.instructor-table td:nth-child(2) {
    width: 12%;
}

.instructor-table th:nth-child(3),
.instructor-table td:nth-child(3) {
    width: 10%;
}

.instructor-table th:nth-child(4),
.instructor-table td:nth-child(4) {
    width: 20%;
}

.instructor-table th:nth-child(5),
.instructor-table td:nth-child(5) {
    width: 11%;
}

.instructor-table th:nth-child(6),
.instructor-table td:nth-child(6) {
    width: 10%;
}

.instructor-table th:nth-child(7),
.instructor-table td:nth-child(7) {
    width: 19%;
}

.instructor-row-actions {
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
    white-space: nowrap;
}

.instructor-row-actions .inline-form {
    flex: 0 0 auto;
}

.instructor-row-actions .action-button.icon-button {
    display: inline-grid;
    width: 32px;
    height: 32px;
    min-height: 32px;
    place-items: center;
    border-width: 1px;
    border-radius: var(--radius-sm);
    padding: 0;
}

.instructor-row-actions .action-button.icon-button svg {
    width: 16px;
    height: 16px;
}

.instructor-department-codes {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.instructor-department-code {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border: 1px solid #c9d8e5;
    border-radius: 999px;
    background: #eef4f8;
    color: var(--color-navy);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    padding: 5px 9px;
}

.instructor-load-error {
    margin: 0 18px 14px;
}

.instructor-load-more {
    display: flex;
    justify-content: center;
    padding: 16px 18px 18px;
}

.instructor-load-more[hidden] {
    display: none;
}

.instructor-department-picker {
    position: relative;
    min-width: 0;
}

.instructor-picker-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--color-text);
    padding: 10px 12px;
    text-align: left;
}

.instructor-picker-toggle:focus-visible,
.instructor-picker-toggle[aria-expanded="true"] {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px var(--color-gold-soft);
    outline: none;
}

.instructor-picker-panel {
    position: absolute;
    z-index: 6;
    top: calc(100% - 2px);
    right: 0;
    left: 0;
    min-width: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #ffffff;
    box-shadow: var(--shadow-md);
    padding: 10px;
}

.instructor-picker-panel[hidden],
.instructor-picker-group[hidden],
.instructor-picker-option[hidden] {
    display: none;
}

.instructor-picker-search {
    display: block;
    margin-bottom: 8px;
}

.instructor-picker-search input {
    min-height: 40px;
}

.instructor-picker-options {
    max-height: 240px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.instructor-picker-group {
    min-width: 0;
    margin: 0;
    border: 0;
    padding: 0 0 8px;
}

.instructor-picker-group:last-child {
    padding-bottom: 0;
}

.instructor-picker-group legend {
    width: 100%;
    color: var(--color-navy);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 8px 8px 4px;
}

.instructor-picker-option {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 8px;
}

.instructor-picker-option:hover,
.instructor-picker-option:focus-within {
    background: #f3f6fa;
}

.instructor-picker-option input {
    flex: 0 0 auto;
    margin-top: 3px;
}

.instructor-picker-option > span {
    display: grid;
    min-width: 0;
    gap: 2px;
    font-size: 0.88rem;
}

.instructor-picker-option strong,
.instructor-picker-option small {
    overflow-wrap: anywhere;
}

.instructor-picker-option small {
    color: var(--color-muted);
    font-weight: 500;
}

.instructor-picker-empty {
    margin: 8px;
    color: var(--color-muted);
    font-size: 0.88rem;
}

.instructor-selected-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.instructor-selected-chips:empty {
    display: none;
}

.instructor-selected-chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    gap: 5px;
    border: 1px solid #c9d8e5;
    border-radius: 999px;
    background: #eef4f8;
    color: var(--color-navy);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 5px 4px 9px;
}

.instructor-selected-chip button {
    display: grid;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
}

.instructor-selected-chip button:hover,
.instructor-selected-chip button:focus-visible {
    background: #d8e5ed;
    outline: none;
}

.modal-dialog-wide {
    width: min(100%, 920px);
}

.availability-template {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #f7f9fc;
    color: var(--color-navy);
    font-weight: 800;
    padding: 10px 12px;
}

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

.availability-day {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #ffffff;
    padding: 12px;
}

.availability-day h4 {
    margin: 0 0 10px;
    color: var(--color-navy);
}

.availability-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.availability-day-header h4 {
    min-width: 0;
    margin: 0;
}

.availability-day-toggle {
    flex: 0 1 auto;
    min-height: 28px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #f7f9fc;
    color: var(--color-navy);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.15;
    padding: 5px 7px;
    text-align: center;
}

.availability-day-toggle:hover,
.availability-day-toggle:focus-visible {
    border-color: var(--color-gold);
    background: var(--color-gold-soft);
    outline: none;
}

.availability-slot {
    display: grid;
    gap: 6px;
    margin-top: 10px;
    color: var(--color-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

@media (max-width: 980px) {
    .timetable-search-header {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 18px;
    }

    .timetable-section .timetable-mode-tabs {
        width: min(100%, 440px);
    }

    .timetable-search-form-student,
    .timetable-search-form-faculty {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .timetable-search-form-student .timetable-submit,
    .timetable-search-form-faculty .timetable-submit {
        width: 100%;
        margin-top: 28px;
    }

    .timetable-scroll-hint {
        display: block;
    }
}

@media (max-width: 860px) {
    .header-shell {
        min-height: 72px;
        gap: 16px;
    }

    .public-brand {
        flex-basis: 245px;
    }

    .public-brand-logo {
        width: 165px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .primary-nav {
        position: absolute;
        top: 100%;
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        background: #ffffff;
        box-shadow: var(--shadow-md);
        padding: 10px;
    }

    .primary-nav.is-open {
        display: flex;
    }

    .primary-nav a {
        width: 100%;
        padding: 11px 12px;
    }

    .primary-nav a:not(.staff-login-link)::after {
        right: 12px;
        bottom: 5px;
        left: 12px;
        transform-origin: left;
    }

    .primary-nav .staff-login-link {
        text-align: center;
    }

    .public-hero {
        --hero-curve-width: 25%;
        min-height: clamp(480px, 60vw, 520px);
    }

    .public-hero-image {
        width: 60%;
        object-position: 52% 34%;
    }

    .public-hero-panel {
        width: 40%;
        min-height: inherit;
        align-items: center;
        padding: 36px 0 36px 32px;
    }

    .public-hero-panel::after,
    .public-hero-panel::before {
        right: calc(var(--hero-curve-width) * -1);
    }

    .public-hero-content {
        max-width: 360px;
        padding-right: 24px;
    }

    .public-hero-title {
        max-width: 340px;
        font-size: 2.35rem;
    }

    .public-hero-text {
        max-width: 340px;
        font-size: 1rem;
    }

    .footer-shell {
        gap: 12px;
        font-size: 0.8rem;
    }

    .footer-motto {
        font-size: 0.76rem;
        letter-spacing: 0.08em;
    }

    .search-form,
    .result-header,
    .auth-shell {
        align-items: stretch;
        flex-direction: column;
    }

    .auth-shell {
        display: flex;
    }

    .app-shell,
    .app-shell.is-collapsed {
        display: block;
    }

    .app-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(86vw, 310px);
        transform: translateX(-100%);
        transition: transform 180ms ease;
    }

    .app-shell.is-sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    .app-shell.is-collapsed .app-brand-text,
    .app-shell.is-collapsed .app-nav-label {
        display: grid;
    }

    .app-shell.is-collapsed .app-sidebar-brand,
    .app-shell.is-collapsed .app-nav-link {
        justify-content: flex-start;
    }

    .app-sidebar-close {
        display: inline-grid;
        place-items: center;
    }

    .app-overlay {
        position: fixed;
        inset: 0;
        z-index: 35;
        display: none;
        background: rgba(0, 31, 58, 0.48);
    }

    .app-shell.is-sidebar-open .app-overlay {
        display: block;
    }

    body.has-open-sidebar {
        overflow: hidden;
    }

    .app-topbar {
        padding-inline: 16px;
    }

    .user-menu-text {
        display: none;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .module-heading,
    .filter-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .user-management-heading {
        align-items: center;
        flex-direction: row;
    }

    .filter-bar {
        grid-template-columns: 1fr;
    }

    .room-filter-bar,
    .room-master-filter-bar,
    .room-modal-grid {
        grid-template-columns: 1fr;
    }

    .room-filter-bar .filter-actions,
    .room-master-filter-bar .filter-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .program-filter-card {
        grid-template-columns: 1fr;
    }

    .batch-filter-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .batch-filter-card .batch-filter-wide,
    .batch-filter-card .filter-actions {
        grid-column: span 2;
    }

    .batch-filter-card .filter-actions {
        align-items: center;
        flex-direction: row;
        justify-content: flex-start;
    }

    .instructor-filter-bar {
        grid-template-columns: 1fr;
    }

    .slot-generator-grid,
    .generated-slot-row {
        grid-template-columns: 1fr;
    }

    .template-preview {
        align-items: flex-start;
        flex-direction: column;
    }

    .timetable-result-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 760px) {
    .login-page.auth-section {
        min-height: 0;
        align-items: flex-start;
        padding: 30px 0;
    }

    .login-page .auth-shell {
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .login-page .auth-intro {
        border-bottom: 2px solid var(--color-gold);
        padding: 32px;
    }

    .login-page .auth-intro h1 {
        max-width: 560px;
        font-size: clamp(1.85rem, 7vw, 2.3rem);
    }

    .login-page .auth-intro h1 + p {
        max-width: 590px;
    }

    .login-page .auth-capability-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px 14px;
        margin-top: 22px;
    }

    .login-page .auth-back-link {
        margin-top: 26px;
    }

    .login-page .auth-card {
        padding: 38px 32px;
    }
}

@media (max-width: 700px) {
    .public-hero {
        display: flex;
        min-height: 0;
        flex-direction: column;
    }

    .public-hero-image {
        position: relative;
        inset: auto;
        order: 2;
        width: 100%;
        height: auto;
        aspect-ratio: 1201 / 745;
        object-position: 50% 34%;
    }

    .public-hero-panel {
        order: 1;
        width: 100%;
        min-height: 0;
        border-bottom: 2px solid var(--color-gold);
        padding: 36px 24px;
    }

    .public-hero-panel::before,
    .public-hero-panel::after {
        display: none;
    }

    .public-hero-content,
    .public-hero-title,
    .public-hero-text {
        max-width: 620px;
    }

    .public-hero-content {
        padding-right: 0;
    }

    .public-hero-title {
        font-size: 2.15rem;
        line-height: 1.12;
    }

    .public-hero-text {
        margin-top: 16px;
        line-height: 1.65;
    }

    .public-hero-actions {
        margin-top: 22px;
    }

    .footer-shell {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        padding: 18px 0 16px;
    }

    .footer-copy,
    .footer-credit {
        text-align: center;
    }

    .timetable-section {
        padding-block: 44px;
    }

    .timetable-search-header,
    .timetable-search-body {
        padding-inline: 18px;
    }

    .timetable-search-form-student,
    .timetable-search-form-faculty {
        grid-template-columns: 1fr;
    }

    .timetable-search-form-student .timetable-submit,
    .timetable-search-form-faculty .timetable-submit {
        margin-top: 0;
    }

    .timetable-section .timetable-mode-tabs {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .timetable-section .timetable-mode-tab {
        padding-inline: 9px;
        text-align: center;
        white-space: normal;
    }

    .timetable-results {
        padding: 18px;
    }

    .timetable-result-header {
        gap: 16px;
        margin-bottom: 16px;
        padding-bottom: 16px;
    }

    .timetable-result-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .timetable-result-actions > * {
        width: 100%;
    }

    .weekly-grid-view {
        display: none;
    }

    .mobile-schedule-view {
        display: block;
    }

    .mobile-day-tabs {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 4px;
        border-bottom: 1px solid var(--color-border);
        padding-bottom: 10px;
    }

    .mobile-day-tab {
        min-width: 0;
        min-height: 40px;
        border: 1px solid #cbd5e1;
        border-radius: 5px;
        background: #ffffff;
        color: var(--color-navy);
        font-size: 0.79rem;
        font-weight: 800;
        padding: 7px 3px;
    }

    .mobile-day-tab:hover {
        background: #f4f7fa;
    }

    .mobile-day-tab.is-active {
        border-color: var(--color-navy);
        background: var(--color-navy);
        color: #ffffff;
        box-shadow: inset 0 -3px 0 var(--color-gold);
    }

    .mobile-day-panels {
        margin-top: 14px;
    }

    .mobile-day-panel {
        display: grid;
        gap: 10px;
    }

    .mobile-day-panel[hidden] {
        display: none;
    }

    .mobile-day-panel .timetable-class {
        min-height: 0;
        height: auto;
        padding: 13px;
    }

    .mobile-class-time {
        margin: 0 0 8px;
        color: #715300;
        font-size: 0.76rem;
        font-weight: 900;
    }

    .mobile-day-panel .class-heading strong {
        font-size: 0.96rem;
    }

    .mobile-day-panel .class-room {
        margin-top: 10px;
    }

    .mobile-empty-day {
        border: 1px dashed #cbd5e1;
        border-radius: 6px;
        margin: 0;
        color: var(--color-muted);
        padding: 22px 16px;
        text-align: center;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 24px, var(--container));
    }

    .public-brand {
        flex-basis: 205px;
    }

    .public-brand-logo {
        width: 145px;
    }

    .public-hero-panel {
        padding: 32px 20px;
    }

    .tabs {
        flex-direction: column;
    }

    .tab {
        width: 100%;
        text-align: left;
    }

    .public-hero-actions,
    .public-hero-action {
        width: 100%;
    }

    .public-hero-title {
        font-size: 2rem;
    }

    .login-page .auth-shell {
        width: min(100% - 24px, 1120px);
        border-radius: 9px;
    }

    .login-page .auth-intro,
    .login-page .auth-card {
        padding: 28px 22px;
    }

    .login-page .auth-capability-list {
        display: none;
    }

    .login-page .auth-brand-accent {
        margin-block: 13px 18px;
    }

    .login-page .auth-intro h1 + p {
        margin-top: 14px;
    }

    .login-page .auth-back-link {
        margin-top: 22px;
    }

    .login-page .auth-form-header {
        margin-bottom: 23px;
    }

    .login-page .auth-security-note {
        margin-top: 22px;
    }

    .results-panel,
    .tab-panel,
    .auth-card {
        padding: 16px;
    }

    .app-content {
        padding: 18px;
    }

    .app-footer {
        padding-inline: 18px;
    }

    .app-footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .batch-filter-card {
        grid-template-columns: 1fr;
    }

    .batch-filter-card .batch-filter-wide,
    .batch-filter-card .filter-actions {
        grid-column: auto;
    }

    .batch-filter-card .filter-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .welcome-state,
    .app-error-state {
        padding: 20px;
    }
}

@media (max-height: 760px) and (min-width: 761px) {
    .login-page.auth-section {
        padding-block: 24px;
    }

    .login-page .auth-shell {
        min-height: 460px;
    }

    .login-page .auth-intro,
    .login-page .auth-card {
        padding-block: 34px;
    }

    .login-page .auth-capability-list {
        margin-top: 22px;
    }

    .login-page .auth-security-note {
        margin-top: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .public-shell {
        scroll-behavior: auto;
    }

    .public-shell .primary-nav a,
    .public-shell .primary-nav a::after,
    .public-shell .site-header {
        transition: none;
    }

    .timetable-spinner {
        animation: none;
    }
}

@media print {
    @page {
        size: landscape;
        margin: 12mm;
    }

    .site-header,
    .site-footer,
    .public-hero,
    .timetable-card,
    .timetable-section-heading,
    .timetable-search-card,
    .status-message,
    .print-button,
    .timetable-result-actions,
    .timetable-scroll-hint,
    .mobile-schedule-view,
    .app-sidebar,
    .app-topbar,
    .app-footer {
        display: none !important;
    }

    body {
        background: #ffffff;
        color: #000000;
    }

    .timetable-section {
        overflow: visible;
        background: #ffffff;
    }

    .section {
        padding: 0;
    }

    .container {
        width: 100%;
    }

    .results-panel {
        display: block !important;
        border: 0;
        box-shadow: none;
        padding: 0;
    }

    .table-scroll {
        overflow: visible;
    }

    .weekly-grid-view,
    .weekly-grid-scroll {
        display: block !important;
        max-height: none;
        overflow: visible;
        border: 0;
    }

    .timetable-result-header {
        display: block;
        border-bottom: 2px solid #000000;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

    .timetable-result-kicker,
    .timetable-result-identity h3,
    .timetable-result-identity > p:last-child {
        color: #000000;
    }

    .weekly-timetable {
        min-width: 0;
        table-layout: fixed;
        break-inside: avoid;
        font-size: 8pt;
    }

    .weekly-timetable thead {
        display: table-header-group;
    }

    .weekly-timetable tr,
    .weekly-timetable td,
    .weekly-timetable th,
    .timetable-class {
        break-inside: avoid;
    }

    .weekly-timetable thead th,
    .weekly-timetable .schedule-day-heading,
    .weekly-timetable .schedule-day {
        position: static;
        background: #eeeeee !important;
        color: #000000;
    }

    .weekly-timetable .schedule-day-heading,
    .weekly-timetable .schedule-day {
        width: 72px;
    }

    .schedule-slot {
        height: 112px;
        padding: 4px;
    }

    .timetable-class {
        min-height: 102px;
        border-color: #777777;
        background: #ffffff !important;
        color: #000000;
        padding: 6px;
    }

    .class-heading strong,
    .class-code,
    .class-context,
    .class-room {
        color: #000000;
    }
}
