:root {
  color-scheme: light;
  --page: #f5f6f2;
  --paper: #fff;
  --ink: #23352e;
  --muted: #617268;
  --line: #dfe5dc;
  --green: #27684a;
  --green-dark: #20563e;
  --green-light: #eaf3e9;
  --warm: #f8f9f6;
  --warning: #8b5932;
  font-family: Inter,"Segoe UI",Arial,sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

button,input,a {
  -webkit-tap-highlight-color: transparent;
}

button,input {
  font: inherit;
}

button,a {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: .56;
}

[hidden] {
  display: none!important;
}

a {
  color: inherit;
}

button:focus-visible,a:focus-visible,input:focus-visible,main:focus-visible {
  outline: 3px solid #77a58a;
  outline-offset: 4px;
}

main:focus {
  outline: none;
}

.page-shell {
  max-width: 1184px;
  margin: auto;
  padding: 0 48px;
}

.page-header {
  height: 109px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  gap: 13px;
  align-items: center;
  text-decoration: none;
  font-size: 17px;
  letter-spacing: -.5px;
}

.brand strong {
  font-weight: 650;
}

.brand-mark {
  width: 27px;
  height: 27px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  transform: rotate(-5deg);
}

.brand-mark i {
  background: var(--green);
  border-radius: 7px 7px 3px 7px;
}

.brand-mark i:nth-child(2) {
  opacity: .8;
  transform: rotate(90deg);
}

.brand-mark i:nth-child(3) {
  opacity: .65;
  transform: rotate(-90deg);
}

.brand-mark i:nth-child(4) {
  opacity: .9;
  transform: rotate(180deg);
}

.header-label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .2px;
}

.layout {
  display: grid;
  grid-template-columns: 267px minmax(0,1fr);
  gap: 80px;
  padding: 61px 0 70px;
  min-height: 760px;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--muted);
  margin: 0 0 16px;
}

.sidebar h1 {
  font-size: 32px;
  font-weight: 550;
  line-height: 1.18;
  letter-spacing: -1.2px;
  margin: 0 0 18px;
}

.sidebar-description {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  max-width: 218px;
  margin: 0;
}

.step-list {
  list-style: none;
  padding: 0;
  margin: 37px 0 25px;
}

.step {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  position: relative;
}

.step:not(:last-child):after {
  content: "";
  position: absolute;
  width: 1px;
  background: var(--line);
  top: 52px;
  bottom: -8px;
  left: 17px;
}

.step-number {
  height: 35px;
  width: 35px;
  flex: 0 0 35px;
  display: grid;
  place-items: center;
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #617268;
  background: var(--page);
}

.step-title,.step-caption {
  display: block;
}

.step-title {
  font-size: 13px;
  font-weight: 550;
  line-height: 1.6;
}

.step-caption {
  font-size: 11px;
  color: #617268;
  line-height: 1.7;
  margin-top: 1px;
}

.is-current .step-number,.is-complete .step-number {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.is-current .step-title,.is-complete .step-title {
  color: var(--green);
}

.is-current .step-caption,.is-complete .step-caption {
  color: #4f7259;
}

.is-future .step-title {
  color: #617268;
}

.sidebar-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  max-width: 220px;
}

.small-dot {
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: #9dac9e;
}

.main-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 15px;
}

.main-heading .eyebrow {
  margin: 0;
  color: var(--green);
}

.instance-label {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
  overflow-wrap: anywhere;
  text-align: right;
  max-width: 210px;
}

.page-title {
  font-size: 34px;
  font-weight: 550;
  line-height: 1.2;
  letter-spacing: -1.2px;
  margin: 15px 0 12px;
}

.page-description {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 29px;
}

.setup-card {
  background: var(--paper);
  border: 1px solid #e0e5dc;
  box-shadow: 0 5px 17px #24352b04,0 1px 3px #24352b03;
  border-radius: 18px;
  padding: 29px 31px 31px;
  min-height: 370px;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 25px;
  margin-bottom: 26px;
  border-bottom: 1px solid #edf0e9;
}

.service-icon {
  width: 45px;
  height: 45px;
  background: #f1f4ee;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.service-icon svg {
  width: 27px;
  height: 27px;
}

.card-eyebrow {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .15px;
}

.card-header h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.35px;
  margin: 0;
}

.step-badge {
  margin-left: auto;
  align-self: flex-start;
  font-size: 10px;
  color: #617268;
  border: 1px solid #e8ece4;
  border-radius: 6px;
  padding: 5px 7px;
  white-space: nowrap;
}

h4 {
  font-size: 20px;
  font-weight: 550;
  letter-spacing: -.45px;
  line-height: 1.4;
  margin: 0 0 11px;
}

.body-copy {
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
  margin: 0 0 23px;
}

.button {
  display: flex;
  justify-content: center;
  gap: 13px;
  align-items: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 9px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.4;
  padding: 13px 16px;
  transition: background .15s,opacity .15s;
}

.primary {
  background: var(--green);
  color: white;
}

.primary:hover:not(:disabled) {
  background: var(--green-dark);
}

