﻿:root {
  --bg-a: #050a14;
  --bg-b: #0b1324;
  --bg-c: #101a2f;
  --surface: rgba(17, 24, 39, 0.8);
  --surface-strong: #111827;
  --surface-alt: #1a2438;
  --stroke: #2e3c59;
  --stroke-soft: #22314d;
  --accent: #27d9d2;
  --accent-strong: #14b8c4;
  --danger: #f97373;
  --ok: #22c55e;
  --off: #64748b;
  --text: #ecf3ff;
  --text-soft: #b6c5dc;
  --text-dim: #7f91ad;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(39, 217, 210, 0.15), transparent 55%),
    radial-gradient(900px 460px at 0% 0%, rgba(82, 129, 255, 0.2), transparent 50%),
    linear-gradient(160deg, var(--bg-a), var(--bg-b) 55%, var(--bg-c));
}

.home-star{
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 36px;
  height: 36px;
  opacity: 0.5;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.home-star img{
  width: 28px;
  height: 28px;
  display: block;
}

.screen {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 16px 24px;
}

.hidden { display: none !important; }

.top {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid var(--stroke-soft);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(23, 33, 52, 0.9), rgba(14, 22, 37, 0.9));
  backdrop-filter: blur(8px);
}

h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: 0.01em;
  font-weight: 700;
  text-align: center;
}

.top-title {
  width: 100%;
}

.app-tabs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(5, 10, 18, 0.28);
}

.app-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.app-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.app-tab.active {
  color: #fff;
  border-color: rgba(74, 163, 255, 0.42);
  background: linear-gradient(180deg, rgba(47, 124, 236, 0.24), rgba(17, 64, 122, 0.28));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.top-connections {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.top-conn-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-soft);
}

.top-conn-label {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.top-conn-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4f4f;
  box-shadow: 0 0 7px rgba(239, 79, 79, 0.7);
}

.top-conn-dot.on {
  background: #32d26d;
  box-shadow: 0 0 7px rgba(50, 210, 109, 0.7);
}

.top-conn-dot.off {
  background: #ef4f4f;
  box-shadow: 0 0 7px rgba(239, 79, 79, 0.7);
}

.title-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.title-link:hover {
  filter: brightness(1.08);
}

.title-ghost {
  font-size: 14px;
  font-weight: 600;
  color: rgba(236, 243, 255, 0.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top p {
  margin: 5px 0 0;
  color: var(--text-soft);
  font-size: 12px;
}

.top-actions {
  position: absolute;
  right: 14px;
  top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, #1a2740, #141f33);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.top-link:hover {
  filter: brightness(1.08);
}

.push-toggle-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(29, 42, 67, 0.95), rgba(20, 32, 54, 0.95));
  color: #ef4f4f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.push-toggle-btn.on {
  border-color: rgba(34, 197, 94, 0.65);
  color: #32d26d;
}

.push-toggle-btn.off {
  border-color: rgba(239, 79, 79, 0.65);
  color: #ef4f4f;
}

.push-toggle-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-toggle-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(29, 42, 67, 0.95), rgba(20, 32, 54, 0.95));
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

.settings-toggle-btn:hover {
  filter: brightness(1.08);
}

.push-status-text {
  color: var(--text-dim);
  font-size: 11px;
  white-space: nowrap;
}


.counter {
  min-width: 72px;
  text-align: right;
  font-size: 36px;
  font-weight: 800;
  color: #9cf8f0;
}

.auth-gate {
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(21, 31, 49, 0.92), rgba(16, 24, 38, 0.92));
  margin-bottom: 14px;
}

.auth-gate h2 {
  margin: 0 0 5px;
  font-size: 20px;
  text-align: center;
}

.auth-gate p {
  margin: 0 0 10px;
  color: var(--text-soft);
  font-size: 12px;
  text-align: center;
}

.auth-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.auth-status {
  min-height: 20px;
  margin-top: 8px;
  color: var(--danger);
  font-size: 12px;
}


.auth-lock {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
  margin: 0 auto;
}

.auth-pin-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  height: 0;
  width: 0;
  padding: 0;
  border: 0;
}

.auth-pin-dots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.pin-dot {
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, #132034, #0f1a2b);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pin-dot::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(156, 248, 240, 0.15);
}

.pin-dot.filled::before {
  background: #9cf8f0;
  box-shadow: 0 0 10px rgba(156, 248, 240, 0.7);
}

.auth-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pad-btn {
  height: 46px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, #1a2740, #141f33);
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.pad-btn.alt {
  color: var(--text-soft);
  font-size: 16px;
}

.auth-submit {
  width: 100%;
}

.auth-gate.auth-error {
  animation: lock-shake 240ms linear 1;
}

@keyframes lock-shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}

.add-bar {
  position: relative;
  display: block;
  margin-bottom: 12px;
}

.add-bar #playerKey {
  width: 100%;
  padding-right: 94px;
}

.add-bar #addBtn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  height: 36px;
  min-width: 68px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13px;
  z-index: 1;
}

.add-status {
  display: none;
}

.add-status.ok {
  color: var(--ok);
}

.add-status.error {
  color: var(--danger);
}

.settings-status {
  min-height: 18px;
  color: var(--text-dim);
  font-size: 12px;
}

.settings-status.ok {
  color: var(--ok);
}

.settings-status.error {
  color: var(--danger);
}

#addBtn.add-feedback-ok {
  border-color: rgba(34, 197, 94, 0.65);
  color: #d9ffe6;
}

#addBtn.add-feedback-error {
  border-color: rgba(239, 79, 79, 0.7);
  color: #ffd9d9;
}

#addBtn.add-feedback-info {
  border-color: rgba(39, 217, 210, 0.55);
  color: #dbfffd;
}

input {
  height: 48px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: linear-gradient(180deg, #1b2740, #162238);
  color: var(--text);
  padding: 0 14px;
  font-size: 15px;
  outline: none;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(39, 217, 210, 0.2);
}

input::placeholder { color: var(--text-dim); }

button {
  height: 48px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  color: #062027;
  font-weight: 800;
  cursor: pointer;
  padding: 0 16px;
  transition: transform 120ms ease, filter 120ms ease, box-shadow 120ms ease;
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 8px 18px rgba(20, 184, 196, 0.25);
}

button:active {
  transform: translateY(0);
}

button.btn-loading {
  position: relative;
  overflow: hidden;
}

button.btn-loading::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -36%;
  width: 36%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.32),
    rgba(255, 255, 255, 0)
  );
  animation: btn-sheen 900ms linear infinite;
  pointer-events: none;
}

@keyframes btn-sheen {
  from { left: -36%; }
  to { left: 112%; }
}

button.secondary {
  background: linear-gradient(180deg, #22314d, #1a253b);
  border-color: var(--stroke);
  color: var(--text-soft);
}

.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.group {
  padding-top: 2px;
}

.group-header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 6px;
  padding: 8px 12px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(24, 35, 56, 0.95), rgba(18, 28, 44, 0.95));
}

.group-title {
  flex: 1 1 180px;
  min-width: 0;
  color: #9fb6d7;
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.group-sulfur-sum {
  font-size: 12px;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #f4e39e;
  white-space: nowrap;
  font-weight: 600;
}

.group-rankeval-sum {
  margin-left: auto;
  display: grid;
  flex: 0 1 clamp(300px, 42vw, 580px);
  min-width: 0;
  max-width: 100%;
  gap: 2px;
  text-align: right;
  align-self: flex-start;
  pointer-events: none;
}

.group-rocket-c4-sum {
  font-size: 12px;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #ef4f4f;
  font-weight: 600;
}

.group-profit-sum {
  font-size: 12px;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #32d26d;
  font-weight: 600;
}

.group-sulfur-sum,
.group-rocket-c4-sum,
.group-profit-sum {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.2;
}

.group-btn,
.player-btn {
  height: 32px;
  width: 32px;
  min-width: 32px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, #152238, #101a2b);
  color: #b7c8e4;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.group-btn svg,
.player-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.group-btn.warn,
.player-btn.warn {
  color: var(--danger);
}

.group-btn.muted,
.player-btn.muted {
  color: var(--text-dim);
  opacity: 0.8;
}

.player-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(20, 30, 48, 0.96), rgba(16, 24, 38, 0.96));
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--off);
  box-shadow: 0 0 0 4px rgba(100, 116, 139, 0.15);
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 12px;
}

.status-dot.online {
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

.player-main {
  flex: 1;
  min-width: 0;
  cursor: pointer;
  position: relative;
  padding-right: 248px;
}

.player-avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--stroke);
  object-fit: cover;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 0;
}

.player-name {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-name-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.player-name-row .player-name {
  flex: 1 1 auto;
  min-width: 0;
}

.player-sulfur-inline {
  position: absolute;
  top: 0;
  right: 0;
  color: #f4e39e;
  font-size: 12px;
  font-weight: 400;
  white-space: normal;
  text-align: right;
  line-height: 1.15;
  display: grid;
  gap: 1px;
  max-width: 236px;
}

.player-sulfur-line-1 {
  white-space: nowrap;
}

.player-sulfur-line-2 {
  color: #ef4f4f;
  white-space: nowrap;
}

.player-sulfur-line-3 {
  color: #32d26d;
  white-space: nowrap;
}

.player-meta {
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 12px;
  white-space: nowrap;
}

.player-steam-meta {
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-dim);
}

.player-steam-meta a {
  color: #8dd3ff;
  text-decoration: none;
}

.player-steam-meta a:hover {
  text-decoration: underline;
}

.player-details {
  margin-top: 4px;
  color: var(--text-dim);
  font-size: 11px;
  white-space: normal;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.player-details-lines {
  margin-bottom: 0;
  white-space: pre-wrap;
  line-height: 1.25;
}

.player-detail-row {
  margin: 0;
}

.player-detail-row-steamid {
  white-space: nowrap;
}

.player-detail-row-play24 {
  white-space: nowrap;
}

.player-details a {
  color: #9fd8ff;
  font-weight: 700;
  text-decoration: none;
}

.player-details a:hover {
  color: #c9ebff;
  text-decoration: underline;
}

.player-rankeval-table-wrap {
  margin-top: 5px;
  border: 1px solid rgba(120, 150, 185, 0.22);
  border-radius: 8px;
  background: rgba(8, 14, 24, 0.58);
  overflow: hidden;
}

.player-activity-wrap .player-rankeval-table-wrap {
  margin-top: 6px;
}

.player-rankeval-table-title {
  padding: 4px 7px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-soft);
  border-bottom: 1px solid rgba(120, 150, 185, 0.2);
  background: rgba(12, 21, 35, 0.7);
}

.player-rankeval-table {
  width: 100%;
  border-collapse: collapse;
}

.player-rankeval-table td {
  padding: 4px 7px;
  font-size: 10px;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(120, 150, 185, 0.1);
}

.player-rankeval-table tr:last-child td {
  border-bottom: 0;
}

