:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #eef8ff;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button { font: inherit; }
input, select { font: inherit; }

.access-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at 82% 18%, rgba(32, 184, 245, 0.28), transparent 25rem), linear-gradient(135deg, #eef8ff 0 38%, #f8fbff 38% 100%);
}

.access-panel {
  width: min(100%, 820px);
  border: 1px solid #cfe1ef;
  border-radius: 8px;
  background: #fff;
  padding: 32px;
  box-shadow: 0 18px 55px rgb(8 73 126 / 14%);
}

.access-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; }
.brand-target { display: block; color: #006fdc; fill: none; }
.brand-target > circle:not(.target-signal) { stroke: currentColor; stroke-width: 3; }
.brand-target > circle.target-inner { stroke-width: 2.5; opacity: .48; }
.brand-target > path { stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.brand-target > .target-signal { fill: #ff6b35; }
.access-brand > .brand-target { width: 40px; height: 40px; flex: 0 0 40px; }
.access-brand strong, .access-brand small { display: block; }
.access-brand strong { font-size: 17px; }
.access-brand small { margin-top: 2px; color: #687881; }
.access-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 8px; color: #006fdc; background: #e7f3ff; }
.access-icon.is-error { color: #b94735; background: #fbecea; }
.access-icon svg { width: 26px; height: 26px; }
.access-eyebrow { margin: 0 0 8px; color: #64747c; font-size: 12px; font-weight: 800; text-transform: uppercase; }
h1 { margin: 0; font-size: 28px; line-height: 1.2; letter-spacing: 0; }
.access-copy { min-height: 48px; margin: 14px 0 22px; color: #4f6068; line-height: 1.5; }
.access-security { display: flex; gap: 10px; padding: 14px; margin-bottom: 22px; border: 1px solid #cfe5f5; border-radius: 6px; color: #355773; background: #f3faff; font-size: 13px; line-height: 1.45; }
.access-security svg { flex: 0 0 19px; width: 19px; height: 19px; color: #006fdc; }
.access-button { width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 6px; color: #fff; background: #006fdc; font-weight: 800; cursor: pointer; }
.access-button:hover:not(:disabled) { background: #005fbf; }
.access-button:focus-visible, .role-suggestion-chip:focus-visible { outline: 3px solid #005fbf; outline-offset: 3px; }
.access-button:disabled { cursor: not-allowed; opacity: .5; }
.access-button svg { width: 18px; height: 18px; }
.access-panel form { display: grid; gap: 18px; }
.access-panel label { color: #3c4b52; font-size: 13px; font-weight: 700; }
.access-panel label em { color: #7b8991; font-size: 11px; font-style: normal; font-weight: 600; }
.access-panel input, .access-panel select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #b9c8c2; border-radius: 6px; color: #172129; background: #fff; }
.access-panel input:focus, .access-panel select:focus { outline: 3px solid #006fdc; border-color: #006fdc; }
.access-panel textarea { width: 100%; padding: 10px 12px; border: 1px solid #b9c8c2; border-radius: 6px; resize: vertical; font: inherit; }
.access-panel textarea:focus { outline: 3px solid #006fdc; border-color: #006fdc; }
.onboarding-form label { display: grid; gap: 6px; }
.onboarding-form small { color: #718087; font-weight: 500; line-height: 1.4; }
.onboarding-progress { display: grid; gap: 9px; padding: 14px 16px; border: 1px solid #d9e8f4; border-radius: 8px; background: #f6fbff; }
.progress-copy { display: flex; justify-content: space-between; gap: 16px; color: #667780; font-size: 12px; }
.progress-copy strong { color: #086bcf; }
.progress-track { height: 5px; overflow: hidden; border-radius: 999px; background: #dcecf7; }
.progress-track span { display: block; width: 20%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #006fdc, #24b8f5); transition: width .22s ease; }
.onboarding-step { display: grid; gap: 16px; animation: step-in .18s ease-out; }
.step-heading { display: flex; align-items: flex-start; gap: 13px; padding-bottom: 15px; border-bottom: 1px solid #e1ebf2; }
.step-heading h2, .step-heading p { margin: 0; }
.step-heading h2 { color: #12203a; font-size: 21px; line-height: 1.25; }
.step-heading p { max-width: 610px; margin-top: 5px; color: #5c6f79; font-size: 13px; line-height: 1.5; }
.step-heading h2:focus { outline: none; }
.step-icon { width: 40px; height: 40px; display: grid; flex: 0 0 40px; place-items: center; border-radius: 9px; color: #006fdc; background: #e8f4ff; }
.step-icon svg { width: 21px; height: 21px; }
.access-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.access-choice-group { margin: 0; padding: 12px; border: 1px solid #d1dcd8; border-radius: 6px; }
.access-choice-group legend { padding: 0 5px; color: #3c4b52; font-size: 13px; font-weight: 800; }
.access-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; }
.access-choice-grid label { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.access-choice-grid input { width: 18px; min-height: 18px; flex: 0 0 18px; padding: 0; }
.role-suggestions { padding: 12px; border: 1px solid #cfe5f5; border-radius: 6px; background: #f3faff; }
.role-suggestions strong { display: block; margin-bottom: 9px; color: #284f72; font-size: 13px; }
.role-suggestions > div { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 8px; }
.role-suggestion-chip { min-height: 32px; padding: 6px 10px; border: 1px solid #9dc8e7; border-radius: 999px; color: #0b64b8; background: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.role-suggestion-chip:hover { border-color: #006fdc; background: #e7f3ff; }
.access-upload { padding: 12px; border: 1px dashed #9dc8e7; border-radius: 6px; background: #f6fbff; }
.access-upload:focus-within { border-color: #006fdc; box-shadow: 0 0 0 3px rgb(0 111 220 / 20%); }
.access-consent { grid-template-columns: auto 1fr; align-items: start; font-weight: 500 !important; line-height: 1.4; }
.access-consent input { width: 18px; min-height: 18px; margin-top: 2px; }
.source-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.source-preview > div { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; min-height: 58px; padding: 10px 12px; border: 1px solid #d7e4ed; border-radius: 8px; background: #fff; }
.source-preview > div > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; color: #0b6dcc; background: #e8f4ff; font-size: 11px; font-weight: 900; }
.source-preview strong { font-size: 13px; }
.source-preview small { color: #16805f; font-size: 11px; font-weight: 800; }
.onboarding-note { display: flex; gap: 10px; padding: 14px; border: 1px solid #ffd8c9; border-radius: 8px; color: #714332; background: #fff7f3; }
.onboarding-note svg { width: 19px; height: 19px; flex: 0 0 19px; color: #ff6b35; }
.onboarding-note p { margin: 0; font-size: 13px; line-height: 1.5; }
.onboarding-note strong { display: block; margin-bottom: 3px; }
.onboarding-summary { display: grid; border: 1px solid #d7e4ed; border-radius: 8px; overflow: hidden; }
.onboarding-summary > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; padding: 11px 13px; border-bottom: 1px solid #e5edf3; }
.onboarding-summary > div:last-child { border-bottom: 0; }
.onboarding-summary span { color: #70808a; font-size: 12px; }
.onboarding-summary strong { overflow-wrap: anywhere; color: #263844; font-size: 12px; line-height: 1.45; }
.onboarding-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 4px; border-top: 1px solid #e2ebf1; }
.onboarding-actions .access-button { width: auto; min-width: 150px; padding: 0 18px; }
.access-button.is-secondary { color: #24465e; border: 1px solid #bfd1df; background: #fff; }
.access-button.is-secondary:hover:not(:disabled) { color: #006fdc; border-color: #006fdc; background: #f4faff; }
.form-message { margin: 0; padding: 11px 13px; border: 1px solid #ffd0c1; border-radius: 7px; color: #9b3f25; background: #fff5f1; font-size: 13px; font-weight: 700; }
.access-help { margin: 16px 0 0; color: #78868c; font-size: 12px; line-height: 1.45; text-align: center; }

@keyframes step-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 520px) {
  .access-shell { padding: 0; background: #fff; align-items: stretch; }
  .access-panel { width: 100%; min-height: 100vh; border: 0; border-radius: 0; padding: 24px 20px; box-shadow: none; }
  .access-brand { margin-bottom: 34px; }
  .access-form-grid { grid-template-columns: 1fr; }
  .access-choice-grid { grid-template-columns: 1fr 1fr; }
  .progress-copy { flex-direction: column; gap: 2px; }
  .step-heading h2 { font-size: 19px; }
  .source-preview { grid-template-columns: 1fr; }
  .source-preview > div { grid-template-columns: 36px 1fr; }
  .source-preview small { grid-column: 2; margin-top: -7px; }
  .onboarding-summary > div { grid-template-columns: 1fr; gap: 4px; }
  .onboarding-actions { align-items: stretch; flex-direction: column-reverse; }
  .onboarding-actions .access-button { width: 100%; }
}
