/* Generated by scripts/build_crew_shell.py; edit the maintained sources. */
/* crew.css */
:root {
  --navy-950: #07131d;
  --navy-900: #0b1d2a;
  --navy-800: #123043;
  --teal-500: #cfa548;
  --teal-300: #e6c77e;
  --gold-400: #d7b56d;
  --paper: #f5f7f7;
  --white: #ffffff;
  --ink: #13252f;
  --muted: #6b7a82;
  --line: #dce5e7;
  --danger: #b84242;
  --warning: #a56d13;
  --shadow: 0 24px 70px rgba(7, 19, 29, 0.16);
  --radius-lg: 28px;
  --radius-md: 18px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

.mobile-handoff-view {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  text-align: center;
}

.mobile-handoff-view h3,
.mobile-handoff-view p {
  margin: 0;
}

.mobile-handoff-view > div:first-child {
  display: grid;
  gap: 0.4rem;
  max-width: 34rem;
}

.mobile-handoff-view > div:first-child p:last-child {
  color: var(--muted, #66758a);
  line-height: 1.55;
}

.mobile-handoff-qr {
  width: min(19rem, 76vw);
  padding: 0.75rem;
  background: #fff;
  border: 1px solid #d9e2eb;
  border-radius: 1rem;
  box-shadow: 0 1rem 2.5rem rgba(10, 35, 61, 0.12);
}

.mobile-handoff-qr svg {
  display: block;
  width: 100%;
  height: auto;
}

.mobile-handoff-view label {
  justify-self: stretch;
  color: #526276;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.mobile-handoff-view input {
  width: 100%;
  padding: 0.75rem;
  color: #173451;
  background: #f6f9fc;
  border: 1px solid #ced9e4;
  border-radius: 0.7rem;
}

.mobile-handoff-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  width: 100%;
}

#mobile-handoff-cancel {
  color: #9f3f45;
}

@media (max-width: 620px) {
  .mobile-handoff-actions {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 4%, rgba(207, 165, 72, 0.13), transparent 31rem),
    linear-gradient(145deg, #f8faf9 0%, #edf3f3 100%);
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.45;
}

.ambient-one {
  width: 28rem;
  height: 28rem;
  right: -12rem;
  top: 8rem;
  background: rgba(215, 181, 109, 0.22);
}

.ambient-two {
  width: 22rem;
  height: 22rem;
  left: -11rem;
  bottom: 2rem;
  background: rgba(207, 165, 72, 0.2);
}

.site-header,
footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--navy-950);
  text-decoration: none;
  letter-spacing: 0.18em;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(145deg, var(--navy-800), var(--teal-500));
  font-family: Georgia, serif;
  font-size: 1.45rem;
  box-shadow: 0 10px 28px rgba(11, 29, 42, 0.22);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.95rem;
}

.brand small {
  margin-top: 4px;
  color: var(--teal-500);
  font-size: 0.62rem;
}

.security-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.82rem;
}

.security-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-500);
  box-shadow: 0 0 0 5px rgba(207, 165, 72, 0.12);
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.login-layout {
  min-height: calc(100vh - 180px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.75fr);
  gap: 76px;
  align-items: center;
  padding: 48px 0 90px;
}

.intro-panel h1,
.dashboard-heading h1 {
  margin: 10px 0 22px;
  color: var(--navy-950);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.03;
}

.intro-panel h1 {
  max-width: 720px;
  font-size: clamp(3.2rem, 6vw, 5.9rem);
}

.eyebrow {
  margin: 0;
  color: var(--teal-500);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.intro-copy {
  max-width: 610px;
  color: #53656f;
  font-size: 1.12rem;
  line-height: 1.7;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.trust-list span,
.role-badge {
  border: 1px solid rgba(18, 48, 67, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--navy-800);
  font-size: 0.76rem;
  font-weight: 700;
}

.trust-list span {
  padding: 10px 14px;
}

.login-card,
.readiness-card,
.profile-card,
.editor-card,
.experience-card,
.compliance-card,
.access-card {
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.login-card {
  padding: 42px;
  border-radius: var(--radius-lg);
}

.login-card h2,
.editor-card h2,
.profile-card h2 {
  margin: 8px 0;
  color: var(--navy-950);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.login-card h2,
.editor-card h2 {
  font-size: 2rem;
}

.muted {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

form label {
  display: block;
  margin: 20px 0 8px;
  color: #314852;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.035em;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  background: rgba(249, 251, 251, 0.9);
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input,
select {
  height: 50px;
  padding: 0 15px;
}

textarea {
  padding: 14px 15px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal-500);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(207, 165, 72, 0.11);
}

.button {
  min-height: 46px;
  padding: 0 19px;
  border: 0;
  border-radius: 13px;
  cursor: pointer;
  font-weight: 750;
  transition: transform 150ms ease, opacity 150ms ease, box-shadow 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy-800), #9a6f22);
  box-shadow: 0 12px 26px rgba(18, 48, 67, 0.2);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  color: var(--navy-800);
}

.login-card .button {
  width: 100%;
  margin-top: 10px;
}

.privacy-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.55;
}

.form-error {
  min-height: 21px;
  margin: 12px 0 0;
  color: var(--danger);
  font-size: 0.82rem;
}

.hidden {
  display: none !important;
}

.dashboard {
  padding: 45px 0 90px;
}

.dashboard-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.dashboard-nav {
  position: sticky;
  z-index: 5;
  top: 10px;
  display: flex;
  gap: 8px;
  margin: -14px 0 28px;
  padding: 8px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  background: rgba(247, 250, 249, 0.9);
  box-shadow: 0 10px 34px rgba(7, 19, 29, 0.08);
  backdrop-filter: blur(16px);
  scrollbar-width: none;
}

.dashboard-nav::-webkit-scrollbar {
  display: none;
}

.dashboard-nav a {
  min-height: 36px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--navy-800);
  font-size: 0.72rem;
  font-weight: 750;
  text-decoration: none;
}

.dashboard-nav a:hover,
.dashboard-nav a:focus-visible {
  background: rgba(207, 165, 72, 0.11);
  color: #9a6f22;
}

.dashboard-heading h1 {
  margin-bottom: 8px;
  font-size: clamp(2.4rem, 4vw, 4.5rem);
}

.dashboard-actions,
.role-list {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dashboard-actions a.button {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.role-badge {
  padding: 8px 11px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1.55fr);
  gap: 28px;
  align-items: start;
}

.dashboard-grid > *,
.editor-card,
.profile-form,
.field-grid,
.field-grid > div {
  min-width: 0;
  max-width: 100%;
}

.profile-card,
.editor-card,
.readiness-card,
.experience-card,
.compliance-card,
.access-card {
  border-radius: var(--radius-lg);
}

.readiness-card {
  margin-bottom: 28px;
  padding: 32px 38px;
}

.readiness-heading h2 {
  margin: 8px 0 0;
  color: var(--navy-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
}

.readiness-note {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.readiness-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--line);
}

.readiness-metric {
  min-height: 122px;
  padding: 18px;
  background: rgba(249, 251, 251, 0.96);
}

.readiness-metric > span,
.readiness-metric > strong,
.readiness-metric > small {
  display: block;
}

.readiness-metric > span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.readiness-metric > strong {
  margin-top: 10px;
  color: var(--navy-800);
  font-size: 1.45rem;
}

.readiness-metric > small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.4;
}

.progress-track {
  height: 7px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(18, 48, 67, 0.1);
}

.progress-track span {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal-500), #9a6f22);
  transition: width 220ms ease;
}

.readiness-clearance strong {
  color: #80520d;
}

.readiness-clearance-approved strong {
  color: #8a621d;
}

.next-action-card {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
  border-left: 4px solid var(--teal-500);
  border-radius: 13px;
  background: rgba(207, 165, 72, 0.08);
}

.next-action-label,
.next-action-card strong {
  display: block;
}

.next-action-label {
  color: #8a621d;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.next-action-card strong {
  margin-top: 5px;
  color: var(--navy-800);
}

.next-action-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.next-action-card .button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.profile-card {
  padding: 34px;
  text-align: center;
}

.profile-avatar {
  width: 104px;
  height: 104px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border: 5px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(145deg, var(--navy-800), var(--teal-500));
  box-shadow: 0 18px 35px rgba(18, 48, 67, 0.23);
  font-family: Georgia, serif;
  font-size: 2rem;
}

.profile-photo {
  width: 104px;
  height: 104px;
  margin: 0 auto 22px;
  border: 5px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 18px 35px rgba(18, 48, 67, 0.23);
}

.status-badge {
  display: inline-block;
  margin: 0 0 8px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #8a621d;
  background: rgba(207, 165, 72, 0.12);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-warning {
  color: #80520d;
  background: rgba(215, 181, 109, 0.22);
}

.status-cleared {
  color: #8a621d;
  background: rgba(207, 165, 72, 0.12);
}

.profile-card h2 {
  font-size: 1.85rem;
}

.profile-position {
  margin: 0;
  color: var(--teal-500);
  font-weight: 750;
}

.additional-position-list {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.position-badge {
  padding: 6px 9px;
  border: 1px solid rgba(207, 165, 72, 0.2);
  border-radius: 999px;
  color: #9a6f22;
  background: rgba(207, 165, 72, 0.08);
  font-size: 0.68rem;
  font-weight: 750;
}

.profile-facts {
  margin: 30px 0 0;
  text-align: left;
}

.profile-facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.profile-facts dt {
  color: var(--muted);
  font-size: 0.78rem;
}

.profile-facts dd {
  margin: 0;
  color: var(--navy-800);
  font-size: 0.78rem;
  font-weight: 750;
  text-align: right;
  text-transform: none;
}

.photo-upload {
  margin-top: 22px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(215, 181, 109, 0.12);
  text-align: left;
}

.photo-upload label,
.photo-upload span {
  display: block;
}

.photo-upload label {
  margin: 0 0 9px;
  color: #705924;
  font-size: 0.78rem;
  font-weight: 800;
}

.photo-upload input[type="file"] {
  height: auto;
  padding: 9px;
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.68rem;
}

.photo-upload .button {
  width: 100%;
  margin-top: 10px;
}

.text-button {
  margin: 11px auto 0;
  display: block;
  border: 0;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 750;
}

.photo-status {
  min-height: 18px;
  margin-top: 8px;
  color: #7f7359;
  font-size: 0.72rem;
  line-height: 1.5;
}

.editor-card {
  padding: 38px;
}

.career-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 24px 0 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--line);
}

.career-overview article {
  min-width: 0;
  padding: 17px;
  background: rgba(249, 251, 251, 0.96);
}

.career-overview small,
.career-overview strong,
.career-overview span {
  display: block;
}

.career-overview small {
  color: var(--teal-500);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.career-overview strong {
  margin-top: 7px;
  color: var(--navy-800);
  font-size: 0.8rem;
  line-height: 1.4;
}

.career-overview span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.45;
}

.section-heading,
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.save-status {
  min-height: 20px;
  color: #8a621d;
  font-size: 0.78rem;
  font-weight: 750;
}

.field-grid {
  display: grid;
  gap: 20px;
}

.position-picker-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.position-picker-heading strong {
  color: #9a6f22;
  font-size: 0.7rem;
  white-space: nowrap;
}

.position-search {
  display: block;
  max-width: 100%;
  margin-top: 8px;
}

.position-department-tabs {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  gap: 7px;
  margin-top: 8px;
  padding: 4px 2px 10px;
  overflow: hidden;
}

.position-department-tab {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.67rem;
  font-weight: 800;
  white-space: nowrap;
}

.position-department-tab:hover,
.position-department-tab:focus-visible,
.position-department-tab.is-active {
  border-color: rgba(207, 165, 72, 0.55);
  color: #9a6f22;
  background: rgba(207, 165, 72, 0.09);
}

.position-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  max-width: 100%;
  gap: 8px;
  max-height: 330px;
  padding: 4px 4px 4px 0;
  overflow-y: auto;
}

.position-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(249, 251, 251, 0.82);
  cursor: pointer;
}

.position-option:has(input:checked) {
  border-color: rgba(207, 165, 72, 0.6);
  background: rgba(207, 165, 72, 0.09);
}

.position-option.is-primary {
  opacity: 0.55;
  cursor: not-allowed;
}

.position-option input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: var(--teal-500);
}

.position-option span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.position-option strong {
  color: var(--navy-800);
  font-size: 0.72rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.position-option small {
  color: var(--muted);
  font-size: 0.61rem;
  line-height: 1.35;
  text-transform: capitalize;
}

.field-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.language-editor {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(249, 251, 251, 0.72);
}

.language-editor .position-picker-heading {
  align-items: flex-start;
}

.language-editor .field-hint {
  max-width: 640px;
}

.language-add-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 14px;
}

.language-add-row select,
.language-add-row input,
.language-add-row .button {
  margin: 0;
}

.language-add-row .button {
  min-height: 46px;
  white-space: nowrap;
}

.language-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.language-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(180px, 0.9fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.language-row strong {
  color: var(--navy-800);
  font-size: 0.76rem;
  overflow-wrap: anywhere;
}

.language-row select {
  margin: 0;
}

.language-remove {
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
}

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

.form-footer {
  margin-top: 18px;
}

.experience-card {
  margin-top: 28px;
  padding: 38px;
}

.vessel-position-history {
  display: grid;
  gap: 14px;
  margin: 26px 0;
  padding: 20px;
  border: 1px solid rgba(207, 165, 72, 0.3);
  border-radius: 16px;
  background: rgba(207, 165, 72, 0.055);
}

.vessel-position-history h3 {
  margin: 5px 0 4px;
  color: var(--navy-800);
  font-size: 0.96rem;
}

.vessel-position-history .muted {
  max-width: 760px;
  margin: 0;
  line-height: 1.55;
}

.vessel-position-history-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.vessel-position-history-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
}

.vessel-position-history-item > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.vessel-position-history-item strong,
.vessel-position-history-item span,
.vessel-position-history-item small {
  overflow-wrap: anywhere;
}

.vessel-position-history-item strong {
  color: var(--navy-800);
  font-size: 0.74rem;
}

.vessel-position-history-item span,
.vessel-position-history-item small {
  color: var(--muted);
  font-size: 0.65rem;
}

.vessel-position-history-status {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(96, 114, 124, 0.11);
  font-size: 0.6rem !important;
  font-weight: 800;
  white-space: nowrap;
}

.vessel-position-history-status.is-current {
  color: #8a621d;
  background: rgba(207, 165, 72, 0.14);
}

