/* Crewmba component layer — copy of the design system components/bundle.css (without the preview-only icon font). */

/* ==========================================================================
   Crewmba UI layer (components/bundle.css)
   All values come from tokens.css (generated from tokens.json).
   On the site: load after Porto bootstrap.min.css, theme.css,
   theme-elements.css, skins/skin-crewmba.css and tokens.css.
   The icon-font block at the end is for these previews only: on the site
   load Porto's vendor/bootstrap-icons/bootstrap-icons.min.css instead.
   ========================================================================== */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Sizes are in rem (1rem = 16px at the browser default; px only for 1-3px lines and @media conditions), so the
   whole UI scales with the root font: up on wide monitors (2K and larger) and when a visitor sets a larger
   browser font. Below 1800px nothing changes. */
@media (min-width: 1800px) { html { font-size: 112.5%; } }
@media (min-width: 2300px) { html { font-size: 125%; } }
body { margin: 0; background: var(--surface); color: var(--text); font-family: var(--font-body); font-size: .875rem; line-height: 1.5rem; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.cm { font-family: var(--font-body); color: var(--text); }
:where(.cm) :where(h1, h2, h3, h4, h5, h6) { margin: 0; font-family: var(--font-heading); color: var(--ink); }
:where(.cm) :where(p, ul, ol, dl, dd, figure) { margin: 0; }
:where(.cm) :where(ul, ol) { padding: 0; list-style: none; }
:where(.cm) a { color: inherit; text-decoration: none; }
:where(.cm) button { font: inherit; }
.cm :focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.cm-on-dark :focus-visible { outline-color: var(--focus-ring-inverse); }
.cm-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.cm-link { color: var(--primary); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; }
.cm-link:hover { color: var(--primary-hover); }
.cm-link--quiet { text-decoration: none; }
button.cm-link { padding: 0; border: 0; background: none; font: inherit; font-weight: 500; }
.cm-link--quiet:hover { text-decoration: underline; }

.t-overline { text-transform: uppercase; }
@media (max-width: 767.98px) {
  .t-display { font-size: 2.25rem; line-height: 2.625rem; }
  .t-h1 { font-size: 1.75rem; line-height: 2.25rem; }
  .t-h2 { font-size: 1.5rem; line-height: 2rem; }
  .t-h3 { font-size: 1.3125rem; line-height: 1.75rem; }
  .t-section { font-size: 1.25rem; line-height: 1.625rem; }
}

/* Preview helpers (also handy on the site) */
.cm-canvas { padding: 1.5rem; }
.cm-stack { display: flex; flex-direction: column; gap: 1rem; }
.cm-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.cm-row--tight { gap: .375rem; }
.cm-cap { margin-bottom: .5rem; font-family: var(--font-heading); font-size: .6875rem; line-height: 1rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.cm-container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Wordmark ---------- */
/* Maritime icons Bootstrap Icons lacks (<x-cm-icon name="ship|seafarer">, README "Иконки"): sized and coloured like a .bi glyph */
.cm-icon { display: inline-block; flex: none; width: 1.3em; height: 1.3em; margin: -.15em; vertical-align: -.275em; overflow: visible; } /* a 24px grid has more air than a .bi glyph: 1.3em matches it optically */
.cm-wordmark { display: inline-block; font-family: var(--font-heading); font-weight: 700; font-size: 1.875rem; line-height: 1; letter-spacing: -.02em; color: var(--primary); text-transform: uppercase; }
.cm-wordmark--inverse { color: var(--on-primary); }

/* ---------- Buttons ---------- */
.cm-btn { --btn-bg: var(--ink); --btn-fg: var(--on-ink); --btn-bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.75rem; padding: .6875rem 1.75rem;
  border: 1px solid var(--btn-bd); border-radius: var(--radius-pill); background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-body); font-size: .875rem; line-height: 1.25rem; font-weight: 600; letter-spacing: -.015em;
  text-decoration: none; white-space: nowrap; cursor: pointer; user-select: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease; }
.cm .cm-btn, .cm .cm-btn:hover { color: var(--btn-fg); text-decoration: none; }
.cm-btn .bi { font-size: 1rem; }
.cm-btn:hover { --btn-bg: var(--ink-hover); --btn-bd: var(--ink-hover); }
.cm-btn--primary { --btn-bg: var(--primary); --btn-bd: var(--primary); --btn-fg: var(--on-primary); }
.cm-btn--primary:hover { --btn-bg: var(--primary-hover); --btn-bd: var(--primary-hover); }
.cm-btn--outline { --btn-bg: transparent; --btn-bd: var(--ink); --btn-fg: var(--ink); }
.cm-btn--outline:hover { --btn-bg: var(--ink); --btn-bd: var(--ink); --btn-fg: var(--on-ink); }
.cm-btn--light { --btn-bg: var(--surface); --btn-bd: var(--surface); --btn-fg: var(--ink); }
.cm-btn--light:hover { --btn-bg: var(--surface-alt); --btn-bd: var(--surface-alt); --btn-fg: var(--ink); }
.cm-btn--buoy { --btn-bg: var(--buoy); --btn-bd: var(--buoy); --btn-fg: var(--on-buoy); }
.cm-btn--buoy:hover { --btn-bg: var(--buoy-strong); --btn-bd: var(--buoy-strong); --btn-fg: var(--on-primary); }
.cm-btn--ghost { --btn-bg: transparent; --btn-bd: transparent; --btn-fg: var(--ink); }
.cm-btn--ghost:hover { --btn-bg: var(--surface-alt); --btn-bd: var(--surface-alt); --btn-fg: var(--ink); }
.cm-btn--onprimary-outline { --btn-bg: transparent; --btn-bd: var(--on-primary); --btn-fg: var(--on-primary); }
.cm-btn--onprimary-outline:hover { --btn-bg: var(--on-primary); --btn-bd: var(--on-primary); --btn-fg: var(--primary); }
.cm-btn--sm { min-height: 2.25rem; padding: .4375rem 1.125rem; font-size: .8125rem; line-height: 1.25rem; }
.cm-btn--sm .bi { font-size: .875rem; }
.cm-btn--lg { min-height: 3.25rem; padding: .9375rem 2.5rem; font-size: .9375rem; }
.cm-btn--icon { width: 2.75rem; min-width: 2.75rem; padding: 0; }
.cm-btn--icon.cm-btn--sm { width: 2.25rem; min-width: 2.25rem; }
.cm-btn--icon .bi { font-size: 1.125rem; }
.cm-btn--block { display: flex; width: 100%; }
.cm-btn:disabled:not(.is-loading), .cm-btn.is-disabled { --btn-bg: var(--surface-alt); --btn-bd: var(--surface-alt); --btn-fg: var(--text-disabled); cursor: not-allowed; }
.cm-btn.is-loading { cursor: progress; } /* keeps its colour while disabled: the action is running, not unavailable */
.cm-spinner { display: inline-block; width: 1rem; height: 1rem; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: cm-spin .7s linear infinite; }
@keyframes cm-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cm-spinner { animation-duration: 1.6s; } }
.cm-btn-group { display: inline-flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- Form fields ---------- */
.cm-field { display: flex; flex-direction: column; gap: .375rem; min-width: 0; }
.cm-label { font-family: var(--font-heading); font-size: .8125rem; line-height: 1.125rem; font-weight: 500; color: var(--ink); }
.cm-req { margin-left: 2px; color: var(--danger); }
.cm-optional { margin-left: .25rem; font-weight: 400; color: var(--text-muted); }
.cm-input, .cm-select, .cm-textarea { display: block; width: 100%; min-height: 3rem; padding: .75rem 1rem; margin: 0;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background-color: var(--surface); color: var(--ink);
  font-family: var(--font-body); font-size: .875rem; line-height: 1.375rem; appearance: none; -webkit-appearance: none;
  transition: border-color .2s ease, box-shadow .2s ease; }
.cm-input::placeholder, .cm-textarea::placeholder { color: var(--text-muted); opacity: 1; }
.cm-input:hover, .cm-select:hover, .cm-textarea:hover { border-color: var(--ink); }
.cm-input:focus, .cm-select:focus, .cm-textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--focus-halo); }
.cm-input:disabled, .cm-select:disabled, .cm-textarea:disabled { background-color: var(--surface-alt); border-color: var(--line); color: var(--text-disabled); cursor: not-allowed; }
.cm-input[readonly] { background-color: var(--surface-alt); border-color: var(--line); }
.is-invalid .cm-input, .cm-input.is-invalid, .is-invalid .cm-select, .cm-select.is-invalid, .cm-textarea.is-invalid { border-color: var(--danger); }
.is-invalid .cm-input:focus, .cm-input.is-invalid:focus, .cm-select.is-invalid:focus { box-shadow: 0 0 0 3px var(--danger-halo); }
.cm-input--lg, .cm-select--lg { min-height: 3.5rem; font-size: .9375rem; }
.cm-textarea { min-height: 7.5rem; resize: vertical; }
.cm-select { padding-right: 2.75rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23222529' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M3.5 6l4.5 4.5L12.5 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: .875rem; }
.cm-help { display: flex; align-items: flex-start; gap: .375rem; font-size: .75rem; line-height: 1.125rem; color: var(--text-muted); }
.cm-help .bi { margin-top: 2px; font-size: .8125rem; }
.cm-help--error { color: var(--danger); }
.cm-help--success { color: var(--success); }
.cm-control { position: relative; }
.cm-control > .bi { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); font-size: 1rem; color: var(--primary); pointer-events: none; }
.cm-control > .cm-input, .cm-control > .cm-select { padding-left: 2.75rem; }
.cm-control__suffix { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font-size: .8125rem; color: var(--text-muted); pointer-events: none; }
.cm-control--suffix > .cm-input { padding-right: 4.75rem; }
.cm-control__btn { position: absolute; right: .375rem; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text-muted); cursor: pointer; }
.cm-control__btn:hover { background: var(--surface-alt); color: var(--ink); }
.cm-control--action > .cm-input { padding-right: 3rem; }
.cm-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.cm-form-grid .cm-span-2 { grid-column: 1 / -1; }
@media (max-width: 575.98px) { .cm-form-grid { grid-template-columns: 1fr; } }
.cm-range { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem; }
.cm-range__dash { color: var(--text-muted); }

/* Chips (multi-select values) */
.cm-chips { display: flex; flex-wrap: wrap; gap: .375rem; }
.cm-chip { display: inline-flex; align-items: center; gap: .25rem; height: 2rem; padding: 0 .375rem 0 .75rem; border-radius: var(--radius-pill); background: var(--surface-mist); color: var(--primary-hover); font-size: .8125rem; line-height: 1.125rem; font-weight: 500; }
.cm-chip__x { display: grid; place-items: center; width: 1.375rem; height: 1.375rem; border: 0; border-radius: 50%; background: transparent; color: var(--primary-hover); cursor: pointer; padding: 0; }
.cm-chip__x:hover { background: var(--surface); }
.cm-multiselect { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; min-height: 3rem; padding: .4375rem 2.75rem .4375rem .5rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23222529' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M3.5 6l4.5 4.5L12.5 6'/%3E%3C/svg%3E") no-repeat right 1rem center / .875rem; }
.cm-multiselect input { flex: 1; min-width: 5rem; border: 0; outline: 0; padding: .25rem .375rem; font: inherit; color: var(--ink); background: transparent; }
.cm-multiselect input::placeholder { color: var(--text-muted); }
.cm-multiselect:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--focus-halo); }

