/**
 * Site 2.0 — Cut to the Chase drawer (static prototype)
 * Overlay switchboard; site owns evidence depth. No chat UI patterns.
 */

:root {
  --ask-nav-offset: 4.25rem;
  --ask-headline-height: 2.75rem; /* ~44px — collapsed title bar */
  --ask-headline-bar-height: var(--ask-headline-height);
  /* Standard desktop width — fixed at 420px */
  --ask-drawer-width-standard: 420px;
  --ask-drawer-width: var(--ask-drawer-width-standard);
  --ask-edge-inset: 24px;
  --ask-scrollbar-inset: 0px;
  --ask-panel-radius: 1rem;
  --ask-panel-pad-left: 1.25rem;
  --ask-panel-pad-right-base: 1.25rem;
  --ask-panel-pad-right: var(--ask-panel-pad-right-base);
  --ask-panel-pad-y: 1.15rem;
  /* Shared right-rail slot for close / chevron / info / card arrows */
  --ask-icon-rail: 1.5rem;
  /*
   * Settled / return HWIF: label + headline only. Body window-shades to 0
   * after first play; cards sit immediately underneath.
   */
  --ask-narrative-compact-height: auto;
  --ask-narrative-compact-max: 0px;
  --ask-narrative-fade-height: 88px;
  --ask-scroll-fade-height: 2.75rem;
  /* Tray scrollbar — reserved gutter; thumb only paints on hover/scroll */
  --ask-tray-scrollbar-size: 4px;
  --ask-tray-scrollbar-thumb: rgba(26, 24, 20, 0.22);
  --ask-tray-scrollbar-thumb-active: rgba(26, 24, 20, 0.4);
  --ask-border: #e5e0d6;
  --ask-paper: #fff;
  --ask-paper-header: #fff;
  --ask-paper-soft: var(--exec-paper, #faf8f4);
  --ask-ink: var(--exec-ink, #1a1814);
  --ask-headline: #012641;
  --ask-muted: var(--muted, #565362);
  --ask-accent: var(--lead-accent, #5a5ade);
  --ask-accent-line: var(--lead-accent-line, #7571c0);
  --ask-ochre: var(--ochre, #b8860b);
  /* One restrained ease-out family for CTTC. Drawer-open shade keeps its own ease. */
  --ask-motion-ease: cubic-bezier(0.22, 0.6, 0.36, 1);
  --ask-cttc-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ask-cttc-ease-resize: cubic-bezier(0.4, 0, 0.2, 1);
  --ask-query-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ask-query-resize: 280ms;
  --ask-query-size-default: 118px;
  --ask-query-size-single: 48px;
  --ask-query-size-six: 200px;
  --ask-query-field-default: calc(var(--ask-query-size-default) - 0.65rem - 0.5rem - 33px - 0.4rem);
  --ask-query-field-six: calc(var(--ask-query-size-six) - 1.1rem - 0.4rem - 33px);
  --ask-query-field-single: calc(14px * 1.45);
  --ask-cttc-ease-reveal: cubic-bezier(0.4, 0, 0.2, 1);
  --ask-cttc-ease-in: cubic-bezier(0.4, 0, 0.2, 1);
  --ask-cttc-compress: 260ms;
  --ask-cttc-radius: 180ms;
  --ask-cttc-tool-fade: 150ms;
  --ask-cttc-open: 260ms;
  --ask-cttc-shade: 260ms;
  --ask-cttc-expand: 280ms;
  --ask-cttc-collapse: 240ms;
  --ask-cttc-depth-collapse: 260ms;
  --ask-cttc-stripe-peek: 150ms;
  --ask-cttc-stripe-collapse: 280ms;
  --ask-cttc-stripe-expand: 260ms;
  --ask-cttc-headline: 160ms;
  --ask-cttc-thought: 160ms;
  --ask-cttc-thesis: 170ms;
  --ask-cttc-micro: 140ms;
  --ask-conv-inset-x: 1rem;
  --ask-conv-inset-y-top: 0.95rem;
  --ask-conv-inset-y-bottom: 0.75rem;
  --ask-conv-radius: 0.85rem;
  --ask-conv-stripe-radius: 0.45rem;
  --ask-conv-stack-gap: 0.32rem;
  /*
   * Active answer height: preserve the drawer's viewport fit, then move any
   * additional answer depth into the card's internal scroll region.
   */
  --ask-conv-card-max: clamp(
    18rem,
    calc(
      100vh - var(--ask-nav-offset) - var(--ask-headline-bar-height) -
        var(--ask-query-size-single) - 5rem
    ),
    42rem
  );
  --ask-conv-card-max: clamp(
    18rem,
    calc(
      100dvh - var(--ask-nav-offset) - var(--ask-headline-bar-height) -
        var(--ask-query-size-single) - 5rem
    ),
    42rem
  );
  /* Shared gap between Ask Anything and the purple result stack (~13.6px). */
  --ask-result-stack-gap: 0.85rem;
  /* Six-line field cap — scroll starts only after this size. */
  --ask-query-edit-max: var(--ask-query-field-six);
  --ask-shade-duration: 1.6s;
  --ask-ease: var(--ask-shade-duration) var(--ask-motion-ease);
  --ask-ease-shade: var(--ask-shade-duration) var(--ask-motion-ease);
  --ask-panel-shadow:
    0 2px 4px rgba(26, 24, 20, 0.05),
    0 10px 24px rgba(26, 24, 20, 0.12),
    0 24px 48px rgba(26, 24, 20, 0.08);
  --ask-satellite-height: 110px;
}

/* Nav is independent of drawer width — site is never compressed */
@media (min-width: 640px) {
  .exec-nav__grid {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
  }

  .exec-nav__start {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    min-width: 0;
  }

  .exec-nav__mobile-toggle {
    margin-left: auto;
  }

  .exec-nav__links--in-column {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0 1.5rem 0 0;
    white-space: nowrap;
  }

  .exec-nav__link-resume {
    margin-right: 0;
  }
}

/* ===== Shell — overlay; never pad/shift the underlying page ===== */
.ask-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--ask-drawer-width);
  max-width: 100vw;
  z-index: 190;
  font-family: 'Inter', system-ui, sans-serif;
  pointer-events: none;
}

.ask-drawer[data-width='standard'] {
  --ask-drawer-width: var(--ask-drawer-width-standard);
}

.ask-drawer * {
  box-sizing: border-box;
}

/*
 * Tray: flush under nav, right-anchored overlay.
 */
.ask-drawer__column {
  position: absolute;
  top: var(--ask-nav-offset);
  left: 0;
  right: 0;
  bottom: auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: calc(100vh - var(--ask-nav-offset));
  pointer-events: auto;
  border-radius: 0 0 var(--ask-panel-radius) var(--ask-panel-radius);
  background: var(--ask-paper);
  box-shadow: var(--ask-panel-shadow);
  /* Keep clipped in every state — overflow:visible kills radius during transitions */
  overflow: hidden;
  transition: max-height var(--ask-ease-shade);
}

.ask-drawer__panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
  border-radius: inherit;
  overflow: hidden;
}

.ask-drawer__headline-bar {
  flex-shrink: 0;
  min-height: var(--ask-headline-height);
  padding: 0 var(--ask-panel-pad-right) 0 var(--ask-panel-pad-left);
  border-bottom: 1px solid transparent;
  background: var(--ask-paper-header);
  box-sizing: border-box;
}

/* Collapsed bar — title vertically centered in tray */
.ask-drawer:not(.is-open) .ask-drawer__headline-bar {
  display: flex;
  align-items: center;
  column-gap: 0.5rem;
  padding-top: 0;
  padding-bottom: 0;
}

.ask-drawer:not(.is-open) .ask-drawer__headline-stack {
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
  min-height: 0;
}

.ask-drawer:not(.is-open) .ask-drawer__headline-controls {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0;
  align-self: center;
  padding-bottom: 0;
}

.ask-drawer.is-open .ask-drawer__headline-bar {
  display: flex;
  align-items: baseline;
  column-gap: 0.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.45rem;
  border-bottom-color: var(--ask-border);
}

.ask-drawer.is-open .ask-drawer__headline-stack {
  display: flex;
  flex: 1;
  align-items: baseline;
  min-width: 0;
}

.ask-drawer.is-open .ask-drawer__headline-controls {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0;
  align-self: baseline;
}

.ask-drawer__headline-primary {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  color: inherit;
}

.ask-drawer__headline-sub {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 9pt;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
  color: #6E81C5;
  white-space: nowrap;
}

.ask-drawer:not([data-session-mode='satellite']) .ask-drawer__headline-sub {
  display: inline;
}

.ask-drawer__headline-sub:empty {
  display: none !important;
}

/* Outside the clipped column so radius never has to go overflow:visible */
.ask-drawer__headline-tooltip {
  position: absolute;
  right: calc(100% + 0.65rem);
  left: auto;
  top: calc(var(--ask-nav-offset) + var(--ask-headline-bar-height) / 2 - 15px);
  z-index: 40;
  width: 16.5rem;
  max-width: min(16.5rem, calc(100vw - var(--ask-drawer-width) - 2rem));
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--ask-border);
  border-radius: 0.35rem;
  background: #fff;
  box-shadow: 0 6px 18px rgba(26, 24, 20, 0.1);
  font-family: inherit;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ask-muted);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(0.35rem);
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease;
}

.ask-drawer__headline-tooltip::before,
.ask-drawer__headline-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.ask-drawer__headline-tooltip::after {
  border-left: 6px solid var(--ask-border);
}

.ask-drawer__headline-tooltip::before {
  right: -5px;
  border-top-width: 5px;
  border-bottom-width: 5px;
  border-left: 5px solid #fff;
  z-index: 1;
}

.ask-drawer.is-open .ask-drawer__headline-tooltip::before,
.ask-drawer.is-open .ask-drawer__headline-tooltip::after {
  top: calc(0.55rem + (18px * 1.2) / 2 - 15px);
}

/* Title stack only — not the width/expand icons (focus-within on the bar kept the tip stuck) */
.ask-drawer:has(.ask-drawer__headline-stack:hover) .ask-drawer__headline-tooltip,
.ask-drawer:has(.ask-drawer__headline:focus-visible) .ask-drawer__headline-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.ask-drawer__headline {
  min-width: 0;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
  border: none;
  background: transparent;
  color: var(--ask-headline);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
}

.ask-drawer__headline-bar:hover .ask-drawer__headline-primary {
  color: var(--ask-accent);
}

.ask-drawer__headline-bar:hover .ask-drawer__headline-sub {
  color: #6E81C5;
}

.ask-drawer__headline:focus-visible {
  outline: 2px solid var(--ask-accent);
  outline-offset: -2px;
}

/* Open / close shade — grid 0fr→1fr tracks content height (max-height alone snaps) */
.ask-drawer__shade {
  display: grid;
  grid-template-rows: 0fr;
  min-height: 0;
  background: var(--ask-paper);
  opacity: 0;
  pointer-events: none;
  transition:
    grid-template-rows var(--ask-ease-shade),
    opacity var(--ask-ease-shade);
}

.ask-drawer.is-open .ask-drawer__shade {
  grid-template-rows: 1fr;
  opacity: 1;
  pointer-events: auto;
  /* Cap tall content; growth itself is driven by 0fr→1fr */
  max-height: calc(100vh - var(--ask-nav-offset) - var(--ask-headline-bar-height));
}

.ask-drawer__shade-inner {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ask-drawer__toggle {
  flex-shrink: 0;
  width: var(--ask-icon-rail);
  height: var(--ask-icon-rail);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ask-border);
  border-radius: 0.3rem;
  background: #fff;
  color: var(--ask-headline);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.ask-drawer__close {
  flex-shrink: 0;
  width: var(--ask-icon-rail);
  height: var(--ask-icon-rail);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 1px solid var(--ask-border);
  border-radius: 0.3rem;
  background: #fff;
  color: var(--ask-headline);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.ask-drawer__close[hidden] {
  display: none !important;
}

.ask-drawer__close:hover {
  border-color: var(--ask-accent-line);
  color: var(--ask-accent);
}

.ask-drawer__close:focus-visible {
  outline: 2px solid var(--ask-accent);
  outline-offset: 2px;
}

.ask-drawer__close-icon {
  display: block;
  width: 0.72rem;
  height: 0.72rem;
}

.ask-drawer__toggle:hover {
  border-color: var(--ask-accent-line);
  color: var(--ask-accent);
}

.ask-drawer__toggle:focus-visible {
  outline: 2px solid var(--ask-accent);
  outline-offset: 2px;
}

.ask-drawer__toggle-icon {
  display: block;
  width: 0.72rem;
  height: 0.72rem;
}

.ask-drawer__toggle-icon {
  transition: transform var(--ask-ease-shade);
}

.ask-drawer.is-open .ask-drawer__toggle-icon {
  transform: rotate(180deg);
}

.ask-drawer__scroll {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--ask-paper);
  /*
   * When a classic scrollbar appears, shrink the inherited right rail by the
   * gutter so content stays locked to the expand/collapse control.
   */
  --ask-panel-pad-right: calc(
    var(--ask-panel-pad-right-base) - var(--ask-scrollbar-inset)
  );
  padding: var(--ask-panel-pad-y) var(--ask-panel-pad-right) var(--ask-panel-pad-y)
    var(--ask-panel-pad-left);
  /* Reserve gutter so thumb show/hide never shifts content. */
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

/* Shade open: clip instead of scrolling so a transient gutter can’t shrink the field. */
.ask-drawer.is-shade-opening .ask-drawer__scroll {
  overflow-y: hidden;
}

/*
 * Tray scrollbar: idle = invisible thumb (gutter kept).
 * Hover/focus = faint thumb. Active scroll = slightly clearer.
 * Page-focus (outside click) matches idle — tray stays open and scrollable.
 */
.ask-drawer__scroll::-webkit-scrollbar {
  width: var(--ask-tray-scrollbar-size);
  height: var(--ask-tray-scrollbar-size);
}

.ask-drawer__scroll::-webkit-scrollbar-track {
  background: transparent;
}

.ask-drawer__scroll::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.ask-drawer__scroll::-webkit-scrollbar-thumb {
  background-color: transparent;
  border-radius: 999px;
  border: none;
  box-shadow: none;
}

.ask-drawer.is-scroll-hover:not(.is-page-focus) .ask-drawer__scroll,
.ask-drawer:focus-within:not(.is-page-focus) .ask-drawer__scroll {
  scrollbar-color: var(--ask-tray-scrollbar-thumb) transparent;
}

.ask-drawer.is-scroll-hover:not(.is-page-focus) .ask-drawer__scroll::-webkit-scrollbar-thumb,
.ask-drawer:focus-within:not(.is-page-focus) .ask-drawer__scroll::-webkit-scrollbar-thumb {
  background-color: var(--ask-tray-scrollbar-thumb);
}

.ask-drawer.is-scroll-active:not(.is-page-focus) .ask-drawer__scroll {
  scrollbar-color: var(--ask-tray-scrollbar-thumb-active) transparent;
}

.ask-drawer.is-scroll-active:not(.is-page-focus) .ask-drawer__scroll::-webkit-scrollbar-thumb {
  background-color: var(--ask-tray-scrollbar-thumb-active);
}

@media (prefers-reduced-motion: no-preference) {
  .ask-drawer__scroll::-webkit-scrollbar-thumb {
    transition: background-color 0.28s ease;
  }
}

/* OS/browser forced-colors: keep system scrollbar affordance readable */
@media (forced-colors: active) {
  .ask-drawer__scroll {
    scrollbar-color: Auto Auto;
  }
  .ask-drawer__scroll::-webkit-scrollbar-thumb {
    background-color: ButtonText;
  }
}

/*
 * Persistent query — sticky under the module header.
 * Negative margin-top pulls into scroll padding; matching margin-bottom restores
 * flow height so results (HERE'S WHAT I FOUND) are not painted under the sticky paper.
 * Gap below the field is padding, not form margin.
 */
.ask-drawer__query-chrome {
  position: sticky;
  top: 0;
  z-index: 6;
  margin-top: calc(-1 * var(--ask-panel-pad-y));
  margin-bottom: var(--ask-panel-pad-y);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  background: var(--ask-paper);
}

/* Viewport-edge scroll affordance — not decorative AI chrome */
.ask-drawer__scroll-fade {
  position: sticky;
  bottom: 0;
  z-index: 5;
  height: var(--ask-scroll-fade-height);
  margin-top: calc(-1 * var(--ask-scroll-fade-height));
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.72) 48%,
    var(--ask-paper) 100%
  );
  opacity: 1;
  transition: opacity 0.18s ease;
}

.ask-drawer__scroll-fade.is-dimmed {
  opacity: 0.28;
}

.ask-drawer__scroll-fade[hidden] {
  display: none !important;
}

/* Spacing under the field lives on query-chrome padding-bottom (sticky-safe). */
.ask-drawer__persistent-query {
  margin: 0;
}


/* Brief first-visit guidance in the entry flow. */
.ask-drawer__help-toggle {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0 0.35rem 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9b907f;
  font: 500 11px/1 'Helvetica Neue', Helvetica, Arial, sans-serif;
  cursor: pointer;
}
.ask-drawer__help-toggle::before {
  content: '';
  position: absolute;
  inset: 0.16rem;
  border: 1px solid var(--ask-border);
  border-radius: 50%;
}
.ask-drawer__help-toggle:hover,
.ask-drawer__help-toggle[aria-expanded='true'] {
  color: #897c69;
}
.ask-drawer__help-toggle:focus-visible,
.ask-drawer__intro-card button:focus-visible {
  outline: 2px solid var(--ask-accent);
  outline-offset: 2px;
}
.ask-drawer__intro-host[hidden] {
  display: none !important;
}
.ask-drawer__intro-host {
  margin: 0 0 0.75rem;
}
.ask-drawer.is-intro-visible .ask-drawer__entry-lead {
  display: none;
}
.ask-drawer__intro-card {
  color: var(--ask-headline);
}
.ask-drawer__intro-heading {
  margin: 0 0 0.35rem;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.2;
}
.ask-drawer__intro-copy {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #625e58;
}
.ask-drawer__intro-examples-label {
  margin: 0.65rem 0 0.25rem;
  font-size: 12px;
  font-weight: 700;
}
.ask-drawer__intro-examples {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}
.ask-drawer__intro-examples button,
.ask-drawer__intro-dismiss {
  font: inherit;
  font-size: 12px;
  line-height: 1.35;
  color: var(--ask-headline);
  cursor: pointer;
}
.ask-drawer__intro-examples button {
  display: grid;
  grid-template-columns: 0.9rem minmax(0, 1fr);
  gap: 0.35rem;
  align-items: baseline;
  padding: 0.1rem 0;
  border: 0;
  background: transparent;
  text-align: left;
}
.ask-drawer__intro-examples button::before {
  content: '›';
  font-size: 17px;
  line-height: 0.7;
}
.ask-drawer__intro-examples button:hover {
  text-decoration: underline;
  text-underline-offset: 0.14em;
}
.ask-drawer__intro-host.is-dismissing,
.ask-drawer__intro-host.is-opening {
  pointer-events: none;
}
.ask-drawer__intro-examples button:hover,
.ask-drawer__intro-dismiss:hover {
  color: var(--ask-accent);
}
.ask-drawer__intro-dismiss {
  display: block;
  margin: 0.6rem 0 0 auto;
  padding: 0.35rem 0.8rem;
  border: 1px solid #d8d2c6;
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(26, 24, 20, 0.04);
}

/* ===== Entry ===== */
.ask-drawer__entry {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0;
}

.ask-drawer[data-view='entry'] .ask-drawer__query-chrome {
  display: none !important;
}

.ask-drawer[data-view='entry'] .ask-drawer__scroll {
  padding-top: 0;
  padding-bottom: 0.75rem;
}

.ask-drawer__intro {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 0.45rem;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ask-muted);
}

