:root{font-family:Poppins,Segoe UI,sans-serif}*{box-sizing:border-box}body{margin:0}a{color:inherit}.app{position:relative;min-height:100vh;padding:18px;color:#e8f0ff;background:radial-gradient(1300px 900px at 14% 6%,rgba(125,211,252,.16),transparent 62%),radial-gradient(1200px 820px at 86% 18%,rgba(56,189,248,.11),transparent 66%),radial-gradient(1400px 980px at 50% 100%,rgba(37,99,235,.09),transparent 72%),linear-gradient(180deg,#0b2b4a,#08233d)}.app.mode-light{color:#10203b;background:radial-gradient(1200px 820px at 10% 2%,rgba(191,219,254,.11),transparent 58%),radial-gradient(980px 720px at 90% 92%,rgba(186,230,253,.08),transparent 66%),linear-gradient(180deg,#f6fbff,#eef5fd)}.gate-fx{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:0}.gate-grid{position:absolute;top:0;right:0;bottom:0;left:0;background-image:linear-gradient(to right,rgba(148,163,184,.06) 1px,transparent 1px),linear-gradient(to bottom,rgba(148,163,184,.06) 1px,transparent 1px);background-size:28px 28px;opacity:.35}.app.mode-light .gate-grid{opacity:.1;background-image:linear-gradient(to right,rgba(148,163,184,.04) 1px,transparent 1px),linear-gradient(to bottom,rgba(148,163,184,.04) 1px,transparent 1px)}.gate-network{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%}.app.mode-light .gate-network{opacity:.32}.site-header,.auth-shell{position:relative;z-index:2}.site-header{max-width:1320px;margin:0 auto 18px;padding:14px 16px;border-radius:18px;border:1px solid rgba(148,163,184,.25);background:#0f172a70;-webkit-backdrop-filter:blur(9px);backdrop-filter:blur(9px);display:flex;align-items:center;justify-content:space-between;gap:14px}.app.mode-light .site-header{background:#ffffffd1}.brand{display:flex;align-items:center;gap:12px}.brand-logo{width:140px;height:46px;object-fit:contain;border-radius:8px;background:#fff;padding:3px}.brand-title{font-size:22px;font-weight:800}.brand-sub{font-size:14px;opacity:.82}.actions{display:flex;align-items:center;gap:10px}.lang{-webkit-appearance:none;-moz-appearance:none;appearance:none;min-width:220px;border:1px solid rgba(148,163,184,.35);background-color:#ffffff14;color:inherit;border-radius:12px;padding:9px 34px 9px 12px;font-size:15px;background-image:linear-gradient(180deg,#ffffff0f,#ffffff08),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='rgba(255,255,255,0.85)' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:0 0,right 10px center;font-family:Poppins,Segoe UI,"Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",sans-serif}.lang option{background:#0b1530;color:#e8f0ff}.app.mode-light .lang{background-color:#fff;color:#10203b;background-image:linear-gradient(180deg,#0f172a05,#0f172a03),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='rgba(15,23,42,0.75)' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E")}.app.mode-light .lang option{background:#fff;color:#10203b}.mode-btn,.btn-secondary,.btn-primary,.btn-danger,.btn-edit{border-radius:12px;padding:10px 12px;font-size:15px;line-height:1;cursor:pointer;text-decoration:none}.mode-btn,.btn-secondary{border:1px solid rgba(148,163,184,.35);background:#ffffff1a;color:inherit}.app.mode-light .mode-btn,.app.mode-light .btn-secondary{background:#fff}.btn-primary{border:1px solid rgba(56,189,248,.55);background:linear-gradient(180deg,#22d3ee,#06b6d4);color:#04212c;font-weight:700}.btn-danger{border:1px solid rgba(239,68,68,.6);background:#ef444429;color:inherit}.btn-edit{border:1px solid rgba(245,158,11,.6);background:#f59e0b29;color:inherit}.app.mode-light .btn-primary{border-color:#dc26268c;background:linear-gradient(180deg,#f87171,#ef4444);color:#fff}.auth-shell{max-width:1320px;margin:0 auto;width:100%;min-width:0}.auth-card{width:min(840px,100%);margin:0 auto;border:1px solid rgba(148,163,184,.3);border-radius:22px;background:#0f172a80;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 20px 46px #02061759;padding:28px}.app.mode-light .auth-card{background:#ffffffeb;box-shadow:0 16px 38px #0f172a1f}.auth-card h1{margin:0 0 8px;font-size:34px}.auth-card p{margin:0 0 16px;opacity:.84}.form-grid{display:grid;gap:12px}.form-grid label{display:grid;gap:6px;font-weight:600}.form-grid input,.input{width:100%;border-radius:12px;border:1px solid rgba(148,163,184,.35);background:#ffffff1a;color:inherit;padding:11px 12px;font-size:15px}.app.mode-light .form-grid input,.app.mode-light .input{background:#fff}.pass-wrap{display:grid;grid-template-columns:1fr 44px;gap:8px}.pass-wrap input{min-width:0}.pass-eye{border-radius:12px;border:1px solid rgba(148,163,184,.35);background:#ffffff1a;color:inherit;cursor:pointer}.app.mode-light .pass-eye{background:#fff}.form-grid small{opacity:.78;font-size:13px}.form-grid button{margin-top:4px;border:1px solid rgba(56,189,248,.55);background:linear-gradient(180deg,#22d3ee,#06b6d4);color:#04212c;border-radius:12px;padding:11px 14px;font-weight:700;cursor:pointer}.app.mode-light .form-grid button{border-color:#dc26268c;background:linear-gradient(180deg,#f87171,#ef4444);color:#fff}.flash{border-radius:12px;padding:10px 12px;font-size:15px;margin-bottom:10px}.flash-error{border:1px solid rgba(239,68,68,.55);background:#ef444429}.flash-ok{border:1px solid rgba(34,197,94,.55);background:#22c55e29}.confirm-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9999}.confirm-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;background:#0206179e;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.confirm-card{position:relative;width:min(520px,calc(100% - 24px));margin:min(16vh,120px) auto 0;border:1px solid rgba(148,163,184,.35);border-radius:20px;background:linear-gradient(180deg,#0f172af0,#0f172ad6);box-shadow:0 28px 70px #02061799;padding:18px;display:grid;gap:12px}.app.mode-light .confirm-card{background:linear-gradient(180deg,#fffffffa,#f8fafcf5);box-shadow:0 22px 52px #0f172a38}.confirm-title{font-size:18px;font-weight:800}.confirm-message{font-size:14px;opacity:.9}.confirm-actions{display:flex;justify-content:flex-end;gap:8px}.foot-links{margin-top:14px;display:grid;gap:8px;font-size:14px}.foot-links a{color:#7dd3fc;text-decoration:none}.app.mode-light .foot-links a{color:#dc2626}.dashboard-card{width:min(1320px,100%);display:grid;gap:12px;min-width:0}.controls-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:6px}.controls-row>*{min-width:0}.header-actions{display:flex;gap:8px;flex-wrap:wrap}.small-label{font-size:13px;opacity:.78}.small-line{font-size:14px;opacity:.86;overflow-wrap:anywhere}.title-email{font-size:24px;font-weight:850;overflow-wrap:anywhere}.sub-card{border:1px solid rgba(148,163,184,.3);border-radius:16px;background:#ffffff0f;padding:12px;display:grid;gap:10px;min-width:0}.app.mode-light .sub-card{background:#ffffffe6}.sub-title{font-weight:850;font-size:17px}.add-row{display:grid;grid-template-columns:1.35fr 1.15fr 1fr auto;gap:10px;align-items:center}.add-device-select{width:100%;min-width:0}.dash-note{border:1px solid rgba(148,163,184,.3);background:#ffffff0f;border-radius:14px;padding:12px}.app.mode-light .dash-note{background:#ffffffe6}.device-grid,.accounts-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:12px}.device-card,.account-card,.account-device,.global-group{border:1px solid rgba(148,163,184,.3);border-radius:16px;background:#ffffff0f;padding:12px}.app.mode-light .device-card,.app.mode-light .account-card,.app.mode-light .account-device,.app.mode-light .global-group{background:#ffffffe6}.account-card,.account-device,.global-group{display:grid;gap:8px}.account-card-online{border-color:#22c55ef2;background:linear-gradient(180deg,#22c55e24,#22c55e0d),#ffffff0f;box-shadow:0 0 0 2px #22c55e6b inset,0 0 24px #22c55e4d}.app.mode-light .account-card-online{border-color:#16a34af2;background:linear-gradient(180deg,#16a34a24,#16a34a0d),#fffffff0;box-shadow:0 0 0 2px #16a34a5c inset,0 0 18px #16a34a33}.device-head,.account-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.device-head>*,.account-head>*{min-width:0}.device-name,.account-email{font-size:22px;font-weight:850;overflow-wrap:anywhere}.badge{display:inline-flex;align-items:center;border-radius:999px;padding:5px 10px;font-size:13px;border:1px solid rgba(148,163,184,.3);white-space:nowrap}.badge.ok{background:#22c55e24;border-color:#22c55e80}.badge.bad{background:#ef444424;border-color:#ef444480}.badge.warn{background:#f59e0b29;border-color:#f59e0b8c}.inline-badge{margin-left:8px}.device-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.device-actions>*{min-width:0;max-width:100%}.device-grid .device-card>.device-actions{margin-top:10px}.small-btn{padding:8px 10px;font-size:14px}.global-groups{display:grid;gap:12px}.device-top-nav{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-start;align-items:center;min-width:0;max-width:100%;padding:10px;border-radius:16px;border:1px solid rgba(148,163,184,.24);background:#ffffff0d;box-shadow:0 10px 24px #0206171f}.app.mode-light .device-top-nav{background:#ffffffe0;box-shadow:0 10px 24px #0f172a14}.device-top-nav-gap{width:12px}.nav-dashboard-btn{margin-right:8px}.device-top-nav .small-btn{white-space:nowrap}.rack-title-wrap{display:grid;gap:6px;min-width:0}.rack-title-row{display:flex;align-items:center;gap:8px;min-width:0}.rack-edit-row{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center}.settings-grid-next{display:grid;grid-template-columns:1fr 1fr;gap:12px}.settings-grid-next>*{min-width:0}.settings-grid-next .sub-card{align-content:start}.settings-grid-next .form-grid{align-content:start;grid-auto-rows:min-content}.device-controls-card{padding:10px 12px}.device-search-input{min-width:280px;flex:1}.device-main-toolbar{flex-wrap:nowrap;align-items:center}.device-main-toolbar>*{min-width:0}.device-main-toolbar .settings-select{flex:0 0 170px}.device-main-toolbar .badge{flex:0 0 auto;white-space:nowrap}.racks-grid-next{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.rack-card-next{display:grid;gap:10px}.rack-card-next.rack-card-online{border-color:#22c55eeb;box-shadow:0 0 0 2px #22c55e5c inset}.rack-card-next.rack-card-warn{border-color:#f59e0bf2;box-shadow:0 0 0 2px #f59e0b57 inset}.app.mode-light .rack-card-next.rack-card-online{border-color:#16a34af2;box-shadow:0 0 0 2px #16a34a47 inset}.app.mode-light .rack-card-next.rack-card-warn{border-color:#d97706f2;box-shadow:0 0 0 2px #d977063d inset}.rack-kv-grid-next{display:grid;grid-template-columns:1fr 1fr;gap:10px}.rack-kv-btn{border:1px solid rgba(148,163,184,.3);background:#ffffff0d;color:inherit;border-radius:14px;padding:10px;text-align:left;display:grid;gap:6px;cursor:pointer}.app.mode-light .rack-kv-btn{background:#fffffff2}.rack-kv-btn:hover{border-color:#94a3b873;background:#ffffff14}.app.mode-light .rack-kv-btn:hover{background:#fff}.rack-kv-btn .k{font-size:13px;opacity:.72;font-weight:600}.rack-kv-btn .v{font-size:15px;font-weight:800}.rack-kv-wide{grid-column:1 / -1}.rack-fuel-lines{display:grid;gap:4px}.rack-fuel-lines .line{display:flex;justify-content:space-between;gap:10px}.rack-fuel-lines .lbl{opacity:.72;font-size:13px;font-weight:700}.rack-fuel-lines .val{font-weight:800}.log-box-next{border:1px solid rgba(148,163,184,.3);border-radius:14px;background:#ffffff0d;min-height:54vh;max-height:68vh;overflow:auto;padding:10px;min-width:0}.app.mode-light .log-box-next{background:#ffffffeb}.log-line-next{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:13px;line-height:1.4;white-space:pre-wrap;word-break:break-word}.log-filter-input{margin-left:auto;max-width:360px}.history-modal-next{width:min(940px,calc(100% - 24px));margin-top:min(7vh,54px)}.history-list-next{min-height:320px;max-height:62vh}.settings-actions-center{justify-content:center}.broker-notice-next{border-color:#f59e0b8c;background:#f59e0b1f}.app.mode-light .broker-notice-next{background:#fff7edf2}.broker-title-next{color:#f59e0b;font-weight:900}.broker-text-next{color:#fbbf24;font-weight:600}.app.mode-light .broker-title-next{color:#c2410c}.app.mode-light .broker-text-next{color:#9a3412}.settings-select{appearance:auto;-webkit-appearance:menulist;-moz-appearance:auto;background-color:#ffffff14;background-image:linear-gradient(180deg,#ffffff0f,#ffffff08);background-repeat:no-repeat;background-position:0 0;padding-right:12px;font-family:Poppins,Segoe UI,"Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",sans-serif}.settings-select option{background:#0b1530;color:#e8f0ff}.app.mode-light .settings-select{background-color:#fff;background-image:linear-gradient(180deg,#0f172a05,#0f172a03)}.app.mode-light .settings-select option{background:#fff;color:#10203b}.mqtt-pass-wrap{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;min-width:0}.mqtt-pass-eye{min-width:76px;padding:10px 12px;white-space:nowrap;justify-self:stretch}.firmware-job-card{border-width:1px}.firmware-job-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.firmware-job-head>*{min-width:0}.firmware-progress{width:100%;height:12px;border-radius:999px;overflow:hidden;border:1px solid rgba(148,163,184,.28);background:#ffffff0f}.app.mode-light .firmware-progress{background:#fffffff0}.firmware-progress-bar{height:100%;border-radius:inherit;background:linear-gradient(90deg,#22d3ee,#38bdf8);box-shadow:0 0 14px #38bdf847;transition:width .25s ease}.app.mode-light .firmware-progress-bar{background:linear-gradient(90deg,#ef4444,#f97316);box-shadow:0 0 12px #ef44442e}.firmware-parts-list{display:grid;gap:8px}.debug-form{display:grid;gap:12px}.debug-dashboard-btn{border-color:#38bdf8b8;background:#22d3ee29;box-shadow:0 0 0 1px #38bdf84d inset,0 0 20px #38bdf83d;font-weight:800}.app.mode-light .debug-dashboard-btn{border-color:#dc262673;background:#fef2f2f2;color:#7f1d1d;box-shadow:0 0 0 1px #dc26262e inset}.app:not(.mode-light) .debug-clear-btn{border-color:#ef4444bf;background:#ef44443d;color:#fee2e2;box-shadow:0 0 0 1px #ef44443d inset;font-weight:800}.debug-label{display:grid;gap:6px;font-weight:700}.debug-protocol-inline{display:inline-flex;align-items:center;gap:8px;font-weight:700}.debug-protocol-caption{font-size:14px;opacity:.92;white-space:nowrap}.debug-protocol-inline .settings-select{min-width:170px;height:40px;padding-top:8px;padding-bottom:8px}.debug-ai-toggle{display:inline-flex;align-items:center;gap:10px;height:40px;padding:0 12px;border-radius:12px;border:1px solid rgba(148,163,184,.32);background:#ffffff0f;font-weight:700;cursor:pointer;-webkit-user-select:none;user-select:none;transition:border-color .2s ease,background-color .2s ease,box-shadow .2s ease}.debug-ai-toggle input{position:absolute;opacity:0;pointer-events:none}.debug-ai-switch{width:44px;height:24px;border-radius:999px;border:1px solid rgba(148,163,184,.45);background:#64748b57;display:inline-flex;align-items:center;padding:2px;transition:background-color .2s ease,border-color .2s ease,box-shadow .2s ease}.debug-ai-knob{width:18px;height:18px;border-radius:999px;background:#e2e8f0;box-shadow:0 1px 4px #02061759;transform:translate(0);transition:transform .2s ease,background-color .2s ease}.debug-ai-toggle input:checked+.debug-ai-switch{border-color:#22c55ebf;background:linear-gradient(180deg,#22c55ed9,#16a34ae0);box-shadow:0 0 0 1px #22c55e59 inset,0 0 14px #22c55e47}.debug-ai-toggle input:checked+.debug-ai-switch .debug-ai-knob{transform:translate(20px);background:#f8fafc}.debug-ai-toggle input:focus-visible+.debug-ai-switch{outline:2px solid rgba(125,211,252,.95);outline-offset:2px}.debug-ai-text{line-height:1.1;white-space:nowrap}.debug-form .btn-primary,.debug-form .debug-clear-btn{height:40px}.debug-form .badge{min-height:40px;align-items:center}.app.mode-light .debug-ai-toggle{background:#ffffffeb;border-color:#94a3b866}.app.mode-light .debug-ai-switch{background:#94a3b852;border-color:#94a3b880}.app.mode-light .debug-ai-knob{background:#fff}.app.mode-light .debug-ai-toggle input:checked+.debug-ai-switch{border-color:#dc2626bf;background:linear-gradient(180deg,#ef4444e0,#dc2626eb);box-shadow:0 0 0 1px #dc262640 inset,0 0 12px #dc262633}.app.mode-light .debug-ai-toggle input:focus-visible+.debug-ai-switch{outline-color:#dc2626a6}.debug-log-input{min-height:260px;resize:vertical;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:13px;line-height:1.45}.debug-result{display:grid;gap:10px}.debug-ai-card{display:grid;gap:8px;border-color:#7dd3fc73}.debug-ai-block{display:grid;gap:8px}.debug-sev-high{border:2px solid rgba(239,68,68,.72);background:#ffffff0f;box-shadow:0 0 0 1px #ef44442e inset,0 0 10px #ef44441f}.debug-sev-medium{border:2px solid rgba(245,158,11,.92);background:#ffffff0f;box-shadow:0 0 0 1px #f59e0b42 inset,0 0 12px #f59e0b29}.debug-sev-low{border:2px solid rgba(34,197,94,.86);background:linear-gradient(180deg,#22c55e1f,#22c55e0a),#ffffff0a;box-shadow:0 0 0 1px #22c55e42 inset,0 0 22px #22c55e2e}.app.mode-light .debug-sev-high{border-color:#dc2626ad;background:#ffffffe6;box-shadow:0 0 0 1px #dc262629 inset,0 0 8px #dc262614}.app.mode-light .debug-sev-medium{border-color:#d97706e6;background:#ffffffe6;box-shadow:0 0 0 1px #d9770638 inset,0 0 8px #d977061a}.app.mode-light .debug-sev-low{border-color:#16a34adb;background:linear-gradient(180deg,#dcfce7f2,#f0fdf4eb),#fffffff0;box-shadow:0 0 0 1px #16a34a38 inset,0 0 14px #16a34a1f}.debug-list{display:grid;gap:10px}.debug-item{border:1px solid rgba(148,163,184,.28);border-radius:12px;background:#ffffff0a;padding:10px;display:grid;gap:8px}.app.mode-light .debug-item{background:#ffffffeb}.debug-item-title{font-size:15px;font-weight:800}.debug-evidence{min-height:0;max-height:140px;padding:8px}.debug-rec-list{margin:0;padding-left:18px;display:grid;gap:4px}.debug-flow-box{min-height:260px;max-height:54vh;display:grid;gap:8px}.debug-flow-row{border:1px solid rgba(148,163,184,.24);border-radius:10px;padding:8px;background:#ffffff08;display:grid;gap:6px}.app.mode-light .debug-flow-row{background:#ffffffe0}.debug-flow-row.is-high{border-color:#ef4444b3;box-shadow:0 0 0 1px #ef444438 inset}.debug-flow-row.is-medium{border-color:#f59e0bb8;box-shadow:0 0 0 1px #f59e0b33 inset}.debug-flow-row.is-low{border-color:#22c55e9e;box-shadow:0 0 0 1px #22c55e33 inset}.debug-flow-meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.debug-flow-step{font-weight:800;opacity:.92}.debug-flow-time{opacity:.86;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:12px}.debug-flow-desc{font-weight:700;opacity:.95}.debug-flow-problem{font-size:13px;color:#fca5a5}.app.mode-light .debug-flow-problem{color:#b91c1c}.onboarding-card-next{position:relative;z-index:8;border:2px solid rgba(56,189,248,.88)!important;background:linear-gradient(180deg,#0a2038eb,#081a2ce0);box-shadow:0 0 0 2px #38bdf842,0 0 22px #38bdf86b,0 18px 44px #02061785,inset 0 0 24px #38bdf81a;animation:onboardingPulseDark 1.7s ease-in-out infinite}.app.mode-light .onboarding-card-next{border:2px solid rgba(220,38,38,.78)!important;background:linear-gradient(180deg,#fffffffa,#fff6f6f5);box-shadow:0 0 0 2px #dc26262e,0 0 22px #dc262638,0 14px 32px #7f1d1d2e,inset 0 0 20px #dc26260f;animation:onboardingPulseLight 1.7s ease-in-out infinite}.onboarding-target-soft{position:relative;z-index:6;isolation:isolate;border-color:#38bdf8f5!important;box-shadow:0 0 0 3px #38bdf8d1,0 0 0 12px #38bdf84d,0 0 52px #38bdf8ad,0 20px 52px #02061785!important;filter:saturate(1.28) brightness(1.08);animation:onboardingTargetPulseDark 1.25s ease-in-out infinite}.onboarding-screen-dim{position:fixed;top:0;right:0;bottom:0;left:0;z-index:5;pointer-events:auto;background:#030a149e;-webkit-backdrop-filter:blur(2px) saturate(.9);backdrop-filter:blur(2px) saturate(.9);animation:onboardingDimIn .16s ease-out}.app.mode-light .onboarding-screen-dim{background:#0f172a47;-webkit-backdrop-filter:blur(2px) saturate(.95);backdrop-filter:blur(2px) saturate(.95)}.onboarding-target-soft:after{content:"";position:absolute;top:-3px;right:-3px;bottom:-3px;left:-3px;border-radius:inherit;border:1px solid rgba(125,211,252,.75);box-shadow:0 0 18px #38bdf873;pointer-events:none;animation:onboardingSweep 2.3s linear infinite}.app.mode-light .onboarding-target-soft{border-color:#dc2626eb!important;box-shadow:0 0 0 3px #dc2626a3,0 0 0 11px #dc262638,0 0 42px #dc262657,0 16px 36px #7f1d1d2e!important;filter:saturate(1.2) brightness(1);animation:onboardingTargetPulseLight 1.25s ease-in-out infinite}.app.mode-light .onboarding-target-soft:after{border-color:#f87171b8;box-shadow:0 0 16px #f871714d}.onboarding-open-emphasis{border-color:#38bdf8f2!important;background:#38bdf833!important;box-shadow:0 0 0 2px #38bdf88c,0 0 22px #38bdf88f,0 10px 28px #064e3b66!important;animation:onboardingTargetPulseDark 1.15s ease-in-out infinite}.app.mode-light .onboarding-open-emphasis{border-color:#dc2626eb!important;background:#dc262629!important;box-shadow:0 0 0 2px #dc262673,0 0 16px #dc262647,0 8px 22px #7f1d1d33!important;animation:onboardingTargetPulseLight 1.15s ease-in-out infinite}body.onboarding-language-active #langPickerBtn{position:relative;z-index:9;border-color:#38bdf8f2;box-shadow:0 0 0 3px #38bdf86b,0 0 24px #38bdf88f,0 12px 26px #064e3b66;animation:onboardingTargetPulseDark 1.2s ease-in-out infinite}body.onboarding-language-active .app.mode-light #langPickerBtn{border-color:#dc2626db;box-shadow:0 0 0 3px #dc26263d,0 0 16px #dc26264d,0 8px 20px #7f1d1d33;animation:onboardingTargetPulseLight 1.2s ease-in-out infinite}body.onboarding-language-active .site-header{z-index:8!important}body.onboarding-language-active .site-header .actions{position:relative;z-index:9}@keyframes onboardingPulseDark{0%,to{box-shadow:0 0 0 2px #38bdf842,0 0 16px #38bdf857,0 18px 44px #02061785,inset 0 0 18px #38bdf814}50%{box-shadow:0 0 0 2px #38bdf857,0 0 30px #38bdf894,0 22px 50px #02061794,inset 0 0 30px #38bdf824}}@keyframes onboardingPulseLight{0%,to{box-shadow:0 0 0 2px #dc262629,0 0 14px #dc262633,0 14px 32px #7f1d1d2e,inset 0 0 16px #dc26260d}50%{box-shadow:0 0 0 2px #dc26263d,0 0 22px #dc262657,0 18px 38px #7f1d1d38,inset 0 0 24px #dc262614}}@keyframes onboardingTargetPulseDark{0%,to{box-shadow:0 0 0 3px #38bdf8b8,0 0 0 10px #38bdf83d,0 0 40px #38bdf88a,0 18px 44px #0206177a}50%{box-shadow:0 0 0 3px #38bdf8f5,0 0 0 14px #38bdf857,0 0 58px #38bdf8c7,0 24px 56px #0206178f}}@keyframes onboardingTargetPulseLight{0%,to{box-shadow:0 0 0 3px #dc262680,0 0 0 9px #dc26262e,0 0 30px #dc262642,0 12px 28px #7f1d1d29}50%{box-shadow:0 0 0 3px #dc2626c2,0 0 0 12px #dc262642,0 0 40px #dc262661,0 16px 34px #7f1d1d33}}@keyframes onboardingSweep{0%{opacity:.45;transform:scale(1)}50%{opacity:.9;transform:scale(1.007)}to{opacity:.45;transform:scale(1)}}@keyframes onboardingDimIn{0%{opacity:0}to{opacity:1}}@media (max-width: 860px){.controls-row{flex-direction:column;align-items:stretch}.add-row,.settings-grid-next{grid-template-columns:1fr}.racks-grid-next{grid-template-columns:repeat(2,minmax(0,1fr))}.device-main-toolbar{flex-wrap:wrap}.device-main-toolbar .badge{white-space:normal}}@media (max-width: 760px){.app{padding:12px}.site-header{flex-direction:column;align-items:stretch}.actions{width:100%}.lang,.mode-btn{flex:1;min-width:0}.brand-logo{width:120px}.auth-card{padding:18px;border-radius:18px}.auth-card h1{font-size:26px}.device-top-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;overflow:visible;padding:12px}.device-top-nav-gap{display:none}.device-top-nav .small-btn{width:100%;white-space:normal;text-align:center}.device-search-input{min-width:0;width:100%}.device-main-toolbar .settings-select{flex:1 1 160px}.controls-row,.device-head,.rack-title-row,.firmware-job-head{flex-direction:column;align-items:stretch}.rack-title-row .btn-edit,.firmware-job-head .badge,.device-head .badge{align-self:flex-start}.device-actions{align-items:stretch}.device-actions>.btn-primary,.device-actions>.btn-secondary,.device-actions>.btn-danger,.device-actions>.btn-edit,.device-actions>a.small-btn,.device-actions>.input{width:100%}.device-main-toolbar .badge,.settings-actions-center .badge,.settings-actions-center .small-line{width:100%}.pass-wrap,.mqtt-pass-wrap{grid-template-columns:1fr}.mqtt-pass-eye,.pass-eye{width:100%}.racks-grid-next,.rack-kv-grid-next{grid-template-columns:1fr}.rack-kv-wide{grid-column:auto}.log-filter-input{margin-left:0;max-width:none;width:100%}.log-box-next{min-height:42vh;max-height:56vh}}@media (max-width: 520px){.app{padding:10px}.auth-card{padding:14px;border-radius:16px}.title-email,.device-name,.account-email{font-size:20px}.sub-title{font-size:16px}.device-top-nav{grid-template-columns:1fr}.small-btn,.mode-btn,.btn-secondary,.btn-primary,.btn-danger,.btn-edit{white-space:normal;text-align:center}}
