/**
 * Stage 3 â€” Career / Recruiters / Company lower / Tracker / Training / Account (#381)
 * Uses Stage 1 tokens. Does not restyle company premium hero (PR #376).
 */

/* â€”â€” Screen markers â€”â€” */
#view-career.mh-stage3-career,
#view-profile.mh-stage3-profile,
#view-applications.mh-stage3-applications,
#view-recruiters.mh-stage3-recruiters,
#view-recruiter-detail.mh-stage3-company,
#view-training.mh-stage3-training,
#view-training-detail.mh-stage3-training-detail,
#view-account.mh-stage3-account {
  --mj-stage3: 1;
}

/* Career hub (proof v2 curated product hub) */
#view-career.mh-stage3-career .mj-screen-head {
  margin-bottom: var(--mh-space-5);
}

#view-career.mh-stage3-career .mj-screen-title {
  font-size: var(--mh-type-screen, 1.62rem);
  font-weight: var(--mh-type-screen-weight, 800);
  letter-spacing: var(--mh-type-screen-tracking, -0.03em);
  line-height: var(--mh-type-screen-lh, 1.12);
}

#view-career.mh-stage3-career .mj-screen-sub {
  margin-top: 6px;
  max-width: 28rem;
  font-size: var(--mh-type-body);
  line-height: 1.45;
  color: var(--mh-text-secondary);
}

.mh-career-hub {
  display: grid;
  gap: 0;
  margin: 0 0 var(--mh-space-6);
}

#view-career.mh-stage3-career .mh-career-kicker {
  margin: 0 0 8px;
}

#view-career.mh-stage3-career .mj-career-card[data-career-tool="recruiters"] {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "icon body chevron";
  align-items: center;
  gap: 14px;
  margin: 0 0 var(--mh-space-5);
  min-height: var(--mh-tap-min, 44px);
  padding: 22px 16px 20px;
  border-radius: 20px;
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--mh-gold, var(--mh-accent)) 16%, transparent) 0%,
      transparent 42%
    ),
    var(--mh-card-surface, var(--mh-surface-elevated));
  border: 1px solid color-mix(in srgb, var(--mh-gold, var(--mh-accent)) 28%, var(--mh-border-subtle));
  box-shadow: var(--mh-depth-2-shadow);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

#view-career.mh-stage3-career .mj-career-card[data-career-tool="recruiters"]:active,
#view-career.mh-stage3-career .mj-career-card[data-career-tool="recruiters"]:focus-visible {
  border-color: color-mix(in srgb, var(--mh-gold, var(--mh-accent)) 45%, transparent);
  box-shadow: var(--mh-elev-low), 0 0 0 1px color-mix(in srgb, var(--mh-gold, var(--mh-accent)) 28%, transparent);
}

#view-career.mh-stage3-career .mj-career-card[data-career-tool="recruiters"]::before {
  content: "Featured";
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

#view-career.mh-stage3-career .mj-career-card[data-career-tool="recruiters"] .mh-career-tool__icon {
  grid-area: icon;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--mh-gold, var(--mh-accent)) 12%, var(--mh-surface-muted));
  color: var(--mh-gold-bright, var(--mh-accent));
  pointer-events: none;
}

#view-career.mh-stage3-career .mj-career-card[data-career-tool="recruiters"] .mj-career-card__body {
  grid-area: body;
  pointer-events: none;
}

#view-career.mh-stage3-career .mj-career-card[data-career-tool="recruiters"] .mj-career-card__title {
  margin: 0 0 4px;
  font-size: 1.08rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

#view-career.mh-stage3-career .mj-career-card[data-career-tool="recruiters"] .mj-career-card__action {
  grid-area: chevron;
  justify-self: end;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--mh-silver, var(--mh-text-muted));
  font-size: 0;
  font-weight: 500;
  box-shadow: none;
  pointer-events: none;
}

#view-career.mh-stage3-career .mj-career-card[data-career-tool="recruiters"] .mj-career-card__action::after {
  content: "›";
  font-size: 1.35rem;
  line-height: 1;
  color: var(--mh-silver, var(--mh-text-muted));
}

#view-career.mh-stage3-career .mh-career-tools {
  display: grid;
  gap: 10px;
  margin: 0 0 var(--mh-space-5);
}

/* #735: author `display:flex` on .mj-career-card would otherwise paint [hidden]. */
#view-career.mh-stage3-career .mj-career-card[data-career-tool="vessels"][hidden] {
  display: none;
}

#view-career.mh-stage3-career .mj-career-card[data-career-tool="profile"],
#view-career.mh-stage3-career .mj-career-card[data-career-tool="cv-builder"],
#view-career.mh-stage3-career .mj-career-card[data-career-tool="applications"],
#view-career.mh-stage3-career .mj-career-card[data-career-tool="training"],
#view-career.mh-stage3-career .mj-career-card[data-career-tool="medical"] {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0;
  min-height: var(--mh-tap-min, 44px);
  padding: 16px 14px;
  border-radius: 14px;
  background: var(--mh-card-surface, var(--mh-surface));
  border: 1px solid var(--mh-card-edge, var(--mh-border-subtle));
  box-shadow: var(--mh-depth-1-shadow), var(--mh-depth-1-highlight);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

#view-career.mh-stage3-career .mj-career-card[data-career-tool="profile"]:active,
#view-career.mh-stage3-career .mj-career-card[data-career-tool="applications"]:active,
#view-career.mh-stage3-career .mj-career-card[data-career-tool="training"]:active,
#view-career.mh-stage3-career .mj-career-card[data-career-tool="medical"]:active,
#view-career.mh-stage3-career .mj-career-card[data-career-tool="profile"]:focus-visible,
#view-career.mh-stage3-career .mj-career-card[data-career-tool="applications"]:focus-visible,
#view-career.mh-stage3-career .mj-career-card[data-career-tool="training"]:focus-visible,
#view-career.mh-stage3-career .mj-career-card[data-career-tool="medical"]:focus-visible {
  border-color: color-mix(in srgb, var(--mh-gold, var(--mh-accent)) 40%, transparent);
  background: color-mix(in srgb, var(--mh-surface-elevated) 90%, transparent);
}

#view-career.mh-stage3-career .mj-career-card[data-career-tool="profile"] {
  position: relative;
  margin-top: 0;
}

#view-career.mh-stage3-career .mj-career-card[data-career-tool="profile"]::before {
  content: "Tools";
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

#view-career.mh-stage3-career .mj-career-card[data-career-tool="training"],
#view-career.mh-stage3-career .mj-career-card[data-career-tool="medical"] {
  margin-bottom: 0;
}

#view-career.mh-stage3-career .mj-career-card:not(:has(.mh-career-tool__icon)) {
  grid-template-columns: 1fr auto;
}

#view-career.mh-stage3-career .mj-career-card .mh-career-tool__icon,
#view-career.mh-stage3-career .mj-career-card .mj-career-card__body,
#view-career.mh-stage3-career .mj-career-card .mj-career-card__action {
  pointer-events: none;
}

.mh-career-tool__icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--mh-accent) 10%, transparent);
  color: var(--mh-accent);
  flex-shrink: 0;
}

.mh-career-tool__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#view-career.mh-stage3-career .mj-career-card__title {
  margin: 0 0 2px;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--mh-text);
}

#view-career.mh-stage3-career .mj-career-card__body .muted {
  margin: 0;
  font-size: var(--mh-type-caption);
  line-height: 1.4;
  color: var(--mh-text-muted);
}

#view-career.mh-stage3-career .mj-career-card[data-career-tool="profile"] .mj-career-card__action,
#view-career.mh-stage3-career .mj-career-card[data-career-tool="applications"] .mj-career-card__action,
#view-career.mh-stage3-career .mj-career-card[data-career-tool="training"] .mj-career-card__action,
#view-career.mh-stage3-career .mj-career-card[data-career-tool="medical"] .mj-career-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  color: var(--mh-silver, var(--mh-text-muted));
  font-size: 0;
  font-weight: 500;
  box-shadow: none;
  pointer-events: none;
}

#view-career.mh-stage3-career .mj-career-card[data-career-tool="profile"] .mj-career-card__action::after,
#view-career.mh-stage3-career .mj-career-card[data-career-tool="applications"] .mj-career-card__action::after,
#view-career.mh-stage3-career .mj-career-card[data-career-tool="training"] .mj-career-card__action::after,
#view-career.mh-stage3-career .mj-career-card[data-career-tool="medical"] .mj-career-card__action::after {
  content: "›";
  font-size: 1.3rem;
  line-height: 1;
  color: var(--mh-silver, var(--mh-text-muted));
}

#view-career.mh-stage3-career .mj-section-title,
#view-career.mh-stage3-career .mh-career-soon-title {
  margin: var(--mh-space-4) 0 var(--mh-space-3);
  font-size: var(--mh-type-caption);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mh-text-muted);
}

#view-career.mh-stage3-career .mj-career-list {
  display: grid;
  gap: var(--mh-stack-gap, 10px);
  margin-top: 0;
}

#view-career.mh-stage3-career .career-tool-card,
#view-career.mh-stage3-career .career-tool-card.figma-tool-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  margin: 0;
  padding: 16px 14px;
  border: 1px solid var(--mh-card-edge, var(--mh-border-subtle));
  border-radius: 14px;
  background: var(--mh-card-surface, var(--mh-surface));
  box-shadow: var(--mh-depth-1-shadow), var(--mh-depth-1-highlight);
  text-align: left;
  width: 100%;
  opacity: 1;
}

#view-career.mh-stage3-career .career-tool-title {
  margin: 0 0 2px;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--mh-text);
}

#view-career.mh-stage3-career .career-tool-subtitle {
  margin: 0;
  font-size: var(--mh-type-caption);
  line-height: 1.4;
  color: var(--mh-text-muted);
}

#view-career.mh-stage3-career .career-tool-status {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  font-size: var(--mh-type-caption);
  font-weight: 650;
  color: var(--mh-text-muted);
}

