.mced-tcal {
    --mced-gold: #c99a4b;
    --mced-gold-dark: #ae7d31;
    --mced-gold-soft: #fff7e8;
    --mced-navy: #0d1b3e;
    --mced-filter-bg: #102a2e;
    --mced-filter-soft: rgba(255,255,255,.08);
    --mced-filter-border: rgba(255,255,255,.15);
    --mced-blue: #4f46e5;
    --mced-blue-soft: #eef2ff;
    --mced-red: #ef3340;
    --mced-red-soft: #fff0f1;
    --mced-border: #e0e3e8;
    --mced-surface: #f5f7fa;
    --mced-text: #202532;
    --mced-muted: #687083;
    position: relative;
    width: min(100%, 1680px);
    margin: 0 auto;
    padding: 0 12px 34px;
    color: var(--mced-text);
}

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

.mced-tcal [hidden] { display: none !important; }

.mced-tcal button,
.mced-tcal input,
.mced-tcal select { font-family: inherit; }

.mced-tcal button:focus-visible,
.mced-tcal input:focus-visible,
.mced-tcal select:focus-visible,
.mced-tcal a:focus-visible {
    outline: 3px solid rgba(201,154,75,.38);
    outline-offset: 2px;
}

.mced-tcal__intro {
    max-width: 1440px;
    margin: 0 auto 20px;
    padding: 0 4px;
}

.mced-tcal__intro h1 {
    margin: 0 0 8px;
    color: var(--mced-navy);
    font-size: clamp(30px, 3vw, 46px);
    line-height: 1.12;
}

.mced-tcal__intro p {
    margin: 0;
    color: var(--mced-muted);
    font-size: 15px;
}

/* Unified control panel, visually aligned with the By Country filter bar. */
.mced-tcal__control-panel {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 18px;
    background: var(--mced-filter-bg);
    color: #fff;
    box-shadow: 0 12px 28px rgba(0,0,0,.14);
}

.mced-tcal__toolbar {
    display: grid;
    grid-template-columns: minmax(250px, 1fr) auto minmax(250px, 1fr);
    align-items: center;
    gap: 18px;
    padding: 16px 18px 13px;
}

.mced-tcal__navigation,
.mced-tcal__view-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mced-tcal__view-switcher { justify-content: flex-end; }

.mced-tcal__nav-button,
.mced-tcal__today-button,
.mced-tcal__view-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin: 0;
    border: 1px solid var(--mced-filter-border);
    border-radius: 11px;
    background: var(--mced-filter-soft);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    transition: background .17s ease, border-color .17s ease, color .17s ease, transform .17s ease;
}

.mced-tcal__nav-button {
    width: 42px;
    padding: 0;
    font-size: 20px;
}

.mced-tcal__today-button,
.mced-tcal__view-button { padding: 0 15px; }

.mced-tcal__nav-button:hover,
.mced-tcal__today-button:hover,
.mced-tcal__view-button:hover {
    background: rgba(255,255,255,.15);
    color: #fff;
    transform: translateY(-1px);
}

.mced-tcal__view-button.is-active {
    border-color: var(--mced-gold);
    background: var(--mced-gold);
    color: #151515;
}

.mced-tcal__date-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 0;
}

.mced-tcal__date-select {
    display: block;
    margin: 0;
}

.mced-tcal__date-select select {
    min-height: 44px;
    margin: 0;
    border: 1px solid var(--mced-filter-border);
    border-radius: 11px;
    background: var(--mced-filter-soft);
    color: #fff;
    padding: 0 38px 0 14px;
    font-size: 19px;
    font-weight: 800;
    line-height: 1;
    box-shadow: none;
    color-scheme: dark;
    cursor: pointer;
}

.mced-tcal__date-select:first-child select { min-width: 154px; }
.mced-tcal__date-select--year select { min-width: 104px; }

.mced-tcal__date-select select:hover {
    background: rgba(255,255,255,.15);
    border-color: rgba(255,255,255,.24);
}

.mced-tcal__date-select select:focus {
    border-color: rgba(201,154,75,.9);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(201,154,75,.17);
}

.mced-tcal__date-select select option {
    background: #fff;
    color: #202532;
    font-size: 15px;
}

