:root {
  --ink: #111318;
  --nav: #0b0d12;
  --muted: #667085;
  --paper: #f5f7fb;
  --white: #ffffff;
  --line: #e4e7ec;
  --orange: #ff5a1f;
  --orange-deep: #e04614;
  --violet: #7c3aed;
  --voice: #2563eb;
  --cyan: #06b6d4;
  --chip: #fff1ea;
  --shadow: 0 10px 28px rgba(17, 19, 24, 0.06);
  --app-nav-h: 3.1rem;
  --app-side-w: 15rem;
  --app-foot-h: 2.7rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  line-height: 1.5;
}
a { color: var(--orange-deep); }
img { max-width: 100%; }
.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus { left: 1rem; top: 1rem; background: var(--white); padding: 0.4rem 0.7rem; }

.site-header, .site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 6vw;
}
.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand span { color: var(--orange); }
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.brand-home {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}
.brand-wordmark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.08rem;
  line-height: 1;
}
.brand-name {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
}
.brand-by {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}
.brand-name:hover, .brand-name:focus,
.brand-by:hover, .brand-by:focus { color: var(--orange-deep); }
.brand-lockup.is-dark .brand-name,
.brand-lockup.is-dark .brand-by { color: #f8fafc; }
.brand-lockup.is-dark .brand-name:hover,
.brand-lockup.is-dark .brand-name:focus,
.brand-lockup.is-dark .brand-by:hover,
.brand-lockup.is-dark .brand-by:focus { color: #ffd7c4; }
.nav-links { display: flex; gap: 1.25rem; align-items: center; }
.nav-links a { color: var(--ink); text-decoration: none; }
.btn, button.btn {
  display: inline-block;
  border: 0;
  border-radius: 0.7rem;
  padding: 0.65rem 1.05rem;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus { background: var(--orange-deep); }
.btn-primary:disabled, .btn-primary[disabled] {
  background: #d0d5dd;
  color: #fff;
  cursor: not-allowed;
}
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: #cdd3de; }
.btn-wide { width: 100%; text-align: center; }

.hero {
  padding: 3.4rem 6vw 2.8rem;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 90, 31, 0.14) 0, transparent 28%),
    radial-gradient(circle at 8% 88%, rgba(124, 58, 237, 0.08) 0, transparent 24%),
    var(--paper);
}
.hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 14ch;
  margin: 0 0 0.85rem;
}
.hero p { max-width: 38rem; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--orange);
}

.section { padding: 3.2rem 6vw; }
.section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  margin: 0 0 1.1rem;
}
.grid-3, .grid-2, .cards { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.card, .step, .faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.05rem 1.15rem;
  box-shadow: var(--shadow);
}
.card h3, .step h3 { margin-top: 0; }
.step .num {
  display: inline-flex;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--nav);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}
.faq details + details { margin-top: 0.6rem; }
.faq summary { cursor: pointer; font-weight: 600; }
.band { background: var(--nav); color: #f8fafc; }
.band a { color: #ffd7c4; }
.secure-list { columns: 2; padding-left: 1.1rem; }
@media (max-width: 720px) {
  .secure-list { columns: 1; }
  .app-footer-grid { grid-template-columns: 1fr; }
}

.auth-shell, .picker-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background: var(--paper);
}
.auth-card {
  width: min(28rem, 100%);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow);
}
.auth-card h1 {
  margin: 0 0 0.4rem;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}
