/* Workspace shell reuses the existing canvas and inspector. */
#workbench-rail[hidden]{display:none}
body[data-workbench=true]{--rail-width:256px;overflow:hidden}
body[data-workbench=true][data-rail-collapsed=true]{--rail-width:52px}
#workbench-rail{position:fixed;left:0;top:var(--site-header-height);bottom:0;width:var(--rail-width);z-index:45;display:flex;flex-direction:column;background:#ffffff;border-right:1px solid #d6d3ce;color:#34372f}
#workbench-rail svg{width:18px;height:18px;flex-shrink:0}
#workbench-rail button{border:0;border-radius:4px;background:transparent;font-size:14px;text-align:left}
#workbench-rail button:hover{background:#eae9e2}
.wb-heading{display:flex;align-items:center;justify-content:space-between;min-height:60px;padding:12px 16px;border-bottom:1px solid #e0ded7}
.wb-heading strong{font-size:15px;font-weight:500}.wb-heading button{display:grid;place-items:center;padding:8px}
.wb-body{padding:16px 12px;overflow:auto;flex:1;min-height:0}.wb-search input{width:100%;padding:10px 8px;background:transparent;border:0;border-bottom:1px solid #d6d3ce;font:inherit;font-size:14px;border-radius:0}
.wb-maps{display:grid;gap:4px;margin:18px 0 30px}.wb-maps button,.wb-next button{display:flex;align-items:center;gap:10px;width:100%;min-height:42px;padding:10px}
.wb-maps button span,.wb-next button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#workbench-rail .wb-maps button[aria-current=page]{background:#e8e6dc;color:#20271d;box-shadow:inset 2px 0 #e9582d}
.wb-section-heading{display:flex;align-items:center;justify-content:space-between}.wb-section-heading button{padding:6px}
#workbench-rail h2{font-size:12px;line-height:1.5;font-weight:500;color:#77796f;margin:0 8px 10px}
.wb-goal{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 28px;margin:4px 0 14px;padding-bottom:8px;align-items:center}.wb-goal>button{display:flex;gap:12px;justify-content:space-between;padding:8px;min-width:0}.wb-goal>button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wb-goal small{font-size:12px;color:#77796f;flex-shrink:0}.wb-goal input{accent-color:#e9582d;width:15px;height:15px}.wb-progress{position:absolute;bottom:0;left:8px;right:8px;height:2px;background:#ededed}.wb-progress i{display:block;height:100%;background:#e9582d}
.wb-next{margin-top:30px}.wb-empty{font-size:13px;color:#77796f;padding:0 8px}.wb-footer{padding:12px;border-top:1px solid #dedcd4}.wb-footer button{display:flex;align-items:center;gap:10px;width:100%;padding:10px}
body[data-rail-collapsed=true] .wb-body,body[data-rail-collapsed=true] .wb-footer,body[data-rail-collapsed=true] .wb-heading strong{display:none}body[data-rail-collapsed=true] .wb-heading{padding:12px 8px}
body[data-workbench=true] main{margin-left:var(--rail-width);width:calc(100% - var(--rail-width));max-width:none;height:calc(100dvh - var(--site-header-height));min-height:0;display:block}
body[data-workbench=true] main>.workspace{height:100%;padding:0;display:flex;flex-direction:column;min-height:0}
body[data-workbench=true] .route-strip,body[data-workbench=true] .next-section{display:none}
body[data-workbench=true] #map-shell{flex:1;min-height:0;display:flex;flex-direction:column;border:0;--panel-top:68px;--panel-bottom:56px}
body[data-workbench=true] #map-scroll{height:auto!important;flex:1;min-height:0}
body[data-workbench=true] .map-toolbar,body[data-workbench=true] .map-status{flex-shrink:0}
body[data-workbench=true] .legend{margin:0;padding:8px 14px;background:#ffffff;font-size:12px}
body[data-workbench=true] .search-box{width:min(330px,30vw)}
@media(max-width:900px){body[data-workbench=true]{--rail-width:210px}body[data-workbench=true] .map-toolbar{flex-wrap:wrap}body[data-workbench=true] .legend{display:none}}
@media(max-width:700px){body[data-workbench=true]:not([data-rail-collapsed=true]) #workbench-rail{width:min(256px,80vw);box-shadow:8px 0 24px #24232114}body[data-workbench=true] main{margin-left:52px;width:calc(100% - 52px)}.primary-nav a[data-view=workspace]{white-space:nowrap}}
/* Sidebar rhythm: a fixed toggle, collection, then current-map actions. */
body[data-workbench=true]{--rail-width:272px}
.wb-heading{justify-content:flex-start;gap:12px;height:64px;min-height:64px;padding:14px 8px;border-bottom:0}
#workbench-rail .wb-heading button{width:36px;height:36px;padding:9px;flex-shrink:0;color:#71756a}
.wb-heading strong{font-size:16px;letter-spacing:-.3px}
.wb-body{padding:12px 20px 24px;scrollbar-width:thin}
.wb-collection-heading{margin-bottom:12px}
#workbench-rail .wb-section-heading h2{margin:0;font-size:12px;letter-spacing:.03em}
.wb-map-count{font-size:13px;color:#8b8e83;font-variant-numeric:tabular-nums}
.wb-search{display:block;margin-bottom:12px}
.wb-search input{padding:10px 12px;border:1px solid #deddd5;border-radius:6px;background:#f0efe9}
.wb-maps{gap:6px;margin:0 0 26px}
#workbench-rail .wb-maps button{min-height:46px;padding:11px 12px;border-radius:6px;gap:12px}
#workbench-rail .wb-maps button[aria-current=page]{background:#eae8de;box-shadow:none;font-weight:500}
#workbench-rail .wb-maps button[aria-current=page]>svg{color:#d55832}
.wb-goals{padding-top:22px;border-top:1px solid #deddd5}
.wb-goals>.wb-section-heading{margin-bottom:14px;min-height:28px}
.wb-goal{margin-bottom:14px;padding-bottom:12px}
.wb-goal>button{padding:8px 0;line-height:1.5}
.wb-goal>button span{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.wb-progress{left:0;right:0;height:3px;border-radius:2px;overflow:hidden}
.wb-goal label{display:grid;place-items:center}
.wb-next{margin-top:28px;padding-top:22px;border-top:1px solid #deddd5}
#workbench-rail .wb-next h2{margin:0 0 12px}
.wb-next button{padding:10px 0;line-height:1.5}
.wb-empty{padding:4px 0;line-height:1.6}
.wb-footer{padding:14px 16px 22px;border-color:#deddd5}
body[data-rail-collapsed=true] .wb-heading{padding:14px 8px}
body[data-workbench=true] .legend{padding:14px 24px 24px;gap:12px 20px;line-height:1.5;flex-shrink:0}
@media(max-width:900px){body[data-workbench=true]{--rail-width:232px}.wb-body{padding-inline:16px}}
#workbench-rail{padding:0}
body[data-workbench=true] main{overflow:hidden}
.wb-ai-entry{padding:2px 12px 14px;border-bottom:1px solid #deddd5}
#workbench-rail .wb-ai-entry button{display:flex;align-items:center;gap:12px;width:100%;min-height:44px;padding:10px 12px;border-radius:6px}
#workbench-rail .wb-ai-entry button[aria-expanded=true]{background:#eae8de;font-weight:500}
.wb-ai-entry .wb-ai-caret{margin-left:auto;color:#929589;font-size:22px;line-height:1}
body[data-rail-collapsed=true] .wb-ai-entry{padding:2px 8px 14px}
body[data-rail-collapsed=true] .wb-ai-entry button{justify-content:center}
body[data-rail-collapsed=true] .wb-ai-entry span{display:none}

#workbench-rail .wb-search input{background:#fff;border-color:#dedede}#workbench-rail .wb-maps button[aria-current=page]{background:#f3f3f3;box-shadow:inset 2px 0 #e9582d}#workbench-rail button:hover,#workbench-rail .wb-ai-entry button[aria-expanded=true]{background:#f5f5f5}
