/* Business Entree desktop. The existing grid column and the trigger hitboxes stay anchored. */
@media (min-width: 861px) {
  html[data-terminal-variant="business"][data-business-entree="closed"] .business-entree-index:has(> .sb-rail-panel) {
    --sb-rail-paper: color-mix(in srgb, var(--business-paper) 62%, var(--business-surface));
    --sb-rail-ink: var(--business-ink);
    --sb-rail-raised: color-mix(in srgb, var(--sb-rail-ink) 3%, var(--sb-rail-paper));
    --sb-rail-dim: color-mix(in srgb, var(--sb-rail-ink) 73%, var(--sb-rail-paper));
    --sb-rail-line: color-mix(in srgb, var(--sb-rail-ink) 12%, var(--sb-rail-paper));
    --sb-rail-divider: color-mix(in srgb, var(--sb-rail-ink) 14%, transparent);
    --sb-rail-rim: color-mix(in srgb, var(--sb-rail-ink) 23%, var(--sb-rail-paper));
    --sb-rail-glint: color-mix(in srgb, var(--sb-rail-ink) 45%, var(--sb-rail-paper));
    --sb-rail-cta: color-mix(in srgb, var(--sb-rail-ink) 7%, var(--sb-rail-paper));
    --sb-rail-ease: cubic-bezier(.18, .8, .24, 1);
    overflow: visible;
    transition: border-color 190ms, z-index 0s linear 240ms;
  }

  html[data-terminal-variant="business"][data-business-entree="closed"] .business-entree-index[data-sb-rail-open] {
    z-index: 10;
    border-right-color: transparent;
    transition-delay: 0s;
  }

  /* These three siblings contain the Entrée behind the menu. The rail owns
     its logo and action panel, so all interactive foreground text stays crisp. */
  @media screen and (forced-colors: none) {
    html[data-terminal-variant="business"][data-business-entree="closed"]
      .terminal-body:has(> .business-entree-index > .sb-rail-panel)
      > :is(.business-workspace, .business-entree-credit, .business-entree-ready) {
      transition: filter 165ms cubic-bezier(.25, .6, .3, 1);
    }
    html[data-terminal-variant="business"][data-business-entree="closed"]
      .terminal-body:has(> .business-entree-index[data-sb-rail-open])
      > :is(.business-workspace, .business-entree-credit, .business-entree-ready) {
      filter: blur(2px);
      transition-duration: 180ms;
    }
  }

  .business-entree-index:has(> .sb-rail-panel)::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 6px -5px 6px 5px;
    box-sizing: border-box;
    border: 1px solid var(--sb-rail-rim);
    border-radius: 18px 10px 10px 18px;
    background: linear-gradient(100deg, var(--sb-rail-raised), var(--sb-rail-paper) 78%);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .09), 0 2px 5px rgb(5 15 23 / .14), 6px 12px 28px -15px rgb(5 15 23 / .48);
    opacity: 0;
    transform: translateX(-3px);
    pointer-events: none;
    transition: transform 245ms var(--sb-rail-ease), opacity 175ms ease;
  }

  .business-entree-index[data-sb-rail-open]::before {
    opacity: 1;
    transform: none;
  }

  .business-entree-index[data-sb-rail-open] .sb-business-rail-guide {
    visibility: hidden;
  }

  .business-entree-index[data-sb-rail-open] .business-entree-topic-row {
    position: relative;
    isolation: isolate;
  }

  .business-entree-index [data-sb-rail-current] > .business-entree-topic-row::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 5px -1px 5px -5px;
    border-radius: 4px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--sb-rail-ink) 5%, transparent));
    pointer-events: none;
  }

  /* A short datum line connects the stationary toggle to the action wing. */
  .business-entree-index [data-sb-rail-current] > .business-entree-topic-row::after {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(100% - 1px);
    width: 16px;
    height: 1px;
    background: linear-gradient(90deg, var(--sb-rail-glint), transparent);
    pointer-events: none;
  }

  .business-entree-index[data-sb-rail-open] [data-sb-rail-current] .business-entree-topic {
    color: var(--sb-rail-ink);
  }

  .business-entree-index [data-sb-rail-current] .business-entree-topic::before {
    opacity: .9;
  }

  html[data-business-entree="closed"] .business-entree-index [data-sb-rail-current] .business-entree-topic-toggle__symbol::after {
    opacity: 0;
    transform: scaleY(0);
  }

  /* The action surface owns one continuous hit area all the way to the plus. Only its paint moves. */
  .sb-rail-panel {
    position: absolute;
    top: var(--sb-rail-panel-top, 12px);
    left: calc(100% - 1px);
    z-index: 3;
    width: min(max(528px, var(--sb-rail-label-width, 0px)), var(--sb-rail-available-width, 70vw));
    container: sb-rail-actions / inline-size;
    box-sizing: border-box;
    isolation: isolate;
    visibility: hidden;
    pointer-events: none;
    color: var(--sb-rail-ink);
    font-family: var(--sans, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    transition: visibility 0s linear 230ms;
  }

  .business-entree-index[data-sb-rail-open] > .sb-rail-panel {
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .sb-rail-panel::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 0 0 -5px;
    border: 1px solid var(--sb-rail-rim);
    border-left: 0;
    border-radius: 0 16px 16px 0;
    background: linear-gradient(110deg, var(--sb-rail-paper) 22%, var(--sb-rail-raised));
    box-shadow: 0 2px 4px -2px rgb(5 15 23 / .24), 13px 19px 34px -17px rgb(5 15 23 / .41), inset 0 1px 0 rgb(255 255 255 / .07);
    opacity: 0;
    clip-path: inset(-60px 99% -60px -8px);
    transition: clip-path 180ms cubic-bezier(.35, 0, .25, 1), opacity 140ms 25ms ease;
  }

  .business-entree-index[data-sb-rail-open] > .sb-rail-panel::before {
    opacity: 1;
    clip-path: inset(-60px -72px -60px -8px);
    transition: clip-path 190ms var(--sb-rail-ease), opacity 100ms ease;
  }

  .sb-rail-panel::after {
    content: "";
    position: absolute;
    top: 0;
    left: 10px;
    width: 46%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--sb-rail-glint) 32%, transparent);
    opacity: 0;
    transform: scaleX(.15);
    transform-origin: left;
    pointer-events: none;
    transition: opacity 130ms ease, transform 200ms var(--sb-rail-ease);
  }

  .business-entree-index[data-sb-rail-open] > .sb-rail-panel::after {
    opacity: .38;
    transform: none;
    transition: opacity 185ms ease, transform 320ms var(--sb-rail-ease);
  }

  .sb-rail-panel__content {
    position: relative;
    box-sizing: border-box;
    max-height: var(--sb-rail-panel-max-height, 76dvh);
    padding: clamp(20px, 5.31cqw, 28px) clamp(20px, 6.07cqw, 32px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--sb-rail-rim) transparent;
    opacity: 0;
    transform: translateX(-5px);
    transition: opacity 115ms ease, transform 160ms var(--sb-rail-ease);
  }

  .business-entree-index[data-sb-rail-open] .sb-rail-panel__content {
    opacity: 1;
    transform: none;
    transition: opacity 160ms 25ms ease, transform 180ms 16ms var(--sb-rail-ease);
  }

  .sb-rail-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 18px;
  }

  .sb-rail-panel .sb-rail-panel__title {
    margin: 0;
    color: var(--sb-rail-ink);
    font: 500 clamp(18px, 5.2cqw, 20px)/1.2 var(--sans, sans-serif);
    letter-spacing: -.027em;
    text-wrap: balance;
    overflow-wrap: anywhere;
  }

  .sb-rail-panel .sb-rail-panel__close {
    appearance: none;
    flex: 0 0 30px;
    position: relative;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin: -2px -5px -2px 0;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    color: var(--sb-rail-dim);
    cursor: pointer;
  }

  .sb-rail-panel__close::before, .sb-rail-panel__close::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 1px;
    background: currentColor;
    transform: rotate(45deg);
  }

  .sb-rail-panel__close::after { transform: rotate(-45deg); }

  .sb-rail-panel__list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 0 18px;
  }
  .sb-rail-panel__list > * { grid-column: 1 / -1; }

  .sb-rail-panel .sb-rail-panel__group {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 21px 0 5px;
    color: var(--sb-rail-dim);
    font: 500 9.5px/1.4 var(--sans, sans-serif);
    letter-spacing: .095em;
    text-transform: uppercase;
  }

  .sb-rail-panel__group::after {
    content: "";
    flex: 1 1 18px;
    height: 1px;
    background: var(--sb-rail-line);
  }

  .sb-rail-panel .sb-rail-panel__action {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    appearance: none;
    min-width: 0;
    width: 100%;
    min-height: 44px;
    padding: 8px 42px 8px 18px;
    margin: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    box-shadow: none;
    color: var(--sb-rail-ink);
    font: 450 13px/1.35 var(--sans, sans-serif);
    letter-spacing: -.01em;
    text-align: start;
    overflow-wrap: anywhere;
    cursor: pointer;
    transition: background-color 150ms ease;
  }

  /* Draw separators only between actionable siblings in the same group. */
  .sb-rail-panel__action:not([data-primary]) + .sb-rail-panel__action::before {
    content: "";
    position: absolute;
    inset: 0 18px auto 18px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--sb-rail-divider) 7%, var(--sb-rail-divider) 76%, transparent);
    pointer-events: none;
  }

  .sb-rail-panel__action::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 19.5px;
    width: 9px;
    height: 9px;
    background: currentColor;
    clip-path: polygon(13% 87%, 5% 79%, 70% 14%, 27% 14%, 27% 3%, 89% 3%, 89% 65%, 78% 65%, 78% 22%);
    opacity: .46;
    transform: translateY(-50%);
    pointer-events: none;
    transition: opacity 140ms, transform 175ms var(--sb-rail-ease);
  }

  .sb-rail-panel .sb-rail-panel__action[data-primary] {
    min-height: 58px;
    padding: 11px 42px 11px 17px;
    margin-bottom: 4px;
    border: 1px solid var(--sb-rail-rim);
    border-radius: 9px;
    background-color: var(--sb-rail-cta);
    background-image: linear-gradient(112deg, color-mix(in srgb, var(--sb-rail-ink) 4%, transparent), transparent 56%);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .055), 0 1px 2px rgb(5 15 23 / .08);
    color: var(--sb-rail-ink);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -.018em;
  }

  .sb-rail-panel__action[data-primary]::after {
    right: 16px;
    width: 14px;
    height: 11px;
    clip-path: polygon(0 46%, 79% 46%, 47% 13%, 55% 5%, 100% 50%, 55% 95%, 47% 87%, 79% 55%, 0 55%);
    opacity: .85;
    transform: translate(0, -50%);
  }

  /* Show two life-situation columns only after accounting for the actual labels,
     buttons' insets and arrow space at the current language and font settings. */
  .sb-rail-panel__list[data-sb-rail-columns="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sb-rail-panel__list[data-sb-rail-columns="2"] > .sb-rail-panel__group ~ .sb-rail-panel__group ~ .sb-rail-panel__action {
    grid-column: auto;
  }
  .sb-rail-panel__list[data-sb-rail-columns="2"] > .sb-rail-panel__group ~ .sb-rail-panel__group + .sb-rail-panel__action + .sb-rail-panel__action::before {
    content: none;
  }

  .sb-rail-panel :is(.sb-rail-panel__action, .sb-rail-panel__close):focus-visible {
    outline: 2px solid var(--sb-rail-ink);
    outline-offset: 1px;
  }

  .sb-rail-panel__action:focus-visible::after { opacity: .95; }

  @media (hover: hover) {
    .sb-rail-panel .sb-rail-panel__close:hover,
    .sb-rail-panel .sb-rail-panel__action:not([data-primary]):hover {
      background-color: color-mix(in srgb, var(--sb-rail-ink) 5%, var(--sb-rail-paper));
    }
    .sb-rail-panel .sb-rail-panel__action[data-primary]:hover {
      background-color: color-mix(in srgb, var(--sb-rail-ink) 11%, var(--sb-rail-paper));
    }
    .sb-rail-panel__action:hover::after { opacity: .9; transform: translate(1px, calc(-50% - 1px)); }
    .sb-rail-panel__action[data-primary]:hover::after { transform: translate(2px, -50%); }
  }

  @media (any-pointer: coarse) {
    .sb-rail-panel .sb-rail-panel__action { min-height: 44px; }
    .sb-rail-panel .sb-rail-panel__action[data-primary] { min-height: 58px; }
    .sb-rail-panel .sb-rail-panel__close { width: 44px; height: 44px; flex-basis: 44px; }
  }

  @media (prefers-reduced-motion: reduce) {
    html[data-terminal-variant="business"][data-business-entree="closed"]
      .terminal-body:has(> .business-entree-index > .sb-rail-panel)
      > :is(.business-workspace, .business-entree-credit, .business-entree-ready),
    .business-entree-index:has(> .sb-rail-panel),
    .business-entree-index:has(> .sb-rail-panel)::before,
    .business-entree-index[data-sb-rail-open] .business-entree-topic-row::before,
    .sb-rail-panel, .sb-rail-panel::before, .sb-rail-panel::after, .sb-rail-panel__content, .sb-rail-panel__action,
    .sb-rail-panel__action::after, .business-entree-index[data-sb-rail-open] > .sb-rail-panel::before,
    .business-entree-index[data-sb-rail-open] > .sb-rail-panel::after,
    .business-entree-index[data-sb-rail-open] .sb-rail-panel__content {
      transition: none !important;
      animation: none !important;
    }
  }

  @media (forced-colors: active) {
    html[data-terminal-variant="business"][data-business-entree="closed"] .business-entree-index:has(> .sb-rail-panel) {
      --sb-rail-paper: Canvas;
      --sb-rail-raised: Canvas;
      --sb-rail-ink: CanvasText;
      --sb-rail-dim: CanvasText;
      --sb-rail-line: GrayText;
      --sb-rail-rim: CanvasText;
      --sb-rail-cta: ButtonFace;
      --sb-rail-glint: CanvasText;
    }
    .sb-rail-panel::before, .business-entree-index:has(> .sb-rail-panel)::before { background: Canvas; }
    .sb-rail-panel .sb-rail-panel__action[data-primary] { border: 2px solid ButtonText; }
    .sb-rail-panel__close::before, .sb-rail-panel__close::after, .sb-rail-panel__action::after { background: ButtonText; }
    .sb-rail-panel__action:not([data-primary]) + .sb-rail-panel__action::before { background: GrayText; }
    .sb-rail-panel :is(.sb-rail-panel__action, .sb-rail-panel__close):focus-visible { outline-color: Highlight; }
  }
}