.button span {
  font-size: 18px;
  line-height: 1;
}

.full-width {
  width: 100%;
}

.quiet-note {
  color: #617268;
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
  margin: 14px 0 0;
}

.text-button {
  padding: 7px 2px;
  min-height: 34px;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 12px;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}

.text-button:hover:not(:disabled) {
  text-decoration-color: currentColor;
}

#cancel-button,#error-cancel-button,#refresh-button {
  display: block;
  margin: 12px auto -4px;
}

.centered-state {
  text-align: center;
  padding: 13px 0 7px;
}

.centered-state h4 {
  font-size: 17px;
  margin-top: 19px;
}

.spinner {
  display: block;
  width: 28px;
  height: 28px;
  margin: 8px auto;
  border: 2px solid #dfebe0;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.code-box {
  border: 1px solid #dbe5d8;
  border-radius: 10px;
  background: var(--warm);
  padding: 15px 17px;
  margin: 0 0 17px;
}

.code-label {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 8px;
}

.code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#user-code {
  font-family: Consolas,"Courier New",monospace;
  font-size: 25px;
  line-height: 1.4;
  font-weight: 550;
  letter-spacing: 2px;
  overflow-wrap: anywhere;
  min-width: 0;
  user-select: all;
}

.copy-button {
  display: flex;
  gap: 5px;
  align-items: center;
  border: 0;
  padding: 8px 0 8px 8px;
  background: transparent;
  font-size: 11px;
  color: var(--green);
  flex-shrink: 0;
  min-height: 36px;
}

.copy-button svg {
  width: 18px;
  height: 18px;
}

.awaiting-label {
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  margin: 20px 0 0;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: #81a889;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #edf3e9;
}

.success-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 550;
  color: var(--green);
  margin-bottom: 16px;
}

.success-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green-light);
  display: grid;
  place-items: center;
  font-size: 14px;
}

.connected-title {
  font-size: 24px;
  letter-spacing: -.7px;
}

.next-stage {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e5eae0;
  background: #f8faf5;
  border-radius: 10px;
  margin-top: 22px;
}

.next-stage-icon {
  color: #8da184;
  font-size: 19px;
}

.next-stage strong {
  font-size: 12px;
  font-weight: 550;
}

.next-stage p {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0 0;
  line-height: 1.6;
}

.issue-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--warning);
  background: #f8efe3;
  font-size: 15px;
  margin-bottom: 13px;
}

.connection-notice {
  margin-top: 20px;
  border-radius: 8px;
  padding: 13px 15px;
  background: #fbf3e9;
  color: var(--warning);
  font-size: 12px;
  line-height: 1.7;
}

.connection-notice p {
  margin: 0;
}

.connection-notice .text-button {
  color: inherit;
  font-weight: 550;
  margin-top: 2px;
}

.below-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 435px;
  margin: 19px auto 0;
  padding: 0 9px;
}

.below-card svg {
  color: #7c907a;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 1px;
}

.below-card p {
  margin: 0;
  font-size: 11px;
  line-height: 1.8;
  color: #617268;
}

.page-footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
  color: #617268;
  padding: 22px 0 29px;
}

.page-footer span:first-child {
  letter-spacing: .3px;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 550;
  margin-bottom: 8px;
}

input {
  width: 100%;
  padding: 12px 14px;
  min-height: 47px;
  border: 1px solid #d9e1d7;
  border-radius: 8px;
  background: #fafbf8;
  color: var(--ink);
  margin-bottom: 16px;
}

input:focus {
  background: white;
  border-color: var(--green);
}

.field-error {
  font-size: 12px;
  color: #a44338;
  line-height: 1.65;
  margin: 0 0 14px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  z-index: 10;
  padding: 12px;
  background: var(--green);
  color: white;
  border-radius: 6px;
}

