:root {
  --bg: #eef4ff;
  --surface: #ffffff;
  --surface-soft: #eef6ff;
  --ink: #142033;
  --muted: #617089;
  --line: #d9e2ee;
  --brand: #003070;
  --brand-dark: #00245c;
  --brand-soft: #e8eff9;
  --accent: #f09000;
  --accent-dark: #c56f00;
  --accent-soft: #fff3df;
  --cyan: #08a4bd;
  --violet: #7156d9;
  --magenta: #c43d7a;
  --green: #15845e;
  --blue: #003070;
  --amber: #c56f00;
  --rose: #a43d55;
  --green-soft: #e8f5ee;
  --blue-soft: #e8eff9;
  --amber-soft: #fff3df;
  --rose-soft: #fae9ee;
  --shadow: 0 18px 45px rgba(23, 32, 44, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(0, 48, 112, 0.16), transparent 34%),
    linear-gradient(270deg, rgba(8, 164, 189, 0.14), transparent 42%),
    linear-gradient(35deg, rgba(240, 144, 0, 0.18), transparent 44%),
    var(--bg);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.login-screen {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(300px, 0.95fr) minmax(360px, 1.05fr);
}

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px;
  background:
    linear-gradient(150deg, rgba(240, 144, 0, 0.32), transparent 34%),
    linear-gradient(250deg, rgba(8, 164, 189, 0.28), transparent 40%),
    linear-gradient(0deg, #001d4e, #003070);
  color: #fff;
}

.login-panel h1 {
  max-width: 650px;
  margin: 0 0 18px;
  font-size: clamp(2.5rem, 5vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.login-panel p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  line-height: 1.7;
}

.login-box-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.login-box {
  width: min(460px, 100%);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.vendor-box {
  width: min(980px, 100%);
}

.login-box h2 {
  margin: 0 0 6px;
  font-size: 1.55rem;
}

.helper {
  color: var(--muted);
  line-height: 1.5;
}

.field {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.field label {
  color: #334155;
  font-size: 0.86rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(240, 144, 0, 0.18);
}

.field textarea {
  min-height: 94px;
  resize: vertical;
}

.primary,
.secondary,
.ghost,
.danger {
  min-height: 40px;
  border-radius: 7px;
  padding: 0 14px;
  font-weight: 800;
}

.primary {
  background: linear-gradient(135deg, var(--accent), #ffb02e);
  color: #10233e;
  box-shadow: 0 8px 18px rgba(240, 144, 0, 0.22);
}

.primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand);
}

.secondary:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  transform: translateY(-1px);
}

.link-button {
  min-height: auto;
  padding: 0;
  background: transparent;
  color: var(--brand);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.danger {
  border: 1px solid var(--rose);
  background: var(--rose-soft);
  color: var(--rose);
}

.danger:hover {
  background: var(--rose);
  color: #fff;
}

.ghost {
  background: transparent;
  color: var(--muted);
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(0, 48, 112, 0.05), rgba(240, 144, 0, 0.08)),
    rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 3px 0 var(--accent), 0 12px 30px rgba(0, 48, 112, 0.08);
  padding: 14px 24px;
  backdrop-filter: blur(14px);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  display: grid;
  width: 64px;
  height: 42px;
  place-items: center;
  border: 1px solid #cfd9e8;
  border-radius: 7px;
  background: #fff;
  padding: 4px;
}

.logo-mark img,
.login-logo {
  display: block;
  max-width: 100%;
  height: auto;
}

.login-logo {
  width: 170px;
  margin-bottom: 28px;
  border-radius: 7px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 16px 30px rgba(0, 36, 92, 0.2);
}

.brand-block strong,
.page-title h1,
.section-title h2 {
  display: block;
}

.brand-block span,
.user-chip span,
.kpi span,
.section-title p,
.small-muted {
  color: var(--muted);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: calc(100vh - 67px);
}

.sidebar {
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(0, 48, 112, 0.06), rgba(8, 164, 189, 0.07)),
    rgba(255, 255, 255, 0.82);
  padding: 18px;
}

.nav-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  margin-bottom: 8px;
  border-radius: 7px;
  background: transparent;
  color: #334155;
  padding: 0 12px;
  text-align: left;
  font-weight: 800;
  transition: 0.16s ease;
}