#view-career.mh-stage3-career .career-tool-status--soon {
  opacity: 0.72;
}

#view-career.mh-stage3-career .career-tool-status--open {
  font-size: 0;
}

#view-career.mh-stage3-career .career-tool-status--open::after {
  content: "›";
  font-size: 1.2rem;
  line-height: 1;
  color: var(--mh-text-muted);
}

html[data-theme="dark"] #view-career.mh-stage3-career .career-tool-card,
html[data-theme="dark"] #view-career.mh-stage3-career .career-tool-card.figma-tool-card {
  background: var(--mh-card-surface, #181b21);
  border-color: var(--mh-card-edge, rgba(255, 255, 255, 0.09));
  box-shadow: var(--mh-depth-1-shadow), var(--mh-depth-1-highlight);
}

html[data-theme="dark"] #view-career.mh-stage3-career .mj-career-card[data-career-tool="recruiters"] {
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--mh-gold, var(--mh-accent)) 18%, transparent) 0%,
      transparent 46%
    ),
    var(--mh-card-surface, #181b21);
  border-color: color-mix(in srgb, var(--mh-gold, var(--mh-accent)) 32%, transparent);
  box-shadow: var(--mh-depth-2-shadow);
}

html[data-theme="dark"] #view-career.mh-stage3-career .mj-career-card[data-career-tool="profile"],
html[data-theme="dark"] #view-career.mh-stage3-career .mj-career-card[data-career-tool="cv-builder"],
html[data-theme="dark"] #view-career.mh-stage3-career .mj-career-card[data-career-tool="applications"],
html[data-theme="dark"] #view-career.mh-stage3-career .mj-career-card[data-career-tool="training"],
html[data-theme="dark"] #view-career.mh-stage3-career .mj-career-card[data-career-tool="medical"] {
  background: var(--mh-card-surface, #181b21);
  border-color: var(--mh-card-edge, rgba(255, 255, 255, 0.09));
  box-shadow: var(--mh-depth-1-shadow), var(--mh-depth-1-highlight);
}

/* -- Recruiters list -- */
#view-recruiters.mh-stage3-recruiters {
  padding-bottom: calc(var(--mh-space-6) + var(--safe-bottom, 0px));
}

#view-recruiters.mh-stage3-recruiters .mj-recruiter-topbar {
  margin-bottom: var(--mh-space-2);
}

#view-recruiters.mh-stage3-recruiters .mj-recruiter-topbar__title {
  font-size: var(--mh-type-screen);
  font-weight: 750;
  letter-spacing: -0.015em;
}

#view-recruiters.mh-stage3-recruiters .mj-recruiter-lead {
  margin: 0 0 8px;
  font-size: var(--mh-type-caption);
  line-height: 1.35;
  color: var(--mh-text-muted);
}

#view-recruiters.mh-stage3-recruiters .mj-recruiter-search-wrap,
#view-training.mh-stage3-training .mj-recruiter-search-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  padding: 4px 6px 4px 10px;
  border-radius: 14px;
  background: var(--mh-surface-inset);
  border: 1px solid transparent;
  box-shadow: none;
}

#view-recruiters.mh-stage3-recruiters .mj-recruiter-search__input {
  flex: 1;
  min-height: var(--mh-control-h-sm);
  border: none;
  background: transparent;
  color: var(--mh-input-text);
  font-size: var(--mh-type-body);
  box-shadow: none;
}

#view-recruiters.mh-stage3-recruiters .mj-recruiter-search__input:focus {
  outline: none;
}

#view-recruiters.mh-stage3-recruiters .mj-recruiter-search__filter {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--mh-radius-md);
  background: var(--mh-surface-inset);
  color: var(--mh-text-secondary);
  cursor: pointer;
}

#view-recruiters.mh-stage3-recruiters .mj-recruiter-sector-chips,
#view-recruiters.mh-stage3-recruiters .mj-recruiter-alpha-row {
  margin-bottom: 8px;
}

#view-recruiters.mh-stage3-recruiters .mj-recruiter-result-note {
  margin: 0 0 10px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--mh-text-muted);
}

#view-recruiters.mh-stage3-recruiters .ref-rc-section {
  margin: 0 0 var(--mh-space-4);
}

#view-recruiters.mh-stage3-recruiters .ref-rc-section__letter {
  margin: 0 0 var(--mh-space-2);
  font-size: var(--mh-type-label);
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mh-text-muted);
}

#view-recruiters.mh-stage3-recruiters .ref-rc-company-card {
  margin: 0 0 8px;
  padding: 12px 12px;
  border-radius: 16px;
  background: var(--mh-surface-inset, var(--mh-surface));
  border: 1px solid var(--mh-border-subtle, transparent);
  box-shadow: none;
}

#view-recruiters.mh-stage3-recruiters .ref-rc-company-card:active {
  background: var(--mh-surface-inset);
}

/*
 * Company detail (#473 Iteration 5) — Stage 3 card slabs removed.
 * Visual ownership stays in company-profile-premium.css.
 * These rules only neutralize prior Stage 3 card language that loaded
 * after premium and reintroduced nested navy/white rectangles.
 */
#view-recruiter-detail.mh-stage3-company
  .ref-rc-detail[data-company-layout="premium-v1"]
  .ref-rc-detail__block,
#view-recruiter-detail.mh-stage3-company
  .ref-rc-detail[data-company-layout="premium-v1"]
  .ref-rc-directory {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  /* Keep premium divider language; do not force a card border. */
  border-left: none;
  border-right: none;
  border-bottom: none;
}

#view-recruiter-detail.mh-stage3-company
  .ref-rc-detail[data-company-layout="premium-v1"]
  .ref-rc-person-card {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  border-left: none;
  border-right: none;
  border-top: none;
  /* Preserve row dividers from company-profile-premium.css */
}

#view-recruiter-detail.mh-stage3-company
  .ref-rc-detail[data-company-layout="premium-v1"]
  .ref-rc-detail__sticky {
  gap: 10px;
  padding: 12px 0 4px;
  background: transparent;
  border-top: 1px solid var(--mh-border-subtle);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  position: static;
  bottom: auto;
}

/* —— Application Tracker (Stage B2 #482) —— */
#view-applications.mh-stage3-applications .mj-screen-head {
  margin-bottom: var(--mh-space-3);
}

#view-applications.mh-stage3-applications .mj-back-btn {
  min-height: 36px;
  margin-bottom: var(--mh-space-2);
  padding: 0 2px;
  border: none;
  background: transparent;
  color: var(--mh-accent);
  font-size: var(--mh-type-meta);
  font-weight: 650;
  cursor: pointer;
}

#view-applications.mh-stage3-applications .mj-screen-title {
  margin: 0 0 4px;
  font-size: var(--mh-type-screen);
  font-weight: 780;
  letter-spacing: -0.02em;
  color: var(--mh-text);
}

#view-applications.mh-stage3-applications .mj-screen-sub {
  margin: 0;
  font-size: var(--mh-type-meta);
  color: var(--mh-text-muted);
  line-height: 1.4;
}

#view-applications.mh-stage3-applications .filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 var(--mh-space-2);
  padding: 10px 2px;
  border: none;
  border-bottom: 1px solid var(--mh-line-divider, var(--mh-border-subtle));
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#view-applications.mh-stage3-applications .filter-label {
  font-size: var(--mh-type-label);
  font-weight: 650;
  color: var(--mh-text-secondary);
}

#view-applications.mh-stage3-applications #applications-status-filter {
  min-height: 36px;
  min-width: 9.5rem;
  max-width: 55%;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--mh-border-subtle);
  background: var(--mh-surface-interactive, var(--mh-surface));
  color: var(--mh-input-text, var(--mh-text));
  font-size: var(--mh-type-meta);
  font-weight: 650;
}

#view-applications.mh-stage3-applications .mj-applications-status {
  margin: 0 0 var(--mh-space-2);
  font-size: var(--mh-type-meta);
  font-weight: 600;
  color: var(--mh-text-muted);
}

#view-applications.mh-stage3-applications .mj-empty-card,
#view-applications.mh-stage3-applications .empty-state {
  margin: var(--mh-space-6) 0;
  padding: var(--mh-space-5) 4px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

#view-applications.mh-stage3-applications .mj-empty-title,
#view-applications.mh-stage3-applications .empty-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.015em;
  color: var(--mh-text);
}

#view-applications.mh-stage3-applications .mj-empty-card .muted {
  margin: 0 0 var(--mh-space-4);
  max-width: 28ch;
  line-height: 1.45;
}

#view-applications.mh-stage3-applications .mj-empty-card .mj-btn-primary {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
}

#view-applications.mh-stage3-applications .mj-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}

#view-applications.mh-stage3-applications .mj-empty-card .mj-btn-secondary {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
}

#view-applications.mh-stage3-applications .mj-empty-actions [hidden] {
  display: none !important;
}

#view-applications.mh-stage3-applications .mj-applications-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#view-applications.mh-stage3-applications .mj-application-card {
  position: relative;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 14px 12px 12px 16px;
  border: none;
  border-bottom: 1px solid var(--mh-line-divider, var(--mh-border-subtle));
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

#view-applications.mh-stage3-applications .mj-application-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 2px;
  background: var(--mh-text-muted);
}

#view-applications.mh-stage3-applications .mj-application-card[data-status="applied"]::before {
  background: var(--mh-accent);
}

#view-applications.mh-stage3-applications .mj-application-card[data-status="interview"]::before {
  background: #3b82f6;
}

#view-applications.mh-stage3-applications .mj-application-card[data-status="offer"]::before {
  background: var(--mh-success, #16a34a);
}

#view-applications.mh-stage3-applications .mj-application-card[data-status="rejected"]::before {
  background: var(--mh-danger, #dc2626);
}

#view-applications.mh-stage3-applications .mj-application-card[data-status="closed"]::before {
  background: var(--mh-text-secondary);
}

#view-applications.mh-stage3-applications .mj-application-card[data-status="planned"]::before {
  background: var(--mh-warning, #d97706);
}

