/* Manychat-inspired operational layout; original IGCDM identity and controls. */
html:root{--ink:#202124;--muted:#61666f;--bg:#f7f8fa;--paper:#fff;--panel:#fff;--dark:#fff;--brand:#315efb;--green:#315efb;--lime:#e9efff;--line:#e4e6eb;--soft:#f5f6f8;--danger:#b42318;--control-border:#9299a5;--focus-ring:#315efb;--radius:8px;--shadow-card:none;--shadow-float:0 12px 40px #17203324;color-scheme:light}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body{background:var(--bg);color:var(--ink);font-size:14px;line-height:1.5}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body :is(h1,h2,h3,h4,strong){color:var(--ink)}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body :is(.hint,.small,.lead,.meta,.eyebrow,.kicker,footer){color:var(--muted)}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body a{color:#2452db}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body :is(button,.button-link){border-radius:6px;box-shadow:none}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body :is(input,select,textarea){background:#fff;color:var(--ink);border-color:var(--control-border);border-radius:6px}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body :is(input,select,textarea):focus-visible,html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body :is(button,a):focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body input[type=checkbox]{accent-color:var(--brand)}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body :is(button.primary,#publish,#new,#add-block){background:var(--brand);border-color:var(--brand);color:#fff}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body :is(button.secondary,.button-link,.directory-pagination button,.library-toolbar button){background:#fff;color:var(--ink);border:1px solid #c6cbd3}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body :is(.panel,.card,.campaign-card,.channel-card,.starter-card,.template-tile,.table-panel,.row,.setup-panel,.metric,.knowledge-health){background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:8px;box-shadow:none}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body :is(.badge,.status-pill,.channel-badge,.environment,.setup-progress){background:#f0f3fa;color:#3e4c65;border-color:#d7deea;font-size:11px;letter-spacing:0}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body :is(.badge.live,.status-pill.green){background:#e6f5ed;color:#12633b;border-color:#b9dfca}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body :is(.workspace-avatar,.brand-mark){background:#edf1ff;color:#244de0}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body .sidebar{background:#fff!important;border-inline-end:1px solid var(--line);color:var(--ink);box-shadow:none}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body .sidebar :is(.brand,.brand>span:not(.brand-mark),.workspace-card strong){color:var(--ink)}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body .sidebar .brand{font-size:22px;padding-block-end:22px}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body .workspace-card{background:#fff;border:1px solid var(--line);border-radius:7px}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body .sidebar :is(small,.nav-label,.sidebar-foot){color:var(--muted)}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body .sidebar .nav{color:#535963;border-radius:6px;font-weight:500;font-size:14px}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body .sidebar .nav:hover{background:#f4f6fa;color:#202124}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body .sidebar .nav[aria-current=page]{background:#edf2ff;color:#244de0;box-shadow:none!important}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body .sidebar-foot{border-color:var(--line)}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body :is(.topbar,.module-topbar){background:#fff;border-bottom:1px solid var(--line);min-height:64px}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body :is(.account-toolbar,.module-account){color:var(--muted)}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body .section-navigation{background:transparent;border-color:var(--line);gap:8px;padding-block:0;margin-block-end:24px}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body .section-navigation a{border:0;border-radius:0;min-height:52px;color:var(--muted);padding:16px 12px;font-size:14px}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body .section-navigation a[aria-current=page]{color:#244de0;background:transparent;box-shadow:inset 0 -2px #315efb}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body h1{font-size:28px;line-height:1.25;font-weight:650;letter-spacing:-.6px}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body h2{font-size:19px;letter-spacing:-.25px}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body .hero-row h1{font-size:34px;max-width:650px}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body .hero-row h1 em{color:var(--ink);font-style:normal}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body .hero-row .lead{font-size:14px;max-width:650px}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body .view{padding-block-start:24px}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body .library-toolbar{background:#fff;border:1px solid var(--line);border-radius:8px;padding:14px;gap:12px;align-items:end}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body .automation-folders{background:transparent;border:0}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body .automation-folders button{background:transparent;color:var(--muted);border-color:transparent;text-align:start}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body .automation-folders button[aria-pressed=true]{background:#eaf0ff;color:#244de0}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body :is(.operations-table,.operations-table th,.operations-table td){border-color:var(--line);color:var(--ink)}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body .operations-table th{background:#fafbfc;color:var(--muted);font-weight:500}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body .operations-table td{background:#fff;padding-block:15px}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body :is(dialog,.operations-dialog,#contact-profile){background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-float)}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body dialog::backdrop{background:#1f293759}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body .inbox-layout{--inbox-surface:#fff;--inbox-text:#202124;--inbox-muted:#596170;--inbox-hover:#f5f7fb;--inbox-selected:#eaf0ff;--inbox-received:#f0f2f5;--inbox-sent:#e8efff;--inbox-border:#d6dbe4;--inbox-focus:#315efb;--inbox-button:#315efb;--inbox-button-text:#fff;gap:0;border:1px solid var(--line);border-radius:8px;overflow:hidden}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body .inbox-list{border:0;border-inline-end:1px solid var(--line);border-radius:0}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body .inbox-item{border-radius:0;border-bottom:1px solid #eff1f5;padding:16px}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body .inbox-detail{border:0;border-radius:0;min-width:0;background:#fff}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body .inbox-messages{background:#fff;min-height:320px}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body :is(.inbox-team-panel,.inbox-schedule-panel){background:#fafbfc;border:1px solid var(--line);border-radius:6px;padding:14px}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body :is(.board,#block-editor,.entry-settings,.simulation-device,.simulation-notes){background:#fff;border-color:var(--line)}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body .canvas{background-color:#f5f6f8;background-image:radial-gradient(#d6dbe4 1px,transparent 1px);background-size:18px 18px}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body .node{background:#fff;border:1px solid #d5dae3;color:var(--ink);box-shadow:0 2px 5px #2433500b;border-radius:9px}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body .node.selected{border-color:var(--brand);box-shadow:0 0 0 2px #315efb22}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body .node :is(.node-copy,.node-footer,.type,.step-number){color:var(--muted)}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body :is(.node-heading,.board-heading,.board-foot,.node-footer){border-color:var(--line);background:transparent}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body .step-icon{background:#edf2ff;color:#315efb}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body .error{color:var(--danger)}
@media(min-width:1280px){html.workspace-dashboard .inbox-layout{grid-template-columns:290px minmax(0,1fr)}html.workspace-dashboard .inbox-detail{display:grid;grid-template-columns:minmax(0,1fr) 280px;align-content:start}html.workspace-dashboard .inbox-detail>:not(.inbox-team-panel):not(.inbox-schedule-panel){grid-column:1}html.workspace-dashboard .inbox-team-panel{grid-column:2;grid-row:1 / span 4;margin:12px;align-self:start}html.workspace-dashboard .inbox-schedule-panel{grid-column:2;grid-row:5;margin:12px;align-self:start}}
@media(max-width:760px){html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body .hero-row h1{font-size:28px}html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body .inbox-detail{display:block}html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body .library-toolbar{padding:12px}html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body .section-navigation{margin-block-end:16px}html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body h1{font-size:25px}}

html.workspace-dashboard body :is(.workspace-card,.automation-summary,.campaign-summary,.stat-strip,#workspace-usage){background:#fff;color:var(--ink);border-color:var(--line)}
html:is(.workspace-dashboard,.workspace-module) body button{color:var(--ink);background:#fff;border-color:#c6cbd3}
html:is(.workspace-dashboard,.workspace-module) body :is(button.primary,#publish,#new,#add-block){background:#315efb;color:#fff;border-color:#315efb}
html.workspace-dashboard body .compact-metrics{background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:none}
html.workspace-dashboard body .compact-metrics span{color:var(--muted)}
html.workspace-dashboard body .compact-metrics>div{border-color:var(--line)}
html:is(.workspace-dashboard,.workspace-module) body button:hover:not(:disabled){background:#edf2ff;color:#202124;border-color:#9299a5}
html:is(.workspace-dashboard,.workspace-module) body :is(button.primary,#publish,#new,#add-block):hover:not(:disabled){background:#244de0;color:#fff;border-color:#244de0}
/* Screen reconstruction from official Automation overview screenshot E-01. */
@media(min-width:1100px){
 html.workspace-dashboard{--sidebar:190px}
 html.workspace-module{--workspace-rail:190px}
 html:is(.workspace-dashboard,.workspace-module) body .sidebar{width:190px;padding:20px 12px}
 html.workspace-dashboard body main{margin-inline-start:190px;margin-left:190px;padding-inline:36px}
 html.workspace-dashboard[dir=rtl] body main{margin-left:0;margin-right:190px}
 html.workspace-dashboard body[data-product-area=automation] .view{margin-inline-start:220px}
 html.workspace-dashboard body[data-product-area=automation] #section-navigation{position:fixed;inset-inline-start:190px;top:145px;width:190px;bottom:0;display:flex;flex-direction:column;align-items:stretch;border:0;border-inline-end:1px solid var(--line);padding:18px 12px;margin:0;gap:2px;background:var(--bg)}
 html.workspace-dashboard body[data-product-area=automation] #section-navigation a{justify-content:flex-start;min-height:34px;padding:7px 12px;border-radius:0;font-size:13px}
 html.workspace-dashboard body[data-product-area=automation] #section-navigation a[aria-current=page]{background:#e7e9ee;box-shadow:none;color:#202124}
}
html.workspace-dashboard body #campaigns :is(.kicker,.title-row .lead,.compact-metrics,.section-heading,.starter-panel){display:none}
html.workspace-dashboard body #campaigns .title-row{margin-block:12px 20px}
html.workspace-dashboard body #campaigns h1{font-size:23px}
html.workspace-dashboard body .automation-library-layout{display:flex;flex-direction:column;gap:24px}
html.workspace-dashboard body .automation-folders{display:flex;flex-wrap:wrap;gap:10px;width:100%;padding:0;margin:0}
html.workspace-dashboard body .automation-folders h3{display:none}
html.workspace-dashboard body .automation-folders button{flex:0 1 220px;background:white;border:1px solid var(--line);border-radius:8px;padding:12px 16px;min-height:44px}
html.workspace-dashboard body #campaigns .library-toolbar{padding:0;background:transparent;border:0;gap:8px;margin-bottom:20px}
html.workspace-dashboard body #campaigns .library-toolbar label{flex:1 1 160px;font-size:12px}
html.workspace-dashboard body #campaigns .operations-table{border-collapse:separate;border-spacing:0 12px;background:transparent}
html.workspace-dashboard body #campaigns .operations-table th{background:transparent;border:0;font-size:12px;font-weight:400}
html.workspace-dashboard body #campaigns .operations-table td{background:white;border-block:1px solid var(--line);padding:20px 14px}
html.workspace-dashboard body #campaigns .operations-table td:first-child{border-inline-start:1px solid var(--line);border-start-start-radius:9px;border-end-start-radius:9px;width:50%}
html.workspace-dashboard body #campaigns .operations-table td:last-child{border-inline-end:1px solid var(--line);border-start-end-radius:9px;border-end-end-radius:9px}
html.workspace-dashboard body #campaigns .operations-table td small{display:block;color:var(--muted);font-size:12px;padding-top:8px}
html.workspace-dashboard body .automation-row-actions{position:relative}
html.workspace-dashboard body .automation-row-actions summary{cursor:pointer;font-size:24px;list-style:none;text-align:center;min-width:36px;min-height:44px}
html.workspace-dashboard body .automation-row-actions[open]{background:#fff;box-shadow:var(--shadow-float);padding:8px;z-index:2}
html.workspace-dashboard body .automation-create-options{display:grid;gap:12px;padding-block:20px}
@media(max-width:1099px){html.workspace-dashboard body[data-product-area=automation] .view{margin-inline-start:0}}
html.workspace-dashboard body #campaign-list.library-table-mode{display:block;width:100%;min-width:0;max-width:100%}
html.workspace-dashboard body .automation-library-layout,html.workspace-dashboard body #campaigns{min-width:0;max-width:100%}
html.workspace-dashboard body #campaigns .operations-table-scroll{width:100%;max-width:100%;min-width:0;overflow-x:auto}
html.workspace-dashboard body #campaigns .operations-table{width:100%}
@media(max-width:760px){html.workspace-dashboard body #campaigns .operations-table{min-width:600px}html.workspace-dashboard body .automation-folders button{flex:1 1 140px}}
/* Flow Builder reconstruction: official canvas reference E-F01. */
html.workspace-studio body[data-view=builder]{overflow:hidden}
html.workspace-studio body[data-view=builder]>:is(.top,.module-switcher,footer),html.workspace-studio body[data-view=builder] main>:is(.heading,.tabs){display:none}
html.workspace-studio body[data-view=builder] main{max-width:none;margin:0;padding:0}
html.workspace-studio body[data-view=builder] #builder{position:fixed;inset:0;background:#f3f4f6;display:flex;flex-direction:column;gap:0}
html.workspace-studio body[data-view=builder] .builder-head{height:70px;min-height:70px;margin:0;padding:8px 20px;background:#fff;border-bottom:1px solid var(--line);z-index:5;gap:12px;flex-wrap:nowrap}
html.workspace-studio body[data-view=builder] .builder-identity{min-width:0;gap:14px}
html.workspace-studio body[data-view=builder] .builder-identity .eyebrow{display:none}
html.workspace-studio body[data-view=builder] #builder-title{font-size:15px;letter-spacing:0;cursor:pointer;max-width:30vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}
html.workspace-studio body[data-view=builder] .builder-meta{font-size:11px;gap:8px;margin:0}
html.workspace-studio body[data-view=builder] #revision{display:none}
html.workspace-studio body[data-view=builder] .builder-actions{gap:6px;flex-wrap:nowrap}
html.workspace-studio body[data-view=builder] .builder-actions button{font-size:13px;padding:8px 12px;min-height:40px;white-space:nowrap}
html.workspace-studio body[data-view=builder] .editor{display:grid;grid-template-columns:310px minmax(0,1fr);gap:0;flex:1;min-height:0;margin:0;position:relative}
html.workspace-studio body[data-view=builder] #block-editor{grid-column:1;grid-row:1;border:0;border-inline-end:1px solid var(--line);border-radius:0;overflow:auto;max-height:none;padding:20px;box-shadow:none}
html.workspace-studio body[data-view=builder] .board{grid-column:2;grid-row:1;border:0;border-radius:0;display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;background:#f3f4f6}
html.workspace-studio body[data-view=builder] .board-heading{display:none}
html.workspace-studio body[data-view=builder] .canvas-tools{position:absolute;inset-inline-end:16px;top:18px;z-index:3;display:block;margin:0;padding:0;border:0;background:transparent;box-shadow:none;width:auto}
html.workspace-studio body[data-view=builder] .canvas-tools>:is(label,#add-block){display:none}
html.workspace-studio body[data-view=builder] .canvas-utilities{display:flex;flex-direction:column;gap:8px;align-items:stretch;max-width:130px}
html.workspace-studio body[data-view=builder] .canvas-utilities :is(button,select){background:white;border:1px solid var(--line);box-shadow:0 2px 5px #18243a0a;color:var(--ink);min-height:44px;font-size:12px;border-radius:6px}
html.workspace-studio body[data-view=builder] #pick-step{border-radius:50%;background:#0866df;color:white;font-size:30px;align-self:flex-end;width:52px;height:52px;margin-bottom:14px}
html.workspace-studio body[data-view=builder] .canvas-wrap{flex:1;min-height:0;height:auto;border:0;border-radius:0;overflow:auto;cursor:grab;background:#f3f4f6;touch-action:pan-x pan-y}
html.workspace-studio body[data-view=builder] .canvas-wrap.panning{cursor:grabbing}
html.workspace-studio body[data-view=builder] .canvas{background:#f3f4f6;min-height:100%;direction:ltr}
html.workspace-studio body[data-view=builder] #nodes{position:absolute;inset:0;transform:translateX(360px)}
html.workspace-studio body[data-view=builder] .node{width:260px;min-height:170px;border-radius:12px;border-color:#dce0e6;padding:0;text-align:left;overflow:hidden}
html.workspace-studio body[data-view=builder] .node-heading{padding:10px 12px;background:#f0f8f3;border-bottom:1px solid #deeee2}
html.workspace-studio body[data-view=builder] .node.tone-purple .node-heading{background:#f6f0ff}
html.workspace-studio body[data-view=builder] .node.tone-amber .node-heading{background:#fff7e8}
html.workspace-studio body[data-view=builder] .node>strong{display:block;padding:12px 14px 0;font-size:14px}
html.workspace-studio body[data-view=builder] .node-copy{margin:12px 14px;background:#f5f6f8;border-radius:6px;padding:10px;font-size:13px;white-space:pre-wrap;line-height:1.5}
html.workspace-studio body[data-view=builder] .node-footer{padding:10px 14px;font-size:11px}
html.workspace-studio body[data-view=builder] .step-number,html.workspace-studio body[data-view=builder] .entry-badge{display:none}
html.workspace-studio body[data-view=builder] .edge{stroke:#8999ae;stroke-width:2;fill:none}
html.workspace-studio body[data-view=builder] .edge.active{stroke:#0866df}
html.workspace-studio body[data-view=builder] .connection-dot{position:absolute;z-index:2;width:44px;height:44px;min-height:44px;padding:0;border-radius:50%;background:white;color:#0866df;border:2px solid #94a6be;cursor:pointer}
html.workspace-studio body[data-view=builder] .trigger-card{position:absolute;left:40px;top:70px;width:260px;min-height:190px;background:white;border:1px solid var(--line);border-radius:15px;box-shadow:0 2px 4px #2531480b;color:var(--ink);padding:20px;text-align:left;display:flex;flex-direction:column;gap:14px;z-index:1}
html.workspace-studio body[data-view=builder] #trigger-card-summary{font-size:13px;color:var(--muted);line-height:1.5}
html.workspace-studio body[data-view=builder] .trigger-card-action{border:1px dashed #0866df;padding:10px;text-align:center;color:#0866df;border-radius:5px;font-size:13px}
html.workspace-studio body[data-view=builder] .trigger-card small{align-self:flex-end;color:var(--muted)}
html.workspace-studio body[data-view=builder] .entry-settings{position:absolute;top:76px;inset-inline-start:12px;width:350px;max-height:calc(100dvh - 90px);overflow:auto;z-index:6;box-shadow:var(--shadow-float);margin:0}
html.workspace-studio body[data-view=builder] .entry-settings:not([open]){display:none}
html.workspace-studio body[data-view=builder] .entry-settings .settings-grid{grid-template-columns:1fr}
html.workspace-studio body[data-view=builder] .step-picker{position:absolute;z-index:4;inset-inline-end:160px;top:18px;width:300px;max-height:calc(100% - 45px);overflow:auto;background:white;border:1px solid var(--line);border-radius:8px;padding:18px;box-shadow:var(--shadow-float)}
html.workspace-studio body[data-view=builder] .picker-heading{display:flex;align-items:center;justify-content:space-between}
html.workspace-studio body[data-view=builder] .picker-heading h2{margin:0}
html.workspace-studio body[data-view=builder] .step-picker p{font-size:12px;color:var(--muted);margin:20px 0 8px}
html.workspace-studio body[data-view=builder] .step-picker [id$=-blocks]{display:grid;gap:8px}
html.workspace-studio body[data-view=builder] .step-picker [data-step]{display:flex;align-items:center;gap:12px;text-align:start;background:#fff;border:1px dashed #c6cbd3;border-radius:6px;color:var(--ink);min-height:52px;width:100%}
html.workspace-studio body[data-view=builder] .board-foot{background:#fff;font-size:11px;padding:8px 16px;border-top:1px solid var(--line)}
html.workspace-studio body[data-view=builder] :is(#notice,#error):not([hidden]){position:fixed;inset-inline-start:330px;top:76px;max-width:calc(100vw - 370px);z-index:9;box-shadow:var(--shadow-float)}
html.workspace-studio body dialog.preview-docked{position:fixed;inset:78px 16px 16px auto;max-height:none;width:390px;max-width:calc(100vw - 32px);margin:0;padding:16px}
html.workspace-studio body dialog.preview-docked::backdrop{background:#1f29371a}
html.workspace-studio body .preview-docked .simulation-layout{display:block}
html.workspace-studio body .preview-docked .simulation-notes{display:none}
html.workspace-studio body .preview-docked .simulation-device{width:100%;min-height:0}
html.workspace-studio body .preview-docked .preview-chat{max-height:calc(100dvh - 340px);min-height:140px}
html.workspace-studio body .canvas-wrap.list-view #nodes{position:relative;transform:none;display:grid;gap:16px;padding:20px}
html.workspace-studio body .canvas-wrap.list-view .trigger-card{position:relative;inset:auto;margin:20px;width:calc(100% - 40px)}
html.workspace-studio body .canvas-wrap.list-view .connection-dot{display:none}
@media(max-width:1000px){html.workspace-studio body[data-view=builder] .editor{grid-template-columns:260px minmax(0,1fr)}html.workspace-studio body[data-view=builder] .builder-actions #undo,html.workspace-studio body[data-view=builder] .builder-actions #redo{display:none}html.workspace-studio body[data-view=builder] .step-picker{inset-inline-end:70px;width:min(300px,calc(100vw - 90px))}}
@media(max-width:700px){html.workspace-studio body[data-view=builder]{overflow:auto}html.workspace-studio body[data-view=builder] #builder{position:relative;min-height:100dvh}html.workspace-studio body[data-view=builder] .builder-head{position:sticky;top:0;height:auto;flex-wrap:wrap;padding:12px}html.workspace-studio body[data-view=builder] #builder-title{max-width:55vw}html.workspace-studio body[data-view=builder] .builder-actions{width:100%;justify-content:flex-end}html.workspace-studio body[data-view=builder] .editor{display:flex;flex-direction:column}html.workspace-studio body[data-view=builder] .board{min-height:65dvh}html.workspace-studio body[data-view=builder] .canvas-wrap{max-height:65dvh;min-height:400px}html.workspace-studio body[data-view=builder] #block-editor{border:0;border-top:1px solid var(--line);max-height:none;overflow:visible}html.workspace-studio body[data-view=builder] .canvas-utilities{max-width:76px}html.workspace-studio body[data-view=builder] .canvas-utilities button{padding:6px;font-size:11px}html.workspace-studio body[data-view=builder] .entry-settings{width:calc(100vw - 24px);position:fixed;top:130px}html.workspace-studio body[data-view=builder] :is(#notice,#error):not([hidden]){inset-inline:12px;top:130px;max-width:none}html.workspace-studio body[data-view=builder] .step-picker{position:fixed;top:150px;max-height:60dvh}html.workspace-studio body[data-view=builder] .canvas-wrap.list-view .node{width:calc(100% - 80px)}}
/* Shared usability: keyboard focus, readable status text and touch targets. */
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body :is(button,a,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid #0866df!important;outline-offset:3px}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body :is(button,summary){cursor:pointer;touch-action:manipulation}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body :is(button,input,select,textarea):disabled{cursor:not-allowed;opacity:.55}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body :is(input,select,textarea){min-width:0;max-width:100%}
@media(pointer:coarse){html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body :is(button,input,select,summary,.nav,.section-navigation a){min-height:44px}html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body :is(input,select,textarea){font-size:16px}}
@media(prefers-reduced-motion:reduce){html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body *,html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body *::before,html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
html.workspace-studio body[data-view=builder] .builder-head{flex-direction:row}
html.workspace-studio body[data-view=builder] .builder-actions{width:auto;display:flex}
html.workspace-studio body[data-view=builder] .canvas-utilities{min-width:0;width:auto;flex:none}
html.workspace-studio body[data-view=builder] .canvas-utilities label{min-width:0;width:auto;font-size:11px}
@media(max-width:700px){html.workspace-studio body[data-view=builder] .builder-actions{width:100%}html.workspace-studio body[data-view=builder] .builder-actions>button{width:auto}html.workspace-studio body[data-view=builder] .canvas-wrap.list-view #nodes{padding:10px}html.workspace-studio body[data-view=builder] .canvas-wrap.list-view .node{position:relative;inset:auto!important;margin:0}}
html.workspace-studio body[data-view=builder]>:is(.sidebar,.module-topbar,#module-shell-status,.nav-backdrop){display:none!important}
html.workspace-studio body[data-view=builder] #builder{z-index:20}
html.workspace-studio body[data-view=builder] .board{align-self:stretch;height:100%}
html.workspace-studio body[data-view=builder] #block-editor{position:relative;top:auto;min-height:0;height:100%;align-self:stretch}
html.workspace-studio body[data-view=builder] .canvas-wrap{max-height:none}
html.workspace-studio body[data-view=builder] .canvas-utilities{min-width:0!important;max-width:125px;flex:none!important}
html.workspace-studio body[data-view=builder] .more-actions>summary{background:white;color:var(--ink);border-color:var(--line)}
@media(max-width:700px){html.workspace-studio body[data-view=builder] #block-editor{height:auto}html.workspace-studio body[data-view=builder] .canvas-wrap{max-height:65dvh}}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body input:not([type=checkbox]):not([type=radio]),html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body :is(select,textarea):focus{background-color:#fff;color:var(--ink);border-color:var(--control-border)}
html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot) body :is(input,textarea)::placeholder{color:#69717e;opacity:1}
html.workspace-studio body[data-view=builder] :is(#notice,#error):not([hidden]){z-index:30}
html.workspace-studio body[data-view=builder] .preview-docked .simulation-notes{display:block;padding:8px;border:0}
html.workspace-studio body[data-view=builder] .preview-docked .simulation-notes>:not(.badge):not(.simulation-state){display:none}
html.workspace-studio body[data-view=builder] .section-navigation{display:none!important}
html.workspace-studio body[data-view=builder] .node-footer{margin-inline:0}
@media(max-width:700px){html.workspace-studio body[data-view=builder] .canvas-tools{position:relative;inset:auto;margin:8px 12px;width:auto}html.workspace-studio body[data-view=builder] .canvas-utilities{flex-direction:row;max-width:none;align-items:center;gap:8px;flex-wrap:wrap}html.workspace-studio body[data-view=builder] .canvas-utilities label{width:80px;margin-inline-start:auto}html.workspace-studio body[data-view=builder] #pick-step{width:44px;height:44px;margin:0;font-size:24px}html.workspace-studio body[data-view=builder] .canvas-wrap.list-view .node{width:100%}html.workspace-studio body[data-view=builder] .canvas-wrap.list-view #nodes{padding:10px 20px}html.workspace-studio body[data-view=builder] .canvas-wrap.list-view .trigger-card{width:calc(100% - 40px)}}
html.workspace-studio body dialog.preview-docked{z-index:40}
/* Remove remaining dark surfaces from the legacy theme across operational flows. */
html.workspace-dashboard body :is(.inbox-layout,.inbox-list,.inbox-item,.inbox-detail,.inbox-messages,.inbox-reply,.post-card,.post-picker,.post-selection,.oauth-connect-panel,.roadmap-note,.diagnostics-panel,.advanced-settings,.channel-detail,.diagnostic-grid>div,.oauth-steps li){background:#fff;color:var(--ink);border-color:var(--line)}
html.workspace-dashboard body :is(.inbox-item span,.inbox-detail-head small,.inbox-placeholder,.inbox-readonly,.post-card-copy small,.technical-details){color:var(--muted)}
html.workspace-dashboard body .inbox-item:hover{background:#f5f7fb}
html.workspace-dashboard body .inbox-item[aria-current=true]{background:#eaf0ff;border-color:#b4c7f9}
html.workspace-dashboard body .inbox-message{background:#f0f2f5;color:var(--ink)}
html.workspace-dashboard body .inbox-message.agent{background:#e8efff;color:var(--ink)}
html.workspace-dashboard body :is(.editor-step,.setup-complete){background:#edf2ff;color:#244de0;border-color:#cbd7f5}
html.workspace-dashboard body #campaign-dialog :is(select,select option,input,textarea,.actions,.post-picker,.post-card,.post-selection){background:#fff;color:var(--ink);border-color:var(--control-border)}
html.workspace-dashboard body #campaign-form :is(.wizard-progress,.wizard-review){background:#f5f7fb;color:var(--ink);border-color:var(--line)}
html.workspace-studio body :is(.more-actions>div,.template-sample,.template-steps span,.preview-chat,.simulation-header,.simulation-composer,.bubble,dialog pre){background:#f5f7fb;color:var(--ink);border-color:var(--line)}
html.workspace-studio body .bubble{background:white}
html.workspace-studio body .bubble.customer{background:#e8efff;border-color:#cbd7f5}
html.workspace-studio body .simulation-state{color:var(--muted)}
html.workspace-studio body .tabs [aria-current]{background:#eaf0ff;color:#244de0;border-color:#cbd7f5}
html.workspace-studio body .node:hover:not(:disabled){background:#fff;border-color:#0866df}
html.workspace-studio body .edge-label{fill:#536174;stroke:#f3f4f6}
html.workspace-chatbot body :is(.release-note,.setup-steps,.setup-card,.privacy-note,.faq-row,.review-summary details,.channel-activation-card,.ai-status,.ai-consent,.answer-preview,.save-bar){background:#fff;color:var(--ink);border-color:var(--line)}
html.workspace-chatbot body :is(.knowledge-health li strong,.setup-steps span,#test-progress){color:var(--muted)}
html.workspace-chatbot body :is(.setup-steps button[aria-current],.sample-questions button,.number){background:#edf2ff;color:#244de0;border-color:#cbd7f5}
/* Editor parity: branch ports, group tools and message-by-message Basic Builder. */
html.workspace-studio body[data-view=builder] .connection-dot{width:44px;height:34px;min-height:34px;border-radius:8px;padding:2px;font-size:9px;line-height:1.2;overflow:hidden;box-shadow:0 1px 3px #1b2b4820}
html.workspace-studio body[data-view=builder] .entry-connector{position:absolute;left:286px;top:158px;width:44px;height:44px;padding:0;border-radius:50%;border:2px solid #94a6be;background:#fff;color:#0866df;z-index:2}
html.workspace-studio body[data-view=builder] .canvas-wrap.list-view .entry-connector{display:none}
html.workspace-studio body[data-view=builder] .selection-tools{position:absolute;inset-inline-start:330px;bottom:48px;z-index:5;display:flex;gap:6px;align-items:center;flex-wrap:wrap;background:white;border:1px solid var(--line);border-radius:8px;padding:8px;box-shadow:0 4px 14px #17203314;max-width:calc(100% - 360px)}
html.workspace-studio body[data-view=builder] .selection-tools button{font-size:11px;min-height:36px;padding:6px 10px}
html.workspace-studio body[data-view=builder] .selection-tools span{font-size:12px;padding-inline:6px}
html.workspace-studio body[data-view=builder] .node.selected{border-color:#0866df;box-shadow:0 0 0 2px #0866df35}
html.workspace-studio body.connecting-steps .node{cursor:crosshair}
html.workspace-studio body .selection-marquee{position:fixed;z-index:35;pointer-events:none;background:#0866df16;border:1px solid #0866df}
html.workspace-studio body .connection-drag-preview{position:fixed;inset:0;width:100vw;height:100dvh;pointer-events:none;z-index:45;overflow:visible}
html.workspace-studio body .connection-drag-preview path{stroke:#0866df;stroke-width:2.5;fill:none;stroke-dasharray:6 4}
html.workspace-studio body[data-view=builder] .basic-view{height:100%;min-height:0;display:grid;grid-template-columns:220px minmax(0,1fr);overflow:hidden;background:#f5f6f8}
html.workspace-studio body[data-view=builder] #basic-outline{padding:24px 12px;background:white;border-inline-end:1px solid var(--line);overflow:auto;display:flex;flex-direction:column;gap:8px}
html.workspace-studio body[data-view=builder] #basic-outline h2{font-size:15px;margin:0 0 12px;padding-inline:8px}
html.workspace-studio body[data-view=builder] #basic-outline button{width:100%;text-align:start;font-size:12px;padding:10px;border-color:transparent;background:#fff;white-space:normal}
html.workspace-studio body[data-view=builder] #basic-outline button[aria-current=step]{background:#edf2ff;color:#244de0;border-color:#cbd7f5}
html.workspace-studio body[data-view=builder] .basic-group-label{font-size:11px;color:var(--muted);margin:16px 8px 4px}
html.workspace-studio body[data-view=builder] #basic-content{padding:60px max(24px,8%) 40px;overflow:auto;min-width:0}
html.workspace-studio body[data-view=builder] .basic-message-heading{display:flex;gap:12px;align-items:center;flex-wrap:wrap;max-width:520px;margin:auto}
html.workspace-studio body[data-view=builder] .basic-message-heading h2{font-size:19px;margin:0;flex:1}
html.workspace-studio body[data-view=builder] #basic-content>.hint{max-width:520px;margin:14px auto 24px}
html.workspace-studio body[data-view=builder] .basic-message-card{background:#fff;border:1px solid #dce0e6;border-radius:12px;max-width:520px;margin:auto;padding:24px;box-shadow:0 2px 5px #17203309}
html.workspace-studio body[data-view=builder] .basic-message-card textarea{min-height:200px;background:#f7f8fa;line-height:1.6;font-size:15px}
html.workspace-studio body[data-view=builder] .basic-paths{display:grid;gap:12px;margin-top:24px}
html.workspace-studio body[data-view=builder] .basic-path{display:grid;gap:6px;border-top:1px solid var(--line);padding-top:12px}
html.workspace-studio body[data-view=builder] .basic-path span{font-size:12px;color:var(--muted)}
html.workspace-studio body[data-view=builder] .basic-path button{background:#f5f8ff;border:1px solid #cbd7f5;color:#244de0;text-align:start;min-height:44px;white-space:normal;overflow-wrap:anywhere}
html.workspace-studio body[data-view=builder] .basic-controls{display:flex;justify-content:space-between;gap:12px;max-width:520px;margin:20px auto}
html.workspace-studio body[data-view=builder][data-builder-mode=basic] .canvas-tools{top:12px}
html.workspace-studio body[data-view=builder][data-builder-mode=basic] .canvas-utilities>:not(#basic-toggle):not(#pick-step):not(#basic-steps){display:none}
html.workspace-studio body[data-view=builder][data-builder-mode=basic] #basic-toggle{white-space:nowrap}
html.workspace-studio body[data-view=builder] #publish:disabled{background:#e7edfa;color:#65728b;border-color:#d7deea}
@media(max-width:1100px){html.workspace-studio body[data-view=builder] .basic-view{grid-template-columns:170px minmax(0,1fr)}html.workspace-studio body[data-view=builder] #basic-content{padding:100px 20px 30px}}
@media(max-width:700px){html.workspace-studio body[data-view=builder] .selection-tools{position:relative;inset:auto;order:-1;max-width:100%;margin:8px 12px;gap:8px}html.workspace-studio body[data-view=builder] .selection-tools button{min-height:44px}html.workspace-studio body[data-view=builder] .basic-view{display:flex;flex-direction:column;height:auto;overflow:visible}html.workspace-studio body[data-view=builder] #basic-outline{max-height:230px;border:0;border-bottom:1px solid var(--line);padding:16px}html.workspace-studio body[data-view=builder] #basic-content{padding:24px 16px}html.workspace-studio body[data-view=builder] .basic-message-card{padding:16px}html.workspace-studio body[data-view=builder] .basic-controls{flex-wrap:wrap}html.workspace-studio body[data-view=builder] .canvas-utilities #basic-toggle{padding:8px}html.workspace-studio body[data-view=builder] .basic-message-heading .badge{display:none}}
@media(pointer:coarse){html.workspace-studio body[data-view=builder] .connection-dot{min-height:44px;height:44px}}
/* E-B02: Basic Builder's content editor and central phone preview. */
html.workspace-studio body[data-view=builder][data-builder-mode=basic] .editor{grid-template-columns:380px minmax(0,1fr)}
html.workspace-studio body[data-view=builder][data-builder-mode=basic] .basic-view{display:block;position:relative}
html.workspace-studio body[data-view=builder][data-builder-mode=basic] #basic-content{height:100%;padding-top:65px}
html.workspace-studio body[data-view=builder][data-builder-mode=basic] #basic-outline{position:absolute;top:80px;inset-inline-end:150px;max-height:calc(100% - 100px);width:250px;z-index:4;border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow-float)}
html.workspace-studio body[data-view=builder][data-builder-mode=basic] .canvas-utilities #basic-steps{display:block}
html.workspace-studio body[data-view=builder][data-builder-mode=basic] .basic-message-card{width:min(100%,360px);min-height:480px;padding:16px;border:8px solid #fff;border-radius:36px;background:#fff;box-shadow:0 0 0 8px #ffffff70,0 14px 35px #34435d0a;overflow:hidden;margin-block:28px}
html.workspace-studio body[data-view=builder][data-builder-mode=basic] .basic-phone-header{border-bottom:1px solid var(--line);padding:12px 0 20px;display:grid;gap:4px;text-align:center;font-size:14px;font-weight:600}
html.workspace-studio body[data-view=builder][data-builder-mode=basic] .basic-phone-header small{color:var(--muted);font-size:11px;font-weight:400}
html.workspace-studio body[data-view=builder][data-builder-mode=basic] .basic-live-bubble{margin-top:24px;background:#f0f2f5;border-radius:12px;padding:14px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}
html.workspace-studio body[data-view=builder][data-builder-mode=basic] .inspector-help{margin:12px 0 20px;font-size:12px}
html.workspace-studio body[data-view=builder][data-builder-mode=basic] .basic-controls{max-width:360px}
@media(max-width:1000px){html.workspace-studio body[data-view=builder][data-builder-mode=basic] .editor{grid-template-columns:300px minmax(0,1fr)}html.workspace-studio body[data-view=builder][data-builder-mode=basic] #basic-content{padding:100px 20px 30px}}
@media(max-width:700px){html.workspace-studio body[data-view=builder][data-builder-mode=basic] .editor{display:flex}html.workspace-studio body[data-view=builder][data-builder-mode=basic] #basic-content{padding:24px 16px}html.workspace-studio body[data-view=builder][data-builder-mode=basic] #basic-outline{position:fixed;top:210px;inset-inline:16px;width:auto;max-height:45dvh}html.workspace-studio body[data-view=builder][data-builder-mode=basic] .basic-message-card{min-height:380px}html.workspace-studio body[data-view=builder][data-builder-mode=basic] #block-editor{order:-1;max-height:50dvh;overflow:auto;border-bottom:1px solid var(--line)}html.workspace-studio body[data-view=builder][data-builder-mode=basic] #basic-steps{min-width:70px}}

/* Apple HIG web adaptation: compact actions remain readable and reachable. */
html.workspace-studio body[data-view=builder] .connection-dot{min-width:44px;min-height:44px;height:44px;font-size:11px}
html.workspace-studio body[data-view=builder] .selection-tools button{min-height:44px;font-size:12px}
html.workspace-studio body[data-view=builder] .builder-meta,html.workspace-studio body[data-view=builder] .board-foot{font-size:12px}
html.workspace-studio body[data-view=builder] .step-picker [data-step]{white-space:normal;overflow-wrap:anywhere}
html.workspace-account body.oauth-page{background:#f7f8fa;color:#202124}
html.workspace-account .oauth-shell{background:#f7f8fa}
html.workspace-account .oauth-card{background:#fff;color:#202124}
html.workspace-account .oauth-card :is(h1,h2,label){color:#202124}
html.workspace-account .oauth-card :is(p,.hint,.lead){color:#596170}
html.workspace-account .oauth-card :is(input:not([type=checkbox]),select,textarea){background:#fff;color:#202124;border:1px solid #8c939e;border-radius:8px;min-height:48px;font-size:16px}
html.workspace-account .oauth-card .primary{background:#244de0;color:#fff;border-color:#244de0;min-height:48px}
html.workspace-account .oauth-card a{color:#244de0;text-underline-offset:3px}
html.workspace-account .oauth-intro{background:#191c22}
html.workspace-account .oauth-intro h2{color:#fff}
html.workspace-account .oauth-intro p{color:#d2d7e1}
html.workspace-account :is(a,button,input,select,textarea):focus-visible{outline:3px solid #315efb;outline-offset:3px}
@media(max-width:760px){html.workspace-account .oauth-intro{padding:24px;min-height:0}html.workspace-account .oauth-card{padding:28px 24px}html.workspace-account #account-links a{display:inline-block;padding-block:8px}}
@media(prefers-reduced-transparency:reduce){html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot,.workspace-account) :is(dialog::backdrop,.module-topbar,.topbar){backdrop-filter:none}}
@media(prefers-contrast:more){html:is(.workspace-dashboard,.workspace-module,.workspace-studio,.workspace-chatbot){--muted:#414751;--line:#858b94;--control-border:#5a626f}}

html.workspace-account .oauth-brand{color:#202124}
html.workspace-account .oauth-brand .brand-mark{background:#edf2ff;color:#244de0}
html.workspace-account #account-links a,html.workspace-account #terms-label a{color:#244de0}

@media(min-width:761px){html.workspace-account .oauth-brand{color:#fff}}
