@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/poppins-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/poppins-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/poppins-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: Poppins;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/poppins-latin-700.woff2") format("woff2");
}

:root {
  --bg: #FBF8F3;
  --bg-accent: #F3EEE6;
  --surface: #FFFFFF;
  --ink: #16140F;
  --slash: #14120B;
  --muted: #5C564C;
  --line: #E4DCD0;
  --purple: #5B21E6;
  --purple-hover: #4A16C9;
  --purple-soft: #F1EBFF;
  --link: #5B21E6;
  --focus: #5B21E6;
  --bad-bg: #FDECEA;
  --bad-ink: #8C1D13;
  --bad-line: #F3C1BB;
  --ok-bg: #E5F6ED;
  --ok-ink: #085C36;
  --ok-line: #B7E4C9;
  --warn-bg: #FFF4E5;
  --warn-ink: #8A4B08;
  --warn-line: #F3D7B0;
  --shadow: 0 24px 60px -32px rgba(48, 32, 12, 0.55);
  --radius: 18px;
  --font: Poppins, "Avenir Next", "Century Gothic", "Trebuchet MS", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12110F;
    --bg-accent: #1C1A17;
    --surface: #1E1B18;
    --ink: #F7F3EC;
    --slash: #ffffff;
    --muted: #C4BBAF;
    --line: #3A342C;
    --purple: #5B21E6;
    --purple-hover: #7040F0;
    --purple-soft: #2A2150;
    --link: #DDD4FF;
    --focus: #DDD4FF;
    --bad-bg: #3B1512;
    --bad-ink: #FFD2CC;
    --bad-line: #7A2E28;
    --ok-bg: #123226;
    --ok-ink: #C8F8E0;
    --ok-line: #1F6B48;
    --warn-bg: #3A2712;
    --warn-ink: #FFE1C2;
    --warn-line: #7A5420;
    --shadow: 0 24px 60px -32px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #12110F;
  --bg-accent: #1C1A17;
  --surface: #1E1B18;
  --ink: #F7F3EC;
  --slash: #ffffff;
  --muted: #C4BBAF;
  --line: #3A342C;
  --purple: #5B21E6;
  --purple-hover: #7040F0;
  --purple-soft: #2A2150;
  --link: #DDD4FF;
  --focus: #DDD4FF;
  --bad-bg: #3B1512;
  --bad-ink: #FFD2CC;
  --bad-line: #7A2E28;
  --ok-bg: #123226;
  --ok-ink: #C8F8E0;
  --ok-line: #1F6B48;
  --warn-bg: #3A2712;
  --warn-ink: #FFE1C2;
  --warn-line: #7A5420;
  --shadow: 0 24px 60px -32px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

:root[data-theme="light"] { color-scheme: light; }

* { box-sizing: border-box; }
html { height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--font);
}
img, svg { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 28px; line-height: 1.15; letter-spacing: -0.04em; }
h2 { font-size: 20px; letter-spacing: -0.03em; }
a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
::placeholder { color: var(--muted); opacity: 1; }
::selection { background: rgba(91, 33, 230, 0.22); }
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
[hidden] { display: none !important; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 5;
  background: var(--purple);
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
}
.skip:focus { top: 12px; }
.theme-fab { position: fixed; top: 12px; right: 12px; z-index: 5; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mark { width: 40px; height: 40px; display: block; color: var(--slash); flex: none; }
.lockup { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.lockup-copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.wordmark { font-weight: 700; letter-spacing: -0.045em; font-size: 22px; line-height: 1; color: var(--ink); }
.wordmark .dot { color: var(--purple); }
.tagline { display: block; margin-top: 4px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.25; font-size: 16px; }

.page-auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px 48px;
  background:
    radial-gradient(900px 420px at 0% -10%, rgba(91, 33, 230, 0.08), transparent 55%),
    radial-gradient(700px 380px at 100% 110%, rgba(91, 33, 230, 0.06), transparent 50%),
    var(--bg);
}
.auth-wrap { width: min(460px, 100%); }
.page-auth .lockup { margin-bottom: 18px; }
.page-auth .mark { width: 64px; height: 64px; }
.page-auth .wordmark { font-size: 26px; }
.page-auth .tagline { font-size: 18px; }

.card, .panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card { padding: 26px 24px 22px; }
.panel { padding: 18px; box-shadow: none; }
.stack { display: grid; gap: 16px; }
.lead { color: var(--muted); margin: 8px 0 18px; }
.hint { color: var(--muted); font-size: 14px; margin-top: 8px; }
.fine { color: var(--muted); font-size: 13px; }

.steps {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
.steps li { flex: 1; min-width: 0; text-align: center; font-size: 11px; font-weight: 600; color: var(--muted); }
.steps li::before {
  content: "";
  display: block;
  height: 4px;
  border-radius: 99px;
  background: var(--line);
  margin-bottom: 6px;
}
.steps li.on { color: var(--ink); }
.steps li.on::before, .steps li.done::before { background: var(--purple); }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .lbl { font-size: 13px; font-weight: 600; color: var(--muted); }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--ink);
}
textarea { min-height: 96px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  border-color: var(--purple);
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}
input[readonly] { color: var(--muted); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 76px; }
.pw-toggle {
  position: absolute;
  right: 6px;
  top: 6px;
  min-height: 36px;
  border: 0;
  background: transparent;
  color: var(--link);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  border-radius: 8px;
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--purple); width: 18px; height: 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; font-size: 14px; }
.check input { margin-top: 2px; flex: none; }