#view-applications.mh-stage3-applications .mj-application-card[data-status="saved"]::before {
  background: color-mix(in srgb, var(--mh-accent) 55%, var(--mh-text-muted));
}

#view-applications.mh-stage3-applications .mj-application-card__main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

#view-applications.mh-stage3-applications .mj-application-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--mh-text);
  line-height: 1.22;
  overflow-wrap: anywhere;
}

#view-applications.mh-stage3-applications .mj-application-card__meta {
  margin: 0;
  font-size: var(--mh-type-meta);
  font-weight: 600;
  color: var(--mh-text-secondary);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

#view-applications.mh-stage3-applications .mj-application-card__date {
  margin: 2px 0 0;
  font-size: var(--mh-type-caption, 0.78rem);
  font-weight: 500;
  color: var(--mh-text-muted);
}

#view-applications.mh-stage3-applications .mj-application-card__inactive,
#view-applications.mh-stage3-applications .mj-application-card__next {
  display: block;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--mh-surface-inset, var(--mh-surface-muted));
  font-size: var(--mh-type-meta, 0.82rem);
  line-height: 1.4;
  color: var(--mh-text);
}

#view-applications.mh-stage3-applications .mj-application-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 2px 0 0;
  padding: 0;
  border: none;
}

#view-applications.mh-stage3-applications .mj-application-card__actions select {
  flex: 0 1 7.5rem;
  min-height: 32px;
  min-width: 0;
  max-width: 9.5rem;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: var(--mh-surface-inset, var(--mh-surface));
  color: var(--mh-text-secondary, var(--mh-text));
  font-size: var(--mh-type-caption, 0.78rem);
  font-weight: 600;
}

#view-applications.mh-stage3-applications .mj-application-card__open,
#view-applications.mh-stage3-applications .mj-application-card__remove {
  min-height: 36px;
  padding: 0 6px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: var(--mh-type-caption);
  font-weight: 650;
  cursor: pointer;
}

#view-applications.mh-stage3-applications .mj-application-card__open {
  color: var(--mh-accent);
  font-weight: 700;
}

#view-applications.mh-stage3-applications .mj-application-card__remove {
  color: var(--mh-text-muted);
  opacity: 0.85;
  font-weight: 600;
}

#view-applications.mh-stage3-applications .mj-application-card__remove--primary,
#view-applications.mh-stage3-applications .mj-applications-list .mj-application-card__remove--primary {
  color: var(--mh-text);
  opacity: 1;
  font-weight: 750;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--mh-border-standard, var(--mh-border-subtle));
  border-radius: 10px;
  background: var(--mh-surface-raised, var(--mh-surface));
}

#view-applications.mh-stage3-applications .mj-application-card__browse {
  min-height: 40px;
  padding: 0 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--mh-accent);
  font-size: var(--mh-type-caption);
  font-weight: 700;
  cursor: pointer;
}

#view-applications.mh-stage3-applications .mj-application-card__actions--unavailable {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
}

#view-applications.mh-stage3-applications .mj-application-card__remove:active,
#view-applications.mh-stage3-applications .mj-application-card__remove:focus-visible {
  color: var(--mh-danger, #dc2626);
  opacity: 1;
}

#view-applications.mh-stage3-applications #applications-empty[hidden],
#view-applications.mh-stage3-applications #applications-list[hidden] {
  display: none !important;
}

#view-applications.mh-stage3-applications:has(#applications-list .mj-application-card) #applications-empty {
  display: none !important;
}

@media (max-width: 360px) {
  #view-applications.mh-stage3-applications .mj-application-card__actions select {
    flex: 1 1 100%;
    max-width: none;
  }
}

/* —— Training list + detail —— */
#view-training.mh-stage3-training .detail-top,
#view-training-detail.mh-stage3-training-detail .detail-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: var(--mh-space-3);
}

#view-training.mh-stage3-training .back-btn,
#view-training-detail.mh-stage3-training-detail .back-btn {
  min-height: 36px;
  padding: 0 2px;
  border: none;
  background: transparent;
  color: var(--mh-accent);
  font-size: var(--mh-type-meta);
  font-weight: 650;
  cursor: pointer;
}

#view-training.mh-stage3-training .page-title,
#view-training-detail.mh-stage3-training-detail .page-title {
  margin: 0;
  font-size: var(--mh-type-screen);
  font-weight: 750;
  letter-spacing: -0.015em;
  color: var(--mh-text);
}

#view-training.mh-stage3-training .page-lead {
  margin: 0 0 var(--mh-space-3);
  font-size: var(--mh-type-meta);
}

#view-training.mh-stage3-training .mh-training-toolbar {
  display: grid;
  gap: 8px;
  margin: 0 0 var(--mh-space-3);
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

#view-training.mh-stage3-training .mh-training-search-wrap {
  margin: 0;
}

#view-training.mh-stage3-training .mh-training-filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

#view-training.mh-stage3-training .mh-training-filter,
#view-training.mh-stage3-training #training-country,
#view-training.mh-stage3-training #training-course {
  width: 100%;
  min-height: 36px;
  padding: 0 12px;
  border: none;
  border-radius: 999px;
  background: var(--mh-surface-inset);
  color: var(--mh-input-text);
  font-size: 0.82rem;
  box-shadow: none;
}

#view-training.mh-stage3-training #training-search:focus,
#view-training.mh-stage3-training #training-country:focus,
#view-training.mh-stage3-training #training-course:focus {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mh-focus) 18%, transparent);
}

#view-training.mh-stage3-training #training-result-note {
  margin: 0 0 var(--mh-space-3);
  font-size: var(--mh-type-meta);
  font-weight: 600;
  color: var(--mh-text-secondary);
}

#view-training.mh-stage3-training #training-list {
  display: grid;
  gap: var(--mh-space-3);
}

#view-training.mh-stage3-training .mh-training-card,
#view-training.mh-stage3-training .compact-job-card.directory-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--mh-space-3);
  width: 100%;
  margin: 0;
  padding: var(--mh-card-pad);
  border-radius: var(--mh-radius-lg);
  background: var(--mh-surface-standard);
  border: 1px solid var(--mh-border-subtle);
  box-shadow: var(--mh-elev-low);
  text-align: left;
  color: inherit;
  cursor: pointer;
}

#view-training.mh-stage3-training .mh-training-card .job-avatar,
#view-training.mh-stage3-training .compact-job-card .job-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--mh-radius-md);
  background: color-mix(in srgb, var(--mh-accent) 12%, var(--mh-surface));
  color: var(--mh-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--mh-type-meta);
  font-weight: 750;
}

#view-training.mh-stage3-training .compact-job-title {
  margin: 0 0 4px;
  font-size: var(--mh-type-card);
  font-weight: 700;
  color: var(--mh-text);
}

#view-training.mh-stage3-training .compact-job-sub {
  margin: 0;
  font-size: var(--mh-type-meta);
  color: var(--mh-text-muted);
}

#view-training-detail.mh-stage3-training-detail .directory-detail-card,
#view-training-detail.mh-stage3-training-detail .mh-training-detail {
  padding: var(--mh-card-pad);
  border-radius: var(--mh-radius-lg);
  background: var(--mh-surface-standard);
  border: 1px solid var(--mh-border-subtle);
  box-shadow: var(--mh-elev-low);
}

#view-training-detail.mh-stage3-training-detail .directory-detail-title {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: -0.015em;
}

#view-training-detail.mh-stage3-training-detail .directory-detail-lead {
  margin: 0 0 var(--mh-space-4);
  font-size: var(--mh-type-meta);
  color: var(--mh-text-muted);
}

#view-training-detail.mh-stage3-training-detail .directory-section-title {
  margin: var(--mh-space-4) 0 var(--mh-space-3);
  font-size: var(--mh-type-section);
  font-weight: 750;
}

#view-training-detail.mh-stage3-training-detail .course-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

#view-training-detail.mh-stage3-training-detail .course-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  padding: 14px 2px;
  border-radius: 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--mh-line-divider, var(--mh-border-subtle));
}

#view-training-detail.mh-stage3-training-detail .course-row-title {
  margin: 0;
  grid-column: 1 / -1;
  font-size: var(--mh-type-body);
  font-weight: 650;
  color: var(--mh-text);
}

#view-training-detail.mh-stage3-training-detail .course-price {
  font-size: var(--mh-type-meta);
  font-weight: 700;
  color: var(--mh-accent);
}

#view-training-detail.mh-stage3-training-detail .course-price--muted {
  color: var(--mh-text-muted);
  font-weight: 600;
}

#view-training-detail.mh-stage3-training-detail .course-row-link {
  font-size: var(--mh-type-caption);
  font-weight: 650;
  color: var(--mh-accent);
  text-decoration: none;
}

#view-training-detail.mh-stage3-training-detail .directory-link-row {
  margin: 0 0 8px;
}

#view-training-detail.mh-stage3-training-detail .btn-source-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--mh-control-h-sm);
  padding: 0 14px;
  border-radius: var(--mh-radius-md);
  background: color-mix(in srgb, var(--mh-accent) 12%, var(--mh-surface));
  color: var(--mh-accent);
  font-size: var(--mh-type-button);
  font-weight: 700;
  text-decoration: none;
}

/* —— Account (Stage B2 #482) —— */
#view-account.mh-stage3-account .mj-screen-head {
  margin-bottom: var(--mh-space-4);
}

#view-account.mh-stage3-account .mj-screen-title {
  margin: 0 0 4px;
  font-size: var(--mh-type-screen);
  font-weight: 780;
  letter-spacing: -0.02em;
  color: var(--mh-text);
}

#view-account.mh-stage3-account .mj-screen-sub {
  margin: 0;
  font-size: var(--mh-type-meta);
  color: var(--mh-text-muted);
}