.nav-button:hover {
  background: #fff;
  color: var(--brand-dark);
  transform: translateX(2px);
}

.nav-button.active {
  background: linear-gradient(90deg, #fff, var(--brand-soft));
  color: var(--brand-dark);
  box-shadow: inset 3px 0 0 var(--accent);
}

.content {
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(238, 246, 255, 0.3)),
    transparent;
}

.page-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.page-title h1 {
  margin: 0 0 5px;
  font-size: clamp(1.6rem, 2.4vw, 2.55rem);
  letter-spacing: 0;
}

.dashboard-hero,
.module-hero {
  overflow: hidden;
  border: 1px solid rgba(0, 48, 112, 0.12);
  border-radius: 8px;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 0.72fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  background:
    linear-gradient(120deg, rgba(0, 48, 112, 0.98), rgba(8, 91, 139, 0.92) 54%, rgba(240, 144, 0, 0.88)),
    var(--brand);
  box-shadow: 0 22px 48px rgba(0, 48, 112, 0.2);
  color: #fff;
  padding: 24px;
}

.hero-copy h1,
.module-hero h1 {
  margin: 6px 0 8px;
  font-size: clamp(2rem, 3.5vw, 4rem);
  line-height: 1;
}

.dashboard-hero .helper,
.dashboard-hero p {
  color: rgba(255, 255, 255, 0.82);
}

