:root {
  --bg: #0c1117;
  --bg-2: #101823;
  --panel: rgba(18, 24, 33, 0.72);
  --panel-2: rgba(22, 30, 40, 0.78);
  --panel-3: rgba(26, 35, 46, 0.82);

  --line: rgba(200, 106, 111, 0.20);
  --line-strong: rgba(200, 106, 111, 0.36);

  --text: #e6edf3;
  --text-soft: #c8d2db;
  --muted: #9aaab7;

  --accent: #c86a6f;
  --accent-2: #b4575d;
  --accent-soft: rgba(200, 106, 111, 0.18);
  --accent-strong: rgba(200, 106, 111, 0.30);
  --accent-border: rgba(200, 106, 111, 0.36);
  --cream: #f3e7d4;
  --glow: rgba(200, 106, 111, 0.18);

  --success: #67de9a;
  --danger: #e66b79;
  --warning: #e0b15c;
  --info: #8bb8d8;

  --shadow-lg: 0 18px 44px rgba(0, 0, 0, 0.26);
  --shadow-md: 0 10px 26px rgba(0, 0, 0, 0.20);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.14);
}


* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  color: var(--text);
  background-image:
    radial-gradient(1100px 650px at 50% 30%, rgba(200, 106, 111, 0.16), rgba(0, 0, 0, 0) 62%),
    radial-gradient(900px 600px at 18% 78%, rgba(120, 180, 255, 0.07), rgba(0, 0, 0, 0) 65%),
    linear-gradient(180deg, rgba(8, 12, 16, 0.52) 0%, rgba(8, 12, 16, 0.68) 55%, rgba(8, 12, 16, 0.78) 100%),
    url("/assets/bg-city-night.png");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: #07090d;
}


.topbar {
  position: relative;
  min-height: 68px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 230px;
  align-items: center;
  gap: 18px;
  padding: 10px max(18px, calc((100vw - 1240px) / 2 + 18px)) 12px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(200, 106, 111, 0.05), transparent 22%, transparent 78%, rgba(200, 106, 111, 0.05)),
    rgba(10, 14, 19, 0.84);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.stats-page {
  display: grid;
  gap: 18px;
}

.stats-banner {
  min-height: 150px;
  --banner-image: url("/assets/banners/cb-statistics.png");
}

.stats-layout,
.stats-ranking-grid {
  display: grid;
  gap: 16px;
}

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

.stats-wide-card {
  grid-column: 1 / -1;
}

.stats-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid rgba(140, 166, 184, 0.14);
  border-radius: 14px;
  overflow: hidden;
}

.stats-summary-item,
.stats-rank-row,
.stats-kill-row,
.stats-counter-row,
.stats-table-head,
.stats-table-row {
  display: grid;
  align-items: center;
  min-height: 38px;
  padding: 10px 13px;
  border-bottom: 1px solid rgba(140, 166, 184, 0.12);
  background: rgba(13, 19, 27, 0.42);
  font-size: 13px;
}

.stats-summary-item:nth-child(odd) {
  border-right: 1px solid rgba(140, 166, 184, 0.12);
}

.stats-summary-item:nth-last-child(-n + 2),
.stats-rank-row:last-child,
.stats-kill-row:last-child,
.stats-counter-row:last-child,
.stats-table-row:last-child {
  border-bottom: 0;
}

.stats-summary-item,
.stats-counter-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
}

.stats-summary-item span,
.stats-counter-row span,
.stats-kill-row span,
.stats-rank-row span {
  color: var(--muted);
}

.stats-summary-item strong,
.stats-counter-row strong,
.stats-rank-row strong,
.stats-kill-row strong {
  color: var(--text-soft);
  font-weight: 650;
}

.stats-rank-list,
.stats-kill-list,
.stats-counter-list,
.stats-table {
  overflow: hidden;
  border: 1px solid rgba(140, 166, 184, 0.14);
  border-radius: 14px;
}

.stats-rank-row {
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
}

.stats-kill-row {
  grid-template-columns: 125px minmax(0, 1fr);
  gap: 14px;
}

.stats-table-head,
.stats-table-row {
  grid-template-columns: minmax(160px, 1.4fr) repeat(3, minmax(82px, 0.55fr));
  gap: 12px;
}

.stats-syndicate-table .stats-table-head,
.stats-syndicate-table .stats-table-row {
  grid-template-columns: 84px minmax(120px, 1fr) minmax(88px, 0.48fr) minmax(88px, 0.5fr);
  gap: 10px;
}

.link-btn {
  display: inline;
  width: auto;
  min-height: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-soft);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.link-btn:hover {
  color: var(--accent);
}

.inline-profile-link {
  display: inline;
  width: auto;
  min-height: auto;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-align: inherit;
  cursor: pointer;
  box-shadow: none;
  vertical-align: baseline;
}

.inline-profile-link:hover {
  color: var(--accent);
}

.stats-table-head {
  background: rgba(31, 25, 35, 0.78);
  color: var(--cream);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 10px;
}

.stats-table-row {
  color: var(--text-soft);
}

.stats-table-row span:not(:first-child),
.stats-table-head span:not(:first-child) {
  text-align: right;
}

.stats-syndicate-table .stats-table-row span:nth-child(2),
.stats-syndicate-table .stats-table-head span:nth-child(2) {
  text-align: left;
}

@media (max-width: 760px) {
  .stats-ranking-grid,
  .stats-summary-grid {
    grid-template-columns: 1fr;
  }

  .stats-summary-item:nth-child(odd) {
    border-right: 0;
  }

  .stats-summary-item:nth-last-child(2) {
    border-bottom: 1px solid rgba(140, 166, 184, 0.12);
  }

  .stats-table-head,
  .stats-table-row {
    grid-template-columns: minmax(118px, 1fr) repeat(3, minmax(54px, 0.45fr));
    gap: 8px;
    padding: 9px 10px;
  }

  .stats-syndicate-table .stats-table-head,
  .stats-syndicate-table .stats-table-row {
    grid-template-columns: 54px minmax(88px, 1fr) minmax(58px, 0.42fr) minmax(64px, 0.44fr);
    gap: 6px;
    padding: 8px 8px;
    font-size: 12px;
  }

  .stats-kill-row {
    grid-template-columns: 82px minmax(0, 1fr);
  }
}

.topbar::after {
  content: "";
  position: absolute;
  left: max(18px, calc((100vw - 1240px) / 2 + 18px));
  right: max(18px, calc((100vw - 1240px) / 2 + 18px));
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 106, 111, 0.66), transparent);
}

.topbar-brand-wrap,
.topbar-center,
.topbar-user-wrap {
  position: relative;
  z-index: 1;
}

.topbar-brand-wrap {
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-copy {
  min-width: 0;
}

.brand-name {
  display: inline-block;
  background: linear-gradient(180deg, #fff5e7 0%, #f4e4d6 55%, #d9c7bc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: "Segoe UI Variable Display", "Aptos Display", "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.brand-subline {
  margin-top: 2px;
  color: rgba(200, 213, 224, 0.64);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(200, 106, 111, 0.16);
  background:
    radial-gradient(circle at 35% 22%, rgba(255, 245, 214, 0.10), transparent 34%),
    linear-gradient(135deg, rgba(200, 106, 111, 0.14), rgba(10, 13, 18, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 247, 224, 0.14),
    0 0 18px rgba(200, 106, 111, 0.08);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.brand-mark img {
  width: 33px;
  height: 33px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
}

.topbar-center {
  min-width: 0;
  padding: 9px 16px 10px;
  border: 1px solid rgba(200, 106, 111, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(200, 106, 111, 0.05), transparent 38%, rgba(120, 180, 255, 0.03)),
    rgba(14, 19, 26, 0.72);
  text-align: center;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.topbar-center[data-tone="accent"] {
  border-color: rgba(200, 106, 111, 0.18);
  background:
    linear-gradient(90deg, rgba(200, 106, 111, 0.10), rgba(200, 106, 111, 0.02) 42%, rgba(120, 180, 255, 0.02)),
    rgba(14, 19, 26, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 242, 230, 0.03);
}

.topbar-center[data-tone="neutral"] {
  border-color: rgba(150, 166, 181, 0.15);
}

.topbar-center-label {
  color: rgba(200, 213, 224, 0.62);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.topbar-center-message {
  margin-top: 2px;
  color: #c7d2dc;
  font-size: 12px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-center[data-tone="accent"] .topbar-center-message {
  color: #e1b0b4;
}

.topbar-center-message em {
  color: inherit;
  opacity: 0.94;
}

.topbar-user-wrap {
  min-width: 0;
  justify-self: end;
  text-align: right;
}

.topbar-user {
  min-width: 0;
  display: inline-grid;
  justify-items: end;
  gap: 2px;
  padding: 8px 12px;
  border: 1px solid rgba(200, 106, 111, 0.10);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(200, 106, 111, 0.10), transparent 40%),
    rgba(14, 19, 26, 0.74);
}

.topbar-user-name {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.topbar-user-meta {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


.auth-wrap {
  margin: 24px auto 0;
}

.auth-layout {
  max-width: 1240px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(420px, 0.88fr);
  gap: 20px;
  align-items: start;
  padding: 8px 18px 24px;
}

.auth-panel,
.auth-hero-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(12, 17, 23, 0.84);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

.auth-login-stack {
  display: grid;
  gap: 16px;
}

.auth-hero-card {
  position: relative;
  min-height: 420px;
  padding: 34px 34px 30px;
  background:
    linear-gradient(135deg, rgba(8, 12, 17, 0.88), rgba(8, 12, 17, 0.62)),
    radial-gradient(circle at 18% 18%, rgba(200, 106, 111, 0.14), transparent 26%),
    radial-gradient(circle at 82% 28%, rgba(212, 93, 103, 0.12), transparent 22%),
    rgba(12, 17, 23, 0.84);
}

.auth-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.02)),
    url("/assets/bg-city-night.png");
  background-size: cover;
  background-position: center;
  opacity: 0.16;
  pointer-events: none;
}

.auth-hero-card > * {
  position: relative;
  z-index: 1;
}

.auth-hero-kicker {
  color: #d8726b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.auth-hero-title {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.95;
  color: var(--cream);
  letter-spacing: -0.04em;
}

.auth-hero-lead {
  max-width: 620px;
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.7;
  color: #d3dde5;
}

.auth-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.auth-hero-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(200, 106, 111, 0.18);
  background: rgba(18, 24, 31, 0.58);
  color: #d8e2e8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.auth-hero-contentbox {
  max-width: 500px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(200, 106, 111, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(200, 106, 111, 0.08), rgba(200, 106, 111, 0.02)),
    rgba(14, 19, 26, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.auth-contentbox-title {
  color: var(--cream);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.auth-contentbox-text {
  margin: 0;
  color: #bfccd5;
  font-size: 13px;
  line-height: 1.7;
}

.auth-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.auth-hero-stat {
  padding: 14px 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(10, 15, 21, 0.52);
}

.auth-hero-stat-label {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.auth-hero-stat-value {
  color: #edf2f6;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.auth-register-panel .panel-body,
.auth-panel .panel-body {
  padding: 12px;
}


.panel-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  color: var(--cream);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}


.panel-body {
  padding: 10px;
}

.login-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
}

.register-grid {
  display: grid;
  gap: 10px;
}

.auth-register-intro {
  margin-bottom: 12px;
  padding: 12px 12px 10px;
  border: 1px solid rgba(200, 106, 111, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: #c5d0d8;
  line-height: 1.55;
}

.auth-register-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px;
  display: grid;
  grid-template-columns: 230px 760px 230px;
  gap: 12px;
  align-items: start;
  justify-content: center;
}


.side-panel,
.main-panel {
  width: 100%;
  background: var(--panel-2);
}

.side-panel {
  background: var(--panel);
}



.main-panel {
  max-width: 700px;
  width: 100%;
  justify-self: center;
}

.nav-section-title {
  color: var(--accent);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin: 12px 0 6px;
}


.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 2px 0;
  border-bottom: none;
}


.nav-list li:last-child {
  border-bottom: none;
}

.nav-btn-with-counter {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.nav-counter {
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(200, 106, 111, 0.22);
  border: 1px solid rgba(200, 106, 111, 0.34);
  color: #f4c0c3;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 14px rgba(200, 106, 111, 0.12);
}

.nav-cooldown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  margin-left: 6px;
  padding: 1px 6px;
  border: 1px solid rgba(200, 106, 111, 0.28);
  border-radius: 999px;
  background: rgba(200, 106, 111, 0.08);
  color: #e8c4c7;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.nav-btn,
.profile-link,
.online-name {
  min-height: auto;
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 4px 10px;
  margin: 0;
  color: var(--text-soft);
  font: inherit;
  cursor: pointer;
  text-align: left;
  border-radius: 10px;
  box-shadow: none;
  transition: background 0.16s ease, color 0.16s ease, transform 0.05s ease;
}

.nav-list .nav-btn.nav-btn-with-counter {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.nav-btn:hover,
.profile-link:hover,
.online-name:hover {
  color: #c86a6f;
  background: rgba(200, 106, 111, 0.08);
}


.nav-btn.active {
  color: #f5d2d4;
  background: rgba(200, 106, 111, 0.08);
}


.nav-status {
  color: var(--accent);
  font-size: 10px;
}

.view-wrap {
  padding: 14px;
}


.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.card {
  border: 1px solid rgba(224, 118, 92, 0.09);
  border-radius: 14px;
  background: var(--panel);
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
}


.card-title {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(200, 106, 111, 0.09);
  background: rgba(255, 255, 255, 0.015);
  color: var(--cream);
  font-size: 12px;
  font-weight: 700;
}


.card-content {
  padding: 12px;
}

.context-banner {
  --banner-image: url("/assets/banners/cb-airport.png");
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  margin-bottom: 12px;
  min-height: 152px;
  border: 0px solid rgba(200, 106, 111, 0.10);
  box-shadow: var(--shadow-md);
  background:
    linear-gradient(to right, rgba(13, 18, 23, 0.22), rgba(13, 18, 23, 0.06)),
    var(--banner-image);
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}

.home-banner {
  --banner-image: url("/assets/banners/cb-home.png");
  background-position: right 55%;
}

.market-banner {
  --banner-image: url("/assets/banners/cb-market.png");
  background-position: right 65%;
}

.operations-banner {
  --banner-image: url("/assets/banners/cb-operations.png");
  background-position: right 70%;
}

.crime-banner {
  --banner-image: url("/assets/banners/cb-crime.png");
  background-position: 60% 70%;
}

.crime-banner::after {
  box-shadow:
    inset 0 0 34px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(199, 58, 74, 0.10);
}

.crime-banner .context-banner-overlay {
  background:
    linear-gradient(
      90deg,
      rgba(8, 12, 16, 0.60) 0%,
      rgba(8, 12, 16, 0.38) 40%,
      rgba(8, 12, 16, 0.16) 100%
    ),
    linear-gradient(135deg, rgba(199, 58, 74, 0.12), transparent 34%),
    linear-gradient(325deg, rgba(223, 142, 84, 0.08), transparent 44%);
}

.crime-banner .context-banner-content {
  max-width: 620px;
}

.crime-banner .context-kicker {
  color: #e07d73;
  text-shadow: 0 1px 10px rgba(199, 58, 74, 0.24);
}

.crime-banner .context-title {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}

.crime-banner .context-desc {
  color: rgba(234, 241, 247, 0.92);
}

.crime-banner .context-badge {
  border-color: rgba(199, 58, 74, 0.18);
  background: rgba(9, 18, 24, 0.46);
}

.crime-banner .context-badge.accent {
  border-color: rgba(199, 58, 74, 0.26);
  background: rgba(199, 58, 74, 0.10);
  color: #f3beb7;
}

.exposure-banner {
  --banner-image: url("/assets/banners/cb-exposure.png");
  background-position: right 35%;
}

.intel-banner {
  --banner-image: url("/assets/banners/cb-intel.png");
}

.confrontation-banner {
  --banner-image: url("/assets/banners/cb-confrontation.png");
  background-position: right 60%;
}

.sabotage-banner {
  --banner-image: url("/assets/banners/cb-sabotage.png");
}

.airport-banner {
  --banner-image: url("/assets/banners/cb-airport.png");
}

.bank-banner {
  --banner-image: url("/assets/banners/cb-bank.png");
  background-position: right 60%;
}

.depot-banner {
  --banner-image: url("/assets/banners/cb-depot.png");
}

.syndicate-banner {
  --banner-image: url("/assets/banners/cb-syndicate.png");
  background-position: right 20%;
}

.lotto-banner {
  --banner-image: url("/assets/banners/cb-lotto.png");
}

.showdown-banner {
  --banner-image: url("/assets/banners/cb-showdown.png");
}

.pressluck-banner {
  --banner-image: url("/assets/banners/cb-press.png");
  background-position: right 55%;
}

.kill-banner {
  --banner-image: url("/assets/banners/cb-kill.png");
  background-position: right 60%;
}

.inbox-banner {
  --banner-image: url("/assets/banners/cb-inbox.png");
  background-position: right 90%;
}

.online-banner {
  --banner-image: url("/assets/banners/cb-online.png");
  background-position: right 35%;
}

.help-banner {
  --banner-image: url("/assets/banners/cb-help.png");
  background-position: right 45%;
}

.context-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.context-banner-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(10, 14, 18, 0.76) 0%,
      rgba(10, 14, 18, 0.50) 42%,
      rgba(10, 14, 18, 0.26) 100%
    ),
    linear-gradient(135deg, rgba(200, 106, 111, 0.05), transparent 38%);
  pointer-events: none;
}

.context-banner-content {
  position: relative;
  z-index: 1;
  padding: 22px 18px 18px;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 152px;
}

.operations-banner .context-banner-content,
.intel-banner .context-banner-content,
.confrontation-banner .context-banner-content,
.sabotage-banner .context-banner-content,
.crime-banner .context-banner-content {
  min-height: 152px;
}

.operations-banner .context-badge.accent {
  border-color: rgba(200, 106, 111, 0.20);
  background: rgba(200, 106, 111, 0.08);
  color: #f1b9bc;
}

.context-kicker {
  color: #d8726b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.context-title {
  color: var(--cream);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.32);
}

.context-desc {
  color: #d5dde4;
  font-size: 12px;
  line-height: 1.5;
  max-width: 700px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
}

.context-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.context-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 24, 31, 0.66);
  color: #e0e7ec;
  font-size: 10px;
  font-weight: 700;
}

.context-badge.accent {
  border-color: rgba(200, 106, 111, 0.20);
  background: rgba(200, 106, 111, 0.08);
  color: rgb(241, 135, 131);
}

.context-badge.muted {
  color: #b3c0ca;
}

.context-link-button {
  cursor: pointer;
  font-family: inherit;
}

.context-link-button:hover {
  border-color: rgba(216, 106, 118, 0.34);
  background: rgba(216, 106, 118, 0.10);
  color: #f5e9dc;
}

.context-badge-profile-link {
  appearance: none;
  margin: 0 0 0 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.context-badge-profile-link:hover {
  color: #f5e9dc;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.kill-view {
  display: grid;
  gap: 12px;
}

.kill-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.7fr);
  gap: 12px;
  align-items: stretch;
}

.kill-card {
  border: 1px solid rgba(200, 106, 111, 0.14);
  border-radius: 16px;
  background:
    radial-gradient(circle at 88% 0%, rgba(200, 106, 111, 0.10), transparent 32%),
    rgba(15, 21, 30, 0.84);
  box-shadow: var(--shadow-md);
  padding: 14px;
}

.kill-card-primary {
  border-color: rgba(200, 106, 111, 0.20);
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-height: 255px;
}

.kill-card-head {
  margin-bottom: 14px;
}

.kill-card h3 {
  margin: 4px 0 0;
  color: var(--cream);
  font-size: 21px;
  line-height: 1.1;
}

.kill-card-lead {
  max-width: 360px;
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.45;
}

.kill-kicker {
  display: block;
  color: #d8726b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.kill-ammo-badge {
  gap: 8px;
}

.kill-ammo-badge strong {
  color: #f5e9dc;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.kill-form-row {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(120px, 165px);
  gap: 10px;
  align-items: end;
}

.kill-form-panel {
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 16px;
  padding: 14px;
  background:
    radial-gradient(circle at 0% 100%, rgba(216, 106, 118, 0.10), transparent 38%),
    rgba(8, 12, 18, 0.30);
}

.kill-form-row label,
.death-new-character label {
  display: grid;
  gap: 6px;
}

.kill-form-row label span,
.death-new-character label span {
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 800;
}

.danger-button {
  min-height: 38px;
  padding-inline: 16px;
  border-color: rgba(216, 106, 118, 0.48);
  background:
    linear-gradient(135deg, rgba(216, 106, 118, 0.34), rgba(36, 24, 30, 0.96)),
    rgba(18, 24, 33, 0.88);
  color: #fff4f4;
  box-shadow: 0 10px 24px rgba(216, 106, 118, 0.10);
}

.kill-action-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.danger-button:hover {
  border-color: rgba(240, 126, 138, 0.68);
  transform: translateY(-1px);
}

.kill-rules-card {
  display: grid;
  align-content: start;
  gap: 10px;
}

.kill-rule-list {
  display: grid;
  gap: 8px;
}

.kill-rule-list div {
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 13px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.025);
}

.kill-rule-list strong {
  display: block;
  color: #f3e7d4;
  font-size: 12px;
  margin-bottom: 3px;
}

.kill-rule-list span {
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.38;
}

.bullet-factory-card {
  display: grid;
  gap: 12px;
  border-color: rgba(211, 125, 96, 0.20);
  background:
    radial-gradient(circle at 18% 0%, rgba(211, 125, 96, 0.13), transparent 30%),
    radial-gradient(circle at 92% 12%, rgba(216, 106, 118, 0.09), transparent 34%),
    rgba(13, 18, 26, 0.88);
}

.bullet-factory-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.bullet-factory-owner {
  min-width: 150px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.028);
}

