:root {
  color-scheme: dark;
  --bg: #15191c;
  --surface: #1b2024;
  --surface2: #22282d;
  --line: #30373c;
  --muted: #929da4;
  --text: #e8ebea;
  --accent: #e57858;
  --green: #91bba4;
  --amber: #d6b477;
  --red: #ea806e;
  font-family:
    Inter,
    Segoe UI,
    Arial,
    sans-serif;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface2);
  color: var(--text);
  padding: 10px 14px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  font-weight: 550;
}
button:hover {
  background: #2e363c;
  border-color: #586169;
}
button.primary,
.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #1c2022;
  font-weight: 700;
}
button.primary:hover {
  background: #f18b6b;
}
.ghost {
  background: transparent;
}
.small {
  padding: 7px 10px;
  font-size: 12px;
}
.danger {
  color: var(--red);
}
.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 20px;
  letter-spacing: 1.6px;
  font-weight: 800;
}
.logo img {
  width: 36px;
  height: 36px;
}
.logo span span {
  color: var(--accent);
}
.shell {
  display: grid;
  grid-template-columns: 228px 1fr;
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  scrollbar-width: thin;
  padding: 28px 17px 20px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: #181d20;
}
.sidebar .logo {
  margin: 0 13px 32px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
}
.side-label {
  margin: 22px 14px 12px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav button {
  background: none;
  border-color: transparent;
  justify-content: flex-start;
  color: var(--muted);
  padding: 12px 15px;
  font-size: 13px;
}
.nav button:hover {
  color: var(--text);
  background: #23292d;
}
.nav button.active {
  color: #f1a08a;
  background: #352a26;
  border-color: #4a332b;
}
.nav button .count {
  margin-left: auto;
  background: #4a332b;
  border-radius: 4px;
  padding: 2px 6px;
  color: #f1a08a;
  font-size: 11px;
}
.sidebar-bottom {
  margin-top: auto;
}
.side-note {
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 7px;
  margin: 24px 4px 20px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}
.side-note b {
  display: block;
  color: var(--text);
  margin-bottom: 6px;
}
.profile {
  padding: 12px 7px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #384540;
  border: 1px solid #4c6054;
  color: #b7d0bd;
  border-radius: 50%;
  width: 33px;
  height: 33px;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}
.profile strong {
  font-size: 12px;
  display: block;
  max-width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}
.profile-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border-radius: 6px;
  padding: 4px 0;
}
.profile-link:hover strong,
.profile-link[aria-current="page"] strong {
  color: var(--accent);
}
.profile-label {
  min-width: 0;
}
.user-avatar {
  position: relative;
  overflow: hidden;
  width: 36px;
  height: 36px;
}
.user-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.top-profile strong {
  display: block;
  max-width: 140px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
}
.top-profile {
  flex-shrink: 0;
}
.top-profile small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.panel.profile-hero {
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(110deg, #31352d, #20272a 55%, #302824);
  border-top: 2px solid #927556;
}
.profile-identity {
  display: flex;
  gap: 23px;
  align-items: center;
  min-width: 0;
}
.avatar-large {
  width: 88px;
  height: 88px;
  font-size: 25px;
  border: 3px solid #718371;
  box-shadow: 0 0 0 6px #91bba40c;
}
.profile-identity-text {
  min-width: 0;
}
.profile-identity h2 {
  margin: 10px 0 6px;
  font-size: 28px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.profile-identity p {
  color: #abb5b5;
  font-size: 12px;
  line-height: 1.6;
  margin: 0 0 12px;
}
.profile-external {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  white-space: nowrap;
  color: #d9c6b3;
}
.profile-external:hover,
.text-link:hover {
  text-decoration: underline;
}
.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 20px;
}
.profile-grid .eyebrow {
  margin-bottom: 16px;
  color: #b9a68c;
}
.profile-grid h2 {
  line-height: 1.5;
}
.profile-details {
  margin: 20px 0;
}
.profile-details > div {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.profile-details dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}
.profile-details dd {
  margin: 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.profile-details .steam-id {
  font-family: Consolas, monospace;
  color: #bccacb;
}
.account-exit {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 14px;
}
.settings-card .pairing-steps {
  padding: 0;
  margin: 22px 0;
  list-style: none;
}
.pairing-steps li {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}
.pairing-steps li > span {
  color: var(--accent);
  border: 1px solid #4b3e32;
  background: #302923;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
}
.pairing-steps strong {
  color: var(--text);
  font-weight: 550;
}
.pairing-steps p {
  margin: 3px 0 0;
  font-size: 12px;
}
.profile-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.text-link {
  font-size: 12px;
  color: var(--accent);
  line-height: 1.6;
}
.button-link {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 650;
}
.button-link:hover {
  filter: brightness(1.1);
}
dialog .pairing-steps {
  padding: 0;
  list-style: none;
}
.profile-scope {
  font-size: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 8px;
}
.profile-scope > span {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.profile-scope small {
  color: var(--muted);
  line-height: 1.7;
}
.server-connections .panel-title {
  flex-wrap: wrap;
  gap: 12px;
}
.server-connections h2 {
  overflow-wrap: anywhere;
  min-width: 0;
}
td.server-description {
  white-space: normal;
  min-width: 190px;
  max-width: 380px;
  overflow-wrap: anywhere;
}
.server-description small {
  display: block;
  color: var(--muted);
  margin-top: 7px;
  font-size: 11px;
}
.profile-notifications {
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.profile-notifications h2 {
  font-size: 15px;
  display: flex;
  gap: 10px;
  margin: 0 0 9px;
}
.profile-notifications p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}
.main {
  min-width: 0;
}
.topbar {
  height: 76px;
  border-bottom: 1px solid var(--line);
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  min-width: 0;
}
.breadcrumb > span:first-of-type {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.breadcrumb strong {
  color: #d3d9dc;
  font-weight: 500;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.top-actions select {
  max-width: 190px;
  width: auto;
  flex: 0 1 190px;
  padding: 8px 30px 8px 11px;
}
.steam img {
  width: 140px;
  height: auto;
  display: block;
}
.steam {
  display: inline-block;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  background: #283a31;
  border: 1px solid #344b3e;
  border-radius: 4px;
  padding: 5px 7px;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}
.chip.warn {
  background: #3b3327;
  color: var(--amber);
  border-color: #4a4030;
}
.chip.off {
  background: #282e32;
  border-color: var(--line);
  color: var(--muted);
}
.chip.red {
  background: #402d28;
  border-color: #56382f;
  color: var(--red);
}
.content {
  max-width: 1600px;
  margin: auto;
  padding: 26px 36px 44px;
}
.demo-banner {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid #50412f;
  border-left: 3px solid var(--amber);
  background: #2b2822;
  color: #bfb5a5;
  padding: 11px 15px;
  font-size: 12px;
  border-radius: 4px;
  margin-bottom: 27px;
}
.demo-banner strong {
  font-size: 10px;
  color: var(--amber);
  letter-spacing: 1px;
  white-space: nowrap;
}
.demo-banner button {
  margin-left: auto;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}
.heading h1 {
  font-size: 27px;
  letter-spacing: -0.7px;
  font-weight: 650;
  margin: 8px 0 7px;
}
.heading p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}
.heading-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 18px 20px;
  background: var(--surface);
  position: relative;
}
.stat .stat-icon {
  position: absolute;
  top: 18px;
  right: 18px;
  color: #77828b;
}
.stat .value {
  display: block;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -1px;
  margin: 12px 0 7px;
}
.stat .value span {
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 0;
  font-weight: 400;
}
.stat small {
  font-size: 11px;
  color: var(--muted);
}
.stat small.good {
  color: var(--green);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 308px;
  gap: 22px;
  align-items: start;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  overflow: hidden;
}
.panel-title {
  padding: 17px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}
.panel-title h2 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.panel-title h2 .icon {
  color: var(--muted);
}
.panel-title a,
.panel-title button.link {
  color: var(--accent);
  font-size: 11px;
  padding: 0;
  border: 0;
  background: none;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.map-frame {
  height: 440px;
  position: relative;
  background: #21383d;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  user-select: none;
  overscroll-behavior: contain;
}
.map-frame:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.map-frame.placing { cursor: crosshair; }
.map-frame.is-dragging, .map-frame.is-dragging * { cursor: grabbing; }
.map-head-tools { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.map-help { padding: 11px 18px; font-size: 11px; color: var(--muted); border-bottom: 1px solid var(--line); display: flex; gap: 8px 24px; flex-wrap: wrap; }
.map-help strong { color: var(--accent); }
.map-help span { margin-left: auto; }
.map-tools output { color: #e5eee9; font-size: 10px; text-align: center; background: #172024e8; border-radius: 4px; padding: 4px 0; }
.map-frame.large {
  height: clamp(360px, calc(100dvh - 390px), 780px);
}
.map-stage {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-origin: 0 0;
  will-change: transform;
}
.map-image {
  width: 100%;
  height: 100%;
  object-fit: fill;
  opacity: 1;
  display: block;
  -webkit-user-drag: none;
}
.map-legend {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: #172024e8;
  padding: 9px 12px;
  border: 1px solid #4a5554;
  border-radius: 4px;
  font-size: 10px;
  display: flex;
  gap: 14px;
  color: #bdc6c2;
}
.legend-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  display: inline-block;
  border-radius: 2px;
  margin-right: 5px;
}
.legend-dot.green {
  border-radius: 50%;
  background: var(--green);
}
.map-label {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #172024e8;
  border: 1px solid #49554e;
  padding: 7px 10px;
  border-radius: 4px;
  font-size: 10px;
  letter-spacing: 1px;
  color: #cad2c7;
}
.map-tools {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.map-tools button {
  background: #172024e8;
  padding: 7px;
  width: 33px;
  height: 33px;
}
.map-north {
  position: absolute;
  top: 18px;
  right: 20px;
  color: #dbe1d4;
  font-size: 10px;
  text-align: center;
}
.map-north:after {
  content: "▲";
  display: block;
  margin-top: 5px;
  font-size: 18px;
}
.map-marker {
  position: absolute;
  transform: translate(-50%, -50%) scale(var(--marker-scale, 1));
  padding: 8px;
  background: #e57858;
  border: 2px solid #f4b29a;
  color: #1c2428;
  border-radius: 50%;
  box-shadow: 0 0 0 5px #e5785820;
  z-index: 2;
}
.map-marker .icon {
  width: 15px;
  height: 15px;
}
.map-marker:hover {
  background: #ffa27b;
}
.map-marker.green {
  background: #93bea5;
  border-color: #c1dcc9;
  box-shadow: 0 0 0 4px #93bea530;
  padding: 5px;
}
.map-footer {
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  color: var(--muted);
}
.map-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  background:
    linear-gradient(#1c2529aa, #1c2529aa),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 39px,
      #354047 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 39px,
      #354047 40px
    );
  color: var(--muted);
  text-align: center;
  padding: 30px;
}
.map-empty .icon {
  width: 34px;
  height: 34px;
}
.map-empty h3 {
  margin: 0;
  color: #d0d8da;
  font-size: 16px;
}
.map-empty p {
  max-width: 300px;
  line-height: 1.7;
  margin: 0;
  font-size: 12px;
}
.alert-list {
  padding: 0 18px;
}
.alert {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 11px;
  align-items: flex-start;
}
.alert:last-child {
  border-bottom: 0;
}
.alert-symbol {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #3a3027;
  color: var(--amber);
  border-radius: 5px;
}
.alert-symbol.alarm {
  color: var(--red);
  background: #402d28;
}
.alert-symbol.presence {
  color: var(--green);
  background: #2a3a32;
}
.alert-body {
  min-width: 0;
  flex: 1;
}
.alert-body strong {
  font-size: 12px;
  line-height: 1.45;
  font-weight: 550;
  display: block;
}
.alert-body p {
  color: var(--muted);
  font-size: 11px;
  margin: 6px 0 8px;
  line-height: 1.6;
}
.alert-body small {
  font-size: 10px;
  color: var(--muted);
}
.alert-body button {
  margin-top: 9px;
  padding: 5px 8px;
  font-size: 10px;
}
.connection-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
}
.connection-row:last-child {
  border: 0;
}
.connection-row span:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
}
.connection-row .icon {
  color: var(--muted);
}
.section-gap {
  margin-top: 22px;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th {
  text-align: left;
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  background: #191e22;
  padding: 13px 19px;
  white-space: nowrap;
}
td {
  padding: 16px 19px;
  border-top: 1px solid var(--line);
  white-space: nowrap;
}
.base-name {
  display: flex;
  align-items: center;
  gap: 12px;
}
.base-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #303731;
  color: #bccab8;
  border: 1px solid #424d41;
  border-radius: 5px;
}
.base-name strong {
  font-size: 12px;
  font-weight: 550;
  display: block;
}
.base-name small {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
  display: block;
}
.table-tools {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.table-tools input {
  max-width: 350px;
}
.footer {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #68757d;
  margin-top: 24px;
  line-height: 1.6;
}
.online-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  gap: 15px;
}
.member-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  display: flex;
  gap: 13px;
  align-items: center;
}
.member-card .name {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 8px;
}
.member-card small {
  color: var(--muted);
  font-size: 11px;
}
.roster-panel .panel-title h2 { margin-top: 8px; }
.roster-tabs { display: flex; gap: 8px; padding: 0 24px 22px; flex-wrap: wrap; }
.roster-tabs button { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.roster-tabs button[aria-pressed="true"] { background: #24332d; color: #92d8ae; border-color: #537d62; }
.roster-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 0 24px 24px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--line); }
.roster-summary > div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px; background: var(--surface); }
.roster-summary span:not(.chip), .roster-summary small { color: var(--muted); font-size: 12px; }
.roster-summary strong { font-size: 30px; font-weight: 650; }
.roster-summary .text-online { color: #92d8ae; }
.roster-notice { margin: 0 24px 18px; padding: 14px; background: #342e20; border: 1px solid #6d5b32; border-radius: 6px; font-size: 13px; line-height: 1.6; }
.roster-player { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; min-width: 180px; }
.roster-player:hover strong { text-decoration: underline; }
.roster-player .avatar { flex-shrink: 0; }
.roster-table small { display: block; color: var(--muted); font-size: 11px; margin-top: 6px; }
.roster-table td { max-width: 310px; overflow-wrap: anywhere; }
.roster-table td:last-child { font-size: 12px; color: var(--muted); }
.roster-footnote { color: var(--muted); font-size: 12px; line-height: 1.7; padding: 0 24px 20px; margin: 0; }
.roster-panel > .roster-footnote { padding-top: 20px; }
.roster-activity-list { max-height: 430px; overflow-y: auto; padding: 0 24px 24px; }
.roster-activity { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.6; }
.roster-activity small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.activity-dot { flex: 0 0 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: #8a98a4; }
.activity-dot.online, .activity-dot.joined { background: #92d8ae; }
.activity-dot.offline, .activity-dot.left, .activity-dot.death { background: #dd826d; }
@media (max-width: 680px) { .roster-summary { grid-template-columns: 1fr 1fr; margin-inline: 14px; } .roster-tabs { padding-inline: 14px; } .roster-summary > div { padding: 16px; } }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.settings-card {
  padding: 24px;
}
.settings-card h2 {
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 12px;
}
.settings-card p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}
.settings-card ol {
  padding-left: 20px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.settings-card .chip {
  margin-bottom: 10px;
}
.help {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.help a {
  color: var(--accent);
  text-decoration: underline;
}
.help code {
  background: #252d31;
  padding: 3px 5px;
  color: #d8c3a4;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.empty {
  padding: 40px 22px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.empty .icon {
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
}
.empty h3 {
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  margin: 6px;
}
.empty button {
  margin-top: 15px;
}
input,
select,
textarea {
  color: var(--text);
  background: #151b1f;
  border: 1px solid #3b444b;
  border-radius: 5px;
  padding: 10px 12px;
  width: 100%;
  min-width: 0;
}
textarea {
  resize: vertical;
  min-height: 95px;
}
input::placeholder,
textarea::placeholder {
  color: #6f7b82;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
label {
  display: block;
  margin-bottom: 16px;
  font-size: 12px;
  color: #c4ced2;
}
label input,
label select,
label textarea {
  display: block;
  margin-top: 8px;
}
label small {
  display: block;
  color: var(--muted);
  line-height: 1.6;
  font-size: 11px;
  margin-top: 7px;
}
.field-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  margin: -4px 0 18px;
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
dialog {
  color: var(--text);
  background: var(--surface);
  border: 1px solid #48525b;
  border-radius: 10px;
  padding: 27px;
  max-width: 550px;
  width: calc(100% - 32px);
  max-height: 90vh;
  box-shadow: 0 20px 100px #0008;
}
dialog::backdrop {
  background: #080d12bd;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 22px;
}
.modal-head h2 {
  font-size: 21px;
  font-weight: 600;
  margin: 0 0 9px;
}
.modal-head p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.modal-head button {
  padding: 5px;
  border: 0;
  background: none;
}
.form-error {
  font-size: 12px;
  color: #f1a48f;
  line-height: 1.6;
  background: #382925;
  padding: 10px 12px;
  border-radius: 4px;
  margin: 12px 0;
}
.form-error:empty {
  display: none;
}
.device-item {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 13px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}
.device-item p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  margin: 7px 0;
}
.loading {
  padding: 15vh 20px;
  text-align: center;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #344139;
  color: #e4eee6;
  border: 1px solid #657c6a;
  border-radius: 6px;
  padding: 13px 20px;
  font-size: 13px;
  z-index: 20;
  max-width: 90vw;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.mobile-logo {
  display: none;
}
.code-block {
  padding: 12px;
  background: #13191c;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-family: Consolas, monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
  line-height: 1.8;
  color: #c8d2d2;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.guide-step {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: 700;
}
.session-error {
  padding: 30px;
  margin: 40px;
  border: 1px solid var(--red);
  border-radius: 8px;
}
.ack {
  opacity: 0.6;
}
.highlight-box {
  border-left: 3px solid var(--accent);
  background: #2a2723;
  padding: 14px 16px;
  font-size: 12px;
  line-height: 1.7;
  color: #c9baaa;
  margin: 18px 0;
}
.map-hint {
  font-size: 11px;
  color: var(--accent);
  margin-left: 10px;
}
.last-refresh {
  font-size: 10px;
  color: var(--muted);
}
@media (min-width: 1500px) {
  .map-frame {
    height: 480px;
  }
  .content {
    padding-top: 32px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 330px;
  }
}
@media (max-width: 1150px) {
  .shell {
    grid-template-columns: 195px 1fr;
  }
  .content {
    padding: 22px;
  }
  .topbar {
    padding: 0 22px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 265px;
  }
  .sidebar {
    padding-left: 10px;
    padding-right: 10px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px 14px;
  }
  .stat .eyebrow {
    max-width: 100px;
    line-height: 1.5;
  }
  .stat .stat-icon {
    right: 10px;
  }
  .map-frame {
    height: 400px;
  }
}
@media (max-width: 930px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .panel.profile-hero {
    flex-wrap: wrap;
    padding: 24px;
  }
  .top-profile small {
    display: none;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .map-frame {
    height: 460px;
  }
  .heading {
    align-items: flex-start;
  }
  .heading-actions {
    flex-direction: column;
  }
  .demo-banner {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .demo-banner button {
    display: none;
  }
  .top-actions > .chip {
    display: none;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .guide-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .top-profile strong {
    max-width: 100px;
  }
  .top-profile {
    gap: 7px;
  }
  .topbar .top-actions select {
    max-width: 45%;
  }
  .profile-identity {
    gap: 16px;
    align-items: flex-start;
  }
  .avatar-large {
    width: 64px;
    height: 64px;
    font-size: 20px;
  }
  .profile-identity h2 {
    font-size: 23px;
  }
  .profile-identity .eyebrow {
    font-size: 9px;
    line-height: 1.7;
  }
  .panel.profile-hero {
    padding: 22px 18px;
  }
  .profile-buttons {
    gap: 13px;
  }
  .shell {
    display: block;
  }
  .sidebar {
    height: auto;
    position: static;
    padding: 16px 12px 8px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .logo {
    margin: 0 5px 18px;
    font-size: 18px;
  }
  .sidebar .logo img {
    width: 30px;
    height: 30px;
  }
  .side-label,
  .sidebar-bottom {
    display: none;
  }
  .nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 4px;
    scrollbar-width: none;
  }
  .nav button {
    flex-shrink: 0;
    padding: 10px;
    font-size: 11px;
    gap: 6px;
  }
  .nav button .icon {
    width: 15px;
    height: 15px;
  }
  .nav button .count {
    display: none;
  }
  .topbar {
    height: 60px;
    padding: 0 17px;
  }
  .breadcrumb {
    display: none;
  }
  .top-actions {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  .top-actions select {
    font-size: 12px;
    max-width: 180px;
  }
  .steam img {
    width: 120px;
  }
  .content {
    padding: 18px 16px 30px;
  }
  .heading h1 {
    font-size: 25px;
  }
  .heading {
    gap: 12px;
  }
  .heading-actions button {
    padding: 9px 11px;
    font-size: 11px;
  }
  .heading-actions .ghost {
    display: none;
  }
  .heading p {
    font-size: 12px;
  }
  .demo-banner {
    font-size: 11px;
    padding: 10px 12px;
    gap: 6px;
    margin-bottom: 22px;
  }
  .stats {
    gap: 9px;
    margin-bottom: 16px;
  }
  .stat {
    padding: 15px;
  }
  .stat .value {
    font-size: 26px;
  }
  .stat small {
    font-size: 10px;
  }
  .stat .eyebrow {
    font-size: 9px;
  }
  .dashboard-grid {
    gap: 16px;
  }
  .stack {
    grid-template-columns: 1fr;
  }
  .map-frame {
    height: 350px;
  }
  .map-frame.large {
    height: 420px;
  }
  .panel-title {
    padding: 15px;
  }
  .map-footer {
    font-size: 9px;
    padding: 11px;
  }
  .table-tools {
    padding: 13px;
  }
  .table-tools select {
    max-width: 135px;
  }
  .footer {
    gap: 15px;
    font-size: 9px;
  }
  .settings-card {
    padding: 20px;
  }
  .form-row {
    gap: 10px;
  }
  dialog {
    padding: 21px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .online-list {
    grid-template-columns: 1fr;
  }
  .map-legend {
    font-size: 9px;
    gap: 10px;
    left: 10px;
    bottom: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.dashboard-grid > *,
.stack > *,
.stats > * {
  min-width: 0;
}
.mobile-only {
  display: none;
}
.map-marker.game-note {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 3px;
  background: #172024e8;
  border: 1px solid #809498;
  color: #b9edff;
  z-index: 3;
}
.legend-dot.game-note-dot { background: #78d2ed; }
.game-notes-list { display: grid; gap: 10px; margin: 18px 0; max-height: 45vh; overflow-y: auto; }
.game-note-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px; border: 1px solid #303942; border-radius: 8px; }
.game-note-row small { display: block; color: #a2acb8; margin-top: 6px; }
.game-note-row button { max-width: 100%; overflow-wrap: anywhere; }
.game-note-symbol { display: inline-block; width: 30px; height: 30px; flex: 0 0 30px; object-fit: contain; pointer-events: none; }
.game-note-mask { background: var(--note-colour); mask-repeat: no-repeat; mask-size: contain; mask-position: center; -webkit-mask-repeat: no-repeat; -webkit-mask-size: contain; -webkit-mask-position: center; }
.game-note-identity, .game-note-preview { display: flex; align-items: center; gap: 12px; min-width: 0; }
.game-note-identity strong { overflow-wrap: anywhere; }
.game-note-preview { margin-bottom: 18px; }
.map-layer { position: absolute; inset: 0; pointer-events: none; }
.map-layer .map-marker { pointer-events: auto; }
.map-layer[hidden] { display: none; }
.live-map-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; padding: 0 20px 18px; }
.live-map-toolbar > div:first-child { flex: 1 1 280px; }
.live-map-toolbar strong { font-size: 12px; font-weight: 600; }
.live-map-toolbar small { display: block; color: var(--muted); margin-top: 6px; font-size: 11px; }
.live-map-toolbar label { font-size: 11px; margin: 0; min-width: 190px; }
.live-map-toolbar select { margin-top: 5px; padding: 8px; }
.map-layer-buttons { display: flex; gap: 5px; }
.death-summary { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid #633b3b; background: #2b2022; border-radius: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.death-summary > div { flex: 1; }
.death-summary small, .death-summary strong { display: block; }
.death-summary small { color: var(--muted); margin-bottom: 5px; }
.death-summary strong { font-size: 20px; }
.death-choices { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0 0 14px; }
.death-choices legend { font-weight: 600; margin-bottom: 12px; }
.death-choice { display: flex; align-items: center; gap: 8px; flex: 1 1 130px; padding: 12px; border: 1px solid var(--line); border-radius: 7px; margin: 0; cursor: pointer; }
.death-choice:has(input:checked) { border-color: var(--accent); background: #392723; }
.death-choice input { width: auto; margin: 0; accent-color: var(--accent); }
.death-others { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 12px; }
.death-others button { margin: 0 6px 6px 0; }
.map-layer-buttons [aria-pressed="true"] { color: #92d8ae; background: #24332d; border-color: #537d62; }
.map-marker.live-player { width: 34px; height: 34px; padding: 3px; border: 2px solid #9ceaa9; border-radius: 50%; background: #183d28; color: #adf4ba; z-index: 5; transition: left .8s linear, top .8s linear; }
.live-player img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; pointer-events: none; }
.live-player.following { border-color: #fff; box-shadow: 0 0 0 4px #81b99480; z-index: 6; }
.live-player .game-note-label { max-width: 110px; }
@media (prefers-reduced-motion: reduce) { .map-marker.live-player { transition: none; } }
.game-note-label { position: absolute; top: calc(100% + 3px); left: 50%; transform: translateX(-50%); padding: 3px 6px; border-radius: 3px; background: #12191de8; color: #fff; font: 600 11px/1.3 sans-serif; max-width: 140px; width: max-content; white-space: normal; overflow-wrap: anywhere; pointer-events: none; }
@media (max-width: 680px) {
  .mobile-only {
    display: inline-flex;
  }
}
