/* Port of demo responsive.css, board-navigation and workspace-comfort surfaces.
   The shell stays fixed; only the list viewport reveals, never its contents. */
body[data-page=tasks]:not([data-role=client]) .task-search-row{justify-content:flex-end;flex-wrap:nowrap;min-height:40px;gap:10px;margin-bottom:10px}
body[data-page=tasks]:not([data-role=client]) .task-search-row #task-search{flex:0 1 320px;width:320px;max-width:45vw;min-width:0}
body[data-page=tasks]:not([data-role=client]) .task-search-row>button{flex:none;height:40px}
.workspace-auxiliary-row{height:38px;min-height:38px;flex:none;margin-bottom:8px}
.employee-space{padding-top:0}
.employee-space>.task-rail,.employee-space>.structure-rail{position:fixed;bottom:14px;right:auto;max-height:none;display:flex;flex-direction:column;z-index:23;pointer-events:none;background:none;border:0;padding:0;box-shadow:none;overflow:visible}
.employee-space .rail-title{position:relative;z-index:2;flex:none;width:100%;height:34px;min-height:34px;padding:5px 12px;display:flex;align-items:center;justify-content:center;gap:9px;font-size:12px;font-weight:600;color:var(--text);background:var(--panel);border:1px solid var(--line);border-radius:8px;box-shadow:none;pointer-events:auto;transition:background .2s,color .2s}
.employee-space .rail-title:hover{background:var(--hover)}
.employee-space .rail-title[aria-expanded=true]{border-radius:8px 8px 0 0;border-bottom-color:transparent}
.employee-space [data-rail-toggle] svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;color:var(--muted);transition:transform .25s}
.employee-space [data-rail-toggle][aria-expanded=true] svg{transform:rotate(180deg)}
.employee-space>.task-rail>.rail-body{flex:none;display:block;box-sizing:border-box;width:100%;height:calc(var(--side-body-height) + 17px);min-height:0;max-height:none;padding:17px 0 0;margin:-17px 0 0;border:0;border-radius:0 0 8px 8px;background:var(--surface-two);overflow:clip;visibility:visible;opacity:1;pointer-events:auto;transition:height .32s cubic-bezier(.22,.61,.36,1),visibility .32s}
.employee-space>.task-rail.rail-collapsed>.rail-body{height:0;max-height:none;padding:0;opacity:1;visibility:hidden;pointer-events:none}
.employee-space .rail-inner{height:var(--side-body-height);width:100%;min-height:0;display:flex;flex-direction:column;gap:10px;padding:10px;border:1px solid var(--line);border-top:0;border-radius:0 0 8px 8px}
.employee-space .rail-tabs{display:flex;flex:none;padding:3px;gap:3px;background:var(--field);border-radius:6px}
.employee-space .rail-tabs button{flex:1;padding:7px 5px;font-size:11px;white-space:nowrap;border-radius:4px}
.employee-space .rail-search{display:flex;flex-wrap:nowrap;flex:none;gap:6px}
.employee-space .rail-search input{width:0;min-width:0;flex:1;height:36px}
.employee-space .rail-search button{flex:0 0 36px;height:36px;padding:7px}
.employee-space .rail-cards{flex:1;display:flex;flex-direction:column;gap:12px;overflow:auto;min-height:0;padding:14px 5px 12px 2px;scroll-padding-block:14px}
.employee-space .rail-cards .task-card{width:100%;flex:none}
.employee-space>.structure-rail>#structure-map{flex:none;width:100%;height:calc(var(--side-body-height) + 17px);max-height:none;margin:-17px 0 0;padding:51px 28px 42px 36px;border:0;border-radius:0 0 8px 8px;background:var(--surface-two);box-shadow:none;visibility:visible;opacity:1;pointer-events:auto;transition:opacity .3s,visibility .3s}
.employee-space>.structure-rail>#structure-map.tree-hidden{max-height:none;opacity:0;visibility:hidden;pointer-events:none}
@media(min-width:1800px){.workspace-auxiliary-row{display:none}}
@media(max-width:1799px){.employee-space .rail-body,.employee-space>.structure-rail>#structure-map{box-shadow:0 8px 22px #0002}}
@media(max-width:700px){
 .employee-space .rail-title{font-size:11px;padding:5px 6px;gap:5px}
 .employee-space>.task-rail>.rail-body,.employee-space>.structure-rail>#structure-map{width:min(380px,calc(100vw - 82px))}
 .employee-space>.structure-rail>#structure-map{align-self:flex-end}
 .employee-space .rail-inner{padding:8px}
 body[data-page=tasks]:not([data-role=client]) .task-search-row #task-search{max-width:none;flex-basis:190px}
}
@media(prefers-reduced-motion:reduce){.employee-space .rail-body,.employee-space .rail-title svg,.employee-space #structure-map{transition:none!important}}

/* Demo tree lifecycle and measured SVG routes. */
.employee-space>.structure-rail[hidden]{display:none!important}
.employee-space .demo-tree-content{position:relative;min-width:150px;color:var(--text)}
.employee-space .demo-tree-list,.employee-space .demo-tree-list ul{list-style:none;margin:0;padding:0}
.employee-space .demo-tree-list ul{margin-left:8px;padding-left:15px}
.employee-space .demo-tree-list li{position:relative;padding-bottom:12px}
.employee-space .demo-tree-list .tree-node{display:flex;align-items:flex-start;gap:9px;height:auto;min-height:52px;width:100%;padding:14px 6px 6px;font-size:12px;font-weight:500;line-height:1.45;color:var(--text);background:none;border:0;border-radius:0;opacity:.8;text-shadow:0 1px 5px var(--bg),0 0 10px var(--bg)}
.employee-space .demo-tree-list .tree-node:hover,.employee-space .demo-tree-list .tree-node.active{opacity:1}
.employee-space .demo-tree-list .tree-node>span:last-child{min-width:0;overflow-wrap:anywhere}
.employee-space .tree-node .tree-anchor{visibility:hidden;display:block;flex:none;width:14px;height:14px;margin-top:4px}
.employee-space .demo-tree-list .tree-node small{display:block;margin-top:3px;color:var(--muted);font-size:10px;font-weight:400}
.employee-space .demo-tree-graphics{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:2}
.employee-space .demo-tree-route{fill:none;stroke:#e4eaf1;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;opacity:.46}
.employee-space .demo-tree-point{--node-color:var(--blue);fill:var(--bg);stroke:color-mix(in srgb,var(--node-color) 72%,var(--bg));stroke-width:3}
.employee-space .demo-tree-point.status-in_progress{--node-color:var(--yellow)}
.employee-space .demo-tree-point.status-done{--node-color:var(--green)}
.employee-space .demo-tree-point.active{fill:var(--node-color);stroke:var(--node-color);filter:drop-shadow(0 0 4px var(--node-color)) drop-shadow(0 0 12px var(--node-color)) drop-shadow(0 0 21px color-mix(in srgb,var(--node-color) 55%,transparent))}
body.light .employee-space .demo-tree-route{stroke:#72747d;opacity:.55}
body.light .employee-space .demo-tree-point{--node-color:#70a8ed;stroke:var(--node-color)}
body.light .employee-space .demo-tree-point.status-in_progress{--node-color:#e4bc45}
body.light .employee-space .demo-tree-point.status-done{--node-color:#65bc89}
body.light .employee-space .demo-tree-point.active{filter:drop-shadow(0 0 4px var(--node-color)) drop-shadow(0 0 14px color-mix(in srgb,var(--node-color) 45%,transparent))}
