:root {
    color-scheme: light;
    --ps-bg: #f5f7fb;
    --ps-surface: #ffffff;
    --ps-border: #dce3ee;
    --ps-soft-border: #e8edf5;
    --ps-text: #1f2a44;
    --ps-muted: #5f6b85;
    --ps-subtle: #8a94a6;
    --ps-accent: #2f6f62;
    --ps-lesson-bg: #ffffff;
    --ps-lesson-border: #76b6b6;
    --ps-lecture: #6fb56f;
    --ps-practice: #7b9ae8;
    --ps-lab: #76b6b6;
    --ps-credit: #d6af58;
    --ps-exam: #d97a6c;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-width: 0;
    background: var(--ps-bg);
    color: var(--ps-text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

body.is-widget {
    background: transparent;
}

body.is-widget.is-embedded {
    overflow: hidden;
}

.published-schedule {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 24px;
}

.published-schedule.is-widget {
    width: 100%;
    padding: 12px;
}

.published-schedule.is-download {
    background: #ffffff;
}

.published-schedule-head,
.published-schedule-context,
.published-schedule-empty,
.published-schedule-catalog,
.published-schedule-group {
    border: 1px solid var(--ps-border);
    border-radius: 8px;
    background: var(--ps-surface);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .08);
}

.published-schedule-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
}

.published-schedule-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: var(--ps-muted);
    font-size: 12px;
}

.published-schedule-breadcrumbs a {
    color: var(--ps-muted);
    text-decoration: none;
}

.published-schedule-breadcrumbs a:hover {
    color: var(--ps-text);
}

.published-schedule-breadcrumbs span::before {
    content: "/";
    margin-right: 6px;
    color: var(--ps-subtle);
}

.published-schedule-kicker {
    display: block;
    margin-bottom: 4px;
    color: var(--ps-muted);
    font-size: 12px;
    font-weight: 500;
}

.published-schedule h1,
.published-schedule h2 {
    margin: 0;
    letter-spacing: 0;
}

.published-schedule h1 {
    font-size: 24px;
    font-weight: 600;
}

.published-schedule.is-widget .published-schedule-head {
    align-items: center;
    gap: 12px;
    padding: 12px;
}

.published-schedule.is-widget .published-schedule-head > div {
    min-width: 0;
}

.published-schedule.is-widget h1 {
    font-size: 20px;
    line-height: 1.2;
}

.published-schedule.is-widget p {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.35;
}

.published-schedule h2 {
    font-size: 17px;
    font-weight: 600;
}

.published-schedule p {
    margin: 8px 0 0;
    color: var(--ps-muted);
}

.published-schedule-week-caption {
    margin-top: 4px;
    color: var(--ps-text);
}

.published-schedule-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 0 0 min(480px, 100%);
    justify-content: flex-end;
}

.published-schedule-actions a,
.published-schedule-actions button,
.published-schedule-context button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--ps-border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ps-text);
    font: inherit;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.published-schedule-actions a:hover,
.published-schedule-actions button:hover,
.published-schedule-context button:hover {
    border-color: #b9c6da;
}

.published-schedule-actions a:first-of-type {
    flex: 1 1 230px;
}

.published-schedule-actions [data-published-calendar-copy] {
    min-width: 148px;
}

.published-schedule-calendar-feedback {
    flex: 1 0 100%;
    margin: 0;
    color: var(--ps-muted);
    font-size: 12px;
    line-height: 1.4;
    text-align: end;
}

.published-schedule.is-widget .published-schedule-actions {
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.published-schedule.is-widget .published-schedule-actions a,
.published-schedule.is-widget .published-schedule-actions button {
    flex: 0 0 auto;
    min-width: 0;
    min-height: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
    white-space: nowrap;
}

.published-schedule.is-widget .published-schedule-actions a:first-of-type {
    flex: 0 0 auto;
}

.published-schedule.is-widget .published-schedule-actions [data-published-calendar-copy] {
    width: 148px;
    min-width: 148px;
}

.published-schedule.is-widget .published-schedule-calendar-feedback {
    font-size: 12px;
}

.published-schedule-context {
    display: flex;
    align-items: end;
    gap: 12px;
    margin-top: 12px;
    padding: 12px;
}

.published-schedule-context label {
    display: grid;
    flex: 1 1 260px;
    gap: 4px;
    min-width: 0;
    color: var(--ps-muted);
    font-size: 12px;
    font-weight: 500;
}

.published-schedule-context select {
    width: 100%;
    height: 40px;
    border: 1px solid var(--ps-border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ps-text);
    font: inherit;
}

.published-schedule-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
    padding: 0 4px;
    border-bottom: 1px solid var(--ps-border);
}

