* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  background: var(--bg);
}
body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
}
button,
input {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
.search-area {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  transition:
    min-height var(--dur-3) var(--ease),
    padding var(--dur-3) var(--ease);
}
.search-content {
  width: min(100%, 720px);
  text-align: center;
}
.search-content h1 {
  font-size: clamp(37px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.055em;
  margin: 0 0 35px;
  font-weight: 650;
}
.search-content h1 span {
  color: var(--text-2);
}
.search-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 7px;
  box-shadow: var(--shadow-2);
  transition: border-color var(--dur-2);
}
.search-box:focus-within {
  border-color: var(--accent);
}
.search-box input {
  min-width: 0;
  flex: 1;
  background: none;
  border: 0;
  outline: none;
  color: var(--text);
  font-size: 16px;
  padding: 14px 0;
}
body:not(.has-search) .search-box {
  min-height: 72px;
}
body:not(.has-search) .search-box input {
  font-size: 19px;
}
.search-box input::placeholder {
  color: var(--text-3);
}
.search-box button {
  border: 0;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  padding: 14px 23px;
}
.search-box button:hover {
  background: var(--accent-hover);
}
.error {
  color: var(--taken);
}
body.has-search .search-area {
  min-height: 0;
  padding: 28px 24px 32px;
  align-items: stretch;
}
body.has-search .search-content {
  width: min(100%, 920px);
  margin: auto;
}
body.has-search .search-content h1 {
  display: none;
}
body.has-search .search-box {
  max-width: 680px;
  box-shadow: var(--shadow-1);
}
.results {
  width: min(920px, calc(100% - 48px));
  margin: 20px auto 100px;
}
.results-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-3);
  margin: 0 0 9px;
}
.results h2 {
  font-size: 28px;
  letter-spacing: -0.04em;
  margin: 0;
}
.progress-label {
  font-size: 12px;
  color: var(--text-2);
  margin: 0 0 4px;
}
.progress {
  height: 2px;
  background: var(--border);
  margin: 20px 0 30px;
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--text-2);
  transition: width var(--dur-2) var(--ease);
}
.groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.group-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}
.group-heading h3 {
  font-size: 13px;
  margin: 0;
  font-weight: 650;
}
.group-heading span {
  color: var(--text-3);
  font-size: 12px;
}
.result-list {
  border-top: 1px solid var(--border);
}
.result-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  padding: 18px 3px;
  animation: result-fade 180ms ease-out both;
}
@keyframes result-fade { from { opacity: 0; } to { opacity: 1; } }
.result-row:hover {
  background: var(--surface-1);
}
.domain {
  overflow-wrap: anywhere;
  font-size: 15px;
}
.domain strong {
  font-weight: 700;
}
.status {
  font-size: 12px;
  color: var(--ok);
  white-space: nowrap;
}
.status.taken {
  color: var(--taken);
}
.status.unknown {
  color: var(--unknown);
}
.status .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  margin: 0 7px 2px 0;
}
.notice {
  color: var(--text-2);
  padding: 22px 0;
}
.scrim {
  position: fixed;
  inset: 0;
  background: var(--bg);
  opacity: 0;
  z-index: 5;
  transition: opacity var(--sheet-dur, 280ms) cubic-bezier(.2, .8, .2, 1);
}
.scrim.scrim-open {
  opacity: 0.8;
}
.scrim.scrim-closing {
  opacity: 0;
  transition: opacity var(--sheet-dur, 220ms) cubic-bezier(.2, .8, .2, 1);
}
.scrim.scrim-dragging,
.scrim.scrim-no-transition {
  transition: none;
}
.sheet {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(500px, 100%);
  z-index: 6;
  background: var(--surface-1);
  box-shadow: var(--shadow-2);
  padding: 32px;
  overflow: auto;
  overscroll-behavior: contain;
  transform: translate3d(100%, 0, 0);
  transition: transform var(--sheet-dur, 280ms) cubic-bezier(.2, .8, .2, 1);
}
.sheet:not([hidden]) {
  will-change: transform;
}
.sheet.sheet-open {
  transform: translate3d(0, 0, 0);
}
.sheet.sheet-closing {
  transform: translate3d(100%, 0, 0);
  transition: transform var(--sheet-dur, 220ms) cubic-bezier(.2, .8, .2, 1);
}
.sheet.sheet-no-transition {
  transition: none;
}
.sheet-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 35px;
}
.sheet-top .eyebrow {
  margin: 0;
}
.icon-button {
  border: 0;
  background: transparent;
  color: var(--text-2);
  font-size: 30px;
  line-height: 1;
  padding: 0 4px;
}
.sheet h2 {
  font-size: 30px;
  letter-spacing: -0.05em;
  overflow-wrap: anywhere;
  margin: 0 0 10px;
}
.sheet-description {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 35px;
}
.sheet h3 {
  font-size: 14px;
  margin: 0 0 14px;
}
.price-list {
  display: grid;
  gap: 8px;
}
.price-row {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 15px;
  min-height: 80px;
}
.price-row[href]:hover {
  background: var(--surface-2);
}
.price-row.cheapest {
  border-color: var(--accent);
}
.registrar {
  flex: 1;
  min-width: 0;
}
.registrar-logo {
  position: relative;
  display: flex;
  align-items: center;
  width: 132px;
  height: 36px;
  padding: 5px 6px;
  border-radius: 6px;
}
.registrar-logo img {
  max-width: 120px;
  max-height: 26px;
  object-fit: contain;
  object-position: left center;
}
.registrar-logo .logo-light { display: none; }
.logo-tiles .registrar-logo { background: #f4f2ee; }
.logo-tiles .registrar-logo .logo-dark { display: none; }
.logo-tiles .registrar-logo .logo-light { display: block; }
.registrar-logo.hostinger .logo-dark { opacity: 0; }
.hostinger-mask {
  position: absolute;
  inset: 5px 6px;
  background: #eceae6;
  mask: url('/img/registrars/hostinger.svg') left center / contain no-repeat;
}
.logo-tiles .hostinger-mask, .logo-failed img, .logo-failed .hostinger-mask { display: none !important; }
.registrar-logo.logo-failed { background: transparent; }
.logo-fallback {
  display: block;
  font-size: 14px;
  font-weight: 700;
}
.logo-fallback[hidden] { display: none; }
.small {
  font-size: 11px;
  color: var(--text-2);
  line-height: 1.5;
}
.badge {
  display: inline-block;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  margin-top: 4px;
}
.price {
  text-align: right;
  white-space: nowrap;
}
.price strong {
  display: block;
  font-size: 15px;
}
.minimum {
  display: block;
}
.disclose {
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--text);
  padding: 12px 15px;
  font-weight: 600;
}
.details {
  margin-top: 25px;
}
.details dl {
  margin: 0;
}
.details dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.details dt {
  color: var(--text-2);
}
.details dd {
  margin: 0;
  text-align: right;
}
.sheet-error {
  color: var(--taken);
  line-height: 1.5;
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 650px) {
  .search-area {
    padding-left: 20px;
    padding-right: 20px;
  }
  .search-content h1 {
    font-size: 42px;
  }
  .search-box {
    gap: 9px;
  }
  .search-box button {
    padding: 14px;
  }
  .results {
    width: calc(100% - 40px);
  }
  body.has-search .search-area {
    padding-left: 20px;
    padding-right: 20px;
  }
  .groups {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .results-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }
  .progress {
    margin-top: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

.price-row.unverified .price strong {
  color: var(--text-2);
}

.price-row {
  position: relative;
}
.price-tooltip {
  position: absolute;
  z-index: 2;
  right: 12px;
  top: calc(100% - 2px);
  max-width: calc(100% - 24px);
  padding: 7px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--surface-3);
  color: var(--text);
  font-size: 11px;
  line-height: 1.4;
  box-shadow: var(--shadow-1);
  visibility: hidden;
}
.price-row:hover .price-tooltip,
.price-row:focus-visible .price-tooltip {
  visibility: visible;
}

.result-row.pending {
  opacity: 0.65;
  cursor: default;
}

/* Results overview and filters */
.headline { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.results h2 { overflow-wrap: anywhere; }
.headline-domain[data-status="available"] { color: var(--ok); }
.headline-domain[data-status="taken"] { color: var(--taken); }
.headline-status { border: 1px solid var(--border); border-radius: var(--r-pill); padding: 7px 11px; background: var(--surface-1); color: var(--unknown); font-size: 12px; font-weight: 600; }
.headline-status.available { color: var(--ok); background: var(--ok-soft); border-color: transparent; }
.headline-status.taken { color: var(--taken); background: var(--taken-soft); border-color: transparent; }
.headline-status:disabled { cursor: default; opacity: 1; }
.headline-status.available:hover { border-color: var(--ok); }
.results-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 26px; flex-wrap: wrap; }
.summary { color: var(--text-2); font-size: 13px; margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { border: 1px solid var(--border); border-radius: var(--r-pill); padding: 7px 12px; background: transparent; color: var(--text-2); font-size: 12px; font-weight: 600; }
.filters button[data-filter="available"] { color: var(--ok); }
.filters button[data-filter="taken"] { color: var(--taken); }
.filters button[aria-pressed="true"] { background: var(--surface-3); border-color: var(--border-strong); color: var(--text); }
.filters button[data-filter="available"][aria-pressed="true"] { color: var(--ok); background: var(--ok-soft); border-color: var(--ok); }
.filters button[data-filter="taken"][aria-pressed="true"] { color: var(--taken); background: var(--taken-soft); border-color: var(--taken); }
.groups.single-group { grid-template-columns: minmax(0, 1fr); }
.groups.single-group .result-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
@media (max-width: 650px) {
  .groups.single-group .result-list { column-gap: 18px; }
  .groups.single-group .result-row { align-items: flex-start; flex-direction: column; gap: 5px; padding: 14px 3px; }
  .results-controls { align-items: flex-start; flex-direction: column; }
  .results h2 { font-size: 24px; }
}

/* Fluid results layout; the search landing and detail sheet keep their sizes. */
body.has-search .search-area { padding-left: clamp(20px, 4vw, 56px); padding-right: clamp(20px, 4vw, 56px); }
body.has-search .search-content { width: min(100%, 1600px); }
body.has-search .search-box { max-width: 860px; }
.results { width: min(1600px, calc(100% - 2 * clamp(20px, 4vw, 56px))); }
.groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.result-list, .groups.single-group .result-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); column-gap: 28px; }
.result-row { min-width: 0; }
@media (max-width: 650px) {
  .groups { grid-template-columns: 1fr; }
  .result-list { grid-template-columns: 1fr; }
  .groups.single-group .result-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
}

