:root {
  --bg: #f3f6fb; --card: #ffffff; --ink: #14213a; --muted: #5b6b85; --line: #dbe3ef;
  --brand: #0f2a4a; --accent: #1a73e8; --accent-ink: #ffffff; --ok: #137a3d; --ok-bg: #e6f5ec;
  --warn: #8a5a00; --warn-bg: #fff4d6; --bad: #b3261e; --bad-bg: #fdecea; --shadow: 0 8px 30px rgba(15, 42, 74, .08);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1424; --card: #131f36; --ink: #e8eefb; --muted: #9bacc8; --line: #25365a;
    --brand: #e8eefb; --accent: #5b9dff; --accent-ink: #08101f; --ok: #5fd08a; --ok-bg: #12301f;
    --warn: #f0c35a; --warn-bg: #33290c; --bad: #ff8a80; --bad-bg: #3a1613; --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.7 system-ui, -apple-system, "Segoe UI", Tahoma, "Noto Sans Arabic", sans-serif; }
.wrap { max-width: 560px; margin: 0 auto; padding: 32px 16px 48px; }
.wrap.wide { max-width: 820px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.center { text-align: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--brand); font-size: 18px; margin-bottom: 8px; }
.logo { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #0f2a4a; color: #fff; font-weight: 800; }
h1 { font-size: 24px; line-height: 1.4; margin: 8px 0 8px; }
h2 { font-size: 18px; margin: 0 0 8px; }
p { margin: 8px 0; }
.muted { color: var(--muted); }
.btn { display: inline-block; border: 0; border-radius: 12px; padding: 13px 22px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; background: var(--accent); color: var(--accent-ink); min-height: 48px; }
.btn:hover { filter: brightness(1.06); }
.btn:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.block { display: block; width: 100%; }
.row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.row .btn { flex: 1 1 140px; text-align: center; }
.domain { display: block; direction: ltr; unicode-bidi: isolate; font: 700 22px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--bg); border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px; margin: 14px 0; word-break: break-all; text-align: center; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 18px 0 0; }
.steps li { counter-increment: s; position: relative; padding: 8px 44px 8px 0; }
.steps li::before { content: counter(s); position: absolute; right: 0; top: 8px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); font-weight: 700; }
.notice { border-radius: 12px; padding: 12px 14px; margin: 14px 0; border: 1px solid transparent; }
.notice.ok { background: var(--ok-bg); color: var(--ok); }
.notice.warn { background: var(--warn-bg); color: var(--warn); }
.notice.bad { background: var(--bad-bg); color: var(--bad); }
.hint { font-size: 14px; color: var(--muted); }
label { display: block; font-weight: 700; margin: 14px 0 6px; }
select { width: 100%; font: inherit; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.spinner { display: inline-block; width: 18px; height: 18px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -3px; margin-inline-end: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.top .who { color: var(--muted); font-size: 14px; }
.site { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); }
.site:first-of-type { border-top: 0; }
.site.sub { border-top: 0; padding-top: 0; margin-top: -8px; }
.site .name { font-weight: 700; }
.site .dom { direction: ltr; unicode-bidi: isolate; color: var(--muted); font: 14px ui-monospace, Menlo, Consolas, monospace; }
.badge { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 700; background: var(--bg); border: 1px solid var(--line); }
.badge.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.badge.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.code { direction: ltr; unicode-bidi: isolate; font: 700 28px/1.3 ui-monospace, Menlo, Consolas, monospace; letter-spacing: 4px; text-align: center; background: var(--bg); border-radius: 12px; padding: 12px; margin: 10px 0; }
[hidden] { display: none !important; }

a:not(.btn) { color: var(--accent); }
