/* Signature Entrée desktop. The existing grid column and the trigger hitboxes stay anchored. */
@media (min-width: 861px) {
  html[data-signature-entree="closed"] .signature-entree-index:has(> .sb-rail-panel) {
    --sb-rail-paper: color-mix(in srgb, var(--se-paper) 62%, var(--se-inset));
    --sb-rail-ink: var(--se-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-signature-entree="closed"] .signature-entree-index[data-sb-rail-open] {
    z-index: 10;
    border-right-color: transparent;
    transition-delay: 0s;
  }

  /* Signature mounts its engraved house beside the rail. Keep it on
     the raised surface with its native light/dark treatment. */
  .terminal-body:has(> .signature-entree-index[data-sb-rail-open]) > .signature-entree-house {
    z-index: 11;
  }
  @media screen and (forced-colors: none) {
    html[data-signature-entree="closed"]
      .terminal-body:has(> .signature-entree-index > .sb-rail-panel)
      > :is(.terminal-header, #home, .signature-entree-footer, .terminal-footer) {
      transition: filter 165ms cubic-bezier(.25, .6, .3, 1);
    }
    html[data-signature-entree="closed"]
      .terminal-body:has(> .signature-entree-index[data-sb-rail-open])
      > :is(.terminal-header, #home, .signature-entree-footer, .terminal-footer) {
      filter: blur(clamp(3px, .25vw, 4px));
      transition-duration: 210ms;
    }
  }

  .signature-entree-index:has(> .sb-rail-panel)::after {
    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;
  }

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

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

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

  .signature-entree-index [data-sb-rail-current] > .signature-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. */
  .signature-entree-index [data-sb-rail-current] > .signature-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;
  }

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

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

  html[data-signature-entree="closed"] .signature-entree-index [data-sb-rail-current] .signature-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: clamp(302px, 27.5cqw, 374px);
    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;
  }

  .signature-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 12px 12px 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 220ms cubic-bezier(.35, 0, .25, 1), opacity 150ms 65ms ease;
  }

  .signature-entree-index[data-sb-rail-open] > .sb-rail-panel::before {
    opacity: 1;
    clip-path: inset(-60px -72px -60px -8px);
    transition: clip-path 265ms 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);
  }

  .signature-entree-index[data-sb-rail-open] > .sb-rail-panel::after {
    opacity: .73;
    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: 13px 19px 16px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--sb-rail-rim) transparent;
    opacity: 0;
    transform: translateX(-9px);
    transition: opacity 115ms ease, transform 160ms var(--sb-rail-ease);
  }

  .signature-entree-index[data-sb-rail-open] .sb-rail-panel__content {
    opacity: 1;
    transform: none;
    transition: opacity 170ms 70ms ease, transform 220ms 50ms var(--sb-rail-ease);
  }

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

  .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 10px;
  }
  .sb-rail-panel__list > * { grid-column: 1 / -1; }

  .sb-rail-panel .sb-rail-panel__group {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 14px 0 3px;
    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: 34px;
    padding: 6px 21px 6px 3px;
    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 4px auto 3px;
    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: 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: 48px;
    padding: 9px 36px 9px 13px;
    margin-bottom: 4px;
    border: 1px solid var(--sb-rail-rim);
    border-radius: 7px;
    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: 14px;
    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%);
  }

  /* Only an owner's second section uses the two-column list. Other categories keep their natural order. */
  @container sb-rail-actions (min-width: 350px) {
    .sb-rail-panel__list:has(.sb-rail-panel__group ~ .sb-rail-panel__group) {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .sb-rail-panel__list > .sb-rail-panel__group ~ .sb-rail-panel__group ~ .sb-rail-panel__action {
      grid-column: auto;
      font-size: 12.75px;
    }
    /* The first two cells share a row, so neither needs a top divider. */
    .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: 48px; }
    .sb-rail-panel .sb-rail-panel__close { width: 44px; height: 44px; flex-basis: 44px; }
  }

  @media (prefers-reduced-motion: reduce) {
    html[data-signature-entree="closed"]
      .terminal-body:has(> .signature-entree-index > .sb-rail-panel)
      > :is(.terminal-header, #home, .signature-entree-footer, .terminal-footer),
    .signature-entree-index:has(> .sb-rail-panel),
    .signature-entree-index:has(> .sb-rail-panel)::after,
    .signature-entree-index[data-sb-rail-open] .signature-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, .signature-entree-index[data-sb-rail-open] > .sb-rail-panel::before,
    .signature-entree-index[data-sb-rail-open] > .sb-rail-panel::after,
    .signature-entree-index[data-sb-rail-open] .sb-rail-panel__content {
      transition: none !important;
      animation: none !important;
    }
  }

  @media (forced-colors: active) {
    html[data-signature-entree="closed"] .signature-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, .signature-entree-index:has(> .sb-rail-panel)::after { 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 Signature Entrée uses its existing mobile navigation below its sidebar breakpoint. */
@media (max-width: 860px) {
  .sb-rail-panel { display: none; }
}

/* Signature Entrée touch navigation, registered in its existing shell. */
.sb-mobile-choice,
.sb-mobile-choice-layer,
.sb-mobile-choice-layer:not([open]) {
  display: none;
}

@media (max-width: 860px) {
  html[data-signature-entree="closed"] .terminal-body > .sb-mobile-choice:not([hidden]) {
    position: absolute;
    z-index: 9;
    inset: 0 12px auto auto;
    display: inline-flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 7px;
    box-sizing: border-box;
    min-height: 44px;
    padding: clamp(7px, 1.4vw, 11px) 8px 10px;
    appearance: none;
    border: 0;
    border-radius: 6px;
    background: transparent;
    box-shadow: none;
    color: var(--se-ink, var(--terminal-text));
    font: 500 13px/18px var(--sans, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    letter-spacing: .005em;
    white-space: nowrap;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
  }

  .sb-mobile-choice__icon {
    position: relative;
    width: 14px;
    height: 10px;
    margin-top: 4px;
    flex: 0 0 14px;
    color: inherit;
    opacity: .86;
    background: linear-gradient(currentColor, currentColor) 0 50% / 10px 1px no-repeat;
  }
  .sb-mobile-choice__icon::before,
  .sb-mobile-choice__icon::after {
    content: "";
    position: absolute;
    left: 0;
    height: 1px;
    background: currentColor;
  }
  .sb-mobile-choice__icon::before { top: 0; width: 14px; }
  .sb-mobile-choice__icon::after { bottom: 0; width: 7px; }
  .sb-mobile-choice:active .sb-mobile-choice__icon { opacity: .62; }
  .sb-mobile-choice:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }

}

/* A narrow embedded Terminal can be expanded to a wider host viewport. The
   dialog remains styled there, while its shoulder trigger stays mobile-only. */
@media screen {
  /* showModal() supplies native focus containment. Geometry comes from the
     intersection of the Entrée and its host viewport, also in tall iframes. */
  html[data-signature-entree="closed"] dialog.sb-mobile-choice-layer[open] {
    --choice-paper: color-mix(in srgb, var(--se-paper, var(--terminal-bg)) 65%, var(--terminal-panel, var(--terminal-bg)));
    --choice-raised: color-mix(in srgb, var(--se-ink, var(--terminal-text)) 3%, var(--choice-paper));
    --choice-accent: var(--se-ink, var(--terminal-text));
    --choice-muted: color-mix(in srgb, var(--choice-accent) 72%, var(--choice-paper));
    --choice-line: color-mix(in srgb, var(--choice-accent) 15%, transparent);
    --choice-rim: color-mix(in srgb, var(--choice-accent) 23%, var(--choice-paper));
    --choice-action: color-mix(in srgb, var(--choice-accent) 7%, var(--choice-paper));
    --choice-motion: cubic-bezier(.18, .78, .22, 1);
    position: fixed;
    inset: var(--sb-choice-top, 0px) auto auto var(--sb-choice-left, 0px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    box-sizing: border-box;
    width: var(--sb-choice-width, 100%);
    height: var(--sb-choice-height, 100dvh);
    max-width: none;
    max-height: none;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    container: sb-visible-mobile-entree / size;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--choice-accent);
    font-family: var(--sans, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    text-align: start;
    overscroll-behavior: contain;
    isolation: isolate;
  }
  .sb-mobile-choice-layer::backdrop { background: transparent; }

  .sb-mobile-choice-backdrop {
    position: absolute;
    inset: 0;
    touch-action: pinch-zoom;
    background: rgb(6 17 22 / .26);
    opacity: 0;
    transition: opacity 175ms ease;
  }
  .sb-mobile-choice-layer[data-open] .sb-mobile-choice-backdrop { opacity: 1; }

  @media (max-width: 860px) {
    html[data-signature-entree="closed"] .terminal-body:has(> .sb-mobile-choice)
      > :is(#home, .terminal-header, .signature-entree-house, .signature-entree-footer, .sb-mobile-choice) {
      transition: filter 175ms ease;
    }
    html[data-signature-entree="closed"] .terminal-body[data-sb-mobile-choice-open]
      > :is(#home, .terminal-header, .signature-entree-house, .signature-entree-footer, .sb-mobile-choice) {
      filter: blur(3px);
    }

  }

  .sb-mobile-choice-sheet {
    position: relative;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: min(100%, 480px);
    height: min(536px, 82%);
    min-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: 1px solid var(--choice-rim);
    border-bottom: 0;
    border-radius: 19px 19px 0 0;
    background: linear-gradient(125deg, var(--choice-raised), var(--choice-paper) 65%);
    color: var(--choice-accent);
    box-shadow: 0 -12px 36px -18px rgb(4 14 19 / .48);
    transform: translateY(18px);
    opacity: 0;
    transition: transform 185ms var(--choice-motion), opacity 155ms ease;
  }
  .sb-mobile-choice-sheet::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    left: 16px;
    right: 18%;
    height: 1px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--choice-accent) 34%, transparent) 24%, transparent 78%);
    pointer-events: none;
  }
  .sb-mobile-choice-layer[data-open] .sb-mobile-choice-sheet {
    opacity: 1;
    transform: translateY(0);
    transition: transform 235ms var(--choice-motion), opacity 175ms ease;
  }

  .sb-mobile-choice-head {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 6px;
    min-width: 0;
    min-height: 55px;
    padding: 4px 9px 4px 18px;
    padding-left: max(18px, env(safe-area-inset-left, 0px));
    padding-right: max(9px, env(safe-area-inset-right, 0px));
    border-bottom: 1px solid var(--choice-line);
  }
  .sb-mobile-choice-sheet .sb-mobile-choice-title {
    min-width: 0;
    flex: 1;
    margin: 0;
    color: var(--choice-accent);
    font: 500 20px/1.18 var(--sans, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    letter-spacing: -.035em;
    text-align: start;
    overflow-wrap: anywhere;
  }
  .sb-mobile-choice-sheet :is(.sb-mobile-choice-back, .sb-mobile-choice-close) {
    position: relative;
    display: inline-grid;
    place-items: center;
    flex: 0 0 44px;
    min-height: 44px;
    width: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    color: var(--choice-muted);
    cursor: pointer;
    touch-action: manipulation;
  }
  .sb-mobile-choice-sheet .sb-mobile-choice-back { margin-left: -10px; }
  .sb-mobile-choice-back::before {
    content: "";
    width: 8px;
    height: 8px;
    border-inline-start: 1.4px solid currentColor;
    border-bottom: 1.4px solid currentColor;
    transform: rotate(45deg);
  }
  .sb-mobile-choice-close::before,
  .sb-mobile-choice-close::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 1.25px;
    background: currentColor;
    transform: rotate(45deg);
  }
  .sb-mobile-choice-close::after { transform: rotate(-45deg); }

  .sb-mobile-choice-scroll {
    flex: 1 1 auto;
    min-height: 0;
    padding: 5px 18px max(14px, env(safe-area-inset-bottom, 0px));
    padding-left: max(18px, env(safe-area-inset-left, 0px));
    padding-right: max(18px, env(safe-area-inset-right, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    touch-action: pan-y pinch-zoom;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--choice-rim) transparent;
    -webkit-overflow-scrolling: touch;
  }
  .sb-mobile-choice-sheet .sb-mobile-choice-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    padding: 8px 27px 8px 3px;
    margin: 0;
    appearance: none;
    border: 0;
    border-radius: 5px;
    background: transparent;
    box-shadow: none;
    color: var(--choice-accent);
    font: 450 14px/1.38 var(--sans, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    letter-spacing: -.01em;
    text-align: start;
    overflow-wrap: anywhere;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    cursor: pointer;
  }
  .sb-mobile-choice-row:not([data-kind="primary"]) + .sb-mobile-choice-row::before {
    content: "";
    position: absolute;
    inset: 0 2px auto 3px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--choice-line) 7%, var(--choice-line) 78%, transparent);
    pointer-events: none;
  }
  .sb-mobile-choice-row::after {
    content: "";
    position: absolute;
    right: 5px;
    top: 50%;
    pointer-events: none;
    color: var(--choice-muted);
    transform: translateY(-50%);
  }
  .sb-mobile-choice-row[data-kind="category"]::after {
    width: 6px;
    height: 6px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    transform: translateY(-50%) rotate(45deg);
  }
  .sb-mobile-choice-row:is([data-kind="action"], [data-kind="resource"])::after {
    width: 9px;
    height: 9px;
    opacity: .7;
    background: currentColor;
    clip-path: polygon(13% 87%, 5% 79%, 70% 14%, 27% 14%, 27% 3%, 89% 3%, 89% 65%, 78% 65%, 78% 22%);
  }
  .sb-mobile-choice-sheet .sb-mobile-choice-row[data-kind="primary"] {
    min-height: 48px;
    margin: 8px 0 4px;
    padding: 10px 33px 10px 13px;
    border: 1px solid var(--choice-rim);
    border-radius: 7px;
    background: var(--choice-action);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .065);
    font-size: 15px;
    font-weight: 500;
  }
  .sb-mobile-choice-row[data-kind="primary"]::after {
    right: 13px;
    width: 14px;
    height: 11px;
    background: currentColor;
    clip-path: polygon(0 46%, 79% 46%, 47% 13%, 55% 5%, 100% 50%, 55% 95%, 47% 87%, 79% 55%, 0 55%);
  }
  .sb-mobile-choice-sheet .sb-mobile-choice-group {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 16px 0 1px;
    color: var(--choice-muted);
    font: 500 10px/1.4 var(--sans, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    letter-spacing: .085em;
    text-transform: uppercase;
  }
  .sb-mobile-choice-group::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--choice-line);
  }

  .sb-mobile-choice-layer [hidden] { display: none !important; }
  .sb-mobile-choice-sheet :is(button:focus-visible) {
    outline: 2px solid var(--choice-accent);
    outline-offset: -2px;
  }
  .sb-mobile-choice-sheet button:active {
    background-color: color-mix(in srgb, var(--choice-accent) 11%, var(--choice-paper));
  }
  @container sb-visible-mobile-entree (max-height: 460px) {
    .sb-mobile-choice-sheet { height: calc(100% - 6px); }
    .sb-mobile-choice-head { min-height: 48px; padding-block: 1px; }
  }
  /* With first-party host expansion or standalone mode, the content plane
     occupies the complete visible viewport. Scroll belongs to the action list. */
  html[data-signature-entree="closed"] dialog.sb-mobile-choice-layer[open][data-fullscreen] {
    background: var(--choice-paper);
  }
  .sb-mobile-choice-layer[data-fullscreen] .sb-mobile-choice-backdrop {
    display: none;
  }
  .sb-mobile-choice-layer[data-fullscreen] .sb-mobile-choice-sheet {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    box-sizing: border-box;
    align-items: center;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
  }
  .sb-mobile-choice-layer[data-fullscreen] .sb-mobile-choice-sheet::before {
    display: none;
  }
  .sb-mobile-choice-layer[data-fullscreen] .sb-mobile-choice-head,
  .sb-mobile-choice-layer[data-fullscreen] .sb-mobile-choice-scroll {
    box-sizing: border-box;
    width: min(100%, 560px);
    min-width: 0;
  }
  .sb-mobile-choice-layer[data-fullscreen] .sb-mobile-choice-head {
    min-height: 58px;
    padding: calc(5px + env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) 5px max(20px, env(safe-area-inset-left, 0px));
  }
  .sb-mobile-choice-layer[data-fullscreen] .sb-mobile-choice-scroll {
    padding: 8px max(20px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
    scroll-padding-block: 5px calc(20px + env(safe-area-inset-bottom, 0px));
  }
  .sb-mobile-choice-sheet .sb-mobile-choice-row[data-kind="resource"] {
    min-height: 44px;
    font-size: 13px;
    color: var(--choice-muted);
  }

  @media (prefers-reduced-motion: reduce) {
    .sb-mobile-choice-layer *,
    html[data-signature-entree="closed"] .terminal-body:has(> .sb-mobile-choice)
      > :is(#home, .terminal-header, .signature-entree-house, .signature-entree-footer, .sb-mobile-choice) {
      transition: none !important;
    }
  }
  @media (forced-colors: active) {
    html[data-signature-entree="closed"] dialog.sb-mobile-choice-layer[open] {
      --choice-accent: CanvasText;
      --choice-muted: CanvasText;
      --choice-action: ButtonFace;
      --choice-rim: CanvasText;
      --choice-line: GrayText;
      --choice-paper: Canvas;
    }
    .sb-mobile-choice-sheet { background: Canvas; }
    .sb-mobile-choice-backdrop { background: Canvas; opacity: 0; }
    .sb-mobile-choice-layer[data-open] .sb-mobile-choice-backdrop { opacity: .45; }
    .sb-mobile-choice-row:not([data-kind="primary"]) + .sb-mobile-choice-row::before { background: GrayText; }
    .sb-mobile-choice-row:is([data-kind="action"], [data-kind="resource"], [data-kind="primary"])::after,
    .sb-mobile-choice-close::before, .sb-mobile-choice-close::after { background: ButtonText; }
    html[data-signature-entree="closed"] .terminal-body[data-sb-mobile-choice-open] > * { filter: none; }
  }
}


