/* Vertex Recruitment. Colours are tokens so light and dark share every rule. */
:root {
  --forest: #102d25;
  --lime: #b7df58;
  --on-lime: #102d25;
  --danger: #c92a2a;
  --warn: #e8590c;
  --ok: #2f9e44;
  --info: #1c7ed6;

  --bg: #f0f4e9;
  --card: #ffffff;
  --raised: #f4f7ee;
  --field: #ffffff;
  --line: #d8e0cf;
  --ink: #17362b;
  --muted: #5d7066;
  --bar: #102d25;
  --on-bar: #ffffff;
  --col: #e3e9d9;
  --danger-soft: #fdecec;
  --ok-soft: #e9f7ec;
  --warn-soft: #fff4ec;
  --shadow: 0 6px 24px rgba(16, 45, 37, 0.14);
  --shadow-sm: 0 1px 3px rgba(16, 45, 37, 0.10);
  --radius: 14px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1814; --card: #12241d; --raised: #193026; --field: #0e1d17; --line: #27433a; --ink: #eaf2e4;
    --muted: #9bb3a6; --bar: #08120f; --on-bar: #eaf2e4; --col: #0e1d17; --danger: #ff8787; --info: #74c0fc;
    --danger-soft: #3a1717; --ok-soft: #12301c; --warn-soft: #33210f; --ok: #69db7c; --warn: #ffa94d;
    --shadow: 0 8px 28px rgba(0, 0, 0, 0.5); --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1814; --card: #12241d; --raised: #193026; --field: #0e1d17; --line: #27433a; --ink: #eaf2e4;
  --muted: #9bb3a6; --bar: #08120f; --on-bar: #eaf2e4; --col: #0e1d17; --danger: #ff8787; --info: #74c0fc;
  --danger-soft: #3a1717; --ok-soft: #12301c; --warn-soft: #33210f; --ok: #69db7c; --warn: #ffa94d;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.5); --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { -webkit-font-smoothing: antialiased; min-height: 100dvh; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
h1, h2, h3 { font-family: "Space Grotesk", Inter, sans-serif; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: 24px; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.error { color: var(--danger); font-size: 14px; }
.stack { display: grid; gap: 12px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---------- buttons ---------- */
.btn {
  border: 1px solid var(--line); background: var(--card); border-radius: 11px; display: inline-flex; align-items: center;
  justify-content: center; gap: 7px; padding: 9px 14px; font-weight: 600; cursor: pointer; min-height: 42px;
  text-decoration: none; transition: transform 0.08s, border-color 0.15s; white-space: nowrap;
}
.btn:hover { border-color: var(--muted); }
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--lime); border-color: var(--lime); color: var(--on-lime); }
.btn.dark { background: var(--forest); border-color: var(--forest); color: #fff; }
.btn.danger { color: var(--danger); }
.btn.small { min-height: 34px; padding: 5px 11px; font-size: 13px; border-radius: 9px; }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.link { border: 0; background: none; padding: 4px; min-height: 0; color: var(--muted); text-decoration: underline; }
.chip {
  border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 12px;
  font-size: 13px; font-weight: 600; cursor: pointer; min-height: 34px; white-space: nowrap; color: var(--muted);
}
.chip[aria-pressed="true"] { background: var(--forest); color: var(--lime); border-color: var(--forest); }
.pill { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 600;
  background: var(--raised); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.pill.lime { background: var(--lime); color: var(--on-lime); border-color: var(--lime); }
.pill.red { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.pill.green { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.pill.amber { background: var(--warn-soft); color: var(--warn); border-color: transparent; }

/* ---------- forms ---------- */
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
label.check input { min-height: 0; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--forest); flex: none; }
input, select, textarea {
  border: 1px solid var(--line); border-radius: 11px; padding: 9px 12px; background: var(--field); min-height: 44px;
  font-weight: 400; color: var(--ink); width: 100%; font-size: 16px;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 0.8; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--lime); outline-offset: 1px; }
textarea { min-height: 90px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } }
.yesno { display: flex; gap: 8px; }
.yesno .chip { flex: 1; min-height: 42px; font-size: 15px; }

/* ---------- sign in ---------- */
.login {
  min-height: 100dvh; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(1200px 600px at 20% -10%, #1d4a3c 0%, #102d25 55%, #0a1c17 100%);
}
.login-card {
  width: min(400px, 100%); background: var(--card); border-radius: 22px; padding: 28px 24px;
  display: grid; gap: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.brand-mark { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; font-family: "Space Grotesk", Inter, sans-serif; }
.brand-mark .dot { width: 14px; height: 14px; border-radius: 4px; background: var(--lime); box-shadow: 0 0 0 3px rgba(183, 223, 88, 0.25); }

/* ---------- layout ---------- */
.app { min-height: 100dvh; display: grid; grid-template-columns: 220px minmax(0, 1fr); grid-template-rows: 56px 1fr; }
.topbar {
  grid-column: 1 / -1; background: var(--bar); color: var(--on-bar); display: flex; align-items: center; gap: 12px;
  padding: 0 16px; padding-top: env(safe-area-inset-top); position: sticky; top: 0; z-index: 20;
}
.topbar .who { font-size: 13px; opacity: 0.8; margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav { grid-row: 2; display: flex; flex-direction: column; gap: 4px; padding: 16px 10px; border-right: 1px solid var(--line); background: var(--card); }
.nav button {
  border: 0; background: none; text-align: left; padding: 11px 14px; border-radius: 11px; font-weight: 600; cursor: pointer;
  color: var(--muted); display: flex; align-items: center; gap: 10px; position: relative;
}
.nav button[aria-current="page"] { background: var(--forest); color: var(--lime); }
.nav .count { margin-left: auto; background: var(--lime); color: var(--on-lime); border-radius: 999px; font-size: 11px; padding: 1px 7px; }
.nav svg { width: 19px; height: 19px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.view { grid-row: 2; padding: 22px 24px 40px; min-width: 0; display: grid; gap: 16px; align-content: start; }
.view-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.view-head h1 { margin-right: auto; }

@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: 52px 1fr; }
  .nav {
    position: fixed; bottom: 0; left: 0; right: 0; flex-direction: row; justify-content: space-around; z-index: 30;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line);
  }
  .nav button { flex-direction: column; gap: 3px; font-size: 11px; padding: 6px 4px; flex: 1; align-items: center; text-align: center; }
  .nav .count { position: absolute; top: 2px; right: calc(50% - 22px); margin: 0; }
  .view { padding: 16px 16px calc(96px + env(safe-area-inset-bottom)); }
  h1 { font-size: 21px; }
}

/* ---------- cards and tiles ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 2px; text-align: left; }
button.tile { cursor: pointer; }
.tile .n { font-size: 26px; font-weight: 700; font-family: "Space Grotesk", Inter, sans-serif; }
.tile .l { font-size: 13px; color: var(--muted); font-weight: 600; }
.tile.hot { border-color: var(--lime); box-shadow: inset 4px 0 0 var(--lime); }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.toolbar input[type="search"] { flex: 1 1 220px; width: auto; }
.toolbar select { width: auto; flex: 0 1 190px; }

/* ---------- the pipeline ---------- */
.board {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px;
  overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; align-items: start;
}
.col { background: var(--col); border-radius: var(--radius); padding: 10px; display: grid; gap: 8px; scroll-snap-align: start; min-height: 120px; }
.col-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; padding: 2px 4px 4px; }
.col-head .n { margin-left: auto; color: var(--muted); font-weight: 600; }
.col.closed { opacity: 0.85; }
.person {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 5px;
  cursor: pointer; text-align: left; width: 100%;
}
.person:hover { border-color: var(--muted); }
.person .top { display: flex; gap: 8px; align-items: baseline; }
.person .name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person .age { margin-left: auto; font-size: 12px; color: var(--muted); flex: none; }
.person .meta { font-size: 13px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.empty { color: var(--muted); font-size: 13px; text-align: center; padding: 14px 6px; }
@media (max-width: 860px) { .board { grid-auto-columns: 84%; } }

/* ---------- side panel and pop-ups ---------- */
.shade { position: fixed; inset: 0; background: rgba(6, 18, 14, 0.45); z-index: 50; display: flex; }
.drawer-card {
  margin-left: auto; width: min(560px, 100%); height: 100%; background: var(--bg); overflow-y: auto;
  padding: 0 0 40px; box-shadow: var(--shadow); display: grid; align-content: start;
}
.drawer-head {
  position: sticky; top: 0; background: var(--bg); padding: 16px 18px 12px; padding-top: calc(16px + env(safe-area-inset-top));
  display: flex; gap: 10px; align-items: flex-start; border-bottom: 1px solid var(--line); z-index: 2;
}
.drawer-head h2 { font-size: 21px; }
.drawer-body { padding: 16px 18px; display: grid; gap: 14px; }
.x { border: 0; background: var(--card); border-radius: 50%; width: 38px; height: 38px; font-size: 20px; cursor: pointer; flex: none; margin-left: auto; border: 1px solid var(--line); }
.modal-wrap { align-items: center; justify-content: center; padding: 16px; }
.modal-card {
  width: min(480px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--card); border-radius: 18px;
  padding: 20px; display: grid; gap: 14px; box-shadow: var(--shadow);
}
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 14px; font-size: 14px; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.next { display: grid; gap: 8px; }
.next .row .btn { flex: 1 1 auto; }
.timeline { display: grid; gap: 10px; }
.timeline .item { display: grid; gap: 2px; padding-left: 12px; border-left: 3px solid var(--line); font-size: 14px; }
.timeline .item .when { font-size: 12px; color: var(--muted); }
.note-text { white-space: pre-wrap; }
.slot-pick { display: grid; gap: 8px; }
.slot-pick button { justify-content: space-between; text-align: left; white-space: normal; }

/* ---------- interviews ---------- */
.day { display: grid; gap: 10px; }
.day > h2 { font-size: 16px; color: var(--muted); }
.slot { display: grid; gap: 10px; }
.slot-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.slot-head .time { font-size: 20px; font-weight: 700; font-family: "Space Grotesk", Inter, sans-serif; }
.who-list { display: grid; gap: 6px; }
.who-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 8px 10px; background: var(--raised); border-radius: 10px; }
.who-row .nm { font-weight: 600; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line); background: none; border: 0; padding: 0; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

.linkbox { display: flex; gap: 8px; align-items: center; background: var(--raised); border: 1px solid var(--line); border-radius: 11px; padding: 6px 6px 6px 12px; }
.linkbox code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }

.toast {
  position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 80;
  background: var(--forest); color: #fff; padding: 11px 18px; border-radius: 12px; box-shadow: var(--shadow); font-weight: 600;
  max-width: calc(100% - 32px);
}
.toast.bad { background: var(--danger); }

/* ---------- the email editor ---------- */
.rich-bar { gap: 6px; }
.rich-bar select { width: auto; min-height: 34px; padding: 4px 8px; font-size: 13px; }
.rich {
  min-height: 220px; max-height: 50vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 11px; padding: 14px;
  background: #fff; color: #17362b; font-size: 15px; line-height: 1.55;
}
.rich:focus { outline: 2px solid var(--lime); }
.rich p { margin: 0 0 12px; }

/* ---------- photos ---------- */
.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar.big { width: 72px; height: 72px; }
.empty-avatar { display: grid; place-items: center; background: var(--forest); color: var(--lime); font-weight: 700; font-size: 26px; }

/* ---------- the candidate's pages (apply, booking, form) ---------- */
.public { min-height: 100dvh; background: var(--bg); padding: 0 16px 48px; }
.public-top { background: var(--forest); color: #fff; margin: 0 -16px 24px; padding: 18px 16px; }
.public-top .brand-mark { max-width: 640px; margin: 0 auto; }
.public-card { max-width: 640px; margin: 0 auto; display: grid; gap: 18px; }
.sender { display: flex; gap: 14px; align-items: center; }
.sender img, .sender .empty-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.times { display: grid; gap: 14px; }
.times .day { display: grid; gap: 8px; }
.times .slots { display: flex; flex-wrap: wrap; gap: 8px; }
.times .slots .btn { min-width: 92px; }
.times .slots .btn[aria-pressed="true"] { background: var(--forest); color: var(--lime); border-color: var(--forest); }
.scale { display: flex; gap: 8px; }
.scale .chip { flex: 1; min-height: 44px; font-size: 16px; }
.done-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--lime); color: var(--on-lime); display: grid; place-items: center; font-size: 30px; font-weight: 700; }

