:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#142442;background:#f4f7fc;font-synthesis:none;--blue:#2558ff;--muted:#6e7e99;--line:#dce4ef}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:6px;padding:10px 16px;background:#fff;color:inherit;transition:background .15s}button:disabled{cursor:wait;opacity:.55}button:hover{background:#eef3ff}.primary{background:var(--blue);color:#fff}.primary:hover{background:#1746dd}.outline{border-color:#b9caf2;color:var(--blue);background:#fff}.full{width:100%}.icon{width:21px;height:21px;flex-shrink:0;display:inline-block;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}h1,h2,h3,p{margin-top:0}h1{font-size:30px;letter-spacing:-.6px;margin-bottom:6px}h2{font-size:20px;margin-bottom:8px;letter-spacing:-.3px}h3{font-size:16px;margin-top:24px}p{line-height:1.7}.muted,small,.hint{color:var(--muted)}small{font-size:12px}.hint{font-size:13px;line-height:1.65}.text-btn{color:var(--blue);padding:4px 0;background:transparent;border:0;text-align:left}.text-btn:hover{background:transparent;text-decoration:underline}.error{color:#ba3030;font-size:14px;min-height:20px;margin-top:12px}.brand-mark{width:48px;height:48px;border-radius:6px;background:var(--blue);color:white;display:grid;place-items:center;margin-bottom:14px}.brand-mark .icon{width:32px;height:32px}aside{width:218px;background:white;border-right:1px solid var(--line);position:fixed;inset:0 auto 0 0;padding:25px 14px;display:flex;flex-direction:column}.brand{padding:0 10px 30px}.brand strong{display:block;font-size:21px;letter-spacing:-.6px}.brand small{display:block;font-size:14px;margin-top:6px}nav{display:flex;flex-direction:column;gap:6px}nav button{justify-content:flex-start;gap:17px;font-size:15px;padding:13px 16px}nav button.active{background:#eaf1ff;color:var(--blue);font-weight:600}.sidebar-bottom{margin-top:auto;padding:20px 10px 0;display:grid;gap:10px}.sidebar-bottom small{margin-top:12px}main{margin-left:218px;padding:26px 28px 18px;max-width:1920px}header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}header p{font-size:15px;color:var(--muted);margin-bottom:0}.notice{border:1px solid #efce92;background:#fff9ec;border-radius:6px;padding:13px 17px;font-size:14px;display:flex;align-items:center;gap:12px;margin-bottom:20px;line-height:1.6}.notice.ok{border-color:#b9decf;background:#f0faf5;color:#246249}.notice.danger{border-color:#f0bebe;background:#fff3f3;color:#a62e2e}.notice .text-btn{margin-left:8px;flex-shrink:0}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:18px}.stats article{background:white;border:1px solid var(--line);border-radius:6px;padding:22px 18px;display:flex;align-items:center;gap:18px;min-height:102px}.stat-icon{background:#f0f4fb;border-radius:50%;width:52px;height:52px;display:grid;place-items:center;flex-shrink:0}.stat-icon .icon{width:27px;height:27px}.stats article div>span{font-size:14px}.stats strong{display:block;font-size:26px;line-height:1.4;margin-top:4px;font-variant-numeric:tabular-nums}.panel{background:white;border:1px solid var(--line);border-radius:7px;padding:22px 24px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.panel-heading p{font-size:14px;color:var(--muted);margin-bottom:0}.filters{display:flex;gap:12px}.filters input{width:250px}.filters select{width:170px}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}th{background:#f1f5fa;padding:14px 16px;font-weight:600;white-space:nowrap}td{padding:16px;border-bottom:1px solid #edf1f6;vertical-align:middle}tr:last-child td{border-bottom:0}td strong{font-weight:600}td small{display:block;margin-top:5px}.empty{text-align:center;padding:50px 15px 34px;color:var(--muted)}.empty>.icon{width:60px;height:60px;color:#8a9bb7;margin-bottom:10px}.empty p{margin:4px 0 18px}.empty.compact{padding:28px 12px}.instance-panel{min-height:330px}.lower-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:18px}.rule{display:grid;grid-template-columns:30px 130px 1fr;gap:12px;align-items:center;border-top:1px solid #e8edf5;min-height:65px;font-size:14px}.rule strong,.rule small{display:block}.rule strong{font-size:16px}.rule p{font-size:13px;color:var(--muted);margin:0}.health{display:grid;grid-template-columns:130px 1fr;font-size:14px;gap:20px 14px;margin:25px 0 0}.health dt{display:flex;align-items:center;gap:12px}.health dd{margin:0;line-height:1.5}.health dd .text-btn{font-size:14px}.group-panel{margin-top:18px}.group-panel>p{font-size:13px;max-width:900px}footer{border-top:1px solid var(--line);display:flex;gap:10px;color:var(--muted);font-size:12px;line-height:1.6;margin-top:18px;padding-top:13px}.settings-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:20px}.settings-grid .panel>p{font-size:14px}label{display:block;font-size:14px;margin:18px 0 0;font-weight:500}label small{font-weight:400;margin-left:6px}input,textarea,select{border:1px solid #d3deed;background:white;color:#213451;border-radius:5px;padding:11px 12px;max-width:100%}label input,label textarea{display:block;width:100%;margin-top:8px}textarea{resize:vertical;line-height:1.6}input::placeholder,textarea::placeholder{color:#8b98ac}input:focus,textarea:focus,select:focus{outline:2px solid #c9d8ff;border-color:#6c91ff}.connection-summary{border:1px solid var(--line);background:#f7f9fc;padding:12px;border-radius:5px;font-size:13px}.form-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}.steps{padding-left:24px;margin-top:26px}.steps li{padding:0 0 22px 8px}.steps strong{font-size:15px}.steps p{font-size:14px;color:var(--muted);margin:7px 0 0}.callout{background:#fff9ec;border-left:3px solid #e9bd68;padding:14px;font-size:13px;line-height:1.8}.link-button{display:inline-flex;text-decoration:none;padding:10px 14px;border:1px solid #b9caf2;border-radius:5px;font-size:14px}.login-view{min-height:100vh;display:grid;place-items:center;padding:28px}.login-card{background:white;border:1px solid var(--line);border-radius:12px;padding:36px 38px;width:440px;max-width:100%;box-shadow:0 16px 50px #18305608}.login-card h1{font-size:28px}.login-card>.muted{font-size:13px}.login-card .primary{margin-top:26px;padding:12px}.login-note{margin:16px 0 0;padding-top:20px;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}.login-card .brand-mark{margin-bottom:24px}.pill{display:inline-block;font-size:12px;border-radius:4px;background:#eef2f7;color:#596c86;padding:4px 7px;white-space:nowrap}.pill.green{background:#eaf7f0;color:#287452}.pill.amber{background:#fff3d9;color:#9f6b0d}.pill.red{background:#ffebeb;color:#b13b3b}.progress{height:6px;border-radius:10px;background:#eaf0f8;width:150px;max-width:100%;overflow:hidden;margin:7px 0}.progress span{display:block;background:var(--blue);height:100%}.progress.warn span{background:#e7a52c}.progress.critical span{background:#d65555}.instance-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:7px}.instance-actions button{font-size:12px;padding:5px 8px;border:1px solid var(--line)}.instance-actions button.stop{color:#b33b3b}.log-message{word-break:break-word}.threshold{width:66px;padding:6px}.protection-controls{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.protection-controls input[type=checkbox]{width:17px;height:17px;accent-color:var(--blue)}.protection-controls button{font-size:12px;padding:5px 8px;border:1px solid var(--line)}dialog{border:1px solid var(--line);border-radius:10px;padding:26px;max-width:440px;width:calc(100% - 32px);color:inherit}dialog::backdrop{background:#0c1c3c55}.dialog-heading{display:flex;justify-content:space-between;align-items:center}.dialog-heading h2{margin:0}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#172844;color:white;border-radius:7px;padding:14px 20px;box-shadow:0 6px 25px #162d4925;z-index:5;max-width:90%;font-size:14px}[hidden]{display:none!important}
@media(min-width:1500px){main{padding:32px 36px}.stats article{min-height:110px}.instance-panel{min-height:380px}.empty{padding:64px 15px 44px}}
@media(max-width:1150px){aside{width:190px}.brand strong{font-size:18px}main{margin-left:190px;padding:24px 20px}.stats{gap:10px}.stats article{padding:17px 12px;gap:10px}.stat-icon{width:40px;height:40px}.stats strong{font-size:23px}.panel{padding:20px}.filters input{width:190px}.filters select{width:145px}.rule{grid-template-columns:25px 110px 1fr;font-size:13px}.health{grid-template-columns:105px 1fr;font-size:13px;gap:18px 8px}.settings-grid{grid-template-columns:1fr 1fr}}
@media(max-width:850px){aside{position:static;width:auto;padding:16px 18px;border-right:0;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;padding:0 0 14px}.brand-mark{width:34px;height:34px;margin:0}.brand-mark .icon{width:24px;height:24px}.brand strong{font-size:19px}.brand small{display:none}nav{flex-direction:row;gap:6px}nav button{flex:1;gap:7px;padding:10px 5px;font-size:13px}nav .icon{width:17px;height:17px}.sidebar-bottom{position:absolute;right:18px;top:19px;padding:0;display:flex;gap:12px;font-size:12px}.sidebar-bottom small{display:none}main{margin:0;padding:22px 18px}h1{font-size:26px}.lower-grid{grid-template-columns:1fr}.settings-grid{grid-template-columns:1fr}.panel-heading{align-items:flex-start;flex-wrap:wrap}.filters{width:100%}.filters input{flex:1;width:100px}.filters select{width:150px}.stats{grid-template-columns:repeat(2,1fr)}.rule{grid-template-columns:28px 125px 1fr}.health{grid-template-columns:120px 1fr;font-size:14px}.notice{align-items:flex-start;font-size:13px;flex-wrap:wrap;gap:6px}.notice .icon{width:17px}.notice .text-btn{padding:0}.stats article{padding:17px}.stats strong{font-size:25px}.panel{padding:18px}.instance-panel{min-height:300px}header{gap:12px}header p{font-size:13px}header>.outline{padding:9px 11px;font-size:12px;white-space:nowrap}header>.outline .icon{width:16px}.login-card{padding:28px}.login-card .brand-mark{width:48px;height:48px}.login-card .brand-mark .icon{width:32px;height:32px}.login-view{padding:20px}.rule p{font-size:12px}footer{font-size:11px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

@media(max-width:850px){nav button{white-space:nowrap;font-size:12px;gap:5px;padding:10px 4px;min-height:44px}}

.notify-toggle{display:flex;align-items:center;gap:8px;font-size:14px;white-space:nowrap}.notify-toggle input{width:18px;height:18px;margin:0}.notify-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.notify-save{display:flex;gap:18px;align-items:center;flex-wrap:wrap;margin:20px 0}.notify-save span{font-size:13px;color:var(--muted)}

.restart-panel{margin-bottom:24px}.restart-panel .form-actions{align-items:center}.restart-panel .table-scroll{margin:16px 0}

/* Strong semantic status colors in both palettes. */
.pill.green{background:#08783f;color:#fff;font-weight:700;border:1px solid #056131}.pill.red{background:#c72838;color:#fff;font-weight:700;border:1px solid #a21b28}
:root[data-theme="focus"]{color-scheme:dark;background:#000;color:#87cefa;--blue:#87cefa;--muted:#7bb9df;--line:#254054}
[data-theme="focus"] body,[data-theme="focus"] aside,[data-theme="focus"] .panel,[data-theme="focus"] .stats article,[data-theme="focus"] .login-card,[data-theme="focus"] dialog{background:#000;color:#87cefa}
[data-theme="focus"] button,[data-theme="focus"] input,[data-theme="focus"] textarea,[data-theme="focus"] select,[data-theme="focus"] .link-button{background:#000;color:#87cefa;border-color:#35566c}
[data-theme="focus"] button:hover,[data-theme="focus"] nav button.active,[data-theme="focus"] th,[data-theme="focus"] .stat-icon,[data-theme="focus"] .connection-summary{background:#0b1c28;color:#87cefa}
[data-theme="focus"] .primary,[data-theme="focus"] .brand-mark{background:#87cefa;color:#00111c}
[data-theme="focus"] .primary:hover{background:#b7e4ff}
[data-theme="focus"] td,[data-theme="focus"] .rule{border-color:#254054}
[data-theme="focus"] .notice,[data-theme="focus"] .callout{background:#000;color:#87cefa;border-color:#6b5935}
[data-theme="focus"] .notice.ok{border-color:#36c97c}[data-theme="focus"] .notice.danger{border-color:#ff6775;color:#ff8792}
[data-theme="focus"] a{color:#87cefa}[data-theme="focus"] .error,[data-theme="focus"] .instance-actions button.stop{color:#ff8792}
[data-theme="focus"] .pill{background:#152c3b;color:#87cefa}[data-theme="focus"] .pill.green{background:#08783f;color:#fff;border-color:#3de694}[data-theme="focus"] .pill.red{background:#c72838;color:#fff;border-color:#ff7c88}[data-theme="focus"] .pill.amber{background:#3a2900;color:#ffd57a}
[data-theme="focus"] .progress{background:#172b39}[data-theme="focus"] input::placeholder,[data-theme="focus"] textarea::placeholder{color:#79a5c1}
[data-theme="focus"] #toast{background:#0b1c28;color:#87cefa;border:1px solid #35566c}[data-theme="focus"] :focus-visible{outline:2px solid #87cefa}
@media(max-width:850px){.sidebar-bottom{position:static;display:flex;flex-wrap:wrap;padding:12px 0 0;gap:18px}.sidebar-bottom .text-btn{min-height:32px}}

/* Atmospheric effects: compositor-only motion, no pointer interception. */
body{isolation:isolate;min-height:100vh}body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background-image:linear-gradient(#258fff09 1px,transparent 1px),linear-gradient(90deg,#258fff09 1px,transparent 1px);background-size:42px 42px;mask-image:linear-gradient(#000,transparent 90%)}
body::after{content:"";position:fixed;width:55vw;height:55vw;right:-16vw;top:-24vw;border-radius:50%;background:radial-gradient(circle,#2b8cff19,transparent 65%);z-index:-1;pointer-events:none;animation:ambient-drift 18s ease-in-out infinite alternate}
.panel,.stats article,.login-card{box-shadow:0 4px 24px #123b7106;position:relative}.panel::before{content:"";position:absolute;left:20px;right:20px;top:-1px;height:1px;background:linear-gradient(90deg,transparent,#3fafff80,transparent);pointer-events:none}
.brand-mark{box-shadow:0 0 22px #258fff24}.brand-mark .icon{animation:signal-breathe 5s ease-in-out infinite}nav button{transition:background .2s,box-shadow .2s}nav button.active{box-shadow:inset 3px 0 var(--blue)}
#page-overview:not([hidden]),#page-instances:not([hidden]),#page-settings:not([hidden]),#page-notifications:not([hidden]),#page-logs:not([hidden]){animation:panel-arrive .35s ease-out both}
.progress span{position:relative;overflow:hidden}.progress span::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,#ffffff70,transparent);transform:translateX(-110%);animation:data-flow 4s ease-in-out infinite}
.pill.green::before,.pill.red::before{content:"";display:inline-block;width:5px;height:5px;border-radius:50%;margin-right:5px;background:currentColor;vertical-align:2px}
[data-theme="focus"] body::before{background-image:linear-gradient(#54bbff0b 1px,transparent 1px),linear-gradient(90deg,#54bbff0b 1px,transparent 1px)}[data-theme="focus"] body::after{background:radial-gradient(circle,#008bda20,transparent 65%)}
[data-theme="focus"] .panel,[data-theme="focus"] .stats article{box-shadow:0 0 24px #20aeff08}[data-theme="focus"] nav button.active{box-shadow:inset 3px 0 #87cefa,0 0 18px #1baaff12}
@keyframes ambient-drift{to{transform:translate(-10vw,20vh)}}@keyframes signal-breathe{50%{opacity:.65;transform:translateY(-2px)}}@keyframes panel-arrive{from{opacity:.6;transform:translateY(7px)}to{opacity:1;transform:none}}@keyframes data-flow{60%,100%{transform:translateX(110%)}}
@media(max-width:850px){
 aside{padding:16px 14px 12px}.brand{padding-bottom:12px}.sidebar-bottom{gap:12px;justify-content:space-between}nav{gap:4px}nav button{min-height:48px;flex-direction:column;gap:5px;font-size:11px}nav button.active{box-shadow:inset 0 -2px var(--blue)}[data-theme="focus"] nav button.active{box-shadow:inset 0 -2px #87cefa}
 main{padding:20px 12px}header{align-items:flex-start}h1{font-size:25px}header p{line-height:1.6;font-size:12px}header>.outline{min-height:44px}.panel{padding:16px}.panel-heading{gap:12px}h2{font-size:18px}.stats{gap:9px}.stats article{padding:14px 10px;gap:9px;min-width:0}.stat-icon{width:32px;height:32px}.stat-icon .icon{width:20px;height:20px}.stats strong{font-size:23px}.stats article div>span{font-size:12px}
 .filters{flex-wrap:wrap;gap:8px}.filters input,.filters select{width:100%;flex:auto;min-height:44px}.notify-fields{grid-template-columns:1fr;gap:0}input,textarea,select{font-size:16px}.form-actions{gap:10px}.form-actions button{min-height:44px}.notify-save button{min-height:44px}.notify-toggle{white-space:normal;line-height:1.5}.restart-panel .form-actions{align-items:flex-start;flex-direction:column}.restart-panel .hint{overflow-wrap:anywhere}
 .table-scroll{overflow:visible}table,tbody,tr,td{display:block;width:100%}thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}tbody{display:grid;gap:12px}tbody tr{border:1px solid var(--line);border-radius:8px;padding:4px 12px;background:#f8faff}td{border:0;padding:10px 0;overflow-wrap:anywhere;min-width:0}td+td{border-top:1px solid var(--line)}td::before{content:attr(data-label);display:block;font-size:11px;color:var(--muted);font-weight:600;letter-spacing:.5px;margin-bottom:6px}td strong{font-size:15px}.progress{width:100%;height:7px}.pill{font-size:13px;padding:5px 9px}.protection-controls{gap:10px}.protection-controls input[type=checkbox]{width:22px;height:22px;margin:10px 0}.threshold{min-height:44px;width:78px}.protection-controls button,.instance-actions button,[data-cancel-restart]{min-height:44px;min-width:72px;font-size:14px}.instance-actions button{width:100%}.health{grid-template-columns:100px 1fr;gap:18px 10px;font-size:13px}.rule{grid-template-columns:24px 95px 1fr;gap:8px}.rule strong{font-size:15px}.rule p{overflow-wrap:anywhere}footer{flex-wrap:wrap}.login-view{padding:14px}.login-card{padding:26px 22px}dialog{max-height:90dvh;overflow:auto;padding:20px}
 [data-theme="focus"] tbody tr{background:#030c12}.settings-grid,.lower-grid{min-width:0}.panel,.settings-grid>*{min-width:0}.link-button{overflow-wrap:anywhere;max-width:100%}body::after{width:100vw;height:100vw;animation:none}.brand-mark .icon{animation:none}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Stronger desktop effects remain behind text and never capture clicks. */
.tech-particles{position:fixed;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none}
@media(min-width:851px) and (prefers-reduced-motion:no-preference){
 .panel,.stats article,.login-card{border-color:#68a9df85;animation:edge-breathe 5s ease-in-out infinite}
 .stats article:nth-child(2n){animation-delay:-2.5s}
 .panel::before{left:12px;right:12px;height:2px;background:linear-gradient(90deg,transparent 0%,#30aaff20 25%,#73d9ff 50%,#30aaff20 75%,transparent 100%);background-size:200% 100%;animation:edge-scan 5s linear infinite;box-shadow:0 0 8px #4bc5ff60}
 [data-theme="focus"] .panel,[data-theme="focus"] .stats article,[data-theme="focus"] .login-card{border-color:#3ca6d899;animation-name:edge-breathe-dark}
 [data-theme="focus"] .panel::before{background-image:linear-gradient(90deg,transparent,#18baff45,#a0e7ff,#18baff45,transparent)}
}
@keyframes edge-scan{from{background-position:200% 0}to{background-position:0 0}}
@keyframes edge-breathe{0%,100%{box-shadow:0 0 10px #258fff12,0 4px 20px #123b7106}50%{box-shadow:0 0 19px #258fff30,0 4px 20px #123b7110}}
@keyframes edge-breathe-dark{0%,100%{box-shadow:0 0 10px #20aeff18}50%{box-shadow:0 0 22px #20aeff3c}}
.effects-paused *,.effects-paused *::before,.effects-paused *::after{animation-play-state:paused!important}
@media(max-width:850px),(prefers-reduced-motion:reduce){.tech-particles{display:none}}