.bullet-factory-owner span,
.bullet-factory-stat span,
.bullet-factory-total span,
.bullet-factory-transfer span,
.bullet-factory-owner-stats span {
  display: block;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.bullet-factory-owner strong,
.bullet-factory-stat strong,
.bullet-factory-total strong {
  display: block;
  margin-top: 4px;
  color: #f5e9dc;
  font-size: 14px;
}

.bullet-factory-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 10px;
}

.bullet-factory-stat {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.026);
}

.bullet-stock-bar {
  height: 7px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.bullet-stock-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b75e5d, #e0a06f);
  box-shadow: 0 0 18px rgba(216, 106, 118, 0.18);
}

.bullet-factory-buy {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(130px, 180px) minmax(130px, 170px);
  gap: 10px;
  align-items: end;
}

.bullet-factory-buy label {
  display: grid;
  gap: 6px;
}

.bullet-factory-total {
  min-height: 38px;
  display: grid;
  align-content: center;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 12px;
  background: rgba(8, 12, 18, 0.28);
}

.bullet-factory-claim,
.bullet-factory-owner-panel {
  border: 1px solid rgba(216, 106, 118, 0.16);
  border-radius: 15px;
  padding: 12px;
  background: rgba(216, 106, 118, 0.055);
}

.bullet-factory-claim {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.bullet-factory-claim strong {
  display: block;
  color: var(--cream);
  font-size: 13px;
}

.bullet-factory-claim span {
  display: block;
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 12px;
}

.bullet-factory-owner-panel {
  display: grid;
  gap: 12px;
}

.bullet-factory-owner-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.bullet-factory-owner-stats div {
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.bullet-factory-owner-stats strong {
  display: block;
  margin-top: 4px;
  color: #f5e9dc;
  font-size: 13px;
}

.bullet-factory-transfer {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(120px, 150px);
  gap: 10px;
  align-items: end;
}

.bullet-factory-transfer label,
.bullet-factory-transfer > div {
  display: grid;
  gap: 6px;
}

.bullet-factory-sales {
  display: grid;
  gap: 7px;
}

.bullet-factory-sale-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  color: var(--text-soft);
  font-size: 12px;
}

.bullet-factory-sale-row:last-child {
  border-bottom: 0;
}

.bullet-factory-sale-row strong {
  color: #f0d5c0;
  white-space: nowrap;
}

.facility-owner-panel {
  display: grid;
  gap: 12px;
  margin: 12px 0 0;
  padding: 12px;
  border: 1px solid rgba(216, 106, 118, 0.16);
  border-radius: 15px;
  background:
    radial-gradient(circle at top right, rgba(216, 106, 118, 0.12), transparent 34%),
    rgba(12, 17, 24, 0.58);
}

.facility-owner-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.facility-owner-head h3 {
  margin: 3px 0 4px;
  color: var(--cream);
  font-size: 17px;
}

.mini-kicker {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.facility-owner-balance {
  min-width: 150px;
  padding: 10px 12px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.035);
  text-align: right;
}

.facility-owner-balance span,
.facility-stat-grid span,
.facility-control-grid span {
  display: block;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.facility-owner-balance strong,
.facility-stat-grid strong {
  display: block;
  margin-top: 4px;
  color: #f5e9dc;
  font-size: 13px;
}

.facility-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.facility-stat-grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.facility-stat-grid div {
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.facility-control-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(110px, 145px);
  gap: 10px;
  align-items: end;
}

.facility-wide-button {
  grid-column: 1 / -1;
  justify-self: end;
}

.facility-control-grid label,
.facility-control-grid > div {
  display: grid;
  gap: 6px;
}

.facility-control-grid > div strong,
.bullet-factory-transfer > div strong {
  color: #f5e9dc;
  font-size: 13px;
}

.death-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.death-card {
  width: min(620px, 100%);
  border: 1px solid rgba(216, 106, 118, 0.45);
  border-radius: 24px;
  padding: 28px;
  background:
    radial-gradient(circle at 80% 0%, rgba(216, 106, 118, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(24, 28, 38, 0.96), rgba(10, 14, 21, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

.death-card h1 {
  margin: 6px 0 10px;
  font-size: clamp(34px, 8vw, 62px);
  line-height: 0.95;
}

.death-new-character {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  gap: 12px;
  align-items: end;
}

.profile-dossier-chip-status.is-wounded {
  border-color: rgba(234, 186, 92, 0.45);
  color: #f0cf8b;
}

@media (max-width: 820px) {
  .kill-layout,
  .kill-form-row,
  .kill-form-panel,
  .death-new-character,
  .bullet-factory-grid,
  .bullet-factory-buy,
  .bullet-factory-owner-stats,
  .bullet-factory-transfer,
  .facility-stat-grid,
  .facility-stat-grid--compact,
  .facility-control-grid {
    grid-template-columns: 1fr;
  }

  .bullet-factory-head,
  .bullet-factory-claim,
  .bullet-factory-sale-row,
  .facility-owner-head {
    align-items: stretch;
    flex-direction: column;
  }

  .facility-owner-balance {
    text-align: left;
  }

  .kill-card-head {
    align-items: stretch;
  }

  .kill-card-lead {
    display: none;
  }

  .kill-action-row {
    justify-content: stretch;
  }

  .kill-action-row .danger-button {
    width: 100%;
  }
}

body.is-death-mode {
  overflow: hidden;
}

body.is-death-mode .topbar,
body.is-death-mode .side-panel,
body.is-death-mode .footer-note,
body.is-death-mode .mobile-bottom-nav,
body.is-death-mode .mobile-menu-backdrop,
body.is-death-mode .mobile-menu-dropdown {
  display: none !important;
}

body.is-death-mode #dashboard {
  display: block;
  min-height: 100vh;
}

body.is-death-mode .layout {
  display: block;
  min-height: 100vh;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.is-death-mode .main-panel {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.is-death-mode .view-wrap {
  min-height: 100vh;
}


.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.stat {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.024);
}


.stat-label {
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 3px;
}

.stat-value {
  font-size: 14px;
  font-weight: bold;
  color: #edf2f6;
}

.rankbar-shell {
  width: 100%;
  height: 23px;
  margin-top: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: #111820;
  border: 2px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.rankbar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, #c86a6f, #a1212a);
  box-shadow: 0 0 10px rgba(200, 106, 111, 0.18);
}

.rankbar-text {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.home-dashboard {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.home-rank-card {
  border-color: rgba(200, 106, 111, 0.18);
  background:
    radial-gradient(circle at 82% 0%, rgba(200, 106, 111, 0.16), transparent 28%),
    rgba(17, 24, 33, 0.78);
}

.home-rank-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.home-rank-name {
  color: #f5e9dc;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.home-rank-percent {
  min-width: 70px;
  text-align: right;
  color: #f18783;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.home-rankbar {
  height: 22px;
  margin: 14px 0 12px;
  border-radius: 8px;
  border-width: 1px;
  background: rgba(6, 10, 15, 0.72);
}

.home-rankbar .rankbar-fill {
  background: #c86a6f;
  box-shadow: none;
}

.home-stat-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.home-stat-strip > div,
.home-activity-grid > div {
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  padding: 10px;
}

.home-stat-strip span,
.home-activity-grid span,
.home-feed-item span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 4px;
}

.home-stat-strip strong,
.home-activity-grid strong {
  color: #edf2f6;
  font-size: 14px;
}

.home-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
}

.home-activity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.home-activity-grid .wide {
  grid-column: 1 / -1;
}

.home-feed-list,
.home-notice-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-color: rgba(200, 106, 111, 0.40) rgba(255, 255, 255, 0.025);
  scrollbar-width: thin;
}

.home-notice-list {
  max-height: 190px;
}

.home-feed-list::-webkit-scrollbar,
.home-notice-list::-webkit-scrollbar {
  width: 8px;
}

.home-feed-list::-webkit-scrollbar-track,
.home-notice-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.025);
  border-radius: 999px;
}

.home-feed-list::-webkit-scrollbar-thumb,
.home-notice-list::-webkit-scrollbar-thumb {
  border: 2px solid rgba(14, 20, 29, 0.92);
  border-radius: 999px;
  background: rgba(200, 106, 111, 0.46);
}

.home-feed-list::-webkit-scrollbar-thumb:hover,
.home-notice-list::-webkit-scrollbar-thumb:hover {
  background: rgba(200, 106, 111, 0.64);
}

.home-feed-item,
.home-notice {
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  padding: 11px 12px;
}

.home-feed-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.home-feed-item > div {
  color: var(--text-soft);
  font-weight: 500;
}

.home-feed-item span {
  flex: 0 0 auto;
  margin-bottom: 0;
}

.home-notice-title {
  color: #f5e9dc;
  font-weight: 900;
  margin-bottom: 3px;
}

.home-notice-time {
  color: rgba(200, 213, 224, 0.62);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 7px;
}

.home-notice p {
  color: var(--muted);
  margin: 0 0 8px;
  line-height: 1.5;
}

.home-notice-more-link {
  margin-top: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f18783;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.home-notice-more-link:hover {
  color: #f5d2d4;
}

.home-notice-article h2 {
  margin: 4px 0 10px;
  color: #f5e9dc;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.home-notice-article-date {
  color: var(--muted);
  font-size: 11px;
}

.home-notice-article-preview {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.55;
}

.home-notice-article-body {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.home-empty-state {
  min-height: 86px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(200, 106, 111, 0.22);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
  padding: 14px;
  background: rgba(200, 106, 111, 0.035);
}

.exposure-dashboard {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.exposure-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 14px;
  align-items: start;
}

.exposure-main-card .card-content {
  display: grid;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.exposure-main-card .card-content::before {
  content: "";
  position: absolute;
  inset: -28% -12% auto auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 106, 111, 0.14), rgba(200, 106, 111, 0));
  pointer-events: none;
}

.exposure-status-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.exposure-value-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.exposure-level-name {
  color: #f3e7d4;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-top: 6px;
}

.exposure-level-number {
  color: #f3e7d4;
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 900;
  line-height: 1;
  text-align: right;
}

.exposure-level-number small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.exposure-meter-shell {
  position: relative;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.06);
  background:
    linear-gradient(90deg, rgba(103,222,154,.07), rgba(224,177,92,.07), rgba(200,106,111,.08)),
    rgba(255,255,255,0.04);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.exposure-meter-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 180ms ease;
}

.exposure-meter-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.12);
}

.exposure-tone-low {
  background: linear-gradient(90deg, rgba(103, 222, 154, 0.88), rgba(103, 222, 154, 0.55));
}

.exposure-tone-mid {
  background: linear-gradient(90deg, rgba(224, 177, 92, 0.88), rgba(224, 177, 92, 0.56));
}

.exposure-tone-high {
  background: linear-gradient(90deg, rgba(200, 106, 111, 0.88), rgba(200, 106, 111, 0.60));
}

.exposure-tone-critical {
  background: linear-gradient(90deg, rgba(230, 107, 121, 0.95), rgba(160, 35, 53, 0.82));
}

.exposure-summary-box {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  position: relative;
  z-index: 1;
}

.exposure-summary-box p {
  margin: 6px 0 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.exposure-summary-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.exposure-summary-box.exposure-tone-low {
  border-color: rgba(103, 222, 154, 0.18);
  background: rgba(103, 222, 154, 0.06);
}

.exposure-summary-box.exposure-tone-mid {
  border-color: rgba(224, 177, 92, 0.18);
  background: rgba(224, 177, 92, 0.06);
}

.exposure-summary-box.exposure-tone-high,
.exposure-summary-box.exposure-tone-critical {
  border-color: rgba(200, 106, 111, 0.18);
  background: rgba(200, 106, 111, 0.06);
}

.exposure-decay-box {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.025);
}

.exposure-decay-title {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.exposure-decay-copy {
  color: var(--text-soft);
  line-height: 1.55;
}

.exposure-decay-meta {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
}

.exposure-status-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  position: relative;
  z-index: 1;
}

.exposure-status-chip {
  display: grid;
  gap: 4px;
  min-height: 70px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(8, 12, 18, 0.34);
}

.exposure-status-chip span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.exposure-status-chip strong {
  align-self: end;
  color: var(--text-soft);
  font-size: 13px;
}

.exposure-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 14px;
}