.ask-drawer__intro-line {
  display: block;
}

/* Secondary cue: framing line above the field */
.ask-drawer__intro-line--cue {
  margin-top: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: #2c2a28;
  transition: opacity 160ms ease;
}

.ask-drawer__explore-label {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.ask-drawer.is-cue-fading .ask-drawer__intro-line--cue {
  opacity: 0;
}

.ask-drawer__intro--cue-only {
  margin: 0 0 0.375rem;
  padding-top: 0;
}

.ask-drawer__entry-lead {
  padding-top: 5px;
}

/* Entry-only spacing above EXPLORE. This overrides the later query-band
   rule and adds 2px above the cue without changing its gap to the field. */
.ask-drawer[data-view='entry']:not(.is-intro-visible) .ask-drawer__inquiry {
  padding-top: calc(0.5015rem + 2px);
}
.ask-drawer[data-view='entry']:not(.is-intro-visible) .ask-drawer__entry-lead {
  padding-top: 2.95px;
}

.ask-drawer__form {
  margin: 0 0 1rem;
}

/* Persistent field: no bottom margin — gap is query-chrome padding (avoids sticky overlap). */
.ask-drawer__form.ask-drawer__persistent-query {
  margin: 0;
}

/* Integrated input: inactive display mirror + editing textarea + submit arrow */
.ask-drawer__input-wrap {
  position: relative;
  display: block;
}

.ask-drawer__query-display,
.ask-drawer__input {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.75rem 2.75rem 0.75rem 0.95rem;
  border: 1px solid var(--ask-accent-line);
  border-radius: 0.65rem;
  background: #fff;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.35;
  color: var(--ask-ink);
  box-sizing: border-box;
  word-break: break-word;
  white-space: normal;
}

.ask-drawer__query-display {
  display: none;
  pointer-events: none;
}

.ask-drawer__input {
  box-shadow: none;
  resize: none;
}

/* Inactive + has query: mirror sizes/clamps; transparent textarea overlays for focus */
.ask-drawer__input-wrap.has-query:not(.is-editing) .ask-drawer__query-display {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ask-drawer__input-wrap.has-query:not(.is-editing) .ask-drawer__input {
  position: absolute;
  inset: 0;
  height: 100%;
  min-height: 100%;
  max-height: none;
  overflow: hidden;
  opacity: 0;
  border-color: transparent;
  background: transparent;
}

/* Inactive + empty: single-line field with placeholder */
.ask-drawer__input-wrap:not(.has-query):not(.is-editing) .ask-drawer__input {
  overflow: hidden;
  min-height: calc(1.35em + 1.5rem);
  max-height: calc(1.35em + 1.5rem);
}

/* Active edit: expand with internal scroll cap (unchanged) */
.ask-drawer__input-wrap.is-editing .ask-drawer__query-display {
  display: none !important;
}

.ask-drawer__input-wrap.is-editing .ask-drawer__input {
  position: static;
  opacity: 1;
  border-color: var(--ask-accent-line);
  background: #fff;
  min-height: calc(1.35em + 1.5rem);
  max-height: var(--ask-query-edit-max, 9.75rem);
  overflow-y: auto;
}

/* Tall role-compose or multiline edit: arrow stays top-right inside the field. */
.ask-drawer__input-wrap.is-editing.is-editing-multiline .ask-drawer__submit {
  top: 0.75rem;
  transform: none;
}

/* Submit: centered for one-line inactive; top-aligned when mirror wraps to two lines */
.ask-drawer__input-wrap.has-query:not(.is-editing):not(.is-inactive-multiline) .ask-drawer__submit {
  top: 50%;
  transform: translateY(-50%);
}

.ask-drawer__input-wrap.has-query:not(.is-editing).is-inactive-multiline .ask-drawer__submit {
  top: 0.75rem;
  transform: none;
}

.ask-drawer__input::placeholder {
  color: #8a8690;
}

.ask-drawer__input:focus,
.ask-drawer__input:focus-visible {
  outline: none;
  border-color: var(--ask-accent);
  box-shadow: none;
}

.ask-drawer__submit {
  position: absolute;
  top: 50%;
  right: 0.4rem;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 0.45rem;
  background: var(--ask-accent);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.ask-drawer__submit:hover {
  background: #4a4ac8;
}

.ask-drawer__submit:focus-visible {
  outline: 2px solid var(--ask-headline);
  outline-offset: 2px;
}

.ask-drawer__submit-icon {
  display: block;
  width: 0.95rem;
  height: 0.95rem;
}

.ask-drawer__suggest-label {
  margin: 0 0 0.45rem;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ask-muted);
}

.ask-drawer__pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0 0 0.75rem;
}

.ask-drawer__pill {
  flex: 0 0 auto;
  border: 1px solid #cfc9bd;
  background: #fff;
  color: var(--ask-ink);
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
  padding: 0.35rem 8px;
  border-radius: 999px;
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.ask-drawer__pill:hover {
  border-color: var(--ask-accent);
  background: var(--ask-accent);
  color: #fff;
}

.ask-drawer__pill:focus-visible {
  outline: 2px solid var(--ask-accent);
  outline-offset: 2px;
}

.ask-drawer__about {
  margin: 0.7rem 0 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: #b3b3b3;
}

.ask-drawer__about-text {
  display: inline;
  color: inherit;
}

.ask-drawer__about-link {
  font: inherit;
  font-size: 12px;
  font-weight: 400;
  color: var(--ask-muted);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.ask-drawer__about-link:focus-visible {
  outline: 2px solid var(--ask-accent);
  outline-offset: 2px;
}

.ask-drawer__starters {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 0.35rem;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.ask-drawer__starters-host {
  width: 100%;
}

.ask-drawer__starters-host[hidden] {
  display: none !important;
}

.ask-drawer[data-view='entry'] .ask-drawer__starters,
.ask-drawer[data-view='conversation'] .ask-drawer__starters,
.ask-drawer[data-view='no-result'] .ask-drawer__starters {
  margin-top: calc(0.225rem + 2.5px);
}
/* Field border to starter chips: 0.3rem + 1px border + (0.2rem + 2px) = 11px at 16px/rem. */
.ask-drawer[data-view='entry'].is-open .ask-drawer__inquiry {
  padding-bottom: 0.3rem;
}
.ask-drawer[data-view='entry'].is-open .ask-drawer__starters {
  margin-top: calc(0.2rem + 2px);
}

.ask-drawer[data-view='conversation'] .ask-drawer__starters,
.ask-drawer[data-view='no-result'] .ask-drawer__starters {
  margin-bottom: 0.85rem;
}

.ask-drawer[data-view='conversation'] .ask-drawer__scroll,
.ask-drawer[data-view='no-result'] .ask-drawer__scroll {
  /* One shared field→result gap for conversation and unsupported recovery. */
  padding-top: var(--ask-result-stack-gap);
}

.ask-drawer[data-view='entry'] .ask-drawer__about {
  margin-top: calc(1.4rem + 10px);
  transition: opacity var(--ask-cttc-tool-fade) var(--ask-motion-ease);
}

.ask-drawer[data-drawer-experience='result'] .ask-drawer__about {
  opacity: 0;
  pointer-events: none;
}

.ask-drawer__starter {
  margin: 0;
  flex: 1 1 0;
  min-width: 0;
  padding: 0.28rem 0.35rem;
  border: 1px solid #ddd6c8;
  border-radius: 999px;
  background: #f4efe6;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ask-headline);
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.ask-drawer__starter:hover {
  border-color: var(--ask-accent-line);
  color: var(--ask-accent);
}

.ask-drawer__starter.is-active {
  border-width: 2px;
  border-color: #8896c8;
  padding: calc(0.28rem - 1px) calc(0.35rem - 1px);
}

.ask-drawer__starter:focus-visible {
  outline: 2px solid var(--ask-accent);
  outline-offset: 2px;
}

.ask-drawer__link-btn {
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--ask-accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.ask-drawer__link-btn:hover {
  color: var(--ask-headline);
}

.ask-drawer__link-btn:focus-visible {
  outline: 2px solid var(--ask-accent);
  outline-offset: 2px;
}

/*
 * Type hierarchy:
 *   Cut to the Chase title = 18px / 700 (primary)
 *   Result headlines / body meet desktop readability minima below.
 * Results: collapsed rows expand in place as a single-open accordion.
 */
.ask-drawer__question,
.ask-drawer__focused-headline,
.ask-drawer__noresult-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.ask-drawer__focused-headline {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.ask-drawer__question-bar {
  position: relative;
  z-index: 1;
  margin: 0;
  box-sizing: border-box;
  width: 100%;
  min-height: 0;
  padding: 0.8rem calc(var(--ask-panel-pad-right) + 1.5rem + 0.4rem) 0.8rem var(--ask-panel-pad-left);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--ask-border);
  background: var(--ask-paper);
  transition:
    opacity 0.7s var(--ask-motion-ease),
    transform 0.7s var(--ask-motion-ease);
}

.ask-drawer__question-bar-close {
  position: absolute;
  top: 0.55rem;
  right: var(--ask-panel-pad-right);
  z-index: 2;
  width: var(--ask-icon-rail);
  height: var(--ask-icon-rail);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.3rem;
  border: 1px solid var(--ask-border);
  background: var(--ask-paper);
  color: var(--ask-muted);
  cursor: pointer;
  opacity: 1;
  transition: color 0.2s, background 0.2s;
}

.ask-drawer__question-bar-close:hover {
  color: var(--ask-headline);
  border-color: var(--ask-accent-line);
}

.ask-drawer__question-bar-close:focus-visible {
  outline: 2px solid var(--ask-accent);
  outline-offset: 1px;
  opacity: 1;
}

.ask-drawer__question-bar-close-icon {
  display: block;
  width: 0.72rem;
  height: 0.72rem;
}

.ask-drawer__question-bar .ask-drawer__question {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0;
  color: var(--ask-headline);
  font-weight: 400;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.ask-drawer__question-trigger {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ask-muted);
}

.ask-drawer__question-query {
  display: block;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}

/* Results layout: main grows; footer (cue / field / ask next) anchors to bottom */
.ask-drawer__results-layout {
  position: relative;
  display: grid;
  min-height: 0;
}

.ask-drawer__results-surface,
.ask-drawer__focused-surface {
  grid-area: 1 / 1;
  min-width: 0;
}

.ask-drawer__results-surface {
  display: flex;
  flex-direction: column;
  min-height: 0;
  transition: transform 0.36s var(--ask-motion-ease);
}

.ask-drawer[data-view='focused-card'] .ask-drawer__results-surface {
  transform: translateX(-0.75rem);
}

/* While the shade is opening, fill the tray so the footer rides the bottom edge. */
.ask-drawer__scroll.is-height-animating #askViewResults {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ask-drawer__scroll.is-height-animating .ask-drawer__results-layout {
  flex: 1;
  min-height: 100%;
  height: 100%;
}

.ask-drawer__scroll.is-height-animating .ask-drawer__results-surface {
  min-height: 100%;
  height: 100%;
}

/* Reading lock: pin the follow-up field while paragraphs fill a reserved slot. */
.ask-drawer__scroll.is-height-locked.is-reading-lock #askViewResults {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ask-drawer__scroll.is-height-locked.is-reading-lock .ask-drawer__results-layout,
.ask-drawer__scroll.is-height-locked.is-reading-lock .ask-drawer__results-surface {
  flex: 1;
  min-height: 100%;
  height: 100%;
}

/* Settled lock: hug compact answer + examples + field. */
.ask-drawer__scroll.is-height-locked:not(.is-reading-lock) #askViewResults,
.ask-drawer__scroll.is-height-locked:not(.is-reading-lock) .ask-drawer__results-layout,
.ask-drawer__scroll.is-height-locked:not(.is-reading-lock) .ask-drawer__results-surface {
  height: auto;
  min-height: 0;
}

.ask-drawer__results-main {
  flex: 1 1 auto;
  min-height: 0;
  /* Bleed to panel edges for examples bar / rules; top pad owned by query chrome */
  box-sizing: border-box;
  width: calc(100% + var(--ask-panel-pad-left) + var(--ask-panel-pad-right));
  margin-top: 0;
  margin-left: calc(-1 * var(--ask-panel-pad-left));
  margin-right: calc(-1 * var(--ask-panel-pad-right));
  overflow: hidden;
}

#askViewResults .ask-result {
  opacity: 0;
  transform: translateY(-0.65rem);
}

#askViewResults .ask-result.is-revealed {
  opacity: 1;
  transform: none;
}

/* Window-shade: purple bar + cards roll up; ask next stays */
.ask-drawer__results-shade {
  display: grid;
  grid-template-rows: 1fr;
  box-sizing: border-box;
  width: 100%;
  transition: grid-template-rows var(--ask-ease-shade);
}

.ask-drawer__results-shade.is-minimized {
  grid-template-rows: 0fr;
}

.ask-drawer__results-shade-inner {
  overflow: hidden;
  min-height: 0;
}

.ask-drawer__view.is-results-minimized .ask-drawer__results-cue {
  margin-top: 0;
  padding-top: 10px;
}

.ask-drawer__question {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ask-headline);
  margin: 0 0 0.35rem;
}

.ask-drawer__framing {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ask-muted);
  margin: 0 0 0.75rem;
}

.ask-drawer__form--results {
  margin: 0;
}

.ask-drawer__results-cue {
  margin: 0.4rem 0 0.3rem;
  font-size: 11px;
  line-height: 1.4;
  color: var(--ask-muted);
}

.ask-drawer__narrative {
  position: relative;
  /* Match persistent field left edge (scroll pad + results-main bleed cancel). */
  padding: 0.55rem var(--ask-panel-pad-right) 0.35rem var(--ask-panel-pad-left);
  box-sizing: border-box;
}

/* Settled HWIF: headline only — body is fully shaded away. */
.ask-drawer__narrative.is-compact {
  box-sizing: border-box;
  height: auto;
  min-height: 0;
  max-height: none;
  padding-bottom: 0.2rem;
  overflow: hidden;
}

/*
 * During shade drop: keep the persistent query visible.
 * Only the narrative / evidence stack stays veiled until streaming starts.
 */
#askViewResults.is-shade-sizing .ask-drawer__narrative,
#askViewResults.is-shade-sizing .ask-drawer__evidence-shade {
  opacity: 0;
  pointer-events: none;
}

