.hero-panel {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 220px;
  margin-bottom: 16px;
  padding: 29px 34px;
  overflow: hidden;
  border: 1px solid #4d4aa4;
  border-radius: 19px;
  background:
    radial-gradient(circle at 83% 43%, #a6a4ff2a 0 2px, transparent 3px),
    radial-gradient(ellipse at 82% 44%, #7773ea55 0, transparent 24rem),
    linear-gradient(112deg, #202644 0%, #292e61 56%, #4547a1 100%);
  color: #f7f7ff;
  box-shadow: 0 14px 32px #292d6815;
}
.hero-panel::after { position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, #d2d0ff65, transparent); content: ''; }
.hero-copy { position: relative; z-index: 1; max-width: 660px; }
.eyebrow, .section-kicker { display: flex; align-items: center; gap: 8px; color: #8a91a3; font: 10px var(--mono); letter-spacing: .14em; }
.hero-panel .eyebrow { color: #c0c1f3; }
.eyebrow i { width: 7px; height: 7px; border-radius: 2px; background: #7ce0d1; transform: rotate(45deg); }
.hero-copy h2 { margin: 12px 0 5px; color: #fff; font-size: clamp(33px, 3.1vw, 45px); font-weight: 700; letter-spacing: -.065em; line-height: 1.08; }
.hero-copy h2 span { color: #9de6df; }
.hero-copy p { max-width: 540px; margin: 0; color: #c8cbe7; font-size: 15px; }
.hero-meta { display: flex; align-items: center; gap: 13px; margin-top: 20px; color: #c0c5e4; font-size: 12px; }
.hero-status { display: inline-flex; align-items: center; gap: 8px; color: #f5f6ff; }
.hero-status i { width: 7px; height: 7px; border-radius: 50%; background: #75dfca; box-shadow: 0 0 0 4px #75dfca20; }
.hero-status strong { font-size: 12px; font-weight: 650; }
.hero-divider { width: 1px; height: 14px; background: #ffffff35; }
.hero-visual { position: absolute; top: 50%; right: 15%; width: 166px; height: 166px; transform: translateY(-50%); opacity: .8; }
.orbit { position: absolute; inset: 13px; border: 1px solid #d1d1ff38; border-radius: 50%; }
.orbit-one { transform: scaleY(.5) rotate(-30deg); }
.orbit-two { transform: scaleY(.72) rotate(56deg); }
.orbit-core { position: absolute; top: 50%; left: 50%; display: grid; width: 51px; height: 51px; place-items: center; border: 1px solid #d0ceff9c; border-radius: 17px; background: linear-gradient(145deg, #b9b7ff, #7772e8); color: #22244c; font: 800 19px var(--sans); box-shadow: 0 0 42px #aaa7ff70; transform: translate(-50%, -50%) rotate(45deg); }
.orbit-core span { transform: rotate(-45deg); }
.orbit-node { position: absolute; width: 8px; height: 8px; border: 1px solid #dbd9ff; border-radius: 50%; background: #6564c2; box-shadow: 0 0 12px #d1cfff9c; }
.node-a { top: 12px; left: 72px; }.node-b { right: 16px; bottom: 51px; }.node-c { left: 23px; bottom: 32px; }
.visual-label { position: absolute; right: -46px; bottom: 1px; color: #c5c5eb; font: 9px/1.65 var(--mono); letter-spacing: .12em; }
.hero-index { position: absolute; right: 22px; bottom: 18px; display: grid; gap: 2px; text-align: right; }
.hero-index span { color: #c0c0e8; font: 9px var(--mono); letter-spacing: .12em; }
.hero-index strong { color: #fff; font: 12px var(--mono); }
.hero-index i { color: #c4c4ee; font-style: normal; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 16px; }
.user-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px; }
.metric-card { min-width: 0; min-height: 151px; padding: 17px 18px 15px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow-card); }
.metric-top { display: flex; align-items: center; justify-content: space-between; }
.metric-label { color: #7a8495; font: 10px var(--mono); letter-spacing: .11em; }
.metric-icon { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid #e1e3ff; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 16px; }
.metric-value { margin-top: 12px; color: #182033; font: 750 32px/1 var(--sans); letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.metric-caption { min-height: 19px; margin-top: 7px; overflow: hidden; color: #7f8999; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.metric-track { height: 4px; margin-top: 14px; overflow: hidden; border-radius: 4px; background: #e9ebf3; }
.metric-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6c63e6, #4ebed0); transition: width .35s ease; }
.online-card { border-color: #d9e9e9; background: linear-gradient(145deg, #fff, #f7fcfd); }
.online-card .metric-value { color: #098f9e; }
.live-indicator { display: inline-flex; align-items: center; gap: 7px; color: #078b85; font: 10px var(--mono); }
.metric-foot { display: flex; align-items: center; gap: 7px; margin-top: 12px; color: #7e8999; font-size: 11px; }
.metric-foot-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.mini-state { color: #647085; font-size: 11px; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 14px; }
.panel { min-width: 0; margin-bottom: 14px; padding: 20px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow-card); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.panel-heading h3 { margin: 5px 0 2px; color: #1d2639; font-size: 17px; font-weight: 720; letter-spacing: -.025em; }
.panel-heading p { margin: 0; color: #7f8999; font-size: 12px; }
.section-kicker { font-size: 9px; }
.panel-mark { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border: 1px solid #e1e3ff; border-radius: 11px; background: var(--accent-soft); color: var(--accent); font-size: 16px; }
.text-button { flex: 0 0 auto; border: 0; background: transparent; color: var(--accent); font-size: 12px; font-weight: 700; }
.text-button:hover { color: var(--accent-strong); }
.text-button span { margin-left: 5px; }
.compact-list, .record-list { display: grid; }
.record-row { display: flex; align-items: center; gap: 11px; min-height: 65px; padding: 10px 3px; border-top: 1px solid #edf0f5; transition: background .13s ease; }
.managed-node-row { min-height: 74px; }
.record-row:first-child { border-top: 0; }
.record-row:hover { background: #f7f8fc; }
.player-avatar { display: grid; width: 43px; height: 43px; flex: 0 0 43px; overflow: hidden; place-items: center; border: 1px solid #d9ddf3; border-radius: 12px; background: linear-gradient(145deg, #d9dcff, #a7abea); color: #343768; font-size: 16px; font-weight: 800; image-rendering: pixelated; }
.player-avatar img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; image-rendering: pixelated; }
.identity { display: grid; min-width: 0; flex: 1; }
.identity strong { overflow: hidden; color: #202a3d; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.identity small { overflow: hidden; color: #8993a3; font: 10px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.record-meta { max-width: 216px; overflow: hidden; color: #748094; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.network-usage { flex: 0 0 auto; color: #566275; font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.badge { padding: 4px 8px; border: 1px solid #e1e5ed; border-radius: 99px; color: #647085; background: #f7f8fb; font: 9px var(--mono); white-space: nowrap; }
.badge.success { border-color: #d9d8ff; background: #f1f0ff; color: #5148c7; }
.badge.muted { border-color: #e7eaf0; background: #f7f8fa; color: #737e90; }
.badge.expired { border-color: #f4d4d8; background: var(--danger-soft); color: #b6364a; }
.action-button { min-width: 72px; padding: 7px 10px; border: 1px solid #f0cfd4; border-radius: 9px; background: #fff8f8; color: var(--danger); font-size: 12px; font-weight: 700; transition: .14s ease; }
.action-button:hover { border-color: #df9ca5; background: #fff0f1; }
.action-button.safe { border-color: #d9d8ff; background: #f4f3ff; color: #5148c7; }
.action-button.safe:hover { border-color: #aaa7ee; background: #ebeaff; }
.action-button:disabled { opacity: .48; cursor: wait; }
.empty-state { padding: 25px 12px; color: #8390a2; font-size: 13px; text-align: center; }
.error-state { color: var(--danger); }

.system-row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid #edf0f5; color: #667185; font-size: 12px; }
.system-row strong { color: #283348; font: 11px var(--mono); font-weight: 600; text-align: right; }
.system-row .state-good { display: inline-flex; align-items: center; gap: 7px; color: #078a81; }
.state-good i { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #19aa9c; box-shadow: 0 0 0 4px #19aa9c1a; }
.state-good .offline-dot { background: var(--danger); box-shadow: 0 0 0 4px #c93e521a; }
.control-actions { display: grid; gap: 8px; margin-top: 13px; }
.control-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.control-button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 11px; border: 1px solid var(--border-strong); border-radius: 10px; background: #fff; color: #3f4b60; font-size: 12px; font-weight: 650; text-align: left; transition: .14s ease; }
.control-button:hover { border-color: #bab8f0; background: #fafaff; }
.control-button span { color: var(--accent); }
.control-button.enabled { border-color: #cfcef9; background: #f6f5ff; color: var(--accent-strong); }
.control-button.danger { justify-content: center; border-color: #f0ced3; background: #fff7f8; color: var(--danger); }
.control-button.danger span { color: var(--danger); }
.control-button.danger:hover { border-color: #dfa0a8; background: #fff0f1; }
.control-button:disabled { opacity: .52; cursor: wait; }
.control-note { margin: 10px 0 0; color: #7e8999; font-size: 11px; }
.activity-panel { grid-column: 1 / -1; }
.audit-list { display: grid; }
.audit-row { display: flex; align-items: flex-start; gap: 11px; padding: 12px 2px; border-top: 1px solid #edf0f5; }
.audit-row:first-child { border-top: 0; }
.audit-mark { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border: 1px solid #dfdfff; border-radius: 10px; background: #f2f1ff; color: var(--accent); font: 16px var(--mono); }
.audit-mark.danger { border-color: #f1d2d6; background: #fff3f4; color: var(--danger); }
.audit-body { display: grid; min-width: 0; gap: 3px; }
.audit-body strong { color: #303b4f; font-size: 12px; font-weight: 700; }
.audit-body small, .audit-detail { color: #8490a1; font-size: 11px; }
.audit-detail { overflow-wrap: anywhere; }
.compact-audit { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 25px; }
.compact-audit .audit-row { min-width: 0; }
.compact-audit .audit-body strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 17px; margin: 7px 0 19px; }
.page-intro h2 { margin: 5px 0 2px; color: #1c2639; font-size: 28px; font-weight: 760; letter-spacing: -.045em; }
.page-intro p { margin: 0; color: #718096; font-size: 13px; }
.count { padding: 7px 10px; border: 1px solid var(--border); border-radius: 9px; background: #fff; color: #526075; font: 10px var(--mono); white-space: nowrap; box-shadow: 0 1px 2px #18203308; }
.live-count { border-color: #cfe9e5; background: #f1fbf9; color: #078b85; }
.whitelist-layout { display: grid; grid-template-columns: minmax(290px, .72fr) minmax(0, 1.5fr); align-items: start; gap: 14px; }
.user-whitelist-layout { grid-template-columns: minmax(280px, .72fr) minmax(0, 1.5fr); }
.account-layout { grid-template-columns: minmax(300px, .78fr) minmax(0, 1.4fr); }
.add-panel { padding: 21px; }
.add-panel form { display: grid; gap: 9px; }
.field-label { margin-top: 5px; color: #586579; font: 10px var(--mono); letter-spacing: .025em; }
.field-label span { color: #8993a2; font: 12px var(--sans); }
.input { min-width: 0; width: 100%; padding: 11px 12px; border: 1px solid #d9dfeb; border-radius: 9px; outline: 0; background: #fff; color: #202b40; font-size: 13px; transition: border .14s, box-shadow .14s, background .14s; }
.input:focus { border-color: #8c86ea; box-shadow: 0 0 0 4px #6157df16; }
.input::placeholder { color: #a0a8b5; }
select.input { cursor: pointer; }
.primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px; margin-top: 5px; padding: 0 16px; border: 1px solid #5850d2; border-radius: 10px; background: linear-gradient(130deg, #7169e7, #5952ce); color: #fff; font-size: 13px; font-weight: 750; box-shadow: 0 5px 12px #6157df25; transition: .14s ease; }
.primary:hover { transform: translateY(-1px); border-color: #4941b8; background: linear-gradient(130deg, #655cdb, #4e46c2); box-shadow: 0 8px 16px #6157df32; }
.primary:disabled { opacity: .55; cursor: wait; transform: none; }
.form-footnote { display: flex; align-items: flex-start; gap: 8px; margin-top: 13px; color: #7c8798; font-size: 11px; }
.form-footnote span { display: grid; width: 17px; height: 17px; flex: 0 0 17px; place-items: center; border: 1px solid #d9d8ff; border-radius: 50%; background: #f5f4ff; color: var(--accent); font: 11px var(--mono); }
.search-box { display: flex; align-items: center; gap: 8px; width: min(290px, 100%); padding: 0 10px; border: 1px solid #dfe4ed; border-radius: 9px; background: #fbfcfe; color: #8490a1; }
.search-box:focus-within { border-color: #9690ea; box-shadow: 0 0 0 3px #6157df12; }
.search-box > span { color: #8993a3; font-size: 18px; }
.search-box input { width: 100%; min-width: 0; padding: 9px 0; border: 0; outline: 0; background: transparent; color: #29354a; font-size: 12px; }
.search-box input::placeholder { color: #9aa3b1; }
.notice { display: none; grid-column: 1 / -1; padding: 10px 11px; border-radius: 9px; font-size: 12px; }
.notice.show { display: block; }
.notice.error { border: 1px solid #f1d0d5; background: #fff5f6; color: #a62f43; }
.notice.success { border: 1px solid #d9d8ff; background: #f4f3ff; color: #4e46be; }
.whitelist-list-panel .panel-heading { align-items: flex-end; }
.session-list-panel .panel-heading { margin-bottom: 5px; }
.session-list-panel .record-row { min-height: 68px; }
.logs-panel .panel-heading { align-items: flex-end; }
.logs-panel code { color: #5650cb; font: 10px var(--mono); }
.footer { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; color: #8993a3; font: 9px var(--mono); letter-spacing: .08em; }
.footer > span:first-child { color: #596477; }
.footer i { width: 4px; height: 4px; border-radius: 50%; background: #b2b9c6; }
.footer-live { margin-left: 7px; color: #168c82; }

.login { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 24px; background: #111827bc; backdrop-filter: blur(12px); }
.login.hide { display: none; }
.login-backdrop { position: absolute; inset: 0; background: radial-gradient(ellipse at 54% 25%, #8580e942, transparent 48%); pointer-events: none; }
.login-box { position: relative; width: min(450px, 100%); padding: 30px; border: 1px solid #ffffff80; border-radius: 20px; background: #fff; box-shadow: 0 28px 90px #121a2e42; }
.login-brand { padding: 0; margin-bottom: 27px; color: #202840; }
.login-brand .brand-copy small { color: #7c879a; }
.login-kicker { color: #6c68c9; font: 9px var(--mono); letter-spacing: .14em; }
.login-box h2 { margin: 7px 0 5px; color: #1c2639; font-size: 24px; letter-spacing: -.04em; }
.login-box > p { margin: 0 0 21px; color: #748095; font-size: 13px; }
.login-box label { display: block; margin: 13px 0 6px; color: #526075; font-size: 12px; font-weight: 700; }
.login-actions { display: flex; justify-content: flex-end; margin-top: 14px; }
.login-actions .primary { min-height: 43px; }
.login-actions .primary span { font-size: 16px; }
.login-footer { display: flex; align-items: center; gap: 9px; margin-top: 21px; padding-top: 14px; border-top: 1px solid #edf0f5; color: #7d899b; font: 9px var(--mono); letter-spacing: .09em; }
.login-footer .node-pulse { background: #22ad9d; box-shadow: 0 0 0 4px #22ad9d1c; }

/* Scoped user workspace and account permission editor */
#user-workspace[hidden], #user-server-board[hidden] { display: none !important; }
.user-server-board { display: grid; gap: 17px; }
.user-server-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 14px; }
.user-server-card { display: grid; gap: 13px; min-width: 0; padding: 18px; border: 1px solid #e0e5ed; border-radius: 14px; background: #fff; color: var(--text); text-align: left; box-shadow: 0 5px 20px #202a3d08; transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.user-server-card:hover { transform: translateY(-2px); border-color: #aaa5ff; box-shadow: 0 12px 28px #514bd117; }
.user-server-card:focus-visible { outline: 3px solid #8c85ff80; outline-offset: 2px; }
.user-server-card-top { display: flex; align-items: center; justify-content: space-between; }
.user-server-mark { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid #d9d7ff; border-radius: 11px; background: #f1f0ff; color: #554ec8; font: 700 15px var(--mono); }
.user-server-card > strong { overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.user-server-card > small { overflow: hidden; color: #778397; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.user-server-open { display: flex; justify-content: space-between; margin-top: 3px; padding-top: 12px; border-top: 1px solid #edf0f5; color: #544dcc; font-size: 13px; font-weight: 700; }
.user-shell .user-hero { background: radial-gradient(ellipse at 83% 44%, #6c63e644, transparent 25rem), linear-gradient(112deg, #202644, #30356e 58%, #4845a4); }
.user-sidebar .node-card { border-color: #a9a5ff33; }
.nav-item:disabled { opacity: .4; cursor: not-allowed; }
.access-empty { display: grid; width: min(760px, 100%); min-height: 300px; align-content: center; justify-items: start; gap: 10px; margin: clamp(24px, 8vh, 88px) auto; padding: clamp(22px, 4vw, 38px); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 12px; background: var(--surface); text-align: left; box-shadow: var(--shadow-card); }
.access-empty[hidden] { display: none !important; }
.access-empty-mark { display: grid; width: 62px; height: 62px; margin-bottom: 16px; place-items: center; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft); color: var(--accent); font-size: 28px; }
.access-empty h2 { margin: 2px 0; color: var(--text); font-size: 25px; font-weight: 700; }
.access-empty p { max-width: 590px; margin: 0; color: var(--muted); font-size: 14px; }
.access-next-steps { display: grid; gap: 4px; width: min(590px, 100%); margin-top: 10px; padding: 13px 15px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-soft); }
.access-next-steps strong { color: var(--text); font-size: 13px; }
.access-next-steps span { color: var(--muted); font-size: 13px; }
.endpoint-row > span:last-child { display: flex; align-items: center; gap: 8px; }
.endpoint-row code { max-width: 230px; overflow: hidden; color: #4d47bc; font: 11px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.copy-button { padding: 6px 9px; border: 1px solid #d9d8ff; border-radius: 8px; background: #f4f3ff; color: #5148c7; font-size: 11px; font-weight: 700; }
.copy-button:disabled { opacity: .5; cursor: not-allowed; }
.user-system-panel, .user-sessions-panel { align-self: start; }
.user-activity-preview { grid-column: 1 / -1; }
.access-dialog { width: min(650px, calc(100vw - 28px)); max-height: min(86vh, 760px); padding: 0; overflow: hidden; border: 1px solid #dfe3ed; border-radius: 18px; background: #fff; color: var(--text); box-shadow: 0 24px 80px #17203838; }
.password-dialog { width: min(480px, calc(100vw - 28px)); }
.password-dialog form { grid-template-rows: auto auto auto auto auto auto auto; gap: 8px; }
.password-dialog .field-label { font-size: 12px; }
.access-dialog::backdrop { background: #11182799; backdrop-filter: blur(5px); }
.access-dialog form { display: grid; max-height: inherit; grid-template-rows: auto minmax(0, 1fr) auto auto; padding: 23px; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 14px; }
.dialog-heading h2 { margin: 6px 0 2px; font-size: 22px; }
.dialog-heading p { margin: 0; color: #7b8798; font-size: 12px; }
.icon-button { width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: #667085; font-size: 22px; }
.access-node-list { display: grid; align-content: start; gap: 10px; min-height: 0; padding: 2px 3px 4px 0; overflow: auto; }
.access-node-card { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 13px; border: 1px solid var(--border); border-radius: 12px; }
.access-node-title { display: flex; align-items: center; gap: 9px; color: #253047; font-size: 13px; font-weight: 750; }
.access-node-title .badge { margin-left: auto; }
.permission-row { display: flex; align-items: center; gap: 9px; padding-left: 27px; color: #5c677b; font-size: 12px; }
.permission-row input, .access-node-title input { accent-color: var(--accent); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 12px; }
.secondary-button { min-height: 42px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 10px; background: #fff; color: #566174; font-size: 13px; }
.user-node-card .node-select { margin-top: 12px; }
.user-logout-top { display: none; }
