  /* Pharmacy-Xpress Assistant panel.

     One form root owns three surfaces: the desktop command bar,
     the mobile navigation icon and the right-hand drawer. Only the
     mobile icon sits in the navigation rail's own flow; the bar, the
     drawer and the voice call bar are fixed, so the rail contributes no
     button space on desktop. The form sits in the rail's slot, so while
     the panel runs those three live in .pa-layer under <body>
     (assistant_panel.mjs), out of reach of the rail's !important rules
     in main/shell.css.

     Layering. The portal's shared tokens are read, never redefined:
     the values are the "Z-index layers" block in ch_tokens.css. Bottom
     to top:

       command bar         page furniture; a pop-up covers it
       ticket composer     under the drawer at every width
       page pop-ups        modals, loading covers, side sheets,
                           Training dialogs and loading cover
       drawer              above every portal-drawn pop-up
       burger menu         navigation, over the drawer
       MAR pattern editor  dep layers (--pxm-z-overlay)
       reset cover, camera
       toasts, alerts
       call bar            Hang up always reachable

     Native showModal() dialogs sit in the browser's top layer, above
     all of these, and make the drawer inert while open. Every z-index
     of 100 or more is listed in tests/test_layer_order.py. */

  /* Read by the ticket composer, side sheets and centred pop-ups: they sit beside
     the open drawer where both fit (780px = 420px drawer + 360px composer). The
     page area already ends at the drawer (main's content padding,
     _reserve_assistant_space). While it is open a wide table scrolls sideways in
     its own box (--pa-drawer-overflow-x), so its sticky header sticks to that box
     (--pa-drawer-sticky-top); shut, the header sticks to the page. */
  :root { --pa-drawer-width: 420px; --pa-drawer-inset: 0px; --pa-drawer-overflow-x: visible; }
  @media (min-width: 780px) {
    :root:has(.pa-drawer:not([hidden])) {
      --pa-drawer-inset: var(--pa-drawer-width);
      --pa-drawer-overflow-x: auto;
      --pa-drawer-sticky-top: 0px;
    }
  }

  .pa-root, .pa-layer { font-family: var(--ch-font-primary); }
  .pa-layer { color: var(--ch-text-primary); }

  /* `hidden` beats every display rule in this sheet. The drawer, the
     call bar and Stop are each `display: flex`, which outranks the user
     agent's own `[hidden] { display: none }`, so all three were painted
     at all times whatever the state said - the drawer sat over the page
     while closed, Hang up showed with no call, Stop showed with no
     reply running. */
  .pa-root [hidden], .pa-layer [hidden] { display: none !important; }

  /* ---------- mobile navigation icon (in the rail's own flow) ------ */
  .pa-mobile-entry {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    border: 0;
    background: transparent;
    color: var(--ch-text-secondary);
    font-family: var(--ch-font-primary);
    font-size: 10px;
    padding: 6px 0;
    width: 100%;
    min-height: 44px;
    cursor: pointer;
  }
  .pa-mobile-entry .pa-icon { font-size: 22px; }

  /* While the ticket composer is in front of the drawer narrower than
     780px, <html> carries data-pa-rail-lock (assistant_panel.mjs, which
     also makes the rest of the rail inert). The rail rises over the
     composer's backdrop (ch_support_tickets_html.css) and shows this
     button, which brings the drawer forward. A tap on inert Home lands on
     the rail itself, not the backdrop that closes the form. */
  :root[data-pa-rail-lock]:not([data-px-burger]) .anvil-m3-navigation-rail:has(.pa-mobile-entry) {
    z-index: var(--ch-z-modal);
  }
  :root[data-pa-rail-lock] .pa-mobile-entry {
    display: flex;
  }

  /* ---------- desktop command bar ---------------------------------- */
  .pa-bar {
    position: fixed;
    top: 10px;
    z-index: var(--ch-z-sticky, 200);
    display: flex;
    justify-content: center;
    pointer-events: none;
  }
  .pa-bar-inner {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(520px, 100%);
    padding: 4px 6px 4px 14px;
    border: 1px solid var(--ch-border);
    border-radius: var(--ch-radius-full);
    background: var(--ch-bg-input);
    box-shadow: var(--ch-shadow-sm);
  }
  .pa-bar-inner input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    font-family: var(--ch-font-primary);
    font-size: 13px;
    color: var(--ch-text-primary);
    padding: 8px 0;
  }
  .pa-bar-inner input:focus { outline: none; }
  .pa-bar-inner:focus-within {
    border-color: var(--ch-border-focus);
    box-shadow: var(--ch-shadow-sm), 0 0 0 3px var(--ch-focus-shadow);
  }

  /* ---------- voice call bar --------------------------------------- */
  :root {
    --pa-callbar-top: 10px;
    --pa-callbar-height: 44px;
    --pa-callbar-reserve: calc(var(--pa-callbar-top) + var(--pa-callbar-height) + var(--ch-space-sm));
    --pa-callbar-inset: 0px;
    --pa-callbar-inset-unpinned: 0px;
  }
  /* Space top-right panels clear while the bar shows; unpinned = outside burger mode. */
  :root:has(#pa-callbar:not([hidden])) { --pa-callbar-inset: var(--pa-callbar-reserve); }
  :root:not([data-px-burger]):has(#pa-callbar:not([hidden])) { --pa-callbar-inset-unpinned: var(--pa-callbar-reserve); }
  .pa-callbar {
    position: fixed;
    top: var(--pa-callbar-top);
    height: var(--pa-callbar-height);
    box-sizing: border-box;
    right: 16px;
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px 6px 8px;
    border-radius: var(--ch-radius-full);
    background: var(--ch-accent-secondary);
    color: var(--ch-accent-primary-text);
    box-shadow: var(--ch-shadow-md);
    font-size: 12px;
    font-weight: 600;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: background-color .18s, border-color .18s, color .18s;
  }
  .pa-call-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: none;
  }
  .pa-callbar .pa-call-icon > * { display: none; }
  .pa-call-icon .pa-icon { font-size: 18px; }
  .pa-callbar[data-state="connecting"] .pa-call-ring,
  .pa-callbar[data-state="listening"] .pa-call-mic,
  .pa-callbar[data-state="thinking"] .pa-call-dots,
  .pa-callbar[data-state="cancelling"] .pa-call-dots,
  .pa-callbar[data-state="speaking"] .pa-voice-bars { display: inline-flex; }
  .pa-callbar[data-state="connecting"][data-ring] .pa-call-ring {
    animation: pa-ring-shake 3s linear infinite;
    transform-origin: 50% 60%;
  }
  /* shakes during the two 0.4 s bursts of each 3 s ring cycle */
  @keyframes pa-ring-shake {
    0%, 13.3%, 20%, 33.3%, 100% { transform: rotate(0); }
    2.2%, 6.6%, 11% { transform: rotate(-14deg); }
    4.4%, 8.8% { transform: rotate(14deg); }
    22.2%, 26.6%, 31% { transform: rotate(-14deg); }
    24.4%, 28.8% { transform: rotate(14deg); }
  }
  .pa-callbar[data-state="listening"] {
    background: var(--ch-success-bg);
    border-color: var(--ch-success-border);
    color: var(--ch-text-primary);
    font-size: 13px;
    font-weight: 700;
    animation: pa-call-pop .35s ease-out;
  }
  .pa-callbar[data-state="listening"] .pa-call-icon {
    background: var(--ch-success);
    color: var(--ch-text-inverse);
    position: relative;
    isolation: isolate;
  }
  /* the halo: a 50 px circle grown from the icon's 28 px (11 px each side) */
  .pa-callbar[data-state="listening"] .pa-call-icon::after {
    content: "";
    position: absolute;
    inset: -11px;
    z-index: -1;
    border-radius: 50%;
    background: color-mix(in srgb, var(--ch-success) 55%, transparent);
    opacity: 0;
    animation: pa-call-halo 1.4s ease-out infinite;
  }
  @keyframes pa-call-pop { 0% { transform: scale(.92); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
  @keyframes pa-call-halo {
    0% { transform: scale(.56); opacity: 1; }
    100% { transform: scale(1); opacity: 0; }
  }
  .pa-callbar[data-state="speaking"] {
    background: var(--ch-bg-card);
    border-color: var(--ch-border);
    color: var(--ch-text-primary);
  }
  .pa-call-dots { gap: 4px; align-items: center; }
  .pa-icon-btn[data-call="connecting"],
  .pa-icon-btn[data-call="connecting"]:hover:not([disabled]) {
    color: var(--ch-accent-primary-text);
    background: var(--ch-accent-secondary);
  }
  .pa-icon-btn[data-call="live"],
  .pa-icon-btn[data-call="live"]:hover:not([disabled]) {
    color: var(--ch-text-inverse);
    background: var(--ch-success);
  }

  /* ---------- drawer ----------------------------------------------- */
  .pa-drawer {
    position: fixed;
    top: var(--ch-sticky-top);
    right: 0;
    bottom: 0;
    width: var(--pa-drawer-width);
    max-width: 100vw;
    z-index: var(--pa-drawer-z);
    display: flex;
    flex-direction: column;
    background: var(--ch-bg-card);
    border-left: 1px solid var(--ch-border);
    box-shadow: -12px 0 38px var(--ch-bg-overlay);
    padding-top: var(--pa-callbar-inset-unpinned);
  }
  .pa-head {
    padding: 18px 16px 10px;
    border-bottom: 1px solid var(--ch-border);
  }
  .pa-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .pa-head h2 {
    font-size: 16px;
    margin: 0;
    color: var(--ch-text-primary);
  }
  .pa-head-actions { display: flex; gap: 2px; }
  .pa-scroll {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 20px 18px 14px;
  }
  .pa-allowance {
    padding: 10px 18px;
    border-top: 1px solid var(--ch-border);
    background: var(--ch-bg-primary);
    font-size: 11px;
    color: var(--ch-text-secondary);
  }
  .pa-allowance div + div, .pa-tip div + div { margin-top: 4px; }

  /* ---------- allowance info icon (D45) ---------------------------- */
  /* A small persistent `i` at the foot of the drawer. It replaces the
     percentage line the drawer used to print under every answer, which
     filled half the screen in a long conversation. The row is OUTSIDE
     the composer because the icon persists when the composer does not:
     a user whose homes are all exhausted still gets to see why. */
  .pa-foot {
    position: relative;
    display: flex;
    justify-content: flex-end;
    padding: 6px 14px 8px;
    background: var(--ch-bg-card);
  }
  .pa-info-btn { width: 26px; height: 26px; }
  .pa-info-btn .pa-icon { font-size: 17px; }
  .pa-tip {
    position: absolute;
    right: 12px;
    bottom: 100%;
    max-width: 260px;
    padding: 9px 11px;
    border: 1px solid var(--ch-border);
    border-radius: var(--ch-radius-md);
    background: var(--ch-bg-primary);
    box-shadow: 0 6px 18px var(--ch-bg-overlay);
    font-size: 11px;
    line-height: 1.5;
    color: var(--ch-text-secondary);
  }
  .pa-composer {
    padding: 12px 16px 16px;
    border-top: 1px solid var(--ch-border);
    background: var(--ch-bg-card);
  }
  .pa-input-wrap {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    border: 1px solid var(--ch-border);
    border-radius: var(--ch-radius-md);
    padding: 6px;
    background: var(--ch-bg-input);
  }
  .pa-input-wrap textarea {
    flex: 1;
    min-width: 0;
    resize: none;
    height: 42px;
    max-height: 110px;
    border: 0;
    background: transparent;
    font-family: var(--ch-font-primary);
    font-size: 13px;
    color: var(--ch-text-primary);
    padding: 9px 4px;
  }
  .pa-input-wrap textarea:focus { outline: none; }
  .pa-input-wrap:focus-within {
    border-color: var(--ch-border-focus);
    box-shadow: 0 0 0 3px var(--ch-focus-shadow);
  }

  /* ---------- conversation ----------------------------------------- */
  .pa-msg { margin: 0 0 18px; font-size: 13px; line-height: 1.6; color: var(--ch-text-primary); }
  .pa-msg p { margin: 0; }
  .pa-msg p + p { margin-top: 9px; }
  .pa-msg.user {
    background: var(--ch-bg-secondary);
    padding: 10px 13px;
    border-radius: 14px 14px 3px 14px;
    margin-left: 26px;
  }
  .pa-msg-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--ch-text-secondary);
  }
  .pa-msg-label .pa-icon { font-size: 16px; color: var(--ch-accent-primary-text); }
  .pa-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: var(--ch-radius-full);
    background: var(--ch-bg-secondary);
    color: var(--ch-text-secondary);
  }
  .pa-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: var(--ch-radius-md);
    padding: 10px 12px;
    margin: 10px 0;
    background: var(--ch-bg-secondary);
    color: var(--ch-text-secondary);
  }
  /* Dark --ch-bg-secondary equals the drawer's card fill. */
  [data-theme="dark"] .pa-msg.user,
  [data-theme="dark"] .pa-chip,
  [data-theme="dark"] .pa-notice { background: var(--ch-bg-elevated); }
  [data-theme="dark"] .pa-msg.user .pa-chip { background: var(--ch-bg-card); }
  .pa-notice.warning { background: var(--ch-warning-bg); color: var(--px-warning-text); }
  .pa-notice.error { background: var(--ch-danger-bg); color: var(--ch-danger-text); }
  .pa-starters { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 14px; }
  .pa-starter {
    text-align: left;
    font-family: var(--ch-font-primary);
    font-size: 12px;
    line-height: 1.4;
    padding: 10px;
    min-height: 58px;
    border: 1px solid var(--ch-border);
    border-radius: var(--ch-radius-md);
    background: var(--ch-bg-card);
    color: var(--ch-text-primary);
    cursor: pointer;
  }
  .pa-welcome h3 { font-size: 20px; margin: 0 0 6px; color: var(--ch-text-primary); }
  .pa-welcome p { font-size: 13px; color: var(--ch-text-secondary); margin: 0; }
  .pa-card {
    border: 1px solid var(--ch-border);
    border-left: 3px solid var(--ch-accent-primary);
    border-radius: var(--ch-radius-md);
    padding: 14px;
    margin: 12px 0;
    background: var(--ch-bg-primary);
  }
  .pa-card h4 { margin: 0 0 6px; font-size: 14px; color: var(--ch-text-primary); }
  .pa-card p { font-size: 12px; color: var(--ch-text-secondary); margin: 0 0 6px; }
  .pa-card textarea {
    width: 100%;
    min-height: 120px;
    font-family: var(--ch-font-primary);
    font-size: 13px;
    margin: 10px 0;
    border: 1px solid var(--ch-border);
    border-radius: var(--ch-radius-sm);
    background: var(--ch-bg-input);
    color: var(--ch-text-primary);
    padding: 8px;
  }
  .pa-preview {
    margin-top: 12px;
    border: 1px solid var(--ch-border);
    border-radius: var(--ch-radius-md);
    padding: 13px;
  }
  .pa-preview h4 { margin: 0 0 2px; font-size: 13px; color: var(--ch-text-primary); }
  .pa-preview small { font-size: 11px; color: var(--ch-text-secondary); }
  .pa-plot { position: relative; height: 165px; width: 100%; margin-top: 10px; }
  .pa-plot canvas { max-width: 100%; }
  .pa-preview-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    border-top: 1px solid var(--ch-border);
    margin-top: 11px;
    padding-top: 9px;
  }
  .pa-table-scroll { overflow: auto; max-height: 240px; margin-top: 10px; }
  .pa-table-scroll table { width: 100%; border-collapse: collapse; font-size: 12px; }
  .pa-table-scroll th, .pa-table-scroll td {
    padding: 6px 8px;
    text-align: left;
    border-bottom: 1px solid var(--ch-border);
    color: var(--ch-text-primary);
  }
  .pa-list .pa-table-scroll { max-height: 360px; }
  /* Separate borders: collapsed ones stay behind a sticky cell and leave slivers of row text. */
  .pa-list table { min-width: 480px; border-collapse: separate; border-spacing: 0; }
  .pa-list-home th, .pa-list-group th {
    position: sticky;
    box-sizing: border-box;
    height: 29px;
    line-height: 16px;
    background: var(--ch-bg-card);
    font-weight: 600;
  }
  .pa-list-home th { top: 0; }
  .pa-list-group th { top: 29px; color: var(--ch-text-secondary); }
  .pa-list-home th span, .pa-list-group th span { position: sticky; left: 8px; }
  .pa-caption { font-size: 11px; color: var(--ch-text-secondary); margin-top: 8px; }
  .pa-conv-list button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px;
    margin-top: 8px;
    border: 1px solid var(--ch-border);
    border-radius: var(--ch-radius-md);
    background: var(--ch-bg-card);
    color: var(--ch-text-primary);
    font-family: var(--ch-font-primary);
    font-size: 13px;
    cursor: pointer;
  }
  .pa-conv-list small { display: block; margin-top: 3px; font-size: 11px; color: var(--ch-text-secondary); }
  .pa-picker { margin-top: 10px; }
  .pa-picker select {
    width: 100%;
    padding: 8px;
    font-family: var(--ch-font-primary);
    font-size: 13px;
    border: 1px solid var(--ch-border);
    border-radius: var(--ch-radius-sm);
    background: var(--ch-bg-input);
    color: var(--ch-text-primary);
    margin-top: 6px;
  }
  .pa-voice-bars { display: inline-flex; align-items: center; gap: 3px; height: 20px; }
  .pa-voice-bars i {
    display: block;
    width: 3px;
    border-radius: 3px;
    height: 8px;
    background: var(--ch-accent-primary);
    animation: pa-voice 900ms ease-in-out infinite alternate;
  }
  .pa-voice-bars i:nth-child(2n) { height: 18px; animation-delay: 300ms; }
  .pa-voice-bars i:nth-child(3n) { height: 13px; animation-delay: 500ms; }
  @keyframes pa-voice { to { height: 5px; } }
  .pa-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--ch-text-secondary);
    margin: 8px 0 0;
  }
  /* The container stays in the DOM under a running reply and only its
     words change, so the polite live region is not rebuilt on every
     text part -- a region inserted together with its content is not
     announced. Nothing to say hides the row; it does not remove it. */
  .pa-progress.pa-progress-idle { display: none; }
  .pa-progress-dots { display: inline-flex; gap: 4px; }
  .pa-progress i,
  .pa-call-dots i {
    width: 5px;
    height: 5px;
    border-radius: var(--ch-radius-full);
    background: var(--ch-accent-primary-text);
    opacity: 0.3;
    animation: pa-think 900ms ease-in-out infinite alternate;
  }
  .pa-call-dots i { background: currentColor; }
  .pa-progress i:nth-child(2), .pa-call-dots i:nth-child(2) { animation-delay: 200ms; }
  .pa-progress i:nth-child(3), .pa-call-dots i:nth-child(3) { animation-delay: 400ms; }
  @keyframes pa-think { to { opacity: 1; } }
  /* ONE reduced-motion block for the panel: a second one is how the next
     animation added ends up honouring the setting only by accident. */
  @media (prefers-reduced-motion: reduce) {
    .pa-voice-bars i { animation: none; }
    .pa-callbar, .pa-call-icon::after, .pa-call-ring { animation: none !important; }
    .pa-progress i, .pa-call-dots i { animation: none; opacity: 0.6; }
  }

  /* ---------- buttons ---------------------------------------------- */
  .pa-btn {
    font-family: var(--ch-font-primary);
    font-size: 13px;
    padding: 8px 14px;
    min-height: 36px;
    border: 1px solid var(--ch-border);
    border-radius: var(--ch-radius-sm);
    background: var(--ch-bg-card);
    color: var(--ch-text-primary);
    cursor: pointer;
  }
  .pa-btn.primary {
    background: var(--ch-accent-primary);
    border-color: var(--ch-accent-primary);
    color: var(--px-ink-on-bright);
  }
  .pa-btn.small { font-size: 12px; padding: 5px 10px; min-height: 30px; }
  .pa-icon-btn {
    border: 0;
    background: transparent;
    color: var(--ch-text-secondary);
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: var(--ch-radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  .pa-icon-btn:hover:not([disabled]) { background: var(--ch-accent-soft); }
  .pa-btn:hover:not([disabled]), .pa-starter:hover, .pa-conv-list button:hover {
    background: var(--ch-bg-secondary);
  }
  [data-theme="dark"] .pa-btn:hover:not([disabled]),
  [data-theme="dark"] .pa-starter:hover,
  [data-theme="dark"] .pa-conv-list button:hover { background: var(--ch-bg-hover); }
  .pa-btn.primary:hover:not([disabled]) {
    background: var(--ch-accent-primary-hover);
    border-color: var(--ch-accent-primary-hover);
  }
  .pa-btn[disabled], .pa-icon-btn[disabled] {
    cursor: not-allowed;
    color: var(--px-text-disabled);
  }
  .pa-btn[disabled] {
    background: var(--px-bg-disabled);
    border-color: var(--px-border-disabled);
  }
  .pa-btn:focus-visible, .pa-icon-btn:focus-visible,
  .pa-starter:focus-visible, .pa-mobile-entry:focus-visible {
    outline: 2px solid var(--ch-border-focus);
    outline-offset: 2px;
  }
  .pa-icon {
    font-family: 'Material Symbols Outlined', 'Material Icons';
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    font-size: 20px;
  }

  /* ---------- mobile ------------------------------------------------ */
  /* A row in the burger menu (shell.css), like every other item. */
  :root[data-px-burger] .pa-mobile-entry {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 20px;
    min-height: 48px;
    padding: 0 12px;
    font-size: 14px;
    color: var(--ch-text-primary);
    border-radius: 24px;
  }
  :root[data-px-burger] .pa-mobile-entry .pa-icon { font-size: 24px; }

  @media (max-width: 600px) {
    .pa-bar { display: none !important; }
    .pa-drawer {
      top: 0; left: 0; right: 0; bottom: 0;
      width: 100%;
      border-left: 0;
      box-shadow: none;
      padding-top: var(--pa-callbar-inset);
    }
    .pa-starters { grid-template-columns: 1fr; }
    .pa-callbar { right: 10px; left: 10px; justify-content: center; }
    :root:has(.pa-drawer:not([hidden])) #px-global-toast-container {
      top: calc(var(--pa-drawer-head-bottom, var(--ch-sticky-top)) + 16px);
    }
    /* During a call the top bar and menu start below the call bar. */
    :root[data-px-burger]:has(#pa-callbar:not([hidden])) {
      --ch-sticky-top: calc(var(--px-top-bar-height) + var(--pa-callbar-reserve));
    }
    :root[data-px-burger]:has(#pa-callbar:not([hidden])) .anvil-m3-navigation-rail + .anvil-m3-top-app-bar {
      height: calc(var(--px-top-bar-height) + var(--pa-callbar-reserve));
      padding-top: var(--pa-callbar-reserve);
    }
    :root[data-px-burger]:has(#pa-callbar:not([hidden])) .anvil-m3-navigation-rail {
      border-top: var(--pa-callbar-reserve) solid var(--ch-bg-card);
    }
  }

  @media (min-width: 601px) {
    /* During a call, toasts start below the call bar, off the command box. */
    :root:has(#pa-callbar:not([hidden])) #px-global-toast-container {
      top: var(--pa-callbar-reserve);
    }
  }
