:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #f0f2f7;
  --border: #e2e5ed;
  --border-strong: #cdd2de;
  --text: #151922;
  --muted: #5f6779;
  --faint: #8a91a3;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-weak: #eef0ff;
  --accent-contrast: #ffffff;
  --green: #137a3a;
  --green-bg: #e6f6ec;
  --red: #b42318;
  --red-bg: #fdecea;
  --amber: #a15c07;
  --amber-bg: #fdf3e1;
  --gray-bg: #eceff4;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.16);
  --radius: 10px;
  --radius-sm: 7px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1117;
    --surface: #161a22;
    --surface-2: #1d222d;
    --border: #282e3b;
    --border-strong: #363d4d;
    --text: #e6e9f0;
    --muted: #9ba3b4;
    --faint: #737b8d;
    --accent: #8580ff;
    --accent-hover: #9d99ff;
    --accent-weak: #24264a;
    --accent-contrast: #0e1117;
    --green: #4ade80;
    --green-bg: #12301f;
    --red: #f87171;
    --red-bg: #3a1718;
    --amber: #fbbf24;
    --amber-bg: #392b0f;
    --gray-bg: #232937;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 17px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 650; }
p { margin: 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }

.boot { padding: 80px; text-align: center; color: var(--muted); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack.tight { gap: 6px; }
.stack.loose { gap: 20px; }
.grow { flex: 1; min-width: 0; }
.right { margin-left: auto; }
.hidden { display: none !important; }

/* ---------- Top bar ---------- */

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1440px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  height: 56px; padding: 0 20px;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15.5px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; }
.nav { display: flex; gap: 2px; overflow-x: auto; }
.nav a {
  color: var(--muted); padding: 7px 12px; border-radius: var(--radius-sm);
  font-weight: 550; white-space: nowrap; display: flex; align-items: center; gap: 6px;
}
.nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav a.active { color: var(--accent); background: var(--accent-weak); }
.nav .count {
  font-size: 11px; background: var(--surface-2); color: var(--muted);
  border-radius: 999px; padding: 0 7px; line-height: 18px;
}
.nav a.active .count { background: var(--surface); color: var(--accent); }
.user-menu { margin-left: auto; position: relative; display: flex; align-items: center; gap: 6px; }
.avatar-btn { border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%; }
.avatar-btn .avatar { width: 32px; height: 32px; font-size: 12.5px; }
.avatar-btn:hover .avatar, .avatar-btn[aria-expanded="true"] .avatar { box-shadow: 0 0 0 3px var(--accent-weak); }
.avatar-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-weak); }
.menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 30;
  min-width: 230px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
}
.menu a, .menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px; border: 0; border-radius: var(--radius-sm);
  background: none; color: var(--muted); font: inherit; font-weight: 550; text-align: left; cursor: pointer;
}
.menu a:hover, .menu button:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.menu a.active { color: var(--accent); background: var(--accent-weak); }
.menu .menu-head { display: flex; flex-direction: column; padding: 8px 10px 6px; }
.menu .menu-sep { height: 1px; background: var(--border); margin: 6px 4px; }
.menu .section-label { padding: 4px 10px; }
.or-sep { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; }
.or-sep::before, .or-sep::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-weak); color: var(--accent);
  display: grid; place-items: center; font-weight: 700; font-size: 12.5px; text-transform: uppercase;
}