#view-account.mh-stage3-account .mj-account-profile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--mh-avatar-text-gap, 14px);
  align-items: center;
  margin: 0 0 var(--mh-space-5);
  padding: var(--mh-card-inset-y, 16px) var(--mh-card-inset-x, 14px);
  border: 1px solid var(--mh-card-edge, var(--mh-border-subtle));
  border-radius: 14px;
  background: var(--mh-card-surface, var(--mh-surface));
  box-shadow: var(--mh-depth-1-shadow), var(--mh-depth-1-highlight);
  position: relative;
  overflow: hidden;
}

#view-account.mh-stage3-account .mj-account-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--mh-accent) 12%, var(--mh-surface));
  color: var(--mh-accent);
  font-size: 0.95rem;
  font-weight: 800;
}

#view-account.mh-stage3-account .mj-account-name {
  margin: 0 0 2px;
  font-size: 1.1rem;
  font-weight: 750;
  letter-spacing: -0.015em;
  color: var(--mh-text);
}

#view-account.mh-stage3-account .mj-account-meta,
#view-account.mh-stage3-account .mj-account-auth-state {
  margin: 0;
  font-size: var(--mh-type-meta);
  color: var(--mh-text-muted);
}

#view-account.mh-stage3-account .mj-account-restore {
  margin: 10px 0 0;
  min-height: 36px;
  padding: 0 12px;
  width: fit-content;
  max-width: 100%;
}

#view-account.mh-stage3-account .mj-account-restore[hidden] {
  display: none !important;
}

#view-account.mh-stage3-account .mj-premium-card {
  margin: 0 0 var(--mh-space-3);
  padding: 16px 14px;
  border: 1px solid var(--mh-card-edge, var(--mh-border-subtle));
  border-radius: 16px;
  background: var(--mh-card-surface, var(--mh-surface));
  box-shadow: var(--mh-depth-1-shadow);
}

#view-account.mh-stage3-account .mj-premium-card h3 {
  margin: 0 0 6px;
  font-size: var(--mh-type-body);
  font-weight: 700;
  color: var(--mh-text);
}

#view-account.mh-stage3-account .mj-premium-card .muted {
  margin: 0 0 8px;
  font-size: var(--mh-type-meta);
  color: var(--mh-text-muted);
  line-height: 1.4;
}

#view-account.mh-stage3-account .mh-referral-link {
  word-break: break-all;
  overflow-wrap: anywhere;
  max-width: 100%;
}

#view-account.mh-stage3-account .mh-referral-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--mh-space-2);
  margin: 0 0 var(--mh-space-2);
}

#view-account.mh-stage3-account .mh-referral-stats {
  margin: var(--mh-space-2) 0 0;
}

#view-account.mh-stage3-account .btn-account-upgrade {
  min-height: var(--mh-btn-h, 44px);
  width: auto;
  max-width: 100%;
  margin-top: 10px;
  padding: 8px var(--mh-btn-pad-x, 18px);
  border-radius: var(--mh-btn-radius, 999px);
  font-size: var(--mh-type-button, 0.92rem);
  font-weight: var(--mh-btn-weight, 750);
}

#view-account.mh-stage3-account .btn-account-upgrade[hidden] {
  display: none !important;
}

.mh-account-section {
  margin: 0 0 var(--mh-space-5);
}

.mh-account-section__title {
  margin: 0 0 var(--mh-space-2);
  padding: 0;
  font-size: var(--mh-type-section, 1.08rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--mh-text);
}

#view-account.mh-stage3-account .mj-settings-list {
  display: flex;
  flex-direction: column;
  gap: var(--mh-stack-gap, 10px);
  margin: 0;
  padding: var(--mh-card-inset-y, 16px) var(--mh-card-inset-x, 14px);
  border: 1px solid var(--mh-card-edge, var(--mh-border-subtle));
  border-radius: 14px;
  background: var(--mh-card-surface, var(--mh-surface));
  overflow: hidden;
  box-shadow: var(--mh-depth-1-shadow);
}

#view-account.mh-stage3-account .mj-settings-row {
  margin: 0;
  padding: 14px 2px;
  border: none;
  border-bottom: 1px solid var(--mh-line-divider, var(--mh-border-subtle));
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

#view-account.mh-stage3-account .mj-settings-row h4 {
  margin: 0 0 4px;
  font-size: var(--mh-type-body);
  font-weight: 650;
  color: var(--mh-text);
}

#view-account.mh-stage3-account .mj-settings-row .muted {
  margin: 0;
  font-size: var(--mh-type-meta);
  color: var(--mh-text-muted);
}

#view-account.mh-stage3-account .mj-settings-row--btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  cursor: pointer;
  color: var(--mh-text);
  font: inherit;
}

#view-account.mh-stage3-account .mj-settings-row__meta {
  flex-shrink: 0;
  font-size: var(--mh-type-caption);
  font-weight: 650;
  color: var(--mh-text-muted);
}

#view-account.mh-stage3-account .mj-settings-row--danger {
  color: var(--mh-danger, #dc2626);
  margin-top: var(--mh-space-2);
  border-bottom: none;
}

#view-account.mh-stage3-account .mj-settings-row--danger .mj-settings-row__meta {
  color: color-mix(in srgb, var(--mh-danger, #dc2626) 70%, var(--mh-text-muted));
}

#view-account.mh-stage3-account .mj-settings-meta {
  margin: 10px 0 0;
  display: grid;
  gap: 6px;
}

#view-account.mh-stage3-account .mj-settings-meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--mh-type-meta);
}

#view-account.mh-stage3-account .mj-settings-meta dt {
  margin: 0;
  color: var(--mh-text-muted);
  font-weight: 500;
}

#view-account.mh-stage3-account .mj-settings-meta dd {
  margin: 0;
  color: var(--mh-text);
  font-weight: 650;
}

#view-account.mh-stage3-account .view-foot {
  margin: var(--mh-space-3) 0 0;
  font-size: var(--mh-type-caption);
  text-align: center;
  color: var(--mh-text-muted);
}

#view-account.mh-stage3-account [data-entitlement-expiry][hidden],
#view-account.mh-stage3-account [data-referral-link][hidden],
#view-account.mh-stage3-account [data-referral-actions][hidden],
#view-account.mh-stage3-account [data-referral-stats][hidden],
#view-account.mh-stage3-account [data-account-privacy-confirm][hidden] {
  display: none !important;
}

#view-account.mh-stage3-account .mh-account-privacy-card {
  display: grid;
  gap: 10px;
  padding: 16px;
}

#view-account.mh-stage3-account .mh-account-privacy-card h3 {
  margin: 0;
  font-size: var(--mh-type-body);
  font-weight: 750;
}

#view-account.mh-stage3-account .mh-account-privacy-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 4px;
}

#view-account.mh-stage3-account .mh-account-privacy-actions .mh-button,
#view-account.mh-stage3-account .mh-account-privacy-actions .mj-btn-secondary,
#view-account.mh-stage3-account .mh-account-privacy-actions .mj-btn-primary {
  min-height: var(--mh-tap-min, 44px);
  width: auto;
  flex: 0 1 auto;
  padding: 6px 12px;
  font-size: 0.82rem;
}

#view-account.mh-stage3-account [data-back-to-bot].mh-button {
  width: auto;
  flex: 0 0 auto;
  padding: 6px 12px;
  font-size: 0.82rem;
}

/* Outline Delete only. Do not color the solid Confirm deletion CTA —
   that ID+class rule otherwise beats [data-account-delete-confirm-go]
   and paints red text on the red danger fill. */
#view-account.mh-stage3-account .mh-account-privacy-delete.mh-button--outline,
#view-account.mh-stage3-account .mh-account-privacy-delete.mh-button--secondary {
  color: var(--mh-danger, #dc2626);
  border-color: color-mix(in srgb, var(--mh-danger, #dc2626) 40%, var(--mh-border-subtle));
}

#view-account.mh-stage3-account .mh-account-privacy-status {
  min-height: 1.25em;
}

#view-account.mh-stage3-account .mh-account-privacy-status[data-state="error"] {
  color: var(--mh-danger, #dc2626);
}

#view-account.mh-stage3-account .mh-account-privacy-status[data-state="success"] {
  color: var(--mh-text);
  font-weight: 650;
}

#view-account.mh-stage3-account .mh-account-privacy-confirm {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--mh-danger, #dc2626) 28%, var(--mh-border-subtle));
  background: color-mix(in srgb, var(--mh-danger, #dc2626) 6%, var(--mh-card-surface, var(--mh-surface)));
}

#view-account.mh-stage3-account .mh-account-privacy-confirm h4 {
  margin: 0;
  font-size: var(--mh-type-body);
  font-weight: 700;
}

#view-account.mh-stage3-account .mh-account-privacy-label {
  font-size: var(--mh-type-meta);
  font-weight: 650;
  color: var(--mh-text);
}

#view-account.mh-stage3-account .mh-account-privacy-input {
  width: 100%;
  min-height: var(--mh-tap-min, 44px);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--mh-border-subtle);
  background: var(--mh-surface, #fff);
  color: var(--mh-text);
  font: inherit;
}

#view-account.mh-stage-b2-account {
  padding-bottom: calc(var(--mh-space-6) + env(safe-area-inset-bottom, 0px));
}

/*
 * Signed-in Account first screen (#736 / #663). Hide only the duplicate
 * session note. Keep the payment-honesty line and Free-plan summary
 * visible. Compact rhythm so the 44px Upgrade CTA stays above the nav.
 * Card padding stays Saved 16×14. Signed-out Account is unchanged.
 */
#view-account.mh-stage3-account:has(#btn-account-upgrade-demo:not([hidden])) .mj-screen-head {
  margin-bottom: 4px;
}

#view-account.mh-stage3-account:has(#btn-account-upgrade-demo:not([hidden])) [data-tg-context-note],
#view-account.mh-stage3-account [data-tg-context-note]:empty {
  display: none;
}

#view-account.mh-stage3-account:has(#btn-account-upgrade-demo:not([hidden])) .mj-account-profile {
  margin-bottom: 8px;
}

#view-account.mh-stage3-account:has(#btn-account-upgrade-demo:not([hidden])) .mh-account-section {
  margin-bottom: 8px;
}

