/* ===========================================================
   RECRUITER DASHBOARD — Employer admin
   Custom chrome (no public PageHeader); dark sidebar
   =========================================================== */

body.rd-mode {
  background: var(--surface-2);
}

.rd-app {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

/* ===========================================================
   SIDEBAR
   =========================================================== */
.rd-side {
  background: #14182B;
  color: var(--paper);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255,255,255,0.06);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.rd-side-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 8px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 12px;
}
.rd-side-mark {
  width: 32px; height: 32px;
  background: var(--asb-orange);
  border-radius: 8px;
  color: white;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: -0.04em;
}
.rd-side-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--paper);
  letter-spacing: 0.01em;
  line-height: 1;
}
.rd-side-name span { color: var(--asb-orange); }
.rd-side-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}

/* employer switcher */
.rd-side-emp {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
  cursor: pointer;
  transition: all 0.15s;
}
.rd-side-emp:hover { background: rgba(255,255,255,0.08); }
.rd-side-emp-logo {
  width: 32px; height: 32px;
  background: #E2126B;
  border-radius: 8px;
  color: white;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.rd-side-emp-text { min-width: 0; flex: 1; }
.rd-side-emp-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--paper);
  letter-spacing: -0.005em;
}
.rd-side-emp-tier {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--asb-orange);
  text-transform: uppercase;
}
.rd-side-emp-arr {
  color: rgba(255,255,255,0.4);
  font-size: 14px;
}

/* nav */
.rd-side-section {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  padding: 12px 10px 6px;
}
.rd-side-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: inherit;
  position: relative;
}
.rd-side-link:hover {
  background: rgba(255,255,255,0.06);
  color: var(--paper);
}
.rd-side-link.is-on {
  background: rgba(245,130,32,0.16);
  color: var(--paper);
  font-weight: 600;
}
.rd-side-link.is-on::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 3px;
  background: var(--asb-orange);
  border-radius: 0 3px 3px 0;
}
.rd-side-link svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.85; }
.rd-side-link.is-on svg { opacity: 1; color: var(--asb-orange); }
.rd-side-link-badge {
  margin-left: auto;
  background: rgba(255,255,255,0.1);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}
.rd-side-link.is-on .rd-side-link-badge {
  background: var(--asb-orange);
  color: white;
}
.rd-side-link-badge.is-hot {
  background: var(--urgent);
  color: white;
}

.rd-side-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.rd-side-user {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.rd-side-user:hover { background: rgba(255,255,255,0.06); }
.rd-side-user-av {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--asb-orange);
  color: white;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.rd-side-user-name { font-size: 12.5px; font-weight: 600; color: var(--paper); }
.rd-side-user-role { font-size: 10.5px; color: rgba(255,255,255,0.5); }

/* ===========================================================
   MAIN
   =========================================================== */
.rd-main {
  min-width: 0;
  display: flex; flex-direction: column;
}

/* topbar */
.rd-topbar {
  height: 56px;
  background: var(--surface);
  border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.rd-topbar-search {
  flex: 1;
  max-width: 460px;
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 100px;
  padding: 7px 14px;
  font-size: 13px;
  color: var(--ink-3);
  cursor: pointer;
  transition: all 0.15s;
}
.rd-topbar-search:hover { border-color: var(--asb-orange); }
.rd-topbar-search svg { width: 14px; height: 14px; }
.rd-topbar-search-kbd {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ink-3);
}

.rd-topbar-actions {
  display: flex; align-items: center; gap: 8px;
  margin-left: auto;
}
.rd-tb-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 7px 12px;
  border-radius: 100px;
  cursor: pointer;
  position: relative;
}
.rd-tb-btn:hover { border-color: var(--asb-orange); color: var(--asb-orange); }
.rd-tb-btn-ic {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  position: relative;
  color: var(--ink-2);
}
.rd-tb-btn-ic:hover { color: var(--asb-orange); border-color: var(--asb-orange); }
.rd-tb-btn-ic svg { width: 14px; height: 14px; }
.rd-tb-dot {
  position: absolute;
  top: -2px; right: -2px;
  width: 8px; height: 8px;
  background: var(--urgent);
  border: 2px solid var(--surface);
  border-radius: 50%;
}
.rd-tb-cta {
  background: var(--asb-orange);
  color: white;
  border-color: var(--asb-orange);
}
.rd-tb-cta:hover { background: var(--asb-orange-bright); color: white; }