.ask-drawer__narrative-label,
.ask-drawer__focused-match,
.ask-drawer__focused-label {
  position: relative;
  z-index: 1;
  margin: 0 0 0.4rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: left;
  color: var(--ask-muted);
}

/* Evidence-calibrated conclusion — beneath HWIF, before narrative body */
.ask-drawer__answer-headline {
  position: relative;
  z-index: 1;
  margin: 0 0 0.55rem;
  max-width: 34rem;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ask-headline);
  text-align: left;
  opacity: 1;
}

/* First presentation: headline pending until entrance reveals it */
.ask-drawer__answer-headline.is-pending {
  opacity: 0;
}

.ask-drawer__answer-headline.is-revealed {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .ask-drawer__answer-headline.is-revealed {
    transition: opacity 0.28s var(--ask-motion-ease);
  }
}

.ask-drawer__narrative-stack {
  position: relative;
}

.ask-drawer__narrative-copy {
  position: relative;
  box-sizing: border-box;
  max-width: 34rem;
  overflow: hidden;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 22px;
  color: var(--ask-ink);
  transition: max-height 1.1s var(--ask-motion-ease);
}

.ask-drawer__narrative-copy p {
  margin: 0 0 0.7rem;
}

.ask-drawer__narrative-copy p:last-child {
  margin-bottom: 0;
}

/*
 * Window-shade compact: copy/stack max-height eases down; gray rule rides the
 * bottom edge upward. Tray stays pinned so white paper shows underneath.
 */
.ask-drawer__narrative.is-window-shading .ask-drawer__narrative-stack {
  overflow: hidden;
}

.ask-drawer__narrative.is-window-shading .ask-drawer__narrative-copy {
  overflow: hidden;
}

.ask-drawer__narrative.is-window-shading .ask-drawer__narrative-rule-row {
  margin-top: calc(-0.5 * var(--ask-icon-rail));
  z-index: 2;
}

/* Compact: body fully collapsed. First-play window-shade animates to 0. */
.ask-drawer__narrative.is-compact .ask-drawer__narrative-stack {
  max-height: 0;
  overflow: hidden;
}

.ask-drawer__narrative.is-compact .ask-drawer__narrative-copy {
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
}

.ask-drawer__narrative.is-compact .ask-drawer__narrative-stack::after {
  content: none;
}

.ask-drawer__narrative.is-compact .ask-drawer__narrative-rule-row {
  display: none;
}

/* Figma stops: 11%/0%, 37%/44%, 100%/100% — 88px tall from the gray bar. */
.ask-drawer__narrative.is-compact .ask-drawer__narrative-stack::after,
.ask-drawer__narrative.is-window-shading .ask-drawer__narrative-stack::after {
  content: '';
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--ask-narrative-fade-height);
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 11%,
    rgba(255, 255, 255, 0.44) 37%,
    rgba(255, 255, 255, 1) 100%
  );
  opacity: 1;
}

/* Hover / active scroll in the condensed body: clear the mask so text is readable. */
.ask-drawer__narrative.is-compact.is-copy-active .ask-drawer__narrative-stack::after {
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .ask-drawer__narrative.is-compact .ask-drawer__narrative-stack::after {
    transition: opacity 0.18s ease;
  }
}

.ask-drawer__narrative.is-expanded .ask-drawer__narrative-copy {
  max-height: none;
  overflow: hidden;
}

.ask-drawer__narrative.is-expanded .ask-drawer__narrative-stack {
  max-height: none;
}

.ask-drawer__narrative.is-expanded .ask-drawer__narrative-stack::after {
  content: none;
}

/*
 * Gray line through the vertical center of the right-rail chevron.
 * Line sits behind; button paper fill masks the segment under the icon.
 */
/* Always reserve the chevron rail in results so drawing the rule never grows the tray. */
.ask-drawer__narrative-rule-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: var(--ask-icon-rail);
  margin-top: 0.15rem;
}

/*
 * Collapsed: center the gray line on the copy’s bottom edge (fade → solid mask).
 * Half the chevron hangs below into compact padding-bottom.
 */
.ask-drawer__narrative.is-compact .ask-drawer__narrative-rule-row {
  margin-top: calc(-0.5 * var(--ask-icon-rail));
  z-index: 2;
}

.ask-drawer__narrative-rule {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  z-index: 1;
  display: block;
  width: 100%;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--ask-border);
  transform: translateY(-50%) scaleX(0);
  transform-origin: left center;
  opacity: 0;
  transition:
    transform 0.55s var(--ask-motion-ease),
    opacity 0.35s var(--ask-motion-ease);
}

.ask-drawer__narrative-rule.is-drawn {
  transform: translateY(-50%) scaleX(1);
  opacity: 1;
}

/* Narrative expand/collapse control retired — rule row remains for the divider. */

/* Examples + cards window-shade into the space freed by the clamp. */
.ask-drawer__evidence-shade {
  display: grid;
  grid-template-rows: 0fr;
  box-sizing: border-box;
  width: 100%;
  transition: grid-template-rows 1.1s var(--ask-motion-ease);
}

.ask-drawer__evidence-shade.is-open {
  grid-template-rows: 1fr;
}

.ask-drawer__evidence-shade-inner {
  overflow: hidden;
  min-height: 0;
}

/* PNG “3 EXAMPLES” bar — keep this short; rail width only, not rail height. */
.ask-drawer__evidence-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  padding: 0.35rem var(--ask-panel-pad-right) 0.35rem var(--ask-panel-pad-left);
  border: none;
  background: rgba(164, 164, 244, 0.28);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ask-accent);
}

.ask-drawer__evidence-heading.is-revealed {
  opacity: 1;
}

.ask-drawer__evidence-heading-text {
  min-width: 0;
}

.ask-drawer__evidence-heading-info {
  flex: 0 0 var(--ask-icon-rail);
  width: var(--ask-icon-rail);
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ask-accent);
  opacity: 0.85;
}

.ask-drawer__evidence-heading-info svg {
  display: block;
  width: 0.85rem;
  height: 0.85rem;
}

.ask-drawer__results {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

/* 6px less white space under the last card rule (was −10, then +4). */
.ask-drawer[data-view='results'] .ask-drawer__scroll,
.ask-drawer[data-view='focused-card'] .ask-drawer__scroll {
  padding-bottom: calc(var(--ask-panel-pad-y) - 6px);
}

.ask-result {
  position: relative;
  transition:
    opacity 0.32s var(--ask-motion-ease),
    transform 0.32s var(--ask-motion-ease);
}

/* Divider: left content margin → tip of the right-rail arrow (including under last card) */
.ask-result::after {
  content: '';
  position: absolute;
  left: var(--ask-panel-pad-left);
  right: var(--ask-panel-pad-right);
  bottom: 0;
  height: 1px;
  background: var(--ask-border);
  pointer-events: none;
}

#askViewResults .ask-result.is-revealed {
  transition-duration: 0.38s;
}

.ask-result::before {
  content: none;
}

.ask-result.is-selected {
  background: transparent;
}

.ask-result__row {
  display: block;
  width: 100%;
  margin: 0;
  /* 9px shorter than prior 0.75rem vertical padding (4.5px each side). */
  padding: calc(0.75rem - 4.5px) var(--ask-panel-pad-right) calc(0.75rem - 4.5px)
    var(--ask-panel-pad-left);
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: background 0.2s;
}

.ask-result:first-child .ask-result__row {
  padding-top: calc(0.6rem - 4.5px + 10px);
}

.ask-result__row:hover {
  color: var(--ask-accent);
}

.ask-result__row:hover .ask-result__headline,
.ask-result__row:hover .ask-result__chevron {
  color: var(--ask-accent);
}

.ask-result__row:focus-visible {
  outline: 2px solid var(--ask-accent);
  outline-offset: -2px;
}

.ask-result__relevance {
  margin: 0 0 0.2rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ask-accent);
}

.ask-result__eyebrow {
  margin: 0 0 0.2rem;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8f8c98;
}

.ask-result__headline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  width: 100%;
}

.ask-result__headline {
  flex: 1 1 auto;
  min-width: 0;
  max-width: calc(100% - var(--ask-icon-rail) - 0.25rem);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ask-headline);
}