#view-account.mh-stage3-account:has(#btn-account-upgrade-demo:not([hidden])) .mh-account-section__title {
  margin-bottom: 4px;
}

#view-account.mh-stage3-account:has(#btn-account-upgrade-demo:not([hidden])) .btn-account-upgrade {
  margin-top: 0;
}

#view-account.mh-stage3-account:has(#btn-account-upgrade-demo:not([hidden])) [data-entitlement-summary],
#view-account.mh-stage3-account:has(#btn-account-upgrade-demo:not([hidden])) [data-entitlement-note] {
  display: block !important;
  visibility: visible !important;
  margin: 0;
}

@media (max-width: 360px) {
  #view-account.mh-stage3-account:has(#btn-account-upgrade-demo:not([hidden])) .mj-screen-sub {
    display: none;
  }
}

#view-account.mh-stage3-account .mh-referral-actions--compact {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: 10px;
}

#view-account.mh-stage3-account .mh-referral-actions--compact [data-referral-share] {
  flex: 0 1 auto;
}

#view-account.mh-stage3-account .mh-referral-stats-line {
  margin: 10px 0 0;
  font-size: var(--mh-type-caption, 0.78rem);
  color: var(--mh-text-muted);
}

/*
 * Dark theme — Stage 3 raised cards (company detail only).
 * B1 (#478): Recruiters/Training owned by directory-family.css.
 * B2 (#482): Tracker/Account use flat canvas rows above; do not re-raise them.
 */
html[data-theme="dark"] #view-recruiter-detail.mh-stage3-company
  .ref-rc-detail[data-company-layout="premium-v1"]
  .ref-rc-detail__block,
html[data-theme="dark"] #view-recruiter-detail.mh-stage3-company
  .ref-rc-detail[data-company-layout="premium-v1"]
  .ref-rc-directory,
html[data-theme="dark"] #view-recruiter-detail.mh-stage3-company
  .ref-rc-detail[data-company-layout="premium-v1"]
  .ref-rc-person-card {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

html[data-theme="dark"] #view-applications.mh-stage3-applications .mj-application-card[data-status="interview"]::before {
  background: #60a5fa;
}

html[data-theme="dark"] #view-applications.mh-stage3-applications #applications-status-filter,
html[data-theme="dark"] #view-applications.mh-stage3-applications .mj-application-card__actions select {
  background: color-mix(in srgb, var(--mh-surface-raised, var(--mh-surface)) 88%, #fff 4%);
  border-color: var(--mh-border-standard);
}

/* —— #517 Application Tracker: full-width mobile product cards —— */
#view-applications.mh-stage3-applications .mj-applications-list .mj-application-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  gap: 10px;
  margin: 0;
  padding: 14px 14px 12px 16px;
  border: 1px solid var(--mh-card-edge, var(--mh-border-subtle));
  border-radius: 14px;
  background: var(--mh-card-surface, var(--mh-surface));
  box-shadow: var(--mh-depth-1-shadow, none), var(--mh-depth-1-highlight, none);
}

#view-applications.mh-stage3-applications .mj-applications-list .mj-application-card__main {
  width: 100%;
  min-width: 0;
}

#view-applications.mh-stage3-applications .mj-application-card__status-label {
  display: inline-block;
  margin: 0 0 8px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: var(--mh-type-caption, 0.72rem);
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mh-text);
  background: var(--mh-surface-inset, rgba(18, 19, 22, 0.08));
}

#view-applications.mh-stage3-applications .mj-application-card[data-status="applied"] .mj-application-card__status-label,
#view-applications.mh-stage3-applications .mj-application-card[data-status="interview"] .mj-application-card__status-label,
#view-applications.mh-stage3-applications .mj-application-card[data-status="offer"] .mj-application-card__status-label {
  background: rgba(201, 162, 39, 0.18);
}

#view-applications.mh-stage3-applications .mj-application-card__note {
  margin: 6px 0 0;
  font-size: var(--mh-type-meta);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

#view-applications.mh-stage3-applications .mj-application-card__move {
  display: grid;
  gap: 4px;
  min-width: 0;
}

#view-applications.mh-stage3-applications .mj-application-card__move .filter-label {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#view-applications.mh-stage3-applications .mj-applications-list .mj-application-card__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 8px 0 0;
  border-top: 1px solid var(--mh-line-divider, var(--mh-border-subtle));
}

#view-applications.mh-stage3-applications .mj-applications-list .mj-application-card__actions select,
#view-applications.mh-stage3-applications .mj-application-card__status {
  flex: none;
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 36px;
}

#view-applications.mh-stage3-applications .mj-application-card__links {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

#view-applications.mh-stage3-applications .mj-applications-list .mj-application-card__open {
  color: var(--mh-accent);
  font-weight: 700;
}

#view-applications.mh-stage3-applications .mj-applications-list .mj-application-card__remove {
  color: var(--mh-text-muted);
  opacity: 0.72;
  font-weight: 550;
}

@media (max-width: 360px) {
  #view-applications.mh-stage3-applications .mj-applications-list .mj-application-card__actions {
    grid-template-columns: minmax(0, 1fr);
  }

  #view-applications.mh-stage3-applications .mj-application-card__links {
    justify-content: flex-end;
  }
}

/* —— Career Profile / CV (#400) —— */
#view-profile.mh-stage3-profile .mj-profile-head {
  margin-bottom: var(--mh-space-3);
}

#view-profile.mh-stage3-profile .mh-profile-status {
  margin: 0 0 var(--mh-space-3);
}

#view-profile.mh-stage3-profile .mh-profile-card {
  margin: 0 0 var(--mh-space-3);
  padding: var(--mh-card-pad);
  border-radius: var(--mh-radius-lg);
  background: var(--mh-surface-standard);
  border: 1px solid var(--mh-border-subtle);
  box-shadow: var(--mh-elev-low);
}

#view-profile.mh-stage3-profile .mh-profile-complete {
  margin: 0 0 8px;
}

#view-profile.mh-stage3-profile .mh-profile-meter {
  height: 6px;
  border-radius: 999px;
  background: var(--mh-surface-inset, rgba(18, 19, 22, 0.08));
  overflow: hidden;
  margin: 0 0 8px;
}

#view-profile.mh-stage3-profile .mh-profile-meter__fill {
  display: block;
  height: 100%;
  background: var(--mh-accent, #c9a227);
  border-radius: inherit;
}

#view-profile.mh-stage3-profile .mh-profile-next {
  margin: 0 0 10px;
  font-size: var(--mh-type-meta);
  line-height: 1.4;
}

#view-profile.mh-stage3-profile .mh-profile-save-feedback {
  margin: 0 0 10px;
  font-size: var(--mh-type-meta);
  font-weight: 700;
  color: #067647;
}

#view-profile.mh-stage3-profile .mh-profile-progress {
  margin: 0 0 var(--mh-space-3);
}

#view-profile.mh-stage3-profile .mh-profile-progress .mh-profile-card {
  margin-bottom: 0;
}

#view-profile.mh-stage3-profile .mh-profile-field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 10px;
}

#view-profile.mh-stage3-profile .mh-profile-field-grid > * {
  min-width: 0;
  max-width: 100%;
}

#view-profile.mh-stage3-profile .mh-profile-field-grid input,
#view-profile.mh-stage3-profile .mh-profile-field-grid select {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

#view-profile.mh-stage3-profile .mh-profile-disclose > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
}

#view-profile.mh-stage3-profile .mh-profile-disclose > summary::-webkit-details-marker {
  display: none;
}

#view-profile.mh-stage3-profile .mh-profile-disclose > summary::after {
  content: "›";
  font-size: 1.1rem;
  transform: rotate(90deg);
  color: var(--mh-text-muted);
}

#view-profile.mh-stage3-profile .mh-profile-disclose:not([open]) > summary::after {
  transform: rotate(0deg);
}

#view-profile.mh-stage3-profile .mh-profile-validation {
  margin: 0 0 var(--mh-space-3);
  padding: 10px 12px;
  border-radius: 12px;
  background: #fef3f2;
  color: #b42318;
}

#view-profile.mh-stage3-profile .mh-profile-validation__title {
  margin: 0 0 6px;
  font-weight: 750;
}

#view-profile.mh-stage3-profile .mh-profile-validation ul {
  margin: 0;
  padding-left: 1.1rem;
}

#view-profile.mh-stage3-profile .mh-profile-section {
  margin: 0 0 22px;
  padding: 4px 0 18px;
  border-radius: 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--mh-line-divider, var(--mh-border-subtle));
}

#view-profile.mh-stage3-profile .mh-profile-section:last-of-type {
  border-bottom: none;
}

#view-profile.mh-stage3-profile .mh-profile-section .mj-section-title {
  margin: 0 0 12px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mh-kicker, var(--mh-accent));
}

#view-profile.mh-stage3-profile .mh-profile-headline {
  margin: 0 0 6px;
  font-size: var(--mh-type-card);
  font-weight: 650;
}

#view-profile.mh-stage3-profile .mh-profile-meta {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
  min-width: 0;
}

#view-profile.mh-stage3-profile .mh-profile-meta__row {
  display: grid;
  grid-template-columns: minmax(72px, 32%) minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
}

#view-profile.mh-stage3-profile .mh-profile-meta__row dt {
  margin: 0;
  color: var(--mh-text-muted, var(--mh-text-secondary));
  font-size: var(--mh-type-caption, 0.75rem);
  font-weight: 650;
}

#view-profile.mh-stage3-profile .mh-profile-meta__row dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#view-profile.mh-stage3-profile .mh-profile-breakdown {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: grid;
  gap: 6px;
  min-width: 0;
}

#view-profile.mh-stage3-profile .mh-profile-breakdown__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  min-width: 0;
  font-size: var(--mh-type-meta, 0.8rem);
  line-height: 1.35;
}

#view-profile.mh-stage3-profile .mh-profile-breakdown__item span {
  min-width: 0;
  overflow-wrap: anywhere;
}