/* ---------- home and tasks ---------- */
.home-hero {
  background: radial-gradient(900px 400px at 85% -40%, #1d4a3c 0%, var(--forest) 60%); color: #fff;
  border-radius: 18px; padding: 22px 22px 20px; display: grid; gap: 6px; box-shadow: var(--shadow-sm);
}
.home-hero h1 { font-size: 28px; color: #fff; overflow-wrap: anywhere; }
.home-hero p { color: rgba(255, 255, 255, 0.85); font-weight: 500; }
.home-eyebrow { color: var(--lime); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; }
.home-date { color: rgba(255, 255, 255, 0.6); font-weight: 400; }
.home-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kpi {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 12px;
  display: grid; gap: 4px; text-align: left; cursor: pointer; min-width: 0; box-shadow: var(--shadow-sm);
}
.kpi:hover { border-color: var(--muted); }
.kpi-no { position: absolute; top: 10px; right: 12px; font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 0.06em; }
.kpi-label { font-size: 13px; color: var(--muted); font-weight: 600; padding-right: 22px; }
.kpi-n { font-size: 30px; font-weight: 700; font-family: "Space Grotesk", Inter, sans-serif; line-height: 1.1; }
.kpi-foot { font-size: 12px; display: flex; flex-wrap: wrap; gap: 2px 4px; align-items: baseline; }
.kpi-detail { flex-basis: 100%; }
.kpi-trend { font-weight: 700; white-space: nowrap; }
.kpi-trend.up { color: var(--ok); }
.kpi-trend.down { color: var(--danger); }
.kpi-trend.flat { color: var(--muted); }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.home-col { display: grid; gap: 16px; min-width: 0; }
.home-card h2 { font-size: 17px; }
.attn-list { display: grid; gap: 8px; }
.attn { display: flex; gap: 12px; align-items: center; padding: 10px 12px; background: var(--raised); border-radius: 12px; border: 1px solid var(--line); }
.attn-n {
  flex: none; min-width: 40px; height: 40px; padding: 0 8px; border-radius: 11px; display: grid; place-items: center;
  background: var(--forest); color: var(--lime); font-weight: 700; font-family: "Space Grotesk", Inter, sans-serif; font-size: 17px;
}
.attn-overdue_tasks .attn-n, .attn-call_backs .attn-n { background: var(--lime); color: var(--on-lime); }
.attn-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.attn .btn { flex: none; }
.sched { display: grid; gap: 8px; }
.sched-row { display: flex; gap: 12px; align-items: flex-start; padding: 8px 10px; background: var(--raised); border-radius: 10px; }
.sched-time { font-size: 18px; font-weight: 700; font-family: "Space Grotesk", Inter, sans-serif; min-width: 52px; }
.sched-main { display: grid; gap: 6px; min-width: 0; }
.week-table th, .week-table td { padding: 8px 6px; white-space: normal; }
.week-table td:first-child { width: 100%; }

.task-group { display: grid; gap: 8px; }
.task-group > h2 { font-size: 16px; color: var(--muted); }
.task-group.overdue > h2 { color: var(--danger); }
.card.task-list { padding: 4px 14px; }
.task-list { display: grid; }
.task { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.task:last-child { border-bottom: 0; }
.tick {
  flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--muted); background: var(--card);
  display: grid; place-items: center; cursor: pointer; padding: 0; margin-top: 1px; color: transparent; font-size: 14px; font-weight: 700;
}
.tick:hover { border-color: var(--forest); color: var(--muted); }
.tick[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: var(--on-lime); }
.task-main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.task-title { border: 0; background: none; padding: 0; text-align: left; font-weight: 600; cursor: pointer; overflow-wrap: anywhere; }
.task.done .task-title { text-decoration: line-through; color: var(--muted); }
.task-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 13px; }
.task-who { border: 0; background: none; padding: 0; font-weight: 600; font-size: 13px; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line); }
.task-who.plain { cursor: default; text-decoration: none; }
.task-acts { display: flex; gap: 6px; flex: none; }
.candidate-tasks .task:first-child { padding-top: 4px; }

