/* Web321 Site Register */
.w321sr-wizard,
.w321sr-account {
	--w321sr-accent: #1f5fbf;
	--w321sr-accent-dark: #174a96;
	--w321sr-border: #d5dae1;
	--w321sr-muted: #5b6573;
	--w321sr-ok: #17693a;
	--w321sr-ok-bg: #e7f6ec;
	--w321sr-bad: #a12622;
	--w321sr-bad-bg: #fbeaea;
	--w321sr-warn: #7a5200;
	--w321sr-warn-bg: #fff4d6;
	font-size: 15px;
	line-height: 1.5;
}
.w321sr-account { max-width: 760px; }
.w321sr-account .w321sr-actions { margin-top: 16px; }
.w321sr-account .w321sr-hint { margin: 0; }
.w321sr-wizard {
	max-width: 760px;
	box-sizing: border-box;
	padding: 24px;
	border: 1px solid var(--w321sr-border);
	border-radius: 10px;
	background: #fff;
	color: #1d2327;
	font-size: 15px;
	line-height: 1.5;
}
.w321sr-wizard *,
.w321sr-wizard *::before,
.w321sr-wizard *::after { box-sizing: border-box; }
.w321sr-wizard [hidden] { display: none !important; }
.w321sr-wizard.is-busy { cursor: progress; }
.w321sr-wizard .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.w321sr-steps {
	display: flex;
	gap: 6px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
	counter-reset: w321sr;
}
.w321sr-steps li {
	flex: 1;
	margin: 0;
	padding: 8px 4px 0;
	border-top: 3px solid var(--w321sr-border);
	color: var(--w321sr-muted);
	font-size: 13px;
	counter-increment: w321sr;
}
.w321sr-steps li::before { content: counter(w321sr) ". "; }
.w321sr-steps li.is-current { border-color: var(--w321sr-accent); color: #1d2327; font-weight: 600; }
.w321sr-steps li.is-complete { border-color: var(--w321sr-ok); }

.w321sr-wizard h3 { margin: 0 0 6px; font-size: 20px; line-height: 1.3; }
.w321sr-wizard h4 { margin: 0 0 4px; font-size: 16px; }
.w321sr-domain { color: var(--w321sr-accent); overflow-wrap: anywhere; }
.w321sr-hint { margin: 0 0 14px; color: var(--w321sr-muted); font-size: 14px; }

.w321sr-notice,
.w321sr-test-output {
	margin: 0 0 16px;
	padding: 10px 14px;
	border-radius: 6px;
	border-left: 4px solid var(--w321sr-accent, #1f5fbf);
	background: #eef4fc;
	overflow-wrap: anywhere;
}
.w321sr-notice[data-type="success"],
.w321sr-test-output[data-type="success"] { border-color: #17693a; background: #e7f6ec; }
.w321sr-notice[data-type="error"],
.w321sr-test-output[data-type="error"] { border-color: #a12622; background: #fbeaea; }
.w321sr-test-output { margin: 8px 0 0; font-size: 13px; }

.w321sr-inline { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.w321sr-inline input { flex: 1 1 240px; }

.w321sr-wizard input[type="text"],
.w321sr-wizard input[type="email"],
.w321sr-wizard input[type="tel"] {
	width: 100%;
	min-height: 42px;
	margin: 0;
	padding: 8px 12px;
	border: 1px solid #8c96a3;
	border-radius: 6px;
	background: #fff;
	color: inherit;
	font-size: 15px;
	line-height: 1.4;
}
.w321sr-wizard input:focus-visible,
.w321sr-wizard button:focus-visible {
	outline: 2px solid var(--w321sr-accent);
	outline-offset: 2px;
}
.w321sr-field.has-error input { border-color: var(--w321sr-bad); }

.w321sr-button {
	min-height: 42px;
	padding: 8px 18px;
	border: 1px solid var(--w321sr-accent);
	border-radius: 6px;
	background: var(--w321sr-accent);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
}
.w321sr-button:hover { background: var(--w321sr-accent-dark); border-color: var(--w321sr-accent-dark); color: #fff; }
.w321sr-button:disabled { opacity: .6; cursor: progress; }
.w321sr-button-secondary { background: #fff; color: var(--w321sr-accent); }
.w321sr-button-secondary:hover { background: #eef4fc; color: var(--w321sr-accent-dark); }
.w321sr-small { min-height: 34px; padding: 4px 14px; font-size: 14px; }
.w321sr-link {
	padding: 8px 4px;
	border: 0;
	background: none;
	color: var(--w321sr-accent);
	font-size: 14px;
	text-decoration: underline;
	cursor: pointer;
}

.w321sr-results { width: 100%; margin: 18px 0 0; border-collapse: collapse; }
.w321sr-results th,
.w321sr-results td { padding: 10px 8px; border-bottom: 1px solid var(--w321sr-border); text-align: left; vertical-align: middle; }
.w321sr-results th { color: var(--w321sr-muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.w321sr-name { font-weight: 600; overflow-wrap: anywhere; }
.w321sr-act { text-align: right !important; white-space: nowrap; }

.w321sr-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	background: #eef0f3;
	color: var(--w321sr-muted, #5b6573);
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}
.w321sr-badge.is-available { background: #e7f6ec; color: #17693a; }
.w321sr-badge.is-taken { background: #fbeaea; color: #a12622; }
.w321sr-badge.is-premium { background: #fff4d6; color: #7a5200; }

.w321sr-plans { display: grid; gap: 10px; margin: 0 0 16px; padding: 0; border: 0; }
.w321sr-plan {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid var(--w321sr-border);
	border-radius: 8px;
	cursor: pointer;
}
.w321sr-plan:has(input:checked) { border-color: var(--w321sr-accent); background: #eef4fc; }
.w321sr-plan input { margin: 0; }
.w321sr-plan-name { font-weight: 600; }
.w321sr-plan-price { margin-left: auto; color: var(--w321sr-muted); text-align: right; }

.w321sr-own { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--w321sr-border); }

.w321sr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-bottom: 16px; }
.w321sr-field { margin: 0; }
.w321sr-field.w321sr-wide { grid-column: 1 / -1; }
.w321sr-field label { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; }
.w321sr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; }

.w321sr-ns { margin: 0 0 16px; padding: 12px 16px; border-radius: 6px; background: #eef4fc; }
.w321sr-ns p { margin: 0 0 6px; }
.w321sr-ns ul { margin: 0 0 8px 18px; padding: 0; font-weight: 600; }
.w321sr-ns .w321sr-hint { margin: 0; }

.w321sr-summary { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 10px 0 16px; }
.w321sr-summary dt { color: var(--w321sr-muted); font-weight: 600; }
.w321sr-summary dd { margin: 0; overflow-wrap: anywhere; }
.w321sr-summary code { padding: 2px 6px; border-radius: 4px; background: #f1f3f5; font-size: 14px; }
.w321sr-once { margin: 0 0 16px; padding: 8px 12px; border-radius: 6px; background: var(--w321sr-warn-bg); color: var(--w321sr-warn); font-weight: 600; }

@media (max-width: 560px) {
	.w321sr-wizard { padding: 16px; }
	.w321sr-grid { grid-template-columns: 1fr; }
	.w321sr-steps li { font-size: 11px; }
	.w321sr-results thead { display: none; }
	.w321sr-results tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 0; border-bottom: 1px solid var(--w321sr-border); }
	.w321sr-results td { padding: 0; border: 0; }
	.w321sr-results .w321sr-name { flex: 1 1 100%; }
	.w321sr-results .w321sr-act { margin-left: auto; }
	.w321sr-summary { grid-template-columns: 1fr; gap: 2px; }
	.w321sr-summary dd { margin-bottom: 8px; }
}

/* Admin screens */
.w321sr-admin-columns { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; margin-top: 16px; }
.w321sr-admin-main { flex: 1 1 640px; min-width: 0; }
.w321sr-admin-side { flex: 0 0 280px; }
.w321sr-card { margin: 0 0 16px; padding: 16px; border: 1px solid #c3c4c7; border-radius: 6px; background: #fff; }
.w321sr-card h2,
.w321sr-card h3 { margin-top: 0; }
.w321sr-card .button { display: block; margin-bottom: 8px; text-align: center; }
.w321sr-admin-main .w321sr-card h2 { padding-bottom: 8px; border-bottom: 1px solid #dcdcde; }
.w321sr-host { margin: 0 0 12px; padding: 4px 16px 12px; border: 1px solid #dcdcde; border-radius: 6px; }
.w321sr-host legend { padding: 0 6px; font-weight: 600; }
.w321sr-records td { vertical-align: middle; }
.w321sr-status { text-transform: capitalize; }
