#editModal.project-mode .modal {width:min(1240px,calc(100vw - 32px));height:auto;max-height:calc(100dvh - 32px)}
#editModal.project-mode .modal-header {padding:19px 24px 16px}
#editModal.project-mode .modal-header h3 {font-size:clamp(17px,2vw,23px);letter-spacing:-.025em}
#editModal.project-mode .modal-form {display:block;padding:0 24px 22px;background:#f5f8fa}
#editModal.project-mode .modal-actions {padding:9px 24px}
#projectWorkspaceRoot {display:block;width:100%;min-width:0}
#projectWorkspaceRoot [hidden],.field-viewer [hidden] {display:none!important}
.desk-identity {display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0;color:#475d70;font-size:14px}
.field-job-status {display:block;margin-top:4px;overflow-wrap:anywhere}
.field-job-status.linked strong {color:#156047}
.field-job-status.waiting strong {color:#805419}
.desk-identity .btn {padding:7px 12px}
.desk-columns {display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);gap:16px;align-items:start}
.desk-columns>div:first-child {grid-column:2;grid-row:1;display:grid;gap:14px}
.desk-columns>div:first-child:only-child,.desk-columns:has(#projectProfitabilityBody:empty)>div:first-child {grid-column:1/-1}
#projectProfitabilityBody {grid-column:1;grid-row:1;display:grid;gap:14px;min-width:0}
#projectProfitabilityBody:empty,[data-project-billing-review]:empty {display:none}
.desk-summary,#projectProfitabilityBody .recorded-labor {min-width:0;padding:17px 19px;border:1px solid #d2dee6;border-radius:12px;background:white;box-shadow:0 1px 3px #18395308;color:#142c3e}
.desk-summary header,.field-viewer header,.desk-instructions>div,.desk-controls,.field-viewer footer {display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.desk-summary header {margin-bottom:11px}
.desk-summary h4,#projectProfitabilityBody .labor-heading strong:first-child {color:#12425b;font-size:17px;font-weight:700;letter-spacing:-.014em;margin:0}
.desk-summary p {margin:8px 0;font-size:15px}
.desk-summary small,.desk-meta,.file-tile small,.field-viewer small {font-size:12px;color:#536a7b;line-height:1.45}
.desk-controls {justify-content:flex-start}
.desk-link {border:0;background:none;padding:4px 0;color:#08648a;font:inherit;font-size:13px;font-weight:650;cursor:pointer;text-align:left}
.desk-link:hover {text-decoration:underline}
.desk-summary .btn {min-height:33px;font-size:13px}
.desk-summary p small {display:inline-block;margin-left:7px}
.desk-field header {margin-bottom:4px}
.desk-field>button,.desk-ticket {width:100%;display:flex;align-items:center;gap:8px;justify-content:space-between;text-align:left;border:0;border-top:1px solid #e5ecef;background:white;padding:12px 0;color:#183749;font:inherit;font-size:14px;cursor:pointer}
.desk-field>button:first-of-type {border-top:0}
.desk-field>button:last-child {padding-bottom:2px}
.desk-field>button span,.desk-ticket span {display:inline-flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:5px;color:#536a7b;font-size:12px}
.desk-field>button img {width:29px;height:24px;border-radius:4px;object-fit:cover}
.desk-field>button:hover strong,.desk-ticket:hover strong {color:#076b93;text-decoration:underline}
.desk-review {border-left:3px solid #29858d}
.desk-review-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:9px}
.desk-review-grid>div {color:#536a7b;font-size:12px}
.desk-review-grid strong {display:block;margin-top:4px;color:#17394d;font-size:clamp(15px,1.8vw,21px);word-wrap:break-word;font-variant-numeric:tabular-nums}
.desk-review p {font-size:13px}
.desk-money table {width:100%;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums}
.desk-money :is(td,th) {text-align:right;padding:8px 5px;border-bottom:1px solid #e4ecf1;background:none;color:inherit}
.desk-money thead th {color:#5b7080;font-size:12px;font-weight:550}
.desk-money :is(td,th):first-child {text-align:left;padding-left:0}
.desk-money .desk-meta {margin:10px 0 3px}
.desk-money .project-cost-ledger {margin:10px 0 0}
#projectProfitabilityBody .recorded-labor {display:block}
#projectProfitabilityBody .labor-entries {margin-top:9px;padding:9px 0 0;border:0;border-top:1px solid #e5ecef}
#projectProfitabilityBody .labor-entries:empty {display:none}
#projectProfitabilityBody .labor-metrics {margin:9px 0;background:#f0f6f8;border-radius:8px;padding:9px 12px}
#projectProfitabilityBody .labor-metrics strong {color:#16435b;font-size:23px;font-variant-numeric:tabular-nums}
#projectProfitabilityBody .labor-metrics .profit-negative {color:#a32b2b}
#projectWorkspaceRoot .job-heading {margin:0;padding:14px 0}
#projectWorkspaceRoot .job-heading h3 {color:#253d50;font-size:17px}
#projectWorkspaceRoot [data-job-page]:not(.desk-home)>:is(.desk-summary,.project-workspace-card)+:is(.desk-summary,.project-workspace-card) {margin-top:12px}
.desk-billing {display:grid;gap:12px}
.desk-instructions {padding:0 0 14px;margin-bottom:14px;border-bottom:1px solid #e2e9ee}
.desk-instructions p {white-space:pre-wrap;margin:6px 0 0}
.desk-instructions textarea {display:block;width:100%;margin:6px 0}
.file-gallery .file-filter {width:auto;min-height:32px}
.file-grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(min(180px,100%),1fr));gap:14px}
.file-grid:empty {display:none}
.file-tile {position:relative;display:grid;gap:4px;align-content:start;overflow:hidden;border:1px solid #d3e0e8;border-radius:8px;background:white;color:#213f51;font:inherit;text-align:left;padding:0 0 10px;cursor:pointer}
.file-tile:hover {border-color:#237b94}
.file-tile :is(strong,small,.file-note) {margin:0 10px;overflow-wrap:anywhere}
.file-tile strong {margin-top:5px;font-size:14px}
.file-note {font-size:12px;color:#506775}
.file-thumb {width:100%;aspect-ratio:16/10;position:relative;display:grid;place-items:center;overflow:hidden;background:#eaf0f3}
.file-thumb img,.file-thumb video {width:100%;height:100%;object-fit:cover}
.file-play {display:grid;place-items:center;position:absolute;width:37px;height:37px;border-radius:50%;background:#123247c9;color:white}
.file-sheet {display:grid;place-items:center;width:48px;height:63px;border:1px solid #b6c9d4;border-radius:4px;background:#fff;font-size:12px;font-weight:700;color:#46647a}
.file-empty {color:#536a7b}
.file-gallery .project-field-upload {margin:0 0 14px}
.field-viewer {width:min(1050px,96vw);max-height:94dvh;overflow:auto;border:1px solid #c8d8e2;border-radius:12px;padding:0;color:#153548;background:white}
.field-viewer::backdrop {background:#142637bb}
.field-viewer header,.field-viewer footer {padding:12px 17px}
.field-viewer small {display:block}
.field-viewer .file-stage {height:min(65dvh,680px);display:grid;place-items:center;background:#142735}
.file-stage :is(img,video,iframe) {display:block;width:100%;height:100%;border:0;object-fit:contain}
.field-viewer footer p {margin:0 0 4px}
#projectWorkspaceRoot :focus-visible,.field-viewer :focus-visible {outline:2px solid #147caa;outline-offset:2px}
@media(max-width:750px) {
  #editModal.project-mode {padding:0}
  #editModal.project-mode .modal {width:100%;height:100dvh;max-height:100dvh;border-radius:0}
  #editModal.project-mode .modal-form {padding:0 12px 15px}
  #editModal.project-mode .modal-header,#editModal.project-mode .modal-actions {padding:10px 14px}
  .desk-columns {display:flex;flex-direction:column;gap:10px}
  .desk-columns>div:first-child,#projectProfitabilityBody {display:contents}
  .desk-columns .desk-field {order:5}
  .desk-columns .desk-money {order:4}
  .desk-columns :is(.desk-summary,.recorded-labor,[data-project-billing-review]) {width:100%}
  .desk-summary,#projectProfitabilityBody .recorded-labor {padding:13px}
  .desk-money :is(td,th) {padding:7px 3px;font-size:12px}
  .desk-identity {font-size:12px}
  .file-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  #projectWorkspaceRoot .project-invoice-row {grid-template-columns:minmax(0,1fr) auto}
  #projectWorkspaceRoot .project-invoice-linker,#projectWorkspaceRoot .project-task-create {display:flex;flex-wrap:wrap}
}
