/* DropHunter Classic — the new front end's look: classic Mac character, modern manners.
   Rules: black lines on white paper; yellow = the main action or what's selected; solid black = chosen or hot.
   Chicago names things (titles, tabs, buttons, scores); the system font is for reading and numbers.
   Everything tappable is at least 44px tall, focus is a 3px blue ring, text contrast is 4.5:1 or better. */

@font-face {
  font-family: "ChicagoFLF";
  src: url("/static/fonts/ChicagoFLF.ttf") format("truetype");
  font-display: swap;
}

:root {
  --ink: #111111;
  --paper: #ffffff;
  --panel: #f4f4f1;
  --desk: #cfd0cc;
  --rule: #d9d9d4;
  --muted: #4d4d4d;
  --faint: #6b6b6b;
  --yellow: #ffd86f;
  --yellow-hover: #ffe39a;
  --yellow-press: #f1c94a;
  --yellow-soft: #fff4cc;
  --row-hover: #fffaf0;
  --link: #1d4ed8;
  --link-dark: #1e3a8a;
  --link-soft: #eef3ff;
  --error: #a1251b;
  --error-soft: #fff1ef;
  --green: #1e7a3c;
  --green-dark: #14532d;
  --green-soft: #dcf5e3;
  --green-bar: #4bb36b;
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-chicago: "ChicagoFLF", "Chicago", -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.dh {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
  background-color: var(--desk);
  background-image: radial-gradient(rgba(17, 17, 17, .10) 1px, transparent 1.2px);
  background-size: 4px 4px;
  -webkit-font-smoothing: antialiased;
}

.dh a { color: var(--link); }
.dh a:hover { color: var(--link-dark); }
.dh :focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
.dh [hidden] { display: none !important; }

.chi { font-family: var(--font-chicago); font-weight: normal; letter-spacing: .01em; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.help { font-size: 13px; line-height: 1.45; color: var(--muted); margin: 0; }
.muted { color: var(--muted); }

.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico.sm { width: 16px; height: 16px; }
.ico.xs { width: 13px; height: 13px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--paper); border: 2px solid var(--ink); border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---- Page frame: rainbow stripe, top bar, folder tabs, sheet ---- */
.rainbow { height: 6px; background: linear-gradient(90deg, #61bb46 0 16.66%, #fdb827 0 33.33%, #f5821f 0 50%, #e03a3e 0 66.66%, #963d97 0 83.33%, #009ddc 0); }

.topbar { background: var(--paper); border-bottom: 2px solid var(--ink); }
.topbar-in { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink) !important; text-decoration: none; font-size: 20px; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 7px; background: var(--yellow); box-shadow: 2px 2px 0 var(--ink); }
.brand-mark .ico { width: 18px; height: 18px; }
.toplinks { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.toplink { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--ink) !important; text-decoration: none; font-weight: 600; font-size: 14px; }
.toplink:hover { background: var(--panel); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.navtabs { display: flex; gap: 6px; padding-top: 22px; overflow-x: auto; scrollbar-width: none; }
.navtabs::-webkit-scrollbar { display: none; }
.navtab { flex: none; position: relative; top: 2px; display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border: 2px solid var(--ink); border-bottom: 0; border-radius: 10px 10px 0 0; background: #e4e4e0; color: var(--ink) !important; text-decoration: none; font-size: 15px; }
.navtab:hover { background: #efefeb; }
.navtab[aria-current="page"] { z-index: 2; background: var(--panel); }

.sheet { position: relative; z-index: 1; margin-bottom: 56px; padding: 32px; background: var(--panel); border: 2px solid var(--ink); border-radius: 0 12px 12px 12px; box-shadow: 5px 5px 0 var(--ink); }

.pagehead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.h1 { margin: 0; font-size: 32px; line-height: 1.15; }
.h2 { margin: 0; font-size: 21px; line-height: 1.2; }
.h3 { margin: 0; font-size: 16px; line-height: 1.3; }
.lede { margin: 8px 0 0; max-width: 660px; color: var(--muted); font-size: 16px; }

/* ---- Buttons ---- */
.btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 8px;
  background: var(--paper); color: var(--ink) !important; font-family: var(--font-chicago); font-size: 15px; line-height: 1;
  text-decoration: none; white-space: nowrap; box-shadow: 2px 2px 0 var(--ink); cursor: pointer;
}
.btn:hover { background: var(--panel); }
.btn:active { transform: translate(2px, 2px); box-shadow: none; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.btn.primary { background: var(--yellow); box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); margin: 3px; }
.btn.primary:hover { background: var(--yellow-hover); }
.btn.primary:active { transform: none; background: var(--yellow-press); }
.btn.big { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 13px; }
.btn.quiet { border-color: transparent; background: transparent; box-shadow: none; color: var(--link) !important; font-family: var(--font-ui); font-weight: 600; font-size: 14px; padding: 0 10px; }
.btn.quiet:hover { background: var(--panel); color: var(--link-dark) !important; }
.btn.quiet:active { transform: none; }
.iconbtn { appearance: none; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper); color: var(--ink) !important; box-shadow: 2px 2px 0 var(--ink); cursor: pointer; text-decoration: none; }
.iconbtn:hover { background: var(--yellow-soft); }
.iconbtn:active { transform: translate(2px, 2px); box-shadow: none; }

/* ---- Windows ---- */
.win { background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; box-shadow: 4px 4px 0 var(--ink); overflow: hidden; }
.titlebar { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; border-bottom: 2px solid var(--ink); background: var(--paper); }
.closebox { flex: none; width: 15px; height: 15px; border: 2px solid var(--ink); background: var(--paper); }
.stripes { flex: 1; min-width: 16px; height: 11px; background: repeating-linear-gradient(to bottom, var(--ink) 0 1px, transparent 1px 2px); }
.wtitle { margin: 0; padding: 0 8px; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; line-height: 1; }

/* ---- Search ---- */
.search-area { padding: 24px 24px 20px; }
.field-label { display: block; margin-bottom: 10px; font-size: 15px; }
.search { display: flex; align-items: center; gap: 18px; }
.field { position: relative; flex: 1; min-width: 0; }
.field > .ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; pointer-events: none; }
.input {
  width: 100%; height: 56px; padding: 0 16px 0 50px; border: 2px solid var(--ink); border-radius: 10px;
  background: var(--paper); color: var(--ink); font-family: inherit; font-size: 20px; font-weight: 600;
  box-shadow: inset 2px 2px 0 rgba(17, 17, 17, .12);
}
.input::placeholder { color: var(--faint); font-weight: 400; }
.input::-webkit-search-cancel-button { cursor: pointer; }
.search-area .help { margin-top: 10px; }
.form-error { margin: 10px 0 0; color: var(--error); font-weight: 600; font-size: 14px; }
.text-input { height: 40px; min-width: 220px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper); color: var(--ink); font-family: inherit; font-size: 15px; font-weight: 600; box-shadow: inset 2px 2px 0 rgba(17, 17, 17, .10); }
.text-input::placeholder { color: var(--faint); font-weight: 400; }

/* Options, folded to a summary line after a search */
.summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 20px; border-top: 1px solid var(--rule); background: var(--panel); }
.tag { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); font-weight: 600; font-size: 13px; }
.opts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr) minmax(0, 1fr); border-top: 2px solid var(--ink); background: var(--paper); }
.opt { min-width: 0; margin: 0; padding: 20px 24px 24px; border: 0; }
.opt + .opt { border-left: 1px solid var(--rule); }
/* A legend normally sits on the fieldset's top edge, outside its padding; floating it puts it inside, like a heading. */
.opt-label { float: left; width: 100%; display: flex; align-items: center; margin: 0 0 14px; padding: 0; font-size: 15px; }
.opt-label + * { clear: both; }
.stepn { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 10px; border: 2px solid var(--ink); border-radius: 50%; background: var(--yellow); font-size: 13px; }
.opt .help { margin-top: 12px; }

