@font-face {
  font-family: "Golos Text";
  src: url("assets/fonts/GolosText-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Condensed";
  src: url("assets/fonts/RobotoCondensed-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Permanent Marker";
  src: url("assets/fonts/PermanentMarker-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #101011;
  --surface: #171719;
  --raised: #202022;
  --ink: #f7f3ee;
  --muted: #aaa6a2;
  --line: #343336;
  --control-line: #77716c;
  --accent: #ff7845;
  --accent-text: #ffb295;
  --accent-bg: #2b211d;
  --accent-line: #67402f;
  --rail-bg: #141415;
  --online: #9bd4ae;
  --error: #ff9b9b;
  --warning: #e7c376;
  --chat: #b9a7ed;
  --join: #8ccfc2;
  --leave: #f2aa83;
  --server-color: #9dbce2;
  --font: "Golos Text", system-ui, sans-serif;
  --rail: 208px;
  --space: 8px;
  --pad: 32px;
  --radius: 8px;
  --motion: 180ms;
}

*, *::before, *::after { box-sizing: border-box; font-style: normal; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--font); font-synthesis: none; font-variant-numeric: tabular-nums; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
button { color: var(--ink); }
[hidden]:not([hidden="until-found" i]), dialog:not([open]) { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 10; top: 8px; left: 16px; padding: 12px 16px; border: 0; background: var(--ink); color: var(--bg); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.app { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100vh; }
.server-directory .app { display: block; max-width: 1280px; margin-inline: auto; }
.server-directory .rail, .server-directory #server-switch { display: none; }
.server-directory-home { display: none; }
.server-directory .server-directory-home { display: inline-flex; }
.service-announcement { margin: 0; padding: 10px var(--pad); background: #152b42; color: #e1f0ff; border-bottom: 1px solid #417391; white-space: pre-line; overflow-wrap: anywhere; }
.service-announcement[data-preset="warning"] { background: #3f2b15; color: #ffdfac; border-color: #946b32; }
.service-announcement[data-preset="important"] { background: #4c2324; color: #ffe2de; border-color: #a95957; }
.service-announcement[data-preset="success"] { background: #173a2f; color: #ddffe9; border-color: #456e58; }
.players-table th button { display: inline-flex; gap: 5px; align-items: center; border: 0; background: transparent; padding: 5px 1px; text-align: start; }
.players-table th[aria-sort] button { color: var(--accent-text); }
.players-table th[aria-sort="ascending"] button::after { content: "↑"; }
.players-table th[aria-sort="descending"] button::after { content: "↓"; }
.player-permission-switches { max-height: min(50vh, 460px); overflow: auto; margin-top: 12px; }
.rail { display: flex; flex-direction: column; gap: 20px; padding: 12px 12px 20px; background: var(--rail-bg); border-right: 1px solid var(--line); }
.rail-heading { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; line-height: 1.2; font-weight: 700; letter-spacing: -.035em; white-space: nowrap; }
.wordmark span { color: var(--accent); }
.rail .wordmark { margin-left: 4px; }
.rail nav { display: grid; gap: 8px; }
.nav-heading { color: var(--muted); font-size: 11px; padding: 8px 12px 0; }
.icon-button { display: inline-grid; place-items: center; flex: none; min-width: 44px; height: 44px; padding: 8px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); position: relative; }
.icon-button:hover { color: var(--ink); background: var(--raised); }
.collapse-icon { width: 16px; height: 16px; border: 1px solid; border-radius: 2px; }
.collapse-icon::before { content: ""; position: absolute; top: 14px; left: 19px; height: 14px; border-left: 1px solid; }
.bell-icon { width: 15px; height: 16px; border: 1px solid; border-radius: 8px 8px 2px 2px; }
.bell-icon::after { content: ""; position: absolute; bottom: 10px; left: 20px; width: 4px; border-bottom: 2px solid; }
.notification-dot { position: absolute; top: 8px; right: 9px; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.icon-console { border: 1px solid; border-radius: 2px; }
.icon-console::before { content: ""; position: absolute; top: 5px; left: 3px; width: 5px; height: 5px; border-top: 1px solid; border-right: 1px solid; transform: rotate(45deg); }
.icon-console::after { content: ""; position: absolute; bottom: 4px; right: 3px; width: 5px; border-bottom: 1px solid; }
.icon-plugins { border: 1px solid; border-radius: 3px; }
.icon-plugins::before { content: ""; position: absolute; left: 3px; right: 3px; top: 5px; height: 6px; border-block: 1px solid; }
.app.rail-collapsed { --rail: 76px; }
.rail-collapsed .rail-heading { justify-content: center; }
.rail-collapsed .nav-heading { display: none; }
.rail-collapsed .rail nav a { justify-content: center; padding-inline: 8px; }
.rail nav a { display: flex; gap: 12px; align-items: center; min-height: 44px; padding: 10px 12px; color: var(--muted); border: 1px solid transparent; border-radius: 6px; font-size: 14px; transition: background var(--motion), color var(--motion); }
.rail nav a:hover { background: var(--raised); color: var(--ink); }
.rail nav a[aria-current="page"] { background: var(--accent-bg); border-color: var(--accent-line); color: var(--accent-text); }
.nav-icon { position: relative; display: block; flex: none; width: 18px; height: 18px; color: currentColor; }
.icon-overview { border: 1px solid; border-radius: 3px; }
.icon-overview::before { content: ""; position: absolute; top: 0; bottom: 0; left: 7px; border-left: 1px solid; }
.icon-overview::after { content: ""; position: absolute; top: 7px; left: 0; right: 0; border-top: 1px solid; }
.icon-servers { border: 1px solid; border-radius: 3px; }
.icon-servers::before { content: ""; position: absolute; inset: 5px 0; border-block: 1px solid; }
.icon-players::before { content: ""; position: absolute; top: 0; left: 5px; width: 8px; height: 8px; border: 1px solid; border-radius: 50%; }
.icon-players::after { content: ""; position: absolute; bottom: 0; left: 1px; width: 16px; height: 8px; border: 1px solid; border-radius: 8px 8px 2px 2px; }
.icon-activity { border-block: 1px solid; height: 14px; margin-block: 2px; }
.icon-activity::before { content: ""; position: absolute; top: 6px; left: 0; right: 4px; border-top: 1px solid; }
.workspace { min-width: 0; }
.topbar { display: flex; align-items: center; gap: 24px; min-height: 80px; padding: 16px var(--pad); border-bottom: 1px solid var(--line); }
select, input[type="search"] { min-height: 44px; border: 1px solid var(--control-line); border-radius: 6px; background: var(--surface); color: var(--ink); padding: 8px 12px; font-size: 14px; }
select { max-width: 100%; }
#server-filter { width: 224px; min-width: 0; }
.locale { position: relative; flex: none; }
main { max-width: 1600px; margin-inline: auto; padding: 28px var(--pad) 48px; }
main:focus { outline: none; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
h1 { font-size: clamp(28px, 2.4vw, 36px); line-height: 1.2; letter-spacing: -.04em; font-weight: 700; }
h1:focus { outline: none; }
.page-heading p { margin-top: 8px; color: var(--muted); font-size: 14px; }
h2 { font-size: 18px; line-height: 1.4; letter-spacing: -.02em; font-weight: 700; }
.panel-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 44px; margin-bottom: 12px; }
.panel-heading p, .section-note { color: var(--muted); font-size: 13px; }
.range-control { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.range-control button { flex: 1; min-width: 44px; min-height: 44px; padding: 4px 8px; background: transparent; border: 1px solid transparent; border-radius: 6px; font-size: 13px; }
.range-control button:hover { background: var(--raised); }
.range-control button[aria-pressed="true"] { border-color: var(--control-line); background: var(--raised); color: var(--ink); }
#player-chart { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; }
.date-button { min-height: 44px; max-width: 100%; padding: 8px 12px; border: 1px solid var(--control-line); background: var(--surface); color: var(--ink); border-radius: 6px; font-size: 12px; }
.date-button:hover { border-color: var(--accent); }
.quiet-link, .inline-action { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: var(--accent-text); font-size: 14px; line-height: 1.4; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.quiet-link:hover, .inline-action:hover { color: var(--ink); }
.event-feed { list-style: none; padding: 0; margin: 0; }
.feed-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.feed-row:first-child { padding-top: 4px; }
.feed-row time { color: var(--muted); font-size: 12px; padding-top: 2px; }
.feed-row p { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.feed-row p { display: flex; align-items: center; gap: 8px; }
.feed-row p > span { min-width: 0; }
.feed-row .actor-button { flex: none; }
.feed-row .event-server { margin-top: 4px; font-size: 12px; }
.event-server { display: block; color: var(--muted); font-size: 13px; }
.table-scroll { overflow-x: auto; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); scrollbar-color: #625a55 var(--surface); }
table { width: 100%; border-collapse: collapse; text-align: left; }
.servers-table { min-width: 680px; }
th { padding: 12px 16px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 400; white-space: nowrap; }
td { padding: 14px 16px; border-top: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.server-name { display: block; font-weight: 700; font-size: 14px; }
.table-sub { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.status { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 13px; }
.status::before { content: ""; width: 6px; height: 6px; flex: none; border: 1px solid #b2a59b; border-radius: 50%; }
.status.online { color: var(--online); }
.status.online::before { border-color: var(--online); background: var(--online); }
.status.error, .severity.error { color: var(--error); }
.status.disabled, .severity.warning { color: var(--warning); }
.utilization { display: flex; align-items: center; gap: 12px; }
.utilization meter { appearance: none; width: 88px; height: 5px; border: 0; background: #353033; border-radius: 4px; }
meter::-webkit-meter-bar { height: 5px; border: 0; border-radius: 4px; background: #353033; }
meter::-webkit-meter-optimum-value { background: var(--accent); border-radius: 4px; }
meter::-moz-meter-bar { background: var(--accent); border-radius: 4px; }
.utilization span { min-width: 36px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.no-reading { color: var(--muted); font-size: 13px; }
.filters { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 20px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field > span { font-size: 13px; color: var(--muted); }
.search-field { flex: 1; min-width: min(100%, 220px); max-width: 440px; }
.search-field input { width: 100%; min-width: 0; }
input::placeholder { color: var(--muted); opacity: 1; }
.results-count { color: var(--muted); font-size: 13px; margin-left: auto; padding-bottom: 12px; }
.players-table { min-width: 940px; }
.player-button { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0; background: transparent; border: 0; text-align: left; max-width: 100%; }
.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 6px; color: #f7f3ee; background: var(--avatar-color); font-size: 13px; font-weight: 700; }
.player-identity { display: block; }
.numeric { white-space: nowrap; }
.player-button strong { display: block; color: var(--ink); font-size: 14px; font-weight: 700; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 4px; }
.player-button:hover strong { color: var(--accent-text); }
.steam-id { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; }
.empty-state { padding: 32px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.empty-state h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.empty-state p { color: var(--muted); max-width: 48ch; font-size: 14px; }
.empty-state button { margin-top: 8px; }
.activity-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.activity-row { display: grid; grid-template-columns: 64px 120px minmax(0, 1fr) 156px; gap: 20px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.activity-row time { font-size: 13px; color: var(--muted); }
.activity-row p { font-size: 14px; overflow-wrap: anywhere; }
.event-body { min-width: 0; }
.event-actor { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 8px; }
.actor-button { display: inline-flex; min-height: 44px; align-items: center; padding: 0; border: 0; color: var(--ink); background: transparent; text-decoration: underline; text-underline-offset: 4px; font-size: 13px; }
.actor-button:hover { color: var(--accent); }
.event-actor .steam-id { font-size: 11px; }
.category { display: block; width: fit-content; padding: 2px 8px; border: 1px solid #57504c; border-radius: 4px; font-size: 11px; color: #d8ccc2; }
.category.join { color: var(--join); border-color: #3f6f67; }
.category.leave { color: var(--leave); border-color: #89513a; }
.category.chat { color: var(--chat); border-color: #6c558f; }
.category.moderation { color: var(--warning); border-color: #796437; }
.category.server { color: var(--server-color); border-color: #4b6484; }
.plugins-table { min-width: 540px; }
.console-output { list-style: none; margin: 0; padding: 0; border-block: 1px solid var(--line); background: var(--surface); }
.console-line { display: grid; grid-template-columns: 60px 120px minmax(0, 1fr); gap: 16px; padding: 16px; border-bottom: 1px solid var(--line); }
.console-line:last-child { border: 0; }
.console-line time, .severity { font-size: 12px; }
.console-line time, .severity.info { color: var(--muted); }
.console-line p { font-size: 14px; overflow-wrap: anywhere; }
.console-line .event-server { margin-top: 4px; font-size: 12px; }
.compact-popover { position: fixed; inset: 76px 24px auto auto; margin: 0; width: min(360px, calc(100% - 32px)); max-height: calc(100vh - 100px); overflow: auto; padding: 20px; background: var(--surface); color: var(--ink); border: 1px solid var(--control-line); border-radius: var(--radius); box-shadow: 0 16px 48px #0009; }
.compact-popover input { min-height: 44px; width: 100%; padding: 8px; background: var(--raised); color: var(--ink); border: 1px solid var(--control-line); border-radius: 4px; }
.popover-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 8px; }
.notification-item { display: block; width: 100%; min-height: 44px; text-align: left; border: 0; border-top: 1px solid var(--line); background: transparent; padding: 16px 0; }
.notification-item:hover { background: var(--raised); }
.notification-item strong, .notification-item span { display: block; }
.notification-item span { color: var(--muted); font-size: 12px; margin-top: 4px; }
.notification-item strong { font-size: 14px; font-weight: 500; }
.toast-stack { position: fixed; bottom: 8px; right: 8px; z-index: 20; display: grid; gap: 10px; width: min(376px, calc(100% - 16px)); max-height: calc(100vh - 16px); padding: 8px; overflow-y: auto; pointer-events: none; }
.toast { --toast-tone: var(--accent); display: grid; pointer-events: auto; animation: toast-enter 300ms cubic-bezier(.2,.72,.24,1) both; grid-template-columns: minmax(0, 1fr) 44px; gap: 4px 12px; padding: 12px 12px 0; background: var(--raised); border: 1px solid var(--control-line); border-radius: 8px; box-shadow: 0 8px 32px #0007; }
.toast strong { font-size: 14px; font-weight: 600; }
.toast p { margin-top: 4px; font-size: 13px; color: var(--muted); }
.toast.error { --toast-tone: var(--error); }
.toast.warning { --toast-tone: var(--warning); }
.toast.success { --toast-tone: var(--online); }
.toast strong { color: var(--toast-tone); }
@keyframes toast-enter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.toast-timer { grid-column: 1 / -1; height: 3px; background: var(--line); margin-top: 8px; }
.toast-timer span { display: block; height: 100%; background: var(--toast-tone); transform-origin: left; }
dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 24px; overflow-y: auto; color: var(--ink); background: var(--surface); border: 1px solid #6e5b51; border-radius: 12px; box-shadow: 0 24px 80px #000b; }
dialog::backdrop { background: #09090bd9; backdrop-filter: blur(4px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.dialog-heading h2 { font-size: 28px; line-height: 1.2; overflow-wrap: anywhere; }
.dialog-heading .steam-id { margin-top: 8px; }
.close-dialog { display: grid; flex: none; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--control-line); background: transparent; border-radius: 6px; font-size: 24px; line-height: 1; }
.close-dialog:hover { background: var(--raised); border-color: var(--accent); }
.detail-list { display: grid; gap: 0; }
.detail-list > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; padding-block: 12px; border-top: 1px solid var(--line); }
.detail-list dt { color: var(--muted); font-size: 14px; }
.detail-list dd { text-align: right; font-size: 14px; overflow-wrap: anywhere; }
noscript { display: block; margin: 24px; color: var(--ink); }

@media (max-width: 1150px) {
  :root { --rail: 184px; --pad: 24px; }
  .rail { padding-inline: 12px; }
  .rail-heading { flex-wrap: wrap; }
  .activity-row { grid-template-columns: 56px 104px minmax(0, 1fr); gap: 16px; }
  .activity-row .event-server { grid-column: 3; margin-top: -8px; }
}
@media (max-width: 960px) {
  .topbar { flex-wrap: wrap; gap: 12px 16px; }
  .locale { margin-left: auto; }
  .feed-row { padding-block: 12px; }
  .feed-row p { font-size: 14px; }
}
@media (max-width: 760px) {
  :root { --pad: 20px; }
  .app { display: block; }
  .rail { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 16px var(--pad) 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .rail-heading { flex-wrap: nowrap; padding-bottom: 8px; }
  .rail .wordmark { margin: 0; font-size: 15px; }
  .rail nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; grid-column: 1 / -1; grid-row: 2; }
  .nav-heading { display: none; }
  .rail nav a { justify-content: center; gap: 0; padding: 8px 4px; font-size: 13px; }
  .nav-icon { display: none; }
  .rail-collapsed .rail .wordmark { display: inline-flex; }
  .rail-collapsed .rail-heading { justify-content: space-between; }
  .topbar { padding-block: 16px; }
  #server-filter { width: 100%; }
  main { padding-top: 24px; }
  .page-heading { margin-bottom: 24px; }
  .page-heading p { font-size: 13px; }
  .page-heading { display: block; }
  .page-heading > p { margin-top: 12px; }
  .activity-row { grid-template-columns: 56px minmax(0, 1fr); gap: 8px 16px; padding-block: 16px; }
  .activity-row .category { grid-column: 2; grid-row: 1; }
  .activity-row p { grid-column: 1 / -1; }
  .activity-row .event-body { grid-column: 1 / -1; }
  .activity-row .event-server { grid-column: 1 / -1; margin: 0; }
}
@media (max-width: 600px) {
  :root { --pad: 16px; }
  .range-control { gap: 8px; }
  .range-control button { flex: 0 0 calc((100% - 24px) / 4); }
  .compact-popover { top: 16px; right: 16px; max-height: calc(100vh - 32px); }
  .console-line { grid-template-columns: 60px minmax(0, 1fr); gap: 8px; }
  .console-line > div { grid-column: 1 / -1; }
  .filters { gap: 16px; }
  .search-field { flex-basis: 100%; max-width: none; }
  .results-count { font-size: 12px; }
  .players-scroll { overflow: visible; border: 0; }
  .players-table { min-width: 0; display: block; }
  .players-table thead { display: block; overflow-x: auto; }
  .players-table thead tr { display: flex; gap: 10px; }
  .players-table thead th { flex: 0 0 auto; }
  .players-table tbody { display: grid; gap: 12px; }
  .players-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 16px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
  .players-table td { display: block; min-width: 0; border: 0; padding: 0; font-size: 13px; overflow-wrap: anywhere; }
  .players-table td::before { content: attr(data-label); display: block; color: var(--muted); font-size: 11px; margin-bottom: 4px; }
  .players-table .player-name-cell { grid-column: 1 / -1; }
  .players-table .player-name-cell::before { display: none; }
  .player-button { width: 100%; }
  .detail-list > div { grid-template-columns: 1fr; gap: 4px; }
  .detail-list dd { text-align: left; }
}

.icon-map { border: 1px solid; border-radius: 3px; }
.icon-map::before { content: ""; position: absolute; inset: 4px; border: 1px solid; border-radius: 50%; }
.icon-map::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: currentColor; }
.icon-groups { border: 1px solid; border-radius: 50%; width: 11px; height: 11px; margin: 0 7px 0 0; }
.icon-groups::after { content: ""; position: absolute; inset: -1px -7px -1px 5px; border: 1px solid; border-left: 0; border-radius: 0 50% 50% 0; }
.icon-permissions { border: 1px solid; border-radius: 4px; height: 11px; margin-top: 6px; }
.icon-permissions::before { content: ""; position: absolute; top: -7px; left: 4px; right: 4px; height: 6px; border: 1px solid; border-bottom: 0; border-radius: 5px 5px 0 0; }
.icon-convars { border-block: 1px solid; height: 12px; }
.icon-convars::before, .icon-convars::after { content: ""; position: absolute; width: 4px; height: 4px; border-radius: 1px; background: currentColor; }
.icon-convars::before { top: -2px; left: 5px; }
.icon-convars::after { bottom: -2px; right: 5px; }
.icon-settings { border: 1px solid; border-radius: 5px; transform: rotate(45deg) scale(.8); }
.icon-settings::before { content: ""; position: absolute; inset: 4px; border: 1px solid; border-radius: 50%; }

.map-layout { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(240px, 1fr); align-items: start; gap: 24px; }
.map-frame { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.map-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px 10px; background: var(--surface); border-bottom: 1px solid var(--line); }
.map-controls button:disabled { opacity: .42; cursor: default; }
.map-view-buttons { display: flex; flex-wrap: wrap; gap: 4px; }
.map-controls .map-view-buttons { margin-inline-start: auto; }
.map-view-buttons button { min-height: 34px; padding: 5px 9px; border: 1px solid var(--control-line); border-radius: 7px; background: var(--bg); color: var(--muted); }
.map-view-buttons button:hover { color: var(--ink); }
.map-view-buttons button[aria-pressed="true"] { border-color: var(--accent-line); color: var(--accent-text); }
.map-zoom-level { min-width: 60px; min-height: 44px; padding: 8px; border: 0; background: transparent; color: var(--muted); font-size: 13px; }
.map-zoom-level:hover { color: var(--ink); }
.map-stage { position: relative; isolation: isolate; }
.map-lab-detail { background-color: #162529; background-image: linear-gradient(#ffffff0b 1px, transparent 1px), linear-gradient(90deg, #ffffff0b 1px, transparent 1px); background-size: 24px 24px; }
.map-lab-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 16px; background: #192227; }
.map-lab-heading h3 { margin: 0; font-size: 1rem; }
#map-lab-plan { display: block; width: 100%; height: clamp(280px, 58vh, 680px); padding: 16px; }
#map-lab-plan rect { fill: #265057; stroke: #99c7c7; stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.map-viewport { overflow: auto; scrollbar-color: var(--control-line) #182429; aspect-ratio: 10 / 7; background: #162125; }
.map-viewport.has-server-map { aspect-ratio: 1; }
.map-viewport:focus-visible { outline-offset: -4px; }
.map-viewport.is-zoomed .map-board { cursor: grab; }
.map-viewport.is-dragging, .map-viewport.is-dragging .map-board { cursor: grabbing; }
.map-board { width: 100%; position: relative; overflow: clip; user-select: none; }
.map-board > canvas, .map-board > img { display: block; width: 100%; height: auto; }
.map-board.is-underground > img { filter: brightness(.36) saturate(.68); }
.map-board.is-metro > img { filter: brightness(.29) saturate(.42); }
.has-server-map .map-board canvas { position: absolute; inset: 0; height: 100%; pointer-events: none; }
#map-markers, #map-live-markers, #map-heat { position: absolute; inset: 0; pointer-events: none; }
#map-markers, #map-live-markers, #map-action-markers { container-type: size; }
#map-markers { z-index: 1; }
#map-live-markers { z-index: 2; }
.map-landmark {
  position: absolute;
  translate: -50% -50%;
  min-height: 24px;
  padding: 2px 3px;
  border: 0;
  background: transparent;
  color: #201e15;
  font: 400 clamp(10px, 1.85cqw, 15px)/1.1 "Permanent Marker", "Roboto Condensed", sans-serif;
  text-align: center;
  -webkit-text-stroke: 1.5px #ddcfad9e;
  paint-order: stroke fill;
  white-space: nowrap;
  pointer-events: auto;
}
.map-landmark.safe { color: #143027; }
.map-landmark:is(.subway, .lab) { display: inline-flex; align-items: center; gap: 4px; }
.map-landmark.subway { justify-content: center; width: 27px; height: 27px; padding: 0; border-radius: 50%; background: #d5d8d5; border: 1px solid #252e30; }
.map-landmark.subway img { width: 16px; height: 16px; object-fit: contain; filter: brightness(0) saturate(100%); }
.map-landmark.lab::before { content: ""; width: 12px; height: 12px; border: 1px solid #9dd8dd; border-radius: 50%; background: #295762; }
.map-board.is-underground .map-landmark.lab { translate: -50% calc(-100% - 16px); }
.is-underground .map-landmark { color: #f5ead1; -webkit-text-stroke-color: #171b1bea; }
button.map-landmark:hover, .map-landmark[aria-pressed="true"] { color: #ffe2a9; -webkit-text-stroke-color: #161811; z-index: 1; }
.map-lab-player circle { fill: #ffd68b; stroke: #18262a; stroke-width: 2px; vector-effect: non-scaling-stroke; }
.map-lab-player text { fill: #fff2d6; font-weight: 650; paint-order: stroke; stroke: #18262a; stroke-width: 2px; }
.map-layout { --map-cargo: #9dd9fb; }
.live-player { --map-key: #b1e2f1; }
.live-raid { --map-key: #ff6a61; }
.live-fight { --map-key: #f6ad52; }
.live-cargo { --map-key: var(--map-cargo); }
.live-patrol-heli { --map-key: #ff9b8d; }
.live-chinook { --map-key: #c6b1fc; }
.live-chinook-crate, .live-heli-crate, .live-supply-drop { --map-key: #ffdb85; }
.live-shop { --map-key: #a9deab; }
#map-heat i {
  position: absolute;
  width: clamp(24px, 5%, 104px);
  aspect-ratio: 1;
  translate: -50% -50%;
  opacity: var(--heat);
  background: radial-gradient(circle, var(--map-key), transparent 70%);
}
.map-live-marker {
  position: absolute;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  pointer-events: auto;
}
.map-layer-option i { width: 10px; height: 10px; border-radius: 50%; background: var(--map-key); }
.map-live-marker > .pa-icon { color: var(--map-key); filter: drop-shadow(0 1px 2px #141918); }
.map-live-marker > img { filter: drop-shadow(0 1px 2px #141918); }
button.map-live-marker:is([aria-pressed="true"], :hover) > img { filter: drop-shadow(0 1px 3px var(--map-key)); }
.map-live-marker.map-event-marker {
  width: 38px;
  height: 38px;
  border: 2px solid var(--map-key);
  background: #1b252bf2;
  box-shadow: 0 0 0 2px #111719bd, 0 3px 7px #101519ad;
}
.map-live-marker.map-event-marker > img { width: 28px; height: 28px; object-fit: contain; }
.map-live-marker.map-event-marker[aria-pressed="true"] { background: #334048; outline: 1px solid var(--map-key); outline-offset: 3px; }
.map-live-marker.map-airborne { z-index: 4; }
.map-live-marker.map-airborne.map-event-marker { width: 46px; height: 46px; }
.map-live-marker.map-airborne.map-event-marker > img { width: 35px; height: 35px; }
.map-airborne img { rotate: var(--map-heading, 0deg); }
[data-map-static] { cursor: default; }
.map-board.is-teleport-target [data-map-static] { cursor: crosshair; }
.map-live-marker .player-avatar, .map-live-selection .player-avatar { width: 23px; height: 23px; font-size: 9px; color: #e9f5f5; }
.map-live-marker .player-avatar { border: 1px solid var(--map-key); box-shadow: 0 1px 0 1px #141918; }
.map-live-marker.is-teammate { z-index: 2; --map-key: #8fea9f; }
.map-live-marker.is-teammate .player-avatar { border-width: 2px; }
.map-live-marker.live-player[aria-pressed="true"] { z-index: 3; --map-key: #ffd68b; }
.map-live-marker.live-player[aria-pressed="true"] .player-avatar { border-width: 2px; box-shadow: 0 0 0 1px #141918, 0 0 0 2px var(--map-key); }
.map-vendor-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border: 2px solid #1b251d;
  border-radius: 50%;
  background: #b9d868;
  color: #181c11;
  box-shadow: 0 1px 3px #1419189c;
}
.map-vendor-icon img { width: 17px; height: 17px; object-fit: contain; }
.map-vendor-icon.is-empty { background: #ed8c7c; }
.map-vendor-icon.is-hidden-shop { border-style: dashed; background: #d8c0a0; }
.map-live-marker.live-shop:is([aria-pressed="true"], :hover) .map-vendor-icon { outline: 1px solid #fff4df; outline-offset: 2px; }
.map-live-cluster { z-index: 1; width: auto; min-width: 30px; height: 32px; color: #f6f4e9; font: 700 13px/1 "Roboto Condensed", sans-serif; }
.map-cluster-icons { display: flex; align-items: center; }
.map-cluster-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--map-key, #a7b5af);
  border-radius: 50%;
  background: #22302e;
  color: var(--map-key, #a7b5af);
  box-shadow: 0 0 0 2px #17211d;
}
.map-cluster-icon + .map-cluster-icon { margin-inline-start: -3px; }
.map-cluster-icon.live-shop .map-vendor-icon { width: 24px; height: 24px; border-width: 1px; box-shadow: none; }
.map-cluster-icon > img { width: 18px; height: 18px; object-fit: contain; }
.map-cluster-icon > .pa-icon { width: 16px; height: 16px; }
.map-cluster-count {
  position: absolute;
  inset: auto -7px -3px auto;
  min-width: 17px;
  min-height: 17px;
  display: grid;
  place-items: center;
  padding-inline: 3px;
  border: 1px solid #bdc7bc;
  border-radius: 20px;
  background: #182621;
}
.map-live-cluster:is([aria-expanded="true"], :hover) .map-cluster-count { background: #f5dfb8; color: #211d15; }
.map-marker { --marker-accent: #f1d0a0; position: absolute; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; translate: -50% -50%; border: 0; background: transparent; }
.map-marker span { display: block; width: 12px; height: 12px; background: #29352f; border: 2px solid var(--marker-accent); box-shadow: 0 0 0 2px #18201c99; transform: rotate(45deg); border-radius: 2px; }
.map-marker[aria-pressed="true"] { z-index: 1; }
.map-marker[aria-pressed="true"] span { background: var(--marker-accent); box-shadow: 0 0 0 4px #15211cb8, 0 0 0 5px currentColor; color: var(--marker-accent); }
.map-coordinate-pin span { width: 15px; height: 15px; translate: 0 -7px; rotate: -90deg; border-radius: 50% 50% 50% 2px; background: #e7ad67; border-color: #3b2920; }
.map-sidebar, .settings-form { min-width: 0; }
.map-layers { min-width: 0; padding: 12px; margin: 0 0 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.map-layers legend { padding: 0 6px; font-weight: 600; font-size: 15px; }
.map-layer-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr)); gap: 2px 12px; }
.map-layer-option { display: flex; align-items: center; gap: 7px; min-height: 30px; cursor: pointer; font-size: 13px; line-height: 1.25; }
.map-layer-option input { accent-color: var(--accent); flex: 0 0 auto; margin: 0; }
.map-layer-option i { flex: 0 0 auto; width: 7px; height: 7px; }
.map-layer-option input:not(:checked) + i { opacity: .5; }
#map-live-status { margin-top: 8px; }
.map-live-selection { position: absolute; z-index: 4; width: min(250px, calc(100% - 16px)); max-height: calc(100% - 16px); overflow: auto; padding: 10px 12px; border: 1px solid #4c5b5d; border-radius: 8px; background: #192227; box-shadow: 0 8px 24px #080d0f85; }
.map-live-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.map-live-title-stack { flex: 1 1 0; min-width: 0; }
.map-live-heading h3 { font-size: 15px; overflow-wrap: anywhere; }
.map-live-heading [data-map-live-close] { min-width: 34px; height: 34px; padding: 6px; }
.map-live-back { display: inline-flex; align-items: center; gap: 6px; }
.map-live-back .pa-icon { width: 14px; height: 14px; }
.map-live-team { margin: 8px 0; }
.map-live-team ul { margin-top: 5px; padding: 0; list-style: none; }
.map-live-team li { display: flex; align-items: center; gap: 6px; padding-block: 2px; font-size: 12px; overflow-wrap: anywhere; }
.map-live-team .player-avatar { flex: 0 0 auto; border: 1px solid #8fea9f; }
.map-live-selection .map-action-option { justify-content: flex-start; gap: 8px; overflow-wrap: anywhere; }
.map-member-icon { display: inline-grid; place-items: center; flex: 0 0 26px; color: var(--map-key, #d6d3c9); }
.map-member-icon .map-vendor-icon { width: 22px; height: 22px; }
.map-member-icon .map-vendor-icon img { width: 15px; height: 15px; }
.map-live-selection.map-shop-panel {
  inset: 10px auto auto 10px;
  width: min(490px, calc(100% - 20px));
  max-height: min(490px, calc(100% - 20px));
  padding: 0 12px 8px;
  border-color: #69574a;
  border-radius: 11px;
  background: #26211d;
  box-shadow: 0 12px 30px #120b08a0;
  overscroll-behavior: contain;
  container-type: inline-size;
}
.map-shop-panel .map-live-heading {
  position: sticky;
  top: 0;
  z-index: 1;
  gap: 10px;
  margin: 0 -12px 4px;
  padding: 10px 12px;
  border-bottom: 1px solid #58463b;
  background: #302820;
}
.map-shop-panel .map-live-heading h3 { font-size: 17px; line-height: 1.2; }
.map-shop-panel .map-live-heading p { margin-top: 2px; color: #cdbfb1; font-size: 11px; }
.map-shop-panel .map-live-heading .map-vendor-icon { width: 31px; height: 31px; }
.map-shop-panel [data-map-live-close] { border-color: #6e5849; border-radius: 7px; color: #f4d9c4; }
.map-shop-panel [data-map-live-close]:hover { background: #514032; }
.map-shop-empty { padding: 12px 4px 8px; color: #d1c2b3; font-size: 13px; }
.map-offers { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0 4px; text-align: start; }
.map-offers th { padding: 3px 7px; background: transparent; color: #cdbfb1; font-size: 11px; font-weight: 550; text-align: start; }
.map-offers th:last-child { width: 29%; }
.map-offers td { padding: 5px 7px; border: 0; background: #3b3028; }
.map-offers td:first-child { border-radius: 5px 0 0 5px; }
.map-offers td:last-child { border-radius: 0 5px 5px 0; }
.map-offers :is(td, th):last-child { text-align: end; }
.map-offer-item { display: flex; align-items: center; gap: 7px; min-width: 0; }
.map-offer-image { position: relative; display: grid; place-items: center; flex: 0 0 40px; height: 40px; border-radius: 4px; background: #514338; color: #cdbfb1; }
.map-offer-image:has(img:not([hidden])) > .pa-icon { visibility: hidden; }
.map-offer-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.map-offer-image.is-blueprint { background: #384d5e; }
.map-offer-text { display: grid; gap: 1px; color: #e2d5c7; font-size: 11px; line-height: 1.2; overflow-wrap: anywhere; }
.map-offer-text strong { color: #fff5e8; font-size: 15px; font-variant-numeric: tabular-nums; }
.map-offer-amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 5px; }
.map-offer-amount s { color: #cbbcaf; }
.map-offer-adjustment { display: inline-block; padding: 2px 4px; border-radius: 4px; color: #ffdac7; background: #603b32; font-weight: 700; white-space: nowrap; }
.map-offer-adjustment.is-benefit { color: #e2edb8; background: #424932; }
.map-live-selection.map-loot-panel { width: min(415px, calc(100% - 16px)); overscroll-behavior: contain; }
.map-loot-panel h4 { margin-block: 10px 8px; color: #c0cbc9; font-size: 12px; }
.map-loot-items { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; list-style: none; margin: 0; padding: 0; }
.map-loot-items li { position: relative; min-width: 0; aspect-ratio: 1; border: 1px solid #47575b; border-radius: 5px; background: #273337; }
.map-loot-items .map-offer-image { width: 100%; height: 100%; background: transparent; }
.map-loot-items .map-offer-image.is-blueprint { background: #384d5e; }
.map-loot-items .map-offer-image img { padding: 3px 3px 8px; }
.map-loot-items strong { position: absolute; inset: auto 2px 2px auto; max-width: calc(100% - 4px); overflow: hidden; padding: 1px 3px; border-radius: 3px; color: #fff5e8; background: #151d22eb; font-size: clamp(9px, 1.4vw, 12px); font-variant-numeric: tabular-nums; white-space: nowrap; text-overflow: ellipsis; }
.map-offer-stock { display: inline-block; padding: 3px 5px; border-radius: 4px; color: #e5d9cb; font-size: 11px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.map-offer-stock.in-stock { background: #424932; color: #e2edb8; }
.map-offer-stock.out-of-stock { background: #603b32; color: #ffd7c5; }
.sanction-timeline {
  margin: 6px 0 0;
  padding: 9px 12px;
  list-style: none;
  border-radius: 9px;
  background: color-mix(in srgb, var(--bg) 66%, var(--surface));
}
.sanction-timeline > li {
  --history-point: var(--muted);
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1px 12px;
  padding: 5px 0 9px 21px;
  overflow-wrap: anywhere;
}
.sanction-timeline > li:last-child { padding-bottom: 5px; }
.sanction-timeline > li[data-event="issued"] { --history-point: var(--accent); }
.sanction-timeline > li[data-event="revoked"] { --history-point: var(--online); }
.sanction-timeline > li[data-event="adjusted"] { --history-point: var(--warning); }
.sanction-timeline > li[data-event="failed"] { --history-point: var(--error); }
.sanction-timeline > li::before {
  position: absolute;
  top: 9px;
  left: 2px;
  z-index: 1;
  width: 9px;
  height: 9px;
  border: 1px solid var(--history-point);
  border-radius: 50%;
  background: var(--history-point);
  content: "";
}
.sanction-timeline > li:not(:last-child)::after {
  position: absolute;
  inset: 13px auto -13px 6px;
  width: 1px;
  background: var(--control-line);
  content: "";
}
.sanction-timeline > li div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.sanction-timeline strong { font-size: 12px; font-weight: 650; }
.sanction-timeline span, .sanction-timeline time { color: var(--muted); font-size: 11px; }
@container (max-width: 340px) {
  .map-offers :is(td, th) { padding-inline: 5px; }
  .map-offer-item { gap: 4px; }
  .map-offer-image { flex-basis: 30px; height: 30px; }
  .map-offer-text strong { font-size: 13px; }
  .map-offer-stock { padding-inline: 3px; }
}
.group-members { padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--line); }
.map-selection, #map-lab-floor-field, #map-level-status { margin-top: 12px; }
.manage-heading { margin-bottom: 16px; }
.manage-heading h2 { font-size: 20px; }
.manage-heading p { margin-top: 4px; }
.group-members li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.group-members .player-button { width: auto; min-width: 0; }
.manage-table { min-width: 100%; }
.manage-table th { white-space: nowrap; }
.manage-table td { vertical-align: top; overflow-wrap: anywhere; }
.manage-table .table-sub { font-size: 12px; }
.manage-table tbody tr:hover { background: var(--surface); }
.convar-reading + .convar-reading { margin-top: 8px; }
.settings-form { display: grid; gap: 20px; max-width: 560px; }
.settings-check { display: flex; align-items: center; min-height: 44px; gap: 12px; font-size: 14px; }
.settings-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.settings-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-top: 8px; }
.steam-settings { margin-top: 28px; padding: 18px; gap: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.steam-settings-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; }
.steam-settings-heading h2 { font-size: 20px; }
#steam-key-state { color: var(--muted); font-size: 13px; }
#steam-key-state[data-configured="true"] { color: var(--accent-text); }
#steam-web-key { width: 100%; min-height: 44px; padding: 8px 11px; border: 1px solid var(--control-line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; }
#steam-web-key:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#steam-key-notice { min-width: 0; }
.manage-button { min-height: 44px; padding: 8px 14px; border: 1px solid var(--accent-line); border-radius: 5px; background: var(--accent-bg); color: var(--accent-text); font-size: 14px; }
.manage-button:hover { background: color-mix(in srgb, var(--accent-bg) 70%, var(--accent) 30%); color: var(--ink); }

@media (max-width: 1040px) {
  .map-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 760px) {
  .rail nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rail nav a { font-size: 12px; }
}
@media (max-width: 370px) {
  .rail nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .manage-table td, .manage-table th { padding-inline: 9px; }
  .manage-table .inline-action { font-size: 12px; }
}



:root { --radius: 18px; --rail: 216px; --rail-bg: #171617; --surface: #1b1a1c; --raised: #232225; --line: #353234; --control-line: #5c5455; }
.rail { position: sticky; top: 0; align-self: start; min-height: 100dvh; max-height: 100dvh; overflow-y: auto; scrollbar-width: thin; gap: 16px; padding: 8px 13px 20px; }
.rail-heading { padding-bottom: 8px; }
.rail nav { gap: 4px; }
.nav-heading { color: var(--muted); font-size: 11px; padding: 4px 12px 5px; }
.nav-heading:not(:first-child) { border-top: 1px solid var(--line); margin: 14px 4px 4px; padding: 16px 8px 4px; }
.rail nav a { border-radius: 13px; }
.rail-collapsed nav .nav-heading:not(:first-child) + a { margin-top: 18px; position: relative; }
.rail-collapsed nav .nav-heading:not(:first-child) + a::before { content: ""; position: absolute; top: -13px; width: 70%; border-top: 1px solid var(--line); }
.topbar { min-height: 58px; padding: 7px var(--pad); justify-content: space-between; gap: 10px; flex-wrap: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.topbar .icon-button { min-width: 40px; height: 40px; border-radius: 50%; }
.topbar .bell-icon::after { bottom: 8px; left: 18px; }
.topbar .server-scope { min-width: 0; max-width: min(250px, 58vw); }
.page-heading { margin-bottom: 30px; }
h1 { font-weight: 650; letter-spacing: -.042em; }
select, input[type="search"], .field input[type="text"], .field input[type="number"] { border-radius: 12px; }
.table-scroll { background: var(--surface); }
table { background: transparent; }
.recent-panel { padding: 19px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.chart-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 15px; }
.range-control { margin: 0; flex: 0 1 auto; gap: 2px; padding: 3px; border-radius: 999px; background: var(--bg); flex-wrap: nowrap; }
.range-control button { height: 31px; min-height: 31px; min-width: 34px; flex: none; padding-inline: 6px; border-radius: 999px; font-size: 12px; }
.range-control button[aria-pressed="true"] { color: var(--accent-text); border-color: var(--accent-line); background: var(--accent-bg); }
.date-button { flex: none; min-height: 35px; max-width: 100%; border-radius: 999px; padding: 5px 11px; background: var(--raised); font-size: 12px; white-space: nowrap; }
.server-fps { font-variant-numeric: tabular-nums; font-weight: 650; }
#servers-body tr[data-server] { cursor: pointer; }
#servers-body tr[data-server]:hover { background: var(--raised); }
.server-expander { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; border: 0; background: transparent; font-weight: 650; text-align: left; }
.row-chevron.pa-icon { display: block; flex: none; width: 16px; height: 16px; margin-inline-end: 3px; transform: rotate(0); transition: transform var(--motion); }
[aria-expanded="true"] > .row-chevron { transform: rotate(90deg); }
.server-details-row { background: var(--bg); }
.server-details-row td { padding: 18px; }
.server-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.server-metrics > div { display: grid; gap: 5px; align-content: start; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.server-metrics dt { color: var(--muted); font-size: 12px; }
.server-metrics dd { font-size: 14px; font-weight: 600; }
.feed-row { grid-template-columns: 39px minmax(0, 1fr); align-items: start; gap: 9px; }
.feed-row:first-child { padding-top: 9px; }
.feed-row:last-child { border-bottom: 0; }
.feed-row time, .feed-row p { font-size: 13px; line-height: 1.55; padding-top: 0; display: block; }
.feed-row .event-server { margin-top: 4px; }
.actor-button { display: inline; padding: 0; min-height: 0; font-size: inherit; line-height: inherit; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.activity-list { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 6px 15px; }
.journal-entry + .journal-entry { border-top: 1px solid var(--line); }
.journal-row { display: grid; grid-template-columns: 42px 12px minmax(0, 1fr) 36px; align-items: center; gap: 10px; min-height: 49px; color: var(--ink); }
.journal-row time { color: var(--muted); font-size: 12px; }
.journal-row p { font-size: 14px; overflow-wrap: anywhere; padding-block: 6px; }
.journal-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.journal-dot.join { background: var(--join); }
.journal-dot.leave { background: var(--leave); }
.journal-dot.chat { background: var(--chat); }
.journal-dot.moderation { background: var(--warning); }
.journal-dot.server { background: var(--server-color); }
.journal-expand { min-width: 36px; height: 36px; border-radius: 50%; }
.journal-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 8px 20px; margin: 0 0 12px 65px; padding: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; font-size: 12px; }
.journal-details dt { color: var(--muted); }
.journal-details dd { overflow-wrap: anywhere; }
.compact-popover { border-radius: 16px; }
.notifications-panel { inset: 63px 18px auto auto; padding: 14px; max-height: min(70vh, 610px); }
.notifications-panel .panel-heading { margin-bottom: 2px; padding-inline: 8px 0; }
.notification-list { padding: 0; margin: 0; list-style: none; }
.notification-item { padding: 13px 12px; }
.notification-item p { margin: 4px 0; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.notification-item time { font-size: 11px; color: var(--muted); }
.toast-stack { top: 63px; bottom: auto; right: 8px; max-height: calc(100vh - 70px); }
.toast { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; text-align: start; padding: 14px 15px 10px; border-radius: 15px; overflow: hidden; cursor: pointer; }
.toast-copy { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.toast-timer { position: absolute; inset: auto 0 0; margin: 0; }
.permission-layout { display: grid; grid-template-columns: minmax(172px, 222px) minmax(0, 1fr); align-items: start; gap: 16px; }
.permission-groups, .permission-panel { min-width: 0; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.permission-group-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.permission-group-option { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; min-height: 42px; border: 0; border-radius: 12px; background: transparent; text-align: start; font-size: 13px; }
.permission-group-option[aria-pressed="true"] { background: var(--accent-bg); color: var(--accent-text); }
.permission-group-option:hover { background: var(--raised); }
.permission-group-option > span:last-child { color: var(--muted); }
.permission-group-option strong { overflow-wrap: anywhere; }
.permission-group-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
#permission-delete { color: var(--error); }
#permission-delete.confirm { font-weight: 700; }
.permission-panel .panel-heading { min-height: 32px; }
.permission-panel input[type="search"] { width: 100%; }
.permission-plugin { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 15px; padding: 8px 12px; border-radius: 9px; border-inline-start: 2px solid var(--accent); background: var(--raised); font-size: 13px; }
.permission-plugin span, .permission-row span { color: var(--muted); font-size: 12px; }
.permission-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 8px 6px; min-height: 42px; border-bottom: 1px solid var(--line); cursor: pointer; }
.permission-row code { overflow-wrap: anywhere; font-size: 12px; }
.permission-row input { appearance: none; position: relative; flex: none; margin: 0; width: 33px; height: 19px; border: 1px solid var(--control-line); border-radius: 99px; background: var(--bg); cursor: pointer; }
.permission-row input::before { content: ""; position: absolute; width: 11px; height: 11px; top: 3px; left: 3px; background: var(--muted); border-radius: 50%; transition: transform var(--motion); }
.permission-row input:checked { background: var(--accent); border-color: var(--accent); }
.permission-row input:checked::before { transform: translateX(14px); background: var(--bg); }
.permission-row input:disabled { opacity: .55; cursor: default; }
.permission-form { display: grid; gap: 14px; }
.permission-form .dialog-heading { margin-bottom: 0; }
.permission-form input { padding: 8px 10px; min-height: 44px; background: var(--raised); border: 1px solid var(--control-line); color: var(--ink); }
.permission-form button[type="submit"] { justify-self: start; }
#permissions-empty { padding-block: 16px 4px; }
@media (max-width: 760px) {
  .rail { position: static; min-height: auto; max-height: none; padding-bottom: 10px; }
  .rail-heading { grid-column: 1 / -1; }
  .rail nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .topbar { min-height: 52px; padding-block: 6px; }
}
@media (max-width: 600px) {
  :root { --radius: 15px; }
  .recent-panel { padding: 13px; }
  .chart-toolbar { flex-wrap: nowrap; }
  .chart-toolbar .date-button { max-width: 34%; min-height: 32px; white-space: normal; line-height: 1.2; padding-inline: 7px; }
  .chart-toolbar .range-control { flex: 1; min-width: 0; }
  .chart-toolbar .range-control button { flex: 1 1 0; min-width: 0; height: 28px; min-height: 28px; font-size: 11px; padding-inline: 2px; }
  .permission-layout { grid-template-columns: minmax(0, 1fr); }
  .permission-group-list { display: flex; flex-wrap: wrap; }
  .permission-group-option { min-height: 37px; }
  .journal-row { grid-template-columns: 40px 8px minmax(0, 1fr) 28px; gap: 6px; }
  .journal-expand { min-width: 28px; }
  .journal-details { margin-left: 0; }
  .notifications-panel { inset: 58px 8px auto auto; }
}

@media (prefers-reduced-motion: reduce) {
  .toast { animation: none; }
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

#server-switch { width: auto; max-width: 100%; }
#server-switch-label { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#server-switch .server-scope-icon { position: relative; display: block; width: 14px; height: 13px; border: 1px solid currentColor; border-radius: 3px; }
.server-scope-icon::before, .server-scope-icon::after { content: ""; position: absolute; top: 5px; left: 2px; right: 2px; border-top: 1px solid currentColor; }
.server-scope-icon::after { top: 8px; right: 6px; }
#server-picker { width: min(620px, calc(100% - 24px)); border-radius: 22px; }
#server-picker .dialog-heading { margin-bottom: 18px; }
#server-picker-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.server-option { display: grid; align-content: center; gap: 12px; min-width: 0; min-height: 92px; padding: 12px; text-align: left; border: 1px solid var(--line); border-radius: 14px; background: var(--raised); }
.server-option:hover { border-color: var(--muted); }
.server-option[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-bg); }
.server-option-heading, .server-option-summary { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 9px; justify-content: space-between; }
.server-option strong { overflow-wrap: anywhere; font-size: 14px; }
.server-option-summary, .all-server-option > span { color: var(--muted); font-size: 12px; }
.all-server-option { gap: 4px; }
.chart-date-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.chart-date-fields .field, .chart-date-fields input { min-width: 0; }
.date-button[aria-pressed="true"] { border-color: var(--accent-line); color: var(--accent-text); background: var(--accent-bg); }
.server-load { margin-top: 16px; }
.server-load h3 { font-size: 15px; margin-bottom: 8px; }
.server-load-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.server-load-grid figure { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.server-load-grid figcaption { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.server-load-plot { position: relative; height: 118px; }
.permission-groups-heading { display: flex; flex-wrap: wrap; gap: 8px; align-items: start; justify-content: space-between; }
.permission-groups-heading .manage-button { min-height: 32px; padding: 5px 8px; font-size: 12px; border-radius: 999px; }
.player-list-identity { display: flex; align-items: center; gap: 11px; }
.player-list-identity .player-name-button { min-height: 23px; padding-block: 2px; }
.player-list-identity .player-identity { min-width: 0; }
@media (max-width: 760px) {
  #view-servers .table-scroll { overflow: visible; }
  #view-servers .servers-table { display: block; min-width: 0; max-width: 100%; }
  #view-servers .servers-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  #view-servers .servers-table tbody { display: block; }
  #view-servers tr[data-server] { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 12px; padding: 10px 13px; }
  #view-servers tr[data-server] + tr[data-server] { border-top: 1px solid var(--line); }
  #view-servers tr[data-server] > td { display: block; padding: 0; border: 0; overflow-wrap: anywhere; font-size: 13px; }
  #view-servers tr[data-server] > td:first-child { grid-column: 1 / -1; }
  #view-servers tr[data-server] > td[data-label]::before { display: block; margin-bottom: 3px; content: attr(data-label); color: var(--muted); font-size: 11px; }
  #view-servers .server-details-row, #view-servers .server-details-row > td { display: block; }
  #view-servers .server-details-row > td { padding: 12px; }
  .server-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .server-load-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 440px) {
  #server-picker-options { grid-template-columns: minmax(0, 1fr); }
  .server-option { min-height: 70px; gap: 6px; }
}
.server-view-gate { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; padding: 20px; border: 1px solid var(--accent-line); border-radius: var(--radius); background: var(--surface); }
.server-view-gate p { color: var(--muted); font-size: 14px; margin-top: 3px; }
@media (min-width: 761px) {
  .app { transition: grid-template-columns 280ms cubic-bezier(.22,.8,.24,1); }
  .rail, .rail-navigation { min-width: 0; }
  .rail { overflow-x: hidden; }
  .rail-heading { display: grid; grid-template-columns: minmax(0, 1fr) 44px; }
  .rail .wordmark { min-width: 0; overflow: hidden; white-space: nowrap; transition: opacity 160ms ease; }
  .rail-collapsed .rail .wordmark { opacity: 0; pointer-events: none; }
  .rail nav a { display: grid; grid-template-columns: 18px minmax(0, 1fr); }
  .rail nav a > span:last-child { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; transition: opacity 150ms ease; }
  .rail-collapsed .rail nav a { grid-template-columns: 18px minmax(0, 0fr); column-gap: 0; }
  .rail-collapsed .rail nav a > span:last-child { opacity: 0; }
}
@media (max-width: 760px) {
  .rail { transition: row-gap 260ms ease; }
  .rail-navigation { display: grid; grid-column: 1 / -1; grid-template-rows: 1fr; min-width: 0; opacity: 1; transition: grid-template-rows 260ms cubic-bezier(.22,.8,.24,1), opacity 180ms ease; }
  .rail-navigation nav { grid-column: auto; grid-row: auto; min-height: 0; overflow: hidden; }
  .rail-collapsed .rail { row-gap: 0; }
  .rail-collapsed .rail-navigation { grid-template-rows: 0fr; opacity: 0; pointer-events: none; }
}
.monitor-panel { margin-bottom: 22px; }
.monitor-heading, .monitor-identity, .monitor-period { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.monitor-heading, .monitor-period { justify-content: space-between; }
.monitor-heading .chart-toolbar { margin: 0; }
.monitor-identity h2 { margin: 0; font-size: clamp(18px, 2vw, 23px); line-height: 1.2; }
.monitor-period { min-height: 34px; margin-block: 2px 7px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
#chart-inspection { color: var(--accent-text); }
.monitor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.monitor-card { min-width: 0; margin: 0; padding: 15px 14px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.monitor-card figcaption { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; padding: 0 5px; }
.monitor-card h3 { position: relative; margin: 0; font-size: 13px; font-weight: 550; color: var(--muted); }
.monitor-card h3::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 8px 1px 0; border-radius: 50%; background: var(--monitor-color); }
.monitor-reading { font-size: clamp(19px, 2vw, 26px); line-height: 1.3; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.monitor-plot { position: relative; height: 155px; min-width: 0; margin-top: 7px; }
.monitor-empty { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; text-align: center; color: var(--muted); font-size: 13px; pointer-events: none; }
#recent-events .feed-row { grid-template-columns: 39px 8px minmax(0, 1fr); }
#recent-events .journal-dot { margin-top: 7px; }
@media (max-width: 690px) {
  .monitor-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .monitor-heading .chart-toolbar { width: 100%; }
  .monitor-card { padding-inline: 10px; }
}

.subscription-gate { margin-bottom: 18px; padding: clamp(22px, 3vw, 36px); }
.subscription-gate p:empty { display: none; }
.subscription-badge { padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface); font-size: 12px; white-space: nowrap; }
.subscription-badge:hover, .subscription-badge.is-expiring { color: var(--accent-text); border-color: var(--accent-line); background: var(--accent-bg); }
.status.frozenServer { color: var(--warning); }
.journal-dot.adminAction { background: var(--accent); }
.journal-admin { color: var(--accent-text); }
.journal-audit-detail { grid-column: 1 / -1; }
.journal-audit-detail dd { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 440px) {
  .subscription-badge { white-space: normal; text-align: left; }
}

.map-board.is-teleport-target { cursor: crosshair; }
#map-action-markers { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
#map-action-markers button { pointer-events: auto; }
.map-marker.map-person { --marker-accent: #9ad7ff; z-index: 2; }
.map-marker.map-person span { border-radius: 50%; transform: none; }
.map-marker.map-note { --marker-accent: #ffd29c; z-index: 2; }
.map-marker.map-teleport-point { --marker-accent: var(--accent); z-index: 2; }
.map-marker.map-teleport-point span { border-radius: 50%; transform: none; background: var(--accent); }
.map-player-action { display: grid; gap: 9px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.map-player-action h3 { margin: 0; font-size: 16px; }
.map-action-people { display: grid; gap: 4px; max-height: 152px; overflow: auto; margin: 0; padding: 0; list-style: none; }
.map-action-option { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 34px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); text-align: left; }
.map-action-option[aria-pressed="true"] { border-color: var(--accent-line); color: var(--accent-text); }
.map-action-target, .map-action-buttons { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.map-action-target { padding: 6px 0; font-size: 13px; color: var(--muted); }
.map-action-target strong { color: var(--ink); }
.pa-loading, .pa-loading-inline { display: flex; align-items: center; gap: 9px; color: var(--muted); }
.pa-loading { justify-content: center; min-height: 110px; padding: 14px; margin: 0; font-size: 13px; }
.pa-loading::before, .pa-loading-inline::before, .catalog-flag.is-learning::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: none;
  border: 1.5px solid var(--line);
  border-top-color: var(--accent, currentColor);
  border-radius: 50%;
  animation: pa-loading-spin .7s linear infinite;
}
@keyframes pa-loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .pa-loading::before, .pa-loading-inline::before, .catalog-flag.is-learning::before { animation: none; }
}