.ask-result__chevron {
  flex: 0 0 var(--ask-icon-rail);
  width: var(--ask-icon-rail);
  height: var(--ask-icon-rail);
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  color: var(--ask-muted);
  transition: transform 0.25s ease, color 0.2s;
}

.ask-result.is-selected .ask-result__chevron,
.ask-result.is-open .ask-result__chevron {
  color: var(--ask-accent);
}

.ask-result.is-open .ask-result__chevron {
  transform: rotate(180deg);
}

.ask-result.is-open .ask-result__row {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--ask-paper);
}

.ask-result__panel {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.28s var(--ask-motion-ease);
}

.ask-result:not(.is-open) .ask-result__panel {
  max-height: 0;
}

.ask-result.is-open .ask-result__panel {
  grid-template-rows: 1fr;
  overflow: visible;
}

.ask-result__panel-inner {
  min-height: 0;
  overflow: hidden;
}

.ask-result.is-open .ask-result__panel-inner {
  overflow: visible;
}

.ask-result__section {
  padding: 0.15rem var(--ask-panel-pad-right) 0.55rem var(--ask-panel-pad-left);
}

.ask-result__section + .ask-result__section {
  margin-top: 0.15rem;
}

.ask-result__summary,
.ask-result__section-body {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ask-ink);
}

.ask-result__section-label {
  margin: 0 0 0.2rem;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8f8c98;
}

.ask-result__metric {
  margin: 0;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ask-accent);
}

.ask-result__section-body + .ask-result__section-body {
  margin-top: 0.35rem;
}

.ask-result__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  flex-wrap: wrap;
  padding: 0.55rem var(--ask-panel-pad-right) 0.9rem var(--ask-panel-pad-left);
}

.ask-result__view-site {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

/* Signature tab — authored SVG assets in /assets/ */
.ask-sign-tab {
  display: block;
  flex: 0 0 auto;
}

.ask-result__view-site .ask-sign-tab {
  width: 119px;
  height: 27px;
}

.ask-result__view-site:hover .ask-sign-tab,
.ask-result__view-site:focus-visible .ask-sign-tab {
  opacity: 0.88;
}

.ask-result__view-site:focus-visible {
  outline: 2px solid var(--ask-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Page beacon nob — same asset, slightly smaller */
.ask-page-beacon__nob {
  margin-top: 0;
}

.ask-page-beacon__nob .ask-sign-tab {
  width: 122px;
  height: 28px;
}

.ask-result__source-line {
  min-width: 0;
  flex: 1 1 8rem;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ask-muted);
  text-align: right;
}

.ask-drawer__focused-surface {
  position: relative;
  z-index: 4;
  align-self: stretch;
  width: calc(100% + var(--ask-panel-pad-left) + var(--ask-panel-pad-right));
  margin-top: calc(-1 * var(--ask-panel-pad-y));
  margin-left: calc(-1 * var(--ask-panel-pad-left));
  margin-right: calc(-1 * var(--ask-panel-pad-right));
  min-height: calc(100% + var(--ask-panel-pad-y));
  visibility: hidden;
  overflow: hidden;
  clip-path: inset(0 0 0 100%);
  background: var(--ask-paper);
  transition:
    clip-path 0.36s var(--ask-motion-ease),
    visibility 0s linear 0.36s;
}

.ask-drawer__focused-surface.is-mounted {
  visibility: visible;
  transition:
    clip-path 0.36s var(--ask-motion-ease),
    visibility 0s linear 0s;
}

.ask-drawer__focused-surface.is-visible {
  clip-path: inset(0);
}

.ask-drawer[data-view='focused-card'] .ask-drawer__query-chrome {
  padding-top: 4px;
  padding-bottom: 0.55rem;
  margin-bottom: 0.55rem;
}

.ask-drawer__focused-stage {
  /* Offset sticky query chrome (focused surface uses negative margin wipe). */
  padding: calc(var(--ask-panel-pad-y) + 0.2rem) var(--ask-panel-pad-right) 1rem
    var(--ask-panel-pad-left);
  box-sizing: border-box;
}

.ask-drawer__focused-back {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.65rem;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ask-accent);
  cursor: pointer;
}

.ask-drawer__focused-back:hover {
  color: var(--ask-headline);
}

.ask-drawer__focused-back:focus-visible {
  outline: 2px solid var(--ask-accent);
  outline-offset: 2px;
}

.ask-drawer__focused-section {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--ask-border);
  opacity: 0;
  transform: translateX(0.45rem);
  transition:
    opacity 0.24s var(--ask-motion-ease),
    transform 0.24s var(--ask-motion-ease);
}

.ask-drawer__focused-section:first-of-type {
  padding-top: 0;
}

.ask-drawer__focused-section:last-child {
  border-bottom: 0;
}

.ask-drawer__focused-section.is-revealed {
  opacity: 1;
  transform: none;
}

.ask-drawer__focused-match {
  color: var(--ask-accent);
}

.ask-drawer__focused-section--view-work {
  padding-top: 0;
  padding-bottom: 0.75rem;
}

.ask-drawer__view-work {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.ask-drawer__view-work-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.ask-drawer__view-work-marker {
  display: inline-flex;
  color: var(--ask-accent);
  line-height: 0;
}

.ask-drawer__view-work-marker .ask-cttc-beacon-icon {
  width: 14px;
  height: 14px;
}

.ask-drawer__view-work-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ask-accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.ask-drawer__view-work-link:hover .ask-drawer__view-work-label {
  color: var(--ask-headline);
}

.ask-drawer__view-work-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(117, 113, 192, 0.45);
  border-radius: 999px;
  background: transparent;
  color: var(--ask-accent);
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  cursor: pointer;
}

.ask-drawer__view-work-info:hover,
.ask-drawer__view-work-info:focus-visible,
.ask-drawer__view-work-info[aria-expanded='true'] {
  background: rgba(117, 113, 192, 0.1);
  outline: none;
}

.ask-drawer__view-work-info:focus-visible {
  outline: 2px solid var(--ask-accent);
  outline-offset: 2px;
}

.ask-drawer__view-work-tip {
  position: absolute;
  left: 0;
  top: calc(100% + 0.35rem);
  z-index: 8;
  max-width: 16.5rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--ask-border);
  border-radius: 0.35rem;
  background: var(--ask-paper);
  box-shadow: 0 6px 18px rgba(26, 24, 20, 0.08);
  color: var(--ask-ink);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
}

.ask-drawer__view-work-tip[hidden] {
  display: none !important;
}

.ask-drawer__focused-eyebrow {
  margin: 0 0 0.3rem;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8f8c98;
}

.ask-drawer__focused-headline {
  margin: 0 0 0.55rem;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ask-headline);
}

.ask-drawer__focused-summary {
  max-width: 34rem;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ask-ink);
}

.ask-drawer__focused-metric {
  margin: 0 0 0.35rem;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ask-headline);
}

.ask-drawer__focused-body,
.ask-drawer__focused-context-line,
.ask-drawer__focused-route-note {
  max-width: 34rem;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ask-ink);
}

.ask-drawer__focused-context-line {
  margin-top: 0.55rem;
  font-size: 11px;
  color: var(--ask-muted);
}

.ask-drawer__focused-body--led {
  margin-top: 0.55rem;
}

.ask-drawer__focused-route {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ask-accent);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s;
}

.ask-drawer__focused-route:focus-visible {
  outline: 2px solid var(--ask-accent);
  outline-offset: 2px;
}

.ask-drawer__focused-route.is-active-route .ask-drawer__view-work-label {
  font-weight: 800;
}

.ask-drawer__focused-route.is-unavailable {
  color: var(--ask-muted);
  cursor: not-allowed;
  pointer-events: none;
}

.ask-drawer__focused-route.is-unavailable .ask-drawer__view-work-label {
  text-decoration: line-through;
}

.ask-drawer__focused-route-unavailable {
  margin: 0.45rem 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--ask-muted);
}

.ask-drawer__focused-section--sources {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.ask-drawer__focused-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ask-drawer__focused-source-capsule {
  display: inline-flex;
  max-width: 100%;
  padding: 0.2rem 0.45rem;
  border: 1px solid rgba(221, 216, 206, 0.9);
  border-radius: 999px;
  background: rgba(253, 252, 249, 0.8);
  color: var(--ask-muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.ask-drawer__focused-section--explore {
  border-bottom: 0;
  padding-bottom: 0.25rem;
}

.ask-drawer__focused-explore-label {
  margin: 0 0 0.45rem;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8f8c98;
}

.ask-drawer__focused-explore-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ask-drawer__focused-explore-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.15rem;
  border: 0;
  border-top: 1px solid rgba(221, 216, 206, 0.75);
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.ask-drawer__focused-explore-list li:last-child .ask-drawer__focused-explore-row {
  border-bottom: 1px solid rgba(221, 216, 206, 0.75);
}

.ask-drawer__focused-explore-row:hover,
.ask-drawer__focused-explore-row:focus-visible {
  background: rgba(117, 113, 192, 0.05);
  outline: none;
}

.ask-drawer__focused-explore-row:focus-visible {
  outline: 2px solid var(--ask-accent);
  outline-offset: 2px;
}

.ask-drawer__focused-explore-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.ask-drawer__focused-explore-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8f8c98;
}

.ask-drawer__focused-explore-headline {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ask-headline);
}

.ask-drawer__focused-explore-chevron {
  flex: 0 0 auto;
  color: var(--ask-accent);
  font-size: 14px;
  font-weight: 700;
}

/* Satellite presentation — compact citation tether */
.ask-drawer[data-session-mode='satellite'] .ask-drawer__headline-sub {
  display: none;
}

.ask-drawer[data-session-mode='satellite'] .ask-drawer__query-chrome {
  display: none !important;
}

.ask-drawer[data-session-mode='satellite'].is-open .ask-drawer__scroll {
  max-height: var(--ask-satellite-height, 110px);
  overflow: visible;
}

.ask-drawer[data-session-mode='satellite'].is-open .ask-drawer__shade-inner {
  overflow: visible;
}

.ask-drawer__satellite-surface {
  padding: 0.2rem var(--ask-panel-pad-right) 0.45rem var(--ask-panel-pad-left);
}

.ask-satellite {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

/* Viewing row: citation bullet · copy · return icon (right-rail aligned with toggle) */
.ask-satellite__viewing-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) var(--ask-icon-rail);
  align-items: baseline;
  column-gap: 0.4rem;
}

.ask-satellite__viewing {
  margin: 0;
  min-width: 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ask-ink);
}

.ask-satellite__viewing-prefix {
  font-weight: 600;
  color: var(--ask-muted);
}

.ask-satellite__context-line {
  margin: 0;
  padding-left: calc(14px + 0.4rem);
  font-size: 11px;
  line-height: 1.35;
  color: var(--ask-muted);
}

.ask-satellite__degraded {
  margin: 0.1rem 0 0;
  padding-left: calc(14px + 0.4rem);
  font-size: 11px;
  line-height: 1.35;
  color: var(--ask-muted);
}

.ask-satellite__beacon,
.ask-satellite__return {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex: 0 0 auto;
}

.ask-satellite__beacon {
  width: 14px;
  height: 14px;
  color: var(--ask-accent);
  position: relative;
  top: 0.1em;
}

.ask-satellite__beacon.is-disabled,
.ask-satellite__beacon:disabled {
  color: var(--ask-muted);
  cursor: not-allowed;
  opacity: 0.72;
}

.ask-satellite__beacon:hover:not(:disabled):not(.is-disabled) {
  color: var(--ask-headline);
}

.ask-satellite__return {
  width: var(--ask-icon-rail);
  height: var(--ask-icon-rail);
  justify-self: end;
  align-self: baseline;
  position: relative;
  top: 0.05em;
  color: var(--ask-headline);
  border-radius: 0.3rem;
  transition: color 0.2s;
}

.ask-satellite__return:hover {
  color: var(--ask-accent);
}

.ask-satellite__beacon:focus-visible,
.ask-satellite__return:focus-visible {
  outline: 2px solid var(--ask-accent);
  outline-offset: 2px;
}

.ask-satellite__beacon-icon,
.ask-satellite__return-icon,
.ask-cttc-beacon-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  display: block;
}

.ask-satellite__return-icon {
  width: 15px;
  height: 15px;
}

/* Page evidence beacon — range nob in the left gutter */
.ask-evidence-anchor {
  position: relative;
  overflow: visible;
}

.ask-page-beacon {
  --ask-beacon-rule-height: 120px;
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.2rem;
  width: max-content;
  pointer-events: none;
  color: var(--ask-accent);
}

.ask-page-beacon__nob {
  margin-top: 0;
}

.ask-page-beacon__spine {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 2px;
  margin-top: 7px;
  height: var(--ask-beacon-rule-height);
  border-radius: 999px;
  background: rgba(117, 113, 192, 0.7);
}

.ask-page-beacon__spine::before,
.ask-page-beacon__spine::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ask-accent);
  transform: translateX(-50%);
}

.ask-page-beacon__spine::before {
  top: -3px;
}

.ask-page-beacon__spine::after {
  bottom: -3px;
}

/* Mobile: attach to inside edge of matched content */
.ask-evidence-anchor > .ask-page-beacon {
  left: 0.15rem;
  top: 0.2rem;
}

/* Desktop: left gutter, tab points into the cited block */
@media (min-width: 960px) {
  .ask-evidence-anchor > .ask-page-beacon {
    left: auto;
    right: calc(100% + 0.35rem);
    top: 0.1rem;
  }
}

.ask-page-beacon.is-quiet {
  opacity: 0.82;
}

.ask-page-beacon.is-pulse .ask-page-beacon__nob {
  animation: ask-beacon-pulse 0.85s var(--ask-motion-ease) 1;
}

.ask-page-beacon.is-pulse .ask-page-beacon__spine {
  animation: ask-beacon-spine 0.85s var(--ask-motion-ease) 1;
}

@keyframes ask-beacon-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.12);
    opacity: 0.78;
  }
}

@keyframes ask-beacon-spine {
  0%,
  100% {
    opacity: 0.55;
    background: rgba(117, 113, 192, 0.55);
  }
  50% {
    opacity: 1;
    background: rgba(90, 90, 222, 0.85);
  }
}

