:root {
  --ige-brand: #ec3013;
  --ige-brand-strong: #ae1800;
  --ige-brand-pressed: #7c1405;
  --ige-brand-soft: #fff2ef;
  --ige-ink: #201e1d;
  --ige-muted: #605d5d;
  --ige-surface: #eae9e9;
  --ige-canvas: #f3f2f2;
  --ige-field: #f8f4f4;
  --ige-border-strong: #7d7979;
}
@font-face {
  font-family: Archivo;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("./archivo.0e094a7d3c7c.ttf") format("truetype");
}

/* Override semantic colors, not message content, images or upstream controls. */
:root:root {
  --ige-bar-height: 3.25rem;
  --color-background: var(--ige-canvas);
  --color-background-navbar: var(--ige-surface);
  --color-background-modal: var(--ige-canvas);
  --color-background-modal-bar: var(--ige-surface);
  --color-background-popover: var(--ige-canvas);
  --color-background-input: var(--ige-field);
  --color-background-inbox: var(--ige-canvas);
  --color-background-inbox-row: var(--ige-field);
  --color-background-recent-view-row: var(--ige-field);
  --color-background-recent-view-table-thead-th: var(--ige-surface);
  --color-background-stream-message-content: var(--ige-field);
  --color-background-private-message-content: var(--ige-field);
  --color-background-private-message-header: var(--ige-surface);
  --color-background-brand-solid-action-button: var(--ige-brand-strong);
  --color-background-brand-solid-action-button-hover: var(--ige-brand-pressed);
  --color-background-brand-solid-action-button-active: var(--ige-brand-pressed);
  --color-text-brand-solid-action-button: #fff;
  --color-background-compose-new-message-button: var(--ige-brand-strong);
  --color-background-compose-new-message-button-hover: var(--ige-brand-pressed);
  --color-background-compose-new-message-button-active: var(--ige-brand-pressed);
  --color-compose-send-button-background: var(--ige-brand-strong);
  --color-compose-send-button-background-interactive: var(--ige-brand-pressed);
  --color-text-brand-text-action-button: var(--ige-brand-strong);
  --color-text-link: var(--ige-brand-strong);
  --color-text-link-hover: var(--ige-brand-pressed);
  --color-text-generic-link: var(--ige-brand-strong);
  --color-text-generic-link-interactive: var(--ige-brand-pressed);
  --color-markdown-link: var(--ige-brand-strong);
  --color-markdown-link-hover: var(--ige-brand-pressed);
  --color-recent-view-link: var(--ige-ink);
  --color-recent-view-link-unread: var(--ige-brand-strong);
  --color-background-navigation-item-hover: var(--ige-brand-soft);
  --color-background-unread-counter-normal: var(--ige-brand-strong);
  --color-background-unread-counter-prominent: var(--ige-brand-strong);
  --color-navbar-bottom-border: var(--ige-border-strong);
  --color-text-default: var(--ige-ink);
}

/* Preserve the user's dark/automatic preference instead of forcing a light UI. */
:root.color-scheme-automatic {
  color-scheme: light dark;
}
:root.dark-theme {
  color-scheme: dark;
  --ige-ink: #f3f2f2;
  --ige-muted: #c7c3c2;
  --ige-canvas: #201e1d;
  --ige-surface: #2e2b2a;
  --ige-field: #292625;
  --ige-brand-soft: #462720;
  --ige-border-strong: #8f8987;
  --color-text-link: #ff9b89;
  --color-text-link-hover: #ffc2b7;
  --color-text-generic-link: #ff9b89;
  --color-markdown-link: #ff9b89;
  --color-text-brand-text-action-button: #ff9b89;
  --color-recent-view-link-unread: #ff9b89;
}
@media (prefers-color-scheme: dark) {
  :root.color-scheme-automatic {
    --ige-ink: #f3f2f2;
    --ige-muted: #c7c3c2;
    --ige-canvas: #201e1d;
    --ige-surface: #2e2b2a;
    --ige-field: #292625;
    --ige-brand-soft: #462720;
    --ige-border-strong: #8f8987;
    --color-text-link: #ff9b89;
    --color-text-link-hover: #ffc2b7;
    --color-text-generic-link: #ff9b89;
    --color-markdown-link: #ff9b89;
    --color-text-brand-text-action-button: #ff9b89;
    --color-recent-view-link-unread: #ff9b89;
  }
}