/* page header */
.rd-page {
  padding: 24px 28px 40px;
  flex: 1;
}

.rd-ph {
  display: flex; justify-content: space-between; align-items: end;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.rd-ph-l { min-width: 0; }
.rd-ph-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--asb-orange);
  margin-bottom: 6px;
}
.rd-ph-tag::before { content: ''; width: 16px; height: 1.5px; background: var(--asb-orange); }
.rd-ph h1 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1;
  margin: 0;
}
body.lang-bn .rd-ph h1 { font-family: var(--font-bn); font-weight: 700; letter-spacing: -0.015em; }
.rd-ph-sub {
  font-size: 13.5px;
  color: var(--ink-3);
  margin-top: 4px;
}

.rd-ph-r {
  display: flex; gap: 8px;
}

/* date range pill */
.rd-range {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 4px;
}
.rd-range button {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  padding: 6px 12px;
  border-radius: 100px;
  cursor: pointer;
}
.rd-range button.is-on {
  background: var(--ink);
  color: var(--paper);
}

/* ===========================================================
   KPI STRIP
   =========================================================== */
.rd-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
@media (max-width: 1100px) { .rd-kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .rd-kpis { grid-template-columns: 1fr; } }
.rd-kpi {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}
.rd-kpi-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.rd-kpi-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.rd-kpi-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--gold-mist);
  color: var(--asb-orange);
  display: flex; align-items: center; justify-content: center;
}
.rd-kpi-icon svg { width: 15px; height: 15px; }
.rd-kpi-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
}
.rd-kpi-row {
  display: flex; justify-content: space-between; align-items: end;
  margin-top: 8px;
}
.rd-kpi-trend {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--live);
}
.rd-kpi-trend::before {
  content: '↑'; font-size: 11px;
}
.rd-kpi-trend.is-down { color: var(--urgent); }
.rd-kpi-trend.is-down::before { content: '↓'; }
.rd-kpi-bench {
  font-size: 11px;
  color: var(--ink-3);
}
/* sparkline */
.rd-kpi-spark {
  display: flex; align-items: end;
  gap: 2px;
  height: 28px;
  margin-top: 8px;
}
.rd-kpi-spark-bar {
  flex: 1;
  background: var(--gold-mist);
  border-radius: 2px;
  min-height: 4px;
}
.rd-kpi-spark-bar.is-active {
  background: var(--asb-orange);
}

/* ===========================================================
   TWO-COL: pipeline + side
   =========================================================== */
.rd-two {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
  align-items: start;
}
@media (max-width: 1100px) { .rd-two { grid-template-columns: 1fr; } }

/* ===========================================================
   PIPELINE / KANBAN
   =========================================================== */
.rd-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 20px 22px;
}
.rd-card-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}
.rd-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--ink);
}
body.lang-bn .rd-card-title { font-family: var(--font-bn); font-weight: 700; }
.rd-card-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

.rd-card-actions { display: flex; gap: 6px; align-items: center; }
.rd-card-act {
  background: transparent;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 5px 11px;
  border-radius: 100px;
  cursor: pointer;
}
.rd-card-act:hover { border-color: var(--asb-orange); color: var(--asb-orange); }
.rd-card-act.is-on {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* job switcher above kanban */
.rd-job-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 10px 14px;
  margin-bottom: 14px;
}
.rd-job-bar-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.rd-job-bar-pick {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
  flex: 1;
  display: flex; align-items: center; gap: 8px;
}
.rd-job-bar-arrow { color: var(--ink-3); font-size: 12px; }
.rd-job-bar-meta {
  display: flex; gap: 14px;
  font-size: 11.5px;
  color: var(--ink-3);
  font-family: var(--font-mono);
}
.rd-job-bar-meta strong { color: var(--ink); font-family: var(--font-display); font-weight: 800; }

/* kanban cols */
.rd-kanban {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
}
@media (max-width: 900px) {
  .rd-kanban { grid-template-columns: repeat(5, 240px); }
}

