/* ═══════════════════════════════════════════════════════════
   HR Hub — Design System
   Neo-Brutalist · Space Grotesk · Sidebar Layout
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg:        #f5f5f0;
  --ink:       #0a0a0a;
  --ink-mid:   #333333;
  --ink-light: #6b7280;
  --accent:    #ffe500;
  --border:    1.5px solid #0a0a0a;
  --shadow:    4px 4px 0 #0a0a0a;
  --shadow-sm: 3px 3px 0 #0a0a0a;
  --font:      'Space Grotesk', system-ui, sans-serif;
  --purple:    #7c3aed;
  --purple-bg: #ede9fe;
  --sidebar-w: 230px;
  --topbar-h:  52px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); min-height: 100vh; font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); }

/* ── DEMO BANNER ─────────────────────────────────────────── */
.demo-banner { background: var(--accent); border-bottom: var(--border); padding: 7px 20px; display: flex; align-items: center; justify-content: space-between; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.demo-banner a { color: var(--ink); border-bottom: 1.5px solid var(--ink); }

/* ── APP SHELL ───────────────────────────────────────────── */
.app-shell { display: flex; min-height: calc(100vh - 34px); }

/* ── SIDEBAR ─────────────────────────────────────────────── */
.sidebar { width: var(--sidebar-w); background: var(--ink); position: fixed; top: 34px; bottom: 0; left: 0; z-index: 200; display: flex; flex-direction: column; border-right: var(--border); overflow-y: auto; }
.sidebar-brand { padding: 18px 18px 14px; border-bottom: 1px solid rgba(245,245,240,.1); display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.brand-dot { width: 9px; height: 9px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }
.brand-name { font-size: 13px; font-weight: 800; color: var(--bg); letter-spacing: .1em; text-transform: uppercase; }
.sidebar-user { padding: 10px 18px; border-bottom: 1px solid rgba(245,245,240,.08); display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.user-avatar { width: 26px; height: 26px; background: var(--accent); color: var(--ink); font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.user-name { font-size: 11px; font-weight: 600; color: rgba(245,245,240,.85); line-height: 1.3; }
.user-role { font-size: 9px; font-weight: 700; color: rgba(245,245,240,.4); text-transform: uppercase; letter-spacing: .08em; }
.sidebar-nav { flex: 1; padding: 8px 0 16px; }
.nav-group-label { font-size: 8px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: rgba(245,245,240,.28); padding: 12px 18px 4px; }
.nav-btn { font-family: var(--font); font-size: 12px; font-weight: 600; width: 100%; text-align: left; padding: 7px 18px; border: none; background: none; color: rgba(245,245,240,.58); cursor: pointer; display: flex; align-items: center; gap: 9px; border-left: 3px solid transparent; transition: color .1s, background .1s, border-color .1s; }
.nav-btn:hover { color: rgba(245,245,240,.9); background: rgba(245,245,240,.05); }
.nav-btn.active { color: var(--bg); background: rgba(255,229,0,.1); border-left-color: var(--accent); }
.nav-btn .badge { font-size: 9px; font-weight: 700; background: rgba(255,255,255,.15); color: rgba(245,245,240,.7); padding: 1px 6px; border-radius: 10px; margin-left: auto; }
.nav-btn.active .badge { background: var(--accent); color: var(--ink); }

/* ── MAIN AREA ───────────────────────────────────────────── */
.main-area { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; min-height: calc(100vh - 34px); }
.top-bar { height: var(--topbar-h); border-bottom: var(--border); padding: 0 28px; display: flex; align-items: center; justify-content: space-between; background: var(--bg); position: sticky; top: 34px; z-index: 100; flex-shrink: 0; }
.top-bar-title { font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.top-bar-actions { display: flex; gap: 8px; align-items: center; }
.content { padding: 26px 28px; flex: 1; }

/* ── VIEWS ───────────────────────────────────────────────── */
.view { display: none; }
.view.active { display: block; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn { font-family: var(--font); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 9px 16px; border: var(--border); background: var(--bg); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: transform .1s, box-shadow .1s; box-shadow: var(--shadow-sm); white-space: nowrap; }
.btn:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: none; box-shadow: var(--shadow-sm); }
.btn-yellow { background: var(--accent); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-purple { background: var(--purple); color: #fff; border-color: var(--purple); }
.btn-purple:hover { box-shadow: 5px 5px 0 var(--purple); }
.btn-sm { font-size: 9px; padding: 5px 10px; box-shadow: 2px 2px 0 var(--ink); }
.btn-sm:hover { box-shadow: 4px 4px 0 var(--ink); transform: translate(-1px,-1px); }
.btn-ghost { box-shadow: none; border-color: rgba(10,10,10,.2); color: var(--ink-light); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-danger { border-color: #dc2626; color: #dc2626; box-shadow: 2px 2px 0 #dc2626; }
.btn-danger:hover { background: #dc2626; color: #fff; box-shadow: 4px 4px 0 #dc2626; }
.btn-green { background: #059669; color: #fff; border-color: #059669; }
.btn-green:hover { box-shadow: 5px 5px 0 #059669; }

/* ── STATS ───────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 10px; margin-bottom: 22px; }
.stat { border: var(--border); padding: 16px 18px; box-shadow: var(--shadow-sm); background: var(--bg); }
.stat-n { font-size: 28px; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.stat-l { font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-light); }
.stat.yellow { background: var(--accent); }
.stat.purple { background: var(--purple-bg); border-color: var(--purple); }
.stat.green  { background: #d1fae5; border-color: #059669; }
.stat.red    { background: #fee2e2; border-color: #dc2626; }

/* ── SECTION HEADER ──────────────────────────────────────── */
.sec-hd { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.sec-title { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.sec-sub { font-size: 12px; color: var(--ink-light); margin-top: 3px; }
.sec-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── TWO-COL GRID ────────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.three-col { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.four-col { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }

/* ── CARD ────────────────────────────────────────────────── */
.card { border: var(--border); padding: 20px; box-shadow: var(--shadow-sm); background: var(--bg); }
.card-title { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-light); margin-bottom: 14px; }

/* ── TABLE ───────────────────────────────────────────────── */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-light); padding: 8px 14px; text-align: left; border-bottom: var(--border); }
.tbl td { padding: 11px 14px; font-size: 13px; border-bottom: 1px solid rgba(10,10,10,.07); vertical-align: middle; }
.tbl tr:hover td { background: rgba(10,10,10,.025); }
.tbl td.fw { font-weight: 600; }
.tbl-wrap { border: var(--border); box-shadow: var(--shadow-sm); overflow: hidden; }

/* ── TAGS / BADGES ───────────────────────────────────────── */
.tag { display: inline-flex; align-items: center; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border: 1.5px solid var(--ink); }
.tag-active  { background: var(--accent); }
.tag-closed  { background: #f3f4f6; border-color: rgba(10,10,10,.15); color: var(--ink-light); }
.tag-type    { background: #f3f4f6; border-color: transparent; }
.tag-ok      { background: #d1fae5; border-color: #059669; color: #065f46; }
.tag-warn    { background: #fef3c7; border-color: #d97706; color: #92400e; }
.tag-danger  { background: #fee2e2; border-color: #dc2626; color: #991b1b; }
.stage-tag   { color: #fff; border: none; padding: 3px 8px; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.source-badge { background: rgba(10,10,10,.07); color: var(--ink); font-size: 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; }
.resp-badge { font-size: 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; }
.resp-IT { background: #dbeafe; color: #1e40af; }
.resp-HR { background: #d1fae5; color: #065f46; }
.resp-Vorgesetzter { background: #fef3c7; color: #92400e; }
.resp-Mitarbeiter  { background: #ede9fe; color: #5b21b6; }
.channel-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.ch-published { background: #059669; }
.ch-draft     { background: #6b7280; }
.ch-paused    { background: #d97706; }

/* ── STARS ───────────────────────────────────────────────── */
.stars { display: inline-flex; gap: 1px; }
.star { font-size: 13px; cursor: pointer; color: rgba(10,10,10,.15); transition: color .1s; line-height: 1; }
.star.on { color: #f59e0b; }
.star:hover { color: #f59e0b; }

/* ── FILTER PILLS ────────────────────────────────────────── */
.filter-bar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.pill { font-family: var(--font); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border: var(--border); background: var(--bg); color: var(--ink-light); cursor: pointer; transition: all .1s; }
.pill:hover { color: var(--ink); }
.pill.active { background: var(--ink); color: var(--bg); }

/* ── KANBAN ──────────────────────────────────────────────── */
.kanban { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.k-col { min-width: 185px; }
.k-col-hd { padding: 9px 12px; border: var(--border); border-bottom: none; background: var(--ink); color: var(--bg); display: flex; align-items: center; justify-content: space-between; }
.k-col-title { font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; display: flex; align-items: center; gap: 6px; }
.k-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.k-count { font-size: 9px; font-weight: 700; background: rgba(255,255,255,.15); padding: 2px 6px; border-radius: 20px; }
.k-cards { border: var(--border); border-top: none; min-height: 200px; padding: 8px; display: flex; flex-direction: column; gap: 8px; background: #faf9f6; }
.k-card { border: 1.5px solid var(--ink); padding: 11px 12px; background: var(--bg); box-shadow: 3px 3px 0 var(--ink); cursor: pointer; transition: transform .1s, box-shadow .1s; }
.k-card:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }
.k-card-name { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.k-card-job { font-size: 10px; color: var(--ink-light); margin-bottom: 7px; }
.k-card-meta { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-bottom: 6px; }
.k-card-interview { font-size: 9px; font-weight: 700; letter-spacing: .04em; margin-top: 4px; }
.k-card-interview.past   { color: #dc2626; }
.k-card-interview.future { color: #059669; }
.k-card-date { font-size: 9px; color: var(--ink-light); font-weight: 600; margin-top: 5px; }
.k-card-btns { display: flex; gap: 4px; margin-top: 9px; flex-wrap: wrap; }
.stage-btn { font-family: var(--font); font-size: 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border: 1.5px solid var(--ink); background: transparent; cursor: pointer; transition: background .1s, color .1s; }
.stage-btn:hover { background: var(--ink); color: var(--bg); }
.stage-btn.next { background: var(--accent); }
.stage-btn.hire { background: var(--purple); color: #fff; border-color: var(--purple); }
.stage-btn.hire:hover { background: #5b21b6; }
.stage-btn.detail { border-color: rgba(10,10,10,.3); color: var(--ink-light); }
.stage-btn.reject { border-color: #dc2626; color: #dc2626; }
.stage-btn.reject:hover { background: #dc2626; color: #fff; }
.k-empty { font-size: 11px; color: var(--ink-light); text-align: center; padding: 20px 0; }
.notes-count { font-size: 8px; font-weight: 700; background: rgba(10,10,10,.1); padding: 1px 5px; border-radius: 10px; }

/* ── DOCS CHIPS ──────────────────────────────────────────── */
.doc-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.doc-chip { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--ink); padding: 5px 10px; font-size: 10px; font-weight: 600; background: var(--bg); }
.doc-chip-type { font-size: 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--ink); color: var(--bg); padding: 1px 5px; }
.doc-chip-remove { font-size: 12px; font-weight: 700; cursor: pointer; color: var(--ink-light); line-height: 1; }
.doc-chip-remove:hover { color: #dc2626; }
.doc-upload-area { border: 2px dashed rgba(10,10,10,.25); padding: 16px; text-align: center; cursor: pointer; transition: border-color .1s; margin-top: 8px; }
.doc-upload-area:hover { border-color: var(--ink); }
.doc-upload-label { font-size: 11px; font-weight: 600; color: var(--ink-light); }
.doc-upload-sub { font-size: 9px; font-weight: 600; color: var(--ink-light); margin-top: 4px; letter-spacing: .06em; text-transform: uppercase; }

/* ── INTERVIEWS ──────────────────────────────────────────── */
.interview-list { display: flex; flex-direction: column; gap: 10px; }
.interview-item { border: 1.5px solid rgba(10,10,10,.12); padding: 12px 14px; }
.interview-item-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.interview-type-badge { font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; background: var(--ink); color: var(--bg); }
.interview-date { font-size: 11px; font-weight: 600; color: var(--ink-light); }
.scorecard { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; margin-top: 10px; }
.sc-item { text-align: center; }
.sc-label { font-size: 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-light); margin-bottom: 4px; }
.sc-stars { display: flex; justify-content: center; gap: 1px; }
.sc-star { font-size: 11px; cursor: pointer; color: rgba(10,10,10,.15); }
.sc-star.on { color: #f59e0b; }

/* ── EMPLOYEE CARDS ──────────────────────────────────────── */
.emp-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.emp-card { border: var(--border); box-shadow: var(--shadow-sm); background: var(--bg); cursor: pointer; transition: transform .1s, box-shadow .1s; }
.emp-card:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }
.emp-card-hd { padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; border-bottom: var(--border); }
.emp-avatar { width: 40px; height: 40px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.emp-name  { font-size: 14px; font-weight: 700; }
.emp-title { font-size: 11px; color: var(--ink-light); margin-top: 2px; }
.emp-meta  { font-size: 10px; color: var(--ink-light); margin-top: 5px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.emp-card-body { padding: 12px 16px; }
.prob-label { font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-light); display: flex; justify-content: space-between; margin-bottom: 5px; }
.prob-track { height: 4px; background: rgba(10,10,10,.1); border: 1px solid rgba(10,10,10,.15); margin-bottom: 4px; }
.prob-fill    { height: 100%; transition: width .3s; }
.prob-ok      { background: var(--accent); }
.prob-warn    { background: #f59e0b; }
.prob-done-bar{ background: #059669; }
.prob-note    { font-size: 10px; font-weight: 600; }
.prob-note.warn { color: #92400e; }
.prob-note.done { color: #065f46; }

/* ── ABSENCES ────────────────────────────────────────────── */
.absence-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 18px; }
.abs-status-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.abs-beantragt  { background: #d97706; }
.abs-genehmigt  { background: #059669; }
.abs-abgelehnt  { background: #dc2626; }

/* ── ORG CHART ───────────────────────────────────────────── */
.org-wrap { overflow-x: auto; padding: 20px 0; }
.org-tree { display: flex; flex-direction: column; align-items: center; }
.org-level { display: flex; gap: 24px; justify-content: center; margin-bottom: 0; }
.org-node-wrap { display: flex; flex-direction: column; align-items: center; position: relative; }
.org-box { border: var(--border); padding: 12px 16px; background: var(--bg); box-shadow: var(--shadow-sm); text-align: center; min-width: 140px; }
.org-box.root { background: var(--ink); color: var(--bg); }
.org-box-name  { font-size: 13px; font-weight: 700; }
.org-box-title { font-size: 10px; color: var(--ink-light); margin-top: 2px; }
.org-box.root .org-box-title { color: rgba(245,245,240,.55); }
.org-connector-down { width: 2px; height: 24px; background: var(--ink); }
.org-connector-h    { height: 2px; background: var(--ink); position: absolute; top: 0; }
.org-children-wrap { display: flex; flex-direction: column; align-items: center; }
.org-children-row { display: flex; gap: 24px; position: relative; margin-top: 24px; }
.org-children-row::before { content: ''; position: absolute; top: -24px; left: 50%; transform: translateX(-50%); width: 2px; height: 24px; background: var(--ink); }

/* ── ONBOARDING ──────────────────────────────────────────── */
.ob-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.ob-card { border: var(--border); box-shadow: var(--shadow-sm); }
.ob-hd { padding: 14px 16px; border-bottom: var(--border); background: var(--ink); color: var(--bg); }
.ob-name { font-size: 14px; font-weight: 800; }
.ob-role { font-size: 10px; color: rgba(255,255,255,.5); margin-top: 2px; }
.ob-tmpl-badge { display: inline-block; font-size: 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; background: rgba(255,255,255,.12); margin-top: 7px; }
.ob-body { padding: 14px 16px; }
.prog-label { font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-light); display: flex; justify-content: space-between; margin-bottom: 5px; }
.prog-track { height: 4px; background: rgba(10,10,10,.1); border: 1px solid var(--ink); margin-bottom: 12px; }
.prog-fill { height: 100%; background: var(--purple); transition: width .3s; }
.checklist { list-style: none; }
.ci { display: flex; align-items: flex-start; gap: 9px; padding: 7px 0; border-bottom: 1px solid rgba(10,10,10,.06); cursor: pointer; user-select: none; }
.ci:last-child { border-bottom: none; }
.ci.done .ci-label { text-decoration: line-through; color: var(--ink-light); }
.ci-box { width: 15px; height: 15px; border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; transition: all .1s; }
.ci.done .ci-box { background: var(--purple); border-color: var(--purple); }
.ci-check { font-size: 9px; color: #fff; opacity: 0; }
.ci.done .ci-check { opacity: 1; }
.ci-content { flex: 1; min-width: 0; }
.ci-label { font-size: 12px; line-height: 1.4; }
.ci-meta { display: flex; gap: 5px; align-items: center; margin-top: 3px; flex-wrap: wrap; }
.ci-due { font-size: 9px; font-weight: 600; color: var(--ink-light); }
.ci-due.overdue { color: #dc2626; font-weight: 700; }
.ob-add-btn { font-family: var(--font); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: none; border: 1.5px dashed rgba(10,10,10,.25); width: 100%; padding: 7px; cursor: pointer; color: var(--ink-light); margin-top: 8px; transition: all .1s; }
.ob-add-btn:hover { border-color: var(--ink); color: var(--ink); }

/* ── OFFBOARDING ─────────────────────────────────────────── */
.offb-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.offb-card { border: var(--border); box-shadow: var(--shadow-sm); }
.offb-hd { padding: 14px 16px; border-bottom: var(--border); background: #1a1a1a; color: var(--bg); }
.offb-name { font-size: 14px; font-weight: 800; }
.offb-role { font-size: 10px; color: rgba(245,245,240,.5); margin-top: 2px; }
.offb-end  { font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; background: #dc2626; color: #fff; margin-top: 7px; display: inline-block; }
.offb-body { padding: 14px 16px; }

/* ── TALENT POOL ─────────────────────────────────────────── */
.talent-item { border: var(--border); padding: 14px 16px; margin-bottom: 10px; display: flex; align-items: flex-start; gap: 14px; box-shadow: var(--shadow-sm); }
.talent-info { flex: 1; min-width: 0; }
.talent-name { font-size: 14px; font-weight: 700; }
.talent-sub  { font-size: 11px; color: var(--ink-light); margin-top: 3px; }
.talent-gdpr { font-size: 10px; font-weight: 700; margin-top: 6px; }
.talent-gdpr.warn   { color: #92400e; }
.talent-gdpr.danger { color: #dc2626; }
.talent-gdpr.ok     { color: #065f46; }
.talent-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }

/* ── ANALYTICS ───────────────────────────────────────────── */
.chart-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.chart-label { font-size: 11px; font-weight: 600; width: 130px; flex-shrink: 0; }
.chart-bar-wrap { flex: 1; height: 18px; background: rgba(10,10,10,.07); border: 1px solid rgba(10,10,10,.12); }
.chart-bar { height: 100%; transition: width .5s; }
.chart-val { font-size: 11px; font-weight: 700; width: 40px; text-align: right; flex-shrink: 0; color: var(--ink-light); }
.kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 20px; }
.kpi { border: var(--border); padding: 18px; text-align: center; box-shadow: var(--shadow-sm); }
.kpi-val { font-size: 28px; font-weight: 800; }
.kpi-label { font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-light); margin-top: 4px; }
.kpi-sub { font-size: 10px; color: var(--ink-light); margin-top: 2px; }

/* ── SETTINGS ────────────────────────────────────────────── */
.tmpl-list-wrap { display: flex; flex-direction: column; gap: 10px; }
.tmpl-card { border: var(--border); box-shadow: var(--shadow-sm); }
.tmpl-card-hd { padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; transition: background .1s; }
.tmpl-card-hd:hover { background: rgba(10,10,10,.03); }
.tmpl-card-name { font-size: 14px; font-weight: 700; }
.tmpl-card-meta { font-size: 10px; color: var(--ink-light); margin-top: 2px; }
.tmpl-card-body { border-top: var(--border); }
.tmpl-task-row { display: flex; align-items: center; gap: 8px; padding: 9px 18px; border-bottom: 1px solid rgba(10,10,10,.06); font-size: 12px; }
.tmpl-task-row:last-child { border-bottom: none; }
.tmpl-task-num { font-size: 9px; font-weight: 700; color: var(--ink-light); width: 20px; flex-shrink: 0; }
.email-tmpl-list { display: flex; flex-direction: column; gap: 10px; }
.email-tmpl-item { border: var(--border); padding: 14px 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; box-shadow: var(--shadow-sm); }
.email-tmpl-name { font-size: 14px; font-weight: 700; }
.email-tmpl-cat  { font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-light); margin-top: 3px; }
.email-tmpl-sub  { font-size: 11px; color: var(--ink-mid); margin-top: 5px; }
.role-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.role-card { border: var(--border); padding: 18px; box-shadow: var(--shadow-sm); }
.role-name { font-size: 15px; font-weight: 800; margin-bottom: 12px; }
.perm-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid rgba(10,10,10,.07); font-size: 12px; }
.perm-row:last-child { border-bottom: none; }
.toggle { position: relative; width: 36px; height: 20px; flex-shrink: 0; cursor: pointer; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-track { position: absolute; inset: 0; background: rgba(10,10,10,.15); border: 1.5px solid var(--ink); transition: background .15s; }
.toggle input:checked + .toggle-track { background: var(--accent); }
.toggle-thumb { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; background: var(--ink); transition: transform .15s; }
.toggle input:checked + .toggle-track + .toggle-thumb { transform: translateX(16px); }
.gdpr-item { border: var(--border); padding: 14px 16px; margin-bottom: 10px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; box-shadow: var(--shadow-sm); }
.gdpr-info { flex: 1; }
.gdpr-name { font-size: 13px; font-weight: 700; }
.gdpr-sub  { font-size: 11px; color: var(--ink-light); margin-top: 2px; }
.gdpr-countdown { font-size: 11px; font-weight: 700; margin-top: 6px; }
.gdpr-countdown.ok     { color: #065f46; }
.gdpr-countdown.warn   { color: #92400e; }
.gdpr-countdown.danger { color: #dc2626; }

/* ── MODAL ───────────────────────────────────────────────── */
.overlay { display: none; position: fixed; inset: 0; background: rgba(10,10,10,.45); z-index: 500; align-items: center; justify-content: center; padding: 20px; }
.overlay.open { display: flex; }
.modal { background: var(--bg); border: var(--border); box-shadow: 8px 8px 0 var(--ink); width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; }
.modal-lg { max-width: 680px; }
.modal-xl { max-width: 820px; }
.modal-hd { padding: 16px 20px; border-bottom: var(--border); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: var(--bg); z-index: 2; }
.modal-title { font-size: 15px; font-weight: 800; }
.modal-x { font-family: var(--font); font-size: 16px; font-weight: 700; border: none; background: none; cursor: pointer; padding: 2px 6px; transition: background .1s; }
.modal-x:hover { background: var(--ink); color: var(--bg); }
.modal-bd { padding: 20px; }
.modal-ft { padding: 14px 20px; border-top: var(--border); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.modal-tabs { display: flex; border-bottom: var(--border); }
.modal-tab { font-family: var(--font); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 10px 16px; border: none; background: none; cursor: pointer; color: var(--ink-light); border-bottom: 3px solid transparent; margin-bottom: -1.5px; transition: all .1s; }
.modal-tab:hover { color: var(--ink); }
.modal-tab.active { color: var(--ink); border-bottom-color: var(--ink); }
.modal-tab-content { display: none; padding-top: 16px; }
.modal-tab-content.active { display: block; }
.fg { margin-bottom: 14px; }
.fl { display: block; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 5px; }
.fi, .fs, .fta { width: 100%; font-family: var(--font); font-size: 13px; font-weight: 500; padding: 9px 11px; border: var(--border); background: var(--bg); color: var(--ink); outline: none; transition: box-shadow .1s; }
.fi:focus, .fs:focus, .fta:focus { box-shadow: var(--shadow-sm); }
.fta { resize: vertical; min-height: 70px; }
.fi-sm { font-family: var(--font); font-size: 12px; padding: 6px 9px; border: var(--border); background: var(--bg); color: var(--ink); outline: none; }
.fi-sm:focus { box-shadow: 2px 2px 0 var(--ink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.section-divider { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-light); padding: 10px 0 8px; border-bottom: 1px solid rgba(10,10,10,.1); margin-bottom: 12px; }
.rejection-email { background: #fff; border: var(--border); padding: 14px; font-size: 11px; line-height: 1.7; color: var(--ink); margin: 10px 0; white-space: pre-wrap; font-family: 'Courier New', monospace; }
.notes-list { display: flex; flex-direction: column; gap: 7px; margin-bottom: 12px; max-height: 160px; overflow-y: auto; }
.note-item { background: rgba(10,10,10,.04); border-left: 3px solid var(--ink); padding: 7px 11px; }
.note-text { font-size: 12px; line-height: 1.5; }
.note-date { font-size: 9px; font-weight: 700; color: var(--ink-light); margin-top: 3px; }
.tmpl-options { display: flex; flex-direction: column; gap: 7px; }
.tmpl-option { display: flex; align-items: center; justify-content: space-between; padding: 11px 13px; border: 1.5px solid rgba(10,10,10,.15); cursor: pointer; transition: all .1s; }
.tmpl-option:hover { border-color: var(--ink); }
.tmpl-option.selected { border-color: var(--ink); background: var(--accent); }
.tmpl-option-name  { font-size: 13px; font-weight: 600; }
.tmpl-option-count { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-light); }
.channel-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 8px; }
.channel-box { border: 1.5px solid rgba(10,10,10,.2); padding: 10px 12px; cursor: pointer; transition: all .1s; display: flex; align-items: center; gap: 8px; }
.channel-box:hover { border-color: var(--ink); }
.channel-box.active { border-color: var(--ink); background: var(--accent); }
.channel-box-name { font-size: 11px; font-weight: 700; }
.channel-box-status { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-top: 1px; color: var(--ink-light); }

/* ── TMPL EDIT ROWS ──────────────────────────────────────── */
.tmpl-edit-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.tmpl-edit-row .fi { flex: 1; }
.tmpl-edit-row .fs { width: 150px; flex-shrink: 0; }
.tmpl-edit-x { font-family: var(--font); font-size: 14px; font-weight: 700; border: var(--border); background: none; cursor: pointer; padding: 6px 10px; color: #dc2626; border-color: #dc2626; line-height: 1; }
.tmpl-edit-x:hover { background: #dc2626; color: #fff; }

/* ── ACTIVITY LOG ────────────────────────────────────────── */
.activity-list { display: flex; flex-direction: column; gap: 0; }
.activity-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(10,10,10,.07); align-items: flex-start; }
.activity-item:last-child { border-bottom: none; }
.activity-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.activity-text { font-size: 12px; line-height: 1.4; }
.activity-time { font-size: 10px; color: var(--ink-light); font-weight: 600; margin-top: 2px; }

/* ── QUICK ACTIONS ───────────────────────────────────────── */
.quick-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.quick-btn { font-family: var(--font); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 10px 16px; border: var(--border); background: var(--bg); color: var(--ink); cursor: pointer; display: flex; align-items: center; gap: 7px; transition: transform .1s, box-shadow .1s; box-shadow: var(--shadow-sm); }
.quick-btn:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }
.quick-btn.yellow { background: var(--accent); }

/* ── UPCOMING TASKS ──────────────────────────────────────── */
.upcoming-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(10,10,10,.07); }
.upcoming-item:last-child { border-bottom: none; }
.upcoming-type { font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; flex-shrink: 0; }
.upcoming-text { font-size: 12px; flex: 1; }
.upcoming-date { font-size: 10px; font-weight: 700; color: var(--ink-light); flex-shrink: 0; }

/* ── MISC ────────────────────────────────────────────────── */
.empty { text-align: center; padding: 50px 20px; color: var(--ink-light); font-size: 12px; font-weight: 600; }
.toast { position: fixed; bottom: 24px; right: 24px; font-family: var(--font); font-size: 12px; font-weight: 700; padding: 12px 18px; border: var(--border); box-shadow: var(--shadow); z-index: 9999; transform: translateY(80px); opacity: 0; transition: all .2s; background: var(--ink); color: var(--bg); max-width: 300px; }
.toast.show  { transform: translateY(0); opacity: 1; }
.toast.ok    { background: #059669; border-color: #059669; color: #fff; }
.toast.hired { background: var(--purple); border-color: var(--purple); color: #fff; }
.toast.warn  { background: #d97706; border-color: #d97706; color: #fff; }
.divider { border: none; border-top: 1px solid rgba(10,10,10,.1); margin: 14px 0; }
.lbl { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-light); margin-bottom: 12px; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1300px) { .stats-grid { grid-template-columns: repeat(3,1fr); } .kanban { grid-template-columns: repeat(3,minmax(180px,1fr)); } }
@media (max-width: 1100px) { .emp-grid { grid-template-columns: repeat(2,1fr); } .ob-grid { grid-template-columns: repeat(2,1fr); } .offb-grid { grid-template-columns: repeat(2,1fr); } .kpi-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 900px)  { .stats-grid { grid-template-columns: repeat(2,1fr); } .two-col { grid-template-columns: 1fr; } .sidebar { transform: translateX(-100%); } .main-area { margin-left: 0; } .emp-grid { grid-template-columns: 1fr; } .ob-grid { grid-template-columns: 1fr; } .role-grid { grid-template-columns: 1fr; } }
