/*
 * Namestorm design system
 *
 * Hierarchy:  page title (24) > panel title (15) > body (14) > meta (12.5).
 *             Primary text #1b1d22, secondary #5b616e, tertiary #8a909b.
 * Grouping:   related content lives in one panel (common region); panels sit on a
 *             grey page so regions read at a glance. Inside panels, spacing groups
 *             (8px within a group, 16px between groups, 24px between sections).
 * Colour:     neutral UI, one accent (blue) for actions and selection, and three
 *             status colours used only for meaning: green = available/ok,
 *             amber = attention/not yet, red = taken/conflict.
 * No shadows, no gradients, no emoji, no dark mode.
 */
:root {
  --page: #f3f4f6;
  --panel: #ffffff;
  --sunken: #f8f9fa;
  --line: #e2e4e9;
  --line-strong: #c8ccd4;

  --text: #1b1d22;
  --text-2: #5b616e;
  --text-3: #8a909b;

  --accent: #1f5fcc;
  --accent-hover: #1a52b0;
  --accent-weak: #e9f0fc;

  --ok: #157a3c;    --ok-bg: #e5f4ea;
  --warn: #9a5800;  --warn-bg: #fcf0d9;
  --bad: #bb2a2a;   --bad-bg: #fbe8e8;
  --neutral-bg: #eef0f3;

  --star: #e0a100;
  --star-off: #d5d8de;

  --r-panel: 8px;
  --r-control: 6px;
  --r-label: 4px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 24px; font-weight: 650; line-height: 1.25; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 15px; font-weight: 600; margin: 0 0 12px; }
h3 { font-size: 13px; font-weight: 600; color: var(--text-2); margin: 20px 0 8px; }
p { margin: 0 0 12px; }
code, .mono, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
pre { white-space: pre-wrap; word-break: break-word; margin: 8px 0; padding: 12px; background: var(--sunken); border: 1px solid var(--line); border-radius: var(--r-control); }
ol, ul { margin: 0 0 12px; padding-left: 20px; }