/* The Signature frame cuts away on the left. Reserve a clear inked shoulder
   on the right at phone widths; edge and surface use identical geometry. */
@media (max-width: 480px) {
  html[data-signature-entree="closed"] .terminal-body[data-signature-entree="closed"]:has(> .sb-mobile-choice:not([hidden])) {
    --se-choice-notch-width: min(240px, calc(100% - 106px));
    --se-notch-top-size: var(--se-choice-notch-width) 47.52950956px;
    --se-notch-top-edge-size: var(--se-choice-notch-width) 48px;
  }
  html[data-signature-entree="closed"] .terminal-body:has(> .sb-mobile-choice:not([hidden])) .servicecenter-brand {
    width: var(--se-choice-notch-width);
  }
}
@media (min-width: 481px) and (max-width: 540px) {
  html[data-signature-entree="closed"] .terminal-body[data-signature-entree="closed"]:has(> .sb-mobile-choice:not([hidden])) {
    --frame-notch-width: min(290px, calc(100% - 208px));
  }
}

/* On Signature the desktop index and Entrée share their top, bottom and left edges.
   An equal inset on these edges keeps the two corner arcs concentric. */
@media (min-width: 861px) {
  html[data-signature-entree="closed"] .signature-entree-index:has(> .sb-rail-panel)::after {
    --sb-rail-frame-inset: 6px;
    --sb-rail-frame-inner-radius: max(0px, calc(var(--frame-radius) - var(--sb-rail-frame-inset)));
    --sb-rail-frame-offset: calc(0px - var(--sb-rail-frame-inset));
    inset: var(--sb-rail-frame-inset) -5px var(--sb-rail-frame-inset) var(--sb-rail-frame-inset);
    border-radius: var(--sb-rail-frame-inner-radius) 12px 12px var(--sb-rail-frame-inner-radius);
    /* Clip this decoration and its shadow at the original frame contour. The
       outward-facing edge is free, and the separate action panel keeps its full extent. */
    clip-path: inset(var(--sb-rail-frame-offset) -48px var(--sb-rail-frame-offset) var(--sb-rail-frame-offset)
      round var(--frame-radius) 0 0 var(--frame-radius));
    transform: none;
    transition: opacity 180ms var(--sb-rail-ease);
  }
}

