@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/Geist-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/Geist-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/Geist-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/GeistMono-Regular.woff2") format("woff2");
}
:root {
  color-scheme: dark;
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
  --bg: #171717;
  --surface: #292a2d;
  --surface-2: #1f2023;
  --surface-3: #3d4043;
  --text: #e3e6eb;
  --muted: #99a3af;
  --faint: rgba(153, 163, 175, 0.72);
  --hairline: #41414d;
  --soft: rgba(255, 255, 255, 0.04);
  --accent: #a8c7fa;
  --accent-hover: #bdd6ff;
  --accent-ink: #171717;
  --err: #ff8a8a;
  --ok: #7ee2a8;
  --warn: #e4b84f;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
  --shadow-sm: none;
  --content-width: 970px;
  --data-width: 1200px;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f5f5f7;
    --surface: #ffffff;
    --surface-2: #f3f3f6;
    --surface-3: #e5e5ea;
    --text: #1d1d1f;
    --muted: #6e6e73;
    --faint: #8e8e93;
    --hairline: #e6e6e6;
    --soft: rgba(0, 0, 0, 0.025);
    --accent: #204de1;
    --accent-hover: #1a3fbf;
    --accent-ink: #ffffff;
    --err: #ee4037;
    --ok: #147a3d;
    --warn: #946200;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.06);
  }
}
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--font-sans);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 36px 24px 72px;
}

.wide-main {
  max-width: var(--data-width);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 6px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
}

h2 {
  margin-bottom: 6px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
}

h3 {
  margin-bottom: 4px;
  font-size: 15px;
  letter-spacing: 0;
}

h2.group,
.group {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

p {
  margin-bottom: 12px;
}

p.sub,
.meta-line,
.muted-line,
.plain-value {
  color: var(--muted);
}

p.sub {
  margin: 0 0 24px;
}

.plain-value {
  margin-bottom: 0;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 120ms var(--ease), text-decoration-thickness 120ms var(--ease);
}

a:hover {
  text-decoration-thickness: 2px;
}

code,
kbd,
.mono,
pre,
dd,
.summary-table td {
  font-family: var(--font-mono);
}

code {
  border-radius: var(--radius-sm);
  background: var(--soft);
  font-size: 0.88em;
  padding: 1px 6px;
}

pre {
  overflow-x: auto;
  margin: 0;
  border-radius: var(--radius-md);
  background: var(--soft);
  font-size: 12px;
  padding: 14px 16px;
  white-space: pre-wrap;
  word-break: break-word;
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 28px;
}

.brand-link > svg {
  flex-shrink: 0;
  color: var(--text);
}

.brand-text {
  flex: 1;
  min-width: 0;
}

.brand-text h1 {
  margin: 0 0 4px;
}

.brand-text .sub {
  margin: 0;
}

.brand-link {
  color: inherit;
  text-decoration: none;
  transition: opacity 120ms var(--ease);
}

.brand-link:hover {
  opacity: 0.72;
  text-decoration: none;
}

body.home-empty main {
  padding-top: 9vh;
}

body.home-empty .brand {
  flex-direction: column;
  gap: 18px;
  margin-bottom: 36px;
  text-align: center;
}

body.home-empty .brand-text h1 {
  font-size: 38px;
  letter-spacing: 0;
}

body.home-empty .brand-text .sub {
  max-width: 500px;
  margin-right: auto;
  margin-left: auto;
  font-size: 16px;
}

form {
  margin: 0;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  outline: none;
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  padding: 8px 10px;
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease), background 120ms var(--ease);
}

input::placeholder,
textarea::placeholder {
  color: var(--faint);
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--faint);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
summary:focus-visible,
a:focus-visible {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm), var(--focus);
  outline: none;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 13px;
  white-space: nowrap;
  transition: filter 120ms var(--ease), transform 80ms var(--ease), box-shadow 150ms var(--ease), background 120ms var(--ease), border-color 120ms var(--ease);
}

button:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  filter: none;
}

button:active {
  transform: scale(0.96);
}

button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.35);
  opacity: 0.55;
}

.link-button {
  min-height: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--accent);
  font: inherit;
  padding: 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.link-button:hover {
  filter: none;
  color: var(--accent-hover);
  text-decoration-thickness: 2px;
}

.search-form {
  position: relative;
  margin: 0 0 16px;
}

.search-form > input[type=text] {
  min-height: 58px;
  border-radius: var(--radius-lg);
  font-size: 18px;
  padding: 16px 68px 16px 20px;
}

.search-form > button[type=submit] {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  transform: translateY(-50%);
}

.search-form > button[type=submit]:active {
  transform: translateY(-50%) scale(0.94);
}

.examples {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 13px;
}

