* { box-sizing: border-box; }
:root {
  color-scheme: light;
  --navy: #102a43;
  --green: #087f67;
  --muted: #627d98;
  --surface: #ffffff;
  --page: #f3f7f8;
}
html, body { min-height: 100%; }
body {
  margin: 0;
  background: radial-gradient(circle at 50% 0%, #e4f3ef 0, var(--page) 48%, #eef2f7 100%);
  color: var(--navy);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
.page-shell {
  min-height: calc(100vh - 64px);
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 28px;
}
.chat-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: left;
  margin: 0 auto 26px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 16px;
  background: var(--green);
  color: white;
  font-weight: 800;
  font-size: 25px;
  box-shadow: 0 8px 22px #087f6730;
}
.eyebrow { margin: 0 0 4px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
h1 { margin: 0; font-size: clamp(24px, 4vw, 34px); letter-spacing: -.04em; }
.subtitle { margin: 6px 0 0; color: var(--muted); }
.chat-stage {
  position: relative;
  width: min(760px, 100%);
  min-height: min(680px, 72vh);
  margin: 0 auto;
  padding: 22px;
  overflow: visible;
  background: var(--surface);
  border: 1px solid #dce7e9;
  border-radius: 24px;
  box-shadow: 0 18px 55px #102a4312;
}
.chat-placeholder {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #16a37a; box-shadow: 0 0 0 4px #16a37a1c; }
.site-footer {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 16px;
  color: #8295a7;
  font-size: 12px;
}
.site-footer a { color: var(--green); text-decoration: none; }
.error-card {
  width: min(540px, 100%);
  margin: 12vh auto 0;
  padding: 48px 28px;
  text-align: center;
  background: white;
  border: 1px solid #dce7e9;
  border-radius: 24px;
  box-shadow: 0 18px 55px #102a4312;
}
.error-code { color: var(--green); font-size: clamp(64px, 15vw, 100px); line-height: 1; font-weight: 850; letter-spacing: -.07em; }
.error-card h1 { margin-top: 14px; }
.error-card p { color: var(--muted); line-height: 1.6; }
.home-button {
  display: inline-flex;
  margin-top: 14px;
  padding: 13px 22px;
  border-radius: 12px;
  background: var(--green);
  color: white;
  text-decoration: none;
  font-weight: 700;
}
@media (max-width: 640px) {
  .page-shell { width: 100%; min-height: calc(100vh - 58px); padding: 22px 12px 12px; }
  .chat-heading { justify-content: flex-start; margin: 0 8px 18px; }
  .brand-mark { width: 46px; height: 46px; flex-basis: 46px; border-radius: 13px; }
  .chat-stage { min-height: 76vh; padding: 16px; border-radius: 18px; }
  .site-footer { min-height: 58px; }
  .error-card { margin-top: 10vh; padding: 38px 20px; }
}
/* Keep the provider's chat launcher visible where its own script permits. */