.published-schedule-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    border-bottom: 2px solid transparent;
    color: var(--ps-muted);
    font-weight: 500;
    text-decoration: none;
}

.published-schedule-tabs a:hover,
.published-schedule-tabs a.is-active {
    border-bottom-color: #4a6fb3;
    color: var(--ps-text);
}

.published-schedule-catalog {
    display: grid;
    gap: 12px;
    margin-top: 12px;
    padding: 14px;
}

.published-schedule-filter-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.published-schedule-filter-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.published-schedule-filter-field > span {
    color: var(--ps-muted);
    font-size: 12px;
    font-weight: 500;
}

.published-schedule .directory-combobox {
    position: relative;
    width: 100%;
}

.published-schedule .directory-combobox-search {
    width: 100%;
    height: 40px;
    padding: 8px 40px 8px 12px;
    border: 1px solid var(--ps-border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ps-text);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.5 7.5L10 12L14.5 7.5' fill='none' stroke='%231f2a44' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px 16px;
    box-shadow: none;
    font: inherit;
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.published-schedule .directory-combobox-search:focus {
    border-color: #a9c2e5;
    background-color: #ffffff;
    box-shadow: none;
}

.published-schedule .directory-combobox-results {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    overflow: hidden;
    padding: 0;
    border: 1px solid #dbe5f2;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 16px 32px rgba(29, 39, 56, 0.12);
}

.published-schedule .directory-combobox-results.is-hidden {
    display: none;
}

.published-schedule .directory-combobox-results-scroll {
    max-height: 260px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 6px 8px 6px 6px;
}

.published-schedule .directory-combobox-result,
.published-schedule .directory-combobox-empty {
    min-height: 34px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--ps-text);
    font-size: 13px;
}

.published-schedule .directory-combobox-result {
    cursor: pointer;
}

.published-schedule .directory-combobox-result:hover,
.published-schedule .directory-combobox-result.is-active,
.published-schedule .directory-combobox-result.is-selected {
    background: #f3f8ff;
    color: #214a86;
}

.published-schedule .directory-combobox-empty {
    color: var(--ps-subtle);
}

.published-schedule .directory-combobox-data.is-hidden {
    display: none !important;
}

.published-schedule-catalog-section {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.published-schedule-catalog-section h2 {
    font-size: 16px;
}

.published-schedule-catalog-course {
    display: grid;
    gap: 8px;
}

.published-schedule-catalog-course > span {
    color: var(--ps-muted);
    font-size: 12px;
    font-weight: 500;
}

.published-schedule-catalog-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.published-schedule-catalog-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid var(--ps-border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ps-text);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.published-schedule-catalog-links a.is-active {
    border-color: #7b9ae8;
    background: #eef3ff;
}

.published-schedule-catalog-links.is-directory a {
    display: grid;
    justify-items: start;
    min-width: 180px;
    min-height: 48px;
    padding: 7px 10px;
}

.published-schedule-catalog-links small {
    color: var(--ps-muted);
    font-size: 11px;
    font-weight: 400;
}

.published-schedule-empty {
    margin-top: 12px;
    padding: 20px;
}

.published-schedule-week-panel {
    display: grid;
    gap: 8px;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid var(--ps-border);
    border-radius: 8px;
    background: var(--ps-surface);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .08);
}

.published-schedule-week-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.published-schedule-copyright {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
    padding: 0 4px;
    color: var(--ps-subtle);
    font-size: 11px;
    line-height: 16px;
}

.published-schedule-copyright a {
    color: inherit;
    text-decoration: none;
}

.published-schedule-copyright a:hover,
.published-schedule-copyright a:focus-visible {
    color: var(--ps-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.published-schedule-week-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ps-muted);
    font-size: 14px;
    line-height: 20px;
}

.published-schedule-week-summary strong {
    color: var(--ps-text);
    font-size: 14px;
    font-weight: 600;
}

