.otc-calendar {
	--otc-primary: #464775;
	--otc-teams: #5b5fc7;
	--otc-teams-hover: #464775;
	--otc-border: #e2e2e6;
	--otc-text-muted: #6b6b76;
	max-width: 100%;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.otc-notice {
	padding: 12px 16px;
	border-radius: 6px;
	background: #f3f3f5;
	color: #333;
	margin-bottom: 16px;
}

.otc-notice-error {
	background: #fdecea;
	color: #7a1f1f;
	border: 1px solid #f5c6c3;
}

.otc-day-group {
	margin-bottom: 28px;
}

.otc-day-heading {
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--otc-primary);
	border-bottom: 2px solid var(--otc-border);
	padding-bottom: 8px;
	margin: 0 0 14px;
	text-transform: capitalize;
}

.otc-day-events {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 14px;
	align-items: start;
}

.otc-event-card {
	display: flex;
	gap: 14px;
	padding: 16px;
	border: 1px solid var(--otc-border);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	transition: box-shadow 0.18s ease, transform 0.18s ease;
	height: 100%;
}

.otc-event-card:hover {
	box-shadow: 0 8px 22px rgba(29, 29, 48, 0.1);
	transform: translateY(-2px);
}

.otc-event-card.otc-event-has-teams {
	border-left: 4px solid var(--otc-teams);
}

.otc-event-date-badge {
	flex: 0 0 52px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: #f4f4fa;
	border-radius: 10px;
	padding: 8px 4px;
	height: 58px;
}

.otc-badge-day {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--otc-primary);
	line-height: 1.1;
}

.otc-badge-month {
	font-size: 0.68rem;
	font-weight: 600;
	color: var(--otc-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.otc-event-main {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.otc-event-meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-bottom: 8px;
}

.otc-event-time-pill {
	display: inline-flex;
	align-items: center;
	background: #eef0fb;
	color: var(--otc-primary);
	font-weight: 600;
	font-size: 0.78rem;
	padding: 3px 10px;
	border-radius: 999px;
}

.otc-event-tag {
	display: inline-flex;
	align-items: center;
	font-size: 0.72rem;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 999px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.otc-tag-teams {
	background: #eceafd;
	color: var(--otc-teams);
}

.otc-tag-recurring {
	background: #f0f0f3;
	color: var(--otc-text-muted);
}

.otc-event-title {
	margin: 0 0 6px;
	font-size: 1.02rem;
	font-weight: 600;
	color: #1c1c28;
	line-height: 1.3;
	overflow-wrap: break-word;
	word-break: break-word;
}

.otc-event-location {
	font-size: 0.85rem;
	color: var(--otc-text-muted);
	margin-bottom: 6px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.otc-event-description {
	font-size: 0.88rem;
	color: #3a3a45;
	line-height: 1.45;
	margin-bottom: 12px;
	white-space: pre-line;
}

.otc-event-credentials {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.otc-credential {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #f7f7fb;
	border: 1px solid var(--otc-border);
	border-radius: 6px;
	padding: 4px 10px;
	font-size: 0.78rem;
	color: #3a3a45;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.otc-credential-label {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-weight: 600;
	color: var(--otc-text-muted);
}

.otc-event-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	position: relative;
	margin-top: auto;
	padding-top: 4px;
}

.otc-teams-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--otc-teams);
	color: #fff !important;
	text-decoration: none !important;
	padding: 8px 16px;
	border-radius: 6px;
	font-size: 0.88rem;
	font-weight: 600;
	transition: background 0.15s ease;
}

.otc-teams-button:hover {
	background: var(--otc-teams-hover);
	color: #fff !important;
}

.otc-whatsapp-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #25d366;
	color: #fff !important;
	text-decoration: none !important;
	padding: 8px 18px 8px 14px;
	border-radius: 999px;
	font-size: 0.88rem;
	font-weight: 600;
	box-shadow: 0 1px 3px rgba(37, 211, 102, 0.35);
	transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.otc-whatsapp-button:hover {
	background: #1ebe5b;
	color: #fff !important;
	box-shadow: 0 3px 8px rgba(37, 211, 102, 0.45);
}

.otc-whatsapp-button:active {
	transform: scale(0.97);
}

.otc-addcal {
	position: relative;
	display: inline-block;
}

.otc-addcal-button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	list-style: none;
	cursor: pointer;
	background: #fff;
	color: var(--otc-primary) !important;
	border: 1px solid var(--otc-teams);
	padding: 7px 14px;
	border-radius: 6px;
	font-size: 0.88rem;
	font-weight: 600;
	transition: background 0.15s ease;
	user-select: none;
}

.otc-addcal-button::-webkit-details-marker {
	display: none;
}

.otc-addcal-button:hover {
	background: #f2f2fb;
}

.otc-addcal-icon {
	font-size: 1rem;
	line-height: 1;
	font-weight: 700;
}

.otc-addcal[open] .otc-addcal-button {
	background: #f2f2fb;
}

.otc-addcal-menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 20;
	background: #fff;
	border: 1px solid var(--otc-border);
	border-radius: 8px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
	min-width: 200px;
	overflow: hidden;
}