body.ige-theme,
.ige-theme button,
.ige-theme input,
.ige-theme select,
.ige-theme textarea,
.ige-theme h1,
.ige-theme h2,
.ige-theme h3 {
  font-family: Archivo, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.ige-theme {
  color: var(--ige-ink);
  background: var(--ige-canvas);
}
.ige-theme :is(button, input, select, textarea, .white-box, .modal-content, .dropdown-menu) {
  border-radius: 0 !important;
}
.ige-theme :focus-visible {
  outline: 2px solid var(--ige-brand);
  outline-offset: 2px;
}
body.ige-chat {
  --navbar-fixed-height: calc(
    var(--header-height) +
    var(--navbar-alerts-wrapper-height) +
    var(--ige-bar-height)
  );
}
.ige-chat #navbar-fixed-container {
  top: var(--ige-bar-height);
}
.ige-chat #legacy-closed-compose-box :is(.compose_mobile_button, #new_direct_message_button) {
  color: #fff;
}
.ige-community-bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 103;
  box-sizing: border-box;
  height: var(--ige-bar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 1rem;
  background: var(--ige-canvas);
  border-bottom: 1px solid var(--ige-border-strong);
}
.ige-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
  color: var(--ige-ink);
  font-size: 1rem;
  font-weight: 750;
  text-decoration: none;
}
.ige-brand img {
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
}
.ige-brand-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ige-return-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 2.75rem;
  padding: 0 0.5rem;
  color: var(--color-text-link);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.dark-theme .ige-return-link {
  color: #ff9b89;
}
.ige-portico .portico-container,
.ige-portico .portico-header {
  background: var(--ige-canvas);
  color: var(--ige-ink);
}
.ige-portico .white-box {
  background: var(--ige-surface);
  border: 1px solid var(--ige-border-strong);
  box-shadow: none;
}
body.ige-portico .app.login-page .lead h1.get-started {
  color: var(--ige-ink);
  font-weight: 750;
  letter-spacing: -0.035em;
}
.ige-portico .login-page .org-header .avatar {
  object-fit: contain;
  border-radius: 0;
}
.ige-portico .top-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.ige-portico :is(.login-social-button, .social-login-button) {
  border-radius: 0;
}
.ige-portico .login-social button.login-social-button {
  height: auto;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  line-height: 1.4;
  font-weight: 700;
  color: #fff;
  background-color: var(--ige-brand-strong);
  border: 1px solid var(--ige-brand-strong);
}
.ige-portico .login-social button.login-social-button:hover {
  background-color: var(--ige-brand-pressed);
}
body.ige-portico #footer {
  background: var(--ige-surface);
  color: var(--ige-muted);
  border-top: 1px solid var(--ige-border-strong);
}
body.ige-portico #footer a {
  color: var(--ige-brand-strong);
}
body.ige-portico #footer .copyright {
  color: var(--ige-muted);
}
@media (max-width: 600px) {
  /* Upstream's 324px sign-in columns overflow small phones once padded. */
  body.ige-portico .app.login-page {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-width: 0;
    padding-inline: 1rem;
  }
  .ige-portico .login-page > .inline-block {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .ige-portico .login-page .login-page-container.white-box {
    box-sizing: border-box;
    width: 100%;
    padding: 1rem;
  }
  .ige-portico
    .login-page
    :is(.left-side, .right-side, .login-social, .form-inline, .login-social-button) {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .ige-portico .login-page .org-header {
    display: flex;
    gap: 0.75rem;
  }
  .ige-portico .login-page .org-header .avatar {
    flex: 0 0 3rem;
    width: 3rem;
    height: 3rem;
  }
  .ige-portico .login-page .org-header .info-box {
    flex: 1;
    min-width: 0;
    width: auto;
    margin: 0;
    overflow-wrap: anywhere;
  }
  .ige-community-bar {
    padding-inline: 0.5rem;
    gap: 0.25rem;
  }
  .ige-brand {
    gap: 0.375rem;
  }
  .ige-return-link {
    padding-inline: 0.25rem;
  }
}
@media print {
  .ige-community-bar {
    display: none;
  }
  body.ige-chat {
    --ige-bar-height: 0px;
  }
}
