:root{--bg:#f7f6f8;--panel:#fff;--panel2:#faf9fb;--line:#e7e5e9;--text:#303038;--muted:#77737d;--accent:#ff6d5a;--accent2:#6c63ff;--danger:#d84c5b;--warn:#c58b23;--shadow:0 3px 14px rgba(36,30,42,.08)}
html,body{background:var(--bg);color:var(--text)}
.app{grid-template-columns:232px 1fr;background:#f7f6f8}.sidebar{width:232px;background:#fff;border-right:1px solid #e6e3e8;padding:12px 10px}.sidebar .brand{padding:6px 9px 14px;color:#2e2a33}.brand b{color:#77717d}.brand-mark{border-radius:9px;background:#ff6d5a;color:#fff;box-shadow:none}.workspace{margin:0 4px 12px;background:#f8f7f9;border-color:#ebe8ed;padding:9px 10px}.workspace-dot{background:#ff6d5a;box-shadow:0 0 0 4px rgba(255,109,90,.1)}.workspace small{color:#9a949e}.workspace strong{color:#49434e}
.nav-item,.nav-sub button{color:#635d68;border-radius:7px;padding:9px 10px;font-weight:560}.nav-item:hover,.nav-item.active,.nav-sub button:hover,.nav-sub button.active{background:#f3f1f4;color:#29252d}.nav-item.active{box-shadow:none}.nav-item.active .nav-icon{color:#ff6d5a}.nav-icon{color:#9a949e}.sidebar-bottom .ai-status{background:#fff7f5;border-color:#ffe1db}.pulse{background:#ff6d5a;box-shadow:0 0 0 4px rgba(255,109,90,.1)}.ai-status b{color:#413b45}.ai-status small{color:#9a7d78}
.main{grid-column:2;background:#f7f6f8}.topbar{height:64px;background:rgba(255,255,255,.96);border-bottom:1px solid #e7e5e9;padding:0 18px;backdrop-filter:blur(12px)}.breadcrumb{color:#a09aa4}.breadcrumb span{color:#77717d}.topbar h2{font-size:16px;color:#312c35}.client-filter,.search,.field input,.field textarea,.field select{background:#fff;color:#353039;border-color:#ddd9df;border-radius:8px;box-shadow:none}.client-filter:focus,.search:focus,.field input:focus,.field textarea:focus,.field select:focus{border-color:#b9b3bd;box-shadow:0 0 0 3px rgba(108,99,255,.08)}.avatar{background:#f1eff3;color:#5d5761;border-color:#e3dfe6}.page{padding:18px;max-width:none}
.btn{border-radius:7px;font-size:12px;padding:9px 13px}.btn.primary{background:#ff6d5a;color:#fff}.btn.primary:hover{background:#f25f4c;filter:none}.btn.ghost{background:#fff;color:#4c4650;border:1px solid #dedadf}.btn.ghost:hover{background:#f7f5f8}.small-btn,.filter-chip{background:#fff;color:#66606b;border-color:#dedadf;border-radius:7px}.small-btn:hover,.filter-chip:hover{color:#2f2a33;border-color:#c9c4cc}.filter-chip.active{background:#fff4f1;color:#d84c39;border-color:#ffd4ca}.text-link{color:#d95745}
.hero-strip,.panel,.stat,.client-card,.content-card,.strategy-card,.workflow-card,.memory-card,.channel-card,.metric-card,.import-steps>div{background:#fff;border-color:#e5e2e7;border-radius:10px;box-shadow:none}.hero-strip{background:#fff;padding:18px 20px}.hero-strip .eyebrow{color:#ff6d5a}.hero-strip h3{font-size:21px}.hero-strip p,.panel-head p,.section-head p,.client-card p,.content-card p,.strategy-card p,.workflow-card p,.memory-card p{color:#7f7983}.hero-chip{background:#fff7f5;border-color:#ffe0da}.hero-chip strong{color:#d95745}.stat-icon,.platform-badge,.client-logo,.workflow-icon{background:#f5f3f6;color:#655e69}.status{background:#f1eff2;color:#6f6873}.status.scheduled,.status.active,.status.published{background:#eef8f1;color:#338454}.status.draft,.status.idea{background:#f1f0ff;color:#6558c9}.status.paused{background:#fff5de;color:#996d19}.tag{border-color:#e3dfe6;background:#faf9fb;color:#6e6772}.card-footer{border-color:#ece9ed}.panel-head{border-color:#ebe8ed}.mini-row{border-color:#efecf0}.data-table th{color:#8a838e;border-color:#ebe8ed}.data-table td{color:#4d4751;border-color:#efedf0}.section-head h3{font-size:20px}.cards{gap:10px}.client-card:hover,.content-card:hover,.strategy-card:hover,.workflow-card:hover{border-color:#cfcad2;transform:none;box-shadow:0 4px 14px rgba(45,38,51,.05)}
.modal-shell{background:#fff;border-color:#ded9e0;border-radius:12px;box-shadow:0 20px 70px rgba(37,29,43,.2)}.modal-head{border-color:#ece8ed}.modal-head small{color:#d95745}.modal-head h3{color:#332e37}.modal-body{color:#3c3640}.modal-actions{border-color:#ece8ed}.modal::backdrop{background:rgba(40,34,43,.35);backdrop-filter:blur(2px)}.icon-btn{background:#fff;color:#77717d;border-color:#dedadf}.form-help{background:#faf8fb;border-color:#e4e0e6;color:#746e79}.candidate{background:#fff;color:#37313b;border-color:#e0dce2}.candidate:hover{background:#faf8fb;border-color:#c9c3cc}.candidate strong,.preview-price b{color:#d95745}.preview-price span{background:#faf9fb;border-color:#e3dfe6}.toast{background:#332e37;border:0;color:#fff;border-radius:8px;box-shadow:0 8px 26px rgba(0,0,0,.18)}

/* Visual workflow editor */
.workflow-editor{height:calc(100vh - 100px);min-height:640px;border:1px solid #dedbe0;border-radius:10px;background:#fff;overflow:hidden;display:grid;grid-template-columns:220px minmax(520px,1fr) 300px;position:relative}.workflow-palette{border-right:1px solid #e5e2e7;background:#fbfafc;display:flex;flex-direction:column;min-width:0}.workflow-palette-head{padding:14px;border-bottom:1px solid #e9e6ea}.workflow-palette-head b{font-size:13px}.workflow-palette-head small{display:block;color:#918b95;font-size:10px;margin-top:3px}.node-search{margin:10px 10px 4px;width:calc(100% - 20px);border:1px solid #ddd9df;background:#fff;border-radius:7px;padding:9px 10px;color:#3d3741;outline:none}.node-group-title{padding:11px 12px 6px;font-size:9px;color:#9c959f;text-transform:uppercase;letter-spacing:.08em;font-weight:750}.node-palette-list{padding:0 8px 12px;display:grid;gap:5px;overflow:auto}.palette-node{border:1px solid transparent;background:transparent;border-radius:7px;padding:8px;display:flex;gap:9px;align-items:center;text-align:left;color:#46404a}.palette-node:hover{background:#f2f0f3;border-color:#e6e2e7}.palette-node-icon{width:30px;height:30px;border-radius:7px;display:grid;place-items:center;font-size:13px;font-weight:800;background:#fff;border:1px solid #ddd9df}.palette-node strong{display:block;font-size:11px}.palette-node small{display:block;color:#918a95;font-size:9px;margin-top:2px}.tone-source .palette-node-icon,.wf-node.tone-source .wf-icon{background:#fff2ee;color:#e05b46;border-color:#ffd8cf}.tone-action .palette-node-icon,.wf-node.tone-action .wf-icon{background:#f0efff;color:#6657d8;border-color:#dcd8ff}.tone-logic .palette-node-icon,.wf-node.tone-logic .wf-icon{background:#eef8f1;color:#318556;border-color:#d6ecdc}.tone-ai .palette-node-icon,.wf-node.tone-ai .wf-icon{background:#fff7df;color:#9b731a;border-color:#f3e2af}
.workflow-canvas-wrap{position:relative;overflow:hidden;background:#faf9fb}.workflow-canvas{position:absolute;inset:0;overflow:hidden;background-image:radial-gradient(circle,#d9d5db 1px,transparent 1px);background-size:18px 18px}.workflow-canvas-inner{position:absolute;width:1600px;height:1000px;transform-origin:0 0}.workflow-lines{position:absolute;inset:0;width:1600px;height:1000px;pointer-events:none;overflow:visible}.workflow-lines path{fill:none;stroke:#bab4bd;stroke-width:2}.workflow-lines path.active{stroke:#ff6d5a}.wf-node{position:absolute;width:190px;min-height:72px;background:#fff;border:1px solid #dcd8df;border-radius:9px;box-shadow:0 2px 7px rgba(43,36,48,.08);display:grid;grid-template-columns:42px 1fr;align-items:center;padding:10px 12px;cursor:grab;user-select:none}.wf-node:active{cursor:grabbing}.wf-node.selected{border-color:#ff806f;box-shadow:0 0 0 2px rgba(255,109,90,.13),0 4px 12px rgba(43,36,48,.1)}.wf-icon{width:34px;height:34px;border:1px solid #ddd9df;border-radius:7px;display:grid;place-items:center;font-weight:800;color:#625c66;background:#f7f5f8}.wf-node b{font-size:11px;display:block;color:#342f37}.wf-node small{font-size:9px;color:#8d8791;display:block;margin-top:3px;line-height:1.35}.wf-port{position:absolute;width:10px;height:10px;border-radius:50%;background:#fff;border:2px solid #aaa4ae;top:50%;transform:translateY(-50%)}.wf-port.in{left:-6px}.wf-port.out{right:-6px}.wf-node.selected .wf-port{border-color:#ff6d5a}.wf-add{position:absolute;width:26px;height:26px;border-radius:50%;border:1px solid #d9d5dc;background:#fff;color:#78717c;display:grid;place-items:center;font-size:15px;box-shadow:0 2px 6px rgba(40,34,43,.08)}.wf-add:hover{border-color:#ff9b8e;color:#e35a47}
.canvas-toolbar{position:absolute;left:12px;bottom:12px;display:flex;gap:5px;background:#fff;border:1px solid #dedadf;border-radius:8px;padding:4px;box-shadow:0 3px 10px rgba(42,35,47,.07);z-index:5}.canvas-toolbar button{width:30px;height:30px;border:0;background:#fff;border-radius:6px;color:#6b6570}.canvas-toolbar button:hover{background:#f3f1f4}.canvas-status{position:absolute;right:12px;bottom:12px;background:#fff;border:1px solid #dedadf;border-radius:7px;padding:7px 9px;color:#837c87;font-size:9px;z-index:5}.workflow-inspector{border-left:1px solid #e5e2e7;background:#fff;display:flex;flex-direction:column;min-width:0}.inspector-head{padding:14px 15px;border-bottom:1px solid #e9e6ea;display:flex;align-items:center;justify-content:space-between}.inspector-head b{font-size:12px}.inspector-body{padding:14px;overflow:auto}.inspector-empty{color:#98919b;font-size:11px;line-height:1.6;padding:20px 5px}.inspector-node-title{display:flex;align-items:center;gap:10px;margin-bottom:16px}.inspector-node-title .wf-icon{flex:none}.inspector-node-title h4{font-size:13px;margin:0}.inspector-node-title p{font-size:9px;color:#938c97;margin:3px 0 0}.inspector-field{display:grid;gap:6px;margin-bottom:12px}.inspector-field label{font-size:9px;color:#79727c;font-weight:700}.inspector-field input,.inspector-field select,.inspector-field textarea{width:100%;border:1px solid #ddd9df;background:#fff;color:#3e3842;border-radius:7px;padding:9px 10px;font-size:11px;outline:none}.inspector-field textarea{min-height:74px;resize:vertical}.inspector-help{font-size:9px;line-height:1.5;color:#99929c;background:#f9f7fa;border:1px solid #e8e4e9;border-radius:7px;padding:9px}.workflow-editor-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.workflow-title-area{display:flex;align-items:center;gap:9px}.workflow-title-area input{border:1px solid transparent;background:transparent;color:#332e37;font-weight:700;font-size:15px;padding:6px 7px;border-radius:6px;min-width:250px}.workflow-title-area input:hover,.workflow-title-area input:focus{border-color:#ddd9df;background:#fff;outline:none}.workflow-top-actions{display:flex;gap:7px}.run-btn{background:#ff6d5a;color:#fff;border:0;border-radius:7px;padding:9px 14px;font-size:11px;font-weight:750}.save-btn{background:#fff;color:#504a54;border:1px solid #ddd9df;border-radius:7px;padding:9px 13px;font-size:11px;font-weight:650}

@media(max-width:1100px){.workflow-editor{grid-template-columns:190px 1fr}.workflow-inspector{display:none}}@media(max-width:820px){.app{display:block}.main{grid-column:auto}.sidebar{width:232px}.workflow-editor{grid-template-columns:1fr;height:calc(100vh - 145px);min-height:520px}.workflow-palette{display:none}.workflow-canvas-wrap{grid-column:1}.workflow-editor-top{align-items:flex-start;gap:8px}.workflow-title-area input{min-width:0;width:180px}.page{padding:12px}.topbar{height:58px}.top-actions .client-filter,.top-actions .avatar{display:none}}
.login-wrap{background:#f7f6f8;grid-template-columns:minmax(420px,620px) 1fr}.login-card{background:#fff;border-right:1px solid #e7e4e8}.login-card h1{color:#312c35}.login-card h1 span{color:#918a95}.login-card>p{color:#77717d}.login-card .eyebrow{color:#d95745}.login-visual{border-left:0;background:#faf9fb;background-image:radial-gradient(circle,#ddd9df 1px,transparent 1px);background-size:18px 18px}.orb{display:none}.preview-card{background:#fff;border-color:#dedadf;color:#38323c;box-shadow:0 7px 24px rgba(43,36,48,.08)}.preview-card span{color:#d95745}.preview-card small{color:#8d8691}.stack label{color:#615b66}.stack input{background:#fff;color:#353039;border-color:#ddd9df}.stack input:focus{border-color:#b9b3bd;box-shadow:0 0 0 3px rgba(108,99,255,.08)}

.inspector-special{margin:0 0 14px;padding:12px;border:1px solid #e5e1e7;background:#fbfafc;border-radius:8px}.inspector-section-title{font-size:9px;font-weight:800;letter-spacing:.08em;color:#9a939d;margin-bottom:10px}.inspector-field small{display:block;color:#9a939d;font-size:9px;line-height:1.45;margin-top:2px}.inspector-field input[type="url"]{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10px}

/* Product importer workflow */
.product-flow-title{display:grid;gap:2px}.product-flow-title strong{font-size:14px;color:#332e37}.product-flow-title small{font-size:10px;color:#8c8590}.product-only-editor{grid-template-columns:220px minmax(560px,1fr) 360px}.product-flow-help{display:grid;grid-template-columns:30px 1fr;gap:9px;padding:12px;border-bottom:1px solid #ece9ed}.product-flow-help>span{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#fff2ee;color:#db5b47;font-size:11px;font-weight:800}.product-flow-help b{display:block;font-size:11px}.product-flow-help small{display:block;color:#8e8792;font-size:9px;line-height:1.45;margin-top:3px}.product-flow-note{margin:12px;padding:10px;border:1px solid #e7e2e8;border-radius:8px;background:#fff;color:#807985;font-size:9px;line-height:1.55}.full-action{width:100%;margin-bottom:14px}.inspector-field small{font-size:9px;color:#98919c;line-height:1.45}.scan-hint,.catalog-empty{padding:14px;border:1px dashed #ded9e1;border-radius:8px;color:#948d97;font-size:10px;line-height:1.5;background:#fbfafc}.catalog-summary{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:9px 10px;background:#f7f5f8;border:1px solid #e5e1e7;border-radius:8px;margin:12px 0}.catalog-summary b{font-size:10px}.catalog-summary span{font-size:9px;color:#8c8590}.catalog-block{margin:14px 0}.catalog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px}.catalog-head b{font-size:10px}.catalog-head small{font-size:9px;color:#918a95}.catalog-list{max-height:150px;overflow:auto;border:1px solid #e5e1e7;border-radius:8px;background:#fff}.catalog-check{display:flex;gap:8px;align-items:center;padding:8px 9px;border-bottom:1px solid #efedf0;font-size:10px}.catalog-check:last-child{border-bottom:0}.catalog-check input,.product-pick input{accent-color:#ff6d5a}.product-picker{display:grid;gap:6px;max-height:340px;overflow:auto;margin-top:8px}.product-pick{display:grid;grid-template-columns:18px 42px 1fr;gap:8px;align-items:center;padding:7px;border:1px solid #e5e1e7;border-radius:8px;background:#fff}.product-pick img,.product-placeholder{width:42px;height:42px;border-radius:6px;border:1px solid #e2dee4;object-fit:cover;background:#f7f5f8;display:grid;place-items:center;color:#8c8590}.product-pick b{display:block;font-size:10px;color:#3b3640}.product-pick small{display:block;font-size:8px;color:#918a95;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px;margin-top:2px}.connection-box{display:grid;gap:3px;padding:10px;border:1px solid #e5e1e7;border-radius:8px;background:#faf9fb;margin-bottom:12px}.connection-box b{font-size:10px}.connection-box small{font-size:9px;color:#8e8792}.connected-box{background:#eef8f1;border-color:#d7ebdd}.connected-box b{color:#328454}.run-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.run-summary>div{padding:12px;border:1px solid #e5e1e7;border-radius:8px;background:#faf9fb;text-align:center}.run-summary b{display:block;font-size:22px}.run-summary span{font-size:9px;color:#8e8792}.run-results{display:grid;gap:7px;max-height:360px;overflow:auto}.run-row{display:grid;grid-template-columns:24px 1fr;gap:8px;padding:9px;border:1px solid #e5e1e7;border-radius:8px}.run-row>span{font-weight:800}.run-row.ok>span{color:#328454}.run-row.bad>span{color:#c74c59}.run-row b{display:block;font-size:10px}.run-row small{display:block;font-size:9px;color:#8e8792;margin-top:2px}.run-row a{color:#d95745;text-decoration:none}@media(max-width:1200px){.product-only-editor{grid-template-columns:190px 1fr}.product-only-editor .workflow-inspector{display:none}}

/* Temporary focused mode: product importer only */
#nav>[data-page="dashboard"],#nav>[data-page="clients"],#nav>[data-page="imports"],#nav>.nav-group,#nav>[data-page="strategies"],#nav>[data-page="memory"],#nav>[data-page="analytics"],.sidebar-bottom,.top-actions{display:none!important}
#nav>[data-page="workflows"]{display:flex!important}.workflow-palette{padding-bottom:12px}
.source-origin-link{display:block;margin-top:5px;color:#d95745;font-size:9px;line-height:1.35;word-break:break-all;text-decoration:none}.source-origin-link:hover{text-decoration:underline}.catalog-source-row,.product-source-row{border:1px solid #ece8ed;border-radius:8px;background:#fff;padding:7px 8px}.catalog-source-row+.catalog-source-row,.product-source-row+.product-source-row{margin-top:6px}.catalog-source-row .catalog-check{padding:0;border:0}.product-source-row .product-pick{padding:0;border:0;background:transparent}.product-link{margin-left:28px}.source-trace-box{margin-bottom:13px;padding:10px;border:1px solid #eadfe0;border-radius:8px;background:#fff8f6;display:grid;gap:4px}.source-trace-box small{font-size:8px;color:#9a7f7b;font-weight:800;letter-spacing:.05em}.source-trace-box a{font-size:10px;color:#d95745;word-break:break-all;text-decoration:none}.source-trace-box b{font-size:10px;color:#776d73;font-weight:600}

/* n8n-like node clipboard controls */
.node-tools{margin-top:14px;padding-top:14px;border-top:1px solid #ebe7ec}.node-shortcuts{display:grid;gap:6px;color:#756e79;font-size:9px;line-height:1.55}.node-shortcuts b{font-size:10px;color:#4b454f}.node-shortcuts kbd{display:inline-block;min-width:20px;padding:2px 5px;border:1px solid #dcd7df;border-bottom-width:2px;border-radius:5px;background:#faf9fb;color:#4d4751;font:700 9px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;text-align:center}.node-tool-buttons{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:10px}.node-tool-buttons .btn.danger{grid-column:1/-1;background:#fff5f5;color:#c94552;border:1px solid #f0cdd1}.node-tool-buttons .btn.danger:hover{background:#fff0f1}.wf-node.selected:after{content:'Ctrl+C';position:absolute;right:8px;top:-20px;padding:2px 5px;border-radius:4px;background:#39333d;color:#fff;font-size:8px;line-height:1.2;opacity:.82;pointer-events:none}

/* Mobile workflow editor — usable, not a squeezed desktop canvas */
@media(max-width:820px){
  html,body{overflow-x:hidden}
  .topbar{height:56px;padding:0 10px;gap:8px}.topbar h2{font-size:14px}.breadcrumb{font-size:8px}.mobile-menu{flex:0 0 40px;width:40px;height:40px}
  .page{padding:10px;overflow:visible}.workflow-editor-top{display:grid;grid-template-columns:1fr;gap:9px;margin-bottom:9px}.workflow-title-area{min-width:0}.product-flow-title{min-width:0}.product-flow-title strong{font-size:13px}.product-flow-title small{font-size:9px;line-height:1.45}.workflow-top-actions{display:grid;grid-template-columns:1fr 1.35fr;gap:7px;width:100%}.workflow-top-actions button{min-height:44px;font-size:12px}
  .product-only-editor,.workflow-editor{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;height:auto;min-height:0;overflow:visible;border-radius:9px}
  .product-only-editor .workflow-palette,.workflow-palette{display:none!important}
  .workflow-canvas-wrap{grid-column:1;grid-row:1;position:relative;height:360px;min-height:360px;overflow:hidden;border-bottom:1px solid #e5e2e7}
  .workflow-canvas{position:absolute;inset:0;overflow:auto;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y;overscroll-behavior:contain}
  .workflow-canvas-inner{position:relative;width:900px;height:620px;min-width:900px;transform-origin:0 0}
  .workflow-lines{width:900px;height:620px}
  .wf-node{width:180px;min-height:70px;touch-action:none}.wf-node b{font-size:11px}.wf-node small{font-size:9px;max-width:112px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .canvas-toolbar{left:8px;bottom:8px}.canvas-toolbar button{width:38px;height:38px;font-size:16px}.canvas-status{display:none}
  .product-only-editor .workflow-inspector,.workflow-inspector{display:flex!important;grid-column:1;grid-row:2;border-left:0;border-top:1px solid #e5e2e7;min-height:0;max-height:none;overflow:visible}
  .inspector-head{position:sticky;top:56px;z-index:4;background:#fff;padding:12px 13px}.inspector-body{padding:12px;overflow:visible}
  .inspector-node-title{margin-bottom:13px}.inspector-node-title h4{font-size:14px}.inspector-node-title p{font-size:10px}
  .inspector-field label{font-size:11px}.inspector-field input,.inspector-field select,.inspector-field textarea,.node-search{font-size:16px;min-height:44px;padding:10px 11px}.inspector-field small{font-size:10px}.run-btn.full-action,.save-btn.full-action{min-height:46px;font-size:13px}
  .catalog-summary{align-items:flex-start;flex-direction:column}.catalog-list{max-height:none}.product-picker{max-height:none;overflow:visible}.product-source-row,.catalog-source-row{padding:9px}.product-pick{grid-template-columns:24px 48px minmax(0,1fr);min-height:62px}.product-pick img,.product-placeholder{width:48px;height:48px}.product-pick b{font-size:11px}.product-pick small{font-size:9px;max-width:100%;white-space:normal;word-break:break-all}.product-link,.source-origin-link{font-size:10px;line-height:1.45}.product-link{margin-left:32px}
  .connection-box,.source-trace-box,.inspector-help{font-size:10px}.node-tool-buttons{grid-template-columns:1fr}.node-tool-buttons .btn.danger{grid-column:auto}.node-tool-buttons button{min-height:44px}
  .modal{width:calc(100% - 16px);max-height:94vh}.modal-shell{border-radius:10px}.modal-body{padding:14px;max-height:72vh}.modal-actions{padding:10px 14px}.modal-actions .btn{min-height:44px}
}
@media(max-width:430px){
  .workflow-canvas-wrap{height:320px;min-height:320px}.workflow-canvas-inner{width:820px;min-width:820px;height:560px}.workflow-lines{width:820px;height:560px}.workflow-top-actions{grid-template-columns:1fr}.workflow-top-actions button{width:100%}.product-flow-title small{display:block}.wf-node{width:172px}.inspector-body{padding:10px}.page{padding:8px}.topbar{padding:0 8px}
}
.source-blocked{margin:12px 0;padding:12px;border:1px solid #f0c8c4;border-radius:10px;background:#fff6f4;color:#5b4c4c}.source-blocked b{display:block;font-size:11px;color:#b84f42;margin-bottom:5px}.source-blocked p{font-size:10px;line-height:1.5;margin:0 0 6px;word-break:break-word}.source-blocked small{display:block;font-size:9px;line-height:1.5;color:#8a7370}
.browser-bridge-box{display:grid;gap:9px;margin-top:10px;padding:11px;border:1px solid #f0d3cc;border-radius:9px;background:#fff}.browser-bridge-box strong{font-size:11px;color:#3d3538}.browser-bridge-box small b{display:inline;color:#5c4b4b;font-size:inherit}.browser-bookmarklet{display:flex;align-items:center;justify-content:center;min-height:42px;border:1px dashed #ff8b7b;border-radius:8px;background:#fff5f2;color:#d95745!important;font-size:11px!important;font-weight:800;text-decoration:none!important;cursor:grab}.browser-bookmarklet:active{cursor:grabbing}.browser-bridge-box .full-action{margin:0}@media(max-width:640px){.browser-bookmarklet{min-height:48px;font-size:13px!important}}


/* NEO Scanner setup visibility */
.scanner-setup-box{margin-top:12px!important;padding:12px!important;border:1px solid #f1c1b8!important;background:#fff!important;box-shadow:0 4px 16px rgba(90,55,45,.06)}
.scanner-status{display:flex;align-items:center;gap:9px;padding:9px 10px;border-radius:8px;background:#f7f7f8}
.scanner-status>span{width:24px;height:24px;display:grid;place-items:center;border-radius:50%;font-weight:800}
.scanner-status b{display:block;font-size:11px}.scanner-status small{display:block;margin-top:2px;font-size:9px;color:#786d72}
.scanner-status.ready>span{background:#e9f7ee;color:#287a46}.scanner-status.missing>span{background:#fff0ed;color:#cf5747}
.scanner-download-primary{display:flex!important;align-items:center;justify-content:center;min-height:46px!important;background:#ff6d5a!important;color:#fff!important;border:none!important;text-decoration:none!important;font-size:12px!important;font-weight:800!important}
.scanner-steps{display:grid;gap:5px;padding:10px;border-radius:8px;background:#faf8f9;border:1px solid #ece7ea;font-size:9px;line-height:1.45;color:#6f656a}
.scanner-steps b{font-size:10px;color:#3b3438}.scanner-steps code{padding:1px 4px;border-radius:4px;background:#eee9ec;color:#554c51}
@media(max-width:640px){.scanner-download-primary{min-height:52px!important;font-size:14px!important}.scanner-steps{font-size:11px}.scanner-steps b{font-size:12px}}

.protected-scan-card{margin-top:14px;padding:14px;border:1px solid #e7e2e7;border-radius:12px;background:#fff;display:grid;grid-template-columns:34px 1fr;gap:10px;align-items:center}.protected-scan-card .protected-scan-icon{width:34px;height:34px;border-radius:9px;background:#fff3ef;color:#e76755;display:grid;place-items:center;font-weight:800}.protected-scan-card b{display:block;font-size:11px;color:#332e34}.protected-scan-card small{display:block;margin-top:3px;font-size:9px;line-height:1.45;color:#817780}.protected-scan-card .full-action{grid-column:1/-1;margin:2px 0 0}.scanner-setup-modal{display:grid;gap:14px}.scanner-setup-hero{display:flex;gap:12px;align-items:flex-start;padding:14px;border:1px solid #ece7ec;border-radius:12px;background:#faf9fb}.scanner-setup-hero>span{width:34px;height:34px;border-radius:9px;background:#fff3ef;color:#e76755;display:grid;place-items:center;font-weight:800}.scanner-setup-hero b{font-size:13px;color:#302b31}.scanner-setup-hero p{margin:4px 0 0;font-size:11px;color:#7d747c}.scanner-setup-modal .scanner-steps{display:grid;gap:7px;padding:12px;border:1px solid #ece7ec;border-radius:10px;background:#fff}.scanner-setup-modal .scanner-steps b{font-size:11px}.scanner-setup-modal .scanner-steps span,.scanner-setup-modal>small{font-size:10px;color:#776f76;line-height:1.45}.scanner-download-primary{text-decoration:none!important}
.feed-upload-btn{display:flex;align-items:center;justify-content:center;min-height:42px;margin-top:10px;border:1px solid #ff8b7b;border-radius:9px;background:#fff;color:#d95745;font-size:11px;font-weight:800;cursor:pointer}.feed-upload-btn:hover{background:#fff6f3}

/* NEO Worker fallback */
.worker-setup-card{margin:12px 0;padding:13px;border:1px solid #e7e2e5;border-radius:11px;background:#fff;display:grid;gap:10px}
.worker-setup-head{display:flex;align-items:flex-start;gap:9px}.worker-setup-head>span{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#fff2ef;color:#df654f;font-weight:900}.worker-setup-head b{display:block;font-size:11px;color:#3c3539}.worker-setup-head small{display:block;margin-top:3px;font-size:9px;line-height:1.45;color:#8b8388}
.worker-download{margin:0!important;text-decoration:none!important}.worker-pair{display:flex;align-items:center;justify-content:space-between;padding:10px 11px;border:1px dashed #d8d2d6;border-radius:9px;background:#faf9fa}.worker-pair small{font-size:9px;color:#8a8287}.worker-pair strong{font:800 19px/1.1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:3px;color:#342f33}
.worker-steps{display:grid;gap:5px;padding:9px 10px;border-radius:9px;background:#f7f6f7}.worker-steps span{font-size:9px;line-height:1.4;color:#655d62}.worker-setup-card>small{font-size:8.5px;line-height:1.45;color:#8c8389}
@media(max-width:640px){.worker-pair strong{font-size:17px}.worker-setup-card{padding:11px}.worker-download{min-height:48px}}

/* Smart Flow — context-aware next step */
.smart-node-add{position:absolute;right:-42px;top:50%;transform:translateY(-50%);width:28px;height:28px;border-radius:50%;border:1px solid #ffb2a8;background:#fff;color:#e65f4d;display:grid;place-items:center;padding:0;font-size:18px;line-height:1;font-weight:500;box-shadow:0 2px 8px rgba(43,36,48,.1);cursor:pointer;z-index:4}.smart-node-add:before{content:'';position:absolute;right:27px;top:50%;width:10px;height:1px;background:#d9d3db}.smart-node-add:hover{background:#fff4f1;border-color:#ff806f;color:#d94f3d;transform:translateY(-50%) scale(1.06)}.wf-node.selected .smart-node-add:after{content:'NEO Smart Add';position:absolute;left:36px;white-space:nowrap;padding:4px 7px;border:1px solid #e4dfe5;border-radius:6px;background:#fff;color:#625b66;font-size:8px;font-weight:700;box-shadow:0 3px 10px rgba(43,36,48,.08)}
@media(max-width:820px){.smart-node-add{width:34px;height:34px;right:-46px;font-size:20px}.wf-node.selected .smart-node-add:after{display:none}}
.catalog-quality{margin:8px 0 12px;padding:10px;border:1px solid #e9e5e9;border-radius:9px;background:#faf9fa;display:grid;gap:7px}.catalog-quality>b{font-size:10px}.catalog-quality>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 8px}.catalog-quality span{font-size:9px;color:#756d75;display:flex;justify-content:space-between;gap:6px}.catalog-quality strong{color:#332f34}.catalog-quality small{font-size:8px;color:#918991}
.scanner-platforms{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}.scanner-platforms span{font-size:9px;font-weight:800;padding:6px 8px;border:1px solid #e7e0e5;border-radius:999px;background:#fff;color:#655d66}

.source-feed-panel{margin:12px 0;border:1px solid var(--line,#e5e1e7);border-radius:12px;background:rgba(255,255,255,.55);overflow:hidden}.source-feed-panel>summary{list-style:none;cursor:pointer;padding:12px;display:flex;justify-content:space-between;gap:10px;align-items:center}.source-feed-panel>summary::-webkit-details-marker{display:none}.source-feed-panel>summary span:first-child{display:flex;flex-direction:column;gap:3px}.source-feed-panel>summary small,.source-feed-note{color:var(--muted,#777);font-size:11px}.source-feed-body{padding:0 12px 12px}.source-feed-panel[open]>summary{border-bottom:1px solid var(--line,#e5e1e7);margin-bottom:12px}
