:root {
  color-scheme: light;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color: #1d1d1f;
  background: #ddd9cd;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #dedbcf 0%, #d7d3c7 100%);
}

button,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.landing-page {
  min-height: 100vh;
  padding: 56px 22px;
  background: linear-gradient(180deg, #dedbcf 0%, #d7d3c7 100%);
  color: #1d1d1f;
}

.landing-page__shell {
  width: min(100%, 880px);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: 24px;
  background: rgba(252, 251, 249, 0.94);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.landing-page__header {
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(29, 29, 31, 0.08);
}

.landing-page__eyebrow,
.landing-page__footer,
.landing-page__prototype p {
  color: #6f6a62;
}

.landing-page__eyebrow {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: uppercase;
}

.landing-page h1,
.landing-page h2,
.landing-page h3,
.landing-page p {
  margin-top: 0;
}

.landing-page h1 {
  margin-bottom: 0;
  font-size: clamp(2.35rem, 6vw, 4.5rem);
  line-height: 0.98;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.landing-page h2 {
  margin-bottom: 14px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #4b4741;
}

.landing-page h3 {
  margin-bottom: 10px;
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
  line-height: 1.3;
  font-weight: 650;
  color: #1d1d1f;
}

.landing-page p {
  margin-bottom: 0;
  color: #4d4a45;
  line-height: 1.68;
}

.landing-page__section {
  padding: 34px 0;
  border-bottom: 1px solid rgba(29, 29, 31, 0.08);
}

.landing-page__pain-list {
  display: grid;
  gap: 18px;
}

.landing-page__pain-point {
  padding: 22px;
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: 16px;
  background: #fff;
}

.landing-page__pain-point p + p {
  margin-top: 14px;
}

.landing-page__pain-point strong {
  color: #292723;
  font-weight: 650;
}

.landing-page__prototype {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
}

.landing-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.landing-page__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(29, 29, 31, 0.12);
  border-radius: 10px;
  background: #1d1d1f;
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.landing-page__link:hover,
.landing-page__link:focus-visible {
  transform: translateY(-1px);
  background: #343331;
  border-color: rgba(29, 29, 31, 0.2);
}

.landing-page__footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  font-size: 0.95rem;
}

.landing-page__footer a {
  color: #3f3b35;
  text-decoration-color: rgba(63, 59, 53, 0.34);
  text-underline-offset: 3px;
}

.landing-page__footer p {
  color: inherit;
}

.layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: calc(100vh - 28px);
  margin: 14px;
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.layout--source-document-open {
  grid-template-columns: 56px minmax(520px, 1fr);
  padding-right: clamp(560px, 31vw, 640px);
}

.sidebar {
  border-right: 1px solid rgba(29, 29, 31, 0.08);
  background: #fff;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.layout--source-document-open .sidebar {
  padding: 18px 8px;
  align-items: center;
  gap: 0;
}

.layout--source-document-open .sidebar__masthead,
.layout--source-document-open .sidebar__mast-actions,
.layout--source-document-open .sidebar__nav,
.layout--source-document-open .sidebar__footer {
  align-items: center;
  width: 100%;
}

.layout--source-document-open .sidebar__masthead {
  justify-content: center;
}

.layout--source-document-open .sidebar__mast-actions,
.layout--source-document-open .sidebar__org,
.layout--source-document-open .sidebar__create,
.layout--source-document-open .sidebar__nav,
.layout--source-document-open .sidebar__footer {
  display: none;
}

.sidebar__masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar__logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #111;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-family: Georgia, "Times New Roman", serif;
}

.sidebar__mast-actions {
  display: flex;
  gap: 10px;
}

.sidebar__icon-button {
  border: 0;
  background: transparent;
  color: #56565a;
  padding: 4px 6px;
}

.sidebar__org {
  font-size: 1.05rem;
  font-weight: 600;
}

.sidebar__create {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 10px;
  background: #fff;
  padding: 11px 14px;
  color: #303034;
}

.sidebar__nav,
.sidebar__footer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 0 0 auto;
}

.sidebar__footer {
  margin-top: auto;
}

.sidebar__item {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 11px 14px;
  border-radius: 10px;
  color: #3f3f43;
  font-size: 1rem;
}

.sidebar__item--active {
  background: #ece7e1;
  color: #111;
}

.sidebar__create {
  text-align: center;
}

