/* GENERATED by deploy/aws-dev/chat/theme/make_theme.py from brand/theme/bos-tokens.css. Do not edit:
   change the tokens (or the map in the script) and rerun it. BOS Chat theme (BUSINESS-692), loaded after
   Zulip's own CSS on every page by templates/zerver/base.html (post-setup.d/50-bos-theme.sh). */

/* Zulip's colour variables -> BOS tokens. light-dark() follows Zulip's theme setting (light, dark, or
   automatic = the OS), because Zulip sets color-scheme on <html>. :root:root:root beats Zulip's
   :root.dark-theme. */
:root:root:root {
  --bos-font-sans: "Inter", "Segoe UI", system-ui, -apple-system, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --bos-font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
  --color-text-link: light-dark(#27449a, #aebff5);
  --color-text-link-hover: light-dark(#1f3780, #a5b8f2);
  --color-text-link-active: light-dark(#1f3780, #a5b8f2);
  --color-text-link-decoration: light-dark(color-mix(in srgb, #27449a 30%, transparent), color-mix(in srgb, #aebff5 30%, transparent));
  --color-text-link-decoration-hover: light-dark(color-mix(in srgb, #1f3780 60%, transparent), color-mix(in srgb, #a5b8f2 60%, transparent));
  --color-markdown-link: light-dark(#27449a, #aebff5);
  --color-markdown-link-hover: light-dark(#1f3780, #a5b8f2);
  --color-markdown-code-link: light-dark(#27449a, #aebff5);
  --color-markdown-code-link-hover: light-dark(#1f3780, #a5b8f2);
  --color-text-generic-link: light-dark(#27449a, #aebff5);
  --color-text-generic-link-interactive: light-dark(#1f3780, #a5b8f2);
  --color-background-brand-solid-action-button: light-dark(#27449a, #8aa2ec);
  --color-background-brand-solid-action-button-hover: light-dark(#1f3780, #a5b8f2);
  --color-background-brand-solid-action-button-active: light-dark(#1f3780, #a5b8f2);
  --color-text-brand-solid-action-button: light-dark(#ffffff, #0e1222);
  --color-text-brand-subtle-action-button: light-dark(#27449a, #aebff5);
  --color-background-brand-subtle-action-button: light-dark(color-mix(in srgb, #27449a 12%, transparent), color-mix(in srgb, #8aa2ec 12%, transparent));
  --color-background-brand-subtle-action-button-hover: light-dark(color-mix(in srgb, #27449a 20%, transparent), color-mix(in srgb, #8aa2ec 20%, transparent));
  --color-background-brand-subtle-action-button-active: light-dark(color-mix(in srgb, #27449a 28%, transparent), color-mix(in srgb, #8aa2ec 28%, transparent));
  --color-text-brand-text-action-button: light-dark(#27449a, #aebff5);
  --color-background-brand-text-action-button-hover: light-dark(color-mix(in srgb, #27449a 12%, transparent), color-mix(in srgb, #8aa2ec 12%, transparent));
  --color-background-brand-text-action-button-active: light-dark(color-mix(in srgb, #27449a 20%, transparent), color-mix(in srgb, #8aa2ec 20%, transparent));
  --color-text-brand-icon-button: light-dark(color-mix(in srgb, #27449a 75%, transparent), color-mix(in srgb, #aebff5 75%, transparent));
  --color-text-brand-icon-button-hover: light-dark(#27449a, #aebff5);
  --color-text-brand-icon-button-active: light-dark(#27449a, #aebff5);
  --color-text-brand-icon-button-square-active: light-dark(#27449a, #aebff5);
  --color-background-brand-icon-button-square-hover: light-dark(color-mix(in srgb, #27449a 12%, transparent), color-mix(in srgb, #8aa2ec 12%, transparent));
  --color-background-brand-icon-button-square-active: light-dark(color-mix(in srgb, #27449a 20%, transparent), color-mix(in srgb, #8aa2ec 20%, transparent));
  --color-background-brand-banner: light-dark(#e8edf8, #22305e);
  --color-border-brand-banner: light-dark(color-mix(in srgb, #27449a 35%, transparent), color-mix(in srgb, #8aa2ec 35%, transparent));
  --color-text-brand-banner: light-dark(#27449a, #aebff5);
  --color-compose-send-button-background: light-dark(#27449a, #8aa2ec);
  --color-compose-send-button-background-interactive: light-dark(#1f3780, #a5b8f2);
  --color-compose-send-button-icon-color: light-dark(#ffffff, #0e1222);
  --color-compose-send-control-button: light-dark(#27449a, #aebff5);
  --color-compose-send-control-button-interactive: light-dark(#1f3780, #a5b8f2);
  --color-compose-send-control-button-background-interactive: light-dark(color-mix(in srgb, #27449a 10%, transparent), color-mix(in srgb, #8aa2ec 10%, transparent));
  --color-outline-focus: light-dark(#27449a, #a5b8f2);
  --color-hotkey-hint: light-dark(#27449a, #aebff5);
  --color-text-default: light-dark(#1b2340, #e8ebf5);
  --color-link: light-dark(#27449a, #aebff5);
  --color-link-hover: light-dark(#1f3780, #a5b8f2);
  --color-link-portico-auth: light-dark(#27449a, #aebff5);
  --color-link-portico-auth-hover: light-dark(#1f3780, #a5b8f2);
  --color-link-underline: light-dark(color-mix(in srgb, #27449a 30%, transparent), color-mix(in srgb, #aebff5 30%, transparent));
  --color-link-underline-hover: light-dark(#1f3780, #a5b8f2);
  --color-action-button: light-dark(#27449a, #8aa2ec);
  --color-action-button-hover: light-dark(#1f3780, #a5b8f2);
  --color-action-button-active: light-dark(#1f3780, #a5b8f2);
  --color-action-button-subtle-hover: light-dark(#e8edf8, #22305e);
  --color-action-button-subtle-active: light-dark(color-mix(in srgb, #27449a 20%, transparent), color-mix(in srgb, #8aa2ec 20%, transparent));
}

/* Fonts: Inter for text, JetBrains Mono for code (fonts.css from the brand host, linked before this file) */
body,
button,
input,
select,
textarea,
[data-tippy-root],
.error_page,
.new-style button,
.new-style .input-box input,
.new-style .input-box select,
.new-style .input-box textarea,
.billing-upgrade-page,
.button {
  font-family: var(--bos-font-sans) !important;
}
code,
pre,
kbd,
.operator,
.operator_value,
.stream-email,
#api_key_value,
#generate-integration-url-modal .integration-url,
.api-argument .api-argument-name,
.desktop-redirect-box #desktop-data,
.help .markdown pre,
.markdown code,
.stacktrace .stacktrace-content,
.stacktrace .stacktrace-more-info {
  font-family: var(--bos-font-mono) !important;
}

/* Error pages (404, 4xx, 500 and the portico error pages): a plain BOS card instead of Zulip's teal
   aquarium, and the footer bar in the brand navy */
:root:root:root {
  --color-footer-background: #1b2340;
  --color-links: #aebff5;
}
.error_page {
  background-color: #f5f6fa;
}
.error_page img {
  display: none;
}
.error_page .errorbox {
  border: 1px solid #e1e6f0;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(20, 26, 46, 0.05), 0 4px 16px rgba(20, 26, 46, 0.06);
  margin-top: 48px;
  overflow: hidden;
}
.error_page .lead {
  color: #1b2340;
  font-size: 28px;
  font-weight: 650;
}
.error_page p {
  color: #4a5470;
}
.error_page a {
  color: #27449a;
}
.error_page .errorbox {
  background-color: #ffffff;
}
/* ... and in dark mode (portico pages carry no theme class on <html>, so the OS setting decides, as on
   the sign-in page): BOS dark tokens instead of Zulip's always-light error page, page and header */
@media (prefers-color-scheme: dark) {
  body:has(.error_page),
  body:has(.error_page) .header,
  .error_page {
    background-color: #0e1222;
    color: #e8ebf5;
  }
  body:has(.error_page) .header a {
    color: #e8ebf5;
  }
  .error_page .errorbox {
    background-color: #151b30;
    border-color: #283152;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 4px 16px rgba(0, 0, 0, 0.3);
  }
  .error_page .lead {
    color: #e8ebf5;
  }
  .error_page p {
    color: #b3bbd4;
  }
  .error_page a {
    color: #aebff5;
  }
}

/* The BOS sign-in page (zulip-bos/login.html; layout from signin/bos-signin.css) */
body:has(.bos-signin) {
  margin: 0;
  background: #f5f6fa;
}
@media (prefers-color-scheme: dark) {
  body:has(.bos-signin) {
    background: #0e1222;
  }
}
.bos-signin .bos-signin-org {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--bsi-border);
  border-radius: 12px;
  background: var(--bsi-surface);
}
.bos-signin .bos-signin-org img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex: none;
}
.bos-signin .bos-signin-org-name {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.bos-signin .bos-signin-org-url {
  font-size: 0.82rem;
  color: var(--bsi-text-2);
  overflow-wrap: anywhere;
}
.bos-signin form.bos-signin-sso {
  margin: 0;
}
.bos-signin .bos-signin-form[hidden] {
  display: none;
}
.bos-signin .bos-signin-password {
  position: relative;
}
.bos-signin .bos-signin-password input {
  padding-right: 48px;
}
.bos-signin .bos-signin-password .password_visibility_toggle {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--bsi-text-2);
  cursor: pointer;
}
.bos-signin .bos-signin-forgot {
  align-self: flex-end;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--bsi-text);
}
.bos-signin .bos-signin-btn .loader {
  display: none;
  width: 20px;
  height: 20px;
}
.bos-signin .bos-signin-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--bsi-text-2);
}
