/* 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: "Mona Sans", "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --bos-font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
  --color-text-link: light-dark(#272b69, #b9bdf3);
  --color-text-link-hover: light-dark(#3b3e42, #e4e4e4);
  --color-text-link-active: light-dark(#3b3e42, #e4e4e4);
  --color-text-link-decoration: light-dark(color-mix(in srgb, #272b69 30%, transparent), color-mix(in srgb, #b9bdf3 30%, transparent));
  --color-text-link-decoration-hover: light-dark(color-mix(in srgb, #3b3e42 60%, transparent), color-mix(in srgb, #e4e4e4 60%, transparent));
  --color-markdown-link: light-dark(#272b69, #b9bdf3);
  --color-markdown-link-hover: light-dark(#3b3e42, #e4e4e4);
  --color-markdown-code-link: light-dark(#272b69, #b9bdf3);
  --color-markdown-code-link-hover: light-dark(#3b3e42, #e4e4e4);
  --color-text-generic-link: light-dark(#272b69, #b9bdf3);
  --color-text-generic-link-interactive: light-dark(#3b3e42, #e4e4e4);
  --color-background-brand-solid-action-button: light-dark(#1a1c1e, #fafafa);
  --color-background-brand-solid-action-button-hover: light-dark(#3b3e42, #e4e4e4);
  --color-background-brand-solid-action-button-active: light-dark(#3b3e42, #e4e4e4);
  --color-text-brand-solid-action-button: light-dark(#ffffff, #1a1c1e);
  --color-text-brand-subtle-action-button: light-dark(#272b69, #b9bdf3);
  --color-background-brand-subtle-action-button: light-dark(color-mix(in srgb, #1a1c1e 12%, transparent), color-mix(in srgb, #fafafa 12%, transparent));
  --color-background-brand-subtle-action-button-hover: light-dark(color-mix(in srgb, #1a1c1e 20%, transparent), color-mix(in srgb, #fafafa 20%, transparent));
  --color-background-brand-subtle-action-button-active: light-dark(color-mix(in srgb, #1a1c1e 28%, transparent), color-mix(in srgb, #fafafa 28%, transparent));
  --color-text-brand-text-action-button: light-dark(#272b69, #b9bdf3);
  --color-background-brand-text-action-button-hover: light-dark(color-mix(in srgb, #1a1c1e 12%, transparent), color-mix(in srgb, #fafafa 12%, transparent));
  --color-background-brand-text-action-button-active: light-dark(color-mix(in srgb, #1a1c1e 20%, transparent), color-mix(in srgb, #fafafa 20%, transparent));
  --color-text-brand-icon-button: light-dark(color-mix(in srgb, #272b69 75%, transparent), color-mix(in srgb, #b9bdf3 75%, transparent));
  --color-text-brand-icon-button-hover: light-dark(#272b69, #b9bdf3);
  --color-text-brand-icon-button-active: light-dark(#272b69, #b9bdf3);
  --color-text-brand-icon-button-square-active: light-dark(#272b69, #b9bdf3);
  --color-background-brand-icon-button-square-hover: light-dark(color-mix(in srgb, #1a1c1e 12%, transparent), color-mix(in srgb, #fafafa 12%, transparent));
  --color-background-brand-icon-button-square-active: light-dark(color-mix(in srgb, #1a1c1e 20%, transparent), color-mix(in srgb, #fafafa 20%, transparent));
  --color-background-modal-confirm-button: light-dark(#1a1c1e, #fafafa);
  --color-background-modal-confirm-button-hover: light-dark(#3b3e42, #e4e4e4);
  --color-background-modal-confirm-button-active: light-dark(#3b3e42, #e4e4e4);
  --color-background-brand-banner: light-dark(#fbf8e9, #272b4f);
  --color-border-brand-banner: light-dark(color-mix(in srgb, #1a1c1e 35%, transparent), color-mix(in srgb, #fafafa 35%, transparent));
  --color-text-brand-banner: light-dark(#272b69, #b9bdf3);
  --color-compose-send-button-background: light-dark(#1a1c1e, #fafafa);
  --color-compose-send-button-background-interactive: light-dark(#3b3e42, #e4e4e4);
  --color-compose-send-button-icon-color: light-dark(#ffffff, #1a1c1e);
  --color-compose-send-control-button: light-dark(#272b69, #b9bdf3);
  --color-compose-send-control-button-interactive: light-dark(#3b3e42, #e4e4e4);
  --color-compose-send-control-button-background-interactive: light-dark(color-mix(in srgb, #1a1c1e 10%, transparent), color-mix(in srgb, #fafafa 10%, transparent));
  --color-outline-focus: light-dark(#272b69, #b9bdf3);
  --color-hotkey-hint: light-dark(#272b69, #b9bdf3);
  --color-text-default: light-dark(#1a1c1e, #efefef);
  --color-link: light-dark(#272b69, #b9bdf3);
  --color-link-hover: light-dark(#3b3e42, #e4e4e4);
  --color-link-portico-auth: light-dark(#272b69, #b9bdf3);
  --color-link-portico-auth-hover: light-dark(#3b3e42, #e4e4e4);
  --color-link-underline: light-dark(color-mix(in srgb, #272b69 30%, transparent), color-mix(in srgb, #b9bdf3 30%, transparent));
  --color-link-underline-hover: light-dark(#3b3e42, #e4e4e4);
  --color-action-button: light-dark(#1a1c1e, #fafafa);
  --color-action-button-hover: light-dark(#3b3e42, #e4e4e4);
  --color-action-button-active: light-dark(#3b3e42, #e4e4e4);
  --color-action-button-subtle-hover: light-dark(#fbf8e9, #272b4f);
  --color-action-button-subtle-active: light-dark(color-mix(in srgb, #1a1c1e 20%, transparent), color-mix(in srgb, #fafafa 20%, transparent));
}

/* Mona Sans, rooman.com's typeface (SIL OFL 1.1, fonts/OFL.txt), served from Zulip's /local-static/ */
@font-face {
  font-family: "Mona Sans";
  font-style: normal;
  font-weight: 200 900;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("fonts/mona-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Mona Sans";
  font-style: normal;
  font-weight: 200 900;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("fonts/mona-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+20B9, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Fonts: Mona Sans (Inter next) for text, JetBrains Mono for code (fonts.css from the brand host) */
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;
}

/* Zulip forces white text on dialog confirm buttons: the BOS on-primary colour instead (ink buttons in light,
   light buttons in dark) */
.dialog_submit_button:not(.dangerous_action_button) {
  color: light-dark(#ffffff, #1a1c1e) !important;
}

/* rooman.com's pill-shaped buttons */
.action-button {
  border-radius: 999px;
}

/* The BOS mark instead of Zulip's logo: the marker at the start of every conversation (and the loading
   marker under it), and the About box */
.top-messages-logo,
.bottom-messages-logo {
  background: url("img/bos-mark.svg") center / contain no-repeat content-box;
}
.top-messages-logo svg,
.bottom-messages-logo svg {
  visibility: hidden;
}
.top-messages-logo.loading,
.bottom-messages-logo.loading {
  opacity: 0.45;
}
.about-zulip-logo img {
  content: url("img/bos-mark.svg");
  height: 56px;
}

/* 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: #1a1c1e;
  --color-links: #b9bdf3;
}
.error_page {
  background-color: #fafafa;
}
.error_page img {
  display: none;
}
.error_page .errorbox {
  border: 1px solid #e4e4e4;
  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: #1a1c1e;
  font-size: 28px;
  font-weight: 650;
}
.error_page p {
  color: #444748;
}
.error_page a {
  color: #272b69;
}
.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: #121314;
    color: #efefef;
  }
  body:has(.error_page) .header a {
    color: #efefef;
  }
  .error_page .errorbox {
    background-color: #1c1e21;
    border-color: #303336;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 4px 16px rgba(0, 0, 0, 0.3);
  }
  .error_page .lead {
    color: #f6f6f4;
  }
  .error_page p {
    color: #b9bbbe;
  }
  .error_page a {
    color: #b9bdf3;
  }
}

/* The BOS sign-in page (zulip-bos/login.html; layout from signin/bos-signin.css) */
body:has(.bos-signin) {
  margin: 0;
  background: #fafafa;
}
@media (prefers-color-scheme: dark) {
  body:has(.bos-signin) {
    background: #121314;
  }
}
.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);
}
