/* Step 83 — match the locked, navy + cyan Deals/Claims navigation and accent lines. */
.ld83-page{color:#e9f6ff;padding:18px 0 28px;max-width:100%;min-width:0}
.ld83-header{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;border-bottom:1px solid #0e729c;padding:10px 18px 19px;margin-bottom:16px}
.ld83-eyebrow{color:#17c8f6;letter-spacing:1.65px;font-size:10px;font-weight:900}
.ld83-header h1{font-size:30px;line-height:1.2;color:#fff;margin:9px 0 8px;font-weight:900}
.ld83-header p,.ld83-detail-head p{margin:0;color:#97c7e5;font-size:12px;line-height:1.55}
.ld83-header button,.ld83-detail-links button{border-radius:8px;min-height:40px}
.ld83-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-bottom:1px solid #117ba7;margin:0 0 21px;padding:0 14px 17px}
.ld83-stats>div{padding:6px 19px;border-right:1px solid #1b7199}.ld83-stats>div:last-child{border-right:0}
.ld83-stats small{display:block;color:#7bcbe9;font-size:10px;letter-spacing:1px;font-weight:800}.ld83-stats strong{display:block;color:#e9fbff;font-size:26px;font-weight:900;margin-top:9px}
.ld83-workspace{display:grid;grid-template-columns:minmax(245px,32%) minmax(0,1fr);min-width:0;gap:13px}
.ld83-sidebar,.ld83-detail{min-width:0;border:1px solid #225b82;border-top:2px solid #00bbec;background:#081d31;border-radius:8px;padding:16px}
.ld83-sidebar{align-self:start}.ld83-searchlabel,.ld83-field>span{display:block;color:#87c9e9;font-size:10px;letter-spacing:.7px;font-weight:900;margin-bottom:8px}
.ld83-sidebar input{width:100%;min-height:44px;padding:11px;color:#f6fbff;background:#0d304b;border:1px solid #397da5;border-radius:8px;font-size:13px;box-sizing:border-box}
.ld83-filters{display:flex;gap:6px;margin:11px 0}.ld83-filters button{flex:1;padding:9px 5px;background:#0b2940;color:#b5d8e9;border:1px solid #2a6d92;border-radius:7px;cursor:pointer;font-weight:800;font-size:11px}
.ld83-filters button.active{color:white;background:#0a648f;border-color:#29cefe;box-shadow:inset 0 -2px #25ceff}
.ld83-list{max-height:70vh;overflow:auto;display:flex;flex-direction:column;gap:6px}
.ld83-item{cursor:pointer;background:#0b2940;border:1px solid #235b7a;color:#effaff;text-align:left;border-radius:7px;padding:12px;display:block;width:100%;font:inherit}
.ld83-item:hover,.ld83-item.active{border-color:#15bdf0;background:#0b405e}.ld83-item.active{box-shadow:inset 3px 0 #15cafa}
.ld83-item-top{display:flex;justify-content:space-between;gap:6px;font-size:13px;color:#e8faff}.ld83-item-top small{font-size:9px;color:#8ac9ea;font-weight:850}
.ld83-item-name{display:block;font-size:12px;font-weight:700;margin:7px 0;color:#fff}
.ld83-item-bottom{display:grid;gap:5px}.ld83-item-bottom>span{display:flex;justify-content:space-between;gap:8px;color:#8dbbd5;font-size:10px}.ld83-item-bottom b{color:#ddf6ff;font-size:11px}
.ld83-side-note{font-size:11px;line-height:1.5;color:#9abed0;margin:16px 3px 0}
.ld83-detail-head,.ld83-expenses-head{display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap;border-bottom:1px solid #176d95;padding:4px 0 15px;margin-bottom:18px}
.ld83-detail-head h2{font-size:24px;margin:6px 0;color:#fff}.ld83-detail-links{display:flex;gap:8px;flex-wrap:wrap}
.ld83-agreement-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:20px}
.ld83-field{min-width:0}.ld83-field input,.ld83-field textarea{box-sizing:border-box;width:100%;border:1px solid #327ea4;background:#0c2c47;color:#faffff;border-radius:8px;font-size:16px;min-height:44px;padding:10px 12px}
.ld83-field input:focus,.ld83-field textarea:focus{outline:2px solid #12c5f5}.ld83-field input:disabled{opacity:.6}.ld83-field small{display:block;color:#a1bfd3;font-size:11px;margin-top:8px;line-height:1.45}
.ld83-expenses-head{margin:21px 0 0;align-items:center}.ld83-expenses-head h3,.ld83-summary h3{font-size:13px;letter-spacing:.7px;color:#ecfaff;margin:0 0 7px}.ld83-expenses-head p{font-size:11px;line-height:1.5;color:#b6d6e6;max-width:580px;margin:0}
.ld83-cost-head,.ld83-cost-row{display:grid;grid-template-columns:minmax(0,1fr) 130px 105px;align-items:center;gap:10px}
.ld83-cost-head{background:#0b3049;color:#8fceea;font-size:10px;letter-spacing:.45px;padding:10px}
.ld83-cost-head span:last-child{text-align:right}.ld83-cost-head span:nth-child(2){text-align:center}
.ld83-cost-list{max-height:260px;overflow:auto;border:1px solid #205b7c;background:#091f33}
.ld83-cost-row{min-height:50px;padding:10px;border-bottom:1px solid #164862;color:#f1fbff;font-size:12px}
.ld83-cost-row:last-child{border:0}.ld83-cost-row:has(input:checked){background:#10405a}.ld83-cost-row small{display:block;font-size:10px;color:#8fbbd2;margin-top:4px}.ld83-cost-row input{margin:auto;accent-color:#11c9fb;width:18px;height:18px}.ld83-cost-row strong{text-align:right}
.ld83-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:21px 0}
.ld83-summary-column{border:1px solid #1e6b92;border-top:2px solid #05c8fd;border-radius:8px;padding:15px;background:#0a263d;min-width:0}
.ld83-summary-column h3{margin-bottom:15px}.ld83-sum-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 0;border-bottom:1px solid #244a62;font-size:12px}.ld83-sum-row span{color:#accfe2}.ld83-sum-row strong{color:#f2fbff;font-variant-numeric:tabular-nums;white-space:nowrap}.ld83-sum-row.subtotal strong{color:#65d8fd}.ld83-sum-row.total{border-top:1px solid #2bd1fc;border-bottom:0;margin-top:7px}.ld83-sum-row.total span{font-weight:850;color:#e9fbff}.ld83-sum-row.total strong{font-size:20px;color:#70edb0}
.ld83-small,.ld83-disclaimer{color:#9cbfd3;font-size:11px;line-height:1.6}.ld83-small{margin-bottom:0}
.ld83-notes{display:block;margin-top:16px}.ld83-notes textarea{font-size:13px;resize:vertical}
.ld83-save-controls{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin:15px 0}.ld83-save-controls>span{font-size:12px;color:#81efa9;overflow-wrap:anywhere}
.ld83-disclaimer{border-top:1px solid #236287;padding-top:12px}.ld83-caution,.ld83-warning{background:#3a2b17;border:1px solid #b68b50;color:#ffe3bb;padding:10px 12px;border-radius:7px;font-size:12px;line-height:1.5}.ld83-warning{border-color:#bc776e;background:#432b27}
.ld83-empty{padding:16px;color:#a6c9de;font-size:13px}
@media(max-width:980px){.ld83-workspace{grid-template-columns:1fr}.ld83-list{max-height:300px}.ld83-summary{grid-template-columns:1fr}}
@media(max-width:650px){.ld83-agreement-grid,.ld83-stats{grid-template-columns:1fr}.ld83-stats>div{border-right:0;border-bottom:1px solid #286f94}.ld83-stats>div:last-child{border-bottom:0}.ld83-cost-head,.ld83-cost-row{grid-template-columns:minmax(0,1fr) 72px 83px;gap:6px}.ld83-detail,.ld83-sidebar{padding:12px}.ld83-detail-head h2{font-size:20px}.ld83-header h1{font-size:25px}.ld83-cost-row{font-size:11px}}

/* Step 84: make the authoritative purchase/expense/total-cost basis visible. */
.ld83-cost-basis{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 14px;margin:9px 0 2px;background:#0b3049;border:1px solid #237aa3;border-radius:7px;color:#afd7ea;font-size:12px}
.ld83-cost-basis span{display:flex;gap:9px;align-items:baseline}.ld83-cost-basis b{color:#f4fbff;font-variant-numeric:tabular-nums}
.ld83-basis-help{margin:7px 0 12px;color:#9bc0d4;font-size:11px;line-height:1.5}
.ld83-cost-row.ld83-offset{opacity:.77}.ld83-cost-row.ld83-offset input{visibility:hidden}


/* Step 85: Investor register uses the exact Deal Register classes and styling. */
#main-app .ld85-page .ld85-filters{grid-template-columns:minmax(240px,2fr) minmax(180px,1fr);max-width:780px}
#main-app .ld85-page .ld61-table{min-width:930px}
#main-app .ld85-page .ld61-table .ld61-negative{color:#ff9999!important}
#main-app .ld85-page .ld61-table .ld61-positive{color:#5ce1a6!important}
#main-app .ld85-page [data-ld85-stat]{font-size:inherit;color:inherit}
#modal-root .ld85-investor-modal{background:#031323!important;border:1px solid #00bce9!important;border-radius:12px!important;color:#f4f9ff!important}
#modal-root .ld85-investor-modal .modal-head,#modal-root .ld85-investor-modal .modal-content,#modal-root .ld85-investor-modal .modal-foot{background:#031323!important}
#modal-root .ld85-investor-modal .deal-financial-panel{background:transparent!important;border:0!important;border-top:1px solid #08bde2!important;border-radius:0!important;padding:18px 4px!important}
#modal-root .ld85-investor-modal .deal-financial-grid{gap:0!important}
#modal-root .ld85-investor-modal .deal-financial-grid>div{background:transparent!important;border:0!important;border-right:1px solid #087e9e!important;border-radius:0!important;padding:12px!important}
#modal-root .ld85-investor-modal .deal-financial-grid>div:last-child{border-right:0!important}
#modal-root .ld85-investor-modal .form-grid{border-top:1px solid #08bde2!important;padding-top:18px!important}
#modal-root .ld85-investor-modal input,#modal-root .ld85-investor-modal textarea{background:#08253b!important;color:#fff!important;border:1px solid #276987!important;border-radius:7px!important}
#modal-root .ld85-investor-modal input[readonly]{opacity:.75;cursor:default}
#modal-root .ld85-investor-modal .deal-expense-scroll{max-height:300px}
#modal-root .ld85-investor-modal .deal-expense-scroll input[type=checkbox]{width:17px;height:17px;accent-color:#03cbf4;cursor:pointer}
#modal-root .ld85-investor-modal .ld85-modal-nav{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-bottom:20px}
#modal-root .ld85-investor-modal .ld85-modal-nav span{font-size:11px;color:#9bbdd3;margin-left:auto}
#modal-root .ld85-investor-modal .ld85-help{font-size:12px;color:#a8cce1;margin:12px 0}
#modal-root .ld85-investor-modal #ld85-save-status{color:#ffd6a1;font-size:12px;padding-bottom:12px}
#modal-root .ld85-total-row{border-top:1px solid #04bce9!important;margin-top:8px;padding-top:12px!important;font-weight:900!important}
#modal-root .ld85-total-row b{font-size:18px}
#modal-root .ld85-regular-linked{border-top:1px solid #0a7395;margin:20px 0 0;padding:15px 0 0}
#modal-root .ld85-regular-linked h4{margin:0 0 8px;color:#fff;text-transform:uppercase;font-weight:900}
#modal-root .ld85-regular-linked .ld85-linked-head{display:flex;gap:10px;justify-content:space-between;align-items:center;flex-wrap:wrap}
#modal-root .ld85-regular-linked .ld85-linked-head span{font-size:10px;color:#90b6cc}
#modal-root .ld85-regular-linked .ld85-linked-actions{display:flex;gap:12px;justify-content:space-between;align-items:center;flex-wrap:wrap;margin-top:13px}
#modal-root .ld85-regular-linked .ld85-linked-actions span{max-width:70%;font-size:11px;color:#a6c3d7;line-height:1.5}
#modal-root .ld85-snap-additional{margin-top:16px}
@media(max-width:700px){#main-app .ld85-page .ld85-filters{grid-template-columns:1fr}#modal-root .ld85-regular-linked .ld85-linked-actions span{max-width:100%}}

#modal-root .ld85-investor-modal .deal-financial-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
@media(max-width:670px){#modal-root .ld85-investor-modal .deal-financial-grid{grid-template-columns:1fr!important}}

/* Step 86: keep actual sale information exclusively in Regular Deals. */
#modal-root .ld85-investor-modal .ld86-investor-snap .lotdesk-deal-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0}
#modal-root .ld85-investor-modal .ld86-cost-details{border-top:1px solid #1c617b;margin-top:20px;padding-top:12px}
#modal-root .ld85-investor-modal .ld86-cost-details>summary{color:#bdeafb;cursor:pointer;font-size:13px;font-weight:800;list-style:revert}
#modal-root .ld85-investor-modal .ld86-cost-details[open]>summary{margin-bottom:12px}
#modal-root .ld85-investor-modal .ld85-modal-nav span{margin-left:0}
@media(max-width:670px){#modal-root .ld85-investor-modal .ld86-investor-snap .lotdesk-deal-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:440px){#modal-root .ld85-investor-modal .ld86-investor-snap .lotdesk-deal-metrics{grid-template-columns:1fr}}


/* STEP 87 — premium investor deal summary, consistent with approved navy/cyan design */
#modal-root .ld85-investor-modal .modal-content{padding:16px 24px 22px!important}
#modal-root .ld85-investor-modal .lotdesk-deal-tabs{margin-bottom:12px!important}
#modal-root .ld85-investor-modal .ld87-snapshot{padding:18px 2px 2px;color:#edf8ff}
#modal-root .ld85-investor-modal .ld87-vehicle-head{display:flex;align-items:center;gap:12px;margin-bottom:18px}
#modal-root .ld85-investor-modal .ld87-eyebrow{display:block;color:#23c9f4;font-weight:900;letter-spacing:1.6px;font-size:10px;margin-bottom:8px}
#modal-root .ld85-investor-modal .ld87-vehicle-head h3{color:#fff;font-size:20px;font-weight:900;margin:0 0 7px;text-transform:uppercase;line-height:1.25}
#modal-root .ld85-investor-modal .ld87-id-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap;color:#b2d4e7;font-size:12px;font-weight:500;line-height:1.6}
#modal-root .ld85-investor-modal .ld87-id-row b{color:#56cfee;font-size:10px;letter-spacing:.7px;margin-right:5px}
#modal-root .ld85-investor-modal .ld87-id-divider{height:13px;width:1px;background:#236783}
#modal-root .ld85-investor-modal .ld87-payout-hero{display:flex;justify-content:space-between;align-items:center;gap:22px;padding:21px 24px;border:1px solid #236f89;border-top:2px solid #53e3a6;border-radius:10px;background:linear-gradient(112deg,#0c3042 0%,#092437 62%,#072136 100%);margin-bottom:12px;box-shadow:0 12px 30px #0002}
#modal-root .ld85-investor-modal .ld87-payout-hero.negative{border-top-color:#ff9292}
#modal-root .ld85-investor-modal .ld87-hero-label{display:block;color:#c3e5ec;font-size:11px;font-weight:850;letter-spacing:.7px;margin-bottom:6px}
#modal-root .ld85-investor-modal .ld87-payout-value{display:block;color:#70edb0;font-size:35px;font-weight:900;letter-spacing:-.6px;line-height:1.24;font-variant-numeric:tabular-nums}
#modal-root .ld85-investor-modal .ld87-payout-hero.negative .ld87-payout-value{color:#ff9d9d}
#modal-root .ld85-investor-modal .ld87-formula{border-left:1px solid #296581;padding-left:20px;display:grid;gap:5px;min-width:220px;color:#b5d7e7;font-size:11px;line-height:1.3}
#modal-root .ld85-investor-modal .ld87-formula b{color:#39caf1;letter-spacing:.8px;font-size:10px;margin-bottom:2px}
#modal-root .ld85-investor-modal .ld87-formula .ld87-calc-result{font-weight:800;color:#e7faff}
#modal-root .ld85-investor-modal .ld87-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-bottom:15px}
#modal-root .ld85-investor-modal .ld87-metric{min-width:0;background:#09263d;border:1px solid #245674;border-top:2px solid #168cb8;border-radius:8px;padding:15px 17px}
#modal-root .ld85-investor-modal .ld87-metric small{display:block;color:#a5cfe1;font-weight:850;font-size:10px;letter-spacing:.8px;line-height:1.4;margin:0 0 8px}
#modal-root .ld85-investor-modal .ld87-metric strong{display:block;font-size:21px;color:#fff;font-weight:900;line-height:1.25;font-variant-numeric:tabular-nums;white-space:normal;overflow-wrap:anywhere}
#modal-root .ld85-investor-modal .ld87-cost-strip{border-top:1px solid #206181;border-bottom:1px solid #206181;padding:14px 2px 14px;margin-top:4px}
#modal-root .ld85-investor-modal .ld87-section-title{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:13px}
#modal-root .ld85-investor-modal .ld87-section-title span{font-size:11px;letter-spacing:.8px;color:#c2efff;font-weight:900}
#modal-root .ld85-investor-modal .ld87-section-title small{font-size:10px;color:#91b8d0}
#modal-root .ld85-investor-modal .ld87-cost-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#modal-root .ld85-investor-modal .ld87-cost-items>div{display:flex;justify-content:space-between;align-items:center;gap:14px;background:#092238;padding:11px 14px;border-radius:7px;border:1px solid #205372;min-width:0}
#modal-root .ld85-investor-modal .ld87-cost-items span{color:#a9cfdf;font-size:12px}
#modal-root .ld85-investor-modal .ld87-cost-items strong{color:#f5faff;font-weight:850;font-size:14px;white-space:nowrap;font-variant-numeric:tabular-nums}
#modal-root .ld85-investor-modal .ld87-warning{font-size:12px;color:#ffd0ca;margin:12px 0 0}
#modal-root .ld85-investor-modal .ld87-actions{display:flex;justify-content:flex-end;padding:15px 0 2px}
#modal-root .ld85-investor-modal .ld87-actions .primary{min-height:44px;border-radius:9px;padding:10px 17px;font-weight:850;letter-spacing:.1px}
#modal-root .ld85-investor-modal .ld87-actions .primary span{margin-left:8px}
#modal-root .ld85-investor-modal .ld87-fin-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:10px}
#modal-root .ld85-investor-modal .ld87-fin-head h3{margin:0;color:#f6fcff;font-weight:900}
#modal-root .ld85-investor-modal .ld87-fin-head small{font-size:11px;color:#9ac5da}
#modal-root .ld85-investor-modal .ld87-fin-rows{border-top:1px solid #195778;margin-top:16px;padding-top:10px}
#modal-root .ld85-investor-modal .ld86-cost-details>summary span{color:#83bfd9;font-weight:600;font-size:11px}
#modal-root .ld85-investor-modal .ld85-modal-nav{margin:6px 0 12px}
#modal-root .ld85-investor-modal .ld85-modal-nav span{color:#65c7eb;letter-spacing:.7px;font-weight:800;font-size:10px}
@media(max-width:760px){
 #modal-root .ld85-investor-modal .ld87-payout-hero{padding:17px;gap:15px}
 #modal-root .ld85-investor-modal .ld87-payout-value{font-size:29px}
 #modal-root .ld85-investor-modal .ld87-formula{min-width:160px;padding-left:12px}
 #modal-root .ld85-investor-modal .ld87-metric{padding:13px 11px}
 #modal-root .ld85-investor-modal .ld87-metric strong{font-size:17px}
}
@media(max-width:570px){
 #modal-root .ld85-investor-modal .modal-content{padding:12px 13px 15px!important}
 #modal-root .ld85-investor-modal .ld87-payout-hero{flex-direction:column;align-items:flex-start}
 #modal-root .ld85-investor-modal .ld87-formula{border-left:0;border-top:1px solid #296581;padding:12px 0 0;width:100%}
 #modal-root .ld85-investor-modal .ld87-metrics{grid-template-columns:1fr}
 #modal-root .ld85-investor-modal .ld87-cost-items{grid-template-columns:1fr}
 #modal-root .ld85-investor-modal .ld87-actions .primary{width:100%}
 #modal-root .ld85-investor-modal .ld87-section-title small{display:none}
}

@media(max-width:600px){
#modal-root .ld85-investor-modal .modal-head{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 28px!important;column-gap:8px!important;row-gap:5px!important;align-items:center!important;padding:10px 14px!important;min-height:0!important}
#modal-root .ld85-investor-modal .modal-head::before{grid-column:1;grid-row:1;width:100%!important;height:51px!important;border-right:0!important;min-width:0!important;padding:0!important}
#modal-root .ld85-investor-modal .modal-head::after{grid-column:2 / 4;grid-row:1;width:100%!important;height:51px!important;min-width:0!important}
#modal-root .ld85-investor-modal .modal-head h3{grid-column:1 / 3;grid-row:2;min-width:0!important;font-size:14px!important;line-height:1.35!important;overflow-wrap:anywhere!important;margin:5px 0 0!important}
#modal-root .ld85-investor-modal .modal-head .close{grid-column:3;grid-row:2;justify-self:end;align-self:start;padding:0 4px!important;margin-top:4px!important}
}

/* STEP 89: Investor popup Expenses + internal third tab in Regular Deals */
#modal-root .ld89-investor-expenses { padding:14px 3px 10px;color:#eaf7ff }
#modal-root .ld89-expenses-title {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding-bottom:14px;border-bottom:1px solid #1e6785}
#modal-root .ld89-expenses-title h3 {font-size:19px;margin:4px 0 8px;text-transform:uppercase;color:#fff}
#modal-root .ld89-expenses-title p {font-size:12px;color:#a7c9dd;margin:0}
#modal-root .ld89-expense-kpis {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}
#modal-root .ld89-expense-kpis>div {background:#082840;border:1px solid #1f6284;border-top:2px solid #08bcdf;border-radius:8px;padding:13px}
#modal-root .ld89-expense-kpis small {display:block;color:#9bc9de;font-size:11px;margin-bottom:6px}
#modal-root .ld89-expense-kpis strong {display:block;color:#fff;font-weight:900;font-size:20px}
#modal-root .ld89-expense-note {font-size:12px;color:#b3d3e2;line-height:1.6;margin:12px 0}
#modal-root .ld89-expense-list {max-height:330px;overflow:auto;border:1px solid #23607b;border-radius:8px}
#modal-root .ld89-expense-list table {min-width:560px;width:100%}
#modal-root .ld89-expense-list td small {display:block;font-size:10px;color:#97b9d2;margin-top:3px}
#modal-root .ld89-view-list {margin-right:10px}
#modal-root #ld89-regular-investor[hidden] {display:none!important}
#modal-root #ld89-regular-investor {padding:16px 3px 24px}
#modal-root .ld89-regular-title {border-bottom:1px solid #27718b;padding:4px 0 18px;margin-bottom:18px}
#modal-root .ld89-regular-title h3 {margin:4px 0 6px;font-size:20px;color:#fff}
#modal-root .ld89-regular-title p {color:#a4c8dc;font-size:12px;margin:0}
#modal-root .ld89-shop-reconciliation {margin:18px 0 0;padding-top:16px;border-top:1px solid #2684a3}
#modal-root .ld89-shop-reconciliation h3 {text-transform:uppercase;font-size:16px;color:#fff}
#modal-root .ld89-settlement-actions {display:flex;justify-content:flex-end;align-items:center;gap:18px;flex-wrap:wrap;margin-top:18px;border-top:1px solid #1e6887;padding-top:18px}
#modal-root #ld85-save-status {color:#9bebc7;font-size:12px}
#modal-root #ld89-regular-investor .deal-financial-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
#modal-root #ld89-regular-investor .ld86-cost-details {margin-top:16px}
#modal-root #ld89-regular-investor .ld86-cost-details>summary {cursor:pointer;color:#b6edfb;font-weight:850}
#modal-root #ld89-regular-investor [data-ld85-ref] {accent-color:#00c6ee}
@media(max-width:650px){
 #modal-root .ld89-expense-kpis {grid-template-columns:1fr}
 #modal-root #ld89-regular-investor .deal-financial-grid {grid-template-columns:1fr}
 #modal-root .ld89-expenses-title .primary {width:100%}
 #modal-root .ld89-expense-kpis strong {font-size:18px}
 #modal-root .ld87-actions {flex-wrap:wrap}
}

@media(max-width:600px){
#modal-root .ld89-regular-modal .modal-head{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 28px!important;gap:6px!important;align-items:center!important;padding:10px 14px!important;min-height:0!important}
#modal-root .ld89-regular-modal .modal-head::before{grid-column:1;grid-row:1;width:100%!important;height:50px!important;border-right:0!important;min-width:0!important;padding:0!important}
#modal-root .ld89-regular-modal .modal-head::after{grid-column:2 / 4;grid-row:1;width:100%!important;height:50px!important;min-width:0!important}
#modal-root .ld89-regular-modal .modal-head h3{grid-column:1 / 3;grid-row:2;min-width:0!important;font-size:14px!important;line-height:1.35!important;overflow-wrap:anywhere!important;margin:4px 0!important}
#modal-root .ld89-regular-modal .modal-head .close{grid-column:3;grid-row:2;justify-self:end;align-self:center;padding:0 4px!important;margin:0!important}
#modal-root .ld89-regular-modal .lotdesk-deal-tabs{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;scrollbar-width:thin;max-width:100%}
#modal-root .ld89-regular-modal .lotdesk-deal-tabs button{flex:0 0 auto;font-size:11px;padding:11px 10px!important;white-space:nowrap}
}

/* STEP 90: keep investor-facing costs grouped; do not spotlight bodywork. */
#modal-root .ld85-investor-modal .ld87-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
#modal-root .ld85-investor-modal .ld87-metric.ld87-cost{border-top-color:#21c3e7}
#modal-root .ld85-investor-modal .ld90-service-line{background:rgba(22,87,108,.16)}
#modal-root .ld85-investor-modal .ld90-service-line small{font-size:10px;opacity:.75}
@media(max-width:570px){#modal-root .ld85-investor-modal .ld87-metrics{grid-template-columns:1fr}}

/* STEP 91: Read-only RPM gross reconciliation, in the normal Deal Snap and Info tabs. */
#modal-root .ld91-gross-host{margin:14px 0 20px;}
#modal-root .ld91-gross-breakdown{background:linear-gradient(125deg,rgba(6,35,59,.85),rgba(8,45,70,.75));border:1px solid #197394;border-top:2px solid #0bb9df;border-radius:10px;padding:15px 18px;}
#modal-root .ld91-gross-title{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:6px;margin-bottom:10px;}
#modal-root .ld91-gross-title h4{font-size:15px;letter-spacing:.025em;text-transform:uppercase;margin:0;color:#e9f8ff;}
#modal-root .ld91-gross-title small{font-size:10px;color:#61dbfa;font-weight:800;text-transform:uppercase;}
#modal-root .ld91-gross-row,#modal-root .ld91-gross-total{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:8px 2px;border-bottom:1px solid rgba(62,141,176,.35);font-size:12px;}
#modal-root .ld91-gross-row strong,#modal-root .ld91-gross-total strong{white-space:nowrap;font-size:13px;}
#modal-root .ld91-gross-total{border-top:1px solid #17bde1;border-bottom:0;padding-top:13px;font-weight:900;font-size:13px;}
#modal-root .ld91-gross-total strong{color:#40edab;font-size:21px;}
#modal-root .ld91-gross-breakdown p{color:#92bbce;font-size:11px;line-height:1.5;margin:9px 0 0;}
#modal-root .ld91-breakdown-loading{font-size:12px;color:#9ac5db;padding:8px 0;}
#modal-root .ld91-return-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 16px;padding:6px 0 14px;border-bottom:1px solid #187493;}
#modal-root .ld91-return-row .primary{font-weight:850;padding:10px 17px;border-radius:8px;}
#modal-root .ld91-return-row small{font-size:11px;color:#9bbdd4;}
#modal-root .ld85-investor-modal .ld90-service-line td{line-height:1.5;}
@media(max-width:620px){#modal-root .ld91-gross-row{align-items:start;}#modal-root .ld91-gross-row span{max-width:68%}#modal-root .ld91-return-row small{display:none}}

/* STEP 103: indicate historical RPM-paid labor only in internal cost allocation */
.ld103-import-label{display:block;margin-top:4px;color:#7abfcb;font-size:11px;line-height:1.45;max-width:370px}
html[data-ld97-theme="day"] .ld103-import-label{color:#12647a;font-weight:600}
