/* Velorus Talent dashboard. Same tokens as velorustalent.com (light default, dark on request). */
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url("fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url("fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-display: swap; src: url("fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }

:root {
	--bg: #F4F6F9; --surface: #FFFFFF; --ink: #10202E; --ink-2: #3C4B5A; --ink-3: #5B6877;
	--line: #DDE3EA; --navy: #10202E; --gold: #E8B84A; --blue: #1D4ED8; --blue-dark: #1E40AF; --link: #1D4ED8;
	--field: #7D8A99; --good: #067647; --warn: #B54708; --bad: #B42318; --tint: #EEF3FF;
	--chart: #1D4ED8; --chart-line: #10202E;
	--head: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif; --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
	--r: 12px; --shadow: 0 1px 2px rgba(16, 32, 46, 0.05), 0 8px 24px rgba(16, 32, 46, 0.06);
}
:root[data-theme="dark"] {
	color-scheme: dark;
	--bg: #0B1620; --surface: #14283A; --ink: #EEF3F8; --ink-2: #C3CDD8; --ink-3: #9AA8B7;
	--line: #24384B; --navy: #132A40; --blue: #2563EB; --blue-dark: #1D4ED8; --link: #93B7FF;
	--field: #7A8DA1; --good: #47CD89; --warn: #FDB022; --bad: #F97066; --tint: #1A3358;
	--chart: #2563EB; --chart-line: #E8B84A;
	--shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px rgba(0, 0, 0, 0.3);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; letter-spacing: -0.01em; margin: 0; line-height: 1.15; }
p { margin: 0 0 0.6em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 28px); }
.skip { position: absolute; left: 12px; top: -60px; padding: 10px 14px; background: var(--navy); color: #FFF; border-radius: 8px; z-index: 10; }
.skip:focus { top: 10px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-3); }
.small { font-size: 0.9375rem; }
.h1 { font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem); }
.h2 { font-size: 1.375rem; }
.lede { color: var(--ink-2); font-size: 1.0625rem; margin-top: 8px; }
.eyebrow { margin: 0 0 6px; font-weight: 700; color: var(--link); }
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--tint); color: var(--ink); font: 700 0.8125rem var(--body); vertical-align: middle; }

