:root {
    --bg: #f5f5f6;
    --surface: #ffffff;
    --surface-soft: #fafafa;
    --surface-accent: #d7d4ff;
    --line: #e8e5e1;
    --line-strong: #ddd8d0;
    --text: #232228;
    --muted: #767272;
    --lecture: #6947ff;
    --lecture-soft: #ece8ff;
    --seminar: #ffa06d;
    --seminar-soft: #ffefe6;
    --other: #17b9da;
    --other-soft: #e8f9fc;
    --shadow: 0 18px 48px rgba(24, 21, 19, 0.06);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --hour-size: 86px;
    --time-axis-width: 104px;
    --day-column-width: 136px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: "Aptos", "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
input,
select,
textarea {
    color: var(--text);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(105, 71, 255, 0.2);
    outline-offset: 2px;
}

.page-shell {
    max-width: 1380px;
    margin: 0 auto;
    padding: 30px 40px 68px;
}

.hero-card,
.schedule-card {
    background: var(--surface);
    border-radius: 32px;
    box-shadow: var(--shadow);
}

.hero-card {
    padding: 28px 36px 30px;
}

.hero-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.hero-copy {
    min-width: 0;
}

h1,
h2,
.modal-title {
    margin: 0;
    font-family: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", sans-serif;
    letter-spacing: -0.04em;
}

h1 {
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    line-height: 0.96;
}

.hero-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    color: var(--muted);
    font-size: 18px;
    flex: 0 0 auto;
    margin-left: auto;
}

.refresh-button,
.nav-icon,
.today-button,
.clear-button,
.filter-chip button,
.modal-close {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.refresh-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 16px;
    background: #32333a;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
}

.refresh-button:disabled {
    opacity: 0.72;
    cursor: wait;
}

.schedule-card {
    margin-top: 20px;
    overflow: hidden;
}

.schedule-toolbar,
.filters-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
}

.schedule-toolbar {
    border-bottom: 1px solid var(--line);
}

.filters-bar {
    border-bottom: 1px solid var(--line);
    padding-top: 14px;
    padding-bottom: 14px;
    position: relative;
    z-index: 8;
}

.filters-bar-secondary {
    justify-content: flex-start;
    padding-top: 12px;
    padding-bottom: 12px;
}

.week-controls,
.legend {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.filters-group {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.filters-group-main {
    flex: 1 1 auto;
    flex-wrap: nowrap;
    gap: 8px;
    overflow: visible;
    padding-bottom: 0;
}

.filters-group-side {
    flex: 0 0 auto;
    margin-left: auto;
}

.filters-group-secondary {
    width: 100%;
    gap: 8px;
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    font-size: 30px;
    line-height: 1;
    color: var(--text);
}

.today-button,
.week-chip,
.filter-pill select,
.clear-button,
.multi-filter-trigger {
    border-radius: 999px;
}

.today-button {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 4px;
    color: var(--text);
    font-size: 18px;
    line-height: 32px;
}

.week-current-button {
    min-width: auto;
    color: var(--text);
    font-weight: 600;
}

.week-chip {
    padding: 5px 12px;
    border: 1px solid var(--line-strong);
    background: #fbfbfb;
    font-size: 15px;
}

.week-chip-hidden {
    display: none;
}

.week-range {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    font-size: 18px;
    font-weight: 500;
    line-height: 32px;
}

.week-range.is-day-view::before {
    content: none;
}

.date-picker {
    position: relative;
}

.date-picker-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 32px;
    padding: 0;
    background: transparent;
    color: var(--text);
    text-align: left;
}

.date-picker-trigger-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
    background-image: url("assets/figma/calendar.svg");
}

.date-picker-panel {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    display: none;
    z-index: 18;
    width: min(288px, calc(100vw - 48px));
    height: 324px;
    max-width: calc(100vw - 48px);
    padding: 12px;
    border: 1px solid rgba(214, 210, 206, 0.9);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 36px rgba(24, 21, 19, 0.12);
}

.date-picker.is-open .date-picker-panel {
    display: block;
}

.date-picker-panel-head {
    display: grid;
    grid-template-columns: 28px 1fr 28px;
    align-items: center;
    margin-bottom: 12px;
}