.dashboard-hero .secondary {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.dashboard-hero .primary {
  background: #fff;
  color: var(--brand-dark);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.88);
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.dark {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.hero-scoreboard,
.module-metrics,
.health-board {
  display: grid;
  gap: 10px;
}

.hero-scoreboard {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-metric,
.module-metrics div,
.health-tile {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  padding: 12px;
}

.hero-metric span,
.hero-metric small,
.module-metrics span,
.module-metrics small,
.health-tile span,
.health-tile small {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-metric strong,
.module-metrics strong,
.health-tile strong {
  display: block;
  margin: 5px 0;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
}

.hero-metric::after,
.health-tile::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: var(--cyan);
}

.tone-orange::after {
  background: var(--accent);
}

.tone-cyan::after {
  background: var(--cyan);
}

.tone-violet::after {
  background: var(--violet);
}

.tone-green::after {
  background: var(--green);
}

.module-hero {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 0.86fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 12px;
  color: #fff;
  padding: 24px;
  box-shadow: 0 20px 42px rgba(0, 48, 112, 0.16);
}

.module-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.module-hero-side {
  display: grid;
  align-content: space-between;
  gap: 14px;
}

.module-metrics {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

.module-hero .secondary {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

.module-hero .primary {
  background: #fff;
  color: var(--brand-dark);
}

.module-hero-orange {
  background:
    linear-gradient(135deg, rgba(0, 48, 112, 0.98), rgba(240, 144, 0, 0.86)),
    var(--brand);
}

.module-hero-violet {
  background:
    linear-gradient(135deg, rgba(42, 33, 111, 0.97), rgba(113, 86, 217, 0.92), rgba(8, 164, 189, 0.75)),
    var(--violet);
}

.module-hero-green {
  background:
    linear-gradient(135deg, rgba(0, 48, 112, 0.95), rgba(21, 132, 94, 0.9)),
    var(--green);
}

.module-hero-cyan {
  background:
    linear-gradient(135deg, rgba(0, 48, 112, 0.96), rgba(8, 164, 189, 0.92), rgba(240, 144, 0, 0.66)),
    var(--cyan);
}

.module-hero-navy {
  background:
    linear-gradient(135deg, #10233e, #003070 58%, #7156d9),
    var(--brand);
}

.workflow-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.workflow-strip div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 24px rgba(0, 48, 112, 0.06);
  padding: 12px;
}

.workflow-strip span {
  grid-row: 1 / span 2;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}

.workflow-strip strong,
.workflow-strip small {
  display: block;
}

.workflow-strip small {
  color: var(--muted);
}

.workflow-orange span {
  background: var(--accent);
  color: #10233e;
}

.workflow-violet span {
  background: var(--violet);
}

.workflow-green span {
  background: var(--green);
}

.workflow-cyan span {
  background: var(--cyan);
}

.workflow-navy span {
  background: var(--brand);
}

.executive-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.05fr) minmax(320px, 0.95fr);
  gap: 16px;
  margin-top: 16px;
}

.experience-panel {
  border: 1px solid rgba(0, 48, 112, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.94)),
    #fff;
  box-shadow: 0 16px 36px rgba(0, 48, 112, 0.09);
  padding: 18px;
}

.priority-panel {
  background:
    linear-gradient(135deg, rgba(240, 144, 0, 0.12), transparent 44%),
    linear-gradient(315deg, rgba(8, 164, 189, 0.1), transparent 48%),
    #fff;
}

.health-panel {
  background:
    linear-gradient(135deg, rgba(113, 86, 217, 0.1), transparent 46%),
    #fff;
}

.priority-list,
.health-board {
  display: grid;
  gap: 10px;
}

.priority-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 12px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 12px;
  text-align: left;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.priority-item:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(240, 144, 0, 0.12);
  transform: translateY(-1px);
}

.priority-item span,
.priority-item small {
  color: var(--muted);
  font-weight: 800;
}

.priority-item strong {
  color: var(--brand-dark);
  font-size: 1.4rem;
}

.priority-item small {
  grid-column: 1 / -1;
}

.health-board {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.health-tile {
  min-height: 118px;
  border-color: var(--line);
  background: #fff;
}

.health-tile span,
.health-tile small {
  color: var(--muted);
}

.health-tile strong {
  color: var(--brand-dark);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.grid {
  display: grid;
  gap: 16px;
}

.kpi-grid {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.two-col {
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
}

.three-col {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98));
  box-shadow: 0 14px 32px rgba(0, 48, 112, 0.08);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.card:hover {
  border-color: #bfd0e7;
  box-shadow: 0 18px 38px rgba(0, 48, 112, 0.12);
}

.card-pad {
  padding: 18px;
}

.kpi {
  min-height: 118px;
  padding: 16px;
  border-top: 4px solid var(--brand);
  background:
    linear-gradient(135deg, rgba(0, 48, 112, 0.06), transparent 48%),
    #fff;
}

.kpi:nth-child(2) {
  border-top-color: var(--cyan);
  background:
    linear-gradient(135deg, rgba(8, 164, 189, 0.12), transparent 52%),
    #fff;
}

.kpi:nth-child(3) {
  border-top-color: var(--violet);
  background:
    linear-gradient(135deg, rgba(113, 86, 217, 0.12), transparent 52%),
    #fff;
}

.kpi:nth-child(4) {
  border-top-color: var(--accent);
  background:
    linear-gradient(135deg, rgba(240, 144, 0, 0.14), transparent 52%),
    #fff;
}

.kpi strong {
  display: block;
  margin-top: 12px;
  font-size: 2rem;
}

.owner-panel {
  position: relative;
  overflow: hidden;
}

.owner-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--brand);
}

.owner-panel-bench {
  background:
    linear-gradient(135deg, rgba(240, 144, 0, 0.13), transparent 46%),
    #fff;
}

.owner-panel-bench::before {
  background: var(--accent);
}

.owner-panel-recruiting {
  background:
    linear-gradient(135deg, rgba(8, 164, 189, 0.13), transparent 46%),
    #fff;
}

.owner-panel-recruiting::before {
  background: var(--cyan);
}

.owner-panel-hr {
  background:
    linear-gradient(135deg, rgba(113, 86, 217, 0.13), transparent 46%),
    #fff;
}

.owner-panel-hr::before {
  background: var(--violet);
}

.owner-panel-payables {
  background:
    linear-gradient(135deg, rgba(0, 48, 112, 0.1), transparent 46%),
    #fff;
}

.owner-panel-payables::before {
  background: var(--brand);
}

.section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-title h2 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.section-title p {
  margin: 0;
  line-height: 1.45;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 9px;
  background: var(--surface-soft);
  color: #334155;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.pill.green {
  background: var(--green-soft);
  color: var(--brand-dark);
}

.pill.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.pill.amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.pill.rose {
  background: var(--rose-soft);
  color: var(--rose);
}

.list {
  display: grid;
  gap: 10px;
}

.list-item {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  background: #fff;
  transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.list-item:hover {
  border-color: #b8cae5;
  background: #fbfdff;
  transform: translateY(-1px);
}

.candidate-filter {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
}

.candidate-filter.active {
  border-radius: 7px;
  box-shadow: inset 4px 0 0 var(--accent);
  background: var(--accent-soft);
  padding: 8px;
}

.list-item .row,
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tab {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #334155;
  padding: 0 13px;
  font-weight: 800;
}

.tab.active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  color: #fff;
  box-shadow: inset 0 -3px 0 var(--accent);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.check-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0 10px;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.check-pill input {
  width: 14px;
  height: 14px;
  accent-color: var(--accent);
}

.check-pill.locked {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.dropzone {
  display: grid;
  min-height: 84px;
  place-items: center;
  border: 1px dashed #9fb0c8;
  border-radius: 7px;
  background: #fbfdff;
  color: var(--muted);
  padding: 14px;
  text-align: center;
}

.file-drop {
  gap: 9px;
  justify-items: stretch;
  text-align: left;
}

.file-drop input {
  width: 100%;
}

.upload-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.upload-choice-grid .dropzone {
  min-height: 130px;
}

.field-note {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.folder-upload-summary {
  display: block;
  border-radius: 8px;
  background: rgba(8, 164, 189, 0.09);
  color: var(--brand-dark);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 8px 10px;
}

.proof-files {
  display: grid;
  gap: 4px;
  margin-top: 5px;
}

.proof-file {
  display: block;
}

.file-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  max-width: 100%;
  border: 1px solid #bfd0e6;
  border-radius: 7px;
  background: #f8fbff;
  color: var(--brand);
  padding: 5px 9px;
  font-size: 0.86rem;
  font-weight: 800;
  text-align: left;
  overflow-wrap: anywhere;
}

.file-link:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.notice {
  border-left: 4px solid var(--accent);
  background: var(--blue-soft);
  color: var(--brand-dark);
  padding: 12px;
  line-height: 1.45;
}

.secure-link {
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  padding: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.86rem;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 12px;
  margin-bottom: 16px;
}

.candidate-profile {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
}

.avatar {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 900;
}

.subtle-box {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fbff;
  padding: 12px;
}

.jd-panel {
  max-height: 280px;
  overflow: auto;
  white-space: pre-wrap;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 48, 112, 0.05), transparent 42%),
    #f8fbff;
  padding: 14px;
  line-height: 1.55;
}

.compact-actions {
  align-items: center;
}

.candidate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.candidate-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(8, 164, 189, 0.07), transparent 46%),
    #fff;
  padding: 14px;
}

