/* Empty homepage is unchanged. All rules require an opened reply canvas. */
.tiui-client-thread.tiui-has-native-canvas{max-height:78vh}
.tiui-native-tools{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}
.tiui-native-area{min-width:0;position:relative}
.tiui-native-area.tiui-canvas-expanded{position:fixed;inset:24px;z-index:1000;background:#10151b;border:1px solid #546373;border-radius:14px;padding:14px;overflow:auto;box-shadow:0 15px 80px #000a}
.tiui-native-soft{min-width:0;width:100%;border:1px solid #53627166;border-radius:12px;overflow:hidden;background:#10151b;color:#e7edf4}
.tiui-native-soft #toaldo-soft-workspace-v6{position:relative!important;inset:auto!important;min-width:0!important;width:100%!important;height:610px!important;max-height:none!important;margin:0!important;display:flex!important;flex-direction:column!important}
.tiui-native-soft #toaldo-soft-project-controls{display:none!important}
.tiui-native-soft #toaldo-soft-workspace-v6 .tsfw-main{display:grid!important;grid-template-columns:minmax(0,1fr)!important;flex:1;min-height:0!important;overflow:hidden}
.tiui-native-soft #toaldo-soft-workspace-v6 .tsfw-left,.tiui-native-soft #toaldo-soft-workspace-v6 .tsfw-right{display:none!important}
.tiui-native-soft.tiui-show-objects #toaldo-soft-workspace-v6 .tsfw-main{grid-template-columns:240px minmax(0,1fr)!important}
.tiui-native-soft.tiui-show-objects #toaldo-soft-workspace-v6 .tsfw-left{display:block!important;overflow:auto}
.tiui-native-soft.tiui-show-production #toaldo-soft-workspace-v6 .tsfw-main{grid-template-columns:minmax(0,1fr)240px!important}
.tiui-native-soft.tiui-show-objects.tiui-show-production #toaldo-soft-workspace-v6 .tsfw-main{grid-template-columns:220px minmax(0,1fr)220px!important}
.tiui-native-soft.tiui-show-production #toaldo-soft-workspace-v6 .tsfw-right{display:block!important;overflow:auto}
.tiui-native-soft #toaldo-soft-workspace-v6 .tsfw-center{min-width:0!important;min-height:0!important;width:100%!important}
.tiui-native-soft #toaldo-soft-workspace-v6 .sc3-stage{min-height:240px}
.tiui-native-soft #toaldo-soft-workspace-v6 .tsfw-topbar{flex-wrap:wrap;min-height:0;gap:8px}
.tiui-native-soft #toaldo-soft-workspace-v6 .tsfw-actions{display:flex;flex-wrap:wrap}
.tiui-native-soft #toaldo-soft-workspace-v6 .tsfw-actions button{font-size:12px;padding:6px 9px}
.tiui-native-area.tiui-canvas-expanded .tiui-native-soft #toaldo-soft-workspace-v6{height:calc(100vh - 190px)!important}
@media(max-width:700px){.tiui-native-area.tiui-canvas-expanded{inset:8px;padding:8px}.tiui-native-soft.tiui-show-objects #toaldo-soft-workspace-v6 .tsfw-main,.tiui-native-soft.tiui-show-production #toaldo-soft-workspace-v6 .tsfw-main{display:flex!important;overflow:auto;flex-direction:column}.tiui-native-soft #toaldo-soft-workspace-v6 .tsfw-left,.tiui-native-soft #toaldo-soft-workspace-v6 .tsfw-right{max-height:250px;flex-shrink:0}.tiui-native-soft #toaldo-soft-workspace-v6 .tsfw-center{min-height:360px!important;flex-shrink:0}}

/* V2.1: isolate nested workbench sizing, headings and active panes from home CSS. */
#toaldo-iui-client-thread-v1 .tiui-native-soft #toaldo-soft-workspace-v6{font:13px/1.45 system-ui,sans-serif!important;box-sizing:border-box;min-height:540px!important;height:640px!important;text-align:left!important}
#toaldo-iui-client-thread-v1 .tiui-native-soft #toaldo-soft-workspace-v6.tsfw-hidden,#toaldo-iui-client-thread-v1 .tiui-native-soft #toaldo-soft-workspace-v6 [hidden]{display:none!important}
#toaldo-iui-client-thread-v1 .tiui-native-soft #toaldo-soft-workspace-v6>.tsfw-topbar{display:flex!important;align-items:center;justify-content:space-between;flex:0 0 auto!important;position:static!important;inset:auto!important;margin:0!important;padding:8px 10px!important;width:100%!important;max-width:none!important;min-height:42px!important;height:auto!important;gap:8px;flex-wrap:wrap}
#toaldo-iui-client-thread-v1 .tiui-native-soft #toaldo-soft-workspace-v6 .tsfw-brand{flex:0 1 auto;min-width:0;width:auto!important;max-width:none!important;overflow:visible!important}
#toaldo-iui-client-thread-v1 .tiui-native-soft #toaldo-soft-workspace-v6 h1.r23-title{font:600 16px/1.35 system-ui,sans-serif!important;letter-spacing:normal!important;text-align:left!important;margin:0!important;padding:0!important;max-width:none!important;width:auto!important;height:auto!important;white-space:normal!important;text-overflow:clip!important;transform:none!important}
#toaldo-iui-client-thread-v1 .tiui-native-soft #toaldo-soft-workspace-v6>.tsfw-status{display:flex!important;flex:0 0 auto!important;flex-wrap:wrap;gap:8px;padding:6px 10px!important;margin:0!important;max-height:84px;overflow:auto;font-size:12px!important}
#toaldo-iui-client-thread-v1 .tiui-native-soft #toaldo-soft-workspace-v6>main.tsfw-main{display:grid!important;flex:1 1 0!important;grid-template-rows:minmax(0,1fr)!important;min-width:0!important;min-height:0!important;width:100%!important;height:auto!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;position:relative!important;inset:auto!important;gap:0!important;overflow:hidden!important}
#toaldo-iui-client-thread-v1 .tiui-native-soft #toaldo-soft-workspace-v6 .tsfw-center{display:flex!important;flex-direction:column!important;position:relative!important;inset:auto!important;min-height:0!important;height:100%!important;margin:0!important;padding:0!important;overflow:hidden!important}
#toaldo-iui-client-thread-v1 .tiui-native-soft #toaldo-soft-workspace-v6 .tsfw-tabs{display:flex!important;flex:0 0 auto!important;flex-wrap:wrap;gap:4px;margin:0!important;padding:6px!important}
#toaldo-iui-client-thread-v1 .tiui-native-soft #toaldo-soft-workspace-v6 .tsfw-center>.tsfw-pane{display:none!important;position:relative!important;inset:auto!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important}
#toaldo-iui-client-thread-v1 .tiui-native-soft #toaldo-soft-workspace-v6 .tsfw-center>.tsfw-pane.active{display:flex!important;flex-direction:column!important;flex:1 1 0!important}
#toaldo-iui-client-thread-v1 .tiui-native-soft #toaldo-soft-workspace-v6 .sc3-bar{display:flex!important;flex:0 0 auto!important;flex-wrap:wrap;gap:3px;margin:0!important;padding:4px 6px!important;min-height:0!important}
#toaldo-iui-client-thread-v1 .tiui-native-soft #toaldo-soft-workspace-v6 .sc3-bar button{font-size:11px!important;line-height:1.35!important;margin:2px!important;padding:5px 7px!important}
#toaldo-iui-client-thread-v1 .tiui-native-soft #toaldo-soft-workspace-v6 .sc3-stage{display:block!important;flex:1 1 0!important;position:relative!important;inset:auto!important;width:100%!important;min-height:220px!important;height:auto!important;max-height:none!important;overflow:hidden!important;background:#121a23;border:0!important;margin:0!important;padding:0!important}
#toaldo-iui-client-thread-v1 .tiui-native-soft #toaldo-soft-workspace-v6 .sc3-stage>svg{display:block;width:100%;height:100%;touch-action:none}
#toaldo-iui-client-thread-v1 .tiui-native-soft #toaldo-soft-workspace-v6 .sc3-caption,#toaldo-iui-client-thread-v1 .tiui-native-soft #toaldo-soft-workspace-v6 .sc12-preview-status{flex:0 0 auto;min-height:0!important;max-height:64px;overflow:auto;padding:5px 8px!important;margin:0!important;font-size:12px!important;line-height:1.4!important}
#toaldo-iui-client-thread-v1 .tiui-native-soft #toaldo-soft-workspace-v6 .tsfw-left,#toaldo-iui-client-thread-v1 .tiui-native-soft #toaldo-soft-workspace-v6 .tsfw-right{position:relative!important;inset:auto!important;width:auto!important;min-width:0!important;min-height:0!important;margin:0!important;padding:8px!important}
#toaldo-iui-client-thread-v1 .tiui-native-soft #toaldo-soft-workspace-v6 button[aria-pressed="true"]{background:#284957!important}
.tiui-native-progress{font-size:12px!important;line-height:1.5!important;white-space:normal!important;margin:6px 0!important}

#toaldo-iui-client-thread-v1 .tiui-native-soft #toaldo-soft-workspace-v6>main.tsfw-main>*{grid-area:auto!important;grid-column:auto!important;grid-row:auto!important;align-self:stretch!important;justify-self:stretch!important}

/* Reply V3 scoped visibility. Unembedded workbenches and empty homepage untouched. */
#toaldo-iui-client-thread-v1 .tiui-native-soft:not(.tiui-show-objects) #toaldo-soft-workspace-v6>main.tsfw-main>aside.tsfw-left{display:none!important}
#toaldo-iui-client-thread-v1 .tiui-native-soft:not(.tiui-show-production) #toaldo-soft-workspace-v6>main.tsfw-main>aside.tsfw-right{display:none!important}
#toaldo-iui-client-thread-v1 .tiui-native-soft.tiui-show-objects #toaldo-soft-workspace-v6>main.tsfw-main>aside.tsfw-left,#toaldo-iui-client-thread-v1 .tiui-native-soft.tiui-show-production #toaldo-soft-workspace-v6>main.tsfw-main>aside.tsfw-right{display:block!important}
#toaldo-iui-client-thread-v1 .tiui-native-tools button[hidden]{display:none!important}
#toaldo-iui-client-thread-v1 .tiui-native-slot{min-width:0;width:100%}
#toaldo-iui-client-thread-v1 .tiui-native-soft #toaldo-soft-workspace-v6 .tsfw-pane.active{flex:1 1 0!important;min-width:0!important}
/* Per-reply project task. Homepage shell remains native. */
.tiui-task4{border:1px solid #cbd6de;border-radius:18px;background:#f6f8fa;padding:22px;color:#22364a;box-sizing:border-box;max-width:100%;text-align:left}
.tiui-task4 header small{font-size:10px;letter-spacing:.14em;color:#55708c}.tiui-task4 h3{font-size:24px;margin:8px 0}.tiui-task4 header p{font-size:13px;color:#587087;margin:6px 0 18px}
.tiui-task-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));list-style:none;padding:0;margin:14px 0;gap:8px}.tiui-task-steps li{display:flex;flex-direction:column;gap:8px;border:1px solid #d6e0e9;border-radius:10px;padding:12px;background:#fff}.tiui-task-steps b{font-size:13px}.tiui-task-steps span{font-size:11px;color:#61758a}
.tiui-task-files{padding:0;list-style:none;max-height:220px;overflow:auto}.tiui-task-files li{display:flex;gap:16px;justify-content:space-between;padding:10px 0;border-bottom:1px solid #e1e8ee;font-size:12px}.tiui-task-files span{overflow-wrap:anywhere}.tiui-task-files small{flex-shrink:0;color:#5a7189}
.tiui-task-actions,.tiui-task-choices{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:12px 0}.tiui-task-actions[hidden]{display:none}.tiui-task4>.tiui-task-actions button,.tiui-task4>.tiui-task-choices button{border:1px solid #c4d2de;border-radius:8px;background:#fff;padding:9px 13px;color:#27415b;cursor:pointer}.tiui-task4>.tiui-task-actions button:first-child{background:#243f58;color:#fff}.tiui-task4 button:disabled{opacity:.55;cursor:wait}.tiui-task-choices input,.tiui-task-choices select{padding:9px;border:1px solid #c4d2de;border-radius:7px;max-width:100%}.tiui-task4>.tiui-note[data-error="1"]{color:#9d4e25}
.tiui-native-slot{max-width:100%;min-width:0}.tiui-native-slot:empty{display:none}.tiui-native-slot>.page{display:none!important}.tiui-native-slot>.page.active{display:block!important;position:relative!important;inset:auto!important;width:100%;min-width:0;min-height:600px;margin-top:18px;padding:0;border-radius:12px;overflow:auto;background:#101722;color:#d8e3ee}
.tiui-native-slot #toaldo-concept-project-v1{padding:0;max-width:none}.tiui-native-slot #cc-os{height:760px;max-height:90vh}.tiui-native-slot .pos-project-select{display:none}.tiui-native-slot [data-project],.tiui-native-slot #cp-project{pointer-events:none;opacity:.7}.tiui-native-slot #page-planstandard{padding:0!important}.tiui-native-slot .pos-head{padding:16px}.tiui-task-open{width:100%}
@media(max-width:760px){.tiui-task4{padding:12px}.tiui-task-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.tiui-native-slot #cc-os{height:auto;max-height:none}.tiui-task-actions button{flex:1 1 40%}}
/* Flow layout is scoped to a nonempty reply. The empty homepage keeps its native layout. */
body.home-command-mode:has(#toaldo-iui-client-thread-v1:not(:empty)){overflow-y:auto!important}
#page-home .linear-command-stage:has(#toaldo-iui-client-thread-v1:not(:empty)){position:relative!important;left:auto!important;top:auto!important;transform:none!important;margin:0 auto!important;padding:100px 0 36px!important;box-sizing:border-box}
#page-home .linear-command-stage:has(.tiui-task-open){width:min(1480px,96vw)!important}
#toaldo-iui-client-thread-v1:has(.tiui-task4){max-height:none;overflow:visible}
@media(max-width:760px){#page-home .linear-command-stage:has(#toaldo-iui-client-thread-v1:not(:empty)){padding-top:90px!important}}


/* The native Client navigation is hidden only while the homepage is displayed. */
html.toaldo-client-authenticated body.home-command-mode #appView{display:block!important;padding-left:0!important;grid-template-columns:minmax(0,1fr)!important}
html.toaldo-client-authenticated body.home-command-mode #appView>.sidebar{display:none!important;width:0!important;pointer-events:none!important}
html.toaldo-client-authenticated body.home-command-mode #appView>.main{margin:0!important;padding:0!important;width:100%!important;max-width:none!important;min-width:0!important}
body.home-command-mode #page-home>.linear-home-shell>.linear-modules-button{display:none!important}
body.home-command-mode #page-home>.linear-home-shell{width:100%!important;min-width:0!important;overflow:visible!important}
body.home-command-mode #page-home .linear-command-stage:has(#toaldo-iui-client-thread-v1:not(:empty)){width:min(1080px,calc(100% - 48px))!important;padding:82px 0 40px!important}
body.home-command-mode #page-home .linear-command-stage:has(.tiui-task-open),body.home-command-mode #page-home .linear-command-stage:has(.tiui-has-native-canvas){width:min(1560px,calc(100% - 48px))!important}
#toaldo-iui-client-thread-v1{width:100%!important;min-width:0!important;max-height:none!important;overflow:visible!important}
#toaldo-iui-client-thread-v1 .tiui-task4{padding:20px;border-radius:14px}
#toaldo-iui-client-thread-v1 .tiui-inline6 .tiui-inline-body6{min-width:0;width:100%;text-align:left;overflow:visible}
#toaldo-iui-client-thread-v1 .tiui-inline6 [hidden]{display:none!important}
#toaldo-iui-client-thread-v1 .tiui-inline6 .tiui-native-page{display:block!important;position:relative!important;inset:auto!important;width:100%!important;min-width:0!important;max-width:none!important;height:auto!important;margin:12px 0!important;padding:0!important;transform:none!important;overflow:visible!important;text-align:left}
#toaldo-iui-client-thread-v1 .tiui-inline6 .tiui-native-page [inert]{cursor:wait}
#toaldo-iui-client-thread-v1 .tiui-inline6 #toaldo-product-storyspace-workbench-v3{display:block!important;position:relative!important;inset:auto!important;height:auto!important;min-height:680px!important;z-index:auto!important;overflow:auto!important}
#toaldo-iui-client-thread-v1 .tiui-inline6 #toaldo-product-storyspace-workbench-v3 .bv-shell{position:relative!important;inset:auto!important;height:760px!important;max-height:90vh!important}
/* Preserve the current fixed professional canvas while embedded in a reply. */
#toaldo-iui-client-thread-v1 .tiui-inline6 #toaldo-product-storyspace-workbench-v3[data-brand-canvas="video-v33"]{height:720px!important;min-height:500px!important;max-height:90vh!important;overflow:hidden!important}
#toaldo-iui-client-thread-v1 .tiui-inline6 #toaldo-product-storyspace-workbench-v3[data-brand-canvas="video-v33"] .bv-shell{height:100%!important;max-height:none!important;overflow:hidden!important}
#toaldo-iui-client-thread-v1 .tiui-inline6 #tc5-root[data-open="true"]{display:block!important;position:relative!important;inset:auto!important;z-index:auto!important;height:auto!important;min-width:0!important}
#toaldo-iui-client-thread-v1 .tiui-inline6 .tc5-wrap{max-width:none!important;margin:0!important;min-width:0!important}
#toaldo-iui-client-thread-v1 .tiui-inline6 h1{font-size:22px!important;line-height:1.4!important;text-align:left!important;letter-spacing:normal!important;margin:0!important}
#toaldo-iui-client-thread-v1 .tiui-inline6 p{max-width:none!important;font-size:inherit;line-height:1.6}
.tiui-local-source6{padding:12px;border:1px solid #c4d2de;border-radius:8px;margin:10px 0;overflow-wrap:anywhere}
.tiui-local-source6 img{display:block;max-width:100%;max-height:440px;object-fit:contain;margin:10px auto}
.tiui-inline6 .tiui-native-tools button{border:1px solid #c4d2de;border-radius:7px;background:#fff;padding:8px 12px;color:#27415b;cursor:pointer}
@media(max-width:760px){body.home-command-mode #page-home .linear-command-stage:has(#toaldo-iui-client-thread-v1:not(:empty)){width:calc(100% - 24px)!important;padding-top:80px!important}#toaldo-iui-client-thread-v1 .tiui-task4{padding:12px}.tiui-inline6 .tiui-native-tools button{min-height:40px}}