.view-switch { display: flex; gap: 4px; width: fit-content; max-width: 100%; padding: 4px; margin: 0 0 24px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface-1); }
.view-switch button, .extension-categories button { font: inherit; font-size: 13px; color: var(--text-2); border: 1px solid transparent; border-radius: var(--r-sm); background: transparent; padding: 8px 12px; }
.view-switch button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); }
.extension-categories { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.extension-categories button { border-color: var(--border); border-radius: var(--r-pill); }
.extension-categories button[aria-pressed="true"] { color: var(--text); background: var(--surface-3); border-color: var(--border-strong); }
.extension-message { color: var(--text-2); font-size: 13px; margin: 0 0 20px; }
.mixed-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 28px; }
.confidence-note { color: var(--text-2); font-size: 12px; line-height: 1.5; margin: 0 0 14px; }
.price-row.not-listed .price { color: var(--text-2); }
@media (max-width: 650px) { .mixed-list { grid-template-columns: 1fr; } }

.filters button[data-extension-filter="available"] { color: var(--ok); }
.filters button[data-extension-filter="taken"] { color: var(--taken); }
.filters button[data-extension-filter="available"][aria-pressed="true"] { color: var(--ok); background: var(--ok-soft); border-color: var(--ok); }
.filters button[data-extension-filter="taken"][aria-pressed="true"] { color: var(--taken); background: var(--taken-soft); border-color: var(--taken); }