.exposure-side-stack {
  display: grid;
  gap: 14px;
  align-content: start;
}

.exposure-status-side-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  position: relative;
  z-index: 1;
}

.exposure-control-card .card-content,
.exposure-side-card .card-content {
  display: grid;
  gap: 12px;
}

.exposure-control-copy {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(200,106,111,0.16);
  background:
    linear-gradient(135deg, rgba(200,106,111,0.10), rgba(255,255,255,0.025)),
    rgba(255,255,255,0.02);
}

.exposure-control-copy strong {
  color: #f3e7d4;
  font-size: 15px;
}

.exposure-control-copy span {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.55;
}

.exposure-history-list,
.exposure-actions-list {
  display: grid;
  gap: 10px;
}

.exposure-history-scroll {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-color: rgba(200, 106, 111, 0.40) rgba(255, 255, 255, 0.025);
  scrollbar-width: thin;
}

.exposure-history-card .exposure-history-scroll {
  max-height: 360px;
}

.exposure-history-scroll::-webkit-scrollbar {
  width: 8px;
}

.exposure-history-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.025);
  border-radius: 999px;
}

.exposure-history-scroll::-webkit-scrollbar-thumb {
  background: rgba(200, 106, 111, 0.40);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.exposure-history-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(200, 106, 111, 0.52);
}

.exposure-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 13px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.026);
}

.exposure-history-title {
  color: var(--text-soft);
  font-weight: 700;
}

.exposure-history-tag {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.exposure-history-time {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.exposure-history-delta {
  min-width: 50px;
  text-align: right;
  font-size: 18px;
  font-weight: 900;
}

.exposure-history-delta.is-up {
  color: #f0a6ae;
}

.exposure-history-delta.is-down {
  color: #9ce8bc;
}

.exposure-action-card {
  width: 100%;
  text-align: left;
  display: grid;
  gap: 6px;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.exposure-action-card.is-primary {
  border-color: rgba(200, 106, 111, 0.3);
  background:
    linear-gradient(180deg, rgba(200, 106, 111, 0.14), rgba(200, 106, 111, 0.06)),
    rgba(255,255,255,0.03);
}

.exposure-action-card:hover {
  border-color: rgba(200, 106, 111, 0.24);
  background: rgba(200, 106, 111, 0.07);
  transform: translateY(-1px);
}

.exposure-action-card:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.exposure-action-card:disabled:hover {
  border-color: rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
}

.exposure-action-label {
  color: #f3e7d4;
  font-weight: 800;
}

.exposure-action-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

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

input,
select,
textarea {
  background: rgba(28, 38, 50, 0.86);
  color: var(--text);
  border: 1px solid rgba(224, 118, 92, 0.14);
  border-radius: 10px;
  padding: 9px 10px;
  font-family: inherit;
  font-size: 12px;
}

input:focus-visible,
select:focus-visible,
button:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(200, 106, 111, 0.42);
  outline-offset: 2px;
  border-color: rgba(200, 106, 111, 0.32);
  box-shadow: 0 0 0 3px rgba(200, 106, 111, 0.10);
}


input,
select,
textarea {
  width: 100%;
}

button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid rgba(200, 106, 111, 0.18);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(200, 106, 111, 0.08), rgba(255, 255, 255, 0.018)),
    rgba(18, 25, 34, 0.58);
  color: #dce5eb;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.05s ease;
}

button:hover {
  background:
    linear-gradient(135deg, rgba(200, 106, 111, 0.13), rgba(255, 255, 255, 0.03)),
    rgba(23, 31, 42, 0.78);
  border-color: rgba(200, 106, 111, 0.34);
  color: #f4e7e8;
}


button:active {
  transform: translateY(1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none;
}

.primary-btn {
  background:
    linear-gradient(135deg, rgba(200, 106, 111, 0.34), rgba(180, 87, 93, 0.18)),
    rgba(24, 30, 40, 0.92);
  color: #fff1f2;
  border-color: rgba(200, 106, 111, 0.46);
  font-weight: 900;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 10px 24px rgba(200, 106, 111, 0.12);
}

.primary-btn:hover {
  background:
    linear-gradient(135deg, rgba(200, 106, 111, 0.44), rgba(180, 87, 93, 0.24)),
    rgba(29, 36, 48, 0.96);
  border-color: rgba(200, 106, 111, 0.58);
}

.personal-action-btn {
  min-width: 124px;
  display: inline-grid;
  gap: 1px;
  justify-items: center;
  text-align: center;
  padding: 8px 12px 7px;
  border-radius: 12px;
  border-color: rgba(200, 106, 111, 0.24);
  background:
    linear-gradient(135deg, rgba(200, 106, 111, 0.13), rgba(255, 255, 255, 0.025)),
    rgba(14, 20, 28, 0.78);
  color: #f1dfe0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 8px 20px rgba(0, 0, 0, 0.12);
}

.personal-action-btn span {
  font-weight: 900;
  line-height: 1.1;
  font-size: 13px;
}

.personal-action-btn small {
  color: rgba(200, 213, 224, 0.68);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.personal-action-btn:hover {
  border-color: rgba(200, 106, 111, 0.42);
  background:
    linear-gradient(135deg, rgba(200, 106, 111, 0.18), rgba(255, 255, 255, 0.04)),
    rgba(18, 25, 34, 0.88);
}

.depot-action-btn {
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 12px;
  font-size: 12px;
}

.depot-action-btn--danger {
  border-color: rgba(200, 106, 111, 0.26);
  background:
    linear-gradient(135deg, rgba(200, 106, 111, 0.10), rgba(255, 255, 255, 0.018)),
    rgba(18, 25, 34, 0.56);
  color: #f0c9cc;
}

.depot-action-btn--danger:hover {
  border-color: rgba(200, 106, 111, 0.44);
  background:
    linear-gradient(135deg, rgba(200, 106, 111, 0.15), rgba(255, 255, 255, 0.03)),
    rgba(23, 31, 42, 0.78);
}

.profile-mini {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin: 6px 6px 12px;
  padding: 12px 10px;
  border-radius: 14px;
  background: rgba(10, 15, 21, 0.72);
  border: 1px solid rgba(224, 118, 92, 0.12);
  box-shadow: var(--shadow-md);
}


.profile-mini::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  pointer-events: none;
}


.profile-mini strong {
  color: #e6edf3;
  font-size: 12px;
  letter-spacing: 0.3px;
}

.avatar-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  border: 1px solid rgba(200, 106, 111, 0.14);
  background:
    linear-gradient(rgba(27, 36, 45, 0.25), rgba(27, 36, 45, 0.25)),
    linear-gradient(135deg, #31495a, #16212b);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c7d2da;
  font-size: 9px;
  text-transform: uppercase;
  overflow: hidden;
}

.default-avatar-logo {
  width: 72%;
  height: 72%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
}

.avatar-thumb > span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.state-box {
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.4;
}

.state-box.warning {
  border: 1px solid rgba(232, 196, 106, 0.35);
  background: linear-gradient(
    to right,
    rgba(232, 196, 106, 0.12),
    rgba(232, 196, 106, 0.04)
  );
  color: #f4d37a;
}

.state-box.success {
  border: 1px solid rgba(103, 222, 154, 0.3);
  background: rgba(103, 222, 154, 0.08);
  color: var(--success);
}

.state-box.info {
  border: 1px solid rgba(139, 184, 216, 0.24);
  background: rgba(139, 184, 216, 0.08);
  color: #b9d6e8;
}

.state-box.compact {
  padding: 6px 8px;
  font-size: 11px;
  line-height: 1.2;
  min-height: auto;
}

.action-list {
  border: 1px solid rgba(232, 146, 106, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.024),
      rgba(255, 255, 255, 0.01)
    );
}

.action-list-head,
.action-row {
  display: grid;
  grid-template-columns: 28px 1fr 84px;
  align-items: center;
  gap: 8px;
}

.action-list-head {
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid rgba(200, 106, 111, 0.10);
  color: var(--cream);
  font-size: 10px;
}

.action-row {
  width: 100%;
  padding: 9px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(200, 106, 111, 0.06);
  cursor: pointer;
  text-align: left;
  color: inherit;
  font-weight: 500;
  border-radius: 0;
}

.action-row:last-child {
  border-bottom: none;
}

.action-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

.action-row.selected {
  background: rgba(200, 106, 111, 0.10);
}

.action-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid rgba(200, 106, 111, 0.45);
  position: relative;
  margin: 0 auto;
}

.action-row.selected .action-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--accent);
}

.action-main {
  min-width: 0;
}

.action-name {
  color: rgba(214, 224, 232, 0.74);
  font-size: 11px;
  font-weight: 560;
  letter-spacing: 0.005em;
}

.action-meta {
  color: rgba(166, 181, 193, 0.72);
  font-size: 10px;
  margin-top: 2px;
}

.action-side {
  color: #e8c4c7;
  font-size: 11px;
  text-align: right;
  white-space: nowrap;
  justify-self: end;
  min-width: 112px;
}

.chance-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

.chance-current {
  color: #e8c4c7;
  font-weight: 800;
  letter-spacing: .015em;
  font-size: 12px;
  line-height: 1;
}

.chance-stack.positive .chance-current {
  color: #9fd8b0;
}

.chance-stack.negative .chance-current {
  color: #e08b91;
}

.chance-base {
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  opacity: .78;
}

.chance-modifier {
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.05;
}

.chance-stack.positive .chance-modifier {
  color: rgba(159, 216, 176, .86);
}

.chance-stack.negative .chance-modifier {
  color: rgba(224, 139, 145, .86);
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.split-grid .selected-box,
.split-grid .action-list {
  height: 100%;
}

@media (max-width: 760px) {
  .split-grid {
    grid-template-columns: 1fr;
  }
}

.sabotage-plan-box {
  margin: 0 0 10px 0;
}

.sabotage-type-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.sabotage-type-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 58px;
  text-align: left;
}

.sabotage-type-pill span {
  min-width: 0;
}

.sabotage-type-pill small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.sabotage-type-pill.selected {
  border-color: rgba(200, 106, 111, .55);
  background: rgba(200, 106, 111, .12);
}