.date-picker-month-title {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.date-picker-month-nav {
    width: 28px;
    height: 28px;
    padding: 0;
    color: #2d2a29;
    font-size: 28px;
    line-height: 1;
}

.date-picker-weekdays,
.date-picker-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.date-picker-weekdays {
    margin-bottom: 6px;
}

.date-picker-weekdays span {
    display: grid;
    place-items: center;
    height: 24px;
    color: #6f6a64;
    font-size: 12px;
    font-weight: 500;
}

.date-picker-day {
    position: relative;
    display: grid;
    place-items: center;
    height: 36px;
    border-radius: 8px;
    color: #232228;
    font-size: 15px;
    background: transparent;
}

.date-picker-day.is-outside {
    color: #b7b1ac;
}

.date-picker-day.is-weekend {
    color: #d06464;
}

.date-picker-day.is-in-selected-week {
    background: #f3f1ee;
    border-radius: 0;
}

.date-picker-day.is-week-start {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.date-picker-day.is-week-end {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.date-picker-day.is-selected {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.date-picker-day.is-today:not(.is-selected) {
    font-weight: 600;
}

.date-picker-day.is-disabled {
    opacity: 0.38;
    pointer-events: none;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.legend-swatch {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 6px;
}

.legend-swatch.lecture {
    background: linear-gradient(90deg, var(--lecture) 0 36%, var(--lecture-soft) 36% 100%);
}

.legend-swatch.seminar {
    background: linear-gradient(90deg, var(--seminar) 0 36%, var(--seminar-soft) 36% 100%);
}

.legend-swatch.other {
    background: linear-gradient(90deg, var(--other) 0 36%, var(--other-soft) 36% 100%);
}

.multi-filter,
.filter-pill {
    position: relative;
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    max-width: none;
}

.multi-filter-wide,
.filter-pill-wide {
    width: auto;
    min-width: 0;
    max-width: none;
}

#typeFilterUi {
    max-width: 240px;
}

#hostFilterUi {
    max-width: 320px;
}

.filter-pill-week,
.filter-pill-view {
    width: 136px;
    min-width: 136px;
    max-width: 136px;
}

.filter-pill-day {
    width: 150px;
    min-width: 150px;
    max-width: 150px;
}

.multi-filter {
    z-index: 10;
    max-width: 320px;
}

.multi-filter.is-open {
    z-index: 14;
}

.view-mode-control {
    position: relative;
    flex: 0 0 auto;
}

.view-mode-control::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 2px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #2d2a29;
    border-bottom: 2px solid #2d2a29;
    transform: translateY(-60%) rotate(45deg);
    pointer-events: none;
}

.view-mode-control select {
    appearance: none;
    min-width: 104px;
    padding: 6px 22px 6px 0;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
}

.multi-filter-trigger {
    position: relative;
    width: auto;
    max-width: 100%;
    gap: 8px;
    padding: 9px 34px 9px 14px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    text-align: left;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
}

.multi-filter-trigger::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 13px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #8d8782;
    border-bottom: 2px solid #8d8782;
    transform: translateY(-60%) rotate(45deg);
    pointer-events: none;
}

.multi-filter-trigger-text {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.multi-filter-trigger-count {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    background: #f3f1ee;
    color: #4f4a45;
    font-size: 13px;
    line-height: 1;
}

.multi-filter.is-active .multi-filter-trigger,
.multi-filter.is-open .multi-filter-trigger {
    border-color: #2d2a29;
    box-shadow: inset 0 0 0 1px #2d2a29;
}

.multi-filter-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    display: none;
    width: min(328px, calc(100vw - 72px));
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 22px 42px rgba(24, 21, 19, 0.12);
}

.multi-filter.is-open .multi-filter-panel {
    display: block;
}

#skillFilterUi .multi-filter-panel,
#hostFilterUi .multi-filter-panel {
    width: min(456px, calc(100vw - 72px));
}

.multi-filter-search-wrap {
    position: relative;
    display: block;
    margin-bottom: 8px;
}

.multi-filter-search-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    color: #9b9590;
    transform: translateY(-50%);
    pointer-events: none;
}

.multi-filter-search-input {
    width: 100%;
    padding: 10px 12px 10px 34px;
    border: 1px solid var(--line-strong);
    border-radius: 11px;
    background: #fff;
    font-size: 14px;
}

.multi-filter-options {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 356px;
    overflow-y: auto;
}

.multi-filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 9px;
    cursor: pointer;
    transition: background-color 0.16s ease;
}

.multi-filter-option:hover {
    background: #f5f4f2;
}

.multi-filter-option input {
    appearance: none;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 0;
    border: 1px solid #d9d5d1;
    border-radius: 4px;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.multi-filter-option input:checked {
    border-color: #2d2a29;
    background:
            linear-gradient(135deg, transparent 50%, #2d2a29 50%) left 5px top 8px / 5px 2px no-repeat,
            linear-gradient(45deg, transparent 45%, #2d2a29 45% 55%, transparent 55%) left 7px top 7px / 8px 8px no-repeat,
            #fff;
}

.multi-filter-option span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.multi-filter-empty {
    padding: 14px 10px;
    color: var(--muted);
    font-size: 14px;
}

.filter-pill::before {
    content: attr(data-display);
    position: absolute;
    top: 50%;
    left: 14px;
    right: 34px;
    overflow: hidden;
    color: var(--text);
    text-overflow: ellipsis;
    white-space: nowrap;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 14px;
}

.filter-pill::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 13px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #8d8782;
    border-bottom: 2px solid #8d8782;
    transform: translateY(-60%) rotate(45deg);
    pointer-events: none;
}

.filter-pill.is-active::before {
    color: var(--text);
}

.filter-pill select {
    appearance: none;
    width: 100%;
    padding: 9px 34px 9px 14px;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: transparent;
    font-size: 14px;
}

.filter-pill.filter-pill-wide select {
    width: 100%;
}

.filter-pill select option {
    color: var(--text);
}

.filter-pill.is-active select {
    border-color: #2d2a29;
    box-shadow: inset 0 0 0 1px #2d2a29;
}

.clear-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    font-size: 17px;
    font-weight: 500;
    white-space: nowrap;
}

.clear-button::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 22px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px 22px;
    background-image: url("assets/figma/trash.svg");
}

.active-filters {
    display: none;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f6f4f2;
    border: 1px solid var(--line);
    font-size: 14px;
}

.filter-chip button {
    padding: 0;
    font-size: 18px;
    line-height: 1;
}