.candidate-card:hover,
.match-item:hover {
  border-color: var(--cyan);
}

.candidate-meta {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span {
  border-radius: 999px;
  background: var(--accent-soft);
  color: #7a4300;
  padding: 5px 8px;
  font-size: 0.78rem;
  font-weight: 800;
}

.import-history {
  margin-top: 14px;
}

.job-browser-card {
  margin-bottom: 16px;
  border-top: 4px solid var(--cyan);
}

.job-browser-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.18fr) minmax(280px, 0.82fr);
  gap: 16px;
}

.job-filter-bar {
  margin-bottom: 12px;
}

.job-list {
  display: grid;
  max-height: 410px;
  gap: 9px;
  overflow: auto;
  padding-right: 4px;
}

.job-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  color: var(--ink);
  text-align: left;
  transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.job-row:hover {
  border-color: var(--cyan);
  background: #fbfdff;
  transform: translateY(-1px);
}

.job-row.active {
  border-color: rgba(8, 164, 189, 0.55);
  background:
    linear-gradient(90deg, rgba(8, 164, 189, 0.1), rgba(240, 144, 0, 0.08)),
    #fff;
  box-shadow: inset 4px 0 0 var(--accent);
}

.job-row-main,
.job-row-side,
.selected-job-panel {
  display: grid;
  gap: 5px;
}

