:root{--ink:#17202a;--muted:#64748b;--brand:#4f46e5;--bg:#f4f6fb;--card:#fff}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.5 system-ui,sans-serif}header,main,footer{max-width:1050px;margin:auto;padding:20px}header{display:flex;justify-content:space-between}header>a{font-weight:800;color:var(--ink);text-decoration:none}nav a,.actions a{margin-left:16px}section{background:var(--card);padding:24px;margin:16px 0;border-radius:14px;box-shadow:0 4px 24px #16213e0d}.narrow{max-width:620px;margin:48px auto}.center{text-align:center}.bar{display:flex;align-items:center;justify-content:space-between}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}label,fieldset{display:block;margin:14px 0}input:not([type=checkbox]):not([type=radio]),textarea,select{display:block;width:100%;padding:11px;margin-top:5px;border:1px solid #cbd5e1;border-radius:8px}textarea{min-height:90px}button,.button{display:inline-block;background:var(--brand);color:#fff;border:0;border-radius:8px;padding:11px 18px;text-decoration:none;cursor:pointer}.choice input{margin-right:8px}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:10px;border-bottom:1px solid #e2e8f0}.error{color:#b91c1c}footer{text-align:center;color:var(--muted)}@media(max-width:600px){.bar{display:block}.actions a{display:inline-block;margin:6px 10px 6px 0}}


/* ==========================================================
   PUBLIC SURVEY — SECTION FLOW
   2026-08-14
   ========================================================== */

.survey-shell{
  width:min(100%,760px);
  margin:32px auto 64px;
}

.survey-intro{
  background:transparent;
  box-shadow:none;
  padding:8px 4px 10px;
  margin:0;
}

.survey-eyebrow{
  margin:0 0 8px;
  font-size:.76rem;
  line-height:1;
  font-weight:800;
  letter-spacing:.16em;
  color:var(--brand);
}

.survey-intro h1{
  margin:0;
  font-size:clamp(2rem,5vw,3.25rem);
  line-height:1.08;
  letter-spacing:-.035em;
}

.survey-description{
  max-width:680px;
  margin:16px 0 0;
  color:var(--muted);
  font-size:1.05rem;
}

.survey-progress-wrap{
  margin:18px 0;
  padding:18px 20px;
}

.survey-progress-meta{
  display:flex;
  justify-content:space-between;
  gap:20px;
  margin-bottom:10px;
  color:var(--muted);
  font-size:.88rem;
  font-weight:700;
}

.survey-progress{
  width:100%;
  height:8px;
  overflow:hidden;
  border-radius:999px;
  background:#e8eaf2;
}

.survey-progress-bar{
  height:100%;
  border-radius:inherit;
  background:var(--brand);
  transition:width .28s ease;
}

.survey-step{
  display:none;
  margin-top:16px;
  padding:clamp(22px,5vw,38px);
}

.survey-step.is-active{
  display:block;
  animation:surveyStepIn .22s ease;
}

@keyframes surveyStepIn{
  from{
    opacity:0;
    transform:translateY(6px);
  }
  to{
    opacity:1;
    transform:none;
  }
}

.survey-step-heading{
  margin-bottom:28px;
  padding-bottom:20px;
  border-bottom:1px solid #e7eaf0;
}

.survey-step-heading h2{
  margin:3px 0 0;
  font-size:clamp(1.55rem,4vw,2.15rem);
  line-height:1.15;
  letter-spacing:-.025em;
  outline:none;
}

.survey-step-kicker{
  margin:0;
  color:var(--muted);
  font-size:.8rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.survey-question{
  padding:0 0 26px;
  margin:0 0 28px;
  border:0;
  border-bottom:1px solid #eef0f4;
}

.survey-question:last-of-type{
  margin-bottom:6px;
}

.survey-question legend{
  width:100%;
  padding:0;
  margin:0 0 12px;
  font-size:1.08rem;
  line-height:1.45;
  font-weight:700;
}

.survey-required{
  color:#b91c1c;
  margin-left:3px;
}

.survey-help{
  margin:-5px 0 13px;
  color:var(--muted);
  font-size:.92rem;
}

.survey-question input:not([type=checkbox]):not([type=radio]),
.survey-question textarea,
.survey-question select{
  font-size:16px;
  padding:13px 14px;
  border:1px solid #cbd5e1;
  border-radius:10px;
  background:#fff;
  transition:border-color .15s ease,box-shadow .15s ease;
}

.survey-question textarea{
  min-height:125px;
  resize:vertical;
}

.survey-question input:focus,
.survey-question textarea:focus,
.survey-question select:focus{
  outline:none;
  border-color:var(--brand);
  box-shadow:0 0 0 3px rgba(79,70,229,.12);
}

.survey-question .choice{
  display:flex;
  align-items:flex-start;
  gap:11px;
  padding:13px 14px;
  margin:9px 0;
  cursor:pointer;
  border:1px solid #dfe3eb;
  border-radius:10px;
  background:#fff;
  transition:border-color .15s ease,background .15s ease;
}

.survey-question .choice:hover{
  border-color:#b8bdca;
  background:#fafbff;
}

.survey-question .choice:has(input:checked){
  border-color:var(--brand);
  background:#f5f4ff;
}

.survey-question .choice input{
  flex:0 0 auto;
  margin:4px 0 0;
}

.survey-nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-top:30px;
  padding-top:24px;
  border-top:1px solid #e7eaf0;
}

.survey-nav button{
  min-width:125px;
  font-weight:700;
}

.survey-nav .button-secondary{
  color:var(--ink);
  background:#edf0f5;
}

.survey-nav .button-secondary:hover{
  background:#e2e6ed;
}

.survey-submit{
  padding-left:24px;
  padding-right:24px;
}

.survey-step-error,
.survey-global-error{
  border-radius:10px;
  background:#fff1f2;
  color:#991b1b;
}

.survey-step-error{
  display:none;
  margin:12px 0;
  padding:12px 14px;
}

.survey-step-error.is-visible{
  display:block;
}

.survey-global-error{
  margin:16px 0;
  padding:16px 18px;
}

.survey-global-error p{
  margin:6px 0 0;
}

.survey-complete-mark{
  display:grid;
  place-items:center;
  width:62px;
  height:62px;
  margin:0 auto 18px;
  border-radius:50%;
  background:#ecfdf3;
  color:#15803d;
  font-size:1.8rem;
  font-weight:800;
}

@media(max-width:600px){
  .survey-shell{
    margin-top:14px;
  }

  .survey-intro{
    padding-left:0;
    padding-right:0;
  }

  .survey-progress-wrap{
    padding:15px 16px;
  }

  .survey-step{
    padding:22px 18px;
  }

  .survey-nav{
    gap:10px;
  }

  .survey-nav button{
    min-width:0;
  }

  .survey-next,
  .survey-submit{
    margin-left:auto;
  }
}


/* ==========================================================
   SURVEY AUTOSAVE / RESUME / PARTICIPANT PROFILE
   ========================================================== */

.survey-savebar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:-4px 0 16px;
  padding:10px 4px;
  color:var(--muted);
  font-size:.86rem;
}

.survey-save-state{
  display:flex;
  align-items:center;
  gap:7px;
  min-height:24px;
}

.survey-save-dot{
  width:7px;
  height:7px;
  flex:0 0 auto;
  border-radius:50%;
  background:#94a3b8;
}

.survey-save-state.is-saving .survey-save-dot{
  background:#d97706;
}

.survey-save-state.is-saved .survey-save-dot{
  background:#16a34a;
}

.survey-save-state.is-error .survey-save-dot{
  background:#dc2626;
}

.survey-resume-copy{
  border:0;
  background:transparent;
  color:var(--brand);
  padding:4px 0;
  font-size:.84rem;
  font-weight:700;
  cursor:pointer;
}

.survey-resume-copy:hover{
  text-decoration:underline;
}

.survey-returning{
  margin:0 0 16px;
  padding:12px 15px;
  border:1px solid #dbeafe;
  border-radius:10px;
  background:#eff6ff;
  color:#1e3a8a;
  font-size:.92rem;
}

.survey-profile-loading{
  text-align:center;
  padding:34px 12px;
}

.survey-profile-loading-spinner{
  width:34px;
  height:34px;
  margin:0 auto 16px;
  border:3px solid #e5e7eb;
  border-top-color:var(--brand);
  border-radius:50%;
  animation:surveyProfileSpin .8s linear infinite;
}

@keyframes surveyProfileSpin{
  to{
    transform:rotate(360deg);
  }
}

.survey-profile{
  width:min(100%,760px);
  margin:32px auto 64px;
}

.survey-profile-header{
  text-align:center;
  margin-bottom:24px;
}

.survey-profile-label{
  margin:0 0 8px;
  color:var(--brand);
  font-size:.75rem;
  line-height:1;
  font-weight:800;
  letter-spacing:.15em;
}

.survey-profile-archetype{
  margin:0;
  font-size:clamp(2rem,6vw,3.3rem);
  line-height:1.05;
  letter-spacing:-.04em;
}

.survey-profile-tagline{
  max-width:620px;
  margin:14px auto 0;
  color:var(--muted);
  font-size:1.08rem;
}