.calendar-shell {
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.calendar-shell.list-mode .days-header,
.calendar-shell.list-mode .grid-wrap {
    display: none;
}

.calendar-shell.day-mode .days-header {
    display: none;
}

.calendar-shell:not(.list-mode) .list-view {
    display: none;
}

.days-header {
    display: grid;
    grid-template-columns: var(--time-axis-width) repeat(var(--visible-days, 7), var(--day-column-width));
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    width: 1056px;
    max-width: 100%;
    margin: 0 auto;
    position: sticky;
    top: 0;
    z-index: 3;
}

.corner-head,
.day-head {
    min-height: 60px;
}

.corner-head {
    border-right: 1px solid var(--line);
    background: #fbfbfb;
}

.day-head {
    display: grid;
    place-items: center;
    border-right: 1px solid var(--line);
    padding: 0 10px;
    font-size: 16px;
    background: #fff;
}

.day-head:last-child {
    border-right: 0;
}

.day-head-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    font-weight: 500;
}

.day-head.is-today {
    background: #f3f1ee;
}

.grid-wrap {
    display: grid;
    grid-template-columns: var(--time-axis-width) minmax(0, max-content);
    overflow-x: visible;
    overflow-y: auto;
    max-height: 70vh;
    width: 1056px;
    max-width: 100%;
    margin: 0 auto;
}

.time-axis {
    position: relative;
    background: var(--surface);
    border-right: 1px solid var(--line);
    z-index: 1;
}

.time-label {
    position: absolute;
    left: 12px;
    right: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 5px;
    padding-top: 12px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted);
}

.time-slot {
    color: var(--text);
    font-size: 22px;
    font-weight: 600;
    line-height: 1;
}

.days-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--visible-days, 7), var(--day-column-width));
    min-width: 0;
    width: auto;
}

.day-column {
    position: relative;
    border-right: 1px solid var(--line);
    background-color: #fff;
    background-image: linear-gradient(to bottom, transparent calc(var(--hour-size) - 1px), rgba(232, 229, 225, 0.9) calc(var(--hour-size) - 1px));
    background-size: 100% var(--hour-size);
}

.day-column:last-child {
    border-right: 0;
}

.day-column.is-today {
    background-color: rgba(249, 249, 249, 0.8);
}

.event-card {
    position: absolute;
    overflow: hidden;
    padding: 4px 4px 4px 8px;
    border-radius: 4px;
    border: 1px solid transparent;
    border-left-width: 5px;
    background: var(--lecture-soft);
    box-shadow: 0 1px 0 rgba(34, 31, 29, 0.04);
}

.event-card.has-counter {
    padding-right: 62px;
}

.event-card.tone-lecture {
    background: var(--lecture-soft);
    border-color: rgba(105, 71, 255, 0.16);
    border-left-color: var(--lecture);
}

.event-card.tone-seminar {
    background: var(--seminar-soft);
    border-color: rgba(255, 160, 109, 0.18);
    border-left-color: var(--seminar);
}

.event-card.tone-other {
    background: var(--other-soft);
    border-color: rgba(23, 185, 218, 0.18);
    border-left-color: var(--other);
}

.event-card.dense {
    padding: 4px 4px 4px 8px;
}

.event-card.dense .event-title {
    margin-bottom: 2px;
    font-size: 12px;
    line-height: 1.25;
}

.event-card.dense .event-code {
    margin-bottom: 2px;
    font-size: 11px;
}

.event-card.dense .event-meta,
.event-card.dense .event-host {
    font-size: 11px;
    line-height: 1.25;
}

.event-count {
    position: absolute;
    top: 50%;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 24px rgba(24, 21, 19, 0.1);
    color: var(--text);
    font-size: 18px;
    font-weight: 700;
    transform: translateY(-50%);
}

.event-title {
    margin-bottom: 2px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    letter-spacing: -0.02em;
}