.sabotage-target-box,
.confrontation-target-box {
  margin: 0 0 10px 0;
  min-height: auto;
}

.selected-box {
  min-height: 58px;
  padding: 8px;
  border: 1px solid rgba(200, 106, 111, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.02),
      rgba(255, 255, 255, 0.012)
    );
  color: var(--text-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.015);
}

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

.hidden {
  display: none !important;
}

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

.success {
  color: var(--success);
  font-size: 10px;
}

.error {
  color: var(--danger);
  font-size: 10px;
}

.warning {
  color: var(--warning);
  font-size: 10px;
}

.footer-note {
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  padding: 18px 0 18px;
}


.mt-7 {
  margin-top: 7px;
}

/* forum */
.forum-thread-row,
.forum-category-row {
  padding: 9px;
  border-bottom: 1px solid rgba(200, 106, 111, 0.08);
}

.forum-thread-row:last-child,
.forum-category-row:last-child {
  border-bottom: none;
}

.forum-thread-title,
.forum-category-title {
  color: #e5ebef;
  font-size: 11px;
}

.forum-thread-meta,
.forum-category-meta {
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}

.forum-subforum-list {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
}

.forum-post {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid rgba(200, 106, 111, 0.08);
}

.forum-post:last-child {
  border-bottom: none;
}

.forum-post-side {
  border: 1px solid rgba(200, 106, 111, 0.12);
  background: rgba(255, 255, 255, 0.02);
  padding: 7px;
  text-align: center;
  border-radius: 8px;
}

.forum-post-avatar {
  width: 100%;
  height: 90px;
  background: linear-gradient(135deg, rgba(200, 106, 111, 0.20), rgba(18, 24, 33, 0.92));
  border: 1px solid rgba(200, 106, 111, 0.10);
  margin: 6px 0;
  border-radius: 6px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.forum-post-body {
  color: #dce6ed;
  line-height: 1.6;
}

.forum-post-meta {
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 6px;
}

.pill {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-right: 4px;
}

.pill.sticky {
  background: rgba(200, 106, 111, 0.18);
  color: #f5d2d4;
  border-color: rgba(200, 106, 111, 0.34);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 11px;
}

.pill.locked {
  color: var(--danger);
  border-color: rgba(230, 107, 121, 0.25);
  background: rgba(230, 107, 121, 0.08);
}

.forum-mod-actions button {
  font-size: 12px;
  padding: 4px 6px;
  margin-right: 4px;
  background: #2a2a2a;
  border: 1px solid #444;
  cursor: pointer;
}

.forum-mod-actions button:hover {
  background: #3a3a3a;
}

.forum-post-meta button {
  font-size: 11px;
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: 0.7;
}

.forum-post-meta button:hover {
  opacity: 1;
}

.forum-quote-btn {
  margin-left: 8px;
  color: #e7b9bd;
}

.forum-inline-action {
  margin-left: 8px;
  color: #c9b4b7;
}

.forum-post--hidden .forum-post-side,
.forum-post--hidden .forum-post-body,
.forum-thread-row--hidden {
  opacity: 0.76;
}

.forum-hidden-flag,
.forum-hidden-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(220, 166, 86, 0.28);
  background: rgba(220, 166, 86, 0.10);
  color: #f0cb8a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.forum-hidden-pill {
  margin-right: 6px;
}

.forum-post-edited {
  margin-bottom: 6px;
  color: #93a2ae;
  font-size: 11px;
}

.forum-edited-toggle {
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.forum-edited-toggle:hover {
  color: var(--text-soft);
  text-decoration: underline;
}

.forum-original-body {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed rgba(200, 106, 111, 0.22);
  background: rgba(10, 14, 22, 0.42);
}

.forum-original-label {
  margin-bottom: 6px;
  color: #93a2ae;
  font-size: 11px;
  font-style: italic;
}

.forum-edit-box {
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(200, 106, 111, 0.18);
  background: rgba(12, 16, 24, 0.62);
}



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

  .auth-hero-card {
    min-height: 360px;
  }

  .auth-hero-stats {
    grid-template-columns: 1fr;
  }

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

  .main-panel {
    max-width: none;
  }

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

  .topbar {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 12px 14px;
    justify-items: stretch;
    gap: 8px;
  }

  .topbar-brand-wrap,
  .topbar-center,
  .topbar-user-wrap {
    justify-self: stretch;
    text-align: left;
  }

  .topbar-user {
    min-width: 0;
    justify-items: start;
  }

  .topbar-center-message,
  .brand-subline {
    white-space: normal;
  }

  .forum-post {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  /* Make topbar sticky */
  .topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  /* Make layout fill screen better */
  .layout {
    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 0;
    min-height: 100vh;
  }

  .layout > .side-panel {
    display: none;
  }

  .main-panel {
    width: 100%;
    flex: 1;
    max-width: none;
    background: transparent;
    padding: 0;
  }

  .view-wrap {
    padding: 4px;
    height: 100%;
  }

  /* Hide driftsmelding (topbar center) */
  .topbar-center {
    display: none;
  }

  /* Adjust topbar for mobile */
  .topbar {
    grid-template-columns: 1fr auto;
    padding: 8px 12px;
    min-height: 56px;
  }

  .topbar-brand-wrap {
    min-width: 0;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    display: none;
  }

  .brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .brand-name {
    font-size: 14px;
    font-weight: 900;
  }

  .brand-subline {
    font-size: 9px;
    color: var(--muted);
  }

  /* Mobile bottom navigation */
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: rgba(10, 14, 19, 0.96);
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    z-index: 999;
    backdrop-filter: blur(10px);
  }

  .mobile-bottom-nav button {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: transparent;
    border: 1px solid transparent;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    border-right: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    white-space: nowrap;
    box-shadow: none;
    transition: all 140ms ease;
  }

  .mobile-nav-btn {
    font-size: 16px !important;
    padding: 14px 18px !important;
  }

  .mobile-nav-btn span {
    font-size: 16px;
  }

  .mobile-nav-btn.has-unread {
    color: var(--accent) !important;
  }

  .mobile-nav-btn.has-unread span {
    color: var(--accent);
  }

  .mobile-bottom-nav button:first-child {
    border-left: none;
  }

  .mobile-bottom-nav button:hover {
    background: rgba(200, 106, 111, 0.08);
    color: var(--text);
  }

  .mobile-bottom-nav button.active {
    background: rgba(200, 106, 111, 0.12);
    color: var(--accent);
    border-top: 2px solid var(--accent);
    border-bottom: 1px solid var(--accent);
  }

  /* Mobile menu overlay backdrop */
  .mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 997;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
    backdrop-filter: blur(2px);
  }

  .mobile-menu-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* Mobile side menu overlays - slide from sides */
  .mobile-menu-dropdown {
    position: fixed;
    top: 56px;
    bottom: 56px;
    width: 45vw;
    max-width: 180px;
    background: rgba(10, 14, 19, 0.98);
    border: 1px solid var(--line);
    border-radius: 0;
    z-index: 998;
    backdrop-filter: blur(10px);
    overflow-y: auto;
    transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Left menu slides from left */
  #mobileLeftMenuDropdown {
    left: 0;
    border-left: none;
    border-right: 1px solid var(--line);
    transform: translateX(-100%);
  }

  #mobileLeftMenuDropdown.active {
    transform: translateX(0);
  }

  /* Right menu slides from right */
  #mobileRightMenuDropdown {
    right: 0;
    border-right: none;
    border-left: 1px solid var(--line);
    transform: translateX(100%);
  }

  #mobileRightMenuDropdown.active {
    transform: translateX(0);
  }

  .mobile-menu-dropdown .panel-header {
    padding: 10px 12px;
    font-size: 11px;
    position: sticky;
    top: 0;
    background: rgba(10, 14, 19, 0.96);
    z-index: 1;
  }

  .mobile-menu-dropdown .panel-body {
    padding: 8px;
  }

  /* Hide shoutbox and non-essential elements */
  #shoutbox,
  .shoutbox,
  .shout-box {
    display: none !important;
  }

  /* Make cards smaller/tighter on mobile */
  .card {
    margin-bottom: 4px;
  }

  .card:last-child {
    margin-bottom: 64px;
  }

  /* Prevent auto-zoom on input focus (requires 16px+ font-size) */
  input,
  select,
  textarea {
    font-size: 16px;
  }

  /* Forum post mobile optimization */
  .forum-post {
    grid-template-columns: auto 1fr;
    gap: 8px;
  }

  .forum-post-side {
    flex: 0 0 auto;
    width: 110px;
    border: 1px solid rgba(200, 106, 111, 0.12);
    background: rgba(255, 255, 255, 0.02);
    padding: 6px;
    text-align: center;
    border-radius: 6px;
  }

  .forum-post-avatar {
    width: 100%;
    height: 65px;
    background: linear-gradient(135deg, rgba(200, 106, 111, 0.20), rgba(18, 24, 33, 0.92));
    border: 1px solid rgba(200, 106, 111, 0.10);
    margin: 5px 0;
    border-radius: 4px;
    display: grid;
    place-items: center;
    overflow: hidden;
    font-size: 16px;
  }

  .forum-post-rank {
    font-size: 9px;
    color: var(--muted);
    margin: 4px 0 0 0;
    line-height: 1.2;
    word-break: break-word;
  }

  .forum-post-username {
    font-size: 10px;
    margin: 5px 0 3px 0;
    line-height: 1.2;
    word-break: break-word;
  }

  /* Hide only our custom emoji picker UI. Native phone keyboard emoji still works. */
  .emoji-picker-trigger,
  .emoji-picker-menu {
    display: none !important;
  }
}

/* Extra small devices */
@media (max-width: 600px) {
  .topbar {
    min-height: 48px;
    padding: 6px 10px;
  }

  .brand-name {
    font-size: 12px;
  }

  .mobile-bottom-nav {
    height: 48px;
  }

  .mobile-bottom-nav button {
    padding: 6px 10px;
    font-size: 10px;
  }

  .view-wrap {
    padding: 8px;
  }

  /* Keep side menus compact on very small screens */
  .mobile-menu-dropdown {
    top: 48px;
    bottom: 48px;
    width: 52vw;
    max-width: 170px;
  }

  /* Reduce card margins for small screens */
  .card {
    margin-bottom: 3px;
  }

  .card:last-child {
    margin-bottom: 56px;
  }
}



.profile-mini-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-mini-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.profile-mini-stats {
  margin-top: 0;
}

.side-panel .panel-body {
  padding: 10px;
}

.main-panel .panel-body {
  padding: 12px;
}

.profile-link {
  text-align: center;
  font-weight: 700;
  color: #e9edf1;
}

.profile-link:hover {
  color: var(--accent);
}

.profile-mini-top {
  align-items: center;
  text-align: center;
}

.profile-mini-stats {
  margin-top: 2px;
}

.profile-mini-stats li {
  padding: 3px 0;
  border-bottom: 1px solid rgba(255,255,255,0.035);
}

.profile-mini-stats li:last-child {
  border-bottom: none;
}

.nav-list .nav-btn {
  padding-left: 10px;
  padding-right: 10px;
}

.nav-list .nav-btn.active {
  box-shadow: inset 0 0 0 1px rgba(200, 106, 111, 0.12);
}

.topbar .brand div:last-child {
  line-height: 1;
}

.layout > .side-panel:first-child {
  transform: translateX(28px);
}

.layout > .side-panel:last-child {
  transform: translateX(-28px);
}

.forum-thread-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.forum-thread-link {
  display: inline;
  width: auto;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  color: var(--text);
  font: inherit;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.forum-thread-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.forum-thread-link,
.forum-post-text {
  color: #cfd7df;
}

.forum-thread-link:hover {
  color: var(--accent);
}

.forum-thread-list-scroll {
  overflow: visible;
}

.forum-thread-meta {
  color: #8fa0ad;
}

.forum-post-username {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  color: var(--text);
}

.forum-post-username:hover {
  text-decoration: underline;
}

.forum-post-username.role-admin {
  color: #e25b5b;
}

.forum-post-username.role-moderator {
  color: #e79a4a;
}

.forum-post-username.role-forummoderator,
.forum-post-username.role-forum_moderator,
.forum-post-username.role-forummod {
  color: #b07cff;
}

.forum-post-rank {
  color: var(--text-soft);
  font-size: 12px;
}

.forum-page-btn {
  display: inline-flex;
  width: auto;
  min-width: 32px;
  justify-content: center;
  align-items: center;
  padding: 4px 10px;
  margin: 0;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--text-soft);
  font: inherit;
  cursor: pointer;
}

.forum-page-btn:hover {
  color: var(--accent);
  background: rgba(200, 106, 111, 0.08);
}

.online-player-link {
  display: inline;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

.online-player-link:hover {
  text-decoration: underline;
}

.profile-dossier {
  display: grid;
  gap: 12px;
}

.profile-dossier-hero {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  overflow: hidden;
  min-height: 292px;
  padding: 30px 24px;
  border: 1px solid rgba(200, 106, 111, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 18%, rgba(200, 106, 111, 0.20), transparent 30%),
    radial-gradient(circle at 76% 12%, rgba(120, 180, 255, 0.08), transparent 26%),
    linear-gradient(135deg, rgba(11, 16, 23, 0.98), rgba(19, 26, 36, 0.82));
  box-shadow: var(--shadow-md);
}

.profile-dossier-hero .profile-admin-button {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
}

.profile-dossier-hero .profile-dossier-actions {
  position: static;
}

.profile-dossier-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 106, 111, 0.62), transparent);
}

.profile-dossier-noise {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, black, transparent 88%);
}

.profile-dossier-avatar-wrap,
.profile-dossier-identity,
.profile-dossier-actions {
  position: relative;
  z-index: 1;
}

.profile-dossier-avatar-wrap {
  display: grid;
  justify-items: center;
  gap: 9px;
}

.profile-dossier-avatar-frame {
  width: 190px;
  height: 190px;
  padding: 4px;
  border: 1px solid rgba(200, 106, 111, 0.34);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(200, 106, 111, 0.20), rgba(255, 255, 255, 0.035)),
    rgba(8, 12, 17, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 18px 45px rgba(0, 0, 0, 0.25);
}

.profile-dossier-avatar-frame-player {
  width: 220px;
  height: 240px;
}

.profile-dossier-avatar {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 9px;
  background:
    radial-gradient(circle at 50% 34%, rgba(200, 106, 111, 0.22), transparent 38%),
    rgba(12, 18, 26, 0.94);
  display: grid;
  place-items: center;
}

.profile-dossier-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-dossier-avatar .default-avatar-logo {
  width: 62%;
  height: 62%;
  object-fit: contain;
  opacity: 0.92;
}