.signature-entree-index > .signature-entree-index__wordmark {
  display: none;
}

@media (min-width: 861px) {
  html:root[data-signature-entree="closed"] .signature-entree-index > .signature-entree-index__wordmark {
    display: block;
    position: absolute;
    inset-block-start: 101px;
    /* The native index's content edge supplies the static inline position. */
    font: normal 400 clamp(13px, .9vw, 14.5px)/1.4 var(--sans);
    letter-spacing: .065em;
    color: color-mix(in srgb, var(--se-nav-ink) 83%, var(--se-paper));
    white-space: nowrap;
  }

  html:root[data-signature-entree="closed"] .signature-entree-index > .signature-entree-index__label {
    position: relative;
    /* This native line box is also the guide's positioning reference.
       Center the new copy in it and preserve the existing category positions. */
    min-block-size: 1lh;
  }
  html:root[data-signature-entree="closed"] .signature-entree-index__label > .signature-entree-index__question {
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: 50%;
    transform: translateY(-50%);
    font: normal 400 14px/22px var(--sans);
    letter-spacing: .008em;
    text-transform: none;
    white-space: nowrap;
    color: var(--se-nav-ink);
  }
  html:root[data-signature-entree="closed"] .signature-entree-index__label > .signature-entree-index__question:lang(en) {
    inline-size: 98px;
    white-space: normal;
    text-wrap: balance;
  }
}