.is-ask-evidence-highlight {
  outline: 2px solid rgba(90, 90, 222, 0.35);
  outline-offset: 0.35rem;
  transition: outline-color 0.25s var(--ask-motion-ease);
}

.ask-drawer__ask-next {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(221, 216, 206, 0.65);
}

.ask-drawer__ask-next[hidden] {
  display: none !important;
}

.ask-drawer__ask-next-label {
  margin: 0 0 0.3rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ask-accent);
}

.ask-drawer__ask-next-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.21rem;
}

.ask-drawer__ask-next-btn {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.21rem 0;
  border: none;
  background: none;
  text-align: left;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.05;
  font-weight: 500;
  color: #8f8c98;
  cursor: pointer;
  transition: color 0.2s ease;
}

.ask-drawer__ask-next-btn:hover,
.ask-drawer__ask-next-btn:focus-visible {
  color: var(--ask-accent);
}

.ask-drawer__ask-next-btn:focus-visible {
  outline: 2px solid var(--ask-accent);
  outline-offset: 2px;
}

.ask-drawer__noresult-body {
  padding: 0.75rem var(--ask-panel-pad-right) 0.25rem var(--ask-panel-pad-left);
  box-sizing: border-box;
}

.ask-drawer__recovery {
  margin: 0.15rem 0 0.35rem;
  padding: 0.95rem var(--ask-conv-inset-x, 1rem) 0.85rem;
  border-radius: var(--ask-conv-radius, 0.85rem);
  background: #efeefd;
  box-sizing: border-box;
}

.ask-drawer__recovery-query {
  margin: 0 0 0.55rem;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ask-muted);
  line-height: 1.4;
}

.ask-drawer__recovery-title {
  margin: 0 0 0.45rem;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ask-headline);
}

.ask-drawer__recovery-copy {
  margin: 0 0 0.75rem;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ask-ink);
}

.ask-drawer__recovery-exit {
  display: inline-block;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ask-muted);
  text-decoration: underline;
  text-decoration-color: rgba(90, 90, 222, 0.28);
  text-underline-offset: 0.16em;
  cursor: pointer;
}

.ask-drawer__recovery-exit:hover,
.ask-drawer__recovery-exit:focus-visible {
  color: var(--ask-accent);
}

.ask-drawer__recovery-exit:focus-visible {
  outline: 2px solid var(--ask-accent);
  outline-offset: 2px;
}

.ask-conv__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.7rem 0 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.ask-conv__actions-spacer {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}

.ask-conv__actions::before {
  content: 'More to explore below ↓';
  position: absolute;
  right: var(--ask-conv-inset-x);
  bottom: calc(var(--ask-conv-inset-y-bottom) + 2.25rem);
  z-index: 1;
  opacity: 0;
  transform: translateY(0.2rem);
  pointer-events: none;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ask-headline);
  transition:
    opacity 180ms var(--ask-cttc-ease),
    transform 180ms var(--ask-cttc-ease);
}

.ask-conv__card.is-depth-added-cue .ask-conv__actions::before {
  opacity: 1;
  transform: translateY(0);
}

.ask-conv__actions--stacked {
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
}

.ask-conv__context-action {
  padding: 0.65rem 0 0.2rem;
  border-top: 2px solid rgba(8, 45, 68, 0.2);
}

.ask-conv__context-action-link {
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ask-headline);
  text-decoration: none;
}

.ask-conv__context-action-link:hover,
.ask-conv__context-action-link:focus-visible {
  color: var(--ask-accent);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.ask-conv__actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.ask-conv__mode-exit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: auto;
  margin: 0;
  padding: 0.28rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  color: rgba(1, 38, 65, 0.58);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.55);
  transition:
    background var(--ask-cttc-micro) var(--ask-cttc-ease),
    border-color var(--ask-cttc-micro) var(--ask-cttc-ease),
    color var(--ask-cttc-micro) var(--ask-cttc-ease),
    box-shadow var(--ask-cttc-micro) var(--ask-cttc-ease);
}

.ask-conv__mode-exit:hover,
.ask-conv__mode-exit:focus-visible {
  border-color: rgba(26, 24, 20, 0.08);
  background: #fff;
  color: var(--ask-headline);
  box-shadow: 0 1px 2px rgba(26, 24, 20, 0.04);
}

.ask-conv__mode-exit:focus-visible {
  outline: 2px solid var(--ask-accent);
  outline-offset: 2px;
}

.ask-drawer__noresult-title {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ask-headline);
  margin: 0 0 0.5rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.ask-drawer__noresult-copy {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ask-muted);
  margin: 0 0 0.75rem;
}

.ask-drawer__email-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 0.45rem;
  border: 1px solid var(--ask-accent);
  background: var(--ask-accent);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 0.75rem;
  box-sizing: border-box;
}

.ask-drawer__email-btn:hover {
  background: #4a4ac8;
}

.ask-drawer__email-btn:focus-visible {
  outline: 2px solid var(--ask-headline);
  outline-offset: 2px;
}

/* ===== Views ===== */
.ask-drawer__view[hidden] {
  display: none !important;
}

/* ===== Mobile bottom sheet — matches the site's 640px nav breakpoint ===== */
@media (max-width: 639px) {
  .exec-nav__grid {
    display: block;
  }

  .exec-nav__start {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
  }

  .exec-nav__mobile-toggle {
    margin-left: auto;
  }

  .atelier-nav__inner {
    align-items: center;
    padding-right: 1.5rem;
  }

  .atelier-nav__start {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    padding: 1rem 0 1rem 1.5rem;
  }

  .ask-drawer {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: auto;
  }

  .ask-drawer__column {
    top: auto;
    bottom: 0;
    max-height: min(78vh, 640px);
    /* Bottom sheet: flush to left/right/bottom, rounded top only */
    border-radius: 1.25rem 1.25rem 0 0;
  }

  .ask-drawer.is-open .ask-drawer__shade {
    max-height: min(78vh, 640px);
  }

  .ask-drawer__narrative.is-compact .ask-drawer__narrative-copy {
    max-height: 0;
  }

  .ask-drawer[data-session-mode='satellite'].is-open .ask-drawer__scroll {
    max-height: min(38vh, 140px);
  }

  .ask-satellite__viewing {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ask-drawer__shade,
  .ask-drawer__results-shade,
  .ask-drawer__headline-bar,
  .ask-drawer__headline-tooltip,
  .ask-drawer__toggle-icon,
  .ask-drawer,
  .ask-drawer__question-bar,
  .ask-result,
  .ask-result__panel,
  .ask-drawer__focused-surface,
  .ask-drawer__focused-section,
  .ask-drawer__results-surface,
  .ask-drawer__narrative-copy,
  .exec-nav__grid,
  .ask-result__chevron,
  .ask-result__row {
    transition: none;
    animation: none;
  }

  .ask-page-beacon.is-pulse .ask-page-beacon__nob,
  .ask-page-beacon.is-pulse .ask-page-beacon__spine {
    animation: none;
    opacity: 1;
  }

  .ask-page-beacon.is-pulse .ask-page-beacon__nob {
    box-shadow: 0 0 0 2px rgba(90, 90, 222, 0.35);
  }
}

.ask-drawer__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Inquiry workbench (Perplexity-inspired module) ===== */
.ask-drawer__inquiry,
.ask-drawer__composer {
  flex: 0 0 auto;
  padding: 0.1rem var(--ask-panel-pad-right) 0.2rem var(--ask-panel-pad-left);
  background: var(--ask-paper);
  border-bottom: 1px solid transparent;
}

.ask-drawer[data-view='entry'] .ask-drawer__inquiry,
.ask-drawer[data-drawer-experience='result'] .ask-drawer__inquiry {
  padding-bottom: 0.1rem;
}

.ask-inquiry {
  margin: 0;
}

.ask-inquiry__module {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0.65rem 0.7rem 0.5rem;
  border: 1px solid #d8d2c6;
  border-radius: 1rem;
  background: #fff;
  box-sizing: border-box;
  box-shadow:
    0 1px 2px rgba(26, 24, 20, 0.04),
    0 6px 16px rgba(26, 24, 20, 0.05);
  height: var(--ask-composer-height, var(--ask-query-size-default));
  min-height: var(--ask-composer-height, var(--ask-query-size-default));
  max-height: var(--ask-query-size-six);
  transition:
    border-color var(--ask-cttc-micro) var(--ask-cttc-ease),
    box-shadow var(--ask-cttc-micro) var(--ask-cttc-ease),
    height var(--ask-query-resize) var(--ask-query-ease),
    min-height var(--ask-query-resize) var(--ask-query-ease),
    padding var(--ask-query-resize) var(--ask-query-ease),
    border-radius var(--ask-cttc-radius) var(--ask-cttc-ease);
}

.ask-inquiry__module[data-composer-state='default'] {
  height: var(--ask-query-size-default);
  min-height: var(--ask-query-size-default);
  max-height: var(--ask-query-size-default);
  border-radius: 1rem;
}

.ask-inquiry__module[data-composer-state='expanded'] {
  height: var(--ask-composer-height, var(--ask-query-size-six));
  min-height: var(--ask-composer-height, var(--ask-query-size-six));
  max-height: var(--ask-query-size-six);
  padding-bottom: 0.45rem;
  border-radius: 1.125rem;
}

.ask-inquiry__module[data-composer-state='collapsed'] {
  align-items: flex-start;
  height: var(--ask-query-size-single);
  min-height: var(--ask-query-size-single);
  max-height: var(--ask-query-size-single);
  padding: 0.65rem 0.7rem 0.5rem;
  border-radius: 999px;
}

.ask-inquiry__module[data-composer-state='collapsed'] {
  align-items: flex-start;
  padding: 0.65rem 0.7rem 0.5rem;
}

.ask-inquiry__module[data-composer-state='collapsed'] .ask-inquiry__field,
.ask-inquiry__module[data-composer-state='collapsed'] .ask-drawer__input {
  flex: 1 1 auto;
  align-self: flex-start;
  width: auto;
  padding: 0.05rem 4.25rem 0 0.1rem;
}

.ask-inquiry__module[data-composer-state='collapsed'] .ask-inquiry__toolbar {
  left: auto;
  width: auto;
}

.ask-drawer.is-cttc-motion .ask-drawer__scroll {
  overflow-y: hidden;
}

.ask-inquiry__module:focus-within,
.ask-inquiry__module.is-editing {
  border-color: #c4bdb0;
  box-shadow:
    0 1px 2px rgba(26, 24, 20, 0.04),
    0 8px 18px rgba(26, 24, 20, 0.07);
}

.ask-drawer__inquiry .ask-drawer__query-display {
  display: none !important;
}

.ask-drawer__inquiry .ask-inquiry__field,
.ask-drawer__inquiry .ask-drawer__input-wrap .ask-drawer__input,
.ask-drawer__inquiry .ask-drawer__input-wrap:not(.has-query):not(.is-editing) .ask-drawer__input,
.ask-drawer__inquiry .ask-drawer__input-wrap.has-query:not(.is-editing) .ask-drawer__input,
.ask-drawer__inquiry .ask-drawer__input-wrap.is-editing .ask-drawer__input {
  display: block;
  position: static;
  inset: auto;
  width: 100%;
  flex: 0 0 auto;
  align-self: flex-start;
  min-height: 0;
  max-height: none;
  height: var(--ask-composer-field-height, var(--ask-query-field-default));
  margin: 0;
  padding: 0.05rem 0.1rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  resize: none;
  overflow-y: hidden;
  transition:
    height var(--ask-query-resize) var(--ask-query-ease),
    max-height var(--ask-query-resize) var(--ask-query-ease),
    padding var(--ask-query-resize) var(--ask-query-ease);
  opacity: 1;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ask-ink);
  box-sizing: border-box;
}

.ask-inquiry__field:focus,
.ask-inquiry__field:focus-visible {
  outline: none;
}

.ask-inquiry__module.is-query-resizing .ask-inquiry__field,
.ask-inquiry__module.is-query-resizing .ask-drawer__input,
.ask-inquiry__module.is-query-resizing .ask-inquiry__field,
.ask-inquiry__module.is-query-resizing .ask-drawer__input,
.ask-inquiry__module.is-query-caret-hidden .ask-inquiry__field,
.ask-inquiry__module.is-query-caret-hidden .ask-drawer__input {
  caret-color: transparent;
}

.ask-inquiry__field::placeholder {
  color: #9a958c;
  font-style: italic;
}

.ask-inquiry__ph {
  position: absolute;
  left: 0.8rem;
  right: 4.4rem;
  top: 0.7rem;
  height: 1.45em;
  overflow: hidden;
  pointer-events: none;
  color: #9a958c;
  font-size: 14px;
  font-style: italic;
  line-height: 1.45;
  opacity: 1;
  visibility: visible;
  transition:
    opacity var(--ask-cttc-micro) var(--ask-cttc-ease),
    visibility var(--ask-cttc-micro) var(--ask-cttc-ease);
}

.ask-inquiry__ph[hidden] {
  display: block !important;
  opacity: 0;
  visibility: hidden;
}

.ask-inquiry__ph-current {
  display: block;
  opacity: 0;
  transition: opacity var(--ask-cttc-micro) var(--ask-cttc-ease);
}

.ask-inquiry__ph-current.is-in {
  opacity: 1;
}

.ask-drawer[data-drawer-experience='result'] .ask-inquiry__ph {
  left: 0.85rem;
  top: 0.72rem;
}

.ask-inquiry__module[data-composer-state='expanded'] {
  border-radius: 1.125rem;
  padding-bottom: 0.45rem;
}

/*
 * Expanded long-input: textarea is the scroll viewport; toolbar is a
 * reserved action zone below it. Rail lives only in the viewport.
 */
.ask-inquiry__module[data-composer-state='expanded'] .ask-inquiry__field,
.ask-inquiry__module[data-composer-state='expanded'] .ask-drawer__input {
  width: 100%;
  max-width: none;
  padding: 0.2rem 0.95rem 0.35rem 0.1rem;
  height: var(--ask-composer-field-height, var(--ask-query-field-six));
  max-height: var(--ask-composer-field-height, var(--ask-query-field-six));
  box-sizing: border-box;
}

.ask-inquiry__module[data-composer-state='expanded'] .ask-inquiry__toolbar {
  justify-content: flex-end;
}