.profile-dossier-callsign {
  color: rgba(200, 213, 224, 0.72);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.profile-dossier-kicker {
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.profile-dossier-topline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-dossier-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.profile-dossier-name-row h1 {
  margin: 0;
  color: #f5e9dc;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.profile-dossier-status {
  display: inline-flex;
  align-items: center;
  align-self: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.profile-dossier-avatar-status {
  align-self: center;
  justify-self: center;
}

.profile-dossier-status.is-online {
  border-color: rgba(103, 222, 154, 0.24);
  background: rgba(103, 222, 154, 0.08);
  color: #99f0bd;
}

.profile-dossier-status.is-offline {
  border-color: rgba(200, 106, 111, 0.24);
  background: rgba(200, 106, 111, 0.08);
  color: #f5d2d4;
}

.profile-dossier-status.is-flagged {
  border-color: rgba(230, 107, 121, 0.28);
  background: rgba(230, 107, 121, 0.09);
  color: #ffadb6;
}

.profile-dossier-title {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 700;
}

.profile-dossier-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.profile-dossier-chips span,
.profile-dossier-chip-button,
.profile-dossier-syndicate,
.profile-dossier-value {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #d9e1e8;
  padding: 9px 12px;
  font-size: 11px;
  font-weight: 800;
}

.profile-dossier-chip-button {
  cursor: pointer;
  font: inherit;
  border-color: rgba(200, 106, 111, 0.28);
  background: rgba(200, 106, 111, 0.10);
  color: #f5d2d4;
}

.profile-dossier-chip-button:hover {
  border-color: rgba(200, 106, 111, 0.48);
  background: rgba(200, 106, 111, 0.16);
}

.profile-dossier-chips b {
  color: rgba(200, 213, 224, 0.62);
  font-size: 9px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.profile-dossier-chip-status.is-flagged {
  border-color: rgba(230, 107, 121, 0.28);
  background: rgba(230, 107, 121, 0.09);
  color: #ffadb6;
}

.profile-dossier-syndicate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  border-color: rgba(200, 106, 111, 0.20);
  background: rgba(200, 106, 111, 0.08);
}

.profile-dossier-label {
  color: var(--muted);
  font-weight: 800;
}

.profile-dossier-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #f5d2d4;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.profile-dossier-link:hover {
  color: #fff0f1;
}

.profile-admin-button {
  min-width: 38px;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 12px;
  font-size: 17px;
}

.profile-contact-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.profile-icon-button {
  width: 34px;
  min-width: 34px;
  height: 30px;
  padding: 0;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1;
}

.profile-icon-button:disabled {
  opacity: .42;
  cursor: not-allowed;
}

.profile-dossier-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 12px;
}

.profile-badge-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(200, 106, 111, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(200, 106, 111, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(15, 22, 31, 0.70);
  box-shadow: var(--shadow-sm);
}

.profile-badge-strip-head {
  min-width: 146px;
}

.profile-badge-strip-head span {
  display: block;
  color: #f5e9dc;
  font-weight: 900;
}

.profile-badge-strip-head small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.profile-badge-strip-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.profile-badge-item {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px 7px 7px;
  border: 1px dashed rgba(200, 106, 111, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.026);
  color: var(--muted);
}

.profile-badge-item span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(200, 106, 111, 0.14);
  color: #f5d2d4;
  font-size: 10px;
  font-weight: 900;
}

.profile-badge-item strong {
  color: #cfd8df;
  font-size: 11px;
}

.profile-badge-item.is-earned {
  border-style: solid;
  border-color: rgba(200, 106, 111, 0.38);
}

.achievement-mini-badge {
  min-height: 46px;
}

.badge-tooltip-trigger {
  position: relative;
  cursor: pointer;
}

.badge-tooltip-trigger:hover .badge-tooltip,
.badge-tooltip-trigger:focus-visible .badge-tooltip,
.badge-tooltip-trigger.is-open .badge-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.badge-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 30;
  min-width: 210px;
  max-width: 260px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(200, 106, 111, 0.24);
  background: linear-gradient(180deg, rgba(16, 24, 35, 0.98), rgba(12, 18, 27, 0.98));
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  opacity: 0;
  transform: translate(-50%, 6px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.badge-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 10px;
  height: 10px;
  background: rgba(12, 18, 27, 0.98);
  border-right: 1px solid rgba(200, 106, 111, 0.24);
  border-bottom: 1px solid rgba(200, 106, 111, 0.24);
  transform: translateX(-50%) rotate(45deg);
}

.badge-tooltip__title {
  color: #f4e9dd;
  font-weight: 900;
  margin-bottom: 8px;
  font-size: 12px;
}

.badge-tooltip__line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-top: 4px;
}

.badge-tooltip__line span {
  color: var(--muted);
  font-size: 11px;
  text-align: left;
}

.badge-tooltip__line strong {
  color: #e8eef5;
  font-size: 11px;
  text-align: right;
  font-weight: 700;
}

.achievement-badge-image {
  display: block;
  object-fit: contain;
}

.achievement-badge-image--mini {
  width: 32px;
  height: 32px;
}

.achievement-badge-image--large {
  width: 108px;
  height: 108px;
}

.achievement-badge-fallback {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(200, 106, 111, 0.12);
  color: #f5d2d4;
  font-weight: 900;
  text-align: center;
}

.achievement-badge-fallback--mini {
  width: 32px;
  height: 32px;
  font-size: 10px;
}

.achievement-badge-fallback--large {
  width: 108px;
  height: 108px;
  font-size: 15px;
}

.achievement-card-shell {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.achievement-card-badge {
  width: 108px;
  min-width: 108px;
  display: grid;
  place-items: center;
  padding-top: 2px;
}

.achievement-card-badge.is-locked {
  opacity: 0.45;
  filter: grayscale(0.2);
}

.achievement-card.is-diamond-complete {
  border-color: rgba(88, 194, 255, 0.22);
  background:
    radial-gradient(circle at 12% 14%, rgba(88, 194, 255, 0.08), transparent 24%),
    radial-gradient(circle at 88% 18%, rgba(131, 88, 255, 0.07), transparent 24%),
    linear-gradient(180deg, rgba(17, 25, 36, 0.98), rgba(20, 28, 40, 0.94));
  box-shadow:
    0 0 0 1px rgba(77, 191, 255, 0.08) inset,
    0 14px 30px rgba(18, 57, 98, 0.18);
}

.achievement-card.is-diamond-complete .achievement-card__title {
  color: #eef8ff;
}

.achievement-card.is-diamond-complete .achievement-card__tier--badge {
  color: #8fd9ff;
}

.achievement-card.is-diamond-complete .achievement-card-badge.is-earned .achievement-badge-image--large,
.achievement-card.is-diamond-complete .achievement-card-badge.is-earned .achievement-badge-fallback--large {
  filter:
    drop-shadow(0 0 10px rgba(69, 198, 255, 0.38))
    drop-shadow(0 0 18px rgba(122, 89, 255, 0.18));
}

.achievement-card.is-diamond-complete .badge-tooltip {
  border-color: rgba(92, 194, 255, 0.32);
  box-shadow:
    0 14px 38px rgba(8, 33, 66, 0.36),
    0 0 0 1px rgba(103, 191, 255, 0.08) inset;
}

.achievement-card__tier--badge {
  min-width: 90px;
  text-align: right;
  color: #d8e1ea;
}

.achievement-tier-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.achievement-tier-badge {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.achievement-tier-badge,
.achievement-card-badge,
.profile-badge-item,
.achievement-picker-badge,
.achievement-profile-slot {
  appearance: none;
  -webkit-appearance: none;
}

.achievement-tier-badge strong {
  color: #d7dee7;
  font-size: 11px;
}

.achievement-tier-badge.is-locked {
  opacity: 0.48;
}

.achievement-picker {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid rgba(200, 106, 111, 0.16);
  border-radius: 18px;
  background: rgba(15, 22, 31, 0.6);
}

.achievement-picker__title {
  font-weight: 900;
  color: #f5e9dc;
  margin-bottom: 4px;
}

.achievement-profile-slot-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  margin-bottom: 12px;
}

.achievement-profile-slot {
  min-width: 82px;
  min-height: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border-radius: 14px;
  border: 1px dashed rgba(200, 106, 111, 0.22);
  background: rgba(255, 255, 255, 0.02);
}

.achievement-profile-slot.is-filled {
  border-style: solid;
  border-color: rgba(200, 106, 111, 0.4);
  cursor: pointer;
}

.achievement-profile-slot__index {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.achievement-profile-slot__empty {
  font-size: 11px;
  color: var(--muted);
}

.achievement-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.achievement-picker-badge {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-areas:
    "icon label"
    "icon tier";
  gap: 3px 10px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
}

.achievement-picker-badge .achievement-badge-image,
.achievement-picker-badge .achievement-badge-fallback {
  grid-area: icon;
}

.achievement-picker-badge__label {
  grid-area: label;
  color: #eef3f8;
  font-size: 12px;
  font-weight: 800;
}

.achievement-picker-badge__tier {
  grid-area: tier;
  color: var(--muted);
  font-size: 11px;
}

.achievement-picker-badge.is-selected {
  border-color: rgba(200, 106, 111, 0.45);
  background: rgba(200, 106, 111, 0.08);
}

.profile-badge-strip .achievement-badge-image--mini {
  width: 36px;
  height: 36px;
}

.profile-badge-strip .achievement-badge-fallback--mini {
  width: 36px;
  height: 36px;
}

.profile-badge-strip .profile-badge-item.is-diamond {
  border-color: rgba(89, 203, 255, 0.42);
  background:
    radial-gradient(circle at 50% 45%, rgba(86, 198, 255, 0.12), transparent 62%),
    linear-gradient(180deg, rgba(115, 80, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow:
    0 0 0 1px rgba(112, 197, 255, 0.12) inset,
    0 10px 24px rgba(31, 96, 156, 0.18);
}

.profile-badge-strip .profile-badge-item.is-diamond .achievement-badge-image--mini,
.profile-badge-strip .profile-badge-item.is-diamond .achievement-badge-fallback--mini {
  filter:
    drop-shadow(0 0 8px rgba(70, 194, 255, 0.42))
    drop-shadow(0 0 14px rgba(124, 84, 255, 0.22));
  transform: scale(1.04);
}

.profile-badge-strip .profile-badge-item.is-diamond strong {
  color: #e9f8ff;
}

.syndicate-profile-hero {
  background:
    radial-gradient(circle at 12% 18%, rgba(200, 106, 111, 0.18), transparent 30%),
    radial-gradient(circle at 78% 18%, rgba(103, 222, 154, 0.07), transparent 27%),
    linear-gradient(135deg, rgba(11, 16, 23, 0.98), rgba(19, 26, 36, 0.82));
}

.syndicate-profile-avatar-frame {
  border-radius: 16px;
}

.syndicate-profile-avatar-frame .profile-dossier-avatar {
  border-radius: 12px;
}

.syndicate-profile-description {
  max-width: 620px;
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.5;
}

.syndicate-profile-badge-strip {
  background:
    linear-gradient(90deg, rgba(200, 106, 111, 0.07), rgba(103, 222, 154, 0.035)),
    rgba(15, 22, 31, 0.70);
}

.syndicate-application-panel {
  border-color: rgba(200, 106, 111, 0.20);
}

.syndicate-application-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
}

.syndicate-application-content textarea {
  min-height: 94px;
  resize: vertical;
}

.syndicate-profile-members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  padding: 12px;
}

.syndicate-profile-member {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(200, 106, 111, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.025);
}

.syndicate-profile-member-name {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f5e9dc;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-align: left;
}

.syndicate-profile-member-name:hover {
  color: #f5d2d4;
}

.syndicate-profile-member span,
.syndicate-profile-member small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.syndicate-profile-member span {
  color: #e8c4c7;
  font-weight: 800;
}

.profile-dossier-main,
.profile-dossier-side {
  display: grid;
  gap: 12px;
  align-content: start;
}

.profile-panel {
  overflow: hidden;
  border: 1px solid rgba(200, 106, 111, 0.14);
  border-radius: 18px;
  background:
    radial-gradient(circle at 95% 0%, rgba(200, 106, 111, 0.09), transparent 26%),
    rgba(15, 22, 31, 0.76);
  box-shadow: var(--shadow-sm);
}

.profile-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(200, 106, 111, 0.10);
}

.profile-panel-head span {
  color: #f5e9dc;
  font-weight: 900;
}

.profile-panel-head small {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
}

.profile-bio {
  min-height: 220px;
  padding: 18px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.profile-dossier-stat-list {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.profile-dossier-stat-list > div {
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.profile-dossier-stat-list span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-dossier-stat-list strong {
  color: #edf2f6;
}

.profile-cosmetic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
}

.profile-cosmetic-slot {
  min-height: 92px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px dashed rgba(200, 106, 111, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(200, 106, 111, 0.06), rgba(255, 255, 255, 0.018));
  color: var(--muted);
  text-align: center;
}

.profile-cosmetic-slot span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(200, 106, 111, 0.12);
  color: #f5d2d4;
  font-size: 11px;
  font-weight: 900;
}

.profile-cosmetic-slot strong {
  color: #cfd8df;
  font-size: 11px;
}

.profile-cosmetic-slot.is-earned {
  border-style: solid;
  border-color: rgba(200, 106, 111, 0.34);
}

/* === SHOWDOWN === */
.showdown-block {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(200, 106, 111, 0.10);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.024);
}

.showdown-title {
  font-weight: 700;
  color: #f0dfb4;
  margin-bottom: 8px;
}

.showdown-side-by-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.showdown-card-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.showdown-card {
  position: relative;
  width: 86px;
  height: 122px;
  border-radius: 12px;
  border: 1px solid rgba(200, 106, 111, 0.16);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03)),
    linear-gradient(135deg, #18202a, #0f151c);
  box-shadow: 0 10px 24px rgba(0,0,0,0.24);
  overflow: hidden;
}