.examples .label {
  color: var(--faint);
}

.example-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.2;
  padding: 6px 10px;
  text-decoration: none;
  transition: background 120ms var(--ease), border-color 120ms var(--ease), color 120ms var(--ease), transform 80ms var(--ease);
}

.example-link:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--hairline));
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--accent);
  text-decoration: none;
}

.example-link:active {
  transform: scale(0.97);
}

.avail-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 12px;
}

.avail-results-bar {
  margin-top: 16px;
}

.avail-status {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  padding-top: 4px;
}

.avail-actions {
  display: flex;
  gap: 8px;
}

.avail-actions button,
.tld-actions button {
  min-height: 32px;
  font-size: 13px;
  padding: 5px 10px;
}

.tld-selector {
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.tld-selector-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
}

.tld-search {
  flex: 1 1 220px;
  min-height: 34px;
  box-shadow: none;
}

.tld-count {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tld-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tld-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  max-height: 330px;
  overflow: auto;
  border-top: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--bg) 60%, var(--surface));
}

.tld-option {
  display: grid;
  grid-template-columns: auto minmax(5ch, 1fr) max-content;
  align-items: center;
  min-width: 0;
  gap: 7px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 9px;
}

.tld-option:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.5;
}

.tld-option input,
.avail-filters .f-chk input {
  width: auto;
  min-height: 0;
  box-shadow: none;
}

.tld-name {
  min-width: 0;
  overflow: hidden;
  font-family: var(--font-mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tld-domains {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.tld-list-empty {
  grid-column: 1/-1;
  color: var(--muted);
  font-size: 13px;
  padding: 18px 12px;
  text-align: center;
}

.avail-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 13px;
}

.avail-filters .f-chk {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  cursor: pointer;
}

.avail-filters input[type=search],
.avail-filters select {
  width: auto;
  min-height: 32px;
  box-shadow: none;
  font-size: 13px;
  padding: 4px 8px;
}

.avail-filters input[type=search] {
  min-width: 140px;
}

.availability-table {
  min-width: 0;
}

.availability-table th:last-child,
.availability-table td:last-child {
  width: 116px;
  white-space: nowrap;
}

.av {
  display: inline-block;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  padding: 1px 8px;
}

.av-available {
  background: color-mix(in srgb, var(--ok) 16%, transparent);
  color: var(--ok);
}

.av-taken {
  background: var(--soft);
  color: var(--muted);
}

.av-unknown {
  background: color-mix(in srgb, var(--warn) 18%, transparent);
  color: var(--warn);
}

.av-checking {
  color: var(--faint);
}

.avail-empty td {
  color: var(--muted);
  padding: 22px 12px;
  text-align: center;
}

.stats-panel {
  max-width: 680px;
  margin: 30px auto 0;
}

.stats-topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 0 2px 10px;
  color: var(--muted);
  font-size: 12px;
}

.stats-topline span {
  color: var(--text);
  font-weight: 600;
}

.stats-topline time {
  color: var(--faint);
  font-family: var(--font-mono);
  text-align: right;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--hairline);
  box-shadow: var(--shadow-sm);
}

.stat-cell {
  display: block;
  min-width: 0;
  min-height: 96px;
  background: var(--surface);
  color: inherit;
  padding: 15px 14px 13px;
  text-decoration: none;
  transition: background 120ms var(--ease), color 120ms var(--ease);
}

.stat-cell:hover {
  background: var(--surface-3);
  color: inherit;
  text-decoration: none;
}

.stat-cell:focus-visible {
  position: relative;
  z-index: 1;
  outline: none;
  box-shadow: inset 0 0 0 2px var(--accent);
}

.stat-value {
  color: var(--text);
  font-size: 23px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 1.1;
}

.stat-label {
  margin-top: 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}

.stat-note {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.tlds-table-wrap {
  margin-top: 18px;
}

.tlds-table {
  min-width: 760px;
}

.tlds-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface);
}

.tlds-table th:first-child,
.tlds-table td:first-child {
  width: 72px;
  white-space: nowrap;
}

.tlds-table th:nth-child(2),
.tlds-table td:nth-child(2) {
  width: 180px;
}

.tlds-table th:nth-child(3),
.tlds-table td:nth-child(3),
.tlds-table th:nth-child(4),
.tlds-table td:nth-child(4) {
  width: 126px;
  text-align: right;
  white-space: nowrap;
}

.tlds-table th:last-child,
.tlds-table td:last-child {
  text-align: right;
}

.tld-rank,
.tld-domain-count,
.tld-share {
  font-variant-numeric: tabular-nums;
}

.tld-rank {
  color: var(--muted);
}

.tld-cell {
  min-width: 0;
}

