/* Extend the supplied design; the original stylesheet stays intact. */
.cycle-toolbar,.view-toolbar{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin:20px 0}
.view-toolbar>span{margin-right:auto;color:var(--dim);font-size:12px}
.master-cards{display:flex;flex-wrap:wrap;margin:20px 0 12px}
.master-cards .card{flex:1 1 145px;min-width:125px;border-right:1px solid var(--line)!important;border-bottom:1px solid var(--line)!important;background:white;padding:19px 17px}
.master-cards .n{font:32px var(--serif);color:var(--ink)}
.master-cards .l{font-size:12px;line-height:1.45;margin-top:8px;color:var(--dim)}
.restored-filters{align-items:end;gap:10px;display:flex;flex-wrap:wrap}
.filter-pair{display:flex;align-items:center;gap:8px;font-size:11px;letter-spacing:.5px;text-transform:uppercase;color:var(--dim)}
.filter-pair select,.filter-pair input{font-size:13px;letter-spacing:normal;text-transform:none;max-width:245px}
.more-filters{flex-basis:100%;margin:0;padding:8px 0;border:0}
.more-filters summary{font:12px var(--sans);margin:0 0 8px}
.restored-list{overflow-x:auto}
.restored-list .lt{table-layout:fixed;min-width:1150px}
.restored-list .lt th:nth-child(1){width:21%}.restored-list .lt th:nth-child(2){width:13%}.restored-list .lt th:nth-child(3){width:16%}.restored-list .lt th:nth-child(4){width:21%}.restored-list .lt th:nth-child(5){width:22%}.restored-list .lt th:nth-child(6){width:7%}
.restored-list td{vertical-align:top;padding:18px 15px;font-size:13px}
.ldname .link{font-weight:650;text-align:left;font-size:14px}
.notebox{white-space:pre-wrap;max-height:150px;overflow:auto;line-height:1.5}
.restext{font-size:12px;line-height:1.55}.resdate{color:var(--dim);font-size:11px;margin-bottom:7px}
.metaline,.ldaddr{font-size:12px;color:var(--dim);margin-top:8px;line-height:1.5}
.alert-chip{display:inline-block;margin:4px 3px 0 0;font-size:11px;padding:4px 7px;border:1px solid #e2c7b5;color:#86572b;background:#faf2df;white-space:normal}
.acts{display:flex;flex-direction:column;align-items:start;gap:7px}.acts button{font-size:11px;padding:5px 7px}
.restored-grid{overflow:auto}.restored-grid table{min-width:2600px}.restored-grid td{max-width:320px;white-space:normal;min-width:105px}
.restored-board{align-items:flex-start;gap:12px;max-height:76vh;overflow:auto}
.restored-board .board-column{flex:0 0 258px;min-width:258px;min-height:220px;max-height:72vh;overflow:auto;padding:12px}
.board-column h3{position:sticky;top:-12px;background:#ebe9e4;padding:10px 0;z-index:1;font-size:18px;display:flex;justify-content:space-between}
.board-column h3 span{font:12px var(--sans);padding:3px 7px;background:white;border:1px solid var(--line)}
.board-record[draggable=true]{cursor:grab}.board-record.dragging{opacity:.45}.board-column.drop-ready{outline:2px solid var(--accent);outline-offset:-2px;background:#e3e9ed}
.board-record:focus{outline:2px solid var(--accent)}.board-name{margin-bottom:8px}.board-name button{text-align:left;font-weight:650}.board-next{border-top:1px solid var(--line);margin-top:12px;padding-top:10px;font-size:12px}
.property-intelligence{border-bottom:1px solid var(--line);padding-bottom:20px;margin-bottom:24px}.source-presence{font-size:12px;color:var(--dim)}
.pager{display:flex;justify-content:center;align-items:center;gap:18px;margin:20px 0}.restored-filters #search{min-width:220px}
.split{min-width:0}.split>section{min-width:0}.split .table-wrap{overflow:auto}
@media(max-width:800px){.master-cards .card{flex-basis:40%}.filter-pair{flex-direction:column;align-items:start}.restored-filters{align-items:end}.cycle-toolbar{align-items:start}.view-toolbar .viewsw{max-width:100%;overflow:auto}.restored-board{max-height:none}.restored-board .board-column{max-height:70vh}.split{display:block}.property-intelligence{padding-top:10px}}
/* Integrated workflows use the original paper, ink and editorial typography. */
.reference-dashboard>.split{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.reference-dashboard .dashboard-cards{margin-bottom:26px}.reference-dashboard .card{min-width:0}
.reference-dashboard table{font-size:13.5px}.reference-dashboard th{text-align:left}.reference-dashboard td{padding:11px 14px;text-align:left}
.reference-dashboard .link{color:inherit;font:inherit;text-decoration:none;padding:0;text-align:inherit}
.reference-dashboard .link:hover{text-decoration:underline;text-underline-offset:3px}
.reference-dashboard .good,.reference-dashboard .coverage-good b{color:var(--good)}
.reference-dashboard .warn,.reference-dashboard .coverage-warn b{color:var(--warn)}
.reference-dashboard .bad,.reference-dashboard .coverage-bad b{color:var(--bad)}
.reference-dashboard .muted-stage{color:var(--dim);font-size:12px}
.reference-dashboard .dashboard-health td:last-child{text-align:right;font-weight:650}
.reference-dashboard .dashboard-measure{margin-bottom:11px}.reference-dashboard .dashboard-measure>div{font-size:12.5px}
.reference-dashboard .dashboard-measure progress{height:6px;margin-top:3px}
.reference-dashboard .dashboard-measure[class*=coverage-]{margin-bottom:13px}.reference-dashboard .dashboard-measure[class*=coverage-]>div{font-size:14.5px}
.dashboard-mode{font-size:12px;color:var(--warn);margin:-14px 0 14px}
.dashboard-reconciliation{margin:0;border:0;padding:0}.dashboard-reconciliation summary{font:12.5px var(--sans);color:var(--dim)}
.dashboard-reconciliation p{font-size:13px;margin:12px 0}.dashboard-reconciliation .table-wrap{max-width:760px}
@media(max-width:900px){.reference-dashboard>.split{grid-template-columns:1fr}.reference-dashboard .dashboard-reps{font-size:12px}.reference-dashboard .dashboard-reps td,.reference-dashboard .dashboard-reps th{padding:9px 7px}}
.dashboard-more summary{font:13px var(--sans);margin-bottom:14px;cursor:pointer}
.dashboard-cards .card{flex:1;min-width:180px;text-align:left}.dashboard-cards .n,.dashboard-cards .l{display:block}
.dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin:22px 0}.dashboard-grid>section{min-width:0;margin:0}.dashboard-grid h2{font:600 14px var(--sans)}.dashboard-grid .panel .panel{border:0;margin:0;border-radius:0}.dashboard-grid table{min-width:0}.dashboard-grid td,.dashboard-grid th{padding:12px}.dashboard-grid td:not(:first-child){text-align:right}.dashboard-grid td button{font:inherit}.dashboard-basis{margin:12px 0 20px}.dashboard-footnote{padding:12px 16px;border-top:1px solid var(--line)}
.dashboard-measure{margin:0 0 15px}.dashboard-measure>div{display:flex;justify-content:space-between;align-items:start;gap:12px;font-size:13px}.dashboard-measure button{text-align:left;font:inherit;color:var(--body)}.dashboard-measure progress{appearance:none;display:block;width:100%;height:7px;margin-top:5px;border:0;background:transparent;color:var(--accent)}.dashboard-measure progress::-webkit-progress-bar{background:transparent}.dashboard-measure progress::-webkit-progress-value{background:var(--accent);border-radius:2px}.dashboard-measure progress::-moz-progress-bar{background:var(--accent)}.coverage-good progress::-webkit-progress-value{background:var(--good)}.coverage-warn progress::-webkit-progress-value{background:var(--warn)}.coverage-bad progress::-webkit-progress-value{background:var(--bad)}
@media(max-width:900px){.dashboard-grid{grid-template-columns:1fr}.dashboard-cards{flex-wrap:wrap}.dashboard-grid .table-wrap{overflow:auto}}
.page-loading{position:fixed;right:24px;bottom:20px;background:var(--ink);color:white;padding:10px 18px;z-index:90;font-size:12px}main[aria-busy=true]{opacity:.65;pointer-events:none}
.demo-banner{display:flex;align-items:center;gap:16px;flex-wrap:wrap;border:1px solid #d6c7a0;background:#f7f1df;padding:14px 18px;margin-bottom:24px;color:#725519}.demo-banner>span{flex:1;min-width:280px}.demo-banner details{width:100%}.bulk-list{max-height:50vh;overflow:auto;margin:20px 0}.company-quarantine{padding:18px;margin:20px 0}.report-period select{max-width:180px;margin-top:8px}.property-intelligence{border:1px solid #ddd;padding:16px;margin:10px 0 24px}

/* One scroll owner per work area; navigation remains above long rows/lanes. */
.workspace-groups,.workspace-pages{display:flex;align-items:center;gap:24px;min-height:38px;overflow:auto;width:100%;scrollbar-width:thin}
header nav{display:block;flex:1 0 100%;order:3;overflow:visible;min-height:0;margin:0}
header{height:auto;gap:0 24px;padding-top:10px;align-items:center}
header .logo{padding:0}header .spacer{flex:1}header .local-status{margin-left:auto}
.workspace-groups{border-bottom:1px solid var(--line2);gap:10px;padding:6px 0}
header .workspace-groups button{border:0;border-radius:3px;padding:0 14px;font-weight:600}
.workspace-groups button.on{background:var(--accent);color:white}
.workspace-groups button:hover:not(.on){background:var(--paper)}
.workspace-location{font-size:12px;color:var(--dim);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.settings-navigation{font-size:12px;padding:4px 8px;border-radius:3px}
.settings-navigation.on{background:var(--accent-soft);color:var(--accent)}
.workspace-groups button,.workspace-pages button{flex:none;height:38px;font-size:13px;padding:0 2px}
.workspace-pages button[hidden]{display:none}
.workspace-pages button{font-size:12px;color:var(--dim)}
.workspace-pages button.on{color:var(--accent)}
.workspace-pages[hidden]{display:none}
.workspace-pages .secondary-utility{margin-left:auto}
.workflow-navigation{display:flex;flex-wrap:wrap;gap:8px 22px;margin:0 0 20px;border-bottom:1px solid var(--line);padding:0 0 10px;align-items:center}
.workflow-navigation button{height:auto;padding:5px 0;font-size:12px}
.page-head .page-actions{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
@media(max-width:700px){.workspace-location{display:none}.workspace-groups{gap:6px}header .workspace-groups button{padding:0 10px}header{column-gap:12px}.workspace-pages{gap:20px}}
.sheet-options,.board-scope{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:12px 0}
.sheet-options label{font-size:13px}.sheet-options select{margin-left:8px}
.sheet-options details{position:relative;padding:0;border:0;margin:0}
.sheet-options summary{cursor:pointer;color:var(--accent);padding:6px}
.column-choices{position:absolute;z-index:10;top:100%;left:0;background:var(--card);border:1px solid var(--line);box-shadow:0 8px 20px #1f1e1b16;padding:16px;display:grid;grid-template-columns:repeat(2,minmax(160px,1fr));gap:9px 16px;width:min(420px,80vw);max-height:55vh;overflow:auto}
.column-choices label{display:flex;align-items:center;gap:7px}
.task-scopes{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 22px}
dialog.property-drawer{margin:0 0 0 auto;width:min(880px,76vw);height:100dvh;max-height:100dvh;border-radius:0;padding:0 26px 30px;overflow:auto}
dialog.property-drawer>form{position:sticky;top:0;z-index:8;background:var(--card);height:48px;margin:0 -26px;padding:8px 18px;border-bottom:1px solid var(--line)}
dialog.property-drawer>form .close{position:static;float:right}
.property-sections{display:flex;flex-wrap:wrap;gap:6px;margin:16px 0}
.property-sections button{font-size:12px;padding:5px 9px}
.deal-brief{padding:16px;border:1px solid var(--line);background:var(--paper)}
.deal-brief>summary{font:22px var(--serif);color:var(--ink)}
.sales-assessment{border-left:3px solid var(--accent);padding:12px 16px;margin:16px 0;background:var(--accent-soft)}
.sales-assessment ul{padding-left:20px}.sales-assessment p{margin:8px 0}#sales-profile-form fieldset{border:0;padding:0;margin:14px 0}
.deal-brief p{margin:8px 0}.deal-brief ul{padding-left:20px;margin:10px 0}
.deal-brief article{border-top:1px solid var(--line);padding:10px 0}
.brief-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:14px 0}
.brief-facts small{display:block;color:var(--dim)}.brief-facts b{display:block;font-size:14px}.brief-facts p{font-size:12px;color:var(--dim)}
@media(max-width:900px){.brief-facts{grid-template-columns:1fr}.restored-grid td:nth-child(1),.restored-grid th:nth-child(1){position:static!important}.restored-grid td:nth-child(2),.restored-grid th:nth-child(2){left:0!important;min-width:170px!important;width:170px!important;max-width:170px!important}}
.property-drawer details,.property-drawer section{scroll-margin-top:60px}
.property-drawer::backdrop{background:rgba(31,30,27,.16)}
@media(max-width:700px){header{padding:8px 14px 0}.workspace-groups,.workspace-pages{gap:18px}header nav{margin-top:0}.column-choices{position:static;width:100%;grid-template-columns:1fr}dialog.property-drawer{width:100vw;padding:0 18px 24px}dialog.property-drawer>form{margin:0 -18px}.property-drawer .form-grid{grid-template-columns:1fr}.sheet-options{align-items:start}.board-scope{align-items:start}}
.horizontal-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:8px 0 12px;scroll-margin-top:120px}
.horizontal-controls label{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--dim)}
.horizontal-controls input[type=range]{width:190px;accent-color:var(--accent);padding:0;cursor:pointer}
.restored-grid{overflow:visible;min-width:0}
.restored-grid>.table-wrap{height:var(--workarea-height,55vh);overflow:auto;scrollbar-gutter:stable;max-width:100%;margin-bottom:12px}
.restored-grid table{border-collapse:separate;border-spacing:0;min-width:3000px}
.restored-grid th{position:sticky;top:0;z-index:3;background:#f7f5f1}
.restored-grid td:nth-child(1),.restored-grid th:nth-child(1){position:sticky;left:0;min-width:130px;width:130px;max-width:130px;background:#fff;z-index:2}
.restored-grid td:nth-child(2),.restored-grid th:nth-child(2){position:sticky;left:130px;min-width:220px;width:220px;max-width:220px;background:#fff;z-index:2;border-right:2px solid var(--line)}
.restored-grid th:nth-child(1),.restored-grid th:nth-child(2){z-index:4;background:#f7f5f1}
.restored-grid .sheet-cell{display:block;overflow:visible;line-height:19px;max-height:none;overflow-wrap:anywhere}
.restored-grid .sheet-notes,.restored-grid .sheet-alerts{min-width:300px;width:300px}
.sheet-disclosure{border:0;margin:0;padding:0}.sheet-disclosure summary{cursor:pointer;color:var(--accent);white-space:normal;font:600 13px/1.5 var(--sans);padding:0}
.sheet-disclosure[open] summary{margin-bottom:10px}.sheet-alert-text{margin:0 0 10px;padding:8px 10px;border-left:3px solid #b07b31;background:#faf3df;white-space:normal;overflow-wrap:anywhere}
.board-record.saving{outline:2px dashed var(--accent)}.board-save-label{display:block;font-size:12px;color:var(--accent);padding:6px 0}
.duplicate-confidence{max-width:480px;margin-bottom:14px}.duplicate-confidence p{margin:8px 0}.duplicate-confidence summary{cursor:pointer}.duplicate-confidence li{margin-bottom:5px}
.match-score{display:inline-block;font-size:13px;font-weight:650;border:1px solid;padding:5px 9px;border-radius:4px}
.match-score--high{background:#e8f2eb;color:#245a3d;border-color:#9cbda8}.match-score--medium{background:#fff4d9;color:#785716;border-color:#d4ba76}.match-score--low{background:#f8eae8;color:#85392e;border-color:#cea29b}
.duplicate-controls{border:1px solid var(--line,#dedbd4);background:#fff;padding:18px;margin:18px 0}
.confidence-bands{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:var(--line,#dedbd4);border:1px solid var(--line,#dedbd4)}
.confidence-bands button{display:flex;flex-direction:column;align-items:flex-start;gap:8px;background:#fff;border:0;border-radius:0;padding:16px;text-align:left;color:inherit}
.confidence-bands button[aria-pressed=true]{background:#edf2f6;box-shadow:inset 0 -3px var(--accent,#244c72)}
.confidence-bands strong{font:28px Georgia,serif}.confidence-bands span{font-size:13px}
.duplicate-range{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-top:20px}
.duplicate-range label{display:flex;flex-direction:column;gap:6px;font-size:12px}.duplicate-range input{width:90px}.duplicate-range>span{align-self:center}
.duplicate-batch-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0}
.duplicate-batch-list{max-height:36vh;overflow:auto;margin:16px 0}.duplicate-batch-list th{position:sticky;top:0;background:#fff}.duplicate-batch-list td{white-space:normal;overflow-wrap:anywhere}
.duplicate-consent{display:flex;gap:10px;align-items:flex-start;margin:20px 0}.duplicate-consent input{flex:none;width:18px;height:18px}
#duplicate-batch-error{color:#85392e}#duplicate-batch-progress{color:var(--accent,#244c72)}
@media(max-width:620px){.confidence-bands{grid-template-columns:repeat(2,minmax(0,1fr))}.duplicate-batch-bar{align-items:flex-start;flex-direction:column}.duplicate-range select{max-width:100%}}
.restored-grid td{padding:10px 12px}.restored-grid .acts{display:flex;flex-direction:row;flex-wrap:nowrap;min-width:270px;gap:6px}
.restored-board{height:var(--workarea-height,55vh);max-height:none;overflow-x:auto;overflow-y:hidden;align-items:stretch;scrollbar-gutter:stable;padding-bottom:16px}
.restored-board .board-column{height:100%;max-height:none;min-height:0;overflow:auto}
.restored-board .board-column h3{position:sticky;top:-12px;background:#fff;z-index:1;padding:10px 0;margin-top:-2px}
.restored-grid>.table-wrap:focus-visible,.restored-board:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
#create-task-form .form-field{margin-bottom:16px}#create-task-form select{width:100%;max-width:100%}
@media(max-width:600px){.horizontal-controls{gap:8px}.horizontal-controls input[type=range]{width:110px}.restored-grid td:nth-child(1),.restored-grid th:nth-child(1){position:static}.restored-grid td:nth-child(2),.restored-grid th:nth-child(2){left:0;min-width:170px;width:170px;max-width:170px}}
/* Buying plans use the existing editorial form language, not a new dashboard. */
.plan-entry{margin:14px 0;padding:14px;border:1px solid var(--line,#dedbd4);min-width:0}
.plan-entry legend{padding:0 6px;font-weight:600}
.plan-entry label{display:block;margin-bottom:10px;font-size:13px}
.plan-entry input,.plan-entry select,.plan-entry textarea{display:block;box-sizing:border-box;width:100%;min-width:0;margin-top:5px}
#buying-plan-form>fieldset{border:0;padding:0;min-width:0}
#property-buying-plan pre{white-space:pre-wrap;overflow-wrap:anywhere}
.duplicate-results td{vertical-align:middle;padding-top:12px;padding-bottom:12px}
.duplicate-results .match-score{white-space:nowrap;margin:0;font-size:12px;padding:4px 8px}
.duplicate-row-actions{display:flex;gap:8px;align-items:center;white-space:nowrap}
.duplicate-row-actions button:disabled{opacity:.4;cursor:not-allowed}
.duplicate-review-hint{display:block;color:var(--muted,#777);margin-top:4px;font-size:11px}
.duplicate-pair-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}
.duplicate-pair-summary section{border:1px solid #dedbd5;padding:16px;border-radius:3px}
.duplicate-pair-summary p{margin:8px 0}
@media(max-width:600px){.duplicate-pair-summary{grid-template-columns:1fr}}
