:root {
    --bg: #07090e;
    --surface: #0d1118;
    --surface-2: #111720;
    --surface-3: #171e29;
    --line: #202938;
    --line-soft: rgba(122, 148, 181, .13);
    --text: #ecf1f7;
    --muted: #77859a;
    --muted-2: #4f5c70;
    --blue: #4b7cff;
    --cyan: #24c8d9;
    --green: #47dc9b;
    --violet: #9d78ff;
    --orange: #f6a950;
    --red: #ff6174;
    --sidebar: 276px;
    --scrollbar-thumb: #5b7297;
    --scrollbar-track: #101720;
    --mono: "Cascadia Mono", Consolas, monospace;
    --sans: Inter, "Segoe UI", Arial, sans-serif;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track); scrollbar-width: thin; }
html::-webkit-scrollbar { width: 8px; }
html::-webkit-scrollbar-track { background: var(--scrollbar-track); }
html::-webkit-scrollbar-thumb { border-radius: 8px; background: var(--scrollbar-thumb); }
body { min-height: 100vh; margin: 0; color: var(--text); background: var(--bg); font-family: var(--sans); zoom: 1.5; }
button, input, select { color: inherit; font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }

.brand { position: relative; isolation: isolate; display: inline-flex; align-items: center; align-self: flex-start; text-decoration: none; transform-origin: 35% 65%; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.brand::after { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 36%, rgba(190, 220, 255, .55) 50%, transparent 64%) 120% 0 / 260% 100%; content: ""; pointer-events: none; mask: url('../images/ex_panel_logo.png') center / 100% 100% no-repeat; transition: background-position .7s cubic-bezier(.18, .75, .2, 1); }
.brand:hover, .brand:focus-visible { transform: translateY(-3px) scale(1.045); }
.brand:hover::after, .brand:focus-visible::after { background-position: -120% 0; }
.brand-logo { display: block; width: 190px; height: auto; }
.brand--large .brand-logo { width: min(390px, 72vw); }
@media (prefers-reduced-motion: reduce) {
    .brand, .brand::after { transition: none; }
    .brand:hover, .brand:focus-visible { transform: none; }
}