.published-schedule-week-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 4px;
}

.published-schedule-week-actions a,
.published-schedule-week-actions span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ps-border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ps-text);
    text-decoration: none;
}

.published-schedule-week-nav-control {
    width: 36px;
    height: 36px;
    padding: 0;
}

.published-schedule-week-nav-control.is-disabled {
    color: var(--ps-subtle);
    background: #f8fafd;
}

.published-schedule-week-arrow {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.published-schedule-week-current {
    min-height: 36px;
    padding: 0 10px;
    font-size: 13px;
}

.published-schedule-week-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 0;
}

.published-schedule-week-strip a {
    display: grid;
    flex: 0 0 112px;
    gap: 2px;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid var(--ps-border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ps-text);
    text-decoration: none;
}

.published-schedule-week-strip a.is-selected {
    border-color: #7b9ae8;
    background: #eef3ff;
}

.published-schedule-week-strip a.is-current:not(.is-selected) {
    border-color: #76b6b6;
}

.published-schedule-week-strip span {
    font-size: 13px;
    font-weight: 600;
}

.published-schedule-week-strip small {
    color: var(--ps-muted);
    font-size: 12px;
}

.published-schedule-groups {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.published-schedule-group {
    min-width: 0;
    padding: 16px;
}

.published-schedule-group-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.published-schedule-group-head span {
    color: var(--ps-muted);
    font-size: 12px;
}

.published-schedule-table-wrap {
    width: 100%;
    margin-top: 12px;
    overflow-x: auto;
}

.published-schedule-table {
    width: 100%;
    min-width: 860px;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
}

.published-schedule-table th,
.published-schedule-table td {
    min-width: 0;
    vertical-align: top;
    border-right: 1px solid var(--ps-soft-border);
    border-bottom: 1px solid var(--ps-soft-border);
    padding: 8px;
    text-align: left;
}

.published-schedule-table col.published-schedule-time-column {
    width: 96px;
}

.published-schedule-table col.published-schedule-empty-day-column {
    width: 8%;
}

.published-schedule-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafd;
    color: var(--ps-muted);
    font-size: 12px;
    font-weight: 600;
}

.published-schedule-table thead th span,
.published-schedule-table thead th small {
    display: block;
}

.published-schedule-table thead th small {
    margin-top: 2px;
    color: var(--ps-subtle);
    font-size: 11px;
    font-weight: 400;
}

.published-schedule-table th.is-today,
.published-schedule-table td.is-today {
    background: #f5fbfa;
}

.published-schedule-table th:first-child {
    color: var(--ps-muted);
}

.published-schedule-table tbody th {
    background: #fbfcfe;
}

.published-schedule-table tbody th span {
    display: block;
    color: var(--ps-text);
    font-size: 14px;
    font-weight: 600;
}

.published-schedule-table tbody th small {
    display: block;
    margin-top: 2px;
    color: var(--ps-muted);
    font-size: 12px;
    font-weight: 400;
}

.published-schedule-table tr:first-child th,
.published-schedule-table tr:first-child td {
    border-top: 1px solid var(--ps-soft-border);
}

.published-schedule-table th:first-child,
.published-schedule-table td:first-child {
    border-left: 1px solid var(--ps-soft-border);
}

.published-schedule-lesson {
    margin-bottom: 6px;
    border: 1px solid var(--ps-soft-border);
    border-left: 3px solid var(--ps-lesson-border);
    border-radius: 8px;
    background: var(--ps-lesson-bg);
}

.published-schedule-lesson:last-child {
    margin-bottom: 0;
}

.published-schedule-lesson.lesson-lecture {
    border-left-color: var(--ps-lecture);
}

.published-schedule-lesson.lesson-practice {
    border-left-color: var(--ps-practice);
}

.published-schedule-lesson.lesson-lab {
    border-left-color: var(--ps-practice);
}

.published-schedule-lesson.lesson-credit {
    border-left-color: var(--ps-credit);
}

.published-schedule-lesson.lesson-exam {
    border-left-color: var(--ps-exam);
}

.published-schedule-lesson.lesson-consultation {
    border-left-color: var(--ps-lab);
}

.published-schedule-lesson-body {
    display: grid;
    gap: 3px;
    padding: 8px;
}