/* The Business Entree uses its existing mobile navigation below its sidebar breakpoint. */
@media (max-width: 860px) {
  .sb-rail-panel { display: none; }
}

/* A flush desktop rail. Paint the shadow outside the column so the flyout
   covers it exactly where it joins the rail, even as its height changes. */
@media screen and (min-width: 861px) and (forced-colors: none) {
  html:root[data-terminal-variant="business"][data-business-entree="closed"] .business-entree-index {
    --sb-rail-face: color-mix(in srgb, var(--business-paper) 96%, var(--business-ink));
    --sb-rail-light: rgb(255 255 255 / .44);
    --sb-rail-edge: color-mix(in srgb, var(--business-ink) 12%, var(--sb-rail-face));
    --sb-rail-shadow-hue: color-mix(in srgb, var(--business-ink) 75%, #18201f);
    --sb-rail-contact: color-mix(in srgb, var(--sb-rail-shadow-hue) 14%, transparent);
    --sb-rail-penumbra: color-mix(in srgb, var(--sb-rail-shadow-hue) 5%, transparent);
    --sb-rail-wing-shadow: color-mix(in srgb, var(--sb-rail-shadow-hue) 17%, transparent);
    border-right-color: transparent;
  }

  html:root[data-terminal-variant="business"][data-business-entree="closed"]:is(
    [data-sb-entree-active][data-sb-entree-theme="dark"],
    [data-theme="dark"]:not([data-sb-entree-active])
  ) .business-entree-index {
    --sb-rail-face: color-mix(in srgb, var(--business-paper) 97.5%, var(--business-ink));
    --sb-rail-light: rgb(255 255 255 / .035);
    --sb-rail-edge: color-mix(in srgb, var(--business-ink) 9%, var(--sb-rail-face));
    --sb-rail-shadow-hue: color-mix(in srgb, var(--business-paper) 18%, black);
    --sb-rail-contact: color-mix(in srgb, var(--sb-rail-shadow-hue) 42%, transparent);
    --sb-rail-penumbra: color-mix(in srgb, var(--sb-rail-shadow-hue) 17%, transparent);
    --sb-rail-wing-shadow: color-mix(in srgb, var(--sb-rail-shadow-hue) 48%, transparent);
  }

  html:root[data-terminal-variant="business"][data-business-entree="closed"] .business-entree-index::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 -1px 0 0;
    box-sizing: border-box;
    border: 0;
    border-right: 1px solid var(--sb-rail-edge);
    border-radius: inherit;
    background: radial-gradient(ellipse 92% 195px at 0 0, var(--sb-rail-light), transparent 100%), var(--sb-rail-face);
    box-shadow: none;
    opacity: 1;
    transform: none;
    transition: none;
    pointer-events: none;
  }

  html:root[data-terminal-variant="business"][data-business-entree="closed"] .business-entree-index::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 auto 0 calc(100% + 1px);
    width: 18px;
    background: linear-gradient(90deg, var(--sb-rail-contact), var(--sb-rail-penumbra) 4px, transparent);
    pointer-events: none;
  }

  html:root[data-terminal-variant="business"][data-business-entree="closed"] .business-entree-index > .sb-rail-panel::before {
    background: linear-gradient(126deg,
      color-mix(in srgb, var(--sb-rail-raised) 96%, transparent),
      color-mix(in srgb, var(--sb-rail-face) 93%, transparent) 56%,
      color-mix(in srgb, var(--sb-rail-face) 96%, transparent));
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-color: var(--sb-rail-edge);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .09),
      3px 4px 8px -5px var(--sb-rail-contact), 13px 18px 36px -15px var(--sb-rail-wing-shadow);
  }
}

