/* Verity design system. Tokens first, then shell, primitives, and page patterns. */
@font-face {
  font-family: Geist;
  src: url("fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy-950: #071230;
  --navy-900: #0c1c47;
  --navy-800: #142a63;
  --sapphire-700: #1a43b0;
  --sapphire-600: #2156dc;
  --sapphire-100: #dfe8fd;
  --sapphire-50: #f0f4fe;
  --cyan: #4fd1e8;

  --ink: #111a2e;
  --ink-2: #414c63;
  --muted: #667089;
  --line: #e3e7ef;
  --line-soft: #eef1f6;
  --bg: #f5f7fb;
  --surface: #fff;

  --green: #0d7a4f;  --green-bg: #dcf6e8;
  --teal: #0b7285;   --teal-bg: #d9f3f7;
  --blue: #1a43b0;   --blue-bg: #dfe8fd;
  --violet: #6431c7; --violet-bg: #eee6fe;
  --amber: #99560a;  --amber-bg: #fdefd5;
  --red: #b42318;    --red-bg: #fde7e4;
  --gray: #4d5870;   --gray-bg: #edf0f5;

  --radius: 12px;
  --radius-s: 8px;
  --shadow-s: 0 1px 2px rgb(16 26 46 / 6%);
  --shadow-m: 0 1px 2px rgb(16 26 46 / 5%), 0 8px 24px rgb(16 26 46 / 6%);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Geist, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--sapphire-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 24px; line-height: 1.2; letter-spacing: -.02em; font-weight: 650; margin: 0; }
h2 { font-size: 15px; letter-spacing: -.005em; font-weight: 620; margin: 0; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.prewrap { white-space: pre-wrap; }
.jd-text { max-width: 90ch; line-height: 1.6; overflow-wrap: anywhere; }
textarea.jd-input { min-height: 240px; line-height: 1.55; }
.icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--sapphire-600); outline-offset: 2px; }

