/* Project module uses the DESIGN.md runtime tokens owned by style.css. */
.projects-view{min-width:0}.project-intro{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:-8px 0 18px}.project-intro p{margin:0;color:var(--muted);font-size:15px}.project-intro>.primary{min-width:146px;padding:10px 20px;font-size:17px}.project-filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}.project-filters label{display:grid;gap:5px;min-width:0;font-size:14px;font-weight:550;flex:1 1 130px}.project-filters input,.project-filters select{width:100%;min-width:0;height:42px}.project-filters .project-search-label{flex:2 1 240px}.project-search-control{position:relative}.project-search-control input{padding-right:40px}.project-search-control input::-webkit-search-cancel-button{display:none}.project-search-clear{position:absolute;right:3px;top:3px;min-height:36px;width:34px;padding:0;background:transparent;border:0;font-size:23px}.project-filter-help{font-size:12px;color:var(--muted);margin:5px 3px 12px}.project-stage-tabs{display:flex;flex-wrap:wrap;gap:9px}.project-stage-tabs button{min-width:78px;min-height:37px;padding:5px 17px;background:var(--surface);font-size:15px;border:1px solid #d3cbe7}.project-stage-tabs button[aria-pressed=true]{outline:2px solid var(--primary);outline-offset:2px;font-weight:650}.project-stage-tabs button[data-stage=started],.project-stage-badge[data-stage=started]{background:#e4f2ff;color:#0759a8;border-color:#b9dbf9}.project-stage-tabs button[data-stage=contract],.project-stage-badge[data-stage=contract]{background:#eee5ff;color:#5b27ba;border-color:#d7c1ff}.project-stage-tabs button[data-stage=construction],.project-stage-badge[data-stage=construction]{background:#fff2d9;color:#9e5100;border-color:#f4d6a1}.project-stage-tabs button[data-stage=complete],.project-stage-badge[data-stage=complete]{background:#e4f8e6;color:#26713a;border-color:#bce4c3}.project-stage-tabs button[data-stage=dropped],.project-stage-badge[data-stage=dropped]{background:#e9eaef;color:#575b6a;border-color:#d0d3df}.project-page-status{font-size:13px;min-height:22px;margin:12px 2px 0;color:var(--muted)}.project-result-count{font-size:13px;color:var(--muted);text-align:right;margin:0 2px 13px}.project-list{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}.project-card{display:grid;grid-template-columns:82px minmax(180px,1fr) 180px minmax(115px,.5fr) 176px;align-items:center;gap:17px;min-height:130px;padding:19px 20px;background:var(--surface);border:1px solid #d8cef7;border-radius:18px;box-shadow:0 3px 5px rgba(91,59,171,.055);min-width:0}.project-stage-badge{display:inline-block;min-width:70px;padding:5px 11px;border:1px solid transparent;border-radius:10px;text-align:center;font-size:17px;line-height:1.35;font-weight:650;white-space:nowrap}.project-card h2{font-size:22px;font-weight:650;line-height:1.35;letter-spacing:-.035em;margin:0 0 6px;overflow-wrap:anywhere}.project-card-meta{display:flex;flex-wrap:wrap;gap:2px 12px;margin:0;font-size:14px;line-height:1.55;overflow-wrap:anywhere}.project-card-date{margin:4px 0 0;font-size:13px;color:#5e586f;font-variant-numeric:tabular-nums}.project-card-info{min-width:0}.project-people{display:flex;justify-content:center;gap:16px;border-left:1px solid var(--line);padding-left:14px;align-self:stretch;align-items:center}.project-people>div{text-align:center;display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0;flex:1}.project-person-label{font-size:12px;color:#5b5569;white-space:nowrap}.staff-profile-circle{--profile-bg:#f3edff;--profile-fg:#3d2f65;--profile-line:#d5c4fa;display:flex;flex-direction:column;align-items:center;justify-content:center;flex-shrink:0;width:70px;height:70px;min-height:70px;max-width:100%;border:1.5px solid var(--profile-line);background:var(--profile-bg);color:var(--profile-fg);border-radius:50%;padding:8px 3px;line-height:1.25;overflow:hidden;box-shadow:inset 0 0 0 3px #ffffff8a}.staff-profile-circle[data-color=lavender]{--profile-bg:#f3edff;--profile-fg:#3d2f65;--profile-line:#d5c4fa}.staff-profile-circle[data-color=blue]{--profile-bg:#e9f2ff;--profile-fg:#204d7f;--profile-line:#bdd6f7}.staff-profile-circle[data-color=mint]{--profile-bg:#e5f5ed;--profile-fg:#235f47;--profile-line:#b5d9c7}.staff-profile-circle[data-color=peach]{--profile-bg:#fff0e3;--profile-fg:#7f4925;--profile-line:#efd0b5}.staff-profile-circle[data-color=rose]{--profile-bg:#fceaf0;--profile-fg:#7d3551;--profile-line:#ecc5d3}.staff-profile-circle[data-color=slate]{--profile-bg:#edf0f5;--profile-fg:#43536c;--profile-line:#c5cedc}.staff-profile-unit,.staff-profile-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;word-break:keep-all;max-width:100%;flex-shrink:0}.staff-profile-unit{font-size:10px;font-weight:500;max-height:25px}.staff-profile-name{font-size:12px;font-weight:650;max-height:35px;margin-top:2px;letter-spacing:-.04em}.staff-profile-large{width:162px;height:162px;min-height:162px;padding:20px 15px;border-width:2px;box-shadow:inset 0 0 0 6px #ffffffa8}.staff-profile-large .staff-profile-unit{font-size:18px;max-height:46px}.staff-profile-large .staff-profile-name{font-size:24px;max-height:60px;margin-top:6px}.staff-profile-unassigned{width:70px;height:70px;display:grid;place-content:center;font-size:12px;color:var(--muted);border:1px dashed #d6d0e1;border-radius:50%;background:#faf9fc}.project-design-status{align-self:stretch;display:flex;justify-content:center;align-items:center;border-left:1px solid var(--line);padding-left:14px;font-size:15px;font-weight:550;line-height:1.6;overflow-wrap:anywhere;text-align:center;min-width:0}.project-card-controls{display:flex;align-items:center;justify-content:flex-end;gap:9px;border-left:1px solid var(--line);padding-left:12px;min-width:0}.project-view-link{border:0;background:transparent;color:var(--primary);font-weight:600;white-space:nowrap;padding:6px 0;font-size:14px}.project-card-dropped{background:#f0f0f4;border-color:#d0cedb;box-shadow:none}.project-card-dropped h2,.project-title-dropped{text-decoration:line-through}.project-card-dropped .project-stage-badge{background:#a5a8b8;color:white}.project-previous{font-size:13px;margin:0 0 3px;color:#575366}.project-test-label{display:inline-block;font-size:11px;line-height:1.5;font-weight:500;padding:1px 5px;border-radius:5px;border:1px solid #ded5ef;color:#64566d;margin-left:7px;vertical-align:middle;background:#faf7ff}.project-state{min-height:180px;padding:30px;text-align:center;display:grid;place-content:center;justify-items:center}.project-state h2{font-size:20px}.project-state p{color:var(--muted);font-size:15px;max-width:650px}.project-pagination{display:flex;align-items:center;justify-content:center;gap:18px;margin:20px 0 4px;font-size:14px}.project-dialog{padding:0;border:1px solid var(--line);border-radius:24px;background:var(--surface);color:var(--ink);width:min(510px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 40px);overflow:auto;scrollbar-gutter:stable;box-shadow:0 24px 90px #20163233;font-family:inherit}.project-dialog-wide{width:min(820px,calc(100vw - 40px));max-width:calc(100vw - 40px)}.project-dialog::backdrop{background:rgba(27,22,43,.38)}.project-dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:26px 28px 14px}.project-dialog-heading h2{font-size:25px;font-weight:650;letter-spacing:-.04em;line-height:1.3;margin:3px 0;overflow-wrap:anywhere}.project-dialog-close{font-size:30px;line-height:1;min-height:36px;min-width:36px;padding:0;border:0;background:transparent;color:var(--ink)}.project-dialog-body{padding:0 28px 26px;overflow-wrap:anywhere}.project-dialog-body form{margin:0}.project-muted{color:var(--muted);font-size:14px;line-height:1.6}.project-form-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px 22px;margin-top:20px}.project-full{grid-column:1/-1}.project-field{display:flex;flex-direction:column;gap:8px;font-size:16px;font-weight:550;min-width:0}.project-field input,.project-field select,.project-field textarea{width:100%;min-width:0;min-height:45px;font-size:16px;border:1px solid #c9bedf;border-radius:10px;background:white;color:var(--ink);padding:9px 12px;font-family:inherit}.project-field textarea{resize:none;min-height:116px;line-height:1.6}.project-field input[type=file]{padding:10px;font-size:14px}.project-field input[aria-invalid=true],.project-field textarea[aria-invalid=true],.project-field select[aria-invalid=true]{border-color:#ae3446}.project-field-error{font-size:12px;font-weight:450;line-height:1.5;color:#9d2539;min-height:0}.project-field-error:empty{display:none}.project-form-error{font-size:14px;line-height:1.6;color:#9d2539;background:#fff2f3;border:1px solid #f1cdd4;border-radius:10px;padding:11px 13px;margin:0 0 15px}.project-form-error[hidden]{display:none}.project-product-field{border:0;padding:0;margin:0;min-width:0}.project-product-field legend{font-size:16px;font-weight:550;margin-bottom:8px;padding:0}.project-product-options{display:flex;gap:6px;flex-wrap:wrap}.project-product-options label{display:flex;align-items:center;gap:6px;min-height:45px;padding:8px 10px;border:1px solid #c9bedf;border-radius:9px;font-size:15px;font-weight:450;cursor:pointer}.project-product-options label:has(input:checked){background:var(--tint);border-color:#bda3f4}.project-product-options input{width:17px;height:17px;min-height:0;accent-color:var(--primary);margin:0}.project-optional{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:18px 0;margin-top:25px}.project-optional summary{font-size:16px;font-weight:600;cursor:pointer}.project-optional summary span{font-size:13px;color:var(--muted);font-weight:450;margin-left:10px}.project-duplicate-section{padding:19px 0;display:flex;align-items:flex-start;gap:18px;flex-wrap:wrap;border-bottom:1px solid var(--line)}.project-duplicate-section>button{flex-shrink:0}.project-duplicate-section>div{flex:1 1 240px;font-size:14px;line-height:1.6;padding-top:6px}.project-duplicate-section p{margin:0 0 8px}.project-duplicate-section ul{padding-left:20px;margin:6px 0;max-height:180px;overflow:auto}.project-duplicate-confirm{display:flex;gap:8px;align-items:flex-start;font-size:14px}.project-duplicate-confirm input{width:18px;height:18px;min-height:18px;margin-top:2px;accent-color:var(--primary);flex-shrink:0}.project-positive{color:#28703d}.project-registration-author{font-size:14px;color:#575165;margin:17px 0 0}.project-dialog-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:23px;padding-top:17px;border-top:1px solid var(--line)}.project-dialog-actions button{min-width:105px;min-height:44px;font-size:16px;padding:9px 18px}.project-danger{background:#a92d43;color:white;border-color:#a92d43}.project-danger-text{color:#a92d43}.project-operation-status{min-height:18px;font-size:12px;color:var(--muted);margin:2px 0 0}.project-dialog[aria-busy=true]{cursor:progress}.project-loading{padding:24px 0;min-height:90px;font-size:15px;color:var(--muted)}.project-detail-title{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:5px 0 22px}.project-detail-title h3{font-size:23px;font-weight:650;line-height:1.4;margin:0;flex:1;min-width:150px;overflow-wrap:anywhere}.project-detail-fields{display:grid;grid-template-columns:120px minmax(0,1fr);gap:12px 20px;font-size:15px;padding:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.project-detail-fields dt{color:var(--muted)}.project-detail-fields dd{margin:0;overflow-wrap:anywhere}.project-notes{white-space:pre-wrap;overflow-wrap:anywhere}.project-detail-people{display:flex;align-items:center;gap:24px;padding:20px 0}.project-detail-people>div{display:grid;justify-items:center;font-size:13px;min-width:70px}.project-detail-people p{margin:5px 0 0;color:var(--muted)}.project-detail-people>strong{font-size:15px;font-weight:550}.project-detail-actions{display:flex;gap:9px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:20px}.project-detail-actions button{font-size:14px}.project-drop-notice{padding:12px 16px;border:1px solid #d9d5e0;border-radius:12px;background:#f4f3f7;font-size:14px;margin-bottom:15px}.project-drop-notice p{margin:3px 0}.project-materials{margin:10px 0 24px}.project-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.project-section-heading h3{font-size:18px;font-weight:600}.project-material-list,.project-trash-list{list-style:none;padding:0;margin:10px 0 20px}.project-material-list>li{padding:16px 0;border-bottom:1px solid var(--line)}.project-material-list strong{font-size:15px;overflow-wrap:anywhere}.project-material-list p{font-size:13px;color:var(--muted);margin:5px 0}.project-material-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:10px;font-size:14px}.project-material-actions a{color:var(--primary);font-weight:550}.project-material-actions button{min-height:35px;font-size:13px}.project-history{padding-left:23px;margin:20px 0}.project-history li{padding:0 0 17px 8px;margin-bottom:15px;border-bottom:1px solid var(--line)}.project-history p{font-size:14px;margin:7px 0}.project-history li>p:first-of-type{font-size:12px;color:var(--muted)}.project-trash-list li{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:18px 0;border-bottom:1px solid var(--line)}.project-trash-list h3{font-size:18px;margin:0;overflow-wrap:anywhere}.project-trash-list p{font-size:13px;color:var(--muted);margin:5px 0 0}.project-trash-list button{flex-shrink:0}.staff-profile-detail{display:flex;flex-direction:column;align-items:center;text-align:center;padding:12px 0}.staff-profile-detail h3{margin:16px 0 0;font-size:22px}.staff-profile-detail p{margin:6px 0}.staff-profile-detail .staff-profile-circle:disabled{opacity:1}.project-profile-admin-list{display:grid;gap:12px;margin-top:20px}.project-profile-admin-list form{display:grid;grid-template-columns:70px minmax(100px,1fr) auto;align-items:center;gap:15px;padding:14px 0;border-bottom:1px solid var(--line)}.project-profile-admin-list label{display:grid;gap:6px;font-size:14px;min-width:0}.project-profile-admin-list select{width:100%;min-width:0}.projects-view button,.project-dialog button{cursor:pointer}.projects-view button:disabled,.project-dialog button:disabled{cursor:not-allowed;opacity:.48}.projects-view button:hover:not(:disabled),.project-dialog button:hover:not(:disabled){filter:brightness(.97)}.projects-view :focus-visible,.project-dialog :focus-visible,.staff-profile-circle:focus-visible{outline:3px solid #7951dc;outline-offset:3px}.staff-profile-circle:hover:not(:disabled){box-shadow:inset 0 0 0 3px #ffffffb0,0 3px 10px #4c2d7f18}.project-dialog a:hover{text-decoration-thickness:2px}.project-dialog [hidden],.projects-view [hidden]{display:none!important}
@container(max-width:1120px){.project-card{grid-template-columns:70px minmax(145px,1fr) 165px minmax(85px,.45fr) 150px;gap:12px;padding:17px 15px}.project-stage-badge{min-width:64px;font-size:16px}.project-people{gap:9px;padding-left:10px}.project-card-controls{gap:6px;padding-left:8px}.project-view-link{font-size:13px}.project-design-status{font-size:14px;padding-left:9px}.project-card-meta{font-size:13px}.project-card h2{font-size:22px}}
@container(max-width:900px){.project-card{grid-template-columns:65px minmax(120px,1fr) 160px;gap:13px}.project-card-info{grid-column:2;grid-row:1/3}.project-stage{align-self:start}.project-people{grid-column:3;grid-row:1/3;gap:8px}.project-design-status{grid-column:2;grid-row:3;border-left:0;padding:0;justify-content:flex-start;text-align:left;align-self:center}.project-card-controls{grid-column:3;grid-row:3;border:0;padding:0;justify-content:center}.project-card h2{font-size:22px}}
@media(max-width:720px){.project-intro{align-items:center;margin-top:-3px;margin-bottom:16px;gap:12px}.project-intro p{font-size:13px}.project-intro>.primary{min-width:122px;font-size:15px;padding:9px 12px}.project-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:11px;padding:14px;border-radius:14px}.project-filters label{font-size:13px}.project-filters .project-search-label{grid-column:1/-1}.project-filters>label:nth-child(3){grid-column:1/-1}.project-filters>button{width:100%}.project-stage-tabs{gap:8px}.project-stage-tabs button{min-width:calc((100% - 16px)/3);flex:1 1 25%;font-size:14px;min-height:38px;padding:6px 10px}.project-list{gap:14px}.project-card{grid-template-columns:70px minmax(0,1fr);gap:12px;padding:16px;border-radius:17px}.project-stage{grid-column:1;grid-row:1;align-self:start}.project-card-info{grid-column:2;grid-row:1}.project-card h2{font-size:22px;margin-bottom:7px}.project-card-meta{font-size:13px;gap:2px 7px}.project-card-date{font-size:12px}.project-people{grid-column:1/-1;grid-row:2;padding:13px 0 0;border-left:0;border-top:1px solid var(--line);justify-content:flex-start;gap:17px}.project-people>div{flex:0 0 auto;gap:5px;min-width:70px}.project-people .staff-profile-circle{width:70px;height:70px;min-height:70px}.project-person-label{font-size:12px}.project-design-status{grid-column:1/-1;grid-row:3;justify-content:flex-start;text-align:left;padding:0;border:0;font-size:14px}.project-card-controls{grid-column:1/-1;grid-row:4;justify-content:space-between;padding:10px 0 0;border:0;border-top:1px solid var(--line)}.project-view-link{font-size:14px}.project-card-dropped .project-stage-badge{min-width:64px}.project-result-count{font-size:12px;margin-bottom:10px}.project-dialog,.project-dialog-wide{width:calc(100vw - 20px);max-width:calc(100vw - 20px);max-height:calc(100dvh - 24px);border-radius:20px}.project-dialog-heading{padding:21px 18px 15px;gap:10px}.project-dialog-heading h2{font-size:23px}.project-dialog-body{padding:0 18px 22px}.project-form-grid{grid-template-columns:minmax(0,1fr);gap:17px;margin-top:17px}.project-full{grid-column:auto}.project-field,.project-product-field legend{font-size:15px}.project-product-options label{font-size:14px;flex:1;justify-content:center;padding:8px 7px}.project-optional summary{font-size:15px}.project-optional summary span{display:block;margin:7px 0 0 17px;font-size:12px;line-height:1.5}.project-duplicate-section{gap:10px}.project-duplicate-section>div{flex-basis:100%;font-size:13px}.project-dialog-actions{gap:9px;margin-top:20px;padding-top:16px}.project-dialog-actions button{flex:1;min-width:0;min-height:46px;font-size:15px;padding:9px 8px}.project-registration-author{font-size:13px}.project-detail-fields{grid-template-columns:90px minmax(0,1fr);gap:12px;font-size:14px}.project-detail-title h3{font-size:21px}.project-detail-people{gap:16px;flex-wrap:wrap}.project-detail-actions{display:grid;grid-template-columns:1fr 1fr}.project-detail-actions button{padding:8px;font-size:13px;min-width:0}.project-trash-list li{align-items:flex-start;flex-direction:column}.project-trash-list button{align-self:flex-end}.project-profile-admin-list form{grid-template-columns:65px minmax(0,1fr);gap:12px}.project-profile-admin-list form>button{grid-column:2;width:100%}.staff-profile-large{width:154px;height:154px;min-height:154px}.project-state{padding:25px 16px}.project-state p{font-size:14px}.project-material-actions{gap:11px}.project-pagination{gap:13px;font-size:13px}}
@media(prefers-reduced-motion:reduce){.projects-view *,.project-dialog *{transition:none!important;animation:none!important}}
@media(forced-colors:active){.project-stage-badge,.staff-profile-circle,.project-card{border:1px solid CanvasText}.project-stage-tabs button[aria-pressed=true]{outline-color:Highlight}.project-dialog::backdrop{background:Canvas}.project-card-dropped{border-style:dashed}}