.rd-col {
  background: var(--surface-2);
  border-radius: var(--r-md);
  padding: 10px;
  min-height: 320px;
}
.rd-col-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 4px;
}
.rd-col-title {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.rd-col-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.rd-col-count {
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 100px;
  color: var(--ink-2);
}

/* candidate cards */
.rd-cand {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 12px;
  margin-bottom: 6px;
  cursor: grab;
  transition: all 0.15s;
  position: relative;
}
.rd-cand:hover {
  border-color: var(--asb-orange);
  box-shadow: 0 4px 12px -4px rgba(245,130,32,0.2);
  transform: translateY(-1px);
}
.rd-cand-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
}
.rd-cand-av {
  width: 32px; height: 32px;
  border-radius: 50%;
  color: white;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.rd-cand-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rd-cand-role {
  font-size: 11px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rd-cand-info { min-width: 0; flex: 1; }

.rd-cand-meta {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-top: 8px;
}
.rd-cand-pill {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 100px;
  background: var(--surface-2);
  color: var(--ink-2);
  border: 1px solid var(--line-soft);
}
.rd-cand-pill.is-match {
  background: var(--gold-mist);
  color: var(--gold-deep);
  border-color: var(--gold-soft);
}
.rd-cand-pill.is-match.is-high {
  background: var(--asb-orange);
  color: white;
  border-color: var(--asb-orange);
}
.rd-cand-pill.is-flag {
  background: var(--urgent-soft);
  color: var(--urgent);
}
.rd-cand-pill.is-source {
  background: var(--paper);
}

.rd-cand-bar {
  display: flex;
  height: 3px;
  background: var(--line-soft);
  border-radius: 2px;
  margin-top: 10px;
  overflow: hidden;
}
.rd-cand-bar-fill {
  background: linear-gradient(90deg, var(--asb-orange), var(--gold-bright));
}
.rd-cand-actions {
  display: flex; gap: 4px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}
.rd-cand-action {
  flex: 1;
  background: transparent;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  padding: 4px 6px;
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.12s;
}
.rd-cand-action:hover { border-color: var(--asb-orange); color: var(--asb-orange); }
.rd-cand-action.is-good { background: var(--live); color: white; border-color: var(--live); }
.rd-cand-action.is-good:hover { background: #5FB535; color: white; }
.rd-cand-action.is-bad:hover { border-color: var(--urgent); color: var(--urgent); }

/* AI flag in card */
.rd-cand-ai {
  display: flex; align-items: center; gap: 4px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--asb-orange);
  margin-top: 6px;
}
.rd-cand-ai::before { content: '✦'; }

/* ===========================================================
   SIDE PANEL (overview right column)
   =========================================================== */
.rd-side-col {
  display: flex; flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 72px;
}

.rd-mini {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 18px 20px;
}
.rd-mini-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.rd-mini-title-r {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: var(--asb-orange);
  text-decoration: none;
  letter-spacing: 0;
  text-transform: none;
}

/* AI brief */
.rd-ai-brief {
  background: linear-gradient(135deg, #14182B 0%, #1A2240 100%);
  color: var(--paper);
  border: none;
  position: relative;
  overflow: hidden;
}
.rd-ai-brief::before {
  content: ''; position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, var(--asb-orange) 0%, transparent 70%);
  opacity: 0.4;
}
.rd-ai-brief-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--asb-orange);
  margin-bottom: 8px;
  position: relative; z-index: 1;
}
.rd-ai-brief-tag::before { content: '✦'; }
.rd-ai-brief-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--paper);
  line-height: 1.2;
  margin-bottom: 10px;
  position: relative; z-index: 1;
}
body.lang-bn .rd-ai-brief-title { font-family: var(--font-bn); font-weight: 700; }
.rd-ai-brief-list {
  display: flex; flex-direction: column;
  gap: 10px;
  position: relative; z-index: 1;
}
.rd-ai-brief-item {
  display: flex; gap: 10px;
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(255,255,255,0.85);
}
.rd-ai-brief-item strong { color: var(--asb-orange-bright); display: block; margin-bottom: 1px; font-weight: 700; }
.rd-ai-brief-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--asb-orange);
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.rd-ai-brief-cta {
  display: block;
  background: var(--asb-orange);
  color: white;
  text-align: center;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  padding: 10px;
  border-radius: 100px;
  margin-top: 14px;
  position: relative; z-index: 1;
  transition: background 0.15s;
}
.rd-ai-brief-cta:hover { background: var(--asb-orange-bright); }