.seg { display: inline-flex; flex-wrap: wrap; max-width: 100%; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; background: var(--paper); }
.seg-item {
  appearance: none; position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border: 0; border-left: 2px solid var(--ink); background: var(--paper); color: var(--ink); font-family: inherit; font-size: 14px; font-weight: 600;
  white-space: nowrap; cursor: pointer;
}
.seg-item:first-child { border-left: 0; }
.seg-item:hover { background: var(--yellow-soft); }
.seg-item input { position: absolute; opacity: 0; pointer-events: none; }
.seg-item:has(input:checked), .seg-item[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.seg-item:has(input:focus-visible) { outline: 3px solid var(--link); outline-offset: -6px; }
.seg-n { font-weight: 500; font-variant-numeric: tabular-nums; opacity: .85; }

.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choice { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 2px 10px; align-items: start; min-height: 44px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper); cursor: pointer; }
.choice input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }
.choice b { font-size: 14px; }
.choice .desc { grid-column: 2; font-size: 13px; line-height: 1.35; color: var(--ink); }
.choice .ex { grid-column: 2; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.choice:has(input:checked) { background: var(--yellow-soft); }
.ex mark, mark.hl { background: none; color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 2px; }

.check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; margin-top: 14px; cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }
.check b { display: block; font-size: 14px; }
.check.inline { align-items: center; margin: 0; font-weight: 600; font-size: 14px; }
.check.inline input { margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper); color: var(--ink) !important; font-family: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.chip input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.chip:has(input:checked) { background: var(--yellow-soft); }
.chip small { font-weight: 500; color: var(--muted); }
button.chip { box-shadow: 2px 2px 0 var(--ink); }
button.chip:hover { background: var(--yellow-soft); }
button.chip:active { transform: translate(2px, 2px); box-shadow: none; }
.chip-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }

