/* ===========================================================================
   Sample CLIENT portal — the live client.vacei.com shell and screens.
   ---------------------------------------------------------------------------
   Every value here is read off the shipped portal-v2 code
   (vacei-client-portal origin/main, 2026-09-03):
     PortalTopBar.tsx · PortalRail.tsx (the Books rail, books-rail.css tokens)
     CompanyPicker.tsx (S1) · dashboard/[companyId]/view.tsx + ServiceCard /
     AccountingHeroCard / CompanyDetailsCard (S2) · EngagementWorkspaceView +
     tabs + tokens.tsx + portal-workspace.css (S4) · services/request/view.tsx
     (S5) · portal-shell.css · portal-company.css.
   The product paints its geometry inline; here it is the same numbers as
   classes. Only the white-label slots differ (see _demo.css).
   Namespace `cp-`.
   =========================================================================== */

:root {
  --cp-ground: #F4F3ED;
  --cp-ink: #17221E;
  --cp-teal: #33646E;
  --cp-mute: #8A948E;
  --cp-desc: #5C6660;
  --cp-lime: #C9EE4A;
  --cp-card-border: rgba(23,34,30,0.09);
  --cp-divider: rgba(23,34,30,0.07);
  --cp-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --cp-display: 'Outfit', 'Inter', system-ui, sans-serif;

  /* books-rail.css — the rail's own tokens, scoped in the product, global here */
  --bk-glass: rgba(255,255,255,0.66);
  --bk-glass-border: rgba(255,255,255,0.85);
  --bk-glass-hover: rgba(255,255,255,0.78);
  --bk-ink: #16211f;
  --bk-body: #1b2a27;
  --bk-mute: rgba(27,42,39,0.55);
  --bk-primary: #17695f;
  --bk-primary-soft-border: #dceee9;
  --bk-logo: #17695f;
  --bk-status-review-bg: #f8eec9;
  --bk-status-review-deep: #7a4a08;
  --bk-shadow-glass: 0 16px 40px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.8);
  --bk-shadow-card: 0 2px 12px rgba(27,42,39,0.06);
}

body { background: var(--cp-ground); color: var(--cp-ink); }
.vp-display { font-family: var(--cp-display); }
.vf-num { font-family: var(--cp-mono); }

@keyframes vp-fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.vp-fadeup { animation: vp-fadeUp .3s ease both; }