/* bar */
.bar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.bar__in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand__tile { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #10202E; }
.brand__mark { width: 22px; height: 22px; }
.brand__word { font: 800 1.0625rem var(--head); }
.brand__app { font-weight: 600; color: var(--ink-3); padding-left: 10px; border-left: 1px solid var(--line); }
.bar__end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.bar__end form { margin: 0; }
.bar__who { color: var(--ink-3); font-size: 0.9375rem; }
.iconbtn { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); cursor: pointer; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.i--sun { display: none; }
:root[data-theme="dark"] .i--sun { display: block; }
:root[data-theme="dark"] .i--moon { display: none; }
@media (max-width: 720px) { .bar__who, .brand__app { display: none; } }

.demo-band { background: #10202E; color: #DCE4EC; padding: 10px 0; font-size: 0.9375rem; }
.demo-band strong { color: var(--gold); }
.demo-band a { color: #A9C1FF; }
.demo-band--admin { background: #1A3044; }

.main { padding-top: clamp(24px, 4vw, 40px); padding-bottom: 56px; }
.foot { border-top: 1px solid var(--line); padding: 20px 0 32px; color: var(--ink-3); font-size: 0.9375rem; }
.crumbs { color: var(--ink-3); font-size: 0.9375rem; margin-bottom: 10px; }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }

/* buttons + forms */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 2px solid transparent; border-radius: 8px; font: 700 1rem var(--body); text-decoration: none; cursor: pointer; background: transparent; }
.btn--primary { background: var(--blue); border-color: var(--blue); color: #FFFFFF; }
.btn--primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn--ghost:hover { border-color: var(--ink-3); }
.btn--sm { min-height: 40px; padding: 7px 14px; font-size: 0.9375rem; }
.btn--lg { min-height: 52px; padding: 12px 22px; font-size: 1.0625rem; }
.form { display: grid; gap: 14px; }
.form--row { grid-template-columns: 1fr 1fr auto; align-items: end; }
.form--row .panel__title { grid-column: 1 / -1; margin: 0; }
.field { display: grid; gap: 6px; }
label, legend { font-weight: 700; }
input, select, textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--field); border-radius: 8px; background: var(--surface); color: var(--ink); font: 400 1rem var(--body); }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.25); }
fieldset { border: 0; padding: 0; margin: 0; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.days--metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ok { padding: 12px 14px; border-radius: 8px; background: #ECFDF3; border: 1px solid #75E0A7; color: #054F31; }
.err { padding: 12px 14px; border-radius: 8px; background: #FEF3F2; border: 1px solid #FDA29B; color: #7A271A; }
:root[data-theme="dark"] .ok { background: #0F2E22; border-color: #1F6B4A; color: #CDEFE0; }
:root[data-theme="dark"] .err { background: #3A1612; border-color: #8A3A2E; color: #FAD4CE; }
@media (max-width: 760px) {
	.form--row { grid-template-columns: 1fr; }
	.days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.days--metrics { grid-template-columns: 1fr 1fr; }
}

/* auth */
.auth { display: grid; place-items: center; min-height: 60vh; }
.auth__card { width: 100%; max-width: 460px; padding: clamp(22px, 4vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.auth__card .form { margin: 20px 0 18px; }

/* panels, kpis, charts */
.panel { margin: 0 0 18px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.panel__title { margin: 0 0 12px; font: 800 1.0625rem var(--head); }
.panel__title .muted { font: 600 0.9375rem var(--body); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid2 > .panel { margin: 0; }
.grid2 + .grid2 { margin-top: 18px; }
@media (max-width: 860px) { .grid2 { grid-template-columns: 1fr; } }
.spec { margin-bottom: 40px; }
.spec__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.spec__head p { margin: 4px 0 0; }
.spec__links { display: flex; gap: 8px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.kpi:first-child { background: #10202E; border-color: #10202E; }
.kpi:first-child .kpi__label, .kpi:first-child .kpi__delta { color: #B8C4D0; }
.kpi:first-child .kpi__value { color: #FFFFFF; }
.kpi:first-child .kpi__value small { color: #B8C4D0; }
.kpi__label { margin: 0; font-size: 0.9375rem; color: var(--ink-3); }
.kpi__value { margin: 4px 0 2px; font: 800 2rem/1.1 var(--head); font-variant-numeric: tabular-nums; }
.kpi__value small { font: 600 0.9375rem var(--body); color: var(--ink-3); }
.kpi__delta { margin: 0; font-size: 0.875rem; color: var(--ink-3); }
.kpi__delta.is-good { color: var(--good); font-weight: 600; }
.kpi__delta.is-warn { color: var(--warn); font-weight: 600; }
@media (max-width: 960px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart__bar { fill: var(--chart); }
.chart__axis { font: 600 12px var(--body); fill: var(--ink-3); }
.chart__val { font: 700 12px var(--body); fill: var(--ink-2); }
.chart__val--big { font: 800 15px var(--head); fill: var(--ink); }
.chart__val--in { fill: #FFFFFF; }
.chart__std { stroke: var(--ink-3); stroke-width: 1.25; stroke-dasharray: 4 4; }
.chart__line { fill: none; stroke: var(--chart-line); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart__dot { fill: var(--surface); stroke: var(--chart-line); stroke-width: 2.5; }
.rows { margin: 0; display: grid; }
.rows div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.rows div:last-child { border-bottom: 0; }
.rows dt { color: var(--ink-2); }
.rows dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.rows--big { margin-bottom: 18px; padding: 8px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.note { margin: 0; color: var(--ink-2); white-space: pre-line; }
.weekpick { display: flex; align-items: center; gap: 10px; }
.weekpick select { width: auto; min-width: 250px; }
.weeknav { display: flex; gap: 8px; }
.empty { padding: 28px; border: 1px dashed var(--field); border-radius: var(--r); background: var(--surface); }
.empty--inline { padding: 18px 20px; }
.list { margin: 0 0 14px; padding-left: 18px; }

/* tables */
.tablewrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table thead th { font-size: 0.8125rem; color: var(--ink-3); font-weight: 700; white-space: nowrap; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 700px) {
	.table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.table, .table tbody, .table tr, .table th, .table td { display: block; width: 100%; }
	.table tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
	.table th, .table td { border: 0; padding: 4px 0; }
	.table td[data-label] { display: flex; justify-content: space-between; gap: 12px; text-align: right; }
	.table td[data-label]::before { content: attr(data-label); color: var(--ink-3); text-align: left; }
}

/* printable report */
.report__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
@media print {
	.bar, .foot, .noprint, .skip, .demo-band--admin { display: none !important; }
	body { background: #FFFFFF; }
	.panel, .rows--big { break-inside: avoid; }
}
