:root {
	color-scheme: light;
	font: 14px/1.45 system-ui, sans-serif;
	color: #171717;
	background: #fff;
}

* { box-sizing: border-box; }
body { margin: 0; }
h1, p { margin: 0; }
h1 { font-size: 20px; line-height: 1.3; font-weight: 650; }
h1, p, bdi { overflow-wrap: anywhere; }
a { color: inherit; }
img { display: block; }
button, a { touch-action: manipulation; }
:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }

.shell {
	min-height: 100dvh;
	display: grid;
	grid-template-rows: auto 1fr auto;
	padding: 16px;
	background: #f4f4f5;
}
.header {
	min-height: 24px;
	display: flex;
	justify-content: flex-end;
	align-items: flex-start;
}
.identity, footer, small, .reference { font-size: 12px; color: #52525b; }
.identity { text-align: end; }
.center { display: grid; place-items: center; padding: 12px 0; }
.card {
	width: min(100%, 384px);
	display: flex;
	flex-direction: column;
	gap: 14px;
	border: 1px solid #e4e4e7;
	border-radius: 16px;
	background: #fff;
	text-align: center;
	padding: 24px 24px 12px;
}
.detail { margin-top: -4px; color: #52525b; }
.note { color: #52525b; font-size: 13px; }
.status-mark, .brand-mark {
	display: grid;
	place-items: center;
	margin: 0 auto;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #f4f4f5;
}
.status-mark img { width: 23px; height: 23px; }
.status-mark.warning { background: #fef3c7; }
.status-mark.danger { background: #fee2e2; }
.pair { display: flex; align-items: center; justify-content: center; gap: 12px; }
.pair .status-mark, .brand-mark { margin: 0; width: 40px; height: 40px; border-radius: 12px; }
.pair .status-mark img { width: 20px; height: 20px; }
.brand-mark { background: #171717; color: #fff; font-weight: 650; font-size: 18px; }
.arrows { color: #52525b; font-size: 21px; line-height: 1; }
fieldset { margin: 0; padding: 0; min-width: 0; border: 1px solid #e4e4e7; border-radius: 8px; text-align: start; }
fieldset label { min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 8px 12px; cursor: pointer; }
fieldset label + label { border-top: 1px solid #e4e4e7; }
label input { margin: 0; accent-color: #171717; }
label img { width: 16px; height: 16px; }
.option, small { display: block; }

.primary, .quiet, .end {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 7px 13px;
	border-radius: 8px;
	font: inherit;
	font-weight: 550;
	text-decoration: none;
	cursor: pointer;
}
.primary { background: #171717; color: #fff; border: 1px solid #171717; }
.primary:hover { background: #333; }
.primary:disabled { opacity: .55; cursor: wait; }
.quiet { border: 1px solid transparent; background: transparent; color: #252525; }
.quiet:hover, .end:hover { background: #f4f4f5; }
.end { border: 1px solid #d4d4d8; background: #fff; white-space: nowrap; }

footer { text-align: center; }
.flags { display: flex; justify-content: center; gap: 4px; margin-top: 6px; }
.flags img { width: 16px; height: 12px; border-radius: 2px; }
.digits { border: 1px solid #e4e4e7; background: #fafafa; border-radius: 8px; padding: 12px 4px; font: 650 clamp(26px, 8vw, 36px)/1.2 ui-monospace, monospace; letter-spacing: .11em; }
.waiting { display: flex; justify-content: center; align-items: center; gap: 8px; color: #52525b; }
.spinner { width: 15px; height: 15px; border: 2px solid #a1a1aa; border-top-color: #242428; border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) { .spinner { animation: spin 1s linear infinite; } }
@keyframes spin { to { transform: rotate(360deg); } }

.strip { display: flex; align-items: center; gap: 12px; padding: 4px 16px; border-bottom: 1px solid #e4e4e7; }
.strip p { flex: 1; color: #52525b; }
.map { display: grid; flex: 1; min-height: 0; place-items: stretch; }
#page:has(.strip) { height: 100dvh; display: flex; flex-direction: column; }
.map iframe { width: 100%; height: 100%; border: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; white-space: nowrap; clip-path: inset(50%); }

@media (min-width: 640px) { .shell { padding: 24px; } }
@media (max-width: 480px) { .strip { flex-wrap: wrap; } .strip p { flex-basis: 100%; } }
