:root {
  --bg: #f6f7fb;
  --panel: #ffffff;
  --ink: #111827;
  --soft: #4b5563;
  --mute: #9ca3af;
  --line: #e8ebf2;
  --primary: #111827;
  --accent: #3f6212;
  --lime: #d8ff3e;
  --ok: #059669;
  --warn: #d97706;
  --side: #0b1220;
  --side-text: #9aa4b2;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
  --font: "Satoshi", "Segoe UI", sans-serif;
  --display: "Cabinet Grotesk", "Satoshi", sans-serif;
  --sidebar: 260px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
svg.lucide { width: 18px; height: 18px; stroke-width: 1.75; flex-shrink: 0; }

.app {
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--side);
  color: var(--side-text);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px;
  color: #fff;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(11, 18, 32, 0.25);
}

.hero-logo {
  position: relative;
  z-index: 1;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(11, 18, 32, 0.18);
}
.brand strong {
  display: block;
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.brand strong span {
  color: var(--lime);
}
.brand small {
  color: #6b7280;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.side-nav { display: flex; flex-direction: column; gap: 4px; }
.nav-label {
  margin: 16px 10px 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4b5563;
  font-weight: 600;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--side-text);
  font-weight: 600;
  transition: 0.15s ease;
}
.nav-item:hover { background: rgba(255,255,255,0.04); color: #fff; }
.nav-item.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: inset 3px 0 0 var(--lime);
}

.side-foot {
  margin-top: auto;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #1f2937;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
}
.side-foot strong { display: block; color: #fff; font-size: 13px; }
.side-foot small { color: #6b7280; font-size: 11px; }

.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  width: min(1320px, 100%);
  padding: 28px 32px 8px;
}
.crumb {
  margin: 0 0 4px;
  color: var(--mute);
  font-size: 12px;
  font-weight: 600;
}
.topbar h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 30px;
  letter-spacing: -0.04em;
}
.topbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.content { width: min(1320px, 100%); padding: 16px 32px 48px; }
.route { display: none; animation: in 280ms ease; }
.route.is-on { display: block; }
@keyframes in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 13px;
  transition: 0.15s ease;
}
.btn-sm { padding: 7px 11px; font-size: 12px; }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(17,24,39,0.18);
}
.btn-primary:hover { background: #1f2937; }
.btn-soft {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-soft:hover { border-color: #cfd5e3; }

.hero-card {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 20px;
  padding: 28px;
  border-radius: 24px;
  background:
    radial-gradient(520px 220px at 100% 0%, rgba(216, 255, 62, 0.55), transparent 58%),
    linear-gradient(180deg, #fff, #fbfcf6);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  overflow: hidden;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-card h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.04em;
  line-height: 1.1;
  max-width: 14ch;
}
.hero-card > div > p {
  margin: 0 0 18px;
  color: var(--soft);
  max-width: 46ch;
  line-height: 1.55;
}
.hero-ctas { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-art {
  position: relative;
  min-height: 180px;
  display: grid;
  place-items: center;
}
.ring {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 40px;
  border: 1px solid rgba(216, 255, 62, 0.7);
  animation: spin 10s linear infinite;
}
.ring.delay {
  width: 100px;
  height: 100px;
  border-color: rgba(17,24,39,0.12);
  animation-direction: reverse;
  animation-duration: 14s;
}
@keyframes spin { to { transform: rotate(360deg); } }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: var(--shadow);
}
.stat > svg { color: var(--accent); width: 22px; height: 22px; }
.stat span { display: block; color: var(--mute); font-size: 12px; font-weight: 600; }
.stat strong {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: -0.04em;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.panel-sub {
  margin: 4px 0 0;
  color: var(--mute);
  font-size: 12px;
  font-weight: 500;
}
.filters { display: flex; gap: 6px; }
.chip {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--soft);
  font-size: 12px;
  font-weight: 700;
}
.chip.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.table-wrap { overflow: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; min-width: 640px; border-collapse: collapse; }
.table:has(.empty-row) { min-width: 0; }
.table th, .table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--soft);
  font-weight: 700;
}
.table td { font-weight: 600; }
.cell-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fav {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #0b1220;
  color: #d8ff3e;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.04em;
  overflow: hidden;
  flex: 0 0 auto;
}
.fav.has-logo { background: #fff; }
.fav img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--soft);
  font-size: 12px;
  font-weight: 700;
}
.pill.ok { background: #ecfdf5; color: var(--ok); }
.pill.warn { background: #fffbeb; color: var(--warn); }
.empty-row td {
  text-align: center;
  color: var(--soft);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
  padding: 28px 16px;
  white-space: normal;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--soft);
  font-weight: 700;
  margin-bottom: 14px;
}
.detail-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  margin-bottom: 16px;
}
.brand-chip { display: flex; gap: 12px; align-items: center; }
.brand-chip .fav { width: 48px; height: 48px; border-radius: 14px; font-size: 18px; }
.brand-chip h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: -0.04em;
}
.brand-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 0;
  color: var(--soft);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #0b1220;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  line-height: 1.4;
}
.toast.err { background: #7f1d1d; }
.toast.ok { background: #065f46; }

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 16px;
  align-items: start;
}
.side-stack .form {
  margin: 0;
  max-width: none;
}
.side-stack .form label { font-size: 14px; }
.side-stack .form input {
  font-size: 16px;
  min-height: 48px;
  font-weight: 500;
}
.side-stack .inline-hint {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--soft);
}
.file-field input[type="file"] {
  font-size: 14px;
  font-weight: 600;
  color: var(--soft);
  cursor: pointer;
}
.file-field input[type="file"]::file-selector-button {
  margin-right: 12px;
  border: 0;
  border-radius: 10px;
  background: #e8edf3;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
}
.side-stack { display: grid; gap: 14px; align-content: start; }
.tip p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--soft);
  line-height: 1.55;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}
