:root{--accent: #0f172a;--accent-strong: #020617;--accent-soft: #f1f5f9;--accent-ring: #cbd5e1;color:#0f172a;background:#f8fafc;font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;text-rendering:geometricPrecision}:root[data-accent=cyan]{--accent: #0891b2;--accent-strong: #155e75;--accent-soft: #ecfeff;--accent-ring: #a5f3fc}:root[data-accent=green]{--accent: #15803d;--accent-strong: #14532d;--accent-soft: #f0fdf4;--accent-ring: #bbf7d0}:root[data-accent=amber]{--accent: #b45309;--accent-strong: #78350f;--accent-soft: #fffbeb;--accent-ring: #fde68a}:root[data-accent=rose]{--accent: #be123c;--accent-strong: #881337;--accent-soft: #fff1f2;--accent-ring: #fecdd3}*{box-sizing:border-box}body{margin:0;min-width:320px;background:#f8fafc}.hidden-id-column{display:none!important}body:has(.admin-layout){overflow:hidden}body.auth-locked .admin-layout{filter:blur(2px);pointer-events:none;-webkit-user-select:none;user-select:none}button{font:inherit;line-height:1}.topbar{position:sticky;top:0;z-index:10;display:flex;align-items:center;gap:24px;min-height:72px;padding:0 28px;border-bottom:1px solid #e5e7eb;background:#ffffffdb;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.brand{display:flex;align-items:center;gap:12px;min-width:240px}.mark{width:38px;height:38px;display:grid;place-items:center;color:#fff;border-radius:12px;background:var(--accent);box-shadow:0 12px 30px #0f172a29}.brand strong{display:block;font-size:18px;letter-spacing:.02em}.brand span{display:block;color:#64748b;font-size:12px;margin-top:2px}nav{display:flex;align-items:center;gap:4px;flex:1}nav button,.primary,.secondary,.icon-button{height:34px;border:0;border-radius:7px;display:inline-flex;align-items:center;gap:6px;padding:0 11px;cursor:pointer;white-space:nowrap;font-size:13px}button:disabled{cursor:not-allowed;opacity:.55}nav button{color:#475569;background:transparent}nav button.active{color:var(--accent-strong);background:var(--accent-soft);box-shadow:inset 0 0 0 1px var(--accent-ring)}.primary{color:#fff;background:var(--accent);box-shadow:0 10px 22px #0f172a24}.secondary{color:#0f172a;background:#f8fafc;border:1px solid #e2e8f0}.icon-button{width:28px;height:28px;justify-content:center;padding:0;color:#64748b;background:#f8fafc;border:1px solid #e2e8f0}.icon-button:hover{color:#b91c1c;border-color:#fecaca;background:#fff1f2}.row-actions{display:inline-flex;gap:6px}.shell{width:100%;max-width:none;margin:0;padding:34px 24px 60px}.page-title{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:24px}.page-title p{margin:0 0 8px;color:#0891b2;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.12em}.page-title h1{margin:0;font-family:Georgia,Times New Roman,serif;font-size:clamp(34px,5vw,64px);line-height:.98;letter-spacing:0}.search{min-width:260px;height:42px;border:1px solid #e5e7eb;border-radius:10px;color:#94a3b8;background:#fff;display:flex;align-items:center;gap:10px;padding:0 14px;box-shadow:0 8px 24px #0f172a0a}.grid{display:grid;gap:18px}.grid.two{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)}.section-gap{margin-top:18px}.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:18px}.card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;box-shadow:0 12px 30px #0f172a0d}.loading-panel{position:relative;min-height:92px;display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:16px;border:1px solid #e5e7eb;border-radius:14px;background:#ffffffc2;box-shadow:0 12px 30px #0f172a0d;overflow:hidden}.shell>.loading-panel{position:fixed;top:78px;right:24px;z-index:58;width:48px;min-height:48px;height:48px;gap:0;margin:0;border-radius:12px;background:#fffffff0;box-shadow:0 14px 34px #0f172a29;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.shell>.loading-panel .loading-dot{display:none}.shell>.loading-panel .loading-spinner{width:22px;height:22px;border-width:2px}.module-data-card .loading-panel{min-height:118px;margin:8px 18px 18px}.loading-spinner{width:26px;height:26px;border:3px solid #e2e8f0;border-top-color:var(--accent);border-radius:50%;animation:spin .78s linear infinite}.loading-dot{width:6px;height:6px;border-radius:999px;background:var(--accent);opacity:.28;animation:pulse-dot 1.1s ease-in-out infinite}.loading-dot.dot-b{animation-delay:.12s}.loading-dot.dot-c{animation-delay:.24s}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse-dot{0%,to{transform:translateY(0);opacity:.24}50%{transform:translateY(-4px);opacity:.82}}.toast-stack{position:fixed;top:88px;right:22px;z-index:60;display:grid;gap:10px;width:min(360px,calc(100vw - 28px));pointer-events:none}.toast{min-height:42px;display:grid;grid-template-columns:8px minmax(0,1fr) 24px;align-items:center;gap:10px;padding:10px 10px 10px 12px;border:1px solid #e2e8f0;border-radius:10px;color:#0f172a;background:#fffffff5;box-shadow:0 16px 38px #0f172a29;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);pointer-events:auto;animation:toast-in .18s ease-out both}.toast-mark{width:8px;height:24px;border-radius:999px;background:var(--accent)}.toast p{margin:0;color:#334155;font-size:13px;line-height:1.45}.toast button{width:24px;height:24px;border:0;border-radius:7px;color:#64748b;background:transparent;cursor:pointer}.toast button:hover{color:#0f172a;background:#f1f5f9}.toast.success .toast-mark{background:#22c55e}.toast.error .toast-mark{background:#ef4444}.toast.warning .toast-mark{background:#f59e0b}.toast.info .toast-mark{background:#06b6d4}@keyframes toast-in{0%{transform:translateY(-6px);opacity:0}to{transform:translateY(0);opacity:1}}.login-overlay{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:24px;background:linear-gradient(135deg,#0f172ab8,#0891b26b),#0f172a}.login-panel{width:min(420px,100%);display:grid;gap:14px;padding:24px;border:1px solid rgba(226,232,240,.72);border-radius:14px;background:#fffffff5;box-shadow:0 28px 70px #02061752}.login-brand{display:flex;align-items:center;gap:12px}.login-mark{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;color:#fff;background:var(--accent);font-weight:900}.login-brand strong,.login-brand span,.login-copy h1,.login-copy p{display:block;margin:0}.login-brand strong{font-size:18px}.login-brand span,.login-copy p,.login-panel label span{color:#64748b;font-size:12px}.login-copy{margin-top:4px}.login-copy h1{color:#0f172a;font-size:24px;line-height:1.2}.login-copy p{margin-top:6px}.login-panel label{display:grid;gap:6px}.login-panel input{width:100%;height:38px;border:1px solid #dbe3ef;border-radius:9px;padding:0 11px;color:#0f172a;background:#fff;outline:none}.login-panel input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.login-submit{width:100%;height:38px;justify-content:center;margin-top:2px}.login-error{min-height:32px;display:flex;align-items:center;padding:8px 10px;border-radius:8px;color:#991b1b;background:#fff1f2;font-size:12px}.user-chip.auth-enhanced-user{padding-right:6px}.user-chip.auth-enhanced-user>div:nth-child(2){min-width:0}.auth-logout-button{height:28px;flex:0 0 auto;border:0;border-radius:7px;padding:0 8px;color:#be123c;background:#fff1f2;font-size:12px;cursor:pointer}.auth-logout-button:hover{color:#fff;background:#be123c}.kpi{padding:18px;position:relative;min-height:150px;overflow:hidden}.kpi:after{content:"";position:absolute;right:-28px;top:-28px;width:110px;height:110px;border-radius:50%;background:radial-gradient(circle,rgba(6,182,212,.16),transparent 66%)}.kpi-icon,.head-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;color:#0f172a;background:#f1f5f9}.kpi svg{width:18px}.kpi span{display:block;margin-top:18px;color:#64748b;font-size:13px}.kpi strong{display:block;margin-top:8px;font-size:28px;line-height:1;letter-spacing:0}.kpi em{display:block;margin-top:8px;color:#0891b2;font-size:12px;font-style:normal;font-weight:700}.card-head{display:flex;align-items:center;gap:12px;padding:18px 18px 8px}.card-head>div:nth-child(2){min-width:0;flex:1}.card-head h2{margin:0;font-size:16px;letter-spacing:0}.card-head p{margin:4px 0 0;color:#64748b;font-size:13px}.chart-card{min-height:360px}.period-panel{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;margin-bottom:18px}.period-panel strong{display:block;font-size:14px}.period-panel span{display:block;margin-top:4px;color:#64748b;font-size:12px}.summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;padding:12px 18px;border-top:1px solid #f1f5f9;background:#fbfdff}.summary-grid div{min-width:0;min-height:62px;display:grid;align-content:center;gap:6px;padding:10px 12px;border:1px solid #e2e8f0;border-radius:10px;background:#fff}.summary-grid span{color:#64748b;font-size:12px}.summary-grid strong{min-width:0;overflow:hidden;color:#0f172a;font-size:15px;text-overflow:ellipsis;white-space:nowrap}.inline-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:10px;padding:12px 18px;border-top:1px solid #f1f5f9;background:#fbfdff}.inline-toolbar label{display:grid;gap:5px;min-width:220px}.inline-toolbar label span{color:#64748b;font-size:12px}.inline-toolbar select,.inline-toolbar input{height:34px;border:1px solid #e2e8f0;border-radius:8px;padding:0 10px;color:#0f172a;background:#fff;outline:none}.inline-toolbar .primary,.inline-toolbar .secondary,.inline-toolbar .link-button,.inline-toolbar .compact-action{width:auto;height:34px;min-height:34px;justify-content:center;flex:0 0 auto}.inline-toolbar em{color:#0891b2;font-size:12px;font-style:normal}.inline-toolbar .toolbar-label{align-self:center;color:#64748b;font-size:12px}.inline-toolbar label.checkbox-line{display:inline-flex;grid-template-columns:none;align-items:center;gap:6px;min-width:0;height:34px;padding:0 10px;border:1px solid #e2e8f0;border-radius:8px;background:#fff}.inline-toolbar label.checkbox-line input{width:14px;height:14px;padding:0}.inline-toolbar label.checkbox-line span{color:#334155}.formula-test-box{display:grid;gap:10px;padding:12px 18px 18px}.formula-test-box label{display:grid;gap:5px}.formula-test-box label span{color:#64748b;font-size:12px}.formula-test-box select{width:100%;height:34px;border:1px solid #e2e8f0;border-radius:8px;padding:0 10px;color:#0f172a;background:#fff;outline:none}.formula-test-box textarea{width:100%;min-height:150px;border:1px solid #e2e8f0;border-radius:10px;padding:10px 12px;color:#0f172a;background:#fff;resize:vertical;outline:none}.ops-pre{margin:10px 18px 18px;overflow:auto;padding:14px;border:1px solid #e2e8f0;border-radius:10px;color:#334155;background:#f8fafc;font-size:12px;line-height:1.6}.preference-card,.preference-preview{align-self:start}.preference-section{display:grid;gap:12px;padding:16px 18px;border-top:1px solid #f1f5f9}.preference-section strong,.preference-section span{display:block}.preference-section strong{font-size:14px}.preference-section span{margin-top:5px;color:#64748b;font-size:12px}.theme-swatches{display:grid;grid-template-columns:repeat(auto-fit,minmax(116px,1fr));gap:8px}.theme-swatches button{min-width:0;height:42px;display:inline-flex;align-items:center;gap:8px;border:1px solid #e2e8f0;border-radius:8px;padding:0 10px;color:#334155;background:#fff;cursor:pointer}.theme-swatches button.active{color:var(--accent-strong);border-color:var(--accent-ring);background:var(--accent-soft);box-shadow:inset 0 0 0 1px var(--accent-ring)}.theme-swatches i{width:18px;height:18px;flex:0 0 auto;border-radius:999px;box-shadow:inset 0 0 0 2px #ffffffa6}.theme-swatches span{margin:0;overflow:hidden;color:inherit;font-size:12px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.number-preferences{display:grid;grid-template-columns:minmax(150px,220px) minmax(180px,1fr);gap:10px;align-items:end}.number-preferences label{min-width:0}.number-preferences label:not(.toggle-line){display:grid;gap:6px}.number-preferences input[type=number]{width:100%;height:34px;border:1px solid #e2e8f0;border-radius:8px;padding:0 10px;color:#0f172a;background:#fff;outline:none}.toggle-line{min-height:34px;display:inline-flex;align-items:center;gap:8px;padding:0 10px;border:1px solid #e2e8f0;border-radius:8px;background:#fff}.toggle-line input{margin:0}.toggle-line span{margin:0;color:#334155;font-size:12px;font-weight:700}.preference-preview-panel{margin:14px 18px 18px;overflow:hidden;border:1px solid #e2e8f0;border-radius:8px;background:#fff}.preview-nav{display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:0 12px;color:#fff;background:var(--accent)}.preview-nav span{font-size:12px;opacity:.78}.preview-nav strong{font-size:13px}.preview-content{display:flex;flex-wrap:wrap;align-items:center;gap:9px;padding:16px;background:linear-gradient(180deg,#fff,var(--accent-soft))}.preview-content b,.preview-content p{flex:1 1 100%}.preview-content b{color:#0f172a;font-size:16px}.preview-content p{margin:0 0 4px;color:#64748b;font-size:12px}.number-preview{min-width:190px;display:grid;gap:3px;padding:10px 12px;border:1px solid var(--accent-ring);border-radius:8px;background:#ffffffbd}.number-preview span,.number-preview em{color:#64748b;font-size:11px;font-style:normal}.number-preview strong{color:var(--accent-strong);font-size:20px;line-height:1}.segments{display:inline-flex;gap:3px;height:34px;padding:2px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc}.segments button{height:28px;border:0;border-radius:7px;padding:0 12px;color:#475569;background:transparent;cursor:pointer}.segments button.active{color:#fff;background:#0f172a}.quick-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:10px;align-items:end;padding:12px 18px;border-top:1px solid #f1f5f9;border-bottom:1px solid #f1f5f9;background:#fbfdff}.quick-form label{display:grid;gap:5px;min-width:0}.quick-form span{color:#64748b;font-size:12px}.quick-form input{width:100%;height:34px;border:1px solid #e2e8f0;border-radius:8px;padding:0 10px;color:#0f172a;background:#fff;outline:none}.quick-form input:focus{border-color:#67e8f9;box-shadow:0 0 0 3px #67e8f940}.binding-workspace{display:grid;grid-template-columns:minmax(280px,330px) minmax(0,1fr);gap:16px}.binding-tree-card,.binding-detail-card{min-width:0}.binding-tree-card{align-self:start;position:sticky;top:88px}.binding-tree{max-height:calc(100vh - 190px);overflow:auto;padding:6px 10px 14px}.binding-tree-node{width:100%;min-height:34px;display:flex;align-items:center;gap:7px;border:0;border-radius:8px;color:#334155;background:transparent;text-align:left;cursor:pointer}.binding-tree-node:hover{background:#f8fafc}.binding-tree-node.active{color:#0f172a;background:#ecfeff;box-shadow:inset 0 0 0 1px #bae6fd}.binding-tree-node span{flex:0 0 auto;padding:3px 7px;border-radius:999px;color:#475569;background:#f1f5f9;font-size:11px}.binding-tree-node strong{min-width:0;overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.binding-tree-node em{margin-left:auto;overflow:hidden;color:#0891b2;font-size:11px;font-style:normal;text-overflow:ellipsis;white-space:nowrap}.binding-tree-node b{min-width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;color:#fff;background:#0f172a;font-size:11px}.binding-selected-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:8px 16px 10px}.binding-guide{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin:4px 16px 8px;overflow:hidden;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc}.binding-guide div{min-width:0;padding:9px 12px;border-right:1px solid #e2e8f0}.binding-guide div:last-child{border-right:0}.binding-guide strong,.binding-guide span{display:block}.binding-guide strong{color:#0f172a;font-size:13px}.binding-guide span{margin-top:5px;color:#64748b;font-size:12px;line-height:1.4}.binding-selected-summary div{min-width:0;padding:8px 10px;border:1px solid #e2e8f0;border-radius:9px;background:#f8fafc}.binding-selected-summary span,.binding-selected-summary strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.binding-selected-summary span{color:#64748b;font-size:11px}.binding-selected-summary strong{margin-top:5px;color:#0f172a;font-size:14px}.binding-panels{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:12px 16px 14px;border-top:1px solid #f1f5f9;background:#fbfdff}.binding-panel{display:grid;gap:10px;min-width:0;padding:12px;border:1px solid #e2e8f0;border-radius:10px;background:#fff}.formula-source-panel{border-color:#bae6fd;background:linear-gradient(180deg,#fff,#f8fdff)}.binding-panel-title{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.binding-panel-title strong{font-size:14px}.binding-panel-title span,.binding-panel label span{color:#64748b;font-size:12px}.binding-panel label{display:grid;gap:5px;min-width:0}.binding-panel input,.binding-panel textarea,.binding-panel select{width:100%;min-width:0;border:1px solid #e2e8f0;border-radius:8px;color:#0f172a;background:#fff;outline:none}.binding-panel input,.binding-panel select{height:34px;padding:0 9px}.binding-panel select[size]{height:auto;min-height:136px;padding:5px}.binding-panel select[size] option{padding:6px 7px;border-radius:6px}.binding-panel textarea{height:92px;resize:vertical;padding:8px 9px;line-height:1.45}.binding-panel input:focus,.binding-panel textarea:focus,.binding-panel select:focus{border-color:#67e8f9;box-shadow:0 0 0 3px #67e8f940}.binding-inline{display:grid;grid-template-columns:minmax(92px,.7fr) minmax(82px,.6fr) auto;gap:8px;align-items:end}.formula-toolbox{display:grid;gap:9px}.formula-var-group{display:grid;gap:5px}.formula-var-group>span{color:#64748b;font-size:11px;font-weight:650}.formula-var-group input{height:30px;border:1px solid #e2e8f0;border-radius:7px;padding:0 8px;color:#0f172a;background:#fff;outline:none}.formula-ops,.formula-vars,.formula-actions{display:flex;flex-wrap:wrap;gap:6px}.formula-ops button{width:30px;height:28px;border:1px solid #e2e8f0;border-radius:7px;color:#0f172a;background:#f8fafc;cursor:pointer}.formula-vars{max-height:88px;overflow:auto;padding:6px;border:1px solid #e2e8f0;border-radius:9px;background:#f8fafc}.formula-vars.compact{max-height:70px}.formula-vars button{max-width:100%;min-height:28px;display:inline-flex;align-items:center;gap:7px;border:1px solid #dbeafe;border-radius:8px;color:#0f172a;background:#fff;cursor:pointer}.formula-vars button strong{overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.formula-vars button span{color:#0891b2;font-size:11px}.formula-preview{display:grid;gap:5px;padding:8px 9px;border:1px dashed #bae6fd;border-radius:8px;background:#f8fdff}.formula-preview>span{color:#64748b;font-size:11px;font-weight:650}.formula-expression{display:inline;overflow-wrap:anywhere;color:#334155;font-family:inherit;font-size:12px;line-height:1.7;white-space:pre-wrap}.formula-name-token{display:inline-flex;align-items:center;min-height:22px;margin:0 2px;padding:0 7px;border:1px solid #bae6fd;border-radius:999px;color:#075985;background:#ecfeff;font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:12px;font-weight:700;vertical-align:baseline}.formula-check{min-height:30px;display:flex;align-items:center;padding:7px 9px;border-radius:8px;font-size:12px;line-height:1.4}.formula-check.ok{color:#166534;background:#f0fdf4}.formula-check.error{color:#991b1b;background:#fff1f2}.picker-count{color:#64748b;font-size:11px;font-style:normal}.binding-list-head{display:flex;align-items:center;justify-content:space-between;padding:12px 16px 0;border-top:1px solid #f1f5f9}.binding-list-head strong,.binding-list-head span{display:block}.binding-list-head strong{color:#0f172a;font-size:14px}.binding-list-head span{margin-top:3px;color:#64748b;font-size:12px}.formula-source-list{display:grid;gap:8px;padding:10px 16px 16px}.formula-source-item{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 12px;border:1px solid #e2e8f0;border-radius:9px;background:#fff}.source-row-actions{display:inline-flex;align-items:center;gap:6px}.formula-source-item strong,.formula-source-item span{display:block;min-width:0}.formula-source-item strong{color:#0f172a;font-size:13px}.formula-source-item span{margin-top:6px;color:#64748b;font-size:12px}.point-toolbar{display:flex;align-items:center;gap:10px;padding:12px 18px 0}.point-toolbar select{min-width:260px;height:38px;border:1px solid #e2e8f0;border-radius:8px;padding:0 10px;color:#0f172a;background:#fff;outline:none}.point-toolbar select:focus{border-color:#67e8f9;box-shadow:0 0 0 3px #67e8f940}.driver-tabs{display:inline-flex;gap:4px;margin:12px 18px 0;padding:4px;border:1px solid #e2e8f0;border-radius:9px;background:#f8fafc}.driver-tabs button{height:28px;border:0;border-radius:7px;padding:0 12px;color:#475569;background:transparent;cursor:pointer}.driver-tabs button.active{color:#fff;background:#0f172a}.driver-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:end;padding:12px 18px 18px}.driver-form label{display:grid;gap:5px;min-width:0}.driver-form span{color:#64748b;font-size:12px}.driver-form input,.driver-form select{width:100%;height:34px;border:1px solid #e2e8f0;border-radius:8px;padding:0 10px;color:#0f172a;background:#fff;outline:none}.driver-form input:focus,.driver-form select:focus{border-color:#67e8f9;box-shadow:0 0 0 3px #67e8f938}.driver-capabilities{display:grid;gap:10px;padding:12px 18px 18px}.driver-capabilities div{padding:14px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc}.driver-capabilities strong{display:block;color:#0f172a;font-size:14px}.driver-capabilities span{display:block;margin-top:7px;color:#64748b;font-size:12px;line-height:1.55}.driver-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:12px 18px}.driver-summary div{min-height:64px;display:grid;align-content:center;gap:6px;padding:10px 12px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc}.driver-summary span{color:#64748b;font-size:12px}.driver-summary strong{min-width:0;overflow:hidden;color:#0f172a;font-size:14px;text-overflow:ellipsis;white-space:nowrap}.driver-point-panel{display:grid;grid-template-columns:minmax(220px,1fr) minmax(220px,1fr) auto;gap:10px;align-items:end;padding:12px 18px;border-top:1px solid #f1f5f9;background:#fbfdff}.driver-point-panel label{display:grid;gap:5px;min-width:0}.driver-point-panel span{color:#64748b;font-size:12px}.driver-point-panel select{width:100%;height:34px;border:1px solid #e2e8f0;border-radius:8px;padding:0 10px;color:#0f172a;background:#fff;outline:none}.point-import-actions{display:flex;gap:8px}.import-message{margin:0 18px 10px;padding:9px 10px;border:1px solid #dbeafe;border-radius:8px;color:#475569;background:#f8fdff;font-size:12px}.realtime-summary,.point-history-toolbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:12px 18px;border-top:1px solid #f1f5f9;background:#fbfdff}.realtime-summary div,.point-history-toolbar div,.point-history-toolbar label{min-height:58px;display:grid;align-content:center;gap:6px;padding:9px 11px;border:1px solid #e2e8f0;border-radius:10px;background:#fff}.realtime-summary span,.point-history-toolbar span{color:#64748b;font-size:12px}.realtime-summary strong,.point-history-toolbar strong{min-width:0;overflow:hidden;color:#0f172a;font-size:15px;text-overflow:ellipsis;white-space:nowrap}.point-history-toolbar select{width:100%;height:34px;border:1px solid #e2e8f0;border-radius:8px;padding:0 10px;color:#0f172a;background:#fff;outline:none}.metering-read-now-actions{margin-left:auto;display:flex;align-items:center;justify-content:flex-end}.metering-read-now-button{white-space:nowrap}.point-read-now-button{height:26px;min-height:26px;padding:0 9px;font-size:12px;white-space:nowrap}.gateway-runtime-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;padding:12px 18px;border-top:1px solid #f1f5f9;background:#fbfdff}.gateway-runtime-summary div{min-height:62px;display:grid;align-content:center;gap:6px;padding:10px 12px;border:1px solid #e2e8f0;border-radius:10px;background:#fff}.gateway-runtime-summary span{color:#64748b;font-size:12px}.gateway-runtime-summary strong{min-width:0;overflow:hidden;color:#0f172a;font-size:18px;text-overflow:ellipsis;white-space:nowrap}.gateway-actions{display:flex;align-items:end;flex-wrap:wrap;justify-content:flex-end;gap:8px;padding:0 18px 10px}.gateway-actions label{display:grid;gap:5px;min-width:220px}.gateway-actions label span{color:#64748b;font-size:12px}.gateway-actions select{height:34px;border:1px solid #e2e8f0;border-radius:8px;padding:0 10px;color:#0f172a;background:#fff;outline:none}.gateway-actions button:disabled{cursor:not-allowed;opacity:.55}.rank,.tree{min-width:0;overflow-x:hidden;padding:8px 18px 18px}.tree-toolbar{display:flex;gap:6px;justify-content:flex-end;padding:4px 0 8px}.rank-row,.tree-row{min-height:42px;display:flex;align-items:center;justify-content:flex-start;gap:12px;border-bottom:1px solid #f1f5f9;color:#334155}.rank-row strong{color:#0f172a;font-size:13px}.rank-row{justify-content:space-between}.tree-row strong{min-width:0;overflow:hidden;color:#0f172a;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.tree-row span,.widget span{flex:0 0 auto;border-radius:999px;background:#f1f5f9;color:#475569;font-size:12px;padding:4px 8px}.tree-row em{max-width:160px;flex:0 1 auto;overflow:hidden;color:#0891b2;font-size:12px;font-style:normal;text-overflow:ellipsis;white-space:nowrap}.tree-row.draggable{cursor:grab}.tree-row.draggable:hover{background:#f8fafc}.tree-row.draggable:active{cursor:grabbing}.production-tree-enhanced .tree-toolbar{padding-top:0}.production-tree-list{display:grid}.production-tree-entry{min-width:0}.production-tree-row{transition:background .16s ease,box-shadow .16s ease}.production-tree-row:hover{box-shadow:inset 3px 0 0 var(--accent)}.production-tree-row .icon-button{width:28px;height:28px;font-size:16px;font-weight:700}.production-flow-card{grid-column:1 / -1}.production-flow-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;color:#0f172a;background:#f8d77a;font-size:14px;font-weight:800}.energy-flow-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;color:#fff;background:#8da2fb;font-size:14px;font-weight:800}.production-flow-summary{grid-template-columns:repeat(6,minmax(0,1fr));padding-top:12px}.energy-flow-summary{grid-template-columns:repeat(6,minmax(0,1fr))}.production-flow-chart{width:100%;height:420px;padding:0 14px 14px}.energy-flow-chart{width:100%;height:520px;padding:0 14px 14px}.tree-actions{display:flex;align-items:center;flex:0 0 auto;gap:6px;margin-left:auto}.tree-actions button:not(.icon-button){height:28px;display:inline-flex;align-items:center;gap:4px;padding:0 7px;border:1px solid #e2e8f0;border-radius:6px;color:#475569;background:#fff;font-size:11px;cursor:pointer}.tree-actions button:not(.icon-button):hover{color:#0f172a;border-color:#bae6fd;background:#f0f9ff}.tree-node-form{display:grid;grid-template-columns:repeat(5,minmax(0,1fr)) auto;gap:8px;align-items:end;margin-top:6px;margin-bottom:8px;padding:10px;border:1px solid #dbeafe;border-radius:10px;background:#f8fdff}.tree-node-form label{display:grid;gap:4px;min-width:0}.tree-node-form span{color:#64748b;font-size:11px;font-weight:650}.tree-node-form input{width:100%;height:34px;border:1px solid #e2e8f0;border-radius:7px;padding:0 8px;color:#0f172a;background:#fff;outline:none}.tree-node-form input:focus{border-color:#67e8f9;box-shadow:0 0 0 3px #67e8f938}.tree-form-actions{display:flex;gap:6px}.tree-form-actions .primary,.tree-form-actions .secondary{height:30px;padding:0 9px}.production-page-card,.production-workbench-card{grid-column:1 / -1}.production-overlay-host{position:fixed;inset:64px 0 0 232px;z-index:7;overflow:auto;display:grid;gap:14px;align-content:start;padding:14px 24px 60px;background:#f8fafc}.sidebar-collapsed~.admin-main .production-overlay-host,body:has(.sidebar-collapsed) .production-overlay-host{left:64px}body.production-overlay-active .admin-main .shell>*{visibility:hidden}.production-page-card .head-icon,.production-workbench-card .head-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;color:#fff;background:var(--accent);font-size:14px;font-weight:800}.production-page-summary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;padding:10px 18px 0}.production-page-summary div,.production-detail-stats div{min-width:0;border:1px solid #e2e8f0;border-radius:10px;padding:10px 12px;background:#f8fafc}.production-page-summary span,.production-detail-stats span{display:block;color:#64748b;font-size:12px}.production-page-summary strong,.production-detail-stats strong{display:block;min-width:0;overflow:hidden;margin-top:6px;color:#0f172a;font-size:16px;text-overflow:ellipsis;white-space:nowrap}.production-page-tools{display:flex;align-items:end;justify-content:flex-end;gap:8px;padding:12px 18px 10px}.production-page-tools label{display:grid;gap:4px;min-width:220px;margin-right:auto}.production-page-tools label span{color:#64748b;font-size:12px;font-weight:650}.production-page-tools input,.production-page-form input,.production-page-form select{width:100%;height:34px;border:1px solid #e2e8f0;border-radius:8px;padding:0 10px;color:#0f172a;background:#fff;outline:none}.production-page-tools input:focus,.production-page-form input:focus,.production-page-form select:focus{border-color:var(--accent-ring);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent-ring) 46%,transparent)}.production-page-layout{display:grid;grid-template-columns:minmax(320px,.92fr) minmax(0,1.08fr);gap:14px;padding:0 18px 18px}.production-page-tree,.production-page-detail{min-width:0;border:1px solid #e2e8f0;border-radius:12px;background:#fff}.production-page-tree{max-height:660px;overflow:auto;padding:10px}.production-tree-head{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:10px;margin:-10px -10px 8px;padding:10px;border-bottom:1px solid #e2e8f0;background:#fffffff0;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.production-tree-head span{color:#0f172a;font-size:13px;font-weight:800}.production-tree-head b{color:#94a3b8;font-size:12px;font-weight:600}.production-page-node{min-width:0}.production-page-tree-row{width:100%;min-height:40px;display:grid;grid-template-columns:auto minmax(0,1fr) minmax(72px,auto) 26px;align-items:center;gap:8px;margin:3px 0;padding:0 8px 0 calc(8px + var(--level, 0) * 22px);border:1px solid transparent;border-radius:9px;color:#334155;background:transparent;cursor:pointer;transition:background .16s ease,border-color .16s ease,box-shadow .16s ease}.production-page-tree-row:hover{border-color:#e2e8f0;background:#f8fafc}.production-page-tree-row.active{border-color:var(--accent-ring);background:linear-gradient(90deg,var(--accent-soft),#fff);box-shadow:inset 3px 0 0 var(--accent)}.production-page-tree-row.dragging{opacity:.58}.production-page-tree-row.drop-target{border-color:var(--accent);background:var(--accent-soft)}.production-page-tree-row strong,.production-mini-row strong,.production-equipment-card strong{min-width:0;overflow:hidden;color:#0f172a;font-size:13px;text-align:left;text-overflow:ellipsis;white-space:nowrap}.production-node-type,.production-detail-head span,.production-mini-row span,.production-line-section em{display:inline-flex;align-items:center;width:fit-content;min-height:22px;border-radius:999px;padding:0 8px;color:#0369a1;background:#e0f2fe;font-size:12px;font-style:normal;font-weight:700}.production-page-tree-row em,.production-mini-row em,.production-output-list em,.production-equipment-card em{min-width:0;overflow:hidden;color:#64748b;font-size:12px;font-style:normal;text-overflow:ellipsis;white-space:nowrap}.production-page-tree-row b{width:24px;height:24px;display:grid;place-items:center;border-radius:8px;color:#64748b;background:#f1f5f9;font-size:12px}.production-page-form{display:grid;grid-template-columns:minmax(140px,1fr) 120px minmax(180px,1.2fr) auto;gap:8px;align-items:end;margin:6px 0 8px;padding:10px;border:1px solid #bfdbfe;border-radius:10px;background:#f8fbff}.production-page-form label{display:grid;gap:4px;min-width:0}.production-page-form label span{color:#64748b;font-size:11px;font-weight:700}.production-page-form-actions{display:flex;gap:6px}.production-page-form-actions .primary,.production-page-form-actions .secondary{height:30px;padding:0 9px}.production-page-detail{padding:14px}.production-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.production-detail-head h3{margin:8px 0 4px;color:#0f172a;font-size:20px;letter-spacing:0}.production-detail-head p{margin:0;color:#64748b;font-size:13px}.production-detail-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.production-detail-actions .secondary{height:30px;padding:0 9px;font-size:12px}.secondary.danger{color:#b91c1c;border-color:#fecaca;background:#fff7f7}.production-detail-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:14px}.production-detail-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:14px;margin-top:16px}.production-detail-grid h4{margin:0 0 8px;color:#0f172a;font-size:13px}.production-mini-list,.production-output-list{display:grid;gap:7px}.production-mini-row{min-width:0;min-height:38px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;border:1px solid #e2e8f0;border-radius:9px;padding:7px 9px;background:#fff;cursor:pointer}.production-mini-row:hover,.production-equipment-card:hover,.production-line-section button:hover{border-color:var(--accent-ring);background:var(--accent-soft)}.production-output-list div{min-width:0;display:grid;grid-template-columns:minmax(108px,auto) auto minmax(0,1fr);align-items:center;gap:8px;min-height:34px;border-bottom:1px solid #f1f5f9}.production-output-list span{color:#64748b;font-size:12px}.production-output-list strong{color:#0f172a;font-size:13px}.production-direct-note{margin:14px 0 0;color:#64748b;font-size:12px}.production-empty{display:grid;place-items:center;min-height:92px;border:1px dashed #cbd5e1;border-radius:10px;color:#64748b;background:#f8fafc;font-size:13px}.production-empty.small{min-height:42px}.production-workbench-card{margin-top:14px}.production-line-board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:10px 18px 18px}.production-line-column{min-width:0;border:1px solid #e2e8f0;border-radius:12px;padding:12px;background:#f8fafc}.production-line-title{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding-bottom:10px;border-bottom:1px solid #e2e8f0}.production-line-title strong{color:#0f172a;font-size:14px}.production-line-title span{color:#64748b;font-size:12px;white-space:nowrap}.production-line-section{display:grid;gap:7px;margin-top:10px}.production-line-section button{min-height:32px;border:1px solid #e2e8f0;border-radius:8px;color:#334155;background:#fff;text-align:left;cursor:pointer}.production-line-section p{margin:0;color:#94a3b8;font-size:12px}.production-add-operation{width:100%;margin-top:12px;justify-content:center}.production-equipment-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:10px 18px 18px}.production-equipment-card{min-width:0;display:grid;gap:7px;min-height:98px;border:1px solid #e2e8f0;border-radius:12px;padding:12px;background:#fff;text-align:left;cursor:pointer}.production-equipment-card span{min-width:0;overflow:hidden;color:#64748b;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.virtual-page-card{grid-column:1 / -1}.virtual-shell .page-title{align-items:center;margin-bottom:16px}.virtual-shell .page-title p{margin-bottom:5px;color:#64748b;font-size:12px;font-weight:700;letter-spacing:0;text-transform:none}.virtual-shell .page-title h1{font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:24px;font-weight:750;line-height:1.2}.virtual-page-card .head-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;color:#fff;background:var(--accent);font-size:14px;font-weight:800}.virtual-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:12px 18px;border-top:1px solid #f1f5f9;background:#fbfdff}.virtual-summary div{min-width:0;min-height:62px;display:grid;align-content:center;gap:6px;border:1px solid #e2e8f0;border-radius:10px;padding:10px 12px;background:#fff}.virtual-summary span{display:block;color:#64748b;font-size:12px}.virtual-summary strong{display:block;min-width:0;overflow:hidden;color:#0f172a;font-size:15px;text-overflow:ellipsis;white-space:nowrap}.virtual-layout{display:grid;grid-template-columns:minmax(300px,.82fr) minmax(0,1.18fr);gap:14px;padding:12px 18px 18px}.virtual-list,.virtual-detail{min-width:0;border:1px solid #e2e8f0;border-radius:10px;background:#fff}.virtual-list{max-height:660px;overflow:auto;padding:10px}.virtual-list-head{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:8px;margin:-10px -10px 8px;padding:9px 10px;border-bottom:1px solid #e2e8f0;background:#fffffff0;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.virtual-list-head strong{color:#0f172a;font-size:13px}.virtual-list-head .secondary{height:30px;padding:0 9px;font-size:12px}.virtual-row{width:100%;min-height:42px;display:grid;grid-template-columns:auto minmax(0,1fr) minmax(74px,auto);grid-template-areas:"type name value" "type code value";align-items:center;gap:3px 8px;margin:4px 0;border:1px solid transparent;border-radius:8px;padding:6px 9px;background:transparent;cursor:pointer}.virtual-row:hover{border-color:#e2e8f0;background:#f8fafc}.virtual-row.active{border-color:var(--accent-ring);background:var(--accent-soft);box-shadow:inset 3px 0 0 var(--accent)}.virtual-row span,.virtual-detail-head span{grid-area:type;display:inline-flex;align-items:center;width:fit-content;min-height:21px;border-radius:999px;padding:0 8px;color:#0369a1;background:#e0f2fe;font-size:11px;font-weight:700}.virtual-row strong{grid-area:name;min-width:0;overflow:hidden;color:#0f172a;font-size:13px;text-align:left;text-overflow:ellipsis;white-space:nowrap}.virtual-row em{grid-area:code;color:#64748b;font-size:12px;font-style:normal;text-align:left}.virtual-row b{grid-area:value;color:#0f172a;font-size:12px;font-weight:800;text-align:right}.virtual-detail{padding:12px}.virtual-detail-head{display:flex;justify-content:space-between;gap:12px}.virtual-detail-head h3{margin:7px 0 4px;color:#0f172a;font-size:18px;font-weight:750}.virtual-detail-head p{margin:0;color:#64748b;font-size:12px}.virtual-detail-actions{display:flex;gap:6px}.virtual-detail-actions .secondary{height:30px;padding:0 9px;font-size:12px}.virtual-form{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;align-items:end;margin-top:12px;padding:10px;border:1px solid #dbeafe;border-radius:10px;background:#f8fbff}.virtual-form label{display:grid;gap:4px;min-width:0}.virtual-form label.wide{grid-column:span 2}.virtual-form label.check{display:flex;align-items:center;gap:7px;min-height:34px;color:#475569;font-size:12px;font-weight:700}.virtual-form span{color:#64748b;font-size:11px;font-weight:700}.virtual-form input,.virtual-form select{width:100%;height:34px;border:1px solid #e2e8f0;border-radius:8px;padding:0 10px;color:#0f172a;background:#fff;outline:none}.virtual-form input:focus,.virtual-form select:focus{border-color:var(--accent-ring);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent-ring) 46%,transparent)}.virtual-form-actions{display:flex;gap:6px}.virtual-form-actions .primary,.virtual-form-actions .secondary{height:30px;padding:0 9px}.virtual-table-wrap{max-width:100%;overflow-x:auto;margin-top:12px;border:1px solid #e2e8f0;border-radius:10px}.virtual-table-wrap table{min-width:760px;font-size:13px}.virtual-empty{display:grid;place-items:center;min-height:88px;border:1px dashed #cbd5e1;border-radius:10px;color:#64748b;background:#f8fafc;font-size:13px}.virtual-shell .inline-toolbar{margin-top:0}.virtual-shell .inline-toolbar label.wide{min-width:280px;flex:1 1 280px}.virtual-shell .inline-toolbar select{height:34px;border:1px solid #e2e8f0;border-radius:8px;padding:0 10px;color:#0f172a;background:#fff;outline:none}.virtual-shell .inline-toolbar .checkbox-line{flex:0 0 auto}.virtual-definition-table tr.selected-row td{background:var(--accent-soft)}.virtual-definition-table code{color:#0369a1;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:12px;font-weight:700}.table-wrap{max-width:100%;min-width:0;overflow-x:auto;padding:8px 18px 18px}table{width:100%;border-collapse:collapse;font-size:13px;min-width:min(560px,100%)}th{color:#64748b;text-align:left;font-weight:600;background:#f8fafc}th,td{padding:12px 10px;border-bottom:1px solid #f1f5f9;white-space:nowrap}td{color:#334155}.table-status{min-height:24px;display:inline-flex;align-items:center;border:1px solid #e2e8f0;border-radius:999px;padding:0 9px;color:#475569;background:#f8fafc;font-size:11px;font-weight:750;letter-spacing:0}.table-status.ok{color:#047857;border-color:#a7f3d0;background:#d1fae5}.table-status.bad{color:#b91c1c;border-color:#fecaca;background:#fee2e2}.table-status.warn{color:#92400e;border-color:#fde68a;background:#fef3c7}.table-status.status-spike,.table-status.status-abnormal{color:#be123c;border-color:#fecdd3;background:#fff1f2}.widget-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:10px;padding:18px}.widget{min-height:150px;padding:14px;border:1px solid #e5e7eb;border-radius:8px;background:linear-gradient(180deg,#fff,#f8fafc)}.widget strong{display:block;margin-top:18px;font-size:18px}.widget p{margin:8px 0 0;color:#64748b}.dashboard-layout-editor{padding-top:8px}.dashboard-canvas{align-items:stretch;gap:8px;grid-auto-flow:row;grid-auto-rows:64px;min-height:520px;padding-top:12px;background-color:#fbfdff;background-image:linear-gradient(to right,rgba(15,23,42,.14) 1px,transparent 1px),linear-gradient(to bottom,rgba(15,23,42,.12) 1px,transparent 1px);background-size:calc((100% - 36px + 8px) / 12) 72px,calc((100% - 36px + 8px) / 12) 72px;background-position:18px 12px,18px 12px}.dashboard-drop-preview{z-index:0;margin:4px;border:1px dashed #0891b2;border-radius:8px;background:#0891b21f;box-shadow:inset 0 0 0 1px #67e8f9a6,0 18px 34px #0891b229;pointer-events:none}.dashboard-drop-preview.blocked{border-color:#ef4444;background:#ef44441f;box-shadow:inset 0 0 0 1px #fca5a5b3,0 18px 34px #ef444429}.dashboard-widget{position:relative;z-index:1;display:grid;align-content:start;gap:10px;min-height:0;height:100%;overflow:hidden;padding-bottom:24px;cursor:grab;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}.dashboard-widget:hover{border-color:var(--accent);box-shadow:0 14px 30px #0f172a14;transform:translateY(-1px)}.dashboard-widget.dragging{opacity:.62;border-color:var(--accent-strong);cursor:grabbing}.dashboard-widget.drop-target{border-color:#0891b2;background:linear-gradient(180deg,#ecfeff,#fff);box-shadow:inset 0 0 0 1px #67e8f9,0 16px 32px #0891b21f}.dashboard-widget-head{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:8px}.drag-handle,.publish-chip{min-height:24px;display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:0 8px;font-size:11px;font-weight:700}.drag-handle{color:#475569;background:#f1f5f9}.publish-chip{color:#92400e;background:#fffbeb}.publish-chip.published{color:#166534;background:#f0fdf4}.dashboard-widget strong{min-width:0;margin-top:0;overflow:hidden;color:#0f172a;font-size:16px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.dashboard-widget p{min-width:0;margin:0;overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.dashboard-resize-handle{position:absolute;right:6px;bottom:6px;width:18px;height:18px;border:0;border-radius:6px;padding:0;background:linear-gradient(135deg,transparent 0 42%,#94a3b8 42% 50%,transparent 50% 100%),linear-gradient(135deg,transparent 0 58%,#cbd5e1 58% 66%,transparent 66% 100%);cursor:nwse-resize}.dashboard-resize-handle:hover{background-color:#f1f5f9}.menu-auth-page{display:grid;grid-template-columns:250px minmax(0,1fr);gap:14px;min-height:calc(100vh - 132px)}.menu-auth-roles,.menu-auth-main{min-width:0;border:1px solid #e2e8f0;background:#fff;border-radius:14px;box-shadow:0 12px 28px #0f172a0d}.menu-auth-roles{align-self:start;max-height:calc(100vh - 132px);overflow:hidden}.menu-auth-title{display:grid;gap:2px;padding:14px 14px 12px;border-bottom:1px solid #eef2f7;background:linear-gradient(135deg,#f8fafc,#fff)}.menu-auth-title span,.menu-auth-kicker{color:#64748b;font-size:11px;font-weight:700;letter-spacing:0;text-transform:uppercase}.menu-auth-title strong{color:#0f172a;font-size:17px}.menu-auth-role-list{display:grid;gap:8px;max-height:calc(100vh - 198px);overflow-y:auto;padding:10px}.menu-auth-role{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;align-items:center;width:100%;min-height:56px;border:1px solid #e2e8f0;border-radius:10px;padding:9px 10px;color:#334155;background:#f8fafc;text-align:left}.menu-auth-role:hover{border-color:#cbd5e1;background:#fff}.menu-auth-role.active{border-color:color-mix(in srgb,var(--accent) 58%,#fff);background:linear-gradient(135deg,var(--accent-soft),#fff 72%),#fff;box-shadow:inset 3px 0 0 var(--accent)}.menu-auth-role strong,.menu-auth-role span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.menu-auth-role strong{color:#0f172a;font-size:13px}.menu-auth-role span{grid-column:1 / 2;color:#64748b;font-size:11px}.menu-auth-role em{grid-row:1 / 3;grid-column:2 / 3;padding:3px 7px;border:1px solid #dbeafe;color:var(--accent-strong);background:#eff6ff;font-size:11px;font-style:normal}.menu-auth-main{overflow:hidden}.menu-auth-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px 12px;border-bottom:1px solid #eef2f7;background:linear-gradient(135deg,#f8fafc 0%,#fff 64%,var(--accent-soft) 100%)}.menu-auth-header h2{margin:2px 0 0;color:#0f172a;font-size:19px;line-height:1.2}.menu-auth-header p{margin:3px 0 0;color:#64748b;font-size:12px}.menu-auth-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:8px;padding:12px 16px;border-bottom:1px solid #eef2f7;background:#fbfdff}.menu-auth-toolbar label{display:grid;gap:5px;min-width:220px}.menu-auth-toolbar label span{color:#64748b;font-size:11px;font-weight:650}.menu-auth-search{width:100%;height:32px;border:1px solid #dbe3ee;border-radius:8px;padding:0 10px;color:#0f172a;background:#fff;outline:none}.menu-auth-search:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.menu-auth-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:12px 16px 0}.menu-auth-stats div{min-width:0;border:1px solid #e2e8f0;padding:8px 10px;background:#fff;border-radius:8px}.menu-auth-stats span,.menu-auth-stats strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.menu-auth-stats span{color:#64748b;font-size:11px}.menu-auth-stats strong{margin-top:3px;color:#0f172a;font-size:16px}.menu-auth-tree{display:grid;gap:10px;padding:12px 16px 16px}.menu-auth-group{overflow:hidden;border:1px solid #e2e8f0;background:#fff;border-radius:10px}.menu-auth-group-head,.menu-auth-child{position:relative;display:flex;align-items:center;min-width:0;cursor:pointer}.menu-auth-group-head{gap:9px;min-height:38px;padding:0 12px;border-bottom:1px solid #eef2f7;background:#f8fafc}.menu-auth-child{gap:8px;min-height:33px;padding:0 12px 0 36px}.menu-auth-child+.menu-auth-child{border-top:1px solid #f1f5f9}.menu-auth-group-head input,.menu-auth-child input{position:absolute;opacity:0;pointer-events:none}.menu-auth-group-head i,.menu-auth-child i{flex:0 0 auto;width:15px;height:15px;display:inline-grid;place-items:center;border:1px solid #cbd5e1;background:#fff;border-radius:4px}.menu-auth-group-head input:checked+i,.menu-auth-child input:checked+i{border-color:var(--accent);background:var(--accent)}.menu-auth-group-head input:checked+i:after,.menu-auth-child input:checked+i:after{content:"";width:7px;height:4px;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(-45deg) translateY(-1px)}.menu-auth-group-head i.partial{border-color:var(--accent);background:var(--accent-soft)}.menu-auth-group-head i.partial:after{content:"";width:8px;height:2px;background:var(--accent)}.menu-auth-group-head strong,.menu-auth-group-head span,.menu-auth-child span,.menu-auth-child em{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.menu-auth-group-head strong,.menu-auth-child span{flex:1 1 auto;color:#0f172a;font-size:13px;font-weight:650}.menu-auth-group-head span,.menu-auth-group-head em,.menu-auth-child em{flex:0 0 auto;max-width:210px;color:#64748b;font-size:11px;font-style:normal}.menu-auth-child:hover{background:#fbfdff}.menu-auth-empty,.menu-auth-loading{min-height:180px;display:grid;place-items:center;color:#64748b}.node-type-page{display:grid;gap:12px;padding:0 16px 16px}.node-types-enhanced{overflow:hidden}.node-types-enhanced .card-head{padding:16px 16px 10px;border-bottom:1px solid #eef2f7;background:linear-gradient(135deg,#f8fafc,#fff)}.node-type-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.node-type-summary div,.node-type-panel{min-width:0;border:1px solid #e2e8f0;background:#fff;border-radius:12px}.node-type-summary div{padding:9px 11px;background:linear-gradient(135deg,#f8fafc,#fff)}.node-type-summary span,.node-type-summary strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.node-type-summary span{color:#64748b;font-size:11px;font-weight:650}.node-type-summary strong{margin-top:3px;color:#0f172a;font-size:17px}.node-type-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px}.node-type-tabs{display:inline-flex;gap:6px;padding:4px;border:1px solid #e2e8f0;background:#f8fafc;border-radius:8px}.node-type-tabs button{height:29px;border:1px solid transparent;padding:0 12px;color:#64748b;background:transparent;font-size:12px;font-weight:700;cursor:pointer}.node-type-tabs button.active{border-color:color-mix(in srgb,var(--accent) 42%,#dbeafe);color:var(--accent-strong);background:linear-gradient(135deg,var(--accent-soft),#fff 70%);border-radius:7px}.node-type-layout{display:grid;grid-template-columns:minmax(260px,340px) minmax(0,1fr);gap:12px;align-items:start}.node-type-panel{overflow:hidden}.node-type-panel>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 13px;border-bottom:1px solid #eef2f7;background:linear-gradient(135deg,#f8fafc,#fff)}.node-type-panel>header span{color:#64748b;font-size:11px;font-weight:750}.node-type-panel>header strong{color:#0f172a;font-size:13px}.node-type-form{display:grid;gap:9px;padding:12px}.node-type-form label{display:grid;gap:5px;min-width:0}.node-type-form label span{color:#64748b;font-size:11px;font-weight:650}.node-type-form input,.node-type-form select{width:100%;height:32px;border:1px solid #dbe3ee;border-radius:8px;padding:0 9px;color:#0f172a;background:#fff;outline:none}.node-type-form input:focus,.node-type-form select:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.node-type-form input[readonly]{color:#64748b;background:#f8fafc}.node-type-switch{grid-template-columns:auto auto 1fr;align-items:center;gap:8px!important}.node-type-switch input{position:absolute;opacity:0;pointer-events:none}.node-type-switch i{position:relative;width:34px;height:18px;border:1px solid #cbd5e1;background:#e2e8f0;border-radius:999px}.node-type-switch i:after{content:"";position:absolute;top:3px;left:4px;width:10px;height:10px;background:#fff;transition:transform .16s ease}.node-type-switch input:checked+i{border-color:var(--accent);background:var(--accent)}.node-type-switch input:checked+i:after{transform:translate(14px)}.node-type-form-actions,.node-type-actions{display:flex;align-items:center;gap:6px}.node-type-list{display:grid;gap:8px;padding:12px}.node-type-row{display:grid;grid-template-columns:32px minmax(0,1fr) auto auto;align-items:center;gap:9px;min-height:54px;border:1px solid #e2e8f0;padding:8px 9px;background:#fff;border-radius:10px}.node-type-row.is-disabled{opacity:.72;background:#f8fafc}.node-type-icon{width:32px;height:32px;display:grid;place-items:center;color:var(--accent-strong);background:var(--accent-soft);font-size:13px;font-weight:800;border-radius:8px}.node-type-info{min-width:0}.node-type-info strong,.node-type-info span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.node-type-info strong{color:#0f172a;font-size:13px}.node-type-info span{margin-top:2px;color:#64748b;font-size:11px}.node-type-edit-row{border:1px solid color-mix(in srgb,var(--accent) 35%,#dbeafe);background:#fbfdff;border-radius:10px}.node-type-empty,.node-type-loading{min-height:150px;display:grid;place-items:center;color:#64748b}@media(max-width:980px){.node-type-page{padding:0 12px 12px}.node-type-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.node-type-layout{grid-template-columns:1fr}.node-type-row{grid-template-columns:32px minmax(0,1fr)}.node-type-actions,.node-type-row .status-pill{grid-column:2 / 3}}.permission-list{display:grid;gap:10px;padding:16px 18px 18px}.permission-role{display:grid;grid-template-columns:220px minmax(0,1fr);gap:12px;align-items:start;padding:12px;border:1px solid #e2e8f0;border-radius:8px;background:#fff}.permission-role strong,.permission-role span{display:block}.permission-role span,.permission-scope em{color:#64748b;font-size:12px}.permission-chips{display:flex;flex-wrap:wrap;gap:8px}.permission-chips button{min-height:28px;padding:0 10px;border:1px solid #e2e8f0;border-radius:999px;color:#475569;background:#f8fafc}.permission-chips button.active{color:var(--accent-strong);border-color:var(--accent);background:var(--accent-soft)}.permission-scope label{display:grid;gap:6px}.permission-scope input{width:100%;height:34px;border:1px solid #e2e8f0;border-radius:8px;padding:0 10px}.dashboard-config-list{display:grid;gap:10px;padding:16px 18px 18px}.dashboard-config-row{display:grid;grid-template-columns:minmax(160px,1fr) minmax(180px,240px) minmax(180px,260px);gap:12px;align-items:end;padding:12px;border:1px solid #e2e8f0;border-radius:8px;background:#fff}.dashboard-config-row label{display:grid;gap:6px}.dashboard-config-row span{color:#64748b;font-size:12px}.dashboard-config-row select,.dashboard-config-row input{height:34px;border:1px solid #e2e8f0;border-radius:8px;padding:0 10px;background:#fff}.flow-card{grid-column:1 / -1}.flow-wrap{padding:8px 18px 18px;overflow-x:auto}.flow-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 18px 2px}.flow-toolbar label{min-width:260px;display:flex;align-items:center;gap:8px}.flow-toolbar label span{color:#64748b;font-size:12px;font-weight:650}.flow-toolbar select{flex:1;height:34px;border:1px solid #e2e8f0;border-radius:8px;padding:0 10px;color:#0f172a;background:#fff;outline:none}.flow-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:10px 18px 4px}.flow-summary div{min-width:0;padding:10px 12px;border:1px solid #e2e8f0;border-radius:9px;background:#f8fafc}.flow-summary span,.flow-summary strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.flow-summary span{color:#64748b;font-size:11px}.flow-summary strong{margin-top:5px;color:#0f172a;font-size:14px}@media(max-width:920px){.topbar{align-items:flex-start;flex-direction:column;gap:12px;padding:16px}.brand{min-width:0}nav{width:100%;overflow-x:auto;padding-bottom:2px}nav button{flex:0 0 auto}.primary{width:100%;justify-content:center}.shell{padding:24px 16px 42px}.page-title{align-items:stretch;flex-direction:column}.search{min-width:0;width:100%}.kpis,.grid.two,.widget-grid{grid-template-columns:1fr}.period-panel{align-items:stretch;flex-direction:column}.segments{overflow-x:auto}.quick-form{grid-template-columns:1fr}.secondary{justify-content:center}.point-toolbar{align-items:stretch;flex-direction:column}.point-toolbar select{min-width:0;width:100%}.driver-form,.driver-summary,.driver-point-panel{grid-template-columns:1fr}.point-import-actions{justify-content:flex-start}.realtime-summary,.point-history-toolbar{grid-template-columns:1fr}.flow-toolbar{align-items:stretch;flex-direction:column}.flow-toolbar label{min-width:0;width:100%}.flow-summary,.gateway-runtime-summary{grid-template-columns:1fr}.gateway-actions{justify-content:flex-start;flex-wrap:wrap}.binding-workspace{grid-template-columns:1fr}.binding-tree-card{position:static}.binding-tree{max-height:none}.binding-guide,.binding-selected-summary,.binding-panels{grid-template-columns:1fr}}.admin-layout{height:100vh;overflow:hidden;display:grid;grid-template-columns:232px minmax(0,1fr);background:#f6f8fb;transition:grid-template-columns .18s ease}.admin-layout.sidebar-collapsed{grid-template-columns:64px minmax(0,1fr)}.sidebar{position:sticky;top:0;z-index:20;height:100vh;overflow-y:auto;border-right:1px solid #e2e8f0;background:#fff;box-shadow:10px 0 30px #0f172a0a}.sidebar .brand{position:sticky;top:0;z-index:2;min-width:0;padding:16px 12px 12px;border-bottom:1px solid #f1f5f9;background:#fffffff0;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.brand-copy{min-width:0;flex:1}.collapse-toggle{width:32px;height:32px;display:grid;place-items:center;flex:0 0 auto;border:1px solid #e2e8f0;border-radius:8px;color:#475569;background:#fff;cursor:pointer}.collapse-toggle:hover{color:#0f172a;border-color:#bae6fd;background:#f0f9ff}.sidebar-collapsed .sidebar .brand{flex-direction:column;justify-content:center;gap:8px;padding:14px 10px 10px}.sidebar-collapsed .brand-copy{display:none}.sidebar-collapsed .collapse-toggle{width:40px;height:32px;display:grid}.menu-tools{display:flex;align-items:center;gap:5px;margin:10px 8px 8px;padding:0 0 10px;border-bottom:1px solid #f1f5f9}.menu-search{flex:1 1 auto;min-width:0;height:32px;display:flex;align-items:center;gap:6px;padding:0 8px;border:1px solid #e2e8f0;border-radius:8px;color:#94a3b8;background:#fff}.menu-search input{min-width:0;width:100%;border:0;outline:0;color:#0f172a;background:transparent;font-size:12px}.menu-search input::placeholder{color:#94a3b8}.menu-tool-actions{display:grid;grid-template-columns:repeat(2,28px);flex:0 0 auto;justify-content:end;gap:4px}.menu-tool-actions button{width:28px;height:30px;display:inline-grid;place-items:center;border:1px solid #e2e8f0;border-radius:7px;color:#475569;background:#f8fafc;cursor:pointer}.menu-tool-actions button:hover{color:#0f172a;border-color:#bae6fd;background:#f0f9ff}.side-nav{display:block;padding:12px 8px 24px}.nav-group{margin-bottom:8px}.nav-group-title{position:relative;overflow:hidden;isolation:isolate;width:100%;height:34px;display:flex;align-items:center;gap:9px;padding:0 10px;border:0;border-radius:8px;color:#0f172a;background:transparent;font-size:13px;font-weight:800;cursor:pointer}.nav-group-title:before{content:"";position:absolute;inset:2px 0;z-index:-1;border-radius:8px;background:transparent;transition:background .16s ease,box-shadow .16s ease}.nav-group-title svg:first-child{width:17px;height:17px}.nav-group-title:hover{background:transparent}.nav-group-title:hover:before{background:linear-gradient(105deg,#f8fafc 0 64%,#fff 64% 100%);box-shadow:inset 0 0 0 1px #edf2f7}.nav-group-title span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chevron{color:#94a3b8;transition:transform .16s ease}.nav-group.collapsed .chevron{transform:rotate(-90deg)}.nav-children{position:relative;margin:2px 0 4px 14px;padding:2px 0 0 12px}.nav-children:before{content:"";position:absolute;top:5px;bottom:7px;left:2px;width:1px;background:#e2e8f0}.nav-children button{position:relative;overflow:hidden;isolation:isolate;width:100%;height:32px;justify-content:flex-start;margin:1px 0;padding:0 10px 0 14px;border:0;border-radius:8px;color:#475569;background:transparent;font-size:13px;text-align:left}.nav-children button:before{content:"";position:absolute;inset:2px 2px 2px 0;z-index:-1;border-radius:8px;background:transparent;transition:background .16s ease,box-shadow .16s ease,border-color .16s ease}.nav-children button:hover{color:#0f172a}.nav-children button:hover:before{background:linear-gradient(105deg,#f8fafc 0 64%,#fff 64% 100%);box-shadow:inset 0 0 0 1px #edf2f7}.nav-children button.active{color:var(--accent-strong);background:transparent;box-shadow:none;font-weight:750}.nav-children button.active:before{background:linear-gradient(105deg,color-mix(in srgb,var(--accent-soft) 88%,#fff) 0 62%,#ffffffeb 62% 100%);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent-ring) 78%,transparent)}.nav-children button.active:after{content:"";position:absolute;left:0;top:7px;bottom:7px;z-index:-1;width:4px;border-radius:0 999px 999px 0;background:linear-gradient(180deg,var(--accent),color-mix(in srgb,var(--accent) 42%,#fff))}.sidebar-collapsed .side-nav{padding:10px}.sidebar-collapsed .nav-group{margin-bottom:6px}.sidebar-collapsed .nav-group-title{width:40px;height:40px;justify-content:center;padding:0}.sidebar-collapsed .nav-group-title span,.sidebar-collapsed .nav-group-title .chevron{display:none}.sidebar-collapsed .nav-group-title:hover{color:var(--accent-strong);background:transparent}.sidebar-collapsed .nav-group-title:before{inset:2px}.sidebar-collapsed .nav-group-title:hover:before{background:var(--accent-soft);box-shadow:inset 0 0 0 1px var(--accent-ring)}.menu-empty{margin:8px 4px;padding:10px;border:1px dashed #cbd5e1;border-radius:8px;color:#64748b;background:#f8fafc;font-size:12px;text-align:center}.admin-main{min-width:0;height:100vh;overflow-y:auto;overflow-x:hidden}.admin-main .topbar{min-height:64px;justify-content:space-between;padding:10px 24px}.topbar-title{min-width:0;display:grid;gap:4px}.breadcrumb{display:flex;align-items:center;gap:6px;min-width:0;color:#64748b;font-size:12px;font-weight:650}.breadcrumb button,.breadcrumb strong{min-height:28px;display:inline-flex;align-items:center;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.breadcrumb button{border:0;padding:0 6px;border-radius:6px;color:#64748b;background:transparent;cursor:pointer;font:inherit}.breadcrumb button:hover{color:#0f172a}.breadcrumb strong{color:var(--accent)}.topbar-title h1{margin:0;font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:22px;line-height:1.15;font-weight:800}.topbar-actions{--topbar-action-height: 38px;display:flex;align-items:center;gap:10px;flex:0 0 auto}.topbar-actions>.alert-button,.topbar-actions>.compact-action,.topbar-actions>.user-chip{height:var(--topbar-action-height);min-height:var(--topbar-action-height);border-radius:10px}.topbar-actions>.compact-action{justify-content:center;padding:0 11px}.alert-button{position:relative;display:inline-flex;align-items:center;justify-content:center;border:1px solid #e2e8f0;border-radius:9px;color:#334155;background:#fff;cursor:pointer}.alert-button span{position:absolute;top:-5px;right:-5px;min-width:17px;height:17px;display:inline-flex;align-items:center;justify-content:center;padding:0 5px;border:2px solid #fff;border-radius:999px;color:#fff;background:#dc2626;font-size:10px;font-weight:800}.alert-bell-ready{position:relative}.alert-button.alert-bell-enhanced[aria-expanded=true]{border-color:#fecaca;color:#b91c1c;background:#fff7f7}.alert-popover{position:absolute;top:calc(100% + 10px);right:0;z-index:60;width:min(420px,calc(100vw - 28px));max-height:min(640px,calc(100vh - 92px));display:none;overflow:hidden;border:1px solid #e2e8f0;border-radius:14px;background:#fff;box-shadow:0 22px 50px #0f172a2e}.alert-popover.open{display:block}.alert-popover-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;border-bottom:1px solid #eef2f7;background:linear-gradient(135deg,#fff7f7,#fff 62%)}.alert-popover-head strong,.alert-popover-head span{display:block}.alert-popover-head strong{color:#0f172a;font-size:15px}.alert-popover-head span{margin-top:3px;color:#64748b;font-size:12px}.alert-refresh,.alert-item-actions button{height:28px;border:1px solid #e2e8f0;border-radius:8px;padding:0 9px;color:#475569;background:#fff;font-size:12px;font-weight:700;cursor:pointer}.alert-type-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:12px 12px 8px}.alert-type-card{min-width:0;display:grid;gap:4px;border:1px solid #e2e8f0;border-radius:10px;padding:9px;color:#64748b;background:#f8fafc;text-decoration:none}.alert-type-card.has-alert{border-color:#fecaca;color:#991b1b;background:#fff7f7}.alert-type-card span,.alert-type-card strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.alert-type-card span{font-size:11px;font-weight:700}.alert-type-card strong{color:#0f172a;font-size:18px}.alert-group-list{max-height:456px;overflow-y:auto;padding:0 12px 12px}.alert-group{border:1px solid #e2e8f0;border-radius:12px;overflow:hidden;background:#fff}.alert-group+.alert-group{margin-top:10px}.alert-group header{min-height:34px;display:flex;align-items:center;justify-content:space-between;padding:0 11px;border-bottom:1px solid #eef2f7;background:#f8fafc}.alert-group header span{color:#334155;font-size:12px;font-weight:800}.alert-group header strong{min-width:22px;height:22px;display:inline-grid;place-items:center;border-radius:999px;color:#475569;background:#e2e8f0;font-size:12px}.alert-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 11px}.alert-item+.alert-item{border-top:1px solid #f1f5f9}.alert-item strong,.alert-item span{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.alert-item strong{color:#0f172a;font-size:12px}.alert-item span{margin-top:3px;color:#64748b;font-size:11px}.alert-item-actions{display:inline-flex;gap:6px}.alert-item-actions .alert-close{border-color:#fecaca;color:#b91c1c;background:#fff7f7}.alert-empty{padding:12px;color:#94a3b8;font-size:12px}.user-chip{display:flex;align-items:center;gap:9px;justify-content:center;padding:4px 9px 4px 4px;border:1px solid #e2e8f0;background:#fff}.avatar{width:30px;height:30px;display:grid;place-items:center;border-radius:999px;color:#fff;background:var(--accent);font-size:13px;font-weight:800}.user-chip strong,.user-chip span{display:block;line-height:1.15;white-space:nowrap}.user-chip strong{font-size:12px}.user-chip span{margin-top:3px;color:#64748b;font-size:11px}.admin-main .shell{width:100%;max-width:none;margin:0;padding-right:24px;padding-left:24px;padding-top:14px}.admin-main .grid.two{grid-template-columns:minmax(0,1fr)}.module-card{min-height:0;grid-column:1 / -1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px}.module-summary{min-width:0;display:grid;gap:7px}.module-title-line{min-width:0;display:flex;align-items:center;gap:8px}.module-icon{width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;border-radius:8px;color:#0891b2;background:#ecfeff}.module-title-line strong{color:#0f172a;font-size:15px;line-height:1.2}.module-title-line em{min-width:0;overflow:hidden;color:#64748b;font-size:12px;font-style:normal;text-overflow:ellipsis;white-space:nowrap}.module-meta{display:flex;flex-wrap:wrap;gap:8px}.module-meta span{max-width:100%;min-height:24px;display:inline-flex;align-items:center;overflow:hidden;padding:0 8px;border:1px solid #e2e8f0;border-radius:7px;color:#475569;background:#f8fafc;font-size:11px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.module-actions{display:flex;flex-wrap:wrap;gap:8px;flex:0 0 auto}.compact-action{min-height:28px;height:28px;padding:0 9px}.link-button{text-decoration:none}.module-data-card,.module-json-card{grid-column:1 / -1;min-width:0}.module-empty,.module-error{margin:8px 18px 18px;padding:14px;border-radius:10px;color:#64748b;background:#f8fafc;font-size:13px}.module-error{color:#991b1b;background:#fff1f2}.module-json-card pre{max-height:360px;overflow:auto;margin:8px 18px 18px;padding:14px;border:1px solid #e2e8f0;border-radius:10px;color:#334155;background:#f8fafc;font-size:12px;line-height:1.55}.model-version-page{display:grid;grid-template-columns:minmax(460px,1.15fr) minmax(360px,.85fr);gap:14px;align-items:start}.model-version-toolbar{display:flex;flex-wrap:wrap;align-items:end;justify-content:space-between;gap:10px;padding:12px 18px;border-top:1px solid #f1f5f9;background:#fbfdff}.model-version-toolbar label{display:grid;gap:5px;min-width:180px}.model-version-toolbar span{color:#64748b;font-size:12px}.model-version-toolbar select{height:34px;border:1px solid #e2e8f0;border-radius:8px;padding:0 10px;color:#0f172a;background:#fff;outline:none}.model-version-actions,.version-actions{display:inline-flex;flex-wrap:wrap;gap:8px}.model-version-actions .compact-action{height:34px;min-height:34px}.version-list{display:grid;gap:8px;padding:0 18px 18px}.version-row{display:grid;grid-template-columns:minmax(180px,1fr) minmax(170px,auto) auto;align-items:center;gap:12px;padding:10px 12px;border:1px solid #e2e8f0;border-radius:8px;background:#fff}.version-row.active{border-color:#8da2fb;background:#f7f9ff}.version-main,.version-meta{min-width:0;display:grid;gap:4px}.version-main strong{color:#0f172a;font-size:14px}.version-main span,.version-meta em{overflow:hidden;color:#64748b;font-size:12px;font-style:normal;text-overflow:ellipsis;white-space:nowrap}.status-pill{width:fit-content;min-height:22px;display:inline-flex;align-items:center;padding:0 8px;border-radius:999px;font-size:11px;font-weight:700}.status-pill.published{color:#047857;background:#d1fae5}.status-pill.draft{color:#92400e;background:#fef3c7}.danger-action{color:#be123c}.model-version-compare{min-width:0}.compare-json{padding:0 18px 18px}.compare-json pre{max-height:520px;overflow:auto;margin:0;padding:14px;border:1px solid #e2e8f0;border-radius:10px;color:#334155;background:#f8fafc;font-size:12px;line-height:1.55}.analysis-enhanced-page{display:grid;gap:16px}.analysis-overlay-host{position:fixed;inset:64px 0 0 232px;z-index:8;overflow:auto;padding:14px 24px 60px;background:#f8fafc}.sidebar-collapsed~.admin-main .analysis-overlay-host,body:has(.sidebar-collapsed) .analysis-overlay-host{left:64px}body.analysis-overlay-active .admin-main .shell>*{visibility:hidden}.tenant-isolation-active .admin-main .shell{visibility:hidden;pointer-events:none}.tenant-isolation-overlay{position:fixed;top:78px;left:256px;right:24px;z-index:9;max-height:calc(100vh - 92px);overflow-y:auto;padding-bottom:28px}body:has(.sidebar-collapsed) .tenant-isolation-overlay{left:88px}.tenant-page{display:grid;gap:16px}.tenant-hero{overflow:hidden}.tenant-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:0 18px 18px}.tenant-summary div,.tenant-isolation-grid div,.tenant-user-card{border:1px solid #e2e8f0;background:linear-gradient(145deg,#fff,#f8fafc);border-radius:12px}.tenant-summary div{min-width:0;padding:11px 12px}.tenant-summary span,.tenant-summary strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tenant-summary span{color:#64748b;font-size:11px}.tenant-summary strong{margin-top:5px;color:#0f172a;font-size:18px}.tenant-layout{display:grid;grid-template-columns:minmax(240px,300px) minmax(0,1fr);gap:16px;align-items:start}.tenant-list-card,.tenant-editor-card,.tenant-sites-card,.tenant-users-card,.tenant-isolation-card{overflow:hidden}.tenant-card-title{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px 12px;border-bottom:1px solid #f1f5f9}.tenant-card-title h3{margin:0;color:#0f172a;font-size:15px}.tenant-card-title p{margin:5px 0 0;color:#64748b;font-size:12px;line-height:1.45}.tenant-actions{display:inline-flex;gap:8px}.tenant-list{display:grid;gap:8px;padding:12px}.tenant-list-item{width:100%;display:grid;gap:5px;padding:12px;border:1px solid #e2e8f0;color:#334155;text-align:left;background:#fff;cursor:pointer;border-radius:10px}.tenant-list-item:hover,.tenant-list-item.active{border-color:var(--accent-ring);background:linear-gradient(135deg,var(--accent-soft),#fff 58%),#fff;box-shadow:inset 4px 0 0 var(--accent)}.tenant-list-item strong,.tenant-list-item span,.tenant-list-item i{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tenant-list-item strong{color:#0f172a;font-size:14px}.tenant-list-item span{color:#64748b;font-size:11px}.tenant-list-item i{color:#0891b2;font-size:11px;font-style:normal}.tenant-main-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,.85fr);gap:16px}.tenant-users-card,.tenant-isolation-card{grid-column:span 2}.tenant-form{display:grid;gap:12px;padding:14px 18px 18px}.tenant-form-two{grid-template-columns:repeat(2,minmax(0,1fr))}.tenant-form label{display:grid;gap:6px}.tenant-form label span{color:#64748b;font-size:12px}.tenant-form input,.tenant-form textarea{width:100%;border:1px solid #e2e8f0;border-radius:8px;color:#0f172a;background:#fff;outline:none}.tenant-form input{height:34px;padding:0 10px}.tenant-form textarea{min-height:170px;resize:vertical;padding:10px 11px;font:12px/1.55 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}.tenant-config-label{grid-column:span 2}.tenant-site-form{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:end;padding-bottom:10px}.tenant-table-wrap{margin:0 18px 18px}.tenant-user-grid,.tenant-isolation-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:14px 18px 18px}.tenant-user-card{position:relative;min-width:0;padding:13px 13px 12px}.tenant-user-card strong,.tenant-user-card span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tenant-user-card strong{color:#0f172a;font-size:14px}.tenant-user-card span{margin-top:4px;color:#64748b;font-size:11px}.tenant-user-card p{display:flex;justify-content:space-between;gap:12px;margin:10px 0 0;color:#334155;font-size:12px}.tenant-user-card b{color:#64748b;font-weight:600}.tenant-user-card em{position:absolute;top:12px;right:12px;padding:3px 7px;border-radius:999px;font-size:11px;font-style:normal}.tenant-user-card em.online{color:#166534;background:#dcfce7}.tenant-user-card em.offline{color:#991b1b;background:#fee2e2}.tenant-isolation-grid div{min-width:0;padding:13px}.tenant-isolation-grid span,.tenant-isolation-grid strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tenant-isolation-grid span{color:#0f172a;font-size:14px;font-weight:700}.tenant-isolation-grid strong{margin-top:6px;color:var(--accent);font-size:12px}.tenant-isolation-grid p{margin:8px 0 0;color:#64748b;font-size:12px;line-height:1.45}.tenant-empty{padding:18px;color:#64748b;font-size:13px}.analysis-hero-card{overflow:hidden}.analysis-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:10px;padding:12px 18px;border-top:1px solid #f1f5f9;background:#fbfdff}.analysis-toolbar label{display:grid;gap:5px}.analysis-toolbar label span{color:#64748b;font-size:12px}.analysis-toolbar input{height:34px;border:1px solid #e2e8f0;border-radius:8px;padding:0 10px;color:#0f172a;background:#fff}.analysis-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:12px 18px 18px}.analysis-summary div{min-height:68px;display:grid;align-content:center;gap:6px;padding:10px 12px;border:1px solid #e2e8f0;border-radius:10px;background:#fff}.analysis-summary span{color:#64748b;font-size:12px}.analysis-summary strong{overflow:hidden;color:#0f172a;font-size:18px;text-overflow:ellipsis;white-space:nowrap}.analysis-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:16px}.analysis-chart-card,.analysis-detail-card{min-width:0}.analysis-bars{display:grid;gap:10px;padding:12px 18px 18px}.analysis-bar-row{display:grid;grid-template-columns:minmax(90px,150px) minmax(0,1fr) minmax(76px,auto);align-items:center;gap:10px}.analysis-bar-row span,.analysis-bar-row strong{overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.analysis-bar-row span{color:#334155}.analysis-bar-row strong{text-align:right;color:#0f172a}.analysis-bar-row div{height:10px;overflow:hidden;border-radius:999px;background:#f1f5f9}.analysis-bar-row i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#67e8f9,#8da2fb)}.analysis-bar-row i.warning{background:linear-gradient(90deg,#fde68a,#fb923c)}.analysis-bar-row i.negative{background:linear-gradient(90deg,#fecdd3,#fb7185)}.analysis-table{padding-bottom:10px}.analysis-empty,.analysis-error{margin:0;padding:16px;border-radius:10px;color:#64748b;background:#f8fafc;font-size:13px}.analysis-error{color:#991b1b;background:#fff1f2}.stat-filter-overlay-host{position:fixed;inset:64px 0 0 232px;z-index:8;overflow:auto;padding:14px 24px 60px;background:#f8fafc}.sidebar-collapsed~.admin-main .stat-filter-overlay-host,body:has(.sidebar-collapsed) .stat-filter-overlay-host{left:64px}body.stat-filter-overlay-active .admin-main .shell>*{visibility:hidden}.stat-filter-page{display:grid;gap:14px}.stat-filter-card{border-radius:8px;box-shadow:0 12px 30px #0f172a0b}.stat-filter-toolbar{display:flex;align-items:end;flex-wrap:wrap;gap:8px;padding:8px 18px 16px;border-top:1px solid #f1f5f9}.stat-filter-toolbar label{display:grid;gap:5px}.stat-filter-toolbar label span{color:#64748b;font-size:12px}.stat-filter-toolbar input{height:34px;min-width:190px;border:1px solid #dbe3ef;border-radius:7px;padding:0 10px;color:#0f172a;background:#fff}.stat-filter-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:0 18px 18px}.stat-filter-summary div{border:1px solid #e5eaf3;border-radius:8px;padding:9px 11px;background:#f8fafc}.stat-filter-summary span,.stat-filter-summary strong{display:block;white-space:nowrap}.stat-filter-summary span{color:#64748b;font-size:12px}.stat-filter-summary strong{margin-top:4px;color:#0f172a;font-size:16px}.stat-filter-bars{display:grid;gap:9px;padding:16px 18px 12px}.stat-filter-table{padding:0 18px 18px}.stat-filter-bar-row{display:grid;grid-template-columns:minmax(120px,180px) minmax(120px,1fr) minmax(80px,auto);align-items:center;gap:10px;color:#334155;font-size:12px}.stat-filter-bar-row>span,.stat-filter-bar-row>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stat-filter-bar-row>div{height:8px;overflow:hidden;border-radius:999px;background:#edf2f7}.stat-filter-bar-row i{display:block;height:100%;border-radius:inherit;background:var(--accent);opacity:.78}.stat-filter-empty,.stat-filter-error{border-radius:8px;padding:14px;color:#64748b;background:#f8fafc}.stat-filter-error{color:#991b1b;background:#fff1f2}.analysis-pulse{animation:analysis-pulse 1s ease-in-out infinite}@keyframes analysis-pulse{0%,to{opacity:.35}50%{opacity:1}}@media(max-width:1100px){.admin-layout,.model-version-page{grid-template-columns:1fr}.analysis-overlay-host,.stat-filter-overlay-host{inset:72px 0 0}.stat-filter-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.version-row{grid-template-columns:1fr}.sidebar{position:relative;height:auto;max-height:46vh}.side-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}}@media(max-width:720px){.admin-main .topbar{align-items:stretch;flex-direction:column;gap:10px}.topbar-actions{width:100%;justify-content:flex-end}.user-chip{max-width:190px}.side-nav{grid-template-columns:1fr}.module-card{align-items:stretch;flex-direction:column}.module-actions{justify-content:flex-start}.tree-node-form{grid-template-columns:1fr;margin-left:0!important}.tree-actions{width:100%;justify-content:flex-end}.binding-panels,.binding-inline,.stat-filter-summary,.stat-filter-bar-row{grid-template-columns:1fr}}