/* ---- Notices ---- */
.notice { margin: 16px 0 0; font-weight: 600; }
.notice:empty { display: none; }
.notice.is-error { color: var(--error); }

/* ---- Results window ---- */
.results { margin-top: 28px; }
.reshead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 18px 20px; }
.reshead p { margin: 0; }
.big-word { margin-right: 4px; font-size: 24px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* Result views: four big tab buttons that can't be missed. Raised white = click me; black = the one you're on. */
.ctatabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 16px 20px 20px; border-top: 1px solid var(--rule); border-bottom: 2px solid var(--ink); background: var(--panel); }
.ctatab {
  appearance: none; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; min-height: 76px; padding: 12px 14px;
  border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); color: var(--ink); font: inherit; text-align: left;
  box-shadow: 4px 4px 0 var(--ink); cursor: pointer; transition: background-color .12s ease;
}
.ctatab:hover { background: var(--yellow); }
.ctatab:active { transform: translate(4px, 4px); box-shadow: none; }
.ctatab[aria-selected="true"] { background: var(--ink); color: var(--paper); transform: translate(4px, 4px); box-shadow: none; cursor: default; }
.ctatab:focus-visible { outline-offset: 4px; }
.ctatab-top { display: flex; align-items: center; gap: 8px; width: 100%; }
.ctatab-l { font-size: 17px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctatab .count { margin-left: auto; }
.ctatab-sub { font-size: 13px; color: var(--muted); }
.ctatab[aria-selected="true"] .ctatab-sub { color: #e4e4e0; }
.ctatab[aria-selected="true"] .count { border-color: var(--yellow); background: var(--yellow); color: var(--ink); }
.count { flex: none; min-width: 22px; padding: 4px 8px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); font-family: var(--font-ui); font-weight: 700; font-size: 12px; line-height: 1; font-variant-numeric: tabular-nums; text-align: center; }
.count:empty { display: none; }

/* The short "searching" window shown before the results fade in */
.loader { margin-top: 28px; }
.loader-body { display: flex; align-items: center; gap: 22px; padding: 28px 28px 30px; }
.loader-icon { flex: none; width: 56px; height: 56px; fill: var(--paper); stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.loader-hand { transform-origin: 24px 26px; animation: dh-spin 1.2s steps(12) infinite; }
.loader-text { flex: 1; min-width: 0; }
.loader-title { margin: 0 0 4px; font-size: 19px; }
.progress { height: 22px; margin-top: 14px; overflow: hidden; border: 2px solid var(--ink); border-radius: 6px; background: var(--paper); }
.progress span {
  display: block; height: 100%; width: 0; border-right: 2px solid var(--ink);
  background: repeating-linear-gradient(-45deg, var(--ink) 0 6px, var(--yellow) 6px 12px); background-size: 34px 34px;
  animation: dh-stripes .6s linear infinite; transition: width .35s ease;
}
.results.fade-in { animation: dh-fade-in .5s ease-out both; }
@keyframes dh-spin { to { transform: rotate(360deg); } }
@keyframes dh-stripes { to { background-position: 34px 0; } }
@keyframes dh-fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tabhelp { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 20px; border-bottom: 1px solid var(--rule); background: var(--yellow-soft); color: var(--muted); font-size: 14px; }
.tabhelp .ico { color: var(--ink); }
.panel { padding: 20px 20px 24px; }
.panel-section { margin-top: 32px; }
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 12px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 16px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); color: var(--ink) !important; text-align: left; text-decoration: none; font: inherit; }
.stat-n { font-size: 30px; line-height: 1.15; }
.stat-n small { font-size: 16px; }
.stat-l { font-weight: 700; font-size: 14px; }
button.stat { appearance: none; background: var(--yellow-soft); box-shadow: 3px 3px 0 var(--ink); cursor: pointer; }
button.stat:hover { background: var(--yellow); }
button.stat:active { transform: translate(3px, 3px); box-shadow: none; }