/* Native modal owns scrolling while its background is inert. */
html:has(.project-dialog[open]){overflow:hidden}

/* Detail stage uses the shared native-select contract in the current-state badge. */
.project-stage-control{position:relative;display:inline-flex;flex-shrink:0;align-items:center}
.project-stage-select{appearance:none;-webkit-appearance:none;min-height:44px;padding-right:32px;font-family:inherit;cursor:pointer}
.project-stage-chevron{position:absolute;right:11px;top:50%;transform:translateY(-58%);pointer-events:none;font-size:20px;line-height:1;color:var(--muted)}
.project-stage-select:hover:not(:disabled){filter:brightness(.97)}
.project-stage-select:disabled{cursor:progress;opacity:.65}
.project-title-help{margin:7px 0 0;font-size:13px}
@media(forced-colors:active){.project-stage-select{appearance:auto;-webkit-appearance:auto}.project-stage-chevron{display:none}}

/* FIELD-DESIGN-01: project facts stay quiet; workflow ownership stays visible. */
.project-card{--project-meta-size:14px;grid-template-columns:76px minmax(190px,1fr) 180px minmax(150px,.48fr) 130px}
.project-card-meta,.project-card-money{font-size:var(--project-meta-size);font-weight:400;line-height:1.55}
.project-card-status{margin:4px 0 0;font-size:13px;color:#655b7b;line-height:1.5}
.project-card-money{display:flex;flex-direction:column;gap:3px;border-left:1px solid var(--line);padding-left:18px;min-width:0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.project-card-money span:last-child{font-size:inherit;font-weight:400;color:var(--ink)}
.project-card-controls{justify-content:center;padding-left:14px}
.project-view-link{white-space:normal;text-align:center}
.project-workspace-dialog{width:min(1110px,calc(100vw - 40px))}
.project-detail-title{align-items:center;margin-bottom:20px;flex-wrap:nowrap}
.project-detail-title h3{font-size:24px}
.project-detail-people{padding:0;gap:16px;flex-shrink:0;margin-left:8px}
.project-detail-people>div{min-width:70px}
.project-detail-people p{font-size:12px}
.project-basic-panel{border:1px solid #d8cef7;border-radius:16px;overflow:hidden;margin-bottom:22px}
.project-basic-panel>.project-section-heading{padding:15px 20px;background:linear-gradient(100deg,#faf8ff,#fff)}
.project-basic-panel h3{margin:0;font-size:19px}
.project-basic-panel>.project-section-heading button{font-size:14px;min-height:38px}
.project-info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:0;padding:6px 20px}
.project-info-grid>div{padding:14px 16px;border-bottom:1px solid var(--line);min-width:0}
.project-info-grid>div:not(:nth-child(3n)){border-right:1px solid var(--line)}
.project-info-grid dt{font-size:13px;color:var(--muted);margin-bottom:4px}
.project-info-grid dd{margin:0;font-size:17px;line-height:1.55;font-weight:500;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.project-money-help{font-size:12px;color:var(--muted);padding:0 36px;margin:8px 0 13px}
.project-detail-note{display:flex;align-items:flex-start;gap:15px;margin:0 20px 18px;padding:12px 14px;background:#f5f1ff;border:1px solid #e5dcfb;border-radius:10px;font-size:14px}
.project-detail-note>span{flex-shrink:0;color:#6446a1}
.project-detail-note p{margin:0;line-height:1.6}
.project-workspace-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 17px;border-bottom:1px solid var(--line);padding-bottom:12px}
.project-workspace-tabs button{min-height:44px;padding:9px 18px;font-size:15px;border:1px solid #d8ccef;background:white;color:#5e4b7e}
.project-workspace-tabs button[aria-pressed=true]{color:#5429b8;background:#f0eaff;border-color:#baa1f4;box-shadow:inset 0 0 0 1px #baa1f4}
.project-field-routes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.project-field-routes>div{border:1px solid var(--line);border-radius:13px;padding:18px;background:#fdfcff;min-width:0}
.project-field-routes h3{font-size:17px;font-weight:600;margin:0 0 6px}
.project-field-routes p{color:var(--muted);font-size:14px;margin:0 0 13px;line-height:1.6}
.project-field-routes button{font-size:14px}
.project-measurement-list{margin:24px 0}
.project-measurement-list>h3{font-size:18px;font-weight:600}
.project-measurement-list .project-material-list>li{display:flex;align-items:center;justify-content:space-between;gap:15px}
.project-design-requests{display:grid;gap:18px;margin-top:20px}
.project-design-request{padding:20px;border:1px solid #ddd4ed;border-radius:15px;background:white;min-width:0}
.project-design-request>header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.project-design-request h4{font-size:17px;line-height:1.5;margin:10px 0;font-weight:600;overflow-wrap:anywhere}
.project-design-request>.project-notes{font-size:15px;line-height:1.7}
.project-design-badge{display:inline-flex;font-size:13px;padding:4px 10px;border:1px solid #ded3f6;border-radius:7px;background:#f3edff;color:#634197}
.project-design-badge[data-status=pending]{color:#62566f;background:#f6f3fa}
.project-design-badge[data-status=submitted]{color:#25608a;background:#eaf5ff;border-color:#c6dff2}
.project-design-badge[data-status=confirmed]{color:#2d6a42;background:#eaf6ed;border-color:#c6e0cc}
.project-design-badge[data-status=cancelled]{color:#686674;background:#f1f0f4;border-color:#dad8e1}
.project-design-badge[data-status=revision_requested]{color:#8a5926;background:#fff6e7;border-color:#edd9b7}
.project-request-assignee{display:flex;flex-direction:column;align-items:center;gap:5px;font-size:12px;color:var(--muted)}
.project-source-details{padding:13px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:14px;line-height:1.7}
.project-source-details summary{cursor:pointer;color:#5b467d;font-weight:500}
.project-source-details ul{margin:10px 0 0;padding-left:22px}
.project-source-details li{padding-bottom:6px;overflow-wrap:anywhere}
.project-source-details a{color:var(--primary);margin-left:7px}
.project-design-results{margin:13px 0 0}
.project-design-results .project-section-heading h4{font-size:16px}
.project-design-results .project-section-heading button{font-size:13px;min-height:38px}
.project-request-actions{display:flex;flex-wrap:wrap;gap:8px;padding-top:15px;margin-top:15px;border-top:1px solid var(--line)}
.project-request-actions button{font-size:14px;min-height:40px}
.project-design-empty{border:1px dashed #d9d1e7;border-radius:13px;padding:25px;margin:20px 0;color:var(--muted);font-size:15px}
.project-design-empty h4{color:var(--ink);font-size:17px;margin:0 0 8px}
.project-design-empty p{margin:0;line-height:1.7}
.project-inline-form{padding:20px;margin:16px 0;border:1px solid #d8caef;border-radius:13px;background:#fcfbff}
.project-inline-form h4{font-size:18px;margin:0 0 12px}
.project-source-picker{border:1px solid var(--line);border-radius:10px;padding:12px 14px;margin:15px 0;font-size:14px;min-width:0}
.project-source-picker legend{font-size:14px;font-weight:600;padding:0 6px}
.project-source-picker>label,.project-photo-source>label{display:flex;align-items:flex-start;gap:9px;line-height:1.6;padding:7px 0;cursor:pointer;overflow-wrap:anywhere}
.project-source-picker input[type=checkbox]{width:18px;height:18px;min-height:18px;margin:2px 0 0;accent-color:var(--primary);flex-shrink:0}
.project-source-picker input:disabled+span{color:var(--muted)}
.project-source-picker p{font-size:13px;color:var(--muted);margin:3px 0 7px}
.project-photo-source{padding:7px 0;border-bottom:1px solid var(--line)}
.project-photo-source:last-child{border-bottom:0}
.project-photo-source>.project-source-board{margin-left:27px;padding-top:0;font-size:13px;color:#655477}
.project-photo-source>span{display:block;margin-left:27px;font-size:12px}
.project-inline-form .project-dialog-actions button{min-width:120px}
.project-workspace-dialog .project-detail-actions{margin-top:24px}
.project-workspace-dialog .project-detail-actions .project-danger-text{margin-left:auto}
.project-workspace-tabs button:focus-visible,.project-source-picker input:focus-visible{outline:3px solid #7951dc;outline-offset:3px}
.project-workspace-tabs button:hover:not(:disabled){background:#f2edff}
.project-workspace-tabs button:active:not(:disabled){background:#eae1ff}
.project-source-details summary:hover{color:var(--primary)}
@container(max-width:1120px){.project-card{--project-meta-size:13px;grid-template-columns:66px minmax(170px,1fr) 164px minmax(130px,.48fr) 114px;gap:12px}.project-card-money{padding-left:13px}.project-card-controls{padding-left:10px}}
@container(max-width:900px){.project-card{grid-template-columns:65px minmax(180px,1fr) 160px;gap:13px}.project-card-info{grid-column:2;grid-row:1/3}.project-people{grid-column:3;grid-row:1/3}.project-card-money{grid-column:2;grid-row:3;flex-direction:row;flex-wrap:wrap;gap:8px;border:0;padding:0}.project-card-controls{grid-column:3;grid-row:3;border:0;padding:0}.project-card-status{font-size:12px}}
@media(max-width:900px){.project-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.project-info-grid>div:not(:nth-child(3n)){border-right:0}.project-info-grid>div:nth-child(odd){border-right:1px solid var(--line)}.project-detail-title{flex-wrap:wrap}.project-detail-title h3{min-width:calc(100% - 115px)}.project-detail-people{margin-left:auto}}
@media(max-width:720px){.project-card{grid-template-columns:70px minmax(0,1fr);padding:16px;gap:12px}.project-card-info{grid-column:2;grid-row:1}.project-people{grid-column:1/-1;grid-row:2}.project-card-money{grid-column:1/-1;grid-row:3;font-size:13px;gap:10px}.project-card-controls{grid-column:1/-1;grid-row:4;justify-content:flex-end;border-top:1px solid var(--line);padding-top:10px}.project-card-status{font-size:13px}.project-workspace-dialog{width:calc(100vw - 20px)}.project-detail-title{gap:10px}.project-detail-title h3{font-size:21px}.project-detail-people{margin:5px 0 0;gap:18px;width:100%;justify-content:flex-start}.project-basic-panel>.project-section-heading{padding:13px 14px;gap:8px}.project-basic-panel h3{font-size:17px}.project-basic-panel>.project-section-heading button{font-size:13px;padding:7px 10px}.project-info-grid{grid-template-columns:1fr;padding:0 14px}.project-info-grid>div,.project-info-grid>div:nth-child(odd){border-right:0;padding:12px 0}.project-info-grid dd{font-size:16px}.project-money-help{padding:0 14px;font-size:11px}.project-detail-note{display:block;padding:11px 12px;margin:0 14px 15px}.project-detail-note p{margin-top:5px;font-size:13px}.project-workspace-tabs{gap:7px}.project-workspace-tabs button{flex:1;font-size:14px;padding:8px}.project-field-routes{grid-template-columns:1fr}.project-field-routes>div{padding:15px}.project-design-request{padding:15px}.project-design-request>header{gap:10px}.project-design-request h4{font-size:16px}.project-request-assignee .staff-profile-circle{width:62px;height:62px;min-height:62px}.project-request-assignee .staff-profile-unassigned{width:62px;height:62px}.project-request-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.project-request-actions button{font-size:13px;padding:8px;min-width:0}.project-inline-form{padding:15px 12px;margin:15px -4px}.project-inline-form .project-dialog-actions button{min-width:0}.project-source-picker{padding:10px;font-size:13px}.project-source-details{font-size:13px}.project-workspace-dialog .project-detail-actions{display:flex}.project-workspace-dialog .project-detail-actions button{font-size:13px}.project-workspace-dialog .project-detail-actions .project-danger-text{margin-left:0}.project-design-results .project-section-heading{flex-wrap:wrap;gap:5px}.project-design-empty{padding:20px 16px}.project-measurement-list .project-material-list>li{align-items:flex-start}}
@media(forced-colors:active){.project-design-badge,.project-basic-panel,.project-inline-form,.project-design-request{border-color:CanvasText}.project-workspace-tabs button[aria-pressed=true]{outline:2px solid Highlight}.project-card-money{border-color:CanvasText}}
.project-request-facts{display:grid;grid-template-columns:100px minmax(0,1fr);gap:8px 15px;font-size:14px;line-height:1.7}
.project-request-facts dt{color:var(--muted)}
.project-request-facts dd{margin:0;overflow-wrap:anywhere}
.project-budget-quote{display:flex;align-items:center;gap:10px;font-size:14px;line-height:1.6;cursor:pointer}
.project-budget-quote input{width:18px;height:18px;min-height:18px;accent-color:var(--primary)}
.project-request-options .project-source-picker{margin:0}
.project-design-badge[data-status=needs_info]{color:#8a5926;background:#fff6e7;border-color:#edd9b7}
@media(max-width:720px){.project-request-facts{grid-template-columns:80px minmax(0,1fr);font-size:13px;gap:7px 10px}}
.project-workflow-status{font-size:13px;color:#4f6d46;min-height:0;margin:0 0 14px;line-height:1.6}
.project-workflow-status:empty{display:none}

/* Keep the shared modal title and close control reachable during long forms. */
.project-dialog{--project-dialog-header-layer:1;scroll-padding-top:120px}
.project-dialog-heading{position:sticky;top:0;z-index:var(--project-dialog-header-layer);background:var(--surface)}
@media(max-width:720px){.project-dialog{scroll-padding-top:110px}}

.project-inline-decision{margin:auto;padding:24px;max-width:620px;background:white;border:1px solid var(--line,#ddd);border-radius:16px;box-shadow:0 12px 40px #3d24601c}.project-inline-decision .project-dialog-actions{flex-wrap:wrap}

/* One-host decisions occupy the visible dialog, independent of body scroll. */
.project-decision-layer{position:fixed;display:grid;place-items:center;z-index:90;box-sizing:border-box;padding:max(16px,env(safe-area-inset-top)) 16px max(16px,env(safe-area-inset-bottom));background:rgba(34,24,54,.14)}.project-decision-layer>.project-inline-decision{width:min(620px,100%);max-height:100%;overflow:auto;box-sizing:border-box;margin:0;padding:24px}.project-inline-decision button{min-height:44px}.project-inline-decision h3{font-weight:600}.project-inline-decision p,.project-inline-decision button{font-weight:400}

.project-design-change{border-left:3px solid var(--primary);padding:10px 14px;margin:12px 0;background:var(--surface-soft,#faf9ff)}.project-design-change h4{font-size:15px;font-weight:600;margin:0 0 6px}

.project-selected-request{display:block;font-size:13px;font-weight:400;color:var(--primary);margin-top:8px}.project-design-request[data-selected-request]{border-color:var(--primary);scroll-margin-top:16px}.project-design-request[data-selected-request]:focus{outline:2px solid var(--primary);outline-offset:3px}

/* Request headers have content height; app masthead rules must not clip them. */
.project-design-request>header{height:auto;min-height:0;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none}.project-design-request>header>div:first-child{min-width:0;flex:1}.project-request-assignee{flex-shrink:0}.project-design-request>header .project-design-badge{max-width:100%;white-space:normal;overflow-wrap:anywhere}
@media(max-width:720px){.project-design-request>header{display:grid;grid-template-columns:minmax(0,1fr) 72px;gap:10px}.project-design-request>header h4{margin-bottom:8px}.project-request-assignee{min-width:0}.project-request-assignee .staff-profile-circle{min-width:62px}.project-design-request>header+.project-notes{margin-top:16px}}
.project-auto-badge{display:inline-block;font-size:15px;font-weight:500;line-height:1.5;word-break:keep-all;overflow-wrap:anywhere;background:var(--tint);color:var(--primary);border:1px solid var(--line);border-radius:9px;padding:8px 10px;max-width:100%}
.project-auto-badge[data-workflow=construction_in_progress]{background:#fff2d9;color:#914800}
.project-auto-badge[data-workflow=construction_completed],.project-auto-badge[data-workflow=project_complete]{background:#e4f8e6;color:#26713a}
.project-auto-badge[data-workflow=dropped],.project-auto-badge[data-workflow=deleted]{background:#e9eaef;color:#575b6a}
.project-card.project-card-scheduled{grid-template-columns:110px minmax(180px,1fr) minmax(390px,1fr) minmax(120px,.4fr) 100px}
.project-card-scheduled .project-card-info,.project-card-scheduled .project-people,.project-card-scheduled .project-card-money,.project-card-scheduled .project-card-controls{grid-column:auto;grid-row:auto}
.project-card-scheduled .project-people{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:12px}
.project-card-scheduled .project-person-group{display:flex;flex-direction:column;align-items:center;min-width:0;gap:7px}
.project-person-info{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0;max-width:100%}
.project-profile-date{font-size:14px!important;font-weight:400!important;line-height:1.65;margin:0;color:var(--muted);overflow-wrap:anywhere}
.project-card-scheduled .staff-profile-circle,.project-card-scheduled .staff-profile-unassigned,.project-card-scheduled .construction-team-circle{width:78px;height:78px;min-height:78px;min-width:78px;flex:0 0 78px}
.project-card-scheduled .project-person-label{font-size:14px;font-weight:400}
.project-card-scheduled .project-card-date,.project-card-scheduled .project-card-meta{font-size:14px;font-weight:400}
.project-card-scheduled .project-card-money{font-size:14px;font-weight:400}
.project-detail-people{flex-wrap:wrap;align-items:start}
.project-detail-people>div{min-width:110px;max-width:180px}
.project-management{margin:12px 18px;padding:12px 0;border-top:1px solid var(--line);font-size:14px}
.project-management summary{font-weight:400;cursor:pointer}.project-management p{font-size:14px;color:var(--muted);font-weight:400}
.design-promise-person{text-align:center}.design-promise-person p{font-size:14px;line-height:1.6;font-weight:400;color:var(--muted);margin:6px 0}
.project-request-assignee{max-width:180px}.project-request-assignee .project-profile-date{text-align:center}
@container(max-width:1250px){.project-card.project-card-scheduled{grid-template-columns:95px minmax(170px,1fr) minmax(345px,1.3fr) 100px}.project-card-scheduled .project-stage{grid-column:1;grid-row:1/3}.project-card-scheduled .project-card-info{grid-column:2;grid-row:1}.project-card-scheduled .project-people{grid-column:3;grid-row:1/3}.project-card-scheduled .project-card-money{grid-column:2;grid-row:2;border:0;padding:0}.project-card-scheduled .project-card-controls{grid-column:4;grid-row:1/3}}
@container(max-width:1000px){.project-card.project-card-scheduled{grid-template-columns:105px minmax(0,1fr)}.project-card-scheduled .project-stage{grid-column:1;grid-row:1}.project-card-scheduled .project-card-info{grid-column:2;grid-row:1}.project-card-scheduled .project-people{grid-column:1/-1;grid-row:2;padding:16px 0;border-left:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.project-card-scheduled .project-card-money{grid-column:2;grid-row:3}.project-card-scheduled .project-card-controls{grid-column:1/-1;grid-row:4;border:0;justify-content:flex-end}}
@media(max-width:720px){.project-card.project-card-scheduled{grid-template-columns:95px minmax(0,1fr)}.project-card-scheduled .project-people{grid-template-columns:minmax(0,1fr);gap:16px;align-items:start;padding:16px 0}.project-card-scheduled .project-person-group{display:grid;grid-template-columns:78px minmax(0,1fr);align-items:center;gap:16px;justify-items:start;width:100%}.project-person-info{align-items:start;text-align:left}.project-card-scheduled .project-card-money{grid-column:1/-1;grid-row:3}.project-card-scheduled .project-card-controls{grid-column:1/-1;grid-row:4}.project-detail-people{gap:18px}.project-detail-people>div{display:grid;grid-template-columns:76px minmax(0,1fr);align-items:center;column-gap:14px;max-width:none;width:100%;text-align:left}.project-detail-people>div>.staff-profile-circle,.project-detail-people>div>.staff-profile-unassigned,.project-detail-people>div>.construction-team-circle{grid-column:1;grid-row:1/3}.project-detail-people>div>p{grid-column:2;margin:0;text-align:left}.project-request-assignee{max-width:140px}.project-workspace-tabs button{flex:1 1 120px}.project-profile-date{font-size:14px!important}}

/* PROJECT-CIVIL-MARKET: one approved content/participant card for home and all. */
.projects-view .project-card.project-card-scheduled{grid-template-columns:minmax(180px,1fr) minmax(280px,auto);gap:24px;align-items:center;padding:22px 24px}
.projects-view .project-card-scheduled .project-card-info{grid-column:1;grid-row:1}
.projects-view .project-card-info h2{margin:10px 0 8px;font-size:20px;line-height:1.5}
.project-card-note{font-size:14px;font-weight:400;line-height:1.65;overflow-wrap:anywhere;margin:13px 0 0;color:var(--muted)}
.project-card-end{display:flex;flex-direction:column;align-items:flex-end;gap:15px;min-width:0;max-width:100%}
.projects-view .project-card-scheduled .project-people{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:flex-end;grid-column:auto;grid-row:auto;padding:0;border:0;max-width:100%}
.projects-view .project-card-scheduled .project-person-group{display:flex;flex-direction:column;align-items:center;gap:6px;width:auto;max-width:100%;min-width:0;flex:0 1 auto}
.project-participant-arrow{font-size:21px;color:var(--muted);flex:0 0 auto}
.project-participant-missing{font-size:13px;line-height:1.55;color:var(--muted);overflow-wrap:anywhere;max-width:110px}
.projects-view .project-card-scheduled .project-card-controls{grid-column:auto;grid-row:auto;border:0;padding:0;justify-content:flex-end}
.project-person-info .project-person-label{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
.project-detail-people{display:flex;flex-wrap:wrap;align-items:center;gap:12px;width:100%;margin:12px 0 0}
.project-detail-people>.project-person-group{display:flex;flex-direction:column;gap:7px;align-items:center;width:auto;min-width:0;max-width:100%}
.project-detail-people>.project-participant-arrow{min-width:0;max-width:none}
.project-intro h2{font-size:21px;font-weight:600;margin:0}.projects-view{margin-top:22px}.projects-view .project-card-dropped{background:#f0f0f4;border-color:#d0cedb;box-shadow:none}.project-card-dropped .project-people{filter:grayscale(1)}
@container(max-width:850px){.projects-view .project-card.project-card-scheduled{grid-template-columns:minmax(0,1fr)}.project-card-end{align-items:flex-start}.projects-view .project-card-scheduled .project-people{justify-content:flex-start;width:100%}.projects-view .project-card-scheduled .project-card-controls{align-self:flex-end}}
@media(max-width:720px){.projects-view .project-card.project-card-scheduled{grid-template-columns:minmax(0,1fr);padding:18px;gap:18px}.projects-view .project-card-info h2{font-size:19px}.project-card-end{width:100%;align-items:flex-start}.projects-view .project-card-scheduled .project-people{justify-content:flex-start}.project-intro{flex-wrap:wrap}.project-intro>.primary{font-size:15px}.project-detail-people .project-person-info{align-items:center;text-align:center}.project-card .project-person-info{align-items:center;text-align:center}}

.project-workspace-dialog .project-detail-title{flex-wrap:wrap}.project-workspace-dialog .project-detail-people{flex-shrink:1;flex-basis:100%}

/* Keep active work near the top while all original business facts remain expandable. */
.project-basic-panel>summary{cursor:pointer;padding:15px 20px;font-size:17px;font-weight:500;line-height:1.5;background:var(--surface-soft,#faf9ff);min-height:44px;box-sizing:border-box}.project-basic-panel>summary:focus-visible{outline:3px solid var(--primary);outline-offset:-3px}.project-basic-panel:not([open]){margin-bottom:18px}.project-basic-panel>.project-section-heading:has(>button){justify-content:flex-end}.project-basic-panel>.project-section-heading:empty{display:none}