.tld-link {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  max-width: 100%;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.tld-link:hover {
  color: var(--accent);
  text-decoration: none;
}

.tld-link span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tld-ascii {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tld-dot {
  color: var(--faint);
}

.source-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
}

.source-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: var(--radius-sm);
  background: var(--soft);
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  padding: 4px 7px;
}

.source-badge-empty {
  color: var(--faint);
}

.page-title,
.card-head,
.split-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.page-title {
  margin: 0 0 18px;
}

.page-title p,
.card-head p,
.muted-line,
.meta-line {
  margin: 4px 0 0;
}

.card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  margin: 0 0 16px;
  padding: 18px 20px;
}

.result-card {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.result {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.result .card,
.result .result-card {
  margin: 0;
}

.result-actions {
  margin: -2px 2px 0;
  color: var(--muted);
  font-size: 13px;
}

.result-actions a {
  color: inherit;
}

.card-error,
.error {
  border-color: color-mix(in srgb, var(--err) 25%, var(--hairline));
  background: color-mix(in srgb, var(--err) 8%, var(--surface));
}

.err,
.error {
  color: var(--err);
}

.card-error .err {
  margin: 0;
}

.notice,
.error {
  border: 1px solid;
  border-radius: var(--radius-md);
  font-size: 13px;
  padding: 10px 12px;
}

.notice {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--hairline));
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  color: var(--accent);
}

.error {
  margin: 0 0 16px;
}

dl {
  display: block;
  margin: 0;
  font-size: 14px;
}

.card dl {
  margin: 0 -10px;
}

dl .row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 6px 20px;
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  transition: background 120ms var(--ease);
}

dl .row:hover {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
}

dd small {
  color: var(--faint);
}

.copy-button,
.secondary-button {
  border-color: var(--hairline);
  background: var(--surface);
  color: var(--muted);
}

.copy-button:hover,
.secondary-button:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--hairline));
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--accent);
  filter: none;
}

.empty-state {
  color: var(--muted);
  font-size: 14px;
  padding: 14px 2px;
  text-align: center;
}

.summary-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  margin-top: 12px;
}

.summary-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 12px;
}

.domain-card .summary-table {
  min-width: 0;
}

.data-group-card,
.dns-record-card {
  gap: 10px;
}

.dns-record-table-wrap {
  margin-top: 0;
}

.dns-records th:first-child,
.dns-records td:first-child,
.dns-records th:nth-child(3),
.dns-records td:nth-child(3) {
  width: 76px;
  white-space: nowrap;
}

.dns-records th:nth-child(2),
.dns-records td:nth-child(2) {
  width: 30%;
}

