/* The matrix is a 36-unit drawing on one continuous blueprint, not a panel. */
.pl-shell{--pl-blue:#234fda;--pl-faint:#cfddff;--pl-indent:clamp(16px,2.55vw,50px);position:relative;isolation:isolate;flex:1;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden;color:#fff;background:var(--pl-blue)}
.pl-shell *,.pl-shell *:before,.pl-shell *:after{box-sizing:border-box}
.pl-page{
 --pl-unit:clamp(24px,calc((100cqw - var(--pl-indent) - var(--pl-indent)) / 36),60px);
 --pl-project-width:calc(6 * var(--pl-unit));--pl-stage-width:calc(3 * var(--pl-unit));--pl-row-height:calc(2 * var(--pl-unit));
 --pl-grid:linear-gradient(90deg,#e7efff17 1px,transparent 1px),linear-gradient(#e7efff17 1px,transparent 1px);
 height:100%;min-width:0;display:flex;flex-direction:column;overflow:auto;padding:clamp(18px,2.1vw,32px) var(--pl-indent) 18px;
 background-image:var(--pl-grid);background-size:var(--pl-unit) var(--pl-unit);background-position:var(--pl-gx,0px) var(--pl-gy,0px);
 scrollbar-width:thin;scrollbar-color:#8daaef transparent;
}
.pl-board{min-height:0;display:flex;flex-direction:column;flex:0 1 auto;min-width:0}
.pl-sr-count{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.pl-legend{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:6px 18px;min-width:0;flex:none;padding:2px 0 14px;color:#edf3ff;font-size:.81rem;line-height:1.45}
.pl-task-key,.pl-node-key{display:flex;align-items:center;flex-wrap:wrap;gap:6px clamp(9px,.95vw,17px)}
.pl-legend .pl-count-total{display:inline-flex;align-items:baseline;gap:6px;margin-right:2px;font-size:.86rem;font-weight:600;color:#fff}
.pl-legend span{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.pl-legend b{font:550 .85rem var(--font-mono,monospace);font-variant-numeric:tabular-nums;color:#fff}
.pl-node-key{gap:6px 11px;color:var(--pl-faint)}.pl-node-key small{font-size:inherit}
.pl-legend .pl-dot{height:8px;width:8px;box-shadow:none}
.pl-scroll{position:relative;isolation:isolate;flex:0 1 auto;min-height:var(--pl-row-height);overflow:auto;overscroll-behavior:contain;scrollbar-color:#9cb6f4 transparent;scrollbar-width:thin;scrollbar-gutter:stable;background:transparent;border:0;border-radius:0}
.pl-shell .pl-table{width:calc(var(--pl-unit) * 36);min-width:calc(var(--pl-unit) * 36);margin:0;border-collapse:separate;border-spacing:0;table-layout:fixed;color:#fff;background:transparent;border:0;line-height:1.32}
.pl-table .pl-name-width{width:var(--pl-project-width)}.pl-table col:not(.pl-name-width){width:var(--pl-stage-width)}
.pl-shell .pl-table tr,.pl-shell .pl-table th,.pl-shell .pl-table td{height:var(--pl-row-height);padding:0;margin:0;border:0;text-align:center;vertical-align:middle;color:white;background:transparent}
.pl-shell .pl-table thead th{position:sticky;top:0;z-index:2;font-weight:500}
.pl-table thead small,.pl-table thead b{display:block;white-space:nowrap}
.pl-table thead small{font:500 11px/1.25 var(--font-mono,monospace);color:#c8d7ff;letter-spacing:.06em}
.pl-table thead b{font-size:.9rem;line-height:1.35;margin-top:2px;font-weight:600}
.pl-shell .pl-table .pl-project-head,.pl-shell .pl-table .pl-project{text-align:left;position:sticky;left:0;padding:0 clamp(5px,.5vw,10px);z-index:1}
.pl-shell .pl-table .pl-project-head{z-index:3}
.pl-table .pl-project-head small{margin-top:2px;font-family:inherit;letter-spacing:0;font-size:.73rem}
.pl-shell .pl-table .pl-project{font-weight:400}
/* Sticky cells mask moving text/nodes with the *same* page color and grid phase.
   All regular column and row offsets are integral units, so only the frozen axis needs adjustment. */
.pl-shell .pl-table thead th,.pl-shell .pl-table .pl-project{background-color:var(--pl-blue);background-image:var(--pl-grid);background-size:var(--pl-unit) var(--pl-unit)}
.pl-shell .pl-table thead th{background-position:0 var(--pl-frozen-y,0px)}
.pl-shell .pl-table .pl-project{background-position:var(--pl-frozen-x,0px) 0}
.pl-shell .pl-table .pl-project-head{background-position:var(--pl-frozen-x,0px) var(--pl-frozen-y,0px)}
.pl-project-name{display:block;width:100%;text-align:left;background:none;border:0;color:white;font-family:inherit;font-size:clamp(.87rem,1.08vw,.99rem);font-weight:600;line-height:1.4;padding:0;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.pl-project-name:hover,.pl-extras:hover{text-decoration:underline;text-underline-offset:3px}
.pl-meta,.pl-progress{display:flex;align-items:center;min-width:0;white-space:nowrap}
.pl-meta{margin:3px 0 0;gap:8px}.pl-progress{gap:5px;flex:none;color:#dae7ff;font:400 .73rem/1.35 var(--font-mono,monospace)}
.pl-meter{height:3px;width:clamp(18px,2vw,38px);overflow:hidden;border-radius:3px;background:#ffffff36}
.pl-meter i{display:block;height:100%;background:#c5e5ff;border-radius:inherit}
.pl-extras{display:block;min-width:0;text-align:left;font:inherit;font-size:.73rem;line-height:1.35;background:none;border:0;padding:0;margin:0;color:#e1eaff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.pl-extra-short{display:none}
.pl-shell .pl-table .pl-track{position:relative;padding:0}
.pl-track>button{position:relative;width:100%;height:var(--pl-row-height);min-height:0;border:0;display:flex;align-items:center;justify-content:center;background:transparent;color:inherit;cursor:pointer}
.pl-dot{--pl-dot:#cbd5e1;display:inline-block;flex:0 0 auto;width:11px;height:11px;border:1px solid #ffffffe0;border-radius:50%;background:var(--pl-dot);box-shadow:0 0 6px var(--pl-dot);position:relative}
.pl-track .pl-dot{width:14px;height:14px;box-shadow:0 0 10px -1px var(--pl-dot)}
.pl-state-skipped,.pl-state-cancelled{--pl-dot:#a6b1ca;background:#a6b1ca55;border-color:#bec9dd70;box-shadow:none!important}
.pl-state-unrecorded,.pl-state-unknown{--pl-dot:#bcc9df;background:transparent;border:1px dashed #c7d4f2;box-shadow:none!important}
.pl-state-waiting{--pl-dot:#fb923c}.pl-state-scheduled{--pl-dot:#a78bfa}.pl-state-active,.pl-state-partial{--pl-dot:#22d3ee}
.pl-state-partial{background:linear-gradient(90deg,transparent 50%,var(--pl-dot) 50%);border-color:var(--pl-dot)}
.pl-state-review{--pl-dot:#fbbf24}.pl-state-overdue{--pl-dot:#ff8a80}.pl-state-done{--pl-dot:#4ade80}
.pl-shell button:focus-visible,.pl-scroll:focus-visible{outline:2px solid white;outline-offset:-2px}.pl-project button:focus-visible{outline-offset:1px}
.pl-track>button:hover .pl-dot,.pl-track>button[aria-expanded=true] .pl-dot,.pl-track>button:focus-visible .pl-dot{outline:1.5px solid #e4edff;outline-offset:4px}
.pl-shell .pl-track>button:focus-visible{outline:none}
.pl-empty{padding:clamp(20px,5vh,55px) 12px;text-align:center;color:#dbe7ff}
.pl-empty strong{display:block;color:white;font-weight:550;font-size:1.1rem}.pl-empty p{line-height:1.6;margin:8px 0;font-size:.9rem}
.pl-empty button{display:inline-flex;align-items:center;justify-content:center;min-height:38px;margin-top:6px;padding:0 14px;border:1px solid white;border-radius:6px;background:white;color:#234fda;white-space:nowrap;cursor:pointer;font:inherit}
.pl-empty button:hover{box-shadow:inset 0 0 0 1px currentColor}
.pl-popup{position:absolute;z-index:12;padding:14px 16px;width:292px;max-width:calc(100% - 16px);max-height:min(72%,540px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;border:1px solid #c2d2ff;border-radius:8px;box-shadow:0 8px 35px #0b287459;color:#163978;background:#f8faff;font-size:.84rem;overflow-wrap:anywhere;text-align:left}
.pl-popup[hidden]{display:none}
.pl-popup.pl-pinned{width:344px}
.pl-pop-top,.pl-pop-title,.pl-dates>div,.pl-actual{display:flex;align-items:center;justify-content:space-between;gap:10px}
.pl-pop-top{color:#596b91;font-size:.78rem;line-height:1.5}
.pl-pop-top button{flex:none;color:#375890;width:26px;height:26px;border:0;border-radius:4px;background:#e9efff;cursor:pointer;line-height:1;font-size:1.15rem;padding:0}
.pl-pop-title{margin:4px 0 10px;line-height:1.5}.pl-pop-title strong{font-size:1.05rem;color:#193d96;line-height:1.4;font-weight:650}.pl-pop-title>span{font-size:.79rem;display:inline-flex;align-items:center;gap:6px}
.pl-popup .pl-dot{width:9px;height:9px;box-shadow:none;border-color:#6981ad77}
.pl-popup .pl-state-unrecorded{background:white;border-color:#7186a9}
.pl-dates{margin:0}.pl-dates>div,.pl-actual{font-size:.79rem;line-height:1.7;gap:6px}
.pl-dates dt,.pl-actual{color:#5a6c8c}.pl-dates dd,.pl-actual b{margin:0;text-align:right;font:500 .79rem/1.6 var(--font-mono,monospace);color:#254274}
.pl-note,.pl-task-summary{color:#536786;font-size:.78rem;line-height:1.55;margin:7px 0 0}
.pl-task-summary{color:#314e82}
.pl-task-list,.pl-depts{list-style:none;padding:0;margin:8px 0 0}
.pl-task-list>li{border-top:1px solid #dce5f7;padding:10px 0 2px;margin-top:6px}
.pl-task-name,.pl-pop-link{display:inline;text-align:left;color:#234fda;background:none;border:0;padding:0;cursor:pointer;line-height:1.5}
.pl-task-name{font-size:.91rem;font-weight:600}.pl-pop-link{margin-top:8px;font-size:.8rem}
.pl-task-name:hover,.pl-pop-link:hover{text-decoration:underline}
.pl-task-list>li>p{font-size:.77rem;margin:4px 0;color:#536786;line-height:1.55}
.pl-popup h3{line-height:1.5;font-size:.88rem;font-weight:600;margin:12px 0 0;color:#214598}
.pl-depts>li{margin:4px 0;font-size:.78rem;line-height:1.6}
.pl-popup button:focus-visible{outline:2px solid #4d72df;outline-offset:1px}
@container project-overview (max-width:1020px){.pl-extra-full{display:none}.pl-extra-short{display:inline}.pl-legend{gap:5px 12px}.pl-task-key,.pl-node-key{gap:6px 10px}}
@media(max-width:560px){
 .pl-shell{--pl-indent:10px}.pl-page{padding-top:12px;padding-bottom:12px}
 .pl-meta{gap:6px;margin-top:2px}.pl-meter{width:18px}.pl-legend{padding:0 0 8px;font-size:.75rem}.pl-legend b{font-size:.75rem}
 .pl-popup.pl-pinned{width:calc(100% - 16px);max-height:min(76%,510px)}
}
@media(max-height:560px){.pl-page{padding-top:8px;padding-bottom:9px}.pl-board{flex-shrink:0;min-height:0}.pl-scroll{max-height:max(155px,47dvh)}}

/* A shared strip scopes the denser layout to the project overview, in either view. */
.pl-shell,.blueprint-project-map{container:project-overview / inline-size}
.po-header{flex:none;position:relative;z-index:6;display:grid;grid-template-columns:max-content minmax(0,1fr) 30px;gap:12px;align-items:center;height:auto;min-height:40px;width:100%;margin:0 0 16px;padding:0;border:0;background:transparent;color:white}
.blueprint-project-map .po-header{position:absolute;inset:clamp(18px,2.1vw,32px) var(--page-gutter) auto;width:auto;margin:0}
.po-heading{display:flex;align-items:baseline;gap:10px;white-space:nowrap}
.po-heading h1{margin:0;color:#fff;font-weight:600;font-size:clamp(23px,1.65vw,29px);line-height:1.35;letter-spacing:.025em}
.po-heading>span{font:500 11px var(--font-mono,monospace);letter-spacing:.13em;color:#c7d7ff}
.po-header .compact-toolbar{margin:0;min-width:0;flex-wrap:nowrap;justify-content:flex-end;gap:clamp(12px,1.55vw,28px)}
.po-header .compact-summary{flex:0 0 auto;flex-wrap:nowrap;min-height:32px;gap:12px}
.po-header .compact-summary>div{gap:5px}.po-header .compact-summary>div+div{padding-left:12px}
.po-header .compact-tools{position:relative;flex:0 1 auto;width:auto;margin:0;gap:8px}
.po-header .compact-filter-form{flex:1 1 auto;margin:0}
.po-header .compact-search{flex:1 1 auto;width:clamp(134px,14vw,236px);height:38px}
.po-header .compact-filter-toggle{width:38px;height:38px;flex-basis:38px}
.po-header .compact-filter-panel{width:min(400px,calc(100cqw - 32px));max-height:max(145px,calc(100dvh - var(--header-height,80px) - 150px))}
.po-header .po-view,.po-header .po-close{display:inline-flex;align-items:center;justify-content:center;flex:none;gap:6px;white-space:nowrap;color:white;background:#234fda;cursor:pointer;}
.po-header .po-view{min-height:38px;padding:0 11px;border:1px solid #89a2ee;border-radius:6px;font-size:var(--text-ui);font-family:inherit}
.po-close{width:30px;height:36px;padding:0;border:0;font-size:24px;line-height:1}
.po-header .po-close{background:transparent}
.po-view:hover,.po-close:hover{box-shadow:inset 0 0 0 1px #95adf9;border-radius:5px}
.po-header button:focus-visible{outline:2px solid white;outline-offset:-3px}
.po-header .compact-filter-panel button:focus-visible{outline-color:#4d72df}
@container project-overview (max-width:950px){.po-heading>span{display:none}.po-header{gap:8px}.po-header .compact-toolbar{gap:11px}.po-header .compact-summary{gap:8px}.po-header .compact-summary>div+div{padding-left:8px}}
@container project-overview (max-width:819px){
 .po-header{grid-template-columns:minmax(max-content,1fr) auto 28px;grid-template-areas:"title stats close" "tools tools tools";gap:7px 8px;margin-bottom:12px}
 .po-heading{grid-area:title}.po-heading h1{font-size:22px}.po-close{grid-area:close}
 .po-header .compact-toolbar{display:contents}.po-header .compact-summary{grid-area:stats;justify-content:flex-end}
 .po-header .compact-tools{grid-area:tools;justify-self:end;width:100%;max-width:440px}.po-header .compact-search{width:0}
 .po-header .compact-filter-panel{max-height:max(145px,calc(100dvh - var(--header-height,80px) - 170px))}
}
@container project-overview (max-width:490px){
 .po-header{gap:5px;margin-bottom:10px}.blueprint-project-map .po-header{inset:12px 10px auto}
 .po-header .compact-summary span{font-size:13px}.po-header .compact-summary strong{font-size:14px}.po-header .compact-summary>div+div{border:0;padding-left:0}
 .po-header .po-view{padding:0 8px}.po-header .compact-tools,.po-header .compact-filter-form{gap:5px}
 .po-header .po-view,.po-header .compact-search,.po-header .compact-filter-toggle{height:36px;min-height:36px}
}
@container project-overview (max-width:364px){
 .po-header{grid-template-columns:minmax(0,1fr) 28px;grid-template-areas:"title close" "stats stats" "tools tools"}
 .po-header .compact-summary{justify-content:flex-start;min-height:24px}
}
