/* Louisa — Legal module (delinquency, notices, eviction & collection cases, payment plans). Prefix: lg- */

.lg-page .stack > * + * { margin-top: 16px; }
.lg-page .section-t.mt8 { margin-top: 8px; } .lg-page .section-t.mt16 { margin-top: 16px; }

/* ------------------------------------------------------------ KPI row */
.lg-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.lg-kpi { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 15px; color: inherit; position: relative; }
a.lg-kpi:hover { color: inherit; }
.lg-kpi-h { display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 500; color: #344054; }
.lg-kpi-ic { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--primary-50); color: var(--primary); }
.lg-kpi-ic.red { background: var(--red-50); color: var(--red); } .lg-kpi-ic.amber { background: var(--amber-50); color: var(--amber); }
.lg-kpi-ic.purple { background: var(--purple-50); color: var(--purple); } .lg-kpi-ic.teal { background: var(--teal-50); color: var(--teal); }
.lg-kpi-ic.green { background: var(--green-50); color: var(--green); }
.lg-kpi-v { font-size: 24px; font-weight: 700; color: var(--ink); letter-spacing: -.025em; font-variant-numeric: tabular-nums; margin-top: 8px; line-height: 1.15; }
.lg-kpi-v small { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.lg-kpi-s { font-size: 12.5px; color: var(--muted); min-height: 18px; }
.lg-kpi-s .hot { color: var(--red); font-weight: 600; } .lg-kpi-s .warm { color: var(--amber); font-weight: 600; }
.lg-kpi .lg-go { position: absolute; right: 12px; top: 14px; color: var(--subtle); opacity: 0; transition: opacity .12s, transform .12s; }
a.lg-kpi:hover .lg-go { opacity: 1; transform: translateX(2px); }

/* ------------------------------------------------------------ needs attention */
.lg-attn { display: flex; flex-direction: column; }
.lg-attn-i { display: flex; gap: 12px; align-items: center; padding: 11px 10px; margin: 0 -10px; border-radius: 10px; color: inherit; transition: background .12s; }
.lg-attn-i:hover { background: #f6f8fb; color: inherit; }
.lg-attn-i + .lg-attn-i { border-top: 1px solid var(--line-2); }
.lg-attn-i:hover + .lg-attn-i { border-top-color: transparent; }
.lg-attn-t { flex: 1; min-width: 0; }
.lg-attn-t b { display: block; color: var(--ink); font-weight: 600; font-size: 13.5px; line-height: 1.35; }
.lg-attn-t small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-attn-a { display: flex; align-items: center; gap: 8px; flex: none; }
.lg-attn-a .ic { color: var(--subtle); }
.lg-allclear { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: 12px; background: linear-gradient(135deg, #f1faf4, #f6fbff); border: 1px solid #d8eee0; }
.lg-allclear .li-ic { width: 40px; height: 40px; }
.lg-allclear b { display: block; color: var(--ink); } .lg-allclear small { color: var(--muted); }

/* ------------------------------------------------------------ calendar tile & court dates */
.lg-cal { width: 44px; flex: none; border-radius: 9px; overflow: hidden; text-align: center; background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--sh-1); display: inline-flex; flex-direction: column; }
.lg-cal small { display: block; background: var(--primary); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 0 1px; }
.lg-cal b { display: block; font-size: 17px; font-weight: 700; color: var(--ink); padding: 3px 0 4px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lg-cal.red small { background: var(--red); } .lg-cal.amber small { background: #d08a0b; } .lg-cal.gray small { background: #98a2b3; } .lg-cal.teal small { background: var(--teal); }
.lg-dates { display: flex; flex-direction: column; gap: 4px; }
.lg-date { display: flex; gap: 12px; align-items: center; padding: 9px 10px; margin: 0 -10px; border-radius: 10px; color: inherit; }
a.lg-date:hover { background: #f6f8fb; color: inherit; }
.lg-date-t { flex: 1; min-width: 0; }
.lg-date-t b { display: block; color: var(--ink); font-weight: 600; font-size: 13.5px; }
.lg-date-t small { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-when { font-size: 12px; font-weight: 600; color: var(--primary-700); background: var(--primary-50); border-radius: 6px; padding: 3px 7px; white-space: nowrap; }
.lg-when.soon { color: #8f5600; background: var(--amber-50); }

.lg-fort-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.lg-legend span { display: inline-flex; align-items: center; gap: 5px; }
.lg-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--purple); display: inline-block; }
.lg-dot.skip { border-radius: 2px; background: repeating-linear-gradient(135deg, #dfe3e9, #dfe3e9 2px, #f3f4f6 2px, #f3f4f6 4px); box-shadow: inset 0 0 0 1px #d5dae2; }
.lg-fort { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; margin-top: 10px; }
.lg-fort-wd { text-align: center; font-size: 10.5px; font-weight: 700; color: var(--subtle); letter-spacing: .04em; }
.lg-fort-d { position: relative; text-align: center; font-size: 12.5px; font-weight: 600; color: #344054; padding: 7px 0 9px; border-radius: 8px; background: #f7f9fc; box-shadow: inset 0 0 0 1px var(--line-2); font-variant-numeric: tabular-nums; }
.lg-fort-d.skip { background: repeating-linear-gradient(135deg, #f6f7f9, #f6f7f9 4px, #eef0f3 4px, #eef0f3 8px); color: var(--subtle); box-shadow: none; }
.lg-fort-d.past { color: var(--subtle); }
.lg-fort-d.today { background: var(--primary); color: #fff; box-shadow: 0 2px 6px -2px rgba(31, 95, 174, .6); }
.lg-fort-d.ev::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--purple); }
.lg-fort-d.today.ev::after { background: #fff; }

/* ------------------------------------------------------------ pipeline bars */
.lg-pipe { display: flex; flex-direction: column; gap: 9px; }
.lg-pipe-r { display: grid; grid-template-columns: 128px minmax(0, 1fr) 28px; gap: 12px; align-items: center; font-size: 13px; }
.lg-pipe-r span { color: #344054; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-pipe-r b { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.lg-pipe-b { height: 8px; border-radius: 6px; background: #eef1f5; overflow: hidden; }
.lg-pipe-b i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #5b8fd6, #1f5fae); min-width: 0; }
.lg-pipe-r.court .lg-pipe-b i { background: linear-gradient(90deg, #8e79d6, #6a4fbf); }
.lg-pipe-r.end .lg-pipe-b i { background: linear-gradient(90deg, #e07a7a, #d63c3c); }
.lg-pipe-r.zero span, .lg-pipe-r.zero b { color: var(--subtle); }

/* ------------------------------------------------------------ quick reference */
.lg-ref { display: flex; flex-direction: column; }
.lg-ref-i { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); align-items: flex-start; }
.lg-ref-i:first-child { border-top: 0; padding-top: 2px; }
.lg-ref-n { flex: none; min-width: 58px; text-align: center; border-radius: 8px; background: #f3f6fa; box-shadow: inset 0 0 0 1px var(--line); padding: 5px 6px; line-height: 1.1; }
.lg-ref-n b { display: block; font-size: 16px; color: var(--ink); letter-spacing: -.02em; }
.lg-ref-n small { font-size: 10.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.lg-ref-t b { display: block; color: var(--ink); font-size: 13px; font-weight: 600; }
.lg-ref-t small { color: var(--muted); font-size: 12.5px; display: block; line-height: 1.45; margin-top: 1px; }

/* ------------------------------------------------------------ disclaimer */
.lg-disclaimer { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 12px 14px; border-radius: 11px; font-size: 12.5px; line-height: 1.5;
  color: #475467; background: rgba(255,255,255,.6); border: 1px dashed #cdd5e1; }
.lg-disclaimer .ic { color: var(--primary); margin-top: 1px; flex: none; }
.lg-disclaimer b { color: var(--ink); }

/* ------------------------------------------------------------ table cells */
.lg-who { display: flex; align-items: center; gap: 11px; min-width: 200px; }
.lg-who .avatar { width: 32px; height: 32px; font-size: 12px; }
.lg-who > div { min-width: 0; }
.lg-days { display: inline-flex; align-items: baseline; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: #eef1f5; color: #475467; }
.lg-days b { font-size: 13px; font-variant-numeric: tabular-nums; }
.lg-days.amber { background: var(--amber-50); color: #8f5600; box-shadow: inset 0 0 0 1px #f3dfb0; }
.lg-days.red { background: var(--red-50); color: #b52f2f; box-shadow: inset 0 0 0 1px #f6cfcf; }
.lg-days.crit { background: var(--red); color: #fff; }
.lg-money { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lg-money-s { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lg-flags { display: flex; gap: 5px; flex-wrap: wrap; }
.lg-next { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.lg-next small { font-size: 11.5px; color: var(--muted); max-width: 220px; text-align: right; line-height: 1.3; white-space: normal; }
.lg-rowmenu { display: inline-flex; gap: 6px; align-items: center; justify-content: flex-end; }
.lg-rowmenu .pop-m { min-width: 230px; }
.lg-rowmenu .pop-i { width: 100%; text-align: left; border: 0; background: none; font: inherit; cursor: pointer; }
.lg-rowmenu form { margin: 0; }
.table td.lg-act { width: 1%; white-space: nowrap; }
tr.lg-muted td { opacity: .78; }
.lg-tabs-n { display: inline-flex; min-width: 20px; height: 18px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: #eef1f5; color: #475467; font-size: 11px; align-items: center; justify-content: center; font-weight: 700; vertical-align: 1px; }
.tabs a.on .lg-tabs-n { background: var(--primary-50); color: var(--primary); }
.lg-meter { min-width: 140px; }
.lg-meter-t { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.lg-meter-t b { font-size: 12.5px; color: var(--ink); font-weight: 600; white-space: nowrap; }
.lg-meter-t small { font-size: 11px; color: var(--subtle); font-weight: 600; }
.lg-meter-b { height: 5px; border-radius: 4px; background: #eef1f5; margin-top: 5px; overflow: hidden; }
.lg-meter-b span { display: block; height: 100%; border-radius: 4px; background: var(--primary); }
.lg-meter-b.amber span { background: #e3a008; } .lg-meter-b.red span { background: var(--red); } .lg-meter-b.gray span { background: #98a2b3; }

/* ------------------------------------------------------------ stage stepper */
.lg-steps { position: relative; list-style: none; margin: 0; padding: 4px 2px 2px; display: flex; overflow-x: auto; scrollbar-width: thin; }
.lg-step { position: relative; flex: 1 1 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 0 2px; min-width: 60px; }
.lg-step::before { content: ""; position: absolute; top: 13px; left: calc(-50% + 16px); right: calc(50% + 16px); height: 2px; background: #e3e8ef; border-radius: 2px; }
.lg-step:first-child::before { display: none; }
.lg-step i { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; font-weight: 700;
  background: #fff; color: #98a2b3; box-shadow: inset 0 0 0 2px #dfe5ee; position: relative; z-index: 1; }
.lg-step b { font-size: 11px; font-weight: 600; color: var(--muted); line-height: 1.25; }
.lg-step small { font-size: 11px; color: var(--subtle); margin-top: -3px; }
.lg-step.done::before, .lg-step.cur::before, .lg-step.end::before { background: #6cc191; }
.lg-step.done i, .lg-step.end i { background: var(--green); color: #fff; box-shadow: none; }
.lg-step.done b { color: #1c6b3f; }
.lg-step.cur i { background: var(--primary); color: #fff; box-shadow: 0 0 0 5px rgba(31, 95, 174, .15); }
.lg-step.cur b { color: var(--primary-700); font-weight: 700; }
.lg-step.cur small { color: var(--primary); }
.lg-step.end b { color: #1c6b3f; font-weight: 700; }
.lg-step.end small { color: #1c6b3f; }
.lg-hero-case { padding: 18px 20px 16px; }
.lg-hero-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 16px; }
.lg-hero-top h2 { font-size: 17px; letter-spacing: -.015em; }
.lg-hero-top .t-sub { color: var(--muted); font-size: 13px; margin-top: 3px; }
.lg-figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-2); margin-top: 16px; padding-top: 14px; }
.lg-fig { padding: 0 14px; border-left: 1px solid var(--line-2); }
.lg-fig:first-child { padding-left: 0; border-left: 0; }
.lg-fig small { display: block; font-size: 12px; color: var(--muted); }
.lg-fig b { display: block; font-size: 17px; color: var(--ink); font-weight: 700; letter-spacing: -.015em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.lg-fig b.neg { color: var(--red); }

/* ------------------------------------------------------------ cards on detail pages */
.lg-person { display: flex; gap: 12px; align-items: center; }
.lg-person b { display: block; color: var(--ink); }
.lg-person small { color: var(--muted); display: block; }
.lg-contact { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.lg-contact a, .lg-contact span { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: 13.5px; overflow-wrap: anywhere; }
.lg-contact a:hover { color: var(--primary); }
.lg-contact .ic { color: var(--subtle); flex: none; }
.lg-tl-body { white-space: pre-wrap; color: #475467; font-size: 13px; margin-top: 3px; }
.tl-purple { background: var(--purple-50); color: var(--purple); box-shadow: inset 0 0 0 1px #ddd3f6; }
.lg-compose { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fbfcfe; margin-bottom: 18px; }
.lg-compose textarea { min-height: 70px; }
.lg-compose-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; justify-content: space-between; }
.lg-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
.lg-actions .btn { justify-content: flex-start; }
details.lg-panel { border-top: 1px solid var(--line-2); }
details.lg-panel:first-of-type { border-top: 0; }
details.lg-panel > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 12px 0; font-weight: 600; color: var(--ink); font-size: 13.5px; }
details.lg-panel > summary::-webkit-details-marker { display: none; }
details.lg-panel > summary .chev { margin-left: auto; color: var(--subtle); transition: transform .15s; }
details.lg-panel[open] > summary .chev { transform: rotate(180deg); }
details.lg-panel > summary .li-ic { width: 28px; height: 28px; border-radius: 8px; }
details.lg-panel .lg-panel-b { padding: 0 0 14px; }
details.lg-panel .field { margin-bottom: 10px; }
.lg-file { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line-2); }
.lg-file:first-child { border-top: 0; }
.lg-file-ic { width: 32px; height: 36px; border-radius: 6px; background: #f1f4f9; color: #475467; display: inline-flex; align-items: center; justify-content: center; flex: none; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; box-shadow: inset 0 0 0 1px var(--line); }
.lg-file-ic.pdf { background: #fdecec; color: #b52f2f; box-shadow: inset 0 0 0 1px #f6cfcf; }
.lg-file-ic.img { background: var(--teal-50); color: var(--teal); box-shadow: inset 0 0 0 1px #c6e6eb; }
.lg-file-ic.html { background: var(--primary-50); color: var(--primary); box-shadow: inset 0 0 0 1px #d3e2f6; }
.lg-file-t { flex: 1; min-width: 0; }
.lg-file-t a { display: block; color: var(--ink); font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-file-t a:hover { color: var(--primary); }
.lg-file-t small { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.lg-ev { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-2); }
.lg-ev:first-child { border-top: 0; }
.lg-ev-t { flex: 1; min-width: 0; }
.lg-ev-t b { display: block; color: var(--ink); font-size: 13.5px; }
.lg-ev-t small { display: block; color: var(--muted); font-size: 12.5px; }
.lg-ev.past { opacity: .72; }
.lg-ev-a { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

/* ------------------------------------------------------------ notice paper */
.lg-desk { background: linear-gradient(180deg, #eef2f7, #e8edf4); border-radius: var(--r-lg); padding: 26px 18px; border: 1px solid var(--line); }
.lg-paper { background: #fff; max-width: 780px; margin: 0 auto; padding: 46px 54px; box-shadow: 0 1px 2px rgba(16,24,40,.06), 0 18px 40px -18px rgba(16,24,40,.28); border-radius: 3px; position: relative; }
.lg-paper.draft::after { content: "DRAFT"; position: absolute; top: 30px; right: 34px; font: 800 13px/1 var(--font); letter-spacing: .2em; color: #b26b00; border: 2px solid #e8c47a; border-radius: 6px; padding: 6px 9px; transform: rotate(6deg); background: #fffaf0; }
.lg-paper.cured::after { content: "CURED"; position: absolute; top: 30px; right: 34px; font: 800 13px/1 var(--font); letter-spacing: .2em; color: #1c7a44; border: 2px solid #9ed4b3; border-radius: 6px; padding: 6px 9px; transform: rotate(6deg); background: #f2fbf5; }
.lg-paper.withdrawn::after { content: "WITHDRAWN"; position: absolute; top: 30px; right: 34px; font: 800 13px/1 var(--font); letter-spacing: .2em; color: #667085; border: 2px solid #cfd5df; border-radius: 6px; padding: 6px 9px; transform: rotate(6deg); background: #f7f8fa; }
.lg-countdown { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 12px; background: linear-gradient(135deg, #f4f8fd, #fff); border: 1px solid #d9e6f6; }
.lg-countdown .big { font-size: 32px; font-weight: 800; letter-spacing: -.03em; color: var(--primary-700); line-height: 1; font-variant-numeric: tabular-nums; text-align: center; min-width: 74px; flex: none; padding-right: 14px; border-right: 1px solid rgba(31, 95, 174, .15); }
.lg-countdown .big small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .01em; margin-top: 5px; line-height: 1.2; }
.lg-countdown.amber { background: linear-gradient(135deg, #fff8e8, #fff); border-color: #f2e0b5; } .lg-countdown.amber .big { color: #a86400; }
.lg-countdown.red { background: linear-gradient(135deg, #fef3f3, #fff); border-color: #f4d0d0; } .lg-countdown.red .big { color: var(--red); }
.lg-countdown.green { background: linear-gradient(135deg, #f0faf4, #fff); border-color: #cdeadb; } .lg-countdown.green .big { color: var(--green); }
.lg-countdown b { display: block; color: var(--ink); font-size: 13.5px; }
.lg-countdown small { color: var(--muted); font-size: 12.5px; }
.lg-days-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; margin-top: 12px; }
.lg-ds { min-width: 0; border-radius: 8px; padding: 6px 4px; text-align: center; font-size: 11px; line-height: 1.25; background: #f3f6fa; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.lg-ds b { display: block; font-size: 14px; color: var(--ink); }
.lg-ds.skip { background: repeating-linear-gradient(135deg, #f6f7f9, #f6f7f9 5px, #eef0f3 5px, #eef0f3 10px); color: var(--subtle); box-shadow: none; }
.lg-ds.skip b { color: var(--subtle); font-weight: 600; }
.lg-ds.count { background: var(--primary-50); color: var(--primary-700); box-shadow: inset 0 0 0 1px #d3e2f6; }
.lg-ds.last { background: var(--primary); color: #fff; box-shadow: none; } .lg-ds.last b { color: #fff; }
.lg-ds.served { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }

/* ------------------------------------------------------------ generator */
.lg-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.lg-type { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid #d6dde8; border-radius: 12px; background: #fff; color: inherit; transition: border-color .12s, box-shadow .12s, transform .12s; }
.lg-type:hover { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31, 95, 174, .1); color: inherit; }
.lg-type.on { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31, 95, 174, .14); background: #fbfdff; }
.lg-type b { display: block; color: var(--ink); font-size: 13.5px; line-height: 1.3; }
.lg-type small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; line-height: 1.4; }
.lg-type .cite { display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 600; color: #475467; background: #eef1f5; border-radius: 5px; padding: 1px 6px; }
.lg-items { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.lg-items td { padding: 9px 4px; border-bottom: 1px solid var(--line-2); }
.lg-items tr:last-child td { border-bottom: 0; }
.lg-items tfoot td { border-top: 1px solid var(--line); font-weight: 700; color: var(--ink); }
.lg-items .x td { color: var(--subtle); }
.lg-items .x td s { text-decoration-color: #c5ccd6; }
.lg-sum { position: sticky; top: 16px; }
.lg-sum .big { font-size: 28px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.lg-check { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lg-check li { display: flex; gap: 8px; font-size: 13px; color: #344054; line-height: 1.4; }
.lg-check li .ic { color: var(--green); margin-top: 2px; flex: none; }
.lg-check li.warn .ic { color: var(--amber); }

/* ------------------------------------------------------------ payment plan */
.lg-plan-bar { height: 10px; border-radius: 8px; background: #eef1f5; overflow: hidden; margin: 10px 0 6px; }
.lg-plan-bar span { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #2aa45f, #1f8a4c); }
.lg-inst { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line-2); }
.lg-inst:first-child { border-top: 0; }
.lg-inst-n { width: 28px; height: 28px; border-radius: 50%; background: #eef1f5; color: #475467; font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.lg-inst.paid .lg-inst-n { background: var(--green); color: #fff; }
.lg-inst.missed .lg-inst-n { background: var(--red); color: #fff; }
.lg-inst.due .lg-inst-n { background: #e3a008; color: #fff; }
.lg-inst-t { flex: 1; min-width: 0; }
.lg-inst-t b { display: block; color: var(--ink); font-size: 13.5px; }
.lg-inst-t small { color: var(--muted); font-size: 12.5px; }
.lg-sched { width: 100%; border-collapse: collapse; }
.lg-sched td { padding: 6px 6px 6px 0; }
.lg-sched td:first-child { width: 34px; color: var(--muted); font-weight: 600; font-size: 12.5px; }
.lg-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.lg-plan-card { padding: 16px 18px; color: inherit; display: block; }
.lg-plan-card:hover { color: inherit; }

/* ------------------------------------------------------------ misc */
.lg-pipeline-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.lg-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); font-size: 12.5px; color: #344054; font-weight: 500; }
.lg-chip b { font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.lg-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.lg-chip.court i { background: var(--purple); } .lg-chip.end i { background: var(--red); } .lg-chip.pre i { background: #e3a008; } .lg-chip.closed i { background: #98a2b3; }
.lg-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.lg-intro { color: var(--muted); font-size: 13px; margin: -2px 0 14px; }
.lg-inline-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.lg-inline-form .field { flex: 1; min-width: 160px; }

@media (max-width: 1280px) {
  .lg-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .lg-sum { position: static; }
}
@media (max-width: 900px) {
  .lg-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lg-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .lg-fig:nth-child(3) { padding-left: 0; border-left: 0; }
  .lg-paper { padding: 26px 20px; }
  .lg-desk { padding: 12px 8px; }
  .lg-paper.draft::after, .lg-paper.cured::after, .lg-paper.withdrawn::after { top: -11px; right: 14px; font-size: 10px; padding: 5px 7px; }
  .lg-pipe-r { grid-template-columns: 110px minmax(0, 1fr) 24px; }
}
@media (max-width: 520px) {
  .lg-kpi-v { font-size: 21px; }
  .lg-attn-i { flex-wrap: wrap; }
  .lg-attn-a { width: 100%; padding-left: 46px; }
  .lg-who { min-width: 170px; }
  .lg-ev { flex-wrap: wrap; }
  .lg-ev-t { min-width: calc(100% - 60px); }
  .lg-ev-a { width: 100%; padding-left: 56px; justify-content: flex-start; }
  .lg-hero-case { padding: 16px; }
  .lg-steps { mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent); }
}
@media print {
  .lg-page .lg-desk { background: none; border: 0; padding: 0; }
  .lg-page .lg-paper { box-shadow: none; padding: 0; }
  .lg-page .lg-paper::after { display: none; }
  .lg-disclaimer { display: none; }
}