.showdown-card.red { color: #e86f7d; }
.showdown-card.black { color: #e6edf3; }

.showdown-card-corner {
  position: absolute;
  left: 8px;
  top: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.05;
}

.showdown-card-corner.mirrored {
  left: auto;
  right: 8px;
  top: auto;
  bottom: 8px;
  transform: rotate(180deg);
}

.showdown-card-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  opacity: 0.92;
}

.showdown-table {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 8px 10px;
  align-items: center;
}

.showdown-table-head {
  color: var(--accent);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-bottom: 4px;
}

.showdown-table-cell {
  min-height: 34px;
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .auth-layout {
    padding: 8px 12px 18px;
    gap: 14px;
  }

  .auth-hero-card {
    min-height: auto;
    padding: 24px 18px 20px;
  }

  .auth-hero-title {
    font-size: 34px;
  }

  .auth-hero-lead,
  .auth-contentbox-text {
    font-size: 13px;
    line-height: 1.6;
  }

  .auth-hero-pills {
    margin-bottom: 14px;
  }

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

  .showdown-side-by-side { grid-template-columns: 1fr; }
  .showdown-table { grid-template-columns: 1fr; gap: 4px; }
  .showdown-table-head { display: none; }
  .showdown-table-cell { padding: 2px 0; }
}




/* === Standardized result boxes (shared across features) === */
.result-box,
.result-box--success,
.result-box--warning,
.result-box--error,
.result-box--info,
.result-box--cooldown {
  border-radius: 10px;
  padding: 10px;
}

.result-box--success {
  border: 1px solid rgba(103, 222, 154, 0.35);
  background: rgba(103, 222, 154, 0.08);
  color: var(--success);
}

.result-box--warning {
  border: 1px solid rgba(232, 196, 106, 0.35);
  background: rgba(232, 196, 106, 0.08);
  color: var(--warning);
}

.result-box--error {
  border: 1px solid rgba(230, 107, 121, 0.35);
  background: rgba(230, 107, 121, 0.08);
  color: var(--danger);
}

.result-box--info {
  border: 1px solid rgba(139, 184, 216, 0.24);
  background: rgba(139, 184, 216, 0.08);
  color: #b9d6e8;
}


/* Cooldown result box mirrors the warning state. */
.result-box--cooldown {
  border: 1px solid rgba(232, 196, 106, 0.35);
  background: linear-gradient(
    to right,
    rgba(232, 196, 106, 0.12),
    rgba(232, 196, 106, 0.04)
  );
  color: #f4d37a;
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 8px;
}


/* Inbox */
.inbox-view .context-banner {
  margin-bottom: 12px;
}

.inbox-layout {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.inbox-layout-focused {
  grid-template-columns: minmax(0, 1fr);
}

.inbox-sidebar,
.inbox-conversation {
  min-height: 560px;
}

.inbox-sidebar {
  overflow: hidden;
}

.inbox-sidebar-head,
.inbox-panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid rgba(200, 106, 111, 0.12);
}

.inbox-thread-list {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.inbox-thread-row-wrap {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.inbox-thread-check {
  display: inline-flex;
  justify-content: center;
}

.inbox-thread-check input {
  width: 15px;
  height: 15px;
}

.inbox-thread-card {
  position: relative;
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(200, 106, 111, 0.10);
  background: rgba(13, 19, 27, 0.74);
  color: var(--text-soft);
  text-align: left;
  cursor: pointer;
}

.inbox-thread-card:hover,
.inbox-thread-card.selected {
  border-color: rgba(200, 106, 111, 0.28);
  background: rgba(28, 37, 49, 0.82);
}

.inbox-thread-card.unread {
  border-color: rgba(200, 106, 111, 0.36);
}

.inbox-thread-accent {
  width: 4px;
  align-self: stretch;
  border-radius: 99px;
  background: rgba(200, 106, 111, 0.18);
}

.inbox-thread-card.unread .inbox-thread-accent,
.inbox-thread-card.selected .inbox-thread-accent {
  background: linear-gradient(to bottom, #f0c977, #a25b3b);
}

.inbox-thread-main,
.inbox-thread-top,
.inbox-thread-preview {
  min-width: 0;
}

.inbox-thread-main {
  display: grid;
  gap: 5px;
}

.inbox-thread-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.inbox-thread-name {
  color: var(--text);
  font-weight: 700;
}

.inbox-thread-time {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.inbox-thread-preview {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inbox-unread-badge {
  align-self: start;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(200, 106, 111, 0.18);
  color: #f0d08e;
  border: 1px solid rgba(200, 106, 111, 0.22);
  font-size: 10px;
  font-weight: 700;
}

.inbox-conversation .card-content {
  height: 100%;
  padding: 0;
}

.inbox-conversation-inner,
.inbox-compose {
  min-height: 560px;
  display: flex;
  flex-direction: column;
}

.inbox-conversation-focused,
.inbox-conversation-focused .inbox-conversation-inner {
  min-height: 620px;
}

.inbox-message-list {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
}

.inbox-message {
  display: flex;
}

.inbox-message.mine {
  justify-content: flex-end;
}

.inbox-message.theirs {
  justify-content: flex-start;
}

.inbox-message-bubble {
  min-width: min(360px, 100%);
  max-width: min(86%, 820px);
  padding: 11px 12px;
  border-radius: 16px;
  border: 1px solid rgba(200, 106, 111, 0.10);
  background: rgba(13, 19, 27, 0.80);
  box-shadow: var(--shadow-sm);
}

.inbox-message.mine .inbox-message-bubble {
  background:
    linear-gradient(135deg, rgba(200, 106, 111, 0.16), rgba(32, 42, 53, 0.84));
  border-color: rgba(200, 106, 111, 0.24);
}

.inbox-message-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
}

.inbox-message-meta span:first-child {
  color: var(--text-soft);
  font-weight: 700;
}

.inbox-message-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.45;
  color: var(--text);
}

.inbox-reply-box,
.inbox-compose-form {
  padding: 12px;
  background: rgba(8, 12, 17, 0.46);
}

.inbox-reply-box {
  border-bottom: 1px solid rgba(200, 106, 111, 0.12);
}

.inbox-compose-form {
  margin-top: auto;
  border-top: 1px solid rgba(200, 106, 111, 0.12);
}

.inbox-compose-form {
  display: grid;
  gap: 10px;
}

.emoji-picker {
  position: relative;
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 8px;
}

.emoji-picker-trigger {
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  border-color: rgba(200, 106, 111, 0.18);
  background: rgba(200, 106, 111, 0.07);
  color: var(--text-soft);
  font-size: 11px;
}

.emoji-picker-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  width: min(280px, 78vw);
  display: none;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
  padding: 8px;
  border: 1px solid rgba(200, 106, 111, 0.20);
  border-radius: 14px;
  background: rgba(11, 16, 23, 0.98);
  box-shadow: var(--shadow-md);
}

.emoji-picker.is-open .emoji-picker-menu {
  display: grid;
}

.emoji-picker-menu button {
  min-width: 34px;
  min-height: 32px;
  padding: 4px 6px;
  border-radius: 10px;
  border-color: rgba(200, 106, 111, 0.12);
  background: rgba(255, 255, 255, 0.035);
  font-size: 17px;
  line-height: 1;
}

.emoji-picker-menu button:hover {
  border-color: rgba(200, 106, 111, 0.34);
  background: rgba(200, 106, 111, 0.13);
}

.inbox-empty-state {
  margin: 12px;
  padding: 18px;
  border-radius: 16px;
  border: 1px dashed rgba(200, 106, 111, 0.18);
  background: rgba(8, 12, 17, 0.36);
}

.inbox-empty-state-large {
  margin: auto;
  max-width: 420px;
  text-align: center;
}

.inbox-empty-title {
  color: var(--text);
  font-weight: 800;
  margin-bottom: 6px;
}

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

  .inbox-sidebar,
  .inbox-conversation,
  .inbox-conversation-inner,
  .inbox-compose {
    min-height: auto;
  }

  .inbox-message-bubble {
    min-width: 0;
    max-width: 92%;
  }
}

/* === Support (modern) === */
.support-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  font-size: 12px;
  opacity: 0.92;
}

.support-chip--status { }
.support-chip--priority { }

.support-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.support-toolbar__group {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding-left: 6px;
  border-left: 1px solid rgba(255,255,255,0.10);
}

.support-list-row {
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  margin-bottom: 8px;
}

.support-list-row:hover {
  border-color: rgba(255,255,255,0.12);
}

.support-list-title {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.support-list-preview {
  margin-top: 4px;
  opacity: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.support-list-chips {
  margin-top: 6px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.support-list-side {
  text-align: right;
  opacity: 0.8;
  font-size: 12px;
}

.support-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.support-chat-row {
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}

.support-chat-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.support-chat-user {
  font-weight: 700;
  opacity: 0.95;
}

.support-chat-user--staff {
  opacity: 1;
}

.support-chat-bubble {
  line-height: 1.45;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.support-reply {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* === Help center + support desk === */
.help-support-card > .card-content,
.help-admin-card > .card-content {
  padding: 14px;
}

.help-top-tabs,
.support-tab-row,
.support-filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.help-landing {
  display: grid;
  gap: 14px;
}

.help-landing__intro,
.help-reader,
.support-ticket,
.support-compose-card,
.support-ticket-empty {
  border: 1px solid rgba(200, 106, 111, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(200, 106, 111, 0.05), transparent 36%),
    rgba(12, 18, 27, 0.70);
  padding: 18px;
}

.help-landing__intro h2,
.help-reader h2,
.support-ticket__head h2,
.support-ticket-empty h3,
.support-compose-card h3,
.help-admin-head h2,
.help-admin-editor h3 {
  margin: 4px 0 8px;
}

.help-searchbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 14px;
}

.help-stats-row,
.support-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.help-stat-card,
.support-mini-stats > div {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
}

.help-stat-card span,
.support-mini-stats span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.help-stat-card strong,
.support-mini-stats strong {
  color: var(--cream);
  font-size: 18px;
}

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

.help-article-grid-wrap {
  position: relative;
}

.help-article-grid-wrap.is-collapsed {
  padding-bottom: 54px;
}

.help-article-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 34%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 4px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(13, 19, 28, 0), rgba(13, 19, 28, 0.92) 62%);
}

.help-article-fade button {
  pointer-events: auto;
}

.help-article-list,
.help-admin-article-list,
.support-list {
  display: grid;
  gap: 8px;
  max-height: 62vh;
  overflow: auto;
  padding-right: 4px;
}

.help-article-card,
.help-admin-article {
  display: grid;
  gap: 6px;
  width: 100%;
  text-align: left;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.025);
}

.help-article-card:hover,
.help-admin-article:hover,
.help-article-card.is-active,
.help-admin-article.is-active {
  border-color: rgba(200, 106, 111, 0.35);
  background: rgba(200, 106, 111, 0.07);
}

.help-article-card__title,
.help-admin-article__title {
  color: var(--cream);
  font-weight: 800;
}

.help-article-card__summary,
.help-admin-article__summary {
  color: var(--muted);
  line-height: 1.4;
}

.help-article-card__meta,
.help-admin-article__meta,
.help-reader__meta,
.support-ticket__eyebrow {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.help-center-layout,
.support-shell,
.help-admin-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.help-reader-shell,
.support-focus {
  display: grid;
  gap: 12px;
}

.help-reader-toolbar,
.support-focus__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: rgba(10, 15, 23, 0.62);
}

.help-center-sidebar,
.support-sidebar,
.help-admin-list {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background: rgba(10, 15, 23, 0.68);
  padding: 12px;
}

.help-center-sidebar__top,
.support-sidebar__head,
.help-admin-list__head,
.help-admin-head,
.support-compose-card__head,
.help-admin-editor__head,
.support-compose-card__foot,
.support-reply__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.help-center-sidebar input,
.support-sidebar input {
  margin-top: 10px;
  margin-bottom: 12px;
}

.support-mini-stats {
  margin-bottom: 10px;
}

.support-sidebar input {
  display: block;
  width: 100%;
}

.inbox-sidebar-full {
  grid-column: 1 / -1;
}

.help-reader__lead {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.help-reader__body {
  margin-top: 16px;
  line-height: 1.7;
  color: var(--text);
  word-break: break-word;
}

.help-bb-center {
  text-align: center;
}

.help-reader__footer {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
  font-size: 12px;
}

.help-empty-state,
.support-empty-state,
.support-ticket-empty {
  color: var(--muted);
  border: 1px dashed rgba(200, 106, 111, 0.18);
}

.support-shell {
  grid-template-columns: 370px minmax(0, 1fr);
}

.support-sidebar__head h3 {
  margin: 4px 0 0;
}

.support-list-row {
  grid-template-columns: minmax(0, 1fr) 118px;
  margin-bottom: 0;
  padding: 12px;
  background: rgba(255,255,255,0.025);
}

.support-list-main {
  min-width: 0;
}

.support-list-side {
  display: grid;
  gap: 4px;
}

.support-list-side span {
  display: block;
}

.support-chip {
  background: rgba(255,255,255,0.035);
}

.support-ticket {
  min-height: 520px;
}

.support-ticket__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.support-ticket__meta,
.support-ticket__chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}

.support-toolbar {
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
}

.support-chat-row--staff {
  border-color: rgba(200, 106, 111, 0.20);
  background: rgba(200, 106, 111, 0.055);
}

.support-chat-meta .muted {
  font-size: 12px;
}

.support-reply__foot,
.support-compose-card__foot {
  margin-top: 8px;
}

.support-closed-note {
  margin-top: 12px;
  color: var(--muted);
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.025);
}

.help-admin-head {
  margin-bottom: 12px;
}

.help-admin-list__head {
  margin-bottom: 10px;
}

.help-admin-article__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.help-admin-editor {
  border: 1px solid rgba(200, 106, 111, 0.12);
  border-radius: 18px;
  background: rgba(12, 18, 27, 0.70);
  padding: 16px;
}

.bbcode-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 10px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(255,255,255,0.025);
}

.bbcode-size-1 { font-size: 0.78em; }
.bbcode-size-2 { font-size: 0.9em; }
.bbcode-size-3 { font-size: 1em; }
.bbcode-size-4 { font-size: 1.18em; }
.bbcode-size-5 { font-size: 1.38em; }

.bbcode-center {
  text-align: center;
}

.bbcode-image {
  display: block;
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 14px;
  margin: 10px auto;
  border: 1px solid rgba(255,255,255,0.10);
}

.bbcode-quote {
  margin: 8px 0 6px;
  padding: 10px 12px;
  color: #aebdca;
  border-left: 3px solid rgba(200, 106, 111, 0.55);
  border-radius: 10px;
  background: rgba(255,255,255,0.035);
}

.bbcode-quote-author {
  margin-bottom: 5px;
  color: #f2d4d5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bbcode-quote-meta {
  margin-left: 8px;
  color: #7f909e;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: none;
}

.bbcode-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 10px 0;
  border: 1px solid rgba(200, 106, 111, 0.14);
  border-radius: 12px;
}

.bbcode-table {
  width: 100%;
  min-width: 320px;
  border-collapse: collapse;
  background: rgba(8, 13, 20, 0.45);
}

.bbcode-table th,
.bbcode-table td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  border-right: 1px solid rgba(255,255,255,0.05);
  text-align: left;
  vertical-align: top;
}