.workspace {
  min-width: 0;
  padding: 34px 34px 52px;
  background: linear-gradient(180deg, #fcfbf9 0%, #f6f3ee 100%);
}

.layout--source-document-open .workspace {
  padding: 30px 28px 46px;
}

.layout--source-document-open .assist-shell {
  max-width: 880px;
}

.workspace__hero {
  display: flex;
  justify-content: center;
  margin-bottom: 72px;
}

.workspace__wordmark {
  font-size: 4rem;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
}

.assist-shell {
  max-width: 1290px;
  margin: 0 auto;
}

.assist-composer {
  background: #f2f1ef;
  border: 1px solid rgba(17, 24, 39, 0.07);
  border-radius: 22px;
  overflow: visible;
}

.assist-composer--docked {
  margin-top: 18px;
  border-radius: 16px;
  background: rgba(242, 241, 239, 0.92);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
}

.assist-composer__textarea {
  width: 100%;
  resize: none;
  border: 0;
  background: transparent;
  padding: 22px 22px 12px;
  min-height: 108px;
  font-size: 1.05rem;
  line-height: 1.45;
  color: #1d1d1f;
}

.assist-composer__textarea--docked {
  min-height: 0;
  height: 48px;
  padding: 14px 18px 6px;
  font-size: 0.98rem;
  line-height: 1.35;
  overflow: hidden;
}

.assist-composer__textarea::placeholder {
  color: #8b8681;
}

.assist-composer__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
}

.assist-composer__footer--bar,
.assist-composer__footer--docked {
  padding: 10px 14px 6px;
  gap: 12px;
}

.assist-composer__footer--docked {
  flex-wrap: wrap;
  row-gap: 8px;
  padding: 0 14px 12px;
}

.assist-composer__bar-left,
.assist-composer__bar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.assist-composer__bar-left {
  gap: 4px;
  flex-wrap: wrap;
  flex: 1 1 auto;
}

.composer-selected-context {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  flex: 0 1 auto;
  min-width: 0;
  gap: 6px;
  margin-left: auto;
  margin-right: 10px;
  padding-left: 4px;
}

.composer-selected-context__pill {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 8px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: #6b6b71;
  white-space: nowrap;
}

.composer-selected-context__pill--icon-only {
  width: 28px;
  padding: 0;
}

.composer-selected-context__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.composer-selected-context__label {
  font-size: 0.88rem;
  color: #535359;
}

.assist-composer__bar-right {
  gap: 2px;
  flex-shrink: 0;
}

.assist-composer__bar-right .step1-refinement__secondary {
  min-height: 40px;
}

.assist-composer__text-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 500;
  color: #6e6e73;
  cursor: pointer;
}

.assist-composer__text-action:hover {
  background: rgba(17, 24, 39, 0.05);
  color: #3a3a3e;
}

.assist-composer__text-action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7a7a80;
}

.assist-composer__picker-trigger--open {
  background: rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 0 0 1px #1d1d1f;
  color: #1d1d1f;
}

.assist-composer__plus-trigger {
  width: 36px;
  height: 36px;
  justify-content: center;
  padding: 0;
}

.assist-composer__plus {
  font-size: 1.25rem;
  line-height: 1;
}

.composer-menu-lexis {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fceaea;
  color: #e34033;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.composer-menu-word {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: #2b579a;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0;
}

.assist-composer__mini-svg {
  width: 18px;
  height: 18px;
  display: block;
}

.assist-composer__icon-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #6e6e73;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.assist-composer__icon-btn:hover {
  background: rgba(17, 24, 39, 0.06);
  color: #2c2c2e;
}

.assist-composer__bar-divider {
  width: 1px;
  height: 22px;
  margin: 0 6px;
  background: rgba(17, 24, 39, 0.1);
  flex-shrink: 0;
}

.assist-composer__send {
  width: 40px;
  height: 40px;
  margin-left: 4px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #111;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.assist-composer__send:hover:not(:disabled) {
  background: #000;
}

.assist-composer__send:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.assist-composer__send-svg {
  width: 20px;
  height: 20px;
  display: block;
  color: #fff;
}

.composer-picker-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.files-sources-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 288px;
  padding: 8px 0;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 14px;
  box-shadow: 0 16px 42px rgba(17, 24, 39, 0.14);
  z-index: 30;
}

.files-sources-dropdown--unified {
  min-width: 386px;
  max-height: min(520px, 68vh);
  overflow: visible;
  padding: 5px 0;
  border-radius: 9px;
}

.files-sources-dropdown__flyout-wrap {
  position: relative;
}

.files-sources-dropdown__flyout {
  display: none;
  top: -5px;
  left: calc(100% - 3px);
  min-width: 386px;
  overflow: auto;
}

.files-sources-dropdown__flyout-wrap:hover > .files-sources-dropdown__flyout,
.files-sources-dropdown__flyout-wrap:focus-within > .files-sources-dropdown__flyout,
.files-sources-dropdown__flyout-wrap--pinned > .files-sources-dropdown__flyout {
  display: block;
}

.files-sources-dropdown--unified .files-sources-dropdown__item {
  gap: 9px;
  padding: 5px 14px;
  min-height: 30px;
  font-size: 0.88rem;
  line-height: 1.2;
}

.files-sources-dropdown__section-title {
  margin: 0;
  padding: 5px 14px 3px;
  color: #77777c;
  font-size: 0.76rem;
  font-weight: 650;
}

