:root {
  --ink: #17201d;
  --muted: #617069;
  --line: #dbe4df;
  --paper: #f7faf8;
  --panel: #ffffff;
  --green: #1f7a55;
  --green-dark: #13231e;
  --blue: #285f91;
  --gold: #b77820;
  --red: #b84b4b;
  --shadow: 0 18px 42px rgba(23, 32, 29, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.sidebar {
  min-height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 24px;
  color: #f7fbf8;
  background: var(--green-dark);
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--green-dark);
  background: #dff3e9;
  font-weight: 900;
}

.brand span {
  display: block;
  margin-top: 2px;
  color: #b8cec3;
  font-size: 0.82rem;
}

nav {
  display: grid;
  gap: 8px;
}

nav a {
  border-radius: 8px;
  padding: 12px 14px;
  color: #dce9e2;
}

nav a.active,
nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.sidebar-card {
  margin-top: auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-card span,
.eyebrow {
  display: block;
  color: #0a7c86;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sidebar-card span {
  color: #9fcebd;
}

.sidebar-card p {
  margin: 8px 0 0;
  color: #c2d1ca;
  line-height: 1.45;
}

main {
  padding: 28px;
}

.topbar,
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.topbar {
  margin-bottom: 22px;
}

.topbar h1 {
  max-width: 980px;
  margin: 6px 0 0;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.05;
}

.topbar-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.primary-button {
  color: #ffffff;
  background: var(--green);
}

.secondary-button,
.ghost-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #ffffff;
}

.hero {
  min-height: 290px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: center;
  padding: 34px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(229, 243, 236, 0.96), rgba(247, 249, 241, 0.9)),
    radial-gradient(circle at 90% 20%, rgba(40, 95, 145, 0.16), transparent 32%);
}

.hero h2 {
  max-width: 920px;
  margin: 8px 0 12px;
  font-size: clamp(1.8rem, 4vw, 3.45rem);
  line-height: 0.98;
}

.hero p,
.hero-card p,
.job-row p,
.talent-card p,
.mini-flow p,
.status-list p,
.contract-card p,
.task-list span,
small {
  color: var(--muted);
}

.hero-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hero-card strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 1.3rem;
}

.score {
  height: 10px;
  margin: 18px 0 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e3ebe6;
}

.score span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

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

.metrics article,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.metrics article {
  padding: 18px;
}

.metrics span {
  color: var(--muted);
  font-size: 0.84rem;
}

.metrics strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 2rem;
  line-height: 1;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  margin-bottom: 18px;
  align-items: start;
}

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

.panel {
  padding: 22px;
}

.panel.large {
  min-height: 420px;
}

.section-header {
  margin-bottom: 16px;
}

.section-header h3,
.panel h3 {
  margin: 4px 0 0;
  font-size: 1.18rem;
}

.toolbar,
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toolbar {
  margin-bottom: 14px;
}

.chip,
.tags span {
  min-height: 0;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #ffffff;
  font-size: 0.82rem;
  font-weight: 750;
}

.chip.active {
  color: #ffffff;
  border-color: var(--green-dark);
  background: var(--green-dark);
}

.list,
.talent-grid,
.task-list,
.mini-flow,
.status-list {
  display: grid;
  gap: 12px;
}

.job-row,
.talent-card,
.mini-flow article,
.status-list article,
.contract-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.job-row,
.talent-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.talent-card {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.job-row strong,
.talent-card strong,
.task-list strong,
.mini-flow strong,
.status-list strong,
.contract-card strong {
  display: block;
  margin-bottom: 4px;
}

.avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--blue);
  background: #e5eef7;
  font-weight: 900;
}

.task-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.task-list li {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbf9;
}

.task-list span {
  display: block;
  margin-top: 3px;
  font-size: 0.9rem;
}

.mini-flow article {
  background: #f8fbf9;
}

.status-list article {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.dot {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 50%;
}

.dot.green { background: var(--green); }
.dot.gold { background: var(--gold); }
.dot.red { background: var(--red); }

.contract-card + .contract-card {
  margin-top: 12px;
}

@media (max-width: 1080px) {
  body {
    grid-template-columns: 1fr;
  }

  .sidebar {
    min-height: auto;
    position: static;
  }

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

  .sidebar-card {
    margin-top: 0;
  }

  .hero,
  .workspace-grid,
  .three-grid,
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  main,
  .sidebar {
    padding: 18px;
  }

  .topbar,
  .section-header {
    flex-direction: column;
  }

  .topbar-actions,
  nav,
  .hero,
  .workspace-grid,
  .three-grid,
  .metrics,
  .job-row,
  .talent-card {
    grid-template-columns: 1fr;
  }

  .topbar-actions {
    display: grid;
  }
}