.published-schedule-lesson-title {
    color: var(--ps-text);
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.published-schedule-lesson-meta,
.published-schedule-lesson-more {
    color: var(--ps-muted);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.published-schedule-lesson-parts {
    display: grid;
    gap: 2px;
    color: #4d5a73;
    font-size: 12px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.published-schedule-lesson-parts span {
    display: block;
}

.published-schedule-lesson-part-label {
    font-weight: 600;
}

.published-schedule-lesson-more {
    width: fit-content;
    padding: 0;
    border: 0;
    background: transparent;
    justify-self: start;
    margin-top: 2px;
    font: inherit;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
}

.published-schedule-lesson-more:hover {
    color: var(--ps-text);
}

.published-schedule-lesson-details {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0 8px 8px;
    border-top: 1px solid var(--ps-soft-border);
}

.published-schedule-lesson-details div {
    display: grid;
    grid-template-columns: minmax(84px, .45fr) 1fr;
    gap: 8px;
    padding-top: 6px;
}

.published-schedule-lesson-details dt,
.published-schedule-lesson-details dd {
    margin: 0;
    font-size: 12px;
}

.published-schedule-lesson-details dt {
    color: var(--ps-muted);
}

.published-schedule-lesson-details dd {
    color: var(--ps-text);
}

.published-schedule-lesson-popover {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 70;
    width: min(420px, calc(100vw - 24px));
    max-height: min(360px, calc(100vh - 24px));
    margin: 0;
    overflow: auto;
    padding: 0;
    border: 1px solid var(--ps-border);
    border-radius: 8px;
    background: #fbfdff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .08);
}

.published-schedule-lesson-popover.is-hidden {
    display: none;
}

.published-schedule-lesson-popover header {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    min-height: 40px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--ps-soft-border);
    background: #fbfdff;
}

.published-schedule-lesson-popover header strong {
    display: -webkit-box;
    min-width: 0;
    overflow: hidden;
    color: var(--ps-text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.published-schedule-lesson-popover header button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--ps-border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ps-muted);
    font: inherit;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
}

.published-schedule-lesson-popover > .published-schedule-lesson-details {
    margin: 0;
    padding: 8px 10px 10px;
    border-top: 0;
}

.published-schedule-empty-cell {
    display: block;
    min-height: 22px;
    color: var(--ps-subtle);
    font-size: 12px;
}

.published-schedule-mobile-days {
    display: none;
}

.published-schedule-detail-drawer {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    justify-content: flex-end;
    background: rgba(31, 42, 68, .28);
}

.published-schedule-detail-drawer.is-hidden {
    display: none;
}

.published-schedule-detail-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(480px, 100%);
    height: 100%;
    border-left: 1px solid var(--ps-border);
    background: #ffffff;
    color: var(--ps-text);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .08);
}

.published-schedule-detail-panel header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid var(--ps-soft-border);
}

.published-schedule-detail-panel header span {
    display: block;
    margin-bottom: 4px;
    color: var(--ps-muted);
    font-size: 12px;
}

.published-schedule-detail-panel h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.published-schedule-detail-panel header button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--ps-border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ps-muted);
    font: inherit;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.published-schedule-detail-panel > .published-schedule-lesson-details {
    align-content: start;
    align-items: start;
    overflow: auto;
    padding: 16px;
    border-top: 0;
}

.published-schedule-detail-panel > .published-schedule-lesson-details div {
    align-items: start;
    grid-template-columns: 116px minmax(0, 1fr);
}

.published-schedule-detail-panel > .published-schedule-lesson-details dd {
    line-height: 1.4;
    overflow-wrap: anywhere;
}

