:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #edf3ff;
  background: #07101d;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(
      circle at 20% 10%,
      rgba(60, 126, 255, 0.2),
      transparent 34rem
    ),
    radial-gradient(
      circle at 85% 85%,
      rgba(38, 214, 168, 0.12),
      transparent 30rem
    ),
    #07101d;
}

.shell {
  width: min(100% - 2rem, 960px);
  margin: 0 auto;
  padding: 2rem 0 1.5rem;
}

.brand,
footer {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #a9b8cf;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid #5d8cff;
  border-radius: 0.55rem;
  color: #fff;
  background: #2458d8;
  font-weight: 800;
}

.local-badge {
  margin-left: auto;
  padding: 0.35rem 0.55rem;
  border: 1px solid #2c594f;
  border-radius: 999px;
  color: #78e5c2;
  background: rgba(37, 128, 103, 0.13);
  font-size: 0.66rem;
}

.setup-card {
  margin: 2rem 0;
  padding: clamp(1.35rem, 5vw, 3.25rem);
  border: 1px solid #22334d;
  border-radius: 1.15rem;
  background: rgba(10, 23, 40, 0.92);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.eyebrow {
  color: #6fa0ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

h1 {
  margin: 0.5rem 0 0.8rem;
  font-size: clamp(2rem, 7vw, 3.25rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

h2 {
  margin: 0.4rem 0 0.7rem;
  font-size: clamp(1.6rem, 5vw, 2.35rem);
  letter-spacing: -0.035em;
}

.step-panel {
  margin-top: 1.7rem;
  padding-top: 1.7rem;
  border-top: 1px solid #26364e;
}

.lede {
  max-width: 58ch;
  margin-bottom: 1.7rem;
  color: #a9b8cf;
  line-height: 1.65;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.4rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.steps li {
  overflow: hidden;
  padding-top: 0.6rem;
  border-top: 2px solid #26364e;
  color: #687a95;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.steps .active {
  border-color: #5d8cff;
  color: #cddcff;
}

.steps .complete {
  border-color: #2f9b7d;
  color: #91dec7;
}

body.office-mode .steps {
  display: none;
}

body.office-mode .setup-card {
  border-color: #2b4c62;
  background: rgba(7, 20, 34, 0.96);
}

body.office-mode .step-panel {
  margin-top: 1.2rem;
}

form,
label {
  display: grid;
  gap: 1.1rem;
}

label {
  gap: 0.45rem;
  color: #d5dff0;
  font-size: 0.86rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.82rem 0.9rem;
  border: 1px solid #30445f;
  border-radius: 0.6rem;
  outline: none;
  color: #f5f8ff;
  background: #091522;
  font: inherit;
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #6f9cff;
  box-shadow: 0 0 0 3px rgba(79, 127, 235, 0.18);
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #7f91aa 50%),
    linear-gradient(135deg, #7f91aa 50%, transparent 50%);
  background-position:
    calc(100% - 1rem) 50%,
    calc(100% - 0.7rem) 50%;
  background-repeat: no-repeat;
  background-size: 0.3rem 0.3rem;
}

.risk {
  display: block;
  padding: 0.85rem;
  border: 1px solid #72512d;
  border-radius: 0.6rem;
  color: #f0c98f;
  background: rgba(137, 90, 35, 0.13);
  font-weight: 600;
  line-height: 1.45;
}

small {
  color: #7f91aa;
  font-size: 0.72rem;
  font-weight: 500;
}

code {
  color: #b9caff;
}

button {
  min-height: 3rem;
  margin-top: 0.3rem;
  border: 0;
  border-radius: 0.65rem;
  color: white;
  background: linear-gradient(135deg, #356ce5, #625bea);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.55;
}

button.secondary {
  border: 1px solid #365071;
  color: #c9d8ed;
  background: #111f31;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.ready-head,
.office-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.ready-head button {
  min-width: 8rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.summary-card {
  min-width: 0;
  padding: 1rem;
  border: 1px solid #2a3e59;
  border-radius: 0.75rem;
  background: #091522;
}

.summary-card h3 {
  margin: 0 0 0.55rem;
  color: #7f91aa;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.summary-card strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 1.08rem;
}

.summary-card p {
  margin: 0.55rem 0 0;
  color: #9aabc2;
  font-size: 0.76rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.office-actions {
  justify-content: flex-end;
  margin-top: 1rem;
}

.office-actions button {
  min-width: 9rem;
}

.notice {
  display: block;
  margin-top: 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 0.6rem;
  color: #e9bdc6;
  background: rgba(137, 41, 61, 0.15);
  font-size: 0.78rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.notice:empty {
  display: none;
}

.notice.success {
  display: grid;
  gap: 0.3rem;
  margin: 0 0 1.2rem;
  border-color: #285c50;
  color: #9cedd4;
  background: rgba(38, 153, 122, 0.12);
}

footer {
  justify-content: space-between;
  padding: 0 0.25rem;
  font-size: 0.66rem;
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 1rem, 960px);
    padding-top: 0.75rem;
  }

  .setup-card {
    margin: 1rem 0;
  }

  .steps li {
    font-size: 0;
  }

  .steps li::after {
    content: "•";
    font-size: 0.9rem;
  }

  .form-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .form-grid .wide {
    grid-column: auto;
  }

  .ready-head,
  .office-actions {
    align-items: stretch;
    flex-direction: column;
  }
}