.steps li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 0; }
.step-ico {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #f3f4f6;
  color: var(--soft);
}
.steps li.done .step-ico { background: #ecfdf5; color: var(--ok); }
.steps li.now .step-ico { background: #f4ffc4; color: #0b1220; }
.steps strong { display: block; letter-spacing: -0.02em; }
.steps small { color: var(--mute); display: block; overflow-wrap: anywhere; }

.kv { list-style: none; margin: 0; padding: 0 18px 16px; display: grid; gap: 12px; }
.kv li { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.kv span { display: inline-flex; align-items: center; gap: 8px; color: var(--mute); font-weight: 600; }

.wizard-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 480px;
}
.wizard-rail {
  background: #0b1220;
  color: #9aa4b2;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wiz-step {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 13px;
}
.wiz-step.is-on {
  background: #fff;
  color: var(--ink);
}
.wiz-num {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.06);
  font-size: 11px;
  font-weight: 800;
}
.wiz-step.is-on .wiz-num { background: var(--lime); color: #0b1220; }
.wizard-main { padding: 28px; }
.wizard-main h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: -0.04em;
}
.wizard-main > .muted {
  font-size: 15px;
  line-height: 1.5;
  max-width: 46ch;
}
.pick-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 12px;
  max-width: 560px;
}
.pick-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.pick-row .fav { width: 40px; height: 40px; }
.pick-copy { display: grid; gap: 2px; min-width: 0; }
.pick-copy strong { font-size: 16px; letter-spacing: -0.02em; }
.pick-copy small {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 600;
}
.pick-mark { margin-left: auto; color: #3f6212; opacity: 0; flex: 0 0 auto; }
.pick-row.is-sel {
  border-color: #b6e000;
  box-shadow: inset 0 0 0 1px #b6e000;
  background: #f7ffe4;
}
.pick-row.is-sel .pick-mark { opacity: 1; }
.pick-empty {
  margin: 0;
  padding: 22px 8px;
  color: var(--soft);
  font-weight: 600;
}
.muted { color: var(--soft); }
.pad { padding: 0 18px 18px; }
.form {
  display: grid;
  gap: 12px;
  margin: 20px 0;
  max-width: 480px;
}
.form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--soft);
}
.form input,
.form select,
.form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  background: #fff;
  font-weight: 600;
  outline: none;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: #0b1220;
  box-shadow: 0 0 0 4px rgba(216, 255, 62, 0.55);
}
.form textarea {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  outline: none;
  font-weight: 600;
  background: #fff;
  font-family: inherit;
  resize: vertical;
}
.form input[type="color"] {
  padding: 4px;
  height: 42px;
  cursor: pointer;
}
.wizard-actions { display: flex; gap: 8px; }
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.wiz-step.is-done { color: #86efac; }
.wiz-step.is-done .wiz-num {
  background: rgba(34,197,94,0.2);
  color: #86efac;
}

.domain-search { margin: 18px 0 8px; max-width: 560px; }
.domain-bar {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px 6px 6px 12px;
  background: #fff;
}
.domain-bar:focus-within {
  border-color: #0b1220;
  box-shadow: 0 0 0 4px rgba(216, 255, 62, 0.45);
}
.domain-bar svg { color: var(--mute); }
.domain-bar input {
  border: 0;
  outline: none;
  padding: 10px 8px;
  font-weight: 700;
  letter-spacing: -0.02em;
  min-width: 0;
  background: transparent;
  color: inherit;
}
.tld-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 14px;
}
.tld-chip {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--soft);
  font-size: 11px;
  font-weight: 700;
}
.domain-results {
  display: grid;
  gap: 6px;
  max-height: 280px;
  overflow: auto;
}
.dom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: 0.12s ease;
}
.dom-row:hover:not(:disabled) { border-color: #93c5fd; }
.dom-row.is-sel {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.dom-row.is-taken { opacity: 0.55; }
.dom-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.dom-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--soft);
}
.dom-empty {
  padding: 28px 12px;
  text-align: center;
  color: var(--mute);
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.spin { animation: spin 0.9s linear infinite; }
.buy-box {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #0b1220;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.buy-box p {
  margin: 4px 0 0;
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  font-weight: 500;
  max-width: 34ch;
}
.buy-box .btn-primary {
  background: #d8ff3e;
  color: #0b1220;
  box-shadow: none;
  white-space: nowrap;
}
.buy-box .btn-primary:hover { background: #e8ff7a; }

.cf-card, .launch-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fafbfd;
}
.cf-row, .launch-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.cf-row:last-child, .launch-row:last-child { border-bottom: 0; }
.cf-row span, .launch-row span { color: var(--mute); font-weight: 600; }
.cf-row strong, .launch-row strong { font-weight: 700; text-align: right; }
.launch-card .muted { padding: 12px 14px; margin: 0; border-top: 1px solid var(--line); }
.check-row {
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  margin-top: 4px;
}
.check-row input { width: 16px; height: 16px; }

.auto-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f3f4f6;
  color: var(--soft);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.auto-status.zoning,
.auto-status.nsupdate,
.auto-status.polling {
  background: #eff6ff;
  color: #1d4ed8;
}
.auto-status.ready {
  background: #ecfdf5;
  color: #047857;
}
.auto-status.error {
  background: #fef2f2;
  color: #b91c1c;
}
.ok-text { color: #047857; }
.warn-panel { border-color: #fcd34d; }
.warn-text {
  margin: 0;
  color: #92400e;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.pad-form { padding-left: 18px; padding-right: 18px; padding-bottom: 18px; }
.form-panel .form { margin-top: 0; max-width: 720px; }
.form-panel .form label { font-size: 14px; }
.form-panel .form input,
.form-panel .form select,
.form-panel .form textarea {
  font-size: 16px;
  min-height: 48px;
  font-weight: 500;
}
.form-panel .inline-hint {
  font-size: 14px;
  line-height: 1.5;
  max-width: 72ch;
}
.inline-hint {
  margin: -4px 0 0;
  font-size: 13px;
  color: var(--mute);
  font-weight: 500;
}
.linkish {
  color: var(--accent);
  font-weight: 700;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
}
.linkish:hover { text-decoration: underline; }
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--soft);
}
.url-cell {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500 !important;
  color: var(--soft);
  font-size: 13px;
}
.url-box {
  margin: 0;
  padding: 0 18px 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
  word-break: break-all;
  color: var(--ink);
}

.empty {
  padding: 56px 20px;
  text-align: center;
  color: var(--soft);
}
.empty svg { width: 28px; height: 28px; color: var(--accent); margin-bottom: 8px; }
.empty h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.account {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
  text-align: center;
}
.account svg { width: 24px; height: 24px; color: var(--accent); }
.account h3 { margin: 10px 0 4px; font-size: 15px; }
.account p { margin: 0 0 14px; color: var(--mute); font-size: 13px; }
.pool-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.pool-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.pool-main { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 180px; }
.pool-main strong { font-size: 15px; }
.pool-row small { color: var(--mute); }
.pool-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.pool-pick { display: grid; gap: 6px; margin-bottom: 12px; font-size: 13px; }
.pool-pick select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: inherit;
  padding: 0 10px;
}
.gsc-pick {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--ink);
  padding: 0 10px;
}

