#special-projects-estimating{--spe-bg:var(--surface,#fff);--spe-alt:var(--surface2,#f4f6f9);--spe-text:var(--text,#1b2b43);--spe-muted:var(--text-light,#66758a);--spe-border:var(--border,#dce3ec);--spe-main:var(--navy,#1a2f5e);color:var(--spe-text);font:14px/1.5 'Segoe UI',Arial,sans-serif;max-width:1500px;margin:auto}
#special-projects-estimating *{box-sizing:border-box}#special-projects-estimating [hidden]{display:none!important}#special-projects-estimating h1{font-size:26px;margin:0}#special-projects-estimating h2{font-size:19px;margin:0 0 10px}#special-projects-estimating h3{font-size:15px;margin:0 0 10px}#special-projects-estimating p{margin:7px 0 12px}#special-projects-estimating .spe-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}#special-projects-estimating .spe-header p,.spe-muted{color:var(--spe-muted)}#special-projects-estimating .spe-eyebrow{font-size:10px;letter-spacing:1.4px;color:var(--spe-muted)}#special-projects-estimating .spe-workspace{background:var(--spe-alt);border-radius:8px;padding:9px 14px;font-size:12px}#special-projects-estimating .spe-nav{display:flex;flex-wrap:wrap;gap:6px;border-bottom:1px solid var(--spe-border);padding-bottom:12px;margin-bottom:22px}#special-projects-estimating button,#special-projects-estimating input,#special-projects-estimating textarea,#special-projects-estimating select{font:inherit}#special-projects-estimating button{cursor:pointer}#special-projects-estimating .spe-button,#special-projects-estimating .spe-nav button{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--spe-border);border-radius:7px;background:var(--spe-bg);color:var(--spe-text);padding:8px 12px;font-size:12px}#special-projects-estimating .spe-primary,#special-projects-estimating .spe-nav button[aria-pressed=true]{background:var(--spe-main);border-color:var(--spe-main);color:#fff}#special-projects-estimating button:disabled{opacity:.5;cursor:default}#special-projects-estimating button:focus-visible{outline:2px solid var(--fs-sky,#2789c2);outline-offset:2px}#special-projects-estimating .spe-panel{padding:20px;background:var(--spe-bg);border:1px solid var(--spe-border);border-radius:10px;margin:0 0 16px}#special-projects-estimating .spe-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:16px}#special-projects-estimating .spe-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}#special-projects-estimating .spe-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:16px}#special-projects-estimating .spe-metrics{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--spe-border);border-radius:9px;background:var(--spe-bg);margin:18px 0 22px;padding:18px 0}#special-projects-estimating .spe-metrics>div{padding:0 20px;border-right:1px solid var(--spe-border)}#special-projects-estimating .spe-metrics>div:last-child{border:0}#special-projects-estimating .spe-metrics span{display:block;font-size:12px;color:var(--spe-muted)}#special-projects-estimating .spe-metrics strong{font-size:29px;font-weight:600}#special-projects-estimating .spe-filterbar{justify-content:flex-start}#special-projects-estimating .spe-filterbar label{min-width:210px}#special-projects-estimating .spe-table-wrap{overflow-x:auto;border:1px solid var(--spe-border);border-radius:9px;background:var(--spe-bg)}#special-projects-estimating table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}#special-projects-estimating td,#special-projects-estimating th{padding:14px 12px;border-bottom:1px solid var(--spe-border);vertical-align:top}#special-projects-estimating th{color:var(--spe-muted);font-weight:500;white-space:nowrap}#special-projects-estimating tr:last-child td{border:0}#special-projects-estimating small{display:block;color:var(--spe-muted);margin-top:4px;font-size:11px}#special-projects-estimating .spe-number{font-variant-numeric:tabular-nums;white-space:nowrap}#special-projects-estimating .spe-badge{display:inline-block;background:var(--spe-alt);padding:4px 8px;border-radius:5px;font-size:11px}#special-projects-estimating .spe-due{color:var(--fs-red,#ad3939)}#special-projects-estimating .spe-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:12px 0}#special-projects-estimating label{display:flex;flex-direction:column;gap:5px;font-size:12px;margin-bottom:10px}#special-projects-estimating input:not([type=checkbox]),#special-projects-estimating select,#special-projects-estimating textarea{width:100%;min-width:0;border:1px solid var(--spe-border);background:var(--spe-bg);color:var(--spe-text);border-radius:6px;padding:9px 10px}#special-projects-estimating textarea{resize:vertical}#special-projects-estimating .spe-builder{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:24px}#special-projects-estimating .spe-summary{align-self:start;border-top:3px solid var(--spe-main);padding-top:16px}#special-projects-estimating #spe-live-summary>strong{font-size:29px;overflow-wrap:anywhere}#special-projects-estimating dl{display:grid;grid-template-columns:1fr auto;gap:10px;font-size:12px;margin:20px 0}#special-projects-estimating dd{margin:0;font-variant-numeric:tabular-nums}#special-projects-estimating ul{font-size:12px;padding-left:18px}#special-projects-estimating .spe-checks{display:flex;gap:15px;flex-wrap:wrap;margin-top:10px}#special-projects-estimating .spe-checks label,#special-projects-estimating .spe-inline-check{display:flex;flex-direction:row;align-items:center;gap:6px}#special-projects-estimating .spe-contact{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;border-bottom:1px solid var(--spe-border);padding:12px 0;margin-bottom:15px}#special-projects-estimating .spe-library-filters{display:grid;grid-template-columns:2fr 1.3fr 1fr;gap:12px}#special-projects-estimating .spe-clause{white-space:pre-wrap;overflow-wrap:anywhere}#special-projects-estimating .spe-message,#special-projects-estimating .spe-notice{padding:12px 15px;border-left:3px solid var(--fs-sky,#268cb8);background:var(--spe-alt);margin:12px 0 20px}#special-projects-estimating .spe-error{border-color:var(--fs-red,#ad3939)}#special-projects-estimating dialog{background:var(--spe-bg);color:var(--spe-text);border:1px solid var(--spe-border);border-radius:12px;width:min(950px,95vw);max-height:90vh;overflow:auto;padding:24px}#special-projects-estimating dialog::backdrop{background:rgba(10,20,40,.5)}#special-projects-estimating .spe-dialog-top{display:flex;justify-content:flex-end;margin-bottom:16px}#special-projects-estimating pre{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.6 'Segoe UI',sans-serif}#special-projects-estimating details{padding:10px 0}#special-projects-estimating summary{cursor:pointer}#special-projects-estimating .spe-history-row{display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap;padding:15px 0;border-bottom:1px solid var(--spe-border)}#special-projects-estimating .spe-paper{padding:28px 35px;background:var(--spe-bg);border:1px solid var(--spe-border)}#special-projects-estimating .spe-paper h1{font-size:27px}#special-projects-estimating .spe-paper h2{margin:25px 0 12px}#special-projects-estimating .spe-paper p{white-space:pre-wrap;overflow-wrap:anywhere}#special-projects-estimating .spe-price-line{display:flex;flex-wrap:wrap;gap:15px;justify-content:space-between;padding:18px 0;margin:20px 0;border-block:1px solid var(--spe-border)}#special-projects-estimating .spe-price-line strong{font-size:24px}#special-projects-estimating hr{border:0;border-top:1px solid var(--spe-border);margin:20px 0}
@media(max-width:1000px){#special-projects-estimating .spe-builder{grid-template-columns:minmax(0,1fr)}#special-projects-estimating .spe-summary{order:-1}#special-projects-estimating .spe-library-filters{grid-template-columns:1fr 1fr}}
@media(max-width:600px){#special-projects-estimating .spe-header{align-items:flex-start;flex-direction:column}#special-projects-estimating .spe-form-grid,#special-projects-estimating .spe-contact,#special-projects-estimating .spe-library-filters{grid-template-columns:1fr}#special-projects-estimating .spe-panel{padding:15px}#special-projects-estimating .spe-metrics>div{padding:0 10px}#special-projects-estimating .spe-metrics span{font-size:11px}#special-projects-estimating .spe-button,#special-projects-estimating .spe-nav button{min-height:40px}#special-projects-estimating input,#special-projects-estimating textarea,#special-projects-estimating select{font-size:16px}#special-projects-estimating dialog{padding:15px}#special-projects-estimating .spe-paper{padding:18px}}
#special-projects-estimating .spe-drop-zone{display:flex;gap:10px 18px;align-items:center;flex-wrap:wrap;border:2px dashed var(--spe-border);border-radius:10px;padding:18px;margin:15px 0;background:var(--spe-bg)}#special-projects-estimating .spe-drop-zone>span{font-size:12px;color:var(--spe-muted);flex:1;min-width:190px}#special-projects-estimating .spe-drop-zone.spe-dragging{border-color:var(--fs-sky,#268cb8);background:var(--spe-alt)}#special-projects-estimating .spe-file-label{margin:0;font-weight:600}#special-projects-estimating .spe-file-label input{font-size:12px;max-width:240px}#special-projects-estimating .spe-letterhead{display:flex;align-items:center;gap:22px;border-bottom:2px solid var(--spe-main);padding:0 0 20px;margin-bottom:18px}#special-projects-estimating .spe-letterhead img{object-fit:contain;flex-shrink:0}#special-projects-estimating .spe-letterhead h1{font-size:23px}#special-projects-estimating .spe-letterhead p{font-size:11px;margin:4px 0}#special-projects-estimating .spe-print-shell{width:100%;border-collapse:collapse}#special-projects-estimating .spe-print-shell td,#special-projects-estimating .spe-print-shell th{padding:0;border:0;background:transparent;color:var(--spe-text);white-space:normal}#special-projects-estimating .spe-print-shell p{font-size:13px}#special-projects-estimating .spe-category-heading{border-bottom:1px solid var(--spe-border);padding-bottom:8px;margin:18px 0 12px;font-size:16px}#special-projects-estimating .spe-paper h4{font-size:13px;margin:12px 0 5px}#special-projects-estimating .spe-item-price{text-align:right}#special-projects-estimating input[readonly]{background:var(--spe-alt)}
@media(max-width:600px){#special-projects-estimating .spe-letterhead{align-items:flex-start;gap:12px}#special-projects-estimating .spe-letterhead img{width:64px;height:auto}#special-projects-estimating .spe-letterhead h1{font-size:19px}#special-projects-estimating .spe-drop-zone{padding:13px}#special-projects-estimating .spe-file-label input{max-width:100%}}
#special-projects-estimating .spe-heading-brand{display:flex;align-items:center;gap:16px}#special-projects-estimating .spe-heading-brand>img{object-fit:contain;flex-shrink:0}

/* T&R category hierarchy; applied consistently to edit and printed proposal views. */
#special-projects-estimating{--spe-main:#2b2e67;--spe-brand-red:#c51c28;--spe-brand-soft:#f1f2f7}
#special-projects-estimating .spe-category-group{border:1px solid #dce0eb;border-left:4px solid var(--spe-brand-red);border-radius:10px;margin:18px 0;background:var(--spe-brand-soft);padding:0 12px 1px}
#special-projects-estimating .spe-category-banner{display:flex;gap:12px;justify-content:space-between;background:var(--spe-main);color:#fff;margin:0 -12px 14px;padding:13px 16px;border-radius:6px 6px 0 0;font-size:16px}
#special-projects-estimating .spe-category-banner span{font-size:12px;font-weight:400}
#special-projects-estimating .spe-category-group .spe-item{background:#fff}
#special-projects-estimating .spe-category-heading{background:#f1f2f7;color:#2b2e67;border-left:4px solid #c51c28;padding:10px 12px!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}
@media print{#special-projects-estimating .spe-category-heading{break-after:avoid}}
#special-projects-estimating .spe-big-status{font-size:25px;font-weight:800;padding:14px;border-radius:9px;background:#2b2e67;color:white;line-height:1.15}
#special-projects-estimating .spe-summary{position:sticky;top:165px;align-self:start;max-height:calc(100vh - 180px);overflow:auto;padding:16px;background:white;border:1px solid #d5ddec;border-top:4px solid #c51c28;border-radius:10px}
#special-projects-estimating .spe-activity-row{border-top:1px solid #d8dfec;padding:12px 0}
#special-projects-estimating .spe-activity-row small{display:block}
#special-projects-estimating .spe-ready{color:#277535;font-weight:bold}
#special-projects-estimating .spe-rich{border:1px solid #cbd5e6;border-radius:7px;margin:6px 0 14px;overflow:hidden}
#special-projects-estimating .spe-rich-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap;background:#eff3f8;padding:7px}
#special-projects-estimating .spe-rich-tools button{font:inherit;padding:5px 8px;background:white;border:1px solid #cbd5e6;border-radius:5px;cursor:pointer}
#special-projects-estimating .spe-rich-tools label{display:flex;align-items:center;gap:4px;font-size:12px;margin:0}
#special-projects-estimating .spe-rich-tools input[type=color]{width:32px;height:28px;padding:0}
#special-projects-estimating [data-rich-field]{min-height:90px;padding:12px;font-size:15px;line-height:1.45;white-space:pre-wrap;color:#172438;background:white}
#special-projects-estimating #spe-dialog{max-width:1100px;width:94vw}
@media(max-width:800px){#special-projects-estimating .spe-summary{position:static;max-height:none}.spe-paper-meta{min-width:110px!important}.spe-letterhead{flex-wrap:wrap}}

/* Proposal pipeline status palette: labels accompany every color. */
#special-projects-estimating .spe-pipeline-dashboard{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px;margin:18px 0}
#special-projects-estimating .spe-status-draft{--status-color:#596579;--status-bg:#f1f4f8}
#special-projects-estimating .spe-status-internal-review{--status-color:#7545ad;--status-bg:#f5efff}
#special-projects-estimating .spe-status-sent{--status-color:#086aac;--status-bg:#edf8ff}
#special-projects-estimating .spe-status-negotiating{--status-color:#a06200;--status-bg:#fff7e4}
#special-projects-estimating .spe-status-accepted{--status-color:#237439;--status-bg:#edf8ef}
#special-projects-estimating .spe-status-declined{--status-color:#b32232;--status-bg:#fff0f2}
#special-projects-estimating .spe-status-expired{--status-color:#a6481c;--status-bg:#fff2e9}
#special-projects-estimating .spe-status-withdrawn{--status-color:#655f6a;--status-bg:#f4f1f5}
#special-projects-estimating .spe-pipeline-card{border:1px solid #d0d8e5;border-top:4px solid var(--status-color);background:var(--status-bg);color:#18325a;text-align:left;border-radius:9px;padding:12px;cursor:pointer;font:inherit}
#special-projects-estimating .spe-pipeline-card strong{display:block;font-size:26px;margin:6px 0}
#special-projects-estimating .spe-card-selected{outline:3px solid var(--status-color);outline-offset:1px}
#special-projects-estimating tr.spe-proposal-row>td{background:var(--status-bg)}
#special-projects-estimating tr.spe-proposal-row>td:first-child{border-left:5px solid var(--status-color)}
#special-projects-estimating .spe-proposal-row .spe-badge{background:var(--status-color);color:white;font-weight:700}
#special-projects-estimating [data-quick-status]{display:block;min-width:145px;margin-top:6px;font-size:14px}

#special-projects-estimating .spe-status-likely{--status-color:#087b78;--status-bg:#e9f8f6}
#special-projects-estimating .spe-status-unlikely{--status-color:#9f526b;--status-bg:#fbeef3}
#special-projects-estimating .spe-sort-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:8px 0;border:0;background:transparent;color:inherit;font:inherit;font-weight:700;text-align:left;cursor:pointer}
#special-projects-estimating .spe-sort-heading:hover{text-decoration:underline}
#special-projects-estimating .spe-sort-heading:focus-visible{outline:2px solid #40c5e7;outline-offset:3px}
#special-projects-estimating th[aria-sort=ascending],#special-projects-estimating th[aria-sort=descending]{box-shadow:inset 0 -3px 0 #40c5e7}

#special-projects-estimating .spe-project-card{--status-color:#087b78;--status-bg:#eef9f7}
#special-projects-estimating .spe-project-card.spe-status-planning{--status-color:#7c54ae;--status-bg:#f5effc}
#special-projects-estimating .spe-project-card.spe-status-awaiting-award{--status-color:#b77909;--status-bg:#fff8e8}
#special-projects-estimating .spe-project-card.spe-status-in-progress{--status-color:#0075ad;--status-bg:#eaf8ff}
#special-projects-estimating .spe-project-card.spe-status-on-hold{--status-color:#a34f14;--status-bg:#fff1e9}
#special-projects-estimating .spe-project-card.spe-status-completed{--status-color:#23753b;--status-bg:#edf8ef}
#special-projects-estimating .spe-project-card.spe-status-cancelled{--status-color:#b91c1c;--status-bg:#fff0f0}

/* Saved email drafts remain visible on their proposal. */
#special-projects-estimating .spe-email-draft-button{background:#7c3aed;color:#fff;border-color:#7c3aed}
#special-projects-estimating .spe-email-draft-button:hover{background:#6d28d9}
#spe-email-draft-indicator{max-width:320px}
.spe-email-draft-pill{display:inline-block;padding:7px 11px;border-radius:18px;background:#f3e8ff;border:1px solid #c4b5fd;color:#5b21b6;font-size:13px;line-height:1.4}

.spe-reply-routing{padding:14px;background:#e0f2fe;border:1px solid #7dd3fc;border-radius:10px;font-weight:700;font-size:15px;line-height:1.6}.spe-owner-activity-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin:16px 0}.spe-owner-activity-card{padding:18px;border:1px solid #c4b5fd;border-top:5px solid #7c3aed;border-radius:12px;background:#f3e8ff}.spe-owner-activity-card:nth-child(2){border-color:#7dd3fc;border-top-color:#0066a6;background:#eef6fb}.spe-owner-activity-card strong{font-size:17px}.spe-working-event{padding:12px;margin:8px 0;border-left:4px solid #0066a6;background:#f1f5f9;border-radius:6px}.spe-working-event small{display:block;margin-top:4px;color:#596b84}

.spe-conversation{margin:12px 0;padding:15px;border-radius:10px;border-left:5px solid #0284c7;background:#eff6ff}.spe-conversation-response{border-color:#16a34a;background:#f0fdf4}.spe-conversation strong{display:block;font-size:18px}.spe-conversation small{display:block;margin:6px 0;color:#526484}.spe-conversation div{max-height:300px;overflow:auto}

/* Mobile workspace uses the same records and event handlers as desktop. */
.spe-mobile-nav{display:none}.spe-mobile-section>summary{display:none}
@media screen and (max-width:700px){
 body:has(#special-projects-estimating){overflow-wrap:anywhere}
 body:has(.working-header)>main{padding:10px 10px 82px}
 .working-header{padding:14px!important;margin-bottom:14px!important}
 .working-header h1{font-size:21px;margin:0 0 6px}
 .working-header p{font-size:13px;margin:8px 0}
 .working-header p:first-of-type{display:none}
 #special-projects-estimating{font-size:15px;min-width:0;padding-bottom:76px}
 #special-projects-estimating h1{font-size:23px}
 #special-projects-estimating h2{font-size:21px}
 #special-projects-estimating .spe-heading-brand{gap:10px}
 #special-projects-estimating .spe-heading-brand img{width:46px;height:46px}
 #special-projects-estimating .spe-header{gap:8px;margin-bottom:12px}
 #special-projects-estimating .spe-workspace{padding:4px 8px}
 #special-projects-estimating .spe-nav{margin-bottom:16px}
 #special-projects-estimating .spe-button,#special-projects-estimating .spe-nav button{min-height:44px;font-size:14px;padding:10px 12px}
 #special-projects-estimating input:not([type=checkbox]),#special-projects-estimating select,#special-projects-estimating textarea{font-size:16px;min-height:44px}
 #special-projects-estimating label{font-size:14px}
 #special-projects-estimating small{font-size:13px}
 #special-projects-estimating .spe-toolbar,#special-projects-estimating .spe-filterbar{align-items:stretch;gap:10px}
 #special-projects-estimating .spe-filterbar>label{min-width:0;flex:1 1 44%}
 #special-projects-estimating .spe-filterbar>label:first-child{flex-basis:100%}
 #special-projects-estimating .spe-pipeline-dashboard{display:flex;overflow-x:auto;gap:10px;padding:4px 2px 12px;scroll-snap-type:x proximity}
 #special-projects-estimating .spe-pipeline-card{flex:0 0 155px;scroll-snap-align:start;min-width:0}
 #special-projects-estimating .spe-pipeline-card strong{font-size:25px}
 #special-projects-estimating .spe-table-wrap:has(.spe-mobile-records){overflow:visible;border:0;background:transparent}
 #special-projects-estimating .spe-mobile-records,#special-projects-estimating .spe-mobile-records tbody{display:block}
 #special-projects-estimating .spe-mobile-records thead{display:none}
 #special-projects-estimating .spe-mobile-records tr{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--spe-border);border-left:5px solid var(--status-color,#0066a6);border-radius:12px;overflow:hidden;margin:0 0 16px;background:var(--spe-bg);box-shadow:0 3px 10px #10213a0a}
 #special-projects-estimating .spe-mobile-records td{display:block;min-width:0;padding:10px 12px;font-size:14px;border-bottom:1px solid var(--spe-border)!important}
 #special-projects-estimating .spe-mobile-records td::before{content:attr(data-mobile-label);display:block;font-size:12px;color:var(--spe-muted);margin-bottom:5px;font-weight:600}
 #special-projects-estimating .spe-mobile-records td:first-child,#special-projects-estimating .spe-mobile-records td:last-child,#special-projects-estimating .spe-mobile-records td[colspan]{grid-column:1/-1;border-left:0!important}
 #special-projects-estimating .spe-mobile-records td:first-child strong{font-size:18px}
 #special-projects-estimating .spe-mobile-records td:last-child{display:flex;flex-wrap:wrap;gap:8px}
 #special-projects-estimating .spe-mobile-records td:last-child::before{flex-basis:100%}
 #special-projects-estimating [data-quick-status]{min-width:0;width:100%}
 #special-projects-estimating .spe-mobile-section{padding:0;border:1px solid var(--spe-border);border-radius:10px;margin-bottom:14px;background:var(--spe-bg)}
 #special-projects-estimating .spe-mobile-section>summary{display:block;padding:15px;font-size:17px;font-weight:700;cursor:pointer;list-style:none}
 #special-projects-estimating .spe-mobile-section>summary::after{content:'＋';float:right}
 #special-projects-estimating .spe-mobile-section[open]>summary::after{content:'−'}
 #special-projects-estimating .spe-accordion-panel{border:0;margin:0;padding-top:0}
 #special-projects-estimating .spe-accordion-panel>h3{display:none}
 #special-projects-estimating .spe-summary{padding:15px;border:1px solid var(--spe-border);border-top:4px solid #0066a6;border-radius:10px;background:var(--spe-bg)}
 #special-projects-estimating .spe-mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:1050;gap:6px;justify-content:space-around;padding:8px 10px calc(8px + env(safe-area-inset-bottom));background:var(--spe-bg);border-top:1px solid var(--spe-border);box-shadow:0 -3px 14px #10213a20}
 #special-projects-estimating .spe-mobile-nav button{flex:1;min-height:44px;border:0;border-radius:8px;color:var(--spe-text);background:var(--spe-alt);font-size:14px}
 #special-projects-estimating .spe-mobile-nav button[aria-pressed=true]{background:#0066a6;color:white}
 #special-projects-estimating:has(dialog[open]) .spe-mobile-nav{visibility:hidden}
 #special-projects-estimating dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 24px);margin:auto;padding:16px}
 #special-projects-estimating .spe-form-grid,#special-projects-estimating .spe-contact{grid-template-columns:minmax(0,1fr)}
 #special-projects-estimating .spe-rich-tools{flex-wrap:wrap}
 #special-projects-estimating .spe-rich-tools button{min-height:40px}
 #special-projects-estimating .spe-category-group{padding-left:8px;padding-right:8px}
 #special-projects-estimating .spe-owner-activity-grid{grid-template-columns:minmax(0,1fr)}
}
@media print{.spe-mobile-nav{display:none!important}}

/* Editing awareness belongs to the workspace, never the printable proposal. */
.spe-collaboration{background:#edf7ff;color:#163f62;border:1px solid #8cb8d9;border-left:5px solid #005ca9;border-radius:9px;padding:14px 18px;margin:12px 0 18px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.spe-collaboration p{margin:5px 0}.spe-collaboration small{display:block;width:100%;font-size:12px;color:inherit}
.spe-editor-person{display:inline-block;background:#fff;border:1px solid #8cb8d9;border-radius:20px;padding:7px 12px;font-weight:700}
.spe-collaboration-stale{background:#fff3cf;color:#633f00;border-color:#c68c14;border-left-color:#b67300}
@media screen{html[data-portal-theme=dark] .spe-collaboration{background:#173c52;color:#d2f0ff;border-color:#5398ba}html[data-portal-theme=dark] .spe-editor-person{background:#213952;color:#e5edf9;border-color:#5398ba}html[data-portal-theme=dark] .spe-collaboration-stale{background:#40351e;color:#ffe3a4;border-color:#bb9146}}
@media print{.spe-collaboration{display:none!important}}

/* 11/16 (Jessica: "this still looks off… needs to be corrected asap"): dark mode — the proposal rows, the owners' link cards and their
   activity list kept light backgrounds under light text. Dark tints of the same colours, light text. */
@media screen{
html[data-portal-theme=dark] #special-projects-estimating tr.spe-proposal-row>td{background:color-mix(in srgb,var(--status-color,#4dc8ef) 16%,#13233b);color:#e5edf9}
html[data-portal-theme=dark] #special-projects-estimating tr.spe-proposal-row>td *:not(button):not(select):not(option):not(.badge):not([class*=pill]){color:inherit}
html[data-portal-theme=dark] .spe-owner-activity-card{background:#2a1f45;color:#efe7ff;border-color:#7c5bd6}
html[data-portal-theme=dark] .spe-owner-activity-card:nth-child(2){background:#15324a;color:#dff1ff;border-color:#3f8fc4}
html[data-portal-theme=dark] .spe-owner-activity-card *{color:inherit}
html[data-portal-theme=dark] .spe-working-event{background:#1b2a40;color:#e5edf9}
html[data-portal-theme=dark] .spe-working-event small{color:#a9b8cc}
html[data-portal-theme=dark] #special-projects-estimating .spe-activity-row{border-top-color:#2c3d57}
}