.survey-profile-card{
  margin:16px 0;
  padding:24px;
}

.survey-profile-card h2{
  margin:0 0 14px;
  font-size:1.2rem;
}

.survey-profile-card p{
  margin:0;
}

.survey-profile-list{
  margin:0;
  padding-left:20px;
}

.survey-profile-list li{
  margin:9px 0;
}

.survey-profile-closing{
  margin:24px 0;
  padding:22px;
  border-radius:12px;
  background:#f7f7fb;
  text-align:center;
  font-size:1.05rem;
  font-weight:650;
}

.survey-profile-disclaimer{
  max-width:680px;
  margin:24px auto;
  color:var(--muted);
  text-align:center;
  font-size:.82rem;
}

.survey-profile-fallback{
  width:min(100%,680px);
  margin:32px auto;
  text-align:center;
}

@media(max-width:600px){
  .survey-savebar{
    align-items:flex-start;
    flex-direction:column;
    gap:4px;
  }

  .survey-profile-card{
    padding:20px 18px;
  }
}

/* Respondent identity */
.survey-identity{
  margin:18px 0;
  padding:20px;
}

.survey-identity label{
  display:block;
  font-weight:700;
}

.survey-identity label span{
  display:block;
  margin-bottom:8px;
}

.survey-identity input{
  width:100%;
  padding:13px 14px;
  font-size:16px;
  border:1px solid #cbd5e1;
  border-radius:10px;
}

.survey-identity p{
  margin:10px 0 0;
  color:var(--muted);
  font-size:.9rem;
}


/* ==========================================================
   BUTTON LOADING STATE
   ========================================================== */

button.is-loading,
.button.is-loading{
  position:relative;
  pointer-events:none;
  cursor:wait;
  opacity:.82;
}

button.is-loading .button-label,
.button.is-loading .button-label{
  opacity:.72;
}

.button-spinner{
  display:inline-block;
  width:16px;
  height:16px;
  margin-right:8px;
  vertical-align:-3px;
  border:2px solid currentColor;
  border-right-color:transparent;
  border-radius:50%;
  animation:dookun-button-spin .65s linear infinite;
}

@keyframes dookun-button-spin{
  to{
    transform:rotate(360deg);
  }
}

@media (prefers-reduced-motion:reduce){
  .button-spinner{
    animation-duration:1.5s;
  }
}


/* White-label public survey branding */

.survey-brand img,
.survey-header img,
.public-survey-brand img {
    width: auto;
    max-width: 300px;
    max-height: 78px;
    object-fit: contain;
    object-position: left center;
}


/* Respondent profile save / progress CTA */

.profile-save-cta {
    margin-top: 28px;
    border: 2px solid rgba(81,69,229,.20);
    background:
        linear-gradient(
            135deg,
            rgba(81,69,229,.07),
            rgba(255,255,255,.98)
        );
}

.profile-save-content {
    display: grid;
    grid-template-columns:
        minmax(0,1fr)
        auto;
    gap: 36px;
    align-items: center;
}

.profile-save-kicker {
    margin: 0 0 7px;
    color: #5145e5;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .14em;
}

.profile-save-content h2 {
    margin: 0 0 10px;
}

.profile-save-content ul {
    margin-bottom: 0;
}

.profile-save-actions {
    min-width: 190px;
    display: grid;
    gap: 12px;
    text-align: center;
}

.profile-save-actions .button {
    text-decoration: none;
}

@media (max-width: 720px) {
    .profile-save-content {
        grid-template-columns: 1fr;
    }

    .profile-save-actions {
        width: 100%;
    }
}


/* Respondent My Progress */

.progress-profile-card {
    position: relative;
}

.progress-profile-brand {
    margin-bottom: 14px;
}

.progress-profile-result {
    margin: 18px 0;
    padding: 16px 18px;
    border-radius: 12px;
    background: #f5f4ff;
}

.progress-profile-result span,
.progress-profile-result strong {
    display: block;
}

.progress-profile-result span {
    color: #667085;
    font-size: .82rem;
    margin-bottom: 4px;
}

.progress-profile-result strong {
    font-size: 1.25rem;
}

.progress-profile-result p {
    margin-bottom: 0;
    color: #667085;
}

.survey-profile-brand {
    max-width: 1080px;
    margin: 20px auto 10px;
}


/* Superadmin user management */

.link-button {
    display: inline;
    padding: 0;
    border: 0;
    background: transparent;
    color: #5145e5;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
}

.link-button:hover {
    text-decoration: none;
}

.danger-link {
    color: #b42318;
}


/* Company user action icons */

.actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-action {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #d9deea;
    border-radius: 9px;

    background: #fff;
    color: #5145e5;

    cursor: pointer;
    text-decoration: none;
}

.icon-action:hover {
    background: #f4f2ff;
    border-color: #b9b2ff;
}

.icon-action svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.danger-action {
    color: #b42318;
}

.danger-action:hover {
    background: #fff3f2;
    border-color: #f3b5af;
}

.success-action {
    color: #067647;
}

.success-action:hover {
    background: #ecfdf3;
    border-color: #a6f4c5;
}

.actions form {
    margin: 0;
}


/* Participant persistent profile */

.participant-profile-progress {
    padding: 20px 24px;
}

.profile-completeness-value {
    margin-bottom: 10px;
    font-size: 1.05rem;
    font-weight: 700;
}

.profile-progress-track {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7e9f2;
}

.profile-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #5145e5;
    transition: width .2s ease;
}

.participant-profile-form {
    display: grid;
    gap: 22px;
}

.participant-profile-form section {
    margin: 0;
}

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

.profile-grid-full {
    grid-column: 1 / -1;
}

.profile-choice-group {
    margin-top: 20px;
    padding: 0;
    border: 0;
}

.profile-choice-group legend {
    margin-bottom: 12px;
    font-weight: 650;
}

.profile-checkbox {
    display: flex !important;
    align-items: flex-start;
    gap: 10px !important;
    margin: 7px 0;
}

.profile-checkbox input {
    width: auto;
    margin-top: 4px;
}

.profile-save-bar {
    position: sticky;
    bottom: 12px;
    z-index: 5;

    display: flex;
    justify-content: flex-end;

    padding: 14px;

    border: 1px solid #e4e6ee;
    border-radius: 14px;

    background: rgba(255,255,255,.94);
    backdrop-filter: blur(10px);
}

@media (max-width:700px) {

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

    .profile-grid-full {
        grid-column: auto;
    }

    .profile-save-bar button {
        width: 100%;
    }
}


.my-progress-profile-card {
    border: 1px solid rgba(81,69,229,.18);
    background:
        linear-gradient(
            135deg,
            rgba(81,69,229,.06),
            #fff
        );
}

.my-progress-profile-card .profile-progress-track {
    margin: 12px 0 16px;
}


.training-context-row {
    display: grid;
    grid-template-columns: minmax(180px,.6fr) 1fr;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid #e5e7ee;
}

.training-context-row:last-child {
    border-bottom: 0;
}

.training-context-row span {
    color: #667085;
}

@media (max-width:600px) {
    .training-context-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}


/* Advanced diagnostic questions */

.diagnostic-question-code {
    display: inline-block;
    margin-bottom: 7px;

    color: #5145e5;

    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .1em;
}

.survey-question-helper {
    margin: 7px 0 14px;

    color: #667085;
    font-size: .92rem;
    line-height: 1.5;
}

.selection-limit-message {
    margin: 10px 0 0;

    color: #667085;
    font-size: .86rem;
}


/* Matrix */

.survey-matrix-wrap {
    overflow-x: auto;
    margin-top: 14px;
}

.survey-matrix {
    width: 100%;
    min-width: 760px;

    border-collapse: collapse;

    background: #fff;
}

.survey-matrix th,
.survey-matrix td {
    padding: 14px 12px;

    border: 1px solid #dde3ee;

    vertical-align: middle;
}

.survey-matrix thead th {
    background: #f4f5fb;

    color: #475467;

    font-size: .83rem;
    font-weight: 700;

    text-align: center;
}

.survey-matrix thead th:first-child {
    text-align: left;
}

.survey-matrix tbody th {
    width: 32%;

    background: #fafbfc;

    text-align: left;
    font-weight: 650;
}

.survey-matrix td {
    text-align: center;
}

.matrix-option {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    margin: 0 !important;
}

.matrix-option input {
    width: 20px;
    height: 20px;
    margin: 0;
}

.matrix-mobile-label {
    display: none;
}


/*
 * Conditional questions.
 */
.diagnostic-question[hidden] {
    display: none !important;
}


@media (max-width:700px) {

    .survey-matrix {
        min-width: 0;
    }

    .survey-matrix thead {
        display: none;
    }

    .survey-matrix,
    .survey-matrix tbody,
    .survey-matrix tr,
    .survey-matrix th,
    .survey-matrix td {
        display: block;
        width: 100%;
    }

    .survey-matrix tr {
        margin-bottom: 18px;

        overflow: hidden;

        border: 1px solid #dde3ee;
        border-radius: 12px;
    }

    .survey-matrix tbody th {
        width: 100%;

        border: 0;
        border-bottom: 1px solid #dde3ee;

        background: #f4f5fb;
    }

    .survey-matrix td {
        border: 0;
        border-bottom: 1px solid #eef1f5;

        text-align: left;
    }

    .survey-matrix td:last-child {
        border-bottom: 0;
    }

    .matrix-option {
        justify-content: flex-start;

        gap: 10px;
    }

    .matrix-mobile-label {
        display: inline;
    }
}