.view-switch button { display: inline-flex; align-items: center; gap: 6px; }
.view-switch svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.extension-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.category-select { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--border); border-radius: var(--r-pill); padding: 7px 10px; font-size: 12px; color: var(--text-2); background: var(--surface-1); }
.category-select select { border: 0; color: var(--text); background: var(--surface-1); font: inherit; max-width: 190px; }
.extension-section { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-top: 1px solid var(--border); }
.extension-section-label h3 { font-size: 14px; margin: 2px 0 8px; }
.extension-section-label p { color: var(--text-2); font-size: 12px; line-height: 1.5; margin: 0; }
.extension-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 8px; align-content: start; }
.extension-tile { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; white-space: nowrap; text-align: left; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface-1); color: var(--text); padding: 11px 12px; font-size: 14px; line-height: 1.3; }
.extension-tile.available { background: rgba(76, 195, 138, .26); border-color: rgba(76, 195, 138, .55); }
.extension-tile.available:hover { background: rgba(76, 195, 138, .32); border-color: var(--ok); }
.extension-tile.taken { background: rgba(239, 95, 103, .05); border-color: rgba(239, 95, 103, .16); }
.extension-tile.taken:hover { background: rgba(239, 95, 103, .09); border-color: rgba(239, 95, 103, .28); }
.extension-tile.unknown { background: var(--surface-1); border-color: var(--border); }
.extension-tile.unknown:hover { background: var(--surface-2); border-color: var(--border-strong); }
.extension-tile.pending { color: var(--text-3); cursor: default; }
.extension-tile.pending .tile-extension { display: block; width: 65px; height: 10px; background: var(--border-strong); border-radius: 4px; color: transparent; }
@media (max-width: 650px) {
  .extension-section { grid-template-columns: 1fr; gap: 12px; padding: 20px 0; }
  .extension-actions { width: 100%; }
}

