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

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

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

	#hpApp .hp-shell-form .hp-panel {
		height: auto;
	}

	#hpApp .hp-shell-result {
		align-self: start;
		height: auto;
	}
}

#hpApp .hp-shell-result.is-matched {
	min-height: var(--hp-result-min);
	display: flex;
	flex-direction: column;
}

#hpApp .hp-shell-result.is-matched.is-locked {
	height: var(--hp-result-min);
	max-height: var(--hp-result-min);
	overflow: hidden;
}

#hpApp .hp-shell-result.is-matched .hp-result-panel {
	flex: 1 1 auto;
	min-height: 0;
	height: 100%;
}

#hpApp .hp-shell-result.is-matched .hp-empty {
	min-height: 0;
}

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

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

#hpApp .hp-input {
	font-variant-numeric: tabular-nums;
}

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

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

#hpApp .hp-submit:hover {
	background: var(--hp-primary-hover);
}

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

#hpApp .hp-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;
}

#hpApp .hp-clear:hover {
	background: #f9fafb;
	border-color: #9ca3af;
}

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

#hpApp .hp-result-panel {
	display: flex;
	flex-direction: column;
}

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

#hpApp .hp-empty.hidden {
	display: none !important;
}

#hpApp .hp-highlight {
	border: 1px solid #bfdbfe;
	border-radius: var(--hp-radius);
	background: var(--hp-soft);
	padding: 1.1rem 1.15rem;
	margin-bottom: 0.75rem;
	display: flex;
	align-items: center;
	gap: 0.9rem;
}

#hpApp .hp-logo {
	width: 3.25rem;
	height: 3.25rem;
	flex-shrink: 0;
	border-radius: 0.5rem;
	border: 1px solid #e2e8f0;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

#hpApp .hp-logo img {
	width: 2.25rem;
	height: 2.25rem;
	object-fit: contain;
}

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

#hpApp .hp-highlight-value {
	margin-top: 0.25rem;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--hp-primary-hover);
	word-break: break-all;
}

#hpApp .hp-highlight-sub {
	margin-top: 0.2rem;
	font-size: 0.8125rem;
	color: #64748b;
}

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

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

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

#hpApp .hp-metric-value {
	margin-top: 0.4rem;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--hp-ink);
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	word-break: break-all;
}

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

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

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

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

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

#hpApp .hp-notes ol,
#hpApp .hp-notes ul {
	margin-bottom: 2rem;
}

#hpApp .hp-notes p {
	margin-bottom: 2rem;
}

#hpApp .hp-notes p:last-child {
	margin-bottom: 0;
}

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

#hpApp .hp-notes a:hover {
	text-decoration: underline;
}

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

#hpApp .hp-metrics.hidden,
#hpApp .hp-metric.hidden {
	display: none !important;
}

#hpApp .hp-list {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	margin-top: 0.75rem;
}

#hpApp .hp-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	border: 1px solid #e2e8f0;
	border-radius: var(--hp-radius);
	background: #fff;
	padding: 0.75rem 0.9rem;
}

#hpApp .hp-row-name {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--hp-ink);
}

#hpApp .hp-tag {
	flex-shrink: 0;
	padding: 0.15rem 0.5rem;
	border-radius: 0.25rem;
	font-size: 0.75rem;
	font-weight: 700;
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

#hpApp .hp-tag.is-ok {
	background: #f0fdf4;
	color: #15803d;
	border-color: #bbf7d0;
}

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