/* Batch 1 builder additions */

.builder-section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.builder-section-edit {
    margin-left: auto;
}

.builder-section-edit summary {
    cursor: pointer;
    color: #5145e5;
    font-weight: 600;
}

.builder-section-edit form {
    min-width: 320px;
    margin-top: 12px;
}

.builder-archive-form {
    margin: 0;
}

.builder-editor-grid {
    display: grid;
    grid-template-columns:
        repeat(2,minmax(0,1fr));
    gap: 16px;
}

.builder-editor-grid .profile-grid-full {
    grid-column: 1 / -1;
}

.builder-standard-options,
.builder-matrix-options {
    grid-column: 1 / -1;
}

.builder-matrix-options {
    display: grid;
    grid-template-columns:
        repeat(2,minmax(0,1fr));
    gap: 16px;
}

.builder-standard-options.is-hidden,
.builder-matrix-options.is-hidden {
    display: none;
}

.builder-matrix-options textarea {
    min-height: 150px;
}

@media (max-width:700px) {

    .builder-editor-grid,
    .builder-matrix-options {
        grid-template-columns: 1fr;
    }

    .builder-editor-grid .profile-grid-full {
        grid-column: auto;
    }

    .builder-section-edit form {
        min-width: 0;
    }
}


/* Builder field label/help spacing */

.builder-question-editor label > span,
.builder-matrix-options label > span,
.builder-standard-options label > span {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.builder-question-editor label > small,
.builder-matrix-options label > small,
.builder-standard-options label > small {
    display: block;
    margin: -2px 0 8px;
    color: #667085;
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.4;
}

.builder-question-editor label > input,
.builder-question-editor label > textarea,
.builder-question-editor label > select,
.builder-matrix-options label > textarea,
.builder-standard-options label > textarea {
    margin-top: 0;
}


/* Builder checkbox / numeric setting alignment */

.builder-required-toggle {
    display: flex !important;
    align-items: center;
    gap: 10px;
    align-self: end;
    min-height: 48px;
}

.builder-required-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
}

.builder-required-toggle > span {
    display: inline !important;
    margin: 0 !important;
    font-weight: 600;
}


/* Nexus starting diagnostic */

.nexus-profile {
    max-width: 1100px;
    margin-inline: auto;
}

.nexus-dimension-grid {
    display: grid;
    gap: 18px;
}

.nexus-dimension-card {
    border-left: 4px solid #5145e5;
}

.nexus-dimension-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    padding-bottom: 14px;
    margin-bottom: 16px;

    border-bottom: 1px solid #e7e9f2;
}

.nexus-dimension-head span {
    font-size: 1.15rem;
    font-weight: 750;
}

.nexus-dimension-head strong {
    padding: 6px 10px;

    border-radius: 999px;

    background: #f1efff;
    color: #5145e5;

    font-size: .85rem;
    text-align: right;
}

.nexus-evidence {
    margin: 18px 0;
}

.nexus-evidence h3 {
    margin: 0 0 8px;

    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.nexus-told h3 {
    color: #344054;
}

.nexus-observed h3 {
    color: #175cd3;
}

.nexus-inferred h3 {
    color: #6941c6;
}

.nexus-implication {
    margin: 18px 0 0;
    padding: 14px 16px;

    border-radius: 10px;
    background: #f8f9fc;
}

.nexus-map-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.nexus-rating {
    display: inline-block;

    padding: 7px 11px;

    border-radius: 999px;

    background: #ecfdf3;
    color: #067647;

    font-weight: 700;
    white-space: nowrap;
}

.nexus-map-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;

    margin: 20px 0;
}