/* Dropdown menu (custom select list, account menu) */
.cm-menu { min-width: 15rem; padding: .5rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-lg); }
.cm-menu__search { margin: 0 0 .375rem; }
.cm-menu__item { display: flex; align-items: center; gap: .625rem; width: 100%; min-height: 2.5rem; padding: .5rem .75rem; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink); font-size: .875rem; line-height: 1.25rem; text-align: left; cursor: pointer; }
.cm-menu__item:hover, .cm-menu__item.is-focused { background: var(--surface-alt); }
.cm-menu__item[aria-selected="true"] { color: var(--primary); font-weight: 500; }
.cm-menu__item[aria-selected="true"]::after { content: "\f272"; margin-left: auto; font-family: "bootstrap-icons"; font-size: 1rem; }
.cm-menu__item .cm-count-text { margin-left: auto; font-size: .75rem; color: var(--text-muted); }
.cm-menu__group { padding: .625rem .75rem .25rem; font-family: var(--font-heading); font-size: .6875rem; line-height: 1rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.cm-menu hr { margin: .375rem .25rem; border: 0; border-top: 1px solid var(--line); }

/* ---------- Checkbox, radio, switch ---------- */
.cm-check { display: inline-flex; align-items: flex-start; gap: .625rem; min-height: 1.5rem; color: var(--ink); font-size: .875rem; line-height: 1.375rem; cursor: pointer; }
.cm-check input { flex: none; width: 1.25rem; height: 1.25rem; margin: 1px 0 0; border: 1.5px solid var(--line-strong); border-radius: .3125rem; background: var(--surface) center / .875rem no-repeat; appearance: none; -webkit-appearance: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.cm-check input[type="radio"] { border-radius: 50%; }
.cm-check:hover input { border-color: var(--ink); }
.cm-check input:checked { border-color: var(--primary); background-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E"); }
.cm-check input[type="radio"]:checked { background-image: radial-gradient(circle, var(--on-primary) 0 .2188rem, transparent .25rem); }
.cm-check input[type="checkbox"]:indeterminate { border-color: var(--primary); background-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' d='M4 8h8'/%3E%3C/svg%3E"); }
.cm-check input:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.cm-check input:disabled { border-color: var(--line); background-color: var(--surface-alt); cursor: not-allowed; }
.cm-check:has(input:disabled) { color: var(--text-disabled); cursor: not-allowed; }
.cm-check.is-invalid input { border-color: var(--danger); }
.cm-check__text { display: flex; flex-direction: column; }
.cm-check__hint { font-size: .75rem; line-height: 1.125rem; color: var(--text-muted); }
.cm-check__hint--error { color: var(--danger); }
.cm-check--row { display: flex; width: 100%; }
.cm-check__count { margin-left: auto; padding-left: .75rem; font-size: .75rem; color: var(--text-muted); }

.cm-switch { display: inline-flex; align-items: center; gap: .75rem; color: var(--ink); font-size: .875rem; line-height: 1.375rem; cursor: pointer; }
.cm-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cm-switch__track { position: relative; flex: none; width: 2.625rem; height: 1.5rem; border-radius: var(--radius-pill); background: var(--line-strong); transition: background-color .2s ease; }
.cm-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 1.125rem; height: 1.125rem; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(34, 37, 41, .25); transition: transform .2s ease; }
.cm-switch input:checked + .cm-switch__track { background: var(--primary); }
.cm-switch input:checked + .cm-switch__track::after { transform: translateX(1.125rem); }
.cm-switch input:focus-visible + .cm-switch__track { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.cm-switch input:disabled + .cm-switch__track { background: var(--line); }

/* Searchable select (select[data-cm-combobox], public/js/custom.js): button + .cm-menu listbox with search */
.cm-combobox { position: relative; }
.cm-control > .cm-combobox > .cm-select { padding-left: 2.75rem; }
.cm-control:has(> .cm-combobox) > .bi { z-index: 1; }
.cm-combobox__toggle { overflow: hidden; text-align: left; white-space: nowrap; text-overflow: ellipsis; }
.cm-combobox__toggle.is-placeholder { color: var(--text-muted); }
.cm-combobox.is-open .cm-combobox__toggle { border-color: var(--primary); box-shadow: 0 0 0 3px var(--focus-halo); }
.cm-combobox__menu { position: absolute; z-index: 1050; top: calc(100% + .375rem); left: 0; right: 0; display: flex; flex-direction: column; min-width: 0; max-height: 22.5rem; }
.cm-combobox__menu[hidden] { display: none; }
.cm-combobox__menu.is-up { top: auto; bottom: calc(100% + .375rem); } /* no room below the field inside a dialog */
.cm-combobox__menu .cm-input { min-height: 2.5rem; }
.cm-combobox__list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.cm-combobox__list .cm-menu__item[hidden], .cm-combobox__list .cm-menu__group[hidden] { display: none; }
.cm-combobox__empty { margin: 0; padding: .75rem; font-size: .8125rem; line-height: 1.25rem; color: var(--text-muted); }
.cm-combobox__head, .cm-combobox__backdrop { display: none; }
@media (max-width: 767.98px) {
  .cm-combobox__backdrop:not([hidden]) { position: fixed; inset: 0; z-index: 1049; display: block; background: var(--overlay); }
  .cm-combobox__menu { position: fixed; top: auto; bottom: 0; max-height: 75vh; padding-bottom: calc(.5rem + env(safe-area-inset-bottom)); border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: none; }
  .cm-combobox__head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .25rem .25rem .5rem .75rem; }
  .cm-combobox__title { font-family: var(--font-heading); font-size: 1rem; line-height: 1.375rem; font-weight: 600; color: var(--ink); }
  .cm-combobox__menu .cm-menu__item { min-height: 2.75rem; }
  .cm-combobox__menu .cm-input { font-size: 1rem; }
}

/* Option cards (radio as tile: e.g. account type) */
.cm-option { position: relative; display: flex; gap: .75rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.cm-option:hover { border-color: var(--line-strong); }
.cm-option:has(input:checked) { border-color: var(--primary); background: var(--surface-mist); }
.cm-option__icon { display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--surface-mist); color: var(--primary); font-size: 1.25rem; }
.cm-option:has(input:checked) .cm-option__icon { background: var(--primary); color: var(--on-primary); }
.cm-option__title { font-family: var(--font-heading); font-size: .9375rem; line-height: 1.25rem; font-weight: 500; color: var(--ink); }
.cm-option__text { font-size: .8125rem; line-height: 1.25rem; color: var(--text-muted); }
.cm-option:has(input:focus-visible) { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.cm-option:has(input:disabled) { cursor: not-allowed; background: var(--surface-alt); }
.cm-option:has(input:disabled):hover { border-color: var(--line); }
.cm-option:has(input:disabled) .cm-option__icon { background: var(--surface); color: var(--text-muted); }

/* ---------- Hero search bar ---------- */
.cm-search { display: flex; align-items: stretch; gap: 0; padding: .5rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.cm-search__seg { position: relative; flex: 1 1 0; display: flex; align-items: center; gap: .75rem; min-width: 0; padding: .375rem 1rem; border-radius: var(--radius-sm); }
.cm-search__seg + .cm-search__seg::before { content: ""; position: absolute; left: 0; top: .625rem; bottom: .625rem; border-left: 1px solid var(--line); }
.cm-search__seg > .bi, .cm-search__seg > .cm-icon { flex: none; font-size: 1.25rem; color: var(--primary); }
.cm-search__seg:focus-within { background: var(--surface-mist); }
.cm-search__field { flex: 1; min-width: 0; }
.cm-search__label { display: block; font-family: var(--font-heading); font-size: .6875rem; line-height: 1rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.cm-search__field input, .cm-search__field select { display: block; width: 100%; padding: 0; border: 0; outline: 0; background-color: transparent; color: var(--ink); font-family: var(--font-body); font-size: .9375rem; line-height: 1.5rem; appearance: none; -webkit-appearance: none; text-overflow: ellipsis; }
.cm-search__field input::placeholder { color: var(--text-muted); }
.cm-search > .cm-btn { align-self: center; margin-left: .5rem; }
/* A select inside a segment (native or the searchable one, Select.md) loses its frame: the segment is the field */
.cm-search__field .cm-select { width: 100%; min-height: 0; padding: 0 1.5rem 0 0; border: 0; border-radius: 0; background-color: transparent; background-position: right 0 center; box-shadow: none; font-size: .9375rem; line-height: 1.5rem; }
.cm-search__field .cm-select:focus, .cm-search__field .cm-combobox.is-open .cm-combobox__toggle { border: 0; box-shadow: none; }
.cm-search__field .cm-combobox__toggle.is-placeholder { color: var(--ink); }
@media (min-width: 768px) { .cm-search__field .cm-combobox__menu { left: -2.75rem; right: auto; top: calc(100% + 1rem); width: max(calc(100% + 4rem), 18rem); } }
.cm-search-hints__count { margin-left: .375rem; font-size: .75rem; color: var(--text-muted); }
.cm-search-hints { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .875rem; font-size: .8125rem; color: var(--text-muted); }
.cm-search-hints a { padding: 2px .75rem; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .7); color: var(--ink); font-size: .8125rem; }
.cm-search-hints a:hover { background: var(--surface); }
@media (max-width: 767.98px) {
  .cm-search { flex-direction: column; padding: .5rem; }
  .cm-search__seg { padding: .625rem .75rem; }
  .cm-search__seg + .cm-search__seg::before { left: .75rem; right: .75rem; top: 0; bottom: auto; border-left: 0; border-top: 1px solid var(--line); }
  .cm-search > .cm-btn { width: 100%; margin: .5rem 0 0; }
}

/* ---------- Filter panel ---------- */
.cm-filters { width: 100%; max-width: var(--sidebar-width); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.cm-filters__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.cm-filters__title { display: flex; align-items: center; gap: .5rem; font-family: var(--font-heading); font-size: 1rem; line-height: 1.375rem; font-weight: 600; color: var(--ink); }
.cm-filters__title .bi { color: var(--primary); }
.cm-filters__group { padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.cm-filters__group > summary { display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: pointer; font-family: var(--font-heading); font-size: .875rem; line-height: 1.25rem; font-weight: 500; color: var(--ink); user-select: none; }
.cm-filters__group > summary::-webkit-details-marker { display: none; }
.cm-filters__group > summary::after { content: "\f282"; font-family: "bootstrap-icons"; font-size: .75rem; color: var(--text-muted); transition: transform .2s ease; }
.cm-filters__group[open] > summary::after { transform: rotate(180deg); }
.cm-filters__body { display: flex; flex-direction: column; gap: .625rem; padding-top: .875rem; }
.cm-filters__more { font-size: .8125rem; }
.cm-filters__foot { display: flex; gap: .5rem; padding: 1rem 1.25rem; }
.cm-filters__foot .cm-btn { flex: 1; }
.cm-active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; }

/* ---------- Cards ---------- */
.cm-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease; }
.cm-card--hover:hover { border-color: transparent; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cm-card--pad { padding: 1.5rem; }
@media (prefers-reduced-motion: reduce) { .cm-card--hover:hover { transform: none; } }
@media (max-width: 575.98px) { .cm-card--pad { padding: 1rem; } }

.cm-logo-mark { flex: none; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: var(--radius-md); background: var(--surface-mist); color: var(--primary); font-family: var(--font-heading); font-size: 1.125rem; line-height: 1; font-weight: 700; letter-spacing: -.02em; }
.cm-logo-mark--sm { width: 2.5rem; height: 2.5rem; border-radius: var(--radius-sm); font-size: .875rem; }
.cm-logo-mark--lg { width: 4.5rem; height: 4.5rem; font-size: 1.375rem; }
.cm-logo-mark--sand { background: var(--surface-sand); color: var(--ink); }
.cm-logo-mark--ink { background: var(--ink); color: var(--on-ink); }
.cm-logo-mark--fleet { background: var(--primary-fleet); color: var(--on-primary); }

.cm-avatar { position: relative; flex: none; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--surface-mist); color: var(--primary); font-family: var(--font-heading); font-size: 1.125rem; font-weight: 600; }
.cm-avatar--sm { width: 2.5rem; height: 2.5rem; font-size: .875rem; }
.cm-avatar--lg { width: 4.5rem; height: 4.5rem; font-size: 1.375rem; }
.cm-avatar__status { position: absolute; right: 0; bottom: 0; width: 1rem; height: 1rem; border: 3px solid var(--surface); border-radius: 50%; background: var(--fresh); }
.cm-avatar--lg .cm-avatar__status { right: 2px; bottom: 2px; }
.cm-meta.cm-meta--online { color: var(--ink); font-weight: 500; }
.cm-meta.cm-meta--online .bi { font-size: .5rem; color: var(--fresh); } /* "Online now": the green dot of the avatar, with the word */

.cm-verified { color: var(--primary); font-size: .9375rem; line-height: 1; }

.cm-meta { display: inline-flex; align-items: center; gap: .375rem; font-size: .8125rem; line-height: 1.25rem; color: var(--text-muted); }
.cm-meta .bi { font-size: .875rem; color: var(--primary); }
.cm-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem 1.125rem; }

.cm-salary { font-family: var(--font-heading); font-size: 1.125rem; line-height: 1.5rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.cm-salary small { font-family: var(--font-body); font-size: .75rem; font-weight: 400; color: var(--text-muted); }

.cm-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cm-facts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cm-facts--plain { padding: 0; border: 0; }
.cm-facts dt { margin-bottom: 2px; font-family: var(--font-heading); font-size: .6875rem; line-height: 1rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.cm-facts dd { font-size: .875rem; line-height: 1.25rem; font-weight: 500; color: var(--ink); }
@media (max-width: 767.98px) { .cm-facts, .cm-facts--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Vacancy card — list row */
.cm-vacancy { display: flex; flex-direction: column; gap: 1.125rem; padding: 1.5rem; }
.cm-vacancy__head { display: flex; align-items: flex-start; gap: 1rem; }
.cm-vacancy__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .375rem; }
.cm-vacancy__rank { font-family: var(--font-heading); font-size: 1.25rem; line-height: 1.625rem; font-weight: 600; color: var(--ink); }
.cm-vacancy__rank a:hover { color: var(--primary); }
.cm-vacancy__company { display: flex; align-items: center; gap: .375rem; font-size: .875rem; line-height: 1.25rem; color: var(--text); }
.cm-vacancy__aside { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; text-align: right; }
.cm-vacancy__foot { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.125rem; }
.cm-vacancy__actions { display: flex; gap: .5rem; margin-left: auto; }

/* Vacancy card — compact row for the company cabinet */
.cm-vacancy--cabinet { padding: 1.125rem 1.375rem; gap: .875rem; }
.cm-vacancy--cabinet .cm-facts { padding: .75rem 0; }

/* One fact picked out from the rest, e.g. Applicants: bigger, bold and primary-coloured instead of the plain cm-facts dd */
.cm-facts__highlight { display: inline-flex; align-items: center; gap: .25rem; font-family: var(--font-heading); font-size: 1.0625rem; line-height: 1.375rem; font-weight: 700; color: var(--primary); }
.cm-facts__highlight .bi { color: inherit; }
a.cm-facts__highlight:hover { color: var(--primary-hover); text-decoration: underline; }
.cm-facts__highlight--plain { color: var(--text-muted); }
@media (max-width: 767.98px) {
  .cm-vacancy { padding: 1rem; gap: .875rem; }
  .cm-vacancy__aside { display: none; }
  .cm-vacancy__actions { width: 100%; margin-left: 0; }
  .cm-vacancy__actions .cm-btn { flex: 1; }
}

/* Vacancy tile — compact, carousel (mirrors Shop 51 product card) */
.cm-vtile { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: 1.25rem 1rem 1.25rem; text-align: center; }
.cm-vtile__flag { position: absolute; top: .75rem; left: .75rem; }
.cm-vtile__save { position: absolute; top: .375rem; right: .375rem; }
.cm-vtile__media { display: grid; place-items: center; width: 100%; height: 7rem; margin-bottom: .625rem; border-radius: var(--radius-sm); background: var(--surface-alt); }
.cm-vtile .t-overline { color: var(--text-muted); }
.cm-vtile__rank { font-family: var(--font-heading); font-size: 1rem; line-height: 1.375rem; font-weight: 500; color: var(--ink); }
.cm-vtile__company { font-size: .8125rem; line-height: 1.25rem; color: var(--text); }
.cm-vtile__meta { font-size: .75rem; line-height: 1.125rem; color: var(--text-muted); }
.cm-vtile .cm-salary { margin-top: .375rem; white-space: normal; }
/* A salary range doesn't fit a narrow tile on one line: the period goes under the amount */
.cm-vtile .cm-salary small { white-space: nowrap; }
@media (max-width: 575.98px) { .cm-vtile .cm-salary { font-size: 1rem; line-height: 1.375rem; } }

/* Testimonial (Testimonial.md): review card on the home page, the author's own review and the star rating input in the cabinet */
.cm-quote { display: flex; flex-direction: column; gap: .875rem; height: 100%; padding: 1.5rem; }
.cm-quote__who { display: flex; align-items: center; gap: .75rem; }
.cm-quote__who b { display: block; font-family: var(--font-heading); font-size: .9375rem; line-height: 1.25rem; font-weight: 600; color: var(--ink); }
.cm-quote__who span { font-size: .8125rem; line-height: 1.125rem; color: var(--text-muted); }
.cm-quote__stars { display: inline-flex; gap: 2px; font-size: .8125rem; color: var(--buoy); }
.cm-quote blockquote { margin: 0; color: var(--text); font-size: .875rem; line-height: 1.5rem; }
.cm-testimonial-own { margin: 0; padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); background: var(--surface-alt); color: var(--text); font-size: .9375rem; line-height: 1.5rem; white-space: pre-line; }
.cm-rating-input__stars { display: flex; align-items: center; gap: .125rem; }
.cm-rating-input__star { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--radius-sm); color: var(--line-strong); font-size: 1.5rem; cursor: pointer; transition: color .15s ease, transform .15s ease; }
.cm-rating-input__star.is-on { color: var(--buoy); }
.cm-rating-input__star:hover { transform: scale(1.08); }
.cm-rating-input__star:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 1px; }
.cm-rating-input.is-invalid .cm-rating-input__star:not(.is-on) { color: var(--danger); }
.cm-rating-input__word { margin-left: .5rem; color: var(--text-muted); font-size: .875rem; line-height: 1.25rem; }
@media (prefers-reduced-motion: reduce) { .cm-rating-input__star { transition: none; } .cm-rating-input__star:hover { transform: none; } }

/* Seafarer card */
.cm-sailor { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; }
.cm-sailor__head { display: flex; align-items: flex-start; gap: 1rem; }
.cm-sailor__id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cm-sailor__id .t-overline { color: var(--primary); }
.cm-sailor__name { display: flex; align-items: center; gap: .375rem; font-family: var(--font-heading); font-size: 1.25rem; line-height: 1.625rem; font-weight: 600; color: var(--ink); }
.cm-sailor__name a:hover { color: var(--primary); }
/* The photo of the card: the 7:9 passport frame of the CV page (.cm-cv-page__photo), smaller; the initials stand in for a missing photo */
.cm-sailor__photo { position: relative; flex: none; display: grid; place-items: center; width: 4.5rem; aspect-ratio: 7 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-mist); color: var(--primary); font-family: var(--font-heading); font-size: 1.375rem; font-weight: 600; text-decoration: none; }
.cm-sailor__photo > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.cm-sailor__photo:hover { color: var(--primary); text-decoration: none; opacity: .92; }
.cm-sailor__foot { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.cm-sailor__foot .cm-progress { flex: 1; min-width: 11.25rem; }
.cm-sailor__mark { display: flex; flex: 1 1 0; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; min-width: 0; }
.cm-sailor__view { margin-left: auto; } /* View CV stays on the right, with or without the mark */
.cm-sailor__wage { font-size: 1rem; line-height: 1.375rem; }
.cm-sailor__save[aria-pressed="true"], [data-cm-shortlist][aria-pressed="true"] > .bi { color: var(--primary); }

/* ShortlistDialog: the company's lists with ticks, then a new list */
.cm-shortlist-picker { gap: .25rem; max-height: 16rem; margin: 0; padding: .25rem 0; overflow-y: auto; border: 0; }
.cm-shortlist-picker .cm-check--row { min-height: 2.75rem; align-items: center; }
.cm-shortlist-picker__new { flex-wrap: nowrap; }
.cm-shortlist-picker__new .cm-input { flex: 1; min-width: 0; }
@media (max-width: 575.98px) { .cm-shortlist-picker__new { flex-wrap: wrap; } .cm-shortlist-picker__new .cm-btn { width: 100%; } }

/* TeamNotes — the team's notes and activity about a seafarer (CV page dialog, applicant card) */
.cm-notes { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.cm-notes__composer { gap: .5rem; }
.cm-notes__filter { align-self: flex-start; flex-wrap: wrap; }
.cm-notes__footer { align-items: center; }
.cm-notes__footer > p { margin: 0 auto 0 0; }
.cm-notes__footer > p:empty, .cm-notes__footer > p[hidden] { display: none; }
.cm-notes__input { min-height: 5.5rem; }
.cm-note { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: .75rem; padding: .875rem 0; border-bottom: 1px solid var(--line); }
.cm-note:last-child { border-bottom: 0; }
.cm-note[hidden] { display: none; }
.cm-note__icon { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: var(--radius-pill); background: var(--surface-mist); color: var(--primary); font-size: 1rem; }
.cm-note--activity .cm-note__icon { background: var(--surface-alt); color: var(--text-muted); }
.cm-note__main { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.cm-note__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .5rem; margin: 0; }
.cm-note__title { font-family: var(--font-heading); font-size: .875rem; line-height: 1.375rem; font-weight: 500; color: var(--ink); }
.cm-note__meta { margin: 0; font-size: .8125rem; line-height: 1.25rem; color: var(--text-muted); }
.cm-note__text { margin: 0; font-size: .9375rem; line-height: 1.5rem; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.cm-note__text--quote { padding: .375rem .75rem; border-radius: var(--radius-sm); background: var(--surface-alt); font-size: .875rem; line-height: 1.375rem; }
.cm-note__actions { display: flex; gap: 1rem; font-size: .8125rem; line-height: 1.25rem; }
.cm-note__actions button { padding: 0; border: 0; background: none; }
.cm-note__actions .cm-note__delete { color: var(--danger); }
.cm-note__confirm { display: flex; flex-direction: column; gap: .5rem; padding: .75rem; border-radius: var(--radius-sm); background: var(--danger-soft); font-size: .875rem; line-height: 1.375rem; color: var(--ink); }
.cm-note__confirm p { margin: 0; }
.cm-note__confirm[hidden], .cm-note__actions[hidden], .cm-notes__composer[hidden] { display: none; }
@media (max-width: 575.98px) { .cm-sailor { padding: 1rem; } .cm-sailor__mark { flex-basis: 100%; } .cm-sailor__view { flex: 1; } }
@media (max-width: 767.98px) { .cm-sailor__photo { width: 3.5rem; font-size: 1.125rem; } }

.cm-doc-list { display: flex; flex-wrap: wrap; gap: .375rem 1rem; }
.cm-doc-list li { display: inline-flex; align-items: center; gap: .375rem; font-size: .8125rem; line-height: 1.25rem; color: var(--text); }
.cm-doc-list .bi { font-size: .875rem; }
.cm-doc-list .is-ok .bi { color: var(--success); }
.cm-doc-list .is-warn .bi { color: var(--warning); }
.cm-doc-list .is-bad .bi { color: var(--danger); }

/* Progress */
.cm-progress { display: flex; flex-direction: column; gap: .375rem; }
.cm-progress__label { display: flex; justify-content: space-between; gap: .75rem; font-size: .8125rem; line-height: 1.125rem; color: var(--text); }
.cm-progress__label b { font-family: var(--font-heading); font-weight: 600; color: var(--ink); }
.cm-progress__bar { height: .375rem; overflow: hidden; border-radius: var(--radius-pill); background: var(--surface-alt); }
.cm-progress__bar > span { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.cm-progress--success .cm-progress__bar > span { background: var(--success); }

/* Company card */
.cm-company { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; }
.cm-company__head { display: flex; align-items: flex-start; gap: 1rem; }
.cm-company__id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .25rem; }
.cm-company__name { display: flex; align-items: center; gap: .375rem; font-family: var(--font-heading); font-size: 1.125rem; line-height: 1.5rem; font-weight: 600; color: var(--ink); }
.cm-company__name a:hover { color: var(--primary); }
.cm-company__type { font-size: .8125rem; line-height: 1.25rem; color: var(--text-muted); }
.cm-company__tagline { font-size: .875rem; line-height: 1.375rem; color: var(--text); }
.cm-rating { display: inline-flex; align-items: center; gap: .25rem; font-size: .8125rem; line-height: 1.25rem; color: var(--text); }
.cm-rating .bi { color: var(--buoy); font-size: .8125rem; }
.cm-rating b { font-family: var(--font-heading); font-weight: 600; color: var(--ink); }
.cm-company__stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.cm-company__stats > div { padding: .625rem .75rem; text-align: center; }
.cm-company__stats > div + div { border-left: 1px solid var(--line); }
.cm-company__stats b { display: block; font-family: var(--font-heading); font-size: 1.125rem; line-height: 1.5rem; font-weight: 600; color: var(--ink); }
.cm-company__stats span { font-size: .75rem; line-height: 1rem; color: var(--text-muted); }
.cm-company__foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }

/* Stat card (dashboard KPI) */
.cm-stat { display: flex; flex-direction: column; gap: .625rem; padding: 1.25rem; }
.cm-stat__top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.cm-stat__label { font-size: .8125rem; line-height: 1.25rem; color: var(--text-muted); }
.cm-stat__icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--surface-mist); color: var(--primary); font-size: 1.125rem; }
.cm-stat__icon--warn { background: var(--warning-soft); color: var(--warning); }
.cm-stat__value { font-family: var(--font-heading); font-size: 2rem; line-height: 2.375rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.cm-stat__foot { display: flex; align-items: center; gap: .5rem; font-size: .75rem; line-height: 1.125rem; color: var(--text-muted); }
.cm-delta { display: inline-flex; align-items: center; gap: 2px; padding: 1px .5rem; border-radius: var(--radius-pill); background: var(--success-soft); color: var(--success); font-weight: 600; font-size: .75rem; }
.cm-delta--down { background: var(--danger-soft); color: var(--danger); }
.cm-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
@media (max-width: 991.98px) { .cm-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Category tile (dashed ring, Shop 51 "Browse By Category") ---------- */
.cm-cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gutter); }
.cm-cat { display: flex; flex-direction: column; align-items: center; gap: .625rem; text-align: center; }
.cm-cat__ring { display: grid; place-items: center; width: 8.5rem; height: 8.5rem; max-width: 100%; aspect-ratio: 1; border: 1px dashed var(--primary); border-radius: 50%; }
.cm-cat__disc { display: grid; place-items: center; width: 82%; height: 82%; border-radius: 50%; background: var(--surface-mist); color: var(--primary); font-size: 2.5rem; transition: background-color .25s ease, color .25s ease; }
.cm-cat:hover .cm-cat__disc { background: var(--primary); color: var(--on-primary); }
.cm-cat__label { font-family: var(--font-heading); font-size: 1rem; line-height: 1.375rem; font-weight: 500; color: var(--ink); }
.cm-cat__count { margin-top: -.5rem; font-size: .8125rem; line-height: 1.25rem; color: var(--text-muted); }
@media (max-width: 991.98px) { .cm-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .cm-cat__ring { width: 6rem; height: 6rem; } .cm-cat__disc { font-size: 1.75rem; } .cm-cat__label { font-size: .875rem; line-height: 1.25rem; } }

/* ---------- Promo banners ---------- */
.cm-promos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.cm-promo { position: relative; display: flex; flex-direction: column; justify-content: center; gap: .625rem; min-height: 15rem; padding: 2rem; overflow: hidden; border-radius: var(--radius-md); }
.cm-promo > * { position: relative; z-index: 1; }
.cm-promo__eyebrow { font-size: .875rem; line-height: 1.25rem; font-weight: 500; }
.cm-promo__title { font-family: var(--font-heading); font-size: 1.75rem; line-height: 2rem; font-weight: 600; letter-spacing: -.01em; }
.cm-promo .cm-btn { align-self: flex-start; margin-top: .5rem; }
.cm-promo__shape { position: absolute; z-index: 0; right: -3.75rem; top: 50%; width: 16.25rem; height: 16.25rem; transform: translateY(-50%); border-radius: 50%; background: rgba(255, 255, 255, .12); }
.cm-promo__shape--ring { right: -1.25rem; width: 11.25rem; height: 11.25rem; border: 1px dashed rgba(255, 255, 255, .55); background: transparent; }
.cm-promo--fleet { background: var(--primary-fleet); color: var(--on-primary); }
.cm-promo--buoy { background: var(--buoy-strong); color: var(--on-primary); }
.cm-promo--primary { background: var(--primary); color: var(--on-primary); }
.cm-promo--fleet .cm-promo__title, .cm-promo--buoy .cm-promo__title, .cm-promo--primary .cm-promo__title { color: var(--on-primary); }
.cm-promo--sand { align-items: center; text-align: center; padding-bottom: 4rem; background: var(--surface-sand); color: var(--text); }
.cm-promo--sand .cm-promo__title { color: var(--ink); font-size: 2rem; line-height: 2.25rem; }
.cm-promo--sand .cm-btn { align-self: center; }
.cm-promo--sand .cm-promo__title .bi { color: var(--primary); }
.cm-promo .cm-marquee { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; }
@media (max-width: 991.98px) { .cm-promos { grid-template-columns: 1fr; } }

/* Hero (sand slide) */
.cm-hero { position: relative; overflow: hidden; padding: 4rem 3.5rem; border-radius: var(--radius-lg); background: var(--surface-sand); }
.cm-hero__eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: .875rem; font-size: .875rem; font-weight: 500; color: var(--ink); }
.cm-hero__lead { max-width: 35rem; margin-top: .875rem; font-size: 1rem; line-height: 1.625rem; color: var(--text); }
@media (max-width: 767.98px) { .cm-hero { padding: 2rem 1.25rem; border-radius: var(--radius-md); } }

/* ---------- Feature strip (Shop 51 trust bar) ---------- */
.cm-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.cm-feature { display: flex; align-items: center; gap: .875rem; }
.cm-feature > .bi { flex: none; font-size: 2.125rem; line-height: 1; color: var(--primary); }
.cm-feature__title { font-family: var(--font-heading); font-size: .9375rem; line-height: 1.25rem; font-weight: 500; color: var(--ink); }
.cm-feature__text { font-size: .8125rem; line-height: 1.125rem; color: var(--text-muted); }
@media (max-width: 991.98px) { .cm-features { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.5rem; } }
@media (max-width: 575.98px) { .cm-features { grid-template-columns: 1fr; } }

/* ---------- Marquee band ---------- */
.cm-marquee { overflow: hidden; background: var(--primary); color: var(--on-primary); }
.cm-marquee__track { display: flex; width: max-content; animation: cm-marquee 40s linear infinite; }
.cm-marquee__list { display: flex; align-items: center; flex: none; }
.cm-marquee__item { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 0; font-family: var(--font-heading); font-size: .8125rem; line-height: 1.25rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.cm-marquee__sep { padding: 0 1.375rem; color: var(--on-primary-muted); font-weight: 400; }
.cm-marquee:hover .cm-marquee__track { animation-play-state: paused; }
.cm-marquee--sand { background: var(--surface-sand-deep); color: var(--ink); }
.cm-marquee--sand .cm-marquee__item { padding: .5rem 0; font-size: .75rem; }
.cm-marquee--sand .cm-marquee__item .bi { color: var(--buoy-strong); }
.cm-marquee--sand .cm-marquee__sep { padding: 0 .5rem; }
@keyframes cm-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .cm-marquee__track { animation: none; } }

/* ---------- Header ---------- */
.cm-header { background: var(--surface); }
/* Language switcher (partials/language-menu): the main row of the site header (--short) and the compact header of layouts.auth */
.cm-lang-select { display: inline-flex; align-items: center; gap: .25rem; padding: 0; border: 0; background: none; font-family: var(--font-heading); font-size: .8125rem; font-weight: 500; color: var(--ink); cursor: pointer; }
.cm-lang-select .bi { color: var(--ink); font-size: .6875rem; }
.cm-lang-select:hover, .cm-lang-select[aria-expanded="true"] { color: var(--primary); }
/* Site header, main row: a globe and the code next to the other icons, a 44px target */
.cm-lang-select--short { gap: .375rem; min-height: var(--tap-target); padding: 0 .625rem; border-radius: var(--radius-pill); font-size: .875rem; }
.cm-lang-select--short .bi-globe2 { font-size: 1.25rem; }
.cm-lang-select--short:hover { background: var(--surface-alt); }
.cm-lang-menu { min-width: 10.625rem; }
.cm-lang-menu [aria-current="true"] { color: var(--primary); font-weight: 500; }

/* Compact header (layouts.auth): wordmark, language, back to the site */
.cm-header-compact { border-bottom: 1px solid var(--line); background: var(--surface); }
.cm-header-compact__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.cm-header-compact__tools { display: flex; align-items: center; gap: 1.5rem; }
.cm-header-compact__back { display: inline-flex; align-items: center; gap: .375rem; min-height: var(--tap-target); font-family: var(--font-heading); font-size: .875rem; font-weight: 500; color: var(--ink); }
.cm-header-compact__back:hover { color: var(--primary); }
.cm-header-compact__back .bi { color: var(--primary); }
@media (max-width: 575.98px) { .cm-header-compact__in { min-height: 3.75rem; } .cm-header-compact .cm-wordmark { font-size: 1.375rem; } .cm-header-compact__tools { gap: 1rem; } }
.cm-header__main { display: flex; align-items: center; gap: 2rem; min-height: var(--header-height); }
.cm-header__search { position: relative; flex: 1; max-width: 40rem; margin: 0 auto; }
.cm-header__search .cm-input { min-height: 3.25rem; padding-right: 3.5rem; border-color: var(--line); }
.cm-header__search .cm-input:hover { border-color: var(--line-strong); }
.cm-header__search .cm-input:focus { border-color: var(--primary); }
.cm-header__search button { position: absolute; right: .375rem; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--primary); font-size: 1.25rem; cursor: pointer; }
.cm-search-suggest { position: absolute; z-index: 1060; top: calc(100% + .375rem); left: 0; right: 0; max-height: min(28rem, 70vh); overflow-y: auto; overscroll-behavior: contain; }
.cm-search-suggest[hidden] { display: none; }
.cm-search-suggest .cm-menu__item { min-height: 2.75rem; text-decoration: none; }
.cm-search-suggest__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-search-suggest__all { margin-top: .25rem; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius-sm) var(--radius-sm); color: var(--primary); font-weight: 500; }
.cm-search-notice { margin-bottom: 1rem; }
.cm-header__tools { display: flex; align-items: center; gap: .375rem; }
.cm-iconbtn { position: relative; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.cm-iconbtn:hover { background: var(--surface-alt); color: var(--primary); }
.cm-iconbtn .cm-count { position: absolute; top: .25rem; right: 2px; }
.cm-account { display: flex; align-items: center; gap: .625rem; margin-left: .375rem; }
button.cm-account { padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.cm-account + .cm-menu .cm-menu__group { text-transform: none; letter-spacing: 0; overflow-wrap: anywhere; }
.cm-account__text { display: flex; flex-direction: column; font-size: .75rem; line-height: 1rem; color: var(--text-muted); }
.cm-account__text b { max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-heading); font-size: .875rem; line-height: 1.125rem; font-weight: 600; color: var(--ink); }
.cm-account__chevron { font-size: .6875rem; color: var(--text-muted); }
button.cm-account:hover .cm-account__text b, button.cm-account[aria-expanded="true"] .cm-account__text b { color: var(--primary); }
.cm-account__menu .cm-menu__item .cm-count { margin-left: auto; }
.cm-account__menu .cm-menu__item .cm-count-text + .cm-count { margin-left: .5rem; }
.cm-catnav { display: flex; align-items: center; gap: .25rem 1.75rem; min-height: 3.5rem; }
.cm-catnav a { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 0; font-family: var(--font-heading); font-size: .9375rem; line-height: 1.25rem; font-weight: 500; color: var(--ink); white-space: nowrap; border-bottom: 2px solid transparent; }
.cm-catnav a .bi { font-size: 1.25rem; color: var(--primary); }
.cm-catnav a .bi-chevron-down { font-size: .6875rem; color: var(--ink); }
.cm-catnav a:hover, .cm-catnav a.is-active { color: var(--primary); }
.cm-catnav a.is-active { border-bottom-color: var(--primary); }
.cm-catnav__end { margin-left: auto; }
.cm-catnav a.cm-btn { padding: .4375rem 1.125rem; border: 1px solid var(--btn-bd); color: var(--btn-fg); }
.cm-catnav a.cm-btn .bi { font-size: .875rem; color: inherit; }
.cm-catnav__hot .bi { color: var(--buoy) !important; }
/* Find Jobs menu (Header): departments, vessel groups, quick picks — three columns, one below 992px */
.cm-jobmenu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.cm-jobmenu .cm-count-text { margin-left: auto; font-size: .75rem; color: var(--text-muted); }
.cm-jobmenu__all { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.cm-jobmenu__all a { color: var(--primary); font-weight: 500; }
.cm-jobmenu__all .bi { margin-left: auto; }
.cm-header__burger { display: none; }
@media (max-width: 991.98px) {
  .cm-catnav, .cm-account__text, .cm-account__chevron, .cm-header__post { display: none !important; }
  .cm-jobmenu { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cm-header__main { flex-wrap: wrap; gap: .5rem; min-height: 4rem; padding-top: .5rem; padding-bottom: .75rem; }
  .cm-header__burger { display: grid; margin-left: -.625rem; }
  .cm-wordmark { font-size: 1.5rem; }
  .cm-header__tools { margin-left: auto; }
  .cm-header__search { order: 3; flex-basis: 100%; max-width: none; }
  .cm-header__search .cm-input { min-height: 2.75rem; }
}

/* ---------- Detail pages: vacancy and company (VacancyPage.md, CompanyPage.md) ---------- */
/* Page head: a band from edge to edge of the window at the top of the page. The element stays in the container
   grid; its background is stretched sideways by a shadow and cut to its own height by clip-path. */
.cm-page-head { --page-head-bg: var(--surface-sand); position: relative; padding: var(--space-6) 0 var(--space-10); background: var(--page-head-bg); box-shadow: 0 0 0 100vmax var(--page-head-bg); clip-path: inset(0 -100vmax); }
.cm-page-head--navy { --page-head-bg: var(--primary-deep); color: var(--on-primary); }
.cm-page-head .cm-breadcrumb { margin-bottom: var(--space-6); }
.cm-page-head__id { display: flex; align-items: center; gap: var(--space-5); min-width: 0; }
.cm-page-head__text { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.cm-page-head__title { font-family: var(--font-heading); font-size: 2.25rem; line-height: 2.75rem; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.cm-page-head__title .cm-verified { font-size: 1.5rem; vertical-align: .125rem; }
.cm-page-head__sub { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .375rem; font-size: .9375rem; line-height: 1.375rem; color: var(--text); }
.cm-page-head__sub .cm-link { font-weight: 500; color: var(--ink); }
.cm-page-head__sub .cm-link:hover { color: var(--primary); }
.cm-page-head__dot { margin: 0 .125rem; color: var(--text-muted); }
.cm-page-head__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--space-2); padding: 0; list-style: none; }
.cm-page-head__chip { display: inline-flex; align-items: center; gap: .375rem; min-height: 2rem; padding: .25rem .875rem; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--on-primary) 12%, transparent); color: var(--on-primary); font-size: .8125rem; line-height: 1.25rem; font-weight: 500; }
a.cm-page-head__chip:hover { background: color-mix(in srgb, var(--on-primary) 22%, transparent); color: var(--on-primary); }
.cm-page-head__contacts { display: flex; flex-direction: column; gap: .5rem; margin: 0; padding: 0; list-style: none; font-size: .875rem; line-height: 1.25rem; }
.cm-page-head__contacts li { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.cm-page-head__contacts a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* On navy: light text, light links, the inverse focus ring */
.cm-page-head--navy .cm-page-head__title { color: var(--on-primary); }
.cm-page-head--navy .cm-page-head__sub, .cm-page-head--navy .cm-breadcrumb, .cm-page-head--navy .cm-breadcrumb a, .cm-page-head--navy .cm-page-head__dot { color: color-mix(in srgb, var(--on-primary) 78%, transparent); }
.cm-page-head--navy .cm-breadcrumb [aria-current] { color: var(--on-primary); }
.cm-page-head--navy .cm-verified, .cm-page-head--navy .bi { color: var(--surface-mist); }
.cm-page-head--navy .cm-page-head__contacts a { color: var(--on-primary); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--on-primary) 40%, transparent); text-underline-offset: 3px; }
.cm-page-head--navy .cm-page-head__contacts a:hover { text-decoration-color: var(--on-primary); }
.cm-page-head--navy :focus-visible { outline: 2px solid var(--focus-ring-inverse); outline-offset: 2px; }
@media (max-width: 767.98px) {
  .cm-page-head { padding: var(--space-4) 0 var(--space-8); }
  .cm-page-head .cm-breadcrumb { margin-bottom: var(--space-4); }
  .cm-page-head__id { align-items: flex-start; gap: var(--space-4); }
  .cm-page-head__id > .cm-logo-mark--lg { width: 3.5rem; height: 3.5rem; font-size: 1.125rem; }
  .cm-page-head__title { font-size: 1.75rem; line-height: 2.25rem; }
}