.field { display: flex; flex-direction: column; gap: 0.3rem; margin: 0.85rem 0; }
.field input, .field select, .field textarea {
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: #fff;
}
.help { color: var(--muted); font-size: 0.88rem; }
.errorlist { color: #b42318; padding-left: 1rem; }
.notice {
  background: #eef2ff;
  border: 1px solid #d9e1ff;
  border-radius: 0.7rem;
  padding: 0.65rem 0.8rem;
}

.app-body { min-height: 100vh; }
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.app-shell.is-bare .app-navbar { grid-template-columns: 1fr; }
.app-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: var(--app-side-w) minmax(0, 1fr);
  align-items: center;
  height: var(--app-nav-h);
  min-height: var(--app-nav-h);
  background:
    linear-gradient(var(--orange), var(--orange)) bottom / 100% 2px no-repeat,
    var(--nav);
  color: #f8fafc;
  border-bottom: 1px solid #22262f;
}
.app-navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.9rem;
}
.app-navbar .brand-mark { width: 1.85rem; height: 1.85rem; }
.app-navbar .brand-name { font-size: 1rem; }
.app-navbar-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  min-width: 0;
  padding: 0.3rem 1.2rem;
}
.app-trail ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.app-trail li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #98a2b3;
  font-size: 0.88rem;
  font-weight: 650;
}
.app-trail li:not(:last-child)::after {
  content: "/";
  color: #667085;
}
.app-trail a {
  color: #d0d5dd;
  text-decoration: none;
}
.app-trail a:hover,
.app-trail a:focus { color: #ffd7c4; }
.app-trail [aria-current="location"] { color: #f8fafc; }
.app-navbar-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  min-width: 0;
}
.app-org {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.15rem 0.55rem;
  background: #1a1d27;
  border: 1px solid #2a2f3a;
  border-radius: 999px;
}
.app-org strong {
  font-size: 0.86rem;
  letter-spacing: -0.02em;
}
.app-org-status {
  color: #ffb089;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.app-switch {
  color: #ffd7c4;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 650;
}
.app-switch:hover,
.app-switch:focus { color: #fff; }
.app-navbar .btn-ghost {
  background: transparent;
  color: #f8fafc;
  border-color: #475467;
}
.app-navbar .btn-ghost:hover,
.app-navbar .btn-ghost:focus {
  color: #ffd7c4;
  border-color: #ffd7c4;
  background: #1a1d27;
}
.app-account {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.15rem 0.55rem;
  background: #1a1d27;
  border: 1px solid #2a2f3a;
  border-radius: 999px;
  color: #f8fafc;
  text-decoration: none;
}
.app-account:hover,
.app-account:focus { border-color: #ffb089; }
.app-account-mail {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #d0d5dd;
  font-size: 0.8rem;
}
.app-account-label {
  color: #ffb089;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.side {
  position: fixed;
  top: var(--app-nav-h);
  left: 0;
  bottom: 0;
  z-index: 30;
  width: var(--app-side-w);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--nav);
  color: #f8fafc;
  padding: 0.85rem 0.9rem 1.4rem;
}
.side-brand { display: none; margin: 0 0 0.75rem; }
.side a { color: #f8fafc; text-decoration: none; display: block; padding: 0.4rem 0.3rem; border-radius: 0.5rem; }
.side-nav { display: grid; gap: 0.15rem; }
.side-nav a { padding: 0.5rem 0.7rem; border-radius: 0.65rem; }
.side-label {
  margin: 0.85rem 0.7rem 0.25rem;
  color: #98a2b3;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.side-steps {
  display: grid;
  gap: 0.08rem;
  margin: 0.1rem 0 0.45rem;
  padding: 0 0.15rem;
}
.side-sub {
  display: grid;
  grid-template-columns: 1.35rem minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.55rem;
  padding: 0.38rem 0.55rem 0.38rem 0.45rem;
  font-size: 0.86rem;
  line-height: 1.25;
}
.side-step {
  position: relative;
}
.side-step + .side-step::before {
  content: "";
  position: absolute;
  left: 1.12rem;
  top: -0.12rem;
  width: 2px;
  height: 0.28rem;
  background: #3a3f4a;
  transform: translateX(-50%);
  pointer-events: none;
}
.side-num {
  justify-self: center;
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: #22262f;
  color: #f8fafc;
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.side-sub[aria-current="page"] .side-num {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.18);
}
.side-sub.is-pending:not([aria-current="page"]) .side-num {
  background: #1a1d27;
  color: #d0d5dd;
}
.side-sub.is-locked .side-num {
  background: transparent;
  border: 1px solid #4b5160;
  color: #98a2b3;
  box-shadow: none;
}
.side-sub-label { min-width: 0; }
.side-sub.is-locked .side-sub-label { color: #98a2b3; }
.side-pending {
  color: #ffb089;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.side a[aria-current="page"], .side a:hover { background: #1a1d27; }
.side .disabled { color: #98a2b3; pointer-events: none; }
.side-foot {
  display: grid;
  gap: 0.15rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #22262f;
}
.side-foot a { padding: 0.5rem 0.7rem; border-radius: 0.65rem; }
.app-main {
  flex: 1 1 auto;
  min-width: 0;
  padding: calc(var(--app-nav-h) + 1.15rem) 1.5rem calc(var(--app-foot-h) + 1.4rem) calc(var(--app-side-w) + 1.5rem);
  background: var(--paper);
}
.app-shell.is-bare .app-main {
  padding-left: 1.5rem;
}
.app-footer {
  position: sticky;
  bottom: 0;
  z-index: 25;
  flex-shrink: 0;
  margin-top: auto;
  margin-left: var(--app-side-w);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  min-height: var(--app-foot-h);
  padding: 0.65rem 1.5rem;
  background: var(--nav);
  color: #98a2b3;
  border-top: 3px solid var(--orange);
  font-size: 0.8rem;
}
.app-footer p { margin: 0; }
.app-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}
.app-footer nav a {
  color: #d0d5dd;
  text-decoration: none;
}
.app-footer nav a:hover,
.app-footer nav a:focus { color: #ffd7c4; }
.app-shell.is-bare .app-footer { margin-left: 0; }
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.app-header-top { margin-bottom: 0; padding-bottom: 0; }
.badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--chip);
  color: var(--orange-deep);
  font-size: 0.76rem;
  font-weight: 700;
}
.badge-muted { background: #eef2f6; color: var(--muted); }
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1rem;
}
.steps a, .steps span {
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-size: 0.82rem;
}
.steps .is-current { background: var(--nav); color: #fff; border-color: var(--nav); }
.preamble {
  background: #fff;
  border-left: 3px solid var(--orange);
  padding: 0.85rem 1rem;
}
.future { opacity: 0.72; }
.lede { color: var(--muted); margin-top: 0; }
.review-list { display: grid; gap: 0.45rem; margin: 0; }
.review-list div { display: grid; grid-template-columns: minmax(8rem, 14rem) 1fr; gap: 0.35rem; }
.review-list dt { color: var(--muted); font-weight: 600; }
.review-list dd { margin: 0; }
.session { display: flex; align-items: center; gap: 0.7rem; }
.org-list { list-style: none; padding: 0; display: grid; gap: 0.7rem; }
.org-choice {
  appearance: none;
  display: block;
  width: 100%;
  text-align: left;
  text-decoration: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.org-choice:hover { border-color: var(--orange); }
.nav-toggle { display: none; }
.dash-hero { margin-bottom: 1rem; }
.dash-hero h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.2rem);
  letter-spacing: -0.03em;
  margin: 0.1rem 0 0.4rem;
}
.card-featured {
  background:
    radial-gradient(circle at 100% 0, rgba(255, 90, 31, 0.1), transparent 34%),
    radial-gradient(circle at 0 100%, rgba(124, 58, 237, 0.08), transparent 32%),
    var(--white);
  padding: 1.25rem 1.3rem;
  box-shadow: var(--shadow);
}
.dash-number {
  font-size: 1.8rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin: 0.3rem 0;
}
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.9rem;
  margin-top: 0.9rem;
}
.dash-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; }
.dash-prep { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.dash-prep li {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
}
.dash-prep a { color: inherit; text-decoration: none; font-weight: 650; }
.dash-prep a:hover,
.dash-prep a:focus { color: var(--orange-deep); }
.dash-prep .is-done span { color: #027a48; }
.dash-prep .is-todo span { color: #b54708; }
.dash-map { margin-top: 1.6rem; }
.dash-map h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}
.dash-map-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 0.85rem;
}
.dash-map article h3 { margin: 0 0 0.55rem; font-size: 1rem; }
.dash-map article h3 a { color: inherit; text-decoration: none; }
.dash-map article h3 a:hover,
.dash-map article h3 a:focus { color: var(--orange-deep); }
.dash-map ol,
.dash-map ul {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.55rem;
}
.dash-map li { color: var(--ink); }
.dash-map li a { color: var(--orange-deep); text-decoration: none; }
.dash-map li a:hover,
.dash-map li a:focus { text-decoration: underline; }
.form-shell { max-width: 48rem; }
.pretty-form .field input,
.pretty-form .field select,
.pretty-form .field textarea {
  border-radius: 0.7rem;
  padding: 0.7rem 0.8rem;
  background: #fff;
}
.pretty-form .field input:focus,
.pretty-form .field select:focus,
.pretty-form .field textarea:focus {
  border-color: var(--orange);
  outline: 2px solid rgba(255, 90, 31, 0.16);
  outline-offset: 1px;
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media (max-width: 860px) {
  .app-navbar { grid-template-columns: 1fr; }
  .app-navbar-main {
    flex-wrap: wrap;
    padding: 0.3rem 0.9rem;
  }
  .app-account-mail { max-width: 11rem; }
  .side {
    top: var(--app-nav-h);
    right: 0;
    bottom: auto;
    width: auto;
    padding: 0.45rem 0.9rem 0.55rem;
  }
  .side-nav,
  .side-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }
  .side-foot {
    margin-top: 0.35rem;
    padding-top: 0.35rem;
    border-top: 1px solid #22262f;
  }
  .app-main {
    padding: calc(var(--app-nav-h) + 6.2rem) 1rem 2.6rem;
  }
  .app-footer {
    margin-left: 0;
    padding: 0.65rem 1rem;
  }
  .app-shell.is-bare .app-main { padding-left: 1rem; }
  .dash-map-grid { grid-template-columns: 1fr; }
  .site-header {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .nav-links a:not(.btn) { display: none; }
  .hero { padding-top: 2.4rem; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.92rem;
}
.data-table th,
.data-table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.data-table th {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.dash-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  margin: 0 0 1rem;
}
.inline-form { display: inline; margin-left: 0.35rem; }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn { text-align: center; }
}
