:root {
  color-scheme: dark;
  font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
  --charcoal: #10110f;
  --surface: #181a18;
  --surface-raised: #20221f;
  --surface-soft: #292b27;
  --bone: #f3eee4;
  --muted: #aaa79f;
  --line: #3c3d38;
  --purple: #4a1d5e;
  --purple-light: #724188;
  --amber: #d9a22e;
  --green: #8fa94d;
  --red: #db634d;
  --shadow: 0 26px 80px rgba(0, 0, 0, .34);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--charcoal);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--bone);
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px),
    radial-gradient(circle at 82% 0%, rgba(74,29,94,.26), transparent 32%),
    var(--charcoal);
  background-size: 30px 30px, 30px 30px, auto, auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

textarea {
  width: 100%;
  min-height: 150px;
  padding: 13px 14px;
  color: var(--bone);
  background: #121310;
  border: 1px solid #484943;
  border-radius: 2px;
  outline: none;
  resize: vertical;
  line-height: 1.5;
}

#config-rustplus-auth-source {
  min-height: 130px;
}

#config-pairing-text {
  min-height: 180px;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 36vw;
  height: 36vw;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .16;
  pointer-events: none;
}

.ambient-left {
  left: -20vw;
  bottom: -18vw;
  background: var(--amber);
}

.ambient-right {
  right: -16vw;
  top: -16vw;
  background: var(--purple-light);
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--amber);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-lockup img {
  border: 1px solid rgba(217,162,46,.4);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(74,29,94,.28);
}

.brand-lockup h1,
.brand-lockup strong,
.brand-lockup small {
  display: block;
  margin: 0;
}

.brand-lockup h1 {
  font-size: 27px;
  letter-spacing: .1em;
}

.brand-lockup.compact {
  gap: 12px;
}

.brand-lockup.compact strong {
  font-size: 19px;
  letter-spacing: .08em;
}

.brand-lockup.compact small {
  margin-top: 4px;
  color: var(--amber);
  font-size: 9px;
  letter-spacing: .15em;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(420px, .65fr);
  min-height: 100vh;
}

.login-brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: clamp(32px, 5vw, 78px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(16,17,15,.5), rgba(16,17,15,.97)),
    radial-gradient(circle at 40% 45%, rgba(74,29,94,.72), transparent 38%);
  border-right: 1px solid var(--line);
}

.login-message {
  max-width: 760px;
  padding: 80px 0;
}

.login-message h2 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(48px, 7vw, 98px);
  line-height: .9;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.login-message > p:last-child {
  max-width: 610px;
  margin: 28px 0 0;
  color: #c7c2b9;
  font-size: 18px;
  line-height: 1.65;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.pillars li {
  display: grid;
  gap: 8px;
  padding: 20px 20px 0 0;
  color: #d8d2c7;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pillars span {
  color: var(--amber);
  font-size: 10px;
}

.login-panel {
  display: grid;
  place-items: center;
  padding: 36px;
  background: rgba(16,17,15,.86);
}

.login-card {
  width: min(100%, 440px);
  padding: 42px;
  background: rgba(31,33,30,.92);
  border: 1px solid var(--line);
  border-top: 3px solid var(--amber);
  box-shadow: var(--shadow);
}

.login-card h2 {
  margin: 0;
  font-size: 38px;
  text-transform: uppercase;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 42px;
  padding: 8px 11px;
  color: #c7d6a3;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(143,169,77,.08);
  border: 1px solid rgba(143,169,77,.28);
}

.status-chip span,
.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(143,169,77,.8);
}

form {
  display: grid;
}

label {
  margin: 22px 0 8px;
  color: #c8c3ba;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--bone);
  background: #121310;
  border: 1px solid #484943;
  border-radius: 2px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(217,162,46,.12);
}

.pairing-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

.pairing-actions .field-state {
  margin: 0;
}

.detected-pairing {
  margin-top: 16px;
  padding: 16px;
  color: #cbd7af;
  font-size: 12px;
  line-height: 1.6;
  background: rgba(143,169,77,.08);
  border: 1px solid rgba(143,169,77,.3);
}