/* Offer panel: salary, terms and "Apply Now" of a vacancy */
.cm-offer { display: flex; flex-direction: column; gap: .75rem; padding: 1.5rem; border-color: transparent; box-shadow: var(--shadow-lg); }
.cm-offer__urgent { display: inline-flex; align-self: flex-start; align-items: center; gap: .375rem; padding: .25rem .75rem; border-radius: var(--radius-pill); background: var(--buoy-soft); color: var(--ink); font-size: .8125rem; line-height: 1.25rem; font-weight: 500; }
.cm-offer__urgent .bi { color: var(--buoy); }
.cm-offer__salary { font-family: var(--font-heading); font-size: 1.75rem; line-height: 2.25rem; font-weight: 600; color: var(--ink); }
.cm-offer__salary small { font-family: var(--font-body); font-size: .875rem; font-weight: 400; color: var(--text-muted); }
.cm-offer__terms { font-size: .875rem; line-height: 1.375rem; color: var(--text); }
.cm-offer__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .25rem; }
.cm-offer__actions > .cm-btn--block { flex: 1 1 0; width: auto; }
.cm-offer__meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; padding-top: .75rem; border-top: 1px solid var(--line); font-size: .75rem; line-height: 1rem; color: var(--text-muted); }

/* Key facts: the few facts that decide, each with an icon */
.cm-keyfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.cm-keyfact { display: flex; align-items: center; gap: .75rem; min-width: 0; padding: .875rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.cm-keyfact__icon { flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--surface-mist); color: var(--primary); font-size: 1.125rem; }
.cm-keyfact__label { display: block; font-family: var(--font-heading); font-size: .6875rem; line-height: 1rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.cm-keyfact__value { display: block; font-size: .875rem; line-height: 1.25rem; font-weight: 500; color: var(--ink); }
@media (max-width: 575.98px) { .cm-keyfacts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cm-keyfact { flex-direction: column; align-items: flex-start; gap: .5rem; } }

/* Match list: requirements, each met / not met by the seafarer's profile, or plain for other viewers */
.cm-matchlist { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.cm-matchlist__item { display: flex; align-items: flex-start; gap: .75rem; padding: .75rem 0; border-top: 1px solid var(--line); }
.cm-matchlist__item:first-child { padding-top: 0; border-top: 0; }
.cm-matchlist__item > .bi { flex: none; font-size: 1.125rem; line-height: 1.375rem; color: var(--primary); }
.cm-matchlist__item--met > .bi { color: var(--success); }
.cm-matchlist__item--unmet > .bi { color: var(--warning); }
.cm-matchlist__item--wish > .bi { color: var(--text-muted); }
.cm-matchlist__item--unmet { margin: 0 -.75rem; padding: .75rem; border-radius: var(--radius-sm); border-top-color: transparent; background: var(--warning-soft); }
.cm-matchlist__item--unmet + .cm-matchlist__item { border-top-color: transparent; }
.cm-matchlist__item--unmet:first-child { padding-top: .75rem; }
.cm-matchlist__label { display: block; font-size: .875rem; line-height: 1.375rem; font-weight: 500; color: var(--ink); }
.cm-matchlist__note { display: block; margin-top: 2px; font-size: .8125rem; line-height: 1.25rem; color: var(--text); }

/* Spec sheet: a vessel's particulars on sea mist */
.cm-spec { padding: 1.5rem; border-radius: var(--radius-md); background: var(--surface-mist); }
.cm-spec__head { display: flex; align-items: center; gap: .875rem; }
.cm-spec__head + .cm-spec__grid { margin-top: 1.25rem; }
.cm-spec__icon { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: var(--radius-md); background: var(--surface); color: var(--primary); font-size: 1.5rem; }
.cm-spec__title { font-family: var(--font-heading); font-size: 1.125rem; line-height: 1.5rem; font-weight: 600; color: var(--ink); }
.cm-spec__sub { font-size: .8125rem; line-height: 1.25rem; color: var(--text); }
.cm-spec__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1.5rem; margin: 0; }
.cm-spec__grid dt { margin-bottom: 2px; font-family: var(--font-heading); font-size: .6875rem; line-height: 1rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.cm-spec__grid dd { margin: 0; font-size: .875rem; line-height: 1.375rem; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 767.98px) { .cm-spec { padding: 1.25rem 1rem; } .cm-spec__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Apply bar (phones): the salary and "Apply Now" once the offer panel has scrolled away (custom.js) */
.cm-apply-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1020; padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-lg); visibility: hidden; transform: translateY(100%); transition: transform .25s ease, visibility .25s; }
.cm-apply-bar.is-visible { visibility: visible; transform: none; }
.cm-apply-bar__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 40rem; margin: 0 auto; }
.cm-apply-bar__salary { font-family: var(--font-heading); font-size: 1rem; line-height: 1.375rem; font-weight: 600; color: var(--ink); }
.cm-apply-bar__salary small { display: block; font-family: var(--font-body); font-size: .75rem; line-height: 1rem; font-weight: 400; color: var(--text-muted); }
@media (min-width: 992px) { .cm-apply-bar { display: none; } }
@media (max-width: 991.98px) { body:has(.cm-apply-bar) { padding-bottom: 4.5rem; } }
@media (prefers-reduced-motion: reduce) { .cm-apply-bar { transition: none; } }

/* Vacancy row: a company's own vacancies on its page, without its logo and name on every line */
.cm-vacancy-rows { margin: 0; padding: 0; list-style: none; overflow: hidden; }
.cm-vacancy-row { display: grid; grid-template-columns: minmax(0, 1fr) 10rem 12rem auto; align-items: center; gap: 1rem 1.25rem; padding: 1rem 1.25rem; border-top: 1px solid var(--line); transition: background-color .2s ease; }
.cm-vacancy-row:first-child { border-top: 0; }
.cm-vacancy-row:hover { background: var(--surface-alt); }
.cm-vacancy-row__rank { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem .5rem; font-family: var(--font-heading); font-size: 1rem; line-height: 1.375rem; font-weight: 600; color: var(--ink); }
.cm-vacancy-row__rank a { color: inherit; }
.cm-vacancy-row__rank a:hover { color: var(--primary); }
.cm-vacancy-row__meta { margin-top: 2px; font-size: .8125rem; line-height: 1.25rem; color: var(--text-muted); }
.cm-vacancy-row__label { display: block; font-family: var(--font-heading); font-size: .6875rem; line-height: 1rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.cm-vacancy-row__value { display: block; font-size: .875rem; line-height: 1.25rem; font-weight: 500; color: var(--ink); white-space: nowrap; }
.cm-vacancy-row__value small { font-weight: 400; color: var(--text-muted); }
@media (max-width: 1199.98px) { .cm-vacancy-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: .75rem 1.5rem; } .cm-vacancy-row__main { grid-column: 1 / -1; } }
@media (max-width: 767.98px) {
  .cm-vacancy-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .75rem 1rem; padding: 1rem; }
  .cm-vacancy-row__main { grid-column: 1 / -1; }
  .cm-vacancy-row__actions { grid-column: 1 / -1; }
  .cm-vacancy-row__actions .cm-btn { width: 100%; }
}