.page { max-width: 1440px; margin: 0 auto; padding: 24px 20px 60px; }
.page.narrow { max-width: 920px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head p { margin-top: 4px; }

/* ---------- Surfaces ---------- */

.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.panel-body { padding: 18px; }
.panel-head {
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}

.empty {
  text-align: center; padding: 56px 24px; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.empty .icon-wrap {
  width: 52px; height: 52px; border-radius: 14px; background: var(--accent-weak); color: var(--accent);
  display: grid; place-items: center;
}
.empty h2 { color: var(--text); }
.empty p { max-width: 420px; }

.notice {
  border-radius: var(--radius-sm); padding: 11px 14px; display: flex; gap: 10px; align-items: flex-start;
  background: var(--surface-2); border: 1px solid var(--border);
}
.notice.error { background: var(--red-bg); border-color: transparent; color: var(--red); }
.notice.warn { background: var(--amber-bg); border-color: transparent; color: var(--amber); }
.notice.ok { background: var(--green-bg); border-color: transparent; color: var(--green); }
.notice svg { flex: none; margin-top: 2px; }

/* ---------- Forms ---------- */

label.field { display: flex; flex-direction: column; gap: 5px; }
.field > span { font-weight: 600; font-size: 13px; }
.field .hint { font-weight: 400; color: var(--faint); font-size: 12px; }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 8px 10px; outline: none;
  transition: border-color .12s, box-shadow .12s;
}
textarea { resize: vertical; min-height: 64px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-weak); }
input[type=range] { width: 100%; accent-color: var(--accent); }
input[type=checkbox] { accent-color: var(--accent); width: 15px; height: 15px; margin: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.toggle { display: flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle .track {
  width: 34px; height: 20px; border-radius: 999px; background: var(--border-strong);
  position: relative; transition: background .15s; flex: none;
}
.toggle .track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.toggle input:checked + .track { background: var(--accent); }
.toggle input:checked + .track::after { transform: translateX(14px); }
.toggle input:focus-visible + .track { box-shadow: 0 0 0 3px var(--accent-weak); }
.toggle .label { font-weight: 550; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-check span {
  display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  border: 1px solid var(--border-strong); color: var(--muted); background: var(--surface);
}
.chip-check input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.chip-check input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-weak); }

.section-label {
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap;
  border-radius: var(--radius-sm); padding: 8px 14px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); transition: background .12s, border-color .12s, opacity .12s;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-weak); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.danger { color: var(--red); }
.btn.danger:hover { background: var(--red-bg); border-color: var(--red); }
.btn.danger.solid { background: var(--red); border-color: var(--red); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.sm { padding: 5px 10px; font-size: 12.5px; }
.btn.icon { padding: 6px; }
.btn.block { width: 100%; }
.btn.lg { padding: 11px 18px; font-size: 15px; }

.seg { display: inline-flex; background: var(--surface-2); border-radius: var(--radius-sm); padding: 3px; gap: 2px; max-width: 100%; overflow-x: auto; }
.seg button {
  font: inherit; font-weight: 600; font-size: 12.5px; border: 0; background: transparent; color: var(--muted);
  padding: 5px 11px; border-radius: 5px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.seg button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.seg .count { font-size: 11px; color: var(--faint); }

/* ---------- Pills & badges ---------- */

.pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 650; white-space: nowrap; background: var(--gray-bg); color: var(--muted);
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.plain::before { display: none; }
.pill.green { background: var(--green-bg); color: var(--green); }
.pill.red { background: var(--red-bg); color: var(--red); }
.pill.amber { background: var(--amber-bg); color: var(--amber); }
.pill.accent { background: var(--accent-weak); color: var(--accent); }
.pill.pulse::before { animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .25; } }

.tag {
  display: inline-block; padding: 1px 7px; border-radius: 5px; background: var(--surface-2);
  color: var(--muted); font-size: 12px; font-weight: 600;
}

/* ---------- Search layout ---------- */

.search-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
.search-form { align-self: start; }
.search-form form { display: flex; flex-direction: column; gap: 14px; padding: 18px; }
.search-form .divider { height: 1px; background: var(--border); margin: 2px -18px; }
.slider-labels { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--faint); }

.results-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.toolbar input[type=search] { width: 220px; }
.toolbar select { width: auto; }

.progress-card { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.bar { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar > div { height: 100%; background: var(--accent); border-radius: 999px; transition: width .4s ease; }
.bar.indeterminate > div { width: 35% !important; animation: slide 1.3s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(290%); } }
.spinner {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border-strong);
  border-top-color: var(--accent); animation: spin .7s linear infinite; flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.name-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; display: flex; flex-direction: column; gap: 10px; position: relative; box-shadow: var(--shadow);
  transition: border-color .12s, transform .12s;
}
.name-card:hover { border-color: var(--border-strong); }
.name-card.fav { border-color: var(--accent); }
.name-card h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; padding-right: 36px; word-break: break-word; }
.name-card .desc { color: var(--muted); font-size: 13px; }
.name-card .star { position: absolute; top: 10px; right: 10px; }