.files-sources-dropdown--unified .files-sources-dropdown__icon {
  width: 20px;
}

.files-sources-dropdown--unified .files-sources-dropdown__check {
  width: 12px;
  height: 12px;
}

.files-sources-dropdown--unified .files-sources-dropdown__check-svg {
  width: 12px;
  height: 12px;
}

.files-sources-dropdown--unified .files-sources-dropdown__svg,
.files-sources-dropdown--unified .files-sources-dropdown__edgar,
.files-sources-dropdown--unified .files-sources-dropdown__eurlex {
  width: 18px;
  height: 18px;
}

.composer-picker-wrap--upward .files-sources-dropdown {
  top: auto;
  bottom: calc(100% + 10px);
}

.files-sources-dropdown--upward {
  top: auto;
  bottom: calc(100% + 10px);
}

.files-sources-dropdown__item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  color: #1d1d1f;
  text-align: left;
  cursor: pointer;
}

.files-sources-dropdown__item--selectable {
  gap: 10px;
  padding: 9px 16px;
}

.files-sources-dropdown__item--selected {
  background: #f6f6f4;
}

.files-sources-dropdown__item:hover {
  background: #f4f1ec;
}

.files-sources-dropdown__label {
  flex: 1;
}

.files-sources-dropdown__trail {
  margin-left: auto;
  color: #8a8a8f;
  font-size: 0.9rem;
  line-height: 1;
}

.files-sources-dropdown--unified .files-sources-dropdown__trail {
  font-size: 0.82rem;
}

.files-sources-dropdown__divider {
  height: 1px;
  margin: 8px 14px;
  background: rgba(17, 24, 39, 0.08);
}

.files-sources-dropdown__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  flex-shrink: 0;
  color: #3d3d41;
}

.files-sources-dropdown__check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #3d3d41;
}

.files-sources-dropdown__check--empty {
  border: 1.5px solid #d2d2d6;
  border-radius: 3px;
}

.files-sources-dropdown__check-svg {
  width: 14px;
  height: 14px;
  display: block;
}

.files-sources-dropdown__svg {
  width: 22px;
  height: 22px;
  display: block;
}

.files-sources-dropdown__edgar,
.files-sources-dropdown__eurlex {
  width: 22px;
  height: 22px;
  display: block;
}

.composer-menu-imanage {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #eceffe;
  color: #3855d6;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.composer-file-picker__scrim {
  position: fixed;
  inset: 0;
  background: rgba(18, 18, 20, 0.14);
  display: grid;
  place-items: center;
  padding: 28px;
  z-index: 80;
}

.composer-file-picker {
  width: min(940px, 100%);
  max-height: min(840px, calc(100vh - 56px));
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 22px;
  box-shadow: 0 22px 64px rgba(17, 24, 39, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.composer-file-picker__header,
.composer-file-picker__footer {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.composer-file-picker__header {
  position: relative;
  padding-right: 56px;
}

.composer-file-picker__footer {
  border-bottom: 0;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.composer-file-picker__title-wrap,
.composer-file-picker__toolbar,
.composer-file-picker__footer-actions {
  display: flex;
  align-items: center;
}

.composer-file-picker__title-wrap {
  gap: 14px;
}

.composer-file-picker__lead-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f4f4f2;
}

.composer-file-picker__title {
  margin: 0;
  font-size: 1.25rem;
}

.composer-file-picker__meta {
  margin: 2px 0 0;
  color: #79797f;
  font-size: 0.92rem;
}

.composer-file-picker__close {
  position: absolute;
  top: 16px;
  right: 22px;
  border: 0;
  background: transparent;
  color: #7b7b80;
  font-size: 1.9rem;
  line-height: 1;
  padding: 0;
}

.composer-file-picker__toolbar {
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.composer-file-picker__search {
  width: 100%;
  min-height: 42px;
  border: 0;
  background: transparent;
  color: #2f2f34;
  outline: none;
}

.composer-file-picker__search-wrap {
  flex: 1;
  min-height: 42px;
  border-radius: 10px;
  background: #f5f5f3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  color: #96969b;
}

.composer-file-picker__search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  flex-shrink: 0;
}

.composer-file-picker__filter,
.composer-file-picker__secondary,
.composer-file-picker__primary {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  background: #fff;
  color: #2f2f34;
}

.composer-file-picker__primary {
  background: #9f9f9f;
  color: #fff;
  border-color: transparent;
}

.composer-file-picker__body {
  overflow: auto;
  padding: 14px 0;
}

.composer-file-picker__row {
  width: 100%;
  display: grid;
  grid-template-columns: 22px 18px 24px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 22px;
  border: 0;
  background: transparent;
  text-align: left;
}

.composer-file-picker__row:hover,
.composer-file-picker__row--selected {
  background: #f6f4ef;
}

.composer-file-picker__checkbox,
.composer-file-picker__caret,
.composer-file-picker__file-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7a7a80;
}

.composer-file-picker__file-name {
  min-width: 0;
}

.composer-file-picker__tag {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 999px;
  padding: 4px 10px;
  color: #6f6f74;
  font-size: 0.86rem;
  white-space: nowrap;
}

.composer-file-picker__selection-count {
  color: #6f6f74;
}

.primary-button,
.ghost-button {
  border-radius: 10px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  padding: 11px 16px;
}

.primary-button {
  background: #146356;
  color: #fff;
  border-color: #146356;
}

.primary-button--dark {
  background: #7e7b76;
  border-color: #7e7b76;
  color: #2c2c2e;
}

.primary-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ghost-button {
  background: transparent;
}

.source-strip__intro {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  max-width: 1290px;
  margin: 20px auto 0;
}

.source-strip__title,
.source-strip__meta {
  margin: 0;
}

.source-strip__title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #3a3a3d;
}

.source-strip__meta {
  color: #7b7b7f;
  font-size: 0.86rem;
}

.source-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 0 0;
}

