.ac-page { width: 100%; min-width: 0; padding: 30px; border: 1px solid #e5e3da; border-radius: 20px; background: radial-gradient(ellipse at 100% 0, #fff1d4 0, transparent 34%), #f7f7f2; }
.ac-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 26px; }
.ac-heading h1 { margin: 6px 0 9px; font-family: "Noto Serif TC", "PMingLiU", serif; font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: .05em; }
.ac-heading p:last-child { margin: 0; color: #6a7679; font-size: 13px; }
.ac-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 20px; border: 1px solid #e8e7e0; border-radius: 13px; background: #fff; box-shadow: 0 7px 18px #24333105; }
.ac-filters label { display: flex; flex: 1 1 130px; flex-direction: column; gap: 7px; min-width: 0; margin: 0; color: #526169; font-size: 12px; font-weight: 600; }
.ac-page .ac-filters input, .ac-page .ac-filters select { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #dce2dd; border-radius: 7px; background: #f8faf7; color: #304650; font-size: 14px; }
.ac-filters label.ac-keyword { flex-grow: 2; }
.ac-legend { display: flex; flex-wrap: wrap; gap: 9px 17px; padding: 18px 2px; color: #6f7975; font-size: 11px; }
.ac-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ac-legend i { width: 7px; height: 7px; border-radius: 50%; }
.ac-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(310px, 1fr); align-items: start; gap: 22px; }
.ac-page .mc-agenda { min-width: 0; margin-top: 0; }
.ac-page .mc-board { min-width: 0; }
.ac-page .mc-board-toolbar { gap: 12px; padding: 20px 16px; }
.ac-page .mc-period h2 { margin: 0; font-family: Georgia, "Noto Serif TC", serif; font-size: 23px; }
.ac-page .mc-section-heading h2 { margin: 0; font-size: 21px; }
.ac-page .mc-event-main h3 { margin: 0 0 10px; font-size: 16px; line-height: 1.6; font-weight: 700; overflow-wrap: anywhere; }
.ac-page .mc-event-link { display: inline-block; margin-top: 10px; }
.ac-page .mc-grid { min-width: 0; }
.ac-page .mc-day { min-width: 0; }
.ac-page .mc-day.is-selected { background: #fff6e2; box-shadow: inset 0 0 0 2px #c08a3f; }
.ac-page .mc-day-heading small { color: #929b93; font-size: 10px; }
.ac-page .mc-grid-event { overflow-wrap: anywhere; }
.ac-page .mc-focus { border: 1px solid #eadabd; border-radius: 12px; }
.ac-page .mc-focus h2 { margin: 0 0 8px; font-size: 19px; }
.ac-page .mc-filters { padding: 11px; }
.ac-page .mc-search { flex-basis: 100%; }
.ac-layout-list { grid-template-columns: minmax(0, 1fr); }
.ac-layout-list .mc-agenda { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; }
.ac-layout-list .mc-section-heading, .ac-layout-list .mc-filters, .ac-layout-list .mc-sr-only, .ac-layout-list .mc-empty { grid-column: 1 / -1; }
.ac-notice { padding: 12px 16px; border: 1px solid #e7d5b0; border-radius: 8px; background: #fff9ec; }
@media (max-width: 1100px) { .ac-layout { grid-template-columns: minmax(0, 1fr); } .ac-page .mc-agenda { margin-top: 12px; } }
@media (min-width: 1101px) { .ac-layout:not(.ac-layout-list) .mc-agenda { max-height: 920px; overflow-y: auto; padding-right: 6px; scrollbar-width: thin; overscroll-behavior-y: contain; } }
@media (max-width: 700px) {
    .ac-page { padding: 17px 12px; border-radius: 12px; }
    .ac-filters { padding: 13px; gap: 12px 9px; }
    .ac-filters label { flex-basis: calc(50% - 9px); }
    .ac-filters label.ac-keyword { flex-basis: 100%; }
    .ac-page .ac-filters input, .ac-page .ac-filters select, .ac-page .mc-entry-form input, .ac-page .mc-entry-form select, .ac-page .mc-entry-form textarea { font-size: 16px; }
    .ac-layout-list .mc-agenda { grid-template-columns: minmax(0, 1fr); }
    .ac-page .mc-day { padding: 5px 2px; min-height: 90px; }
    .ac-page .mc-grid-event { min-height: 8px; padding: 0; margin: 5px 1px; border-left: 0; border-radius: 3px; background: var(--event-color); }
    .ac-page .mc-grid-event small, .ac-page .mc-grid-event > span { display: none; }
    .ac-page .mc-day-events { max-height: 135px; }
    .ac-page .mc-category-row { flex-wrap: wrap; }
}
@media print { .ac-filters, .mc-header-actions, .mc-filters, .mc-manage-grid, .mc-event-editor, .mc-event-footer { display: none !important; } .ac-layout { display: block; } }
