.member-calendar.mc {
    --mc-ink: #28333c;
    --mc-muted: #626c73;
    --mc-red: #a52a2a;
    --mc-line: #e9e5df;
    --mc-paper: #fff;
    --mc-soft: #faf8f4;
    color: var(--mc-ink);
    font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    font-size: 15px;
    line-height: 1.65;
}
.mc *, .mc *::before, .mc *::after { box-sizing: border-box; }
.mc [hidden] { display: none !important; }
.mc .mc-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.mc .mc-icon { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.mc .mc-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.mc .mc-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-bottom: 26px; padding: 6px 0 20px; border-bottom: 1px solid var(--mc-line); }
.mc .mc-eyebrow { display: block; color: var(--mc-muted); font-size: 11px; font-weight: 600; letter-spacing: .18em; margin-bottom: 5px; }
.mc .mc-header h3 { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--mc-ink); font-size: clamp(24px, 3vw, 30px); font-weight: 700; letter-spacing: .04em; }
.mc .mc-heading-dot { width: 8px; height: 8px; border-radius: 50%; background: #e6ac45; }
.mc .mc-header-actions, .mc .mc-focus-actions, .mc .mc-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mc .mc-button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 42px; padding: 9px 17px; border: 1px solid var(--mc-line); border-radius: 8px; background: #fff; color: var(--mc-ink) !important; font: inherit; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.mc .mc-button:hover { background: #f4f0eb; border-color: #c9c1b7; }
.mc .mc-button-primary { background: var(--mc-red); border-color: var(--mc-red); color: #fff !important; box-shadow: 0 3px 8px #a52a2a16; }
.mc .mc-button-primary:hover { background: #882020; border-color: #882020; }
.mc .mc-button-quiet { background: transparent; box-shadow: none; }
.mc .mc-button-small { min-height: 36px; padding: 6px 11px; font-size: 12px; }
.mc .mc-board { overflow: hidden; background: var(--mc-paper); border: 1px solid var(--mc-line); border-radius: 14px; box-shadow: 0 4px 22px #3b332807; }
.mc .mc-board-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; padding: 22px 22px 16px; }
.mc .mc-period { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.mc .mc-period h4 { margin: 0; font-size: clamp(17px, 2vw, 22px); font-weight: 700; letter-spacing: .02em; }
.mc .mc-period-nav { display: flex; gap: 3px; }
.mc .mc-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 34px; border: 1px solid var(--mc-line); border-radius: 7px; color: var(--mc-ink) !important; }
.mc .mc-icon-button:hover { background: var(--mc-soft); }
.mc .mc-previous .mc-icon { transform: rotate(180deg); }
.mc .mc-today { padding: 4px 11px; border: 1px solid var(--mc-line); border-radius: 6px; color: var(--mc-muted) !important; font-size: 12px; text-decoration: none; }
.mc .mc-view-switch { display: inline-flex; padding: 4px; background: #f3f1ed; border: 1px solid #eeebe6; border-radius: 9px; gap: 3px; }
.mc .mc-view-switch a { min-width: 40px; padding: 4px 11px; color: #73716d !important; font-size: 13px; text-align: center; text-decoration: none; border-radius: 6px; }
.mc .mc-view-switch a.is-active { background: #fff; color: var(--mc-red) !important; box-shadow: 0 1px 5px #30261a12; font-weight: 700; }
.mc .mc-board-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 0 22px 18px; }
.mc .mc-date-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.mc .mc-date-jump label { display: flex; align-items: center; gap: 6px; color: var(--mc-muted); font-size: 12px; margin: 0; }
.mc .mc-date-jump input { width: 144px; padding: 5px 7px; border-color: var(--mc-line); border-radius: 6px; font-size: 12px; min-height: 35px; }
.mc .mc-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; color: var(--mc-muted); font-size: 11px; }
.mc .mc-legend > span { display: inline-flex; gap: 6px; align-items: center; }
.mc .mc-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.mc .mc-dot-activity { background: #a52a2a; }
.mc .mc-dot-workshop { background: #176a82; }
.mc .mc-dot-manual { background: #8a4937; }
.mc .mc-grid-scroll { border: 0; border-top: 1px solid var(--mc-line); border-radius: 0; }
.mc .mc-grid { min-width: 560px; }
.mc .mc-weekday { padding: 10px 3px; background: #fcfbf9; color: #7b7770; font-size: 12px; font-weight: 500; border-bottom: 1px solid var(--mc-line); }
.mc .mc-weekday.is-weekend { color: var(--mc-red); }
.mc .mc-day { min-height: 117px; padding: 8px 6px 5px; border-right: 1px solid var(--mc-line); border-bottom: 1px solid var(--mc-line); box-shadow: none; background: #fff; }
.mc .mc-day:nth-child(7n) { border-right: 0; }
.mc .mc-day.is-weekend { background: #fefcf9; }
.mc .mc-day.is-outside { background: #f8f7f4; }
.mc .mc-day.is-outside .mc-day-heading > a:first-child { color: #b3b0aa !important; }
.mc .mc-day.is-today { background: #fffbf5; box-shadow: inset 0 0 0 1px #e9b45f; }
.mc .mc-grid.is-week .mc-day { min-height: 260px; }
.mc .mc-day-heading { display: flex; justify-content: space-between; align-items: center; min-height: 26px; margin-bottom: 6px; }
.mc .mc-day-heading > a:first-child { display: inline-flex; align-items: center; justify-content: center; min-width: 27px; min-height: 27px; padding: 1px 3px; color: #666660 !important; font-size: 12px; text-decoration: none; font-weight: 600; border-radius: 50%; }
.mc .is-today .mc-day-heading > a:first-child { background: var(--mc-red); color: #fff !important; }
.mc .mc-day-add { display: inline-flex; align-items: center; justify-content: center; padding: 3px; border-radius: 4px; color: #8c8982 !important; opacity: .35; }
.mc .mc-day:hover .mc-day-add, .mc .mc-day:focus-within .mc-day-add { opacity: 1; }
.mc .mc-day-add .mc-icon { width: 13px; height: 13px; }
.mc .mc-day-events { max-height: 180px; overflow-y: auto; scrollbar-width: thin; }
.mc .mc-grid.is-week .mc-day-events { max-height: 310px; }
.mc .mc-grid-event { display: block; margin: 4px 0; padding: 5px 6px; border: 0; border-left: 3px solid var(--event-color); border-radius: 3px; background: #f5f6f6; color: #38434b; font-size: 11px; line-height: 1.4; text-decoration: none; }
@supports (background: color-mix(in srgb, red 10%, white)) { .mc .mc-grid-event { background: color-mix(in srgb, var(--event-color) 9%, #fff); } }
.mc .mc-grid-event:hover { box-shadow: 0 0 0 1px var(--event-color); }
.mc .mc-grid-event small { display: block; font-size: 10px; opacity: .8; margin-bottom: 1px; }
.mc .mc-grid-event > span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.mc .mc-period-summary { display: flex; align-items: center; gap: 8px; padding: 20px 24px; background: var(--mc-soft); border-top: 1px solid var(--mc-line); color: var(--mc-muted); }
.mc .mc-period-summary strong { color: var(--mc-red); font-size: 24px; margin-left: auto; }
.mc .mc-agenda { margin-top: 32px; }
.mc .mc-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.mc .mc-section-heading h4 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 20px; font-weight: 700; }
.mc .mc-count { min-width: 25px; padding: 2px 7px; border-radius: 6px; background: #f2ece4; color: #8c6a42; font-size: 12px; text-align: center; }
.mc .mc-timezone { color: #716d65; font-size: 11px; }
.mc .mc-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 14px; margin-bottom: 18px; border: 1px solid var(--mc-line); border-radius: 10px; background: var(--mc-soft); }
.mc .mc-search { display: flex; flex: 1 1 220px; align-items: center; gap: 7px; min-width: 0; padding: 0 10px; background: #fff; border: 1px solid var(--mc-line); border-radius: 7px; color: #9a9892; margin: 0; }
.mc .mc-search input { width: 100%; min-width: 0; padding: 8px 0; border: 0; box-shadow: none; font-size: 12px; outline-offset: 0; }
.mc .mc-category-filter { margin: 0; }
.mc .mc-category-filter select { width: 145px; border-color: var(--mc-line); font-size: 12px; min-height: 38px; }
.mc .mc-filter-types { display: flex; flex-wrap: wrap; gap: 4px; flex-basis: 100%; }
.mc .mc-filter-types button { min-height: 32px; padding: 4px 12px; border: 1px solid transparent; background: transparent; color: var(--mc-muted); border-radius: 6px; font: inherit; font-size: 12px; cursor: pointer; }
.mc .mc-filter-types button[aria-pressed="true"] { background: #fff; color: var(--mc-red); border-color: #e1d4c8; font-weight: 600; }
.mc .mc-event-card { margin: 0 0 13px; padding: 0; border: 1px solid var(--mc-line); border-radius: 11px; background: #fff; overflow: hidden; box-shadow: 0 2px 12px #30282004; scroll-margin-top: 100px; animation: mc-arrive .3s ease both; }
.mc .mc-event-card:target { border-color: var(--event-color); box-shadow: 0 0 0 2px #a52a2a12; }
.mc .mc-event-overview { display: flex; align-items: flex-start; gap: 17px; padding: 20px; }
.mc .mc-event-date { display: flex; flex: 0 0 58px; flex-direction: column; align-items: center; gap: 0; padding: 7px 0; border-radius: 9px; border-top: 3px solid var(--event-color); background: #f7f5f1; color: #81786d; font-size: 10px; line-height: 1.6; }
.mc .mc-event-date strong { font-family: Georgia, "Noto Serif TC", serif; font-size: 30px; font-weight: 500; line-height: 1.15; color: var(--mc-ink); }
.mc .mc-event-main { flex: 1 1 auto; min-width: 0; }
.mc .mc-event-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 7px; font-size: 10px; }
.mc .mc-type-tag { padding: 2px 7px; border-radius: 4px; background: #f2f4f4; color: #45515b; font-weight: 600; }
.mc .mc-category-tag { display: inline-flex; align-items: center; gap: 5px; color: #777872; }
.mc .mc-status-tag { padding: 1px 6px; border: 1px solid #e6e8e4; border-radius: 4px; color: #6b7b6a; }
.mc .mc-status-tag.is-waiting { border-color: #e9d5aa; background: #fffaee; color: #8c651f; }
.mc .mc-event-main h5 { margin: 0 0 9px; font-size: 16px; line-height: 1.55; font-weight: 700; overflow-wrap: anywhere; }
.mc .mc-event-meta { display: flex; flex-wrap: wrap; gap: 7px 16px; color: var(--mc-muted); font-size: 13px; }
.mc .mc-event-meta > span { display: inline-flex; align-items: flex-start; gap: 5px; }
.mc .mc-event-meta .mc-icon { width: 14px; height: 17px; }
.mc .mc-event-note { margin: 9px 0 0; color: #777; font-size: 12px; white-space: pre-line; }
.mc .mc-event-link { flex-shrink: 0; color: #6e797c !important; text-decoration: none; font-size: 11px; padding-top: 4px; }
.mc .mc-event-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 20px; border-top: 1px solid #f1eeea; background: #fdfcfb; }
.mc .mc-reminder-summary { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; color: #716d65; font-size: 12px; }
.mc .mc-reminder-summary .mc-icon { width: 14px; height: 14px; }
.mc .mc-reminder-summary.is-enabled { color: #55684d; }
.mc .mc-reminder-channel { color: #716d65; border-left: 1px solid #ddd8d1; padding-left: 7px; margin-left: 3px; }
.mc .mc-text-link { color: var(--mc-red) !important; font-size: 12px; font-weight: 600; text-decoration: none; }
.mc .mc-text-link:hover { text-decoration: underline; }
.mc .mc-event-editor { border-top: 1px solid var(--mc-line); }
.mc .mc-event-editor > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 20px; color: #7b7771; cursor: pointer; font-size: 12px; list-style: none; }
.mc .mc-event-editor > summary::-webkit-details-marker, .mc .mc-manage-panel > summary::-webkit-details-marker { display: none; }
.mc .mc-event-editor > summary .mc-icon { width: 14px; height: 14px; transform: rotate(90deg); }
.mc .mc-event-editor[open] > summary { color: var(--mc-red); background: var(--mc-soft); }
.mc .mc-event-editor[open] > summary .mc-icon { transform: rotate(-90deg); }
.mc .mc-event-editor > .mc-entry-form { padding: 20px; }
.mc .mc-entry-form { gap: 16px; padding: 0; margin: 0; }
.mc .mc-entry-form > .mc-field { gap: 6px; margin: 0; min-width: 0; }
.mc .mc-field > span { font-size: 12px; color: #656a6a; font-weight: 600; }
.mc .mc-field > span small { font-weight: 400; color: #a09b92; margin-left: 4px; }
.mc .mc-required { color: var(--mc-red); }
.mc .mc-field-wide { grid-column: 1 / -1; }
.mc .mc-field input, .mc .mc-field select, .mc .mc-field textarea { width: 100%; min-height: 43px; padding: 10px 12px; font-size: 13px; border-color: #e0ddd7; border-radius: 7px; color: var(--mc-ink); background: #fff; }
.mc .mc-field input::placeholder, .mc .mc-field textarea::placeholder { color: #a6a29b; font-size: 12px; }
.mc .mc-field textarea { resize: vertical; }
.mc .mc-field input:focus, .mc .mc-field select:focus, .mc .mc-field textarea:focus { outline: 2px solid #a52a2a32; outline-offset: 1px; border-color: #b87766; }
.mc .mc-field input:user-invalid { border-color: #bc4343; }
.mc .mc-delivery { display: flex; grid-column: 1 / -1; flex-wrap: wrap; gap: 10px 22px; min-width: 0; margin: 0; padding: 13px 15px 15px; border: 1px solid var(--mc-line); border-radius: 8px; background: #fcfbf9; }
.mc .mc-delivery legend { float: none; width: auto; padding: 0 5px; margin: 0; color: #787369; font-size: 11px; }
.mc .mc-checkbox { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; cursor: pointer; margin: 0; }
.mc .mc-checkbox input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--mc-red); }
.mc .mc-delivery.is-off { opacity: .6; }
.mc .mc-reminder-off { flex-basis: 100%; font-size: 11px; margin: 0; color: var(--mc-muted); }
.mc .mc-form-notice { margin: 0; padding: 10px 13px; background: var(--mc-soft); border-radius: 6px; font-size: 12px; color: #837763; }
.mc .mc-form-actions { justify-content: flex-start; padding-top: 2px; }
.mc .mc-danger-zone { margin: 0 20px; padding: 12px 0 18px; border-top: 1px dashed var(--mc-line); }
.mc .mc-delete { border: 0; border-radius: 4px; padding: 4px 2px; background: none; font: inherit; font-size: 11px; color: #a76256; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.mc button:disabled { cursor: not-allowed; opacity: .5; }
.mc .mc-empty { display: flex; align-items: center; flex-direction: column; gap: 9px; padding: 37px 20px; border: 1px dashed #e4dbcd; border-radius: 11px; background: radial-gradient(circle at 50% 15%, #f5ede0, transparent 60%), #fdfcf9; text-align: center; }
.mc .mc-empty > .mc-icon { width: 35px; height: 35px; margin-bottom: 6px; color: #b59c79; }
.mc .mc-empty h5 { font-size: 16px; margin: 0; }
.mc .mc-empty p { font-size: 12px; color: var(--mc-muted); margin: 0 0 8px; }
.mc .mc-manage-grid { display: grid; gap: 16px; margin-top: 26px; }
.mc .mc-manage-panel { border: 1px solid var(--mc-line); border-radius: 12px; background: #fff; overflow: hidden; scroll-margin-top: 90px; }
.mc .mc-manage-panel > summary { display: flex; align-items: center; gap: 13px; padding: 19px 20px; cursor: pointer; list-style: none; }
.mc .mc-panel-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 39px; width: 39px; height: 39px; border-radius: 10px; background: #f8ece8; color: var(--mc-red); }
.mc .mc-panel-icon-gold { background: #f8f0e0; color: #a67b2f; }
.mc .mc-manage-panel > summary strong { display: block; font-size: 14px; font-weight: 600; }
.mc .mc-manage-panel > summary small { display: block; color: #939087; font-size: 11px; margin-top: 2px; }
.mc .mc-panel-arrow { margin-left: auto; width: 16px; height: 16px; transform: rotate(90deg); color: #aaa59c; }
.mc .mc-manage-panel[open] .mc-panel-arrow { transform: rotate(-90deg); }
.mc .mc-panel-body { padding: 0 20px 22px; }
.mc .mc-category-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--mc-line); }
.mc .mc-category-form { display: flex; flex: 1; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.mc .mc-category-form label { margin: 0; }
.mc .mc-category-form input[type="color"] { width: 35px; height: 36px; padding: 3px; border: 1px solid #e0ddd7; border-radius: 6px; background: #fff; cursor: pointer; }
.mc .mc-category-name { flex: 1; min-width: 95px; }
.mc .mc-category-name input { width: 100%; padding: 7px 9px; font-size: 12px; border-color: var(--mc-line); }
.mc .mc-category-new { margin-top: 13px; padding-top: 16px; border-top: 1px dashed var(--mc-line); }
.mc .mc-focus { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 15px; margin: 0 0 22px; padding: 20px; border-color: #e5d3ab; border-left-color: #d9ac52; background: #fffbf2; }
.mc .mc-focus h4 { margin: 0 0 6px; font-size: 18px; }
.mc .mc-focus p { color: #8b7d65; font-size: 12px; margin: 0; }
.mc .mc-focus-actions > p { flex-basis: 100%; }
.mc :is(a, button, summary, input, select, textarea):focus-visible { outline: 3px solid #176a82; outline-offset: 3px; }
@keyframes mc-arrive { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 700px) {
    .mc .mc-board-toolbar { padding: 16px 14px 12px; gap: 12px; }
    .mc .mc-board-tools { padding: 0 14px 14px; }
    .mc .mc-period { gap: 8px; }
    .mc .mc-period h4 { font-size: 17px; }
    .mc .mc-legend { gap: 10px; }
    .mc .mc-header-actions { gap: 6px; }
    .mc .mc-button { padding: 8px 12px; }
    .mc .mc-event-overview { padding: 16px 13px; gap: 11px; flex-wrap: wrap; }
    .mc .mc-event-date { flex-basis: 46px; }
    .mc .mc-event-date strong { font-size: 27px; }
    .mc .mc-event-main { flex-basis: calc(100% - 60px); }
    .mc .mc-event-main h5 { font-size: 14px; }
    .mc .mc-event-link { margin-left: 57px; padding: 0; }
    .mc .mc-event-footer { padding: 10px 13px; }
    .mc .mc-event-editor > summary, .mc .mc-event-editor > .mc-entry-form { padding: 15px 13px; }
    .mc .mc-category-filter { flex: 1 1 100%; }
    .mc .mc-category-filter select { width: 100%; }
    .mc .mc-day-add { opacity: .7; }
    .mc .mc-manage-panel > summary { padding: 16px 13px; }
    .mc .mc-panel-body { padding: 0 13px 18px; }
}
@media (max-width: 420px) { .mc .mc-header { align-items: flex-start; } .mc .mc-header-actions { width: 100%; } .mc .mc-header-actions > .mc-button-primary { margin-left: auto; } .mc .mc-view-switch { width: 100%; } .mc .mc-view-switch a { flex: 1; } }
@media (prefers-reduced-motion: reduce) { .mc .mc-event-card { animation: none; } .mc .mc-button { transition: none; } }
@media print { .mc .mc-header-actions, .mc .mc-filters, .mc .mc-view-switch, .mc .mc-date-jump, .mc .mc-period-nav, .mc .mc-day-add, .mc .mc-event-editor, .mc .mc-event-footer, .mc .mc-manage-grid { display: none !important; } .mc .mc-grid { min-width: 0; } .mc .mc-event-card { break-inside: avoid; animation: none; } }