.source-pill {
  position: relative;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 16px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  min-height: 54px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.source-pill--suggested {
  border-color: rgba(17, 24, 39, 0.08);
  box-shadow: none;
}

.source-pill__button {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  text-align: left;
}

.source-pill__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.source-pill__title {
  margin: 0;
  white-space: nowrap;
  font-size: 0.95rem;
  color: #3d3d41;
}

.source-pill__meta {
  margin: 0;
  color: #8a8a8f;
  font-size: 0.78rem;
}

.source-pill__leading,
.source-pill__plus {
  color: #6b6b70;
  font-size: 1.05rem;
}

.source-pill__svg {
  width: 18px;
  height: 18px;
  display: block;
}

.source-pill__badge {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0;
}

.source-pill__badge--lexis {
  background: #fceaea;
  color: #e34033;
}

.source-pill__badge--imanage {
  background: #eceffe;
  color: #3855d6;
}

.source-pill__flag {
  width: 24px;
  height: 16px;
  border-radius: 4px;
  display: inline-block;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: #fff;
}

.source-pill__flag--sweden {
  background:
    linear-gradient(90deg, transparent 31%, #f4cf34 31%, #f4cf34 43%, transparent 43%),
    linear-gradient(transparent 42%, #f4cf34 42%, #f4cf34 58%, transparent 58%),
    #2f5fb4;
}

.source-pill--open .source-pill__button {
  box-shadow: inset 0 0 0 1px #111;
}

.kb-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.12);
  z-index: 4;
}

.kb-dropdown__item,
.kb-dropdown__create {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}

.kb-dropdown__item {
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.kb-dropdown__item--selected {
  background: #f4f1eb;
}

.kb-dropdown__name,
.kb-dropdown__meta {
  display: block;
}

.kb-dropdown__meta {
  color: #737377;
  font-weight: 400;
}

.assist-results {
  padding: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.assistant-conversation {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.assist-results__context,
.assist-results__source {
  margin-top: 0;
}

.assistant-thread--empty {
  color: #333;
  margin-top: 18px;
  background: #faf8f4;
  box-shadow: none;
}

.assistant-message + .assistant-message {
  margin-top: 16px;
}

.assistant-message--user {
  padding: 18px 18px 22px;
  border: 1px solid rgba(17, 24, 39, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: #2f343d;
}

.assistant-message--request-header {
  align-self: flex-end;
  margin-bottom: 12px;
  width: fit-content;
  max-width: min(620px, 56%);
  box-sizing: border-box;
}

.assistant-message--content-surface {
  align-self: flex-start;
  width: min(1280px, 88%);
  padding: 18px 18px 22px;
  border: 1px solid rgba(17, 24, 39, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
}

.assistant-feedback {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  margin-left: 8px;
  padding: 0;
}

.assistant-feedback__button {
  width: 24px;
  height: 24px;
  padding: 2px;
  border: 0;
  background: transparent;
  color: #6f7680;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.assistant-feedback__button:hover {
  color: #252b33;
}

.assistant-feedback__icon {
  width: 18px;
  height: 18px;
  display: block;
}

.assistant-message--retrieval {
  padding: 0 0 16px;
  border-bottom: 0;
  color: #2f343d;
}

.assistant-message--retrieval-takeover {
  min-height: 64vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.assistant-message--answering {
  padding: 14px 0;
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
}

.assistant-message--retrieval p {
  margin: 0;
}

.assistant-message--retrieval-summary {
  margin-top: 0;
  margin-bottom: 18px;
  padding: 7px 11px;
  border-bottom: 0;
  border-radius: 8px;
  background: rgba(61, 71, 82, 0.05);
  color: #5b6470;
  font-size: 0.88rem;
  line-height: 1.35;
}

.assistant-message__trace {
  margin: 14px 0 0;
  padding: 0 0 0 6px;
  color: #4d5560;
  list-style: none;
  display: grid;
  gap: 11px;
}

.assistant-message__trace li {
  padding-left: 28px;
  position: relative;
  max-width: 98ch;
  line-height: 1.45;
}

.assistant-message__trace li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 8px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(56, 68, 82, 0.4);
}

.assistant-message__retrieval-group + .assistant-message__retrieval-group {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(17, 24, 39, 0.06);
}

.assistant-message__retrieval-label {
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #2f343d;
}

.assistant-message__retrieval-actions {
  margin-top: auto;
  padding-top: 28px;
  padding-right: 0;
  display: flex;
  justify-content: flex-end;
}

.assistant-message__advance {
  margin-left: auto;
}

.citation-pill__icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: #6b7280;
}

.citation-pill__icon .files-sources-dropdown__svg {
  width: 16px;
  height: 16px;
}

.assistant-message__phase-pills {
  margin-top: 14px;
  margin-left: 28px;
  gap: 8px;
  flex-wrap: wrap;
}

.assistant-message--request-header p:not(.eyebrow) {
  max-width: 58ch;
  font-size: 0.96rem;
  line-height: 1.42;
}

.assistant-message h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  line-height: 1.3;
}

.assistant-message p {
  margin: 0;
  max-width: 78ch;
  line-height: 1.55;
}

.assistant-answer__grounding {
  margin-top: 14px;
  padding: 10px 12px;
  max-width: 78ch;
  border-left: 2px solid rgba(17, 24, 39, 0.18);
  background: rgba(17, 24, 39, 0.03);
}

.assistant-answer__body {
  margin-top: 0;
  display: grid;
  gap: 22px;
}

.assistant-answer__lead {
  margin: 0;
  max-width: 78ch;
  color: #374151;
}

.assistant-answer__explanation {
  display: grid;
  gap: 8px;
  font-weight: 400;
}

.assistant-answer__clause-card {
  max-width: 96ch;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.08);
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.assistant-answer__bullet-list {
  margin: 0;
  padding: 0 0 0 1.2rem;
  max-width: 78ch;
  display: grid;
  gap: 12px;
}

.assistant-answer__bullet {
  font-size: 1rem;
}

.assistant-answer__citation-marker {
  display: inline-flex;
  position: relative;
  margin-left: 1px;
  margin-right: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  vertical-align: super;
}

.assistant-answer__citation-popover {
  display: inline-block;
  position: relative;
  vertical-align: baseline;
}

.assistant-answer__citation-popover::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%);
  width: 360px;
  max-width: min(360px, calc(100vw - 32px));
  height: 12px;
}

.assistant-answer__citation-marker sup {
  font-size: 0.72em;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0;
}

.assistant-message__retrieval-summary-link {
  font-weight: 600;
  color: #4b5563;
}

.assistant-answer__citation-marker:hover,
.assistant-answer__citation-marker:focus-visible {
  color: #111827;
}

.assistant-answer__citation-card {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  transform: translateX(-50%);
  width: 360px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 10px 12px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.12);
  text-align: left;
  opacity: 0;
  pointer-events: none;
}

.assistant-answer__citation-popover:hover .assistant-answer__citation-card,
.assistant-answer__citation-popover:focus-within .assistant-answer__citation-card {
  opacity: 1;
  pointer-events: auto;
}

.assistant-answer__citation-card-row + .assistant-answer__citation-card-row {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
}

.assistant-answer__citation-card-row {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.assistant-answer__citation-card-row:hover .assistant-answer__citation-card-title,
.assistant-answer__citation-card-row:focus-visible .assistant-answer__citation-card-title {
  color: #0f172a;
}

.assistant-answer__citation-card-title,
.assistant-answer__citation-card-meta {
  margin: 0;
}

.assistant-answer__citation-card-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
}

.assistant-answer__citation-card-role,
.assistant-answer__citation-card-takeaway {
  margin: 0;
}

.assistant-answer__citation-card-role {
  margin-top: 3px;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #6b7280;
}

.assistant-answer__citation-card-takeaway {
  margin-top: 4px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #1f2937;
}

.assistant-answer__citation-card-meta {
  margin-top: 6px;
  font-size: 0.76rem;
  color: #5b6470;
  line-height: 1.4;
}

.assistant-answer__sources {
  margin-top: 18px;
}

.assistant-answer__sources-list {
  display: grid;
  gap: 8px;
}

.assistant-answer__source-pill {
  width: 100%;
  max-width: 78ch;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: #26303b;
  overflow: hidden;
}

.assistant-answer__source-toggle {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.assistant-answer__source-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: #6b7280;
}

.assistant-answer__source-icon .files-sources-dropdown__svg {
  width: 18px;
  height: 18px;
}

.assistant-answer__citation-card-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: #6b7280;
}