.eyebrow { color: var(--blue); font: 700 9px/1 var(--mono); letter-spacing: .2em; }
.primary-button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: 0 18px; border: 1px solid #5f87ff; border-radius: 8px; color: white; background: linear-gradient(135deg, #3569f1, #4b79eb); box-shadow: 0 12px 34px rgba(58, 103, 226, .22); font-weight: 700; }
.primary-button:hover { filter: brightness(1.08); }
.primary-button--small { width: auto; min-height: 38px; padding: 0 18px; }
.secondary-button { min-height: 40px; padding: 0 13px; border: 1px solid var(--line); border-radius: 7px; color: #9aa8bb; background: #10151d; font-size: 11px; font-weight: 600; }
.secondary-button:hover { color: white; border-color: #34435a; background: #151c27; }
.link-button { border: 0; color: #8290a4; background: transparent; font-size: 11px; }
.link-button:hover { color: white; }
.live-dot { display: inline-block; width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(71, 220, 155, .08), 0 0 13px rgba(71, 220, 155, .6); }

/* Login */
.login-page { min-height: 0; overflow-x: hidden; background: radial-gradient(circle at 11% 25%, rgba(42, 84, 196, .17), transparent 28%), radial-gradient(circle at 82% 84%, rgba(47, 75, 155, .09), transparent 30%), #07090e; }
.login-page::before { position: fixed; inset: 0; content: ""; pointer-events: none; opacity: .23; background-image: linear-gradient(rgba(102, 128, 175, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(102, 128, 175, .08) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(90deg, black, transparent 64%); }
.login-shell { position: relative; display: grid; grid-template-columns: minmax(420px, 1.25fr) minmax(440px, .75fr); min-height: calc(100vh / 1.5); }
.login-about { display: flex; flex-direction: column; justify-content: space-between; gap: 45px; padding: 36px clamp(40px, 6vw, 100px); border-right: 1px solid rgba(86, 111, 151, .15); }
.login-copy { margin: auto 0; }
.login-copy h1 { margin: 0; font-size: clamp(48px, 5.4vw, 78px); line-height: 1.05; letter-spacing: -.06em; }
.login-copy h1 em { color: var(--blue); font-style: normal; }
.login-card-wrap { display: grid; align-content: center; justify-items: center; gap: 28px; padding: 36px clamp(34px, 6vw, 100px); background: rgba(8, 11, 17, .76); }
.login-card { width: min(100%, 410px); }
.login-card > header { display: flex; align-items: center; gap: 16px; margin-bottom: 34px; }
.login-card__icon { display: grid; place-items: center; width: 45px; height: 45px; border: 1px solid #28364b; border-radius: 9px; color: #7293f8; background: #121924; font-size: 20px; }
.login-card h2 { margin: 0 0 7px; font-size: 22px; letter-spacing: -.03em; }
.login-card header p { margin: 0; color: #68768a; font-size: 11px; }
.field { display: grid; gap: 9px; margin-bottom: 17px; color: #8997a9; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.field-control { display: flex; align-items: center; height: 48px; border: 1px solid #222c3b; border-radius: 8px; background: rgba(13, 18, 26, .86); transition: .15s; }
.field-control:focus-within { border-color: #466fdd; box-shadow: 0 0 0 3px rgba(70, 111, 221, .1); }
.field-control i { flex: 0 0 52px; color: #54637a; font: normal 13px var(--mono); text-align: center; }
.field-control input { min-width: 0; flex: 1; height: 100%; padding: 0 14px; border: 0; outline: 0; color: #e5ebf3; background: transparent; font-size: 12px; }
.field-control input::placeholder { color: #414d60; }
.login-card .primary-button { margin-top: 26px; }
.login-footer { margin: 0; color: #3f4b5b; font: 9px var(--mono); letter-spacing: .08em; }
.alert { margin: -10px 0 20px; padding: 11px 13px; border: 1px solid; border-radius: 7px; font-size: 11px; }
.alert--error { border-color: rgba(255, 97, 116, .28); color: #ff8c9a; background: rgba(255, 97, 116, .08); }

/* Panel layout */
.app-shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
/* body zooms the panel by 1.5, so the sidebar's viewport height must compensate for that scale. */
.sidebar { position: sticky; top: 0; z-index: 10; display: flex; flex-direction: column; height: calc(100vh / 1.5); height: calc(100dvh / 1.5); overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; padding: 18px 17px 12px; border-right: 1px solid #18202b; background: radial-gradient(circle at 20% 18%, rgba(54, 94, 205, .12), transparent 31%), #090d13; scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track); scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.sidebar::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-track { background: var(--scrollbar-track); }
.sidebar::-webkit-scrollbar-thumb { border-radius: 8px; background: var(--scrollbar-thumb); }
.sidebar > * { flex-shrink: 0; }
.sidebar-backdrop { display: none; }
.sidebar .brand { margin: 3px 13px 24px; }
.server-switch { position: relative; margin-bottom: 18px; }
.nav-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 38px; margin: 0 0 7px; padding: 0 10px; border: 1px solid transparent; border-radius: 7px; color: #647186; background: transparent; font: 700 8px var(--mono); letter-spacing: .16em; text-align: left; }
.nav-toggle:hover, .nav-toggle[aria-expanded="true"] { border-color: #202c3c; color: #a9b7ca; background: #101720; }
.nav-toggle i { font-size: 13px; font-style: normal; transition: transform .2s; }
.nav-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.server-switch__control { position: relative; display: flex; align-items: center; width: 100%; min-height: 69px; padding: 0; border: 1px solid #304560; border-radius: 9px; background: linear-gradient(145deg, #182536, #111a28); text-align: left; }
.server-switch__control:hover { border-color: #6386c4; background: linear-gradient(145deg, #1b2c43, #152238); }
.cube-icon { display: grid; place-items: center; width: 39px; height: 39px; margin-left: 8px; border: 1px solid rgba(75, 124, 255, .23); border-radius: 7px; color: #6590ff; background: rgba(75, 124, 255, .08); }
.cube-icon img { width: 45px; height: 45px; object-fit: contain; transform: translateY(-2px); filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35)); }
.server-select-label { display: grid; gap: 4px; overflow: hidden; flex: 1; min-width: 0; padding: 0 30px 0 11px; }
.server-select-label small { color: #91a7c7; font: 700 7px var(--mono); letter-spacing: .1em; }
.server-select-label b { overflow: hidden; color: #edf3fc; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.server-select-online { display: flex; align-items: center; justify-content: space-between; gap: 5px; min-width: 0; color: #91a7c7; font-size: 8px; white-space: nowrap; }
.server-select-online__label { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.server-select-online__dot { display: inline-block; width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: #66788c; }
.server-select-online.has-data .server-select-online__dot { background: var(--green); box-shadow: 0 0 0 3px rgba(71, 220, 155, .08), 0 0 7px rgba(71, 220, 155, .45); }
.server-select-online strong { min-width: 22px; padding: 2px 4px; border: 1px solid rgba(71, 220, 155, .18); border-radius: 4px; color: #b8efd4; background: rgba(71, 220, 155, .08); font: 700 9px var(--mono); text-align: center; }
.server-select-online:not(.has-data) strong { border-color: #34465b; color: #8b9db3; background: #1a2534; }
.select-chevron { position: absolute; right: 12px; color: #66768b; pointer-events: none; transition: transform .18s; }
.server-switch__control[aria-expanded="true"] { border-color: #3b5273; box-shadow: 0 0 0 3px rgba(75, 124, 255, .08); }
.server-switch__control[aria-expanded="true"] .select-chevron { transform: rotate(180deg); }
.server-options { position: absolute; z-index: 25; top: calc(100% + 7px); left: 0; right: 0; overflow: hidden; padding: 7px; border: 1px solid #42618a; border-radius: 9px; background: #172334; box-shadow: 0 18px 50px rgba(0, 0, 0, .55); transform-origin: top center; }
.server-options__heading { padding: 5px 8px 9px; color: #9aafd0; font: 700 8px var(--mono); letter-spacing: .12em; }
.server-option { display: grid; grid-template-columns: 38px minmax(0, 1fr) 18px; align-items: center; gap: 9px; width: 100%; min-height: 55px; padding: 6px 8px; border: 1px solid transparent; border-radius: 7px; color: #a1b0c5; background: #1b2a3d; text-align: left; }
.server-option:hover, .server-option:focus-visible { border-color: #6d91d4; color: #f1f5ff; background: #284062; }
.server-option.is-selected { border-color: #6b8dca; background: #233958; box-shadow: inset 3px 0 #7aa3ff; }
.server-option__icon { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #6580a4; border-radius: 6px; background: #405779; }
.server-option__icon img { width: 39px; height: 39px; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .4)); }
.server-option b, .server-option small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server-option b { color: #d5deea; font-size: 10px; }
.server-option small { margin-top: 4px; color: #91a7c2; font-size: 7px; }
.server-option i { color: #6f95ff; font-size: 11px; font-style: normal; text-align: center; }
.side-nav { display: grid; gap: 3px; width: 100%; min-width: 0; transform-origin: top center; }
.side-nav.is-opening:not([hidden]) > * { animation: nav-item-enter 120ms ease-out both; }
.side-nav.is-opening > :nth-child(2) { animation-delay: 18ms; }
.side-nav.is-opening > :nth-child(3) { animation-delay: 36ms; }
.side-nav.is-opening > :nth-child(4) { animation-delay: 54ms; }
.side-nav.is-opening > :nth-child(5) { animation-delay: 72ms; }
.side-nav.is-opening > :nth-child(6) { animation-delay: 90ms; }
@keyframes nav-item-enter { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
    .side-nav.is-opening:not([hidden]) > * { animation: none; }
}
.nav-entry { display: flex; align-items: center; gap: 3px; min-width: 0; }
.nav-entry .nav-item { flex: 1; min-width: 0; }
.nav-add { position: relative; display: block; flex: 0 0 23px; width: 23px; height: 23px; padding: 0; border: 1px solid transparent; border-radius: 4px; color: #65758c; background: transparent; font-size: 0; appearance: none; opacity: .6; }
.nav-add::before, .nav-add::after { position: absolute; top: 50%; left: 50%; background: currentColor; content: ''; transform: translate(-50%, -50%); }
.nav-add::before { width: 9px; height: 1px; }
.nav-add::after { width: 1px; height: 9px; }
.nav-add:hover, .nav-add:focus-visible, .nav-add.is-added { border-color: #4c6ca9; color: #a8beff; background: rgba(75, 124, 255, .12); opacity: 1; }
.nav-item { display: flex; align-items: center; justify-content: flex-start; gap: 8px; width: 100%; min-width: 0; min-height: 40px; padding: 3px 10px; border: 1px solid transparent; border-radius: 7px; color: #758297; background: transparent; appearance: none; text-align: left; font: 600 11px/1.3 var(--sans); }
.nav-item > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.side-nav a.nav-item { text-decoration: none; }
.report-nav-toggle { margin-top: 0; }
.nav-item:hover { color: #c8d1dc; background: #101720; }
.nav-item.is-active { border-color: rgba(75, 124, 255, .17); color: #eef3f9; background: linear-gradient(90deg, rgba(48, 86, 188, .24), rgba(25, 38, 58, .18)); box-shadow: inset 2px 0 #4b7cff; }
.nav-item b { color: #536176; font: 700 9px var(--mono); }
.nav-glyph { display: grid; place-items: center; flex: 0 0 29px; width: 29px; height: 29px; border-radius: 6px; color: #6d91ff; background: rgba(75, 124, 255, .08); font-size: 13px; }
.nav-glyph svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-glyph--cyan { color: var(--cyan); background: rgba(36, 200, 217, .08); }
.nav-glyph--blue { color: var(--blue); background: rgba(75, 124, 255, .08); }
.nav-glyph--green { color: var(--green); background: rgba(71, 220, 155, .08); }
.nav-glyph--violet { color: var(--violet); background: rgba(157, 120, 255, .08); }
.nav-glyph--orange { color: var(--orange); background: rgba(246, 169, 80, .08); }
.nav-glyph--red { color: var(--red); background: rgba(255, 97, 116, .08); }
.main-content { min-width: 0; background: radial-gradient(circle at 70% -10%, rgba(63, 92, 164, .1), transparent 29%), #090c12; }
.activity-page .main-content { background: radial-gradient(circle 460px at 70% -70px, rgba(63, 92, 164, .1), transparent 100%), #090c12; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 67px; padding: 0 clamp(20px, 3.2vw, 47px); border-bottom: 1px solid #171e29; background: rgba(9, 13, 19, .75); }
.breadcrumbs { display: flex; align-items: center; gap: 9px; color: #465367; font: 9px var(--mono); }
.breadcrumbs i { color: #2e3949; font-style: normal; }
.breadcrumbs b { color: #738197; font-weight: 400; }
.breadcrumbs strong { color: #b5c0cf; font-weight: 700; }
.profile { display: flex; align-items: center; gap: 10px; }
.profile-avatar { display: block; width: 34px; height: 34px; border: 1px solid #31415a; border-radius: 8px; background: #182238; image-rendering: pixelated; }
.player-head { flex: 0 0 auto; width: 20px; height: 20px; border: 1px solid #2a3b56; border-radius: 4px; background: #182238; image-rendering: pixelated; }
.profile b, .profile small { display: block; }
.profile b { font-size: 10px; }
.profile small { margin-top: 3px; color: #5b687b; font-size: 8px; }
.profile form { margin-left: 5px; }
.profile button { width: 31px; height: 31px; border: 1px solid #202936; border-radius: 7px; color: #68768a; background: #0e131b; }
.profile button:hover { color: #ff7181; border-color: rgba(255, 97, 116, .28); }
.mobile-menu { display: none; border: 0; color: #9aa9bd; background: transparent; font-size: 19px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 17px clamp(12px, 2vw, 28px) 13px; }
.page-heading h1 { margin: 3px 0; font-size: clamp(27px, 3vw, 39px); letter-spacing: -.045em; }
.page-heading h1 em { color: #6d91ff; font-style: normal; font-weight: 500; }
.home-page .server-select-label b { color: #aebed2; }
.panel-management__heading { cursor: default; }
.panel-management__heading:hover { border-color: transparent; color: #647186; background: transparent; }
.home-heading { align-items: end; padding-top: 22px; padding-bottom: 20px; }
.home-heading h1 { margin: 0; }
.home-heading p { max-width: 650px; margin: 8px 0 0; color: #728198; font-size: 11px; }
.home-heading .secondary-button { flex: 0 0 auto; }
.home-groups { display: grid; gap: 24px; padding: 0 clamp(12px, 2vw, 28px) 40px; }
.home-group { min-width: 0; padding: 18px; border: 1px solid #202b3b; border-radius: 11px; background: linear-gradient(145deg, rgba(18, 27, 39, .8), rgba(10, 16, 24, .7)); scroll-margin-top: 16px; }
.home-group__heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 18px; }
.home-group__title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 6px; }
.home-group__heading h2 { margin: 0; color: #e4eaf3; font-size: 18px; }
.home-group__online { display: inline-flex; align-items: center; gap: 7px; color: #8fa3b8; font-size: 10px; white-space: nowrap; }
.home-group__online-dot { width: 6px; height: 6px; border-radius: 50%; background: #66788c; }
.home-group__online.has-data .home-group__online-dot { background: var(--green); box-shadow: 0 0 7px rgba(71, 220, 155, .45); }
.home-group__online strong { color: #b8efd4; font: 700 11px var(--mono); }
.home-group__online:not(.has-data) strong { color: #8fa3b8; }
.home-group__links { display: flex; align-items: center; gap: 9px; }
.home-group__links a { padding: 8px 10px; border: 1px solid #263348; border-radius: 6px; color: #9fb5d6; background: #111a27; font-size: 9px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.home-group__links a:hover { border-color: #5b7db4; color: #f1f5fb; }
.home-group .performance-tiles { min-height: 80px; }
.home-group .performance-empty { grid-column: 1 / -1; }
@media (max-width: 780px) {
    .home-heading { align-items: start; }
    .home-group { padding: 14px; }
}
.live-control { display: flex; align-items: center; gap: 11px; min-width: 205px; padding: 10px 10px 10px 14px; border: 1px solid #1d2835; border-radius: 8px; background: #0d131b; }
.live-control > span:nth-child(2) { flex: 1; }
.live-control b, .live-control small { display: block; }
.live-control b { color: #8c9aab; font-size: 9px; }
.live-control small { margin-top: 3px; color: #4b5769; font-size: 8px; }
.live-control button { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #253143; border-radius: 6px; color: #75859b; background: #121923; }
.live-control .live-control__hint { display: inline; width: auto; height: auto; padding: 0; border: 0; border-radius: 0; color: inherit; background: none; font: inherit; text-align: left; cursor: default; appearance: none; }
.live-control__pause { display: flex; align-items: center; gap: 4px; height: 14px; }
.live-control__pause::before, .live-control__pause::after { width: 4px; height: 13px; border-radius: 1px; background: currentColor; content: ''; }
.live-control.is-paused .live-control__pause, .live-control:not(.is-paused) .live-control__play { display: none; }
.live-control.is-paused .live-dot { background: var(--orange); box-shadow: 0 0 11px rgba(246, 169, 80, .4); }

/* Performance */
.performance-heading { align-items: end; padding-top: 22px; padding-bottom: 18px; }
.performance-heading h1 { margin: 0; }
.performance-heading p { margin: 8px 0 0; color: #728198; font-size: 11px; }
.performance-preview-trigger { padding: 0; border: 0; color: inherit; background: none; font: inherit; text-align: inherit; cursor: inherit; }
.performance-preview-trigger:focus-visible { outline: 1px solid #728198; outline-offset: 2px; border-radius: 2px; }
.performance-content { padding: 0 clamp(12px, 2vw, 28px) 36px; }
.performance-section-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin: 4px 0 13px; }
.performance-section-title h2 { margin: 0; color: #e4eaf3; font-size: 17px; }
.performance-section-title span { color: #66758a; font-size: 9px; }
.performance-section-title--charts { margin-top: 31px; }
.performance-preview-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 19px 0 11px; }
.performance-preview-heading h3 { margin: 0; color: #cdd7e5; font-size: 12px; }
.performance-preview-heading span { color: #66758a; font-size: 9px; }
.performance-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 12px; min-height: 110px; }
.performance-tiles .loading-state { grid-column: 1 / -1; min-height: 110px; }
.performance-tile { --tile-color: #3c4b60; position: relative; display: flex; flex-direction: column; gap: 13px; min-height: 172px; padding: 15px; border: 1px solid var(--tile-color); border-radius: 10px; color: #dfe7f0; background: linear-gradient(145deg, #141d27, #0d141d); box-shadow: inset 0 0 0 1px rgba(255,255,255,.02); text-align: left; transition: transform .16s, background .16s; }
.performance-tile:hover { transform: translateY(-2px); background: #192431; }
.performance-tile--static { cursor: default; }
.performance-tile--static:hover { transform: none; }
.performance-tile--good { --tile-color: #3acb89; }
.performance-tile--warning { --tile-color: #e0c34c; }
.performance-tile--orange { --tile-color: #FF4500; }
.performance-tile--bad { --tile-color: #B22222; animation: bad-tile 1.5s ease-in-out infinite; }
.performance-tile--critical { --tile-color: #8B0000; animation: critical-tile 1.5s ease-in-out infinite; }
.performance-tile--severe { --tile-color: #8B0000; background: linear-gradient(145deg, #26151b, #130f16); animation: severe-tile 1.4s ease-in-out infinite; }
.performance-tile--severe:hover { background: linear-gradient(145deg, #301920, #1a1119); }
.performance-tile--severe .performance-tile__tps b { color: #ff777a; }
.performance-tile--offline { --tile-color: #ffd4d8; border-color: #f15b6b; background: linear-gradient(145deg, #822534, #4a111d); box-shadow: inset 0 0 0 1px rgba(255, 160, 170, .13); animation: none; }
.performance-tile--offline:hover { background: linear-gradient(145deg, #942b3d, #591623); }
.performance-tile--offline .performance-tile__name { padding-right: 58px; }
.performance-tile--offline .performance-tile__stats { border-top-color: rgba(255, 190, 196, .27); }
.performance-tile--offline .performance-tile__stat, .performance-tile--offline .performance-tile__tps small { color: #efb7bf; }
.performance-tile--offline .performance-tile__stat b { color: #fff0f1; }
.performance-tile__offline { position: absolute; top: 12px; right: 11px; padding: 4px 5px; border: 1px solid #ff9ba6; border-radius: 4px; color: #fff; background: #bb3347; font: 700 8px/1 var(--mono); letter-spacing: .04em; }
@keyframes bad-tile { 50% { box-shadow: 0 0 8px rgba(178, 34, 34, .375), inset 0 0 0 1px rgba(178, 34, 34, .2); } }
@keyframes critical-tile { 50% { box-shadow: 0 0 16px rgba(139, 0, 0, .75), inset 0 0 0 1px rgba(139, 0, 0, .4); } }
@keyframes severe-tile { 50% { border-color: #f0525d; box-shadow: 0 0 22px rgba(185, 0, 20, .68), inset 0 0 0 1px rgba(255, 106, 115, .38); } }
@media (prefers-reduced-motion: reduce) { .performance-tile--bad, .performance-tile--critical, .performance-tile--severe { animation: none; border-width: 2px; } }
.performance-tile__name { overflow: hidden; color: #dfe7f3; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.performance-tile__tps { display: flex; align-items: baseline; gap: 7px; }
.performance-tile__tps b { color: var(--tile-color); font: 700 27px/1 var(--mono); }
.performance-tile__tps small { color: #718198; font-size: 8px; }
.performance-tile__tick { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid #263242; color: #8d9fb2; font-size: 9px; }
.performance-tile__tick-label { display: grid; gap: 3px; min-width: 0; }
.performance-tile__tick-label small { color: #718198; font-size: 8px; }
.performance-tile__tick b { color: #cad5e2; font: 600 12px var(--mono); white-space: nowrap; }
.performance-tile--offline .performance-tile__tick { border-top-color: rgba(255, 190, 196, .27); color: #efb7bf; }
.performance-tile--offline .performance-tile__tick-label small { color: #e1aab3; }
.performance-tile--offline .performance-tile__tick b { color: #fff0f1; }
.performance-tile__stats { display: grid; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid #263242; }
.performance-tile__stat { display: flex; justify-content: space-between; gap: 7px; color: #77889c; font-size: 9px; }
.performance-tile__stat b { color: #c5d1df; white-space: nowrap; }
.performance-tile__stat--online { margin-top: 2px; padding-top: 8px; border-top: 1px solid rgba(101, 132, 159, .2); color: #9aafbf; }
.performance-tile__stat--online > span { display: inline-flex; align-items: center; gap: 7px; }
.performance-tile__stat--online > span::before { width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: #58b891; box-shadow: 0 0 5px rgba(88, 184, 145, .35); content: ''; }
.performance-tile__stat--online b { color: #aebdca; font-weight: 600; }
.performance-tile--offline .performance-tile__stat--online { border-top-color: rgba(255, 190, 196, .27); }
.performance-tile--offline .performance-tile__stat--online > span::before { background: #ef9da8; box-shadow: none; }
.performance-tile--offline .performance-tile__stat--online b { color: #e8c8ce; }
.performance-tile--no-data .performance-tile__stat--online > span::before { background: #69798d; box-shadow: none; }
.performance-tile__missing { margin-top: -9px; color: #8b99ab; font-size: 8px; }
.performance-empty { grid-column: 1 / -1; margin: 0; padding: 27px; border: 1px solid #283346; border-radius: 9px; color: #8b99aa; background: #0d141d; font-size: 11px; }
.performance-panel { border: 1px solid #1c2532; border-radius: 10px; background: #0c1118; }
.performance-panel__toolbar { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px 12px; padding: 15px 17px 0; }
.period-switch { display: flex; flex: 1 1 340px; flex-wrap: wrap; gap: 6px; }
.period-switch button { min-height: 32px; padding: 0 13px; border: 1px solid #263348; border-radius: 6px; color: #8191a7; background: #111923; font-size: 10px; }
.period-switch button:hover, .period-switch button.is-active { border-color: #5578d4; color: #e0e9ff; background: rgba(75, 124, 255, .18); }
.performance-refresh { min-height: 32px; margin-left: auto; white-space: nowrap; font-size: 10px; }
.performance-filters { display: grid; grid-template-columns: repeat(2, minmax(130px, 1fr)) repeat(2, minmax(155px, 1fr)) auto auto; align-items: end; gap: 10px; padding: 14px 17px 17px; border-bottom: 1px solid #1b2431; }
.performance-filters label { display: grid; gap: 7px; min-width: 0; color: #78879b; font-size: 9px; font-weight: 700; }
.performance-filters select, .performance-filters input { width: 100%; height: 38px; min-width: 0; padding: 0 9px; border: 1px solid #263348; border-radius: 6px; color: #c6d2e1; background: #101720; font-size: 10px; }
.performance-filters .primary-button { min-height: 38px; white-space: nowrap; }
.performance-filters .secondary-button { min-height: 38px; white-space: nowrap; }
.performance-error { margin: 17px; padding: 12px 14px; border: 1px solid rgba(255, 97, 116, .35); border-radius: 7px; color: #ff91a0; background: rgba(255, 97, 116, .08); font-size: 10px; }
.performance-chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; padding: 17px; }
.performance-chart-grid > .loading-state { grid-column: 1 / -1; min-height: 220px; }
.performance-chart { position: relative; min-width: 0; padding: 15px; border: 1px solid #253143; border-radius: 9px; background: #101720; }
.performance-chart:hover { z-index: 2; }
.performance-chart__header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.performance-chart h3 { margin: 0; color: #e1e9f5; font-size: 12px; }
.performance-chart__latest { color: #9cadc3; font: 11px var(--mono); white-space: nowrap; }
.performance-chart__average-hint { text-decoration: underline dotted; text-underline-offset: 2px; cursor: help; }
.performance-chart__svg { display: block; width: 100%; height: auto; min-height: 170px; overflow: visible; cursor: crosshair; touch-action: none; user-select: none; }
.performance-chart__grid { stroke: #293648; stroke-width: 1; stroke-dasharray: 3 5; }
.performance-chart__axis { fill: #68788d; font: 10px var(--mono); }
.performance-chart__line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.performance-chart__cursor { stroke: #b2c8ff; stroke-width: 1.5; stroke-dasharray: 4 4; pointer-events: none; }
.performance-chart__focus { fill: #e2ebff; stroke: #1a2a47; stroke-width: 2; pointer-events: none; }
.performance-chart__plot { position: relative; }
.performance-chart__tooltip { position: absolute; z-index: 3; width: min(220px, calc(100% - 12px)); padding: 10px; border: 1px solid #5470a1; border-radius: 7px; color: #b8c7da; background: #111a28; box-shadow: 0 12px 34px rgba(0, 0, 0, .6); pointer-events: none; }
.performance-chart__tooltip-close { display: none; position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; padding: 0; border: 1px solid #546a8b; border-radius: 5px; color: #dce6f4; background: #1a2840; font-size: 18px; line-height: 1; pointer-events: auto; }
.performance-chart__tooltip.is-touch .performance-chart__tooltip-close { display: block; }
.performance-chart__tooltip.is-touch .performance-chart__tooltip-header { padding-right: 30px; }
.performance-chart__tooltip-header { display: grid; gap: 3px; padding-bottom: 8px; border-bottom: 1px solid #32435c; }
.performance-chart__tooltip-header b { color: #edf2fb; font-size: 10px; }
.performance-chart__tooltip-header time { color: #8c9db4; font: 8px var(--mono); }
.performance-chart__tooltip-row { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; font-size: 8px; }
.performance-chart__tooltip-row b { color: #dce6f4; font: 600 8px var(--mono); white-space: nowrap; }
.performance-chart__tooltip-row.is-primary { margin: 5px -4px; padding: 7px 4px; border-radius: 4px; color: #e1ebff; background: #243759; font-size: 9px; font-weight: 700; }
.performance-chart__tooltip-row.is-primary b { color: #fff; font-size: 10px; }
.performance-chart__tooltip-meta { display: block; margin-top: 6px; padding-top: 6px; border-top: 1px solid #32435c; color: #72849e; font: 7px/1.35 var(--mono); overflow-wrap: anywhere; }
.performance-chart__empty { display: grid; place-items: center; min-height: 178px; margin: 0; color: #6b7b8d; font-size: 10px; }
.performance-chart__legend { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 7px; }
.performance-chart__legend button { padding: 3px 5px; border: 1px solid transparent; border-radius: 4px; color: #8798ad; background: transparent; font-size: 8px; }
.performance-chart__legend button:hover, .performance-chart__legend button:focus-visible { border-color: #4d70c6; color: #e5ebff; background: rgba(75, 124, 255, .12); }
.performance-chart__legend button.is-selected { border-color: var(--series-color); color: #f1f5ff; background: rgba(75, 124, 255, .17); box-shadow: 0 0 8px var(--series-color); }
.performance-chart__legend button::before { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--series-color); content: ''; }
@media (max-width: 1500px) { .performance-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .performance-chart-grid { grid-template-columns: 1fr; } }
@media (max-width: 780px) { .performance-heading { align-items: start; } .performance-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .performance-filters .primary-button { justify-content: center; } }
@media (max-width: 780px) {
    .performance-panel__toolbar { display: grid; grid-template-columns: minmax(0, 1fr); }
    .performance-refresh { grid-row: 1; justify-self: end; margin-left: 0; }
    .period-switch { grid-row: 2; min-width: 0; }
}
@media (max-width: 500px) { .performance-filters { grid-template-columns: 1fr; } .performance-chart-grid { padding: 10px; } }

.log-panel { margin: 0 clamp(12px, 2vw, 28px) 34px; border: 1px solid #1c2532; border-radius: 10px; background: #0c1118; box-shadow: 0 24px 80px rgba(0,0,0,.18); }
.toolbar { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 65px; padding: 12px 14px; border-bottom: 1px solid #1b2431; }
.search-control { position: relative; display: flex; align-items: center; width: min(420px, 42vw); height: 40px; }
.search-control .search-mode-toggle { position: relative; display: flex; flex: 0 0 126px; align-items: center; justify-content: space-between; gap: 6px; height: 100%; padding: 0 10px 0 36px; border: 1px solid #30425c; border-right: 0; border-radius: 7px 0 0 7px; color: #b5c7e2; background: #142237; font-size: 9px; font-weight: 700; text-align: left; transition: color .15s, background-color .15s, box-shadow .15s; }
.search-control .search-mode-toggle::before { position: absolute; top: 50%; left: 12px; width: 15px; height: 15px; background: currentColor; content: ''; transform: translateY(-50%); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M16 16l5 5'/%3E%3C/svg%3E") center / contain no-repeat; }
.search-control .search-mode-toggle::after { flex: 0 0 auto; color: #7e9bc9; content: '⇄'; font-size: 13px; font-weight: 400; line-height: 1; }
.search-control .search-mode-toggle:hover, .search-control .search-mode-toggle:focus-visible { color: #edf3ff; background: #1d3150; box-shadow: inset 0 0 0 1px rgba(109, 145, 255, .22); }
.search-control input[type="search"] { min-width: 0; flex: 1; height: 100%; padding: 0 40px 0 12px; border: 1px solid #222d3d; border-radius: 0 7px 7px 0; outline: 0; background: #090e14; font-size: 10px; }
.search-control input[type="search"]::-webkit-search-cancel-button { display: none; }
.search-control input::placeholder { color: #465265; }
.search-control input:focus { border-color: #3e61bd; box-shadow: 0 0 0 3px rgba(75, 124, 255, .08); }
.search-clear { position: absolute; right: 6px; display: grid; place-items: center; width: 29px; height: 29px; padding: 0; border: 1px solid transparent; border-radius: 5px; color: #8798ae; background: transparent; font-size: 20px; line-height: 1; }
.search-clear:hover, .search-clear:focus-visible { border-color: #344966; color: #e4ecff; background: #1b2b44; }
.filter-toggle { display: flex; align-items: center; gap: 7px; }
.filter-toggle i { font-style: normal; transition: transform .18s; }
.filter-toggle.is-active { border-color: #4d70c6; color: #e3eaff; background: rgba(75, 124, 255, .16); box-shadow: 0 0 0 3px rgba(75, 124, 255, .07); }
.filter-toggle.is-active i { color: #91aaff; transform: rotate(180deg); }
.filter-badge { display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; color: white; background: #476fe1; font: 7px var(--mono); }
.active-filters { display: flex; flex: 0 0 100%; flex-wrap: wrap; gap: 6px; padding-top: 3px; }
.quick-filter-chip { display: inline-flex; align-items: center; gap: 9px; max-width: min(260px, 100%); min-height: 29px; padding: 0 8px; border: 1px solid #4d70c6; border-radius: 6px; color: #b8c9ff; background: rgba(75, 124, 255, .13); font: 9px var(--mono); }
.quick-filter-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-filter-chip b { flex: 0 0 auto; color: #8da8fa; font-size: 14px; line-height: 1; }
.quick-filter-chip:hover { border-color: #85a2fa; color: #e5ebff; background: rgba(75, 124, 255, .22); }
.filter-drawer { position: absolute; z-index: 8; top: calc(100% - 7px); left: 14px; right: 14px; display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 13px; padding: 17px; border: 1px solid #28364a; border-radius: 9px; background: #111821; box-shadow: 0 20px 60px rgba(0,0,0,.45); transform-origin: top center; }
.filter-drawer label { display: grid; gap: 7px; color: #6c7a8e; font-size: 8px; font-weight: 700; }
.filter-drawer label > span small { color: #4d596b; font-weight: 400; }
.filter-drawer input, .filter-drawer select { width: 100%; height: 37px; padding: 0 10px; border: 1px solid #263246; border-radius: 6px; outline: 0; background: #0b1017; font-size: 9px; }
.filter-drawer input:focus, .filter-drawer select:focus { border-color: #456bd4; }
.filter-drawer label.has-value > span { color: #9bb2ff; }
.filter-drawer label.has-value > span::after { display: inline-block; width: 5px; height: 5px; margin-left: 7px; border-radius: 50%; background: #6d91ff; box-shadow: 0 0 8px rgba(109, 145, 255, .8); content: ""; vertical-align: 1px; }
.filter-drawer label.has-value input, .filter-drawer label.has-value select { border-color: #5579dc; color: #e5ebff; background: rgba(46, 74, 139, .2); box-shadow: inset 3px 0 #6d91ff, 0 0 0 2px rgba(75, 124, 255, .08); }
.filter-wide { grid-column: span 2; }
.filter-actions { grid-column: span 2; display: flex; align-items: end; justify-content: flex-end; gap: 12px; }
.reset-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 13px; border: 1px solid #3c4657; border-radius: 7px; color: #b7c3d4; background: #19212d; font-size: 10px; font-weight: 700; transition: border-color .15s, background .15s, color .15s; }
.reset-button span { color: #8da8fa; font-size: 16px; line-height: 1; }
.reset-button:hover, .reset-button:focus-visible { border-color: #748ed3; color: #f3f6ff; background: #26354e; }
.activity-page { --activity-row-columns: 56px 76px 118px 180px minmax(360px, 1fr) 38px; }
.log-table-head, .log-row { display: grid; grid-template-columns: var(--activity-row-columns); column-gap: 8px; align-items: center; }
.log-table-head { min-height: 37px; padding: 0 8px 0 10px; border-bottom: 1px solid #18212d; color: #424f62; font: 700 7px var(--mono); letter-spacing: .12em; }
.log-row { position: relative; min-height: 62px; padding: 7px 8px 7px 10px; border-bottom: 1px solid #171f2a; color: #aab5c3; background: transparent; text-align: left; }
.log-row:hover { background: #101722; }
.log-time { display: grid; gap: 4px; color: #8f9daf; font: 9px var(--mono); }
.log-time small { color: #465365; font-size: 7px; }
.log-server { overflow: hidden; padding-right: 3px; color: #8795a8; font: 8px/1.35 var(--mono); overflow-wrap: anywhere; }
.row-filter-link { max-width: 100%; padding: 0; border: 0; color: inherit; background: none; font: inherit; text-align: left; cursor: pointer; }
.row-filter-link:hover, .row-filter-link:focus-visible { color: #a9bfff; text-decoration: underline; text-underline-offset: 2px; }
.event-tag { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 5px 8px; border-radius: 5px; color: #7e91ad; background: rgba(109, 125, 148, .09); font-size: 8px; font-weight: 700; }
.event-tag::before { width: 5px; height: 5px; content: ""; border-radius: 50%; background: currentColor; }
.event-tag--filter { border: 0; font-family: inherit; text-align: left; cursor: pointer; }
.event-tag--filter:hover, .event-tag--filter:focus-visible { outline: 1px solid currentColor; outline-offset: 2px; }
.event-tag--global_chat { color: #009900; background: rgba(0, 153, 0, .12); }
.event-tag--local_chat { color: #FFCF48; background: rgba(255, 207, 72, .11); }
.event-tag--private_message { color: #6d91ff; background: rgba(75, 124, 255, .11); }
.event-tag--player_command { color: #b08fff; background: rgba(157, 120, 255, .1); }
.event-tag--player_join { color: #C7FCEC; background: rgba(199, 252, 236, .1); }
.event-tag--player_leave { color: #FF9BAA; background: rgba(255, 155, 170, .11); }
.event-tag--player-server-switch { color: #99FF99; background: rgba(153, 255, 153, .1); }
.event-tag--error { color: #ff7585; background: rgba(255, 97, 116, .1); }
.event-tag--fatal { color: #ff5065; background: rgba(255, 61, 82, .13); }
.log-source { overflow: hidden; padding-right: 7px; color: #484f59; font: 8px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.log-source b { display: block; overflow: hidden; margin-bottom: 3px; color: #929ba7; font: 600 9px var(--sans); text-overflow: ellipsis; }
.log-source--player { display: flex; align-items: center; gap: 6px; min-width: 0; }
.log-source--player b { min-width: 0; margin-bottom: 0; }
.log-message { min-width: 0; padding-right: 6px; }
.log-message p { display: -webkit-box; overflow: hidden; margin: 0; color: #a7b3c2; font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.log-message p.command-text { color: #bba6ff; font-family: var(--mono); }
.log-message small { display: block; overflow: hidden; margin-top: 4px; color: #343b46; font: 7px var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.coordinate-copy--list { display: block; overflow: hidden; max-width: 100%; margin-top: 4px; padding: 0; border: 0; color: #465365; background: transparent; font: 7px/1.4 var(--mono); text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: copy; }
.log-message > .coordinate-copy--list { color: #343b46; }
.coordinate-copy--list:hover, .coordinate-copy--list:focus-visible { color: #a9bfff; text-decoration: underline; text-underline-offset: 2px; }
.coordinate-copy--list.is-copied { color: #70d2a1; }
.row-arrow { display: grid; place-items: center; align-self: center; justify-self: center; width: 36px; height: 38px; padding: 0; border: 1px solid transparent; border-radius: 6px; color: #65758c; background: transparent; font-size: 0; line-height: 1; }
.row-arrow::before { content: ''; width: 9px; height: 9px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: translateX(-2px) rotate(45deg); }
.row-arrow:hover, .row-arrow:focus-visible { border-color: #33476a; color: #91aaff; background: rgba(75, 124, 255, .1); transform: translateX(2px); }
.row-arrow:focus-visible { outline: 2px solid rgba(109, 145, 255, .45); outline-offset: 2px; }
.loading-state, .empty-state, .error-state { display: grid; place-items: center; min-height: 260px; padding: 40px; color: #5a687c; text-align: center; }
.loading-state p, .empty-state p, .error-state p { margin: 12px 0 0; font-size: 10px; }
.empty-state > span, .error-state > span { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #263143; border-radius: 50%; color: #66768e; background: #111822; font-size: 20px; }
.empty-state h2, .error-state h2 { margin: 16px 0 0; color: #a5b0bf; font-size: 14px; }
.error-state > span { color: var(--red); border-color: rgba(255, 97, 116, .22); }
.error-state .secondary-button { margin-top: 17px; }
.spinner { display: block; width: 22px; height: 22px; border: 2px solid #27344a; border-top-color: #6289f6; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.log-footer { display: flex; align-items: center; justify-content: space-between; min-height: 53px; padding: 9px 16px; color: #4c596c; font: 8px var(--mono); }
.log-footer__controls { display: flex; align-items: center; gap: 12px; }
.page-size-control { display: flex; align-items: center; gap: 7px; color: #59677a; }
.page-size-control select { height: 30px; padding: 0 24px 0 9px; border: 1px solid #263348; border-radius: 6px; outline: 0; color: #9aa9bc; background: #111822; font: 9px var(--mono); }
.page-size-control select:hover, .page-size-control select:focus { border-color: #496bb9; color: #dbe5ff; }
.pagination, .page-tabs { display: flex; align-items: center; gap: 5px; }
.pagination button { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border: 1px solid #263348; border-radius: 6px; color: #8998ad; background: #111822; font: 9px var(--mono); }
.pagination > button { font-size: 18px; }
.pagination button:hover:not(:disabled), .pagination button.is-active { border-color: #496bb9; color: #dbe5ff; background: rgba(75, 124, 255, .14); }
.pagination button.is-active { cursor: default; }
.pagination button:disabled { cursor: default; opacity: .35; }
.page-tabs i { padding: 0 2px; color: #59677a; font-style: normal; }
.page-jump { position: relative; display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; }
.page-jump__field, .page-jump__input-wrap { display: inline-flex; align-items: center; }
.page-jump__field { gap: 6px; cursor: text; }
.page-jump__label { color: #8998ad; font: 9px var(--mono); }
.page-jump__input-wrap { position: relative; }
.page-jump input { width: 57px; height: 30px; padding: 0 19px 0 5px; border: 1px solid #49618b; border-radius: 6px; outline: 0; color: #dbe5ff; background: #142034; font: 10px var(--mono); text-align: center; cursor: text; appearance: textfield; }
.page-jump__edit { position: absolute; right: 6px; color: #8199c1; font-size: 11px; pointer-events: none; }
.page-jump__field:hover input { border-color: #7899ef; }
.page-jump input::-webkit-inner-spin-button, .page-jump input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.page-jump input:focus-visible { border-color: #7899ef; outline: 2px solid rgba(120, 153, 239, .28); }
@media (min-width: 781px) { .page-jump button[type="submit"] { display: none; } }
.page-jump__status { position: fixed; z-index: 25; left: 50%; bottom: 18px; width: max-content; max-width: calc(100vw - 24px); padding: 8px 11px; transform: translateX(-50%); border: 1px solid #354565; border-radius: 7px; color: #c5d2e3; background: #121c2b; box-shadow: 0 12px 35px rgba(0, 0, 0, .4); font: 9px/1.4 var(--sans); white-space: normal; }

/* Modal */
.special-search-control input[type="search"] { width: 100%; }
.special-filter-drawer { grid-template-columns: repeat(3, minmax(120px, 1fr)); }
.special-filter-drawer .filter-actions { grid-column: 1 / -1; }
.special-active-filters { flex-wrap: nowrap; min-width: 0; overflow-x: auto; padding: 4px 0 2px; }
.special-active-filters .quick-filter-chip { flex: 0 0 auto; }
.special-table-head, .special-row { display: grid; grid-template-columns: var(--activity-row-columns); column-gap: 8px; align-items: center; }
.special-table-head { min-height: 37px; padding: 0 10px; border-bottom: 1px solid #18212d; color: #424f62; font: 700 7px var(--mono); letter-spacing: .12em; }
.special-row { width: 100%; min-height: 62px; padding: 7px 8px 7px 10px; border: 0; border-bottom: 1px solid #171f2a; color: #aab5c3; background: transparent; text-align: left; }
.special-row:hover { background: #101722; }
.special-time { min-width: 0; }
.special-tag { max-width: 100%; overflow: hidden; color: #efbc89; background: rgba(255,145,63,.11); text-overflow: ellipsis; white-space: nowrap; }
.special-tag--creative { color: #c6a5ff; background: rgba(164,117,255,.12); }
.special-tag--damage-quit { color: #ff9b9b; background: rgba(255,102,102,.11); }
.special-tag--drop-quit { color: #f0c477; background: rgba(234,177,73,.11); }
.special-tag--dead-quit { color: #f17f91; background: rgba(241,77,104,.12); }
.special-name { overflow: hidden; color: #929ba7; font: 600 9px var(--sans); text-overflow: ellipsis; }
.special-name .row-filter-link { font-weight: 600; }
.special-name--player { display: flex; align-items: center; gap: 6px; min-width: 0; }
.special-name__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.special-name small { display: block; margin-top: 3px; color: #75849a; font-size: 8px; font-weight: 400; }
.special-server { min-width: 0; overflow: visible; padding-right: 3px; color: #8795a8; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
.special-summary { min-width: 0; overflow: hidden; padding-right: 6px; }
.special-summary__main { display: -webkit-box; overflow: hidden; color: #a7b3c2; font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.special-summary__location { display: flex; align-items: center; gap: 5px; min-width: 0; overflow-x: auto; margin-top: 4px; color: #465365; font: 7px var(--mono); white-space: nowrap; }
.special-summary__location .coordinate-copy--list { flex: 0 0 auto; max-width: none; margin-top: 0; }
@media (max-width: 1170px) {
    .special-table-head { display: none; }
    .special-row { grid-template-columns: 88px minmax(0, 1fr) 38px; gap: 6px; min-height: 105px; }
    .special-time { grid-column: 1; grid-row: 1; }
    .special-tag { grid-column: 2; grid-row: 1; }
    .special-name { grid-column: 2; grid-row: 2; }
    .special-server { grid-column: 1; grid-row: 2; }
    .special-summary { grid-column: 1 / 3; grid-row: 3; }
    .special-arrow { grid-column: 3; grid-row: 1 / 4; }
}
@media (max-width: 600px) {
    .special-toolbar > .secondary-button { flex: 1 1 auto; justify-content: center; }
    .special-row { padding: 12px; }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.dialog-window { max-height: calc(100vh - 32px); padding: 0; color: var(--text); box-shadow: 0 30px 100px rgba(0, 0, 0, .65); }
.dialog-window::backdrop { background: rgba(2, 4, 8, .78); backdrop-filter: blur(5px); }
.dialog-card > header button { display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; padding: 0; }
.dialog-card > header button svg { display: block; width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.export-modal { width: min(520px, calc(100vw - 32px)); border: 1px solid #354565; border-radius: 12px; background: #0e1520; }
.auto-refresh-modal { width: min(390px, calc(100vw - 32px)); }
.auto-refresh-card .export-count { grid-template-columns: minmax(0, 1fr) 78px; padding-bottom: 20px; }
.export-card > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px 17px; border-bottom: 1px solid #253247; }
.export-card h2 { margin: 7px 0 0; font-size: 20px; }
.export-card > header button { border: 1px solid #2c3a50; border-radius: 7px; color: #91a1b9; background: #151e2b; }
.export-summary { margin: 0; padding: 16px 24px 0; color: #8da0bb; font-size: 11px; }
.export-count { display: grid; grid-template-columns: minmax(0, 1fr) 96px; align-items: center; gap: 16px; padding: 18px 24px 0; color: #c1cede; font-size: 10px; font-weight: 700; }
.export-count small { display: block; margin-top: 4px; color: #8191a7; font-size: 9px; font-weight: 400; }
.export-count input { width: 100%; height: 39px; padding: 0 12px; border: 1px solid #354866; border-radius: 7px; outline: 0; color: #e9effb; background: #111b29; font-size: 12px; text-align: center; appearance: textfield; -moz-appearance: textfield; }
.export-count input::-webkit-inner-spin-button, .export-count input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.export-count input:focus { border-color: #7899ef; box-shadow: 0 0 0 3px rgba(75, 124, 255, .12); }
.export-formats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 18px 24px 24px; border: 0; }
.export-formats label { display: flex; align-items: flex-start; gap: 10px; min-height: 72px; padding: 13px; border: 1px solid #2a374a; border-radius: 8px; background: #121a25; cursor: pointer; }
.export-formats label:hover { border-color: #5273b4; background: #192439; }
.export-formats label:has(input:checked) { border-color: #7497ff; background: rgba(75, 124, 255, .16); box-shadow: inset 0 0 0 1px rgba(116, 151, 255, .2); }
.export-formats input { flex: 0 0 auto; margin: 2px 0 0; accent-color: #7497ff; }
.export-formats b, .export-formats small { display: block; }
.export-formats b { color: #dbe5f4; font-size: 12px; }
.export-formats small { margin-top: 5px; color: #8291a6; font-size: 9px; line-height: 1.35; }
.export-card > footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 16px 24px 20px; border-top: 1px solid #253247; }
.export-card > footer .primary-button { gap: 16px; }
.export-card > footer .primary-button:disabled { cursor: progress; opacity: .65; }
.detail-modal { width: min(780px, calc(100vw - 32px)); max-height: calc(100vh - 50px); border: 1px solid #29374a; border-radius: 11px; background: #0d131b; }
.modal-card > header { display: flex; align-items: center; justify-content: space-between; min-height: 78px; padding: 18px 22px; border-bottom: 1px solid #202a38; }
.modal-card h2 { margin: 8px 0 0; font-size: 18px; }
.modal-card > header button { border: 1px solid #283548; border-radius: 7px; color: #75849a; background: #121923; }
.modal-loading { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 280px; color: #68778b; font-size: 10px; }
#modalContent { max-height: calc(100vh - 150px); overflow: auto; padding: 22px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; overflow: hidden; border: 1px solid #202a38; border-radius: 8px; background: #202a38; }
.detail-grid > div { min-width: 0; padding: 12px 14px; background: #101720; }
.detail-grid dt { margin-bottom: 7px; color: #526075; font: 700 7px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.detail-grid dd { overflow-wrap: anywhere; margin: 0; color: #b3bfcd; font: 9px/1.6 var(--mono); white-space: pre-wrap; }
.detail-grid .detail-wide { grid-column: 1 / -1; }
.detail-grid .detail-pair { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; padding: 0; background: #202a38; }
.detail-pair > div { min-width: 0; padding: 12px 14px; background: #101720; }
.detail-grid .location-tile--world { grid-column: 1; }
.detail-grid .location-tile--coords { grid-column: 2; }
.detail-grid .location-tile--coords dd { overflow-x: auto; white-space: nowrap; }
.detail-grid .location-tile.coordinate-copy { cursor: copy; }
.detail-grid .location-tile.coordinate-copy:hover, .detail-grid .location-tile.coordinate-copy:focus-visible { outline: 1px solid #496bb9; outline-offset: -1px; background: #162236; }
.detail-grid .location-tile.coordinate-copy.is-copied { background: #13291f; }
.detail-empty { color: #465267; font-style: italic; }
.details-section { margin-top: 17px; }
.details-section header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.details-section h3 { margin: 0; color: #8998ab; font-size: 10px; }
.copy-button { padding: 6px 9px; border: 1px solid #2a374a; border-radius: 5px; color: #708096; background: #111821; font-size: 8px; }
.copy-button:disabled { cursor: default; opacity: .35; }
.details-section pre { overflow: auto; max-height: 330px; margin: 0; padding: 15px; border: 1px solid #202b3a; border-radius: 7px; color: #9eabba; background: #080d13; font: 8px/1.7 var(--mono); white-space: pre-wrap; word-break: break-word; }
.details-section pre.detail-empty { color: #465267; font-style: italic; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 30; padding: 11px 15px; border: 1px solid #2f4057; border-radius: 7px; color: #b8c5d5; background: #141c27; box-shadow: 0 12px 35px rgba(0,0,0,.4); font-size: 10px; }
.back-to-top { position: fixed; right: 22px; bottom: 22px; z-index: 20; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid #6084cf; border-radius: 10px; color: #e5edff; background: #1b2c49; box-shadow: 0 10px 28px rgba(0,0,0,.35); font-size: 23px; line-height: 1; }
.back-to-top[hidden] { display: none; }
.back-to-top:hover, .back-to-top:focus-visible { border-color: #9cb7ff; background: #2b4775; transform: translateY(-2px); }

/* Standalone errors */
.error-page { display: grid; place-items: center; background: radial-gradient(circle, rgba(65, 90, 160, .12), transparent 38%), var(--bg); }
.standalone-error { width: min(470px, calc(100vw - 32px)); padding: 50px; border: 1px solid #202b39; border-radius: 12px; background: #0d121a; text-align: center; }
.standalone-error > span { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 18px; border: 1px solid rgba(255,97,116,.24); border-radius: 50%; color: var(--red); background: rgba(255,97,116,.08); font: 700 20px var(--mono); }
.standalone-error > p { color: #4b7cff; font: 700 8px var(--mono); letter-spacing: .2em; }
.standalone-error h1 { margin: 15px 0 10px; font-size: 24px; }
.standalone-error div { margin-bottom: 27px; color: #718095; font-size: 11px; line-height: 1.7; }
.standalone-error .primary-button { text-decoration: none; }

@media (max-width: 1650px) {
    :root { --sidebar: 235px; }
    .activity-page { --activity-row-columns: 56px 76px 108px 157px minmax(280px, 1fr) 36px; }
    .filter-drawer { grid-template-columns: repeat(3, minmax(120px, 1fr)); }
    .filter-actions { grid-column: span 1; }
    .login-shell { grid-template-columns: 1fr 1fr; }
    .login-about { padding: 45px; }
}

@media (max-width: 1170px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: fixed; left: 0; transform: translateX(-105%); width: min(285px, 86vw); transition: transform .2s; box-shadow: 20px 0 80px rgba(0,0,0,.5); }
    .sidebar.is-open { transform: translateX(0); }
    .sidebar.is-open + .sidebar-backdrop { position: fixed; inset: 0; z-index: 9; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(0, 0, 0, .55); cursor: default; }
    .mobile-menu { display: block; }
    .breadcrumbs { margin-right: auto; }
    .topbar { gap: 9px; }
    .profile > span:nth-child(2) { display: none; }
    .page-heading { align-items: flex-start; flex-direction: column; }
    .live-control { width: 100%; }
    .toolbar { flex-wrap: wrap; }
    .search-control { width: 100%; }
    .search-control .search-mode-toggle { flex-basis: 126px; }
    .filter-drawer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .filter-wide, .filter-actions { grid-column: span 2; }
    .log-panel { overflow: hidden; }
    .log-table-head { display: none; }
    .log-row { grid-template-columns: 88px 1fr 38px; gap: 6px; min-height: 105px; }
    .log-time { grid-column: 1; grid-row: 1; }
    .log-row .event-tag { grid-column: 2; grid-row: 1; }
    .log-server { grid-column: 1; grid-row: 2; }
    .log-source { grid-column: 2; grid-row: 2; }
    .log-message { grid-column: 1 / span 2; grid-row: 3; }
    .row-arrow { grid-column: 3; grid-row: 1 / span 3; }
    .login-shell { display: block; }
    .login-about { gap: 32px; padding: 28px; }
    .login-copy { margin: 0; }
    .login-copy h1 { font-size: 46px; }
    .login-card-wrap { padding: 36px 28px; }
}

@media (max-width: 780px) {
    .export-formats { grid-template-columns: 1fr; }
    .topbar .breadcrumbs { display: none; }
    .topbar .profile { margin-left: auto; }
    .page-heading { padding-left: 14px; padding-right: 14px; }
    .log-panel { margin-left: 14px; margin-right: 14px; }
    .log-footer { align-items: flex-start; flex-direction: column; gap: 9px; }
    .log-footer__controls { align-items: flex-start; flex-direction: column; width: 100%; }
    .pagination { max-width: 100%; overflow-x: auto; }
    .filter-drawer { left: 8px; right: 8px; grid-template-columns: 1fr; max-height: 65vh; overflow: auto; }
    .filter-wide, .filter-actions { grid-column: auto; }
    #refreshButton { display: none; }
    .detail-grid { grid-template-columns: 1fr; }
    .detail-grid .detail-wide { grid-column: auto; }
    .detail-grid.has-location { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-grid.has-location > div:not(.location-tile) { grid-column: 1 / -1; }
    .login-copy h1 { font-size: 36px; overflow-wrap: anywhere; }
}
