/* Mensen recruitment: brand colours (purple #6B6FA9, navy #232A3C) over the shared panel styles (app.css), plus the job board,
   review, pipeline board and filter pieces. */
:root { --btn: #8a8ed0; --btn-ink: #14182a; --accent: #8a8ed0; --focus: #b9bcf0; --brand-ink: #232a3c; }
:root[data-theme="light"] { --btn: #6b6fa9; --btn-ink: #ffffff; --accent: #6b6fa9; --focus: #6b6fa9; }
body.public { --btn: #6b6fa9; --btn-ink: #ffffff; --accent: #6b6fa9; --text: #232a3c; --focus: #6b6fa9; --sans: 'Geist', 'Segoe UI', system-ui, sans-serif; }
body.public .pub-nav { background: var(--brand-ink); }
body.public h1, body.public h2 { font-family: 'Inter Tight', var(--sans); }
.auth-side { background: var(--brand-ink); }
.auth-side::before { background: #6b6fa9; }
.auth-side::after { background: #8a8ed0; opacity: .35; }
.auth-side li svg { color: #b9bcf0; }
.side .brand small { display: block; font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }

/* ---------- public ---------- */
.rc-hero h1 { max-width: 760px; }
.pub.band.first { padding-top: 36px; border-top: 0; }
.pub.narrow, .narrow { max-width: 800px; }
.page-title { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.035em; margin: 6px 0 10px; }
.section-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-row p { margin: 0; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: 13px; margin-bottom: 10px; }
.back .i { transform: rotate(180deg); }
.back:hover { color: var(--accent); }
.prose { margin-top: 22px; line-height: 1.65; }
.prose p { margin-bottom: 12px; }
.mini { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 18px 0 8px; font-weight: 600; }
.split-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.split-cta p { margin: 4px 0 0; }

.job-filter { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; margin: 8px 0 14px; align-items: end; }
.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.job-card { display: grid; gap: 8px; padding: 18px 20px; text-decoration: none; transition: border-color .15s ease, transform .15s ease; height: 100%; align-content: start; }
.job-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.job-card h3 { font-size: 16px; line-height: 1.3; }
.job-card__top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.job-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 13px; }
.job-meta span { display: inline-flex; gap: 5px; align-items: center; }
.job-meta.lg { font-size: 14px; margin: 6px 0 4px; }
.job-wrap { position: relative; }
.job-flags { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 6px; }

.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { font-size: 12px; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--text); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); white-space: nowrap; }
.fit { font: 600 11.5px var(--mono); padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.fit-hi { color: var(--ok); }
.fit-mid { color: var(--warn); }
.fit-lo { color: var(--dim); }
.stars { color: var(--warn); letter-spacing: 1px; }
.why { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; display: grid; gap: 4px; }

/* ---------- portal ---------- */
.card.pad > h2 { margin-bottom: 10px; }
.card-title-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.review-card .stepper { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 6px 0 16px; }
.review-card .stepper li { flex-direction: column; gap: 6px; font-size: 12.5px; }
.review-card .note { margin: 10px 0; }
.review-card.review-approved { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.review-card.review-needs_changes { border-color: color-mix(in srgb, var(--warn) 55%, var(--line)); }
.stats.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 6px; }
.stats.compact .cell { min-height: 0; padding: 12px 14px; border-bottom: 0; }
.stats.compact .cell:last-child { border-right: 0; }
.stats.compact .num { font-size: 24px; }
.list-row { display: flex; gap: 10px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.list-row:last-child { border-bottom: 0; }
.list-row .grow, .grow { flex: 1; min-width: 0; }
.legend { margin-top: 18px; }
.legend summary { cursor: pointer; font-weight: 600; }
.legend dl { margin-top: 12px; }
.dropzone { border-style: dashed; }

/* ---------- admin ---------- */
.filters__main { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.filters__main .field.grow { flex: 1 1 260px; }
.filters details summary { cursor: pointer; color: var(--muted); font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.filters details[open] summary { margin-bottom: 12px; }
.filters details .row3 { margin-bottom: 12px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 20px 0 16px; overflow-x: auto; }
.tabs a { padding: 9px 14px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-size: 13.5px; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
.review-box { margin-bottom: 4px; }
.review-box .actions { flex-wrap: wrap; }
.btn.ghost.danger { color: var(--bad); }
.staff-acts { flex-direction: column; align-items: stretch; gap: 6px; }
.staff-acts .btn.sm { white-space: nowrap; }
.tbl .sub .i { display: inline-block; vertical-align: -2px; margin-right: 3px; }
.tbl .sub { overflow-wrap: anywhere; }
.cv-frame { width: 100%; height: 720px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.cv-text { white-space: pre-wrap; max-height: 360px; overflow: auto; }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.inline-upload { display: flex; gap: 10px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.matches { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 0; }
.matches li { display: flex; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.matches .sub, .tbl .sub { color: var(--muted); font-size: 12.5px; }
.stage-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.stage-form select, .stage-form input { width: auto; min-width: 0; padding: 6px 8px; font-size: 12.5px; }
.stage-form input[type=text] { flex: 1 1 140px; }
.feed { list-style: none; margin: 0; padding: 4px 0; }
.feed li { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 9px 18px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.feed li:last-child { border-bottom: 0; }

.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 10px; }
.board__col { background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 220px; }
.board__col header { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 13px; padding: 2px 4px 6px; }
.board__col .count { font: 11px var(--mono); color: var(--muted); }
.board__card { display: grid; gap: 3px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; text-decoration: none; }
.board__card:hover { border-color: var(--accent); }
.board__card .sub { color: var(--muted); font-size: 12.5px; display: inline-flex; gap: 4px; align-items: center; }
.content:has(.board) { max-width: 1400px; }

@media (max-width: 860px) {
  .job-filter { grid-template-columns: 1fr 1fr; }
  .job-filter .field:first-child { grid-column: 1 / -1; }
  .stats.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats.compact .cell:nth-child(n) { border-right: 1px solid var(--line); border-bottom: 0; }
  .stats.compact .cell:last-child { border-right: 0; }
  .cv-frame { height: 480px; }
  .feed li { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 520px) {
  .job-filter { grid-template-columns: 1fr; }
  .review-card .stepper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats.compact { grid-template-columns: minmax(0, 1fr); }
  .stats.compact .cell:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .stats.compact .cell:last-child { border-bottom: 0; }
}

/* ---------- email ---------- */
.verify-banner { flex-wrap: wrap; }
.verify-banner form { margin-left: auto; }
.verify-code { display: flex; gap: 6px; margin-left: auto; }
.verify-code input { width: 9.5ch; font: 600 15px var(--mono); letter-spacing: .2em; text-align: center; padding: 6px 8px; }
.verify-code + form { margin-left: 0; }

/* ---------------------------------------------------------------- Mail (admin, ported from LankaByte): public/mail.js
   Folders | list | reading pane on wide screens; one pane at a time (data-view) on phones. */
.content--wide { max-width: none; padding: 0; }
.mail-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.mail-pick__box { display: flex; align-items: center; gap: 14px; padding: 18px; text-decoration: none; color: inherit; transition: border-color 150ms ease; }
.mail-pick__box:hover { border-color: var(--accent); }
.mail-pick__box:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.mail-pick__ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, var(--card-2)); color: var(--accent); flex: none; }
.mail-pick__text { display: grid; gap: 2px; min-width: 0; }
.mail-pick__text b { font-size: 16px; }
.mail-pick__text span { overflow: hidden; text-overflow: ellipsis; }
.mail-pick__count { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--btn-ink); background: var(--accent); padding: 3px 9px; border-radius: 99px; white-space: nowrap; }

.mail { display: grid; grid-template-columns: 210px minmax(300px, 380px) minmax(0, 1fr); height: calc(100vh - 50px); min-height: 480px; }
.mail__side { border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; padding: 14px 10px; min-height: 0; background: var(--side); }
.mail__compose { width: 100%; height: 38px; }
.mail__boxes select { width: 100%; height: 32px; font-size: 12.5px; }
.mail__folders { display: grid; gap: 2px; overflow-y: auto; align-content: start; flex: 1; }
.mail__folder { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; border: 0; border-radius: 9px; background: none; color: var(--text); font: 500 13.5px var(--sans); cursor: pointer; text-align: left; padding-right: 10px; }
.mail__folder span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail__folder .i { color: var(--muted); flex: none; }
.mail__folder:hover { background: var(--card-2); }
.mail__folder.on { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--text); }
.mail__folder.on .i { color: var(--accent); }
.mail__folder:focus-visible, .mail__open:focus-visible, .mail__star:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.mail__n { font-size: 11.5px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.mail__n.dim { color: var(--muted); }
.mail__side-foot { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px 0; border-top: 1px solid var(--line); font-size: 12.5px; }

.mail__list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.mail__bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.mail__search { flex: 1; min-width: 0; }
.mail__search input { width: 100%; height: 32px; padding: 4px 12px; border-radius: 99px; }
.mail__bar select { height: 32px; width: auto; font-size: 12.5px; }
.mail__back-folders { display: none; }
.mail__list { position: relative; }
.mail__fab { display: none; }
.mail__check { display: grid; place-items: center; width: 22px; flex: none; }
.mail__bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--card-2); font-size: 12.5px; }
.mail__bulk[hidden] { display: none; }
.mail__bulk select { height: 28px; width: auto; font-size: 12.5px; }
.mail__rows { overflow-y: auto; flex: 1; }
.mail__row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 34px; align-items: start; border-bottom: 1px solid var(--line); position: relative; }
.mail__row .mail__check { padding-top: 13px; justify-self: center; }
.mail__row.open { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.mail__row.picked { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.mail__row.open::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.mail__open { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 4px 10px 0; border: 0; background: none; color: var(--muted); text-align: left; font: 13px var(--sans); cursor: pointer; min-width: 0; }
.mail__who { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.mail__when { font-size: 12px; display: flex; align-items: center; gap: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mail__subj { grid-column: 1 / -1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail__row.unread .mail__who, .mail__row.unread .mail__subj { font-weight: 700; color: var(--text); }
.mail__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.mail__star { border: 0; background: none; color: var(--dim); cursor: pointer; padding: 12px 8px; }
.mail__star.on { color: var(--warn); }
.mail__star.on .i { fill: currentColor; }
.mail__pager { display: flex; align-items: center; justify-content: flex-end; gap: 4px; padding: 6px 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; min-height: 41px; }
.mail__pager span { margin-right: auto; }
.mail__pager .flip .i { transform: rotate(180deg); }
.mail__pager .iconbtn:disabled { opacity: .35; cursor: default; }
.mail__loading, .mail__err { padding: 18px; color: var(--muted); font-size: 13px; }
.mail__err { color: var(--bad); }
.mail__none, .mail__empty { display: grid; place-items: center; align-content: center; gap: 10px; color: var(--dim); text-align: center; padding: 40px 16px; height: 100%; font-size: 13.5px; }

.mail__read { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--card); }
.mail__msg { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.mail__tools { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.mail__tools .grow { flex: 1; }
.mail__back { display: none; }
.mail__title { font-size: 19px; line-height: 1.3; margin: 16px 18px 10px; overflow-wrap: anywhere; }
.mail__meta { display: flex; gap: 12px; align-items: flex-start; padding: 0 18px 12px; }
.mail__meta .avatar { width: 36px; height: 36px; font-size: 14px; }
.mail__meta > div { flex: 1; min-width: 0; }
.mail__meta p { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail__meta .mail__to { white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mail__date { white-space: nowrap; }
.mail__images { margin: 0 18px 10px; padding: 8px 12px; border-radius: 9px; background: var(--card-2); font-size: 12.5px; color: var(--muted); }
.mail__atts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; }
.mail__att { display: inline-flex; align-items: center; gap: 7px; max-width: 280px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 9px; font-size: 12.5px; color: var(--text); text-decoration: none; background: var(--card-2); }
.mail__att span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail__att small { color: var(--muted); white-space: nowrap; }
.mail__att.busy { opacity: .6; }
.mail__att .iconbtn { width: 22px; height: 22px; }
a.mail__att:hover { border-color: var(--accent); }
.mail__body { flex: 1; min-height: 240px; width: 100%; border: 0; background: #fff; border-top: 1px solid var(--line); }

/* compose and signature: a panel over the bottom right on wide screens, full screen on phones */
.mail-compose { position: fixed; right: 20px; bottom: 0; width: min(760px, calc(100vw - 40px)); height: min(680px, calc(100vh - 70px)); z-index: 40; isolation: isolate; }
.mail-compose[hidden] { display: none; }
.mail-c { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--card); border: 1px solid var(--line-2); border-bottom: 0; border-radius: 14px 14px 0 0; box-shadow: 0 -2px 6px rgba(0, 0, 0, .08), 0 18px 48px rgba(0, 0, 0, .28); }
.mail-c--sig { height: auto; max-height: 100%; border-bottom: 1px solid var(--line-2); border-radius: 14px; margin-bottom: 20px; }
.mail-c__head { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--line); }
.mail-c__head h2 { font-size: 14.5px; margin: 0; }
.mail-c__state { margin-left: auto; font-size: 12px; color: var(--muted); }
.mail-c__fields { border-bottom: 1px solid var(--line); }
.mail-c__row { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); min-height: 40px; }
.mail-c__row:last-child { border-bottom: 0; }
.mail-c__row[hidden] { display: none; }
.mail-c__row > span { width: 56px; font-size: 12.5px; color: var(--muted); flex: none; }
.mail-c__row > p { margin: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-c__row input { flex: 1; min-width: 0; border: 0; background: none; height: 38px; padding: 0; box-shadow: none; font-size: 13.5px; }
.mail-c__row input:focus { outline: none; }
.mail-c__row:focus-within { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.mail-ed__bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.mail-ed__bar button { height: 28px; min-width: 30px; padding: 0 8px; border: 1px solid transparent; border-radius: 7px; background: none; color: var(--text); font: 13px var(--sans); cursor: pointer; }
.mail-ed__bar button:hover { background: var(--card-2); border-color: var(--line); }
.mail-ed__bar button:focus-visible { outline: 2px solid var(--focus); }
.mail-ed { flex: 1; overflow-y: auto; padding: 14px 16px; font: 14px/1.55 var(--sans); outline: none; color: var(--text); min-height: 120px; overflow-wrap: anywhere; }
.mail-ed--sig { flex: none; min-height: 140px; max-height: 320px; margin: 0 16px; border: 1px solid var(--line-2); border-radius: 10px; }
.mail-ed blockquote { margin: 0 0 0 .8ex; border-left: 2px solid var(--line-2); padding-left: 1ex; color: var(--muted); }
.mail-ed img { max-width: 100%; height: auto; }
.mail-ed a { color: var(--accent); }
.mail-ed p { margin: 0; }
/* Mensen: the editor shows the email the way the recipient sees it (the signature's navy text included), so it stays light in dark mode. */
.mail-ed { background: #fffdf7; color: #232a3c; color-scheme: light; }
.mail-ed a { color: #4f5390; }
.mail-ed blockquote { border-left-color: #d9d1bc; color: #4a5168; }
.mail-c__atts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px; }
.mail-c__atts:not(:empty) { padding-top: 10px; padding-bottom: 4px; border-top: 1px solid var(--line); }
.mail-c__foot { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line); }
.mail-c__foot .grow { flex: 1; }
.mail-c__attach { cursor: pointer; }
.mail-c__drop { position: absolute; inset: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 18%, var(--card)); border: 2px dashed var(--accent); border-radius: inherit; font-weight: 600; z-index: 2; pointer-events: none; }
.mail-c__drop[hidden] { display: none; }
.mail-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 13px; font-weight: 500; max-width: calc(100vw - 32px); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.mail-toast.bad { background: var(--bad); color: #fff; }
.mail-toast[hidden] { display: none; }

@media (max-width: 1180px) {
  .mail { grid-template-columns: 190px minmax(260px, 330px) minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .mail { grid-template-columns: minmax(0, 1fr); height: calc(100vh - 50px); height: calc(100dvh - 50px); }
  .mail__side, .mail__list, .mail__read { grid-column: 1; grid-row: 1; min-height: 0; }
  .mail[data-view="list"] .mail__side, .mail[data-view="list"] .mail__read,
  .mail[data-view="read"] .mail__side, .mail[data-view="read"] .mail__list,
  .mail[data-view="folders"] .mail__list, .mail[data-view="folders"] .mail__read { display: none; }
  .mail__side, .mail__list { border-right: 0; }
  .mail__back-folders, .mail__back { display: grid; }
  .mail__fab { display: inline-flex; position: absolute; right: 16px; bottom: 56px; height: 46px; padding: 0 20px; box-shadow: 0 10px 24px rgba(0, 0, 0, .3); }
  .mail-compose { right: 0; left: 0; top: 0; width: auto; height: 100%; height: 100dvh; }
  .mail-c { border-radius: 0; border: 0; }
  .mail-c--sig { margin: 0; border-radius: 0; height: 100%; }
  .mail__tools .btn { padding: 0 10px; }
  .mail-c__foot { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .mail__tools .btn { font-size: 12px; }
  .mail__title { margin: 12px 14px 8px; font-size: 17px; }
  .mail__meta, .mail__atts { padding-left: 14px; padding-right: 14px; }
}

/* Back Office CMS rows */
.cms-row { margin: 0 0 12px; border: 1px solid var(--line); }
.cms-row legend { padding: 0 6px; font-weight: 600; }

/* ---------- Settings hub (/admin/settings), from LankaByte ---------- */
.settings-hub .head { margin-bottom: 18px; }
.hub-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: start; }
.hub-rail { position: sticky; top: 18px; display: flex; flex-direction: column; gap: 12px; }
.hub-search { display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--field); color: var(--muted); }
.hub-search:focus-within { border-color: var(--accent); }
.hub-search input { flex: 1; min-width: 0; border: 0; padding: 8px 0; background: transparent; box-shadow: none; outline: none; }
.hub-rail ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.hub-rail li button, .hub-rail li a { display: block; width: 100%; text-align: left; padding: 7px 10px; border: 1px solid transparent; border-radius: 9px; background: none; color: var(--text); font: inherit; font-size: 13.5px; cursor: pointer; text-decoration: none; }
.hub-rail li button:hover, .hub-rail li a:hover { background: var(--card-2); }
.hub-rail li .on { border-color: var(--line-2); background: var(--card); font-weight: 600; box-shadow: inset 3px 0 var(--accent); }
.set-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); text-decoration: none; }
.set-back svg { transform: scaleX(-1); }
.set-back:hover { color: var(--text); }
.hub-heading { margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.hub-tile { display: flex; flex-direction: column; min-height: 188px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--text); text-decoration: none; overflow: hidden; transition: border-color .15s, transform .15s; }
.hub-tile[hidden] { display: none; }
.hub-tile:hover { border-color: var(--line-2); transform: translateY(-1px); }
.hub-tile:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.hub-tile-icon { display: flex; align-items: center; justify-content: center; height: 86px; border-bottom: 1px solid var(--line); background: var(--card-2); color: var(--muted); }
.hub-tile:hover .hub-tile-icon { color: var(--accent); }
.hub-tile-body { display: flex; flex-direction: column; gap: 6px; padding: 13px 15px 15px; }
.hub-tile-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; }
.hub-tile-body small { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.hub-badge { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; vertical-align: middle; }
.hub-badge.ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.hub-badge.warn { background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); }
.hub-badge.bad { background: color-mix(in srgb, var(--bad) 15%, transparent); color: var(--bad); }
.hub-none { padding: 24px 0; }

/* ---------- Back Office sidebar: Settings pinned at the bottom of the menu ---------- */
.side .nav { display: flex; flex-direction: column; }
.nav__end { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.top .crumbs a { color: var(--muted); text-decoration: none; }
.top .crumbs a:hover { color: var(--text); text-decoration: underline; }
.settings-hub .hub-section + .hub-section { margin-top: 28px; }
.hub-section[hidden] { display: none; }
@media (max-width: 760px) { .hub-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; } .hub-rail { position: static; } .hub-rail ul { flex-direction: row; flex-wrap: wrap; } }

/* Mail: the mailbox switcher at the top of the message list (as in LankaByte). */
.mail__switch { display: flex; align-items: center; gap: 8px; padding: 10px 12px 0; }
.mail__boxes { flex: 1; min-width: 0; margin: 0; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail__boxes select { width: 100%; height: 36px; font-size: 13.5px; font-weight: 600; border-radius: 10px; }

/* Candidate Pool / Profiles to review: one card, roomy rows. */
.filters-card { padding: 0; margin-bottom: 22px; overflow: hidden; }
.filters-card .filters { padding: 20px 22px 16px; gap: 14px; }
.filters__main { gap: 12px; align-items: stretch; }
.filters__main .field { margin: 0; }
.filters__main select, .filters__main input, .filters__main .btn { height: 42px; }
.filters__main .btn { padding: 0 20px; }
.filters__foot { display: flex; align-items: center; gap: 8px 22px; flex-wrap: wrap; }
.filters__foot .check { margin: 0; }
.filters__toggle { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.filters__more-btn { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; cursor: pointer; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); }
.filters__more-btn:hover { color: var(--text); border-color: var(--line-2); }
.filters__toggle:checked ~ .filters__foot .filters__more-btn { color: var(--text); background: var(--card-2); }
.filters__toggle:focus-visible ~ .filters__foot .filters__more-btn { outline: 2px solid var(--focus); outline-offset: 2px; }
.filters__more-btn .count { font: 600 10.5px var(--sans); color: var(--btn-ink); background: var(--accent); border-radius: 999px; padding: 1px 6px; }
.filters__clear { font-size: 13px; color: var(--muted); }
.filters__more { display: none; padding-top: 16px; border-top: 1px dashed var(--line); }
.filters__toggle:checked ~ .filters__more { display: block; }
.filters__more .row3 { margin-bottom: 14px; gap: 14px 16px; }
.filters__saved { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 22px; border-top: 1px solid var(--line); background: var(--card-2); }
.filters__saved .grow { flex: 1; }
.filters__save { display: flex; gap: 8px; align-items: center; margin: 0; }
.filters__save input { width: 220px; height: 36px; }
.saved-chip { display: inline-flex; align-items: center; gap: 2px; padding-right: 2px; }
.saved-chip form { margin: 0; }
.saved-chip .btn { min-height: 0; height: 22px; padding: 0 6px; }
@media (max-width: 640px) { .filters__save, .filters__save input { width: 100%; } }

/* Pipelines: per client, per job. */
.pipes-filter { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 22px; padding: 14px 18px; }
.pipes-filter .field { margin: 0; min-width: 240px; }
.pipes-filter .check { margin: 0; }
.pipes-filter .grow { flex: 1; }
.pipes-client { margin-bottom: 26px; }
.pipes-client__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.pipes-client__head .avatar { width: 38px; height: 38px; font-size: 13px; border-radius: 12px; }
.pipes-client__head h2 { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.pipes-client__head h2 a { text-decoration: none; }
.pipes-client__head h2 a:hover { text-decoration: underline; }
.pipes-client__head .grow { flex: 1; min-width: 0; }
.pipes-jobs { padding: 0; overflow: hidden; }
.pipes-job { display: grid; grid-template-columns: minmax(200px, 1.1fr) minmax(0, 2.4fr) auto; gap: 18px; align-items: center; padding: 14px 18px; text-decoration: none; border-bottom: 1px solid var(--line); transition: background-color .15s ease; }
.pipes-job:last-child { border-bottom: 0; }
.pipes-job:hover { background: var(--card-2); }
.pipes-job__name { display: grid; gap: 2px; min-width: 0; }
.pipes-job__name b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pipes-job__stages { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.pipes-stage { display: grid; justify-items: center; gap: 1px; padding: 6px 2px; border-radius: 10px; background: var(--card-2); color: var(--dim); }
.pipes-stage b { font-size: 16px; line-height: 1.1; }
.pipes-stage small { font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pipes-stage.has { color: var(--text); background: color-mix(in srgb, var(--accent) 16%, var(--card-2)); }
.pipes-stage.has.st-placed { background: color-mix(in srgb, var(--ok) 20%, var(--card-2)); }
.pipes-stage.has.st-interview, .pipes-stage.has.st-offered { background: color-mix(in srgb, var(--warn) 20%, var(--card-2)); }
.pipes-job__meta { display: grid; justify-items: end; gap: 4px; }
@media (max-width: 900px) {
  .pipes-job { grid-template-columns: minmax(0, 1fr) auto; }
  .pipes-job__stages { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Step bar over multi-step forms (views/layout.js wizSteps): numbered circles on a line, LinkedIn-style.
   Any step can be clicked, back or forward. Portals pick up their own colours from the site.css tokens. */
.wiz { margin: 0 0 24px; position: relative; }
.wiz ol { list-style: none; margin: 0; padding: 0; display: flex; }
.wiz li { flex: 1; position: relative; min-width: 0; }
.wiz li + li::before { content: ""; position: absolute; top: 17px; right: calc(50% + 22px); left: calc(-50% + 22px); height: 2px; border-radius: 2px; background: var(--line-2); }
.wiz li.done + li::before { background: var(--accent); }
.wiz__step { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; padding: 0 4px; border: 0; background: none; color: var(--muted); font: inherit; text-decoration: none; text-align: center; cursor: pointer; border-radius: 12px; }
span.wiz__step { cursor: default; }
.wiz__n { position: relative; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line-2); background: var(--card); color: var(--muted); font-weight: 700; font-size: 14px; transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease; }
.wiz__n .i { display: none; }
.wiz__t { display: grid; gap: 1px; font-size: 13px; font-weight: 600; line-height: 1.25; color: inherit; }
.wiz__t small { font-size: 10.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
a.wiz__step:hover .wiz__n, button.wiz__step:hover .wiz__n { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
a.wiz__step:hover, button.wiz__step:hover { color: var(--text); }
.wiz li.done .wiz__n { background: var(--accent); border-color: var(--accent); color: var(--btn-ink); }
.wiz li.done .wiz__n b { display: none; }
.wiz li.done .wiz__n .i { display: block; }
.wiz li.done .wiz__step { color: var(--text); }
.wiz li.on .wiz__n { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.wiz li.on .wiz__step { color: var(--text); }
.wiz__default { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; }
@media (max-width: 760px) {
  .wiz ol { overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .wiz li { flex: 0 0 auto; min-width: 84px; }
  .wiz__t { font-size: 11.5px; }
  .wiz li:not(.on) .wiz__t { opacity: .75; }
}
/* In-page wizard (Back Office Add candidate). */
.wiz-form .wiz-panel { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; min-width: 0; }
.wiz-form .wiz-panel legend { font-size: 17px; font-weight: 600; margin-bottom: 4px; padding: 0; }
.wiz-local:not(.is-wiz) .wiz-panel + .wiz-panel { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.wiz-local:not(.is-wiz) .wiz-nav [data-wiz-go] { display: none; }
.wiz-nav { display: flex; gap: 10px; align-items: center; padding-top: 16px; margin-top: 4px; border-top: 1px solid var(--line); }
.wiz-nav .grow { flex: 1; }
.wiz-panel[hidden] { display: none !important; }
.wiz-local { max-width: 760px; }
.wiz-form .wiz-panel legend { font: 600 17px var(--sans); letter-spacing: -.01em; text-transform: none; color: var(--text); }
.wiz-form .row { align-items: start; }

/* ---------- 2026-11-22: back office improvements ---------- */
/* Field labels: "Required" / "Optional" tags sit apart from the label (were run together, e.g. "Job titleRequired"). */
.field > span .req, .field > span .opt, .s-label .req, .s-label .opt { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 500; letter-spacing: .02em; padding: 0 7px; border-radius: 999px; vertical-align: 1px; }
.field > span .req, .s-label .req { color: var(--info); background: color-mix(in srgb, var(--info) 14%, transparent); }
.field > span .opt, .s-label .opt { color: var(--dim); }

/* Candidate Pool: job status chips and stacked badges. */
.job-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.job-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); text-decoration: none; font-size: 13px; background: var(--card); }
.job-chip span { font: 11px var(--mono); color: var(--muted); }
.job-chip:hover { border-color: var(--accent); }
.job-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.job-chip.on span { color: rgba(255, 255, 255, .8); }
.badge-stack { display: flex; flex-wrap: wrap; gap: 4px; }
.job-status-card .job-status { margin: 0 0 10px; line-height: 1.5; }
.job-status-card details > summary { cursor: pointer; color: var(--accent); font-size: 13.5px; margin-bottom: 8px; }
.job-status__opts { display: grid; gap: 6px; margin: 6px 0 10px; }

/* Pop-up forms (Add a company). */
dialog.modal { border: 1px solid var(--line-2); border-radius: 16px; padding: 22px 24px; width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; background: var(--card); color: var(--text); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
dialog.modal::backdrop { background: rgba(8, 8, 12, .6); backdrop-filter: blur(2px); }
.modal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.modal__head h2 { margin: 0; }
.modal__x { background: none; border: 0; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.modal__x:hover { color: var(--text); background: var(--card-2); }

/* Change history at the bottom of candidate and client pages. */
.history { margin-top: 22px; }
.history__list { list-style: none; margin: 8px 0 0; padding: 0; }
.history__item { position: relative; padding: 10px 0 10px 20px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.history__item:last-child { border-bottom: 0; }
.history__item::before { content: ""; position: absolute; left: 3px; top: 16px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.history__item.act::before { background: var(--muted); }
.history__meta { color: var(--muted); font-size: 12.5px; margin-bottom: 2px; }
.history__meta b { color: var(--text); font-weight: 600; }
.history__changes { margin: 2px 0 0; padding-left: 18px; }
.history__changes li { margin: 2px 0; }

/* Pipeline boards: columns wrap to fit the screen instead of scrolling sideways. */
.board { grid-auto-flow: row; grid-auto-columns: unset; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); overflow-x: visible; }
.board__col { min-height: 0; padding: 8px; }
.board__col:not(:has(.board__card)) { opacity: .7; }
.board__card { padding: 8px 10px; font-size: 13px; }
.board__card .stage-form { display: flex; gap: 6px; align-items: center; margin-top: 4px; }
.board__card .stage-form select { min-width: 0; flex: 1; font-size: 12.5px; padding: 4px 6px; }
.hr-detail.wide { grid-template-columns: 1fr; }
.hr-detail.wide > div:last-child { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; align-items: start; }
.hr-detail.wide > div:last-child > * { margin: 0; }
/* ---------- 2026-11-22 (2): smoother boards, no sideways scrolling, wider pages ---------- */
/* Use more of the screen. */
.content { max-width: 1320px; }
.content:has(.board) { max-width: 1600px; }
/* Tabs and stage labels wrap onto a second line instead of scrolling sideways. */
.tabs { flex-wrap: wrap; overflow: visible; row-gap: 0; }
.tabs a { white-space: normal; }
.pipes-stage small { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.15; text-align: center; }
.board { overflow: visible; }
/* Tables fit the page; only small screens scroll a wide table. */
@media (min-width: 900px) { .tbl-wrap { overflow-x: visible; } }

/* Drag and drop (public/board.js). */
[data-board] .board__card[data-app] { cursor: grab; user-select: none; transition: box-shadow .15s, transform .15s, border-color .15s; }
[data-board] .board__card[data-app]:hover { box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5); transform: translateY(-1px); }
.board__ghost { position: fixed !important; left: 0; top: 0; z-index: 1000; margin: 0; pointer-events: none; cursor: grabbing;
  box-shadow: 0 22px 44px -12px rgba(0, 0, 0, .6), 0 0 0 1px var(--accent); border-color: var(--accent) !important; opacity: .97; will-change: transform; }
.board__ghost.is-returning { transition: transform .18s cubic-bezier(.2, .8, .2, 1), opacity .18s; opacity: .85; }
.board__ph { opacity: .35; border: 1.5px dashed var(--accent) !important; background: color-mix(in srgb, var(--accent) 10%, var(--card)) !important; pointer-events: none; filter: saturate(.6); }
.board__ph * { visibility: hidden; }
.board__ph > b, .board__ph > a:first-child, .board__ph > a:first-child * { visibility: visible; }
.board__card.is-dragging { display: none; }
.board__card.is-saving { opacity: .6; outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); }
.board__col { transition: background .15s, box-shadow .15s; }
.board__col.is-over { background: color-mix(in srgb, var(--accent) 9%, var(--card-2)); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent); }
body.is-dragging-card, body.is-dragging-card * { cursor: grabbing !important; user-select: none; }

/* Pipelines filters. */
.pipes-filter .pipes-search { min-width: 260px; flex: 1 1 320px; }
.pipes-filter .field { min-width: 160px; }
.pipes-filter__checks { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.pipes-filter__count { margin-left: auto; }
.pipes-job__name .badge { justify-self: start; margin-top: 3px; }
.pipes-job__meta { justify-items: end; }
.pipes-job__meta .badge + .badge { margin-top: 2px; }
[data-live-item][hidden], [data-live-group][hidden] { display: none !important; }
/* Placed cards are locked (moving them asks first). */
.board__card:has(.placed-lock) { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); background: color-mix(in srgb, var(--ok) 5%, var(--card)); }
.placed-lock { justify-self: start; }
