/* Crew-only brand tokens, drawn from the Compliance sidebar and SIGVORA gold. */
body.crew-dashboard-active {
  --crew-brand-navy: #061a31;
  --crew-brand-navy-raised: #092846;
  --crew-brand-gold: #d7b56d;
  --crew-brand-gold-ink: #76531c;
  --crew-brand-light: #f8fbff;
  --crew-brand-muted: #b7c8d9;
  --crew-brand-paper: #f4f6f7;
  --crew-brand-ink: #13243a;
  --crew-brand-secondary: #526477;
  --crew-brand-line: #dce5eb;
  --crew-home-navy: var(--crew-brand-navy);
  --crew-home-gold: var(--crew-brand-gold);
}
body.crew-dashboard-active .crew-sidebar {
  background:var(--crew-brand-navy) !important;
  color:var(--crew-brand-light) !important;
  border:1px solid var(--crew-brand-navy-raised);
}
body.crew-dashboard-active .crew-sidebar::before,
body.crew-dashboard-active .crew-sidebar::after { display:none; }
body.crew-dashboard-active .crew-sidebar :is(a,strong,p,small,summary) { color:var(--crew-brand-light) !important; }
body.crew-dashboard-active .crew-sidebar :is(.crew-nav-group,.crew-sidebar-account-copy small,.crew-sidebar-protection small,.crew-sidebar-id small) { color:var(--crew-brand-muted) !important; }
body.crew-dashboard-active .crew-sidebar-brand small { color:var(--crew-brand-gold) !important; }
body.crew-dashboard-active .dashboard-nav { background:transparent !important; }
body.crew-dashboard-active .dashboard-nav::before { display:none; }
body.crew-dashboard-active .dashboard-nav .crew-nav-group { margin:18px 12px 5px; font-size:.68rem; letter-spacing:.1em; line-height:1.5; }
body.crew-dashboard-active .dashboard-nav a,
body.crew-dashboard-active .dashboard-nav .crew-more-items a {
  display:grid;grid-template-columns:24px minmax(0,1fr);gap:8px;
  min-height:44px;padding:9px 11px;margin:0;
  border:0;border-inline-start:3px solid transparent;border-radius:8px;
  background:transparent !important;box-shadow:none;
  color:var(--crew-brand-light) !important;font-size:.82rem;line-height:1.4;
}
body.crew-dashboard-active .dashboard-nav a > span[aria-hidden] {
  display:grid;place-items:center;width:24px;height:24px;
  background:transparent;color:var(--crew-brand-muted);font-size:1rem;
}
body.crew-dashboard-active .dashboard-nav a[aria-current="page"] {
  background:var(--crew-brand-navy-raised) !important;
  border-inline-start-color:var(--crew-brand-gold);font-weight:700;
}
body.crew-dashboard-active .dashboard-nav a[aria-current="page"] > span { color:var(--crew-brand-gold); }
body.crew-dashboard-active .dashboard-nav a:hover { background:var(--crew-brand-navy-raised) !important; }
body.crew-dashboard-active .dashboard-nav a.is-stage-locked { opacity:1;color:var(--crew-brand-muted) !important;background:transparent !important; }
body.crew-dashboard-active .dashboard-nav .crew-stage-lock-label { color:var(--crew-brand-muted) !important;font-size:.68rem;line-height:1.35;padding:0; }
body.crew-dashboard-active :is(.dashboard-nav,.crew-mobile-sheet-links) .is-stage-locked .crew-stage-lock-label::before {
  content:"";display:inline-block;width:11px;height:12px;margin-inline-end:5px;background:currentColor;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14'%3E%3Cpath fill='none' stroke='black' stroke-width='1.6' d='M3 6V4a3 3 0 0 1 6 0v2M1 6h10v7H1z'/%3E%3C/svg%3E") center/contain no-repeat;
}
body.crew-dashboard-active :is(.crew-sidebar-account,.crew-sidebar-id) { background:var(--crew-brand-navy-raised) !important;border-color:var(--crew-brand-navy-raised); }
body.crew-dashboard-active .crew-sidebar-avatar,
body.crew-dashboard-active .crew-sidebar-emblem { background:var(--crew-brand-gold);color:var(--crew-brand-navy); }
body.crew-dashboard-active .crew-sidebar-signout { color:var(--crew-brand-light);background:transparent;border-color:var(--crew-brand-muted);min-height:36px; }
body.crew-dashboard-active .dashboard-heading { border-bottom:1px solid var(--crew-brand-gold);padding-bottom:20px; }
body.crew-dashboard-active #welcome-heading { color:var(--crew-brand-navy); }
body.crew-dashboard-active #crew-progress-stages li[data-status="complete"] { border-color:var(--crew-brand-navy); }
body.crew-dashboard-active #crew-progress-stages [data-status="complete"] .crew-stage-number { background:var(--crew-brand-navy);border-color:var(--crew-brand-navy);color:var(--crew-brand-light); }
body.crew-dashboard-active #crew-progress-stages li[aria-current="step"] { border-color:var(--crew-brand-gold); }
body.crew-dashboard-active #crew-progress-stages [aria-current="step"] .crew-stage-number { background:var(--crew-brand-gold);border-color:var(--crew-brand-gold-ink);color:var(--crew-brand-navy); }
body.crew-dashboard-active .crew-home .crew-home-priority { background:var(--crew-brand-navy);background-image:none;color:var(--crew-brand-light);border:1px solid var(--crew-brand-navy); }
body.crew-dashboard-active .crew-home .crew-home-priority :is(h3,strong) { color:var(--crew-brand-light); }
body.crew-dashboard-active .crew-home #next-step-heading { color:var(--crew-brand-gold); }
body.crew-dashboard-active .crew-home :is(#next-action-wait,#next-action-copy,#next-action-duration) { color:var(--crew-brand-light) !important; }
body.crew-dashboard-active #next-action-link { background:var(--crew-brand-gold);color:var(--crew-brand-navy);border:2px solid var(--crew-brand-gold);box-shadow:none;min-height:48px; }
body.crew-dashboard-active .crew-home-priority .secondary-button { color:var(--crew-brand-light);border:1px solid var(--crew-brand-muted);background:transparent;min-height:44px; }
body.crew-dashboard-active :is(a,button,summary,input,select,textarea):focus-visible { outline:3px solid var(--crew-brand-gold-ink);outline-offset:3px; }
body.crew-dashboard-active :is(.crew-sidebar,.crew-home-priority) :is(a,button,summary):focus-visible { outline-color:var(--crew-brand-gold); }
body.crew-dashboard-active .crew-onboard-overview:has(#crew-onboard-workspace[hidden]) { display:none; }
@media(max-width:767px) {
 body.crew-dashboard-active .crew-mobile-sheet-links .crew-nav-group { color:var(--crew-brand-secondary);margin:18px 0 6px;font-size:.75rem; }
 body.crew-dashboard-active .crew-mobile-sheet-links a { min-height:44px; }
 body.crew-dashboard-active .crew-mobile-sheet-links a.is-stage-locked { opacity:1;color:var(--crew-brand-secondary);background:transparent; }
 body.crew-dashboard-active .crew-home .crew-home-priority { padding:20px; }
 body.crew-dashboard-active #next-action-link { max-width:none;width:100%; }
 body.crew-dashboard-active .crew-home-priority-actions { align-items:stretch; }
}

body.crew-dashboard-active #crew-progress-stages li.is-stage-locked :is(strong,small,.crew-stage-number) { color:var(--crew-brand-secondary); }
body.crew-dashboard-active .crew-mobile-sheet-links a.is-stage-locked { color:var(--crew-brand-secondary) !important;background:transparent !important; }
body.crew-dashboard-active .crew-mobile-sheet-links .crew-stage-lock-label { color:var(--crew-brand-secondary); }
body.crew-dashboard-active .dashboard-heading .eyebrow { color:var(--crew-brand-gold-ink); }
body.crew-dashboard-active .dashboard-heading :is(.muted,label > span) { color:var(--crew-brand-secondary); }

.crew-applicability {width:100%;max-width:34rem;text-align:left;}
.crew-applicability p {font-size:.875rem;line-height:1.5;}
.crew-applicability button {white-space:normal;min-height:44px;margin:4px 4px 4px 0;}
.crew-applicability form:not([hidden]) {display:grid;gap:8px;margin-top:12px;}
.crew-applicability select,.crew-applicability textarea {width:100%;min-width:0;font:inherit;padding:10px;border:1px solid #64748b;border-radius:6px;background:#fff;color:#172b42;}
.crew-applicability [hidden] {display:none!important;}
.crew-applicability :focus-visible {outline:3px solid var(--crew-brand-navy);outline-offset:3px;}
.requirement-status.crew-not-applicable {background:#e5e7eb;color:#374151;}

.compliance-item:has(.crew-applicability) {display:grid;grid-template-columns:minmax(0,1fr);align-content:start;}
.compliance-actions.crew-applicability-actions {align-items:stretch;min-width:0;max-width:100%;}
.crew-applicability-actions .requirement-status {align-self:flex-start;white-space:normal;max-width:100%;padding:6px 9px;}
.crew-applicability {min-width:0;overflow-wrap:anywhere;}
.crew-applicability .capture-action {padding:10px 12px;border:1px solid var(--crew-brand-navy);border-radius:7px;color:var(--crew-brand-navy);background:white;font-size:.8rem;}
.crew-applicability .capture-action:hover {background:#edf1f5;}
.crew-applicability .capture-action:disabled {opacity:.6;cursor:default;}
