/* AI Mode styles, part 6 of 6 (loaded in order). */
/* "Other" free-text row: DLS glass field + outlined pill on the dark sidebar */
#page-experience .other-input-row { gap: 8px; margin: 2px 0 10px; }
#page-experience .other-input-row input {
  min-width: 0; height: 44px; padding: 0 16px; font-size: 14px; border-radius: 999px;
  background: rgba(255,255,255,.10); border: 1.5px solid rgba(255,255,255,.28); color: var(--tl-white, #FFF);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: border-color 160ms var(--mz-ease), background 160ms var(--mz-ease);
}
#page-experience .other-input-row input::placeholder { color: rgba(255,255,255,.62); }
#page-experience .other-input-row input:focus { outline: none; background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.7); box-shadow: none; }
#page-experience .other-input-row button {
  margin-left: 0; height: 44px; padding: 0 20px; border-radius: 999px; background: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.9); color: var(--tl-white, #FFF);
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  transition: background 150ms var(--mz-ease), color 150ms var(--mz-ease);
}
#page-experience .other-input-row button:hover { background: var(--tl-white, #FFF); color: var(--tl-deep-ocean, #003D4C); }

/* Streaming: whole widgets (stat cards, tables, section heads, follow-ups) are held
   until complete, then enter with a short DLS fade instead of popping in. Patched
   streaming keeps settled nodes, so each block animates exactly once. */
@keyframes mz-block-in { from { opacity: 0; } to { opacity: 1; } }   /* pure fade: nothing in the text flow moves */
#page-experience .ai-bubble .inline-stats-row,
#page-experience .ai-bubble table,
#page-experience .ai-bubble .resp-section,
#page-experience .ai-bubble .followup-chips { animation: mz-block-in 240ms var(--mz-ease, cubic-bezier(0.2,0,0,1)) both; }
@media (prefers-reduced-motion: reduce) {
  #page-experience .ai-bubble .inline-stats-row,
  #page-experience .ai-bubble table,
  #page-experience .ai-bubble .resp-section,
  #page-experience .ai-bubble .followup-chips { animation: none; }
}

/* Right panel: opens at the DLS maximum duration, then its cards fade and rise
   in with a short stagger so new supporting content arrives gently. */
#page-experience .right-panel { transition-duration: 320ms; }
@keyframes mz-rp-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
#page-experience .rp-enter > * { animation: mz-rp-in 320ms var(--mz-ease, cubic-bezier(0.2,0,0,1)) both; animation-delay: calc(var(--rp-i, 0) * 70ms + 140ms); }
@media (prefers-reduced-motion: reduce) {
  #page-experience .right-panel { transition-duration: 0ms; }
  #page-experience .rp-enter > * { animation: none; }
}
/* The chat's own glide owns scrolling; the browser's scroll anchoring would nudge
   the position when the final render swaps content. */
#page-experience #chatMessages { overflow-anchor: none; }

/* Citation pills sit raised via relative offset (no line-box change): with
   vertical-align:super a pill made its line a few px taller the moment it landed. */

/* Stable message column: sized as if the right panel were open, so the text never
   rewraps when supporting content opens the panel at the end of an answer — the
   column only re-centres (a smooth slide with the panel's width transition).
   Mirrors the layout widths: sidebar / right panel / chat padding per breakpoint. */