.star-btn { color: var(--faint); }
.star-btn.on { color: #f5a524; }
.star-btn.on:hover { color: #e09412; }

.domains { display: flex; flex-wrap: wrap; gap: 6px; }
.domain-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; background: var(--green-bg); color: var(--green); white-space: nowrap;
}
.domain-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.domain-chip:hover { text-decoration: none; filter: brightness(0.96); }
.domain-chip.buy { padding-right: 3px; }
.domain-chip .buy-tag {
  padding: 1px 7px; border-radius: 999px; background: var(--green); color: var(--green-bg); font-size: 11px; font-weight: 700;
}
.domain-chip.buy:hover .buy-tag { filter: brightness(1.1); }
.domain-chip.none { background: var(--gray-bg); color: var(--faint); }
.domain-chip.none::before { display: none; }

.handles { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 6px; font-size: 12px; }
.handles.loading { opacity: .7; }
.handle-name { color: var(--muted); font-weight: 600; margin-right: 2px; }
.handle-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap; border: 1px solid transparent;
}
.handle-chip:hover { text-decoration: none; filter: brightness(0.96); }
.handle-chip.available { background: var(--green-bg); color: var(--green); }
.handle-chip.available::before { content: "✓"; }
.handle-chip.taken { background: var(--gray-bg); color: var(--faint); text-decoration: line-through; }
.handle-chip.unknown { border-color: var(--border-strong); color: var(--muted); }
.handle-chip.unknown::after { content: "?"; }
.handle-chip.invalid { background: var(--gray-bg); color: var(--faint); opacity: .7; }

.score-badge {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none;
  font-weight: 800; font-size: 19px; background: var(--gray-bg); color: var(--muted); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.score-badge small { display: block; font-size: 9.5px; font-weight: 700; opacity: .75; margin-top: 2px; text-align: center; }
.score-badge.lg { width: 54px; height: 54px; font-size: 22px; border-radius: 13px; }
.score-badge.sm { width: 34px; height: 30px; font-size: 14px; border-radius: 8px; }
.score-badge.high { background: var(--green-bg); color: var(--green); }
.score-badge.mid { background: var(--amber-bg); color: var(--amber); }
.score-badge.low { background: var(--red-bg); color: var(--red); }

.eval { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 2px; }
.eval-summary { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.eval-summary .verdict { font-weight: 700; font-size: 15px; white-space: nowrap; }
.eval-summary .sub { font-size: 12px; color: var(--faint); white-space: nowrap; }
.eval-summary .right { margin-left: auto; }
.table td.note-cell { white-space: normal; min-width: 220px; max-width: 340px; color: var(--muted); font-size: 12.5px; }
.note-cell span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

details.eval-more > summary {
  cursor: pointer; list-style: none; user-select: none; width: fit-content;
  font-size: 12.5px; font-weight: 650; color: var(--accent); display: inline-flex; align-items: center; gap: 5px;
}
details.eval-more > summary::-webkit-details-marker { display: none; }
details.eval-more > summary::before {
  content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); transition: transform .15s; margin-right: 2px;
}
details.eval-more[open] > summary::before { transform: rotate(45deg); }
details.eval-more > summary:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-weak); border-radius: 4px; }
details.eval-more > .eval-details { margin-top: 10px; }

