/* The interactive sample is isolated from the hero and the original orbit. */
.crew-enabled {
  --crew-ink: var(--ink);
  --crew-muted: #66758e;
  --crew-blue: var(--brand-blue);
  --crew-line: #e7ecf4;
  box-shadow: 0 22px 65px -30px #234b952b, 0 2px 8px #192e5905;
}
.crew-enabled .connected-body {
  grid-template-columns: 172px minmax(0, 1fr) 274px;
}
.crew-enabled:has(.workspace-nav [aria-selected="true"]:not([data-workspace-tab="chat"])) .connected-body { grid-template-columns: 172px minmax(0, 1fr); }
.crew-enabled:has(.workspace-nav [aria-selected="true"]:not([data-workspace-tab="chat"])) .crew-inspector { display: none; }
.crew-enabled .workspace-panel { min-height: 700px; }
.crew-enabled #workspace-panel-chat { padding: 0; }
.crew-enabled [hidden] { display: none !important; }
.crew-enabled button, .crew-enabled input, .crew-enabled textarea { font: inherit; }
.crew-enabled button { -webkit-tap-highlight-color: transparent; }
.crew-enabled button:focus-visible, .crew-enabled textarea:focus-visible,
.crew-enabled input:focus-visible, .crew-enabled [tabindex]:focus-visible {
  outline: 2px solid var(--brand-blue); outline-offset: 3px;
}
.crew-enabled button:disabled { cursor: default; }
.crew-enabled .workspace-nav { padding: 20px 10px; }
.crew-enabled .workspace-nav [role="tab"] { padding: 12px 9px; font-size: 11px; }
.crew-enabled .workspace-team { padding-left: 5px; }
.crew-enabled .workspace-footnote { background: #fcfdff; color: #687891; }
[data-crew-demo] { color: var(--crew-ink); position: relative; min-width: 0; }
.crew-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 26px 18px; }
.crew-heading h3 { font-size: 21px; line-height: 1.3; font-weight: 650; letter-spacing: 0; }
.crew-activity { font-size: 12px; line-height: 1.5; color: var(--crew-muted); margin: 6px 0 0; min-height: 18px; }
.crew-transport, .crew-email-tools { display: flex; gap: 3px; flex-shrink: 0; }
.crew-tool { width: 34px; height: 34px; border: 1px solid transparent; background: transparent; border-radius: 6px; display: grid; place-items: center; cursor: pointer; transition: background 160ms, border-color 160ms; }
.crew-tool img { width: 16px; height: 16px; opacity: .6; }
.crew-tool:hover:not(:disabled) { background: #edf3ff; border-color: #dbe5fb; }
.crew-tool:disabled { opacity: .3; }
.crew-view-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 26px; border-bottom: 1px solid var(--crew-line); }
.crew-view-tabs { display: flex; gap: 20px; min-width: 0; }
.crew-view-tabs button { position: relative; min-height: 44px; display: flex; align-items: center; gap: 7px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #687991; padding: 8px 0; font-size: 12px; font-weight: 550; cursor: pointer; white-space: nowrap; }
.crew-view-tabs button img { width: 15px; height: 15px; opacity: .55; }
.crew-view-tabs button[aria-selected="true"] { color: var(--brand-blue); border-bottom-color: var(--brand-blue); }
.crew-view-tabs button.has-draft::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #248768; }
.crew-people { display: flex; padding-left: 6px; }
.crew-people > span { margin-left: -6px; border: 2px solid white; width: 25px; height: 25px; flex-basis: 25px; font-size: 9px; }
.crew-conversation { position: relative; }
.crew-scroll { height: 440px; overflow-y: auto; overflow-x: hidden; padding: 26px 26px 18px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #ccd8ed transparent; scroll-behavior: auto; }
.crew-thread { display: flex; flex-direction: column; gap: 25px; }
.crew-message { display: flex; align-items: flex-start; gap: 11px; min-width: 0; }
.crew-message > .person-avatar, .crew-message > .agent-avatar { width: 31px; height: 31px; flex-basis: 31px; font-size: 11px; }
.crew-message-body { flex: 1; min-width: 0; }
.crew-message-by { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; margin: 2px 0 6px; font-size: 13px; }
.crew-message-by strong { font-weight: 650; }
.crew-role { color: #8590a3; font-size: 10px; }
.crew-message-text { margin: 0; max-width: 660px; font-size: 15px; line-height: 1.8; color: #41536e; overflow-wrap: anywhere; white-space: pre-wrap; }
.crew-message[data-author="grace"] .crew-message-text { display: inline-block; background: #f0f4fb; padding: 9px 13px; border-radius: 0 8px 8px 8px; }
.crew-message[data-author="captain"] .crew-message-text { color: var(--ink); }
.crew-mention { display: inline; color: var(--brand-blue); background: #edf3ff; padding: 1px 3px; border-radius: 3px; white-space: nowrap; font-weight: 500; }
.crew-source-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.crew-source-chips > span { display: inline-flex; align-items: center; gap: 4px; color: #65738a; border: 1px solid #e4e9f0; border-radius: 4px; padding: 4px 6px; font-size: 9px; }
.crew-source-chips img { width: 11px; height: 11px; opacity: .5; }
.crew-checks { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 10px; }
.crew-checks span { color: #34745c; font-size: 10px; display: inline-flex; align-items: center; gap: 4px; }
.crew-checks img { width: 12px; height: 12px; }
.crew-attachment { display: flex; align-items: center; gap: 9px; width: 100%; max-width: 390px; margin: 14px 0 0; padding: 14px; border: 1px solid #d7e2fa; border-radius: 6px; background: #f7faff; text-align: left; cursor: pointer; color: #204a9a; transition: background 150ms, border-color 150ms; }
.crew-attachment:hover { background: #edf3ff; border-color: #aec4f5; }
.crew-attachment img { width: 18px; height: 18px; flex-shrink: 0; }
.crew-attachment span { font-size: 12px; font-weight: 600; }
.crew-attachment small { margin-left: auto; font-size: 9px; color: #687da2; }
.crew-attachment img:last-child { width: 14px; height: 14px; opacity: .6; }
.crew-typing { display: flex; align-items: center; gap: 10px; margin-top: 24px; color: #7788a0; font-size: 10px; }
.crew-typing > .person-avatar, .crew-typing > .agent-avatar { width: 25px; height: 25px; flex-basis: 25px; font-size: 9px; }
.crew-typing-dots { display: flex; gap: 3px; }
.crew-typing-dots i { width: 4px; height: 4px; border-radius: 50%; background: #5279c6; animation: crew-dot 1.3s ease-in-out infinite; }
.crew-typing-dots i:nth-child(2) { animation-delay: .15s; }
.crew-typing-dots i:nth-child(3) { animation-delay: .3s; }
.crew-typing-dots.is-paused i { animation-play-state: paused; }
.crew-latest { position: absolute; bottom: 160px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; align-items: center; background: #fff; border: 1px solid #dbe3ef; padding: 7px 11px; border-radius: 6px; box-shadow: 0 4px 12px #16336712; color: #2a559f; cursor: pointer; font-size: 10px !important; white-space: nowrap; }
.crew-latest img { width: 13px; height: 13px; }
.crew-composer { position: relative; padding: 16px 22px 14px; border-top: 1px solid var(--crew-line); background: white; }
.crew-suggestions { position: absolute; bottom: calc(100% - 5px); left: 22px; right: 22px; z-index: 5; display: grid; gap: 2px; padding: 5px; border: 1px solid #d9e3f3; border-radius: 8px; background: #fff; box-shadow: 0 12px 32px #14356d18; animation: crew-enter 180ms ease-out; }
.crew-suggestion { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: 14px; padding: 12px; min-height: 46px; border: 0; color: #294e85; background: white; border-radius: 4px; font-size: 12px !important; cursor: pointer; transition: background 150ms; text-align: left; }
.crew-suggestion:hover, .crew-suggestion:focus-visible { background: #eef4ff; }
.crew-suggestion img { width: 16px; height: 16px; opacity: .5; flex-shrink: 0; }
.crew-input-wrap { display: flex; align-items: center; border: 1px solid #d7e1f2; border-radius: 7px; padding: 6px 8px 6px 13px; background: #fff; box-shadow: 0 3px 10px #1c3d6c05; transition: border-color 160ms, box-shadow 160ms; }
.crew-input-wrap:focus-within { border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(var(--brand-blue-rgb), 0.06); }
.crew-input-wrap textarea { width: 100%; min-width: 0; resize: none; min-height: 45px; height: 45px; padding: 5px 8px 3px 0; color: var(--ink); background: transparent; font-size: 14px; line-height: 1.55; border: 0; outline: none !important; }
.crew-input-wrap textarea::placeholder { color: #8494af; }
.crew-input-wrap textarea:disabled { -webkit-text-fill-color: #8494af; opacity: 1; }
.crew-send { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; background: var(--crew-blue); border: 0; border-radius: 5px; cursor: pointer; box-shadow: 0 3px 7px rgba(var(--brand-blue-rgb), 0.16); transition: transform 150ms, opacity 150ms; }
.crew-send img { width: 19px; height: 19px; filter: brightness(0) invert(1); }
.crew-send:hover:not(:disabled) { transform: translateX(2px); }
.crew-send:disabled { opacity: .28; box-shadow: none; }
.crew-composer-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 9px; font-size: 10px; color: #718098; }
.crew-model-control { display: flex; gap: 7px; align-items: center; min-width: 0; }
.crew-model-label { color: #75869e; white-space: nowrap; }
.crew-model { min-width: 0; max-width: 165px; padding: 7px 2px; background: transparent; border: 0; color: #456080; border-radius: 4px; font-size: 11px; cursor: pointer; }
.crew-model:disabled { opacity: .6; }
.crew-audit { display: grid; grid-template-columns: 20px 1fr; gap: 6px 10px; padding: 20px 0; border-top: 1px solid #e1e9f3; margin-top: 20px; }
.crew-audit img { width: 20px; height: 20px; }
.crew-audit strong { font-size: 13px; color: #276751; }
.crew-audit p { grid-column: 2; font-size: 12px; color: #65758e; margin: 0; }
.crew-inspector { padding: 26px 20px 20px; background: #fbfcfe; }
.crew-inspector > h4 { font-size: 9px; color: #76849b; font-weight: 600; margin: 0 0 16px; }
.crew-roster { display: flex; flex-direction: column; gap: 17px; }
.crew-member { display: flex; align-items: center; gap: 9px; }
.crew-member > .agent-avatar, .crew-member > .person-avatar { width: 30px; height: 30px; flex-basis: 30px; font-size: 10px; }
.crew-member > div { flex: 1; min-width: 0; }
.crew-member strong { display: block; font-size: 11px; color: #344666; font-weight: 600; }
.crew-member small { display: block; font-size: 9px; color: #8b97aa; margin-top: 2px; }
.crew-member-status { width: 16px; height: 16px; display: grid; place-items: center; }
.crew-member-status i { width: 5px; height: 5px; border-radius: 50%; background: #cbd5e4; }
.crew-member-status img { width: 14px; height: 14px; opacity: .6; }
.crew-member[data-state="working"] strong { color: var(--brand-blue); }
.crew-member[data-state="working"] .crew-member-status i { background: var(--brand-blue); box-shadow: 0 0 0 3px #e8efff; }
.crew-output { margin-top: 28px; padding-top: 24px; border-top: 1px solid #e0e7f2; }
.crew-output-eyebrow { font-size: 9px; color: #7e8da6; margin: 0 0 14px; }
.crew-output-icon { width: 35px; height: 35px; border-radius: 6px; background: #e8efff; display: grid; place-items: center; margin-bottom: 12px; }
.crew-output-icon img { width: 18px; height: 18px; opacity: .5; }
.crew-output h4 { margin: 0 0 7px; color: #2b3f63; font-size: 12px; }
.crew-output-copy { font-size: 11px; line-height: 1.65; color: #8794a9; margin: 0; min-height: 37px; }
.crew-output-lines { display: grid; gap: 7px; margin: 18px 0; }
.crew-output-lines span { height: 4px; border-radius: 2px; background: #e8edf5; width: 92%; }
.crew-output-lines span:nth-child(2) { width: 75%; }
.crew-output-lines span:nth-child(4) { width: 48%; }
.crew-output[data-ready="true"] .crew-output-lines span { background: #d7e4fd; }
.crew-output[data-ready="true"] .crew-output-eyebrow { color: #29846b; }
.crew-output-open { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: 8px; border: 1px solid #dce4f2; width: 100%; min-height: 38px; background: white; padding: 9px 12px; border-radius: 5px; font-size: 11px !important; color: var(--brand-blue); cursor: pointer; }
.crew-output-open img { width: 14px; height: 14px; }
.crew-output-open:disabled { opacity: .45; }
.crew-output-open:hover:not(:disabled) { background: #f0f5ff; }
.crew-inspector .crew-source-title { margin-top: 25px; margin-bottom: 12px; }
.crew-sources { display: grid; gap: 11px; }
.crew-sources > div { display: flex; align-items: center; gap: 7px; font-size: 10px; color: #7e8ea6; }
.crew-sources img { width: 13px; height: 13px; opacity: .4; }
.crew-privacy { display: flex; gap: 5px; align-items: flex-start; font-size: 9px; line-height: 1.7; color: #8997ad; margin-top: 22px; }
.crew-privacy img { width: 11px; height: 11px; margin-top: 2px; opacity: .4; }
.crew-email-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 24px; border-bottom: 1px solid var(--crew-line); min-height: 52px; }
.crew-email-status { font-size: 11px; color: #78869b; }
.crew-email-document { padding: 0 24px 24px; height: 425px; overflow: auto; overscroll-behavior: contain; background: #f6f8fc; scrollbar-width: thin; }
.crew-mail-meta { padding: 18px 0; display: grid; gap: 8px; }
.crew-mail-meta > div { display: grid; grid-template-columns: 49px 1fr; gap: 10px; font-size: 11px; }
.crew-mail-meta span { color: #8895aa; }
.crew-mail-meta strong { font-weight: 500; color: #405675; overflow-wrap: anywhere; }
.crew-mail-paper { border: 1px solid #e0e6f0; background: white; box-shadow: 0 8px 20px #193f8410; }
.crew-mail-masthead { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 23px 28px; background: #142d51; color: white; }
.crew-mail-masthead strong { font-size: 15px; font-weight: 550; }
.crew-mail-masthead span { font-size: 8px; color: #bcd2ee; }
.crew-mail-body { padding: 27px 28px 12px; }
.crew-mail-body p { font-size: 14px; line-height: 1.9; color: #475a75; margin: 0 0 17px; white-space: pre-wrap; overflow-wrap: anywhere; }
.crew-mail-body h4 { font-family: Georgia, serif; font-weight: 400; font-size: 28px; line-height: 1.25; color: var(--ink); margin: 0 0 21px; }
.crew-mail-signature { display: flex; gap: 8px; align-items: center; padding: 17px 28px; border-top: 1px solid #edf1f7; color: #8492a6; font-size: 10px; }
.crew-mail-signature .person-avatar { width: 24px; height: 24px; flex-basis: 24px; font-size: 9px; }
.crew-email-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 24px; border-top: 1px solid var(--crew-line); }
.crew-email-footer p { max-width: 250px; font-size: 10px; line-height: 1.6; color: #7f8fa6; margin: 0; }
.crew-primary, .crew-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 15px; min-height: 40px; border-radius: 5px; border: 1px solid var(--brand-blue); background: var(--brand-blue); color: white; font-size: 11px !important; font-weight: 550 !important; white-space: nowrap; cursor: pointer; transition: background 160ms; }
.crew-primary img, .crew-secondary img { width: 14px; height: 14px; }
.crew-primary img { filter: brightness(0) invert(1); }
.crew-primary:hover:not(:disabled) { background: var(--brand-blue-hover); }
.crew-primary:disabled { opacity: .5; }
.crew-secondary { color: #3b5a85; border-color: #d8e1ef; background: white; }
.crew-secondary:hover { background: #f3f7fe; }
[data-crew-state="approved"] .crew-email-footer { background: #f3faf6; }
[data-crew-state="approved"] .crew-email-footer .crew-primary { background: #2f785c; border-color: #2f785c; opacity: 1; }
.crew-email-empty { min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.crew-email-empty > img { width: 34px; height: 34px; opacity: .25; margin-bottom: 19px; }
.crew-email-empty h4 { font-size: 17px; line-height: 1.5; font-weight: 550; max-width: 270px; }
.crew-email-empty p { color: #8a99b0; font-size: 11px; max-width: 270px; line-height: 1.8; margin-top: 10px; }
.crew-email-empty button { margin-top: 24px; }
.crew-editor { padding: 20px 24px; }
.crew-editor label { display: block; font-size: 11px; color: #657997; margin-bottom: 7px; }
.crew-editor input, .crew-editor textarea { width: 100%; border: 1px solid #d7e1f0; color: #2d4366; border-radius: 5px; background: #fff; padding: 10px 12px; font-size: 13px; line-height: 1.65; margin-bottom: 17px; }
.crew-editor textarea { min-height: 285px; resize: vertical; }
.crew-editor-actions { display: flex; gap: 9px; }
.crew-feedback { margin: 0; padding: 10px 24px; font-size: 11px; color: #34604c; background: #f0f7f3; }
.crew-approval-link { margin-top: 18px; }
.crew-message.is-new { animation: crew-enter 350ms cubic-bezier(.2,.7,.2,1) both; }
@keyframes crew-enter { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes crew-dot { 0%,80%,100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
@media (max-width: 1200px) {
  .crew-enabled .connected-body { grid-template-columns: 155px minmax(0,1fr) 228px; }
  .crew-inspector { padding: 24px 15px; }
  .crew-people { display: none; }
  .crew-heading { padding: 23px 20px 17px; gap: 8px; }
  .crew-heading h3 { font-size: 19px; }
  .crew-view-bar { padding-left: 20px; padding-right: 20px; }
  .crew-scroll { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 1000px) {
  .crew-enabled .connected-body { grid-template-columns: 155px minmax(0,1fr); }
  .crew-enabled .crew-inspector { display: none; }
  .crew-people { display: flex; }
}
@media (max-width: 650px) {
  .crew-enabled .connected-body { display: block; }
  .crew-enabled .connected-title { padding: 15px; gap: 8px; }
  .crew-enabled .workspace-brand { font-size: 12px; gap: 9px; }
  .crew-enabled .workspace-brand > strong { font-size: 10px; }
  .crew-enabled .sample-label { font-size: 8px; }
  .crew-enabled .workspace-nav { display: flex; flex-direction: row; padding: 8px; overflow-x: auto; scrollbar-width: thin; scroll-padding-inline: 8px; }
  .crew-enabled .workspace-nav [role="tab"] { flex: 1 0 68px; }
  .crew-enabled .workspace-nav [role="tab"] { padding: 9px 5px; min-height: 43px; font-size: 9px; gap: 5px; }
  .crew-enabled .workspace-panel { min-height: 630px; }
  .crew-heading { padding: 20px 16px 12px; align-items: flex-start; }
  .crew-heading h3 { font-size: 18px; max-width: 210px; }
  .crew-activity { font-size: 10px; min-height: 30px; max-width: 220px; }
  .crew-transport { gap: 0; }
  .crew-tool { width: 30px; height: 36px; }
  .crew-tool img { width: 14px; height: 14px; }
  .crew-people { display: none; }
  .crew-view-bar { padding: 0 16px; }
  .crew-view-tabs { gap: 19px; }
  .crew-view-tabs button { font-size: 11px; min-height: 44px; }
  .crew-scroll { padding: 22px 16px 18px; height: 360px; }
  .crew-message { gap: 8px; }
  .crew-message > .person-avatar, .crew-message > .agent-avatar { width: 26px; height: 26px; flex-basis: 26px; font-size: 10px; }
  .crew-message-by { font-size: 11px; gap: 5px; }
  .crew-message-text { font-size: 12px; line-height: 1.85; }
  .crew-role { font-size: 9px; }
  .crew-composer { padding: 13px 13px 12px; }
  .crew-suggestions { left: 13px; right: 13px; }
  .crew-suggestion { font-size: 12px !important; min-height: 48px; }
  .crew-input-wrap textarea { font-size: 16px; height: 51px; min-height: 51px; }
  .crew-send { width: 40px; height: 40px; flex-basis: 40px; }
  .crew-composer-meta { font-size: 8px; }
  .crew-model { max-width: 155px; min-height: 36px; font-size: 12px; }
  .crew-latest { bottom: 157px; }
  .crew-attachment { padding: 11px; gap: 7px; flex-wrap: wrap; }
  .crew-attachment span { font-size: 11px; }
  .crew-attachment small { margin-left: 25px; }
  .crew-attachment img:last-child { margin-left: auto; }
  .crew-email-toolbar { padding: 8px 15px; }
  .crew-email-document { padding: 0 13px 18px; height: 397px; }
  .crew-mail-meta > div { font-size: 10px; grid-template-columns: 40px 1fr; gap: 6px; }
  .crew-mail-masthead { padding: 20px 17px; gap: 8px; }
  .crew-mail-masthead strong { font-size: 12px; }
  .crew-mail-masthead span { font-size: 7px; }
  .crew-mail-body { padding: 22px 17px 10px; }
  .crew-mail-body h4 { font-size: 25px; }
  .crew-mail-body p { font-size: 12px; }
  .crew-mail-signature { padding: 15px 17px; font-size: 8px; }
  .crew-email-footer { padding: 14px; gap: 12px; align-items: flex-start; }
  .crew-email-footer p { font-size: 9px; }
  .crew-email-footer .crew-primary { padding: 10px; min-height: 44px; font-size: 10px !important; }
  .crew-editor { padding: 17px 15px; }
  .crew-editor input, .crew-editor textarea { font-size: 16px; }
  .crew-feedback { padding: 10px 15px; font-size: 10px; }
}
@media (max-width: 360px) {
  .crew-heading h3 { font-size: 16px; }
  .crew-transport .crew-tool { width: 27px; }
  .crew-enabled .connected-title .sample-label { max-width: 55px; text-align: right; }
  .crew-enabled .workspace-nav [role="tab"] { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .crew-enabled *, .crew-enabled *::before, .crew-enabled *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
