/* Shared PC palette for every page, form and dialog. */
.auth-client-download{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:16px;padding:8px 12px;min-height:36px;border-radius:8px;color:var(--secondary);text-decoration:none}@media(hover:hover) and (pointer:fine){.auth-client-download:hover{color:var(--text);outline:none;box-shadow:none}}.auth-client-download:focus-visible{color:var(--text);outline:none;box-shadow:none}
:root{color-scheme:dark;--primary:var(--accent);--green:var(--accent);--blue:var(--accent);background:var(--page);color:var(--text)}
body{background:var(--page);color:var(--text)}a{color:var(--primary)}h1,h2,h3,strong{color:var(--text)}
.workspace-shell{--navigation-icon-size:20px;display:grid;grid-template-columns:60px minmax(0,1fr);min-height:100dvh;background:var(--page)}
.workspace-shell .sidebar{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;position:fixed;inset:0 auto 0 0;width:60px;height:100dvh;padding:12px 8px;gap:12px;background:var(--surface);border-right:1px solid var(--border);overflow:hidden}
.workspace-shell .brand{grid-row:1;align-self:start;padding:0;justify-content:center}.workspace-shell .brand>div:last-child{display:none}.brandmark svg{display:block;width:27px;height:27px}.workspace-shell .brandmark{display:grid;place-items:center;width:30px;height:30px;background:transparent}
.workspace-shell .sidebar nav{display:flex;flex-direction:column;justify-content:flex-start;gap:6px;min-height:0;width:100%;overflow-y:auto;overflow-x:hidden;grid-column:auto;grid-row:2}
.workspace-shell .navitem{position:relative;display:flex;align-items:center;justify-content:center;width:40px;height:36px;min-height:36px;flex-shrink:0;margin:0;padding:6px;border-radius:10px;color:var(--muted);background:transparent}
.workspace-shell .nav-label{display:none}.workspace-shell .navitem svg{width:var(--navigation-icon-size);height:var(--navigation-icon-size)}@media(hover:hover) and (pointer:fine){.workspace-shell .navitem:hover{color:var(--text)}}.workspace-shell .navitem.active{color:var(--text)}
.workspace-shell .navitem .count{position:absolute;right:0;top:0;margin:0;padding:0 3px;min-width:12px;font-size:var(--font-caption);line-height:14px;background:var(--primary);color:var(--page);border-radius:5px}
.workspace-shell .sidebar-account{display:flex;flex-direction:column;align-self:end;gap:4px;max-width:none;margin:0;padding:0;grid-column:auto;grid-row:3}.workspace-shell .sidebar-account .account-label{display:none}.workspace-shell .sidebar-account .avatar{display:grid;width:26px;height:26px;background:var(--field);color:var(--text);font-size:var(--font-caption)}.workspace-shell .sidebar-account .userbox{padding:4px;flex:none;min-height:34px}.workspace-shell .sidebar-account .account-logout{height:32px;flex:none;color:var(--muted)}@media(hover:hover) and (pointer:fine){.workspace-shell .sidebar-account button:hover{}}
.workspace-shell .main{min-width:0}.workspace-shell:not(.workflow-home) .content{max-width:1600px;padding:20px 24px;margin:auto}
.panel{background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:none}.panelhead{background:var(--surface);border-color:var(--border)}.panelhead h2{color:var(--text);font-size:var(--font-dialog-title)}.panelhead small,.platformlabel,.widehint,.hint,.bottomnote,.legend,.chartlabels,.barvalue,.field,.field small,.authnote,.detailgrid dt{color:var(--muted)}
button{color:var(--text);background:var(--field);border:0;border-radius:9px;box-shadow:none}button:not(.ghost){min-height:32px}button.small{min-height:30px;font-size:var(--font-body);padding:6px 10px}@media(hover:hover) and (pointer:fine){button:hover:not(:disabled){color:var(--text)}}button.primary{background:var(--primary);color:var(--page);border-color:transparent;font-weight:600}@media(hover:hover) and (pointer:fine){button.primary:hover:not(:disabled){color:var(--page)}}button.ghost{background:transparent;color:var(--secondary)}button.danger{background:var(--danger-bg);color:var(--danger)}button:disabled{opacity:.4}
input,select,textarea{background:var(--field);border:1px solid transparent;border-radius:8px;color:var(--text);font-size:var(--font-body);box-shadow:none}input::placeholder,textarea::placeholder{color:var(--muted)}input[type=checkbox],input[type=radio]{accent-color:var(--primary)}input:focus,select:focus,textarea:focus{outline:none;}input[type=file]::file-selector-button{background:var(--hover);color:var(--text);border:0;border-radius:6px;padding:6px 10px;margin-right:8px;cursor:pointer}
.tabs .tab,.design-view-tabs [role=tab],.library-tabs [role=tab]{background:transparent;color:var(--secondary);border:0}.tabs .tab.active{color:var(--text)}.tabs [role=tab][aria-selected=true]{color:var(--text)}.design-view-tabs [aria-selected=true]{color:var(--text)}.library-tabs [aria-selected=true]{color:var(--text)}
.stat,.stat:first-child,.stats .stat:nth-child(2),.stats .stat:nth-child(3){background:var(--card);border-color:var(--border)}.stat .value{color:var(--text)}.stat .label,.stat .foot,.stat .unit,.stat .stat-icon{color:var(--secondary)}@media(hover:hover) and (pointer:fine){.stats .stat-link:hover{box-shadow:none}}
th{background:var(--field);color:var(--secondary);border-color:var(--border)}td{color:var(--secondary);border-color:var(--border)}td strong{color:var(--text)}@media(hover:hover) and (pointer:fine){tr:hover td{}}.workcell .thumb{background:var(--field);color:var(--secondary)}button.work-title-button,button.record-title-button{color:var(--text);background:transparent}@media(hover:hover) and (pointer:fine){button.work-title-button:hover:not(:disabled),button.record-title-button:hover:not(:disabled){color:var(--primary)}}@media(hover:hover) and (pointer:fine){.work-preview-button:hover:not(:disabled){}}
.badge{background:var(--field);color:var(--secondary);border-radius:6px;font-size:var(--font-caption)}.badge.review,.badge.waiting_connection,.badge.paused{background:var(--warning-bg);color:var(--warning)}.badge.approved,.badge.completed,.badge.submitted{background:var(--success-bg);color:var(--success)}.badge.changes,.badge.needs_attention,.badge.failed{background:var(--danger-bg);color:var(--danger)}.badge.queued,.badge.running{background:var(--field);color:var(--secondary)}
.work-selection-bar,.list-selection-bar{background:var(--surface);border-color:var(--border)}.work-selection-bar .platformlabel,.list-selection-bar .platformlabel{color:var(--muted)}.widehint,.table-note,.modalhead,.modalfoot{border-color:var(--border)}.banner{background:var(--warning-bg);border-color:var(--border);color:var(--warning)}.banner a{color:var(--primary)}.hint,.security{background:var(--field);color:var(--secondary)}.empty{color:var(--secondary)}.empty strong{color:var(--secondary)}.empty .empty-icon{background:var(--field);color:var(--secondary)}.bar{background:var(--accent)}.track{background:var(--field)}.track i{background:var(--accent)}.staterow .rowlabel,.staterow b{color:var(--secondary)}@media(hover:hover) and (pointer:fine){.state-link:hover{}}.chart:before{color:var(--muted)}.legend i{background:var(--primary)}
dialog{background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:14px;box-shadow:0 20px 80px #0007}dialog::backdrop{background:#0009}.modalhead{background:var(--surface)}.modalhead h2{color:var(--text)}.modalbody{background:var(--surface)}.detailgrid dd{color:var(--text)}.record-full-text,.design-prompt-text,.wf-text-preview{background:var(--field);color:var(--text)}.error,[role=alert]{color:var(--danger)}#toast{background:var(--primary);color:var(--page);box-shadow:0 6px 30px #0004}
.auth{background:var(--page);border:0}.authcard{background:var(--surface);border:1px solid var(--border);box-shadow:0 12px 48px #0002;border-radius:14px}.authcard .brand{color:var(--text)}.authcard .brandmark{background:transparent}.authcard .brand strong,.authcard h1{color:var(--text)}.authcard p,.authcard .brand small,.authcard label{color:var(--secondary)}.authcard input{background:var(--field);color:var(--text)}
.reference-upload{background:var(--field);border-color:transparent;color:var(--text)}@media(hover:hover) and (pointer:fine){.reference-upload:hover{}}.design-create-panel textarea,.design-create-panel input,.design-create-panel select{background:var(--field);color:var(--text)}.design-size-field output{color:var(--secondary)}
.library-toolbar>input{background:var(--field);color:var(--text)}.library-toolbar>label{color:var(--secondary)}.review-note{background:var(--card);color:var(--text)}.review-note small,.editor-preview figcaption{color:var(--muted)}.editor-toolbar .active{color:var(--primary)}.editor-image{background:repeating-conic-gradient(var(--border) 0 25%,var(--surface) 0 50%) 0/16px 16px}
.platform-settings{--platform-gap:16px}.platform-settings .iconbtn{color:var(--secondary)}@media(hover:hover) and (pointer:fine){.platform-settings .iconbtn:hover:not(:disabled){color:var(--text)}}.platform-session-actions .small{background:var(--field);color:var(--text)}.platform-browser{border-color:var(--border)}.platform-toolbar{background:var(--surface);border-color:var(--border)}@media(hover:hover) and (pointer:fine){.platform-nav button.small,.platform-nav button.small:hover:not(:disabled){color:var(--text)}}@media(hover:hover) and (pointer:fine){.platform-nav button.small:hover:not(:disabled){}}.platform-toolbar select{background:var(--field);color:var(--secondary)}.platform-tool-actions button{background:var(--field);color:var(--text)}@media(hover:hover) and (pointer:fine){.platform-tool-actions button:hover{}}.platform-history-link{color:var(--primary);background:transparent}@media(hover:hover) and (pointer:fine){.platform-history-link:hover{}}.platform-feedback{color:var(--muted)}.platform-title>svg{color:var(--primary)}
.workspace-shell:not(.workflow-home) .wf-stage{background-color:var(--page);background-image:radial-gradient(#51483d .65px,transparent .65px)}.workspace-shell:not(.workflow-home) .wf-node{background:var(--card);border-color:var(--border);color:var(--text)}.workspace-shell:not(.workflow-home) .wf-node-title{background:#3c352d}.workspace-shell:not(.workflow-home) .wf-port{color:var(--secondary)}.workspace-shell:not(.workflow-home) .wf-port i{background:var(--primary);border-color:var(--page)}.workspace-shell:not(.workflow-home) .wf-node-fields :is(input,select,textarea){background:var(--field);color:var(--text)}.workspace-shell:not(.workflow-home) .wf-wire{stroke:var(--accent)}.workspace-shell:not(.workflow-home) .wf-wire.is-flowing{stroke:var(--accent-hover)}.workspace-shell:not(.workflow-home) .wf-node.is-selected{}.workspace-shell:not(.workflow-home) .wf-inspector,.workspace-shell:not(.workflow-home) .wf-zoom{background:var(--card);color:var(--text);border-color:var(--border)}
@media(max-width:760px){.workspace-shell{grid-template-columns:48px minmax(0,1fr);display:grid}.workspace-shell .sidebar{width:48px;padding:10px 4px;gap:10px}.workspace-shell .navitem{width:38px;height:34px;min-height:34px;padding:8px 10px}.workspace-shell .sidebar nav{gap:5px}.workspace-shell:not(.workflow-home) .content{padding:14px 12px}.workspace-shell .main{min-width:0}.panelhead,.panelbody{padding:14px}.authcard{padding:24px 20px}.workspace-shell .sidebar-account .avatar{display:grid}}
@media(prefers-reduced-motion:reduce){button,.stat-link{transition:none}}

.wf-footer #wfMessage[role=status]{color:var(--muted)}

/* Body copy must follow the dark palette as well as headings and table cells. */
p,.eyebrow,.footerlink,.role-note,.loading{color:var(--secondary)}

/* Node type colours belong only to sockets and links. */
.workspace-shell .wf-node[data-category]>.wf-node-title{background:var(--wf-category-header);color:var(--text)}
.wf-wire.is-flowing{filter:brightness(1.2)}

.workspace-shell .wf-node[data-category]{background:var(--wf-category-body)}
.workspace-shell .wf-node[data-category] .wf-node-fields :is(input,textarea,select){background:var(--wf-category-field)}
.workspace-shell button.wf-port{min-height:23px;height:23px}
.workspace-shell button.wf-collapse{min-height:16px;height:16px}
.wf-node-fields:empty{display:none}
.wf-node:has(>.wf-node-fields:empty)>.wf-ports{margin-bottom:10px}

.workspace-shell .wf-node[data-category]>.wf-node-title>span{color:var(--secondary)}

.wf-node-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.wf-node-actions>button{display:inline-flex;align-items:center;gap:5px}.wf-node-actions svg,.wf-download-file svg{width:15px;height:15px}.wf-download-file{display:inline-flex;align-items:center;gap:5px;font-size:var(--font-caption)}.wf-result-image{display:block;max-width:100%;max-height:72vh;margin:auto;object-fit:contain}.wf-node[data-category=image] .wf-preview{height:auto;max-height:240px;min-height:100px;object-fit:contain}

/* Canvas authoring uses the same typed-port validation for clicks and drags. */
.wf-context-menu{position:absolute;z-index:30;width:220px;padding:6px;background:var(--card);color:var(--text);border:1px solid var(--control-border);border-radius:12px;box-shadow:0 12px 30px #0006;overflow:auto;scrollbar-width:none}
.wf-context-menu::-webkit-scrollbar{display:none}.wf-context-menu input{width:100%;min-height:32px;margin:0 0 6px;padding:7px 10px;background:var(--page);color:var(--text);border:0;border-radius:7px;font-size:var(--font-caption)}.wf-context-menu button{display:flex;align-items:center;gap:8px;width:100%;text-align:left;padding:7px 10px;min-height:32px;font-size:var(--font-caption);color:var(--text);background:transparent;border:0;border-radius:7px}.wf-context-menu button[hidden]{display:none}@media(hover:hover) and (pointer:fine){.wf-context-menu button:hover{}}.wf-context-menu svg{width:15px;height:15px;flex-shrink:0}
.wf-port{touch-action:none}.wf-port.is-connectable i{}.wf-port.is-incompatible{opacity:.38}.wf-port.is-connectable{cursor:crosshair}

.wf-context-menu .wf-context-list{max-height:min(420px,55vh);overflow:auto;scrollbar-width:none}.wf-context-list::-webkit-scrollbar{display:none}.wf-context-menu [data-wf-category] span{flex:1}.wf-context-menu .wf-context-back{margin-bottom:5px;border-bottom:1px solid var(--control-border);border-radius:6px 6px 0 0;padding-bottom:10px;color:#ead0a5}.wf-context-heading{padding:9px 10px 3px;color:var(--accent);font-size:var(--font-caption)}.wf-context-empty{padding:16px 10px;color:#d0c5b6;font-size:var(--font-caption)}

/* Shared web palette follows the neutral canvas; UI logical pixels, artwork excluded. */
:root{--font-caption:12px;--font-body:13px;--font-section:14px;--font-dialog-title:16px;--font-page-title:18px;--font-ui:"Microsoft YaHei UI","Microsoft YaHei","PingFang SC",sans-serif;--line-body:20px;--line-title:26px;--canvas:#1B1B1B;--page:#1B1B1B;--surface:#202020;--card:#333333;--field:#292929;--hover:#333333;--border:#3B3B3B;--control-border:#777777;--text:#DDDDDD;--secondary:#BDBDBD;--muted:#AAAAAA;--accent:#69A8FF;--accent-hover:#91BFFF;--on-accent:#1B1B1B;--success:#AFD0B8;--success-bg:#2E4538;--warning:#E2C18C;--warning-bg:#51412C;--danger:#EFB4A5;--danger-bg:#50332D;--info:#B8CEE8;--info-bg:#304154;--button-height:32px;--button-radius:10px;--icon-size:16px}

html{font-family:var(--font-ui);font-size:var(--font-body);line-height:var(--line-body)}
body,button,input,textarea,select{font-family:var(--font-ui);font-size:var(--font-body);line-height:var(--line-body)}
h1{font-size:var(--font-page-title);line-height:var(--line-title)}
h2,dialog .modalhead h2{font-size:var(--font-dialog-title);line-height:var(--line-title)}
h3,h4,h5,h6{font-size:var(--font-section);line-height:var(--line-body)}
small,sup,sub{font-size:var(--font-caption)}
button{min-width:64px;min-height:var(--button-height);padding:5px 12px;border-radius:var(--button-radius);gap:6px;color:var(--text);background:var(--field)}
button.small{min-width:56px;min-height:28px;padding:3px 10px;font-size:var(--font-body)}
button.primary{min-height:36px;min-width:80px;padding-inline:16px;background:var(--accent);color:var(--on-accent)}@media(hover:hover) and (pointer:fine){
button:hover:not(:disabled){color:var(--text)}}@media(hover:hover) and (pointer:fine){
button.primary:hover:not(:disabled){color:var(--on-accent)}}

button:disabled{opacity:.4}
button.danger{color:var(--danger);background:var(--danger-bg)}
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea{min-height:32px;padding:6px 10px;border:1px solid var(--control-border);border-radius:8px;background:var(--field);color:var(--text);font-size:var(--font-body);line-height:var(--line-body)}
input::placeholder,textarea::placeholder{color:var(--secondary);opacity:1}
input[aria-invalid=true],textarea[aria-invalid=true],select[aria-invalid=true]{border-color:var(--danger)}
input[type=checkbox],input[type=radio]{width:16px;height:16px;accent-color:var(--accent)}
svg.icon{width:16px;height:16px;flex-shrink:0;stroke-width:1.75}
.stat .stat-icon svg.icon{width:24px;height:24px}
button.small svg.icon,.workflow-home .wf-home-actions button svg.icon,.workflow-home .wf-home-tools button svg.icon{width:16px;height:16px}
.workflow-home #wfBreadcrumb button{min-height:28px;height:auto}
button svg.icon{width:16px;height:16px}
.workspace-shell .navitem svg.icon{width:var(--navigation-icon-size);height:var(--navigation-icon-size)}
.workspace-shell .sidebar-account .account-logout{padding:0;display:flex;align-items:center;justify-content:center}.workspace-shell .sidebar-account .account-logout svg.icon{width:var(--navigation-icon-size);height:var(--navigation-icon-size);margin:0}
.workspace-shell .navitem{min-height:36px;padding:6px;border-radius:10px}
.workspace-shell .navitem .count{font-size:var(--font-caption);line-height:16px;min-width:16px}
.workspace-shell .sidebar-account .avatar{font-size:var(--font-caption)}
.workspace-shell .panelhead h2{font-size:var(--font-dialog-title)}
.workspace-shell .stat .value,.authcard .brand strong,.authcard h1{font-size:var(--font-page-title);line-height:var(--line-title)}
.workspace-shell .iconbtn,.workspace-shell .wf-icon,.workspace-shell .wf-home-tools button,.workspace-shell .wf-zoom button{width:32px;height:32px;min-width:32px;min-height:32px;padding:0;display:inline-flex;align-items:center;justify-content:center}
.workspace-shell .wf-collapse{width:28px;min-width:28px;height:28px;min-height:28px;padding:0;display:inline-flex;align-items:center;justify-content:center}
.workspace-shell button.wf-port{min-width:0;height:23px;min-height:23px;padding:0;border-radius:0;background:transparent;translate:none}
.workspace-shell .sidebar-account :is(.userbox,.account-logout){min-width:28px}
button.work-title-button,button.record-title-button{min-width:0}@media(hover:hover) and (pointer:fine){
.workspace-shell button.wf-port:hover{color:var(--text)}}
.wf-node-title{min-height:36px}.wf-node-title strong{font-size:var(--font-section)}
.workspace-shell .wf-world .wf-node-title strong{font-size:var(--font-section)}
.workspace-shell .wf-world .wf-port,.workspace-shell .wf-world .wf-node-title>span{font-size:var(--font-caption)}
.workspace-shell .wf-world .wf-node-fields,.workspace-shell .wf-world .wf-node-fields :is(input,textarea,select,button,label){font-size:var(--font-body)}
.wf-node-fields :is(input,textarea,select){color:var(--text)}
.wf-context-menu button{min-height:32px;font-size:var(--font-body)}
.wf-context-menu svg.icon,.wf-node-actions svg.icon,.wf-download-file svg.icon{width:16px;height:16px}
.wf-context-menu{background:var(--card);color:var(--text);border-color:var(--control-border)}
.badge.approved,.badge.completed,.badge.submitted{color:var(--success);background:var(--success-bg)}
.badge.review,.badge.waiting_connection,.badge.paused{color:var(--warning);background:var(--warning-bg)}
.badge.changes,.badge.needs_attention,.badge.failed{color:var(--danger);background:var(--danger-bg)}
.badge.queued,.badge.running{color:var(--info);background:var(--info-bg)}
.field small,.field .hint,.wf-node-fields small{color:var(--secondary)}
@media(pointer:coarse){
 .workspace-shell .brand{min-height:44px}
 button:not(.wf-port),.workspace-shell .main button:not(.wf-port),.workspace-shell .navitem,.workspace-shell .iconbtn,.workspace-shell .wf-icon,.workspace-shell .wf-home-tools button,.workspace-shell .wf-zoom button,.workspace-shell .wf-collapse{min-width:44px;min-height:44px}
 input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),.workspace-shell .main input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),.workspace-shell .main select,.workspace-shell .main textarea,select,textarea{min-height:44px}
 label:has(>input[type=checkbox]),label:has(>input[type=radio]){min-height:44px;align-items:center}
 .workspace-shell .sidebar{width:56px;padding-inline:6px}.workspace-shell{grid-template-columns:56px minmax(0,1fr)}
 .workspace-shell .navitem{width:44px}.workspace-shell .sidebar-account .userbox,.workspace-shell .sidebar-account .account-logout{min-width:44px;min-height:44px}
}

.workspace-shell.workflow-home .wf-stage,.workspace-shell:not(.workflow-home) .wf-stage{background-color:var(--canvas)}

/* Focus and selection use surface/text feedback, without an added outline. */
.workspace-shell #wfName{border:0}
body :is(button,a,summary,[tabindex],input,select,textarea):is(:focus,:focus-visible),
.reference-upload:focus-within{outline:0;box-shadow:none;transition:none}
body :is(button,a,summary):focus-visible{color:var(--text)}.workspace-shell :is(button,a,summary):focus-visible{color:var(--text)}
.reference-upload:focus-within{color:var(--text)}
body input:focus:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]){box-shadow:none}body select:focus{box-shadow:none}body textarea:focus{box-shadow:none}.workspace-shell .wf-node-fields select:focus{box-shadow:none}
button.primary:focus-visible{color:var(--on-accent)}.workspace-shell button.primary:focus-visible{color:var(--on-accent)}
button.danger:focus-visible{color:var(--danger)}

.workspace-shell .wf-node.is-selected>.wf-node-title strong{color:var(--accent)}
.workflow-home .wf-history-card.is-current strong{color:var(--accent)}

/* Interaction states never add a surface or border; keyboard focus stays visible. */
body :is(a,button,summary,input,select,textarea,[tabindex]):focus-visible{}
body :is(button,a,summary,[tabindex]):focus-visible>svg{}
.workspace-shell .navitem.active{color:var(--accent)}
.tabs :is(.tab.active,[role=tab][aria-selected=true]),.editor-toolbar .active{color:var(--accent)}

/* Pointer and keyboard state cues change only foreground colour. */
body :is(a,button,summary,input,select,textarea,[tabindex]):is(:hover,:focus,:focus-visible){color:var(--accent-hover)!important}
body button.primary:is(:hover,:focus,:focus-visible),.workspace-shell button.primary:is(:hover,:focus,:focus-visible){color:#000!important}

body :is(button,a,summary,[tabindex]):is(:hover,:focus,:focus-visible) :is(svg.icon,span,strong,small){color:inherit!important}
body button.danger:is(:hover,:focus,:focus-visible){color:#FFE5DD!important}
/* Native checked controls keep a fixed surface; only their marker colour changes. */
input[type=checkbox],input[type=radio]{appearance:none;position:relative;display:inline-grid;place-content:center;width:16px;height:16px;min-height:16px;padding:0;border:1px solid var(--control-border);background:var(--field);vertical-align:middle;flex-shrink:0}
input[type=checkbox]{border-radius:3px}input[type=radio]{border-radius:50%}
input[type=checkbox]::before,input[type=radio]::before{font-size:12px;line-height:14px;color:transparent}
input[type=checkbox]::before{content:'✓'}input[type=radio]::before{content:'●';font-size:10px}
input[type=checkbox]:checked::before,input[type=radio]:checked::before{color:var(--accent)}
input[type=checkbox]::after,input[type=radio]::after{content:'·';position:absolute;top:-9px;left:4px;font-size:14px;line-height:10px;color:transparent}
input[type=checkbox]:focus-visible::after,input[type=radio]:focus-visible::after{color:var(--accent-hover)}
label:has(>input:is(:hover,:focus-visible)){color:var(--accent-hover)}

/* Compact workflow command; static surface with colour-only interaction cues. */
body .wf-toolbar button.wf-run-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:76px;height:32px;min-height:32px;padding:0 12px;background:var(--field);color:var(--accent);border:0;border-radius:6px;font-size:var(--font-body);font-weight:500;line-height:1;white-space:nowrap}
body .wf-toolbar .wf-run-button svg.icon{width:16px;height:16px;margin:0;flex:none;stroke:none}
.workspace-shell .sidebar-account .avatar{border-radius:50%;color:inherit}
.workspace-shell .sidebar-account .avatar svg.icon{width:18px;height:18px;margin:0}
.member-menu{position:fixed;inset:auto;margin:0;width:224px;max-width:calc(100vw - 16px);padding:8px;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:10px;box-shadow:0 8px 28px #0004}
.member-menu-heading{display:flex;flex-direction:column;gap:3px;padding:8px 10px 12px;margin-bottom:4px;border-bottom:1px solid var(--border);overflow-wrap:anywhere}
.member-menu-heading strong{font-size:var(--font-body);font-weight:500}.member-menu-heading small{color:var(--muted);font-size:var(--font-caption)}
.member-menu :is(button,a){display:flex;align-items:center;gap:10px;width:100%;min-height:36px;padding:8px 10px;background:transparent;color:var(--secondary);text-decoration:none;border:0;border-radius:0;font-size:var(--font-body);font-weight:400;text-align:left}
.member-menu svg.icon{width:18px;height:18px;flex:none;margin:0}

#memberPasswordForm{display:flex;flex-direction:column;gap:14px}#memberPasswordForm label{display:flex;flex-direction:column;gap:6px}#memberPasswordForm input{width:100%}

body dialog.member-dialog{width:400px;max-width:calc(100vw - 32px)}

/* Hide scroll tracks without disabling wheel, touch, keyboard or overflow. */
*,*::before,*::after{scrollbar-width:none}
*::-webkit-scrollbar{display:none;width:0;height:0}
/* The browser's legacy native picker is outside card scrollbar styling. */
@supports (appearance:base-select){
 select:not([multiple]):not([size]),select:not([multiple]):not([size])::picker(select){appearance:base-select}
 body select,body .workspace-shell select{border-radius:8px}
 select:not([multiple]):not([size]){display:inline-flex;align-items:center;justify-content:space-between;gap:6px;white-space:nowrap}
 select::picker(select){max-block-size:min(360px,55dvh);padding:6px;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:10px;box-shadow:0 8px 24px #0004;scrollbar-width:none}
 select::picker(select)::-webkit-scrollbar{display:none;width:0;height:0}
 select option{font:inherit;line-height:1.5;min-block-size:32px;padding:7px 10px;margin-block:2px;background:transparent;color:var(--text);border:0;outline:none;box-shadow:none;white-space:nowrap}
 select option:is(:hover,:focus,:checked){color:var(--accent-hover)}
 select option::checkmark{display:none}
 select::picker-icon{content:'';color:inherit;flex-shrink:0;width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin:-3px 2px 0 4px}
}

/* Top-layer pickers do not inherit the canvas transform; match its visible text. */
@supports (appearance:base-select){.wf-world select::picker(select),.wf-world select option{font-size:var(--font-body)}}

.wf-home-breadcrumb{display:flex;align-items:center;gap:3px;margin-right:6px}.wf-home-breadcrumb[hidden]{display:none}
dialog:has(#wfDocumentSettingsForm){width:400px;max-width:calc(100vw - 32px)}
#wfDocumentSettingsForm{display:flex;flex-direction:column;gap:14px}#wfDocumentSettingsForm label{display:flex;flex-direction:column;gap:6px}#wfDocumentSettingsForm input,#wfDocumentSettingsForm select{width:100%}#wfDocumentSettingsForm input{border:0}

.workflow-home .wf-home-tools .wf-run-feedback{display:flex;align-items:center;gap:6px;width:auto;max-width:180px;padding:0 6px;background:transparent;color:var(--muted);white-space:nowrap}
.wf-run-feedback .wf-run-message{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wf-run-feedback[data-status=failed],.wf-run-feedback[data-status=stopped]{color:var(--danger)}
.workflow-home .wf-zoom .wf-graph-count{padding:0 8px 0 4px;font-size:var(--font-caption);color:var(--muted);white-space:nowrap}
dialog:has(#wfRunDetails){width:420px;max-width:calc(100vw - 32px)}#wfRunDetails p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}
@media(max-width:760px){.wf-run-feedback .wf-run-message{display:none}.workflow-home .wf-home-tools .wf-run-feedback{max-width:90px}}

.workflow-home .wf-home-tools{max-width:calc(100% - 16px);left:0;top:0;margin:0}
.wf-tool-unit{display:inline-flex;align-items:center;gap:3px;flex:none;min-width:0}
.workflow-home .wf-home-tools [data-wf-tool=document] select{width:180px;min-width:100px;max-width:180px}
.workflow-home .wf-home-tools .wf-toolbar-grip{width:24px;padding:0;cursor:grab;touch-action:none;background:transparent}
.wf-toolbar-menu{position:relative;flex:none}.wf-toolbar-menu summary{display:grid;place-items:center;list-style:none;cursor:pointer;width:32px;height:32px;background:transparent;color:var(--secondary)}.wf-toolbar-menu summary::-webkit-details-marker{display:none}.wf-toolbar-menu summary .icon{width:16px;height:16px}
.wf-toolbar-overflow{position:absolute;top:38px;right:0;z-index:40;display:flex;flex-direction:column;gap:3px;width:240px;max-width:calc(100vw - 32px);max-height:min(440px,65dvh);overflow:auto;padding:6px;background:var(--surface);border:1px solid var(--border);border-radius:10px;box-shadow:0 8px 24px #0004}
.wf-toolbar-menu-item .wf-tool-unit{width:100%}.workflow-home .wf-home-tools .wf-toolbar-overflow button{display:flex;justify-content:flex-start;align-items:center;gap:8px;width:100%;height:auto;min-height:32px;padding:7px 9px;background:transparent;color:var(--secondary);white-space:normal;text-align:left}.wf-toolbar-overflow .wf-icon .icon{flex:none}
.wf-toolbar-overflow .wf-tool-unit:has(select){flex-wrap:wrap}.wf-toolbar-overflow select{max-width:100%;width:100%}
dialog:has(#wfToolbarConfig){width:460px;max-width:calc(100vw - 32px)}.wf-toolbar-config-list{max-height:min(420px,55dvh);overflow:auto}.wf-toolbar-config-row{display:grid;grid-template-columns:minmax(0,1fr) 32px 32px;gap:4px;align-items:center;padding:3px 0}.wf-toolbar-config-row label{display:flex;align-items:center;gap:8px;min-width:0}.wf-toolbar-config-row button{padding:0;min-width:28px}.wf-toolbar-config-row .icon{margin:0;width:16px;height:16px}
@media(pointer:coarse){.wf-toolbar-menu summary{width:44px;height:44px}}

@media(pointer:coarse){.wf-toolbar-config-row{grid-template-columns:minmax(0,1fr) 44px 44px}}

/* One compact corner menu; no reserved left rail on any workspace page. */
.workspace-shell,.workflow-home.workspace-shell{display:block;grid-template-columns:none}
.workspace-shell .main{width:100%;margin-left:0;grid-column:auto}
.workspace-shell:not(.workflow-home) .content{max-width:none;margin:0;padding:76px 24px 24px}
.workspace-menu-corner{position:fixed;left:12px;top:12px;z-index:25}
.workspace-shell .workspace-menu-trigger{display:flex;align-items:center;justify-content:center;gap:8px;min-width:68px;height:40px;padding:6px 10px;background:var(--surface);color:var(--secondary);border:0}
.workspace-menu-logo{display:block;width:27px;height:27px}.workspace-menu-logo svg{display:block;width:27px;height:27px}.workspace-menu-trigger svg.workspace-menu-arrow{width:12px;height:12px;margin:0}
.workspace-nav-menu{position:fixed;inset:auto;margin:0;width:248px;max-width:calc(100vw - 24px);max-height:min(680px,calc(100dvh - 72px));padding:8px;background:var(--surface);color:var(--text);border:1px solid var(--border);box-shadow:0 8px 28px #0004;overflow:hidden}
.workspace-nav-menu:popover-open{display:flex;flex-direction:column;gap:8px}.workspace-nav-menu nav{display:flex;flex-direction:column;gap:3px;min-height:0;overflow:auto;flex:1}
.workspace-shell .workspace-nav-menu .navitem{display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;height:36px;min-height:36px;padding:8px 10px;background:transparent;color:var(--secondary)}
.workspace-shell .workspace-nav-menu .navitem .nav-label{display:inline}.workspace-shell .workspace-nav-menu .navitem.active{color:var(--accent)}.workspace-nav-menu .navitem svg.icon{flex:none;width:20px;height:20px}
.workspace-shell .workspace-nav-menu .navitem .count{position:static;margin-left:auto}
.workspace-primary-nav,.workspace-management-nav{display:flex;flex-direction:column;gap:3px;flex:none}
.workspace-management-nav{margin-top:6px;padding-top:8px;border-top:1px solid var(--border)}
.workspace-nav-label{padding:2px 10px 4px;font-size:var(--font-caption);color:var(--muted)}
.workspace-section-tabs{display:flex;align-items:center;gap:20px;min-height:36px;margin-bottom:12px;border-bottom:1px solid var(--border)}
.workspace-section-tabs a{display:inline-flex;align-items:center;min-height:36px;color:var(--secondary);text-decoration:none}
.workspace-section-tabs [aria-selected=true]{color:var(--accent)}
.workspace-shell .workspace-nav-menu .sidebar-account{display:flex;flex-direction:row;align-self:auto;align-items:center;gap:6px;margin:0;padding:8px 2px 0;border-top:1px solid var(--border);flex:none}
.workspace-shell .workspace-nav-menu .sidebar-account:empty{display:none}
.workspace-shell .workspace-nav-menu .sidebar-account .userbox{display:flex;justify-content:flex-start;align-items:center;gap:8px;flex:1;min-width:0}
.workspace-shell .workspace-nav-menu .sidebar-account .account-label{display:flex;flex-direction:column;align-items:flex-start;min-width:0;text-align:left}.workspace-nav-menu .account-label strong{max-width:132px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--font-body)}.workspace-nav-menu .account-label small{font-size:var(--font-caption);color:var(--muted)}
.workspace-shell .workspace-nav-menu .account-logout{width:32px;min-width:32px}.download-shell .download-workspace{padding-top:64px}
@media(max-width:760px){.workspace-shell:not(.workflow-home) .content{padding:72px 12px 20px}}
@media(pointer:coarse){.workspace-shell .workspace-menu-trigger{min-height:44px}.workspace-shell .workspace-nav-menu .navitem{min-height:44px;height:44px}.workspace-shell .workspace-nav-menu .account-logout{min-width:44px;min-height:44px}}
/* The persistent pan tool uses only icon/text color to indicate selection. */
.wf-toolbar button[data-wf="pan"][aria-pressed="true"]{color:var(--accent,#d6b98a)!important}
/* Semantic radii: button sizes, fields, cards and dialogs have distinct roles. */
:root{--radius-button-compact:4px;--radius-button:6px;--radius-button-prominent:6px;--radius-field:6px;--radius-field-compact:4px;--radius-card:12px;--radius-popover:10px;--radius-dialog:16px;--radius-tag:999px;--radius-control:var(--radius-button)}
button{--button-radius:var(--radius-button);border-radius:var(--button-radius)!important}button.primary{--button-radius:var(--radius-button-prominent)}button.small:where(:not(.primary)),button.iconbtn{--button-radius:var(--radius-button-compact)}select,textarea,input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]){border-radius:var(--field-radius,var(--radius-field))!important}
.button.small{border-radius:var(--radius-button-compact)!important}
/* Compact controls use an explicit semantic radius, independent of touch hit areas. */
:is(input,select,textarea).field-compact,.workflow-home .wf-meta>input,.workflow-home .wf-concurrency select,.external-key-pagination select,.editor-composer-settings select{--field-radius:var(--radius-field-compact)}
:is(input,select).field-compact{height:28px;min-height:28px}
/* Inputs and text actions sharing one standard row use the same 32px / 6px geometry. */
.control-row>:is(input,select,button,.button),.external-key-toolbar>:is(select,button),.wf-document-group-form>button{height:32px;min-height:32px;--button-radius:var(--radius-button);--field-radius:var(--radius-field)}
.external-key-toolbar .external-key-search,.external-key-toolbar .external-key-search input{height:32px;min-height:32px}
.design-create-panel :is(.reference-upload,[data-action="design-reference-clear"]){display:inline-flex;align-items:center;justify-content:center;height:32px;min-height:32px;--button-radius:var(--radius-button);border-radius:var(--radius-button)!important}
:is(.panel,.authcard,.stat,.wf-node,.wf-history-card,.design-create-panel,.download-release,.wf-home-tools){border-radius:var(--radius-card)!important}
.wf-node-title{border-radius:var(--radius-card) var(--radius-card) 0 0!important}
select::picker(select){border-radius:var(--radius-card)!important}

select::picker(select){margin-block:8px}
.workflow-home .wf-home-tools{z-index:30}

:is(.navitem,.download-secondary,.download-back,.auth-client-download,.wf-toolbar-menu summary){border-radius:var(--radius-button)!important}.iconbtn{border-radius:var(--radius-button-compact)!important}.download-primary{border-radius:var(--radius-button-prominent)!important}
:is(.tile,.specimen,.design-reference,.detailpreview,.platform-browser,.platform-stage,.review-note,.wf-inspector){border-radius:var(--radius-card)!important}

/* Menu destinations float above the persistent canvas instead of replacing it. */
#workspaceWindow{position:fixed;inset:auto auto auto 50%;top:72px;transform:translateX(-50%);margin:0;padding:0;width:fit-content;min-width:min(360px,calc(100vw - 32px));max-width:min(1200px,calc(100vw - 32px));max-height:calc(100dvh - 88px);z-index:45;background:var(--surface);border:1px solid var(--border);box-shadow:0 16px 56px #0006;overflow:hidden}
.workspace-window-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 18px;border-bottom:1px solid var(--border)}.workspace-window-head h2{margin:0;font-size:var(--font-dialog-title);font-weight:600}.workspace-window-head button{display:grid;place-items:center;padding:0;width:32px;height:32px;flex:none}
.workspace-window-body{padding:18px;max-height:calc(100dvh - 154px);overflow:auto;min-width:0}.workspace-window-body>.page-actions{margin-bottom:14px}.workspace-window-body .download-main{padding:0;max-width:920px}.workspace-window-body .panel:last-child{margin-bottom:0}.workspace-window-body .panel{min-width:0}
@media(max-width:760px){#workspaceWindow{max-width:calc(100vw - 20px);min-width:min(340px,calc(100vw - 20px))}.workspace-window-body{padding:12px}.workspace-window-head{padding:10px 12px}}

/* Large covers and category navigation keep the library focused on the artwork. */
#workspaceWindow[data-page="works"]{width:min(1200px,calc(100vw - 32px))}
.works-categories{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}
.works-categories .tab{min-height:32px;padding:6px 12px;color:var(--secondary);background:transparent;border:0}
.works-categories .tab[aria-pressed="true"]{color:var(--primary)}
.works-poster-wall{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:24px 18px}
button.works-poster{display:flex;flex-direction:column;gap:10px;align-items:stretch;min-width:0;width:100%;padding:0;border:0;background:transparent;color:var(--text);text-align:left;box-shadow:none}
.works-poster-image{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:2/3;overflow:hidden;border-radius:10px;background:var(--field)}
.works-poster-image img{display:block;width:100%;height:100%;object-fit:contain}
.works-poster-title{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;line-height:20px;font-weight:400}
.works-poster-missing{display:flex;flex-direction:column;align-items:center;gap:10px;color:var(--muted);font-size:13px}
.works-poster-missing svg{width:28px;height:28px}
.works-categories .tab:is(:hover,:focus,:active),button.works-poster:is(:hover,:focus,:active){outline:none;box-shadow:none;color:var(--primary)}
@media(max-width:760px){.works-poster-wall{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}.works-categories{gap:4px}}
@media(pointer:coarse){.works-categories .tab{min-height:44px}}

@media(pointer:coarse){#workspaceWindow :is(button,select,input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),textarea){min-height:44px}#workspaceWindow button{min-width:44px}}

/* Form parameters and download instructions retain their readable intrinsic layout. */
#workspaceWindow[data-page="design"]{width:min(880px,calc(100vw - 32px));min-width:0;max-width:calc(100vw - 32px)}
#workspaceWindow[data-page="download"]{width:min(960px,calc(100vw - 32px))}

/* Comfy-style node widgets: one compact capsule for label and value. */
.workspace-shell .wf-world .wf-node{box-shadow:0 3px 8px #0004}
.workspace-shell .wf-world .wf-node-title{min-height:34px;padding:5px 10px;gap:8px}
.workspace-shell .wf-world .wf-node-title strong{font-weight:500;font-size:var(--font-body)}
.workspace-shell .wf-world .wf-collapse{width:16px;height:20px;min-width:0;min-height:0;padding:0!important;color:var(--wf-muted)}
.workspace-shell .wf-world .wf-collapse svg{width:12px;height:12px}
.workspace-shell .wf-world .wf-ports{margin:5px 0 3px}
.workspace-shell .wf-world .wf-node-fields{padding:4px 12px 12px;gap:5px}
.workspace-shell .wf-world .wf-widget{display:flex;align-items:center;gap:4px;min-height:27px;padding:1px 4px;border:1px solid color-mix(in srgb,var(--wf-muted) 55%,transparent);border-radius:999px;background:color-mix(in srgb,var(--wf-category-body,var(--wf-card)) 75%,#000);color:var(--text);min-width:0}
.workspace-shell .wf-world .wf-widget>label{display:block;flex:0 1 auto;min-width:0;max-width:48%;margin:0;padding:0;color:var(--secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.4}
.workspace-shell .wf-world .wf-widget>:is(input,select){flex:1 1 0;width:0;min-width:0;min-height:23px;height:23px;padding:0 2px!important;margin:0;border:0!important;border-radius:0!important;outline:none;box-shadow:none;background:transparent!important;text-align:right;text-align-last:right;color:var(--text);font:inherit;line-height:1.4}
.workspace-shell .wf-world .wf-widget>select{justify-content:flex-end;overflow:hidden;text-overflow:ellipsis}
.workspace-shell .wf-world .wf-widget>select::picker-icon{display:none}
.workspace-shell .wf-world .wf-widget>input::-webkit-inner-spin-button,.workspace-shell .wf-world .wf-widget>input::-webkit-outer-spin-button{appearance:none;margin:0}
.workspace-shell .wf-world .wf-widget-step{display:grid;place-items:center;flex:0 0 12px;width:12px;height:23px;min-width:0;min-height:0;padding:0!important;border:0;background:transparent;color:var(--secondary);line-height:1}
.workspace-shell .wf-world .wf-widget-step span{pointer-events:none}
.workspace-shell .wf-world .wf-node-actions{gap:5px}
.workspace-shell .wf-world .wf-node-actions>button{justify-content:center;width:100%;min-height:27px;padding:3px 8px}
.workspace-shell .wf-world .wf-preview{display:block;width:100%;height:auto;max-height:260px;object-fit:contain;margin:3px auto;border-radius:8px}

.workspace-shell .wf-world .wf-widget>input{appearance:textfield}

.wf-widget-arrow{width:8px;height:9px;background:currentColor;clip-path:polygon(0 0,100% 50%,0 100%)}
[data-direction="-1"]>.wf-widget-arrow{clip-path:polygon(100% 0,0 50%,100% 100%)}

/* Reference palette: neutral grey cards, inset sockets and a two-level square grid. */
.workspace-shell .wf-world .wf-node[data-category]{--wf-category-header:#333;--wf-category-body:#333;--wf-category-field:#222;--text:#ddd;--secondary:#bdbdbd;--muted:#aaa;--wf-text:#ddd;--wf-muted:#aaa;background:var(--wf-category-body,#333);color:#ddd;border:0;outline:none;box-shadow:0 4px 8px #0009}
.workspace-shell .wf-world .wf-node>.wf-node-title{background:var(--wf-category-header,#333);color:#bbb;border-bottom:1px solid #292929}
.workspace-shell .wf-world .wf-node-title>span{color:#bdbdbd}
.workspace-shell .wf-world .wf-node-title .wf-collapse{display:grid;place-items:center;width:16px;height:20px;flex:0 0 16px;color:#777}
.workspace-shell .wf-world .wf-collapse-dot{display:block;width:10px;height:10px;border-radius:50%;background:currentColor;pointer-events:none}
.workspace-shell .wf-world .wf-collapse:is(:hover,:focus-visible){color:#ddd}
.workspace-shell .wf-world .wf-node.is-collapsed .wf-node-title{border-radius:var(--radius-card)!important;border-bottom:0}
.workspace-shell .wf-world .wf-port{color:#bdbdbd}
.workspace-shell .wf-world .wf-input{padding-left:23px!important}
.workspace-shell .wf-world .wf-output{padding-right:23px!important}
.workspace-shell .wf-world .wf-input i{left:5px}
.workspace-shell .wf-world .wf-output i{right:5px}
.workspace-shell .wf-world .wf-port i{border:1px solid #111}
.workspace-shell .wf-world .wf-widget{background:#222;border-color:#666;color:#ddd}
.workspace-shell .wf-world .wf-node-fields textarea,.workspace-shell .wf-world .wf-text-preview{background:#222;color:#ddd}
.workspace-shell.workflow-home .wf-stage,.workspace-shell:not(.workflow-home) .wf-stage{background-color:#1b1b1b;background-image:linear-gradient(to right,#141414 var(--wf-grid-major-line,2px),transparent var(--wf-grid-major-line,2px)),linear-gradient(to bottom,#141414 var(--wf-grid-major-line,2px),transparent var(--wf-grid-major-line,2px)),linear-gradient(to right,#161616 var(--wf-grid-line,1px),transparent var(--wf-grid-line,1px)),linear-gradient(to bottom,#161616 var(--wf-grid-line,1px),transparent var(--wf-grid-line,1px));background-size:100px 100px,100px 100px,10px 10px,10px 10px}

.workspace-shell .wf-world .wf-node-resize{position:absolute;right:1px;bottom:1px;width:15px;height:15px;min-width:0;min-height:0;padding:0!important;border:0;background:transparent;cursor:nwse-resize;color:#999;border-radius:0!important}
.wf-node-resize::after{content:'';position:absolute;right:4px;bottom:4px;width:6px;height:6px;clip-path:polygon(100% 0,100% 100%,0 100%);background:currentColor}
.workspace-shell .wf-world .wf-title-editor{flex:1;width:0;min-width:0;height:24px;min-height:0;padding:0 3px;background:#222;color:#ddd;border:0;outline:none;font:inherit}
.wf-value-editor{position:fixed;inset:auto;margin:0;max-width:calc(100vw - 16px);padding:10px;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:16px;box-shadow:0 6px 24px #0008}
.wf-value-editor form{display:flex;align-items:center;gap:8px}.wf-value-editor label{display:flex;align-items:center;gap:8px}.wf-value-editor input{width:110px;min-width:0}.wf-value-editor button{padding:5px 10px}
.workspace-shell .wf-world .wf-widget:has(input[type=number]){cursor:ew-resize}.workspace-shell .wf-world .wf-widget input[type=number]{cursor:ew-resize}

/* Explicit canvas-only exception: selected nodes match the original editor. */
.workspace-shell .wf-world .wf-node.is-selected{outline:1px solid #bbb;outline-offset:4px}
.workspace-shell .wf-world .wf-node.is-selected .wf-node-title strong{font-weight:600}
#wfSelectionBounds{position:absolute;border:1px dashed #777;pointer-events:none;z-index:3}
.wf-selection-tools{position:absolute;display:flex;align-items:center;gap:4px;padding:5px;background:#242424;border:1px solid #444;border-radius:12px;box-shadow:0 3px 12px #0006;z-index:21;white-space:nowrap}
.workflow-home .wf-selection-tools button,.wf-selection-tools summary{display:flex;align-items:center;justify-content:center;width:32px;height:32px;min-width:32px;min-height:32px;padding:5px!important;background:transparent;border:0;color:#bdbdbd}
.wf-selection-tools svg{width:16px;height:16px}.wf-selection-menu{position:relative}.wf-selection-menu summary{list-style:none;cursor:pointer}.wf-selection-menu summary::-webkit-details-marker{display:none}.wf-selection-menu summary:has(.wf-color-dot){width:44px;gap:4px}
.wf-color-dot{display:inline-block;flex:none;width:16px;height:16px;border-radius:50%;background:var(--wf-swatch,#a0a0a0)}
.wf-selection-popup,.wf-execution-popup{position:absolute;top:calc(100% + 8px);right:0;min-width:180px;max-height:320px;overflow:auto;background:#242424;border:1px solid #444;border-radius:12px;padding:6px;box-shadow:0 6px 24px #0008;z-index:40}
.workflow-home .wf-selection-popup button{width:100%;justify-content:flex-start;gap:8px;white-space:nowrap;height:32px}
.wf-execution-tools{position:absolute;top:16px;right:8px;display:flex;align-items:center;gap:5px;padding:5px;max-width:calc(100% - 16px);min-height:46px;background:#202020;border:1px solid #3b3b3b;border-radius:12px;box-shadow:0 3px 12px #0005;z-index:30;font-size:var(--font-body)}
.workflow-home .wf-execution-tools button,.wf-execution-tools summary{height:36px;min-height:36px;min-width:32px;padding:6px 9px;border:0;background:#292929;color:#ddd;border-radius:6px!important;display:flex;align-items:center;justify-content:center;gap:6px}
.workflow-home .wf-execution-tools button:not(.wf-run-primary){border-radius:var(--radius-button-compact)!important}
.workflow-home .wf-execution-tools .wf-execution-grip{cursor:grab;min-width:12px;width:14px;padding:0;background:transparent}
.wf-execution-tools svg{width:16px;height:16px}.wf-execution-tools .wf-run-split{display:flex;background:#69a8ff;border-radius:6px}
.workflow-home .wf-execution-tools .wf-run-primary,.wf-execution-tools .wf-execution-menu>summary{background:#69a8ff;color:var(--on-accent);border-radius:0!important;font-weight:500}
.workflow-home .wf-execution-tools :is(.wf-run-primary,.wf-execution-menu>summary):is(:hover,:focus,:focus-visible){color:var(--on-accent)!important}
.wf-execution-tools .wf-run-primary svg{width:20px;height:20px;flex:none}
.wf-execution-menu{position:relative}.wf-execution-menu>summary{list-style:none;cursor:pointer;width:28px;min-width:28px;padding:4px!important}.wf-execution-menu>summary::-webkit-details-marker{display:none}
.workflow-home .wf-execution-tools input{height:36px;min-height:36px;width:54px;padding:4px 2px 4px 6px;background:#191919;border:0;color:#ddd;border-radius:6px;font-size:var(--font-body)}
.workflow-home .wf-execution-tools .wf-execution-stop{background:#55292b;color:#eea7a7}
.wf-execution-tools .wf-task-count{white-space:nowrap}.wf-execution-popup{min-width:200px}.workflow-home .wf-execution-popup button{width:100%;justify-content:flex-start;gap:8px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(pointer:coarse){.workflow-home .wf-selection-tools button,.wf-selection-tools summary{min-width:44px;min-height:44px}.workflow-home .wf-execution-tools button,.wf-execution-tools summary,.workflow-home .wf-execution-tools input{min-height:44px}.workflow-home .wf-execution-tools .wf-execution-grip{min-width:44px}.wf-execution-tools{gap:3px}}
@media(max-width:600px){.wf-execution-tools{gap:2px}.workflow-home .wf-execution-tools button{padding:5px}.wf-execution-tools .wf-task-count{font-size:12px}.wf-execution-tools .wf-active-count{max-width:100px;overflow:hidden;text-overflow:ellipsis}.workflow-home .wf-execution-tools input{width:38px}}

.workspace-shell .wf-world .wf-node.is-bypassed{opacity:.5}
@media(pointer:coarse){.workflow-home .wf-execution-tools input{min-width:44px;width:44px}}

.workspace-shell.workflow-home .wf-execution-tools input{background:#191919;border:0;color:#ddd}
.wf-execution-tools .wf-run-split{border-radius:var(--radius-button-prominent)}
.workflow-home .wf-execution-tools .wf-run-primary{border-radius:var(--radius-button-prominent) 0 0 var(--radius-button-prominent)!important}
.wf-execution-tools .wf-execution-menu>summary{border-radius:0 var(--radius-button-prominent) var(--radius-button-prominent) 0!important}

#wfQueueCount{background:#191919;border:1px solid #3b3b3b;color:#ddd;padding:4px 5px}
.workspace-shell .wf-world .wf-node .wf-title-editor{background:#222;border:0;color:#ddd}
#wfValueEditor input{background:#222;border:1px solid #555;color:#ddd}

/* Text fields and filter selects are borderless unless explicitly requested. */
body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),body select,body textarea{border:0!important;outline:none!important;box-shadow:none!important}

/* Shared compact dialog chrome. Heights include the separator. */
:root{--dialog-header-height:40px;--dialog-title-size:14px;--dialog-close-size:28px}
:is(.workspace-window-head,.modalhead){box-sizing:border-box;height:var(--dialog-header-height);min-height:var(--dialog-header-height);padding:4px 12px;gap:12px;flex:none}
:is(.workspace-window-head,.modalhead) h2{margin:0;font-size:var(--dialog-title-size)!important;line-height:20px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:is(.workspace-window-head,.modalhead)>button{display:grid;place-items:center;flex:none;box-sizing:border-box;width:var(--dialog-close-size);min-width:var(--dialog-close-size);height:var(--dialog-close-size);min-height:var(--dialog-close-size);padding:0!important;background:transparent;color:var(--secondary)}
:is(.workspace-window-head,.modalhead)>button svg{width:16px;height:16px;margin:0}
@media(pointer:coarse){:root{--dialog-header-height:44px;--dialog-close-size:44px}:is(.workspace-window-head,.modalhead){padding-block:0}}

/* Member actions use the same compact dialog chrome as other account windows. */
dialog.member-account-dialog{width:400px;max-width:calc(100vw - 32px);padding:0;max-height:calc(100dvh - 32px);overflow:auto}
.member-account-dialog .modalbody{padding:16px}
.member-account-identity{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 8px 12px;overflow-wrap:anywhere}
.member-account-identity strong{font-size:14px;font-weight:600}.member-account-identity small{font-size:12px;color:var(--muted);flex:none}
.member-account-actions{display:flex;flex-direction:column;gap:4px}
.member-account-actions :is(button,a){display:flex;align-items:center;gap:10px;width:100%;min-height:36px;box-sizing:border-box;padding:8px;background:transparent;color:var(--secondary);border:0;box-shadow:none;text-decoration:none;text-align:left;font-size:13px;line-height:20px}
.member-account-actions svg.icon{width:18px;height:18px;flex:none;margin:0}
@media(pointer:coarse){.member-account-actions :is(button,a){min-height:44px}}

/* Match the neutral surface of the execution toolbar. */
.workflow-home .wf-home-tools{background:#202020;border-color:#3b3b3b;color:#ddd}
.workflow-home .wf-home-tools select{background:#292929;color:#ddd;border:0}
.workflow-home .wf-home-tools button,.workflow-home .wf-home-tools summary{background:#292929;color:#ddd}
.workflow-home .wf-home-tools .wf-toolbar-grip{background:transparent}

/* Both canvas toolbars use the same control and container heights. */
.workspace-shell.workflow-home{--wf-toolbar-control-height:36px}
.workflow-home :is(.wf-home-tools,.wf-execution-tools){min-height:calc(var(--wf-toolbar-control-height) + 12px)}
.workspace-shell.workflow-home .wf-home-tools>.wf-tool-unit>:is(button,select),.workflow-home .wf-home-tools>.wf-toolbar-grip,.workflow-home .wf-home-tools>.wf-toolbar-menu>summary{height:var(--wf-toolbar-control-height);min-height:var(--wf-toolbar-control-height)}
.workflow-home .wf-execution-tools :is(button,input),.wf-execution-tools>.wf-run-split>.wf-execution-menu>summary{height:var(--wf-toolbar-control-height);min-height:var(--wf-toolbar-control-height)}
@media(pointer:coarse){.workspace-shell.workflow-home{--wf-toolbar-control-height:44px}}

/* Workflow documents are managed outside the canvas tool palette. */
#modal:has(.wf-document-manager){width:min(880px,calc(100vw - 32px))}
#modal:has(#wfNewCanvasForm){width:min(420px,calc(100vw - 32px));max-width:calc(100vw - 32px)}
.wf-document-manager{display:grid;gap:12px}.wf-document-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.wf-document-actions button{display:inline-flex;align-items:center;gap:6px}.wf-document-actions .icon{width:16px;height:16px}
#wfDocumentSearch,#wfRenameForm input{border:0;background:var(--field)}
.wf-document-list{max-height:min(360px,40dvh);overflow:auto;display:flex;flex-direction:column;gap:4px}
.wf-document-list .wf-document-row{display:flex;align-items:center;gap:10px;width:100%;min-height:40px;padding:8px 10px;background:transparent;border:0;color:var(--secondary);text-align:left}
.wf-document-row>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wf-document-row>.icon{width:16px;height:16px;flex:none}.wf-document-row>small{font-size:var(--font-caption);color:inherit}.wf-document-list .wf-document-row.active{color:var(--accent)}
.wf-document-empty{padding:20px 10px;color:var(--muted);text-align:center}.wf-document-manager .modalfoot{margin-top:0;flex-wrap:wrap}

/* Icon controls keep a square hit area instead of shrinking in flex rows. */
.workspace-shell.workflow-home .wf-home-tools>.wf-tool-unit>button,.workflow-home .wf-home-tools>.wf-toolbar-menu>summary{width:var(--wf-toolbar-control-height);min-width:var(--wf-toolbar-control-height);flex:0 0 var(--wf-toolbar-control-height)}
.workflow-home .wf-home-tools>.wf-toolbar-grip{flex:0 0 24px;min-width:24px}
.wf-execution-tools{flex-wrap:wrap}.wf-execution-tools>.wf-run-split,.wf-execution-tools>.wf-run-split>button,.wf-execution-tools>input,.wf-execution-tools>button{flex-shrink:0}

.workflow-home .wf-home-tools:has(.wf-toolbar-menu[open]){z-index:40}

@media(pointer:coarse){.wf-document-list .wf-document-row{min-height:44px}}
/* Login atmosphere: static form, compositor-only decorative movement. */
.auth{position:relative;isolation:isolate;overflow:hidden;min-height:100svh;padding:24px}



.authcard{position:relative;z-index:1;width:min(360px,100%);padding:32px}
.authcard .brand{padding-bottom:0;align-items:center;justify-content:center}
.authcard h1{margin:0;font-weight:600}
.authcard form{margin-top:28px}
.authcard:has(#authTitle) .brand{padding-bottom:22px}
.authcard .auth-client-download{margin-top:18px}

@media(max-width:760px){.auth{padding:20px 16px}.authcard{width:min(360px,100%)}}


.auth{background:var(--page)}
.auth-particles{position:absolute;inset:0;display:block;width:100%;height:100%;z-index:0;pointer-events:none}

.authcard input,.authcard button{height:36px;min-height:36px}
@media(pointer:coarse){.authcard input,.authcard button,.authcard .auth-client-download{height:44px;min-height:44px}}

/* Node picker shares the neutral canvas toolbar palette. */
.workflow-home #wfContextMenu{background:#202020;border-color:#3a3a3a;color:var(--text)}
.workflow-home #wfContextMenu input{background:#292929;border:0;box-shadow:none}

/* Semantic swatches retain their fill through parent hover/focus states. */
.workspace-shell.workflow-home button[data-wf="delete"]{color:#ef7676!important}
.workspace-shell.workflow-home #wfSelectionTools button[data-wf="bypass"][aria-pressed="true"]{color:var(--primary)!important}
.wf-custom-color{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:36px;padding:6px 10px;font-size:var(--font-body);margin:0}
.wf-custom-color input[type="color"]{width:36px;min-width:36px;height:28px;min-height:28px;padding:2px;border:0;background:transparent;cursor:pointer}
.wf-custom-color input::-webkit-color-swatch-wrapper{padding:0}.wf-custom-color input::-webkit-color-swatch{border:0;border-radius:4px}

.wf-selection-popup [role="menuitemradio"][aria-checked="true"]{color:var(--primary)}
.wf-color-popup{scrollbar-width:thin;scrollbar-color:#555 #242424}
@media(pointer:coarse){.wf-custom-color{min-height:44px}}

/* Full-page backgrounds stay square; cards and dialogs keep their own radii. */
html,body,#app,#app>.auth,#app>.workspace-shell,.workspace-shell>.main,.workspace-shell>.main>.content,.workspace-shell .workflow-panel,.workspace-shell .wf-layout,.workspace-shell .wf-stage{border-radius:0!important}
/* Node state belongs to the title's round icon, without a trailing status label. */
.workspace-shell .wf-world .wf-node-title .wf-collapse .wf-collapse-dot{color:var(--wf-status-color,#777)!important}
.workspace-shell .wf-world .wf-node-title .wf-collapse:is(:hover,:focus-visible) .wf-collapse-dot{color:color-mix(in srgb,var(--wf-status-color,#777) 75%,#fff)!important}

.wf-selection-tools{z-index:35}

.wf-node-progress{display:flex;align-items:baseline;gap:8px;padding:4px 0;color:var(--muted);font-size:12px}
.wf-node-progress>span{min-width:0;flex:1;overflow-wrap:anywhere}.wf-node-progress time{flex:none;font-variant-numeric:tabular-nums}
.wf-run-primary>span{min-width:4em;text-align:center}

.workflow-home .wf-home-shell.has-history .wf-home-body{grid-template-columns:minmax(0,1fr) 360px}
.wf-log-heading,.wf-log-filters{display:flex;align-items:center;gap:8px;min-height:36px;font-size:12px}
.wf-log-heading>button{display:flex;align-items:center;gap:4px;padding:0;border:0;background:transparent}
.wf-log-heading>span,.wf-log-filters>span{margin-left:auto;color:var(--muted)}
.wf-log-heading svg,.wf-log-filters svg{width:15px;height:15px}
.wf-log-date{display:block;color:var(--muted);font-size:12px;padding:3px 0 8px}
.wf-log-filters{border-bottom:1px solid var(--wf-line);padding-bottom:6px}
.wf-log-filters button{background:transparent;border:0;padding:4px;font-size:12px}
.wf-log-filters button[aria-pressed="true"]{color:var(--primary)}
.wf-log-entry{padding:10px 0;border-bottom:1px solid var(--wf-line);font-size:12px}
.wf-log-entry>div{display:flex;align-items:baseline;gap:8px}.wf-log-entry time{flex:none;color:var(--muted);font-variant-numeric:tabular-nums}
.wf-log-entry strong{font-size:12px;font-weight:500;min-width:0;overflow-wrap:anywhere}.wf-log-entry>div>span{margin-left:auto;color:var(--muted);flex:none;font-variant-numeric:tabular-nums}
.wf-log-entry p{margin:5px 0 0;line-height:1.6;overflow-wrap:anywhere;white-space:pre-wrap}
.wf-log-entry[data-level="error"] p,.wf-log-error{color:#ef7676}.wf-log-entry[data-level="warning"] p{color:#dfb87b}
.wf-log-more{display:block;margin:8px auto;background:transparent;border:0;font-size:12px}
.wf-execution-tools{width:max-content}
@media(max-width:1100px){.workflow-home .wf-home-shell.has-history .wf-home-body{grid-template-columns:minmax(0,1fr)}.workflow-home .wf-home-shell.has-history .wf-history-dock{position:absolute;width:min(360px,100%);z-index:40}}
@media(pointer:coarse){.wf-log-heading,.wf-log-filters{min-height:44px}.wf-log-heading button,.wf-log-filters button,.wf-log-more{min-height:44px}}

.workspace-shell .wf-zoom #wfZoom{width:auto;min-width:56px;padding:0 6px;background:transparent;border:0;font-variant-numeric:tabular-nums;color:var(--text)}

.wf-output-files{list-style:none;padding:0;margin:0;display:grid;gap:0;min-width:0}
.wf-output-files>li{display:flex;align-items:center;gap:8px;padding:9px 0;border-bottom:1px solid var(--wf-line);min-width:0}
.wf-output-files>li>div{flex:1;min-width:0;display:grid;gap:4px}
.wf-output-files strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--font-body);font-weight:500}
.wf-output-files>li>div>span,.wf-output-meta,.wf-output-empty{font-size:var(--font-caption);color:var(--muted);line-height:1.5}
.wf-output-download{display:inline-flex;align-items:center;justify-content:center;gap:4px;flex:none;min-height:32px;color:var(--text);font-size:var(--font-caption);text-decoration:none}
.wf-output-download .icon{width:15px;height:15px;flex:none}
.wf-output-empty{padding:8px 0}
@media(pointer:coarse){.wf-output-download{min-height:44px}}

#modal:has(.wf-history-dialog){width:min(760px,calc(100vw - 32px));max-width:calc(100vw - 32px);padding:0;max-height:calc(100dvh - 32px)}
#modal:has(.wf-history-dialog)>.modalbody{padding:0;min-height:0;overflow:auto;max-height:calc(100dvh - 80px)}
.wf-history-dialog{padding:12px 16px;min-width:0}
.wf-history-dialog #wfHistoryCards{padding:0;overflow:visible;scrollbar-width:thin}
.wf-history-dialog .wf-history-card{display:flex;align-items:flex-start;text-align:left;flex-direction:column;gap:8px;padding:12px;width:100%;background:var(--card);border:0;border-radius:var(--radius-card);margin-bottom:8px;color:var(--text)}
.wf-history-dialog .wf-history-card time,.wf-history-dialog .wf-history-card>span:last-child{font-size:var(--font-caption);line-height:1.6;color:var(--muted);overflow-wrap:anywhere}
@media(max-width:600px){.wf-history-dialog{padding:8px 12px}}

/* Node categories open sideways, retaining the parent menu. */
.wf-context-menu.wf-catalog-menu{overflow:visible}
.wf-context-submenu{position:absolute;z-index:1;width:100%;padding:6px;background:var(--card);color:var(--text);border:1px solid var(--control-border);border-radius:12px;box-shadow:0 12px 30px #0006;overflow:auto;scrollbar-width:none}
.wf-context-submenu::-webkit-scrollbar{display:none}
.wf-context-submenu button span,.wf-catalog-menu [data-wf-category] span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Compact, aligned execution logs; query controls stay mounted during live updates. */
.wf-log-heading .wf-log-date{padding:0;flex:1;margin:0 8px}
.wf-log-filters{gap:12px;flex-wrap:wrap}
.wf-log-filters>button:last-child{margin-left:auto}
.wf-log-count{margin-left:5px;color:var(--muted);font-variant-numeric:tabular-nums}
.wf-log-query{display:flex;align-items:center;gap:8px;margin:10px 0 6px}
.wf-log-query input,.wf-log-query select{height:32px;min-width:0;margin:0;padding:5px 9px;border:0;border-radius:7px;background:var(--page);color:var(--text);font-size:12px}
.wf-log-query input{flex:1;width:0}.wf-log-query select{width:128px}
.wf-log-query button{flex:none;min-height:32px;padding:5px 8px;background:transparent;border:0;font-size:12px}
.wf-log-summary{color:var(--muted);font-size:12px;padding:4px 0 10px;font-variant-numeric:tabular-nums}
.wf-log-column-head,.wf-log-entry{display:grid;grid-template-columns:64px 38px 94px minmax(0,1fr) 38px;column-gap:10px;align-items:baseline}
.wf-log-column-head{padding:7px 0;color:var(--muted);font-size:12px;border-bottom:1px solid var(--wf-line)}
.wf-log-entry{padding:8px 0;min-height:34px}.wf-log-entry p{margin:0;line-height:1.55}.wf-log-entry strong{font-weight:500;font-size:12px}
.wf-log-duration{color:var(--muted);text-align:right;font-variant-numeric:tabular-nums}
.wf-log-level{color:var(--muted)}.wf-log-entry[data-level="warning"] .wf-log-level{color:#dfb87b}.wf-log-entry[data-level="error"] .wf-log-level{color:#ef7676}
@media(max-width:600px){.wf-log-heading{flex-wrap:wrap}.wf-log-heading .wf-log-date{font-size:11px;margin:0}.wf-log-query{flex-wrap:wrap;gap:5px}.wf-log-query select{width:105px}.wf-log-query input{min-width:90px}.wf-log-filters{gap:9px}.wf-log-column-head{display:none}.wf-log-entry{grid-template-columns:61px 34px minmax(0,1fr) 36px;gap:4px 6px}.wf-log-entry p{grid-column:1/-1;grid-row:2}.wf-log-duration{grid-column:4;grid-row:1}}
@media(pointer:coarse){.wf-log-query input,.wf-log-query select,.wf-log-query button{min-height:44px}}

.wf-log-controls{position:sticky;top:0;z-index:2;background:var(--card);padding-top:2px}

/* Product information uses the shared compact surfaces and colour-only states. */
.workspace-help-nav{display:flex;flex-direction:column;gap:3px;padding-top:8px;margin-top:6px;border-top:1px solid var(--border);flex:none}
.workspace-info-dialog{width:min(640px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;overflow:hidden}
.workspace-info-dialog .modalbody{max-height:calc(100dvh - 88px);overflow:auto;padding:20px}
.workspace-about{display:grid;gap:14px}.workspace-about-brand{display:flex;align-items:center;gap:10px}.workspace-about-brand strong{font-size:16px}
.workspace-about p,.workspace-info-note{margin:0;color:var(--secondary);line-height:1.7}.workspace-about dl{display:grid;gap:10px;margin:0;padding-block:14px;border-block:1px solid var(--border)}.workspace-about dl>div{display:flex;justify-content:space-between;gap:16px}.workspace-about dt{color:var(--muted)}.workspace-about dd{margin:0}.workspace-about button{justify-self:start;padding:6px 0}
.workspace-release{padding:16px 0;border-bottom:1px solid var(--border)}.workspace-release:last-child{border-bottom:0}.workspace-release h3{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin:0 0 8px;font-size:14px;font-weight:500}.workspace-release h3 small{font-size:12px;color:var(--muted);font-weight:400}.workspace-release ul{margin:0;padding-left:20px;color:var(--secondary);line-height:1.8}.workspace-release li+li{margin-top:4px}
.workspace-shell .workspace-help-nav button:is(:hover,:focus-visible){color:var(--accent);outline:none;box-shadow:none}.workspace-info-dialog button:is(:hover,:focus-visible){color:var(--accent);outline:none;box-shadow:none}

.wf-document-query{display:flex;align-items:center;gap:8px;position:relative}.wf-document-query>input{flex:1;min-width:100px;width:0}.wf-document-query>select{width:136px;min-width:0}
.wf-document-menu{position:static;flex:none}.wf-document-menu>summary{display:flex;align-items:center;justify-content:center;min-height:32px;padding:5px 8px;cursor:pointer;list-style:none;color:var(--secondary)}.wf-document-menu>summary::-webkit-details-marker{display:none}.wf-document-menu>summary:is(:hover,:focus-visible){color:var(--accent);outline:none;box-shadow:none}
.wf-document-menu-panel{position:absolute;right:0;top:calc(100% + 8px);z-index:5;width:min(340px,100%);max-height:300px;overflow:auto;display:grid;gap:10px;padding:14px;background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:0 8px 28px #0006}.wf-document-menu-panel>label{display:grid;grid-template-columns:60px minmax(0,1fr);align-items:center;gap:10px;color:var(--muted);font-size:12px}.wf-document-menu-panel select{width:100%;min-width:0}.wf-document-menu-panel .wf-document-group-form input{flex-basis:100%;width:100%}
@media(pointer:coarse){.wf-document-menu>summary{min-height:44px;min-width:44px}}
.wf-document-group-form,.wf-document-selection,.wf-document-pagination{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.wf-document-group-form input{flex:1;min-width:120px;width:150px}.wf-document-group-form button{padding-inline:10px}.wf-document-selection{min-height:36px;color:var(--secondary);font-size:12px}.wf-document-selection label{display:flex;align-items:center;gap:6px;flex-direction:row}.wf-document-selection input,.wf-document-item>input{width:16px;height:16px;flex:none}.wf-document-selection select{max-width:150px;min-width:0}.wf-document-pagination{justify-content:flex-end;font-size:12px;color:var(--muted)}
.wf-document-item{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--border);min-width:0;padding:2px 0}.wf-document-item .wf-document-row{flex:1;min-width:0;padding-inline:4px;border-radius:0!important}.wf-document-row .wf-document-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wf-document-row span>small{display:block;font-size:12px;color:var(--muted);margin-top:3px}.wf-document-group-name{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--muted)}
.wf-document-confirm{padding:12px;border:1px solid var(--border);border-radius:10px;background:var(--surface)}.wf-document-confirm[hidden]{display:none}.wf-document-confirm strong{font-size:13px;font-weight:500}.wf-document-confirm ul{max-height:100px;overflow:auto;margin:8px 0;padding-left:18px;overflow-wrap:anywhere}.wf-document-confirm p{margin:8px 0;line-height:1.7}.wf-document-confirm button+button{margin-left:8px}
@media(max-width:600px){.wf-document-query{flex-wrap:wrap}.wf-document-query>input{flex:1 0 100%;width:100%}.wf-document-query>select{flex:1;width:0}.wf-document-group-name{display:none}.wf-document-selection select{max-width:120px}.wf-document-item{gap:5px}.wf-document-item>.ghost{padding-inline:6px}.wf-document-row>small{display:none}.wf-document-manager{gap:8px}}

.wf-canvas-nav{position:static;display:flex;align-items:center;flex:none;padding:0;background:transparent}
.wf-canvas-nav>button{display:grid;place-items:center;background:transparent;color:var(--secondary);border:0;padding:0}.wf-canvas-nav svg{width:16px;height:16px;flex:none}
.wf-canvas-picker[popover]{position:fixed;inset:auto;margin:0;width:280px;max-width:calc(100vw - 16px);max-height:320px;padding:8px;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:12px;box-shadow:0 8px 28px #0006;overflow:hidden}
.wf-canvas-picker:popover-open{display:flex;flex-direction:column;gap:6px}.wf-canvas-picker-heading{font-size:13px;font-weight:500;padding:5px 8px;color:var(--secondary)}
.wf-canvas-picker-list{min-height:0;overflow:auto;flex:1;overscroll-behavior:contain;scrollbar-width:thin}
.workspace-shell .wf-zoom .wf-canvas-picker button{width:100%;height:auto;min-height:36px;display:flex;align-items:center;justify-content:flex-start;gap:8px;padding:7px 8px;background:transparent;color:var(--secondary);border:0;text-align:left;border-radius:0!important;font-size:13px}
.wf-canvas-choice>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wf-canvas-choice small{font-size:12px;flex:none}.workspace-shell .wf-zoom .wf-canvas-picker button[aria-current="true"]{color:var(--accent)}
.wf-canvas-picker-footer{display:flex;flex-direction:column;border-top:1px solid var(--border);padding-top:5px;flex:none}.wf-canvas-picker-error{font-size:12px;color:var(--danger);white-space:normal;overflow-wrap:anywhere}.wf-canvas-picker-error:empty{display:none}
.wf-canvas-nav button:is(:hover,:focus-visible){color:var(--accent);outline:none;box-shadow:none}.workspace-shell .wf-zoom .wf-canvas-picker button:is(:hover,:focus-visible){color:var(--accent);outline:none;box-shadow:none}
.workflow-home .wf-zoom{max-width:calc(100% - 16px);right:8px;gap:2px}.workflow-home .wf-zoom .wf-graph-count{min-width:0;overflow:hidden;text-overflow:ellipsis;margin-left:0;padding-inline:4px}
.wf-box{background:transparent}
@media(pointer:coarse){.workspace-shell .wf-zoom .wf-canvas-picker button{min-height:44px}}

/* Reserve a control row: canvas nodes never extend beneath navigation buttons. */
.workflow-home .wf-layout,.workflow-home .wf-layout.wf-inspector-hidden{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}
.workflow-home .wf-layout>.wf-stage{grid-row:1;grid-column:1;min-height:0}
.workflow-home .wf-layout>.wf-zoom{position:relative;inset:auto;grid-row:2;grid-column:1;justify-self:stretch;max-width:none;min-width:0;min-height:40px;margin:0;padding:4px 8px;justify-content:flex-end;border:0;border-top:1px solid var(--border);border-radius:0;box-shadow:none;z-index:6}
.workflow-home .wf-layout>.wf-zoom>.wf-canvas-nav{margin-right:auto;flex:none}


/* Long collection names stay inside their fixed-width controls. */
.wf-document-query>select,.wf-document-selection select{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

#workspaceWindow:has(#designNodeWorkflow){width:min(880px,calc(100vw - 32px));min-width:0;max-width:calc(100vw - 32px)}

.wf-preset-options{border:0;padding:0;margin:0 0 16px;min-width:0}
.wf-preset-options legend{padding:0;margin-bottom:8px;font-size:12px;color:var(--secondary)}
.wf-preset-options>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px}
.wf-preset-choice{position:relative;display:flex;align-items:center;min-height:32px;cursor:pointer;color:var(--secondary);font-size:12px}
.wf-preset-choice input{position:absolute;opacity:0;width:1px;height:1px;min-height:0;min-width:0;pointer-events:none}
.wf-preset-choice span{display:flex;align-items:center;gap:7px;min-width:0}
.wf-preset-choice .icon{width:16px;height:16px;flex:none}
.wf-preset-choice:is(:hover,:has(input:checked),:has(input:focus-visible)){color:var(--accent)}
@media(max-width:360px){.wf-preset-options>div{grid-template-columns:1fr}}

.wf-preset-gallery>div{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;max-height:min(450px,calc(100dvh - 440px));overflow-y:auto;overscroll-behavior:contain;align-items:start;padding:0 1px}
.wf-preset-gallery .wf-preset-card{display:block;min-width:0;overflow:hidden;border:1px solid #343434;border-radius:12px;background:#252525;color:var(--secondary);padding:0 9px}
.wf-preset-card .wf-preset-heading{height:34px;padding:0 3px;font-size:12px;gap:8px}
.wf-preset-heading strong{color:inherit;font-size:inherit;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wf-preset-options:not(.wf-preset-gallery) .wf-preset-heading strong{font-weight:400}
.wf-preset-card .wf-preset-heading>.icon{width:15px;height:15px}
.wf-preset-card .wf-preset-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;height:24px;padding:0 3px;font-size:11px;font-variant-numeric:tabular-nums}
.wf-preset-meta small{font-size:11px;color:var(--muted)}
.wf-preset-meta>span{display:flex;align-items:center;gap:5px;font-size:11px}
.wf-preset-meta .icon{width:12px;height:12px}
.wf-preset-card picture{display:block;aspect-ratio:8/5;overflow:hidden;border-radius:7px}
.wf-preset-card img{display:block;width:100%;height:100%;object-fit:cover}
.wf-preset-card:is(:hover,:has(input:checked),:has(input:focus-visible)){color:var(--accent)}
@media(max-width:760px){.wf-preset-gallery>div{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:479px){.wf-preset-gallery>div{grid-template-columns:1fr}}

/* Roundness belongs to the component role; backgrounds and segmented inner joins stay square. */
:is(.workspace-nav-menu,.member-menu,.wf-toolbar-overflow,.wf-context-menu,.wf-context-submenu,.wf-document-menu-panel){border-radius:var(--radius-popover)!important}body dialog,body dialog[class],body #workspaceWindow,body #modal{border-radius:var(--radius-dialog)!important}

/* Shared compact menu surfaces and colour-only interaction states. */
:is(.workspace-nav-menu,.member-menu,.wf-context-menu,.wf-context-submenu){--menu-accent:#83b9ff;--menu-danger:#dc8585;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:9px!important;box-shadow:0 8px 24px #0004;padding:6px;font-size:13px;line-height:20px}
.workspace-shell .workspace-nav-menu{width:240px}
.workspace-nav-menu:popover-open,.workspace-nav-menu nav,.workspace-primary-nav,.workspace-management-nav,.workspace-help-nav{gap:0}
.workspace-shell .workspace-nav-menu .navitem,.member-menu [data-account-item],.workspace-shell .wf-context-menu button{min-height:34px;height:auto;padding:7px 10px;gap:10px;font-size:13px;line-height:20px;font-weight:400;background:transparent;border:0;border-radius:0!important;box-shadow:none;color:var(--secondary)}
.workspace-shell .workspace-nav-menu .navitem>svg.icon{width:18px;height:18px;color:inherit}
.workspace-shell .workspace-nav-menu .navitem:is(.active,:hover,:focus-visible),.member-menu [data-account-item]:is(:hover,:focus-visible),.wf-context-menu button:not(:disabled):is(:hover,:focus-visible){color:var(--menu-accent);outline:none;box-shadow:none}
.workspace-nav-menu .menu-current{display:flex;margin-left:auto;color:var(--menu-accent)}
.workspace-nav-menu .menu-current svg.icon{width:15px;height:15px}
.workspace-shell .workspace-nav-menu .count{background:transparent;color:var(--muted);font-size:12px;padding:0;min-width:0}
.workspace-management-nav,.workspace-help-nav{margin-top:6px;padding-top:6px}
.workspace-shell .workspace-nav-menu .sidebar-account{margin-top:6px;padding:6px 0 0}
.workspace-shell .workspace-nav-menu .userbox{padding:7px 10px;min-height:48px;color:var(--secondary);border-radius:0}
.workspace-nav-menu .account-label strong{font-size:13px;font-weight:500}
.workspace-nav-menu .avatar,.member-menu .avatar{width:28px;height:28px;flex:none;display:grid;place-items:center;background:#303030;color:var(--secondary);border-radius:50%}
.workspace-nav-menu .avatar svg.icon{width:17px;height:17px;color:inherit}
.account-chevron{display:flex;margin-left:auto}.account-chevron svg.icon{width:15px;height:15px}
.workspace-nav-menu .userbox:is(:hover,:focus-visible){color:var(--menu-accent);outline:none;box-shadow:none}
.member-menu{width:224px;max-height:calc(100dvh - 16px);overflow:auto}
.member-menu-heading{display:flex;flex-direction:row;align-items:center;gap:10px;padding:8px 10px 12px;margin-bottom:6px}
.member-menu-heading>span:last-child{display:flex;flex-direction:column;gap:1px;min-width:0}
.member-menu-heading strong{font-size:13px;font-weight:500;overflow-wrap:anywhere}
.member-menu-heading small{font-size:12px}
.member-menu .avatar svg.icon{width:17px;height:17px}
.menu-separator{height:1px;min-height:1px;background:var(--border);margin:6px 10px}
.wf-context-menu{width:224px}
.wf-context-menu button span{min-width:0;overflow-wrap:anywhere}
.wf-context-menu svg.icon{width:16px;height:16px;color:inherit}
.wf-context-heading{padding:6px 10px;color:var(--muted);font-size:12px;font-weight:400;overflow-wrap:anywhere}
:is(.member-menu,.wf-context-menu) button.menu-danger{color:var(--menu-danger)}
:is(.member-menu,.wf-context-menu) button.menu-danger:is(:hover,:focus-visible){color:#f3a09a;outline:none;box-shadow:none}
.wf-context-menu button:disabled{color:var(--muted);opacity:.45;cursor:default}
:is(.workspace-nav-menu,.member-menu,.wf-context-menu,.wf-context-submenu) :is(button,a){transition:none}
body :is(.workspace-nav-menu,.member-menu,.wf-context-menu,.wf-context-submenu) :is(button,a):is(:hover,:focus,:focus-visible){color:var(--menu-accent)!important;outline:none;box-shadow:none}
body :is(.member-menu,.wf-context-menu) button.menu-danger:is(:hover,:focus,:focus-visible){color:#f3a09a!important}
body :is(.member-menu,.wf-context-menu) button:disabled:is(:hover,:focus,:focus-visible){color:var(--muted)!important}
@media(pointer:coarse){.workspace-shell .workspace-nav-menu .navitem,.member-menu [data-account-item],.workspace-shell .wf-context-menu button{min-height:44px}}

/* Connection and maintenance uses the same compact surfaces as workspace menus. */
#workspaceWindow[data-page="settings"]{width:min(560px,calc(100vw - 32px));min-width:0}
#workspaceWindow[data-page="settings"]:has(.platform-browser){width:min(1040px,calc(100vw - 32px))}
#workspaceWindow[data-page="settings"] .workspace-window-body{padding:16px}
#workspaceWindow[data-page="settings"] .workspace-window-head h2{font-size:14px}
.platform-settings{--platform-gap:12px;--accent:#83b9ff;--accent-hover:#83b9ff;font-size:13px;line-height:20px}
.platform-settings>.panel{border-radius:9px!important;padding:0;background:var(--surface);box-shadow:none;overflow:visible}
.platform-settings .platform-heading{padding:12px 14px;gap:8px;flex-wrap:wrap}
.platform-settings .platform-title{gap:8px;min-width:0;flex-wrap:wrap}
.platform-settings .platform-title h2{font-size:13px;font-weight:600;line-height:20px}
.platform-settings .platform-title>svg{width:16px;height:16px;color:var(--secondary)}
.platform-mode{font-size:12px;color:var(--secondary);background:#2a2a2a;border-radius:4px;padding:1px 6px}
.platform-heading-state{display:flex;align-items:center;gap:6px;margin-left:auto;font-size:12px;color:var(--secondary)}
.platform-connection-state{display:inline-flex;align-items:center;gap:6px}
.platform-connection-state::before{content:'';width:6px;height:6px;border-radius:50%;background:var(--muted)}
.platform-details{display:grid;gap:4px;margin:0;padding:12px 14px 8px}
.platform-details>div{display:grid;grid-template-columns:88px minmax(0,1fr);gap:10px;min-height:24px;align-items:baseline}
.platform-details dt{color:var(--muted);font-weight:400}.platform-details dd{margin:0;color:var(--text);overflow-wrap:anywhere;font-size:13px}
.platform-job-detail{display:block;font-size:12px;color:var(--muted)}
.platform-connection-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 14px 14px}
.platform-settings .platform-connection-actions button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:32px;padding:6px 10px;border:0;border-radius:7px;background:#2a2a2a;color:var(--secondary);font-size:13px;line-height:20px;transition:none}
.platform-settings .platform-connection-actions .platform-sync-button{background:#2b3542;color:#83b9ff}
.platform-settings .platform-connection-actions .platform-history-link{margin-left:auto;background:transparent;color:#83b9ff;padding-inline:0}
.platform-settings .platform-connection-actions svg{width:16px;height:16px;flex:none}
.platform-settings .platform-feedback{padding:0 14px;font-size:12px}
.platform-settings .platform-feedback [role=status]:not([hidden]){display:block;padding-bottom:12px}
.platform-settings .platform-error:empty{display:none}.platform-settings .platform-error:not(:empty){margin:0;padding-bottom:12px}
.platform-settings .platform-tools{display:block;padding:12px 14px 6px}
.platform-settings .platform-tools h2{padding:0 2px 8px;margin:0;border-bottom:1px solid var(--border);font-size:13px;line-height:20px;font-weight:600}
.platform-settings .platform-tool-actions{display:flex;flex-direction:column;gap:0}
.platform-settings .platform-tool-actions :is(a,button){display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;min-height:34px;margin:0;padding:7px 2px;border:0;border-radius:0!important;background:transparent;color:var(--secondary);font-size:13px;line-height:20px;text-decoration:none;box-shadow:none;transition:none}
.platform-settings .platform-tool-actions :is(a,button)+:is(a,button){border-top:1px solid var(--border)}
.platform-settings .platform-tool-actions svg{width:16px;height:16px;flex:none;color:inherit}.platform-settings .platform-tool-actions svg:last-child{margin-left:auto}
.platform-session-menu{position:relative}
.platform-session-menu>summary{display:flex;align-items:center;justify-content:center;width:24px;min-height:24px;cursor:pointer;list-style:none;color:var(--secondary)}
.platform-session-menu>summary::-webkit-details-marker{display:none}.platform-session-menu>summary svg{width:16px;height:16px}
.platform-session-popup{position:absolute;right:0;top:calc(100% + 6px);z-index:55;width:190px;max-width:calc(100vw - 64px);padding:6px;background:var(--surface);border:1px solid var(--border);border-radius:9px;box-shadow:0 8px 24px #0004}
.platform-settings .platform-session-popup button{display:flex;align-items:center;gap:10px;width:100%;min-height:34px;padding:7px 8px;font-size:13px;line-height:20px;color:var(--secondary);background:transparent;border:0;border-radius:0!important;transition:none;text-align:left}
.platform-session-popup svg{width:16px;height:16px;flex:none}
.platform-settings .platform-browser{margin:0 14px 14px}
@media(max-width:600px){#workspaceWindow[data-page="settings"]{width:calc(100vw - 20px)}#workspaceWindow[data-page="settings"] .workspace-window-body{padding:12px}.platform-details>div{grid-template-columns:76px minmax(0,1fr);gap:8px}.platform-settings .platform-connection-actions button{padding-inline:8px}.platform-settings .platform-connection-actions .platform-history-link{margin-left:0}.platform-heading-state{gap:4px}}
@media(pointer:coarse){.platform-settings .platform-tool-actions :is(a,button),.platform-settings .platform-session-popup button,.platform-settings .platform-connection-actions button,.platform-session-menu>summary{min-height:44px}.platform-session-menu>summary{width:36px}}

/* Control consistency: component roles override legacy size classes, including secondary surfaces. */
.platform-settings .platform-connection-actions button{--button-radius:var(--radius-button);gap:6px}
.wl-library .wl-selection-actions,.wl-library .wl-pages{gap:6px}
.wl-library .wl-selection-actions button,.wl-library .wl-pages button{--button-radius:var(--radius-button-compact);font-size:var(--font-body);line-height:20px;padding:4px 8px}
.wl-library .wl-reset{font-size:var(--font-body);line-height:20px}
.wl-library .wl-side-heading button,.workflow-home .wf-toolbar-grip,.wf-canvas-nav>button{--button-radius:var(--radius-button-compact)}
.workflow-home .wf-toolbar-menu summary{border-radius:var(--radius-button-compact)!important}
.wl-filter-panel>summary,.wf-document-menu>summary{font-size:var(--font-body);line-height:20px;border-radius:var(--radius-button)}
.workflow-home :is([data-wf="new"],[data-wf="documents"]){font-size:var(--font-body);line-height:20px}
.workflow-home .wf-home-tools .wf-toolbar-overflow button{border-radius:0!important;font-size:var(--font-body);line-height:20px;gap:10px}
.work-editor :is(button,input,select,textarea){font-size:var(--font-body);line-height:20px}
.work-editor .editor-prompt-row .primary,.work-editor .editor-composer-settings :is(button,select){font-size:var(--font-body);line-height:20px}
.editor-reference-dialog button{font-size:var(--font-body);line-height:20px}
.work-editor input[type=file]{font-size:var(--font-body)}
.work-editor input[type=file]::file-selector-button{font:inherit;border-radius:var(--radius-button-compact)}
input[type=file]::file-selector-button{font:inherit;line-height:20px;padding:4px 10px;border-radius:var(--radius-button-compact)}
.work-editor .editor-reference-card select{--field-radius:var(--radius-field-compact);width:76px;padding:4px 6px;font-size:var(--font-body);line-height:20px}
.work-editor .editor-reference-row button.editor-add-reference{--button-radius:var(--radius-button);font-size:var(--font-body);line-height:20px}
.work-editor .editor-layer-actions button.small{gap:6px;padding:3px 6px;white-space:nowrap;--button-radius:var(--radius-button-compact)}
.work-editor .editor-property-card label{gap:6px}
.work-editor .editor-selection>button{border-radius:0!important}
.workspace-shell .wf-world :is(.wf-widget-step,.wf-collapse){border-radius:0!important}
@media(pointer:fine){
 .wl-library .wl-selection-actions button,.wl-library .wl-pages button{height:28px;min-height:28px}
 .external-page-actions button.small{min-height:28px}
 .external-shell .external-endpoint button{height:28px;min-height:28px}
 .work-editor .editor-reference-card select{height:28px;min-height:28px}
 .work-editor .editor-layer-actions button.small{height:28px;min-height:28px}
}