.job-row-main span,
.job-row-skills,
.selected-job-panel p {
  color: var(--muted);
}

.job-row-side {
  justify-items: end;
}

.job-row-skills {
  grid-column: 1 / -1;
  font-size: 0.84rem;
}

.job-more-note {
  margin: 10px 0 0;
}

.recruiting-team-card,
.recruiting-team-submissions-card {
  margin-bottom: 16px;
}

.recruiting-team-card {
  border-top: 4px solid var(--violet);
}

.recruiting-team-submissions-card {
  border-top: 4px solid var(--accent);
}

.recruiting-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.recruiter-card {
  display: grid;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(108, 79, 214, 0.08), transparent 46%),
    #fff;
  color: var(--ink);
  padding: 12px;
  text-align: left;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.recruiter-card:hover,
.recruiter-card.active {
  border-color: rgba(108, 79, 214, 0.48);
  transform: translateY(-1px);
  box-shadow: inset 4px 0 0 var(--accent), 0 12px 22px rgba(10, 22, 38, 0.08);
}

.recruiter-card strong {
  display: block;
  font-size: 1rem;
}

.recruiter-card span,
.recruiter-card small {
  color: var(--muted);
}

.recruiter-card-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.recruiter-card-metrics span {
  border: 1px solid rgba(8, 164, 189, 0.2);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 7px;
  font-size: 0.76rem;
  font-weight: 800;
}

.recruiter-card-metrics b {
  display: block;
  color: var(--brand);
  font-size: 1.05rem;
}

.recruiting-date-filter {
  margin: 0 0 14px;
}

.recruiting-date-filter select,
.recruiting-date-filter input {
  min-width: 160px;
}

.management-report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.management-report-grid article {
  border: 1px solid rgba(8, 164, 189, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(8, 164, 189, 0.09), transparent 46%),
    #fff;
  padding: 12px;
}

.management-report-grid span,
.management-report-grid small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.management-report-grid strong {
  display: block;
  margin: 5px 0;
  color: var(--brand);
  font-size: 1.45rem;
}

.management-summary {
  margin: 10px 0 14px;
}

.email-automation-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(360px, 1.1fr);
  gap: 16px;
}

.email-automation-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.email-item {
  border-left: 4px solid var(--accent);
}

.email-preview {
  white-space: pre-wrap;
  line-height: 1.45;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(10, 22, 38, 0.42);
}

.modal-panel {
  width: min(760px, 100%);
  max-height: min(820px, calc(100vh - 44px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 26px 70px rgba(10, 22, 38, 0.28);
  padding: 22px;
}

.wide-modal {
  width: min(1060px, 100%);
}

.modal-panel textarea {
  min-height: 320px;
  white-space: pre-wrap;
}

.modal-panel .tall-textarea {
  min-height: 260px;
}

.proof-modal {
  width: min(920px, 100%);
}

.proof-details {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
}

.proof-image-frame {
  display: grid;
  place-items: center;
  overflow: auto;
  min-height: 320px;
  max-height: 62vh;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b1220;
}

.proof-image-frame img {
  max-width: 100%;
  max-height: 62vh;
  object-fit: contain;
}

.file-preview-frame {
  width: 100%;
  min-height: 62vh;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.file-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.file-preview-actions a.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.docx-preview-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.docx-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.docx-preview-text {
  min-height: 360px;
  max-height: 62vh;
  overflow: auto;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(8, 164, 189, 0.05), transparent 120px),
    #fbfdff;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.93rem;
  line-height: 1.55;
  white-space: pre-wrap;
  padding: 16px;
}

.file-preview-loading {
  border-left: 4px solid var(--cyan);
}

.file-recovery-form {
  display: grid;
  gap: 12px;
  margin: 12px 0;
  padding: 14px;
  border: 1px solid #f5c36b;
  border-radius: 8px;
  background: #fff7e8;
}

.file-recovery-form label {
  font-weight: 800;
  color: var(--ink);
}

.recovery-panel {
  border-top: 4px solid var(--violet);
}

.recovery-import-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: stretch;
  margin: 12px 0;
}

.recovery-import-form .dropzone {
  min-height: 74px;
}

.recovery-import-form button {
  min-width: 190px;
}

@media (max-width: 780px) {
  .recovery-import-form {
    grid-template-columns: 1fr;
  }
}

.selected-job-panel {
  align-self: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 48, 112, 0.07), transparent 42%),
    var(--surface-soft);
  padding: 14px;
}