/* ---------- Tabs ---------- */
.cm-tabs { display: flex; gap: 1.75rem; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.cm-tab { position: relative; display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 0 .875rem; border: 0; background: none; color: var(--text); font-family: var(--font-heading); font-size: .9375rem; line-height: 1.25rem; font-weight: 500; white-space: nowrap; cursor: pointer; }
.cm-tab:hover { color: var(--ink); }
.cm-tab[aria-selected="true"], .cm-tab[aria-current="page"] { color: var(--ink); }
.cm-tab[aria-selected="true"]::after, .cm-tab[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--primary); }
.cm-tab__count { padding: 0 .5rem; border-radius: var(--radius-pill); background: var(--surface-alt); color: var(--text); font-size: .75rem; line-height: 1.25rem; font-weight: 500; }
.cm-tab[aria-selected="true"] .cm-tab__count, .cm-tab[aria-current="page"] .cm-tab__count { background: var(--surface-mist); color: var(--primary); }
a.cm-tab { text-decoration: none; }
a.cm-tab:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: var(--radius-sm); }
.cm-seg { display: inline-flex; gap: .25rem; padding: .25rem; border-radius: var(--radius-pill); background: var(--surface-alt); }
.cm-seg button { min-height: 2.25rem; padding: .375rem 1.125rem; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--text); font-family: var(--font-body); font-size: .8125rem; line-height: 1.25rem; font-weight: 500; cursor: pointer; }
.cm-seg button:hover { color: var(--ink); }
.cm-seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); }
.cm-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.cm-toolbar__count { font-size: .875rem; color: var(--text); }
.cm-toolbar__count b { font-family: var(--font-heading); font-weight: 600; color: var(--ink); }
/* Rank and vessel type filters of the cabinet Vacancies list, between the search and the All / Mine switch */
.cm-vacancies__filter { flex: 1 1 12rem; max-width: 16rem; }
@media (max-width: 575.98px) { .cm-vacancies__filter { max-width: none; } }

/* ---------- Breadcrumb & pagination ---------- */
.cm-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; font-size: .8125rem; line-height: 1.25rem; color: var(--text-muted); }
.cm-breadcrumb a { color: var(--text); }
.cm-breadcrumb a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.cm-breadcrumb .bi { font-size: .625rem; }
.cm-breadcrumb [aria-current] { color: var(--ink); font-weight: 500; }
.cm-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; }
.cm-page { display: grid; place-items: center; min-width: 2.5rem; height: 2.5rem; padding: 0 .625rem; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); font-family: var(--font-heading); font-size: .875rem; font-weight: 500; cursor: pointer; }
.cm-page:hover { border-color: var(--ink); }
.cm-page[aria-current="page"] { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.cm-page--gap { border: 0; background: none; cursor: default; color: var(--text-muted); }
.cm-page:disabled { color: var(--text-disabled); border-color: var(--line); cursor: not-allowed; }
.cm-loadmore { display: flex; flex-direction: column; align-items: center; gap: .625rem; font-size: .8125rem; color: var(--text-muted); }

/* ---------- Dashboard navigation ---------- */
.cm-dash { width: 100%; max-width: var(--sidebar-width); padding: 1.25rem; }
.cm-dash__user { display: flex; align-items: center; gap: .75rem; padding-bottom: 1rem; }
.cm-dash__name { font-family: var(--font-heading); font-size: 1rem; line-height: 1.375rem; font-weight: 600; color: var(--ink); }
.cm-dash__role { font-size: .8125rem; line-height: 1.125rem; color: var(--text-muted); }
.cm-dash .cm-progress { padding: .875rem; border-radius: var(--radius-sm); background: var(--surface-alt); }
.cm-dash__nav { display: flex; flex-direction: column; gap: 2px; margin-top: 1rem; }
.cm-dash__item { display: flex; align-items: center; gap: .75rem; min-height: 2.75rem; padding: .625rem .875rem; border-radius: var(--radius-pill); color: var(--text); font-family: var(--font-heading); font-size: .9375rem; line-height: 1.25rem; font-weight: 500; }
.cm-dash__item .bi { font-size: 1.125rem; color: var(--primary); }
.cm-dash__item:hover { background: var(--surface-alt); color: var(--ink); }
.cm-dash__item[aria-current="page"] { background: var(--surface-mist); color: var(--primary); }
.cm-dash__item .cm-count { margin-left: auto; }
.cm-dash__sep { margin: .625rem 0; border: 0; border-top: 1px solid var(--line); }
.cm-dash__who { flex: 1 1 auto; min-width: 0; }
.cm-dash__toggle { flex: none; width: 2.25rem; height: 2.25rem; margin-left: auto; font-size: 1rem; color: var(--text-muted); }
.cm-avatar--img { object-fit: cover; }
/* A block that folds to nothing: the grid row goes from 1fr to 0fr, so its natural height animates (the child clips) */
.cm-dash__fold { display: grid; grid-template-rows: 1fr; transition: grid-template-rows var(--cm-nav-move), opacity var(--cm-nav-move); }
.cm-dash__fold > * { min-height: 0; overflow: hidden; }
/* Collapsible menu (CabinetLayout): the full menu and the rail are the same markup in two states (`--rail`), so collapsing
   is a transition, not a swap. The card clips what no longer fits; the name and the completeness fold away, the labels
   shrink to nothing (they stay in the page for screen readers and show as a tooltip). Timing: --cm-nav-move. */
:root { --cm-nav-move: .3s ease; }
@media (prefers-reduced-motion: reduce) { :root { --cm-nav-move: 0s; } }
.cm-dash--collapsible { overflow: hidden; transition: padding var(--cm-nav-move), box-shadow .25s ease, border-color .25s ease, transform .25s ease; }
.cm-dash--collapsible .cm-dash__user { position: relative; padding-right: 3rem; transition: padding var(--cm-nav-move); }
.cm-dash--collapsible .cm-dash__user > .cm-avatar, .cm-dash--collapsible .cm-dash__user > .cm-logo-mark { transition: width var(--cm-nav-move), height var(--cm-nav-move), font-size var(--cm-nav-move), margin-left var(--cm-nav-move); }
/* The name keeps its full-menu width in both states (no re-wrapping while the card narrows); the card clips it */
.cm-dash--collapsible .cm-dash__who { flex: none; width: calc(var(--sidebar-width) - 9.75rem - 2px); }
.cm-dash--collapsible .cm-dash__toggle { position: absolute; top: calc(50% - 1.625rem); left: calc(100% - 2.25rem); margin: 0; transition: top var(--cm-nav-move), left var(--cm-nav-move), background-color .2s ease, color .2s ease; }
.cm-dash--collapsible .cm-dash__toggle .bi { transition: transform var(--cm-nav-move); }
.cm-dash--collapsible .cm-dash__user--bare { padding-right: 0; }
.cm-dash--collapsible .cm-dash__user--bare .cm-dash__toggle { position: relative; top: auto; left: auto; margin-left: auto; }
.cm-dash--collapsible .cm-dash__nav { align-items: center; transition: margin-top var(--cm-nav-move); }
.cm-dash--collapsible .cm-dash__item { position: relative; display: grid; grid-template-columns: 1.125rem 1fr; column-gap: .75rem; width: 100%; padding: .625rem .8125rem; transition: width var(--cm-nav-move), column-gap var(--cm-nav-move), grid-template-columns var(--cm-nav-move), background-color .2s ease, color .2s ease; }
.cm-dash--collapsible .cm-dash__label { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; transition: opacity var(--cm-nav-move); }
.cm-dash--collapsible .cm-dash__item .cm-count { position: absolute; top: 50%; right: .875rem; margin: 0; transform: translateY(-50%); transition: top var(--cm-nav-move), right var(--cm-nav-move), transform var(--cm-nav-move); }
.cm-dash--collapsible .cm-dash__sep { width: 100%; }
/* Rail: the menu collapsed to icons (CabinetLayout `wide` pages) */
.cm-dash--rail { padding: .75rem .5rem; }
.cm-dash--rail .cm-dash__fold { grid-template-rows: 0fr; opacity: 0; }
.cm-dash--rail .cm-dash__user { padding: 0 0 3.25rem; }
.cm-dash--rail .cm-dash__user--bare { padding-bottom: .5rem; }
.cm-dash--rail .cm-dash__user > .cm-avatar, .cm-dash--rail .cm-dash__user > .cm-logo-mark { width: 2.5rem; height: 2.5rem; margin-left: calc(50% - 1.25rem); font-size: .875rem; }
.cm-dash--rail .cm-dash__toggle { top: 3rem; left: calc(50% - 1.125rem); }
.cm-dash--rail .cm-dash__user--bare .cm-dash__toggle { margin: 0 auto; }
.cm-dash--rail .cm-dash__toggle .bi { transform: rotate(180deg); }
.cm-dash--rail .cm-dash__nav { margin-top: .25rem; }
.cm-dash--rail .cm-dash__item { grid-template-columns: 1.125rem 0fr; column-gap: 0; width: 2.75rem; }
.cm-dash--rail .cm-dash__label { opacity: 0; }
.cm-dash--rail .cm-dash__item .cm-count { top: 2px; right: 0; transform: none; }

/* ---------- Tooltip ---------- */
/* One bubble per page (CmTooltip + v-tooltip): fixed, its left/top are the anchor's right edge and vertical middle */
.cm-tooltip { position: fixed; z-index: 1090; max-width: 16rem; margin-left: .625rem; padding: .375rem .75rem; border-radius: var(--radius-sm); background: var(--ink); color: var(--on-ink); box-shadow: var(--shadow-md); font-family: var(--font-heading); font-size: .8125rem; line-height: 1.125rem; font-weight: 500; white-space: nowrap; pointer-events: none; opacity: 0; visibility: hidden; transform: translate(-.25rem, -50%); transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s; }
.cm-tooltip::before { content: ""; position: absolute; top: 50%; left: -.25rem; width: .5rem; height: .5rem; border-radius: 1px; background: var(--ink); transform: translateY(-50%) rotate(45deg); }
.cm-tooltip.is-open { opacity: 1; visibility: visible; transform: translate(0, -50%); transition-delay: 0s; }
/* In the design-system preview and docs: in the flow, always shown */
.cm-tooltip--static { position: relative; display: inline-block; margin-left: 0; opacity: 1; visibility: visible; transform: none; }
@media (prefers-reduced-motion: reduce) { .cm-tooltip { transition: none; transform: translate(0, -50%); } }

/* ---------- Mobile navigation ---------- */
.cm-phone { width: 23.4375rem; max-width: 100%; height: 45rem; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 1.75rem; background: var(--surface-alt); box-shadow: var(--shadow-md); }
.cm-appbar { display: flex; align-items: center; gap: .25rem; min-height: 3.75rem; padding: .5rem .5rem .5rem .375rem; border-bottom: 1px solid var(--line); background: var(--surface); }
.cm-appbar .cm-wordmark { font-size: 1.375rem; margin-right: auto; margin-left: .25rem; }
.cm-phone__body { flex: 1; overflow: hidden; display: flex; flex-direction: column; gap: .75rem; padding: 1rem; }
.cm-tabbar { display: grid; grid-template-columns: repeat(5, 1fr); padding: .375rem .25rem calc(.375rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.cm-tabbar a, .cm-tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 3.25rem; padding: .375rem 0 0; border: 0; background: none; color: var(--text-muted); font-family: var(--font-body); font-size: .6875rem; line-height: .875rem; font-weight: 500; cursor: pointer; }
.cm-tabbar a .bi, .cm-tabbar button .bi { font-size: 1.375rem; line-height: 1.5rem; }
.cm-tabbar a[aria-current="page"], .cm-tabbar button.is-active, .cm-tabbar button[aria-expanded="true"] { color: var(--primary); }
.cm-tabbar a[aria-current="page"]::before, .cm-tabbar button.is-active::before { content: ""; position: absolute; top: -.4375rem; width: 1.75rem; height: 3px; border-radius: 0 0 3px 3px; background: var(--primary); }
.cm-tabbar .cm-count { position: absolute; top: 2px; left: 50%; margin-left: .375rem; }
.cm-phone .cm-vacancy { padding: 1rem; gap: .875rem; }
.cm-phone .cm-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cm-phone .cm-vacancy__actions { width: 100%; margin-left: 0; }
.cm-phone .cm-vacancy__actions .cm-btn { flex: 1; }
.cm-drawer { position: relative; flex: 1; background: var(--overlay); }
.cm-drawer__panel { position: absolute; inset: 0 3.5rem 0 0; display: flex; flex-direction: column; overflow: hidden; background: var(--surface); }
.cm-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: .875rem .75rem .875rem 1.25rem; border-bottom: 1px solid var(--line); }
.cm-drawer__nav { display: flex; flex-direction: column; padding: .625rem; }
.cm-drawer__nav a { display: flex; align-items: center; gap: .75rem; min-height: 3rem; padding: .625rem .75rem; border-radius: var(--radius-sm); font-family: var(--font-heading); font-size: .9375rem; font-weight: 500; color: var(--ink); }
.cm-drawer__nav a .bi { font-size: 1.25rem; color: var(--primary); }
.cm-drawer__nav a .bi-chevron-right { margin-left: auto; font-size: .75rem; color: var(--text-muted); }
.cm-drawer__foot { margin-top: auto; display: flex; flex-direction: column; gap: .5rem; padding: 1rem 1.25rem 1.25rem; border-top: 1px solid var(--line); }

/* ---------- Footer ---------- */
.cm-newsletter { background: var(--surface-sand); }
.cm-newsletter__in { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding-top: 1.75rem; padding-bottom: 1.75rem; }
.cm-newsletter__title { font-family: var(--font-heading); font-size: 1.25rem; line-height: 1.625rem; font-weight: 600; color: var(--ink); }
.cm-newsletter__text { font-size: .8125rem; color: var(--text); }
.cm-newsletter__intro { flex: 1 1 16rem; }
.cm-newsletter__form { flex: 3 1 40rem; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: .5rem; align-items: start; }
.cm-newsletter__field { min-width: 0; }
.cm-newsletter__field .cm-combobox__menu { min-width: 16rem; }
.cm-newsletter__wide { grid-column: 1 / -1; }
.cm-newsletter__note { font-size: .75rem; line-height: 1.125rem; color: var(--text-muted); }
.cm-newsletter__done { flex: 3 1 40rem; display: flex; align-items: center; gap: .75rem; font-size: .875rem; line-height: 1.375rem; color: var(--text); }
.cm-newsletter__done strong { color: var(--ink); }
.cm-footer { background: var(--primary); color: var(--on-primary-muted); font-size: .8125rem; line-height: 1.375rem; }
.cm-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem var(--gutter); padding-top: 3.5rem; padding-bottom: 3rem; }
.cm-footer h4 { margin-bottom: .875rem; font-family: var(--font-heading); font-size: .9375rem; line-height: 1.25rem; font-weight: 600; color: var(--on-primary); }
.cm-footer__links { display: flex; flex-direction: column; gap: .375rem; }
.cm-footer a { color: var(--on-primary-muted); }
.cm-footer a:hover { color: var(--on-primary); text-decoration: underline; text-underline-offset: 3px; }
.cm-footer__about { max-width: 18.75rem; margin: .875rem 0 .5rem; }
.cm-footer .cm-footer__more { display: inline-flex; align-items: center; gap: .375rem; margin-bottom: 1.125rem; color: var(--on-primary); font-weight: 500; }
.cm-social { display: flex; gap: .5rem; }
.cm-social a { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--on-primary); color: var(--primary); font-size: .9375rem; }
.cm-social a:hover { background: var(--on-primary-muted); color: var(--primary-hover); text-decoration: none; }
.cm-footer__contact li { display: flex; gap: .625rem; margin-bottom: .5rem; }
.cm-footer__contact .bi { color: var(--on-primary); }
.cm-footer__bottom { background: var(--primary-deep); }
.cm-footer__bottom-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; min-height: 3.5rem; padding-top: .75rem; padding-bottom: .75rem; font-size: .75rem; }
.cm-footer__bottom-in nav { display: flex; flex-wrap: wrap; gap: .375rem 1.25rem; }
@media (max-width: 991.98px) { .cm-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 991.98px) { .cm-newsletter__form { flex-basis: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); } .cm-newsletter__form > .cm-newsletter__field:first-of-type { grid-column: 1 / -1; } }
@media (max-width: 575.98px) { .cm-footer__grid { grid-template-columns: 1fr; } .cm-newsletter__form { grid-template-columns: 1fr; } }

/* ---------- Badges, tags, counters ---------- */
.cm-badge { display: inline-flex; align-items: center; gap: .25rem; height: 1.375rem; padding: 0 .625rem; border-radius: var(--radius-pill); font-family: var(--font-heading); font-size: .625rem; line-height: 1; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.cm-badge .bi { font-size: .6875rem; }
.cm-badge--fresh { background: var(--fresh); color: var(--on-fresh); }
.cm-badge--buoy { background: var(--buoy); color: var(--on-buoy); }
.cm-badge--primary { background: var(--primary); color: var(--on-primary); }
.cm-badge--ink { background: var(--ink); color: var(--on-ink); }
.cm-badge--sand { background: var(--surface-sand-deep); color: var(--ink); }
.cm-badge--outline { border: 1px solid var(--primary); color: var(--primary); }
.cm-tag { display: inline-flex; align-items: center; gap: .375rem; height: 1.75rem; padding: 0 .75rem; border-radius: var(--radius-pill); background: var(--surface-alt); color: var(--ink); font-size: .75rem; line-height: 1; font-weight: 500; white-space: nowrap; }
.cm-tag .bi { font-size: .8125rem; color: var(--primary); }
.cm-tag--mist { background: var(--surface-mist); color: var(--primary-hover); }
.cm-tag--line { border: 1px solid var(--line); background: var(--surface); }
a.cm-tag:hover, button.cm-tag:hover { background: var(--surface-mist); color: var(--primary-hover); }
/* Show more (ShowMore.md): the first items of a comma list, the rest behind a chevron "+N" */
.cm-more__toggle { display: inline-flex; align-items: center; gap: .25rem; min-height: 1.5rem; margin-left: .375rem; padding: 0 .5rem; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); color: var(--primary); font-family: var(--font-heading); font-size: .75rem; line-height: 1; font-weight: 600; vertical-align: middle; cursor: pointer; }
.cm-more__toggle:hover { background: var(--surface-mist); color: var(--primary-hover); }
.cm-more__toggle .bi { font-size: .75rem; transition: transform .15s ease; }
.cm-more__toggle[aria-expanded="true"] .bi { transform: rotate(180deg); }
.cm-more__toggle[aria-expanded="true"] .cm-more__count, .cm-more__toggle[aria-expanded="true"] .cm-more__closed, .cm-more__toggle[aria-expanded="false"] .cm-more__open { display: none; }
@media (prefers-reduced-motion: reduce) { .cm-more__toggle .bi { transition: none; } }
.cm-count { display: inline-grid; place-items: center; min-width: 1.125rem; height: 1.125rem; padding: 0 .3125rem; border-radius: var(--radius-pill); background: var(--danger); color: var(--on-primary); font-family: var(--font-heading); font-size: .625rem; line-height: 1; font-weight: 600; }
.cm-count--warn { background: var(--warning-fill); color: var(--ink); }
.cm-count--muted { background: var(--surface-alt); color: var(--text); }
.cm-count--primary { background: var(--primary); color: var(--on-primary); }
.cm-dot { display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--fresh); }
.cm-dot--muted { background: var(--line-strong); }

