.gm-setup {
  max-width: 1180px;
}
.gms-setup {
  max-width: 900px;
  margin-inline: auto;
}
.gms-flow,
.gms-home {
  display: grid;
  gap: 26px;
}
.gms-steps {
  display: flex;
  justify-content: space-between;
  align-items: start;
  list-style: none;
  margin: 0;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--gm-line);
  gap: 12px;
}
.gms-steps li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--gm-muted);
}
.gms-steps li > span {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  border: 1px solid var(--gm-line);
  border-radius: 50%;
  font-weight: 600;
}
.gms-steps li.is-current {
  color: var(--gm-accent);
  font-weight: 700;
}
.gms-steps li.is-current > span {
  color: #fff;
  background: var(--gm-accent);
  border-color: var(--gm-accent);
}
.gms-steps li.is-done > span {
  background: var(--gm-soft);
  border-color: var(--gm-soft);
  color: var(--gm-accent);
}
.gms-choices,
.gms-connections {
  display: grid;
  gap: 12px;
}
.gm-setup label.gms-choice {
  display: flex;
  align-items: start;
  gap: 14px;
  padding: 17px;
  border: 1px solid var(--gm-line);
  border-radius: 14px;
  font-weight: 400;
  cursor: pointer;
}
.gm-setup label.gms-choice.is-selected {
  border-color: #9e8aad;
  background: #f6f2f8;
}
.gm-setup .gms-choice input {
  width: 21px;
  height: 21px;
  min-height: 21px;
  margin: 3px 0 0;
  padding: 0;
  accent-color: var(--gm-accent);
  flex: 0 0 auto;
}
.gms-choice-copy {
  display: grid;
  gap: 5px;
}
.gms-choice-copy strong {
  font-size: 17px;
  font-weight: 650;
}
.gms-reason {
  color: var(--gm-accent);
  font-size: 13px;
  line-height: 1.6;
}
.gms-badge {
  width: fit-content;
  display: inline-flex;
  color: #4d405c;
  background: var(--gm-soft);
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}
.gms-badge.is-caution {
  color: #705124;
  background: #f4ebd7;
}
.gms-stale {
  display: grid;
  gap: 9px;
  padding: 20px;
  border: 1px solid #dacaab;
  background: #faf4e8;
  border-radius: 16px;
  color: #664f2b;
}
.gms-stale button {
  justify-self: start;
}
.gms-connection {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--gm-line);
  border-radius: 15px;
  background: var(--gm-card);
}
.gms-connection-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}
.gms-connection h3 {
  font-size: 18px;
}
.gms-purpose {
  display: grid;
  gap: 13px;
  padding: clamp(22px, 4vw, 34px);
  background: #eee9f1;
  border-radius: 18px;
}
.gms-purpose h2,
.gms-purpose h3 {
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.35;
  letter-spacing: -0.025em;
  font-weight: 600;
}
.gms-purpose p {
  white-space: pre-wrap;
  color: #554a5c;
  max-width: 76ch;
}
.gms-summary-section {
  display: grid;
  gap: 10px;
}
.gms-summary-section h3 {
  font-size: 16px;
}
.gms-inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.gms-inline-list li {
  padding: 6px 11px;
  border: 1px solid var(--gm-line);
  border-radius: 8px;
  font-size: 14px;
}
.gms-goal-choice {
  display: grid;
  gap: 7px;
  padding-block: 20px;
  border-block: 1px solid var(--gm-line);
}
.gms-flow-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.gms-home-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}
.gms-home-header .gmo-intro {
  max-width: 640px;
  margin-bottom: 0;
}
.gms-home-header .gmo-intro h1 {
  font-size: clamp(30px, 4vw, 46px);
}
.gms-your-gm {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 22px;
  background: var(--gm-card);
  border: 1px solid var(--gm-line);
  border-radius: 20px;
  min-width: 180px;
}
.gms-your-gm strong {
  font-size: 20px;
  font-weight: 600;
}
.gms-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.gms-module {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--gm-line);
  border-radius: 18px;
  background: var(--gm-card);
  min-width: 0;
}
.gms-module h2 {
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.025em;
}
.gms-module > button {
  margin-top: auto;
}
.gms-module .gmo-muted {
  font-size: 15px;
}
.gms-permissions,
.gms-plan-section {
  display: grid;
  gap: 24px;
}
.gms-permissions .gmo-intro {
  margin-bottom: 0;
}
.gms-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.gms-mode-options,
.gms-scope-options {
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
  display: grid;
  gap: 12px;
}
.gms-mode-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.gm-setup label.gms-mode {
  display: flex;
  align-items: start;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--gm-line);
  border-radius: 14px;
  cursor: pointer;
}
.gm-setup label.gms-mode.is-selected {
  border-color: #9e8aad;
  background: #f6f2f8;
}
.gm-setup .gms-mode input {
  width: 19px;
  height: 19px;
  min-height: 19px;
  padding: 0;
  margin: 3px 0 0;
  accent-color: var(--gm-accent);
  flex: 0 0 auto;
}
.gms-mode .gms-choice-copy strong {
  font-size: 16px;
}
.gms-scope-options legend {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 14px;
}
.gms-always-review {
  display: block;
  font-size: 13px;
  color: var(--gm-accent);
  font-weight: 400;
}
.gms-enable {
  padding-block: 15px;
  border-block: 1px solid var(--gm-line);
}
.gms-plan {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--gm-line);
  border-radius: 18px;
  background: var(--gm-card);
}
.gms-plan h3 {
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.025em;
}
.gms-command {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--gm-line);
  border-radius: 12px;
  background: var(--gm-paper);
}
.gms-command h4 {
  font-size: 17px;
}
.gms-change-fields {
  margin: 0;
  display: grid;
  gap: 12px;
}
.gms-change-fields > div {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(0, 3fr);
  gap: 12px;
}
.gms-change-fields dt {
  font-size: 14px;
  color: var(--gm-muted);
}
.gms-change-fields dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 15px;
}
.gms-data-list {
  padding-left: 20px;
  margin: 0;
}
.gms-plan .gmo-details button {
  justify-self: start;
}
body.gm-onboarding-active #notice {
  color: #fff;
  background: #59476d;
  border-color: #59476d;
  box-shadow: 0 8px 24px #27212e26;
}
body.gm-onboarding-active #notice.error {
  color: #793a30;
  background: #fff0ea;
  border-color: #d9b9b0;
}
@media (max-width: 900px) {
  .gms-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .gms-home-header {
    display: grid;
  }
  .gms-your-gm {
    grid-template-columns: auto 1fr;
    justify-items: start;
    align-items: center;
    width: 100%;
    padding: 16px;
  }
  .gms-your-gm img {
    grid-row: span 2;
    width: 65px;
    height: 65px;
  }
  .gms-your-gm > button {
    grid-column: 2;
  }
  .gms-module-grid {
    grid-template-columns: 1fr;
  }
  .gms-steps li {
    flex-direction: column;
    align-items: start;
    flex: 1;
    font-size: 12px;
    gap: 6px;
  }
  .gms-connection {
    padding: 16px;
  }
  .gms-flow-footer > button:last-child {
    margin-left: auto;
  }
  .gms-purpose {
    padding: 20px;
  }
  .gms-mode-options {
    grid-template-columns: 1fr;
  }
  .gms-change-fields > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .gms-plan,
  .gms-command {
    padding: 16px;
  }
}