.eval-details { display: flex; flex-direction: column; gap: 12px; }
.score-rows { display: grid; grid-template-columns: 88px 1fr auto; gap: 7px 10px; align-items: center; font-size: 12.5px; }
.score-rows .k { color: var(--muted); }
.score-rows .v { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.score-rows .v small { color: var(--faint); font-weight: 500; margin-left: 1px; }
.mini-bar { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.mini-bar > div { height: 100%; background: var(--accent); border-radius: 99px; }
.mini-bar.high > div { background: var(--green); }
.mini-bar.mid > div { background: var(--amber); }
.mini-bar.low > div { background: var(--red); }
.eval-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.eval-note { font-size: 13px; color: var(--text); }
.similar { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.similar-brand { background: var(--amber-bg); color: var(--amber); padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.eval-meta { font-size: 11.5px; color: var(--faint); }
.link-btn { font: inherit; font-size: 12px; font-weight: 600; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; width: fit-content; white-space: nowrap; }
.link-btn:hover { text-decoration: underline; }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  text-align: left; font-weight: 650; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em;
  padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface);
}
.table td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td { background: var(--surface-2); }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table .details { color: var(--muted); font-size: 12.5px; max-width: 460px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--border); }

/* ---------- Favorites ---------- */

.fav-list { display: flex; flex-direction: column; gap: 14px; }
.fav-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 0; }
.fav-card .fav-main { padding: 18px; display: flex; flex-direction: column; gap: 10px; border-right: 1px solid var(--border); }
.fav-card .fav-domains { padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; }
.fav-card h3 { font-size: 19px; font-weight: 700; }
.fav-card.alert { border-color: var(--red); }
.fav-card .fav-kit { grid-column: 1 / -1; border-top: 1px solid var(--border); padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; }
.kit-thumbs { display: grid; grid-template-columns: 1fr 1.4fr 1fr 1.6fr; gap: 10px; align-items: stretch; }
.kit-thumbs.dim { opacity: .5; }
.kit-thumb { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); padding: 0; overflow: hidden; cursor: pointer; height: 96px; display: flex; align-items: center; justify-content: center; }
.kit-thumb:hover { border-color: var(--border-strong); }
.kit-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.kit-thumb.skeleton { cursor: default; animation: kit-pulse 1.4s ease-in-out infinite; }
@keyframes kit-pulse { 50% { opacity: .45; } }
.kit-dialog .kit-meta { display: flex; flex-direction: column; gap: 8px; }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch { display: flex; align-items: center; gap: 6px; }
.swatch .chip { width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--border); }
.kit-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.kit-asset { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.kit-asset a { display: block; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.kit-asset img { width: 100%; height: 180px; object-fit: contain; display: block; }
.kit-busy { align-items: center; margin-bottom: 14px; }
.back-link { margin: -4px 0 10px -8px; }
.kit-page { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 20px; align-items: start; }
.kit-page.busy .kit-gallery, .kit-page.busy .kit-asset.big { opacity: .55; }
.kit-editor { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; }
.kit-sec { padding: 16px 18px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.kit-sec:first-child { border-top: 0; }
.kit-sec h2 { font-size: 15px; font-weight: 700; }
.grid-2.tight { gap: 10px; }
.color-row { display: flex; align-items: center; gap: 10px; }
.color-row input[type="color"] { width: 40px; height: 32px; padding: 2px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }
.color-row input.hex { width: 96px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.kit-asset.big img { height: auto; max-height: none; }
.purchase-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--border); }
.purchase-row:first-child { border-top: 0; }
.domain-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--border);
}
.domain-row:last-of-type { border-bottom: 0; }
.domain-row .dname { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.domain-row .dmeta { font-size: 12px; color: var(--faint); }
.change-flag { font-size: 12px; font-weight: 650; }
.link-btn.watching { color: var(--green); text-decoration: none; }
.link-btn svg { vertical-align: -1px; }
.watch-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--border);
}
.watch-row .dname { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; }
.watch-row .dmeta { font-size: 12px; color: var(--faint); }
@media (max-width: 600px) { .watch-row { flex-direction: column; align-items: stretch; } }
.change-flag.bad { color: var(--red); }
.change-flag.good { color: var(--green); }
.add-domain { display: flex; gap: 6px; margin-top: 8px; }
.add-domain input { max-width: 260px; }
.save-state { font-size: 12px; color: var(--faint); min-height: 18px; }