.ask-inquiry__scroll-rail {
  display: none;
  pointer-events: none;
}

.ask-inquiry__module[data-composer-state='expanded'] {
  --ask-query-rail-w: 1.2px;
  --ask-query-rail-right: 0.78rem;
  /* Thumb overhangs the rail equally on both sides, so it stays centered. */
  --ask-query-thumb-bleed: 1.5px;
  /* Clearance between thumb ends and the rail cap dots. */
  --ask-query-thumb-gap: 4px;
  border-radius: 1.125rem;
}

.ask-inquiry__module[data-composer-state='expanded'].has-query-scroll .ask-inquiry__scroll-rail {
  display: block;
  position: absolute;
  top: 0.7rem;
  right: var(--ask-query-rail-right);
  bottom: calc(0.45rem + 33px + 0.4rem);
  width: var(--ask-query-rail-w);
  border-radius: 999px;
  background: rgba(26, 24, 20, 0.1);
}

/* Thumb is a child of the rail, so it shares the line's exact center. */
.ask-inquiry__module[data-composer-state='expanded'].has-query-scroll .ask-inquiry__scroll-thumb {
  position: absolute;
  top: 0;
  left: calc(var(--ask-query-thumb-bleed) * -1);
  width: calc(100% + var(--ask-query-thumb-bleed) * 2);
  height: 0;
  border-radius: 999px;
  background: rgba(26, 24, 20, 0.42);
}

.ask-inquiry__module[data-composer-state='expanded'].has-query-scroll .ask-inquiry__scroll-rail::before,
.ask-inquiry__module[data-composer-state='expanded'].has-query-scroll .ask-inquiry__scroll-rail::after {
  content: '';
  position: absolute;
  left: 50%;
  width: calc(var(--ask-query-rail-w) + 2px);
  height: calc(var(--ask-query-rail-w) + 2px);
  margin-left: calc((var(--ask-query-rail-w) + 2px) / -2);
  border-radius: 999px;
  background: rgba(26, 24, 20, 0.18);
}

.ask-inquiry__module[data-composer-state='expanded'].has-query-scroll .ask-inquiry__scroll-rail::before {
  top: -2px;
}

.ask-inquiry__module[data-composer-state='expanded'].has-query-scroll .ask-inquiry__scroll-rail::after {
  bottom: -2px;
}

/*
 * Native scrollbar is fully hidden on the long-input field. Setting
 * scrollbar-width/-color here would disable the ::-webkit-scrollbar rules and
 * hand macOS back an 11px gutter, which is what pushed the thumb off the rail.
 */
.ask-inquiry__module[data-composer-state='expanded'] .ask-inquiry__field,
.ask-inquiry__module[data-composer-state='expanded'] .ask-drawer__input {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ask-inquiry__module[data-composer-state='expanded'] .ask-inquiry__field::-webkit-scrollbar,
.ask-inquiry__module[data-composer-state='expanded'] .ask-drawer__input::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.ask-inquiry__toolbar {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0;
  flex-shrink: 0;
  min-height: 33px;
}

.ask-inquiry__tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
  height: 33px;
  max-width: 14rem;
  padding: 0 0.65rem 0 0.5rem;
  border: 1px solid #d4cec3;
  border-radius: 999px;
  background: #fff;
  color: var(--ask-headline);
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  transform: translateY(0);
  transition:
    opacity var(--ask-cttc-tool-fade) var(--ask-motion-ease),
    transform var(--ask-cttc-tool-fade) var(--ask-motion-ease),
    border-color var(--ask-cttc-micro) var(--ask-cttc-ease),
    color var(--ask-cttc-micro) var(--ask-cttc-ease),
    background var(--ask-cttc-micro) var(--ask-cttc-ease);
  box-sizing: border-box;
}

/* Docked: collapse the tool in place. Max-width only transitions while docking —
   entry restore never animates max-width (avoids upper-left ooze). */
.ask-drawer[data-drawer-experience='result'] .ask-inquiry__module .ask-inquiry__tool:not([data-inquiry='reset']) {
  opacity: 0;
  pointer-events: none;
}

.ask-drawer[data-drawer-experience='result'] .ask-inquiry__module .ask-inquiry__tool:not([data-inquiry='reset']) {
  max-width: 0;
  padding-left: 0;
  padding-right: 0;
  margin: 0;
  border-width: 0;
  transition:
    opacity var(--ask-cttc-tool-fade) var(--ask-motion-ease),
    max-width var(--ask-cttc-compress) var(--ask-cttc-ease-in),
    padding var(--ask-cttc-compress) var(--ask-cttc-ease-in),
    border-color var(--ask-cttc-micro) var(--ask-cttc-ease);
}

/* Retired JD-mode toolbar control. */
.ask-inquiry__tool[data-inquiry='role'],
.ask-inquiry__tool[data-inquiry='reset'] {
  display: none !important;
}

/* Entry restore: settle shell first, then fade the pill up a few px — no travel from corner. */
.ask-drawer[data-drawer-experience='explore'] .ask-inquiry__tool[data-inquiry='role'] {
  max-width: 14rem;
  padding-left: 0.5rem;
  padding-right: 0.65rem;
  border-width: 1px;
  transition:
    opacity var(--ask-cttc-tool-fade) var(--ask-motion-ease),
    transform var(--ask-cttc-tool-fade) var(--ask-motion-ease),
    border-color var(--ask-cttc-micro) var(--ask-cttc-ease),
    color var(--ask-cttc-micro) var(--ask-cttc-ease),
    background var(--ask-cttc-micro) var(--ask-cttc-ease);
}

.ask-drawer[data-drawer-experience='explore'].is-tool-reveal-pending .ask-inquiry__tool[data-inquiry='role'] {
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
}

.ask-inquiry__tool:hover {
  border-color: var(--ask-accent-line);
  color: var(--ask-accent);
  background: #fff;
}

.ask-inquiry__tool:focus-visible {
  outline: 2px solid var(--ask-accent);
  outline-offset: 2px;
}

.ask-inquiry__tool-icon {
  display: block;
  width: 1.512rem;
  height: 1.512rem;
  flex-shrink: 0;
  color: #c8c8c8;
}

.ask-inquiry__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.ask-inquiry__icon,
.ask-inquiry__send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.ask-inquiry__icon {
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ask-muted);
}

.ask-inquiry__icon:hover {
  border-color: var(--ask-border);
  color: var(--ask-headline);
  background: #fff;
}

.ask-inquiry__icon:focus-visible,
.ask-inquiry__send:focus-visible {
  outline: 2px solid var(--ask-accent);
  outline-offset: 2px;
}

.ask-inquiry__icon-svg,
.ask-inquiry__icon-img,
.ask-inquiry__send-icon {
  display: block;
  width: 0.92rem;
  height: 0.92rem;
}

.ask-inquiry__icon-img {
  width: 1.288rem;
  height: 1.288rem;
  object-fit: contain;
  opacity: 0.2;
}

.ask-inquiry__send {
  width: 1.7rem;
  height: 1.7rem;
  border: 0;
  border-radius: 999px;
  background: var(--ask-headline);
  color: #fff;
}

.ask-inquiry__send:hover:not(:disabled) {
  background: #023656;
}

.ask-inquiry__send:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: var(--ask-headline);
  color: #fff;
}

.ask-inquiry__module.is-analyzing .ask-inquiry__send:disabled {
  opacity: 0.9;
  cursor: wait;
}

.ask-inquiry__send-busy {
  animation: ask-send-spin 0.75s linear infinite;
  transform-origin: 50% 50%;
}

@keyframes ask-send-spin {
  to {
    transform: rotate(360deg);
  }
}

.ask-inquiry__submit-status {
  margin: 0.4rem 0 0;
  padding: 0 0.35rem;
  font-size: 12px;
  line-height: 1.35;
  color: var(--ask-muted);
  letter-spacing: 0.01em;
}

.ask-inquiry__submit-status[hidden] {
  display: none !important;
}

.ask-inquiry__jd-prompt {
  margin: 0.4rem 0 0;
  padding: 0 0.15rem;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ask-muted);
}

.ask-inquiry__jd-prompt[hidden] {
  display: none;
}

.ask-drawer__inquiry .ask-inquiry__module[data-composer-state='default'] .ask-inquiry__field,
.ask-drawer__inquiry .ask-inquiry__module[data-composer-state='default'] .ask-drawer__input {
  flex: 0 0 auto;
  height: var(--ask-query-field-default);
  max-height: var(--ask-query-field-default);
  overflow-y: hidden;
}

.ask-drawer__inquiry .ask-inquiry__module[data-composer-state='expanded'] .ask-inquiry__field,
.ask-drawer__inquiry .ask-inquiry__module[data-composer-state='expanded'] .ask-drawer__input {
  flex: 0 0 auto;
  height: var(--ask-composer-field-height, var(--ask-query-field-six));
  max-height: var(--ask-composer-field-height, var(--ask-query-field-six));
  overflow-y: auto;
}

.ask-drawer__inquiry .ask-inquiry__module[data-composer-state='collapsed'] .ask-inquiry__field,
.ask-drawer__inquiry .ask-inquiry__module[data-composer-state='collapsed'] .ask-drawer__input {
  flex: 0 0 auto;
  height: var(--ask-query-field-single);
  max-height: var(--ask-query-field-single);
  overflow-y: hidden;
}

.ask-drawer__scroll-fade {
  bottom: 0;
}

.ask-conv__example,
.ask-conv__role-invite,
.ask-conv__question,
.ask-conv__pivot,
.ask-conv__sample,
.ask-conv__site-link {
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.ask-conv__example {
  display: block;
  margin: 0.15rem 0 0.85rem;
  padding: 0;
  border: 0;
  background: none;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ask-headline);
  text-decoration: underline;
  text-decoration-color: rgba(90, 90, 222, 0.35);
  text-underline-offset: 0.18em;
}

.ask-conv__example:hover {
  color: var(--ask-accent);
}

.ask-conv__role-invite {
  display: block;
  margin: 0 0 1.1rem;
  padding: 0;
  border: 0;
  background: none;
  font-size: 11px;
  line-height: 1.45;
  color: var(--ask-muted);
}

.ask-conv__role-invite:hover {
  color: var(--ask-headline);
}

.ask-conv {
  padding: 0 0 0.85rem;
  height: auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  align-self: stretch;
  box-sizing: border-box;
}

#askViewConversation {
  height: auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.ask-conv__shade {
  display: grid;
  grid-template-rows: 0fr;
  align-content: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  transition: grid-template-rows var(--ask-cttc-shade) var(--ask-cttc-ease-resize);
}

.ask-conv.is-revealed .ask-conv__shade {
  grid-template-rows: 1fr;
}

.ask-conv.is-replace-pending .ask-conv__shade {
  grid-template-rows: 0fr;
  transition-duration: var(--ask-cttc-collapse);
}

.ask-conv.is-receding .ask-conv__shade {
  grid-template-rows: 0fr;
  transition-duration: var(--ask-cttc-collapse);
}

.ask-conv__card.is-root-content-receding {
  pointer-events: none;
}

.ask-conv__card.is-root-content-receding .ask-conv__form {
  opacity: 0;
  transform: translateY(-3px);
}

.ask-drawer[data-drawer-experience='result'] .ask-drawer__starters-host,
.ask-drawer[data-drawer-experience='result'] .ask-drawer__entry-lead,
.ask-drawer[data-drawer-experience='result'] .ask-drawer__about {
  display: none !important;
}

.ask-drawer[data-drawer-experience='explore'] .ask-drawer__starters-host,
.ask-drawer[data-drawer-experience='explore'] .ask-drawer__entry-lead,
.ask-drawer[data-drawer-experience='explore'] .ask-drawer__about {
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity var(--ask-cttc-micro) var(--ask-cttc-ease),
    transform var(--ask-cttc-open) var(--ask-cttc-ease);
}

.ask-drawer[data-drawer-experience='explore'].is-explore-ready .ask-drawer__starters-host,
.ask-drawer[data-drawer-experience='explore'].is-explore-ready .ask-drawer__entry-lead,
.ask-drawer[data-drawer-experience='explore'].is-explore-ready .ask-drawer__about {
  opacity: 1;
  transform: none;
}

.ask-drawer[data-drawer-experience='explore'].is-explore-ready .ask-drawer__about {
  transition-delay: 40ms;
}

.ask-drawer[data-drawer-experience='explore'].is-explore-ready .ask-drawer__starters-host {
  transition-delay: 70ms;
}