.otc-addcal-menu a {
	display: block;
	padding: 10px 14px;
	font-size: 0.86rem;
	color: #1c1c28;
	text-decoration: none;
	border-bottom: 1px solid #f0f0f3;
}

.otc-addcal-menu a:last-child {
	border-bottom: none;
}

.otc-addcal-menu a:hover {
	background: #f7f7fb;
	color: var(--otc-teams);
}

.otc-teams-icon {
	width: 16px;
	height: 16px;
	display: inline-block;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6h-6.5a3.5 3.5 0 0 0-3.46 3H4a1 1 0 0 0-1 1v7a3 3 0 0 0 3 3h9a3 3 0 0 0 3-3v-1h.5a2.5 2.5 0 0 0 2.5-2.5v-5A2.5 2.5 0 0 0 20 6zm-2 11a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-6h7.5A3.49 3.49 0 0 0 15 9.5V10h3a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-.5.5H18zM13.5 8H20a.5.5 0 0 1 .5.5v.5a.5.5 0 0 1-.5.5h-6.5a1.5 1.5 0 0 1 0-3z'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6h-6.5a3.5 3.5 0 0 0-3.46 3H4a1 1 0 0 0-1 1v7a3 3 0 0 0 3 3h9a3 3 0 0 0 3-3v-1h.5a2.5 2.5 0 0 0 2.5-2.5v-5A2.5 2.5 0 0 0 20 6zm-2 11a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-6h7.5A3.49 3.49 0 0 0 15 9.5V10h3a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-.5.5H18zM13.5 8H20a.5.5 0 0 1 .5.5v.5a.5.5 0 0 1-.5.5h-6.5a1.5 1.5 0 0 1 0-3z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.otc-icon-location {
	width: 13px;
	height: 13px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5z'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5z'/%3E%3C/svg%3E") no-repeat center / contain;
	flex-shrink: 0;
}

.otc-whatsapp-icon {
	width: 17px;
	height: 17px;
	display: inline-block;
	background-color: #fff;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z'/%3E%3C/svg%3E") no-repeat center / contain;
	flex-shrink: 0;
}

@media (max-width: 640px) {
	.otc-day-events {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.otc-event-card {
		flex-direction: column;
		padding: 14px;
		gap: 10px;
	}

	.otc-event-date-badge {
		flex-direction: row;
		justify-content: flex-start;
		gap: 8px;
		height: auto;
		width: fit-content;
		padding: 4px 10px;
	}

	.otc-event-title {
		font-size: 0.98rem;
	}

	.otc-event-actions {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}

	.otc-event-actions .otc-teams-button,
	.otc-event-actions .otc-whatsapp-button,
	.otc-event-actions .otc-addcal {
		width: 100%;
	}

	.otc-teams-button,
	.otc-whatsapp-button,
	.otc-addcal-button {
		justify-content: center;
		width: 100%;
		box-sizing: border-box;
	}

	.otc-addcal-menu {
		left: 0;
		right: 0;
		width: 100%;
		min-width: 0;
		box-sizing: border-box;
	}

	.otc-event-credentials {
		gap: 6px;
	}

	.otc-credential {
		font-size: 0.74rem;
	}
}

@media (max-width: 380px) {
	.otc-day-heading {
		font-size: 0.95rem;
	}

	.otc-event-title {
		font-size: 0.92rem;
	}

	.otc-event-card {
		padding: 12px;
	}

	.otc-badge-day {
		font-size: 1.05rem;
	}
}