.event-code {
    margin-bottom: 2px;
    color: #2f2d33;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.event-meta,
.event-host {
    overflow: hidden;
    color: #5d5964;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1.25;
}

.event-meta {
    margin-bottom: 2px;
    font-weight: 500;
}

.event-host {
    color: #6b6670;
    font-weight: 400;
}

.now-line {
    position: absolute;
    left: -2px;
    right: -2px;
    height: 2px;
    background: #f24848;
    z-index: 6;
}

.now-line::before {
    content: "";
    position: absolute;
    left: -4px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f24848;
    transform: translateY(-50%);
}

.list-view {
    padding: 12px 0;
    background: #fff;
}

.list-day {
    margin: 0;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.list-day h3 {
    margin: 0 0 12px;
    font-size: 18px;
}

.list-card {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 12px;
    margin-bottom: 10px;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
}

.list-time {
    font-weight: 700;
}

.list-title {
    margin-bottom: 4px;
    font-weight: 700;
}

.list-code {
    margin-bottom: 4px;
    color: #2f2d33;
    font-size: 14px;
    font-weight: 600;
}

.list-meta {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.35;
}

.empty-state {
    display: none;
    padding: 56px 24px;
    text-align: center;
    color: var(--muted);
}

.empty-state b {
    display: block;
    margin-bottom: 6px;
    color: var(--text);
    font-size: 20px;
}

.error-panel {
    margin-top: 14px;
    padding: 18px 20px;
    border-radius: 22px;
    background: #fff6f6;
    border: 1px solid #f2d8d8;
}

.error-panel h2 {
    margin-bottom: 8px;
    font-size: 24px;
}

.error-list {
    margin: 0;
    padding-left: 18px;
    color: #8b4d4d;
    line-height: 1.55;
}

.hidden,
.tech-hidden {
    display: none;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: none;
    align-items: stretch;
    justify-content: flex-end;
    background: rgba(255, 255, 255, 0.12);
    padding: 16px 18px 18px 0;
}

.modal.is-open {
    display: flex;
}

.drawer-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(100%, 548px);
    max-width: calc(100vw - 42px);
    height: calc(100vh - 34px);
    padding: 0;
    background: var(--surface-accent);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: -14px 0 48px rgba(24, 21, 19, 0.08);
}

.drawer-header {
    padding: 34px 34px 24px;
}

.modal-title {
    max-width: none;
    font-size: 24px;
    line-height: 32px;
}

.drawer-body {
    margin: 0 16px 16px;
    padding: 24px 28px;
    height: calc(100% - 164px);
    border-radius: 28px;
    background: var(--surface);
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 22px;
    right: 20px;
    font-size: 34px;
    line-height: 1;
}

.detail-grid {
    display: grid;
    grid-template-columns: 116px 1fr;
    gap: 20px 16px;
    font-size: 14px;
    line-height: 20px;
}

.detail-grid-compact {
    grid-template-columns: 116px 1fr;
    gap: 20px 16px;
    font-size: 14px;
    line-height: 20px;
}

.detail-grid .detail-label {
    color: #9a97a0;
}

.detail-grid > div,
.detail-grid-compact > div {
    min-width: 0;
}

.detail-value-host {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 20px;
    line-height: 20px;
}

.detail-value-host-multi {
    display: grid;
    gap: 8px;
    align-items: start;
}

.detail-stack {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.multi-event-section {
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.multi-event-section:last-of-type {
    padding-bottom: 0;
    border-bottom: 0;
}

.multi-event-title {
    margin: 0 0 18px;
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
}

.multi-modal-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 4px;
}

.multi-modal-close {
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 16px;
    cursor: pointer;
}

.modal.is-multi .modal-title {
    max-width: none;
    font-size: 24px;
    line-height: 32px;
}

.detail-avatar {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--lecture-soft);
    color: var(--lecture);
    font-size: 14px;
    font-weight: 700;
}

.reveal {
    animation: rise-in 0.42s ease both;
}

.delay-1 {
    animation-delay: 0.05s;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 1100px) {
    .schedule-toolbar,
    .filters-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .legend,
    .week-controls,
    .filters-group-main,
    .filters-group-side {
        width: 100%;
    }

    .filters-group-side {
        margin-left: 0;
    }

    .filters-group-main {
        flex-wrap: wrap;
        overflow: visible;
    }
}

@media (max-width: 800px) {
    .page-shell {
        padding: 20px 22px 46px;
    }

    .hero-card {
        padding: 22px 20px 24px;
    }

    .schedule-toolbar,
    .filters-bar,
    .active-filters {
        padding-left: 16px;
        padding-right: 16px;
    }

    .filter-pill,
    .filter-pill select {
        width: 100%;
    }

    .filter-pill-wide {
        min-width: 0;
    }

    .grid-wrap {
        max-height: 60vh;
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 640px) {
    .hero-meta,
    .week-controls,
    .legend {
        align-items: flex-start;
    }

    .today-button,
    .clear-button {
        padding-left: 0;
    }

    .calendar-shell:not(.list-mode) .days-header,
    .calendar-shell:not(.list-mode) .grid-wrap {
        display: none;
    }

    .calendar-shell:not(.list-mode) .list-view {
        display: block;
    }

    .drawer-card {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        border-radius: 0;
    }

    .drawer-header {
        padding: 30px 22px 18px;
    }

    .drawer-body {
        margin: 0 12px 12px;
        padding: 22px 20px;
        min-height: calc(100vh - 178px);
    }
}

.view-mode-menu { padding: 7px 8px; }

/* Main-only calendar refinements and Figma popup states. */
.page-shell {
    min-height: auto;
}

.view-mode-control {
    position: relative;
    z-index: 16;
}

.tech-select {
    display: none;
}

.view-mode-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 80px;
    height: 24px;
    padding: 2px 22px 2px 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    font: 500 14px/20px Inter, "Segoe UI", Arial, sans-serif;
    cursor: pointer;
}

.view-mode-trigger::after {
    content: "";
    position: absolute;
    top: 3px;
    right: 0;
    width: 18px;
    height: 18px;
    background: url("assets/figma/chevron-down.svg") center / 14px 14px no-repeat;
}

.view-mode-control.is-open .view-mode-trigger::after {
    background-image: url("assets/figma/chevron-up.svg");
}

.view-mode-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 30;
    width: 200px;
    padding: 7px 8px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 5px 10px rgba(28, 28, 30, 0.1);
}

.view-mode-menu[hidden] {
    display: none;
}

.view-mode-menu button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 32px;
    padding: 4px 12px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--text);
    font: 400 14px/20px Inter, "Segoe UI", Arial, sans-serif;
    text-align: left;
    cursor: pointer;
}

.view-mode-menu button:hover,
.view-mode-menu button:focus-visible {
    background: #f4f4f5;
}

.view-mode-menu img {
    display: none;
    width: 24px;
    height: 24px;
}

.view-mode-menu button.is-selected img {
    display: block;
}

.multi-filter-trigger {
    transition: border-color 120ms ease, background-color 120ms ease;
}