/* The existing frame cuts out the title on the left. Its raised right
   shoulder is the mobile selection control, including the 44px hit area. */
@media (max-width: 860px) {
  html[data-signature-entree="closed"] .terminal-body > .sb-mobile-choice:not([hidden]) {
    --sb-notch-paper: var(--se-paper, var(--terminal-bg));
    --sb-notch-ink: var(--se-ink, var(--terminal-text));
    --sb-notch-accent: var(--terminal-accent, var(--sb-notch-ink));
    --sb-notch-material: color-mix(in srgb, var(--sb-notch-accent) 10%, var(--sb-notch-paper));
    --sb-notch-edge: color-mix(in srgb, var(--sb-notch-ink) 19%, transparent);
    --sb-notch-radius: var(--frame-radius, 22px);
    --sb-notch-material-width: 144px;
    inset: 0 0 auto auto;
    width: max(100px, calc((100% - var(--frame-notch-width, 290px)) / 2));
    height: 44px;
    min-height: 44px;
    max-width: 100%;
    padding: 0 17px 8px 10px;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    isolation: isolate;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: color-mix(in srgb, var(--sb-notch-ink) 92%, var(--sb-notch-paper));
    font: 500 12.5px/16px var(--sans, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    letter-spacing: .025em;
  }

  /* The inset follows the frame at the top and right, with just one lip
     toward the content. Its curved left end meets the lifted shoulder. */
  html[data-signature-entree="closed"] .terminal-body > .sb-mobile-choice::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 1px 1px 8px max(0px, calc(100% - var(--sb-notch-material-width)));
    pointer-events: none;
    border-radius: 0 max(0px, calc(var(--sb-notch-radius) - 1px)) 0 29px / 0 max(0px, calc(var(--sb-notch-radius) - 1px)) 0 34px;
    background: linear-gradient(110deg,
      color-mix(in srgb, var(--sb-notch-material) 72%, var(--sb-notch-paper)),
      var(--sb-notch-material));
    box-shadow: inset 0 -1px 0 var(--sb-notch-edge);
  }

  html[data-signature-entree="closed"] .sb-mobile-choice > .sb-mobile-choice__icon {
    display: grid;
    grid-template: repeat(2, 5px) / repeat(2, 5px);
    gap: 2px;
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
    margin: 0;
    opacity: .87;
    background: none;
  }
  .sb-mobile-choice__icon::before,
  .sb-mobile-choice__icon::after { content: none; }
  .sb-mobile-choice__icon > i {
    box-sizing: border-box;
    border: 1px solid currentColor;
    border-radius: 1.25px;
  }
  .sb-mobile-choice__icon > i:first-child { background: currentColor; }
  .sb-mobile-choice__label { font: inherit; letter-spacing: inherit; }
  .sb-mobile-choice > :is(.sb-mobile-choice__icon, .sb-mobile-choice__label) {
    transition: transform 120ms ease-out;
    pointer-events: none;
  }
  html[data-signature-entree="closed"] .terminal-body > .sb-mobile-choice:active {
    --sb-notch-material: color-mix(in srgb,
      color-mix(in srgb, var(--sb-notch-accent) 10%, var(--sb-notch-paper)) 90%, black);
    --sb-notch-edge: color-mix(in srgb, var(--sb-notch-ink) 23%, transparent);
  }
  .sb-mobile-choice:active > :is(.sb-mobile-choice__icon, .sb-mobile-choice__label) {
    transform: translateY(1px);
  }
  html[data-signature-entree="closed"] .terminal-body > .sb-mobile-choice:focus-visible {
    outline: none;
  }
  html[data-signature-entree="closed"] .terminal-body > .sb-mobile-choice:focus-visible::before {
    outline: 2px solid var(--sb-focus, currentColor);
    outline-offset: -2px;
  }
}