.skip-link:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.noscript-note {
  text-align: center;
  padding: 20px;
  color: var(--warning);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media(min-width:1250px) {
  .layout {
    gap: 105px;
    grid-template-columns: 280px minmax(0,1fr);
  }
}

@media(max-width:900px) {
  .page-shell {
    padding: 0 30px;
  }
  .layout {
    gap: 38px;
    grid-template-columns: 220px minmax(0,1fr);
    padding-top: 44px;
  }
  .page-title {
    font-size: 29px;
  }
  .sidebar h1 {
    font-size: 28px;
  }
  .setup-card {
    padding: 25px 23px;
  }
  .step-title {
    font-size: 12px;
  }
}

@media(max-width:680px) {
  .page-shell {
    padding: 0 22px;
  }
  .page-header {
    height: 78px;
  }
  .brand {
    font-size: 15px;
    gap: 10px;
  }
  .brand-mark {
    width: 24px;
    height: 24px;
  }
  .header-label {
    font-size: 10px;
  }
  .layout {
    display: block;
    padding: 30px 0 40px;
    min-height: 0;
  }
  .sidebar h1 {
    font-size: 27px;
    line-height: 1.25;
    margin: 0;
  }
  .sidebar h1 br {
    display: none;
  }
  .sidebar .eyebrow,.sidebar-description,.sidebar-note {
    display: none;
  }
  .step-list {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 6px;
    margin: 22px 0 31px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--line);
  }
  .step {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    min-height: 0;
  }
  .step-number {
    width: 29px;
    height: 29px;
    flex-basis: 29px;
    font-size: 11px;
  }
  .step:not(:last-child):after {
    top: 14px;
    bottom: auto;
    left: 36px;
    right: 1px;
    width: auto;
    height: 1px;
  }
  .step-title {
    font-size: 9px;
    line-height: 1.5;
    max-width: 67px;
  }
  .step-caption {
    font-size: 9px;
    line-height: 1.5;
    margin-top: 4px;
  }
  .main-heading {
    min-height: 12px;
  }
  .main-heading .eyebrow {
    font-size: 9px;
  }
  .instance-label {
    font-size: 10px;
    max-width: 130px;
  }
  .page-title {
    font-size: 27px;
    margin-top: 12px;
    letter-spacing: -.9px;
  }
  .page-description {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 23px;
  }
  .desktop-break {
    display: none;
  }
  .setup-card {
    padding: 24px 21px;
    min-height: 350px;
    border-radius: 15px;
  }
  .card-header {
    gap: 11px;
    padding-bottom: 21px;
    margin-bottom: 23px;
  }
  .service-icon {
    height: 39px;
    width: 39px;
    border-radius: 10px;
  }
  .service-icon svg {
    width: 25px;
    height: 25px;
  }
  .card-eyebrow {
    font-size: 9px;
  }
  .card-header h3 {
    font-size: 16px;
  }
  .step-badge {
    font-size: 9px;
    padding: 4px 6px;
  }
  .body-copy {
    font-size: 12px;
    line-height: 1.85;
  }
  h4 {
    font-size: 18px;
  }
  .code-box {
    padding: 13px;
  }
  .code-row {
    flex-wrap: wrap;
  }
  #user-code {
    font-size: 23px;
    letter-spacing: 1px;
  }
  .copy-button {
    margin-left: auto;
  }
  .below-card {
    margin-top: 17px;
  }
  .page-footer {
    font-size: 9px;
    padding: 19px 0 24px;
  }
  .connected-title {
    font-size: 22px;
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    animation: none!important;
    transition: none!important;
  }
  .spinner {
    border-color: var(--green);
    border-right-color: transparent;
  }
}

.step-choice {
  display: block;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  color: inherit;
  min-width: 0;
}

.step-choice:disabled {
  cursor: default;
  opacity: 1;
}

.step-choice:hover:not(:disabled) .step-title {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.wizard-form label {
  display: block;
  font-size: 12px;
  font-weight: 550;
  margin: 0 0 8px;
}

.wizard-form input,.wizard-form select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--warm);
  color: var(--ink);
  padding: 11px 12px;
  margin: 0 0 17px;
  font: inherit;
  font-size: 14px;
}

.wizard-form input:disabled,.wizard-form select:disabled {
  opacity: .7;
  cursor: default;
}

.wizard-form input:focus,.wizard-form select:focus {
  border-color: var(--green);
}

.wizard-form .button {
  margin-top: 7px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.secondary {
  border-color: var(--line);
  background: var(--warm);
  color: var(--green);
}

.secondary:hover:not(:disabled) {
  background: var(--green-light);
}

.field-help {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  margin: -5px 0 18px;
}

.wizard-notice {
  border: 1px solid #e0dfc7;
  background: #faf9ed;
  color: #615c36;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 23px;
  overflow-wrap: anywhere;
}

#wizard-error {
  background: #fff6f0;
  border-color: #eddbc9;
  color: #82502f;
}

.wizard-busy {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 25px;
  color: var(--muted);
}

.wizard-busy .spinner {
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  margin: 0;
}

.wizard-service-icon {
  color: var(--green);
  font-size: 25px;
}

.section-divider {
  height: 1px;
  background: var(--line);
  margin: 25px 0;
}

.state-copy {
  color: var(--green);
  font-size: 13px;
  line-height: 1.8;
  margin: 0 0 20px;
}

.identity-card {
  background: var(--green-light);
  border-radius: 9px;
  padding: 15px 17px;
  font-size: 14px;
  color: var(--ink);
  overflow-wrap: anywhere;
  margin: 0 0 18px;
}

.wizard-navigation,.inline-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.wizard-navigation {
  border-top: 1px solid var(--line);
  margin-top: 26px;
  padding-top: 15px;
}

.readiness-list {
  list-style: none;
  padding: 0;
  margin: 0 0 25px;
}

.readiness-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.readiness-list strong {
  color: var(--green);
  font-weight: 500;
  text-align: right;
}

#activation-panel > .button,#resume-button {
  margin-bottom: 16px;
}

@media(max-width:680px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .wizard-notice {
    font-size: 11px;
    padding: 12px;
  }
  .wizard-form input,.wizard-form select {
    font-size: 16px;
  }
  .readiness-list li {
    font-size: 11px;
  }
  .readiness-list strong {
    max-width: 130px;
  }
}