.nexus-map-grid > div {
    padding: 14px;

    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.nexus-map-grid span {
    display: block;

    margin-bottom: 5px;

    color: #667085;
    font-size: .82rem;
}

.nexus-map-grid strong {
    display: block;
}

.nexus-recommendation {
    margin-top: 20px;
    padding: 18px;

    border-radius: 12px;

    background: #f3f2ff;
}

@media (max-width:700px) {

    .nexus-dimension-head,
    .nexus-map-heading {
        flex-direction: column;
    }

    .nexus-map-grid {
        grid-template-columns: 1fr;
    }

    .nexus-dimension-head strong {
        text-align: left;
    }
}


/* =========================================================
   DIAGNOSTIC REPORT
   ========================================================= */

.diagnostic-report {
    --diag-ink: #17202d;
    --diag-muted: #667085;
    --diag-line: #e5e7eb;
    --diag-soft: #f8f9fc;
    --diag-accent: #5145e5;

    max-width: 1120px;
    margin: 0 auto 50px;
    color: var(--diag-ink);
}

.diagnostic-hero {
    padding: 48px 44px;
    margin: 20px 0;

    border-radius: 22px;
    background:
        linear-gradient(
            135deg,
            #171125 0%,
            #2b2146 100%
        );

    color: #fff;
}

.diagnostic-kicker {
    margin: 0 0 8px;

    color: #6c5ce7;

    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.diagnostic-hero .diagnostic-kicker {
    color: #c7bfff;
}

.diagnostic-hero h1 {
    max-width: 850px;

    margin: 0;

    color: #fff;
    font-size: clamp(2rem,4vw,3.5rem);
    line-height: 1.05;
}

.diagnostic-tagline {
    max-width: 800px;

    margin: 18px 0 0;

    color: #ded9ed;
    font-size: 1.15rem;
    line-height: 1.6;
}

.diagnostic-summary {
    padding: 28px 30px;
    margin-bottom: 34px;

    border: 1px solid var(--diag-line);
    border-radius: 18px;

    background: #fff;
}

.diagnostic-summary > span {
    display: block;

    margin-bottom: 8px;

    color: var(--diag-accent);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .1em;
}

.diagnostic-summary p {
    margin: 0;

    font-size: 1.08rem;
    line-height: 1.7;
}

.diagnostic-section {
    margin: 34px 0;
}

.diagnostic-section-head {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: end;

    margin-bottom: 18px;
}

.diagnostic-section-head h2 {
    margin: 0;
}

.diagnostic-section-head > p {
    max-width: 520px;
    margin: 0;

    color: var(--diag-muted);
}

.diagnostic-snapshot-grid {
    display: grid;
    grid-template-columns:
        repeat(3,minmax(0,1fr));
    gap: 14px;
}

.diagnostic-snapshot-card {
    min-height: 125px;
    padding: 20px;

    border: 1px solid var(--diag-line);
    border-radius: 14px;

    background: #fff;
}

.diagnostic-snapshot-card span {
    display: block;

    margin-bottom: 12px;

    color: var(--diag-muted);
    font-size: .82rem;
    line-height: 1.35;
}

.diagnostic-snapshot-card strong {
    display: block;

    font-size: 1.05rem;
    line-height: 1.35;
}

.diagnostic-dimensions {
    display: grid;
    gap: 18px;
}

.diagnostic-dimension {
    overflow: hidden;

    border: 1px solid var(--diag-line);
    border-radius: 18px;

    background: #fff;
}

.diagnostic-dimension-header {
    padding: 22px 26px;

    background: #fafaff;
    border-bottom: 1px solid var(--diag-line);
}

.diagnostic-dimension-header span {
    display: block;

    margin-bottom: 4px;

    color: var(--diag-muted);
    font-size: .82rem;
}

.diagnostic-dimension-header h3 {
    margin: 0;

    font-size: 1.3rem;
}

.diagnostic-evidence-grid {
    display: grid;
    grid-template-columns:
        repeat(3,minmax(0,1fr));
}

.diagnostic-evidence {
    padding: 22px;

    border-right: 1px solid var(--diag-line);
}

.diagnostic-evidence:last-child {
    border-right: 0;
}

.diagnostic-evidence-label {
    display: block;

    margin-bottom: 12px;

    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .07em;
}

.diagnostic-evidence.told
.diagnostic-evidence-label {
    color: #344054;
}

.diagnostic-evidence.observed
.diagnostic-evidence-label {
    color: #175cd3;
}

.diagnostic-evidence.inferred
.diagnostic-evidence-label {
    color: #6941c6;
}

.diagnostic-evidence ul,
.diagnostic-list-card ul {
    margin: 0;
    padding-left: 19px;
}

.diagnostic-evidence li,
.diagnostic-list-card li {
    margin: 0 0 9px;
    line-height: 1.55;
}

.diagnostic-empty {
    margin: 0;
    color: var(--diag-muted);
    font-style: italic;
}

.diagnostic-implication {
    padding: 18px 24px;

    border-top: 1px solid var(--diag-line);

    background: #f8f9fc;
}

.diagnostic-implication p {
    margin: 5px 0 0;
}

.diagnostic-opportunity {
    padding: 30px;

    border-radius: 20px;
    background: #171125;
    color: #fff;
}

.diagnostic-opportunity .diagnostic-kicker {
    color: #bbb1ff;
}

.diagnostic-opportunity h2 {
    max-width: 760px;

    margin: 0;

    color: #fff;
}

.diagnostic-opportunity-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 24px;
}

.diagnostic-rating {
    display: inline-flex;
    align-items: center;

    padding: 8px 12px;

    border-radius: 999px;

    font-size: .8rem;
    font-weight: 800;
    white-space: nowrap;
}

.rating-strong {
    background: #dcfae6;
    color: #067647;
}

.rating-promising {
    background: #e0f2fe;
    color: #026aa2;
}

.rating-caution {
    background: #fef0c7;
    color: #b54708;
}

.rating-early {
    background: #f4ebff;
    color: #6941c6;
}

.rating-neutral {
    background: #f2f4f7;
    color: #475467;
}

.diagnostic-opportunity-grid {
    display: grid;
    grid-template-columns:
        repeat(4,minmax(0,1fr));
    gap: 12px;

    margin: 28px 0;
}

.diagnostic-opportunity-grid > div {
    padding: 16px;

    border: 1px solid rgba(255,255,255,.14);
    border-radius: 12px;

    background: rgba(255,255,255,.06);
}

.diagnostic-opportunity-grid span {
    display: block;

    margin-bottom: 8px;

    color: #c8c4d1;
    font-size: .76rem;
}

.diagnostic-opportunity-grid strong {
    display: block;

    color: #fff;
    line-height: 1.4;
}

.diagnostic-opportunity-detail {
    display: grid;
    grid-template-columns:
        repeat(2,minmax(0,1fr));
    gap: 22px;
}

.diagnostic-opportunity-detail h3,
.diagnostic-rationale h3 {
    color: #fff;
}

.diagnostic-opportunity-detail p,
.diagnostic-opportunity-detail li,
.diagnostic-rationale p {
    color: #ddd9e5;
}

.diagnostic-next-experiment {
    margin-top: 24px;
    padding: 20px;

    border-radius: 13px;

    background: #fff;
    color: #171125;
}

.diagnostic-next-experiment span {
    display: block;

    margin-bottom: 8px;

    color: var(--diag-accent);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.diagnostic-next-experiment p {
    margin: 0;

    font-size: 1.05rem;
    line-height: 1.55;
}

.diagnostic-three-column {
    display: grid;
    grid-template-columns:
        repeat(3,minmax(0,1fr));
    gap: 16px;
}

.diagnostic-list-card {
    padding: 22px;

    border: 1px solid var(--diag-line);
    border-radius: 15px;

    background: #fff;
}

.diagnostic-closing {
    margin-top: 32px;
    padding: 28px 32px;

    border-radius: 16px;

    background: #f3f2ff;
}

.diagnostic-closing p {
    margin: 0;

    font-size: 1.12rem;
    font-weight: 600;
    line-height: 1.6;
}

.diagnostic-disclaimer {
    margin: 28px 0 0;

    color: #777;
    font-size: .78rem;
    line-height: 1.55;
}


@media (max-width:900px) {

    .diagnostic-snapshot-grid,
    .diagnostic-three-column {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

    .diagnostic-evidence-grid {
        grid-template-columns: 1fr;
    }

    .diagnostic-evidence {
        border-right: 0;
        border-bottom: 1px solid var(--diag-line);
    }

    .diagnostic-evidence:last-child {
        border-bottom: 0;
    }

    .diagnostic-opportunity-grid {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }
}


@media (max-width:600px) {

    .diagnostic-hero {
        padding: 32px 24px;
    }

    .diagnostic-section-head,
    .diagnostic-opportunity-head {
        flex-direction: column;
        align-items: stretch;
    }

    .diagnostic-snapshot-grid,
    .diagnostic-three-column,
    .diagnostic-opportunity-grid,
    .diagnostic-opportunity-detail {
        grid-template-columns: 1fr;
    }

    .diagnostic-opportunity {
        padding: 24px 20px;
    }
}


/* =========================================================
   COHORT REPORT ACTIONS
   ========================================================= */

.analysis-report-head .actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.analysis-report-head .report-action {
    box-sizing: border-box;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 170px;
    height: 48px;

    margin: 0;
    padding: 0 20px;

    border: 1px solid transparent;
    border-radius: 10px;

    font: inherit;
    font-weight: 700;
    line-height: 1;

    text-decoration: none;
    cursor: pointer;

    transition:
        transform .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}

.analysis-report-head .report-action:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.analysis-report-head .report-action-copy {
    background: #ffffff;
    color: #352c5c;
    border-color: #d8d5e7;
}

.analysis-report-head .report-action-copy:hover {
    background: #f7f6fb;
}

.analysis-report-head .report-action-brief {
    background: #5145e5;
    color: #ffffff;
    border-color: #5145e5;
}

.analysis-report-head .report-action-brief:hover {
    background: #4338ca;
    color: #ffffff;
}

.analysis-report-head .report-action-full {
    background: #171125;
    color: #ffffff;
    border-color: #171125;
}

.analysis-report-head .report-action-full:hover {
    background: #29213b;
    color: #ffffff;
}


@media (max-width:720px) {

    .analysis-report-head .actions {
        width: 100%;
    }

    .analysis-report-head .report-action {
        flex: 1 1 160px;
        min-width: 0;
    }
}


/* =========================================================
   LONGITUDINAL PROGRESS
   ========================================================= */

.progress-stage {
    display: inline-flex;
    align-items: center;

    margin: 0 0 10px;
    padding: 5px 9px;

    border-radius: 999px;

    font-size: .78rem;
    font-weight: 700;
}

.progress-stage-baseline {
    background: #eef0ff;
    color: #4338ca;
}

.progress-stage-follow-up,
.progress-stage-follow-up,
.progress-stage-post {
    background: #ecfdf3;
    color: #067647;
}


.longitudinal-progress-card {
    border: 1px solid #dedbec;
    background: #faf9ff;
}

.longitudinal-progress-card > .muted {
    display: block;

    margin-bottom: 6px;

    color: #5145e5;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.progress-comparison-status {
    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(0,1fr)
        );

    gap: 12px;

    margin-top: 16px;
}

.progress-comparison-status > div {
    padding: 14px 16px;

    background: #ffffff;
    border: 1px solid #e1dfeb;
    border-radius: 10px;
}

.progress-comparison-status span {
    display: block;

    margin-bottom: 4px;

    color: #667085;
    font-size: .8rem;
}

.progress-comparison-status strong {
    color: #171125;
}


@media(max-width:640px){

    .progress-comparison-status {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   PARTICIPANT LONGITUDINAL PROGRESS REPORT
   ========================================================= */

.participant-progress-report {
    max-width: 1080px;
    margin: 0 auto;
}

.participant-progress-hero {
    margin: 20px 0 28px;
    padding: 34px;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #171125,
            #30255b
        );

    color: #ffffff;
}

.participant-progress-hero h1 {
    margin: 6px 0 10px;
    color: #ffffff;
}

.participant-progress-hero p {
    max-width: 760px;
    color: #e8e5f2;
}

.participant-progress-kicker {
    margin: 0 0 6px;

    color: #6d5fea;

    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .1em;
}

.participant-progress-hero
.participant-progress-kicker {
    color: #c9c2ff;
}


.participant-progress-periods,
.participant-progress-opportunity {
    display: grid;

    grid-template-columns:
        minmax(0,1fr)
        50px
        minmax(0,1fr);

    align-items: center;

    gap: 14px;

    margin-bottom: 28px;
}

.participant-progress-periods > div:not(
    .participant-progress-arrow
),
.participant-progress-opportunity > div:not(
    .participant-progress-arrow
) {
    padding: 18px 20px;

    border: 1px solid #e2dfed;
    border-radius: 14px;

    background: #ffffff;
}

.participant-progress-periods span,
.participant-progress-opportunity span {
    display: block;

    margin-bottom: 6px;

    color: #667085;

    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .07em;
}

.participant-progress-periods strong,
.participant-progress-opportunity strong {
    display: block;

    color: #171125;
}

.participant-progress-periods small {
    display: block;
    margin-top: 5px;

    color: #667085;
}

.participant-progress-arrow,
.participant-progress-mini-arrow {
    text-align: center;

    color: #6d5fea;

    font-size: 1.6rem;
    font-weight: 800;
}


.participant-progress-section {
    margin: 28px 0;
    padding: 26px;

    border: 1px solid #e2dfed;
    border-radius: 16px;

    background: #ffffff;
}

.participant-progress-section-head {
    margin-bottom: 20px;
}

.participant-progress-section-head h2 {
    margin-bottom: 6px;
}


.participant-progress-dimensions {
    display: grid;
    gap: 14px;
}

.participant-progress-dimension {
    padding: 18px;

    border: 1px solid #e7e4ef;
    border-radius: 12px;

    background: #faf9ff;
}

.participant-progress-dimension-head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 14px;
}

.participant-progress-dimension-head h3 {
    margin: 0;
}

.participant-progress-dimension-head > span {
    padding: 4px 8px;

    border-radius: 999px;

    background: #eeecff;
    color: #5145e5;

    font-size: .72rem;
    font-weight: 700;
}


.participant-progress-before-after {
    display: grid;

    grid-template-columns:
        minmax(0,1fr)
        42px
        minmax(0,1fr);

    align-items: center;

    gap: 10px;
}

.participant-progress-before-after > div:not(
    .participant-progress-mini-arrow
) {
    min-height: 78px;

    padding: 13px 14px;

    border-radius: 10px;

    background: #ffffff;
    border: 1px solid #ebe9f1;
}

.participant-progress-before-after span {
    display: block;

    margin-bottom: 6px;

    color: #667085;

    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .06em;
}

.participant-progress-before-after strong {
    color: #171125;
}


.participant-progress-interpretation {
    margin: 14px 0 0;
    padding: 13px 15px;

    border-left: 4px solid #6d5fea;

    background: #f5f3ff;
}


.participant-outcome-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0,1fr)
        );

    gap: 14px;

    margin-top: 18px;
}