.expert-settings {
  margin-top: 22px;
  padding: 0 16px 16px;
  background: #141512;
  border: 1px solid var(--line);
}

.expert-settings summary {
  padding: 15px 0;
  color: #9e9d96;
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.primary-button,
.secondary-button,
.small-button {
  min-height: 46px;
  padding: 0 18px;
  color: #16130d;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
  background: var(--amber);
  border: 0;
  border-radius: 2px;
}

.primary-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}

.primary-button:hover,
.small-button:hover {
  background: #efb640;
}

.primary-button:disabled {
  cursor: wait;
  opacity: .62;
}

.compact-button {
  display: inline-flex;
  width: auto;
  min-height: 42px;
  margin: 0;
}

.secondary-button {
  color: var(--bone);
  background: transparent;
  border: 1px solid var(--line);
}

.small-button {
  min-height: 38px;
  font-size: 11px;
}

.form-message {
  min-height: 20px;
  margin: 12px 0 0;
  font-size: 13px;
}

.error {
  color: #ff9b88;
}

.privacy-note {
  margin: 28px 0 0;
  padding-top: 20px;
  color: #84837d;
  font-size: 12px;
  line-height: 1.5;
  border-top: 1px solid var(--line);
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  width: 260px;
  padding: 25px 18px;
  background:
    linear-gradient(180deg, rgba(74,29,94,.2), transparent 190px),
    #111210;
  border-right: 1px solid var(--line);
}

.sidebar nav {
  display: grid;
  gap: 6px;
  margin-top: 54px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 13px;
  color: #96958f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .09em;
  text-align: left;
  text-transform: uppercase;
  background: transparent;
  border: 0;
  border-left: 3px solid transparent;
}

.nav-item:hover {
  color: var(--bone);
  background: rgba(255,255,255,.035);
}

.nav-item.active {
  color: var(--bone);
  background: linear-gradient(90deg, rgba(74,29,94,.5), transparent);
  border-left-color: var(--amber);
}

.nav-mark {
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  background: currentColor;
  opacity: .75;
}

.sidebar-footer {
  display: grid;
  gap: 18px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.environment {
  display: flex;
  align-items: center;
  gap: 11px;
}

.environment strong,
.environment small {
  display: block;
}

.environment strong {
  font-size: 12px;
  text-transform: uppercase;
}

.environment small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.text-button {
  padding: 0;
  color: #bcb8af;
  text-align: left;
  background: none;
  border: 0;
}

.workspace {
  grid-column: 2;
  width: 100%;
  max-width: 1640px;
  margin: 0 auto;
  padding: 30px clamp(26px, 4vw, 64px) 70px;
}

.topbar {
  display: flex;
  align-items: center;
  min-height: 72px;
  margin-bottom: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.topbar h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.account {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.account-copy strong,
.account-copy small {
  display: block;
  text-align: right;
}

.account-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.account-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #160f19;
  font-weight: 900;
  background: var(--amber);
  border-radius: 50%;
}

.menu-button {
  display: none;
  width: 40px;
  height: 40px;
  margin-right: 14px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--bone);
}

.hero-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 245px;
  padding: clamp(30px, 4vw, 58px);
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(74,29,94,.62), rgba(24,26,24,.76) 60%),
    var(--surface);
  border: 1px solid #4a3c4d;
  border-left: 4px solid var(--amber);
  box-shadow: var(--shadow);
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -130px;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(217,162,46,.18);
  border-radius: 50%;
}

.hero-panel h2 {
  max-width: 740px;
  margin: 0;
  font-size: clamp(32px, 4vw, 58px);
  line-height: .98;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.hero-panel p:last-child {
  max-width: 700px;
  margin: 20px 0 0;
  color: #c4c0b7;
  font-size: 16px;
  line-height: 1.6;
}

.hero-emblem {
  z-index: 1;
  flex: 0 0 auto;
  margin-left: 35px;
}

.hero-emblem img {
  width: clamp(110px, 13vw, 175px);
  border-radius: 28px;
  box-shadow: 0 26px 70px rgba(0,0,0,.34);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 24px;
  background: var(--line);
  border: 1px solid var(--line);
}

.metric-card {
  min-height: 152px;
  padding: 25px;
  background: var(--surface);
}

.metric-card p,
.metric-card span {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin: 17px 0 12px;
  font-size: 32px;
}

.metric-card.secure strong {
  color: var(--green);
  font-size: 24px;
  letter-spacing: .06em;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .45fr);
  gap: 24px;
  margin-top: 24px;
}