/* Compact search rows keep availability and first-year pricing visible together. */
.result-list, .groups.single-group .result-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.result-row, .groups.single-group .result-row { flex-direction: row; align-items: center; gap: 8px; padding: 16px 3px; }
.row-domain { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.row-domain .domain { font-size: 14px; line-height: 1.35; }
.row-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--unknown); align-self: center; }
.row-dot.available { background: var(--ok); }
.row-dot.taken { background: var(--taken); }
.row-price { display: flex; flex-direction: column; align-items: flex-end; flex: 0 1 auto; min-width: 0; gap: 2px; }
.row-price-main { display: flex; align-items: baseline; gap: 4px; min-width: 0; max-width: 100%; white-space: nowrap; font-size: 13px; }
.row-price-main strong { flex: none; }
.row-registrar { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); font-size: 13px; }
.row-price-hint, .row-muted, .row-status { font-size: 11px; color: var(--text-2); white-space: nowrap; }
.row-status.taken { color: var(--taken); }
.row-status.unknown { color: var(--unknown); }
.price-skeleton { width: 76px; height: 12px; flex: none; border-radius: 4px; background: var(--border); opacity: .65; }
@media (max-width: 1440px) { .result-list, .groups.single-group .result-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 650px) { .result-list, .groups.single-group .result-list { grid-template-columns: 1fr; } }

