@scope (#shell) {
	.site-dialog {
		box-sizing: border-box;
		margin: auto;
		padding: 0;
		width: min(580px, calc(100% - 32px));
		max-height: min(720px, calc(100dvh - 32px));
		border: 0;
		border-radius: 16px;
		background: var(--surface);
		color: var(--ink);
		font: inherit;
		box-shadow: var(--sh-3);
	}
	.site-dialog[open] {
		display: flex;
		flex-direction: column;
	}
	.site-dialog::backdrop {
		background: rgba(16, 35, 30, 0.42);
	}
	.site-dialog.wizard {
		height: min(720px, calc(100dvh - 32px));
	}
	.site-dialog header,
	.site-dialog footer {
		display: flex;
		align-items: center;
		gap: 10px;
		padding: 14px 22px;
		border-top: 1px solid var(--line);
	}
	.site-dialog header {
		padding: 20px 22px 14px;
		border: 0;
		align-items: flex-start;
	}
	.site-dialog h2 {
		font-size: 19px;
		line-height: 1.3;
	}
	.site-dialog .kick {
		font-size: 11px;
		text-transform: uppercase;
		letter-spacing: 0.08em;
		font-weight: 700;
		color: var(--muted);
	}
	.site-dialog .grow,
	.set-row .grow {
		flex: 1;
		min-width: 0;
	}
	.site-dialog footer .btn-primary {
		min-width: 132px;
	}
	.dialog-body {
		flex: 1;
		overflow: auto;
		padding: 18px 22px;
	}
	.wizard-steps {
		display: flex;
		gap: 6px;
		padding: 0 22px 14px;
		border-bottom: 1px solid var(--line);
	}
	.wizard-steps span {
		flex: 1;
		font-size: 12px;
		color: var(--muted);
		font-weight: 600;
	}
	.wizard-steps i {
		display: block;
		height: 4px;
		border-radius: 4px;
		background: var(--bg-3);
		margin-bottom: 6px;
	}
	.wizard-steps .current i {
		background: var(--green);
	}
	.form-grid,
	.settings-stack {
		display: grid;
		gap: 16px;
		align-content: start;
	}
	.field,
	.site-dialog fieldset {
		display: grid;
		gap: 6px;
		min-width: 0;
	}
	.field b,
	.site-dialog legend {
		font-size: 13px;
		font-weight: 600;
	}
	.site-dialog fieldset {
		border: 0;
		margin: 0;
		padding: 0;
		gap: 8px;
	}
	.site-dialog legend {
		margin-bottom: 8px;
	}
	.field small,
	.choice small {
		display: block;
		color: var(--muted);
		font-size: 12px;
	}
	.input,
	.select {
		width: 100%;
		box-sizing: border-box;
		min-width: 0;
		height: 40px;
		border: 1px solid var(--line-2);
		border-radius: var(--r-sm);
		padding: 0 12px;
		background: white;
		color: var(--ink);
		font: inherit;
	}
	.choice {
		display: flex;
		gap: 10px;
		padding: 12px 14px;
		border: 1px solid var(--line-2);
		border-radius: var(--r-md);
		align-items: flex-start;
		font-size: 13px;
		cursor: pointer;
	}
	.choice input {
		margin: 3px 0 0;
		accent-color: var(--green-600);
	}
	.choice:has(:checked) {
		border-color: var(--green);
		background: var(--green-50);
	}
	.set-row {
		display: flex;
		align-items: center;
		gap: 14px;
		padding: 14px 20px;
		border-top: 1px solid var(--line);
		overflow-wrap: anywhere;
	}
	.set-row:first-child {
		border: 0;
	}
	.set-row b {
		display: block;
		font-size: 13px;
	}
	.set-row .d {
		display: block;
		color: var(--muted);
		font-size: 12px;
	}
	.wizard .set-row {
		padding: 10px 0;
	}
	.switch {
		border: 0;
		position: relative;
		width: 40px;
		height: 24px;
		border-radius: 99px;
		background: var(--line-2);
		flex: none;
		cursor: pointer;
	}
	.switch:after {
		content: "";
		position: absolute;
		top: 3px;
		left: 3px;
		width: 18px;
		height: 18px;
		border-radius: 50%;
		background: white;
		box-shadow: var(--sh-1);
	}
	.switch[aria-checked="true"] {
		background: var(--green-600);
	}
	.switch[aria-checked="true"]:after {
		transform: translateX(16px);
	}
	button:disabled {
		opacity: 0.55;
		cursor: not-allowed;
	}
	.site-settings .card-h {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
		padding: 18px 20px 10px;
	}
	.site-settings .card-b {
		padding: 12px 20px 20px;
	}
	.conn-ico {
		display: grid;
		place-items: center;
		width: 36px;
		height: 36px;
		border-radius: 9px;
		flex: none;
		background: var(--bg-2);
		font-size: 12px;
		font-weight: 800;
	}
	.conn-ico.ga4,
	.conn-ico.cloudflare {
		background: #fdebd3;
		color: #b5651d;
	}
	.conn-ico.handrail,
	.conn-ico.ads,
	.conn-ico.social,
	.conn-ico.relay {
		background: var(--green-50);
		color: var(--green-700);
	}
	.company-options {
		max-height: 160px;
		overflow: auto;
		border: 1px solid var(--line);
		border-radius: 8px;
	}
	.company-options button {
		display: block;
		text-align: left;
		background: white;
		border: 0;
		padding: 8px 12px;
		width: 100%;
		cursor: pointer;
	}
	.company-options button[aria-selected="true"],
.company-options button:hover {
		background: var(--bg);
	}
	.company-options button ~ .no-match {
		display: none;
	}
	.chips {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
	}
	.chip {
		border-radius: 99px;
		background: var(--bg-2);
		padding: 4px 9px;
		font-size: 12px;
	}
	.chip button {
		background: none;
		border: 0;
		cursor: pointer;
	}
	.site-note {
		border-radius: 9px;
		padding: 12px 14px;
		background: var(--amber-50);
	}
	.site-note.green {
		background: var(--green-50);
	}
	.kv {
		margin: 12px 0 18px;
	}
	.kv div {
		display: grid;
		grid-template-columns: 90px 1fr;
		gap: 8px;
		padding: 6px 0;
	}
	.kv dd {
		margin: 0;
		overflow-wrap: anywhere;
	}
	.kv dt {
		color: var(--muted);
	}
	@media (max-width: 640px) {
		.site-dialog {
			margin: auto auto 0;
			width: 100%;
			max-width: 100%;
			border-radius: 16px 16px 0 0;
		}
		.set-row {
			padding: 12px;
			gap: 8px;
		}
		.site-dialog footer {
			padding: 12px;
		}
		.site-dialog footer .btn-primary {
			min-width: 80px;
		}
	}
}
#shell .site-dialog .kick{font-size:var(--fs-xs);font-weight:600;text-transform:none;letter-spacing:normal;margin-bottom:4px}
#shell .site-dialog header button{font-size:20px;font-weight:400}
#shell .input:focus,#shell .select:focus{outline:0;border-color:var(--green);box-shadow:0 0 0 3px var(--green-100)}
#shell .settings-stack{gap:20px}
#shell .site-settings .card-h + .set-row{border-top:0}