/* Shared desktop geometry for the two shortcuts below a category. */
@media (min-width: 861px) {
  html[data-business-entree="closed"] .business-entree-index {
    --sb-shortcut-width: 84px;
    --sb-shortcut-indent: var(--entree-topic-indent, 23px);
    --sb-shortcut-paper: var(--sb-rail-face, var(--sb-rail-paper, var(--business-paper)));
    --sb-shortcut-ink: var(--sb-rail-ink, var(--business-ink));
    --sb-shortcut-fill: color-mix(in srgb, var(--sb-shortcut-ink) 21%, var(--sb-shortcut-paper));
    --sb-shortcut-hover: color-mix(in srgb, var(--sb-shortcut-ink) 28%, var(--sb-shortcut-paper));
    --sb-shortcut-stroke: color-mix(in srgb, var(--sb-shortcut-ink) 29%, var(--sb-shortcut-paper));
  }

  html[data-business-entree="closed"] .business-entree-index:lang(en) {
    --sb-shortcut-width: 112px;
  }

  html[data-business-entree="closed"] .business-entree-index
    :is([data-business-entree-group="owner"], [data-business-entree-group="seeker"]) > .business-entree-offers {
    width: min(100%, calc(var(--sb-shortcut-indent) + var(--sb-shortcut-width)));
  }

  html[data-business-entree="closed"] .business-entree-index
    :is([data-business-entree-group="owner"], [data-business-entree-group="seeker"]) > .business-entree-offers {
    display: grid;
    grid-template-columns: var(--sb-shortcut-indent) minmax(0, 1fr);
    gap: 0;
    align-items: center;
    justify-content: start;
  }

  html[data-business-entree="closed"] .business-entree-index
    :is([data-business-entree-group="owner"], [data-business-entree-group="seeker"])
    > .business-entree-offers .business-entree-offers__pill {
    display: block;
    align-content: center;
    box-sizing: border-box;
    min-width: 0;
    min-height: 23px;
    padding: 3px 4px;
    border: 1px solid var(--sb-shortcut-stroke);
    border-radius: 4px;
    background: var(--sb-shortcut-fill);
    color: var(--sb-shortcut-ink);
    font-weight: 500;
    line-height: 14px;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  html[data-business-entree="closed"] .business-entree-index
    :is([data-business-entree-group="owner"], [data-business-entree-group="seeker"])
    > .business-entree-offers:is(:hover, :focus-visible, :active) .business-entree-offers__pill {
    background: var(--sb-shortcut-hover);
    border-color: color-mix(in srgb, var(--sb-shortcut-ink) 48%, var(--sb-shortcut-paper));
  }

  @media (hover: hover) and (pointer: fine) and (not (any-pointer: coarse)) {
    html[data-business-entree="closed"] .business-entree-index
      .business-entree-topic-group:is([data-business-entree-group="owner"], [data-business-entree-group="seeker"]):has(> .business-entree-offers)
      > .business-entree-topic-row > :is(.business-entree-topic, .business-entree-topic-toggle) {
      min-height: 32px;
      padding: 12px 0 0;
    }

    html[data-business-entree="closed"] .business-entree-index
      :is([data-business-entree-group="owner"], [data-business-entree-group="seeker"]) > .business-entree-offers {
      margin-block-start: 7px;
    }
  }

  @media (forced-colors: active) {
    html[data-business-entree="closed"] .business-entree-index .business-entree-offers {
      --sb-shortcut-fill: ButtonFace;
      --sb-shortcut-hover: ButtonFace;
      --sb-shortcut-stroke: ButtonText;
      --sb-shortcut-ink: ButtonText;
    }
  }
}

@media (min-width: 861px) {
  html[data-business-entree="closed"] .business-entree-index
    [data-business-entree-group="seeker"] > .business-entree-offers {
    width: max-content;
    grid-template-columns: minmax(0, var(--sb-shortcut-indent)) max-content;
  }

  html[data-business-entree="closed"] .business-entree-index
    [data-business-entree-group="seeker"] > .business-entree-offers .business-entree-offers__pill {
    min-width: var(--sb-shortcut-width);
    white-space: nowrap;
    overflow-wrap: normal;
  }

  html[data-business-entree="closed"] .business-entree-index
    [data-business-entree-group="seeker"] > .business-entree-offers .business-entree-offers__arrow {
    max-width: 100%;
  }
}

html[data-terminal-variant="business"] .sb-mobile-choice-sheet
  [data-category="seeker"] > .sb-mobile-choice-category-hint {
  flex: none;
  max-width: none;
  white-space: nowrap;
}


/* The choice dialog keeps the palette and scroll container of its host terminal. */
.sb-mobile-choice-sheet .sb-mobile-owner {
  padding-block: 9px 1px;
  border-block-end: 1px solid var(--choice-line);
  color: var(--choice-accent);
}

.sb-mobile-choice-sheet .sb-mobile-owner__title {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 2px 12px;
  color: inherit;
  font: 500 1.08rem/1.3 var(--sans, system-ui, sans-serif);
  letter-spacing: -.025em;
  text-align: start;
  text-transform: none;
}

.sb-mobile-owner__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--choice-rim), transparent);
}

