/* Explore a superyacht: a living blueprint in gold outlines on deep navy. Reuses the lux.css tokens. */
.yx {
  --yx-bg: #060a13;
  --yx-line: var(--lux-gold, #c9a96a);
  --yx-bright: #f6e7c1;
  --yx-soft: rgba(201, 169, 106, 0.32);
  --yx-faint: rgba(201, 169, 106, 0.12);
  --yx-text: #ece6d8;
  --yx-mute: var(--lux-mute, #8e97a8);
  --yx-glass: rgba(9, 15, 28, 0.74);
  --yx-hair: rgba(201, 169, 106, 0.28);
  --find-w: 380px;
  --sup-w: 0px;
}
.yx.has-suppliers { --sup-w: 400px; }

/* ---------- stage + overlays ---------- */
.yx {
  position: relative;
  height: calc(100vh - var(--yx-header, 48px));
  height: calc(100svh - var(--yx-header, 48px));
  min-height: 620px;
  overflow: hidden;
  /* clip, unlike hidden, can't be scrolled by focus or scrollIntoView, so a sheet never drags the stage up under the nav. */
  overflow: clip;
  color: var(--yx-text);
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(38, 62, 104, 0.55) 0%, rgba(11, 18, 32, 0) 70%),
    linear-gradient(180deg, #0b1220 0%, #070c17 60%, #04070e 100%);
}
.yx-stage { position: absolute; inset: 0; }
.yx a { color: inherit; }
.yx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.yx-kicker {
  margin: 0 0 8px;
  color: var(--yx-line);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.yx-kicker a { text-decoration: none; }
.yx-kicker a:hover { color: var(--yx-bright); }
.yx-title {
  margin: 0 0 14px;
  font-family: var(--lux-serif);
  font-weight: 500;
  font-size: 36px;
  line-height: 1;
  color: #fff;
}

.yx-persona { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.yx-persona__lead {
  display: none;
  margin-right: 2px;
  color: var(--yx-mute);
  font-family: var(--lux-serif);
  font-size: 20px;
  font-style: italic;
}
.yx-persona button {
  display: grid;
  gap: 1px;
  padding: 7px 14px 8px;
  border: 1px solid var(--yx-hair);
  border-radius: 999px;
  background: rgba(9, 15, 28, 0.5);
  color: var(--yx-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.yx-persona button span { font-size: 14px; font-weight: 600; letter-spacing: 0.02em; }
.yx-persona button small { color: var(--yx-mute); font-size: 11px; }
.yx-persona button:hover { border-color: var(--yx-line); }
.yx-persona button[aria-checked="true"] {
  border-color: var(--yx-line);
  background: rgba(201, 169, 106, 0.14);
  box-shadow: 0 0 24px rgba(201, 169, 106, 0.25), inset 0 0 0 1px rgba(201, 169, 106, 0.3);
}
.yx-persona button[aria-checked="true"] small { color: var(--yx-bright); }

.yx-tour {
  position: absolute;
  z-index: 6;
  left: calc(var(--find-w) + (100% - var(--find-w) - var(--sup-w)) / 2);
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--yx-hair);
  border-radius: 999px;
  background: var(--yx-glass);
  backdrop-filter: blur(10px);
  transform: translateX(-50%);
  transition: opacity 0.3s, left 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.yx-tour__btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--yx-hair);
  border-radius: 50%;
  background: transparent;
  color: var(--yx-bright);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.yx-tour__btn:hover { background: var(--yx-line); color: #0b1220; }
.yx-tour__label {
  min-width: 220px;
  margin: 0;
  padding: 0 8px;
  font-size: 13px;
  text-align: center;
  letter-spacing: 0.04em;
}
.yx-tour__label b { color: var(--yx-line); font-weight: 600; }
.yx-tour__play { display: grid; place-items: center; padding: 0; }
.yx-tour__play svg { flex: none; width: 16px; min-width: 16px; height: 16px; fill: currentColor; }
.yx-tour__play .yx-i-pause { display: none; }
.yx-tour__play[aria-pressed="true"] .yx-i-play { display: none; }
.yx-tour__play[aria-pressed="true"] .yx-i-pause { display: inline; }
.yx-tour__play[aria-pressed="true"] { background: var(--yx-line); color: #0b1220; box-shadow: 0 0 18px rgba(201, 169, 106, 0.45); }
.yx.is-playing .yx-tour { border-color: var(--yx-line); }

@keyframes yx-rise { from { opacity: 0; transform: translateY(6px); } }

/* ---------- the column: search, then yacht areas that drop down into categories, then companies ---------- */
.yx-side {
  position: absolute;
  z-index: 8;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: var(--find-w);
  border-right: 1px solid var(--yx-hair);
  background: linear-gradient(180deg, rgba(8, 12, 23, 0.9) 0%, rgba(5, 8, 16, 0.95) 100%);
  backdrop-filter: blur(14px);
  box-shadow: 30px 0 80px rgba(0, 0, 0, 0.35);
}
.yx-side__handle { display: none; }
.yx-side__head { padding: 22px 20px 14px; border-bottom: 1px solid var(--yx-faint); }
.yx-side__kicker { margin: 18px 0 10px; font-family: var(--lux-serif); font-size: 24px; line-height: 1.1; color: #fff; }
.yx-side__body { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.yx-tree { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; padding: 10px 14px 28px; }

/* Suppliers slide in on the right when a product is picked. */
.yx-supcol {
  position: absolute;
  z-index: 8;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  border-left: 1px solid var(--yx-hair);
  background: linear-gradient(180deg, rgba(8, 12, 23, 0.92) 0%, rgba(5, 8, 16, 0.96) 100%);
  backdrop-filter: blur(14px);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.35);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s 0.45s;
}
.yx.has-suppliers .yx-supcol { transform: none; visibility: visible; transition-delay: 0s; }
.yx-sup { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 22px 20px 28px; }

.yx-search { position: relative; }
.yx-search__box {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--yx-hair);
  border-radius: 999px;
  background: rgba(9, 15, 28, 0.62);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.yx-search__box:focus-within { border-color: var(--yx-line); box-shadow: 0 0 0 3px rgba(201, 169, 106, 0.15); }
.yx-search__box svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--yx-line); stroke-width: 1.6; stroke-linecap: round; }
.yx-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--yx-text); font: inherit; font-size: 14px; outline: none; }
.yx-search input::placeholder { color: var(--yx-mute); }
.yx-search__list {
  position: absolute;
  z-index: 9;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--yx-hair);
  border-radius: 14px;
  background: rgba(8, 13, 25, 0.97);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  list-style: none;
}
.yx-search__list[hidden] { display: none; }
.yx-search__list li { display: grid; gap: 2px; padding: 9px 12px; border-radius: 9px; cursor: pointer; }
.yx-search__list li[aria-selected="true"], .yx-search__list li:hover { background: rgba(201, 169, 106, 0.14); }
.yx-search__text { color: #fff; font-size: 14px; }
.yx-search__list small { color: var(--yx-mute); font-size: 12px; }

.yx-whole {
  display: none;
  margin: 4px 4px 2px;
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--yx-line);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.yx-whole:hover { background: rgba(201, 169, 106, 0.12); color: var(--yx-bright); }
.yx-tree.has-open .yx-whole { display: inline-block; }
.yx-tree__group {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 14px 6px 8px;
  color: var(--yx-line);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.yx-tree__group small { color: var(--yx-mute); font-size: 10px; letter-spacing: 0.14em; }
.yx-groups { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.yx-group {
  border: 1px solid var(--yx-faint);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.yx-group.is-key { border-color: var(--yx-hair); background: rgba(201, 169, 106, 0.05); }
.yx-group:hover, .yx-group.is-hover { border-color: var(--yx-line); }
.yx-group.is-open { border-color: var(--yx-line); background: rgba(201, 169, 106, 0.09); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
.yx-group__btn {
  display: grid;
  grid-template-columns: 10px 1fr auto 16px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 14px;
  border: 0;
  background: none;
  color: var(--yx-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.yx-group__dot { width: 9px; height: 9px; border: 1.5px solid var(--yx-line); border-radius: 50%; }
.yx-group.is-key .yx-group__dot { background: var(--yx-line); box-shadow: 0 0 10px rgba(201, 169, 106, 0.7); }
.yx-group__label { display: grid; gap: 2px; min-width: 0; }
.yx-group__name { font-size: 15px; font-weight: 600; letter-spacing: 0.01em; }
.yx-group__where { overflow: hidden; color: var(--yx-mute); font-size: 11.5px; letter-spacing: 0.03em; text-overflow: ellipsis; white-space: nowrap; }
.yx-group__count { color: var(--yx-line); font-size: 13px; font-variant-numeric: tabular-nums; }
.yx-group__chev, .yx-sub__chev, .yx-card__chev { fill: none; stroke: var(--yx-line); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.yx-group__chev { width: 16px; height: 16px; transition: transform 0.3s; }
.yx-group.is-open .yx-group__chev { transform: rotate(90deg); }
.yx-group__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.yx-group.is-open .yx-group__body { grid-template-rows: 1fr; }
.yx-group__inner { min-height: 0; overflow: hidden; }
.yx-group__blurb { margin: 0 14px 8px 33px; color: #c9cfda; font-size: 13px; line-height: 1.45; }
.yx-subs { display: grid; gap: 2px; margin: 0; padding: 0 8px 10px; list-style: none; }
.yx-sub {
  display: grid;
  grid-template-columns: 22px 1fr auto auto 14px;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 8px 9px 6px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--yx-text);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}
.yx-sub:hover, .yx-subs li.is-hover .yx-sub { background: rgba(201, 169, 106, 0.16); }
.yx-sub__num {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--yx-line);
  border-radius: 50%;
  color: var(--yx-bright);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}
.yx-sub__num.is-blank { border-color: transparent; }
.yx-subs li:not(.is-here) .yx-sub__num { width: 7px; height: 7px; margin-left: 6px; border-color: var(--yx-soft); color: transparent; font-size: 0; }
.yx-subs li.is-hover .yx-sub__num { background: var(--yx-bright); color: #0b1220; }
.yx-subs li.is-active .yx-sub { background: rgba(201, 169, 106, 0.22); box-shadow: inset 2px 0 0 var(--yx-bright); }
.yx-sub__name { display: grid; gap: 1px; min-width: 0; }
.yx-sub__where { color: var(--yx-mute); font-size: 11px; letter-spacing: 0.03em; }
.yx-subs li.is-here .yx-sub__where { display: none; }
.yx-sub__key {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(201, 169, 106, 0.2);
  color: var(--yx-bright);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.yx-sub em { color: var(--yx-line); font-style: normal; font-variant-numeric: tabular-nums; }
.yx-sub__chev { width: 14px; height: 14px; opacity: 0.7; }
.yx-sub.is-empty { color: var(--yx-mute); }

.yx-back {
  margin: 0 0 14px;
  padding: 7px 14px 7px 11px;
  border: 1px solid var(--yx-hair);
  border-radius: 999px;
  background: none;
  color: var(--yx-text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.yx-back:hover { border-color: var(--yx-line); background: rgba(201, 169, 106, 0.1); }
.yx-sup__kicker { margin: 0 0 4px; color: var(--yx-line); font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.yx-sup__title { margin: 0 0 6px; font-family: var(--lux-serif); font-size: 36px; font-weight: 500; line-height: 1.02; color: #fff; }
.yx-sup__count { display: flex; align-items: baseline; gap: 7px; margin: 0; color: var(--yx-mute); font-size: 13px; }
.yx-sup__count strong { font-family: var(--lux-serif); font-size: 24px; font-weight: 500; color: var(--yx-bright); }
.yx-filter { display: grid; gap: 8px; margin: 16px 0 0; padding: 12px; border: 1px solid var(--yx-faint); border-radius: 14px; background: rgba(255, 255, 255, 0.02); }
.yx-filter[hidden] { display: none; }
.yx-filter__label { margin: 0; color: var(--yx-line); font-size: 10.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.yx-filter__note { margin: 0; color: var(--yx-mute); font-size: 11.5px; line-height: 1.4; }
.yx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.yx-select { position: relative; display: block; }
.yx-select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--yx-line);
  border-bottom: 1.5px solid var(--yx-line);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.yx-select__input {
  width: 100%;
  height: 36px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--yx-hair);
  border-radius: 10px;
  background: rgba(9, 15, 28, 0.8);
  color: var(--yx-text);
  font: inherit;
  font-size: 13px;
  appearance: none;
  cursor: pointer;
}
.yx-select__input:focus { border-color: var(--yx-line); outline: none; box-shadow: 0 0 0 3px rgba(201, 169, 106, 0.15); }
.yx-select__input option { background: #0b1220; color: var(--yx-text); }
.yx-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid var(--yx-hair);
  border-radius: 999px;
  background: none;
  color: var(--yx-text);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.yx-chip em { color: var(--yx-line); font-size: 11px; font-style: normal; font-variant-numeric: tabular-nums; }
.yx-chip:hover { border-color: var(--yx-line); }
.yx-chip[aria-pressed="true"] { border-color: var(--yx-line); background: var(--yx-line); color: #0b1220; }
.yx-chip[aria-pressed="true"] em { color: #0b1220; }
.yx-cards { display: grid; gap: 8px; margin: 16px 0; }
.yx-card {
  display: block;
  border: 1px solid var(--yx-faint);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  animation: yx-rise 0.45s backwards;
  animation-delay: calc(var(--n, 0) * 45ms);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.yx-card:hover { border-color: var(--yx-line); background: rgba(201, 169, 106, 0.08); transform: translateX(2px); }
.yx-card__main {
  display: grid;
  grid-template-columns: 46px 1fr 14px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  color: inherit;
  text-decoration: none;
}
.yx-card__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.yx-card__tags i {
  padding: 1px 7px;
  border: 1px solid var(--yx-faint);
  border-radius: 999px;
  color: #c9cfda;
  font-size: 10.5px;
  font-style: normal;
  letter-spacing: 0.03em;
}
.yx-card__tags i:first-child { border-color: var(--yx-hair); color: var(--yx-bright); }
.yx-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 12px;
  padding: 8px 0 10px 58px;
  border-top: 1px dashed var(--yx-faint);
}
.yx-card__stand { display: grid; min-width: 0; color: #c9cfda; font-size: 12px; line-height: 1.3; }
.yx-card__stand small { color: var(--yx-line); font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.yx-card__site {
  flex: none;
  margin-left: auto;
  padding: 4px 10px;
  border: 1px solid var(--yx-hair);
  border-radius: 999px;
  color: var(--yx-bright);
  font-size: 12px;
  text-decoration: none;
}
.yx-card__site:hover { border-color: var(--yx-line); background: rgba(201, 169, 106, 0.14); }
.yx-card.is-paid {
  border-color: var(--yx-hair);
  background: linear-gradient(135deg, rgba(201, 169, 106, 0.18), rgba(201, 169, 106, 0.03));
}
.yx-card__mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border: 1px solid var(--yx-hair);
  border-radius: 12px;
  background: rgba(201, 169, 106, 0.1);
  color: var(--yx-bright);
  font-family: var(--lux-serif);
  font-size: 18px;
}
.yx-card__mark img { width: 100%; height: 100%; object-fit: cover; }
.yx-card__body { display: grid; gap: 3px; min-width: 0; }
.yx-card__name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: #fff; font-size: 15px; font-weight: 600; line-height: 1.25; }
.yx-card__badge {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--yx-line);
  color: #0b1220;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.yx-card__meta { color: var(--yx-line); font-size: 12px; letter-spacing: 0.04em; }
.yx-card__blurb {
  display: -webkit-box;
  overflow: hidden;
  color: #b9c0cc;
  font-size: 12.5px;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.yx-card__reply { color: #9fd6b4; font-size: 12px; line-height: 1.35; }
.yx-card__chev { width: 14px; height: 14px; opacity: 0.6; }
.yx-card.is-skeleton {
  height: 72px;
  border-color: var(--yx-faint);
  background: linear-gradient(90deg, rgba(201, 169, 106, 0.04) 0%, rgba(201, 169, 106, 0.12) 50%, rgba(201, 169, 106, 0.04) 100%) 0 0 / 200% 100%;
  animation: yx-shimmer 1.2s linear infinite;
}
@keyframes yx-shimmer { to { background-position: -200% 0; } }
.yx-sup__all {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--yx-line);
  border-radius: 12px;
  color: var(--yx-bright);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.yx-sup__all:hover { background: var(--yx-line); color: #0b1220; }
.yx-sup__empty { margin: 0 0 10px; color: var(--yx-mute); font-size: 14px; }
.yx-slot { display: block; padding: 14px; border: 1px dashed var(--yx-soft); border-radius: 14px; color: var(--yx-mute); font-size: 13px; text-decoration: none; }
.yx-slot b { display: block; color: var(--yx-text); font-weight: 600; }
.yx-slot ul { display: grid; gap: 3px; margin: 8px 0 0; padding: 0; list-style: none; }
.yx-slot li { padding-left: 16px; background: linear-gradient(var(--yx-line), var(--yx-line)) 3px 0.62em / 6px 1px no-repeat; color: #c9cfda; }
.yx-slot:hover { border-color: var(--yx-line); color: var(--yx-text); }

/* ---------- zone index below the stage ---------- */
.yx-index { background: var(--lux-ivory, #f6f3ec); color: var(--lux-ink, #0b1220); padding: 72px 24px 80px; }
.yx-index__inner { max-width: 1180px; margin: 0 auto; }
.yx-index__title { margin: 0 0 32px; font-family: var(--lux-serif); font-size: clamp(30px, 4vw, 46px); font-weight: 500; }
.yx-index__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 28px 32px; }
.yx-index__zone h3 { display: flex; justify-content: space-between; margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--lux-rule, #e8e3d6); font-size: 15px; }
.yx-index__zone h3 span { color: var(--lux-text-mute, #6e6e73); font-weight: 400; }
.yx-index__zone ul { margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.9; }
.yx-index__zone a { color: inherit; }
.yx-index__zone small { color: var(--lux-text-mute, #6e6e73); }

/* ---------- the living blueprint ---------- */

/* One sky per sheet, cross-faded when the persona changes. */
.bp-sky { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; pointer-events: none; }
.yx[data-persona="captain"] .bp-sky[data-sky="captain"],
.yx[data-persona="engineer"] .bp-sky[data-sky="engineer"],
.yx[data-persona="owner"] .bp-sky[data-sky="owner"] { opacity: 1; }
.bp-sky[data-sky="captain"] {
  background:
    radial-gradient(ellipse 70% 55% at 40% 40%, rgba(22, 82, 96, 0.5) 0%, rgba(5, 12, 22, 0) 70%),
    linear-gradient(180deg, #071521 0%, #050f19 58%, #03080e 100%);
}
.bp-sky[data-sky="engineer"] {
  background:
    radial-gradient(ellipse 70% 60% at 38% 45%, rgba(44, 92, 170, 0.55) 0%, rgba(8, 22, 48, 0) 72%),
    linear-gradient(180deg, #0c2249 0%, #0a1d3e 58%, #07142a 100%);
}
.bp-sky[data-sky="owner"] {
  background:
    radial-gradient(ellipse 70% 34% at 38% 58%, rgba(222, 142, 88, 0.34) 0%, rgba(60, 30, 40, 0) 70%),
    radial-gradient(ellipse 50% 50% at 55% 8%, rgba(96, 70, 150, 0.38) 0%, rgba(0, 0, 0, 0) 70%),
    linear-gradient(180deg, #110e25 0%, #1b1531 45%, #2b1e30 58%, #0b0a14 100%);
}

.bp-svg {
  --bp-grid-a: rgba(201, 169, 106, 0.07);
  --bp-grid-b: rgba(201, 169, 106, 0.13);
  --bp-water-a: #0b1a33;
  --bp-water-b: #050912;
  --bp-cool: #9fe0d0;
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: manipulation;
}
/* Phones: a sideways drag slides the enlarged drawing (blueprint.js, homeFrame); up and down still scrolls the page. */
.bp-svg.is-narrow { touch-action: pan-y; }
.bp-svg[data-lens="captain"] { --bp-water-a: #06212b; --bp-water-b: #02070c; }
.bp-svg[data-lens="engineer"] { --bp-grid-a: rgba(170, 200, 255, 0.09); --bp-grid-b: rgba(170, 200, 255, 0.2); --bp-water-a: #0c2754; --bp-water-b: #051331; }
.bp-svg[data-lens="owner"] { --bp-water-a: #1d1632; --bp-water-b: #07060d; }
.bp-grid-a { fill: none; stroke: var(--bp-grid-a); stroke-width: 0.6; }
.bp-grid-b { fill: none; stroke: var(--bp-grid-b); stroke-width: 0.8; }
.bp-water { transition: opacity 0.8s; }
.bp-svg.is-xray .bp-water { opacity: 0.3; }
.bp-water-a { stop-color: var(--bp-water-a); stop-opacity: 0.6; }
.bp-water-b { stop-color: var(--bp-water-b); stop-opacity: 0.92; }

.bp-line, .bp-detail, .bp-sea, .bp-dim, .bp-quay, .bp-cool {
  fill: none;
  stroke: var(--bp-line, #c9a96a);
  stroke-width: var(--sw, 1.3);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bp-line.is-fine, .bp-detail.is-fine, .bp-cool.is-fine { stroke-width: calc(var(--sw, 1.3) * 0.6); opacity: 0.7; }
.bp-line.is-glint { stroke-width: calc(var(--sw, 1.3) * 0.5); opacity: 0.38; }
.bp-lines { transition: opacity 0.8s; }
.bp-svg.is-xray .bp-lines { opacity: 0.12; }
.bp-detail-lines { display: none; }
.bp-svg.is-xray .bp-detail-lines { display: inline; }
.bp-svg.is-xray .bp-torch { opacity: 0; }
.bp-sea { stroke: rgba(201, 169, 106, 0.28); stroke-width: calc(var(--sw, 1.3) * 0.7); }
.bp-sea.is-front { stroke: rgba(201, 169, 106, 0.5); }
.bp-dim { stroke: rgba(201, 169, 106, 0.55); stroke-width: calc(var(--sw, 1.3) * 0.6); }
.bp-text { fill: var(--yx-line); font: 600 calc(11px * var(--tk, 1))/1 -apple-system, "Segoe UI", sans-serif; letter-spacing: 0.24em; text-transform: uppercase; }
.bp-svg.is-narrow .bp-dims text { display: none; }
.bp-reflect { opacity: 0.16; }
.bp-torch { transition: opacity 0.6s; }
.bp-quay { stroke: rgba(201, 169, 106, 0.45); }
.bp-zone { cursor: pointer; }
.bp-zone__hit { fill: transparent; stroke: transparent; stroke-width: var(--sw, 1.3); transition: fill 0.3s, stroke 0.3s; }
.bp-zone:hover .bp-zone__hit, .bp-zone.is-hover .bp-zone__hit, .bp-zone:focus-visible .bp-zone__hit { fill: url(#bp-hatch); stroke: var(--yx-bright); }
.bp-zone.is-active .bp-zone__hit { fill: rgba(201, 169, 106, 0.04); stroke: transparent; }
.bp-zone:focus { outline: none; }
.bp-hot { pointer-events: none; transition: opacity 0.4s; }
.bp-hot__dot { fill: var(--yx-bright); }
.bp-hot__ring { fill: none; stroke: var(--yx-bright); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: bp-pulse 2.2s ease-out infinite; }
.bp-zone.is-dim .bp-hot { opacity: 0; }
.bp-zone.is-dim:not(:hover):not(.is-hover) .bp-zone__hit { stroke: transparent; }
.bp-svg.is-xray .bp-hot { opacity: 0; }
/* On wide screens the name labels replace the hotspots; phones keep the pulsing dots. */
.bp-svg:not(.is-narrow) .bp-hot { opacity: 0; }
.bp-interior { opacity: 0; transition: opacity 0.6s; pointer-events: none; }
.bp-interior.is-ghost { opacity: 0.5; }
.bp-svg.is-xray .bp-interior.is-ghost { opacity: 0.06; }
.bp-interior.is-on, .bp-svg.is-xray .bp-interior.is-on { opacity: 1; }
.bp-detail { stroke: var(--yx-bright); stroke-width: calc(var(--sw, 1.3) * 0.9); }
/* Close-up finishes: glass, glowing shades, screens, LEDs, rope, steam, smoke and cut steel. */
.bp-detail.is-screen { fill: rgba(150, 215, 255, 0.12); stroke: rgba(170, 225, 255, 0.7); }
.bp-detail.is-glow { fill: rgba(255, 210, 150, 0.35); stroke: #ffd9a3; }
.bp-detail.is-glow-line { stroke: #ffd9a3; opacity: 0.8; }
.bp-detail.is-led { fill: #9fffd0; stroke: none; animation: bp-blink 1.8s ease-in-out infinite; }
.bp-detail.is-sparkle { fill: #fff8e6; stroke: none; animation: bp-twinkle 2.2s ease-in-out infinite; }
.bp-detail.is-sweep { stroke: #9fffd0; stroke-width: calc(var(--sw, 1.3) * 1.2); }
.bp-detail.is-water-line { stroke: #9ff3ff; }
.bp-detail.is-rope { stroke-dasharray: calc(var(--sw, 1.3) * 1.4) calc(var(--sw, 1.3) * 0.9); stroke-width: calc(var(--sw, 1.3) * 1.6); }
.bp-detail.is-cut { fill: url(#bp-hatch); }
.bp-detail.is-steam, .bp-detail.is-smoke { opacity: 0; transform-box: fill-box; transform-origin: bottom; animation: bp-rise 2.6s ease-out infinite; }
.bp-detail.is-smoke { stroke: rgba(236, 230, 216, 0.6); animation-duration: 3.4s; }
@keyframes bp-rise { 0% { opacity: 0; transform: translateY(4px) scaleY(0.7); } 30% { opacity: 0.8; } 100% { opacity: 0; transform: translateY(-14px) scaleY(1.15); } }
/* A product lights up when its label or row is hovered, and stays lit while its suppliers are shown. */
.bp-part { transition: filter 0.25s; }
.bp-part.is-hot .bp-detail, .bp-part.is-lit .bp-detail { stroke: #fffaf0; }
.bp-part.is-hot, .bp-part.is-lit { filter: url(#bp-glow); }
.bp-part.is-lit .bp-detail:not(.is-screen):not(.is-glow):not(.is-led):not(.is-sparkle) { fill: rgba(246, 231, 193, 0.06); }
/* The overview only shows the outlines of a ghosted zone; the fine detail waits for the close-up. */
.bp-interior.is-ghost:not(.is-on) :is(.is-fine, .is-sparkle, .is-steam, .is-smoke, .is-led, .is-screen) { display: none; }
.bp-svg[data-lens="owner"] .bp-interior.is-ghost .bp-detail { stroke: #ffd9a3; }
@keyframes bp-pulse { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(2.6); opacity: 0; } }

/* The detail frame around an open zone. */
.bp-frame { opacity: 0; transition: opacity 0.5s; pointer-events: none; }
.bp-svg.is-xray .bp-frame { opacity: 1; }
.bp-frame__box { fill: rgba(5, 9, 18, 0.25); stroke: rgba(246, 231, 193, 0.3); stroke-width: var(--sw, 1.3); stroke-dasharray: calc(var(--sw, 1.3) * 2) calc(var(--sw, 1.3) * 4); }
.bp-frame__ticks { fill: none; stroke: var(--yx-bright); stroke-width: calc(var(--sw, 1.3) * 1.8); stroke-linecap: square; }
.bp-note { fill: var(--yx-line); font: 600 calc(10px * var(--tk, 1))/1 -apple-system, "Segoe UI", sans-serif; letter-spacing: 0.2em; text-transform: uppercase; }
.bp-note.is-cool { fill: var(--bp-cool); }

/* Lens layers: one per persona, revealed by the scan line. */
.bp-lens, .bp-skyset { opacity: 0; transition: opacity 0.7s ease; pointer-events: none; }
.bp-lens.is-shown, .bp-skyset.is-shown { opacity: 1; }
.bp-svg.is-xray .bp-lens.is-shown { opacity: 0.4; }
.bp-svg.is-xray .bp-lens.is-shown[data-lens="engineer"] { opacity: 0.85; }
.bp-svg.is-xray .bp-skyset.is-shown { opacity: 0; }
.bp-cool { stroke: var(--bp-cool); }
.bp-sight { stroke-dasharray: 10 6; }
.bp-seabed { opacity: 0.6; }
.bp-ping {
  fill: none;
  stroke: var(--bp-cool);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: bp-ping 4.2s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}
@keyframes bp-ping { 0% { transform: scale(0.1); opacity: 0.9; } 100% { transform: scale(10); opacity: 0; } }
.bp-echo { transform-box: fill-box; transform-origin: center; opacity: 0; animation: bp-echo 2.7s linear infinite; }
@keyframes bp-echo { 0% { transform: translateY(0) scaleX(0.6); opacity: 0.9; } 100% { transform: translateY(68px) scaleX(2.4); opacity: 0; } }
.bp-navlight { stroke: none; filter: url(#bp-glow); animation: bp-blink 2.4s ease-in-out infinite; }
.bp-navlight.is-white { fill: #fff; }
.bp-navlight.is-green { fill: #7dffb0; }
@keyframes bp-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
.bp-compass { fill: none; stroke: var(--bp-cool); stroke-width: 0.9; opacity: 0.6; }
.bp-compass .is-fine { stroke-width: 0.5; }
.bp-compass text { stroke: none; }

.bp-flow, .bp-flow-base { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.bp-flow-base { stroke-width: calc(var(--sw, 1.3) * 0.9); opacity: 0.42; }
.bp-flow { stroke-width: calc(var(--sw, 1.3) * 2.1); }
.bp-flow.is-fuel, .bp-flow-base.is-fuel, .bp-level.is-fuel { stroke: #f0a94b; }
.bp-flow.is-water, .bp-flow-base.is-water, .bp-level.is-water, .bp-pool { stroke: #7fd6ec; }
.bp-flow.is-power, .bp-flow-base.is-power { stroke: #fff4dc; }
.bp-flow.is-air, .bp-flow-base.is-air { stroke: #a9bfff; }
.bp-flow.is-fuel { stroke-dasharray: 12 9; animation: bp-flow-fuel 1.3s linear infinite; }
.bp-flow.is-water { stroke-dasharray: 0.5 8; animation: bp-flow-water 0.9s linear infinite; }
.bp-flow.is-power { stroke-dasharray: 10 5 2 5; animation: bp-flow-power 0.8s linear infinite; }
.bp-flow.is-air { stroke-dasharray: 5 6; animation: bp-flow-air 1.6s linear infinite; }
@keyframes bp-flow-fuel { to { stroke-dashoffset: -21; } }
@keyframes bp-flow-water { to { stroke-dashoffset: -8.5; } }
@keyframes bp-flow-power { to { stroke-dashoffset: -22; } }
@keyframes bp-flow-air { to { stroke-dashoffset: -11; } }
.bp-tank { stroke: none; }
.bp-tank.is-fuel { fill: url(#bp-hatch-fuel); }
.bp-tank.is-water { fill: url(#bp-hatch-water); }
.bp-level { fill: none; stroke-width: var(--sw, 1.3); }

.bp-glow-fill { fill: url(#bp-warm); stroke: none; filter: url(#bp-soft); animation: bp-breathe 6s ease-in-out infinite; }
@keyframes bp-breathe { 0%, 100% { opacity: 0.8; } 50% { opacity: 1; } }
.bp-pool { fill: none; stroke-width: calc(var(--sw, 1.3) * 0.8); }
.bp-string { fill: none; stroke: rgba(255, 226, 181, 0.35); stroke-width: calc(var(--sw, 1.3) * 0.5); }
.bp-bulb { r: calc(1.6px * var(--tk, 1)); fill: #ffe2b5; animation: bp-twinkle 2.8s ease-in-out infinite; }
.bp-star { fill: #fff; animation: bp-twinkle 3.6s ease-in-out infinite; }
@keyframes bp-twinkle { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
.bp-moon { fill: rgba(255, 233, 199, 0.08); stroke: #ffe9c7; stroke-width: 1.2; }
.bp-under { fill: url(#bp-under-glow); animation: bp-breathe 4s ease-in-out infinite; }
.bp-under-dot { r: calc(1.8px * var(--tk, 1)); fill: #d9fbff; }

/* The title block: sheet name and the design-office zone. */
.bp-tblock__bg { fill: rgba(6, 10, 19, 0.84); stroke: none; transition: fill 1.2s; }
.bp-svg[data-lens="engineer"] .bp-tblock__bg { fill: rgba(9, 26, 56, 0.9); }
.bp-svg[data-lens="owner"] .bp-tblock__bg { fill: rgba(17, 13, 30, 0.88); }
.bp-tb { fill: var(--yx-line); font: 600 8px/1 -apple-system, "Segoe UI", sans-serif; letter-spacing: 0.2em; text-transform: uppercase; }
.bp-tb.is-dim { fill: rgba(201, 169, 106, 0.62); font-size: 7px; }
.bp-tb.is-tiny { font-size: 6px; letter-spacing: 0.25em; }
.bp-tb.is-title { fill: var(--yx-bright); font: 500 21px/1 var(--lux-serif, Georgia, serif); letter-spacing: 0; text-transform: none; }
.bp-tb.is-lens { fill: #c9cfda; font: italic 400 9.5px/1 var(--lux-serif, Georgia, serif); letter-spacing: 0.01em; text-transform: none; }
.bp-tb.is-val { fill: #fff; font: 500 12px/1 var(--lux-serif, Georgia, serif); letter-spacing: 0.02em; text-transform: none; }

/* Equipment pins inside an open zone, numbered like the list in the column. */
.bp-itemset { opacity: 0; pointer-events: none; transition: opacity 0.35s; }
.bp-itemset.is-on { opacity: 1; pointer-events: auto; }
.bp-item { cursor: pointer; outline: none; }
.bp-item__pop { transform-box: fill-box; transform-origin: center; }
.bp-itemset.is-on .bp-item__pop { animation: bp-pop 0.55s cubic-bezier(0.2, 1.4, 0.4, 1) backwards; animation-delay: calc(var(--i) * 70ms + 650ms); }
@keyframes bp-pop { from { transform: scale(0); opacity: 0; } }
.bp-item__halo { fill: rgba(6, 10, 19, 0.6); }
.bp-item__ring { fill: rgba(201, 169, 106, 0.22); stroke: var(--yx-bright); stroke-width: 1.3; transition: fill 0.2s; }
.bp-item.is-soon .bp-item__ring { fill: rgba(201, 169, 106, 0.08); stroke-dasharray: 3 2.4; }
.bp-item__num { fill: #fff; font: 700 11px/1 -apple-system, "Segoe UI", sans-serif; pointer-events: none; }
.bp-item:hover .bp-item__ring, .bp-item:focus-visible .bp-item__ring, .bp-item.is-hot .bp-item__ring, .bp-item.is-active .bp-item__ring { fill: var(--yx-bright); }
.bp-item:hover .bp-item__num, .bp-item:focus-visible .bp-item__num, .bp-item.is-hot .bp-item__num, .bp-item.is-active .bp-item__num { fill: #0b1220; }
.bp-item.is-active .bp-item__halo { fill: rgba(246, 231, 193, 0.25); }

/* The walk between zones and the persona scan line. */
.bp-route {
  fill: none;
  stroke: var(--yx-bright);
  stroke-width: calc(var(--sw, 1.3) * 1.3);
  stroke-linecap: round;
  stroke-dasharray: 0.1 calc(var(--sw, 1.3) * 4.5);
  opacity: 0;
  transition: opacity 0.6s;
  pointer-events: none;
}
.bp-route.is-on { opacity: 0.65; }
.bp-route-live { fill: none; stroke: var(--yx-bright); stroke-width: calc(var(--sw, 1.3) * 1.6); stroke-linecap: round; stroke-linejoin: round; filter: url(#bp-glow); pointer-events: none; transition: opacity 0.5s; }
.bp-walker { pointer-events: none; transition: opacity 0.4s; }
.bp-walker__dot { fill: #fff; filter: url(#bp-glow); }
.bp-walker__ring { fill: none; stroke: var(--yx-bright); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: bp-pulse 1.4s ease-out infinite; }
.bp-scan { pointer-events: none; }
.bp-scan line { stroke: #fff4d6; stroke-width: calc(var(--sw, 1.3) * 1.6); filter: url(#bp-glow); }

/* Name labels on the yacht: the obvious place to click. */
.bp-pills { position: absolute; inset: 0; pointer-events: none; transition: opacity 0.45s; }
.bp-pills.is-hidden, .bp-pills.is-waiting { opacity: 0; }
.bp-pills.is-hidden .bp-pill, .bp-pills.is-waiting .bp-pill { pointer-events: none; }
.bp-svg.is-narrow ~ .bp-pills { display: none; }
.bp-pill {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px 6px 9px;
  border: 1px solid var(--yx-hair);
  border-radius: 999px;
  background: rgba(7, 11, 21, 0.8);
  color: var(--yx-text);
  font: 600 12.5px/1 -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}
.bp-pill[hidden] { display: none; }
.bp-pill em { color: var(--yx-line); font-size: 11.5px; font-style: normal; font-weight: 500; }
.bp-pill__dot { width: 7px; height: 7px; border: 1.5px solid var(--yx-line); border-radius: 50%; }
.bp-pill.is-key {
  border-color: var(--yx-line);
  background: var(--yx-line);
  color: #0b1220;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4), 0 0 0 4px rgba(201, 169, 106, 0.16);
}
.bp-pill.is-key em { color: rgba(11, 18, 32, 0.65); }
.bp-pill.is-key .bp-pill__dot { border-color: #0b1220; background: #0b1220; animation: bp-dot 2s ease-in-out infinite; }
@keyframes bp-dot { 50% { box-shadow: 0 0 0 4px rgba(11, 18, 32, 0.18); } }
.bp-pill:hover, .bp-pill.is-hover { z-index: 2; border-color: var(--yx-bright); background: rgba(201, 169, 106, 0.28); color: #fff; }
.bp-pill.is-key:hover, .bp-pill.is-key.is-hover { background: var(--yx-bright); color: #0b1220; }

/* Product labels around the detail view, with leaders to their pins. */
.bp-labels { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.35s; }
.bp-labels.is-on { opacity: 1; }
.bp-leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bp-leader-line { fill: none; stroke: rgba(246, 231, 193, 0.45); stroke-width: 1; stroke-dasharray: 3 3; transition: stroke 0.2s; }
.bp-leader-line.is-hot, .bp-leader-line.is-active { stroke: var(--yx-bright); stroke-width: 1.5; stroke-dasharray: none; }
.bp-label {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px 6px 6px;
  border: 1px solid var(--yx-hair);
  border-radius: 999px;
  background: rgba(7, 11, 21, 0.88);
  color: var(--yx-text);
  font: 600 13px/1 -apple-system, "Segoe UI", sans-serif;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  animation: bp-label-in 0.4s backwards;
  animation-delay: calc(var(--n, 0) * 50ms);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
@keyframes bp-label-in { from { opacity: 0; } }
.bp-label i {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--yx-line);
  border-radius: 50%;
  color: var(--yx-bright);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}
.bp-label em { color: var(--yx-line); font-style: normal; font-weight: 500; }
.bp-label.is-key { border-color: var(--yx-line); background: rgba(52, 42, 22, 0.92); }
.bp-label.is-key i { background: var(--yx-line); color: #0b1220; }
.bp-label:hover, .bp-label.is-hot { border-color: var(--yx-bright); background: rgba(80, 64, 34, 0.95); color: #fff; }
.bp-label.is-active { border-color: var(--yx-bright); background: var(--yx-bright); color: #0b1220; }
.bp-label.is-active i { border-color: #0b1220; background: #0b1220; color: var(--yx-bright); }
.bp-label.is-active em { color: rgba(11, 18, 32, 0.7); }
.bp-label.is-soon { border-style: dashed; color: var(--yx-mute); }

/* The key plan: the whole yacht in miniature, with the open zone marked. Click it to go back. */
.bp-keyplan {
  position: absolute;
  z-index: 6;
  left: calc(var(--find-w) + 26px);
  bottom: 22px;
  display: grid;
  gap: 4px;
  width: 230px;
  padding: 8px 10px 8px;
  border: 1px solid var(--yx-hair);
  border-radius: 12px;
  background: var(--yx-glass);
  backdrop-filter: blur(10px);
  color: var(--yx-line);
  font: 600 11px/1 -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.16em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s;
}
.bp-keyplan[hidden], .yx.has-suppliers .bp-keyplan { display: none; }
.bp-keyplan:hover { border-color: var(--yx-line); color: var(--yx-bright); }
.bp-keyplan svg { --sw: 7; display: block; width: 100%; height: 62px; }
.bp-keyplan__zone { fill: rgba(201, 169, 106, 0.35); stroke: var(--yx-bright); stroke-width: 7; }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .yx { --find-w: 330px; }
  .yx.has-suppliers { --sup-w: 340px; }
  .yx-supcol { width: 340px; }
  .yx-title { font-size: 30px; }
  .yx-persona__lead { display: none; }
}

@media (max-width: 760px) {
  .yx { --find-w: 0px; min-height: 600px; }
  .yx.has-suppliers { --sup-w: 0px; }
  .yx-kicker { display: none; }
  .yx-title { margin-bottom: 8px; font-size: 22px; }
  .yx-persona button { padding: 6px 11px; }
  .yx-persona button small { display: none; }
  .yx-side, .yx-supcol {
    top: auto;
    left: 0;
    right: 0;
    width: auto;
    border: 0;
    border-top: 1px solid var(--yx-hair);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.45);
  }
  .yx-side { height: 52%; transition: height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .yx-side.is-tall { height: 86%; }
  .yx-supcol { z-index: 9; height: 86%; transform: translateY(105%); }
  .yx.has-suppliers .yx-supcol { transform: none; }
  .yx-side__handle { display: block; flex: none; width: 100%; height: 20px; padding: 0; border: 0; background: none; cursor: pointer; }
  .yx-side__handle span { display: block; width: 44px; height: 4px; margin: 0 auto; border-radius: 4px; background: var(--yx-soft); }
  .yx-side__head { padding: 0 16px 10px; }
  .yx-side__kicker { margin: 10px 0 8px; font-size: 18px; }
  .yx-search__box { height: 40px; }
  .yx-search input { font-size: 16px; }
  .yx-tree { padding: 6px 12px 24px; }
  .yx-sup { padding: 16px 16px 24px; }
  .yx-sup__title { font-size: 30px; }
  .yx-tour { left: 50%; bottom: calc(52% + 10px); }
  .yx:has(.yx-side.is-tall) .yx-tour, .yx.has-suppliers .yx-tour { opacity: 0; pointer-events: none; }
  .yx-tour__label { min-width: 140px; font-size: 12px; }
  .yx-tour__btn { width: 34px; height: 34px; font-size: 20px; }
  .bp-keyplan { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .yx * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- shareable links and the shortlist: share button, card stars, the tray button, the shared list ---------- */
.yx-sup__bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin: 0 0 14px; }
.yx-sup__bar .yx-back { margin: 0; }
.yx-share-wrap { position: relative; display: inline-flex; flex: none; }
.yx-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 0;
  padding: 7px 13px 7px 11px;
  border: 1px solid var(--yx-hair);
  border-radius: 999px;
  background: none;
  color: var(--yx-text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.yx-share svg { width: 15px; height: 15px; fill: none; stroke: var(--yx-line); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.yx-share:hover, .yx-share.is-done { border-color: var(--yx-line); background: rgba(201, 169, 106, 0.1); }
.yx-share__note {
  position: absolute;
  z-index: 2;
  top: calc(100% + 6px);
  right: 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--yx-line);
  color: #0b1220;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  animation: yx-rise 0.25s;
}
.yx-share__note:empty { display: none; }

/* The foot now carries the star as well: the stand keeps a readable width and the buttons wrap below it. */
.yx-card__foot { flex-wrap: wrap; row-gap: 8px; }
.yx-card__stand { flex: 1 1 150px; }
.yx-card__acts { display: flex; flex: none; align-items: center; gap: 6px; margin-left: auto; }

/* The way into the shortlist tray: top right of the drawing, clear of the supplier column. */
.yx-shortlist {
  position: absolute;
  z-index: 7;
  top: 16px;
  right: calc(var(--sup-w) + 16px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 0;
  height: 40px;
  padding: 0 6px 0 14px;
  border: 1px solid var(--yx-line);
  border-radius: 999px;
  background: var(--yx-glass);
  backdrop-filter: blur(10px);
  color: var(--yx-bright);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 0 24px rgba(201, 169, 106, 0.18);
  cursor: pointer;
  transition: right 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.2s;
}
.yx-shortlist[hidden] { display: none; }
.yx-shortlist:hover { background: rgba(201, 169, 106, 0.16); }
.yx-shortlist svg { width: 15px; height: 15px; fill: var(--yx-line); }
.yx-shortlist b {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--yx-line);
  color: #0b1220;
  font-size: 12px;
}
.yx-shortlist:focus-visible, .yx-share:focus-visible { outline: 2px solid var(--yx-bright); outline-offset: 2px; }

/* A shared ?sub= link: that list's first companies in plain HTML below the stage. */
.yx-shared { padding: 72px 24px 8px; background: var(--lux-ivory, #f6f3ec); color: var(--lux-ink, #0b1220); }
.yx-shared[hidden] { display: none; }
.yx-shared .yx-index__title { margin-bottom: 10px; }
.yx-shared + .yx-index { padding-top: 48px; }
.yx-shared__count { margin: 0 0 22px; color: var(--lux-text-mute, #6e6e73); font-size: 15px; }
.yx-shared__count strong { color: var(--lux-ink, #0b1220); font-family: var(--lux-serif); font-size: 26px; font-weight: 500; }
.yx-shared__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 32px; margin: 0 0 24px; padding: 0; list-style: none; }
.yx-shared__list li { padding: 12px 0; border-bottom: 1px solid var(--lux-rule, #e8e3d6); font-size: 15px; }
.yx-shared__list a { color: inherit; font-weight: 600; }
.yx-shared__list b {
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--lux-gold, #c9a96a);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 2px;
}
.yx-shared__list small { display: block; color: #8a6a2c; font-size: 13px; }
.yx-shared__list span { display: block; margin-top: 2px; color: #55575c; font-size: 13.5px; line-height: 1.45; }
.yx-shared__all { display: inline-block; padding: 12px 18px; border: 1px solid var(--lux-gold, #c9a96a); color: inherit; font-weight: 600; text-decoration: none; }
.yx-shared__all:hover { background: var(--lux-gold, #c9a96a); }

@media (max-width: 760px) {
  .yx-shortlist { z-index: 10; top: 10px; right: 12px; height: 36px; }
  .yx-shared { padding: 48px 16px 4px; }
}
