/* Sliding navigation leaves the board the entire workspace width. */
.layout{grid-template-columns:minmax(0,1fr)}
.layout .sidebar{position:fixed;inset:0 auto 0 0;width:280px;max-width:90vw;height:100dvh;z-index:121;transform:translateX(-105%);transition:transform .2s ease;overflow-y:auto;box-shadow:8px 0 30px #142b4320;padding-top:18px;box-sizing:border-box}
.layout .sidebar.drawer-open{transform:translateX(0)}
.drawer-close{align-self:flex-end;color:white;background:transparent;margin-bottom:12px}
.drawer-shade{position:fixed;inset:0;z-index:120;border:0;background:#10243b80;cursor:pointer}
.drawer-shade[hidden]{display:none}
.layout .sidebar .nav{display:flex;flex-direction:column;overflow:visible;align-items:stretch}
.layout .sidebar .nav button{width:100%;justify-content:flex-start;text-align:left;font-size:.9rem}
.layout .sidebar .nav .count{margin-left:auto}
.layout .sidebar .service-nav{grid-template-columns:1fr}
.ec-periods{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.wb-weekbar,.wb-filters{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.wb-weekbar label{min-width:260px}
.wb-weekbar select{font-weight:600}
.wb-search{flex:1;max-width:460px;min-width:200px}
.wb-filter{position:relative;min-width:160px;align-self:flex-end}
.wb-filter summary{cursor:pointer;padding:11px 15px;border:1px solid var(--line);border-radius:8px;background:white;font-size:.88rem}
.wb-filter-options{position:absolute;top:100%;left:0;background:white;box-shadow:var(--shadow);border:1px solid var(--line);padding:12px;min-width:250px;max-width:340px;max-height:350px;overflow:auto;z-index:8;border-radius:8px}
.wb-filter-options .checkbox{margin:10px 0;white-space:normal;word-break:break-word}
.wb-count{font-size:.85rem;color:var(--muted)}
.wb-columns{display:grid;grid-template-columns:repeat(6,minmax(190px,1fr));gap:12px;overflow:auto;align-items:start;padding-bottom:18px;scroll-snap-type:x proximity}
.wb-column{background:#e9eef5;border:1px solid #dde5ef;border-radius:12px;min-height:340px;scroll-snap-align:start}
.wb-column h2{font-size:.84rem;line-height:1.4;padding:15px 12px;margin:0;min-height:65px;box-sizing:border-box;display:flex;justify-content:space-between;gap:8px;border-top:3px solid #7e97b4;border-radius:11px 11px 0 0}
.wb-column h2 span{font-weight:400;color:var(--muted)}
.wb-column[data-week-drop="working"] h2{border-color:#347ab9}
.wb-column[data-week-drop="clarify"] h2{border-color:#bc8837}
.wb-column[data-week-drop="external"] h2{border-color:#8f6fba}
.wb-column[data-week-drop="review"] h2{border-color:#d18957}
.wb-column[data-week-drop="done"] h2{border-color:#39846b}
.wb-column-cards{padding:0 8px 12px;display:grid;gap:10px}
.wb-card{border:1px solid #d8e1ed;border-radius:8px;background:white;padding:12px;box-shadow:0 2px 5px #162e4806;cursor:grab;min-width:0;overflow-wrap:anywhere}
.wb-card:active{cursor:grabbing}
.wb-card small{font-size:.67rem;color:var(--muted);display:block;line-height:1.5}
.wb-card-title{border:0;padding:7px 0 2px;background:transparent;color:var(--ink);font-size:.9rem;font-weight:650;text-align:left;line-height:1.4;cursor:pointer;width:100%}
.wb-card p{font-size:.77rem;line-height:1.5;margin:7px 0;white-space:pre-wrap}
.wb-card .wb-next{color:#4e6277}
.wb-note{border-left:2px solid #ae8e51;padding-left:7px}
.wb-result{color:var(--green)}
.wb-assignee{display:flex;align-items:center;gap:7px;padding:10px 0;font-size:.75rem}
.wb-avatar{border-radius:50%;background:#edf2fa;color:var(--blue);min-width:25px;height:25px;display:grid;place-items:center;font-size:.6rem;font-weight:650}
.wb-card footer{border-top:1px solid var(--line);padding-top:9px;display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:.65rem;color:var(--muted);flex-wrap:wrap}
.wb-card footer .btn{font-size:.67rem;padding:5px}
.wb-empty{font-size:.78rem;color:var(--muted);padding:20px 8px;text-align:center}
.wb-pool{margin-top:25px;padding:18px;background:white;border:1px solid var(--line);border-radius:12px}
.wb-pool>summary{cursor:pointer;font-weight:600}
.wb-pool-rows article{display:flex;justify-content:space-between;align-items:center;gap:16px;border-top:1px solid var(--line);padding:13px 0}
.wb-pool-rows small{display:block;color:var(--muted);font-size:.75rem;margin-top:5px}
.wb-pool-pager{display:flex;align-items:center;gap:8px;padding:15px 0;font-size:.82rem}
.wb-pool label{margin:15px 0}
#week-entry-form .modal-body>label,#week-add-form .modal-body>label{margin:14px 0}
.wb-compare-error{color:var(--danger)}
@media(max-width:760px){.wb-columns{grid-template-columns:repeat(6,minmax(260px,1fr))}.wb-weekbar label{min-width:0;width:100%}.wb-filters{gap:8px}.wb-filter{min-width:130px}.wb-filter-options{position:fixed;left:16px;right:16px;top:22vh;max-width:none;min-width:0;max-height:60vh;z-index:30;box-shadow:0 15px 60px #142b4350}.wb-pool-rows article{align-items:flex-start;flex-direction:column}.layout .topbar{height:auto;min-height:64px;padding:12px 16px;flex-wrap:wrap}.layout .topbar .context{display:none}.wb-search{max-width:none}.layout .sidebar .nav button{flex-wrap:nowrap}}
@media(prefers-reduced-motion:reduce){.layout .sidebar{transition:none}}
@media print{.layout .sidebar,.drawer-shade,#workspace-menu-toggle,.wb-filters,.wb-weekbar,.wb-pool{display:none}.wb-columns{overflow:visible;grid-template-columns:repeat(3,minmax(0,1fr))}.wb-card{break-inside:avoid}}