.dns-values {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.dns-values span {
  overflow-wrap: anywhere;
}

.raw-lookup-wrap {
  margin-top: 0;
}

.raw-lookup-table {
  table-layout: auto;
}

.raw-lookup-table th:first-child,
.raw-lookup-table td:first-child {
  width: 34%;
  min-width: 180px;
  color: var(--muted);
  white-space: nowrap;
}

.raw-lookup-table td {
  white-space: pre-wrap;
}

.summary-table th,
.summary-table td {
  border-bottom: 1px solid var(--hairline);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.summary-table th {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.summary-table td {
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.summary-table td small,
.summary-table td strong {
  display: block;
}

.summary-table td small {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 12px;
}

.summary-table tr:last-child td {
  border-bottom: 0;
}

.summary-table tbody tr:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.user-table td:last-child {
  text-align: right;
}

.action-link {
  white-space: nowrap;
}

.qb-app {
  display: grid;
  gap: 14px;
}

.qb-loading,
.qb-note {
  color: var(--muted);
  font-size: 14px;
  padding: 4px 2px;
}

.qb-builder,
.qb-preview {
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.qb-builder > summary,
.qb-preview > summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  padding: 12px 16px;
}

.qb-builder > summary::-webkit-details-marker,
.qb-preview > summary::-webkit-details-marker {
  display: none;
}

.qb-builder > summary::before,
.qb-preview > summary::before {
  content: ">";
  color: var(--faint);
  font-size: 10px;
}

.qb-builder[open] > summary::before,
.qb-preview[open] > summary::before {
  transform: rotate(90deg);
}

.qb-builder > summary:hover,
.qb-preview > summary:hover {
  background: var(--soft);
}

.qb-edit,
.qb-preview > summary {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qb-expr {
  overflow: hidden;
  flex: 1;
  min-width: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qb-hint {
  color: var(--faint);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.qb-builder-body {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--hairline);
  padding: 16px;
}

.qb-sublabel {
  margin: 2px 0 -6px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.qb-line {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.qb-field-block {
  display: grid;
  gap: 6px;
}

.qb-field-block > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qb select,
.qb input[type=text],
.qb input[type=number] {
  width: auto;
  min-height: 36px;
  padding: 7px 10px;
  font-size: 13px;
}

.qb select {
  min-width: 132px;
}

.qb-limit {
  max-width: 92px;
}

.qb-fields-block {
  flex: 1 1 360px;
}

.qb-fields {
  width: 100%;
  min-width: 280px;
}

.qb-sortlist {
  display: grid;
  gap: 8px;
}

.qb-sort-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.qb-filter {
  display: grid;
}

.qb-group {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 62%, var(--bg));
  padding: 10px 12px;
}

.qb-cond {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.qb-conj {
  margin: 7px 0 7px 2px;
  color: var(--faint);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qb-field {
  flex: 1 1 200px;
  min-width: 168px;
}

.qb-op {
  flex: 0 1 120px;
  min-width: 112px;
}

.qb-value {
  flex: 2 1 220px;
  min-width: 160px;
}

.qb-value-static {
  min-height: 36px;
  color: var(--muted);
  font-size: 13px;
  line-height: 36px;
}

.qb-and {
  margin-top: 10px;
}

.qb-or-div {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.qb-or-div::before,
.qb-or-div::after {
  content: "";
  flex: 1;
  height: 1px;
  background: color-mix(in srgb, var(--accent) 28%, var(--hairline));
}

.qb-or {
  justify-self: start;
  margin-top: 10px;
}

.qb-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 2px;
}

.qb-btn {
  min-height: 32px;
  border-color: var(--hairline);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  padding: 5px 11px;
}

.qb-btn:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--hairline));
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  color: var(--accent);
  filter: none;
}

.qb-del {
  padding-right: 10px;
  padding-left: 10px;
}

.qb-del:hover {
  border-color: color-mix(in srgb, var(--err) 35%, var(--hairline));
  background: color-mix(in srgb, var(--err) 10%, var(--surface));
  color: var(--err);
}

.qb-run {
  min-height: 38px;
  padding-right: 18px;
  padding-left: 18px;
}

.qb-status {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.qb-preview pre {
  max-height: 320px;
  overflow: auto;
  border-top: 1px solid var(--hairline);
  border-radius: 0;
}

.qb-results {
  min-height: 40px;
}

.qb-results-meta {
  margin-bottom: 8px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 12px;
}

.qb-error {
  border: 1px solid color-mix(in srgb, var(--err) 25%, var(--hairline));
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--err) 6%, var(--surface));
  color: var(--err);
  font-size: 13px;
  padding: 12px 14px;
  white-space: pre-wrap;
  word-break: break-word;
}

.qb-results-table {
  width: auto;
  min-width: 100%;
}

.qb-results-table th,
.qb-results-table td {
  overflow-wrap: normal;
  white-space: nowrap;
  word-break: normal;
}

.qb-results-table td {
  overflow: hidden;
  max-width: 340px;
  font-size: 11.5px;
  text-overflow: ellipsis;
}

.qb-pager {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.site-footer {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 18px;
  margin-top: 34px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 13px;
  padding-top: 14px;
}

.footer-nav,
.nav-links {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.footer-nav {
  justify-content: flex-end;
}

.nav-links a,
.link-button {
  color: var(--accent);
}

@media (max-width: 680px) {
  main {
    padding: 34px 16px 56px;
  }
  .brand {
    align-items: flex-start;
  }
  body.home-empty main {
    padding-top: 42px;
  }
  body.home-empty .brand-text h1 {
    font-size: 32px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-cell {
    min-height: 0;
  }
  .avail-bar {
    display: grid;
  }
  .avail-filters input[type=search],
  .avail-filters select {
    flex: 1 1 150px;
  }
  .page-title,
  .card-head,
  .split-card {
    display: grid;
    justify-content: stretch;
  }
  .split-card button {
    width: 100%;
  }
  .qb-field,
  .qb-op,
  .qb-value,
  .qb-fields {
    flex-basis: 100%;
    width: 100%;
    min-width: 0;
  }
  .qb-field-block,
  .qb select,
  .qb input[type=text],
  .qb input[type=number] {
    width: 100%;
  }
  .qb-limit {
    max-width: none;
  }
  .qb-status {
    flex-basis: 100%;
    margin-left: 0;
  }
}
@media (max-width: 460px) {
  .search-form > input[type=text] {
    min-height: 54px;
    font-size: 16px;
    padding-right: 62px;
  }
  .search-form > button[type=submit] {
    width: 40px;
    height: 40px;
    min-height: 40px;
  }
  .card {
    padding: 16px;
  }
  dl .row {
    grid-template-columns: 1fr;
  }
  .summary-table {
    min-width: 560px;
  }
  .availability-table {
    min-width: 0;
  }
}
