/* Enterprise AI for Legal and its workflow pages. The shared context-first (cx-) styles are in construction.css, the
   multi-stage picture grid in financial-services.css; these are the legal surfaces (lg-). Palette follows the shared
   re- surfaces: plum for the record, green for agrees, amber for a lawyer’s call, rust for a gap. */

.cx-a-data+.cx-a-text{font-size:13px}

/* Shared bits */
.re-solo-body>[class^="lg-"],.re-main>[class^="lg-"]{margin:0 clamp(14px,2vw,24px) 14px}
.re-solo-body>.re-activity{margin:0 clamp(14px,2vw,24px) 10px}
.lg-stack{display:grid;gap:10px;min-width:0}
.lg-row{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:12px;align-items:start;min-width:0}
.lg-fig{margin:0;min-width:0}
.lg-fig svg{display:block;width:100%;height:auto;background:#fbf7f4;border:1px solid #e4d9e0;border-radius:10px}
.lg-fig figcaption{font-size:11px;color:var(--re-muted);margin-top:4px}
.re-scrub .lg-fig svg{max-height:40svh}
.lg-t,.lg-axis-t{font:11px Instrument,sans-serif;fill:#6b5866}
.lg-bar-t{font:600 11.5px Instrument,sans-serif;fill:#2c2230}
.lg-ask-t{font:600 11px Instrument,sans-serif;fill:#9a5a18}
.lg-gap-t{font:600 11px Instrument,sans-serif;fill:#b0451f}
.lg-ok-t{font:600 11px Instrument,sans-serif;fill:#2f6a3e}
.lg-axis{stroke:#cbb9c4;stroke-width:1;fill:none}
.lg-mark{stroke:#b0451f;stroke-width:1.5;stroke-dasharray:4 3;fill:none}
.lg-bar rect{fill:#6a405e}.lg-bar-hot rect{fill:#b0451f}.lg-bar-ok rect{fill:#2f6a3e}.lg-bar-warn rect{fill:#c27a2c}
.lg-track{fill:#ece3e8}.lg-fill{fill:#2f6a3e}.lg-fill-warn{fill:#c27a2c}
.lg-draft{padding:12px 14px;background:#fff;border:1px solid #e4d9e0;border-left:3px solid #6a405e;border-radius:4px 8px 8px 4px;min-width:0}
.lg-draft header{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--re-muted);margin-bottom:6px}
.lg-draft header b{text-transform:none;letter-spacing:0;font-size:13px;color:#2c2230}
.lg-draft p{margin:0 0 8px;font:13.5px/1.5 Georgia,serif;color:#2e2430}
.lg-doc{margin:0;padding:10px 12px;background:#fff;border:1px solid #e4d9e0;border-radius:6px;font:13px/1.5 Georgia,serif}
.lg-doc small,.lg-compare small{display:block;font:10.5px Instrument,sans-serif;text-transform:uppercase;letter-spacing:.05em;color:var(--re-muted)}
.lg-doc p{margin:4px 0 0}

/* Sheets */
.lg-sheet{display:grid;background:#fff;border:1px solid #e4d9e0;border-radius:8px;overflow:hidden;min-width:0}
.lg-sheet-row{display:grid;grid-template-columns:minmax(5.5em,.7fr) minmax(0,1.6fr) minmax(0,1.2fr) minmax(6em,.8fr);gap:8px;padding:7px 10px;border-top:1px solid #efe7eb;font-size:12px;line-height:1.35}
.lg-sheet-row:first-child{border-top:0}
.lg-sheet-head{background:#f6f0f3;font-size:10.5px;text-transform:uppercase;letter-spacing:.05em;color:var(--re-muted)}
.lg-sheet-head b{font-weight:600}
.lg-sheet-row em{font-style:normal;font-weight:600}
em.lg-st-ok{color:#2f6a3e}em.lg-st-warn,em.lg-st-ask{color:#9a5a18}em.lg-st-gap{color:#b0451f}

/* Entity charts */
.lg-node rect{fill:#fff;stroke:#cbb9c4}.lg-node-flag rect{stroke:#b0451f;stroke-width:2}.lg-node-ask rect{stroke:#c27a2c;stroke-width:2}
.lg-node-t{font:600 11px Instrument,sans-serif;fill:#2c2230}.lg-node-s{font:10px Instrument,sans-serif;fill:#6b5866}
.lg-link{stroke:#cbb9c4;stroke-width:1.5;fill:none}.lg-link-flag{stroke:#b0451f;stroke-width:2;stroke-dasharray:5 3}.lg-link-ask{stroke:#c27a2c;stroke-width:2;stroke-dasharray:5 3}

/* Approval matrix and legend */
.lg-cell{stroke:#fff}.lg-route-0{fill:#cfe0d2}.lg-route-1{fill:#dcc6d3}.lg-route-2{fill:#f0d3b4}
.lg-cell-t{font:600 11px Instrument,sans-serif;fill:#2c2230}
.lg-legend{list-style:none;margin:0;padding:0;display:grid;gap:6px;min-width:0}
.lg-legend li{display:flex;gap:8px;align-items:center;padding:7px 10px;background:#fff;border:1px solid #e4d9e0;border-radius:6px;font-size:12.5px;line-height:1.3}
.lg-legend li i{flex:none;width:11px;height:11px;border-radius:3px;background:#6a405e}
.lg-legend li b{margin-left:auto;font-size:16px}
.lg-legend .lg-lg-ok i{background:#2f6a3e}.lg-legend .lg-lg-warn i{background:#c27a2c}

/* Chains of deeds and versions */
.lg-deed{fill:#6a405e}.lg-deed-ask{fill:#c27a2c}
.lg-enc{fill:#fbf1ec;stroke:#b0451f}
.lg-compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:0}
.lg-compare article{padding:10px 12px;background:#fff;border:1px solid #e4d9e0;border-radius:8px;font:13px/1.45 Georgia,serif}
.lg-compare p{margin:4px 0 0}
.lg-compare-new{border-style:dashed!important}
.lg-compare mark{background:#f6e4cf}

/* Shipments, questions, playbook */
.lg-sh-a{fill:#6a405e}.lg-sh-b{fill:#c27a2c}
.lg-qs{margin:0;padding:10px 12px 10px 30px;background:#fff;border:1px solid #e4d9e0;border-left:3px solid #c27a2c;border-radius:8px;font-size:12.5px;line-height:1.4;display:grid;gap:4px}
.lg-rung rect{fill:#fff;stroke:#cbb9c4}.lg-rung-0 rect{stroke:#2f6a3e;stroke-width:2}.lg-rung-2 rect{stroke:#c27a2c;stroke-width:2}.lg-rung-3 rect{fill:#fbf1ec;stroke:#b0451f;stroke-width:2}
.lg-cmd{display:flex;gap:10px;align-items:center;padding:10px 12px;background:#2c2230;color:#fff;border-radius:8px;font-size:13px}
.lg-cmd span{padding:2px 6px;border:1px solid #6b5866;border-radius:4px;font-size:11px}

/* Evidence, chronology, authorities */
.lg-src-0{fill:#6a405e}.lg-src-1{fill:#8c7a88}.lg-src-2{fill:#b79fb0}
.lg-ev{fill:#8c7a88}.lg-ev-c{fill:#c27a2c}
.lg-au-ok{fill:#cfe0d2}.lg-au-ask{fill:#f0d3b4}.lg-au-gap{fill:#efc3b2}

/* Alerts, notice cards, checks */
.lg-alerts{display:grid;gap:8px;min-width:0}
.lg-cards{list-style:none;margin:0;padding:0;display:grid;gap:6px;min-width:0}
.lg-card{display:grid;gap:2px;padding:9px 11px;background:#fff;border:1px solid #e4d9e0;border-radius:8px;font-size:12.5px;line-height:1.35}
.lg-card small{color:var(--re-muted);font-size:11px}
.lg-card em{font-style:normal;color:#6a405e;font-size:11.5px}
.lg-card-hot{border-left:3px solid #2f6a3e}.lg-card-warn{border-left:3px solid #c27a2c}
.lg-checks{list-style:none;margin:0;padding:0;display:grid;gap:5px;min-width:0}
.lg-checks li{display:flex;gap:8px;align-items:center;padding:7px 10px;background:#fff;border:1px solid #e4d9e0;border-radius:6px;font-size:12.5px}
.lg-checks li i{flex:none;width:11px;height:11px;border-radius:50%;background:#2f6a3e}
.lg-checks small{margin-left:auto;color:var(--re-muted);font-size:11.5px}
.lg-ck-gap{color:#7a2f14}.lg-ck-gap i{background:#b0451f!important}
.lg-spark-line{fill:none;stroke:#b0451f;stroke-width:2.5}

/* Spend, obligations, invoice */
.lg-pt{fill:#8c7a88}.lg-pt-over{fill:#b0451f}
.lg-ob{fill:#8c7a88}.lg-ob-c{fill:#c27a2c}
.lg-line{fill:#cbb9c4}.lg-line-ex{fill:#b0451f}
.lg-issues{display:grid;gap:6px;min-width:0}
.lg-issue{margin:0;padding:7px 9px;border-left:3px solid #b0451f;background:#fbf1ec;display:grid;gap:1px;font-size:12.5px;line-height:1.35}
.lg-issue span{color:var(--re-muted);font-size:11.5px}

@media (max-width:760px){
  .lg-row,.lg-compare{grid-template-columns:minmax(0,1fr)}
  .lg-sheet-row{grid-template-columns:5.5em minmax(0,1fr)}
  .lg-sheet-row>:nth-child(n+3){grid-column:2}
}