.player-rankeval-table td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--text-soft);
}

.player-rankeval-table-3col td {
  width: 33.333%;
  vertical-align: top;
  padding: 6px;
  border-right: 1px solid rgba(120, 150, 185, 0.14);
  border-bottom: 0;
}

.player-rankeval-table-3col {
  width: 100%;
  table-layout: fixed;
}

.player-rankeval-table-3col td {
  min-width: 0;
}

.player-rankeval-table-3col td:last-child {
  border-right: 0;
  text-align: left;
}

.player-rankeval-col-title {
  margin-bottom: 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9fd8ff;
}

.player-rankeval-col-body {
  display: grid;
  gap: 2px;
}

.player-rankeval-col-row {
  display: block;
  font-size: 10px;
  line-height: 1.2;
}

.player-rankeval-col-label {
  color: var(--text-dim);
  display: inline;
}

.player-rankeval-col-value {
  color: var(--text-soft);
  font-weight: 700;
  display: inline;
  white-space: nowrap;
  margin-left: 3px;
}

.activity24 {
  margin-top: 3px;
  border: 1px solid rgba(120, 150, 185, 0.25);
  border-radius: 12px;
  padding: 7px 8px 6px;
  background: linear-gradient(180deg, rgba(10, 20, 34, 0.72), rgba(7, 14, 24, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.player-rankeval-table-wrap + .activity24 {
  margin-top: 6px;
}

.activity24-title {
  color: var(--text-soft);
  font-weight: 700;
  font-size: 11px;
  margin-bottom: 4px;
}

.activity24-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.activity24-head .activity24-title {
  margin-bottom: 0;
}

.activity24-switch {
  display: inline-flex;
  border: 1px solid rgba(120, 150, 185, 0.32);
  border-radius: 8px;
  background: rgba(6, 14, 25, 0.65);
  overflow: hidden;
}

.activity24-switch-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #a8bbd1;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 7px;
  cursor: pointer;
}

.activity24-switch-btn.is-active {
  color: #eaf6ff;
  background: rgba(77, 182, 255, 0.34);
}

.activity24-bars {
  height: 70px;
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  align-items: end;
  gap: 2px;
  padding: 3px 3px 2px;
  border-radius: 8px;
  background:
    linear-gradient(to top, rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 100% 25%,
    rgba(4, 10, 18, 0.45);
}

.activity24.mode-week .activity24-bars {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.activity24-col {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.activity24-bar {
  width: 100%;
  max-width: none;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #57d4ff 0%, #2a8fda 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  opacity: 0.95;
  transition: filter 120ms ease, opacity 120ms ease;
}

.activity24-bar.weekly.day-0 { background: linear-gradient(180deg, #b39ddb 0%, #7e57c2 100%); }
.activity24-bar.weekly.day-1 { background: linear-gradient(180deg, #90caf9 0%, #42a5f5 100%); }
.activity24-bar.weekly.day-2 { background: linear-gradient(180deg, #80deea 0%, #26c6da 100%); }
.activity24-bar.weekly.day-3 { background: linear-gradient(180deg, #a5d6a7 0%, #66bb6a 100%); }
.activity24-bar.weekly.day-4 { background: linear-gradient(180deg, #ffe082 0%, #ffca28 100%); }
.activity24-bar.weekly.day-5 { background: linear-gradient(180deg, #ffcc80 0%, #ffa726 100%); }
.activity24-bar.weekly.day-6 { background: linear-gradient(180deg, #ef9a9a 0%, #ef5350 100%); }

.activity24-bar.weekly {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2px;
  cursor: pointer;
}

.activity24-bar-value {
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  color: rgba(8, 13, 24, 0.92);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
  white-space: nowrap;
  pointer-events: none;
}

.activity24-col.now .activity24-bar {
  background: linear-gradient(180deg, #6fffd0 0%, #22b981 100%);
}

.activity24-scale {
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 10px;
}

.activity24-hours {
  margin-top: 5px;
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 2px;
  align-items: start;
}

.activity24.mode-week .activity24-hours {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.activity24-hour {
  color: #8ea6c0;
  font-size: 8px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.player-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.player-activity-wrap {
  display: grid;
  gap: 6px;
  width: 100%;
  margin-top: 2px;
}

.player-card[draggable="true"],
.group-header[draggable="true"] {
  cursor: grab;
}

.player-card.dragging,
.group-header.dragging {
  opacity: 0.5;
}

.drag-hover {
  outline: 2px dashed var(--accent);
  outline-offset: 2px;
}

@media (max-width: 680px) {
  .top {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid var(--stroke-soft);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(23, 33, 52, 0.9), rgba(14, 22, 37, 0.9));
  backdrop-filter: blur(8px);
}

  h1 {
    font-size: 22px;
  }

  .top-title {
    padding: 0 70px;
  }

  .app-tabs {
    width: 100%;
    gap: 4px;
  }

  .app-tab {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 6px;
    font-size: 12px;
  }

  .title-link {
    gap: 6px;
  }

  .title-ghost {
    font-size: 11px;
    letter-spacing: 0.05em;
  }

  .counter {
    font-size: 28px;
    text-align: left;
  }

  .top-actions {
    position: absolute;
    right: 10px;
    top: 10px;
    width: auto;
    justify-content: flex-end;
  }

  .top-connections {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    gap: 3px;
  }

  .top-conn-item {
    font-size: 10px;
    gap: 5px;
  }

  .top-conn-dot {
    width: 9px;
    height: 9px;
  }

  .auth-row {
    grid-template-columns: 1fr;
  }

  .player-card {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
  }

  .status-dot {
    margin-top: 10px;
  }

  .player-avatar {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  .player-name {
    font-size: 15px;
    line-height: 1.2;
  }

  .player-name-row {
    gap: 8px;
  }

  .player-sulfur-inline {
    font-size: 9px;
    max-width: none;
    line-height: 1.05;
    position: static;
    right: auto;
    top: auto;
    text-align: left;
    margin-top: 2px;
  }

  .player-main {
    padding-right: 0;
    flex: 1 1 auto;
    min-width: 0;
  }

  .player-meta {
    margin-top: 1px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .player-steam-meta {
    font-size: 12px;
  }

  .player-actions {
    width: auto;
    margin-left: auto;
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    justify-content: end;
    align-content: start;
    flex: 0 0 auto;
  }

  .player-activity-wrap {
    width: 100%;
    margin-top: 2px;
  }

  .player-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 8px;
  }

  .player-btn svg {
    width: 13px;
    height: 13px;
  }

  .group-header {
    align-items: flex-start;
  }

  .group-title {
    align-self: center;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.15;
  }

  .group-rankeval-sum {
    gap: 0;
    max-width: min(100%, 46vw);
    min-width: 0;
    overflow: visible;
  }

  .group-sulfur-sum,
  .group-rocket-c4-sum,
  .group-profit-sum {
    font-size: clamp(7px, 2vw, 9px);
    line-height: 1.15;
    letter-spacing: 0;
    font-weight: 600;
  }

  .activity24-bars {
    height: 78px;
    gap: 1px;
  }

  .activity24-bar {
    max-width: none;
    width: 100%;
    margin: 0;
  }

  .activity24-hours {
    margin-top: 6px;
    gap: 1px;
    min-height: 34px;
    align-items: start;
  }

  .activity24.mode-week .activity24-hours {
    min-height: auto;
    margin-top: 6px;
    gap: 4px;
  }

  .activity24-hour {
    font-size: 7px;
    display: block;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin: 0 auto;
    line-height: 1.05;
  }

  .activity24.mode-week .activity24-hour {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 9px;
    white-space: nowrap;
  }

  .activity24-bar-value {
    font-size: 8px;
  }

  .activity24-switch-btn {
    font-size: 10px;
    padding: 4px 8px;
  }

  .player-rankeval-table-3col td {
    padding: 5px 4px;
  }

  .player-rankeval-col-title {
    font-size: 8px;
    margin-bottom: 3px;
  }

  .player-rankeval-col-row {
    font-size: 9px;
    gap: 3px;
  }
}


.server-online {
  margin: 2px 0 12px;
  padding: 10px 14px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(24, 36, 58, 0.92), rgba(16, 25, 40, 0.92));
  color: var(--text-soft);
  font-size: 14px;
}

.server-online-label {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.server-online strong {
  color: #9cf8f0;
  font-size: 20px;
  letter-spacing: 0.02em;
}


.steam-picker {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(4, 10, 20, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.steam-picker-card {
  width: min(760px, 100%);
  max-height: min(80vh, 860px);
  overflow: auto;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(20, 30, 48, 0.98), rgba(16, 24, 38, 0.98));
  padding: 12px;
}

.steam-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.steam-picker-head h3 {
  margin: 0;
  font-size: 18px;
}

.steam-picker-status {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 24px;
}

.steam-picker-hint {
  margin: 8px 0 10px;
  color: var(--text-soft);
  font-size: 12px;
}

.steam-picker-close {
  height: 34px;
  width: 34px;
  min-width: 34px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, #1a2740, #141f33);
  color: var(--text-soft);
  font-weight: 700;
}

.steam-picker-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.steam-candidate-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.steam-candidate-section h4 {
  margin: 4px 2px 2px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.steam-candidate-empty {
  padding: 8px 10px;
  border: 1px dashed var(--stroke);
  border-radius: 10px;
  color: var(--text-soft);
  font-size: 12px;
}

.steam-candidate {
  width: 100%;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 9px 10px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: linear-gradient(180deg, #152238, #101a2b);
  color: var(--text);
}

.steam-candidate.disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.steam-candidate img,
.steam-candidate-avatar-fallback {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--stroke);
  object-fit: cover;
  background: #0f1a2b;
  flex-shrink: 0;
}

.steam-candidate-main {
  flex: 1;
  min-width: 0;
}

.steam-candidate-name {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.steam-candidate-meta {
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 11px;
}

.steam-badge {
  display: inline-block;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.steam-badge.ok {
  color: #8ff1c4;
  border-color: rgba(143, 241, 196, 0.45);
}

.steam-badge.warn {
  color: #ffd88d;
  border-color: rgba(255, 216, 141, 0.45);
}

.steam-candidate-link a {
  color: #8dd3ff;
  font-size: 12px;
  text-decoration: none;
}

.steam-candidate-link a:hover {
  text-decoration: underline;
}

.rustplus-panel {
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(20, 30, 48, 0.96), rgba(16, 24, 38, 0.96));
}

.rustplus-guide-list {
  margin: 0 0 10px 18px;
  padding: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.45;
}

.rustplus-guide-list li {
  margin-bottom: 6px;
}

.rustplus-guide-list code {
  color: #d8fff3;
  background: rgba(7, 15, 24, 0.45);
  padding: 1px 4px;
  border-radius: 4px;
}

.rustplus-upload-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rustplus-config-file {
  min-width: 260px;
  max-width: 100%;
  color: var(--text-soft);
}

.rustplus-server {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(22, 32, 50, 0.96), rgba(16, 24, 38, 0.96));
  margin-bottom: 12px;
}

.rustplus-server-title {
  font-size: 14px;
  font-weight: 700;
}

.rustplus-server-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-soft);
}

.rustplus-server-link {
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 8px 12px;
  background: linear-gradient(180deg, #1a2740, #141f33);
  color: var(--text);
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}

.rustplus-server-link:hover {
  filter: brightness(1.08);
}

.rustplus-header {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.rustplus-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.rustplus-conn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, #1a2740, #141f33);
  font-size: 11px;
  color: var(--text-soft);
}

.rustplus-conn-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d65c5c;
  box-shadow: 0 0 6px rgba(214, 92, 92, 0.7);
}

.rustplus-conn.is-online .rustplus-conn-dot {
  background: #63e06a;
  box-shadow: 0 0 6px rgba(99, 224, 106, 0.7);
}


.rustplus-header h2 {
  margin: 0;
  font-size: 18px;
}

.rustplus-refresh {
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 8px 12px;
  background: linear-gradient(180deg, #1a2740, #141f33);
  color: var(--text);
  font-weight: 700;
  font-size: 12px;
}

.rustplus-refresh:hover {
  filter: brightness(1.08);
}

.rustplus-status {
  min-height: 18px;
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 12px;
  white-space: pre-line;
}

.rustplus-log {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rustplus-entry {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #152238, #101a2b);
}

.rustplus-entry-title {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rustplus-entry-meta {
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 11px;
}

.rustplus-raid-details {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--stroke);
}

.rustplus-raid-details summary {
  cursor: pointer;
  color: var(--text);
  font-size: 11px;
}

.rustplus-raid-list {
  margin-top: 6px;
  display: grid;
  gap: 6px;
}

.rustplus-raid-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 8px;
  font-size: 11px;
  color: var(--text-soft);
}

.rustplus-raid-time {
  color: var(--text-muted);
  white-space: nowrap;
}

.rustplus-delete {
  height: 28px;
  width: 28px;
  min-width: 28px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, #152238, #101a2b);
  color: var(--danger);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rustplus-delete.small {
  height: 24px;
  width: 24px;
  min-width: 24px;
}

.rustplus-delete svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rustplus-empty {
  border: 1px dashed var(--stroke);
  border-radius: 12px;
  padding: 12px;
  color: var(--text-soft);
  font-size: 12px;
}

.rustplus-live {
  margin-top: 10px;
}

.rustplus-live-grid {
  display: grid;
  gap: 12px;
}

.rustplus-live-card {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #152238, #101a2b);
}

.rustplus-live-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.rustplus-live-error {
  color: var(--danger);
  font-size: 11px;
  margin-bottom: 6px;
}

.rustplus-live-muted {
  color: var(--text-muted);
  font-size: 11px;
}

.rustplus-live-rows {
  display: grid;
  gap: 6px;
}

.rustplus-live-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px;
  font-size: 11px;
}

.rustplus-live-label {
  color: var(--text-muted);
}

.rustplus-live-value {
  color: var(--text);
}

.rustplus-live-list {
  display: grid;
  gap: 6px;
  font-size: 11px;
  color: var(--text);
}

.rustplus-live-item {
  padding: 4px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.rustplus-live-item:last-child {
  border-bottom: 0;
}

.rustplus-teamchat-send {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.rustplus-teamchat-input {
  flex: 1;
  min-width: 180px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: rgba(10, 16, 28, 0.8);
  color: var(--text);
  padding: 8px 10px;
}

.rustplus-entity-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rustplus-entity-actions {
  display: inline-flex;
  gap: 6px;
}

.rustplus-live-map {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--stroke);
}

.rustplus-module-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 12px;
  align-items: stretch;
}

.rustplus-map-shell {
  min-width: 0;
}

.rustplus-map-canvas {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.04) 1px, transparent 1px),
    #101723;
  background-size: 10% 10%;
}

.rustplus-map-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform-origin: 0 0;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}

.rustplus-map-grid-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  transform-origin: 0 0;
}

.rustplus-map-trails {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  transform-origin: 0 0;
  z-index: 1;
}

.rustplus-map-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  transform-origin: 0 0;
  z-index: 3;
}

.rustplus-map-canvas.overlay-editing {
  cursor: crosshair;
}

.rustplus-map-trail {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  opacity: 0.78;
}

.rustplus-map-trail.player {
  stroke: rgba(122, 224, 110, 0.62);
  stroke-width: 2;
}

.rustplus-map-trail.event {
  stroke: rgba(111, 194, 255, 0.58);
  stroke-width: 2.5;
  stroke-dasharray: 6 5;
}

.rustplus-map-trail.event.kind-cargo {
  stroke: rgba(255, 198, 102, 0.72);
}

.rustplus-map-trail.event.kind-patrol_helicopter {
  stroke: rgba(255, 122, 122, 0.7);
}

.rustplus-map-trail.event.kind-chinook {
  stroke: rgba(183, 167, 255, 0.7);
}

.rustplus-map-trail.event.kind-travelling_vendor {
  stroke: rgba(130, 224, 168, 0.72);
}

.rustplus-map-trail.event.inactive {
  opacity: 0.46;
}

.rustplus-grid-line {
  position: absolute;
  display: block;
  background: rgba(255, 255, 255, 0.48);
  backface-visibility: hidden;
}

.rustplus-grid-line.vertical {
  width: 1px;
}

.rustplus-grid-line.horizontal {
  height: 1px;
}

.rustplus-grid-line.thick {
  background: rgba(255, 255, 255, 0.72);
}

.rustplus-grid-line.vertical.thick {
  width: 2px;
}

.rustplus-grid-line.horizontal.thick {
  height: 2px;
}

.rustplus-grid-label {
  position: absolute;
  padding: 0 2px;
  background: rgba(5, 12, 18, 0.58);
  color: rgba(255, 255, 255, 0.96);
  font-size: 10px;
  font-weight: 700;
  line-height: 13px;
  pointer-events: none;
  user-select: none;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.85);
  backface-visibility: hidden;
}

.rustplus-map-markers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform-origin: 0 0;
  z-index: 2;
}

.rustplus-map-marker {
  position: absolute;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  color: #081018;
  background: #9dd7ff;
  --rustplus-marker-shadow: 0 6px 18px rgba(0, 0, 0, 0.38);
  box-shadow: var(--rustplus-marker-shadow);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  backface-visibility: hidden;
  transition: none;
  will-change: auto;
}

.rustplus-map-marker:hover,
.rustplus-map-marker:active {
  transform: translate(-50%, -50%);
  filter: none;
  box-shadow: var(--rustplus-marker-shadow);
}

.rustplus-marker-icon,
.rustplus-dock-icon,
.rustplus-device-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.rustplus-map-marker.kind-cargo { background: #f4c76b; }
.rustplus-map-marker.kind-deep_sea { background: #4f9dff; }
.rustplus-map-marker.kind-patrol_helicopter { background: #ff8b6b; }
.rustplus-map-marker.kind-chinook { background: #b7a7ff; }
.rustplus-map-marker.kind-travelling_vendor { background: #82e0a8; }
.rustplus-map-marker.kind-vending { background: #69d2c4; }
.rustplus-map-marker.kind-player { background: #ffffff; }
.rustplus-map-marker.kind-harbor { 
  width: 22px;
  height: 22px;
  border: 0;
  background: transparent;
  --rustplus-marker-shadow: none;
  box-shadow: var(--rustplus-marker-shadow);
}

.rustplus-map-marker.kind-harbor .rustplus-marker-icon {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.48));
  opacity: 0.88;
}

.rustplus-map-marker.kind-harbor.selected .rustplus-marker-icon {
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.55));
}

.rustplus-map-marker.kind-small_oil_rig,
.rustplus-map-marker.kind-large_oil_rig {
  width: 26px;
  height: 26px;
  border: 0;
  background: transparent;
  --rustplus-marker-shadow: none;
  box-shadow: var(--rustplus-marker-shadow);
}

.rustplus-map-marker.kind-small_oil_rig .rustplus-marker-icon,
.rustplus-map-marker.kind-large_oil_rig .rustplus-marker-icon {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.56));
}

.rustplus-map-marker.kind-small_oil_rig.selected .rustplus-marker-icon,
.rustplus-map-marker.kind-large_oil_rig.selected .rustplus-marker-icon {
  filter: drop-shadow(0 0 10px rgba(255, 214, 119, 0.58));
}

.rustplus-map-marker.kind-small_oil_rig.crate-active .rustplus-marker-icon,
.rustplus-map-marker.kind-large_oil_rig.crate-active .rustplus-marker-icon {
  filter: drop-shadow(0 0 12px rgba(255, 215, 120, 0.68));
}

.rustplus-map-marker.kind-map_note,
.rustplus-map-marker.kind-death {
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  --rustplus-marker-shadow: none;
  box-shadow: var(--rustplus-marker-shadow);
}

.rustplus-map-marker.kind-map_note .rustplus-marker-icon,
.rustplus-map-marker.kind-death .rustplus-marker-icon {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.55));
}

.rustplus-player-dot {
  width: 10px;
  height: 10px;
  border: 2px solid #000;
  border-radius: 999px;
  background: #79e06e;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.rustplus-player-name {
  display: none;
}

.rustplus-map-marker.stale { opacity: 0.54; filter: grayscale(0.5); }

.rustplus-map-marker.pulse {
  animation: markerPulse 0.7s ease-in-out 2;
}

.rustplus-map-marker.selected {
  outline: 2px solid rgba(255, 255, 255, 0.92);
  outline-offset: 3px;
}

.rustplus-map-marker.recently-moved .rustplus-player-dot {
  box-shadow: 0 0 0 2px rgba(122, 224, 110, 0.28), 0 0 12px rgba(122, 224, 110, 0.48);
}

.rustplus-map-marker.recently-moved:not(.kind-player) {
  filter: drop-shadow(0 0 10px rgba(111, 194, 255, 0.45));
}

.rustplus-map-marker.inactive {
  opacity: 0.7;
}

.rustplus-map-marker.session-marker {
  box-shadow: 0 0 0 1px rgba(157, 215, 255, 0.22), 0 0 0 4px rgba(157, 215, 255, 0.08);
}

.rustplus-map-marker.kind-cargo.docked {
  background: #ffd88e;
  box-shadow: 0 0 0 1px rgba(255, 214, 119, 0.24), 0 8px 24px rgba(255, 193, 87, 0.38);
}

.rustplus-map-marker.phase-mid {
  box-shadow: 0 0 0 1px rgba(128, 206, 255, 0.34), 0 0 0 5px rgba(84, 176, 255, 0.12);
}

.rustplus-map-marker.phase-ended,
.rustplus-map-marker.phase-called {
  opacity: 0.74;
  filter: saturate(0.82);
}

.rustplus-map-marker.phase-route,
.rustplus-map-marker.phase-live,
.rustplus-map-marker.phase-crate {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 0 14px rgba(104, 206, 255, 0.22);
}

.rustplus-map-marker.phase-changed {
  animation: markerPulse 1s ease-in-out 3;
}

.rustplus-map-marker.phase-docked {
  box-shadow: 0 0 0 1px rgba(255, 214, 119, 0.28), 0 0 16px rgba(255, 193, 87, 0.28);
}

.rustplus-marker-timer {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  padding: 1px 5px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(11, 15, 20, 0.86);
  color: #f2f6fb;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.85);
}

.rustplus-marker-phase {
  position: absolute;
  right: calc(100% - 7px);
  top: calc(100% - 9px);
  min-width: 22px;
  padding: 1px 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(11, 15, 20, 0.88);
  color: #d9edf8;
  font-size: 8px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.82);
}

.rustplus-map-marker.phase-ended .rustplus-marker-phase,
.rustplus-map-marker.phase-called .rustplus-marker-phase {
  color: #d4dce6;
}

.rustplus-map-marker.phase-docked .rustplus-marker-phase,
.rustplus-map-marker.phase-route .rustplus-marker-phase,
.rustplus-map-marker.phase-crate .rustplus-marker-phase {
  color: #fff0c3;
}

.rustplus-map-marker.phase-mid .rustplus-marker-phase {
  color: #d2efff;
}

.rustplus-map-canvas {
  cursor: grab;
  touch-action: none;
}

.rustplus-map-canvas.panning {
  cursor: grabbing;
}

.rustplus-map-controls {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(18, 22, 29, 0.88);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
}

.rustplus-map-controls button {
  min-width: 30px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: #202936;
  color: var(--text);
  font-weight: 900;
  font-size: 12px;
}

.rustplus-map-live-hud {
  position: absolute;
  left: 12px;
  top: 58px;
  z-index: 12;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  max-width: min(420px, calc(100% - 24px));
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(18, 22, 29, 0.88);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
}

.rustplus-map-live-hud .mode {
  color: #b9d8ff;
}

.rustplus-map-live-hud .age {
  color: var(--muted);
  font-weight: 700;
}

.rustplus-map-live-hud .moving {
  color: #9ff889;
}

.rustplus-map-live-hud .tracked {
  max-width: 100%;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(157, 215, 255, 0.12);
  color: #d7ebff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rustplus-map-controls button:hover {
  border-color: rgba(79, 195, 247, 0.56);
  color: #fff;
}

.rustplus-map-controls span {
  min-width: 42px;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.rustplus-map-layers {
  position: absolute;
  left: 12px;
  top: 96px;
  z-index: 12;
  display: grid;
  gap: 5px;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(18, 22, 29, 0.84);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.rustplus-map-layers label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.rustplus-map-layers input[type="checkbox"] {
  margin: 0;
}

.rustplus-tools-panel {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 12;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  width: min(520px, calc(100% - 24px));
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(18, 22, 29, 0.88);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.rustplus-tools-panel .rustplus-refresh.slim {
  min-height: 24px;
  padding: 4px 7px;
  border-radius: 6px;
}

.rustplus-tools-panel .rustplus-refresh.slim.active {
  border-color: rgba(79, 195, 247, 0.58);
  background: rgba(79, 195, 247, 0.26);
  color: #fff;
}

.rustplus-tools-panel input[type="color"] {
  width: 28px;
  height: 24px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: #1f2a34;
}

.rustplus-tools-panel input[type="number"] {
  width: 52px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: #202936;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.rustplus-overlay-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.55));
}

.rustplus-overlay-pin {
  vector-effect: non-scaling-stroke;
  stroke: rgba(8, 16, 24, 0.72);
  stroke-width: 1;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55));
}

.rustplus-overlay-text-bg {
  fill: rgba(10, 16, 22, 0.78);
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1;
}

.rustplus-overlay-text {
  font-size: 11px;
  font-weight: 800;
  dominant-baseline: middle;
  text-anchor: start;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.75);
  stroke-width: 0.9px;
  vector-effect: non-scaling-stroke;
}

.rustplus-map-detail {
  position: absolute;
  z-index: 14;
  width: min(340px, calc(100% - 20px));
  max-height: min(460px, calc(100% - 20px));
  overflow: auto;
  border: 1px solid rgba(79, 195, 247, 0.24);
  border-radius: 8px;
  background: rgba(21, 25, 32, 0.96);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.46);
  color: var(--text);
}

.rustplus-map-detail-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #20242b;
}

.rustplus-map-detail-head strong {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rustplus-map-detail-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.rustplus-map-detail-close {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: #2a3038;
  color: var(--text-soft);
  font-weight: 900;
}

.rustplus-map-detail-body {
  padding: 10px;
}

.rustplus-map-detail-subtitle {
  margin: 10px 0 6px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.rustplus-map-detail-order,
.rustplus-map-detail-shop {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: #242932;
  color: var(--text);
  padding: 7px 8px;
}

.rustplus-map-detail-order {
  display: grid;
  gap: 6px;
  margin-top: 5px;
  font-size: 12px;
}

.rustplus-map-detail-offer-main {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.rustplus-map-detail-offer-meta {
  color: var(--text-muted);
  font-size: 11px;
}

.rustplus-map-detail-shop {
  display: block;
  margin-top: 5px;
  text-align: left;
}

.rustplus-map-detail-shop span,
.rustplus-map-detail-shop small {
  display: block;
}

.rustplus-map-detail-shop small {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 11px;
}

.rustplus-map-detail-shop-card {
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.rustplus-map-detail-shop-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.rustplus-map-detail-shop-card-head strong {
  color: #fff;
  font-size: 13px;
}

.rustplus-map-detail-shop-card-head span {
  color: #8cba30;
  font-size: 11px;
  font-weight: 800;
}

.rustplus-map-detail-shop-card-body {
  padding: 6px 8px 8px;
}

.rustplus-map-detail-note {
  display: grid;
  gap: 4px;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.rustplus-map-detail-note strong {
  color: #fff;
  font-size: 12px;
}

.rustplus-map-detail-note small {
  color: var(--text-muted);
  font-size: 11px;
}

.rustplus-event-progress {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.rustplus-event-progress.compact {
  margin-top: 6px;
}

.rustplus-event-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.rustplus-event-progress-head strong {
  color: var(--text);
  font-size: 11px;
}

.rustplus-event-progress-head small {
  margin-top: 0;
  color: var(--text-muted);
  font-size: 10px;
  text-align: right;
}

.rustplus-event-progress-bar {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.rustplus-event-progress-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #8cba30, #c7ff75);
}

.rustplus-event-progress.tone-cargo .rustplus-event-progress-bar span {
  background: linear-gradient(90deg, #ffb454, #ffe083);
}

.rustplus-event-progress.tone-oil .rustplus-event-progress-bar span {
  background: linear-gradient(90deg, #5fc8ff, #9ee4ff);
}

.rustplus-map-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  text-align: center;
  color: var(--text-soft);
  font-size: 13px;
}

.rustplus-event-dock {
  min-height: 460px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: rgba(12, 18, 30, 0.72);
  padding: 10px;
}

.rustplus-dock-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.rustplus-dock-list {
  display: grid;
  gap: 8px;
}

.rustplus-dock-item {
  width: 100%;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: linear-gradient(180deg, #17243a, #101a2b);
  color: var(--text);
  padding: 9px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
  text-align: left;
}

.rustplus-dock-kind {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #9dd7ff;
  color: #09111c;
  font-weight: 900;
  font-size: 10px;
}

.rustplus-dock-item small,
.rustplus-device-row small,
.rustplus-shop-row small {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 11px;
}

.rustplus-item-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.rustplus-item-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  flex: 0 0 auto;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
}

.rustplus-item-icon.fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 900;
}

.rustplus-tabs {
  margin-top: 12px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.rustplus-tab {
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(16, 25, 40, 0.9);
  color: var(--text-soft);
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
}

.rustplus-tab.active {
  color: var(--text);
  background: linear-gradient(180deg, #25405e, #172940);
  border-color: rgba(157, 215, 255, 0.42);
}

.rustplus-module-content {
  margin-top: 12px;
}

.rustplus-module-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rustplus-device-list {
  display: grid;
  gap: 8px;
}

.rustplus-device-row,
.rustplus-shop-row,
.rustplus-command-row {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: linear-gradient(180deg, #152238, #101a2b);
  padding: 10px 12px;
}

.rustplus-shop-row-button {
  display: block;
  width: 100%;
  color: var(--text);
  text-align: left;
}

.rustplus-shop-row-button:hover {
  border-color: rgba(79, 195, 247, 0.42);
  background: linear-gradient(180deg, #1b2b43, #121f32);
}

.rustplus-shop-preview {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.35;
}

.rustplus-shop-search-shell {
  margin-bottom: 12px;
}

.rustplus-shop-search-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto auto;
  gap: 10px;
  margin-bottom: 12px;
}

.rustplus-shop-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: end;
  align-items: end;
}

.rustplus-shop-search-field {
  display: grid;
  gap: 5px;
}

.rustplus-shop-search-field span {
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.rustplus-shop-search-field input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: rgba(16, 25, 40, 0.92);
  color: var(--text);
  padding: 10px 12px;
  font-size: 13px;
}

.rustplus-shop-search-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.rustplus-pathfinder-preview-grid {
  align-items: start;
}

.rustplus-shop-search-summary {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  margin-bottom: 12px;
}

.rustplus-shop-search-summary span,
.rustplus-refresh.active {
  border: 1px solid rgba(157, 215, 255, 0.24);
  border-radius: 999px;
  background: rgba(157, 215, 255, 0.08);
  color: var(--accent);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
}

.rustplus-shop-search-results {
  display: grid;
  gap: 8px;
}

.rustplus-shop-mode-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.rustplus-shop-mode-tab {
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(16, 25, 40, 0.92);
  color: var(--text-soft);
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
}

.rustplus-shop-mode-tab.active {
  color: var(--text);
  border-color: rgba(157, 215, 255, 0.42);
  background: linear-gradient(180deg, #25405e, #172940);
}

.rustplus-shop-search-card,
.rustplus-flip-card {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: linear-gradient(180deg, #18263b, #101a2b);
  color: var(--text);
  padding: 10px;
  text-align: left;
}

.rustplus-shop-card-actions {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.rustplus-shop-search-card + .rustplus-shop-search-card,
.rustplus-flip-card + .rustplus-flip-card {
  margin-top: 8px;
}

.rustplus-shop-search-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 8px;
}

.rustplus-shop-search-head strong {
  color: var(--accent);
  font-size: 13px;
}

.rustplus-shop-search-head small {
  color: var(--text-muted);
  font-size: 11px;
}

.rustplus-shop-search-offers {
  display: grid;
  gap: 6px;
}

.rustplus-shop-offer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 7px 8px;
  font-size: 12px;
}

.rustplus-shop-offer-row .rustplus-item-line,
.rustplus-shop-offer-row strong {
  min-width: 0;
}

.rustplus-shop-offer-row .rustplus-item-line span,
.rustplus-shop-offer-row strong span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rustplus-shop-offer-arrow {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.rustplus-shop-offer-actions {
  display: inline-flex;
  gap: 6px;
  justify-content: flex-end;
}

.rustplus-refresh.slim {
  min-height: 24px;
  padding: 4px 8px;
  font-size: 10px;
}

.rustplus-map-detail-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.rustplus-inline-note {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(157, 215, 255, 0.18);
  border-radius: 8px;
  background: rgba(157, 215, 255, 0.05);
}

.rustplus-inline-note.is-warning {
  border-color: rgba(255, 190, 92, 0.28);
  background: rgba(255, 190, 92, 0.08);
}

.rustplus-inline-note strong {
  color: var(--text);
  font-size: 12px;
}

.rustplus-inline-note small {
  color: var(--text-muted);
  font-size: 11px;
}

.rustplus-discovery-row {
  display: grid;
  gap: 3px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rustplus-discovery-row:last-child {
  border-bottom: 0;
}

.rustplus-discovery-row strong {
  color: var(--text);
  font-size: 12px;
}

.rustplus-discovery-row small {
  color: var(--text-muted);
  font-size: 11px;
}

.rustplus-flip-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.rustplus-flip-header {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 8px;
  margin-bottom: 8px;
}

.rustplus-flip-header-main {
  display: flex;
  gap: 10px;
  align-items: center;
}

.rustplus-flip-header-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.rustplus-flip-header-icon .rustplus-item-icon {
  width: 32px;
  height: 32px;
}

.rustplus-flip-header-text {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.rustplus-flip-header-text strong {
  color: #ffd566;
  font-size: 14px;
}

.rustplus-flip-header-text small,
.rustplus-flip-midline {
  color: var(--text-soft);
  font-size: 12px;
}

.rustplus-flip-midline {
  margin-bottom: 10px;
}

.rustplus-flip-profit {
  color: #ffd566;
  font-size: 13px;
  font-weight: 900;
}

.rustplus-flip-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rustplus-flip-step-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 9px;
  display: grid;
  gap: 8px;
}

.rustplus-flip-step-label {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.rustplus-flip-step-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.rustplus-flip-step-head small {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 2px;
}

.rustplus-flip-step {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
}

.rustplus-flip-step + .rustplus-flip-step {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rustplus-flip-step small {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
}

.rustplus-shop-analysis-list,
.rustplus-path-list {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.rustplus-path-depth-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 2px;
  margin-bottom: 10px;
}

.rustplus-path-depth-row .rustplus-live-muted {
  margin-right: 4px;
}

.rustplus-path-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: linear-gradient(180deg, #18263b, #101a2b);
  padding: 10px;
}

.rustplus-path-card-left {
  min-width: 0;
}

.rustplus-path-step {
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 9px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.rustplus-path-step-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.rustplus-path-step small {
  color: var(--text-muted);
  font-size: 11px;
}

.rustplus-path-summary {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px;
  display: grid;
  gap: 6px;
  align-content: start;
}

.rustplus-path-summary-line {
  color: var(--text-soft);
  font-size: 12px;
}

.rustplus-path-summary-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 2px 0;
}

.rustplus-team-list {
  display: grid;
  gap: 8px;
}

.rustplus-team-card,
.rustplus-alert-rule,
.rustplus-camera-card {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: linear-gradient(180deg, #152238, #101a2b);
  padding: 10px 12px;
}

.rustplus-team-card,
.rustplus-alert-rule {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.rustplus-team-card.selected {
  border-color: rgba(79, 195, 247, 0.56);
  box-shadow: 0 0 0 1px rgba(79, 195, 247, 0.18) inset;
}

.rustplus-team-card.following {
  border-color: rgba(157, 255, 87, 0.48);
}

.rustplus-team-card-main,
.rustplus-camera-head {
  min-width: 0;
}

.rustplus-team-card small,
.rustplus-alert-rule small,
.rustplus-camera-head small {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 2px;
}

.rustplus-device-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rustplus-device-row.is-missing {
  opacity: 0.92;
}

.rustplus-device-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.rustplus-device-main > div {
  min-width: 0;
}

.rustplus-device-group-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.rustplus-device-group-head small {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 2px;
}

.rustplus-device-group-order {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.rustplus-device-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 7px;
}

.rustplus-device-badge,
.rustplus-alert-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  padding: 3px 8px;
  font-size: 10px;
  line-height: 1;
}

.rustplus-device-badge.is-on {
  border-color: rgba(103, 235, 162, 0.32);
  color: #9ff3c5;
}

.rustplus-device-badge.is-off,
.rustplus-device-badge.is-muted {
  color: var(--text-muted);
}

.rustplus-device-badge.is-warning {
  border-color: rgba(255, 177, 103, 0.3);
  color: #ffc982;
}

.rustplus-device-edit-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(100px, 140px) auto;
  gap: 6px;
  margin-top: 8px;
}

.rustplus-device-edit-row input {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(10, 16, 28, 0.8);
  color: var(--text);
  padding: 6px 8px;
  font-size: 12px;
}

.rustplus-device-group-actions,
.rustplus-camera-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.rustplus-device-missing-list {
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 10px;
  display: grid;
  gap: 10px;
}

.rustplus-device-main .rustplus-device-icon,
.rustplus-storage-summary-title .rustplus-device-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.rustplus-storage-summary-title {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rustplus-storage-card {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: linear-gradient(180deg, #152238, #101a2b);
  padding: 10px 12px;
  margin-bottom: 10px;
}

.rustplus-storage-card.is-low {
  border-color: rgba(255, 186, 104, 0.52);
  box-shadow: inset 0 0 0 1px rgba(255, 186, 104, 0.12);
}

.rustplus-storage-summary {
  margin-bottom: 12px;
}

.rustplus-storage-card summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.rustplus-storage-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px;
}

.rustplus-storage-item {
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 7px 8px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--text-soft);
  background: rgba(8, 13, 22, 0.42);
}

.rustplus-command-box {
  display: grid;
  gap: 8px;
}

.rustplus-alert-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin-bottom: 14px;
  color: var(--text);
  font-size: 12px;
}

.rustplus-alert-settings label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rustplus-alert-hours input {
  width: 76px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: rgba(10, 16, 28, 0.8);
  color: var(--text);
  padding: 6px 8px;
}

.rustplus-alert-rule-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--text-soft);
  font-size: 11px;
}

.rustplus-alert-rule-actions label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.rustplus-alert-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.rustplus-alert-activity {
  border-left: 3px solid rgba(255, 255, 255, 0.08);
}

.rustplus-alert-activity.is-shop {
  border-left-color: rgba(103, 235, 162, 0.52);
}

.rustplus-alert-activity.is-device {
  border-left-color: rgba(255, 177, 103, 0.52);
}

.rustplus-alert-activity.is-event {
  border-left-color: rgba(79, 195, 247, 0.56);
}

.rustplus-alert-activity.is-storage {
  border-left-color: rgba(255, 120, 120, 0.52);
}

.rustplus-camera-config {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.rustplus-camera-config textarea {
  min-height: 84px;
  resize: vertical;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: rgba(10, 16, 28, 0.84);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}

.rustplus-camera-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rustplus-camera-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.rustplus-camera-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 10px;
  margin-bottom: 8px;
  background: rgba(5, 8, 13, 0.7);
}

.rustplus-marker-label {
  position: absolute;
  left: 50%;
  top: calc(100% + 3px);
  transform: translateX(-50%);
  padding: 2px 5px;
  border-radius: 6px;
  background: rgba(8, 14, 22, 0.88);
  border: 1px solid rgba(157, 215, 255, 0.28);
  color: #d8efff;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms ease;
}

.rustplus-map-marker.show-label .rustplus-marker-label {
  opacity: 1;
}

.rustplus-dock-timer {
  color: #dbe7f3;
  font-weight: 800;
}

.rustplus-dock-move {
  color: #a7f59f;
  font-weight: 700;
}

.rustplus-command-master {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.rustplus-command-row {
  display: grid;
  grid-template-columns: 18px 150px minmax(140px, 1fr) minmax(140px, 220px);
  gap: 10px;
  align-items: center;
  color: var(--text);
  font-size: 12px;
}

.rustplus-command-row input[type="text"],
.rustplus-command-row select {
  min-width: 0;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: rgba(10, 16, 28, 0.8);
  color: var(--text);
  padding: 7px 8px;
}

@media (max-width: 1100px) {
  .rustplus-module-split,
  .rustplus-shop-search-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rustplus-path-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .rustplus-flip-steps-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rustplus-shop-search-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .rustplus-alert-settings {
    grid-template-columns: minmax(0, 1fr);
  }

  .rustplus-team-card,
  .rustplus-alert-rule {
    flex-direction: column;
    align-items: stretch;
  }
}

.rustplus-empty.compact {
  padding: 10px;
  font-size: 11px;
}

@keyframes markerPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.35); }
}

@media (max-width: 980px) {
  .rustplus-module-grid,
  .rustplus-module-split {
    grid-template-columns: 1fr;
  }

  .rustplus-event-dock {
    min-height: 0;
  }

  .rustplus-command-row {
    grid-template-columns: 18px 1fr;
  }

  .rustplus-command-row input[type="text"],
  .rustplus-command-row select {
    grid-column: 2;
  }
}

.steam-picker-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.steam-picker-refresh {
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 8px 12px;
  background: linear-gradient(180deg, #1a2740, #141f33);
  color: var(--text);
  font-weight: 700;
  font-size: 12px;
}

.steam-picker-refresh:hover {
  filter: brightness(1.08);
}

.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(157, 215, 255, 0.25);
  border-top-color: #9dd7ff;
  animation: spin 0.8s linear infinite;
}

.hidden {
  display: none !important;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Rust+ Desktop parity skin */
body.rustplus-desktop-page {
  --desk-bg: #121417;
  --desk-surface: #1c1f24;
  --desk-surface-alt: #23272e;
  --desk-card: #171a21;
  --desk-panel: rgba(18, 22, 29, 0.92);
  --desk-border: #33414850;
  --desk-border-strong: #3c4654;
  --desk-accent: #4fc3f7;
  --desk-accent-strong: #4c8bf5;
  --desk-text: #eceff1;
  --desk-muted: #b0bec5;
  --desk-dim: #778391;
  --desk-danger: #e45b64;
  --desk-ok: #63c985;
  min-height: 100vh;
  overflow: hidden;
  color: var(--desk-text);
  background: var(--desk-bg);
  font-family: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
}

body.rustplus-desktop-page .screen {
  width: 100%;
  max-width: none;
  height: 100vh;
  margin: 0;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.rustplus-desktop-page .top {
  flex: 0 0 46px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 9px;
  border-color: var(--desk-border);
  background: linear-gradient(180deg, #1d222b, #151920);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

body.rustplus-desktop-page h1 {
  font-size: 18px;
  font-weight: 700;
}

body.rustplus-desktop-page .title-ghost {
  color: var(--desk-muted);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

body.rustplus-desktop-page .app-tabs {
  border-color: var(--desk-border);
  border-radius: 10px;
  background: rgba(9, 12, 17, 0.42);
}

body.rustplus-desktop-page .app-tab {
  min-height: 30px;
  border-radius: 8px;
  color: var(--desk-muted);
  font-size: 13px;
}

body.rustplus-desktop-page .app-tab.active {
  color: var(--desk-text);
  border-color: rgba(79, 195, 247, 0.44);
  background: rgba(79, 195, 247, 0.16);
}

body.rustplus-desktop-page .top-actions {
  top: 6px;
}

body.rustplus-desktop-page .settings-toggle-btn,
body.rustplus-desktop-page .push-toggle-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border-color: var(--desk-border);
  background: #20252d;
}

body.rustplus-desktop-page .home-star {
  display: none;
}

body.rust-desktop-stream-page .rust-desktop-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--desk-border);
  border-radius: 8px;
  background: #20252d;
  color: var(--desk-text);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

body.rust-desktop-stream-page .rust-desktop-stage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--desk-border);
  border-radius: 10px;
  background: linear-gradient(180deg, #1a1f27, #12161d);
  overflow: hidden;
}

body.rust-desktop-stream-page .rust-desktop-toolbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 10px;
  border: 1px solid var(--desk-border);
  border-radius: 8px;
  background: rgba(9, 12, 17, 0.46);
}

body.rust-desktop-stream-page .rust-desktop-toolbar div {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

body.rust-desktop-stream-page .rust-desktop-toolbar span {
  color: var(--desk-muted);
  font-size: 12px;
}

body.rust-desktop-stream-page .rust-desktop-frame-shell {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--desk-border);
  border-radius: 8px;
  background: #080b0f;
  overflow: hidden;
  position: relative;
  touch-action: none;
  user-select: none;
}

body.rust-desktop-stream-page .rust-desktop-frame-shell.control-active {
  border-color: #39b9ff;
  box-shadow: 0 0 0 1px rgba(57, 185, 255, 0.35), 0 0 20px rgba(57, 185, 255, 0.12);
}

body.rust-desktop-stream-page .rust-desktop-frame {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

body.rust-desktop-stream-page .rust-desktop-keyboard-capture {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  resize: none;
  pointer-events: none;
}

body.rust-desktop-stream-page #rustDesktopControlStatus {
  display: inline-flex;
  color: var(--desk-muted);
}

body.rust-desktop-stream-page .rust-desktop-auth-input {
  width: min(260px, 100%);
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 8px;
  background: rgba(8, 11, 16, 0.72);
  color: var(--desk-text);
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  outline: none;
}

body.rust-desktop-stream-page .rust-desktop-auth-input:focus {
  border-color: #39b9ff;
  box-shadow: 0 0 0 1px rgba(57, 185, 255, 0.3);
}

body.rust-desktop-vnc-page .screen {
  max-width: none;
  width: 100%;
  height: 100dvh;
  padding: 6px;
  gap: 6px;
  overflow: hidden;
}

body.rust-desktop-vnc-page .top {
  flex: 0 0 34px;
  min-height: 34px;
  padding: 4px 8px;
  border-radius: 7px;
}

body.rust-desktop-vnc-page .top-connections,
body.rust-desktop-vnc-page .title-ghost {
  display: none;
}

body.rust-desktop-vnc-page .app-tabs {
  gap: 4px;
  padding: 2px;
  border-radius: 7px;
}

body.rust-desktop-vnc-page .app-tab {
  min-height: 24px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12px;
}

body.rust-desktop-vnc-page .top-actions {
  top: 4px;
  right: 8px;
}

body.rust-desktop-vnc-page .rust-desktop-open {
  min-height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 11px;
}

body.rust-desktop-vnc-page .rust-desktop-stage {
  flex: 1 1 auto;
  min-height: 0;
  gap: 0;
  padding: 4px;
  border-radius: 8px;
  overflow: hidden;
}

body.rust-desktop-vnc-page .rust-desktop-vnc-shell {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--desk-border);
  border-radius: 6px;
  background: #05070a;
  overflow: hidden;
  outline: none;
  touch-action: none;
}

body.rust-desktop-vnc-page .rust-desktop-vnc-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #05070a;
}

body.rust-desktop-vnc-page .rust-desktop-live-frame {
  display: block;
  flex: 0 1 auto;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  border: 0;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
}

body.rust-desktop-vnc-page .rust-desktop-live-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  color: #cbd5e1;
  background: #05070a;
  font-size: 13px;
  text-align: center;
  pointer-events: none;
}

body.rust-desktop-vnc-page .rust-desktop-live-status[hidden] {
  display: none;
}

body.rustplus-desktop-page .rustplus-desk-app {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 368px minmax(0, 1fr);
  gap: 10px;
}

body.rustplus-desktop-page .rustplus-desk-sidebar {
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--desk-border);
  border-radius: 10px;
  background: linear-gradient(180deg, #1c2027, #141820);
}

body.rustplus-desktop-page .rustplus-desk-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 2px 4px 8px;
  color: var(--desk-text);
}

body.rustplus-desktop-page .rustplus-desk-brand img {
  width: 30px;
  height: 30px;
}

body.rustplus-desktop-page .rustplus-desk-brand strong,
body.rustplus-desktop-page .rustplus-desk-brand span {
  display: block;
}

body.rustplus-desktop-page .rustplus-desk-brand strong {
  font-size: 15px;
  line-height: 1.1;
}

body.rustplus-desktop-page .rustplus-desk-brand span {
  margin-top: 2px;
  color: var(--desk-muted);
  font-size: 11px;
}

body.rustplus-desktop-page .rustplus-panel,
body.rustplus-desktop-page .rustplus-server {
  border-radius: 8px;
  border: 1px solid var(--desk-border);
  background: var(--desk-card);
  box-shadow: none;
}

body.rustplus-desktop-page .rustplus-server {
  min-height: 70px;
  margin: 0;
  padding: 10px;
}

body.rustplus-desktop-page .rustplus-server-title {
  color: var(--desk-accent);
  font-size: 13px;
  font-weight: 700;
}

body.rustplus-desktop-page .rustplus-server-meta {
  color: var(--desk-muted);
  font-size: 11px;
  line-height: 1.35;
}

body.rustplus-desktop-page .rustplus-panel {
  padding: 10px;
}

body.rustplus-desktop-page .rustplus-history-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body.rustplus-desktop-page .rustplus-header h2 {
  color: var(--desk-text);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

body.rustplus-desktop-page .rustplus-actions {
  gap: 6px;
}

body.rustplus-desktop-page .rustplus-refresh,
body.rustplus-desktop-page .rustplus-server-link {
  min-height: 28px;
  border-radius: 8px;
  border-color: #2f3946;
  padding: 6px 10px;
  background: linear-gradient(180deg, #252b35, #1d222a);
  color: var(--desk-text);
  font-size: 11px;
  font-weight: 700;
}

body.rustplus-desktop-page .rustplus-refresh.primary {
  border-color: #3566b5;
  background: linear-gradient(180deg, #4c8bf5, #375fa8);
}

body.rustplus-desktop-page .rustplus-refresh.danger {
  border-color: rgba(228, 91, 100, 0.72);
  background: linear-gradient(180deg, #763d43, #4c272d);
}

body.rustplus-desktop-page .rustplus-status {
  min-height: 16px;
  margin-top: 6px;
  color: var(--desk-muted);
  font-size: 11px;
}

body.rustplus-desktop-page .rustplus-guide-list {
  margin: 8px 0 0 18px;
  color: var(--desk-muted);
  font-size: 11px;
  line-height: 1.35;
}

body.rustplus-desktop-page .rustplus-guide-list code {
  display: inline-block;
  max-width: 100%;
  overflow-x: auto;
  vertical-align: top;
  color: var(--desk-accent);
  background: #23272e;
}

body.rustplus-desktop-page .rustplus-log {
  min-height: 0;
  overflow: auto;
  gap: 6px;
  padding-right: 2px;
}

body.rustplus-desktop-page .rustplus-entry {
  border-radius: 6px;
  border-color: transparent;
  background: #23272e;
  padding: 8px;
}

body.rustplus-desktop-page .rustplus-entry-title {
  color: var(--desk-accent);
  font-size: 12px;
}

body.rustplus-desktop-page .rustplus-entry-meta {
  color: var(--desk-muted);
}

body.rustplus-desktop-page .rustplus-desk-mapstage {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #0d3039;
  border-radius: 10px;
  background: #0b3a4a;
}

body.rustplus-desktop-page .rustplus-module-grid {
  height: 100%;
  min-height: 0;
  margin: 0;
  display: block;
}

body.rustplus-desktop-page .rustplus-map-shell,
body.rustplus-desktop-page .rustplus-map-canvas {
  width: 100%;
  height: 100%;
  min-height: 0;
}

body.rustplus-desktop-page .rustplus-map-canvas {
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background: #0b3a4a;
}

body.rustplus-desktop-page .rustplus-map-image {
  object-fit: contain;
}

body.rustplus-desktop-page .rustplus-map-empty {
  width: min(520px, 70%);
  height: auto;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(79, 195, 247, 0.22);
  border-radius: 8px;
  background: rgba(18, 22, 29, 0.86);
  color: var(--desk-muted);
  padding: 16px 18px;
}

body.rustplus-desktop-page .rustplus-map-layers {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(18, 22, 29, 0.78);
  backdrop-filter: blur(4px);
}

body.rustplus-desktop-page .rustplus-map-live-hud {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(18, 22, 29, 0.78);
  backdrop-filter: blur(4px);
}

body.rustplus-desktop-page .rustplus-tools-panel {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(18, 22, 29, 0.78);
  backdrop-filter: blur(5px);
}

body.rustplus-desktop-page .rustplus-tools-panel .rustplus-refresh.slim {
  min-height: 23px;
  padding: 3px 7px;
  font-size: 10px;
}

body.rustplus-desktop-page .rustplus-tools-panel input[type="number"] {
  background: #23272e;
}

@media (min-width: 1101px) {
  body.rustplus-desktop-page .rustplus-map-empty {
    left: calc(50% - 160px);
    width: min(430px, calc(100% - 560px));
  }
}

body.rustplus-desktop-page .rustplus-map-marker {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  background: #d53d2f;
  --rustplus-marker-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
  box-shadow: var(--rustplus-marker-shadow);
  font-size: 11px;
}

body.rustplus-desktop-page .rustplus-marker-icon {
  width: 28px;
  height: 28px;
  margin: auto;
}

body.rustplus-desktop-page .rustplus-map-marker.kind-vending,
body.rustplus-desktop-page .rustplus-map-marker.kind-vending_cluster {
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  --rustplus-marker-shadow: none;
  box-shadow: var(--rustplus-marker-shadow);
  color: #0b210a;
}

body.rustplus-desktop-page .rustplus-map-marker.kind-vending .rustplus-marker-icon,
body.rustplus-desktop-page .rustplus-map-marker.kind-vending_cluster .rustplus-marker-icon {
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.55));
}

body.rustplus-desktop-page .rustplus-map-marker.kind-vending_cluster .rustplus-marker-count {
  inset: 0;
  min-width: 0;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 24px;
  text-shadow: 0 1px 1px #000, 1px 0 1px #000;
}

body.rustplus-desktop-page .rustplus-map-marker.kind-travelling_vendor {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.rustplus-desktop-page .rustplus-map-marker.kind-travelling_vendor .rustplus-marker-icon {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.55));
}

body.rustplus-desktop-page .rustplus-marker-count {
  position: absolute;
  right: -5px;
  top: -5px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border: 1px solid rgba(10, 20, 8, 0.55);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #8eff1e;
  color: #0b210a;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.42);
}

body.rustplus-desktop-page .rustplus-map-marker.kind-cargo {
  background: #dd4a39;
}

body.rustplus-desktop-page .rustplus-map-marker.kind-deep_sea {
  background: #2f7ddb;
}

body.rustplus-desktop-page .rustplus-map-marker.session-marker {
  box-shadow: 0 0 0 1px rgba(174, 213, 255, 0.3), 0 0 0 4px rgba(174, 213, 255, 0.08);
}

body.rustplus-desktop-page .rustplus-map-marker.kind-patrol_helicopter {
  background: #8f949a;
}

body.rustplus-desktop-page .rustplus-map-marker.kind-chinook {
  background: #222c36;
  color: var(--desk-accent);
}

body.rustplus-desktop-page .rustplus-map-marker.kind-player {
  width: auto;
  min-width: 0;
  height: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  --rustplus-marker-shadow: none;
  box-shadow: var(--rustplus-marker-shadow);
  color: #8af67b;
}

body.rustplus-desktop-page .rustplus-map-marker.kind-player .rustplus-player-name {
  display: block;
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.9);
}

body.rustplus-desktop-page .rustplus-map-marker.kind-player .rustplus-marker-label {
  display: none;
}

body.rustplus-desktop-page .rustplus-map-marker.kind-player.following,
body.rustplus-desktop-page .rustplus-map-marker.kind-player.selected {
  color: #c9ff9f;
}

body.rustplus-desktop-page .rustplus-map-marker.kind-player .rustplus-player-dot {
  background: #79e06e;
}

body.rustplus-desktop-page .rustplus-map-marker.kind-player .rustplus-marker-label,
body.rustplus-desktop-page .rustplus-map-marker.show-label .rustplus-marker-label {
  opacity: 1;
}

body.rustplus-desktop-page .rustplus-map-marker.kind-map_note,
body.rustplus-desktop-page .rustplus-map-marker.kind-death {
  width: 26px;
  height: 26px;
}

body.rustplus-desktop-page .rustplus-map-marker.kind-map_note .rustplus-marker-icon {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.52));
}

body.rustplus-desktop-page .rustplus-map-marker.kind-death .rustplus-marker-icon {
  filter: drop-shadow(0 2px 5px rgba(127, 19, 19, 0.62));
}

body.rustplus-desktop-page .rustplus-map-marker.empty-shop .rustplus-marker-icon {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.55));
}

body.rustplus-desktop-page .rustplus-dock-item.active {
  border-color: rgba(79, 195, 247, 0.48);
  background: rgba(79, 195, 247, 0.12);
}

body.rustplus-desktop-page .rustplus-event-dock {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 178px;
  min-height: 0;
  max-height: 220px;
  overflow: auto;
  border-radius: 9px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(18, 22, 29, 0.78);
  backdrop-filter: blur(5px);
  padding: 8px;
}

body.rustplus-desktop-page .rustplus-dock-title {
  margin-bottom: 6px;
  color: var(--desk-accent);
  font-size: 11px;
  text-transform: uppercase;
}

body.rustplus-desktop-page .rustplus-dock-list {
  gap: 4px;
}

body.rustplus-desktop-page .rustplus-dock-item {
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 6px;
}

body.rustplus-desktop-page .rustplus-dock-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

body.rustplus-desktop-page .rustplus-dock-item.moving {
  background: rgba(122, 224, 110, 0.08);
}

body.rustplus-desktop-page .rustplus-dock-item.session-state {
  background: rgba(255, 255, 255, 0.035);
}

body.rustplus-desktop-page .rustplus-dock-item.phase-crate,
body.rustplus-desktop-page .rustplus-dock-item.phase-route,
body.rustplus-desktop-page .rustplus-dock-item.phase-docked {
  box-shadow: inset 2px 0 0 rgba(255, 208, 112, 0.82);
}

body.rustplus-desktop-page .rustplus-dock-item.phase-mid {
  box-shadow: inset 2px 0 0 rgba(111, 194, 255, 0.82);
}

body.rustplus-desktop-page .rustplus-dock-item.phase-ended,
body.rustplus-desktop-page .rustplus-dock-item.phase-called {
  box-shadow: inset 2px 0 0 rgba(188, 198, 209, 0.55);
}

body.rustplus-desktop-page .rustplus-dock-item.phase-changed {
  background: rgba(255, 255, 255, 0.08);
}

body.rustplus-desktop-page .rustplus-dock-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

body.rustplus-desktop-page .rustplus-dock-main .rustplus-event-progress {
  margin-top: 4px;
  gap: 3px;
}

body.rustplus-desktop-page .rustplus-dock-main .rustplus-event-progress-head strong {
  font-size: 10px;
}

body.rustplus-desktop-page .rustplus-dock-main .rustplus-event-progress-head small {
  font-size: 9px;
}

body.rustplus-desktop-page .rustplus-dock-main .rustplus-event-progress-bar {
  height: 4px;
}

body.rustplus-desktop-page .rustplus-dock-actions {
  display: grid;
  justify-items: end;
  gap: 4px;
  align-content: start;
}

body.rustplus-desktop-page .rustplus-dock-state {
  padding: 1px 5px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

body.rustplus-desktop-page .rustplus-dock-state.live {
  background: rgba(140, 186, 48, 0.22);
  color: #baf06e;
}

body.rustplus-desktop-page .rustplus-dock-state.stale {
  background: rgba(255, 184, 77, 0.18);
  color: #ffca75;
}

body.rustplus-desktop-page .rustplus-dock-state.inactive {
  background: rgba(133, 145, 160, 0.18);
  color: #c0cad6;
}

body.rustplus-desktop-page .rustplus-dock-track {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--desk-text);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
}

body.rustplus-desktop-page .rustplus-dock-track:hover {
  border-color: rgba(79, 195, 247, 0.4);
  color: #fff;
}

body.rustplus-desktop-page .rustplus-dock-kind {
  width: 22px;
  height: 22px;
  font-size: 9px;
  background: var(--desk-accent);
}

body.rustplus-desktop-page .rustplus-dock-icon {
  width: 18px;
  height: 18px;
}

body.rustplus-desktop-page .rustplus-dock-item strong {
  font-size: 11px;
}

body.rustplus-desktop-page .rustplus-dock-item small {
  color: var(--desk-muted);
  font-size: 10px;
}

body.rustplus-desktop-page .rustplus-dock-timer {
  color: #eff5fb;
}

body.rustplus-desktop-page .rustplus-dock-session {
  color: #ffca75;
}

body.rustplus-desktop-page .rustplus-dock-move {
  color: #9ff889;
}

body.rustplus-desktop-page .rustplus-desk-toolbox {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 6;
  width: min(480px, calc(100% - 28px));
  max-height: min(74vh, 650px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--desk-border);
  border-radius: 8px;
  background: rgba(23, 26, 33, 0.95);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
}

body.rustplus-desktop-page .rustplus-tabs {
  flex: 0 0 auto;
  margin: 0;
  padding: 8px;
  gap: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #171a21;
}

body.rustplus-desktop-page .rustplus-tab {
  min-height: 28px;
  border-radius: 6px;
  border-color: #2d3541;
  padding: 5px 8px;
  background: #1e242d;
  color: var(--desk-muted);
  font-size: 11px;
}

body.rustplus-desktop-page .rustplus-tab.active {
  border-color: var(--desk-accent-strong);
  background: linear-gradient(180deg, #253a58, #1d2b3f);
  color: #fff;
}

body.rustplus-desktop-page .rustplus-module-content {
  min-height: 0;
  margin: 0;
  padding: 10px;
  overflow: auto;
}

body.rustplus-desktop-page .rustplus-live-card,
body.rustplus-desktop-page .rustplus-device-row,
body.rustplus-desktop-page .rustplus-shop-row,
body.rustplus-desktop-page .rustplus-command-row,
body.rustplus-desktop-page .rustplus-storage-card,
body.rustplus-desktop-page .rustplus-empty {
  border-radius: 6px;
  border-color: rgba(255, 255, 255, 0.08);
  background: #20242b;
}

body.rustplus-desktop-page .rustplus-module-split {
  grid-template-columns: 1fr;
  gap: 8px;
}

body.rustplus-desktop-page .rustplus-live-title {
  color: #fff;
  font-size: 13px;
}

body.rustplus-desktop-page .rustplus-live-row {
  grid-template-columns: 110px 1fr;
}

body.rustplus-desktop-page .rustplus-live-label,
body.rustplus-desktop-page .rustplus-live-muted,
body.rustplus-desktop-page .rustplus-device-row small,
body.rustplus-desktop-page .rustplus-shop-row small {
  color: var(--desk-muted);
}

body.rustplus-desktop-page .rustplus-device-row {
  padding: 8px 9px;
}

body.rustplus-desktop-page .rustplus-device-row strong,
body.rustplus-desktop-page .rustplus-shop-row strong {
  color: var(--desk-accent);
  font-size: 12px;
}

body.rustplus-desktop-page .rustplus-entity-actions .rustplus-refresh {
  min-width: 58px;
  border-radius: 999px;
}

body.rustplus-desktop-page .rustplus-entity-actions .rustplus-refresh[data-value="0"] {
  border-color: rgba(228, 91, 100, 0.75);
  background: #d85c66;
}

body.rustplus-desktop-page .rustplus-entity-actions .rustplus-refresh[data-value="1"] {
  border-color: rgba(99, 201, 133, 0.75);
  background: #2f7c4d;
}

body.rustplus-desktop-page .rustplus-storage-grid {
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: 4px;
}

body.rustplus-desktop-page .rustplus-storage-item {
  min-height: 58px;
  border-radius: 2px;
  align-items: end;
  background: #2a3038;
}

body.rustplus-desktop-page .rustplus-command-box {
  gap: 7px;
}

body.rustplus-desktop-page .rustplus-command-row {
  grid-template-columns: 18px 116px minmax(110px, 1fr);
  padding: 7px;
}

body.rustplus-desktop-page .rustplus-command-row select {
  grid-column: 3;
}

body.rustplus-desktop-page .rustplus-command-row input[type="text"],
body.rustplus-desktop-page .rustplus-command-row select,
body.rustplus-desktop-page .rustplus-teamchat-input {
  border-radius: 999px;
  border-color: transparent;
  background: #30343b;
  color: #fff;
}

body.rustplus-desktop-page .settings-modal-card {
  border-radius: 8px;
  border-color: var(--desk-border);
  background: var(--desk-card);
}

@media (max-width: 1100px) {
  body.rustplus-desktop-page {
    overflow: auto;
  }

  body.rustplus-desktop-page .screen {
    min-height: 100vh;
    height: auto;
  }

  body.rustplus-desktop-page .rustplus-desk-app {
    grid-template-columns: 1fr;
  }

  body.rustplus-desktop-page .rustplus-desk-sidebar {
    max-height: none;
    grid-template-rows: auto;
  }

  body.rustplus-desktop-page .rustplus-desk-mapstage {
    min-height: 720px;
  }
}

@media (max-width: 680px) {
  body.rustplus-desktop-page {
    overflow-y: auto;
  }

  body.rustplus-desktop-page .screen {
    padding: 6px;
    gap: 6px;
    min-height: 100dvh;
    height: auto;
  }

  body.rustplus-desktop-page .top {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 42px;
    padding: 7px 9px;
    border-radius: 8px;
  }

  body.rustplus-desktop-page .top-title {
    font-size: 16px;
  }

  body.rustplus-desktop-page .top-connections,
  body.rustplus-desktop-page .title-ghost {
    display: none;
  }

  body.rustplus-desktop-page .top-actions {
    gap: 6px;
  }

  body.rustplus-desktop-page .app-tabs {
    width: 100%;
    gap: 4px;
  }

  body.rustplus-desktop-page .app-tab {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 6px;
    font-size: 11px;
  }

  body.rust-desktop-stream-page .top-actions {
    display: none;
  }

  body.rust-desktop-stream-page .rust-desktop-stage {
    flex: 0 0 auto;
    min-height: 0;
    padding: 6px;
    overflow: visible;
  }

  body.rust-desktop-stream-page .rust-desktop-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  body.rust-desktop-stream-page .rust-desktop-toolbar div {
    flex-direction: column;
    gap: 3px;
  }

  body.rust-desktop-stream-page .rust-desktop-frame-shell {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 1750 / 814;
  }

  body.rustplus-desktop-page .settings-toggle-btn,
  body.rustplus-desktop-page .push-toggle-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }

  body.rustplus-desktop-page .rustplus-desk-app {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  body.rust-desktop-vnc-page .screen {
    height: 100dvh;
    padding: 4px;
    gap: 4px;
    overflow: hidden;
  }

  body.rust-desktop-vnc-page .top {
    flex: 0 0 30px;
    min-height: 30px;
    padding: 3px 5px;
    border-radius: 6px;
  }

  body.rust-desktop-vnc-page .app-tabs {
    gap: 2px;
    padding: 2px;
  }

  body.rust-desktop-vnc-page .app-tab {
    min-height: 22px;
    padding: 0 5px;
    font-size: 10px;
  }

  body.rust-desktop-vnc-page .rust-desktop-stage {
    flex: 1 1 auto;
    min-height: 0;
    padding: 3px;
    overflow: hidden;
  }

  body.rust-desktop-vnc-page .rust-desktop-vnc-shell {
    flex: 1 1 auto;
    min-height: 0;
  }

  body.rustplus-desktop-page .rustplus-desk-mapstage {
    order: 1;
    min-height: 0;
    height: auto;
    overflow: visible;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
  }

  body.rustplus-desktop-page .rustplus-module-grid {
    height: auto;
    display: flex;
    flex-direction: column;
  }

  body.rustplus-desktop-page .rustplus-map-shell {
    height: 58dvh;
    min-height: 390px;
    max-height: 560px;
  }

  body.rustplus-desktop-page .rustplus-map-canvas {
    height: 100%;
    min-height: 390px;
    border-radius: 8px 8px 0 0;
  }

  body.rustplus-desktop-page .rustplus-map-empty {
    width: calc(100% - 28px);
    padding: 12px;
    font-size: 12px;
  }

  body.rustplus-desktop-page .rustplus-map-controls {
    top: 8px;
    left: 8px;
    gap: 4px;
  }

  body.rustplus-desktop-page .rustplus-map-controls button {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    font-size: 12px;
  }

  body.rustplus-desktop-page .rustplus-map-controls span {
    min-width: 42px;
    height: 30px;
    font-size: 11px;
  }

  body.rustplus-desktop-page .rustplus-map-live-hud {
    top: 46px;
    left: 8px;
    max-width: calc(100% - 16px);
    padding: 5px 7px;
    font-size: 10px;
  }

  body.rustplus-desktop-page .rustplus-map-layers {
    top: 8px;
    right: 8px;
    left: auto;
    max-width: 126px;
    max-height: 126px;
    overflow: auto;
    padding: 6px;
    gap: 4px;
  }

  body.rustplus-desktop-page .rustplus-map-layers label {
    min-height: 20px;
    font-size: 10px;
  }

  body.rustplus-desktop-page .rustplus-tools-panel {
    left: 8px;
    right: 8px;
    bottom: 8px;
    width: auto;
    max-height: 92px;
    overflow: auto;
    padding: 6px;
    gap: 4px;
  }

  body.rustplus-desktop-page .rustplus-tools-panel .rustplus-refresh.slim {
    min-height: 26px;
    padding: 4px 7px;
    font-size: 10px;
  }

  body.rustplus-desktop-page .rustplus-tools-panel input[type="number"],
  body.rustplus-desktop-page .rustplus-tools-panel input[type="color"] {
    height: 26px;
  }

  body.rustplus-desktop-page .rustplus-map-detail {
    left: 8px;
    right: 8px;
    bottom: 8px;
    width: auto;
    max-width: none;
    max-height: min(52dvh, 360px);
    overflow: auto;
  }

  body.rustplus-desktop-page .rustplus-event-dock {
    position: static;
    z-index: auto;
    width: auto;
    max-height: 150px;
    margin: 0;
    border-radius: 0;
    border-width: 1px 0 0;
    background: #171a21;
  }

  body.rustplus-desktop-page .rustplus-desk-toolbox {
    position: static;
    z-index: auto;
    width: 100%;
    max-height: none;
    border-width: 1px 0 0;
    border-radius: 0 0 8px 8px;
    box-shadow: none;
  }

  body.rustplus-desktop-page .rustplus-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 7px;
    scrollbar-width: thin;
  }

  body.rustplus-desktop-page .rustplus-tab {
    flex: 0 0 auto;
    min-height: 30px;
    padding: 5px 9px;
    white-space: nowrap;
  }

  body.rustplus-desktop-page .rustplus-module-content {
    max-height: none;
    padding: 8px;
  }

  body.rustplus-desktop-page .rustplus-module-split,
  body.rustplus-desktop-page .rustplus-storage-layout,
  body.rustplus-desktop-page .rustplus-team-layout {
    grid-template-columns: 1fr;
  }

  body.rustplus-desktop-page .rustplus-live-row {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 7px;
  }

  body.rustplus-desktop-page .rustplus-device-row,
  body.rustplus-desktop-page .rustplus-shop-row,
  body.rustplus-desktop-page .rustplus-command-row,
  body.rustplus-desktop-page .rustplus-storage-card,
  body.rustplus-desktop-page .rustplus-team-card {
    padding: 8px;
  }

  body.rustplus-desktop-page .rustplus-device-row,
  body.rustplus-desktop-page .rustplus-shop-row {
    grid-template-columns: minmax(0, 1fr);
  }

  body.rustplus-desktop-page .rustplus-entity-actions {
    justify-content: flex-start;
  }

  body.rustplus-desktop-page .rustplus-storage-grid {
    grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  }

  body.rustplus-desktop-page .rustplus-desk-sidebar {
    order: 2;
    display: grid;
    grid-template-rows: none;
    gap: 8px;
    max-height: none;
    overflow: visible;
    padding: 8px;
    border-radius: 8px;
  }

  body.rustplus-desktop-page .rustplus-desk-brand,
  body.rustplus-desktop-page .rustplus-guide-list {
    display: none;
  }

  body.rustplus-desktop-page .rustplus-server,
  body.rustplus-desktop-page .rustplus-panel {
    border-radius: 7px;
    padding: 8px;
  }

  body.rustplus-desktop-page .rustplus-header {
    gap: 8px;
    align-items: flex-start;
  }

  body.rustplus-desktop-page .rustplus-header h2 {
    font-size: 12px;
  }

  body.rustplus-desktop-page .rustplus-actions {
    flex-wrap: wrap;
  }

  body.rustplus-desktop-page .rustplus-refresh {
    min-height: 30px;
    padding: 5px 8px;
    font-size: 11px;
  }

  body.rustplus-desktop-page .rustplus-history-card {
    max-height: 240px;
  }

  body.rustplus-desktop-page .rustplus-log {
    max-height: 178px;
  }
}

@media (max-width: 430px) {
  body.rustplus-desktop-page .rustplus-map-shell {
    height: 55dvh;
    min-height: 350px;
  }

  body.rustplus-desktop-page .rustplus-map-canvas {
    min-height: 350px;
  }

  body.rustplus-desktop-page .rustplus-map-layers {
    max-width: 112px;
    max-height: 110px;
  }

  body.rustplus-desktop-page .rustplus-tools-panel {
    max-height: 74px;
  }

  body.rustplus-desktop-page .rustplus-event-dock {
    max-height: 126px;
  }

  body.rustplus-desktop-page .rustplus-live-row {
    grid-template-columns: 1fr;
  }

  body.rustplus-desktop-page .rustplus-module-content {
    font-size: 12px;
  }
}

.settings-modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 20, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  z-index: 60;
}

.settings-modal-card {
  width: min(460px, 96vw);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(20, 30, 48, 0.97), rgba(14, 22, 36, 0.97));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.settings-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(140, 168, 200, 0.22);
}

.settings-modal-head h3 {
  margin: 0;
  font-size: 17px;
}

.settings-modal-close {
  height: 34px;
  width: 34px;
  min-width: 34px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, #1a2740, #141f33);
  color: var(--text-soft);
  font-weight: 700;
}

.settings-modal-body {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.settings-item {
  border: 1px solid rgba(140, 168, 200, 0.2);
  border-radius: 10px;
  padding: 10px 11px;
  background: rgba(12, 20, 33, 0.5);
}

.settings-label {
  color: var(--text-soft);
  font-size: 12px;
  margin-bottom: 3px;
}

.settings-value {
  font-size: 14px;
  color: var(--text);
}