.ask-conv__shade-inner {
  min-height: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.ask-conv__stack {
  display: flex;
  flex-direction: column;
  gap: var(--ask-conv-stack-gap);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.ask-conv__turn {
  background: #efeefd;
  border-radius: var(--ask-conv-radius);
  overflow: hidden;
  box-sizing: border-box;
  height: auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  align-self: stretch;
  transform: translateY(0);
  transition:
    border-radius var(--ask-cttc-stripe-collapse) var(--ask-cttc-ease),
    opacity var(--ask-cttc-micro) var(--ask-cttc-ease),
    transform var(--ask-cttc-open) var(--ask-cttc-ease);
}

.ask-conv__turn.is-stripe {
  border-radius: var(--ask-conv-stripe-radius);
}

.ask-conv__turn.is-older {
  opacity: 0.72;
}

.ask-conv__turn.is-older:hover,
.ask-conv__turn.is-older:focus-within {
  opacity: 1;
}

.ask-conv__stripe {
  display: block;
  width: 100%;
  height: 9px;
  margin: 0;
  padding: 0 var(--ask-conv-inset-x);
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--ask-headline);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  transition:
    height var(--ask-cttc-stripe-peek) var(--ask-cttc-ease),
    opacity var(--ask-cttc-stripe-peek) var(--ask-cttc-ease);
}

.ask-conv__turn.is-older .ask-conv__stripe {
  height: 5px;
}

.ask-conv__turn.is-active .ask-conv__stripe {
  height: 0;
  padding: 0 var(--ask-conv-inset-x);
  opacity: 0;
  pointer-events: none;
}

.ask-conv__stripe-label {
  display: block;
  opacity: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 30px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  transition: opacity var(--ask-cttc-stripe-peek) var(--ask-cttc-ease);
}

@media (hover: hover) {
  .ask-conv__turn.is-stripe .ask-conv__stripe:hover,
  .ask-conv__turn.is-stripe .ask-conv__stripe:focus-visible {
    height: 30px;
  }

  .ask-conv__turn.is-stripe .ask-conv__stripe:hover .ask-conv__stripe-label,
  .ask-conv__turn.is-stripe .ask-conv__stripe:focus-visible .ask-conv__stripe-label {
    opacity: 1;
  }
}

.ask-conv__turn.is-stripe .ask-conv__stripe:focus-visible {
  height: 30px;
  outline: 2px solid var(--ask-accent);
  outline-offset: 2px;
}

.ask-conv__turn.is-stripe .ask-conv__stripe:focus-visible .ask-conv__stripe-label {
  opacity: 1;
}

.ask-conv__turn-body {
  display: grid;
  grid-template-rows: 0fr;
  align-content: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
  transition: grid-template-rows var(--ask-cttc-stripe-collapse) var(--ask-cttc-ease-resize);
}

.ask-conv__turn.is-active .ask-conv__turn-body {
  grid-template-rows: 1fr;
  transition-duration: var(--ask-cttc-stripe-expand);
}

.ask-conv__turn-body-inner {
  min-height: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.ask-conv__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 0 0 auto;
  height: auto;
  max-height: var(--ask-conv-card-max);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: var(--ask-conv-inset-y-top) var(--ask-conv-inset-x) var(--ask-conv-inset-y-bottom);
  border-radius: var(--ask-conv-radius);
  background: #efeefd;
  box-sizing: border-box;
  transform: translateY(0);
  transition:
    opacity var(--ask-cttc-micro) var(--ask-cttc-ease),
    transform var(--ask-cttc-open) var(--ask-cttc-ease),
    background var(--ask-cttc-micro) var(--ask-cttc-ease);
}

.ask-conv__stack .ask-conv__card {
  background: transparent;
}

.ask-conv__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  margin-right: -10px;
  padding-right: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(8, 45, 68, 0.26) transparent;
  -webkit-overflow-scrolling: touch;
}

.ask-conv__content:focus-visible {
  outline: 1px solid rgba(90, 90, 222, 0.42);
  outline-offset: -1px;
}

.ask-conv__content::-webkit-scrollbar {
  width: 4px;
}

.ask-conv__content::-webkit-scrollbar-track {
  background: transparent;
}

.ask-conv__content::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(8, 45, 68, 0.26);
}

.ask-drawer.is-inquiry-composing .ask-conv__card,
.ask-drawer.is-inquiry-composing .ask-conv__turn,
.ask-conv.is-receding .ask-conv__card,
.ask-conv.is-receding .ask-conv__turn {
  opacity: 0.42;
}

/*
 * New-root retirement: the old result yields to the field without collapsing
 * to empty Explore. Stronger than composing fade; height stays in flow.
 */
.ask-drawer.is-root-retiring .ask-conv__card,
.ask-drawer.is-root-retiring .ask-conv__turn,
.ask-conv.is-root-retiring .ask-conv__card,
.ask-conv.is-root-retiring .ask-conv__turn {
  opacity: 0.16;
  transform: translateY(-4px);
  pointer-events: none;
}

.ask-drawer.is-inquiry-composing .ask-inquiry__module,
.ask-drawer.is-inquiry-engaged .ask-inquiry__module {
  border-color: #c4bdb0;
  box-shadow:
    0 1px 2px rgba(26, 24, 20, 0.05),
    0 8px 18px rgba(26, 24, 20, 0.08);
}

.ask-conv__history {
  display: none;
}

.ask-conv__q {
  margin: 0 0 0.7rem;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ask-headline);
  font-weight: 500;
}

.ask-conv__short-label {
  margin: 0 0 0.35rem;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ask-muted);
}

.ask-conv__distilled {
  margin: 0 0 0.95rem;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ask-headline);
  font-weight: 600;
}

.ask-conv__concept {
  display: inline;
  margin: 0;
  padding: 0.04em 0.14em;
  border: 0;
  border-radius: 0.22em;
  background-color: transparent;
  box-shadow: none;
  font-style: normal;
  font-weight: 600;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: var(--ask-headline);
  cursor: pointer;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition: background-color 300ms var(--ask-cttc-ease);
}

.ask-conv__em {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  font-style: normal;
  font-weight: 600;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  cursor: inherit;
}

.ask-conv__card .ask-conv__concept:hover,
.ask-conv__card .ask-conv__concept:focus-visible,
.ask-conv__card .ask-conv__concept.is-peeking {
  background-color: rgba(164, 162, 214, 0.38);
}

.ask-conv__concept:focus-visible {
  outline: none;
}

.ask-conv__pivots-wrap {
  margin-top: 1rem;
}

.ask-conv__pivots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.ask-conv__pivot {
  margin: 0;
  padding: 0.22rem 0.5rem;
  border: 1px solid rgba(26, 26, 26, 0.16);
  border-radius: 0.28rem;
  background: #fff;
  font-size: 11px;
  line-height: 1.3;
  color: var(--ask-headline);
}

.ask-conv__pivot:hover {
  border-color: rgba(90, 90, 222, 0.45);
  color: var(--ask-accent);
}

.ask-conv__questions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid transparent;
}

.ask-conv__questions.is-ruled {
  border-bottom-color: rgba(26, 24, 20, 0.08);
}

.ask-conv__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 2.35rem;
  margin: 0;
  padding: 0.42rem 0;
  border: 0;
  border-top: 1px solid transparent;
  background: none;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
  color: var(--ask-headline);
  cursor: pointer;
}

.ask-conv__question + .ask-conv__question {
  border-top-color: rgba(26, 24, 20, 0.08);
}

.ask-conv__question-label {
  flex: 1 1 auto;
  min-width: 0;
}

.ask-conv__question-arrow {
  flex: 0 0 0.9rem;
  width: 0.9rem;
  text-align: right;
  color: var(--ask-muted);
  font-size: 12px;
  line-height: 1;
}

.ask-conv__question:hover {
  color: var(--ask-accent);
}

.ask-conv__question:hover .ask-conv__question-arrow {
  color: var(--ask-accent);
}

.ask-conv__proof {
  margin-top: 1.2rem;
  padding: 0.85rem 0 0.2rem;
  border-top: 1px solid var(--ask-border);
}

.ask-conv__proof-k {
  margin: 0 0 0.65rem;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ask-muted);
}

.ask-conv__proof-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 0.65rem;
}

.ask-conv__proof-col {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ask-conv__proof-col:last-child {
  text-align: right;
  align-items: flex-end;
}

.ask-conv__proof-metric {
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--ask-headline);
}

.ask-conv__proof-unit {
  font-size: 11px;
  color: var(--ask-muted);
}

.ask-conv__proof-arrow {
  padding-bottom: 0.35rem;
  color: var(--ask-muted);
}

.ask-conv__proof-note {
  margin: 0.7rem 0 0;
  font-size: 12px;
  color: var(--ask-ink);
}

.ask-conv__related-h {
  margin: 0 0 0.35rem;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ask-muted);
}

.ask-conv__support {
  margin-top: 12px;
  padding-top: 0.42rem;
  border-top: 0;
}

.ask-conv__support-h {
  margin: 0 0 0.55rem;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ask-muted);
}

.ask-conv__support-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ask-conv__support-item {
  display: grid;
  grid-template-columns: 0.45rem 1fr;
  gap: 0.55rem;
  align-items: start;
}

.ask-conv__support-mark {
  width: 0.4rem;
  height: 0.4rem;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: rgba(90, 90, 222, 0.45);
}

.ask-conv__support-title {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ask-headline);
}

.ask-conv__support-metric {
  margin: 0.15rem 0 0;
  font-size: 16px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--ask-headline);
}

.ask-conv__support-body,
.ask-conv__support-detail {
  margin: 0.15rem 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ask-muted);
}

.ask-conv__support-rail {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.65rem;
  min-height: 0;
}

.ask-conv__eyebrow {
  margin: 0 0 0.7rem;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ask-headline);
  font-weight: 500;
}

.ask-conv__body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.ask-conv__p,
.ask-conv__clarify {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ask-ink);
}

.ask-conv__clarify {
  margin-top: 0.85rem;
  color: var(--ask-headline);
}

.ask-jd__match {
  margin: -0.35rem 0 0.7rem;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ask-headline);
}

.ask-jd__scroll {
  flex: 0 0 auto;
  min-height: 0;
  margin: 0.15rem 0 0.75rem;
  overflow: visible;
}

.ask-jd__requirements {
  display: flex;
  flex-direction: column;
  margin: 0.95rem 0 0;
}

.ask-jd__requirement {
  padding: 0.75rem 0;
  border-top: 1px solid rgba(8, 45, 68, 0.12);
}

.ask-jd__requirement-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.ask-jd__requirement-label,
.ask-jd__requirement-text {
  margin: 0;
}

.ask-jd__requirement-label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ask-headline);
}

.ask-jd__requirement-status {
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ask-muted);
}

.ask-jd__requirement--supported .ask-jd__requirement-status {
  color: var(--ask-headline);
}

.ask-jd__requirement-text {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ask-ink);
}

.ask-jd__matches {
  margin: 0.85rem 0 0;
}

.ask-jd__matches-label {
  margin: 0 0 0.2rem;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ask-muted);
  font-weight: 500;
}

.ask-jd__matches-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ask-ink);
}

.ask-jd__clarify {
  margin: 0.7rem 0 0;
}

.ask-jd__clarify-label {
  margin: 0 0 0.2rem;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ask-muted);
  font-weight: 500;
}

.ask-jd__clarify-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ask-ink);
}

.ask-jd__paste {
  margin: 0.7rem 0 0;
}

.ask-jd__paste-link {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ask-muted);
  cursor: pointer;
}

.ask-jd__paste-link:hover,
.ask-jd__paste-link:focus-visible {
  color: var(--ask-accent);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.ask-jd__cta {
  margin: 0.55rem 0 1rem;
}

.ask-jd__cta-link {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ask-muted);
  text-decoration: none;
}

.ask-jd__cta-link:hover,
.ask-jd__cta-link:focus-visible {
  color: var(--ask-accent);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.ask-jd__analysis {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0.15rem 0 0;
}

.ask-jd__analysis-block {
  margin: 0;
}

.ask-jd__analysis-label {
  margin: 0 0 0.2rem;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ask-muted);
  font-weight: 500;
}

.ask-jd__analysis-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ask-ink);
}

.ask-conv__card .ask-conv__concept {
  text-underline-offset: 0.14em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(90, 90, 222, 0.28);
}

.ask-conv__depth {
  display: grid;
  grid-template-rows: 0fr;
  flex-shrink: 0;
  overflow: hidden;
  pointer-events: none;
  transition: grid-template-rows var(--ask-cttc-expand) var(--ask-cttc-ease-resize);
}

.ask-conv__card:not(.is-expanded) .ask-conv__depth {
  transition-duration: var(--ask-cttc-depth-collapse, 260ms);
}

.ask-conv__depth-inner {
  min-height: 0;
  overflow: hidden;
}

.ask-conv__card.is-expanded .ask-conv__depth {
  grid-template-rows: 1fr;
  pointer-events: auto;
}

/* CTTC: inset expanded exploration content */
.ask-conv__card.is-expanded .ask-conv__depth-inner {
  box-sizing: border-box;
  margin: 1rem 0 0.15rem;
  padding: 0.95rem 1rem 0.95rem 1.15rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 1px 2px rgba(8, 45, 68, 0.04);
}

.ask-conv__card.is-expanded .ask-conv__depth-inner .ask-conv__invite {
  margin-top: 0;
}

.ask-conv__card.is-expanded .ask-conv__depth-inner .ask-jd__analysis {
  margin-top: 0;
}

.ask-conv__card.is-expanded .ask-conv__depth-inner .ask-conv__question,
.ask-conv__card.is-expanded .ask-conv__depth-inner .ask-jd__analysis-text,
.ask-conv__card.is-expanded .ask-conv__depth-inner .ask-conv__support-body,
.ask-conv__card.is-expanded .ask-conv__depth-inner .ask-conv__support-detail,
.ask-conv__card.is-expanded .ask-conv__depth-inner .ask-conv__support-metric,
.ask-conv__card.is-expanded .ask-conv__depth-inner .ask-conv__site-link {
  line-height: 1.8;
}

.ask-conv__card.is-expanded .ask-conv__support-h.ask-conv__form:not(.is-formed),
.ask-conv__card.is-expanded .ask-conv__support-item.ask-conv__form:not(.is-formed) {
  visibility: hidden;
}

.ask-conv__depth .ask-conv__question,
.ask-conv__depth .ask-conv__support-h,
.ask-conv__depth .ask-conv__support-item,
.ask-conv__depth .ask-jd__analysis-block {
  transition:
    opacity var(--ask-cttc-thought) var(--ask-cttc-ease),
    transform var(--ask-cttc-thought) var(--ask-cttc-ease),
    color var(--ask-cttc-micro) var(--ask-cttc-ease);
}

.ask-conv__more {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: auto;
  gap: 0.3rem;
  width: fit-content;
  margin: 0;
  padding: 0.28rem 0.62rem 0.28rem 0.7rem;
  border: 1px solid rgba(26, 24, 20, 0.08);
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  color: var(--ask-headline);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(26, 24, 20, 0.04);
}

.ask-conv__more-arrow {
  font-size: 8px;
  line-height: 1;
  color: var(--ask-muted);
}

.ask-conv__more:hover,
.ask-conv__more:focus-visible {
  border-color: rgba(26, 24, 20, 0.16);
}

.ask-conv__more:focus-visible {
  outline: 2px solid rgba(1, 38, 65, 0.42);
  outline-offset: 2px;
}

.ask-conv__invite {
  margin: 0.95rem 0 0;
  padding: 0;
}

.ask-conv__invite-label {
  margin: 0 0 0.55rem;
  font-size: 12px;
  color: var(--ask-muted);
}

.ask-conv__continues {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.ask-conv__continue {
  padding: 0;
  border: 0;
  background: none;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ask-headline);
  text-decoration: underline;
  text-decoration-color: rgba(90, 90, 222, 0.28);
  text-underline-offset: 0.16em;
}

