.entity-work-view{flex:1;min-height:0;display:flex;flex-direction:column;gap:12px;padding:20px 22px 18px;background:#f3f7f8;overflow:hidden;color:#18384c}
.entity-work-header{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}.entity-work-header h1{margin:2px 0 4px;font-size:21px;line-height:1.3;color:#183c54}.entity-work-header p{margin:0;color:#698193;font-size:12px;line-height:1.5}.entity-work-eyebrow{display:block;font-size:10px;letter-spacing:.09em;font-weight:750;color:#6b8796}.entity-work-actions{display:flex;gap:6px;flex-wrap:wrap;flex-shrink:0}.entity-work-note{margin:0;padding:10px 13px;border:1px solid #dce9e8;border-radius:9px;background:#fff;color:#647d8c;font-size:11px;line-height:1.6}
.entity-work-board{display:flex;align-items:stretch;gap:14px;overflow:auto;min-height:0;flex:1;padding:0 2px 8px;scrollbar-color:#bdcfd4 transparent}.entity-work-entity{flex:0 0 340px;min-width:0;align-self:stretch;overflow:auto;border:1px solid #d4e2e5;border-radius:12px;background:#fff;box-shadow:0 3px 12px #244f6010}.entity-work-entity>header{position:sticky;top:0;z-index:2;padding:17px 16px 14px;background:#f0f6e9;border-bottom:1px solid #d8e5d1}.entity-work-entity>header h2{margin:4px 0 11px;font-size:17px;line-height:1.3;color:#345526}.entity-work-entity.has-overlap>header{box-shadow:inset 0 3px #bd5551}.entity-work-stats{display:flex;flex-wrap:wrap;gap:5px}.entity-work-stats>span{padding:5px 7px;border-radius:5px;background:#fff;color:#58737d;font-size:10px;line-height:1.4}.entity-work-stats strong{color:#164c5c;font-size:12px}.entity-work-overlap-count,.entity-work-stats>.entity-work-overlap-count{background:#fce9e7;color:#a54039;font-size:10px;font-weight:700;padding:4px 6px;border-radius:5px;white-space:nowrap}
.entity-work-areas{display:flex;flex-direction:column;gap:10px;padding:15px 13px 18px}.entity-work-branch{min-width:0}.entity-work-branch>summary{list-style:none;cursor:pointer;display:flex;flex-direction:column;gap:6px;min-width:0;padding:11px 12px;border:1px solid #d8e6ea;border-left:3px solid #3f728c;border-radius:8px;background:#f8fbfc;transition:border-color .15s,box-shadow .15s}.entity-work-branch>summary::-webkit-details-marker{display:none}.entity-work-branch>summary:focus-visible,.entity-work-review:focus-visible{outline:3px solid #37a798;outline-offset:2px}.entity-work-branch>summary::after{content:'+';align-self:flex-end;color:#75909d;font-size:15px;line-height:0}.entity-work-branch[open]>summary::after{content:'−'}.entity-work-node-title{display:flex;align-items:center;gap:6px;min-width:0;flex-wrap:wrap}.entity-work-node-title strong{flex:1 1 100%;min-width:0;font-size:12px;line-height:1.45;overflow-wrap:anywhere;color:#24536c}.entity-work-level{font-size:9px;font-weight:750;letter-spacing:.03em;color:#6d8b9b}.entity-work-metrics{color:#728a97;font-size:10px;line-height:1.5}.entity-work-area>summary{border-left-color:#23637e;background:#edf5f8}.entity-work-group>summary{border-left-color:#8eb5c4;background:#fff}.entity-work-group>summary strong{color:#345b70}.entity-work-groups,.entity-work-leaves{display:flex;flex-direction:column;gap:8px;list-style:none;margin:0 0 0 14px;padding:10px 0 0 15px;border-left:1px solid #cbdde2}.entity-work-group,.entity-work-leaf{position:relative}.entity-work-group::before,.entity-work-leaf::before{content:'';position:absolute;width:15px;left:-15px;top:17px;border-top:1px solid #cbdde2}.entity-work-leaf{padding:10px 11px;background:#fff;border:1px solid #dbe8eb;border-radius:7px}.entity-work-leaf-name{font-size:11px;font-weight:700;color:#26516a;line-height:1.5;overflow-wrap:anywhere}.entity-work-leaf-name small{margin-left:5px;font-size:9px;color:#8b7777}.entity-work-leaf.has-overlap{border-color:#d77a70;background:#fff6f4;box-shadow:inset 3px 0 #c9635a}.entity-work-review{display:inline-block;margin-top:7px;padding:4px 6px;border:0;border-radius:4px;background:#fce5e1;color:#a33e37;font-size:10px;font-weight:700;text-align:left;cursor:pointer}.entity-work-review:hover{background:#f8d5cf}.entity-work-empty{margin:14px;padding:13px;border:1px dashed #cddfe1;border-radius:8px;color:#78909b;font-size:11px;line-height:1.5}
.entity-work-board.is-single .entity-work-entity{flex:1;min-width:0}.entity-work-board.is-single .entity-work-areas{display:grid;grid-template-columns:repeat(auto-fill,minmax(255px,1fr));align-items:start;gap:12px}.entity-work-board.is-single .entity-work-entity>header{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.entity-work-board.is-single .entity-work-entity>header h2{margin:3px auto 3px 0}
@media(max-width:760px){.entity-work-view{padding:14px 12px;gap:9px}.entity-work-header{align-items:flex-start;flex-direction:column}.entity-work-header h1{font-size:18px}.entity-work-entity{flex-basis:290px}.entity-work-board.is-single .entity-work-areas{grid-template-columns:1fr}}

/* Keep the viewport fixed while the entity cards and their contents scale. */
.entity-work-board{display:block;overflow:auto;min-height:0;flex:1;padding:0 2px 8px}
.entity-work-canvas{display:flex;align-items:stretch;gap:14px;width:max-content;min-width:100%;height:100%}
.entity-work-entity{height:100%;box-sizing:border-box}
.entity-work-canvas.is-single{width:100%}
.entity-work-entity>.entity-work-areas{zoom:var(--work-zoom)}
.entity-work-canvas.is-single .entity-work-entity{flex:1;min-width:0}
.entity-work-canvas.is-single .entity-work-areas{display:grid;grid-template-columns:repeat(auto-fill,minmax(255px,1fr));align-items:start;gap:12px}
.entity-work-canvas.is-single .entity-work-entity>header{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.entity-work-canvas.is-single .entity-work-entity>header h2{margin:3px auto 3px 0}
.entity-work-zoom{display:inline-flex;align-items:center;border:1px solid #d3e3e4;border-radius:7px;background:#fff;overflow:hidden}
.entity-work-zoom .icon-only{width:30px;min-width:30px;height:30px;min-height:30px;padding:0;border:0;border-radius:0;color:#41687b}
.entity-work-zoom .icon-only .icon{width:14px;height:14px}
.entity-work-zoom-value{min-width:48px;height:30px;border:0;border-right:1px solid #e2ebed;border-left:1px solid #e2ebed;background:#fff;color:#315a6b;font-size:11px;font-weight:700;cursor:pointer}
.entity-work-zoom-value:hover,.entity-work-zoom .icon-only:hover{background:#eef6f5}
.entity-work-zoom-value:focus-visible,.entity-work-zoom .icon-only:focus-visible{outline:2px solid #188b7c;outline-offset:-2px}
.entity-work-zoom-hint{color:#78909a;font-size:10px;line-height:1}
.entity-work-legend{display:flex;align-items:center;flex-wrap:wrap;gap:6px;color:#6c828c;font-size:10px;line-height:1.4}
.entity-work-legend strong{color:#6f3732;font-size:10px}
.entity-work-legend span{min-width:28px;padding:3px 7px;border:1px solid;border-radius:5px;text-align:center;color:#702b25;font-weight:700}
.entity-work-legend small{font-size:10px;color:#708791}
.entity-work-legend .overlap-level-1{background:#fff1ee;border-color:#e9a99e}
.entity-work-legend .overlap-level-2{background:#fbd6cf;border-color:#da8379}
.entity-work-legend .overlap-level-3{background:#f2aaa1;border-color:#c45c51}
.entity-work-leaf.has-overlap.overlap-level-1,.entity-work-branch.has-overlap.overlap-level-1>summary{background:#fff1ee;border-color:#e9a99e;border-left-color:#d57f72}
.entity-work-leaf.has-overlap.overlap-level-2,.entity-work-branch.has-overlap.overlap-level-2>summary{background:#fbd6cf;border-color:#da8379;border-left-color:#c65d53}
.entity-work-leaf.has-overlap.overlap-level-3,.entity-work-branch.has-overlap.overlap-level-3>summary{background:#f2aaa1;border-color:#c45c51;border-left-color:#a93730}
.entity-work-leaf.has-overlap.overlap-level-1{box-shadow:inset 3px 0 #d57f72}
.entity-work-leaf.has-overlap.overlap-level-2{box-shadow:inset 3px 0 #c65d53}
.entity-work-leaf.has-overlap.overlap-level-3{box-shadow:inset 3px 0 #a93730}
.entity-work-entity.overlap-level-1>header{background:#fff1ee;box-shadow:inset 0 3px #d57f72}
.entity-work-entity.overlap-level-2>header{background:#fbd6cf;box-shadow:inset 0 3px #c65d53}
.entity-work-entity.overlap-level-3>header{background:#f2aaa1;box-shadow:inset 0 3px #a93730}
.entity-work-entity.has-overlap>header h2{color:#762f29}
.entity-work-entity.has-overlap>header .entity-work-eyebrow,.entity-work-branch.has-overlap>summary .entity-work-level,.entity-work-branch.has-overlap>summary .entity-work-metrics,.entity-work-leaf.has-overlap>.entity-work-metrics,.entity-work-branch.has-overlap>summary::after{color:#5b312f}
.entity-work-branch.has-overlap>summary strong,.entity-work-leaf.has-overlap .entity-work-leaf-name{color:#65302b}
@media(max-width:760px){.entity-work-canvas.is-single .entity-work-areas{grid-template-columns:1fr}}

/* Scroll the work view as a whole, with the app navigation above it fixed. */
.entity-work-view{overflow-y:auto;overflow-x:hidden}
.entity-work-header,.entity-work-note,.entity-work-legend,.entity-work-zoom-hint{flex-shrink:0}
.entity-work-board{flex:1 0 auto;min-height:300px;overflow-x:auto;overflow-y:hidden}
.entity-work-canvas{height:auto;min-height:100%}
.entity-work-entity{height:auto;overflow:visible}
.entity-work-entity>header{position:static}
