/* Every company-workspace list is paged as complete cards within its measured area. */
.company-workspace{--cw-ink:#173449;--cw-muted:#667c8e;--cw-line:#d7e3eb;--cw-yellow:#fff0a2;display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto;gap:12px;height:100%;min-height:0;min-width:0;color:var(--cw-ink);overflow:hidden}
.company-workspace *{box-sizing:border-box}
.company-workspace button{font:inherit;cursor:pointer}
.company-workspace svg{width:19px;height:19px;flex:0 0 19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.company-workspace button:focus-visible,.company-workspace input:focus-visible{outline:3px solid #368bc3;outline-offset:2px}
.company-workspace button:disabled{cursor:default;opacity:.4}
.company-workspace .cw-header{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.company-workspace .cw-header h2{font-size:23px;line-height:1.2;margin:0;color:var(--cw-ink);text-align:left}
.company-workspace .cw-header p{margin:3px 0 0;font-size:13px;color:var(--cw-muted);text-align:left}
.company-workspace .cw-head-actions,.company-workspace .cw-range{display:flex;gap:8px;align-items:center}
.company-workspace .cw-head-actions button,.company-workspace .cw-toolbar button,.company-workspace .cw-panel-heading button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--cw-line);border-radius:11px;background:#fff;color:var(--cw-ink);min-height:36px;padding:7px 11px;white-space:nowrap}
.company-workspace .cw-head-actions button:hover,.company-workspace .cw-job-actions button:hover{background:#edf4f8}
.company-workspace .cw-metrics{display:flex;gap:12px;min-width:0}
.company-workspace .cw-metrics button{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:12px 16px;border:1px solid var(--cw-line);border-radius:15px;background:linear-gradient(125deg,#fff,#f8fbfd);box-shadow:0 3px 12px #233f5410;text-align:left}
.company-workspace .cw-metrics strong{font-size:29px;line-height:1.05;letter-spacing:-.5px}
.company-workspace .cw-metrics span{font-size:12px;line-height:1.25;color:var(--cw-muted)}
.company-workspace .cw-toolbar{display:flex;gap:10px;align-items:center;min-width:0}
.company-workspace .cw-toolbar input{flex:1 1 220px;min-width:90px;width:100%;height:39px;border:1px solid #b7cbd9;border-radius:12px;padding:9px 13px;background:#fff;font-size:14px;text-align:left;color:var(--cw-ink)}
.company-workspace .cw-range button[aria-pressed=true],.company-workspace .cw-sections button[aria-pressed=true]{background:var(--cw-yellow);border-color:#d7b94c}
.company-workspace .cw-sections{display:none;gap:7px}
.company-workspace .cw-body{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(290px,1fr);grid-template-rows:minmax(0,1fr) minmax(0,.85fr);gap:12px;min-height:0;min-width:0}
.company-workspace .cw-panel{display:flex;flex-direction:column;gap:9px;min-height:0;min-width:0;overflow:hidden;background:#fff;border:1px solid var(--cw-line);border-radius:18px;padding:13px;box-shadow:0 4px 18px #233f5408}
.company-workspace .cw-jobs-panel{grid-column:1;grid-row:1/3}
.company-workspace .cw-decisions-panel{grid-column:2;grid-row:1}
.company-workspace .cw-agenda-panel{grid-column:2;grid-row:2}
.company-workspace .cw-body:not(:has(.cw-agenda-panel)) .cw-decisions-panel{grid-row:1/3}
.company-workspace .cw-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:30px;flex:0 0 auto}
.company-workspace .cw-panel-heading h3{font-size:15px;line-height:1.2;margin:0;text-align:left;color:var(--cw-ink)}
.company-workspace .cw-panel-heading button{border:0;background:#f1f6fa;font-size:12px;min-height:30px;padding:5px 8px}
.company-workspace .cw-jobs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:10px;flex:1 1 auto;min-height:0;overflow:hidden;align-content:start}
.company-workspace .cw-jobs[data-cols='1']{grid-template-columns:minmax(0,1fr)}
.company-workspace .cw-jobs[data-cols='3']{grid-template-columns:repeat(3,minmax(0,1fr))}
.company-workspace .cw-jobs[data-cols='4']{grid-template-columns:repeat(4,minmax(0,1fr))}
.company-workspace .cw-job{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;padding:12px;border:1px solid #cddde7;border-radius:14px;background:linear-gradient(130deg,#fff 55%,#f5f9fc)}
.company-workspace .cw-job-top{display:flex;justify-content:space-between;align-items:center;gap:5px;margin-bottom:5px}
.company-workspace .cw-job-number{font-weight:800;font-size:14px;line-height:1.2;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.company-workspace .cw-job-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;border:0;background:none;text-align:left;padding:0;min-height:38px;font-size:15px;font-weight:750;line-height:1.25;color:var(--cw-ink)}
.company-workspace .cw-job-customer{margin:4px 0 8px;font-size:12px;line-height:1.2;color:var(--cw-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left}
.company-workspace .cw-job-date,.company-workspace .cw-job-people{display:flex;align-items:center;gap:6px;font-size:12px;line-height:1.3;margin:0;text-align:left;min-width:0}
.company-workspace .cw-job-people{margin:7px 0;color:var(--cw-muted)}
.company-workspace .cw-job-people span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.company-workspace .cw-readiness{display:flex;flex-wrap:wrap;gap:4px;margin:7px 0 0;min-height:20px}
.company-workspace .cw-tag{display:inline-flex;align-items:center;justify-content:center;min-height:20px;border:1px solid #d5e0e8;border-radius:7px;background:#f3f6f8;padding:2px 6px;font-size:10px;line-height:1.15;color:#526b7e;font-weight:650;white-space:nowrap}
.company-workspace .cw-success,.company-workspace .cw-state-success{background:#e5f6ec;border-color:#67b789;color:#173b2d}
.company-workspace .cw-warning,.company-workspace .cw-state-warning{background:#fff2d8;border-color:#e0b756;color:#654718}
.company-workspace .cw-danger,.company-workspace .cw-state-danger{background:#fde8ec;border-color:#d48090;color:#752b3b}
.company-workspace .cw-job-actions{display:flex;gap:5px;margin-top:auto;padding-top:8px;border-top:1px solid #e1eaf0;flex:0 0 auto}
.company-workspace .cw-job-actions button{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:31px;padding:5px 6px;border:1px solid #c9dce8;border-radius:9px;background:#fff;color:#142e41;font-size:11px;line-height:1.1;font-weight:600}
.company-workspace .cw-job-actions .cw-state-success{background:#e5f6ec;border-color:#67b789}
.company-workspace .cw-job-actions .cw-state-warning{background:#fff2d8;border-color:#e0b756}
.company-workspace .cw-job-actions .cw-state-danger{background:#fde8ec;border-color:#d48090}
.company-workspace .cw-job-actions svg{width:16px;height:16px;flex-basis:16px}
.company-workspace .cw-action-list,.company-workspace .cw-agenda-list{display:flex;flex-direction:column;gap:5px;flex:1 1 auto;min-height:0;overflow:hidden}
.company-workspace .cw-action-row,.company-workspace .cw-agenda-row{display:flex;align-items:center;gap:10px;flex:1 1 0;min-height:0;min-width:0;max-height:95px;padding:9px 5px;border:0;border-bottom:1px solid #e5edf2;border-radius:0;background:#fff;text-align:left;color:var(--cw-ink);overflow:hidden}
.company-workspace .cw-action-row>span:nth-child(2),.company-workspace .cw-agenda-row>span:nth-child(2){min-width:0;flex:1}
.company-workspace .cw-action-row strong,.company-workspace .cw-agenda-row strong{display:block;font-size:13px;font-weight:700;line-height:1.2;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.company-workspace .cw-action-row small,.company-workspace .cw-agenda-row small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:3px;font-size:11px;line-height:1.3;color:var(--cw-muted)}
.company-workspace .cw-action-row time{display:block;margin-top:2px;font-size:10px;color:var(--cw-muted)}
.company-workspace .cw-action-mark{display:flex;align-items:center;justify-content:center;flex:0 0 34px;height:34px;border-radius:11px;border-width:1px;border-style:solid}
.company-workspace .cw-agenda-time{flex:0 0 45px;font-size:14px;font-weight:700;text-align:center}
.company-workspace .cw-agenda-time small{font-size:11px;font-weight:400}
.company-workspace .cw-pager{display:flex;justify-content:space-between;align-items:center;gap:7px;min-height:30px;flex:0 0 auto;font-size:11px;color:var(--cw-muted)}
.company-workspace .cw-pager>div{display:flex;align-items:center;gap:8px}
.company-workspace .cw-pager button{border:1px solid var(--cw-line);border-radius:8px;background:#f8fbfd;color:var(--cw-ink);width:29px;height:29px;font-size:20px;line-height:1;padding:0;min-height:0}
.company-workspace .cw-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;grid-column:1/-1;flex:1;text-align:center;font-size:13px;color:var(--cw-muted);padding:15px;min-height:0}
.company-workspace .cw-empty button{border:1px solid var(--cw-line);border-radius:9px;padding:8px 12px;background:#fff;color:var(--cw-ink)}
.company-workspace .cw-source{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:var(--cw-muted);min-height:22px;min-width:0}
.company-workspace .cw-source>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.company-workspace .cw-source button{border:0;background:none;color:var(--cw-ink);white-space:nowrap;font-size:11px;padding:2px 0}
.company-workspace .cw-work-panel{display:none;grid-column:1/-1;grid-row:1/3}
.company-workspace[data-cw-section='tasks'] .cw-panel{display:none}
.company-workspace[data-cw-section='tasks'] .cw-work-panel{display:flex}
.company-workspace .cw-work-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:10px;flex:1;min-height:0;overflow:hidden}
.company-workspace .cw-work-grid[data-cols='1']{grid-template-columns:minmax(0,1fr)}
.company-workspace .cw-work-grid[data-cols='3']{grid-template-columns:repeat(3,minmax(0,1fr))}
.company-workspace .cw-work-grid[data-cols='4']{grid-template-columns:repeat(4,minmax(0,1fr))}
.company-workspace .cw-work-card{display:flex;flex-direction:column;padding:12px;border:1px solid #cddde7;border-radius:14px;background:linear-gradient(130deg,#fff 55%,#f5f9fc);min-width:0;min-height:0;overflow:hidden}
.company-workspace .cw-work-card .cw-job-top>strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.company-workspace .cw-work-note{font-size:12px;line-height:1.35;color:var(--cw-muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:7px 0}
.company-workspace .cw-work-limit{margin:0;font-size:11px;color:var(--cw-muted)}
.company-workspace .cw-panel-heading select{min-width:100px;max-width:240px;height:32px;border:1px solid #cbdbe5;border-radius:9px;padding:5px 8px;font-size:12px;color:var(--cw-ink);background:#fff}
.company-workspace .cw-toolbar button.cw-work-toggle{font-size:12px}
.company-workspace .cw-work-toggle[aria-pressed=true]{background:var(--cw-yellow);border-color:#d7b94c}
.company-workspace[data-cw-compact='1'] .cw-body{display:block}
.company-workspace[data-cw-compact='1'] .cw-panel{height:100%;display:none}
.company-workspace[data-cw-compact='1'][data-cw-section='jobs'] .cw-jobs-panel,.company-workspace[data-cw-compact='1'][data-cw-section='decisions'] .cw-decisions-panel,.company-workspace[data-cw-compact='1'][data-cw-section='agenda'] .cw-agenda-panel{display:flex}
.company-workspace[data-cw-compact='1'][data-cw-section='tasks'] .cw-work-panel{display:flex}
.company-workspace[data-cw-compact='1'] .cw-toolbar{flex-wrap:wrap}
.company-workspace[data-cw-compact='1'] .cw-sections{display:flex;flex:1 1 100%}
.company-workspace[data-cw-tight='1']{gap:7px;grid-template-rows:auto auto minmax(0,1fr) auto}
.company-workspace[data-cw-tight='1'] .cw-metrics{display:none}
.company-workspace[data-cw-tight='1'] .cw-header p{display:none}
.company-workspace[data-cw-tight='1'] .cw-job{padding:8px}
.company-workspace[data-cw-tight='1'] .cw-job-customer{margin:2px 0 5px}
.company-workspace[data-cw-tight='1'] .cw-job-title{min-height:18px;-webkit-line-clamp:1}
.company-workspace[data-cw-tight='1'] .cw-job-people{margin:4px 0}
.company-workspace[data-cw-tight='1'] .cw-readiness{margin-top:5px;gap:3px}
.company-workspace[data-cw-tight='1'] .cw-job-actions{padding-top:5px}
.company-workspace[data-cw-tight='1'] .cw-job,.company-workspace[data-cw-tight='1'] .cw-work-card{padding:6px;gap:2px}
.company-workspace[data-cw-tight='1'] .cw-job-customer,.company-workspace[data-cw-tight='1'] .cw-job-people,.company-workspace[data-cw-tight='1'] .cw-work-note{display:none}
.company-workspace[data-cw-tight='1'] .cw-job-top{margin-bottom:1px;flex-shrink:0}
.company-workspace[data-cw-tight='1'] .cw-job-title{flex-shrink:0;font-size:13px;line-height:18px}
.company-workspace[data-cw-tight='1'] .cw-job-date{flex-shrink:0;font-size:11px;line-height:16px}
.company-workspace[data-cw-tight='1'] .cw-readiness{flex-shrink:0;margin:3px 0;gap:2px}
.company-workspace[data-cw-tight='1'] .cw-tag{font-size:9px;min-height:16px;padding:1px 3px}
.company-workspace[data-cw-tight='1'] .cw-job-actions{padding-top:3px}
.company-workspace[data-cw-tight='1'] .cw-job-actions button{min-height:26px;padding:4px}
@media(max-height:650px){.company-workspace{gap:7px}.company-workspace .cw-header p{display:none}.company-workspace .cw-metrics button{padding:8px 12px}.company-workspace .cw-metrics strong{font-size:23px}.company-workspace .cw-panel{padding:9px;gap:5px}.company-workspace .cw-header h2{font-size:19px}}
@media(max-width:600px){.company-workspace .cw-header h2{font-size:18px}.company-workspace .cw-head-actions button[data-cw-nav]{font-size:0;padding:8px}.company-workspace .cw-metrics{gap:6px}.company-workspace .cw-metrics button{padding:8px;align-items:center;text-align:center}.company-workspace .cw-metrics span{font-size:10px}.company-workspace .cw-metrics strong{font-size:22px}.company-workspace .cw-toolbar button{font-size:12px;padding:6px 9px}.company-workspace .cw-header p{font-size:11px}.company-workspace .cw-panel-heading .cw-tag{max-width:50%;white-space:normal;text-align:center}.company-workspace .cw-sections button{flex:1 1 0;min-width:0;white-space:normal;line-height:1.2}.company-workspace .cw-work-panel .cw-panel-heading{flex-wrap:wrap}.company-workspace .cw-work-panel .cw-panel-heading h3{flex:1 1 100%}.company-workspace .cw-work-panel .cw-panel-heading select{flex:1;min-width:100px;max-width:none}}

/* Only the new workspaces use this mobile web height chain. */
@media(max-width:700px){body:is([data-page="production"],[data-page="documents"]):not(.native-embedded){height:100dvh;overflow:hidden}body:is([data-page="production"],[data-page="documents"]):not(.native-embedded) .shell{height:calc(100dvh - 95px);min-height:0;display:flex;flex-direction:column;padding-bottom:0}body:is([data-page="production"],[data-page="documents"]) .hero{display:none}body:is([data-page="production"],[data-page="documents"]) .workspace{flex:1;min-height:0;overflow:hidden}body:is([data-page="production"],[data-page="documents"]) .workspace>[data-company-host]{height:100%;min-height:0}}

/* Web results use the full height; parameters sit beside the selected result. APK keeps its existing grid. */
html.web-ui .company-workspace[data-cw-layout="side"]{grid-template-columns:220px minmax(0,1fr);grid-template-rows:minmax(0,1fr) 22px;gap:8px 12px}
html.web-ui .company-workspace[data-cw-layout="side"]>.cw-controls{grid-column:1;grid-row:1;display:flex;flex-direction:column;gap:10px;padding:12px;min-width:0;min-height:0;overflow:hidden;border:1px solid var(--cw-line);border-radius:16px;background:#f8fbfe}
html.web-ui .company-workspace[data-cw-layout="side"]>.cw-body{grid-column:2;grid-row:1;display:block;min-width:0;min-height:0}
html.web-ui .company-workspace[data-cw-layout="side"]>.cw-source{grid-column:1/-1;grid-row:2;min-height:0}
html.web-ui .company-workspace[data-cw-layout="side"] .cw-header{align-items:flex-start;gap:7px}
html.web-ui .company-workspace[data-cw-layout="side"] .cw-header h2{font-size:17px;line-height:1.25}
html.web-ui .company-workspace[data-cw-layout="side"] .cw-header p{font-size:11px;line-height:1.3}
html.web-ui .company-workspace[data-cw-layout="side"] .cw-head-actions{gap:3px;flex-direction:column}
html.web-ui .company-workspace[data-cw-layout="side"] .cw-head-actions button{min-height:28px;padding:4px}
html.web-ui .company-workspace[data-cw-layout="side"] .cw-head-actions [data-cw-nav]{font-size:0}
html.web-ui .company-workspace[data-cw-layout="side"] .cw-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
html.web-ui .company-workspace[data-cw-layout="side"] .cw-metrics button{padding:7px;gap:2px;border-radius:10px;box-shadow:none}
html.web-ui .company-workspace[data-cw-layout="side"] .cw-metrics strong{font-size:21px;line-height:22px}
html.web-ui .company-workspace[data-cw-layout="side"] .cw-metrics span{font-size:11px;line-height:13px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
html.web-ui .company-workspace[data-cw-layout="side"] .cw-toolbar{flex-direction:column;align-items:stretch;gap:8px;min-height:0}
html.web-ui .company-workspace[data-cw-layout="side"] .cw-toolbar input{flex:none;min-height:34px;height:34px;padding:6px 9px;font-size:13px}
html.web-ui .company-workspace[data-cw-layout="side"] .cw-range{gap:5px}
html.web-ui .company-workspace[data-cw-layout="side"] .cw-range button{flex:1;min-height:28px;padding:4px 7px;font-size:12px}
html.web-ui .company-workspace[data-cw-layout="side"] .cw-sections{display:flex;flex-direction:column;flex:0 0 auto;gap:4px}
html.web-ui .company-workspace[data-cw-layout="side"] .cw-sections button{justify-content:flex-start;min-height:29px;padding:4px 8px;font-size:12px}
html.web-ui .company-workspace[data-cw-layout="side"] .cw-work-filter{display:flex;flex-direction:column;gap:4px;margin:0;font-size:11px;color:var(--cw-muted)}
html.web-ui .company-workspace[data-cw-layout="side"] .cw-work-filter[hidden]{display:none}
html.web-ui .company-workspace[data-cw-layout="side"] .cw-work-filter select{width:100%;min-width:0;height:31px;padding:5px 7px;border:1px solid var(--cw-line);border-radius:9px;background:#fff;color:var(--cw-ink);font-size:12px}
html.web-ui .company-workspace[data-cw-layout="side"] .cw-panel{height:100%;padding:10px;gap:7px}
html.web-ui .company-workspace[data-cw-layout="side"] .cw-jobs,html.web-ui .company-workspace[data-cw-layout="side"] .cw-work-grid{grid-template-columns:repeat(var(--cw-result-columns,3),minmax(0,1fr));gap:8px}
html.web-ui .company-workspace[data-cw-layout="side"] :is(.cw-job,.cw-work-card){padding:9px;border-radius:12px}
html.web-ui .company-workspace[data-cw-layout="side"] .cw-job-title{font-size:14px;line-height:18px;min-height:36px}
html.web-ui .company-workspace[data-cw-layout="side"] .cw-job-customer{margin:3px 0 6px}
html.web-ui .company-workspace[data-cw-layout="side"] .cw-job-people{margin:5px 0}
html.web-ui .company-workspace[data-cw-layout="side"] .cw-readiness{gap:3px;margin-top:5px}
html.web-ui .company-workspace[data-cw-layout="side"] .cw-tag{font-size:10px;padding:2px 4px}
html.web-ui .company-workspace[data-cw-layout="side"] .cw-work-note{-webkit-line-clamp:1;margin:4px 0;font-size:11px}
html.web-ui .company-workspace[data-cw-layout="side"] .cw-panel-heading button{min-height:27px;padding:4px 7px}
html.web-ui .company-workspace[data-cw-layout="stack"]>.cw-metrics{gap:6px}
html.web-ui .company-workspace[data-cw-layout="stack"]>.cw-metrics button{flex-direction:row;align-items:center;padding:7px 9px;gap:7px;box-shadow:none;border-radius:11px}
html.web-ui .company-workspace[data-cw-layout="stack"]>.cw-metrics strong{font-size:22px}
html.web-ui .company-workspace[data-cw-layout="stack"]>.cw-metrics span{font-size:11px;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
@media(max-height:480px){html.web-ui .company-workspace[data-cw-layout="stack"] .cw-toolbar>.cw-work-filter{grid-column:2;grid-row:1;display:flex;align-self:start;min-width:0;width:145px;height:28px;margin:0!important}html.web-ui .company-workspace[data-cw-layout="stack"] .cw-toolbar>.cw-work-filter[hidden]{display:none!important}html.web-ui .company-workspace[data-cw-layout="stack"] .cw-toolbar>.cw-work-filter>span{display:none}html.web-ui .company-workspace[data-cw-layout="stack"] .cw-work-filter select{width:100%;min-width:0;height:28px!important;min-height:28px!important;border:1px solid var(--cw-line);border-radius:8px;background:#fff;color:var(--cw-ink);padding:3px 6px!important;font:inherit;font-size:12px!important}}
