:root {
  color-scheme: light;
  --ink: #17211d;
  --muted: #65736f;
  --line: #d8dedb;
  --panel: #ffffff;
  --page: #f5f7f4;
  --accent: #0f6b5f;
  --accent-dark: #0a4f47;
  --warn: #8f3a1d;
  --shadow: 0 24px 70px rgba(23, 33, 29, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0)),
    var(--page);
  color: var(--ink);
}

.shell {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 28px 18px 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 22px;
}

.mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 30px;
  line-height: 1.08;
  font-weight: 720;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 14px;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0;
}

.panel {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 20px;
}

.hidden {
  display: none !important;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}

.step {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}

.step.active {
  border-color: rgba(15, 107, 95, 0.32);
  background: #e8f2ef;
  color: var(--accent-dark);
}

.form {
  display: grid;
  gap: 12px;
}

label {
  font-size: 14px;
  font-weight: 650;
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 11px 12px;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 107, 95, 0.15);
  outline: none;
}

button {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 720;
  padding: 11px 14px;
}

button:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

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

button.secondary {
  width: auto;
  min-height: 40px;
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
}

.hint,
.message,
.status {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.message {
  min-height: 20px;
  margin: 14px 0 0;
}

.message.error {
  color: var(--warn);
}

.account-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.org-list {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.org-link {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  padding: 14px;
  text-decoration: none;
}

.org-link strong {
  display: block;
  margin-bottom: 4px;
}

.org-link span {
  color: var(--muted);
  font-size: 13px;
}

.org-form {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.slug-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.slug-row:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 107, 95, 0.15);
}

.slug-row input {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.slug-row span {
  color: var(--muted);
  font-size: 14px;
  padding-right: 12px;
}

@media (min-width: 760px) {
  .shell {
    padding-top: 56px;
  }
}

@media (max-width: 430px) {
  .shell {
    padding: 18px 12px 28px;
  }

  h1 {
    font-size: 26px;
  }

  .panel {
    padding: 16px;
  }

  .steps {
    gap: 6px;
  }

  .step {
    padding: 8px 6px;
  }

  .account-header {
    display: grid;
  }

  button.secondary {
    width: 100%;
  }
}
