/* The GS Group CRM: the one stylesheet (the "Pro" look Anthony approved on 19 Sep 2026, the reference
   being gaze-crm-design/looks/gaze-pro.html, then moved a touch towards the GS Group website the same
   day: "this will now just be crm, not gaze ... make it look a touch more GS. keep the current font").

   Restrained and data-first: hairline borders, corners of 6px at most and square buttons, square
   progress segments, no gradients, no pastel bubbles, no pill buttons and no drop shadows (the Place
   sheet is the one exception). From the website: the navy (#1a1a2e) for ink, the menu and the filled
   button, the sage (#a3c1ad / #8fb39a) as the accent, and the notched bottom-left corner on filled
   buttons. Instrument Sans for text, Geist Mono for numbers, dates, money and phone numbers (the CRM's
   own fonts, kept on purpose; the website uses DM Sans).

   Light only, for everyone (Anthony: "default mode is always light colour, for all users"): nothing
   here follows the operating system's dark mode.

   The old token names (--surface, --text-3, --accent...) are kept and mapped onto the new palette,
   so page styles that still use them fall in line without each being rewritten. */

:root {
  color-scheme: light;
  /* the palette */
  --paper: #ffffff;
  --sub: #f7f7f8;
  --line: #e7e8eb;
  --line2: #f0f1f3;
  --line-strong: #d3d6db;
  --ink: #1a1a2e;          /* the website's navy: text, filled buttons, progress */
  --ink2: #4f5561;         /* the website's slate */
  --ink3: #7c8190;
  /* GS Group (gs-group.io css/styles.css) */
  --navy: #1a1a2e;
  --navy-2: #252542;       /* hover and the active menu item */
  --navy-line: rgba(255, 255, 255, .09);
  --on-navy: rgba(255, 255, 255, .92);
  --on-navy-2: rgba(255, 255, 255, .68);
  --on-navy-3: rgba(255, 255, 255, .46);
  --sage: #a3c1ad;
  --sage-dark: #8fb39a;
  --sage-soft: #eef4f0;
  --attn: #f2c46d;         /* attention counts on the navy menu (amber, readable on navy) */
  --help-red: #ef5a4c;     /* the IT Helpdesk item's accent: a red readable on the navy menu (5:1) */
  --notch: 10px;           /* the website's cut bottom-left corner, scaled to a 32px button */
  --ok: #1f7a4a;   --ok-bg: #e9f5ee;
  --warn: #9a6300; --warn-bg: #fbf3e3;
  --info: #2b58c9; --info-bg: #edf2fd;
  --bad: #b3362a;  --bad-bg: #fbeeec;
  --font: "Instrument Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --mono: var(--font-mono);

  /* the old names, mapped */
  --bg: var(--paper);
  --surface: var(--paper);
  --surface-2: var(--sub);
  --surface-3: var(--line2);
  --border: var(--line);
  --border-strong: var(--line-strong);
  --text: var(--ink);
  --text-2: var(--ink2);
  --text-3: var(--ink3);
  --text-muted: var(--ink3);
  --accent: var(--ink);
  --accent-hover: var(--navy-2);
  --accent-soft: var(--sage-soft);
  --success: var(--ok);
  --success-soft: var(--ok-bg);
  --success-border: #bddcc9;
  --danger: var(--bad);
  --danger-soft: var(--bad-bg);
  --danger-border: #eac3bd;
  --warning: var(--warn);
  --warning-soft: var(--warn-bg);
  --shadow-xs: none; --shadow-sm: none; --shadow-md: none; --shadow-lg: none; --shadow-xl: none;
  --radius-sm: 4px; --radius-md: 6px; --radius-lg: 6px; --radius-xl: 6px; --radius-pill: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dd { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

html { background: var(--paper); }
body {
  font: 13.5px/1.45 var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
a { color: inherit; text-underline-offset: 2px; text-decoration-color: var(--line-strong); }
a:hover { text-decoration-color: var(--sage-dark); }
::selection { background: rgba(163, 193, 173, .45); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--navy); }
strong, b { font-weight: 600; }
.mono, .num-mono, code, kbd {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.mono { font-size: .93em; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* ================================================================ app shell */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; position: relative; }
/* the sidebar's column runs the whole height of a long page, behind the sticky sidebar */
.shell::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 232px; background: var(--navy); }
.sidebar, .main { position: relative; }

/* The menu: the website's navy, the white GS Group logo, sage for where you are. */
.sidebar {
  background: var(--navy); color: var(--on-navy);
  display: flex; flex-direction: column; padding: 16px 10px 0;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  scrollbar-color: rgba(255, 255, 255, .18) transparent;
}
.sidebar :focus-visible { outline-color: var(--sage); }
.dev-on .sidebar { top: 22px; height: calc(100vh - 22px); }
/* The banner is 22px of page above the shell, so without this every page on dev scrolls by that much. */
.dev-on .shell { min-height: calc(100vh - 22px); }
body.dev-on { min-height: calc(100vh - 22px); }
.ws { display: flex; align-items: center; gap: 12px; padding: 4px 10px 18px; text-decoration: none; color: var(--on-navy); }
.ws-logo { display: block; height: 32px; width: auto; flex: none; }
.ws-app {
  font: 600 10.5px/1 var(--font); letter-spacing: .18em; text-transform: uppercase; color: var(--sage);
  padding: 3px 0 3px 12px; border-left: 1px solid rgba(255, 255, 255, .22);
}

/* group labels: small capitals with the website nav's tracking */
.grp { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--on-navy-3); padding: 12px 10px 6px; }
.nav-section { display: flex; flex-direction: column; gap: 1px; }
.nav-link {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 0;
  color: var(--on-navy-2); font-weight: 500; font-size: 13.5px; text-decoration: none; border: 0; background: none;
}
.nav-link svg { width: 16px; height: 16px; flex: none; opacity: .85; color: currentColor; }
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.nav-link.active { background: var(--navy-2); color: #fff; box-shadow: none; }
.nav-link.active::before { content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 2px; background: var(--sage); }
.nav-link.active svg { color: var(--sage); opacity: 1; }
.nav-count, .cnt { margin-left: auto; font: 500 11.5px var(--font-mono); color: var(--on-navy-2); background: none; padding: 0; min-width: 0; }
.nav-count.alert, .cnt.alert { color: var(--attn); }
.nav-tag { margin-left: auto; font-size: 10.5px; padding: 0 5px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 3px; color: var(--on-navy-3); }
.nav-group-btn { width: 100%; text-align: left; cursor: pointer; }
.nav-group-caret { margin-left: auto; width: 11px !important; height: 11px !important; transition: transform 120ms; }
.nav-group-btn[aria-expanded="true"] .nav-group-caret { transform: rotate(90deg); }
.nav-group-items { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 2px 18px; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .12); }
.nav-sub { display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 0; font-size: 13px; color: var(--on-navy-2); text-decoration: none; }
.nav-sub:hover { color: #fff; }
.nav-sub.active { color: #fff; background: var(--navy-2); box-shadow: inset 2px 0 0 var(--sage); }
.nav-sub-2 { padding-left: 22px; font-size: 12.5px; }
.sb-gap { flex: 1; min-height: 16px; }
/* IT Helpdesk at the foot of the menu, above the signed-in person: a red rail and icon. */
.nav-help { margin-bottom: 8px; }
.nav-link-help { color: var(--on-navy); }
.nav-link-help::before { content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 2px; background: var(--help-red); }
.nav-link-help svg { color: var(--help-red); opacity: 1; }
.nav-link-help:hover { background: rgba(239, 90, 76, .10); }
.nav-link-help.active { background: rgba(239, 90, 76, .16); }
.nav-link-help.active::before { background: var(--help-red); }
.nav-link-help.active svg { color: var(--help-red); }

.me { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--navy-line); margin: 0 -10px; padding: 12px 10px 12px 18px; }
.sq { width: 24px; height: 24px; border-radius: 0; background: var(--sage); color: var(--navy); display: grid; place-items: center; font-size: 10.5px; font-weight: 700; flex: none; }
.me-photo { display: block; border-radius: 6px; object-fit: cover; background: var(--sage); }
.me-text { flex: 1; min-width: 0; line-height: 1.3; }
.me-name { font-weight: 500; font-size: 13px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-sub { display: block; color: var(--on-navy-3); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn {
  width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid transparent; background: transparent;
  color: var(--ink3); border-radius: 4px; cursor: pointer; text-decoration: none; flex: none; padding: 0;
}
.icon-btn:hover { color: var(--ink); border-color: var(--line); background: var(--paper); }
.sidebar .icon-btn { color: var(--on-navy-3); }
.sidebar .icon-btn:hover { color: #fff; border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); }
.signout-form { display: flex; flex: none; margin: 0; }

.main { min-width: 0; display: flex; flex-direction: column; position: relative; }
/* The top bar stays at the top of the main column at every width, like the sidebar (Anthony, 19 Sep 2026),
   under the DEV banner on dev. The floating save bar's anchor sits just under it. */
.bar {
  display: flex; align-items: center; gap: 14px; padding: 0 24px; height: 48px; flex: none;
  border-bottom: 1px solid var(--line); color: var(--ink3); font-size: 13px; background: var(--paper);
  position: sticky; top: 0; z-index: 50;
}
.dev-on .bar { top: 22px; }
/* Links to a part of a page (#candidates) and scrollIntoView land below the sticky bars. */
html { scroll-padding-top: 60px; }
html:has(body.dev-on) { scroll-padding-top: 82px; }

/* The one search, far left in the top bar (static/search.js) */
.gsearch { position: relative; flex: 0 1 360px; min-width: 0; margin: 0; }
.gsearch-open, .gsearch-close { display: none; }
.gsearch-box { position: relative; display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 6px 0 10px;
  border: 1px solid var(--line-strong); border-radius: 4px; background: var(--sub); color: var(--ink3); }
.gsearch-box:focus-within { border-color: var(--navy); background: var(--paper); box-shadow: 0 0 0 3px rgba(163, 193, 173, .35); }
.gsearch-icon { flex: none; }
.gsearch input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: 400 13px var(--font); color: var(--ink); padding: 0; }
.gsearch input::placeholder { color: var(--ink3); }
.gsearch input::-webkit-search-cancel-button { display: none; }
.gsearch kbd { font: 500 10.5px var(--font-mono); border: 1px solid var(--line-strong); border-radius: 3px; padding: 0 5px; color: var(--ink3); line-height: 16px; flex: none; }
.gsearch-box:focus-within kbd { display: none; }
.gsearch-drop { position: absolute; top: calc(100% + 6px); left: -1px; width: max(100%, 440px); max-width: calc(100vw - 32px); z-index: 80;
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 16px 40px -16px rgba(26, 26, 46, .38); overflow: hidden; }
.gsearch-drop[hidden] { display: none; }
.gsearch-list { list-style: none; margin: 0; padding: 4px 0; max-height: 60vh; overflow-y: auto; }
.gsearch-list li a { display: flex; align-items: flex-start; gap: 10px; padding: 8px 12px; text-decoration: none; color: var(--ink); }
.gsearch-list li.active a { background: var(--sub); box-shadow: inset 2px 0 0 var(--sage-dark, #8fb39a); }
.gsearch-list .gsearch-note { padding: 12px; color: var(--ink2); font-size: 13px; }
.gs-type { flex: none; width: 72px; margin-top: 1px; font: 500 10.5px var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink3); }
.gs-type.gs-job { color: var(--navy); }
.gs-text { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.gs-title { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-sub { font-size: 12px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gsearch-foot { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--line2); font-size: 12.5px; }
.gsearch-foot a { color: var(--navy); font-weight: 500; }
.gs-keys { color: var(--ink3); font-size: 11.5px; }
.crumbs { display: flex; align-items: center; gap: 10px; min-width: 0; overflow: hidden; white-space: nowrap; }
.crumbs a { color: var(--ink3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs b { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.crumbs .sep { opacity: .6; }
.crumbs .crumb-top { color: var(--ink3); }
.crumbs .crumb-app { color: var(--ink3); text-decoration: none; }
.crumbs .crumb-app:hover { color: var(--ink); }
@media (max-width: 900px) { .crumbs .crumb-top { display: none; } }
.bar-right { margin-left: auto; display: flex; gap: 14px; align-items: center; flex: 0 1 auto; min-width: 0; }
.topbar-bell { flex: none; }

/* The company's latest deal, where the date was (Anthony, 19 Sep 2026; static/latest_deal.js). */
.ld-slot { display: flex; min-width: 0; height: 48px; }
.ld { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 420px; height: 100%; padding: 0 0 0 14px;
  border-left: 1px solid var(--line); color: var(--ink2); text-decoration: none; font-size: 12px; line-height: 1.3; }
a.ld:hover { background: var(--sub); }
a.ld:hover .ld-job { color: var(--ink); }
.ld-pic { position: relative; flex: none; display: grid; }
.ld-pic .sq { width: 28px; height: 28px; font-size: 10.5px; object-fit: cover; }
.ld-pic:has(.ld-more) { margin-right: 6px; }
.ld-more { position: absolute; right: -8px; bottom: -4px; min-width: 16px; height: 14px; padding: 0 3px; background: var(--navy);
  color: #fff; font: 600 9px/14px var(--font-mono); text-align: center; }
.ld-text { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.ld-top { display: flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; }
.ld-label { flex: none; font: 600 9.5px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--sage-dark); }
.ld-names { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.ld-job { color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-nums { display: flex; flex-direction: column; align-items: flex-end; flex: none; gap: 1px; font-family: var(--font-mono); }
.ld-amt { color: var(--navy); font-weight: 600; font-size: 12.5px; }
.ld-time { color: var(--ink3); font-size: 11px; font-variant-numeric: tabular-nums; min-width: 9ch; text-align: right; }
.ld-dot { position: relative; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--sage-dark); }
.ld.is-new .ld-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--sage-dark);
  animation: ld-pulse 1.6s ease-out infinite; }
@keyframes ld-pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(3); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ld.is-new .ld-dot::after { animation: none; display: none; } }
.ld-none { gap: 8px; color: var(--ink3); white-space: nowrap; }
/* Latest deal: a tinted strip with an always-pulsing green label; click opens the details pop-up (19 Sep 2026) */
.ld-slot { align-items: center; }
button.ld { font: inherit; text-align: left; cursor: pointer; }
.ld:not(.ld-none) { height: 38px; margin: 5px 0; padding: 0 12px 0 10px; background: #eef5f0; border: 1px solid transparent;
  border-radius: 6px; color: inherit; transition: background .15s ease, border-color .15s ease; }
.ld:not(.ld-none):hover { background: #e3eee6; }
.ld:not(.ld-none):focus-visible { outline: 2px solid var(--sage-dark); outline-offset: 2px; }
.ld-label { color: #2f8a55; animation: ld-label-pulse 1.8s ease-in-out infinite; }
@keyframes ld-label-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.ld:not(.ld-none) .ld-dot { background: #2f8a55; }
.ld:not(.ld-none) .ld-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #2f8a55;
  animation: ld-dot-ring 1.8s ease-out infinite; }
@keyframes ld-dot-ring { from { transform: scale(1); opacity: .6; } to { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ld-label, .ld:not(.ld-none) .ld-dot::after { animation: none; } }
.ld-dlg { padding: 0; border: 1px solid var(--line); border-radius: 8px; width: min(440px, calc(100vw - 32px));
  box-shadow: 0 24px 60px -12px rgba(26, 26, 46, .45); color: var(--ink); }
.ld-dlg::backdrop { background: rgba(26, 26, 46, .45); }
.ld-dlg[open] { animation: ld-dlg-in 200ms cubic-bezier(.2, .9, .3, 1.1); }
@keyframes ld-dlg-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.ld-dlg-card { padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 6px; }
.ld-dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ld-dlg-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 7px; background: #eef5f0;
  border-radius: 4px; }
.ld-dlg-tag .ld-dot { background: #2f8a55; }
.ld-dlg-time { font-family: var(--font-mono); font-size: 12px; color: var(--ink3); font-variant-numeric: tabular-nums; }
.ld-dlg-title { margin: 8px 0 0; font-size: 18px; font-weight: 600; line-height: 1.25; }
.ld-dlg-sub { margin: 0; color: var(--ink3); font-size: 13.5px; }
.ld-dlg-amt { margin: 8px 0 4px; font: 600 28px/1.1 var(--font-mono); color: var(--navy); letter-spacing: -.02em; }
.ld-rows { display: flex; flex-direction: column; border-top: 1px solid var(--line2, #f0f1f3); margin-top: 4px; }
.ld-row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line2, #f0f1f3);
  font-size: 13.5px; }
.ld-row-k { color: var(--ink3); }
.ld-split { display: flex; flex-direction: column; gap: 4px; }
.ld-split-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ld-face { flex: none; display: grid; }
.ld-face .sq { width: 64px; height: 64px; font-size: 20px; object-fit: cover; border-radius: 8px; }
.ld-split { gap: 12px; }
.ld-split-row { gap: 14px; flex-wrap: nowrap; }
.ld-split-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ld-split-name { font-size: 15px; }
.ld-row:has(.ld-split) { align-items: center; }
.ld-split-name { font-weight: 600; }
.ld-split-meta { color: var(--ink3); font-family: var(--font-mono); font-size: 12px; }
.ld-split-amt { margin-left: auto; font-family: var(--font-mono); font-size: 12.5px; }
.ld-dlg-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }

.ld-none .ld-dot { background: var(--line-strong); }
@media (max-width: 1180px) { .ld-label { display: none; } }
.topbar-bell { display: inline-flex; align-items: center; gap: 6px; color: var(--ink2); text-decoration: none; }
.nav-toggle { display: none; }
.nav-scrim { display: none; }

/* ================================================================ page frame */
.page-header, .ph {
  padding: 22px 24px 0; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-start; justify-content: space-between;
  background: none; border: 0;
}
.page-title, .ph h1 { font-size: 21px; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; text-wrap: balance; }
.page-subtitle, .sub1 { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--ink2); font-size: 13px; }
.page-subtitle { display: block; }
.sub1 .k { color: var(--ink3); }
.page-header > .row, .acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.page-body { padding: 18px 24px 32px; flex: 1; min-width: 0; }
/* pages whose content sits straight under the header, without a page-body */
.main > .panel, .main > .edit-grid, .main > .table-wrap, .main > form, .main > section, .main > .edit-page > .panel,
.edit-page > .edit-grid, .main > .settings-body { margin-left: 24px; margin-right: 24px; }
.main > .page-header + .panel, .main > .page-header + form, .edit-page > .page-header + .panel,
.edit-page > .page-header + .edit-grid, .main > .page-header + .edit-grid { margin-top: 18px; }
.main > .panel:last-child, .main > .edit-grid:last-child, .edit-page > .edit-grid:last-child { margin-bottom: 32px; }

.tabbar { display: flex; gap: 2px; padding: 0 24px; border-bottom: 1px solid var(--line); overflow-x: auto; background: none; }
.tabbar .tab, .tabs a {
  padding: 8px 12px 10px; color: var(--ink2); font-weight: 500; font-size: 13.5px; text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -1px; display: flex; gap: 7px; align-items: center;
}
.tabbar .tab:hover, .tabs a:hover { color: var(--ink); }
.tabbar .tab.on, .tabs a.on { color: var(--ink); border-bottom-color: var(--ink); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs a .mono { color: var(--ink3); font-size: 12px; }
.tabs a .mono.alert { color: var(--warn); font-weight: 600; }

.flashes { padding: 14px 24px 0; display: flex; flex-direction: column; gap: 8px; }
.flash {
  padding: 9px 12px; border-radius: 6px; font-size: 13px; display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
}
.flash::before { content: ""; width: 6px; height: 6px; border-radius: 50%; flex: none; background: var(--ink3); }
.flash-success::before { background: var(--ok); }
/* A neutral box with a coloured dot, whatever the message (no coloured edges, Anthony 28 Oct 2026). */
.flash-report { margin-left: 6px; font-weight: 600; color: var(--bad); text-decoration: underline; white-space: nowrap; }
.flash-error::before { background: var(--bad); }
.flash-info::before { background: var(--info); }
.flash-warning::before { background: var(--warn); }

.dev-banner {
  position: sticky; top: 0; z-index: 1000; height: 22px; display: flex; align-items: center; justify-content: center;
  background: #8a5a00; color: #fff; font: 500 11.5px/1 var(--font); letter-spacing: .02em; padding: 0 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dev-banner b { font: 600 10.5px var(--font-mono); letter-spacing: .08em; margin-right: 8px; }

/* ================================================================ buttons */
.btn, .b {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 12px; border-radius: 0;
  border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink);
  font: 500 13px/1 var(--font); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: border-color 100ms, background-color 100ms, opacity 160ms; box-shadow: none;
}
.btn:hover, .b:hover { border-color: var(--ink); background: var(--paper); }
.btn:focus-visible, .b:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; box-shadow: none; }
/* Filled buttons: square, with the website's cut bottom-left corner. The cut would clip an outside
   focus ring, so a filled button shows its focus as an inside sage ring instead. */
.btn-primary, .b.p, .btn-alert, .b.acc {
  clip-path: polygon(0 0, 100% 0, 100% 100%, var(--notch) 100%, 0 calc(100% - var(--notch)));
  padding-left: 14px; padding-right: 14px;
}
.btn-primary, .b.p { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover, .b.p:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn-primary:focus-visible, .b.p:focus-visible, .btn-alert:focus-visible, .b.acc:focus-visible {
  outline: none; box-shadow: inset 0 0 0 2px var(--sage), inset 0 0 0 3px var(--navy);
}
/* Approve: the sage of the website with navy text (7:1). */
.btn-alert, .b.acc { background: var(--sage-dark); color: var(--navy); border-color: var(--sage-dark); font-weight: 600; }
.btn-alert:hover, .b.acc:hover { background: var(--sage); border-color: var(--sage); }
.btn-danger { color: var(--bad); background: var(--paper); border-color: var(--line-strong); }
.btn-danger:hover { border-color: var(--bad); background: var(--paper); }
.btn-ghost, .b.t { background: transparent; border-color: transparent; color: var(--ink2); }
.btn-ghost:hover, .b.t:hover { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 0; --notch: 8px; }
.btn-sm.btn-primary, .btn-sm.btn-alert { padding-left: 12px; padding-right: 12px; }
.btn-block { width: 100%; }
/* A disabled button has to look disabled, or people keep clicking it (Anthony, 23 Sep 2026:
   grey out Add candidate once every position is placed). .gate.idle sets its own. */
.btn:disabled, .btn[disabled] { cursor: default; opacity: .45; }
.btn.gate:disabled, .btn.gate[disabled] { opacity: 1; }
.btn kbd, .b kbd { font: 500 11px var(--font-mono); opacity: .6; }
button.linkish { border: 0; background: none; padding: 0; color: inherit; font: inherit; cursor: pointer; text-align: left; }
button.linkish:hover { text-decoration: underline; text-decoration-color: var(--line-strong); }

/* Save / Discard: dead until something differs, then a short fade in. */
.gate { transition: opacity 160ms ease; }
.gate.idle { opacity: .35; pointer-events: none; cursor: default; filter: none; transform: none; }
.gate-hint { align-self: center; transition: opacity 160ms ease; color: var(--ink3); font-size: 12px; }
.gate-hint.gone { opacity: 0; }

/* ================================================================ inputs */
.input, .select, .in, textarea.input {
  width: 100%; height: 34px; padding: 0 10px;
  border: 1px solid var(--line-strong); border-radius: 4px; background: var(--paper); color: var(--ink);
  font: 400 13.5px var(--font); box-shadow: none; transition: border-color 100ms;
}
textarea.input { height: auto; min-height: 64px; padding: 8px 10px; line-height: 1.45; resize: vertical; }
.input::placeholder, textarea::placeholder { color: var(--ink3); }
.input:hover, .select:hover { border-color: var(--ink3); }
.input:focus, .select:focus, textarea.input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(163, 193, 173, .35); }
.input:disabled, .select:disabled { background: var(--sub); color: var(--ink2); }
input[type="date"].input, input[type="number"].input, .input[inputmode="decimal"], .input[inputmode="tel"], .num-box, .input.mono {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 13px; letter-spacing: -.01em;
}
.select {
  appearance: none; padding-right: 30px;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2380868f' stroke-width='2.2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center;
}
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset:disabled .seg-btn { cursor: default; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field-label, .fld label { font-size: 12.5px; font-weight: 500; color: var(--ink2); }
.field-help { font-size: 12px; color: var(--ink3); }
.field-error { color: var(--bad); font-size: 12px; font-weight: 500; }
.needs { color: var(--warn); font-weight: 500; }
.stack { display: flex; flex-direction: column; gap: 16px; }

/* a slider paired with its number box */
.num-row { display: flex; gap: 12px; align-items: center; }
.num-row input[type="range"] { flex: 1; min-width: 0; }
.num-wrap { position: relative; flex: 0 0 auto; }
.num-box { width: 104px; padding-right: 24px; text-align: right; }
.num-box.wide { width: 124px; padding-right: 10px; }
.num-wrap:has(.num-suffix) .num-box { padding-right: 24px; }
.num-suffix { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font: 12px var(--font-mono); color: var(--ink3); pointer-events: none; }
.num-scale { display: flex; justify-content: space-between; font: 11px var(--font-mono); color: var(--ink3); }
.num-readout { font-family: var(--font-mono); font-size: 11.5px; }

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 18px; background: transparent; margin: 0; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track { height: 3px; background: var(--line); border-radius: 0; }
input[type="range"]::-moz-range-track { height: 3px; background: var(--line); border-radius: 0; }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5.5px; border-radius: 3px;
  background: var(--ink); border: 2px solid var(--paper); box-shadow: 0 0 0 1px var(--ink);
}
input[type="range"]::-moz-range-thumb { width: 10px; height: 10px; border-radius: 3px; background: var(--ink); border: 2px solid var(--paper); box-shadow: 0 0 0 1px var(--ink); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1px var(--ink), 0 0 0 4px rgba(163, 193, 173, .6); }
input[type="range"].off { opacity: .4; }

/* Two-state and few-option choices: a segmented control (the 360/180 toggle of the mockup). */
.seg { display: inline-flex; flex-wrap: wrap; gap: 0; padding: 0 1px 1px 0; max-width: 100%; align-self: flex-start; }
.seg-btn {
  position: relative; margin: 0 -1px -1px 0; height: 30px; padding: 0 11px; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 0; background: var(--paper); color: var(--ink2);
  font: 500 12.5px var(--font); cursor: pointer; text-decoration: none; white-space: nowrap;
}
/* square, like the buttons */
.seg-btn:hover { color: var(--ink); z-index: 1; border-color: var(--line-strong); }
.seg-btn.on, .seg-btn[aria-pressed="true"].on { background: var(--navy); border-color: var(--navy); color: #fff; z-index: 2; }
/* Whose numbers these are, in colour: the same three colours wherever the toggle appears, so a
   person can see at a glance whether they are looking at themselves (Anthony, 23 Sep 2026).
   Mine is the navy the CRM is built in, so the page people land on stays calm. */
[data-scope] { --scope: var(--navy); --scope-soft: var(--line2); }
[data-scope="team"], [data-scope="department"] { --scope: #1f7a4a; --scope-soft: var(--sage-soft); }
[data-scope="all"], [data-scope="company"] { --scope: #2b58c9; --scope-soft: var(--info-bg); }
.seg.is-scope .seg-btn.on { background: var(--scope); border-color: var(--scope); }
.seg-btn:disabled { opacity: .45; cursor: not-allowed; }
.seg[data-locked] .seg-btn { cursor: not-allowed; }
.seg[data-locked] .seg-btn:not(.on) { opacity: .45; }
.seg-n { font-family: var(--font-mono); font-size: 11.5px; opacity: .65; }
.seg-btn.on .seg-n { opacity: .75; }

/* quick date buttons under a date field */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn {
  height: 24px; padding: 0 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper);
  color: var(--ink2); font: 500 12px var(--font); cursor: pointer;
}
.chip-btn:hover { color: var(--ink); border-color: var(--sage-dark); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px dashed var(--line); border-radius: 6px;
  color: var(--ink2); font-size: 12.5px; background: none; font-weight: 400;
}
.chip b { color: var(--ink); font-weight: 500; }

.picker-wrap { position: relative; }
.pick-list {
  position: absolute; z-index: 40; left: 0; right: 0; top: 100%; margin: 2px 0 0; padding: 4px; list-style: none;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 6px; box-shadow: none; max-height: 260px; overflow: auto;
}
.pick-list li { padding: 6px 8px; border-radius: 4px; cursor: pointer; font-size: 13px; }
.pick-list li.active, .pick-list li:hover { background: var(--sub); }

/* ================================================================ cards, panels */
.panel, .surface, .job-card, .deal-card, .outlined-card, .org-box, .person-card, .cp-panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px; box-shadow: none;
}
.panel > .hd, .panel-head { padding: 12px 14px; border-bottom: 1px solid var(--line2); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.panel > .hd h2, .panel > .hd h3, .panel > .hd h4 { margin: 0; font-size: 13px; font-weight: 600; }
.panel > .bd, .panel-body { padding: 12px 14px; }
.surface-pad { padding: 14px 16px; }
.section-title, .card-title, .job-card-title, .person-card-title { font-size: 13.5px; font-weight: 600; color: var(--ink); letter-spacing: 0; }
.section-title { margin-bottom: 10px; }
.card-title { margin-bottom: 0; }
.big { font: 500 26px/1 var(--font-mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.big small { font: 400 14px var(--font); color: var(--ink3); letter-spacing: 0; }
.dl { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px 12px; margin: 0; font-size: 13px; }
.dl dt { color: var(--ink3); }
.dl dd { margin: 0; overflow-wrap: anywhere; }

/* ================================================================ tables */
.tw, .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); box-shadow: none; }
table { width: 100%; border-collapse: collapse; color: inherit; }
thead { background: none; }
th {
  font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink3);
  text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--line); background: var(--sub); white-space: nowrap;
}
td { padding: 11px 14px; border-bottom: 1px solid var(--line2); vertical-align: middle; font-size: 13.5px; color: var(--ink); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--sub); }
tbody tr:hover { background: none; }
td.r, th.r, td.num, th.num { text-align: right; }
td.num, td.r.mono, td.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 12.5px; letter-spacing: -.01em; }
.panel > table, .panel > .table, .panel > .tw { border-radius: 6px; }
.panel > table th:first-child, .panel > .table th:first-child { border-top-left-radius: 6px; }
.panel > table th:last-child, .panel > .table th:last-child { border-top-right-radius: 6px; }
.panel:has(> table), .panel:has(> .table) { overflow-x: auto; }
.t1 { font-weight: 600; color: var(--ink); }
.t2 { color: var(--ink3); font-size: 12.5px; }
.cell-secondary { color: var(--ink3); font-size: 12.5px; }
.cx-diff th, .cx-log th, .dl th, .tg-facts th, table.bare th { background: none; text-transform: none; letter-spacing: 0; }
table.bare td, table.bare th { padding: 4px 12px 4px 0; border: 0; }
table.bare tbody tr:hover td { background: none; }

/* ================================================================ tags, badges, status dots */
.badge, .deal-tag, .ty, .job-status, .placement-state, .stage-tag {
  display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 6px; border-radius: 4px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink2);
  font: 500 11.5px/1 var(--font); letter-spacing: 0; white-space: nowrap; vertical-align: middle; text-transform: none;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.badge-success { color: var(--ok); }
.badge-danger { color: var(--bad); }
.badge-warning { color: var(--warn); }
.badge-accent, .badge-neutral { color: var(--ink2); }
.dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink2); }
.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.dot.ok { color: var(--ok); } .dot.warn { color: var(--warn); } .dot.info { color: var(--info); }
.dot.muted { color: var(--ink3); } .dot.bad { color: var(--bad); }
.badge .dot::before { display: none; }

/* ================================================================ square progress */
.fill { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.segs { display: flex; gap: 2px; flex-wrap: nowrap; }
.segs i { width: 10px; height: 6px; background: var(--line); display: block; }
.segs i.f { background: var(--ink); }
.segs i.w { background: var(--warn); }
.stage { display: flex; align-items: center; gap: 10px; }
.steps { display: flex; gap: 3px; flex: none; }
.steps i { width: 14px; height: 4px; background: var(--line); display: block; border-radius: 1px; }
.steps i.d { background: var(--ink2); }
.steps i.c { background: var(--ink); }
.stage .lbl { font-size: 12.5px; color: var(--ink2); min-width: 92px; }
.stage.placed .steps i { background: var(--ok); }
.stage.placed .lbl { color: var(--ok); }
.stage.out .lbl { color: var(--ink3); text-decoration: line-through; }
.stage.out .steps i { background: var(--line2); }
.slots { display: grid; gap: 4px; margin: 12px 0 4px; }
.slots i { height: 8px; background: var(--line); display: block; }
.slots i.f { background: var(--ink); }
.slots i.w { background: repeating-linear-gradient(135deg, var(--warn) 0 3px, transparent 3px 6px); outline: 1px solid var(--warn); outline-offset: -1px; }

/* ================================================================ dialogs */
.cx-modal { position: fixed; inset: 0; z-index: 5000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.cx-modal:not([hidden]) { animation: gz-fade 120ms ease-out; }
.cx-backdrop { position: absolute; inset: 0; background: rgba(10, 11, 14, .36); backdrop-filter: none; }
.cx-card {
  position: relative; width: 100%; max-width: 520px; border-radius: 6px; background: var(--paper);
  border: 1px solid var(--line-strong); box-shadow: none; overflow: hidden; display: flex; flex-direction: column; max-height: calc(100vh - 48px);
}
.cx-head { padding: 14px 18px; font-weight: 600; font-size: 15px; border-bottom: 1px solid var(--line); }
.cx-body { padding: 14px 18px; max-height: 60vh; overflow: auto; font-size: 13px; }
.cx-intro { font-size: 13px; margin-bottom: 10px; color: var(--ink2); }
.cx-diff { width: 100%; border-collapse: collapse; font-size: 13px; }
.cx-diff th { text-align: left; font-weight: 500; color: var(--ink3); padding: 6px 12px 6px 0; white-space: nowrap; vertical-align: top; border: 0; font-size: 12.5px; }
.cx-diff td { padding: 6px 0; vertical-align: top; overflow-wrap: anywhere; border: 0; }
.cx-diff tr:hover td { background: none; }
.cx-diff tr + tr th, .cx-diff tr + tr td { border-top: 1px solid var(--line2); }
.cx-was { text-decoration: line-through; color: var(--ink3); opacity: 1; }
.cx-now { font-weight: 600; }
.cx-arrow { color: var(--ink3); opacity: 1; padding: 0 6px; }
.cx-extra:empty { display: none; }
.cx-extra { margin-top: 12px; font-size: 13px; }
.cx-extra h4 { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 6px; color: var(--ink3); opacity: 1; }
.cx-extra ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.cx-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--paper); }
.cx-link { display: flex; gap: 8px; margin-top: 8px; }
.cx-link input { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 12px; }
@keyframes gz-fade { from { opacity: 0; } to { opacity: 1; } }

/* a dialog holding a small form (add a candidate, move one, close a job) */
.dlg { position: fixed; inset: 0; z-index: 4000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.dlg:not([hidden]) { animation: gz-fade 120ms ease-out; }
.dlg-backdrop { position: absolute; inset: 0; background: rgba(10, 11, 14, .36); }
.dlg-card {
  position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 48px); display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden;
}
.dlg-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.dlg-head h2 { font-size: 15px; font-weight: 600; }
.dlg-head p { margin-top: 2px; font-size: 12.5px; color: var(--ink3); }
.dlg-body { padding: 16px 18px; overflow: auto; display: flex; flex-direction: column; gap: 16px; }
.dlg-foot { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dlg-foot .grow { flex: 1; }

/* the Place sheet: a right-hand panel over the job page (the one place with a shadow) */
.sheet-scrim { position: fixed; inset: 0; z-index: 3000; background: rgba(10, 11, 14, .36); display: flex; justify-content: flex-end; }
.sheet-scrim:not([hidden]) { animation: gz-fade 120ms ease-out; }
.sheet {
  width: min(480px, 100%); height: 100%; background: var(--paper); border-left: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(16, 18, 22, .04), 0 8px 24px -12px rgba(16, 18, 22, .18), -24px 0 48px -24px rgba(16, 18, 22, .22);
  display: flex; flex-direction: column;
}
.sheet iframe { border: 0; width: 100%; flex: 1; display: block; background: var(--paper); }

/* ================================================================ sign-in pages */
/* Like the website's header: the navy ground, the white GS Group logo with "CRM" under it, a white card. */
body.auth { display: grid; place-items: center; padding: 32px 16px; background: var(--navy); }
.auth-wrap { width: 100%; max-width: 380px; display: flex; flex-direction: column; align-items: stretch; }
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 26px; }
.auth-brand img { display: block; height: 40px; width: auto; }
.auth-brand span { font: 600 11.5px/1 var(--font); letter-spacing: .32em; text-indent: .32em; text-transform: uppercase; color: var(--sage); }
.auth-card {
  background: var(--paper); border: 0; border-radius: 0; padding: 28px 28px 30px; width: 100%; max-width: 380px; box-shadow: none;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
.auth-mark { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.auth-title { font-size: 18px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 4px; }
.auth-tag { color: var(--ink2); font-size: 13px; margin-bottom: 20px; text-align: left; }
.auth-logo { display: none; }
.auth .btn-block { height: 38px; }
/* Sign-in extras (25 Sep 2026): the 30-day tick, the forgot / resend links and the code box. */
.auth-keep { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink2); cursor: pointer; }
.auth-keep input { width: 15px; height: 15px; margin: 0; }
.auth-link { display: inline-block; font-size: 12.5px; color: var(--ink2); text-decoration: underline;
  text-underline-offset: 2px; text-decoration-color: var(--line-strong); }
.auth-link:hover { color: var(--ink); }
.auth-link-btn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-size: 12.5px; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
.auth-code { font: 600 22px/1 var(--font-mono); letter-spacing: .3em; text-align: center; height: 48px; }
/* set-password pages opened while signed in sit on the white page: no white logo there */
.page-body .auth-brand { display: none; }
.page-body .auth-card { border: 1px solid var(--line); }

/* ================================================================ small utilities */
.row { display: flex; align-items: center; gap: 12px; }
.row-end { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.grow { flex: 1; }
.muted { color: var(--ink3); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.you-tag { font-size: 11px; color: var(--ink3); margin-left: 6px; font-weight: 400; }
.form-actions {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; position: sticky; bottom: 0; z-index: 20;
  padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
}
.fee-preview { font-size: 13.5px; font-weight: 500; padding: 10px 12px; border: 1px solid var(--line2); background: var(--sub); border-radius: 6px; }
.fee-preview .muted { font-weight: 400; }
.preview-lines .amt, .fee-preview .amt { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 12.5px; }
.preview-warn { color: var(--warn); font-size: 12px; font-weight: 500; }
.split-rows { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: 6px; }
.split-rows:empty { display: none; }
.split-row { border: 0; border-top: 1px solid var(--line2); border-radius: 0; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.split-row:first-child { border-top: 0; }
.split-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 500; font-size: 13px; }
.split-tools { display: flex; gap: 8px; align-items: center; }
.split-tools .picker-wrap { flex: 1; }
.split-total { font-size: 12.5px; font-weight: 500; font-family: var(--font-mono); }
.split-total.bad { color: var(--bad); }
.band-row { border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.band-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; }
.readonly-note { font-size: 12px; padding: 8px 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--sub); }
.neg-warning { border: 1px solid var(--line) !important; background: var(--paper) !important; color: var(--warn) !important; border-radius: 6px !important; }
details > summary { cursor: pointer; }
details > summary::-webkit-details-marker { color: var(--ink3); }

/* ================================================================ phone width */
/* ================================================================ the floating save bar (static/savebar.js)
   A zero-height sticky anchor straight under the top bar, so the bar floats over the page without moving it.
   The top bar is sticky at every width, so the bar always sits just under it. A marked Save row is hidden
   once the bar has replaced it. */
[data-savebar]:not(.sb-nojs) { display: none !important; }
.savebar-anchor { position: sticky; top: 48px; height: 0; z-index: 45; }
.dev-on .savebar-anchor { top: 70px; }
.savebar-stack { position: absolute; top: 8px; right: 24px; max-width: calc(100% - 48px);
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.savebar {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: 680px; min-height: 50px;
  padding: 7px 7px 7px 16px; background: #1a1a2e; color: rgba(255,255,255,.78); font-size: 14px;
  border: 1px solid #2c2c4a; border-radius: 8px;
  box-shadow: 0 14px 40px -12px rgba(26, 26, 46, .55), 0 2px 6px rgba(26, 26, 46, .18);
}
.savebar[hidden] { display: none; }
/* a bold entrance: drop in, grow slightly, settle once */
.savebar-in { animation: savebar-in 240ms cubic-bezier(.2, .9, .3, 1.15); transform-origin: top right; }
@keyframes savebar-in { from { opacity: 0; transform: translateY(-12px) scale(.96); } to { opacity: 1; transform: none; } }
.savebar-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #f5b73b; flex: none; }
.savebar-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #f5b73b;
  animation: savebar-pulse 1.6s ease-out infinite; }
@keyframes savebar-pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(2.8); opacity: 0; } }
.savebar-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.35; }
.savebar-text strong { color: #fff; font-weight: 600; }
.savebar-count { color: #a3c1ad; }
/* what changed, named, while you change it */
.savebar-list { color: rgba(255,255,255,.72); }
.savebar-count:not(:empty)::before, .savebar-why:not(:empty)::before,
.savebar-list:not(:empty)::before { content: " · "; color: rgba(255,255,255,.4); }
.savebar-why { color: #f5b73b; }
.savebar-acts { display: flex; gap: 8px; flex: none; }
.savebar .btn { height: 36px; padding: 0 14px; font-size: 13.5px; }
/* Both read as buttons at a glance: Cancel filled enough to see, Save the bright one (Anthony,
   23 Sep 2026: "a vibrant cancel/save"). */
.savebar .savebar-cancel { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.5); font-weight: 600; }
.savebar .savebar-cancel:hover { border-color: #fff; background: rgba(255,255,255,.24); color: #fff; }
.savebar .savebar-go { background: #12a05c; color: #fff; border-color: #12a05c; font-weight: 700;
  box-shadow: 0 0 0 3px rgba(18, 160, 92, .3); }
.savebar .savebar-go:hover { background: #0f8c50; border-color: #0f8c50; color: #fff;
  box-shadow: 0 0 0 4px rgba(18, 160, 92, .38); }
.savebar .btn:disabled { opacity: .5; cursor: default; }
.savebar-short { display: none; }
@media (prefers-reduced-motion: reduce) { .savebar-in { animation: none; } .savebar-dot::after { animation: none; display: none; } }

/* Required-field flags (GazeSavebar.flags): a refused Save marks every problem field at once and the
   bar says how many need attention, with one small shake. */
.input.is-flagged, textarea.is-flagged, select.is-flagged, .is-flagged:not(.seg) { border-color: #c2412d !important; box-shadow: 0 0 0 1px #c2412d; }
.seg.is-flagged { outline: 1px solid #c2412d; outline-offset: 2px; border-radius: 8px; }
.field-error.flag-msg { color: #c2412d; margin-top: 4px; font-size: 12px; font-weight: 500; }
.savebar-bad .savebar-dot, .savebar-bad .savebar-dot::after { background: #c2412d; }
.savebar-bad .savebar-text strong { color: #f0826d; }
.savebar-shake { animation: savebar-shake 360ms ease-in-out; }
@keyframes savebar-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
@media (prefers-reduced-motion: reduce) { .savebar-shake { animation: none; } }

@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; width: 264px; max-width: 85vw; height: auto; z-index: 70;
    transform: translateX(-105%); transition: transform 160ms ease;
  }
  .dev-on .sidebar { top: 22px; height: auto; }
  body.nav-open .sidebar { transform: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-left: -6px;
    border: 1px solid var(--line-strong); border-radius: 0; background: var(--paper); color: var(--ink); cursor: pointer; flex: none;
  }
  .nav-scrim { display: block; position: fixed; inset: 0; background: rgba(26, 26, 46, .45); opacity: 0; pointer-events: none; transition: opacity 160ms ease; z-index: 65; }
  body.nav-open .nav-scrim { opacity: 1; pointer-events: auto; }
  .bar { padding: 0 16px; gap: 10px; }
  /* The search is an icon; it opens across the top bar, over the breadcrumbs. */
  .gsearch { flex: none; position: static; }
  .gsearch-open { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
    border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); cursor: pointer; padding: 0; }
  .gsearch-box { display: none; }
  .bar.search-open .gsearch { position: absolute; inset: 0; z-index: 60; background: var(--paper); padding: 8px 12px; display: flex; }
  .bar.search-open .gsearch-open { display: none; }
  .bar.search-open .gsearch-box { display: flex; flex: 1; }
  .bar.search-open .gsearch-close { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
    border: 0; background: none; color: var(--ink2); cursor: pointer; flex: none; padding: 0; }
  .gsearch kbd { display: none; }
  .gsearch input { font-size: 16px; }
  .gsearch-drop { left: 0; right: 0; width: auto; max-width: none; top: calc(100% + 2px); border-radius: 0 0 6px 6px; }
  .gs-keys { display: none; }
  .gs-type { width: 64px; }
  .savebar-stack { left: 8px; right: 8px; top: 6px; max-width: none; align-items: stretch; }
  .savebar { max-width: none; }
  .savebar { gap: 8px; padding-left: 10px; }
  .savebar-text { white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; font-size: 12px; }
  .savebar-long { display: none; }
  .savebar-short { display: inline; }
  /* Phone: the latest deal is its photo, the amount and the timer. */
  .bar-right { gap: 10px; flex: none; }
  .ld { gap: 8px; padding-left: 10px; flex: none; }
  .ld-text { display: none; }
  .ld-pic .sq { width: 26px; height: 26px; }
  .ld-time { min-width: 0; }
  .page-header, .ph { padding: 16px 16px 0; }
  .page-body { padding: 14px 16px 28px; }
  .flashes { padding: 12px 16px 0; }
  .tabbar { padding: 0 8px; }
  .main > .panel, .main > .edit-grid, .main > .table-wrap, .main > form, .main > section, .edit-page > .edit-grid,
  .main > .edit-page > .panel, .main > .settings-body { margin-left: 16px; margin-right: 16px; }
  .dlg, .cx-modal { padding: 12px; align-items: flex-end; }
  .dlg-card, .cx-card { max-height: calc(100vh - 24px); }
  .dev-banner { font-size: 11px; }
  .dev-more { display: none; }
  .shell::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ================================================================ slide-over panel (pages switched off today) */
.panel-backdrop { position: fixed; inset: 0; background: rgba(10, 11, 14, .36); opacity: 0; pointer-events: none; transition: opacity 120ms; z-index: 50; }
body.panel-open .panel-backdrop { opacity: 1; pointer-events: auto; }
.slide-panel { position: fixed; top: 0; right: 0; bottom: 0; width: 480px; max-width: 92vw; background: var(--paper); border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform 160ms ease; z-index: 60; display: flex; flex-direction: column; }
.slide-panel.open { transform: none; }
.panel-header { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.panel-title { font-size: 15px; font-weight: 600; }
.panel-footer { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }

/* ================================================================ small fixes */
body.auth > .dev-banner { position: fixed; top: 0; left: 0; right: 0; }
.edit-grid > *, .job-grid > *, .deal-grid > * { min-width: 0; }
.edit-side .panel, .edit-side .panel-body { overflow-x: auto; }

/* ================================================================ the PIN gate (login.html, login-gate.js) */
/* Before the sign-in card: the navy ground, the logo, four PIN boxes. A right PIN plays the brand
   diagonal (the slash in the G, the notch on the buttons) across the screen and unmasks the card.
   The transition itself is Web Animations in login-gate.js; only transform, opacity and clip-path move. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.gate { width: 100%; display: flex; justify-content: center; }
.gate .auth-brand { position: relative; z-index: 30; will-change: transform; }
.gate .auth-brand > .gate-logo { position: relative; display: block; line-height: 0; color: inherit; font: inherit; letter-spacing: 0; text-indent: 0; text-transform: none; }
.gate .auth-brand > .gate-app { font: 600 11.5px/1 var(--font); letter-spacing: .32em; text-indent: .32em; text-transform: uppercase; color: var(--sage); }
/* On the PIN step the brand is the sign-in brand at 1.25x, by transform, so the glide to its
   sign-in place is one exact transform (FLIP) with nothing inside it changing size. */
.gate.is-pin .auth-brand { transform: scale(1.25); transform-origin: 50% 0; margin-bottom: 62px; }

/* the idle glint: a pale sage band crosses the logo now and then, masked to its letters */
.gate-glint { position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  -webkit-mask: url("gs-logo-white.webp") center / 100% 100% no-repeat; mask: url("gs-logo-white.webp") center / 100% 100% no-repeat; }
.gate-glint i { position: absolute; top: -20%; bottom: -20%; left: 0; width: 34%;
  background: linear-gradient(105deg, rgba(207, 224, 212, 0) 0%, rgba(207, 224, 212, .85) 50%, rgba(207, 224, 212, 0) 100%);
  transform: translateX(-120%) skewX(-20deg); animation: gate-glint 7.5s cubic-bezier(.45, 0, .2, 1) 1.6s infinite; }
@keyframes gate-glint { 0% { transform: translateX(-120%) skewX(-20deg); } 22%, 100% { transform: translateX(420%) skewX(-20deg); } }
.gate.is-signin .gate-glint { display: none; }

/* the idle sheen: a very faint sage diagonal drifting across the navy */
.gate-sheen { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.gate-sheen i { position: absolute; left: 50%; top: 50%; width: 46vmax; height: 320vmax; margin: -160vmax 0 0 -23vmax;
  background: linear-gradient(90deg, rgba(163, 193, 173, 0), rgba(163, 193, 173, .055) 50%, rgba(163, 193, 173, 0));
  transform: rotate(45deg) translateX(-120vmax); animation: gate-sheen 14s cubic-bezier(.45, 0, .25, 1) infinite; will-change: transform; }
@keyframes gate-sheen { 0% { transform: rotate(45deg) translateX(-120vmax); } 60%, 100% { transform: rotate(45deg) translateX(120vmax); } }

/* the PIN step */
.gate-pin { position: relative; z-index: 5; display: flex; flex-direction: column; align-items: center; margin: 0; }
.pin-boxes { display: flex; gap: 12px; border: 0; padding: 0; margin: 0; min-width: 0; }
.pin-box {
  width: 56px; height: 66px; padding: 0; border: 0; border-radius: 0; appearance: none; -webkit-appearance: none;
  background: rgba(255, 255, 255, .06); color: #fff; caret-color: var(--sage);
  font: 600 24px/1 var(--font-mono); text-align: center; letter-spacing: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, .14);
  transition: background-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}
.pin-box:hover { background: rgba(255, 255, 255, .08); }
.pin-box:focus { outline: none; background: rgba(255, 255, 255, .1); box-shadow: inset 0 -2px 0 var(--sage); }
.pin-box.has-digit { background: rgba(255, 255, 255, .12); box-shadow: inset 0 -2px 0 rgba(163, 193, 173, .55); }
.pin-boxes.is-busy .pin-box { caret-color: transparent; }
.pin-box.is-unlocked { background: var(--sage); color: var(--navy); box-shadow: inset 0 -2px 0 var(--sage-dark); }
.pin-hint { margin: 20px 0 0; min-height: 16px; font: 500 12px/16px var(--font); letter-spacing: .04em; color: rgba(255, 255, 255, .5); text-align: center; transition: color 160ms; }
.pin-hint.is-error { color: #f2b8ac; }
.pin-go { margin-top: 18px; height: 36px; padding: 0 18px; border: 0; background: var(--sage); color: var(--navy); font: 600 13px var(--font); cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%, 0 calc(100% - 10px)); }
@media (max-width: 380px) { .pin-boxes { gap: 10px; } .pin-box { width: 52px; height: 62px; } }

/* the sign-in card, and the sage edge that leads its diagonal reveal */
.auth-stage { position: relative; z-index: 30; }
.auth-stage[hidden] { display: none; }
.auth-card-clip { position: relative; z-index: 1; }
.auth-card-edge { display: none; position: absolute; inset: 0; z-index: 0; }
.auth-card-edge i { display: block; width: 100%; height: 100%; background: var(--sage);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 18px 100%, 0 calc(100% - 18px)); }
.gate.is-revealing .auth-card-edge { display: block; }

/* the sweep: three panels whose leading edges are the logo's slash, placed by login-gate.js */
.gate-sweep { position: fixed; inset: 0; z-index: 20; overflow: hidden; pointer-events: none; display: none; }
.gate.is-sweeping .gate-sweep { display: block; }
.sweep { position: absolute; left: 50%; top: 50%; will-change: transform; backface-visibility: hidden; }
.sweep-sage { background: var(--sage); }
.sweep-mid { background: var(--navy-2); }
.sweep-navy { background: var(--navy); }

/* ================================================================ hover explanations (static/tip.js)
   Any element with data-tip gets a bubble beside it, on every page (Anthony, 23 Sep 2026: "add hover
   toolkits to loads of stuff, where necesarry"). */
.tipbox { position: fixed; z-index: 3000; max-width: 320px; padding: 9px 11px; border-radius: 8px;
  background: var(--navy); color: rgba(255, 255, 255, .95); font-size: 12px; line-height: 1.5;
  box-shadow: 0 10px 28px rgba(26, 26, 46, .28); pointer-events: none;
  white-space: pre-line; /* a tip with several reasons puts each on its own line (Finance > Sonovate) */ }
[data-tip] { cursor: help; }
a[data-tip], button[data-tip], .seg-btn[data-tip], th[data-tip] { cursor: inherit; }

/* ================================================================ What's new, ideas and the bell (25 Sep 2026) */
/* The version under the person, always; What's new behind the star; a sage dot until the newest is seen. */
.sb-release { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 -10px;
  padding: 2px 10px 12px 18px; }
.sb-release-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 2px 0; cursor: pointer;
  color: var(--on-navy-3); font: 500 11.5px var(--font); position: relative; }
.sb-release-btn:hover { color: #fff; }
.sb-release-btn svg { color: var(--sage); }
.sb-release-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--attn); display: inline-block; }
.sb-version { font: 500 11px var(--font-mono); color: var(--on-navy-3); white-space: nowrap; }
.nav-suggest, .nav-toolkit { margin-bottom: 2px; }

.wn-dlg { border: 0; padding: 0; background: transparent; max-width: 560px; width: calc(100% - 32px); }
.wn-dlg::backdrop { background: rgba(10, 11, 14, .36); }
/* No box with its own scroll bar (Anthony's rule): the card grows with its releases and, when that's taller than the
   window, the dialog scrolls as a whole, like a page (8 Nov 2026: four releases in a day). */
.wn-card { background: var(--paper); border: 1px solid var(--line-strong); border-radius: 6px; display: flex; flex-direction: column; }
.wn-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 18px 12px;
  border-bottom: 1px solid var(--line); }
.wn-head h2 { margin: 0; font-size: 16px; }
.wn-sub { margin: 2px 0 0; font-size: 12.5px; color: var(--ink3); }
.wn-body { padding: 6px 18px; }
.wn-rel { padding: 12px 0; border-bottom: 1px solid var(--line2, var(--line)); }
.wn-rel:last-child { border-bottom: 0; }
.wn-rel-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 13.5px; }
.wn-rel-head b { font-family: var(--font-mono); font-size: 12.5px; }
.wn-date { color: var(--ink3); font-size: 12px; margin-left: auto; }
.wn-badge { font: 600 10.5px var(--font); color: var(--ok); background: var(--ok-bg); padding: 1px 6px; border-radius: 4px; }
.wn-msg { margin: 6px 0 4px; font-size: 13px; color: var(--ink2); }
.wn-rel ul { margin: 4px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.wn-rel:not(.is-new) { opacity: .8; }
.wn-foot { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 10px 18px 14px; border-top: 1px solid var(--line); }

.bell { position: relative; }
.bell .topbar-bell { background: none; border: 0; cursor: pointer; padding: 4px; position: relative; }
.bell-count { font: 600 10.5px var(--font-mono); color: #fff; background: var(--bad); border-radius: 8px; padding: 1px 5px;
  position: absolute; top: -4px; right: -8px; line-height: 1.3; }
.bell-panel { position: absolute; right: 0; top: calc(100% + 8px); width: 340px; max-width: calc(100vw - 24px); z-index: 60;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 6px; box-shadow: 0 12px 32px rgba(26, 26, 46, .16); }
.bell-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line);
  font-size: 13px; }
.bell-read { background: none; border: 0; padding: 0; cursor: pointer; font: 500 12px var(--font); color: var(--ink2); text-decoration: underline;
  text-underline-offset: 2px; }
.bell-list { max-height: 360px; overflow: auto; }
.bell-item { display: flex; flex-direction: column; gap: 1px; padding: 9px 12px; border-bottom: 1px solid var(--line2, var(--line));
  text-decoration: none; color: var(--ink2); }
.bell-item:hover { background: var(--sub); }
.bell-item.is-unread { background: var(--info-bg); color: var(--ink); }
.bell-item.is-unread .bell-title::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--info); margin-right: 6px; vertical-align: middle; }
.bell-title { font-size: 13px; font-weight: 500; }
.bell-text { font-size: 12.5px; color: var(--ink2); }
.bell-when { font-size: 11.5px; color: var(--ink3); }
.bell-empty { margin: 0; padding: 14px 12px; font-size: 12.5px; color: var(--ink3); }
.bell-all { display: block; padding: 9px 12px; font-size: 12.5px; text-align: center; color: var(--ink2); }
