.fel-accreditor-shell {
  max-width: 42rem;
}

.fel-acc-ob-stage-progress {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.fel-accreditor-stages {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

.fel-accreditor-stages li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: #64748b;
  padding: 0.35rem 0.7rem 0.35rem 0.45rem;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.fel-acc-ob-stage-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  background: #e2e8f0;
  color: #334155;
}

.fel-accreditor-stages li.is-complete {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
  font-weight: 600;
}

.fel-accreditor-stages li.is-complete .fel-acc-ob-stage-index {
  background: #0f766e;
  color: #fff;
}

.fel-accreditor-stages li.is-active {
  background: #0b1f4a;
  border-color: #0b1f4a;
  color: #fff;
  font-weight: 600;
}

.fel-accreditor-stages li.is-active .fel-acc-ob-stage-index {
  background: #fff;
  color: #0b1f4a;
}

.fel-acc-ob-stage-heading {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0 0 1rem;
  font-size: 1.2rem;
  color: #0f172a;
}

.fel-acc-ob-stage-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #475569;
}

.fel-accreditor-shell [hidden] {
  display: none !important;
}

.fel-accreditor-panel[hidden] {
  display: none !important;
}

.fel-accreditor-field {
  margin-bottom: 1rem;
}

.fel-accreditor-field label,
.fel-accreditor-field legend {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.fel-accreditor-field input[type="text"],
.fel-accreditor-field input[type="email"],
.fel-accreditor-field select,
.fel-accreditor-field textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.fel-accreditor-checkgroup label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.fel-accreditor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.fel-acc-ob-nav {
  margin-top: 1.5rem;
}

.fel-acc-ob-nav .fel-accreditor-status {
  margin-bottom: 0.75rem;
}

.fel-accreditor-gate .corp-btn:disabled,
.fel-accreditor-gate .corp-btn:disabled:hover,
.fel-accreditor-gate .corp-btn:disabled:focus-visible {
  background: #94a3b8;
  border-color: #94a3b8;
  color: #fff;
  cursor: not-allowed;
  opacity: 1;
}

.fel-accreditor-status {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  font-size: 0.9375rem;
}

.fel-accreditor-save-status {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  box-sizing: border-box;
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  font-size: 0.9375rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.fel-accreditor-save-status[data-state="idle"] {
  color: #64748b;
  background: #f8fafc;
}

.fel-accreditor-save-status[data-state="saving"] {
  color: #334155;
  background: #f1f5f9;
}

.fel-accreditor-save-status[data-state="saved"] {
  color: #065f46;
  background: #ecfdf5;
}

.fel-accreditor-save-status[data-state="error"] {
  color: #991b1b;
  background: #fef2f2;
}

.fel-accreditor-status--err {
  background: #fef2f2;
  color: #991b1b;
}

.fel-accreditor-status--ok {
  background: #ecfdf5;
  color: #065f46;
}

.fel-accreditor-status--progress {
  background: #f8fafc;
  color: #334155;
}

.fel-accreditor-gate {
  max-width: 36rem;
}

.fel-accreditor-thankyou {
  max-width: 40rem;
}

.fel-accreditor-thankyou .corp-prose {
  white-space: pre-line;
}

.fel-accreditor-readonly summary {
  font-weight: 600;
  cursor: default;
}

.fel-accreditor-tag-input {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  padding: 0.35rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  min-height: 2.5rem;
}

.fel-accreditor-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.5rem;
  background: #e2e8f0;
  border-radius: 999px;
  font-size: 0.875rem;
}

.fel-accreditor-tag button {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  font-size: 1rem;
}

.fel-accreditor-tag-input input {
  border: none;
  flex: 1;
  min-width: 8rem;
  outline: none;
}

.fel-accreditor-pathway {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  padding: 1.05rem 1.15rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.fel-accreditor-pathway label {
  font-weight: 400;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 0;
  line-height: 1.5;
  cursor: pointer;
}

.fel-accreditor-pathway input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.22em 0 0;
  flex-shrink: 0;
}

.fel-acc-onboard-status-card {
  margin: 1.25rem 0 1.5rem;
  padding: 1rem 1.15rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.fel-acc-onboard-status-card dt {
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
}

.fel-acc-onboard-status-card dd {
  margin: 0.25rem 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.fel-acc-onboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.fel-acc-ob-withdraw {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.fel-acc-ob-withdraw-confirm {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.fel-acc-ob-withdraw-confirm .corp-prose {
  margin: 0 0 0.75rem;
}

.fel-acc-ob-withdraw-confirm .fel-accreditor-actions {
  margin-top: 0;
}

.fel-acc-onboard-elig-list {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.fel-acc-onboard-elig-list li {
  margin: 0.35rem 0;
}

.fel-acc-ob-referee {
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.fel-acc-ob-referee h3,
.fel-acc-ob-referee h4 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.fel-acc-onboard-readonly-dl {
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.85rem;
}

.fel-acc-onboard-readonly-dl dt {
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
}

.fel-acc-onboard-readonly-dl dd {
  margin: 0.2rem 0 0;
  white-space: pre-wrap;
}

.fel-acc-ob-progress-dock {
  position: sticky;
  top: var(--acc-header-h, 3.25rem);
  z-index: 8;
  background: var(--gal-bg, #fff);
  padding: 0.35rem 0 0.9rem;
  margin: 0 0 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.fel-acc-ob-form-section {
  padding: 0 0 1.5rem;
}

.fel-acc-ob-progress-heading {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
}

.fel-acc-ob-textarea-wrap {
  position: relative;
}

.fel-acc-ob-textarea-wrap textarea {
  padding-bottom: 2rem;
  background: #fff;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.fel-acc-ob-textarea-wrap.is-short textarea {
  background: #fef2f2;
  border-color: #fca5a5;
}

.fel-acc-ob-textarea-wrap.is-ok textarea {
  background: #fff;
}

.fel-acc-ob-word-meter {
  position: absolute;
  right: 0.65rem;
  bottom: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  pointer-events: none;
}

.fel-acc-ob-textarea-wrap.is-short .fel-acc-ob-word-meter {
  color: #991b1b;
}

.fel-acc-ob-has-error input,
.fel-acc-ob-has-error select,
.fel-acc-ob-has-error textarea,
.fel-acc-ob-has-error .fel-accreditor-tag-input {
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15);
}

.fel-acc-ob-has-error {
  border-radius: 8px;
}

fieldset.fel-acc-ob-has-error,
.fel-acc-ob-referee.fel-acc-ob-has-error {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}

.fel-acc-ob-progress {
  --acc-progress-cols: 8;
  --acc-progress-node: 1.05rem;
  --acc-progress-track: 4px;
  --acc-progress-canvas: var(--gal-bg, #fff);
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0.35rem 0 0.15rem;
  display: grid;
  grid-template-columns: repeat(var(--acc-progress-cols), minmax(0, 1fr));
  column-gap: 0;
  row-gap: 1.25rem;
}

.fel-acc-ob-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  position: relative;
  text-align: center;
  padding: 0 0.15rem;
}

.fel-acc-ob-progress-step::before,
.fel-acc-ob-progress-step::after {
  content: "";
  position: absolute;
  top: calc(var(--acc-progress-node) / 2 - var(--acc-progress-track) / 2);
  height: var(--acc-progress-track);
  background: #cbd5e1;
  z-index: 0;
  pointer-events: none;
}

.fel-acc-ob-progress-step::before {
  left: 0;
  right: 50%;
}

.fel-acc-ob-progress-step::after {
  left: 50%;
  right: 0;
}

.fel-acc-ob-progress-step:nth-child(8n + 1)::before,
.fel-acc-ob-progress-step:nth-child(8n)::after,
.fel-acc-ob-progress-step:last-child::after {
  display: none;
}

.fel-acc-ob-progress-step--complete::before,
.fel-acc-ob-progress-step--complete::after,
.fel-acc-ob-progress-step--current::before {
  background: #0f766e;
}

.fel-acc-ob-progress-lights {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.16rem;
  min-height: var(--acc-progress-node);
  padding: 0 0.28rem;
  background: var(--acc-progress-canvas, #fff);
  z-index: 1;
  position: relative;
}

.fel-acc-ob-progress-lights--pair {
  gap: 0.12rem;
}

.fel-acc-ob-progress-copy {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  max-width: 8.25rem;
}

.fel-acc-ob-progress-label {
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1.25;
  color: #0f172a;
  overflow-wrap: anywhere;
}

.fel-acc-ob-progress-state {
  font-size: 0.7rem;
  color: #475569;
}

@media (max-width: 900px) {
  .fel-acc-ob-progress {
    --acc-progress-cols: 4;
  }

  .fel-acc-ob-progress-step:nth-child(4n + 1)::before,
  .fel-acc-ob-progress-step:nth-child(4n)::after {
    display: none;
  }
}

@media (max-width: 560px) {
  .fel-acc-ob-progress {
    --acc-progress-cols: 2;
  }

  .fel-acc-ob-progress-step:nth-child(2n + 1)::before,
  .fel-acc-ob-progress-step:nth-child(2n)::after {
    display: none;
  }
}

.fel-acc-ob-records {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0 1.4rem;
}

.fel-acc-ob-record {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
}

.fel-acc-ob-record > summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.75rem 1rem;
}

.fel-acc-ob-record[open] > summary {
  border-bottom: 1px solid #e2e8f0;
}

.fel-acc-ob-record-body {
  padding: 0.9rem 1rem 1rem;
}

.fel-acc-ob-training-log {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
  color: #334155;
}

.fel-acc-ob-training-log li + li {
  margin-top: 0.25rem;
}

.fel-acc-ob-decl-confirm {
  font-weight: 600;
  color: #0f172a;
}

.fel-acc-ob-decl-history-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: #0f172a;
}

.fel-acc-ob-decl-history {
  margin: 0 0 1.15rem;
  padding-left: 1.15rem;
  color: #334155;
}

.fel-acc-ob-decl-docs {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1.15rem;
}

.fel-acc-ob-decl-doc {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
}

.fel-acc-ob-decl-doc > summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.7rem 0.85rem;
  color: #0f172a;
  background: #fff;
}

.fel-acc-ob-decl-doc > summary:hover,
.fel-acc-ob-decl-doc > summary:focus-visible {
  background: #0f172a;
  color: #fff;
}

.fel-acc-ob-decl-doc[open] > summary {
  border-bottom: 1px solid #e2e8f0;
}

.fel-acc-ob-decl-doc-body {
  padding: 0.85rem 0.95rem 1rem;
}

.fel-acc-ob-decl-doc-body h3,
.fel-acc-ob-decl-doc-body h4 {
  margin: 1rem 0 0.35rem;
  color: #0f172a;
}

.fel-acc-ob-decl-doc-body h3:first-child,
.fel-acc-ob-decl-doc-body h4:first-child,
.fel-acc-ob-decl-doc-body p:first-child {
  margin-top: 0;
}

.fel-acc-ob-decl-tick {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 1.1rem 0 0;
  padding: 0.75rem 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
  color: #0f172a;
}

.fel-acc-ob-decl-tick:hover,
.fel-acc-ob-decl-tick:focus-within {
  background: #e2e8f0;
  color: #0f172a;
}

.fel-acc-ob-decl-tick input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.22em 0 0;
  flex-shrink: 0;
}

.fel-acc-ob-decl-sign {
  margin: 0 0 0.85rem;
}

.fel-acc-ob-decl-sign input {
  width: 100%;
  max-width: 28rem;
  box-sizing: border-box;
}

.fel-acc-ob-quiz-list {
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.1rem;
}

.fel-acc-ob-progress-light {
  width: var(--acc-progress-node, 0.9rem);
  height: var(--acc-progress-node, 0.9rem);
  border-radius: 50%;
  background: #cbd5e1;
  border: 2px solid #94a3b8;
  flex-shrink: 0;
  box-sizing: border-box;
}

.fel-acc-ob-progress-lights--pair .fel-acc-ob-progress-light {
  width: calc(var(--acc-progress-node, 0.9rem) - 0.12rem);
  height: calc(var(--acc-progress-node, 0.9rem) - 0.12rem);
}

.fel-acc-ob-progress-light--current,
.fel-acc-ob-progress-light--amber {
  background: #d97706;
  border-color: #b45309;
}

.fel-acc-ob-progress-light--complete,
.fel-acc-ob-progress-light--green {
  background: #0f766e;
  border-color: #0f766e;
}

.fel-acc-ob-progress-light--blue {
  background: #2563eb;
  border-color: #1d4ed8;
}

.fel-acc-ob-progress-light--blocked,
.fel-acc-ob-progress-light--red {
  background: #b91c1c;
  border-color: #991b1b;
}

.fel-acc-ob-visit {
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.fel-acc-ob-visit h2,
.fel-acc-ob-visit h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

#fel-acc-quiz-progress,
#fel-acc-quiz-scoreline {
  margin: 0 0 0.55rem;
  font-weight: 600;
  color: #0f172a;
}

#fel-acc-quiz-scoreline {
  font-weight: 500;
  color: #334155;
}

#fel-acc-quiz-prompt {
  font-size: 1.05rem;
  line-height: 1.45;
}

#fel-acc-quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.65rem;
}

#fel-acc-quiz-options label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0;
  padding: 0.7rem 0.85rem;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-weight: 400;
  cursor: pointer;
}

#fel-acc-quiz-options label:hover,
#fel-acc-quiz-options label:focus-within {
  border-color: #0f172a;
  background: #f8fafc;
}

