#clApp {
	--cl-ink: #0f172a;
	--cl-line: #e2e8f0;
	--cl-primary: #3b82f6;
	--cl-primary-hover: #2563eb;
	--cl-soft: #eff6ff;
	--cl-mid: #dbeafe;
	--cl-radius: 0.375rem;
	--cl-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
}

#clApp .cl-shell {
	background:
		radial-gradient(1200px 420px at 10% -10%, rgba(59, 130, 246, 0.16), transparent 55%),
		radial-gradient(900px 360px at 100% 0%, rgba(37, 99, 235, 0.08), transparent 50%);
	border: 1px solid var(--cl-line);
	border-radius: var(--cl-radius);
	box-shadow: var(--cl-shadow);
	overflow: hidden;
	height: 100%;
}

#clApp .cl-panel {
	background: rgba(255, 255, 255, 0.92);
	height: 100%;
}

#clApp .cl-label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	color: #334155;
	margin-bottom: 0.375rem;
}

#clApp .cl-hint {
	font-size: 0.8125rem;
	line-height: 1.5;
	color: #475569;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: var(--cl-radius);
	padding: 0.65rem 0.85rem;
}

#clApp .cl-input {
	font-variant-numeric: tabular-nums;
}

#clApp .cl-input:focus {
	border-color: #3b82f6 !important;
	box-shadow: 0 0 0 1px #3b82f6;
}

#clApp .cl-input[readonly] {
	background: #f8fafc;
	color: #64748b;
}

#clApp .cl-chips {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0.5rem;
}

#clApp .cl-chips[aria-labelledby="downLabel"] {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

#clApp .cl-chip {
	min-height: 2.5rem;
	border: 1px solid #d1d5db;
	border-radius: 0.5rem;
	background: #fff;
	color: #475569;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 200ms ease, background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

#clApp .cl-chip:hover {
	border-color: #93c5fd;
	background: var(--cl-soft);
	color: var(--cl-primary-hover);
}

#clApp .cl-chip.is-active {
	border-color: var(--cl-primary-hover);
	background: var(--cl-soft);
	color: var(--cl-primary-hover);
	box-shadow: 0 0 0 1px var(--cl-primary-hover);
}

#clApp .cl-mode {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
	padding: 0.35rem;
	border-radius: 999px;
	background: var(--cl-soft);
	border: 1px solid var(--cl-mid);
}

#clApp .cl-mode-btn {
	height: 2.5rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #475569;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

#clApp .cl-mode-btn:hover {
	background: rgba(255, 255, 255, 0.7);
}

#clApp .cl-mode-btn.is-active {
	background: #fff;
	color: var(--cl-primary-hover);
	box-shadow: 0 1px 3px rgba(37, 99, 235, 0.18);
}

#clApp .cl-submit {
	height: 3rem;
	padding: 0 1.5rem;
	border: 0;
	border-radius: 0.5rem;
	background: var(--cl-primary);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(37, 99, 235, 0.25);
	transition: background-color 200ms ease;
}

#clApp .cl-submit:hover {
	background: var(--cl-primary-hover);
}

#clApp .cl-clear {
	height: 3rem;
	padding: 0 1.5rem;
	border: 1px solid #d1d5db;
	border-radius: 0.5rem;
	background: #fff;
	color: #374151;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 200ms ease, border-color 200ms ease;
}

#clApp .cl-clear:hover {
	background: #f9fafb;
	border-color: #9ca3af;
}

#clApp .cl-empty {
	border: 1px dashed #e5e7eb;
	background: #f9fafb;
	border-radius: var(--cl-radius);
	color: #9ca3af;
}

#clApp .cl-highlight {
	border: 1px solid #bfdbfe;
	border-radius: var(--cl-radius);
	background: var(--cl-soft);
	padding: 1.1rem 1.15rem;
	margin-bottom: 0.75rem;
}

#clApp .cl-highlight-label {
	font-size: 0.8125rem;
	font-weight: 600;
	color: #475569;
}

#clApp .cl-highlight-value {
	margin-top: 0.4rem;
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.15;
	color: var(--cl-primary-hover);
	font-variant-numeric: tabular-nums;
}

#clApp .cl-highlight-unit {
	margin-left: 0.3rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #64748b;
}

#clApp .cl-highlight-sub {
	margin-top: 0.45rem;
	font-size: 0.8125rem;
	color: #64748b;
	min-height: 1.25rem;
}

#clApp .cl-metrics {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
}

#clApp .cl-metric {
	border: 1px solid #e2e8f0;
	border-radius: var(--cl-radius);
	background: #fff;
	padding: 1rem 1.1rem;
}

#clApp .cl-metric-label {
	font-size: 0.8125rem;
	font-weight: 600;
	color: #475569;
}

#clApp .cl-metric-value {
	margin-top: 0.4rem;
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.1;
	color: var(--cl-ink);
	font-variant-numeric: tabular-nums;
}

#clApp .cl-metric-unit {
	margin-left: 0.3rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #64748b;
}

#clApp .cl-compare {
	border: 1px solid #bbf7d0;
	border-radius: var(--cl-radius);
	background: #f0fdf4;
	padding: 0.9rem 1.1rem;
}

#clApp .cl-compare-title {
	font-size: 0.8125rem;
	font-weight: 600;
	color: #166534;
}

#clApp .cl-compare-value {
	margin-top: 0.35rem;
	font-size: 1.2rem;
	font-weight: 700;
	color: #15803d;
	font-variant-numeric: tabular-nums;
}

#clApp .cl-schedule-btn {
	width: 100%;
	height: 2.75rem;
	border: 1px solid #bfdbfe;
	border-radius: 0.5rem;
	background: var(--cl-soft);
	color: var(--cl-primary-hover);
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 200ms ease;
}

#clApp .cl-schedule-btn:hover {
	background: var(--cl-mid);
}

#clApp .cl-note {
	margin-top: 0.85rem;
	font-size: 0.75rem;
	line-height: 1.5;
	color: #64748b;
}

#clApp .cl-notes {
	background: #fff;
	border: 1px solid var(--cl-line);
	border-radius: var(--cl-radius);
	box-shadow: var(--cl-shadow);
}

#clApp .cl-notes h2 {
	font-size: 1.25rem;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 0.75rem;
}

#clApp .cl-notes h3 {
	font-size: 1rem;
	font-weight: 600;
	color: #0f172a;
	margin-bottom: 0.75rem;
}

#clApp .cl-notes p,
#clApp .cl-notes li {
	font-size: 0.875rem;
	line-height: 1.7;
	color: #475569;
}

#clApp .cl-notes ol,
#clApp .cl-notes ul {
	margin-bottom: 2rem;
}

#clApp .cl-notes p {
	margin-bottom: 2rem;
}

#clApp .cl-notes p:last-child {
	margin-bottom: 0;
}

#clApp .cl-notes a {
	color: var(--cl-primary-hover);
	text-decoration: none;
}

#clApp .cl-notes a:hover {
	text-decoration: underline;
}

@media (min-width: 640px) {
	#clApp .cl-metrics.is-pair {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 420px) {
	#clApp .cl-chips {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	#clApp .cl-chips[aria-labelledby="downLabel"] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	#clApp .cl-chip,
	#clApp .cl-mode-btn,
	#clApp .cl-submit,
	#clApp .cl-clear,
	#clApp .cl-schedule-btn {
		transition: none;
	}
}