/* ---------- Application status ---------- */
.cm-status { display: inline-flex; align-items: center; gap: .375rem; height: 1.75rem; padding: 0 .75rem 0 .625rem; border-radius: var(--radius-pill); background: var(--surface-alt); color: var(--ink); font-size: .75rem; line-height: 1; font-weight: 600; white-space: nowrap; }
.cm-status .bi { font-size: .875rem; }
.cm-status--draft { border: 1px dashed var(--line-strong); background: var(--surface); color: var(--text-muted); }
.cm-status--sent { background: var(--surface-alt); color: var(--ink); }
.cm-status--viewed, .cm-status--info { background: var(--info-soft); color: var(--info); }
.cm-status--shortlisted { background: var(--buoy-soft); color: var(--buoy-strong); }
.cm-status--interview, .cm-status--warning { background: var(--warning-soft); color: var(--warning); }
.cm-status--offer, .cm-status--success { background: var(--success-soft); color: var(--success); }
.cm-status--signed { background: var(--success); color: var(--on-primary); }
.cm-status--rejected, .cm-status--danger { background: var(--danger-soft); color: var(--danger); }
.cm-status--withdrawn { background: var(--surface-alt); color: var(--text-muted); text-decoration: line-through; text-decoration-thickness: 1px; }

.cm-steps { display: flex; gap: 0; counter-reset: step; }
.cm-step { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; }
.cm-step::before { content: ""; position: absolute; top: .9375rem; left: -50%; right: 50%; height: 2px; background: var(--line); }
.cm-step:first-child::before { display: none; }
.cm-step__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 2rem; height: 2rem; border: 2px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--text-muted); font-size: .875rem; font-family: var(--font-heading); font-weight: 600; }
.cm-step__label { font-family: var(--font-heading); font-size: .8125rem; line-height: 1.125rem; font-weight: 500; color: var(--text-muted); }
.cm-step__date { margin-top: -.375rem; font-size: .75rem; line-height: 1rem; color: var(--text-muted); }
.cm-step.is-done::before, .cm-step.is-current::before { background: var(--primary); }
.cm-step.is-done .cm-step__dot { border-color: var(--primary); background: var(--primary); color: var(--on-primary); }
.cm-step.is-current .cm-step__dot { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 .25rem var(--focus-halo); }
.cm-step.is-done .cm-step__label, .cm-step.is-current .cm-step__label { color: var(--ink); }
@media (max-width: 575.98px) {
  .cm-steps { flex-direction: column; gap: .875rem; }
  .cm-step { flex-direction: row; text-align: left; gap: .75rem; }
  .cm-step::before { left: .9375rem; right: auto; top: -1rem; width: 2px; height: 1rem; }
  .cm-step__date { margin: 0 0 0 auto; }
}

/* ---------- Documents ---------- */
.cm-docs { overflow: hidden; }
.cm-docs__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line); }
.cm-doc { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) auto auto; align-items: center; gap: 1rem; padding: 1rem 1.5rem; border-bottom: 1px solid var(--line); }
.cm-doc:last-child { border-bottom: 0; }
.cm-doc__icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--radius-sm); background: var(--surface-mist); color: var(--primary); font-size: 1.25rem; }
.cm-doc__title { font-family: var(--font-heading); font-size: .9375rem; line-height: 1.25rem; font-weight: 500; color: var(--ink); }
.cm-doc__meta { font-size: .8125rem; line-height: 1.25rem; color: var(--text-muted); }
.cm-doc.is-expiring { background: var(--warning-soft); }
.cm-doc.is-expiring .cm-doc__icon, .cm-doc.is-expiring .cm-status { background: var(--surface); color: var(--warning); }
.cm-doc.is-expired .cm-doc__icon { background: var(--danger-soft); color: var(--danger); }
.cm-doc__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
@media (max-width: 575.98px) {
  .cm-doc { grid-template-columns: 2.5rem minmax(0, 1fr) auto; padding: .875rem 1rem; gap: .75rem; }
  .cm-doc > .cm-logo-mark { align-self: start; }
  .cm-doc .cm-status { grid-column: 2 / 4; justify-self: start; }
  .cm-doc__actions, .cm-doc > .cm-seg { grid-column: 2 / 4; justify-content: flex-start; justify-self: start; }
  .cm-doc__actions:empty { display: none; }
  .cm-doc__icon { width: 2.5rem; height: 2.5rem; }
  .cm-docs__head { padding: 1rem; }
}

/* ---------- Data tables (CV: key-value form and record tables) ---------- */
.cm-kvtable { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .875rem; line-height: 1.25rem; }
.cm-kvtable th, .cm-kvtable td { padding: .625rem .875rem; border: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.cm-kvtable th { width: 18%; background: var(--surface-alt); font-family: var(--font-heading); font-size: .6875rem; line-height: 1.25rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); text-align: left; }
.cm-kvtable td { color: var(--ink); font-weight: 500; }
.cm-datatable__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cm-datatable { width: 100%; border-collapse: collapse; font-size: .8125rem; line-height: 1.25rem; }
.cm-datatable th, .cm-datatable td { padding: .625rem .75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cm-datatable thead th { background: var(--surface-alt); font-family: var(--font-heading); font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; }
.cm-datatable td { color: var(--ink); }
.cm-datatable tbody tr:hover td { background: var(--surface-alt); }
.cm-datatable .is-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cm-datatable .is-nowrap { white-space: nowrap; }
.cm-datatable__group th { padding-top: 1rem; background: var(--surface); font-family: var(--font-heading); font-size: .8125rem; font-weight: 600; color: var(--primary); }
.cm-datatable tbody tr.cm-datatable__group:hover th { background: var(--surface); }
.cm-datatable__sub { display: block; font-size: .75rem; color: var(--text-muted); }

/* EditableTable: the seafarer profile form edited in place like a spreadsheet (docs/design-system/components/EditableTable.md).
   .cm-sheet-card — card that doesn't clip (menus of the cells open over it); .cm-kvtable--edit — form "label → value";
   .cm-sheet — table of records with inputs in the cells; .cm-savestate — autosave status. */
.cm-sheet-card { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.cm-sheet-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.cm-sheet-card__head h2, .cm-sheet-card__head h3 { margin: 0; }
.cm-sheet-card__head > :first-child { flex: 1 1 20rem; min-width: 0; }
/* A control in the card head (search "+ Add a document"): wide on desktop, the whole line on phones */
.cm-sheet-card__tool { flex: 0 1 28rem; min-width: 16rem; }
.cm-sheet-card__text { margin: 2px 0 0; font-size: .8125rem; line-height: 1.125rem; color: var(--text-muted); }
.cm-sheet-card__foot { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .75rem 1.25rem; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--text-muted); }
.cm-sheet-card .cm-kvtable { border-style: hidden; }

.cm-sheet-input, .cm-sheet .cm-select, .cm-kvtable--edit .cm-select, .cm-sheet .cm-datepicker .cm-input, .cm-kvtable--edit .cm-datepicker .cm-input { min-height: 2.25rem; padding: .375rem .625rem; border-color: transparent; background-color: transparent; font-size: .8125rem; line-height: 1.375rem; }
.cm-sheet .cm-select, .cm-kvtable--edit .cm-select { padding-right: 1.75rem; background-position: right .5rem center; }
.cm-sheet-input:hover, .cm-sheet .cm-select:hover, .cm-kvtable--edit .cm-select:hover, .cm-sheet .cm-datepicker .cm-input:hover, .cm-kvtable--edit .cm-datepicker .cm-input:hover { border-color: var(--line-strong); background-color: var(--surface); }
.cm-sheet-input:focus, .cm-sheet .cm-select:focus, .cm-kvtable--edit .cm-select:focus, .cm-sheet .cm-datepicker .cm-input:focus, .cm-kvtable--edit .cm-datepicker .cm-input:focus { background-color: var(--surface); }
.cm-sheet-input[aria-invalid="true"], .cm-sheet .cm-select[aria-invalid="true"], .cm-kvtable--edit .cm-select[aria-invalid="true"], .cm-sheet .cm-datepicker .cm-input[aria-invalid="true"], .cm-kvtable--edit .cm-datepicker .cm-input[aria-invalid="true"] { border-color: var(--danger); background-color: var(--danger-soft); }
.cm-sheet-input.cm-textarea { min-height: 6rem; resize: vertical; }
.cm-sheet-input.is-num { text-align: right; font-variant-numeric: tabular-nums; }
.cm-sheet .cm-datepicker .cm-control--action > .cm-input, .cm-kvtable--edit .cm-datepicker .cm-control--action > .cm-input { padding-right: 2.125rem; }
.cm-sheet .cm-control__btn, .cm-kvtable--edit .cm-control__btn { right: 2px; width: 1.875rem; height: 1.875rem; }
.cm-sheet .cm-combobox__menu, .cm-kvtable--edit .cm-combobox__menu { right: auto; width: max(100%, 18.75rem); }
.cm-sheet .cm-combobox__chips, .cm-kvtable--edit .cm-combobox__chips { margin: .25rem .375rem; }
.cm-sheet-error { display: flex; gap: .25rem; margin: 2px 0 0; padding: 0 2px; font-size: .75rem; line-height: 1rem; color: var(--danger); }
.cm-sheet-error .bi { margin-top: 1px; }
.cm-sheet-hint { margin: 2px 0 0; padding: 0 2px; font-size: .75rem; line-height: 1rem; color: var(--text-muted); }
.cm-sheet-hint--inset { padding-left: .6875rem; }
.cm-sheet-static { display: block; padding: .4375rem .625rem; font-size: .8125rem; line-height: 1.375rem; color: var(--text-muted); }
.cm-sheet-check { display: grid; place-items: center; min-height: 2.25rem; }

/* Form "label → value" edited in place */
.cm-kvtable--edit th { vertical-align: middle; }
.cm-kvtable--edit td { padding: .25rem; font-weight: 400; vertical-align: middle; }
.cm-kvtable--edit th .cm-req { margin-left: 2px; color: var(--danger); }
.cm-kvtable--edit .cm-row { padding: .25rem .375rem; }
.cm-sheet-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1.25fr); gap: .25rem; }

