:root {
  --header-grey: #53565a;
  --brand-orange: #f28b00;
  --page-white: #ffffff;

  --chat--color--primary: var(--brand-orange);
  --chat--color--primary-shade-50: #d97a00;
  --chat--color--primary--shade-100: #c06c00;
  --chat--color--secondary: var(--header-grey);
  --chat--color-secondary-shade-50: #474a4e;
  --chat--color-white: #ffffff;
  --chat--color-light: #f7f7f7;
  --chat--color-light-shade-50: #ececec;
  --chat--color-light-shade-100: #d4d4d4;
  --chat--color-medium: #d2d4d9;
  --chat--color-dark: #2f3134;
  --chat--color-disabled: #d2d4d9;
  --chat--color-typing: #404040;
  --chat--border-radius: 0.5rem;
  --chat--window--border-radius: 0.75rem;
  --chat--header--background: var(--header-grey);
  --chat--message--user--background: var(--brand-orange);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--page-white);
  color: #1a1a1a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans,
    Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 88px;
  padding: 1rem 1.5rem;
  background: var(--header-grey);
}

.site-header__logo {
  flex: 0 0 auto;
  display: block;
  height: 56px;
  width: auto;
}

.site-header__title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 500;
  line-height: 1.35;
}

.site-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.chat-shell {
  width: min(920px, 100%);
  height: min(720px, calc(100vh - 160px));
  min-height: 480px;
  border: 1px solid #e5e5e5;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  background: #ffffff;
}

#n8n-chat {
  width: 100%;
  height: 100%;
}

#n8n-chat .chat-window-wrapper,
#n8n-chat .chat-window {
  position: static !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  inset: auto !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

#n8n-chat .chat-window-toggle {
  display: none !important;
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .site-header__logo {
    height: 48px;
  }

  .chat-shell {
    min-height: 420px;
    height: calc(100vh - 180px);
  }
}