.panel {
  padding: 27px;
  background: rgba(24,26,24,.92);
  border: 1px solid var(--line);
}

.panel-heading,
.section-heading,
.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.panel h2,
.section-heading h2,
.dialog-heading h2 {
  margin: 0;
  font-size: 24px;
  text-transform: uppercase;
}

.section-heading {
  align-items: end;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.section-heading p:last-child {
  margin-bottom: 0;
}

.session-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.session-row,
.session-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  padding: 18px;
  background: #131412;
  border: 1px solid #343632;
}

.session-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  grid-column: 1 / -1;
  padding-top: 14px;
  border-top: 1px solid #30312e;
}

.action-button {
  min-height: 34px;
  padding: 0 11px;
  color: #c8c5bc;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid #454741;
}

.action-button:hover {
  color: var(--bone);
  border-color: var(--amber);
}

.action-button.start {
  color: #c7d6a3;
  border-color: rgba(143,169,77,.42);
}

.action-button.stop {
  color: #ffad9d;
  border-color: rgba(219,99,77,.42);
}

.session-row::before,
.session-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #6a6c65;
}

.session-row[data-status="running"]::before,
.session-card[data-status="running"]::before {
  background: var(--green);
}

.session-copy strong,
.session-copy small {
  display: block;
}

.session-copy small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}

.session-status {
  align-self: start;
  padding: 6px 8px;
  color: #c1c0ba;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid var(--line);
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 170px;
  padding: 25px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed #484943;
}

.posture-panel {
  background:
    linear-gradient(150deg, rgba(74,29,94,.34), transparent 65%),
    var(--surface);
}

.security-list {
  display: grid;
  gap: 15px;
  margin: 30px 0;
  padding: 0;
  list-style: none;
}

.security-list li {
  display: flex;
  gap: 10px;
  color: #c9c5bb;
  font-size: 13px;
}

.security-list span {
  color: var(--green);
}

.posture-score {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.posture-score span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .12em;
}

.posture-score strong {
  color: var(--green);
  letter-spacing: .08em;
}

.session-grid,
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.session-card {
  min-height: 130px;
  padding: 24px;
}

.security-card {
  min-height: 210px;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--purple-light);
}

.security-card h3 {
  margin: 24px 0 12px;
  font-size: 20px;
  text-transform: uppercase;
}

.security-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.security-number {
  color: var(--amber);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
}

dialog {
  width: min(92vw, 560px);
  padding: 0;
  color: var(--bone);
  background: #1c1e1b;
  border: 1px solid #53544f;
  border-top: 3px solid var(--amber);
  box-shadow: var(--shadow);
}

dialog.wide-dialog {
  width: min(94vw, 780px);
}

dialog::backdrop {
  background: rgba(5,6,5,.78);
  backdrop-filter: blur(5px);
}

dialog form {
  padding: 30px;
}

.icon-button {
  width: 36px;
  height: 36px;
  color: var(--muted);
  font-size: 25px;
  background: transparent;
  border: 1px solid var(--line);
}

.configuration-note {
  display: grid;
  gap: 7px;
  margin-top: 24px;
  padding: 16px;
  color: #c9c5bb;
  font-size: 12px;
  line-height: 1.45;
  background: rgba(74,29,94,.22);
  border-left: 3px solid var(--purple-light);
}

.wizard-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 28px 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.wizard-progress li {
  display: grid;
  gap: 6px;
  padding: 0 10px 14px;
  color: #777872;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
}

.wizard-progress li span {
  color: inherit;
  font-size: 9px;
}

.wizard-progress li.active {
  color: var(--bone);
  border-color: var(--amber);
}

.wizard-progress li.complete {
  color: var(--green);
}

.wizard-step {
  min-height: 350px;
}

.step-intro {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.55;
}