.code-input {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-align: center;
  padding-left: 0.35em;
}
.mono { font-family: var(--mono); font-size: 14px; }
.break { overflow-wrap: anywhere; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--purple);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--purple-hover); }
.btn:disabled { cursor: not-allowed; opacity: 0.62; }
.btn.full { width: 100%; margin-top: 16px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--bg-accent); }
.btn.danger { background: transparent; color: var(--bad-ink); border-color: var(--bad-line); }
.btn.danger:hover { background: var(--bad-bg); }
.btn.small { min-height: 36px; padding: 6px 10px; font-size: 13px; }

.linkish {
  background: none;
  border: 0;
  padding: 0;
  color: var(--link);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.or {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  margin: 16px 0;
}
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.providers { display: grid; gap: 8px; }
.providers .btn { margin-top: 0; }

.alert {
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  margin-top: 12px;
  border: 1px solid transparent;
}
.alert.bad { background: var(--bad-bg); color: var(--bad-ink); border-color: var(--bad-line); }
.alert.ok { background: var(--ok-bg); color: var(--ok-ink); border-color: var(--ok-line); }
.alert.warn { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--warn-line); }
.banner { border-radius: 14px; padding: 12px 14px; border: 1px solid var(--warn-line); background: var(--warn-bg); color: var(--warn-ink); }
.banner.ok { background: var(--ok-bg); color: var(--ok-ink); border-color: var(--ok-line); }

.qr {
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  margin: 8px 0 12px;
}
.qr svg { width: 196px; height: 196px; }
.secret {
  font-family: var(--mono);
  font-size: 14px;
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  user-select: all;
}
.row2 { display: flex; gap: 8px; margin-top: 8px; }
.row2 .btn { flex: 1; margin-top: 0; }

.codes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 14px;
  user-select: all;
}

.shell-head { position: sticky; top: 0; z-index: 3; background: var(--bg); }
.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.topbar .wordmark { font-size: 18px; }
.spacer { flex: 1; }
.who {
  color: var(--muted);
  font-size: 14px;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tabs {
  display: flex;
  gap: 4px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  background: var(--bg);
}
.tabs a {
  flex: none;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  border-bottom: 2px solid transparent;
}
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--purple); }
.page { width: min(1080px, 100%); margin: 0 auto; padding: 22px 16px 72px; }
.page-head { display: flex; justify-content: space-between; gap: 12px; align-items: end; flex-wrap: wrap; margin-bottom: 14px; }
.page-head p { color: var(--muted); margin-top: 4px; }