/* funnel chart */
.rd-funnel {
  display: flex; flex-direction: column; gap: 6px;
}
.rd-funnel-row {
  display: grid;
  grid-template-columns: 90px 1fr 50px;
  gap: 10px;
  align-items: center;
}
.rd-funnel-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}
.rd-funnel-track {
  background: var(--surface-2);
  border-radius: 6px;
  height: 22px;
  position: relative;
  overflow: hidden;
}
.rd-funnel-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--asb-navy), var(--asb-orange));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: end;
  padding-right: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: white;
  transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.rd-funnel-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  text-align: right;
  letter-spacing: -0.01em;
}

/* upcoming */
.rd-upcoming-row {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}
.rd-upcoming-row:last-child { border: none; }
.rd-upcoming-when {
  text-align: center;
  background: var(--gold-mist);
  border-radius: 6px;
  padding: 4px;
}
.rd-upcoming-when-d {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--asb-orange);
  letter-spacing: -0.01em;
  line-height: 1;
}
.rd-upcoming-when-m {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  margin-top: 1px;
}
.rd-upcoming-text { min-width: 0; }
.rd-upcoming-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rd-upcoming-sub {
  font-size: 11px;
  color: var(--ink-3);
  display: flex; align-items: center; gap: 6px;
  margin-top: 2px;
}
.rd-upcoming-time {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--ink-2);
}

/* recent activity feed */
.rd-act-row {
  display: flex; gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.4;
}
.rd-act-row:last-child { border: none; }
.rd-act-row strong { color: var(--ink); font-weight: 600; }
.rd-act-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 800;
  color: white;
}
.rd-act-time {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-3);
  margin-top: 2px;
  font-weight: 600;
}

/* ===========================================================
   JOBS TABLE
   =========================================================== */
.rd-jobs-table {
  width: 100%;
  border-collapse: collapse;
}
.rd-jobs-table thead th {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface-2);
}
.rd-jobs-table tbody td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--ink-2);
  vertical-align: middle;
}
.rd-jobs-table tbody tr:hover { background: var(--surface-2); }
.rd-jobs-table tbody tr:last-child td { border-bottom: none; }
.rd-jobs-table-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
  margin-bottom: 2px;
}
.rd-jobs-table-sub {
  font-size: 11px;
  color: var(--ink-3);
  display: flex; gap: 8px;
}
.rd-jobs-status {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
}
.rd-jobs-status.is-active { background: var(--live-soft); color: var(--live); }
.rd-jobs-status.is-paused { background: var(--surface-2); color: var(--ink-3); }
.rd-jobs-status.is-closing { background: var(--gold-mist); color: var(--gold-deep); }
.rd-jobs-status.is-draft { background: var(--paper); color: var(--ink-3); border: 1px dashed var(--line); }
.rd-jobs-status::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}
.rd-jobs-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.rd-jobs-funnel-mini {
  display: flex; gap: 3px;
}
.rd-jobs-funnel-mini-cell {
  background: var(--gold-mist);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--gold-deep);
  display: inline-flex; align-items: center; gap: 3px;
}
.rd-jobs-funnel-mini-cell::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
}
.rd-jobs-funnel-mini-cell.f-app::before { background: var(--ink-2); }
.rd-jobs-funnel-mini-cell.f-screen::before { background: var(--asb-orange); }
.rd-jobs-funnel-mini-cell.f-int::before { background: var(--gold-bright); }
.rd-jobs-funnel-mini-cell.f-off::before { background: var(--live); }

.rd-jobs-actions {
  display: flex; gap: 4px;
  justify-content: end;
}
.rd-jobs-action {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-3);
  transition: all 0.12s;
}
.rd-jobs-action:hover { border-color: var(--asb-orange); color: var(--asb-orange); }

/* ===========================================================
   ANALYTICS
   =========================================================== */
.rd-analytics {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}
@media (max-width: 1000px) { .rd-analytics { grid-template-columns: 1fr; } }

.rd-chart {
  height: 240px;
  position: relative;
  margin-top: 14px;
}
.rd-chart svg { width: 100%; height: 100%; }

.rd-chart-legend {
  display: flex; gap: 14px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--ink-2);
  font-weight: 600;
}
.rd-chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.rd-chart-legend-dot {
  width: 10px; height: 3px; border-radius: 2px;
}