/* Table of records */
.cm-sheet { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .8125rem; line-height: 1.25rem; }
.cm-sheet th, .cm-sheet td { padding: .25rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cm-sheet thead th { padding: .625rem .875rem; background: var(--surface-alt); font-family: var(--font-heading); font-size: .6875rem; line-height: 1rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-sheet thead th .cm-req { margin-left: 2px; color: var(--danger); }
.cm-sheet tbody tr:last-child > td { border-bottom: 0; }
.cm-sheet .is-num { text-align: right; }
.cm-sheet tbody:not(.cm-sheet__record) tr:not(.cm-sheet__group):hover > td, .cm-sheet tbody.cm-sheet__record:hover > tr > td { background: var(--surface-alt); }
/* Record in two lines (sea service, references): every field visible, the lines sit close together */
.cm-sheet__subhead th { padding-top: 0; font-weight: 500; }
.cm-sheet--records thead tr:first-child th { padding-bottom: .25rem; }
.cm-sheet--records tbody.cm-sheet__record > tr:first-child > td { padding-bottom: 0; border-bottom: 0; }
.cm-sheet--records tbody.cm-sheet__record > tr.cm-sheet__line2 > td { padding-top: 2px; border-bottom: 1px solid var(--line); }
.cm-sheet--records tbody.cm-sheet__record:last-child > tr > td { border-bottom: 0; }
.cm-sheet-input--caps { text-transform: uppercase; }
.cm-sheet-input--caps::placeholder { text-transform: none; }
.cm-sheet__warn { margin-left: .25rem; color: var(--warning); }
.cm-sheet-card__foot--top { border-top: 0; border-bottom: 1px solid var(--line); }
.cm-sheet__group th { padding: .875rem .875rem .375rem; border-bottom: 1px solid var(--line); background: var(--surface); font-family: var(--font-heading); font-size: .8125rem; font-weight: 600; color: var(--primary); }
.cm-sheet__group .cm-sheet-hint { display: inline; margin-left: .5rem; font-family: var(--font-body); font-weight: 400; }
.cm-sheet__name { padding: .4375rem .625rem; font-weight: 500; color: var(--ink); }
.cm-sheet__name small { display: block; font-size: .75rem; font-weight: 400; color: var(--text-muted); }
.cm-sheet__calc { display: block; padding: .4375rem .375rem; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cm-sheet__actions { display: flex; align-items: center; justify-content: flex-end; gap: 2px; min-height: 2.25rem; }
.cm-sheet__actions .cm-iconbtn { width: 2rem; height: 2rem; font-size: .9375rem; color: var(--text-muted); }
.cm-sheet__actions .cm-iconbtn:hover { color: var(--ink); }
.cm-sheet__actions .cm-iconbtn--danger:hover { background: var(--danger-soft); color: var(--danger); }
.cm-sheet__state { display: grid; place-items: center; width: 1.5rem; height: 2rem; font-size: .875rem; color: var(--text-muted); }
.cm-sheet__state.is-saved { color: var(--success); }
.cm-sheet__state.is-error { color: var(--danger); }
.cm-sheet__state .cm-spinner { width: .75rem; height: .75rem; }
.cm-sheet__empty { padding: 1.5rem 1rem !important; text-align: center; color: var(--text-muted); }
.cm-sheet__summary { display: flex; flex-wrap: wrap; gap: .375rem 1.25rem; font-size: .8125rem; color: var(--text); }
.cm-sheet__summary b { font-family: var(--font-heading); font-weight: 600; color: var(--ink); }

/* Autosave status */
.cm-savestate { display: inline-flex; align-items: center; gap: .5rem; min-height: 2rem; font-size: .8125rem; line-height: 1.125rem; color: var(--text-muted); }
.cm-savestate .bi { font-size: 1rem; }
.cm-savestate .cm-spinner { width: .875rem; height: .875rem; }
.cm-savestate--saved .bi { color: var(--success); }
.cm-savestate--offline, .cm-savestate--attention { color: var(--warning); }
.cm-savestate--error, .cm-savestate--expired { color: var(--danger); }
.cm-savestate--local .bi { color: var(--info); }
.cm-savestate .cm-link { padding: 0; border: 0; background: none; font-size: .8125rem; }

/* Tab progress marks */
.cm-tab__done { font-size: .9375rem; color: var(--success); }
.cm-tab[aria-disabled="true"] { color: var(--text-disabled); cursor: not-allowed; }
.cm-tab__count--warn, .cm-tab[aria-selected="true"] .cm-tab__count--warn { background: var(--warning-soft); color: var(--warning); }

@media (max-width: 991.98px) {
  .cm-sheet, .cm-sheet tbody, .cm-sheet tr, .cm-sheet td { display: block; }
  .cm-sheet thead { display: none; }
  .cm-sheet tbody:not(.cm-sheet__record) tr:not(.cm-sheet__group) { margin: .75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
  .cm-sheet tbody tr:hover > td { background: none !important; }
  .cm-sheet td, .cm-sheet tbody tr:last-child > td { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: center; gap: 0 .5rem; padding: .25rem .5rem; border-bottom: 1px solid var(--line); }
  .cm-sheet td:last-child { border-bottom: 0; }
  .cm-sheet td::before { content: attr(data-label); font-family: var(--font-heading); font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
  .cm-sheet td:not([data-label])::before { display: none; }
  .cm-sheet td:not([data-label]) { grid-template-columns: 1fr; }
  .cm-sheet td > :not(:first-child) { grid-column: 2; }
  .cm-sheet td:not([data-label]) > * { grid-column: 1; }
  .cm-sheet .cm-sheet-input, .cm-sheet .cm-select, .cm-sheet .cm-datepicker .cm-input { border-color: var(--line); background-color: var(--surface); font-size: 1rem; }
  .cm-sheet .is-num, .cm-sheet .cm-sheet-input.is-num { text-align: left; }
  .cm-sheet__group th { display: block; padding: 1rem .75rem 0; border: 0; }
  .cm-sheet__actions { justify-content: flex-start; }
  .cm-sheet--records tbody.cm-sheet__record { margin: .75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
  .cm-sheet--records tbody.cm-sheet__record > tr { margin: 0 !important; border: 0 !important; border-radius: 0; }
  .cm-sheet--records tbody.cm-sheet__record > tr > td { padding: .25rem .5rem; border-bottom: 1px solid var(--line); }
  .cm-sheet--records tbody.cm-sheet__record > tr.cm-sheet__line2 > td:last-child { border-bottom: 0; }
}
@media (max-width: 767.98px) {
  .cm-kvtable.cm-kvtable--edit tr { grid-template-columns: 1fr; }
  .cm-kvtable.cm-kvtable--edit th { border-bottom: 0; }
  .cm-kvtable--edit .cm-sheet-input, .cm-kvtable--edit .cm-select, .cm-kvtable--edit .cm-datepicker .cm-input { border-color: var(--line); background-color: var(--surface); font-size: 1rem; }
  .cm-sheet-pair { grid-template-columns: 1fr 1fr; }
  .cm-sheet-pair > :first-child { grid-column: 1 / -1; }
  .cm-sheet td, .cm-sheet tbody tr:last-child > td { grid-template-columns: 1fr; gap: 2px; }
  .cm-sheet td > :not(:first-child) { grid-column: 1; }
  .cm-sheet-card__head, .cm-sheet-card__foot { padding-left: 1rem; padding-right: 1rem; }
  .cm-sheet-card__tool { flex-basis: 100%; min-width: 0; }
}
@media (max-width: 767.98px) {
  .cm-kvtable, .cm-kvtable tbody { display: block; }
  .cm-kvtable tr { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .cm-kvtable th, .cm-kvtable td { display: block; width: auto; margin: 0 -1px -1px 0; }
  .cm-kvtable td[colspan] { grid-column: auto; }
  .cm-datatable--stack, .cm-datatable--stack tbody, .cm-datatable--stack tr, .cm-datatable--stack td { display: block; }
  .cm-datatable--stack thead { display: none; }
  .cm-datatable--stack tbody tr:not(.cm-datatable__group) { margin-bottom: .75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
  .cm-datatable--stack tbody tr:hover td { background: none; }
  .cm-datatable--stack .cm-datatable__group th { display: block; padding: .5rem 0; border: 0; }
  .cm-datatable--stack td { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: .75rem; padding: .5rem .75rem; }
  .cm-datatable--stack td:last-child { border-bottom: 0; }
  .cm-datatable--stack td::before { content: attr(data-label); font-family: var(--font-heading); font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
  .cm-datatable--stack .is-num { text-align: left; }
  .cm-datatable--stack .cm-datatable__sub { grid-column: 2; margin-top: -.5rem; }
}

/* ---------- Alerts ---------- */
.cm-alert { display: flex; align-items: flex-start; gap: .75rem; padding: .875rem 1rem; border-radius: var(--radius-md); background: var(--info-soft); color: var(--ink); font-size: .875rem; line-height: 1.375rem; }
.cm-alert > .bi { flex: none; margin-top: 1px; font-size: 1.25rem; line-height: 1.25rem; color: var(--info); }
.cm-alert__body { flex: 1; min-width: 0; }
.cm-alert__title { font-family: var(--font-heading); font-weight: 600; color: var(--ink); }
.cm-alert__text { color: var(--text); }
/* Two classes: porto-bridge.css resets lists with a cm-* class to "none" at (0,1,1). */
.cm-alert .cm-alert__list { margin: .25rem 0; padding-left: 1.125rem; color: var(--text); list-style: disc; }
.cm-alert .cm-alert__list li + li { margin-top: .125rem; }
.cm-alert__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: .5rem; }
.cm-alert__close { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; margin: -.375rem -.375rem 0 0; border: 0; border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; }
.cm-alert__close:hover { background: rgba(34, 37, 41, .06); color: var(--ink); }

/* ContactReveal — "Show Contacts" on a CV of the seafarer base (docs/design-system/components/ContactReveal.md).
   Mist panel with the icon, what opens, the error line and the employer button with the quota under it. */
.cm-reveal { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-bottom: var(--space-4); padding: 1rem 1.25rem; border-radius: var(--radius-md); background: var(--surface-mist); }
.cm-reveal__icon { flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--surface); color: var(--primary); font-size: 1.25rem; }
.cm-reveal__body { flex: 1 1 18rem; min-width: 0; font-size: .875rem; line-height: 1.375rem; }
.cm-reveal__title { font-family: var(--font-heading); font-weight: 600; color: var(--ink); }
.cm-reveal__text { color: var(--text); }
.cm-reveal__error { margin-top: .25rem; color: var(--danger); font-weight: 500; }
.cm-reveal__action { display: flex; flex-direction: column; align-items: center; gap: .25rem; flex: none; }
.cm-reveal__quota { font-size: .75rem; line-height: 1rem; color: var(--text-muted); }
@media (max-width: 575.98px) {
	.cm-reveal__action { flex: 1 1 100%; align-items: stretch; text-align: center; }
}
.cm-alert--success { background: var(--success-soft); }
.cm-alert--success > .bi { color: var(--success); }
.cm-alert--warning { background: var(--warning-soft); }
.cm-alert--warning > .bi { color: var(--warning); }
.cm-alert--danger { background: var(--danger-soft); }
.cm-alert--danger > .bi { color: var(--danger); }
.cm-alert--banner { border-radius: 0; justify-content: center; }
/* Language hint (partials/language-hint, Header.md → «Язык»): one centred line over the header, close button after it. */
.cm-lang-hint { align-items: center; }
.cm-lang-hint > .bi { margin-top: 0; }
.cm-lang-hint .cm-alert__close { margin: 0; }

/* ---------- Notifications ---------- */
.cm-notify { width: 23.75rem; max-width: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-lg); }
.cm-notify__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.cm-notify__title { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: var(--ink); }
.cm-notify__item { position: relative; display: flex; gap: .75rem; padding: .875rem 1.25rem .875rem 1.25rem; border-bottom: 1px solid var(--line); }
.cm-notify__item:hover { background: var(--surface-alt); }
.cm-notify__item.is-unread { background: var(--surface-mist); }
.cm-notify__item.is-unread::after { content: ""; position: absolute; top: 1.25rem; right: 1rem; width: .5rem; height: .5rem; border-radius: 50%; background: var(--primary); }
.cm-notify__icon { flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--surface); color: var(--primary); font-size: 1.125rem; border: 1px solid var(--line); }
.cm-notify__icon--warn { color: var(--warning); }
.cm-notify__icon--success { color: var(--success); }
.cm-notify__text { padding-right: 1rem; font-size: .8125rem; line-height: 1.25rem; color: var(--text); }
.cm-notify__text b { font-weight: 600; color: var(--ink); }
.cm-notify__time { font-size: .75rem; line-height: 1.125rem; color: var(--text-muted); }
.cm-notify__foot { padding: .75rem 1.25rem; text-align: center; font-size: .8125rem; }
.cm-toast { display: flex; align-items: center; gap: .75rem; width: 23.75rem; max-width: 100%; padding: .875rem .875rem .875rem 1.125rem; border-radius: var(--radius-md); background: var(--ink); color: var(--on-ink); box-shadow: var(--shadow-lg); font-size: .875rem; line-height: 1.25rem; }
.cm-toast > .bi { font-size: 1.25rem; color: var(--fresh); }
.cm-toast__text { flex: 1; }
.cm-toast__action { padding: .375rem .625rem; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--on-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cm-toast__action:hover { background: var(--ink-hover); }
.cm-toast :focus-visible { outline-color: var(--focus-ring-inverse); }

/* ---------- Layout grid demo ---------- */
.cm-gridviz { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); }
.cm-gridviz > span { height: 4rem; border-radius: var(--radius-sm); background: var(--surface-mist); color: var(--primary); display: grid; place-items: center; font-family: var(--font-heading); font-size: .75rem; font-weight: 600; }
.cm-gridviz .is-wide { grid-column: span 3; background: var(--surface-sand); color: var(--ink); }
.cm-gridviz .is-main { grid-column: span 9; background: var(--surface-alt); color: var(--ink); }
.cm-table { width: 100%; border-collapse: collapse; font-size: .8125rem; line-height: 1.25rem; }
.cm-table th { padding: .625rem .75rem; border-bottom: 1px solid var(--line); text-align: left; font-family: var(--font-heading); font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.cm-table td { padding: .625rem .75rem; border-bottom: 1px solid var(--line); color: var(--text); }
.cm-table td:first-child { font-family: var(--font-heading); font-weight: 600; color: var(--ink); }

/* Toast region (Notification.md): toasts stack bottom left; below 62rem — full width above the tab bar */
.cm-toast-region { position: fixed; left: 1.5rem; bottom: 1.5rem; z-index: 1080; display: flex; flex-direction: column; gap: .5rem; pointer-events: none; }
.cm-toast-region .cm-toast { pointer-events: auto; }
@media (max-width: 991.98px) {
  .cm-toast-region { left: 1rem; right: 1rem; bottom: calc(5rem + env(safe-area-inset-bottom)); }
  .cm-toast-region .cm-toast { width: 100%; }
}

/* Dialog (Dialog.md): native <dialog> for confirmations; bottom sheet below 36rem */
.cm-dialog { width: min(30rem, calc(100% - 2rem)); max-width: none; padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
.cm-dialog::backdrop { background: var(--overlay); }
.cm-dialog__panel { display: flex; flex-direction: column; gap: .75rem; padding: 1.5rem; }
.cm-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.cm-dialog__title { color: var(--ink); }
.cm-dialog__body { font-size: .875rem; line-height: 1.375rem; }
.cm-dialog__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; margin-top: .5rem; }
@media (max-width: 575.98px) {
  .cm-dialog { width: 100%; margin: auto 0 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .cm-dialog__panel { padding: 1.25rem 1rem calc(1.25rem + env(safe-area-inset-bottom)); }
  .cm-dialog__actions { flex-direction: column-reverse; }
  .cm-dialog__actions .cm-btn { width: 100%; }
}

/* Form sections (FormSection.md): long cabinet forms split into cards, repeatable groups, sticky action bar */
.cm-form-section { display: flex; flex-direction: column; gap: 1.25rem; }
.cm-form-section__head { display: flex; flex-direction: column; gap: .25rem; }
.cm-form-section__text { font-size: .8125rem; line-height: 1.25rem; color: var(--text-muted); }
.cm-repeat { display: flex; flex-direction: column; gap: 1rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-alt); }
.cm-repeat .cm-input, .cm-repeat .cm-select, .cm-repeat .cm-textarea { background-color: var(--surface); }
.cm-repeat__head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 2.25rem; }
.cm-repeat__title { font-family: var(--font-heading); font-size: .9375rem; line-height: 1.25rem; font-weight: 600; color: var(--ink); }
.cm-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .5rem; }
.cm-formbar { position: sticky; bottom: 1rem; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .5rem .75rem; padding: 1rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-md); }
.cm-formbar__note { margin-right: auto; font-size: .8125rem; line-height: 1.25rem; color: var(--text-muted); }
@media (max-width: 991.98px) { .cm-formbar { bottom: calc(5rem + env(safe-area-inset-bottom)); } }
@media (max-width: 575.98px) {
  .cm-repeat { padding: 1rem; }
  .cm-formbar { padding: .75rem 1rem; }
  .cm-formbar__note { width: 100%; }
  .cm-formbar .cm-btn { flex: 1; }
}

/* Searchable select in Vue (CmCombobox): chosen items of a multi-select as chips under the field */
/* Two classes: the porto-bridge reset of ul[class*="cm-"] margins is (0,1,1) */
.cm-combobox .cm-combobox__chips { margin: .5rem 0 0; padding: 0; list-style: none; }

/* A group of checkboxes as one field: fieldset.cm-field with legend.cm-label (CmField `group`) */
fieldset.cm-field { min-width: 0; margin: 0; padding: 0; border: 0; }
fieldset.cm-field > legend.cm-label { float: none; width: auto; margin-bottom: .375rem; padding: 0; }

/* Employer view of a vacancy row (VacancyCard.md, cabinet list) */
.cm-vacancy__vessel { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .375rem; font-size: .875rem; line-height: 1.25rem; color: var(--text); }
.cm-vacancy__vessel .bi { color: var(--primary); }
.cm-vacancy__note { font-size: .8125rem; line-height: 1.25rem; color: var(--warning); }
.cm-vacancy__status-sm { display: none; }
@media (max-width: 767.98px) {
  .cm-vacancy__status-sm { display: inline-flex; }
  .cm-vacancy__actions { flex-wrap: wrap; }
}

/* Dialog as a bottom sheet at every width (Dialog.md `--sheet`): the cabinet "More" menu on phones and tablets */
.cm-dialog--sheet { width: 100%; max-width: 35rem; max-height: 85vh; margin: auto auto 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.cm-dialog--sheet .cm-dialog__panel { max-height: 85vh; padding: .75rem 1rem calc(1rem + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; }
.cm-dialog--sheet .cm-dash { max-width: none; padding: 0; border: 0; }
.cm-dialog--sheet .cm-dash__nav { margin-top: .5rem; }

/* Date picker (DatePicker.md): text field "15 Dec 2026" + calendar button; the calendar (Cally web
   components, styled through ::part) opens in a .cm-menu popover, below 48rem as a bottom sheet */
.cm-datepicker { position: relative; }
.cm-datepicker > .cm-help { margin-top: .375rem; }
.cm-datepicker__menu { position: absolute; z-index: 1050; top: calc(100% + .375rem); left: 0; display: flex; flex-direction: column; gap: .5rem; width: 20rem; max-width: calc(100vw - 2rem); padding: .75rem; }
.cm-datepicker__foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .25rem .25rem 0; font-size: .875rem; }
.cm-datepicker__foot .cm-link { padding: 0; border: 0; background: none; }
@media (max-width: 767.98px) {
  .cm-datepicker__menu { position: fixed; top: auto; left: 0; right: 0; bottom: 0; width: auto; max-width: none; max-height: 85vh; overflow-y: auto; padding: .5rem 1rem calc(1rem + env(safe-area-inset-bottom)); border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: none; }
}

.cm-calendar { --color-accent: var(--primary); --color-text-on-accent: var(--on-primary); display: block; font-family: var(--font-body); color: var(--ink); }
.cm-calendar::part(header) { display: flex; align-items: center; gap: .375rem; margin-bottom: .5rem; }
.cm-calendar::part(heading) { display: flex; flex: 1; gap: .375rem; min-width: 0; }
.cm-calendar::part(previous) { order: 2; }
.cm-calendar::part(next) { order: 3; }
.cm-calendar::part(button) { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font-size: 1rem; cursor: pointer; }
.cm-calendar::part(button):hover { background: var(--surface-alt); color: var(--primary); }
.cm-calendar::part(button):focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.cm-calendar::part(disabled) { color: var(--text-disabled); background: transparent; cursor: default; }
.cm-calendar calendar-select-month, .cm-calendar calendar-select-year { flex: 1; min-width: 0; }
.cm-calendar calendar-select-month::part(label), .cm-calendar calendar-select-year::part(label) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cm-calendar calendar-select-month::part(select), .cm-calendar calendar-select-year::part(select) { width: 100%; height: 2.25rem; padding: 0 1.75rem 0 .625rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23222529' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M3.5 6l4.5 4.5L12.5 6'/%3E%3C/svg%3E") no-repeat right .625rem center / .75rem; color: var(--ink); font-family: var(--font-heading); font-size: .875rem; font-weight: 500; appearance: none; cursor: pointer; }
.cm-calendar calendar-select-month::part(select):focus-visible, .cm-calendar calendar-select-year::part(select):focus-visible { border-color: var(--primary); outline: 0; box-shadow: 0 0 0 3px var(--focus-halo); }
.cm-calendar calendar-month { display: block; width: 100%; }
.cm-calendar calendar-month::part(heading) { display: none; }
.cm-calendar calendar-month::part(table) { width: 100%; border-collapse: collapse; }
.cm-calendar calendar-month::part(th) { height: 2rem; color: var(--text-muted); font-family: var(--font-heading); font-size: .6875rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.cm-calendar calendar-month::part(td) { padding: 1px 0; text-align: center; }
.cm-calendar calendar-month::part(button) { width: 2.5rem; height: 2.5rem; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font-size: .875rem; font-variant-numeric: tabular-nums; cursor: pointer; }
.cm-calendar calendar-month::part(button):hover { background: var(--surface-alt); }
.cm-calendar calendar-month::part(button):focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
.cm-calendar calendar-month::part(today) { color: var(--primary); font-weight: 600; box-shadow: inset 0 0 0 1px var(--primary); }
.cm-calendar calendar-month::part(selected) { background: var(--primary); color: var(--on-primary); font-weight: 600; box-shadow: none; }
.cm-calendar calendar-month::part(outside) { color: var(--text-muted); }
.cm-calendar calendar-month::part(disallowed) { color: var(--text-disabled); background: transparent; text-decoration: line-through; cursor: default; }
@media (max-width: 767.98px) {
  .cm-calendar calendar-month::part(button) { width: 2.75rem; height: 2.75rem; }
}

/* Company logo instead of the monogram (CompanyCard.md): the image sits on white inside the same square */
.cm-logo-mark--img { overflow: hidden; padding: .25rem; border: 1px solid var(--line); background: var(--surface); }
.cm-logo-mark--img img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* Company profile head in the cabinet: logo 4.5rem + name + verification status */
.cm-company-head { display: flex; align-items: center; gap: 1rem; }
.cm-company-head__main { display: flex; flex-direction: column; align-items: flex-start; gap: .375rem; min-width: 0; }
.cm-company-head__main .cm-cap { margin-bottom: 0; }
/* Applicant card (cabinet/ApplicantShow): the vacancy the seafarer is considered for, on top of the card */
.cm-applicant-vacancy { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) auto; align-items: center; gap: .5rem 1rem; padding: 1rem 1.25rem; border-radius: var(--radius-md); background: var(--surface-mist); }
.cm-applicant-vacancy__icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--radius-sm); background: var(--surface); color: var(--primary); font-size: 1.25rem; }
.cm-applicant-vacancy__main { display: flex; flex-direction: column; gap: .125rem; min-width: 0; }
.cm-applicant-vacancy__main .t-overline { margin: 0; color: var(--primary); }
.cm-applicant-vacancy__title { margin: 0; font-family: var(--font-heading); font-size: 1.125rem; line-height: 1.5rem; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.cm-applicant-vacancy__facts { display: flex; flex-wrap: wrap; gap: .125rem 1rem; margin: .25rem 0 0; font-size: .8125rem; line-height: 1.25rem; color: var(--text); }
.cm-applicant-vacancy__facts span { display: inline-flex; align-items: center; gap: .375rem; }
.cm-applicant-vacancy__facts .bi { color: var(--primary); }
.cm-applicant-vacancy__links { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; font-size: .8125rem; line-height: 1.25rem; text-align: right; }
@media (max-width: 767.98px) {
  .cm-applicant-vacancy { grid-template-columns: 2.75rem minmax(0, 1fr); padding: 1rem; }
  .cm-applicant-vacancy__links { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; text-align: left; }
}

/* Checklist: .cm-doc-list one item per line (verification requirements) */
.cm-doc-list--stack { flex-direction: column; flex-wrap: nowrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.cm-doc-list--stack li { align-items: flex-start; font-size: .875rem; line-height: 1.375rem; color: var(--ink); }
.cm-doc-list--stack li .bi { margin-top: 3px; font-size: 1rem; color: var(--text-muted); }

/* Photo inside an avatar (seafarer, applicant). It fills the circle from the corners: the avatar is a grid, where
   height: 100% of the photo had nothing to resolve against and a 7:9 photo came out taller than the circle (an oval). */
.cm-avatar > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

/* Applicant rows (cabinet Applicants): a new application stands out until it is opened */
.cm-applicant.is-new { background: var(--surface-mist); }
/* Applicants with ticks for the bulk actions */
.cm-applicant--select { grid-template-columns: 1.25rem 2.5rem minmax(0, 1fr) auto auto; }
.cm-applicant.is-selected { background: var(--surface-mist); }
.cm-bulkbar { flex-wrap: wrap; min-height: 3.5rem; }
@media (max-width: 575.98px) {
  .cm-applicant--select { grid-template-columns: 1.25rem 2.5rem minmax(0, 1fr) auto; }
  .cm-applicant--select .cm-status { grid-column: 3 / 5; }
}

/* Board (Board.md): the applicants of one vacancy by stage */
.cm-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: var(--space-2); }
.cm-board__col { container-type: inline-size; display: flex; flex-direction: column; gap: .5rem; min-width: 0; min-height: 10rem; padding: .625rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-alt); transition: background-color .15s ease; }
.cm-board__col.is-target { border-color: var(--primary); border-style: dashed; background: var(--surface-mist); }
.cm-board__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem .5rem; }
.cm-board__title { margin: 0; font-size: inherit; }
.cm-board__empty { padding: 1rem 0; color: var(--text-muted); font-size: .8125rem; line-height: 1.25rem; text-align: center; }
.cm-board__card { display: flex; flex-direction: column; gap: .5rem; padding: .625rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow-wrap: anywhere; }
.cm-board__card[draggable="true"] { cursor: grab; }
.cm-board__card[draggable="true"]:hover { border-color: var(--line-strong); }
.cm-board__card.is-dragging { opacity: .5; }
.cm-board__card.is-busy { opacity: .6; pointer-events: none; }
.cm-board__card .cm-doc__title a:hover { color: var(--primary); }
.cm-board__who { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); align-items: center; gap: .625rem; }
.cm-board__move { display: block; }
.cm-board__move .cm-select { width: 100%; min-height: 2.25rem; padding: .25rem 1.75rem .25rem .625rem; background-position: right .625rem center; font-size: .8125rem; }
@media (max-width: 575.98px) { .cm-board__col { min-height: 6rem; } }
/* A narrow column (all stages fit the screen) keeps the card readable: no photo, the name gets the width. */
@container (max-width: 12.5rem) {
  .cm-board__who { grid-template-columns: minmax(0, 1fr); }
  .cm-board__who .cm-avatar { display: none; }
}
@media (prefers-reduced-motion: reduce) { .cm-board__col { transition: none; } }
/* Shortlist rows (cabinet Shortlists): tick, avatar, the seafarer with the note, remove */
.cm-shortlist-row { grid-template-columns: 1.25rem 2.5rem minmax(0, 1fr) auto; align-items: start; }
.cm-shortlist-row > .cm-check { margin-top: .625rem; }
.cm-shortlist-row.is-unavailable { background: var(--surface-alt); }
.cm-shortlist-row.is-unavailable .cm-avatar { color: var(--text-muted); }
.cm-shortlist-row .cm-doc__title a:hover { color: var(--primary); }
.cm-shortlist-row__note-text { display: flex; align-items: flex-start; gap: .5rem; max-width: var(--measure); padding: .5rem .75rem; border-radius: var(--radius-sm); background: var(--surface-mist); color: var(--text); font-size: .875rem; line-height: 1.375rem; white-space: pre-line; }
.cm-shortlist-row__note-text .bi { margin-top: .1875rem; color: var(--primary); }
.cm-shortlist-row__note { max-width: var(--measure); }
@media (max-width: 575.98px) {
  .cm-shortlist-row { grid-template-columns: 1.25rem minmax(0, 1fr) auto; }
  .cm-shortlist-row > .cm-avatar { display: none; }
}
.cm-applicant .cm-doc__title a:hover { color: var(--primary); }

/* Team rows (cabinet Team): role badge, then the owner's actions; on phones the actions go under the name */
.cm-member__actions { justify-content: flex-end; }
@media (max-width: 767.98px) {
  .cm-member__actions { grid-column: 2 / -1; justify-content: flex-start; }
}

/* Wide dialog (Dialog.md): a two-column form */
.cm-dialog--wide { width: min(40rem, calc(100% - 2rem)); }
@media (max-width: 575.98px) { .cm-dialog--wide { width: 100%; } }
/* Dialog with long content (TeamNotes): the head with the title and the close button and the actions stay in view,
   only the body scrolls */
.cm-dialog--scroll { max-height: min(48rem, calc(100dvh - 3rem)); overflow: hidden; }
.cm-dialog--scroll .cm-dialog__panel { max-height: inherit; padding: 0; gap: 0; }
.cm-dialog--scroll .cm-dialog__head { flex-shrink: 0; padding: 1rem 1rem 1rem 1.5rem; border-bottom: 1px solid var(--line); }
.cm-dialog--scroll .cm-dialog__head .cm-iconbtn { font-size: 1.125rem; }
.cm-dialog--scroll .cm-dialog__body { flex: 1 1 auto; min-height: 0; padding: 1.25rem 1.5rem; overflow-y: auto; overscroll-behavior: contain; }
.cm-dialog--scroll .cm-dialog__actions { flex-shrink: 0; margin: 0; padding: 1rem 1.5rem; border-top: 1px solid var(--line); }
@media (max-width: 575.98px) {
  .cm-dialog--scroll { max-height: 90dvh; }
  .cm-dialog--scroll .cm-dialog__head { padding: .75rem .75rem .75rem 1rem; }
  .cm-dialog--scroll .cm-dialog__body { padding: 1rem; }
  .cm-dialog--scroll .cm-dialog__actions { padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); }
}

