.mm-cal-shell {
    --mm-ink: #10231a;
    --mm-teal: #0f766e;
    --mm-gold: #c6a35a;
    --mm-paper: #fffaf1;
    --mm-line: rgba(16, 35, 26, 0.08);
    color: var(--mm-ink);
}

.mm-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.mm-stat {
    background: linear-gradient(180deg, #fff, #f8f4ea);
    border: 1px solid var(--mm-line);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 8px 24px rgba(16, 35, 26, 0.04);
}

.mm-stat b {
    display: block;
    font-size: 28px;
    line-height: 1;
    color: var(--mm-teal);
}

.mm-stat span {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #5b6358;
}

.mm-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.mm-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mm-chip {
    border: 1px solid var(--mm-line);
    background: #fff;
    color: #3d4a40;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.18s ease;
}

.mm-chip:hover,
.mm-chip.is-active {
    background: var(--mm-teal);
    border-color: var(--mm-teal);
    color: #fff;
}

.mm-search {
    min-width: min(280px, 100%);
    border: 1px solid var(--mm-line);
    border-radius: 999px;
    padding: 9px 14px;
    font: inherit;
    outline: none;
    background: #fff;
}

.mm-search:focus {
    border-color: var(--mm-teal);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.mm-legend {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #5b6358;
    margin-bottom: 12px;
}

.mm-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.mm-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
    gap: 16px;
}

.mm-card {
    background: linear-gradient(180deg, #fffaf1, #f4ebda);
    border-radius: 22px;
    padding: 16px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
}

.mm-card h2 {
    margin: 0 0 12px;
    font-size: 20px;
}

.mm-calendar {
    min-height: 640px;
}

.mm-calendar .fc {
    font-family: inherit;
}

.mm-calendar .fc .fc-toolbar-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.mm-calendar .fc .fc-button {
    border-radius: 999px !important;
    border: 0 !important;
    background: #123226 !important;
    text-transform: capitalize;
    box-shadow: none !important;
}

.mm-calendar .fc .fc-button:hover {
    background: #0f766e !important;
}

.mm-calendar .fc .fc-button-active {
    background: var(--mm-gold) !important;
    color: #10231a !important;
}

.mm-calendar .fc-theme-standard td,
.mm-calendar .fc-theme-standard th,
.mm-calendar .fc-theme-standard .fc-scrollgrid {
    border-color: rgba(16, 35, 26, 0.08);
}

.mm-calendar .fc-daygrid-day.fc-day-today {
    background: rgba(198, 163, 90, 0.16) !important;
}

.mm-calendar .fc-daygrid-day.mm-day-selected {
    background: rgba(15, 118, 110, 0.1);
    box-shadow: inset 0 0 0 2px var(--mm-teal);
}

.mm-calendar .fc-daygrid-day:hover {
    background: rgba(15, 118, 110, 0.05);
    cursor: pointer;
}

.mm-event {
    border-radius: 8px !important;
    border: 0 !important;
    padding: 2px 6px !important;
    font-size: 12px;
    box-shadow: 0 4px 10px rgba(16, 35, 26, 0.08);
}

.mm-event-cancelled {
    opacity: 0.72;
    text-decoration: line-through;
}

.mm-side-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 680px;
    overflow: auto;
}

.mm-item {
    display: block;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--mm-line);
    border-radius: 14px;
    padding: 12px;
    cursor: pointer;
    transition: 0.18s ease;
}

.mm-item:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 118, 110, 0.28);
}

.mm-item strong {
    display: block;
    margin-bottom: 4px;
}

.mm-item small {
    color: #5b6358;
    line-height: 1.5;
}

.mm-empty {
    color: #5b6358;
    font-size: 14px;
}

.mm-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    place-items: center;
    padding: 20px;
    background: rgba(8, 25, 16, 0.48);
    backdrop-filter: blur(8px);
}

.mm-modal.is-open {
    display: grid;
}

.mm-dialog {
    width: min(560px, 100%);
    background: #fffaf1;
    color: #10231a;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    animation: mmIn 0.2s ease;
}

.mm-dialog h3 {
    margin: 0 0 8px;
    font-size: 26px;
}

.mm-dialog p {
    margin: 0 0 12px;
    color: #3d4a40;
    line-height: 1.55;
}

.mm-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 16px 0;
}

.mm-fact {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 10px 12px;
}

.mm-fact span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6d7369;
}

.mm-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.mm-btn {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    cursor: pointer;
    font: inherit;
    text-decoration: none;
}

.mm-btn-primary {
    background: #0f766e;
    color: #fff;
}

.mm-btn-ghost {
    background: transparent;
    color: #3d4a40;
}

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

.fi .mm-card,
.fi .mm-stat {
    background: #fff;
}

.dark .mm-card,
.dark .mm-stat,
.dark .mm-dialog,
.dark .mm-item,
.dark .mm-search,
.dark .mm-chip {
    background: #111827;
    color: #f3f4f6;
    border-color: rgba(255, 255, 255, 0.08);
}

.dark .mm-stat span,
.dark .mm-item small,
.dark .mm-empty,
.dark .mm-dialog p {
    color: #9ca3af;
}

@media (max-width: 960px) {
    .mm-grid,
    .mm-stats,
    .mm-facts {
        grid-template-columns: 1fr;
    }
}