/* source breakdown bars */
.rd-source-row {
  display: grid;
  grid-template-columns: 80px 1fr 40px;
  gap: 10px;
  align-items: center;
  padding: 7px 0;
  font-size: 12px;
}
.rd-source-row strong { color: var(--ink); font-weight: 600; font-size: 12px; }
.rd-source-bar {
  height: 8px;
  background: var(--surface-2);
  border-radius: 4px;
  overflow: hidden;
}
.rd-source-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.2,0.8,0.2,1);
}
.rd-source-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  text-align: right;
  letter-spacing: -0.01em;
}

/* ===========================================================
   RESPONSIVE: collapse sidebar on small
   =========================================================== */
@media (max-width: 900px) {
  .rd-app { grid-template-columns: 1fr; }
  .rd-side {
    position: fixed; left: -260px; top: 0;
    width: 240px; height: 100vh;
    z-index: 50;
    transition: transform 0.2s;
  }
  .rd-side.is-open { transform: translateX(260px); }
  .rd-page { padding: 16px; }
}

/* compose modal trigger */
.rd-fab {
  position: fixed;
  right: 20px; bottom: 20px;
  background: var(--asb-orange);
  color: white;
  border: none;
  border-radius: 100px;
  padding: 14px 22px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 12px 28px -8px rgba(245,130,32,0.5);
  z-index: 30;
  display: none;
}
@media (max-width: 900px) { .rd-fab { display: inline-flex; } }

/* candidate-detail drawer */
.rd-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 43, 0.55);
  z-index: 40;
  backdrop-filter: blur(2px);
}
.rd-drawer {
  position: fixed;
  right: 0; top: 0; bottom: 0;
  width: min(560px, 95vw);
  background: var(--surface);
  z-index: 41;
  overflow-y: auto;
  box-shadow: -24px 0 48px -16px rgba(20,24,43,0.3);
  animation: rd-drawer-in 0.25s cubic-bezier(0.2,0.8,0.2,1);
}
@keyframes rd-drawer-in { from { transform: translateX(40px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.rd-drawer-head {
  position: sticky; top: 0;
  background: var(--surface);
  padding: 18px 24px;
  border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; gap: 14px;
  z-index: 1;
}
.rd-drawer-head .rd-cand-av { width: 52px; height: 52px; font-size: 20px; }
.rd-drawer-name {
  font-family: var(--font-bn);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.1;
}
body.lang-en .rd-drawer-name { font-family: var(--font-display); letter-spacing: -0.025em; }
.rd-drawer-role { font-size: 13px; color: var(--ink-3); }
.rd-drawer-close {
  margin-left: auto;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 32px; height: 32px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-3);
}
.rd-drawer-close:hover { color: var(--urgent); border-color: var(--urgent); }

.rd-drawer-body { padding: 22px 24px; }
.rd-drawer-section { margin-bottom: 22px; }
.rd-drawer-section h4 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--asb-orange);
  margin-bottom: 10px;
}

.rd-match-big {
  display: flex; gap: 16px; align-items: center;
  background: linear-gradient(135deg, var(--gold-mist) 0%, var(--surface-2) 100%);
  border: 1px solid var(--gold-soft);
  border-radius: var(--r-md);
  padding: 14px 18px;
}
.rd-match-big-orb {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--asb-orange), var(--asb-orange-bright));
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  box-shadow: 0 8px 20px -4px rgba(245,130,32,0.45);
}
.rd-match-big-text { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.rd-match-big-text strong { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; font-weight: 700; }

.rd-skills-bars { display: flex; flex-direction: column; gap: 8px; }
.rd-skill-row {
  display: grid;
  grid-template-columns: 110px 1fr 36px;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.rd-skill-name { font-weight: 600; color: var(--ink-2); }
.rd-skill-bar { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.rd-skill-fill { height: 100%; background: var(--asb-orange); border-radius: 3px; }
.rd-skill-num { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--ink); text-align: right; }

.rd-drawer-actions {
  position: sticky; bottom: 0;
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
  padding: 14px 24px;
  display: flex; gap: 8px;
}
.rd-drawer-actions .btn { flex: 1; justify-content: center; padding: 11px 16px; font-size: 13px; }
