/* Workspace-only navigation and lightweight, on-page task summaries. */
.workspace-rail,.workspace-tasks,.workspace-task-toggle{display:none}
body.home-hub-tool-mode .workspace-rail{display:flex}
body.home-hub-tool-mode .workspace-task-toggle{display:flex}
body.home-hub-tool-mode .workspace-tasks:not([hidden]){display:block}
body.home-hub-tool-mode.rails-ready .home-hub__back{display:none!important}
.workspace-rail,.workspace-tasks,.workspace-task-toggle{box-sizing:border-box;color:#173f36;font-family:"DM Sans",Arial,sans-serif}
.workspace-rail{position:fixed;left:12px;top:110px;max-height:calc(100dvh - 214px);z-index:90;width:68px;flex-direction:column;gap:6px;padding:8px;border:1px solid #dbe6df;border-radius:20px;background:rgba(255,255,255,.97);box-shadow:0 8px 28px #173f3608;overflow:auto}
.workspace-rail button,.workspace-task-toggle,.workspace-tasks button{font:inherit;cursor:pointer}
.workspace-rail button{display:flex;align-items:center;gap:10px;min-height:48px;flex-shrink:0;padding:10px;border:0;border-radius:12px;background:transparent;color:#637970;text-align:left}
.workspace-rail button:hover{background:#f0f5ef;color:#124f41}
.workspace-rail button[aria-current="location"]{background:#e9f3e9;color:#0b5848;box-shadow:inset 3px 0 #a9dc30}
.workspace-rail i{display:grid;flex:0 0 30px;width:30px;height:30px;place-items:center;font-style:normal}
.workspace-rail i svg{display:block;width:22px;height:22px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.workspace-rail span{display:none;font-size:12px;font-weight:700;white-space:nowrap}
.workspace-rail .workspace-rail-home{border-bottom:1px solid #e3ebe5;border-radius:12px 12px 0 0;margin-bottom:8px}
.workspace-rail .workspace-rail-expand{margin-top:auto}
.workspace-rail[data-expanded="true"]{width:182px;box-shadow:0 12px 40px #173f361c}
.workspace-rail[data-expanded="true"] span{display:inline}
.workspace-task-toggle{position:fixed;right:22px;top:104px;z-index:9300;align-items:center;gap:8px;min-height:42px;padding:10px 14px;border:1px solid #d6e4db;border-radius:999px;background:#fff;box-shadow:0 8px 22px #173f360a;font-size:12px;font-weight:700}
.workspace-task-toggle b{display:grid;min-width:22px;height:22px;place-items:center;background:#dbfa8b;border-radius:50%;font-size:11px}
.workspace-tasks{position:fixed;right:18px;top:158px;z-index:9350;width:260px;max-height:calc(100dvh - 275px);overflow:auto;padding:16px;border:1px solid #dbe6df;border-radius:18px;background:#fff;box-shadow:0 12px 40px #173f3612}
.workspace-tasks header{display:flex;align-items:center;justify-content:space-between;gap:8px}
.workspace-tasks h2{margin:0;font-size:16px;letter-spacing:-.02em}
.workspace-tasks header button{display:grid;width:32px;height:32px;place-items:center;flex-shrink:0;border:0;border-radius:50%;background:#f1f5ef;color:#33594c;font-size:21px}
.workspace-tasks>p{font-size:11px;line-height:1.6;color:#79887f;margin:6px 0 16px}
.workspace-task-card{padding:13px 0;border-top:1px solid #e8eee8}
.workspace-task-card strong{display:block;font-size:13px;margin-bottom:6px}
.workspace-task-card small{display:block;color:#657e73;font-size:11px;line-height:1.5}
.workspace-task-card[data-state="failed"] small{color:#b23e38}
.workspace-task-card[data-state="complete"] small{color:#157151}
.workspace-task-card progress{width:100%;height:6px;margin:9px 0;accent-color:#739c33}
.workspace-task-card button{margin-top:9px;border:1px solid #d6e4db;border-radius:9px;background:#f5f9f3;padding:7px 10px;color:#235a49;font-size:11px;font-weight:700}
.workspace-tasks .workspace-tasks-empty{padding:16px 0;font-size:12px;line-height:1.7;color:#79887f}
.workspace-rail button:focus-visible,.workspace-tasks button:focus-visible,.workspace-task-toggle:focus-visible{outline:3px solid #86b441;outline-offset:2px}
body:has(.model-generated-lightbox:not([hidden])) .workspace-rail,body:has(.model-generated-lightbox:not([hidden])) .workspace-tasks,body:has(.model-generated-lightbox:not([hidden])) .workspace-task-toggle{visibility:hidden}
@media(min-width:1100px){body.home-hub-tool-mode.rails-ready main{margin-left:92px;margin-right:32px}body.home-hub-tool-mode.rails-ready main .shell{max-width:1480px;width:100%;box-sizing:border-box}}
/* Keep wide-screen progress inside the existing 214px gutter, without reflowing main. */
/* header-gutter-v1: remove language control from header flex flow on wide screens. */
@media(min-width:1800px){
  body>header.shell.nav>.ui-language{position:fixed;top:24px;right:18px;z-index:9400;max-width:178px;margin:0}
  body.home-hub-tool-mode .workspace-task-toggle{top:140px}
  body.home-hub-tool-mode .workspace-tasks{top:194px;max-height:calc(100dvh - 311px)}
}
@media(min-width:1800px){.workspace-rail{left:22px;width:176px}.workspace-rail span{display:inline}.workspace-rail .workspace-rail-expand{display:none}body.home-hub-tool-mode.rails-ready main{margin-left:214px;margin-right:214px}}
@media(min-width:1800px){
  .workspace-tasks{width:178px;padding:12px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;overflow-wrap:anywhere;box-shadow:0 8px 18px #173f360a}
  .workspace-tasks header{gap:6px}
  .workspace-tasks h2{min-width:0;font-size:14px;line-height:1.4}
  .workspace-tasks header button{width:28px;height:28px}
  .workspace-task-card button{max-width:100%;white-space:normal}
}
@media(min-width:761px) and (max-width:1099px){.workspace-rail{left:8px;width:58px;padding:4px}.workspace-rail button{padding:8px}.workspace-rail i{flex-basis:32px}body.home-hub-tool-mode.rails-ready main{margin-left:72px}}
@media(max-width:760px){
  .workspace-rail{left:8px;right:8px;top:auto;bottom:8px;width:auto!important;flex-direction:row;justify-content:space-around;gap:0;padding:5px 3px;padding-bottom:max(5px,env(safe-area-inset-bottom));border-radius:17px;overflow:visible}
  .workspace-rail button{flex:1;min-width:0;min-height:48px;padding:4px 0;gap:3px;flex-direction:column;justify-content:center}
  .workspace-rail i{flex-basis:auto;height:24px}
  .workspace-rail span,.workspace-rail[data-expanded="true"] span{display:block;font-size:8px;white-space:nowrap}
  .workspace-rail .workspace-rail-home{margin:0;border:0;border-radius:12px}
  .workspace-rail .workspace-rail-expand{display:none}
  .workspace-rail button[aria-current="location"]{box-shadow:inset 0 -3px #a9dc30}
  .workspace-task-toggle{top:auto;right:auto;left:14px;bottom:88px;min-height:42px}
  .workspace-tasks{top:auto;bottom:142px;left:14px;right:14px;width:auto;max-height:calc(100dvh - 235px)}
  body.home-hub-tool-mode.rails-ready{padding-bottom:80px}
  body.home-hub-tool-mode.rails-ready .sellcopy-chat{bottom:86px}
  body.home-hub-tool-mode.rails-ready .sellcopy-chat-launcher strong{display:none}
  body.home-hub-tool-mode.rails-ready .sellcopy-chat-panel{bottom:150px;max-height:calc(100dvh - 170px)}
}