.sb-mobile-choice-sheet .sb-mobile-owner__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--choice-rim);
  border-radius: 9px;
  overflow: hidden;
  background: var(--choice-rim);
}

.sb-mobile-choice-sheet .sb-mobile-owner__action,
.sb-mobile-choice-sheet .sb-mobile-owner__all {
  box-sizing: border-box;
  appearance: none;
  min-inline-size: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  touch-action: manipulation;
  color: var(--choice-accent);
  font-family: var(--sans, system-ui, sans-serif);
  text-align: start;
  text-transform: none;
  -webkit-tap-highlight-color: transparent;
}

.sb-mobile-choice-sheet .sb-mobile-owner__action {
  display: flex;
  flex-flow: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 7px;
  min-block-size: 69px;
  padding: 11px clamp(9px, 3vw, 14px);
  background: var(--choice-raised);
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: -.014em;
  transition: background-color 120ms ease-out;
}

.sb-mobile-owner__action:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.sb-mobile-choice-sheet .sb-mobile-owner__action[data-owner-shortcut="valuation"] {
  background: var(--choice-action);
  background-image: linear-gradient(125deg, color-mix(in srgb, var(--choice-accent) 5%, transparent), transparent 76%);
}

.sb-mobile-choice-sheet .sb-mobile-owner__icon {
  display: block;
  flex: none;
  width: 17px;
  height: 17px;
  color: var(--choice-muted);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.sb-mobile-owner__label {
  max-inline-size: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.sb-mobile-choice-sheet .sb-mobile-owner__all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-block-size: 44px;
  padding: 6px 6px 6px 2px;
  background: transparent;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.01em;
}

.sb-mobile-owner__all::after {
  content: "";
  flex: none;
  box-sizing: border-box;
  width: 7px;
  height: 7px;
  border-block-start: 1px solid var(--choice-muted);
  border-inline-end: 1px solid var(--choice-muted);
  transform: rotate(45deg);
}

.sb-mobile-choice-sheet .sb-mobile-choice-row:has(> .sb-mobile-choice-category-preview) {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 2px;
}

.sb-mobile-choice-row:has(> .sb-mobile-choice-category-preview) > .sb-mobile-choice-category-label {
  flex: none;
}

.sb-mobile-choice-category-preview {
  display: block;
  min-inline-size: 0;
  color: var(--choice-muted);
  font-size: .8rem;
  font-weight: 400;
  line-height: 1.34;
  letter-spacing: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.sb-mobile-choice-sheet .sb-mobile-owner button:focus-visible {
  outline: 2px solid var(--choice-accent);
  outline-offset: -3px;
}

@media (hover: hover) and (pointer: fine) {
  .sb-mobile-choice-sheet .sb-mobile-owner__action:hover,
  .sb-mobile-choice-sheet .sb-mobile-owner__all:hover {
    background: color-mix(in srgb, var(--choice-accent) 11%, var(--choice-paper));
  }
}

.sb-mobile-choice-sheet .sb-mobile-owner button:active {
  background: color-mix(in srgb, var(--choice-accent) 16%, var(--choice-paper));
}

@media (prefers-reduced-motion: reduce) {
  .sb-mobile-choice-sheet .sb-mobile-owner__action { transition: none; }
}

@media (forced-colors: active) {
  .sb-mobile-choice-sheet .sb-mobile-owner__grid { border-color: ButtonText; }
  .sb-mobile-choice-sheet .sb-mobile-owner__action { outline: 1px solid ButtonText; }
  .sb-mobile-choice-sheet .sb-mobile-owner button:focus-visible { outline-color: Highlight; }
}

/* A body-level fixed reading bar stays above the isolated terminal page. */
[data-sb-motion-dock],
[data-sb-motion-edge] {
  --sb-motion-paper: var(--business-paper, var(--terminal-panel, Canvas));
  --sb-motion-ink: var(--business-ink, var(--terminal-text, CanvasText));
  --sb-motion-mark: color-mix(in srgb, var(--sb-motion-ink) 50%, var(--terminal-accent, var(--sb-motion-ink)));
  pointer-events: none;
  user-select: none;
}

[data-sb-motion-dock][hidden] { display: none; }

[data-sb-motion-anchor] { position: relative; }

[data-sb-motion-dock] {
  position: fixed;
  z-index: 40;
  inset: 0 auto auto var(--sb-motion-dock-left, 0px);
  transform: translate3d(0, var(--sb-motion-dock-top, 0px), 0);
  inline-size: var(--sb-motion-dock-room, 100%);
  box-sizing: border-box;
  display: block;
  min-block-size: 32px;
  padding: 0 max(56px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--sb-motion-ink) 16%, var(--sb-motion-paper));
  border-radius: 0;
  background: var(--sb-motion-paper);
  color: var(--sb-motion-ink);
  box-shadow: none;
  font: 500 .8125rem/31px var(--sans, system-ui, sans-serif);
  letter-spacing: -.008em;
  text-align: start;
  opacity: var(--sb-motion-dock, 0);
  touch-action: pan-y pinch-zoom;
}

[data-sb-motion-dock][data-sb-motion-virtual] {
  transform: translate3d(0, var(--sb-host-view-top, 0px), 0);
}

[data-sb-motion-dock][data-sb-motion-solid] { pointer-events: auto; }
html[data-sb-motion-reading] { scroll-padding-block-start: max(38px, env(safe-area-inset-top, 0px)); }

[data-sb-motion-edge] {
  display: block;
  position: absolute;
  z-index: 1;
  inset: 0 auto auto 0;
  inline-size: min(100%, 13rem);
  block-size: 1px;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--sb-motion-mark) 34%, transparent 72%);
  background-size: 145% 100%;
  background-position: var(--sb-motion-sweep, 28%) 0;
  opacity: var(--sb-motion-strength, 0);
}