.assistant-answer__citation-card-icon .files-sources-dropdown__svg {
  width: 16px;
  height: 16px;
}

.assistant-answer__source-index {
  font-size: 0.85rem;
  color: #5b6470;
}

.assistant-answer__source-copy {
  display: grid;
  gap: 2px;
  flex: 1;
}

.assistant-answer__source-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.assistant-answer__source-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.assistant-answer__source-meta {
  font-size: 0.82rem;
  color: #5b6470;
}

.assistant-answer__source-chevron {
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.2;
}

.assistant-answer__source-panel {
  padding: 18px 24px 20px;
  display: grid;
  gap: 18px;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
}

.assistant-answer__source-pill--active {
  border-color: rgba(15, 118, 110, 0.22);
}

.assistant-answer__source-section {
  display: grid;
  gap: 6px;
}

.assistant-answer__source-section-label {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: #6b7280;
  font-weight: 600;
}

.assistant-answer__source-section p {
  margin: 0;
}

.assistant-answer__source-excerpt-card {
  background: rgba(17, 24, 39, 0.03);
  padding: 18px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-radius: 8px;
}

.assistant-answer__source-excerpt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.assistant-answer__source-excerpt-heading {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}

.assistant-answer__source-excerpt-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.assistant-answer__source-excerpt-tool {
  padding: 0;
  border: 0;
  background: transparent;
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
}

