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

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

@media (min-width: 1024px) {
	#rfApp .rf-shell-form {
		align-self: start;
		height: auto;
	}

	#rfApp .rf-shell-form .rf-panel {
		height: auto;
	}
}

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

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

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

#rfApp .rf-fields {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.85rem;
}

#rfApp .rf-input {
	font-variant-numeric: tabular-nums;
}

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

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

#rfApp .rf-submit:hover {
	background: var(--rf-primary-hover);
}

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

#rfApp .rf-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;
}

#rfApp .rf-clear:hover {
	background: #f9fafb;
	border-color: #9ca3af;
}

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

#rfApp .rf-result-panel {
	display: flex;
	flex-direction: column;
}

#rfApp .rf-empty {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 12rem;
	border: 1px dashed #e5e7eb;
	background: #f9fafb;
	border-radius: var(--rf-radius);
	color: #9ca3af;
}

#rfApp .rf-empty.hidden {
	display: none !important;
}

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

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

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

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

#rfApp .rf-chart-box {
	border: 1px solid var(--rf-mid);
	border-radius: var(--rf-radius);
	background: var(--rf-soft);
	padding: 0.5rem 0.35rem;
	margin-bottom: 0.75rem;
}

#rfApp .rf-chart {
	width: 100%;
	height: 420px;
}

#rfApp .rf-table-wrap {
	width: 100%;
	overflow-x: auto;
	border: 1px solid var(--rf-line);
	border-radius: var(--rf-radius);
	background: #fff;
}

#rfApp .rf-table {
	width: 100%;
	table-layout: fixed;
	text-align: left;
	font-size: 0.8125rem;
	color: var(--rf-ink);
}

#rfApp .rf-table th {
	padding: 0.7rem 0.75rem;
	font-weight: 600;
	color: #1e40af;
	background: var(--rf-soft);
}

#rfApp .rf-table td {
	padding: 0.65rem 0.75rem;
	border-top: 1px solid #eff6ff;
	font-variant-numeric: tabular-nums;
}

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

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

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

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

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

#rfApp .rf-notes ol,
#rfApp .rf-notes ul {
	margin-bottom: 2rem;
}

#rfApp .rf-notes p {
	margin-bottom: 2rem;
}

#rfApp .rf-notes p:last-child {
	margin-bottom: 0;
}

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

#rfApp .rf-notes a:hover {
	text-decoration: underline;
}

@media (min-width: 640px) {
	#rfApp .rf-fields {
		grid-template-columns: 1fr 1fr;
	}
}

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