/* PhotoUpload: profile photo 7:9 (35 × 45 mm passport proportions) and the crop dialog (docs/design-system/components/PhotoUpload.md) */
.cm-photo { position: relative; flex: none; width: 7rem; aspect-ratio: 7 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-alt); }
.cm-photo--sm { width: 4.375rem; }
.cm-photo--lg { width: 10.9375rem; }
.cm-photo__img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* The silhouette is wider than the frame on purpose (shoulders cut by the edges): centred absolutely, so it
   overflows both sides equally (a grid or flex item wider than its box would stick to the left edge). */
.cm-photo__empty { position: absolute; inset: 0; overflow: hidden; color: var(--line-strong); }
.cm-photo__empty .bi { position: absolute; left: 50%; bottom: 0; font-size: 8rem; line-height: .78; transform: translateX(-50%); }
.cm-photo__empty .bi::before { display: block; vertical-align: 0; }
.cm-photo--sm .cm-photo__empty .bi { font-size: 5rem; }
.cm-photo--lg .cm-photo__empty .bi { font-size: 12.5rem; }
.cm-photo__hit { position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: center; padding: .625rem .375rem; border: 0; border-radius: inherit; background: transparent; cursor: pointer; }
.cm-photo__hit:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.cm-photo__hit:disabled { cursor: not-allowed; }
.cm-photo.is-empty { border-style: dashed; border-color: var(--line-strong); }
.cm-photo.is-empty:not(.is-disabled):hover { border-color: var(--primary); background: var(--surface-mist); }
.cm-photo.is-empty:not(.is-disabled):hover .cm-photo__empty { color: var(--primary); opacity: .35; }
.cm-photo__cta { display: inline-flex; align-items: center; gap: .25rem; padding: .25rem .625rem; border-radius: var(--radius-pill); background: var(--surface); box-shadow: var(--shadow-sm); color: var(--primary); font-family: var(--font-heading); font-size: .75rem; line-height: 1rem; font-weight: 600; white-space: nowrap; }
.cm-photo.is-disabled .cm-photo__cta { color: var(--text-disabled); box-shadow: none; }
/* Edit and Remove cover the face, so they show only while the pointer is over the photo or a button has focus;
   on touch screens (no hover) a tap on the photo opens the dialog, which has Remove Photo too. */
.cm-photo__actions { position: absolute; left: 0; right: 0; bottom: .5rem; display: flex; justify-content: center; gap: .5rem; pointer-events: none; opacity: 0; transform: translateY(.25rem); transition: opacity .15s ease, transform .15s ease; }
.cm-photo:hover .cm-photo__actions, .cm-photo:focus-within .cm-photo__actions { opacity: 1; transform: none; }
.cm-photo:not(:hover):not(:focus-within) .cm-photo__btn { pointer-events: none; }
@media (hover: none) { .cm-photo__actions { display: none; } }
@media (prefers-reduced-motion: reduce) { .cm-photo__actions { transition: none; transform: none; } }
.cm-photo__btn { pointer-events: auto; display: grid; place-items: center; width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-md); color: var(--ink); font-size: .9375rem; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.cm-photo__btn:hover { background: var(--primary); color: var(--on-primary); }
.cm-photo__btn--danger:hover { background: var(--danger); color: var(--on-primary); }
.cm-photo__btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.cm-photo__busy { position: absolute; inset: 0; display: grid; place-items: center; background: var(--overlay); color: var(--on-primary); }

.cm-photo-crop { display: flex; flex-direction: column; gap: .75rem; }
.cm-photo-crop__drop { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 2rem 1rem; border: 2px dashed var(--line-strong); border-radius: var(--radius-md); background: var(--surface-alt); text-align: center; transition: border-color .2s ease, background-color .2s ease; }
.cm-photo-crop__drop.is-dragging { border-color: var(--primary); background: var(--surface-mist); }
.cm-photo-crop__drop-icon { font-size: 3rem; color: var(--primary); }
.cm-photo-crop__drop-title { margin: 0; font-family: var(--font-heading); font-size: .9375rem; font-weight: 600; color: var(--ink); }
.cm-photo-crop__work { display: grid; grid-template-columns: minmax(0, 1fr) 8.75rem; gap: .75rem 1rem; }
.cm-photo-crop__stage { position: relative; height: min(25rem, 55vh); overflow: hidden; border-radius: var(--radius-md); background: var(--ink); }
.cm-photo-crop__stage img { display: block; max-width: 100%; }
.cm-photo-crop__loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--on-ink); }
.cm-photo-crop__side { display: flex; flex-direction: column; gap: .5rem; }
.cm-photo-crop__soft { color: var(--info); }
.cm-btn.cm-photo-crop__remove { --btn-fg: var(--danger); margin-right: auto; }
.cm-btn.cm-photo-crop__remove:hover { --btn-bg: var(--danger-soft); --btn-bd: var(--danger-soft); --btn-fg: var(--danger); }
.cm-photo-crop__preview { width: 8.75rem; aspect-ratio: 7 / 9; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-alt); }
.cm-photo-crop__tools { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
.cm-photo-crop__tools .cm-iconbtn { width: 2.5rem; height: 2.5rem; border-radius: var(--radius-sm); background: var(--surface-alt); font-size: 1.125rem; }
.cm-photo-crop__tools .cm-iconbtn:hover { background: var(--surface-mist); }
.cm-photo-crop__another { display: inline-flex; align-items: center; gap: .375rem; margin-left: auto; padding: 0; border: 0; background: none; font-size: .875rem; }
/* Cropper.js in Crewmba colours */
.cm-photo-crop .cropper-view-box { outline: 2px solid var(--surface); outline-color: var(--surface); }
.cm-photo-crop .cropper-line, .cm-photo-crop .cropper-point { background-color: var(--surface); }
.cm-photo-crop .cropper-point { width: .5rem; height: .5rem; opacity: 1; }
.cm-photo-crop .cropper-dashed { border-color: var(--surface); opacity: .6; }
.cm-photo-crop .cropper-modal { background-color: var(--ink); opacity: .55; }
@media (max-width: 575.98px) {
  .cm-photo-crop__work { grid-template-columns: 1fr; }
  .cm-photo-crop__side { flex-direction: row; align-items: flex-start; }
  .cm-photo-crop__preview { flex: none; width: 4.375rem; }
  .cm-photo-crop__tools .cm-iconbtn { width: 2.75rem; height: 2.75rem; }
}

/* Conversation (Conversation.md): inbox list + message thread of an application, both cabinets.
   .cm-inbox — two panes from 992px; below, the list or the open thread (.cm-inbox--thread). */
.cm-inbox { display: grid; grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr); min-height: 32rem; overflow: hidden; }
.cm-inbox__list { display: flex; flex-direction: column; border-right: 1px solid var(--line); overflow-y: auto; max-height: calc(100vh - 12rem); }
.cm-inbox__empty { display: grid; place-items: center; padding: 2.5rem 1.5rem; text-align: center; color: var(--text-muted); font-size: .875rem; }
.cm-convo { position: relative; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: .75rem; padding: .875rem 1rem; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
a.cm-convo:hover { background: var(--surface-alt); color: var(--text); text-decoration: none; }
.cm-convo.is-active { background: var(--surface-mist); }
.cm-convo__top { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.cm-convo__name { overflow: hidden; font-family: var(--font-heading); font-size: .875rem; line-height: 1.25rem; font-weight: 600; color: var(--ink); white-space: nowrap; text-overflow: ellipsis; }
.cm-convo__time { flex: none; font-size: .75rem; color: var(--text-muted); }
.cm-convo__vacancy { display: block; overflow: hidden; font-size: .75rem; line-height: 1rem; color: var(--text-muted); white-space: nowrap; text-overflow: ellipsis; }
.cm-convo__preview { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .125rem; font-size: .8125rem; line-height: 1.25rem; }
.cm-convo__preview > span:first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cm-convo.is-unread .cm-convo__preview > span:first-child { font-weight: 600; color: var(--ink); }
.cm-thread { display: flex; flex-direction: column; min-width: 0; max-height: calc(100vh - 12rem); }
.cm-thread__head { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; padding: .875rem 1.25rem; border-bottom: 1px solid var(--line); }
.cm-thread__who { display: flex; align-items: center; gap: .75rem; flex: 1 1 14rem; min-width: 0; }
.cm-thread__body { flex: 1; display: flex; flex-direction: column; gap: .5rem; padding: 1.25rem; overflow-y: auto; background: var(--surface-alt); }
.cm-thread__day { align-self: center; margin: .5rem 0; padding: .125rem .625rem; border-radius: var(--radius-pill); background: var(--surface); font-size: .75rem; color: var(--text-muted); }
.cm-msg { align-self: flex-start; max-width: min(36rem, 85%); padding: .625rem .875rem; border-radius: var(--radius-md) var(--radius-md) var(--radius-md) .25rem; background: var(--surface); color: var(--ink); font-size: .875rem; line-height: 1.375rem; white-space: pre-line; overflow-wrap: anywhere; box-shadow: 0 1px 0 var(--line); }
.cm-msg--mine { align-self: flex-end; border-radius: var(--radius-md) var(--radius-md) .25rem var(--radius-md); background: var(--primary); color: var(--on-primary); }
.cm-msg--mine a { color: inherit; }
.cm-msg__meta { display: block; margin-top: .25rem; font-size: .6875rem; line-height: 1rem; color: var(--text-muted); white-space: normal; }
.cm-msg--mine .cm-msg__meta { color: var(--on-primary); opacity: .8; text-align: right; }
.cm-thread__composer { display: flex; align-items: flex-end; gap: .75rem; padding: .875rem 1.25rem; border-top: 1px solid var(--line); }
.cm-thread__composer .cm-textarea { flex: 1; min-height: 2.75rem; max-height: 10rem; resize: vertical; }
.cm-thread__closed { padding: .875rem 1.25rem; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--text-muted); }
/* List: Active / Archived and search on top; conversations with the same counterpart grouped under the newest. */
.cm-inbox__tools { position: sticky; top: 0; z-index: 1; display: grid; gap: .625rem; padding: .25rem 1rem .75rem; border-bottom: 1px solid var(--line); background: var(--surface); }
.cm-inbox__tools .cm-tabs { gap: 1.25rem; }
.cm-inbox__tools .cm-seg { display: flex; }
.cm-inbox__tools .cm-seg button { flex: 1; padding-inline: .5rem; }
.cm-inbox__tools .cm-tab { padding: .625rem 0 .75rem; font-size: .875rem; }
.cm-inbox__tools .cm-input { min-height: 2.5rem; font-size: .875rem; }
.cm-convo-group { border-bottom: 1px solid var(--line); }
.cm-convo-group .cm-convo { border-bottom: 0; }
/* Several conversations with one counterpart (one per vacancy): the counterpart once, then every conversation as a row
   of its own in a framed list, so each reads as something to open. */
.cm-convo-group__head { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: .75rem; align-items: center; padding: .875rem 1rem .625rem; color: var(--text); }
.cm-convo-group__count { display: block; font-size: .75rem; line-height: 1rem; color: var(--text-muted); }
/* Inside the group, so it wins over the bridge's reset of cm-* lists (porto-bridge.css: ul[class*="cm-"] { margin: 0 }). */
.cm-convo-group .cm-convo-list { margin: 0 .75rem .875rem; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; }
.cm-convo-list > li + li { border-top: 1px solid var(--line); }
.cm-convo-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title time" "preview count"; column-gap: .625rem; row-gap: .125rem; align-items: center; padding: .625rem .75rem; color: var(--text); text-decoration: none; transition: background-color .15s ease; }
a.cm-convo-item:hover { background: var(--surface-alt); color: var(--text); text-decoration: none; }
.cm-convo-item:focus-visible { outline-offset: -2px; }
.cm-convo-item__title { grid-area: title; min-width: 0; overflow: hidden; font-family: var(--font-heading); font-size: .8125rem; line-height: 1.25rem; font-weight: 500; color: var(--ink); white-space: nowrap; text-overflow: ellipsis; }
.cm-convo-item__time { grid-area: time; font-size: .75rem; line-height: 1.25rem; color: var(--text-muted); }
.cm-convo-item__preview { grid-area: preview; min-width: 0; overflow: hidden; font-size: .75rem; line-height: 1rem; color: var(--text-muted); white-space: nowrap; text-overflow: ellipsis; }
.cm-convo-item__preview .bi { margin-right: .125rem; font-size: .6875rem; }
.cm-convo-item > .cm-count { grid-area: count; justify-self: end; }
.cm-convo-item.is-unread .cm-convo-item__title { font-weight: 600; }
.cm-convo-item.is-unread .cm-convo-item__preview { font-weight: 600; color: var(--ink); }
.cm-convo-item.is-active { background: var(--surface-mist); }
.cm-convo-item.is-active .cm-convo-item__title { color: var(--primary); }
@media (prefers-reduced-motion: reduce) {
  .cm-convo-item { transition: none; }
}
/* Thread: actions in the head, status changes between messages, the vacancy panel on the right. */
.cm-thread__actions { display: flex; align-items: center; gap: .25rem; }
.cm-thread__actions .cm-iconbtn { width: 2.5rem; height: 2.5rem; font-size: 1.25rem; }
.cm-thread__verified { margin-left: .25rem; color: var(--primary); font-size: 1rem; vertical-align: -.0625rem; }
.cm-thread__main { position: relative; flex: 1; display: flex; min-height: 0; }
.cm-thread__column { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cm-thread__notice { margin-bottom: .5rem; }
.cm-thread__event { align-self: center; display: inline-flex; align-items: center; gap: .375rem; margin: .25rem 0; font-size: .75rem; line-height: 1rem; color: var(--text-muted); text-align: center; }
.cm-msg__warn { display: flex; align-items: flex-start; gap: .375rem; margin-top: .5rem; padding: .375rem .5rem; border-radius: var(--radius-sm); background: var(--warning-soft); color: var(--warning); font-size: .75rem; line-height: 1rem; white-space: normal; }
.cm-msg__warn .cm-link { color: inherit; }
.cm-thread__composer { flex-wrap: wrap; }
.cm-thread__hint { flex-basis: 100%; margin: -.375rem 0 0; }
.cm-thread__closed .cm-link { margin-left: .25rem; }
@media (pointer: coarse) {
  .cm-thread__hint { display: none; }
}
/* From 992px the inbox fills the screen like a messenger; the list and the thread scroll inside. */
@media (min-width: 992px) {
  .cm-inbox { height: max(32rem, calc(100vh - 14rem)); }
  .cm-inbox__list, .cm-thread { max-height: none; min-height: 0; }
}
/* Conversation menu: a dropdown under the ⋮ button. */
.cm-thread__menu { position: relative; }
.cm-thread__menu-list { position: absolute; top: calc(100% + .25rem); right: 0; z-index: 5; }
.cm-menu__item--danger { color: var(--danger); }
.cm-menu__item:disabled, .cm-menu__item[aria-disabled="true"] { background: transparent; color: var(--text-disabled); cursor: not-allowed; }
@media (max-width: 991.98px) {
  .cm-inbox { grid-template-columns: 1fr; min-height: 0; }
  .cm-inbox__list { max-height: none; border-right: 0; }
  .cm-inbox--thread .cm-inbox__list, .cm-inbox:not(.cm-inbox--thread) .cm-thread { display: none; }
  /* The header above, the tab bar below: the thread fits between them, the composer stays on screen. */
  .cm-thread { height: max(24rem, calc(100dvh - 15rem)); max-height: none; }
  .cm-thread__who { flex: 1 1 100%; }
  .cm-thread__who .t-h5, .cm-thread__who .cm-doc__meta { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .cm-thread__actions { width: 100%; }
  .cm-thread__actions .cm-status { margin-right: auto; }
  .cm-thread__body { padding: 1rem; }
  .cm-thread__head, .cm-thread__composer { padding: .75rem 1rem; }
}

/* ContactForm — the public contacts page: the form and two side cards (docs/design-system/components/ContactForm.md). */
.cm-contact { display: grid; gap: var(--space-6); align-items: start; }
.cm-contact__lead { margin: 0 0 var(--space-5); color: var(--text); }
.cm-contact__aside { display: grid; gap: var(--space-6); }
.cm-contact__aside .bi-envelope { margin-right: .25rem; color: var(--primary); }
@media (min-width: 992px) {
  .cm-contact { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

/* SupportChat — the Support page of the cabinets: one thread in a card, files in messages and in the composer
   (docs/design-system/components/SupportChat.md). It reuses .cm-thread and .cm-msg of Conversation. */
.cm-support { position: relative; overflow: hidden; }
.cm-support .cm-thread { height: max(30rem, calc(100vh - 12rem)); max-height: none; }
.cm-support__mark { background: var(--primary); color: var(--on-primary); font-size: 1.125rem; }
.cm-support__empty { display: grid; justify-items: center; gap: .5rem; max-width: 26rem; margin: auto; padding: 1rem; text-align: center; color: var(--text-muted); font-size: .875rem; line-height: 1.375rem; }
.cm-support__empty .bi { font-size: 2.5rem; color: var(--primary); }
.cm-support__empty .t-h5 { color: var(--ink); }
.cm-support__empty p { margin: 0; }
/* Files in the composer of a chat (Support and Messages): chips to send above the field, the paperclip, the drop zone. */
.cm-thread__files { flex-basis: 100%; margin: 0; padding: 0; list-style: none; }
.cm-thread__files .cm-chip { max-width: 100%; }
.cm-chip__name { min-width: 0; max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-chip__size { flex: none; font-weight: 400; color: var(--text-muted); }
.cm-thread__attach { flex: none; width: 2.75rem; height: 2.75rem; font-size: 1.25rem; }
.cm-thread__attach:disabled { color: var(--text-disabled); cursor: not-allowed; background: transparent; }
.cm-support.is-dragging, .cm-thread__column.is-dragging { outline: 2px dashed var(--primary); outline-offset: -.5rem; }
.cm-thread__drop { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; gap: .5rem; margin: 0; background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--primary); font-family: var(--font-heading); font-weight: 600; pointer-events: none; }
.cm-msg__files { display: flex; flex-direction: column; align-items: flex-start; gap: .375rem; margin-top: .5rem; white-space: normal; }
.cm-attach { display: inline-flex; align-items: center; gap: .5rem; max-width: 100%; padding: .375rem .625rem; border-radius: var(--radius-sm); background: var(--surface-alt); color: var(--ink); font-size: .8125rem; line-height: 1.25rem; text-decoration: none; }
.cm-attach:hover { background: var(--surface-mist); color: var(--primary-hover); }
.cm-attach .bi { flex: none; font-size: 1.125rem; color: var(--primary); }
.cm-attach__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-attach__size { flex: none; font-size: .75rem; color: var(--text-muted); }
.cm-attach--image, .cm-attach--image:hover { padding: 0; background: transparent; }
.cm-attach--image img { display: block; max-width: 100%; max-height: 14rem; border-radius: var(--radius-sm); }
.cm-msg--mine .cm-attach { background: color-mix(in srgb, var(--on-primary) 16%, transparent); color: var(--on-primary); }
.cm-msg--mine .cm-attach:hover { background: color-mix(in srgb, var(--on-primary) 26%, transparent); color: var(--on-primary); }
.cm-msg--mine .cm-attach .bi, .cm-msg--mine .cm-attach__size { color: inherit; opacity: .85; }
.cm-msg--mine .cm-attach--image, .cm-msg--mine .cm-attach--image:hover { background: transparent; }
/* A file past its 90 days in Messages, or one the viewer may no longer open: the name stays, nothing to click. */
.cm-attach--gone, .cm-attach--gone:hover { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--text-muted); cursor: default; }
.cm-attach--gone .bi { color: var(--text-muted); }
.cm-msg--mine .cm-attach--gone, .cm-msg--mine .cm-attach--gone:hover { background: transparent; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--on-primary) 40%, transparent); color: var(--on-primary); opacity: .85; }

/* Messages: pinned counterparts, editing and deleting own messages, files in the composer. */
.cm-convo__pin { flex: none; margin-left: auto; font-size: .75rem; line-height: 1rem; color: var(--text-muted); }
.cm-thread__column { position: relative; }
.cm-msg { position: relative; }
.cm-msg.is-editing { outline: 2px solid var(--primary); outline-offset: 2px; }
.cm-msg__actions { position: absolute; top: .125rem; right: calc(100% + .25rem); }
.cm-msg__more { width: 1.75rem; height: 1.75rem; font-size: 1rem; color: var(--text-muted); opacity: 0; transition: opacity .15s ease; }
.cm-msg:hover .cm-msg__more, .cm-msg__actions:focus-within .cm-msg__more, .cm-msg__more[aria-expanded="true"] { opacity: 1; }
/* Fixed to the screen at the ⋯ button (placed by the page), so the scrolling feed can't cut it off. */
.cm-msg__menu { position: fixed; z-index: 20; min-width: 10rem; white-space: nowrap; }
.cm-msg--deleted, .cm-msg--deleted.cm-msg--mine { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--text-muted); }
.cm-msg--deleted.cm-msg--mine .cm-msg__meta { color: var(--text-muted); opacity: 1; }
.cm-msg__deleted { display: inline-flex; align-items: center; gap: .375rem; font-style: italic; }
.cm-thread__editing { flex-basis: 100%; display: flex; align-items: center; gap: .5rem; margin: 0; padding: .25rem .25rem .25rem .75rem; border-radius: var(--radius-sm); background: var(--surface-mist); color: var(--ink); font-size: .8125rem; line-height: 1.25rem; }
.cm-thread__editing > span { flex: 1; font-weight: 600; }
.cm-thread__editing .bi-pencil { color: var(--primary); }
.cm-thread__editing .cm-iconbtn { width: 2rem; height: 2rem; font-size: .875rem; }
.cm-thread__note { flex-basis: 100%; display: flex; align-items: center; gap: .375rem; margin: -.25rem 0 0; }
.cm-thread__error { margin: 0; padding: .625rem 1.25rem 0; border-top: 1px solid var(--line); }
.cm-thread__error + .cm-thread__closed { border-top: 0; }
@media (pointer: coarse) {
  .cm-msg__more { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .cm-msg__more { transition: none; }
}
@media (max-width: 991.98px) {
  .cm-support .cm-thread { height: max(24rem, calc(100dvh - 15rem)); }
}

/* ---------- LegalDocument: Terms of Use, Privacy Policy, Cookie Policy (docs/design-system/components/LegalDocument.md) ---------- */
.cm-legal { padding: var(--space-8) 0 var(--space-20); background: var(--surface); }
.cm-legal__head { max-width: var(--measure); margin-bottom: var(--space-6); }
.cm-legal__title { margin: var(--space-2) 0 var(--space-3); }
.cm-legal__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin: 0; color: var(--text-muted); font-size: .875rem; }
.cm-legal__dot { width: .25rem; height: .25rem; border-radius: 50%; background: currentColor; }
.cm-legal__print { display: inline-flex; align-items: center; gap: .375rem; margin-left: auto; padding: .25rem 0; border: 0; background: none; color: var(--primary); font: inherit; font-weight: 500; cursor: pointer; }
.cm-legal__print:hover { color: var(--primary-hover); }
.cm-legal__print:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: var(--radius-sm); }
.cm-legal__notices { display: grid; gap: var(--space-3); max-width: var(--measure); margin-bottom: var(--space-8); }
.cm-legal__notices:empty { display: none; }
.cm-legal__lang { display: flex; gap: var(--space-2); margin: 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--surface-mist); color: var(--text); font-size: .875rem; line-height: 1.375rem; }
.cm-legal__lang .bi { flex: none; margin-top: .125rem; color: var(--primary); }
.cm-legal__grid { display: grid; grid-template-columns: 16rem minmax(0, var(--measure)); gap: var(--space-12); align-items: start; }
.cm-legal__grid > .cm-legal__main:only-child { grid-column: 1 / -1; max-width: var(--measure); }
.cm-legal__aside { position: sticky; top: 6rem; max-height: calc(100vh - 7rem); overflow-y: auto; }
.cm-legal__toc-title { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-3); color: var(--ink); font-family: var(--font-heading); font-size: 1rem; font-weight: 500; list-style: none; cursor: default; }
.cm-legal__toc-title::-webkit-details-marker { display: none; }
.cm-legal__toc-title .bi { display: none; }
.cm-legal__toc-list { display: grid; gap: .125rem; margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.cm-legal__toc-list a { display: block; margin-left: -1px; padding: .375rem var(--space-3); border-left: 2px solid transparent; color: var(--text); font-size: .8125rem; line-height: 1.25rem; text-decoration: none; }
.cm-legal__toc-list a:hover { border-left-color: var(--line-strong); color: var(--ink); }
.cm-legal__toc-list a.is-active { border-left-color: var(--primary); color: var(--primary); font-weight: 500; }
.cm-legal__toc-list a:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.cm-legal__foot { display: grid; gap: var(--space-6); margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid var(--line); }
.cm-legal__help { display: flex; gap: var(--space-2); margin: 0; color: var(--text); }
.cm-legal__help .bi { color: var(--primary); }

/* Long-form text written in the admin panel's rich editor (legal pages). */
.cm-prose { color: var(--text); font-size: 1rem; line-height: 1.75rem; overflow-wrap: break-word; }
.cm-prose > :first-child { margin-top: 0; }
.cm-prose h2 { margin: var(--space-12) 0 var(--space-4); color: var(--ink); font-family: var(--font-heading); font-size: 1.375rem; line-height: 1.75rem; font-weight: 600; scroll-margin-top: 6rem; }
.cm-prose h3 { margin: var(--space-8) 0 var(--space-3); color: var(--ink); font-family: var(--font-heading); font-size: 1.125rem; line-height: 1.5rem; font-weight: 500; scroll-margin-top: 6rem; }
.cm-prose h4 { margin: var(--space-6) 0 var(--space-2); color: var(--ink); font-family: var(--font-heading); font-size: 1rem; line-height: 1.375rem; font-weight: 500; }
.cm-prose p, .cm-prose ul, .cm-prose ol, .cm-prose table, .cm-prose blockquote { margin: 0 0 var(--space-4); }
.cm-prose ul, .cm-prose ol { padding-left: 1.5rem; }
.cm-prose ul { list-style: disc; }
.cm-prose ol { list-style: decimal; }
.cm-prose li::marker { color: var(--text-muted); }
.cm-prose li { margin-bottom: var(--space-2); }
.cm-prose li > p { margin: 0; }
.cm-prose strong { color: var(--ink); font-weight: 600; }
.cm-prose a { color: var(--primary); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.cm-prose a:hover { color: var(--primary-hover); }
.cm-prose blockquote { padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--surface-alt); }
.cm-prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .875rem; line-height: 1.375rem; }
.cm-prose th, .cm-prose td { min-width: 9rem; padding: var(--space-2) var(--space-3); border: 1px solid var(--line); text-align: left; vertical-align: top; }
.cm-prose th { background: var(--surface-alt); color: var(--ink); font-weight: 600; }
.cm-prose th p, .cm-prose td p { margin: 0; }
.cm-prose hr { margin: var(--space-8) 0; border: 0; border-top: 1px solid var(--line); opacity: 1; }
.cm-prose small { font-size: .875rem; color: var(--text-muted); }
.cm-prose img { display: block; max-width: 100%; height: auto; margin: var(--space-6) 0; border-radius: var(--radius-md); background: var(--surface-alt); }
.cm-prose p > img:only-child { margin: 0; }

