:root,
:root[data-theme="light"] {
  color-scheme: light;
  --brand-orange: #ff7919;
  --brand-orange-hover: #e9680f;
  --brand-orange-soft: #fff0e5;
  --brand-black: #000;
  --bg: #f3f4f5;
  --surface: #fff;
  --surface-raised: #fff;
  --surface-subtle: #f5f5f5;
  --text: #222;
  --text-muted: #62666b;
  --border: #d3d3d3;
  --border-strong: #aeb2b7;
  --shadow: 0 8px 24px rgba(0,0,0,.08);
  --danger: #b42318;
  --danger-bg: #fee4e2;
  --warning: #8a4b08;
  --warning-bg: #ffead0;
  --success: #176b45;
  --success-bg: #dcefe5;
  --info: #175cd3;
  --info-bg: #e6efff;
  --neutral: #5f6368;
  --neutral-bg: #e9eaec;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --brand-orange: #ff8a36;
  --brand-orange-hover: #ff9d59;
  --brand-orange-soft: #3a2112;
  --bg: #0c0d0f;
  --surface: #15171a;
  --surface-raised: #1b1e22;
  --surface-subtle: #22252a;
  --text: #f5f5f5;
  --text-muted: #aeb2b7;
  --border: #34383d;
  --border-strong: #555b62;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --danger: #ffb4ab;
  --danger-bg: #4a1d1a;
  --warning: #ffd19a;
  --warning-bg: #493016;
  --success: #9be0bb;
  --success-bg: #153b29;
  --info: #adc6ff;
  --info-bg: #18325d;
  --neutral: #d0d3d6;
  --neutral-bg: #30343a;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body { margin: 0; font-family: "Jost", "Segoe UI", Arial, sans-serif; color: var(--text); background: var(--bg); line-height: 1.4; transition: background-color .15s, color .15s; }
header { min-height: 92px; color: #fff; background: #000; padding: 16px 28px; display: flex; justify-content: space-between; gap: 24px; align-items: center; border-bottom: 4px solid var(--brand-orange); }
.brand-block { display: flex; align-items: center; gap: 24px; min-width: 0; }
.brand-logo { width: 152px; height: 50px; object-fit: contain; flex: 0 0 auto; }
.product-name { border-left: 1px solid #3a3a3a; padding-left: 24px; min-width: 0; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: "Gogh", "Arial Black", "Segoe UI", sans-serif; }
h1 { font-size: 30px; line-height: 1; margin-bottom: 5px; }
h2 { font-size: 22px; line-height: 1.2; margin-bottom: 18px; }
header p { margin-bottom: 0; color: #bfc1c3; font-size: 14px; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.eyebrow { text-transform: uppercase; letter-spacing: .11em; font-size: 11px; font-weight: 700; color: var(--brand-orange); }
.service-badge { border: 1px solid #555; padding: 8px 12px; border-radius: 999px; white-space: nowrap; color: #ccc; font-size: 13px; }
.service-badge.online { border-color: #386b4b; color: #9be0bb; background: #102d1f; }
.theme-toggle { background: transparent; color: #fff; border: 1px solid var(--brand-orange); min-height: 40px; }
main { width: 100%; min-width: 0; padding: 28px 28px 40px; }
.workspace { display: grid; grid-template-columns: 232px minmax(0, 1fr); max-width: 1680px; margin: auto; min-height: calc(100vh - 112px); }
.sidebar { background: var(--surface); border-right: 1px solid var(--border); padding: 26px 14px; }
#side-nav { position: sticky; top: 20px; }
#side-nav > a { display: block; padding: 12px 14px; margin: 4px 0; border-radius: 8px; color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 600; border-left: 3px solid transparent; }
#side-nav > a:hover { color: var(--text); background: var(--surface-subtle); }
#side-nav > a[aria-current="page"] { border-left-color: var(--brand-orange); background: var(--brand-orange-soft); color: var(--text); }
#side-nav .eyebrow { padding-left: 14px; }
.sidebar-role { border-top: 1px solid var(--border); margin-top: 24px; padding: 14px 10px; }
#menu-toggle { display: none; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin: 26px 0 20px; }
.page-heading h2 { font-size: 28px; margin: 7px 0; }
.page-heading p { margin-bottom: 0; }
.page-heading > button { flex-shrink: 0; }
.quick-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.quick-links a { padding: 16px; border: 1px solid var(--border); border-radius: 8px; text-decoration: none; background: var(--surface-subtle); }
a { color: var(--text); text-underline-offset: 4px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--brand-orange); outline-offset: 3px; }
.back-link { display: inline-block; margin-bottom: 20px; }
.create-panel { border: 1px solid var(--border); background: var(--surface-subtle); padding: 16px; border-radius: 10px; margin-bottom: 20px; }
.create-panel summary { cursor: pointer; font-weight: 700; }
.compact-form { max-width: 640px; margin-top: 18px; }
.integration-cards { margin: 20px 0; }
dialog { color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; width: min(580px, calc(100vw - 28px)); max-height: calc(100dvh - 32px); overflow: auto; box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(0,0,0,.65); }
body:has(dialog[open]) { overflow: hidden; }
.secondary { color: var(--text); background: var(--surface-subtle); border-color: var(--border-strong); }
.skip-link { position: fixed; left: 16px; top: 12px; z-index: 10; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); background: var(--surface); }
.skip-link:focus { width: auto; height: auto; padding: 12px; clip-path: none; }
section, .card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 22px; margin-bottom: 20px; box-shadow: var(--shadow); }
section > h2, .card > h2 { padding-bottom: 12px; position: relative; }
section > h2::after, .card > h2::after, .section-title h2::after { content: ""; display: block; width: 80px; height: 4px; background: var(--brand-orange); margin-top: 10px; }
.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: 1.1fr .9fr; }
.grid .card { margin: 0; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.section-title h2 { margin-bottom: 0; padding-bottom: 12px; }
.metrics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.metrics article { background: var(--surface-subtle); border: 1px solid var(--border); border-radius: 10px; padding: 18px; min-height: 108px; display: flex; flex-direction: column; justify-content: space-between; }
.metrics strong { font-family: "Gogh", "Arial Black", sans-serif; font-size: 30px; color: var(--text); }
.metrics article:first-child strong { color: var(--brand-orange); }
.metrics span, .candidate span, .candidate small { color: var(--text-muted); display: block; margin-top: 5px; }
label { display: block; font-size: 13px; font-weight: 700; margin: 12px 0; }
input, select, textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface-subtle); color: var(--text); font: inherit; }
textarea { min-height: 76px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 2px solid var(--brand-orange); outline-offset: 2px; }
button { border: 2px solid var(--brand-orange); border-radius: 999px; background: var(--brand-orange); color: #17100b; min-height: 40px; padding: 9px 18px; font: inherit; font-weight: 700; cursor: pointer; transition: background-color .15s, border-color .15s, transform .15s; }
button:hover { background: var(--brand-orange-hover); border-color: var(--brand-orange-hover); }
button:active { transform: translateY(1px); }
button.small { padding: 6px 10px; margin-top: 8px; min-height: 34px; font-size: 12px; }
.list { display: grid; gap: 9px; margin-top: 16px; }
.candidate { display: flex; justify-content: space-between; gap: 14px; border-left: 5px solid var(--danger); background: var(--surface-subtle); padding: 12px; border-radius: 8px; }
.candidate.ok { border-left-color: var(--success); }
.candidate > div:last-child { max-width: 48%; text-align: right; }
.competencies { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.competency { border: 1px solid var(--border); border-radius: 10px; padding: 13px; display: flex; justify-content: space-between; gap: 14px; background: var(--surface-subtle); }
.competency strong, .competency small, .competency span { display: block; }
.competency span, .competency small { color: var(--text-muted); margin-bottom: 5px; }
.competency > div:last-child { text-align: right; min-width: 100px; }
.table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); }
th, td { text-align: left; padding: 11px 9px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--surface-subtle); color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
tbody tr:hover { background: var(--brand-orange-soft); }
tbody tr[data-saved="true"] { background: var(--brand-orange-soft); }
tbody tr[data-saved="true"] td:first-child { box-shadow: inset 4px 0 0 var(--brand-orange); }
.level { display: inline-block; border-radius: 999px; padding: 5px 9px; font-weight: 700; background: var(--neutral-bg); color: var(--neutral); white-space: nowrap; }
.l0 { background: var(--danger-bg); color: var(--danger); }
.l1 { background: var(--warning-bg); color: var(--warning); }
.l2 { background: var(--success-bg); color: var(--success); }
.l3 { background: var(--info-bg); color: var(--info); }
.ln { background: var(--neutral-bg); color: var(--neutral); }
.muted { color: var(--text-muted); font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.legend { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.matrix-cell { border: 1px solid var(--border); background: transparent; border-radius: 8px; padding: 5px; min-width: 70px; }
.cell-subtitle { display: block; color: var(--text-muted); margin-top: 5px; }
.wizard-nav { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px; margin: 6px 0 14px; }
.wizard-nav button { width: 44px; height: 44px; min-height: 44px; padding: 0; font-size: 22px; border-radius: 8px; }
.wizard-nav select { margin: 0; min-width: 0; width: 100%; min-height: 44px; text-overflow: ellipsis; }
.wizard-label { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 0; }
.check-label { display: flex; gap: 10px; align-items: center; }
.check-label input { width: 20px; height: 20px; margin: 0; }
.skill-context { border-left: 4px solid var(--brand-orange); padding: 14px 18px; background: var(--surface-subtle); border-radius: 8px; margin: 18px 0; }
.skill-context h3 { margin-top: 0; }
#level-buttons { border: 0; margin: 18px 0; padding: 0; min-width: 0; }
#level-buttons legend { font-weight: 700; margin-bottom: 12px; }
.segmented-levels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--border-strong); border-radius: 10px; overflow: hidden; }
.segmented-levels label { position: relative; margin: 0; min-width: 0; cursor: pointer; }
.segmented-levels input { position: absolute; opacity: 0; width: 1px; height: 1px; padding: 0; margin: 0; }
.segmented-levels span { display: flex; flex-direction: column; justify-content: center; text-align: center; min-height: 88px; padding: 10px 5px; font-size: 12px; border: 3px solid transparent; height: 100%; }
.segmented-levels b { display: block; font-size: 26px; }
.segmented-levels em { font-style: normal; }
.label-short { display: none; }
@media (max-width: 600px) { .segmented-levels .label-long { display: none; } .segmented-levels .label-short { display: block; white-space: nowrap; } }
.segmented-levels input:checked + span { border-color: var(--text); box-shadow: inset 0 -5px 0 var(--brand-orange); }
.segmented-levels input:focus-visible + span { outline: 3px solid var(--brand-orange); outline-offset: -5px; }
.segmented-levels input:disabled + span { opacity: .55; cursor: not-allowed; }
.wizard-save { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 12px; }
.wizard-save button { min-height: 52px; flex: 1; }
.assessment-details { padding: 14px 0; }
.assessment-details summary { cursor: pointer; }
@media (max-width: 600px) { #assessment-section { padding: 12px; } .wizard-nav { gap: 6px; } .segmented-levels span { min-height: 94px; font-size: 10px; padding: 8px 2px; overflow-wrap: anywhere; } .wizard-save { position: sticky; bottom: 0; padding: 10px 0; background: var(--surface); z-index: 1; } .wizard-save button { padding: 10px; font-size: 13px; } }
@media (max-width: 600px) { body[data-page="assessment"] .page-heading p { display: none; } body[data-page="assessment"] .page-heading { margin: 16px 0; } #wizard-employee { margin-bottom: 10px; } .skill-context { padding: 12px; margin: 12px 0; } }
.error { color: var(--danger); }
button:disabled { cursor: not-allowed; opacity: .5; }
footer { padding: 20px 0 0; color: var(--text-muted); font-size: 13px; }
section { scroll-margin-top: 18px; }
@media (max-width: 1100px) { .metrics { grid-template-columns: repeat(2, 1fr); } .competencies { grid-template-columns: 1fr; } }
@media (max-width: 850px) { .grid.two { grid-template-columns: 1fr; } .workspace { grid-template-columns: minmax(0, 1fr); } .sidebar { padding: 12px 20px; border-right: 0; border-bottom: 1px solid var(--border); } #menu-toggle { display: block; width: 100%; text-align: left; } #side-nav { display: none; position: static; padding-top: 16px; } #side-nav.mobile-open { display: block; } header { align-items: flex-start; } .header-actions { max-width: 240px; } }
@media (max-width: 600px) { header { flex-direction: column; padding: 16px 14px; align-items: stretch; } .brand-block { gap: 14px; } .brand-logo { width: 122px; height: 40px; } .product-name { padding-left: 14px; } .product-name p { display: none; } .header-actions { max-width: none; justify-content: space-between; } h1 { font-size: 24px; } main { padding: 16px 10px 40px; } section, .card { border-radius: 10px; padding: 16px; } .candidate { flex-direction: column; } .candidate > div:last-child { text-align: left; max-width: none; } button { min-height: 44px; } }
@media (max-width: 390px) { .metrics { grid-template-columns: 1fr; } .service-badge { display: none; } }
@media (max-width: 600px) { .page-heading { flex-direction: column; } .page-heading h2 { font-size: 24px; } .page-heading > button { align-self: flex-start; } dialog { padding: 18px; } .sidebar { padding: 10px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media print { :root, :root[data-theme="dark"] { color-scheme: light; --bg:#fff; --surface:#fff; --surface-subtle:#f5f5f5; --text:#000; --text-muted:#444; --border:#aaa; --shadow:none; } header { color:#000; background:#fff; border-bottom:2px solid #000; } .brand-logo, .header-actions, button { display:none !important; } section,.card { break-inside:avoid; box-shadow:none; } }
@media print { .workspace { display: block; } .sidebar, .demo-notice, footer { display: none; } main { padding: 0; } }