#view-profile.mh-stage3-profile .mh-profile-breakdown__item.is-critical {
  font-weight: 650;
}

#view-profile.mh-stage3-profile,
#view-profile.mh-stage3-profile .mh-profile-overview,
#view-profile.mh-stage3-profile .mh-profile-card {
  max-width: 100%;
  overflow-x: hidden;
}

#view-profile.mh-stage3-profile .mh-profile-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 8px;
}

#view-profile.mh-stage3-profile .mh-profile-hint {
  margin: 0 0 var(--mh-space-2);
  font-size: var(--mh-type-meta);
}

#view-profile.mh-stage3-profile .mh-profile-form .filter-row {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
}

#view-profile.mh-stage3-profile .mh-profile-form .filter-label {
  font-size: var(--mh-type-caption, 0.75rem);
  font-weight: 650;
  color: var(--mh-text-secondary);
}

#view-profile.mh-stage3-profile .mh-profile-form input:not([type="checkbox"]):not([type="radio"]),
#view-profile.mh-stage3-profile .mh-profile-form select,
#view-profile.mh-stage3-profile .mh-profile-form textarea {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
}

#view-profile.mh-stage3-profile .mh-profile-form input[type="checkbox"],
#view-profile.mh-stage3-profile .mh-profile-form input[type="radio"] {
  width: auto;
  min-width: 1.1em;
  max-width: 1.25em;
  flex: 0 0 auto;
  align-self: center;
}

#view-profile.mh-stage3-profile .mh-profile-repeat {
  display: grid;
  gap: var(--mh-space-3);
  margin-bottom: var(--mh-space-2);
}

#view-profile.mh-stage3-profile .mh-profile-repeat-row {
  padding: 10px 10px 6px;
  border-radius: var(--mh-radius-md);
  border: 1px solid var(--mh-border-subtle);
  background: var(--mh-surface-inset, var(--mh-surface));
}

#view-profile.mh-stage3-profile .mh-profile-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 var(--mh-space-2);
  font-size: var(--mh-type-meta);
}

#view-profile.mh-stage3-profile .mh-profile-form-actions {
  display: flex;
  gap: var(--mh-space-2);
  position: static;
  margin-top: var(--mh-space-4);
  padding: var(--mh-space-3) 0 var(--mh-space-2);
  background: transparent;
  z-index: 1;
}

#view-profile.mh-stage3-profile .mh-profile-form {
  padding-bottom: var(--mh-space-2);
}

#view-profile.mh-stage3-profile .mh-profile-form-error {
  color: #b42318;
  margin: 0 0 var(--mh-space-4);
}

html[data-theme="dark"] #view-profile.mh-stage3-profile .mh-profile-card,
html[data-theme="dark"] #view-profile.mh-stage3-profile .mh-profile-repeat-row {
  background: var(--mh-surface-raised);
  border-color: var(--mh-border-standard);
}

html[data-theme="dark"] #view-profile.mh-stage3-profile .mh-profile-form-error,
html[data-theme="dark"] #view-profile.mh-stage3-profile .mh-profile-validation {
  color: #f97066;
}

html[data-theme="dark"] #view-profile.mh-stage3-profile .mh-profile-validation {
  background: rgba(249, 112, 102, 0.12);
}

html[data-theme="dark"] #view-profile.mh-stage3-profile .mh-profile-save-feedback {
  color: #75e0a7;
}

html[data-theme="dark"] #view-profile.mh-stage3-profile .mh-profile-meter {
  background: rgba(255, 255, 255, 0.12);
}

@media (min-width: 431px) {
  #view-profile.mh-stage3-profile .mh-profile-field-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Quick Apply Helper (#404) */
#view-quick-apply.mh-quick-apply {
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}
.mh-quick-apply-root {
  display: flex;
  flex-direction: column;
  gap: var(--mh-space-3, 12px);
  padding: 0 0 var(--mh-space-4, 16px);
}
.mh-qa-card {
  border: 1px solid var(--mh-card-edge, var(--mh-border-subtle, #d7dde5));
  border-radius: 14px;
  padding: 16px 14px;
  background: var(--mh-card-surface, var(--mh-surface-raised, var(--mh-surface)));
  box-shadow: var(--mh-depth-1-shadow), var(--mh-depth-1-highlight);
}
.mh-qa-card h2,
.mh-qa-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 650;
}
.mh-qa-status {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--mh-surface-inset, #eef2f6);
}
.mh-qa-status.is-ready { color: #067647; background: #ecfdf3; }
.mh-qa-status.is-limited { color: #b54708; background: #fffaeb; }
.mh-qa-status.is-needs,
.mh-qa-status.is-noroute { color: #b42318; background: #fef3f2; }
.mh-qa-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mh-qa-actions .mh-button,
.mh-qa-actions button {
  width: 100%;
}
.mh-qa-message {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.92rem;
  line-height: 1.45;
  margin: 0;
  max-height: 42vh;
  overflow: auto;
  padding: 10px;
  border-radius: 8px;
  background: var(--mh-surface-inset, #f5f7fa);
}
.mh-qa-list {
  margin: 0;
  padding-left: 1.1rem;
}
.mh-qa-list li { margin: 0 0 4px; }
html[data-theme="dark"] .mh-qa-card {
  background: var(--mh-surface-raised);
  border-color: var(--mh-border-standard);
}
html[data-theme="dark"] .mh-qa-message {
  background: var(--mh-surface-inset);
}

/* —— #488 Career / Account ambient depth —— */
#view-career.mh-stage3-career .mj-career-card.mh-career-tool {
  transition:
    transform var(--mh-press-ms) ease,
    box-shadow var(--mh-press-ms) ease,
    background-color var(--mh-press-ms) ease,
    border-color var(--mh-press-ms) ease;
}

#view-career.mh-stage3-career .mj-career-card.mh-career-tool:active {
  transform: scale(var(--mh-press-scale));
}

#view-career.mh-stage3-career .mj-career-card[data-career-tool="recruiters"] {
  box-shadow: var(--mh-depth-2-shadow);
}

#view-career.mh-stage3-career .mj-career-card[data-career-tool="profile"],
#view-career.mh-stage3-career .mj-career-card[data-career-tool="applications"],
#view-career.mh-stage3-career .mj-career-card[data-career-tool="training"],
#view-career.mh-stage3-career .mj-career-card[data-career-tool="medical"] {
  background: transparent;
  box-shadow: none;
}

#view-career.mh-stage3-career .mh-career-tool__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--mh-surface-muted) 88%, #2a2d33);
  color: var(--mh-silver, #c8cbd0);
  border: 1px solid color-mix(in srgb, #c8cbd0 14%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 1px 2px rgba(0, 0, 0, 0.18);
}

#view-career.mh-stage3-career .mj-career-card[data-career-tool="recruiters"] .mh-career-tool__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--mh-gold, var(--mh-accent)) 14%, var(--mh-surface-muted));
  color: var(--mh-gold-bright, var(--mh-accent));
  border-color: color-mix(in srgb, var(--mh-gold, var(--mh-accent)) 28%, transparent);
}

#view-career.mh-stage3-career .mh-career-tool__icon svg {
  stroke-width: 1.7;
}

#view-career.mh-stage3-career .mj-career-card__action::after {
  transition: transform var(--mh-press-ms) ease, color var(--mh-press-ms) ease;
}

#view-career.mh-stage3-career .mj-career-card.mh-career-tool:active .mj-career-card__action::after {
  transform: translateX(2px);
  color: var(--mh-gold, var(--mh-accent));
}

html[data-theme="light"] #view-career.mh-stage3-career .mh-career-tool__icon {
  background: color-mix(in srgb, #eceef1 90%, #ffffff);
  color: #3a3d44;
  border-color: color-mix(in srgb, #c8cbd0 55%, transparent);
}

html[data-theme="light"] #view-career.mh-stage3-career .mj-career-card[data-career-tool="recruiters"] .mh-career-tool__icon {
  background: color-mix(in srgb, #c6a66a 12%, #ffffff);
  color: #8a6f3d;
}

#view-account.mh-stage3-account .mj-account-profile {
  position: relative;
  overflow: hidden;
}

#view-account.mh-stage3-account .mj-account-profile::before {
  content: "";
  position: absolute;
  right: -20%;
  top: -60%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  pointer-events: none;
  border: 1px solid color-mix(in srgb, #c6a66a 20%, transparent);
  opacity: 0.35;
}

#view-account.mh-stage3-account .mj-account-profile::after {
  content: "";
  position: absolute;
  left: -10%;
  bottom: -70%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle,
    color-mix(in srgb, #c8cbd0 10%, transparent) 0%,
    transparent 70%
  );
  opacity: 0.55;
}

#view-account.mh-stage3-account .mj-account-avatar {
  position: relative;
  z-index: 1;
  box-shadow: var(--mh-depth-2-shadow);
  border: 1px solid color-mix(in srgb, var(--mh-gold, var(--mh-accent)) 24%, transparent);
}

#view-account.mh-stage3-account .mj-account-profile__text {
  position: relative;
  z-index: 1;
}

#view-account.mh-stage3-account .mj-settings-row,
#view-account.mh-stage3-account .mh-button,
#view-account.mh-stage3-account button.mh-button {
  transition:
    transform var(--mh-press-ms) ease,
    background-color var(--mh-press-ms) ease,
    border-color var(--mh-press-ms) ease;
}

#view-account.mh-stage3-account .mj-settings-row:active:not(.mj-settings-row--readonly),
#view-account.mh-stage3-account .mh-button:active {
  transform: scale(var(--mh-press-scale));
}

#view-account.mh-stage3-account .mj-settings-row--readonly {
  cursor: default;
  pointer-events: none;
}

#view-account.mh-stage3-account .mj-settings-row--readonly:active {
  transform: none;
}

#view-account.mh-stage3-account .mh-appearance-value {
  margin: 6px 0 0;
  font-size: var(--mh-type-caption, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mh-text-muted);
}