/* ================= App shell ================= */
.topbar { background: #1b1d22; color: #fff; }
.topbar-inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; height: 52px; display: flex; align-items: center; gap: 28px; }
.brand { color: #fff; font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 22px; height: 22px; border-radius: 5px; background: #fff; color: #1b1d22; display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.topbar nav { display: flex; gap: 2px; flex: 1; height: 100%; }
.topbar nav a { color: #b9bec8; padding: 0 12px; display: flex; align-items: center; font-weight: 500; border-bottom: 2px solid transparent; border-top: 2px solid transparent; }
.topbar nav a:hover { color: #fff; text-decoration: none; }
.topbar nav a.active { color: #fff; border-bottom-color: #fff; }
.topbar nav .sep { width: 1px; background: #3a3e47; margin: 14px 8px; }
.topbar .btn.primary { padding: 6px 12px; }
.me { display: flex; align-items: center; gap: 14px; color: #b9bec8; font-size: 13px; }
.me a, .me .linklike { color: #b9bec8; }
.me a:hover, .me .linklike:hover { color: #fff; }
.banner { background: var(--warn-bg); color: var(--warn); }
.banner > div { max-width: 1240px; margin: 0 auto; padding: 8px 24px; font-weight: 500; }

.container { max-width: 1240px; margin: 0 auto; padding: 28px 24px 48px; }
.container.narrow { max-width: 460px; }
.foot { max-width: 1240px; margin: 0 auto; padding: 0 24px 32px; color: var(--text-3); font-size: 12px; }

/* Page header: title on the left, page actions on the right. */
.pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.pagehead .sub { color: var(--text-2); margin-top: 4px; }
.pagehead .actions { display: flex; gap: 8px; }
h1 .count { color: var(--text-3); font-weight: 500; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.grid2.tight { gap: 0 12px; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
@media (max-width: 920px) {
  .grid2, .grid-main { grid-template-columns: 1fr; }
  .topbar-inner { height: auto; flex-wrap: wrap; padding: 10px 16px; gap: 10px 20px; }
  .topbar nav { flex-wrap: wrap; order: 3; flex-basis: 100%; }
  .topbar nav a { padding: 6px 10px 6px 0; }
  .container { padding: 20px 16px 40px; }
}

/* ================= Panels ================= */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 16px 20px; margin-bottom: 16px; }
.card > h2:first-child, .card > .section-head {
  margin: -16px -20px 16px; padding: 12px 20px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px;
}
.section-head h2 { margin: 0; }
.panel-meta { font-size: 12.5px; font-weight: 400; color: var(--text-3); }
.card > .table-wrap { margin: 0 -20px; }
.card > .table-wrap:last-child { margin-bottom: -16px; }
.card > .table-wrap:last-child tbody tr:last-child td { border-bottom: 0; }
.card-foot { margin: 16px -20px -16px; padding: 12px 20px; border-top: 1px solid var(--line); background: var(--sunken); border-radius: 0 0 var(--r-panel) var(--r-panel); }
.card.auth { margin-top: 12vh; padding: 28px; }
.card.auth h1 { margin-bottom: 20px; font-size: 22px; }
.card.info { background: var(--accent-weak); border-color: #cddcf5; color: #24406e; }
.empty { text-align: center; color: var(--text-2); padding: 32px 16px; }
.empty strong { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }
.center { text-align: center; }
.pad { margin-top: 12px; }

/* ================= Forms ================= */
label { display: block; margin-bottom: 14px; font-weight: 500; font-size: 13px; color: var(--text); }
label small, label .muted { font-weight: 400; color: var(--text-3); }
label.check { display: flex; gap: 8px; align-items: center; font-weight: 400; font-size: 14px; }
input, select, textarea, button { font: inherit; color: inherit; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 7px 10px; min-height: 36px;
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-control); font-weight: 400; font-size: 14px;
}
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-weak); }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input:disabled, select:disabled, textarea:disabled { background: var(--sunken); color: var(--text-2); border-color: var(--line); }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
textarea { resize: vertical; line-height: 1.45; }
fieldset { border: 0; padding: 0; margin: 0 0 14px; }
legend { font-weight: 500; font-size: 13px; padding: 0; margin-bottom: 8px; }
form.inline { display: inline; }
form.spaced { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.form-actions { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.help { color: var(--text-3); font-size: 12.5px; margin: -8px 0 14px; }
.w-num { width: 6rem !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 6px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--r-control); background: #fff; color: var(--text);
  font-weight: 500; cursor: pointer; white-space: nowrap; line-height: 1.2;
}
.btn:hover { background: var(--sunken); border-color: #b4b9c3; text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { background: var(--bad-bg); border-color: #e8b4b4; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--neutral-bg); color: var(--text); }
.btn.small { min-height: 28px; padding: 3px 10px; font-size: 13px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.linklike { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font-size: inherit; }
.linklike:hover { text-decoration: underline; }

.flash { white-space: pre-line; padding: 10px 14px; margin-bottom: 16px; border-radius: var(--r-control); font-weight: 500; border: 1px solid; }
.flash.success { background: var(--ok-bg); color: var(--ok); border-color: #bfe3cb; }
.flash.error { background: var(--bad-bg); color: var(--bad); border-color: #f0c2c2; }

/* ================= Text helpers ================= */
.muted { color: var(--text-3); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.ok-text { color: var(--ok); }
.warn-text { color: var(--warn); }
.bad-text { color: var(--bad); }
.dim { color: var(--text-3); }

/* ================= Status labels ================= */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: var(--r-label);
  font-size: 12.5px; font-weight: 500; line-height: 1.5; white-space: nowrap;
  background: var(--neutral-bg); color: var(--text-2);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge.ok, .badge.av-available, .badge.st-registered { background: var(--ok-bg); color: var(--ok); }
.badge.warn, .badge.av-not_launched, .badge.av-error, .badge.st-approved { background: var(--warn-bg); color: var(--warn); }
.badge.bad, .badge.av-taken, .badge.st-rejected { background: var(--bad-bg); color: var(--bad); }
.badge.st-shortlisted { background: var(--accent-weak); color: var(--accent); }
.badge.muted, .badge.av-unknown, .badge.st-new { background: var(--neutral-bg); color: var(--text-2); }

.tag { display: inline-block; font-size: 12px; color: var(--text-2); background: var(--neutral-bg); border-radius: var(--r-label); padding: 0 6px; margin: 0 4px 0 0; line-height: 20px; }
.tag:hover { text-decoration: none; background: #e3e6eb; color: var(--text); }
.tags { margin-top: 4px; }

/* ================= Tables ================= */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
table.list th, table.list td { padding: 12px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.list th { font-size: 12.5px; font-weight: 500; color: var(--text-3); background: var(--sunken); padding-top: 9px; padding-bottom: 9px; white-space: nowrap; }
table.list th:first-child, table.list td:first-child { padding-left: 20px; }
table.list th:last-child, table.list td:last-child { padding-right: 20px; }
table.list tbody tr:hover td { background: #fafbfc; }
table.list td.right, table.list th.right { text-align: right; }
table.tlds td { vertical-align: middle; }
table.tlds input:not([type=checkbox]) { margin: 0; padding: 4px 8px; min-height: 30px; min-width: 8.5rem; font-size: 13px; }
table.kv th { text-align: left; padding: 6px 16px 6px 0; font-weight: 500; color: var(--text-2); white-space: nowrap; vertical-align: top; }
table.kv td { padding: 6px 0; word-break: break-word; }
table.kv tr + tr th, table.kv tr + tr td { border-top: 1px solid var(--line); }

.idea-name { font-weight: 600; font-size: 15px; color: var(--text); }
.idea-name:hover { color: var(--accent); text-decoration: none; }
.rank { color: var(--text-3); width: 36px; font-weight: 500; }
.rank-1, .rank-2, .rank-3 { color: var(--text); font-weight: 700; }
.sub-line { color: var(--text-3); font-size: 12.5px; margin-top: 2px; }
.counts { display: flex; flex-wrap: wrap; gap: 4px; }

/* ================= Rating ================= */
.rating { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.rating b { font-size: 15px; font-weight: 650; }
.stars { color: var(--star); letter-spacing: 1px; font-size: 13px; }
.stars .off, .star-off { color: var(--star-off); }
.rate { display: inline-flex; white-space: nowrap; }
.rate .star { background: none; border: 0; padding: 0 1px; font-size: 18px; line-height: 1; cursor: pointer; color: var(--star-off); }
.rate.big .star { font-size: 30px; padding: 0 2px; }
.rate .star.on { color: var(--star); }
.rate:hover .star:not(:disabled) { color: var(--star); }
.rate .star:hover ~ .star:not(:disabled) { color: var(--star-off); }
.rate .star:disabled { cursor: default; }

/* ================= Idea page ================= */
.crumbs { font-size: 13px; color: var(--text-3); margin-bottom: 8px; }
.crumbs a { color: var(--text-2); }
.idea-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.idea-title { font-size: 30px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.idea-title code { font-size: 13px; color: var(--text-3); font-weight: 400; }
.idea-meta { display: flex; gap: 8px 16px; align-items: center; flex-wrap: wrap; margin-top: 8px; color: var(--text-2); font-size: 13px; }
.score-box { display: flex; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 12px 18px; }
.score-box .num { font-size: 30px; font-weight: 700; line-height: 1; }
.score-box .stars { font-size: 15px; }
.score-box .detail { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.notes { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 14px 20px; margin-bottom: 16px; color: var(--text-2); max-width: 80ch; }

table.domains td { padding-top: 14px; padding-bottom: 14px; }
.domain { font-size: 15px; font-weight: 600; }
.domain .sld { color: var(--text); }
.domain .tld { color: var(--text-2); font-weight: 500; }
tr.is-available td { background: #f6fbf8; }
tr.is-available:hover td { background: #eef8f1 !important; }
tr.is-taken .domain .sld, tr.is-taken .domain .tld { color: var(--text-3); font-weight: 500; }
.avail-detail { color: var(--text-3); font-size: 12px; margin-top: 4px; max-width: 34ch; }
.launch { font-size: 12.5px; color: var(--text-2); line-height: 1.6; }
.launch b { color: var(--text); font-weight: 600; }
.want { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 3px 10px; border: 1px solid var(--line-strong); border-radius: var(--r-control); background: #fff; color: var(--text-2); font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.want:hover { border-color: var(--accent); color: var(--accent); }
.want.on { background: var(--accent-weak); border-color: #b9cdf0; color: var(--accent); }
.want .n { font-weight: 700; }
.want:disabled { cursor: default; }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; align-items: center; }
details.menu { position: relative; display: inline-block; }
details.menu summary { list-style: none; }
details.menu summary::-webkit-details-marker { display: none; }
.menu-body { position: absolute; right: 0; top: calc(100% + 6px); width: 320px; z-index: 5; text-align: left; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-panel); padding: 16px; }
.menu-body h4 { margin: 0 0 12px; font-size: 13px; }
.menu-body form + form { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.add-tlds { display: flex; gap: 8px; align-items: center; }
.add-tlds input { margin: 0 !important; max-width: 300px; }
.add-tlds .help { margin: 0 0 0 auto; }

.tm-row { display: grid; grid-template-columns: minmax(170px, 1.2fr) 150px minmax(0, 2fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tm-row:last-child { border-bottom: 0; }
.tm-row input, .tm-row select { margin: 0 !important; min-height: 32px; padding: 4px 8px; font-size: 13px; }
.tm-office a { font-weight: 500; }
.tm-office .by { color: var(--text-3); font-size: 12px; }
@media (max-width: 760px) { .tm-row { grid-template-columns: 1fr; } }
details.howto { margin-bottom: 8px; color: var(--text-2); font-size: 13px; }
details.howto summary { cursor: pointer; color: var(--accent); font-weight: 500; }
details.howto p { margin: 8px 0 4px; }
.link-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; }
.link-row .label { color: var(--text-3); margin-right: 4px; }
.link-row a { padding: 3px 9px; border: 1px solid var(--line); border-radius: var(--r-control); background: #fff; color: var(--text-2); }
.link-row a:hover { border-color: var(--line-strong); color: var(--text); text-decoration: none; }

.comment { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment:first-child { padding-top: 0; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--neutral-bg); color: var(--text-2); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.comment-head { display: flex; gap: 8px; align-items: baseline; margin-bottom: 2px; }
.comment-head strong { font-weight: 600; }
.comment-form { margin-top: 16px; }
.comment-form textarea { margin-top: 0; }
.comment-form .btn { margin-top: 8px; }

ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain > li { padding: 8px 0; border-bottom: 1px solid var(--line); }
ul.plain > li:first-child { padding-top: 0; }
ul.plain > li:last-child { border-bottom: 0; padding-bottom: 0; }
.votes li { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.votes .who { font-weight: 500; }
.votes .price { color: var(--text-3); font-size: 12px; margin-left: 6px; }
.vote-price { display: flex; gap: 8px; align-items: flex-end; margin-top: 14px; }
.vote-price label { margin: 0; flex: 1; }

.check-item { display: grid; grid-template-columns: 20px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.check-item:first-child { padding-top: 0; }
.check-item .mark { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; margin-top: 1px; }
.check-item.lvl-warn .mark { background: #d48a00; }
.check-item.lvl-bad .mark { background: var(--bad); }
.check-item strong { display: block; font-weight: 600; }
.check-item span { color: var(--text-2); font-size: 13px; }
.passed { padding-top: 12px; font-size: 13px; color: var(--text-2); }
.passed b { color: var(--ok); font-weight: 600; }

details.panel-toggle > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 15px; }
details.panel-toggle > summary::-webkit-details-marker { display: none; }
details.panel-toggle > summary::after { content: "+"; color: var(--text-3); font-weight: 400; font-size: 18px; }
details.panel-toggle[open] > summary::after { content: "−"; }
details.panel-toggle[open] > summary { margin-bottom: 16px; }

.history li { font-size: 12.5px; color: var(--text-2); }
.history .when { color: var(--text-3); display: block; }

/* ================= Dashboard ================= */
.todo { display: flex; flex-direction: column; }
.todo-item { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.todo-item:first-child { padding-top: 0; }
.todo-item:last-child { border-bottom: 0; padding-bottom: 0; }
.todo-item .num { min-width: 40px; height: 40px; border-radius: var(--r-control); display: grid; place-items: center; font-weight: 700; font-size: 16px; background: var(--neutral-bg); }
.todo-item.accent .num { background: var(--accent-weak); color: var(--accent); }
.todo-item.ok .num { background: var(--ok-bg); color: var(--ok); }
.todo-item.warn .num { background: var(--warn-bg); color: var(--warn); }
.todo-item .what { flex: 1; }
.todo-item .what strong { display: block; font-weight: 600; }
.todo-item .what span { color: var(--text-2); font-size: 13px; }
.domain-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.domain-list a { font-weight: 600; font-size: 13px; background: var(--ok-bg); color: var(--ok); padding: 2px 8px; border-radius: var(--r-label); }
.caught-up { color: var(--text-2); }
.totals { display: flex; gap: 24px; flex-wrap: wrap; color: var(--text-2); font-size: 13px; }
.totals b { color: var(--text); font-size: 15px; margin-right: 4px; }

.launch-item { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.launch-item .tld { font-weight: 700; font-size: 15px; }
.launch-item .when { text-align: right; font-size: 12.5px; color: var(--text-2); }
.launch-item .days { display: block; font-weight: 600; color: var(--text); font-size: 13px; }
.launch-item .days.soon { color: var(--warn); }

.feed li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; font-size: 13px; }
.feed .avatar { width: 28px; height: 28px; font-size: 12px; }
.feed .when { color: var(--text-3); font-size: 12px; display: block; }
.feed .detail { color: var(--text-2); }

/* ================= Lists & filters ================= */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.toolbar input, .toolbar select { width: auto !important; margin: 0 !important; min-height: 34px; padding-top: 5px; padding-bottom: 5px; font-size: 13px; }
.toolbar input[type=search] { flex: 1; min-width: 200px; }
.toolbar label.check { margin: 0 4px; font-size: 13px; }
.segmented { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r-control); overflow: hidden; }
.segmented a { padding: 6px 12px; color: var(--text-2); font-weight: 500; font-size: 13px; border-right: 1px solid var(--line-strong); background: #fff; }
.segmented a:last-child { border-right: 0; }
.segmented a:hover { text-decoration: none; background: var(--sunken); }
.segmented a.on { background: var(--text); color: #fff; }

.tld-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-flex; gap: 6px; align-items: center; margin: 0; padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: var(--r-control); font-weight: 500; cursor: pointer; background: #fff; }
.pill:has(input:checked) { border-color: var(--accent); background: var(--accent-weak); color: var(--accent); }
.pill.dim { color: var(--text-2); }
.copy-row { display: flex; gap: 8px; margin: 8px 0; }
.copy-row input { margin: 0 !important; font-family: ui-monospace, monospace; font-size: 12.5px; }
.pager { display: flex; gap: 8px; justify-content: center; }
.pending { padding: 14px 16px; border: 1px solid #cddcf5; background: var(--accent-weak); border-radius: var(--r-control); margin-bottom: 12px; }
.pending h3 { margin-top: 0; color: var(--text); font-size: 15px; }
.changelog, .log { max-height: 240px; overflow: auto; }
.install h1 { margin: 40px 0 20px; }
.req-ok { color: var(--ok); font-weight: 600; }
.help.after { margin: 8px 0 16px; }

/* Idea page: domain title, availability block */
.idea-title .sld { color: var(--text); }
.idea-title .tld-part { color: var(--text-3); font-weight: 500; }
.avail-block { display: flex; flex-direction: column; gap: 8px; }
.avail-main { display: flex; align-items: center; gap: 12px; }
.avail-main .badge { font-size: 14px; padding: 4px 12px; }
.avail-block .avail-detail { margin: 0; max-width: none; font-size: 13px; color: var(--text-2); }
.avail-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px 24px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.avail-facts div { font-weight: 500; }
.avail-facts span { display: block; font-size: 12px; color: var(--text-3); font-weight: 400; margin-bottom: 2px; }
.avail-facts em { font-style: normal; color: var(--warn); font-size: 12.5px; }
details.inline-toggle > summary { cursor: pointer; color: var(--accent); font-weight: 500; font-size: 13px; list-style: none; }
details.inline-toggle > summary::-webkit-details-marker { display: none; }
details.inline-toggle[open] > summary { margin-bottom: 14px; }
.reg-form .btn { margin-top: 2px; }
.tm-status.tm-clear { color: var(--ok); border-color: #9fd3b1; background: var(--ok-bg); }
.tm-status.tm-similar { color: var(--warn); border-color: #ecc98a; background: var(--warn-bg); }
.tm-status.tm-conflict { color: var(--bad); border-color: #eaa9a9; background: var(--bad-bg); }
label.budget { margin: 16px 0 12px; }

/* Tables directly under a panel header or at the top of a panel sit flush. */
.card > .section-head + .table-wrap, .card > h2:first-child + .table-wrap { margin-top: -16px; }
.card > .table-wrap:first-child { margin-top: -16px; }
.card > .table-wrap:first-child thead th:first-child { border-top-left-radius: var(--r-panel); }
.card > .table-wrap:first-child thead th:last-child { border-top-right-radius: var(--r-panel); }
.section-head + .passed, h2 + .passed { padding-top: 0; }
.notes { max-width: none; }

/* Trademarks */
.head-actions { display: flex; align-items: center; gap: 12px; }
.tm-verdict { display: flex; gap: 14px; align-items: flex-start; }
.tm-verdict .badge { font-size: 14px; padding: 4px 12px; flex-shrink: 0; }
.tm-verdict p { margin: 2px 0 0; color: var(--text-2); }
.card > .tm-hits, .tm-hits { margin: 16px -20px 0; border-top: 1px solid var(--line); }
.tm-hits table.list td { vertical-align: top; }
.tm-hits tr.dimmed td { opacity: .55; }
.mark-name { font-weight: 600; color: var(--text); }
a.mark-name:hover { color: var(--accent); }
details.more { margin-top: 12px; }
details.more > summary { cursor: pointer; color: var(--accent); font-weight: 500; font-size: 13px; }
details.more .tm-hits { margin: 8px -20px 0; }
.tm-more { margin-top: 4px; }
details.manual { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
details.manual .tm-list { margin-top: 4px; }

/* Dashboard intro */
.intro { padding: 24px 28px; border-color: #cddcf5; background: #fff; }
.intro h1 { font-size: 22px; margin-bottom: 8px; }
.intro p { color: var(--text-2); max-width: 72ch; font-size: 15px; margin-bottom: 16px; }
.intro .btn { margin-right: 6px; }
.todo-item.bad .num { background: var(--bad-bg); color: var(--bad); }
