/* The brief is a small working page within VentCap's white canvas. */
html.has-conversation-brief { overflow: hidden; }
.conversation-brief {
  --brief-ink: #121212;
  --brief-muted: #536168;
  --brief-blue: #0965dc;
  --brief-line: #ccd8df;
  box-sizing: border-box;
  width: min(700px, calc(100% - 3rem));
  max-width: none;
  max-height: min(950px, calc(100dvh - 3rem));
  margin: auto;
  padding: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  border: 1px solid #bcc9d1;
  border-radius: 2px;
  background: #fff;
  color: var(--brief-ink);
  box-shadow: 0 28px 100px #0c253e26;
  font: 400 1rem/1.5 var(--display, "area-normal", "Helvetica Neue", Arial, sans-serif);
  text-align: left;
}
.conversation-brief[open] { display: flex; flex-direction: column; }
.conversation-brief::backdrop { background: #17344438; backdrop-filter: blur(6px); }
.conversation-brief *, .conversation-brief *::before, .conversation-brief *::after { box-sizing: border-box; }
.conversation-brief :is(h2,p,fieldset,legend) { margin: 0; }
.conversation-brief :is(button,input,textarea) { font: inherit; }
.conversation-brief :is(button,a,input,textarea):focus-visible { outline: 2px solid var(--brief-blue); outline-offset: 4px; }
.conversation-brief button, .conversation-brief a { -webkit-tap-highlight-color: #1478ff18; touch-action: manipulation; }
.conversation-brief button { cursor: pointer; }
.conversation-brief__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex: 0 0 auto; padding: 26px 32px; border-bottom: 1px solid var(--brief-line); }
.conversation-brief__close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; margin: -8px -10px -8px 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--brief-ink); }
.conversation-brief__close span { font: 300 1.85rem/1 Arial, sans-serif; }
.conversation-brief__close:hover { background: #edf4fa; color: var(--brief-blue); }
.conversation-brief #conversation-brief-title { min-width: 0; font-size: clamp(1.75rem,4.5vw,2.8rem); line-height: 1.1; font-weight: 400; letter-spacing: -.055em; text-wrap: balance; }
.conversation-brief #conversation-brief-title:focus { outline: none; }
.conversation-brief__form { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; margin: 0; }
.conversation-brief__body { min-height: 0; padding: 26px 32px 28px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; scroll-padding-block: 24px; }
.conversation-brief__disciplines { min-width: 0; padding: 0; border: 0; }
.conversation-brief__disciplines legend, .conversation-brief__label { padding: 0; font-size: 14px; font-weight: 500; line-height: 1.5; }
.conversation-brief__choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.conversation-brief__choice { position: relative; display: block; cursor: pointer; }
.conversation-brief__choice > input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.conversation-brief__choice > span { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 9px 13px; border: 1px solid var(--brief-line); border-radius: 2px; color: var(--brief-muted); font-size: 14px; line-height: 1.45; transition: border-color .18s, background .18s, color .18s; }
.conversation-brief__choice > span > i { position: relative; display: block; flex: 0 0 11px; width: 11px; height: 11px; border: 1px solid #91a1ab; border-radius: 1px; }
.conversation-brief__choice > input:checked + span { border-color: var(--brief-blue); background: #edf5ff; color: var(--brief-blue); }
.conversation-brief__choice > input:checked + span > i { border-color: var(--brief-blue); background: var(--brief-blue); }
.conversation-brief__choice > input:checked + span > i::after { content: ""; position: absolute; left: 2px; top: 1px; width: 4px; height: 6px; border: solid #fff; border-width: 0 1px 1px 0; transform: rotate(45deg); }
.conversation-brief__choice > input:focus-visible { outline: none; }
.conversation-brief__choice > input:focus-visible + span { outline: 2px solid var(--brief-blue); outline-offset: 3px; }
.conversation-brief__choice:hover > span { border-color: var(--brief-blue); }
.conversation-brief__field { margin-top: 26px; }
.conversation-brief__label { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.conversation-brief__label small { flex: 0 0 auto; color: var(--brief-muted); font-size: 14px; font-weight: 400; line-height: 1.5; }
.conversation-brief__challenge, .conversation-brief__name { display: block; width: 100%; margin-top: 12px; padding: 13px 14px; border: 1px solid #adbeca; border-radius: 2px; background: #fff; color: var(--brief-ink); font-size: 16px; line-height: 1.65; }
.conversation-brief__challenge { min-height: 122px; max-height: 320px; resize: vertical; }
.conversation-brief__challenge::placeholder { color: #63757f; opacity: 1; font-size: 16px; }
.conversation-brief__challenge[aria-invalid="true"] { border-color: #ad3028; }
.conversation-brief .conversation-brief__error { margin-top: 8px; color: #ad3028; font-size: 14px; }
.conversation-brief__error[hidden] { display: none; }
.conversation-brief__name-field { max-width: 65%; }
.conversation-brief__name { margin-top: 8px; min-height: 48px; padding-block: 9px; }
.conversation-brief__preview { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--brief-line); }
.conversation-brief__preview-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; font-size: 14px; line-height: 1.6; color: var(--brief-muted); }
.conversation-brief__preview-heading label { color: var(--brief-ink); font-weight: 500; }
.conversation-brief .conversation-brief__draft { display: block; width: 100%; min-height: 170px; max-height: 360px; margin-top: 14px; padding: 15px; border: 1px solid #dce5ec; border-radius: 2px; background: #f7fafc; color: var(--brief-muted); font: 16px/1.7 var(--display, "area-normal", "Helvetica Neue", Arial, sans-serif); resize: vertical; }
.conversation-brief__footer { flex: 0 0 auto; padding: 20px 32px 18px; border-top: 1px solid var(--brief-line); background: #fff; }
.conversation-brief__actions { display: flex; gap: 12px; }
.conversation-brief__email, .conversation-brief__copy { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 50px; padding: 12px 18px; border: 1px solid var(--brief-blue); border-radius: 2px; font-size: 14px; line-height: 1.4; text-decoration: none; transition: background .18s, border-color .18s; }
.conversation-brief__email { flex: 1 1 auto; background: var(--brief-blue); color: #fff; }
.conversation-brief__email:visited { color: #fff; }
.conversation-brief__email .arrow-icon { flex: 0 0 20px; width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.5; }
.conversation-brief__email:hover { background: #084eac; border-color: #084eac; }
.conversation-brief__copy { flex: 0 0 auto; min-width: 160px; background: #fff; border-color: #adbeca; color: var(--brief-ink); }
.conversation-brief__copy:hover { background: #edf5ff; border-color: var(--brief-blue); }
.conversation-brief__copy:disabled { cursor: progress; opacity: .65; }
.conversation-brief__copy svg { flex: 0 0 18px; width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.2; }
.conversation-brief .conversation-brief__note { margin-top: 12px; color: var(--brief-muted); font-size: 14px; line-height: 1.5; }
.conversation-brief .conversation-brief__status { color: var(--brief-blue); font-size: 14px; line-height: 1.6; }
.conversation-brief__status:not(:empty) { padding-top: 8px; }
@media (max-width: 600px) {
  .conversation-brief { width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
  .conversation-brief__header { padding: 18px 20px 20px; }
  .conversation-brief__body { padding: 22px 20px 24px; }
  .conversation-brief__choices { gap: 7px; }
  .conversation-brief__choice > span { padding-inline: 10px; }
  .conversation-brief__name-field { max-width: none; }
  .conversation-brief__footer { padding: 16px 20px; }
  .conversation-brief__actions { gap: 9px; }
  .conversation-brief__email, .conversation-brief__copy { gap: 12px; padding-inline: 12px; }
  .conversation-brief__copy { min-width: 0; flex: 1 1 auto; }
}
@media (max-height: 620px) {
  .conversation-brief__header { padding-block: 12px 16px; }
  .conversation-brief #conversation-brief-title { font-size: 1.65rem; }
  .conversation-brief__footer { padding-block: 12px; }
  .conversation-brief__email, .conversation-brief__copy { min-height: 44px; padding-block: 10px; }
  .conversation-brief .conversation-brief__note { margin-top: 8px; }
}
@media (max-height: 500px) {
  .conversation-brief { max-height: calc(100dvh - 12px); }
  .conversation-brief__header { position: relative; padding: 16px 20px; }
  .conversation-brief #conversation-brief-title { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .conversation-brief[open] { animation: conversation-brief-enter .3s cubic-bezier(.16,1,.3,1); }
  @keyframes conversation-brief-enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
}
@media (prefers-reduced-motion: reduce) {
  .conversation-brief *, .conversation-brief *::before, .conversation-brief *::after { transition: none !important; }
}
html.motion-paused .conversation-brief { animation: none; }
html.motion-paused .conversation-brief * { transition: none; }
@media (forced-colors: active) {
  .conversation-brief { border: 1px solid CanvasText; }
  .conversation-brief__choice > input:checked + span { outline: 2px solid Highlight; outline-offset: -2px; }
  .conversation-brief__choice > input:checked + span > i { forced-color-adjust: none; border-color: Highlight; background: Highlight; }
  .conversation-brief__email { border-color: ButtonText; }
}