.ask-conv__continue:hover {
  color: var(--ask-accent);
}

.ask-conv__evidence {
  margin-top: 1.15rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--ask-border);
}

.ask-conv__evidence-h {
  margin: 0 0 0.65rem;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ask-muted);
}

.ask-conv__evidence-item {
  margin: 0 0 0.7rem;
}

.ask-conv__evidence-k {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ask-headline);
}

.ask-conv__evidence-v {
  margin: 0.2rem 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ask-muted);
}

.ask-conv__site {
  margin: 1.1rem 0 0;
}

.ask-conv__site-link {
  font-size: 12px;
  color: var(--ask-muted);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.ask-conv__site-link:hover {
  color: var(--ask-accent);
}

.ask-conv__sample {
  display: inline-block;
  margin-top: 0.85rem;
  padding: 0.35rem 0;
  border: 0;
  background: none;
  font-size: 11px;
  color: var(--ask-muted);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.ask-conv__form {
  opacity: 0;
  transform: translateY(3px);
  pointer-events: none;
  transition:
    opacity var(--ask-cttc-thought) var(--ask-cttc-ease),
    transform var(--ask-cttc-thought) var(--ask-cttc-ease);
}

.ask-conv__q.ask-conv__form,
.ask-conv__eyebrow.ask-conv__form,
.ask-conv__related-h.ask-conv__form {
  transform: translateY(3px);
  transition-duration: var(--ask-cttc-headline);
}

.ask-conv__short-label.ask-conv__form {
  transform: translateY(2px);
  transition-duration: var(--ask-cttc-micro);
}

.ask-conv__distilled.ask-conv__form {
  transform: translateY(3px);
  transition-duration: var(--ask-cttc-thesis);
}

.ask-conv__thought.ask-conv__form {
  display: inline;
  transform: translateY(2px);
  transition-duration: var(--ask-cttc-thought);
}

.ask-conv__question.ask-conv__form,
.ask-conv__more.ask-conv__form,
.ask-conv__mode-exit.ask-conv__form,
.ask-conv__sample.ask-conv__form,
.ask-jd__match.ask-conv__form,
.ask-jd__matches.ask-conv__form,
.ask-jd__clarify.ask-conv__form,
.ask-jd__cta.ask-conv__form,
.ask-jd__paste.ask-conv__form,
.ask-jd__requirement.ask-conv__form,
.ask-jd__analysis-block.ask-conv__form,
.ask-conv__support-h.ask-conv__form,
.ask-conv__support-item.ask-conv__form {
  transform: translateY(3px);
  transition-duration: var(--ask-cttc-micro);
}

.ask-conv__form.is-formed {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/*
 * Expanded threaded questions are visible by state, even if a formation timer
 * is interrupted. This is deliberately scoped to depth questions only.
 */
.ask-conv__card.is-expanded
  .ask-conv__depth
  .ask-conv__question.ask-conv__form {
  position: static;
  visibility: visible;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/*
 * Formation window only. Content that has not formed yet is taken out of flow
 * so the card starts compact and grows into the result, instead of reserving
 * its finished height behind opacity 0 and reading as an empty card.
 */
.ask-conv__card.is-forming {
  position: relative;
}

.ask-conv__card.is-forming .ask-conv__form:not(.is-formed) {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  visibility: hidden;
}

/* Depth keeps its own collapse geometry when expanded — hide until then. */
.ask-conv__card.is-forming:not(.is-expanded) .ask-conv__depth .ask-conv__form:not(.is-formed) {
  position: static;
  width: auto;
  max-width: none;
  visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .ask-conv__form {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition: none;
  }

  .ask-conv__card.is-forming .ask-conv__form:not(.is-formed) {
    position: static;
    width: auto;
    max-width: none;
    visibility: visible;
  }

  .ask-inquiry__send-busy {
    animation: none;
  }

  .ask-inquiry__ph,
  .ask-inquiry__ph-current {
    opacity: 1;
    visibility: visible;
    transition: none;
  }

  .ask-drawer[data-drawer-experience='explore'] .ask-drawer__starters-host,
  .ask-drawer[data-drawer-experience='explore'] .ask-drawer__entry-lead,
  .ask-drawer[data-drawer-experience='explore'] .ask-drawer__about {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ask-inquiry__module,
  .ask-inquiry__field,
  .ask-drawer__input,
  .ask-inquiry__tool,
  .ask-inquiry__toolbar,
  .ask-conv__card,
  .ask-conv__concept,
  .ask-conv__depth,
  .ask-conv__shade,
  .ask-conv__stripe,
  .ask-conv__stripe-label,
  .ask-conv__turn,
  .ask-conv__turn-body,
  .ask-conv__depth .ask-conv__question,
  .ask-conv__depth .ask-conv__support-h,
  .ask-conv__depth .ask-conv__support-item {
    transition: none;
  }

  .ask-conv__shade,
  .ask-conv.is-receding .ask-conv__shade {
    grid-template-rows: 1fr;
  }

  .ask-conv.is-replace-pending .ask-conv__shade {
    grid-template-rows: 0fr;
  }

  .ask-conv.is-revealed .ask-conv__shade {
    grid-template-rows: 1fr;
  }

  .ask-conv__turn.is-active .ask-conv__turn-body {
    grid-template-rows: 1fr;
  }

  .ask-conv__turn.is-stripe .ask-conv__turn-body {
    grid-template-rows: 0fr;
  }

  .ask-conv__depth {
    grid-template-rows: 0fr;
  }

  .ask-conv__card.is-expanded .ask-conv__depth {
    grid-template-rows: 1fr;
  }

  .ask-conv__depth .ask-conv__question,
  .ask-conv__depth .ask-conv__support-h,
  .ask-conv__depth .ask-conv__support-item {
    opacity: 1;
    transform: none;
  }

  .ask-conv__card.is-expanded .ask-conv__support-h.ask-conv__form,
  .ask-conv__card.is-expanded .ask-conv__support-item.ask-conv__form {
    visibility: visible;
  }

  .ask-conv__card:not(.is-expanded) .ask-conv__depth .ask-conv__question,
  .ask-conv__card:not(.is-expanded) .ask-conv__depth .ask-conv__support-h,
  .ask-conv__card:not(.is-expanded) .ask-conv__depth .ask-conv__support-item {
    opacity: 0;
  }
}

/* BEGIN CTTC STATE RENDERER */
/* Collapsed means nothing from the result stack may leak through. */
.ask-drawer:not(.is-open) .ask-conv__turn,
.ask-drawer:not(.is-open) .ask-conv__card,
.ask-drawer:not(.is-open) .ask-conv__turn-body,
.ask-drawer:not(.is-open) .ask-recovery {
  visibility: hidden !important;
}

/* Processing owns the compact composer geometry. The spinner is sufficient;
   the old status tag is intentionally not part of the visible hierarchy. */
.ask-drawer__input-wrap:has(.ask-inquiry__send[aria-busy='true']) {
  --ask-composer-height: var(--ask-query-size-single) !important;
  --ask-composer-field-height: var(--ask-query-field-single) !important;
}
.ask-inquiry__status,
#askSubmitStatus {
  display: none !important;
}

/* The drawer already provides the bottom inset. Remove only this state’s
   extra conversation padding so the reset button has the same inset as the left edge. */
.ask-conv:has(.ask-conv__card--clarification) {
  padding-bottom: 0;
}

/* Editing a clarification revises the field without retiring or dimming its choices. */
.ask-drawer.is-inquiry-composing .ask-conv__turn:has(.ask-conv__card--clarification),
.ask-drawer.is-inquiry-composing .ask-conv__card--clarification {
  opacity: 1;
}

/* Clarification is a first-class neutral state, not a purple answer card. */
.ask-conv__turn:has(.ask-conv__card--clarification) {
  background: transparent;
  border: 0;
}
.ask-conv__card--clarification {
  background: var(--ask-paper) !important;
  border: 1px solid var(--ask-border);
  padding: 0.9rem 1rem 0.8rem;
}
.ask-clarify__eyebrow,
.ask-recovery__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ask-muted);
}
.ask-clarify__copy,
.ask-clarify__prompt,
.ask-recovery__title {
  margin: 0;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
  color: #2c2a28;
}
.ask-clarify__inline {
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ask-headline);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(90, 90, 222, 0.28);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  cursor: pointer;
}
.ask-clarify__inline:hover,
.ask-clarify__inline:focus-visible {
  color: var(--ask-accent);
  text-decoration-color: currentColor;
  outline-offset: 2px;
}
.ask-clarify__topic-title {
  margin: 1.1rem 0 0;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ask-muted);
}
.ask-clarify__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.65rem 0 0;
}
.ask-clarify__choice,
.ask-recovery__exit {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.26rem 0.62rem;
  border: 1px solid #d8d2c6;
  border-radius: 999px;
  background: #fff;
  color: var(--ask-headline);
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
}
/* Clarification topics share the default starter chip treatment. */
.ask-clarify__choice {
  box-sizing: border-box;
  min-height: 0;
  padding: 0.28rem 0.35rem;
  border-color: #ddd6c8;
  background: #f4efe6;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
}
.ask-clarify__choice:hover,
.ask-clarify__choice:focus-visible,
.ask-recovery__exit:hover,
.ask-recovery__exit:focus-visible {
  border-color: var(--ask-accent-line);
  color: var(--ask-accent);
  outline: none;
}
.ask-conv__turn:has(.ask-conv__card--clarification) .ask-clarify__exit {
  margin: 0.8rem 0 0.1rem;
  border: 1px solid #d8d2c6;
  background: #fff;
  color: var(--ask-headline);
  box-shadow: none;
}
.ask-conv__turn:has(.ask-conv__card--clarification) .ask-clarify__exit:hover,
.ask-conv__turn:has(.ask-conv__card--clarification) .ask-clarify__exit:focus-visible {
  border-color: var(--ask-accent-line);
  color: var(--ask-accent);
}

@media (max-width: 26rem) {
  .ask-clarify__choice {
    min-height: 26px;
    padding: 0.22rem 0.52rem;
    font-size: 10.5px;
  }
  .ask-clarify__choices {
    gap: 0.28rem;
  }
}

/* Unsupported is measured at full height while invisible, then revealed only
   after the tray has finished its geometry transition. Layout comes from the
   clarification recovery structure, not a second inset box. */
.ask-recovery {
  margin: 0;
  opacity: 0;
  visibility: hidden;
}
.ask-recovery.is-ready {
  opacity: 1;
  visibility: visible;
  transition: opacity 140ms var(--ask-cttc-ease);
}
@media (prefers-reduced-motion: reduce) {
  .ask-recovery.is-ready {
    transition: none;
  }
}
.ask-recovery__copy {
  margin: 0.45rem 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ask-muted);
}

/* Supported answers own their purple shell from the first visible frame.
   Formation happens before the turn receives is-active, so the forming card
   itself must paint the purple surface. */
.ask-conv__card.is-forming:not(.ask-conv__card--clarification),
.ask-conv__turn:has(.ask-conv__card.is-forming:not(.ask-conv__card--clarification)) {
  background: #efeefd !important;
}
.ask-conv__card.is-forming:not(.ask-conv__card--clarification) {
  border-radius: var(--ask-conv-radius);
}
.ask-conv__turn.is-active:not(:has(.ask-conv__card--clarification)) {
  background: #efeefd;
}
.ask-conv__turn.is-active:not(:has(.ask-conv__card--clarification)) .ask-conv__card:not(.is-forming) {
  background: transparent;
}

/* The persistent field sits in a balanced query band rather than kissing the
   drawer header; this applies equally to entry, answer, and recovery states. */
.ask-drawer__inquiry,
.ask-drawer__composer {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.ask-drawer[data-view='entry'] .ask-drawer__inquiry,
.ask-drawer[data-drawer-experience='result'] .ask-drawer__inquiry {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

/* A working native voice control is a progressive enhancement. It never
   submits a question; it only fills the existing editable field. */
.ask-inquiry__icon.is-listening,
.ask-inquiry__icon[aria-pressed='true'] {
  border-color: var(--ask-accent-line);
  background: #efeefd;
  color: var(--ask-accent);
  box-shadow: 0 0 0 3px rgba(90, 90, 222, 0.12);
}
.ask-drawer__cttc-note {
  color: var(--ask-muted);
  font-size: 10px;
  line-height: 1.4;
}

/* Collapsed submitted queries must never paint beneath the mic/send action
   lane. The field itself owns the remaining width; the toolbar owns the end. */
.ask-drawer__inquiry .ask-inquiry__module[data-composer-state='collapsed'] .ask-inquiry__field,
.ask-drawer__inquiry .ask-inquiry__module[data-composer-state='collapsed'] .ask-drawer__input {
  width: calc(100% - 5.2rem) !important;
  max-width: calc(100% - 5.2rem) !important;
  min-width: 0;
  padding-right: 0.1rem;
  overflow-x: hidden;
}

/* A collapsed submitted question is a one-line, intentionally truncated
   display. The transparent textarea remains directly above it so one click
   still focuses the real field and restores the complete editable question. */
.ask-drawer__inquiry .ask-inquiry__module[data-composer-state='collapsed']:not(.is-editing) .ask-drawer__query-display {
  display: block !important;
  position: absolute;
  top: 0.65rem;
  left: 0.8rem;
  right: 5.2rem;
  width: auto;
  min-width: 0;
  max-width: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  height: 20.3px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  pointer-events: none;
  color: var(--ask-ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
}
.ask-drawer__inquiry .ask-inquiry__module[data-composer-state='collapsed']:not(.is-editing) .ask-inquiry__field,
.ask-drawer__inquiry .ask-inquiry__module[data-composer-state='collapsed']:not(.is-editing) .ask-drawer__input {
  color: transparent !important;
  caret-color: transparent !important;
}
.ask-drawer__cttc-note .ask-drawer__about-link {
  font-size: inherit;
  line-height: inherit;
  font-weight: 600;
  color: var(--ask-headline);
  text-decoration: underline;
  text-decoration-color: rgba(90, 90, 222, 0.28);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}
/* END CTTC STATE RENDERER */
