:root {
  --search-navy: #082943;
  --search-blue: #1769a0;
  --search-blue-soft: #eaf3f9;
  --search-line: #d8e1e8;
  --search-ink: #132334;
}

html.has-search-workspace {
  background: #eef4f7;
}

body.global-search-page {
  background: #eef4f7;
  color: var(--search-ink);
}

.global-search-page::before {
  display: none;
}

.global-search-main {
  min-height: calc(100dvh - 132px);
  background: #eef4f7;
}

.global-search-shell {
  position: relative;
  z-index: 2;
  margin-top: 0;
  padding-top: 8px;
  padding-bottom: 10px;
}

.global-search-workspace {
  display: flex;
  flex-direction: column;
  height: var(--search-workspace-height, calc(100dvh - 182px));
  min-height: 320px;
  padding: 18px 24px 16px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(185, 200, 212, 0.88);
  border-top: 3px solid var(--search-blue);
  border-radius: 8px;
  box-shadow: 0 22px 54px rgba(8, 41, 67, 0.14);
}

.global-search-workspace .conversation-bar {
  min-height: 38px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e7edf1;
}

.global-search-workspace .conversation-icon-button {
  color: var(--search-navy);
}

.global-search-workspace .conversation-icon-button:hover {
  background: var(--search-blue-soft);
  border-color: #c9dfec;
}

.global-search-workspace .conversation-title {
  color: var(--search-ink);
}

.global-search-trust {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #4e6678;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.global-search-trust::before {
  width: 7px;
  height: 7px;
  content: "";
  background: #2d8b66;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(45, 139, 102, 0.11);
}

.global-search-workspace .deep-search-panel {
  margin-top: 0;
  padding-top: 12px;
}

.global-search-workspace .deep-search-top {
  background: #f7fafc;
  border-color: #dce7ee;
  box-shadow: none;
}

.global-search-workspace .deep-status {
  border-color: #bfd8e8;
  background: #eef6fb;
  color: var(--search-blue);
}

.global-search-workspace .conversation-composer.search-box.compact {
  width: min(980px, 100%);
  margin-top: 12px;
  border-color: #a9c9dc;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(8, 41, 67, 0.1);
}

.global-search-workspace .conversation-composer.search-box.compact:focus-within {
  border-color: var(--search-blue);
  box-shadow: 0 0 0 3px rgba(23, 105, 160, 0.13), 0 12px 30px rgba(8, 41, 67, 0.1);
}

.global-search-workspace .conversation-composer .conversation-send {
  background: var(--search-blue);
  box-shadow: none;
}

.global-search-workspace .conversation-composer .conversation-send:hover {
  background: #0d588c;
}

.global-search-workspace .deep-answer a,
.global-search-workspace .conversation-turn-answer a {
  color: var(--search-blue);
  text-decoration-color: rgba(23, 105, 160, 0.4);
}

.global-search-workspace .conversation-turn-retry {
  justify-self: start;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #bfd8e8;
  border-radius: 6px;
  background: #eef6fb;
  color: var(--search-blue);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.global-search-workspace .conversation-turn-retry:hover {
  border-color: #8dbdd9;
  background: #e1f0f8;
}

.global-search-workspace .conversation-turn-retry:focus-visible {
  outline: 3px solid rgba(23, 105, 160, 0.18);
  outline-offset: 2px;
}

.global-search-disclaimer {
  margin: 7px auto 0;
  color: #6a7b89;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

@media (min-width: 901px) {
  .global-search-workspace {
    --history-width: clamp(240px, 22vw, 276px);
  }

  .global-search-workspace.is-history-open {
    display: grid;
    grid-template-columns: var(--history-width) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    column-gap: 14px;
  }

  .global-search-workspace.is-history-open .conversation-history-layer {
    position: relative;
    inset: auto;
    z-index: 4;
    grid-column: 1;
    grid-row: 1 / -1;
    width: 100%;
    height: auto;
    min-height: 0;
    pointer-events: auto;
  }

  .global-search-workspace.is-history-open .conversation-history-drawer {
    height: 100%;
    min-height: 0;
    padding: 14px 10px 12px;
    background: #f8fafb;
    border: 1px solid #dce5eb;
    border-radius: 6px;
    box-shadow: none;
    animation: none;
  }

  .global-search-workspace.is-history-open .conversation-bar {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .global-search-workspace.is-history-open .deep-search-panel {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
  }

  .global-search-workspace.is-history-open .conversation-composer {
    grid-column: 2;
    grid-row: 3;
    justify-self: center;
  }
}

@media (max-width: 900px) {
  .global-search-workspace {
    padding: 14px 16px 12px;
  }
}

@media (max-width: 720px) {
  .global-search-main {
    min-height: calc(100dvh - 76px);
  }

  .global-search-shell {
    width: calc(100% - 20px);
    margin-top: 0;
    padding-top: 6px;
  }

  .global-search-workspace {
    padding: 11px 10px 10px;
    border-radius: 6px;
  }

  .global-search-workspace .conversation-bar {
    padding: 0 2px 9px;
  }

  .global-search-trust {
    width: 8px;
    overflow: hidden;
    color: transparent;
  }

  .global-search-workspace .conversation-composer.search-box.compact {
    padding-left: 12px;
    border-radius: 7px;
  }

  .global-search-disclaimer {
    padding-inline: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .global-search-page *,
  .global-search-page *::before,
  .global-search-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
