:root {
    color-scheme: light;
    --ink: #17212b;
    --muted: #65717f;
    --line: #d9e1e8;
    --panel: #ffffff;
    --panel-strong: #ffffff;
    --soft: #f3f7f8;
    --page: #edf3f5;
    --input: #fbfcfd;
    --brand: #00703c;
    --brand-dark: #004d29;
    --brand-soft: #e3f2eb;
    --brand-line: #a9d3bf;
    --accent: #b12836;
    --gold: #f2b84b;
    --shadow: 0 18px 45px rgba(23, 33, 43, .1);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --ink: #edf7f2;
    --muted: #a8b8b0;
    --line: #315044;
    --panel: #12231c;
    --panel-strong: #182d24;
    --soft: #1c3329;
    --page: #09140f;
    --input: #10241b;
    --brand: #00703c;
    --brand-dark: #b8f0d3;
    --brand-soft: #173d2b;
    --brand-line: #2d7351;
    --accent: #e15b68;
    --gold: #f2c768;
    --shadow: 0 18px 45px rgba(0, 0, 0, .28);
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--page);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.45;
}

button,
input,
select {
    font: inherit;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: 12px;
    z-index: 20;
    transform: translateY(-150%);
    padding: 10px 14px;
    color: #fff;
    background: var(--brand);
    border-radius: 6px;
    font-weight: 700;
    transition: transform .18s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

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

.course-toolbar {
    position: sticky;
    top: 0;
    align-self: start;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    max-height: 100vh;
    padding: 28px;
    background: var(--panel);
    border-right: 1px solid var(--line);
    box-shadow: var(--shadow);
    z-index: 2;
}

.brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.mvcc-brand {
    display: inline-flex;
    align-items: center;
    max-width: 190px;
}

.mvcc-brand img {
    display: block;
    width: 100%;
    height: auto;
}

html[data-theme="dark"] .mvcc-brand {
    padding: 8px 10px;
    background: #fff;
    border-radius: 6px;
}

.theme-toggle {
    min-height: 38px;
    padding: 7px 12px;
    color: var(--brand-dark);
    background: var(--brand-soft);
    border: 1px solid var(--brand-line);
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
}

.course-title h1,
.results-bar h2 {
    margin: 0;
    letter-spacing: 0;
}

.course-title h1 {
    font-size: 2rem;
    line-height: 1.1;
    max-width: 100%;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--brand-dark);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.search-panel {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.field {
    display: grid;
    gap: 7px;
}

.field label,
.days-field legend {
    color: var(--ink);
    font-size: .82rem;
    font-weight: 700;
}

.field select,
.field input {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    color: var(--ink);
    background: var(--input);
    border: 1px solid var(--line);
    border-radius: 6px;
}

.field select:focus,
.field input:focus {
    outline: 3px solid rgba(0, 112, 60, .18);
    border-color: var(--brand);
}

.days-field {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    padding: 0;
    border: 0;
}

.days-field legend {
    grid-column: 1 / -1;
    margin-bottom: -1px;
}

.days-field label {
    display: block;
    min-height: 40px;
    cursor: pointer;
}

.days-field input {
    position: absolute;
    opacity: 0;
}

.days-field span {
    display: grid;
    place-items: center;
    min-height: 40px;
    color: var(--brand-dark);
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 6px;
    font-weight: 700;
}

.days-field input:checked + span {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
}

.days-field input:focus + span {
    outline: 3px solid rgba(0, 112, 60, .18);
}

.field-note {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--muted);
    font-size: .78rem;
}

.open-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 11px 12px;
    font-weight: 700;
    color: var(--brand-dark);
    background: #fff7e7;
    border: 1px solid #f2d8a7;
    background: color-mix(in srgb, var(--gold) 18%, var(--panel));
    border: 1px solid color-mix(in srgb, var(--gold) 48%, var(--line));
    border-radius: 6px;
}

.form-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.primary-button,
.secondary-button {
    min-height: 46px;
    border: 0;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}

.primary-button {
    color: #fff;
    background: var(--brand);
}

.secondary-button {
    color: var(--brand-dark);
    background: var(--soft);
    border: 1px solid var(--line);
}

.results-shell {
    min-width: 0;
    padding: 30px;
}

.view-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.view-button {
    min-height: 42px;
    padding: 8px 14px;
    color: var(--brand-dark);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
}

.view-button.is-active {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
}

.view-button span {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    min-height: 22px;
    margin-left: 4px;
    padding: 0 6px;
    color: var(--brand-dark);
    background: var(--panel-strong);
    border-radius: 999px;
}