.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.grow { flex: 1 1 180px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 99px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg);
}
.pill.ok { color: var(--ok-ink); border-color: var(--ok-line); background: var(--ok-bg); }
.pill.bad { color: var(--bad-ink); border-color: var(--bad-line); background: var(--bad-bg); }
.pill.warn { color: var(--warn-ink); border-color: var(--warn-line); background: var(--warn-bg); }

.app { display: grid; gap: 12px; }
.app-head { display: flex; justify-content: space-between; gap: 10px; align-items: start; flex-wrap: wrap; }
.app-head h2 { font-size: 22px; }
.drop {
  border: 1.5px dashed var(--line);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  background: var(--bg);
}
.drop.over { border-color: var(--purple); background: var(--purple-soft); }
.drop p { margin-bottom: 8px; }
.segment { display: flex; gap: 8px; flex-wrap: wrap; }
.segment button[aria-checked="true"] { border-color: var(--purple); color: var(--purple); background: var(--purple-soft); }
.build-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.log {
  max-height: 240px;
  overflow: auto;
  margin-top: 10px;
  background: #14120F;
  color: #F6F1EA;
  padding: 12px;
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 12px; letter-spacing: 0.02em; }
.meter {
  height: 8px;
  background: var(--bg-accent);
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.meter span { display: block; height: 100%; background: var(--purple); }
.meter.warn span { background: #B54708; }
.meter.bad span { background: #B42318; }
.metric { margin-bottom: 14px; }
.metric .meta { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; margin-bottom: 6px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.plan { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--bg); display: grid; gap: 6px; align-content: start; }
.plan.current { border-color: var(--purple); box-shadow: inset 0 0 0 1px var(--purple); }
.plan .amt { font-size: 28px; font-weight: 700; letter-spacing: -0.04em; }
.plan ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.tabs-sub { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs-sub button[aria-selected="true"] { border-color: var(--purple); color: var(--ink); background: var(--purple-soft); }
.copyline { display: flex; gap: 8px; align-items: stretch; margin: 8px 0; }
.codeblock {
  flex: 1;
  margin: 0;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: all;
}
.list { display: grid; gap: 8px; }
.list-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.empty { text-align: center; padding: 28px 10px; }
.prose p, .prose ol { margin: 8px 0; }
.prose ol { padding-left: 20px; }
.toast {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 12px;
  max-width: min(520px, 92vw);
}
.empty .mark { width: 72px; height: 72px; margin: 0 auto 10px; }
.issue { padding: 8px 0; border-bottom: 1px solid var(--line); }
.issue strong { display: block; }
.app details > summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.domain-steps { display: grid; gap: 10px; }
.domain-step {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 8px;
}
.domain-label { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.domain-label .n {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  flex: none;
}
.domain-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.prog { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; }
.prog span {
  padding: 2px 10px;
  border-radius: 99px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
}
.prog span.on { border-color: var(--purple); color: var(--purple); background: var(--purple-soft); }
.prog span.done { border-color: var(--ok-ink); color: var(--ok-ink); background: var(--ok-bg); }
.dns-wrap { overflow-x: auto; max-width: 100%; }
table.dns { width: max-content; min-width: 100%; }
table.dns th, table.dns td {
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
}

@media (max-width: 720px) {
  h1 { font-size: 24px; }
  .page-auth .wordmark { font-size: 22px; }
  .page-auth .tagline { font-size: 16px; }
  .page-auth .mark { width: 52px; height: 52px; }
  .card { padding: 22px 16px 18px; }
  .build-grid, .codes { grid-template-columns: 1fr; }
  .topbar { flex-wrap: wrap; padding: 12px; }
  .topbar .tagline { display: none; }
  .who { flex-basis: 100%; max-width: none; order: 5; }
  .copyline { flex-direction: column; }
  .steps li { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
