/* Outcome-first joint dashboard presentation. The retired computational-negotiation
   workstation stays retired; this sheet now owns the joint dashboard hierarchy. */
:root{
  --dash-surface:#fff;
  --dash-soft:#f8f6f1;
  --dash-soft-green:#eef5f1;
  --dash-soft-red:#fbf0f1;
  --dash-soft-blue:#eef4f8;
  --dash-soft-amber:#fff6e8;
  --dash-shadow:0 12px 34px rgba(30,48,42,.08);
  --dash-shadow-soft:0 5px 18px rgba(30,48,42,.055);
}

#dashboardView{grid-template-columns:388px minmax(0,1fr);background:linear-gradient(90deg,#f7f5f0 0 388px,var(--paper) 388px)}
#dashboardView .dashboard-sidebar{padding:22px 18px 34px;background:transparent;border-right:1px solid #d5d2ca}
#dashboardView .content{padding:30px 34px 48px;max-width:1540px}
#dashboardView .dashboard-panel{border:1px solid #d8d5cd;border-radius:15px;box-shadow:var(--dash-shadow-soft);background:var(--dash-surface);overflow:hidden}
#dashboardView .dashboard-panel>summary{min-height:58px;padding:14px 17px;background:linear-gradient(180deg,#fff,#fcfbf8)}
#dashboardView .dashboard-panel[open]>summary{background:#fbfaf7}
#dashboardView .dashboard-panel>summary:after{border-radius:50%;background:#fff}
#dashboardView .dashboard-panel-body{padding:20px}
#dashboardView .dashboard-panel-title small{font-size:7px;letter-spacing:.15em;color:#87908c}
#dashboardView .dashboard-panel-title b{font-size:14px;letter-spacing:-.01em}
#dashboardView .dashboard-stack-tools{top:87px;border-radius:12px;box-shadow:var(--dash-shadow-soft);background:rgba(248,246,241,.94);margin:0 0 14px}
#dashboardView .dashboard-stack-actions button{border-radius:999px;padding:7px 12px}
#dashboardView footer{padding:28px 8px 8px}

