:root {
  color-scheme: dark;
  --bg: #10130f;
  --surface: #171c17;
  --surface-2: #20271f;
  --surface-panel: rgba(23, 28, 23, 0.94);
  --surface-subpanel: rgba(18, 25, 18, 0.86);
  --surface-control: rgba(9, 12, 9, 0.58);
  --line: #334033;
  --text: #f2f4ed;
  --muted: #aeb7a7;
  --green: #80b95c;
  --gold: #d9b44a;
  --red: #d7644e;
  --blue: #6da0ca;
  --shadow: rgba(0, 0, 0, 0.28);
  --frame: 1px solid var(--line);
  --panel-radius: 10px;
  --control-radius: 8px;
  --panel-shadow: 0 16px 36px var(--shadow);
  --content-start-gap: 1rem;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
}

.shop-page {
  min-height: 100vh;
  background: var(--bg);
}

.shop-shell {
  display: block;
}

.shop-shell > .shop-message {
  margin-top: 1rem;
}

.configuration-shell {
  max-width: 680px;
}

.configuration-panel {
  gap: 1rem;
}

.recruited-ai-shell {
  max-width: 720px;
  padding-bottom: 7rem;
}

.recruited-ai-panel {
  gap: 1rem;
}

.recruited-ai-status {
  color: var(--muted);
  font-weight: 800;
}

.shop-mode-toggle.recruited-ai-tabs {
  grid-template-columns: repeat(var(--recruited-ai-visible-tabs, 1), minmax(0, 1fr));
  width: 100%;
}

.shop-mode-toggle.recruited-ai-tabs > button:not([hidden]) {
  width: 100%;
  min-width: 0;
}

.recruited-ai-view {
  display: grid;
  gap: 0.9rem;
}

.recruited-ai-type-list {
  display: grid;
  gap: 0.65rem;
}

.recruited-ai-control-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(11.5rem, 1fr);
  gap: 0.45rem;
  width: 100%;
}

@media (max-width: 35rem) {
  .recruited-ai-control-strip {
    grid-template-columns: minmax(0, 1fr);
  }
}

.recruited-ai-command-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  width: 100%;
}

.recruited-ai-command-list > .recruited-ai-command {
  min-width: 0;
}

.recruited-ai-type {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 5rem;
  padding: 0.75rem;
  border: 1px solid rgba(120, 139, 116, 0.5);
  border-radius: var(--control-radius);
  background: rgba(14, 22, 15, 0.74);
  color: var(--text);
  text-align: left;
  font: inherit;
}

.recruited-ai-type.is-selected {
  border-color: rgba(128, 185, 92, 0.9);
  background: rgba(61, 103, 51, 0.28);
  box-shadow: inset 0 0 0 1px rgba(128, 185, 92, 0.12);
}

.recruited-ai-type-mark,
.recruited-ai-unit-avatar {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(128, 185, 92, 0.72);
  border-radius: 50%;
  background: rgba(128, 185, 92, 0.16);
  color: var(--green);
  font-weight: 900;
}

.recruited-ai-type-mark.is-heavy {
  border-color: rgba(217, 180, 74, 0.78);
  background: rgba(217, 180, 74, 0.13);
  color: var(--gold);
}

.recruited-ai-type-copy,
.recruited-ai-price {
  display: grid;
  gap: 0.12rem;
}

.recruited-ai-type-copy small,
.recruited-ai-price small,
.recruited-ai-unit-card small,
.recruited-ai-command small,
.recruited-ai-patrol-field small {
  color: var(--muted);
  font-size: 0.76rem;
}

.recruited-ai-price {
  justify-items: end;
  color: var(--green);
}

.recruited-ai-price b {
  font-size: 1.2rem;
}

.recruited-ai-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.7rem;
}

.recruited-ai-patrol-field {
  display: grid;
  gap: 0.16rem;
  padding: 0.72rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: rgba(9, 12, 9, 0.58);
}

.recruited-ai-patrol-field > span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.recruited-ai-primary {
  width: 100%;
}

#recruited-ai-take-form {
  display: grid;
  gap: 0.75rem;
}

.recruited-ai-overview {
  display: grid;
  gap: 0.58rem;
  width: 100%;
}

.recruited-ai-overview-title,
.recruited-ai-vitals h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.recruited-ai-empty-status {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.45rem 0.72rem;
  border: 1px solid rgba(219, 125, 45, 0.82);
  border-radius: 999px;
  background: rgba(92, 43, 10, 0.42);
  color: #efaa70;
  font-size: 0.86rem;
  font-weight: 750;
}

.recruited-ai-vitals {
  min-width: 0;
}

.recruited-ai-vitals[hidden] {
  display: none;
}

.recruited-ai-vitals-grid {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.32rem;
  overflow: hidden;
}

.recruited-ai-vital {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  min-height: 2.45rem;
  gap: 0.32rem;
  padding: 0.36rem 0.58rem;
  border: 1px solid rgba(220, 220, 220, 0.72);
  border-radius: 999px;
  background: transparent;
  color: #dcdcdc;
}

.recruited-ai-page .shop-topbar {
  align-items: stretch;
  flex-direction: column;
  gap: 0.7rem;
}

.recruited-ai-active-statuses {
  display: contents;
}

.recruited-ai-active-statuses[hidden] {
  display: none;
}

.recruited-ai-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  min-height: 2.25rem;
  padding: 0.3rem;
  border: 1px solid rgba(220, 220, 220, 0.72);
  border-radius: 999px;
  background: transparent;
  color: #dcdcdc;
}