/* ── S0 · top bar (PortalTopBar.tsx) ─────────────────────────────────────── */
.cp-topbar {
  position: sticky; top: 40px; z-index: 60;
  height: 62px; padding: 0 28px 0 36px; /* 36 + 16 = the rail logo's centre line */
  display: flex; align-items: center; justify-content: space-between;
  background: var(--cp-teal);
}
.cp-topbar-left { display: flex; align-items: center; gap: 20px; }
.cp-brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.cp-brand .dm-logo-slot { width: 32px; height: 32px; border-radius: 8px; opacity: .7; }
.cp-wordmark { font-weight: 700; font-size: 13.5px; letter-spacing: .18em; color: #fff; }
.cp-back {
  border: none; font-size: 13px; cursor: pointer; padding: 6px 8px; border-radius: 8px;
  white-space: nowrap; background: transparent; color: rgba(255,255,255,.78);
}
.cp-back:hover { background: rgba(255,255,255,.12); color: #fff; }
.cp-avatar {
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 800; background: var(--cp-lime); color: #233f47;
}
.cp-avatar:hover { background: #d8f566; }

/* ── S1 · your companies (CompanyPicker.tsx) ─────────────────────────────── */
.cp-s1 {
  min-height: calc(100vh - 102px); position: relative; overflow: hidden;
  background: linear-gradient(160deg, #4E7B84 0%, #33646E 48%, #2A545D 100%);
}
.cp-s1-orb {
  position: absolute; top: -180px; right: -140px; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.13), transparent 62%); pointer-events: none;
}
.cp-s1-col { width: 760px; max-width: 92%; margin: 0 auto; padding: 54px 0 60px; position: relative; text-align: center; }
.cp-welcome {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 6px 16px;
  font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.88);
}
.cp-welcome i { width: 6px; height: 6px; border-radius: 50%; background: var(--cp-lime); display: inline-block; }
.cp-s1 h1 { font-size: 40px; font-weight: 600; letter-spacing: -.015em; color: #fff; margin: 16px 0 0; line-height: 1.15; }
.cp-s1-sub { font-size: 14px; color: rgba(255,255,255,.72); margin: 10px 0 28px; min-height: 18px; }
.cp-card { background: #fff; border: 1px solid var(--cp-card-border); border-radius: 20px; overflow: hidden; text-align: left; }
.cp-co-row {
  display: flex; align-items: center; gap: 14px; padding: 20px 22px; width: 100%;
  border: 0; border-bottom: 1px solid var(--cp-divider); background: transparent;
  text-align: left; color: var(--cp-ink); cursor: pointer; transition: background .14s ease;
}
.cp-co-row:last-child { border-bottom-color: transparent; }
.cp-co-row:hover, .cp-co-row:focus-visible { background: #f7f6f1; }
.cp-flag { width: 22px; height: 15px; border-radius: 3px; border: 1px solid rgba(23,34,30,.16); flex: none; overflow: hidden; display: inline-block; position: relative; background: #fff; }
.cp-flag::after { content: ""; position: absolute; inset: 0 0 0 50%; background: #CF142B; }
.cp-flag.pl::after { inset: 50% 0 0 0; background: #DC143C; }
.cp-co-name { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.cp-co-name b { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-co-reg { font-size: 12.5px; color: var(--cp-mute); white-space: nowrap; font-family: var(--cp-mono); }
.cp-co-status { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.cp-pill { border-radius: 999px; padding: 4px 11px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.cp-pill.ok { background: #EAF3E6; color: #3C6B41; }
.cp-pill.warn { background: #FBF3D9; color: #8A6D1F; }
.cp-pill.req { background: #E4EFEA; color: #33646E; }
.cp-pill.danger { background: #FBEFEF; color: #C24444; }
.cp-attn { font-size: 12.5px; font-weight: 600; color: #B07816; white-space: nowrap; }
.cp-chev { color: var(--cp-mute); font-size: 15px; }
.cp-add {
  border: 1px solid rgba(255,255,255,.30); font-size: 13px; font-weight: 600; color: #fff; cursor: pointer;
  margin-top: 18px; padding: 9px 20px; border-radius: 999px; white-space: nowrap;
  background: rgba(255,255,255,.1); transition: background .14s ease;
}
.cp-add:hover { background: rgba(255,255,255,.18); }
@media (max-width: 640px) {
  .cp-co-row { flex-wrap: wrap; row-gap: 8px; }
  .cp-co-reg { display: none; }
  .cp-co-status { flex: 1 0 100%; padding-left: 36px; }
}

/* ── S0 · shell (CompanyShell.tsx) ───────────────────────────────────────── */
body[data-screen="companies"] .cp-shell { display: none; }
body:not([data-screen="companies"]) .cp-s1 { display: none; }
.cp-shell { display: flex; padding: 16px; gap: 16px; min-height: calc(100vh - 102px); }
.cp-main { flex: 1; min-width: 0; padding-bottom: 98px; }

/* ── Rail (PortalRail.tsx — the Books rail, verbatim geometry) ───────────── */
.cp-rail-wrap { position: relative; flex-shrink: 0; align-self: stretch; width: 72px; z-index: 60; }
.cp-rail-wrap:is(:hover,[data-open]) { z-index: 80; }
.cp-rail {
  position: sticky; top: 118px; /* 40 banner + 62 bar + 16 */
  height: calc(100vh - 102px - 32px);
  width: 72px; display: flex; flex-direction: column;
  overflow-y: auto; overflow-x: hidden; scrollbar-width: none;
  color: var(--bk-ink);
  background: var(--bk-glass); border: 1px solid var(--bk-glass-border); border-radius: 24px;
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--bk-shadow-glass);
  transition: width .2s ease, background .2s ease, box-shadow .2s ease;
}
.cp-rail::-webkit-scrollbar { display: none; }
.cp-rail-wrap:is(:hover,[data-open]) .cp-rail { width: 246px; background: rgba(255,255,255,.94); box-shadow: 0 18px 50px rgba(0,0,0,.16); }
.cp-rail .open { display: none; }
.cp-rail-wrap:is(:hover,[data-open]) .cp-rail .open { display: flex; }
.cp-rail-wrap:is(:hover,[data-open]) .cp-rail .open.block { display: block; }
.cp-rail-wrap:is(:hover,[data-open]) .cp-rail .closed { display: none !important; }

.cp-rail-logo { display: flex; align-items: center; padding: 20px 0 14px; justify-content: center; }
.cp-rail-wrap:is(:hover,[data-open]) .cp-rail-logo { padding: 20px 16px 14px; justify-content: flex-start; }
.cp-rail-logo .dm-logo-slot { width: 32px; height: 32px; color: var(--bk-logo); opacity: .8; }
.cp-rail-lockup { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; }
.cp-rail-rule { width: 1.5px; height: 30px; border-radius: 2px; background: rgba(51,100,110,.4); flex: none; }
.cp-rail-word { display: flex; flex-direction: column; gap: 4px; min-width: 0; overflow: hidden; }
.cp-rail-word b { font-size: 13px; font-weight: 800; letter-spacing: .04em; color: var(--bk-logo); white-space: nowrap; }
.cp-rail-word span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; color: var(--bk-logo); white-space: nowrap; }
.cp-rail-pin {
  margin-left: 4px; width: 32px; height: 32px; border: 0; border-radius: 10px; background: transparent;
  color: var(--bk-mute); display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none;
}
.cp-rail-pin:hover { background: var(--bk-glass-hover); }

.cp-rail-company {
  margin: 0 16px 14px; padding: 10px 12px; border-radius: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; width: calc(100% - 32px);
  background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.9); color: var(--bk-ink);
}
.cp-rail-company:hover { background: #fff; border-color: var(--bk-primary-soft-border); }
.cp-rail-company b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-rail-company span { display: block; font-size: 11.5px; color: var(--bk-mute); }
.cp-rail-company i { font-style: normal; font-size: 11px; color: var(--bk-mute); }

.cp-nav { padding: 0 14px; }
.cp-nav-rows { display: flex; flex-direction: column; gap: 2px; }
.cp-nav-row {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 38px; padding: 8px 12px; border-radius: 12px; border: 0; width: 100%;
  font-size: 13.5px; font-weight: 500; color: var(--bk-body); background: transparent;
  cursor: pointer; text-align: left; transition: background .14s ease, color .14s ease;
}
.cp-rail-wrap:is(:hover,[data-open]) .cp-nav-row { justify-content: flex-start; }
.cp-nav-row:hover { background: var(--bk-glass-hover); }
.cp-nav-row.is-active { font-weight: 600; background: #fff; box-shadow: var(--bk-shadow-card); color: var(--bk-primary); }
.cp-nav-row.is-active:hover { background: #fff; }
.cp-nav-ico { position: relative; flex-shrink: 0; display: block; }
.cp-nav-ico svg { width: 18px; height: 18px; }
.cp-nav-lbl { min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-badge {
  display: flex; align-items: center; justify-content: center; height: 18px; min-width: 18px;
  padding: 0 5px; border-radius: 9px; font-size: 11px; font-weight: 600;
  background: var(--bk-status-review-bg); color: var(--bk-status-review-deep);
}
.cp-badge-dot {
  position: absolute; top: -6px; right: -6px; height: 15px; min-width: 15px; padding: 0 3px;
  display: flex; align-items: center; justify-content: center; border-radius: 999px;
  font-size: 9px; font-weight: 700; line-height: 1;
  background: var(--bk-status-review-bg); color: var(--bk-status-review-deep);
}
.cp-rail-wrap:is(:hover,[data-open]) .cp-badge-dot { display: none; }
.cp-nav-divider { margin: 6px 4px; border-top: 1px solid rgba(0,0,0,.07); }
.cp-rail-dot { display: flex; justify-content: center; padding: 6px 0; }
.cp-rail-dot span { width: 16px; height: 1.5px; border-radius: 2px; background: #D6D6D6; }
.cp-group { padding-top: 6px; }
.cp-group-head {
  display: flex; width: 100%; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; border: 0;
  background: transparent; color: var(--bk-mute); cursor: pointer; text-align: left;
}
.cp-group-head:hover { background: var(--bk-glass-hover); }
.cp-group-head span { flex: 1; min-width: 0; font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-group-head svg { width: 12px; height: 12px; flex-shrink: 0; transition: transform .2s ease; }
.cp-group[data-open="true"] .cp-group-head svg { transform: rotate(180deg); }
.cp-group-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .2s ease-in-out; }
.cp-group[data-open="true"] .cp-group-panel { grid-template-rows: 1fr; }
.cp-group-panel > div { overflow: hidden; }
.cp-group-inner { display: flex; flex-direction: column; gap: 2px; border-radius: 10px; padding: 4px; background: rgba(255,255,255,.4); }
.cp-rail-spacer { flex: 1; min-height: 16px; }
.cp-rail-foot { padding: 0 14px 12px; }
.cp-kbd {
  display: flex; align-items: center; justify-content: center; height: 18px; min-width: 18px; padding: 0 5px;
  border-radius: 5px; font-size: 10px; font-weight: 600; font-family: inherit; font-style: normal;
  background: rgba(255,255,255,.7); border: 1px solid rgba(0,0,0,.09); color: var(--bk-mute);
}
.cp-rail-caption { margin: 0; padding: 12px 12px 0; font-size: 11px; line-height: 1.45; color: var(--bk-mute); }
.cp-rail-lockup-foot { display: flex; align-items: center; gap: 10px; padding: 12px 12px 4px; }
.cp-rail-lockup-foot .dm-logo-slot { width: 18px; height: 18px; border-radius: 5px; color: var(--bk-logo); font-size: 4px; opacity: .5; }
.cp-rail-lockup-foot span { font-size: 12.5px; font-weight: 600; color: var(--bk-mute); }

/* ── S2 · company dashboard (view.tsx) ───────────────────────────────────── */
.cp-band { background: var(--cp-teal); border-radius: 0 0 28px 28px; padding: 30px 0 34px; }
.cp-col { width: 860px; max-width: 92%; margin: 0 auto; }
.cp-band-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; position: relative; }
.cp-band-flag { width: 24px; height: 16px; border-radius: 3px; border: 1px solid rgba(255,255,255,.35); }
.cp-band h1 { margin: 0; font-size: 27px; font-weight: 700; letter-spacing: -.01em; color: #fff; }
.cp-switch { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 999px; cursor: pointer; border: 0; background: transparent; color: #B9CDD2; font-size: 13px; }
.cp-switch:hover { background: rgba(255,255,255,.14); }
.cp-band-pill { border-radius: 999px; padding: 4px 11px; font-size: 11px; font-weight: 700; white-space: nowrap; background: rgba(255,255,255,.14); color: var(--cp-lime); }
.cp-band-meta { color: #B9CDD2; font-size: 13px; margin: 8px 0 0; }
.cp-body { width: 860px; max-width: 92%; margin: 26px auto 60px; display: flex; flex-direction: column; gap: 26px; }
.cp-sec-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cp-sec-h i { width: 4px; height: 18px; border-radius: 999px; background: var(--cp-teal); display: inline-block; flex: none; }
.cp-sec-h span { font-size: 19px; font-weight: 700; }
.cp-needs-row {
  display: flex; align-items: center; gap: 14px; padding: 15px 20px; cursor: pointer;
  transition: background .14s ease; color: var(--cp-ink); border-bottom: 1px solid var(--cp-divider); background: transparent;
}
.cp-needs-row:last-child { border-bottom-color: transparent; }
.cp-needs-row:hover { background: #f7f6f1; }
.cp-needs-well { width: 34px; height: 34px; border-radius: 11px; background: #FBF3D9; color: #8A6D1F; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.cp-needs-row b { flex: 1; font-size: 14px; font-weight: 600; }
.cp-needs-row small { font-size: 12.5px; color: var(--cp-mute); }

.cp-acc {
  position: relative; overflow: hidden; background: var(--cp-ink); border-radius: 24px; padding: 30px 34px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 24px;
}
.cp-acc-glow { position: absolute; top: -140px; right: -100px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(201,238,74,.2), transparent 62%); pointer-events: none; }
.cp-acc-chip { width: 52px; height: 52px; border-radius: 16px; background: #232F29; border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--cp-lime); flex-shrink: 0; }
.cp-acc-copy { flex: 1; min-width: 0; }
.cp-acc-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .16em; color: var(--cp-lime); }
.cp-acc h2 { font-size: 23px; font-weight: 700; color: #fff; margin: 6px 0 0; }
.cp-acc p { font-size: 13.5px; color: rgba(255,255,255,.7); margin: 6px 0 0; }
.cp-acc-cta {
  color: var(--cp-ink); border: none; border-radius: 999px; height: 46px; padding: 0 24px; font-size: 13.5px; font-weight: 700;
  cursor: pointer; white-space: nowrap; position: relative; display: inline-flex; align-items: center; justify-content: center;
  background: #fff; transition: background .14s ease;
}
.cp-acc-cta:hover { background: var(--cp-lime); }

.cp-svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.cp-svc {
  background: #fff; border: 1px solid var(--cp-card-border); border-radius: 20px; padding: 20px 22px;
  display: flex; flex-direction: column; gap: 12px; transition: transform .15s ease, border-color .15s ease;
}
.cp-svc:hover { transform: translateY(-1px); border-color: rgba(23,34,30,.2); }
.cp-svc-top { display: flex; align-items: center; gap: 12px; }
.cp-svc-well { width: 40px; height: 40px; border-radius: 12px; color: var(--cp-teal); display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; background: #EDF0E6; }
.cp-svc.request .cp-svc-well { background: #F1F0E9; }
.cp-svc h3 { font-size: 15px; font-weight: 700; margin: 0; }
.cp-svc p { font-size: 12.5px; color: var(--cp-desc); margin: 2px 0 0; }
.cp-svc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; }
.cp-svc-foot .cp-pill { padding: 5px 12px; }
.cp-svc-link { font-size: 13px; font-weight: 700; white-space: nowrap; color: var(--cp-teal); transition: color .14s ease; margin-left: auto; }
.cp-svc-link:hover { color: var(--cp-ink); }
.cp-ink-pill {
  color: #fff; border: none; border-radius: 999px; height: 34px; padding: 0 18px; font-size: 12.5px; font-weight: 700;
  cursor: pointer; display: inline-flex; align-items: center; white-space: nowrap; background: var(--cp-ink); transition: background .14s ease;
}
.cp-ink-pill:hover { background: #2c3b34; }
.cp-svc-foot .cp-ink-pill { margin-left: auto; }

.cp-details { background: #EDECE4; border-radius: 20px; padding: 24px 28px; }
.cp-details-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--cp-mute); margin-bottom: 14px; }
.cp-details dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 32px; margin: 0; }
.cp-details dl > div { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; border-bottom: 1px solid rgba(23,34,30,.06); padding-bottom: 8px; }
.cp-details dt { color: var(--cp-mute); margin: 0; }
.cp-details dd { font-weight: 600; text-align: right; margin: 0; min-width: 0; }
@media (max-width: 720px) {
  .cp-svc-grid, .cp-details dl { grid-template-columns: 1fr; }
  .cp-acc-cta { width: 100%; }
}

/* ── S4 · engagement workspace (EngagementWorkspaceView.tsx + tabs) ──────── */
.cp-ws-band { background: var(--cp-teal); border-radius: 0 0 28px 28px; padding: 22px 0 20px; }
.cp-ws-col { width: 920px; max-width: 94%; margin: 0 auto; }
.cp-ws-crumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #CDDDE1; }
.cp-ws-crumb .cp-flag { width: 18px; height: 12px; border-radius: 2px; border-color: rgba(255,255,255,.35); }
.cp-ws-title { display: flex; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.cp-ws-title h1 { color: #fff; font-size: 23px; font-weight: 700; margin: 0; }
.cp-tabs { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.cp-tab {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 8px 16px; font-size: 12.5px; font-weight: 600;
  cursor: pointer; white-space: nowrap; background: transparent; color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.35);
}
.cp-tab.is-active { background: #fff; color: var(--cp-ink); border-color: #fff; }
.cp-tab:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cp-tab-badge { background: var(--cp-lime); color: #233F47; border-radius: 999px; padding: 0 6px; font-size: 10px; font-weight: 800; }
.cp-ws-body { width: 920px; max-width: 94%; margin: 22px auto 60px; display: flex; flex-direction: column; gap: 20px; }
.cp-ws-body [data-panel] { display: flex; flex-direction: column; gap: 20px; }
.cp-h16 { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cp-h16 i { width: 4px; height: 16px; border-radius: 999px; background: var(--cp-teal); display: inline-block; flex: none; }
.cp-h16 span { font-size: 16px; font-weight: 700; }

.cp-stages { display: flex; align-items: flex-start; padding: 22px 26px; }
.cp-stage { display: flex; align-items: center; flex: 1 1 0%; min-width: 0; }
.cp-stage:last-child { flex: 0 0 auto; }
.cp-stage-node { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cp-stage-dot {
  width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 700; background: #F1F0E9; color: var(--cp-mute); border: 1px solid rgba(23,34,30,.08);
}
.cp-stage.done .cp-stage-dot { background: #EAF3E6; color: #3C6B41; }
.cp-stage.now .cp-stage-dot { background: var(--cp-ink); color: #fff; border-color: var(--cp-ink); }
.cp-stage-lbl { font-size: 11px; font-weight: 600; color: var(--cp-mute); white-space: nowrap; }
.cp-stage.done .cp-stage-lbl, .cp-stage.now .cp-stage-lbl { color: var(--cp-ink); }
.cp-stage-line { flex: 1; height: 2px; background: rgba(23,34,30,.1); margin: 0 8px 22px; }
.cp-stage.passed .cp-stage-line { background: #9DBD8F; }

.cp-row { display: flex; align-items: center; gap: 14px; padding: 15px 22px; border-bottom: 1px solid var(--cp-divider); transition: background .14s ease; }
.cp-row:last-child { border-bottom-color: transparent; }
.cp-row.link { cursor: pointer; }
.cp-row.link:hover { background: #f7f6f1; }
.cp-row-well { width: 32px; height: 32px; border-radius: 10px; background: #FBF3D9; color: #8A6D1F; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.cp-row-well.doc { width: 36px; height: 36px; border-radius: 11px; background: #F1F0E9; color: var(--cp-teal); font-size: 14px; }
.cp-row-main { flex: 1; min-width: 0; }
.cp-row-t { font-size: 13.5px; font-weight: 600; }
.cp-row.req { padding: 16px 22px; }
.cp-row.req .cp-row-t { font-size: 14px; font-weight: 700; }
.cp-row-s { font-size: 12px; color: var(--cp-mute); margin-top: 2px; }
.cp-row-when { font-size: 12px; color: var(--cp-mute); white-space: nowrap; }
.cp-row.date { padding: 13px 22px; justify-content: space-between; }
.cp-row.date span { font-size: 13.5px; }
.cp-row.date b { font-size: 13px; font-weight: 700; font-family: var(--cp-mono); }
.vpw-ink {
  background: var(--cp-ink); color: #fff; border: none; border-radius: 999px; cursor: pointer; font-family: inherit; white-space: nowrap;
  height: 32px; padding: 0 16px; font-size: 12px; font-weight: 700; transition: background .14s ease; display: inline-flex; align-items: center;
}
.vpw-ink:hover { background: #2c3b34; }
.vpw-ghost { background: transparent; border: none; cursor: pointer; color: var(--cp-teal); font-family: inherit; font-size: 12.5px; font-weight: 700; padding: 6px 10px; transition: color .14s ease; }
.vpw-ghost:hover { color: var(--cp-ink); }
.cp-empty { background: #fff; border: 1px dashed rgba(23,34,30,.15); border-radius: 20px; padding: 18px 22px; font-size: 13px; color: var(--cp-mute); }
.cp-upload-row { display: flex; align-items: center; gap: 14px; padding: 15px 22px; border-bottom: 1px solid var(--cp-divider); }
.cp-upload-row:last-child { border-bottom-color: transparent; }
.cp-upload-row span { flex: 1; font-size: 13.5px; font-family: var(--cp-mono); min-width: 0; word-break: break-all; }
.cp-upload-row small { font-size: 12px; color: var(--cp-mute); }
.cp-card-actions { display: flex; justify-content: flex-end; padding: 8px 6px 0; }

.cp-work { display: flex; gap: 16px; align-items: flex-start; }
.cp-work-rail { width: 200px; flex: none; display: flex; flex-direction: column; gap: 4px; }
.cp-work-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 0; background: transparent; font-size: 13px; font-weight: 600; color: var(--cp-desc); cursor: pointer; text-align: left; }
.cp-work-item:hover { opacity: .85; }
.cp-work-item.is-on { background: #fff; color: var(--cp-ink); border: 1px solid var(--cp-card-border); }
.cp-work-item small { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--cp-mute); }
.cp-work-pane { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cp-adj { padding: 18px 22px; }
.cp-adj-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cp-adj-head b { font-size: 14px; font-weight: 700; flex: 1; min-width: 160px; }
.cp-adj p { font-size: 12.5px; color: var(--cp-desc); margin: 6px 0 0; line-height: 1.5; }
.cp-adj-table { margin-top: 12px; border: 1px solid var(--cp-divider); border-radius: 12px; overflow: hidden; }
.cp-adj-table div { display: grid; grid-template-columns: 1fr 110px 110px; gap: 12px; padding: 9px 14px; font-size: 12.5px; border-top: 1px solid var(--cp-divider); }
.cp-adj-table div:first-child { border-top: 0; background: #FAFAF7; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: var(--cp-mute); }
.cp-adj-table div span:nth-child(n+2) { text-align: right; font-family: var(--cp-mono); }
.cp-adj-actions { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.cp-adj-actions .vpw-ink { padding: 0 18px; }
.cp-msg { display: flex; gap: 12px; padding: 12px 22px; }
.cp-msg-av { width: 32px; height: 32px; border-radius: 50%; background: var(--cp-teal); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.cp-msg-av.me { background: var(--cp-lime); color: #233F47; }
.cp-msg-meta { font-size: 12px; color: var(--cp-mute); }
.cp-msg-meta strong { color: var(--cp-ink); }
.cp-msg-body { font-size: 13.5px; margin-top: 3px; line-height: 1.5; word-break: break-word; }
.cp-composer { display: flex; gap: 10px; padding: 14px 22px; border-top: 1px solid rgba(23,34,30,.08); margin-top: 6px; }
.cp-composer input {
  flex: 1; min-width: 0; border: 1px solid rgba(23,34,30,.14); border-radius: 999px; padding: 10px 16px; font-size: 13px; font-family: inherit; outline: none; background: #FCFCFA; color: var(--cp-ink);
}
.cp-composer input::placeholder { color: var(--cp-mute); }
.cp-composer input:focus { border-color: rgba(23,34,30,.3); }
.cp-composer .vpw-ink { height: 40px; padding: 0 20px; font-size: 12.5px; }
@media (max-width: 860px) {
  .cp-work { flex-direction: column; }
  .cp-work-rail { width: 100%; flex-direction: row; flex-wrap: wrap; }
  .cp-row, .cp-stages { flex-wrap: wrap; row-gap: 8px; }
}

/* ── S5 · request (services/request/view.tsx) ────────────────────────────── */
.cp-req-col { width: 560px; max-width: 92%; margin: 56px auto 60px; }
.cp-req-card { background: #fff; border: 1px solid var(--cp-card-border); border-radius: 20px; padding: 34px; }
.cp-req-h { display: flex; align-items: center; gap: 10px; }
.cp-req-h i { width: 4px; height: 20px; border-radius: 999px; background: var(--cp-teal); display: inline-block; flex: none; }
.cp-req-h h1 { font-size: 22px; font-weight: 700; margin: 0; }
.cp-req-ctx { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--cp-mute); margin: 8px 0 22px 14px; }
.cp-req-ctx .cp-flag { width: 18px; height: 12px; border-radius: 2px; }
.cp-req-label { display: block; font-size: 13px; font-weight: 700; color: var(--cp-ink); margin-bottom: 8px; }
.cp-req-label span { color: var(--cp-mute); font-weight: 500; }
.cp-req-card textarea {
  width: 100%; border: 1px solid rgba(23,34,30,.14); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; font-family: inherit;
  resize: vertical; outline: none; background: #FCFCFA; color: var(--cp-ink); min-height: 84px;
}
.cp-req-card textarea::placeholder { color: var(--cp-mute); }
.cp-req-legend { font-size: 13px; font-weight: 700; margin: 20px 0 10px; }
.cp-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.cp-pick { border-radius: 999px; padding: 9px 16px; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; background: #fff; color: var(--cp-desc); border: 1px solid rgba(23,34,30,.14); }
.cp-pick.is-on { background: var(--cp-ink); color: #fff; border-color: var(--cp-ink); }
.cp-send {
  width: 100%; margin-top: 24px; border-radius: 999px; height: 46px; font-size: 14px; font-weight: 700; border: none;
  background: var(--cp-ink); color: #fff; cursor: not-allowed; opacity: .45; transition: background .14s ease, opacity .14s ease;
}
.cp-send.is-ready { opacity: 1; cursor: pointer; }
.cp-send.is-ready:hover { background: #2c3b34; }
.cp-req-note { text-align: center; font-size: 12.5px; color: var(--cp-desc); margin: 10px 0 0; }

/* ── Floating "Talk to us" (TalkToTeamButton.tsx) ────────────────────────── */
.cp-talk {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; border: 0; cursor: pointer;
  background: #191c1f; color: #fff; padding: 14px 20px 14px 16px; font-size: 14px; font-weight: 600;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1); transition: transform .15s ease;
}
.cp-talk:hover { transform: scale(1.03); }
.cp-talk svg { width: 18px; height: 18px; }

/* Below lg the rail becomes a drawer in the product; the sample simply lets
   the collapsed 72px rail stand and stacks the columns. */
@media (max-width: 1023px) {
  .cp-topbar-left { gap: 12px; }
}
@media (max-width: 640px) {
  .cp-shell { padding: 10px; gap: 10px; }
  .cp-rail-wrap { display: none; }
  .cp-band, .cp-ws-band { border-radius: 0 0 20px 20px; }
}