[data-sb-motion-edge][data-sb-motion-phase="arrived"] {
  animation: sb-business-motion-cue 650ms ease-out both;
}

@keyframes sb-business-motion-cue {
  0% { opacity: .8; background-position: 85% 0; }
  100% { opacity: 0; background-position: var(--sb-motion-sweep, 28%) 0; }
}


button[data-sb-motion-phase="selected"]:not(:focus-visible) {
  outline: 1px solid color-mix(in srgb, var(--business-ink, var(--terminal-text, CanvasText)) 56%, transparent);
  outline-offset: -2px;
  animation: sb-business-select-ring 260ms ease-out both;
}
@keyframes sb-business-select-ring {
  0%, 30% { outline-color: color-mix(in srgb, var(--business-ink, var(--terminal-text, CanvasText)) 68%, transparent); }
  100% { outline-color: transparent; }
}

/* Native keyboard focus keeps its ring when a funnel returns focus. */
[data-sb-funnel-return]:not(:focus-visible) {
  --sb-return-ink: var(--business-ink, var(--terminal-text, CanvasText));
  outline: 1px solid color-mix(in srgb, var(--sb-return-ink) 58%, transparent);
  outline-offset: -2px;
  animation: sb-business-return-ring 800ms ease-out both;
}
@keyframes sb-business-return-ring {
  0%, 42% { outline-color: color-mix(in srgb, var(--sb-return-ink) 66%, transparent); }
  100% { outline-color: transparent; }
}

