/**
 * Brandagy public domain search.
 *
 * One composer, one exact answer, one results card with four tabs, one rail.
 * Colours inherit the site's tokens.css through var(--x, fallback) so the page
 * never carries a second palette; only geometry is page-local. No box shadows:
 * every surface is separated by a hairline instead.
 */

.bysd-ps {
  --ps-bg: var(--bg, #f8f7f6);
  --ps-surface: var(--surface, #fff);
  --ps-tint: var(--tint, #f4f4ee);
  --ps-bay: #fbfbf7;
  --ps-line: var(--line, #e2e4d9);
  --ps-hair: var(--line-soft, #edece6);
  --ps-row-line: #efefe7;
  --ps-ink: var(--ink, #0b3b2e);
  --ps-mid: #1f6b4f;
  --ps-lime: #e9f8bc;
  --ps-lime-soft: #eaf6d7;
  --ps-lime-line: #dcefa6;
  --ps-text: var(--text, rgba(0, 0, 0, .9));
  --ps-muted: var(--text-muted, rgba(0, 0, 0, .6));
  --ps-label: #4e6158;
  --ps-soft: var(--text-soft, #93a498);
  --ps-ok: var(--success, #2f7a55);
  --ps-ok-tint: #e8f3ec;
  --ps-ok-line: #cfe6d8;
  --ps-warn: var(--warning, #b4761e);
  --ps-warn-tint: #faf1e2;
  --ps-bad: var(--error, #a33a3a);
  --ps-bad-tint: #f9eaea;
  --ps-pill: 999px;
  color: var(--ps-text);
  font-family: var(--font, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", sans-serif);
  background: var(--ps-bg);
}

.bysd-ps, .bysd-ps *, .bysd-ps *::before, .bysd-ps *::after { box-sizing: border-box; font-family: inherit; }
.bysd-ps svg { inline-size: 18px; block-size: 18px; flex-shrink: 0; }
.bysd-ps [hidden] { display: none !important; }

.bysd-ps__trap {
  position: absolute !important; inline-size: 1px !important; block-size: 1px !important;
  margin: -1px !important; padding: 0 !important; overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important; clip-path: inset(50%) !important;
  white-space: nowrap !important; border: 0 !important;
}
.bysd-ps__status { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0,0,0,0); }

@keyframes bysd-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes bysd-spin { to { transform: rotate(360deg); } }
/* The sweep drives background-position rather than a transformed overlay, so
   the gradient inherits the page direction and reads right-to-left in Arabic. */
@keyframes bysd-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  .bysd-ps *, .bysd-ps *::before, .bysd-ps *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.bysd-ps a:focus-visible,
.bysd-ps button:focus-visible,
.bysd-ps input:focus-visible,
.bysd-ps [tabindex]:focus-visible { outline: 2px solid var(--ps-mid); outline-offset: 2px; }

/* ================================================================ hero == */

/* The wash sits behind the heading and the composer together, so the whole
   block reads as one object rather than a glow under a title. It is a
   pseudo-element pinned behind the content, never a painted box over the field,
   and it reaches the viewport edge past the centred column. */
.bysd-ps__hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.bysd-ps__hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  inset: -22% -8% -14%;
  background: radial-gradient(ellipse 48% 44% at 50% 42%, rgba(159, 232, 112, .20) 0%, rgba(159, 232, 112, .10) 38%, rgba(159, 232, 112, .035) 62%, transparent 78%);
  filter: blur(24px);
}
.bysd-ps__hero-inner { position: relative; z-index: 1; }


.bysd-ps__hero-inner {
  position: relative; z-index: 1;
  max-inline-size: 1200px; margin: 0 auto;
  padding: 46px 18px 30px; text-align: center;
}

.bysd-ps__title {
  margin: 0 0 12px; color: var(--ps-ink);
  font-size: clamp(1.75rem, 4.2vw, 2.5rem); line-height: 1.16;
  letter-spacing: -.032em; font-weight: 700; text-wrap: balance;
}

.bysd-ps__lede {
  margin: 0 auto 26px; max-inline-size: 62ch;
  color: var(--ps-muted); font-size: 1rem; line-height: 1.7; text-wrap: pretty;
}

.bysd-ps__form { inline-size: 100%; }

/* ----------------------------------------------------------- composer == */

/* A white shell wrapping a second white card: the 5px gutter between the two
   radii is the whole visual weight of the field, which is why there is no
   shadow anywhere on this page. */
.bysd-composer {
  inline-size: min(100%, 820px); margin: 0 auto;
  background: var(--ps-surface); border: 1px solid var(--ps-hair);
  border-radius: 26px; padding: 5px;
}

.bysd-composer__card {
  background: var(--ps-surface); border: 1px solid var(--ps-hair);
  border-radius: 22px; padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
}

.bysd-composer__field { display: flex; align-items: center; gap: 10px; }

.bysd-composer__input {
  flex: 1; min-inline-size: 0; border: 0; background: transparent; color: var(--ps-text);
  font: inherit; font-size: 17.5px; line-height: 28px; padding: 0; text-align: start;
}
.bysd-composer__input:focus { outline: none; }
.bysd-composer__input::placeholder { color: var(--ps-soft); }

.bysd-composer__clear {
  order: 2; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  inline-size: 32px; block-size: 32px; border-radius: 50%;
  background: var(--ps-tint); border: 0; color: var(--ps-label); cursor: pointer;
  transition: background .18s cubic-bezier(.2, .7, .2, 1);
}
.bysd-composer__clear:hover { background: #e8e7e1; color: var(--ps-ink); }
.bysd-composer__clear svg { inline-size: 13px; block-size: 13px; }

.bysd-composer__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bysd-composer__spacer { flex: 1; min-inline-size: 8px; }

.bysd-composer__ai {
  display: inline-flex; align-items: center; gap: 10px;
  block-size: 44px; padding-inline: 6px; border-radius: var(--ps-pill);
  border: 1px solid transparent; background: transparent; cursor: pointer;
  color: var(--ps-mid); font: inherit; font-size: 15.5px; font-weight: 600;
  transition: background .18s cubic-bezier(.2, .7, .2, 1), border-color .18s cubic-bezier(.2, .7, .2, 1);
}
.bysd-composer__ai:hover { background: var(--ps-tint); }
.bysd-composer__ai[aria-pressed="true"] {
  background: var(--ps-lime-soft); border-color: var(--ps-lime-line); color: var(--ps-ink);
  padding-inline-end: 16px;
}

.bysd-composer__ai-well {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  inline-size: 34px; block-size: 34px; border-radius: 50%;
  background: var(--ps-lime); color: var(--ps-mid);
}
.bysd-composer__ai-well svg { inline-size: 18px; block-size: 18px; }

.bysd-composer__send {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  inline-size: 44px; block-size: 44px; border-radius: 50%;
  background: var(--ps-ink); border: 0; color: #fff; cursor: pointer;
  transition: background .18s cubic-bezier(.2, .7, .2, 1);
}
.bysd-composer__send:hover { background: var(--ink-hover, #12513d); }
.bysd-composer__send:disabled { opacity: .55; cursor: default; }
.bysd-composer__send-icon { inline-size: 19px; block-size: 19px; }
/* The arrow points along the reading direction, so it turns with the document. */
html[dir="rtl"] .bysd-composer__send-icon { transform: scaleX(-1); }
.bysd-composer__send[aria-busy="true"] .bysd-composer__send-icon { visibility: hidden; }

.bysd-composer__spinner {
  position: absolute; inline-size: 16px; block-size: 16px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  animation: bysd-spin .8s linear infinite;
}

.bysd-ps__error { margin: 10px 0 0; color: var(--ps-bad); font-size: 13px; text-align: center; }

/* On a narrow screen the action row still holds one line: a send button alone
   on a second line reads as a separate control rather than the end of the
   field it belongs to. */
@media (max-width: 560px) {
  .bysd-ps__hero-inner { padding-block-start: 32px; }
  .bysd-composer__card { padding: 16px; gap: 12px; }
  .bysd-composer__actions { flex-wrap: nowrap; }
  .bysd-composer__ai { font-size: 14px; gap: 8px; }
  .bysd-composer__ai-label { white-space: nowrap; }
  .bysd-composer__input { font-size: 16px; }
}

/* One centred line naming the active mode, with a small glyph. */
.bysd-ps__mode-note {
  display: flex; align-items: flex-start; justify-content: center; gap: 8px;
  margin: 16px auto 0; max-inline-size: 68ch;
  font-size: 13.5px; line-height: 20px; color: var(--ps-label); text-align: center;
}
.bysd-ps__mode-note::before {
  content: ""; inline-size: 14px; block-size: 14px; flex-shrink: 0; margin-block-start: 3px;
  background: currentColor; opacity: .5;
  -webkit-mask: center / contain no-repeat url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M9 18h6M10 21h4'/%3E%3Cpath d='M12 3a6 6 0 0 0-3.5 10.9c.4.3.5.7.5 1.1h6c0-.4.1-.8.5-1.1A6 6 0 0 0 12 3Z'/%3E%3C/svg%3E");
  mask: center / contain no-repeat url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M9 18h6M10 21h4'/%3E%3Cpath d='M12 3a6 6 0 0 0-3.5 10.9c.4.3.5.7.5 1.1h6c0-.4.1-.8.5-1.1A6 6 0 0 0 12 3Z'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------- quickrow */

/* Stateful controls first, then a rule, then disposable suggestions. The row
   gap is 10px so the rule's own 4px margins add up to the 14px of air the
   divider needs on either side, and a bare word sits 26px from its neighbour. */
.bysd-ps__quickrow {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  flex-wrap: wrap; margin-block-start: 20px;
}

.bysd-ps__quickrule { inline-size: 1px; block-size: 26px; background: var(--ps-line); margin-inline: 4px; }

.bysd-quick {
  position: relative;
  display: inline-flex; align-items: center; gap: 9px;
  block-size: 44px; padding-inline: 18px;
  border-radius: var(--ps-pill); border: 1px solid var(--ps-line);
  background: var(--ps-surface); color: var(--ps-ink);
  font: inherit; font-size: 14.5px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: border-color .18s cubic-bezier(.2, .7, .2, 1), background .18s cubic-bezier(.2, .7, .2, 1);
}
.bysd-quick svg { inline-size: 17px; block-size: 17px; }
.bysd-quick:hover { background: var(--ps-tint); }
.bysd-quick[aria-expanded="true"] { background: var(--ps-lime-soft); border-color: var(--ps-lime-line); }

/* The bookmark reports its own state: outlined while nothing is saved, solid
   once something is, so the saved pill needs no second badge beside it. */
.bysd-quick.is-saved svg { fill: currentColor; }

.bysd-quick__badge {
  position: absolute; inset-block-start: -7px; inset-inline-end: -7px;
  min-inline-size: 22px; block-size: 22px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--ps-pill); background: var(--ps-lime); border: 2px solid var(--ps-surface);
  color: var(--ps-ink); font-size: 12px; font-weight: 700; direction: ltr;
}

/* A popular term is a throwaway shortcut, not a control: no container, no
   background — only the word, underlined when the pointer is on it. */
.bysd-example {
  display: inline-flex; align-items: center; block-size: 34px; padding-inline: 8px;
  border: 0; background: transparent;
  color: var(--ps-muted); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
  transition: color .18s cubic-bezier(.2, .7, .2, 1);
}
.bysd-example:hover {
  color: var(--ps-ink);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}

/* Narrow: the two pills hold one line and the words wrap under them. The rule
   divided two groups that are no longer side by side, so it goes. */
@media (max-width: 700px) {
  .bysd-ps__quickrule { display: none; }
  .bysd-example { padding-inline: 6px; }
}

/* ------------------------------------------------- history / saved pops */

.bysd-pop {
  inline-size: min(100%, 620px); margin: 14px auto 0; text-align: start;
  background: var(--ps-surface); border: 1px solid var(--ps-line); border-radius: 18px;
  padding: 16px 18px; animation: bysd-rise .22s cubic-bezier(.2, .7, .2, 1);
}
.bysd-pop__head { display: flex; align-items: center; gap: 10px; margin-block-end: 4px; }
.bysd-pop__title { margin: 0; font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--ps-muted); font-weight: 600; }
.bysd-pop__action {
  margin-inline-start: auto; background: none; border: 0; padding: 0;
  color: var(--ps-muted); font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; text-decoration: none;
}
.bysd-pop__action:hover { color: var(--ps-ink); }
.bysd-pop__row {
  display: flex; align-items: center; gap: 10px; min-block-size: 46px;
  inline-size: calc(100% + 20px); margin-inline: -10px; padding: 4px 10px;
  border: 0; border-block-start: 1px solid var(--ps-hair); border-radius: 12px;
  background: none; font: inherit; color: inherit; text-align: start; cursor: pointer;
}
.bysd-pop__row:first-of-type { border-block-start: 0; }
.bysd-pop__row:hover { background: var(--ps-bg); }
.bysd-pop__label { font-size: 15px; font-weight: 600; color: var(--ps-ink); direction: ltr; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bysd-pop__meta { margin-inline-start: auto; font-size: 12.5px; color: var(--ps-muted); flex-shrink: 0; }
.bysd-pop__pill {
  flex-shrink: 0; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: var(--ps-pill);
  color: var(--ps-ok); background: var(--ps-ok-tint);
}
.bysd-pop__empty { padding: 6px 4px; font-size: 14px; line-height: 21px; color: var(--ps-muted); }
.bysd-pop__arrow { flex-shrink: 0; color: var(--ps-soft); }
html[dir="rtl"] .bysd-pop__arrow { transform: scaleX(-1); }

/* =========================================================== workspace == */

.bysd-ps__workspace { max-inline-size: 1200px; margin: 0 auto; padding: 26px 18px 96px; }

.bysd-ps__notice {
  margin-block-end: 16px; padding: 12px 16px; border-radius: 12px;
  background: var(--ps-warn-tint); border: 1px solid #eedfc0; color: #5c4a22;
  font-size: 13.5px; line-height: 1.55;
}

.bysd-ps__shell { display: grid; gap: 18px; grid-template-columns: 1fr; }
.bysd-ps__main { min-inline-size: 0; display: flex; flex-direction: column; gap: 16px; }
.bysd-ps__aside { display: flex; flex-direction: column; gap: 16px; }

@media (min-width: 1024px) {
  .bysd-ps__shell { grid-template-columns: 1fr 320px; gap: 26px; }
  .bysd-ps__aside { position: sticky; inset-block-start: 92px; align-self: start; }
}

/* -------------------------------------------------------- landing cards */

.bysd-help { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .bysd-help { grid-template-columns: repeat(3, 1fr); } }

.bysd-help__card {
  background: var(--ps-surface); border: 1px solid var(--ps-line); border-radius: 20px; padding: 20px 22px;
}
.bysd-help__icon {
  display: inline-flex; align-items: center; justify-content: center;
  inline-size: 34px; block-size: 34px; border-radius: 10px;
  background: var(--ps-lime); color: var(--ps-mid); margin-block-end: 14px;
}
.bysd-help__icon svg { inline-size: 18px; block-size: 18px; }
.bysd-help__card h2 { margin: 0 0 6px; font-size: 16px; font-weight: 600; color: var(--ps-ink); }
.bysd-help__card p { margin: 0; font-size: 14px; line-height: 21px; color: var(--ps-muted); }

/* ------------------------------------------------------ extension guide */

.bysd-guide { background: var(--ps-surface); border: 1px solid var(--ps-line); border-radius: 20px; padding: 22px 24px; }
.bysd-guide__title { margin: 0 0 6px; font-size: 16px; font-weight: 600; color: var(--ps-ink); }
.bysd-guide__lede { margin: 0 0 18px; max-inline-size: 62ch; font-size: 13.5px; line-height: 21px; color: var(--ps-muted); }
.bysd-guide__group + .bysd-guide__group { margin-block-start: 22px; }
.bysd-guide__group-title {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  margin: 0 0 8px; font-size: 13.5px; font-weight: 700; color: var(--ps-ink);
}
.bysd-guide__group-note { font-size: 12.5px; font-weight: 400; color: var(--ps-muted); }
.bysd-guide__list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--ps-line); border-radius: 16px; overflow: hidden; }
.bysd-guide__row { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-block-end: 1px solid var(--ps-row-line); }
.bysd-guide__row:last-child { border-block-end: 0; }
.bysd-guide__ext {
  flex-shrink: 0; min-inline-size: 66px; text-align: center; direction: ltr;
  padding: 4px 10px; border-radius: 8px; background: var(--ps-tint); color: var(--ps-ink);
  font-size: 13.5px; font-weight: 600;
}
.bysd-guide__use { flex: 1; min-inline-size: 0; font-size: 13.5px; color: var(--ps-text); }
/* Dot-sized decoration beside a label that already says what the extension is
   for; the value is spelled out for a screen reader next to it. */
.bysd-guide__stars { flex-shrink: 0; color: var(--ps-warn); font-size: 13px; letter-spacing: 2px; white-space: nowrap; }

@media (max-width: 520px) {
  .bysd-guide { padding: 18px 16px; }
  .bysd-guide__row { flex-wrap: wrap; gap: 8px 12px; }
  .bysd-guide__use { flex-basis: 100%; order: 3; font-size: 13px; }
}

/* ========================================================= exact card == */

.bysd-exact {
  background: var(--ps-surface); border: 1px solid var(--ps-hair); border-radius: 20px;
  padding: 20px 22px; animation: bysd-rise .28s cubic-bezier(.2, .7, .2, 1);
}
.bysd-exact.is-available { background: var(--ps-ok-tint); border-color: var(--ps-ok-line); }

.bysd-exact__head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; row-gap: 14px; }
.bysd-exact__well {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  inline-size: 48px; block-size: 48px; border-radius: 14px;
  background: #fff; color: var(--ps-ok);
}
.bysd-exact:not(.is-available) .bysd-exact__well { background: var(--ps-tint); color: var(--ps-soft); }
.bysd-exact.is-listed .bysd-exact__well { background: var(--ps-lime); color: var(--ps-mid); }
.bysd-exact__well svg { inline-size: 21px; block-size: 21px; }

.bysd-exact__identity { min-inline-size: 0; flex: 1 1 auto; }
.bysd-exact__name { display: block; direction: ltr; text-align: start; font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 30px; color: var(--ps-ink); }
.bysd-exact__word { margin: 2px 0 0; font-size: 14px; line-height: 21px; color: var(--ps-muted); }

.bysd-exact__buy { display: flex; align-items: center; gap: 16px; flex-shrink: 0; margin-inline-start: auto; }
.bysd-exact__price { text-align: end; }
.bysd-exact__price strong { display: block; direction: ltr; font-size: 20px; font-weight: 600; line-height: 27px; color: var(--ps-ink); }
.bysd-exact__price small { display: block; font-size: 12px; color: var(--ps-soft); line-height: 17px; }

.bysd-exact__cta {
  display: inline-flex; align-items: center; justify-content: center;
  block-size: 46px; padding-inline: 24px; border-radius: 12px;
  background: var(--ps-ink); border: 0; color: #fff; text-decoration: none;
  font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background .18s cubic-bezier(.2, .7, .2, 1);
}
.bysd-exact__cta:hover { background: var(--ink-hover, #12513d); color: #fff; }
.bysd-exact__cta.is-off { background: var(--ps-tint); color: var(--ps-soft); cursor: not-allowed; }

/* handles and utilities, directly under the domain line */
.bysd-exact__rail {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-block-start: 16px; padding-block-start: 14px; border-block-start: 1px solid rgba(11, 59, 46, .1);
}
.bysd-exact__rail-label { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ps-muted); }

.bysd-handle {
  display: inline-flex; align-items: center; gap: 6px; direction: ltr;
  block-size: 32px; padding-inline: 12px; border-radius: var(--ps-pill);
  background: var(--ps-tint); font-size: 12.5px; font-weight: 500; color: var(--ps-ink); text-decoration: none;
}
.bysd-handle svg { inline-size: 11px; block-size: 11px; }
.bysd-handle.is-free { color: var(--ps-ok); background: #fff; }
.bysd-handle.is-free:hover { background: var(--ps-ok-tint); color: var(--ps-ok); }
.bysd-handle.is-taken { color: var(--ps-bad); background: var(--ps-bad-tint); }
.bysd-handle.is-taken .bysd-handle__name { text-decoration: line-through; }

.bysd-exact__utils { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; flex-wrap: wrap; }
.bysd-util {
  display: inline-flex; align-items: center; gap: 7px;
  block-size: 36px; padding-inline: 13px; border-radius: 10px;
  background: var(--ps-surface); border: 1px solid var(--ps-hair); color: var(--ps-ink);
  font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: border-color .18s cubic-bezier(.2, .7, .2, 1);
}
.bysd-util svg { inline-size: 14px; block-size: 14px; }
.bysd-util:hover { border-color: var(--ps-line); }
.bysd-util.is-done { color: var(--ps-ok); border-color: var(--ps-ok-line); background: var(--ps-ok-tint); }

/* brokerage — only when the exact .com is already registered */
.bysd-broker {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; row-gap: 14px;
  margin-block-start: 16px; padding-block-start: 16px; border-block-start: 1px solid rgba(11, 59, 46, .1);
}
.bysd-broker__copy { min-inline-size: 0; flex: 1 1 260px; }
.bysd-broker__copy h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; line-height: 23px; color: var(--ps-ink); }
.bysd-broker__copy p { margin: 0; font-size: 13.5px; line-height: 20px; color: var(--ps-muted); max-inline-size: 54ch; }
.bysd-broker__offer { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; flex-wrap: wrap; }
.bysd-broker__fee { text-align: end; }
.bysd-broker__fee strong { display: block; direction: ltr; font-size: 20px; font-weight: 600; line-height: 27px; color: var(--ps-ink); }
.bysd-broker__fee small { display: block; font-size: 12px; color: var(--ps-muted); line-height: 17px; }
.bysd-broker__face {
  inline-size: 42px; block-size: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  background: var(--ps-tint); border: 1px solid var(--ps-hair);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: var(--ps-mid);
}
.bysd-broker__cta {
  display: inline-flex; align-items: center; justify-content: center;
  block-size: 46px; padding-inline: 22px; border-radius: 12px;
  background: var(--ps-ink); color: #fff; text-decoration: none;
  font-size: 14.5px; font-weight: 600; white-space: nowrap;
}
.bysd-broker__cta:hover { background: var(--ink-hover, #12513d); color: #fff; }
.bysd-broker__mail {
  display: inline-flex; align-items: center; justify-content: center;
  inline-size: 46px; block-size: 46px; border-radius: 12px;
  border: 1px solid var(--ps-line); background: var(--ps-surface); color: var(--ps-ink);
}
.bysd-broker__mail:hover { border-color: var(--ps-ink); color: var(--ps-ink); }

/* the free alternative to the paid offer */
/* The free offer sits on the page tint, not on the card's white: it is the
   quieter of the two ways out of a taken name, and the fill separates it from
   the paid brokerage above without a second heading. */
.bysd-notify {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; row-gap: 12px;
  margin-block-start: 16px; padding: 16px 18px;
  border: 1px dashed #d8dccd; border-radius: 16px; background: var(--ps-tint);
}
.bysd-notify__copy { min-inline-size: 0; flex: 1 1 240px; }
.bysd-notify__copy h3 { margin: 0 0 3px; font-size: 14.5px; font-weight: 600; line-height: 21px; color: var(--ps-ink); }
.bysd-notify__copy h3 span { direction: ltr; unicode-bidi: isolate; }
.bysd-notify__copy p { margin: 0; font-size: 13px; line-height: 19px; color: var(--ps-muted); }
.bysd-notify__form { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; flex-wrap: wrap; }
.bysd-notify__field {
  block-size: 44px; min-inline-size: 200px; padding-inline: 16px; border-radius: 12px;
  border: 1px solid var(--ps-line); background: var(--ps-surface); color: var(--ps-text);
  font: inherit; font-size: 14px; direction: ltr; text-align: start;
}
.bysd-notify__field:read-only { color: var(--ps-muted); }
.bysd-notify__cta {
  display: inline-flex; align-items: center; justify-content: center;
  block-size: 44px; padding-inline: 22px; border-radius: 12px;
  border: 1px solid var(--ps-ink); background: var(--ps-surface); color: var(--ps-ink);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.bysd-notify__cta:hover { background: var(--ps-ink); color: #fff; }
.bysd-notify__cta.is-done { border-color: var(--ps-ok-line); background: var(--ps-ok-tint); color: var(--ps-ok); cursor: default; }

/* ============================================================= ladder == */

.bysd-ladder { background: var(--ps-surface); border: 1px solid var(--ps-line); border-radius: 20px; padding: 20px 22px; }
.bysd-ladder__title { margin: 0 0 4px; font-size: 16px; font-weight: 600; line-height: 23px; color: var(--ps-ink); }
.bysd-ladder__note { margin: 0 0 6px; font-size: 13.5px; line-height: 20px; color: var(--ps-muted); }
.bysd-ladder__row { display: flex; align-items: center; gap: 12px; min-block-size: 56px; border-block-start: 1px solid var(--ps-row-line); }
.bysd-ladder__row:first-of-type { border-block-start: 0; }
.bysd-ladder__candidate { direction: ltr; font-size: 16px; font-weight: 600; color: var(--ps-ink); }
.bysd-ladder__badge {
  font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: var(--ps-pill);
  background: var(--ps-lime); color: var(--ps-ink); flex-shrink: 0;
}
.bysd-ladder__price { margin-inline-start: auto; text-align: end; flex-shrink: 0; }
.bysd-ladder__price .bysd-dt__price strong { font-size: 16px; }

/* ======================================================= results card == */

.bysd-panel { display: flex; flex-direction: column; }

/* The strip is the top of the card: its bottom edge is open and the card below
   pulls up one pixel over it, so the two read as one object. */
.bysd-panel__tabs {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 10px 0; overflow-x: auto; scrollbar-width: none;
  background: var(--ps-surface);
  border: 1px solid var(--ps-line); border-block-end: 0;
  border-start-start-radius: 20px; border-start-end-radius: 20px;
}
.bysd-panel__tabs::-webkit-scrollbar { display: none; }

.bysd-panel__tab {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  block-size: 42px; padding-inline: 14px; margin-block-end: 8px;
  border: 1px solid transparent; border-radius: 12px; background: transparent;
  color: rgba(0, 0, 0, .5); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
  transition: color .18s cubic-bezier(.2, .7, .2, 1), background .18s cubic-bezier(.2, .7, .2, 1);
}
.bysd-panel__tab svg { inline-size: 16px; block-size: 16px; }
.bysd-panel__tab:hover { color: var(--ps-ink); }
.bysd-panel__tab.is-active { background: var(--ps-tint); border-color: var(--ps-hair); color: var(--ps-ink); font-weight: 600; }
/* Opening a comparison of nothing is worse than saying why it is shut. */
.bysd-panel__tab.is-locked { opacity: .45; cursor: not-allowed; }
.bysd-panel__tab.is-locked:hover { color: rgba(0, 0, 0, .5); }

.bysd-panel__card {
  margin-block-start: -1px;
  background: var(--ps-surface); border: 1px solid var(--ps-line);
  border-radius: 0 0 20px 20px; overflow: hidden;
}

/* -------------------------------------------------------- the filter bar */

.bysd-fbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 16px; border-block-end: 1px solid var(--ps-hair);
}
.bysd-fbar__spacer { flex: 1; min-inline-size: 4px; }

.bysd-fbar__trigger {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  block-size: 40px; padding-inline: 15px; border-radius: var(--ps-pill);
  border: 1px solid var(--ps-hair); background: var(--ps-surface);
  color: var(--ps-label); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: background .18s cubic-bezier(.2, .7, .2, 1), border-color .18s cubic-bezier(.2, .7, .2, 1);
}
.bysd-fbar__trigger svg { inline-size: 16px; block-size: 16px; }
.bysd-fbar__trigger:hover { border-color: var(--ps-line); }
.bysd-fbar__trigger[aria-expanded="true"] { background: var(--ps-lime); border-color: var(--ps-lime-line); color: var(--ps-ink); }
.bysd-fbar__dot { inline-size: 6px; block-size: 6px; border-radius: 50%; background: var(--ps-mid); }

.bysd-fbar__scope { display: inline-flex; align-items: center; gap: 6px; }
.bysd-fbar__scope-btn {
  block-size: 40px; padding-inline: 18px; border-radius: var(--ps-pill);
  border: 1px solid var(--ps-hair); background: var(--ps-surface);
  color: var(--ps-label); font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer;
  transition: all .18s cubic-bezier(.2, .7, .2, 1);
}
.bysd-fbar__scope-btn:hover { border-color: var(--ps-line); color: var(--ps-ink); }
.bysd-fbar__scope-btn.is-active { background: var(--ps-ink); border-color: var(--ps-ink); color: #fff; font-weight: 600; }

.bysd-fbar__count { font-size: 13px; color: var(--ps-muted); }

.bysd-fbar__cart {
  display: inline-flex; align-items: center; gap: 8px;
  block-size: 40px; padding-inline: 18px; border-radius: var(--ps-pill);
  background: var(--ps-ink); color: #fff; text-decoration: none;
  font-size: 13.5px; font-weight: 600;
}
.bysd-fbar__cart:hover { background: var(--ink-hover, #12513d); color: #fff; }
.bysd-fbar__cart svg { inline-size: 16px; block-size: 16px; }

/* ------------------------------------------------------- the filter bay */

/* Inside the card and pushing the table down, not a floating popover: a popover
   covered the very rows it was filtering. */
.bysd-bay {
  display: grid; gap: 18px 32px; grid-template-columns: 1fr;
  padding: 18px 20px; background: var(--ps-bay); border-block-end: 1px solid var(--ps-hair);
  animation: bysd-rise .2s cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 700px) { .bysd-bay { grid-template-columns: 300px minmax(0, 1fr); } }

.bysd-bay__title { margin: 0 0 12px; font-size: 12.5px; font-weight: 600; color: var(--ps-muted); }

.bysd-switch { display: flex; align-items: center; gap: 12px; min-block-size: 40px; cursor: pointer; }
.bysd-switch__label { flex: 1; font-size: 14px; color: var(--ps-text); }
.bysd-switch__input { position: absolute; opacity: 0; inline-size: 1px; block-size: 1px; }
.bysd-switch__track {
  position: relative; flex-shrink: 0;
  inline-size: 44px; block-size: 26px; border-radius: var(--ps-pill);
  background: #dfe0d4; transition: background .2s cubic-bezier(.2, .7, .2, 1);
}
.bysd-switch__knob {
  position: absolute; inset-block-start: 3px; inset-inline-start: 3px;
  inline-size: 20px; block-size: 20px; border-radius: 50%; background: #fff;
  transition: transform .2s cubic-bezier(.2, .7, .2, 1);
}
.bysd-switch__input:checked + .bysd-switch__track { background: var(--ps-ink); }
.bysd-switch__input:checked + .bysd-switch__track .bysd-switch__knob { transform: translateX(18px); }
html[dir="rtl"] .bysd-switch__input:checked + .bysd-switch__track .bysd-switch__knob { transform: translateX(-18px); }
.bysd-switch__input:focus-visible + .bysd-switch__track { outline: 2px solid var(--ps-mid); outline-offset: 2px; }

.bysd-bay__sorts { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.bysd-radio {
  display: inline-flex; align-items: center; gap: 9px; min-block-size: 40px;
  border: 0; background: none; padding: 0; cursor: pointer;
  color: var(--ps-muted); font: inherit; font-size: 14px;
}
.bysd-radio.is-on { color: var(--ps-ink); font-weight: 600; }
.bysd-radio__dot {
  inline-size: 18px; block-size: 18px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid #cfd2c4; background: #fff;
  transition: border-color .18s cubic-bezier(.2, .7, .2, 1);
}
.bysd-radio.is-on .bysd-radio__dot { border-color: var(--ps-ink); border-width: 5px; }

/* ============================================================== table == */

.bysd-panel__body { display: block; }

.bysd-dt__scroll { overflow-x: auto; }
.bysd-dt__table { inline-size: 100%; border-collapse: collapse; min-inline-size: 520px; }
.bysd-dt__table thead tr { background: var(--ps-surface); }
.bysd-dt__table th {
  padding: 14px 18px; text-align: start; font-size: 13px; font-weight: 600; color: var(--ps-label);
  border-block-end: 1px solid var(--ps-hair); white-space: nowrap;
}
.bysd-dt__th-action { text-align: end; }

.bysd-dt__cell { padding: 15px 18px; border-block-end: 1px solid var(--ps-row-line); vertical-align: middle; font-size: 15px; }
.bysd-dt__row:last-child .bysd-dt__cell { border-block-end: 0; }
.bysd-dt__row:hover .bysd-dt__cell { background: #fbfbf8; }
.bysd-dt__row--taken .bysd-dt__cell, .bysd-dt__row--unknown .bysd-dt__cell { opacity: .62; }
.bysd-dt__cell--action { text-align: end; white-space: nowrap; }
.bysd-dt__cell--price { white-space: nowrap; }

.bysd-dt__name { display: inline-flex; align-items: center; gap: 10px; min-inline-size: 0; }
.bysd-dt__globe { display: inline-flex; color: var(--ps-soft); }
.bysd-dt__domain { direction: ltr; font-size: 16px; font-weight: 600; letter-spacing: -.01em; color: var(--ps-ink); }
.bysd-dt__domain .bysd-domain-tld { color: var(--ps-mid); }
.bysd-dt__badge {
  font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: var(--ps-pill);
  background: var(--ps-lime-soft); color: var(--ps-ink); white-space: nowrap;
}

.bysd-dt__status { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; }
.bysd-dt__dot { inline-size: 8px; block-size: 8px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.bysd-dt__status--available { color: var(--ps-ok); }
.bysd-dt__status--aftermarket, .bysd-dt__status--listed { color: var(--ps-ok); }
.bysd-dt__status--taken { color: var(--ps-soft); }
.bysd-dt__status--unknown, .bysd-dt__status--failed { color: var(--ps-soft); }

/* The direction lives on the markup, not here: this cell holds a figure most
   of the time but sometimes holds an Arabic sentence, and forcing the whole
   cell LTR flipped that sentence to the wrong edge. */
.bysd-dt__price { display: block; }
.bysd-dt__price strong { display: block; font-size: 16px; font-weight: 600; color: var(--ps-ink); }
.bysd-dt__price small { display: block; font-size: 12px; color: var(--ps-soft); }
.bysd-dt__price.is-empty strong { color: var(--ps-soft); }

.bysd-dt__actions { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; }

.bysd-dt__cta {
  display: inline-flex; align-items: center; gap: 8px;
  block-size: 40px; padding-inline: 16px; border-radius: 11px;
  border: 1px solid var(--ps-hair); background: var(--ps-tint); color: var(--ps-ink);
  font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .18s cubic-bezier(.2, .7, .2, 1), color .18s cubic-bezier(.2, .7, .2, 1);
}
.bysd-dt__cta svg { inline-size: 16px; block-size: 16px; }
.bysd-dt__cta:hover { background: #e9e8e1; color: var(--ps-ink); }
.bysd-dt__cta.is-primary { background: var(--ps-ink); border-color: var(--ps-ink); color: #fff; }
.bysd-dt__cta.is-primary:hover { background: var(--ink-hover, #12513d); color: #fff; }
.bysd-dt__cta.is-off { background: transparent; border-color: transparent; color: var(--ps-soft); cursor: default; }

.bysd-dt__star {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  inline-size: 40px; block-size: 40px; border-radius: 11px;
  border: 0; background: var(--ps-tint); color: var(--ps-label); cursor: pointer;
  transition: background .18s cubic-bezier(.2, .7, .2, 1), color .18s cubic-bezier(.2, .7, .2, 1);
}
.bysd-dt__star svg { inline-size: 17px; block-size: 17px; }
.bysd-dt__star:hover { color: var(--ps-ink); }
.bysd-dt__star[aria-pressed="true"] { background: var(--ps-lime); color: var(--ps-ink); }
.bysd-dt__star[aria-pressed="true"] svg { fill: currentColor; stroke: currentColor; }

.bysd-dt__empty td { padding: 40px 18px; text-align: center; font-size: 14px; line-height: 22px; color: var(--ps-muted); }
.bysd-dt__empty a { font-weight: 600; }

.bysd-panel__foot {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 12px 4px 0; font-size: 12.5px; line-height: 19px; color: var(--ps-soft);
}
.bysd-panel__foot svg { inline-size: 15px; block-size: 15px; margin-block-start: 2px; }

@media (max-width: 700px) {
  /* Rows stack: the table's own scroll would otherwise hide the action. */
  .bysd-dt__table, .bysd-dt__table tbody, .bysd-dt__row, .bysd-dt__cell { display: block; inline-size: auto; min-inline-size: 0; }
  .bysd-dt__table thead { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .bysd-dt__row { padding: 14px 16px; border-block-end: 1px solid var(--ps-row-line); }
  .bysd-dt__row:last-child { border-block-end: 0; }
  .bysd-dt__cell { padding: 4px 0; border-block-end: 0; }
  .bysd-dt__cell--action { text-align: start; padding-block-start: 10px; }
  .bysd-dt__actions { justify-content: flex-start; }
  .bysd-dt__row:hover .bysd-dt__cell { background: transparent; }
}

/* ------------------------------------------------------------ skeletons */

/* A row is 72px, so five of them are the table's silhouette rather than a
   placeholder of their own: nothing shifts when the real rows land. The tone
   range stays narrow — a grey-to-white pulse reads as broken on this page. */
.bysd-skel-list { display: flex; flex-direction: column; gap: 10px; padding: 10px; }
.bysd-skel-row {
  block-size: 72px; border-radius: 16px; border: 1px solid #e8e7e3;
  background: linear-gradient(90deg, var(--ps-surface), #f1f1ea, var(--ps-surface));
  background-size: 200% 100%; animation: bysd-shimmer 1.4s linear infinite;
}

/* ====================================================== Brandagy's take == */

.bysd-take { background: var(--ps-surface); border: 1px solid var(--ps-line); border-radius: 20px; padding: 20px 22px; }
.bysd-take__title { margin: 0 0 14px; font-size: 14.5px; font-weight: 600; color: var(--ps-ink); }
.bysd-take__head { display: flex; align-items: center; gap: 10px; margin-block-end: 18px; }
.bysd-take__figure { direction: ltr; font-size: 34px; font-weight: 700; letter-spacing: -.04em; line-height: 1; color: var(--ps-ink); }
.bysd-take__verdict { font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: var(--ps-pill); }
.bysd-take__verdict.is-strong { color: var(--ps-ok); background: var(--ps-ok-tint); }
.bysd-take__verdict.is-good { color: var(--ps-mid); background: var(--ps-lime-soft); }
.bysd-take__verdict.is-fair { color: var(--ps-warn); background: var(--ps-warn-tint); }
.bysd-take__verdict.is-weak { color: var(--ps-bad); background: var(--ps-bad-tint); }

.bysd-take__row + .bysd-take__row { margin-block-start: 14px; }
.bysd-take__row-head { display: flex; align-items: baseline; gap: 10px; margin-block-end: 6px; }
.bysd-take__row-label { flex: 1; font-size: 13.5px; color: var(--ps-text); }
.bysd-take__row-value { direction: ltr; font-size: 13px; font-weight: 600; color: var(--ps-muted); }
.bysd-take__bar { block-size: 5px; border-radius: var(--ps-pill); background: #e8e8e0; overflow: hidden; }
.bysd-take__bar span { display: block; block-size: 100%; border-radius: inherit; background: var(--ps-mid); }

.bysd-take__voice { display: flex; gap: 8px; margin-block-start: 18px; padding-block-start: 16px; border-block-start: 1px solid var(--ps-hair); }

/* ---------------------------------------------------------- rail cards */

.bysd-card { background: var(--ps-surface); border: 1px solid var(--ps-line); border-radius: 20px; padding: 20px 22px; }
.bysd-card__title { margin: 0 0 8px; font-size: 14.5px; font-weight: 600; color: var(--ps-ink); }
.bysd-card__lede { margin: 0 0 14px; font-size: 13.5px; line-height: 21px; color: var(--ps-muted); }
.bysd-card__contact {
  display: flex; align-items: center; gap: 10px; min-block-size: 40px;
  color: var(--ps-mid); font-size: 14.5px; font-weight: 600; text-decoration: none;
}
.bysd-card__contact:hover { color: var(--ps-ink); }
.bysd-card__cta {
  display: block; text-align: center; block-size: 48px; line-height: 48px; border-radius: 12px;
  background: var(--ps-ink); color: #fff; text-decoration: none; font-size: 15px; font-weight: 600;
}
.bysd-card__cta:hover { background: var(--ink-hover, #12513d); color: #fff; }

/* =============================================================== toast == */

.bysd-toast {
  position: fixed; inset-block-end: 24px; inset-inline: 0;
  z-index: 60; margin-inline: auto; inline-size: max-content; max-inline-size: calc(100vw - 32px);
  display: flex; align-items: center; gap: 9px;
  padding: 12px 20px; border-radius: var(--ps-pill);
  background: var(--ps-ink); color: #fff; font-size: 14px; font-weight: 600;
  animation: bysd-rise .22s cubic-bezier(.2, .7, .2, 1);
}
.bysd-toast svg { inline-size: 16px; block-size: 16px; color: var(--ps-lime); fill: currentColor; }
.bysd-toast span { direction: rtl; unicode-bidi: plaintext; }

/* ======================================================= detail reasons == */

.bysd-reasons { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13.5px; }
.bysd-reason--yes { color: var(--ps-ok); }
.bysd-reason--no { color: var(--ps-bad); }