.multi-filter.is-active .multi-filter-trigger,
.multi-filter.is-open .multi-filter-trigger {
    border-color: #323336;
    background: #f4f4f5;
    box-shadow: none;
}

.multi-filter.is-open .multi-filter-trigger::after {
    background-image: url("assets/figma/chevron-up.svg");
}

.multi-filter-panel,
#skillFilterUi .multi-filter-panel,
#hostFilterUi .multi-filter-panel {
    top: calc(100% + 4px);
    width: min(426px, calc(100vw - 48px));
    max-height: 480px;
    padding: 8px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 5px 10px rgba(28, 28, 30, 0.1);
}

#hostFilterUi .multi-filter-panel {
    right: 0;
    left: auto;
}

.multi-filter-search-wrap {
    height: 48px;
    margin: 0;
    padding-bottom: 8px;
}

.multi-filter-search-icon {
    left: 12px;
    width: 18px;
    height: 18px;
    color: transparent;
    font-size: 0;
    background: url("assets/figma/search.svg") center / 18px 18px no-repeat;
}

.multi-filter-search-input {
    width: 100%;
    height: 40px;
    padding: 9px 12px 9px 38px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font-size: 14px;
    line-height: 20px;
}

.multi-filter-search-input::placeholder {
    color: #8f9499;
}

.multi-filter-options {
    gap: 0;
    max-height: 416px;
    padding-right: 0;
    scrollbar-color: #8f9499 transparent;
    scrollbar-width: thin;
}

.multi-filter-option {
    min-height: 32px;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 4px;
}

.multi-filter-option:hover {
    background: #f4f4f5;
}

.multi-filter-option input {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
    border: 1px solid rgba(0, 16, 36, 0.12);
    border-radius: 4px;
    box-shadow: none;
}

.multi-filter-option span {
    font-size: 14px;
    line-height: 20px;
}

.multi-filter-empty {
    min-height: 48px;
    padding: 14px 12px;
}

.event-card {
    min-width: 0;
}

.calendar-shell.day-mode .event-card {
    padding-right: 8px;
}

.calendar-shell.day-mode .event-card.has-counter {
    padding-right: 36px;
}

@media (max-width: 640px) {
    .page-shell {
        padding-top: 12px;
    }

    .view-mode-menu {
        right: auto;
        left: 0;
    }

    .multi-filter-panel,
    #skillFilterUi .multi-filter-panel,
    #hostFilterUi .multi-filter-panel {
        right: auto;
        left: 0;
        width: min(426px, calc(100vw - 48px));
    }
}

.view-mode-menu {
    padding: 7px 8px;
}

/* Figma source: Student — Shedule page small view (36:2019). */
:root {
    --bg: #f4f4f5;
    --surface: #ffffff;
    --surface-soft: #f4f4f5;
    --surface-accent: #d5d4ff;
    --line: #e9eaea;
    --line-strong: #cdcfd2;
    --text: #1c1c1e;
    --muted: #5a5e62;
    --lecture: #5f30f7;
    --lecture-soft: #e9e8ff;
    --seminar: #ffa171;
    --seminar-soft: #ffe5d4;
    --other: #06aed4;
    --other-soft: #ecfdff;
    --hour-size: 82px;
    --time-axis-width: 104px;
    --day-column-width: 136px;
}

html,
body {
    min-width: 320px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
}

.app-header {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    width: 100%;
    height: 72px;
    min-height: 72px;
    padding: 0 24px;
    background: #fff;
}

.brand-mark {
    display: block;
    width: 52px;
    height: 34px;
    flex: 0 0 52px;
}

.brand-mark img,
.notification-button img,
.footer-links img {
    display: block;
    width: 100%;
    height: 100%;
}

.main-navigation {
    position: absolute;
    left: 246px;
    top: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
    height: 40px;
    transform: none;
}

.main-navigation a {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    font-size: 16px;
    line-height: 24px;
}

.main-navigation a.is-active {
    background: #f4f4f5;
    font-weight: 500;
}

.user-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.notification-button {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
}

.notification-button img {
    width: 24px;
    height: 24px;
}

.user-avatar {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.page-shell {
    width: min(1056px, calc(100% - 48px));
    max-width: 1056px;
    min-height: 992px;
    margin: 0 auto;
    padding: 24px 0;
}

.hero-card,
.schedule-card {
    width: 100%;
    background: #fff;
    border-radius: 24px;
    box-shadow: none;
}

.hero-card {
    height: 120px;
    padding: 24px 32px 28px;
}

.hero-header {
    height: 68px;
    align-items: flex-start;
    gap: 24px;
}

.hero-copy h1,
h1 {
    margin: 0;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 40px;
    letter-spacing: -0.5px;
}

.hero-copy p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 20px;
}

.hero-meta {
    align-items: flex-end;
    gap: 8px;
    margin-left: auto;
    color: var(--muted);
    font-size: 12px;
    line-height: 18px;
}

.refresh-button {
    min-width: 100px;
    min-height: 40px;
    height: 40px;
    padding: 0 16px;
    border-radius: 12px;
    background: #323336;
    font-size: 14px;
    font-weight: 500;
}

.schedule-card {
    position: relative;
    margin-top: 8px;
    padding-bottom: 24px;
    overflow: hidden;
}

.schedule-toolbar {
    min-height: 64px;
    height: 64px;
    padding: 16px 24px 16px 16px;
    border-bottom: 1px solid var(--line);
}

.filters-bar {
    min-height: 64px;
    height: 64px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
}

.week-controls {
    gap: 12px;
}