/* Shell */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 18px;
  padding: 20px 14px 14px;
  color: #c4d0ec;
  background: linear-gradient(180deg, var(--navy-900), var(--navy-950));
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; color: #fff; font-size: 19px; font-weight: 650; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 28px; height: 28px; flex: none; }
.btn.upload-cta { width: 100%; justify-content: center; background: var(--sapphire-600); border-color: #3a6cf0; color: #fff; box-shadow: none; }
.btn.upload-cta:hover { background: #2f63e8; border-color: #4f7df5; }
.sidenav { display: flex; flex-direction: column; gap: 2px; flex: 1; min-height: 0; overflow-y: auto; }
.sidenav .group { padding: 14px 10px 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #7f90b8; }
.sidenav .group:first-child { padding-top: 0; }
.sidenav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-s); color: inherit; font-weight: 500; }
.sidenav a:hover { background: rgb(255 255 255 / 7%); color: #fff; text-decoration: none; }
.sidenav a[aria-current="page"] { background: rgb(255 255 255 / 11%); color: #fff; box-shadow: inset 2px 0 0 var(--cyan); }
.sidenav a[aria-current="page"] .icon { color: var(--cyan); }
.account { display: flex; align-items: center; gap: 10px; padding: 12px 8px 2px; border-top: 1px solid rgb(255 255 255 / 10%); }
.account-text { display: flex; flex: 1; flex-direction: column; min-width: 0; line-height: 1.3; }
.account-name, .account-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-name { font-size: 13px; font-weight: 600; color: #eef3ff; }
.account-email { font-size: 11.5px; color: #9db0d8; }
.signout { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: var(--radius-s); background: none; color: #9db0d8; cursor: pointer; }
.signout:hover { background: rgb(255 255 255 / 10%); color: #fff; }
.content { min-width: 0; padding: 28px 36px 56px; }
.content-inner { max-width: 1320px; margin: 0 auto; }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.page-head p { margin-top: 4px; max-width: 72ch; color: var(--muted); }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; color: var(--muted); font-size: 13px; }
.crumbs a { color: var(--ink-2); font-weight: 500; }
.crumbs .sep { color: #a6afc2; }
.section-title { display: flex; align-items: baseline; gap: 8px; margin: 28px 0 12px; font-size: 16px; }
.section-title .count { color: var(--muted); font-weight: 500; font-size: 13px; }

/* Cards and layout */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-s); padding: 20px; margin-bottom: 16px; }
.card > h2 { margin-bottom: 14px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-sub { margin: -8px 0 16px; color: var(--muted); font-size: 13px; }
.grid2, .grid3 { display: grid; gap: 16px 18px; }
.grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.span-all { grid-column: 1 / -1; }
.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.layout-filter { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 16px; align-items: start; }
.stack > * + * { margin-top: 12px; }

/* Forms */
label { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink-2); margin-bottom: 5px; }
input[type=text], input[type=email], input[type=number], input[type=password], input[type=date], input[type=datetime-local], input[type=search], select, textarea {
  display: block; width: 100%; height: 38px; padding: 0 11px;
  font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid #ced4e0; border-radius: var(--radius-s);
  transition: border-color .12s, box-shadow .12s;
}
select {
  appearance: none; padding-right: 30px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23667089' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
}
textarea { height: auto; min-height: 88px; padding: 9px 11px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #98a1b5; }
input:hover, select:hover, textarea:hover { border-color: #aeb7c9; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--sapphire-600); box-shadow: 0 0 0 3px rgb(33 86 220 / 15%); }
input[type=checkbox] { width: 15px; height: 15px; margin: 0; flex: none; accent-color: var(--sapphire-600); }
.check { display: flex; align-items: center; gap: 8px; margin: 0; padding: 4px 0; font-size: 13.5px; font-weight: 400; color: var(--ink); cursor: pointer; }
.check-cell { align-self: end; padding-bottom: 7px; }
.field-link { display: inline-block; margin-top: 5px; font-size: 12.5px; }
.field-stack > * + label, .field-stack > * + .btn { margin-top: 12px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
/* Floating makes the legend a normal block, so a fieldset top border does not cut through it. */
legend { float: left; width: 100%; padding: 0; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
legend + * { clear: both; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 8px; }
.checks-inline { display: flex; flex-wrap: wrap; gap: 2px 18px; }
.savebar {
  position: sticky; bottom: 0; z-index: 2;
  display: flex; gap: 8px; margin: 0 -8px; padding: 12px 8px;
  background: linear-gradient(180deg, rgb(245 247 251 / 0), var(--bg) 30%);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px;
  font: inherit; font-weight: 550; white-space: nowrap; color: var(--ink);
  background: var(--surface); border: 1px solid #ced4e0; border-radius: var(--radius-s);
  box-shadow: var(--shadow-s); cursor: pointer;
  transition: background .12s, border-color .12s;
}
.btn:hover { background: #f7f8fb; border-color: #b4bccc; text-decoration: none; }
.btn.primary { background: var(--sapphire-600); border-color: var(--sapphire-700); color: #fff; }
.btn.primary:hover { background: var(--sapphire-700); }
.btn.danger { color: var(--red); border-color: #efc4bf; }
.btn.danger:hover { background: var(--red-bg); border-color: var(--red); }
.btn.small { height: 31px; padding: 0 10px; font-size: 13px; }
.btn.block { width: 100%; justify-content: center; }
.text-link { padding: 0; border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 500; color: var(--sapphire-600); cursor: pointer; }
form.inline { display: inline; margin: 0; }
.row-actions { display: flex; align-items: center; gap: 6px; }

/* Tables */
.tablewrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-s); }
.card .tablewrap { border: 0; border-radius: 0 0 var(--radius) var(--radius); box-shadow: none; background: none; margin: 0 -20px -20px; }
table { width: 100%; border-collapse: collapse; }
th { padding: 10px 14px; text-align: left; white-space: nowrap; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: #fafbfd; border-bottom: 1px solid var(--line); }
td { padding: 12px 14px; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:not(.empty):hover td { background: #fafbfe; }
td a.strong, .strong { color: var(--ink); font-weight: 600; }
td a.strong:hover { color: var(--sapphire-600); }
td .input-compact { height: 31px; }
.rate-row { display: flex; gap: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rate-row .k { width: 32px; color: var(--muted); font-size: 12px; line-height: 20px; }
.person { display: flex; gap: 10px; min-width: 170px; }
.person-text { min-width: 0; overflow-wrap: anywhere; }

/* Avatars */
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; font-size: 12px; font-weight: 650; letter-spacing: .01em; }
.avatar.lg { width: 60px; height: 60px; font-size: 20px; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.av0 { background: var(--blue-bg); color: var(--blue); }
.av1 { background: var(--violet-bg); color: var(--violet); }
.av2 { background: var(--teal-bg); color: var(--teal); }
.av3 { background: var(--amber-bg); color: var(--amber); }
.av4 { background: var(--green-bg); color: var(--green); }
.av5 { background: #fde6f1; color: #a91e62; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; background: var(--gray-bg); color: var(--ink-2); font-size: 12px; font-weight: 500; white-space: nowrap; }
.chip.status { gap: 5px; border-radius: 99px; font-weight: 600; }
.chip.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.green { background: var(--green-bg); color: var(--green); }
.chip.teal { background: var(--teal-bg); color: var(--teal); }
.chip.blue { background: var(--blue-bg); color: var(--blue); }
.chip.violet { background: var(--violet-bg); color: var(--violet); }
.chip.amber { background: var(--amber-bg); color: var(--amber); }
.chip.red { background: var(--red-bg); color: var(--red); }
.chip.gray { background: var(--gray-bg); color: var(--gray); }
select.status-select { width: 148px; height: 31px; font-weight: 600; font-size: 13px; border-color: transparent; }
select.status-select.green { background-color: var(--green-bg); color: var(--green); }
select.status-select.teal { background-color: var(--teal-bg); color: var(--teal); }
select.status-select.blue { background-color: var(--blue-bg); color: var(--blue); }
select.status-select.violet { background-color: var(--violet-bg); color: var(--violet); }
select.status-select.amber { background-color: var(--amber-bg); color: var(--amber); }
select.status-select.red { background-color: var(--red-bg); color: var(--red); }
select.status-select.gray { background-color: var(--gray-bg); color: var(--gray); }

/* Flash */
.flash { display: flex; align-items: center; gap: 9px; padding: 11px 14px; margin-bottom: 16px; border-radius: 10px; font-weight: 500; }
.flash[hidden] { display: none; }
.flash.ok { background: var(--green-bg); color: #0a5c3c; }
.flash.err { background: var(--red-bg); color: #8e1c13; }

/* Empty states */
.empty td { padding: 44px 20px; text-align: center; color: var(--muted); }
.empty .icon { display: block; width: 34px; height: 34px; padding: 8px; margin: 0 auto 10px; box-sizing: content-box; border-radius: 50%; color: var(--sapphire-600); background: var(--sapphire-50); stroke-width: 1.6; }
.empty strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 14px; font-weight: 600; }

/* Candidate search */
.searchbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.searchbar input[type=search] {
  flex: 1 1 360px; width: auto; height: 44px; padding-left: 40px; font-size: 15px; box-shadow: var(--shadow-s);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23667089' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center;
}
.searchbar .btn { height: 44px; }
.filters { margin: 0; padding: 16px; }
.filters-head { display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; }
.filters-head::-webkit-details-marker { display: none; }
.filters-head .text-link { margin-left: auto; }
.filters[open] .filters-head { margin-bottom: 14px; }
.filters-chevron { display: none; transition: transform .12s; }
.filters[open] .filters-chevron { transform: rotate(180deg); }
.col-skills { min-width: 180px; }
.nowrap { white-space: nowrap; }
.filters fieldset + fieldset, .filters fieldset + .field, .filters .field + .field, .filters .field + .check { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.results-count { margin-bottom: 10px; color: var(--muted); }
.results-count strong { color: var(--ink); font-weight: 650; }
#searchForm.htmx-request #results { opacity: .55; transition: opacity .15s .1s; }

/* Profile */
.profile { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; }
.profile-body { flex: 1 1 320px; min-width: 0; }
.profile-title { margin-top: 2px; font-size: 15px; color: var(--ink-2); }
.meta { display: flex; flex-wrap: wrap; gap: 3px 14px; margin-top: 7px; color: var(--muted); font-size: 13px; }
.profile .chips { margin-top: 12px; }
.facts { display: grid; gap: 12px; margin: 0; }
.facts dt { font-size: 12px; color: var(--muted); }
.facts dd { margin: 1px 0 0; font-weight: 500; overflow-wrap: anywhere; }

/* Users */
.row-inactive td { opacity: .65; }
.field-stack p { margin: 8px 0 0; }

/* Job team */
.tabs { display: flex; gap: 4px; margin-bottom: 12px; }
.tabs a { padding: 6px 12px; border-radius: var(--radius-s); color: var(--ink-2); font-weight: 500; font-size: 13.5px; }
.tabs a:hover { background: var(--gray-bg); text-decoration: none; }
.tabs a.active { background: var(--sapphire-100); color: var(--sapphire-700); font-weight: 600; }
.person.assignee { min-width: 150px; align-items: center; margin-bottom: 4px; }

/* Candidate history */
.card-title-count .count { color: var(--muted); font-weight: 500; font-size: 13px; }
.timeline-scroll { max-height: 560px; overflow-y: auto; padding-right: 6px; }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { position: relative; padding: 0 0 16px 18px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 3.5px; top: 12px; bottom: -4px; width: 1px; background: var(--line); }
.timeline-dot { position: absolute; left: 0; top: 6px; width: 8px; height: 8px; border-radius: 50%; }
.timeline-dot.green { background: var(--green); }
.timeline-dot.teal { background: var(--teal); }
.timeline-dot.blue { background: var(--blue); }
.timeline-dot.violet { background: var(--violet); }
.timeline-dot.amber { background: var(--amber); }
.timeline-dot.red { background: var(--red); }
.timeline-dot.gray { background: #a6afc2; }
.timeline-title { font-weight: 600; font-size: 13.5px; overflow-wrap: anywhere; }
.timeline-detail { margin-top: 1px; font-size: 12.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.timeline-meta { margin-top: 2px; font-size: 12px; color: var(--muted); }

/* Job detail and match scores */
.job-eyebrow { color: var(--sapphire-600); font-size: 13px; font-weight: 600; }
.score { --p: 0; --tone: var(--gray); position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: conic-gradient(var(--tone) calc(var(--p) * 1%), var(--line) 0); }
.score::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--surface); }
.score b { position: relative; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--tone); }
.score.green { --tone: var(--green); }
.score.amber { --tone: #c9780f; }
.score.red { --tone: var(--red); }
.footnote { margin-top: 10px; max-width: 95ch; font-size: 12.5px; color: var(--muted); }
.margin-good { color: var(--green); font-weight: 600; }

/* Dashboard */
.kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-s); transition: border-color .12s, box-shadow .12s; }
.kpi:hover { border-color: #b7c6ee; box-shadow: var(--shadow-m); text-decoration: none; }
.kpi-label { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.kpi-label .icon { color: var(--sapphire-600); }
.kpi-value { margin-top: 6px; font-size: 32px; line-height: 1.15; font-weight: 650; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.kpi-note { font-size: 12.5px; color: var(--muted); }
.kpi.attention { background: #fffaf0; border-color: #f2d9a8; }
.kpi.attention:hover { border-color: #e2b865; }
.kpi.attention .kpi-label .icon { color: var(--amber); }
.card-head h2 { margin: 0; }
.pipeline, .queue { margin: 0; padding: 0; list-style: none; }
.pipeline li + li { margin-top: 13px; }
.pipeline-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-2); }
.pipeline-count { font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.pipeline-track { height: 8px; margin-top: 4px; }
.pipeline-track span { display: block; height: 100%; border-radius: 4px; background: var(--sapphire-600); }
.queue li { display: flex; align-items: center; gap: 10px; }
.queue li + li { margin-top: 12px; }

/* Upload */
.dropzone { position: relative; padding: 36px 20px; text-align: center; background: var(--sapphire-50); border: 1.5px dashed #a9bdf2; border-radius: var(--radius); transition: background .12s, border-color .12s; }
.dropzone:hover, .dropzone:focus-within { background: var(--sapphire-100); border-color: var(--sapphire-600); }
.dropzone input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone .icon { display: block; width: 26px; height: 26px; margin: 0 auto 8px; color: var(--sapphire-600); }
.dropzone-title { font-size: 15px; font-weight: 600; }
.dropzone-sub { margin-top: 2px; color: var(--muted); font-size: 13px; }
.dropzone.has-files { background: var(--green-bg); border-color: var(--green); }
.dropzone.has-files .icon, .dropzone.has-files .dropzone-title { color: #0a5c3c; }

/* Login */
.login-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); min-height: 100vh; background: var(--surface); }
.login-form { display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 420px; margin: 0 auto; padding: 40px 28px; }
.login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 36px; font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.login-brand svg { width: 30px; height: 30px; }
.login-form h1 { margin-bottom: 4px; }
.login-form > p { margin-bottom: 22px; color: var(--muted); }
.login-form input { height: 42px; }
.login-form .btn { height: 42px; margin-top: 18px; }
.login-form a.btn { justify-content: center; }
.login-note { margin: 10px 0 24px; text-align: center; }
.emergency summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.emergency form { margin-top: 14px; }
.login-panel { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 56px; overflow: hidden; color: #cdd9f3; background: radial-gradient(circle at 85% 12%, #2a56c6 0, transparent 46%), radial-gradient(circle at 8% 95%, #0f5f83 0, transparent 40%), var(--navy-950); }
.login-panel h2 { max-width: 15em; color: #fff; font-size: 34px; line-height: 1.14; letter-spacing: -.025em; font-weight: 620; }
.login-points { max-width: 30em; margin: 32px 0 0; padding: 0; list-style: none; }
.login-points li { display: flex; gap: 12px; margin-top: 16px; }
.login-points .icon { width: 20px; height: 20px; margin-top: 1px; color: var(--cyan); }
.login-points b { display: block; color: #fff; font-weight: 600; }

/* Error page */
.notice { max-width: 480px; margin: 9vh auto 0; padding: 32px; text-align: center; }
.notice h1 { margin-bottom: 6px; }
.notice .page-actions { justify-content: center; margin-top: 20px; }

/* Below this width the results table needs the room more than a filter column does. */
@media (max-width: 1360px) {
  .layout-filter { grid-template-columns: minmax(0, 1fr); }
  .filters-chevron { display: block; }
  .check-grid { grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); }
}
@media (max-width: 1100px) {
  .layout-side { grid-template-columns: minmax(0, 1fr); }
  .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; height: auto; flex-flow: row wrap; align-items: center; gap: 10px; padding: 12px 16px; }
  .brand { padding: 0; margin-right: auto; }
  .btn.upload-cta { width: auto; height: 34px; order: 2; }
  .account { order: 3; padding: 0; border: 0; }
  .account .avatar, .account-text { display: none; }
  .sidenav { order: 4; flex: 0 0 100%; flex-direction: row; overflow-x: auto; }
  .sidenav .group { display: none; }
  .sidenav a { white-space: nowrap; }
  .sidenav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--cyan); }
  .content { padding: 20px 16px 40px; }
  .login-page { grid-template-columns: minmax(0, 1fr); }
  .login-panel { display: none; }
}
@media (max-width: 560px) {
  .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Client email templates keep their own styling, so the app's table styles are undone here. */
.email-sheet { overflow-x: auto; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); color: #000; font-family: Arial, Helvetica, sans-serif; font-size: 14px; }
.email-sheet table { width: auto; border-collapse: separate; }
.email-sheet th, .email-sheet td { padding: 1px; text-align: left; white-space: normal; vertical-align: middle; font: inherit; letter-spacing: normal; text-transform: none; color: inherit; background: transparent; border: 0; }
/* Cell outlines while editing, so cells without borders can still be found. */
.email-sheet.editor td, .email-sheet.editor th { outline: 1px dotted #c4cad6; }
.email-sheet tbody tr:hover td { background: transparent; }
.email-sheet.editor { min-height: 320px; max-height: 70vh; overflow: auto; }
.email-sheet.editor:focus { outline: 0; border-color: var(--sapphire-600); box-shadow: 0 0 0 3px rgb(33 86 220 / 15%); }
.field-inserter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-bottom: 12px; }
.field-inserter .grow { flex: 1; min-width: 220px; }
input.missing { border-color: #d99a2b; background: #fffaf0; }
.attach-list { list-style: none; padding: 0; }
.attach-list li { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.attach-list input { width: auto; margin: 0; }
.round-edit { margin-top: 8px; }
.round-edit summary { cursor: pointer; }
.round-edit form { margin-top: 10px; }
#add-round .grid2 + label, #outcome .grid2 + label, .round-edit .grid2 + label { display: block; margin-top: 16px; }
#add-round textarea + label, .round-edit textarea + label { display: block; margin-top: 12px; }

/* Job page: a short summary, then one section at a time. */
.job-summary .card-head { margin-bottom: 12px; }
.facts-line { display: flex; flex-wrap: wrap; margin: 6px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 13.5px; }
.facts-line li + li::before { content: "·"; margin: 0 8px; color: var(--muted); }
.disclosure > summary { width: fit-content; cursor: pointer; color: var(--sapphire-600); font-size: 13px; font-weight: 600; }
#requirements { margin-top: 12px; }
.requirements { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px 24px; margin: 12px 0 0; }
.requirements dt { font-size: 12px; color: var(--muted); }
.requirements dd { margin: 2px 0 0; font-size: 13.5px; overflow-wrap: anywhere; }
.team-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.team { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; }
.team .person { align-items: center; min-width: 0; }
.team-manage[open] { flex-basis: 100%; }
.assignment-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 12px; }
.assignment-form fieldset { flex: 1 1 100%; min-width: 0; }
.assignment-form .grow { flex: 1 1 220px; }
.assignment-note { margin-top: 8px; }
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker, .submit-box > summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; padding: 8px; white-space: nowrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); box-shadow: 0 8px 24px rgb(15 23 42 / 14%); }
.tabbar { display: flex; gap: 4px; margin: 20px 0 12px; border-bottom: 1px solid var(--line); }
.tabbar[hidden] { display: none; }
.tabbar button { padding: 9px 14px; margin-bottom: -1px; font: inherit; font-size: 14px; font-weight: 500; color: var(--ink-2); background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; }
.tabbar button[aria-selected=true] { color: var(--sapphire-700); border-bottom-color: var(--sapphire-600); font-weight: 600; }
.tabbar .count { margin-left: 4px; color: var(--muted); font-weight: 500; font-size: 12.5px; }
/* With tabs showing, the tab is the heading. */
.tabbed .section-title { display: none; }
table.matches td { vertical-align: middle; padding-top: 14px; padding-bottom: 14px; }
.skills-cell { max-width: 340px; white-space: normal; }
.missing-skills { color: var(--amber); }
.submit-cell { text-align: right; }
.submit-box > summary { display: inline-flex; list-style: none; }
.submit-box[open] > summary { display: none; }
.submit-box form { justify-content: flex-end; }
.submit-box label { margin: 0; }
.submit-box input { width: 100px; }
td .text-link + .text-link { margin-left: 14px; }

/* Admin activity log */
.activity-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.activity-filters > div { width: 180px; }
.activity-filters .check { height: 38px; }
.activity-filters .btn { height: 38px; }
.activity-filters .text-link { line-height: 38px; }
.record-filter { margin-bottom: 12px; }
.activity-table .activity-action { white-space: normal; overflow-wrap: anywhere; }
.pager { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