.bbcode-table th {
  color: #f2d4d5;
  background: rgba(200, 106, 111, 0.10);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.bbcode-table th:last-child,
.bbcode-table td:last-child {
  border-right: 0;
}

.forum-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.forum-pagination .nav-btn,
.forum-pagination .forum-page-btn {
  display: inline-flex !important;
  width: auto !important;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.help-admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 10px;
}

@media (max-width: 980px) {
  .help-center-layout,
  .support-shell,
  .help-admin-layout {
    grid-template-columns: 1fr;
  }

  .help-article-grid,
  .help-searchbar {
    grid-template-columns: 1fr;
  }

  .support-ticket__head,
  .support-compose-card__head,
  .support-compose-card__foot,
  .support-reply__foot,
  .help-reader-toolbar,
  .support-focus__toolbar,
  .help-admin-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* === Admin audit: compact + NO letter-stacking === */


.card .card-content .action-list .action-row.admin-audit-row{
  padding: 6px 10px !important;
  border-radius: 12px !important;
}

.card .card-content .action-list .action-row.admin-audit-row .admin-audit-main{
  min-width: 0 !important;
}

.card .card-content .action-list .action-row.admin-audit-row .admin-audit-meta{
  /* Disable the one-letter-per-line effect */
  word-break: normal !important;
  overflow-wrap: normal !important;
  white-space: normal !important;
}

.card .card-content .action-list .action-row.admin-audit-row .action-name{
  font-size: 13px !important;
  line-height: 1.2 !important;
}

.card .card-content .action-list .action-row.admin-audit-row .action-side{
  font-size: 11px !important;
  opacity: .8 !important;
}

#adminAuditCard,
#adminAuditCard .card-content{
  overflow: visible !important;
}

/* Admin audit: scroll wrapper (robust) */
.admin-audit-scroll{
  max-height: 55vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding-right: 6px;
  -webkit-overflow-scrolling: touch;
}

/* Keep the list itself non-scrolling */
#adminAuditList{
  overflow: visible !important;
  max-height: none !important;
}

/* Admin player actions scroll */
.admin-actions-scroll{
  max-height: 55vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding-right: 6px;
  -webkit-overflow-scrolling: touch;
}

.admin-actions-row{
  padding: 6px 10px !important;
  border-radius: 12px !important;
}

.admin-actions-main{
  min-width: 0 !important;
}

.admin-inline-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.admin-inline-control input,
.admin-inline-control select {
  min-width: 0;
}

.admin-inline-control button {
  white-space: nowrap;
}

.admin-notices-list{
  max-height: 58vh;
  overflow-y: auto;
  padding-right: 6px;
}


/* === Global checkbox styling (dark) === */
input[type="checkbox"]{
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(20, 28, 38, 0.75);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.35);
  display: inline-grid;
  place-content: center;
  cursor: pointer;
}

input[type="checkbox"]:hover{
  border-color: rgba(255,255,255,0.24);
  background: rgba(26, 36, 48, 0.78);
}

input[type="checkbox"]:focus{
  outline: none;
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.08),
    inset 0 0 0 1px rgba(0,0,0,0.35);
}

input[type="checkbox"]::after{
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  transform: scale(0);
  transition: transform 120ms ease;
  background: rgba(175, 198, 230, 0.9);
}

input[type="checkbox"]:checked{
  border-color: rgba(175, 198, 230, 0.35);
  background: rgba(22, 32, 45, 0.85);
}

input[type="checkbox"]:checked::after{
  transform: scale(1);
}

/* === Jail === */
.jail-banner{
  background-image:
    linear-gradient(90deg, rgba(8, 10, 14, .72), rgba(8, 10, 14, .24)),
    radial-gradient(circle at 78% 30%, rgba(200,106,111,.18), rgba(0,0,0,0) 35%),
    url("../assets/banners/cb-prison2.png");
    background-position: right 40%;
}

.jail-status{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(12, 18, 27, .72);
}

.jail-status--jailed{
  border-color: rgba(200,106,111,.28);
  box-shadow: inset 0 0 0 1px rgba(200,106,111,.08);
}

.jail-status__title,
.jail-inmate__name{
  color: var(--text);
  font-weight: 800;
}