.mced-tcal__filters {
    display: grid;
    grid-template-columns: minmax(220px, .9fr) minmax(390px, 1.35fr) minmax(260px, 1.1fr) auto;
    align-items: end;
    gap: 14px;
    margin: 0 18px;
    padding: 15px 0;
    border-top: 1px solid rgba(255,255,255,.12);
}

.mced-tcal__country-filter,
.mced-tcal__search-filter {
    display: grid;
    gap: 6px;
    color: rgba(255,255,255,.88);
    font-size: 12px;
    font-weight: 750;
}

.mced-tcal__country-filter select,
.mced-tcal__search-filter input {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--mced-filter-border);
    border-radius: 11px;
    background: var(--mced-filter-soft);
    color: #fff;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 650;
    box-shadow: none;
}

.mced-tcal__country-filter select {
    color-scheme: dark;
}

.mced-tcal__country-filter select option {
    background: #fff;
    color: #202532;
}

.mced-tcal__search-filter input::placeholder { color: rgba(255,255,255,.58); }

.mced-tcal__country-filter select:focus,
.mced-tcal__search-filter input:focus {
    border-color: rgba(201,154,75,.9);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(201,154,75,.17);
}

.mced-tcal__format-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mced-tcal__filter-label {
    width: 100%;
    color: rgba(255,255,255,.88);
    font-size: 12px;
    font-weight: 750;
}

.mced-tcal .mced-format-pill {
    min-height: 42px;
    margin: 0;
    padding: 9px 14px;
}

.mced-tcal__reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    transition: background .17s ease, transform .17s ease;
}

.mced-tcal__reset:hover { background: rgba(255,255,255,.15); }
.mced-tcal__reset:active { transform: translateY(1px); }

.mced-tcal__status {
    min-height: 38px;
    padding: 9px 18px 12px;
    border-top: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.75);
    font-size: 12px;
    font-weight: 700;
    text-align: right;
}

.mced-tcal__calendar-shell {
    position: relative;
    min-height: 440px;
    margin-top: 24px;
}

.mced-tcal__loading {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 180px;
    border-radius: 16px;
    background: rgba(255,255,255,.82);
    color: var(--mced-navy);
    font-weight: 800;
    backdrop-filter: blur(3px);
}

.mced-tcal__error {
    margin-bottom: 14px;
    padding: 14px 18px;
    border: 1px solid #efb8bc;
    border-radius: 12px;
    background: #fff2f3;
    color: #9c242a;
    font-weight: 750;
}

.mced-tcal__spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(13,27,62,.18);
    border-top-color: var(--mced-gold);
    border-radius: 50%;
    animation: mced-tcal-spin .75s linear infinite;
}

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

.mced-tcal__month-view,
.mced-tcal__list-view {
    overflow: hidden;
    border: 1px solid var(--mced-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 9px 28px rgba(13,27,62,.085);
}

.mced-tcal__month-view {
    padding: 12px;
    background: var(--mced-surface);
}

.mced-tcal__weekdays,
.mced-tcal__month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.mced-tcal__weekdays {
    margin-bottom: 8px;
}

.mced-tcal__weekdays span {
    padding: 9px 6px;
    color: var(--mced-muted);
    text-align: center;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.mced-tcal-day {
    min-width: 0;
    min-height: 158px;
    padding: 9px;
    overflow: hidden;
    border: 1px solid var(--mced-border);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(13,27,62,.025);
    transition: border-color .17s ease, box-shadow .17s ease, transform .17s ease;
}

.mced-tcal-day:hover {
    border-color: #d1d6de;
    box-shadow: 0 6px 14px rgba(13,27,62,.065);
    transform: translateY(-1px);
}

.mced-tcal-day.is-outside-month {
    background: #fafbfc;
    opacity: .62;
}

.mced-tcal-day.is-today {
    border-color: var(--mced-gold);
    box-shadow: inset 0 0 0 1px var(--mced-gold), 0 5px 14px rgba(201,154,75,.12);
}

.mced-tcal-day__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.mced-tcal-day__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #f1f3f6;
    color: var(--mced-navy);
    font-weight: 850;
    cursor: pointer;
}

.mced-tcal-day.is-today .mced-tcal-day__number {
    background: var(--mced-gold);
    color: #161616;
}

.mced-tcal-day__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 22px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #edf0f4;
    color: var(--mced-muted);
    font-size: 10px;
    font-weight: 850;
}