#page-experience { --mz-side-w: 296px; --mz-rp-w: 296px; --mz-pad: 40px; }
#page-experience:has(.sidebar.collapsed) { --mz-side-w: 0px; }
@media (max-width: 1200px) { #page-experience { --mz-side-w: 0px; --mz-rp-w: 280px; } }
@media (max-width: 768px)  { #page-experience { --mz-rp-w: 0px; --mz-pad: 16px; } }
@media (min-width: 1800px) { #page-experience { --mz-side-w: 340px; --mz-rp-w: 340px; --mz-pad: 48px; } }
@media (min-width: 2400px) { #page-experience { --mz-side-w: 400px; --mz-rp-w: 400px; --mz-pad: 56px; } }
#page-experience .msg-row,
#page-experience .typing-row,
#page-experience .chat-area:not(.welcome-mode) .input-inner {
  max-width: min(var(--mz-col), calc(100vw - var(--mz-side-w) - var(--mz-rp-w) - 2 * var(--mz-pad)));
}

/* Fenced code / diagram blocks in answers: DLS mono on a subtle surface, spacing
   preserved, scrolls sideways instead of wrapping. */
#page-experience .ai-bubble pre.mz-code {
  margin: 14px 0; padding: 16px 18px; overflow-x: auto; white-space: pre;
  background: var(--tl-surface-subtle, #F4F4F4); border: 1px solid var(--tl-border-subtle, #E7E9E9); border-radius: 12px;
  font-family: var(--tl-font-mono, "IBM Plex Mono", ui-monospace, Menlo, monospace); font-size: 13.5px; line-height: 1.6;
  color: var(--tl-deep-ocean, #003D4C);
}
#page-experience .ai-bubble pre.mz-code code { font: inherit; background: none; padding: 0; }

/* Personalisation tip under an answer: DLS card, no coloured left-border accent. */
#page-experience .mz-nudge {
  display: flex; align-items: center; gap: 12px; margin: 18px 0 0; padding: 12px 16px;
  background: var(--tl-surface-subtle, #F4F4F4); border: 1px solid var(--tl-border-subtle, #E7E9E9); border-radius: 12px;
  font-size: 14px; line-height: 1.5; color: var(--tl-text-secondary, #5B6770);
  animation: mz-block-in 240ms var(--mz-ease, cubic-bezier(0.2,0,0,1)) both;
}
#page-experience .mz-nudge__icon {
  flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tl-gradient-button, linear-gradient(90deg,#007E9E 0%,#008755 100%)); color: var(--tl-white, #FFF);
}
#page-experience .mz-nudge__icon i { font-size: 16px; line-height: 1; }
#page-experience .mz-nudge strong { color: var(--tl-deep-ocean, #003D4C); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { #page-experience .mz-nudge { animation: none; } }

/* Answer text streams in word by word. The design system's global
   text-wrap: pretty (paragraphs) / balance (headings) re-balances a paragraph's
   last lines on every added word, so placed words hopped between lines as a
   paragraph finished. Plain wrapping only ever breaks at the growing edge. */
#page-experience .ai-bubble :where(p, li, h1, h2, h3, h4, h5, h6, blockquote, div, span) { text-wrap: wrap; }

/* Right-panel resource cards are links: the site's global link style underlined
   them on hover. The card's own hover lift is the affordance. */
#page-experience .rp-link-card,
#page-experience .rp-link-card:hover,
#page-experience .rp-link-card *,
#page-experience .rp-video-card,
#page-experience .rp-video-card:hover,
#page-experience .rp-video-card * { text-decoration: none; }

/* Citation preview is clickable (opens the source / plays the video). */
.source-preview-float.visible,
.source-preview-float.visible * { cursor: pointer; }

/* ===== Signed-in experience: DLS ===== */
/* Profile card + conversations: the same frosted glass as the selector pills */
#page-experience .auth-profile-card,
#page-experience .chat-history-item {
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.06)), rgba(0,61,76,.14);
  -webkit-backdrop-filter: blur(5px) saturate(130%); backdrop-filter: blur(5px) saturate(130%);
  border: 1px solid rgba(255,255,255,.20); border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
  transition: background 200ms var(--mz-ease), border-color 200ms var(--mz-ease), transform 200ms var(--mz-ease), box-shadow 200ms var(--mz-ease);
}
#page-experience .auth-profile-card { padding: 16px 18px; margin-bottom: 6px; }
#page-experience .auth-profile-card:hover,
#page-experience .chat-history-item:hover {
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.10)), rgba(0,61,76,.14);
  border-color: rgba(255,255,255,.42); transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 8px 20px rgba(0,20,26,.25);
}
#page-experience .auth-profile-name { font-size: 16px; font-weight: 650; color: var(--tl-white, #FFF); margin-bottom: 4px; }
#page-experience .auth-profile-meta { font-size: 13px; color: rgba(255,255,255,.72); line-height: 1.45; }
#page-experience .auth-profile-meta strong { color: var(--tl-white, #FFF); font-weight: 600; }
#page-experience .auth-profile-card::after { top: 14px; right: 16px; font-size: 10px; letter-spacing: .14em; color: rgba(255,255,255,.75); }
#page-experience .chat-history-list { gap: 8px; }
#page-experience .chat-history-item { padding: 12px 14px; }
#page-experience .chat-history-item .chi-name { font-size: 14px; font-weight: 500; }
#page-experience .chat-history-item .chi-time { font-size: 12px; color: rgba(255,255,255,.62); margin-top: 3px; }
/* The open conversation: DLS button gradient, like a selected pill */
#page-experience .chat-history-item.active-chat {
  background: var(--tl-gradient-button, linear-gradient(90deg,#007E9E 0%,#008755 100%));
  border-color: transparent; box-shadow: 0 10px 24px rgba(0,20,26,.32), inset 0 1px 0 rgba(255,255,255,.18);
}
#page-experience .chat-history-item.active-chat .chi-time { color: rgba(255,255,255,.8); }
/* NEW CHAT and the list are separated by a hairline, so the gradient button and
   a gradient (open) conversation never read as one block. */
#page-experience #chatHistoryItems { position: relative; margin-top: 14px; }
#page-experience #chatHistoryItems::before { content: ""; flex: 0 0 auto; height: 1px; margin: 0 14px 14px 0; background: rgba(255,255,255,.22); }
/* Pointing hand on hover; the same hand picks a chat up (press and move). */
#page-experience .chat-history-item { cursor: pointer; }
body.mz-chat-dragging, body.mz-chat-dragging * { cursor: grabbing !important; user-select: none !important; }
#page-experience .chat-history-item.drag-source { opacity: .35; transform: none; box-shadow: none; }
/* The floating copy that follows the pointer */
.chi-drag-ghost {
  position: fixed; z-index: 100000; margin: 0; pointer-events: none; box-sizing: border-box;
  padding: 12px 14px; border-radius: 16px; font-family: var(--tl-font-sans);
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.08)), var(--tl-deep-ocean, #003D4C);
  border: 1px solid rgba(255,255,255,.35); color: var(--tl-white, #FFF);
  box-shadow: 0 18px 40px rgba(0,20,26,.45); transform-origin: 20% 50%; will-change: transform; opacity: .88;
}
.chi-drag-ghost .chi-row { display: flex; align-items: center; gap: 6px; }
.chi-drag-ghost .chi-info { flex: 1; min-width: 0; }
.chi-drag-ghost .chi-name { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chi-drag-ghost .chi-time { font-size: 12px; color: rgba(255,255,255,.62); margin-top: 3px; }
.chi-drag-ghost .chi-dots-btn, .chi-drag-ghost .chi-pin-icon, .chi-drag-ghost .chi-dropdown { display: none !important; }
/* Where it will land: a Citron line with end dots (accent, never a background) */
.chi-drop-line {
  position: fixed; top: 0; z-index: 100001; height: 2px; border-radius: 2px; pointer-events: none;
  background: var(--tl-citron, #ECE81A); box-shadow: 0 0 0 1px rgba(0,20,26,.25);
  opacity: 0; transition: opacity 120ms cubic-bezier(0.2,0,0,1), transform 90ms cubic-bezier(0.2,0,0,1);
}
.chi-drop-line::before, .chi-drop-line::after {
  content: ""; position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--tl-citron, #ECE81A);
}
.chi-drop-line::before { left: -4px; }
.chi-drop-line::after { right: -4px; }
.chi-drop-line.show { opacity: 1; }
#page-experience .chat-history-item .chi-dots-btn { width: 28px; height: 28px; border-radius: 50%; color: rgba(255,255,255,.8); }
#page-experience .chat-history-item .chi-dots-btn:hover { background: rgba(255,255,255,.18); color: var(--tl-white, #FFF); }
#page-experience .chat-history-item .chi-dots-btn:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--tl-white, #FFF); }
#page-experience .chat-history-empty { font-size: 13px; color: rgba(255,255,255,.62); padding: 4px 2px; }

/* Conversation menu: DLS menu surface (as the header account menu) */
.chi-dropdown {
  background: var(--tl-white, #FFF); border: 1px solid var(--tl-border-subtle, #E7E9E9); border-radius: 14px;
  min-width: 180px; padding: 8px; box-shadow: 0 12px 32px rgba(0,61,76,.18);
  font-family: var(--tl-font-sans);
}
.chi-dropdown-item {
  gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 500;
  color: var(--tl-deep-ocean, #003D4C); transition: background 140ms var(--tl-ease-emphasized, ease), color 140ms var(--tl-ease-emphasized, ease);
}
.chi-dropdown-item:hover { background: var(--tl-tidal-pastel, #E5EFF3); color: var(--tl-deep-ocean, #003D4C); }
.chi-dropdown-item svg { color: var(--tl-tidal, #007E9E); }
.chi-dropdown-item.delete-item { color: var(--tl-danger, #BE0000); }
.chi-dropdown-item.delete-item svg { color: currentColor; }
.chi-dropdown-item.delete-item:hover { background: var(--tl-danger-pastel, #F9E5E5); color: var(--tl-danger, #BE0000); }
#page-experience .chi-rename-input { border-radius: 8px; font-size: 14px; padding: 4px 8px; }

/* Avatars: brand gradient disc with white initials (Citron is never a background) */
#page-experience .sidebar-user-avatar,
.user-badge-avatar,
.modal-welcome-avatar {
  background: var(--tl-gradient-button, linear-gradient(90deg,#007E9E 0%,#008755 100%)); color: var(--tl-white, #FFF);
  font-weight: 700; letter-spacing: .02em;
}
#page-experience .sidebar-user-avatar { width: 36px; height: 36px; font-size: 13px; box-shadow: 0 4px 12px rgba(0,20,26,.25); }
.modal-welcome-avatar { width: 56px; height: 56px; font-size: 19px; box-shadow: 0 8px 20px rgba(0,126,158,.25); }
#page-experience .sidebar-user-name { font-size: 14px; }
#page-experience .sidebar-user-company { font-size: 12px; color: rgba(255,255,255,.7); }
/* Sign out (sidebar footer): DLS outlined pill on the dark surface */
#page-experience .btn-logout {
  height: 32px; padding: 0 14px; border-radius: 999px; background: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); color: var(--tl-white, #FFF);
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  white-space: nowrap; flex-shrink: 0;
  transition: background 150ms var(--mz-ease), color 150ms var(--mz-ease);
}
/* A long name or email truncates instead of squeezing Sign out onto two lines */
#page-experience .sidebar-user-header > div:not(.sidebar-user-avatar) { min-width: 0; }
#page-experience .sidebar-user-name, #page-experience .sidebar-user-company { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#page-experience .btn-logout:hover { background: var(--tl-white, #FFF); color: var(--tl-deep-ocean, #003D4C); }

/* Header badge when signed in: the same outlined pill as Log In */
.user-badge-nav {
  gap: 10px; padding: 5px 18px 5px 5px; border-radius: 999px;
  background: var(--tl-white, #FFF) !important; border: 2px solid var(--tl-deep-ocean, #003D4C);
  color: var(--tl-deep-ocean, #003D4C) !important; font-size: 14px; font-weight: 600;
  transition: background 150ms var(--tl-ease-emphasized, ease), color 150ms var(--tl-ease-emphasized, ease);
}
.user-badge-nav:hover { background: var(--tl-tidal-pastel, #E5EFF3) !important; }
.user-badge-avatar { width: 30px; height: 30px; font-size: 12px; }

/* Welcome-back dialog */
.modal-welcome-name { font-size: 22px; font-weight: 650; letter-spacing: -.01em; }
.modal-welcome-sub { font-size: 14px; color: var(--tl-text-secondary, #5B6770); margin-bottom: 24px; }
.btn-modal-link {
  background: none; border: 0; padding: 4px 2px; cursor: pointer; font-family: var(--tl-font-sans);
  font-size: 13px; font-weight: 600; color: var(--tl-tidal, #007E9E); text-decoration: none;
  transition: color 140ms var(--tl-ease-emphasized, ease);
}
.btn-modal-link:hover { color: var(--tl-deep-ocean, #003D4C); text-decoration: underline; text-underline-offset: 3px; }

/* Conversation list scrollbar: sits in the sidebar's own padding (the list bleeds
   right by the gutter, so pills keep NEW CHAT's width and never touch the bar),
   with a thicker rounded thumb in the ChatGPT manner, in DLS white-on-dark. */
/* Each section scrolls on its own; the scrollbar sits in the sidebar gutter (the
   section bleeds right by the gutter, so pills keep NEW CHAT's width). */
/* The container bleeds into the gutter (it clips, so the sections' scrollbars
   must live inside it); search/dividers are inset back by the gutter. */
#page-experience #chatHistoryItems { display: flex; flex-direction: column; overflow: hidden; gap: 0; margin-right: -14px; }
#page-experience .chi-group { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; min-height: 0; padding-right: 4px; margin-right: 0; position: relative; scrollbar-gutter: stable; }
#page-experience .chi-divider, #page-experience .chi-no-match { margin-right: 14px; }
#page-experience .chi-group--pinned { flex: 0 0 auto; }
#page-experience .chi-group--recent { flex: 1 1 auto; }
#page-experience .chi-group[hidden], #page-experience .chi-divider[hidden], #page-experience .chi-no-match[hidden] { display: none; }
#page-experience .chi-divider { flex: 0 0 auto; height: 1px; margin: 12px 0; background: rgba(255,255,255,.22); }
@supports not selector(::-webkit-scrollbar) {
  #page-experience .chi-group { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.38) transparent; }
}
#page-experience .chi-group::-webkit-scrollbar,
#page-experience .sidebar-scroll::-webkit-scrollbar { width: 10px; }
#page-experience .chi-group::-webkit-scrollbar-track,
#page-experience .sidebar-scroll::-webkit-scrollbar-track { background: transparent; }
#page-experience .chi-group::-webkit-scrollbar-thumb,
#page-experience .sidebar-scroll::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.38); border-radius: 999px;
  border: 2px solid transparent; background-clip: padding-box; min-height: 32px;
}
#page-experience .chi-group::-webkit-scrollbar-thumb:hover,
#page-experience .sidebar-scroll::-webkit-scrollbar-thumb:hover { background-color: rgba(255,255,255,.6); }
/* Guest segment/function list: same gutter scrollbar as the conversation lists
   (bleeds into the sidebar padding; pills keep NEW CHAT's width). */
#page-experience .sidebar-scroll { margin-right: -14px; padding-right: 4px; scrollbar-gutter: stable; }
@supports not selector(::-webkit-scrollbar) {
  #page-experience .sidebar-scroll { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.38) transparent; }
}

/* Search conversations: DLS glass field on the dark sidebar */
#page-experience .chi-search {
  flex: 0 0 auto; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 8px 0 14px; margin: 0 14px 12px 0;
  border-radius: 999px; cursor: text; color: rgba(255,255,255,.75);
  /* same frosted glass as the conversation pills */
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.06)), rgba(0,61,76,.14);
  -webkit-backdrop-filter: blur(5px) saturate(130%); backdrop-filter: blur(5px) saturate(130%);
  border: 1px solid rgba(255,255,255,.20); box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
  transition: border-color 150ms var(--mz-ease), background 150ms var(--mz-ease);
}
#page-experience .chi-search:hover { border-color: rgba(255,255,255,.42); }
#page-experience .chi-search:focus-within {
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.10)), rgba(0,61,76,.14);
  border-color: rgba(255,255,255,.7); color: var(--tl-white, #FFF);
}
#page-experience .chi-search i { font-size: 16px; line-height: 1; }
#page-experience .chi-search input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; padding: 0;
  font-family: var(--tl-font-sans); font-size: 13.5px; color: var(--tl-white, #FFF);
}
#page-experience .chi-search input::placeholder { color: rgba(255,255,255,.62); }
/* Clear (x): a white x on a translucent disc, clearly visible on the dark glass */
#page-experience .chi-search input::-webkit-search-cancel-button {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin: 0 0 0 6px; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.22) no-repeat center / 12px 12px
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2.5 2.5l7 7M9.5 2.5l-7 7' stroke='%23FFFFFF' stroke-width='1.8' stroke-linecap='round'/></svg>");
  transition: background-color 140ms var(--mz-ease);
}
#page-experience .chi-search input::-webkit-search-cancel-button:hover { background-color: rgba(255,255,255,.4); }

/* Compact conversation pills: more fit on a laptop screen */
#page-experience .chat-history-item { padding: 8px 12px; border-radius: 14px; }
#page-experience .chat-history-item .chi-name { font-size: 13.5px; line-height: 1.3; }
#page-experience .chat-history-item .chi-time { font-size: 11.5px; margin-top: 1px; }
#page-experience .chat-history-item .chi-dots-btn { width: 26px; height: 26px; }
.chi-drag-ghost { padding: 8px 12px; border-radius: 14px; }
.chi-drag-ghost .chi-name { font-size: 13.5px; }
.chi-drag-ghost .chi-time { font-size: 11.5px; margin-top: 1px; }

/* Pin on a pinned chat: a real (larger) button that unpins */
#page-experience .chat-history-item .chi-pin-icon {
  width: 26px; height: 26px; margin: 0 2px 0 -4px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--tl-citron, #ECE81A); cursor: pointer;
  align-items: center; justify-content: center; transition: background 140ms var(--mz-ease), color 140ms var(--mz-ease);
}
#page-experience .chat-history-item.pinned .chi-pin-icon { display: inline-flex; }
#page-experience .chat-history-item .chi-pin-icon:hover { background: rgba(255,255,255,.18); color: var(--tl-white, #FFF); }
#page-experience .chat-history-item .chi-pin-icon:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--tl-white, #FFF); }

/* Signed-in footer sits lower */
#page-experience .sidebar-auth { padding: 10px 0 8px; }
#page-experience .sidebar-user-header { margin-bottom: 0; }

/* NEW CHAT at the DLS small button size (was 48px, heavy next to compact pills) */
#page-experience .btn-new-chat, #page-experience .btn-new-chat-guest, #page-experience .btn-save-chats { height: 40px; padding: 0 20px; font-size: 13px; gap: 8px; }

/* Send: the round arrow button everywhere (no "Ask Mozart" label on the start screen) */
#page-experience .send-btn,
#page-experience .welcome-state .send-btn { width: 48px; height: 48px; padding: 0; }
#page-experience .welcome-state .send-btn { width: 56px; height: 56px; }
#page-experience .send-btn::after {
  content: ""; width: 22px; height: 22px; background: var(--tl-white, #FFF);
  -webkit-mask: var(--mz-arrow) center / contain no-repeat; mask: var(--mz-arrow) center / contain no-repeat;
}
#page-experience .welcome-state .send-btn::after { width: 24px; height: 24px; }

/* Right panel mirrors the left: same width per breakpoint, same heading type,
   same header height (toggles on one line) and the same 16px inset. */
@media (min-width: 1201px) {
  #page-experience .right-panel:not(.collapsed) { width: var(--mz-rp-w); min-width: var(--mz-rp-w); }
  #page-experience .right-panel-header,
  #page-experience .right-panel-inner { min-width: var(--mz-rp-w); }
}
#page-experience .right-panel-header { padding: 20px 16px 14px; }
#page-experience .right-panel-inner { padding: 0 16px 24px; }
#page-experience .right-panel-label { font-size: 9.5px; font-weight: 700; letter-spacing: 1.2px; color: var(--tl-white, #FFF); }
@media (min-width: 1800px) {
  #page-experience .right-panel-label { font-size: 11px; }
  #page-experience .right-panel-inner { padding: 0 16px 28px; }
}

/* Signed in: the personal greeting replaces the generic welcome on entry, so the
   welcome never flashes first (JS clears the class if no greeting follows). */
#page-experience.mz-signed-in #welcomeState { visibility: hidden; }

/* Accessibility. Dialogs take focus as a whole, with no ring on the box; card
   controls (segment/function cards, chat items) show the DLS focus ring only
   for keyboard focus. */
[role="dialog"]:focus { outline: none; }
#page-experience [role="button"]:not(button):focus-visible { outline: none; box-shadow: 0 0 0 2px var(--tl-white, #FFF), 0 0 0 4px var(--tl-focus-ring, #007E9E); }

/* Reduced motion: every remaining animation and transition on the page. */
@media (prefers-reduced-motion: reduce) {
  html.mozart-standalone *, html.mozart-standalone *::before, html.mozart-standalone *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
}
