/* Scope modal layout to external exchange; keep existing project charts intact. */
.ledger-exchange-dialog[open]{display:flex;flex-direction:column}
.ledger-exchange-dialog .mb-sync-content{flex:1;min-height:0}
.ledger-exchange-dialog form{max-height:none}
.ledger-exchange-dialog input[type=checkbox]{display:inline-block;width:auto;margin-right:8px}
.ledger-exchange-dialog section{margin:16px 0}
.ledger-exchange-dialog td{overflow-wrap:anywhere}

/* Card choices share one action value; selection never needs a second adoption checkbox. */
.ledger-exchange-dialog [hidden],.review-node-card [hidden]{display:none!important}
.review-steps{display:flex;gap:8px;padding:0;list-style:none;position:sticky;top:0;z-index:2;background:#f7f9fc;border-bottom:1px solid #e1e6ef;padding-block:12px}
.review-steps li{flex:1;border-radius:10px;padding:10px;color:#617087;text-align:center;font-weight:600}
.review-steps [aria-current=step]{background:#e8f0ff;color:#164faa}
.review-node-card{padding:22px;border:1px solid #dde4ee;border-radius:16px;background:#fff}
.review-node-card>h4{font-size:18px;margin-top:6px;line-height:1.6}
.review-node-card .executive-choice{box-shadow:none;border:0;padding:0}
.review-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;margin:16px 0}
.review-choice{display:flex!important;align-items:flex-start;gap:10px;border:1px solid #d5deeb;border-radius:12px;padding:16px!important;cursor:pointer;background:#fff;transition:border-color .15s,background .15s;margin:0!important}
.review-choice:has(input:checked){border-color:#2469cf;background:#eef5ff;box-shadow:0 0 0 1px #2469cf}
.review-choice:focus-within{outline:3px solid #a6c8ff;outline-offset:2px}
.review-choice input[type=radio]{width:18px!important;height:18px;margin:2px 0 0;flex:none;accent-color:#2469cf}
.review-choice span{display:grid;gap:6px}.review-choice small{line-height:1.5;color:#617087}.review-choice strong{font-size:16px}
.review-agent-note{padding:12px 16px;background:#f3f6fa;border-radius:10px;margin-bottom:16px}
.review-agent-note p{line-height:1.65;overflow-wrap:anywhere}
.review-summary-card{padding:16px 0;border-bottom:1px solid #e1e6ef}
[data-review-step]>.actions{margin-top:24px;position:sticky;bottom:0;padding:12px 0;background:#fff}
[data-boss-editor]{padding:16px;background:#f8fafc;border-radius:12px;margin:12px 0}
[data-boss-diff] table,.review-summary-card table{width:100%;table-layout:fixed}
@media(max-width:600px){.review-choices{grid-template-columns:1fr}.review-node-card{padding:14px}.review-steps li{font-size:13px;padding:8px 3px}}
/* The content area owns scrolling; navigation must not cover a card. */
.ledger-exchange-dialog [data-review-step]>.actions{position:static;padding:12px 0;background:transparent}
.ledger-exchange-dialog .upload-assistant{padding:0;border:0;background:none;box-shadow:none;margin:0 0 12px}
.ledger-exchange-dialog .review-steps{margin:0 0 12px;padding-block:6px}
.ledger-exchange-dialog .review-steps li{padding:8px}
.ledger-exchange-dialog .review-node-card{margin:12px 0;padding:16px}
.ledger-exchange-dialog .review-node-card>.review-agent-note{margin:0 0 10px;padding:6px 12px}
.ledger-exchange-dialog .review-node-card .executive-choice{margin:12px 0;background:transparent}
.ledger-exchange-dialog [data-apply]{display:block;overflow:visible;max-height:none}

.executive-choice [hidden],.breeding-intake [hidden],.workflow-review [hidden],.breeding-change [hidden],.result-link-dialog [hidden]{display:none!important}
.mb-toolbar-actions details{position:relative}.mb-toolbar-actions details>div{display:flex;flex-wrap:wrap;gap:8px;padding:12px;background:#f5f8fc;border-radius:12px}
.node-pick-list{display:grid;gap:10px}.node-pick-list button{text-align:left;white-space:normal}.node-pick-list small{display:block;color:#62728a;margin-top:6px}
.workflow-review .review-choices{margin:12px 0}.workflow-review>section{margin:18px 0}.workflow-review [data-review-tools]{position:static}

.mb-dialog [hidden]{display:none!important}