/* ---------- Stats / admin ---------- */

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.stat { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.stat .label { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.stat .value { font-size: 28px; font-weight: 750; letter-spacing: -0.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat .sub { color: var(--faint); font-size: 12.5px; }

.admin-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: start; }
.admin-nav { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 2px; }
.admin-nav .section-label { padding: 4px 12px 8px; }
.admin-nav a {
  color: var(--muted); padding: 8px 12px; border-radius: var(--radius-sm); font-weight: 550;
  display: flex; align-items: center; gap: 9px;
}
.admin-nav a:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.admin-nav a.active { background: var(--surface); color: var(--accent); box-shadow: var(--shadow); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 550; }
.feed { display: flex; flex-direction: column; }
.feed-item { display: flex; gap: 10px; padding: 10px 18px; border-bottom: 1px solid var(--border); align-items: baseline; }
.feed-item:last-child { border-bottom: 0; }
.feed-item .when { color: var(--faint); font-size: 12px; white-space: nowrap; margin-left: auto; }

.settings-form { display: flex; flex-direction: column; gap: 18px; }
.settings-group { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; padding: 20px; }
.settings-group + .settings-group { border-top: 1px solid var(--border); }
.settings-group .fields { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.key-row { flex-wrap: nowrap; }
.key-row input { flex: 1; min-width: 0; }

/* ---------- Auth ---------- */

.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card .panel-body { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.auth-card .brand { justify-content: center; font-size: 18px; margin-bottom: 4px; }
.auth-card .brand img { width: 32px; height: 32px; }

/* ---------- Toasts & dialogs ---------- */

#toasts { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 100; }
.toast {
  background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); font-weight: 550; max-width: 380px; animation: toast-in .18s ease-out;
}
.toast.error { background: var(--red); color: #fff; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

dialog {
  border: 1px solid var(--border); border-radius: 12px; padding: 0; width: min(480px, calc(100vw - 32px));
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
}
dialog.wide { width: min(760px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(10, 12, 18, 0.45); }
dialog form, dialog .dialog-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
dialog .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .search-layout { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-nav { position: static; flex-direction: row; overflow-x: auto; }
  .admin-nav .section-label { display: none; }
  .fav-card { grid-template-columns: 1fr; }
  .kit-thumbs { grid-template-columns: 1fr 1fr; }
  .kit-gallery { grid-template-columns: 1fr; }
  .kit-page { grid-template-columns: 1fr; }
  .kit-editor { position: static; max-height: none; }
  .fav-card .fav-main { border-right: 0; border-bottom: 1px solid var(--border); }
  .grid-2 { grid-template-columns: 1fr; }
  .settings-group { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 640px) {
  .topbar-inner { gap: 10px; padding: 0 12px; }
  .brand span { display: none; }
  .nav .lbl { display: none; }
  .nav a { padding: 7px 10px; }
  .page { padding: 16px 12px 48px; }
  .toolbar input[type=search] { width: 100%; }
  .two-col { grid-template-columns: 1fr; }
}

/* Changelog */
.changelog { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.changelog-day { position: relative; padding: 0 0 22px 22px; }
.changelog-day::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); }
.changelog-date { display: block; font-weight: 600; margin-bottom: 6px; }
.changelog-items { margin: 0; padding-left: 18px; color: var(--muted); }
.changelog-items li + li { margin-top: 4px; }

/* ---------- Visitors without an account ---------- */

.user-menu .btn { padding: 7px 14px; }
.card-actions { display: flex; gap: 6px; margin: 2px -6px -6px; }
.card-actions .btn { color: var(--accent); }
.guest-banner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px; border-radius: var(--radius); background: var(--accent-weak); color: var(--accent);
}
.guest-banner strong { color: var(--text); }
.signup-prompt { max-width: 440px; }
.signup-prompt .icon-wrap, .feature .icon-wrap, .why .icon-wrap {
  width: 44px; height: 44px; border-radius: 12px; background: var(--accent-weak); color: var(--accent);
  display: grid; place-items: center; flex: none;
}
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.check-list li { display: flex; align-items: center; gap: 8px; }
.check-list svg { color: var(--green); flex: none; }
.row.center { justify-content: center; }

/* Landing page */
.landing { display: block; }
.l-inner { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.l-inner.narrow { max-width: 820px; display: flex; flex-direction: column; gap: 22px; }
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, var(--accent-weak), transparent 70%),
    radial-gradient(700px 380px at -10% 110%, var(--accent-weak), transparent 70%);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: 1140px; margin: 0 auto; padding: 72px 24px 80px;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center;
}
.eyebrow { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.hero h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 800; }
.lead { font-size: 17px; color: var(--muted); max-width: 560px; }
.hero-search {
  display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: var(--shadow-lg);
  color: var(--faint);
}
.hero-search:focus-within { border-color: var(--accent); }
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 16px; padding: 10px 0; box-shadow: none; outline: none; }
.hero-search input:focus { box-shadow: none; }
.hero-examples { gap: 6px; }
.example-chip {
  font: inherit; font-size: 12.5px; cursor: pointer; padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
}
.example-chip:hover { border-color: var(--accent); color: var(--accent); }
.hero-preview {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 14px; display: flex; flex-direction: column; gap: 10px; transform: rotate(-1deg);
}
.preview-head { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 9px; background: var(--surface-2); }
.preview-row {
  display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 12px;
}
.preview-row > :first-child { flex: 1; min-width: 0; }
.preview-row strong { font-size: 16px; }
.preview-star { color: #f5a524; display: grid; }
.preview-kit { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--accent-weak); }
.kit-logo {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none;
  background: var(--accent); color: var(--accent-contrast); font-weight: 800; font-size: 20px;
}
.l-section { padding: 72px 0; }
.l-section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.l-head { text-align: center; max-width: 680px; margin: 0 auto 36px; display: flex; flex-direction: column; gap: 8px; }
.l-head h2 { font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.02em; font-weight: 750; }
.l-head p { font-size: 15.5px; }
.l-inner.narrow .l-head { margin-bottom: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px;
  display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow);
}
.feature h3 { font-size: 16.5px; margin-top: 4px; }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.why { display: flex; flex-direction: column; gap: 10px; }
.why h3 { font-size: 16.5px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps h3 { margin-bottom: 4px; }
.step-num {
  width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-contrast); font-weight: 800;
}
.table.plans td:not(:first-child), .table.plans th:not(:first-child) { text-align: center; width: 26%; }
.table.plans td:first-child { font-weight: 550; }
.plans .yes { color: var(--green); display: inline-grid; }
.plans .no { color: var(--faint); display: inline-grid; }
.l-cta { background: var(--accent); color: var(--accent-contrast); padding: 64px 0; text-align: center; }
.l-cta .l-inner { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.l-cta h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.02em; font-weight: 800; }
.l-cta p { opacity: .85; font-size: 16px; margin-bottom: 10px; }
.l-cta .btn { background: var(--accent-contrast); color: var(--accent); border-color: var(--accent-contrast); }
.l-cta .btn.ghost-light { background: transparent; color: var(--accent-contrast); }
.l-cta .btn:hover { text-decoration: none; filter: brightness(0.95); }
.l-footer { padding: 26px 0 36px; }
.l-footer a { color: var(--muted); }

@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; padding: 48px 20px 56px; gap: 36px; }
  .hero-preview { transform: none; max-width: 520px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .why-grid, .steps { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 640px) {
  .user-menu .btn { padding: 6px 10px; }
  .l-inner { padding: 0 16px; }
  .l-section { padding: 48px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero-search { flex-wrap: wrap; padding: 8px; }
  .hero-search > svg { display: none; }
  .hero-search input { padding: 8px; }
  .hero-search .btn { width: 100%; }
  .table.plans th, .table.plans td { padding-left: 8px; padding-right: 8px; }
  .table.plans th { white-space: normal; font-size: 11px; }
  .table.plans td:first-child { width: 52%; }
  .table.plans td:not(:first-child), .table.plans th:not(:first-child) { width: 24%; }
}

/* ---------- Pro plan and collections ---------- */

.pro-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.pro-features li { display: flex; gap: 12px; align-items: flex-start; }
.pro-features .icon-wrap {
  flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-weak); color: var(--accent);
  display: grid; place-items: center;
}
.collection-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.collection-tile { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; color: inherit; text-decoration: none; }
.collection-tile:hover { border-color: var(--border-strong); }
.fav-card .collection-item-head { grid-column: 1 / -1; padding: 8px 18px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
@media (max-width: 700px) {
  .pro-features { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Launch bundle (website + email on the customer's domain) ---------- */

.launch-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-bottom: 16px; flex-wrap: wrap; }
.launch-card .icon-wrap {
  width: 40px; height: 40px; border-radius: 12px; background: var(--accent-weak); color: var(--accent);
  display: grid; place-items: center; flex: none;
}
.launch-card .grow { min-width: 220px; }
.launch-list { list-style: none; padding: 0; margin: 4px 0 16px; display: flex; flex-direction: column; gap: 8px; }
.launch-list li { display: flex; gap: 8px; align-items: flex-start; }
.launch-list svg { color: var(--green); flex: none; margin-top: 3px; }
.launch-domain {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.launch-domain:has(input:checked) { border-color: var(--accent); background: var(--accent-weak); }
.launch-domain.disabled { opacity: .55; cursor: default; }
.mailbox-row { display: grid; grid-template-columns: minmax(0, 1.1fr) auto minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.mailbox-addr { flex-wrap: nowrap; gap: 4px; }
.mailbox-addr input { min-width: 70px; flex: 1; }
.record-value { width: 100%; min-width: 140px; }
@media (max-width: 640px) {
  .mailbox-row { grid-template-columns: 1fr auto; }
  .mailbox-row > .faint { display: none; }
}

/* Shared shortlists and voting */
.share-link { display: flex; gap: 8px; }
.share-link input { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.share-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; max-height: 260px; overflow-y: auto; }
.share-pick {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer; min-width: 0;
}
.share-pick span:first-of-type { font-weight: 600; }
.share-pick .small { margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shortlist-row { display: flex; align-items: center; gap: 10px; color: inherit; }
.shortlist-row:hover { text-decoration: none; border-color: var(--border-strong); }
.shortlist-cols { align-items: start; gap: 14px; }
.stars { display: inline-flex; gap: 1px; color: var(--border-strong); }
.stars .on { color: #f5a524; }
.star-input { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.star-input button { background: none; border: 0; padding: 3px; cursor: pointer; color: var(--border-strong); line-height: 0; border-radius: 6px; }
.star-input button.on { color: #f5a524; }
.star-input button:focus-visible { box-shadow: 0 0 0 3px var(--accent-weak); outline: none; }
.star-label { min-width: 74px; margin-left: 6px; }
.vote-card { display: flex; align-items: center; gap: 16px; }
.vote-head h1 { margin-top: 4px; }
.vote-thanks h2 { display: flex; align-items: center; gap: 6px; color: var(--green); }
.vote-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.vote-result { display: flex; gap: 12px; align-items: flex-start; }
.vote-result .rank {
  flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); color: var(--muted); font-weight: 700; font-size: 12.5px;
}
.vote-result.top .rank { background: #f5a524; color: #fff; }
.dist { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; font-size: 11px; }
.dist-col { display: flex; flex-direction: column; gap: 3px; }
.domain-chip.taken { background: var(--red-bg); color: var(--red); }
.domain-chip.unknown { background: var(--gray-bg); color: var(--muted); }
.center-text { text-align: center; }
.feed-item.comment { align-items: flex-start; }
@media (max-width: 720px) {
  .vote-card { flex-direction: column; align-items: flex-start; }
  .shortlist-cols { grid-template-columns: 1fr; }
  .share-link { flex-direction: column; }
}
/* Trademark check */
.row.tight { gap: 6px; }
.tm { display: flex; flex-direction: column; gap: 6px; }
.tm.compact { flex-direction: row; align-items: center; gap: 6px; flex-wrap: wrap; }
.tm .tm-check { color: var(--accent); width: fit-content; margin-left: -6px; }
.tm summary .row { display: inline-flex; vertical-align: middle; }
.tm summary .tm-count { font-size: 12px; }
.tm-matches { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tm-matches li { display: flex; flex-direction: column; gap: 2px; }
.tm-mark { font-weight: 600; }