@media (max-width: 760px) {
    .published-schedule {
        padding: 12px;
    }

    .published-schedule-head,
    .published-schedule-context {
        align-items: stretch;
        flex-direction: column;
    }

    .published-schedule-actions {
        justify-content: flex-start;
        flex-basis: auto;
    }

    .published-schedule.is-widget .published-schedule-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        justify-content: stretch;
    }

    .published-schedule.is-widget .published-schedule-actions a,
    .published-schedule.is-widget .published-schedule-actions button {
        width: 100%;
        padding: 0 8px;
    }

    .published-schedule-calendar-feedback {
        grid-column: 1 / -1;
        text-align: start;
    }

    .published-schedule h1 {
        font-size: 21px;
    }

    .published-schedule.is-widget h1 {
        font-size: 18px;
    }

    .published-schedule-week-summary,
    .published-schedule-group-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .published-schedule-week-strip a {
        flex-basis: 124px;
    }

    .published-schedule-desktop-grid {
        display: none;
    }

    .published-schedule-mobile-days {
        display: grid;
        gap: 12px;
        margin-top: 12px;
    }

    .published-schedule-day {
        border: 1px solid var(--ps-soft-border);
        border-radius: 8px;
        background: #ffffff;
        overflow: hidden;
    }

    .published-schedule-day.is-today {
        border-color: #76b6b6;
    }

    .published-schedule-day header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 10px 12px;
        background: #f8fafd;
        border-bottom: 1px solid var(--ps-soft-border);
    }

    .published-schedule-day header span {
        font-weight: 600;
    }

    .published-schedule-day header strong {
        color: var(--ps-muted);
        font-size: 12px;
        font-weight: 500;
    }

    .published-schedule-day-slots {
        display: grid;
    }

    .published-schedule-day-slot {
        display: grid;
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 8px;
        padding: 10px 12px;
        border-bottom: 1px solid var(--ps-soft-border);
    }

    .published-schedule-day-slot:last-child {
        border-bottom: 0;
    }

    .published-schedule-day-time span {
        display: block;
        color: var(--ps-text);
        font-size: 13px;
        font-weight: 600;
    }

    .published-schedule-day-time small {
        display: block;
        margin-top: 2px;
        color: var(--ps-muted);
        font-size: 11px;
    }

    .published-schedule-day-lessons {
        min-width: 0;
    }

    .published-schedule-day-lessons .published-schedule-empty-cell {
        min-height: 0;
        padding-top: 2px;
    }

    .published-schedule-tabs {
        gap: 12px;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .published-schedule-catalog-links {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .published-schedule-catalog-links a {
        flex: 0 0 auto;
    }

    .published-schedule-filter-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .published-schedule-detail-drawer {
        align-items: flex-end;
        justify-content: stretch;
    }

    .published-schedule-detail-panel {
        width: 100%;
        height: min(82vh, 680px);
        border-left: 0;
        border-top: 1px solid var(--ps-border);
        border-radius: 16px 16px 0 0;
    }

    .published-schedule-detail-panel header {
        padding: 14px;
    }

    .published-schedule-detail-panel h3 {
        font-size: 16px;
    }

    .published-schedule-detail-panel > .published-schedule-lesson-details {
        padding: 14px;
    }
}

@media print {
    body {
        background: #ffffff;
    }

    .published-schedule {
        width: 100%;
        padding: 0;
    }

    .published-schedule-actions,
    .published-schedule-context,
    .published-schedule-tabs,
    .published-schedule-catalog,
    .published-schedule-week-actions,
    .published-schedule-week-strip,
    .published-schedule-mobile-days,
    .published-schedule-lesson-popover,
    .published-schedule-detail-drawer {
        display: none;
    }

    .published-schedule-desktop-grid {
        display: block;
    }

    .published-schedule-head,
    .published-schedule-week-panel,
    .published-schedule-group,
    .published-schedule-empty {
        border-color: #c9d2e0;
        box-shadow: none;
        break-inside: avoid;
    }

    .published-schedule-table-wrap {
        overflow: visible;
    }
}

html[data-ui-theme="dark"] {
    color-scheme: dark;
    --ps-bg: #0b0b0c;
    --ps-surface: #151515;
    --ps-border: #303030;
    --ps-soft-border: #242424;
    --ps-text: #f2f2f2;
    --ps-muted: #a1a1a1;
    --ps-subtle: #777777;
    --ps-accent: #dddddd;
    --ps-lesson-bg: #1d1d1e;
    --ps-lesson-border: #858585;
    --ps-lecture: #858585;
    --ps-practice: #858585;
    --ps-lab: #858585;
    --ps-credit: #858585;
    --ps-exam: #858585;
}

html[data-ui-theme="dark"] body,
html[data-ui-theme="dark"] .published-schedule {
    background: #0b0b0c !important;
    color: #f2f2f2 !important;
}

html[data-ui-theme="dark"] .published-schedule-head,
html[data-ui-theme="dark"] .published-schedule-context,
html[data-ui-theme="dark"] .published-schedule-empty,
html[data-ui-theme="dark"] .published-schedule-catalog,
html[data-ui-theme="dark"] .published-schedule-group,
html[data-ui-theme="dark"] .published-schedule-lesson,
html[data-ui-theme="dark"] .published-schedule.is-download {
    background: #151515 !important;
    border-color: #303030 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.32), 0 8px 24px rgba(0, 0, 0, 0.16) !important;
}

html[data-ui-theme="dark"] .published-schedule-lesson {
    border-left-color: #858585 !important;
}

html[data-ui-theme="dark"] .published-schedule th,
html[data-ui-theme="dark"] .published-schedule td,
html[data-ui-theme="dark"] .published-schedule table {
    border-color: #2a2a2a !important;
}

html[data-ui-theme="dark"] .published-schedule th {
    background: #191919 !important;
    color: #d7d7d7 !important;
}

html[data-ui-theme="dark"] .published-schedule td {
    background: var(--ps-surface);
    color: var(--ps-text);
}

html[data-ui-theme="dark"] .published-schedule-day {
    background: var(--ps-surface);
    border-color: var(--ps-soft-border);
}

html[data-ui-theme="dark"] .published-schedule-day header {
    background: #191919;
    border-color: var(--ps-soft-border);
}

html[data-ui-theme="dark"] .published-schedule-detail-panel,
html[data-ui-theme="dark"] .published-schedule-detail-panel header button {
    background: var(--ps-surface);
    border-color: var(--ps-border);
}

html[data-ui-theme="dark"] .published-schedule-lesson-popover header,
html[data-ui-theme="dark"] .published-schedule-lesson-popover header button {
    background: #1d1f23;
    border-color: #3b3d43;
}

html[data-ui-theme="dark"] .published-schedule a,
html[data-ui-theme="dark"] .published-schedule button {
    color: #ededed !important;
}

html[data-ui-theme="dark"] .published-schedule a:hover,
html[data-ui-theme="dark"] .published-schedule button:hover {
    color: #ffffff !important;
}

html[data-ui-theme="dark"] .published-schedule-actions a,
html[data-ui-theme="dark"] .published-schedule-actions button,
html[data-ui-theme="dark"] .published-schedule-context button,
html[data-ui-theme="dark"] .published-schedule-context select,
html[data-ui-theme="dark"] .published-schedule .directory-combobox-search,
html[data-ui-theme="dark"] .published-schedule-week-actions a,
html[data-ui-theme="dark"] .published-schedule-week-actions span,
html[data-ui-theme="dark"] .published-schedule-week-strip a {
    border-color: #3b3d43;
    background-color: #1d1f23;
    color: #ededed !important;
}

html[data-ui-theme="dark"] .published-schedule .directory-combobox-search {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.5 7.5L10 12L14.5 7.5' fill='none' stroke='%23d7dce5' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

html[data-ui-theme="dark"] .published-schedule .directory-combobox-search:focus,
html[data-ui-theme="dark"] .published-schedule-actions a:hover,
html[data-ui-theme="dark"] .published-schedule-actions button:hover,
html[data-ui-theme="dark"] .published-schedule-week-actions a:hover,
html[data-ui-theme="dark"] .published-schedule-week-strip a:hover {
    border-color: #6686bd;
    background-color: #252b35;
}

html[data-ui-theme="dark"] .published-schedule .directory-combobox-results,
html[data-ui-theme="dark"] .published-schedule-lesson-popover {
    border-color: #3b3d43;
    background: #1d1f23;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.36);
}

html[data-ui-theme="dark"] .published-schedule .directory-combobox-result:hover,
html[data-ui-theme="dark"] .published-schedule .directory-combobox-result.is-active,
html[data-ui-theme="dark"] .published-schedule .directory-combobox-result.is-selected,
html[data-ui-theme="dark"] .published-schedule-week-strip a.is-selected {
    border-color: #6686bd;
    background: #25344e;
    color: #f2f4f8;
}

html[data-ui-theme="dark"] .published-schedule-week-nav-control.is-disabled {
    background: #18191c;
}

html[data-ui-theme="dark"] .published-schedule td.is-today {
    background: #16231f;
}

html[data-ui-theme="dark"] .published-schedule-lesson-parts {
    color: #bac2cf;
}