.todo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-scrim {
  display: none;
}

@media (max-width: 980px) {
  .app { display: block; }
  .nav-toggle { display: inline-flex; }
  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 35;
    border: 0;
    padding: 0;
    background: rgba(11, 18, 32, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-scrim { opacity: 1; pointer-events: auto; }
  .sidebar {
    position: fixed;
    z-index: 40;
    top: 0;
    left: 0;
    width: min(86vw, 300px);
    height: 100vh;
    height: 100dvh;
    overflow: auto;
    transform: translateX(-105%);
    transition: transform .2s ease;
    padding-top: max(22px, env(safe-area-inset-top));
    padding-bottom: max(22px, env(safe-area-inset-bottom));
    box-shadow: none;
  }
  .sidebar.is-open {
    transform: none;
    box-shadow: 16px 0 40px rgba(0, 0, 0, 0.25);
  }
  .nav-item { min-height: 44px; }
  .topbar {
    align-items: center;
    flex-wrap: wrap;
    padding: 16px 16px 8px;
    gap: 10px;
  }
  .topbar h1 { font-size: 24px; }
  .topbar > div:nth-child(2) { flex: 1; min-width: 0; }
  .topbar-actions { width: 100%; }
  .topbar-actions .btn { flex: 1; justify-content: center; min-height: 44px; }
  .content { padding: 12px 16px 32px; }
  .hero-card, .detail-grid, .wizard-shell, .stat-grid, .cards-3 { grid-template-columns: 1fr; }
  .hero-card { padding: 20px; }
  .hero-card h2 { max-width: none; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .wizard-shell { min-height: 0; border-radius: 18px; }
  .wizard-rail {
    flex-direction: row;
    overflow-x: auto;
    padding: 12px;
    gap: 8px;
  }
  .wiz-step { flex: 0 0 auto; white-space: nowrap; min-height: 44px; }
  .wizard-main { padding: 18px 16px 16px; }
  .wizard-main h2 { font-size: 24px; }
  .form, .domain-search { max-width: none; }
  .wizard-actions {
    position: sticky;
    bottom: 0;
    background: var(--panel);
    padding: 12px 0 4px;
  }
  .wizard-actions .btn { flex: 1; justify-content: center; min-height: 44px; }
  .domain-bar { grid-template-columns: 28px minmax(0, 1fr); }
  .domain-bar .btn { grid-column: 1 / -1; justify-content: center; min-height: 44px; }
  .buy-box { flex-direction: column; align-items: stretch; }
  .detail-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .detail-actions .btn { justify-content: center; min-height: 44px; }
  .brand-chip h2 { font-size: 22px; }
  .panel-head .btn { min-height: 44px; }
  .toast {
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    max-width: none;
  }
  .back { min-height: 44px; }
}

.theme-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  justify-content: center;
  flex: 0 0 44px;
}

html[data-theme="night"] {
  color-scheme: dark;
  --bg: #0e1218;
  --panel: #171d27;
  --ink: #eef2f6;
  --soft: #c5ceda;
  --mute: #8b97a8;
  --line: #2c3544;
  --primary: #d8ff3e;
  --accent: #d4f56a;
  --ok: #34d399;
  --warn: #fbbf24;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
html[data-theme="night"] .btn-primary { color: #111827; }
html[data-theme="night"] .btn-primary:hover { background: #e8ff7a; }
html[data-theme="night"] .btn-soft,
html[data-theme="night"] .pick-row { background: #121820; }
html[data-theme="night"] .pick-row.is-sel {
  border-color: #d8ff3e;
  box-shadow: inset 0 0 0 1px #d8ff3e;
  background: #1a2410;
}
html[data-theme="night"] .pick-mark { color: #d8ff3e; }
html[data-theme="night"] .form select { color-scheme: dark; }
html[data-theme="night"] .file-field input[type="file"]::file-selector-button {
  background: #2c3544;
  color: var(--ink);
}
html[data-theme="night"] .form input,
html[data-theme="night"] .form select,
html[data-theme="night"] .form textarea,
html[data-theme="night"] .domain-bar,
html[data-theme="night"] .dom-row,
html[data-theme="night"] .cf-card,
html[data-theme="night"] .launch-card { background: #121820; }
html[data-theme="night"] .hero-card {
  background:
    radial-gradient(520px 220px at 100% 0%, rgba(216, 255, 62, 0.16), transparent 58%),
    linear-gradient(180deg, #1c2430, #141a24);
}
html[data-theme="night"] .pill { background: #243041; color: var(--soft); }
html[data-theme="night"] .pill.ok { background: #12352c; color: #6ee7b7; }
html[data-theme="night"] .pill.warn { background: #3a2e12; color: #fcd34d; }
html[data-theme="night"] .step-ico,
html[data-theme="night"] .tld-chip,
html[data-theme="night"] .auto-status { background: #243041; color: var(--soft); }
html[data-theme="night"] .steps li.done .step-ico { background: #12352c; color: #6ee7b7; }
html[data-theme="night"] .steps li.now .step-ico { background: #d8ff3e; color: #111827; }
html[data-theme="night"] .auto-status.zoning,
html[data-theme="night"] .auto-status.nsupdate,
html[data-theme="night"] .auto-status.polling { background: #172554; color: #93c5fd; }
html[data-theme="night"] .auto-status.ready { background: #12352c; color: #6ee7b7; }
html[data-theme="night"] .auto-status.error { background: #3f1d1d; color: #fca5a5; }
html[data-theme="night"] .ok-text { color: #6ee7b7; }
html[data-theme="night"] .warn-text { color: #fcd34d; }
html[data-theme="night"] .chip.is-on,
html[data-theme="night"] .nav-item.is-active,
html[data-theme="night"] .wiz-step.is-on { color: #111827; }
html[data-theme="night"] .form input:focus,
html[data-theme="night"] .form select:focus,
html[data-theme="night"] .form textarea:focus,
html[data-theme="night"] .domain-bar:focus-within { border-color: #d8ff3e; }
