.founder-bot-launch {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 21;
  width: auto;
  box-shadow: 0 5px 18px #14263d30;
}
[data-founder-bot-open][hidden], #founder-bot [hidden] {
  display: none;
}
#founder-bot {
  width: min(460px, calc(100vw - 24px));
  max-width: none;
  max-height: min(720px, calc(100dvh - 24px));
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  color: var(--ink);
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: 0 24px 70px #14263d40;
}
#founder-bot::backdrop {
  background: #14263d70;
}
.founder-bot-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  align-items: center;
  min-height: auto;
  padding: 12px 16px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.founder-bot-header button, .founder-bot-secondary {
  font: inherit;
  font-size: 14px;
  min-height: 40px;
  color: var(--ink);
  padding: 6px 12px;
  background: white;
  border: 1px solid #a4b4ca;
  border-radius: 9px;
  cursor: pointer;
}
.founder-bot-secondary:hover, .founder-bot-header button:hover {
  background: var(--accent);
}
.founder-bot-panel {
  display: grid;
  gap: 12px;
  padding: 22px;
}
#founder-bot h2 {
  font-size: clamp(22px, 5vw, 29px);
  margin: 0;
  line-height: 1.2;
}
#founder-bot h2:focus {
  outline: none;
}
#founder-bot p, #founder-bot dl {
  margin: 0;
}
#founder-bot [data-bot-content] {
  display: grid;
  gap: 10px;
  overflow-wrap: anywhere;
}
#founder-bot a, .founder-application a:not(.btn) {
  color: #2d507c;
  text-decoration: underline;
  justify-self: start;
}
#founder-bot label, .founder-application label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}
#founder-bot input:not([type=checkbox]), #founder-bot textarea,
.founder-application input:not([type=checkbox]), .founder-application textarea {
  padding: 10px 12px;
  background: white;
  color: var(--ink);
  border: 1px solid #a4b4ca;
  border-radius: 8px;
  font: inherit;
  font-size: 16px;
  width: 100%;
}
#founder-bot [aria-invalid=true] {
  outline: 2px solid #9a2819;
}
#founder-bot label.founder-bot-consent, .founder-application label.founder-application-consent {
  display: flex;
  align-items: start;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
}
#founder-bot input[type=checkbox], .founder-application input[type=checkbox] {
  width: 18px;
  height: 18px;
  flex: none;
  margin: 2px 0 0;
}
#founder-bot dd {
  white-space: pre-wrap;
  margin: 0 0 8px;
}
#founder-bot dt {
  color: #3e526b;
  font-size: 14px;
}
#founder-bot details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}
#founder-bot summary {
  cursor: pointer;
  font-weight: 600;
}
#founder-bot details p {
  margin-top: 8px;
}
.founder-bot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.founder-application {
  padding: 24px;
  max-width: 650px;
  margin: 0 auto;
}
.founder-application form {
  display: grid;
  gap: 14px;
}
@media (max-width: 800px) {
  .founder-bot-launch {
    right: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom));
  }
}
