/* App alignment: brings the marketing pages in step with the logged-in workspace, so prospects see the look they get
   inside. Values are taken from the app's own stylesheets: tokens, buttons and cards from assets/css/dashboard-2026.css
   (.dx: the case dashboard and intake) and the plan table and status pills from dashboard/firm-billing.php (.bl-cmp,
   .bl-pill). Loaded by includes/saas-header.php after every page stylesheet, so it only adjusts shared components;
   page colours and layouts stay as they are. */

/* Tokens: the dashboard's palette and radius. */
.hx{--line:#e3e8f1;--violet:#7c5cff;--r:18px;--card-shadow:0 20px 40px -34px rgba(20,40,90,.45)}

/* Typography: the workspace sets text in Manrope (dashboard.css body, firm-billing, the case dashboard headings). */
.hx,.site-header,.site-footer,.hx-page footer{font-family:'Manrope',system-ui,sans-serif}
.hx p,.hx li{letter-spacing:-.005em}
/* Kickers on dark panels use the dashboard hero's soft blue (.dx-kicker), not cyan. */
.hx .hx-kicker-light,.hx .hx-mod-extras .hx-mod-name{color:#9cc0ff}

/* Buttons: the dashboard's 11px-radius button (.dx-btn), one size up for marketing. */
.hx .hx-btn,.site-header .nav-cta{border-radius:11px;font-family:'Manrope',system-ui,sans-serif;font-weight:700;letter-spacing:0}
.hx .hx-btn{min-height:46px;padding:0 20px;font-size:14.5px;justify-content:center}
.hx .hx-btn-line{border-color:var(--line);color:#26324a!important}
.hx .hx-btn-line:hover{border-color:#b9cbf5;color:var(--blue)!important}

/* Cards: white, 1px line, 18px radius and the soft dashboard shadow (.dx-directory, .dx-pipeline). */
.hx .hx-plan,.hx .hx-mod,.hx .hx-who-card,.hx .hx-faq-list details{border-radius:18px;box-shadow:var(--card-shadow)}
.hx .hx-plan-pop:before{border-radius:19px}
.hx .hx-mod:after{border-radius:18px}
.hx .hx-mod-viz{border-radius:14px}

/* Status pills: the colours the workspace uses for ok / warning / problem (.bl-pill, .bl-st). */
.hx .hx-pill{border-radius:999px;font-weight:800;font-size:11.5px}
.hx .hx-pill-green{background:#e8f6ee;color:#14753a}
.hx .hx-pill-amber{background:#fff4e0;color:#8a5a00}
.hx .hx-pill-red{background:#fdecea;color:#b42318}
.hx .hx-pill-blue{background:#eef3ff;color:#2b4fa3}

/* Plan comparison: the same table the firm sees under Plan & billing (.bl-cmp). */
.hx .hx-compare-wrap{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--card-shadow);overflow-x:auto}
.hx .hx-compare{width:100%;border-collapse:collapse;font-size:13px}
.hx .hx-compare td{font-family:'Manrope',system-ui,sans-serif;font-weight:600;font-size:13px}
.hx .hx-compare th,.hx .hx-compare td{padding:11px 12px;border-bottom:1px solid #eef2f7;text-align:center;color:#2b3f5c;vertical-align:middle}
.hx .hx-compare tbody th{text-align:left;color:#5b6d82;font-weight:600;font-size:13px}
.hx .hx-compare thead th{border-bottom:1px solid var(--line);vertical-align:bottom;background:#fff}
.hx .hx-compare thead b{display:block;font-family:'Manrope',system-ui,sans-serif;font-size:14.5px;color:#14243b}
.hx .hx-compare thead small{display:block;font-size:11.5px;font-weight:600;color:#6a7b90;margin-top:2px}
.hx .hx-compare .is-pop{background:#f3f6ff}
.hx .hx-compare tr.hx-cmp-group th{padding-top:18px;font-size:10.5px;font-weight:800;letter-spacing:.13em;text-transform:uppercase;color:#3157d5;background:#fff}
.hx .hx-compare tr:last-child>*{border-bottom:0}
.hx .hx-no{color:#a3afc2}

/* "From Professional" style plan badge, used where a workspace tool needs a higher plan. */
.hx-tier{display:inline-block;margin-left:6px;padding:1px 7px;border-radius:999px;font-size:10.5px;font-weight:800;letter-spacing:.02em;background:#eef3ff;color:#2b4fa3;vertical-align:1px;white-space:nowrap}
.hx-mod-extras .hx-tier{background:rgba(122,162,255,.18);color:#bcd0ff}
.hx-plan-pop .hx-tier{background:rgba(255,255,255,.12);color:#dfe7ff}

/* ---- Product screens: the mock-ups copy the workspace screens they stand for (see includes/app-visuals.php). ---- */
/* Side rail: the workspace's navy and active blue, with no menu labels (the site does not show the real dashboard). */
.av-rail{flex:none;width:48px;padding:12px 0;display:flex;flex-direction:column;align-items:center;gap:10px;background:linear-gradient(#07111f,#0a1a2e 58%,#0d223b)}
.av-rail b{width:22px;height:22px;margin-bottom:6px;border-radius:7px;border:1.5px solid rgba(228,187,68,.7);background:rgba(200,168,75,.12)}
.av-rail i{width:22px;height:22px;border-radius:7px;background:rgba(255,255,255,.08)}
.av-rail i.on{background:rgba(37,99,235,.55)}
.av-kicker{display:block;font-size:9.5px!important;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#3157d5!important;margin-bottom:2px}
/* Case header (investigation-overview.php): pipeline stage, metric badges and the three-step tracker. */
.av-main .hx-case-head b{font-size:16px}
.av-stage{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;background:#eef3ff;color:#2b4fa3;font-size:11px;font-weight:800;white-space:nowrap}
.av-stage i{width:7px;height:7px;border-radius:2px;background:#3b82f6}
.av-badges{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
.av-mb{padding:4px 8px;border-radius:8px;border-left:3px solid #cbd5e1;background:#f8fafc;color:#1e2d45;font-size:10.5px}
.av-mb strong{font-weight:800}
.av-tag{align-self:center;padding:3px 8px;border:1px solid #c7d2fe;border-radius:7px;background:#eef2ff;color:#3730a3;font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.av-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.av-steps div{display:grid;grid-template-columns:auto 1fr;column-gap:7px;align-items:center;padding:7px 9px;border:1px solid var(--line);border-radius:10px;background:#fff}
.av-steps div.on{border-bottom:2px solid #2563eb}
.av-steps em{grid-row:span 2;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#e8eef9;color:#2b4fa3;font-style:normal;font-size:10.5px;font-weight:800}
.av-steps .on em{background:#2563eb;color:#fff}
.av-steps b{font-size:11.5px;font-family:'Manrope',system-ui,sans-serif}
.av-steps small{font-size:10px;color:#6a7b90}
/* Fund-flow graph (the investigation workspace graph, .fiw-*): white canvas, ringed nodes with a glyph, observed edges
   solid blue, probable edges dashed amber, amounts with a kind line under them. */
.hx .av-flow{background:radial-gradient(ellipse at 50% 50%,rgba(34,197,94,.07),transparent 70%),#fff;border:1px solid var(--line);margin:10px 0}
.av-flow .hx-flow-edges path.o{stroke:#3b82f6}
.av-flow .hx-flow-edges path.p{stroke:#e49313;stroke-dasharray:7 5;stroke-dashoffset:0;opacity:0;animation:hxFade .6s 1.2s forwards}
.av-flow .hx-node b{font-family:'DM Sans','Manrope',sans-serif;font-size:11px;font-weight:650;color:#0b1f17;background:none;text-shadow:0 0 3px #fff,0 0 3px #fff}
.av-flow .hx-node small{font-size:7.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#4f6f8c;background:none;text-shadow:0 0 3px #fff}
.av-n{position:relative;display:grid;place-items:center;width:30px;height:30px;margin-bottom:3px;border-radius:50%;border:2px solid #94a3b8;background:#f1f5f9;color:#203a55;font-style:normal;font-size:13px;font-weight:700;line-height:1}
.av-n:after{content:"";position:absolute;right:-2px;top:-2px;width:8px;height:8px;border-radius:50%;background:#3b82f6;border:1.5px solid #fff}
.av-n.av-n-p:after{background:#e49313}
.av-n-src{width:38px;height:38px;border:3px solid #22c55e;background:#0b1f17;color:#9fe3b8;font-size:16px}
.av-n-svc{border-color:#6481a2;background:#eef3f8}
.av-n-ex{border-color:#15803d;background:#dcfce7;color:#14532d}
.av-flow .hx-amt{display:flex;flex-direction:column;align-items:center;background:none;padding:0;color:#173b5b;font-family:'DM Sans','Manrope',sans-serif;font-size:10px;font-weight:800;text-shadow:0 0 3px #fff,0 0 3px #fff}
.av-flow .hx-amt small{font-family:'Manrope',sans-serif;font-size:6.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#5e7c96}
/* Risk ring and level (kyt.php .risk-ring, wallet-risk-report.php level colours: severe / high / medium / low). */
.av-ring{--c:#b91c1c;position:relative;display:grid;place-content:center;justify-items:center;width:96px;height:96px;border-radius:50%;background:conic-gradient(var(--c) calc(var(--s)*1%),#e5ecec 0)}
.av-ring:before{content:"";position:absolute;inset:9px;border-radius:50%;background:#fff}
.av-ring strong,.av-ring span{position:relative;font-family:'Manrope',sans-serif}
.av-ring strong{font-size:27px;font-weight:800;color:#173c48;line-height:1}
.av-ring span{font-size:8.5px;font-weight:700;text-transform:uppercase;color:#75898d}
.av-ring-sm{width:46px;height:46px}
.av-ring-sm:before{inset:5px}
.av-ring-sm strong{font-size:15px}
.av-level{display:inline-block;margin-top:8px;padding:3px 10px;border-radius:999px;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.av-level-severe{background:#fdecea;color:#b91c1c}
/* KYT module card. */
.av-kyt{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(0,1.15fr);gap:26px;align-items:center;width:100%}
.av-risk{display:flex;flex-direction:column;align-items:center}
.av-eyebrow{display:block;margin-bottom:4px;font-size:9.5px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#3157d5}
.av-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:7px 0;border-bottom:1px solid #edf1f2;font-size:11.5px;color:#2b3f5c}
.av-row:last-child{border-bottom:0}
.av-row span{display:flex;align-items:center;gap:6px;min-width:0}
.av-row b{color:#173c48;font-family:'Manrope',sans-serif;font-weight:800}
.av-row b small{font-size:9.5px;font-weight:600;color:#75898d}
.av-why .av-row b{color:#b91c1c}
.av-dot{flex:none;width:7px;height:7px;border-radius:2px;background:#94a3b8}
.av-dot-r{background:#dc2626}.av-dot-g{background:#15803d}.av-dot-a{background:#e49313}
.av-bar{position:absolute!important;left:0;bottom:-1px;height:2px;width:0;border-radius:2px;transition:width 1.2s cubic-bezier(.3,.8,.3,1) .4s}
.av-bar-r{background:#dc2626}.av-bar-g{background:#15803d}.av-bar-a{background:#e49313}
.is-in .av-bar,.hx-pd-visual .av-bar{width:var(--w)}
.hx-mod-kyt .hx-mod-viz{padding:18px 24px}
.hx-dot-green{background:#15803d}
/* The small trace graph in "How a case works" uses the same node colours. */
.hx .hx-mini-graph .hx-nodes circle{fill:#f1f5f9;stroke:#94a3b8;stroke-width:2}
.hx .hx-mini-graph .hx-nodes circle:first-child{fill:#0b1f17;stroke:#22c55e;stroke-width:3}
.hx .hx-mini-graph .hx-nodes .hx-node-bridge{fill:#eef3f8;stroke:#6481a2}
.hx .hx-mini-graph .hx-nodes .hx-node-hit{fill:#dcfce7;stroke:#15803d}
.hx .hx-mini-graph .hx-hit-ring{stroke:#15803d}
.hx .hx-mini-graph .hx-labels .hit{fill:#15803d}
/* Case directory (dashboard/index.php): pipeline by workflow stage, then one row per case. */
.av-pipe{margin:4px 0 10px}
.av-pipe-bar{display:flex;gap:2px;height:8px;border-radius:5px;overflow:hidden}
.av-pipe-key{display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:7px;font-size:10px;color:#5b6d82}
.av-pipe-key span{display:inline-flex;align-items:center;gap:5px}
.av-pipe-key i{width:7px;height:7px;border-radius:2px}
.av-st-n{background:#94a3b8}.av-st-t{background:#3b82f6}.av-st-r{background:#e49313}.av-st-p{background:#22a866}.av-st-c{background:#7c5cff}
.av-cases{display:flex;flex-direction:column;gap:6px}
.av-case{display:grid;grid-template-columns:1.1fr 1.3fr auto auto;gap:10px;align-items:center;padding:8px 10px;border:1px solid var(--line);border-left:3px solid #94a3b8;border-radius:10px;background:#fff;font-size:11px}
.av-case-r{border-left-color:#e49313}.av-case-t{border-left-color:#3b82f6}.av-case-p{border-left-color:#22a866}
.av-case b{display:block;font-family:'Manrope',sans-serif;font-size:12px;color:#14243b}
.av-case small{display:flex;align-items:center;gap:4px;color:#6a7b90;font-size:10px}
.av-net{width:6px;height:6px;border-radius:2px;background:#3b82f6}
.av-case em{display:block;font-style:normal;font-size:8.5px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.av-st-txt-r{color:#c27a0e}.av-st-txt-t{color:#2563eb}.av-st-txt-p{color:#15803d}
.av-dec{padding:3px 8px;border:1px solid #f5d38c;border-radius:7px;background:#fff8e6;color:#8a5a00;font-size:10px;font-weight:800;white-space:nowrap}
.av-upd{display:block!important;text-align:left}
.av-upd b{font-size:11px}
/* Evidence vault (firm-vault.php .ev-file): meta line, SHA-256, review and lead tags. */
.av-files li{align-items:flex-start}
.av-files li>div small{display:block}
.av-hash{font-size:9.5px!important}
.av-tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.av-tags i{font-style:normal;padding:2px 7px;border-radius:999px;font-size:9.5px;font-weight:700;background:#f1f5f9;color:#475569}
.av-tags .av-tag-ok{background:#e8f6ee;color:#14753a}
.av-tags .av-tag-new{background:#fff4e0;color:#8a5a00}
.av-tags .av-tag-lead{background:#eef3ff;color:#2b4fa3}
/* Firm analytics: cases opened by week. */
.av-weeks{display:flex;flex-direction:column;gap:8px}
.av-weeks>div{display:flex;align-items:flex-end;gap:5px;height:110px;padding-top:12px;border-bottom:1px solid var(--line)}
.av-weeks span{position:relative;flex:1;height:var(--h);border-radius:4px 4px 0 0;background:linear-gradient(#5b8cff,#2f6bff)}
.av-weeks b{position:absolute;left:0;right:0;top:-13px;text-align:center;font-size:9px;color:#6a7b90}
.av-pane .hx-kpi-row b{display:block}
.av-pane .hx-seg i{white-space:nowrap}
/* Team & access table (firm-analytics team table, team.php roles). */
.av-table{width:100%;border-collapse:collapse;font-size:11px;font-family:'Manrope',sans-serif}
.av-table th{padding:7px 8px;border-bottom:1px solid var(--line);text-align:left;font-size:8.5px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:#6a7b90}
.av-table td{padding:7px 8px;border-bottom:1px solid #eef2f7;color:#2b3f5c;font-weight:600}
.av-table td:first-child{display:grid;grid-template-columns:auto 1fr;column-gap:8px;align-items:center}
.av-table td:first-child .hx-av{grid-row:span 2}
.av-table td b{font-size:11.5px;color:#14243b}
.av-table td small{font-size:10px;color:#6a7b90;font-weight:600}
.av-table td.av-warn{color:#b42318;font-weight:800}

/* Product-page result cards: the white result card each tool shows in the workspace (wallet-risk-report.php,
   entity-dd-report.php, audit-report-view.php, tool-findings-panel.php, telegram-message-detail.php). */
.ac-card{position:relative;background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:16px 16px 14px;color:#1e2d45;font-family:'Manrope',system-ui,sans-serif;font-size:12px;line-height:1.5;text-align:left;box-shadow:0 30px 60px -28px rgba(8,24,52,.55)}
.ac-card *{box-sizing:border-box}
.ac-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.ac-eyebrow{display:block;font-size:9.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#64748b}
.ac-title{display:block;margin:2px 0 8px;font-size:15px;font-weight:800;color:#0f172a;letter-spacing:-.01em}
.ac-quiet{color:#64748b;font-size:10.5px;white-space:nowrap}
.ac-h{display:block;margin:12px 0 5px;font-size:12px;font-weight:800;color:#0f172a}
.ac-table{width:100%;border-collapse:collapse;font-size:11px}
.ac-table th{padding:5px 6px;border-bottom:1px solid #e2e8f0;text-align:left;font-size:8.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#64748b}
.ac-table td{padding:6px;border-bottom:1px solid #edf1f2;vertical-align:top}
.ac-table tr:last-child td{border-bottom:0}
.ac-table .r{text-align:right}
.ac-table b{font-weight:800}
.ac-mono,.ac-card code{font-family:'JetBrains Mono',ui-monospace,monospace;font-size:10px;color:#334155;background:none;padding:0}
.ac-bad{color:#b91c1c;font-weight:700}
.ac-warn{color:#b45309;font-weight:700}
.ac-draft{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:-4px -4px 12px;padding:7px 9px;border-radius:8px;background:#fffbeb;font-size:10.5px}
.ac-btns{display:flex;gap:6px;flex:none}
.ac-btn{display:inline-block;padding:4px 10px;border-radius:7px;background:#0f172a;color:#fff;font-size:10.5px;font-weight:700;white-space:nowrap}
.ac-btn-ghost{background:#fff;color:#0f172a;border:1px solid #cbd5e1}
.ac-grade{--g:#475569;flex:none;width:66px;height:66px;border-radius:13px;border:3px solid var(--g);color:var(--g);display:flex;flex-direction:column;align-items:center;justify-content:center}
.ac-grade b{font-size:27px;line-height:1;font-weight:800}
.ac-grade span{font-size:9.5px;font-weight:700}
.ac-top{display:grid;grid-template-columns:66px 1fr;gap:12px;align-items:center}
.ac-sevs{display:flex;flex-wrap:wrap;gap:5px;font-size:10.5px}
.ac-sev{display:inline-block;min-width:56px;padding:2px 5px;border-radius:5px;text-align:center;font-size:9px;font-weight:700;letter-spacing:.04em}
.ac-sev-c{color:#991b1b;background:#fee2e2}.ac-sev-h{color:#9a3412;background:#ffedd5}.ac-sev-m{color:#854d0e;background:#fef9c3}.ac-sev-l{color:#1e40af;background:#dbeafe}
.ac-finds{list-style:none;margin:0;padding:0}
.ac-finds li{display:flex;gap:8px;align-items:baseline;padding:5px 0;border-top:1px solid #edf2f7;font-size:11px}
.ac-finds li b{font-weight:700;color:#0f172a}
.ac-keep{margin-top:10px;padding-top:8px;border-top:1px solid #e2e8f0}
.ac-keep label{display:grid;grid-template-columns:14px 1fr;gap:7px;align-items:start;padding:4px 0;font-size:11px}
.ac-keep label i{width:12px;height:12px;margin-top:2px;border:1.5px solid #94a3b8;border-radius:3px}
.ac-keep label i.on{background:#2563eb;border-color:#2563eb;box-shadow:inset 0 0 0 2px #fff}
.ac-keep small{display:block;color:#64748b;font-size:10px}
.ac-group{display:block;margin-top:8px;font-size:10.5px;font-weight:800;color:#0f172a}
.ac-pending{border:2px solid #f59e0b;background:#fffdf7}
.ac-sub{margin-top:10px;padding:10px;border:1px solid #e2e8f0;border-radius:10px;background:#fff}
.ac-facts{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;margin:6px 0 8px;font-size:11px}
.ac-facts dt{color:#64748b;font-weight:600}
.ac-facts dd{margin:0;color:#0f172a;font-weight:600;min-width:0;overflow-wrap:anywhere}
.ac-pill{display:inline-block;padding:2px 8px;border-radius:999px;background:#f1f5f9;color:#334155;font-size:10px;font-weight:700}
.ac-pill-amber{background:#fff4e0;color:#8a5a00}
.ac-foot{margin:9px 0 0;color:#64748b;font-size:10px}

@media (max-width:760px){
  .ac-card{padding:13px 12px}
  .ac-draft{flex-direction:column;align-items:flex-start}
  .ac-hide-sm{display:none}
  .av-rail{display:none}
  .av-badges .av-mb:nth-child(2),.av-tag{display:none}
  .av-steps small{display:none}
  .av-n{width:20px;height:20px;font-size:9px}
  .av-n-src{width:24px;height:24px;font-size:11px}
  .av-flow .hx-node small,.av-flow .hx-amt{display:none}
  .av-kyt{grid-template-columns:auto minmax(0,1fr);gap:16px}
  .av-why{display:none}
  .av-ring{width:84px;height:84px}
  .av-case{grid-template-columns:1fr auto}
  .av-case>div:nth-child(2),.av-upd{display:none}
  .av-table th:nth-child(4),.av-table td:nth-child(4),.av-table th:nth-child(5),.av-table td:nth-child(5){display:none}
  .hx .hx-btn{min-height:44px;font-size:14px}
  .hx .hx-compare{font-size:12px}
  .hx .hx-compare th,.hx .hx-compare td{padding:9px 8px}
}
