/* Product-specific workspace compositions. No shared dashboard template. */
.pa-desk{--desk-paper:#fff;--desk-line:#dce2e7;--desk-muted:#657180;--desk-ink:#243040;color:var(--desk-ink);min-width:0}
.pa-desk *{box-sizing:border-box}.pa-desk button,.pa-desk a{min-height:42px}.pa-desk button{cursor:pointer;font:inherit}.pa-desk h2,.pa-desk h3,.pa-desk p{margin-top:0}.pa-desk h2{font-size:24px;letter-spacing:-.5px}.pa-desk h3{font-size:16px}.pa-desk small,.pa-desk .sub{color:var(--desk-muted);font-size:12px;line-height:1.6}.pa-desk .eyebrow{font:600 10px/1.5 system-ui;letter-spacing:2px;text-transform:uppercase;color:var(--desk-muted)}
.pa-desk .desk-head{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:24px}.pa-desk .desk-actions{display:flex;gap:8px;flex-wrap:wrap}.pa-desk .desk-panel{background:var(--desk-paper);border:1px solid var(--desk-line);border-radius:10px;padding:22px;min-width:0}.pa-desk .desk-empty{padding:25px 10px;color:var(--desk-muted);font-size:13px}.pa-desk .desk-tag{display:inline-block;border:1px solid var(--desk-line);padding:4px 8px;border-radius:4px;font-size:11px;line-height:1.4}.pa-desk .desk-row{border-top:1px solid var(--desk-line);padding:14px 0;display:flex;justify-content:space-between;gap:14px;align-items:center}.pa-desk .desk-row:first-child{border-top:0}.pa-desk .desk-row b{display:block}.pa-desk .desk-link{border:0;background:transparent;color:inherit;padding:8px 0;text-align:left;text-decoration:underline;text-underline-offset:4px}.pa-desk .desk-kicker{border-left:3px solid currentColor;padding-left:14px;margin:18px 0;font-size:13px}
/* ClausePilot: agreement index / reading paper / obligation margin. */
.pa-clause-desk .legal-desk{display:grid;grid-template-columns:220px minmax(280px,1fr) 260px;gap:0;border:1px solid var(--desk-line);border-radius:10px;overflow:hidden;align-items:start;background:var(--desk-paper)}
.pa-clause-desk .agreement-index{padding:20px 12px;background:#f3f5f8;align-self:stretch}.pa-clause-desk .agreement-index button{display:block;text-align:left;width:100%;border:0;border-left:3px solid transparent;border-radius:0;padding:15px 12px;background:transparent;color:inherit}.pa-clause-desk .agreement-index button[aria-pressed=true]{border-color:#375e91;background:#fff}.pa-clause-desk .agreement-index small{display:block}.pa-clause-desk .agreement-paper{padding:30px 34px;min-height:540px;border-inline:1px solid var(--desk-line)}.pa-clause-desk .agreement-paper .source{white-space:pre-wrap;font:16px/1.9 Georgia,serif;max-height:560px;overflow:auto;border-top:1px solid var(--desk-line);padding-top:24px;margin-top:24px;overflow-wrap:anywhere}.pa-clause-desk .legal-margin{padding:24px 20px}.pa-clause-desk .obligation{padding:14px 0;border-bottom:1px solid var(--desk-line);font-size:13px}.pa-clause-desk .legal-facts{display:flex;gap:18px;flex-wrap:wrap;font-size:12px}.pa-clause-desk .legal-facts b{display:block;margin-bottom:4px}
/* SpendWise: ledger-first review station; no four-card dashboard. */
.pa-spend-desk .finance-band{display:flex;gap:30px;flex-wrap:wrap;border-block:1px solid var(--desk-line);padding:18px 0;margin-bottom:24px}.pa-spend-desk .finance-band b{display:block;font-variant-numeric:tabular-nums;font-size:27px}.pa-spend-desk .review-station{display:grid;grid-template-columns:minmax(360px,1.5fr) minmax(260px,.8fr);gap:24px}.pa-spend-desk table{width:100%;border-collapse:collapse;font-size:13px}.pa-spend-desk th{text-align:left;color:var(--desk-muted);font-size:11px;padding:12px 9px}.pa-spend-desk td{padding:16px 9px;border-top:1px solid var(--desk-line)}.pa-spend-desk tr.selected{background:#eef8f2}.pa-spend-desk .receipt-slip{border:1px dashed #a7b6ad;padding:24px 20px;background:#fafcfb;min-height:250px}.pa-spend-desk .receipt-slip dl{display:grid;grid-template-columns:1fr 1fr;gap:13px;font-size:12px}.pa-spend-desk .receipt-slip dd{margin:0;text-align:right}.pa-spend-desk .receipt-slip h3{font-size:22px}.pa-spend-desk .receipt-status{border-block:1px dashed #b7c4bb;padding:16px 0;margin:18px 0}.pa-spend-desk .ledger-wrap{overflow:auto}
/* Coordex: commercial lanes + next action, not a metric grid. */
#dashboard.pa-sales-home>#cx24Today,#dashboard.pa-sales-home>#metrics,#dashboard.pa-sales-home>.grid,#dashboard.pa-sales-home>.card{display:none!important}
.pa-sales-desk .sales-lanes{display:grid;grid-template-columns:repeat(4,minmax(200px,1fr));gap:14px;overflow:auto;padding-bottom:8px}.pa-sales-desk .sales-lane{background:#edf1f5;border-top:3px solid #385575;padding:16px 12px;border-radius:6px;min-height:370px}.pa-sales-desk .lane-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;font-size:12px;font-weight:700}.pa-sales-desk .deal-card{display:block;width:100%;text-align:left;background:#fff;border:1px solid #d5dee7;border-radius:7px;padding:17px 14px;margin-bottom:12px;color:#26374a}.pa-sales-desk .deal-card b{display:block;margin:8px 0}.pa-sales-desk .deal-card small{display:block}.pa-sales-desk .deal-card .item{font-size:12px;line-height:1.6;margin-bottom:15px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.pa-sales-desk .sales-summary{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--desk-line);margin-top:24px;padding-top:16px;font-size:12px}.pa-sales-desk .lane-empty{font-size:12px;line-height:1.7;color:#657180;padding:16px 6px}
/* Shipdesk: a horizontal shipment file with visible lifecycle. */
.pa-shipping-desk .shipping-manifest{display:grid;gap:18px}.pa-shipping-desk .shipment-file{background:var(--desk-paper);border:1px solid var(--desk-line);border-left:4px solid #df6835;border-radius:5px;padding:24px}.pa-shipping-desk .shipment-identity{display:flex;justify-content:space-between;gap:18px;align-items:start;margin-bottom:25px}.pa-shipping-desk .shipment-identity h3{font-size:22px;margin:5px 0}.pa-shipping-desk .shipment-stages{display:grid;grid-template-columns:repeat(4,1fr);gap:0;border-top:1px solid var(--desk-line)}.pa-shipping-desk .shipment-stage{padding:20px 12px 12px 0;border-right:1px solid var(--desk-line);margin-right:14px}.pa-shipping-desk .shipment-stage:last-child{border:0;margin:0}.pa-shipping-desk .stage-num{display:block;font:600 11px system-ui;color:#a74417;margin-bottom:14px}.pa-shipping-desk .shipment-stage b{display:block;font-size:13px}.pa-shipping-desk .shipment-stage p{font-size:12px;line-height:1.7;color:var(--desk-muted);margin:8px 0}.pa-shipping-desk .shipment-stage button{background:none;border:0;padding:6px 0;text-decoration:underline;text-underline-offset:4px;font-size:12px;color:inherit}.pa-shipping-desk .shipping-brief{display:flex;gap:24px;flex-wrap:wrap;padding-bottom:18px;margin-bottom:22px;border-bottom:1px solid var(--desk-line);font-size:12px}
/* FleetX: yard status board and dispatch / returns work queues. */
.pa-fleet-desk .yard-strip{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:18px 0;border-block:1px solid var(--desk-line);margin-bottom:24px}.pa-fleet-desk .yard-strip b{font-size:25px;margin-right:8px}.pa-fleet-desk .yard-grid{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:14px;overflow:auto}.pa-fleet-desk .yard-lane{background:#eef1f7;border-radius:8px;padding:16px 12px;min-height:290px}.pa-fleet-desk .yard-lane h3{font-size:12px;text-transform:uppercase;letter-spacing:1px;margin-bottom:20px}.pa-fleet-desk .asset-tile{display:block;padding:16px;background:var(--desk-paper);border:1px solid var(--desk-line);border-radius:7px;margin-bottom:12px;color:inherit;text-decoration:none;min-height:125px}.pa-fleet-desk .asset-tile b{display:block;margin:9px 0;font-size:14px}.pa-fleet-desk .asset-code{font:600 10px system-ui;letter-spacing:1px;color:#3155c6}.pa-fleet-desk .dispatch-queues{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:24px}.pa-fleet-desk .queue-head{display:flex;justify-content:space-between;gap:12px}
/* FormFlow: preparation rail beside the actual upload and submission tools. */
.pa-form-desk .form-workbench{display:grid;grid-template-columns:260px minmax(0,1fr);gap:28px;align-items:start}.pa-form-desk .preparation-rail{border-left:2px solid #2f5d50;padding-left:24px}.pa-form-desk .preparation-step{display:block;width:100%;border:0;border-bottom:1px solid var(--desk-line);background:none;text-align:left;padding:20px 0;color:inherit}.pa-form-desk .preparation-step b{display:block;font-size:14px;margin:7px 0}.pa-form-desk .preparation-step small{display:block}.pa-form-desk .dropzone{margin:0 0 22px!important;padding:30px!important;min-height:190px;border:2px dashed #90aa9e!important;border-radius:8px!important;background:#f6faf7!important}.pa-form-desk .hero{display:none}.pa-form-desk .setup{margin-top:20px}.pa-form-desk .tiles{margin-block:22px}
/* Chasely: client relationship desk, with a closing-work queue. */
.pa-legacy-home{display:none!important}.pa-chasely-desk .client-desk{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(270px,.8fr);gap:26px}.pa-chasely-desk .client-roster{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.pa-chasely-desk .client-folder{border:1px solid var(--desk-line);background:var(--desk-paper);border-radius:12px;overflow:hidden}.pa-chasely-desk .client-folder header{display:flex;justify-content:space-between;gap:10px;padding:20px;border-bottom:1px solid var(--desk-line)}.pa-chasely-desk .client-initials{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:10px;background:#e4f7f5;color:#126d66;font-weight:700}.pa-chasely-desk .client-folder h3{margin:5px 0}.pa-chasely-desk .client-folder .folder-body{padding:16px 20px}.pa-chasely-desk .client-folder .folder-progress{height:5px;background:#e9eeee;border-radius:5px;margin:14px 0}.pa-chasely-desk .client-folder .folder-progress span{display:block;height:100%;background:#13a89b;border-radius:5px}.pa-chasely-desk .client-open{width:100%;text-align:left;border:0;border-top:1px solid var(--desk-line);padding:12px 20px;background:transparent;color:inherit}.pa-chasely-desk .closing-queue{border-top:3px solid #14a899}.pa-chasely-desk .client-summary{display:flex;gap:25px;padding:0 0 24px;font-size:12px}.pa-chasely-desk .client-summary b{font-size:23px;margin-right:7px}.pa-chasely-desk .request-item{display:block;width:100%;text-align:left;padding:15px 0;border:0;border-bottom:1px solid var(--desk-line);background:none;color:inherit}.pa-chasely-desk .request-item b,.pa-chasely-desk .request-item small{display:block;margin-bottom:5px}
@media(max-width:1100px){.pa-clause-desk .legal-desk{grid-template-columns:190px minmax(0,1fr)}.pa-clause-desk .legal-margin{grid-column:1/-1;border-top:1px solid var(--desk-line)}.pa-sales-desk .sales-lanes,.pa-fleet-desk .yard-grid{grid-template-columns:repeat(4,minmax(220px,1fr))}.pa-chasely-desk .client-desk{grid-template-columns:1fr}.pa-spend-desk .review-station{grid-template-columns:minmax(0,1fr) 290px}}
@media(max-width:700px){.pa-desk .desk-head{display:block}.pa-desk .desk-actions{margin-top:14px}.pa-desk .desk-panel{padding:18px}.pa-clause-desk .legal-desk{display:block}.pa-clause-desk .agreement-index{display:flex;gap:8px;overflow:auto;padding:12px}.pa-clause-desk .agreement-index>h3{display:none}.pa-clause-desk .agreement-index button{min-width:180px;border-left:0;border-bottom:3px solid transparent}.pa-clause-desk .agreement-paper{padding:24px 20px;border:0;min-height:330px}.pa-clause-desk .agreement-paper .source{max-height:380px}.pa-spend-desk .review-station{display:block}.pa-spend-desk .receipt-slip{margin-top:22px}.pa-spend-desk .finance-band{gap:22px}.pa-spend-desk .finance-band b{font-size:21px}.pa-shipping-desk .shipment-file{padding:18px}.pa-shipping-desk .shipment-stages{grid-template-columns:1fr 1fr}.pa-shipping-desk .shipment-stage:nth-child(2){border:0}.pa-shipping-desk .shipment-identity{display:block}.pa-shipping-desk .shipping-brief{gap:14px}.pa-fleet-desk .dispatch-queues{grid-template-columns:1fr}.pa-form-desk .form-workbench{display:block}.pa-form-desk .preparation-rail{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:24px;border-left:0;padding:0}.pa-form-desk .preparation-step{padding:12px;background:#f3f8f4;border:1px solid var(--desk-line);border-radius:7px}.pa-form-desk .dropzone{padding:20px!important}.pa-chasely-desk .client-roster{grid-template-columns:1fr}.pa-chasely-desk .client-summary{gap:16px;flex-wrap:wrap}.pa-desk .desk-head h2{font-size:23px}.pa-sales-desk .sales-summary{display:block}}
html[data-pa-theme=dark] .pa-desk,body.dark .pa-desk{--desk-paper:#1d2936;--desk-line:#435165;--desk-muted:#b5c2d0;--desk-ink:#e6edf5}
@media print{.pa-desk .desk-actions,.pa-desk .agreement-index,.pa-desk .sales-lanes button{display:none}}

.pa-desk aside{position:static;inset:auto;width:auto;height:auto;transform:none;z-index:auto;box-shadow:none;overflow:visible;min-width:0}.pa-chasely-desk .client-folder header{position:static;min-height:0;margin:0;width:auto;background:transparent}
#dashboard.pa-sales-home>:not(#pa-sales-board){display:none!important}

main.pa-form-desk{padding:32px!important}.pa-form-desk .form-workbench .page{padding:0!important;max-width:none!important}.pa-form-desk .form-workbench .page>.hero{display:none!important}@media(max-width:700px){main.pa-form-desk{padding:22px 16px!important}}

html body .pa-sales-desk button.deal-card{background:#fff!important;color:#26374a!important;border:1px solid #d5dee7!important;border-radius:7px!important}html body .pa-sales-desk button.deal-card b,html body .pa-sales-desk button.deal-card .item{color:#26374a!important}html body .pa-sales-desk button.deal-card small{color:#52667c!important}html[data-pa-theme=dark] body .pa-sales-desk button.deal-card{background:#1d2936!important;color:#e6edf5!important}html[data-pa-theme=dark] body .pa-sales-desk button.deal-card b,html[data-pa-theme=dark] body .pa-sales-desk button.deal-card .item{color:#e6edf5!important}html[data-pa-theme=dark] body .pa-sales-desk button.deal-card small{color:#bac8d8!important}

body.dark .pa-fleet-desk .yard-lane{background:#202c3b}body.dark .pa-fleet-desk .asset-code{color:#9db4ff}@media(max-width:700px){.pa-fleet-desk .yard-grid{grid-template-columns:1fr}.pa-fleet-desk .yard-lane{display:grid;grid-template-columns:1fr 1fr;gap:10px;min-height:0}.pa-fleet-desk .yard-lane h3{grid-column:1/-1;margin:0 0 8px}.pa-fleet-desk .yard-lane .asset-tile{margin:0;padding:12px;min-width:0;overflow-wrap:anywhere}.pa-fleet-desk .yard-lane .desk-empty{grid-column:1/-1}}

/* Explicit dark palettes for the new compositions; do not rely on inferred colours. */
html[data-pa-theme=dark] body .pa-desk,html[data-pa-theme=dark] body .pa-desk h2,html[data-pa-theme=dark] body .pa-desk h3,html[data-pa-theme=dark] body .pa-desk b,html[data-pa-theme=dark] body .pa-desk td,html[data-pa-theme=dark] body .pa-desk dt,html[data-pa-theme=dark] body .pa-desk dd{color:#e6edf5!important}
html[data-pa-theme=dark] body .pa-desk small,html[data-pa-theme=dark] body .pa-desk .sub,html[data-pa-theme=dark] body .pa-desk .eyebrow,html[data-pa-theme=dark] body .pa-desk .desk-empty{color:#bac8d8!important}
html[data-pa-theme=dark] body .pa-desk button{background:#26394d!important;color:#edf3fa!important;border-color:#52647b!important}
html[data-pa-theme=dark] body .pa-desk .desk-panel,html[data-pa-theme=dark] body .pa-desk .client-folder,html[data-pa-theme=dark] body .pa-desk .shipment-file,html[data-pa-theme=dark] body .pa-desk .agreement-paper,html[data-pa-theme=dark] body .pa-desk .receipt-slip{background:#182330!important;color:#e6edf5!important;border-color:#52647b!important}
html[data-pa-theme=dark] body .pa-clause-desk .agreement-index,html[data-pa-theme=dark] body .pa-sales-desk .sales-lane{background:#202e3d!important;color:#e6edf5!important}
html[data-pa-theme=dark] body .pa-clause-desk .agreement-index button{background:transparent!important}
html[data-pa-theme=dark] body .pa-clause-desk .agreement-index button[aria-pressed=true]{background:#32465e!important}
html[data-pa-theme=dark] body .pa-spend-desk tr.selected{background:#203c34!important}
html[data-pa-theme=dark] body .pa-form-desk .dropzone,html[data-pa-theme=dark] body .pa-form-desk .preparation-step{background:#20382d!important;color:#e6edf5!important;border-color:#527262!important}
html[data-pa-theme=dark] body .pa-chasely-desk .client-initials{background:#163c38!important;color:#9be0d7!important}
html[data-pa-theme=dark] body .pa-shipping-desk .shipment-stage button,html[data-pa-theme=dark] body .pa-desk .desk-link{background:transparent!important;color:#e6edf5!important}

.pa-desk .desk-head h1{font-size:26px;line-height:1.25;letter-spacing:-.6px;margin:0 0 12px}html[data-pa-theme=dark] body .pa-desk h1{color:#e6edf5!important}@media(max-width:700px){.pa-desk .desk-head h1{font-size:24px}}
/* v49.1: FleetX yard attention panel and tile warnings (uses FleetX's status tokens for both themes) */
.pa-fleet-desk .yard-attention{border:1px solid var(--desk-line);border-left:4px solid var(--danger,#b42318);border-radius:8px;padding:16px 18px;margin-bottom:24px;background:var(--desk-paper)}
.pa-fleet-desk .yard-attention h3{margin:0;font-size:15px}
.pa-fleet-desk .yard-attention ul{list-style:none;margin:12px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px}
.pa-fleet-desk .yard-attention li a{display:block;height:100%;padding:10px 12px;border-radius:6px;background:var(--warn-bg);color:var(--warn);text-decoration:none}
.pa-fleet-desk .yard-attention li.danger a{background:var(--danger-bg);color:var(--danger)}
.pa-fleet-desk .yard-attention li.info a{background:var(--hire-bg);color:var(--hire)}
.pa-fleet-desk .yard-attention li b{display:block;font-size:13px}
.pa-fleet-desk .yard-attention li small{display:block;margin-top:2px;font-size:12px;color:inherit}
.pa-fleet-desk .yard-attention details{margin-top:10px}.pa-fleet-desk .yard-attention summary{cursor:pointer;font-size:13px;font-weight:600}
.pa-fleet-desk .yard-clear{margin:0 0 24px;color:var(--desk-muted)}
.pa-fleet-desk .tile-flags{display:flex;flex-wrap:wrap;gap:4px;margin-top:8px}
.pa-fleet-desk .tile-flag{padding:2px 6px;border-radius:4px;font-size:11px;font-weight:600;background:var(--warn-bg);color:var(--warn)}
.pa-fleet-desk .tile-flag.danger{background:var(--danger-bg);color:var(--danger)}
.pa-fleet-desk .asset-tile.has-danger{border-left:3px solid var(--danger)}
/* v49.2: "View all" links for capped lists */
.pa-desk .desk-more{display:block;width:100%;margin-top:10px;padding:9px 12px;border:1px dashed var(--desk-line);border-radius:6px;background:transparent;color:inherit;font-size:13px;font-weight:600;text-align:center;cursor:pointer}
.pa-desk .desk-more:hover{border-style:solid}
.pa-desk .desk-count{margin:10px 0 0;font-size:12px;color:var(--desk-muted)}
.pa-fleet-desk .yard-lane .desk-more{grid-column:1/-1;margin:0}
/* v49.2: keep the getting-started checklist and feedback button from covering desk content.
   The collapsed checklist shrinks to fit its label, narrows to the progress count below 1100px,
   and pages get room at the bottom so the last content can scroll clear of the floating buttons. */
body:has(.pa-desk){padding-bottom:150px}
#paGS:not(:has(ul)){width:auto}
@media(max-width:1100px){#paGS:not(:has(ul)) .gs-h b{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}}