.discord-connect-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
  background: #11130f;
  border: 1px solid var(--line);
  border-left: 3px solid #5865f2;
}

.discord-connect-card p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.discord-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: white;
  font-weight: 900;
  background: #5865f2;
  border-radius: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}

@media (max-width: 620px) {
  .discord-connect-card {
    grid-template-columns: auto 1fr;
  }

  .discord-connect-card button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

.field-wide {
  grid-column: 1 / -1;
}

.field-state {
  min-height: 16px;
  margin-top: 7px;
  color: var(--green);
  font-size: 11px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  color: #c8c5bc;
  text-transform: none;
}

.check-row input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--amber);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 20px;
  background: var(--line);
  border: 1px solid var(--line);
}

.review-grid article {
  min-height: 100px;
  padding: 18px;
  background: #141512;
}

.review-grid span,
.review-grid strong {
  display: block;
}

.review-grid span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.review-grid strong {
  margin-top: 14px;
  font-size: 14px;
}

.wizard-actions {
  align-items: center;
}

.wizard-actions #configure-back {
  margin-right: auto;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  max-width: 360px;
  padding: 14px 18px;
  color: #15150f;
  font-size: 13px;
  font-weight: 800;
  background: var(--amber);
  box-shadow: var(--shadow);
  transform: translateY(140%);
  transition: transform .22s ease;
}

.toast.visible {
  transform: translateY(0);
}

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

  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 840px) {
  .login-layout {
    grid-template-columns: 1fr;
  }

  .login-brand {
    min-height: auto;
    padding: 30px;
  }

  .login-message {
    padding: 70px 0;
  }

  .login-panel {
    min-height: 620px;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform .2s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .workspace {
    grid-column: 1;
    padding: 22px;
  }

  .menu-button {
    display: block;
  }

  .hero-emblem {
    display: none;
  }
}

@media (max-width: 620px) {
  .pillars,
  .metric-grid,
  .session-grid,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .login-message h2 {
    font-size: 46px;
  }

  .login-panel,
  .login-card {
    padding: 24px;
  }

  .account-copy {
    display: none;
  }

  .hero-panel {
    min-height: 300px;
    padding: 28px;
  }

  .section-heading,
  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .dialog-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .wizard-progress {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 0;
  }

  .form-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .field-wide {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.steam-connect-card {
  align-items: center;
  background:
    linear-gradient(110deg, rgba(74, 29, 94, 0.34), transparent 58%),
    var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--purple);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 18px;
}

.steam-connect-card strong {
  display: block;
  font-weight: 900;
  font-size: 1.08rem;
  margin: 4px 0 6px;
  text-transform: uppercase;
}

.steam-connect-card p {
  margin: 0;
}

.steam-button {
  background: #1b2838;
  border: 1px solid #66c0f4;
  color: #fff;
  cursor: pointer;
  flex: 0 0 auto;
  font-weight: 800;
  letter-spacing: 0.08em;
  min-height: 44px;
  padding: 0 18px;
  text-transform: uppercase;
}

.steam-button:hover,
.steam-button:focus-visible {
  background: #2a475e;
  outline: 2px solid #66c0f4;
  outline-offset: 2px;
}

.rustplus-source-instructions {
  background: rgba(217, 162, 46, 0.07);
  border-left: 2px solid var(--amber);
  color: var(--muted);
  margin-bottom: 14px;
  padding: 12px 16px;
}

.rustplus-source-instructions strong {
  color: var(--bone);
}

.rustplus-source-instructions ol {
  margin: 8px 0 0;
  padding-left: 20px;
}

.rustplus-source-instructions li + li {
  margin-top: 4px;
}

.pairing-guide {
  display: grid;
  gap: 6px;
  margin-bottom: 4px;
  padding: 14px 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  background: rgba(74, 29, 94, 0.16);
  border-left: 2px solid var(--purple-light);
}

.pairing-guide strong {
  color: var(--bone);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.live-map-heading {
  gap: 28px;
}

.live-map-session-picker {
  display: grid;
  gap: 7px;
  min-width: min(360px, 100%);
}

.live-map-session-picker label,
.live-map-toolbar label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.live-map-layout {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) 290px;
}

.live-map-panel {
  min-width: 0;
  padding: 16px;
}

.live-map-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-bottom: 14px;
}

.live-map-toolbar label {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  gap: 7px;
}

.live-map-toolbar .action-button:first-of-type {
  margin-left: auto;
}

.live-map-stage {
  aspect-ratio: 1 / 1;
  background:
    linear-gradient(rgba(217, 162, 46, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 162, 46, .035) 1px, transparent 1px),
    #0b0d0c;
  background-size: 30px 30px;
  border: 1px solid var(--line);
  cursor: grab;
  min-height: 420px;
  overflow: hidden;
  position: relative;
}

.live-map-stage:active {
  cursor: grabbing;
}

.live-map-stage.placing,
.live-map-stage.placing:active {
  cursor: crosshair;
  outline: 2px solid var(--amber);
  outline-offset: -2px;
}

#live-map-canvas {
  display: block;
  touch-action: none;
}