#fel-acc-quiz-options.fel-acc-quiz-options--locked label {
  cursor: default;
  pointer-events: none;
}

#fel-acc-quiz-options.fel-acc-quiz-options--locked label:hover,
#fel-acc-quiz-options.fel-acc-quiz-options--locked label:focus-within {
  border-color: #cbd5e1;
  background: #fff;
}

#fel-acc-quiz-options label.fel-acc-quiz-opt--ok,
#fel-acc-quiz-options.fel-acc-quiz-options--locked label.fel-acc-quiz-opt--ok:hover {
  border-color: #15803d;
  background: #f0fdf4;
}

#fel-acc-quiz-options label.fel-acc-quiz-opt--bad,
#fel-acc-quiz-options.fel-acc-quiz-options--locked label.fel-acc-quiz-opt--bad:hover {
  border-color: #b91c1c;
  background: #fef2f2;
}

.fel-acc-quiz-mark {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.fel-acc-quiz-mark--ok {
  color: #15803d;
}

.fel-acc-quiz-mark--bad {
  color: #b91c1c;
}

.fel-acc-quiz-verdict {
  margin: 0.9rem 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.fel-acc-quiz-verdict--ok {
  color: #15803d;
}

.fel-acc-quiz-verdict--bad {
  color: #b91c1c;
}

#fel-acc-quiz-statusline {
  margin: 0 0 0.85rem;
}

#fel-acc-quiz-fail {
  padding: 1.15rem 1.2rem;
  border: 1px solid #fecaca;
  border-left: 4px solid #b91c1c;
  border-radius: 8px;
  background: #fef2f2;
}

#fel-acc-quiz-result {
  padding: 1.15rem 1.2rem;
  border: 1px solid #bbf7d0;
  border-left: 4px solid #15803d;
  border-radius: 8px;
  background: #f0fdf4;
}