.career-readiness-card {
  margin-top: 28px;
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.career-readiness-card h2 {
  margin: 8px 0 0;
  color: var(--navy-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
}

.planning-badge {
  padding: 7px 11px;
  border-radius: 999px;
  color: #80520d;
  background: rgba(215, 181, 109, 0.22);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.career-readiness-intro {
  max-width: 780px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.career-readiness-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.career-readiness-summary article {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(249, 251, 251, 0.9);
}

.career-readiness-summary small,
.career-readiness-summary strong,
.career-readiness-summary span {
  display: block;
}

.career-readiness-summary small {
  color: var(--teal-500);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.career-readiness-summary strong {
  margin-top: 7px;
  color: var(--navy-800);
  font-size: 1rem;
}

.career-readiness-summary span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.career-readiness-card h3 {
  margin: 0 0 12px;
  color: var(--navy-800);
  font-size: 0.9rem;
}

.career-requirement-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.career-requirement-item {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(249, 251, 251, 0.82);
}

.career-requirement-item strong {
  min-width: 0;
  color: var(--navy-800);
  font-size: 0.72rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.career-requirement-item span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.career-requirement-item.is-verified span {
  color: #8a621d;
}

.experience-card h2 {
  margin: 8px 0 0;
  color: var(--navy-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
}

.experience-count {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(18, 48, 67, 0.07);
  color: var(--navy-800);
  font-size: 0.72rem;
  font-weight: 800;
}

.experience-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 28px;
  margin-top: 28px;
  align-items: start;
}

.experience-empty {
  margin: 0;
  padding: 24px;
  border: 1px dashed rgba(18, 48, 67, 0.2);
  border-radius: 15px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.experience-list {
  display: grid;
  gap: 12px;
}

.experience-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(249, 251, 251, 0.86);
}

.experience-item-header,
.experience-item-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.experience-item-header > div {
  min-width: 0;
}

.experience-item h3,
.experience-vessel,
.experience-position-map {
  overflow-wrap: anywhere;
}

.experience-item h3 {
  margin: 0;
  color: var(--navy-800);
  font-size: 1rem;
}

.experience-vessel,
.experience-dates,
.experience-description,
.experience-position-map {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.experience-vessel {
  margin: 5px 0 0;
  color: #9a6f22;
  font-weight: 750;
}

.experience-position-map {
  margin: 5px 0 0;
  font-size: 0.66rem;
  font-weight: 700;
}

.experience-dates {
  margin: 12px 0 0;
}

.experience-description {
  margin: 10px 0 0;
  white-space: pre-wrap;
}

.experience-verification {
  flex: 0 0 auto;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(215, 181, 109, 0.18);
  color: #80520d;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.experience-verification-verified {
  background: rgba(207, 165, 72, 0.12);
  color: #8a621d;
}

.experience-item-actions {
  justify-content: flex-end;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.experience-item-actions button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #9a6f22;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 800;
}

.experience-item-actions .delete-experience {
  color: var(--danger);
}

.experience-form {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(249, 251, 251, 0.78);
}

.experience-form h3 {
  margin: 6px 0 5px;
  color: var(--navy-800);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 500;
}

.three-columns {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 0.65fr);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
  cursor: pointer;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--teal-500);
}

.experience-form-footer {
  align-items: center;
}

.experience-form-actions {
  display: flex;
  gap: 9px;
}

.compliance-card {
  margin-top: 28px;
  padding: 38px;
}

.access-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 28px;
  margin-top: 28px;
  align-items: start;
}

.access-card {
  min-width: 0;
  padding: 38px;
}

.access-card h2 {
  margin: 8px 0 0;
  color: var(--navy-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
}

.secure-badge {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 999px;
  color: #8a621d;
  background: rgba(207, 165, 72, 0.13);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.access-intro {
  margin-top: 22px;
  font-size: 0.8rem;
}

.share-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 22px 0 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.share-sections legend {
  padding: 0 7px;
  color: #314852;
  font-size: 0.74rem;
  font-weight: 800;
}

.share-sections label {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 9px;
  border-radius: 10px;
  background: rgba(249, 251, 251, 0.9);
  line-height: 1.35;
}

.share-sections input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--teal-500);
}

.new-share-result {
  margin-top: 20px;
  padding: 17px;
  border: 1px solid rgba(207, 165, 72, 0.3);
  border-radius: 15px;
  background: rgba(207, 165, 72, 0.08);
}

.new-share-result > strong {
  color: var(--navy-800);
  font-size: 0.82rem;
}

.new-share-result > p {
  margin: 5px 0 12px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.copy-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.copy-link-row input {
  min-width: 0;
  height: 44px;
  font-size: 0.7rem;
}

.copy-link-row .button {
  min-height: 44px;
}

.share-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

.share-list-heading h3 {
  margin: 0;
  color: var(--navy-800);
  font-size: 0.9rem;
}

.share-list-heading span,
.access-empty {
  color: var(--muted);
  font-size: 0.7rem;
}

.share-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.share-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(249, 251, 251, 0.9);
}

.share-item strong,
.share-item span,
.share-item small {
  display: block;
}

.share-item strong {
  color: var(--navy-800);
  font-size: 0.78rem;
}

.share-item span,
.share-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.share-item-status {
  color: #8a621d !important;
  font-weight: 800;
  text-transform: capitalize;
}

.share-item-status.is-inactive {
  color: var(--muted) !important;
}

.share-revoke {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 800;
}

.password-form .form-footer {
  align-items: center;
}

.security-boundaries {
  margin-top: 26px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(18, 48, 67, 0.04);
}

.security-boundaries strong {
  color: var(--navy-800);
  font-size: 0.78rem;
}

.security-boundaries ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.65;
}

.compliance-card h2 {
  margin: 8px 0 0;
  color: var(--navy-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
}

.clearance-badge,
.requirement-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.clearance-badge {
  min-height: 34px;
  padding: 0 13px;
}

.clearance-blocked {
  color: #80520d;
  background: rgba(215, 181, 109, 0.22);
}

.clearance-cleared {
  color: #8a621d;
  background: rgba(207, 165, 72, 0.14);
}

.clearance-notice {
  margin: 28px 0 20px;
  padding: 18px 20px;
  border-left: 4px solid var(--gold-400);
  border-radius: 12px;
  background: rgba(215, 181, 109, 0.12);
}

.clearance-notice strong,
.clearance-notice span {
  display: block;
}

.clearance-notice strong {
  color: #705924;
}

.clearance-notice span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.clearance-notice-approved {
  border-left-color: var(--teal-500);
  background: rgba(207, 165, 72, 0.1);
}

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

.compliance-item {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(249, 251, 251, 0.8);
}

.compliance-item strong,
.compliance-item small {
  display: block;
}

.compliance-item strong {
  color: var(--navy-800);
  font-size: 0.86rem;
}

.compliance-item small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.68rem;
}

.compliance-item .requirement-guidance {
  max-width: 330px;
  line-height: 1.45;
}

.compliance-item .requirement-position-scope {
  color: #9a6f22;
  font-weight: 750;
  line-height: 1.45;
}

.requirement-status {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 9px;
  color: #80520d;
  background: rgba(215, 181, 109, 0.18);
}

.compliance-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  flex-direction: column;
  gap: 7px;
}

.capture-action {
  padding: 0;
  border: 0;
  background: transparent;
  color: #9a6f22;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 800;
}

.capture-action:hover,
.capture-action:focus-visible {
  text-decoration: underline;
}

.capture-action-qr {
  color: var(--navy-800);
}

.capture-action-nfc:disabled {
  color: #9a6f22;
  cursor: not-allowed;
  opacity: 1;
  text-decoration: none;
}

.requirement-verified,
.requirement-not_required {
  color: #8a621d;
  background: rgba(207, 165, 72, 0.12);
}

.requirement-optional {
  color: var(--muted);
  background: rgba(107, 122, 130, 0.1);
}

.requirement-verification_failed {
  color: #9a3131;
  background: rgba(186, 64, 64, 0.12);
}

.capture-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.seamans-book-help {
  margin-top: 20px;
  border: 1px solid rgba(23, 106, 114, 0.2);
  border-radius: 14px;
  background: rgba(207, 165, 72, 0.07);
}

.seamans-book-help summary {
  padding: 16px 18px;
  color: var(--navy-800);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
}

.seamans-book-help-content {
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.seamans-book-help-content p,
.seamans-book-help-content ol {
  margin: 0 0 12px;
}

.seamans-book-help-content ol {
  padding-left: 20px;
}

.seamans-book-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 14px 0 10px;
}

.seamans-book-links a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(23, 106, 114, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: #9a6f22;
  font-weight: 800;
  text-decoration: none;
}

.seamans-book-links a:hover,
.seamans-book-links a:focus-visible {
  text-decoration: underline;
}

.capture-dialog {
  width: min(680px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
  box-shadow: var(--shadow);
}

.capture-dialog::backdrop {
  background: rgba(7, 19, 29, 0.76);
  backdrop-filter: blur(7px);
}

.capture-panel {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 24px;
  background: #f8fbfa;
}

.capture-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.capture-header h2 {
  margin: 7px 0 4px;
  color: var(--navy-950);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 500;
}

.capture-close {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy-800);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.camera-stage {
  position: relative;
  margin-top: 22px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  background: var(--navy-950);
}

.camera-stage video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.camera-frame {
  position: absolute;
  inset: 9%;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 14px;
  box-shadow: 0 0 0 999px rgba(7, 19, 29, 0.19);
  pointer-events: none;
}

.capture-instruction,
.capture-status,
.capture-security-note {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.capture-instruction {
  margin: 17px 0 0;
}

.capture-status {
  min-height: 20px;
  margin: 8px 0 0;
  color: #9a6f22;
  font-weight: 700;
}

.capture-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 17px;
}

.capture-security-note {
  margin: 17px 0 0;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-size: 0.7rem;
}

footer {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(18, 48, 67, 0.09);
  color: var(--muted);
  font-size: 0.72rem;
}

@media (max-width: 880px) {
  .login-layout,
  .dashboard-grid,
  .readiness-metrics,
  .experience-layout,
  .vessel-position-history-list,
  .compliance-list,
  .access-settings-grid {
    grid-template-columns: 1fr;
  }

  .login-layout {
    gap: 42px;
  }

  .intro-panel h1 {
    font-size: clamp(3rem, 13vw, 4.8rem);
  }

  .dashboard-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-actions,
  .role-list {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .site-header,
  main,
  footer {
    width: min(100% - 24px, 1180px);
  }

  .security-label {
    display: none;
  }

  .login-card,
  .editor-card,
  .profile-card,
  .readiness-card,
  .career-readiness-card,
  .experience-card,
  .compliance-card,
  .access-card {
    padding: 25px;
    border-radius: 22px;
  }

  .two-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .career-overview {
    grid-template-columns: 1fr;
  }

  .career-readiness-summary,
  .career-requirement-list {
    grid-template-columns: 1fr;
  }

  .position-option-grid {
    grid-template-columns: 1fr;
    max-height: 390px;
  }

  .language-add-row,
  .language-row {
    grid-template-columns: 1fr;
  }

  .language-add-row .button {
    width: 100%;
  }

  .language-remove {
    justify-self: start;
  }

  .three-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .dashboard-nav {
    width: calc(100vw - 24px);
    margin-left: 0;
    border-radius: 16px;
  }

  .share-sections,
  .copy-link-row {
    grid-template-columns: 1fr;
  }

  .copy-link-row .button {
    width: 100%;
  }

  .share-item {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .form-footer,
  .next-action-card,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-footer .button {
    width: 100%;
  }

  .experience-form-actions {
    width: 100%;
    flex-direction: column-reverse;
  }

  .next-action-card .button {
    width: 100%;
    justify-content: center;
  }

  .capture-panel {
    padding: 20px;
  }

  .capture-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .compliance-item {
    align-items: flex-start;
  }
}


/* Login viewport correction 2026-08-22 */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

.login-layout > *,
.intro-panel {
  min-width: 0;
}

@media (max-width: 1180px) and (min-width: 881px) {
  .login-layout {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
    gap: 40px;
  }

  .intro-panel h1 {
    font-size: clamp(3.2rem, 5.4vw, 4.65rem);
  }
}


/* Public crew registration 2026-08-22 */
.login-card.registration-open {
  align-self: start;
}

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

.registration-grid > div {
  min-width: 0;
}

.account-switch {
  margin: 18px 0 0;
  text-align: center;
  color: #6c7883;
}

.account-switch .text-button {
  display: inline;
  padding: 0;
  margin-left: 4px;
  font-weight: 700;
}

.checkbox-line {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin-top: 14px;
  cursor: pointer;
  font-weight: 500;
  line-height: 1.4;
}

.checkbox-line input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
}

#registration-form .field-hint {
  display: block;
  margin: -6px 0 12px;
}

#registration-button {
  width: 100%;
  margin-top: 18px;
}

@media (max-width: 560px) {
  .registration-grid {
    grid-template-columns: 1fr;
  }
}


/* SIGVORA legal links */
.legal-inline-link {
  color: #8a621d;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.legal-inline-link:hover,
.legal-inline-link:focus-visible { color: #73511c; }

/* sigvora-maritime-theme.css */
:root {
  color-scheme: light;
  --sigvora-maritime-navy-950: #041526;
  --sigvora-maritime-navy-900: #061a31;
  --sigvora-maritime-navy-800: #092541;
  --sigvora-maritime-navy-700: #123a5c;
  --sigvora-maritime-gold-500: #d0a34b;
  --sigvora-maritime-gold-400: #e0b457;
  --sigvora-maritime-gold-100: #fff3d8;
  --sigvora-maritime-paper: #f4f6f7;
  --sigvora-maritime-cream: #fffaf0;
  --sigvora-maritime-line: #d9e0e5;
  --sigvora-maritime-copy: #677786;
  --sigvora-maritime-danger: #a4433d;

  /* Existing applications use different token names. They all resolve to the
     same SIGVORA Maritime palette through this shared compatibility layer. */
  --sigvora-navy: var(--sigvora-maritime-navy-800);
  --sigvora-navy-soft: var(--sigvora-maritime-navy-700);
  --sigvora-gold: var(--sigvora-maritime-gold-500);
  --sigvora-gold-dark: #9b7128;
  --sigvora-soft: var(--sigvora-maritime-paper);
  --sigvora-line: var(--sigvora-maritime-line);
  --sigvora-muted: var(--sigvora-maritime-copy);
  --sigvora-success: #9a6f22;

  --navy-950: var(--sigvora-maritime-navy-950);
  --navy-900: var(--sigvora-maritime-navy-900);
  --navy-800: var(--sigvora-maritime-navy-700);
  --navy: var(--sigvora-maritime-navy-800);
  --navy-soft: var(--sigvora-maritime-navy-700);
  --teal-500: var(--sigvora-maritime-gold-500);
  --teal-300: #e6c77e;
  --teal: var(--sigvora-maritime-gold-500);
  --aqua: var(--sigvora-maritime-gold-500);
  --blue: #9b7128;
  --gold-400: var(--sigvora-maritime-gold-500);
  --gold: var(--sigvora-maritime-gold-500);
  --paper: var(--sigvora-maritime-paper);
  --soft: var(--sigvora-maritime-paper);
  --line: var(--sigvora-maritime-line);
  --muted: var(--sigvora-maritime-copy);
  --ink: #13243a;
  --success: #9a6f22;
  --radius-lg: 18px;
  --radius-md: 12px;

  --vessel-sidebar: var(--sigvora-maritime-navy-900);
  --vessel-navy: var(--sigvora-maritime-navy-800);
  --vessel-navy-soft: var(--sigvora-maritime-navy-700);
  --vessel-gold: var(--sigvora-maritime-gold-500);
  --vessel-gold-dark: #9b7128;
  --vessel-paper: var(--sigvora-maritime-paper);
  --vessel-cream: var(--sigvora-maritime-cream);
  --vessel-line: var(--sigvora-maritime-line);
  --vessel-copy: var(--sigvora-maritime-copy);
  --vessel-green: var(--sigvora-maritime-gold-500);
}

html {
  background: var(--sigvora-maritime-paper);
  accent-color: var(--sigvora-maritime-gold-500);
}

body {
  color: #13243a;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  color: white;
  background: var(--sigvora-maritime-navy-700);
}

:focus-visible {
  outline: 3px solid rgba(208, 163, 75, .5);
  outline-offset: 2px;
}

.eyebrow,
.sigvora-eyebrow,
.next-action-label {
  color: #9b7128;
}

.brand-mark,
.sigvora-emblem {
  border: 0;
  border-radius: 0;
  clip-path: polygon(50% 0, 94% 17%, 84% 78%, 50% 100%, 16% 78%, 6% 17%);
  color: var(--sigvora-maritime-navy-800);
  background: linear-gradient(145deg, #e0b457, #a87320);
  box-shadow: 0 12px 28px rgba(4, 21, 38, .18);
}

.brand small,
.sigvora-brand small {
  color: #9b7128;
}

.security-dot,
.security-label i {
  background: var(--sigvora-maritime-gold-500);
  box-shadow: 0 0 0 5px rgba(208, 163, 75, .15);
}

.button-primary,
.primary,
.sigvora-button {
  border-color: var(--sigvora-maritime-navy-800);
  color: white;
  background: linear-gradient(135deg, var(--sigvora-maritime-navy-800), var(--sigvora-maritime-navy-700));
}

.button-primary:hover,
.primary:hover,
.sigvora-button:hover {
  background: var(--sigvora-maritime-navy-900);
}

.gold-button {
  border-color: var(--sigvora-maritime-gold-500);
  color: var(--sigvora-maritime-navy-800);
  background: var(--sigvora-maritime-gold-500);
}

.gold-button:hover {
  background: var(--sigvora-maritime-gold-400);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--sigvora-maritime-gold-500);
  box-shadow: 0 0 0 4px rgba(208, 163, 75, .14);
}

.login-card,
.readiness-card,
.profile-card,
.editor-card,
.experience-card,
.compliance-card,
.access-card,
.surface,
.panel,
.queue-panel,
.review-panel,
.document-panel,
.response-panel,
.content-card,
.profile-hero,
.state-card {
  border-color: var(--sigvora-maritime-line);
  box-shadow: 0 18px 48px rgba(4, 21, 38, .09);
}

/* Crew portal and Crew ID */
body:not(.vessel-app):not(.platform-login-app) {
  background-color: var(--sigvora-maritime-paper);
}

body.platform-login-app {
  background:
    radial-gradient(circle at 82% 16%, rgba(208, 163, 75, .12), transparent 29rem),
    linear-gradient(145deg, var(--sigvora-maritime-navy-950), var(--sigvora-maritime-navy-800));
}

body.platform-login-app .chooser-card {
  border-top: 4px solid var(--sigvora-maritime-gold-500);
  box-shadow: 0 28px 82px rgba(0, 0, 0, .3);
}

.ambient-two {
  background: rgba(208, 163, 75, .16);
}

.progress-track span {
  background: linear-gradient(90deg, var(--sigvora-maritime-gold-500), #9b7128);
}

.next-action-card {
  border-left-color: var(--sigvora-maritime-gold-500);
  background: var(--sigvora-maritime-cream);
}

.dashboard-nav a:hover,
.dashboard-nav a:focus-visible {
  color: var(--sigvora-maritime-navy-800);
  background: var(--sigvora-maritime-gold-100);
}

.profile-avatar,
.avatar {
  color: var(--sigvora-maritime-gold-400);
  background: linear-gradient(145deg, var(--sigvora-maritime-navy-800), var(--sigvora-maritime-navy-700));
}

.brand-logo {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  display: block;
  border: 1px solid rgba(208, 163, 75, .48);
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(4, 21, 38, .2);
}

/* Stronger navy hierarchy for the authenticated Crew application. */
body:has(#dashboard-view:not(.hidden)) {
  background:
    radial-gradient(circle at 88% 8%, rgba(9, 37, 65, .09), transparent 31rem),
    linear-gradient(145deg, #f7f8f8 0%, var(--sigvora-maritime-paper) 100%);
}

body:has(#dashboard-view:not(.hidden)) .site-header {
  border-bottom: 2px solid var(--sigvora-maritime-navy-800);
}

body:has(#dashboard-view:not(.hidden)) .dashboard-nav {
  border-color: var(--sigvora-maritime-navy-800);
  background: linear-gradient(135deg, var(--sigvora-maritime-navy-900), var(--sigvora-maritime-navy-800));
  box-shadow: 0 14px 34px rgba(4, 21, 38, .16);
}

body:has(#dashboard-view:not(.hidden)) .dashboard-nav a {
  color: #e8eef4;
}

body:has(#dashboard-view:not(.hidden)) .dashboard-nav a:hover,
body:has(#dashboard-view:not(.hidden)) .dashboard-nav a:focus-visible {
  color: var(--sigvora-maritime-navy-900);
  background: var(--sigvora-maritime-gold-400);
}

body:has(#dashboard-view:not(.hidden)) .dashboard-actions .role-badge {
  border-color: rgba(9, 37, 65, .16);
  color: var(--sigvora-maritime-navy-800);
  background: #edf1f4;
}

body:has(#dashboard-view:not(.hidden)) .readiness-card,
body:has(#dashboard-view:not(.hidden)) .profile-card,
body:has(#dashboard-view:not(.hidden)) .editor-card {
  border-top: 4px solid var(--sigvora-maritime-navy-800);
}

body:has(#dashboard-view:not(.hidden)) .readiness-metric {
  box-shadow: inset 0 3px 0 rgba(9, 37, 65, .12);
}

body:has(#dashboard-view:not(.hidden)) .career-overview article {
  border-top: 3px solid var(--sigvora-maritime-navy-700);
}

body:has(#dashboard-view:not(.hidden)) .button-secondary {
  border-color: rgba(9, 37, 65, .28);
  color: var(--sigvora-maritime-navy-800);
}

body:has(#dashboard-view:not(.hidden)) .section-heading h2,
body:has(#dashboard-view:not(.hidden)) .profile-card h2,
body:has(#dashboard-view:not(.hidden)) .editor-card h2 {
  color: var(--sigvora-maritime-navy-900);
}

.profile-facts > div:first-child {
  padding: 14px 15px;
  border: 1px solid rgba(208, 163, 75, .55);
  border-radius: 11px;
  background: linear-gradient(145deg, var(--sigvora-maritime-navy-900), var(--sigvora-maritime-navy-800));
  box-shadow: 0 12px 28px rgba(4, 21, 38, .14);
}

.profile-facts > div:first-child dt {
  color: var(--sigvora-maritime-gold-400);
}

#profile-sigvora-id {
  color: white;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .73rem;
  letter-spacing: .045em;
  overflow-wrap: anywhere;
}

.status-cleared,
.status-verified,
.status-ready,
.status-response,
.status-assigned,
.badge.is-positive,
.analysis-ready_for_external_review {
  color: #80520d;
  background: var(--sigvora-maritime-gold-100);
}

/* Crew ID review console */
.review-overview {
  border-top-color: var(--sigvora-maritime-gold-500);
}

.queue-item.selected {
  border-color: var(--sigvora-maritime-gold-500);
  background: var(--sigvora-maritime-cream);
}

.queue-item .crew-id,
#case-sigvora-id {
  color: #9b7128;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: .045em;
}

/* Vessel reference application: gold replaces every former aqua status cue. */
.vessel-hero {
  background:
    radial-gradient(circle at 88% 20%, rgba(208, 163, 75, .24), transparent 28%),
    radial-gradient(circle at 70% 115%, rgba(69, 89, 113, .42), transparent 42%),
    linear-gradient(115deg, #06192f 8%, #0a2844 62%, #173b59);
}

.gauge-ring {
  background: conic-gradient(var(--sigvora-maritime-gold-500) calc(var(--readiness) * 1%), rgba(255,255,255,.16) 0);
}

.gauge-ring span {
  color: var(--sigvora-maritime-gold-400);
}

/* Legal and public sharing surfaces */
.notice,
.privacy-note,
.warning-note,
.prepared-notice {
  border-left-color: var(--sigvora-maritime-gold-500);
}

.back-link,
main a:not(.button):not(.sigvora-link-button) {
  color: #80520d;
}

@media (max-width: 620px) {
  .profile-facts > div:first-child {
    text-align: left;
  }
}

/* crew-dashboard-v2.css */
/* SIGVORA Crew Dashboard V2
   Progressive disclosure keeps one professional task visible at a time. */

body.crew-dashboard-active {
  background: #eef1f3;
}

body.crew-dashboard-active .ambient,
body.crew-dashboard-active .site-header,
body.crew-dashboard-active > footer {
  display: none;
}

body.crew-dashboard-active main {
  width: 100%;
  max-width: none;
  margin: 0;
}

.crew-dashboard-active .dashboard {
  padding: 0;
}

.crew-dashboard-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
}

.crew-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 20px 22px;
  overflow-x: hidden;
  overflow-y: auto;
  color: #edf2f7;
  background:
    radial-gradient(circle at 50% 100%, rgba(208, 163, 75, .16), transparent 17rem),
    linear-gradient(160deg, #041526, #092541 70%, #061a31);
  box-shadow: 18px 0 50px rgba(4, 21, 38, .12);
}

.crew-sidebar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #e0b457, #9b7128);
}

.crew-sidebar-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
}

.crew-sidebar-brand > span:last-child,
.crew-sidebar-brand strong,
.crew-sidebar-brand small {
  display: block;
}

.crew-sidebar-brand strong {
  font-size: .88rem;
  letter-spacing: .19em;
}

.crew-sidebar-brand small {
  margin-top: 3px;
  color: #e0b457;
  font-size: .58rem;
  letter-spacing: .22em;
}

.crew-sidebar-emblem {
  width: 42px;
  height: 48px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  clip-path: polygon(50% 0, 94% 17%, 84% 78%, 50% 100%, 16% 78%, 6% 17%);
  color: #061a31;
  background: linear-gradient(145deg, #e0b457, #a87320);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 700;
}

.crew-sidebar-id {
  position: relative;
  z-index: 1;
  margin: 30px 0 22px;
  padding: 15px;
  border: 1px solid rgba(224, 180, 87, .32);
  border-radius: 14px;
  background: rgba(255, 255, 255, .055);
}

.crew-sidebar-id span,
.crew-sidebar-id strong,
.crew-sidebar-id small {
  display: block;
}

.crew-sidebar-id span {
  color: #e0b457;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.crew-sidebar-id strong {
  margin-top: 7px;
  color: white;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .76rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.crew-sidebar-id small {
  margin-top: 6px;
  color: #9fb0c1;
  font-size: .6rem;
}

body.crew-dashboard-active .dashboard-nav {
  position: relative;
  z-index: 2;
  top: auto;
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.crew-dashboard-active .dashboard-nav a {
  min-height: 44px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  justify-content: initial;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #bdc9d5;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-align: left;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

body.crew-dashboard-active .dashboard-nav a > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #e0b457;
  background: rgba(255, 255, 255, .055);
  font-size: .9rem;
}

body.crew-dashboard-active .dashboard-nav a:hover,
body.crew-dashboard-active .dashboard-nav a:focus-visible,
body.crew-dashboard-active .dashboard-nav a[aria-current="page"] {
  color: white;
  border-color: rgba(224, 180, 87, .18);
  background: rgba(255, 255, 255, .09);
}

body.crew-dashboard-active .dashboard-nav a[aria-current="page"] {
  box-shadow: inset 3px 0 0 #e0b457;
}

.crew-sidebar-protection {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 18px 13px 2px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.crew-sidebar-protection img {
  position: absolute;
  right: -50px;
  bottom: -72px;
  width: 190px;
  height: 250px;
  opacity: .075;
  object-fit: contain;
  pointer-events: none;
}

.crew-sidebar-protection span,
.crew-sidebar-protection small {
  position: relative;
  display: block;
}

.crew-sidebar-protection span {
  color: #e0b457;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.crew-sidebar-protection small {
  margin-top: 5px;
  color: #92a4b6;
  font-size: .58rem;
  line-height: 1.45;
}

.crew-dashboard-workspace {
  width: min(1320px, 100%);
  min-width: 0;
  padding: 38px clamp(28px, 4vw, 64px) 70px;
}

.crew-dashboard-active .dashboard-heading {
  align-items: center;
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid #d7dee4;
}

.crew-dashboard-active .dashboard-heading h1 {
  margin: 7px 0 5px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.85rem, 3vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -.035em;
}

.crew-dashboard-active .dashboard-heading .muted {
  font-size: .79rem;
}

.crew-dashboard-active .role-list {
  max-width: 440px;
}

.crew-dashboard-active .dashboard-actions .role-badge {
  padding: 6px 9px;
  border: 1px solid #d7dee4;
  color: #526679;
  background: white;
  font-size: .62rem;
}

.crew-dashboard-active [data-crew-panel] {
  display: none;
}

.crew-dashboard-active [data-active-section="overview"] [data-crew-panel="overview"],
.crew-dashboard-active [data-active-section="crew-id"] [data-crew-panel="crew-id"],
.crew-dashboard-active [data-active-section="profile"] [data-crew-panel="profile"],
.crew-dashboard-active [data-active-section="documents"] [data-crew-panel="documents"],
.crew-dashboard-active [data-active-section="career"] [data-crew-panel="career"],
.crew-dashboard-active [data-active-section="opportunities"] [data-crew-panel="opportunities"],
.crew-dashboard-active [data-active-section="sea-service"] [data-crew-panel="sea-service"],
.crew-dashboard-active [data-active-section="sharing"] [data-crew-panel="sharing"],
.crew-dashboard-active [data-active-section="security"] [data-crew-panel="security"] {
  display: block;
  animation: crew-panel-in 180ms ease-out;
}

.crew-dashboard-active [data-active-section="profile"] [data-crew-panel="profile"] {
  display: grid;
}

@keyframes crew-panel-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.crew-dashboard-active .access-settings-grid {
  display: contents;
}

.crew-dashboard-active .readiness-card,
.crew-dashboard-active .profile-card,
.crew-dashboard-active .editor-card,
.crew-dashboard-active .career-readiness-card,
.crew-dashboard-active .experience-card,
.crew-dashboard-active .compliance-card,
.crew-dashboard-active .access-card,
.crew-id-hub {
  border: 1px solid #d7dee4;
  border-top: 3px solid #092541;
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 45px rgba(4, 21, 38, .07);
  backdrop-filter: none;
}

.crew-dashboard-active .readiness-card,
.crew-dashboard-active .career-readiness-card,
.crew-dashboard-active .experience-card,
.crew-dashboard-active .compliance-card,
.crew-dashboard-active .access-card,
.crew-id-hub {
  margin-top: 0;
  padding: clamp(26px, 3vw, 38px);
}

.crew-dashboard-active .readiness-card {
  min-height: 560px;
}

.crew-dashboard-active .readiness-metrics {
  margin-top: 30px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  overflow: visible;
  border: 0;
  background: transparent;
}

.crew-dashboard-active .readiness-metric {
  min-height: 142px;
  padding: 22px;
  border: 1px solid #dfe5ea;
  border-radius: 14px;
  background: #f8fafb;
  box-shadow: none;
}

.crew-dashboard-active .next-action-card {
  margin-top: 24px;
  padding: 21px 22px;
  border: 1px solid rgba(208, 163, 75, .28);
  border-left: 4px solid #d0a34b;
  background: #fffaf0;
}

.crew-dashboard-active .dashboard-grid {
  grid-template-columns: minmax(230px, .56fr) minmax(0, 1.7fr);
  gap: 22px;
}

.crew-dashboard-active .profile-card {
  position: sticky;
  top: 28px;
  padding: 28px;
}

.crew-dashboard-active .editor-card {
  padding: clamp(26px, 3vw, 38px);
}

.crew-dashboard-active .profile-facts > div:first-child {
  padding-top: 14px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.crew-dashboard-active .profile-facts > div:first-child dt {
  color: var(--muted);
}

.crew-id-hub-heading {
  align-items: flex-start;
}

.crew-id-hub-heading h2 {
  margin: 8px 0 8px;
  color: #061a31;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}

.crew-id-hub-heading .muted {
  max-width: 680px;
}

.crew-id-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.crew-id-module-grid article {
  min-height: 186px;
  padding: 21px;
  border: 1px solid #dce3e8;
  border-radius: 15px;
  background: linear-gradient(150deg, #fbfcfd, #f4f7f8);
}

.crew-module-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 10px;
  color: #061a31;
  background: #e6c77e;
  font-weight: 800;
}

.crew-id-module-grid small {
  color: #9b7128;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.crew-id-module-grid h3 {
  margin: 7px 0 7px;
  color: #092541;
  font-size: .98rem;
}

.crew-id-module-grid p {
  margin: 0;
  color: #677786;
  font-size: .73rem;
  line-height: 1.55;
}

.crew-id-next-step {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 20px;
  padding: 15px 18px;
  border-radius: 12px;
  color: #dbe4ec;
  background: #092541;
}

.crew-id-next-step span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #061a31;
  background: #e0b457;
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.crew-id-next-step p {
  margin: 0;
  font-size: .74rem;
}

.crew-panel-empty {
  display: grid;
  justify-items: start;
  max-width: 620px;
  margin-top: 28px;
  padding: 28px;
  border: 1px dashed #c6d0d9;
  border-radius: 15px;
  background: #f8fafb;
}

.crew-panel-empty > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #092541;
  background: #e6c77e;
  font-weight: 900;
}

.crew-panel-empty h3 {
  margin: 17px 0 7px;
  color: #092541;
  font-size: 1.2rem;
}

.crew-panel-empty p {
  margin: 0 0 20px;
  color: #677786;
  font-size: .8rem;
  line-height: 1.6;
}

@media (max-width: 1080px) {
  .crew-dashboard-shell {
    grid-template-columns: 208px minmax(0, 1fr);
  }

  .crew-sidebar {
    padding-inline: 14px;
  }

  .crew-id-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crew-dashboard-active .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .crew-dashboard-active .profile-card {
    position: static;
  }
}

@media (max-width: 820px) {
  .crew-dashboard-shell {
    display: block;
  }

  .crew-sidebar {
    position: sticky;
    z-index: 20;
    top: 0;
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
  }

  .crew-sidebar::before,
  .crew-sidebar-id,
  .crew-sidebar-protection {
    display: none;
  }

  .crew-sidebar-brand > span:last-child {
    display: none;
  }

  .crew-sidebar-emblem {
    width: 35px;
    height: 39px;
    font-size: 1.1rem;
  }

  body.crew-dashboard-active .dashboard-nav {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  body.crew-dashboard-active .dashboard-nav a {
    min-width: max-content;
    min-height: 38px;
    display: inline-flex;
    padding: 0 11px;
  }

  body.crew-dashboard-active .dashboard-nav a > span {
    display: none;
  }

  .crew-dashboard-workspace {
    width: 100%;
    padding: 26px 18px 55px;
  }

  .crew-dashboard-active .dashboard-heading {
    align-items: flex-start;
    gap: 18px;
  }
}

@media (max-width: 620px) {
  .crew-dashboard-active .dashboard-heading {
    margin-bottom: 18px;
  }

  .crew-dashboard-active .dashboard-actions,
  .crew-dashboard-active .role-list {
    width: 100%;
  }

  .crew-dashboard-active .dashboard-actions {
    align-items: flex-start;
  }

  .crew-dashboard-active .readiness-card {
    min-height: 0;
  }

  .crew-dashboard-active .readiness-metrics,
  .crew-id-module-grid {
    grid-template-columns: 1fr;
  }

  .crew-id-module-grid article {
    min-height: 0;
  }

  .crew-id-next-step {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .crew-dashboard-active [data-crew-panel] {
    animation: none !important;
  }
}

/* support-widget.css */
.sigvora-support-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9000;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sigvora-support-trigger {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 99px;
  background: #071f39;
  color: #fff;
  box-shadow: 0 16px 36px rgba(3, 20, 36, .25);
  font-weight: 850;
  cursor: pointer;
}

.sigvora-support-mark {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #c99a3d;
  color: #071f39;
  font-weight: 950;
}

.sigvora-support-trigger:hover { background: #0b355b; }

.sigvora-support-unread,
.sigvora-support-link-unread {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  padding: 0 6px;
  border: 2px solid #071f39;
  border-radius: 999px;
  background: #e8b94f;
  color: #071f39;
  font-size: .68rem;
  font-weight: 950;
  line-height: 1;
  box-sizing: border-box;
}

.sigvora-support-unread {
  position: absolute;
  top: -7px;
  right: -7px;
  box-shadow: 0 5px 14px rgba(3, 20, 36, .28);
}

.sigvora-support-link-unread {
  margin-inline-start: auto;
  border-color: rgba(7, 31, 57, .18);
  box-shadow: none;
}

.sigvora-support-unread[hidden],
.sigvora-support-link-unread[hidden] { display: none; }

.sigvora-support-panel {
  position: absolute;
  right: 0;
  bottom: 62px;
  width: 310px;
  padding: 18px;
  border: 1px solid #d8e1e8;
  border-radius: 16px;
  background: #fff;
  color: #10243b;
  box-shadow: 0 25px 60px rgba(3, 20, 36, .24);
}

.sigvora-support-panel[hidden] { display: none; }
.sigvora-support-panel header { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sigvora-support-panel h2 { margin: 2px 0; font-size: 1.05rem; color: #071f39; }
.sigvora-support-panel p { margin: 0 0 14px; color: #697b8d; font-size: .77rem; line-height: 1.45; }
.sigvora-support-panel a { display: flex; align-items: center; justify-content: center; min-height: 43px; margin-top: 8px; border-radius: 9px; text-decoration: none; font-size: .8rem; font-weight: 850; }
.sigvora-support-center-link { background: #071f39; color: #fff; }
.sigvora-support-whatsapp-link { background: #1b9b5c; color: #fff; }
.sigvora-support-panel small { display: block; margin-top: 12px; color: #87631f; font-size: .64rem; line-height: 1.4; }
.sigvora-support-close { border: 0; background: none; color: #6b7c8c; font-size: 1.2rem; cursor: pointer; }

@media (max-width: 720px) {
  .sigvora-support-widget { right: 14px; bottom: 84px; }
  .sigvora-support-trigger { width: 52px; padding: 0; justify-content: center; }
  .sigvora-support-label { display: none; }
  .sigvora-support-panel { width: min(310px, calc(100vw - 28px)); }
}

/* crew-i18n.css */
.crew-header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.crew-language-picker {
  display: inline-grid;
  gap: 4px;
  margin: 0;
}

.crew-language-picker > span {
  color: var(--muted);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.crew-language-picker select {
  width: auto;
  min-width: 136px;
  height: 36px;
  margin: 0;
  padding: 0 30px 0 11px;
  border: 1px solid rgba(9, 37, 65, .2);
  border-radius: 10px;
  color: #092541;
  background-color: rgba(255, 255, 255, .88);
  font-size: .72rem;
  font-weight: 700;
}

.crew-sidebar-language {
  position: relative;
  z-index: 2;
  display: grid;
  margin: 0 0 18px;
}

.crew-sidebar-language > span {
  color: #e0b457;
}

.crew-sidebar-language select {
  width: 100%;
  color: #edf2f7;
  border-color: rgba(224, 180, 87, .28);
  background-color: rgba(255, 255, 255, .075);
}

html[dir="rtl"] body {
  direction: rtl;
}

html[dir="rtl"] .crew-dashboard-shell {
  direction: rtl;
}

html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] .crew-sidebar-id,
html[dir="rtl"] #profile-sigvora-id,
html[dir="rtl"] #new-share-url {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] .crew-dashboard-active .dashboard-nav a[aria-current="page"] {
  box-shadow: inset -3px 0 0 #e0b457;
}

html[dir="rtl"] .crew-dashboard-active .next-action-card {
  border-right: 4px solid #d0a34b;
  border-left-width: 1px;
}

html[dir="rtl"] .profile-facts dd {
  text-align: left;
}

@media (max-width: 820px) {
  .crew-header-actions {
    gap: 10px;
  }

  .crew-language-picker select {
    min-width: 118px;
  }

  .crew-sidebar-language {
    display: none;
  }
}

@media (max-width: 560px) {
  .crew-header-actions .security-label {
    display: none;
  }

  .crew-language-picker > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .crew-language-picker select {
    min-width: 108px;
  }
}

/* Shared dashboard language controls remain available before area loading. */
.crew-language-popover{position:relative;z-index:35;display:inline-flex;flex:0 0 auto}.crew-language-trigger{display:grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid #cfd9e2;border-radius:11px;background:#fff;cursor:pointer;font-size:1.2rem;line-height:1;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}.crew-language-trigger:hover,.crew-language-trigger:focus-visible,.crew-language-popover.is-open .crew-language-trigger{border-color:#c29132;box-shadow:0 0 0 3px rgba(194,145,50,.14);outline:none;transform:translateY(-1px)}.crew-language-menu{position:absolute;top:calc(100% + 9px);right:0;z-index:50;width:220px;padding:11px;border:1px solid #d7e0e7;border-radius:13px;background:#fff;box-shadow:0 20px 50px rgba(4,21,38,.2);opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-7px);transition:opacity .16s ease,visibility .16s ease,transform .16s ease}.crew-language-popover:hover .crew-language-menu,.crew-language-popover.is-open .crew-language-menu{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0)}.crew-language-menu>span{display:block;margin:0 0 7px;color:#687b8d;font-size:.64rem;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.crew-language-menu select{width:100%;min-height:42px;border:1px solid #d7e0e7;border-radius:9px;background:#092541;color:#fff;padding:0 10px;font:inherit;font-weight:750;cursor:pointer}html[dir="rtl"] .crew-language-menu{right:auto;left:0}
@media(max-width:760px){.crew-language-menu{right:-2px;width:min(220px,calc(100vw - 30px))}}

/* crew-workspace-v3.css */
.crew-header-language {
  flex: 0 0 auto;
}

.crew-id-module-card {
  position: relative;
  width: 100%;
  min-height: 250px;
  padding: 32px;
  border: 1px solid rgba(9, 37, 65, .1);
  border-radius: 22px;
  color: #0a2744;
  background: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(244, 248, 251, .92));
  box-shadow: 0 16px 34px rgba(5, 31, 54, .06);
  text-align: left;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.crew-id-module-card:hover,
.crew-id-module-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(210, 164, 73, .58);
  box-shadow: 0 20px 44px rgba(5, 31, 54, .12);
  outline: none;
}

.crew-id-module-card .crew-module-icon,
.crew-module-workspace-heading .crew-module-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 16px;
  color: #082540;
  background: linear-gradient(145deg, #f4d687, #ddb252);
  font-size: 1.65rem;
  font-style: normal;
  font-weight: 800;
}

.crew-id-module-card small,
.crew-module-card-heading small,
.crew-module-workspace-heading small {
  color: #a77822;
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.crew-id-module-card h3 {
  margin: 15px 0 8px;
  color: #0a2744;
  font-size: 1.28rem;
}

.crew-id-module-card p {
  min-height: 58px;
  margin: 0;
  color: #718296;
  line-height: 1.55;
}

.crew-id-module-card em {
  display: block;
  margin-top: 18px;
  color: #9b6d18;
  font-size: .78rem;
  font-style: normal;
  font-weight: 850;
}

.crew-id-module-reserved {
  background: linear-gradient(145deg, rgba(247, 241, 226, .98), rgba(255, 255, 255, .94));
}

.crew-id-live-badge {
  color: #0a6046;
  background: #e4f4ec;
}

.crew-module-workspace {
  animation: crewWorkspaceIn .26s ease both;
}

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

.crew-module-workspace-heading {
  margin-bottom: 26px;
}

.crew-module-workspace-heading > div {
  display: flex;
  align-items: center;
  gap: 16px;
}

.crew-module-workspace-heading h3 {
  margin: 2px 0 4px;
  color: #08233e;
  font-size: clamp(1.55rem, 2.3vw, 2.15rem);
}

.crew-module-workspace-heading p {
  margin: 0;
  color: #718296;
}

.crew-module-back {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  color: #87611c;
  background: transparent;
  font: inherit;
  font-size: .78rem;
  font-weight: 850;
  cursor: pointer;
}

.crew-module-split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: 22px;
}

.secure-share-boundary {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: -8px 0 22px;
  padding: 16px 18px;
  border: 1px solid rgba(207, 165, 72, .35);
  border-radius: 15px;
  color: #6e531f;
  background: #fff8e9;
}

.secure-share-boundary strong {
  flex: 0 0 auto;
  color: #0a2946;
}

.secure-share-boundary span {
  font-size: .78rem;
  line-height: 1.55;
}

.secure-share-layout {
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, .82fr);
}

.crew-module-card-surface {
  padding: 26px;
  border: 1px solid rgba(9, 37, 65, .1);
  border-radius: 22px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 16px 36px rgba(5, 31, 54, .055);
}

.crew-module-card-surface label {
  display: grid;
  gap: 7px;
  margin: 0 0 18px;
  color: #173550;
  font-size: .8rem;
  font-weight: 800;
}

.crew-module-card-surface label > small {
  color: #7a8999;
  font-size: .7rem;
  font-weight: 500;
}

.crew-module-card-surface input,
.crew-module-card-surface select,
.crew-module-card-surface textarea,
.crew-message-sidebar input,
.crew-conversation textarea,
.crew-workspace-dialog textarea {
  width: 100%;
  border: 1px solid rgba(9, 37, 65, .18);
  border-radius: 11px;
  color: #0a2744;
  background: #fff;
}

.crew-module-card-surface textarea,
.crew-conversation textarea,
.crew-workspace-dialog textarea {
  resize: vertical;
}

.crew-module-card-heading,
.crew-module-list-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.crew-module-card-heading h4 {
  margin: 4px 0 0;
  color: #0b2946;
  font-size: 1.12rem;
}

.crew-module-card-heading > span {
  padding: 7px 10px;
  border-radius: 999px;
  color: #8a621b;
  background: #f8f0df;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .08em;
  white-space: nowrap;
}

.crew-module-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.workspace-share-sections {
  display: grid;
  gap: 9px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.workspace-share-sections legend {
  margin-bottom: 9px;
  color: #173550;
  font-size: .8rem;
  font-weight: 850;
}

.workspace-share-sections label {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #e2e8ed;
  border-radius: 12px;
  background: #f9fbfc;
}

.workspace-share-sections input {
  width: 17px;
  margin-top: 3px;
}

.workspace-share-sections span {
  display: grid;
  gap: 2px;
}

.workspace-share-sections small {
  color: #718296;
  font-weight: 500;
}

.secure-share-packages {
  margin: 2px 0 18px;
  padding: 0;
  border: 0;
}

.secure-share-packages legend {
  margin-bottom: 9px;
  color: #173550;
  font-size: .8rem;
  font-weight: 850;
}

.secure-share-package-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.secure-share-package-grid button {
  padding: 8px 10px;
  border: 1px solid rgba(10, 39, 68, .16);
  border-radius: 999px;
  color: #24435f;
  background: #fff;
  font: inherit;
  font-size: .68rem;
  font-weight: 800;
  cursor: pointer;
}

.secure-share-package-grid button:hover,
.secure-share-package-grid button:focus-visible {
  border-color: #c99938;
  color: #7f5a17;
  background: #fff9eb;
  outline: none;
}

.secure-share-download-choice,
.secure-share-consent-choice {
  display: flex !important;
  align-items: flex-start;
  gap: 11px !important;
  padding: 13px 14px;
  border: 1px solid #dfe7ec;
  border-radius: 13px;
  background: #f9fbfc;
}

.secure-share-consent-choice {
  border-color: rgba(207, 165, 72, .38);
  background: #fffaf0;
}

.secure-share-download-choice input,
.secure-share-consent-choice input {
  flex: 0 0 auto;
  width: 18px !important;
  min-height: 18px;
  margin-top: 2px;
}

.secure-share-download-choice span,
.secure-share-consent-choice span {
  display: grid;
  gap: 3px;
}

.secure-share-status {
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 850;
  text-transform: capitalize;
}

.secure-share-status.is-active { color: #1f6b50; background: #e6f4ed; }
.secure-share-status.is-expired { color: #755f2b; background: #f5edd9; }
.secure-share-status.is-revoked { color: #943f3b; background: #f7e6e4; }

.secure-share-access-log {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-left: 3px solid #d1a44a;
  border-radius: 8px;
  background: #fff;
}

.secure-share-access-log small {
  color: #596f82;
}

.crew-module-protection,
.crew-module-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 16px 0;
}

.crew-module-protection span {
  padding: 6px 9px;
  border-radius: 999px;
  color: #386252;
  background: #eaf5ef;
  font-size: .64rem;
  font-weight: 800;
}

.crew-module-actions {
  justify-content: flex-end;
}

.crew-pass-id {
  display: grid;
  margin-bottom: 24px;
  padding: 24px;
  border-radius: 18px;
  color: #fff;
  background: radial-gradient(circle at 90% 15%, rgba(221, 178, 82, .22), transparent 38%), #082540;
  box-shadow: 0 18px 32px rgba(4, 28, 49, .19);
}

.crew-pass-id > small { color: #e6be62; letter-spacing: .13em; }
.crew-pass-id > strong { margin: 8px 0 4px; font: 800 1.18rem/1.35 ui-monospace, SFMono-Regular, Menlo, monospace; }
.crew-pass-id > span { color: #bdc9d3; }
.crew-pass-id dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 0; }
.crew-pass-id dl div { display: grid; gap: 4px; }
.crew-pass-id dt { color: #d9aa4d; font-size: .58rem; font-weight: 900; letter-spacing: .11em; }
.crew-pass-id dd { margin: 0; font-size: .76rem; }

.crew-generated-link {
  margin: 0 0 22px;
  padding: 15px;
  border: 1px solid rgba(37, 124, 91, .24);
  border-radius: 14px;
  background: #edf8f3;
}

.crew-generated-link > small { display: block; margin-bottom: 8px; color: #1e6f52; font-weight: 900; }
.crew-generated-link input { margin-bottom: 9px; font-size: .69rem; }

.secure-share-result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 18px;
  align-items: center;
}

.secure-share-result-copy { min-width: 0; }
.secure-share-result-copy p { margin-top: 0; }

.secure-share-qr-card {
  display: grid;
  gap: 9px;
  justify-items: center;
  padding: 12px;
  border: 1px solid rgba(10, 39, 68, .12);
  border-radius: 13px;
  color: #173550;
  background: #fff;
  text-align: center;
}

.secure-share-qr {
  display: grid;
  width: 166px;
  min-height: 166px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.secure-share-qr svg { display: block; width: 100%; height: auto; }
.secure-share-qr.is-unavailable { padding: 14px; color: #8d4c42; background: #fff6f4; font-size: .7rem; line-height: 1.45; }
.secure-share-qr-card > div:last-child { display: grid; gap: 2px; }
.secure-share-qr-card strong { font-size: .78rem; }
.secure-share-qr-card small { color: #718296; font-size: .65rem; }
.secure-share-qr-warning { margin: 12px 0 0; color: #567064; font-size: .68rem; line-height: 1.5; }

.crew-compact-records,
.crew-notebook-list,
.crew-conversation-list,
.crew-contact-results {
  display: grid;
  gap: 10px;
}

.crew-compact-record,
.crew-notebook-record,
.crew-conversation-record,
.crew-contact-record {
  display: grid;
  gap: 6px;
  padding: 13px;
  border: 1px solid #e2e8ed;
  border-radius: 13px;
  color: #173550;
  background: #f9fbfc;
}

button.crew-compact-record,
button.crew-notebook-record,
button.crew-conversation-record,
button.crew-contact-record {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.crew-record-topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.crew-record-topline span,
.crew-compact-record small,
.crew-notebook-record small,
.crew-conversation-record small,
.crew-contact-record small {
  color: #718296;
  font-size: .69rem;
}

.crew-record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.crew-record-action {
  padding: 7px 10px;
  border: 1px solid rgba(9, 37, 65, .15);
  border-radius: 8px;
  color: #16344f;
  background: #fff;
  font: inherit;
  font-size: .68rem;
  font-weight: 800;
  cursor: pointer;
}

.crew-record-action.is-danger { color: #9d3232; }
.crew-record-action:disabled { cursor: wait; opacity: .55; }

.crew-language-button-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.crew-language-button-grid button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 15px;
  border: 1px solid #dde5eb;
  border-radius: 12px;
  color: #173550;
  background: #f9fbfc;
  cursor: pointer;
}

.crew-language-button-grid button.is-active {
  border-color: #d0a34b;
  box-shadow: inset 0 0 0 1px #d0a34b;
  background: #fff9ec;
}

.crew-language-button-grid small { color: #9b6d18; font-weight: 850; }
.crew-language-preview ul { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.crew-language-preview li { display: grid; gap: 4px; padding-bottom: 13px; border-bottom: 1px solid #e4e9ed; }
.crew-language-preview li span { color: #718296; font-size: .79rem; line-height: 1.5; }

.crew-content-feed { margin-top: 22px; }
.crew-content-feed-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.crew-content-feed-card { display: grid; gap: 10px; padding: 17px; border: 1px solid #e0e7ec; border-radius: 14px; background: #fafcfd; }
.crew-content-feed-card h5 { margin: 0; color: #0b2946; font-size: 1rem; }
.crew-content-feed-card p { margin: 0; color: #60758a; font-size: .77rem; line-height: 1.5; white-space: pre-wrap; }
.crew-content-feed-card > small { color: #9b6d18; font-family: ui-monospace, monospace; }
.crew-content-library-toolbar { display: grid; grid-template-columns: minmax(240px, 2fr) repeat(2, minmax(150px, .7fr)) auto; gap: 10px; align-items: end; margin-bottom: 16px; }
.crew-content-library-toolbar label { display: grid; gap: 5px; color: #173550; font-size: .7rem; font-weight: 850; }
.crew-content-library-toolbar input,
.crew-content-library-toolbar select { min-height: 42px; padding: 0 11px; border: 1px solid #cfdbe3; border-radius: 9px; color: #173550; background: #fff; font: inherit; }
.crew-content-library-toolbar > strong { align-self: center; color: #946b1d; font-size: .72rem; }
.crew-content-library-pages { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 17px; }
.crew-content-library-pages span { color: #64798b; font-size: .72rem; }
.crew-content-library-pages button:disabled { opacity: .4; cursor: default; }
.crew-content-review-note { display: block; margin-top: 7px; color: #9b5528 !important; line-height: 1.45; }
.crew-creator-profile { display: grid; grid-template-columns: 1.4fr repeat(2, minmax(0, .7fr)); gap: 13px; margin: 0 0 22px; }
.crew-creator-profile article { display: grid; gap: 5px; padding: 18px 20px; border: 1px solid rgba(9, 37, 65, .1); border-radius: 18px; background: linear-gradient(145deg, #fff, #f7fafb); }
.crew-creator-profile small { color: #9b6d18; font-size: .62rem; font-weight: 900; letter-spacing: .11em; }
.crew-creator-profile strong { color: #0a2946; font-size: 1.4rem; }
.crew-creator-profile span { color: #718296; font-size: .72rem; }
.crew-creator-search { display: grid; grid-template-columns: minmax(260px, 1fr) auto; gap: 12px; align-items: end; margin: 0 0 22px; padding: 16px 18px; border: 1px solid rgba(9, 37, 65, .1); border-radius: 16px; background: rgba(255, 255, 255, .8); }
.crew-creator-search label { display: grid; gap: 6px; color: #173550; font-size: .76rem; font-weight: 850; }
.crew-creator-search input { min-height: 43px; padding: 0 13px; border: 1px solid #cfdbe3; border-radius: 10px; font: inherit; text-transform: uppercase; }
.crew-creator-search .form-error { grid-column: 1 / -1; margin: 0; }
.crew-content-split-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: -2px 0 20px; padding: 14px; border: 1px solid #ead6a6; border-radius: 13px; color: #173550; background: #fffaf0; }
.crew-content-split-preview span { display: flex; justify-content: space-between; gap: 8px; font-size: .72rem; }
.crew-content-split-preview strong { color: #946b1d; }
.crew-content-split-preview small { grid-column: 1 / -1; color: #718296; font-size: .68rem; line-height: 1.45; }
.crew-content-access-note { color: #8a6118; font-size: .69rem; font-weight: 850; }
.crew-creator-lower-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 22px; }
.crew-library-record p,
.crew-notification-record p { margin: 3px 0; color: #60758a; font-size: .76rem; line-height: 1.5; white-space: pre-wrap; }
.crew-notification-record.is-unread { border-color: #d0a34b; background: #fffaf0; }
.crew-creator-profile-dialog { width: min(900px, calc(100% - 30px)); padding: 0; border: 0; border-radius: 22px; }
.crew-creator-profile-dialog > div { position: relative; display: grid; gap: 18px; padding: 28px; }
.crew-creator-profile-dialog header { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.crew-creator-profile-dialog header h3 { margin: 0; color: #0a2946; font-size: 1.7rem; }
.crew-creator-profile-dialog header p { margin: 5px 0 0; }
.crew-creator-profile-dialog header > strong { color: #946b1d; font-size: .78rem; }
.crew-content-reader-dialog { width: min(900px, calc(100% - 30px)); max-height: 90vh; padding: 0; border: 0; border-radius: 22px; }
.crew-content-reader-dialog > article { position: relative; padding: 30px; }
.crew-content-reader-dialog h3 { margin: 4px 46px 5px 0; color: #0a2946; font-size: clamp(1.5rem, 4vw, 2.2rem); }
.crew-content-reader-dialog pre { max-height: 60vh; overflow: auto; margin: 20px 0 0; padding: 20px; border: 1px solid #dce5eb; border-radius: 14px; color: #173550; background: #f8fbfc; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; line-height: 1.65; }

.crew-messenger {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  min-height: 610px;
  overflow: hidden;
  border: 1px solid rgba(9, 37, 65, .1);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(5, 31, 54, .055);
}

.crew-message-sidebar { padding: 22px; border-right: 1px solid #e2e8ed; background: #f7fafc; }
.crew-message-sidebar form label { display: block; margin-bottom: 8px; color: #183750; font-size: .76rem; font-weight: 850; }
.crew-message-sidebar form > div { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.crew-message-sidebar form button { border: 0; border-radius: 10px; color: #092541; background: #e8c269; font-weight: 900; cursor: pointer; }
.crew-contact-results { margin-top: 10px; }
.crew-message-sidebar-heading { display: flex; justify-content: space-between; margin: 24px 0 10px; color: #173550; }
.crew-message-sidebar-heading span { display: grid; min-width: 26px; height: 26px; place-items: center; border-radius: 50%; background: #e8eef3; font-size: .7rem; }
.crew-conversation-record.is-active { border-color: #d0a34b; background: #fff9ec; }

.crew-conversation { min-width: 0; background: #fff; }
.crew-conversation-placeholder { display: grid; height: 100%; place-content: center; justify-items: center; padding: 40px; color: #718296; text-align: center; }
.crew-conversation-placeholder > span { font-size: 2.3rem; }
.crew-conversation-placeholder h4 { margin: 12px 0 5px; color: #173550; }
.crew-conversation-active { display: grid; grid-template-rows: auto 1fr auto; min-height: 610px; }
.crew-conversation-active > header { display: flex; justify-content: space-between; padding: 20px 23px; border-bottom: 1px solid #e2e8ed; }
.crew-conversation-active > header div { display: grid; gap: 3px; }
.crew-conversation-active > header small { color: #a77822; font-family: ui-monospace, monospace; }
.crew-conversation-active > header > span { color: #2c755d; font-size: .68rem; font-weight: 850; }
.crew-message-stream { display: flex; flex-direction: column; gap: 9px; min-height: 0; max-height: 480px; overflow: auto; padding: 22px; background: linear-gradient(#fafcfd, #f5f9fb); }
.crew-message-bubble { align-self: flex-start; max-width: 78%; padding: 11px 13px; border: 1px solid #dce5eb; border-radius: 14px 14px 14px 4px; color: #183750; background: #fff; }
.crew-message-bubble.is-own { align-self: flex-end; border-color: #d9b45b; border-radius: 14px 14px 4px 14px; background: #fff8e9; }
.crew-message-bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.crew-message-bubble small { display: block; margin-top: 6px; color: #8492a0; font-size: .6rem; }
.crew-conversation-active form { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 17px; border-top: 1px solid #e2e8ed; }

.crew-workspace-dialog { width: min(480px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 20px; }
.crew-workspace-dialog::backdrop { background: rgba(2, 20, 36, .66); backdrop-filter: blur(4px); }
.crew-workspace-dialog form { position: relative; display: grid; gap: 13px; padding: 30px; }

.crew-payment-reserved { display: flex; align-items: center; gap: 22px; }
.crew-payment-icon { display: grid; flex: 0 0 82px; height: 82px; place-items: center; border-radius: 23px; color: #0a2744; background: linear-gradient(145deg, #f3d37e, #ddb04c); font-size: 2rem; font-weight: 900; }
.crew-payment-reserved h4 { margin: 5px 0 7px; color: #0a2744; font-size: 1.25rem; }
.crew-payment-reserved p { margin: 0; color: #718296; }
.crew-payment-reserved > strong { margin-left: auto; padding: 8px 12px; border-radius: 999px; color: #7f5a17; background: #f8efdc; font-size: .67rem; }

.crew-payment-dashboard { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 18px; align-items: start; }
.crew-wallet-card { min-height: 100%; color: #eef6fb; background: linear-gradient(145deg, #092744, #0d3659); }
.crew-wallet-card .crew-module-card-heading { border-bottom-color: rgba(255, 255, 255, .13); }
.crew-wallet-card .crew-module-card-heading small,
.crew-wallet-card .crew-module-card-heading h4 { color: #fff; }
.crew-wallet-card .crew-module-card-heading > span { color: #f0cc76; background: rgba(240, 204, 118, .12); }
.crew-token-balance { display: block; margin: 18px 0 4px; color: #f0cc76; font-size: clamp(2.6rem, 7vw, 4.8rem); line-height: 1; letter-spacing: -.05em; }
.crew-token-balance small { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; }
.crew-wallet-card > p { color: #b9cad7; line-height: 1.55; }
.crew-wallet-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 20px 0 0; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.12); }
.crew-wallet-summary div { padding: 12px; background: rgba(4, 27, 47, .58); }
.crew-wallet-summary dt { color: #9eb3c4; font-size: .63rem; font-weight: 850; text-transform: uppercase; }
.crew-wallet-summary dd { margin: 5px 0 0; color: #fff; font-size: 1.15rem; font-weight: 900; }
.crew-basic-payment-card ul { display: grid; gap: 7px; margin: 18px 0; padding-left: 19px; color: #5f7487; font-size: .82rem; }
.crew-payment-code-label { margin: 14px 0 10px; }
.crew-payment-consent { display: flex !important; align-items: flex-start; gap: 9px; margin: 12px 0; color: #5f7487 !important; font-size: .72rem !important; line-height: 1.45; }
.crew-payment-consent input { flex: 0 0 auto; width: 17px !important; min-height: 17px !important; margin-top: 2px; }
.crew-basic-payment-card > .button + .button { margin-top: 9px; }
.crew-referral-card > p { color: #65798b; line-height: 1.5; }
.crew-inline-code { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.crew-id-module-card.is-subscription-locked,
[data-crew-module-rail].is-subscription-locked { opacity: .68; }
.crew-id-module-card.is-subscription-locked::after { content: "ANNUAL PLAN"; display: inline-flex; margin-top: 12px; padding: 5px 8px; border-radius: 999px; color: #805c1d; background: #f7e9c9; font-size: .58rem; font-weight: 900; letter-spacing: .08em; }
.crew-payment-price { display: flex; align-items: end; gap: 15px; margin-top: 17px; }
.crew-payment-price > strong { color: #0a2946; font-size: 2.45rem; line-height: 1; letter-spacing: -.05em; }
.crew-payment-price > span { color: #6c8091; font-size: .75rem; line-height: 1.45; }
.crew-payment-price b { color: #98701f; }
.crew-token-shop,
.crew-payment-history-card { grid-column: 1 / -1; }
.crew-token-package-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.crew-token-package { display: grid; gap: 10px; padding: 17px; border: 1px solid #dbe4ea; border-radius: 14px; background: linear-gradient(145deg, #fff, #f8fbfc); }
.crew-token-package > small { color: #98701f; font-size: .65rem; font-weight: 900; letter-spacing: .08em; }
.crew-token-package > strong { color: #0a2946; font-size: 1.45rem; }
.crew-token-package > span { color: #6c8091; font-size: .75rem; }
.crew-token-package button { margin-top: 2px; }
.crew-payment-tax-note { margin: 14px 0 0; color: #748697; font-size: .72rem; line-height: 1.5; }
.crew-payment-history-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.crew-payment-history-columns h5 { margin: 0 0 9px; color: #173650; }
.crew-payment-record-amount { color: #0c3152; font-weight: 900; }
.crew-payment-record-status.is-paid { color: #277258; }
.crew-payment-record-status.is-failed { color: #a24a43; }
.crew-content-feed-card.is-locked { border-color: #d9bd7d; background: #fffaf0; }
.crew-content-price { display: inline-flex; align-items: center; gap: 5px; color: #946b1d; font-size: .72rem; font-weight: 900; }

.crew-notebook-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.crew-notebook-record.is-active { border-color: #d0a34b; background: #fff9ec; }
.crew-notebook-share-panel { position: sticky; top: 18px; }
.crew-module-status { min-height: 1.1em; color: #276e56; font-size: .75rem; }

html[dir="rtl"] .crew-id-module-card,
html[dir="rtl"] button.crew-compact-record,
html[dir="rtl"] button.crew-notebook-record,
html[dir="rtl"] button.crew-conversation-record,
html[dir="rtl"] button.crew-contact-record { text-align: right; }
html[dir="rtl"] .crew-message-sidebar { border-right: 0; border-left: 1px solid #e2e8ed; }
html[dir="rtl"] .crew-payment-reserved > strong { margin-right: auto; margin-left: 0; }

@media (max-width: 1180px) {
  .crew-notebook-layout { grid-template-columns: 240px minmax(0, 1fr); }
  .crew-notebook-share-panel { grid-column: 1 / -1; position: static; }
  .crew-content-feed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .crew-module-split { grid-template-columns: 1fr; }
  .crew-creator-profile { grid-template-columns: 1fr 1fr; }
  .crew-creator-profile article:first-child { grid-column: 1 / -1; }
  .crew-creator-lower-grid { grid-template-columns: 1fr; }
  .crew-payment-dashboard { grid-template-columns: 1fr; }
  .crew-wallet-card,
  .crew-basic-payment-card { min-height: 0; }
  .crew-messenger { grid-template-columns: 285px minmax(0, 1fr); }
  .crew-language-button-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crew-content-library-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .crew-header-language { display: inline-grid; }
  .crew-header-language > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .crew-id-module-card { min-height: auto; padding: 23px; }
  .crew-id-module-card p { min-height: 0; }
  .crew-module-field-grid,
  .crew-content-feed-grid,
  .crew-notebook-layout { grid-template-columns: 1fr; }
  .crew-creator-profile,
  .crew-content-split-preview { grid-template-columns: 1fr; }
  .crew-creator-search { grid-template-columns: 1fr; }
  .crew-creator-search .form-error { grid-column: auto; }
  .crew-creator-profile article:first-child,
  .crew-content-split-preview small { grid-column: auto; }
  .crew-messenger { grid-template-columns: 1fr; }
  .crew-message-sidebar { border-right: 0; border-bottom: 1px solid #e2e8ed; }
  .crew-conversation-active { min-height: 520px; }
  .crew-conversation-active > header > span { display: none; }
  .crew-payment-reserved { align-items: flex-start; flex-wrap: wrap; }
  .crew-payment-reserved > strong { margin-left: 104px; }
  .crew-token-package-grid,
  .crew-payment-history-columns { grid-template-columns: 1fr; }
  .crew-inline-code { grid-template-columns: 1fr; }
  .secure-share-boundary { flex-direction: column; gap: 5px; }
  .secure-share-result-grid { grid-template-columns: 1fr; }
  .crew-content-library-toolbar { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .crew-module-card-surface { padding: 19px; border-radius: 16px; }
  .crew-language-button-grid { grid-template-columns: 1fr; }
  .crew-module-workspace-heading > div { align-items: flex-start; }
  .crew-module-workspace-heading .crew-module-icon { flex: 0 0 48px; width: 48px; height: 48px; }
  .crew-module-actions .button { width: 100%; }
  .crew-conversation-active form { grid-template-columns: 1fr; }
  .crew-message-bubble { max-width: 90%; }
}

/* crew-id-hub-v2.css */
/* SIGVORA Crew ID Hub V2
   Visible production shell for the six protected Crew ID workspaces. */

:root {
  --crew-id-navy-950: #03172a;
  --crew-id-navy-900: #061f39;
  --crew-id-navy-800: #0b3357;
  --crew-id-gold-600: #b9852e;
  --crew-id-gold-500: #d3a64c;
  --crew-id-gold-200: #f4e6c4;
  --crew-id-ink: #0b2540;
  --crew-id-muted: #748596;
  --crew-id-line: #dbe3e9;
  --crew-id-paper: #f2f6f8;
}

body.crew-dashboard-active {
  background: var(--crew-id-paper);
}

.crew-dashboard-shell {
  grid-template-columns: 268px minmax(0, 1fr);
}

.crew-sidebar {
  padding: 34px 28px 24px;
  background:
    radial-gradient(circle at 42% 100%, rgba(211, 166, 76, .12), transparent 18rem),
    linear-gradient(164deg, #03172a, #07243f 70%, #092b49);
}

.crew-sidebar::before {
  display: none;
}

.crew-sidebar-brand {
  gap: 15px;
  padding: 0 4px 28px;
}

.crew-sidebar-brand strong {
  font-size: 1.02rem;
  letter-spacing: .22em;
}

.crew-sidebar-brand small {
  margin-top: 5px;
  font-size: .55rem;
  letter-spacing: .23em;
}

.crew-sidebar-emblem {
  width: 38px;
  height: 52px;
  background: linear-gradient(145deg, #e6bd63, #a97420);
}

.crew-sidebar-id {
  display: none;
}

.crew-sidebar-language {
  margin: 5px 4px 30px;
}

.crew-sidebar-language > span {
  margin-bottom: 9px;
  color: var(--crew-id-gold-500);
  font-size: .6rem;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.crew-sidebar-language > span::after {
  content: none;
}

.crew-sidebar-language select {
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid rgba(211, 166, 76, .34);
  border-radius: 12px;
  color: #fff;
  background: rgba(255,255,255,.11);
  font-size: .78rem;
  font-weight: 750;
}

body.crew-dashboard-active .dashboard-nav {
  gap: 4px;
}

body.crew-dashboard-active .dashboard-nav::before {
  content: attr(data-workspace-label);
  margin: 0 8px 16px;
  color: #6f8294;
  font-size: .58rem;
  font-weight: 850;
  letter-spacing: .2em;
}

body.crew-dashboard-active .dashboard-nav a {
  min-height: 48px;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  padding: 0 12px;
  border-radius: 11px;
  font-size: .75rem;
}

body.crew-dashboard-active .dashboard-nav a[data-crew-target="crew-id"]::after {
  content: "6";
  min-width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #f1cf85;
  background: rgba(211,166,76,.2);
  font-size: .62rem;
}

body.crew-dashboard-active .dashboard-nav a[aria-current="page"] {
  border-color: rgba(211,166,76,.28);
  box-shadow: inset 3px 0 0 var(--crew-id-gold-500);
  background: rgba(255,255,255,.15);
}

.crew-sidebar-protection {
  margin-top: auto;
}

.crew-dashboard-workspace {
  max-width: 1720px;
  padding: 0 38px 72px;
}

.crew-dashboard-active .dashboard-heading {
  min-height: 86px;
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid #dce4e9;
}

.dashboard-crew-id-title {
  display: none;
}

.dashboard[data-active-section="crew-id"] .dashboard-profile-title {
  display: none;
}

.dashboard[data-active-section="crew-id"] .dashboard-crew-id-title {
  display: block;
}

.dashboard-crew-id-title h1 {
  margin: 3px 0 0;
  color: var(--crew-id-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  font-weight: 500;
}

.dashboard-crew-id-title .muted {
  display: none;
}

.dashboard[data-active-section="crew-id"] .dashboard-actions .role-list {
  display: none;
}

.dashboard[data-active-section="crew-id"] .crew-header-language > span {
  font-size: 0;
}

.dashboard[data-active-section="crew-id"] .crew-header-language > span::after {
  content: attr(data-language-label);
  font-size: .58rem;
  letter-spacing: .12em;
}

.crew-dashboard-active [data-active-section="crew-id"] [data-crew-panel="crew-id"] {
  display: grid;
}

.crew-id-hub {
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px 24px;
  align-items: start;
  padding: 20px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.crew-id-hub-hero {
  min-height: 210px;
  display: flex;
  grid-column: 1;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(30px, 4vw, 48px);
  overflow: hidden;
  border-radius: 20px;
  color: white;
  background:
    radial-gradient(circle at 88% 45%, rgba(211,166,76,.26), transparent 24rem),
    linear-gradient(118deg, var(--crew-id-navy-950), #092c50 66%, #344657);
  box-shadow: 0 22px 48px rgba(4,31,55,.12);
}

.crew-id-hub-hero > div:first-child {
  max-width: 760px;
}

.crew-id-hub-hero .eyebrow {
  color: var(--crew-id-gold-500);
}

.crew-id-hub-hero h2 {
  margin: 18px 0 16px;
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.7vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -.025em;
}

.crew-id-hub-hero p:last-child {
  margin: 0;
  color: #c4cfda;
  font-size: .84rem;
  line-height: 1.65;
}

.crew-id-connected-count {
  width: 154px;
  height: 154px;
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: auto 1fr;
  place-content: center;
  align-items: center;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(224,180,87,.52);
  border-radius: 999px;
}

.crew-id-connected-count strong {
  color: var(--crew-id-gold-500);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.65rem;
  font-weight: 500;
}

.crew-id-connected-count span {
  color: #d8dee4;
  font-size: .53rem;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.crew-id-identity-rail {
  position: sticky;
  top: 20px;
  display: grid;
  grid-column: 2;
  grid-row: 1 / span 12;
  gap: 20px;
}

.crew-id-identity-card {
  overflow: hidden;
  border: 1px solid rgba(211,166,76,.42);
  border-radius: 18px;
  color: white;
  background:
    radial-gradient(circle at 90% 3%, rgba(211,166,76,.27), transparent 17rem),
    linear-gradient(155deg, #061d35, #0a3458);
  box-shadow: 0 22px 50px rgba(4,31,55,.14);
}

.crew-id-identity-card > header,
.crew-id-identity-card > footer,
.crew-id-person,
.crew-id-identity-card dl {
  margin-inline: 24px;
}

.crew-id-identity-card > header {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--crew-id-gold-500);
  font-size: .6rem;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.crew-id-identity-card > header b {
  width: 28px;
  height: 37px;
  display: grid;
  place-items: center;
  clip-path: polygon(50% 0, 94% 17%, 84% 78%, 50% 100%, 16% 78%, 6% 17%);
  color: #08243f;
  background: linear-gradient(145deg,#dfb65c,#95651a);
  font-family: Georgia,serif;
  font-size: .9rem;
}

.crew-id-person {
  min-height: 130px;
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.crew-id-card-avatar {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 3px solid #f7e8c5;
  border-radius: 999px;
  color: white;
  background: linear-gradient(145deg,#c59437,#8a5d1c);
  font-family: Georgia,serif;
  font-size: 1.45rem;
}

.crew-id-person h3 {
  margin: 0;
  color: white;
  font-family: Georgia,"Times New Roman",serif;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.1;
}

.crew-id-person p {
  margin: 9px 0 0;
  color: var(--crew-id-gold-500);
  font-size: .76rem;
}

.crew-id-identity-card dl {
  margin-block: 0;
  padding: 4px 0 18px;
}

.crew-id-identity-card dl > div {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.crew-id-identity-card dt {
  color: #8094a7;
  font-size: .53rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.crew-id-identity-card dd {
  margin: 0;
  color: white;
  font-size: .66rem;
  font-weight: 800;
  text-align: end;
}

#crew-id-card-status {
  color: var(--crew-id-gold-500);
}

.crew-id-identity-card > footer {
  margin: 0;
  min-height: 68px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #899aaa;
  background: rgba(255,255,255,.08);
  font-size: .6rem;
}

.crew-id-identity-card > footer b {
  color: var(--crew-id-gold-500);
  font-size: 1rem;
}

.crew-id-function-index {
  padding: 24px;
  border: 1px solid rgba(211,166,76,.38);
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 42px rgba(4,31,55,.08);
}

.crew-id-function-index > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.crew-id-function-index h3 {
  margin: 8px 0 18px;
  color: var(--crew-id-ink);
  font-family: Georgia,"Times New Roman",serif;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.18;
}

.crew-id-function-index > header > span {
  padding: 6px 8px;
  border-radius: 999px;
  color: #378268;
  background: #e7f4ee;
  font-size: .52rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.crew-id-function-index nav {
  display: grid;
  gap: 6px;
}

.crew-id-function-index button {
  min-height: 48px;
  display: grid;
  grid-template-columns: 34px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border: 1px solid var(--crew-id-line);
  border-radius: 10px;
  color: #344e65;
  background: white;
  font-size: .59rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.crew-id-function-index button:hover,
.crew-id-function-index button:focus-visible,
.crew-id-function-index button.is-active {
  border-color: rgba(211,166,76,.7);
  background: #fff9ed;
  outline: none;
}

.crew-id-function-index button > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #a87520;
  background: #f7ead0;
  font-size: .8rem;
}

.crew-id-function-index button > b {
  color: #b9852e;
  font-size: .8rem;
}

.crew-id-workspace-picker,
#crew-id-module-overview,
.crew-id-hub > [data-crew-module],
.crew-id-next-step {
  grid-column: 1;
}

.crew-id-workspace-picker {
  margin: 0;
  padding: 30px 30px 0;
  border: 1px solid var(--crew-id-line);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: rgba(255,255,255,.97);
}

.crew-id-workspace-picker h2 {
  font-family: Georgia,"Times New Roman",serif;
  font-size: clamp(1.65rem,2.7vw,2.35rem);
  font-weight: 500;
}

.crew-id-live-badge {
  color: #95691b;
  background: #f8ebcc;
}

#crew-id-module-overview {
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
  margin: -1px 0 0;
  padding: 22px 30px 30px;
  border: 1px solid var(--crew-id-line);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background: rgba(255,255,255,.97);
}

.crew-id-module-card {
  min-height: 156px;
  padding: 22px;
  display: grid;
  grid-template-columns: 46px minmax(0,1fr) auto;
  grid-template-rows: auto auto auto;
  column-gap: 14px;
  border-radius: 14px;
  box-shadow: none;
}

.crew-id-module-card:hover,
.crew-id-module-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(5,31,54,.08);
}

.crew-id-module-card .crew-module-icon {
  width: 44px;
  height: 44px;
  grid-column: 1;
  grid-row: 1 / span 3;
  margin: 0;
  border-radius: 11px;
  font-size: 1.05rem;
}

.crew-id-module-card small,
.crew-id-module-card h3,
.crew-id-module-card p {
  grid-column: 2;
}

.crew-id-module-card small {
  align-self: end;
}

.crew-id-module-card h3 {
  margin: 5px 0 6px;
  font-size: .97rem;
}

.crew-id-module-card p {
  min-height: 0;
  font-size: .69rem;
}

.crew-id-module-card em {
  width: 30px;
  grid-column: 3;
  grid-row: 1 / span 3;
  align-self: center;
  margin: 0;
  overflow: hidden;
  color: transparent;
  font-size: 0;
}

.crew-id-module-card em::after {
  content: "→";
  color: #b9852e;
  font-size: 1rem;
}

.crew-id-hub > [data-crew-module] {
  padding: 30px;
  border: 1px solid var(--crew-id-line);
  border-radius: 18px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 18px 42px rgba(4,31,55,.07);
}

.crew-module-return {
  display: flex;
  margin: 0 0 14px;
}

.crew-module-back {
  display: inline-grid;
  grid-template-columns: 42px auto;
  align-items: center;
  gap: 11px;
  min-height: 54px;
  margin: 0;
  padding: 6px 16px 6px 7px;
  border: 1px solid rgba(9,37,65,.14);
  border-radius: 14px;
  color: var(--crew-id-navy-950);
  background: #fff;
  box-shadow: 0 8px 22px rgba(4,31,55,.08);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.crew-module-back:hover {
  border-color: rgba(185,133,46,.58);
  box-shadow: 0 10px 26px rgba(4,31,55,.13);
  transform: translateY(-1px);
}

.crew-module-back:focus-visible {
  outline: 3px solid rgba(211,166,76,.38);
  outline-offset: 3px;
}

.crew-module-back-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  color: var(--crew-id-navy-950);
  background: #f6d378;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.crew-module-back-copy {
  display: grid;
  gap: 1px;
}

.crew-module-back-copy small {
  color: #987127;
  font-size: .58rem;
  font-weight: 850;
  letter-spacing: .13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.crew-module-back-copy strong {
  color: var(--crew-id-navy-950);
  font-size: .82rem;
  font-weight: 850;
  line-height: 1.25;
}

html[dir="rtl"] .crew-module-back-icon {
  transform: scaleX(-1);
}

.crew-module-workspace-heading {
  padding: 26px;
  border-radius: 16px;
  color: white;
  background:
    radial-gradient(circle at 88% 16%, rgba(211,166,76,.22), transparent 20rem),
    linear-gradient(118deg,var(--crew-id-navy-950),#0b365d 70%,#344657);
}

.crew-module-workspace-heading h3 {
  color: white;
  font-family: Georgia,"Times New Roman",serif;
  font-size: clamp(1.8rem,3vw,2.7rem);
  font-weight: 500;
}

.crew-module-workspace-heading p {
  color: #c4d0da;
}

.crew-module-workspace-heading small {
  color: var(--crew-id-gold-500);
}

.crew-id-next-step {
  margin: 0;
}

html[dir="rtl"] .crew-id-module-card,
html[dir="rtl"] .crew-id-function-index button,
html[dir="rtl"] .crew-id-person,
html[dir="rtl"] .crew-id-identity-card dl > div {
  text-align: right;
}

html[dir="rtl"] .crew-id-module-card em::after,
html[dir="rtl"] .crew-id-function-index button > b {
  content: "←";
}

@media (max-width: 1320px) {
  .crew-id-hub {
    grid-template-columns: minmax(0,1fr) 300px;
  }

  .crew-id-identity-card > header,
  .crew-id-identity-card > footer,
  .crew-id-person,
  .crew-id-identity-card dl {
    margin-inline: 20px;
  }

  .crew-id-identity-card > footer {
    margin: 0;
  }
}

@media (max-width: 1120px) {
  .crew-dashboard-shell {
    grid-template-columns: 220px minmax(0,1fr);
  }

  .crew-sidebar {
    padding-inline: 18px;
  }

  .crew-dashboard-workspace {
    padding-inline: 24px;
  }

  .crew-id-hub {
    grid-template-columns: 1fr;
  }

  .crew-id-identity-rail {
    position: static;
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: minmax(260px,.8fr) minmax(300px,1.2fr);
  }

  .crew-id-workspace-picker,
  #crew-id-module-overview,
  .crew-id-hub > [data-crew-module],
  .crew-id-next-step {
    grid-column: 1;
  }
}

@media (max-width: 820px) {
  .crew-dashboard-shell {
    grid-template-columns: 76px minmax(0,1fr);
  }

  .crew-sidebar-language {
    display: none;
  }

  body.crew-dashboard-active .dashboard-nav::before,
  body.crew-dashboard-active .dashboard-nav a[data-crew-target="crew-id"]::after {
    display: none;
  }

  .crew-dashboard-workspace {
    padding-inline: 18px;
  }

  .crew-id-hub-hero {
    min-height: 190px;
  }

  .crew-id-connected-count {
    width: 120px;
    height: 120px;
  }

  .crew-id-identity-rail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .crew-dashboard-shell {
    display: block;
  }

  .crew-sidebar {
    position: sticky;
    top: 0;
    z-index: 60;
    width: 100%;
    height: auto;
    min-height: 68px;
    padding: 10px 12px;
  }

  .crew-sidebar-brand,
  .crew-sidebar-protection {
    display: none;
  }

  body.crew-dashboard-active .dashboard-nav {
    display: flex;
    gap: 5px;
    overflow-x: auto;
  }

  body.crew-dashboard-active .dashboard-nav a {
    min-width: 48px;
    min-height: 48px;
    display: grid;
    grid-template-columns: 1fr;
    padding: 0 9px;
    font-size: 0;
  }

  body.crew-dashboard-active .dashboard-nav a > span {
    margin: auto;
  }

  .crew-dashboard-workspace {
    padding: 0 12px 52px;
  }

  .crew-dashboard-active .dashboard-heading {
    align-items: center;
  }

  .dashboard-crew-id-title .eyebrow,
  .dashboard-crew-id-title .muted,
  .dashboard[data-active-section="crew-id"] .dashboard-actions .crew-header-language,
  .dashboard[data-active-section="crew-id"] .dashboard-actions #admin-review-link {
    display: none;
  }

  .dashboard-crew-id-title h1 {
    font-size: 1.45rem;
  }

  .crew-id-hub {
    padding-top: 12px;
    gap: 14px;
  }

  .crew-id-hub-hero {
    min-height: 0;
    padding: 26px 22px;
  }

  .crew-id-hub-hero h2 {
    font-size: 2rem;
  }

  .crew-id-connected-count {
    display: none;
  }

  .crew-id-workspace-picker {
    padding: 24px 20px 0;
  }

  .crew-id-workspace-picker .muted {
    display: none;
  }

  #crew-id-module-overview {
    grid-template-columns: 1fr;
    padding: 18px 20px 22px;
  }

  .crew-id-module-card {
    min-height: 132px;
    padding: 18px;
  }

  .crew-id-hub > [data-crew-module] {
    padding: 16px;
  }

  .crew-module-return {
    margin-bottom: 10px;
  }

  .crew-module-back {
    width: 100%;
  }

  .crew-module-workspace-heading {
    padding: 22px 18px;
  }

  .crew-module-workspace-heading > div {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .crew-id-module-card {
    transition: none;
  }
}

/* crew-mobile-v1.css */
:root {
  --crew-mobile-navy: #061b2d;
  --crew-mobile-navy-2: #0a2744;
  --crew-mobile-gold: #d4a64f;
  --crew-mobile-surface: rgba(255, 255, 255, .97);
  --crew-mobile-border: rgba(9, 37, 65, .11);
  --crew-mobile-nav-height: 68px;
}

.crew-mobile-topbar,
.crew-mobile-bottom-nav,
.crew-mobile-more-sheet,
.crew-mobile-install-nudge,
.crew-mobile-install-guide {
  display: none;
}

@media (max-width: 767px) {
  html {
    scroll-padding-top: calc(66px + env(safe-area-inset-top));
  }

  body.crew-dashboard-active {
    min-height: 100dvh;
    padding-bottom: calc(var(--crew-mobile-nav-height) + env(safe-area-inset-bottom));
    overscroll-behavior-y: contain;
    -webkit-tap-highlight-color: transparent;
  }

  body.crew-dashboard-active main {
    min-height: 100dvh;
  }

  body.crew-dashboard-active .crew-dashboard-shell {
    display: block !important;
    min-height: 100dvh;
  }

  body.crew-dashboard-active .crew-sidebar {
    display: none !important;
  }

  body.crew-dashboard-active .crew-dashboard-workspace {
    width: 100%;
    max-width: none;
    padding: 14px 12px calc(30px + var(--crew-mobile-nav-height) + env(safe-area-inset-bottom));
  }

  .crew-mobile-topbar {
    position: sticky;
    z-index: 85;
    top: 0;
    width: 100%;
    min-height: calc(58px + env(safe-area-inset-top));
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: end;
    gap: 8px;
    padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
    color: #fff;
    background: rgba(6, 27, 45, .96);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 8px 28px rgba(3, 16, 28, .13);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .crew-mobile-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    text-decoration: none;
  }

  .crew-mobile-brand-mark {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(212, 166, 79, .72);
    border-radius: 11px;
    color: #f2d895;
    background: linear-gradient(145deg, rgba(212, 166, 79, .18), rgba(255, 255, 255, .04));
    font-weight: 900;
    letter-spacing: .04em;
  }

  .crew-mobile-brand-copy {
    min-width: 0;
    display: grid;
    line-height: 1.05;
  }

  .crew-mobile-brand-copy strong {
    font-size: .88rem;
    letter-spacing: .08em;
  }

  .crew-mobile-brand-copy small {
    margin-top: 3px;
    overflow: hidden;
    color: rgba(255, 255, 255, .64);
    font-size: .6rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .crew-mobile-network-state {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    color: rgba(255, 255, 255, .78);
    background: rgba(255, 255, 255, .06);
    font-size: .62rem;
    font-weight: 750;
  }

  .crew-mobile-network-state::before {
    width: 7px;
    height: 7px;
    content: "";
    border-radius: 50%;
    background: #66c694;
    box-shadow: 0 0 0 3px rgba(102, 198, 148, .12);
  }

  .crew-mobile-network-state.is-offline::before {
    background: #d8a84f;
    box-shadow: 0 0 0 3px rgba(216, 168, 79, .12);
  }

  .crew-mobile-more-button {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 11px;
    color: #fff;
    background: rgba(255, 255, 255, .06);
    font: inherit;
    font-size: 1.1rem;
  }

  body.crew-dashboard-active .dashboard-heading {
    min-height: 0;
    margin: 2px 0 14px;
    padding: 10px 4px 2px;
    align-items: flex-start;
    gap: 8px;
  }

  body.crew-dashboard-active .dashboard-heading h1 {
    font-size: clamp(1.55rem, 7vw, 2.1rem);
  }

  body.crew-dashboard-active .dashboard-heading .muted {
    font-size: .78rem;
    line-height: 1.45;
  }

  body.crew-dashboard-active .dashboard-actions {
    display: none !important;
  }

  body.crew-dashboard-active [data-crew-panel] {
    scroll-margin-top: calc(72px + env(safe-area-inset-top));
  }

  body.crew-dashboard-active .readiness-card,
  body.crew-dashboard-active .editor-card,
  body.crew-dashboard-active .profile-card,
  body.crew-dashboard-active .career-readiness-card,
  body.crew-dashboard-active .experience-card,
  body.crew-dashboard-active .compliance-card,
  body.crew-dashboard-active .access-card,
  body.crew-dashboard-active .crew-id-hub-hero,
  body.crew-dashboard-active .crew-module-card-surface {
    border-radius: 18px;
  }

  body.crew-dashboard-active .readiness-card,
  body.crew-dashboard-active .editor-card,
  body.crew-dashboard-active .profile-card,
  body.crew-dashboard-active .career-readiness-card,
  body.crew-dashboard-active .experience-card,
  body.crew-dashboard-active .compliance-card,
  body.crew-dashboard-active .access-card {
    padding: 18px;
  }

  body.crew-dashboard-active .section-heading {
    gap: 10px;
  }

  body.crew-dashboard-active .section-heading h2 {
    font-size: 1.28rem;
  }

  body.crew-dashboard-active .readiness-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  body.crew-dashboard-active .readiness-metric {
    min-width: 0;
    padding: 14px;
  }

  body.crew-dashboard-active .readiness-metric strong {
    font-size: 1.18rem;
  }

  body.crew-dashboard-active .next-action-card {
    gap: 14px;
    padding: 16px;
    border-radius: 15px;
  }

  body.crew-dashboard-active .next-action-card .button {
    width: 100%;
    min-height: 48px;
  }

  body.crew-dashboard-active input,
  body.crew-dashboard-active select,
  body.crew-dashboard-active textarea,
  #login-view input,
  #login-view select,
  #login-view textarea {
    min-height: 48px;
    font-size: 16px !important;
  }

  body.crew-dashboard-active textarea {
    min-height: 118px;
  }

  body.crew-dashboard-active .button,
  body.crew-dashboard-active button,
  body.crew-dashboard-active a.button {
    min-height: 46px;
    touch-action: manipulation;
  }

  body.crew-dashboard-active .crew-id-module-card {
    min-height: 0;
    padding: 20px;
    border-radius: 17px;
  }

  body.crew-dashboard-active .crew-id-module-grid {
    gap: 10px;
  }

  body.crew-dashboard-active .crew-id-identity-card,
  body.crew-dashboard-active .crew-id-connected-count,
  body.crew-dashboard-active .crew-id-function-index {
    max-width: 100%;
  }

  body.crew-dashboard-active .crew-messenger,
  body.crew-dashboard-active .crew-notebook-layout {
    min-width: 0;
  }

  body.crew-dashboard-active .crew-conversation-active {
    min-height: min(62dvh, 560px);
  }

  .crew-mobile-bottom-nav {
    position: fixed;
    z-index: 100;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    left: 8px;
    min-height: var(--crew-mobile-nav-height);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 20px;
    background: rgba(6, 27, 45, .96);
    box-shadow: 0 18px 42px rgba(3, 16, 28, .28);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .crew-mobile-bottom-nav :is(a, button) {
    min-width: 0;
    min-height: 56px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    border-radius: 15px;
    color: rgba(255, 255, 255, .65);
    text-decoration: none;
    font-size: .58rem;
    font-weight: 750;
    letter-spacing: .01em;
    touch-action: manipulation;
  }

  .crew-mobile-bottom-nav :is(a, button) > span {
    font-size: 1.15rem;
    line-height: 1;
  }

  .crew-mobile-bottom-nav :is(a, button)[aria-current="page"],
  .crew-mobile-bottom-nav :is(a, button).is-active {
    color: #fff;
    background: linear-gradient(145deg, rgba(212, 166, 79, .2), rgba(255, 255, 255, .07));
    box-shadow: inset 0 0 0 1px rgba(212, 166, 79, .24);
  }

  .crew-mobile-bottom-nav :is(a, button)[aria-current="page"] > span,
  .crew-mobile-bottom-nav :is(a, button).is-active > span {
    color: #f0cf82;
  }

  .crew-mobile-more-sheet {
    width: min(calc(100% - 20px), 460px);
    max-height: min(80dvh, 700px);
    margin: auto auto 0;
    padding: 0;
    border: 0;
    border-radius: 24px 24px 0 0;
    color: #0a2744;
    background: #fff;
    box-shadow: 0 -18px 60px rgba(3, 16, 28, .25);
  }

  .crew-mobile-more-sheet[open] {
    display: block;
  }

  .crew-mobile-more-sheet::backdrop {
    background: rgba(3, 16, 28, .55);
    backdrop-filter: blur(4px);
  }

  .crew-mobile-sheet-handle {
    width: 42px;
    height: 4px;
    margin: 9px auto 4px;
    border-radius: 999px;
    background: #d7dde3;
  }

  .crew-mobile-sheet-content {
    max-height: calc(80dvh - 13px);
    overflow-y: auto;
    padding: 10px 16px calc(22px + env(safe-area-inset-bottom));
  }

  .crew-mobile-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 2px 12px;
  }

  .crew-mobile-sheet-header h2 {
    margin: 0;
    font-size: 1.25rem;
  }

  .crew-mobile-sheet-close {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: #0a2744;
    background: #eef2f5;
    font-size: 1.35rem;
  }

  .crew-mobile-sheet-links {
    display: grid;
    gap: 7px;
  }

  .crew-mobile-sheet-links a,
  .crew-mobile-sheet-links button {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 14px;
    border: 1px solid var(--crew-mobile-border);
    border-radius: 14px;
    color: #0a2744;
    background: #f8fafb;
    text-align: left;
    text-decoration: none;
    font: inherit;
    font-size: .84rem;
    font-weight: 750;
  }

  .crew-mobile-sheet-links a::after {
    content: "›";
    color: #8a621d;
    font-size: 1.3rem;
  }

  .crew-mobile-sheet-links button.is-install {
    color: #fff;
    border-color: #0a2744;
    background: #0a2744;
  }

  .crew-mobile-sheet-links button.is-danger {
    color: #8e3030;
    background: #fff7f7;
  }

  .crew-mobile-install-nudge {
    position: fixed;
    z-index: 96;
    right: 12px;
    bottom: calc(var(--crew-mobile-nav-height) + 20px + env(safe-area-inset-bottom));
    left: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 13px 14px;
    border: 1px solid rgba(212, 166, 79, .34);
    border-radius: 16px;
    color: #fff;
    background: rgba(10, 39, 68, .97);
    box-shadow: 0 16px 38px rgba(3, 16, 28, .25);
  }

  .crew-mobile-install-nudge[hidden] {
    display: none;
  }

  .crew-mobile-install-nudge strong,
  .crew-mobile-install-nudge small {
    display: block;
  }

  .crew-mobile-install-nudge small {
    margin-top: 3px;
    color: rgba(255, 255, 255, .66);
    line-height: 1.35;
  }

  .crew-mobile-install-nudge button {
    min-height: 42px;
    border: 1px solid rgba(212, 166, 79, .5);
    border-radius: 12px;
    color: #0a2744;
    background: #f0cf82;
    font-weight: 800;
  }


  .crew-mobile-install-guide {
    width: min(calc(100% - 24px), 430px);
    max-height: min(86dvh, 720px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 24px;
    color: #0a2744;
    background: #fff;
    box-shadow: 0 24px 70px rgba(3, 16, 28, .34);
  }

  .crew-mobile-install-guide[open] {
    display: block;
  }

  .crew-mobile-install-guide::backdrop {
    background: rgba(3, 16, 28, .58);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }

  .crew-mobile-install-guide-card {
    max-height: min(86dvh, 720px);
    overflow-y: auto;
    padding: 22px 18px calc(18px + env(safe-area-inset-bottom));
  }

  .crew-mobile-install-guide-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
  }

  .crew-mobile-install-guide-kicker {
    display: block;
    margin-bottom: 6px;
    color: #9a6b20;
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .18em;
  }

  .crew-mobile-install-guide h2 {
    margin: 0;
    color: #061b2d;
    font-size: 1.45rem;
    line-height: 1.1;
  }

  .crew-mobile-install-guide-header p {
    margin: 7px 0 0;
    color: #667587;
    font-size: .82rem;
  }

  .crew-mobile-install-guide-close {
    width: 42px;
    height: 42px;
    min-height: 42px !important;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #0a2744;
    background: #eef2f5;
    font-size: 1.45rem;
    line-height: 1;
  }

  .crew-mobile-install-steps {
    display: grid;
    gap: 10px;
    margin: 20px 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
  }

  .crew-mobile-install-step {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 13px;
    border: 1px solid var(--crew-mobile-border);
    border-radius: 15px;
    background: #f8fafb;
  }

  .crew-mobile-install-step-number {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #0a2744;
    background: #f4dfaa;
    font-weight: 900;
  }

  .crew-mobile-install-step strong,
  .crew-mobile-install-step small {
    display: block;
  }

  .crew-mobile-install-step strong {
    color: #0a2744;
    font-size: .9rem;
  }

  .crew-mobile-install-step small {
    margin-top: 4px;
    color: #667587;
    font-size: .76rem;
    line-height: 1.42;
  }

  .crew-mobile-install-guide-done {
    width: 100%;
    min-height: 50px !important;
    border: 1px solid #0a2744;
    border-radius: 14px;
    color: #fff;
    background: #0a2744;
    font-weight: 850;
  }

  .capture-dialog {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: #061b2d;
  }

  .capture-panel {
    width: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: calc(14px + env(safe-area-inset-top)) 14px calc(14px + env(safe-area-inset-bottom));
    border-radius: 0;
  }

  .capture-header {
    flex: 0 0 auto;
  }

  .camera-stage {
    min-height: 0;
    flex: 1 1 auto;
    aspect-ratio: auto;
    border-radius: 16px;
  }

  .camera-stage video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .capture-controls {
    flex: 0 0 auto;
    gap: 8px;
    padding-bottom: 2px;
  }

  .capture-controls .button {
    min-height: 54px;
  }
}

@media (max-width: 480px) {
  body.crew-dashboard-active .crew-dashboard-workspace {
    padding-inline: 10px;
  }

  body.crew-dashboard-active .readiness-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .crew-mobile-network-state {
    width: 12px;
    min-height: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 0;
  }

  .crew-mobile-network-state::before {
    width: 9px;
    height: 9px;
  }

  .crew-mobile-brand-copy small {
    max-width: 150px;
  }
}

@media (max-width: 370px) {
  body.crew-dashboard-active .readiness-metrics {
    grid-template-columns: 1fr;
  }

  .crew-mobile-bottom-nav :is(a, button) {
    font-size: .54rem;
  }
}

@media (display-mode: standalone) and (max-width: 767px) {
  .crew-mobile-install-nudge,
  #crew-mobile-install {
    display: none !important;
  }
}

/* B1: navigation controls and safe space for the existing help widget. */
@media (max-width: 767px) {
  body:not(.crew-dashboard-active) .crew-mobile-bottom-nav { display: none; }
  .crew-mobile-bottom-nav button { border: 0; background: transparent; font-family: inherit; cursor: pointer; }
  .crew-mobile-bottom-nav :is(a, button) { font-size: .65rem; overflow-wrap: anywhere; }
  .crew-mobile-bottom-nav :is(a, button):focus-visible,
  .crew-mobile-sheet-links :is(a, button, select):focus-visible { outline: 3px solid #d4a64f; outline-offset: 2px; }
  body .crew-mobile-sheet-links .crew-nav-group { display: block; margin: 8px 0 0; color: #536b80; font-size: .72rem; font-weight: 800; }
  .crew-mobile-sheet-links a[aria-current="page"] { border-color: #b7872d; background: #fff5df; }
  .crew-mobile-sheet-links a { overflow-wrap: anywhere; }
  .crew-mobile-sheet-field { display: grid; gap: 6px; min-width: 0; font-weight: 700; }
  .crew-mobile-sheet-field select { width: 100%; min-width: 0; max-width: 100%; color: #0a2744; background: #fff; }
  .crew-mobile-sheet-header { position: sticky; top: -10px; background: #fff; z-index: 1; }
  body.crew-dashboard-active .sigvora-support-widget { bottom: calc(var(--crew-mobile-nav-height) + 24px + env(safe-area-inset-bottom)); }
}

/* crew-home-action-center-v1.css */
/* SIGVORA Crew Home Action Center
   A calm, task-led overview layered on the existing Crew workspace. */

:root {
  --crew-home-navy: #071f36;
  --crew-home-navy-2: #0d3859;
  --crew-home-gold: #c99a3d;
  --crew-home-gold-soft: #f8ebc9;
  --crew-home-ink: #0a2744;
  --crew-home-muted: #687d90;
  --crew-home-border: #dce5eb;
  --crew-home-surface: #ffffff;
  --crew-home-background: #f2f5f7;
}

.crew-dashboard-active .crew-dashboard-shell {
  grid-template-columns: 250px minmax(0, 1fr);
}

.crew-dashboard-active .crew-sidebar {
  padding: 24px 17px 18px;
}

.crew-dashboard-active .crew-sidebar-id {
  margin: 22px 0 15px;
  padding: 12px 13px;
}

.crew-nav-group {
  display: block;
  margin: 11px 11px 3px;
  color: #73879b;
  font-size: .54rem;
  font-weight: 850;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.crew-dashboard-active .dashboard-nav .crew-nav-group:first-child {
  margin-top: 0;
}

body.crew-dashboard-active .dashboard-nav {
  gap: 2px;
}

body.crew-dashboard-active .dashboard-nav a {
  min-height: 38px;
  grid-template-columns: 27px minmax(0, 1fr);
  padding: 0 10px;
  font-size: .7rem;
}

body.crew-dashboard-active .dashboard-nav a > span {
  width: 26px;
  height: 26px;
}

.crew-sidebar-account {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 13px;
  background: rgba(255, 255, 255, .055);
}

.crew-sidebar-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--crew-home-navy);
  background: linear-gradient(145deg, #efd789, #c8993e);
  font-size: .72rem;
  font-weight: 900;
}

.crew-sidebar-account-copy,
.crew-sidebar-account-copy strong,
.crew-sidebar-account-copy small {
  min-width: 0;
  display: block;
}

.crew-sidebar-account-copy strong {
  overflow: hidden;
  color: #fff;
  font-size: .69rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crew-sidebar-account-copy small {
  margin-top: 3px;
  color: #8fa3b7;
  font-size: .55rem;
}

.crew-sidebar-signout {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 9px;
  color: #d9e2ea;
  background: rgba(255, 255, 255, .04);
  cursor: pointer;
  font: inherit;
}

.crew-sidebar-signout:hover,
.crew-sidebar-signout:focus-visible {
  color: #fff;
  border-color: rgba(224, 180, 87, .5);
  outline: none;
}

.crew-dashboard-active .crew-sidebar-protection {
  margin-top: 14px;
  padding-top: 13px;
}

.crew-dashboard-active .crew-sidebar-protection img {
  width: 150px;
  height: 200px;
}

.crew-dashboard-active .crew-dashboard-workspace {
  width: min(1440px, 100%);
  padding: 28px clamp(24px, 3.4vw, 52px) 70px;
}

.crew-dashboard-active .dashboard-heading {
  min-height: 78px;
  margin-bottom: 20px;
  padding-bottom: 17px;
}

.crew-dashboard-active .dashboard-heading h1 {
  margin: 4px 0;
  font-size: clamp(1.75rem, 2.5vw, 2.45rem);
}

.crew-role-list-accessible {
  position: absolute;
  width: 1px !important;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.crew-workspace-picker {
  min-width: 195px;
  display: grid;
  gap: 4px;
}

.crew-workspace-picker > span {
  color: #718497;
  font-size: .52rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.crew-workspace-picker select {
  min-height: 42px;
  padding: 0 36px 0 13px;
  border: 1px solid #d4dee5;
  border-radius: 12px;
  color: var(--crew-home-ink);
  background-color: #fff;
  font: inherit;
  font-size: .72rem;
  font-weight: 750;
}

.crew-dashboard-active .crew-home {
  min-height: 0;
  padding: 0;
}

.crew-home-priority {
  min-height: 194px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  padding: clamp(27px, 3.8vw, 45px);
  overflow: hidden;
  border-radius: 21px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 0, rgba(238, 205, 126, .18), transparent 31%),
    linear-gradient(118deg, #061b2e, #0a3556 72%, #31566d);
  box-shadow: 0 18px 42px rgba(5, 31, 52, .13);
}

.crew-home-priority .eyebrow {
  margin: 0 0 10px;
  color: #e0b457;
}

.crew-home-priority h2 {
  margin: 0;
  color: #b9c9d5;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .03em;
}

.crew-home-priority-copy > strong {
  display: block;
  max-width: 880px;
  margin-top: 8px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 3.1vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -.028em;
}

.crew-home-priority-copy > p:last-child {
  max-width: 780px;
  margin: 13px 0 0;
  color: #c5d2dc;
  font-size: .8rem;
  line-height: 1.6;
}

.crew-home-priority-button {
  min-width: 178px;
  min-height: 49px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid #e0bd6a;
  border-radius: 13px;
  color: #061b2e;
  background: linear-gradient(145deg, #f2d683, #d1a445);
  box-shadow: 0 10px 25px rgba(3, 17, 29, .22);
  font-size: .74rem;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}

.crew-home-priority-button:hover,
.crew-home-priority-button:focus-visible {
  color: #061b2e;
  background: #f6df9a;
  outline: 3px solid rgba(242, 214, 131, .25);
}

.crew-home-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--crew-home-border);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 9px 28px rgba(5, 31, 52, .045);
}

.crew-home-status .readiness-center-metric {
  min-height: 138px;
  padding: 20px 23px;
  border: 0;
  border-right: 1px solid var(--crew-home-border);
  border-radius: 0;
  box-shadow: none;
}

.crew-home-status .readiness-center-metric:last-child {
  border-right: 0;
}

.crew-home-status .readiness-center-metric > strong {
  margin: 9px 0 8px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.55rem;
  letter-spacing: -.03em;
}

.crew-home-status .readiness-center-clearance > strong {
  color: #aa4040;
  font-size: 1.35rem;
}

.crew-home-status .readiness-clearance-approved > strong {
  color: #24724d;
}

.crew-home-status .readiness-center-metric > small {
  font-size: .64rem;
}

.crew-home-status .progress-track {
  height: 5px;
  margin-bottom: 8px;
}

.crew-home-status .readiness-review-count {
  margin-top: 9px;
  padding-top: 8px;
}

.crew-home-status .readiness-center-clearance em {
  margin-top: 9px;
  font-size: .57rem;
}

.crew-home-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .72fr);
  gap: 16px;
  margin-top: 16px;
}

.crew-action-center,
.crew-quick-actions {
  padding: 23px;
  border: 1px solid var(--crew-home-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(5, 31, 52, .045);
}

.crew-home-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.crew-home-section-heading .eyebrow {
  margin: 0 0 5px;
}

.crew-home-section-heading h3 {
  margin: 0;
  color: var(--crew-home-ink);
  font-size: 1.12rem;
}

.crew-home-section-heading > a {
  color: #8e641d;
  font-size: .65rem;
  font-weight: 800;
  text-decoration: none;
}

.crew-action-list {
  display: grid;
  gap: 8px;
}

.crew-action-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border: 1px solid #e2e9ee;
  border-radius: 13px;
  color: var(--crew-home-ink);
  background: #fafcfd;
  text-decoration: none;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.crew-action-item:hover,
.crew-action-item:focus-visible {
  border-color: #cba653;
  background: #fff;
  outline: none;
  transform: translateY(-1px);
}

.crew-action-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #684a17;
  background: var(--crew-home-gold-soft);
  font-size: 1rem;
  font-weight: 900;
}

.crew-action-copy,
.crew-action-copy small,
.crew-action-copy strong,
.crew-action-copy em {
  min-width: 0;
  display: block;
}

.crew-action-copy small {
  color: #8c631c;
  font-size: .55rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.crew-action-copy strong {
  margin-top: 4px;
  overflow: hidden;
  font-size: .77rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crew-action-copy em {
  margin-top: 4px;
  overflow: hidden;
  color: var(--crew-home-muted);
  font-size: .61rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crew-action-status {
  padding: 6px 8px;
  border-radius: 999px;
  color: #875b13;
  background: #fff0ce;
  font-size: .55rem;
  font-weight: 850;
  white-space: nowrap;
}

.crew-action-status.is-ready {
  color: #246144;
  background: #dff2e7;
}

.crew-action-status.is-pending {
  color: #785817;
  background: #fff0ce;
}

.crew-action-arrow {
  color: #8395a5;
  font-size: 1.2rem;
}

.crew-quick-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.crew-quick-action-grid button {
  min-height: 84px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 13px;
  border: 1px solid #e0e8ed;
  border-radius: 13px;
  color: var(--crew-home-ink);
  background: #f8fafb;
  cursor: pointer;
  font: inherit;
  font-size: .65rem;
  font-weight: 780;
  line-height: 1.25;
  text-align: left;
}

.crew-quick-action-grid button > span {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #705019;
  background: var(--crew-home-gold-soft);
  font-size: .85rem;
}

.crew-quick-action-grid button:hover,
.crew-quick-action-grid button:focus-visible {
  border-color: #cba653;
  background: #fff;
  outline: none;
}

.crew-home-trust-note {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid #dce5eb;
  border-radius: 13px;
  color: #5f7385;
  background: #f7f9fa;
}

.crew-home-trust-note > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #376e55;
  background: #e3f0e9;
  font-size: .72rem;
  font-weight: 900;
}

.crew-home-trust-note p {
  margin: 0;
  font-size: .65rem;
  line-height: 1.45;
}

.crew-home-trust-note p strong {
  margin-right: 5px;
  color: var(--crew-home-ink);
}

.crew-home-trust-note small {
  font-size: .58rem;
  white-space: nowrap;
}

.crew-home > .crew-value-center {
  margin-top: 16px;
}

@media (max-width: 1180px) {
  .crew-dashboard-active .crew-dashboard-shell {
    grid-template-columns: 214px minmax(0, 1fr);
  }

  .crew-dashboard-active .crew-sidebar {
    padding-inline: 13px;
  }

  .crew-nav-group {
    margin-inline: 9px;
  }

  .crew-home-workspace-grid {
    grid-template-columns: 1fr;
  }

  .crew-quick-action-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 940px) {
  .crew-home-priority {
    grid-template-columns: 1fr;
  }

  .crew-home-priority-button {
    width: max-content;
  }

  .crew-home-status {
    grid-template-columns: 1fr;
  }

  .crew-home-status .readiness-center-metric {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--crew-home-border);
  }

  .crew-home-status .readiness-center-metric:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 820px) {
  .crew-dashboard-active .crew-sidebar-account,
  .crew-dashboard-active .crew-nav-group {
    display: none;
  }

  .crew-dashboard-active .crew-dashboard-workspace {
    padding: 14px 12px calc(30px + var(--crew-mobile-nav-height) + env(safe-area-inset-bottom));
  }

  .crew-home-priority {
    min-height: 0;
    gap: 22px;
    padding: 25px 20px;
    border-radius: 18px;
  }

  .crew-home-priority-copy > strong {
    font-size: clamp(1.65rem, 8vw, 2.25rem);
  }

  .crew-home-priority-button {
    width: 100%;
  }

  .crew-home-workspace-grid {
    grid-template-columns: 1fr;
  }

  .crew-home > .crew-value-center {
    padding: 20px;
  }
}

@media (max-width: 620px) {
  .crew-home-status .readiness-center-metric,
  .crew-action-center,
  .crew-quick-actions {
    padding: 18px;
  }

  .crew-action-item {
    grid-template-columns: 36px minmax(0, 1fr) 14px;
  }

  .crew-action-status {
    grid-column: 2 / 3;
    width: max-content;
  }

  .crew-action-arrow {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .crew-action-copy strong,
  .crew-action-copy em {
    white-space: normal;
  }

  .crew-quick-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crew-home-trust-note {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .crew-home-trust-note small {
    grid-column: 2;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .crew-action-item {
    transition: none;
  }
}

/* crew-signout-label-v1.css */
/* Logout-Symbol (Tuer mit Pfeil), Button bleibt quadratisch (2026-10-02, v3) */
.crew-sidebar-signout .crew-signout-icon { display: block; }

/* crew-ui-cleanup-v1.css */
/* B2: product-status details are shown only in the authenticated admin view. */
body:not(.crew-admin-view) [data-crew-admin-only],
body.crew-admin-view [data-crew-normal-only] { display: none !important; }
.crew-login-sign-in-link { margin: 8px 0; font-size: .8rem; line-height: 1.5; }
.crew-login-sign-in-link a { color: inherit; text-underline-offset: 3px; }
.crew-login-sign-in-link a:focus-visible { outline: 2px solid #b7872d; outline-offset: 3px; }

/* crew-progress-v1.css */
/* One ordered progress display and one actionable recommendation. */
.crew-progress { margin: 0 0 16px; padding: 22px; border: 1px solid var(--crew-home-border); border-radius: 18px; background: #fff; }
.crew-progress h2 { margin: 0; color: var(--crew-home-navy); font-size: 1.25rem; }
#crew-progress-scope { margin: 5px 0 16px; color: #526477; font-size: .8rem; }
#crew-progress-stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
#crew-progress-stages li { min-width: 0; display: flex; gap: 9px; padding-top: 12px; border-top: 6px solid #dce5eb; }
#crew-progress-stages li[aria-current="step"] { border-color: #c99a3d; }
#crew-progress-stages li[data-status="complete"] { border-color: #17634f; }
#crew-progress-stages li[data-status="optional"] { border-top-style: dashed; }
.crew-stage-number { flex: 0 0 24px; width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid #a9bac7; border-radius: 50%; color: #17344e; font-size: .75rem; }
#crew-progress-stages [aria-current="step"] .crew-stage-number { border-color: #916813; background: #fff3d3; font-weight: 800; }
#crew-progress-stages [data-status="complete"] .crew-stage-number { color: #fff; border-color: #17634f; background: #17634f; }
#crew-progress-stages strong { display: block; color: #0a2744; font-size: .86rem; overflow-wrap: anywhere; }
#crew-progress-stages small { display: block; margin-top: 5px; color: #526477; font-size: .74rem; line-height: 1.4; overflow-wrap: anywhere; }
.crew-home .crew-home-priority { min-height: 0; padding: 24px; gap: 20px; }
.crew-home-priority h3 { margin: 0 0 8px; color: #e0bd6a; font-size: .8rem; }
.crew-home .crew-home-priority-copy > strong { margin: 0; font-size: clamp(1.3rem, 2.1vw, 1.9rem); line-height: 1.2; }
.crew-home #next-action-copy { margin: 9px 0; color: #d6e1e8; font-size: .82rem; line-height: 1.45; }
#next-action-wait { margin: 0 0 12px; color: #fff0c8; font-size: .85rem; line-height: 1.4; }
#next-action-duration { display: block; color: #d6e1e8; font-size: .75rem; }
.crew-home-priority-button { max-width: 240px; overflow-wrap: anywhere; }
.compliance-item:focus, #next-action-link:focus-visible { outline: 3px solid #c99a3d; outline-offset: 3px; }
@media (max-width: 767px) {
  .crew-progress { margin-bottom: 12px; padding: 14px; border-radius: 14px; }
  .crew-progress h2 { font-size: 1.12rem; }
  #crew-progress-scope { margin: 3px 0 12px; font-size: .72rem; }
  #crew-progress-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  #crew-progress-stages li { gap: 7px; padding-top: 7px; border-top-width: 4px; }
  #crew-progress-stages strong { font-size: .75rem; }
  #crew-progress-stages small { margin-top: 3px; font-size: .69rem; }
  .crew-stage-number { flex-basis: 21px; width: 21px; height: 21px; }
  .crew-home .crew-home-priority { display: block; padding: 16px; border-radius: 14px; }
  .crew-home .crew-home-priority-copy > strong { font-size: 1.2rem; }
  .crew-home-priority h3 { font-size: .72rem; margin-bottom: 7px; }
  .crew-home #next-action-copy { margin: 8px 0; font-size: .75rem; }
  #next-action-wait { margin-bottom: 9px; font-size: .76rem; }
  .crew-home .crew-home-priority-button { width: 100%; max-width: none; min-height: 44px; margin-top: 12px; }
}
body.crew-dashboard-active #crew-overview.crew-home { padding: 0; border: 0; background: transparent; min-height: 0; }
@media (max-width: 767px) {
  body.crew-dashboard-active .dashboard[data-active-section="overview"] .dashboard-heading { padding-top: 6px; margin-bottom: 10px; }
  body.crew-dashboard-active .dashboard[data-active-section="overview"] .dashboard-heading h1 { font-size: 1.3rem; }
  body.crew-dashboard-active .dashboard[data-active-section="overview"] .dashboard-heading .muted { display: none; }
  #crew-overview .crew-home-priority-copy { min-width: 0; }
}
@media (max-width: 767px) {
  /* The existing install prompt must not cover the overview's one next step. */
  body.crew-dashboard-active:has(#dashboard-view[data-active-section="overview"]) .crew-mobile-install-nudge {
    position: static;
    margin: 0 12px calc(20px + var(--crew-mobile-nav-height) + env(safe-area-inset-bottom));
  }
}

/* crew-paket2.css */
.crew-desktop-more summary { padding: 12px 14px; color: #d6e1e8; cursor: pointer; font-size: .8rem; }
.crew-desktop-more summary:focus-visible { outline: 2px solid #d4a64f; }
.crew-more-items { padding-inline-start: 8px; }
.crew-category-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.crew-category-tabs[hidden] { display: none; }
.crew-category-tabs a { padding: 10px 14px; border: 1px solid #bdcbd6; border-radius: 10px; background: #fff; color: #0a2744; font-size: .8rem; text-decoration: none; }
.crew-category-tabs a[aria-current="page"] { border-color: #c99a3d; background: #fff1ce; font-weight: 750; }
.crew-category-tabs a:focus-visible { outline: 3px solid #c99a3d; outline-offset: 2px; }
.dashboard[data-active-module]:not([data-active-module=""]) .crew-id-hub-hero,
.dashboard[data-active-module]:not([data-active-module=""]) .crew-id-identity-rail { display: none; }
.dashboard[data-share-view="links"] #workspace-share-form,
.dashboard[data-share-view="links"] #crew-module-external-pass .crew-pass-id,
.dashboard[data-share-view="links"] #crew-module-external-pass .crew-pass-preview > .crew-module-card-heading { display: none; }
.dashboard[data-share-view="links"] #crew-module-external-pass .crew-module-split { grid-template-columns: minmax(0,1fr); }
.dashboard[data-share-view="packs"] #workspace-share-history { display: none; }
.dashboard[data-active-module="external-pass"] #crew-id-hub,
.dashboard[data-active-module="messages"] #crew-id-hub { grid-template-columns: minmax(0,1fr); }
@media (max-width:767px) {
  .crew-mobile-bottom-nav { grid-template-columns: repeat(6,minmax(0,1fr)); }
  .crew-mobile-bottom-nav :is(a,button) { min-width: 0; padding-inline: 2px; font-size: .52rem; letter-spacing: 0; overflow-wrap: normal; word-break: normal; }
  .crew-category-tabs a { padding: 10px 8px; font-size: .74rem; }
}

#crew-availability-form[hidden] { display: none !important; }
#crew-availability-form { margin-bottom: 24px; }

.profile-card :is(.status-badge, .profile-position, .position-badge, h2) { text-transform: none; }

/* crew-paket3.css */
.is-stage-locked { color: #718191 !important; background-color: #eef1f4 !important; }
.dashboard-nav .is-stage-locked { background-color: rgba(125,143,158,.12) !important; }
.crew-stage-lock-label { display:block; color:#657789; font-size:.66rem; font-weight:600; line-height:1.3; }
.crew-stage-lock-label[hidden] { display:none; }
.dashboard-nav .crew-stage-lock-label { color:#aebcc8; }
.crew-mobile-bottom-nav .crew-stage-lock-label { font-size:.42rem; }
.crew-mobile-bottom-nav .is-stage-locked { background-color:transparent !important; }
[data-status-tone="neutral"],.requirement-missing,.requirement-verification_pending,.requirement-action_required { color:#405569 !important; background:#edf1f4 !important; }
[data-status-tone="error"],.requirement-verification_failed,.requirement-expired { color:#a12e32 !important; background:#fff0f0 !important; }
.eligibility-result-hero.eligibility-not-qualified { background:linear-gradient(135deg,#354b5d,#647a8b); }
.crew-term-help{display:inline-flex;align-items:center;justify-content:center;width:24px;min-width:24px;height:24px;min-height:24px;max-height:24px;margin:0 0 0 6px;padding:0;border:1px solid #9baab8;border-radius:50%;background:#f6f8fa;color:#31475c;font-size:13px;font-weight:700;vertical-align:middle;cursor:pointer}
.crew-term-help:focus-visible{outline:3px solid #c5a767;outline-offset:3px}
#readiness-heading,#crew-id-hub-heading,#crew-module-external-pass h3,#document-readiness .eyebrow{display:inline}
.crew-term-explanation{position:fixed;z-index:10000;width:min(340px,calc(100vw - 24px));box-sizing:border-box;padding:14px 16px;border:1px solid #c5a767;border-radius:12px;background:#162c40;color:#fff;box-shadow:0 8px 28px #162c4033;font-size:14px;line-height:1.5}
.crew-term-explanation[hidden]{display:none}
.crew-empty-state{padding:18px;border:1px dashed #b9c5cf;border-radius:12px;color:#405569;background:#f7f9fa}
.crew-empty-state p{margin:0 0 12px;line-height:1.5;font-size:14px}
.crew-empty-state .button{max-width:100%;white-space:normal}
.crew-welcome{box-sizing:border-box;width:min(460px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:24px;border:1px solid #c5a767;border-radius:20px;color:#17334b;background:#f8fafb;box-shadow:0 20px 70px #142c4555;overflow-y:auto}
.crew-welcome::backdrop{background:#122b45bb}
.crew-welcome-top{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#627486;font-size:13px}
#crew-welcome-skip{padding:8px;border:0;background:none;color:#405569;text-decoration:underline;font:inherit;cursor:pointer}
.crew-welcome-picture svg{display:block;width:100%;height:auto;max-height:180px;margin:16px 0}
.crew-welcome h2{font-size:24px;line-height:1.25;margin:12px 0}
.crew-welcome p{font-size:16px;line-height:1.5;margin:0 0 24px}
.crew-welcome-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:12px}
.crew-welcome-actions .button{max-width:100%;white-space:normal}
.crew-welcome [hidden]{display:none}
@media(max-width:767px){.crew-welcome{padding:20px}.crew-welcome h2{font-size:22px}#profile-editor>.section-heading{flex-wrap:wrap}}

#crew-progress-stages li.is-stage-locked{background:transparent !important;border-top-color:#dce5eb}
#crew-progress-stages li.is-stage-locked strong,#crew-progress-stages li.is-stage-locked small{color:#718191}
#crew-progress-stages li.is-stage-locked .crew-stage-number{color:#718191;background:#edf1f4;border-color:#b9c5cf}
#crew-progress-stages .crew-stage-status[hidden]{display:none}
body.crew-dashboard-active button.crew-term-help{min-height:24px;height:24px;max-height:24px}
#crew-progress-stages .crew-stage-lock-label[hidden]{display:none}

/* crew-paket4.css */
[data-crew-panel][aria-busy="true"]{cursor:progress}

/* sigvora-light-only-v1.css */
/* One light appearance, independent of operating-system preferences. */
 :root,html {color-scheme:light !important;}
:root {--sigvora-white:var(--white,#fff);--sigvora-ink:var(--ink,#13243a);}
body {background:var(--sigvora-maritime-paper,var(--paper,#f4f6f7)) !important;}
body:has(#login-view:not(.hidden))::before {opacity:.12 !important;}
body:has(#login-view:not(.hidden))::after {background:linear-gradient(90deg,rgba(244,246,247,.85),rgba(244,246,247,.62)) !important;}
body:has(#login-view:not(.hidden)) :is(.brand,.brand strong,.intro-panel,.intro-panel h1,.intro-copy) {color:var(--sigvora-ink,#13243a) !important;}

.dashboard-nav a,.crew-more-items a,.crew-mobile-sheet-links a {word-break:normal;overflow-wrap:normal;white-space:normal;min-width:0;}
.dashboard-nav a {align-items:center;gap:.55rem;line-height:1.35;}
.dashboard-nav a > span[aria-hidden] {flex:none;}
.crew-stage-lock-label {white-space:normal;word-break:normal;overflow-wrap:normal;}
.crew-home-priority-actions {display:flex;flex-wrap:wrap;align-items:center;gap:.6rem;}
.crew-onboard-overview {margin-block:1.25rem;}
.crew-onboard-tiles {display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.75rem;}
.crew-onboard-tile,.crew-onboard-card {color:var(--ink,#13252f);background:var(--white,#fff);border:1px solid var(--line,#dce5e7);border-radius:var(--radius-md,18px);padding:1rem;}
.crew-onboard-tile {cursor:pointer;text-align:start;font:inherit;font-weight:600;}
.crew-onboard-tile:hover,.crew-onboard-tile:focus-visible {outline:2px solid var(--gold-400,#d7b56d);outline-offset:2px;}
.crew-onboard-card {margin-block:1rem;}
.crew-onboard-workspace [hidden] {display:none !important;}
.crew-onboard-card textarea {display:block;width:100%;min-height:5rem;max-width:100%;margin-block:.5rem;}
.crew-onboard-card button {margin:.3rem;white-space:normal;}
.crew-onboard-reminders {padding-inline-start:1.4rem;}
.crew-onboard-reminder {margin-block:.7rem;}
.crew-stage-help {width:min(32rem,calc(100vw - 2rem));color:var(--ink,#13252f);background:var(--white,#fff);border:1px solid var(--line,#dce5e7);border-radius:18px;padding:1.4rem;}
.crew-stage-help::backdrop {background:rgba(7,19,29,.35);}
.crew-stage-help :is(a,button) {display:inline-flex;margin:.35rem;padding:.65rem .9rem;white-space:normal;}
@media(max-width:640px){.crew-onboard-tiles{grid-template-columns:repeat(2,minmax(0,1fr));}.crew-onboard-tile {font-size:.9rem;padding:.8rem;}.crew-home-priority-actions{justify-content:flex-start;}}

/* Existing permanent dark surfaces follow the shared light palette too. */
body.support-app {background:var(--support-bg,var(--sigvora-maritime-paper)) !important;color:var(--support-ink);}
.support-channel-panel {background:var(--support-bg);color:var(--support-ink);}
.support-channel-panel :is(.support-eyebrow,strong,p:not(.support-eyebrow),.support-email),.support-privacy-note :is(strong,span) {color:var(--support-ink);}
.support-privacy-note {border-color:var(--support-line);background:var(--sigvora-white);}
.crew-home .crew-home-priority {background:var(--sigvora-white);color:var(--sigvora-ink);border:1px solid var(--sigvora-line);}
.crew-home-priority :is(h2,h3,.eyebrow),.crew-home .crew-home-priority-copy > :is(strong,p),.crew-home-priority :is(.crew-home-priority-wait,.crew-home-priority-duration) {color:var(--sigvora-ink);}

/* Keep the next action readable and stage labels out of the icon column. */
.crew-home :is(#next-action-wait,#next-action-copy,#next-action-duration) {color:var(--sigvora-ink) !important;}
body.crew-dashboard-active .dashboard-nav .crew-stage-lock-label {grid-column:2 / -1;justify-self:start;width:auto;max-width:none;color:var(--sigvora-muted) !important;white-space:normal;}
body.crew-dashboard-active .crew-sidebar,.crew-mobile-topbar,.crew-mobile-bottom-nav {background:var(--sigvora-white) !important;color:var(--sigvora-ink) !important;border-color:var(--sigvora-line);}
.crew-sidebar::before,.crew-sidebar::after {opacity:.04;}
.crew-sidebar :is(a,strong,p,small,summary),.crew-mobile-topbar :is(a,strong,p,small,button),.crew-mobile-bottom-nav :is(a,button,span) {color:var(--sigvora-ink) !important;}
body.crew-dashboard-active .dashboard-nav a {background:var(--sigvora-white) !important;color:var(--sigvora-ink) !important;border-color:var(--sigvora-line);padding-block:.35rem;}
body.crew-dashboard-active .dashboard-nav a[aria-current=page] {background:var(--sigvora-maritime-gold-100) !important;}
.crew-sidebar-account,.crew-sidebar-id {background:var(--sigvora-maritime-paper) !important;border-color:var(--sigvora-line);}

body.crew-dashboard-active .dashboard-nav,.crew-mobile-sheet-links {background:var(--sigvora-white) !important;}