.live-map-empty {
  color: var(--muted);
  left: 50%;
  max-width: 320px;
  position: absolute;
  text-align: center;
  top: 50%;
  transform: translate(-50%, -50%);
}

.live-map-tooltip {
  background: rgba(15, 16, 14, .96);
  border: 1px solid var(--amber);
  color: var(--bone);
  font-size: 12px;
  max-width: 190px;
  padding: 7px 9px;
  pointer-events: none;
  position: absolute;
  z-index: 3;
}

.live-map-help {
  color: var(--muted);
  font-size: 11px;
  margin: 10px 0 0;
}

.live-map-side {
  align-self: start;
}

.live-map-metrics {
  border-top: 1px solid var(--line);
  margin: 18px 0 24px;
}

.live-map-metrics > div {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
}

.live-map-metrics span {
  color: var(--muted);
  font-size: 12px;
}

.live-map-metrics strong {
  color: var(--amber);
  font-size: 18px;
}

.live-map-privacy {
  background: rgba(74, 29, 94, .16);
  border-left: 2px solid var(--purple-light);
  margin-bottom: 18px;
  padding: 14px;
}

.live-map-privacy strong,
.heatmap-opt-in strong {
  color: var(--bone);
  display: block;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.live-map-privacy p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  margin: 0;
}

.heatmap-opt-in {
  align-items: flex-start;
  color: var(--muted);
  display: flex;
  font-size: 11px;
  gap: 10px;
  line-height: 1.45;
}

.live-map-clear {
  color: #de7a68;
  font-size: 11px;
  margin: 12px 0 24px;
  padding: 0;
  text-align: left;
}

.team-plan-actions {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.team-plan-actions button {
  width: 100%;
}

.resource-layer-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.resource-layer-list label {
  align-items: center;
  display: flex;
  gap: 8px;
}

.annotation-heading {
  align-items: end;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding-top: 18px;
}

.annotation-heading p {
  margin: 0;
}

.annotation-heading span {
  color: var(--muted);
  font-size: 10px;
}

.annotation-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.annotation-row {
  align-items: center;
  background: rgba(255, 255, 255, .025);
  border: 1px solid var(--line);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 9px 10px;
}

.annotation-row strong,
.annotation-row small {
  display: block;
}

.annotation-row strong {
  color: var(--bone);
  font-size: 12px;
}

.annotation-row small {
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}

.annotation-remove {
  background: transparent;
  border: 0;
  color: #de7a68;
  cursor: pointer;
  font-size: 20px;
}

#map-annotation-dialog {
  width: min(480px, calc(100vw - 30px));
}

#map-annotation-form {
  display: grid;
  gap: 10px;
}

#map-zone-fields,
#map-resource-fields {
  display: grid;
  gap: 10px;
}

#map-zone-fields[hidden],
#map-resource-fields[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .steam-connect-card {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 1100px) {
  .live-map-layout {
    grid-template-columns: 1fr;
  }

  .live-map-side {
    width: auto;
  }
}

@media (max-width: 640px) {
  .live-map-stage {
    min-height: 300px;
  }

  .live-map-toolbar .action-button:first-of-type {
    margin-left: 0;
  }
}