.mced-tcal-day__events {
    display: grid;
    gap: 6px;
}

.mced-tcal-event {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    width: 100%;
    min-height: 34px;
    margin: 0;
    padding: 6px 7px;
    overflow: hidden;
    border: 1px solid transparent;
    border-left-width: 3px;
    border-radius: 8px;
    background: #fff;
    color: var(--mced-text);
    text-align: left;
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.mced-tcal-event:hover {
    transform: translateX(1px);
    box-shadow: 0 4px 10px rgba(13,27,62,.07);
}

.mced-tcal-event__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.mced-tcal-event__title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mced-tcal-event__duration {
    padding: 2px 5px;
    border-radius: 999px;
    background: rgba(255,255,255,.7);
    color: inherit;
    font-size: 9px;
    font-weight: 850;
}

.mced-tcal-event--classical {
    border-color: #e4bf78;
    background: #fff8eb;
    color: #8a6222;
}

.mced-tcal-event--rapid {
    border-color: #a8b4ff;
    background: var(--mced-blue-soft);
    color: #3730a3;
}

.mced-tcal-event--blitz {
    border-color: #f2a5ab;
    background: var(--mced-red-soft);
    color: #b4232e;
}

.mced-tcal-event--other {
    border-color: #cbd2db;
    background: #f4f6f8;
    color: #526073;
}

.mced-tcal-day__more {
    justify-self: start;
    min-height: 26px;
    margin: 0;
    padding: 3px 7px;
    border: 0;
    border-radius: 7px;
    background: #f3eee5;
    color: var(--mced-gold-dark);
    font-size: 10px;
    font-weight: 850;
    cursor: pointer;
}

.mced-tcal-day__more:hover { background: #ece0c9; }

/* List view, also the default mobile experience. */
.mced-tcal__list-view {
    padding: 20px;
}

.mced-tcal-list-group + .mced-tcal-list-group { margin-top: 28px; }

.mced-tcal-list-group__date {
    margin: 0 0 11px;
    color: var(--mced-navy);
    font-size: 20px;
    line-height: 1.2;
}

.mced-tcal-list-card {
    display: grid;
    grid-template-columns: 116px 58px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin: 0 0 10px;
    padding: 9px 13px 9px 9px;
    overflow: hidden;
    border: 1px solid var(--mced-border);
    border-left-width: 5px;
    border-radius: 13px;
    background: #fff;
    color: var(--mced-text);
    text-align: left;
    cursor: pointer;
    transition: transform .17s ease, box-shadow .17s ease, border-color .17s ease;
}

.mced-tcal-list-card:hover {
    border-color: #d0d5dc;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(13,27,62,.08);
}

.mced-tcal-list-card--classical { border-left-color: var(--mced-gold); }
.mced-tcal-list-card--rapid { border-left-color: var(--mced-blue); }
.mced-tcal-list-card--blitz { border-left-color: var(--mced-red); }
.mced-tcal-list-card--other { border-left-color: #8b98a9; }

.mced-tcal-list-card__media {
    display: block;
    width: 116px;
    height: 72px;
    overflow: hidden;
    border-radius: 9px;
    background: #edf0f4;
}

.mced-tcal-list-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 3px;
}

.mced-tcal-list-card__placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #a0a8b4;
    font-size: 28px;
}

.mced-tcal-list-card__date {
    display: grid;
    place-items: center;
    align-content: center;
    min-height: 58px;
    border-radius: 10px;
    background: #f2f4f7;
}

.mced-tcal-list-card__date strong {
    color: var(--mced-navy);
    font-size: 22px;
    line-height: 1;
}

.mced-tcal-list-card__date span {
    color: var(--mced-muted);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.mced-tcal-list-card__body {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.mced-tcal-list-card__title {
    color: var(--mced-navy);
    font-size: 15px;
    line-height: 1.28;
}

.mced-tcal-list-card__meta {
    overflow: hidden;
    color: var(--mced-muted);
    font-size: 12px;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mced-tcal-list-card__arrow {
    color: #9aa4b1;
    font-size: 28px;
}

.mced-tcal__empty {
    padding: 54px 22px;
    text-align: center;
}

.mced-tcal__empty h3 {
    margin: 0 0 8px;
    color: var(--mced-navy);
}

.mced-tcal__empty p {
    margin: 0;
    color: var(--mced-muted);
}

/* Drawer */
.mced-tcal__drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(7,18,32,.5);
    backdrop-filter: blur(3px);
}

.mced-tcal__drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 99999;
    width: min(460px, 94vw);
    height: 100dvh;
    padding: 58px 24px 28px;
    overflow-y: auto;
    background: #fff;
    box-shadow: -18px 0 45px rgba(7,18,32,.22);
    transform: translateX(105%);
    transition: transform .28s ease;
}

.mced-tcal__drawer.is-open { transform: translateX(0); }

.mced-tcal__drawer-close {
    position: absolute;
    top: 14px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--mced-border);
    border-radius: 50%;
    background: #fff;
    color: var(--mced-navy);
    font-size: 25px;
    cursor: pointer;
}

.mced-tcal-drawer-open { overflow: hidden; }

.mced-tcal-drawer__image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 20px;
    border-radius: 14px;
    object-fit: cover;
}