@media (prefers-reduced-motion: reduce) {
  button[data-sb-motion-phase="selected"]:not(:focus-visible),
  [data-sb-funnel-return]:not(:focus-visible) { animation: none; }
  [data-sb-motion-edge] { background-position: 40% 0; }
  [data-sb-motion-edge][data-sb-motion-phase] { animation: none; opacity: .65; }
}

@media (forced-colors: active) {
  [data-sb-funnel-return]:not(:focus-visible) { outline-color: Highlight; animation: none; }
  [data-sb-motion-dock] { background: Canvas; color: CanvasText; border-bottom: 1px solid CanvasText; box-shadow: none; }
  [data-sb-motion-edge] { background: Highlight; }
}

/* Compact desktop rail: readable labels without taking over the terminal. */
@media (min-width: 861px) {
  html:root[data-terminal-variant="business"] .terminal-body[data-business-entree="closed"] {
    --entree-index: 216px;
  }
  html:root[data-terminal-variant="business"][data-business-entree="closed"] .business-entree-index {
    --sb-shortcut-width: 114px;
  }
  html:root[data-terminal-variant="business"][data-business-entree="closed"] .business-entree-topic-row {
    column-gap: 8px;
  }
  html:root[data-terminal-variant="business"][data-business-entree="closed"] .business-entree-topic {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
  }
  html:root[data-terminal-variant="business"][data-business-entree="closed"] .business-entree-topic > span {
    white-space: normal;
    hyphens: none;
    overflow-wrap: normal;
  }
  html:root[data-terminal-variant="business"][data-business-entree="closed"] .business-entree-topic-toggle {
    width: 32px;
    min-width: 32px;
  }
  html:root[data-terminal-variant="business"][data-business-entree="closed"] .business-entree-knowledge-item {
    font-size: 12px;
    line-height: 1.5;
  }
  html:root[data-terminal-variant="business"][data-business-entree="closed"] .business-entree-offers,
  html:root[data-terminal-variant="business"][data-business-entree="closed"] .business-entree-offers__pill {
    font-size: 12px;
    line-height: 16px;
  }
  html:root[data-terminal-variant="business"][data-business-entree="closed"] .business-entree-offers__pill {
    min-height: 26px;
    padding: 4px 6px;
  }
}
@media (min-width: 861px) and (max-width: 1180px) {
  html:root[data-terminal-variant="business"] .terminal-body[data-business-entree="closed"] {
    --entree-index: 208px;
  }
}