.selected-job-panel h3 {
  margin: 4px 0 0;
  font-size: 1.45rem;
}

.selected-job-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.selected-job-stats span {
  border: 1px solid rgba(8, 164, 189, 0.24);
  border-radius: 8px;
  background: #fff;
  padding: 9px 10px;
  color: var(--muted);
  font-weight: 800;
}

.selected-job-stats strong {
  display: block;
  color: var(--brand);
  font-size: 1.2rem;
}

.recruiting-workspace {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.job-workspace-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(0, 48, 112, 0.16);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(0, 48, 112, 0.12), transparent 44%),
    linear-gradient(30deg, rgba(240, 144, 0, 0.16), transparent 52%),
    #fff;
  box-shadow: var(--shadow);
  padding: 18px;
}

.job-workspace-hero h2 {
  margin: 4px 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.02;
}

.job-workspace-hero p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.job-workspace-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.job-workspace-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.job-workspace-summary article {
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(15, 36, 65, 0.07);
}

.job-workspace-summary article:nth-child(2) {
  border-top-color: var(--cyan);
}

.job-workspace-summary article:nth-child(3) {
  border-top-color: #22a06b;
}

.job-workspace-summary article:nth-child(4) {
  border-top-color: #d84a6b;
}

.job-workspace-summary span,
.job-workspace-summary small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.job-workspace-summary strong {
  display: block;
  margin: 6px 0;
  color: var(--brand);
  font-size: 2rem;
  line-height: 1;
}

.job-workspace-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(420px, 1fr);
  gap: 16px;
}

.job-context-card {
  min-width: 0;
}

.job-match-list {
  display: grid;
  gap: 11px;
}

.job-match-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(120deg, rgba(8, 164, 189, 0.08), transparent 42%),
    #fff;
  padding: 12px;
}

.job-match-card.already-submitted {
  background:
    linear-gradient(120deg, rgba(240, 144, 0, 0.11), transparent 42%),
    #fff;
}

.job-match-rank {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}

.job-match-body,
.job-match-head,
.job-match-meta {
  min-width: 0;
}

.job-match-body {
  display: grid;
  gap: 9px;
}

.job-match-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.job-match-head strong,
.job-match-head span {
  display: block;
}

.job-match-head span:not(.pill),
.job-match-meta {
  color: var(--muted);
}

.job-match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-weight: 800;
  word-break: break-word;
}

.job-workspace-jd {
  max-height: 560px;
  min-height: 320px;
  overflow: auto;
  white-space: pre-wrap;
}

.match-lab-card {
  margin-bottom: 16px;
  border-top: 4px solid var(--violet);
  background:
    linear-gradient(135deg, rgba(113, 86, 217, 0.09), transparent 42%),
    linear-gradient(30deg, rgba(240, 144, 0, 0.1), transparent 48%),
    #fff;
}

.match-lab-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(420px, 1.15fr);
  gap: 16px;
}

.match-lab-form textarea {
  min-height: 178px;
}

.match-skill-board {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.match-skill-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 800;
}

.match-skill-chip.matched {
  border-color: rgba(21, 132, 94, 0.25);
  background: var(--green-soft);
  color: var(--green);
}

.match-results {
  display: grid;
  gap: 14px;
}

.match-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mini-stat {
  display: grid;
  gap: 4px;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.mini-stat span,
.mini-stat small {
  color: var(--muted);
}

.mini-stat strong {
  color: var(--brand-dark);
  font-size: 1.45rem;
}

.match-chart {
  display: grid;
  gap: 10px;
}

.match-row {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  padding: 12px;
}

.match-row-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.match-row-head strong {
  display: block;
  margin-bottom: 3px;
}

.match-bar {
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: var(--brand-soft);
}

.match-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--cyan), var(--accent));
}

