.aseha-app {
	--aseha-navy: #233d78;
	--aseha-blue: #5b98ba;
	--aseha-coral: #ff6b6b;
	--aseha-white: #ffffff;
	--aseha-black: #000000;
	--aseha-border: #dbe3ec;
	--aseha-muted: #536273;

	max-width: 1100px;
	margin: 24px auto;
	color: var(--aseha-black);
	font-family:
		system-ui,
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		sans-serif;
	line-height: 1.5;
}

.aseha-app *,
.aseha-app *::before,
.aseha-app *::after {
	box-sizing: border-box;
}

.aseha-card {
	background: var(--aseha-white);
	border: 1px solid var(--aseha-border);
	border-radius: 14px;
	padding: 24px;
	box-shadow: 0 5px 20px rgba(35, 61, 120, 0.08);
}

.aseha-intro {
	color: var(--aseha-white);
	background: linear-gradient(135deg, #233d78, #315795);
	border: 0;
}

.aseha-kicker {
	display: block;
	color: #cce9f7;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.4px;
}

.aseha-intro h2 {
	margin: 8px 0;
	font-size: clamp(28px, 4vw, 42px);
	line-height: 1.1;
}

.aseha-intro p {
	margin: 10px 0;
}

.aseha-privacy {
	display: inline-block;
	margin-top: 16px;
	padding: 9px 12px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.1);
	font-size: 14px;
}

.aseha-input-card {
	margin-top: 16px;
}

.aseha-input-card label {
	display: block;
	margin-bottom: 8px;
	color: var(--aseha-navy);
	font-weight: 700;
}

.aseha-input {
	display: block;
	width: 100%;
	min-height: 230px;
	padding: 14px;
	resize: vertical;
	border: 2px solid #cbd7e2;
	border-radius: 9px;
	background: #fbfdff;
	color: #111111;
	font-family:
		ui-monospace,
		SFMono-Regular,
		Consolas,
		monospace;
	font-size: 14px;
	line-height: 1.5;
}

.aseha-input:focus {
	outline: 3px solid rgba(91, 152, 186, 0.35);
	border-color: var(--aseha-blue);
}

.aseha-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}

.aseha-button {
	padding: 11px 17px;
	border: 0;
	border-radius: 7px;
	font-weight: 700;
	cursor: pointer;
}

.aseha-button:hover {
	filter: brightness(0.94);
}

.aseha-primary {
	background: var(--aseha-coral);
	color: var(--aseha-white);
}

.aseha-secondary {
	background: var(--aseha-navy);
	color: var(--aseha-white);
}

.aseha-light {
	background: #edf2f6;
	color: var(--aseha-navy);
}

.aseha-help,
.aseha-muted {
	color: var(--aseha-muted);
	font-size: 13px;
}

.aseha-results {
	margin-top: 22px;
}

.aseha-summary {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 16px;
	padding: 17px 20px;
	border-left: 5px solid var(--aseha-blue);
	border-radius: 10px;
	background: #f0f7fb;
}

.aseha-summary h3 {
	margin: 0;
	color: var(--aseha-navy);
	font-size: 18px;
}

.aseha-score {
	min-width: 120px;
	padding: 8px 13px;
	border-radius: 9px;
	text-align: center;
}

.aseha-score.ok {
	background: #dff5e9;
	color: #176b43;
}

.aseha-score.review {
	background: #fff0e5;
	color: #a33d19;
}

.aseha-score span,
.aseha-score strong,
.aseha-score small {
	display: block;
}

.aseha-score span {
	font-weight: 800;
}

.aseha-score strong {
	font-size: 28px;
	line-height: 1.1;
}

.aseha-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.aseha-wide {
	grid-column: 1 / -1;
}

.aseha-card h3 {
	margin: 0 0 16px;
	color: var(--aseha-navy);
	font-size: 20px;
}

.aseha-definition-list {
	display: grid;
	grid-template-columns: 115px 1fr;
	gap: 9px;
	margin: 0;
	font-size: 14px;
}

.aseha-definition-list dt {
	color: var(--aseha-muted);
	font-weight: 700;
}

.aseha-definition-list dd {
	margin: 0;
	overflow-wrap: anywhere;
}

.aseha-auth-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.aseha-auth-grid div {
	padding: 11px;
	border-radius: 8px;
	background: #f6f9fb;
}

.aseha-auth-grid div > span:first-child {
	display: block;
	margin-bottom: 4px;
	color: var(--aseha-navy);
	font-weight: 700;
}

.aseha-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.aseha-badge.good {
	background: #d9f2e3;
	color: #11683d;
}

.aseha-badge.bad {
	background: #ffe0e0;
	color: #a51e1e;
}

.aseha-badge.neutral {
	background: #e8edf2;
	color: #536273;
}

.aseha-route {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
}

.aseha-hop {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 13px;
	border-radius: 8px;
	background: #f6f9fb;
}

.aseha-hop-number {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 25px;
	width: 25px;
	height: 25px;
	border-radius: 50%;
	background: var(--aseha-blue);
	color: var(--aseha-white);
	font-weight: 700;
}

.aseha-hop strong {
	overflow-wrap: anywhere;
}

.aseha-hop span,
.aseha-hop small {
	display: block;
	color: var(--aseha-muted);
	font-size: 13px;
}

.aseha-hop small {
	margin-top: 4px;
}

.aseha-table-wrapper {
	max-height: 390px;
	overflow: auto;
}

.aseha-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.aseha-table th,
.aseha-table td {
	padding: 9px;
	border-bottom: 1px solid #e2e8ee;
	text-align: left;
	vertical-align: top;
}

.aseha-table th {
	position: sticky;
	top: 0;
	background: var(--aseha-white);
	color: var(--aseha-navy);
}

.aseha-table td:first-child {
	white-space: nowrap;
	font-weight: 700;
}

.aseha-warnings {
	margin: 0;
	padding-left: 20px;
}

.aseha-warnings li {
	margin: 8px 0;
	color: #8d321f;
}

.aseha-success {
	padding: 11px;
	border-radius: 7px;
	background: #e2f6e9;
	color: #176b43;
}

.aseha-copy-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.aseha-copy-status {
	color: #176b43;
	font-size: 13px;
}

.aseha-disclaimer {
	margin: 16px 4px;
	color: #5c6875;
	font-size: 12px;
}

.aseha-app [hidden] {
	display: none !important;
}

@media (max-width: 700px) {
	.aseha-app {
		margin: 14px 8px;
	}

	.aseha-card {
		padding: 17px;
	}

	.aseha-grid {
		grid-template-columns: 1fr;
	}

	.aseha-wide {
		grid-column: auto;
	}

	.aseha-summary {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
	}

	.aseha-route {
		grid-template-columns: 1fr;
	}

	.aseha-definition-list {
		grid-template-columns: 95px 1fr;
	}
}