/* Domain discovery shares the storefront's brand, with explicit live-check states. */
.domain-box {
  --ds-accent: var(--purple,#673de6);
  --ds-ink: var(--ink,#24153f);
  --ds-muted: #746780;
  --ds-line: #e5ddef;
  background: radial-gradient(ellipse at 100% 0%,#eee5fc 0,transparent 45%),linear-gradient(135deg,#f8f5ff,#f5f2fa);
  isolation: isolate;
}
.domain-box .domain-intro h2 { text-wrap: balance; }
.domain-box #domain-form { max-width: 850px; margin-inline: auto; }
.domain-box .domain-input-wrap {
  min-height: 70px;
  padding: 8px 8px 8px 22px;
  gap: 14px;
  border: 1px solid #d8caec;
  border-radius: 16px;
  box-shadow: 0 5px 24px #5a2a9210;
  transition: border-color .2s,box-shadow .2s;
}
.domain-box .domain-input-wrap:focus-within { outline: 3px solid #bca1ed65; outline-offset: 3px; border-color: var(--ds-accent); box-shadow: 0 8px 30px #6337a51a; }
.domain-box .domain-input-wrap>svg { width: 22px; height: 22px; color: var(--ds-accent); }
.domain-box .domain-input-wrap input { font-size: 16px; padding: 12px 0; line-height: 1.5; letter-spacing: -.015em; }
.domain-box .domain-input-wrap input::placeholder { color: #94879f; }
#main:not(.portal-host) .domain-box .domain-input-wrap .button { min-height: 52px; padding: 13px 23px; font-size: 14px; flex-shrink: 0; border-radius: 11px; }
.domain-box #domain-form[aria-busy="true"] .domain-input-wrap>svg { animation: ds-scan 1.8s ease-in-out infinite; }
.ds-input-help { display: flex; align-items: flex-start; gap: 7px; margin: 11px 2px 0; font-size: 12px; line-height: 1.65; color: var(--ds-muted); text-align: left; }
.ds-input-help svg { width: 15px; height: 15px; margin-top: 2px; }
.ds-tld-shortcuts { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 9px; margin: 24px auto 0; }
.ds-tld-shortcuts .tld-chip { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 44px; padding: 10px 13px; border: 1px solid #e3d8f1; background: #ffffffbd; border-radius: 11px; line-height: 1.4; }
.ds-tld-shortcuts .tld-chip>b { font-size: 15px; color: var(--ds-accent); }
.ds-tld-shortcuts .tld-chip>span { font-size: 12px; color: var(--ds-muted); }
.ds-tld-shortcuts .tld-chip small { font-size: 11px; padding-left: 2px; }
.ds-tld-shortcuts .tld-chip:hover { border-color: #c4addf; background: white; box-shadow: 0 5px 16px #4924770b; }
.ds-tld-shortcuts .tld-chip:focus-visible { outline: 3px solid #b39adb; outline-offset: 3px; }
#domain-results { text-align: left; }
.ds-workspace { margin-top: 30px; padding-top: 28px; border-top: 1px solid #e2d7ef; animation: ds-reveal .35s ease both; }
.ds-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.ds-heading>div { min-width: 0; }
.ds-heading h3 { margin: 0 0 7px; font-size: 23px; line-height: 1.3; color: var(--ds-ink); letter-spacing: -.035em; overflow-wrap: anywhere; }
.ds-heading p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--ds-muted); }
.ds-query-badge { display: inline-flex; align-items: center; gap: 7px; max-width: 45%; min-height: 38px; padding: 8px 13px; border: 1px solid #dfd3ee; border-radius: 30px; background: #fff; color: var(--ds-accent); font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.ds-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 17px; }
.ds-categories { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; flex: 1 1 350px; }
.ds-categories button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px 13px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #72627f; font-size: 13px; font-weight: 550; line-height: 1.45; transition: color .2s,background .2s,border-color .2s; }
.ds-categories button:hover { background: #ece3f8; color: var(--ds-ink); }
.ds-categories button.active,.ds-categories button[aria-pressed="true"] { background: var(--brand-dark,#24153f); color: #fff; border-color: var(--brand-dark,#24153f); box-shadow: 0 3px 9px #24153f12; }
.ds-categories button small { font-size: 11px; opacity: .78; }
.ds-extension-filter { display: flex; align-items: center; gap: 8px; flex: 0 1 230px; min-width: 180px; min-height: 44px; padding: 0 12px; border: 1px solid #ded2eb; border-radius: 10px; background: #fff; color: #897395; }
.ds-extension-filter input { width: 100%; min-width: 0; height: 44px; border: 0; padding: 10px 0; border-radius: 8px; background: transparent; color: var(--ds-ink); font-size: 13px; outline: none; }
.ds-extension-filter input::placeholder { color: #897b96; }
.ds-extension-filter:focus-within { border-color: var(--ds-accent); outline: 3px solid #c8b1ee70; outline-offset: 2px; }
.ds-extension-filter>svg { width: 17px; height: 17px; }
.ds-sort { display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 44px; padding-left: 4px; color: var(--ds-muted); font-size: 12px; line-height: 1.5; }
.ds-sort select { min-width: 0; max-width: 215px; min-height: 44px; padding: 10px 28px 10px 12px; border: 1px solid #ded2eb; border-radius: 10px; background: #fff; color: var(--ds-ink); font-size: 13px; line-height: 1.5; }
.ds-sort select:focus-visible { border-color: var(--ds-accent); outline: 3px solid #c8b1ee70; outline-offset: 2px; }
.ds-summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 18px; margin: 0 0 10px; font-size: 12px; line-height: 1.6; color: var(--ds-muted); }
#ds-progress { display: flex; align-items: center; gap: 7px; min-height: 24px; }
#main:not(.portal-host) #ds-pause { min-height: 44px; padding: 9px 12px; font-size: 12px; border: 1px solid #dacfE7; border-radius: 10px; background: #fff; color: #6c4e8d; }
#ds-pause:hover:not(:disabled) { border-color: var(--ds-accent); color: var(--ds-accent); }
.ds-progress-track { width: 100%; height: 4px; margin: 0 0 21px; border-radius: 10px; background: #e4d9f0; overflow: hidden; }
.ds-progress-track>i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--ds-accent),#b18aec); transition: width .35s ease; }
.ds-results { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; align-items: stretch; }
.ds-result { display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "name status" "price action" "error error"; align-items: center; gap: 18px 14px; position: relative; isolation: isolate; min-width: 0; min-height: 164px; padding: 21px; border: 1px solid var(--ds-line); border-radius: 16px; background: #fff; box-shadow: 0 3px 10px #25153b03; overflow: hidden; animation: ds-reveal .3s ease both; transition: border-color .2s,box-shadow .2s; }
.ds-result:hover { border-color: #cebee0; box-shadow: 0 8px 24px #36214d07; }
.ds-result>[class] { position: relative; z-index: 1; }
.ds-result-name { grid-area: name; display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--ds-ink); }
.ds-result-name>svg,.ds-result-name>.ds-result-icon { color: #8b64bf; width: 21px; height: 21px; flex-shrink: 0; }
.ds-result-name>div { min-width: 0; }
.ds-result-name strong { display: block; font-size: 18px; line-height: 1.4; font-weight: 650; letter-spacing: -.03em; overflow-wrap: anywhere; }
.ds-result-name small { display: block; margin-top: 3px; font-size: 11px; line-height: 1.5; color: #8c7c98; }
.ds-result-status { grid-area: status; display: inline-flex; align-items: center; justify-content: center; gap: 6px; justify-self: end; padding: 5px 8px; border-radius: 7px; background: #f1edf7; color: #7b6c88; font-size: 11px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.ds-result-status svg { width: 13px; height: 13px; }
.ds-result-price { grid-area: price; align-self: center; min-width: 0; }
.ds-result-price b { display: block; color: var(--ds-ink); font-size: 22px; font-weight: 650; letter-spacing: -.04em; line-height: 1.35; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ds-result-price small { display: block; margin-top: 4px; font-size: 11px; color: var(--ds-muted); line-height: 1.5; }
.ds-result-action { grid-area: action; justify-self: end; }
.ds-result-action>span { display: block; max-width: 140px; color: #8c7c98; font-size: 12px; line-height: 1.6; text-align: right; overflow-wrap: anywhere; }
#main:not(.portal-host) .ds-result-action .button { min-height: 44px; padding: 10px 13px; border-radius: 10px; font-size: 12px; gap: 7px; }
.ds-result-action .button svg { width: 16px; height: 16px; }
.ds-result-action button:disabled { opacity: 1; background: #f2eff6; color: #897b98; border-color: #e9e2f1; cursor: default; box-shadow: none; }
.ds-result-error { grid-area: error; margin: -2px 0 0; padding: 10px 11px; border-radius: 9px; background: #fff7f0; color: #98603d; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.ds-result[data-status="available"] { border-color: #c9e7db; }
.ds-result[data-status="available"] .ds-result-status { color: #14704e; background: #e8f7ef; }
.ds-result[data-status="available"] .ds-result-name>svg { color: #32906b; }
.ds-result[data-status="unavailable"] .ds-result-status { color: #7c667f; background: #f0ebf2; }
.ds-result[data-status="unavailable"] .ds-result-name>svg { color: #a497ae; }
.ds-result[data-status="error"] { border-color: #eedac7; }
.ds-result[data-status="error"] .ds-result-status { color: #946031; background: #fff3e7; }
.ds-result[data-status="checking"] { border-color: #cdb6ec; }
.ds-result[data-status="checking"] .ds-result-status { color: #7344a8; background: #f1e9fd; }
.ds-result[data-status="checking"]::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(105deg,transparent 20%,#efe6fc55 45%,transparent 70%); transform: translateX(-100%); animation: ds-shimmer 2.4s ease-in-out infinite; pointer-events: none; }
.ds-spinner { display: inline-block; flex-shrink: 0; width: 13px; height: 13px; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ds-spin .9s linear infinite; }
.ds-skeleton { display: block; width: 110px; max-width: 100%; height: 23px; border-radius: 5px; background: #eee7f6; animation: ds-pulse 1.6s ease-in-out infinite; }
.ds-skeleton.small { width: 70px; height: 11px; margin-top: 8px; }
.ds-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 23px; padding-top: 21px; border-top: 1px solid #e6dfee; }
.ds-pagination>span { text-align: center; font-size: 12px; line-height: 1.6; color: var(--ds-muted); font-variant-numeric: tabular-nums; }
#main:not(.portal-host) .ds-pagination .button { min-height: 44px; padding: 10px 14px; font-size: 12px; gap: 7px; background: #ffffffb0; }
#main:not(.portal-host) .ds-pagination .button.primary { background: var(--ds-accent); color: #fff; }
.ds-pagination .button:disabled { opacity: .4; cursor: default; }
.ds-empty { display: grid; justify-items: center; gap: 10px; padding: 35px 22px; border: 1px dashed #d5c5e5; border-radius: 15px; background: #ffffff80; color: #79668b; text-align: center; font-size: 14px; line-height: 1.75; }
.ds-empty svg { color: #a58abf; width: 30px; height: 30px; }
.ds-empty h3,.ds-empty p { margin: 0; }
.ds-empty h3 { font-size: 19px; color: var(--ds-ink); }
.ds-empty p { max-width: 440px; font-size: 13px; line-height: 1.7; }
.ds-disclaimer { display: flex; gap: 7px; margin: 20px 0 0; color: #867492; font-size: 11px; line-height: 1.75; }
.ds-disclaimer svg { width: 15px; height: 15px; margin-top: 2px; }
.ds-result>.ds-disclaimer { grid-column: 1/-1; margin: 0; padding-top: 10px; border-top: 1px solid #eee8f4; font-size: 10px; }

@keyframes ds-spin { to { transform: rotate(360deg); } }
@keyframes ds-pulse { 0%,100% { opacity: .6; } 50% { opacity: 1; } }
@keyframes ds-scan { 0%,100% { transform: scale(1) rotate(-8deg); opacity: .65; } 50% { transform: scale(1.12) rotate(8deg); opacity: 1; } }
@keyframes ds-shimmer { to { transform: translateX(100%); } }
@keyframes ds-reveal { from { opacity: .4; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width:1050px) {
  .ds-result { padding: 18px; gap: 16px 10px; }
  .ds-result { grid-template-areas: "name name" "status status" "price action" "error error"; }
  .ds-result-status { justify-self: start; margin-top: -6px; }
  .ds-result-name { gap: 8px; }
  .ds-result-name strong { font-size: 16px; }
  .ds-result-name>svg { display: none; }
  .ds-result-price b { font-size: 20px; }
}
@media (max-width:760px) {
  .ds-heading { align-items: flex-start; }
  .ds-heading h3 { font-size: 21px; }
  .ds-heading p { font-size: 12px; }
  .ds-query-badge { max-width: 40%; font-size: 12px; }
  .ds-toolbar { gap: 10px; }
  .ds-categories { flex-basis: 100%; }
  .ds-extension-filter { flex: 1 1 100%; }
  .ds-sort { justify-content: space-between; flex: 1 1 100%; padding-left: 0; }
  .ds-sort select { flex: 1 1 auto; max-width: 250px; }
}
@media (max-width:640px) {
  .domain-box { padding: 27px 18px 24px; }
  .domain-box .domain-intro .eyebrow { font-size: 10px; }
  #main:not(.portal-host) .domain-box .domain-intro h2 { font-size: 25px; margin-bottom: 24px; line-height: 1.2; }
  .domain-box .domain-input-wrap { display: grid; grid-template-columns: 20px minmax(0,1fr); gap: 0 10px; padding: 10px; min-height: 0; border-radius: 14px; }
  .domain-box .domain-input-wrap>svg { width: 20px; height: 20px; margin-left: 3px; }
  .domain-box .domain-input-wrap input { min-height: 46px; font-size: 16px; padding: 10px 0; }
  #main:not(.portal-host) .domain-box .domain-input-wrap .button { grid-column: 1/-1; width: 100%; min-height: 46px; margin-top: 5px; padding: 11px 18px; font-size: 14px; gap: 8px; }
  .domain-box .domain-input-wrap .button>svg { display: block; width: 17px; height: 17px; }
  .ds-input-help { font-size: 11px; gap: 5px; }
  .ds-tld-shortcuts { gap: 7px; margin-top: 20px; }
  .ds-tld-shortcuts .tld-chip { min-height: 44px; padding: 9px 11px; gap: 5px; }
  .ds-tld-shortcuts .tld-chip>b { font-size: 14px; }
  .ds-tld-shortcuts .tld-chip>span { font-size: 11px; }
  .ds-tld-shortcuts .tld-chip small { font-size: 10px; }
  .ds-workspace { padding-top: 22px; margin-top: 23px; }
  .ds-heading { flex-direction: column; gap: 11px; margin-bottom: 17px; }
  .ds-heading h3 { font-size: 21px; }
  .ds-query-badge { max-width: 100%; min-height: 32px; padding: 6px 11px; font-size: 12px; }
  .ds-categories { gap: 4px; }
  .ds-categories button { min-height: 44px; padding: 9px 10px; font-size: 12px; }
  .ds-extension-filter input { font-size: 16px; }
  .ds-sort select { max-width: 220px; font-size: 14px; }
  .ds-summary { gap: 7px; margin-top: 15px; font-size: 11px; }
  #ds-progress { flex: 1 1 160px; }
  #main:not(.portal-host) #ds-pause { font-size: 11px; padding-inline: 10px; }
  .ds-progress-track { margin-bottom: 16px; }
  .ds-results { grid-template-columns: minmax(0,1fr); gap: 11px; }
  .ds-result { min-height: 152px; padding: 18px 15px; border-radius: 13px; gap: 17px 9px; }
  .ds-result-name strong { font-size: 17px; }
  .ds-result-name small { font-size: 10px; }
  .ds-result-status { font-size: 10px; padding: 5px 7px; gap: 4px; }
  .ds-result-price b { font-size: 22px; }
  .ds-result-price small { font-size: 10px; }
  #main:not(.portal-host) .ds-result-action .button { min-height: 44px; padding: 10px 12px; font-size: 12px; }
  .ds-result-error { font-size: 11px; padding: 9px; }
  .ds-pagination { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 10px 7px; margin-top: 19px; padding-top: 17px; }
  .ds-pagination #ds-check-page { grid-column: 1/-1; width: 100%; }
  .ds-pagination>span { font-size: 11px; }
  #main:not(.portal-host) .ds-pagination .button { padding: 10px 11px; font-size: 11px; }
  .ds-pagination .button svg { width: 14px; height: 14px; }
  .ds-disclaimer { font-size: 10px; margin-top: 17px; }
}
@media (max-width:370px) {
  .ds-result { grid-template-areas: "name name" "status status" "price action" "error error"; gap: 10px; }
  .ds-result-status { justify-self: start; }
  .ds-result-price b { font-size: 20px; }
}
.reduced-motion .ds-workspace,.reduced-motion .ds-result,.reduced-motion .ds-result::before,.reduced-motion .ds-spinner,.reduced-motion .ds-skeleton,.reduced-motion #domain-form[aria-busy="true"] .domain-input-wrap>svg { animation: none; }
.reduced-motion .ds-progress-track>i,.reduced-motion .domain-input-wrap,.reduced-motion .ds-tld-shortcuts .tld-chip,.reduced-motion .ds-result,.reduced-motion .ds-categories button { transition: none; }
@media (prefers-reduced-motion:reduce) {
  .ds-workspace,.ds-result,.ds-result::before,.ds-spinner,.ds-skeleton,.domain-box #domain-form[aria-busy="true"] .domain-input-wrap>svg { animation: none; }
  .ds-progress-track>i,.domain-input-wrap,.ds-tld-shortcuts .tld-chip,.ds-result,.ds-categories button { transition: none; }
}

/* Availability is a comparison list: keep each domain on a stable, aligned row. */
.ds-heading-actions { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 9px; flex: 0 0 auto; }
.ds-heading-actions .ds-query-badge { max-width: 100%; }
#main:not(.portal-host) .ds-cart-link { min-height: 44px; padding: 10px 13px; font-size: 12px; gap: 7px; background: #fff; white-space: nowrap; }
.ds-cart-link svg { width: 16px; height: 16px; }
.ds-results { display: flex; flex-direction: column; gap: 0; border: 1px solid #e0d5ec; border-radius: 15px; background: #fff; overflow: hidden; }
.ds-list-heading,.ds-result { grid-template-columns: minmax(180px,1.6fr) minmax(140px,.9fr) minmax(160px,1.1fr) minmax(110px,auto); column-gap: 19px; }
.ds-list-heading { display: grid; align-items: center; min-height: 49px; padding: 13px 21px; border-bottom: 1px solid #e6dcee; background: #f8f5fc; color: #95809f; font-size: 11px; font-weight: 650; letter-spacing: .035em; line-height: 1.5; }
.ds-list-heading>:last-child { text-align: right; }
.ds-result { grid-template-areas: "name status price action" "error error error error"; min-height: 103px; padding: 21px; row-gap: 0; border: 0; border-bottom: 1px solid #ece5f3; border-radius: 0; box-shadow: none; background: #fff; animation: none; transition: background .2s ease; }
.ds-result:last-child { border-bottom: 0; }
.ds-result:hover { border-color: #ece5f3; box-shadow: none; background: #fcfaff; }
.ds-result-name { gap: 10px; }
.ds-result-name>svg { display: block; width: 20px; height: 20px; }
.ds-result-name strong { font-size: 17px; line-height: 1.45; }
.ds-result-name small { font-size: 11px; }
.ds-result-status { justify-self: start; margin: 0; white-space: normal; text-align: left; padding: 5px 8px; font-size: 11px; }
.ds-result-status svg,.ds-result-status .ds-spinner { flex-shrink: 0; }
.ds-result-price b { font-size: 20px; }
.ds-result-price small { font-size: 11px; }
.ds-result-action>span { font-size: 12px; }
.ds-result[data-status="available"],.ds-result[data-status="error"],.ds-result[data-status="checking"] { border-color: #ece5f3; }
.ds-result[data-status="checking"] { background: #fcfaff; }
.ds-result-error { margin: 13px 0 0; }
.ds-result>.ds-disclaimer { margin-top: 11px; padding-top: 9px; }
.ds-results>.ds-empty { border: 0; border-radius: 0; }
@media (min-width:901px) and (max-width:1100px) {
  .ds-list-heading,.ds-result { grid-template-columns: minmax(145px,1.45fr) minmax(110px,.95fr) minmax(140px,1.15fr) minmax(100px,auto); column-gap: 13px; padding-inline: 17px; }
  .ds-result-name>svg { display: none; }
  .ds-result-name strong { font-size: 16px; }
  .ds-result-price b { font-size: 18px; }
  .ds-result-price small { font-size: 10px; }
  #main:not(.portal-host) .ds-result-action .button { padding-inline: 11px; }
}
@media (max-width:900px) {
  .ds-list-heading { display: none; }
  .ds-result { grid-template-columns: minmax(0,1fr) minmax(105px,auto); grid-template-areas: "name status" "price action" "error error"; min-height: 149px; gap: 17px 20px; padding: 20px; }
  .ds-result-name>svg { display: block; }
  .ds-result-status { justify-self: end; max-width: 142px; }
  .ds-result-name strong { font-size: 18px; }
  .ds-result-price b { font-size: 21px; }
  .ds-result-error,.ds-result>.ds-disclaimer { margin-top: 0; }
}
@media (max-width:640px) {
  .ds-heading-actions { justify-content: flex-start; gap: 8px; width: 100%; }
  #main:not(.portal-host) .ds-cart-link { margin-left: auto; font-size: 11px; padding-inline: 10px; }
  .ds-results { border-radius: 12px; }
  .ds-result { grid-template-columns: minmax(0,1fr) minmax(98px,auto); grid-template-areas: "name name" "status status" "price action" "error error"; min-height: 157px; gap: 10px 12px; padding: 19px 15px; }
  .ds-result-name>svg { width: 18px; height: 18px; }
  .ds-result-name strong { font-size: 17px; }
  .ds-result-name small { font-size: 10px; }
  .ds-result-status { justify-self: start; max-width: 100%; font-size: 10px; margin: -1px 0 3px; }
  .ds-result-price b { font-size: 20px; }
  .ds-result-price small { font-size: 10px; }
  .ds-result-action>span { max-width: 120px; font-size: 11px; }
  #main:not(.portal-host) .ds-result-action .button { padding-inline: 10px; font-size: 11px; }
  .ds-result>.ds-disclaimer { padding-top: 7px; }
}
.reduced-motion .ds-result { transition: none; }
@media (prefers-reduced-motion:reduce) { .ds-result { transition: none; } }
