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

#caApp .ca-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(--ca-line);
	border-radius: var(--ca-radius);
	box-shadow: var(--ca-shadow);
	overflow: hidden;
	height: 100%;
}

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

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

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

#caApp .ca-input {
	font-variant-numeric: tabular-nums;
}

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

#caApp .ca-types {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.5rem;
}

#caApp .ca-type {
	min-height: 2.75rem;
	border: 1px solid #d1d5db;
	border-radius: 0.5rem;
	background: #fff;
	color: #475569;
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 200ms ease, background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

#caApp .ca-type:hover {
	border-color: #93c5fd;
	background: var(--ca-soft);
	color: var(--ca-primary-hover);
}

#caApp .ca-type.is-active {
	border-color: var(--ca-primary-hover);
	background: var(--ca-soft);
	color: var(--ca-primary-hover);
	box-shadow: 0 0 0 1px var(--ca-primary-hover);
}

#caApp .ca-type:focus-visible {
	outline: 2px solid #3b82f6;
	outline-offset: 2px;
}

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

#caApp .ca-submit:hover {
	background: var(--ca-primary-hover);
}

#caApp .ca-submit:focus-visible {
	outline: 2px solid #1d4ed8;
	outline-offset: 2px;
}

#caApp .ca-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;
}

#caApp .ca-clear:hover {
	background: #f9fafb;
	border-color: #9ca3af;
}

#caApp .ca-clear:focus-visible {
	outline: 2px solid #9ca3af;
	outline-offset: 2px;
}

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

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

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

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

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

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

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

#caApp .ca-metric-value {
	margin-top: 0.4rem;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--ca-ink);
	font-variant-numeric: tabular-nums;
	word-break: break-all;
}

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

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

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

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

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

#caApp .ca-notes ol,
#caApp .ca-notes ul {
	margin-bottom: 2rem;
}

#caApp .ca-notes p {
	margin-bottom: 2rem;
}

#caApp .ca-notes p:last-child {
	margin-bottom: 0;
}

#caApp .ca-notes strong {
	color: #334155;
	font-weight: 600;
}

@media (min-width: 640px) {
	#caApp .ca-metrics {
		grid-template-columns: 1fr 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	#caApp .ca-type,
	#caApp .ca-submit,
	#caApp .ca-clear {
		transition: none;
	}
}
