.uvf-container {
	position: relative;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin: 1.5em 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	border-radius: 8px;
	overflow: hidden;
}

.uvf-theme-light {
	background: #ffffff;
	color: #2b2f33;
	border: 1px solid #e6e8eb;
}

.uvf-theme-dark {
	background: #1a1b1d;
	color: #e6e6e6;
}

.uvf-theme-darkblue {
	background: #0d1b2a;
	color: #eaf2fa;
}

.uvf-header {
	padding: 12px 14px 6px;
}

.uvf-title {
	font-size: 15px;
	font-weight: 700;
}

.uvf-theme-light .uvf-title { color: #23262a; }
.uvf-theme-dark .uvf-title { color: #f0f0f0; }
.uvf-theme-darkblue .uvf-title { color: #eaf2fa; }

.uvf-updated {
	font-size: 11px;
	white-space: nowrap;
	min-height: 1.3em;
}

.uvf-theme-light .uvf-updated { color: #8a8f94; }
.uvf-theme-dark .uvf-updated { color: #9a9a9a; }
.uvf-theme-darkblue .uvf-updated { color: #a9c2d9; }

.uvf-canvas {
	display: block;
	width: 100%;
	touch-action: pan-y;
}

.uvf-tooltip {
	position: absolute;
	pointer-events: none;
	z-index: 5;
	padding: 8px 10px;
	border-radius: 6px;
	font-size: 12px;
	line-height: 1.5;
	box-shadow: 0 4px 14px rgba(0,0,0,0.18);
	min-width: 190px;
	max-width: 240px;
}

.uvf-theme-light .uvf-tooltip { background: rgba(255,255,255,0.98); border: 1px solid rgba(20,20,25,0.12); color: #2b2f33; }
.uvf-theme-dark .uvf-tooltip { background: rgba(20,20,22,0.94); border: 1px solid rgba(255,255,255,0.12); color: #f0f0f0; }
.uvf-theme-darkblue .uvf-tooltip { background: rgba(13,27,42,0.94); border: 1px solid rgba(255,255,255,0.14); color: #eaf2fa; }

.uvf-tooltip-title {
	font-weight: 700;
	margin-bottom: 4px;
}

.uvf-tooltip-cat {
	display: inline-block;
	padding: 1px 7px;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 700;
	color: #fff;
	margin-left: 6px;
}

.uvf-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	padding: 8px 14px;
	font-size: 11.5px;
}

.uvf-theme-light .uvf-legend { border-top: 1px solid #eef0f2; color: #5b6066; }
.uvf-theme-dark .uvf-legend { border-top: 1px solid rgba(255,255,255,0.08); color: #c9c9c9; }
.uvf-theme-darkblue .uvf-legend { border-top: 1px solid rgba(255,255,255,0.08); color: #a9c2d9; }

.uvf-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.uvf-swatch {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 3px;
}

.uvf-days {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 4px 14px 14px;
}

.uvf-day-card {
	box-sizing: border-box;
	flex: 1 1 130px;
	min-width: 120px;
	border-radius: 8px;
	padding: 10px 10px 11px;
	border-top: 4px solid var(--uvf-cat-color, #ccc);
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.uvf-theme-light .uvf-day-card { background: #f7f8f9; }
.uvf-theme-dark .uvf-day-card { background: rgba(255,255,255,0.05); }
.uvf-theme-darkblue .uvf-day-card { background: rgba(255,255,255,0.05); }

.uvf-day-name {
	font-size: 12px;
	font-weight: 700;
}

.uvf-day-badge {
	font-size: 24px;
	font-weight: 800;
	line-height: 1.15;
	color: var(--uvf-cat-color, #333);
}

.uvf-day-cat {
	font-size: 11.5px;
	font-weight: 700;
	color: var(--uvf-cat-color, #333);
}

.uvf-day-advice {
	font-size: 11px;
	line-height: 1.4;
	opacity: 0.85;
	margin-top: 2px;
}

.uvf-attribution {
	font-size: 10.5px;
	padding: 6px 14px 10px;
	opacity: 0.7;
}

.uvf-attribution a { color: inherit; }

.uvf-error {
	padding: 12px 14px;
	border-radius: 6px;
	background: #fdecea;
	color: #a02b2b;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 13px;
}

.uvf-width-full {
	max-width: 100vw;
	border-radius: 0;
}

.uvf-width-wide {
	max-width: 1400px;
}

.uvf-width-custom {
	width: 100%;
	margin-left: auto;
	margin-right: auto;
}

@media (max-width: 600px) {
	.uvf-header {
		padding: 10px 10px 4px;
	}
	.uvf-title {
		font-size: 13.5px;
	}
	.uvf-day-card {
		flex: 1 1 45%;
	}
	.uvf-legend {
		font-size: 10.5px;
		gap: 6px 10px;
		padding: 6px 10px;
	}
	.uvf-days {
		padding: 4px 10px 10px;
	}
	.uvf-attribution {
		padding: 6px 10px 10px;
	}
}
