/* CareerLens client portal, Style I (design canvas of 3 Nov 2026): black header with the SkillsHub logo, the client's
   name in orange and tabs with a thin bar under each label (orange when open); a dark slate panel on the left for
   progress and filters; white cards with a black outline on a light grey-blue ground; Manrope. */
:root {
  --bg: #f2f5f8; --surface: #fff; --ink: #1f2f3d; --heading: #111; --muted: #51606e; --line: #e3e8ee; --outline: #141413;
  --slate: #1f2f3d; --slate-2: #2c4153; --slate-ink: #fff; --slate-muted: #a9b6c2; --orange: #f6921e; --orange-ink: #9a4c08;
  --blue: #1f7fc0; --blue-dark: #155f91; --ok: #2f6b3f; --weak: #c0620f; --partial: #1d8f8a; --strong: #175c96;
  --warn-bg: #fff7ec; --warn-ink: #5a3a10; --bad: #9b2c1f; --track: #e3e8ee;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0f1923; --surface: #16222e; --ink: #dbe5ee; --heading: #f2f5f8; --muted: #a9b6c2; --line: #2a3a4a; --outline: #3a4b5b;
  --slate: #0b1620; --slate-2: #1b2a38; --blue: #5fb0e8; --blue-dark: #86c4ef; --ok: #6fc28a; --weak: #f0a058; --partial: #4cc2bb;
  --strong: #8cc4ee; --warn-bg: #3a2814; --warn-ink: #f3c48d; --bad: #f19a8c; --track: #24384a; --orange-ink: #f0a058; color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #0f1923; --surface: #16222e; --ink: #dbe5ee; --heading: #f2f5f8; --muted: #a9b6c2; --line: #2a3a4a; --outline: #3a4b5b;
  --slate: #0b1620; --slate-2: #1b2a38; --blue: #5fb0e8; --blue-dark: #86c4ef; --ok: #6fc28a; --weak: #f0a058; --partial: #4cc2bb;
  --strong: #8cc4ee; --warn-bg: #3a2814; --warn-ink: #f3c48d; --bad: #f19a8c; --track: #24384a; --orange-ink: #f0a058; color-scheme: dark }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 14px/1.5 Manrope, "Segoe UI", system-ui, -apple-system, sans-serif; }
h1, h2, h3 { color: var(--heading); margin: 0; font-weight: 800; text-wrap: balance; }
h1 { font-size: 24px; } h2 { font-size: 18px; } h3 { font-size: 16px; }
p { margin: 0; }
a { color: var(--blue); } a:hover { color: var(--blue-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
@media (max-width: 520px) { .wrap { padding-left: 16px; padding-right: 16px; } }

header.top { background: #000; color: #fff; }
.head { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; min-height: 80px; padding-top: 16px; }
.brand { display: flex; gap: 12px; align-items: center; font-size: 16px; font-weight: 700; color: var(--orange); }
nav[aria-label="Sections"] { display: flex; gap: 10px; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.tab { color: #fff; text-decoration: none; font-weight: 700; font-size: 13px; display: flex; flex-direction: column; gap: 6px; padding: 10px 0 12px; opacity: .7; min-width: 84px; text-align: center; }
.tab:hover { color: #fff; opacity: 1; } .tab i { order: 2; display: block; height: 3px; border-radius: 2px; background: #3d3d3d; }
.tab.on { opacity: 1; } .tab.on i { background: var(--orange); }
main:focus { outline: none; }
main { padding-top: 22px; padding-bottom: 48px; display: grid; gap: 16px; }
main.solo { max-width: 560px; }
.foot { padding-bottom: 32px; color: var(--muted); font-size: 13px; }

.split { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.pane { flex: 1 1 260px; background: var(--slate); color: #fff; border-radius: 16px; padding: 18px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.col { flex: 3 1 560px; min-width: 0; display: grid; gap: 14px; align-content: start; }
.card { background: var(--surface); border: 1px solid var(--outline); border-radius: 16px; padding: 18px 20px; min-width: 0; }
.card.narrow { max-width: 520px; }
.stack { display: grid; gap: 12px; } .stack.tight { gap: 6px; }
.row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.lab { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lab.or { color: var(--orange); }
.pl { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-muted); padding: 2px 4px 6px; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .sm { font-size: 12px; color: var(--slate-muted); }
.pane .muted { color: var(--slate-muted); }
.card .sm, .col > .sm, .confirm .sm { color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 10px; font-weight: 700; font-size: 14px; text-decoration: none; border: 1px solid var(--outline); background: #141413; color: #fff; cursor: pointer; }
.btn:hover { color: #fff; opacity: .9; } .btn:disabled { opacity: .5; cursor: progress; }
.btn.or { background: var(--orange); border-color: var(--orange); color: #111; } .btn.or:hover { color: #111; }
.btn.ghost { background: var(--surface); color: var(--heading); } .btn.ghost:hover { color: var(--heading); background: var(--bg); }
.btn.warn, .link.warn { color: var(--bad); border-color: var(--bad); }
.btn.start { justify-self: start; }
.link { border: 0; background: none; padding: 0; color: var(--blue); font-weight: 700; cursor: pointer; text-align: left; }
.acts { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

label { display: grid; gap: 5px; font-weight: 700; font-size: 13px; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
label.check input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
label.check.role { padding: 8px 0; border-top: 1px solid var(--line, #e5e7eb); }
label.check.role:first-of-type { border-top: 0; }
.role-text { display: flex; flex-direction: column; gap: 2px; }
input:not([type=checkbox]):not([type=file]), select, textarea { width: 100%; min-height: 44px; background: var(--surface); border: 1px solid #8a96a3; border-radius: 10px; padding: 8px 12px; }
input[type=file] { min-height: 44px; }
textarea { resize: vertical; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 10px; margin: 0; }
legend { font-weight: 800; padding: 0 6px; }
.two { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }

.note { background: var(--warn-bg); color: var(--warn-ink); border-left: 4px solid var(--orange); border-radius: 8px; padding: 12px 14px; }
.note.bad { border-left-color: var(--bad); }
.scan { display: grid; gap: 8px; background: var(--warn-bg); color: var(--warn-ink); border-left: 4px solid var(--orange); border-radius: 8px; padding: 12px 14px; font-size: 13.5px; }
.confirm { display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.empty { border: 1px dashed var(--outline); border-radius: 16px; padding: 22px; display: grid; gap: 6px; background: var(--surface); color: var(--muted); }
.empty strong { color: var(--heading); font-size: 16px; }

.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.t-ok { color: var(--ok); } .t-info { color: var(--blue); } .t-wait { color: var(--orange-ink); } .t-warn { color: var(--bad); } .t-muted { color: var(--muted); }
.pane .t-info { color: #9fd0f2; } .pane .t-muted { color: var(--slate-muted); } .pane .t-wait { color: #f8b46a; }
.b-weak { color: var(--weak); } .b-partial { color: var(--partial); } .b-strong { color: var(--strong); } .b-muted { color: var(--muted); }

.next { display: grid; gap: 8px; border: 1px solid var(--orange); border-radius: 12px; padding: 14px; }
.next strong { font-size: 16px; }
.lad { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 8px 0; text-decoration: none; color: #fff; }
.lad:hover { color: #fff; } .lad:hover strong { text-decoration: underline; }
.lad b { width: 28px; height: 28px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 12px; border: 2px solid #7d8d9c; color: #c4ced7; }
.lad b.done { background: var(--blue); border-color: var(--blue); color: #fff; }
.lad span { display: grid; }
.line { border-top: 1px solid #3a4b5b; padding-top: 12px; }
.fl, .cs { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border-radius: 10px; color: #d6dde3; text-decoration: none; font-weight: 700; }
.cs { display: grid; } .fl:hover, .cs:hover { color: #fff; background: #283b4c; }
.fl.on, .cs.on { background: var(--slate-2); color: #fff; box-shadow: inset 3px 0 0 var(--orange); }
.pane input, .pane select { background: #fff; color: #1f2f3d; }
.pane .btn.ghost { background: transparent; color: #fff; border-color: #7d8d9c; }

.four, .three { display: grid; gap: 12px; }
.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } .three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .four, .three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .three { grid-template-columns: 1fr; } }
.big { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--outline); border-radius: 16px; background: var(--surface); min-width: 0; align-content: start; }
.big b { font-size: 30px; font-weight: 800; color: var(--heading); line-height: 1.1; font-variant-numeric: tabular-nums; }
.big b.b-weak { color: var(--weak); } .big b.b-partial { color: var(--partial); } .big b.b-strong { color: var(--strong); }
.svc { display: grid; gap: 6px; padding: 14px 16px; border: 1px solid var(--outline); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; align-content: start; min-width: 0; }
.svc:hover { outline: 3px solid var(--blue); outline-offset: -1px; color: var(--ink); }
.svc strong { font-size: 16px; color: var(--heading); } .svc .sm { color: var(--muted); }
.svc.locked { opacity: .6; } .svc.locked:hover { outline: 0; }
.arow { display: grid; grid-template-columns: 90px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 13px; }
.arow:hover { background: var(--bg); color: var(--ink); } .read { font-weight: 700; color: var(--blue); }
.it, .item { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; flex-wrap: wrap; }
.item { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.card-it { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.it:hover b, .item:hover b { text-decoration: underline; }
.grow { display: grid; gap: 2px; flex: 1 1 260px; min-width: 0; }
.score { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
details summary { cursor: pointer; font-weight: 700; color: var(--blue); min-height: 44px; display: flex; align-items: center; }
.menu { padding: 6px 0; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.kv dt { color: var(--muted); font-weight: 600; } .kv dd { margin: 0; overflow-wrap: anywhere; }
.kvs { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 13px; } .kvs span:nth-child(odd) { color: var(--slate-muted); }
.avatar { width: 56px; height: 56px; border-radius: 28px; background: var(--orange); color: #111; font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.scorehead { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; } .scorehead span { display: grid; }
.bignum { font-size: 48px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.bandscale { display: grid; grid-template-columns: 55fr 15fr 30fr; height: 8px; border-radius: 4px; overflow: hidden; position: relative; }
.bandscale span:nth-child(1) { background: var(--weak); } .bandscale span:nth-child(2) { background: var(--partial); } .bandscale span:nth-child(3) { background: var(--strong); }
.bandscale span:nth-child(n+4) { display: none; }
.bandscale i { position: absolute; top: -4px; width: 3px; height: 16px; background: var(--heading); border-radius: 2px; }
.thread { display: grid; gap: 12px; }
.msg { display: grid; gap: 4px; padding: 14px 16px; border-radius: 12px; max-width: 62ch; white-space: pre-wrap; }
.msg.client { background: var(--bg); justify-self: end; } .msg.staff { border: 1px solid var(--line); }