/* Two direct actions per category, with compact and consistent labels. */
@media (min-width: 861px) {
  html:root[data-terminal-variant="business"][data-business-entree="closed"] .business-entree-index {
    --sb-shortcut-width: 132px;
  }
  html:root[data-terminal-variant="business"][data-business-entree="closed"] .business-entree-index
    :is([data-business-entree-group="owner"], [data-business-entree-group="seeker"]) > .business-entree-offers {
    width: min(100%, calc(var(--sb-shortcut-indent) + var(--sb-shortcut-width)));
    grid-template-columns: var(--sb-shortcut-indent) minmax(0, 1fr);
    min-height: 26px;
    margin-block-start: 5px;
    font-size: 11px;
    line-height: 16px;
  }
  html:root[data-terminal-variant="business"][data-business-entree="closed"] .business-entree-index
    :is([data-business-entree-group="owner"], [data-business-entree-group="seeker"])
    > .business-entree-offers + .business-entree-offers {
    margin-block-start: 3px;
  }
  html:root[data-terminal-variant="business"][data-business-entree="closed"] .business-entree-index
    :is([data-business-entree-group="owner"], [data-business-entree-group="seeker"])
    > .business-entree-offers .business-entree-offers__pill {
    min-width: 0;
    min-height: 24px;
    padding: 3px 6px;
    font-size: 11px;
    line-height: 16px;
    white-space: nowrap;
    overflow-wrap: normal;
  }
}