.planner-shell {
    margin-bottom: 24px;
    padding: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.planner-header,
.planner-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.planner-header h2 {
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: 0;
}

.planner-actions {
    justify-content: flex-end;
}

.planning-note {
    padding: 7px 10px;
    color: #6b4a08;
    background: #fff3d6;
    border: 1px solid #efd18f;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
}

.compact-button {
    min-height: 36px;
    padding: 0 12px;
}

.planner-layout {
    display: grid;
    grid-template-columns: minmax(210px, 280px) minmax(0, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.planned-list {
    display: grid;
    align-content: start;
    gap: 10px;
}

.muted-text {
    margin: 0;
    color: var(--muted);
    font-size: .92rem;
}

.planned-item {
    display: grid;
    gap: 4px;
    padding: 10px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand);
    border-radius: 6px;
}

.planned-item strong {
    font-size: .92rem;
}

.planned-item span {
    color: var(--muted);
    font-size: .82rem;
}

.remove-plan {
    width: max-content;
    min-height: 30px;
    margin-top: 4px;
    padding: 4px 8px;
    color: #7a202b;
    background: #fae4e7;
    border: 1px solid #efbdc4;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}

.calendar-scroll {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.week-calendar {
    min-width: 620px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.calendar-head,
.calendar-grid {
    display: grid;
    grid-template-columns: 58px repeat(6, minmax(82px, 1fr));
}

.calendar-head {
    background: var(--soft);
    border-bottom: 1px solid var(--line);
}

.unscheduled-notice {
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    color: var(--ink);
    background: #fff7e7;
    background: color-mix(in srgb, var(--gold) 14%, var(--panel));
    border-bottom: 1px solid var(--line);
}

.unscheduled-notice span {
    color: var(--muted);
    font-size: .86rem;
}

.calendar-head div,
.time-cell,
.day-cell {
    min-height: 36px;
    padding: 8px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-size: .78rem;
}

.calendar-head div {
    color: var(--ink);
    font-weight: 700;
    text-align: center;
}

.calendar-head div:last-child,
.day-cell:nth-child(7n) {
    border-right: 0;
}

.calendar-grid {
    position: relative;
}

.time-cell {
    color: var(--muted);
    background: var(--input);
    text-align: right;
}

.day-cell {
    min-height: 52px;
    background: var(--panel-strong);
}

.course-block {
    position: absolute;
    left: calc(58px + (var(--day-index) * ((100% - 58px) / 6)) + (((100% - 58px) / 6) / var(--overlap-count, 1) * var(--overlap-index, 0)) + 4px);
    width: calc((((100% - 58px) / 6) / var(--overlap-count, 1)) - 8px);
    z-index: 1;
    min-height: 28px;
    overflow: hidden;
    padding: 7px 8px;
    color: #fff;
    background: var(--brand);
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 6px;
    box-shadow: 0 8px 18px rgba(0, 112, 60, .2);
    font-size: .76rem;
    line-height: 1.2;
}

.course-block.conflict {
    background: var(--accent);
}

.course-block strong {
    display: block;
    font-size: .78rem;
}

.results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.results-bar h2 {
    font-size: 1.55rem;
}

.results-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-toggle-button {
    min-height: 42px;
    padding: 9px 14px;
    color: var(--brand-dark);
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 6px;
    font-weight: 800;
    cursor: pointer;
}

.result-view-toggle {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}

.result-view-button {
    min-height: 42px;
    padding: 9px 16px;
    color: var(--brand-dark);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
}

.result-view-button.is-active {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
}

.auto-search-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    padding: 8px 12px;
    color: var(--brand-dark);
    background: var(--brand-soft);
    border: 1px solid var(--brand-line);
    border-radius: 999px;
    font-size: .86rem;
    font-weight: 700;
    cursor: pointer;
}

.auto-search-toggle input {
    width: 16px;
    height: 16px;
    accent-color: var(--brand);
}

.loading-strip {
    height: 4px;
    overflow: hidden;
    margin-bottom: 14px;
    background: #dce8ea;
    border-radius: 999px;
}

.loading-strip span {
    display: block;
    width: 35%;
    height: 100%;
    background: var(--brand);
    animation: loading 1s ease-in-out infinite;
}

@keyframes loading {
    0% { transform: translateX(-110%); }
    100% { transform: translateX(310%); }
}

.results-grid {
    display: grid;
    gap: 12px;
}


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

.results-pagination span {
    min-width: 100px;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 700;
    text-align: center;
}

.results-pagination button:disabled {
    cursor: not-allowed;
    opacity: .5;
}

.results-footer {
    margin-top: 28px;
    padding-top: 16px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: .75rem;
    line-height: 1.5;
    text-align: center;
}

.compact-results-scroll {
    overflow-x: auto;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.compact-results-table {
    width: 100%;
    min-width: 1120px;
    border-collapse: collapse;
    font-size: .9rem;
}

.compact-results-table th,
.compact-results-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.compact-results-table th {
    color: var(--ink);
    background: var(--soft);
    font-size: .78rem;
    text-transform: uppercase;
}

.compact-results-table tbody tr:nth-child(even) {
    background: var(--panel-strong);
}

.compact-results-table tbody tr.compact-linked-group-odd {
    background: var(--brand-soft);
}

.compact-results-table tbody tr.compact-linked-group-even {
    background: var(--soft);
}

.compact-results-table tbody tr.compact-linked-parent td:first-child,
.compact-results-table tbody tr.compact-linked-child td:first-child {
    border-left: 3px solid #00703c;
}

.compact-results-table tbody tr.compact-linked-child.compact-linked-same-page td:first-child {
    position: relative;
    padding-left: 28px;
}

.compact-results-table tbody tr.compact-linked-child.compact-linked-same-page td:first-child::before {
    position: absolute;
    top: 0;
    left: 9px;
    width: 10px;
    height: 50%;
    border-bottom: 2px solid #00703c;
    border-left: 2px solid #00703c;
    content: "";
}

.compact-results-table tbody tr.compact-linked-cross-page td:first-child {
    border-left-style: dashed;
}

.compact-results-table td .compact-relation-note,
.compact-results-table td .compact-relation-label {
    margin-top: 4px;
    color: var(--ink);
    font-size: .78rem;
    line-height: 1.3;
}

.compact-results-table td .compact-relation-label {
    margin-top: 0;
    margin-bottom: 4px;
    font-weight: 700;
}

.compact-related-page {
    display: inline;
    min-height: 0;
    padding: 0;
    color: var(--brand-dark);
    background: transparent;
    border: 0;
    border-bottom: 1px solid currentColor;
    border-radius: 0;
    font: inherit;
    font-weight: 700;
    line-height: inherit;
    cursor: pointer;
}

.course-description-trigger {
    display: inline;
    padding: 0;
    color: var(--brand-dark);
    background: transparent;
    border: 0;
    border-bottom: 2px dotted var(--brand-line);
    font-weight: 700;
    text-align: left;
    cursor: help;
}

.course-description-tooltip {
    position: fixed;
    z-index: 30;
    width: min(360px, calc(100vw - 24px));
    max-height: min(60vh, 420px);
    overflow-y: auto;
    padding: 14px 16px;
    color: var(--ink);
    background: var(--panel);
    border: 3px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .3);
    font-size: .92rem;
    font-weight: 400;
    line-height: 1.45;
}

.course-description-tooltip h4 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.course-description-tooltip p {
    margin: 0;
}

.compact-results-table td span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
}

.compact-plan-button {
    min-height: 32px;
    margin-top: 0;
    padding: 6px 8px;
    white-space: nowrap;
}
.course-card,
.empty-state {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.course-card {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(220px, .8fr);
    gap: 18px;
    padding: 18px;
}

.course-main h3 {
    margin: 0 0 4px;
    font-size: 1.18rem;
}

.linked-session {
    display: inline;
    padding: 0 2px;
    color: var(--brand-dark);
    background: transparent;
    border: 0;
    border-bottom: 2px solid var(--brand-line);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.linked-session:focus {
    outline: 3px solid rgba(0, 112, 60, .18);
    outline-offset: 2px;
}

.linked-session-panel {
    grid-column: 1 / -1;
    display: grid;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.linked-session-panel h4 {
    margin: 0;
}

.linked-session-panel-inline {
    margin-top: 4px;
}

.linked-session-panel p {
    margin: 0;
    color: var(--muted);
}

.linked-session-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 6px;
}

.linked-session-card div {
    display: grid;
    gap: 3px;
}

.linked-session-card span {
    color: var(--muted);
    font-size: .88rem;
}

.linked-plan-button {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 7px 10px;
    color: #fff;
    background: var(--brand);
    border: 0;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}

.linked-plan-button.is-added {
    color: var(--brand-dark);
    background: var(--brand-soft);
    border: 1px solid var(--brand-line);
}

.course-title-line {
    margin: 0;
    color: var(--muted);
}

.course-title-line strong {
    color: var(--ink);
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag {
    padding: 5px 8px;
    color: var(--ink);
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
}

.tag.seats-open {
    color: var(--brand-dark);
    background: var(--brand-soft);
    border-color: var(--brand-line);
}

.tag.seats-closed {
    color: #7a202b;
    background: #fae4e7;
    border-color: #efbdc4;
}

.course-side {
    display: grid;
    align-content: start;
    gap: 8px;
    color: var(--ink);
    font-size: .92rem;
}

.course-side strong {
    color: var(--ink);
}

.details-button,
.plan-button {
    width: max-content;
    min-height: 38px;
    margin-top: 6px;
    padding: 8px 12px;
    color: #fff;
    background: var(--accent);
    border: 0;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}

.plan-button {
    background: var(--brand);
}

.plan-button.is-added {
    color: var(--brand-dark);
    background: var(--brand-soft);
    border: 1px solid var(--brand-line);
}

.details-panel {
    grid-column: 1 / -1;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding-top: 0;
    color: var(--muted);
    transition: max-height .28s ease, opacity .2s ease, padding-top .2s ease;
}

.course-card.is-open .details-panel {
    max-height: 1000px;
    opacity: 1;
    padding-top: 6px;
}

.details-panel h4 {
    margin: 0 0 6px;
}

.empty-state {
    padding: 32px;
    max-width: 720px;
}

.empty-state h3 {
    margin: 0 0 8px;
}

.empty-state p {
    margin: 0;
    color: var(--muted);
}

@media (min-width: 981px) {
    .course-app.filters-collapsed {
        grid-template-columns: minmax(0, 1fr);
    }

    .course-app.filters-collapsed .course-toolbar {
        display: none;
    }
}

@media (max-width: 980px) {
    .course-app {
        display: block;
    }

    .course-toolbar {
        position: relative;
        min-height: 0;
        max-height: none;
        overflow-y: visible;
        padding: 22px;
        border-right: 0;
    }

    .course-title h1 {
        max-width: none;
        font-size: 1.7rem;
    }

    .search-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .field-term,
    .days-field,
    .open-toggle,
    .form-actions {
        grid-column: 1 / -1;
    }

    .results-shell {
        padding: 22px;
    }

    .filter-toggle-button {
        display: none;
    }

    .planner-layout {
        grid-template-columns: 1fr;
        overflow-x: hidden;
    }

    .calendar-scroll {
        max-width: 100%;
        overflow-x: auto;
    }
}

@media (max-width: 680px) {
    .search-panel,
    .course-card {
        grid-template-columns: 1fr;
    }

    .results-pagination {
        justify-content: flex-start;
    }

    .results-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .days-field {
        grid-template-columns: repeat(3, 1fr);
    }

    .planner-header,
    .planner-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .calendar-scroll {
        max-width: 100%;
        overflow-x: auto;
    }

    .week-calendar {
        min-width: 620px;
    }

    .course-description-trigger {
        min-height: 44px;
        padding: 8px 0;
        cursor: pointer;
    }

    .course-description-tooltip {
        width: auto;
        max-height: 45vh;
    }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
.days-field input:focus-visible + span {
    outline: .175rem solid #000 !important;
    outline-offset: .175rem;
}

@media print {
    @page {
        size: letter landscape;
        margin: .35in;
    }

    :root,
    html[data-theme="dark"] {
        color-scheme: light;
        --ink: #000;
        --muted: #000;
        --line: #000;
        --panel: #fff;
        --panel-strong: #fff;
        --soft: #fff;
        --page: #fff;
        --input: #fff;
        --brand: #000;
        --brand-dark: #000;
        --brand-soft: #fff;
        --brand-line: #000;
        --accent: #000;
        --gold: #000;
        --shadow: none;
    }

    html,
    body {
        width: auto;
        max-width: none;
        overflow: visible;
        color: #000 !important;
        background: #fff !important;
    }

    body {
        margin: 0;
        font-size: 9pt;
        line-height: 1.25;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body * {
        color: #000 !important;
        background: transparent !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    .course-toolbar,
    .view-switcher,
    #resultsView,
    .planner-actions,
    .filter-toggle-button,
    .remove-plan,
    .skip-link {
        display: none !important;
    }

    .course-app,
    .results-shell,
    #plannerView {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
        border: 0 !important;
        border-radius: 0 !important;
    }

    #plannerView[hidden] {
        display: none !important;
    }

    .planner-header {
        display: block;
        margin-bottom: .12in;
        padding-bottom: .08in;
        border-bottom: 2px solid #000;
    }

    .planner-header h2 {
        font-size: 15pt;
        line-height: 1.1;
    }

    .eyebrow,
    .planner-credit-total {
        margin: 0 0 3px;
        font-size: 9pt;
    }

    .planner-layout {
        display: grid;
        grid-template-columns: 1.7in minmax(0, 1fr);
        gap: .12in;
        margin-top: 0;
        overflow: visible;
    }

    .planned-list {
        gap: 5px;
    }

    .planned-item {
        break-inside: avoid;
        padding: 5px;
        border: 1px solid #000;
        border-left: 3px solid #000;
        border-radius: 0;
    }

    .planned-item strong {
        font-size: 8pt;
    }

    .planned-item span,
    .muted-text {
        font-size: 7pt;
    }

    .calendar-scroll {
        max-width: none;
        overflow: visible;
    }

    .week-calendar {
        width: 100%;
        min-width: 0;
        overflow: visible;
        border: 1px solid #000;
        border-radius: 0;
    }

    .calendar-head,
    .calendar-grid {
        grid-template-columns: .45in repeat(6, minmax(0, 1fr));
    }

    .calendar-head {
        border-bottom: 1px solid #000;
    }

    .calendar-head div,
    .time-cell,
    .day-cell {
        min-height: 28px;
        padding: 3px;
        border-color: #000;
        font-size: 6.5pt;
    }

    .day-cell {
        min-height: 42px;
    }

    .unscheduled-notice {
        padding: 5px;
        border-bottom: 1px solid #000;
    }

    .unscheduled-notice span {
        font-size: 7pt;
    }

    .course-block {
        left: calc(.45in + (var(--day-index) * ((100% - .45in) / 6)) + (((100% - .45in) / 6) / var(--overlap-count, 1) * var(--overlap-index, 0)) + 2px);
        width: calc((((100% - .45in) / 6) / var(--overlap-count, 1)) - 4px);
        min-height: 22px;
        padding: 3px;
        overflow: hidden;
        border: 1px solid #000;
        border-radius: 0;
        font-size: 6.5pt;
        line-height: 1.05;
    }

    .course-block strong {
        font-size: 6.5pt;
    }
}

@media print {
    .planner-actions {
        display: block !important;
        margin-top: 4px;
    }

    #clearPlan {
        display: none !important;
    }

    .planning-note {
        display: block;
        padding: 0;
        border: 0;
        border-radius: 0;
        font-size: 8pt;
        font-weight: 700;
        white-space: normal;
    }

    .course-block,
    .course-block.conflict {
        background: #fff !important;
        border: 2px solid #000;
    }
}

@media print {
    @page {
        size: letter landscape;
        margin: .25in;
    }

    body {
        font-size: 8pt;
        line-height: 1.15;
    }

    .planner-header {
        margin-bottom: .06in;
        padding-bottom: .04in;
    }

    .planner-header h2 {
        font-size: 13pt;
    }

    .planner-actions {
        margin-top: 2px;
    }

    .planning-note,
    .planned-item span,
    .muted-text,
    .unscheduled-notice span {
        font-size: 6.5pt;
    }

    .planner-layout {
        grid-template-columns: 1.5in minmax(0, 1fr);
        gap: .07in;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .planned-list {
        gap: 4px;
    }

    .planned-item {
        padding: 4px;
    }

    .planned-item strong {
        font-size: 7pt;
    }

    .calendar-head div,
    .time-cell,
    .day-cell {
        min-height: 22px;
        padding: 2px;
        font-size: 5.8pt;
    }

    .day-cell {
        height: 34px;
        min-height: 34px;
    }

    .unscheduled-notice {
        padding: 4px;
    }

    .course-block,
    .course-block.conflict {
        min-height: 18px;
        padding: 2px;
        font-size: 5.8pt;
        line-height: 1;
    }

    .course-block strong {
        font-size: 5.8pt;
    }
}

@media print {
    #resultsView:not([hidden]) {
        display: block !important;
    }

    #resultsView:not([hidden]) .results-bar,
    #resultsView:not([hidden]) #resultsGrid,
    #resultsView:not([hidden]) .results-pagination {
        display: revert !important;
    }

    #resultsView:not([hidden]) .compact-results-scroll {
        overflow: visible;
    }
}

/* Keep author layout rules from overriding native hidden state. */
[hidden] {
    display: none !important;
}