.assistant-answer__source-excerpt-tool .assistant-answer__source-action-icon {
  width: 16px;
  height: 16px;
}

.assistant-answer__source-excerpt-shell {
  border-left: 4px solid rgba(17, 24, 39, 0.28);
  padding-left: 14px;
}

.assistant-answer__source-excerpt {
  margin: 0;
  padding: 0;
  color: #111827;
  font-size: 1rem;
  line-height: 1.65;
}

.assistant-answer__source-excerpt strong {
  font-weight: 700;
}

.assistant-answer__clause-card {
  padding: 18px 20px 20px;
}

.assistant-answer__clause-card .assistant-answer__source-excerpt {
  font-size: 1.05rem;
  line-height: 1.72;
}

.assistant-answer__source-section--compact p:last-child {
  color: #4b5563;
}

.assistant-answer__source-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.assistant-answer__source-action {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 8px;
  background: #fff;
  color: #26303b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.assistant-answer__source-action-icon {
  width: 18px;
  height: 18px;
}

.assistant-answer__source-inspect {
  margin-left: auto;
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 8px;
  background: #fff;
  color: #26303b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
}

.source-document-pane {
  min-width: 0;
  width: clamp(560px, 31vw, 640px);
  height: calc(100vh - 14px);
  position: fixed;
  top: 0;
  right: 14px;
  z-index: 20;
  border-left: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 0 28px 28px 0;
  background: #f3f1eb;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: source-pane-in 180ms ease-out;
}

.source-document-pane__header {
  flex: 0 0 auto;
  padding: 18px 20px 16px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(252, 251, 249, 0.96);
  display: grid;
  gap: 14px;
}

.source-document-pane__close {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: #303034;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 600;
}

.source-document-pane__close span:first-child {
  font-size: 1.35rem;
  line-height: 1;
}

.source-document-pane__header h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
  color: #1f2937;
}

.source-document-pane__header p {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: #68707c;
}

.source-document-pane__surface {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 22px 28px 40px;
}

.source-document-pane__document {
  background: #fff;
  color: #1f2937;
  padding: 32px 34px 42px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.06);
  font-family: Georgia, "Times New Roman", serif;
}

.source-document-pane__doc-meta {
  margin: 0 0 18px;
  color: #6b7280;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.source-document-pane__document h3 {
  margin: 0 0 18px;
  font-size: 1.42rem;
  line-height: 1.25;
  color: #111827;
}

.source-document-pane__document h4 {
  margin: 26px 0 8px;
  color: #374151;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.86rem;
  line-height: 1.35;
  text-transform: uppercase;
}

.source-document-pane__document p {
  margin: 0 0 18px;
  font-size: 1rem;
  line-height: 1.78;
}

.source-document-pane__highlight {
  background: #fff3a3;
  color: inherit;
  padding: 0.08em 0.12em;
}

.source-document-pane--executed .source-document-pane__document {
  font-family: "Times New Roman", Times, serif;
  border-top: 5px solid #385469;
}

.source-document-pane--executed .source-document-pane__doc-meta {
  color: #385469;
}

.source-document-pane--playbook .source-document-pane__document {
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  border-left: 6px solid #687a52;
}

.source-document-pane--playbook .source-document-pane__document p {
  font-size: 0.96rem;
  line-height: 1.7;
}

.source-document-pane--playbook .source-document-pane__doc-meta,
.source-document-pane--playbook .source-document-pane__document h4 {
  color: #687a52;
}

.source-document-pane--redline .source-document-pane__document {
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  border-top: 5px solid #8a4a46;
  background: #fffdfb;
}

.source-document-pane--redline .source-document-pane__doc-meta {
  color: #8a4a46;
}