.tile-extension { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-price { flex: none; font-size: 13px; white-space: nowrap; margin-left: auto; }

/* Official registrar badges and separate search-result targets. */
.reg-badge { --badge-size: 36px; display: inline-flex; flex: none; width: var(--badge-size); height: var(--badge-size); border-radius: calc(var(--badge-size) * .23); align-items: center; justify-content: center; overflow: hidden; vertical-align: middle; }
.reg-badge-20 { --badge-size: 20px; } .reg-badge-32 { --badge-size: 32px; } .reg-badge-36 { --badge-size: 36px; } .reg-badge-44 { --badge-size: 44px; }
.reg-badge.porkbun { background: #ef7878; } .reg-badge.cloudflare { background: #402817; } .reg-badge.namecheap { background: #f36b21; } .reg-badge.hostinger { background: #d5caff; } .reg-badge.dynadot { background: #121642; } .reg-badge.spaceship { background: #fff; } .reg-badge.namesilo { position: relative; background: #031b4e; } .reg-badge.namesilo::before { content: ""; position: absolute; inset: 12% 24%; background: #fff; }
.reg-badge img { display: block; width: 66%; height: 66%; object-fit: contain; } .reg-badge.cloudflare img { width: 78%; height: 78%; } .reg-badge.namecheap img { width: 100%; height: 100%; } .reg-badge.namesilo img { position: relative; flex: none; width: 112%; height: 112%; object-fit: cover; background: transparent; }
.reg-badge img[hidden], .badge-image-fallback[hidden] { display: none; }
.reg-badge.badge-failed { width: auto; max-width: 100px; background: transparent; overflow: hidden; }
.reg-badge.namesilo.badge-failed::before { display: none; }
.badge-image-fallback, .badge-text { color: var(--text-2); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.registrar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.registrar-name { font-size: 14px; font-weight: 650; }
.cheapest-pill, .tooltip-cheapest { color: var(--accent); background: var(--accent-soft, rgba(224,122,61,.12)); border-radius: 99px; padding: 4px 7px; font-size: 10px; font-weight: 700; margin: 0; }
.result-row, .groups.single-group .result-row { padding: 0 3px; }
.row-domain { border: 0; background: transparent; color: inherit; text-align: left; flex: 1 1 auto; padding: 16px 0; cursor: pointer; }
.row-domain:disabled { cursor: default; }
.row-price-link { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; padding: 12px 0; color: inherit; text-decoration: none; }
.row-price-link:hover { color: var(--accent); } .row-price-link:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.row-domain:focus-visible, .row-price-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.registrar-tooltip { position: fixed; z-index: 1000; width: max-content; max-width: min(270px, calc(100vw - 16px)); padding: 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface-2); color: var(--text); box-shadow: 0 8px 30px #0009; font-size: 12px; line-height: 1.6; pointer-events: none; }
.registrar-tooltip[hidden] { display: none; }
.tooltip-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; } .tooltip-destination { color: var(--text-2); margin-top: 5px; }

.result-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Result hierarchy. */
.row-name { color: var(--text-2); font-weight: 400; }
.row-domain .domain strong { color: var(--text); font-weight: 650; }
.row-price-main strong { color: var(--text); font-weight: 650; }
.row-price-hint { color: var(--text-2); }
.result-row[data-status="taken"] { opacity: .55; animation: none; }
.result-row[data-status="taken"] .row-name, .result-row[data-status="taken"] .row-status { color: var(--text); }
.result-row[data-status="unknown"] { opacity: .8; animation: none; }
.result-row[data-status="unknown"] .row-status { color: var(--text-2); }
.extension-tile.available .tile-extension { color: var(--text); font-weight: 650; }
.extension-tile.available .tile-price { color: var(--text); font-weight: 700; }
.extension-tile.taken .tile-extension { color: #bd7a7f; font-weight: 400; }
.extension-tile.unknown .tile-extension { color: var(--text-3); font-weight: 400; }

/* A single, consistent brand inside the search field. */
.search-area { transition: none; }
.search-box { gap: 0; }
.inline-brand { display: flex; align-items: center; flex: none; min-width: 0; }
.inline-home { display: inline-flex; height: 44px; flex: none; align-items: center; border-radius: 5px; text-decoration: none; }
.inline-home > img { width: 30px; height: 30px; margin: 7px; flex: none; }
.inline-word { display: block; width: 137px; overflow: hidden; flex: none; white-space: nowrap; font-size: 14px; font-weight: 700; letter-spacing: -.04em; transition: width 260ms var(--ease), opacity 220ms var(--ease); }
.inline-word span { display: inline-block; }
.brand-divider { width: 1px; height: 24px; margin: 0 8px; background: var(--border-strong); flex: none; transition: width 260ms var(--ease), margin 260ms var(--ease), opacity 220ms var(--ease); }
.search-box:has(#query:focus) .inline-word { width: 0; opacity: 0; }
.search-box:has(#query:focus) .brand-divider { width: 0; margin: 0; opacity: 0; }
body.has-search .inline-word span { opacity: .65; }
.input-slot { position: relative; flex: 1 1 auto; min-width: 0; display: flex; align-items: center; }
.search-box input { width: 100%; padding-left: 8px; margin-right: 8px; }
body.has-search .search-content { width: min(100%, 1600px); margin: auto; }
body.has-search .search-box { max-width: none; }
@media (max-width: 650px) {
  .inline-word { width: 99px; font-size: 11px; }
  body:not(.has-search) .search-box input::placeholder { font-size: 12px; }
  .search-box button { padding-left: 12px; padding-right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .inline-word, .brand-divider { transition: none; }
}


body.has-search .inline-home:hover .inline-word span { opacity: 1; }
.inline-home:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Larger results and comparison type without changing the search hero. */
.results-heading .eyebrow { font-size: 11px; }
.summary { font-size: 14px; }
.filters button, .category-select { font-size: 13px; }
.view-switch button { font-size: 14px; }
.row-domain .domain { font-size: 16px; }
.row-domain { padding-top: 18px; padding-bottom: 18px; }
.row-price-main { font-size: 16px; }
.row-price-hint, .row-muted, .row-status { font-size: 12px; }
.row-price-link { padding-top: 14px; padding-bottom: 14px; }
.extension-tile { font-size: 14px; }
.tile-price { font-size: 13px; }
.sheet { font-size: 16px; }
.sheet-description, .sheet h3, .registrar-name { font-size: 15px; }
.sheet .small, .price-tooltip { font-size: 12px; }
.sheet .price strong { font-size: 16px; }
.registrar-tooltip { font-size: 13px; }

.confidence-note, .extension-section-label p { font-size: 13px; }
.extension-section-label h3 { font-size: 15px; }
.cheapest-pill, .tooltip-cheapest { font-size: 11px; }

/* Clickable controls use a consistent pointer and select hover treatment. */
.category-select, .category-select select, a[href], button:not(:disabled) { cursor: pointer; }
.category-select:has(select:not(:disabled)):hover { border-color: var(--border-strong); background: var(--surface-2); }
.category-select:has(select:not(:disabled)):hover select { background: var(--surface-2); }
button:disabled, select:disabled, .category-select:has(select:disabled) { cursor: default; }

/* Loading placeholders for registration details. */
.rdap-skeleton dd { width: 42%; height: 12px; margin: 4px 0; border-radius: 4px; background: var(--border); }
.details dd { overflow-wrap: anywhere; }

@media (max-width: 650px) { .details .nameservers-row { flex-direction: column; gap: 6px; } .details .nameservers-row dd { text-align: left; } }


/* Registration year is separate from the availability status. */
.headline { column-gap: 8px; }
.headline-status { margin-left: 4px; }
.headline-year { display: inline-block; border: 1px solid transparent; border-radius: var(--r-pill); padding: 7px 11px; background: rgba(125, 155, 210, .12); color: #a9bce0; font-size: 12px; font-weight: 600; white-space: nowrap; animation: headline-year-in 220ms ease-out both; }
@keyframes headline-year-in { from { opacity: 0; } to { opacity: 1; } }

.headline-domain { display: inline; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; overflow-wrap: anywhere; }
.headline-domain:not(:disabled):hover, .headline-status:not(:disabled):hover, .headline-year:hover { text-decoration: underline; text-underline-offset: 4px; }
.headline-domain:disabled { opacity: 1; }
.headline-domain:focus-visible, .headline-status:focus-visible, .headline-year:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Each extension keeps independent detail and registrar targets. */
.extension-tile { padding: 0; gap: 0; }
.tile-name { display: block; flex: 1 1 auto; min-width: 0; padding: 11px 6px 11px 12px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; }
.tile-name:disabled { cursor: default; }
.tile-extension { display: block; }
.tile-price { display: block; padding: 11px 12px 11px 2px; color: inherit; text-decoration: none; }
.tile-price:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.tile-name:focus-visible, .tile-price:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 5px; }

/* Marketplace signals and domain-specific premium pricing. */
:root { --market-gold: #e2c46a; --premium-violet: #c4afff; }
.row-dot.for_sale { background: var(--market-gold); }
.row-dot.premium { background: var(--premium-violet); }
.row-status.for_sale, .headline-domain[data-status="for_sale"] { color: var(--market-gold); }
.row-status.premium, .headline-domain[data-status="premium"] { color: var(--premium-violet); }
.headline-status.for_sale { color: var(--market-gold); background: rgba(226,196,106,.12); border-color: transparent; }
.headline-status.premium { color: var(--premium-violet); background: rgba(183,156,255,.14); border-color: transparent; }
.filters button[data-filter="for_sale"], .filters button[data-extension-filter="for_sale"] { color: var(--market-gold); }
.filters button[data-filter="premium"], .filters button[data-extension-filter="premium"] { color: var(--premium-violet); }
.filters button[data-filter="for_sale"][aria-pressed="true"], .filters button[data-extension-filter="for_sale"][aria-pressed="true"] { color: var(--market-gold); background: rgba(226,196,106,.12); border-color: var(--market-gold); }
.filters button[data-filter="premium"][aria-pressed="true"], .filters button[data-extension-filter="premium"][aria-pressed="true"] { color: var(--premium-violet); background: rgba(183,156,255,.14); border-color: var(--premium-violet); }
.extension-tile.for_sale { background: rgba(226,196,106,.12); border-color: rgba(226,196,106,.38); }
.extension-tile.for_sale:hover { background: rgba(226,196,106,.19); border-color: var(--market-gold); }
.extension-tile.for_sale .tile-extension { color: var(--market-gold); font-weight: 600; }
.extension-tile.premium { background: rgba(183,156,255,.18); border-color: rgba(183,156,255,.5); }
.extension-tile.premium:hover { background: rgba(183,156,255,.25); border-color: var(--premium-violet); }
.extension-tile.premium .tile-extension, .extension-tile.premium .tile-price { color: var(--text); font-weight: 650; }
.tile-premium-hint, .premium-pill { color: var(--premium-violet); background: rgba(183,156,255,.14); border-radius: 99px; padding: 2px 6px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.tile-premium-hint { margin-right: 8px; }
.price-from { color: var(--text-2); font-size: 11px; font-weight: 400; }
.pricing-note, .market-note { color: var(--text-2); font-size: 13px; line-height: 1.5; margin: 0 0 16px; }
.market-note strong { color: var(--market-gold); }
.market-link { display: inline-block; color: var(--market-gold); margin: 0 0 12px; font-weight: 650; }

.tile-price:has(.tile-premium-badge) { display: inline-flex; align-items: center; gap: 4px; }
.tile-premium-badge { color: var(--premium-violet); font-size: 10px; font-weight: 700; }
.row-price-link[aria-disabled="true"], .tile-price[aria-disabled="true"] { color: var(--premium-violet); cursor: default; font-size: 11px; }

/* Homepage identity and two-state search; results retain their existing bar. */
body:not(.has-search) { -webkit-user-select: none; user-select: none; }
/* Conditional deals are distinct from the standard comparison price. */
.row-price-stack { display: flex; flex-direction: column; align-items: flex-end; flex: 0 1 auto; min-width: 0; max-width: 48%; padding: 10px 0; }
.row-price-stack .row-price-link { padding: 0; }
.row-deal { display: flex; align-items: center; justify-content: flex-end; min-width: 0; max-width: 100%; gap: 4px; margin-top: 4px; color: var(--accent); font-size: 11px; text-align: right; text-decoration: none; }
.row-deal-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-deal:hover, .tile-deal:hover { text-decoration: underline; }
.price-group { min-width: 0; }
.offer-line { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; margin: 6px 4px 10px; padding: 8px 10px; border-left: 2px solid var(--accent); color: var(--text); font-size: 12px; line-height: 1.45; }
.offer-details { flex-basis: 100%; color: var(--text-2); font-size: 11px; }
.best-deal-label { color: var(--accent); font-weight: 700; }
.copy-code { border: 1px solid var(--border-strong); border-radius: 5px; padding: 3px 7px; background: var(--surface-2); color: var(--text); font-size: 11px; }
.tile-deal { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--accent); font-size: 11px; font-weight: 700; text-decoration: none; margin-right: 10px; }
.row-deal:focus-visible, .tile-deal:focus-visible, .copy-code:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Preserve the extension when a domain name must be shortened. */
.row-domain { flex: 1 1 0; min-width: 0; }
.row-domain .domain { display: flex; min-width: 0; overflow: hidden; overflow-wrap: normal; white-space: nowrap; }
.row-domain .row-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-domain .domain strong { flex: none; white-space: nowrap; }

/* Give conditional deals their own line so names keep the standard row width. */
.result-row.has-deal, .groups.single-group .result-row.has-deal { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; row-gap: 0; }
.result-row.has-deal .row-domain { padding-bottom: 3px; }
.result-row.has-deal .row-price-stack { max-width: none; padding-bottom: 0; }
.result-row.has-deal .row-deal { grid-column: 1 / -1; justify-self: end; margin: 6px 0 10px; font-size: 12px; }

/* Shared outline tag for conditional deals. */
.deal-icon { display: inline-block; flex: none; width: 14px; height: 14px; color: var(--accent); vertical-align: middle; }
.best-deal-label, .deal-tooltip-heading { display: inline-flex; align-items: center; gap: 4px; }
.deal-tooltip-heading { color: var(--accent); margin-bottom: 5px; }
.tile-deal { display: inline-flex; align-items: center; justify-content: center; }

/* A search hint replaces the browser's native required-field message. */
#search-form { position: relative; }
.search-hint { position: absolute; z-index: 5; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: max-content; max-width: 100%; margin: 0; padding: 9px 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface-2); color: var(--text); box-shadow: 0 8px 30px #0009; font-size: 13px; line-height: 1.4; text-align: center; }

/* Registrar comparison cards keep their own offers within the border. */
.price-group { min-width: 0; border: 1px solid var(--border); border-radius: var(--r-md); }
.price-group.has-best-deal { border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--border)); }
.price-group.cheapest { border: 1px solid var(--accent); }
.price-group .price-row { border: 0; border-radius: calc(var(--r-md) - 1px); }
.offers-section { border-top: 1px solid var(--border); padding: 12px 15px 14px; }
.offers-heading { margin-bottom: 9px; color: var(--text-2); font-size: 11px; font-weight: 700; }
.offer-line { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; }
.offer-line + .offer-line { margin-top: 14px; }
.offer-link { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; color: var(--text); font-size: 13px; font-weight: 600; line-height: 1.45; text-decoration: none; }
.offer-link:hover .offer-summary { text-decoration: underline; text-underline-offset: 3px; }
.offer-link .deal-icon { align-self: flex-start; margin-top: 2px; }
.offer-summary { min-width: 0; overflow-wrap: anywhere; }
.offer-code { display: inline-block; padding: 1px 4px; border-radius: 4px; background: var(--surface-3); font-family: ui-monospace, monospace; font-size: .92em; }
.offer-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.offer-details { color: var(--text-2); font-size: 11px; line-height: 1.45; }
.offer-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* Inline filter explanation and quick undo. */
.summary-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; min-width: 0; }
.filter-note { color: var(--text-2); font-size: 13px; }
.filter-note button { border: 0; padding: 0; background: transparent; color: var(--text-2); font: inherit; text-decoration: none; }
.filter-note button:hover { text-decoration: underline; text-underline-offset: 3px; }
.filter-note button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.filter-coachmark { position: fixed; z-index: 1001; width: min(300px, calc(100vw - 16px)); padding: 14px 16px; border: 1px solid var(--border-strong); border-left: 3px solid var(--accent); border-radius: 10px; background: var(--surface-2); color: var(--text); box-shadow: 0 8px 30px #0009; font-size: 13px; line-height: 1.45; animation: coachmark-enter .2s ease-out; }
.filter-coachmark[hidden] { display: none; }
.filter-coachmark::before { content: ""; position: absolute; left: var(--arrow-left); width: 10px; height: 10px; background: var(--surface-2); border: solid var(--border-strong); transform: translateX(-50%) rotate(45deg); }
.filter-coachmark[data-side="below"]::before { top: -6px; border-width: 1px 0 0 1px; }
.filter-coachmark[data-side="above"]::before { bottom: -6px; border-width: 0 1px 1px 0; }
.filter-coachmark strong { display: block; font-size: 14px; }
.filter-coachmark p { margin: 5px 0 10px; color: var(--text-2); }
.filter-coachmark button { border: 1px solid var(--border-strong); border-radius: 6px; padding: 5px 10px; background: var(--surface-3); color: var(--text); font: inherit; cursor: pointer; }
.filter-coachmark button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@keyframes coachmark-enter { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 480px) { .filter-coachmark { width: calc(100vw - 32px); } }
@media (prefers-reduced-motion: reduce) { .filter-coachmark { animation: none; } }

/* Keep registrar marks quiet until a result row is inspected. */
.result-row .reg-badge { filter: grayscale(1); opacity: .58; transition: filter 180ms ease, opacity 180ms ease; }
@media (hover: hover) {
  .result-row:hover .reg-badge, .result-row:focus-within .reg-badge { filter: grayscale(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .result-row .reg-badge { transition: none; } }

/* Extension search stays available while browsing the catalog. */
.extension-controls { position: sticky; top: 0; z-index: 4; background: var(--bg); padding: 12px 0; border-bottom: 1px solid var(--border); box-shadow: 0 8px 14px -14px #000b; }
.extension-search-wrap { flex: 1 0 100%; width: 100%; }
.extension-search { display: flex; align-items: center; gap: 8px; width: min(100%, 320px); padding: 7px 10px; border: 1px solid var(--border-strong); border-radius: 9px; background: var(--surface-1); color: var(--text-2); }
.extension-search:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.extension-search svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.extension-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 14px; }
.extension-search input::-webkit-search-cancel-button { display: none; }
.extension-search button { padding: 0 3px; border: 0; background: transparent; color: var(--text-2); font-size: 20px; line-height: 1; }
.extension-search button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.extension-exact { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (max-width: 650px) {
  .extension-controls { gap: 8px; }
  .extension-search { width: 100%; }
  .extension-actions { flex-wrap: wrap; gap: 8px; }
  .extension-actions .filters { flex: 0 0 100%; flex-wrap: nowrap; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; }
  .extension-actions .filters::-webkit-scrollbar { display: none; }
  .extension-actions .filters button { white-space: nowrap; }
}

.extension-search-group { padding: 20px 0; border-top: 1px solid var(--border); }
.extension-search-group h3 { margin: 0 0 12px; font-size: 14px; color: var(--text-2); }

@media (max-width: 640px) {
  .sheet { top: auto; left: 0; right: 0; bottom: 0; width: 100%; height: 92vh; height: 92dvh; max-height: 92vh; max-height: 92dvh; display: flex; flex-direction: column; overflow: hidden; padding: 0 22px max(24px, env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; animation: none; transform: translate3d(0, var(--sheet-offset, 100%), 0); transition: transform var(--sheet-dur, 300ms) cubic-bezier(.2, .9, .25, 1); }
  .sheet.sheet-open, .sheet.sheet-closing { transform: translate3d(0, var(--sheet-offset, 100%), 0); }
  .sheet.sheet-closing { transition: transform var(--sheet-dur, 240ms) cubic-bezier(.2, .9, .25, 1); }
  .sheet:focus { outline: none; }
  .sheet-top { flex: none; position: relative; min-height: 56px; padding-top: 18px; margin-bottom: 14px; touch-action: none; }
  .sheet-top::before { content: ""; position: absolute; top: 10px; left: 50%; width: 36px; height: 4px; border-radius: 999px; background: var(--text-3); transform: translateX(-50%); }
  .sheet #close-sheet { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .sheet #close-sheet:focus-visible { position: static; width: auto; height: auto; clip: auto; margin: 0; padding: 4px; font-size: 0; }
  .sheet #close-sheet:focus-visible::after { content: "Close"; font-size: 14px; }
  .sheet #sheet-content { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
  .sheet.sheet-dragging, .sheet.sheet-no-transition { transition: none; }
}
@media (prefers-reduced-motion: reduce) {
  .scrim { transition: opacity 150ms ease; }
  .sheet { transform: none; opacity: 0; transition: opacity 150ms ease; }
  .sheet.sheet-open { opacity: 1; }
  .sheet.sheet-closing { opacity: 0; transition: opacity 150ms ease; }
}
@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .sheet, .sheet.sheet-open, .sheet.sheet-closing { transform: translate3d(0, var(--sheet-offset, 0px), 0); transition: opacity 150ms ease; }
}

@media (max-width: 650px) { .home-identity span { font-size: clamp(23px, 7vw, 34px); } }
