@import"https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap";:root{--navy: var(--brand);--navy-deep: #162E4D;--teal: var(--teal);--teal-deep: var(--brand-strong);--teal-bright: var(--teal);--grey-950: #0B0E12;--grey-900: #12161C;--grey-850: #181D25;--grey-800: #1F252F;--grey-700: #2A3340;--grey-600: #3A4654;--grey-500: #5C6B7C;--grey-400: #8A98AB;--grey-300: #B6C0CC;--grey-200: #D6DDE5;--grey-100: #ECEFF3;--grey-50: #F6F8FA;--radius: 18px;--radius-sm: var(--radius-md);--auth-control-h: 40px;--auth-space-logo-after: 16px;--auth-space-tabs-after: 16px;--auth-space-password-after: 16px;--auth-space-before-submit: 14px;--auth-font-main: 16px;--auth-font-label: 12px;font-family:var(--font-ui)}.theme-dark{--bg-page: var(--bg);--bg-elev: var(--card);--bg-card: var(--card);--bg-card-edge: var(--stroke);--ink: var(--text);--ink-muted: var(--muted);--ink-soft: var(--soft);--line: var(--line);--line-strong: var(--stroke);--field-bg: color-mix(in srgb, var(--card) 86%, #ffffff 14%);--field-bg-focus: color-mix(in srgb, var(--card) 80%, #ffffff 20%);--accent: var(--teal);--accent-deep: var(--teal-deep);--accent-bright: var(--teal-bright);--shadow-card: 0 22px 46px -20px rgba(0, 0, 0, .65), 0 8px 22px -10px rgba(0, 0, 0, .5)}.theme-light{--bg-page: var(--bg);--bg-elev: var(--card);--bg-card: var(--card);--bg-card-edge: var(--stroke);--ink: var(--text);--ink-muted: var(--muted);--ink-soft: var(--soft);--line: var(--line);--line-strong: var(--stroke);--field-bg: color-mix(in srgb, var(--card) 78%, var(--bg) 22%);--field-bg-focus: var(--card);--accent: var(--teal);--accent-deep: var(--teal-deep);--accent-bright: var(--teal);--shadow-card: 0 24px 60px -24px rgba(14, 17, 22, .2), 0 4px 14px -6px rgba(14, 17, 22, .1)}:root{--bg-page: #111111;--bg-elev: #171717;--bg-card: #171717;--bg-card-edge: #2a2a2a;--ink: #fcfcfc;--ink-muted: #c7c7c7;--ink-soft: #b3b3b3;--line: rgba(255, 255, 255, .08);--line-strong: rgba(255, 255, 255, .16);--field-bg: #1f1f1f;--field-bg-focus: #262626;--accent: var(--teal);--accent-deep: var(--teal-deep);--accent-bright: var(--teal-bright);--shadow-card: 0 30px 80px -20px rgba(0, 0, 0, .7), 0 8px 24px -8px rgba(0, 0, 0, .55)}*{margin:0;padding:0;box-sizing:border-box}html,body{background:var(--bg-page);color:var(--ink);font-family:var(--font-ui);-webkit-font-smoothing:antialiased;transition:background-color .3s,color .3s}.login-container{min-height:100vh;display:flex;align-items:center;justify-content:center;background:var(--bg-page);padding:16px;transition:background-color .3s ease,color .3s ease}.auth-card{width:100%;max-width:480px;background:var(--bg-card);border:1px solid var(--bg-card-edge);border-radius:24px;padding:24px;display:flex;flex-direction:column;gap:12px;position:relative;box-shadow:var(--shadow-card);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}.theme-toggle-btn{position:absolute;top:20px;right:20px;background:none;border:none;color:var(--ink-soft);cursor:pointer;padding:8px;display:flex;align-items:center;justify-content:center;transition:color .2s ease}.theme-toggle-btn:hover{color:var(--accent)}.theme-toggle-btn svg{width:20px;height:20px}.auth-brand{display:flex;flex-direction:column;align-items:center;gap:4px;margin:20px 0 24px;text-align:center}.auth-logo{width:300px;height:104px;object-fit:contain;object-position:center;image-rendering:-webkit-optimize-contrast;image-rendering:high-quality;filter:none;opacity:1;transform:translateZ(0)}.auth-title{display:none;font-weight:700;letter-spacing:-.01em;color:var(--ink)}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:0;padding:0;min-height:var(--auth-control-h);height:var(--auth-control-h);background:var(--bg-page);border-radius:999px;border:1px solid var(--line-strong);margin-bottom:var(--auth-space-tabs-after);overflow:hidden}.auth-tabs.single-tab{grid-template-columns:1fr}.auth-tabs.single-tab .auth-tab{width:100%}.auth-tab{flex:1;min-height:calc(var(--auth-control-h) - 2px);height:calc(var(--auth-control-h) - 2px);padding:0 16px;border:none;background:transparent;color:var(--ink-soft);font-size:var(--auth-font-main);font-weight:600;cursor:pointer;border-radius:999px;transition:all .2s ease}.auth-tab:hover:not(.active){color:var(--ink-muted)}.auth-tab.active{background:var(--ok);color:#fff;box-shadow:0 4px 12px #14a89a3d}.auth-tab.active-login{background:var(--brand);box-shadow:0 4px 12px #1f3a5f47}.auth-tab.active-activate{background:var(--teal);box-shadow:0 4px 12px #14a89a3d}.auth-welcome,.auth-welcome-title,.auth-heading{display:block}.auth-welcome{margin-bottom:4px}.auth-welcome-title,.auth-heading{font-size:15px;font-weight:700;margin-bottom:2px;letter-spacing:-.02em;color:var(--ink)}.auth-welcome-subtitle{font-size:10px;color:var(--ink-soft);line-height:1.25;margin:0 0 4px}.auth-activate-subtitle{font-size:11px;color:var(--ink-soft);line-height:1.28;margin:0 0 4px}label{display:flex;flex-direction:column;gap:4px;margin-bottom:12px;font-size:var(--auth-font-main)}.auth-card.activate-mode{gap:12px}.auth-card.activate-mode label{margin-bottom:12px}.auth-card.activate-mode>h3{margin-bottom:6px}.auth-card.activate-mode>p{margin-bottom:10px!important}.auth-card.activate-mode>div{margin-top:0;margin-bottom:0}label span{font-size:var(--auth-font-label);font-weight:700;color:var(--ink-muted);letter-spacing:.06em;text-transform:uppercase}label>div{font-size:11px;color:var(--ink-soft);font-weight:400;margin-top:6px;padding-left:2px}.auth-field-help{font-size:var(--auth-font-label);color:var(--ink-soft);margin-top:4px;line-height:1.25}.auth-section-label{font-size:var(--auth-font-label);color:var(--ink-muted);font-weight:700;letter-spacing:.06em;text-transform:uppercase;margin:4px 0 2px}.pw-field-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.pw-field-header span{font-size:var(--auth-font-label);font-weight:700;color:var(--ink-muted);letter-spacing:.06em;text-transform:uppercase}.forgot-link{font-size:var(--auth-font-main);font-weight:600;color:var(--accent);background:none;border:none;cursor:pointer;padding:0;text-decoration:none}.theme-dark .forgot-link{color:var(--accent-bright)}.forgot-link:hover{text-decoration:underline}input[type=text],input[type=password],input[type=email],select{width:100%;padding:8px 12px 8px 50px;border:1px solid var(--line-strong);border-radius:12px;background:var(--bg-page);color:var(--ink);font-size:var(--auth-font-main);line-height:1.2;font-family:"Manrope",inherit;font-weight:400;transition:all .18s ease;height:var(--auth-control-h);text-indent:0}input[type=text]::placeholder,input[type=password]::placeholder,input[type=email]::placeholder{color:var(--ink-soft);font-weight:400}input[type=text]:focus,input[type=password]:focus,input[type=email]:focus,select:focus{outline:none;border-color:var(--accent);background:var(--field-bg-focus);box-shadow:0 0 0 4px #0169cc2e}.field-icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--ink-soft);display:flex;align-items:center;justify-content:center;width:16px;height:16px;pointer-events:none;z-index:2}.field-icon svg{width:14px;height:14px;stroke:currentColor;stroke-width:2;flex-shrink:0}.input-wrapper{position:relative}.input-wrapper input,.pw-input-wrap input{position:relative;z-index:1;background:var(--bg-page)!important}.input-wrapper input{padding-left:50px}.pw-input-wrap{position:relative}.pw-input-wrap input{padding-right:40px;padding-left:46px}label>div{margin-top:8px}.pw-icon-btn{position:absolute;right:12px;top:50%;transform:translateY(-50%);background:color-mix(in srgb,var(--bg-page) 88%,var(--card) 12%);border:1px solid var(--line-strong);border-radius:8px;color:var(--ink-soft);cursor:pointer;padding:4px;display:flex;align-items:center;justify-content:center;transition:color .18s ease;z-index:4}.pw-icon-btn:hover{color:var(--accent)}.pw-icon-btn svg{width:15px;height:15px;stroke:currentColor;stroke-width:2}.remember-row{display:flex;align-items:center;gap:8px;font-size:var(--auth-font-main);margin-bottom:var(--auth-space-password-after);cursor:pointer}input[type=checkbox]{width:16px;height:16px;accent-color:var(--accent);cursor:pointer;flex-shrink:0;border-radius:3px}.remember-label{color:var(--ink-muted);cursor:pointer;font-weight:400}.btn{border:none;border-radius:12px;font-family:"Manrope",inherit;font-size:var(--auth-font-main);font-weight:600;cursor:pointer;transition:all .2s ease}.btn-primary{width:100%;background:linear-gradient(90deg,var(--brand) 0%,var(--teal-deep) 100%);border:1px solid color-mix(in srgb,var(--teal-deep) 72%,#000000 28%);color:#fff;padding:13px 16px;min-height:var(--auth-control-h);height:var(--auth-control-h);font-size:var(--auth-font-main);font-weight:700;box-shadow:0 12px 28px -14px #0169cc8c,inset 0 1px #ffffff38;margin-bottom:0}.btn-primary:hover:not(:disabled){transform:translateY(-1px);filter:brightness(1.06);box-shadow:0 16px 32px -12px #0169cc8c,inset 0 1px #ffffff47}.btn-primary:active:not(:disabled){transform:translateY(0)}.btn-primary:disabled{opacity:.6;cursor:not-allowed}.auth-submit{margin-top:var(--auth-space-before-submit)}.theme-light .auth-welcome-title,.theme-light .auth-heading{color:var(--ink)!important}.theme-light .auth-welcome-subtitle,.theme-light .auth-activate-subtitle,.theme-light label span,.theme-light .remember-label{color:var(--ink-soft)!important}.theme-light .forgot-link{color:var(--accent-deep)!important}.btn-ghost-link{background:none;color:var(--accent);padding:0;font-size:12px;font-weight:600;text-decoration:none}.theme-dark .btn-ghost-link{color:var(--accent-bright)}.btn-ghost-link:hover{text-decoration:underline}.auth-forgot-box{background:#0169cc14;border:1px solid var(--line-strong);border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:12px}.theme-light .auth-forgot-box{background:#0169cc0a;border:1px solid var(--line)}.auth-forgot-box label{margin-bottom:0}.error{background:#e2585d1a;color:#ffd7d9;padding:11px 13px;border-radius:10px;font-size:12px;border:1px solid rgba(226,88,93,.25);margin-bottom:8px;line-height:1.4}.theme-light .error{color:#d1242f}.lock-note{background:#0169cc1a;color:var(--accent-bright);padding:11px 13px;border-radius:10px;font-size:12px;border:1px solid rgba(1,105,204,.25);margin-bottom:8px;line-height:1.4}.theme-light .lock-note{color:var(--accent)}.row{display:flex;gap:10px}.row .btn{flex:1}.grid.two{display:grid;grid-template-columns:1fr 1fr;gap:14px}.grid.two label{margin-bottom:0}@media (max-width: 600px){.auth-card{padding:18px;gap:8px}.auth-welcome-title,.auth-heading{font-size:18px}.auth-logo{width:260px;height:94px}.grid.two{grid-template-columns:1fr}}.theme-light .auth-heading,.theme-light .auth-welcome-title,.theme-light .auth-title{color:var(--ink)}.theme-light .auth-welcome-subtitle,.theme-light .auth-activate-subtitle,.theme-light .auth-field-help,.theme-light label span{color:var(--ink-soft)}.login-container{background:var(--bg-page)}.auth-card{max-width:460px;padding:18px;gap:12px;border-radius:18px;border:1px solid var(--bg-card-edge);background:var(--bg-card)}.auth-welcome-title,.auth-heading{font-size:14px}.auth-welcome-subtitle,.auth-activate-subtitle,label span,.auth-field-help{font-size:var(--auth-font-label)}input[type=text],input[type=password],input[type=email],select{height:var(--auth-control-h);font-size:var(--auth-font-main);border-radius:10px}.btn,.btn-primary{min-height:var(--auth-control-h);height:var(--auth-control-h);font-size:13px;border-radius:10px;padding:0 12px;background:linear-gradient(90deg,var(--brand) 0%,var(--teal-deep) 100%);border:1px solid color-mix(in srgb,var(--teal-deep) 72%,#000000 28%);display:inline-flex;align-items:center;justify-content:center}.login-container .btn-primary,.login-container .auth-submit{background:linear-gradient(90deg,var(--brand) 0%,var(--teal-deep) 100%)!important;border:1px solid color-mix(in srgb,var(--teal-deep) 72%,#000000 28%)!important;color:#fff!important}.auth-tab{min-height:var(--auth-control-h);height:var(--auth-control-h);padding:0 12px;font-size:var(--auth-font-main)}.login-container .auth-tabs{min-height:var(--auth-control-h)!important;height:var(--auth-control-h)!important}.login-container .auth-tab{min-height:calc(var(--auth-control-h) - 2px)!important;height:calc(var(--auth-control-h) - 2px)!important;line-height:calc(var(--auth-control-h) - 2px)!important}.login-container .input-wrapper input,.login-container .pw-input-wrap input,.login-container input[type=text],.login-container input[type=password],.login-container input[type=email],.login-container select,.login-container .btn,.login-container .btn-primary{min-height:var(--auth-control-h)!important;height:var(--auth-control-h)!important}.login-container input[type=text],.login-container input[type=password],.login-container input[type=email],.login-container select{font-size:var(--auth-font-main)!important}.login-container .auth-tabs,.login-container .auth-tab:not(.active),.login-container .input-wrapper input,.login-container .pw-input-wrap input,.login-container input[type=text],.login-container input[type=password],.login-container input[type=email],.login-container select{background:var(--bg-page)!important}.login-container.auth-surface-local .auth-card.activate-mode,.login-container.auth-surface-portal .auth-card.activate-mode{gap:12px!important}.login-container .auth-submit{font-size:16px!important;font-weight:800!important;letter-spacing:.03em;text-transform:none}.login-container.auth-surface-local .auth-card{max-width:500px;padding:18px 20px 16px}.login-container.auth-surface-local .auth-logo{width:340px;height:124px;object-fit:contain;object-position:center}.login-container.auth-surface-local.activate-mode .auth-card,.login-container.auth-surface-local .auth-card.activate-mode{gap:0}.login-container.auth-surface-local .auth-brand{gap:2px;margin-bottom:0}.login-container.auth-surface-local .field-icon{left:14px;width:20px;height:20px}.login-container.auth-surface-local .input-wrapper input,.login-container.auth-surface-local input[type=text],.login-container.auth-surface-local input[type=password],.login-container.auth-surface-local input[type=email],.login-container.auth-surface-local select,.login-container.auth-surface-local .pw-input-wrap input{padding-left:56px!important;text-indent:0!important}.login-container.auth-surface-local .auth-card.activate-mode h3,.login-container.auth-surface-local .auth-card.activate-mode .auth-heading{margin-bottom:0}.login-container.auth-surface-local .auth-card.activate-mode p,.login-container.auth-surface-local .auth-card.activate-mode .auth-activate-subtitle{margin-bottom:2px;line-height:1.2}.login-container.auth-surface-local .auth-card.activate-mode label{margin-bottom:8px}.login-container.auth-surface-local .auth-card.activate-mode .auth-field-help{margin-top:4px;margin-bottom:0}@media (max-width: 600px){.login-container.auth-surface-local .auth-card{max-width:96vw;padding:16px 16px 14px}.login-container.auth-surface-local .auth-logo{width:280px;height:104px}}.login-container.auth-surface-portal .auth-card{max-width:500px;padding:18px 20px 16px}.login-container.auth-surface-portal .auth-logo{width:340px;height:124px;object-fit:contain;object-position:center}.login-container.auth-surface-portal .auth-brand{gap:2px;margin-bottom:0}.login-container.auth-surface-portal .field-icon{left:14px;width:20px;height:20px}.login-container.auth-surface-portal .input-wrapper input,.login-container.auth-surface-portal input[type=text],.login-container.auth-surface-portal input[type=password],.login-container.auth-surface-portal input[type=email],.login-container.auth-surface-portal select,.login-container.auth-surface-portal .pw-input-wrap input{padding-left:56px!important;text-indent:0!important}.login-container.auth-surface-portal.activate-mode .auth-card,.login-container.auth-surface-portal .auth-card.activate-mode{gap:0}.login-container.auth-surface-portal .auth-card.activate-mode h3,.login-container.auth-surface-portal .auth-card.activate-mode .auth-heading{margin-bottom:0}.login-container.auth-surface-portal .auth-card.activate-mode p,.login-container.auth-surface-portal .auth-card.activate-mode .auth-activate-subtitle{margin-bottom:2px;line-height:1.2}.login-container.auth-surface-portal .auth-card.activate-mode label{margin-bottom:8px}.login-container.auth-surface-portal .auth-card.activate-mode .auth-field-help{margin-top:4px;margin-bottom:0}@media (max-width: 600px){.login-container.auth-surface-portal .auth-card{max-width:96vw;padding:16px 16px 14px}.login-container.auth-surface-portal .auth-logo{width:280px;height:104px}}.login-container.auth-surface-client .auth-card{max-width:500px;padding:18px 20px 16px}.login-container.auth-surface-client .auth-logo{width:340px;height:124px;object-fit:contain;object-position:center}.login-container.auth-surface-client .auth-brand{gap:2px;margin-bottom:0}.login-container.auth-surface-client .field-icon{left:14px;width:20px;height:20px}.login-container.auth-surface-client .input-wrapper input,.login-container.auth-surface-client input[type=text],.login-container.auth-surface-client input[type=password],.login-container.auth-surface-client input[type=email],.login-container.auth-surface-client select,.login-container.auth-surface-client .pw-input-wrap input{padding-left:56px!important;text-indent:0!important}@media (max-width: 600px){.login-container.auth-surface-client .auth-card{max-width:96vw;padding:16px 16px 14px}.login-container.auth-surface-client .auth-logo{width:280px;height:104px}}:root{--bg: #fcfcfc;--header: #ffffff;--header-text: #111111;--header-border: #e7e7e7;--header-surface: #ffffff;--header-surface-border: #e7e7e7;--sidebar: #f8f8f8;--sidebar-text: #111111;--sidebar-soft: #efefef;--sidebar-border: #e3e3e3;--sidebar-title: #4d4d4d;--nav-active-bg: #e8f2ff;--nav-active-text: #111111;--card: #ffffff;--stroke: #e3e3e3;--text: #111111;--muted: #5a5a5a;--table-row: #fafafa;--error-bg: #fee2e2;--error-text: #7f1d1d;--error-border: #fecaca;--brand: #1f3a5f;--brand-strong: #0e8479;--teal: #14a89a;--ok: #2ea043;--danger: #d1242f}[data-theme=dark]{--bg: #111111;--header: #111111;--header-text: #fcfcfc;--header-border: #222222;--header-surface: #111111;--header-surface-border: #222222;--sidebar: #131313;--sidebar-text: #fcfcfc;--sidebar-soft: #1b1b1b;--sidebar-border: #242424;--sidebar-title: #b3b3b3;--nav-active-bg: #1a2432;--nav-active-text: #ffffff;--card: #171717;--stroke: #2a2a2a;--text: #fcfcfc;--muted: #b3b3b3;--table-row: #1a1a1a;--error-bg: #5a1d20;--error-text: #ffd7d9;--error-border: #7f2d33;--brand: #1f3a5f;--brand-strong: #0e8479;--teal: #14a89a}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;font-family:Segoe UI,Trebuchet MS,sans-serif;background:var(--bg);color:var(--text);overflow:hidden}.loading{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 20% 20%,var(--header-surface) 0%,var(--bg) 58%)}.loading-card{width:min(360px,88vw);display:grid;justify-items:center;gap:10px;padding:20px}.loading-logo{width:68px;height:68px;border-radius:10px}.loading-title{color:var(--text);font-size:16px;font-weight:700;text-align:center}.loading-progress{width:100%;height:10px;border-radius:999px;background:#7f7f7f40;overflow:hidden}.loading-progress-bar{width:40%;height:100%;background:linear-gradient(90deg,#16a34a,#22c55e);border-radius:999px;animation:loading-slide 1.3s ease-in-out infinite}.loading-error{margin-top:4px;font-size:13px;color:var(--error-text);text-align:center}@keyframes loading-slide{0%{transform:translate(-120%)}to{transform:translate(320%)}}.shell{height:100vh;display:grid;grid-template-rows:64px 1fr;overflow:hidden}.shell.auth-shell{grid-template-rows:1fr}.shell.with-window-bar{grid-template-rows:28px 64px 1fr}.desktop-frameless-shell{border-radius:0;border:0;background:#111;box-shadow:none}.app-header{background:var(--header);color:var(--header-text);display:grid;grid-template-columns:minmax(200px,auto) minmax(0,1fr) auto;align-items:center;gap:10px;padding:0 14px;border-bottom:1px solid var(--header-border)}.app-header.desktop-titlebar{background:var(--header);border-bottom:1px solid var(--header-border);-webkit-app-region:no-drag}.app-header.desktop-titlebar button,.app-header.desktop-titlebar input,.app-header.desktop-titlebar select,.app-header.desktop-titlebar a,.app-header.desktop-titlebar [role=button],.app-header.desktop-titlebar .header-cloud-controls,.app-header.desktop-titlebar .window-actions{-webkit-app-region:no-drag}.header-left,.header-center,.header-right{display:flex;align-items:center;gap:10px}.header-center{flex:1;justify-content:flex-start;min-width:0;padding:0 8px;overflow:hidden}.header-right{justify-self:end;flex-shrink:0;display:inline-flex;align-items:center;gap:8px}.window-actions{display:flex;height:100%;align-items:center;gap:0;background:transparent}.window-btn{width:50px;height:34px;border:0;outline:0;cursor:pointer;background:transparent;color:#e3e6ec;font-size:14px;font-weight:500;line-height:1;border-radius:0;transition:background-color .12s ease;-webkit-app-region:no-drag;pointer-events:auto}.window-btn:hover{background:#2a2d31}.window-btn-close:hover{background:#c42b1c}.header-cloud-controls{display:flex;align-items:center;justify-content:flex-start;gap:8px;flex-wrap:nowrap;min-width:0;width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}.header-cloud-controls>span{white-space:nowrap}.header-cloud-label{opacity:.9;font-size:12px}.header-edge-select{min-width:140px;flex:1 1 300px;max-width:min(42vw,420px)}.header-all-toggle{display:inline-flex;align-items:center;gap:6px;color:var(--header-text);font-size:13px;margin-right:4px;white-space:nowrap}.header-all-toggle input{width:auto;margin:0}.header-gateway-select{min-width:260px;max-width:min(46vw,520px);color:#fff;font-weight:700}.header-gateway-select option{color:#111827}.header-gateway-select-ok{background:var(--ok);border:1px solid #15803d}.header-gateway-select-warn{background:#ca8a04;border:1px solid #a16207}.brand{display:flex;align-items:center;gap:10px}.brand-full-logo{width:min(100%,360px);height:42px;object-fit:contain;object-position:left center;display:block}.brand-logo{width:30px;height:30px;border-radius:6px}.brand-title{font-size:18px;font-weight:700}.brand-subtitle{font-size:12px;color:#c8d1df}.nav-toggle-btn{border:0;background:transparent;color:var(--header-text);font-size:20px;width:38px;height:38px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;border:1px solid var(--header-surface-border);background:var(--header-surface)}.nav-toggle-btn:hover{opacity:.85}.icon-btn{border:1px solid var(--header-surface-border);background:var(--header-surface);color:var(--header-text);border-radius:10px;min-width:38px;height:38px;cursor:pointer;position:relative;padding:0 10px;display:inline-flex;align-items:center;justify-content:center}.icon-btn:hover{filter:brightness(1.08)}.icon-btn:active{transform:translateY(1px)}.icon-btn-start{background:var(--ok);border-color:var(--ok);color:#fff}.icon-btn-stop{background:var(--danger);border-color:var(--danger);color:#fff}.theme-btn{min-width:38px}.notif-dot{position:absolute;top:-6px;right:-6px;background:#ef4444;color:#fff;border-radius:999px;font-size:11px;min-width:18px;height:18px;display:grid;place-items:center}.body{display:grid;grid-template-columns:280px 1fr;min-height:0;overflow:hidden}.body.sidebar-hidden{grid-template-columns:1fr}.sidebar{background:var(--sidebar);color:var(--sidebar-text);border-right:1px solid var(--sidebar-border);display:grid;grid-template-rows:1fr auto;width:280px;overflow:hidden}.desktop-frameless-shell .sidebar{background:var(--sidebar);border-right:1px solid var(--sidebar-border);box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}[data-theme=dark] .desktop-frameless-shell .sidebar,[data-theme=light] .desktop-frameless-shell .sidebar{background:var(--sidebar);border-right:1px solid var(--sidebar-border)}.sidebar.collapsed{width:84px}.sidebar.hidden{display:none}.sidebar-scroll{overflow-y:auto;overflow-x:hidden;min-height:0;max-height:100%;padding:10px}.sidebar-brand-block{width:100%;display:flex;align-items:center;justify-content:center;padding:8px 6px 14px;margin-bottom:8px;border-bottom:1px solid var(--sidebar-border)}.sidebar-brand-logo{width:min(100%,248px);height:auto;object-fit:contain;display:block}.nav-section{margin-bottom:8px}.nav-group-btn{width:100%;display:flex;justify-content:space-between;align-items:center;text-align:left;border:0;border-radius:8px;background:transparent;color:var(--sidebar-title);padding:9px 10px;font-size:12px;font-weight:700;letter-spacing:.3px;text-transform:uppercase;cursor:pointer}.nav-group-btn:hover{background:var(--sidebar-soft)}.nav-item{width:100%;border:0;border-radius:8px;background:transparent;color:var(--sidebar-text);padding:10px;margin-top:4px;cursor:pointer}.nav-item:active{transform:translateY(1px)}.nav-item.active{background:var(--nav-active-bg);color:var(--nav-active-text);font-weight:600;border-left:3px solid var(--nav-active-border);box-shadow:none}.nav-item:disabled{opacity:.75;cursor:not-allowed}.nav-subitem{display:grid;grid-template-columns:28px 1fr auto;gap:8px;align-items:center;padding-left:22px;font-size:12px;text-align:left}.nav-subitem span:nth-child(2){text-transform:uppercase;text-align:left;justify-self:start}.nav-icon{width:24px;height:24px;display:grid;place-items:center}.nav-icon svg,.nav-icon-center svg{width:14px;height:14px}.nav-icon-only{display:grid;place-items:center;padding:9px 4px}.nav-icon-center{width:32px;height:32px;display:grid;place-items:center;font-size:11px;font-weight:700}.lock-tag{font-size:10px;color:#fbbf24;border:1px solid #f59e0b;border-radius:999px;padding:1px 6px}.sidebar-footer{border-top:1px solid var(--sidebar-border);padding:10px;position:relative}.user-box{margin-bottom:0}.user-name{font-size:14px;font-weight:700}.user-role{font-size:12px;color:var(--sidebar-title)}.user-menu-wrap{position:relative}.user-menu-btn{width:100%;border:1px solid var(--sidebar-border);background:transparent;color:var(--sidebar-text);border-radius:10px;padding:10px;display:flex;align-items:center;justify-content:space-between;text-align:left;cursor:pointer}.user-menu-btn:hover{background:var(--sidebar-soft)}.user-menu-caret{font-size:10px;color:var(--sidebar-title)}.user-menu-panel{margin-top:8px;border:1px solid var(--sidebar-border);border-radius:10px;background:var(--sidebar);overflow:hidden;box-shadow:0 8px 22px color-mix(in srgb,black 18%,transparent)}.user-menu-item{width:100%;border:0;background:transparent;color:var(--sidebar-text);padding:10px;display:flex;align-items:center;gap:8px;cursor:pointer;text-align:left}.user-menu-item:hover{background:color-mix(in srgb,var(--sidebar-soft) 82%,var(--sidebar) 18%)}.content{overflow:hidden;min-height:0;position:relative}.desktop-frameless-shell .content{background:var(--bg)}.desktop-auth-view{grid-template-rows:28px 1fr}.desktop-auth-content{min-height:0;overflow:hidden}.desktop-auth-content .login-container{min-height:100%}.window-bar-strip{min-height:28px;height:28px;background:var(--bg);display:flex;align-items:center;justify-content:space-between;padding:0 8px 0 10px;border:0;-webkit-app-region:drag}.window-bar-left-controls{display:inline-flex;align-items:center;gap:8px;-webkit-app-region:no-drag}.window-bar-icon{width:14px;height:14px;object-fit:contain;border-radius:3px;opacity:.92;-webkit-app-region:no-drag;pointer-events:none}.window-bar-icon-white{filter:grayscale(1) brightness(6)}.window-bar-menu-btn{width:22px;height:22px;border:1px solid var(--stroke);border-radius:6px;background:color-mix(in srgb,var(--card) 92%,var(--bg) 8%);color:var(--text);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;-webkit-app-region:no-drag}.window-bar-menu-btn:hover{background:color-mix(in srgb,var(--brand) 16%,var(--card) 84%);border-color:color-mix(in srgb,var(--brand) 34%,var(--stroke) 66%)}.window-bar-actions{display:flex;align-items:center;gap:6px;-webkit-app-region:no-drag}.window-bar-center-spacer{flex:1;min-width:0}.window-native-actions{display:inline-flex;align-items:center;gap:0;-webkit-app-region:no-drag}.window-native-btn{width:46px;height:28px;border:0;outline:0;background:transparent;color:var(--text);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;-webkit-app-region:no-drag}.window-native-btn:hover{background:color-mix(in srgb,var(--card) 86%,var(--text) 14%)}.window-bar-actions .icon-btn{min-width:26px;width:26px;height:22px;border-radius:6px;padding:0;background:color-mix(in srgb,var(--card) 92%,var(--bg) 8%);border:1px solid var(--stroke);color:var(--text);display:inline-flex;align-items:center;justify-content:center;-webkit-app-region:no-drag}.window-bar-actions .icon-btn:hover{background:color-mix(in srgb,var(--brand) 16%,var(--card) 84%);border-color:color-mix(in srgb,var(--brand) 34%,var(--stroke) 66%)}.content-scroll{height:100%;padding:16px;overflow-y:auto;min-height:0;display:flex;flex-direction:column;gap:12px}.page-fill{display:grid;grid-template-rows:auto 1fr;gap:12px;height:100%;min-height:0;max-height:100%;min-width:0;flex:1}.page-fill.single{grid-template-rows:1fr}.reporting-page{grid-template-rows:auto minmax(0,1.1fr) minmax(0,.9fr)}.card-fill{display:flex;flex-direction:column;min-height:0;overflow:hidden}.fill-scroll{flex:1;min-height:0;height:100%;max-height:none;overflow-y:auto}.content-scroll>.card:only-child{height:100%;min-height:0;max-height:100%;display:flex;flex-direction:column}.content-scroll>.card:only-child .table-scroll{flex:1;min-height:0;max-height:none}.content-scroll>.page-tools+.card{flex:1;min-height:0;display:flex;flex-direction:column}.content-scroll>.page-tools+.card .table-scroll{flex:1;min-height:0;max-height:none}.gateway-footer{position:absolute;left:0;right:0;bottom:0;z-index:20;background:var(--header);color:var(--header-text);border-top:1px solid var(--header-border);padding:10px 12px;transition:max-height .18s ease,padding .18s ease,opacity .18s ease,transform .18s ease;max-height:min(46vh,420px);opacity:1;transform:translateY(0)}.gateway-footer.collapsed{max-height:0;opacity:0;padding-top:0;padding-bottom:0;border-top:0;overflow:hidden;transform:translateY(100%);pointer-events:none}.gateway-footer-title{font-size:12px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;margin-bottom:8px}.gateway-footer-table{display:grid;gap:6px;max-height:min(38vh,340px);overflow-y:auto;padding-right:4px}.gateway-footer-head,.gateway-footer-row{display:grid;grid-template-columns:1.1fr 1.5fr 1.4fr .9fr 1.8fr 120px;gap:8px;align-items:center}.gateway-footer-head{font-size:11px;font-weight:700;opacity:.9}.gateway-footer-row{background:color-mix(in srgb,var(--header) 82%,#ffffff 18%);border:1px solid var(--header-border);border-radius:10px;padding:6px 8px}.gateway-footer-cell{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.gateway-footer-actions{justify-content:flex-start}.footer-action-btn.icon-btn-start:not(:disabled){background:#16a34a;border-color:#15803d;color:#fff}.footer-action-btn.icon-btn-stop:not(:disabled){background:#dc2626;border-color:#b91c1c;color:#fff}.footer-action-btn:disabled{background:#6b7280;border-color:#6b7280;color:#d1d5db;cursor:not-allowed;opacity:1}.footer-toggle-fab{position:fixed;right:14px;bottom:12px;z-index:50;border:1px solid var(--header-surface-border);background:var(--header);color:var(--header-text);border-radius:999px;padding:8px 12px;font-size:12px;font-weight:700;cursor:pointer;transition:bottom .18s ease,filter .14s ease}.footer-toggle-fab:hover{filter:brightness(1.08)}.footer-toggle-fab.running{background:#16a34a;border-color:#15803d;color:#fff}.footer-toggle-fab.stopped{background:#dc2626;border-color:#b91c1c;color:#fff}.page-tools{display:flex;justify-content:flex-end}.interface-header-row{justify-content:space-between;align-items:center;margin-bottom:10px}.interface-theme-grid{display:grid;grid-template-columns:1fr;gap:12px}.interface-theme-card{border:1px solid var(--stroke);border-radius:12px;padding:10px;background:color-mix(in srgb,var(--card) 94%,var(--bg) 6%)}.interface-theme-card-head{justify-content:space-between;align-items:center;margin-bottom:8px}.interface-theme-card-head h4{margin:0;font-size:14px}.interface-color-grid{display:grid;grid-template-columns:1fr;gap:4px}.interface-color-field{display:grid;grid-template-columns:minmax(130px,180px) minmax(0,1fr);align-items:center;gap:6px 8px;padding:4px 0;border-bottom:1px solid var(--line)}.interface-color-field>span{font-size:12px;color:var(--muted);margin:0}.interface-color-inputs{display:grid;grid-template-columns:42px minmax(0,1fr);gap:6px;align-items:center}.interface-color-inputs input[type=color]{width:42px;height:30px;padding:2px;border-radius:8px}.interface-color-inputs input[type=text]{font-family:Consolas,Courier New,monospace;text-transform:uppercase}.interface-palette-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.interface-palette-item{display:grid;gap:6px;padding:8px;border:1px solid var(--stroke);border-radius:10px;background:color-mix(in srgb,var(--card) 92%,var(--bg) 8%)}.interface-palette-item>span{font-size:12px;color:var(--muted)}@media (max-width: 1200px){.interface-theme-grid,.interface-color-grid{grid-template-columns:1fr}.interface-palette-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width: 700px){.interface-palette-grid{grid-template-columns:1fr}}.page-title-row h1{margin:0 0 12px;font-size:24px}.kpi-grid{display:grid;gap:14px;grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}.dashboard-tools{align-items:center;gap:10px;flex-wrap:wrap}.dashboard-per-row-label{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:700}.dashboard-per-row-label select{width:76px}.dashboard-mode-toggle{display:inline-flex;align-items:center;gap:6px}.dashboard-grid{display:grid;gap:8px}.dashboard-card{min-height:0;padding:8px 10px;overflow:hidden}.dashboard-kpi-card{display:grid;grid-template-columns:25% 40% 25%;justify-content:space-between;gap:10px;align-items:center;min-height:88px}.dashboard-kpi-value{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;font-size:24px;font-weight:700;line-height:1.1;min-height:72px;gap:4px;min-width:0}.dashboard-kpi-value-main{max-width:100%;overflow:hidden;text-overflow:ellipsis}.dashboard-grid-4.dashboard-mode-kpi .dashboard-kpi-value{font-size:19px;min-height:62px;gap:2px}.dashboard-grid-4.dashboard-mode-kpi .dashboard-kpi-value-last{font-size:10px}.dashboard-grid-4.dashboard-mode-kpi .dashboard-kpi-meta{font-size:11px}.dashboard-kpi-value-last{font-size:11px;line-height:1.1;color:var(--muted);font-weight:500;width:100%;overflow:hidden;text-overflow:ellipsis}.dashboard-kpi-meta{display:flex;flex-direction:column;justify-content:center;gap:1px;font-size:12px;min-width:0;overflow:hidden}.dashboard-kpi-meta>div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dashboard-kpi-title{font-weight:700}.dashboard-kpi-actions{display:flex;flex-direction:column;justify-content:center;gap:6px;align-items:flex-end;min-width:0;overflow:hidden;padding-right:6px}.dashboard-kpi-main-actions,.dashboard-kpi-move-actions{display:flex;gap:4px;justify-content:flex-end;flex-wrap:nowrap;width:100%}.dashboard-kpi-actions .table-action-btn{min-width:24px;width:24px;height:24px;padding:0;flex:0 0 24px;border-radius:6px;font-size:11px}.dashboard-chart-card .meta{margin:0 0 4px;font-size:12px;gap:6px}.dashboard-chart-card h3{margin:0;font-size:15px;display:inline-flex;align-items:center;gap:6px}.dashboard-chart-card .trend-header-row{margin-bottom:2px}.dashboard-chart-card .chart-wrap{height:150px;margin:0}.dashboard-title-divider{color:var(--muted);font-weight:400}.dashboard-live-inline{font-weight:700}.dashboard-empty-card{min-height:120px;display:grid;place-items:center;color:var(--muted)}.card{background:var(--card);border:1px solid var(--stroke);border-radius:14px;padding:14px;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}.mini-card{margin-top:12px}.login-card{width:min(420px,90vw)}.kpi{font-size:46px;font-weight:700}.meta{display:flex;gap:10px;color:var(--muted);font-size:13px;margin-top:6px}.chart-wrap{width:100%;height:230px}.trend-header-row{justify-content:space-between;align-items:center}.tag-monitor-header-actions{align-items:center}.modal-close-btn{border:1px solid var(--stroke);background:transparent;color:var(--text);width:30px;height:30px;border-radius:8px;cursor:pointer;font-weight:700;line-height:1;padding:0}.modal-close-btn:hover{border-color:#8ea7d8;color:#8ea7d8}.table{display:grid;gap:6px}.devices-table .thead,.devices-table .trow{grid-template-columns:2fr 1.5fr 1.5fr 1.5fr 120px}.db-table .thead,.db-table .trow{grid-template-columns:1.2fr 1fr 2.2fr 1.2fr .9fr 1.4fr 120px}.db-role-table .thead,.db-role-table .trow{grid-template-columns:1fr 1fr 1.8fr .85fr .75fr .85fr 1.55fr 1.05fr 120px}.backup-files-table .thead,.backup-files-table .trow{grid-template-columns:.6fr 1.2fr 2.1fr 1fr 120px}.email-profiles-table .thead,.email-profiles-table .trow{grid-template-columns:1.2fr 1.8fr 1.1fr .9fr 120px}.retention-runs-table .thead,.retention-runs-table .trow{grid-template-columns:1.2fr .8fr .9fr 1.8fr .8fr}.db-scope-grid{display:grid;grid-template-columns:1fr;gap:10px}.db-scope-grid .card{min-height:0}.db-table .thead>span,.db-table .trow>span{min-width:0}.db-cell{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.db-url-cell{text-align:left}.db-writing-cell{font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.db-last-check-cell{font-variant-numeric:tabular-nums;white-space:nowrap}.db-actions-cell{justify-content:flex-start}.db-add-btn{min-width:120px;justify-content:center}.db-simple-card{display:grid;gap:12px}.db-head-title-wrap{display:inline-flex;align-items:center;gap:10px;flex-wrap:wrap}.db-simple-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.db-card-top-actions{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}.db-card-bottom-actions{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:10px;align-items:end}.db-simple-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:14px}.db-kv-grid{display:grid;gap:8px}.db-kv{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid var(--stroke);border-radius:10px;padding:8px 10px}.db-kv>span{color:var(--muted);font-size:12px}.db-kv>b{font-size:12px;text-align:right}.db-usage-meter{width:100%;height:12px;border-radius:999px;overflow:hidden;border:1px solid var(--stroke);background:color-mix(in oklab,var(--surface) 84%,#ffffff 16%)}.db-usage-fill{height:100%;border-radius:999px}.db-usage-fill.low{background:#16a34a}.db-usage-fill.medium{background:#d97706}.db-usage-fill.high{background:#dc2626}.db-simple-controls{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:10px;align-items:end}.db-simple-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.db-actions-row-end{justify-content:flex-end}.db-inline-toggle{margin:0}.db-table .trow.selected-row{outline:1px solid #5b7fc5}.local-data-table .thead,.local-data-table .trow{grid-template-columns:1fr .8fr 1.6fr 1.2fr 1.2fr .9fr 1fr 110px}.cloud-data-table .thead,.cloud-data-table .trow{grid-template-columns:1fr .9fr 1.5fr .9fr 1.5fr .85fr 1.05fr 110px}.other-data-table .thead,.other-data-table .trow{grid-template-columns:1fr .9fr 1.5fr 1fr .85fr .85fr 1.05fr 110px}.gateway-table .thead,.gateway-table .trow{grid-template-columns:1.2fr 1fr .9fr 1.4fr 1fr .8fr 1fr 1.4fr 180px}.trigger-limit-table .thead,.trigger-limit-table .trow{grid-template-columns:1.1fr 1.2fr .95fr .95fr .8fr 1.2fr 120px}.trigger-condition-table .thead,.trigger-condition-table .trow{grid-template-columns:1fr 1.2fr .9fr .9fr .8fr .9fr 120px}.trigger-split{display:grid;grid-template-rows:1fr 1fr;gap:10px;min-height:0;flex:1}.trigger-split .card{min-height:0;padding-top:10px}.trigger-split .card h4{margin:0}.compact-tools{gap:8px}.trigger-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}.trigger-mode-inline{display:inline-grid;grid-auto-flow:column;align-items:center;gap:8px;font-size:12px}.trigger-mode-inline select{min-width:160px;padding:6px 8px;font-size:12px}.tags-table .thead,.tags-table .trow{grid-template-columns:1.5fr 1fr 1fr .8fr 1.1fr .7fr 120px}.alarms-table .thead,.alarms-table .trow{grid-template-columns:44px 1.2fr 2.2fr .8fr 1fr}.tags-actions-cell{justify-content:center}.historian-table .thead,.historian-table .trow{grid-template-columns:1.35fr 1.3fr .8fr .9fr 1fr 1fr 1fr 1fr}.logs-table .thead,.logs-table .trow{grid-template-columns:1.3fr .7fr .8fr 2.2fr 1fr 1fr 1fr}.reporting-docs-table .thead,.reporting-docs-table .trow{grid-template-columns:1.1fr .9fr 2.6fr 170px}.reporting-page-flat{display:grid;grid-template-columns:1fr;gap:12px;min-height:0}.card-title{margin:0 0 8px}.reporting-workspace{display:grid;grid-template-columns:minmax(340px,35%) minmax(0,65%);gap:12px;min-height:0;height:100%}.reporting-workspace-40-60{grid-template-columns:minmax(360px,40%) minmax(0,60%)}.reporting-left,.reporting-right{display:grid;gap:12px;min-height:0}.reporting-right>.card{min-height:0}.reporting-filter-grid{display:grid;grid-template-columns:1.2fr 1.2fr .8fr 1fr;gap:8px;margin-bottom:8px}.reporting-max-rows{max-width:170px}.reporting-select-row{display:grid;grid-template-columns:1fr 2fr;gap:8px}.reporting-select-row-flat{grid-template-columns:1fr}.reporting-select-row-flat .report-check-group{min-height:0}.reporting-select-row-flat .report-check-list{max-height:240px}.report-check-group{border:1px solid var(--stroke);border-radius:10px;background:color-mix(in srgb,var(--card) 92%,var(--bg) 8%);padding:8px;min-height:340px;display:grid;grid-template-rows:auto 1fr;gap:6px}.gateway-col,.tags-col{min-width:0}.report-check-title{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.25px;color:var(--muted)}.report-check-list{min-height:0;max-height:430px;overflow:auto;display:grid;gap:4px;align-content:start;padding-right:2px}.tags-col .report-check-list{grid-template-columns:1fr;gap:6px 12px}.report-check-item{display:grid;grid-template-columns:auto minmax(0,1.5fr) 96px 72px 84px;gap:6px;align-items:center;font-size:12px}.gateway-check-item{grid-template-columns:auto minmax(0,1fr)}.gateway-check-item span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tag-check-item{grid-template-columns:auto minmax(0,1fr) 96px 72px}.report-check-item select{min-width:72px;padding:4px 6px;font-size:11px}.report-check-item input[type=color]{width:100%;min-width:64px;height:30px;border:1px solid var(--stroke);border-radius:8px;padding:2px;background:var(--card)}.reporting-actions-wide-row{margin-top:8px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.reporting-actions-wide-row .btn{width:100%}.reporting-actions-row{margin-top:4px}.reporting-main-card{min-height:0}.reporting-chart-card{display:grid;grid-template-rows:auto auto auto 1fr;min-height:380px}.reporting-chart-table-row{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:10px;align-items:stretch;min-height:0;margin-top:10px}.reporting-chart-wrap{height:320px;margin-top:0;min-height:0}.reporting-table-side{min-height:0;max-height:none}.report-summary{font-size:12px;margin-top:2px}.reporting-preview-card{min-height:0}.report-preview-frame{width:100%;height:100%;border:1px solid var(--stroke);border-radius:10px;background:#fff}.reporting-preview-modal{width:min(86vw,1400px);max-width:calc(100vw - 32px);min-width:min(640px,96vw);height:94vh;max-height:calc(100vh - 24px);display:grid;grid-template-rows:auto 1fr;gap:10px}.scheduled-table .thead,.scheduled-table .trow{grid-template-columns:1.2fr .8fr .7fr .6fr 1.4fr 1fr .8fr 150px}.gateway-table .trow{cursor:pointer}.gateway-table .trow.selected-row{outline:1px solid #5b7fc5}.tags-stack{display:grid;gap:2px;white-space:pre-wrap}.row-actions{display:flex;gap:6px;align-items:center}.table-action-btn{min-width:30px;width:30px;height:30px;padding:0;border-radius:8px;border:1px solid var(--stroke);background:transparent;color:var(--text)}.table-action-btn:hover{border-color:#8ea7d8;color:#8ea7d8}.table-action-btn.danger{border-color:#b91c1c;color:#b91c1c}.table-action-btn.danger:hover{border-color:#dc2626;color:#dc2626}.icon-text-btn{display:inline-flex;align-items:center;gap:7px}.muted{color:var(--muted)}.table-scroll{max-height:min(60vh,560px);overflow-y:auto;padding-right:4px}.table-scroll.fill-scroll{max-height:none;height:100%;min-height:0;overflow-y:auto}.table-scroll.fill-scroll>.table{min-height:100%;align-content:start}.control-plane-page-fill{min-height:calc(100vh - 140px);background:var(--bg);border-radius:12px}.control-plane-layout{min-height:calc(100vh - 170px)}.control-plane-main{display:flex;flex-direction:column;min-height:calc(100vh - 170px)}.control-plane-main>.card{flex:1 1 auto;border:1px solid color-mix(in srgb,var(--stroke) 84%,transparent);box-shadow:0 10px 24px color-mix(in srgb,black 18%,transparent)}.control-plane-activation-card{min-height:calc(100vh - 220px);align-content:start}.control-plane-workspace{display:grid;grid-template-columns:1fr;gap:12px}.control-plane-workspace-card{width:100%}.control-plane-main h4,.control-plane-main .card-title{letter-spacing:.1px}.control-plane-main .thead{color:var(--text);opacity:.95}.control-plane-main .trow{background:var(--card-2)}.control-plane-main .trow:hover{background:color-mix(in srgb,var(--card-2) 84%,var(--nav-hover-bg) 16%)}.cp-customers-table .thead,.cp-customers-table .trow{grid-template-columns:40px 1fr 1fr 1.2fr 1fr .7fr 120px}.cp-licenses-table .thead,.cp-licenses-table .trow{grid-template-columns:40px 1fr .95fr .9fr .9fr 1.35fr .7fr 120px}.cp-edges-table .thead,.cp-edges-table .trow{grid-template-columns:40px 1fr 1fr .95fr 1.4fr .65fr .75fr 120px}.cp-users-table .thead,.cp-users-table .trow{grid-template-columns:40px 1fr .85fr 1.2fr .7fr .55fr 120px}.cp-activation-table .thead,.cp-activation-table .trow{grid-template-columns:40px .45fr 1.2fr .8fr .85fr .85fr .65fr .95fr .95fr 200px}.cp-workspace-table .thead,.cp-workspace-table .trow{grid-template-columns:1.2fr 1.2fr .8fr .7fr 120px}.thead,.trow{display:grid;grid-template-columns:2fr 2fr 1fr 1fr;gap:8px;align-items:center;font-size:13px}.thead{font-weight:700;border-bottom:1px solid var(--stroke);padding-bottom:8px}.trow{background:var(--table-row);border-radius:8px;padding:8px}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px;margin-bottom:12px}.form-note{grid-column:1 / -1;font-size:12px;color:var(--muted)}.email-template-preview{border:1px solid var(--stroke);border-radius:8px;background:color-mix(in srgb,var(--card) 88%,var(--bg) 12%);min-height:120px;padding:10px;overflow:auto}.retention-grid{margin-top:8px}.backup-card-header{justify-content:space-between;align-items:center;margin-bottom:8px;gap:10px;flex-wrap:wrap}.retention-policy-grid{display:grid;grid-template-columns:repeat(4,minmax(190px,1fr));gap:10px;margin-top:8px}.cleanup-card-row{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}.cleanup-mode-field{min-width:240px}.perm-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px;margin:12px 0}.perm-item{display:flex;align-items:center;gap:8px;font-size:13px;line-height:1.25}.perm-item input[type=checkbox]{width:auto;min-width:auto;height:auto;margin:0;padding:0}.users-access-page{display:grid;gap:12px}.users-table-scroll{max-height:none;overflow:auto}.users-table{min-width:760px}.users-table .thead,.users-table .trow{grid-template-columns:1.1fr .8fr 1.8fr 1fr 1.1fr .9fr .9fr .9fr}.users-create-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin-top:8px}.users-perm-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:10px;margin:12px 0 14px}.perm-group-card{border:1px solid var(--stroke);border-radius:10px;background:color-mix(in srgb,var(--card) 90%,var(--bg) 10%);padding:10px}.perm-group-title{font-size:12px;font-weight:700;letter-spacing:.3px;text-transform:uppercase;color:var(--muted);margin-bottom:8px}.perm-group-items{display:grid;gap:8px}label{display:grid;gap:6px;font-size:13px}input,select,textarea{border:1px solid var(--stroke);border-radius:10px;padding:9px 10px;font-size:14px;background:var(--bg);color:var(--text);width:100%}textarea{resize:vertical;min-height:92px}input[type=checkbox]{width:auto;min-width:auto}.row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.btn{border:1px solid transparent;border-radius:10px;min-height:36px;height:36px;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:600;background:var(--ok);border-color:var(--ok);color:#fff;cursor:pointer}.btn-secondary,.btn.btn-secondary{background:var(--info);border:1px solid var(--info);color:#fff}.btn:disabled{opacity:.55;cursor:not-allowed}.btn-primary,.btn-success{background:var(--ok);border-color:var(--ok)}.btn-warning{background:var(--warning);border-color:var(--warning);color:#111}.btn-danger{background:var(--danger);border-color:var(--danger)}.pill{border-radius:999px;padding:6px 12px;font-size:12px;font-weight:600}.pill-green{background:#dcfce7;color:#14532d}.pill-red{background:#fee2e2;color:#7f1d1d}.pill-amber{background:#fef3c7;color:#78350f}.header-db-pill{width:360px;min-width:360px;max-width:360px;display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left}@media (max-width: 1360px){.header-db-pill{width:280px;min-width:280px;max-width:280px}.db-scope-grid{grid-template-columns:1fr}}.error{background:var(--error-bg);color:var(--error-text);border:1px solid var(--error-border);padding:8px 10px;border-radius:10px;margin-bottom:10px}.lock-note{margin-top:10px;padding:8px 10px;border:1px solid #f59e0b;color:#b45309;background:#fffbeb;border-radius:10px}.info-note,.ok-note{margin-top:10px;padding:8px 10px;border:1px solid #86efac;color:#166534;background:#dcfce7;border-radius:10px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a8c;display:grid;place-items:center;z-index:50;padding:16px}.modal-card{width:min(430px,96vw);background:var(--card);border:1px solid var(--stroke);border-radius:14px;padding:16px;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}.db-modal-card{width:min(900px,96vw);max-height:88vh;overflow-y:auto}.gateway-modal-card{width:min(920px,96vw);max-height:88vh;overflow-y:auto}.trigger-modal-card{width:min(640px,96vw)}.tag-monitor-modal{width:min(1180px,98vw);max-height:96vh;overflow:hidden;background:#f3f4f6;padding:14px}.tag-monitor-modal .form-grid{margin-bottom:10px}.tag-monitor-modal .meta{margin-bottom:8px}.tag-monitor-modal .chart-wrap{margin-top:4px;padding:6px 4px 2px;border-radius:10px;background:transparent;height:280px}.tag-monitor-modal input,.tag-monitor-modal select,.tag-monitor-modal textarea{background:#fff;color:#111827}[data-theme=dark] .tag-monitor-modal{background:#262c36}[data-theme=dark] .tag-monitor-modal input,[data-theme=dark] .tag-monitor-modal select,[data-theme=dark] .tag-monitor-modal textarea{background:#303846;color:#e5e7eb;border-color:#4a5568}.modal-card h3{margin:0 0 12px}.confirm-card{width:min(420px,92vw)}.confirm-card p{margin:0 0 12px}.modal-actions{justify-content:flex-end;margin-top:12px}.device-form-grid{display:grid;grid-template-columns:1fr;gap:10px}.gateway-form-grid,.trigger-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.trigger-limit-row{grid-column:span 2}.trigger-limit-controls{display:grid;grid-template-columns:120px 1fr;gap:8px}.trigger-enabled-row{margin-top:2px}.gateway-span-2{grid-column:span 2}.discovered-tags-card{border:1px solid var(--stroke);border-radius:10px;padding:8px;background:color-mix(in srgb,var(--card) 88%,var(--bg) 12%)}.discovered-tags-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;flex-wrap:wrap}.gateway-browse-search{min-width:260px;max-width:520px;flex:1 1 320px}.discovered-tags-list{max-height:180px;overflow-y:auto;border-top:1px solid var(--stroke);padding-top:8px;display:grid;gap:6px}.discovered-tag-item{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:8px;font-size:12px}.discovered-tag-item.disabled{opacity:.65}.discovered-tag-item code{font-size:11px;color:var(--muted)}.opc-validate-item{display:grid;grid-template-columns:auto minmax(220px,1fr) minmax(240px,1fr);align-items:start;gap:8px;font-size:12px}.opc-validate-badge{display:inline-flex;align-items:center;justify-content:center;min-width:42px;padding:2px 8px;border-radius:999px;border:1px solid var(--stroke);font-weight:700}.opc-validate-badge.ok{color:#166534;background:#dcfce7;border-color:#86efac}.opc-validate-badge.fail{color:#7f1d1d;background:#fee2e2;border-color:#fecaca}.opc-validate-node code{font-size:11px;color:var(--muted)}.opc-validate-msg{color:var(--text)}.db-modal-layout{display:grid;gap:10px}.db-group{border:1px solid var(--stroke);border-radius:12px;padding:10px;background:color-mix(in srgb,var(--card) 92%,var(--bg) 8%)}.db-group-title{font-size:12px;font-weight:700;color:var(--muted);margin-bottom:8px;text-transform:uppercase}.db-quick-actions{display:flex;justify-content:flex-end;margin-bottom:8px}.btn-sm{padding:6px 10px;font-size:12px}.db-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.db-span-2{grid-column:span 2}.status-sub{font-size:11px;margin-top:2px}.status-pill{display:inline-block;border-radius:999px;padding:2px 8px;font-size:11px;font-weight:700}.status-online{background:#dcfce7;color:#166534}.status-warning{background:#fef3c7;color:#92400e}.status-offline{background:#fee2e2;color:#991b1b}.status-chip{font-size:11px}.status-chip.ok{color:#15803d}.status-chip.fail{color:#b91c1c}.test-status-wrap{display:grid;gap:8px;margin-top:8px}.compact-note{margin:0}@media (max-width: 1100px){.body{grid-template-columns:1fr}.sidebar,.sidebar.collapsed{width:100%;grid-template-rows:auto auto}.gateway-footer-head,.gateway-footer-row{grid-template-columns:1fr}.gateway-footer-head{display:none}.reporting-workspace,.reporting-workspace-40-60{grid-template-columns:1fr}.reporting-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.reporting-select-row,.reporting-chart-table-row{grid-template-columns:1fr}.reporting-table-side{max-height:320px}.tags-col .report-check-list,.reporting-actions-wide-row,.db-scope-grid{grid-template-columns:1fr}}@media (max-width: 760px){.app-header{padding:0 8px}.brand-title{font-size:15px}.brand-subtitle{display:none}.header-right{gap:6px}.header-center{justify-content:flex-start;padding:0 4px}.header-cloud-controls{gap:6px;justify-content:flex-start;max-width:calc(100vw - 164px)}.header-edge-select{min-width:120px;flex:1 1 180px;max-width:58vw;font-size:12px}.icon-btn{min-width:32px;height:32px;padding:0 8px}.footer-toggle-fab{right:10px;bottom:10px;padding:7px 10px;font-size:11px}.db-grid-2{grid-template-columns:1fr}.db-span-2{grid-column:span 1}.gateway-form-grid{grid-template-columns:1fr}.gateway-span-2{grid-column:span 1}.trigger-form-grid{grid-template-columns:1fr}.trigger-limit-row{grid-column:span 1}.trigger-limit-controls,.reporting-filter-grid,.reporting-select-row,.reporting-chart-table-row{grid-template-columns:1fr}.reporting-chart-wrap{height:260px}.report-check-group{min-height:150px}.tags-col .report-check-list,.reporting-actions-wide-row{grid-template-columns:1fr}.dashboard-kpi-card{grid-template-columns:1fr;align-items:stretch}.dashboard-kpi-actions{align-items:flex-start}.dashboard-kpi-main-actions,.dashboard-kpi-move-actions{justify-content:flex-start}.retention-policy-grid{grid-template-columns:repeat(2,minmax(180px,1fr))}}@media (max-width: 1100px){.db-simple-grid{grid-template-columns:1fr}.db-simple-controls,.db-card-bottom-actions{grid-template-columns:1fr 1fr}}@media (max-width: 760px){.db-simple-controls,.db-card-bottom-actions{grid-template-columns:1fr}}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.stat-card{border:1px solid var(--stroke);border-radius:12px;padding:14px;background:var(--card);min-width:0;overflow:hidden}.stat-title{font-size:12px;color:var(--muted);margin-bottom:8px;text-transform:none;letter-spacing:.01em;font-weight:400}.stat-value{font-size:24px;font-weight:700;color:var(--text);line-height:1.1;text-align:center}.power-insight-card{display:flex;flex-direction:column;gap:8px}.power-insight-value-row{display:flex;align-items:baseline;justify-content:center;gap:8px}.power-insight-unit{font-size:12px;color:var(--muted);font-weight:500}.power-toolbar-grid{display:grid;grid-template-columns:repeat(4,minmax(170px,1fr));gap:12px;align-items:center}.power-top-tabs{display:flex;gap:6px;margin-bottom:12px}.power-top-tab{min-width:120px;height:36px;border-radius:10px;border:1px solid var(--stroke);background:transparent;color:var(--muted);font-weight:600;cursor:pointer}.power-top-tab.active{border-color:#1aaa9f8c;color:var(--text);box-shadow:0 0 0 1px #1aaa9f2e inset}.power-kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(170px,1fr));gap:12px;align-items:stretch}.power-kpi-grid .stat-card{background:var(--card);border:1px solid var(--stroke);border-radius:12px;min-height:116px}.power-main-grid{display:grid;grid-template-columns:3fr 2fr;gap:12px;align-items:stretch}.power-main-chart-card,.power-side-chart-card{min-width:0;overflow:visible}.power-main-chart-card .chart-wrap,.power-side-chart-card .chart-wrap{width:100%;overflow:hidden;padding:6px 8px 28px;min-height:360px}.power-main-chart-card .recharts-wrapper,.power-side-chart-card .recharts-wrapper,.power-main-chart-card .recharts-surface,.power-side-chart-card .recharts-surface{overflow:visible}.power-main-chart-card .meta,.power-side-chart-card .meta{flex-wrap:wrap;row-gap:6px}.power-main-chart-card .trend-header-row,.power-side-chart-card .trend-header-row{align-items:flex-start;gap:8px}.power-main-chart-card .trend-header-row h3,.power-side-chart-card .trend-header-row h3{flex:1 1 auto;min-width:0}.power-side-controls{gap:8px;align-items:center;margin-left:auto;justify-content:flex-end}.power-side-controls select{min-width:96px;max-width:132px;height:28px;font-size:11px;padding:3px 8px}.power-chart-type-toggle{display:inline-flex;border:1px solid var(--stroke);border-radius:8px;overflow:hidden;height:28px}.power-chart-type-toggle button{border:0;background:transparent;color:var(--muted);font-size:11px;padding:0 8px;cursor:pointer}.power-chart-type-toggle button+button{border-left:1px solid var(--stroke)}.power-chart-type-toggle button.active{background:var(--brand);color:#fff}.power-insight-eff .stat-value{color:#3b82f6}.power-insight-cost .stat-value{color:#06b6d4}.power-insight-energy .stat-value{color:#a78bfa}.power-insight-live .stat-value{color:#22c55e}.power-insight-peak .stat-value{color:#f59e0b}.power-insight-down .stat-value{color:#ef4444}[data-theme=dark] .power-insight-eff .stat-value{color:#60a5fa}[data-theme=dark] .power-insight-cost .stat-value{color:#67e8f9}[data-theme=dark] .power-insight-energy .stat-value{color:#c4b5fd}[data-theme=dark] .power-insight-live .stat-value{color:#4ade80}[data-theme=dark] .power-insight-peak .stat-value{color:#fbbf24}[data-theme=dark] .power-insight-down .stat-value{color:#f87171}.recharts-cartesian-axis-line,.recharts-cartesian-axis-tick-line{stroke:var(--muted)}.recharts-cartesian-axis-tick-value{fill:var(--muted)}.power-meter-table{overflow-x:auto}.power-meter-table .thead,.power-meter-table .trow{min-width:1120px;grid-template-columns:minmax(120px,1.1fr) minmax(180px,1.4fr) minmax(170px,1.3fr) minmax(100px,.8fr) minmax(100px,.8fr) minmax(100px,.8fr) minmax(130px,1fr) minmax(130px,1fr) minmax(130px,.9fr) minmax(120px,.9fr)}.card-collapse-btn{min-width:32px;height:28px;padding:0 10px;line-height:1;border:1px solid var(--stroke);background:color-mix(in srgb,var(--card) 80%,var(--bg) 20%)}.power-register-table .thead,.power-register-table .trow{min-width:1240px;grid-template-columns:minmax(150px,1.25fr) minmax(110px,.9fr) minmax(90px,.75fr) minmax(220px,1.5fr) minmax(110px,.9fr) minmax(110px,.9fr) minmax(220px,1.5fr) 72px}.power-register-table.power-register-compact .thead{font-size:12px;padding-bottom:5px}.power-register-table.power-register-compact .trow{padding:4px 6px;font-size:12px;gap:6px;border-radius:6px}.power-register-table.power-register-compact .trow>span{min-height:26px;display:flex;align-items:center}.power-register-table.power-register-compact input,.power-register-table.power-register-compact select{height:26px;min-height:26px;padding:2px 6px;font-size:12px}@media (max-width: 1400px){.power-kpi-grid{grid-template-columns:repeat(3,minmax(150px,1fr))}}@media (max-width: 1024px){.power-toolbar-grid{grid-template-columns:repeat(2,minmax(170px,1fr))}.power-main-grid{grid-template-columns:1fr}.power-kpi-grid{grid-template-columns:repeat(2,minmax(180px,1fr))}}@media (max-width: 680px){.power-toolbar-grid,.power-kpi-grid{grid-template-columns:1fr}.power-top-tabs{flex-wrap:wrap}.power-side-controls{width:100%;justify-content:flex-end;flex-wrap:wrap}.power-side-controls select{flex:1 1 auto;min-width:0}}:root{--brand: #0169cc;--brand-strong: #0053a3;--bg: #fcfcfc;--card: #ffffff;--text: #111111;--muted: #5a5a5a;--stroke: #e3e3e3;--surface-elev: color-mix(in srgb, var(--card) 94%, var(--bg) 6%);--space-1: 4px;--space-2: 6px;--space-3: 8px;--space-4: 10px;--space-5: 12px;--radius-sm: 8px;--radius-md: 10px;--radius-lg: 12px;--font-xs: 11px;--font-sm: 12px;--font-md: 13px;--font-lg: 16px}[data-theme=dark]{--bg: #111111;--card: #171717;--text: #fcfcfc;--muted: #b3b3b3;--stroke: #2a2a2a;--surface-elev: color-mix(in srgb, var(--card) 92%, var(--bg) 8%)}.shell,.content,.content-scroll{background:var(--bg);color:var(--text)}.card,.modal-card,.tag-monitor-modal,.stat-card,.interface-theme-card,.interface-palette-item,.perm-group-card,.db-group{background:var(--card);color:var(--text)}body,label,input,select,textarea,.meta,.status-sub,.gateway-footer-cell,.user-role,.header-cloud-label{font-size:var(--font-sm)}.brand-title,.page-title-row h1,.card-title{font-size:var(--font-lg);letter-spacing:-.01em}.brand-subtitle,.muted,.meta,.status-sub,.status-chip,.form-note{color:var(--muted)}.card{border:1px solid var(--stroke);border-radius:var(--radius-lg);padding:var(--space-4);background:var(--surface-elev)}.btn,.btn-sm,.icon-btn,.nav-toggle-btn{min-height:36px;height:36px;border-radius:var(--radius-md);font-size:var(--font-sm)}.btn,.btn-primary{background:var(--ok);border:1px solid var(--ok);color:#fff;padding:0 12px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px}.btn:hover,.btn-primary:hover{filter:brightness(1.04)}.btn-secondary,.btn.btn-secondary{background:var(--info);color:#fff;border:1px solid var(--info)}.btn-warning{background:var(--warning);border:1px solid var(--warning);color:#111}.btn-danger{background:var(--danger);border:1px solid var(--danger);color:#fff}input,select,textarea{border-radius:var(--radius-md);border:1px solid var(--stroke);padding:7px 9px;font-size:var(--font-sm);background:var(--bg);color:var(--text)}.card .card,.card .modal-card,.card .db-group,.card .perm-group-card,.card .stat-card,.card .trow,.card .report-check-item,.card .gateway-check-item,.card .tag-check-item{background:var(--card-2)}.thead{padding-bottom:6px}.trow{padding:6px 8px;border-radius:var(--radius-sm);margin:0}.table-scroll{gap:4px}.nav-group-btn{padding:7px 8px;font-size:var(--font-xs)}.nav-item{padding:7px 8px;margin-top:2px}.nav-subitem{padding-left:16px}.users-create-grid,.users-perm-groups,.form-grid,.gateway-form-grid,.trigger-form-grid,.db-grid-2{gap:var(--space-3)}.modal-card{border-radius:var(--radius-lg);padding:var(--space-4)}.surface-local,.surface-portal,.surface-client{--sidebar-border: var(--stroke);--sidebar-soft: color-mix(in srgb, var(--sidebar) 85%, var(--card) 15%);--sidebar-title: var(--muted);--header-border: var(--stroke);--header-surface: color-mix(in srgb, var(--card) 92%, var(--bg) 8%);--header-surface-border: var(--stroke)}.surface-local .sidebar,.surface-portal .sidebar,.surface-client .sidebar{background:var(--sidebar)}.surface-local .sidebar,.surface-portal .sidebar,.surface-client .sidebar{color:var(--sidebar-text)}.surface-local .app-header,.surface-portal .app-header,.surface-client .app-header,.surface-local .window-bar-strip,.surface-portal .window-bar-strip,.surface-client .window-bar-strip{background:var(--header);color:var(--header-text);border-bottom:1px solid var(--header-border)}.nav-group-btn,.nav-item,.user-menu-btn,.user-dropdown button{color:var(--sidebar-text)}.nav-group-btn:hover,.nav-item:hover,.user-menu-btn:hover,.user-dropdown button:hover{background:var(--sidebar-soft)}.nav-group-btn,.nav-item{min-height:40px;padding:10px 12px;font-size:13px;font-family:var(--font-ui)}.nav-subitem{min-height:42px;font-size:13px;padding-left:20px;font-family:var(--font-ui)}.nav-item:hover{background:var(--nav-hover-bg);color:var(--nav-hover-text);border-left:3px solid var(--nav-hover-border)}.nav-item.active{background:var(--nav-active-bg);color:var(--nav-active-text);border-left:3px solid var(--nav-active-border)}.btn,.btn-sm,.icon-btn,.table-action-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:auto;max-width:100%;white-space:nowrap;min-height:36px;height:36px;border-radius:10px;font-weight:600}.btn,.btn-primary,.btn-success{background:var(--ok);color:#fff;border:1px solid var(--ok)}.btn-warning{background:var(--warning);color:#111;border:1px solid var(--warning)}.btn-danger,.table-action-btn.danger{background:var(--danger);color:#fff;border:1px solid var(--danger)}.btn-secondary,.btn.btn-secondary,.table-action-btn{background:var(--info);color:#fff;border:1px solid var(--info)}.btn-ghost{background:transparent;color:var(--text);border:1px solid var(--stroke)}.row .btn,.page-tools .btn,.reporting-actions-wide-row .btn,.db-actions .btn{flex:0 0 auto;width:auto}.btn-full,.row .btn-full,.btn.block{width:100%;justify-content:center}.btn:hover,.btn-primary:hover,.btn-success:hover,.btn-secondary:hover,.btn-warning:hover,.btn-danger:hover,.table-action-btn:hover{filter:brightness(1.04)}.window-bar-strip{position:relative;z-index:60;min-height:32px;height:32px;padding:0 8px;display:flex;align-items:center;justify-content:space-between;background:var(--header);color:var(--header-text);border-bottom:1px solid var(--header-border);-webkit-app-region:no-drag;overflow:hidden}.window-bar-left-controls,.window-bar-actions,.window-actions-inline{display:inline-flex;align-items:center;-webkit-app-region:no-drag;pointer-events:auto}.window-bar-left-controls{gap:6px}.window-bar-center-spacer{flex:1;min-width:0;align-self:stretch;-webkit-app-region:drag;pointer-events:auto}.window-bar-actions{gap:6px;margin-left:8px}.window-native-actions{margin-left:auto;display:inline-flex;align-items:stretch;height:100%;-webkit-app-region:no-drag;pointer-events:auto;position:relative;z-index:5}.window-bar-actions *,.window-native-actions *,.window-bar-left-controls *{-webkit-app-region:no-drag;pointer-events:auto}.window-bar-menu-btn,.window-bar-actions .icon-btn{width:24px!important;min-width:24px!important;height:24px!important;max-height:24px!important;padding:0!important;margin:0!important;border-radius:6px;border:1px solid var(--header-surface-border);background:var(--header-surface);color:var(--header-text);display:inline-flex!important;align-items:center;justify-content:center;line-height:1;box-sizing:border-box;overflow:hidden;opacity:1!important;visibility:visible!important}.window-native-btn{width:46px;height:100%;border:0;border-radius:0;background:transparent;color:var(--header-text);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;-webkit-app-region:no-drag}.window-native-btn:hover{background:color-mix(in srgb,var(--brand) 18%,var(--header) 82%)}.window-native-btn-close:hover{background:#c42b1c;color:#fff}.window-bar-actions .icon-btn svg,.window-bar-menu-btn svg{width:14px;height:14px;stroke:currentColor;flex:0 0 auto}.window-bar-menu-btn:hover,.window-bar-actions .icon-btn:hover{background:color-mix(in srgb,var(--brand) 16%,var(--header-surface) 84%);border-color:color-mix(in srgb,var(--brand) 40%,var(--header-surface-border) 60%)}.window-bar-actions .icon-btn:disabled{opacity:.45!important}.surface-local .sidebar,.surface-portal .sidebar{backdrop-filter:none;-webkit-backdrop-filter:none}.surface-portal .portal-filter-block,.surface-portal .card,.surface-portal .control-plane-main .card{background:var(--card);border-color:var(--stroke)}.surface-client .sidebar{backdrop-filter:none;-webkit-backdrop-filter:none}.surface-client .card{background:color-mix(in srgb,var(--card) 95%,var(--bg) 5%);border-color:var(--stroke)}:root{--brand: #1f3a5f;--brand-strong: #0e8479;--teal: #14a89a;--ok: #14a89a;--warning: #e0a050;--danger: #e2585d;--info: #6e8dd2;--bg: #eceff3;--card: #ffffff;--card-2: #f6f8fa;--surface: #eceff3;--surface-elev: #ffffff;--text: #0e1116;--muted: #4a5566;--soft: #6e7989;--stroke: #e1e6ec;--line: #e1e6ec;--table-row: #f6f8fa;--error-bg: #fee2e2;--error-text: #7f1d1d;--error-border: #fecaca;--header: #eceff3;--header-text: #0e1116;--header-border: #d3dbe3;--header-surface: #eceff3;--header-surface-border: #d3dbe3;--sidebar: #ffffff;--sidebar-soft: #f6f8fa;--sidebar-border: #d7dce5;--sidebar-text: #0e1116;--sidebar-title: #4a5566;--nav-active-bg: #14a89a;--nav-active-text: #ffffff;--nav-hover-bg: #1f3a5f;--nav-hover-text: #ffffff;--nav-hover-border: #1f3a5f;--nav-active-border: #14a89a;--font-ui: "Manrope", "Segoe UI", system-ui, sans-serif;--font-mono: "JetBrains Mono", "Consolas", "Courier New", monospace;--font-xs: 11px;--font-sm: 13px;--font-md: 14px;--font-lg: 20px;--font-xl: 28px;--space-1: 4px;--space-2: 6px;--space-3: 8px;--space-4: 10px;--space-5: 12px;--radius-sm: 8px;--radius-md: 10px;--radius-lg: 12px}[data-theme=dark]{--bg: #111111;--card: #171717;--card-2: #1f1f1f;--surface: #111111;--surface-elev: #171717;--text: #f2f4f7;--muted: #b6c0cc;--soft: #8a98ab;--stroke: #2a2a2a;--line: #2a2a2a;--table-row: #1f1f1f;--error-bg: #5a1d20;--error-text: #ffd7d9;--error-border: #7f2d33;--header: #111111;--header-text: #f2f4f7;--header-border: #2a2a2a;--header-surface: #111111;--header-surface-border: #2a2a2a;--sidebar: #171717;--sidebar-soft: #171717;--sidebar-border: #2a2a2a;--sidebar-text: #f2f4f7;--sidebar-title: #8a98ab;--nav-active-bg: #14a89a;--nav-active-text: #f2f4f7;--nav-hover-bg: #1f3a5f;--nav-hover-text: #f2f4f7;--nav-hover-border: #1f3a5f;--nav-active-border: #14a89a}body{font-family:var(--font-ui);background:var(--bg);color:var(--text)}code,pre,.mono,.numeric,.stat-value,.kpi-value{font-family:var(--font-mono)}.recharts-cartesian-axis-line,.recharts-cartesian-axis-tick-line{stroke:var(--soft)}.recharts-cartesian-axis-tick-value{fill:var(--soft);font-family:var(--font-ui);font-size:var(--font-xs)}.status-pill,.status-chip,.lock-tag{font-family:var(--font-ui)}.content-scroll{padding:var(--space-4);gap:var(--space-3)}.card{border-radius:12px;padding:var(--space-4)}.thead,.trow{font-size:var(--font-sm);line-height:1.2}.trow{padding:6px 8px;margin:0}