.participant-outcome-card {
    padding: 18px;

    border: 1px solid #e5e2ee;
    border-radius: 12px;

    background: #faf9ff;
}

.participant-outcome-card > span {
    display: block;

    margin-bottom: 8px;

    color: #5145e5;

    font-size: .78rem;
    font-weight: 800;
}

.participant-outcome-card strong {
    color: #171125;
}


.participant-progress-next {
    background: #171125;
    color: #ffffff;
}

.participant-progress-next h2 {
    color: #ffffff;
}

.participant-progress-next
.participant-progress-kicker {
    color: #c9c2ff;
}

.participant-next-item {
    margin-top: 14px;
    padding: 15px 17px;

    border: 1px solid #40384f;
    border-radius: 10px;

    background: #221a30;
}

.participant-next-item span {
    display: block;

    margin-bottom: 5px;

    color: #c9c2ff;

    font-size: .75rem;
    font-weight: 800;
}

.participant-next-item p {
    margin: 0;
    color: #ffffff;
}


.participant-progress-evidence {
    margin: 28px 0;
    padding: 18px 20px;

    border-radius: 12px;

    background: #f5f5f7;
    color: #505565;
}

.participant-progress-evidence p {
    margin-bottom: 0;
}


.progress-report-waiting {
    max-width: 700px;
    margin: 50px auto;
}


@media(max-width:720px){

    .participant-progress-periods,
    .participant-progress-opportunity,
    .participant-progress-before-after {
        grid-template-columns: 1fr;
    }

    .participant-progress-arrow,
    .participant-progress-mini-arrow {
        transform: rotate(90deg);
    }

    .participant-outcome-grid {
        grid-template-columns: 1fr;
    }

    .participant-progress-dimension-head {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* =========================================================
   PROGRAMME IMPACT
   ========================================================= */

.impact-stats {
    display: grid;
    grid-template-columns:
        repeat(
            4,
            minmax(0,1fr)
        );
    gap: 14px;
    margin: 20px 0 26px;
}

.impact-stats section {
    padding: 20px;

    border: 1px solid #e2dfeb;
    border-radius: 14px;

    background: #ffffff;
}

.impact-stats strong {
    display: block;

    margin-bottom: 4px;

    color: #171125;
    font-size: 1.9rem;
}

.impact-stats span {
    color: #667085;
    font-size: .85rem;
}


.impact-section {
    margin: 24px 0;
    padding: 26px;

    border: 1px solid #e2dfeb;
    border-radius: 16px;

    background: #ffffff;
}

.impact-kicker {
    margin: 0 0 5px;

    color: #5145e5;

    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .09em;
}


.impact-dimension-grid {
    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(0,1fr)
        );

    gap: 14px;

    margin-top: 20px;
}

.impact-dimension-card {
    padding: 18px;

    border: 1px solid #e5e2ef;
    border-radius: 12px;

    background: #faf9ff;
}

.impact-dimension-card h3 {
    margin: 0 0 14px;
}


.impact-three-stats {
    display: grid;
    grid-template-columns:
        repeat(
            3,
            minmax(0,1fr)
        );

    gap: 8px;
}

.impact-three-stats div {
    padding: 11px;

    border-radius: 8px;

    background: #ffffff;
}

.impact-three-stats strong,
.impact-opportunity-grid strong {
    display: block;

    color: #171125;
    font-size: 1.35rem;
}

.impact-three-stats span,
.impact-opportunity-grid span {
    display: block;

    margin-top: 2px;

    color: #667085;
    font-size: .76rem;
}


.impact-opportunity-grid {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0,1fr)
        );

    gap: 12px;

    margin-top: 18px;
}

.impact-opportunity-grid div {
    padding: 18px;

    border: 1px solid #e4e1eb;
    border-radius: 12px;

    background: #faf9ff;
}


.impact-outcome-block {
    margin-top: 22px;
    padding-top: 20px;

    border-top: 1px solid #ebe9f0;
}

.impact-outcome-head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;
}

.impact-outcome-head h3 {
    margin: 0;
}

.impact-outcome-head > span {
    color: #667085;
    font-size: .8rem;
}


.impact-distribution {
    margin-top: 14px;
}

.impact-distribution-row {
    margin: 10px 0;
}

.impact-distribution-label {
    display: flex;
    justify-content: space-between;

    gap: 18px;

    margin-bottom: 5px;

    font-size: .85rem;
}

.impact-bar {
    overflow: hidden;

    height: 9px;

    border-radius: 999px;

    background: #eeecf4;
}

.impact-bar span {
    display: block;

    height: 100%;

    border-radius: inherit;

    background: #5b50e6;
}


.impact-waiting {
    margin-top: 24px;
    padding: 30px;

    border: 1px solid #ddd9ec;
    border-radius: 16px;

    background: #faf9ff;
}


.impact-evidence-boundary {
    margin: 28px 0;
    padding: 20px;

    border-radius: 12px;

    background: #171125;
    color: #ffffff;
}

.impact-evidence-boundary strong {
    color: #c9c2ff;
}

.impact-evidence-boundary p {
    margin-bottom: 0;
    color: #efedf7;
}


@media(max-width:800px){

    .impact-stats,
    .impact-opportunity-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0,1fr)
            );
    }

    .impact-dimension-grid {
        grid-template-columns: 1fr;
    }
}


@media(max-width:540px){

    .impact-stats,
    .impact-opportunity-grid,
    .impact-three-stats {
        grid-template-columns: 1fr;
    }

    .impact-outcome-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Login gateway */
.login-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
    margin-top: 32px;
}

.login-choice-grid > section {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
}

.login-choice-grid > section h2 {
    margin-top: 0;
}

.login-choice-grid > section p {
    flex-grow: 1;
}

.login-choice-grid > section .button {
    margin-top: auto;
    text-align: center;
}

