:root {
  color-scheme: light;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: #172631;
  background: #f4f7f8;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }

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

body {
  overflow: hidden;
  background: #f4f7f8;
}

[hidden] { display: none !important; }

#chat {
  position: fixed;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  height: 100dvh;
  border: 0;
  background: #fff;
}

.setup {
  display: grid;
  width: 100%;
  min-height: 100%;
  min-height: 100dvh;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 12% 10%, rgba(32, 167, 122, 0.08), transparent 34%),
    #f4f7f8;
}

.setup-panel {
  width: min(100%, 480px);
  padding: clamp(28px, 6vw, 48px);
  border: 1px solid #dfe7e9;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(22, 42, 54, 0.08);
}

.mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin-bottom: 26px;
  border-radius: 14px;
  color: #1d4f82;
  background: #eaf3f4;
}

.mark svg { width: 32px; height: 32px; }

.eyebrow {
  margin: 0 0 10px;
  color: #648078;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

h1 {
  margin: 0;
  font-size: clamp(25px, 5vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.summary {
  margin: 14px 0 22px;
  color: #5f7079;
  font-size: 15px;
  line-height: 1.7;
}

.setup-note {
  padding: 14px 16px;
  border-left: 3px solid #20a77a;
  border-radius: 0 9px 9px 0;
  color: #40535d;
  background: #f2f8f6;
  font-size: 13px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

code {
  padding: 2px 5px;
  border-radius: 4px;
  color: #174a3a;
  background: #e5f1ed;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.92em;
}

noscript {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #40535d;
  background: #f4f7f8;
  text-align: center;
}

@media (max-width: 480px) {
  .setup { padding: 16px; }
  .setup-panel { border-radius: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}