@media (max-width: 480px) {
  html[data-signature-entree="closed"] .terminal-body > .sb-mobile-choice:not([hidden]) {
    --sb-notch-material-width: 148px;
    width: calc(100% - var(--se-choice-notch-width, 240px));
  }
}

@media (max-width: 860px) and (prefers-reduced-motion: reduce) {
  .sb-mobile-choice > :is(.sb-mobile-choice__icon, .sb-mobile-choice__label) { transition: none; }
}
@media (max-width: 860px) and (forced-colors: active) {
  html[data-signature-entree="closed"] .terminal-body > .sb-mobile-choice:not([hidden]) {
    color: ButtonText;
  }
  html[data-signature-entree="closed"] .terminal-body > .sb-mobile-choice::before {
    background: ButtonFace;
    border-bottom: 1px solid ButtonText;
  }
  html[data-signature-entree="closed"] .terminal-body > .sb-mobile-choice:focus-visible::before {
    outline-color: Highlight;
  }
}

/* Reveal the choice surface at its normal text size from the original
   shoulder button. The terminal and the host page are not transformed. */
@media screen and (prefers-reduced-motion: no-preference) {
  html[data-signature-entree="closed"] dialog.sb-mobile-choice-layer[open][data-fullscreen][data-notch-motion] {
    clip-path: inset(
      var(--sb-notch-face-y)
      calc(100% - var(--sb-notch-face-x) - var(--sb-notch-face-w))
      calc(100% - var(--sb-notch-face-y) - var(--sb-notch-face-h))
      var(--sb-notch-face-x) round var(--sb-notch-corners)
    );
    transition: clip-path 180ms cubic-bezier(.36, .02, .54, 1);
  }
  html[data-signature-entree="closed"] dialog.sb-mobile-choice-layer[open][data-fullscreen][data-notch-motion][data-open] {
    clip-path: inset(0px 0px 0px 0px round 0px);
    transition: clip-path 210ms cubic-bezier(.2, .78, .25, 1);
  }
  html[data-signature-entree="closed"] dialog.sb-mobile-choice-layer[open][data-fullscreen][data-notch-motion] .sb-mobile-choice-sheet {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* The mobile control shares the original frame surface. The dialog still
   measures the invisible pseudo-element's insets and radii for its motion. */
@media (max-width: 860px) {
  html[data-signature-entree="closed"] .terminal-body > .sb-mobile-choice:not([hidden]) {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--sb-notch-ink);
    font-style: normal;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: .02em;
  }
  html[data-signature-entree="closed"] .terminal-body > .sb-mobile-choice::before {
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  html[data-signature-entree="closed"] .terminal-body > .sb-mobile-choice:focus-visible::before {
    outline: none;
  }
  html[data-signature-entree="closed"] .terminal-body > .sb-mobile-choice:focus-visible > .sb-mobile-choice__label {
    outline: 2px solid var(--sb-focus, currentColor);
    outline-offset: 3px;
    border-radius: 2px;
  }
  html[data-signature-entree="closed"] .terminal-body > .sb-mobile-choice > .sb-mobile-choice__icon {
    color: color-mix(in srgb, var(--sb-notch-accent) 68%, var(--sb-notch-ink));
    opacity: 1;
  }
  html[data-signature-entree="closed"] .terminal-body > .sb-mobile-choice:active >
    :is(.sb-mobile-choice__icon, .sb-mobile-choice__label) {
    opacity: .84;
  }
}

@media (max-width: 860px) and (prefers-reduced-motion: reduce) {
  .sb-mobile-choice:active > :is(.sb-mobile-choice__icon, .sb-mobile-choice__label) {
    transform: none;
  }
}
@media (max-width: 860px) and (forced-colors: active) {
  html[data-signature-entree="closed"] .terminal-body > .sb-mobile-choice:not([hidden]),
  html[data-signature-entree="closed"] .terminal-body > .sb-mobile-choice > .sb-mobile-choice__icon {
    color: ButtonText;
  }
  html[data-signature-entree="closed"] .terminal-body > .sb-mobile-choice:focus-visible > .sb-mobile-choice__label {
    outline-color: Highlight;
  }
}

/* The documented host can move the iframe while the real menu already
   obscures its contents. A light change in material originates at the same
   notch; text stays readable throughout the presentation and return. */
@media screen {
  html[data-signature-entree="closed"] dialog.sb-mobile-choice-layer[open][data-sb-notch-stable] {
    clip-path: none !important;
    transition: none !important;
    background: var(--choice-paper);
  }
  html[data-signature-entree="closed"] dialog.sb-mobile-choice-layer[open][data-sb-notch-stage] {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    z-index: 2147483647;
  }
  html[data-signature-entree="closed"] dialog.sb-mobile-choice-layer[open][data-sb-notch-stable] .sb-mobile-choice-sheet {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
@media screen and (prefers-reduced-motion: no-preference) {
  @keyframes sb-notch-arrival-light {
    0%, 100% { opacity: 0; }
    32% { opacity: 1; }
  }
  @keyframes sb-notch-return-light {
    0%, 100% { opacity: 0; }
    46% { opacity: 1; }
  }
  html[data-signature-entree="closed"] dialog.sb-mobile-choice-layer[open][data-sb-notch-stable][data-notch-motion]::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(150deg, color-mix(in srgb, var(--choice-accent) 5%, transparent), transparent 70%);
    opacity: 0;
    clip-path: inset(var(--sb-notch-face-y)
      calc(100% - var(--sb-notch-face-x) - var(--sb-notch-face-w))
      calc(100% - var(--sb-notch-face-y) - var(--sb-notch-face-h)) var(--sb-notch-face-x)
      round var(--sb-notch-corners));
    transition: clip-path 180ms cubic-bezier(.36,.02,.54,1);
    animation: sb-notch-return-light 180ms ease-out both;
  }
  html[data-signature-entree="closed"] dialog.sb-mobile-choice-layer[open][data-sb-notch-stable][data-notch-motion][data-open]::after {
    clip-path: inset(0px 0px 0px 0px round 0px);
    transition: clip-path 210ms cubic-bezier(.2,.78,.25,1);
    animation: sb-notch-arrival-light 210ms ease-out both;
  }
}

@media (max-width: 860px) {
  html[data-signature-entree="closed"] .terminal-body > .sb-mobile-choice:not([hidden]) {
    font-size: 16px;
    line-height: 20px;
    gap: 8px;
    padding-inline: 2px 12px;
  }
  html[data-signature-entree="closed"] .terminal-body > .sb-mobile-choice > .sb-mobile-choice__icon {
    grid-template: repeat(2, 7px) / repeat(2, 7px);
    gap: 3px;
    flex-basis: 17px;
    width: 17px;
    height: 17px;
  }
}
