/* BD Machine in the house look, 12 Nov 2026.
   The look Sign, Proposals and Booking wear: the shared navy sidebar, a navy mesh band, white
   cards on the pale ground, CartoGothic. Rules: 08 AI & Automation/Specs/App Look and Copy
   Rules 2026-11-10.md. The sidebar block is Sign's .rail block (fintalent-sign app/static/app.css),
   measurement for measurement; change it there and in every app at once, never here alone.
   Loaded last, after style.css and tailwind.css, so nothing in those files is edited.
   Looks only: no selector here hides a control or changes what one does. */

@font-face { font-family: CG; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/CartoGothicStd-Book.woff2) format('woff2'); }
@font-face { font-family: CG; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/CartoGothicStd-Bold.woff2) format('woff2'); }
@font-face { font-family: CG; font-weight: 400; font-style: italic; font-display: swap; src: url(../fonts/CartoGothicStd-Italic.woff2) format('woff2'); }
@font-face { font-family: CG; font-weight: 700; font-style: italic; font-display: swap; src: url(../fonts/CartoGothicStd-BoldItalic.woff2) format('woff2'); }

/* ---------- tokens: the app's own variables, pointed at the house palette ---------- */
:root {
  --hx-navy: #040253; --hx-accent: #3F52BF; --hx-peri: #8EA6FC; --hx-pale: #F5F7FF; --hx-pale-2: #E9EEFF;
  --hx-rule: #E3E7F5; --hx-text: #1B1B2B; --hx-soft: #6E7391; --hx-quiet: #A3A8C2;
  --hx-good: #1F8A55; --hx-wait: #A66A00; --hx-bad: #B3261E;
  --hx-card: 0 0 0 1px rgba(213,220,245,.7), 0 18px 40px -18px rgba(4,2,83,.14);
  --hx-pad: 32px;

  /* Shared with Proposals (public/editor.css), Sign (app/static/app.css) and
     Booking (public/hub.css, data-brand=fintalent). The rail block is the same
     in all three. The hero numbers are Proposals' .frame .hub-hero, which Sign
     and Booking use for their main band (.page-head.hub-hero / .band.big). */
  --ft-rail-w: 216px;
  --ft-rail-bg: #040253;
  --ft-rail-ink: #f6f3ec;
  --ft-rail-muted: rgba(246,243,236,.66);
  --ft-rail-faint: rgba(246,243,236,.42);
  --ft-rail-hover: rgba(246,243,236,.08);
  --ft-rail-on: rgba(142,166,252,.2);
  --ft-rail-bar: #8ea6fc;
  --ft-rail-pad: 14px 12px;
  --ft-rail-gap: 6px;
  --ft-rail-font: 400 14px/1.45 CG, system-ui, sans-serif;
  --ft-rail-item-font: 700 14px/1.45 CG, system-ui, sans-serif;
  --ft-rail-item-pad: 8px 10px;
  --ft-rail-item-gap: 10px;
  --ft-rail-radius: 2px;
  --ft-icon: 18px;
  --ft-logo-h: 22px;
  --ft-brand-gap: 9px;
  --ft-brand-margin: 4px 6px 12px;
  --ft-hero-pt: 54px;
  --ft-hero-pb: 112px;
  --ft-hero-title: 400 clamp(34px, 4.4vw, 56px)/1.04 CG, system-ui, sans-serif;
  --ft-hero-track: -.03em;
  --ft-hero-sub: 12.5px;
  --ft-hero-bg: radial-gradient(55% 60% at 92% 0%, rgba(142,166,252,.5), transparent 70%), radial-gradient(45% 55% at 0% 100%, rgba(142,166,252,.26), transparent 70%), linear-gradient(160deg, #07056e 0%, #040253 55%, #02012e 100%);
  --ft-hero-overlap: -72px;
  --sidebar-w: var(--ft-rail-w);

  --bg: #F5F7FF; --bg-card: #fff; --bg-card-solid: #fff; --bg-subtle: #F5F7FF; --bg-input: #fff; --bg-hover: #E9EEFF;
  --border: #E3E7F5; --border-light: #E9EEFF; --border-strong: #D5DCF5; --border-glow: rgba(142,166,252,.45);
  --ink: #040253; --text: #1B1B2B; --text-primary: #040253; --text-secondary: #4A4F6B; --text-muted: #6E7391;
  --accent: #040253; --accent-hover: #23216e; --accent-light: rgba(142,166,252,.16); --accent-soft: #E9EEFF;
  --accent-ring: rgba(63,82,191,.35); --accent-bright: #8EA6FC; --cyan: #3F52BF;
  --success: #1F8A55; --success-soft: #E8F5EE; --success-ink: #1F8A55;
  --warn: #A66A00; --warn-soft: #FFF4DF; --warn-ink: #A66A00;
  --danger: #B3261E; --danger-soft: #FDECEA; --danger-ink: #B3261E;
  --info: #3F52BF; --info-soft: #E9EEFF; --info-ink: #3F52BF;
  --hot: #B3261E; --warm: #A66A00; --monitor: #8EA6FC;
  --shadow-xs: none; --shadow-sm: none; --shadow: none; --shadow-glow: none;
  --shadow-md: 0 18px 40px -18px rgba(4,2,83,.22); --shadow-lg: 0 40px 90px rgba(2,1,46,.4);
  --radius: 16px; --radius-sm: 10px; --radius-xs: 8px;
}

html { background: var(--hx-pale); }
body, button, input, select, textarea, .btn, .cx-btn, .badge, .ft-modal, .ft-modal-btn { font-family: CG, system-ui, sans-serif; }
body { font-size: 14.5px; line-height: 1.5; letter-spacing: 0; color: var(--hx-text); background: var(--hx-pale); }
b, strong, th { font-weight: 700; }
a { color: var(--hx-accent); }
::selection { background: rgba(142,166,252,.35); color: var(--hx-navy); }
:focus-visible { outline: 2px solid var(--hx-accent); outline-offset: 2px; }

/* ---------- the shared sidebar (Proposals .rail, same block in Sign and Booking) ---------- */
.sidebar.rail { position: fixed; top: 0; left: 0; width: var(--ft-rail-w); height: 100vh; display: flex; flex-direction: column; gap: var(--ft-rail-gap); background: var(--ft-rail-bg); color: var(--ft-rail-ink); padding: var(--ft-rail-pad); border: 0; box-shadow: none; font: var(--ft-rail-font); overflow: hidden; scrollbar-width: none; animation: none; transition: none; }
.sidebar.rail::-webkit-scrollbar { display: none; }
/* Proposals has no icon-only collapse. A stored sidebar-collapsed class must not shrink this rail. */
html.sidebar-collapsed .sidebar.rail { width: var(--ft-rail-w); }
html.sidebar-collapsed .content { margin-left: var(--ft-rail-w); }
.rail-brand { display: flex; align-items: center; gap: var(--ft-brand-gap); margin: var(--ft-brand-margin); text-decoration: none !important; flex: none; }
.rail-brand img { height: var(--ft-logo-h); width: auto; display: block; flex: none; margin: 0; }
.rail-app { font: 400 17px/1.25 CG, system-ui, sans-serif; font-style: italic; letter-spacing: -.01em; color: var(--ft-rail-ink); padding: 0 .14em; white-space: nowrap; background-image: linear-gradient(transparent 56%, rgba(142,166,252,.6) 56%, rgba(142,166,252,.6) 92%, transparent 92%); }
.rail .nav-links { list-style: none; display: flex; flex-direction: column; gap: 2px; margin: 8px 0 0; padding: 0; flex: 0 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.rail .nav-links::-webkit-scrollbar { display: none; }
.rail .nav-links li { margin: 0; padding: 0; }
/* overflow:visible so the round count pill is not squared off by style.css's
   .nav-links a { overflow:hidden }. */
.rail .nav-links a { display: flex; align-items: center; gap: var(--ft-rail-item-gap); width: 100%; height: auto; min-height: 0; margin: 0; padding: var(--ft-rail-item-pad); border: 0; border-radius: var(--ft-rail-radius); background: none; font: var(--ft-rail-item-font); letter-spacing: 0; color: var(--ft-rail-ink); text-align: left; cursor: pointer; text-decoration: none !important; box-shadow: none; transform: none; transition: none; opacity: 1; position: relative; overflow: visible; }
.rail .nav-links a::before, .rail .nav-links a::after { content: none; }
.rail .nav-links a:hover { background: var(--ft-rail-hover); color: var(--ft-rail-ink); }
.rail .nav-links a.active, .rail .nav-links a.active:hover { background: var(--ft-rail-on); color: #fff; box-shadow: inset 3px 0 0 var(--ft-rail-bar); }
.rail .nav-links .nav-icon,
.sidebar.rail .nav-links a.active .nav-icon,
.sidebar.rail .nav-links a:hover .nav-icon { width: var(--ft-icon); height: var(--ft-icon); flex: none; display: block; opacity: 1; background: none; margin: 0; color: inherit; }
.rail .nav-links .nav-label { display: inline; opacity: 1; width: auto; font: inherit; color: inherit; white-space: nowrap; }
.sidebar.rail svg,
.sidebar.rail .nav-icon svg { width: var(--ft-icon); height: var(--ft-icon); flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; }
/* a count on a row: the app's red badge, moved to the row's right edge as a round pill */
.rail .nav-links .nav-icon > span { position: static !important; margin: 0; }
.rail .nav-links a .nav-icon { display: contents; }
.rail .nav-links a .nav-icon > span { order: 3; margin-left: auto !important; min-width: 20px !important; height: 18px !important; padding: 0 6px !important; border-radius: 99px !important; background: #8ea6fc !important; color: #040253 !important; font: 700 10.5px/18px CG, system-ui, sans-serif !important; }
.rail .nav-links a .nav-label { order: 2; }
/* the BD Machine has sixteen places, so its four group names stay, as quiet labels */
.rail .nav-links .nav-section { margin: 6px 0 0; padding: 0 10px; font: 700 10px/1.4 CG, system-ui, sans-serif; letter-spacing: 1.8px; text-transform: uppercase; color: var(--ft-rail-faint); border: 0; background: none; }
.rail .nav-links .nav-section:first-child { margin-top: 0; }
.rail-foot { margin-top: auto; padding-top: 6px; display: flex; flex-direction: column; gap: var(--ft-rail-gap); font-size: 13px; flex: none; }
.rail-who { display: flex; align-items: center; gap: 10px; padding: 6px 6px 10px; border-radius: var(--ft-rail-radius); font: 700 13px/1.45 CG, system-ui, sans-serif; color: var(--ft-rail-ink); text-decoration: none !important; }
a.rail-who:hover, .rail-who.on { color: #fff; background: var(--ft-rail-hover); }
.rail-who img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: rgba(142,166,252,.2); display: block; margin: 0; }
.rail-who span { flex: 1; }
/* The settings mark Proposals draws after the name (editor.css, .rail-foot button.rail-who:after). */
.rail-who::after { content: ''; width: 14px; height: 14px; flex: none; opacity: .6; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 3v3M12 18v3M3 12h3M18 12h3M5.6 5.6l2.1 2.1M16.3 16.3l2.1 2.1M5.6 18.4l2.1-2.1M16.3 7.7l2.1-2.1'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 3v3M12 18v3M3 12h3M18 12h3M5.6 5.6l2.1 2.1M16.3 16.3l2.1 2.1M5.6 18.4l2.1-2.1M16.3 7.7l2.1-2.1'/%3E%3C/svg%3E") center / contain no-repeat; }
.rail-foot .rail-out { display: block; width: 100%; padding: 6px 10px; border: 0; border-radius: var(--ft-rail-radius); background: none; font: 400 13px/1.45 CG, system-ui, sans-serif; color: var(--ft-rail-muted); text-align: left; text-decoration: none; cursor: pointer; }
.rail-foot .rail-out:hover { background: var(--ft-rail-hover); color: var(--ft-rail-ink); }
.rail a:focus-visible, .rail button:focus-visible { outline: 2px solid #8ea6fc; outline-offset: 2px; }
/* region, the one control the other apps do not have */
.rail-regions { display: flex; gap: 4px; padding: 0 6px 6px; }
.rail-regions a { flex: 1; text-align: center; padding: 5px 0 4px; border-radius: 2px; font: 700 10.5px/1.3 CG, system-ui, sans-serif; letter-spacing: 1.2px; color: rgba(246,243,236,.66); text-decoration: none; box-shadow: inset 0 0 0 1px rgba(246,243,236,.16); }
.rail-regions a:hover { color: #f6f3ec; background: rgba(246,243,236,.08); }
.rail-regions a.on { color: #040253; background: #8ea6fc; box-shadow: none; }

/* ---------- the page: pale ground, a navy band, white cards ---------- */
.content { margin-left: var(--ft-rail-w); padding: 0 var(--hx-pad) 96px; background: var(--hx-pale); transition: none; }
.flash-messages { margin: 16px 0 0; }
.hub-frame { max-width: none; padding: 0; }

/* the short band every inner page opens with: its existing header, on the mesh */
.content .hub-header, .content .page-header, .hx-hero {
  position: relative; overflow: hidden; isolation: isolate; color: #fff; margin: 0 calc(var(--hx-pad) * -1) 24px !important; padding: var(--ft-hero-pt) var(--hx-pad) var(--ft-hero-pb); border: 0; border-radius: 0; animation: none;
  background: var(--ft-hero-bg); }
.content .hub-header::before, .content .page-header::before, .hx-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(195,208,253,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(195,208,253,.07) 1px, transparent 1px); background-size: 90px 90px; }
.content .hub-header::after, .content .page-header::after, .hx-hero::after { content: ''; position: absolute; right: -140px; top: -260px; width: 560px; height: 560px; border-radius: 50%; border: 2px solid rgba(142,166,252,.35); z-index: -1; pointer-events: none; }
.content .hub-header, .content .page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.content :is(.hub-header, .page-header, .hx-hero) :is(h1, .hub-title) { font: var(--ft-hero-title); letter-spacing: var(--ft-hero-track); color: #fff; margin: 0; max-width: 820px; text-wrap: balance; }
.content :is(.hub-header, .page-header, .hx-hero) :is(h1, .hub-title) em { font-style: italic; padding: 0 .05em; background: linear-gradient(transparent 58%, rgba(142,166,252,.5) 58%, rgba(142,166,252,.5) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.content :is(.hub-header, .page-header, .hx-hero) :is(p, .hub-subtitle, .hub-stats, small, label, .text-muted) { color: #C3D0FD; }
.content :is(.hub-header, .page-header, .hx-hero) :is(.hub-subtitle, p) { font-size: var(--ft-hero-sub); margin: 10px 0 0; }
.content :is(.hub-header, .page-header, .hx-hero) a:not(.btn):not(.cx-btn):not(.hx-tile) { color: #C3D0FD; }
.content :is(.hub-header, .page-header, .hx-hero) a:not(.btn):not(.cx-btn):not(.hx-tile):hover { color: #fff; }
.content :is(.hub-header, .page-header, .hx-hero) .hub-eyebrow, .hx-kick { display: flex; align-items: center; gap: 16px; font: 700 12px/1 CG, system-ui, sans-serif; letter-spacing: 3.5px; text-transform: uppercase; color: #8EA6FC; margin: 0 0 18px; background: none; padding: 0; border: 0; }
.content :is(.hub-header, .page-header, .hx-hero) .hub-eyebrow::before, .hx-kick::before { content: ''; display: block; flex: 0 0 48px; height: 7px; border-radius: 7px; background: currentColor; }
/* buttons on the band: the main one periwinkle, the rest glass */
.content :is(.hub-header, .page-header, .hx-hero) :is(.btn, .cx-btn, button:not([class])) { background: transparent; color: #fff; border: 0; box-shadow: inset 0 0 0 1px rgba(195,208,253,.34); }
.content :is(.hub-header, .page-header, .hx-hero) :is(.btn, .cx-btn):hover { background: rgba(195,208,253,.14); box-shadow: inset 0 0 0 1px rgba(195,208,253,.6); color: #fff; transform: none; }
.content :is(.hub-header, .page-header, .hx-hero) :is(.btn-primary, .cx-btn.pri) { background: #8EA6FC; color: #040253; box-shadow: none; }
.content :is(.hub-header, .page-header, .hx-hero) :is(.btn-primary, .cx-btn.pri):hover { background: #C3D0FD; color: #040253; box-shadow: none; }
.content :is(.hub-header, .page-header, .hx-hero) :is(a, button):focus-visible { outline-color: #C3D0FD; }
.content :is(.hub-header, .page-header, .hx-hero) .cx-state { background: none; padding: 0; color: #C3D0FD; }
.content :is(.hub-header, .page-header, .hx-hero) .cx-state.good { color: #7FE0AE; }
.content :is(.hub-header, .page-header, .hx-hero) .cx-state.crit { color: #FFB4AB; }
.content :is(.hub-header, .page-header, .hx-hero) .cx-state.opened { color: #FFD27A; }

/* the main page: the first card over the band's edge. Padding and the title are the shared hero. */
.hx-hero.hx-hub { margin-bottom: 0 !important; }
#mainContent > :is(.hx-hero, .hub-header, .page-header),
#mainContent > :is(.cx, .ac-wrap, .outreach-page) > :is(.hx-hero, .hub-header, .page-header),
#mainContent .cd-page > .cd-head { margin-bottom: 0 !important; }
#mainContent > :is(.hx-hero, .hub-header, .page-header) + *,
#mainContent > :is(.cx, .ac-wrap, .outreach-page) > :is(.hx-hero, .hub-header, .page-header) + *,
#mainContent .cd-page > .cd-head + * { position: relative; z-index: 1; margin-top: var(--ft-hero-overlap); }
/* A toolbar or tab row that follows the band has to carry its own ground, or its
   type sits on the navy. The dashboard's overlapping cards (.hx-over) stay clear
   so the mesh still shows between them. */
#mainContent > :is(.hx-hero, .hub-header, .page-header) + :not(.hx-over),
#mainContent > :is(.cx, .ac-wrap, .outreach-page) > :is(.hx-hero, .hub-header, .page-header) + * {
  background-color: var(--hx-pale);
}
/* The outreach composer header holds the contact form. It is not a page hero. */
.hub-frame > .hub-header { padding: 28px 0 30px !important; margin: 0 0 16px !important; }
.hub-frame > .hub-header :is(h1, h2, .hub-title) { font: 400 clamp(26px, 3vw, 36px)/1.1 CG, system-ui, sans-serif !important; letter-spacing: -.02em !important; max-width: none; }
.hx-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 16px; font: 700 12.5px/1.3 CG, system-ui, sans-serif; color: #C3D0FD; }
.hx-meta > span { display: inline-flex; align-items: center; gap: 7px; }
.hx-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 176px)); gap: 12px; margin-top: 34px; }
.hx-tile { display: block; padding: 16px 16px 14px; border-radius: 14px; background: rgba(195,208,253,.09); box-shadow: inset 0 0 0 1px rgba(195,208,253,.16); backdrop-filter: blur(2px); text-decoration: none !important; transition: background .15s, box-shadow .15s; }
.hx-tile:hover { background: rgba(195,208,253,.16); box-shadow: inset 0 0 0 1px rgba(195,208,253,.4); }
.hx-tile b { display: block; font: 400 30px/1 CG, system-ui, sans-serif; letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
.hx-tile span { display: block; margin-top: 9px; font: 700 10.5px/1.25 CG, system-ui, sans-serif; letter-spacing: 1.6px; text-transform: uppercase; color: #B4C3FD; }
.hx-tile.warn b { color: #FFD27A; }
.hx-over { margin-top: -72px; position: relative; z-index: 1; }
@media (max-width: 1180px) { .hx-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* cards */
.card, .hub-card, .cx-card, .cx-list, .stat-card, .stats-grid > div, .table-wrap, .cx-tile {
  background: #fff; border: 0; border-radius: 16px; box-shadow: var(--hx-card); }
.card:hover, .stat-card:hover, .stats-grid > div:hover { box-shadow: var(--hx-card); transform: none; border-color: transparent; }
.card .card, .card .table-wrap, .card .cx-list, .table-wrap .card { box-shadow: none; border-radius: 12px; }
.card .card { background: var(--hx-pale); }
.card-header { border-bottom: 1px solid var(--hx-pale-2); }
.card-header :is(h2, h3), .card > h2, .card > h3 { color: var(--hx-navy); font-weight: 700; letter-spacing: 0; }

/* section labels: a periwinkle bar, then the name in small spaced capitals */
.hub-section-title, .section-title, .cx-sec, .hx-sec { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font: 700 11px/1 CG, system-ui, sans-serif; letter-spacing: 3px; text-transform: uppercase; color: var(--hx-accent); }
.hub-section-title::before, .section-title::before, .cx-sec::before, .hx-sec::before { content: ''; flex: 0 0 28px; height: 5px; border-radius: 5px; background: var(--hx-peri); }

/* number tiles on inner pages */
.cx-tile { padding: 16px 16px 14px; }
.cx-tile .k, .stat-label { font: 700 10.5px/1.25 CG, system-ui, sans-serif; letter-spacing: 1.6px; text-transform: uppercase; color: var(--hx-soft); }
.cx-tile .v, .stat-value { font: 400 30px/1 CG, system-ui, sans-serif; letter-spacing: -.02em; color: var(--hx-navy); }
.cx-tile.crit .v { color: var(--hx-bad); }
.stat-card::before { display: none; }

/* rows and tables: a thin line between rows, a pale tint on hover, small spaced capitals above */
table { border-collapse: separate; border-spacing: 0; }
th, .cx-cols, .cx-list-cols { font: 700 10.5px/1.3 CG, system-ui, sans-serif; letter-spacing: 1.6px; text-transform: uppercase; color: var(--hx-soft); background: #fff; border-bottom: 0; }
td { border-color: var(--hx-pale-2); border-left: 0; border-right: 0; }
tbody tr:hover > td, .cx-row:hover { background: var(--hx-pale); }
.cx-row { border-bottom: 1px solid var(--hx-pale-2); }
.cx-row.is-on { background: var(--hx-pale-2); }
.cx-list-head { border-bottom: 1px solid var(--hx-pale-2); }

/* Category labels and status marks are full pills / circles.
   An earlier house rule used border-radius: 0 on .badge/.cx-kind and a
   [class*="status-"] catch-all that also flattened .status-dot. Both read as
   "squared off" sitewide (Contacts PRIMARY, Ready dots, Pipeline chips). */
.badge, .cx-chip, .hub-chip, .cx-kind { display: inline-flex; align-items: center; gap: 6px; font: 700 10px/1 CG, system-ui, sans-serif; letter-spacing: 1.5px; text-transform: uppercase; color: var(--hx-navy); background: var(--hx-pale-2); border: 0; border-radius: 99px; padding: 6px 10px 4px; white-space: nowrap; }
.hub-chip { cursor: pointer; }
.hub-chip.is-active { background: var(--hx-navy); color: #fff; }
.cx-state { display: inline-flex; align-items: center; gap: 7px; background: none !important; border: 0; padding: 0; border-radius: 0; font: 700 12px/1.3 CG, system-ui, sans-serif; color: var(--hx-soft); }
.cx-state::before,
.pl-chip::before,
.status-tab::before,
.status-dot,
.nav-badge {
  border-radius: 50% !important;
}
.cx-state::before { content: ''; width: 8px; height: 8px; background: currentColor; flex: none; }
.status-dot { width: 8px; height: 8px; display: inline-block; }
.cx-state.sent { color: var(--hx-soft); } .cx-state.opened { color: var(--hx-accent); }
.cx-state.good { color: var(--hx-good); } .cx-state.crit { color: var(--hx-bad); } .cx-state.warn { color: var(--hx-wait); }
.badge-hot, .badge-danger { color: var(--hx-bad); background: #FDECEA; }
.badge-warm, .badge-warning { color: var(--hx-wait); background: #FFF4DF; }
.badge-success, .badge-new { color: var(--hx-good); background: #E8F5EE; }

/* tabs: small spaced capitals, a 2px line under the active one, counts as round pills */
.hub-tabs, .cx-tabs, .status-tabs { background: none; border: 0; border-bottom: 1px solid var(--hx-pale-2); border-radius: 0; padding: 0; gap: 22px; box-shadow: none; }
.hub-tab, .cx-tab, .status-tab { background: none !important; border: 0; border-bottom: 2px solid transparent; border-radius: 0; box-shadow: none !important; padding: 12px 0 12px; margin: 0 0 -1px; font: 700 11px/1 CG, system-ui, sans-serif; letter-spacing: 1.6px; text-transform: uppercase; color: var(--hx-soft); }
.hub-tab:hover, .cx-tab:hover, .status-tab:hover { color: var(--hx-navy); }
.hub-tab.is-active, .cx-tab.is-active, .cx-tab.on, .cx-tab.active, .status-tab.active { color: var(--hx-navy); border-bottom-color: var(--hx-navy); }
.status-tab::before { display: none; }
.hub-tab .tab-count, .cx-tab .n, .cx-tab b, .status-tab b, .status-tab .n { font: 700 10.5px/1 CG, system-ui, sans-serif; letter-spacing: 0; padding: 4px 7px 3px; border-radius: 99px; background: var(--hx-pale-2); color: var(--hx-accent); }
:is(.hub-tab.is-active, .cx-tab.is-active, .cx-tab.on, .cx-tab.active, .status-tab.active) :is(.tab-count, .n, b) { background: var(--hx-navy); color: #fff; }

/* fields: white with a thin outline that turns accent; search is a pill on the pale fill */
input[type="text"], input[type="email"], input[type="number"], input[type="password"], input[type="url"], input[type="date"], input[type="time"], input[type="datetime-local"], input[type="tel"], input:not([type]), select, textarea, .form-control {
  background: #fff; border: 1px solid var(--hx-rule); border-radius: 10px; color: var(--hx-text); box-shadow: none; }
input:focus, select:focus, textarea:focus, .form-control:focus { border-color: var(--hx-accent); box-shadow: inset 0 0 0 1px var(--hx-accent); outline: 0; }
input[type="search"], .cx-search, .search-input, input[name="q"], input[name="search"] { background: var(--hx-pale); border: 0; border-radius: 99px; box-shadow: none; }
.cx-search:focus-within, input[type="search"]:focus, .search-input:focus, input[name="q"]:focus, input[name="search"]:focus { background: #fff; box-shadow: inset 0 0 0 1.5px var(--hx-accent); }
.cx-search input { background: none; border: 0; box-shadow: none; border-radius: 0; }
.content .card input[type="search"], .content .card .cx-search { background: var(--hx-pale); }
label, .form-group > label, .cx-field > span { color: var(--hx-navy); font-weight: 700; letter-spacing: 0; text-transform: none; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--hx-navy); }

/* buttons: sentence case, 13px bold, 10px corners; navy for the main one, white with accent text for the rest */
/* Full pills so Tailwind's `button,input{border-radius:0}` preflight and the
   older 10px corners cannot read as squared-off chips next to round status. */
.btn, .cx-btn, .ft-modal-btn, .btn-sm { font: 700 13px/1.2 CG, system-ui, sans-serif; letter-spacing: 0; text-transform: none; border-radius: 99px; border: 1px solid var(--hx-rule); background: #fff; color: var(--hx-accent); box-shadow: none; }
.btn:hover, .cx-btn:hover, .btn-secondary:hover, .btn-ghost:hover { border-color: var(--hx-peri); background: #fff; color: var(--hx-accent); transform: none; box-shadow: none; }
.btn-primary, .cx-btn.pri, .ft-modal-btn-confirm { background: var(--hx-navy); border-color: var(--hx-navy); color: #fff; }
.btn-primary:hover, .cx-btn.pri:hover, .ft-modal-btn-confirm:hover { background: #23216e; border-color: #23216e; color: #fff; transform: none; box-shadow: none; }
.btn-danger, .ft-modal-btn-danger, .cx-btn.bad, .cx-btn.danger { background: #fff; border-color: #F0C9C6; color: var(--hx-bad); }
.btn-danger:hover, .ft-modal-btn-danger:hover { background: #FDECEA; border-color: #F0C9C6; color: var(--hx-bad); transform: none; }
.btn-ghost { border-color: transparent; background: none; }
.btn:disabled, .cx-btn:disabled { opacity: .45; cursor: not-allowed; }

/* messages */
.flash, .cx-banner, .hub-result { border: 0; border-radius: 12px; font-weight: 700; }
.flash-success, .cx-banner.ok, .hub-result.is-ok { background: #E8F5EE; color: var(--hx-good); }
.flash-error, .flash-danger, .cx-banner.bad, .hub-result.is-err { background: #FDECEA; color: var(--hx-bad); }
.flash-warning, .cx-banner.warn { background: #FFF4DF; color: var(--hx-wait); }
.cx-toast, #review-toast { background: linear-gradient(120deg, #040253, #121088); color: #fff; border: 0; border-radius: 12px; box-shadow: 0 0 0 1px rgba(195,208,253,.2), 0 18px 40px rgba(2,1,46,.35); }

/* dialogs: a white card over a dimmed, blurred page */
.ft-modal-backdrop, #emailPreviewModal { background: rgba(2,1,46,.55); backdrop-filter: blur(3px); }
.ft-modal { border: 0; border-radius: 16px; padding: 34px 30px 26px; box-shadow: 0 40px 90px rgba(2,1,46,.4);
  background: linear-gradient(90deg, #040253, #3F52BF 55%, #8EA6FC) top / 100% 6px no-repeat, #fff; }
.ft-modal-title { font: 400 22px/1.2 CG, system-ui, sans-serif; letter-spacing: -.01em; color: var(--hx-navy); margin: 0 0 16px; }
.ft-modal-body { font-size: 14.5px; color: var(--hx-text); }
.ft-modal-actions { justify-content: flex-end; margin-top: 24px; gap: 8px; }
.ft-modal-btn { padding: 10px 16px; }
.ft-modal-btn-cancel { color: var(--hx-accent); background: #fff; border-color: var(--hx-rule); }

/* the record panel that opens over a list */
.ov-back { background: rgba(2,1,46,.55); backdrop-filter: blur(3px); }
.ov-panel { background: var(--hx-pale); border-radius: 16px 16px 0 0; box-shadow: 0 -30px 80px rgba(2,1,46,.35); }
.ov-head { background: linear-gradient(160deg, #07056e 0%, #040253 55%, #02012e 100%); color: #fff; border: 0; }
.ov-head .ov-title { color: #fff; font: 400 18px/1.2 CG, system-ui, sans-serif; }
.ov-head .ov-x { color: #fff; background: none; border: 0; }
.ov-head .cx-btn { background: transparent; color: #fff; border: 0; box-shadow: inset 0 0 0 1px rgba(195,208,253,.34); }

/* empty states */
.empty-state, .hub-empty, .cx-empty { padding: 26px 0 22px; text-align: center; font: 400 15px/1.4 CG, system-ui, sans-serif; color: var(--hx-quiet); }
.hub-empty-icon { display: none; }

/* the task cards, bottom right */
#taskOverlayWrap { border: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgba(213,220,245,.7), 0 18px 40px rgba(2,1,46,.25); }
#taskOverlayHeader { background: linear-gradient(120deg, #040253, #121088); color: #fff; font-weight: 700; }
#spaProgress b { font-family: CG, system-ui, sans-serif; }

/* ---------- phone ---------- */
@media (max-width: 768px) {
  /* Proposals and Sign reflow the rail at 760px; Booking at 720px. This shell's
     other phone rules start at 768, so the rail joins them there rather than
     leaving an 8px band where the old drawer would still open. */
  :root { --hx-pad: 16px; --ft-hero-pt: 34px; --ft-hero-pb: 96px; --ft-hero-overlap: -64px; }
  .mobile-topbar, .mobile-nav-backdrop { display: none !important; }
  .sidebar.rail,
  .sidebar-collapsed .sidebar.rail,
  .sidebar.rail.mobile-open {
    position: static; top: auto; left: auto; width: auto; height: auto; max-width: none;
    flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 8px;
    padding: 8px 12px; transform: none; transition: none; box-shadow: none;
    z-index: auto; overflow: visible; animation: none;
  }
  .sidebar.rail .rail-brand { margin: 4px 6px; order: 1; }
  .sidebar.rail .rail-foot { display: contents; }
  .sidebar.rail .rail-who { order: 2; width: auto; margin-left: auto; padding: 4px; }
  .sidebar.rail .rail-who span, .sidebar.rail .rail-who::after { display: none; }
  .sidebar.rail .rail-out { order: 2; width: auto; padding: 6px 10px; }
  .sidebar.rail .nav-links {
    order: 3; flex-direction: row; flex-wrap: nowrap; flex: 1 1 100%;
    margin: 0; overflow-x: auto; gap: 2px;
  }
  .sidebar.rail .nav-links a { width: auto; white-space: nowrap; }
  .sidebar.rail .nav-section { display: none; }
  .sidebar.rail .rail-regions { order: 4; flex: 1 1 100%; padding: 4px 6px 0; }
  .content, .sidebar-collapsed .content, html.sidebar-collapsed .content { margin-left: 0; padding: 0 var(--hx-pad) 64px; }
  .hx-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; }
  .content .hub-header, .content .page-header { align-items: flex-start; }
}

/* ---------- page by page ----------
   Each page carries its own <style> block, which loads after this file. The rules below are
   scoped under #mainContent or the overlay body so they outrank those blocks without !important. */
:is(#mainContent, .ov-body) :is(.dash-card, .cx-list, .cx-card, .card, .hub-card, .panel, .box) { background: #fff; border: 0; border-radius: 16px; box-shadow: var(--hx-card); }

/* dashboard */
#mainContent .hx-meta.dash-meta { gap: 8px 18px; }
#mainContent .hx-meta.dash-meta > *:not(:first-child)::before { content: none; }
#mainContent .hx-meta .cx-btn { margin-left: 6px; padding: 7px 12px; }
#mainContent .dash-card { padding: 18px 22px; }
#mainContent .dash-card-header { align-items: center; margin-bottom: 14px; }
#mainContent .dash-card-header h3 { display: flex; align-items: center; gap: 12px; font: 700 11px/1 CG, system-ui, sans-serif; letter-spacing: 3px; text-transform: uppercase; color: var(--hx-accent); }
#mainContent .dash-card-header h3::before { content: ''; flex: 0 0 28px; height: 5px; border-radius: 5px; background: var(--hx-peri); }
#mainContent .dash-count { font-size: 12.5px; color: var(--hx-soft); }
#mainContent .wq-filters { gap: 22px; border-bottom: 1px solid var(--hx-pale-2); margin-bottom: 4px; }
#mainContent .wq-chip { background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 12px 0; margin-bottom: -1px; gap: 8px; font: 700 11px/1 CG, system-ui, sans-serif; letter-spacing: 1.6px; text-transform: uppercase; color: var(--hx-soft); }
#mainContent .wq-chip:hover { background: none; color: var(--hx-navy); }
#mainContent .wq-chip span { min-width: 0; height: auto; font: 700 10.5px/1 CG, system-ui, sans-serif; letter-spacing: 0; padding: 4px 7px 3px; border-radius: 99px; background: var(--hx-pale-2); color: var(--hx-accent); }
#mainContent .wq-item { border-color: var(--hx-pale-2); }
#mainContent .wq-title { font: 700 16px/1.3 CG, system-ui, sans-serif; color: var(--hx-navy); }
#mainContent .wq-detail, #mainContent .wq-why { font-size: 12.5px; color: var(--hx-soft); }
#mainContent .wq-flag-overdue { background: var(--hx-bad); } #mainContent .wq-flag-engaged { background: var(--hx-accent); }
#mainContent .wq-flag-chase { background: var(--hx-wait); } #mainContent .wq-flag-new { background: var(--hx-peri); }
#mainContent .wq-overdue .wq-why { color: var(--hx-bad); }

/* ---------- sign-in: Sign's .si block, verbatim (fintalent-sign app/static/app.css). Shared, do not restyle here. ---------- */
.si-page { position: relative; z-index: 0; min-height: 100vh; margin: 0; padding: 28px 16px 64px; background: #f6f3ec; font: 400 16px/1.5 CG, system-ui, sans-serif; color: rgba(4,2,83,.8); -webkit-font-smoothing: antialiased; }
.si-page, .si-page * { box-sizing: border-box; }
.si-band { position: absolute; inset: 0 0 auto 0; height: 300px; background: #040253; z-index: -1; overflow: hidden; }
.si-band::before { content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(142,166,252,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(142,166,252,.08) 1px, transparent 1px); background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 75% 35%, #000 15%, transparent 70%); mask-image: radial-gradient(ellipse at 75% 35%, #000 15%, transparent 70%); }
.si-band::after { content: ''; position: absolute; width: 56rem; height: 56rem; right: -22rem; top: -30rem; background: radial-gradient(circle, rgba(142,166,252,.3), transparent 60%); animation: si-drift 14s ease-in-out infinite alternate; }
@keyframes si-drift { to { transform: translate(-12rem, 8rem); } }
.si-logo { display: flex; justify-content: center; padding: 6px 0 26px; }
.si-logo img { height: 34px; width: auto; display: block; margin: 0; }
.si { max-width: 420px; margin: 0 auto; padding: 32px; background: #fbfaf7; border: 1px solid rgba(4,2,83,.14); border-radius: 3px; box-shadow: none; }
.si .si-app { margin: 0 0 8px; font: 700 12px/1.5 CG, system-ui, sans-serif; letter-spacing: 2.5px; text-transform: uppercase; color: #515e8f; }
.si h1 { margin: 0 0 14px; font: 400 32px/1.2 CG, system-ui, sans-serif; letter-spacing: -.02em; color: #040253; text-wrap: balance; max-width: none; }
.si .si-hl { font-style: italic; padding: 0 .04em; background-image: linear-gradient(transparent 58%, rgba(142,166,252,.55) 58%, rgba(142,166,252,.55) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.si form { margin: 20px 0 0; }
.si .si-field { margin: 0 0 18px; }
.si .si-field label { display: block; margin: 0 0 6px; padding: 0; font: 700 16px/1.5 CG, system-ui, sans-serif; letter-spacing: 0; text-transform: none; color: #040253; }
.si .si-in { display: block; width: 100%; margin: 0; font: 400 16px/1.5 CG, system-ui, sans-serif; color: rgba(4,2,83,.8); background: #fff; border: 1px solid rgba(4,2,83,.24); border-radius: 2px; padding: 10px 12px; box-shadow: none; outline: 0; }
.si .si-in:focus { border-color: rgba(4,2,83,.24); box-shadow: none; outline: 2px solid #515e8f; outline-offset: 2px; }
.si .si-btn { display: block; width: 100%; margin: 0; font: 700 16px/1.5 CG, system-ui, sans-serif; letter-spacing: .02em; text-transform: none; color: #fff; background: #040253; border: 1px solid transparent; border-radius: 2px; padding: 13px 26px; cursor: pointer; box-shadow: none; transition: background-color .25s, transform .25s; }
.si .si-btn:hover { background: #23216e; transform: translateY(-2px); }
.si .si-btn:focus-visible, .si a:focus-visible { outline: 2px solid #515e8f; outline-offset: 2px; }
.si .si-error { margin: 16px 0 0; padding: 10px 14px; background: #fdf2f1; color: #b42318; border-radius: 2px; font: 700 16px/1.5 CG, system-ui, sans-serif; }
.si .si-remember { display: flex; align-items: center; gap: 8px; margin: 4px 0 16px; padding: 0; font: 400 14px/1.5 CG, system-ui, sans-serif; letter-spacing: 0; text-transform: none; color: rgba(4,2,83,.8); cursor: pointer; }
.si .si-remember input { width: 16px; height: 16px; margin: 0; padding: 0; accent-color: #040253; }
.si .si-back { margin: 22px 0 0; font: 400 14px/1.5 CG, system-ui, sans-serif; }
.si .si-back a { color: #515e8f; text-decoration: underline; border: 0; }

/* pipeline: the stage tiles stay tiles, the table reads as rows, the stage is coloured text with a dot */
#mainContent #pipeline-sticky-header { background: var(--hx-pale); }
#mainContent #pipeline-sticky-header .status-tabs { border: 0; gap: 12px; }
#mainContent #pipeline-sticky-header .status-tab { background: #fff !important; border: 0; border-radius: 14px; box-shadow: var(--hx-card) !important; padding: 16px 16px 14px; margin: 0; gap: 9px; font: 700 10.5px/1.25 CG, system-ui, sans-serif; letter-spacing: 1.6px; text-transform: uppercase; color: var(--hx-soft); }
#mainContent #pipeline-sticky-header .status-tab::before { display: none; }
#mainContent #pipeline-sticky-header .status-tab .tab-count { font: 400 30px/1 CG, system-ui, sans-serif; letter-spacing: -.02em; color: var(--hx-navy); background: none; padding: 0; }
#mainContent #pipeline-sticky-header .status-tab:hover { box-shadow: 0 0 0 1px var(--hx-peri), 0 18px 40px -18px rgba(4,2,83,.14) !important; }
#mainContent #pipeline-sticky-header .status-tab.active { background: var(--hx-navy) !important; color: #B4C3FD; border: 0; }
#mainContent #pipeline-sticky-header .status-tab.active .tab-count { color: #fff; background: none; }
#mainContent #pipeline-sticky-header .status-tab.is-zero .tab-count { color: var(--hx-quiet); }
#mainContent #pipeline-sticky-header .status-tab.drag-over { box-shadow: 0 0 0 2px var(--hx-accent) !important; background: var(--hx-pale-2) !important; }
#mainContent .pl-ledger-card { border-radius: 16px; overflow: hidden; }
#mainContent #pipelineTable thead th { background: #fff; color: var(--hx-soft); font: 700 10.5px/1.3 CG, system-ui, sans-serif; letter-spacing: 1.6px; padding: 16px 12px 10px; border-left: 0; border-bottom: 1px solid var(--hx-pale-2); border-radius: 0; }
#mainContent #pipelineTable thead th a, #mainContent #pipelineTable thead th a:hover { color: inherit; }
#mainContent #pipelineTable thead th a:hover { color: var(--hx-navy); text-decoration: none; }
#mainContent #pipelineTable tbody td { border-left: 0; border-bottom: 1px solid var(--hx-pale-2); padding: 16px 12px; }
#mainContent #pipelineTable tbody tr.pipeline-row:nth-child(even) { background: none; }
#mainContent #pipelineTable tbody tr.pipeline-row:hover { background: var(--hx-pale); }
#mainContent #pipelineTable a[data-field="job_title"] { font: 700 16px/1.3 CG, system-ui, sans-serif; color: var(--hx-navy); }
#mainContent #pipelineTable td[data-col="company"], #mainContent #pipelineTable td[data-col="company"] a, #mainContent #pipelineTable td[data-col="company"] .editable-cell { font-weight: 400; }
#mainContent #pipelineTable td.pl-extra, #mainContent #pipelineTable td.pl-extra a, #mainContent #pipelineTable td.pl-extra .editable-cell { color: var(--hx-soft) !important; font-size: 13px !important; }
#mainContent #pipelineTable td .editable-cell[data-field="date_posted"] { font: 400 14px/1.3 CG, system-ui, sans-serif; color: var(--hx-text); }
#mainContent #pipelineTable .pl-chip { background: none; border: 0; padding: 4px 0; border-radius: 0; font: 700 12px/1.3 CG, system-ui, sans-serif; color: var(--hx-soft); box-shadow: none; gap: 7px; }
#mainContent #pipelineTable .pl-chip::before { display: block; content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
#mainContent #pipelineTable .pl-chip:hover, #mainContent #pipelineTable .pl-status[open] .pl-chip { box-shadow: none; color: var(--hx-navy); }
#mainContent #pipelineTable .pl-chip[data-status="New"] { background: none; color: var(--hx-accent); }
#mainContent #pipelineTable .pl-chip[data-status="Shortlisted"], #mainContent #pipelineTable .pl-chip[data-status="Contacted"], #mainContent #pipelineTable .pl-chip[data-status="Meeting Booked"] { background: none; color: var(--hx-wait); }
#mainContent #pipelineTable .pl-chip[data-status="Replied"], #mainContent #pipelineTable .pl-chip[data-status="Placed"], #mainContent #pipelineTable .pl-chip[data-status="Terms Signed"] { background: none; color: var(--hx-good); }
#mainContent #pipelineTable .pl-chip[data-status="Agency"] { background: none; color: var(--hx-soft); }
#mainContent #pipelineTable .pl-chip[data-status="Dead"] { background: none; color: var(--hx-bad); }

/* menus */
.cx-menu-list { border: 0; border-radius: 12px; box-shadow: 0 0 0 1px rgba(213,220,245,.7), 0 18px 40px rgba(2,1,46,.22); }
.cx-menu-list button, .cx-menu-list a { border-radius: 8px; font: 400 14px/1.4 CG, system-ui, sans-serif; color: var(--hx-text); }
.cx-menu-list button:hover, .cx-menu-list a:hover { background: var(--hx-pale); color: var(--hx-navy); }

/* breadcrumbs ride on the band's top edge */
#mainContent > .bd-crumb { position: relative; z-index: 2; margin: 0 0 -34px; padding: 16px 0 0; height: 34px; font: 700 11px/1.4 CG, system-ui, sans-serif; letter-spacing: 1.6px; text-transform: uppercase; color: #8EA6FC; }
#mainContent > .bd-crumb a { color: #B4C3FD; } #mainContent > .bd-crumb a:hover { color: #fff; text-decoration: none; }
#mainContent > .bd-crumb .bd-crumb-current { color: #fff; font-weight: 700; } #mainContent > .bd-crumb .bd-crumb-sep { color: #8EA6FC; opacity: .7; }
#mainContent > .bd-crumb ~ :is(.hub-header, .page-header), #mainContent > .bd-crumb ~ .cd-page > .cd-head { padding-top: 54px; }

/* the company page: its identity header is the band */
#mainContent .cd-page > .cd-head { position: relative; overflow: hidden; isolation: isolate; color: #fff; margin: 0 calc(var(--hx-pad) * -1) 0; padding: var(--ft-hero-pt) var(--hx-pad) var(--ft-hero-pb); align-items: flex-end;
  background: var(--ft-hero-bg); }
#mainContent .cd-page > .cd-head::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(rgba(195,208,253,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(195,208,253,.07) 1px, transparent 1px); background-size: 90px 90px; }
#mainContent .cd-page > .cd-head::after { content: ''; position: absolute; right: -140px; top: -260px; width: 560px; height: 560px; border-radius: 50%; border: 2px solid rgba(142,166,252,.35); z-index: -1; pointer-events: none; }
#mainContent .cd-page > .cd-head .cd-title { font: var(--ft-hero-title); letter-spacing: var(--ft-hero-track); color: #fff; margin: 0 0 12px; max-width: 820px; }
#mainContent .cd-page > .cd-head .cd-meta, #mainContent .cd-page > .cd-head .cd-meta > *::before { color: #C3D0FD; }
#mainContent .cd-page > .cd-head .cd-meta a { color: #fff; border-bottom-color: rgba(195,208,253,.4); }
#mainContent .cd-page > .cd-head .cd-touch { font: 400 12.5px/1.3 CG, system-ui, sans-serif; }
#mainContent .cd-page > .cd-head .cd-meta select.cd-stage { background-color: rgba(195,208,253,.12); border: 0; box-shadow: inset 0 0 0 1px rgba(195,208,253,.34); color: #fff; border-radius: 8px; }
#mainContent .cd-page > .cd-head .cd-meta select.cd-stage option { color: #1B1B2B; }
#mainContent .cd-page > .cd-head .cd-actions { padding-top: 0; }
#mainContent .cd-page > .cd-head :is(.cx-btn, .btn, summary.cx-btn) { background: transparent; color: #fff; border: 0; box-shadow: inset 0 0 0 1px rgba(195,208,253,.34); }
#mainContent .cd-page > .cd-head :is(.cx-btn, .btn):hover { background: rgba(195,208,253,.14); box-shadow: inset 0 0 0 1px rgba(195,208,253,.6); }
#mainContent .cd-page > .cd-head :is(.cx-btn.pri, .btn-primary) { background: #8EA6FC; color: #040253; box-shadow: none; }
#mainContent .cd-page > .cd-head :is(.cx-btn.pri, .btn-primary):hover { background: #C3D0FD; }
:is(#mainContent, .ov-body) .cd-page .cd-sect h3 { display: flex; align-items: center; gap: 12px; font: 700 11px/1 CG, system-ui, sans-serif; letter-spacing: 3px; text-transform: uppercase; color: var(--hx-accent); }
:is(#mainContent, .ov-body) .cd-page .cd-sect h3::before { content: ''; flex: 0 0 28px; height: 5px; border-radius: 5px; background: var(--hx-peri); }
:is(#mainContent, .ov-body) .cd-page .cd-sect p { font-size: 12.5px; color: var(--hx-soft); margin-top: 8px; }

/* section tabs inside a record */
:is(#mainContent, .ov-body) :is(.cx-nav, .cd-nav) { display: flex; gap: 22px; border-bottom: 1px solid var(--hx-pale-2); margin: 0 0 18px; }
:is(#mainContent, .ov-body) :is(.cx-nav a, .cd-page .cd-tab) { background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 12px 0; margin: 0 0 -1px; font: 700 11px/1 CG, system-ui, sans-serif; letter-spacing: 1.6px; text-transform: uppercase; color: var(--hx-soft); }
:is(#mainContent, .ov-body) :is(.cx-nav a:hover, .cd-page .cd-tab:hover) { color: var(--hx-navy); }
:is(#mainContent, .ov-body) :is(.cx-nav a.on, .cd-page .cd-tab.on) { background: none; color: var(--hx-navy); border-bottom-color: var(--hx-navy); }
:is(#mainContent, .ov-body) :is(.cx-nav a b, .cd-page .cd-tab b) { font: 700 10.5px/1 CG, system-ui, sans-serif; letter-spacing: 0; padding: 4px 7px 3px; border-radius: 99px; background: var(--hx-pale-2); color: var(--hx-accent); margin-right: 8px; }
:is(#mainContent, .ov-body) :is(.cx-nav a.on b, .cd-page .cd-tab.on b) { background: var(--hx-navy); color: #fff; }

/* list heads inside a card: the name as a section label, the count beside it */
:is(#mainContent, .ov-body) :is(.cx-list-head, .cx-head-row) > b:first-child, :is(#mainContent, .ov-body) .cx-list-head > input + b { display: inline-flex; align-items: center; gap: 12px; font: 700 11px/1 CG, system-ui, sans-serif; letter-spacing: 3px; text-transform: uppercase; color: var(--hx-accent); }
:is(#mainContent, .ov-body) :is(.cx-list-head, .cx-head-row) > b:first-child::before { content: ''; flex: 0 0 28px; height: 5px; border-radius: 5px; background: var(--hx-peri); }
:is(#mainContent, .ov-body) :is(.cx-list-head, .cx-head-row) > span { font-size: 12.5px; color: var(--hx-soft); }

/* a list that sits straight on the page gets its own white card */
@media (min-width: 769px) { #mainContent table.cx-table { background: #fff; border-radius: 16px; box-shadow: var(--hx-card); } }
@media (min-width: 641px) { #mainContent table.cx-table th:first-child, #mainContent table.cx-table td:first-child { padding-left: 22px; } }
@media (min-width: 641px) { #mainContent table.cx-table th:last-child, #mainContent table.cx-table td:last-child { padding-right: 22px; } }
#mainContent table.cx-table thead th { padding-top: 18px; background: none; }
@media (min-width: 641px) { #mainContent table.cx-table tbody tr:last-child td { border-bottom: 0; } }
#mainContent :is(.card, .cx-card, .cx-list, .dash-card, .table-wrap, .pl-ledger-card, .cx-batch) table.cx-table { background: none; border-radius: 0; box-shadow: none; }
#mainContent .cx-batch { background: #fff; border: 0; border-radius: 16px; box-shadow: var(--hx-card); }
/* desktop only: on a phone the lists reflow under their own rules */
@media (min-width: 769px) { #mainContent .table-wrap.is-bare { background: #fff; border-radius: 16px; box-shadow: var(--hx-card); padding: 2px 10px 6px; } }
#mainContent :is(.card, .cx-card, .cx-list, .dash-card, .cx-batch) .table-wrap.is-bare { background: none; border-radius: 0; box-shadow: none; padding: 0; }
/* the breadcrumb stays on one line; the record's name gives way first */
#mainContent > .bd-crumb { flex-wrap: nowrap; white-space: nowrap; overflow: hidden; }
#mainContent > .bd-crumb > * { flex: 0 0 auto; }
#mainContent > .bd-crumb .bd-crumb-current { flex: 0 1 auto; min-width: 0; max-width: none; overflow: hidden; text-overflow: ellipsis; }

/* ---------- phone lists (the 11 Nov phone fixes turn rows into cards at 640px and under) ----------
   The desktop row rules above must not reach into those cards. */
@media (max-width: 640px) {
  #mainContent #pipelineTable tbody tr.pipeline-row { border-bottom: 1px solid var(--hx-pale-2); }
  #mainContent #pipelineTable tbody tr.pipeline-row td { padding: 0; border: 0; }
  #mainContent #pipelineTable tbody tr.pipeline-row td.pl-lead { padding-top: 3px; }
  #mainContent #pipeline-sticky-header .status-tabs { gap: 6px; }
  #mainContent #pipeline-sticky-header .status-tab { padding: 10px 8px 8px; letter-spacing: .8px; white-space: normal; overflow: visible; }
  #mainContent #pipeline-sticky-header .status-tab .tab-count { font-size: 21px; }
}
/* tab strips swipe sideways on a phone instead of wrapping into a block */
@media (max-width: 768px) {
  #mainContent :is(.status-tabs, .hub-tabs, .cx-tabs, .cx-nav, .cd-nav, .wq-filters):not(#pipeline-sticky-header .status-tabs) { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  #mainContent :is(.status-tabs, .hub-tabs, .cx-tabs, .cx-nav, .cd-nav, .wq-filters) > * { flex: 0 0 auto; white-space: nowrap; }
  #mainContent #pipeline-sticky-header .status-tabs > * { white-space: normal; }
}
/* a list the phone fixes do not turn into cards swipes sideways instead of crushing its first column */
@media (max-width: 640px) {
  #mainContent .table-wrap.is-bare { overflow-x: auto; }
  #mainContent .table-wrap.is-bare > table.cx-table:not(#readyDrafts, #readyPacks, .cmp-tbl, #contactsTable, #campaignsTable, #candidatesTable, #scrapeLogTable, #signalsTable, #providersTable) { min-width: 600px; }
}

/* ---------- wide screens: the band always runs the full width of the page ----------
   .cx caps a record at 1480px and centres it, so past a 1760px window the band stopped short
   and the breadcrumb sat on the pale ground beside it. A record that carries the band drops the cap. */
#mainContent > .cx:has(> .hub-header, > .cd-head, > .page-header, > .hx-hero) { max-width: none; }
/* the broadcast editor sets its own page padding, so its band pulls out by that padding instead */
.content:has(.bx-wrap) > .hub-header { margin: -1rem -1.25rem 16px !important; padding-left: 1.25rem; padding-right: 1.25rem; }
@media (max-width: 768px) { .content:has(.bx-wrap) > .hub-header { margin-top: calc(56px - 1rem) !important; } }
