/* Vertex Recruitment's look, laid out like Onrolo: a white sidebar in groups, a light page, serif headings, a dark
   overview card. Vertex's forest green takes Onrolo's black; lime is kept for small highlights. Loaded last. */
:root {
  --bg: #f7f7f5;
  --card: #ffffff;
  --raised: #f4f4f1;
  --field: #ffffff;
  --line: #e8e8e4;
  --ink: #14211c;
  --muted: #6b716d;
  --col: #f1f1ee;
  --side: #ffffff;
  --hover: #f3f3f0;
  --shadow: 0 10px 30px rgba(20, 33, 28, 0.10);
  --shadow-sm: 0 1px 2px rgba(20, 33, 28, 0.05);
  --radius: 12px;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0d1512; --card: #131d19; --raised: #18241f; --field: #101915; --line: #24312b; --ink: #eef2ee; --muted: #98a59e; --col: #101915; --side: #101915; --hover: #1a2621; }
}
:root[data-theme="dark"] { --bg: #0d1512; --card: #131d19; --raised: #18241f; --field: #101915; --line: #24312b; --ink: #eef2ee; --muted: #98a59e; --col: #101915; --side: #101915; --hover: #1a2621; }

body { font-size: 14px; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }
h1 { font-size: 30px; }
h2 { font-size: 19px; }
h3 { font-family: Inter, system-ui, sans-serif; font-size: 14px; font-weight: 600; }

/* buttons: Onrolo's dark buttons, in forest */
.btn { border-radius: 9px; min-height: 38px; padding: 7px 13px; font-size: 14px; box-shadow: var(--shadow-sm); }
.btn.primary { background: var(--forest); border-color: var(--forest); color: #fff; }
.btn.primary:hover { background: #1b4235; }
:root[data-theme="dark"] .btn.primary { background: var(--lime); border-color: var(--lime); color: var(--on-lime); }
.btn.small { min-height: 32px; }
.chip { min-height: 32px; border-radius: 999px; font-size: 13px; }
.chip[aria-pressed="true"] { background: var(--forest); color: #fff; border-color: var(--forest); }
.card { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.tile { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.tile .n { font-family: var(--serif); font-weight: 500; font-size: 30px; }
.tile.hot { border-color: var(--line); box-shadow: inset 3px 0 0 var(--forest), var(--shadow-sm); }
.pill.lime { background: #eef7d8; color: #3b5a10; border-color: transparent; }
input, select, textarea { border-radius: 9px; min-height: 40px; font-size: 14px; }

/* ---------- the frame ---------- */
.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); grid-template-rows: none; min-height: 100dvh; }
.side {
  position: sticky; top: 0; height: 100dvh; background: var(--side); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 14px 12px 12px; gap: 8px; z-index: 20;
}
.side-brand { display: flex; align-items: center; gap: 8px; padding: 4px 8px 12px; }
.logo-mark { width: 26px; height: 26px; border-radius: 50%; background: var(--forest); position: relative; flex: none; }
.logo-mark::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--lime); }
.side-name { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.side-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; color: var(--muted); }
.nav { position: static; display: flex; flex-direction: column; gap: 2px; padding: 0; border: 0; background: none; overflow-y: auto; flex: 1; }
.nav .group { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 14px 10px 6px; }
.nav button {
  border: 0; background: none; text-align: left; padding: 8px 10px; border-radius: 8px; font-weight: 500; font-size: 14px; cursor: pointer;
  color: var(--ink); display: flex; align-items: center; gap: 10px; position: relative;
}
.nav button:hover { background: var(--hover); }
.nav button[aria-current="page"] { background: var(--hover); color: var(--ink); font-weight: 600; }
.nav button[aria-current="page"]::before { content: ""; position: absolute; left: -12px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--forest); }
.nav svg { width: 17px; height: 17px; stroke-width: 1.8; color: var(--muted); }
.nav button[aria-current="page"] svg { color: var(--ink); }
.nav .count { margin-left: auto; background: var(--forest); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 1px 7px; min-width: 20px; text-align: center; }
.nav .ext::after { content: "↗"; margin-left: auto; color: var(--muted); font-size: 12px; }

.side-foot { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.daynight { display: flex; background: var(--raised); border: 1px solid var(--line); border-radius: 9px; padding: 3px; gap: 3px; }
.daynight button { flex: 1; border: 0; background: none; border-radius: 7px; padding: 5px 6px; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; }
.daynight button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.me-card { display: flex; align-items: center; gap: 10px; padding: 2px 4px; min-width: 0; }
.initials { width: 34px; height: 34px; border-radius: 50%; background: var(--raised); border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; overflow: hidden; }
.initials img { width: 100%; height: 100%; object-fit: cover; }
.me-card .who { display: grid; min-width: 0; }
.me-card .who b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-card .who span { font-size: 12px; color: var(--muted); }
.side-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.side-actions button { min-height: 32px; font-size: 12.5px; padding: 4px 8px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 15; height: 56px; padding: 0 22px; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px); display: flex; align-items: center; gap: 10px; color: var(--ink); border-bottom: 0; grid-column: auto;
}
.topbar .mobile-brand { display: none; }
.search-cmd {
  margin-left: auto; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--card); border-radius: 9px;
  padding: 6px 8px 6px 10px; min-width: 230px; color: var(--muted); font-size: 13px; cursor: pointer; box-shadow: var(--shadow-sm);
}
.search-cmd kbd { margin-left: auto; font: 600 11px Inter, sans-serif; border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; background: var(--raised); }
.icon-round { position: relative; width: 36px; height: 36px; border-radius: 50%; border: 0; background: none; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.icon-round:hover { background: var(--hover); }
.icon-round svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-round .badge { position: absolute; top: 1px; right: 0; background: #d9480f; color: #fff; font-size: 10px; font-weight: 700; border-radius: 999px; padding: 0 5px; min-width: 16px; text-align: center; line-height: 16px; }
.view { grid-row: auto; padding: 8px 32px 64px; width: 100%; max-width: 1180px; margin: 0 auto; gap: 18px; }
.view-head h1 { font-size: 30px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.fab { position: fixed; right: 22px; bottom: 22px; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--forest); color: #fff; box-shadow: var(--shadow); cursor: pointer; z-index: 25; display: grid; place-items: center; }
.fab svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* the command palette and drop-down panels */
.palette { width: min(620px, 100%); margin: 10vh auto auto; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; display: grid; max-height: 70vh; grid-template-rows: auto 1fr; }
.palette input { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; min-height: 52px; font-size: 16px; padding: 0 18px; }
.palette input:focus { outline: none; }
.palette .results { overflow-y: auto; padding: 6px; }
.palette .sec { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 10px 12px 4px; }
.palette .res { display: flex; gap: 10px; align-items: center; width: 100%; border: 0; background: none; text-align: left; padding: 9px 12px; border-radius: 8px; cursor: pointer; color: var(--ink); }
.palette .res:hover, .palette .res.on { background: var(--hover); }
.palette .res .muted { margin-left: auto; font-size: 12px; }
.dropdown { position: fixed; top: 52px; right: 70px; width: min(360px, calc(100% - 24px)); background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; display: grid; gap: 2px; }
.dropdown .res { display: grid; gap: 2px; border: 0; background: none; text-align: left; padding: 10px 12px; border-radius: 8px; cursor: pointer; color: var(--ink); }
.dropdown .res:hover { background: var(--hover); }
.top-wrap { align-items: flex-start; justify-content: center; }

/* the candidate panel and pop-ups on the lighter page */
.drawer-card, .drawer-head, .drawer-foot { background: var(--bg); }
.modal-card { border-radius: 14px; }
.board .col { background: var(--col); border: 1px solid var(--line); border-radius: 12px; }
.person { border-radius: 10px; box-shadow: var(--shadow-sm); }

/* ---------- home, laid out like Onrolo's ---------- */
.home { display: grid; gap: 22px; max-width: 940px; width: 100%; margin: 0 auto; }
.hero {
  position: relative; overflow: hidden; border-radius: 16px; background: var(--forest); color: #fff; padding: 28px 30px 26px; min-height: 132px;
}
.hero .eyebrow { color: rgba(255, 255, 255, 0.62); }
.hero h1 { font-size: 34px; margin: 10px 0 6px; color: #fff; }
.hero p { color: rgba(255, 255, 255, 0.78); font-size: 14px; }
.hero svg.burst { position: absolute; right: -10px; top: -10px; height: calc(100% + 20px); width: 230px; opacity: 0.55; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi2 { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 12px; display: grid; gap: 4px; text-align: left; cursor: pointer; box-shadow: var(--shadow-sm); color: var(--ink); }
.kpi2:hover { border-color: #cfcfca; }
.kpi2 .top { display: flex; justify-content: space-between; gap: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.kpi2 .mid { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kpi2 .num { font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1.15; }
.kpi2 .num small { font-size: 15px; color: var(--muted); }
.kpi2 svg.spark { width: 72px; height: 22px; }
.kpi2 .foot { border-top: 1px solid var(--line); padding-top: 7px; margin-top: 4px; font-size: 11.5px; font-weight: 600; color: var(--ink); min-height: 22px; }
.kpi2 .foot .muted { font-weight: 500; }
.sec-head { display: flex; align-items: flex-end; gap: 10px; }
.sec-head h2 { font-size: 21px; }
.sec-head .sub { font-size: 12.5px; color: var(--muted); }
.sec-head .pill { margin-left: auto; }
.wavy { width: 100%; height: 14px; color: var(--line); }
.next-card { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-left: 3px solid #c92a2a; border-radius: 12px; padding: 18px; box-shadow: var(--shadow-sm); }
.next-card .ic { width: 42px; height: 42px; border-radius: 10px; background: #fbeaea; color: #a61e1e; display: grid; place-items: center; }
.next-card .ic svg, .then-row .ic svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.next-card .eyebrow { display: flex; gap: 8px; align-items: center; }
.urgent { color: #c92a2a; background: #fbeaea; border-radius: 999px; padding: 1px 8px; font-size: 10px; letter-spacing: 0.06em; }
.next-card h3 { font-family: var(--serif); font-size: 19px; font-weight: 500; margin: 4px 0 2px; }
.next-card p, .then-row p { color: var(--muted); font-size: 12.5px; }
.then { background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); overflow: hidden; }
.then .label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); padding: 10px 16px; border-bottom: 1px solid var(--line); }
.then-row { display: grid; grid-template-columns: auto auto 1fr auto; gap: 14px; align-items: center; padding: 12px 16px; border-left: 3px solid #e0b24a; cursor: pointer; width: 100%; background: none; border-top: 0; border-right: 0; border-bottom: 1px solid var(--line); text-align: left; color: var(--ink); }
.then-row:last-child { border-bottom: 0; }
.then-row:hover { background: var(--hover); }
.then-row .ic { width: 34px; height: 34px; border-radius: 8px; background: #fbf3df; color: #8a6510; display: grid; place-items: center; }
.then-row .n { font-family: var(--serif); font-size: 21px; }
.then-row b { font-weight: 600; }
.today-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); overflow: hidden; }
.today-card .head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.today-card .head h2 { font-size: 19px; }
.today-row { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.today-row:last-child { border-bottom: 0; }
.today-row .tick { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #bdbdb6; background: none; cursor: pointer; flex: none; }
.today-row .tick:hover { border-color: var(--forest); background: #eef7d8; }
.today-row .dot { width: 6px; height: 6px; border-radius: 50%; background: #c92a2a; flex: none; }
.today-row .t { display: grid; min-width: 0; }
.today-row .t b { font-weight: 600; font-size: 13.5px; }
.today-row .t button { border: 0; background: none; padding: 0; text-align: left; color: var(--muted); font-size: 12px; cursor: pointer; }
.today-row .due { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.today-row .due.over { color: #c92a2a; }
.home-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.home-two .card { display: grid; gap: 10px; align-content: start; }

/* ---------- phones ---------- */
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; padding: 0; border: 0; background: none; display: contents; }
  .side-brand, .side-foot { display: none; }
  .nav { position: fixed; bottom: 0; left: 0; right: 0; flex-direction: row; justify-content: space-around; z-index: 30; overflow: visible;
         padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); }
  .nav .group { display: none; }
  .nav button { flex-direction: column; gap: 3px; font-size: 11px; padding: 6px 4px; flex: 1; align-items: center; text-align: center; }
  .nav button[aria-current="page"]::before { display: none; }
  .nav .count { position: absolute; top: 2px; right: calc(50% - 22px); margin: 0; }
  .topbar { padding: 0 12px; height: 54px; }
  .topbar .mobile-brand { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-weight: 600; font-size: 19px; }
  .search-cmd { min-width: 0; width: 40px; padding: 8px; justify-content: center; }
  .search-cmd span, .search-cmd kbd { display: none; }
  .view { padding: 6px 16px calc(96px + env(safe-area-inset-bottom)); }
  .fab { bottom: calc(80px + env(safe-area-inset-bottom)); right: 16px; width: 46px; height: 46px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .home-two { grid-template-columns: 1fr; }
  .next-card { grid-template-columns: auto 1fr; }
  .next-card .go { grid-column: 1 / -1; }
  .hero h1 { font-size: 28px; }
  .dropdown { right: 12px; }
}
.plain-wrap { background: transparent; }
.search-cmd svg, .side-actions svg, .today-card svg.ic-list, .more-sheet svg {
  width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.search-cmd span { white-space: nowrap; }
.side-actions .btn { gap: 6px; }
.today-card .head svg.ic-list { color: var(--muted); }
.step-row { flex-wrap: wrap; }
.step-row .muted { white-space: normal !important; }
.linkbox { min-width: 0; }
.linkbox code { min-width: 0; }
.view > * { min-width: 0; max-width: 100%; }