.jail-actions{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.jail-inmate-list{
  display: grid;
  gap: 8px;
}

.jail-inmate{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  background: rgba(14, 21, 31, .64);
}

.jail-inmate__side{
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.jail-inmate__time{
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.airport-first-class-label {
  color: var(--text-soft);
  font-weight: 600;
}

.network-history-list .exposure-history-title {
  color: var(--text-soft);
  font-weight: 500;
}

.network-history-list {
  max-height: 320px;
  overflow: auto;
  scrollbar-color: rgba(194, 67, 82, 0.45) rgba(255,255,255,0.04);
}

.network-history-list .exposure-history-item {
  background: rgba(255,255,255,0.025);
}

.syndicate-activity-list {
  max-height: 430px;
  overflow: auto;
  scrollbar-color: rgba(194, 67, 82, 0.45) rgba(255,255,255,0.04);
}

.syndicate-activity-list .forum-thread-row strong {
  color: var(--text-soft);
  font-weight: 500;
}

.network-banner{
  background-image:
    linear-gradient(90deg, rgba(8, 10, 14, .9), rgba(8, 10, 14, .34)),
    radial-gradient(circle at 78% 32%, rgba(200,106,111,.16), rgba(0,0,0,0) 36%),
    url("../assets/banners/cb-network.png");
}

.network-history-list{
  display: grid;
  gap: 10px;
  min-height: 320px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(200,106,111,.34) rgba(255,255,255,.03);
}

.network-history-list::-webkit-scrollbar{
  width: 8px;
}

.network-history-list::-webkit-scrollbar-track{
  background: rgba(255,255,255,.03);
  border-radius: 999px;
}

.network-history-list::-webkit-scrollbar-thumb{
  background: rgba(200,106,111,.34);
  border-radius: 999px;
}

.cyber-compact-list{
  display: grid;
  gap: 8px;
}

.cyber-compact-list .exposure-history-item{
  padding: 10px 12px;
  min-height: 0;
}

.cyber-compact-list .exposure-history-title{
  font-weight: 600;
}

.cyber-mode-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.cyber-mode-card{
  appearance: none;
  display: grid;
  gap: 8px;
  text-align: left;
  min-height: 150px;
  padding: 14px;
  cursor: pointer;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 78% 12%, rgba(200,106,111,.11), transparent 36%),
    linear-gradient(180deg, rgba(21, 29, 40, .9), rgba(13, 18, 27, .88));
}

.cyber-mode-card:disabled{
  cursor: not-allowed;
}

.cyber-mode-card:not(:disabled):hover{
  transform: translateY(-1px);
  border-color: rgba(200,106,111,.28);
}

.cyber-mode-card.is-active{
  border-color: rgba(200,106,111,.34);
  box-shadow: 0 0 0 1px rgba(200,106,111,.08), 0 18px 44px rgba(0,0,0,.18);
}

.cyber-mode-card.is-locked{
  opacity: .64;
}

.cyber-mode-card__kicker{
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.cyber-mode-card__title{
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
}

.cyber-mode-card__desc{
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.cyber-mode-card__meta{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.cyber-mode-card__meta span{
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.cyber-system-form{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.cyber-system-form label{
  display: grid;
  gap: 6px;
}

.cyber-system-form input,
.cyber-system-form select{
  width: 100%;
}

.cyber-loadout-list{
  display: grid;
  gap: 8px;
}

.cyber-loadout-item{
  align-items: center;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 14px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 10px 12px;
}

.cyber-loadout-item span{
  display: grid;
  gap: 3px;
}

.cyber-loadout-item small{
  color: var(--muted);
  font-size: .78rem;
}

.cyber-loadout-item input{
  max-width: 86px;
}

@media (max-width: 760px){
  .cyber-mode-grid{
    grid-template-columns: 1fr;
  }

  .cyber-system-form{
    grid-template-columns: 1fr;
  }

  .cyber-loadout-item{
    align-items: stretch;
    flex-direction: column;
  }

  .cyber-loadout-item input{
    max-width: none;
    width: 100%;
  }
}

.network-tab-row{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.network-action-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.network-action-card{
  display: grid;
  gap: 8px;
  text-align: left;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    linear-gradient(180deg, rgba(21, 29, 40, .92), rgba(15, 21, 31, .9));
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.network-action-card:hover{
  transform: translateY(-1px);
  border-color: rgba(200,106,111,.22);
  background:
    linear-gradient(180deg, rgba(24, 32, 44, .96), rgba(16, 22, 33, .94));
}

.network-action-card__kicker{
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.network-action-card__title{
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.network-action-card__body{
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.network-list .action-row{
  align-items: center;
}

.network-challenge__question{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 10px 14px;
  border: 1px solid rgba(216,106,118,.34);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.network-challenge__form{
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.network-challenge__form input{
  max-width: 140px;
  text-align: center;
}

.network-row-owned{
  grid-template-columns: 12px minmax(0, 1fr) 220px;
}

.network-row-expand{
  grid-template-columns: 12px minmax(0, 1fr) 220px;
}

.network-row-locked{
  opacity: .92;
  border-color: rgba(200,106,111,.14);
}

.shop-banner{
  background-image:
    linear-gradient(90deg, rgba(8, 10, 14, .9), rgba(8, 10, 14, .34)),
    radial-gradient(circle at 78% 32%, rgba(200,106,111,.18), rgba(0,0,0,0) 36%),
    url("../assets/banners/cb-shop2.png");
}

.shop-shell,
.shop-shell > .card-content,
.shop-shell .card,
.shop-shell .card-content{
  overflow: visible;
}

.shop-package-strip{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.shop-package-pill{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 66px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(15, 22, 32, .74);
  color: var(--text);
}

.shop-package-pill__points,
.shop-package-pill__price{
  align-self: center;
  font-weight: 900;
}

.shop-package-pill__price{
  color: var(--text-soft);
}

.shop-package-pill small{
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.shop-package-pill small.shop-package-pill__bonus{
  color: #d98987;
}

.shop-item-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.shop-item-card{
  position: relative;
  z-index: 1;
  min-height: 158px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 18% 16%, rgba(200,106,111,.18), rgba(0,0,0,0) 36%),
    linear-gradient(180deg, rgba(22, 30, 42, .94), rgba(14, 20, 30, .92));
  overflow: visible;
}

.shop-item-card:hover{
  z-index: 30;
}

.shop-item-card.is-active{
  border-color: rgba(200,106,111,.28);
}

.shop-item-card__top{
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shop-item-card__mark{
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(200,106,111,.16);
  color: var(--text);
  font-weight: 900;
  letter-spacing: .08em;
}

.shop-tooltip{
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  color: var(--muted);
  cursor: help;
}

.shop-tooltip:hover::after{
  content: attr(data-tooltip);
  position: absolute;
  right: 0;
  top: 34px;
  z-index: 60;
  width: min(280px, 70vw);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(8, 12, 19, .98);
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
  box-shadow: 0 14px 38px rgba(0,0,0,.35);
}

.shop-item-card__title{
  margin-top: 16px;
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
}

.shop-item-card__price{
  margin-top: 8px;
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
}

.shop-item-card__status{
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.shop-item-card__button{
  margin-top: 14px;
  width: 100%;
}

.shop-history-list{
  display: grid;
  gap: 10px;
  min-height: 320px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(200,106,111,.34) rgba(255,255,255,.03);
}

.shop-history-list::-webkit-scrollbar{
  width: 8px;
}

.shop-history-list::-webkit-scrollbar-track{
  background: rgba(255,255,255,.03);
  border-radius: 999px;
}

.shop-history-list::-webkit-scrollbar-thumb{
  background: rgba(200,106,111,.34);
  border-radius: 999px;
}

@media (max-width: 760px){
  .profile-dossier-hero,
  .profile-dossier-grid {
    grid-template-columns: 1fr;
  }

  .profile-dossier-hero {
    padding: 18px;
  }

  .profile-dossier-avatar-frame {
    width: 170px;
    height: 170px;
  }

  .profile-dossier-avatar-frame-player {
    width: 198px;
    height: 216px;
  }

  .profile-dossier-actions {
    justify-self: start;
  }

  .profile-badge-strip {
    grid-template-columns: 1fr;
  }

  .profile-badge-strip-list {
    justify-content: flex-start;
  }

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

  .profile-cosmetic-grid {
    grid-template-columns: 1fr;
  }

  .home-stat-strip,
  .home-dashboard-grid,
  .home-activity-grid,
  .exposure-top-grid,
  .exposure-grid,
  .network-action-grid,
  .shop-package-strip,
  .shop-item-grid{
    grid-template-columns: 1fr;
  }

  .exposure-status-heading {
    align-items: stretch;
  }

  .exposure-level-number {
    min-width: 82px;
  }

  .exposure-status-meta {
    grid-template-columns: 1fr;
  }

  .exposure-status-side-stack {
    grid-template-columns: 1fr;
  }

  .exposure-status-chip {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .exposure-status-chip strong {
    align-self: center;
    text-align: right;
  }

  .exposure-history-scroll {
    max-height: 330px;
  }

  .exposure-action-card:hover {
    transform: none;
  }

  .network-row-owned,
  .network-row-expand{
    grid-template-columns: 12px minmax(0, 1fr);
  }


  .home-rank-heading,
  .home-feed-item{
    align-items: flex-start;
    flex-direction: column;
  }

  .home-rank-percent{
    text-align: left;
  }

  .jail-status,
  .jail-inmate,
  .jail-inmate__side{
    align-items: flex-start;
    flex-direction: column;
  }

  .jail-actions{
    justify-content: flex-start;
  }
}

/* === Situasjonsbilde === */
.citystate-banner {
  background-image:
    linear-gradient(90deg, rgba(8, 10, 14, .92), rgba(8, 10, 14, .35)),
    radial-gradient(circle at 78% 28%, rgba(200,106,111,.18), rgba(0,0,0,0) 34%),
    url("../assets/banners/cb-citystate.png");
}

.city-state-current {
  margin-bottom: 14px;
}

.city-state-current h3 {
  margin: 4px 0 8px;
  color: var(--text);
}

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

.city-state-card {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: rgba(13, 19, 28, 0.68);
  padding: 14px;
}

.city-state-card.current {
  border-color: rgba(200, 106, 111, 0.34);
  background: linear-gradient(135deg, rgba(200, 106, 111, 0.12), rgba(13, 19, 28, 0.72));
}

.city-state-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.city-state-city {
  color: var(--text);
  font-weight: 800;
}

.city-state-name {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.city-state-badge,
.city-state-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(200, 106, 111, 0.24);
  background: rgba(200, 106, 111, 0.08);
  color: #e8c4c7;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
}

.city-state-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.city-state-pill.positive {
  border-color: rgba(118, 190, 142, 0.24);
  background: rgba(118, 190, 142, 0.08);
  color: #bfe3c8;
}

.city-state-pill.negative {
  border-color: rgba(200, 106, 111, 0.26);
  background: rgba(200, 106, 111, 0.08);
  color: #e8c4c7;
}

@media (max-width: 760px) {
  .city-state-grid {
    grid-template-columns: 1fr;
  }
}
.backroom-banner {
  --banner-image: url("/assets/banners/cb-confrontation.png");
}

.backroom-dashboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.backroom-stat-card,
.backroom-action-panel,
.backroom-style-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 22, 31, 0.78);
  border-radius: 14px;
}

.backroom-stat-card {
  padding: 14px;
}

.backroom-stat-card span,
.backroom-style-kicker {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.backroom-stat-card strong {
  display: block;
  margin: 6px 0 4px;
  color: var(--text);
  font-size: 18px;
}

.backroom-stat-card small,
.backroom-style-desc,
.backroom-style-meta {
  color: var(--muted);
  line-height: 1.45;
}

.backroom-action-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  margin: 12px 0;
}

.backroom-action-panel h3 {
  margin: 3px 0 6px;
  font-size: 22px;
}

.backroom-style-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.backroom-style-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px;
  text-align: left;
  min-height: 150px;
}

.backroom-style-card.is-active {
  border-color: rgba(199, 58, 74, 0.55);
  background:
    linear-gradient(135deg, rgba(199, 58, 74, 0.14), rgba(16, 22, 31, 0.8));
}

.backroom-style-title {
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.backroom-style-meta {
  margin-top: auto;
  font-size: 12px;
}

.backroom-history-list {
  display: grid;
  gap: 8px;
}

.backroom-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 3px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(10, 14, 21, 0.55);
}

.backroom-history-row.is-win {
  border-left-color: rgba(95, 183, 117, 0.75);
}

.backroom-history-row.is-loss {
  border-left-color: rgba(199, 58, 74, 0.75);
}

.backroom-history-title {
  font-weight: 850;
  color: var(--text);
}

.backroom-history-reward {
  display: grid;
  gap: 2px;
  min-width: 110px;
  text-align: right;
}

.backroom-history-reward span {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 760px) {
  .backroom-dashboard,
  .backroom-style-grid {
    grid-template-columns: 1fr;
  }

  .backroom-action-panel,
  .backroom-history-row {
    align-items: stretch;
    flex-direction: column;
  }

.backroom-history-reward {
    text-align: left;
  }
}

.missions-banner {
  --banner-image: url("/assets/banners/cb-missions.png");
  background-position: right 70%;
}

.mission-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.mission-category-card,
.mission-focus-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(16, 22, 31, 0.78);
  border-radius: 14px;
}

.mission-category-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-height: 165px;
  padding: 14px;
}

.mission-category-card.is-active {
  border-color: rgba(199, 58, 74, 0.42);
  background: linear-gradient(135deg, rgba(199, 58, 74, 0.12), rgba(16, 22, 31, 0.78));
}

.mission-category-card h3,
.mission-focus-card h3 {
  margin: 4px 0 7px;
}

.mission-category-card h3 {
  font-size: 15px;
}

.mission-category-card p {
  font-size: 12px;
  line-height: 1.4;
}

.mission-category-pill {
  align-self: flex-start;
  border: 1px solid rgba(199, 58, 74, 0.24);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 800;
  padding: 5px 9px;
}

.mission-focus-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 12px;
}

.mission-focus-card {
  padding: 18px;
}

.mission-progress {
  margin-top: 14px;
}

.mission-progress-bar {
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(8, 12, 18, 0.72);
}

.mission-progress-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 20px rgba(199, 58, 74, 0.2);
}

.mission-progress-meta,
.mission-reward {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  margin-top: 7px;
}

.mission-reward {
  justify-content: flex-start;
  color: var(--text-soft);
  font-weight: 800;
}

.mission-reward--hidden {
  color: var(--muted);
  font-weight: 600;
}

.car-theft-banner {
  --banner-image: url("/assets/banners/cb-cartheft.png");
  background-position: right 60%;
}

.night-race-banner {
  --banner-image: url("/assets/banners/cb-nightrace.png");
}

.action-choice-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 12px 0;
}

.action-choice {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  min-height: 62px;
  text-align: left;
}

.action-choice small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
}

.action-choice.selected small {
  color: rgba(245, 238, 230, 0.72);
}

.night-race-vehicle-list {
  max-height: 280px;
  overflow-y: auto;
  scrollbar-color: rgba(200, 106, 111, 0.40) rgba(255, 255, 255, 0.025);
  scrollbar-width: thin;
}

.night-race-vehicle-list::-webkit-scrollbar {
  width: 8px;
}

.night-race-vehicle-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.025);
  border-radius: 999px;
}

.night-race-vehicle-list::-webkit-scrollbar-thumb {
  background: rgba(200, 106, 111, 0.40);
  border-radius: 999px;
}

.night-race-vehicle-list::-webkit-scrollbar-thumb:hover {
  background: rgba(200, 106, 111, 0.58);
}

/* === Tab styling === */
.tabs-wrapper {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(200, 106, 111, 0.18);
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.tab-btn {
  min-height: auto;
  padding: 8px 14px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: -12px;
  padding-bottom: 10px;
}

.tab-btn:hover {
  color: var(--text-soft);
}

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.syndicate-tabs {
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 14px;
}

.syndicate-tabs .tab-btn {
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(200, 106, 111, 0.16);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(200, 106, 111, 0.06), rgba(255,255,255,0.02)),
    rgba(14, 20, 29, 0.72);
  color: var(--text-soft);
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 0;
  padding-bottom: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.syndicate-tabs .tab-btn:hover {
  color: var(--text);
  border-color: rgba(200, 106, 111, 0.28);
  background:
    linear-gradient(135deg, rgba(200, 106, 111, 0.10), rgba(255,255,255,0.03)),
    rgba(16, 23, 33, 0.84);
}

.syndicate-tabs .tab-btn.active {
  color: var(--text);
  border-color: rgba(200, 106, 111, 0.42);
  border-bottom-color: rgba(200, 106, 111, 0.42);
  background:
    linear-gradient(135deg, rgba(200, 106, 111, 0.18), rgba(255,255,255,0.04)),
    rgba(20, 28, 40, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 10px 24px rgba(0,0,0,0.18);
}

.tab-content {
  animation: fadeIn 0.2s ease;
}

.tab-content.hidden {
  display: none;
}

.depot-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  margin: 0 0 12px;
  border: 1px solid rgba(200, 106, 111, 0.18);
  border-radius: 16px;
  background: rgba(7, 11, 18, 0.42);
}

.depot-tab {
  min-width: 118px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.03em;
}

.depot-tab:hover {
  color: var(--text-soft);
  border-color: rgba(200, 106, 111, 0.22);
}

.depot-tab.active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(199, 58, 74, 0.18), rgba(255, 255, 255, 0.04));
  border-color: rgba(200, 106, 111, 0.36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.depot-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
  padding: 14px;
}

.section-mini-title {
  color: var(--text);
  font-weight: 900;
  margin-bottom: 5px;
}

.depot-section-actions,
.depot-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.depot-list-head,
.depot-row {
  grid-template-columns: 12px minmax(0, 1fr) 110px 190px;
}

.depot-row {
  cursor: default;
}

.depot-row .action-main {
  min-width: 0;
}

.depot-row .action-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.depot-row .action-side {
  text-align: right;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 760px) {
  .mission-category-grid,
  .mission-focus-grid {
    grid-template-columns: 1fr;
  }
}

/* === Mobile polish pass === */
@media (max-width: 1024px) {
  body {
    background-attachment: scroll;
  }

  .view-wrap {
    padding: 8px;
    padding-bottom: 66px;
  }

  .card {
    border-radius: 13px;
    margin-bottom: 10px;
  }

  .card-content {
    padding: 10px;
  }

  .context-banner {
    min-height: 118px;
    border-radius: 13px;
    background-position: center center;
  }

  .context-banner-content {
    min-height: 118px;
    padding: 16px 14px 14px;
  }

  .context-title {
    font-size: 19px;
    margin-bottom: 6px;
  }

  .context-desc {
    font-size: 12px;
    line-height: 1.42;
    max-width: 100%;
  }

  .context-badges {
    gap: 6px;
    margin-top: 9px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .context-badges::-webkit-scrollbar {
    display: none;
  }

  .context-badge {
    min-height: 25px;
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .action-list-head {
    display: none;
  }

  .action-list {
    display: grid;
    gap: 8px;
    background: transparent;
    border: 0;
  }

  .action-row {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) minmax(92px, auto);
    gap: 8px;
    align-items: center;
    min-height: 46px;
    padding: 9px 10px;
    border: 1px solid rgba(200, 106, 111, 0.12);
    border-radius: 11px;
    background: rgba(11, 16, 22, 0.58);
  }

  .depot-row,
  .network-list .action-row {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr);
    gap: 8px 10px;
    align-items: start;
    padding: 12px;
    border: 1px solid rgba(200, 106, 111, 0.12);
    border-radius: 13px;
    background: rgba(11, 16, 22, 0.58);
  }

  .action-row .action-main,
  .depot-row .action-main {
    min-width: 0;
  }

  .action-row .action-side {
    grid-column: 3;
    justify-self: end;
    align-self: center;
    min-width: 86px;
    text-align: right;
    color: var(--text-soft);
  }

  .depot-row .action-side,
  .network-list .action-row .action-side {
    grid-column: 2;
    text-align: left;
    justify-self: start;
    color: var(--text-soft);
  }

  .action-row .chance-stack {
    align-items: flex-end;
    max-width: 96px;
  }

  .action-row .chance-current {
    font-size: 12px;
  }

  .action-row .chance-modifier {
    font-size: 8px;
    white-space: normal;
    text-align: right;
  }

  .action-row .action-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .depot-row-actions,
  .depot-section-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .depot-section-head {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
    padding: 16px;
  }

  .depot-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .depot-tab {
    min-width: 0;
    width: 100%;
  }

  .stats-grid,
  .grid-2,
  .split-grid,
  .home-news-feed-grid,
  .profile-dossier-grid,
  .syndicate-application-content,
  .help-search-row,
  .help-stats-grid,
  .city-state-grid {
    grid-template-columns: 1fr !important;
  }

  .profile-dossier-hero,
  .syndicate-profile-hero {
    grid-template-columns: 1fr !important;
    padding: 18px 14px;
    text-align: center;
  }

  .profile-dossier-avatar-wrap {
    justify-self: center;
  }

  .profile-dossier-identity {
    align-items: center;
  }

  .profile-dossier-name-row h1 {
    font-size: clamp(36px, 13vw, 58px);
    text-align: center;
  }

  .profile-dossier-name-row {
    justify-content: center;
  }

  .profile-dossier-chips,
  .profile-dossier-syndicate,
  .profile-badge-strip,
  .profile-badge-strip-list {
    justify-content: center;
  }

  .profile-admin-button {
    position: absolute;
    top: 12px;
    right: 12px;
  }

  .support-list-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .support-list-side {
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .support-list-side span {
    display: inline-flex;
  }

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

  .support-mini-stats > div {
    min-width: 0;
    padding: 10px;
  }

  .help-top-tabs,
  .support-tab-row,
  .support-filter-row {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .city-state-current,
  .city-state-card {
    text-align: left;
  }

  .city-state-card {
    padding: 12px;
  }

  .city-state-card-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    align-items: start;
  }

  .city-state-badge {
    justify-self: start;
  }

  .city-state-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }

  .city-state-pill {
    max-width: 100%;
    white-space: normal;
    line-height: 1.25;
    padding: 6px 8px;
  }

  .card-content > div[style*="display:flex"][style*="gap:20px"] {
    display: block !important;
  }

  .card-content > div[style*="display:flex"][style*="gap:20px"] > div:first-child {
    display: none;
  }

  .mobile-bottom-nav {
    box-shadow: 0 -12px 26px rgba(0, 0, 0, 0.28);
  }

  .mobile-bottom-nav button {
    min-width: 0;
    padding: 10px 8px;
    font-size: 13px;
    letter-spacing: 0.01em;
  }
}

@media (max-width: 600px) {
  .topbar {
    min-height: 50px;
  }

  .brand-subline {
    display: none;
  }

  .mobile-bottom-nav {
    height: 52px;
  }

  .mobile-menu-dropdown {
    top: 50px;
    bottom: 52px;
    width: min(58vw, 220px);
    max-width: 220px;
  }

  .context-banner {
    min-height: 108px;
  }

  .context-banner-content {
    min-height: 108px;
    padding: 14px 12px 12px;
  }

  .crime-banner {
    background-position: 58% 66%;
  }

  .operations-banner {
    background-position: right 52%;
  }

  .context-title {
    font-size: 18px;
  }

  .context-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .mobile-bottom-nav button {
    font-size: 12px;
    padding: 8px 4px;
  }
}

.challenge-toast-root{
  position: fixed;
  top: 84px;
  right: 18px;
  z-index: 140;
  pointer-events: none;
}

.challenge-toast{
  position: relative;
  width: min(320px, calc(100vw - 24px));
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(208, 91, 106, .3);
  background: rgba(12, 16, 22, .96);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .34);
  pointer-events: auto;
}

.challenge-toast__close{
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.65);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.challenge-toast__eyebrow{
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 5px;
}

.challenge-toast__title{
  font-size: .98rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  padding-right: 18px;
}

.challenge-toast__message{
  font-size: .88rem;
  color: rgba(255,255,255,.78);
}

@media (max-width: 720px){
  .challenge-toast-root{
    left: 12px;
    right: 12px;
    top: 72px;
  }

  .challenge-toast{
    width: 100%;
  }
}

.achievement-tier-row{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.achievement-card .card-content{
  color: rgba(255,255,255,.82);
  overflow: visible;
  position: relative;
}

.achievement-card {
  overflow: visible;
}

.achievement-card .muted{
  color: rgba(255,255,255,.56);
}

.achievement-card__title{
  font-weight: 760;
  color: rgba(255,255,255,.86);
}

.achievement-card__tier{
  font-weight: 740;
  opacity: .9;
}

.achievement-tier-item{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px dashed rgba(208, 91, 106, .28);
  background: rgba(255,255,255,.015);
  text-align: center;
}

.achievement-tier-item span{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(208, 91, 106, .16);
  color: rgba(255,255,255,.78);
  font-size: .68rem;
  font-weight: 800;
}

.achievement-tier-item strong{
  font-size: .8rem;
  font-weight: 650;
  color: rgba(255,255,255,.82);
}

.achievement-tier-item.is-earned{
  border-style: solid;
  background: rgba(208, 91, 106, .08);
}

.challenge-tabs{
  flex-wrap: wrap;
}

.challenge-card{
  position: relative;
  overflow: hidden;
}

.challenge-card.is-completed::after{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 12, .24);
  pointer-events: none;
}

.challenge-card.is-completed .card-content{
  filter: saturate(.7) brightness(.92);
}

.challenge-card .muted{
  color: rgba(255,255,255,.58);
}

.challenge-card .card-content{
  color: rgba(255,255,255,.84);
}

@media (max-width: 720px){
  .achievement-tier-row{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