/* Maritime CV Builder (#737) — post-#745 editor chrome; A4 exports stay document-white */
#view-cv-builder.mh-stage3-cv-builder {
  padding-bottom: calc(20px + var(--mh-safe-bottom, env(safe-area-inset-bottom, 0px)));
}
#view-cv-builder .mh-cv-builder-steps {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
#view-cv-builder .mh-cv-builder-step {
  flex: 1;
  min-width: 0;
  min-height: var(--mh-tap-min, 44px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mh-text-muted);
  padding: 8px 4px;
  border-bottom: 2px solid var(--mh-border-subtle);
}
#view-cv-builder .mh-cv-builder-step.is-current {
  color: var(--mh-text);
  border-bottom-color: var(--mh-accent, #c9a227);
}
#view-cv-builder .mh-cv-builder-step.is-complete {
  color: var(--mh-text);
  border-bottom-color: var(--mh-border-strong, #8b9099);
}
#view-cv-builder .mh-cv-builder-start {
  margin: 0 0 12px;
  padding: var(--mh-card-inset-y, 16px) var(--mh-card-inset-x, 14px);
  border: 1px solid var(--mh-card-edge, var(--mh-border-subtle));
  border-radius: 14px;
  background: var(--mh-card-surface, var(--mh-surface));
  box-shadow: var(--mh-depth-1-shadow), var(--mh-depth-1-highlight);
}
#view-cv-builder .mh-cv-builder-start summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.92rem;
  min-height: var(--mh-tap-min, 44px);
  display: flex;
  align-items: center;
}
#view-cv-builder .mh-cv-builder-sample-note {
  margin: 8px 0 10px;
  font-size: 0.82rem;
}
#view-cv-builder .mh-cv-builder-note,
#view-cv-builder .mh-cv-builder-status {
  margin: 0 0 12px;
}
#view-cv-builder .mh-cv-builder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 calc(12px + var(--mh-safe-bottom, env(safe-area-inset-bottom, 0px)));
  position: static;
  inset: auto;
  bottom: auto;
  z-index: auto;
  transform: none;
}
#view-cv-builder .mh-cv-builder-actions .mh-button,
#view-cv-builder .mh-cv-builder-actions button,
#view-cv-builder .mh-cv-photo-actions .mh-button,
#view-cv-builder .mh-cv-row-actions .mh-button,
#view-cv-builder [data-cv-add] {
  position: static;
  inset: auto;
  min-width: var(--mh-tap-min, 44px);
  min-height: var(--mh-tap-min, 44px);
  max-width: 100%;
}
#view-cv-builder #cv-builder-editorial,
#view-cv-builder input[type="file"],
#view-cv-builder input[type="range"] {
  width: 100%;
  min-height: var(--mh-tap-min, 44px);
  position: relative;
  z-index: 1;
}
#view-cv-builder #cv-builder-template,
#view-cv-builder .mh-input,
#view-cv-builder .mh-select,
#view-cv-builder select,
#view-cv-builder input[type="text"],
#view-cv-builder input[type="email"],
#view-cv-builder input[type="tel"],
#view-cv-builder input[type="date"] {
  width: 100%;
  min-height: 44px;
  height: 44px;
  box-sizing: border-box;
  padding: 0 12px;
  position: relative;
  z-index: 1;
}
#view-cv-builder .mh-cv-builder-form fieldset,
#view-cv-builder .mh-cv-section-toggles {
  border: 1px solid var(--mh-card-edge, var(--mh-border-subtle));
  border-radius: 14px;
  margin: 0 0 12px;
  padding: 12px 12px 14px;
  background: var(--mh-card-surface, var(--mh-surface));
  box-shadow: var(--mh-depth-1-shadow), var(--mh-depth-1-highlight);
}
#view-cv-builder .mh-cv-builder-form legend,
#view-cv-builder .mh-cv-section-toggles legend {
  font-weight: 750;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}