.source-document-pane--redline .source-document-pane__highlight {
  background: #ffe0d8;
  text-decoration: underline;
  text-decoration-color: rgba(138, 74, 70, 0.55);
  text-underline-offset: 0.18em;
}

.source-document-pane--practice-note .source-document-pane__document {
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  border-top: 5px solid #4b5f8f;
}

.source-document-pane--practice-note .source-document-pane__doc-meta,
.source-document-pane--practice-note .source-document-pane__document h4 {
  color: #4b5f8f;
}

@keyframes source-pane-in {
  from {
    opacity: 0;
    transform: translateX(18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.assistant-message__citations {
  margin-top: 16px;
}

.citation-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.citation-pill {
  border: 1px solid rgba(17, 24, 39, 0.1);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3f4650;
  vertical-align: middle;
}

.citation-pill--compact {
  padding: 2px 8px;
  gap: 6px;
  font-size: 0.9em;
}

.citation-pill__meta {
  color: #777;
  font-size: 0.82rem;
}

.panel {
  padding: 16px;
  background: #faf8f4;
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 16px;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0;
  color: #737377;
}

.muted {
  color: #737377;
}

.pinned-context {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pinned-context__status {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pinned-context__badge,
.pinned-context__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: #666;
}

.pinned-context__badge {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(124, 45, 18, 0.1);
  border: 1px solid rgba(124, 45, 18, 0.16);
}

.pinned-context__summary,
.pinned-context__list {
  margin: 0;
  color: #4b5563;
  font-size: 0.92rem;
}

.pinned-context__quote {
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.6);
  border-left: 4px solid #146356;
  font-size: 0.94rem;
  color: #111827;
}

.pinned-context__note,
.pinned-context__followups {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
}

.pinned-context__list,
.pinned-context__chips {
  margin: 8px 0 0;
  padding-left: 18px;
}

.pinned-context__chips {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pinned-context__chip {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(20, 99, 86, 0.08);
  border: 1px solid rgba(20, 99, 86, 0.12);
  color: #134e4a;
  font-size: 0.84rem;
}

.panel--inspector {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.inspector__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.inspector__kb-label {
  margin: 0;
  font-size: 0.82rem;
  color: #737377;
  text-align: right;
}

.inspector__identity,
.inspector__section,
.inspector__empty-state,
.inspector__restricted-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inspector__title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.inspector__badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inspector__badge,
.inspector__section-state {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.78rem;
  font-weight: 600;
}

.inspector__badge--neutral,
.inspector__callout--neutral {
  background: #f8fafc;
  border-color: rgba(148, 163, 184, 0.35);
  color: #334155;
}

.inspector__badge--approved,
.inspector__callout--approved,
.inspector__section-state--accessible {
  background: rgba(20, 99, 86, 0.1);
  border-color: rgba(20, 99, 86, 0.22);
  color: #0f5132;
}

.inspector__badge--preferred,
.inspector__callout--preferred {
  background: rgba(180, 83, 9, 0.1);
  border-color: rgba(180, 83, 9, 0.24);
  color: #9a3412;
}

.inspector__badge--historical,
.inspector__callout--historical {
  background: rgba(71, 85, 105, 0.1);
  border-color: rgba(71, 85, 105, 0.22);
  color: #334155;
}

.inspector__badge--accessible {
  background: rgba(14, 116, 144, 0.1);
  border-color: rgba(14, 116, 144, 0.2);
  color: #155e75;
}

.inspector__badge--restricted,
.inspector__callout--restricted,
.inspector__section-state--restricted {
  background: rgba(153, 27, 27, 0.08);
  border-color: rgba(153, 27, 27, 0.18);
  color: #991b1b;
}

.inspector__callout,
.inspector__restricted-preview {
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
}

.inspector__label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #666;
}

.inspector__section p,
.inspector__empty-state p,
.inspector__callout p,
.inspector__restricted-preview p {
  margin: 0;
}

.inspector__actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-start;
}

.inspector__section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.inspector__excerpt {
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid rgba(20, 99, 86, 0.45);
  background: rgba(248, 250, 252, 0.9);
  color: #1f2937;
}

.inspector__section--compact {
  gap: 6px;
}

.inspector__source-summary {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #334155;
}

.inspector__source-summary li {
  padding-left: 2px;
}

.inspector__summary-count {
  font-weight: 700;
  color: #111827;
}

.recommendations {
  max-width: 1290px;
  margin: 36px auto 0;
}

.recommendations__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.recommendations__header h2 {
  margin: 0;
  font-size: 1.1rem;
}

.recommendations__actions {
  display: flex;
  gap: 16px;
}

.recommendations__link {
  border: 0;
  background: transparent;
  color: #666;
}

.recommendations__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.workflow-card {
  background: #faf8f4;
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 16px;
  padding: 18px;
  min-height: 172px;
}

.workflow-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  line-height: 1.3;
}

.workflow-card p {
  margin: 0;
  color: #666;
}

.workflow-card__meta {
  margin-top: 20px;
  color: #777;
  font-size: 0.88rem;
}

.step1-v2-attached {
  margin: 0 14px 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.step1-v2-attached--answer {
  margin: 0 0 14px;
}

.step1-v2-attached__status,
.step1-v2-attached__label,
.step1-v2-attached__chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 8px;
  font-size: 0.84rem;
}

.step1-v2-attached__status {
  padding: 0 9px;
  background: rgba(20, 99, 86, 0.1);
  color: #115e52;
  border: 1px solid rgba(20, 99, 86, 0.18);
  font-weight: 650;
}

.step1-v2-attached__sources {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.step1-v2-attached__label {
  color: #747478;
}

.step1-v2-attached__chip {
  gap: 6px;
  padding: 0 9px;
  background: rgba(255, 255, 255, 0.82);
  color: #3f3f43;
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.step1-v2-attached__icon {
  display: inline-flex;
  color: #55565a;
}

.step1-refinement {
  margin: 0 14px;
  max-height: min(360px, calc(100vh - 260px));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #f2f1ef;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
}

.step1-refinement__header,
.step1-refinement__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 4px;
}

.step1-refinement__header h2 {
  margin: 0;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.94rem;
  line-height: 1.25;
  font-weight: 650;
}

.step1-refinement__progress,
.step1-refinement__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.step1-refinement__progress {
  color: #9a9a9f;
  font-size: 0.86rem;
}

.step1-refinement__arrow,
.step1-refinement__close {
  border: 0;
  background: transparent;
  color: #55565a;
  padding: 4px;
}

.step1-refinement__arrow:disabled {
  color: #b8b8bd;
  cursor: default;
}

.step1-refinement__close {
  font-size: 1.05rem;
  line-height: 1;
}

.step1-refinement__options {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(17, 24, 39, 0.07);
  border-radius: 9px;
}

.step1-refinement__option {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border: 0;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  background: transparent;
  color: #1d1d1f;
  text-align: left;
  font-size: 0.88rem;
  line-height: 1.2;
}

.step1-refinement__option:first-child {
  border-top: 0;
}

.step1-refinement__option:hover,
.step1-refinement__option:focus-visible,
.step1-refinement__option--selected {
  background: #f4f4f2;
}

.step1-refinement__option--custom {
  color: #747478;
}

.step1-refinement__option--custom.step1-refinement__option--selected {
  color: #1d1d1f;
}

.step1-refinement__inline-edit {
  min-width: 9ch;
  color: inherit;
  font-weight: inherit;
  outline: none;
}

.step1-refinement__option:focus-visible,
.step1-refinement__secondary:focus-visible,
.step1-refinement__primary:focus-visible,
.step1-refinement__close:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.step1-refinement__box {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #c9c9ce;
  border-radius: 3px;
  color: #fff;
  background: #fff;
  font-size: 0.62rem;
}

.step1-refinement__number {
  width: 14px;
  flex: 0 0 auto;
  color: #8f8f94;
  font-size: 0.78rem;
  text-align: center;
}

.step1-refinement__option--selected .step1-refinement__number {
  color: #1d1d1f;
  font-weight: 650;
}

.step1-refinement__option--selected .step1-refinement__box {
  background: #2f7dd1;
  border-color: #2f7dd1;
}

.step1-refinement__source-icon {
  width: 18px;
  display: inline-flex;
  justify-content: center;
  color: #55565a;
}

.step1-refinement__glyph {
  width: 16px;
  height: 16px;
}

.step1-refinement__custom {
  padding: 8px 0 0;
}

.step1-refinement__input {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: 10px;
  padding: 0 13px;
  font: inherit;
  color: #1d1d1f;
}

.step1-refinement__count {
  margin: 7px 0 0;
  color: #77777c;
  font-size: 0.82rem;
}

.step1-refinement__secondary,
.step1-refinement__primary {
  min-height: 34px;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 0.9rem;
}

.step1-refinement__secondary {
  border: 1px solid rgba(17, 24, 39, 0.1);
  background: #fff;
  color: #111;
}

.step1-refinement__primary {
  width: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: #111;
  color: #fff;
}

.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;
}

@media (max-width: 1200px) {
  .recommendations__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .workspace {
    padding: 16px 18px 40px;
  }
}

@media (max-width: 760px) {
  .landing-page {
    padding: 28px 14px;
  }

  .landing-page__shell {
    border-radius: 18px;
  }

  .landing-page__prototype,
  .landing-page__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-page__actions {
    width: 100%;
  }

  .landing-page__link {
    flex: 1 1 140px;
  }

  .workspace__wordmark {
    font-size: 3rem;
  }

  .assist-composer__footer--bar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .assist-composer__bar-right {
    justify-content: flex-end;
  }

  .recommendations__grid {
    grid-template-columns: 1fr;
  }
}
