:root{
  --navy:#1F3864; --blue:#2E5496; --accent:#2f6fed; --bg:#f5f7fb; --line:#dfe5ee;
  --ok:#1e7a34; --warn:#b05400; --lo:#b3261e;
  --app-cv:#2E5496; --app-opp:#0f8b8d; --app-settings:#6a7686; --app-contracts:#7c5cff;
  --rail-accent:#55d0ff;
}
*{box-sizing:border-box}
body{margin:0;font-family:Segoe UI,Calibri,system-ui,Arial,sans-serif;background:var(--bg);color:#1c2430}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
.topbar{display:flex;align-items:center;justify-content:space-between;background:var(--navy);color:#fff;padding:10px 20px}
.brand{display:flex;align-items:center;gap:14px}
.brand a{color:#fff;font-weight:700;font-size:18px;display:inline-flex;align-items:center;gap:9px}
.brand-logo{height:30px;width:auto;display:block}
.current-app{color:#c7d3ea;font-size:13px;font-weight:600;padding-left:14px;
             border-left:1px solid rgba(255,255,255,.25)}
.switcher{display:flex;align-items:center;gap:8px}
.switcher .asrole{color:#c7d3ea;font-size:12px}
.switcher select{padding:5px 8px;border-radius:6px;border:0}
.mainnav{display:flex;gap:4px;background:var(--blue);padding:0 12px}
.mainnav a{color:#eaf0fb;padding:11px 14px;font-size:14px;border-bottom:3px solid transparent}
.mainnav a:hover{background:rgba(255,255,255,.12);text-decoration:none}
.mainnav a.active{color:#fff;font-weight:600;background:rgba(255,255,255,.14);border-bottom-color:#fff}

/* App-switcher rail — left of the per-app horizontal bar. Only job is switching apps;
   which app you're IN is shown by the horizontal bar next to it (unchanged look).
   Compact icon rail (2026-09-16 nav experiment): icon-only, label shown as a hover
   tooltip rather than always-visible text — see cvisor-project memory for the rollback
   note (this whole block + base.html's rail markup) if this doesn't work out. */
.body-row{display:flex;align-items:flex-start}
.rail{width:72px;flex:0 0 auto;background:linear-gradient(180deg,var(--navy),#102a4d);
     display:flex;flex-direction:column;align-items:center;padding:12px 8px;gap:6px;
     min-height:calc(100vh - 51px)}
.rail-item{position:relative;color:#aebbd6;text-decoration:none;cursor:pointer;
          width:52px;height:52px;border-radius:10px;display:flex;align-items:center;
          justify-content:center}
.rail-item .ic{width:28px;height:28px;display:flex;align-items:center;justify-content:center}
.rail-item .ic svg{width:28px;height:28px;display:block}
.rail-item .tip{position:absolute;left:60px;top:50%;z-index:20;width:max-content;
                max-width:190px;transform:translateY(-50%);padding:7px 10px;
                border-radius:6px;background:#0d2547;box-shadow:0 10px 25px rgba(14,35,61,.25);
                color:#fff;font-size:12.5px;font-weight:600;line-height:1.2;
                opacity:0;pointer-events:none;transition:opacity 140ms ease}
.rail-item:hover .tip{opacity:1}
.rail-item:hover{color:#fff;text-decoration:none;background:rgba(255,255,255,.09)}
.rail-item.active{color:#fff;background:rgba(255,255,255,.14)}
.rail-item.active::before{content:"";position:absolute;left:-8px;top:9px;bottom:9px;
                          width:3px;border-radius:999px;background:var(--rail-accent)}
.rail-item.active .ic{color:#fff}
.rail-spacer{flex:1}
.main-col{flex:1;min-width:0}
/* Fluid up to a generous cap: fills whatever width the window actually has (down to no
   minimum — .tablewrap's own overflow-x handles anything narrower than a wide table needs),
   and stops growing past 1600px so lines of text don't get unreasonably long on ultra-wide
   monitors. Forms/cards inside already cap their own width (.stack, .login-wrap, etc.), so
   widening this doesn't stretch them — it only gives wide tables more room before scrolling. */
.container{max-width:1600px;width:100%;margin:24px auto;padding:0 20px;box-sizing:border-box}

@media(max-width:600px){
  .body-row{flex-direction:column}
  .rail{width:auto;min-height:auto;flex-direction:row;overflow-x:auto}
  .rail-spacer{display:none}
  /* No hover on touch — fall back to always-visible labels beside the icon. */
  .rail-item{width:auto;height:auto;flex-direction:row;gap:6px;padding:8px 10px;border-radius:6px}
  .rail-item .tip{position:static;opacity:1;pointer-events:auto;transform:none;
                  padding:0;background:none;box-shadow:none;color:inherit;font-weight:600}
  .rail-item.active::before{left:0;right:0;top:auto;bottom:0;height:3px;width:auto}
}
h1{color:var(--navy);margin:.2em 0}
h2{color:var(--navy);margin-top:1.4em;border-bottom:2px solid var(--line);padding-bottom:4px}
.muted{color:#6a7686}.small{font-size:12px}
.cards{display:flex;gap:14px;flex-wrap:wrap;margin:18px 0}
.card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:16px 20px;min-width:150px}
.card .num{font-size:30px;font-weight:700;color:var(--blue)}
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.tile{display:flex;flex-direction:column;gap:6px;background:#fff;border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:10px;padding:16px}
.tile b{color:var(--navy)}.tile span{color:#6a7686;font-size:13px}

/* KPI stat tiles (Pipeline page) — separate from .tile above, which is a clickable nav-link
   tile used on the Dashboard/Admin home and keeps its own look. Label-on-top / big-number /
   subtitle layout, no left accent stripe. */
.kpi-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.kpi-tile{display:flex;flex-direction:column;gap:6px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px 20px}
.kpi-label{text-transform:uppercase;letter-spacing:.04em;font-size:11px;font-weight:600;color:#8a94a4}
.kpi-value{font-size:26px;font-weight:700;color:var(--navy);font-family:Consolas,'Cascadia Code',monospace}
.kpi-sub{font-size:12px;color:#6a7686}
/* The one tile worth calling out (Weighted Pipeline) — reuses --warn, already in the
   palette, rather than a new color. */
.kpi-tile.highlight{background:#fdf8ef;border-color:#e8d7ae}
.kpi-tile.highlight .kpi-value{color:var(--warn)}

/* Pipeline page's open-stage distribution bar — shades of blue, light (early stage) to
   var(--blue) (closest to close), so it reads as a "how close to closing" gradient rather
   than an arbitrary rainbow of stage colors. */
.stagebar-wrap{background:#fff;border:1px solid var(--line);border-radius:10px;padding:16px;margin:14px 0}
.stagebar{display:flex;height:14px;border-radius:7px;overflow:hidden;background:var(--bg)}
.stagebar-seg{height:100%}
.stagebar-legend{display:flex;flex-wrap:wrap;gap:14px;margin-top:10px;font-size:13px;color:#40495a}
.stagebar-legend .dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px}
/* Same 5 shades applied to both the bar segments and their legend dots, by stage index
   (0 = earliest open stage ... 4 = closest to close) — see stage-color(i) in pipeline.html. */
.seg-0{background:#c7d4ea}.seg-1{background:#9fb4d9}.seg-2{background:#7695c8}
.seg-3{background:#4c76b7}.seg-4{background:var(--blue)}

/* Pipeline table's Status column — same recipe as the existing .note.ok / .login-error
   tinted-badge pattern, just reused for a smaller inline pill. */
.status-badge{border-radius:10px;padding:2px 9px;font-size:12px;font-weight:600;white-space:nowrap}
.status-open{background:#eef2f8;color:#40495a}
.status-won{background:#e9f7ec;color:var(--ok)}
.status-lost{background:#fdeceb;color:var(--lo)}
.status-aborted{background:#eef2f8;color:#6a7686}
/* TCV/ACV cell's secondary lines: the weighted-TCV figure and the USD-converted figure. */
.figure-sub{display:block;font-size:12px;margin-top:2px}
.figure-weighted{color:var(--warn)}
.figure-usd{color:#6a7686}
.tablewrap{overflow-x:auto}

/* Pipeline filter bar's stage-toggle chips — one distinguishable color per stage so they're
   scannable at a glance; :has() dims an unchecked chip rather than needing JS to track state. */
.stagechips{display:flex;flex-wrap:wrap;gap:6px}
.stagechip{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border-radius:14px;
  border:1px solid var(--line);background:#fff;font-size:12px;color:#40495a;cursor:pointer;
  user-select:none;opacity:.45}
.stagechip:has(input:checked){opacity:1;background:#f5f7fb;border-color:#c7d0dd}
.stagechip input{display:none}
.stagechip .dot{width:8px;height:8px;border-radius:50%;flex:0 0 auto}
table{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden;margin:10px 0}
th,td{text-align:left;padding:9px 12px;border-bottom:1px solid var(--line);font-size:14px}
/* Top-align rather than the browser default (middle) — matters once a cell can span
   multiple lines (e.g. the Pipeline table's TCV/ACV figures), so single-line cells like
   Region/Owner/Actions line up with the first line instead of floating at the row's center. */
td{vertical-align:top}
th{background:#eef2f8;color:var(--navy)}
tr:last-child td{border-bottom:0}
.btn{display:inline-block;background:var(--accent);color:#fff;border:0;border-radius:7px;padding:9px 16px;font-size:14px;cursor:pointer}
.btn:hover{background:#2559c9;text-decoration:none}
.btn.small{padding:5px 10px;font-size:12px}
.btn.ghost{background:#fff;color:var(--accent);border:1px solid var(--accent)}
.rowbtns{display:flex;gap:10px;margin:12px 0}
.rowactions{display:flex;gap:6px;align-items:center;flex-wrap:nowrap;justify-content:flex-end}
.rowactions form{margin:0}
.stack{display:flex;flex-direction:column;gap:14px;max-width:560px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:20px}
.stack label,.filters label{display:flex;flex-direction:column;gap:5px;font-size:14px;color:#40495a}
.filters{display:flex;gap:14px;align-items:flex-end;flex-wrap:wrap;background:#fff;border:1px solid var(--line);border-radius:10px;padding:16px;margin:12px 0}
input,select,textarea{padding:9px 10px;border:1px solid #c7d0dd;border-radius:7px;font-size:14px;font-family:inherit}
fieldset{border:1px solid var(--line);border-radius:8px;padding:12px}
legend{color:var(--navy);font-weight:600;font-size:13px}
.inline{display:inline-flex;gap:6px}
.chip{display:inline-block;background:#eaf0fb;color:#26467e;border-radius:14px;padding:3px 11px;margin:3px 3px 3px 0;font-size:12px}
.pill{background:#eef2f8;border-radius:10px;padding:2px 9px;font-size:12px;color:#40495a}
.block{background:#fff;border:1px solid var(--line);border-radius:8px;padding:12px;margin:8px 0}
.note{background:#eef4ff;border:1px solid #cfe0ff;color:#26467e;border-radius:8px;padding:10px 14px;margin:12px 0;font-size:14px}
.note.ok{background:#e9f7ec;border-color:#bfe6c8;color:var(--ok)}
.note.error{background:#fdeceb;border-color:#f3c2be;color:var(--lo)}
.note code{background:#dde7f6;padding:1px 5px;border-radius:4px}
.or{color:#6a7686;text-align:center;font-size:13px}
.score{font-weight:700;padding:3px 9px;border-radius:12px;color:#fff}
.score.hi{background:var(--ok)}.score.mid{background:var(--warn)}.score.lo{background:#8892a3}
.adminlink{background:rgba(255,255,255,.14)}
.cols{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}
.cols .stack{max-width:none}
.suggestform{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:8px}
.inlbl{display:flex;align-items:center;gap:6px;font-size:13px;color:#40495a}
.mergebox{display:inline-flex;gap:6px;align-items:center;margin-left:auto}
.looklist{margin:6px 0;padding:0;list-style:none;font-size:14px;color:#40495a}
.looklist li{margin:2px 0}
.lookrow{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:3px 0;border-bottom:1px solid #eef2f8}
.lookrow form{margin:0}
.linkx{background:none;border:0;color:#b3261e;cursor:pointer;font-size:13px;line-height:1;padding:2px 6px;border-radius:5px}
.linkx:hover{background:#fdeceb}

/* Access Management (admin/access_management.html) — per-app rights badges + fieldset
   accents. Reuses the existing semantic colors (--ok/--warn/--lo) rather than a new palette. */
.rights-badge{display:inline-block;border-radius:10px;padding:2px 9px;font-size:12px;font-weight:600;white-space:nowrap}
.rights-administrator{background:#fdeceb;color:var(--lo)}
.rights-write,.rights-manager{background:#fdf3e6;color:var(--warn)}
.rights-read,.rights-self,.rights-talent_center{background:#eef2f8;color:#40495a}
.rights-none{background:#f2f3f5;color:#98a1ad;font-style:italic;font-weight:500}
fieldset.accent-cv{border-left:4px solid var(--app-cv)}
fieldset.accent-opp{border-left:4px solid var(--app-opp)}
fieldset.accent-contracts{border-left:4px solid #7c5cff}
fieldset.accent-settings{border-left:4px solid var(--app-settings)}
.soon-tag{background:#f1eaff;color:#6d4fd6;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;border-radius:8px;padding:2px 7px;vertical-align:middle}
.subbu-block{margin-top:10px;padding:10px 12px;background:#faf8ff;border:1px dashed #ded0fa;border-radius:8px}
.accessform{display:none;margin:14px 0}
.accessform.open{display:block}
@media(max-width:760px){.cols{grid-template-columns:1fr}}
/* user badge + logout */
.userbox{display:flex;align-items:center;gap:10px;color:#eaf0fb}
.uname{font-weight:600}
.urole{background:rgba(255,255,255,.16);border-radius:10px;padding:2px 10px;font-size:12px}
.logout{color:#cfe0ff;font-size:13px}
/* login */
.loginbg{margin:0;min-height:100vh;display:flex;align-items:center;justify-content:center;padding:36px;
  background:radial-gradient(1100px 480px at 88% 8%,rgba(70,130,255,.28),transparent 55%),
             radial-gradient(700px 420px at 8% 92%,rgba(50,210,190,.14),transparent 55%),
             linear-gradient(135deg,#0e1a35 0%,#1F3864 48%,#2E5496 100%)}
.login-wrap{display:grid;grid-template-columns:1.05fr .95fr;width:100%;max-width:1080px;
  border-radius:24px;overflow:hidden;box-shadow:0 34px 95px rgba(4,13,32,.34)}
/* hero */
.login-hero{position:relative;overflow:hidden;padding:54px 50px;color:#eaf1ff;
  background:radial-gradient(900px 380px at -10% -20%,rgba(96,150,255,.4),transparent 60%),
             linear-gradient(160deg,#1b2f5c,#0e1a35)}
.hero-tunnel-bg{position:absolute;inset:0;z-index:0;opacity:.45;pointer-events:none;mix-blend-mode:screen}
.hero-tunnel-bg canvas{display:block;width:100%;height:100%}
.hero-brand{position:relative;z-index:1;display:flex;align-items:center;gap:14px;font-size:22px;font-weight:800;letter-spacing:.4px;color:#fff;margin-bottom:52px}
.hero-logo{height:54px;width:auto}
.card-logo{display:block;height:108px;width:auto;margin:0 auto 6px}
.card-brand{text-align:center;font-size:22px;font-weight:800;letter-spacing:.3px;color:var(--navy);margin-bottom:2px}
.wordmark{text-transform:uppercase;font-weight:900;font-size:28px}
.hero-brand .wordmark{letter-spacing:.03em}
.card-brand.wordmark{letter-spacing:.08em}
.wm-x{color:#56f2b7}
.card-brand .wm-x{color:#0f8b8d}
.hero-title{position:relative;z-index:1;font-size:clamp(40px,4.4vw,58px);line-height:1.08;font-weight:900;color:#fff;margin:0 0 14px}
.hero-sub{position:relative;z-index:1;color:#b9c8e8;font-size:16px;line-height:1.55;margin:0 0 32px;max-width:400px}
.hero-features{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:16px;position:relative;z-index:1}
.hero-features li{display:flex;align-items:center;gap:14px;font-size:15px;font-weight:600;color:#edf5ff}
.hero-features li span{width:40px;height:40px;flex:0 0 auto;display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.14);border-radius:10px;font-size:18px}
.hero-orbs i{position:absolute;border-radius:50%;filter:blur(6px);opacity:.5}
.hero-orbs i:nth-child(1){width:180px;height:180px;right:-50px;bottom:-60px;background:radial-gradient(circle,rgba(90,140,255,.6),transparent 70%)}
.hero-orbs i:nth-child(2){width:120px;height:120px;right:80px;top:-40px;background:radial-gradient(circle,rgba(120,90,255,.45),transparent 70%)}
.hero-orbs i:nth-child(3){width:90px;height:90px;left:-30px;bottom:40px;background:radial-gradient(circle,rgba(70,200,255,.4),transparent 70%)}
/* card */
.login-panel{background:#fff;padding:46px;display:flex;flex-direction:column;justify-content:center}
.login-card{width:100%}
.loginbrand{font-size:24px;font-weight:800;color:var(--navy)}
.login-tag{margin:.3em 0 22px;font-size:15px}
.btn.ms{display:inline-flex;align-items:center;gap:10px;background:#2f2f2f;margin:0;width:100%;justify-content:center;padding:14px;min-height:52px}
.btn.ms:hover{background:#000}
.mslogo{font-size:16px}
.divider{display:flex;align-items:center;text-align:center;color:#9aa6b8;font-size:12px;margin:20px 0 16px}
.divider::before,.divider::after{content:"";flex:1;height:1px;background:var(--line)}
.divider span{padding:0 12px}
.login-form{display:flex;flex-direction:column;gap:14px}
.login-form label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;color:#40495a}
.login-form input{padding:11px 12px;border:1px solid var(--line);border-radius:9px;font-size:14px}
.login-form input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(47,111,237,.15)}
.hint{font-size:12px;color:#6a7686;margin-top:-4px}
.hint code{background:#eef2f8;padding:1px 6px;border-radius:5px;font-weight:700;color:var(--navy)}
.btn-block{width:100%;justify-content:center;padding:11px;font-size:15px;margin-top:2px}
.login-error{background:#fdeceb;color:var(--lo);border:1px solid #f3c2be;border-radius:8px;padding:9px 12px;font-size:13px;margin-bottom:14px}
.login-foot{text-align:center;color:#9aa6b8;font-size:12px;margin:20px 0 0}
@media(max-width:760px){.login-wrap{grid-template-columns:1fr;max-width:420px}.login-hero{display:none}}
/* edit forms */
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:16px;margin:8px 0}
.grid2 label{display:flex;flex-direction:column;gap:5px;font-size:13px;color:#40495a}
.grid2 .full{grid-column:1 / -1}
.grid2 .chk{flex-direction:row;align-items:center;gap:6px}
.checkgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:4px 14px;margin-top:6px}
.checkgrid .chk{display:flex;flex-direction:row;align-items:center;gap:6px;font-size:13px;font-weight:400;color:#40495a}
.skillgrid{max-height:190px;overflow:auto;border:1px solid var(--line);border-radius:8px;padding:8px 10px;background:#fff}
.mini{padding:4px 6px;font-size:13px;border:1px solid var(--line);border-radius:6px}
.addform{background:#f4f7fc;border-style:dashed}
.flexrow{display:flex;justify-content:space-between;align-items:center;gap:10px}
.tabs{display:flex;gap:4px;border-bottom:2px solid var(--line);margin:14px 0}
.tab{background:none;border:0;padding:10px 18px;font-size:14px;cursor:pointer;color:#6a7686;border-bottom:3px solid transparent;margin-bottom:-2px}
.tab.active{color:var(--navy);font-weight:700;border-bottom-color:var(--accent)}
.tabpane{padding-top:8px}

/* Search page only — compact "pill" mode switcher sharing the title row, plus a search
   form that collapses to a one-line summary once results are showing (Edit search to
   reopen it), so the candidate table isn't pushed down by a form nobody's editing. */
.search-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:10px}
.search-head h1{margin:0}
.pill-tabs{display:inline-flex;gap:3px;background:#e7edf6;border:1px solid var(--line);border-radius:999px;padding:3px}
.pill-tabs button{border:0;min-height:34px;padding:0 15px;border-radius:999px;background:transparent;color:#6a7686;font-weight:700;font-size:13.5px;cursor:pointer}
.pill-tabs button.active{background:#fff;color:var(--navy);box-shadow:0 4px 12px rgba(31,56,100,.12)}
.search-form{background:#fff;border:1px solid var(--line);border-radius:10px;padding:14px 16px;margin-bottom:4px}
.inline-fields{display:grid;gap:10px;align-items:end}
.inline-fields.filters{grid-template-columns:1.1fr 1.1fr .7fr 1fr auto}
.inline-fields.job{grid-template-columns:1.6fr 1fr .9fr auto}
.inline-fields.ai{grid-template-columns:1.8fr .9fr auto}
.inline-fields label{display:flex;flex-direction:column;gap:5px;font-size:12.5px;font-weight:650;color:#40495a}
.inline-fields input,.inline-fields select,.inline-fields textarea{font:inherit;min-height:38px;border:1px solid #c7d2e2;border-radius:8px;padding:8px 10px;font-weight:400}
.inline-fields textarea{resize:vertical;min-height:42px}
.skill-chip-row{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line);max-height:110px;overflow:auto}
.skill-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid #d7e2f2;border-radius:999px;padding:0 11px;min-height:29px;font-size:12.5px;color:#33405c;background:#f8fbff;font-weight:400;cursor:pointer}
.collapse-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:11px 16px;flex-wrap:wrap;margin-bottom:4px}
.collapse-bar span{color:#6a7686;font-size:13.5px}
.search-panel.collapsed .search-form{display:none}
.search-panel:not(.collapsed) .collapse-bar{display:none}
/* MSA's step-wizard nav (Create + Edit share this via _msa_fields.html) — a left step
   rail + progress bar + a Review step, replacing plain horizontal tabs for this
   particularly large (~90-field) form. Steps stay freely clickable (no gating), so this
   works for jumping straight to one section on Edit just as well as guided create. */
.wizard{display:grid;grid-template-columns:230px minmax(0,1fr);gap:18px;align-items:start;margin-top:10px}
.wizard-side{position:sticky;top:66px;background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.wizard-progress{height:6px;background:#e7edf7;border-radius:999px;margin:14px 14px 0;overflow:hidden}
.wizard-progress-fill{height:100%;width:14%;background:linear-gradient(90deg,var(--accent),var(--navy));border-radius:inherit;transition:width .18s ease}
.wizard-steps{padding:10px;display:flex;flex-direction:column;gap:2px}
.wizard-step{display:flex;align-items:center;gap:10px;padding:9px 10px;border:0;background:none;border-radius:8px;cursor:pointer;text-align:left;font-size:13px;color:#40495a;width:100%}
.wizard-step:hover{background:#f2f6fc}
.wizard-step.active{background:#ebf2ff;color:var(--navy);font-weight:700}
.wizard-step-num{width:24px;height:24px;flex:0 0 auto;border-radius:50%;background:#edf2fa;color:#6b7b93;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:800}
.wizard-step.active .wizard-step-num{background:var(--accent);color:#fff}
.wizard-step.done .wizard-step-num{background:var(--ok);color:#fff}
.wizard-main{min-width:0}
.wizard-footer{position:sticky;bottom:0;display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.95);backdrop-filter:blur(6px);border-top:1px solid var(--line);padding:12px 4px;margin-top:14px}
.review-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.review-box{border:1px solid var(--line);border-radius:8px;padding:14px;background:#fff}
.review-box h4{margin:0 0 8px;color:var(--navy);font-size:14px}
.review-box dl{margin:0;display:grid;gap:6px}
.review-box div{display:grid;grid-template-columns:45% 1fr;gap:8px;font-size:12px}
.review-box dt{color:#6a7686;font-weight:600}
.review-box dd{margin:0;overflow-wrap:anywhere}
@media (max-width:860px){
  .wizard{grid-template-columns:1fr}
  .wizard-side{position:static}
  .review-grid{grid-template-columns:1fr}
}
.onboard{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin-top:14px}
.onboard .block{display:flex;flex-direction:column}
/* LinkedIn-style profile */
.crumb{margin:0 0 12px}
.pcard{background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px 22px;margin:14px 0}
.phead{display:flex;gap:18px;align-items:flex-start}
.avatar{width:76px;height:76px;border-radius:50%;background:var(--blue);color:#fff;display:flex;align-items:center;justify-content:center;font-size:28px;font-weight:700;flex:0 0 auto;text-transform:uppercase}
img.avatar{object-fit:cover}
.avatar-sm{width:28px;height:28px;font-size:11px}
.namecell{display:flex;align-items:center;gap:8px}
.pinfo{flex:1}
.pinfo h1{margin:0 0 2px}
.headline{font-size:15px;color:#26313f;margin-bottom:2px}
.crole{font-size:14px;color:#40495a;margin-bottom:4px}
.pactions{flex:0 0 auto}
.sechead{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
.sechead h2{margin:0;border:0;padding:0}
.iconbtn{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;color:#40495a;font-size:16px;text-decoration:none}
.iconbtn:hover{background:#eef2f8;text-decoration:none}
.avatarwrap{position:relative;flex:0 0 auto}
.avatarbtn{position:absolute;bottom:-4px;right:-4px;width:26px;height:26px;background:#fff;border:1px solid #dde3ee;box-shadow:0 1px 3px rgba(0,0,0,.15)}
.item{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid var(--line)}
.item:first-of-type{border-top:0}
.itembody{flex:1}
.ititle{font-weight:600;color:#1c2430}
.isub{color:#40495a;font-size:14px}
.bullets{margin:6px 0 4px;padding-left:18px}
.bullets li{margin:2px 0;font-size:14px}
.verified{color:var(--ok);font-size:12px;font-weight:600}
.formactions{display:flex;gap:10px;align-items:center}
.delform{margin-top:10px}
.btn.danger{background:#fff;color:var(--lo);border:1px solid var(--lo)}
.btn.danger:hover{background:#fdeceb}
.foot{max-width:1000px;margin:30px auto;padding:14px 20px;color:#8a94a4;font-size:12px;border-top:1px solid var(--line)}

.busy-overlay{position:fixed;inset:0;background:rgba(20,28,45,.55);z-index:999;display:flex;align-items:center;justify-content:center;cursor:wait}
.busy-card{background:#fff;border-radius:14px;padding:32px 36px;min-width:280px;max-width:360px;text-align:center;box-shadow:0 12px 40px rgba(0,0,0,.25)}
.busy-spinner{width:36px;height:36px;margin:0 auto 16px;border:4px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:busy-spin 0.8s linear infinite}
@keyframes busy-spin{to{transform:rotate(360deg)}}

/* Contract Generator (contracts/*.html) — status chips, repeating resource/party rows,
   the inherited-from-Opportunity note, and the Generate Contract dialog. */
.status-draft{background:#eef2f8;color:#40495a}
.status-ready-for-signature{background:#fdf3e6;color:var(--warn)}
.status-signed{background:#e9f7ec;color:var(--ok)}
.actioncell{display:flex;gap:6px;flex-wrap:wrap}
.btn.ghost.contracts{color:var(--app-contracts);border-color:var(--app-contracts)}
.btn.ghost.contracts:hover{background:#f5f2ff}
.inherited-note{display:flex;align-items:flex-start;gap:8px;background:#f7f5ff;border:1px dashed #ded0fa;border-radius:8px;padding:9px 12px;font-size:13px;color:#5c4d99;margin:4px 0 14px}
.inherited-note b{color:var(--navy)}
.reslist{display:flex;flex-direction:column;gap:0;background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px 14px;margin:8px 0;overflow-x:auto}
.resrow{display:grid;grid-template-columns:1.3fr 1fr 1fr 1.3fr .6fr .6fr .6fr .7fr .7fr .7fr 1fr .9fr .8fr .8fr .8fr auto;gap:8px;align-items:end;padding:10px 0;border-bottom:1px solid var(--line);min-width:1560px}
.resrow:last-of-type{border-bottom:0}
.resrow input,.resrow select{padding:6px 7px;border:1px solid var(--line);border-radius:6px;font-size:13px;font-family:inherit;width:100%}
.reshead{display:grid;grid-template-columns:1.3fr 1fr 1fr 1.3fr .6fr .6fr .6fr .7fr .7fr .7fr 1fr .9fr .8fr .8fr .8fr auto;gap:8px;font-size:11px;color:#6a7686;text-transform:uppercase;letter-spacing:.02em;padding-bottom:6px;border-bottom:2px solid var(--line);min-width:1560px}
.partyrow{display:grid;grid-template-columns:120px 1.2fr 1fr 1fr auto;gap:8px;align-items:end;padding:10px 0;border-bottom:1px solid var(--line)}
.partyrow:last-of-type{border-bottom:0}
.partyrow input,.partyrow select{padding:6px 7px;border:1px solid var(--line);border-radius:6px;font-size:13px;font-family:inherit;width:100%}
.partyhead{display:grid;grid-template-columns:120px 1.2fr 1fr 1fr auto;gap:8px;font-size:11px;color:#6a7686;text-transform:uppercase;letter-spacing:.02em;padding-bottom:6px;border-bottom:2px solid var(--line)}
.sigrow,.sighead{grid-template-columns:120px 1.2fr 1fr auto}
.rmrow{background:#fff;border:1px solid var(--line);color:var(--lo);border-radius:6px;width:30px;height:30px;cursor:pointer;font-size:15px;line-height:1}
.ratecardrow{display:grid;grid-template-columns:1.2fr .8fr .6fr .8fr .8fr .8fr .8fr .8fr auto;gap:8px;align-items:end;padding:10px 0;border-bottom:1px solid var(--line);min-width:820px}
.ratecardrow:last-of-type{border-bottom:0}
.ratecardrow input{padding:6px 7px;border:1px solid var(--line);border-radius:6px;font-size:13px;font-family:inherit;width:100%}
.ratecardhead{display:grid;grid-template-columns:1.2fr .8fr .6fr .8fr .8fr .8fr .8fr .8fr auto;gap:8px;font-size:11px;color:#6a7686;text-transform:uppercase;letter-spacing:.02em;padding-bottom:6px;border-bottom:2px solid var(--line);min-width:820px}
.modal-overlay{position:fixed;inset:0;background:rgba(20,28,45,.5);z-index:999;display:flex;align-items:center;justify-content:center;padding:20px}
.modal-overlay[hidden]{display:none}
.modal-card{background:#fff;border-radius:12px;box-shadow:0 12px 40px rgba(20,28,45,.25);max-width:460px;width:100%;padding:22px}
.modal-card h3{margin:0 0 4px;color:var(--navy);font-size:17px}
.modal-card .muted.small{margin:0 0 16px}
.modal-card label{display:flex;flex-direction:column;gap:5px;font-size:13px;color:#40495a;margin-bottom:14px}
.modal-card select{padding:8px 9px;border:1px solid var(--line);border-radius:6px;font-size:14px;font-family:inherit;width:100%}
.modal-card .rowbtns{margin:6px 0 0;justify-content:flex-end}
.busy-msg{margin:0 0 14px;color:var(--navy);font-size:14px;line-height:1.4}
.busy-bar{height:6px;border-radius:4px;background:var(--bg);overflow:hidden}
.busy-bar-fill{height:100%;background:var(--accent);width:0;transition:width .3s linear}