@media (max-width: 860px) {
  .home-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .home-hero { padding: 18px 16px; }
  .home-hero h1 { font-size: 23px; }
  .kpi-n { font-size: 26px; }
  .task { flex-wrap: wrap; }
  .task-acts { width: 100%; padding-left: 38px; }
}
@media (max-width: 860px) {
  .attn { flex-wrap: wrap; align-items: flex-start; }
  .attn-text { flex-basis: calc(100% - 64px); }
  .attn .btn { margin-left: 52px; }
}

/* ---------- new starts ---------- */
.ns-head { display: grid; gap: 4px; }
.ns-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ns-tools { gap: 10px; padding: 12px; }
.ns-filters { display: flex; gap: 8px 14px; flex-wrap: wrap; align-items: center; }
.ns-chips { gap: 6px; }
.ns-period { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ns-period select { width: auto; min-height: 38px; padding: 6px 10px; font-size: 14px; }
.ns-nav { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ns-nav .lbl { font-weight: 600; font-size: 14px; padding: 0 4px; }
.ns-nav .btn.small { min-width: 36px; font-size: 16px; }
.ns-day { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.ns-day input { width: auto; min-height: 38px; padding: 6px 10px; font-size: 14px; }
.ns-table { padding: 4px 6px; }
.ns-table tbody tr { cursor: pointer; }
.ns-table tbody tr:hover td, .ns-table tbody tr:focus-visible td { background: var(--raised); }
.ns-table tbody tr:focus-visible { outline: 2px solid var(--lime); outline-offset: -2px; }
.ns-table tbody tr:last-child td { border-bottom: 0; }
.ns-table td.nm { font-weight: 600; }
.ns-table td.ns-email { max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.ns-table td.go { color: var(--muted); text-align: right; width: 24px; font-size: 18px; }
.ns-dots { display: inline-flex; gap: 5px; align-items: center; vertical-align: middle; }
.ns-dot { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.ns-dot.on { background: var(--ok); border-color: var(--ok); }
.ns-cards { display: none; gap: 8px; }
.ns-card .meta { gap: 8px; }
@media (max-width: 760px) {
  .ns-table { display: none; }
  .ns-cards { display: grid; }
}
.ns-modal { width: min(620px, 100%); }
.ns-when { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ns-fact { display: grid; gap: 4px; align-content: start; min-width: 0; }
.ns-fact .k { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ns-fact .v { min-height: 44px; display: flex; align-items: center; font-weight: 600; }
.ns-fact input { min-width: 0; }
@media (max-width: 520px) {
  .ns-when { grid-template-columns: 1fr 1fr; }
  .ns-when .ns-fact:first-child { grid-column: 1 / -1; }
  .ns-when .ns-fact:first-child .v { min-height: 0; }
}
.ns-milestones { gap: 8px; }
.ns-ms { display: grid; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); }
.ns-ms.done { border-color: var(--ok); box-shadow: inset 4px 0 0 var(--ok); }
.ns-ms-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ns-ms-top label.check { flex: 1 1 200px; align-items: center; font-weight: 600; }
.ns-ms-top input[type="date"] { width: auto; min-height: 38px; padding: 6px 10px; font-size: 14px; }
.ns-actions .btn { flex: 0 1 auto; }
.ns-mini { gap: 8px; }