.mced-tcal-drawer__eyebrow {
    margin: 0 0 6px;
    color: var(--mced-gold-dark);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mced-tcal-drawer__title {
    margin: 0 0 12px;
    color: var(--mced-navy);
    font-size: 28px;
    line-height: 1.18;
}

.mced-tcal-drawer__date,
.mced-tcal-drawer__meta {
    margin: 0 0 8px;
    color: var(--mced-muted);
    line-height: 1.5;
}

.mced-tcal-drawer__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 18px 0;
}

.mced-tcal-drawer__badge {
    padding: 5px 9px;
    border-radius: 999px;
    background: #f2f5f8;
    color: var(--mced-text);
    font-size: 12px;
    font-weight: 800;
}

.mced-tcal-drawer__badge--classical { background: #fff8eb; color: #8a6222; }
.mced-tcal-drawer__badge--rapid { background: var(--mced-blue-soft); color: #3730a3; }
.mced-tcal-drawer__badge--blitz { background: var(--mced-red-soft); color: #b4232e; }

.mced-tcal-drawer__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 12px;
    padding: 0 18px;
    border-radius: 10px;
    background: var(--mced-gold);
    color: #111 !important;
    font-weight: 850;
    text-decoration: none !important;
}

.mced-tcal-drawer__link:hover { background: #d7aa62; }

.mced-tcal-drawer__day-list {
    display: grid;
    gap: 9px;
    margin-top: 18px;
}

.mced-tcal-drawer__day-event {
    display: grid;
    gap: 4px;
    width: 100%;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--mced-border);
    border-left-width: 5px;
    border-radius: 11px;
    background: #fff;
    color: var(--mced-navy);
    text-align: left;
    cursor: pointer;
}

.mced-tcal-drawer__day-event span {
    color: var(--mced-muted);
    font-size: 12px;
}

.mced-tcal-drawer__day-event--classical { border-left-color: var(--mced-gold); }
.mced-tcal-drawer__day-event--rapid { border-left-color: var(--mced-blue); }
.mced-tcal-drawer__day-event--blitz { border-left-color: var(--mced-red); }
.mced-tcal-drawer__day-event--other { border-left-color: #8b98a9; }

@media (max-width: 1180px) {
    .mced-tcal__toolbar { grid-template-columns: 1fr auto; }
    .mced-tcal__date-selector { grid-column: 1 / -1; grid-row: 1; }
    .mced-tcal__navigation,
    .mced-tcal__view-switcher { grid-row: 2; }
    .mced-tcal__filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mced-tcal__reset { width: 100%; }
    .mced-tcal-day { min-height: 145px; }
}

@media (max-width: 767px) {
    .mced-tcal {
        width: 100%;
        padding: 0 12px 22px;
    }

    .mced-tcal__control-panel { border-radius: 14px; }

    .mced-tcal__toolbar {
        grid-template-columns: 1fr;
        gap: 11px;
        padding: 14px;
    }

    .mced-tcal__date-selector,
    .mced-tcal__navigation,
    .mced-tcal__view-switcher {
        grid-column: 1;
        grid-row: auto;
    }

    .mced-tcal__date-selector {
        order: -1;
        gap: 8px;
    }

    .mced-tcal__date-select select {
        min-height: 42px;
        font-size: 16px;
        padding-left: 12px;
        padding-right: 32px;
    }

    .mced-tcal__date-select:first-child select { min-width: 138px; }
    .mced-tcal__date-select--year select { min-width: 92px; }

    .mced-tcal__navigation,
    .mced-tcal__view-switcher { justify-content: center; }

    .mced-tcal__filters {
        grid-template-columns: 1fr;
        margin: 0 14px;
        padding: 14px 0;
    }

    .mced-tcal__format-filter { justify-content: flex-start; }
    .mced-tcal__reset { width: 100%; }
    .mced-tcal__status { padding: 9px 14px 12px; text-align: left; }
    .mced-tcal__calendar-shell { margin-top: 16px; }

    .mced-tcal__month-view {
        padding: 7px;
        border-radius: 12px;
    }

    .mced-tcal__weekdays,
    .mced-tcal__month-grid { gap: 4px; }

    .mced-tcal__weekdays span {
        padding: 7px 1px;
        font-size: 9px;
    }

    .mced-tcal-day {
        min-height: 73px;
        padding: 4px;
        border-radius: 7px;
    }

    .mced-tcal-day__header { margin-bottom: 3px; }

    .mced-tcal-day__number {
        width: 24px;
        height: 24px;
        border-radius: 6px;
        font-size: 11px;
    }

    .mced-tcal-day__count { display: none; }

    .mced-tcal-day__events {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 3px;
    }

    .mced-tcal-event {
        display: block;
        width: 9px;
        min-height: 9px;
        height: 9px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        overflow: hidden;
    }

    .mced-tcal-event__dot {
        display: block;
        width: 9px;
        height: 9px;
    }

    .mced-tcal-event__title,
    .mced-tcal-event__duration { display: none; }

    .mced-tcal-day__more {
        min-height: 18px;
        padding: 1px 3px;
        font-size: 8px;
    }

    .mced-tcal__list-view {
        padding: 10px;
        border-radius: 12px;
    }

    .mced-tcal-list-card {
        grid-template-columns: 76px 48px minmax(0, 1fr);
        gap: 9px;
        padding: 7px;
    }

    .mced-tcal-list-card__media {
        width: 76px;
        height: 58px;
    }

    .mced-tcal-list-card__date { min-height: 50px; }
    .mced-tcal-list-card__date strong { font-size: 19px; }
    .mced-tcal-list-card__title { font-size: 13.5px; }

    .mced-tcal-list-card__meta {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .mced-tcal-list-card__arrow { display: none; }
    .mced-tcal__drawer { width: 100%; padding: 56px 18px 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .mced-tcal *,
    .mced-tcal *::before,
    .mced-tcal *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* 0.6.2 neutral calendar palette: keep gold as an accent, not the dominant fill. */
.mced-tcal .mced-tcal__nav-button,
.mced-tcal .mced-tcal__today-button,
.mced-tcal .mced-tcal__view-button:not(.is-active) {
    background: rgba(255,255,255,.08) !important;
    border-color: rgba(255,255,255,.16) !important;
    color: #fff !important;
    box-shadow: none !important;
}

.mced-tcal .mced-tcal__nav-button:hover,
.mced-tcal .mced-tcal__today-button:hover,
.mced-tcal .mced-tcal__view-button:not(.is-active):hover {
    background: rgba(255,255,255,.15) !important;
    border-color: rgba(255,255,255,.24) !important;
}

.mced-tcal .mced-tcal__view-button.is-active {
    background: var(--mced-gold) !important;
    border-color: var(--mced-gold) !important;
    color: #161616 !important;
}

.mced-tcal .mced-tcal-day__number {
    background: #eef1f4 !important;
    border: 1px solid #e2e6eb !important;
    color: var(--mced-navy) !important;
    box-shadow: none !important;
}

.mced-tcal .mced-tcal-day__number:hover,
.mced-tcal .mced-tcal-day__number:focus {
    background: #e4e8ed !important;
    border-color: #d5dae1 !important;
}

.mced-tcal .mced-tcal-day.is-today .mced-tcal-day__number {
    background: var(--mced-gold) !important;
    border-color: var(--mced-gold) !important;
    color: #161616 !important;
}

.mced-tcal .mced-tcal-event {
    background: #f3f5f7 !important;
    border-top-color: #e2e6eb !important;
    border-right-color: #e2e6eb !important;
    border-bottom-color: #e2e6eb !important;
    color: #303744 !important;
    box-shadow: none !important;
}

.mced-tcal .mced-tcal-event:hover {
    background: #eceff3 !important;
    border-top-color: #d7dce3 !important;
    border-right-color: #d7dce3 !important;
    border-bottom-color: #d7dce3 !important;
    box-shadow: 0 4px 10px rgba(13,27,62,.06) !important;
}

.mced-tcal .mced-tcal-event--classical {
    border-left-color: var(--mced-gold) !important;
}

.mced-tcal .mced-tcal-event--rapid {
    border-left-color: var(--mced-blue) !important;
}

.mced-tcal .mced-tcal-event--blitz {
    border-left-color: var(--mced-red) !important;
}

.mced-tcal .mced-tcal-event--other {
    border-left-color: #8b98a9 !important;
}

.mced-tcal .mced-tcal-event--classical .mced-tcal-event__dot {
    background: var(--mced-gold) !important;
}

.mced-tcal .mced-tcal-event--rapid .mced-tcal-event__dot {
    background: var(--mced-blue) !important;
}

.mced-tcal .mced-tcal-event--blitz .mced-tcal-event__dot {
    background: var(--mced-red) !important;
}

.mced-tcal .mced-tcal-event--other .mced-tcal-event__dot {
    background: #8b98a9 !important;
}

.mced-tcal .mced-tcal-event__duration {
    background: #fff !important;
    border: 1px solid #e0e4e9 !important;
    color: #5d6674 !important;
}

.mced-tcal .mced-tcal-day__more {
    background: #eceff3 !important;
    color: #4f5968 !important;
    border: 1px solid #dde2e8 !important;
}

.mced-tcal .mced-tcal-day__more:hover {
    background: #e3e7ec !important;
    color: #303744 !important;
}

.mced-tcal .mced-tcal-day__count {
    background: #edf0f4 !important;
    color: #687083 !important;
}

/* 0.6.3 neutral drawer palette: keep the date drawer consistent with the gray calendar. */
.mced-tcal .mced-tcal__drawer {
    background: #f7f8fa !important;
}

.mced-tcal .mced-tcal__drawer-close {
    background: #eef1f4 !important;
    border-color: #d9dee5 !important;
    color: var(--mced-navy) !important;
    box-shadow: none !important;
}

.mced-tcal .mced-tcal__drawer-close:hover,
.mced-tcal .mced-tcal__drawer-close:focus {
    background: #e3e7ec !important;
    border-color: #cfd5dc !important;
}

.mced-tcal .mced-tcal-drawer__day-event {
    background: #f1f3f5 !important;
    border-top-color: #dfe4ea !important;
    border-right-color: #dfe4ea !important;
    border-bottom-color: #dfe4ea !important;
    color: var(--mced-navy) !important;
    box-shadow: none !important;
}

.mced-tcal .mced-tcal-drawer__day-event:hover,
.mced-tcal .mced-tcal-drawer__day-event:focus {
    background: #e8ebef !important;
    border-top-color: #d2d8df !important;
    border-right-color: #d2d8df !important;
    border-bottom-color: #d2d8df !important;
}

.mced-tcal .mced-tcal-drawer__day-event span {
    color: #667085 !important;
}

.mced-tcal .mced-tcal-drawer__day-event--classical {
    border-left-color: var(--mced-gold) !important;
}

.mced-tcal .mced-tcal-drawer__day-event--rapid {
    border-left-color: var(--mced-blue) !important;
}

.mced-tcal .mced-tcal-drawer__day-event--blitz {
    border-left-color: var(--mced-red) !important;
}

.mced-tcal .mced-tcal-drawer__day-event--other {
    border-left-color: #8b98a9 !important;
}


/* 0.6.4: neutral List view and direct month/year navigation. */
.mced-tcal .mced-tcal-list-card {
    appearance: none !important;
    -webkit-appearance: none !important;
    background: #f3f5f7 !important;
    border-top-color: #e0e4e9 !important;
    border-right-color: #e0e4e9 !important;
    border-bottom-color: #e0e4e9 !important;
    color: var(--mced-text) !important;
    box-shadow: none !important;
}

.mced-tcal .mced-tcal-list-card:hover,
.mced-tcal .mced-tcal-list-card:focus {
    background: #eaedf1 !important;
    border-top-color: #d3d9e0 !important;
    border-right-color: #d3d9e0 !important;
    border-bottom-color: #d3d9e0 !important;
    box-shadow: 0 8px 20px rgba(13,27,62,.07) !important;
}

.mced-tcal .mced-tcal-list-card--classical { border-left-color: var(--mced-gold) !important; }
.mced-tcal .mced-tcal-list-card--rapid { border-left-color: var(--mced-blue) !important; }
.mced-tcal .mced-tcal-list-card--blitz { border-left-color: var(--mced-red) !important; }
.mced-tcal .mced-tcal-list-card--other { border-left-color: #8b98a9 !important; }

.mced-tcal .mced-tcal-list-card__date {
    background: #fff !important;
    border: 1px solid #e0e4e9 !important;
    color: var(--mced-navy) !important;
}

.mced-tcal .mced-tcal-list-card__title {
    color: var(--mced-navy) !important;
}

.mced-tcal .mced-tcal-list-card__meta {
    color: #667085 !important;
}

.mced-tcal .mced-tcal-list-card__arrow {
    color: #8d98a7 !important;
}

.mced-tcal .mced-tcal__date-select select {
    background-color: rgba(255,255,255,.08) !important;
    border-color: rgba(255,255,255,.16) !important;
    color: #fff !important;
    box-shadow: none !important;
}

.mced-tcal .mced-tcal__date-select select:hover {
    background-color: rgba(255,255,255,.15) !important;
    border-color: rgba(255,255,255,.24) !important;
}


/* 0.6.5: display complete list thumbnails without cropping. */
.mced-tcal .mced-tcal-list-card__media {
    background: #eef1f4 !important;
}
.mced-tcal .mced-tcal-list-card__media img {
    object-fit: contain !important;
    object-position: center !important;
    padding: 3px !important;
    background: #eef1f4 !important;
}


/* 0.6.8: larger uncropped List thumbnails and visible playing-format badges. */
.mced-tcal .mced-tcal-list-card {
    grid-template-columns: 180px 64px minmax(0, 1fr) 24px;
    gap: 16px;
    min-height: 126px;
    padding: 10px 14px 10px 10px;
}

.mced-tcal .mced-tcal-list-card__media {
    width: 180px;
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 101px;
    overflow: hidden;
    border-radius: 10px;
    background: #eef1f4 !important;
}

.mced-tcal .mced-tcal-list-card__media img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: #eef1f4 !important;
}

.mced-tcal-list-card__formats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.mced-tcal-list-card__format {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.mced-tcal-list-card__format--classical {
    border-color: rgba(224, 165, 63, .42);
    background: #fff8eb;
    color: #9a6819;
}

.mced-tcal-list-card__format--rapid {
    border-color: rgba(79, 70, 229, .26);
    background: #eef0ff;
    color: #4038c8;
}

.mced-tcal-list-card__format--blitz {
    border-color: rgba(239, 49, 61, .26);
    background: #fff0f1;
    color: #d52a36;
}

@media (max-width: 767px) {
    .mced-tcal .mced-tcal-list-card {
        grid-template-columns: 104px 48px minmax(0, 1fr);
        gap: 9px;
        min-height: 82px;
        padding: 7px;
    }

    .mced-tcal .mced-tcal-list-card__media {
        width: 104px;
        min-height: 59px;
        aspect-ratio: 16 / 9;
    }

    .mced-tcal-list-card__formats {
        gap: 4px;
    }

    .mced-tcal-list-card__format {
        min-height: 21px;
        padding: 2px 6px;
        font-size: 9.5px;
    }
}
