.stm-ev-cal {
	--stm-ev-accent: #1d2327;
	--stm-ev-accent-ink: #ffffff;
	--stm-ev-ink: #1d2327;
	--stm-ev-muted: #5f6368;
	--stm-ev-surface: #f4f5f7;
	--stm-ev-line: #e3e5e8;
	--stm-ev-today: #fff6d6;
	--stm-ev-radius: 10px;
	color: var(--stm-ev-ink);
}
.stm-ev-cal *, .stm-ev-cal *::before, .stm-ev-cal *::after { box-sizing: border-box; }
.stm-ev-cal a { text-decoration: none; }
.stm-ev-cal-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0 0 18px; }
.stm-ev-cal-title { margin: 0; margin-right: auto; }
.stm-ev-cal-nav { display: flex; align-items: center; gap: 8px; }
.stm-ev-cal-arrow { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; background: var(--stm-ev-surface); color: var(--stm-ev-ink); font-size: 24px; line-height: 1; }
.stm-ev-cal-arrow:hover, .stm-ev-cal-today:hover { background: var(--stm-ev-line); }
.stm-ev-cal-today { padding: 9px 14px; border-radius: 8px; background: var(--stm-ev-surface); color: var(--stm-ev-ink); font-weight: 600; font-size: 15px; }
.stm-ev-cal-views { display: inline-flex; background: var(--stm-ev-surface); border-radius: 8px; padding: 4px; }
.stm-ev-cal-views a { padding: 7px 14px; border-radius: 6px; color: var(--stm-ev-ink); font-weight: 600; font-size: 15px; }
.stm-ev-cal-views a.is-active { background: var(--stm-ev-accent); color: var(--stm-ev-accent-ink); }

.stm-ev-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.stm-ev-cal-wd { font-weight: 700; font-size: 14px; color: var(--stm-ev-muted); padding: 4px 8px; }
.stm-ev-cal-wd-short, .stm-ev-cal-num-wd { display: none; }
.stm-ev-cal-day { background: var(--stm-ev-surface); border-radius: var(--stm-ev-radius); min-height: 112px; padding: 8px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stm-ev-cal-day.is-pad { background: transparent; }
.stm-ev-cal-day.is-today { background: var(--stm-ev-today); }
.stm-ev-cal-day.is-past .stm-ev-cal-num { opacity: .5; }
.stm-ev-cal-num { font-weight: 700; font-size: 14px; }
.stm-ev-cal-item { display: block; background: #ffffff; border-radius: 6px; padding: 5px 7px; font-size: 13px; line-height: 1.3; color: var(--stm-ev-ink); overflow: hidden; }
.stm-ev-cal-item:hover { background: var(--stm-ev-accent); color: var(--stm-ev-accent-ink); }
.stm-ev-cal-time { font-weight: 700; white-space: nowrap; }
.stm-ev-cal-item.has-tickets { box-shadow: inset 3px 0 0 var(--stm-ev-accent); }

.stm-ev-list { display: flex; flex-direction: column; gap: 12px; }
.stm-ev-list-month { margin: 18px 0 4px; font-size: 1.1em; }
.stm-ev-list-month:first-child { margin-top: 0; }
.stm-ev-card { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 18px; align-items: center; background: var(--stm-ev-surface); border-radius: var(--stm-ev-radius); padding: 14px 18px 14px 14px; }
.stm-ev-card-date { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--stm-ev-accent); color: var(--stm-ev-accent-ink); border-radius: 8px; height: 76px; }
.stm-ev-card-mon { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.stm-ev-card-day { font-size: 30px; font-weight: 800; line-height: 1; }
.stm-ev-card-title { margin: 0 0 4px; font-size: 1.15em; line-height: 1.25; }
.stm-ev-card-title a { color: var(--stm-ev-ink); }
.stm-ev-card-title a:hover { text-decoration: underline; }
.stm-ev-card-meta { margin: 0; color: var(--stm-ev-muted); font-size: .95em; }
.stm-ev-card-text { margin: 6px 0 0; font-size: .95em; }
.stm-ev-card-btn { background: var(--stm-ev-accent); color: var(--stm-ev-accent-ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; white-space: nowrap; }
.stm-ev-card-btn:hover { color: var(--stm-ev-accent-ink); filter: brightness(1.1); }
.stm-ev-empty { margin: 12px 0 0; color: var(--stm-ev-muted); }

@media (max-width: 760px) {
	.stm-ev-cal-grid { display: flex; flex-direction: column; gap: 8px; }
	.stm-ev-cal-wd, .stm-ev-cal-day.is-pad, .stm-ev-cal-day:not(.has-events) { display: none; }
	.stm-ev-cal-day { min-height: 0; padding: 12px; }
	.stm-ev-cal-num-wd { display: inline; }
	.stm-ev-cal-item { font-size: 15px; padding: 8px 10px; }
	.stm-ev-card { grid-template-columns: 60px minmax(0, 1fr); gap: 14px; }
	.stm-ev-card-date { height: 60px; }
	.stm-ev-card-day { font-size: 24px; }
	.stm-ev-card-btn { grid-column: 1 / -1; text-align: center; }
}