.match-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.match-reasons span {
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--brand-dark);
  padding: 5px 8px;
  font-size: 0.76rem;
  font-weight: 800;
}

.guide-card {
  border-top: 4px solid var(--brand);
}

.empty-start {
  min-height: 260px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 12px;
}

.empty-start h2 {
  margin: 0;
}

.empty-start p {
  max-width: 760px;
  color: var(--muted);
  margin: 0;
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
}

.guide-hero h2 {
  margin: 10px 0 6px;
}

.guide-mini-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.guide-mini-flow span {
  min-height: 54px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--brand), #0d78a6);
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 900;
  padding: 8px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.guide-picture {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #f8fbff;
  margin: 12px 0 14px;
}

.guide-window-bar {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  background: #10233e;
  color: #fff;
}

.guide-window-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.guide-window-bar span:nth-child(2) {
  background: var(--cyan);
}

.guide-window-bar span:nth-child(3) {
  background: var(--green);
}

.guide-window-bar strong {
  margin-left: 6px;
  font-size: 0.82rem;
}

.guide-window-body {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  min-height: 220px;
}

.guide-nav-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: linear-gradient(180deg, #eaf5ff, #f7fbff);
  border-right: 1px solid var(--line);
}

.guide-nav-preview span {
  border-radius: 7px;
  padding: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.78rem;
}

.guide-nav-preview span.active {
  background: var(--accent);
  color: #10233e;
}

.guide-work-preview {
  padding: 12px;
}

.guide-shot-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.guide-shot-title button {
  min-height: 30px;
  border-radius: 7px;
  padding: 0 10px;
  background: var(--brand);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.guide-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.guide-field-grid span,
.guide-table-preview span {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 8px;
}

.guide-table-preview {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.guide-table-preview span {
  display: block;
  min-height: 28px;
  background: var(--surface-soft);
}

.guide-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: guide-step;
  display: grid;
  gap: 10px;
}

.guide-checklist li {
  counter-increment: guide-step;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.guide-checklist li::before {
  content: counter(guide-step);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.guide-checklist strong,
.guide-checklist span {
  grid-column: 2;
}

.guide-checklist span {
  color: var(--muted);
}

.guide-do-dont {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.guide-do-dont div {
  border-radius: 8px;
  padding: 10px;
  background: var(--green-soft);
  color: var(--brand-dark);
}

.guide-do-dont div:nth-child(2) {
  background: var(--rose-soft);
}

.guide-do-dont strong,
.guide-do-dont span {
  display: block;
}

.guide-do-dont span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.guide-owner {
  border-top-color: var(--accent);
}

.guide-bench {
  border-top-color: var(--cyan);
}

.guide-recruiting {
  border-top-color: var(--violet);
}

.guide-hr {
  border-top-color: var(--green);
}

.guide-ap {
  border-top-color: var(--magenta);
}

.hidden {
  display: none !important;
}

@media (max-width: 1060px) {
  .login-screen,
  .layout,
  .email-automation-grid,
  .dashboard-hero,
  .module-hero,
  .executive-grid,
  .job-browser-grid,
  .job-workspace-grid,
  .match-lab-layout,
  .guide-hero,
  .guide-grid,
  .workflow-strip,
  .two-col,
  .three-col,
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .hero-scoreboard,
  .job-workspace-summary,
  .health-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-mini-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .match-insights {
    grid-template-columns: 1fr;
  }

  .upload-choice-grid {
    grid-template-columns: 1fr;
  }

  .email-automation-actions {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-button {
    width: auto;
    white-space: nowrap;
  }

  .filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .login-panel,
  .content,
  .topbar {
    padding: 18px;
  }

  .topbar,
  .page-title,
  .user-chip {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-grid,
  .filter-bar,
  .hero-scoreboard,
  .job-workspace-summary,
  .module-metrics,
  .health-board,
  .guide-window-body,
  .guide-do-dont,
  .guide-field-grid {
    grid-template-columns: 1fr;
  }

  .job-workspace-hero,
  .job-match-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .guide-nav-preview {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .login-box-wrap {
    padding: 18px;
  }
}