.recruited-ai-status > svg {
  width: 1.02rem;
  height: 1.02rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.recruited-ai-status.is-bleeding,
.recruited-ai-status.is-fracture,
.recruited-ai-status.is-unconscious,
.recruited-ai-status.is-gas_poisoning,
.recruited-ai-status.is-hemolytic_reaction {
  border-color: rgba(220, 0, 0, 0.78);
  color: #ef8d84;
}

@media (max-width: 420px) {
  .recruited-ai-vitals-grid {
    gap: 0.28rem;
  }

  .recruited-ai-vital {
    min-height: 2.25rem;
    gap: 0.18rem;
    padding: 0.3rem 0.38rem;
  }

  .recruited-ai-vital > svg {
    width: 0.92rem;
    height: 0.92rem;
  }

  .recruited-ai-status {
    min-height: 2.08rem;
  }
}

.recruited-ai-vital > svg {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.recruited-ai-vital > strong {
  display: none;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.recruited-ai-vital.has-heat-buffer > strong {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: -0.08em;
}

.recruited-ai-vital.is-warning {
  border-color: rgba(220, 220, 0, 0.72);
  color: #e4dd72;
}

.recruited-ai-vital.is-critical {
  border-color: rgba(220, 0, 0, 0.78);
  color: #ef8d84;
}

.recruited-ai-vital.is-blinking {
  border-color: rgba(220, 0, 0, 0.78);
  color: #ef8d84;
  animation: dayz-vital-critical-blink 720ms steps(2, start) infinite;
}

.recruited-ai-vital[data-dayz-temperature-tone] {
  border-color: currentColor;
}

.recruited-ai-vital[data-dayz-temperature-tone="neutral"] {
  color: #dcdcdc;
}

.recruited-ai-vital[data-dayz-temperature-tone="hot-warning"] {
  color: #dcdc00;
}

.recruited-ai-vital[data-dayz-temperature-tone="hot-critical"] {
  color: #dc0000;
}

.recruited-ai-vital[data-dayz-temperature-tone="hot-blinking"] {
  color: #dc0000;
  animation: dayz-vital-critical-blink 720ms steps(2, start) infinite;
}

.recruited-ai-vital[data-dayz-temperature-tone="cold-warning"] {
  color: #00ced1;
}

.recruited-ai-vital[data-dayz-temperature-tone="cold-critical"] {
  color: #1e90dc;
}

.recruited-ai-vital[data-dayz-temperature-tone="cold-blinking"] {
  color: #1e90dc;
  animation: dayz-vital-critical-blink 720ms steps(2, start) infinite;
}

@keyframes dayz-vital-critical-blink {
  50% {
    opacity: 0.2;
  }
}

.recruited-ai-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.recruited-ai-inventory {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: var(--surface-subpanel);
}

.recruited-ai-inventory h2,
.recruited-ai-inventory p {
  margin: 0;
}

.recruited-ai-inventory h2 {
  font-size: 1.05rem;
}

.recruited-ai-inventory p {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.recruited-ai-inventory-list {
  display: grid;
  gap: 0.45rem;
  padding-top: 0.15rem;
}

.recruited-ai-inventory-list > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.recruited-ai-inventory-list ul {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recruited-ai-inventory-list li {
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(120, 139, 116, 0.42);
  border-radius: 7px;
  background: rgba(9, 12, 9, 0.46);
  color: var(--text);
  font-size: 0.85rem;
}

.recruited-ai-unit-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: var(--surface-subpanel);
}

.recruited-ai-unit-card > span:nth-child(2) {
  display: grid;
}

.recruited-ai-unit-card > b {
  color: var(--muted);
  font-size: 0.76rem;
}

.recruited-ai-command {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 5.1rem;
  gap: 0.28rem;
  padding: 0.5rem 0.3rem;
  border: 1px solid rgba(120, 139, 116, 0.48);
  border-radius: var(--control-radius);
  background: rgba(14, 22, 15, 0.74);
  color: var(--text);
  text-align: center;
  font: inherit;
}

.recruited-ai-command > span {
  min-width: 0;
}

.recruited-ai-command > span > strong {
  display: block;
  font-size: 0.74rem;
  line-height: 1.08;
}

.recruited-ai-command-icon {
  width: 2.5rem;
  height: 1.75rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.recruited-ai-command.is-selected {
  border-color: rgba(128, 185, 92, 0.9);
  background: rgba(61, 103, 51, 0.28);
}

.recruited-ai-command.is-rejected {
  border-color: rgba(213, 104, 92, 0.9);
  background: rgba(117, 45, 38, 0.34);
}

.recruited-ai-hand {
  display: grid;
  gap: 0.45rem;
}

.recruited-ai-hand > span {
  color: var(--muted);
}

.recruited-ai-hand > strong {
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: rgba(7, 12, 8, 0.68);
}

.recruited-ai-payment-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: var(--surface-subpanel);
}

.recruited-ai-payment-line > span {
  display: grid;
  gap: 0.12rem;
}

.recruited-ai-payment-line > span:last-child {
  justify-items: end;
  text-align: right;
}

.recruited-ai-payment-line small {
  color: var(--muted);
  font-size: 0.74rem;
}

.recruited-ai-payment-line strong {
  color: var(--green);
}

.recruited-ai-payment-line strong.is-insufficient {
  color: #f1a99a;
}

.recruited-ai-danger {
  width: 100%;
  min-height: 2.9rem;
  border: 1px solid rgba(215, 100, 78, 0.72);
  border-radius: 6px;
  background: rgba(215, 100, 78, 0.12);
  color: #f1a99a;
  font: inherit;
  font-weight: 900;
}

.recruited-ai-feedback {
  margin: 0;
  padding: 0.72rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: var(--surface-subpanel);
  color: var(--muted);
  font-weight: 800;
}

.recruited-ai-feedback.is-success {
  border-color: rgba(128, 185, 92, 0.72);
  color: var(--green);
}

.recruited-ai-feedback.is-error {
  border-color: rgba(215, 100, 78, 0.72);
  color: #f1a99a;
}

.recruited-ai-lifecycle {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 0.65rem;
}

.recruited-ai-lifecycle > button {
  width: 100%;
  min-height: 2.9rem;
  border: 1px solid rgba(120, 139, 116, 0.6);
  border-radius: 6px;
  background: rgba(14, 22, 15, 0.74);
  color: var(--text);
  font: inherit;
  font-weight: 800;
}

@media (max-width: 560px) {
  .recruited-ai-form-grid {
    grid-template-columns: 1fr;
  }

  .recruited-ai-type {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .recruited-ai-price {
    grid-column: 2;
    justify-items: start;
    grid-auto-flow: column;
    justify-content: start;
    align-items: baseline;
    gap: 0.35rem;
  }

}

.configuration-section {
  display: grid;
  gap: 0.8rem;
}

.configuration-section + .configuration-section {
  padding-top: 1rem;
  border-top: 1px solid rgba(51, 64, 51, 0.8);
}

.configuration-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
}

.configuration-password-form {
  grid-template-columns: minmax(0, 1fr);
}

.configuration-password-form .configuration-save {
	width: 100%;
  min-height: 2.75rem;
	border-radius: 8px;
}

.account-logout-link {
  width: fit-content;
  margin-top: 0.8rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.account-logout-link:disabled {
  opacity: 0.66;
}

.configuration-form input {
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(120, 139, 116, 0.62);
  border-radius: 8px;
  background: rgba(14, 22, 15, 0.74);
  color: var(--text);
  font: inherit;
}

.configuration-save,
.player-favorite-save {
  display: grid;
  place-items: center;
  width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(128, 185, 92, 0.78);
  border-radius: 50%;
  background: rgba(41, 91, 49, 0.96);
  color: var(--green);
  font: inherit;
  font-size: 1.35rem;
  font-weight: 700;
}

.configuration-heading {
  display: grid;
  gap: 0.2rem;
}

.configuration-heading h2 {
  margin: 0;
}

.configuration-heading p,
.configuration-note {
  margin: 0;
  color: var(--muted);
}

.respawn-choice-list {
  display: grid;
  gap: 0.65rem;
}

.respawn-choice {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.6rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(120, 139, 116, 0.5);
  border-radius: 8px;
  background: rgba(14, 22, 15, 0.74);
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.respawn-choice span {
  display: grid;
  gap: 0.25rem;
}

.respawn-choice strong {
  font-size: 1rem;
}

.respawn-choice small {
  color: var(--muted);
  font-weight: 700;
}

.respawn-choice b {
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  border: 1px solid rgba(120, 139, 116, 0.66);
  border-radius: 50%;
  color: #0c180d;
}

.respawn-choice.is-selected {
  border-color: rgba(138, 204, 101, 0.94);
  background: rgba(61, 103, 51, 0.3);
}

.respawn-choice.is-selected b {
  border-color: var(--green);
  background: var(--green);
}

.respawn-choice:disabled {
  opacity: 0.66;
}

.player-lock-list {
  display: grid;
  gap: 0.65rem;
}

.player-lock-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.6rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(120, 139, 116, 0.5);
  border-radius: 8px;
  background: rgba(14, 22, 15, 0.74);
}

.player-lock-item span {
  display: grid;
  gap: 0.22rem;
}

.player-lock-item strong {
  font-size: 0.98rem;
}

.player-lock-item small {
  color: var(--muted);
  font-weight: 700;
}

.player-lock-item b {
  padding: 0.32rem 0.55rem;
  border-radius: 0.52rem;
  background: rgba(138, 204, 101, 0.18);
  color: var(--green);
  font-size: 1.08rem;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.player-favorite-list {
  display: grid;
  gap: 0.65rem;
}

.player-favorite-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.6rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(120, 139, 116, 0.5);
  border-radius: 8px;
  background: rgba(14, 22, 15, 0.74);
}

.player-favorite-item.is-base {
  border-color: rgba(138, 204, 101, 0.94);
  background: rgba(61, 103, 51, 0.3);
}

.player-favorite-item.is-deleting {
  opacity: 0.72;
}

.player-favorite-main {
  display: grid;
  min-width: 0;
}

.player-favorite-main strong,
.player-favorite-name {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 800;
}

.player-favorite-name {
  width: fit-content;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-bottom: 1px dashed rgba(138, 204, 101, 0.72);
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.player-favorite-rename-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
  width: min(100%, 22rem);
}

.player-favorite-rename-form input {
  min-width: 0;
  padding: 0.56rem 0.65rem;
}

.player-favorite-delete,
.player-favorite-delete-confirm-button,
.player-favorite-delete-cancel {
  display: grid;
  place-items: center;
  width: 2.5rem;
  min-height: 2.5rem;
  padding: 0;
  border-radius: 50%;
  font: inherit;
  font-size: 1.35rem;
  font-weight: 800;
}

.player-favorite-delete-loading {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.5rem;
  min-height: 2.5rem;
}

.player-favorite-delete-spinner {
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid rgba(138, 204, 101, 0.25);
  border-top-color: var(--green);
  border-radius: 999px;
  animation: player-favorite-delete-spin 0.75s linear infinite;
}

@keyframes player-favorite-delete-spin {
  to { transform: rotate(360deg); }
}

.player-favorite-delete,
.player-favorite-delete-cancel {
  flex: 0 0 auto;
  border-color: rgba(191, 77, 72, 0.9);
  background: rgba(104, 34, 30, 0.58);
  color: var(--red);
}

.player-favorite-delete-confirm {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.42rem;
  color: var(--muted);
  font-weight: 700;
}

.player-favorite-delete-confirm-button {
  border-color: rgba(128, 185, 92, 0.78);
  background: rgba(41, 91, 49, 0.96);
  color: var(--green);
}

.player-favorite-delete:disabled,
.player-favorite-name:disabled,
.player-favorite-save:disabled,
.configuration-save:disabled,
.player-favorite-delete-confirm-button:disabled,
.player-favorite-delete-cancel:disabled {
  opacity: 0.66;
}

.garage-shell {
  max-width: 680px;
}

.garage-panel,
.garage-vehicle-list {
  display: grid;
  gap: 0.85rem;
}

.garage-vehicle-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 0.65rem;
  row-gap: 0.3rem;
}

.garage-list-heading,
.garage-vehicle-heading,
.garage-detail-heading,
.garage-parts li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.garage-list-heading h2,
.garage-vehicle-heading h2,
.garage-detail-heading h2,
.garage-part-section h3 {
  margin: 0;
}

.garage-count {
  display: grid;
  place-items: center;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0 0.55rem;
  border: 1px solid rgba(128, 185, 92, 0.74);
  border-radius: 999px;
  background: rgba(128, 185, 92, 0.14);
  color: var(--green);
  font-weight: 900;
}

.garage-vehicle-card {
  display: grid;
  align-content: start;
  min-width: 0;
  min-height: 0;
  gap: 0.2rem;
  padding: 0.48rem 0.15rem 0.55rem;
  border: 0;
  border-bottom: 1px solid rgba(51, 64, 51, 0.78);
  border-radius: 0;
  background: transparent;
}

.garage-vehicle-card h3,
.garage-vehicle-card p {
  margin: 0;
  overflow-wrap: anywhere;
}

.garage-vehicle-card h3 {
  font-size: 1rem;
  line-height: 1.16;
  font-weight: 850;
}

.garage-vehicle-card p {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.3;
}

.garage-vehicle-card.is-pristine h3 { color: #40ff00; }
.garage-vehicle-card.is-worn h3 { color: var(--green); }
.garage-vehicle-card.is-damaged h3 { color: var(--gold); }
.garage-vehicle-card.is-badly_damaged h3 { color: #e09050; }
.garage-vehicle-card.is-ruined h3 { color: var(--red); }
.garage-vehicle-card.is-missing h3 { color: #aeb7a7; }

.garage-vehicle-link {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.garage-vehicle-link:active {
  background: rgba(28, 43, 28, 0.7);
}

.garage-vehicle-link:focus-visible,
.garage-back-link:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.garage-vehicle-summary {
  display: grid;
  gap: 0.7rem;
  padding: 0.9rem;
  cursor: pointer;
  list-style: none;
}

.garage-vehicle-summary::-webkit-details-marker {
  display: none;
}

.garage-vehicle-summary .garage-vehicle-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.garage-details-link {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.garage-details-link::after {
  content: " ▾";
}

.garage-vehicle-card[open] .garage-details-link::after {
  content: " ▴";
}

.garage-vehicle-details {
  display: grid;
  gap: 0.8rem;
  padding: 0;
}

.garage-vehicle-heading > div,
.garage-detail-heading > div {
  min-width: 0;
}

.garage-vehicle-heading h2,
.garage-detail-heading h2 {
  font-size: 1.1rem;
  line-height: 1.2;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.garage-vehicle-heading p,
.garage-detail-heading p,
.garage-part-empty,
.garage-empty {
  margin: 0;
  color: var(--muted);
}

.garage-vehicle-heading p,
.garage-detail-heading p {
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.25;
}

.garage-engine-state {
  display: grid;
  gap: 0.12rem;
  min-width: 5.6rem;
  padding: 0.42rem 0.5rem;
  border: 1px solid currentColor;
  border-radius: 6px;
  text-align: right;
  font-size: 0.78rem;
  font-weight: 900;
}

.garage-engine-state small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.garage-part-name.is-pristine,
.garage-engine-state.is-pristine { color: #40ff00; }
.garage-part-name.is-worn,
.garage-engine-state.is-worn { color: var(--green); }
.garage-part-name.is-damaged,
.garage-engine-state.is-damaged { color: var(--gold); }
.garage-part-name.is-badly_damaged,
.garage-engine-state.is-badly_damaged { color: #e09050; }
.garage-part-name.is-ruined,
.garage-engine-state.is-ruined { color: var(--red); }
.garage-part-name.is-missing,
.garage-engine-state.is-missing { color: var(--muted); }
.garage-part-name.is-level-high { color: var(--green); }
.garage-part-name.is-level-medium { color: var(--gold); }
.garage-part-name.is-level-low { color: var(--red); }
.garage-part-name.is-level-unknown { color: var(--muted); }

.garage-back-link {
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
}

.garage-detail-card {
  display: grid;
  gap: 0.9rem;
  padding: 0;
}

.garage-detail-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.3rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 13, 9, 0.52);
}

.garage-administration-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.garage-administration-list {
  display: grid;
  gap: 0.55rem;
}

.garage-administration-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--surface-subpanel);
  color: var(--text);
  padding: 0.9rem;
  font: inherit;
  text-align: left;
}

.garage-administration-row strong {
  color: var(--green);
  white-space: nowrap;
}

.garage-administration-row:disabled {
  opacity: 0.56;
}

.garage-administration-empty {
  margin: 0;
  color: var(--muted);
}

.garage-detail-tab {
  min-height: 3.35rem;
  padding: 0.35rem 0.3rem;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 850;
  line-height: 1.15;
}

.garage-detail-tab.is-active {
  border-color: rgba(128, 185, 92, 0.76);
  background: rgba(32, 48, 29, 0.84);
  color: var(--text);
}

.garage-repair-estimate {
  display: grid;
  gap: 0.8rem;
}

.garage-repair-total,
.garage-repair-section-heading,
.garage-repair-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: 0.5rem;
}

.garage-repair-total {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0.1rem 0 0.7rem;
  border-bottom: 1px solid rgba(51, 64, 51, 0.72);
}

.garage-repair-total span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.garage-repair-total strong {
  color: var(--green);
  font-size: 1.16rem;
}

.garage-repair-actions {
  display: flex;
  gap: 0.45rem;
  justify-content: flex-end;
}

.garage-repair-action {
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(130, 205, 82, 0.72);
  border-radius: 0.42rem;
  background: rgba(32, 48, 29, 0.84);
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
}

.garage-repair-action:disabled {
  opacity: 0.48;
}

.garage-repair-confirm-action {
  background: rgba(51, 91, 36, 0.94);
}

.garage-repair-balance,
.garage-repair-error {
  margin: -0.32rem 0 0;
  font-size: 0.78rem;
  font-weight: 750;
}

.garage-repair-balance { color: var(--muted); }
.garage-repair-error { color: var(--red); }

.garage-repair-section {
  display: grid;
  gap: 0.38rem;
}

.garage-repair-section-heading {
  grid-template-columns: minmax(0, 1fr) auto;
}

.garage-repair-section h3 {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.garage-repair-section-heading strong {
  color: var(--text);
  font-size: 0.82rem;
  white-space: nowrap;
}

.garage-repair-list {
  display: grid;
  gap: 0.18rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.garage-repair-list li {
  min-height: 1.85rem;
}

.garage-repair-target,
.garage-repair-remove {
  border: 0;
  background: transparent;
  font: inherit;
}

.garage-repair-target {
  min-width: 0;
  padding: 0;
  text-align: left;
  font-size: 0.84rem;
  font-weight: 750;
}

.garage-repair-target.is-pristine { color: #40ff00; }
.garage-repair-target.is-worn { color: var(--green); }

.garage-repair-list strong {
  color: var(--text);
  font-size: 0.82rem;
  white-space: nowrap;
}

.garage-repair-remove {
  width: 1.25rem;
  padding: 0;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1;
}

.garage-repair-empty {
  color: var(--muted);
  font-size: 0.84rem;
}

.garage-part-section {
  display: grid;
  gap: 0.48rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(51, 64, 51, 0.72);
}

.garage-part-section h3 {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.garage-parts {
  display: grid;
  gap: 0.22rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.garage-parts li {
  min-height: 1.75rem;
  padding: 0.25rem 0.4rem;
  border-radius: 5px;
  background: rgba(18, 25, 18, 0.52);
  font-size: 0.84rem;
}

.garage-parts-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.22rem;
}

.garage-parts-grid li {
  display: grid;
  align-content: center;
  justify-content: stretch;
  min-height: 1.75rem;
}

.garage-replacement-groups {
  display: grid;
  gap: 0.42rem;
}

.garage-parts li > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.garage-part-name {
  font-weight: 750;
}

@media (max-width: 420px) {
  .garage-parts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.garage-empty {
  padding: 1rem 0.15rem;
  text-align: center;
}

.shop-header-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  min-width: min(18rem, 100%);
}

.shop-credit-pill {
  border-color: rgba(217, 180, 74, 0.82);
  color: var(--gold);
  font-weight: 900;
  appearance: none;
  cursor: pointer;
  font: inherit;
}

.shop-code-panel,
.shop-panel {
  display: grid;
  gap: 0.85rem;
  padding: 0.9rem;
  border: var(--frame);
  border-radius: var(--panel-radius);
  background: var(--surface-panel);
  box-shadow: var(--panel-shadow);
}

.shop-code-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.session-account-panel {
  grid-template-columns: 1fr;
}

.session-account-divider {
  margin: 1.25rem 0;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.session-account-heading {
  display: grid;
  gap: 0.25rem;
}

.session-account-heading h2,
.session-account-heading p,
.session-account-message {
  margin: 0;
}

.session-account-heading p,
.session-account-message {
  color: var(--muted);
}

.session-account-form {
  display: grid;
  gap: 0.75rem;
}

.shop-code-panel.is-error {
  border-color: rgba(215, 100, 78, 0.92);
  background: rgba(68, 24, 20, 0.62);
}

.shop-code-panel label,
.shop-field {
  display: grid;
  gap: 0.35rem;
}

.shop-code-panel span,
.shop-field label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.shop-code-panel input,
.shop-field input,
.shop-field select {
  width: 100%;
  min-height: 2.8rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(9, 12, 9, 0.88);
  color: var(--text);
  font: inherit;
  font-weight: 800;
}

.shop-code-panel input,
.shop-field input {
  padding: 0.65rem 0.75rem;
}

.shop-code-panel input.is-error {
  border-color: rgba(215, 100, 78, 0.95);
  background: rgba(40, 12, 10, 0.95);
}

.shop-field select {
  padding: 0.65rem 2rem 0.65rem 0.75rem;
}

.server-configuration-shell {
  padding-bottom: 7rem;
}

.server-configuration-panel {
  display: grid;
  gap: 1rem;
}

.server-configuration-heading h2 {
  margin: 0;
}

.server-configuration-heading p,
.server-configuration-status,
.server-configuration-empty {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.server-configuration-list {
  display: grid;
  gap: 0.55rem;
}

.server-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6rem auto;
  gap: 0.6rem;
  align-items: end;
  padding: 0.7rem;
  border: 1px solid rgba(128, 176, 94, 0.45);
  border-radius: 0.7rem;
  background: rgba(35, 60, 30, 0.34);
}

.server-price-item {
  min-width: 0;
  display: grid;
  gap: 0.15rem;
}

.server-price-item strong,
.server-price-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-price-item small,
.server-price-row label span {
  color: var(--muted);
  font-size: 0.72rem;
}

.server-price-row label {
  display: grid;
  gap: 0.2rem;
}

.server-price-row input {
  width: 100%;
  min-height: 2.55rem;
  box-sizing: border-box;
  padding: 0.45rem;
}

.server-price-row button {
  min-height: 2.55rem;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .server-price-row {
    grid-template-columns: minmax(0, 1fr) 5.5rem;
  }

  .server-price-row button {
    grid-column: 1 / -1;
  }
}

.shop-code-panel button,
.shop-validate-button,
.shop-offer {
  border: 1px solid rgba(128, 185, 92, 0.72);
  border-radius: 6px;
  background: rgba(128, 185, 92, 0.14);
  color: var(--text);
  font: inherit;
  font-weight: 900;
}

.shop-code-panel button {
  min-height: 2.8rem;
  padding: 0 1rem;
}

.shop-validate-button {
  min-height: 2.9rem;
  padding: 0 1rem;
  background: rgba(128, 185, 92, 0.24);
}

.shop-mode-toggle {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  padding: 0.25rem;
  border: var(--frame);
  border-radius: var(--control-radius);
  background: var(--surface-control);
}

.shop-mode-toggle button {
  min-height: 2.5rem;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 900;
}

.shop-mode-toggle button.is-active {
  border-color: rgba(128, 185, 92, 0.72);
  background: rgba(128, 185, 92, 0.14);
  color: var(--text);
}

.shop-mode-toggle.is-trade-only {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.shop-mode-toggle.is-purchase-only {
  grid-template-columns: minmax(0, 1fr) auto;
}

.shop-mode-toggle.is-price-only {
  grid-template-columns: minmax(0, 1fr);
}

.shop-mode-toggle.is-single-trade {
  grid-template-columns: minmax(0, 1fr);
}

.shop-trade-context {
  display: grid;
  align-content: center;
  gap: 0.08rem;
  min-width: 0;
  min-height: 3.15rem;
  padding: 0 0.75rem;
  color: var(--text);
  overflow-wrap: anywhere;
}

.shop-trade-context strong {
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.05;
}

.shop-trade-context small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.05;
  text-transform: uppercase;
}

.shop-trade-context.is-inline {
  display: block;
  padding-top: 1rem;
}

.shop-trade-context.is-inline strong {
  display: block;
  font-size: clamp(0.82rem, 3.5vw, 1.08rem);
  white-space: nowrap;
}

.shop-mode-toggle.is-trade-only button {
  align-self: center;
  min-width: 5.25rem;
  min-height: 2.1rem;
  padding: 0 0.65rem;
  font-size: 0.82rem;
}

.shop-mode-toggle.is-purchase-only button {
  align-self: center;
  min-width: 5.25rem;
  min-height: 2.1rem;
  padding: 0 0.65rem;
  font-size: 0.82rem;
}

.shop-view {
  display: grid;
  gap: 0.85rem;
}

.shop-quantity-field {
  max-width: 8rem;
}

.shop-offer-list,
.shop-price-list {
  display: grid;
  gap: 0.55rem;
}

.shop-search-results {
  display: grid;
  gap: 0.45rem;
}

.shop-search-result {
  width: 100%;
  min-height: 3.2rem;
  padding: 0.64rem 0.75rem;
  border: 1px solid rgba(51, 64, 51, 0.95);
  border-radius: 6px;
  background: rgba(9, 12, 9, 0.32);
  color: var(--text);
  text-align: left;
  font: inherit;
  font-weight: 900;
}

.shop-search-result {
  cursor: pointer;
}

.shop-search-result:focus-visible {
  outline: 2px solid rgba(128, 185, 92, 0.86);
  outline-offset: 2px;
}

.shop-search-result span {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.shop-search-result strong {
  overflow-wrap: anywhere;
}

.shop-search-result small {
  color: var(--muted);
  font-size: 0.8rem;
}

.shop-offer,
.shop-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  padding: 0.72rem 0.8rem;
  text-align: left;
}

.shop-price-row small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.shop-price-row .shop-condition-counts {
  font-size: 0.7rem;
  opacity: 0.82;
}

.shop-credit-offer {
  cursor: default;
}

.shop-buy-offer {
  width: 100%;
  cursor: pointer;
}

.shop-buy-offer.is-disabled {
  border-color: rgba(92, 100, 88, 0.7);
  background: rgba(92, 100, 88, 0.14);
  color: rgba(174, 183, 167, 0.72);
  cursor: default;
}

.shop-buy-offer.is-disabled strong,
.shop-buy-offer.is-disabled small,
.shop-buy-offer.is-disabled b {
  color: rgba(174, 183, 167, 0.72);
}

.shop-sell-offer {
  width: 100%;
  cursor: pointer;
}

.shop-credit-history {
  display: grid;
  gap: 0.55rem;
  padding-top: 0.25rem;
}

.shop-credit-history h2 {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

#shop-credit-history {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.shop-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.62rem 0.7rem;
  border: 1px solid rgba(51, 64, 51, 0.78);
  border-radius: 6px;
  background: rgba(9, 12, 9, 0.32);
}

.shop-history-row span {
  display: grid;
}

.shop-history-row small {
  color: var(--muted);
}

.shop-history-row .is-positive { color: var(--green); }
.shop-history-row .is-negative { color: var(--red); }

.shop-price-row {
  border: 1px solid rgba(51, 64, 51, 0.95);
  border-radius: 6px;
  background: rgba(9, 12, 9, 0.32);
}

button.shop-price-row {
  width: 100%;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

button.shop-price-row:focus-visible {
  outline: 2px solid rgba(128, 185, 92, 0.86);
  outline-offset: 2px;
}

.shop-price-group-details,
.shop-price-single-details {
  gap: 0.32rem !important;
}

.shop-price-row .shop-price-place-list {
  display: grid;
  gap: 0.18rem;
}

.shop-price-row button.shop-price-place,
.shop-price-row button.shop-price-single-place {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.shop-price-row button.shop-price-place {
  justify-content: space-between;
  width: 100%;
}

.shop-price-row button.shop-price-single-place {
  width: fit-content;
}

.shop-price-row button.shop-price-place:hover .shop-price-place-name,
.shop-price-row button.shop-price-place:focus-visible .shop-price-place-name,
.shop-price-row button.shop-price-single-place:hover .shop-price-single-place-name,
.shop-price-row button.shop-price-single-place:focus-visible .shop-price-single-place-name {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.shop-price-row button.shop-price-place:focus-visible,
.shop-price-row button.shop-price-single-place:focus-visible {
  outline: 2px solid rgba(128, 185, 92, 0.86);
  outline-offset: 2px;
}

.shop-price-row button.shop-price-place .shop-price-place-name {
  display: block;
  min-width: 0;
}

.shop-price-row button.shop-price-single-place .shop-price-single-place-name {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.shop-price-row button.shop-price-place .shop-price-place-price {
  display: block;
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.shop-offer span,
.shop-price-row span {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.shop-offer strong,
.shop-offer small,
.shop-price-row strong {
  overflow-wrap: anywhere;
}

.shop-offer small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.shop-offer b,
.shop-price-row b {
  flex: 0 0 auto;
  min-width: 2.6rem;
  color: var(--green);
  font-size: 1.25rem;
  text-align: right;
}

.shop-composite-details {
  gap: 0.24rem !important;
}

.shop-component {
  padding-left: 0.72rem;
  font-size: 0.76rem !important;
}

.shop-offer-shop,
.shop-ammo {
  color: var(--muted) !important;
  font-size: 0.72rem !important;
}

.shop-condition-pristine {
  color: #40ff00 !important;
}

.shop-condition-worn {
  color: #bfff00 !important;
}

.shop-condition-damaged {
  color: #ffff00 !important;
}

.shop-condition-badly_damaged {
  color: #ffbf00 !important;
}

.shop-condition-ruined {
  color: #ff0000 !important;
}

.shop-buy-offer.is-disabled .shop-condition-pristine,
.shop-buy-offer.is-disabled .shop-condition-worn,
.shop-buy-offer.is-disabled .shop-condition-damaged,
.shop-buy-offer.is-disabled .shop-condition-badly_damaged,
.shop-buy-offer.is-disabled .shop-condition-ruined {
  color: rgba(174, 183, 167, 0.72) !important;
}

.shop-offer.is-selected {
  border-color: var(--green);
  background: rgba(128, 185, 92, 0.28);
  box-shadow: inset 0 0 0 1px rgba(128, 185, 92, 0.35);
}

.shop-validate-button:disabled,
.shop-offer:disabled {
  cursor: default;
  opacity: 0.56;
}

.shop-message,
.shop-empty {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.shop-message {
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 25, 18, 0.72);
}

.shop-message.is-success {
  border-color: rgba(128, 185, 92, 0.7);
  color: var(--green);
}

.shop-offer b.is-sold-out,
.shop-price-row b.is-sold-out {
  color: var(--red);
}

.shop-message.is-error {
  border-color: rgba(215, 100, 78, 0.72);
  color: #f0a091;
}

.shop-confirm-open {
  overflow: hidden;
}

.garage-repair-confirm-open {
  overflow: hidden;
}

.shop-credit-history-open {
  overflow: hidden;
}

.shop-confirm-dialog {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
}

.shop-credit-history-dialog {
  position: fixed;
  inset: 0;
  z-index: 101;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
}

.shop-credit-history-card {
  width: min(100%, 34rem);
  max-height: min(76dvh, 46rem);
  overflow: auto;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.45);
}

.shop-credit-history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.shop-credit-history-heading h2 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: 0;
}

.shop-credit-history-heading button {
  display: grid;
  width: 2.5rem;
  min-width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 1.8rem;
  line-height: 1;
}

.shop-confirm-card {
  width: min(100%, 26rem);
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.45);
}

.shop-confirm-card h2 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: 0;
}

.shop-confirm-card p {
  margin: 0.65rem 0 1rem;
  color: var(--muted);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.shop-confirm-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.shop-confirm-actions button {
  min-height: 2.9rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  font-weight: 900;
}

.shop-confirm-no {
  background: var(--surface-2);
}

.shop-confirm-yes {
  border-color: rgba(128, 185, 92, 0.82) !important;
  background: rgba(128, 185, 92, 0.28);
}

.shop-confirm-actions button:disabled {
  opacity: 0.56;
}

.shop-confirm-dialog.is-processing .shop-confirm-card {
  display: grid;
  justify-items: center;
  text-align: center;
}

.shop-confirm-dialog.is-processing .shop-confirm-card::before {
  content: "";
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.85rem;
  border: 3px solid rgba(246, 255, 239, 0.22);
  border-top-color: var(--green);
  border-radius: 999px;
  animation: shop-spin 0.85s linear infinite;
}

.shop-confirm-dialog.is-processing .shop-confirm-card p {
  margin-bottom: 0;
  color: var(--text);
}

.shop-confirm-dialog.is-processing .shop-confirm-actions {
  display: none;
}

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

.shop-state.online {
  border-color: rgba(128, 185, 92, 0.72);
  color: var(--green);
}

.shop-state.pending {
  border-color: var(--line);
  color: var(--muted);
}

.shop-state.warning {
  border-color: rgba(217, 180, 74, 0.82);
  color: var(--gold);
}

.shop-state.danger {
  border-color: rgba(215, 100, 78, 0.82);
  color: #f0a091;
}

.shop-state.offline {
  border-color: rgba(215, 100, 78, 0.56);
  color: #f0a091;
}

.tabs.shop-tabs {
  width: min(1180px, calc(100% - 2rem));
  margin: 0.25rem auto 0.35rem;
}

a {
  color: inherit;
}

input,
textarea,
select {
  user-select: text;
  -webkit-user-select: text;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2rem);
  background: rgba(16, 19, 15, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.topbar h1,
.section h2,
.panel h2,
.map-copy h3 {
  margin: 0;
  letter-spacing: 0;
}

.topbar h1 {
  font-size: 1.6rem;
}

.player-title-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.player-title-row h1 {
  min-width: 0;
}

.player-badge-rank {
  flex: 0 0 auto;
  padding: 0.26rem 0.52rem;
  border: 1px solid rgba(209, 180, 74, 0.62);
  border-radius: 999px;
  background: rgba(209, 180, 74, 0.12);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.player-badge-rank[hidden] {
  display: none;
}

.player-header-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.player-header-nav:empty {
  display: none;
}

.player-header-nav a,
.player-header-nav .is-disabled {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(32, 39, 31, 0.72);
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.player-header-nav .is-disabled {
  opacity: 0.28;
}

.player-header-nav a:hover,
.player-header-nav a:focus-visible {
  border-color: var(--green);
  color: var(--green);
  outline: none;
}

.eyebrow,
.section-label {
  margin: 0 0 0.2rem;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.45rem 0.7rem;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1;
  white-space: nowrap;
}

.status-pill a {
  color: inherit;
  text-decoration: none;
}

.status-pill[data-active="true"] {
  border-color: rgba(128, 185, 92, 0.72);
  color: var(--text);
}

.page-local-header {
  align-items: flex-start;
}

.page-local-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.page-local-nav .status-pill {
  text-decoration: none;
}

.page-local-nav .status-pill[aria-current="page"] {
  border-color: rgba(128, 185, 92, 0.84);
  background: rgba(32, 48, 29, 0.96);
  color: var(--text);
}

.page-local-nav .status-pill:hover,
.page-local-nav .status-pill:focus-visible {
  border-color: rgba(128, 185, 92, 0.84);
  color: var(--text);
  outline: none;
}

.player-period-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.player-period-nav {
  display: flex;
  gap: 0.35rem;
}

.player-period-nav a,
.player-period-nav span {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.45rem 0.7rem;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(32, 39, 31, 0.72);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.player-period-nav a:hover,
.player-period-nav a:focus-visible,
.player-period-nav .is-active {
  border-color: rgba(128, 185, 92, 0.72);
  color: var(--text);
  outline: none;
}

.player-period-nav .is-active {
  background: rgba(128, 185, 92, 0.14);
}

.app-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 2.5rem;
}

.tabs {
  position: sticky;
  top: var(--tabs-sticky-top, 5.75rem);
  z-index: 9;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  margin: 0 0 0.35rem;
  padding: 0.35rem 0 0.45rem;
  background: transparent;
  scrollbar-width: thin;
}

.tabs a {
  position: relative;
  flex: 0 0 auto;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.tabs a[aria-current="page"] {
  border-color: var(--green);
  background: rgba(32, 48, 29, 0.96);
  color: var(--text);
}

.tabs a:hover {
  color: var(--text);
}

.tabs a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(128, 181, 94, 0.32);
}

.tabs .mobile-more-tab {
  display: none;
}

.tabs .site-meta-nav-placeholder {
  display: none;
}

.tabs .tab-more {
  position: relative;
  flex: 0 0 auto;
  min-width: 0;
}

.tabs .tab-more summary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  list-style: none;
}

.tabs .tab-more summary::-webkit-details-marker {
  display: none;
}

.tabs .tab-more[data-current="true"] > summary,
.tabs .tab-more[open] > summary {
  border-color: var(--green);
  background: rgba(32, 48, 29, 0.96);
  color: var(--text);
}

.tab-more-menu {
  position: absolute;
  right: 0;
  z-index: 30;
  display: grid;
  gap: 0.35rem;
  min-width: 9rem;
  padding: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(16, 19, 15, 0.98);
  box-shadow: 0 14px 32px var(--shadow);
}

.tabs a.live-link,
.tabs a.live-link.has-live-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.tabs a.live-link.has-live-status::before {
  content: "";
  --live-dot-rgb: 118, 126, 118;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.92rem;
  height: 0.92rem;
  border-radius: 50%;
  background: rgb(var(--live-dot-rgb));
  box-shadow: none;
  opacity: 0.76;
  transform: scale(1.18);
  transform-origin: center;
}

.tabs a.live-link.live-count-one::before {
  --live-dot-rgb: 120, 189, 94;
}

.tabs a.live-link.live-count-two::before {
  --live-dot-rgb: 253, 174, 97;
}

.tabs a.live-link.live-count-many::before {
  --live-dot-rgb: 239, 63, 54;
}

.tabs a.live-link.is-live::before {
  animation: live-pulse 1.8s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(var(--live-dot-rgb), 0.62);
}

@keyframes live-pulse {
  0% {
    opacity: 0.7;
    transform: scale(0.78);
    box-shadow: 0 0 0 0 rgba(var(--live-dot-rgb, 239, 63, 54), 0.58);
  }

  50% {
    opacity: 1;
    transform: scale(1.18);
    box-shadow: 0 0 0 0.45rem rgba(var(--live-dot-rgb, 239, 63, 54), 0);
  }

  100% {
    opacity: 0.7;
    transform: scale(0.78);
    box-shadow: 0 0 0 0 rgba(var(--live-dot-rgb, 239, 63, 54), 0);
  }
}

.daily-section,
.section,
.intro {
  scroll-margin-top: 9rem;
}

.section,
.intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0 0.8rem;
}

.page-heading,
#story-heading,
.live-presence-header {
  padding-top: 0.35rem;
}

.content-start {
  margin-top: var(--content-start-gap);
}

.section h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.muted,
.last-update,
.map-copy p {
  color: var(--muted);
}

.last-update {
  text-align: right;
  font-size: 0.9rem;
}

.metric-grid,
.ranking-grid,
.player-grid,
.dashboard-grid {
  display: grid;
  gap: 1rem;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  margin-top: 1rem;
}

.ranking-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.player-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.player-roster-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card,
.panel,
.map-panel {
  border: var(--frame);
  border-radius: var(--panel-radius);
  background: var(--surface-panel);
  box-shadow: var(--panel-shadow);
}

.card {
  min-height: 8rem;
  padding: 1rem;
}

.card .label,
.ranking-title,
.player-name {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
}

.card strong {
  display: block;
  margin-top: 0.35rem;
  font-size: clamp(1.7rem, 5vw, 2.55rem);
  line-height: 1;
}

.card span {
  display: block;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.panel {
  padding: 1rem;
}

.live-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.live-card {
  min-height: 6.35rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(23, 28, 23, 0.92);
  box-shadow: 0 16px 36px var(--shadow);
}

.live-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.live-card strong {
  display: block;
  margin-top: 0.25rem;
  font-size: clamp(1.25rem, 3.5vw, 1.85rem);
  line-height: 1.1;
}

.live-card span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.live-card-player-list {
  display: grid;
  gap: 0.2rem;
  margin: 0.45rem 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.92rem;
  list-style: none;
}

.live-state.online {
  border-color: rgba(128, 185, 92, 0.75);
  color: var(--text);
}

.live-state.starting {
  border-color: rgba(217, 180, 74, 0.75);
  color: var(--text);
}

.live-state.offline,
.live-state.stale {
  border-color: rgba(215, 100, 78, 0.75);
  color: var(--text);
}

.live-player-panel {
  margin-top: 1rem;
}

.live-player-panel h3 {
  margin: 0 0 0.8rem;
}

.live-player-panel p {
  margin: 0;
  color: var(--muted);
}

.live-player-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.live-player-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(51, 64, 51, 0.75);
}

.live-player-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.live-presence-card {
  margin-top: var(--content-start-gap);
}

.live-presence-layer {
  mix-blend-mode: screen;
}

.live-presence-spot {
  background:
    radial-gradient(circle, rgba(239, 63, 54, var(--heat-alpha, 0.92)) 0 18%, rgba(239, 63, 54, calc(var(--heat-alpha, 0.92) * 0.82)) 42%, rgba(255, 96, 88, calc(var(--heat-alpha, 0.92) * 0.5)) 64%, transparent 78%);
  filter: blur(5px);
  box-shadow: 0 0 24px rgba(239, 63, 54, 0.58);
}

@media (max-width: 640px) {
  .live-presence-spot {
    transform: scale(1.45);
    transform-origin: center;
  }
}

.server-access-card {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
}

.server-access-card h2 {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.2;
  margin: 0 0 0.1rem;
}

.server-access-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 0;
}

.server-access-card a {
  color: var(--green);
  font-weight: 850;
}

.gps-page {
  overflow: hidden;
  min-height: 100dvh;
  background: #11150f;
  overscroll-behavior: none;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}

.gps-shell {
  max-width: none;
  min-height: 100dvh;
  padding: 0;
}

.gps-map-screen {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #141914;
  touch-action: manipulation;
}

.gps-page button {
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.gps-map-stage {
  --gps-map-zoom: 1;
  --gps-camera-duration: 0ms;
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #e0e3e1;
  isolation: isolate;
  touch-action: none;
}

.gps-map-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 18%, transparent 72%, rgba(110, 107, 102, 0.08)),
    radial-gradient(circle at 50% 42%, transparent 0 62%, rgba(120, 117, 112, 0.08) 100%);
}

.gps-map-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  transform-origin: 0 0;
  transition: transform var(--gps-camera-duration) linear;
  will-change: transform;
  touch-action: none;
}

.gps-map-tiles {
  z-index: 1;
  display: none;
  filter: saturate(0.78) brightness(0.8) contrast(1.05);
}

.gps-vector-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  shape-rendering: geometricPrecision;
}

.gps-vector-layer[hidden] {
  display: none;
}

.gps-base-grid-line {
  stroke: rgba(122, 126, 128, 0.18);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}

.gps-base-grid-major {
  stroke: rgba(122, 126, 128, 0.3);
}

.gps-base-road {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.gps-base-road-casing {
  stroke: rgba(133, 137, 139, 0.9);
}

.gps-base-road-casing-main {
  stroke: #476f4e;
  stroke-width: 14px;
}

.gps-base-road-casing-secondary {
  stroke: #4d7297;
  stroke-width: 12px;
}

.gps-base-road-casing-path,
.gps-base-road-casing-minor {
  stroke: #65706c;
  stroke-width: 9px;
}

.gps-base-road-fill-main {
  stroke: #78ac79;
  stroke-width: 10px;
}

.gps-base-road-fill-secondary {
  stroke: #7eaed2;
  stroke-width: 8px;
}

.gps-base-road-fill-path,
.gps-base-road-fill-minor {
  stroke: #b1b9b5;
  stroke-width: 5px;
}

.gps-base-building {
  vector-effect: non-scaling-stroke;
  stroke-width: 1px;
}

.gps-base-building-ordinary {
  fill: #dedbd4;
  stroke: rgba(159, 155, 147, 0.9);
}

.gps-base-building-village {
  fill: #b8d4e8;
  stroke: rgba(74, 116, 145, 0.92);
}

.gps-base-building-industrial {
  fill: #cfad8d;
  stroke: rgba(119, 82, 53, 0.92);
}

.gps-base-building-fire {
  fill: #eca59d;
  stroke: rgba(153, 75, 67, 0.92);
}

.gps-base-building-security {
  fill: #a8c89d;
  stroke: rgba(70, 112, 67, 0.92);
}

.gps-base-building-medical {
  fill: #eadb88;
  stroke: rgba(138, 118, 44, 0.92);
}

.gps-base-building-church {
  fill: #c3a5dc;
  stroke: rgba(91, 63, 121, 0.92);
}

.gps-base-building-special-frame {
  fill: rgba(248, 249, 246, 0.97);
  stroke: rgba(34, 40, 36, 0.92);
}

.gps-base-building-color {
  stroke: none;
}

.gps-base-building-color-store {
  fill: #0048fa;
}

.gps-base-building-color-military {
  fill: #a8c89d;
}

.gps-base-building-color-police {
  fill: #a8c89d;
}

.gps-base-building-color-fire {
  fill: #eca59d;
}

.gps-base-building-color-medical {
  fill: #eadb88;
}

.gps-base-building-color-water_pump {
  fill: #2f9eea;
}

.gps-base-building-color-church {
  fill: #c3a5dc;
}

.gps-base-building-color-fuel {
  fill: #c59a2f;
}

.gps-base-building-selected {
  fill: #2f8cff;
  stroke: #ffffff;
  stroke-width: 2px;
}

.gps-base-place-label {
  fill: rgba(25, 31, 27, 0.98);
  stroke: rgba(235, 238, 234, 0.94);
  stroke-width: 0.34px;
  paint-order: stroke;
  font-size: 0.38px;
  font-weight: 500;
  letter-spacing: 0;
  dominant-baseline: middle;
  pointer-events: none;
}

.gps-base-place-dot {
  fill: rgba(40, 47, 42, 0.96);
  stroke: rgba(239, 241, 238, 0.9);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}

.gps-vector-road,
.gps-vector-route-local,
.gps-vector-route-shadow-local {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.gps-vector-road-physical {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: none;
}

.gps-vector-road-casing {
  stroke: rgba(137, 143, 140, 0.82);
}

.gps-vector-water {
  pointer-events: none;
}

.gps-vector-forest {
  pointer-events: none;
}

.gps-vector-forest-surface {
  fill: rgba(190, 224, 166, 0.58);
  stroke: rgba(157, 195, 139, 0.36);
  stroke-width: 0.08;
  stroke-linejoin: round;
}

.gps-vector-water-surface {
  fill: rgba(117, 170, 197, 0.7);
  stroke: none;
}

.gps-vector-road-casing-main {
  stroke: #476f4e;
}

.gps-vector-road-casing-secondary {
  stroke: #4d7297;
}

.gps-vector-road-casing-path,
.gps-vector-road-casing-minor {
  stroke: #65706c;
}

.gps-vector-road-physical-fill-main {
  stroke: #78ac79;
}

.gps-vector-road-physical-fill-secondary {
  stroke: #7eaed2;
}

.gps-vector-road-physical-fill-path,
.gps-vector-road-physical-fill-minor {
  stroke: #b1b9b5;
}

.gps-vector-electrical {
  pointer-events: none;
}

.gps-vector-electrical-line {
  fill: none;
  stroke: rgba(13, 17, 15, 0.84);
  stroke-width: 1.15px;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.gps-vector-electrical-pole {
  fill: #101411;
  stroke: rgba(0, 0, 0, 0.88);
  stroke-width: 0.7px;
  vector-effect: non-scaling-stroke;
}

.gps-vector-route-shadow-local {
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 13px;
}

.gps-vector-route-local {
  stroke: #1a73e8;
  stroke-width: 8px;
  filter: drop-shadow(0 0 4px rgba(37, 135, 255, 0.45));
}

.gps-vector-danger-screen {
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(41, 30, 7, 0.34));
}

.gps-vector-danger-shape {
  fill: #ffd45d;
  stroke: #72550f;
  stroke-width: 1.25px;
  vector-effect: non-scaling-stroke;
}

.gps-vector-danger-symbol {
  stroke: #2a220e;
  stroke-width: 1.35px;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.gps-vector-danger-symbol-dot {
  fill: #2a220e;
}

.gps-vector-vehicle-sites {
  pointer-events: none;
}

.gps-vector-vehicle-site {
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.42));
}

.gps-vector-vehicle-site-spawns {
  color: #f08c1a;
}

.gps-vector-vehicle-site-wrecks {
  color: #6b7280;
}

.gps-vector-vehicle-site-shape {
  fill: currentColor;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 1.1px;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.live-mobile-map-garage-vehicles {
  pointer-events: none;
}

.live-mobile-map-garage-vehicle {
  color: #3d8d4d;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.5));
}

.gps-vector-vehicle-site-detail {
  fill: none;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 1px;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.gps-vector-vehicle-site-wheel {
  fill: #151815;
  stroke: rgba(255, 255, 255, 0.86);
  stroke-width: 0.78px;
  vector-effect: non-scaling-stroke;
}

.gps-vector-special-events {
  pointer-events: none;
}

.gps-vector-special-event-site {
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.42));
}

.gps-vector-special-event-site-heli_crash {
  color: #c84336;
}

.gps-vector-special-event-site-military_convoy {
  color: #a96828;
}

.gps-vector-special-event-shape {
  fill: currentColor;
  stroke: rgba(255, 255, 255, 0.94);
  stroke-width: 1.1px;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.gps-vector-special-event-explosion {
  fill: #f6bf4f;
  stroke: rgba(104, 52, 18, 0.9);
  stroke-width: 1.1px;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.gps-vector-special-event-detail {
  fill: none;
  stroke: rgba(255, 255, 255, 0.94);
  stroke-width: 1px;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.gps-vector-lumber-piles {
  pointer-events: none;
}

.gps-vector-lumber-pile-site {
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.42));
}

.gps-vector-lumber-pile-shape {
  fill: #94653a;
  stroke: #f4d7a9;
  stroke-width: 1.05px;
  vector-effect: non-scaling-stroke;
}

.gps-vector-lumber-pile-detail {
  fill: none;
  stroke: #4c2f1b;
  stroke-width: 1px;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.gps-vector-building {
  vector-effect: non-scaling-stroke;
  stroke-width: 1.4px;
}

.gps-vector-building-ordinary {
  fill: rgba(213, 219, 204, 0.72);
  stroke: rgba(18, 24, 18, 0.58);
}

.gps-vector-building-destination {
  fill: rgba(255, 214, 102, 0.94);
  stroke: rgba(63, 44, 0, 0.72);
}

.gps-vector-building-special-medical {
  fill: rgba(226, 92, 82, 0.9);
  stroke: rgba(118, 39, 34, 0.9);
}

.gps-vector-building-special-fire {
  fill: rgba(238, 119, 57, 0.92);
  stroke: rgba(132, 55, 27, 0.9);
}

.gps-vector-building-special-police {
  fill: rgba(87, 145, 218, 0.92);
  stroke: rgba(33, 75, 126, 0.92);
}

.gps-vector-building-special-military {
  fill: rgba(104, 139, 78, 0.92);
  stroke: rgba(49, 78, 37, 0.92);
}

.gps-vector-building-special-church {
  fill: rgba(154, 110, 190, 0.9);
  stroke: rgba(82, 54, 111, 0.92);
}

.gps-vector-building-special-store {
  fill: rgba(223, 171, 66, 0.92);
  stroke: rgba(116, 79, 18, 0.92);
}

.gps-vector-building-special-fuel {
  fill: rgba(73, 157, 175, 0.92);
  stroke: rgba(26, 89, 101, 0.92);
}

.gps-vector-building-special-pub {
  fill: rgba(157, 102, 62, 0.92);
  stroke: rgba(88, 50, 25, 0.92);
}

.gps-vector-building-special-hunting {
  fill: rgba(190, 192, 113, 0.9);
  stroke: rgba(91, 99, 43, 0.92);
}

.gps-vector-building-special-industrial {
  fill: rgba(207, 173, 141, 0.82);
  stroke: rgba(119, 82, 53, 0.82);
}

.gps-vector-building-special-garage {
  fill: rgba(220, 124, 37, 0.92);
  stroke: rgba(122, 62, 14, 0.94);
}

.gps-vector-building-special-farm {
  fill: rgba(201, 183, 112, 0.9);
  stroke: rgba(112, 91, 42, 0.92);
}

.gps-vector-building-special-water {
  fill: rgba(86, 181, 204, 0.92);
  stroke: rgba(27, 101, 121, 0.92);
}

.gps-vector-building-type-village {
  fill: rgba(184, 212, 232, 0.78);
  stroke: rgba(74, 116, 145, 0.78);
}

.gps-vector-building-type-ruin {
  fill: rgba(121, 128, 123, 0.8);
  stroke: rgba(75, 81, 77, 0.9);
}

.gps-vector-building-type-hunting {
  fill: rgba(190, 192, 113, 0.9);
  stroke: rgba(91, 99, 43, 0.92);
}

.gps-vector-building-type-water {
  fill: rgba(86, 181, 204, 0.92);
  stroke: rgba(27, 101, 121, 0.92);
}

.gps-vector-building-type-industrial {
  fill: rgba(207, 173, 141, 0.82);
  stroke: rgba(119, 82, 53, 0.82);
}

.gps-vector-building-type-farm {
  fill: rgba(201, 183, 112, 0.9);
  stroke: rgba(112, 91, 42, 0.92);
}

.gps-vector-building-type-fire {
  fill: rgba(236, 165, 157, 0.9);
  stroke: rgba(153, 75, 67, 0.9);
}

.gps-vector-building-type-security {
  fill: rgba(168, 200, 157, 0.9);
  stroke: rgba(70, 112, 67, 0.9);
}

.gps-vector-building-type-medical {
  fill: rgba(234, 219, 136, 0.9);
  stroke: rgba(138, 118, 44, 0.9);
}

.gps-vector-building-type-church {
  fill: rgba(195, 165, 220, 0.9);
  stroke: rgba(91, 63, 121, 0.9);
}

.gps-vector-building-selected {
  fill: #2f8cff;
  stroke: #ffffff;
  stroke-width: 2px;
}

.gps-vector-building-special-garage.gps-vector-building-selected {
  fill: #e68126;
  stroke: #ffffff;
}

.gps-vector-building-visited {
  stroke: #7fc65a;
  stroke-width: 3px;
}

.gps-building-icon {
  fill: none;
  stroke: rgba(13, 18, 14, 0.94);
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.gps-building-icon-selected {
  stroke: #ffffff;
}

.shop-catalogue-page {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.shop-catalogue-header {
  margin-bottom: 1.5rem;
}

.shop-catalogue-header h1 {
  margin: 0.28rem 0 0;
}

.shop-catalogue-sales {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.shop-catalogue-sales strong {
  color: var(--green);
}

.shop-catalogue-sales span {
  color: var(--text);
  font-weight: 700;
}

.shop-catalogue-list {
  display: grid;
  gap: 1rem;
}

.shop-catalogue-section {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(20, 29, 21, 0.9);
}

.shop-catalogue-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0.72rem;
  border-bottom: 1px solid var(--line);
}

.shop-catalogue-section-heading h2 {
  margin: 0;
  font-size: 1.18rem;
}

.shop-catalogue-section-heading span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.shop-catalogue-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shop-catalogue-items li {
  min-width: 0;
  padding: 0.66rem 1rem;
  border-bottom: 1px solid rgba(51, 64, 51, 0.7);
  color: var(--text);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.shop-catalogue-items li:nth-child(odd) {
  border-right: 1px solid rgba(51, 64, 51, 0.7);
}

.shop-catalogue-items li:nth-last-child(-n + 2):nth-child(odd),
.shop-catalogue-items li:last-child:nth-child(even) {
  border-bottom: 0;
}

@media (max-width: 520px) {
  .shop-catalogue-page {
    padding: 1.55rem 0.75rem 2rem;
  }

  .shop-catalogue-sales {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .shop-catalogue-items {
    grid-template-columns: minmax(0, 1fr);
  }

  .shop-catalogue-items li:nth-child(odd) {
    border-right: 0;
  }

  .shop-catalogue-items li:nth-last-child(-n + 2):nth-child(odd) {
    border-bottom: 1px solid rgba(51, 64, 51, 0.7);
  }

  .shop-catalogue-items li:last-child {
    border-bottom: 0;
  }
}

.gps-vector-destination-local circle {
  fill: #d93025;
  stroke: #ffffff;
  stroke-width: 2px;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.45));
}

.gps-route-layer {
  position: absolute;
  inset: 0;
  z-index: 6;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.gps-route-shadow,
.gps-route-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.gps-route-shadow {
  stroke: rgba(255, 255, 255, 0.96);
  stroke-width: 5px;
}

.gps-route-line {
  stroke: #1a73e8;
  stroke-width: 2.6px;
  filter: drop-shadow(0 0 3px rgba(26, 115, 232, 0.4));
}

.gps-marker {
  position: absolute;
  z-index: 8;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  transform: translate(-50%, -50%) scale(calc(1 / var(--gps-map-zoom)));
  transform-origin: center;
  pointer-events: none;
  transition: left 180ms linear, top 180ms linear;
  will-change: left, top;
}

.gps-marker span {
  display: block;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.gps-marker-player span {
  width: 1.42rem;
  height: 1.42rem;
  border: 0.2rem solid #ffffff;
  background: #2587ff;
  box-shadow:
    0 0 0 0.18rem rgba(37, 135, 255, 0.34),
    0 2px 10px rgba(0, 0, 0, 0.56);
}

.gps-marker-player.gps-marker-foot span {
  border-radius: 999px;
}

.gps-marker-player.gps-marker-vehicle span {
  width: 1.02rem;
  height: 1.58rem;
  border-radius: 0.32rem 0.32rem 0.22rem 0.22rem;
  transform: rotate(var(--gps-player-heading, 0deg));
}

.gps-marker-player.gps-marker-heading::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 0.38rem solid transparent;
  border-right: 0.38rem solid transparent;
  border-bottom: 1.08rem solid rgba(37, 135, 255, 0.95);
  transform: translate(-50%, -1.42rem) rotate(var(--gps-player-heading, 0deg));
  transform-origin: 50% 1.42rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}

.gps-marker-player.gps-marker-vehicle.gps-marker-heading::before,
.gps-marker-player.gps-marker-vehicle::after {
  display: none;
}

.gps-marker-player::after {
  content: "";
  position: absolute;
  inset: 0.18rem;
  border: 2px solid rgba(37, 135, 255, 0.28);
  border-radius: 999px;
}

.gps-marker-destination span {
  position: relative;
  width: 1.12rem;
  height: 1.12rem;
  border: 0.18rem solid #ffffff;
  border-radius: 50% 50% 50% 0;
  background: #d93025;
  transform: translateY(-0.48rem) rotate(-45deg);
}

.gps-marker-destination span::after {
  content: "";
  position: absolute;
  inset: 0.25rem;
  border-radius: 50%;
  background: #ffffff;
}

.gps-marker-parked-vehicle {
  z-index: 7;
}

.gps-marker-parked-vehicle span {
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border: 0.18rem solid #ffffff;
  border-radius: 0.38rem;
  background: #425b47;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 0 0 0.14rem rgba(66, 91, 71, 0.26), 0 2px 10px rgba(0, 0, 0, 0.52);
}

.gps-vector-parked-vehicle-body {
  fill: #315f40;
  stroke: #ffffff;
  stroke-width: 0.42;
  vector-effect: non-scaling-stroke;
}

.gps-vector-parked-vehicle-roof {
  fill: #b6d9bb;
  stroke: #ffffff;
  stroke-width: 0.26;
  vector-effect: non-scaling-stroke;
}

.gps-vector-favorites {
  pointer-events: none;
}

.gps-vector-constructions {
  pointer-events: none;
}

.gps-vector-construction {
  pointer-events: auto;
  color: #70452d;
  cursor: pointer;
  filter: drop-shadow(0 1px 1px rgba(47, 28, 16, 0.5));
}

.gps-vector-construction-icon {
  fill: rgba(205, 151, 105, 0.95);
  stroke: #70452d;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.live-mobile-map-constructions {
  pointer-events: none;
}

.live-mobile-map-construction-marker {
  color: #70452d;
  filter: drop-shadow(0 1px 1px rgba(47, 28, 16, 0.5));
}

.live-mobile-map-faction-ai-marker {
  color: #2f8042;
  filter: drop-shadow(0 1px 1px rgba(16, 48, 22, 0.62));
}

.live-mobile-map-faction-ai-heavy {
  color: #b28b31;
}

.live-mobile-map-faction-ai-ring {
  fill: rgba(235, 249, 235, 0.94);
  stroke: currentColor;
  stroke-width: 0.11;
}

.live-mobile-map-faction-ai-head,
.live-mobile-map-faction-ai-body {
  fill: currentColor;
}

.live-mobile-map-construction-icon {
  fill: rgba(205, 151, 105, 0.95);
  stroke: #70452d;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.live-mobile-map-favorite-draft-marker {
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.52));
}

.live-mobile-map-favorite-draft-star {
  fill: #ffe167;
  stroke: #956d00;
  stroke-width: 1.25px;
  vector-effect: non-scaling-stroke;
}

.gps-vector-favorite {
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.46));
}

.live-mobile-map-vector .live-mobile-map-favorite-star {
  fill: #ffd84d;
  stroke: #9b7200;
  stroke-width: 1.2px;
  vector-effect: non-scaling-stroke;
}

.gps-vector-favorite-pin {
  fill: #23633c;
  stroke: #ffffff;
  stroke-width: 1.2px;
  vector-effect: non-scaling-stroke;
}

.gps-vector-favorite-other .gps-vector-favorite-pin {
  fill: #356fba;
}

.gps-vector-favorite-letter {
  fill: #ffffff;
  font-family: system-ui, sans-serif;
  font-weight: 900;
  dominant-baseline: middle;
  pointer-events: none;
}

.gps-vector-favorite-vehicle {
  color: #315f40;
}

.live-mobile-map-favorite-row.is-automatic {
  grid-template-columns: minmax(0, 1fr);
}

.gps-map-empty {
  position: absolute;
  z-index: 12;
  left: 50%;
  top: 43%;
  transform: translate(-50%, -50%);
  width: min(18rem, calc(100vw - 2rem));
  display: grid;
  justify-items: center;
  gap: 0.62rem;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  background: rgba(18, 25, 18, 0.78);
  color: rgba(250, 252, 247, 0.94);
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
}

.gps-map-empty::before {
  content: "";
  width: 2rem;
  height: 2rem;
  border: 3px solid rgba(255, 255, 255, 0.22);
  border-top-color: #2587ff;
  border-radius: 999px;
  animation: gps-waiting-spin 900ms linear infinite;
}

.gps-code-waiting {
  position: absolute;
  z-index: 12;
  left: 50%;
  top: 40%;
  display: none;
  justify-items: center;
  gap: 0.72rem;
  width: min(18rem, calc(100vw - 2rem));
  color: rgba(250, 252, 247, 0.96);
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
  transform: translate(-50%, -50%);
}

.gps-code-waiting span {
  width: 2rem;
  height: 2rem;
  border: 3px solid rgba(255, 255, 255, 0.22);
  border-top-color: #2587ff;
  border-radius: 999px;
  animation: gps-waiting-spin 900ms linear infinite;
}

.gps-code-mode .gps-map-stage {
  background: #11150f;
}

.gps-signal-waiting .gps-map-stage {
  background: #11150f;
}

.gps-signal-waiting .gps-map-canvas,
.gps-signal-waiting .gps-map-stage::after {
  display: none !important;
}

.gps-code-mode .gps-map-canvas,
.gps-code-mode .gps-map-stage::after,
.gps-code-mode .gps-map-empty {
  display: none !important;
}

.gps-code-mode .gps-code-waiting {
  display: grid;
}

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

.gps-turn-card {
  position: absolute;
  z-index: 45;
  left: 0.75rem;
  right: 0.75rem;
  top: calc(0.75rem + env(safe-area-inset-top));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.78rem;
  align-items: center;
  min-height: 4.45rem;
  padding: 0.74rem 0.88rem;
  border-radius: 8px;
  background: rgba(250, 252, 247, 0.97);
  color: #172016;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.32);
}

.gps-explorer {
  position: absolute;
  z-index: 47;
  top: calc(0.75rem + env(safe-area-inset-top));
  left: calc(0.75rem + env(safe-area-inset-left));
  right: auto;
  width: min(18.5rem, calc(100% - 6.25rem - env(safe-area-inset-left) - env(safe-area-inset-right)));
}

.gps-explorer[hidden],
.gps-route-active .gps-explorer {
  display: none !important;
}

.gps-explorer-rail {
  display: grid;
  justify-items: start;
  gap: 0.52rem;
}

.gps-explorer-rail button {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #1d542b;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.gps-explorer-rail button:active {
  transform: scale(0.94);
}

.gps-explorer-rail svg {
  width: 1.62rem;
  height: 1.62rem;
}

.gps-explorer-panel {
  overflow: hidden;
  border-radius: 0.9rem;
  background: rgba(250, 252, 247, 0.98);
  color: #172016;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.34);
}

.gps-explorer-panel header {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  align-items: center;
  min-height: 2.75rem;
  border-bottom: 1px solid rgba(42, 68, 42, 0.14);
}

.gps-explorer-panel header button {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1d542b;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
}

.gps-explorer-panel header strong {
  overflow: hidden;
  padding-right: 0.8rem;
  font-size: 0.94rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gps-explorer-content {
  padding: 0.48rem;
}

.gps-favorite-add-form {
  display: grid;
  gap: 0.52rem;
  padding: 0.28rem;
}

.gps-favorite-add-form > strong {
  color: #172016;
  font-size: 0.88rem;
  font-weight: 900;
}

.gps-favorite-add-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.55rem;
  gap: 0.45rem;
}

.gps-favorite-add-controls select,
.gps-favorite-add-controls input {
  width: 100%;
  min-height: 2.45rem;
  padding: 0 0.62rem;
  border: 1px solid rgba(42, 68, 42, 0.3);
  border-radius: 0.6rem;
  background: #fff;
  color: #172016;
  font: inherit;
  font-size: 0.9rem;
}

.gps-favorite-add-controls input {
  grid-column: 1;
}

.gps-favorite-add-controls > button {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  min-height: 2.45rem;
  place-items: center;
  border: 0;
  border-radius: 0.6rem;
  background: #1d542b;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 900;
}

.gps-favorite-add-controls > button:disabled { opacity: 0.55; }

.gps-explorer-search {
  display: block;
  width: 100%;
  min-height: 2.72rem;
  margin: 0 0 0.42rem;
  padding: 0.64rem 0.72rem;
  border: 1px solid #c8d2c3;
  border-radius: 0.56rem;
  background: #fff;
  color: #172016;
  font: inherit;
  font-size: 0.93rem;
  font-weight: 750;
}

.gps-explorer-list {
  display: grid;
  max-height: 17.2rem;
  gap: 0.3rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.gps-explorer-item {
  display: grid;
  min-height: 3.15rem;
  padding: 0.48rem 0.64rem;
  border: 0;
  border-radius: 0.56rem;
  background: #edf1eb;
  color: #172016;
  text-align: left;
}

.gps-explorer-item:active {
  background: #deeadc;
}

.gps-explorer-item-static {
  cursor: default;
}

.gps-explorer-item-static:active {
  background: #edf1eb;
}

.gps-explorer-favorite-item {
  grid-template-columns: minmax(0, 1fr) 2rem;
  align-items: center;
  gap: 0.42rem;
}

.gps-explorer-favorite-item > div {
  min-width: 0;
}

.gps-explorer-favorite-remove {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgba(104, 50, 42, 0.38);
  border-radius: 0.5rem;
  background: #ffffff;
  color: #803d32;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
}

.gps-explorer-favorite-remove:active {
  background: #f4dfda;
}

.gps-explorer-item strong,
.gps-explorer-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gps-explorer-item strong {
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.16;
}

.gps-explorer-item small {
  margin-top: 0.13rem;
  color: #60705d;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.12;
}

.gps-explorer-empty {
  margin: 0;
  padding: 0.62rem 0.4rem;
  color: #60705d;
  font-size: 0.84rem;
  font-weight: 750;
  text-align: center;
}

.gps-heading-indicator {
  position: absolute;
  z-index: 47;
  top: calc(0.75rem + env(safe-area-inset-top));
  left: calc(0.75rem + env(safe-area-inset-left));
  right: auto;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 999px;
  background: rgba(250, 252, 247, 0.97);
  color: #172016;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  transform: none;
}

.gps-heading-indicator strong {
  font-size: 1.02rem;
  font-weight: 950;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.gps-context-place {
  position: absolute;
  z-index: 47;
  right: calc(1rem + env(safe-area-inset-right));
  bottom: calc(1rem + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 0.42rem;
  max-width: calc(56vw - 1.5rem);
  padding: 0.52rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 999px;
  background: rgba(250, 252, 247, 0.97);
  color: #172016;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.gps-context-place strong {
  overflow: hidden;
  font-size: clamp(0.92rem, 3.8vw, 1.08rem);
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gps-context-place-dot {
  --live-dot-rgb: 116, 124, 116;
  flex: 0 0 auto;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: rgb(var(--live-dot-rgb));
  box-shadow: 0 0 0 0 rgba(var(--live-dot-rgb), 0.4);
}

.gps-context-place.live-presence-single .gps-context-place-dot,
.gps-context-place.live-presence-pair .gps-context-place-dot,
.gps-context-place.live-presence-group .gps-context-place-dot {
  animation: live-pulse 1.8s ease-in-out infinite;
}

.gps-context-place.live-presence-single .gps-context-place-dot {
  --live-dot-rgb: 120, 189, 94;
}

.gps-context-place.live-presence-pair .gps-context-place-dot {
  --live-dot-rgb: 253, 174, 97;
}

.gps-context-place.live-presence-group .gps-context-place-dot {
  --live-dot-rgb: 239, 63, 54;
}

.gps-radio-frequencies {
  position: absolute;
  z-index: 47;
  right: calc(1rem + env(safe-area-inset-right));
  bottom: calc(4.05rem + env(safe-area-inset-bottom));
  max-width: calc(66vw - 1.5rem);
  padding: 0.34rem 0.66rem;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 999px;
  background: rgba(250, 252, 247, 0.97);
  color: #1d542b;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  pointer-events: none;
}

.gps-radio-frequencies strong {
  display: block;
  overflow: hidden;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gps-distance-scale {
  position: absolute;
  z-index: 46;
  left: calc(1rem + env(safe-area-inset-left));
  bottom: calc(1rem + env(safe-area-inset-bottom));
  display: grid;
  gap: 0.2rem;
  color: #172016;
  pointer-events: none;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.92);
}

.gps-distance-scale-label {
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.gps-distance-scale-bar {
  position: relative;
  display: block;
  width: 6rem;
  height: 0.58rem;
  border-bottom: 3px solid rgba(23, 32, 22, 0.92);
}

.gps-distance-scale-bar::before,
.gps-distance-scale-bar::after {
  content: "";
  position: absolute;
  bottom: -3px;
  width: 3px;
  height: 0.58rem;
  background: rgba(23, 32, 22, 0.92);
}

.gps-distance-scale-bar::before {
  left: 0;
}

.gps-distance-scale-bar::after {
  right: 0;
}

.gps-exit-button {
  position: absolute;
  z-index: 48;
  top: calc(0.75rem + env(safe-area-inset-top));
  left: calc(0.75rem + env(safe-area-inset-left));
  right: auto;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #101510;
  font-size: 1.65rem;
  font-weight: 850;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.gps-filter-button {
  position: absolute;
  z-index: 48;
  top: calc(0.75rem + env(safe-area-inset-top));
  right: calc(0.75rem + env(safe-area-inset-right));
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #1d542b;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.gps-filter-button:active {
  transform: scale(0.94);
}

.gps-filter-button svg {
  width: 1.52rem;
  height: 1.52rem;
}

.gps-live-map-button {
  top: calc(4.52rem + env(safe-area-inset-top));
}

.gps-vehicle-filter-panel.live-mobile-map-favorites-panel {
  top: calc(0.75rem + env(safe-area-inset-top));
  left: calc(0.75rem + env(safe-area-inset-left));
  right: calc(0.75rem + env(safe-area-inset-right));
  width: auto;
  max-width: none;
}

.live-mobile-map-favorites-content {
  position: relative;
  padding: 0.9rem;
}

.live-mobile-map-modal.is-favorite-form-open .live-mobile-map-filter-button,
.live-mobile-map-modal.is-favorite-form-open .live-mobile-map-locate-button,
.live-mobile-map-modal.is-favorite-form-open .live-mobile-map-gps-button {
  display: none;
}

.live-mobile-map-favorite-form {
  display: grid;
  gap: 0.52rem;
}

.live-mobile-map-favorite-title {
  color: #172016;
  font-size: 0.88rem;
  font-weight: 900;
}

.live-mobile-map-favorite-cancel {
  display: grid;
  place-items: center;
  min-height: 2.45rem;
  padding: 0;
  border: 0;
  border-radius: 0.6rem;
  background: #c83a42;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 900;
}

.live-mobile-map-favorite-cancel:active {
  transform: translateY(1px);
  background: #a92b33;
}

.live-mobile-map-favorite-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.55rem 2.55rem;
  gap: 0.45rem;
}

.live-mobile-map-favorite-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.55rem;
  gap: 0.45rem;
  min-width: 0;
}

.live-mobile-map-favorite-controls select,
.live-mobile-map-favorite-custom-field {
  width: 100%;
  min-height: 2.45rem;
  border: 1px solid rgba(42, 68, 42, 0.3);
  border-radius: 0.6rem;
  background: #fff;
  color: #172016;
  font: inherit;
  font-size: 0.9rem;
}

.live-mobile-map-favorite-controls select {
  grid-column: 2;
  grid-row: 1;
  padding: 0;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23172016' stroke-linecap='round' stroke-linejoin='round' stroke-width='2'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 1rem;
  color: transparent;
  font-size: 0;
}

.live-mobile-map-favorite-inputs.is-base select {
  grid-column: 1 / -1;
  padding: 0 0.62rem;
  appearance: auto;
  background-image: none;
  color: #172016;
  font-size: 0.9rem;
}

.live-mobile-map-favorite-custom-field {
  grid-column: 1;
  grid-row: 1;
  overflow: hidden;
}

.live-mobile-map-favorite-custom-field input {
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0 0.62rem;
  border: 0;
  background: #fff;
  color: #172016;
  font: inherit;
  font-size: 0.9rem;
}

.live-mobile-map-favorite-controls > button[type="submit"] {
  display: grid;
  place-items: center;
  min-height: 2.45rem;
  border: 0;
  border-radius: 0.6rem;
  background: #1d542b;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 900;
}

.live-mobile-map-favorite-controls > button[type="submit"]:disabled {
  opacity: 0.55;
}

.live-mobile-map-companion-confirm {
  position: absolute;
  inset: 0.5rem;
  z-index: 2;
  display: grid;
  gap: 0.8rem;
  padding: 0.9rem;
  border: 1px solid rgba(42, 68, 42, 0.3);
  border-radius: 0.72rem;
  background: #f5f7f2;
  color: #172016;
  box-shadow: 0 0.55rem 1.4rem rgba(0, 0, 0, 0.2);
}

.live-mobile-map-companion-confirm[hidden] {
  display: none;
}

.live-mobile-map-companion-confirm > strong {
  font-size: 0.95rem;
  line-height: 1.35;
}

.live-mobile-map-companion-confirm-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.live-mobile-map-companion-confirm-actions button {
  min-height: 2.55rem;
  border: 1px solid rgba(42, 68, 42, 0.3);
  border-radius: 0.62rem;
  background: #e8ece5;
  color: #172016;
  font: inherit;
  font-weight: 900;
}

.live-mobile-map-companion-confirm-actions button:last-child {
  border-color: #1d542b;
  background: #1d542b;
  color: #fff;
}

.live-mobile-map-companion-confirm.is-pending > strong::before {
  content: "";
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  margin-right: 0.5rem;
  border: 0.16rem solid rgba(29, 84, 43, 0.25);
  border-top-color: #1d542b;
  border-radius: 50%;
  vertical-align: -0.1rem;
  animation: live-map-companion-spin 0.7s linear infinite;
}

@keyframes live-map-companion-spin {
  to { transform: rotate(360deg); }
}

.live-mobile-map-favorites-list {
  display: grid;
  gap: 0.38rem;
  margin-top: 0.82rem;
}

.live-mobile-map-favorite-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2rem;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.4rem;
  padding: 0.62rem;
  border: 1px solid rgba(42, 68, 42, 0.18);
  border-radius: 0.6rem;
  background: rgba(237, 241, 235, 0.78);
  color: #172016;
}

.live-mobile-map-favorite-row strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 900;
}

.live-mobile-map-favorite-focus {
  min-width: 0;
  min-height: 2rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.live-mobile-map-favorite-focus:active {
  opacity: 0.62;
}

.live-mobile-map-favorite-remove {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: #6e2921;
  cursor: pointer;
  font: inherit;
  font-size: 1.45rem;
  line-height: 1;
}

.live-mobile-map-favorite-remove:active {
  background: rgba(160, 51, 38, 0.12);
}

.live-mobile-map-favorite-remove:disabled {
  opacity: 0.5;
}

.gps-vehicle-filter-panel {
  position: absolute;
  z-index: 48;
  top: calc(8.29rem + env(safe-area-inset-top));
  right: calc(0.75rem + env(safe-area-inset-right));
  width: min(15.8rem, calc(100% - 1.5rem - env(safe-area-inset-left) - env(safe-area-inset-right)));
  max-height: calc(100% - 9.1rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 0.9rem;
  background: rgba(250, 252, 247, 0.98);
  color: #172016;
  color-scheme: light;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.34);
}

.gps-vehicle-filter-panel header {
  min-height: 2.7rem;
  padding: 0.72rem 0.88rem;
  border-bottom: 1px solid rgba(42, 68, 42, 0.14);
}

.gps-vehicle-filter-panel header strong {
  font-size: 0.94rem;
  font-weight: 900;
}

.live-mobile-map-vehicle-filter-close {
  display: block;
  width: 100%;
  min-height: 2.7rem;
  padding: 0.72rem 0.88rem;
  border: 0;
  border-bottom: 1px solid rgba(42, 68, 42, 0.14);
  background: transparent;
  color: #172016;
  cursor: pointer;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 900;
  text-align: left;
}

.live-mobile-map-vehicle-filter-close:active {
  background: #edf1eb;
}

.gps-vehicle-filter-content {
  padding: 0.54rem 0.7rem 0.7rem;
}

.gps-vehicle-filter-panel details {
  position: relative;
  overflow: hidden;
}

.gps-vehicle-filter-panel summary {
  display: flex;
  align-items: center;
  min-height: 2.45rem;
  position: relative;
  cursor: default;
  list-style: none;
  color: #172016;
  font-size: 0.88rem;
  font-weight: 900;
}

.gps-vehicle-filter-panel summary::-webkit-details-marker {
  display: none;
}

.gps-vehicle-filter-panel summary {
  pointer-events: auto;
}

.gps-vehicle-filter-section > summary {
  padding: 0 0.18rem;
  border-radius: 0;
  background: transparent;
  font-size: 0.98rem;
}

.gps-vehicle-filter-section > summary::before {
  display: none;
}

.gps-vehicle-filter-sources {
  display: grid;
  gap: 0;
  padding: 0.36rem 0 0 1.08rem;
}

.gps-vehicle-filter-source {
  position: relative;
  padding: 0 0.18rem;
}

.gps-vehicle-filter-source > summary {
  font-size: 0.84rem;
}

.gps-vehicle-filter-section:has(> summary > .gps-vehicle-filter-parent-toggle),
.gps-vehicle-filter-source:has(> summary > .gps-vehicle-filter-parent-toggle) {
  position: relative;
}

.gps-vehicle-filter-section:has(> summary > .gps-vehicle-filter-parent-toggle) > summary,
.gps-vehicle-filter-source:has(> summary > .gps-vehicle-filter-parent-toggle) > summary {
  padding-left: 1.74rem;
}

.gps-vehicle-filter-section:has(> summary > .gps-vehicle-filter-parent-toggle) > summary::before {
  display: none;
}

.gps-vehicle-filter-parent-toggle {
  position: absolute;
  z-index: 4;
  top: 0.68rem;
  left: 0.35rem;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  accent-color: #2f8139;
  cursor: pointer;
}

.gps-vehicle-filter-parent-toggle.is-partial {
  accent-color: #7e8982;
}

.gps-vehicle-filter-parent-label {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 1.86rem;
  left: 1.52rem;
  width: auto;
  height: 2.45rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.gps-vehicle-filter-parent-label:focus-visible {
  outline: 2px solid #2f8139;
  outline-offset: -0.1rem;
}

.gps-vehicle-filter-expand {
  position: absolute;
  z-index: 5;
  top: 0.48rem;
  right: 0.18rem;
  display: grid;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  background: transparent;
  color: #557253;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1;
  place-items: center;
  pointer-events: auto;
  transition: transform 140ms ease-out;
}

.gps-vehicle-filter-panel details[open] > summary > .gps-vehicle-filter-expand {
  transform: rotate(90deg);
}

.gps-vehicle-filter-groups {
  display: grid;
  gap: 0.2rem;
  padding: 0 0.1rem 0.42rem 1.5rem;
}

.gps-building-filter-group > summary {
  padding-left: 1.74rem !important;
}

.gps-building-filter-group > summary > .gps-vehicle-filter-parent-toggle {
  left: 0.35rem;
}

.gps-building-filter-group > summary > .gps-vehicle-filter-parent-label {
  left: 1.52rem;
}

.gps-building-filter-group {
  padding: 0;
}

.gps-vehicle-filter-section > .gps-map-filter-favorites,
.gps-vehicle-filter-section > .gps-map-filter-destinations {
  padding-left: 1.5rem;
}

.gps-vehicle-filter-section > .gps-map-filter-construction-section {
  margin: 0.2rem 0 0 1.5rem;
}

.gps-map-filter-construction-list {
  padding-left: 1.48rem;
}

.gps-vehicle-filter-groups label {
  display: flex;
  align-items: center;
  gap: 0.46rem;
  min-height: 2rem;
  color: #172016;
  font-size: 0.8rem;
  font-weight: 800;
}

.gps-vehicle-filter-groups .gps-building-filter-type {
  position: relative;
  padding-left: 1.74rem;
}

.gps-vehicle-filter-groups .gps-building-filter-type > input {
  position: absolute;
  top: 0.48rem;
  left: 0.35rem;
}

.gps-vehicle-filter-groups input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  accent-color: #2f8139;
}

.gps-map-filter-favorites,
.gps-map-filter-destinations {
  display: grid;
  gap: 0.3rem;
  padding: 0.36rem 0 0;
}

.gps-map-filter-favorite-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2rem;
  align-items: center;
  gap: 0.28rem;
  min-height: 2rem;
  padding: 0;
}

.gps-map-filter-favorite-row > label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.44rem;
  color: #172016;
  font-size: 0.8rem;
  font-weight: 800;
}

.gps-map-filter-favorite-row input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  accent-color: #2f8139;
}

.gps-map-filter-favorite-label {
  order: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gps-map-filter-favorite-swatch {
  order: 2;
  flex: 0 0 auto;
  width: 0.68rem;
  height: 0.68rem;
  border: 1px solid rgba(23, 32, 22, 0.32);
  border-radius: 999px;
  background: currentColor;
}

.gps-map-filter-favorite-swatch-base { color: #23633c; }
.gps-map-filter-favorite-swatch-other { color: #356fba; }
.gps-map-filter-favorite-swatch-vehicle { color: #315f40; }
.gps-map-filter-favorite-swatch-construction { color: #70452d; }

.gps-map-filter-favorite-focus {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1;
}

.gps-map-filter-favorite-focus { color: #1d542b; }
.gps-map-filter-favorite-focus:active { background: rgba(45, 98, 59, 0.12); }

.gps-map-filter-destination {
  display: grid;
  width: 100%;
  min-height: 2.8rem;
  gap: 0.08rem;
  padding: 0.46rem 0.54rem;
  border: 1px solid #d4ddd0;
  border-radius: 0.58rem;
  background: rgba(237, 241, 235, 0.76);
  color: #172016;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.gps-map-filter-destination strong,
.gps-map-filter-destination small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gps-map-filter-destination strong { font-size: 0.82rem; font-weight: 900; }
.gps-map-filter-destination small { color: #60705d; font-size: 0.73rem; font-weight: 750; }
.gps-map-filter-destination:active { background: #deeadc; }

.gps-map-filter-empty {
  margin: 0;
  padding: 0.54rem 0.32rem;
  color: #60705d;
  font-size: 0.8rem;
  font-weight: 750;
}

.gps-vehicle-filter-swatch {
  flex: 0 0 auto;
  width: 0.68rem;
  height: 0.68rem;
  border: 1px solid rgba(23, 32, 22, 0.32);
  border-radius: 999px;
  background: currentColor;
}

.gps-vehicle-filter-swatch-spawns {
  color: #f08c1a;
}

.gps-vehicle-filter-swatch-wrecks {
  color: #6b7280;
}

.gps-special-event-filter-swatch {
  flex: 0 0 auto;
  width: 0.76rem;
  height: 0.62rem;
  border: 1px solid rgba(23, 32, 22, 0.32);
  border-radius: 0.16rem;
  background: currentColor;
}

.gps-special-event-filter-swatch-heli_crash {
  color: #c84336;
}

.gps-special-event-filter-swatch-military_convoy {
  color: #a96828;
}

.gps-lumber-pile-filter-swatch {
  flex: 0 0 auto;
  width: 0.78rem;
  height: 0.58rem;
  border: 1px solid rgba(76, 47, 27, 0.58);
  border-radius: 0.13rem;
  background: repeating-linear-gradient(0deg, #94653a 0 0.12rem, #f4d7a9 0.12rem 0.17rem);
}

.gps-route-active .gps-context-place,
.gps-route-active .gps-radio-frequencies,
.gps-route-active .gps-distance-scale {
  bottom: calc(6.1rem + env(safe-area-inset-bottom));
}

.gps-route-active .gps-radio-frequencies {
  bottom: calc(9.15rem + env(safe-area-inset-bottom));
}

.gps-turn-icon {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 999px;
  background: #2587ff;
  color: #fff;
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
  transform-origin: center;
  transition: transform 160ms ease-out;
}

.gps-turn-card strong {
  display: block;
  color: #111910;
  font-size: clamp(1.02rem, 4.2vw, 1.34rem);
  font-weight: 900;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.gps-turn-card small {
  display: block;
  margin-top: 0.18rem;
  color: #51604d;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
}

.gps-turn-card--sign {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.86rem;
  min-height: 5.05rem;
  padding: 1.26rem 0.92rem 0.62rem;
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-radius: 2px;
  background: #1c5d9c;
  color: #fff;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.42);
}

.gps-turn-card--sign::before {
  content: "SUIVRE";
  position: absolute;
  top: 0.34rem;
  left: 0.92rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
}

.gps-turn-card--sign .gps-turn-icon {
  width: auto;
  height: auto;
  min-width: 3rem;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 3.1rem;
  font-weight: 900;
}

.gps-turn-card--sign .gps-turn-content {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.85rem;
  min-width: 0;
}

.gps-turn-card--sign strong,
.gps-turn-card--sign small {
  display: block;
  margin: 0;
  color: #fff;
  line-height: 1;
}

.gps-turn-card--sign strong {
  min-width: 0;
  font-size: clamp(1.28rem, 5.4vw, 1.8rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gps-turn-card--sign small {
  flex: 0 0 auto;
  font-size: clamp(1.25rem, 5vw, 1.7rem);
  font-weight: 900;
}

.gps-turn-card--settlement {
  display: block;
  min-height: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.gps-turn-card--settlement .gps-turn-icon,
.gps-turn-card--settlement small {
  display: none;
}

.gps-turn-card--settlement strong {
  position: relative;
  display: inline-grid;
  min-width: 9rem;
  min-height: 2.95rem;
  place-items: center;
  padding: 0.38rem 1rem;
  border: 3px solid #121812;
  border-radius: 0;
  background: #fff;
  color: #111710;
  font-size: clamp(1rem, 4.5vw, 1.35rem);
  text-align: center;
}

.gps-turn-card--exit strong::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 50%;
  left: -0.28rem;
  width: calc(100% + 0.56rem);
  height: 0.3rem;
  background: #e53d32;
  transform: rotate(35deg);
  transform-origin: center;
}

.gps-turn-card--main-road .gps-turn-icon {
  background: #fff;
  color: #e4b527;
  font-size: 2.25rem;
  text-shadow:
    -1px -1px 0 #1f2b1c,
    1px -1px 0 #1f2b1c,
    -1px 1px 0 #1f2b1c,
    1px 1px 0 #1f2b1c;
}

.gps-turn-card--yield .gps-turn-icon {
  background: #fff;
  color: #d83f35;
  font-size: 2.35rem;
  font-weight: 950;
  text-shadow:
    -1px -1px 0 #9c201b,
    1px -1px 0 #9c201b,
    -1px 1px 0 #9c201b,
    1px 1px 0 #9c201b;
}

.gps-turn-card--yield strong {
  color: #fff5f2;
}

.gps-turn-card--yield small {
  color: #ffe1da;
  font-weight: 850;
}

.gps-turn-card--rail-crossing .gps-turn-icon {
  background: #fff;
  color: #1d1d1d;
  font-size: 1.9rem;
  font-weight: 950;
}

.gps-turn-card--rail-crossing strong {
  color: #fff1b3;
}

.gps-danger-alert {
  position: absolute;
  z-index: 46;
  left: 0.75rem;
  right: 0.75rem;
  top: calc(5.9rem + env(safe-area-inset-top));
  padding: 0.56rem 0.76rem;
  border: 1px solid rgba(170, 75, 27, 0.42);
  border-radius: 8px;
  background: rgba(255, 244, 223, 0.98);
  color: #5e2c12;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.gps-danger-alert strong,
.gps-danger-alert small {
  display: block;
}

.gps-danger-alert strong {
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.16;
}

.gps-danger-alert small {
  margin-top: 0.14rem;
  color: #82401a;
  font-size: 0.8rem;
  font-weight: 800;
}

.gps-report-controls {
  position: absolute;
  z-index: 47;
  top: calc(8.41rem + env(safe-area-inset-top));
  left: calc(0.75rem + env(safe-area-inset-left));
  right: auto;
  display: grid;
  justify-items: start;
  gap: 0.46rem;
  width: 3.25rem;
}

.gps-report-controls button {
  min-height: 2.48rem;
  border: 0;
  border-radius: 8px;
  padding: 0.48rem 0.42rem;
  color: #fff;
  font-size: 0.83rem;
  font-weight: 900;
  line-height: 1.05;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.gps-danger-button {
  display: grid;
  place-items: center;
  width: 3.25rem;
  min-height: 3.25rem !important;
  height: 3.25rem;
  padding: 0 !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.96);
  color: #d85635 !important;
  font-size: 1.85rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
  transition: width 180ms ease, padding 180ms ease, transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.gps-danger-button.is-confirmed {
  width: 8.8rem;
  padding: 0 0.92rem !important;
  background: #d85635;
  color: #fff !important;
  font-size: 0.82rem !important;
  transform: scale(1.04);
  animation: gps-danger-confirmation 260ms ease-out;
}

.gps-danger-button.is-confirmed span {
  white-space: nowrap;
}

@keyframes gps-danger-confirmation {
  from { transform: scale(0.88); }
  to { transform: scale(1.04); }
}

.gps-route-problem-button {
  display: grid;
  place-items: center;
  width: 3.25rem;
  min-height: 3.25rem !important;
  height: 3.25rem;
  padding: 0 !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.96);
  color: #3e6f9e !important;
  font-size: 1rem !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
  justify-self: start;
}

.gps-route-problem-button svg {
  width: 1.68rem;
  height: 1.68rem;
}

.gps-report-controls button:disabled {
  opacity: 0.52;
}

.gps-zoom-controls {
  position: absolute;
  z-index: 46;
  right: 0.82rem;
  top: 50%;
  display: grid;
  gap: 0.68rem;
  transform: translateY(-50%);
}

.gps-zoom-controls button {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #101510;
  font-size: 1.7rem;
  font-weight: 650;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.gps-code-panel,
.gps-search-bar,
.gps-destination-active {
  position: absolute;
  z-index: 45;
  left: 0.75rem;
  right: 0.75rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: end;
  padding: 0.62rem;
  border-radius: 8px;
  background: rgba(250, 252, 247, 0.97);
  color: #172016;
  box-shadow: 0 -10px 36px rgba(0, 0, 0, 0.34);
}

.gps-code-panel,
.gps-search-bar,
.gps-destination-active {
  bottom: calc(1.2rem + env(safe-area-inset-bottom));
}

.gps-code-panel label,
.gps-search-bar label {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
}

.gps-code-panel span,
.gps-search-bar span {
  color: #65715f;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

.gps-search-bar span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.gps-code-panel input,
.gps-search-bar input {
  width: 100%;
  min-width: 0;
  border: 1px solid #c8d2c3;
  border-radius: 8px;
  background: #ffffff;
  color: #152014;
  padding: 0.78rem 0.86rem;
  font-size: 1rem;
  font-weight: 750;
}

.gps-search-bar input {
  border-color: transparent;
  padding: 0.86rem 0.9rem;
}

.gps-code-panel button,
.gps-search-bar button,
.gps-destination-active button {
  min-height: 2.95rem;
  border: 0;
  border-radius: 8px;
  background: #2587ff;
  color: #fff;
  padding: 0.74rem 0.92rem;
  font-weight: 900;
  white-space: nowrap;
}

.gps-code-panel button:disabled,
.gps-search-bar button:disabled,
.gps-destination-active button:disabled,
.gps-zoom-controls button:disabled {
  opacity: 0.52;
}

.gps-code-panel.is-error {
  border-color: rgba(215, 100, 78, 0.92);
  background: rgba(255, 231, 226, 0.98);
}

.gps-code-panel input.is-error {
  border-color: rgba(215, 100, 78, 0.95);
  background: rgba(255, 241, 238, 0.98);
}

.gps-destination-active {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.gps-destination-active strong {
  min-width: 0;
  color: #142013;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.18;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gps-destination-active small {
  display: block;
  margin-top: 0.16rem;
  color: #52604f;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.12;
}

.gps-destination-active button {
  padding-inline: 0.92rem;
  background: #2587ff;
  font-size: 0.94rem;
  line-height: 1.1;
}

.gps-destination-suggestions {
  position: absolute;
  z-index: 46;
  left: 0.75rem;
  right: 0.75rem;
  bottom: calc(5.35rem + env(safe-area-inset-bottom));
  display: grid;
  gap: 0.28rem;
  padding: 0.38rem;
  border: 1px solid rgba(76, 91, 72, 0.2);
  border-radius: 10px;
  background: rgba(250, 252, 247, 0.98);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.24);
}

.gps-destination-suggestions button {
  min-height: 2.35rem;
  border: 0;
  border-radius: 7px;
  background: #edf1eb;
  color: #172016;
  font-size: 0.96rem;
  font-weight: 850;
  text-align: left;
  padding: 0.55rem 0.7rem;
}
}

.gps-message {
  position: absolute;
  z-index: 46;
  left: 0.75rem;
  right: 0.75rem;
  bottom: calc(5.25rem + env(safe-area-inset-bottom));
  margin: 0;
  border-radius: 8px;
  background: rgba(250, 252, 247, 0.96);
  color: #51604d;
  padding: 0.78rem 0.86rem;
  font-size: 0.86rem;
  font-weight: 850;
  box-shadow: 0 -10px 36px rgba(0, 0, 0, 0.28);
}

.gps-message[hidden],
.gps-message:empty {
  display: none;
}

.gps-message.is-success {
  color: #4d8f34;
}

.gps-message.is-error {
  color: #b6412d;
}

.patch-days {
  display: grid;
  gap: 1rem;
}

.request-status-panel[hidden] {
  display: none;
}

.request-status-heading {
  padding-top: 0.35rem;
}

.request-status-card {
  display: grid;
  gap: 0.72rem;
  margin-bottom: 1rem;
}

.request-status-item {
  display: grid;
  gap: 0.18rem;
  padding-top: 0.72rem;
  border-top: 1px solid rgba(51, 64, 51, 0.72);
}

.request-status-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.request-status-item strong {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.25;
}

.request-status-item span {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.bug-report-heading {
  padding-top: 0.35rem;
}

.bug-report-panel {
  margin-top: var(--content-start-gap);
  margin-bottom: 1rem;
}

.bug-report-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  list-style: none;
}

.bug-report-summary::-webkit-details-marker {
  display: none;
}

.bug-report-summary span {
  color: var(--text);
  font-size: 1rem;
  font-weight: 850;
}

.bug-report-summary strong {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 0.42rem 0.68rem;
  font-size: 0.82rem;
}

.bug-report-panel[open] .bug-report-summary {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(51, 64, 51, 0.72);
  margin-bottom: 0.85rem;
}

.bug-report-panel[open] .bug-report-summary strong {
  color: var(--text);
}

.bug-report-panel[open] .bug-report-summary strong {
  font-size: 0;
}

.bug-report-panel[open] .bug-report-summary strong::before {
  content: "Fermer";
  font-size: 0.82rem;
}

.bug-report-form {
  display: grid;
  gap: 0.85rem;
}

.bug-report-form label {
  display: grid;
  gap: 0.35rem;
}

.bug-report-form span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.bug-report-form input,
.bug-report-form select,
.bug-report-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 19, 15, 0.86);
  color: var(--text);
  padding: 0.82rem 0.9rem;
}

.bug-report-form textarea {
  min-height: 7rem;
  resize: vertical;
}

.bug-report-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.bug-report-actions button {
  border: 1px solid var(--green);
  border-radius: 8px;
  background: rgba(128, 185, 92, 0.14);
  color: var(--text);
  padding: 0.78rem 1rem;
  font-weight: 800;
}

.bug-report-actions p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.bug-report-actions p.is-success {
  color: var(--green);
}

.bug-report-actions p.is-error {
  color: #ff8a70;
}

.bug-report-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.patch-request-link {
  text-decoration: none;
}

.request-form-intro {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.5;
}

.server-companion {
  display: grid;
  gap: 0.6rem;
}

.server-companion .eyebrow {
  margin: 0;
}

.server-companion h2,
.server-feature-card h2 {
  margin: 0;
}

.server-companion p:last-child,
.server-feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.server-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.server-feature-card {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.server-specifications-list {
  display: grid;
  margin: 0;
}

.server-specifications-list > div {
  display: grid;
  gap: 0.18rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--line);
}

.server-specifications-list > div:first-child {
  padding-top: 0;
}

.server-specifications-list > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.server-specifications-list dt {
  font-weight: 800;
}

.server-specifications-list dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.patch-day {
  display: grid;
  gap: 0.75rem;
}

.patch-day-collapsible {
  display: block;
}

.patch-day-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  list-style: none;
}

.patch-day-summary::-webkit-details-marker {
  display: none;
}

.patch-day-summary span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 0.42rem 0.68rem;
  font-size: 0.82rem;
  font-weight: 850;
  white-space: nowrap;
}

.patch-day-collapsible[open] .patch-day-summary {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(51, 64, 51, 0.72);
  margin-bottom: 0.75rem;
}

.patch-day h2,
.patch-entry h3 {
  margin: 0;
  letter-spacing: 0;
}

.patch-day h2 {
  font-size: clamp(1.25rem, 3vw, 1.7rem);
}

.patch-entry-list {
  display: grid;
  gap: 0;
}

.patch-entry {
  display: grid;
  grid-template-columns: minmax(5.6rem, 0.34fr) minmax(0, 1fr);
  gap: 0.9rem;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(51, 64, 51, 0.72);
}

.patch-entry:first-child {
  border-top: 0;
}

.patch-entry-meta {
  display: grid;
  align-content: start;
  gap: 0.28rem;
}

.patch-entry-meta time {
  color: var(--green);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.patch-entry-meta span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.patch-entry-body {
  display: grid;
  gap: 0.32rem;
  min-width: 0;
}

.patch-entry-body h3 {
  font-size: 1rem;
}

.patch-entry-body p {
  margin: 0;
  color: var(--text);
}

.patch-entry-body strong {
  color: var(--muted);
  font-size: 0.88rem;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.day-row,
.leader-row,
.ranking-row {
  display: grid;
  grid-template-columns: minmax(6rem, 1fr) minmax(8rem, 2fr) minmax(4rem, auto);
  align-items: center;
  gap: 0.75rem;
  min-height: 2.6rem;
  padding: 0.55rem 0;
  border-top: 1px solid rgba(51, 64, 51, 0.7);
}

.day-row:first-child,
.leader-row:first-child,
.ranking-row:first-child {
  border-top: 0;
}

.bar-track {
  height: 0.72rem;
  overflow: hidden;
  border-radius: 999px;
  background: #293229;
}

.bar-fill {
  width: var(--bar, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--green));
  background-position: left center;
  background-size: var(--bar-bg-size, 100%) 100%;
}

.ranking-row.is-negative .bar-fill {
  background: linear-gradient(90deg, var(--green), var(--gold), var(--red));
  background-position: left center;
  background-size: var(--bar-bg-size, 100%) 100%;
}

.value {
  text-align: right;
  font-weight: 700;
}

.ranking-player {
  min-width: 0;
}

.ranking-player small {
  display: block;
  margin-top: 0.16rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
}

.ranking-player-link {
  color: var(--text);
  text-decoration: none;
}

.ranking-player-link:hover,
.ranking-player-link:focus-visible {
  color: var(--green);
  outline: none;
}

.ranking-card {
  padding: 1rem;
}

.ranking-title {
  margin-bottom: 0.6rem;
}

.player-card {
  display: block;
  padding: 1rem;
  color: inherit;
  text-decoration: none;
}

.player-card.is-openable:hover,
.player-card.is-openable:focus-visible {
  border-color: var(--green);
  outline: none;
}

.player-roster-card {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(23, 28, 23, 0.92);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 16px 36px var(--shadow);
}

.player-roster-card:hover,
.player-roster-card:focus-visible {
  border-color: var(--green);
  outline: none;
}

.player-roster-card.is-disabled {
  color: var(--muted);
}

.player-roster-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
}

.player-roster-top h3 {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 1.15rem;
  line-height: 1.2;
}

.player-roster-top span,
.player-roster-empty {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.player-name {
  color: var(--text);
  font-size: 1rem;
  text-transform: none;
}

.player-link {
  display: block;
  margin-bottom: 0.8rem;
  text-decoration: none;
}

.player-name-label {
  display: block;
  margin-bottom: 0.8rem;
}

.player-link:hover,
.player-link:focus-visible {
  color: var(--green);
  outline: none;
}

.stat-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.stat-pills span {
  min-width: 0;
  padding: 0.55rem;
  border: 1px solid rgba(51, 64, 51, 0.8);
  border-radius: 8px;
  background: rgba(32, 39, 31, 0.75);
  color: var(--muted);
  font-size: 0.85rem;
}

.stat-pills strong {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
}

.player-profile {
  margin-top: 1.15rem;
  scroll-margin-top: 9rem;
}

.player-profile.content-start {
  margin-top: var(--content-start-gap);
}

.player-profile[hidden] {
  display: none;
}

.player-page {
  display: grid;
  gap: 1.4rem;
}

.equipment-page {
  gap: 1.15rem;
}

.profile-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0 1rem;
  border-bottom: 1px solid rgba(51, 64, 51, 0.85);
}

.profile-head h2,
.profile-block h3 {
  margin: 0;
  letter-spacing: 0;
}

.profile-head h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.profile-head p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.profile-statline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(51, 64, 51, 0.85);
  border-bottom: 1px solid rgba(51, 64, 51, 0.85);
}

.profile-statline div {
  min-width: 0;
  padding: 0.85rem 1rem 0.85rem 0;
}

.profile-statline strong {
  display: block;
  color: var(--text);
  font-size: clamp(1.25rem, 3vw, 1.85rem);
  line-height: 1.08;
}

.profile-statline span {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
}

.profile-block {
  display: grid;
  gap: 0.55rem;
  padding-top: 0.35rem;
}

.profile-block h3 {
  color: var(--muted);
  font-size: 0.92rem;
  text-transform: uppercase;
}

.profile-block-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
}

.profile-block-heading span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: right;
}

.profile-subheading {
  margin-top: 0.15rem;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
}

.combat-card-list {
  display: grid;
  gap: 0.55rem;
}

.profile-combat-card {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(51, 64, 51, 0.78);
  border-radius: 8px;
  background: rgba(22, 29, 22, 0.72);
}

.profile-combat-lines {
  display: grid;
  gap: 0.5rem;
  margin: 0;
}

.profile-combat-lines div,
.profile-combat-details span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.9rem;
  min-width: 0;
}

.profile-combat-lines dt,
.profile-combat-details em,
.profile-combat-stats em {
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.profile-combat-lines dd {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
  text-align: right;
}

.profile-combat-issue-victory dd {
  color: var(--green);
}

.profile-combat-issue-defeat dd {
  color: #e56f5e;
}

.profile-combat-issue-neutral dd {
  color: var(--yellow);
}

.profile-combat-stats {
  display: grid;
  gap: 0.45rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(51, 64, 51, 0.72);
}

.profile-combat-stats span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.9rem;
  min-width: 0;
}

.profile-combat-stats strong,
.profile-combat-details strong {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.22;
  overflow-wrap: anywhere;
  text-align: right;
}

.profile-combat-details {
  display: grid;
  gap: 0.4rem;
}

.badge-profile {
  padding-bottom: 0.25rem;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.player-mini-biography {
  max-width: 54rem;
  margin: 0.45rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(51, 64, 51, 0.72);
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.65;
}

.badge-chip {
  --badge-tone: #b77a46;
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  border: 1px solid var(--badge-tone);
  border-radius: 999px;
  background: rgba(22, 29, 22, 0.78);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--badge-tone) 18%, transparent), transparent 68%),
    rgba(22, 29, 22, 0.78);
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.badge-bronze {
  --badge-tone: #b87848;
}

.badge-silver {
  --badge-tone: #b9c1c7;
}

.badge-gold {
  --badge-tone: #d9b44a;
}

.badge-medal {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 1px solid var(--badge-tone);
  border-radius: 999px;
  background: var(--badge-tone);
  background:
    radial-gradient(circle at 32% 25%, rgba(255, 255, 255, 0.38), transparent 30%),
    linear-gradient(145deg, color-mix(in srgb, var(--badge-tone) 88%, #ffffff 12%), color-mix(in srgb, var(--badge-tone) 68%, #050705));
  box-shadow: inset 0 -0.2rem 0.55rem rgba(0, 0, 0, 0.22), 0 0.35rem 0.85rem rgba(0, 0, 0, 0.24);
}

.badge-medal svg {
  width: 1.62rem;
  height: 1.62rem;
}

.badge-popover {
  position: absolute;
  bottom: calc(100% + 0.45rem);
  left: 50%;
  z-index: 6;
  width: max-content;
  max-width: min(12rem, calc(100vw - 1rem));
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--badge-tone);
  border-radius: 6px;
  background: rgba(16, 19, 15, 0.96);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  box-shadow: 0 10px 24px var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(calc(-50% + var(--badge-popover-offset, 0px)), 0.25rem);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.badge-popover strong {
  display: block;
  white-space: nowrap;
}

.badge-chip:hover .badge-popover,
.badge-chip:focus-visible .badge-popover,
.badge-chip.is-active .badge-popover {
  opacity: 1;
  transform: translate(calc(-50% + var(--badge-popover-offset, 0px)), 0);
}

.badge-chip:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(128, 185, 92, 0.34);
}

.weapon-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
}

.weapon-profile-card {
  display: grid;
  align-content: start;
  gap: 0.52rem;
  min-width: 0;
  padding: 0.78rem 0.85rem;
  border: 1px solid rgba(51, 64, 51, 0.78);
  border-radius: 8px;
  background: rgba(22, 29, 22, 0.72);
}

.weapon-profile-name {
  min-width: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.weapon-profile-details {
  display: grid;
  gap: 0.34rem;
}

.weapon-profile-details span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.55rem;
  min-width: 0;
}

.weapon-profile-details em {
  min-width: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.12;
  text-transform: uppercase;
}

.weapon-profile-details strong {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.14;
  text-align: right;
  white-space: nowrap;
}

.craft-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.craft-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.68rem 0.72rem;
  border: 1px solid rgba(51, 64, 51, 0.78);
  border-radius: 8px;
  background: rgba(22, 29, 22, 0.72);
}

.craft-card strong {
  min-width: 0;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.craft-card span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 900;
  white-space: nowrap;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border-top: 1px solid rgba(51, 64, 51, 0.85);
  border-bottom: 1px solid rgba(51, 64, 51, 0.85);
}

.stats-table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.kill-method-table {
  min-width: 28rem;
}

.shot-efficiency-table {
  min-width: 30rem;
}

.shot-summary-card {
  min-width: 0;
  padding: 0.82rem 0.9rem;
  border: 1px solid rgba(51, 64, 51, 0.82);
  border-radius: 8px;
  background: rgba(22, 29, 22, 0.74);
}

.shot-summary-list {
  display: grid;
  gap: 0.52rem;
  margin: 0;
}

.shot-summary-list div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.7rem;
  min-width: 0;
}

.shot-summary-list dt {
  min-width: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.shot-summary-list dd {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 900;
  white-space: nowrap;
}

.death-method-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
}

.death-method-group:only-child {
  grid-column: 1 / -1;
}

.death-method-group {
  display: grid;
  gap: 0.62rem;
  min-width: 0;
  padding: 0.82rem 0.9rem;
  border: 1px solid rgba(51, 64, 51, 0.82);
  border-radius: 8px;
  background: rgba(22, 29, 22, 0.74);
}

.death-method-heading,
.death-method-list div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.7rem;
  min-width: 0;
}

.death-method-heading {
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(51, 64, 51, 0.72);
}

.death-method-heading strong {
  min-width: 0;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.death-method-heading span {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 900;
  white-space: nowrap;
}

.death-method-list {
  display: grid;
  gap: 0.42rem;
  margin: 0;
}

.death-method-list dt {
  min-width: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.death-method-list dd {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 900;
  white-space: nowrap;
}

.movement-distance-grid {
  display: grid;
  gap: 0.72rem;
}

.movement-distance-card {
  display: grid;
  gap: 0.58rem;
  min-width: 0;
  padding: 0.82rem 0.9rem;
  border: 1px solid rgba(51, 64, 51, 0.82);
  border-radius: 8px;
  background: rgba(22, 29, 22, 0.74);
}

.movement-distance-main,
.movement-detail-list div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.7rem;
  min-width: 0;
}

.movement-distance-main strong {
  min-width: 0;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.movement-distance-main span {
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 900;
  white-space: nowrap;
}

.movement-detail-list {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(51, 64, 51, 0.72);
}

.movement-detail-list dt {
  min-width: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.movement-detail-list dd {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 900;
  white-space: nowrap;
}

.stats-table th,
.stats-table td {
  padding: 0.7rem 0.8rem;
  border-top: 1px solid rgba(51, 64, 51, 0.72);
  text-align: left;
  vertical-align: top;
}

.stats-table tr:first-child th,
.stats-table tr:first-child td,
.stats-table thead + tbody tr:first-child th,
.stats-table thead + tbody tr:first-child td {
  border-top: 1px solid rgba(51, 64, 51, 0.72);
}

.stats-table thead th {
  border-top: 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.stats-table tbody th {
  width: 8rem;
  color: var(--muted);
}

.stats-table td:not(:first-child),
.stats-table th:not(:first-child) {
  text-align: right;
}

.stats-table td:first-child,
.stats-table th:first-child {
  min-width: 10rem;
}

.item-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.item-list span {
  color: var(--text);
  font-size: 0.84rem;
}

.item-list span:not(:last-child)::after {
  content: ",";
}

.empty-profile-note {
  margin: 0;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(51, 64, 51, 0.85);
  color: var(--muted);
}

.map-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.8fr);
  gap: 1rem;
  padding: 1rem;
}

.map-preview {
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(rgba(242, 244, 237, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 244, 237, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, rgba(128, 185, 92, 0.20), rgba(16, 19, 15, 0.2)),
    #161b16;
  background-size: 28px 28px, 28px 28px, auto, auto;
  position: relative;
  overflow: hidden;
}

.heat-cell {
  position: absolute;
  border-radius: 4px;
  background: rgba(215, 100, 78, var(--alpha, 0.4));
  box-shadow: 0 0 24px rgba(215, 100, 78, 0.32);
}

.empty-map {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  color: var(--muted);
  text-align: center;
}

.map-card {
  padding: 0.65rem;
}

.activity-map {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(51, 64, 51, 0.9);
  border-radius: 8px;
  background: #1a1f18;
  isolation: isolate;
}

.map-tiles,
.road-overlay-layer,
.territory-region-layer,
.live-territory-layer,
.heat-layer,
.city-layer {
  position: absolute;
  inset: 0;
}

.map-tiles {
  z-index: 1;
  filter: saturate(0.68) brightness(0.64) contrast(1.08);
}

.map-tiles::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 19, 15, 0.2), rgba(16, 19, 15, 0.38)),
    rgba(16, 19, 15, 0.1);
}

.map-tiles.desktop-own-map {
  background: #b8beb9;
  filter: none;
}

.map-tiles.desktop-own-map::after {
  display: none;
}

.desktop-own-map-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.desktop-own-map-grid-line {
  stroke: rgba(65, 73, 67, 0.18);
  stroke-width: 0.16;
  vector-effect: non-scaling-stroke;
}

.desktop-own-map-grid-line.major {
  stroke: rgba(52, 60, 54, 0.28);
  stroke-width: 0.22;
}

.desktop-own-map-place {
  fill: #202720;
  stroke: rgba(232, 235, 232, 0.94);
  stroke-width: 0.28;
  paint-order: stroke fill;
  font-family: Inter, Arial, sans-serif;
  font-size: 0.66px;
  font-weight: 650;
  letter-spacing: 0;
  pointer-events: none;
}

.desktop-own-map-place-city {
  font-size: 1.12px;
  font-weight: 800;
}

.desktop-own-map-place-village {
  font-size: 0.82px;
  font-weight: 750;
}

.desktop-own-map-buildings {
  position: absolute;
  z-index: 5;
  inset: 0;
  pointer-events: none;
}

.desktop-own-map-building {
  --desktop-building-color: #8b9290;
  position: absolute;
  display: grid;
  place-items: center;
  width: 1.22rem;
  height: 1.22rem;
  overflow: hidden;
  border: 1px solid rgba(34, 40, 36, 0.88);
  border-radius: 3px;
  background: rgba(248, 249, 246, 0.96);
  color: #202620;
  box-shadow: 0 1px 4px rgba(25, 30, 26, 0.32);
  transform: translate(-50%, -50%) scale(var(--desktop-map-inverse-zoom, 1));
  transform-origin: center;
}

.desktop-own-map-building-icon {
  width: 0.78rem;
  height: 0.78rem;
  margin-bottom: 0.13rem;
}

.desktop-own-map-building-icon * {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.desktop-own-map-building-color {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 0.2rem;
  background: var(--desktop-building-color);
}

.desktop-own-map-building-store {
  --desktop-building-color: #0048fa;
}

.desktop-own-map-building-military {
  --desktop-building-color: #ff0000;
}

.desktop-own-map-building-police {
  --desktop-building-color: #00baff;
}

.desktop-own-map-building-fire {
  --desktop-building-color: #ff9000;
}

.desktop-own-map-building-medical {
  --desktop-building-color: #f69888;
}

.desktop-own-map-building-water_pump {
  --desktop-building-color: #2f9eea;
}

.desktop-own-map-building-church {
  --desktop-building-color: #917846;
}

.desktop-own-map-building-fuel {
  --desktop-building-color: #c59a2f;
}

.map-tile {
  position: absolute;
  display: block;
  object-fit: cover;
}

.road-overlay-layer {
  z-index: 3;
  display: block;
  pointer-events: none;
}

.road-overlay-layer svg {
  display: block;
  width: 100%;
  height: 100%;
}

.territory-region-layer {
  z-index: 2;
  pointer-events: none;
}

.territory-region-layer svg {
  display: block;
  width: 100%;
  height: 100%;
}

.territory-region {
  fill: #848c88;
  stroke: rgba(232, 238, 233, 0.8);
  stroke-width: 0.34;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}

.territory-region.is-claimed {
  fill: var(--territory-color, #626b67);
}

.live-territory-layer {
  z-index: 2;
  pointer-events: none;
}

.live-territory-layer svg {
  display: block;
  width: 100%;
  height: 100%;
}

.live-territory-region {
  fill: var(--live-territory-color);
  fill-opacity: 0.28;
  stroke: rgba(245, 249, 244, 0.46);
  stroke-width: 0.22;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}

.territory-map {
  cursor: default;
  background: #303735;
}

.territory-map-panel {
  padding: 0.65rem;
}

.territory-map-panel > h2,
.territory-map-panel > p {
  margin-left: 0.2rem;
  margin-right: 0.2rem;
}

.territory-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  padding: 0.72rem 0.2rem 0.15rem;
}

.territory-legend-entry {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text);
  font-size: 0.82rem;
}

.territory-legend-entry > i {
  width: 0.9rem;
  height: 0.9rem;
  flex: 0 0 auto;
  border: 1px solid rgba(233, 239, 234, 0.72);
  border-radius: 3px;
  background: var(--territory-color, #848c88);
}

.territory-color-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.territory-color-choice {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.42rem;
  min-height: 2.3rem;
  border: 1px solid rgba(173, 190, 177, 0.42);
  border-radius: 6px;
  background: rgba(17, 24, 19, 0.72);
  color: var(--text);
  font: inherit;
}

.territory-color-choice::before {
  content: "";
  width: 0.84rem;
  height: 0.84rem;
  flex: 0 0 auto;
  border: 1px solid rgba(240, 245, 240, 0.78);
  border-radius: 50%;
  background: var(--team-color, #626b67);
}

.territory-color-choice.is-current {
  border-color: var(--team-color, var(--accent));
  box-shadow: 0 0 0 1px var(--team-color, var(--accent));
}

.territory-color-choice:disabled {
  opacity: 0.34;
}

.territory-ranking-panel {
  display: grid;
  gap: 0.55rem;
  padding: 0.7rem;
}

.territory-ranking-panel > h2 {
  margin: 0;
}

.territory-ranking-summary {
  margin: -0.25rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.3;
}

.territory-ranking-list {
  display: grid;
  gap: 0.35rem;
}

.territory-team-panel {
  display: grid;
  gap: 0.65rem;
}

.territory-game-data {
  display: grid;
  gap: 0.85rem;
}

.territory-content-shell {
  gap: 0.85rem;
}

.territory-content-shell > [data-territory-view-panel] {
  display: grid;
  gap: 0.85rem;
}

.territory-content-shell .content-start {
  margin-top: 0;
}

.territory-content-shell .territory-ranking-panel,
.territory-content-shell .territory-shop-configuration-panel,
.territory-content-shell .territory-team-page {
  margin: 0;
}

.territory-team-page {
  display: grid;
  gap: 0.85rem;
}

.territory-view-toggle {
  grid-template-columns: repeat(var(--territory-view-count, 3), minmax(0, 1fr));
}

.territory-topbar {
  align-items: flex-start;
  flex-direction: column;
  gap: 0.7rem;
}

.territory-header-status {
  flex-wrap: wrap;
  min-width: 0;
  width: 100%;
}

.territory-team-count {
  border-color: rgba(128, 185, 92, 0.72);
  color: var(--green);
}

.territory-topbar > div:first-child .territory-team-count {
  margin-top: 0.7rem;
}

.territory-session-details {
  display: flex;
  flex: 1 1 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  min-width: 0;
}

.territory-team-identity,
.territory-team-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.territory-team-summary {
  margin-left: auto;
}

.territory-team-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
}

.territory-team-pill.is-editable {
  border-color: rgba(128, 185, 92, 0.86);
}

.territory-team-header-color,
.territory-color-swatch {
  display: inline-block;
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
  border: 1px solid rgba(240, 245, 240, 0.82);
  border-radius: 3px;
  background: var(--team-color, #626b67);
}

.territory-team-form-field,
.territory-team-color-field {
  display: grid;
  gap: 0.35rem;
}

.territory-team-form-field > span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.territory-color-picker {
  position: relative;
}

.territory-color-picker-toggle,
.territory-color-picker-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 2.55rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(9, 12, 9, 0.88);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.territory-color-picker-toggle::after {
  content: "⌄";
  margin-left: auto;
  color: var(--muted);
  font-size: 1.1rem;
}

.territory-color-picker-toggle:disabled {
  color: var(--muted);
  opacity: 1;
}

.territory-color-picker-options {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  left: 0;
  z-index: 3;
  display: grid;
  gap: 0.25rem;
  max-height: 15rem;
  overflow-y: auto;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #151b15;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.territory-color-picker-option {
  min-height: 2.2rem;
  border-color: transparent;
  background: transparent;
}

.territory-color-picker-option.is-current {
  border-color: rgba(128, 185, 92, 0.72);
  background: rgba(128, 185, 92, 0.14);
}

.territory-color-picker-option:disabled {
  color: var(--muted);
  opacity: 0.42;
}

.territory-team-editor {
  display: grid;
  gap: 0.6rem;
  width: min(100%, 29rem);
  padding: 0.7rem;
  border: var(--frame);
  border-radius: var(--control-radius);
  background: var(--surface-subpanel);
}

.territory-team-invite {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
}

.territory-team-editor input,
.territory-team-editor select,
.territory-team-invite input {
  width: 100%;
  min-height: 2.55rem;
  padding: 0.55rem 0.7rem;
  border: var(--frame);
  border-radius: 6px;
  background: var(--surface-control);
  color: var(--text);
  font: inherit;
  font-weight: 700;
}

.territory-team-editor button,
.territory-team-invite button,
.territory-member-action {
  min-height: 2.45rem;
  padding: 0 0.7rem;
  border: 1px solid rgba(128, 185, 92, 0.72);
  border-radius: 6px;
  background: rgba(128, 185, 92, 0.14);
  color: var(--text);
  font: inherit;
  font-weight: 800;
}

.territory-team-editor .territory-color-picker-toggle,
.territory-team-editor .territory-color-picker-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 2.55rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(9, 12, 9, 0.88);
  color: var(--text);
  text-align: left;
}

.territory-team-editor .territory-color-picker-option {
  min-height: 2.2rem;
  border-color: transparent;
  background: transparent;
}

.territory-team-editor .territory-color-picker-option.is-current {
  border-color: rgba(128, 185, 92, 0.72);
  background: rgba(128, 185, 92, 0.14);
}

.territory-team-editor .territory-color-picker-option:disabled {
  color: var(--muted);
  opacity: 0.42;
}

.territory-team-members {
  display: grid;
  gap: 0.35rem;
}

.territory-team-member,
.territory-team-invitation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.5rem 0.55rem;
  border: var(--frame);
  border-radius: 6px;
  background: var(--surface-subpanel);
}

.territory-team-member-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.territory-member-action {
  min-height: 2rem;
  font-size: 0.8rem;
}

.territory-member-action.is-danger {
  border-color: rgba(215, 100, 78, 0.74);
  background: rgba(215, 100, 78, 0.1);
}

.territory-leave-button {
  justify-self: start;
}

.territory-ranking-entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem;
  border: 1px solid rgba(128, 185, 92, 0.45);
  border-radius: 6px;
  background: var(--surface-subpanel);
}

.territory-ranking-entry.is-own {
  border-color: rgba(98, 161, 225, 0.78);
  background: rgba(27, 53, 78, 0.54);
}

.territory-ranking-value {
  display: grid;
  place-items: center;
  min-width: 1.75rem;
  min-height: 1.75rem;
  padding: 0 0.45rem;
  border-radius: 50%;
  background: rgba(128, 185, 92, 0.2);
  color: #d8f0ca;
  font-weight: 700;
}

.territory-ranking-reward {
  color: var(--green);
  font-size: 0.82rem;
  white-space: nowrap;
}

.territory-lists-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.65rem;
}

.territory-list-toggle {
  grid-template-columns: repeat(var(--territory-list-count, 3), minmax(0, 1fr));
}

.territory-list-card {
  display: grid;
  gap: 0.2rem;
  padding: 0.7rem;
}

.territory-list-card > h2 {
  margin: 0;
}

.territory-list {
  display: grid;
  gap: 0.35rem;
  max-height: 20rem;
  overflow-y: auto;
  padding-right: 0.15rem;
}

.territory-list-entry {
  display: grid;
  gap: 0.1rem;
  padding: 0.5rem 0.55rem;
  border: 1px solid rgba(128, 185, 92, 0.45);
  border-radius: 6px;
  background: rgba(18, 30, 20, 0.56);
}

.territory-list-opponents .territory-list-entry {
  border-color: rgba(214, 120, 91, 0.68);
}

.territory-list-own .territory-list-entry {
  border-color: rgba(98, 161, 225, 0.72);
}

.territory-list-entry strong,
.territory-list-entry small {
  overflow-wrap: anywhere;
}

.territory-list-entry small {
  color: var(--muted);
  font-size: 0.8rem;
}

@media (max-width: 760px) {
  .territory-team-invite {
    grid-template-columns: minmax(0, 1fr);
  }

  .territory-list {
    max-height: 16rem;
  }
}

.road-overlay-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.road-overlay-casing {
  stroke: rgba(10, 16, 11, 0.88);
}

.road-overlay-casing-main {
  stroke-width: 4.6;
}

.road-overlay-casing-secondary {
  stroke-width: 4;
}

.road-overlay-casing-path,
.road-overlay-casing-minor {
  stroke-width: 3.2;
}

.road-overlay-fill-main {
  stroke: #4f9d46;
  stroke-width: 3;
}

.road-overlay-fill-secondary {
  stroke: #c6aa28;
  stroke-width: 2.4;
}

.road-overlay-fill-path,
.road-overlay-fill-minor {
  stroke: #f1f3ef;
  stroke-width: 1.7;
}

.heat-layer {
  z-index: 4;
  mix-blend-mode: normal;
  pointer-events: none;
}

.heat-spot {
  position: absolute;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(215, 48, 39, var(--heat-alpha, 0.5)) 0 18%, rgba(253, 174, 97, calc(var(--heat-alpha, 0.5) * 0.82)) 42%, rgba(255, 255, 191, calc(var(--heat-alpha, 0.5) * 0.42)) 62%, transparent 76%);
  filter: blur(4px);
}

.city-layer {
  z-index: 6;
  pointer-events: none;
}

.desktop-place-trigger {
  appearance: none;
  border: 0;
  font: inherit;
  letter-spacing: 0;
  pointer-events: auto;
  cursor: pointer;
}

.desktop-place-trigger:focus-visible {
  outline: 2px solid #2684ff;
  outline-offset: 2px;
}

.live-radio-indicator {
  position: absolute;
  z-index: 8;
  top: 0.65rem;
  right: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.48rem;
  border: 1px solid rgba(128, 185, 92, 0.88);
  border-radius: 999px;
  background: rgba(13, 21, 13, 0.84);
  color: #d8f0c9;
  box-shadow: 0 0 0 0 rgba(128, 185, 92, 0.42), 0 2px 8px rgba(0, 0, 0, 0.45);
  animation: live-radio-indicator-pulse 1.8s ease-in-out infinite;
  pointer-events: none;
}

.live-radio-indicator[hidden] {
  display: none;
}

.live-radio-indicator svg {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
}

.live-radio-frequencies {
  color: #f3f7ef;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.live-radio-frequencies:empty {
  display: none;
}

.live-radio-indicator path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes live-radio-indicator-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(128, 185, 92, 0.32), 0 2px 8px rgba(0, 0, 0, 0.45);
  }

  50% {
    box-shadow: 0 0 0 0.36rem rgba(128, 185, 92, 0), 0 2px 8px rgba(0, 0, 0, 0.45);
  }
}

.city-label {
  position: absolute;
  z-index: 1;
  isolation: isolate;
  --map-label-shift-x: -50%;
  --map-label-shift-y: -50%;
  transform: translate(var(--map-label-shift-x), var(--map-label-shift-y));
  max-width: 7rem;
  padding: 0.09rem 0.28rem;
  border-radius: 4px;
  background: rgba(9, 12, 9, 0.46);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
  white-space: nowrap;
}

.city-label.map-label-anchor-left {
  --map-label-shift-x: 0%;
}

.city-label.map-label-anchor-right {
  --map-label-shift-x: -100%;
}

.city-label.map-label-anchor-top {
  --map-label-shift-y: 0%;
}

.city-label.map-label-anchor-bottom {
  --map-label-shift-y: -100%;
}

.city-label.live-active {
  display: inline-flex;
  align-items: center;
  z-index: 20;
  gap: 0.18rem;
}

.city-label.live-radio-active {
  z-index: 21;
}

.city-name-text,
.live-city-dot {
  position: relative;
  z-index: 1;
}

.live-city-dot {
  --live-dot-rgb: 239, 63, 54;
  flex: 0 0 auto;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: rgb(var(--live-dot-rgb));
  box-shadow: 0 0 0 0 rgba(var(--live-dot-rgb), 0.62);
  animation: live-pulse 1.8s ease-in-out infinite;
  transform-origin: center;
}

.city-label.live-presence-single .live-city-dot,
.live-mobile-map-place.live-presence-single .live-city-dot {
  --live-dot-rgb: 120, 189, 94;
}

.city-label.live-presence-pair .live-city-dot,
.live-mobile-map-place.live-presence-pair .live-city-dot {
  --live-dot-rgb: 253, 174, 97;
}

.city-label.live-presence-group .live-city-dot,
.live-mobile-map-place.live-presence-group .live-city-dot {
  --live-dot-rgb: 239, 63, 54;
}

.live-radio-waves {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  width: 1.45rem;
  height: 1.45rem;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.live-radio-waves span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(245, 245, 240, 0.58);
  border-radius: 999px;
  opacity: 0;
  animation: live-radio-wave 2.4s ease-out infinite;
}

.live-radio-waves span:nth-child(2) {
  animation-delay: 1.2s;
}

@keyframes live-radio-wave {
  0% {
    opacity: 0.58;
    transform: scale(0.38);
  }

  70% {
    opacity: 0.18;
  }

  100% {
    opacity: 0;
    transform: scale(1.7);
  }
}

.city-label.major {
  color: #fff8d5;
  font-size: 0.94rem;
}

.city-label.medium {
  font-size: 0.82rem;
}

.city-label.minor {
  opacity: 0.82;
}

@media (min-width: 641px) {
  .activity-map.desktop-map-interactive {
    --desktop-map-inverse-zoom: 1;
    cursor: grab;
    touch-action: none;
  }

  .activity-map.desktop-map-interactive.is-map-dragging {
    cursor: grabbing;
  }

  .activity-map.desktop-map-interactive > .map-tiles,
  .activity-map.desktop-map-interactive > .road-overlay-layer,
  .activity-map.desktop-map-interactive > .heat-layer,
  .activity-map.desktop-map-interactive > .desktop-own-map-buildings,
  .activity-map.desktop-map-interactive > .city-layer {
    transform-origin: 50% 50%;
    transition: transform 140ms ease-out;
    will-change: transform;
  }

  .activity-map.desktop-map-interactive.is-map-dragging > .map-tiles,
  .activity-map.desktop-map-interactive.is-map-dragging > .road-overlay-layer,
  .activity-map.desktop-map-interactive.is-map-dragging > .heat-layer,
  .activity-map.desktop-map-interactive.is-map-dragging > .desktop-own-map-buildings,
  .activity-map.desktop-map-interactive.is-map-dragging > .city-layer {
    transition: none;
  }

  .map-card .activity-map.desktop-map-interactive > .heat-layer {
    opacity: 1;
    transition: transform 140ms ease-out, opacity 140ms ease-out;
  }

  .map-card .activity-map.desktop-map-interactive.is-map-dragging > .heat-layer {
    transition: none;
  }

  .map-card .activity-map.desktop-map-interactive:not(.map-zoom-home) > .heat-layer {
    opacity: 0;
  }

  .desktop-map-interactive .city-label,
  .desktop-map-interactive .history-map-dot {
    transform: translate(-50%, -50%) scale(var(--desktop-map-inverse-zoom));
  }

  .desktop-map-controls {
    position: absolute;
    z-index: 12;
    left: 0.75rem;
    top: 50%;
    display: grid;
    gap: 0.42rem;
    transform: translateY(-50%);
  }

  .desktop-map-controls[hidden] {
    display: none;
  }

  .desktop-map-controls button {
    display: grid;
    place-items: center;
    width: 2.7rem;
    height: 2.7rem;
    border: 1px solid rgba(57, 65, 59, 0.36);
    border-radius: 999px;
    background: rgba(250, 251, 249, 0.96);
    color: #202720;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(22, 28, 23, 0.24);
    cursor: pointer;
  }

  .desktop-map-controls button:disabled {
    opacity: 0.42;
    cursor: default;
  }

  .desktop-own-map-buildings,
  .desktop-own-map-building,
  .road-overlay-casing,
  .road-overlay-fill,
  .road-overlay-casing-path,
  .road-overlay-casing-minor,
  .road-overlay-fill-path,
  .road-overlay-fill-minor {
    transition: opacity 140ms ease-out;
  }

  .desktop-own-map-buildings,
  .map-zoom-overview .desktop-own-map-place-detail {
    opacity: 0;
  }

  .map-zoom-overview .road-overlay-casing {
    stroke: rgba(34, 41, 36, 0.72);
    stroke-width: 2.8;
  }

  .map-zoom-overview .road-overlay-fill {
    stroke: #e1e5e1;
    stroke-width: 1.55;
  }

  .map-zoom-detail .desktop-own-map-buildings {
    opacity: 1;
  }

  .map-zoom-detail .desktop-own-map-building {
    opacity: 1;
  }

  .map-zoom-mid .desktop-own-map-place-detail,
  .map-zoom-detail .desktop-own-map-place-detail {
    opacity: 1;
  }

  .city-label {
    width: max-content;
    max-width: none;
    padding: 0.12rem 0.36rem;
    background: rgba(35, 41, 36, 0.72);
    font-size: 0.95rem;
  }

  .city-label.major {
    font-size: 1.18rem;
  }

  .city-label.medium {
    font-size: 1rem;
  }

  .city-label.minor {
    font-size: 0.82rem;
    opacity: 0.95;
  }

  .map-zoom-overview .city-label.major {
    font-size: 1.38rem;
  }

  .map-zoom-overview .city-label.medium {
    font-size: 1.12rem;
  }

  .map-zoom-overview .city-label.minor {
    font-size: 0.88rem;
  }

  .activity-map.map-static .road-overlay-layer {
    display: none;
  }

  .activity-map.map-static .city-label {
    font-size: 0.72rem;
    padding: 0.08rem 0.24rem;
  }

  .activity-map.map-static .city-label.city-label-tile-alias {
    background: rgba(9, 12, 9, 0.96);
  }

  .activity-map.map-static .city-label.major,
  .activity-map.map-static .city-label.major.live-active {
    font-size: 1.2rem;
    padding: 0.11rem 0.3rem;
  }

  .activity-map.map-static .city-label.medium,
  .activity-map.map-static .city-label.medium.live-active {
    font-size: 1rem;
    padding: 0.09rem 0.26rem;
  }

  .activity-map.map-static .city-label.minor {
    font-size: 1rem;
    opacity: 0.95;
    padding: 0.09rem 0.26rem;
  }

  .activity-map.map-static .city-label.live-active {
    opacity: 1;
    z-index: 6;
  }

  .activity-map.map-static .live-city-dot {
    width: 0.54rem;
    height: 0.54rem;
  }

  .activity-map.map-static .live-radio-waves {
    width: 1.15rem;
    height: 1.15rem;
  }
}

.history-map-dot {
  position: absolute;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(6, 9, 6, 0.88);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.75);
}

.history-map-dot.players-two {
  width: 1.38rem;
  height: 1.38rem;
}

.history-map-dot.players-many {
  width: 1.78rem;
  height: 1.78rem;
}

.history-map-dot.low {
  background: #78bd5e;
}

.history-map-dot.medium {
  background: #f59f3a;
}

.history-map-dot.high {
  background: #ef3f36;
}

.map-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 0 0.15rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.proximity-panel,
.combat-panel,
.story-panel {
  margin-top: var(--content-start-gap);
  scroll-margin-top: 9rem;
}

.proximity-panel h2,
.combat-panel h2,
.story-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.proximity-list,
.combat-list,
.story-list {
  display: grid;
  gap: 0.55rem;
}

.proximity-row,
.combat-row,
.story-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.6rem;
  padding: 0.6rem 0;
  border-top: 1px solid rgba(51, 64, 51, 0.72);
}

.proximity-row:first-child,
.combat-row:first-child,
.story-row:first-child {
  border-top: 0;
}

.proximity-row strong,
.combat-row strong {
  min-width: 0;
  font-size: 1rem;
}

.proximity-row span,
.combat-row span {
  flex: 0 0 auto;
  color: var(--muted);
  font-weight: 700;
}

.combat-row {
  align-items: flex-start;
  flex-wrap: wrap;
}

.story-row {
  align-items: flex-start;
  justify-content: flex-start;
}

.story-row time {
  flex: 0 0 8.6rem;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 0.12rem;
  color: var(--green);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.story-row time small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.15;
  white-space: normal;
}

.story-row span {
  min-width: 0;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-style: normal;
  font-weight: 400;
  line-height: 1.35;
  white-space: pre-line;
}

.story-row.combatStart {
  display: block;
}

.story-row.combatEnd {
  display: block;
}

.story-row.combatGroupStart,
.story-row.combatGroupEnd {
  display: block;
}

.combat-start-card {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
  width: 100%;
}

.combat-end-card,
.combat-group-start-card,
.combat-group-end-card,
.combat-ai-summary-card {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
  width: 100%;
}

.combat-start-title,
.combat-end-title {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

.combat-start-line,
.combat-end-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 0.6rem;
}

.combat-start-side {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.combat-start-side span {
  min-width: 0;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: normal;
}

.combat-start-side strong {
  min-width: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.combat-start-side small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.15;
}

.combat-start-place {
  min-width: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}

.combat-start-defender {
  text-align: right;
}

.combat-group-start-body {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  text-align: center;
}

.combat-group-participants {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.combat-group-participants span,
.combat-group-issue span {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 850;
  line-height: 1.1;
  text-transform: uppercase;
}

.combat-group-participants strong {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.combat-end-player {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
}

.combat-end-player > strong {
  min-width: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.combat-end-player-right {
  text-align: right;
}

.combat-end-result {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
  color: var(--muted);
  text-align: center;
}

.combat-end-result strong {
  color: var(--green);
  font-size: 0.96rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.combat-end-result span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: normal;
}

.combat-end-stats {
  display: grid;
  gap: 0.12rem;
  margin: 0;
  color: var(--muted);
}

.combat-end-stats div {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.35rem;
  min-width: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.combat-end-stats .combat-end-weapons {
  align-items: flex-start;
}

.combat-end-stats .combat-end-weapons dt {
  display: none;
}

.combat-end-player-right .combat-end-stats div {
  justify-content: flex-end;
}

.combat-end-stats dt,
.combat-end-stats dd {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.18;
}

.combat-end-stats dt {
  font-weight: 700;
}

.combat-end-locomotion dt {
  display: none;
}

.combat-end-stats dd {
  color: var(--text);
  font-weight: 850;
  overflow-wrap: normal;
  white-space: nowrap;
}

.combat-end-stats .combat-end-locomotion dd {
  color: var(--muted);
}

.combat-end-stats .combat-end-weapons dd {
  color: var(--text);
  font-weight: 800;
  line-height: 1.18;
}

.combat-archive-list {
  display: grid;
  gap: 0.75rem;
}

.combat-archive-card {
  padding: 1rem;
}

.combat-group-duration {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.combat-group-issue {
  display: grid;
  gap: 0.18rem;
  padding: 0.55rem 0;
  border-top: 1px solid rgba(51, 64, 51, 0.75);
  border-bottom: 1px solid rgba(51, 64, 51, 0.75);
}

.combat-group-issue strong {
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.combat-group-player-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.combat-group-player {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.55rem;
  border: 1px solid rgba(51, 64, 51, 0.9);
  border-radius: 8px;
  background: rgba(32, 39, 31, 0.42);
}

.combat-group-player-heading {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.combat-group-player-heading strong {
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.combat-group-player-heading span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.15;
}

.combat-group-player-victory .combat-group-player-heading span {
  color: var(--green);
}

.combat-group-player-defeat .combat-group-player-heading span {
  color: var(--red);
}

.combat-ai-summary-card strong {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.story-row.combatAiSummary .combat-ai-summary-card {
  flex: 1 1 0;
  width: auto;
}

.legend-dot {
  width: 0.78rem;
  height: 0.78rem;
  border-radius: 999px;
}

.legend-dot.low {
  background: #78bd5e;
}

.legend-dot.medium {
  background: #f59f3a;
}

.legend-dot.high {
  background: #ef3f36;
}

.small-stats {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem 0.8rem;
  margin: 1rem 0 0;
}

.small-stats dt {
  color: var(--muted);
}

.small-stats dd {
  margin: 0;
  font-weight: 700;
}

.error {
  padding: 1rem;
  border: 1px solid rgba(215, 100, 78, 0.7);
  border-radius: 8px;
  background: rgba(215, 100, 78, 0.12);
}

.install-prompt {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  max-width: 42rem;
  margin: 0 auto;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(23, 28, 23, 0.97);
  box-shadow: 0 16px 36px var(--shadow);
}

.install-prompt[hidden] {
  display: none;
}

.install-prompt strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
}

.install-prompt p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 2rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.site-footer a {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--green);
  outline: none;
}

.site-footer > * + *::before {
  content: "\00b7";
  margin-right: 0.75rem;
  color: var(--line);
  font-weight: 800;
}

.install-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.45rem;
}

.install-button,
.install-dismiss {
  min-height: 2.35rem;
  padding: 0 0.7rem;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
}

.install-button {
  border: 1px solid var(--green);
  background: var(--green);
  color: #101810;
}

.install-dismiss {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
}

@media (max-width: 920px) {
  .metric-grid,
  .dashboard-grid,
  .ranking-grid,
  .player-grid,
  .live-grid,
  .map-panel {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-grid,
  .map-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
  }

  .shop-header-status {
    width: 100%;
    justify-content: space-between;
  }

  .app-shell {
    width: min(100% - 1rem, 1180px);
    padding-bottom: 6.5rem;
  }

  .has-site-footer .app-shell {
    padding-bottom: 1rem;
  }

  .tabs {
    position: fixed;
    top: auto;
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    right: 0.75rem;
    bottom: max(env(safe-area-inset-bottom), 0.75rem);
    left: 0.75rem;
    z-index: 100;
    gap: 0.35rem;
    width: auto !important;
    max-width: none;
    margin: 0;
    padding: 0.5rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(16, 19, 15, 0.94);
    box-shadow: 0 16px 36px var(--shadow);
    backdrop-filter: blur(18px);
    overflow: visible;
    transform: translateZ(0);
  }

  .tabs.shop-tabs {
    margin: 0;
  }

  .tabs a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0 !important;
    padding-right: 0.35rem;
    padding-left: 0.35rem;
    overflow: hidden;
    font-size: 0.74rem;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tabs .desktop-menu-link {
    display: none;
  }

  .tabs .site-meta-nav-placeholder {
    display: flex;
    visibility: hidden;
    pointer-events: none;
  }

  .tabs .mobile-more-tab {
    display: block;
  }

  .tabs .tab-more summary {
    width: 100%;
    min-width: 0 !important;
    padding-right: 0.35rem;
    padding-left: 0.35rem;
    overflow: hidden;
    font-size: 0.74rem;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tabs .tab-more-menu {
    right: 0;
    bottom: calc(100% + 0.55rem);
    min-width: 8.5rem;
  }

  .tabs .tab-more-menu a {
    justify-content: flex-start;
    padding: 0.55rem 0.65rem;
    text-align: left;
  }

  .tabs a.live-link.has-live-status {
    display: flex;
  }

  .daily-section,
  .section,
  .intro {
    scroll-margin-top: 12rem;
  }

  .section,
  .intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .last-update {
    text-align: left;
  }

  .metric-grid,
  .ranking-grid,
  .player-grid,
  .player-roster-grid,
  .live-grid {
    grid-template-columns: 1fr;
  }

  .live-grid {
    gap: 0.75rem;
  }

  .live-card {
    min-height: 0;
    padding: 0.75rem 0.85rem;
  }

  .live-card strong {
    font-size: 1.35rem;
  }

  .live-card span {
    margin-top: 0.25rem;
  }

  .day-row,
  .leader-row,
  .ranking-row {
    grid-template-columns: minmax(0, 1fr) minmax(6rem, auto);
  }

  .proximity-row,
  .combat-row,
  .story-row,
  .patch-entry {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
  }

  .patch-entry {
    gap: 0.5rem;
  }

  .patch-entry-meta {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
  }

  .story-row time {
    flex-basis: auto;
  }

  .story-row.combatStart .combat-start-card,
  .story-row.combatEnd .combat-end-card,
  .combat-archive-card,
  .story-row.combatGroupStart .combat-group-start-card,
  .story-row.combatGroupEnd .combat-group-end-card {
    width: 100%;
  }

  .story-row.combatStart .combat-start-line,
  .story-row.combatEnd .combat-end-grid,
  .combat-archive-card .combat-end-grid {
    gap: 0.45rem;
  }

  .combat-group-player-grid {
    grid-template-columns: 1fr;
  }

  .combat-group-player {
    padding: 0.5rem;
  }

  .story-row.combatStart .combat-start-side strong,
  .story-row.combatStart .combat-start-place,
  .story-row.combatEnd .combat-end-player > strong,
  .story-row.combatEnd .combat-end-result strong,
  .combat-archive-card .combat-end-player > strong,
  .combat-archive-card .combat-end-result strong,
  .combat-group-participants strong,
  .combat-group-player-heading strong {
    font-size: 0.86rem;
  }

  .story-row.combatStart .combat-start-side span,
  .story-row.combatStart .combat-start-side small,
  .combat-group-participants span,
  .combat-group-issue span {
    font-size: 0.64rem;
  }

  .story-row.combatEnd .combat-end-stats dt,
  .story-row.combatEnd .combat-end-stats dd,
  .story-row.combatEnd .combat-end-result span,
  .combat-archive-card .combat-end-stats dt,
  .combat-archive-card .combat-end-stats dd,
  .combat-archive-card .combat-end-result span,
  .combat-group-issue strong,
  .combat-group-player-heading span,
  .combat-ai-summary-card strong {
    font-size: 1rem;
  }

  .day-row .bar-track,
  .leader-row .bar-track,
  .ranking-row .bar-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .stat-pills {
    grid-template-columns: 1fr;
  }

  .player-profile {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    scroll-margin-top: 12rem;
  }

  .player-page {
    gap: 0.95rem;
  }

  .equipment-page {
    gap: 0.85rem;
  }

  .profile-block {
    gap: 0.45rem;
    padding-top: 0.15rem;
  }
  .death-method-grid {
    grid-template-columns: 1fr;
  }

  .profile-block-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.15rem;
  }

  .profile-block-heading span {
    text-align: left;
  }

  .profile-combat-card {
    padding: 0.8rem 0.85rem;
  }

  .badge-chip {
    width: 3rem;
    height: 3rem;
  }

  .badge-medal svg {
    width: 1.5rem;
    height: 1.5rem;
  }

  .badge-popover {
    position: fixed;
    top: var(--badge-popover-top, 0);
    bottom: auto;
    left: var(--badge-popover-left, 50vw);
    z-index: 40;
    max-width: calc(100vw - 1rem);
    transform: translate(-50%, 0.25rem);
  }

  .badge-chip:hover .badge-popover,
  .badge-chip:focus-visible .badge-popover {
    opacity: 0;
    transform: translate(-50%, 0.25rem);
  }

  .badge-chip.is-active .badge-popover {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  .craft-grid {
    grid-template-columns: 1fr;
  }

  .profile-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-statline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .table-wrap {
    overflow: visible;
    border: 0;
  }

  .stats-table {
    display: block;
    width: 100%;
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9rem;
  }

  .stats-table thead {
    display: none;
  }

  .stats-table tbody {
    display: grid;
    gap: 0.55rem;
    width: 100%;
  }

  .stats-table tr {
    display: grid;
    gap: 0.42rem;
    min-width: 0;
    padding: 0.72rem;
    border: 1px solid rgba(51, 64, 51, 0.78);
    border-radius: 8px;
    background: rgba(22, 29, 22, 0.72);
  }

  .stats-table th,
  .stats-table td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0 !important;
    padding: 0;
    border: 0 !important;
    text-align: right !important;
    overflow-wrap: anywhere;
  }

  .stats-table th.is-empty-value,
  .stats-table td.is-empty-value {
    display: none;
  }

  .stats-table tr > :first-child {
    display: block;
    padding-bottom: 0.15rem;
    color: var(--text);
    font-weight: 800;
    text-align: left !important;
  }

  .stats-table th::before,
  .stats-table td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    max-width: 46%;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: left;
    text-transform: uppercase;
  }

  .stats-table tr > :first-child::before {
    display: block;
    max-width: none;
    margin-bottom: 0.12rem;
  }

  .stats-table tr > .table-primary-cell::before {
    display: none;
  }

  .item-list {
    justify-content: flex-end;
    min-width: 0;
    text-align: right;
  }

  .item-list span {
    overflow-wrap: anywhere;
  }

  .map-card {
    padding: 0.45rem;
  }

  .territory-map-panel {
    padding: 0.45rem;
  }

  .activity-map {
    min-height: 0;
  }

  .road-overlay-layer {
    display: block;
  }

  .road-overlay-line {
    stroke: rgba(237, 242, 224, 0.66);
    stroke-width: 0.36;
  }

  .city-label {
    font-size: 0.58rem;
    padding: 0.06rem 0.18rem;
  }

  .city-label.major {
    font-size: 0.72rem;
  }

  .city-label.medium {
    font-size: 0.64rem;
  }

  .city-label.minor {
    font-size: 0.58rem;
  }

  .city-label.live-active {
    font-size: 0.84rem;
    opacity: 1;
    padding: 0.08rem 0.26rem;
    z-index: 6;
  }

  .live-city-dot {
    width: 0.54rem;
    height: 0.54rem;
  }

  .live-radio-waves {
    width: 1.15rem;
    height: 1.15rem;
  }

  .install-prompt {
    align-items: stretch;
    bottom: calc(env(safe-area-inset-bottom) + 5.6rem);
    flex-direction: column;
  }

  .site-footer {
    width: min(100% - 1rem, 1180px);
    padding-bottom: 8.5rem;
    font-size: 1.05rem;
  }

  .server-feature-grid {
    grid-template-columns: 1fr;
  }

  .install-actions {
    width: 100%;
  }

  .install-button,
  .install-dismiss {
    flex: 1;
  }
}

@media (max-width: 640px) {
  body.live-mobile-map-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

  #live-presence-map {
    cursor: zoom-in;
  }

  .live-mobile-map-modal {
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: #e0e3e1;
  }

  .live-mobile-map-stage {
    position: absolute;
    inset: 0;
    overflow: hidden;
    isolation: isolate;
    background: #e0e3e1;
    touch-action: none;
    overscroll-behavior: none;
  }

  .live-mobile-map-vector,
  .live-mobile-map-coordinates,
  .live-mobile-map-places {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .live-mobile-map-vector {
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    shape-rendering: geometricPrecision;
  }

  .live-mobile-map-places {
    z-index: 3;
    pointer-events: none;
  }

  .live-mobile-map-coordinates {
    z-index: 4;
    color: rgba(22, 30, 24, 0.94);
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.96), 0 0 3px rgba(255, 255, 255, 0.82);
  }

  .live-mobile-map-coordinate {
    position: absolute;
    padding: 0.12rem 0.24rem;
    border-radius: 0.24rem;
    background: rgba(255, 255, 255, 0.88);
    letter-spacing: 0.02em;
  }

  .live-mobile-map-coordinate-x {
    top: calc(env(safe-area-inset-top) + 0.82rem);
    transform: translateX(-50%);
  }

  .live-mobile-map-coordinate-y {
    left: calc(env(safe-area-inset-left) + 0.82rem);
    transform: translateY(-50%);
  }

  .live-mobile-map-building-card {
    --live-building-card-color: #4a7491;
    position: absolute;
    z-index: 9;
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    width: max-content;
    max-width: min(14rem, calc(100vw - 2rem));
    min-height: 2.3rem;
    padding: 0.42rem 0.6rem;
    border: 1px solid color-mix(in srgb, var(--live-building-card-color) 58%, #ffffff);
    border-radius: 0.62rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 7px 18px rgba(18, 28, 20, 0.28);
    color: var(--live-building-card-color);
    font-size: 0.84rem;
    line-height: 1.14;
    transform: translateX(-50%);
    pointer-events: auto;
  }

  .live-mobile-map-building-card[hidden] {
    display: none;
  }

  .live-mobile-map-building-card::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -0.4rem;
    width: 0.72rem;
    height: 0.72rem;
    border-right: 1px solid color-mix(in srgb, var(--live-building-card-color) 58%, #ffffff);
    border-bottom: 1px solid color-mix(in srgb, var(--live-building-card-color) 58%, #ffffff);
    background: rgba(255, 255, 255, 0.96);
    transform: translateX(-50%) rotate(45deg);
  }

  .live-mobile-map-building-card.is-below::after {
    top: -0.4rem;
    bottom: auto;
    border-top: 1px solid color-mix(in srgb, var(--live-building-card-color) 58%, #ffffff);
    border-right: 0;
    border-bottom: 0;
    border-left: 1px solid color-mix(in srgb, var(--live-building-card-color) 58%, #ffffff);
  }

  .live-mobile-map-building-card-icon {
    flex: 0 0 auto;
    width: 1.32rem;
    height: 1.32rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.05;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .live-mobile-map-building-card-labels {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
  }

  .live-mobile-map-building-card-favorite {
    position: relative;
    z-index: 1;
    display: grid;
    flex: 0 0 auto;
    width: 1.8rem;
    height: 1.8rem;
    margin: -0.2rem -0.28rem -0.2rem 0.02rem;
    padding: 0;
    border: 0;
    border-radius: 0.45rem;
    background: transparent;
    color: #8b908b;
    cursor: pointer;
    place-items: center;
  }

  .live-mobile-map-building-card-favorite:active {
    background: rgba(75, 81, 77, 0.12);
    color: #59605a;
  }

  .live-mobile-map-building-card-favorite svg {
    width: 1.22rem;
    height: 1.22rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .live-mobile-map-building-card strong {
    overflow: hidden;
    color: inherit;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .live-mobile-map-building-card small {
    overflow: hidden;
    color: color-mix(in srgb, var(--live-building-card-color) 72%, #273329);
    font-size: 0.72rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .live-mobile-map-building-card-type-ruin { --live-building-card-color: #4b514d; }
  .live-mobile-map-building-card-type-hunting { --live-building-card-color: #5b632b; }
  .live-mobile-map-building-card-type-water { --live-building-card-color: #1b6579; }
  .live-mobile-map-building-card-type-fire { --live-building-card-color: #994b43; }
  .live-mobile-map-building-card-type-security { --live-building-card-color: #467043; }
  .live-mobile-map-building-card-type-medical { --live-building-card-color: #8a762c; }
  .live-mobile-map-building-card-type-church { --live-building-card-color: #5b3f79; }
  .live-mobile-map-building-card-type-farm { --live-building-card-color: #705b2a; }
  .live-mobile-map-building-card-type-industrial { --live-building-card-color: #775235; }
  .live-mobile-map-building-card-type-garage { --live-building-card-color: #7a3e0e; }
  .live-mobile-map-building-card-type-vehicle-repair { --live-building-card-color: #bf6a13; }
  .live-mobile-map-building-card-type-vehicle-wreck { --live-building-card-color: #5f6874; }
  .live-mobile-map-building-card-type-heli_crash { --live-building-card-color: #c84336; }
  .live-mobile-map-building-card-type-military_convoy { --live-building-card-color: #a96828; }
  .live-mobile-map-building-card-type-resource { --live-building-card-color: #795034; }
  .live-mobile-map-building-card-type-construction { --live-building-card-color: #70452d; }
  .live-mobile-map-building-layer {
    opacity: 1;
  }

  .live-mobile-map-building-marker {
    stroke-width: 1.6px;
  }

  .live-mobile-map-building-icon * {
    vector-effect: non-scaling-stroke;
  }

  .live-mobile-map-place {
    position: absolute;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.16rem;
    max-width: 8rem;
    padding: 0.08rem 0.22rem;
    border-radius: 4px;
    background: rgba(21, 29, 23, 0.62);
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.64rem;
    font-weight: 750;
    line-height: 1.1;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.82);
    white-space: nowrap;
    transform: translate(-50%, -50%);
  }

  .live-mobile-map-place.major {
    font-size: 0.78rem;
  }

  .live-mobile-map-place.live-active {
    z-index: 3;
  }

  .live-mobile-map-place.live-radio-active {
    z-index: 4;
  }

  .live-mobile-map-place .live-radio-waves {
    width: 1rem;
    height: 1rem;
  }

  .live-mobile-map-place .live-city-dot {
    width: 0.54rem;
    height: 0.54rem;
  }

  .live-mobile-map-context-place {
    position: absolute;
    z-index: 8;
    right: calc(env(safe-area-inset-right) + 1rem);
    bottom: calc(env(safe-area-inset-bottom) + 1rem);
    display: inline-flex;
    align-items: center;
    gap: 0.16rem;
    max-width: min(15rem, calc(100vw - 8rem));
    padding: 0.08rem 0.22rem;
    border-radius: 4px;
    background: rgba(21, 29, 23, 0.62);
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.78rem;
    font-weight: 750;
    line-height: 1.1;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.82);
    white-space: nowrap;
    pointer-events: none;
  }

  .live-mobile-map-context-place strong {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .live-mobile-map-context-place .live-city-dot {
    display: none;
    width: 0.54rem;
    height: 0.54rem;
  }

  .live-mobile-map-context-place.live-presence-single .live-city-dot,
  .live-mobile-map-context-place.live-presence-pair .live-city-dot,
  .live-mobile-map-context-place.live-presence-group .live-city-dot {
    display: block;
    animation: live-pulse 1.8s ease-in-out infinite;
  }

  .live-mobile-map-context-place.live-presence-single .live-city-dot,
  .live-mobile-map-context-place.live-presence-pair .live-city-dot {
    display: block;
  }

  .live-mobile-map-context-place.live-presence-single .live-city-dot {
    --live-dot-rgb: 120, 189, 94;
  }

  .live-mobile-map-context-place.live-presence-pair .live-city-dot {
    --live-dot-rgb: 253, 174, 97;
  }

  .live-mobile-map-context-place.live-presence-group .live-city-dot {
    --live-dot-rgb: 239, 63, 54;
  }

  .live-mobile-map-scale {
    position: absolute;
    z-index: 8;
    left: calc(env(safe-area-inset-left) + 1rem);
    bottom: calc(env(safe-area-inset-bottom) + 1rem);
    display: grid;
    gap: 0.2rem;
    color: #172016;
    pointer-events: none;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.92);
  }

  .live-mobile-map-scale-label {
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
  }

  .live-mobile-map-scale-bar {
    position: relative;
    display: block;
    width: 6rem;
    height: 0.58rem;
    border-bottom: 3px solid rgba(23, 32, 22, 0.92);
  }

  .live-mobile-map-scale-bar::before,
  .live-mobile-map-scale-bar::after {
    content: "";
    position: absolute;
    bottom: -3px;
    width: 3px;
    height: 0.58rem;
    background: rgba(23, 32, 22, 0.92);
  }

  .live-mobile-map-scale-bar::before {
    left: 0;
  }

  .live-mobile-map-scale-bar::after {
    right: 0;
  }

  .live-mobile-map-close {
    position: absolute;
    z-index: 8;
    top: calc(env(safe-area-inset-top) + 0.75rem);
    left: calc(env(safe-area-inset-left) + 0.75rem);
    display: grid;
    width: 3.25rem;
    height: 3.25rem;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #101510;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    font-size: 1.65rem;
    font-weight: 850;
    line-height: 1;
    touch-action: manipulation;
  }

  .live-mobile-map-radio {
    z-index: 8;
    top: calc(env(safe-area-inset-top) + 2.9rem);
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .live-mobile-map-filter-button {
    top: calc(env(safe-area-inset-top) + 0.75rem);
  }

  .live-mobile-map-locate-button {
    top: calc(env(safe-area-inset-top) + 4.52rem);
  }

  .live-mobile-map-locate-button.is-gps-following {
    background: rgba(82, 163, 235, 0.34);
    color: #0d5caa;
    box-shadow: 0 0 0 0.12rem rgba(47, 134, 218, 0.42), 0 8px 24px rgba(0, 0, 0, 0.3);
  }

  .live-mobile-map-gps-button {
    top: calc(env(safe-area-inset-top) + 0.75rem);
  }

  .live-mobile-map-modal.has-gps-session .live-mobile-map-filter-button {
    top: calc(env(safe-area-inset-top) + 4.52rem);
  }

  .live-mobile-map-modal.has-gps-session .live-mobile-map-locate-button {
    top: calc(env(safe-area-inset-top) + 8.29rem);
  }

  .live-mobile-map-gps-button.is-gps-mode-active {
    background: rgba(82, 163, 235, 0.34);
    color: #0d5caa;
    box-shadow: 0 0 0 0.12rem rgba(47, 134, 218, 0.42), 0 8px 24px rgba(0, 0, 0, 0.3);
  }

  .live-mobile-map-gps-guidance {
    z-index: 9;
    right: calc(env(safe-area-inset-right) + 4.75rem);
  }

  .live-mobile-map-modal.is-gps-mode .live-mobile-map-locate-button {
    display: none;
  }

  .live-mobile-map-gps-player,
  .live-mobile-map-gps-companion {
    position: absolute;
    z-index: 6;
    width: 1.05rem;
    height: 1.05rem;
    border: 0.18rem solid rgba(255, 255, 255, 0.96);
    border-radius: 999px;
    background: #2587ec;
    box-shadow: 0 0 0 0.12rem rgba(21, 94, 171, 0.44), 0 2px 7px rgba(8, 37, 75, 0.48);
    pointer-events: none;
    transform: translate(-50%, -50%);
  }

  .live-mobile-map-gps-player::before,
  .live-mobile-map-gps-companion::before {
    content: "";
    position: absolute;
    z-index: -1;
    display: none;
    left: 50%;
    bottom: 50%;
    width: 5.6rem;
    height: 5.6rem;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    background: linear-gradient(to top, rgba(37, 135, 236, 0.44) 0%, rgba(37, 135, 236, 0.1) 68%, rgba(37, 135, 236, 0) 100%);
    transform: translateX(-50%) rotate(var(--live-mobile-map-gps-heading, 0deg));
    transform-origin: 50% 100%;
    pointer-events: none;
  }

  .live-mobile-map-gps-player.has-gps-heading::before,
  .live-mobile-map-gps-companion.has-gps-heading::before {
    display: block;
  }

  .live-mobile-map-gps-player::after,
  .live-mobile-map-gps-companion::after {
    content: "";
    position: absolute;
    inset: -0.52rem;
    border: 0.15rem solid rgba(37, 135, 236, 0.76);
    border-radius: inherit;
    animation: live-mobile-map-gps-player-pulse 1.45s ease-out infinite;
  }

  .live-mobile-map-gps-companion {
    background: #268f49;
    box-shadow: 0 0 0 0.12rem rgba(23, 112, 51, 0.44), 0 2px 7px rgba(7, 56, 25, 0.48);
  }

  .live-mobile-map-gps-companion::before {
    background: linear-gradient(to top, rgba(38, 143, 73, 0.44) 0%, rgba(38, 143, 73, 0.1) 68%, rgba(38, 143, 73, 0) 100%);
  }

  .live-mobile-map-gps-companion::after {
    border-color: rgba(38, 143, 73, 0.76);
  }

  @keyframes live-mobile-map-gps-player-pulse {
    0% { transform: scale(0.55); opacity: 0.96; }
    76%, 100% { transform: scale(1.32); opacity: 0; }
  }

  .live-mobile-map-vehicle-filter-panel {
    top: calc(env(safe-area-inset-top) + 0.75rem);
    max-height: calc(100% - 5.3rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }

  .live-mobile-map-loading {
    position: absolute;
    z-index: 7;
    top: 50%;
    left: 50%;
    padding: 0.55rem 0.78rem;
    border: 1px solid rgba(50, 72, 55, 0.64);
    border-radius: 999px;
    background: rgba(247, 249, 245, 0.94);
    color: #27432d;
    font-size: 0.82rem;
    font-weight: 750;
    transform: translate(-50%, -50%);
    white-space: nowrap;
  }

  .live-mobile-map-loading[hidden] {
    display: none;
  }
}
/* Configuration territoriale des Shops. */
.territory-shop-configuration-list {
  display: grid;
  gap: 10px;
}

.territory-shop-configuration-row {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid rgba(136, 183, 102, .28);
  border-radius: 13px;
  background: rgba(13, 24, 14, .82);
  color: var(--text, #f2f5ef);
  font: inherit;
  text-align: left;
}

.territory-shop-configuration-row.is-action { appearance: none; -webkit-appearance: none; cursor: pointer; }
.territory-shop-configuration-row.is-action { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.territory-shop-configuration-row.is-action.is-closed { grid-template-columns: auto minmax(0, 1fr) auto; }
.territory-shop-configuration-row.is-current { border-color: #91c96a; box-shadow: 0 0 0 1px rgba(145, 201, 106, .3) inset; }
.territory-shop-configuration-row.is-empty { opacity: 1; }
.territory-shop-configuration-row > b { min-width: 2.1rem; color: #d9f59f; text-align: center; }

.territory-region-name-pill {
  width: fit-content;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(116, 157, 85, .2);
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 700;
}

.territory-shop-price-modifier { font-size: 1rem; line-height: 1.25; font-weight: 800; white-space: nowrap; }
.territory-shop-access { min-width: 2.35rem; padding: 5px 8px; border-radius: 999px; color: #11210e; font-size: 1rem; line-height: 1.25; font-weight: 800; text-align: center; }
.territory-shop-access.is-all { background: #8fca68; }
.territory-shop-access.is-team { background: #eba64c; }
.territory-shop-access.is-closed { background: #df5252; color: #fff; }

.territory-shop-configuration-detail { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(136, 183, 102, .24); }
.territory-shop-configuration-detail h2 { margin: 0 0 12px; }
.territory-shop-access-choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.territory-shop-access-choice-button {
  min-height: 44px;
  padding: 0 8px;
  border: 1px solid rgba(128, 185, 92, .56);
  border-radius: 10px;
  background: rgba(128, 185, 92, .12);
  color: var(--text, #f2f5ef);
  font: inherit;
  font-weight: 750;
}
.territory-shop-access-choice-button.is-all.is-selected { background: #8fca68; color: #11210e; }
.territory-shop-access-choice-button.is-team.is-selected { background: #eba64c; color: #271708; }
.territory-shop-access-choice-button.is-closed.is-selected { background: #df5252; color: #fff; }
.territory-shop-slider { display: grid; gap: 9px; margin-top: 16px; font-weight: 700; }
.territory-shop-slider input { width: 100%; accent-color: #91c96a; }

.shop-trade-context.is-restricted { display: grid; gap: 3px; }
.shop-trade-context.is-restricted #shop-trade-type { color: var(--red); }

.shop-credit-history { display: grid; gap: 9px; }
.shop-credit-history-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid rgba(136, 183, 102, .24); border-radius: 12px; background: rgba(13, 24, 14, .74); }
.shop-credit-history-row span { display: grid; gap: 3px; }
.shop-credit-history-row small { color: rgba(237, 244, 230, .68); }
.shop-credit-history-row b { white-space: nowrap; }
.shop-credit-history-row b.is-credit { color: #9edc73; }
.shop-credit-history-row b.is-debit { color: #ee8d8d; }

/* Gestion privée du Shop. */
.shop-management-shell { max-width: 920px; padding-top: max(22px, env(safe-area-inset-top)); padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.shop-management-panel, .shop-management-access { display: grid; gap: 18px; }
.shop-management-access { max-width: 430px; margin: max(8vh, 28px) auto; }
.shop-management-heading { display: grid; gap: 6px; }
.shop-management-heading h1, .shop-management-heading h2, .shop-management-heading p { margin: 0; }
.shop-management-heading h1 { font-size: clamp(1.9rem, 6vw, 2.45rem); }
.shop-management-heading p:not(.eyebrow) { color: rgba(237, 244, 230, .68); font-size: 1rem; font-weight: 650; }
.shop-management-access-form { display: grid; gap: 11px; }
.shop-management-access-form label, .shop-management-fields label, .shop-management-availability { display: grid; gap: 7px; color: rgba(237, 244, 230, .78); font-size: .92rem; font-weight: 750; }
.shop-management-access-form input, .shop-management-fields input, .shop-management-fields select {
  width: 100%; min-height: 48px; box-sizing: border-box; padding: 0 13px;
  border: 1px solid rgba(136, 183, 102, .46); border-radius: 11px;
  background: rgba(8, 18, 10, .88); color: var(--text, #f2f5ef); font: inherit; font-weight: 700;
}
.shop-management-access-form input:focus, .shop-management-fields input:focus, .shop-management-fields select:focus { outline: 2px solid rgba(145, 201, 106, .82); outline-offset: 2px; }
.shop-management-access-form button, .shop-management-form footer button {
  min-height: 48px; padding: 0 16px; border: 1px solid #91c96a; border-radius: 11px;
  background: rgba(108, 166, 73, .24); color: #e8f7d9; font: inherit; font-weight: 800;
}
.shop-management-access-form button:active, .shop-management-form footer button:active { background: rgba(145, 201, 106, .42); }
.shop-management-access-message { margin: 0; color: #e6bd70; font-weight: 750; }
.shop-management-search { margin: 0; }
.shop-management-groups { display: flex; gap: 8px; overflow-x: auto; padding: 1px 1px 7px; scrollbar-width: thin; }
.shop-management-group {
  flex: 0 0 auto; min-height: 38px; display: inline-flex; align-items: center; gap: 7px; padding: 0 11px;
  border: 1px solid rgba(136, 183, 102, .32); border-radius: 999px; background: rgba(18, 31, 19, .9);
  color: rgba(237, 244, 230, .82); font: inherit; font-size: .88rem; font-weight: 760;
}
.shop-management-group span { display: inline-grid; min-width: 1.45rem; height: 1.45rem; place-items: center; border-radius: 999px; background: rgba(145, 201, 106, .18); color: #d9f59f; font-size: .75rem; }
.shop-management-group.is-selected { border-color: #91c96a; background: rgba(89, 139, 62, .3); color: #f2f9ea; box-shadow: 0 0 0 1px rgba(145, 201, 106, .18) inset; }
.shop-management-list { display: grid; gap: 9px; }
.shop-management-item {
  width: 100%; min-height: 67px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 12px; border: 1px solid rgba(136, 183, 102, .25); border-radius: 13px; background: rgba(10, 21, 12, .74);
  color: var(--text, #f2f5ef); font: inherit; text-align: left;
}
.shop-management-item:active, .shop-management-item.is-selected { border-color: #91c96a; background: rgba(49, 82, 38, .27); }
.shop-management-item-main, .shop-management-item-side { display: grid; gap: 4px; min-width: 0; }
.shop-management-item-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1rem; }
.shop-management-item-main small, .shop-management-item-side small { overflow: hidden; color: rgba(237, 244, 230, .62); text-overflow: ellipsis; white-space: nowrap; }
.shop-management-item-side { justify-items: end; text-align: right; }
.shop-management-item-side b { color: #b2e988; font-size: .97rem; white-space: nowrap; }
.shop-management-item-side .is-available { color: #9edc73; }
.shop-management-item-side .is-paused { color: #e6bd70; }
.shop-management-empty { margin: 6px 0; padding: 18px; border: 1px solid rgba(136, 183, 102, .24); border-radius: 13px; color: rgba(237, 244, 230, .68); text-align: center; }
.shop-management-detail { position: sticky; z-index: 2; top: calc(env(safe-area-inset-top) + 8px); border: 1px solid rgba(145, 201, 106, .56); border-radius: 14px; background: rgba(16, 31, 17, .98); box-shadow: 0 12px 28px rgba(0, 0, 0, .32); }
.shop-management-form { display: grid; gap: 14px; padding: 15px; }
.shop-management-form > header { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.shop-management-form header span { min-width: 0; display: grid; gap: 4px; }
.shop-management-form header small { color: #9edc73; font-weight: 760; }
.shop-management-form h2, .shop-management-form p { margin: 0; }
.shop-management-form h2 { font-size: 1.23rem; }
.shop-management-form p { overflow: hidden; color: rgba(237, 244, 230, .62); font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.shop-management-detail-close { width: 38px; min-width: 38px; height: 38px; border: 1px solid rgba(136, 183, 102, .4); border-radius: 10px; background: rgba(23, 37, 23, .94); color: #e6eee0; font: inherit; font-size: 1.65rem; line-height: 1; }
.shop-management-fields { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 10px; }
.shop-management-availability { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 11px; border: 1px solid rgba(136, 183, 102, .25); border-radius: 11px; background: rgba(9, 20, 11, .58); }
.shop-management-availability input { width: 1.3rem; height: 1.3rem; margin: 0; accent-color: #91c96a; }
.shop-management-availability span { display: grid; gap: 3px; }
.shop-management-availability strong { color: var(--text, #f2f5ef); }
.shop-management-availability small { color: rgba(237, 244, 230, .62); font-weight: 600; }
.shop-management-form footer { display: flex; justify-content: end; }
.shop-management-form footer button { min-width: 142px; }
.shop-management-form footer button:disabled { opacity: .66; }
@media (max-width: 430px) {
  .shop-management-shell { padding-inline: 12px; }
  .shop-management-fields { grid-template-columns: 1fr; }
  .shop-management-item { padding: 11px; }
  .shop-management-item-main small { max-width: 11rem; }
}