#view-cv-builder .mh-cv-builder-storage,
#view-cv-builder .mh-cv-overflow {
  margin: 0 0 10px;
  font-size: 0.84rem;
}
#view-cv-builder .mh-cv-builder-error,
#view-cv-builder .mh-cv-field-error {
  color: #9b1c1c;
  margin: 0 0 10px;
}
#view-cv-builder .mh-cv-field-error {
  margin: -4px 0 10px;
  font-size: 0.82rem;
  line-height: 1.35;
}
#view-cv-builder .mh-input[aria-invalid="true"],
#view-cv-builder .mh-select[aria-invalid="true"] {
  border-color: #9b1c1c;
}
#view-cv-builder .mh-cv-builder-toolbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0 0 12px;
}
#view-cv-builder .mh-cv-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: var(--mh-tap-min, 44px);
  margin: 8px 0;
}
#view-cv-builder .mh-cv-check input {
  width: 20px;
  height: 20px;
  margin-top: 12px;
  flex: 0 0 auto;
}
#view-cv-builder .mh-cv-row input[data-cv-field="expiry_date"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
#view-cv-builder .mh-cv-photo-stage {
  display: flex;
  justify-content: center;
  margin: 8px 0;
}
#view-cv-builder #cv-builder-photo-canvas-host,
#view-cv-builder #cv-builder-photo-canvas {
  width: 160px;
  height: 160px;
  border-radius: 12px;
  background: #eceff3;
  max-width: 100%;
}
#view-cv-builder .mh-cv-photo-actions,
#view-cv-builder .mh-cv-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}
#view-cv-builder .mh-cv-row {
  border-top: 1px solid var(--mh-border-subtle, #d4d7dd);
  padding-top: 8px;
  margin-top: 8px;
}
#view-cv-builder .mh-cv-a4-frame {
  width: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--mh-bg, #f3f4f6);
  border-radius: 16px;
  padding: 8px;
  container-type: inline-size;
  container-name: mh-cv-a4;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-ats .mh-cv-header {
  display: block;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-ats .mh-cv-contact-col {
  display: block;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-modern .mh-cv-header {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  align-items: start;
  gap: 10px 16px;
  background: #e8f2f8;
  border-bottom: 0;
  border-left: 4px solid #205c78;
  padding: 12px 12px 12px 14px;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-modern .mh-cv-body {
  margin-left: 0;
  padding-left: 0;
  border-left: 0;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-modern .mh-cv-split-body {
  display: grid;
  grid-template-columns: minmax(72px, 0.42fr) minmax(0, 1fr);
  gap: 12px 16px;
  align-items: start;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-modern .mh-cv-side {
  border-right: 2px solid #205c78;
  padding-right: 10px;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-modern .mh-cv-body h2 {
  border-bottom-color: #205c78;
  width: max-content;
  min-width: 36%;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium,
#view-cv-builder .mh-cv-doc.mh-cv-tpl-dossier {
  display: block;
  background: #faf8f3;
  padding: 0 0 16px;
  border-radius: 2px;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-hero {
  display: grid;
  grid-template-columns: minmax(52mm, 32%) minmax(0, 1fr) 28px;
  gap: 10px 12px;
  background: #101828;
  color: #f7f1e3;
  padding: 12px 14px 14px;
  border-bottom: 3px solid #b89440;
  margin: 0 0 12px;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium.mh-cv-no-media .mh-cv-hero {
  grid-template-columns: minmax(0, 1fr) 28px;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-hero h1 {
  color: #f7f1e3;
  font-size: 1.7rem;
  line-height: 1.1;
  margin: 0 0 6px;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-rankline,
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-hero .mh-cv-block {
  color: #e8e2d2;
  margin: 0 0 6px;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-availability {
  display: inline-block;
  margin: 0;
  padding: 2px 8px;
  background: #b89440;
  color: #101828;
  font-size: 0.72rem;
  font-weight: 700;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-mark {
  color: #b89440;
  font-weight: 800;
  letter-spacing: 0.04em;
  align-self: start;
  width: 28px;
  height: 28px;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-mark svg {
  display: block;
  width: 28px;
  height: 28px;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium table.mh-cv-grid {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 12px;
  font-size: 0.72rem;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium table.mh-cv-grid th {
  background: #101828;
  color: #f7f1e3;
  font-weight: 700;
  text-align: left;
  padding: 3px 5px;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium table.mh-cv-grid td {
  border: 1px solid #d2ccbe;
  padding: 3px 5px;
  color: #101828;
  vertical-align: top;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium table.mh-cv-grid tr.is-current td:first-child {
  box-shadow: inset 3px 0 0 #b89440;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-langs {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-langs li {
  display: flex;
  align-items: center;
  gap: 10px;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-lang-bar {
  display: inline-block;
  width: 60px;
  height: 4px;
  background: #e6e2d8;
  flex: 0 0 60px;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-lang-bar i {
  display: block;
  height: 100%;
  background: #b89440;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-vessel {
  border: 1px solid #b89440;
  border-left-width: 3px;
  padding: 6px 8px;
  margin: 0 0 6px;
  font-size: 0.78rem;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-mark-svg {
  display: block;
  width: 28px;
  height: 28px;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-two-col,
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-evidence-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 0 14px 12px;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-panel {
  background: #f5f1e8;
  border: 1px solid #b89440;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-panel h2,
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-contact-panel h2,
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-digital h2,
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-snapshot h2 {
  background: #101828;
  color: #f7f1e3;
  border-bottom: 0;
  margin: 0 0 8px;
  padding: 5px 8px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-lang-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-lang-bar {
  display: inline-block;
  width: 88px;
  height: 4px;
  background: #e6e2d8;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-lang-bar > span {
  display: block;
  height: 4px;
  background: #b89440;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-sea-table,
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-cert-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
  margin: 0 0 12px;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-sea-table th,
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-cert-table th {
  background: #101828;
  color: #f7f1e3;
  text-align: left;
  padding: 3px 5px;
  font-weight: 700;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-sea-table td,
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-cert-table td {
  border: 1px solid #d2ccbe;
  padding: 3px 5px;
  color: #101828;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-sea-table tr.is-current td {
  box-shadow: inset 3px 0 0 #b89440;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-vessel-card {
  border: 1px solid #b89440;
  padding: 6px 8px;
  margin: 0 0 6px;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-pair-evidence {
  margin: 0 0 12px;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-photo {
  width: 100%;
  max-width: 62mm;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
  border: 1px solid #b89440;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-contact-panel,
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-pair,
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-body {
  padding: 0 14px;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium section.mh-cv-contact-panel {
  border: 1px solid #b89440;
  padding: 8px 12px;
  margin: 0 14px 12px;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-contact-grid,
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium h2 {
  color: #101828;
  border-bottom: 1px solid #b89440;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-panel h2,
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-contact-panel h2,
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-digital h2,
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-snapshot h2 {
  color: #f7f1e3;
  border-bottom: 0;
}
#view-cv-builder .mh-cv-kicker {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b89440;
}
#view-cv-builder .mh-cv-table-row {
  padding: 4px 0 4px 8px;
  border-bottom: 1px solid #e4dfd4;
}
#view-cv-builder .mh-cv-table-row.is-current {
  box-shadow: inset 3px 0 0 #b89440;
}
#view-cv-builder .mh-cv-qr-handle {
  font-size: 0.72rem;
  color: #4a463a;
}
#view-cv-builder .mh-cv-media {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 12px;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-modern .mh-cv-contact-col .mh-cv-media {
  margin: 8px 0 0;
  flex-wrap: nowrap;
}
#view-cv-builder .mh-cv-photo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
}
#view-cv-builder .mh-cv-qr {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 140px;
}
#view-cv-builder .mh-cv-qr img {
  width: 64px;
  height: 64px;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-digital {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 14px 12px;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-digital .mh-cv-media {
  justify-content: center;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-digital .mh-cv-qr {
  max-width: 118px;
  padding: 6px 8px;
  border: 1px solid #b89440;
  background: #f5f1e8;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-digital .mh-cv-qr img {
  width: 64px;
  height: 64px;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-snapshot {
  background: #101828;
  color: #f7f1e3;
  margin: 0 14px 12px;
  padding: 0 0 10px;
  border-top: 3px solid #b89440;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-snapshot .mh-cv-block {
  color: #e8e2d2;
  padding: 0 10px;
}
#view-cv-builder .mh-cv-doc.mh-cv-tpl-premium .mh-cv-brand-footer {
  margin: 10px 14px 0;
  padding-top: 8px;
  border-top: 1px solid #b89440;
  color: #b89440;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}
#view-cv-builder .mh-cv-ci-only {
  display: none;
}
@media (max-width: 430px) {
  #view-cv-builder .mh-cv-builder-actions {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
  }
  #view-cv-builder .mh-cv-builder-actions .mh-button,
  #view-cv-builder .mh-cv-builder-actions button {
    width: 100%;
    flex: 0 0 auto;
  }
}
#view-cv-builder .mh-cv-preview-shell {
  margin: 8px 0 16px;
  display: block;
  width: 100%;
}
#view-cv-builder .mh-cv-preview-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 8px;
}
#view-cv-builder .mh-cv-preview-toolbar button,
#view-cv-builder .mh-cv-preview-toolbar .mh-button,
#view-cv-builder .mh-cv-preview-toolbar [data-cv-zoom] {
  box-sizing: border-box;
  min-height: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0 12px;
}
#view-cv-builder .mh-cv-a4-frame {
  min-height: 72vw;
}
#view-cv-builder .mh-cv-preview-placeholder {
  margin: 0;
}
#view-cv-builder .mh-cv-preview-label {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mh-text-muted, #6b6f76);
}
#view-cv-builder .mh-cv-a4-scale {
  width: 210mm;
  max-width: 210mm;
  transform-origin: top left;
  zoom: calc(100cqw / 210mm);
}
#view-cv-builder .mh-cv-doc {
  width: 210mm;
  max-width: 210mm;
  box-sizing: border-box;
  background: #fff;
  color: #1a1d22;
  border: 1px solid var(--mh-border-standard, #d4d7dd);
  border-radius: 16px;
  padding: 20px 16px 16px;
  margin: 0;
  box-shadow: var(--mh-depth-1-shadow, 0 8px 24px rgba(18, 19, 22, 0.08));
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
  overflow: visible;
}
#view-cv-builder .mh-cv-doc .mh-cv-header {
  margin: 0 0 12px;
  padding: 0 0 10px;
  border-bottom: 2px solid #1a1d22;
}
#view-cv-builder .mh-cv-doc h1 {
  font-size: 1.32rem;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
}
#view-cv-builder .mh-cv-doc h2 {
  font-size: 0.78rem;
  margin: 16px 0 6px;
  border-bottom: 1px solid #c5c9d0;
  padding-bottom: 3px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#view-cv-builder .mh-cv-doc p,
#view-cv-builder .mh-cv-doc li {
  margin: 0 0 6px;
  white-space: pre-wrap;
}
#view-cv-builder .mh-cv-builder-help {
  margin: 0 0 8px;
  font-size: 0.86rem;
}
#view-cv-builder .mh-cv-builder-help summary {
  cursor: pointer;
  color: var(--mh-text-muted, #6b6f76);
  min-height: var(--mh-tap-min, 44px);
  display: flex;
  align-items: center;
}
/* Dark editor chrome must stay graphite/readable even if host tokens lag.
   Exported A4 paper (.mh-cv-doc) stays document-white on purpose. */
html[data-theme="dark"] #view-cv-builder.mh-stage3-cv-builder,
html[data-theme="dark"] #view-cv-builder {
  color: #f4f4f2;
  color-scheme: dark;
}
html[data-theme="dark"] #view-cv-builder .mj-screen-title,
html[data-theme="dark"] #view-cv-builder .mh-page-header__title,
html[data-theme="dark"] #view-cv-builder .mh-cv-builder-step.is-current,
html[data-theme="dark"] #view-cv-builder .mh-cv-builder-step.is-complete,
html[data-theme="dark"] #view-cv-builder .mh-cv-builder-start summary,
html[data-theme="dark"] #view-cv-builder .mh-cv-builder-note,
html[data-theme="dark"] #view-cv-builder .mh-cv-builder-status,
html[data-theme="dark"] #view-cv-builder .mh-cv-builder-help,
html[data-theme="dark"] #view-cv-builder .mh-cv-overflow {
  color: #f4f4f2;
}
html[data-theme="dark"] #view-cv-builder .mj-screen-sub,
html[data-theme="dark"] #view-cv-builder .mh-page-header__subtitle,
html[data-theme="dark"] #view-cv-builder .mh-cv-builder-step,
html[data-theme="dark"] #view-cv-builder .mh-cv-builder-storage,
html[data-theme="dark"] #view-cv-builder .mh-cv-builder-sample-note,
html[data-theme="dark"] #view-cv-builder .mh-cv-builder-help summary,
html[data-theme="dark"] #view-cv-builder .mh-cv-preview-label,
html[data-theme="dark"] #view-cv-builder .filter-label,
html[data-theme="dark"] #view-cv-builder .mh-field__label,
html[data-theme="dark"] #view-cv-builder .muted {
  color: #c8cbd0;
}
html[data-theme="dark"] #view-cv-builder .mh-cv-builder-form fieldset,
html[data-theme="dark"] #view-cv-builder .mh-cv-section-toggles,
html[data-theme="dark"] #view-cv-builder .mh-cv-builder-start {
  background: #181b21;
  color: #f4f4f2;
  border-color: rgba(255, 255, 255, 0.09);
}
html[data-theme="dark"] #view-cv-builder .mh-cv-builder-form legend,
html[data-theme="dark"] #view-cv-builder .mh-cv-section-toggles legend {
  color: #f4f4f2;
}
html[data-theme="dark"] #view-cv-builder .mh-input,
html[data-theme="dark"] #view-cv-builder .mh-select,
html[data-theme="dark"] #view-cv-builder select,
html[data-theme="dark"] #view-cv-builder textarea,
html[data-theme="dark"] #view-cv-builder input[type="text"],
html[data-theme="dark"] #view-cv-builder input[type="email"],
html[data-theme="dark"] #view-cv-builder input[type="tel"],
html[data-theme="dark"] #view-cv-builder input[type="date"],
html[data-theme="dark"] #view-cv-builder input[type="file"],
html[data-theme="dark"] #view-cv-builder input[type="range"] {
  background: #191b1f;
  color: #f4f4f2;
  border-color: rgba(220, 222, 226, 0.14);
  color-scheme: dark;
}
html[data-theme="dark"] #view-cv-builder #cv-builder-photo-canvas-host,
html[data-theme="dark"] #view-cv-builder #cv-builder-photo-canvas {
  background: #202226;
}
html[data-theme="dark"] #view-cv-builder .mh-cv-row {
  border-top-color: rgba(220, 222, 226, 0.14);
}
html[data-theme="dark"] #view-cv-builder .mh-cv-a4-frame {
  background: #0c0d0f;
}
html[data-theme="dark"] #view-cv-builder .mh-cv-doc {
  background: #f7f5f1;
  color: #1a1d22;
}
html[data-theme="dark"] #view-cv-builder .mh-cv-doc.mh-cv-tpl-premium {
  background: #f7f5f1;
  color: #1a1d22;
}
html[data-theme="dark"] #view-cv-builder .mh-cv-builder-error,
html[data-theme="dark"] #view-cv-builder .mh-cv-field-error {
  color: #ffb4b4;
}
html[data-theme="dark"] #view-cv-builder .mh-input[aria-invalid="true"],
html[data-theme="dark"] #view-cv-builder .mh-select[aria-invalid="true"] {
  border-color: #ffb4b4;
}
@media print {
  .mh-cv-builder-actions,
  #cv-builder-editorial,
  #cv-builder-fixture,
  #cv-builder-check,
  .mh-cv-builder-help,
  .mh-cv-builder-sample-note,
  .mh-cv-preview-label,
  .mh-cv-builder-form,
  .mh-cv-builder-toolbar,
  .mh-cv-builder-start,
  .mh-cv-builder-storage {
    display: none !important;
  }
}