/* Left-side outcome ledger -------------------------------------------------- */
.deal-impact-ledger{display:grid;gap:12px;margin-bottom:16px}
.deal-impact-hero{position:relative;overflow:hidden;padding:19px;border-radius:17px;background:linear-gradient(145deg,#102f29,#1b4a3f 68%,#2b6152);color:#fff;box-shadow:0 16px 34px rgba(23,61,53,.18)}
.deal-impact-hero:after{content:'';position:absolute;width:150px;height:150px;border-radius:50%;right:-76px;top:-72px;border:26px solid rgba(255,255,255,.045)}
.deal-impact-hero .eyebrow{color:#b7d0c8}
.deal-impact-hero h2{margin:6px 0 7px;font-size:24px;line-height:1.04;letter-spacing:-.035em}
.deal-impact-hero p{margin:0;color:#c7d8d2;font-size:9px;line-height:1.55;max-width:310px}
.deal-impact-context{display:flex;justify-content:space-between;gap:9px;align-items:flex-start;margin-top:13px;padding-top:11px;border-top:1px solid rgba(255,255,255,.14)}
.deal-impact-context span{font-size:8px;color:#b7d0c8;line-height:1.35}
.deal-impact-context b{max-width:185px;font-size:9px;line-height:1.35;text-align:right}
.deal-impact-state{margin-top:10px;padding:7px 9px;border-radius:8px;background:rgba(255,255,255,.09);font-size:8px;line-height:1.4;color:#dbe7e3}
.deal-impact-state.staged{background:#fff1c921;color:#ffe3a2}

.impact-family{--family:#2d668c;background:#fff;border:1px solid #ddd9d0;border-radius:14px;overflow:hidden;box-shadow:var(--dash-shadow-soft)}
.impact-family[data-family="growth"]{--family:#27745e}.impact-family[data-family="households"]{--family:#b52b3a}.impact-family[data-family="trade"]{--family:#2d668c}.impact-family[data-family="fiscal"]{--family:#a96d19}.impact-family[data-family="quality"]{--family:#66538b}.impact-family[data-family="sectors"]{--family:#304a58}
.impact-family-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 13px 10px;border-bottom:1px solid #ece9e2;background:linear-gradient(90deg,color-mix(in srgb,var(--family) 7%,white),#fff 62%)}
.impact-family-head>div{display:flex;align-items:center;gap:9px}.impact-family-dot{width:8px;height:8px;border-radius:50%;background:var(--family);box-shadow:0 0 0 4px color-mix(in srgb,var(--family) 12%,transparent)}
.impact-family-head small{display:block;font-size:6.5px;letter-spacing:.14em;text-transform:uppercase;color:#89928f;font-weight:700}.impact-family-head b{display:block;margin-top:2px;font-size:11px}.impact-family-count{font-size:7px;color:#89928f;white-space:nowrap}
.impact-member{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 9px;padding:10px 13px;border-bottom:1px solid #efede7;transition:background .15s ease,transform .15s ease}
.impact-member:last-child{border-bottom:0}.impact-member[data-panel]{cursor:pointer}.impact-member[data-panel]:hover{background:#faf9f6}.impact-member[data-panel]:hover:after{content:'↗';position:absolute;right:6px;top:5px;font-size:8px;color:#9aa29f}
.impact-member-label{font-size:8px;line-height:1.35;color:#596761}.impact-member-value{font-size:13px;font-weight:700;line-height:1.1;text-align:right;color:var(--ink)}
.impact-member-note{grid-column:1/3;font-size:7px;line-height:1.45;color:#89928f;padding-right:4px}.impact-member-value.positive{color:#27745e!important}.impact-member-value.negative{color:var(--red)!important}.impact-member-value.caution{color:#a96d19!important}.impact-member-value.neutral{color:#52635d!important}
.impact-sector-members{grid-column:1/3;display:grid;gap:3px;margin-top:4px;padding-top:6px;border-top:1px dashed #e5e1d9}.impact-sector-members span{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;font-size:6.8px;color:#7b8581}.impact-sector-members b{font-size:7px;color:#44524d}.impact-sector-members em{font-style:normal;color:#9aa19f;white-space:nowrap}
.sidebar-controls-label{display:flex;align-items:center;gap:9px;margin:18px 4px 9px;color:#7a8581;font-size:7px;letter-spacing:.15em;text-transform:uppercase;font-weight:700}.sidebar-controls-label:after{content:'';height:1px;background:#ddd9d0;flex:1}
#dashboardView .dashboard-sidebar>.dashboard-panel{margin-bottom:9px;box-shadow:none}
#dashboardView .dashboard-sidebar>.dashboard-panel>summary{min-height:50px;padding:11px 13px}
#dashboardView .dashboard-sidebar>.dashboard-panel-body{padding:14px}

/* Outcome context banner --------------------------------------------------- */
.deal-attribution-banner{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(360px,.9fr);gap:22px;align-items:center;padding:23px 25px;margin-bottom:14px;border:1px solid #d9d6ce;border-radius:18px;background:linear-gradient(135deg,#fff 0%,#faf9f6 58%,#edf4f0 100%);box-shadow:var(--dash-shadow)}
.deal-attribution-banner h1{margin:6px 0 7px;font-size:30px;line-height:1.05;letter-spacing:-.035em}.deal-attribution-banner p{margin:0;max-width:760px;color:#697670;font-size:10px;line-height:1.55}.deal-attribution-banner .eyebrow{color:#27745e}
.deal-attribution-chips{display:grid;grid-template-columns:1fr 1fr;gap:7px}.deal-attribution-chip{padding:10px 11px;border:1px solid #e0ddd5;border-radius:10px;background:rgba(255,255,255,.82)}.deal-attribution-chip span{display:block;font-size:6.5px;letter-spacing:.11em;text-transform:uppercase;color:#8a9390;font-weight:700}.deal-attribution-chip b{display:block;margin-top:4px;font-size:10px;line-height:1.35}.deal-attribution-chip small{display:block;margin-top:3px;color:#8a9390;font-size:7px;line-height:1.35}

/* Main outcome panels ------------------------------------------------------ */
#dashboardView details[data-dashboard-panel="decision-overview"]{border-color:#cbd8d2}
#dashboardView details[data-dashboard-panel="fiscal-ledger"]{border-color:#e2d9ca}
#dashboardView details[data-dashboard-panel="strategies"]{border-color:#d5dce3}
#dashboardView details[data-dashboard-panel="projection"]{border-color:#ded3d5}
#dashboardView details[data-dashboard-panel="sectors"]{border-color:#ccd7dc}
#dashboardView .card{border-radius:13px;padding:18px;box-shadow:0 3px 12px rgba(25,35,41,.035)}
#dashboardView .card:hover,#dashboardView .card.selected{box-shadow:0 12px 28px rgba(25,35,41,.10)}
#dashboardView .search-note{border-radius:10px;background:linear-gradient(90deg,#e8f0eb,#f7faf8)}
#dashboardView .panel,#dashboardView .sector-panel,#dashboardView .fiscal-ledger{border-radius:13px}
#dashboardView .sector-summary{border-radius:10px;overflow:hidden}
#dashboardView .table-wrap{border-radius:10px}

/* Deal overview ------------------------------------------------------------ */
.decision-overview-compat{display:none!important}.deal-overview{display:grid;gap:12px}.deal-hero{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:22px;align-items:start;padding:26px;border-radius:16px;background:linear-gradient(128deg,#13372f 0%,#1f4b40 62%,#2d6756 100%);color:#fff;box-shadow:0 16px 34px rgba(23,60,52,.20)}
.deal-hero .eyebrow{color:#b7d0c8}.deal-hero h1{margin:7px 0 8px;font-size:35px;line-height:1.05;letter-spacing:-.035em}.deal-hero p{margin:0;max-width:760px;color:#cadbd5;font-size:11px;line-height:1.55}.deal-verdict{border-left:1px solid #ffffff33;padding-left:18px;text-align:right}.deal-verdict span{display:block;font-size:8px;letter-spacing:.13em;text-transform:uppercase;color:#b7d0c8;font-weight:700}.deal-verdict b{display:block;margin-top:7px;font-size:20px}.deal-verdict small{display:block;margin-top:6px;color:#c8d9d3;font-size:8px;line-height:1.45}
.deal-pending{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:10px 13px;border-radius:10px;background:#fff4de;border:1px solid #edd39e;border-left:4px solid #c98a20;color:#72501d;font-size:9px}.deal-pending[hidden]{display:none!important}.deal-pending button{border:1px solid #c98a20;border-radius:999px;background:#fff8e8;color:#72501d;padding:6px 10px}
.deal-section{background:#fff;border:1px solid var(--line);border-radius:13px;overflow:hidden}.deal-section-head{display:flex;justify-content:space-between;gap:14px;align-items:end;padding:15px 17px 0}.deal-section-head h3{margin:4px 0 0;font-size:14px}.deal-section-head p{margin:0;max-width:620px;color:#72807a;font-size:9px;line-height:1.45}.deal-terms{display:grid;grid-template-columns:repeat(4,1fr);padding:14px 16px 16px}.deal-term{padding:13px 14px;background:#f7f5f0;border-right:1px solid #e2ded5}.deal-term:first-child{border-radius:10px 0 0 10px}.deal-term:last-child{border-right:0;border-radius:0 10px 10px 0}.deal-term span,.deal-metric span,.deal-quality span{display:block;font-size:7px;text-transform:uppercase;letter-spacing:.08em;color:#7a8782;font-weight:700}.deal-term b{display:block;margin-top:5px;font-size:22px}.deal-term small{display:block;margin-top:4px;color:#7a8782;font-size:8px;line-height:1.4}.deal-outcomes{display:grid;grid-template-columns:repeat(6,1fr);padding:14px 16px 16px}.deal-metric{padding:12px;border-right:1px solid var(--line)}.deal-metric:last-child{border-right:0}.deal-metric b{display:block;margin-top:5px;font-size:18px}.deal-metric small{display:block;margin-top:4px;color:#87918d;font-size:8px}.deal-quality-grid{display:grid;grid-template-columns:1fr 1fr 1.25fr;gap:0;padding:14px 16px 16px}.deal-quality{padding:13px 15px;border-right:1px solid var(--line)}.deal-quality:last-child{border-right:0}.deal-quality b{display:block;margin-top:5px;font-size:16px}.deal-quality p{margin:5px 0 0;color:#697670;font-size:9px;line-height:1.45}.deal-actions{display:flex;gap:7px;flex-wrap:wrap;padding:0 16px 16px}.deal-actions button{border:1px solid var(--line);border-radius:999px;background:#fff;padding:8px 11px;color:var(--ink)}.deal-actions button:hover{border-color:var(--green);color:var(--green);background:#f6faf8}

@media(max-width:1180px){#dashboardView{grid-template-columns:340px minmax(0,1fr);background:linear-gradient(90deg,#f7f5f0 0 340px,var(--paper) 340px)}#dashboardView .content{padding:26px 22px}.deal-attribution-banner{grid-template-columns:1fr}.deal-attribution-chips{grid-template-columns:repeat(4,1fr)}.deal-hero{grid-template-columns:1fr}.deal-verdict{text-align:left;border-left:0;border-top:1px solid #ffffff33;padding:12px 0 0}.deal-terms{grid-template-columns:1fr 1fr}.deal-outcomes{grid-template-columns:repeat(3,1fr)}}
@media(max-width:820px){#dashboardView{display:block;background:var(--paper)}#dashboardView .dashboard-sidebar{border-right:0;padding:16px}.deal-impact-ledger{grid-template-columns:1fr 1fr}.deal-impact-hero{grid-column:1/3}.sidebar-controls-label{grid-column:1/3}.deal-attribution-chips{grid-template-columns:1fr 1fr}#dashboardView .content{padding:18px 14px 32px}}
@media(max-width:620px){.deal-impact-ledger{grid-template-columns:1fr}.deal-impact-hero,.sidebar-controls-label{grid-column:auto}.deal-attribution-banner{padding:18px}.deal-attribution-banner h1{font-size:25px}.deal-attribution-chips{grid-template-columns:1fr}.deal-hero h1{font-size:27px}.deal-terms,.deal-outcomes{grid-template-columns:1fr 1fr}.deal-term{border-right:0;border-bottom:1px solid #e2ded5;border-radius:0!important}.deal-quality-grid{grid-template-columns:1fr}.deal-quality{border-right:0;border-bottom:1px solid var(--line)}}