.week-controls .nav-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 7px;
    border-radius: 8px;
    color: transparent;
    font-size: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 18px 18px;
}

#prevWeekButton {
    background-image: url("assets/figma/chevron-left.svg");
}

#nextWeekButton {
    background-image: url("assets/figma/chevron-right.svg");
}

.today-button,
.week-current-button {
    min-width: 59px;
    min-height: 32px;
    height: 32px;
    padding: 6px 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

.date-picker-trigger {
    gap: 4px;
    min-height: 24px;
    height: 24px;
    font-size: 14px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.date-picker-trigger-icon {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
    background-image: url("assets/figma/calendar.svg");
}

.week-range {
    min-height: 20px;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

.legend {
    gap: 16px;
}

.legend-item {
    gap: 8px;
    font-size: 14px;
    line-height: 20px;
}

.legend-swatch {
    width: 16px;
    height: 16px;
    border-radius: 2px;
}

.legend-swatch.lecture,
.legend-swatch.seminar,
.legend-swatch.other {
    background-size: 100% 100%;
}

.filters-group-main {
    gap: 8px;
}

.multi-filter-trigger {
    min-height: 24px;
    height: 24px;
    gap: 4px;
    padding: 2px 26px 2px 8px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    font-size: 14px;
}

.multi-filter-trigger::after {
    right: 8px;
    width: 14px;
    height: 14px;
    border: 0;
    background: url("assets/figma/chevron-down.svg") center / 14px 14px no-repeat;
    transform: translateY(-50%);
}

.multi-filter-trigger-text {
    font-size: 14px;
    line-height: 20px;
}

.multi-filter-trigger-count {
    min-width: auto;
    height: 20px;
    padding: 0;
    background: transparent;
    font-size: 14px;
}

.multi-filter.is-active .multi-filter-trigger,
.multi-filter.is-open .multi-filter-trigger {
    border-color: #60646c;
    box-shadow: none;
}

.clear-button {
    min-height: 24px;
    padding: 2px 0;
    gap: 4px;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.clear-button::before {
    width: 18px;
    height: 18px;
    background-image: url("assets/figma/trash.svg");
    background-size: 18px 18px;
}

.view-mode-control::after {
    right: 0;
    width: 14px;
    height: 14px;
    border: 0;
    background: url("assets/figma/chevron-down.svg") center / 14px 14px no-repeat;
    transform: translateY(-50%);
}

.view-mode-control select {
    min-width: 78px;
    height: 24px;
    padding: 2px 22px 2px 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

.active-filters {
    display: none;
}

.calendar-shell {
    border-top: 0;
    overflow: hidden;
}

.days-header {
    min-width: 1056px;
    max-width: none;
    height: 32px;
    margin: 0;
    border-bottom: 1px solid var(--line);
    position: relative;
}

.corner-head,
.day-head {
    min-height: 32px;
    height: 32px;
}

.corner-head {
    background: #fff;
}

.day-head {
    padding: 0 8px;
    background: #fff;
    font-size: 12px;
    line-height: 18px;
}

.day-head.is-today {
    background: #f4f4f5;
}

.day-head-label {
    font-weight: 400;
}

.grid-wrap {
    min-width: 1056px;
    max-width: none;
    max-height: none;
    margin: 0;
    overflow: hidden;
}

.time-axis {
    background: #fff;
}

.time-label {
    left: 12px;
    right: 0;
    gap: 4px;
    padding-top: 18px;
    color: #8f9499;
    font-size: 12px;
    line-height: 18px;
}

.time-slot {
    color: var(--text);
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
}

.day-column {
    background-color: #fff;
    background-image: linear-gradient(to bottom, transparent calc(var(--hour-size) - 1px), var(--line) calc(var(--hour-size) - 1px));
}

.day-column.is-today {
    background-color: #fff;
}

.event-card {
    padding: 4px 4px 4px 8px;
    border: 0;
    border-left: 4px solid var(--lecture);
    border-radius: 4px;
    box-shadow: none;
    font-size: 12px;
    line-height: 18px;
}

.event-card.tone-lecture {
    border-color: var(--lecture);
    background: var(--lecture-soft);
}

.event-card.tone-seminar {
    border-color: var(--seminar);
    background: var(--seminar-soft);
}

.event-card.tone-other {
    border-color: var(--other);
    background: var(--other-soft);
}

.event-title,
.event-card.dense .event-title {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
    letter-spacing: 0;
}

.event-meta,
.event-host,
.event-card.dense .event-meta,
.event-card.dense .event-host {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
}

.event-count {
    right: 4px;
    min-width: 28px;
    width: 28px;
    height: 28px;
    padding: 0;
    font-size: 12px;
    font-weight: 400;
    box-shadow: none;
}

.event-card.has-counter {
    padding-right: 32px;
}

.now-line {
    height: 2px;
    background: #f04438;
}

.now-line::before {
    width: 8px;
    height: 8px;
    background: #f04438;
}

.empty-state {
    position: absolute;
    z-index: 7;
    top: 160px;
    left: 0;
    width: 100%;
    height: 656px;
    padding: 270px 24px 0;
    background: rgba(255, 255, 255, 0.92);
    pointer-events: none;
    font-size: 14px;
}

.date-picker-panel,
.multi-filter-panel {
    border-color: var(--line);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(28, 28, 30, 0.12);
}

.modal {
    padding: 16px 16px 16px 0;
    background: transparent;
}

.drawer-card {
    width: 524px;
    max-width: calc(100vw - 32px);
    height: calc(100vh - 32px);
    border-radius: 24px;
    background: #d5d4ff;
    box-shadow: none;
}

.drawer-header {
    padding: 32px 32px 24px;
}

.drawer-body {
    display: flex;
    flex-direction: column;
    margin: 0 4px 4px;
    padding: 28px;
    border-radius: 24px;
}

.detail-grid,
.detail-grid-compact {
    grid-template-columns: 108px 1fr;
}

.drawer-footer-close {
    align-self: flex-end;
    margin-top: auto;
    padding: 6px 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    font: 500 14px/20px Inter, "Segoe UI", Arial, sans-serif;
    cursor: pointer;
}

.modal-title {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: -0.2px;
}

.modal-close {
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    padding: 7px;
    border-radius: 8px;
    color: transparent;
    font-size: 0;
    background: url("assets/figma/x-close.svg") center / 18px 18px no-repeat;
}

.app-footer {
    display: flex;
    align-items: center;
    min-height: 144px;
    padding: 80px 24px 32px;
    background: linear-gradient(to bottom, transparent 0 48px, #fff 48px 100%);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1056px, 100%);
    margin: 0 auto;
    color: var(--muted);
    font-size: 14px;
    line-height: 20px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
}

.footer-links img {
    width: 18px;
    height: 18px;
}

.reveal,
.delay-1 {
    animation: none;
}

@media (max-width: 1120px) {
    .main-navigation {
        position: static;
        margin-left: 64px;
        transform: none;
    }

    .main-navigation a {
        font-size: 14px;
    }

    .schedule-toolbar,
    .filters-bar {
        align-items: center;
        flex-direction: row;
    }

    .schedule-card,
    .calendar-shell {
        overflow-x: auto;
    }

    .filters-bar {
        height: auto;
        min-height: 64px;
    }

    .filters-group-main {
        width: auto;
        flex-wrap: wrap;
    }
}

@media (max-width: 900px) {
    .app-header {
        justify-content: space-between;
    }

    .main-navigation {
        display: none;
    }

    .page-shell {
        width: min(1056px, calc(100% - 32px));
        padding-top: 16px;
    }

    .schedule-toolbar,
    .filters-bar {
        height: auto;
        align-items: flex-start;
        flex-direction: column;
    }

    .legend,
    .week-controls,
    .filters-group-main,
    .filters-group-side {
        width: 100%;
    }

    .legend {
        padding-left: 8px;
    }

    .footer-content,
    .footer-links {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .app-header {
        height: 64px;
        min-height: 64px;
        padding: 0 16px;
    }

    .notification-button {
        width: 40px;
        height: 40px;
        padding: 8px;
    }

    .user-avatar {
        width: 36px;
        height: 36px;
    }

    .page-shell {
        width: calc(100% - 24px);
        padding: 12px 0 32px;
    }

    .hero-card {
        height: auto;
        padding: 20px;
    }

    .hero-header {
        height: auto;
        flex-direction: column;
    }

    .hero-copy h1,
    h1 {
        font-size: 26px;
        line-height: 32px;
    }

    .hero-meta {
        width: 100%;
        align-items: flex-start;
    }

    .calendar-shell:not(.list-mode) .days-header,
    .calendar-shell:not(.list-mode) .grid-wrap {
        display: grid;
    }

    .calendar-shell:not(.list-mode) .list-view {
        display: none;
    }

    .app-footer {
        padding: 28px 20px;
    }
}

/* Final precedence for interactive calendar controls. */
.page-shell { min-height: auto; }
.view-mode-control { position: relative; z-index: 16; }
.view-mode-control::after { content: none; }
.view-mode-control .tech-select { display: none; }
.view-mode-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 80px;
    height: 24px;
    padding: 2px 22px 2px 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    font: 500 14px/20px Inter, "Segoe UI", Arial, sans-serif;
    cursor: pointer;
}
.view-mode-trigger::after {
    content: "";
    position: absolute;
    top: 3px;
    right: 0;
    width: 18px;
    height: 18px;
    background: url("assets/figma/chevron-down.svg") center / 14px 14px no-repeat;
}
.view-mode-control.is-open .view-mode-trigger::after { background-image: url("assets/figma/chevron-up.svg"); }
.view-mode-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 30;
    width: 200px;
    padding: 7px 8px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 5px 10px rgba(28, 28, 30, 0.1);
}
.view-mode-menu[hidden] { display: none; }
.view-mode-menu button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 32px;
    padding: 4px 12px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--text);
    font: 400 14px/20px Inter, "Segoe UI", Arial, sans-serif;
    text-align: left;
    cursor: pointer;
}
.view-mode-menu button:hover,
.view-mode-menu button:focus-visible { background: #f4f4f5; }
.view-mode-check {
    display: none;
    width: 24px;
    height: 24px;
    background: url("assets/figma/checkbox-check.svg") center / 9px 7px no-repeat;
}
.view-mode-menu button.is-selected .view-mode-check { display: block; }

.multi-filter.is-active .multi-filter-trigger,
.multi-filter.is-open .multi-filter-trigger {
    border-color: #323336;
    background: #f4f4f5;
    box-shadow: none;
}
.multi-filter.is-open .multi-filter-trigger::after { background-image: url("assets/figma/chevron-up.svg"); }
.multi-filter-panel,
#skillFilterUi .multi-filter-panel,
#hostFilterUi .multi-filter-panel {
    top: calc(100% + 4px);
    width: min(426px, calc(100vw - 48px));
    max-height: 480px;
    padding: 8px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 5px 10px rgba(28, 28, 30, 0.1);
}
#hostFilterUi .multi-filter-panel { right: 0; left: auto; }
.multi-filter-search-wrap { height: 48px; margin: 0; padding-bottom: 8px; }
.multi-filter-search-icon {
    top: 20px;
    left: 12px;
    width: 20px;
    height: 20px;
    color: transparent;
    font-size: 0;
    background: url("assets/figma/search.svg") center / 20px 20px no-repeat;
}
.multi-filter-search-input {
    width: 100%;
    height: 40px;
    padding: 9px 12px 9px 40px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font-size: 14px;
    line-height: 20px;
}
.multi-filter-search-input::placeholder { color: #8f9499; }
.multi-filter-search-input:focus,
.multi-filter-search-input:focus-visible {
    outline: none;
    border-color: #8f9499;
    box-shadow: none;
}
.multi-filter-options {
    gap: 0;
    max-height: 416px;
    scrollbar-color: #8f9499 transparent;
    scrollbar-width: thin;
}
.multi-filter-option { min-height: 32px; gap: 8px; padding: 4px 12px; border-radius: 4px; }
.multi-filter-option:hover { background: #f4f4f5; }
.multi-filter-option input {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
    border: 1px solid rgba(0, 16, 36, 0.12);
    border-radius: 4px;
    box-shadow: none;
}
.multi-filter-option span { font-size: 14px; line-height: 20px; }
.multi-filter-option {
    position: relative;
}
.multi-filter-option .multi-filter-native-checkbox {
    position: absolute;
    width: 16px;
    height: 16px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}
.multi-filter-checkbox {
    display: grid;
    place-items: center;
    width: 16px;
    min-width: 16px;
    height: 16px;
    flex: 0 0 16px;
    overflow: visible;
    border: 1px solid rgba(0, 16, 36, 0.12);
    border-radius: 4px;
    background: #fff;
}
.multi-filter-native-checkbox:checked + .multi-filter-checkbox {
    border-color: #323336;
    background-color: #fff;
    background-image: url("assets/figma/checkbox-check.svg");
    background-position: calc(50% + 0.5px) calc(50% + 0.5px);
    background-size: 9px 7px;
    background-repeat: no-repeat;
}
.multi-filter-native-checkbox:checked + .multi-filter-checkbox::after {
    content: none;
}
.multi-filter-native-checkbox:focus-visible + .multi-filter-checkbox {
    outline: 2px solid rgba(95, 48, 247, 0.2);
    outline-offset: 1px;
}
.multi-filter-option .multi-filter-option-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.calendar-shell.day-mode .event-card { min-width: 0; padding-right: 8px; }
.calendar-shell.day-mode .event-card.has-counter { padding-right: 36px; }

.week-range-date {
    color: var(--text);
    font-weight: 500;
}

.week-range-separator {
    margin: 0 4px;
    color: var(--muted);
    font-weight: 400;
}

.week-range-week {
    color: var(--muted);
    font-weight: 400;
}

.date-picker-panel {
    width: min(288px, calc(100vw - 48px));
    height: 324px;
    padding: 12px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    box-shadow: 0 18px 36px rgba(28, 28, 30, 0.12);
}
.date-picker-panel button {
    appearance: none;
    margin: 0;
    border: 0;
    background-color: transparent;
    font: inherit;
    cursor: pointer;
}
.date-picker-month-nav {
    width: 28px;
    height: 28px;
    padding: 5px;
    color: transparent;
    font-size: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 18px 18px;
}
.date-picker-month-nav[data-date-picker-month="-1"] {
    background-image: url("assets/figma/chevron-left.svg");
}
.date-picker-month-nav[data-date-picker-month="1"] {
    background-image: url("assets/figma/chevron-right.svg");
}
.date-picker-day {
    width: 100%;
    min-width: 0;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    font-size: 15px;
    line-height: 20px;
}
.date-picker-day:focus,
.date-picker-day:focus-visible,
.date-picker-month-nav:focus,
.date-picker-month-nav:focus-visible {
    outline: none;
    box-shadow: none;
}

@media (max-width: 640px) {
    .view-mode-menu { right: auto; left: 0; }
    .multi-filter-panel,
    #skillFilterUi .multi-filter-panel,
    #hostFilterUi .multi-filter-panel {
        right: auto;
        left: 0;
        width: min(426px, calc(100vw - 48px));
    }
}

/* Animated event details drawer. */
.modal {
    display: flex;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
            opacity 180ms ease,
            visibility 0s linear 280ms;
}

.modal .drawer-card {
    opacity: 0;
    transform: translateX(calc(100% + 24px));
    transition:
            transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
            opacity 180ms ease;
    will-change: transform;
}

.modal.is-open {
    display: flex;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0s;
}

.modal.is-open .drawer-card {
    opacity: 1;
    transform: translateX(0);
}

.calendar-loading {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #27324a;
    background: rgba(255, 255, 255, 0.8);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.calendar-loading.is-visible { opacity: 1; pointer-events: auto; }

.calendar-loading-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #d5dbea;
    border-top-color: #4858e9;
    border-radius: 50%;
    animation: calendar-spin 700ms linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
    .modal,
    .modal .drawer-card {
        transition: none;
    }
}