@media (max-width: 991.98px) {
	.cm-legal { padding: var(--space-4) 0 var(--space-12); }
	.cm-legal__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
	.cm-legal__aside { position: static; max-height: none; overflow: visible; }
	.cm-legal__toc { border: 1px solid var(--line); border-radius: var(--radius-md); }
	.cm-legal__toc-title { min-height: var(--tap-target); margin: 0; padding: 0 var(--space-4); cursor: pointer; }
	.cm-legal__toc-title .bi { display: inline-block; transition: transform .2s ease; }
	.cm-legal__toc-fold[open] .cm-legal__toc-title .bi { transform: rotate(180deg); }
	.cm-legal__toc-list { margin: 0 var(--space-4) var(--space-4); }
	.cm-legal__toc-list a { padding-top: .5rem; padding-bottom: .5rem; }
	.cm-prose h2 { margin-top: var(--space-10); font-size: 1.25rem; }
}
@media (max-width: 575.98px) {
	.cm-legal__print { margin-left: 0; }
}
@media print {
	#header, .cm-footer, .cm-newsletter, .cm-legal__aside, .cm-legal__print, .cm-breadcrumb, .cm-legal__foot { display: none !important; }
	.cm-legal { padding: 0; }
	.cm-legal__grid { display: block; }
	.cm-prose { font-size: .875rem; line-height: 1.375rem; }
	.cm-prose a { color: inherit; }
}

/* ---------- CvImport: Import from CV — the upload window and the review page (docs/design-system/components/CvImport.md) ---------- */
.cm-file-drop { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 2rem 1rem; border: 2px dashed var(--line-strong); border-radius: var(--radius-md); background: var(--surface-alt); text-align: center; transition: border-color .2s ease, background-color .2s ease; }
.cm-file-drop.is-dragging { border-color: var(--primary); background: var(--surface-mist); }
.cm-file-drop.has-file { border-style: solid; border-color: var(--primary); background: var(--surface); }
.cm-file-drop__icon { font-size: 3rem; color: var(--primary); }
.cm-file-drop__title { margin: 0; max-width: 100%; overflow-wrap: anywhere; font-family: var(--font-heading); font-size: .9375rem; font-weight: 600; color: var(--ink); }
.cm-file-drop__notes { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; font-size: .8125rem; line-height: 1.25rem; color: var(--text-muted); }
.cm-file-drop__notes li { display: flex; gap: .5rem; }
.cm-file-drop__notes .bi { flex: none; color: var(--primary); }

.cm-cv-import__section { display: grid; gap: .75rem; }
.cm-cv-import__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; }
.cm-cv-import__head .cm-help { margin: 0; }
.cm-cv-import__all { margin-left: auto; }
.cm-cv-import__list { display: grid; margin: 0; padding: 0; list-style: none; }
.cm-cv-import__item, .cm-cv-import__row { display: grid; gap: .5rem 1rem; padding: .875rem 0; border-top: 1px solid var(--line); }
.cm-cv-import__item:first-child, .cm-cv-import__row:first-child { border-top: 0; }
.cm-cv-import__item { grid-template-columns: minmax(10rem, 13rem) minmax(0, 1fr) minmax(0, 1fr) auto; align-items: start; }
.cm-cv-import__row { grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; }
.cm-cv-import__pick { padding-top: .25rem; }
.cm-cv-import__label { font-weight: 500; }
.cm-cv-import__found, .cm-cv-import__now { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; min-width: 0; }
.cm-cv-import__found > .cm-input, .cm-cv-import__found > .cm-textarea, .cm-cv-import__found > .cm-combobox, .cm-cv-import__found > .cm-datepicker, .cm-cv-import__found > .cm-sheet-pair { flex: 1 1 100%; }
.cm-cv-import__found .cm-help { flex-basis: 100%; margin: 0; }
.cm-cv-import__caption { flex-basis: 100%; font-size: .6875rem; line-height: 1rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.cm-cv-import__value { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.cm-cv-import__value.is-empty, .cm-cv-import__now .cm-cv-import__value { color: var(--text-muted); font-weight: 400; }
.cm-cv-import__edit { width: 2rem; height: 2rem; font-size: .9375rem; color: var(--text-muted); }
.cm-cv-import__state { margin-top: .25rem; justify-self: end; }
.cm-cv-import__item.is-off .cm-cv-import__value, .cm-cv-import__row.is-off .cm-cv-import__row-title, .cm-cv-import__row.is-off .cm-cv-import__row-sub { color: var(--text-muted); }
.cm-cv-import__item.is-invalid, .cm-cv-import__row.is-invalid { padding-left: .75rem; padding-right: .75rem; border-radius: var(--radius-sm); background: var(--danger-soft); }
.cm-cv-import__row-main { display: grid; gap: .25rem; min-width: 0; }
.cm-cv-import__row-title { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.cm-cv-import__row-sub { margin: 0; font-size: .8125rem; line-height: 1.25rem; color: var(--text); }
.cm-cv-import__row-main > .cm-help { margin: 0; }
.cm-cv-import__errors { display: grid; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.cm-cv-import__editor { margin-top: .5rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-alt); }
.cm-cv-import__tick { display: flex; align-items: center; min-height: 3rem; }
@media (max-width: 991.98px) {
  .cm-cv-import__item { grid-template-columns: auto minmax(0, 1fr) auto; }
  .cm-cv-import__item .cm-cv-import__found, .cm-cv-import__item .cm-cv-import__now { grid-column: 2 / 3; }
  .cm-cv-import__item .cm-cv-import__state { grid-column: 3; grid-row: 1; }
}
@media (max-width: 575.98px) {
  .cm-cv-import__editor { grid-template-columns: minmax(0, 1fr); padding: .75rem; }
  .cm-cv-import__all { margin-left: 0; }
}

/* ---------- ArticleCard: an article in the list and under an article (docs/design-system/components/ArticleCard.md) ---------- */
.cm-article-card { position: relative; display: flex; flex-direction: column; overflow: hidden; }
.cm-article-card__media { display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-mist); color: var(--primary); font-size: 2.5rem; }
.cm-article-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.cm-article-card:hover .cm-article-card__media img { transform: scale(1.03); }
.cm-article-card__body { display: flex; flex: 1; flex-direction: column; gap: var(--space-2); padding: var(--space-5) var(--space-5) var(--space-6); }
.cm-article-card__category { margin: 0; color: var(--primary); }
.cm-article-card__title { margin: 0; font-family: var(--font-heading); font-size: 1.125rem; line-height: 1.5rem; font-weight: 600; color: var(--ink); }
.cm-article-card__title a { color: inherit; text-decoration: none; }
.cm-article-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.cm-article-card__title a:focus-visible { outline: none; }
.cm-article-card:has(.cm-article-card__title a:focus-visible) { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.cm-article-card:hover .cm-article-card__title { color: var(--primary); }
.cm-article-card__summary { display: -webkit-box; margin: 0; overflow: hidden; color: var(--text); font-size: .875rem; line-height: 1.375rem; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.cm-article-card__meta { margin: auto 0 0; padding-top: var(--space-2); }

/* The list of articles: white cards on surface-alt, three, two, one in a row. */
.cm-articles__lead { max-width: var(--measure); margin: var(--space-2) 0 0; color: var(--text); }
.cm-articles__tabs { margin-bottom: var(--space-6); }
.cm-articles__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.cm-articles__pages { margin-top: var(--space-8); }
.cm-articles__empty-icon { display: block; margin-bottom: var(--space-3); font-size: 2.5rem; color: var(--primary); }
.cm-articles .cm-empty .cm-link + .cm-link { margin-left: var(--space-4); }
@media (max-width: 991.98px) { .cm-articles__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .cm-articles__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- ArticlePage: the page of an article (docs/design-system/components/ArticlePage.md) ---------- */
.cm-article { padding: var(--space-8) 0 var(--space-16); background: var(--surface); }
.cm-article__draft { max-width: var(--measure); margin-bottom: var(--space-6); }
.cm-article__head { max-width: 50rem; margin-bottom: var(--space-8); }
.cm-article__title { margin: var(--space-3) 0 var(--space-4); overflow-wrap: break-word; }
.cm-article__lead { margin: 0 0 var(--space-4); color: var(--text); font-size: 1.125rem; line-height: 1.75rem; }
.cm-article__lang { color: var(--primary); font-weight: 500; text-decoration: none; }
.cm-article__lang:hover { color: var(--primary-hover); }
.cm-article__cover { max-width: 64rem; margin: 0 0 var(--space-10); overflow: hidden; border-radius: var(--radius-lg); background: var(--surface-mist); aspect-ratio: 16 / 9; }
.cm-article__cover img { width: 100%; height: 100%; object-fit: cover; }
.cm-article__body { font-size: 1.0625rem; line-height: 1.875rem; }
.cm-article__promo { min-height: 13rem; }
.cm-article__promo .cm-promo__title { max-width: 40rem; }
@media (max-width: 991.98px) {
	.cm-article { padding: var(--space-4) 0 var(--space-12); }
	.cm-article__cover { margin-bottom: var(--space-6); border-radius: var(--radius-md); }
}
@media (max-width: 575.98px) {
	.cm-article__lead { font-size: 1rem; line-height: 1.625rem; }
	.cm-article__body { font-size: 1rem; line-height: 1.75rem; }
	.cm-article__cover { margin-left: calc(var(--space-4) * -1); margin-right: calc(var(--space-4) * -1); border-radius: 0; }
	.cm-article__promo { padding: var(--space-6); }
	.cm-article__promo .cm-promo__title { font-size: 1.375rem; line-height: 1.75rem; }
}
@media print {
	.cm-article__more, .cm-article__draft { display: none !important; }
}

/* ---------- AboutPage: what Crewmba is and who makes it (docs/design-system/components/AboutPage.md) ---------- */
.cm-about__head { padding-bottom: var(--space-12); }
.cm-about__overline { margin: 0 0 var(--space-2); color: var(--primary); }
.cm-about__title { max-width: 50rem; margin: 0 0 var(--space-4); }
.cm-about__lead { max-width: var(--measure); margin: 0; color: var(--text); font-size: 1.125rem; line-height: 1.75rem; }
.cm-about__text { max-width: var(--measure); font-size: 1.0625rem; line-height: 1.875rem; }
.cm-about__text h2 { margin-top: 0; font-size: 1.875rem; line-height: 2.5rem; }
.cm-about__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
.cm-about__card { display: flex; flex-direction: column; gap: var(--space-4); }
.cm-about__card .cm-about__overline { margin: 0; }
.cm-about__card .cm-btn { align-self: flex-start; margin-top: auto; }
.cm-about__card .cm-checklist { margin-bottom: var(--space-2); }
.cm-about__free { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-6); align-items: start; padding: var(--space-10); border-radius: var(--radius-lg); background: var(--surface-sand); }
.cm-about__free-icon { display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 50%; background: var(--surface); color: var(--primary); font-size: 1.75rem; }
.cm-about__free-body { max-width: var(--measure); }
.cm-about__free-body h2 { margin-bottom: var(--space-3); }
.cm-about__free-body p { margin: 0 0 var(--space-3); color: var(--ink); font-size: 1rem; line-height: 1.625rem; }
.cm-about__free-body p:last-child { margin-bottom: 0; }
.cm-about__cta { text-align: center; }
.cm-about__cta .t-body-lg { max-width: var(--measure); margin: var(--space-3) auto var(--space-6); }
@media (max-width: 767.98px) {
	.cm-about__grid { grid-template-columns: minmax(0, 1fr); }
	.cm-about__free { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); padding: var(--space-6); }
	.cm-about__text h2 { font-size: 1.5rem; line-height: 2rem; }
}