/* Give the guiding question a clear hierarchy above the navigation. */
@media (min-width: 861px) {
  html:root[data-terminal-variant="business"][data-business-entree="closed"]
    .terminal-body .business-entree-index > .business-entree-index__label {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0;
  }
}

/* Personal primary action, with restrained weight and open letter spacing. */
html[data-terminal-variant="business"][data-business-entree="closed"] .terminal-body .business-entree-cta[data-sb-cta-layout="short"] {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
}

html[data-terminal-variant="business"][data-business-entree="closed"] .terminal-body .business-entree-cta[data-sb-cta-layout="short"] .business-entree-cta__label,
html[data-terminal-variant="business"][data-business-entree="closed"] .terminal-body .business-entree-cta[data-sb-cta-layout="short"] .business-entree-cta__text {
  font: inherit;
  letter-spacing: 0.015em;
  white-space: nowrap;
}

@media (max-width: 860px) {
  html[data-terminal-variant="business"][data-business-entree="closed"] .terminal-body .business-entree-cta[data-sb-cta-layout="short"] {
    font-size: clamp(20px, 6.15vw, 24px);
  }

  html[data-terminal-variant="business"][data-business-entree="closed"] .terminal-body .business-entree-cta[data-sb-cta-layout="short"] .business-entree-cta__label {
    padding-inline: 20px;
  }
}

@media (max-width: 380px) {
  html[data-terminal-variant="business"][data-business-entree="closed"] .terminal-body .business-entree-cta[data-sb-cta-layout="short"] {
    grid-template-columns: minmax(0, 1fr) 56px;
  }

  html[data-terminal-variant="business"][data-business-entree="closed"] .terminal-body .business-entree-cta[data-sb-cta-layout="short"] .business-entree-cta__label {
    padding-inline: 12px;
  }
}

/* Use the wider desktop button for a stronger, still restrained label. */
@media (min-width: 1280px) {
  html[data-terminal-variant="business"][data-business-entree="closed"] .terminal-body .business-entree-cta[data-sb-cta-layout="short"] {
    font-size: 32px;
  }
}

/* Centre the larger house illustration and wordmark in the desktop rail. */
@media (min-width: 861px) {
  html:root[data-terminal-variant="business"][data-business-entree="closed"] .terminal-body .business-entree-index > .business-entree-signature {
    left: 20px;
    right: 20px;
    align-items: center;
    text-align: center;
  }

  html:root[data-terminal-variant="business"][data-business-entree="closed"] .terminal-body .business-entree-index .business-entree-signature__art {
    width: 166px;
    max-width: 100%;
    height: auto;
    flex: 0 0 auto;
  }

  html:root[data-terminal-variant="business"][data-business-entree="closed"] .terminal-body .business-entree-index > .business-entree-signature .business-entree-signature__type {
    align-items: center;
    text-align: center;
  }

  html:root[data-terminal-variant="business"][data-business-entree="closed"] .terminal-body .business-entree-index > .business-entree-signature .business-entree-signature__type > strong {
    font-size: 23px;
    font-weight: 450;
    line-height: 1.16;
    letter-spacing: 0.045em;
  }
}

/* Bring the broker's identity forward and relate the upper card to the CTA. */
html:root[data-terminal-variant="business"][data-business-entree="closed"] .terminal-body {
  --entree-plate-start: #efede8;
  --entree-plate-end: #efede8;
  --entree-plate-ink: #20323b;
}

html:root[data-terminal-variant="business"][data-business-entree="closed"] .business-entree-brand__name {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

html:root[data-terminal-variant="business"][data-business-entree="closed"] .business-entree-backplate__title {
  font-weight: 500;
  letter-spacing: -0.015em;
}

@media (max-width: 860px) {
  html:root[data-terminal-variant="business"][data-business-entree="closed"] .business-entree-brand__name {
    font-size: 18px;
    line-height: 1.3;
  }
}
