:root{font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#172b28;background:#f6f7f4}*{box-sizing:border-box}body{margin:0}header{background:#143e37;color:white;min-height:72px;padding:1rem max(1.25rem,calc((100vw - 1240px)/2));display:flex;align-items:center;justify-content:space-between}.brand{font-weight:700;font-size:1.35rem}.brand span{font-weight:400;font-size:.9rem;display:block;letter-spacing:.09em;text-transform:uppercase}main{max-width:1240px;margin:auto;padding:1.5rem}h1{font-size:clamp(1.8rem,3vw,2.7rem);margin:.2rem 0}h2{font-size:1.2rem}p{line-height:1.55}.eyebrow{text-transform:uppercase;letter-spacing:.12em;color:#476d5a;font-size:.75rem;font-weight:700}.intro{max-width:1000px;margin:auto}.form-grid,.market-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(270px,1fr);gap:1.4rem}.form-grid{grid-template-columns:1fr 1fr}form,.panel{background:white;padding:1.4rem;border:1px solid #dce5dc;border-radius:14px;box-shadow:0 3px 16px #143e3710;margin:0 0 1.2rem}.agreement{margin:1rem 0;border:1px solid #839b8b;border-radius:8px;padding:.8rem}.agreement h3{margin:.2rem 0}.agreement p{font-size:.88rem;margin:.4rem 0}.agreement-copy{height:12rem;overflow-y:auto;white-space:pre-wrap;overflow-wrap:anywhere;padding:.75rem;background:#f7faf7;border:1px solid #839b8b;border-radius:6px;font-size:.88rem;line-height:1.55}.agreement-copy:focus-visible{outline:3px solid #a27631;outline-offset:2px}button:disabled{cursor:not-allowed;opacity:.55}label{display:block;font-weight:600;margin:.8rem 0}input,textarea,select{display:block;width:100%;padding:.65rem;border:1px solid #839b8b;border-radius:6px;font:inherit;margin-top:.25rem}textarea{min-height:6rem}.check{font-weight:400;display:flex;gap:.5rem;align-items:flex-start}.check input{width:auto;margin:.3rem 0 0}button{cursor:pointer;border:0;background:#145744;color:white;border-radius:6px;padding:.7rem 1rem;font:inherit;font-weight:600}button:hover,button:focus-visible{background:#0e4435}a{color:#175444}header button{background:#f6f7f4;color:#143e37}.heading{border-bottom:2px solid #cadccc;margin-bottom:1.4rem;padding-bottom:1rem}.market-grid>div{min-width:0}.table-wrap{overflow-x:auto}.table-wrap:focus-visible{outline:3px solid #a27631;outline-offset:2px}.table-hint{display:none;font-size:.82rem;color:#476052;margin:.2rem 0 .4rem}table{border-collapse:collapse;width:100%;min-width:610px;text-align:left}th,td{padding:.65rem;border-bottom:1px solid #dce5dc;vertical-align:top}th{font-size:.85rem;color:#365147}.activity{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.activity section{border:1px solid #e1e8e1;border-radius:8px;padding:.7rem}.activity h3{font-size:1rem;margin:0}.activity ul{padding-left:1.2rem}footer{font-size:.83rem;color:#476052;padding:1rem 0}#message:not(:empty){background:#fff7df;border-left:4px solid #bb8a2c;padding:1rem;margin-bottom:1rem}#staff{max-width:760px}#pending p{padding:.6rem;border-bottom:1px solid #ddd}[hidden]{display:none!important}@media(max-width:780px){.table-hint{display:block}.form-grid,.market-grid{grid-template-columns:1fr}.activity{grid-template-columns:1fr}main{padding:1rem}header{padding:1rem}.panel,form{padding:1rem}}
.portal-return{margin:0 0 1.2rem}.portal-return a{display:inline-flex;align-items:center;min-height:44px;padding:.6rem .9rem;border:1px solid #b8d0c1;border-radius:6px;background:#e7efe9;color:#143e37;font-weight:700;text-decoration:none}.portal-return a:hover{background:#d8e8dd}.portal-return a:focus-visible{outline:3px solid #a27631;outline-offset:2px}
/* Sign in first; registration stays a deliberate secondary choice. */
.form-grid{display:block;max-width:640px;margin:0 auto}#onboard.account-view #register{display:none!important}.signin-alternatives{border-top:1px solid #dce5dc;margin-top:1.25rem;padding-top:.5rem}.signin-alternatives p{margin:.6rem 0}.text-action{background:none;border:0;padding:.2rem;color:#175444;text-decoration:underline;font-weight:700}.text-action:hover,.text-action:focus-visible{background:#e7efe9;color:#143e37;outline:2px solid #a27631;outline-offset:2px}.legal-links{font-size:.9rem;margin:.8rem 0}#account-tools>button{margin:0 .5rem .8rem 0}.header-actions{display:flex;align-items:center;gap:.8rem}#portal-menu{position:relative}#portal-menu summary{list-style:none;cursor:pointer;border-radius:6px;background:#f6f7f4;color:#143e37;padding:.6rem .85rem;font-weight:700}#portal-menu summary::-webkit-details-marker{display:none}#portal-menu summary:focus-visible{outline:3px solid #eebf68;outline-offset:2px}#portal-menu nav{position:absolute;z-index:10;right:0;top:calc(100% + .4rem);width:min(300px,calc(100vw - 2rem));padding:.7rem;background:white;border:1px solid #dce5dc;border-radius:9px;box-shadow:0 8px 24px #143e3740;display:grid;gap:.4rem}#portal-menu nav button,#portal-menu nav a{display:block;text-align:left;width:100%;padding:.7rem;border-radius:5px}#portal-menu nav a{color:#143e37;text-decoration:none;background:#f6f7f4;font-weight:600}#portal-menu nav a:hover,#portal-menu nav a:focus-visible{background:#dce5dc}

.outline-picker{border:1px solid #839b8b;padding:1rem;margin:1rem 0;border-radius:8px}.outline-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin:.8rem 0}.outline-actions button{min-width:44px;min-height:44px}#outline-map{height:320px;position:relative;overflow:hidden;background:#e8e9e3;cursor:crosshair;touch-action:none;border:1px solid #839b8b;border-radius:6px}#outline-tiles,#outline-svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}#outline-tiles img{position:absolute;width:256px;height:256px;max-width:none}#outline-subject{position:absolute;z-index:2;color:#b42d1e;font-size:30px;text-shadow:0 0 3px white;transform:translate(-50%,-50%);pointer-events:none}#outline-svg{z-index:1}#outline-svg polygon{fill:#16846055;stroke:#095c44;stroke-width:3}#outline-svg circle{fill:#095c44;stroke:white;stroke-width:2}.map-attribution{font-size:.78rem}

#client-map{height:300px;position:relative;overflow:hidden;background:#e8e9e3;border:1px solid #839b8b;border-radius:6px}#client-map-tiles,#client-map-markers{position:absolute;inset:0}#client-map-tiles{pointer-events:none}#client-map-tiles img{position:absolute;width:256px;height:256px;max-width:none}#client-map-markers{z-index:2;pointer-events:none}.client-pin{position:absolute;transform:translate(-50%,-50%);min-width:28px;height:28px;padding:0 5px;border:2px solid #fff;border-radius:50%;box-shadow:0 1px 4px #102b24bb;pointer-events:auto;font-size:14px;font-weight:800;line-height:22px;text-align:center;color:white}.client-pin.home{background:#a32a22}.client-pin.sold{background:#116849}.client-pin:hover,.client-pin:focus-visible{outline:3px solid #e3b75b;outline-offset:2px}.client-pin:focus-visible{z-index:3}#client-area-tools{font-size:.86rem}
#client-area-tools .outline-actions button{font-size:.86rem;padding:.55rem .7rem}
#client-area-state{min-height:1.3rem;color:#365147}
#client-map.editing{cursor:crosshair;touch-action:none}
#client-area-svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}
#client-area-svg .approved{fill:none;stroke:#a5650e;stroke-width:3;stroke-dasharray:7 5}
#client-area-svg .selected{fill:#16846044;stroke:#095c44;stroke-width:3}
#client-area-svg .draft{fill:#244abd44;stroke:#244abd;stroke-width:3}
#client-area-svg circle{fill:#244abd;stroke:#fff;stroke-width:2}
#client-map-status,#client-map-selection{font-size:.84rem;color:#365147}#client-map-selection:not(:empty){border-left:3px solid #116849;padding-left:.6rem}@media(max-width:780px){#client-map{height:320px}}

/* Owner-directed compact overview, criteria/notes row and spreadsheet sections. */
.overview-heading{display:flex;justify-content:space-between;align-items:center;gap:1rem}.overview-heading h2{margin:.5rem 0}.overview-heading button{min-width:44px;min-height:44px;margin-left:.3rem}.overview-strip{display:flex;gap:1rem;overflow-x:auto;scroll-snap-type:x proximity;padding:.3rem .15rem .65rem;margin-bottom:1rem;overscroll-behavior-x:contain}.overview-strip>.panel{flex:0 0 520px;height:220px;overflow-y:auto;scroll-snap-align:start;margin:0;min-width:0}.overview-strip>.overview-prices{flex-basis:390px}.small{font-size:.82rem;color:#476052}.watch-middle{display:grid;grid-template-columns:minmax(280px,320px) minmax(0,1fr);gap:1.3rem;margin-bottom:1.2rem;align-items:start}.watch-middle>.panel{margin:0;min-width:0;min-height:350px;max-height:440px;overflow-y:auto}.watch-middle h2{margin-top:0}.criteria-panel dl{font-size:.84rem;display:grid;grid-template-columns:1fr 1.2fr;gap:.4rem;margin:.5rem 0}.criteria-panel dt{font-weight:650}.criteria-panel dd{margin:0}.criteria-fields{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}.criteria-fields label{font-size:.78rem;margin:.35rem 0}.criteria-fields input{padding:.45rem}#client-criteria{padding:0;border:0;box-shadow:none;margin:.7rem 0}#client-criteria button,#criteria-map{font-size:.82rem;margin:.3rem 0;min-height:44px}.criteria-panel summary{font-weight:700;color:#175444;cursor:pointer;min-height:32px}.client-note{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;min-height:110px;border-left:3px solid #b7cdbd;background:#f5f8f4;padding:1rem}.market-grid{grid-template-columns:minmax(0,1.3fr) minmax(360px,1fr);align-items:start}.market-grid>*{min-width:0}#client-map{height:380px}.activity-sheets{display:block}.activity-sheets>section{border:0;padding:0;margin:1.5rem 0 2rem;border-radius:0}.activity-sheets h3{margin-bottom:.7rem;font-size:1.05rem}.market-sheet{min-width:1180px;font-size:.83rem;border:1px solid #cedbcf}.market-sheet th{background:#e7efe8;white-space:nowrap;position:sticky;top:0}.market-sheet td,.market-sheet th{border:1px solid #d8e2d9;padding:.6rem}.market-sheet tbody tr:nth-child(even){background:#f5f8f4}.market-sheet td:first-child{min-width:0;width:1%;white-space:nowrap}.market-sheet td.addr{min-width:150px;max-width:200px}.market-sheet td.small{white-space:nowrap}.market-sheet td:last-child{min-width:220px;max-width:320px;white-space:pre-wrap;overflow-wrap:anywhere}.table-wrap{max-width:100%;overscroll-behavior-x:contain}.sheet-note{font-size:.8rem;margin:.5rem 0;color:#476052}.agent-notes-panel select{max-width:100%;font-size:.9rem}
@media(max-width:900px){.market-grid{grid-template-columns:1fr}.watch-middle{grid-template-columns:minmax(255px,.8fr) minmax(0,1.2fr)}}
@media(max-width:620px){.watch-middle{grid-template-columns:1fr}.watch-middle>.panel{min-height:0;max-height:430px}.overview-strip>.panel{flex-basis:300px;height:220px}.overview-strip>.overview-prices{flex-basis:285px}.overview-heading h2{font-size:1rem}.overview-heading button{padding:.55rem}.market-grid{display:block}#client-map{height:360px}.criteria-fields{grid-template-columns:1fr 1fr}}

/* Staff view-as banner and password visibility toggle (2026-10-17). */
.viewing-as{position:sticky;top:0;z-index:20;background:#5a2d0c;color:#fff;padding:.7rem 1rem;font-size:.95rem;text-align:center}.viewing-as a{color:#ffe2b8;font-weight:700;margin-left:.6rem}.viewing-as strong{text-transform:uppercase;letter-spacing:.08em;margin-right:.4rem}
.pw-field{display:flex;align-items:stretch;gap:.3rem}.pw-field input{flex:1;min-width:0}.pw-toggle{flex:0 0 auto;min-width:44px;padding:0 .6rem;background:#f6f7f4;color:#143e37;border:1px solid #b8d0c1;border-radius:6px;font-size:1.1rem;cursor:pointer}.pw-toggle[aria-pressed="true"]{background:#dce5dc}
body.staff-viewing #criteria-editor,body.staff-viewing #client-area-tools,body.staff-viewing #logout{display:none!important}

.criteria-sentence{font-weight:600;margin:0 0 .5rem}
.impacts{white-space:pre-wrap}
.market-sheet td.num{text-align:right;white-space:nowrap}
.market-sheet td.docs a{margin-right:.4rem;white-space:nowrap}
.market-sheet tr.subject-row td{background:#fff4e5;font-weight:600}

/* Daily Market Activity: breathing room and clearer section titles */
.daily-panel{min-width:0;margin-top:1rem}
.activity-sheets{display:grid;grid-template-columns:minmax(0,1fr);gap:2.5rem}
.activity-sheets>.market-activity-group{min-width:0;margin:0;padding:1.4rem;background:#fff;border:1px solid #dce5dc;border-top:5px solid #476d5a;border-radius:14px;box-shadow:0 3px 16px #143e3710}
.market-activity-group>h3{font-size:1.5rem;line-height:1.3;margin:0 0 .5rem;color:#143e37}
.activity-sheets .activity-section{min-width:0;margin:0;padding:1.2rem 0;border:0;border-radius:0;background:transparent;box-shadow:none}
.activity-sheets .activity-section+.activity-section{border-top:1px solid #dce5dc}
.activity-sheets .activity-section:last-child{padding-bottom:0}
.sheet-notes summary{cursor:pointer;color:#175444;font-weight:600;white-space:nowrap}.sheet-notes p{margin:.5rem 0;white-space:pre-wrap;overflow-wrap:anywhere}
.market-sheet td:last-child{min-width:100px;max-width:260px}
@media(max-width:780px){.activity-sheets>.market-activity-group{padding:1rem}.activity-sheets{gap:2rem}.market-activity-group>h3{font-size:1.3rem}}
.activity-section .section-head{margin-bottom:.9rem}
.activity-sheets .activity-section h4{font-size:1.45rem;margin:0 0 .25rem;color:#143e37;letter-spacing:.01em}
.activity-section h4 .count{font-size:.95rem;font-weight:600;color:#476d5a;background:#e7efe8;border-radius:999px;padding:.15rem .7rem;vertical-align:middle;margin-left:.4rem}
.activity-section .section-sub{margin:0;font-size:.9rem;color:#476052;max-width:70ch}
.market-sheet th abbr{text-decoration:underline dotted #7c9a88;text-underline-offset:3px;cursor:help}
.column-key{margin:.6rem 0 0;font-size:.82rem;color:#476052}.column-key summary{cursor:pointer;font-weight:600;color:#175444;min-height:32px}
.column-legend{display:grid;grid-template-columns:max-content 1fr;gap:.25rem .9rem;margin:.5rem 0 0}.column-legend dt{font-weight:700;color:#365147}.column-legend dd{margin:0}
@media(max-width:780px){.activity-sheets .activity-section h4{font-size:1.25rem}}

/* Compact first column without hiding prices or stretching phase labels. */
.market-sheet th:first-child,.market-sheet td:first-child{width:1%;padding-left:.4rem;padding-right:.4rem}
.market-sheet td.phase{white-space:nowrap;min-width:max-content;max-width:none;overflow-wrap:normal;word-break:normal}
.market-sheet td.phase-date{white-space:nowrap}
.activity-section .availability{font-size:.85rem;color:#476052;margin:.3rem 0}

.property-address{color:#175444;text-decoration:underline;text-underline-offset:3px}.property-address:hover{color:#082e24}.property-address:focus-visible{outline:2px solid #175444;outline-offset:3px}

/* Account-level analysis: only authored content, no client-side placeholder copy. */
.weekly-analysis{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;color:inherit}
.weekly-analysis p{margin:0 0 .75em}.weekly-analysis p:last-child{margin-bottom:0}
.weekly-analysis ul,.weekly-analysis ol{padding-left:1.6em;margin:.5em 0}.weekly-analysis li{margin:.2em 0}
.weekly-analysis:empty{display:none}

.history-notice{font-size:.82rem;line-height:1.5;color:#314f40}.history-date{display:block;font-size:.66rem;font-weight:400;color:#526258}.history-review{white-space:normal;min-width:65px}.history-review[open]{width:310px;max-width:70vw}.history-review p,.history-review ul{font-size:.78rem;line-height:1.45;white-space:normal;margin:.6em 0}.history-review summary{cursor:pointer;color:#215b48;text-decoration:underline}

/* Asking-price reduction comparison; scoped to avoid changing existing tables. */
.price-reductions{margin-top:1.4rem;padding-top:1rem;border-top:1px solid #cbd8cf}.price-reductions h3{font-size:1.08rem;line-height:1.4;margin:0 0 .5rem}.reduction-caption,.reduction-method,.reduction-axis-note{font-size:.76rem;color:#476052;line-height:1.5;margin:.5rem 0}.reduction-subject{color:#a32a22;font-weight:700;font-size:.87rem;margin:.7rem 0}.reduction-row{display:grid;grid-template-columns:84px minmax(0,1fr);align-items:center;gap:6px}.reduction-row-label{font-size:.76rem;font-weight:600}.reduction-track{position:relative;border-bottom:1px solid #e1e8e1;background:#f7f9f6}.reduction-zero,.reduction-reference{position:absolute;top:0;bottom:0;border-left:1px solid #a1afa5;pointer-events:none}.reduction-reference{border-left:2px dashed #a32a2280}.price-reductions .reduction-dot{position:absolute;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;width:28px;height:28px;min-width:0;padding:0;border-radius:50%;background:transparent;color:#657d71;font-size:20px;line-height:1;z-index:1}.price-reductions .reduction-dot.is-subject{color:#a32a22;font-size:25px}.price-reductions .reduction-dot:hover,.price-reductions .reduction-dot:focus-visible{background:#e4eee6;outline:2px solid #145744;outline-offset:0;z-index:2}.reduction-axis{position:relative;height:25px;margin-top:6px}.reduction-axis span{position:absolute;transform:translateX(-50%);font-size:.72rem;white-space:nowrap}.reduction-detail{min-height:4.2em;background:#f4f7f2;border-left:3px solid #a7bcae;padding:.55rem .7rem;font-size:.79rem;overflow-wrap:anywhere;line-height:1.5}.reduction-empty{display:block;padding:.5rem 1rem;font-size:.75rem;color:#476052}.reduction-axis-note{text-align:right}@media(max-width:420px){.reduction-row{grid-template-columns:67px minmax(0,1fr);gap:3px}.reduction-row-label{font-size:.7rem}.price-reductions .reduction-dot{width:22px;height:26px}.reduction-axis span{font-size:.65rem}}
/* Client summary and readable cards complement the full requested spreadsheet. */
.client-summary{border-top:4px solid #ad8657}.summary-counts{display:flex;gap:2rem;flex-wrap:wrap;margin:1rem 0}.summary-counts dt{font-size:.82rem;color:#526a70}.summary-counts dd{font-size:1.7rem;font-weight:600;margin:0}.client-summary-actions,.client-card-actions,.client-view-controls{display:flex;gap:.7rem;align-items:center;flex-wrap:wrap}.client-summary-actions a,.client-card-actions a{padding:.55rem .7rem;border:1px solid #c7d4d6;border-radius:6px;text-decoration:none;min-height:44px;display:inline-flex;align-items:center}.client-summary-actions .primary-link{background:#183e43;color:#fff}.client-view-controls{margin:1.2rem 0}.client-view-controls span{font-weight:700;margin-right:auto}.client-view-controls button[aria-pressed=true]{background:#183e43;color:#fff}.client-view-controls button[aria-pressed=false]{background:white;color:#183e43;border:1px solid #a4bbbf}.client-card-group{margin:1rem 0 1.7rem}.client-card-group>h3{font-size:1.15rem}.client-home-card{background:#fff;border:1px solid #d6e0e1;border-radius:10px;padding:1rem;margin:.7rem 0}.client-home-card h4{margin:0 0 .5rem;font-size:1.08rem}.client-home-card p{margin:.4rem 0}.client-card-price{font-weight:650}.client-card-note{border-left:3px solid #ad8657;padding-left:.7rem}.client-card-actions{margin-top:.8rem;font-size:.88rem}body.client-card-mode .sold-panel .table-wrap,body.client-card-mode .sold-panel>.table-hint,body.client-card-mode #activity{display:none}body.client-card-mode .sold-panel>h2,body.client-card-mode #sold-empty,body.client-card-mode #sold-legend{display:none}#client-report-list{padding-left:1.3rem}#client-report-list li{padding:.6rem 0}#password-reset [role=status],#password-recovery [role=status]{overflow-wrap:anywhere}#password-recovery .text-action,#password-reset .text-action{margin-top:1rem}
@media(min-width:950px){#client-property-cards .client-card-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}#client-property-cards .client-card-group>h3,#client-property-cards .client-card-group>p{grid-column:1/-1}.client-home-card{margin:0}}

.client-card-group>summary{cursor:pointer;font-size:1.05rem;font-weight:650;padding:.8rem .2rem;border-bottom:1px solid #ccd9d7}.client-card-group[open]{padding-bottom:1rem}body.client-card-mode #criteria-sentence-panel .table-wrap,body.client-card-mode #criteria-sentence-panel>.table-hint{display:none}@media(min-width:950px){#client-property-cards .client-card-group{display:block}.client-card-group .client-home-card{margin:.6rem 0}}

/* Exact MLS schools are separate selections, never comma-separated text. */
.school-choice{grid-column:1 / -1;min-width:0;border-top:1px solid #d9e2e4;padding-top:.5rem}.school-choice label{margin:.3rem 0!important}.school-add{display:flex;gap:.4rem;align-items:start}.school-add input{min-width:0;flex:1;margin:0;min-height:44px}.school-add button{flex:none;min-height:44px;margin:0!important}.school-selections{display:flex;flex-wrap:wrap;gap:.4rem;list-style:none;padding:0;margin:.5rem 0;min-width:0}.school-selections:empty{display:none}.school-selections li{max-width:100%;min-width:0}.school-selection{display:block;max-width:100%;overflow-wrap:anywhere;text-align:left;background:#e7efed;color:#183e43;border:1px solid #b9cdca;font-size:.82rem!important;min-height:44px;padding:.45rem .6rem!important;margin:0!important}.school-selection:hover,.school-selection:focus-visible{background:#d6e5e0;color:#183e43}.school-choice-state:empty{display:none}.school-choice-state,.school-selection-help{font-size:.8rem;line-height:1.5}.school-choice-state{margin:.35rem 0}.school-selection-help{color:#476052}#search-default-state[role=alert],#criteria-state:not(:empty){padding:.7rem;background:#fff7df;border-left:3px solid #b58b5d}#search-default-form .criteria-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}#search-default-form .criteria-fields label{font-size:.85rem}@media(max-width:420px){#search-default-form .criteria-fields{grid-template-columns:1fr}}

/* Compact coincident asking-price markers; the selector preserves each home. */
.price-reductions .reduction-dot.is-cluster{background:#587366;color:#fff;font-size:11px;font-weight:700;border:2px solid #f7f9f6}.price-reductions .reduction-dot.is-cluster:hover,.price-reductions .reduction-dot.is-cluster:focus-visible{background:#145744;color:#fff}.reduction-chooser{display:block;margin:.6rem 0;font-size:.79rem;color:#314d3d}.reduction-chooser[hidden]{display:none}.reduction-chooser select{display:block;width:100%;max-width:100%;min-width:0;margin-top:.3rem;font:inherit;padding:.5rem;box-sizing:border-box}

/* The map is a complete workspace, outside the comparison table sidebar. */
.client-map-panel{width:100%;min-width:0;margin:1.5rem 0}.client-map-panel #client-map{width:100%;height:auto;min-height:0}.client-map-panel .emily-map-canvas{height:65vh;min-height:420px}.market-grid{grid-template-columns:minmax(0,1fr)}
@media(max-width:650px){.client-map-panel .emily-map-canvas{min-height:360px}.client-map-panel{padding:.8rem}}

/* Client Market Watch is a compact, read-only view; staff map styles are separate. */
#criteria-editor,#criteria-map,#client-area-tools{display:none!important}
.client-map-panel #client-map .emily-map-canvas{height:320px;min-height:0;max-height:320px}
.staff-return{color:#173e42;background:#fff;display:inline-block;padding:.65rem .85rem;border:1px solid currentColor;border-radius:5px;text-decoration:none;font-weight:600}
.staff-return[hidden]{display:none}
@media(max-width:650px){.client-map-panel #client-map .emily-map-canvas{height:240px;max-height:240px}.header-actions{flex-wrap:wrap}}

.client-section-nav{display:flex;flex-wrap:wrap;gap:.5rem;border-bottom:1px solid #cedbd8;padding:.75rem 0;margin-bottom:1.25rem;scroll-margin-top:7rem}
.client-section-nav button{background:#edf3f1;color:#173e42;border:1px solid #cadbd5}
.client-section-nav button[aria-current=page]{background:#173e42;color:#fff}
[data-client-section]>h2{margin-top:1rem}.client-fixed-week{color:#425b61;font-weight:600}
.client-feedback{background:#fff;border:1px solid #cedbd8;border-radius:8px;padding:1rem;margin:1rem 0}.client-feedback p{white-space:pre-wrap}
[data-client-section=performance],[data-client-section=notes],[data-client-section=weekly]{min-height:320px}

/* Client overview: map and asking-price chart share one row. */
.client-market-visuals{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1.2rem;align-items:start;margin:1.5rem 0}.client-market-visuals>.panel{min-width:0;margin:0}.client-market-visuals .price-reductions{border-top:1px solid #cbd8cf;padding:1.2rem}.reduction-guide{position:absolute;top:0;bottom:0;border-left:1px solid #e0e7e0;pointer-events:none}
@media(max-width:850px){.client-market-visuals{grid-template-columns:minmax(0,1fr)}}

.client-notes-heading{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.client-notes-heading h2{margin:.8rem 0}.client-har-delay{font-size:.78rem;color:#476052;max-width:240px;line-height:1.4}

/* Account-bound weekly HAR history: inside HAR Listing Views only. */
.client-har-weekly{margin:1rem 0 1.5rem;padding:1rem;border:1px solid #d8e4e6;border-radius:12px;background:#fff;color:#173e45}.client-har-weekly figcaption{font-size:1.15rem;font-weight:700;margin-bottom:1rem}.client-har-weekly-bars{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;align-items:end}.client-har-weekly-column{text-align:center;min-width:0}.client-har-bar-value{display:block;font-size:1.5rem}.client-har-bar-track{height:200px;display:flex;align-items:end;justify-content:center;border-bottom:1px solid #a7bdc2;background:repeating-linear-gradient(to top,transparent 0,transparent 39px,#e5edef 39px,#e5edef 40px)}.client-har-bar{width:65%;background:#087f8c;border-radius:6px 6px 0 0}.client-har-bar.advertisement{background:#cf8730}.client-har-weekly-column>span{display:block;margin-top:.5rem;font-size:.95rem}.client-har-ad-label{background:#fff4e7;color:#85430e;padding:.6rem .8rem;border-left:4px solid #cf8730}.client-har-weekly-table{overflow-x:auto;max-width:100%}.client-har-weekly-table table{width:100%;min-width:0;border-collapse:collapse;table-layout:fixed}.client-har-weekly-table th,.client-har-weekly-table td{white-space:normal;overflow-wrap:break-word}.client-har-weekly-table th:first-child{width:40%}.client-har-weekly-table th,.client-har-weekly-table td{padding:.65rem;text-align:right;border-bottom:1px solid #d8e4e6}.client-har-weekly-table th:first-child,.client-har-weekly-table td:first-child{text-align:left}.client-har-weekly-table tfoot{font-weight:700;background:#eef6f6}@media(max-width:600px){.client-har-weekly{padding:.65rem}.client-har-weekly-bars{gap:.35rem}.client-har-weekly-column>span{font-size:.8rem}.client-har-weekly-table th,.client-har-weekly-table td{padding:.4rem;font-size:.85rem}.client-har-bar-track{height:160px;background:repeating-linear-gradient(to top,transparent 0,transparent 31px,#e5edef 31px,#e5edef 32px)}}

/* Client landing menu. Section data is loaded only after a choice. */
.client-home-context{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin:1rem 0;color:#34535a}.client-home-context p{margin:.4rem 0}.client-role-switch{display:flex;gap:.5rem}.client-role-switch button[aria-pressed=true]{background:#183e45;color:#fff}.client-home{max-width:960px;margin:1.5rem auto 3rem;padding:2rem}.client-home h1{margin:0 0 .6rem}.client-home>p{color:#476169;margin-bottom:1.6rem}.client-home-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.client-home-card{display:flex;flex-direction:column;gap:.65rem;text-align:left;min-height:136px;padding:1.4rem;background:#fff;color:#183e45;border:1px solid #b5cbc8;border-top:3px solid #ba8b4b;border-radius:8px;cursor:pointer;line-height:1.5}.client-home-card strong{font-size:1.25rem}.client-home-card small{font-size:.95rem;font-weight:400;color:#476169}.client-home-card:hover{background:#edf4f2;border-color:#567e79}.client-home-card:focus-visible,#portal-home:focus-visible{outline:3px solid #ba8b4b;outline-offset:3px}#portal-home{white-space:nowrap}@media(max-width:600px){.client-home{padding:1.2rem;margin-top:1rem}.client-home-grid{grid-template-columns:1fr}.client-home-card{min-height:110px;padding:1.1rem}.client-home-context{gap:.5rem}.header-actions{flex-wrap:wrap}}

.client-menu-active>header{position:sticky;top:0;z-index:1000;box-shadow:0 2px 8px #143e3718}

/* Preserve readable button colors through pointer and keyboard interaction. */
header button:hover,header button:focus-visible,header button:active{background:#f6f7f4;color:#143e37}
header button:focus-visible{outline:3px solid #ba8b4b;outline-offset:3px}
button.client-home-card:hover,button.client-home-card:focus-visible,button.client-home-card:active{background:#fff;color:#183e45;border-color:#b5cbc8;border-top-color:#ba8b4b}
