/* Nord Server Tags: fully scoped, theme-aware workspace */
#page-server-tags{min-width:0}
.nst-panel{--nst-base:var(--surface,#141c28);--nst-raised:var(--surface-2,#1b2533);--nst-hover:var(--surface-3,#222c3b);--nst-stroke:var(--border,#323e4e);--nst-ink:var(--text,#eef3ff);--nst-muted:var(--muted,#93a3ba);--nst-accent:var(--accent,#6366f1);display:flex;flex-direction:column;gap:18px;width:100%;max-width:100%;padding:12px 0 32px;color:var(--nst-ink);box-sizing:border-box}
.nst-panel *, .nst-panel *::before,.nst-panel *::after{box-sizing:border-box}
.nst-header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:12px 2px 8px}
.nst-header-main{min-width:0}.nst-kicker{display:inline-flex;align-items:center;text-transform:uppercase;letter-spacing:.12em;font-size:10px;font-weight:800;color:var(--nst-accent);margin-bottom:9px}
.nst-header h1{margin:0 0 7px;font-size:clamp(24px,2.6vw,30px);font-weight:800;letter-spacing:-.025em;color:var(--nst-ink)}
.nst-header p{margin:0;color:var(--nst-muted);font-size:13px;line-height:1.5}
.nst-refresh,.nst-save,.nst-range{font:inherit;cursor:pointer;display:inline-flex;justify-content:center;align-items:center;gap:8px;white-space:nowrap;border-radius:11px;transition:background .15s,border-color .15s,transform .15s}
.nst-refresh{padding:11px 15px;border:1px solid var(--nst-stroke);background:var(--nst-base);color:var(--nst-ink);font-size:12px;font-weight:650}
.nst-refresh:hover,.nst-range:hover{background:var(--nst-hover)}
.nst-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.nst-metric,.nst-settings,.nst-graph,.nst-members{background:var(--nst-base);border:1px solid var(--nst-stroke);border-radius:18px;min-width:0}
.nst-metric{padding:20px;min-height:120px;display:flex;flex-direction:column;justify-content:space-between;gap:22px}
.nst-metric-head{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px;color:var(--nst-muted);font-weight:600}
.nst-metric-head i{font-size:16px;color:var(--nst-accent);opacity:.85}
.nst-metric strong{font-size:clamp(20px,2.5vw,32px);letter-spacing:-.025em;line-height:1.1;font-weight:800;font-variant-numeric:tabular-nums;color:var(--nst-ink)}
.nst-metric #nstStatus{font-size:clamp(13px,1.6vw,18px);line-height:1.3}
.nst-metric #nstStatus.nst-online{color:var(--success,#2fbd86)}
.nst-settings,.nst-graph,.nst-members{padding:22px}
.nst-section-heading{display:flex;align-items:center;gap:11px;margin-bottom:18px}
.nst-section-heading i{color:var(--nst-accent)}.nst-section-heading h2,.nst-section-title h2{margin:0;color:var(--nst-ink);font-size:17px;letter-spacing:-.01em;font-weight:780}
.nst-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.nst-setting-block{padding:20px;border:1px solid var(--nst-stroke);border-radius:14px;background:var(--nst-raised);min-width:0;display:flex;justify-content:space-between;align-items:center;gap:16px}
.nst-setting-copy{flex:1;min-width:0}.nst-setting-copy strong{display:block;color:var(--nst-ink);font-size:13px;font-weight:750}.nst-setting-copy p{margin:6px 0 0;color:var(--nst-muted);font-size:12px;line-height:1.55}
.nst-reward-block{display:grid;grid-template-columns:1fr;align-items:initial;gap:15px}
.nst-rolelabel{display:flex;flex-direction:column;gap:8px;min-width:0}.nst-rolelabel>span{font-size:12px;font-weight:700;color:var(--nst-muted)}
.nst-rolelabel select{height:42px;width:100%;min-width:0;border:1px solid var(--nst-stroke);border-radius:10px;background:var(--nst-base);color:var(--nst-ink);font:inherit;font-size:13px;padding:0 12px;outline-offset:2px}
.nst-rolelabel select:disabled{opacity:.6;cursor:not-allowed}.nst-field-hint{font-size:11px;color:var(--nst-muted);line-height:1.5}
.nst-toggle-control{position:relative;display:inline-flex;align-items:center;flex:0 0 49px;width:49px;height:29px;cursor:pointer}
.nst-toggle-control input{position:absolute;inset:0;z-index:1;width:100%;height:100%;opacity:0;cursor:pointer;margin:0}
.nst-toggle-track{display:block;position:relative;width:49px;height:29px;border-radius:999px;background:var(--border-strong,var(--nst-stroke));border:1px solid var(--nst-stroke);transition:background .2s ease,border-color .2s ease}
.nst-toggle-track:after{content:"";position:absolute;top:2px;left:2px;width:23px;height:23px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.18);transition:transform .2s ease}
.nst-toggle-control input:checked+.nst-toggle-track{background:var(--nst-accent);border-color:var(--nst-accent)}
.nst-toggle-control input:checked+.nst-toggle-track:after{transform:translateX(20px)}
.nst-toggle-control input:focus-visible+.nst-toggle-track{outline:2px solid var(--nst-accent);outline-offset:3px}
.nst-toggle-control input:disabled+.nst-toggle-track{opacity:.5}
.nst-settings-footer{display:flex;justify-content:flex-end;align-items:center;gap:15px;margin-top:18px;min-height:42px}
.nst-dirty{font-size:12px;color:var(--nst-muted)}.nst-save{padding:11px 18px;color:#fff;border:1px solid var(--nst-accent);background:var(--nst-accent);font-weight:750;font-size:13px}
.nst-save:hover:not(:disabled){filter:brightness(1.06)}.nst-save:disabled{opacity:.52;cursor:not-allowed}
.nst-section-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:20px}
.nst-section-title{display:grid;gap:6px}.nst-section-title p{font-size:12px;line-height:1.5;color:var(--nst-muted);margin:0}
.nst-ranges{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.nst-range{min-width:43px;padding:9px 11px;color:var(--nst-muted);background:var(--nst-raised);border:1px solid var(--nst-stroke);font-size:12px;font-weight:650}
.nst-range.active{background:var(--nst-accent);border-color:var(--nst-accent);color:#fff}
.nst-chart-shell{width:100%;min-width:0;overflow:hidden}
.nst-chart-shell svg{display:block;width:100%;height:245px;overflow:visible;color:var(--nst-muted)}
.nst-grid-line{stroke:var(--nst-stroke);stroke-width:1;opacity:.9}
.nst-axis-label{fill:var(--nst-muted);font-size:13px}
.nst-line{stroke:var(--nst-accent);stroke-width:3.2;fill:none;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.nst-dot{fill:var(--nst-accent)}
.nst-message{margin:9px 0;color:var(--nst-muted);font-size:12px;line-height:1.5}
.nst-sampled{margin-top:12px;padding-top:13px;border-top:1px solid var(--nst-stroke);color:var(--nst-muted);font-size:11px}
.nst-members .nst-section-title{margin-bottom:16px}
.nst-userlist{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:9px}
.nst-user{display:flex;gap:11px;align-items:center;min-width:0;border:1px solid var(--nst-stroke);background:var(--nst-raised);padding:10px;border-radius:12px}
.nst-user img{height:36px;width:36px;flex:0 0 36px;object-fit:cover;border-radius:50%}
.nst-user-details{min-width:0;flex:1;display:grid;gap:3px}
.nst-user-details strong{font-size:12px;color:var(--nst-ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nst-user-details small{font-size:10px;color:var(--nst-muted);overflow:hidden;text-overflow:ellipsis}
.nst-tag-label{display:inline-flex;border-radius:8px;background:var(--nst-hover);border:1px solid var(--nst-stroke);padding:5px 8px;font-size:11px;font-weight:800;color:var(--nst-accent)}
.nst-refresh:focus-visible,.nst-save:focus-visible,.nst-range:focus-visible,.nst-rolelabel select:focus-visible{outline:2px solid var(--nst-accent);outline-offset:2px}
@media(max-width:1020px){.nst-settings-grid{grid-template-columns:1fr}.nst-setting-block{min-height:110px}}
@media(max-width:680px){.nst-header{align-items:flex-start;flex-direction:column}.nst-metrics{grid-template-columns:1fr}.nst-metric{min-height:95px;gap:12px}.nst-panel{padding:5px 0 25px}.nst-settings,.nst-graph,.nst-members{padding:16px}.nst-section-bar{align-items:flex-start}.nst-chart-shell svg{height:205px}.nst-userlist{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.nst-panel *{transition:none!important;animation:none!important}}

/* Dedicated modals: keep the main page focused on live statistics. */
.nst-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}
.nst-header-actions .nst-save{min-height:42px}
.nst-metric-clickable{cursor:pointer;transition:border-color .15s ease,background .15s ease}
.nst-metric-clickable:hover{border-color:var(--nst-accent);background:var(--nst-raised)}
.nst-metric-clickable:focus-visible{outline:2px solid var(--nst-accent);outline-offset:2px}
.nst-modal-open{overflow:hidden}
.nst-modal-backdrop{position:fixed;inset:0;z-index:2147481000;display:flex;justify-content:center;align-items:center;padding:22px;background:rgba(3,8,18,.75)}
.nst-modal-backdrop[hidden]{display:none!important}
.nst-modal-window{display:flex;flex-direction:column;gap:0;width:min(810px,100%);max-height:min(88dvh,850px);overflow:hidden;border:1px solid var(--nst-stroke);background:var(--nst-base);border-radius:20px;color:var(--nst-ink);box-shadow:0 25px 95px rgba(0,0,0,.3)}
#nstMembersModal .nst-modal-window{width:min(900px,100%)}
.nst-modal-head{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--nst-stroke);gap:12px;flex:0 0 auto}
.nst-modal-head h2{font-size:19px;font-weight:800;letter-spacing:-.015em;color:var(--nst-ink);margin:0}
.nst-modal-close{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;border:1px solid var(--nst-stroke);background:var(--nst-raised);color:var(--nst-muted);cursor:pointer}
.nst-modal-close:hover{color:var(--nst-ink);background:var(--nst-hover)}
.nst-modal-close:focus-visible{outline:2px solid var(--nst-accent);outline-offset:2px}
.nst-modal-window>.nst-settings,.nst-modal-window>.nst-members{border:0;border-radius:0;background:transparent;overflow-y:auto;max-height:calc(88dvh - 78px);overscroll-behavior:contain;scrollbar-width:thin;min-height:0}
.nst-modal-window>.nst-settings{padding:22px 24px 24px}
.nst-modal-window>.nst-members{padding:22px 24px}
.nst-modal-window .nst-settings-grid{grid-template-columns:1fr;gap:12px}
.nst-modal-window .nst-setting-block{min-height:0}
.nst-modal-window .nst-settings-footer{position:sticky;bottom:-24px;padding:14px 0 0;background:var(--nst-base);border-top:1px solid var(--nst-stroke)}
.nst-modal-window .nst-userlist{grid-template-columns:repeat(auto-fill,minmax(255px,1fr))}
@media(max-width:680px){.nst-header-actions{width:100%;justify-content:flex-start}.nst-header-actions button{flex:1 1 auto}.nst-modal-backdrop{padding:10px;align-items:center}.nst-modal-window{max-height:92dvh}.nst-modal-head{padding:15px 16px}.nst-modal-window>.nst-settings,.nst-modal-window>.nst-members{padding:16px;max-height:calc(92dvh - 65px)}.nst-modal-window .nst-settings-footer{bottom:-16px}}