@media (max-width: 800px) {
    .login-choice-grid {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================
   Longitudinal follow-up context
   ========================================================== */

.survey-followup-context {
    margin: 16px 0 20px;
    padding: 16px 18px;
    border: 1px solid rgba(81,69,229,.18);
    border-left: 4px solid var(--purple, #5145e5);
    border-radius: 12px;
    background: #f7f6ff;
}

.survey-followup-context-kicker {
    display: block;
    margin-bottom: 10px;
    color: #5145e5;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.survey-followup-context-item + .survey-followup-context-item {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(81,69,229,.12);
}

.survey-followup-context-item strong {
    display: block;
    margin-bottom: 4px;
    color: #3d3651;
    font-size: .82rem;
}

.survey-followup-context-item p {
    margin: 0;
    color: #5e5870;
    font-size: .9rem;
    line-height: 1.5;
}



/* ==========================================================
   SUPERADMIN COMPANY USER GROUPS
   ========================================================== */

.company-user-groups {
    display:flex;
    flex-direction:column;
    gap:12px;
    margin-top:20px;
}


.company-user-group {
    overflow:hidden;
    border:1px solid #e4e7ee;
    border-radius:14px;
    background:#fff;
}


.company-user-group-header {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto 36px;
    align-items:center;
    gap:18px;

    width:100%;
    margin:0;
    padding:18px 20px;

    border:0;
    border-radius:0;

    background:#fff;
    color:#17202d;

    text-align:left;
    cursor:pointer;
}


.company-user-group-header:hover {
    background:#f8f9fc;
}


.company-user-group-title {
    font-size:1rem;
    font-weight:750;
}


.company-user-group-meta {
    color:#697386;
    font-size:.9rem;
    font-weight:600;
}


.company-user-toggle {
    display:flex;
    align-items:center;
    justify-content:center;

    width:32px;
    height:32px;

    border-radius:50%;

    background:#f0efff;
    color:#5145e5;

    font-size:1.3rem;
    font-weight:500;
    line-height:1;
}


.company-user-group-body {
    padding:0 20px 18px;
    border-top:1px solid #eef0f4;
}


.company-user-expanded-table {
    margin-top:12px;
}


.company-user-expanded-table th:first-child,
.company-user-expanded-table td:first-child {
    width:58px;
    text-align:center;
}


/*
 * User status is intentionally displayed as a dot rather
 * than the word Active/Inactive.
 */
.user-status-dot {
    display:inline-block;

    width:11px;
    height:11px;

    border-radius:50%;

    background:#9aa3b2;

    box-shadow:
        0 0 0 3px rgba(154,163,178,.13);
}


.user-status-dot.is-active {
    background:#21a366;

    box-shadow:
        0 0 0 3px rgba(33,163,102,.13);
}


.user-status-dot.is-pending {
    background:#e9a23b;

    box-shadow:
        0 0 0 3px rgba(233,162,59,.14);
}


.user-status-dot.is-inactive {
    background:#9aa3b2;

    box-shadow:
        0 0 0 3px rgba(154,163,178,.13);
}


@media(max-width:760px) {

    .company-user-group-header {
        grid-template-columns:minmax(0,1fr) 34px;
        gap:10px;
    }

    .company-user-group-meta {
        grid-column:1;
        grid-row:2;
    }

    .company-user-toggle {
        grid-column:2;
        grid-row:1 / span 2;
    }

}



/* ==========================================================
   Survey import + superadmin destructive actions
   ========================================================== */

.danger-link {
    color:#b42318 !important;
    font-weight:650;
}

.danger-link:hover {
    color:#8f1d14 !important;
}

.danger-zone {
    border:1px solid rgba(180,35,24,.22);
    background:#fff9f8;
}

.danger-zone h2 {
    color:#8f1d14;
}

.danger-button {
    background:#b42318;
    border-color:#b42318;
    color:#fff;
}

.danger-button:hover {
    background:#8f1d14;
    border-color:#8f1d14;
}



/* ==========================================================
   Patricia diagnostic / participant profile upgrade
   ========================================================== */

.survey-profile-archetype{
    font-size:clamp(1.65rem,4vw,2.45rem);
    line-height:1.12;
    letter-spacing:-.025em;
}

.diagnostic-hero h1{
    max-width:820px;
    font-size:clamp(1.8rem,3.3vw,2.7rem);
    line-height:1.1;
}

.diagnostic-evidence-grid{
    grid-template-columns:
        repeat(auto-fit,minmax(220px,1fr));
}

.survey-completion-experience{
    width:min(100%,680px);
    margin:30px auto;
    padding:36px 28px;
}

.survey-completion-experience h1{
    margin-bottom:14px;
    font-size:clamp(1.8rem,4vw,2.6rem);
}

.survey-completion-lead{
    font-size:1.08rem;
    font-weight:650;
}

.diagnostic-inline-snapshot{
    margin-top:22px;
}

.diagnostic-inline-grid{
    display:grid;
    grid-template-columns:
        repeat(2,minmax(0,1fr));
    gap:12px;
}

.diagnostic-inline-grid > div{
    padding:14px 16px;
    border:1px solid #e5e7eb;
    border-radius:10px;
    background:#fafafe;
}

.diagnostic-inline-grid span,
.diagnostic-inline-grid strong{
    display:block;
}

.diagnostic-inline-grid span{
    margin-bottom:5px;
    color:#667085;
    font-size:.82rem;
}

.diagnostic-inline-grid strong{
    color:#5145e5;
}

.diagnostic-inline-opportunity{
    border:2px solid rgba(81,69,229,.18);
    background:
        linear-gradient(
            135deg,
            rgba(81,69,229,.06),
            #fff
        );
}

.diagnostic-inline-rating{
    display:inline-block;
    margin:10px 0 14px;
    padding:7px 11px;
    border-radius:999px;
    background:#ecfdf3;
    color:#067647;
    font-weight:750;
}

@media(max-width:650px){
    .diagnostic-inline-grid{
        grid-template-columns:1fr;
    }
}



/* ==========================================================
   ADMIN RAW RESPONSE
   ========================================================== */

.raw-response-meta{
    display:grid;
    grid-template-columns:
        repeat(4,minmax(0,1fr));
    gap:14px;
    margin-top:18px;
}

.raw-response-meta > div{
    padding:14px 16px;
    border:1px solid #e5e7eb;
    border-radius:10px;
    background:#fafbfc;
}

.raw-response-meta span,
.raw-response-meta strong{
    display:block;
}

.raw-response-meta span{
    margin-bottom:4px;
    color:#667085;
    font-size:.8rem;
}

.raw-response-section{
    margin-top:20px;
}

.raw-response-list{
    display:grid;
    gap:0;
}

.raw-response-item{
    display:grid;
    grid-template-columns:
        minmax(260px,.9fr)
        minmax(0,1.5fr);
    gap:28px;

    padding:18px 0;

    border-bottom:1px solid #e7e9ef;
}

.raw-response-item:last-child{
    border-bottom:0;
}

.raw-response-question strong{
    display:block;
}

.raw-response-code{
    display:inline-block;

    margin-bottom:5px;

    color:#5145e5;
    font-size:.75rem;
    font-weight:800;
    letter-spacing:.06em;
}

.raw-response-answer{
    line-height:1.6;
}

.raw-matrix-row{
    display:flex;
    justify-content:space-between;
    gap:20px;

    padding:7px 0;

    border-bottom:1px solid #eef0f4;
}

.raw-matrix-row:last-child{
    border-bottom:0;
}

.raw-matrix-row span{
    color:#667085;
}


@media(max-width:760px){

    .raw-response-meta{
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

    .raw-response-item{
        grid-template-columns:1fr;
        gap:8px;
    }
}


@media(max-width:480px){

    .raw-response-meta{
        grid-template-columns:1fr;
    }
}



/* ==========================================================
   STAFF IDENTITY + AUDIT
   ========================================================== */

.staff-identity-link{
    max-width:180px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.staff-profile-facts{
    display:grid;
    grid-template-columns:
        repeat(3,minmax(0,1fr));
    gap:12px;
    margin:18px 0 24px;
}

.staff-profile-facts > div{
    padding:14px;
    border:1px solid #e5e7eb;
    border-radius:10px;
    background:#fafbfc;
}

.staff-profile-facts span,
.staff-profile-facts strong{
    display:block;
}

.staff-profile-facts span{
    margin-bottom:4px;
    color:#667085;
    font-size:.82rem;
}


.audit-active-grid{
    display:grid;
    grid-template-columns:
        repeat(auto-fit,minmax(230px,1fr));
    gap:12px;
}

.audit-active-user{
    display:flex;
    align-items:flex-start;
    gap:12px;
    padding:14px 16px;
    border:1px solid #dfe4ea;
    border-radius:12px;
    background:#fff;
}

.audit-active-user > div{
    min-width:0;
}

.audit-active-user strong,
.audit-active-user span,
.audit-active-user small{
    display:block;
}

.audit-active-user span,
.audit-active-user small{
    color:#667085;
}

.audit-online-dot{
    flex:0 0 auto;
    width:10px;
    height:10px;
    margin-top:6px;
    border-radius:50%;
    background:#12b76a;
    box-shadow:
        0 0 0 4px
        rgba(18,183,106,.12);
}


.user-status-dot{
    display:inline-block;
    width:9px;
    height:9px;
    margin-right:7px;
    border-radius:50%;
}

.user-status-dot.active{
    background:#12b76a;
}

.user-status-dot.inactive{
    background:#98a2b3;
}


@media(max-width:700px){

    .staff-profile-facts{
        grid-template-columns:1fr;
    }
}



/* ==========================================================
   PROFESSIONAL APPLICATION HEADER
   ========================================================== */

.site-header{
    background:#fff;
    border-bottom:1px solid #e6e8ef;
}

.site-header-inner{
    width:min(100%,1500px);
    min-height:88px;

    margin:0 auto;
    padding:16px 28px;

    display:flex;
    align-items:center;
    gap:36px;
}


/*
 * Brand
 */
.site-header .site-brand{
    flex:0 0 auto;

    display:flex;
    align-items:center;
    gap:16px;

    color:#17202d;
    text-decoration:none;
}

.site-header .site-brand img{
    width:auto;
    max-width:300px;
    height:58px;
    object-fit:contain;
}

.site-header .site-brand > span{
    color:#98a2b3;
    font-size:2rem;
    font-weight:300;
}

.site-header .site-brand > strong{
    color:#17202d;
    font-size:1.15rem;
    letter-spacing:.14em;
}


/*
 * Whole right side of admin header
 */
.admin-header-shell{
    flex:1 1 auto;
    min-width:0;

    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:28px;
}


/*
 * Primary admin navigation
 */
.admin-primary-nav{
    display:flex;
    align-items:center;
    gap:6px;

    margin-left:auto;
}

.admin-primary-nav a{
    display:inline-flex;
    align-items:center;

    min-height:42px;
    padding:9px 13px;

    border-radius:9px;

    color:#344054;
    font-size:.94rem;
    font-weight:650;
    text-decoration:none;

    white-space:nowrap;

    transition:
        background .15s ease,
        color .15s ease;
}

.admin-primary-nav a:hover{
    background:#f4f2ff;
    color:#5145e5;
}


/*
 * Staff identity
 */
.admin-account{
    flex:0 0 auto;

    display:flex;
    align-items:center;
    gap:10px;

    padding-left:20px;

    border-left:1px solid #e5e7eb;
}

.admin-account-profile{
    display:grid;
    grid-template-columns:
        38px
        minmax(0,1fr)
        auto;

    align-items:center;
    gap:10px;

    max-width:360px;

    padding:7px 9px;

    border-radius:11px;

    color:#17202d;
    text-decoration:none;

    transition:background .15s ease;
}

.admin-account-profile:hover{
    background:#f8f7ff;
}


/*
 * Avatar
 */
.admin-account-avatar{
    width:38px;
    height:38px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    background:#5145e5;
    color:#fff;

    font-size:.95rem;
    font-weight:800;
}


/*
 * Identity copy
 */
.admin-account-copy{
    min-width:0;
}

.admin-account-copy strong,
.admin-account-copy span{
    display:block;
}

.admin-account-copy strong{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;

    font-size:.9rem;
    line-height:1.2;
}

.admin-account-copy span{
    margin-top:3px;

    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;

    color:#667085;
    font-size:.76rem;
}


/*
 * Role badge
 */
.admin-role-badge{
    display:inline-flex;
    align-items:center;

    padding:5px 8px;

    border-radius:999px;

    background:#f1efff;
    color:#5145e5;

    font-size:.68rem;
    line-height:1;
    font-weight:750;

    white-space:nowrap;
}


/*
 * Logout
 */
.admin-logout{
    padding:9px 10px;

    border-radius:8px;

    color:#667085;
    font-size:.85rem;
    font-weight:600;
    text-decoration:none;

    white-space:nowrap;
}

.admin-logout:hover{
    background:#f8f9fc;
    color:#b42318;
}


/*
 * Medium screens:
 * keep professional layout but allow the navigation to wrap.
 */
@media(max-width:1180px){

    .site-header-inner{
        align-items:flex-start;
        flex-wrap:wrap;
        gap:14px 24px;
    }

    .admin-header-shell{
        flex:1 1 700px;
        flex-wrap:wrap;
        gap:12px 20px;
    }

    .admin-primary-nav{
        order:2;
        flex:1 0 100%;

        margin-left:0;
        padding-top:10px;

        border-top:1px solid #eef0f4;
    }

    .admin-account{
        margin-left:auto;
    }
}


/*
 * Tablet
 */
@media(max-width:780px){

    .site-header-inner{
        padding:14px 18px;
    }

    .site-header .site-brand img{
        max-width:230px;
        height:48px;
    }

    .site-header .site-brand > span,
    .site-header .site-brand > strong{
        display:none;
    }

    .admin-header-shell{
        flex-basis:100%;
    }

    .admin-account{
        width:100%;

        padding-left:0;
        padding-top:12px;

        border-left:0;
        border-top:1px solid #eef0f4;
    }

    .admin-account-profile{
        flex:1 1 auto;
        max-width:none;
    }

    .admin-primary-nav{
        overflow-x:auto;
        flex-wrap:nowrap;

        padding-bottom:4px;

        scrollbar-width:thin;
    }
}


/*
 * Mobile
 */
@media(max-width:520px){

    .site-header-inner{
        padding:12px 14px;
    }

    .site-header .site-brand img{
        max-width:190px;
        height:42px;
    }

    .admin-account-profile{
        grid-template-columns:
            34px
            minmax(0,1fr);

        gap:9px;
    }

    .admin-account-avatar{
        width:34px;
        height:34px;
    }

    .admin-role-badge{
        grid-column:2;
        width:max-content;
    }

    .admin-logout{
        align-self:center;
    }

    .admin-primary-nav a{
        padding:8px 10px;
        font-size:.88rem;
    }
}



/*
 * Explicit admin header overrides for legacy generic header/nav CSS.
 */
.admin-site-header nav{
    margin:0;
}

.admin-site-header nav a{
    text-decoration:none;
}

.admin-site-header .admin-primary-nav{
    width:auto;
}

.admin-site-header .site-header-inner{
    box-sizing:border-box;
}



/* ==========================================================
   COMPANY-BRANDED STAFF HEADER
   ========================================================== */

.site-brand-admin-client{
    min-width:0;
}

.site-brand-admin-client img{
    width:auto !important;
    max-width:280px !important;
    max-height:64px !important;
    object-fit:contain;
    object-position:left center;
}

.site-brand-admin-client > span{
    margin:0 4px;
    color:#98a2b3;
    font-size:2rem;
    font-weight:300;
}

.site-brand-admin-client > strong{
    color:#17202d;
    font-size:1.15rem;
    font-weight:800;
    letter-spacing:.14em;
}


/*
 * Allow unusually wide client logos without breaking
 * the navigation/account area.
 */
@media(max-width:1180px){

    .site-brand-admin-client img{
        max-width:230px !important;
        max-height:56px !important;
    }
}


@media(max-width:780px){

    .site-brand-admin-client{
        max-width:100%;
    }

    .site-brand-admin-client img{
        max-width:210px !important;
        max-height:48px !important;
    }

    .site-brand-admin-client > span,
    .site-brand-admin-client > strong{
        display:inline !important;
    }
}


@media(max-width:520px){

    .site-brand-admin-client img{
        max-width:170px !important;
        max-height:42px !important;
    }

    .site-brand-admin-client > strong{
        font-size:.9rem;
        letter-spacing:.1em;
    }
}


/*
 * Footer credit.
 */
footer a{
    color:inherit;
    font-weight:700;
    text-decoration:none;
}

footer a:hover{
    text-decoration:underline;
}



/* ==========================================================
   SURVEY COMPLETION EXPERIENCE
   ========================================================== */

.survey-completion-settings{
    margin-top:24px;
    padding:22px;

    border:1px solid #e5e7eb;
    border-radius:14px;

    background:#fafafe;
}

.survey-completion-settings-head{
    margin-bottom:18px;
}

.survey-completion-settings-head h3{
    margin:0 0 5px;
}

.survey-completion-settings-head p{
    margin:0;
}

.survey-completion-settings label{
    display:block;
    margin-top:16px;
}

.survey-completion-experience{
    width:min(100%,720px);
    margin:32px auto;
    padding:38px 30px;

    text-align:center;
}

.survey-completion-experience h1{
    max-width:660px;

    margin:10px auto 18px;

    font-size:clamp(1.8rem,4vw,2.65rem);
    line-height:1.12;
}

.survey-completion-message{
    max-width:650px;

    margin:0 auto;

    color:#344054;
    font-size:1.05rem;
    line-height:1.7;

    white-space:pre-line;
}

.survey-completion-footer{
    max-width:650px;

    margin:20px auto 0;
    padding:16px 18px;

    border-radius:12px;

    background:#f3f2ff;
    color:#40378f;

    font-weight:650;
    line-height:1.6;

    white-space:pre-line;
}

.survey-completion-experience
.survey-profile-loading-spinner{
    margin-top:28px;
}


@media(max-width:600px){

    .survey-completion-settings{
        padding:18px;
    }

    .survey-completion-experience{
        padding:30px 18px;
    }
}



/* ==========================================================
   GLOBAL FOOTER + LEGAL MODALS
   ========================================================== */

.site-footer-inner{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
    gap:8px;

    text-align:center;
}

.site-footer-inner a,
.footer-legal-link{
    color:inherit;
    font:inherit;
    font-weight:700;
}

.footer-legal-link{
    padding:0;

    border:0;
    background:transparent;

    cursor:pointer;
}

.site-footer-inner a:hover,
.footer-legal-link:hover{
    text-decoration:underline;
}

.footer-separator{
    color:#98a2b3;
}


.legal-modal{
    width:min(92vw,760px);
    max-height:86vh;

    padding:0;

    border:0;
    border-radius:18px;

    background:#fff;
    color:#17202d;

    box-shadow:
        0 24px 80px
        rgba(16,24,40,.24);
}

.legal-modal::backdrop{
    background:
        rgba(17,17,28,.58);

    backdrop-filter:
        blur(3px);
}

.legal-modal-shell{
    display:flex;
    flex-direction:column;

    max-height:86vh;
}

.legal-modal-head{
    flex:0 0 auto;

    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:20px;

    padding:24px 26px 18px;

    border-bottom:1px solid #eaecf0;
}

.legal-modal-head h2{
    margin:0;

    font-size:1.6rem;
}

.legal-kicker{
    margin:0 0 6px;

    color:#5145e5;

    font-size:.72rem;
    font-weight:800;
    letter-spacing:.12em;
}

.legal-modal-close{
    width:38px;
    height:38px;

    display:flex;
    align-items:center;
    justify-content:center;

    padding:0;

    border:0;
    border-radius:50%;

    background:#f8f9fc;
    color:#475467;

    font-size:1.6rem;
    line-height:1;

    cursor:pointer;
}

.legal-modal-close:hover{
    background:#f0efff;
    color:#5145e5;
}

.legal-modal-content{
    flex:1 1 auto;

    overflow-y:auto;

    padding:22px 26px;
}

.legal-modal-content h3{
    margin:24px 0 6px;

    font-size:1rem;
}

.legal-modal-content h3:first-of-type{
    margin-top:18px;
}

.legal-modal-content p{
    margin:0 0 12px;

    color:#475467;

    line-height:1.7;
}

.legal-modal-content a{
    color:#5145e5;
    font-weight:700;
}

.legal-modal-actions{
    flex:0 0 auto;

    display:flex;
    justify-content:flex-end;

    padding:16px 26px;

    border-top:1px solid #eaecf0;

    background:#fcfcfd;
}


@media(max-width:600px){

    .legal-modal{
        width:calc(100vw - 24px);
        max-height:90vh;
    }

    .legal-modal-shell{
        max-height:90vh;
    }

    .legal-modal-head,
    .legal-modal-content,
    .legal-modal-actions{
        padding-left:18px;
        padding-right:18px;
    }

    .footer-separator{
        display:none;
    }

    .site-footer-inner{
        gap:6px 14px;
    }
}



/* ==========================================================
   FINAL ADMIN HEADER LAYOUT FIX
   Prevent company logo / SURVEYS / navigation overlap
   ========================================================== */

.admin-site-header .site-header-inner{
    display:grid;
    grid-template-columns:
        minmax(220px,340px)
        minmax(0,1fr);
    align-items:center;
    gap:28px;
}


/*
 * Branding gets its own bounded column.
 */
.admin-site-header .site-brand{
    width:100%;
    min-width:0;
    max-width:340px;

    display:grid;
    grid-template-columns:
        minmax(0,1fr)
        auto
        auto;
    align-items:center;
    gap:12px;

    overflow:hidden;
}


/*
 * Company logo must stay inside the brand column.
 */
.admin-site-header .site-brand img,
.admin-site-header .site-brand-admin-client img{
    display:block;

    width:auto !important;
    max-width:210px !important;
    height:auto !important;
    max-height:54px !important;

    object-fit:contain;
    object-position:left center;

    min-width:0;
}


/*
 * Divider and platform label never overlap or wrap.
 */
.admin-site-header .site-brand > span{
    margin:0 !important;
    flex:0 0 auto;

    color:#98a2b3;
    font-size:1.75rem;
    line-height:1;
}

.admin-site-header .site-brand > strong{
    flex:0 0 auto;

    color:#17202d;

    font-size:1rem;
    line-height:1;
    font-weight:800;

    letter-spacing:.12em;
    white-space:nowrap;
}


/*
 * Navigation/account own the second grid column.
 */
.admin-site-header .admin-header-shell{
    width:100%;
    min-width:0;

    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:18px;
}


.admin-site-header .admin-primary-nav{
    min-width:0;

    display:flex;
    align-items:center;
    justify-content:flex-end;
    flex-wrap:wrap;

    gap:4px;

    margin-left:0;
}


.admin-site-header .admin-primary-nav a{
    margin-left:0;

    padding:8px 10px;

    font-size:.9rem;

    white-space:nowrap;
}


.admin-site-header .admin-account{
    flex:0 0 auto;

    padding-left:16px;
}


/*
 * Slightly tighter account block so navigation gets room.
 */
.admin-site-header .admin-account-profile{
    max-width:300px;

    grid-template-columns:
        36px
        minmax(0,1fr)
        auto;

    gap:8px;
}


.admin-site-header .admin-account-avatar{
    width:36px;
    height:36px;
}


/*
 * Medium screens:
 * brand stays on top-left;
 * nav/account move to second row cleanly.
 */
@media(max-width:1180px){

    .admin-site-header .site-header-inner{
        grid-template-columns:
            minmax(200px,300px)
            minmax(0,1fr);

        align-items:start;

        gap:18px 22px;
    }


    .admin-site-header .site-brand{
        max-width:300px;
    }


    .admin-site-header .site-brand img,
    .admin-site-header .site-brand-admin-client img{
        max-width:185px !important;
        max-height:50px !important;
    }


    .admin-site-header .admin-header-shell{
        flex-wrap:wrap;
    }


    .admin-site-header .admin-primary-nav{
        order:2;

        width:100%;
        flex:1 0 100%;

        justify-content:flex-start;

        padding-top:10px;

        border-top:1px solid #eef0f4;
    }


    .admin-site-header .admin-account{
        margin-left:auto;
    }
}


/*
 * Tablet:
 * stack branding and application controls.
 */
@media(max-width:820px){

    .admin-site-header .site-header-inner{
        display:flex;
        flex-direction:column;
        align-items:stretch;

        gap:14px;
    }


    .admin-site-header .site-brand{
        width:auto;
        max-width:100%;

        grid-template-columns:
            minmax(0,1fr)
            auto
            auto;
    }


    .admin-site-header .site-brand img,
    .admin-site-header .site-brand-admin-client img{
        max-width:190px !important;
        max-height:48px !important;
    }


    .admin-site-header .admin-header-shell{
        width:100%;
    }


    .admin-site-header .admin-primary-nav{
        overflow-x:auto;
        flex-wrap:nowrap;

        padding-bottom:5px;
    }


    .admin-site-header .admin-account{
        width:100%;

        margin-left:0;

        padding-left:0;
        padding-top:12px;

        border-left:0;
        border-top:1px solid #eef0f4;
    }


    .admin-site-header .admin-account-profile{
        flex:1 1 auto;
        max-width:none;
    }
}


/*
 * Mobile:
 * logo remains readable;
 * platform label is retained where space permits.
 */
@media(max-width:520px){

    .admin-site-header .site-brand{
        grid-template-columns:
            minmax(0,1fr)
            auto
            auto;

        gap:8px;
    }


    .admin-site-header .site-brand img,
    .admin-site-header .site-brand-admin-client img{
        max-width:150px !important;
        max-height:40px !important;
    }


    .admin-site-header .site-brand > span{
        font-size:1.35rem;
    }


    .admin-site-header .site-brand > strong{
        font-size:.78rem;
        letter-spacing:.08em;
    }
}



/* ==========================================================
   TWO-ROW ADMIN HEADER
   Row 1: Brand left / Account right
   Row 2: Navigation
   ========================================================== */

.admin-site-header .site-header-inner{
    display:block;
    width:min(100%,1500px);
    margin:0 auto;
    padding:16px 28px;
}


.admin-site-header .admin-header-shell{
    width:100%;
    display:block;
}


.admin-site-header .admin-header-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:28px;

    min-height:66px;
}


.admin-site-header .admin-header-brand-slot{
    min-width:0;
    flex:1 1 auto;
}


.admin-site-header .admin-header-brand-slot .site-brand{
    display:flex;
    align-items:center;
    gap:14px;

    width:auto;
    max-width:520px;

    overflow:visible;
}


.admin-site-header .admin-header-brand-slot .site-brand img,
.admin-site-header .admin-header-brand-slot .site-brand-admin-client img{
    width:auto !important;
    max-width:220px !important;
    height:auto !important;
    max-height:54px !important;

    object-fit:contain;
    object-position:left center;
}


.admin-site-header .admin-header-brand-slot .site-brand > span{
    margin:0 !important;
    color:#98a2b3;
    font-size:1.75rem;
    line-height:1;
}


.admin-site-header .admin-header-brand-slot .site-brand > strong{
    font-size:1rem;
    line-height:1;
    font-weight:800;
    letter-spacing:.13em;
    white-space:nowrap;
}


/*
 * Account remains completely on right side of first row.
 */
.admin-site-header .admin-account{
    flex:0 0 auto;

    display:flex;
    align-items:center;
    gap:10px;

    margin:0;
    padding:0;

    border:0;
}


.admin-site-header .admin-account-profile{
    max-width:360px;
}


.admin-site-header .admin-logout-icon{
    width:40px;
    height:40px;

    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:0;

    border:1px solid #e1e5ec;
    border-radius:10px;

    background:#fff;
    color:#667085;
}


.admin-site-header .admin-logout-icon svg{
    width:19px;
    height:19px;
    fill:currentColor;
}


.admin-site-header .admin-logout-icon:hover{
    color:#b42318;
    background:#fff5f4;
    border-color:#f2b8b3;
}


/*
 * Second row is navigation only.
 */
.admin-site-header .admin-primary-nav{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    flex-wrap:wrap;

    gap:6px;

    width:100%;
    margin:12px 0 0;
    padding:12px 0 0;

    border-top:1px solid #eef0f4;
}


.admin-site-header .admin-primary-nav a{
    margin:0;
    padding:8px 11px;

    font-size:.92rem;

    white-space:nowrap;
}


/*
 * Tablet/mobile
 */
@media(max-width:820px){

    .admin-site-header .site-header-inner{
        padding:14px 18px;
    }


    .admin-site-header .admin-header-top{
        align-items:flex-start;
        flex-direction:column;
        gap:12px;
    }


    .admin-site-header .admin-account{
        width:100%;
        justify-content:space-between;
    }


    .admin-site-header .admin-account-profile{
        flex:1 1 auto;
        max-width:none;
    }


    .admin-site-header .admin-primary-nav{
        overflow-x:auto;
        flex-wrap:nowrap;

        padding-bottom:5px;

        scrollbar-width:thin;
    }
}


@media(max-width:520px){

    .admin-site-header .admin-header-brand-slot .site-brand img,
    .admin-site-header .admin-header-brand-slot .site-brand-admin-client img{
        max-width:155px !important;
        max-height:42px !important;
    }


    .admin-site-header .admin-header-brand-slot .site-brand > strong{
        font-size:.8rem;
        letter-spacing:.09em;
    }


    .admin-site-header .admin-header-brand-slot .site-brand > span{
        font-size:1.3rem;
    }


    .admin-site-header .admin-account-profile{
        grid-template-columns:
            34px
            minmax(0,1fr);
    }


    .admin-site-header .admin-role-badge{
        grid-column:2;
        width:max-content;
    }
}

