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

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

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

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

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

#yuApp .yu-input {
	font-variant-numeric: tabular-nums;
}

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

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

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

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

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

#yuApp .yu-mode-btn:focus-visible {
	outline: 2px solid #3b82f6;
	outline-offset: 2px;
}

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

#yuApp .yu-submit:hover {
	background: var(--yu-primary-hover);
}

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

#yuApp .yu-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;
}

#yuApp .yu-clear:hover {
	background: #f9fafb;
	border-color: #9ca3af;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#yuApp .yu-notes ol,
#yuApp .yu-notes ul {
	margin-bottom: 2rem;
}

#yuApp .yu-notes p {
	margin-bottom: 2rem;
}

#yuApp .yu-notes p:last-child {
	margin-bottom: 0;
}

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

#yuApp .yu-notes a:hover {
	text-decoration: underline;
}

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

@media (prefers-reduced-motion: reduce) {
	#yuApp .yu-mode-btn,
	#yuApp .yu-submit,
	#yuApp .yu-clear {
		transition: none;
	}
}

#yuApp .yu-field-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.375rem;
}

#yuApp .yu-field-head .yu-label {
	margin-bottom: 0;
}

#yuApp .yu-cal {
	display: inline-grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.25rem;
	padding: 0.2rem;
	border-radius: 999px;
	background: var(--yu-soft);
	border: 1px solid var(--yu-mid);
	flex-shrink: 0;
}

#yuApp .yu-cal-btn {
	min-height: 1.85rem;
	padding: 0 0.75rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #475569;
	font-size: 0.75rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

#yuApp .yu-cal-btn:hover {
	background: rgba(255, 255, 255, 0.7);
}

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

#yuApp .yu-cal-btn:focus-visible {
	outline: 2px solid #3b82f6;
	outline-offset: 2px;
}

#yuApp .yu-select {
	appearance: none;
	width: 100%;
	padding: 0.75rem 2rem 0.75rem 0.75rem;
	border: 1px solid #d1d5db;
	border-radius: 0.5rem;
	background: #fff;
	color: #0f172a;
	outline: none;
	transition: border-color 200ms ease, box-shadow 200ms ease;
}

#yuApp .yu-select:focus {
	border-color: #3b82f6;
	box-shadow: 0 0 0 1px #3b82f6;
}

#yuApp .yu-highlight-sub {
	margin-top: 0.45rem;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: #64748b;
}

#yuApp .yu-progress-wrap {
	margin-top: 0.85rem;
}

#yuApp .yu-progress-meta {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
	font-size: 0.75rem;
	color: #64748b;
	margin-bottom: 0.35rem;
}

#yuApp .yu-progress {
	height: 0.5rem;
	border-radius: 999px;
	background: var(--yu-mid);
	overflow: hidden;
}

#yuApp .yu-progress-bar {
	height: 100%;
	width: 0;
	border-radius: 999px;
	background: var(--yu-primary);
	transition: width 200ms ease;
}

#yuApp .yu-block {
	border: 1px solid #e2e8f0;
	border-radius: var(--yu-radius);
	background: #fff;
	padding: 0.9rem 1rem;
	margin-bottom: 0.75rem;
}

#yuApp .yu-block-label {
	font-size: 0.8125rem;
	font-weight: 600;
	color: #475569;
}

#yuApp .yu-block-value {
	margin-top: 0.35rem;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--yu-ink);
	font-variant-numeric: tabular-nums;
}

#yuApp .yu-block-extra {
	margin-top: 0.35rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--yu-primary-hover);
}

@media (prefers-reduced-motion: reduce) {
	#yuApp .yu-cal-btn,
	#yuApp .yu-progress-bar {
		transition: none;
	}
}

#yuApp .yu-rules {
	border: 1px solid #e2e8f0;
	border-radius: var(--yu-radius);
	background: #f8fafc;
	padding: 0.85rem 1rem;
}

#yuApp .yu-rules h2 {
	font-size: 0.875rem;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 0.5rem;
}

#yuApp .yu-rules li {
	font-size: 0.75rem;
	line-height: 1.6;
	color: #475569;
}

#yuApp .yu-warn {
	margin-bottom: 0.75rem;
	padding: 0.75rem 0.9rem;
	border: 1px solid #fde68a;
	border-radius: var(--yu-radius);
	background: #fffbeb;
	color: #92400e;
	font-size: 0.8125rem;
	line-height: 1.6;
}
