:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #12221c;
  background: #f3f6f4;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }

.shell {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 80px;
}

.hero { max-width: 720px; margin-bottom: 36px; }
.eyebrow { color: #087a55; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 8px 0 16px; font-size: clamp(36px, 7vw, 62px); line-height: 1.02; letter-spacing: -.045em; }
.lede { color: #50635b; font-size: 19px; line-height: 1.6; }

.panel {
  display: flex;
  gap: 20px;
  padding: 24px;
  margin: 16px 0;
  border: 1px solid #dce5e0;
  border-radius: 20px;
  background: white;
  box-shadow: 0 12px 36px rgba(16, 48, 35, .06);
}

.step-number {
  flex: 0 0 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dff8ec;
  color: #087a55;
  font-weight: 800;
}

.grow { flex: 1; }
h2 { margin: 2px 0 8px; font-size: 22px; }
p { line-height: 1.55; }

button {
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 750;
  cursor: pointer;
}
button:disabled { cursor: not-allowed; opacity: .5; }
.primary { background: #0d8f63; color: white; }
.secondary { background: #16251f; color: white; }

.status { min-height: 24px; color: #64756d; font-size: 14px; }
.status[data-type="success"] { color: #087a55; }
.status[data-type="error"] { color: #b42318; }

.connections { display: grid; gap: 10px; }
.connection { display: flex; justify-content: space-between; gap: 16px; padding: 14px; border-radius: 12px; background: #f3f7f5; }
.connection span { color: #61736a; }

label { display: grid; gap: 7px; margin: 16px 0; font-size: 14px; font-weight: 700; }
input, textarea, select { width: 100%; border: 1px solid #cbd8d2; border-radius: 10px; padding: 11px 12px; background: white; color: #12221c; }
textarea { resize: vertical; }

.note { margin-top: 20px; padding: 18px 20px; border-left: 4px solid #efaa32; background: #fff8e8; line-height: 1.55; }

@media (max-width: 620px) {
  .shell { padding-top: 36px; }
  .panel { padding: 18px; }
  .connection { flex-direction: column; }
}

[hidden] { display: none !important; }
.brand, .session-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { margin-bottom: 48px; }
.brand a { text-decoration: none; color: #12221c; font-size: 30px; font-weight: 850; letter-spacing: -.05em; }
.brand a span { color: #0d8f63; }
.badge { background: #e0eae5; border-radius: 30px; padding: 7px 12px; color: #435e51; font-size: 12px; font-weight: 650; }
.grow { min-width: 0; }
.session-bar { margin: 24px 0; }
.session-bar button { background: #e0eae5; }
footer { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 32px; }
footer a { color: #435e51; font-size: 14px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #0d8f63; outline-offset: 4px; }
#webhook-events { padding-left: 20px; line-height: 1.7; color: #50635b; overflow-wrap: anywhere; }

.form-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; color: #61736a; font-size: 12px; }
.quiet { padding: 8px 0; background: transparent; color: #087a55; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.toggle-label { display: flex; align-items: center; gap: 10px; line-height: 1.5; }
.toggle-label input { width: 20px; height: 20px; margin: 0; accent-color: #087a55; }
.help { font-size: 13px; color: #61736a; }
.reply-preview { border-radius: 14px; background: #e8f7ee; border: 1px solid #b9ddc8; padding: 20px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.connection-tools { margin-top: 28px; }
.connection-tools summary { color: #50635b; cursor: pointer; padding: 12px 0; }
#bot-prompt { line-height: 1.6; }
