:root{color:#18222d;background:#edf1f4;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;background:#edf1f4}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}.app-shell{display:grid;grid-template-columns:244px minmax(0,1fr);gap:18px;width:min(1580px,calc(100% - 32px));min-height:100vh;margin:0 auto;padding:18px 0 40px}.sidebar,.panel,.metric,.task-card{border:1px solid #d7e0e6;border-radius:8px;background:#fffffff0;box-shadow:0 14px 34px #1426330f}.sidebar{position:sticky;top:18px;height:calc(100vh - 36px);padding:16px}.brand-block{display:flex;align-items:center;gap:12px;padding-bottom:16px;border-bottom:1px solid #e2e9ee}.product-mark{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border:1px solid rgba(19,96,107,.22);border-radius:8px;background:#f8fbfc;color:#12606b;font-weight:800}.brand-block h1{margin:0;font-size:18px;letter-spacing:0}.brand-block p,.topbar p,.panel-title p{margin:4px 0 0;color:#657484;font-size:13px}.module-nav{display:grid;gap:8px;margin-top:16px}.module-nav button{display:flex;align-items:center;gap:10px;min-height:40px;border:1px solid transparent;border-radius:8px;background:transparent;color:#374553;padding:0 11px;text-align:left}.module-nav button:hover,.module-nav button.active{border-color:#c7d5dd;background:#f7fafb;color:#0f5963}.workspace{min-width:0;display:grid;gap:14px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:58px}.topbar h2{margin:0;font-size:26px;letter-spacing:0}.icon-button,.primary-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;border:1px solid #c8d4de;border-radius:8px;background:#fff;color:#24313d;padding:0 14px;white-space:nowrap;box-shadow:0 1px #12202d08}.icon-button:hover:not(:disabled){border-color:#9fb0be;background:#f8fbfc}.primary-button{border-color:#12606b;background:#12606b;color:#fff;font-weight:700}.primary-button:hover:not(:disabled){background:#0e4f59}.primary-button.compact,.icon-button.compact{min-height:34px}.icon-button.small{min-height:32px;padding:0 11px;font-size:13px}.alert{border:1px solid #efb4a9;background:#fff4f1;color:#9b3527;border-radius:8px;padding:12px 14px}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.metric{display:flex;align-items:center;gap:13px;padding:14px}.metric svg,.task-card svg{color:#12606b}.metric span,.account-stat span,.select-field span,.field>span{display:block;color:#657484;font-size:12px;font-weight:700}.metric strong{display:block;font-size:23px;line-height:1.2}.dashboard-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.task-card{display:grid;gap:9px;min-height:150px;padding:16px;text-align:left}.task-card strong{font-size:17px}.task-card span{color:#657484;line-height:1.55}.task-card:hover{border-color:#a9bbc7;background:#fbfdfe}.panel{min-width:0;padding:16px}.panel-title{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}.panel-title h2{margin:0;font-size:17px;line-height:1.3;letter-spacing:0}.two-column{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,.8fr);gap:14px;align-items:start}.narrow-panel{max-width:820px}.field{display:grid;gap:7px;margin-bottom:12px}input,textarea,select{width:100%;border:1px solid #cbd7df;border-radius:8px;background:#fff;color:#17212b;padding:10px 11px;outline:none}textarea{resize:vertical}input:focus,textarea:focus,select:focus{border-color:#12606b;box-shadow:0 0 0 3px #12606b1f}.checkbox-row{display:flex;align-items:center;gap:9px;margin:8px 0 14px;color:#374553}.checkbox-row input{width:16px;height:16px}.compact-check{margin:0}.step-editor{border:1px solid #e1e8ee;border-radius:8px;background:#f8fbfc;padding:12px;margin-bottom:12px}.step-editor-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;font-weight:700}.step-row{display:grid;grid-template-columns:160px minmax(0,1fr) 120px;gap:10px;align-items:start;padding:10px 0;border-top:1px solid #e1e8ee}.step-actions{display:grid;gap:8px}.horizontal-actions{display:flex;gap:8px;margin-top:12px}.inline-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.json-editor{min-height:320px;font-family:SFMono-Regular,Consolas,monospace;font-size:13px;line-height:1.55}.flow-row{display:grid;grid-template-columns:150px minmax(0,1fr) 74px;gap:10px;align-items:start;padding:10px 0;border-top:1px solid #e1e8ee}.flow-fields{display:grid;grid-template-columns:minmax(0,1.1fr) 120px minmax(0,1fr);gap:8px}.flow-note{display:flex;align-items:center;min-height:42px;color:#536373;font-size:13px}.flow-result-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;padding-top:10px;border-top:1px solid #e1e8ee}.debug-layout{display:grid;grid-template-columns:minmax(280px,.45fr) minmax(0,1fr);gap:14px;align-items:start}.debug-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.debug-actions{margin-top:14px;padding-top:14px;border-top:1px solid #e1e8ee}.debug-session{display:inline-flex;align-items:center;min-height:38px;color:#536373;font-size:13px;overflow-wrap:anywhere}.muted{margin:0;color:#657484}.bot-list{display:grid;gap:10px;margin-top:16px;max-height:520px;overflow:auto}.bot-item{border:1px solid #e1e8ee;border-radius:8px;background:#f8fbfc;padding:12px}.bot-item-head{display:flex;justify-content:space-between;gap:10px}.bot-item-head strong,.bot-item-head span{display:block}.bot-item-head span{margin-top:3px;color:#657484;font-size:13px}.bot-steps{display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin:10px 0 0;padding:0}.bot-steps li{border:1px solid #d7e0e6;border-radius:999px;background:#fff;padding:4px 8px;color:#536373;font-size:12px}.account-toolbar{display:flex;align-items:center;gap:10px;margin-bottom:12px}.account-stat{min-width:112px;border:1px solid #e3ebf0;border-radius:8px;padding:10px 12px;background:#f8fbfc}.account-stat strong{display:block;margin-top:3px;font-size:20px}.select-field{display:grid;gap:5px;width:110px}.table-wrap{width:100%;overflow-x:auto}.account-table{min-height:420px;border:1px solid #e3ebf0;border-radius:8px}table{width:100%;border-collapse:collapse;min-width:760px}th,td{border-bottom:1px solid #e5edf2;padding:11px 12px;text-align:left;vertical-align:top;font-size:13px}th{color:#657484;font-weight:800;background:#f8fbfc}.empty-state,.empty-log{display:flex;align-items:center;justify-content:center;gap:10px;min-height:220px;color:#657484}.pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:12px;color:#536373}.log-panel,.records-panel{width:100%}.log-box{height:420px;overflow:auto;border:1px solid #dfe8ee;border-radius:8px;background:#101820;color:#dbe7ee;padding:12px}.log-box.running{border-color:#12606b}.log-line{display:grid;grid-template-columns:150px 170px 150px minmax(0,1fr);gap:10px;align-items:start;padding:8px 0;border-bottom:1px solid rgba(255,255,255,.08);font-family:SFMono-Regular,Consolas,monospace;font-size:13px}.log-line time{color:#8fa4b3}.log-line span{color:#89d4dd}.log-line strong{color:#fff;font-weight:700}.log-line p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.status{display:inline-flex;align-items:center;min-height:24px;border-radius:999px;padding:0 9px;background:#edf2f5;color:#536373;font-size:12px;font-weight:800}.status-ok,.status-signed,.status-success,.status-enabled{background:#e5f5ee;color:#16724f}.status-failed,.status-unauthorized,.status-disabled{background:#fdecea;color:#a13a2d}.status-imported,.status-skipped{background:#fff5db;color:#8b6400}@media(max-width:1050px){.app-shell{grid-template-columns:1fr}.sidebar{position:static;height:auto}.module-nav{grid-template-columns:repeat(4,minmax(0,1fr))}.metrics,.dashboard-grid,.two-column{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:720px){.app-shell{width:min(100% - 20px,1580px);padding-top:10px}.module-nav,.metrics,.dashboard-grid,.two-column,.debug-layout,.debug-grid{grid-template-columns:1fr}.topbar,.panel-title,.account-toolbar,.pagination{align-items:stretch;flex-direction:column}.step-row,.flow-row,.flow-fields,.flow-result-grid,.log-line{grid-template-columns:1fr}}
