/* Plane task workbench: scoped to the schedule and metric explanation. */
.gw-active .gs-months,.gw-active .gs-plan,.gw-active .gs-workbench,.gw-active .gs-scope,.gw-active .gm-scope{--gs-line:var(--line,#e4e7ec);--gs-muted:var(--muted,#626c7a);--gs-blue:#006b94;--gs-selected:#edf6fb;--gs-surface:var(--surface,#fff);color:var(--text,#20252c)}
.gw-active .gs-months{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0;margin:0 0 28px;border:1px solid var(--gs-line);border-radius:10px;overflow:hidden;background:var(--gs-surface)}
.gw-active .gs-month{appearance:none;display:flex;flex-direction:column;gap:9px;min-width:0;min-height:108px;padding:16px;text-align:left;border:0;border-right:1px solid var(--gs-line);border-bottom:1px solid var(--gs-line);background:transparent;color:inherit;cursor:pointer;font:inherit;border-radius:0;box-shadow:none}
.gw-active .gs-month:nth-child(6n){border-right:0}.gw-active .gs-month:nth-last-child(-n+6){border-bottom:0}
.gw-active .gs-month>span{display:flex;justify-content:space-between;gap:8px;align-items:baseline}.gw-active .gs-month strong{font-size:14px;font-weight:600}.gw-active .gs-month time,.gw-active .gs-month small{font-size:12px;color:var(--gs-muted)}
.gw-active .gs-month:hover{background:var(--gs-selected)}.gw-active .gs-month[aria-pressed=true]{background:var(--gs-selected);box-shadow:inset 0 -2px var(--gs-blue)}
.gw-active .gs-month-status{font-size:12px;font-weight:500;line-height:20px;width:fit-content;white-space:nowrap;color:var(--gs-muted)}
.gw-active .gs-month-status.current{color:#006b94}.gw-active .gs-month-status.next{color:#826021}.gw-active .gs-month-status.future{color:var(--gs-muted)}
.gw-active .gs-plan{margin:0 0 28px;border-bottom:1px solid var(--gs-line);padding:0 0 24px}
.gw-active .gs-plan-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:24px}
.gw-active .gs-plan-heading h2,.gw-active .gs-workbench-heading h2{margin:0;font-size:18px;font-weight:600;line-height:1.5}
.gw-active .gs-plan-heading p{margin:6px 0 0;font-size:12px;color:var(--gs-muted)}
.gw-active .gs-plan-heading>.gs-month-status{padding:3px 10px;background:var(--gs-selected);border-radius:5px}
.gw-active .gs-brief{display:grid;grid-template-columns:1fr 1.25fr 1fr;gap:32px}
.gw-active .gs-brief h3,.gw-active .gs-detail h3{margin:0 0 12px;font-size:13px;font-weight:600}
.gw-active .gs-brief p{margin:8px 0 0;color:var(--gs-muted);font-size:13px;line-height:1.75;max-width:65ch}
.gw-active .gs-brief .gs-objective{color:inherit;font-size:15px;line-height:1.75;margin:0}
.gw-active .gs-brief ul{padding-left:17px;margin:0;color:var(--gs-muted);font-size:13px;line-height:1.8}.gw-active .gs-brief li+li{margin-top:6px}
.gw-active .gs-quantities>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px}
.gw-active .gs-quantities>div>span{display:flex;flex-direction:column;gap:5px;font-size:12px;color:var(--gs-muted)}
.gw-active .gs-quantities strong{font-size:23px;font-weight:600;color:var(--text,#20252c);line-height:1.2;font-variant-numeric:tabular-nums}.gw-active .gs-quantities strong small{font-size:12px;font-weight:400;margin-left:5px}
.gw-active .gs-workbench-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin:0 0 16px}.gw-active .gs-workbench-heading>span{font-size:12px;color:var(--gs-muted)}
.gw-active .gs-workbench{border:1px solid var(--gs-line);border-radius:10px;overflow:hidden;background:var(--gs-surface)}.gw-active .gs-workbench-heading{padding:20px 20px 0}
.gw-active .gs-status-tabs{display:flex;gap:4px;flex-wrap:wrap;padding:0 16px 14px;border-bottom:1px solid var(--gs-line)}
.gw-active .gs-status-tabs button{display:flex;gap:7px;align-items:center;border:0;background:transparent;color:var(--gs-muted);padding:7px 9px;font:inherit;font-size:13px;border-radius:5px;cursor:pointer}
.gw-active .gs-status-tabs button[aria-pressed=true]{background:var(--gs-selected);color:var(--gs-blue);font-weight:600}.gw-active .gs-status-tabs button>span{font-size:12px;font-weight:400}
.gw-active .gs-split{display:grid;grid-template-columns:minmax(260px,35%) minmax(0,1fr);align-items:stretch;min-height:550px}
.gw-active .gs-task-list{border-right:1px solid var(--gs-line);max-height:790px;overflow-y:auto;overscroll-behavior:contain}
.gw-active .gs-task{display:block;width:100%;background:transparent;color:inherit;text-align:left;cursor:pointer;padding:18px 20px;border:0;border-bottom:1px solid var(--gs-line);border-radius:0;box-shadow:none;font:inherit}
.gw-active .gs-task:hover{background:var(--gs-selected)}.gw-active .gs-task[aria-pressed=true]{background:var(--gs-selected)}
.gw-active .gs-task-top,.gw-active .gs-task-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:var(--gs-muted)}
.gw-active .gs-task>strong{display:block;margin-top:10px;font-size:14px;font-weight:500;line-height:1.6;overflow-wrap:anywhere}.gw-active .gs-task>p{font-size:12px;color:var(--gs-muted);margin:6px 0 12px;line-height:1.5}
.gw-active .gs-status{font-size:12px;white-space:nowrap;display:inline-flex;gap:5px;align-items:center;color:var(--gs-muted)}
.gw-active .gs-status:before{content:'';width:7px;height:7px;border-radius:50%;border:1px solid currentColor;box-sizing:border-box;flex-shrink:0}
.gw-active .gs-status.doing{color:#006b94}.gw-active .gs-status.doing:before{background:currentColor}.gw-active .gs-status.review{color:#88621d}.gw-active .gs-status.review:before{background:currentColor}.gw-active .gs-status.done{color:#237453}.gw-active .gs-status.done:before{background:currentColor}
.gw-active .gs-detail{padding:24px 32px;min-width:0;max-height:790px;overflow-y:auto;overscroll-behavior:contain}.gw-active .gs-detail>header{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:var(--gs-muted);margin:0 0 18px}
.gw-active .gs-detail h2{margin:0 0 12px;font-size:21px;line-height:1.55;font-weight:600;overflow-wrap:anywhere}.gw-active .gs-detail p{font-size:14px;line-height:1.8;margin:8px 0;color:var(--gs-muted);max-width:70ch;overflow-wrap:anywhere}
.gw-active .gs-detail section{margin-top:24px}.gw-active .gs-detail ol,.gw-active .gs-detail ul{padding-left:19px;font-size:14px;line-height:1.9;margin:0;overflow-wrap:anywhere}.gw-active .gs-detail>button{margin-top:24px;gap:6px}.gw-active .gs-detail>button svg{width:14px;height:14px}
.gw-active .gs-properties{display:grid;grid-template-columns:1fr 1fr;gap:16px 24px;margin:24px 0;padding:20px 0;border-top:1px solid var(--gs-line);border-bottom:1px solid var(--gs-line)}.gw-active .gs-properties>div{display:flex;gap:16px;font-size:13px;align-items:baseline}.gw-active .gs-properties dt{color:var(--gs-muted);white-space:nowrap}.gw-active .gs-properties dd{margin:0;overflow-wrap:anywhere}
.gw-active .gs-detail .gs-blockers{padding:16px;background:var(--soft,#f6f7f9);border-radius:6px}.gw-active .gs-blockers ul{color:var(--gs-muted);font-size:13px}
.gw-active .gs-empty{padding:28px 20px;color:var(--gs-muted)}.gw-active .gs-empty h3{font-size:14px;font-weight:500}.gw-active .gs-empty p{font-size:13px;line-height:1.8}
.gw-active .gs-scope{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0 18px;font-size:13px}.gw-active .gs-scope>span{display:flex;gap:8px;align-items:center}.gw-active .gs-scope svg{width:16px;height:16px;flex-shrink:0}
.gw-active .gm-scope{border-top:1px solid var(--gs-line);border-bottom:1px solid var(--gs-line);padding:22px 0;margin:0 0 24px;outline:0}.gw-active .gm-scope header{display:flex;align-items:center;justify-content:space-between;gap:12px}.gw-active .gm-scope h2{font-size:18px;margin:0}.gw-active .gm-goal{font-size:15px;line-height:1.75;margin:12px 0}.gw-active .gm-explanation{display:grid;grid-template-columns:1.5fr 1fr;gap:24px}.gw-active .gm-explanation p{margin:0;font-size:13px;color:var(--gs-muted);line-height:1.8}.gw-active .gm-explanation strong{display:block;color:var(--text,#20252c);font-weight:500;margin-bottom:5px}.gw-active .gm-scope footer{display:flex;gap:20px;flex-wrap:wrap;margin-top:18px;font-size:12px;color:var(--gs-muted)}
.gw-active .gm-unrelated{opacity:.55}.gw-active .gm-phase-count{font-size:12px;font-weight:400}.gw-active .gm-stream-preview{font-size:12px;line-height:1.6;margin:10px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--muted,#626c7a)}
.gw-active .gs-month:focus-visible,.gw-active .gs-task:focus-visible,.gw-active .gs-status-tabs button:focus-visible{outline:2px solid var(--gs-blue);outline-offset:-3px}
@media(max-width:1200px){.gw-active .gs-brief{grid-template-columns:1fr 1fr;gap:24px}.gw-active .gs-quantities{grid-column:1/-1}.gw-active .gs-quantities>div{grid-template-columns:repeat(4,minmax(0,1fr))}.gw-active .gs-month{padding:12px}.gw-active .gs-month>span{flex-direction:column;gap:4px}.gw-active .gs-detail{padding:24px}.gw-active .gs-properties{grid-template-columns:1fr}}
@media(max-width:700px){.gw-active .gs-months{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:24px}.gw-active .gs-month:nth-child(6n){border-right:1px solid var(--gs-line)}.gw-active .gs-month:nth-child(3n){border-right:0}.gw-active .gs-month:nth-last-child(-n+6){border-bottom:1px solid var(--gs-line)}.gw-active .gs-month:nth-last-child(-n+3){border-bottom:0}.gw-active .gs-month{min-height:100px}.gw-active .gs-brief{grid-template-columns:1fr;gap:24px}.gw-active .gs-quantities{grid-column:auto}.gw-active .gs-quantities>div{grid-template-columns:repeat(2,minmax(0,1fr))}.gw-active .gs-plan-heading h2{font-size:17px}.gw-active .gs-workbench-heading{display:block;padding:16px 16px 0}.gw-active .gs-workbench-heading>span{display:block;margin-top:6px}.gw-active .gs-split{grid-template-columns:1fr;min-height:0}.gw-active .gs-task-list{max-height:340px;border-right:0;border-bottom:1px solid var(--gs-line)}.gw-active .gs-task{padding:16px}.gw-active .gs-detail{max-height:none;padding:24px 16px}.gw-active .gs-detail h2{font-size:18px}.gw-active .gs-status-tabs{padding:0 10px 12px;gap:0}.gw-active .gs-status-tabs button{padding:7px;font-size:12px;gap:5px}.gw-active .gs-scope{align-items:flex-start;flex-direction:column;gap:10px}.gw-active .gm-explanation{grid-template-columns:1fr;gap:16px}.gw-active .gm-scope header{align-items:flex-start}.gw-active .gm-scope h2{font-size:16px}.gw-active .gs-plan-heading{gap:10px}.gw-active .gs-workbench-heading h2{font-size:17px}}
html.dark .gw-active .gs-months,html.dark .gw-active .gs-plan,html.dark .gw-active .gs-workbench,html.dark .gw-active .gs-scope,html.dark .gw-active .gm-scope,[data-theme=dark] .gw-active .gs-months,[data-theme=dark] .gw-active .gs-plan,[data-theme=dark] .gw-active .gs-workbench,[data-theme=dark] .gw-active .gs-scope,[data-theme=dark] .gw-active .gm-scope{--gs-selected:#18333f;--gs-blue:#83c9e7;--gs-line:#343c46;--gs-muted:#abb4c2;--gs-surface:#171c24}
html.dark .gw-active .gs-months,html.dark .gw-active .gs-plan,html.dark .gw-active .gs-workbench,html.dark .gw-active .gs-scope,html.dark .gw-active .gm-scope{--text:#e6eaed;--muted:#abb4c2;color:#e6eaed;background:var(--gs-surface)}
html.dark .gw-active .gs-plan,html.dark .gw-active .gm-scope{padding:20px}
html.dark .gw-active .gs-status.doing,html.dark .gw-active .gs-month-status.current{color:var(--gs-blue)}
html.dark .gw-active .gs-status.review,html.dark .gw-active .gs-month-status.next{color:#dec38c}
html.dark .gw-active .gs-status.done{color:#84d0b1}
.gw-active .gs-status-tabs .gd-status-dot.doing{color:#006b94}
html.dark .gw-active .gs-status-tabs .gd-status-dot.doing{color:#83c9e7}
/* Existing Plane rules pin heading/button ink; keep this override local to the new surfaces. */
html.dark .gw-active :is(.gs-month strong,.gs-plan h2,.gs-plan h3,.gs-quantities strong,.gs-workbench h2,.gs-workbench h3,.gs-task>strong,.gs-detail dd,.gm-scope h2,.gm-explanation strong){color:#e6eaed!important}
html.dark .gw-active :is(.gs-detail>.btn,.gm-scope .btn,.gs-scope .btn){color:#e6eaed!important;background:#242d38!important;border:1px solid #47515f!important}
html.dark .gw-active .gs-detail :is(ul,ol,li){color:#abb4c2!important}