/* ---- Tables ---- */
.tablebox { position: relative; overflow-x: auto; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); }
.tbl { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
.tbl.wide { min-width: 900px; }
.tbl th { padding: 10px 14px; border-bottom: 2px solid var(--ink); background: var(--panel); color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-align: left; white-space: nowrap; }
.tbl th.num { text-align: right; }
.tbl td, .tbl tbody th { padding: 10px 14px; border-bottom: 1px solid var(--rule); vertical-align: middle; text-align: left; }
.tbl tbody th { background: var(--paper); color: var(--ink); font-family: var(--font-chicago); font-size: 15px; font-weight: normal; letter-spacing: 0; text-transform: none; }
.tbl tbody tr:last-child td, .tbl tbody tr:last-child th { border-bottom: 0; }
.tbl tbody tr:hover td, .tbl tbody tr:hover th { background: var(--row-hover); }
.tbl td.num, .tbl th.num { text-align: right; }
.tbl tfoot td, .tbl tfoot th { padding: 11px 14px; border-top: 2px solid var(--ink); background: var(--panel); color: var(--ink); font-family: var(--font-ui); font-size: 14px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.tbl .idx { width: 52px; color: var(--muted); }
.tbl .is-pending td, .tbl .is-failed td { color: var(--muted); }
.sub { display: block; color: var(--muted); font-family: var(--font-ui); font-size: 12px; }
.dom { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--ink) !important; font-weight: 600; font-size: 15px; text-decoration: none; overflow-wrap: anywhere; }
.dom:hover .dn { text-decoration: underline; }
.dom .ico { color: var(--muted); }
.dn { min-width: 0; }
.dom b { font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 2px; }
.ptitle { max-width: 300px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.zero { color: var(--faint); }
.cnt { appearance: none; display: inline-block; min-width: 28px; min-height: 32px; padding: 4px 2px; border: 0; background: none; color: var(--link); font: inherit; font-weight: 700; text-align: right; cursor: pointer; }
.cnt:hover { text-decoration: underline; }
.bar { display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; }
.bar i { display: block; height: 10px; border: 1.5px solid var(--ink); border-radius: 2px; background: var(--yellow); }
.also { display: block; font-size: 12.5px; color: var(--muted); }
.also a { color: var(--muted) !important; }
.rowact { display: flex; justify-content: flex-end; gap: 8px; }
.empty { padding: 28px 16px; color: var(--muted); text-align: center; }

/* ---- Badges and scores ---- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.badge .dot { display: inline-block; width: 8px; height: 8px; border: 1.5px solid var(--ink); border-radius: 50%; }
.badge.is-taken { background: var(--ink); color: var(--paper); }
.badge.is-https { border-color: var(--green); background: var(--green-soft); color: var(--green-dark); }
.badge.is-redirect { border-color: var(--link); background: var(--link-soft); color: var(--link-dark); }
.badge.is-parked { background: var(--yellow); }
.badge.is-none, .badge.is-missing { border-style: dashed; border-color: var(--faint); color: var(--muted); }
.badge.is-error { border-color: var(--error); background: var(--error-soft); color: var(--error); }
.badge.is-wait { border-style: dotted; border-color: var(--faint); color: var(--muted); }
.badge.is-bare { border-style: dashed; }
.score { display: inline-flex; align-items: center; gap: 8px; }
.score-n { display: inline-grid; place-items: center; min-width: 46px; height: 32px; padding: 0 8px; border: 2px solid var(--ink); border-radius: 8px; font-size: 15px; font-variant-numeric: tabular-nums; }
.score.hot .score-n { background: var(--ink); color: var(--paper); }
.score.warm .score-n { background: var(--yellow); }
.score.cold .score-n { background: var(--paper); }
.score.none .score-n { border-style: dashed; border-color: var(--faint); color: var(--muted); }
.score-t { width: 44px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.rel b { display: block; font-size: 14px; }
.rel span { color: var(--muted); font-size: 12.5px; }

/* Site check breakdown */
.stack { display: flex; height: 30px; overflow: hidden; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper); }
.stack span { display: block; height: 100%; border-right: 2px solid var(--ink); }
.stack span:last-child { border-right: 0; }
.s-live { background: var(--green-bar); }
.s-redirect { background: repeating-linear-gradient(45deg, var(--ink) 0 2px, var(--paper) 2px 6px); }
.s-parked { background: var(--yellow); }
.s-error { background: #f3c1ba; }
.s-none { background: var(--paper); }
.s-wait { background: repeating-linear-gradient(90deg, var(--rule) 0 4px, var(--paper) 4px 8px); }
.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 14px 0 18px; font-size: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.sw { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--ink); border-radius: 3px; }

/* ---- Filters, list bars, pagers ---- */
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 16px; padding: 16px; border: 2px solid var(--ink); border-radius: 10px; background: var(--panel); }
.filters + .filters { margin-top: 12px; }
.ctl { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ctl-l { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pop { position: relative; display: inline-flex; }
.pop select { appearance: none; -webkit-appearance: none; min-width: 170px; min-height: 40px; padding: 0 36px 0 12px; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper); color: var(--ink); font-family: inherit; font-size: 14px; font-weight: 600; box-shadow: 2px 2px 0 var(--ink); cursor: pointer; }
.pop select:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.pop .ico { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.filter-note { flex-basis: 100%; }
.listbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 18px 0 12px; }
.listbar p { margin: 0; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 20px; }
.pager:has(button:disabled + span:empty + button:disabled) { display: none; }

/* ---- Help: callouts and steps ---- */
.callout { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); box-shadow: 3px 3px 0 var(--ink); }
.callout > .ico { margin-top: 2px; }
.callout p { margin: 0; }
.callout p + p { margin-top: 6px; }
.how { margin-top: 10px; }
.how summary { display: inline-flex; align-items: center; min-height: 36px; color: var(--link); font-weight: 700; cursor: pointer; }
.howgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.howcard { padding: 12px 14px; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--panel); }
.howcard ul { margin: 6px 0 0; padding: 0; list-style: none; font-size: 13.5px; }
.howcard li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border-bottom: 1px dotted #b9b9b4; }
.howcard li:last-child { border-bottom: 0; }
.howcard li b { font-variant-numeric: tabular-nums; }

