:root {
  color-scheme: dark;
  --bg: #0d0d11;
  --surface: #16161c;
  --surface-raised: #1c1c24;
  --border: #ffffff10;
  --border-strong: #ffffff20;
  --text: #f6f3f6;
  --muted: #a6a2ad;
  --subtle: #787581;
  --red: #b960ff;
  --red-strong: #9430e3;
  --green: #4ed6a0;
  --amber: #f5bd69;
  --blue: #80acff;
  --radius: 18px;
  --shadow: 0 18px 56px #0005;
  font: 14px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scrollbar-color: #6b3198 #101014;
  scrollbar-width: thin;
}
*, *::before, *::after { box-sizing: border-box; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-track { background: #101014; }
*::-webkit-scrollbar-thumb { background: #6b3198; border: 2px solid #101014; border-radius: 10px; }
body { margin: 0; min-width: 0; min-height: 100vh; background: var(--bg); color: var(--text); }
body::before { content: ""; position: fixed; z-index: -1; inset: 0; background: radial-gradient(ellipse at 90% 0%,#3b125c3d,transparent 44%),radial-gradient(ellipse at 0% 90%,#27133730,transparent 45%); pointer-events: none; }
[hidden] { display: none !important; }
a { color: var(--red); text-decoration: none; }
a:hover { color: #d39cff; }
button, input, select, textarea { font: inherit; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--border-strong); background: #24232b; color: var(--text); font-weight: 650; white-space: nowrap; cursor: pointer; transition: transform .16s, border-color .2s, background .2s, box-shadow .2s; }
button:hover, .button:hover { background: #30232c; border-color: #b960ff66; color: var(--text); transform: translateY(-1px); }
button:active, .button:active { transform: translateY(0) scale(.98); }
button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
button.primary, .button.primary { background: linear-gradient(130deg,#9d3fe7,#6e19b1); border-color: #aa49f766; color: #fff; box-shadow: 0 5px 18px #8a23da29; }
button.danger { color: #cc8cff; background: #351e47; border-color: #6e319e; }
.icon-button { width: 39px; height: 39px; padding: 0; flex: 0 0 auto; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.ui-icon { width: 19px; height: 19px; flex: 0 0 19px; stroke: currentColor; stroke-width: 1.65; fill: none; stroke-linecap: round; stroke-linejoin: round; }
h1,h2,h3,p { margin: 0; }
h1 { font-size: clamp(27px,3vw,39px); line-height: 1.12; letter-spacing: -.045em; font-weight: 780; }
h2 { font-size: 19px; line-height: 1.35; letter-spacing: -.025em; }
h3 { font-size: 15px; font-weight: 700; }
p { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--red); font-size: 10px; letter-spacing: .14em; font-weight: 800; text-transform: uppercase; }
.subtle { color: var(--subtle); font-size: 12px; }
.topbar { position: sticky; top: 12px; z-index: 30; width: min(1536px, calc(100% - 40px)); margin: 12px auto 0; border: 1px solid var(--border-strong); border-radius: 17px; background: #17171eea; backdrop-filter: blur(22px); box-shadow: 0 8px 35px #0004; }
.header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 66px; padding: 10px 18px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); font-size: 19px; font-weight: 850; letter-spacing: -.03em; white-space: nowrap; }
.brand img { width: 38px; height: 38px; }
.brand small { display: block; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .16em; line-height: 1.1; }
.header-actions, .public-nav, .hero-actions { display: flex; align-items: center; gap: 12px; }
.public-nav > a:not(.button) { color: var(--muted); font-weight: 650; padding: 7px 5px; }
.identity { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-left: 1px solid var(--border); }
.identity-avatar { width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; background: #3d2252; color: #d39cff; font-weight: 800; }
.identity-label { display: flex; flex-direction: column; gap: 1px; font-weight: 700; font-size: 12px; }
.identity-label .pill { align-self: flex-start; font-size: 10px; padding: 1px 6px; }
.shell { width: min(1536px, calc(100% - 40px)); margin: 0 auto; padding: 24px 0 36px; }
.dashboard-shell { display: grid; grid-template-columns: 238px minmax(0,1fr); gap: 24px; min-height: calc(100vh - 130px); }
.sidebar { position: sticky; top: 96px; max-height: calc(100vh - 115px); align-self: start; display: flex; flex-direction: column; min-width: 0; background: #17171de8; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.sidebar-heading { padding: 19px 17px 13px; display: flex; flex-direction: column; gap: 5px; border-bottom: 1px solid var(--border); }
#nav { padding: 9px; display: flex; flex-direction: column; gap: 3px; overflow: auto; }
.nav-label { padding: 14px 9px 5px; font-size: 9px; color: var(--subtle); letter-spacing: .15em; font-weight: 750; text-transform: uppercase; }
.nav-item { display: flex; align-items: center; justify-content: flex-start; width: 100%; min-height: 40px; gap: 10px; border: 1px solid transparent; border-radius: 10px; padding: 9px 10px; color: #b9b6c1; background: transparent; font-size: 12px; font-weight: 630; }
.nav-item .ui-icon { color: #938b99; }
.nav-item:hover { background: #ffffff08; border-color: var(--border); transform: none; }
.nav-item.active { border-color: #b95fff32; background: linear-gradient(90deg,#5222784d,#2a1d3560); color: #fff; box-shadow: inset 3px 0 var(--red); }
.nav-item.active .ui-icon { color: var(--red); }
.nav-item .nav-chevron { margin-left: auto; opacity: .45; width: 13px; height: 13px; flex-basis: 13px; }
.sidebar-footer { display: flex; align-items: center; gap: 8px; padding: 14px; border-top: 1px solid var(--border); font-size: 11px; color: var(--muted); }
.sidebar-footer .version { margin-left: auto; color: var(--subtle); }
#nav-toggle { display: none; }
.workspace { min-width: 0; }
.breadcrumb { display: flex; gap: 8px; align-items: center; margin: 0 0 18px; font-size: 11px; color: var(--subtle); }
.breadcrumb a { color: var(--muted); }
.page-heading { display: flex; align-items: center; gap: 15px; margin: 0 0 20px; }
.page-heading-icon, .feature-icon { width: 51px; height: 51px; display: grid; place-items: center; border: 1px solid #b960ff35; border-radius: 15px; background: linear-gradient(140deg,#3d2153,#261a26); color: var(--red); flex-shrink: 0; box-shadow: 0 8px 24px #47196c20; }
.page-heading-icon .ui-icon, .feature-icon .ui-icon { width: 24px; height: 24px; }
.page-heading p { margin-top: 7px; font-size: 13px; }
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.toolbar .push { flex: 1; }
.panel { position: relative; min-width: 0; background: linear-gradient(155deg,#1c1c24f5,#15151bef); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: 0 8px 28px #0002; }
.panel + .panel { margin-top: 16px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 17px; }
.panel-title { display: flex; align-items: center; gap: 9px; }
.panel-title .ui-icon { color: var(--red); }
.panel-subtitle { font-size: 12px; margin-top: 4px; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; border-radius: 999px; padding: 4px 9px; border: 1px solid #ffffff12; background: #ffffff0a; color: #d0cbd4; font-size: 11px; line-height: 1.35; font-weight: 700; vertical-align: middle; overflow-wrap: anywhere; }
.pill.online,.pill.success,.pill.operational,.pill.true,.pill.active,.pill.enabled,.pill.http-2,.pill.get { background: #173b2f; border-color: #4ed6a025; color: #84e8bc; }
.pill.offline,.pill.error,.pill.false,.pill.disabled,.pill.fatal,.pill.http-5,.pill.delete,.pill.degraded { background: #381f4b; border-color: #b960ff33; color: #d39bff; }
.pill.warn,.pill.unknown,.pill.http-4,.pill.patch,.pill.put,.pill.paused,.pill.locked { background: #47341e; border-color: #f5bd6925; color: #ffcf85; }
.pill.info,.pill.viewer,.pill.http-3,.pill.post,.pill.tcp,.pill.udp { background: #23334e; border-color: #80acff25; color: #a1c4ff; }
.pill.owner { background: #3d2252; border-color: #b960ff44; color: #d39cff; }
.pill.admin { background: #392a53; border-color: #c09bff33; color: #d7b7ff; }
.signal { flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.online .signal,.operational .signal { animation: breathe 2s infinite; }
.cards { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; margin-bottom: 18px; }
.metric-card { min-width: 0; padding: 16px; border: 1px solid var(--border); border-radius: 15px; background: linear-gradient(140deg,#23212a,#19191f); transition: transform .22s,border-color .22s, box-shadow .22s; }
.metric-card:hover { transform: translateY(-3px); border-color: #b960ff40; box-shadow: 0 12px 34px #0004; }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.metric-top .ui-icon { color: var(--red); width: 18px; height: 18px; }
.metric-label { color: var(--muted); font-size: 12px; font-weight: 650; }
.metric-value { margin-top: 13px; font-weight: 800; font-size: clamp(19px,2.4vw,30px); line-height: 1.2; letter-spacing: -.04em; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.metric-value.positive { color: var(--green); }
.metric-value.negative { color: var(--red); }
.metric-foot { color: var(--subtle); font-size: 11px; margin-top: 5px; }
.split-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-bottom: 16px; }
.split-grid > .panel { margin: 0; }
.chart { display: block; width: 100%; height: 190px; overflow: visible; }
.chart .gridline { stroke: #ffffff0c; }
.chart text { font-size: 10px; fill: #9c96a3; }
.chart .bar { fill: #a147e7; rx: 3px; transition: opacity .2s; }
.chart .bar:hover { opacity: .65; }
.chart .error-bar { fill: #f5bd69; }
.chart-summary { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 13px; color: var(--muted); font-size: 12px; }
.legend { display: flex; gap: 7px; align-items: center; }
.legend::before { content: ""; width: 9px; height: 9px; background: var(--red); border-radius: 3px; }
.legend.errors::before { background: var(--amber); }
.filter-panel { padding: 16px; margin-bottom: 16px; }
.filter-header { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 12px; }
.filter-header .ui-icon { color: var(--red); }
.filter-fields { display: grid; grid-template-columns: repeat(auto-fit,minmax(145px,1fr)); gap: 10px; align-items: end; }
.field { display: flex; flex-direction: column; min-width: 0; gap: 6px; }
.field > label, .field-label, form > label { font-size: 12px; color: #c4c0cb; font-weight: 650; }
input, select, textarea { width: 100%; min-width: 0; max-width: 100%; border-radius: 10px; border: 1px solid var(--border-strong); background: #111117; color: var(--text); padding: 10px 12px; min-height: 41px; transition: border-color .2s, box-shadow .2s; }
input::placeholder, textarea::placeholder { color: #77727e; }
input:focus,select:focus,textarea:focus { border-color: #b157f8; box-shadow: 0 0 0 3px #a245eb20; outline: none; }
select { appearance: none; padding-right: 31px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23d4bec7' fill='none' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
option { background: #1c1b22; color: var(--text); }
textarea { min-height: 120px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; line-height: 1.6; }
.filter-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.table-panel { padding: 0; overflow: hidden; }
.table-panel .panel-heading { padding: 19px 19px 15px; margin: 0; border-bottom: 1px solid var(--border); }
.table-wrap { width: 100%; overflow: auto; max-width: 100%; }
table { border-collapse: collapse; width: 100%; table-layout: fixed; font-size: 12px; text-align: left; }
th { color: #a5a0ae; font-size: 10px; letter-spacing: .035em; font-weight: 750; text-transform: uppercase; background: #18181f; padding: 12px 13px; text-align: left; }
td { padding: 13px; border-top: 1px solid #ffffff0b; vertical-align: middle; min-width: 0; overflow-wrap: anywhere; }
tbody tr { transition: background .18s; }
tbody tr:nth-child(even) { background: #ffffff02; }
tbody tr:hover { background: #b960ff09; }
.cell-text { display: block; max-width: 100%; line-height: 1.45; overflow-wrap: anywhere; word-break: break-word; }
.cell-text.mono { font-family: ui-monospace,SFMono-Regular,Consolas,monospace; font-size: 11px; }
.cell-text.strong { font-weight: 750; color: var(--text); }
.cell-subtext { display: block; font-size: 10px; color: var(--subtle); margin-top: 3px; overflow-wrap: anywhere; }
.action-cell { width: 83px; text-align: right; }
.action-cell button { min-height: 32px; font-size: 11px; padding: 6px 8px; gap: 5px; }
.action-cell .ui-icon { width: 14px; height: 14px; flex-basis: 14px; }
.pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--border); padding: 13px 18px; color: var(--muted); font-size: 12px; }
.pagination-controls { display: flex; align-items: center; gap: 8px; }
.pagination select { width: 86px; min-height: 34px; padding: 6px 25px 6px 10px; }
.pagination button { min-height: 33px; padding: 5px 10px; font-size: 12px; }
.empty-state { min-height: 190px; display: grid; place-items: center; text-align: center; padding: 25px; }
.empty-state > div { max-width: 420px; }
.empty-icon { display: grid; place-items: center; margin: 0 auto 12px; width: 48px; height: 48px; border: 1px solid var(--border); background: #ffffff06; color: var(--red); border-radius: 15px; }
.empty-state p { font-size: 12px; margin-top: 6px; }
.empty-state button { margin-top: 15px; }
.notice { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); background: #25212b; border: 1px solid var(--border-strong); padding: 13px 15px; border-radius: 12px; font-size: 12px; margin-bottom: 15px; }
.notice .ui-icon { color: var(--amber); }
.server-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr)); gap: 14px; }
.server-card { display: flex; flex-direction: column; gap: 12px; padding: 17px; min-width: 0; transition: transform .2s,border-color .2s; }
.server-card:hover { transform: translateY(-2px); border-color: #b960ff35; }
.server-card .panel-heading { margin: 0; }
.server-card .panel-title { min-width: 0; }
.server-card h2 { font-size: 15px; overflow-wrap: anywhere; }
.server-card p { font-size: 12px; overflow-wrap: anywhere; }
.server-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.server-kpis { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.server-kpi { padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: #111117; }
.server-kpi span { color: var(--muted); display: block; font-size: 11px; }
.server-kpi strong { font-size: 18px; }
progress { appearance: none; width: 100%; height: 8px; border: none; border-radius: 10px; background: #33252f; overflow: hidden; }
progress::-webkit-progress-bar { background: #33252f; }
progress::-webkit-progress-value { background: linear-gradient(90deg,#7222b0,#bc66ff); border-radius: 10px; }
progress::-moz-progress-bar { background: linear-gradient(90deg,#7222b0,#bc66ff); }
.player-line { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--border); padding-top: 9px; font-size: 12px; }
.player-line strong { min-width: 0; overflow-wrap: anywhere; }
.status-list { display: flex; flex-direction: column; gap: 1px; }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; padding: 12px 0; border-bottom: 1px solid var(--border); }
.status-row:last-child { border-bottom: 0; }
.status-row > div { min-width: 0; overflow-wrap: anywhere; }
.status-row strong { display: block; font-size: 13px; }
.status-row p { font-size: 11px; margin-top: 2px; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,175px),1fr)); gap: 10px; min-width: 0; }
.detail-item { min-width: 0; display: flex; flex-direction: column; gap: 7px; padding: 14px; background: #111117; border: 1px solid var(--border); border-radius: 12px; }
.detail-item .detail-label { color: var(--muted); font-size: 10px; letter-spacing: .035em; font-weight: 650; text-transform: uppercase; overflow-wrap: anywhere; }
.detail-item .detail-value { font-size: 13px; font-weight: 650; min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.detail-item .pill { align-self: flex-start; }
.detail-group { min-width: 0; margin-top: 14px; }
.detail-group > h3 { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; color: #d6cdd7; font-size: 13px; }
.detail-group > h3 .ui-icon { color: var(--red); width: 16px; height: 16px; }
.array-stack { display: grid; gap: 10px; }
.array-entry { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: #ffffff03; }
.array-entry > h3 { color: var(--red); font-size: 12px; margin-bottom: 8px; overflow-wrap: anywhere; }
.tag-list { display: flex; gap: 6px; flex-wrap: wrap; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.form-grid .wide { grid-column: 1/-1; }
.form-help { font-size: 11px; color: var(--subtle); }
.form-section { padding: 16px; border: 1px solid var(--border); border-radius: 13px; background: #11111755; margin-bottom: 13px; }
.form-section > h3 { display: flex; gap: 8px; align-items: center; margin-bottom: 15px; }
.form-section > h3 .ui-icon { color: var(--red); }
.setting-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--border); }
.setting-row > div { min-width: 0; }
.setting-row strong { font-size: 13px; }
.setting-row p { font-size: 12px; }
.setting-row > select { width: 155px; }
.switch { position: relative; display: inline-flex; align-items: center; flex: 0 0 auto; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; cursor: pointer; }
.switch-track { display: block; width: 44px; height: 25px; border-radius: 30px; border: 1px solid var(--border-strong); background: #33313b; transition: background .2s; }
.switch-track::after { content: ""; width: 17px; height: 17px; position: absolute; top: 4px; left: 4px; border-radius: 50%; background: #e2dce6; transition: transform .2s; }
.switch input:checked + .switch-track { background: #7c2bbb; border-color: #b85eff; }
.switch input:checked + .switch-track::after { transform: translateX(19px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--red); outline-offset: 3px; }
.switch input:disabled + .switch-track { opacity: .45; cursor: not-allowed; }
.scope-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 7px; }
.scope-grid label { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 9px; background: #111117; padding: 9px; font-size: 11px; overflow-wrap: anywhere; }
input[type=checkbox] { accent-color: var(--red); width: 16px; min-height: 16px; height: 16px; flex: 0 0 16px; }
.json-view { background: #0e0e14; border: 1px solid var(--border); border-radius: 12px; padding: 15px; max-height: 460px; overflow: auto; font: 12px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; color: #d2cedb; }
.json-key { color: #cf91ff; }.json-string { color: #91dab7; }.json-number { color: #8bb8ff; }.json-literal { color: #eec17e; }
.json-tools { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 12px; }
dialog { position: fixed; width: min(880px,calc(100% - 28px)); max-width: 100%; max-height: min(90dvh,850px); margin: auto; padding: 0; border: 1px solid #ffffff22; border-radius: 20px; color: var(--text); background: #19191ffb; box-shadow: 0 30px 100px #000b; overflow: hidden; backdrop-filter: blur(25px); }
dialog[open] { display: flex; flex-direction: column; animation: dialog-in .22s cubic-bezier(.2,.7,.3,1); }
dialog::backdrop { background: #050508c4; backdrop-filter: blur(5px); }
.modal-header { padding: 22px 24px 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--border); }
.modal-header h2 { margin-top: 5px; font-size: 24px; overflow-wrap: anywhere; }
.modal-header p { font-size: 12px; margin-top: 4px; overflow-wrap: anywhere; }
.modal-content { padding: 20px 24px; overflow: auto; min-height: 0; min-width: 0; }
.modal-footer { display: flex; justify-content: flex-end; gap: 9px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--border); padding: 14px 24px; background: #15151b; }
.modal-footer .left { margin-right: auto; }
.tabs { display: flex; gap: 4px; padding: 8px 15px; overflow-x: auto; background: #131319; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.tabs button { font-size: 12px; min-height: 35px; padding: 7px 12px; border: 1px solid transparent; border-radius: 9px; color: var(--muted); background: transparent; }
.tabs button.active { background: #38214a; color: #d39cff; border-color: #b960ff2a; }
.inline-error { padding: 10px 13px; background: #362048; color: #dcb0ff; border: 1px solid #b960ff4a; border-radius: 10px; font-size: 12px; overflow-wrap: anywhere; }
#modal-error { margin: 0 24px 12px; }
.confirm-dialog { width: min(460px,calc(100% - 28px)); }
.confirm-dialog form { margin: 0; }
.toast-stack { position: fixed; z-index: 100; bottom: 20px; right: 20px; width: min(360px,calc(100% - 40px)); display: flex; flex-direction: column; gap: 9px; pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 11px; border: 1px solid var(--border-strong); background: #222129f5; border-radius: 15px; padding: 13px; box-shadow: 0 12px 30px #0007; pointer-events: auto; animation: toast-in .25s ease-out; }
.toast > .ui-icon { color: var(--green); margin-top: 3px; }.toast.error > .ui-icon { color: var(--red); }.toast.info > .ui-icon { color: var(--blue); }
.toast-body { flex: 1; min-width: 0; }.toast-body p { font-size: 12px; margin-top: 4px; overflow-wrap: anywhere; }.toast .icon-button { width: 26px; height: 26px; min-height: 26px; border-color: transparent; background: transparent; }.toast .icon-button .ui-icon { width: 15px; height: 15px; }
.loading-region { min-height: 100px; }
.skeleton-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 15px; }
.skeleton { height: 105px; border: 1px solid var(--border); border-radius: 15px; background: linear-gradient(105deg,#19191f 25%,#2d2631 48%,#19191f 70%); background-size: 250% 100%; animation: shimmer 1.6s infinite linear; }
.skeleton.long { height: 30px; margin: 14px 0; }
.skeleton-panel { padding: 18px; border: 1px solid var(--border); background: #17171d; border-radius: 16px; }
.dashboard-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--border); width: min(1536px,calc(100% - 40px)); margin: 0 auto; padding: 14px 0 20px; font-size: 11px; color: var(--subtle); }
.public-shell { max-width: 1260px; }
.public-hero { min-height: 330px; display: flex; align-items: center; justify-content: space-between; padding: clamp(25px,5vw,55px); overflow: hidden; background: radial-gradient(ellipse at 85% 35%,#531c7e38,transparent 55%),linear-gradient(135deg,#20202a,#15151b); }
.hero-content { z-index: 2; max-width: 650px; }
.hero-content h1 { font-size: clamp(37px,6vw,70px); margin: 18px 0; line-height: 1.06; }
.hero-content h1 span { color: #c47aff; }
.hero-content p { font-size: 15px; max-width: 420px; }
.hero-actions { margin-top: 24px; flex-wrap: wrap; }
.hero-mark { width: 280px; height: 260px; flex-shrink: 0; position: relative; display: grid; place-items: center; }
.hero-mark img { width: 100px; height: 100px; filter: drop-shadow(0 0 32px #a431ff57); animation: float 6s infinite ease-in-out; z-index: 1; }
.orb-ring { position: absolute; border: 1px solid #b960ff2a; border-radius: 50%; inset: 20px; box-shadow: 0 0 22px #9430e30b; animation: pulse-ring 6s infinite ease-in-out; }
.ring-two { inset: 43px; animation-delay: -2s; border-style: dashed; }.ring-three { inset: 65px; animation-delay: -4s; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 29px 0 15px; }.section-heading h2 { margin-top: 4px; font-size: 24px; }
.feature-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }.feature { display: flex; flex-direction: column; gap: 12px; }.feature p { font-size: 13px; }.feature a { font-size: 12px; font-weight: 650; }.feature-icon { width: 43px; height: 43px; }
.public-footer { border-top: 1px solid var(--border); width: min(1260px,calc(100% - 40px)); margin: 0 auto; padding: 24px 0 32px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 12px; }.public-footer > div { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }.public-footer a:not(.brand) { color: var(--muted); }
.login-shell { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: radial-gradient(ellipse at 50% 35%,#471b6a3b,transparent 55%); }
.login-card { width: min(100%,410px); padding: 35px; border-color: #b960ff2a; box-shadow: 0 20px 90px #0007,0 0 70px #8d29db10; animation: dialog-in .35s ease-out; }
.login-brand { display: grid; place-items: center; margin: 0 0 25px; }.login-brand img { width: 76px; height: 76px; filter: drop-shadow(0 0 16px #b960ff2c); }
.login-card form { display: flex; flex-direction: column; gap: 9px; }.login-card label { margin-top: 8px; }.input-icon { display: flex; align-items: center; position: relative; }.input-icon > span { position: absolute; left: 12px; color: var(--subtle); display: grid; place-items: center; }.input-icon input { padding-left: 40px; min-height: 48px; }.input-icon #password { padding-right: 46px; }.input-icon button { position: absolute; right: 5px; min-height: 33px; width: 34px; height: 34px; border: 0; background: transparent; }.login-submit { margin-top: 15px; min-height: 47px; width: 100%; }
@keyframes breathe { 50% { opacity: .55; box-shadow: 0 0 4px currentColor; } }@keyframes shimmer { to { background-position: -250% 0; } }@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }@keyframes toast-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }@keyframes float { 50% { transform: translateY(-8px); } }@keyframes pulse-ring { 50% { transform: scale(1.07); opacity: .6; } }
@media(max-width: 1200px) { .dashboard-shell { grid-template-columns: 205px minmax(0,1fr); gap: 17px; }.cards { grid-template-columns: repeat(3,minmax(0,1fr)); } th,td { padding: 11px 9px; }.nav-item { font-size: 12px; }.hero-mark { width: 240px; } }
@media(max-width: 1000px) { .cards,.skeleton-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.split-grid { grid-template-columns: 1fr; }.dashboard-shell { grid-template-columns: 185px minmax(0,1fr); }.sidebar-heading { padding: 14px 12px; }.nav-item { gap: 7px; padding: 8px; }.nav-item .ui-icon { width: 16px; height: 16px; flex-basis: 16px; }.header-actions { gap: 8px; } }
@media(max-width: 820px) { .topbar,.shell,.dashboard-footer,.public-footer { width: calc(100% - 24px); }.topbar { top: 7px; margin-top: 7px; }.header-inner { min-height: 57px; padding: 8px 11px; gap: 8px; }.brand img { width: 32px; height: 32px; }.brand { font-size: 17px; gap: 7px; }.brand small { font-size: 8px; }.header-actions .button { font-size: 12px; min-height: 35px; }.header-actions .pill { font-size: 10px; }.identity { border: 0; padding: 0; }.identity-label { display: none; }.identity-avatar { width: 29px; height: 29px; }.dashboard-shell { display: block; padding-top: 19px; }.sidebar { display: none; position: sticky; top: 77px; max-height: 65dvh; z-index: 20; margin-bottom: 16px; }.sidebar.open { display: flex; }.sidebar-heading { display: none; }#nav-toggle { display: inline-flex; }.workspace { min-width: 0; }.feature-grid { grid-template-columns: 1fr; }.public-hero { min-height: 275px; }.hero-mark { width: 170px; height: 190px; }.hero-mark img { width: 74px; height: 74px; }.orb-ring { inset: 8px; }.ring-two { inset: 22px; }.ring-three { inset: 39px; } }
@media(max-width: 680px) { .responsive-table thead { display: none; }.responsive-table,.responsive-table tbody,.responsive-table tr,.responsive-table td { display: block; width: 100%; }.responsive-table tbody { padding: 10px; display: grid; gap: 9px; }.responsive-table tr { border: 1px solid var(--border-strong); border-radius: 12px; padding: 7px 11px; background: #191920; }.responsive-table td { display: grid; grid-template-columns: minmax(85px,36%) minmax(0,1fr); align-items: center; gap: 8px; text-align: left; padding: 7px 0; border: 0; border-bottom: 1px solid var(--border); }.responsive-table td::before { content: attr(data-label); color: var(--muted); font-size: 10px; text-transform: uppercase; font-weight: 700; }.responsive-table td:last-child { border: 0; }.responsive-table .action-cell { display: flex; justify-content: flex-end; }.responsive-table .action-cell::before { display: none; }.responsive-table .pill { justify-self: start; }.responsive-table .cell-text { font-size: 12px; }.table-panel .panel-heading { padding: 14px; }.pagination { padding: 12px; }.form-grid { grid-template-columns: 1fr; }.form-grid .wide { grid-column: auto; }.modal-content { padding: 15px; }.modal-header { padding: 17px; }.modal-footer { padding: 12px 15px; }.modal-header h2 { font-size: 20px; }.tabs { padding: 7px 10px; }.header-actions #connection { display: none; }.header-actions #logout { font-size: 0; padding: 8px; min-height: 34px; }.header-actions #logout .ui-icon { width: 17px; height: 17px; }.public-nav { gap: 7px; font-size: 11px; }.public-nav .button { min-height: 34px; font-size: 11px; padding: 7px 9px; }.public-nav a:first-child { display: none; }.public-hero { padding: 23px; }.hero-mark { display: none; }.page-heading { gap: 12px; }.page-heading-icon { width: 43px; height: 43px; }.page-heading p { font-size: 12px; }.filter-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }.filter-fields .field:first-child { grid-column: 1/-1; }.panel { padding: 15px; }.table-panel { padding: 0; }.metric-card { padding: 13px; }.metric-top { gap: 5px; }.metric-label { font-size: 11px; }.metric-value { font-size: 22px; }.metric-foot { font-size: 10px; }.cards { gap: 9px; }.toast-stack { bottom: 12px; right: 12px; width: min(360px,calc(100% - 24px)); }.login-card { padding: 27px; }.public-footer { flex-direction: column; align-items: flex-start; } }
@media(max-width: 360px) { .cards,.filter-fields { grid-template-columns: 1fr; }.metric-value { font-size: 24px; }.header-actions .identity { display: none; }.brand small { letter-spacing: .08em; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation: none!important; transition: none!important; scroll-behavior: auto!important; } }
.detail-summary { cursor: pointer; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 8px 0; color: var(--text); }
.detail-summary::before { content: "›"; color: var(--red); font-size: 18px; line-height: 1; }
details[open] > .detail-summary::before { transform: rotate(90deg); }
details.array-entry + details.array-entry { margin-top: 9px; }
details.form-section > summary { cursor: pointer; color: #e9daf4; font-weight: 700; }
details.form-section > p { margin: 8px 0; }
.form-section .array-entry > button { margin-top: 10px; }
.form-section .array-stack { margin-bottom: 10px; }
.modal-content form > button { margin-top: 12px; }
@media(max-width: 680px) { .responsive-table .action-cell { width: 100%; }.setting-row { gap: 10px; }.setting-row > select { width: 105px; }.detail-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,130px),1fr)); } }

/* v4.4 — branded navigation, compact public pages and responsive match rows */
.brand img,.login-brand img { object-fit: contain; }
.tabs { flex-wrap: wrap; overflow: visible; gap: 5px; }
.tabs button { white-space: normal; min-width: 0; text-align: left; overflow-wrap: anywhere; }
.tabs button .ui-icon { width: 15px; height: 15px; flex-basis: 15px; }
.public-topbar .header-inner { display: grid; grid-template-columns: 1fr auto 1fr; }
.public-nav { justify-content: center; flex-wrap: wrap; gap: 5px; }
.public-nav > a:not(.button) { display: inline-flex; align-items: center; gap: 6px; border-radius: 9px; padding: 8px 10px; }
.public-nav a.active { background: #3c2251; color: #d39cff; }
.public-nav .ui-icon,.public-access .ui-icon { width: 16px; height: 16px; flex-basis: 16px; }
.public-access { justify-self: end; }
.public-shell { padding-block: 18px; }
.public-home { display: grid; gap: 14px; }
.compact-home .public-hero { min-height: 0; padding: clamp(20px,3vw,36px); }
.compact-home .hero-mark { width: 210px; height: 180px; }
.compact-home .hero-mark img { width: 150px; height: 150px; filter: drop-shadow(0 0 25px #ad49ff50); }
.compact-home .hero-content h1 { font-size: clamp(30px,4vw,50px); }
.game-showcase { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.game-tile { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 13px 16px; color: var(--text); transition: border-color .2s,transform .2s; }
.game-tile:hover { color: var(--text); transform: translateY(-3px); border-color: #b960ff7a; }
.game-tile img { width: 76px; height: 76px; object-fit: contain; flex: 0 0 auto; }
.game-tile h3 { font-size: 16px; overflow-wrap: anywhere; }
.game-tile p { font-size: 11px; }
.public-section-title { margin: 16px 0 10px; }
.compact-home .metric-card { padding: 12px 15px; }
.compact-home .metric-value { font-size: clamp(20px,2.5vw,30px); }
.public-footer { padding: 13px 0 18px; }
.game-badge { display: inline-flex; align-items: center; gap: 7px; min-width: 0; color: var(--text); font-size: 11px; font-weight: 700; overflow-wrap: anywhere; vertical-align: middle; }
.game-badge img { width: 31px; height: 31px; flex: 0 0 auto; object-fit: contain; }
.game-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.game-filter .active { border-color: var(--red); color: #d39cff; background: #321f41; }
.public-server-card { display: grid; gap: 13px; align-content: start; }
.match-list { display: grid; gap: 9px; padding: 12px; }
.match-row { display: grid; grid-template-columns: minmax(150px,1.1fr) minmax(0,2fr) auto; gap: 14px; align-items: center; min-width: 0; padding: 14px; border: 1px solid var(--border-strong); border-radius: 12px; background: #1a171e; transition: border-color .2s; }
.match-row:hover { border-color: #b960ff4d; }
.match-identity { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.match-identity small { color: var(--muted); }
.match-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; min-width: 0; }
.match-stat { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.match-stat > span { display: flex; gap: 4px; align-items: center; font-size: 10px; color: var(--muted); }
.match-stat .ui-icon { width: 13px; height: 13px; flex-basis: 13px; color: var(--red); }
.match-stat strong { font-size: 13px; font-variant-numeric: tabular-nums; }
.match-row > button { font-size: 11px; padding: 8px 10px; }
#modal-subtitle .game-badge { margin-right: 12px; }
@media(max-width: 1100px) { .match-stats { grid-template-columns: repeat(2,minmax(0,1fr)); } .match-row { grid-template-columns: minmax(120px,1fr) minmax(0,1.5fr) auto; } }
@media(max-width: 820px) { .public-topbar .header-inner { grid-template-columns: 1fr auto; } .public-nav { grid-column: 1/-1; grid-row: 2; } .public-nav a:first-child { display: inline-flex; } .public-access { grid-column: 2; grid-row: 1; } .game-tile { gap: 8px; padding: 10px; } .game-tile img { width: 48px; height: 48px; } .game-tile h3 { font-size: 13px; } }
@media(max-width: 580px) { .game-showcase { grid-template-columns: 1fr; } .game-tile img { width: 58px; height: 58px; } .match-row { grid-template-columns: minmax(0,1fr) auto; gap: 10px; } .match-stats { grid-column: 1/-1; grid-row: 2; } .match-row > button { grid-column: 2; grid-row: 1; } .tabs button { font-size: 11px; padding: 6px 8px; } .public-nav > a:not(.button) { font-size: 11px; padding: 6px; } }
@media(min-width: 900px) and (min-height: 650px) { body[data-page="public"]:has(.compact-home) { display: flex; flex-direction: column; min-height: 100dvh; } .compact-home { flex: 1; display: flex; flex-direction: column; justify-content: center; } }
@media(min-width: 821px) { .sidebar { position: relative; top: 0; max-height: none; } #nav { overflow: visible; } }

/* v4.5: violet workspace, accessible resource cards and process telemetry */
:root { --red:#bc83ff; --red-strong:#8946df; scrollbar-color:#7544a5 #101014; }
.platform-links,.progression-grid,.process-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); gap:14px; }
.platform-links { margin-top:18px; }
.platform-link { display:grid; grid-template-columns:24px 1fr; gap:5px 10px; align-items:center; padding:16px; border:1px solid var(--border-strong); border-radius:12px; background:#21182d; color:var(--text); transition:transform .2s,border-color .2s; }
.platform-link:hover { transform:translateY(-2px); border-color:var(--red); color:var(--text); }
.platform-link .ui-icon { color:var(--red); grid-row:1/3; }
.platform-link small { grid-column:2; color:var(--muted); }
body[data-page=public] #content > .panel { margin-top:18px; }
.history-list,.progression-panel,.process-view { display:grid; gap:14px; }
.history-card { display:grid; gap:12px; padding:15px; border:1px solid var(--border-strong); border-radius:14px; background:#19151f; min-width:0; }
.history-heading { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.history-metrics { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,125px),1fr)); gap:10px; min-width:0; }
.history-metrics > * { min-width:0; overflow-wrap:anywhere; }
.history-card > button { justify-self:start; }
.history-extra[hidden] { display:none; }
.progression-panel > .history-metrics { grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); }
.progression-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.progression-actions > button { flex:1; }
.progression-grid .panel,.process-grid .panel { min-width:0; }
.match-row { grid-template-columns:minmax(0,1fr); gap:10px; padding:16px; }
.match-identity { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.match-stats { grid-template-columns:repeat(auto-fit,minmax(min(100%,125px),1fr)); padding:12px; background:#14111b; border-radius:10px; }
.match-row > button { grid-column:auto; grid-row:auto; justify-self:end; }
.match-stats { grid-column:auto; grid-row:auto; }
.nav-item { justify-content:flex-start; text-align:left; }
button.danger,.pill.offline,.pill.negative,.toast.error { color:#ff7588; }
button.danger { border-color:#793244; background:#351a24; }
.pill.offline,.pill.negative { background:#381b26; border-color:#73313e; }
@media(max-width:580px) { .history-card,.match-row { padding:12px; } .match-row > button { justify-self:stretch; } }