.section { margin-top: 40px; }
.section > .h2 { margin-bottom: 16px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.stepcard { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); box-shadow: 3px 3px 0 var(--ink); }
.stepcard p { margin: 0; color: var(--muted); }
.bign { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 8px; background: var(--yellow); font-size: 22px; }

.price { width: 120px; height: 40px; padding: 0 10px; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper); color: var(--ink); font-family: inherit; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; box-shadow: inset 2px 2px 0 rgba(17, 17, 17, .10); }
.price::placeholder { color: var(--faint); font-weight: 400; }
.golink { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.golink:hover { text-decoration: underline; }

/* The PNG report, drawn off screen */
.report-frame { position: fixed; left: -10000px; top: 0; width: 1000px; padding: 32px; background: var(--desk); background-image: radial-gradient(rgba(17, 17, 17, .10) 1px, transparent 1.2px); background-size: 4px 4px; }
.report-foot { display: flex; justify-content: space-between; gap: 16px; padding: 12px 20px; border-top: 2px solid var(--ink); font-size: 13px; color: var(--muted); }

/* ---- Small screens ---- */
@media (max-width: 900px) {
  .ctatabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opts { grid-template-columns: minmax(0, 1fr); }
  .opt + .opt { border-left: 0; border-top: 1px solid var(--rule); }
  .steps, .howgrid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .wrap, .topbar-in { padding: 0 16px; }
  .sheet { padding: 20px 16px; }
  .h1 { font-size: 26px; }
  .panel { padding: 16px; }
  .search-area { padding: 18px 16px; }
  .search { flex-direction: column; align-items: stretch; }
  .choices { grid-template-columns: minmax(0, 1fr); }
  .filters .ctl { flex: 1 1 100%; }
  .pop, .pop select, .text-input { width: 100%; }
  .hide-sm { display: none; }
  /* Tables become stacked cards: the first cell (rank or score) on the left, the rest beside it. */
  .tbl.stack-sm { min-width: 0; }
  .tbl.stack-sm thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl.stack-sm tbody tr { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; align-items: start; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
  .tbl.stack-sm tbody tr:last-child { border-bottom: 0; }
  .tbl.stack-sm tbody td { display: block; grid-column: 2; padding: 0; border: 0; text-align: left; }
  .tbl.stack-sm tbody td:first-child { grid-column: 1; grid-row: 1 / span 7; }
  .tbl.stack-sm.single tbody tr { grid-template-columns: minmax(0, 1fr); }
  .tbl.stack-sm.single tbody td, .tbl.stack-sm.single tbody td:first-child { grid-column: 1; grid-row: auto; }
  .tbl.stack-sm tbody td.empty { grid-column: 1 / -1; }
  .tbl.stack-sm .ptitle { max-width: none; white-space: normal; }
  .tbl.stack-sm td[data-label]::before { content: attr(data-label) " "; color: var(--muted); font-size: 12px; font-weight: 700; }
  .tbl.stack-sm .rowact { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .ctatabs { gap: 10px; padding: 14px 14px 16px; }
  .ctatab { min-height: 68px; padding: 10px 12px; }
  .ctatab-l { font-size: 15px; }
  .ctatab-sub { font-size: 12px; }
  .loader-body { padding: 20px 16px 22px; gap: 14px; }
  .loader-icon { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn:active, .iconbtn:active, button.chip:active, button.stat:active, .ctatab:active { transform: none; }
  .loader-hand, .progress span { animation: none; }
  .results.fade-in { animation: none; }
}

/* ---- "Other TLDs registered": the count opens a small window listing them ---- */
.tldcount { appearance: none; min-width: 34px; min-height: 32px; padding: 2px 8px; border: 1.5px solid currentColor; border-radius: 999px; background: transparent; color: var(--link); font: inherit; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; }
.tldcount:hover { background: var(--link-soft); }
.tldpop { position: absolute; z-index: 40; width: min(380px, calc(100vw - 16px)); box-shadow: 5px 5px 0 var(--ink); }
.tldpop .closebox { padding: 0; cursor: pointer; }
.tldpop .closebox:hover { background: var(--ink); }
.tldpop-body { max-height: min(60vh, 420px); overflow-y: auto; padding: 14px 16px 16px; }
.tldlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; margin: 12px 0 0; padding: 0; list-style: none; }
.tldlist a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.tldlist a:hover { text-decoration: underline; }
.tldlist a b { font-weight: 800; }
.tldlist .ico { color: var(--muted); }

.match-help { margin-top: 8px; }

/* ---- Dark / light switch under each domain table ---- */
.tablefoot { display: flex; justify-content: flex-end; margin-top: 14px; }
.themeswitch { appearance: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.themeswitch .track { position: relative; width: 48px; height: 26px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); box-shadow: 2px 2px 0 var(--ink); }
.themeswitch .knob { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border: 2px solid var(--ink); border-radius: 50%; background: var(--paper); transition: left .15s ease; }
.themeswitch[aria-checked="true"] .track { background-color: #141414; background-image: conic-gradient(#262626 25%, #141414 0 50%, #262626 0 75%, #141414 0); background-size: 2px 2px; }
.themeswitch[aria-checked="true"] .knob { left: 24px; background: var(--yellow); }

/* ---- Domain tables, dark: a dense 1-pixel dither, like an old Mac desktop pattern at night ---- */
.tablebox.is-dark {
  --d-text: #ecece6; --d-muted: #b9b9b1; --d-faint: #8e8e88; --d-rule: rgba(255, 255, 255, .11); --d-line: #5f5f5a;
  border-color: var(--ink); color: var(--d-text); color-scheme: dark;
  background-color: #141414;
  background-image: conic-gradient(#2c2c2c 25%, #101010 0 50%, #2c2c2c 0 75%, #101010 0);
  background-size: 2px 2px;
}
.tablebox.is-dark .tbl th { background: #0b0b0b; color: var(--d-muted); border-bottom-color: #000; }
.tablebox.is-dark .tbl td { border-bottom-color: var(--d-rule); }
.tablebox.is-dark .tbl tbody tr:hover td { background: rgba(255, 216, 111, .09); }
.tablebox.is-dark .idx, .tablebox.is-dark .ptitle, .tablebox.is-dark .also, .tablebox.is-dark .also a, .tablebox.is-dark .rel span, .tablebox.is-dark .score-t, .tablebox.is-dark .empty { color: var(--d-muted) !important; }
.tablebox.is-dark .zero { color: var(--d-faint); }
.tablebox.is-dark .dom { color: var(--d-text) !important; }
.tablebox.is-dark .dom b { text-decoration-color: var(--yellow); }
.tablebox.is-dark .dom .ico { color: var(--d-muted); }
.tablebox.is-dark .badge { border-color: var(--d-line); background: #1b1b1b; color: var(--d-text); }
.tablebox.is-dark .badge .dot { border-color: var(--d-text); }
.tablebox.is-dark .badge.is-https { border-color: #3fbf6a; background: #10331d; color: #a6ecbd; }
.tablebox.is-dark .badge.is-redirect { border-color: #7d9cf0; background: #131f3d; color: #c3d2fa; }
.tablebox.is-dark .badge.is-parked { border-color: var(--yellow); background: var(--yellow); color: var(--ink); }
.tablebox.is-dark .badge.is-none, .tablebox.is-dark .badge.is-wait, .tablebox.is-dark .badge.is-bare { border-color: var(--d-faint); background: transparent; color: var(--d-muted); }
.tablebox.is-dark .badge.is-error { border-color: #e0796e; background: #3a1512; color: #f6bdb5; }
.tablebox.is-dark .score-n { border-color: var(--d-line); }
.tablebox.is-dark .score.hot .score-n { border-color: #f5f5f0; background: #f5f5f0; color: var(--ink); }
.tablebox.is-dark .score.warm .score-n { border-color: var(--yellow); background: var(--yellow); color: var(--ink); }
.tablebox.is-dark .score.cold .score-n { background: transparent; color: var(--d-text); }
.tablebox.is-dark .score.none .score-n { background: transparent; color: var(--d-muted); border-color: var(--d-faint); }
.tablebox.is-dark .iconbtn { border-color: var(--d-line); background: #1b1b1b; color: var(--d-text) !important; box-shadow: 2px 2px 0 #000; }
.tablebox.is-dark .iconbtn:hover { background: #2a2a2a; }
.tablebox.is-dark .tldcount { color: #9fb7ff; }
.tablebox.is-dark .tldcount:hover { background: rgba(159, 183, 255, .14); }
.tablebox.is-dark .golink { color: #9fb7ff; }
.tablebox.is-dark .price { border-color: var(--d-line); background: #0d0d0d; color: var(--d-text); box-shadow: inset 2px 2px 0 rgba(0, 0, 0, .5); }
.tablebox.is-dark .price::placeholder { color: var(--d-faint); }
.tablebox.is-dark .rel b { color: var(--d-text); }
.tablebox.is-dark :focus-visible { outline-color: #9fb7ff; }
@media (max-width: 640px) {
  .tablebox.is-dark .tbl.stack-sm tbody tr { border-bottom-color: var(--d-rule); }
  .tablebox.is-dark .tbl.stack-sm td[data-label]::before { color: var(--d-muted); }
  .tldlist { grid-template-columns: minmax(0, 1fr); }
}

/* ===================== New site additions ===================== */

/* Sections not moved over yet: greyed out, not links, can't be visited. */
.navtab.is-off { gap: 8px; background: #d6d6d2; border-color: #8a8a86; color: #555 !important; cursor: not-allowed; }
.navtab.is-off:hover { background: #d6d6d2; }
.soon { padding: 2px 6px; border: 1.5px solid #8a8a86; border-radius: 999px; font-family: var(--font-ui); font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }

/* Top bar: account */
.inline-form { display: inline; margin: 0; }
.toplink.is-static:hover { background: none; }
.topbar .btn.sm { min-height: 38px; }
.topbar .btn.primary { margin: 3px 3px 3px 6px; }

/* Log in, sign up */
.authwin { max-width: 520px; margin: 4px auto 24px; }
.authform { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.authform .lede { margin: 0; }
.authfield { display: flex; flex-direction: column; gap: 6px; }
.authfield > .chi { font-size: 15px; }
.authfield .text-input { width: 100%; height: 48px; font-size: 16px; }
.authform .btn.big { align-self: flex-start; }
.authswitch { margin: 0; font-size: 14px; }

/* The blurred "log in to see more" section for logged-out visitors. The rows are made up, not real results. */
.locked { position: relative; min-height: 340px; overflow: hidden; border-top: 1px solid var(--rule); }
.locked-rows { padding: 4px 0; filter: blur(5px); opacity: .85; user-select: none; pointer-events: none; }
.fake-row { display: grid; grid-template-columns: 52px minmax(0, 240px) 120px minmax(0, 1fr); gap: 14px; align-items: center; padding: 13px 14px; border-bottom: 1px solid var(--rule); font-weight: 700; }
.fake-row.cols-3 { grid-template-columns: 70px minmax(0, 240px) 140px minmax(0, 1fr); }
.fake-idx { color: var(--muted); font-weight: 500; text-align: right; }
.fake-pill { height: 22px; border: 1.5px solid currentColor; border-radius: 999px; opacity: .6; }
.fake-text { height: 10px; border-radius: 4px; background: currentColor; opacity: .25; }
.locked-card {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(470px, calc(100% - 24px));
  padding: 22px 22px 18px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink); text-align: center;
}
.locked-card .ico.lock { width: 30px; height: 30px; }
.locked-card .help { color: var(--muted) !important; }
.locked-title { margin: 6px 0 6px; font-size: 20px; line-height: 1.2; }
.locked-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 16px; }
.locked-free { margin-top: 10px; }
.tablebox.is-dark .locked { border-top-color: var(--d-rule); }
.tablebox.is-dark .fake-row { border-bottom-color: var(--d-rule); color: var(--d-text); }
.tablebox.is-dark .fake-idx { color: var(--d-muted); }
#investorsLocked .locked { border-top: 0; }
@media (max-width: 640px) {
  .fake-row, .fake-row.cols-3 { grid-template-columns: 34px minmax(0, 1fr) 70px; }
  .fake-text { display: none; }
  .locked { min-height: 380px; }
  .authform { padding: 18px 16px; }
  .topbar .btn.primary { margin-left: 2px; }
}
