/* Modern Command Center visual layer.
   This file intentionally sits after styles.css so the existing behavior and
   render contracts remain intact while the product gets one coherent system. */

.design-modern-command-center {
  --modern-bg: #03070c;
  --modern-surface: rgba(5, 14, 22, 0.94);
  --modern-surface-raised: rgba(8, 23, 34, 0.94);
  --modern-surface-soft: rgba(12, 31, 44, 0.74);
  --modern-surface-hover: rgba(18, 43, 58, 0.72);
  --modern-line: rgba(126, 174, 205, 0.16);
  --modern-line-strong: rgba(126, 186, 220, 0.3);
  --modern-gold: #f4c86f;
  --modern-gold-soft: #d6a857;
  --modern-cyan: #62d8ee;
  --modern-emerald: #69d59c;
  --modern-danger: #e96f67;
  --modern-violet: #a58be8;
  --modern-text: #f3f6f8;
  --modern-text-soft: #b6c5cf;
  --modern-text-muted: #79909f;
  --modern-radius: 6px;
  background:
    linear-gradient(180deg, rgba(3, 8, 14, 0.18), rgba(3, 8, 14, 0.9) 72%, #020509 100%),
    url("/assets/hero-launch-v2.png") center top / cover fixed no-repeat,
    var(--modern-bg);
}

/* Cash Top-up R1 — authenticated package selection and PromptPay test flow */
body.cash-topup-modal-open {
  overflow: hidden;
}

.cash-topup-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: none;
  place-items: center;
  padding: 24px;
}

.cash-topup-modal.open {
  display: grid;
}

.cash-topup-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 10%, rgba(24, 117, 186, 0.2), transparent 46%),
    rgba(3, 8, 16, 0.86);
  backdrop-filter: blur(12px);
}

.cash-topup-dialog {
  position: relative;
  width: min(1180px, 96vw);
  max-height: min(900px, 94vh);
  overflow: hidden auto;
  color: #eaf7ff;
  border: 1px solid rgba(109, 203, 255, 0.28);
  border-radius: 28px;
  outline: none;
  background:
    linear-gradient(145deg, rgba(15, 31, 49, 0.98), rgba(6, 16, 29, 0.99)),
    #081523;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.72), inset 0 1px rgba(255, 255, 255, 0.08);
}

.cash-topup-dialog::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 180px;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% -10%, rgba(47, 192, 255, 0.2), transparent 54%),
    radial-gradient(circle at 86% 0%, rgba(255, 184, 71, 0.12), transparent 44%);
}

.cash-topup-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(48px, 1fr);
  align-items: center;
  gap: 22px;
  min-height: 92px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(110, 188, 232, 0.16);
  background: rgba(7, 18, 31, 0.92);
  backdrop-filter: blur(18px);
}

.cash-topup-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.cash-topup-brand > span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(91, 209, 255, 0.34);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(34, 165, 228, 0.2), rgba(11, 53, 84, 0.42));
  box-shadow: 0 12px 28px rgba(0, 132, 206, 0.17);
}

.cash-topup-brand img,
.cash-topup-gem img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.cash-topup-brand small,
.cash-topup-eyebrow {
  display: block;
  color: #65d5ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.cash-topup-brand h2,
.cash-topup-section-head h3,
.cash-topup-payment-copy h3,
.cash-topup-result h3 {
  margin: 3px 0 0;
  color: #f5fbff;
  font-weight: 800;
}

.cash-topup-brand h2 {
  font-size: 22px;
}

.cash-topup-steps {
  display: flex;
  align-items: center;
  color: #668197;
}

.cash-topup-steps span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(116, 153, 179, 0.3);
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.cash-topup-steps span.active {
  color: #06131f;
  border-color: #67d9ff;
  background: linear-gradient(135deg, #82e3ff, #4bb7ef);
  box-shadow: 0 0 22px rgba(72, 192, 247, 0.32);
}

.cash-topup-steps span small {
  position: absolute;
  margin-top: 54px;
  color: #8299ab;
  font-size: 9px;
  white-space: nowrap;
}

.cash-topup-steps i {
  width: 74px;
  height: 1px;
  background: rgba(105, 151, 181, 0.28);
}

.cash-topup-close {
  justify-self: end;
  width: 42px;
  height: 42px;
  color: #9fb5c5;
  border: 1px solid rgba(126, 165, 190, 0.24);
  border-radius: 14px;
  background: rgba(15, 35, 51, 0.74);
  font-size: 25px;
  cursor: pointer;
}

.cash-topup-close:hover,
.cash-topup-close:focus-visible {
  color: #fff;
  border-color: rgba(103, 217, 255, 0.65);
}

.cash-topup-content {
  position: relative;
  min-height: 560px;
  padding: 26px;
}

.cash-topup-message {
  position: sticky;
  top: 92px;
  z-index: 4;
  margin: 0;
  padding: 10px 24px;
  color: #bfeaff;
  border-bottom: 1px solid rgba(78, 186, 237, 0.18);
  background: rgba(8, 43, 65, 0.95);
  text-align: center;
  font-size: 13px;
}

.cash-topup-message.error {
  color: #ffd7d7;
  border-color: rgba(255, 107, 107, 0.26);
  background: rgba(73, 23, 30, 0.95);
}

.cash-topup-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
}

.cash-topup-package-area,
.cash-topup-history,
.cash-topup-payment-stage,
.cash-topup-result {
  border: 1px solid rgba(102, 184, 228, 0.17);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(19, 42, 62, 0.74), rgba(8, 22, 37, 0.86));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.03);
}

.cash-topup-package-area,
.cash-topup-history {
  padding: 22px;
}

.cash-topup-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.cash-topup-section-head h3 {
  font-size: 20px;
}

.cash-topup-profile-badge {
  padding: 7px 11px;
  border: 1px solid rgba(255, 192, 79, 0.34);
  border-radius: 999px;
  color: #ffd488;
  background: rgba(118, 70, 13, 0.22);
  font-size: 11px;
  font-weight: 800;
}

.cash-topup-profile-badge.live {
  color: #91f3c5;
  border-color: rgba(79, 225, 157, 0.34);
  background: rgba(24, 103, 70, 0.24);
}

.cash-topup-account-ribbon {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 12px 15px;
  border: 1px solid rgba(102, 181, 222, 0.14);
  border-radius: 14px;
  color: #8ba7ba;
  background: rgba(4, 15, 27, 0.5);
  font-size: 12px;
}

.cash-topup-account-ribbon strong {
  margin-left: 5px;
  color: #eaf7ff;
}

.cash-topup-package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.cash-topup-package {
  position: relative;
  display: flex;
  min-height: 164px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #e8f6ff;
  border: 1px solid rgba(100, 174, 214, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 34%, rgba(39, 158, 215, 0.13), transparent 42%),
    rgba(7, 22, 36, 0.72);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.cash-topup-package:hover {
  transform: translateY(-2px);
  border-color: rgba(102, 210, 255, 0.48);
}

.cash-topup-package.selected {
  border-color: #53c9fa;
  background:
    radial-gradient(circle at 50% 32%, rgba(68, 194, 244, 0.24), transparent 48%),
    linear-gradient(145deg, rgba(20, 74, 108, 0.82), rgba(7, 27, 44, 0.88));
  box-shadow: 0 0 0 2px rgba(76, 191, 240, 0.1), 0 15px 34px rgba(0, 109, 162, 0.18);
}

.cash-topup-package.selected::after {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  color: #082337;
  border-radius: 999px;
  background: #68d7ff;
  font-size: 11px;
  font-weight: 900;
}

.cash-topup-popular {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 7px;
  color: #ffe0a1;
  border: 1px solid rgba(255, 195, 90, 0.3);
  border-radius: 999px;
  background: rgba(108, 68, 8, 0.35);
  font-size: 9px;
  font-weight: 800;
}

.cash-topup-gem {
  display: grid;
  width: 50px;
  height: 50px;
  margin-bottom: 8px;
  place-items: center;
  filter: drop-shadow(0 7px 11px rgba(34, 173, 230, 0.25));
}

.cash-topup-package > strong {
  font-size: 22px;
  line-height: 1;
}

.cash-topup-package > small {
  margin-top: 5px;
  color: #6ecff6;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.cash-topup-price {
  margin-top: 11px;
  padding: 5px 12px;
  color: #ffe2ad;
  border-radius: 999px;
  background: rgba(147, 92, 17, 0.2);
  font-size: 12px;
  font-weight: 800;
}

.cash-topup-selection-bar {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 15px;
  border: 1px solid rgba(101, 184, 226, 0.16);
  border-radius: 16px;
  background: rgba(4, 14, 25, 0.62);
}

.cash-topup-selection-bar div {
  display: grid;
  gap: 3px;
}

.cash-topup-selection-bar small {
  color: #7895a8;
  font-size: 10px;
}

.cash-topup-selection-bar strong {
  color: #f4fbff;
  font-size: 15px;
}

.cash-topup-primary,
.cash-topup-secondary,
.cash-topup-exact-amount button {
  min-height: 42px;
  padding: 0 19px;
  border-radius: 13px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.cash-topup-primary {
  color: #061722;
  border: 1px solid #74dfff;
  background: linear-gradient(135deg, #8be5ff, #45b6ed);
  box-shadow: 0 11px 24px rgba(21, 147, 206, 0.2);
}

.cash-topup-primary:disabled {
  color: #668191;
  border-color: rgba(91, 127, 148, 0.18);
  background: #172b39;
  box-shadow: none;
  cursor: not-allowed;
}

.cash-topup-secondary,
.cash-topup-exact-amount button {
  color: #bcd7e7;
  border: 1px solid rgba(108, 177, 217, 0.24);
  background: rgba(13, 38, 56, 0.68);
}

.cash-topup-readiness {
  display: flex;
  gap: 11px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 189, 80, 0.18);
  border-radius: 14px;
  background: rgba(99, 61, 8, 0.13);
}

.cash-topup-readiness > span {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  color: #ffd78e;
  border-radius: 999px;
  background: rgba(255, 187, 66, 0.16);
  font-weight: 900;
}

.cash-topup-readiness div {
  display: grid;
  gap: 2px;
}

.cash-topup-readiness strong {
  color: #f4d6a0;
  font-size: 12px;
}

.cash-topup-readiness small {
  color: #98876c;
  font-size: 10px;
}

.cash-topup-readiness.ready {
  border-color: rgba(81, 224, 159, 0.2);
  background: rgba(16, 97, 65, 0.13);
}

.cash-topup-readiness.ready > span,
.cash-topup-readiness.ready strong {
  color: #8cf0bd;
}

.cash-topup-history {
  align-self: start;
}

.cash-topup-history-item {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  padding: 11px 12px;
  color: #dff3ff;
  border: 1px solid rgba(105, 172, 209, 0.12);
  border-radius: 13px;
  background: rgba(5, 18, 30, 0.53);
  text-align: left;
  cursor: pointer;
}

.cash-topup-history-item span {
  display: grid;
  min-width: 0;
}

.cash-topup-history-item small,
.cash-topup-history-empty {
  color: #6e899b;
  font-size: 10px;
}

.cash-topup-history-item em {
  color: #8dcbe8;
  font-size: 9px;
  font-style: normal;
  white-space: nowrap;
}

.cash-topup-history-item em.success { color: #7ee9b4; }
.cash-topup-history-item em.warning { color: #ffd28a; }
.cash-topup-history-item em.danger { color: #ff9b9b; }

.cash-topup-trust-card {
  margin-top: 18px;
  padding: 15px;
  border: 1px solid rgba(88, 184, 229, 0.14);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(15, 61, 86, 0.35), rgba(7, 25, 39, 0.5));
}

.cash-topup-trust-card strong {
  color: #8cddff;
  font-size: 12px;
}

.cash-topup-trust-card ul {
  display: grid;
  gap: 7px;
  margin: 11px 0 0;
  padding: 0;
  color: #809baa;
  font-size: 10px;
  list-style: none;
}

.cash-topup-trust-card li::before {
  content: "✓";
  margin-right: 7px;
  color: #5fd1fa;
}

.cash-topup-payment-stage {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(360px, 1.15fr);
  min-height: 540px;
  overflow: hidden;
}

.cash-topup-qr-panel {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 34px;
  border-right: 1px solid rgba(103, 183, 226, 0.14);
  background:
    radial-gradient(circle at 50% 44%, rgba(37, 177, 235, 0.17), transparent 48%),
    rgba(5, 19, 31, 0.5);
}

.cash-topup-qr-frame {
  display: grid;
  width: min(310px, 72vw);
  aspect-ratio: 1;
  place-items: center;
  padding: 17px;
  border: 1px solid rgba(101, 214, 255, 0.38);
  border-radius: 28px;
  background: #f7fcff;
  box-shadow: 0 20px 55px rgba(0, 116, 170, 0.22), 0 0 0 8px rgba(76, 188, 234, 0.05);
}

.cash-topup-qr-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cash-topup-qr-placeholder {
  color: #315064;
  text-align: center;
  font-weight: 800;
}

.cash-topup-expiry {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  color: #809baa;
  font-size: 11px;
}

.cash-topup-expiry strong {
  color: #ffd48a;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.cash-topup-payment-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px;
}

.cash-topup-payment-copy h3,
.cash-topup-result h3 {
  font-size: 28px;
}

.cash-topup-payment-copy > p,
.cash-topup-result > p {
  margin: 9px 0 22px;
  color: #86a0b2;
  font-size: 13px;
  line-height: 1.7;
}

.cash-topup-exact-amount {
  position: relative;
  display: grid;
  margin-bottom: 18px;
  padding: 18px 105px 18px 18px;
  border: 1px solid rgba(90, 207, 255, 0.27);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(27, 92, 125, 0.42), rgba(8, 36, 56, 0.58));
}

.cash-topup-exact-amount > span {
  color: #7ba9c0;
  font-size: 10px;
}

.cash-topup-exact-amount > strong {
  color: #9ae8ff;
  font-size: 33px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.cash-topup-exact-amount > strong small {
  font-size: 13px;
}

.cash-topup-exact-amount button {
  position: absolute;
  top: 50%;
  right: 12px;
  min-height: 34px;
  padding: 0 12px;
  transform: translateY(-50%);
  font-size: 10px;
}

.cash-topup-order-facts,
.cash-topup-result-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  margin: 0 0 18px;
  border: 1px solid rgba(105, 177, 216, 0.12);
  border-radius: 15px;
  background: rgba(80, 137, 166, 0.1);
}

.cash-topup-order-facts div,
.cash-topup-result-summary div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 12px 14px;
  background: rgba(4, 17, 29, 0.82);
}

.cash-topup-order-facts dt,
.cash-topup-result-summary dt {
  color: #688597;
  font-size: 9px;
}

.cash-topup-order-facts dd,
.cash-topup-result-summary dd {
  overflow: hidden;
  margin: 0;
  color: #d9f1ff;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cash-topup-status-line {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2px 9px;
  margin-bottom: 15px;
  padding: 11px 13px;
  border-radius: 13px;
  background: rgba(19, 76, 108, 0.22);
}

.cash-topup-status-dot {
  grid-row: 1 / 3;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #67d8ff;
  box-shadow: 0 0 14px rgba(83, 202, 250, 0.7);
}

.cash-topup-status-line strong {
  color: #bdeaff;
  font-size: 11px;
}

.cash-topup-status-line small {
  color: #728fa1;
  font-size: 9px;
}

.cash-topup-payment-actions {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 10px;
}

.cash-topup-auto-check {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2px 9px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgba(75, 202, 244, 0.3);
  border-radius: 12px;
  background: rgba(12, 70, 100, 0.3);
}

.cash-topup-auto-check > span {
  grid-row: 1 / 3;
  width: 9px;
  height: 9px;
  border: 2px solid rgba(103, 216, 255, 0.34);
  border-top-color: #67d8ff;
  border-radius: 999px;
  animation: cash-topup-auto-spin 0.9s linear infinite;
}

.cash-topup-auto-check strong { color: #c9f0ff; font-size: 11px; }
.cash-topup-auto-check small { color: #7899aa; font-size: 9px; }

@keyframes cash-topup-auto-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .cash-topup-auto-check > span { animation: none; }
}

.cash-topup-safety-note {
  margin-top: 13px;
  padding: 10px 12px;
  color: #8ba2b0;
  border-left: 2px solid #45bde9;
  background: rgba(4, 18, 30, 0.48);
  font-size: 10px;
  line-height: 1.6;
}

.cash-topup-safety-note.danger {
  color: #e7b3ae;
  border-color: #ff786e;
  background: rgba(85, 26, 26, 0.2);
}

.cash-topup-result {
  display: grid;
  min-height: 540px;
  align-content: center;
  justify-items: center;
  padding: 52px;
  text-align: center;
}

.cash-topup-result-orb {
  display: grid;
  width: 78px;
  height: 78px;
  margin-bottom: 20px;
  place-items: center;
  color: #0e3929;
  border: 1px solid rgba(112, 239, 181, 0.55);
  border-radius: 999px;
  background: linear-gradient(145deg, #9bf2c7, #55d69b);
  box-shadow: 0 0 44px rgba(71, 214, 151, 0.24);
  font-size: 32px;
  font-weight: 900;
}

.cash-topup-result.is-blocked .cash-topup-result-orb,
.cash-topup-result.is-review .cash-topup-result-orb {
  color: #492b09;
  border-color: rgba(255, 191, 87, 0.55);
  background: linear-gradient(145deg, #ffdc9a, #e9a83e);
  box-shadow: 0 0 44px rgba(230, 157, 45, 0.2);
}

.cash-topup-result-summary {
  width: min(600px, 100%);
}

.cash-topup-result > .cash-topup-secondary,
.cash-topup-result > .cash-topup-primary {
  margin-top: 18px;
}

.cash-topup-loading {
  display: grid;
  min-height: 520px;
  place-content: center;
  justify-items: center;
  gap: 8px;
  color: #dff5ff;
  text-align: center;
}

.cash-topup-loading > span {
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
  border: 3px solid rgba(95, 196, 239, 0.18);
  border-top-color: #67d4ff;
  border-radius: 999px;
  animation: cash-topup-spin 800ms linear infinite;
}

.cash-topup-loading small {
  color: #718da0;
}

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

@media (max-width: 980px) {
  .cash-topup-dialog { width: min(760px, 96vw); }
  .cash-topup-dashboard { grid-template-columns: 1fr; }
  .cash-topup-history { order: 2; }
  .cash-topup-history-item { display: inline-flex; width: calc(50% - 5px); margin-right: 5px; vertical-align: top; }
  .cash-topup-payment-stage { grid-template-columns: 1fr; }
  .cash-topup-qr-panel { border-right: 0; border-bottom: 1px solid rgba(103, 183, 226, 0.14); }
}

@media (max-width: 720px) {
  .cash-topup-modal { padding: 0; }
  .cash-topup-dialog { width: 100vw; max-height: 100vh; min-height: 100vh; border: 0; border-radius: 0; }
  .cash-topup-header { grid-template-columns: 1fr auto; min-height: 76px; padding: 13px 15px; }
  .cash-topup-brand > span { width: 44px; height: 44px; }
  .cash-topup-brand h2 { font-size: 18px; }
  .cash-topup-steps { display: none; }
  .cash-topup-content { padding: 14px; }
  .cash-topup-package-area, .cash-topup-history { padding: 15px; }
  .cash-topup-package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cash-topup-package { min-height: 148px; }
  .cash-topup-selection-bar { grid-template-columns: 1fr 1fr; }
  .cash-topup-selection-bar .cash-topup-primary { grid-column: 1 / -1; }
  .cash-topup-history-item { width: 100%; margin-right: 0; }
  .cash-topup-payment-copy { padding: 24px 18px; }
  .cash-topup-payment-copy h3, .cash-topup-result h3 { font-size: 23px; }
  .cash-topup-qr-panel { padding: 28px 16px; }
  .cash-topup-result { padding: 32px 18px; }
}

@media (max-width: 420px) {
  .cash-topup-account-ribbon { flex-direction: column; gap: 5px; }
  .cash-topup-package-grid { gap: 9px; }
  .cash-topup-package { min-height: 140px; }
  .cash-topup-package > strong { font-size: 19px; }
  .cash-topup-selection-bar { grid-template-columns: 1fr; }
  .cash-topup-selection-bar .cash-topup-primary { grid-column: auto; }
  .cash-topup-order-facts, .cash-topup-result-summary { grid-template-columns: 1fr; }
  .cash-topup-payment-actions { grid-template-columns: 1fr; }
  .cash-topup-exact-amount { padding-right: 86px; }
  .cash-topup-exact-amount > strong { font-size: 27px; }
}

/* Companion QA Studio P7 - selected verified tester only, non-persistent. */
html.companion-qa-studio-open,
.design-modern-command-center.companion-qa-studio-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.design-modern-command-center .companion-qa-studio-launch {
  display: inline-flex;
  min-width: 126px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(226, 190, 104, 0.42);
  border-radius: 11px;
  padding: 7px 11px;
  background:
    linear-gradient(135deg, rgba(220, 170, 67, 0.16), rgba(36, 156, 179, 0.14)),
    rgba(4, 24, 33, 0.94);
  color: #fff2c9;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.025) inset;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.design-modern-command-center .companion-qa-studio-launch:hover {
  border-color: rgba(245, 209, 126, 0.78);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.34),
    0 0 28px rgba(225, 177, 72, 0.11);
  transform: translateY(-1px);
}

.design-modern-command-center .companion-qa-studio-launch:disabled {
  cursor: wait;
  opacity: 0.58;
  transform: none;
}

.design-modern-command-center .companion-qa-studio-launch > img {
  width: 21px;
  height: 21px;
  filter: sepia(0.3) saturate(1.35) brightness(1.35);
}

.design-modern-command-center .companion-qa-studio-launch > span {
  display: grid;
  min-width: 0;
  text-align: left;
}

.design-modern-command-center .companion-qa-studio-launch small {
  color: #f2cf7e;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.design-modern-command-center .companion-qa-studio-launch strong {
  margin-top: 1px;
  color: #f8fcfd;
  font-size: 13px;
  line-height: 1.15;
}

.design-modern-command-center .companion-qa-studio-launch.hatch {
  width: 100%;
  min-height: 54px;
  justify-content: flex-start;
  margin: -5px 0 14px;
  padding: 9px 14px;
}

.design-modern-command-center .companion-qa-studio-modal {
  position: fixed;
  z-index: 3050;
  inset: 0;
  display: grid;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    visibility 180ms ease;
}

.design-modern-command-center .companion-qa-studio-modal.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.design-modern-command-center .companion-qa-studio-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 52% 0%, rgba(37, 152, 175, 0.19), transparent 42%),
    radial-gradient(circle at 78% 88%, rgba(205, 158, 61, 0.09), transparent 32%),
    rgba(0, 6, 10, 0.94);
  backdrop-filter: blur(17px);
}

.design-modern-command-center .companion-qa-studio-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(1260px, calc(100vw - 44px));
  height: min(840px, calc(100vh - 38px));
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(105, 222, 240, 0.42);
  border-radius: 18px;
  background:
    radial-gradient(circle at 87% -12%, rgba(224, 178, 76, 0.15), transparent 34%),
    radial-gradient(circle at 8% 0%, rgba(30, 165, 190, 0.17), transparent 38%),
    #03131c;
  color: #edf9fb;
  box-shadow:
    0 46px 140px rgba(0, 0, 0, 0.82),
    0 0 0 1px rgba(244, 204, 116, 0.06) inset,
    0 0 54px rgba(27, 161, 186, 0.08);
}

.design-modern-command-center .companion-qa-studio-head {
  position: relative;
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(86, 184, 204, 0.2);
  padding: 14px 17px 14px 22px;
  background: rgba(2, 12, 18, 0.84);
}

.design-modern-command-center .companion-qa-studio-head::after {
  position: absolute;
  right: 106px;
  bottom: -1px;
  left: 106px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d6b463, transparent);
  content: "";
  opacity: 0.62;
}

.design-modern-command-center .companion-qa-studio-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.design-modern-command-center .companion-qa-studio-brand-mark {
  display: grid;
  width: 55px;
  height: 55px;
  flex: 0 0 55px;
  place-items: center;
  border: 1px solid rgba(231, 196, 112, 0.48);
  border-radius: 15px;
  background:
    radial-gradient(circle, rgba(241, 204, 114, 0.18), transparent 62%),
    linear-gradient(145deg, rgba(21, 139, 164, 0.32), rgba(5, 37, 49, 0.9));
  box-shadow:
    0 0 30px rgba(222, 177, 75, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.design-modern-command-center .companion-qa-studio-brand-mark img {
  width: 27px;
  height: 27px;
  filter: sepia(0.25) saturate(1.4) brightness(1.35);
}

.design-modern-command-center .companion-qa-studio-brand > div {
  min-width: 0;
}

.design-modern-command-center .companion-qa-studio-brand > div > span {
  color: #70e2f2;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.design-modern-command-center .companion-qa-studio-brand h2 {
  margin: 1px 0 0;
  color: #f7fbfc;
  font-size: 24px;
  line-height: 1.15;
}

.design-modern-command-center .companion-qa-studio-brand p {
  margin: 4px 0 0;
  color: #8da6af;
  font-size: 13px;
}

.design-modern-command-center .companion-qa-studio-head-actions {
  display: flex;
  align-items: center;
  gap: 11px;
}

.design-modern-command-center .companion-qa-studio-safety {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(91, 220, 164, 0.32);
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(8, 61, 45, 0.28);
  color: #b5f0d4;
  font-size: 13px;
  font-weight: 800;
}

.design-modern-command-center .companion-qa-studio-safety i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5be0a3;
  box-shadow: 0 0 13px #5be0a3;
}

.design-modern-command-center .companion-qa-studio-close {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(111, 199, 218, 0.28);
  border-radius: 10px;
  background: #081f2a;
  color: #d9edf2;
  font-size: 27px;
  cursor: pointer;
}

.design-modern-command-center .companion-qa-studio-close:hover {
  border-color: rgba(239, 196, 105, 0.56);
  color: #ffe4a5;
}

.design-modern-command-center .companion-qa-studio-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  border-bottom: 1px solid rgba(79, 173, 194, 0.19);
  background: rgba(31, 104, 122, 0.12);
}

.design-modern-command-center .companion-qa-studio-tabs button {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: rgba(2, 15, 23, 0.9);
  color: #829fa9;
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition:
    color 150ms ease,
    background 150ms ease,
    border-color 150ms ease;
}

.design-modern-command-center .companion-qa-studio-tabs button:hover {
  color: #d3edf2;
  background: rgba(9, 42, 54, 0.94);
}

.design-modern-command-center .companion-qa-studio-tabs button.active {
  border-bottom-color: #f1c76e;
  background:
    linear-gradient(180deg, rgba(30, 101, 118, 0.47), rgba(5, 27, 37, 0.94));
  color: #f7d890;
  box-shadow: inset 0 -12px 26px rgba(227, 178, 84, 0.05);
}

.design-modern-command-center .companion-qa-studio-tabs img {
  width: 20px;
  height: 20px;
  filter: brightness(1.28) saturate(1.08);
}

.design-modern-command-center .companion-qa-studio-body {
  min-height: 0;
  overflow: auto;
  padding: 18px;
  scrollbar-color: #1c7185 #04141d;
}

.design-modern-command-center .companion-qa-studio-loading,
.design-modern-command-center .companion-qa-studio-error {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.design-modern-command-center .companion-qa-studio-loading > span {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(91, 218, 240, 0.17);
  border-top-color: #68dff1;
  border-radius: 50%;
  animation: companion-qa-spin 850ms linear infinite;
}

.design-modern-command-center .companion-qa-studio-loading > strong,
.design-modern-command-center .companion-qa-studio-error h3 {
  margin: 3px 0 0;
  color: #f5fafb;
  font-size: 21px;
}

.design-modern-command-center .companion-qa-studio-loading > p,
.design-modern-command-center .companion-qa-studio-error p {
  max-width: 560px;
  margin: 0;
  color: #8fa9b2;
  font-size: 14px;
  line-height: 1.6;
}

.design-modern-command-center .companion-qa-studio-loading > div {
  display: grid;
  width: min(780px, 100%);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.design-modern-command-center .companion-qa-studio-loading > div i {
  height: 118px;
  overflow: hidden;
  border: 1px solid rgba(92, 181, 201, 0.12);
  border-radius: 12px;
  background: rgba(9, 36, 47, 0.56);
}

.design-modern-command-center .companion-qa-studio-error > span {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid rgba(238, 116, 116, 0.34);
  border-radius: 17px;
  background: rgba(83, 25, 31, 0.34);
}

.design-modern-command-center .companion-qa-studio-error > span img {
  width: 28px;
  height: 28px;
}

.design-modern-command-center .companion-qa-studio-error button,
.design-modern-command-center .companion-qa-hero button,
.design-modern-command-center .companion-qa-control-card > button {
  min-height: 42px;
  border: 1px solid rgba(97, 218, 237, 0.38);
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(30, 154, 179, 0.42), rgba(7, 61, 75, 0.72));
  padding: 0 17px;
  color: #e8fbfe;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.design-modern-command-center .companion-qa-studio-error button:hover,
.design-modern-command-center .companion-qa-hero button:hover,
.design-modern-command-center .companion-qa-control-card > button:hover {
  border-color: rgba(115, 229, 245, 0.72);
  box-shadow: 0 0 24px rgba(66, 201, 223, 0.11);
}

.design-modern-command-center .companion-qa-studio-error button:disabled,
.design-modern-command-center .companion-qa-hero button:disabled,
.design-modern-command-center .companion-qa-control-card > button:disabled {
  cursor: wait;
  opacity: 0.58;
}

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

.design-modern-command-center .companion-qa-inline-message {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(85, 214, 160, 0.29);
  border-radius: 9px;
  margin-bottom: 14px;
  padding: 8px 13px;
  background: rgba(12, 72, 54, 0.26);
  color: #b9efd5;
  font-size: 13px;
  font-weight: 750;
}

.design-modern-command-center .companion-qa-inline-message.error {
  border-color: rgba(237, 108, 108, 0.37);
  background: rgba(105, 29, 35, 0.29);
  color: #ffd0d2;
}

.design-modern-command-center .companion-qa-inline-message button {
  border: 0;
  background: transparent;
  color: #fff0b7;
  font: inherit;
  font-weight: 850;
  text-decoration: underline;
  cursor: pointer;
}

.design-modern-command-center .companion-qa-hero {
  position: relative;
  display: flex;
  min-height: 112px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  border: 1px solid rgba(95, 205, 225, 0.27);
  border-radius: 14px;
  padding: 20px 22px;
  background:
    radial-gradient(circle at 90% 20%, rgba(234, 192, 95, 0.14), transparent 32%),
    linear-gradient(115deg, rgba(14, 88, 106, 0.44), rgba(6, 28, 38, 0.82));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

.design-modern-command-center .companion-qa-hero::before {
  position: absolute;
  top: -92px;
  left: 37%;
  width: 270px;
  height: 210px;
  border: 1px solid rgba(113, 219, 237, 0.08);
  border-radius: 50%;
  content: "";
  transform: rotate(-18deg);
}

.design-modern-command-center .companion-qa-hero > div {
  position: relative;
  min-width: 0;
}

.design-modern-command-center .companion-qa-hero span,
.design-modern-command-center .companion-qa-control-card > span {
  color: #6edff0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.design-modern-command-center .companion-qa-hero h3,
.design-modern-command-center .companion-qa-control-card h3,
.design-modern-command-center .companion-qa-result-card h3 {
  margin: 4px 0 0;
  color: #f5fafb;
  font-size: 21px;
  line-height: 1.2;
}

.design-modern-command-center .companion-qa-hero p,
.design-modern-command-center .companion-qa-control-card > p,
.design-modern-command-center .companion-qa-result-card > p {
  max-width: 760px;
  margin: 6px 0 0;
  color: #91aab3;
  font-size: 13px;
  line-height: 1.58;
}

.design-modern-command-center .companion-qa-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.design-modern-command-center .companion-qa-summary article {
  display: grid;
  min-height: 96px;
  align-content: center;
  border: 1px solid rgba(94, 183, 203, 0.19);
  border-radius: 12px;
  padding: 13px 15px;
  background: rgba(5, 27, 37, 0.76);
}

.design-modern-command-center .companion-qa-summary article.ready {
  border-color: rgba(79, 211, 155, 0.27);
  background: rgba(9, 50, 42, 0.51);
}

.design-modern-command-center .companion-qa-summary article.pending {
  border-color: rgba(225, 179, 76, 0.26);
  background: rgba(58, 45, 15, 0.28);
}

.design-modern-command-center .companion-qa-summary small {
  color: #82a1ab;
  font-size: 12px;
  font-weight: 750;
}

.design-modern-command-center .companion-qa-summary strong {
  margin: 1px 0;
  color: #f7d37e;
  font-size: 25px;
  line-height: 1.1;
}

.design-modern-command-center .companion-qa-summary span {
  color: #7f99a3;
  font-size: 12px;
}

.design-modern-command-center .companion-qa-species-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.design-modern-command-center .companion-qa-species-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(94, 183, 203, 0.21);
  border-radius: 13px;
  background:
    linear-gradient(145deg, rgba(14, 56, 70, 0.45), rgba(3, 20, 29, 0.9));
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.19),
    inset 0 1px rgba(255, 255, 255, 0.025);
}

.design-modern-command-center .companion-qa-species-card::before {
  position: absolute;
  top: 0;
  right: 18px;
  left: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #52d8ee, transparent);
  content: "";
  opacity: 0.5;
}

.design-modern-command-center .companion-qa-species-card.rarity-rare::before {
  background: linear-gradient(90deg, transparent, #b998f5, transparent);
}

.design-modern-command-center
  .companion-qa-species-card.rarity-legendary::before {
  background: linear-gradient(90deg, transparent, #f0c66d, transparent);
}

.design-modern-command-center .companion-qa-species-card > header {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 9px;
}

.design-modern-command-center .companion-qa-species-card > header > div {
  min-width: 0;
}

.design-modern-command-center .companion-qa-species-card header span {
  color: #71ddec;
  font-size: 12px;
  font-weight: 850;
}

.design-modern-command-center
  .companion-qa-species-card.rarity-rare
  header
  span {
  color: #c1a9f4;
}

.design-modern-command-center
  .companion-qa-species-card.rarity-legendary
  header
  span {
  color: #f1cb73;
}

.design-modern-command-center .companion-qa-species-card h4 {
  overflow: hidden;
  margin: 2px 0 0;
  color: #f2f8fa;
  font-size: 15px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.design-modern-command-center .companion-qa-species-card header p {
  margin: 3px 0 0;
  color: #8099a3;
  font-size: 12px;
}

.design-modern-command-center .companion-qa-species-card header em {
  flex: 0 0 auto;
  border: 1px solid rgba(112, 179, 193, 0.24);
  border-radius: 999px;
  padding: 4px 8px;
  color: #91a9b1;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.design-modern-command-center .companion-qa-species-card header em.ready {
  border-color: rgba(77, 213, 157, 0.34);
  background: rgba(7, 71, 50, 0.31);
  color: #a9eacb;
}

.design-modern-command-center .companion-qa-species-card header em.candidate {
  border-color: rgba(230, 184, 76, 0.34);
  background: rgba(75, 55, 13, 0.33);
  color: #f3d68d;
}

.design-modern-command-center .companion-qa-design-source {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 0 14px 10px;
  overflow: hidden;
  border: 1px solid rgba(105, 202, 222, 0.2);
  border-radius: 10px;
  background: rgba(4, 27, 37, 0.72);
}

.design-modern-command-center .companion-qa-design-source img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background:
    linear-gradient(rgba(95, 211, 231, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 211, 231, 0.035) 1px, transparent 1px),
    #071c26;
  background-size: 18px 18px;
  image-rendering: auto;
}

.design-modern-command-center .companion-qa-design-source > div {
  display: grid;
  gap: 2px;
  padding: 0 9px 9px;
}

.design-modern-command-center .companion-qa-design-source strong {
  color: #dff6fa;
  font-size: 12px;
}

.design-modern-command-center .companion-qa-design-source span,
.design-modern-command-center .companion-qa-design-source small {
  color: #88a7b0;
  font-size: 11px;
}

.design-modern-command-center .companion-qa-design-source small {
  color: #d6bd7a;
}

.design-modern-command-center .companion-qa-action-matrix {
  display: grid;
  gap: 6px;
  border-top: 1px solid rgba(92, 179, 198, 0.12);
  border-bottom: 1px solid rgba(92, 179, 198, 0.12);
  margin: 0 14px;
  padding: 10px 0;
}

.design-modern-command-center .companion-qa-action-matrix > div {
  display: grid;
  grid-template-columns: minmax(112px, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.design-modern-command-center .companion-qa-action-matrix strong {
  color: #a7bbc2;
  font-size: 12px;
  font-weight: 700;
}

.design-modern-command-center .companion-qa-action-matrix span {
  display: flex;
  gap: 5px;
}

.design-modern-command-center .companion-qa-action-matrix i {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(117, 153, 163, 0.35);
  border-radius: 3px;
  background: rgba(76, 91, 96, 0.35);
}

.design-modern-command-center .companion-qa-action-matrix i.ready {
  border-color: rgba(74, 224, 165, 0.55);
  background: #4bdca5;
  box-shadow: 0 0 8px rgba(75, 220, 165, 0.35);
}

.design-modern-command-center .companion-qa-action-matrix i.candidate {
  border-color: rgba(245, 202, 103, 0.58);
  background: #eec15f;
  box-shadow: 0 0 8px rgba(238, 193, 95, 0.28);
}

.design-modern-command-center .companion-qa-species-card > footer {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 10px 14px 12px;
}

.design-modern-command-center .companion-qa-species-card footer > span {
  overflow: hidden;
  color: #7f98a1;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.design-modern-command-center .companion-qa-species-card footer button {
  flex: 0 0 auto;
  border: 1px solid rgba(95, 201, 221, 0.28);
  border-radius: 8px;
  background: rgba(9, 53, 65, 0.68);
  padding: 6px 9px;
  color: #bdebf2;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.design-modern-command-center .companion-qa-workbench {
  display: grid;
  min-height: 100%;
  grid-template-columns: minmax(0, 0.94fr) minmax(390px, 1.06fr);
  gap: 14px;
}

.design-modern-command-center .companion-qa-control-card,
.design-modern-command-center .companion-qa-result-card {
  min-width: 0;
  border: 1px solid rgba(94, 188, 207, 0.23);
  border-radius: 15px;
  padding: 20px;
  background:
    radial-gradient(circle at 92% 2%, rgba(36, 145, 168, 0.11), transparent 30%),
    rgba(4, 24, 34, 0.82);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.2),
    inset 0 1px rgba(255, 255, 255, 0.025);
}

.design-modern-command-center .companion-qa-control-card {
  align-self: start;
}

.design-modern-command-center .companion-qa-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-top: 19px;
}

.design-modern-command-center .companion-qa-field-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.design-modern-command-center .companion-qa-control-card label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.design-modern-command-center .companion-qa-control-card label > span,
.design-modern-command-center .companion-qa-owned-species legend {
  color: #9bb0b7;
  font-size: 12px;
  font-weight: 750;
}

.design-modern-command-center .companion-qa-control-card input,
.design-modern-command-center .companion-qa-control-card select {
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 1px solid rgba(91, 177, 196, 0.24);
  border-radius: 9px;
  outline: 0;
  background: rgba(2, 16, 24, 0.88);
  padding: 0 11px;
  color: #edf8fa;
  font: inherit;
  font-size: 13px;
}

.design-modern-command-center .companion-qa-control-card input:focus,
.design-modern-command-center .companion-qa-control-card select:focus {
  border-color: rgba(105, 222, 239, 0.64);
  box-shadow: 0 0 0 3px rgba(76, 202, 223, 0.08);
}

.design-modern-command-center .companion-qa-control-card select option {
  background: #071a23;
  color: #edf8fa;
}

.design-modern-command-center .companion-qa-wide-field {
  margin-top: 18px;
}

.design-modern-command-center .companion-qa-control-card > button {
  width: 100%;
  min-height: 46px;
  margin-top: 18px;
}

.design-modern-command-center .companion-qa-owned-species {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  border: 1px solid rgba(91, 177, 196, 0.16);
  border-radius: 10px;
  margin: 14px 0 0;
  padding: 12px;
  background: rgba(3, 18, 26, 0.54);
}

.design-modern-command-center .companion-qa-owned-species legend {
  padding: 0 6px;
}

.design-modern-command-center .companion-qa-owned-species label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(84, 151, 166, 0.12);
  border-radius: 7px;
  padding: 6px 8px;
  background: rgba(8, 37, 47, 0.48);
}

.design-modern-command-center .companion-qa-owned-species input {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  accent-color: #56cfe4;
}

.design-modern-command-center .companion-qa-owned-species span {
  overflow: hidden;
  color: #a7bbc2;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.design-modern-command-center .companion-qa-result-card {
  position: relative;
  display: flex;
  min-height: 420px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 50% 24%, rgba(47, 181, 203, 0.16), transparent 36%),
    radial-gradient(circle at 92% 2%, rgba(221, 175, 77, 0.13), transparent 31%),
    rgba(3, 22, 31, 0.9);
}

.design-modern-command-center .companion-qa-result-card::before {
  position: absolute;
  top: -140px;
  width: 410px;
  height: 260px;
  border: 1px solid rgba(93, 216, 236, 0.09);
  border-radius: 50%;
  content: "";
}

.design-modern-command-center .companion-qa-result-card > * {
  position: relative;
}

.design-modern-command-center .companion-qa-result-icon {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 1px solid rgba(98, 215, 234, 0.34);
  border-radius: 18px;
  background: rgba(10, 61, 74, 0.55);
  box-shadow: 0 0 34px rgba(61, 193, 214, 0.11);
}

.design-modern-command-center .companion-qa-result-icon img {
  width: 29px;
  height: 29px;
}

.design-modern-command-center .companion-qa-result-kicker {
  color: #72dfef;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.design-modern-command-center .companion-qa-result-card.has-result h3 {
  margin-top: 7px;
  font-size: 27px;
}

.design-modern-command-center .companion-qa-result-metrics {
  display: grid;
  width: min(560px, 100%);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 18px;
}

.design-modern-command-center .companion-qa-result-metrics article {
  display: grid;
  min-height: 80px;
  align-content: center;
  border: 1px solid rgba(91, 182, 201, 0.18);
  border-radius: 10px;
  background: rgba(4, 27, 37, 0.72);
  padding: 10px;
}

.design-modern-command-center .companion-qa-result-metrics small {
  color: #829ba4;
  font-size: 12px;
}

.design-modern-command-center .companion-qa-result-metrics strong {
  color: #f3d079;
  font-size: 21px;
}

.design-modern-command-center .companion-qa-effect-list {
  display: grid;
  width: min(570px, 100%);
  gap: 8px;
  margin-top: 18px;
}

.design-modern-command-center .companion-qa-effect-list article {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(94, 190, 209, 0.19);
  border-radius: 10px;
  background: rgba(5, 32, 42, 0.74);
  padding: 11px 14px;
  text-align: left;
}

.design-modern-command-center .companion-qa-effect-list article > div {
  display: grid;
}

.design-modern-command-center .companion-qa-effect-list strong {
  color: #ddecf0;
  font-size: 13px;
}

.design-modern-command-center .companion-qa-effect-list small {
  color: #78939d;
  font-size: 12px;
}

.design-modern-command-center .companion-qa-effect-list b {
  color: #f0cc75;
  font-size: 22px;
}

.design-modern-command-center .companion-qa-zero-pvp,
.design-modern-command-center .companion-qa-market-closed {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-top: 1px solid rgba(87, 173, 191, 0.17);
  margin-top: 18px;
  padding: 13px 12px 0;
  color: #96adb4;
  font-size: 13px;
}

.design-modern-command-center .companion-qa-zero-pvp img,
.design-modern-command-center .companion-qa-market-closed img {
  width: 18px;
  height: 18px;
}

.design-modern-command-center .companion-qa-zero-pvp strong {
  color: #67dfa9;
}

.design-modern-command-center .companion-qa-rarity-orb {
  display: grid;
  min-width: 92px;
  min-height: 92px;
  place-items: center;
  border: 1px solid rgba(96, 214, 233, 0.42);
  border-radius: 50%;
  margin-bottom: 2px;
  background:
    radial-gradient(circle, rgba(82, 218, 237, 0.25), transparent 68%),
    rgba(5, 42, 54, 0.66);
  color: #c9f5fa;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 0 36px rgba(62, 193, 214, 0.13);
}

.design-modern-command-center
  .companion-qa-rarity-orb.rarity-rare {
  border-color: rgba(188, 150, 239, 0.52);
  background:
    radial-gradient(circle, rgba(171, 126, 232, 0.25), transparent 68%),
    rgba(39, 27, 68, 0.66);
  color: #decaf7;
  box-shadow: 0 0 38px rgba(170, 127, 230, 0.13);
}

.design-modern-command-center
  .companion-qa-rarity-orb.rarity-legendary {
  border-color: rgba(239, 196, 99, 0.6);
  background:
    radial-gradient(circle, rgba(236, 187, 72, 0.27), transparent 68%),
    rgba(65, 46, 10, 0.65);
  color: #ffe1a0;
  box-shadow: 0 0 40px rgba(230, 178, 65, 0.15);
}

.design-modern-command-center .companion-qa-market-ledger {
  display: grid;
  width: min(600px, 100%);
  gap: 8px;
  margin-top: 18px;
}

.design-modern-command-center .companion-qa-market-ledger article {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(88, 174, 192, 0.15);
  padding: 7px 2px;
}

.design-modern-command-center .companion-qa-market-ledger span {
  color: #94aab1;
  font-size: 13px;
}

.design-modern-command-center .companion-qa-market-ledger strong {
  color: #dcebef;
  font-size: 14px;
}

.design-modern-command-center .companion-qa-market-ledger article.net {
  border: 1px solid rgba(228, 183, 80, 0.25);
  border-radius: 9px;
  background: rgba(65, 49, 14, 0.26);
  padding: 11px 13px;
}

.design-modern-command-center
  .companion-qa-market-ledger
  article.net
  strong {
  color: #f3d079;
  font-size: 17px;
}

.design-modern-command-center .companion-qa-market-closed {
  color: #e7cf93;
}

.design-modern-command-center .companion-qa-rejection-reason {
  margin: 2px 0 13px;
  border: 1px solid rgba(239, 130, 119, 0.24);
  border-radius: 9px;
  background: rgba(100, 31, 35, 0.2);
  padding: 10px 12px;
  color: #ffd2cb;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.design-modern-command-center .companion-qa-studio-dialog button:focus-visible,
.design-modern-command-center .companion-qa-studio-dialog input:focus-visible,
.design-modern-command-center .companion-qa-studio-dialog select:focus-visible,
.design-modern-command-center .companion-qa-studio-launch:focus-visible {
  outline: 2px solid #73e3f3;
  outline-offset: 2px;
}

@media (max-width: 1040px) {
  .design-modern-command-center .companion-qa-species-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .design-modern-command-center .companion-qa-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .design-modern-command-center .companion-qa-workbench {
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  }

  .design-modern-command-center .companion-qa-owned-species {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .design-modern-command-center .companion-qa-studio-dialog {
    width: calc(100vw - 12px);
    height: calc(100dvh - 12px);
    min-height: 0;
    border-radius: 13px;
  }

  .design-modern-command-center .companion-qa-studio-head {
    min-height: 78px;
    gap: 9px;
    padding: 10px 10px 10px 13px;
  }

  .design-modern-command-center .companion-qa-studio-brand {
    gap: 9px;
  }

  .design-modern-command-center .companion-qa-studio-brand-mark {
    width: 43px;
    height: 43px;
    flex-basis: 43px;
    border-radius: 12px;
  }

  .design-modern-command-center .companion-qa-studio-brand-mark img {
    width: 22px;
    height: 22px;
  }

  .design-modern-command-center .companion-qa-studio-brand > div > span {
    font-size: 12px;
    letter-spacing: 0.09em;
  }

  .design-modern-command-center .companion-qa-studio-brand h2 {
    font-size: 18px;
  }

  .design-modern-command-center .companion-qa-studio-brand p,
  .design-modern-command-center .companion-qa-studio-safety {
    display: none;
  }

  .design-modern-command-center .companion-qa-studio-close {
    width: 39px;
    height: 39px;
  }

  .design-modern-command-center .companion-qa-studio-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .design-modern-command-center .companion-qa-studio-tabs::-webkit-scrollbar {
    display: none;
  }

  .design-modern-command-center .companion-qa-studio-tabs button {
    min-width: 128px;
    min-height: 50px;
    flex: 0 0 128px;
    gap: 7px;
    padding: 0 8px;
    font-size: 12px;
  }

  .design-modern-command-center .companion-qa-studio-tabs img {
    width: 18px;
    height: 18px;
  }

  .design-modern-command-center .companion-qa-studio-body {
    padding: 9px;
  }

  .design-modern-command-center .companion-qa-hero {
    display: grid;
    gap: 13px;
    padding: 15px;
  }

  .design-modern-command-center .companion-qa-hero h3,
  .design-modern-command-center .companion-qa-control-card h3,
  .design-modern-command-center .companion-qa-result-card h3 {
    font-size: 18px;
  }

  .design-modern-command-center .companion-qa-hero button {
    width: 100%;
  }

  .design-modern-command-center .companion-qa-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin: 8px 0;
  }

  .design-modern-command-center .companion-qa-summary article {
    min-height: 84px;
    padding: 10px;
  }

  .design-modern-command-center .companion-qa-summary strong {
    font-size: 22px;
  }

  .design-modern-command-center .companion-qa-species-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .design-modern-command-center .companion-qa-species-card h4 {
    font-size: 14px;
  }

  .design-modern-command-center .companion-qa-workbench {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 9px;
  }

  .design-modern-command-center .companion-qa-control-card,
  .design-modern-command-center .companion-qa-result-card {
    padding: 15px;
  }

  .design-modern-command-center .companion-qa-result-card {
    min-height: 330px;
  }

  .design-modern-command-center .companion-qa-field-grid,
  .design-modern-command-center .companion-qa-field-grid.three {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    margin-top: 14px;
  }

  .design-modern-command-center .companion-qa-owned-species {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 9px;
  }

  .design-modern-command-center .companion-qa-result-card.has-result h3 {
    font-size: 23px;
  }

  .design-modern-command-center .companion-qa-result-metrics {
    gap: 7px;
    margin-top: 14px;
  }

  .design-modern-command-center .companion-qa-result-metrics article {
    min-height: 70px;
  }

  .design-modern-command-center .companion-qa-market-ledger article {
    gap: 10px;
  }

  .design-modern-command-center .companion-qa-market-ledger span,
  .design-modern-command-center .companion-qa-market-ledger strong {
    font-size: 12px;
  }

  .design-modern-command-center .companion-qa-studio-loading > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-stage-tools {
    flex-wrap: wrap;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-qa-studio-launch {
    min-width: 104px;
    min-height: 42px;
    padding: 5px 7px;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-qa-studio-launch small,
  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-qa-studio-launch strong {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .design-modern-command-center .companion-qa-studio-modal,
  .design-modern-command-center .companion-qa-studio-launch {
    transition: none;
  }

  .design-modern-command-center .companion-qa-studio-loading > span {
    animation: none;
  }
}

/* Companion Stable / Collection R1 - player-facing read-only preview */
.design-modern-command-center.companion-stable-open {
  overflow: hidden;
}

.design-modern-command-center .companion-stable-launch {
  display: inline-flex;
  min-width: 142px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(105, 225, 242, 0.38);
  border-radius: 11px;
  padding: 7px 12px;
  background:
    linear-gradient(135deg, rgba(25, 150, 175, 0.22), rgba(214, 170, 82, 0.09)),
    rgba(3, 23, 32, 0.92);
  color: #e9fbff;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.025) inset;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.design-modern-command-center .companion-stable-launch:hover {
  border-color: rgba(115, 232, 247, 0.72);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.34),
    0 0 26px rgba(46, 201, 224, 0.13);
  transform: translateY(-1px);
}

.design-modern-command-center .companion-stable-launch:focus-visible,
.design-modern-command-center .companion-stable-modal button:focus-visible,
.design-modern-command-center .companion-stable-modal input:focus-visible,
.design-modern-command-center .companion-stable-modal select:focus-visible {
  outline: 2px solid #72e6f4;
  outline-offset: 2px;
}

.design-modern-command-center .companion-stable-launch > img {
  width: 21px;
  height: 21px;
  filter: brightness(1.3) saturate(1.1);
}

.design-modern-command-center .companion-stable-launch > span {
  display: grid;
  min-width: 0;
  text-align: left;
}

.design-modern-command-center .companion-stable-launch small {
  color: #76dfef;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.design-modern-command-center .companion-stable-launch strong {
  margin-top: 1px;
  font-size: 13px;
  line-height: 1.15;
}

.design-modern-command-center .companion-stable-launch.hatch {
  width: 100%;
  min-height: 54px;
  justify-content: flex-start;
  margin: 2px 0 14px;
  padding: 9px 14px;
}

.design-modern-command-center .companion-stable-modal {
  position: fixed;
  z-index: 2850;
  inset: 0;
  display: grid;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    visibility 180ms ease;
}

.design-modern-command-center .companion-stable-modal.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.design-modern-command-center .companion-stable-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(19, 127, 150, 0.16), transparent 42%),
    rgba(0, 6, 10, 0.92);
  backdrop-filter: blur(15px);
}

.design-modern-command-center .companion-stable-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1180px, calc(100vw - 54px));
  height: min(790px, calc(100vh - 48px));
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(105, 222, 240, 0.4);
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% -8%, rgba(212, 170, 77, 0.13), transparent 34%),
    radial-gradient(circle at 12% 0%, rgba(26, 152, 178, 0.15), transparent 38%),
    #03131c;
  color: #edf9fb;
  box-shadow:
    0 44px 130px rgba(0, 0, 0, 0.78),
    0 0 0 1px rgba(244, 204, 116, 0.055) inset,
    0 0 48px rgba(27, 161, 186, 0.08);
}

.design-modern-command-center .companion-stable-head {
  position: relative;
  display: flex;
  min-height: 90px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(86, 184, 204, 0.2);
  padding: 14px 17px 14px 22px;
  background: rgba(2, 12, 18, 0.78);
}

.design-modern-command-center .companion-stable-head::after {
  position: absolute;
  right: 92px;
  bottom: -1px;
  left: 92px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d6b463, transparent);
  content: "";
  opacity: 0.55;
}

.design-modern-command-center .companion-stable-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.design-modern-command-center .companion-stable-brand-mark {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  place-items: center;
  border: 1px solid rgba(106, 224, 241, 0.44);
  border-radius: 15px;
  background:
    linear-gradient(145deg, rgba(22, 148, 174, 0.3), rgba(5, 37, 49, 0.84));
  box-shadow:
    0 0 26px rgba(51, 203, 224, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.035) inset;
}

.design-modern-command-center .companion-stable-brand-mark img {
  width: 27px;
  height: 27px;
}

.design-modern-command-center .companion-stable-brand > div {
  min-width: 0;
}

.design-modern-command-center .companion-stable-brand > div > span {
  color: #6ee2f2;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.design-modern-command-center .companion-stable-brand h2 {
  margin: 1px 0 0;
  color: #f8fcfd;
  font-size: 25px;
  line-height: 1.1;
}

.design-modern-command-center .companion-stable-brand p {
  margin: 3px 0 0;
  color: #8faab3;
  font-size: 12px;
}

.design-modern-command-center .companion-stable-close {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid rgba(104, 207, 225, 0.3);
  border-radius: 11px;
  background: rgba(7, 35, 45, 0.84);
  color: #c8e5ea;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.design-modern-command-center .companion-stable-close:hover {
  border-color: rgba(116, 227, 243, 0.68);
  color: #fff;
}

.design-modern-command-center .companion-stable-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 11px;
  overflow: hidden;
  padding: 14px 18px 12px;
}

.design-modern-command-center .companion-stable-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.design-modern-command-center .companion-stable-summary article {
  display: flex;
  min-width: 0;
  min-height: 63px;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(81, 171, 190, 0.2);
  border-radius: 12px;
  padding: 10px 13px;
  background:
    linear-gradient(135deg, rgba(21, 105, 125, 0.13), transparent),
    rgba(5, 25, 34, 0.8);
}

.design-modern-command-center .companion-stable-summary article > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 10px;
  background: rgba(22, 123, 145, 0.17);
}

.design-modern-command-center .companion-stable-summary img {
  width: 20px;
  height: 20px;
}

.design-modern-command-center .companion-stable-summary article > div {
  display: grid;
  min-width: 0;
}

.design-modern-command-center .companion-stable-summary small {
  overflow: hidden;
  color: #8fa9b1;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.design-modern-command-center .companion-stable-summary strong {
  margin-top: 1px;
  color: #f4d689;
  font-size: 20px;
  line-height: 1.05;
}

.design-modern-command-center .companion-stable-summary em {
  color: #6e8d96;
  font-size: 12px;
  font-style: normal;
}

.design-modern-command-center .companion-stable-toolbar {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) 150px 175px auto;
  gap: 9px;
  align-items: end;
}

.design-modern-command-center .companion-stable-toolbar form {
  display: grid;
  min-width: 0;
  height: 47px;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(82, 181, 202, 0.27);
  border-radius: 11px;
  padding: 0 5px 0 13px;
  background: rgba(2, 16, 23, 0.88);
}

.design-modern-command-center .companion-stable-toolbar form > img {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

.design-modern-command-center .companion-stable-toolbar input,
.design-modern-command-center .companion-stable-toolbar select {
  min-width: 0;
  border: 0;
  color: #eaf7f9;
  background: transparent;
  font: inherit;
  font-size: 13px;
}

.design-modern-command-center .companion-stable-toolbar input {
  height: 43px;
  outline: 0;
}

.design-modern-command-center .companion-stable-toolbar input::placeholder {
  color: #68838c;
}

.design-modern-command-center .companion-stable-toolbar form button {
  min-width: 64px;
  height: 36px;
  border: 1px solid rgba(106, 222, 240, 0.32);
  border-radius: 8px;
  background: rgba(20, 122, 143, 0.26);
  color: #dff8fb;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.design-modern-command-center .companion-stable-toolbar label {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.design-modern-command-center .companion-stable-toolbar label > span {
  padding-left: 2px;
  color: #78959e;
  font-size: 12px;
}

.design-modern-command-center .companion-stable-toolbar select {
  width: 100%;
  height: 36px;
  border: 1px solid rgba(82, 181, 202, 0.27);
  border-radius: 9px;
  padding: 0 30px 0 10px;
  background-color: #061d27;
}

.design-modern-command-center .companion-stable-toolbar select option {
  color: #eaf7f9;
  background: #061d27;
}

.design-modern-command-center .companion-stable-refresh {
  display: inline-flex;
  min-width: 92px;
  height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(222, 187, 106, 0.33);
  border-radius: 9px;
  background: rgba(97, 74, 29, 0.17);
  color: #efd48e;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.design-modern-command-center .companion-stable-refresh img {
  width: 15px;
  height: 15px;
}

.design-modern-command-center .companion-stable-refresh.busy img {
  animation: companion-stable-spin 900ms linear infinite;
}

.design-modern-command-center .companion-stable-refresh:disabled {
  cursor: wait;
  opacity: 0.68;
}

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

.design-modern-command-center .companion-stable-inline-error {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(224, 111, 100, 0.3);
  border-radius: 9px;
  padding: 7px 10px 7px 12px;
  background: rgba(91, 28, 25, 0.22);
  color: #efbbb4;
  font-size: 12px;
}

.design-modern-command-center .companion-stable-inline-error button {
  flex: 0 0 auto;
  border: 1px solid rgba(238, 158, 146, 0.34);
  border-radius: 7px;
  padding: 5px 10px;
  background: rgba(111, 48, 41, 0.3);
  color: #ffe2dd;
  cursor: pointer;
}

.design-modern-command-center .companion-stable-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden auto;
  scrollbar-color: rgba(75, 189, 211, 0.54) rgba(2, 15, 21, 0.6);
  transition: opacity 150ms ease;
}

.design-modern-command-center .companion-stable-content.refreshing {
  opacity: 0.52;
  pointer-events: none;
}

.design-modern-command-center .companion-stable-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  padding: 1px 2px 5px 1px;
}

.design-modern-command-center .companion-stable-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(86, 177, 196, 0.24);
  border-radius: 13px;
  background: rgba(5, 26, 35, 0.94);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.design-modern-command-center .companion-stable-card::before {
  position: absolute;
  z-index: 3;
  inset: 0 auto 0 0;
  width: 2px;
  background: #6ccfdf;
  content: "";
  opacity: 0.54;
}

.design-modern-command-center .companion-stable-card.rarity-rare::before {
  background: #9e82ef;
}

.design-modern-command-center .companion-stable-card.rarity-legendary::before {
  background: #e9bd5e;
  box-shadow: 0 0 17px rgba(233, 189, 94, 0.45);
}

.design-modern-command-center .companion-stable-card.active {
  border-color: rgba(102, 229, 244, 0.62);
  box-shadow:
    0 15px 38px rgba(0, 0, 0, 0.32),
    0 0 25px rgba(44, 197, 220, 0.11),
    0 0 0 1px rgba(91, 219, 238, 0.08) inset;
}

.design-modern-command-center .companion-stable-card.reserved {
  filter: saturate(0.75);
}

.design-modern-command-center .companion-stable-card-art {
  position: relative;
  height: 150px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 68%, rgba(42, 179, 204, 0.22), transparent 43%),
    linear-gradient(150deg, #082a38, #03131b);
}

.design-modern-command-center .companion-stable-card-art > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  filter: saturate(0.93) contrast(1.03);
  transform: scale(1.015);
}

.design-modern-command-center .companion-stable-card-art > i {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 42%, rgba(3, 18, 25, 0.94)),
    radial-gradient(circle at 50% 75%, rgba(80, 211, 230, 0.1), transparent 38%);
  pointer-events: none;
}

.design-modern-command-center .companion-stable-card-monogram {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: rgba(151, 227, 238, 0.42);
  font-size: 58px;
  font-weight: 900;
}

.design-modern-command-center .companion-stable-card-badges {
  position: absolute;
  z-index: 2;
  top: 9px;
  right: 9px;
  left: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.design-modern-command-center .companion-stable-card-badges span {
  max-width: 58%;
  overflow: hidden;
  border: 1px solid rgba(137, 210, 222, 0.24);
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(1, 13, 19, 0.82);
  color: #b9d9de;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(7px);
}

.design-modern-command-center
  .companion-stable-card.rarity-rare
  .companion-stable-card-badges
  .rarity {
  border-color: rgba(165, 135, 238, 0.43);
  color: #ccb9ff;
}

.design-modern-command-center
  .companion-stable-card.rarity-legendary
  .companion-stable-card-badges
  .rarity {
  border-color: rgba(235, 193, 99, 0.46);
  color: #f5d17d;
}

.design-modern-command-center
  .companion-stable-card.active
  .companion-stable-card-badges
  .availability {
  border-color: rgba(91, 224, 195, 0.43);
  color: #84efce;
}

.design-modern-command-center .companion-stable-card-copy {
  padding: 10px 12px 12px 13px;
}

.design-modern-command-center .companion-stable-card-title {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.design-modern-command-center .companion-stable-card-title > div {
  min-width: 0;
}

.design-modern-command-center .companion-stable-card-title small {
  display: block;
  overflow: hidden;
  color: #73d9e7;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.design-modern-command-center .companion-stable-card-title h3 {
  overflow: hidden;
  margin: 2px 0 0;
  color: #f4f9fa;
  font-size: 16px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.design-modern-command-center .companion-stable-card-title .favorite {
  flex: 0 0 auto;
  color: #e8bd60;
  font-size: 13px;
}

.design-modern-command-center .companion-stable-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  color: #8ca6ae;
  font-size: 12px;
}

.design-modern-command-center .companion-stable-card-meta strong {
  color: #d8e7ea;
  font-size: 12px;
}

.design-modern-command-center .companion-stable-card-bond {
  margin-top: 8px;
}

.design-modern-command-center .companion-stable-card-bond > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #79949d;
  font-size: 12px;
}

.design-modern-command-center .companion-stable-card-bond > div strong {
  color: #e4c775;
  font-size: 12px;
}

.design-modern-command-center .companion-stable-card-bond > i {
  display: block;
  height: 5px;
  overflow: hidden;
  margin-top: 4px;
  border-radius: 999px;
  background: rgba(1, 11, 16, 0.92);
}

.design-modern-command-center .companion-stable-card-bond b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #23b4ca, #74e0e8, #ddbb65);
  box-shadow: 0 0 10px rgba(71, 211, 226, 0.35);
}

.design-modern-command-center .companion-stable-footer {
  display: flex;
  flex: 0 0 auto;
  min-height: 37px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(78, 162, 179, 0.17);
  padding-top: 8px;
  color: #88a5ad;
  font-size: 12px;
}

.design-modern-command-center .companion-stable-footer > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.design-modern-command-center .companion-stable-footer button,
.design-modern-command-center .companion-stable-empty button {
  min-width: 72px;
  height: 30px;
  border: 1px solid rgba(89, 194, 213, 0.28);
  border-radius: 8px;
  background: rgba(12, 77, 92, 0.22);
  color: #cfe9ed;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.design-modern-command-center .companion-stable-footer button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.design-modern-command-center .companion-stable-footer strong {
  min-width: 54px;
  color: #dcebed;
  font-size: 12px;
  text-align: center;
}

.design-modern-command-center .companion-stable-honesty {
  flex: 0 0 auto;
  margin: 0;
  color: #7898a1;
  font-size: 12px;
  line-height: 1.35;
  pointer-events: none;
  text-align: center;
}

.design-modern-command-center .companion-stable-empty,
.design-modern-command-center .companion-stable-error {
  display: grid;
  height: 100%;
  min-height: 230px;
  place-content: center;
  justify-items: center;
  padding: 24px;
  text-align: center;
}

.design-modern-command-center .companion-stable-empty > span,
.design-modern-command-center .companion-stable-error > span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(96, 211, 230, 0.32);
  border-radius: 17px;
  background: rgba(20, 112, 132, 0.17);
}

.design-modern-command-center .companion-stable-empty > span img,
.design-modern-command-center .companion-stable-error > span img {
  width: 27px;
  height: 27px;
}

.design-modern-command-center .companion-stable-empty strong,
.design-modern-command-center .companion-stable-error strong {
  margin-top: 13px;
  color: #f1f7f8;
  font-size: 19px;
}

.design-modern-command-center .companion-stable-empty p,
.design-modern-command-center .companion-stable-error p {
  max-width: 430px;
  margin: 5px 0 0;
  color: #819ca5;
  font-size: 12px;
  line-height: 1.55;
}

.design-modern-command-center .companion-stable-empty button,
.design-modern-command-center .companion-stable-error button {
  margin-top: 14px;
  padding: 0 15px;
}

.design-modern-command-center .companion-stable-error button {
  min-width: 112px;
  height: 36px;
  border: 1px solid rgba(101, 217, 235, 0.36);
  border-radius: 9px;
  background: rgba(18, 116, 137, 0.27);
  color: #e4f9fb;
  font-weight: 800;
  cursor: pointer;
}

.design-modern-command-center .companion-stable-loading {
  display: grid;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
}

.design-modern-command-center .companion-stable-loading-copy {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 2px;
}

.design-modern-command-center .companion-stable-loading-copy > span {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 2px solid rgba(86, 210, 228, 0.18);
  border-top-color: #68ddeb;
  border-radius: 50%;
  animation: companion-stable-spin 850ms linear infinite;
}

.design-modern-command-center .companion-stable-loading-copy > div {
  display: grid;
}

.design-modern-command-center .companion-stable-loading-copy strong {
  color: #eaf6f8;
  font-size: 15px;
}

.design-modern-command-center .companion-stable-loading-copy small {
  margin-top: 2px;
  color: #78959e;
  font-size: 12px;
}

.design-modern-command-center .companion-stable-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.design-modern-command-center .companion-stable-skeleton-grid i {
  position: relative;
  min-height: 205px;
  overflow: hidden;
  border: 1px solid rgba(84, 170, 187, 0.14);
  border-radius: 13px;
  background: rgba(7, 31, 40, 0.7);
}

.design-modern-command-center .companion-stable-skeleton-grid i::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 20%,
    rgba(112, 216, 232, 0.08) 48%,
    transparent 75%
  );
  content: "";
  transform: translateX(-100%);
  animation: companion-stable-shimmer 1.4s ease-in-out infinite;
}

@keyframes companion-stable-shimmer {
  to {
    transform: translateX(100%);
  }
}

@media (max-width: 1000px) {
  .design-modern-command-center .companion-stable-dialog {
    width: calc(100vw - 26px);
    height: calc(100vh - 24px);
  }

  .design-modern-command-center .companion-stable-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .design-modern-command-center .companion-stable-toolbar {
    grid-template-columns: minmax(220px, 1fr) 135px 155px auto;
  }
}

@media (max-width: 760px) {
  .design-modern-command-center .companion-stable-dialog {
    width: calc(100vw - 12px);
    height: calc(100dvh - 12px);
    min-height: 0;
    border-radius: 14px;
  }

  .design-modern-command-center .companion-stable-head {
    min-height: 76px;
    padding: 10px 10px 10px 13px;
  }

  .design-modern-command-center .companion-stable-brand {
    gap: 10px;
  }

  .design-modern-command-center .companion-stable-brand-mark {
    width: 43px;
    height: 43px;
    flex-basis: 43px;
    border-radius: 12px;
  }

  .design-modern-command-center .companion-stable-brand-mark img {
    width: 22px;
    height: 22px;
  }

  .design-modern-command-center .companion-stable-brand > div > span {
    font-size: 12px;
  }

  .design-modern-command-center .companion-stable-brand h2 {
    font-size: 20px;
  }

  .design-modern-command-center .companion-stable-brand p {
    display: none;
  }

  .design-modern-command-center .companion-stable-close {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .design-modern-command-center .companion-stable-body {
    gap: 8px;
    padding: 9px 10px 8px;
  }

  .design-modern-command-center .companion-stable-summary {
    gap: 6px;
  }

  .design-modern-command-center .companion-stable-summary article {
    min-height: 53px;
    gap: 7px;
    padding: 7px 8px;
  }

  .design-modern-command-center .companion-stable-summary article > span {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
  }

  .design-modern-command-center .companion-stable-summary img {
    width: 16px;
    height: 16px;
  }

  .design-modern-command-center .companion-stable-summary small {
    font-size: 12px;
  }

  .design-modern-command-center .companion-stable-summary strong {
    font-size: 16px;
  }

  .design-modern-command-center .companion-stable-toolbar {
    grid-template-columns: minmax(0, 1fr) 92px;
  }

  .design-modern-command-center .companion-stable-toolbar form {
    grid-column: 1 / -1;
    height: 42px;
  }

  .design-modern-command-center .companion-stable-toolbar label {
    display: block;
  }

  .design-modern-command-center .companion-stable-toolbar label > span {
    display: none;
  }

  .design-modern-command-center .companion-stable-toolbar select,
  .design-modern-command-center .companion-stable-refresh {
    height: 34px;
  }

  .design-modern-command-center .companion-stable-toolbar
    label:nth-of-type(2) {
    display: none;
  }

  .design-modern-command-center .companion-stable-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .design-modern-command-center .companion-stable-card-art {
    height: 126px;
  }

  .design-modern-command-center .companion-stable-card-copy {
    padding: 8px 9px 10px 10px;
  }

  .design-modern-command-center .companion-stable-card-title h3 {
    font-size: 14px;
  }

  .design-modern-command-center .companion-stable-footer {
    min-height: 34px;
    padding-top: 5px;
  }

  .design-modern-command-center .companion-stable-honesty {
    font-size: 12px;
  }

  .design-modern-command-center .companion-stable-skeleton-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .design-modern-command-center .companion-stable-skeleton-grid i {
    min-height: 165px;
  }
}

@media (max-width: 420px) {
  .design-modern-command-center .companion-stable-summary article > span {
    display: none;
  }

  .design-modern-command-center .companion-stable-summary article {
    justify-content: center;
    padding: 6px 5px;
    text-align: center;
  }

  .design-modern-command-center .companion-stable-summary small {
    white-space: normal;
  }

  .design-modern-command-center .companion-stable-card-art {
    height: 112px;
  }

  .design-modern-command-center .companion-stable-card-badges span {
    max-width: 62%;
    padding: 3px 6px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .design-modern-command-center .companion-stable-modal,
  .design-modern-command-center .companion-stable-launch,
  .design-modern-command-center .companion-stable-content {
    transition: none;
  }

  .design-modern-command-center .companion-stable-refresh.busy img,
  .design-modern-command-center .companion-stable-loading-copy > span,
  .design-modern-command-center .companion-stable-skeleton-grid i::after {
    animation: none;
  }
}

/* Boss Live V1 */
.design-modern-command-center .boss-tracker-panel {
  min-height: 0;
  overflow: hidden;
}

.design-modern-command-center .boss-tracker-panel .panel-head {
  align-items: flex-start;
}

.design-modern-command-center .boss-panel-health {
  display: block;
  margin-top: 4px;
  color: #75d6c9;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.design-modern-command-center .boss-panel-health.is-stale {
  color: #e8b96e;
}

.design-modern-command-center .boss-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 56px;
  margin: 8px 12px 7px;
  border-top: 1px solid rgba(110, 210, 218, 0.13);
  border-bottom: 1px solid rgba(110, 210, 218, 0.13);
  background: rgba(2, 13, 21, 0.42);
}

.design-modern-command-center .boss-metric {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 7px;
  border-right: 1px solid rgba(110, 210, 218, 0.11);
}

.design-modern-command-center .boss-metric:last-child {
  border-right: 0;
}

.design-modern-command-center .boss-metric b {
  color: #f5f8fa;
  font-size: 19px;
  line-height: 1;
}

.design-modern-command-center .boss-metric small {
  min-width: 0;
  color: #a4b8c4;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.design-modern-command-center .boss-metric.is-alive b { color: #70e5af; }
.design-modern-command-center .boss-metric.is-ready b { color: #f1c76f; }
.design-modern-command-center .boss-metric.is-unknown b { color: #8495a1; }

.design-modern-command-center .boss-filter-row,
.boss-browser-filters {
  display: flex;
  min-width: 0;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.design-modern-command-center .boss-filter-row {
  margin: 0 12px 7px;
}

.design-modern-command-center .boss-filter-row::-webkit-scrollbar,
.boss-browser-filters::-webkit-scrollbar {
  display: none;
}

.design-modern-command-center .boss-filter-row button,
.boss-browser-filters button {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(86, 151, 175, 0.33);
  border-radius: 5px;
  background: rgba(3, 21, 33, 0.78);
  color: #aebfca;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.design-modern-command-center .boss-filter-row button span,
.boss-browser-filters button span {
  margin-left: 3px;
  color: #6d8999;
}

.design-modern-command-center .boss-filter-row button:hover,
.boss-browser-filters button:hover {
  border-color: rgba(102, 215, 223, 0.62);
  color: #eefcff;
}

.design-modern-command-center .boss-filter-row button.active,
.boss-browser-filters button.active {
  border-color: rgba(224, 178, 82, 0.78);
  background: rgba(91, 66, 17, 0.34);
  color: #f5ce77;
}

.design-modern-command-center .boss-filter-row button.active span,
.boss-browser-filters button.active span {
  color: #fff2c1;
}

.design-modern-command-center .boss-list {
  min-height: 240px;
  max-height: 360px;
  margin: 0 8px 8px;
  padding: 0 4px 3px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #23708b rgba(3, 17, 27, 0.55);
  scrollbar-width: thin;
}

.design-modern-command-center .boss-row {
  display: grid;
  width: 100%;
  min-height: 68px;
  grid-template-columns: 8px minmax(0, 1fr) minmax(142px, 0.76fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid rgba(91, 145, 166, 0.18);
  background: transparent;
  color: #eef5f7;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.design-modern-command-center .boss-row:hover,
.design-modern-command-center .boss-row:focus-visible {
  background: rgba(13, 46, 62, 0.46);
  outline: none;
}

.design-modern-command-center .boss-state-dot {
  width: 7px;
  height: 7px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  color: #71838e;
}

.design-modern-command-center .tone-alive .boss-state-dot,
.boss-browser-modal .tone-alive .boss-state-dot { color: #63e5aa; }
.design-modern-command-center .tone-ready .boss-state-dot,
.boss-browser-modal .tone-ready .boss-state-dot { color: #f2ca70; }
.design-modern-command-center .tone-random .boss-state-dot,
.boss-browser-modal .tone-random .boss-state-dot { color: #ee8a66; }
.design-modern-command-center .tone-waiting .boss-state-dot,
.boss-browser-modal .tone-waiting .boss-state-dot { color: #64cbd7; }
.design-modern-command-center .tone-active .boss-state-dot,
.boss-browser-modal .tone-active .boss-state-dot { color: #a79ae8; }
.design-modern-command-center .tone-idle .boss-state-dot,
.boss-browser-modal .tone-idle .boss-state-dot { color: #68818f; }

.design-modern-command-center .boss-row-main,
.design-modern-command-center .boss-row-state {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.design-modern-command-center .boss-row-main strong {
  display: -webkit-box;
  overflow: hidden;
  color: #edf5f7;
  font-size: 14px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
}

.design-modern-command-center .boss-row-main small,
.design-modern-command-center .boss-row-state small {
  overflow: hidden;
  color: #91aab8;
  font-size: 11px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boss-last-kill {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  color: #89a3b1;
  font-size: 11px;
  line-height: 1.35;
}

.boss-last-kill > span {
  color: #8099a7;
  font-weight: 800;
  white-space: nowrap;
}

.boss-last-kill > strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #efc975;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boss-last-kill > time {
  color: #73909f;
  white-space: nowrap;
}

.boss-last-kill.is-empty > strong {
  color: #718b99;
  font-weight: 700;
}

.design-modern-command-center .boss-last-kill.is-compact {
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px solid rgba(214, 173, 83, 0.15);
}

.design-modern-command-center .boss-row-main .boss-last-kill > strong {
  display: block;
  color: #efc975;
  font-size: 12px;
  line-height: 1.35;
  -webkit-line-clamp: unset;
  white-space: nowrap;
}

.design-modern-command-center .boss-row-main .boss-last-kill.is-empty > strong {
  color: #718b99;
  font-weight: 700;
}

.design-modern-command-center .boss-row-state {
  align-items: flex-end;
  text-align: right;
}

.design-modern-command-center .boss-row-state b {
  overflow: hidden;
  max-width: 100%;
  color: #bcd1d9;
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.design-modern-command-center .boss-row.tone-alive .boss-row-state b { color: #72e7b1; }
.design-modern-command-center .boss-row.tone-ready .boss-row-state b { color: #f2ce7b; }
.design-modern-command-center .boss-row.tone-random .boss-row-state b { color: #f0a07f; }
.design-modern-command-center .boss-row.tone-waiting .boss-row-state b { color: #76d5de; }

.design-modern-command-center .boss-empty {
  display: grid;
  min-height: 160px;
  place-items: center;
  padding: 20px;
  color: #79909d;
  font-size: 12px;
  text-align: center;
}

.design-modern-command-center .event-card[data-event-key="boss"],
.design-modern-command-center .event-card[data-event-key="guildwar"] {
  cursor: pointer;
}

.design-modern-command-center .event-card[data-event-key="boss"]:focus-visible,
.design-modern-command-center .event-card[data-event-key="guildwar"]:focus-visible {
  outline: 2px solid rgba(238, 193, 94, 0.85);
  outline-offset: -3px;
}

.boss-browser-open {
  overflow: hidden;
}

.boss-browser-modal {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  font-family: "Noto Sans Thai", sans-serif;
}

.boss-browser-modal.open {
  display: flex;
}

.boss-browser-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 7, 12, 0.84);
  backdrop-filter: blur(7px);
}

.boss-browser-dialog {
  position: relative;
  display: grid;
  width: min(1180px, 96vw);
  height: min(840px, 92vh);
  grid-template-rows: auto auto auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(91, 189, 204, 0.42);
  border-radius: 7px;
  background: #05131e;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(229, 185, 88, 0.08) inset;
  color: #eef4f6;
}

.boss-browser-head {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px 15px;
  border-bottom: 1px solid rgba(89, 166, 187, 0.24);
  background: #071a27;
}

.boss-browser-head > div {
  min-width: 0;
}

.boss-browser-head span {
  color: #dfb65d;
  font-size: 11px;
  font-weight: 900;
}

.boss-browser-head h2 {
  margin: 2px 0 1px;
  color: #f4f7f8;
  font-size: 24px;
  line-height: 1.2;
}

.boss-browser-head p {
  margin: 0;
  color: #9bb2bf;
  font-size: 13px;
}

.boss-browser-head .market-detail-close {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-color: rgba(116, 178, 194, 0.42);
  background: rgba(8, 29, 42, 0.94);
  color: #d9e7ec;
  font-size: 22px;
}

.boss-browser-toolbar {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 20px;
  border-bottom: 1px solid rgba(89, 166, 187, 0.16);
}

.boss-browser-search {
  display: grid;
  width: min(320px, 42vw);
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 0 11px;
  border: 1px solid rgba(86, 151, 175, 0.35);
  border-radius: 5px;
  background: #03101a;
}

.boss-browser-search span {
  color: #91a7b4;
  font-size: 11px;
  font-weight: 800;
}

.boss-browser-search input {
  width: 100%;
  min-width: 0;
  height: 34px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #eef7f8;
  font: inherit;
  font-size: 13px;
}

.boss-browser-summary {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 20px;
  border-bottom: 1px solid rgba(89, 166, 187, 0.15);
  color: #93aab7;
  font-size: 12px;
}

.boss-browser-summary strong {
  color: #e7c77e;
  font-size: 13px;
}

.boss-browser-list {
  min-height: 0;
  padding: 12px 14px 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #25748f #03101a;
  scrollbar-width: thin;
}

.boss-browser-row {
  margin-bottom: 9px;
  overflow: hidden;
  border: 1px solid rgba(76, 133, 154, 0.28);
  border-radius: 6px;
  background: rgba(3, 17, 27, 0.76);
}

.boss-browser-row-head {
  display: grid;
  min-height: 70px;
  grid-template-columns: 9px minmax(0, 1fr) minmax(150px, auto);
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-bottom: 1px solid rgba(76, 133, 154, 0.2);
}

.boss-browser-row-head > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.boss-browser-row-head .boss-last-kill.is-browser {
  width: min(520px, 100%);
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px solid rgba(214, 173, 83, 0.16);
}

.boss-browser-row-head .boss-last-kill > strong {
  color: #f0ca77;
  font-size: 12px;
  line-height: 1.35;
}

.boss-browser-row-head .boss-last-kill.is-empty > strong {
  color: #718b99;
  font-weight: 700;
}

.boss-browser-row-head strong {
  overflow: hidden;
  color: #f1f6f7;
  font-size: 16px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boss-browser-row-head small {
  color: #8ea7b5;
  font-size: 11px;
}

.boss-browser-row-head > b {
  color: #b8ccd5;
  font-size: 13px;
  text-align: right;
}

.boss-browser-row.tone-alive .boss-browser-row-head > b { color: #6ce3aa; }
.boss-browser-row.tone-ready .boss-browser-row-head > b { color: #f0c96f; }
.boss-browser-row.tone-random .boss-browser-row-head > b { color: #f09c79; }
.boss-browser-row.tone-waiting .boss-browser-row-head > b { color: #70d2dc; }

.boss-context-list {
  display: grid;
  gap: 1px;
  background: rgba(76, 133, 154, 0.12);
}

.boss-context {
  padding: 12px 15px 14px;
  background: #061722;
}

.boss-context > header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.boss-context > header > div {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 8px;
}

.boss-context > header span {
  color: #829dab;
  font-size: 10px;
  font-weight: 900;
}

.boss-context > header strong {
  overflow: hidden;
  color: #dfecef;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boss-context > header b {
  color: #b5c8d0;
  font-size: 12px;
  text-align: right;
}

.boss-context .boss-last-kill.is-context {
  margin: -1px 0 10px;
  padding: 7px 9px;
  border-left: 2px solid rgba(229, 184, 88, 0.78);
  background: rgba(1, 11, 18, 0.42);
}

.boss-room-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.boss-room {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 9px;
  padding: 10px 11px;
  border-left: 2px solid #586f7b;
  background: rgba(1, 10, 17, 0.55);
}

.boss-room.tone-alive { border-left-color: #58d99e; }
.boss-room.tone-ready { border-left-color: #e6bc5e; }
.boss-room.tone-random { border-left-color: #e88665; }
.boss-room.tone-waiting { border-left-color: #55bdca; }
.boss-room.tone-active { border-left-color: #9788df; }

.boss-room strong {
  color: #c7d7dd;
  font-size: 11px;
}

.boss-room span {
  overflow: hidden;
  color: #bdd0d7;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boss-room small {
  grid-column: 1 / -1;
  overflow: hidden;
  color: #829ca9;
  font-size: 10px;
  line-height: 1.45;
  white-space: normal;
}

.boss-room .boss-last-kill.is-room {
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr);
  margin-top: 3px;
  padding-top: 7px;
  border-top: 1px solid rgba(214, 173, 83, 0.14);
}

.boss-room .boss-last-kill.is-room > span {
  color: #7893a2;
  font-size: 10px;
}

.boss-room .boss-last-kill.is-room > strong {
  color: #eec875;
  font-size: 11px;
  text-align: right;
}

.boss-room .boss-last-kill.is-room > time {
  grid-column: 1 / -1;
  color: #708c9a;
  font-size: 10px;
  text-align: right;
}

.boss-room .boss-last-kill.is-room.is-empty > strong {
  color: #6f8794;
  font-weight: 700;
}

@media (max-width: 880px) {
  .boss-browser-modal {
    padding: 10px;
  }

  .boss-browser-dialog {
    width: 100%;
    height: 95vh;
  }

  .boss-browser-toolbar,
  .boss-browser-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .boss-browser-search {
    width: 100%;
  }

  .boss-room-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .design-modern-command-center .boss-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .design-modern-command-center .boss-metric:nth-child(2) {
    border-right: 0;
  }

  .design-modern-command-center .boss-metric:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(110, 210, 218, 0.11);
  }

  .design-modern-command-center .boss-row {
    grid-template-columns: 8px minmax(0, 1fr);
    min-height: 78px;
    padding: 11px 10px;
  }

  .design-modern-command-center .boss-row-state {
    grid-column: 2;
    align-items: flex-start;
    margin-top: 3px;
    text-align: left;
  }

  .design-modern-command-center .boss-last-kill.is-compact,
  .boss-browser-row-head .boss-last-kill.is-browser,
  .boss-context .boss-last-kill.is-context {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .design-modern-command-center .boss-last-kill.is-compact > time,
  .boss-browser-row-head .boss-last-kill.is-browser > time,
  .boss-context .boss-last-kill.is-context > time {
    grid-column: 2;
  }

  .boss-browser-head {
    padding: 14px;
  }

  .boss-browser-head h2 {
    font-size: 22px;
  }

  .boss-browser-head p {
    font-size: 12px;
  }

  .boss-browser-toolbar,
  .boss-browser-summary {
    padding-right: 14px;
    padding-left: 14px;
  }

  .boss-browser-row-head {
    grid-template-columns: 9px minmax(0, 1fr);
  }

  .boss-browser-row-head > b {
    grid-column: 2;
    text-align: left;
  }

  .boss-context > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .boss-context > header b {
    text-align: left;
  }
}

/* Community chat transcript + Reborn Atelier R2 */
.design-modern-command-center .chat-row:not(.tone-announcement) {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 0;
  width: 100%;
  min-height: 74px;
  margin: 0;
  padding: 0 14px;
  align-items: stretch;
  border: 0;
  border-bottom: 1px solid rgba(120, 158, 180, 0.16);
  border-radius: 0;
  background: rgba(3, 15, 24, 0.36);
  box-shadow: none;
}

.design-modern-command-center .chat-row:not(.tone-announcement):hover {
  background: rgba(18, 45, 61, 0.32);
}

.design-modern-command-center .chat-row.role-ai:not(.tone-announcement) {
  background: linear-gradient(90deg, rgba(104, 122, 137, 0.13), rgba(54, 74, 87, 0.08));
  box-shadow: inset 3px 0 0 rgba(176, 194, 205, 0.42);
}

.design-modern-command-center .chat-row.role-gm:not(.tone-announcement) {
  background: linear-gradient(90deg, rgba(184, 129, 31, 0.11), transparent 62%);
  box-shadow: inset 3px 0 0 rgba(232, 181, 75, 0.62);
}

.design-modern-command-center .chat-row.role-rank-1:not(.tone-announcement) { box-shadow: inset 3px 0 0 #58eaff; }
.design-modern-command-center .chat-row.role-rank-2:not(.tone-announcement) { box-shadow: inset 3px 0 0 #54c9ff; }
.design-modern-command-center .chat-row.role-rank-3:not(.tone-announcement) { box-shadow: inset 3px 0 0 #4baee8; }
.design-modern-command-center .chat-row.role-rank-4:not(.tone-announcement) { box-shadow: inset 2px 0 0 #548cae; }
.design-modern-command-center .chat-row.role-rank-5:not(.tone-announcement) { box-shadow: inset 2px 0 0 #647f96; }

.design-modern-command-center .chat-identity {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px 14px 10px 0;
  border-right: 1px solid rgba(126, 162, 181, 0.19);
}

.design-modern-command-center .chat-identity .chat-avatar {
  width: 44px;
  height: 44px;
  margin: 0;
  border: 1px solid rgba(201, 158, 64, 0.58);
  border-radius: 50%;
  object-fit: cover;
  background: #07121a;
  box-shadow: 0 0 0 2px rgba(2, 12, 19, 0.8);
}

.design-modern-command-center .chat-identity .chat-speaker {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  flex-direction: column;
  gap: 5px;
}

.design-modern-command-center .chat-identity .chat-speaker > strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.design-modern-command-center .chat-identity-badges {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}

.design-modern-command-center .chat-row:not(.tone-announcement) .chat-body {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 11px 0 10px 18px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

.design-modern-command-center .chat-row:not(.tone-announcement) .chat-body::before,
.design-modern-command-center .chat-row:not(.tone-announcement) .chat-body::after {
  display: none !important;
  content: none !important;
}

.design-modern-command-center .chat-row:not(.tone-announcement) .chat-meta {
  min-height: 20px;
  margin: 0 0 3px;
  padding: 0;
  border: 0;
  color: #7f97a5;
}

.design-modern-command-center .chat-context {
  display: inline-flex;
  min-width: 0;
  gap: 8px;
  align-items: center;
}

.design-modern-command-center .chat-row:not(.tone-announcement) .chat-channel {
  padding: 0;
  border: 0;
  color: #8299a6;
  background: none;
  font-size: 12px;
  font-weight: 700;
}

.design-modern-command-center .chat-row:not(.tone-announcement) .chat-meta time {
  color: #8296a2;
  font-size: 11px;
}

.design-modern-command-center .chat-row:not(.tone-announcement) .chat-body > p {
  margin: 0;
  color: #dbe6eb;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.design-modern-command-center .identity-name-mark-aurora,
.design-modern-command-center .identity-name-mark-ruby,
.design-modern-command-center .identity-name-mark-ember,
.design-modern-command-center .identity-name-mark-emerald,
.design-modern-command-center .identity-name-mark-sapphire,
.design-modern-command-center .identity-name-mark-rose,
.design-modern-command-center .identity-name-mark-premium-sunset,
.design-modern-command-center .identity-name-mark-premium-orchid,
.design-modern-command-center .identity-name-mark-premium-forest,
.design-modern-command-center .identity-name-mark-premium-prism {
  color: transparent !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: none;
  text-shadow: none;
}

.design-modern-command-center .identity-name-mark-aurora { background-image: linear-gradient(90deg, #7367ff, #a875ff, #dc82ff); }
.design-modern-command-center .identity-name-mark-ruby { background-image: linear-gradient(90deg, #d84255, #ff6177, #ff9aa7); }
.design-modern-command-center .identity-name-mark-ember { background-image: linear-gradient(90deg, #d95624, #f27c35, #ffad65); }
.design-modern-command-center .identity-name-mark-emerald { background-image: linear-gradient(90deg, #26a96c, #43d68e, #92efb7); }
.design-modern-command-center .identity-name-mark-sapphire { background-image: linear-gradient(90deg, #3156d9, #5678ef, #8e91ff); }
.design-modern-command-center .identity-name-mark-rose { background-image: linear-gradient(90deg, #d9468d, #f56ab4, #ff9bd2); }
.design-modern-command-center .identity-name-mark-premium-sunset { background-image: linear-gradient(90deg, #ff6f61, #ff9f43, #ec4c9c); }
.design-modern-command-center .identity-name-mark-premium-orchid { background-image: linear-gradient(90deg, #5965f2, #a957e8, #ed5caa); }
.design-modern-command-center .identity-name-mark-premium-forest { background-image: linear-gradient(90deg, #2ac987, #73d36f, #8b61df); }
.design-modern-command-center .identity-name-mark-premium-prism { background-image: linear-gradient(90deg, #ff6177, #f4c75f, #51d68b, #9a68f0, #f45bad); }

.design-modern-command-center .chat-row.role-gm strong[class*="identity-name-mark-"],
.design-modern-command-center .chat-row.role-ai strong[class*="identity-name-mark-"],
.design-modern-command-center .chat-row[class*="role-rank-"].rank-name-active strong[class*="identity-name-mark-"] {
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}

.design-modern-command-center .chat-row.role-rank-1.rank-name-active .chat-speaker > strong {
  color: transparent;
  background: linear-gradient(90deg, #d9fbff, #58eaff, #4aa8ff, #d9fbff);
  background-size: 220% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 16px rgba(88, 234, 255, 0.58);
  animation: rank-name-flow 3.2s linear infinite;
}
.design-modern-command-center .chat-row.role-rank-2.rank-name-active .chat-speaker > strong { color: #80dcff; text-shadow: 0 0 12px rgba(69, 185, 255, 0.48); }
.design-modern-command-center .chat-row.role-rank-3.rank-name-active .chat-speaker > strong { color: #66bde9; text-shadow: 0 0 9px rgba(67, 164, 217, 0.38); }
.design-modern-command-center .chat-row.role-rank-4.rank-name-active .chat-speaker > strong { color: #84aeca; }
.design-modern-command-center .chat-row.role-rank-5.rank-name-active .chat-speaker > strong { color: #95a9b9; }

@keyframes rank-name-flow { to { background-position: -220% 0; } }

/* Compact Reborn Atelier */
.design-modern-command-center .identity-shop-dialog {
  width: min(1120px, calc(100vw - 32px));
  max-height: min(780px, calc(100svh - 32px));
}

.design-modern-command-center .identity-shop-head {
  min-height: 84px;
  padding: 18px 22px;
}

.design-modern-command-center .identity-shop-title h2 { font-size: clamp(24px, 2.4vw, 34px); }
.design-modern-command-center .identity-shop-title > span { margin-bottom: 2px; }

.design-modern-command-center .identity-shop-toolbar {
  display: grid;
  grid-template-columns: auto auto minmax(300px, 1fr);
  gap: 10px;
  align-items: stretch;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(111, 159, 185, 0.17);
  background: rgba(4, 18, 28, 0.72);
}

.design-modern-command-center .identity-balance,
.design-modern-command-center .identity-premium-status {
  display: flex;
  min-width: 150px;
  padding: 8px 12px;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(108, 163, 190, 0.2);
  border-radius: 8px;
  background: rgba(8, 29, 42, 0.84);
}
.design-modern-command-center .identity-balance small,
.design-modern-command-center .identity-premium-status small { color: #6fcfe6; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.design-modern-command-center .identity-balance strong { color: #f0c668; font-size: 17px; }
.design-modern-command-center .identity-premium-status strong { color: #8799a5; font-size: 12px; }
.design-modern-command-center .identity-premium-status.active { border-color: rgba(174, 103, 232, 0.38); background: linear-gradient(135deg, rgba(81, 49, 132, 0.28), rgba(23, 55, 71, 0.72)); }
.design-modern-command-center .identity-premium-status.active strong { color: #ddb9ff; }

.design-modern-command-center .identity-kind-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  align-self: center;
  justify-self: end;
  width: min(420px, 100%);
  padding: 4px;
  border: 1px solid rgba(108, 163, 190, 0.18);
  border-radius: 8px;
  background: rgba(2, 14, 22, 0.72);
}
.design-modern-command-center .identity-kind-tabs button { min-height: 38px; border: 0; border-radius: 6px; color: #92a8b5; background: transparent; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.design-modern-command-center .identity-kind-tabs button.active { color: #07121a; background: linear-gradient(180deg, #ffe39b, #dca53d); }

.design-modern-command-center .identity-shop-body.identity-shop-body-v2 {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 14px;
  min-height: 0;
  padding: 14px 18px 18px;
  overflow: auto;
}

.design-modern-command-center .identity-shop-body-v2 .identity-preview-card {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 220px;
  margin: 0;
  padding: 16px;
  border-radius: 10px;
}
.design-modern-command-center .identity-shop-body-v2 .identity-preview-card > p { margin: 12px 0 0; color: #8298a5; font-size: 11px; text-align: center; }
.design-modern-command-center .identity-shop-body-v2 .identity-preview-message {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(110, 157, 180, 0.22);
  border-radius: 8px;
  background: rgba(2, 15, 23, 0.72);
}
.design-modern-command-center .identity-shop-body-v2 .identity-preview-message img { width: 46px; height: 46px; border: 1px solid rgba(222, 174, 70, 0.52); border-radius: 50%; object-fit: cover; }
.design-modern-command-center .identity-shop-body-v2 .identity-preview-message span { min-width: 0; }
.design-modern-command-center .identity-shop-body-v2 .identity-preview-message strong { display: block; width: max-content; max-width: 100%; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.design-modern-command-center .identity-shop-body-v2 .identity-preview-message small { display: block; margin-top: 2px; color: #708995; font-size: 10px; }
.design-modern-command-center .identity-shop-body-v2 .identity-preview-message p { margin: 5px 0 0; color: #dbe7eb; font-size: 12px; line-height: 1.4; }

.design-modern-command-center .identity-shop-body-v2 .identity-catalog-column { gap: 12px; overflow: visible; padding: 0; }
.design-modern-command-center .identity-collection-group { padding: 12px; border: 1px solid rgba(105, 155, 180, 0.18); border-radius: 10px; background: rgba(6, 22, 33, 0.62); }
.design-modern-command-center .identity-collection-group > header { display: flex; gap: 10px; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.design-modern-command-center .identity-collection-group > header span { color: #e6eef2; font-size: 14px; font-weight: 900; }
.design-modern-command-center .identity-collection-group > header small { color: #77909e; font-size: 11px; }

.design-modern-command-center .identity-shop-body-v2 .identity-product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.design-modern-command-center .identity-shop-body-v2 .identity-product-card {
  display: grid;
  grid-template-columns: minmax(95px, .8fr) minmax(120px, 1fr) auto;
  gap: 10px;
  min-height: 72px;
  padding: 10px 11px;
  align-items: center;
  border-radius: 8px;
}
.design-modern-command-center .identity-shop-body-v2 .identity-product-card.locked { opacity: .58; }
.design-modern-command-center .identity-color-swatch { display: block; min-width: 0; overflow: hidden; font-size: 14px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.design-modern-command-center .identity-shop-body-v2 .identity-product-copy { min-width: 0; }
.design-modern-command-center .identity-shop-body-v2 .identity-product-copy strong { font-size: 12px; }
.design-modern-command-center .identity-shop-body-v2 .identity-product-copy em { margin-top: 2px; font-size: 10px; }
.design-modern-command-center .identity-shop-body-v2 .identity-product-state { position: static; align-self: center; white-space: nowrap; }

.design-modern-command-center .identity-shop-body-v2 .identity-product-detail {
  grid-template-columns: minmax(180px, 1fr) 110px 78px minmax(170px, auto);
  gap: 12px;
  min-height: 104px;
  padding: 14px;
  border-radius: 10px;
}
.design-modern-command-center .identity-shop-body-v2 .identity-detail-copy p { max-width: 44ch; margin-top: 3px; font-size: 11px; }
.design-modern-command-center .identity-shop-body-v2 .identity-detail-actions { min-width: 0; }

@media (max-width: 900px) {
  .design-modern-command-center .chat-row:not(.tone-announcement) { grid-template-columns: 160px minmax(0, 1fr); }
  .design-modern-command-center .identity-shop-toolbar { grid-template-columns: 1fr 1fr; }
  .design-modern-command-center .identity-kind-tabs { grid-column: 1 / -1; justify-self: stretch; width: 100%; }
  .design-modern-command-center .identity-shop-body.identity-shop-body-v2 { grid-template-columns: 1fr; }
  .design-modern-command-center .identity-shop-body-v2 .identity-preview-card { position: static; min-height: 0; }
  .design-modern-command-center .identity-shop-body-v2 .identity-product-detail { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .design-modern-command-center .chat-row:not(.tone-announcement) { display: block; min-height: 0; padding: 9px 10px 10px; }
  .design-modern-command-center .chat-identity { grid-template-columns: 36px minmax(0, 1fr); gap: 8px; padding: 0 0 6px; border-right: 0; }
  .design-modern-command-center .chat-identity .chat-avatar { width: 34px; height: 34px; }
  .design-modern-command-center .chat-identity .chat-speaker { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 6px; align-items: center; }
  .design-modern-command-center .chat-identity .chat-speaker > strong { font-size: 13px; }
  .design-modern-command-center .chat-row:not(.tone-announcement) .chat-body { padding: 0 0 0 42px; }
  .design-modern-command-center .chat-row:not(.tone-announcement) .chat-body > p { font-size: 13px; line-height: 1.48; }
  .design-modern-command-center .identity-shop-modal { padding: 8px; }
  .design-modern-command-center .identity-shop-dialog { width: 100%; max-height: calc(100svh - 16px); }
  .design-modern-command-center .identity-shop-head { min-height: 68px; padding: 13px 14px; }
  .design-modern-command-center .identity-shop-title h2 { font-size: 22px; }
  .design-modern-command-center .identity-refresh { display: none; }
  .design-modern-command-center .identity-shop-toolbar { padding: 10px; }
  .design-modern-command-center .identity-balance,
  .design-modern-command-center .identity-premium-status { min-width: 0; padding: 7px 9px; }
  .design-modern-command-center .identity-premium-status strong { font-size: 10px; }
  .design-modern-command-center .identity-shop-body.identity-shop-body-v2 { padding: 10px; }
  .design-modern-command-center .identity-shop-body-v2 .identity-product-grid { grid-template-columns: 1fr; }
  .design-modern-command-center .identity-shop-body-v2 .identity-product-detail { grid-template-columns: 1fr; }
  .design-modern-command-center .identity-shop-body-v2 .identity-detail-status,
  .design-modern-command-center .identity-shop-body-v2 .identity-detail-price { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .design-modern-command-center .chat-row.role-rank-1 .chat-speaker > strong { animation: none; }
}

.design-modern-command-center .aether-canvas {
  opacity: 0.34;
}

.design-modern-command-center .scene-wash {
  background:
    linear-gradient(90deg, rgba(1, 5, 10, 0.82), rgba(4, 14, 22, 0.34) 48%, rgba(1, 5, 10, 0.86)),
    linear-gradient(180deg, rgba(6, 18, 29, 0.5), rgba(1, 5, 9, 0.9) 76%);
}

.design-modern-command-center .app-shell {
  width: min(1900px, calc(100% - 32px));
}

.design-modern-command-center button,
.design-modern-command-center a,
.design-modern-command-center [role="button"] {
  -webkit-tap-highlight-color: transparent;
}

.design-modern-command-center button:focus-visible,
.design-modern-command-center a:focus-visible,
.design-modern-command-center [role="button"]:focus-visible,
.design-modern-command-center input:focus-visible,
.design-modern-command-center select:focus-visible {
  outline: 2px solid rgba(98, 216, 238, 0.78);
  outline-offset: 2px;
}

/* Top navigation */

.design-modern-command-center .topbar {
  grid-template-columns: 244px minmax(0, 1fr) 448px;
  gap: 14px;
  min-height: 76px;
  padding: 6px 10px;
  border: 0;
  border-bottom: 1px solid rgba(100, 164, 201, 0.24);
  border-radius: 0 0 var(--modern-radius) var(--modern-radius);
  background:
    linear-gradient(180deg, rgba(8, 24, 36, 0.96), rgba(3, 11, 18, 0.94)),
    rgba(3, 10, 17, 0.96);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.28),
    inset 0 -1px 0 rgba(244, 200, 111, 0.06);
  backdrop-filter: blur(20px) saturate(1.1);
}

.design-modern-command-center .brand,
.design-modern-command-center .brand-art {
  height: 62px;
}

.design-modern-command-center .brand-art {
  width: 224px;
}

.design-modern-command-center .brand-art img {
  filter:
    drop-shadow(0 2px 0 rgba(39, 22, 7, 0.78))
    drop-shadow(0 0 14px rgba(244, 200, 111, 0.2));
}

.design-modern-command-center .top-nav {
  align-items: stretch;
  width: 100%;
  max-width: 1040px;
  min-height: 60px;
  padding: 4px;
  overflow: hidden;
  border: 1px solid rgba(105, 164, 199, 0.16);
  border-radius: var(--modern-radius);
  background: rgba(1, 8, 14, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.design-modern-command-center .top-nav .nav-tab {
  grid-template-rows: 30px 18px;
  gap: 0;
  height: 52px;
  margin-left: 0;
  padding: 3px 5px;
  overflow: hidden;
  border: 0;
  border-right: 1px solid rgba(105, 164, 199, 0.11);
  border-radius: 0;
  clip-path: none;
  color: #b9c8d2;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.design-modern-command-center .top-nav .nav-tab:last-child {
  border-right: 0;
}

.design-modern-command-center .top-nav .nav-tab::before {
  inset: 0;
  clip-path: none;
  background: linear-gradient(180deg, rgba(98, 216, 238, 0.06), transparent 48%);
  opacity: 0;
  transition: opacity 160ms ease;
}

.design-modern-command-center .top-nav .nav-tab::after {
  inset: auto 16px 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--modern-cyan) 24%, var(--modern-gold) 76%, transparent);
  box-shadow: 0 0 10px rgba(98, 216, 238, 0.38);
}

.design-modern-command-center .top-nav .nav-tab img,
.design-modern-command-center .top-nav .nav-tab.active img {
  width: 27px;
  height: 27px;
  opacity: 0.72;
  filter: saturate(0.72) brightness(0.98) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.72));
  transition: opacity 160ms ease, filter 160ms ease, transform 160ms ease;
}

.design-modern-command-center .top-nav .nav-tab span,
.design-modern-command-center .top-nav .nav-tab.active span {
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  text-shadow: none;
}

.design-modern-command-center .top-nav .nav-tab:hover,
.design-modern-command-center .top-nav .nav-tab.active {
  z-index: 1;
  transform: none;
  border-color: transparent;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(19, 55, 74, 0.72), rgba(7, 23, 34, 0.42));
  box-shadow: none;
}

.design-modern-command-center .top-nav .nav-tab:hover::before,
.design-modern-command-center .top-nav .nav-tab.active::before {
  opacity: 1;
  background: linear-gradient(180deg, rgba(98, 216, 238, 0.12), transparent 62%);
}

.design-modern-command-center .top-nav .nav-tab:hover img,
.design-modern-command-center .top-nav .nav-tab.active img {
  width: 29px;
  height: 29px;
  opacity: 1;
  filter: saturate(1.05) brightness(1.12) drop-shadow(0 0 8px rgba(98, 216, 238, 0.24));
  transform: translateY(-1px);
}

.design-modern-command-center .top-nav .nav-tab.active span {
  color: var(--modern-gold);
}

.design-modern-command-center .user-strip {
  position: relative;
  justify-content: flex-end;
  gap: 8px;
}

.design-modern-command-center .account-menu-popover {
  position: absolute;
  z-index: 90;
  top: calc(100% + 10px);
  right: 0;
  width: min(336px, calc(100vw - 24px));
  padding: 12px;
  visibility: hidden;
  border: 1px solid rgba(126, 174, 205, 0.25);
  border-top-color: rgba(244, 200, 111, 0.48);
  border-radius: 8px;
  opacity: 0;
  background:
    radial-gradient(circle at 88% 0%, rgba(244, 200, 111, 0.1), transparent 36%),
    linear-gradient(145deg, rgba(8, 25, 37, 0.98), rgba(3, 13, 21, 0.99));
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.design-modern-command-center .account-menu-popover.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.design-modern-command-center .account-menu-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 11px;
  border-bottom: 1px solid rgba(126, 174, 205, 0.14);
}

.design-modern-command-center .account-menu-head > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.design-modern-command-center .account-menu-head span {
  color: #69d8e8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.design-modern-command-center .account-menu-head strong {
  overflow: hidden;
  color: #f5f7f8;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.design-modern-command-center .account-menu-head small {
  flex: 0 0 auto;
  color: #f1c86e;
  font-size: 11px;
  font-weight: 800;
}

.design-modern-command-center .account-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding-top: 10px;
}

.design-modern-command-center .account-menu-grid button {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid rgba(126, 174, 205, 0.14);
  border-radius: 6px;
  color: #c9d6dc;
  text-align: left;
  background: rgba(4, 15, 23, 0.7);
  transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.design-modern-command-center .account-menu-grid button:last-child {
  grid-column: 1 / -1;
}

.design-modern-command-center .account-menu-grid button:hover,
.design-modern-command-center .account-menu-grid button:focus-visible {
  border-color: rgba(98, 216, 238, 0.4);
  color: #ffffff;
  outline: 0;
  background: rgba(19, 51, 65, 0.76);
  transform: translateY(-1px);
}

.design-modern-command-center .account-menu-grid button.featured {
  border-color: rgba(244, 200, 111, 0.35);
  color: #f7dfaa;
  background: linear-gradient(120deg, rgba(92, 68, 29, 0.32), rgba(13, 31, 39, 0.76));
}

.design-modern-command-center .account-menu-grid .account-menu-icon {
  width: 22px;
  height: 22px;
  color: #73d2dc;
  object-fit: contain;
}

.design-modern-command-center .account-menu-grid img.account-menu-icon {
  width: 24px;
  height: 24px;
}

.design-modern-command-center .account-menu-grid button.featured .account-menu-icon {
  color: #f1c86e;
}

.design-modern-command-center .account-menu-grid button span {
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.design-modern-command-center .user-mini[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.design-modern-command-center .user-mini[aria-expanded="true"] {
  background: linear-gradient(180deg, rgba(244, 200, 111, 0.06), rgba(98, 216, 238, 0.04));
  box-shadow: inset 0 -2px 0 rgba(244, 200, 111, 0.36);
}

.design-modern-command-center .currency-chip {
  min-width: 126px;
  height: 40px;
  border-color: rgba(244, 200, 111, 0.26);
  border-radius: var(--modern-radius);
  background: rgba(1, 9, 15, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.design-modern-command-center .currency-chip:hover {
  border-color: rgba(244, 200, 111, 0.52);
  background: rgba(16, 32, 39, 0.82);
}

.design-modern-command-center .icon-button {
  width: 40px;
  height: 40px;
}

.design-modern-command-center .icon-button:hover {
  background: rgba(98, 216, 238, 0.06);
}

.design-modern-command-center .user-mini {
  width: 154px;
  min-width: 154px;
  max-width: 154px;
  height: 46px;
  padding-left: 10px;
  border-left-color: rgba(244, 200, 111, 0.16);
}

.design-modern-command-center .user-mini img {
  width: 38px;
  height: 38px;
}

.design-modern-command-center .user-mini strong {
  font-size: 14px;
}

.design-modern-command-center .user-mini small::after {
  opacity: 0.55;
}

/* Live strip */

.design-modern-command-center .server-strip {
  grid-template-columns: 210px minmax(0, 1fr) 112px;
  gap: 10px;
  min-height: 40px;
  margin: 10px 0 12px;
  padding: 4px 6px;
  border: 1px solid var(--modern-line);
  border-radius: var(--modern-radius);
  background: rgba(3, 12, 20, 0.86);
  box-shadow: none;
}

.design-modern-command-center .server-state {
  font-size: 12px;
}

.design-modern-command-center .state-pulse {
  width: 8px;
  height: 8px;
  background: var(--modern-emerald);
  box-shadow: 0 0 12px rgba(105, 213, 156, 0.72);
}

.design-modern-command-center .ticker-window {
  border-color: rgba(244, 200, 111, 0.1);
}

.design-modern-command-center .ticker-track {
  color: var(--modern-text-soft);
  font-size: 12px;
}

.design-modern-command-center .patch-button {
  height: 28px;
  border: 0;
  border-radius: 4px;
  color: #1c1306;
  background: linear-gradient(180deg, #f6d78f, #c99040);
  box-shadow: none;
}

/* Main spatial system */

.design-modern-command-center .dashboard {
  grid-template-columns: 286px minmax(680px, 1fr) minmax(390px, 430px);
  gap: 14px;
}

.design-modern-command-center .main-stack,
.design-modern-command-center .right-stack {
  gap: 14px;
}

.design-modern-command-center .profile-window,
.design-modern-command-center .panel,
.design-modern-command-center .event-grid {
  border: 1px solid var(--modern-line);
  border-radius: var(--modern-radius);
  background:
    linear-gradient(180deg, rgba(10, 28, 40, 0.9), rgba(3, 12, 19, 0.94)),
    var(--modern-surface);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.design-modern-command-center .profile-window::before,
.design-modern-command-center .profile-window::after,
.design-modern-command-center .panel::before,
.design-modern-command-center .panel::after,
.design-modern-command-center .hero::after {
  display: none;
}

.design-modern-command-center .panel {
  padding: 10px 12px 12px;
}

.design-modern-command-center .panel-head {
  min-height: 38px;
  margin: 0 0 8px;
  padding: 0 2px 8px;
  border-bottom: 1px solid rgba(126, 174, 205, 0.16);
}

.design-modern-command-center .panel-head::before,
.design-modern-command-center .panel-head::after {
  display: none;
}

.design-modern-command-center .panel-head h2 {
  color: var(--modern-text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: none;
}

.design-modern-command-center .panel-head h2::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  margin-top: 7px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--modern-gold), rgba(244, 200, 111, 0));
}

.design-modern-command-center .panel-head > span {
  color: var(--modern-text-muted);
  font-size: 11px;
}

.design-modern-command-center .panel-head > span strong {
  color: var(--modern-gold);
}

.design-modern-command-center .link-button,
.design-modern-command-center .compact-button,
.design-modern-command-center .wide-button,
.design-modern-command-center .send-button,
.design-modern-command-center .edit-button,
.design-modern-command-center .mission-row button,
.design-modern-command-center .party-row button {
  border-color: rgba(244, 200, 111, 0.3);
  border-radius: 5px;
  color: #efd59f;
  background: rgba(8, 22, 31, 0.86);
  box-shadow: none;
}

.design-modern-command-center .link-button:hover,
.design-modern-command-center .compact-button:hover,
.design-modern-command-center .wide-button:hover,
.design-modern-command-center .send-button:hover,
.design-modern-command-center .edit-button:hover,
.design-modern-command-center .mission-row button:hover,
.design-modern-command-center .party-row button:hover {
  border-color: rgba(244, 200, 111, 0.58);
  background: rgba(32, 42, 39, 0.92);
  box-shadow: none;
  transform: translateY(-1px);
}

/* Profile */

.design-modern-command-center .profile-window {
  top: 92px;
  max-height: calc(100vh - 108px);
  min-height: 0;
  padding: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: rgba(98, 216, 238, 0.32) transparent;
  scrollbar-width: thin;
}

.design-modern-command-center .panel-crown {
  min-height: 34px;
  margin: -2px 0 10px;
  padding: 0 1px 9px;
  border-bottom: 1px solid rgba(126, 174, 205, 0.15);
}

.design-modern-command-center .panel-crown span {
  color: var(--modern-text);
  font-size: 15px;
}

.design-modern-command-center .panel-crown strong {
  border-color: rgba(98, 216, 238, 0.28);
  color: var(--modern-cyan);
  background: rgba(7, 36, 48, 0.62);
  box-shadow: none;
}

.design-modern-command-center .profile-portrait {
  display: flex;
  min-height: 228px;
  padding: 14px 12px 11px;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 10px;
  border: 0;
  border-radius: var(--modern-radius);
  background:
    radial-gradient(circle at 50% 32%, rgba(98, 216, 238, 0.12), transparent 40%),
    linear-gradient(180deg, rgba(12, 34, 47, 0.78), rgba(3, 12, 19, 0.92));
  box-shadow:
    inset 0 0 0 1px rgba(126, 174, 205, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 12px 26px rgba(0, 0, 0, 0.2);
}

.design-modern-command-center .profile-portrait::before,
.design-modern-command-center .profile-portrait::after {
  display: none;
}

.design-modern-command-center .profile-avatar-visual {
  position: relative;
  z-index: 1;
  width: 158px;
  height: 158px;
  flex: 0 0 158px;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 50%;
  background:
    linear-gradient(#06131d, #06131d) padding-box,
    linear-gradient(145deg, rgba(98, 216, 238, 0.82), rgba(244, 200, 111, 0.72) 52%, rgba(98, 216, 238, 0.28)) border-box;
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(98, 216, 238, 0.13);
}

.design-modern-command-center .profile-avatar-visual img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.design-modern-command-center .profile-portrait-default .profile-avatar-visual {
  background:
    linear-gradient(#06131d, #06131d) padding-box,
    linear-gradient(145deg, rgba(98, 216, 238, 0.68), rgba(126, 174, 205, 0.3)) border-box;
}

.design-modern-command-center .profile-avatar-note {
  display: block;
  min-width: 0;
  margin: 8px 0 7px;
  overflow: hidden;
  color: var(--modern-text-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.design-modern-command-center .profile-avatar-toolbar {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.design-modern-command-center .profile-avatar-toolbar > .profile-avatar-note {
  margin: 0 auto 0 0;
  text-align: left;
}

.design-modern-command-center .profile-avatar-edit {
  display: inline-flex;
  min-width: 0;
  min-height: 30px;
  padding: 0 10px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(98, 216, 238, 0.28);
  border-radius: 6px;
  color: #bdeff6;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  background: rgba(7, 30, 42, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.design-modern-command-center .profile-avatar-edit:hover,
.design-modern-command-center .profile-avatar-edit:focus-visible {
  border-color: rgba(98, 216, 238, 0.58);
  color: #e5fbff;
  background: rgba(11, 44, 59, 0.96);
  outline: none;
  transform: translateY(-1px);
}

.design-modern-command-center .profile-avatar-edit-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.design-modern-command-center .portrait-status {
  position: static;
  z-index: auto;
  min-height: 30px;
  flex: 0 0 auto;
  padding: 0 9px;
  border-color: rgba(105, 213, 156, 0.36);
  background: rgba(4, 25, 21, 0.92);
  box-shadow: none;
}

.design-modern-command-center .profile-head {
  min-height: 68px;
  margin-bottom: 9px;
  padding: 10px 10px 9px;
  border: 0;
  border-radius: var(--modern-radius);
  background: rgba(4, 14, 22, 0.72);
  box-shadow: inset 0 0 0 1px rgba(126, 174, 205, 0.1);
}

.design-modern-command-center .profile-head h2 {
  color: var(--modern-gold);
  font-size: 22px;
  text-shadow: 0 0 14px rgba(244, 200, 111, 0.12);
}

.design-modern-command-center .profile-head p {
  color: var(--modern-text-soft);
}

.design-modern-command-center .profile-core-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 9px;
}

.design-modern-command-center .profile-core-grid > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  align-items: start;
  gap: 2px;
  min-width: 0;
  min-height: 58px;
  padding: 8px 7px;
  border: 1px solid rgba(126, 174, 205, 0.12);
  border-radius: 5px;
  background: rgba(4, 14, 22, 0.58);
}

.design-modern-command-center .profile-core-grid span {
  color: var(--modern-text-muted);
  font-size: 9px;
  text-transform: uppercase;
}

.design-modern-command-center .profile-core-grid strong {
  justify-self: start;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  color: #ffffff;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.design-modern-command-center .profile-stats {
  gap: 0;
  margin: 0 0 9px;
  overflow: hidden;
  border: 1px solid rgba(126, 174, 205, 0.12);
  border-radius: var(--modern-radius);
  background: rgba(3, 12, 19, 0.56);
}

.design-modern-command-center .profile-stat-row {
  min-height: 46px;
  padding: 7px 9px;
  border: 0;
  border-bottom: 1px solid rgba(126, 174, 205, 0.1);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.design-modern-command-center .profile-stat-row:last-child {
  border-bottom: 0;
}

.design-modern-command-center .profile-stat-row dt {
  color: var(--modern-text-soft);
  font-size: 12px;
}

.design-modern-command-center .profile-stat-row dt img {
  width: 28px;
  height: 28px;
}

.design-modern-command-center .profile-stat-row dd {
  color: #ffffff;
  font-size: 13px;
}

.design-modern-command-center .vip-card {
  min-height: 74px;
  margin-bottom: 9px;
  padding: 12px;
  border-color: rgba(165, 139, 232, 0.34);
  border-radius: var(--modern-radius);
  background:
    linear-gradient(105deg, rgba(83, 52, 139, 0.86), rgba(26, 30, 76, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.design-modern-command-center .vip-card .vip-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.design-modern-command-center .vip-card .vip-card-head > strong {
  font-size: 18px;
  line-height: 1.1;
}

.design-modern-command-center .vip-card .vip-card-status {
  min-width: 0;
  font-size: 13px;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

.design-modern-command-center .vip-card .vip-card-note {
  min-width: 0;
}

.design-modern-command-center .vip-card .vip-card-note > span {
  overflow: hidden;
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.design-modern-command-center .vip-card.premium-empty {
  border-color: rgba(129, 146, 158, 0.3);
  background:
    radial-gradient(circle at 18% 0%, rgba(193, 204, 211, 0.08), transparent 38%),
    linear-gradient(105deg, rgba(49, 57, 65, 0.92), rgba(25, 32, 39, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.design-modern-command-center .vip-card.premium-empty::after {
  border-color: rgba(183, 195, 202, 0.12);
}

.design-modern-command-center .vip-card.premium-empty strong {
  color: #d6dde2;
  text-shadow: none;
}

.design-modern-command-center .vip-card.premium-empty span {
  color: #9eabb3;
}

.design-modern-command-center .character-switcher {
  margin-bottom: 9px;
  border-color: rgba(126, 174, 205, 0.12);
  border-radius: var(--modern-radius);
  background: rgba(3, 12, 19, 0.58);
}

.design-modern-command-center .character-list button {
  border: 0;
  border-bottom: 1px solid rgba(126, 174, 205, 0.1);
  border-radius: 0;
  background: transparent;
}

.design-modern-command-center .character-list button:last-child {
  border-bottom: 0;
}

.design-modern-command-center .character-list button.active {
  background: linear-gradient(90deg, rgba(98, 216, 238, 0.12), rgba(244, 200, 111, 0.05));
}

.design-modern-command-center .profile-menu {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
}

.design-modern-command-center .profile-menu button {
  min-height: 48px;
  padding: 7px 8px;
  border: 1px solid rgba(126, 174, 205, 0.11);
  border-radius: 5px;
  background: rgba(4, 14, 22, 0.54);
}

.design-modern-command-center .profile-menu button img {
  width: 26px;
  height: 26px;
}

.design-modern-command-center .profile-menu button span {
  font-size: 10px;
}

.design-modern-command-center .profile-menu button:hover,
.design-modern-command-center .profile-menu button.active {
  border-color: rgba(244, 200, 111, 0.3);
  background: rgba(25, 37, 39, 0.78);
}

/* Hero */

.design-modern-command-center .hero {
  height: 404px;
  min-height: 404px;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  background: #06101a;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.3);
}

.design-modern-command-center .hero::before {
  display: none;
}

.design-modern-command-center .hero::after {
  display: block;
  inset: auto 0 0;
  height: 2px;
  background:
    linear-gradient(90deg, transparent, rgba(98, 216, 238, 0.72) 24%, rgba(244, 200, 111, 0.62) 72%, transparent);
  opacity: 0.72;
}

.design-modern-command-center .hero-shade {
  background:
    linear-gradient(90deg, rgba(1, 6, 11, 0.86) 0%, rgba(2, 9, 15, 0.68) 34%, rgba(2, 9, 15, 0.18) 62%, rgba(2, 7, 12, 0.12) 100%),
    linear-gradient(180deg, rgba(2, 7, 12, 0.03) 0%, rgba(2, 7, 12, 0.12) 58%, rgba(1, 5, 9, 0.66) 100%);
}

.design-modern-command-center .hero-art {
  object-position: center top;
  filter: saturate(0.96) contrast(1.04) brightness(0.92);
  transform: none;
}

.design-modern-command-center .hero-motion-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  filter: saturate(0.96) contrast(1.04) brightness(0.92);
  transform: translateZ(0);
  transition: opacity 240ms ease;
}

.design-modern-command-center .hero-motion-canvas.is-ready {
  opacity: 1;
}

.design-modern-command-center .hero-energy {
  right: 42%;
  bottom: 12px;
  height: 56px;
  opacity: 0.18;
}

.design-modern-command-center .hero-copy {
  width: 58%;
  min-height: 100%;
  padding: 50px 46px 58px;
}

.design-modern-command-center .hero-kicker {
  margin-bottom: 10px;
  color: var(--modern-gold);
  font-size: 11px;
  letter-spacing: 0;
}

.design-modern-command-center .hero-kicker::after {
  content: "";
  display: block;
  width: 46px;
  height: 1px;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--modern-gold), rgba(244, 200, 111, 0));
}

.design-modern-command-center .hero h1 {
  max-width: 540px;
  color: #ffffff;
  font-size: 40px;
  line-height: 1.15;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.72);
}

.design-modern-command-center .hero-copy > p:not(.hero-kicker) {
  max-width: 470px;
  color: #d0d9df;
  font-size: 15px;
}

.design-modern-command-center .hero-actions {
  gap: 10px;
  margin-top: 22px;
}

.design-modern-command-center .primary-action,
.design-modern-command-center .secondary-action {
  min-width: 168px;
  height: 46px;
  border-radius: 5px;
  box-shadow: none;
}

.design-modern-command-center .primary-action {
  border-color: rgba(244, 200, 111, 0.72);
  color: #211606;
  background: linear-gradient(180deg, #f8dda0, #d19a47);
}

.design-modern-command-center .secondary-action {
  border-color: rgba(165, 139, 232, 0.5);
  color: #f0e9ff;
  background: linear-gradient(180deg, rgba(102, 65, 173, 0.94), rgba(49, 29, 103, 0.96));
}

.design-modern-command-center .hero-dots {
  left: 46px;
  bottom: 22px;
}

.design-modern-command-center .hero-dots button {
  width: 22px;
  height: 3px;
  border: 0;
  background: rgba(202, 217, 226, 0.32);
}

.design-modern-command-center .hero-dots button.active {
  width: 34px;
  background: linear-gradient(90deg, var(--modern-cyan), var(--modern-gold));
  box-shadow: 0 0 8px rgba(98, 216, 238, 0.28);
}

/* Unified events surface */

.design-modern-command-center .event-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 0;
  height: 404px;
  padding: 8px;
  overflow: hidden;
}

.design-modern-command-center .event-card {
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 9px;
  min-width: 0;
  min-height: 0;
  height: auto;
  padding: 10px;
  border: 0;
  border-right: 1px solid rgba(126, 174, 205, 0.11);
  border-bottom: 1px solid rgba(126, 174, 205, 0.11);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: background 160ms ease;
}

.design-modern-command-center .event-card:nth-child(2n) {
  border-right: 0;
}

.design-modern-command-center .event-card:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.design-modern-command-center .event-card:hover {
  background: linear-gradient(90deg, rgba(98, 216, 238, 0.07), rgba(244, 200, 111, 0.035));
}

.design-modern-command-center .event-card > img {
  width: 54px;
  height: 54px;
  filter: saturate(0.92) brightness(1.02) drop-shadow(0 5px 9px rgba(0, 0, 0, 0.44));
}

.design-modern-command-center .event-card h2 {
  color: var(--modern-gold-soft);
  font-size: 11px;
  text-shadow: none;
}

.design-modern-command-center .event-card strong {
  color: var(--modern-text);
  font-size: 16px;
  line-height: 1.14;
}

.design-modern-command-center .event-card p {
  margin: 2px 0 0;
  color: var(--modern-text-soft);
  font-size: 11px;
}

.design-modern-command-center .event-card small {
  color: var(--modern-text-muted);
  font-size: 9px;
}

.design-modern-command-center .event-meter {
  height: 3px;
  margin-top: 6px;
  background: rgba(126, 174, 205, 0.11);
}

.design-modern-command-center .event-meter i {
  background: linear-gradient(90deg, var(--modern-cyan), var(--modern-gold));
  box-shadow: none;
}

/* Content hierarchy */

.design-modern-command-center .content-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
  grid-template-areas:
    "chat chat"
    "mission market"
    "feed feed";
  gap: 14px;
}

.design-modern-command-center .chat-panel {
  height: 560px;
  min-height: 560px;
}

.design-modern-command-center .chat-presence-mini {
  min-width: 64px;
  height: 30px;
  border-color: rgba(98, 216, 238, 0.24);
  background: rgba(4, 25, 32, 0.72);
  box-shadow: none;
}

.design-modern-command-center .tab-row {
  gap: 0;
  margin-bottom: 8px;
  padding: 3px;
  border: 1px solid rgba(126, 174, 205, 0.12);
  border-radius: 5px;
  background: rgba(1, 8, 14, 0.48);
}

.design-modern-command-center .tab-row button {
  height: 30px;
  border: 0;
  border-right: 1px solid rgba(126, 174, 205, 0.1);
  border-radius: 0;
  color: var(--modern-text-soft);
  background: transparent;
  box-shadow: none;
}

.design-modern-command-center .tab-row button:last-child {
  border-right: 0;
}

.design-modern-command-center .tab-row button:hover {
  color: #ffffff;
  background: rgba(98, 216, 238, 0.06);
}

.design-modern-command-center .tab-row button.active {
  border-radius: 3px;
  color: #1d1508;
  background: linear-gradient(180deg, #f5d68f, #c89244);
  box-shadow: none;
}

.design-modern-command-center .chat-tab-combo {
  border-radius: 3px;
  background: rgba(91, 57, 137, 0.32);
}

.design-modern-command-center .chat-list {
  padding: 16px;
  border: 1px solid rgba(126, 174, 205, 0.12);
  border-radius: 5px;
  background:
    linear-gradient(180deg, rgba(0, 5, 9, 0.94), rgba(1, 9, 14, 0.96));
  box-shadow: inset 0 18px 30px rgba(0, 0, 0, 0.2);
}

.design-modern-command-center .chat-row {
  gap: 9px;
}

.design-modern-command-center .chat-body {
  border-color: rgba(126, 174, 205, 0.18);
  border-radius: 8px 8px 8px 3px;
  box-shadow: inset 2px 0 0 var(--chat-accent), 0 7px 14px rgba(0, 0, 0, 0.16);
}

.design-modern-command-center .chat-row.tone-own .chat-body {
  border-radius: 8px 8px 3px 8px;
  box-shadow: inset -2px 0 0 var(--chat-accent), 0 7px 14px rgba(0, 0, 0, 0.16);
}

.design-modern-command-center .chat-compose {
  min-height: 48px;
  margin-top: 8px;
  padding: 6px;
  border: 1px solid rgba(126, 174, 205, 0.13);
  border-radius: 5px;
  background: rgba(1, 8, 14, 0.78);
  box-shadow: none;
}

.design-modern-command-center .chat-compose input {
  height: 34px;
  border: 0;
  border-radius: 3px;
  color: var(--modern-text);
  background: rgba(8, 22, 31, 0.78);
}

.design-modern-command-center .send-button {
  color: #201506;
  background: linear-gradient(180deg, #f6d78f, #cd9541);
}

.design-modern-command-center .mission-list,
.design-modern-command-center .market-list,
.design-modern-command-center .feed-list,
.design-modern-command-center .ranking-list,
.design-modern-command-center .guild-list,
.design-modern-command-center .party-list {
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(126, 174, 205, 0.11);
  border-radius: 5px;
  background: rgba(2, 10, 16, 0.5);
}

.design-modern-command-center .mission-row,
.design-modern-command-center .market-row,
.design-modern-command-center .feed-row,
.design-modern-command-center .rank-row,
.design-modern-command-center .guild-row,
.design-modern-command-center .party-row {
  border: 0;
  border-bottom: 1px solid rgba(126, 174, 205, 0.1);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.design-modern-command-center .mission-row:last-child,
.design-modern-command-center .market-row:last-child,
.design-modern-command-center .feed-row:last-child,
.design-modern-command-center .rank-row:last-child,
.design-modern-command-center .guild-row:last-child,
.design-modern-command-center .party-row:last-child {
  border-bottom: 0;
}

.design-modern-command-center .mission-row:hover,
.design-modern-command-center .market-row:hover,
.design-modern-command-center .feed-row:hover,
.design-modern-command-center .rank-row:hover,
.design-modern-command-center .guild-row:hover,
.design-modern-command-center .party-row:hover {
  background: linear-gradient(90deg, rgba(98, 216, 238, 0.07), rgba(244, 200, 111, 0.025));
}

.design-modern-command-center .mission-row {
  min-height: 84px;
  padding: 10px;
}

.design-modern-command-center .mission-icon {
  background: transparent;
  box-shadow: none;
}

.design-modern-command-center .mission-icon img {
  filter: saturate(0.94) brightness(1.05) drop-shadow(0 3px 5px rgba(0, 0, 0, 0.5));
}

.design-modern-command-center .progress-bar {
  height: 4px;
  background: rgba(126, 174, 205, 0.13);
}

.design-modern-command-center .progress-bar span {
  background: linear-gradient(90deg, var(--modern-emerald), var(--modern-gold));
  box-shadow: none;
}

.design-modern-command-center .market-row {
  min-height: 72px;
  padding: 9px 10px;
}

.design-modern-command-center .market-work-summary {
  width: fit-content;
  max-width: 100%;
  padding-left: 6px;
  border-left: 2px solid color-mix(in srgb, var(--market-work-prefix, #a88c55) 68%, transparent);
}

.design-modern-command-center .market-work-detail {
  border-color: color-mix(in srgb, var(--market-work-prefix, #a88c55) 34%, transparent);
  border-radius: 5px;
  background:
    linear-gradient(105deg, rgba(168, 140, 85, 0.085), rgba(3, 13, 20, 0.72) 44%, rgba(107, 210, 255, 0.045));
  box-shadow: none;
}

@media (max-width: 680px) {
  .design-modern-command-center .market-work-summary {
    display: grid;
    gap: 1px;
  }

  .design-modern-command-center .market-work-detail > div {
    display: grid;
    gap: 2px;
  }

  .design-modern-command-center .market-work-detail dl div {
    grid-template-columns: 104px minmax(0, 1fr);
  }
}

.design-modern-command-center .market-icon,
.design-modern-command-center .market-browser-icon,
.design-modern-command-center .market-detail-hero .market-icon {
  border-color: rgba(126, 174, 205, 0.28);
  border-radius: 4px;
  background-color: #07101a;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.26);
}

.design-modern-command-center .market-price,
.design-modern-command-center .score-pill,
.design-modern-command-center .level-pill,
.design-modern-command-center .party-meta,
.design-modern-command-center .party-place {
  border-color: rgba(126, 174, 205, 0.13);
  color: #dbe5ea;
  background: rgba(4, 15, 23, 0.74);
}

.design-modern-command-center .rank-row.you,
.design-modern-command-center .guild-row.you {
  background: linear-gradient(90deg, rgba(244, 200, 111, 0.12), rgba(98, 216, 238, 0.035));
}

.design-modern-command-center .guild-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  overflow: hidden;
}

.design-modern-command-center .guild-identity > strong {
  flex: 0 1 auto;
  min-width: 0;
}

.design-modern-command-center .guild-castles {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
}

.design-modern-command-center .guild-castle-badge {
  display: inline-flex;
  height: 20px;
  padding: 0 7px;
  align-items: center;
  justify-content: center;
  border: 1px solid;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 3px 9px rgba(0, 0, 0, 0.22);
}

.design-modern-command-center .guild-castle-dratan {
  border-color: rgba(255, 213, 94, 0.64);
  color: #ffe5a0;
  background: linear-gradient(180deg, rgba(105, 76, 20, 0.92), rgba(38, 27, 8, 0.94));
}

.design-modern-command-center .guild-castle-merac {
  border-color: rgba(255, 102, 108, 0.64);
  color: #ffd3d5;
  background: linear-gradient(180deg, rgba(111, 36, 42, 0.92), rgba(47, 15, 22, 0.94));
}

.design-modern-command-center .rank-number {
  color: var(--modern-gold);
}

.design-modern-command-center .wide-button {
  width: 100%;
  min-height: 36px;
  margin-top: 8px;
}

/* Popovers and dialogs */

.design-modern-command-center .notification-popover,
.design-modern-command-center .market-detail-dialog,
.design-modern-command-center .market-browser-dialog,
.design-modern-command-center .party-dialog,
.design-modern-command-center .profile-avatar-dialog {
  border: 1px solid rgba(126, 174, 205, 0.26);
  border-radius: var(--modern-radius);
  background:
    linear-gradient(180deg, rgba(10, 27, 39, 0.98), rgba(2, 9, 15, 0.99));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(18px);
}

.design-modern-command-center .market-detail-dialog::before,
.design-modern-command-center .market-detail-dialog::after {
  display: none;
}

.design-modern-command-center .market-detail-backdrop,
.design-modern-command-center .market-browser-backdrop,
.design-modern-command-center .party-modal-backdrop,
.design-modern-command-center .profile-avatar-backdrop {
  background: rgba(0, 4, 8, 0.82);
  backdrop-filter: blur(6px);
}

.design-modern-command-center .market-detail-head,
.design-modern-command-center .market-browser-head,
.design-modern-command-center .party-dialog-head,
.design-modern-command-center .notification-head,
.design-modern-command-center .profile-avatar-dialog-head {
  border-bottom-color: rgba(126, 174, 205, 0.14);
  background: rgba(10, 26, 37, 0.52);
}

.design-modern-command-center .market-detail-section {
  border-top-color: rgba(126, 174, 205, 0.14);
}

.design-modern-command-center .market-detail-pair,
.design-modern-command-center .market-detail-option,
.design-modern-command-center .market-detail-slot,
.design-modern-command-center .market-browser-row,
.design-modern-command-center .notification-item,
.design-modern-command-center .party-field input,
.design-modern-command-center .party-field select,
.design-modern-command-center .party-field textarea {
  border-color: rgba(126, 174, 205, 0.14);
  border-radius: 5px;
  background: rgba(3, 13, 20, 0.72);
  box-shadow: none;
}

.design-modern-command-center .market-browser-row:hover,
.design-modern-command-center .market-browser-row:focus-visible {
  border-color: rgba(98, 216, 238, 0.32);
  background: rgba(13, 34, 46, 0.82);
}

.design-modern-command-center.profile-avatar-modal-open {
  overflow: hidden;
}

.design-modern-command-center .profile-avatar-modal {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  padding: 20px;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.design-modern-command-center .profile-avatar-modal.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.design-modern-command-center .profile-avatar-backdrop {
  position: absolute;
  inset: 0;
}

.design-modern-command-center .profile-avatar-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(720px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  flex-direction: column;
  overflow: hidden;
  transform: translateY(10px) scale(0.99);
  transition: transform 180ms ease;
}

.design-modern-command-center .profile-avatar-modal.open .profile-avatar-dialog {
  transform: translateY(0) scale(1);
}

.design-modern-command-center .profile-avatar-dialog-head {
  display: flex;
  min-height: 68px;
  padding: 13px 15px 12px 18px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(126, 174, 205, 0.14);
}

.design-modern-command-center .profile-avatar-dialog-head > div {
  min-width: 0;
}

.design-modern-command-center .profile-avatar-dialog-head span {
  display: block;
  margin-bottom: 2px;
  color: var(--modern-cyan);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.design-modern-command-center .profile-avatar-dialog-head h2 {
  margin: 0;
  overflow: hidden;
  color: var(--modern-text);
  font-size: 19px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.design-modern-command-center .profile-avatar-close {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  padding: 0 0 2px;
  place-items: center;
  border: 1px solid rgba(126, 174, 205, 0.22);
  border-radius: 50%;
  color: var(--modern-text-soft);
  font: 400 24px/1 Arial, sans-serif;
  background: rgba(4, 15, 23, 0.74);
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease, transform 150ms ease;
}

.design-modern-command-center .profile-avatar-close:hover,
.design-modern-command-center .profile-avatar-close:focus-visible {
  border-color: rgba(98, 216, 238, 0.5);
  color: #ffffff;
  background: rgba(15, 45, 58, 0.9);
  outline: none;
  transform: rotate(4deg);
}

.design-modern-command-center .profile-avatar-dialog-body {
  display: grid;
  min-height: 0;
  padding: 22px;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  overflow-y: auto;
}

.design-modern-command-center .profile-avatar-preview-column,
.design-modern-command-center .profile-avatar-editor-column {
  min-width: 0;
}

.design-modern-command-center .profile-avatar-preview-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.design-modern-command-center .profile-avatar-preview-stage {
  display: grid;
  width: 236px;
  height: 236px;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(98, 216, 238, 0.11), transparent 66%);
}

.design-modern-command-center .profile-avatar-preview-frame {
  width: 214px;
  height: 214px;
  padding: 5px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 50%;
  background:
    linear-gradient(#06131d, #06131d) padding-box,
    linear-gradient(145deg, rgba(98, 216, 238, 0.88), rgba(244, 200, 111, 0.76) 52%, rgba(98, 216, 238, 0.3)) border-box;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.42), 0 0 34px rgba(98, 216, 238, 0.14);
}

.design-modern-command-center .profile-avatar-preview-frame img,
.design-modern-command-center .profile-avatar-preview-frame canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.design-modern-command-center .profile-avatar-preview-frame [hidden] {
  display: none;
}

.design-modern-command-center .profile-avatar-file-name {
  display: block;
  width: 100%;
  margin-top: 12px;
  overflow: hidden;
  color: var(--modern-text-muted);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.design-modern-command-center .profile-avatar-editor-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.design-modern-command-center .profile-avatar-file-button {
  display: inline-flex;
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(98, 216, 238, 0.32);
  border-radius: 6px;
  color: #d8f8fc;
  font-size: 12px;
  font-weight: 900;
  background: rgba(8, 36, 49, 0.82);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.design-modern-command-center .profile-avatar-file-button:hover,
.design-modern-command-center .profile-avatar-file-button:focus-visible {
  border-color: rgba(98, 216, 238, 0.62);
  background: rgba(12, 48, 63, 0.94);
  outline: none;
  transform: translateY(-1px);
}

.design-modern-command-center .profile-avatar-file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.design-modern-command-center .profile-avatar-file-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.design-modern-command-center .profile-avatar-controls {
  display: grid;
  margin: 14px 0 0;
  padding: 0;
  border: 0;
  gap: 0;
}

.design-modern-command-center .profile-avatar-controls label {
  display: grid;
  min-height: 62px;
  padding: 10px 0;
  align-content: center;
  border-top: 1px solid rgba(126, 174, 205, 0.12);
}

.design-modern-command-center .profile-avatar-controls label > span {
  display: flex;
  margin-bottom: 8px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.design-modern-command-center .profile-avatar-controls strong {
  color: var(--modern-text-soft);
  font-size: 11px;
}

.design-modern-command-center .profile-avatar-controls output {
  min-width: 42px;
  color: var(--modern-cyan);
  font-size: 10px;
  font-weight: 900;
  text-align: right;
}

.design-modern-command-center .profile-avatar-controls input[type="range"] {
  width: 100%;
  height: 4px;
  margin: 0;
  accent-color: var(--modern-cyan);
  cursor: pointer;
}

.design-modern-command-center .profile-avatar-controls:disabled {
  opacity: 0.42;
}

.design-modern-command-center .profile-avatar-error {
  margin: 12px 0 0;
  padding: 9px 10px;
  border-left: 2px solid #e47d70;
  color: #ffd1ca;
  font-size: 11px;
  font-weight: 700;
  background: rgba(66, 20, 20, 0.32);
}

.design-modern-command-center .profile-avatar-dialog-actions {
  display: grid;
  min-height: 66px;
  padding: 12px 16px;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(126, 174, 205, 0.14);
  background: rgba(3, 12, 19, 0.72);
}

.design-modern-command-center .profile-avatar-dialog-actions button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.design-modern-command-center .profile-avatar-remove {
  border: 1px solid rgba(224, 113, 100, 0.32);
  color: #f0aaa1;
  background: rgba(57, 18, 19, 0.38);
}

.design-modern-command-center .profile-avatar-cancel {
  border: 1px solid rgba(126, 174, 205, 0.2);
  color: var(--modern-text-soft);
  background: rgba(8, 24, 34, 0.76);
}

.design-modern-command-center .profile-avatar-save {
  border: 1px solid rgba(244, 200, 111, 0.68);
  color: #241600;
  background: linear-gradient(180deg, #ffe09a, #d8a43d);
  box-shadow: 0 8px 20px rgba(197, 139, 38, 0.18);
}

.design-modern-command-center .profile-avatar-dialog-actions button:hover:not(:disabled),
.design-modern-command-center .profile-avatar-dialog-actions button:focus-visible:not(:disabled) {
  filter: brightness(1.08);
  outline: none;
  transform: translateY(-1px);
}

.design-modern-command-center .profile-avatar-dialog-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

/* Footer */

.design-modern-command-center .footer {
  min-height: 70px;
  margin-top: 18px;
  padding: 16px 8px;
  border-top-color: rgba(126, 174, 205, 0.14);
}

.design-modern-command-center .socials a {
  border-color: rgba(126, 174, 205, 0.18);
  background: rgba(4, 15, 23, 0.72);
}

/* Medium desktop */

@media (max-width: 1540px) {
  .design-modern-command-center .app-shell {
    width: min(1510px, calc(100% - 24px));
  }

  .design-modern-command-center .topbar {
    grid-template-columns: 218px minmax(0, 1fr) 392px;
    gap: 10px;
  }

  .design-modern-command-center .brand-art {
    width: 205px;
  }

  .design-modern-command-center .top-nav .nav-tab {
    padding-right: 3px;
    padding-left: 3px;
  }

  .design-modern-command-center .top-nav .nav-tab span {
    font-size: 11px;
  }

  .design-modern-command-center .dashboard {
    grid-template-columns: 270px minmax(610px, 1fr) minmax(350px, 398px);
    gap: 12px;
  }

  .design-modern-command-center .main-stack,
  .design-modern-command-center .right-stack,
  .design-modern-command-center .content-grid {
    gap: 12px;
  }

  .design-modern-command-center .hero-copy {
    padding-right: 34px;
    padding-left: 34px;
  }

  .design-modern-command-center .hero h1 {
    font-size: 38px;
  }
}

@media (min-width: 1361px) {
  .design-modern-command-center .event-grid {
    grid-auto-rows: minmax(0, 1fr);
  }

  .design-modern-command-center .event-card {
    grid-template-columns: 50px minmax(0, 1fr);
    height: auto;
    padding: 9px;
  }

  .design-modern-command-center .event-card > img {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 1360px) {
  .design-modern-command-center .topbar {
    grid-template-columns: 214px 46px minmax(0, 1fr);
  }

  .design-modern-command-center .mobile-menu {
    border-color: rgba(126, 174, 205, 0.24);
    border-radius: 5px;
    background: rgba(4, 17, 26, 0.82);
  }

  .design-modern-command-center .mobile-nav-drawer {
    margin-top: -2px;
    border-color: var(--modern-line);
    border-radius: var(--modern-radius);
    background: rgba(3, 12, 19, 0.97);
  }

  .design-modern-command-center .drawer-tab {
    border-color: rgba(126, 174, 205, 0.13);
    border-radius: 5px;
    clip-path: none;
    background: rgba(7, 23, 34, 0.76);
  }

  .design-modern-command-center .dashboard {
    grid-template-columns: minmax(260px, 310px) minmax(0, 1fr);
  }

  .design-modern-command-center .profile-window {
    position: static;
    max-height: none;
  }

  .design-modern-command-center .right-stack {
    gap: 12px;
  }

  .design-modern-command-center .event-grid {
    height: auto;
    min-height: 336px;
  }
}

/* Mobile and tablet */

@media (max-width: 920px) {
  .design-modern-command-center .account-menu-popover {
    display: none;
  }

  .design-modern-command-center {
    background:
      linear-gradient(180deg, rgba(3, 8, 14, 0.3), rgba(3, 8, 14, 0.94) 62%, #020509 100%),
      url("/assets/hero-launch-v2.png") 65% top / auto 100vh scroll no-repeat,
      var(--modern-bg);
  }

  .design-modern-command-center .aether-canvas {
    opacity: 0.2;
  }

  .design-modern-command-center .app-shell {
    width: 100%;
    margin: 0;
    padding: 0 12px 92px;
  }

  .design-modern-command-center .topbar {
    grid-template-columns: minmax(0, 1fr) 44px 42px;
    gap: 7px;
    min-height: 62px;
    margin: 0 -12px;
    padding: 5px 12px;
    border-radius: 0;
  }

  .design-modern-command-center .brand,
  .design-modern-command-center .brand-art {
    height: 50px;
  }

  .design-modern-command-center .brand-art {
    width: min(188px, 100%);
  }

  .design-modern-command-center .currency-chip {
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
  }

  .design-modern-command-center .server-strip {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 8px;
    min-height: 74px;
    margin: 8px 0 10px;
    padding: 7px;
  }

  .design-modern-command-center .server-state {
    padding: 0 5px;
  }

  .design-modern-command-center .ticker-window {
    grid-column: 1 / -1;
    min-height: 22px;
    order: 3;
  }

  .design-modern-command-center .patch-button {
    width: auto;
    min-width: 98px;
    padding: 0 10px;
  }

  .design-modern-command-center .mobile-nav-drawer.open {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: -2px 0 8px;
    padding: 7px;
  }

  .design-modern-command-center .mobile-nav-drawer .drawer-tab {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 34px 18px;
    gap: 1px;
    height: 64px;
    padding: 5px;
    text-align: center;
  }

  .design-modern-command-center .mobile-nav-drawer .drawer-tab img {
    justify-self: center;
    width: 30px;
    height: 30px;
  }

  .design-modern-command-center .mobile-nav-drawer .drawer-tab span {
    font-size: 10px;
  }

  .design-modern-command-center .dashboard,
  .design-modern-command-center .content-grid,
  .design-modern-command-center .right-stack {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .design-modern-command-center .content-grid {
    grid-template-areas:
      "chat"
      "mission"
      "market"
      "feed";
  }

  .design-modern-command-center .main-stack,
  .design-modern-command-center .right-stack {
    gap: 10px;
  }

  .design-modern-command-center .hero {
    height: 424px;
    min-height: 424px;
  }

  .design-modern-command-center .hero-art {
    object-position: 67% top;
    filter: saturate(0.9) contrast(1.06) brightness(0.78);
  }

  .design-modern-command-center .hero-motion-canvas {
    filter: saturate(0.9) contrast(1.06) brightness(0.78);
  }

  .design-modern-command-center .hero-shade {
    background:
      linear-gradient(180deg, rgba(2, 7, 12, 0.56), rgba(2, 8, 14, 0.34) 46%, rgba(2, 7, 12, 0.86)),
      linear-gradient(90deg, rgba(2, 7, 12, 0.68), rgba(2, 7, 12, 0.08));
  }

  .design-modern-command-center .hero-copy {
    width: 100%;
    min-height: 100%;
    padding: 28px 20px 56px;
    align-content: start;
  }

  .design-modern-command-center .hero h1 {
    max-width: 330px;
    font-size: 31px;
    line-height: 1.18;
  }

  .design-modern-command-center .hero-copy > p:not(.hero-kicker) {
    max-width: 330px;
    font-size: 14px;
  }

  .design-modern-command-center .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .design-modern-command-center .primary-action,
  .design-modern-command-center .secondary-action {
    min-width: 0;
    height: 44px;
    padding: 0 10px;
  }

  .design-modern-command-center .primary-action img,
  .design-modern-command-center .secondary-action img {
    width: 22px;
    height: 22px;
  }

  .design-modern-command-center .hero-dots {
    left: 20px;
    bottom: 16px;
  }

  .design-modern-command-center .panel,
  .design-modern-command-center .profile-window {
    padding: 10px;
  }

  .design-modern-command-center .chat-panel {
    height: min(620px, calc(100svh - 126px));
    min-height: 500px;
  }

  .design-modern-command-center .event-grid {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 248px;
    gap: 0;
    min-height: 0;
    height: 118px;
    padding: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
  }

  .design-modern-command-center .event-card {
    grid-template-columns: 48px minmax(0, 1fr);
    height: 104px;
    padding: 8px 10px;
    border-right: 1px solid rgba(126, 174, 205, 0.11);
    border-bottom: 0;
    scroll-snap-align: start;
  }

  .design-modern-command-center .event-card > img {
    width: 48px;
    height: 48px;
  }

  .design-modern-command-center .event-card strong {
    font-size: 15px;
  }

  .design-modern-command-center .profile-window {
    order: 2;
  }

  .design-modern-command-center .right-stack {
    order: 3;
  }

  .design-modern-command-center .footer {
    gap: 12px;
    margin-top: 12px;
    padding-bottom: 18px;
  }

  .design-modern-command-center .mobile-bottom {
    position: fixed;
    z-index: 50;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    padding: 5px 8px calc(5px + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid rgba(126, 174, 205, 0.2);
    border-radius: 0;
    background: rgba(3, 11, 18, 0.97);
    box-shadow: 0 -12px 28px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(18px);
  }

  .design-modern-command-center .mobile-bottom button {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    min-width: 0;
    height: 58px;
    padding: 2px;
    overflow: hidden;
    border: 0;
    border-right: 1px solid rgba(126, 174, 205, 0.08);
    border-radius: 0;
    color: #aebec8;
    font-size: 10px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: transparent;
  }

  .design-modern-command-center .mobile-bottom button:last-child {
    border-right: 0;
  }

  .design-modern-command-center .mobile-bottom button::before {
    content: "";
    display: block;
    width: 22px;
    height: 22px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    filter: saturate(0.72) brightness(0.98);
  }

  .design-modern-command-center .mobile-bottom [data-action="mobile-home"]::before {
    background-image: url("/assets/icons-modern/house.svg");
  }

  .design-modern-command-center .mobile-bottom [data-action="mobile-chat"]::before {
    background-image: url("/assets/icons-modern/messages-square.svg");
  }

  .design-modern-command-center .mobile-bottom [data-action="mobile-download"]::before {
    background-image: url("/assets/icons-modern/download.svg");
  }

  .design-modern-command-center .mobile-bottom [data-action="mobile-profile"]::before {
    border-radius: 0;
    background-image: url("/assets/icons-modern/user-round.svg");
  }

  .design-modern-command-center .mobile-bottom [data-action="mobile-more"]::before {
    background-image: url("/assets/icons-modern/ellipsis.svg");
  }

  .design-modern-command-center .mobile-bottom .download-tab {
    color: var(--modern-gold);
    background: linear-gradient(180deg, rgba(244, 200, 111, 0.11), transparent);
  }

  .design-modern-command-center .mobile-bottom .download-tab::before {
    filter: saturate(1.08) brightness(1.12) drop-shadow(0 0 7px rgba(244, 200, 111, 0.22));
  }

  .design-modern-command-center .notification-popover {
    top: 66px;
    right: 10px;
    left: 10px;
  }
}

@media (max-width: 720px) {
  .design-modern-command-center .profile-avatar-modal {
    padding: 8px;
  }

  .design-modern-command-center .profile-avatar-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }

  .design-modern-command-center .profile-avatar-dialog-body {
    padding: 16px;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .design-modern-command-center .profile-avatar-preview-stage {
    width: 194px;
    height: 194px;
  }

  .design-modern-command-center .profile-avatar-preview-frame {
    width: 176px;
    height: 176px;
  }

  .design-modern-command-center .profile-avatar-dialog-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .design-modern-command-center .profile-avatar-dialog-actions > span {
    display: none;
  }

  .design-modern-command-center .profile-avatar-remove {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 560px) {
  .design-modern-command-center .app-shell {
    width: 100%;
    margin: 0;
    padding-right: 10px;
    padding-left: 10px;
  }

  .design-modern-command-center .topbar {
    grid-template-columns: minmax(0, 1fr) 42px 40px;
    margin-right: -10px;
    margin-left: -10px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .design-modern-command-center .brand-art {
    width: min(172px, 100%);
  }

  .design-modern-command-center .mobile-nav-drawer.open {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .design-modern-command-center .hero {
    height: 420px;
    min-height: 420px;
  }

  .design-modern-command-center .hero-copy {
    padding: 24px 16px 52px;
  }

  .design-modern-command-center .hero h1 {
    max-width: 300px;
    font-size: 28px;
  }

  .design-modern-command-center .hero-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .design-modern-command-center .primary-action,
  .design-modern-command-center .secondary-action {
    width: 100%;
  }

  .design-modern-command-center .profile-portrait {
    min-height: 224px;
  }

  .design-modern-command-center .profile-core-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .design-modern-command-center .profile-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .design-modern-command-center .tab-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
  }

  .design-modern-command-center .chat-tab-combo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 26px;
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .design-modern-command-center .chat-tab-combo .whisper-tab {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .design-modern-command-center .chat-tab-combo .chat-tab-close {
    width: 26px;
    min-width: 26px;
    padding: 0;
  }

  .design-modern-command-center .tab-row button {
    border-right: 0;
    border-radius: 3px;
  }

  .design-modern-command-center .chat-list {
    padding: 12px 8px;
  }

  .design-modern-command-center .chat-body {
    max-width: calc(100vw - 96px);
  }

  .design-modern-command-center .mission-row {
    padding: 10px 8px;
  }

  .design-modern-command-center .market-detail-dialog,
  .design-modern-command-center .market-browser-dialog,
  .design-modern-command-center .party-dialog {
    border-radius: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .design-modern-command-center .ticker-track,
  .design-modern-command-center .state-pulse,
  .design-modern-command-center .hero-energy {
    animation: none;
  }

  .design-modern-command-center .hero-motion-canvas {
    display: none;
  }
}

/* Community World R4: interactive Companion sanctuary and living presence. */
.design-modern-command-center .companion-hatch-layout {
  display: grid;
  grid-template-columns: minmax(520px, 1.18fr) minmax(390px, 0.82fr);
  gap: 16px;
  min-height: 650px;
}

.design-modern-command-center .companion-hatch-stage,
.design-modern-command-center .companion-play-stage {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(99, 216, 235, 0.3);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(1, 14, 22, 0.04), rgba(1, 11, 18, 0.72)),
    var(--companion-habitat) center / cover no-repeat,
    #03141d;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.42),
    inset 0 1px rgba(255, 255, 255, 0.04);
}

.design-modern-command-center .companion-hatch-stage {
  display: grid;
  min-height: 650px;
  place-items: center;
}

.design-modern-command-center .companion-hatch-aura,
.design-modern-command-center .companion-stage-light {
  position: absolute;
  inset: 12% 8% 5%;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 62%, rgba(80, 231, 242, 0.3), transparent 25%),
    radial-gradient(circle at 50% 48%, rgba(226, 185, 100, 0.18), transparent 43%);
  filter: blur(12px);
  animation: companion-sanctuary-light 4.6s ease-in-out infinite;
}

.design-modern-command-center .companion-egg {
  position: relative;
  z-index: 2;
  width: min(56%, 410px);
  max-height: 64%;
  object-fit: contain;
  filter:
    drop-shadow(0 22px 28px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 27px rgba(73, 221, 241, 0.42));
  animation: companion-egg-idle 3.7s ease-in-out infinite;
}

.design-modern-command-center .companion-hatch-stage-copy {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 24px;
  left: 24px;
  border-top: 1px solid rgba(113, 220, 238, 0.18);
  padding-top: 16px;
  text-shadow: 0 2px 18px #000;
}

.design-modern-command-center .companion-hatch-stage-copy span,
.design-modern-command-center .companion-section-kicker {
  color: #72e1f1;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.design-modern-command-center .companion-hatch-stage-copy strong,
.design-modern-command-center .companion-hatch-stage-copy small {
  display: block;
}

.design-modern-command-center .companion-hatch-stage-copy strong {
  margin-top: 4px;
  color: #f7fbfc;
  font-size: 22px;
}

.design-modern-command-center .companion-hatch-stage-copy small {
  margin-top: 3px;
  color: #a7bec6;
  font-size: 14px;
}

.design-modern-command-center .companion-hatch-panel {
  align-self: stretch;
  border: 1px solid rgba(91, 197, 216, 0.22);
  border-radius: 14px;
  background:
    radial-gradient(circle at 80% 8%, rgba(225, 181, 88, 0.12), transparent 28%),
    linear-gradient(155deg, rgba(8, 37, 48, 0.98), rgba(2, 16, 24, 0.99));
  padding: 34px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

.design-modern-command-center .companion-hatch-panel h3 {
  margin: 8px 0 7px;
  color: #f5fafb;
  font-size: clamp(27px, 2.7vw, 39px);
  line-height: 1.2;
}

.design-modern-command-center .companion-hatch-panel > p {
  margin: 0;
  color: #9db4bc;
  font-size: 15px;
  line-height: 1.7;
}

.design-modern-command-center .companion-hatch-form {
  display: grid;
  gap: 11px;
  margin-top: 26px;
}

.design-modern-command-center .companion-hatch-form label > span {
  display: block;
  margin-bottom: 6px;
  color: #a5bdc5;
  font-size: 13px;
  font-weight: 700;
}

.design-modern-command-center .companion-hatch-form input {
  min-height: 46px;
  font-size: 15px;
}

.design-modern-command-center .companion-hatch-form button {
  min-height: 48px;
  border-color: rgba(235, 193, 103, 0.52);
  background: linear-gradient(135deg, #8a611d, #d09a38);
  color: #101114;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(151, 102, 22, 0.24);
}

.design-modern-command-center .companion-hatch-possibilities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 22px;
}

.design-modern-command-center .companion-hatch-possibilities article {
  display: grid;
  min-width: 0;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(91, 196, 216, 0.17);
  border-radius: 9px;
  background: rgba(2, 17, 25, 0.64);
  padding: 7px;
}

.design-modern-command-center .companion-hatch-possibilities img {
  width: 54px;
  height: 54px;
  border-radius: 7px;
  object-fit: cover;
}

.design-modern-command-center .companion-hatch-possibilities strong,
.design-modern-command-center .companion-hatch-possibilities span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.design-modern-command-center .companion-hatch-possibilities strong {
  color: #e8f5f7;
  font-size: 14px;
}

.design-modern-command-center .companion-hatch-possibilities span {
  margin-top: 2px;
  color: #79969f;
  font-size: 12px;
}

.design-modern-command-center .companion-hatch-promise {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border-top: 1px solid rgba(90, 185, 203, 0.13);
  color: #819da6;
  margin-top: 22px;
  padding-top: 16px;
  font-size: 13px;
  line-height: 1.55;
}

.design-modern-command-center .companion-hatch-promise .ui-glyph {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  background-color: #6cdaeb;
}

.design-modern-command-center .companion-home-layout {
  display: grid;
  grid-template-columns: minmax(520px, 1.12fr) minmax(430px, 0.88fr);
  grid-template-rows: auto auto;
  gap: 14px;
}

.design-modern-command-center .companion-play-stage {
  grid-row: 1 / 3;
  min-height: 710px;
}

.design-modern-command-center .companion-pixel-viewport {
  position: absolute;
  z-index: 2;
  inset: 3% 3% 9%;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.design-modern-command-center .companion-pixel-sprite,
.design-modern-command-center .companion-character-fallback {
  grid-area: 1 / 1;
  height: 100%;
  max-width: 100%;
  aspect-ratio: 544 / 800;
}

.design-modern-command-center .companion-pixel-sprite {
  background-position: 0 0;
  background-repeat: no-repeat;
  opacity: 1;
  image-rendering: auto;
  filter:
    drop-shadow(0 28px 28px rgba(0, 0, 0, 0.62))
    drop-shadow(0 0 18px rgba(69, 211, 234, 0.18));
  transition: none;
  will-change: background-position;
}

.design-modern-command-center .companion-pixel-sprite[data-sprite-state="ready"] {
  opacity: 1;
}

.design-modern-command-center .companion-pixel-sprite[hidden],
.design-modern-command-center .companion-character-fallback[hidden] {
  display: none !important;
}

.design-modern-command-center .companion-character-fallback {
  width: 100%;
  object-fit: contain;
  object-position: center;
  filter:
    drop-shadow(0 28px 28px rgba(0, 0, 0, 0.6))
    drop-shadow(0 0 18px rgba(69, 211, 234, 0.14));
}

.design-modern-command-center .companion-play-identity {
  position: absolute;
  z-index: 4;
  top: 24px;
  right: 24px;
  bottom: auto;
  left: 24px;
  text-shadow: 0 2px 22px #000, 0 1px 4px #000;
}

.design-modern-command-center .companion-play-identity span {
  color: #75e1f2;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.design-modern-command-center .companion-play-stage.gold .companion-play-identity span {
  color: #f1cd7f;
}

.design-modern-command-center .companion-play-identity h3 {
  margin: 4px 0 2px;
  color: #fff;
  font-size: clamp(32px, 4vw, 48px);
}

.design-modern-command-center .companion-play-identity p {
  margin: 0;
  color: #c0d2d8;
  font-size: 15px;
  font-weight: 700;
}

.design-modern-command-center .companion-reaction-callout {
  position: absolute;
  z-index: 5;
  top: 17%;
  right: 10%;
  display: flex;
  max-width: 260px;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(126, 229, 241, 0.36);
  border-radius: 12px;
  background: rgba(3, 23, 32, 0.9);
  color: #e5f8fa;
  padding: 11px 13px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  animation: companion-reaction-callout var(--companion-reaction-duration, 3200ms) ease both;
  backdrop-filter: blur(10px);
}

.design-modern-command-center .companion-reaction-callout .ui-glyph {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  background-color: #f0ca76;
}

.design-modern-command-center .companion-care-card {
  border: 1px solid rgba(90, 199, 218, 0.22);
  border-radius: 12px;
  background:
    radial-gradient(circle at 100% 0, rgba(228, 180, 79, 0.1), transparent 31%),
    linear-gradient(155deg, rgba(8, 37, 48, 0.97), rgba(2, 17, 25, 0.98));
  padding: 20px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.03);
}

.design-modern-command-center .companion-wallet-chip {
  min-width: 105px;
  border: 1px solid rgba(232, 190, 99, 0.26);
  border-radius: 8px;
  background: rgba(75, 54, 17, 0.28);
  padding: 8px 10px;
  text-align: right;
}

.design-modern-command-center .companion-wallet-chip small,
.design-modern-command-center .companion-wallet-chip strong {
  display: block;
}

.design-modern-command-center .companion-wallet-chip small {
  color: #c1a873;
  font-size: 13px;
}

.design-modern-command-center .companion-wallet-chip strong {
  margin-top: 1px;
  color: #f0d18c;
  font-size: 16px;
}

.design-modern-command-center .companion-bond-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #aac0c6;
  margin-top: 17px;
  font-size: 14px;
}

.design-modern-command-center .companion-bond-row strong {
  color: #dcecef;
}

.design-modern-command-center .companion-care-card > p {
  margin: 0 0 16px;
  color: #a8bdc3;
  font-size: 14px;
}

.design-modern-command-center .companion-care-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.design-modern-command-center .companion-care-action {
  position: relative;
  display: grid;
  min-height: 106px;
  grid-template-columns: 37px minmax(0, 1fr);
  align-content: center;
  align-items: center;
  gap: 1px 10px;
  border: 1px solid rgba(91, 202, 221, 0.22);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(11, 53, 65, 0.8), rgba(3, 25, 34, 0.92));
  color: inherit;
  padding: 13px;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.design-modern-command-center .companion-care-action.paid {
  border-color: rgba(229, 184, 90, 0.27);
  background: linear-gradient(145deg, rgba(76, 57, 23, 0.52), rgba(10, 31, 36, 0.94));
}

.design-modern-command-center .companion-care-action:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(105, 224, 241, 0.5);
}

.design-modern-command-center .companion-care-action > span {
  grid-row: 1 / 3;
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border-radius: 9px;
  background: rgba(30, 111, 127, 0.46);
}

.design-modern-command-center .companion-care-action.paid > span {
  background: rgba(126, 88, 24, 0.42);
}

.design-modern-command-center .companion-care-action .ui-glyph {
  width: 18px;
  height: 18px;
  background-color: #75e0f0;
}

.design-modern-command-center .companion-care-action.paid .ui-glyph {
  background-color: #efc770;
}

.design-modern-command-center .companion-care-action strong {
  color: #eef8fa;
  font-size: 15px;
}

.design-modern-command-center .companion-care-action small {
  color: #9eb4bb;
  font-size: 13px;
}

.design-modern-command-center .companion-care-action em {
  position: absolute;
  right: 8px;
  bottom: 7px;
  color: #91c8b5;
  font-size: 12px;
  font-style: normal;
}

.design-modern-command-center .companion-care-action:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  filter: saturate(0.72);
}

.design-modern-command-center .companion-care-daily {
  border-top: 1px solid rgba(88, 183, 201, 0.14);
  margin-top: 15px;
  padding-top: 13px;
}

.design-modern-command-center .companion-care-daily > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.design-modern-command-center .companion-care-daily span,
.design-modern-command-center .companion-care-daily p {
  color: #9cb2b9;
  font-size: 13px;
}

.design-modern-command-center .companion-care-daily strong {
  color: #e8cc8f;
  font-size: 14px;
}

.design-modern-command-center .companion-care-daily p {
  margin: 5px 0 0;
  line-height: 1.55;
}

@keyframes companion-sanctuary-light {
  0%,
  100% { opacity: 0.72; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.03); }
}

@keyframes companion-egg-idle {
  0%,
  100% { transform: translate3d(0, 3px, 0) rotate(-1.2deg); }
  45% { transform: translate3d(0, -9px, 0) rotate(1.4deg); }
  70% { transform: translate3d(0, -3px, 0) rotate(-0.5deg); }
}

@keyframes companion-reaction-callout {
  0% { opacity: 0; transform: translate3d(0, 10px, 0) scale(0.94); }
  18%,
  78% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  100% { opacity: 0; transform: translate3d(0, -7px, 0) scale(0.98); }
}

@keyframes companion-evolution-light {
  0%,
  100% { opacity: 0.5; transform: scale(0.92); filter: blur(16px); }
  42% { opacity: 1; transform: scale(1.16); filter: blur(7px); }
  72% { opacity: 0.82; transform: scale(1.03); filter: blur(12px); }
}

.design-modern-command-center .companion-play-stage.reaction-evolve .companion-stage-light {
  background:
    radial-gradient(circle at 50% 55%, rgba(242, 205, 111, 0.52), transparent 26%),
    radial-gradient(circle at 50% 48%, rgba(92, 231, 246, 0.44), transparent 50%);
  animation: companion-evolution-light var(--companion-reaction-duration, 4200ms) cubic-bezier(0.2, 0.78, 0.28, 1) both;
}

@media (max-width: 1100px) {
  .design-modern-command-center .companion-hatch-layout,
  .design-modern-command-center .companion-home-layout {
    grid-template-columns: 1fr;
  }

  .design-modern-command-center .companion-hatch-stage {
    min-height: 500px;
  }

  .design-modern-command-center .companion-play-stage {
    grid-row: auto;
    min-height: 560px;
  }

  .design-modern-command-center .companion-play-identity {
    top: auto;
    bottom: 22px;
  }

  .design-modern-command-center .companion-hatch-panel {
    padding: 26px;
  }
}

@media (max-width: 760px) {
  .design-modern-command-center .companion-hatch-layout {
    min-height: 0;
  }

  .design-modern-command-center .companion-hatch-stage {
    min-height: 400px;
  }

  .design-modern-command-center .companion-egg {
    width: min(65%, 320px);
  }

  .design-modern-command-center .companion-hatch-panel {
    padding: 20px;
  }

  .design-modern-command-center .companion-play-stage {
    min-height: 480px;
  }

  .design-modern-command-center .companion-pixel-viewport {
    inset: 2% 1% 9%;
  }

  .design-modern-command-center .companion-care-card,
  .design-modern-command-center .companion-moments-card {
    padding: 16px;
  }
}

@media (max-width: 430px) {
  .design-modern-command-center .community-world-tabs {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }

  .design-modern-command-center .community-world-tabs button {
    flex: 0 0 112px;
    font-size: 13px;
  }

  .design-modern-command-center .companion-hatch-stage {
    min-height: 340px;
  }

  .design-modern-command-center .companion-hatch-stage-copy {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }

  .design-modern-command-center .companion-hatch-stage-copy strong {
    font-size: 18px;
  }

  .design-modern-command-center .companion-hatch-possibilities {
    grid-template-columns: 1fr;
  }

  .design-modern-command-center .companion-play-stage {
    min-height: 410px;
  }

  .design-modern-command-center .companion-play-identity {
    right: 17px;
    bottom: 16px;
    left: 17px;
  }

  .design-modern-command-center .companion-play-identity h3 {
    font-size: 31px;
  }

  .design-modern-command-center .companion-reaction-callout {
    top: 12%;
    right: 6%;
    left: 6%;
    max-width: none;
  }

  .design-modern-command-center .companion-care-grid {
    grid-template-columns: 1fr;
  }

  .design-modern-command-center .companion-care-action {
    min-height: 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .design-modern-command-center .community-presence-spirit,
  .design-modern-command-center .companion-hatch-aura,
  .design-modern-command-center .companion-stage-light,
  .design-modern-command-center .companion-egg,
  .design-modern-command-center .companion-reaction-callout {
    animation: none !important;
  }

  .design-modern-command-center .companion-pixel-sprite {
    transition: none;
  }

  .design-modern-command-center .companion-care-action {
    transition: none;
  }
}

/* Reborn Journey — Web Points Earn R2 dry-run + economy guard */

.design-modern-command-center .mission-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 18px;
  border-color: rgba(123, 220, 229, 0.24);
  background:
    radial-gradient(circle at 88% -8%, rgba(74, 205, 222, 0.17), transparent 34%),
    radial-gradient(circle at 4% 118%, rgba(232, 184, 91, 0.14), transparent 38%),
    linear-gradient(145deg, rgba(8, 25, 35, 0.97), rgba(3, 12, 20, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 24px 58px rgba(0, 0, 0, 0.28);
}

.design-modern-command-center .mission-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(124, 229, 235, 0.05), transparent)
      0 0 / 200% 1px no-repeat,
    repeating-linear-gradient(
      118deg,
      transparent 0 38px,
      rgba(255, 255, 255, 0.012) 39px,
      transparent 40px
    );
}

.design-modern-command-center .mission-journey-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.design-modern-command-center .mission-journey-kicker {
  display: block;
  margin-bottom: 4px;
  color: #76dce5;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.design-modern-command-center .mission-journey-head h2 {
  margin: 0;
  color: #f8fbff;
  font-family: var(--font-display);
  font-size: clamp(22px, 1.7vw, 27px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.design-modern-command-center .mission-journey-copy {
  margin: 7px 0 0;
  color: #a9c2d0;
  font-size: 13px;
  line-height: 1.45;
}

.design-modern-command-center .mission-reset-card {
  display: grid;
  flex: 0 0 auto;
  min-width: 112px;
  padding: 9px 12px 10px;
  border: 1px solid rgba(232, 188, 99, 0.25);
  border-radius: 12px;
  text-align: right;
  background:
    linear-gradient(155deg, rgba(35, 34, 27, 0.82), rgba(7, 20, 28, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.design-modern-command-center .mission-reset-card span,
.design-modern-command-center .mission-reset-card small {
  color: #9fb4c0;
  font-size: 13px;
  font-weight: 700;
}

.design-modern-command-center .mission-reset-card strong {
  margin: 2px 0;
  color: #f2cb79;
  font-family: "Roboto Mono", Consolas, monospace;
  font-size: 17px;
  line-height: 1.15;
  letter-spacing: 0.04em;
}

.design-modern-command-center .mission-mode-banner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(104, 214, 224, 0.16);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(33, 111, 126, 0.14), rgba(15, 39, 49, 0.32));
}

.design-modern-command-center .mission-mode-glyph {
  width: 28px;
  height: 28px;
  color: #79dce5;
  filter: drop-shadow(0 0 12px rgba(93, 216, 227, 0.38));
}

.design-modern-command-center .mission-mode-banner div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.design-modern-command-center .mission-mode-banner strong {
  color: #e8f8fa;
  font-size: 14px;
  line-height: 1.25;
}

.design-modern-command-center .mission-mode-banner p {
  margin: 0;
  color: #9db6c2;
  font-size: 13px;
  line-height: 1.35;
}

.design-modern-command-center .mission-economy-card {
  position: relative;
  z-index: 1;
  display: grid;
  margin-bottom: 12px;
  padding: 12px;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  overflow: hidden;
  border: 1px solid rgba(232, 190, 102, 0.2);
  border-radius: 13px;
  background:
    radial-gradient(circle at 0 50%, rgba(92, 213, 225, 0.13), transparent 30%),
    radial-gradient(circle at 100% 0, rgba(235, 190, 94, 0.12), transparent 42%),
    linear-gradient(105deg, rgba(10, 36, 45, 0.88), rgba(25, 25, 23, 0.76));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 14px 30px rgba(0, 0, 0, 0.12);
}

.design-modern-command-center .mission-economy-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(246, 213, 139, 0.07), transparent)
      -120% 0 / 60% 100% no-repeat;
  animation: mission-economy-sheen 8s ease-in-out infinite;
}

.design-modern-command-center .mission-economy-orb {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(119, 222, 230, 0.28);
  border-radius: 15px;
  background:
    conic-gradient(
      from 210deg,
      rgba(67, 196, 216, 0.35),
      rgba(235, 191, 97, 0.45),
      rgba(84, 209, 221, 0.34)
    );
  box-shadow:
    0 0 26px rgba(69, 199, 216, 0.14),
    inset 0 0 0 7px rgba(4, 21, 29, 0.72);
}

.design-modern-command-center .mission-economy-orb::before,
.design-modern-command-center .mission-economy-orb::after,
.design-modern-command-center .mission-economy-orb i {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.design-modern-command-center .mission-economy-orb::before {
  inset: 10px;
  border: 1px solid rgba(242, 210, 137, 0.48);
}

.design-modern-command-center .mission-economy-orb::after {
  inset: 17px;
  background: #f2cd7b;
  box-shadow: 0 0 13px rgba(242, 205, 123, 0.85);
}

.design-modern-command-center .mission-economy-orb i {
  inset: 6px 20px;
  border-radius: 999px;
  background: rgba(112, 222, 230, 0.38);
  transform: rotate(45deg);
}

.design-modern-command-center .mission-economy-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.design-modern-command-center .mission-economy-copy > span {
  color: #77dce5;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.design-modern-command-center .mission-economy-copy strong {
  color: #f3f8fa;
  font-size: 15px;
  line-height: 1.35;
}

.design-modern-command-center .mission-economy-card p {
  margin: 0;
  color: #a8bec7;
  font-size: 13px;
  line-height: 1.4;
}

.design-modern-command-center .mission-economy-balance {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  padding: 10px 0 0;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  gap: 2px;
  border-top: 1px solid rgba(230, 192, 108, 0.12);
  text-align: left;
}

.design-modern-command-center .mission-economy-balance small {
  grid-column: 1;
  color: #a9a38f;
  font-size: 13px;
  font-weight: 750;
}

.design-modern-command-center .mission-economy-balance > strong {
  grid-column: 1;
  color: #f3cd78;
  font-family: "Roboto Mono", Consolas, monospace;
  font-size: 17px;
  line-height: 1.25;
}

.design-modern-command-center .mission-economy-balance button {
  min-height: 32px;
  min-width: 142px;
  margin: 0;
  padding: 6px 10px;
  grid-column: 2;
  grid-row: 1 / span 2;
  border: 1px solid rgba(230, 193, 108, 0.28);
  border-radius: 8px;
  color: #f4dfad;
  font-size: 13px;
  font-weight: 850;
  background:
    linear-gradient(180deg, rgba(70, 59, 34, 0.86), rgba(34, 31, 24, 0.9));
}

.design-modern-command-center .mission-economy-balance button:hover {
  border-color: rgba(241, 207, 131, 0.5);
  color: #fff1c9;
  background:
    linear-gradient(180deg, rgba(91, 73, 38, 0.92), rgba(45, 39, 25, 0.94));
}

.design-modern-command-center .mission-list {
  position: relative;
  z-index: 1;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.design-modern-command-center .mission-list-inner {
  display: grid;
  gap: 9px;
}

.design-modern-command-center .mission-row {
  position: relative;
  display: grid;
  min-height: 104px;
  padding: 12px;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid rgba(113, 168, 192, 0.14);
  border-radius: 13px;
  background:
    linear-gradient(105deg, rgba(8, 30, 41, 0.84), rgba(4, 15, 24, 0.76));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.design-modern-command-center .mission-row:last-child {
  border-bottom: 1px solid rgba(113, 168, 192, 0.14);
}

.design-modern-command-center .mission-row:hover {
  z-index: 1;
  transform: translateY(-1px);
  border-color: rgba(108, 217, 226, 0.28);
  background:
    linear-gradient(105deg, rgba(10, 38, 50, 0.94), rgba(5, 18, 27, 0.84));
}

.design-modern-command-center .mission-row.mission-completed,
.design-modern-command-center .mission-row.mission-recorded {
  border-color: rgba(97, 221, 174, 0.22);
  background:
    linear-gradient(105deg, rgba(7, 46, 43, 0.74), rgba(4, 18, 25, 0.84));
}

.design-modern-command-center .mission-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(104, 215, 226, 0.17);
  border-radius: 13px;
  background:
    radial-gradient(circle at 45% 35%, rgba(98, 222, 230, 0.22), transparent 62%),
    rgba(4, 22, 31, 0.84);
}

.design-modern-command-center .mission-icon .mission-glyph {
  width: 27px;
  height: 27px;
  color: #79dce5;
  filter: drop-shadow(0 0 9px rgba(88, 211, 223, 0.34));
}

.design-modern-command-center .mission-completed .mission-icon .mission-glyph,
.design-modern-command-center .mission-recorded .mission-icon .mission-glyph {
  color: #69dfa9;
  filter: drop-shadow(0 0 9px rgba(72, 218, 155, 0.34));
}

.design-modern-command-center .mission-text {
  align-self: center;
  gap: 7px;
}

.design-modern-command-center .mission-main strong {
  color: #f5f9fc;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.35;
}

.design-modern-command-center .mission-main span {
  color: #b9ced8;
  font-size: 13px;
  font-weight: 800;
}

.design-modern-command-center .mission-description {
  margin: 0;
  color: #a8bec9;
  font-size: 13px;
  line-height: 1.5;
}

.design-modern-command-center .mission-status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.design-modern-command-center .mission-status-copy {
  overflow: hidden;
  color: #99b2bf;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.design-modern-command-center .mission-completed .mission-status-copy,
.design-modern-command-center .mission-recorded .mission-status-copy {
  color: #7ee2b4;
}

.design-modern-command-center .mission-progress-percent {
  color: #8ca7b4;
  font-size: 13px;
  font-weight: 800;
}

.design-modern-command-center .mission-row .progress-bar {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(112, 163, 183, 0.13);
}

.design-modern-command-center .mission-row .progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #55d7e3, #e6c16e);
  box-shadow: 0 0 10px rgba(93, 217, 227, 0.2);
}

.design-modern-command-center .mission-completed .progress-bar span,
.design-modern-command-center .mission-recorded .progress-bar span {
  background: linear-gradient(90deg, #50d79c, #9ce9bb);
}

.design-modern-command-center .mission-reward-stack {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 120px minmax(0, 1fr);
  align-self: stretch;
  align-content: center;
  gap: 7px;
}

.design-modern-command-center .mission-reward-state {
  display: grid;
  justify-items: center;
  padding: 6px 8px;
  border: 1px solid rgba(226, 184, 91, 0.17);
  border-radius: 9px;
  color: #f0cb7a;
  font-size: 13px;
  line-height: 1.2;
  background: rgba(43, 34, 18, 0.3);
}

.design-modern-command-center .mission-reward-state strong {
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.design-modern-command-center .mission-reward-state small {
  margin-top: 2px;
  color: #a99d80;
  font-size: 13px;
  font-weight: 700;
}

.design-modern-command-center .mission-action {
  min-height: 35px;
  padding: 7px 9px;
  border: 1px solid rgba(120, 177, 199, 0.18);
  border-radius: 8px;
  color: #91a9b4;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  white-space: normal;
  background: rgba(8, 25, 34, 0.78);
}

.design-modern-command-center .mission-action.claimable {
  color: #102019;
  border-color: rgba(118, 229, 177, 0.44);
  background: linear-gradient(180deg, #a1ebc4, #59c995);
  box-shadow: 0 8px 20px rgba(61, 193, 134, 0.16);
}

.design-modern-command-center .mission-action:disabled {
  cursor: default;
  opacity: 0.78;
}

.design-modern-command-center .mission-state-card {
  display: grid;
  min-height: 150px;
  padding: 18px;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(112, 187, 208, 0.17);
  border-radius: 14px;
  background:
    radial-gradient(circle at 8% 50%, rgba(71, 193, 210, 0.12), transparent 30%),
    rgba(3, 16, 24, 0.72);
}

.design-modern-command-center .mission-state-card > div {
  display: grid;
  gap: 5px;
}

.design-modern-command-center .mission-state-card strong {
  color: #eef8fb;
  font-size: 16px;
  line-height: 1.35;
}

.design-modern-command-center .mission-state-card p {
  margin: 0;
  color: #a2bbc6;
  font-size: 14px;
  line-height: 1.5;
}

.design-modern-command-center .mission-state-card button,
.design-modern-command-center .mission-inline-alert button {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(102, 210, 222, 0.28);
  border-radius: 9px;
  color: #dff9fb;
  font-size: 13px;
  font-weight: 850;
  background: linear-gradient(180deg, rgba(35, 99, 112, 0.84), rgba(17, 59, 69, 0.86));
}

.design-modern-command-center .mission-state-sigil {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background:
    conic-gradient(from 210deg, rgba(75, 207, 219, 0.2), rgba(233, 192, 105, 0.18), rgba(75, 207, 219, 0.2));
  box-shadow: 0 0 28px rgba(67, 197, 213, 0.12);
}

.design-modern-command-center .mission-state-glyph {
  width: 28px;
  height: 28px;
  color: #80e0e7;
}

.design-modern-command-center .mission-state-sigil.is-loading {
  border: 2px solid rgba(113, 216, 226, 0.2);
  border-top-color: #76dce5;
  border-radius: 50%;
  background: transparent;
  animation: mission-sigil-spin 900ms linear infinite;
}

.design-modern-command-center .mission-summary-strip {
  display: grid;
  margin-bottom: 9px;
  padding: 10px 12px;
  grid-template-columns: 1fr auto;
  gap: 14px;
  border: 1px solid rgba(103, 176, 199, 0.12);
  border-radius: 11px;
  background: rgba(4, 19, 28, 0.62);
}

.design-modern-command-center .mission-summary-strip > span {
  display: grid;
  gap: 2px;
}

.design-modern-command-center .mission-summary-strip > span:last-child {
  text-align: right;
}

.design-modern-command-center .mission-summary-strip small {
  color: #91abb7;
  font-size: 13px;
  font-weight: 700;
}

.design-modern-command-center .mission-summary-strip strong {
  color: #eaf7fa;
  font-size: 14px;
}

.design-modern-command-center .mission-summary-strip > span:last-child strong {
  color: #efca78;
}

.design-modern-command-center .mission-inline-alert {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
  padding: 10px 12px;
  border: 1px solid rgba(94, 211, 161, 0.24);
  border-radius: 10px;
  color: #b9eed4;
  font-size: 13px;
  line-height: 1.4;
  background: rgba(20, 86, 61, 0.24);
}

.design-modern-command-center .mission-inline-alert span {
  flex: 1 1 auto;
}

.design-modern-command-center .mission-inline-alert.error {
  border-color: rgba(241, 129, 113, 0.25);
  color: #f2c2b9;
  background: rgba(99, 41, 37, 0.24);
}

.design-modern-command-center .mission-view-all {
  min-height: 42px;
  border-color: rgba(105, 212, 223, 0.2);
  border-radius: 10px;
  color: #d9f3f5;
  font-size: 14px;
  background:
    linear-gradient(180deg, rgba(24, 66, 77, 0.86), rgba(10, 37, 47, 0.9));
}

.design-modern-command-center .mission-view-all:hover {
  border-color: rgba(114, 225, 233, 0.4);
  background:
    linear-gradient(180deg, rgba(32, 85, 96, 0.94), rgba(13, 46, 56, 0.96));
}

.design-modern-command-center.daily-mission-modal-open {
  overflow: hidden;
}

.design-modern-command-center .daily-mission-modal {
  position: fixed;
  z-index: 170;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

.design-modern-command-center .daily-mission-modal.open {
  pointer-events: auto;
  opacity: 1;
}

.design-modern-command-center .daily-mission-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 26%, rgba(50, 119, 131, 0.2), transparent 42%),
    rgba(0, 5, 10, 0.9);
  backdrop-filter: blur(12px);
}

.design-modern-command-center .mission-detail-dialog {
  position: relative;
  display: grid;
  overflow: hidden;
  width: min(1080px, calc(100vw - 48px));
  height: min(880px, calc(100vh - 48px));
  max-height: min(880px, calc(100vh - 48px));
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid rgba(111, 216, 226, 0.3);
  border-radius: 20px;
  outline: 0;
  color: #eff9fb;
  background:
    radial-gradient(circle at 88% 2%, rgba(58, 184, 200, 0.15), transparent 34%),
    radial-gradient(circle at 6% 108%, rgba(231, 184, 88, 0.13), transparent 35%),
    linear-gradient(145deg, #071923, #030c13 58%, #06131b);
  box-shadow:
    0 40px 110px rgba(0, 0, 0, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  transform: translateY(14px) scale(0.985);
  transition: transform 220ms ease;
}

.design-modern-command-center .daily-mission-modal.open .mission-detail-dialog {
  transform: translateY(0) scale(1);
}

.design-modern-command-center .mission-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px 19px;
  border-bottom: 1px solid rgba(112, 197, 211, 0.14);
  background:
    linear-gradient(90deg, rgba(17, 55, 67, 0.42), rgba(5, 20, 29, 0.18));
}

.design-modern-command-center .mission-detail-head > div:first-child {
  max-width: 660px;
}

.design-modern-command-center .mission-detail-head > div:first-child > span {
  color: #76dce5;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.design-modern-command-center .mission-detail-head h2 {
  margin: 5px 0 6px;
  color: #f8fcfd;
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.design-modern-command-center .mission-detail-head p {
  margin: 0;
  color: #a7c0ca;
  font-size: 14px;
  line-height: 1.55;
}

.design-modern-command-center .mission-detail-head-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.design-modern-command-center .mission-detail-head-actions > button {
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid rgba(109, 204, 216, 0.22);
  border-radius: 10px;
  color: #dff5f7;
  font-size: 13px;
  font-weight: 850;
  background: rgba(12, 47, 58, 0.82);
}

.design-modern-command-center .mission-detail-head-actions .mission-detail-close {
  width: 42px;
  padding: 0;
  color: #f2d699;
  font-size: 25px;
}

.design-modern-command-center .mission-detail-reset {
  display: grid;
  min-width: 118px;
  padding: 7px 11px;
  border: 1px solid rgba(230, 188, 97, 0.2);
  border-radius: 10px;
  text-align: right;
  background: rgba(40, 33, 19, 0.28);
}

.design-modern-command-center .mission-detail-reset small,
.design-modern-command-center .mission-detail-reset em {
  color: #a69e89;
  font-size: 13px;
  font-style: normal;
}

.design-modern-command-center .mission-detail-reset strong {
  color: #efca78;
  font-family: "Roboto Mono", Consolas, monospace;
  font-size: 16px;
}

.design-modern-command-center .mission-detail-body {
  overflow: auto;
  min-height: 0;
  padding: 20px 24px 22px;
}

.design-modern-command-center .mission-detail-intro {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 142px;
  margin-bottom: 14px;
  padding: 20px 22px;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  border: 1px solid rgba(122, 213, 222, 0.17);
  border-radius: 16px;
  background:
    linear-gradient(105deg, rgba(19, 70, 80, 0.35), rgba(7, 25, 34, 0.5));
}

.design-modern-command-center .mission-detail-intro span {
  color: #79dce5;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.design-modern-command-center .mission-detail-intro h3 {
  margin: 5px 0 7px;
  color: #f3f9fa;
  font-size: 23px;
}

.design-modern-command-center .mission-detail-intro p {
  max-width: 710px;
  margin: 0;
  color: #b1c6ce;
  font-size: 14px;
  line-height: 1.58;
}

.design-modern-command-center .mission-detail-list .mission-list-inner {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.design-modern-command-center .mission-detail-list .mission-row {
  min-height: 168px;
  grid-template-columns: 48px minmax(0, 1fr);
}

.design-modern-command-center .mission-detail-list .mission-reward-stack {
  grid-column: 1 / -1;
  grid-template-columns: 128px minmax(150px, 1fr);
  align-self: end;
}

.design-modern-command-center .mission-detail-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(102, 174, 195, 0.12);
  border-radius: 11px;
  background: rgba(4, 17, 25, 0.66);
}

.design-modern-command-center .mission-detail-foot span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  color: #83dfba;
  font-size: 13px;
  font-weight: 850;
}

.design-modern-command-center .mission-foot-glyph {
  width: 19px;
  height: 19px;
  color: #69daa6;
}

.design-modern-command-center .mission-detail-foot p {
  margin: 0;
  color: #9eb4bf;
  font-size: 13px;
  line-height: 1.45;
  text-align: right;
}

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

@keyframes mission-economy-sheen {
  0%,
  68%,
  100% {
    background-position: -120% 0;
  }

  82% {
    background-position: 260% 0;
  }
}

@media (max-width: 1080px) {
  .design-modern-command-center .mission-detail-list .mission-list-inner {
    grid-template-columns: 1fr;
  }

  .design-modern-command-center .mission-detail-list .mission-row {
    min-height: 138px;
    grid-template-columns: 48px minmax(0, 1fr) 142px;
  }

  .design-modern-command-center .mission-detail-list .mission-reward-stack {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .design-modern-command-center .mission-panel {
    padding: 15px;
  }

  .design-modern-command-center .mission-journey-head {
    gap: 12px;
  }

  .design-modern-command-center .mission-reset-card {
    min-width: 102px;
    padding-inline: 9px;
  }

  .design-modern-command-center .mission-mode-banner {
    align-items: flex-start;
  }

  .design-modern-command-center .mission-economy-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .design-modern-command-center .mission-economy-orb {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .design-modern-command-center .mission-economy-balance {
    display: grid;
    min-width: 0;
    padding: 10px 0 0;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    border-top: 1px solid rgba(230, 192, 108, 0.12);
    border-left: 0;
    text-align: left;
  }

  .design-modern-command-center .mission-economy-balance small {
    grid-column: 1;
  }

  .design-modern-command-center .mission-economy-balance > strong {
    grid-column: 1;
  }

  .design-modern-command-center .mission-economy-balance button {
    min-width: 142px;
    margin: 0;
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .design-modern-command-center .mission-row,
  .design-modern-command-center .mission-detail-list .mission-row {
    min-height: 0;
    padding: 12px 10px;
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .design-modern-command-center .mission-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
  }

  .design-modern-command-center .mission-icon .mission-glyph {
    width: 24px;
    height: 24px;
  }

  .design-modern-command-center .mission-reward-stack,
  .design-modern-command-center .mission-detail-list .mission-reward-stack {
    grid-column: 1 / -1;
    grid-template-columns: 116px minmax(0, 1fr);
  }

  .design-modern-command-center .mission-state-card {
    min-height: 0;
    padding: 15px;
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .design-modern-command-center .mission-state-card > button {
    grid-column: 1 / -1;
  }

  .design-modern-command-center .mission-state-sigil {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .design-modern-command-center .daily-mission-modal {
    align-items: stretch;
    padding: 0;
  }

  .design-modern-command-center .mission-detail-dialog {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-width: 0;
    border-radius: 0;
  }

  .design-modern-command-center .mission-detail-head {
    padding: 18px 16px 15px;
    flex-direction: column;
    gap: 14px;
  }

  .design-modern-command-center .mission-detail-head-actions {
    width: 100%;
  }

  .design-modern-command-center .mission-detail-reset {
    margin-right: auto;
    text-align: left;
  }

  .design-modern-command-center .mission-detail-body {
    padding: 14px 14px 18px;
  }

  .design-modern-command-center .mission-detail-intro {
    min-height: 0;
    padding: 17px;
    grid-template-columns: minmax(0, 1fr);
  }

  .design-modern-command-center .mission-detail-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .design-modern-command-center .mission-detail-foot p {
    text-align: left;
  }
}

@media (max-width: 430px) {
  .design-modern-command-center .mission-panel {
    padding: 13px;
  }

  .design-modern-command-center .mission-journey-head h2 {
    font-size: 22px;
  }

  .design-modern-command-center .mission-journey-copy {
    max-width: 210px;
  }

  .design-modern-command-center .mission-reset-card {
    min-width: 94px;
  }

  .design-modern-command-center .mission-reset-card strong {
    font-size: 15px;
  }

  .design-modern-command-center .mission-mode-banner {
    padding: 9px 10px;
  }

  .design-modern-command-center .mission-economy-card {
    padding: 11px;
    gap: 10px;
  }

  .design-modern-command-center .mission-economy-balance {
    grid-template-columns: 1fr;
  }

  .design-modern-command-center .mission-economy-balance button {
    width: 100%;
    margin-top: 6px;
    grid-column: 1;
    grid-row: auto;
  }

  .design-modern-command-center .mission-summary-strip {
    grid-template-columns: 1fr;
  }

  .design-modern-command-center .mission-summary-strip > span:last-child {
    padding-top: 7px;
    border-top: 1px solid rgba(108, 174, 195, 0.1);
    text-align: left;
  }

  .design-modern-command-center .mission-main {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .design-modern-command-center .mission-main strong,
  .design-modern-command-center .mission-main span {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .design-modern-command-center .mission-reward-stack,
  .design-modern-command-center .mission-detail-list .mission-reward-stack {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .design-modern-command-center .mission-inline-alert {
    align-items: stretch;
    flex-direction: column;
  }

  .design-modern-command-center .mission-detail-head h2 {
    font-size: 27px;
  }

  .design-modern-command-center .mission-detail-head-actions {
    display: grid;
    grid-template-columns: 1fr auto auto;
  }

  .design-modern-command-center .mission-detail-reset {
    min-width: 0;
  }

  .design-modern-command-center .mission-detail-intro {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .design-modern-command-center .mission-state-sigil.is-loading {
    animation-duration: 1800ms;
  }

  .design-modern-command-center .mission-row,
  .design-modern-command-center .daily-mission-modal,
  .design-modern-command-center .mission-detail-dialog,
  .design-modern-command-center .mission-economy-card::after {
    transition: none;
  }

  .design-modern-command-center .mission-economy-card::after {
    animation: none;
  }
}

/* Modern icon system V1 */

.design-modern-command-center .ui-glyph {
  display: inline-block;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  color: #7dcfdb;
  background: currentColor;
  -webkit-mask-image: var(--ui-icon);
  mask-image: var(--ui-icon);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.design-modern-command-center .chat-announcement {
  border-color: rgba(244, 200, 111, 0.34);
  border-radius: 6px;
  background:
    radial-gradient(circle at 16% 0%, rgba(244, 200, 111, 0.13), transparent 34%),
    linear-gradient(180deg, rgba(25, 22, 15, 0.98), rgba(3, 10, 15, 0.99));
  box-shadow:
    inset 2px 0 0 rgba(244, 200, 111, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 12px 24px rgba(0, 0, 0, 0.32),
    0 0 20px rgba(244, 200, 111, 0.08);
}

.design-modern-command-center .chat-announcement .chat-announcement-icon {
  width: 25px;
  height: 25px;
  color: #f3ca74;
  filter: drop-shadow(0 0 7px rgba(244, 200, 111, 0.3));
}

.design-modern-command-center .chat-announcement-delete .chat-announcement-delete-icon {
  width: 16px;
  height: 16px;
  color: currentColor;
}

.design-modern-command-center .chat-emoji-toggle .ui-glyph {
  width: 20px;
  height: 20px;
  color: currentColor;
}

.design-modern-command-center .top-nav .nav-tab .nav-icon,
.design-modern-command-center .mobile-nav-drawer .drawer-tab .nav-icon {
  width: 22px;
  height: 22px;
  opacity: 0.76;
  color: #7ea9b7;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
  transform: none;
  transition: color 160ms ease, opacity 160ms ease, filter 160ms ease, transform 160ms ease;
}

.design-modern-command-center .top-nav .nav-tab img.nav-icon,
.design-modern-command-center .mobile-nav-drawer .drawer-tab img.nav-icon {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.design-modern-command-center .top-nav .nav-tab:hover .nav-icon,
.design-modern-command-center .top-nav .nav-tab.active .nav-icon,
.design-modern-command-center .mobile-nav-drawer .drawer-tab:hover .nav-icon,
.design-modern-command-center .mobile-nav-drawer .drawer-tab.active .nav-icon {
  width: 22px;
  height: 22px;
  opacity: 1;
  color: #8cecf2;
  filter: drop-shadow(0 0 7px rgba(98, 216, 238, 0.35));
  transform: translateY(-1px);
}

.design-modern-command-center .top-nav .nav-tab:hover img.nav-icon,
.design-modern-command-center .top-nav .nav-tab.active img.nav-icon {
  width: 27px;
  height: 27px;
  filter: saturate(0.92) brightness(1.06) drop-shadow(0 0 7px rgba(244, 200, 111, 0.24));
}

.design-modern-command-center .topbar-glyph {
  width: 22px;
  height: 22px;
  color: #9bb6c1;
  transition: color 150ms ease, filter 150ms ease, transform 150ms ease;
}

.design-modern-command-center .icon-button:hover .topbar-glyph,
.design-modern-command-center .icon-button:focus-visible .topbar-glyph {
  color: #8cecf2;
  filter: drop-shadow(0 0 7px rgba(98, 216, 238, 0.34));
  transform: translateY(-1px);
}

.design-modern-command-center .currency-chip img {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.46));
}

.design-modern-command-center .hero-action-glyph {
  width: 21px;
  height: 21px;
}

.design-modern-command-center .primary-action .hero-action-glyph {
  color: #38250d;
}

.design-modern-command-center .secondary-action .hero-action-glyph {
  color: #dceaf1;
}

.design-modern-command-center .profile-stat-row dt .profile-stat-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.design-modern-command-center .profile-stat-row dt .ui-glyph.profile-stat-icon {
  width: 20px;
  height: 20px;
  margin: 2px;
  color: #78cbd7;
}

.design-modern-command-center .profile-stat-guild .profile-stat-icon {
  color: #8db5c2;
}

.design-modern-command-center .profile-stat-row.profile-stat-web-points dt img.profile-stat-icon {
  width: 26px;
  height: 26px;
  margin: -1px;
  color: #68dce8;
  filter: drop-shadow(0 0 6px rgba(98, 216, 238, 0.2));
}

.design-modern-command-center .profile-stat-cash img,
.design-modern-command-center .profile-stat-nas img {
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.45));
}

.design-modern-command-center .profile-menu button .profile-menu-icon {
  width: 21px;
  height: 21px;
  color: #76c7d3;
  filter: none;
  transition: color 150ms ease, filter 150ms ease;
}

.design-modern-command-center .profile-menu button img.profile-menu-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.42));
}

.design-modern-command-center .profile-menu button:hover .ui-glyph,
.design-modern-command-center .profile-menu button.active .ui-glyph {
  color: #f3ca74;
  filter: drop-shadow(0 0 6px rgba(244, 200, 111, 0.24));
}

.design-modern-command-center .event-card {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
}

.design-modern-command-center .event-card > .event-icon {
  align-self: center;
  justify-self: center;
  width: 33px;
  height: 33px;
  opacity: 0.94;
  filter: drop-shadow(0 0 7px color-mix(in srgb, currentColor 24%, transparent));
  transition: opacity 160ms ease, filter 160ms ease, transform 160ms ease;
}

.design-modern-command-center .event-card:hover > .event-icon {
  opacity: 1;
  filter: drop-shadow(0 0 10px color-mix(in srgb, currentColor 38%, transparent));
  transform: translateY(-1px);
}

.design-modern-command-center .event-card[data-event-key="online"] .event-icon { color: #65e4ae; }
.design-modern-command-center .event-card[data-event-key="boss"] .event-icon { color: #ff756c; }
.design-modern-command-center .event-card[data-event-key="guildwar"] .event-icon { color: #bda0f1; }
.design-modern-command-center .event-card[data-event-key="prime"] .event-icon { color: #f2c96f; }
.design-modern-command-center .event-card[data-event-key="reward"] .event-icon { color: #73dce3; }
.design-modern-command-center .event-card[data-event-key="drop"] .event-icon { color: #ffad70; }

.design-modern-command-center .mission-icon {
  width: 42px;
  height: 42px;
}

.design-modern-command-center .mission-icon .mission-glyph {
  width: 27px;
  height: 27px;
  filter: drop-shadow(0 0 7px color-mix(in srgb, currentColor 22%, transparent));
}

.design-modern-command-center .mission-row:nth-child(1) .mission-glyph { color: #65e4ae; }
.design-modern-command-center .mission-row:nth-child(2) .mission-glyph { color: #ff786f; }
.design-modern-command-center .mission-row:nth-child(3) .mission-glyph { color: #69dbe6; }
.design-modern-command-center .mission-row:nth-child(4) .mission-glyph { color: #f2ad6b; }

.design-modern-command-center .feed-row .feed-icon {
  width: 18px;
  height: 18px;
  color: #82becb;
  filter: none;
}

.design-modern-command-center .feed-row.red .feed-icon { color: #ff756c; }
.design-modern-command-center .feed-row.gold .feed-icon { color: #f2c96f; }
.design-modern-command-center .feed-row.purple .feed-icon { color: #bda0f1; }
.design-modern-command-center .feed-row.cyan .feed-icon { color: #69dbe6; }
.design-modern-command-center .feed-row.green .feed-icon { color: #65e4ae; }

.design-modern-command-center .ui-glyph.market-icon.fallback,
.design-modern-command-center .ui-glyph.market-browser-icon.fallback,
.design-modern-command-center .market-detail-hero .ui-glyph.market-icon.fallback {
  border: 0;
  color: #77cbd7;
  background-color: currentColor;
  background-image: none;
  box-shadow: none;
  filter: none;
}

.design-modern-command-center .chat-presence-icon {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 27px;
  height: 22px;
}

.design-modern-command-center .chat-presence-icon .ui-glyph {
  width: 24px;
  height: 24px;
  color: #83dce7;
  filter: drop-shadow(0 0 5px rgba(98, 216, 238, 0.24));
}

.design-modern-command-center .chat-presence-icon .chat-presence-live-dot {
  right: -1px;
  bottom: -1px;
}

@media (max-width: 1180px) {
  .design-modern-command-center .mobile-nav-drawer .drawer-tab .nav-icon {
    justify-self: center;
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 860px) {
  .design-modern-command-center .mobile-bottom button::before {
    background-image: none;
    background-color: #8bbbc5;
    -webkit-mask-image: var(--mobile-icon);
    mask-image: var(--mobile-icon);
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    filter: none;
  }

  .design-modern-command-center .mobile-bottom [data-action="mobile-home"]::before {
    --mobile-icon: url('/assets/icons-modern/house.svg');
  }

  .design-modern-command-center .mobile-bottom [data-action="mobile-chat"]::before {
    --mobile-icon: url('/assets/icons-modern/messages-square.svg');
  }

  .design-modern-command-center .mobile-bottom [data-action="mobile-download"]::before {
    --mobile-icon: url('/assets/icons-modern/download.svg');
  }

  .design-modern-command-center .mobile-bottom [data-action="mobile-profile"]::before {
    --mobile-icon: url('/assets/icons-modern/user-round.svg');
    border-radius: 0;
  }

  .design-modern-command-center .mobile-bottom [data-action="mobile-more"]::before {
    --mobile-icon: url('/assets/icons-modern/ellipsis.svg');
  }

  .design-modern-command-center .mobile-bottom button:hover::before,
  .design-modern-command-center .mobile-bottom button:focus-visible::before,
  .design-modern-command-center .mobile-bottom .download-tab::before {
    background-color: #f2c96f;
    filter: drop-shadow(0 0 6px rgba(244, 200, 111, 0.22));
  }

  .design-modern-command-center .event-card > .event-icon {
    width: 31px;
    height: 31px;
  }
}

/* Guild War live center */

.guild-war-open {
  overflow: hidden;
}

.guild-war-modal {
  position: fixed;
  z-index: 1220;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  font-family: "Noto Sans Thai", sans-serif;
}

.guild-war-modal.open {
  display: flex;
}

.guild-war-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 6, 10, 0.86);
  backdrop-filter: blur(8px);
}

.guild-war-dialog {
  position: relative;
  display: grid;
  width: min(1100px, 96vw);
  height: min(800px, 92vh);
  grid-template-rows: auto auto auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(101, 185, 200, 0.42);
  border-radius: 7px;
  background: #06131c;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.66), 0 0 0 1px rgba(239, 193, 93, 0.08) inset;
  color: #edf4f6;
}

.guild-war-head {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px 15px;
  border-bottom: 1px solid rgba(104, 184, 201, 0.22);
  background: #081b27;
}

.guild-war-head > div {
  min-width: 0;
}

.guild-war-head > div > span {
  color: #e7bd66;
  font-size: 10px;
  font-weight: 900;
}

.guild-war-head h2 {
  margin: 2px 0 1px;
  color: #f4f7f8;
  font-size: 24px;
  line-height: 1.2;
}

.guild-war-head p {
  margin: 0;
  color: #95adb9;
  font-size: 12px;
}

.guild-war-head .market-detail-close {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
}

.guild-war-nav {
  display: flex;
  min-width: 0;
  gap: 6px;
  padding: 11px 20px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(104, 184, 201, 0.14);
  background: #061722;
  scrollbar-width: none;
}

.guild-war-nav::-webkit-scrollbar {
  display: none;
}

.guild-war-nav button {
  display: inline-flex;
  min-width: 128px;
  min-height: 35px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid rgba(89, 151, 171, 0.35);
  border-radius: 5px;
  background: #04111a;
  color: #adc0c8;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.guild-war-nav button span {
  display: inline-grid;
  min-width: 22px;
  height: 18px;
  place-items: center;
  border-radius: 9px;
  background: rgba(110, 169, 186, 0.13);
  color: #8fa9b4;
  font-size: 10px;
}

.guild-war-nav button:hover,
.guild-war-nav button:focus-visible {
  border-color: rgba(107, 211, 222, 0.6);
  outline: none;
  color: #e2eef0;
}

.guild-war-nav button.active {
  border-color: rgba(232, 188, 94, 0.68);
  background: #152019;
  color: #f2cb76;
  box-shadow: inset 0 -2px 0 rgba(238, 192, 93, 0.7);
}

.guild-war-nav button.active span {
  background: rgba(234, 190, 96, 0.16);
  color: #f1ce82;
}

.guild-war-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid rgba(104, 184, 201, 0.14);
  background: #07141d;
}

.guild-war-summary > div {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: center;
  gap: 9px;
  padding: 10px 12px;
  border-right: 1px solid rgba(104, 184, 201, 0.12);
}

.guild-war-summary > div:last-child {
  border-right: 0;
}

.guild-war-summary span {
  overflow: hidden;
  color: #7f99a5;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guild-war-summary strong {
  color: #e9c36f;
  font-size: 16px;
}

.guild-war-content {
  min-height: 0;
  padding: 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #28758a #031019;
  scrollbar-width: thin;
}

.guild-war-battle-row,
.castle-war-row,
.guild-war-history-row {
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid rgba(85, 145, 164, 0.3);
  border-radius: 6px;
  background: #061823;
}

.guild-war-battle-row.is-active {
  border-color: rgba(181, 139, 226, 0.46);
  box-shadow: inset 3px 0 0 #9c70ce;
}

.guild-war-battle-row.is-waiting {
  border-color: rgba(93, 196, 208, 0.44);
  box-shadow: inset 3px 0 0 #54bdc8;
}

.guild-war-battle-row > header {
  display: grid;
  min-width: 0;
  grid-template-columns: 8px auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(91, 155, 173, 0.17);
  background: #081d29;
}

.guild-war-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b184e2;
  box-shadow: 0 0 8px rgba(181, 132, 226, 0.75);
}

.guild-war-battle-row.is-waiting .guild-war-live-dot {
  background: #65d2dc;
  box-shadow: 0 0 8px rgba(101, 210, 220, 0.68);
}

.guild-war-battle-row > header strong {
  color: #d9c1ee;
  font-size: 12px;
}

.guild-war-battle-row.is-waiting > header strong {
  color: #8bdae1;
}

.guild-war-battle-row > header small {
  overflow: hidden;
  color: #869faa;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guild-war-battle-row > header time {
  color: #f2cd7b;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

.guild-war-versus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
  padding: 17px 18px;
}

.guild-war-team {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 14px;
}

.guild-war-team > span {
  grid-column: 1 / -1;
  color: #6d8c99;
  font-size: 9px;
  font-weight: 900;
}

.guild-war-team > strong {
  overflow: hidden;
  color: #f0f5f6;
  font-size: 18px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guild-war-team > b {
  color: #efc56e;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}

.guild-war-team.is-opponent {
  text-align: right;
}

.guild-war-team.is-opponent > strong {
  order: 1;
}

.guild-war-team.is-opponent > b {
  order: 0;
}

.guild-war-vs-mark {
  display: grid;
  place-items: center;
  color: #798f9a;
}

.guild-war-vs-mark span {
  grid-area: 1 / 1;
  padding: 0 8px;
  background: #061823;
  color: #a898c5;
  font-size: 11px;
  font-weight: 900;
  z-index: 1;
}

.guild-war-vs-mark i {
  grid-area: 1 / 1;
  width: 100%;
  height: 1px;
  background: rgba(144, 119, 177, 0.35);
}

.guild-war-battle-row > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px 11px;
  border-top: 1px solid rgba(91, 155, 173, 0.13);
  color: #78929e;
  font-size: 10px;
}

.guild-war-battle-row > footer b {
  color: #a9bcc4;
}

.castle-war-row > header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border-bottom: 1px solid rgba(91, 155, 173, 0.17);
  background: #081d29;
}

.castle-war-row > header > div {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 2px 10px;
}

.castle-war-row > header span {
  grid-column: 1 / -1;
  color: #d9ae59;
  font-size: 9px;
  font-weight: 900;
}

.castle-war-row > header strong {
  color: #f2f5f6;
  font-size: 18px;
}

.castle-war-row > header small {
  overflow: hidden;
  color: #7f99a5;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.castle-war-row > header > b {
  flex: 0 0 auto;
  color: #e8c16b;
  font-size: 12px;
}

.castle-war-row.state-field,
.castle-war-row.state-castle {
  border-color: rgba(224, 172, 73, 0.48);
  box-shadow: inset 3px 0 0 #d7a441;
}

.castle-war-owner,
.castle-war-timeline {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(120px, 0.32fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 15px;
  border-bottom: 1px solid rgba(91, 155, 173, 0.12);
}

.castle-war-owner span,
.castle-war-timeline > span {
  color: #78939f;
  font-size: 10px;
}

.castle-war-owner strong {
  overflow: hidden;
  color: #e8eef0;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.castle-war-timeline {
  grid-template-columns: minmax(120px, 0.32fr) auto minmax(0, 1fr);
}

.castle-war-timeline strong {
  color: #f0c76e;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.castle-war-timeline small {
  overflow: hidden;
  color: #8099a4;
  font-size: 10px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.castle-war-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid rgba(91, 155, 173, 0.12);
}

.castle-war-metrics > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 2px 8px;
  padding: 11px 15px;
  border-right: 1px solid rgba(91, 155, 173, 0.12);
}

.castle-war-metrics > div:last-child {
  border-right: 0;
}

.castle-war-metrics span {
  grid-column: 1 / -1;
  color: #708b97;
  font-size: 9px;
}

.castle-war-metrics strong {
  color: #dce8eb;
  font-size: 15px;
}

.castle-war-metrics small {
  color: #77919c;
  font-size: 9px;
}

.castle-war-leaders {
  display: grid;
  gap: 1px;
  padding: 11px 15px 13px;
  background: rgba(1, 10, 16, 0.32);
}

.castle-war-leaders > span {
  margin-bottom: 4px;
  color: #d7ad5c;
  font-size: 9px;
  font-weight: 900;
}

.castle-war-leaders > div {
  display: grid;
  min-width: 0;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 5px 0;
  color: #91a8b2;
  font-size: 10px;
}

.castle-war-leaders b {
  color: #e6bc66;
}

.castle-war-leaders strong {
  overflow: hidden;
  color: #c9d7dc;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.castle-war-leaders em {
  color: #9fb2ba;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.guild-war-history-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(180px, auto);
  align-items: center;
  gap: 15px;
  padding: 12px 14px;
}

.guild-war-history-row > time {
  color: #77929d;
  font-size: 10px;
}

.guild-war-history-match {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.guild-war-history-match strong {
  overflow: hidden;
  color: #dce7ea;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guild-war-history-match strong:last-child {
  text-align: right;
}

.guild-war-history-match b {
  color: #ebc46f;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.guild-war-history-meta {
  display: flex;
  min-width: 0;
  justify-content: flex-end;
  gap: 8px;
  color: #78929e;
  font-size: 9px;
}

.guild-war-history-meta span {
  padding-left: 8px;
  border-left: 1px solid rgba(100, 163, 181, 0.18);
}

.guild-war-inline-empty,
.guild-war-empty {
  color: #78929e;
  font-size: 11px;
  text-align: center;
}

.guild-war-inline-empty {
  padding: 28px 16px;
}

.guild-war-empty {
  display: grid;
  min-height: 260px;
  place-items: center;
  align-content: center;
  gap: 9px;
  padding: 28px;
}

.guild-war-empty-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 4px;
  color: #7899a7;
  opacity: 0.85;
}

.guild-war-empty strong {
  color: #d8e4e7;
  font-size: 16px;
}

.guild-war-empty span {
  max-width: 460px;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .guild-war-modal {
    padding: 10px;
  }

  .guild-war-dialog {
    width: 100%;
    height: 95vh;
  }

  .guild-war-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guild-war-summary > div:nth-child(2) {
    border-right: 0;
  }

  .guild-war-summary > div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(104, 184, 201, 0.12);
  }

  .guild-war-versus {
    grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
    padding: 14px 12px;
  }

  .guild-war-team {
    grid-template-columns: minmax(0, 1fr);
  }

  .guild-war-team > strong {
    font-size: 14px;
  }

  .guild-war-team > b {
    font-size: 19px;
  }

  .guild-war-team.is-opponent > strong,
  .guild-war-team.is-opponent > b {
    order: initial;
  }

  .guild-war-history-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .guild-war-history-meta {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .guild-war-head {
    padding: 14px 14px 12px;
  }

  .guild-war-head h2 {
    font-size: 20px;
  }

  .guild-war-nav {
    padding: 9px 12px;
  }

  .guild-war-nav button {
    min-width: 116px;
  }

  .guild-war-content {
    padding: 9px;
  }

  .guild-war-battle-row > header {
    grid-template-columns: 8px minmax(0, 1fr) auto;
  }

  .guild-war-battle-row > header small {
    display: none;
  }

  .guild-war-battle-row > header time {
    font-size: 14px;
  }

  .guild-war-versus {
    grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
    gap: 5px;
  }

  .guild-war-team > strong {
    font-size: 12px;
  }

  .guild-war-team > b {
    font-size: 17px;
  }

  .guild-war-battle-row > footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .castle-war-owner,
  .castle-war-timeline {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .castle-war-timeline small {
    text-align: left;
  }

  .castle-war-metrics {
    grid-template-columns: 1fr;
  }

  .castle-war-metrics > div {
    border-right: 0;
    border-bottom: 1px solid rgba(91, 155, 173, 0.12);
  }

  .castle-war-metrics > div:last-child {
    border-bottom: 0;
  }
}

/* War Center + Boss Tracker Readability R1 */

.design-modern-command-center .boss-tracker-panel .panel-head {
  padding-bottom: 11px;
}

.design-modern-command-center .boss-tracker-panel .panel-head h2 {
  font-size: 18px;
  line-height: 1.25;
}

.design-modern-command-center .boss-panel-health {
  margin-top: 5px;
  color: #78decf;
  font-size: 13px;
  line-height: 1.45;
}

.design-modern-command-center .boss-overview {
  min-height: 68px;
  margin: 10px 14px 9px;
}

.design-modern-command-center .boss-metric {
  gap: 9px;
  padding: 12px 9px;
}

.design-modern-command-center .boss-metric b {
  font-size: 24px;
}

.design-modern-command-center .boss-metric small {
  color: #b4c6d0;
  font-size: 12px;
  line-height: 1.35;
}

.design-modern-command-center .boss-filter-row {
  gap: 6px;
  margin: 0 14px 9px;
}

.design-modern-command-center .boss-filter-row button,
.boss-browser-filters button {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.2;
}

.design-modern-command-center .boss-filter-row button span,
.boss-browser-filters button span {
  margin-left: 5px;
  font-size: 12px;
}

.design-modern-command-center .boss-list {
  max-height: 430px;
  margin: 0 10px 10px;
  padding: 0 4px 4px;
}

.design-modern-command-center .boss-row {
  min-height: 92px;
  grid-template-columns: 9px minmax(0, 1fr) minmax(170px, 0.68fr);
  gap: 12px;
  padding: 13px 14px;
}

.design-modern-command-center .boss-state-dot,
.boss-browser-modal .boss-state-dot {
  width: 8px;
  height: 8px;
}

.design-modern-command-center .boss-row-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.design-modern-command-center .boss-row-main .boss-row-heading > strong {
  min-width: 0;
  color: #f4f8fa;
  font-size: 16px;
  line-height: 1.35;
}

.design-modern-command-center .boss-row-heading > em {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid rgba(115, 167, 190, 0.28);
  border-radius: 4px;
  background: rgba(10, 31, 44, 0.7);
  color: #a9beca;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.2;
}

.design-modern-command-center .boss-row-main .boss-row-location {
  display: flex;
  min-width: 0;
  gap: 7px;
  margin-top: 3px;
  color: #a5bac6;
  font-size: 12px;
  line-height: 1.5;
}

.design-modern-command-center .boss-row-location > span {
  flex: 0 0 auto;
  color: #718f9e;
  font-size: 10px;
  font-weight: 900;
}

.boss-last-kill {
  gap: 7px;
  font-size: 12px;
  line-height: 1.45;
}

.boss-last-kill > strong {
  font-size: 13px;
}

.design-modern-command-center .boss-last-kill.is-compact {
  margin-top: 7px;
  padding-top: 7px;
}

.design-modern-command-center .boss-row-main .boss-last-kill > strong {
  font-size: 13px;
}

.design-modern-command-center .boss-row-state {
  gap: 3px;
}

.design-modern-command-center .boss-row-state small {
  color: #6f8997;
  font-size: 10px;
  font-weight: 900;
}

.design-modern-command-center .boss-row-state b {
  font-size: 14px;
  line-height: 1.45;
}

.design-modern-command-center .boss-empty {
  font-size: 14px;
}

.boss-browser-dialog {
  width: min(1200px, 96vw);
  height: min(880px, 92vh);
  border-color: rgba(103, 183, 204, 0.5);
  background: #061620;
}

.boss-browser-head {
  align-items: center;
  padding: 22px 24px 19px;
  background: #091d29;
}

.boss-browser-head .boss-browser-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #d8b96f;
  font-size: 12px;
  letter-spacing: 0;
}

.boss-browser-eyebrow > b {
  padding: 3px 6px;
  border: 1px solid rgba(99, 229, 170, 0.45);
  border-radius: 3px;
  background: rgba(31, 111, 77, 0.24);
  color: #77e9b4;
  font-size: 10px;
  line-height: 1;
}

.boss-browser-head h2 {
  margin-top: 4px;
  font-size: 30px;
  line-height: 1.2;
}

.boss-browser-head p {
  margin-top: 3px;
  color: #adc0ca;
  font-size: 14px;
  line-height: 1.45;
}

.boss-browser-head .market-detail-close {
  flex-basis: 42px;
  width: 42px;
  height: 42px;
}

.boss-browser-toolbar {
  gap: 18px;
  padding: 14px 24px;
  background: #071720;
}

.boss-browser-filters {
  gap: 6px;
}

.boss-browser-search {
  width: min(360px, 42vw);
  min-height: 42px;
  gap: 10px;
  padding: 0 13px;
}

.boss-browser-search span {
  font-size: 12px;
}

.boss-browser-search input {
  height: 40px;
  font-size: 14px;
}

.boss-browser-summary {
  min-height: 50px;
  padding: 11px 24px;
  color: #a7bbc5;
  font-size: 14px;
}

.boss-browser-summary strong {
  color: #f0cb7a;
  font-size: 15px;
}

.boss-browser-list {
  padding: 16px 18px 20px;
}

.boss-browser-row {
  margin-bottom: 12px;
  border-color: rgba(90, 151, 173, 0.34);
  background: #061925;
}

.boss-browser-row-head {
  min-height: 104px;
  grid-template-columns: 10px minmax(0, 1fr) minmax(210px, auto);
  gap: 15px;
  padding: 16px 18px;
  background: #081d29;
}

.boss-browser-row-copy {
  gap: 0;
}

.boss-browser-name-line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.boss-browser-name-line > strong {
  min-width: 0;
  color: #f4f8f9;
  font-size: 20px;
  line-height: 1.35;
}

.boss-browser-name-line > small {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid rgba(113, 165, 187, 0.28);
  border-radius: 4px;
  background: rgba(7, 26, 38, 0.74);
  color: #adc0ca;
  font-size: 11px;
  font-weight: 800;
}

.boss-browser-row-head .boss-last-kill.is-browser {
  width: min(620px, 100%);
  margin-top: 9px;
  padding-top: 8px;
}

.boss-browser-row-head .boss-last-kill > strong {
  font-size: 13px;
}

.boss-browser-row-head .boss-browser-status {
  display: grid;
  justify-items: end;
  gap: 4px;
  font-size: 14px;
  line-height: 1.45;
}

.boss-browser-status > span,
.boss-context-status > span {
  color: #718d9b;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.boss-context {
  padding: 16px 18px 18px;
  background: #071a25;
}

.boss-context > header {
  margin-bottom: 12px;
}

.boss-context > header span {
  font-size: 11px;
}

.boss-context > header strong {
  color: #e7f0f2;
  font-size: 15px;
}

.boss-context > header .boss-context-status {
  display: grid;
  justify-items: end;
  gap: 4px;
  font-size: 13px;
  line-height: 1.4;
}

.boss-context .boss-last-kill.is-context {
  margin-bottom: 12px;
  padding: 9px 11px;
}

.boss-room-grid {
  gap: 8px;
}

.boss-room {
  gap: 6px 10px;
  min-height: 112px;
  padding: 13px 14px;
  background: rgba(2, 12, 19, 0.68);
}

.boss-room .boss-room-name {
  color: #d7e3e7;
  font-size: 13px;
}

.boss-room .boss-room-status {
  color: #d0dee2;
  font-size: 13px;
  line-height: 1.4;
}

.boss-room .boss-room-detail {
  color: #93aab6;
  font-size: 12px;
  line-height: 1.5;
}

.boss-room .boss-last-kill.is-room {
  margin-top: 5px;
  padding-top: 8px;
}

.boss-room .boss-last-kill.is-room > span,
.boss-room .boss-last-kill.is-room > strong,
.boss-room .boss-last-kill.is-room > time {
  font-size: 11px;
}

.guild-war-dialog {
  width: min(1160px, 96vw);
  height: min(840px, 92vh);
  border-color: rgba(111, 180, 200, 0.5);
  background: #061620;
}

.guild-war-head {
  align-items: center;
  padding: 22px 24px 19px;
  background: #091d29;
}

.guild-war-head .guild-war-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #d8b96f;
  font-size: 12px;
  letter-spacing: 0;
}

.guild-war-eyebrow > b {
  padding: 3px 6px;
  border: 1px solid rgba(232, 188, 94, 0.46);
  border-radius: 3px;
  background: rgba(111, 78, 20, 0.26);
  color: #f1cd7d;
  font-size: 10px;
  line-height: 1;
}

.guild-war-head h2 {
  margin-top: 4px;
  font-size: 30px;
}

.guild-war-head p {
  margin-top: 3px;
  color: #adc0ca;
  font-size: 14px;
  line-height: 1.45;
}

.guild-war-head .market-detail-close {
  flex-basis: 42px;
  width: 42px;
  height: 42px;
}

.guild-war-nav {
  gap: 8px;
  padding: 14px 24px;
  background: #071720;
}

.guild-war-nav button {
  min-width: 150px;
  min-height: 44px;
  gap: 10px;
  padding: 9px 15px;
  font-size: 14px;
}

.guild-war-nav button strong {
  font: inherit;
  font-weight: 900;
}

.guild-war-nav button span {
  min-width: 24px;
  height: 22px;
  border-radius: 11px;
  font-size: 12px;
}

.guild-war-summary {
  min-height: 72px;
  background: #081821;
}

.guild-war-summary > div {
  display: grid;
  grid-template-columns: auto auto auto;
  align-content: center;
  align-items: baseline;
  justify-content: center;
  gap: 4px 8px;
  padding: 12px 14px;
}

.guild-war-summary span {
  grid-column: 1 / -1;
  color: #9eb1bb;
  font-size: 12px;
  font-weight: 800;
}

.guild-war-summary strong {
  color: #f0ca76;
  font-size: 24px;
  line-height: 1;
}

.guild-war-summary small {
  color: #778f9b;
  font-size: 11px;
}

.guild-war-summary .is-active strong {
  color: #b99ae6;
}

.guild-war-summary .is-waiting strong {
  color: #74d8e1;
}

.guild-war-summary .is-castle strong {
  color: #f0ca76;
}

.guild-war-summary .is-history strong {
  color: #c8d5da;
}

.guild-war-content {
  padding: 18px 20px 20px;
}

.guild-war-battle-row,
.castle-war-row,
.guild-war-history-row {
  margin-bottom: 14px;
  border-color: rgba(92, 151, 171, 0.34);
  background: #071a25;
}

.guild-war-battle-row > header {
  grid-template-columns: 9px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px 18px;
  background: #091e2a;
}

.guild-war-battle-status {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.guild-war-battle-row > header .guild-war-battle-status strong {
  font-size: 14px;
  line-height: 1.35;
}

.guild-war-battle-row > header .guild-war-battle-status small {
  color: #94aab5;
  font-size: 12px;
}

.guild-war-countdown {
  display: grid;
  justify-items: end;
  gap: 3px;
}

.guild-war-countdown > small {
  color: #78919d;
  font-size: 10px;
  font-weight: 900;
}

.guild-war-battle-row > header .guild-war-countdown time {
  color: #f2cd7b;
  font-size: 20px;
  line-height: 1.15;
}

.guild-war-versus {
  grid-template-columns: minmax(0, 1fr) 82px minmax(0, 1fr);
  gap: 14px;
  padding: 21px 22px;
}

.guild-war-team {
  gap: 4px 16px;
}

.guild-war-team > span {
  color: #829ba7;
  font-size: 11px;
}

.guild-war-team > strong {
  color: #f3f7f8;
  font-size: 20px;
}

.guild-war-team > b {
  font-size: 28px;
}

.guild-war-vs-mark span {
  font-size: 12px;
}

.guild-war-battle-row > footer {
  padding: 12px 18px 14px;
  color: #9aadb6;
  font-size: 12px;
}

.guild-war-date,
.guild-war-duration {
  display: grid;
  gap: 2px;
}

.guild-war-battle-row > footer small {
  color: #728b97;
  font-size: 10px;
  font-weight: 800;
}

.guild-war-battle-row > footer b {
  color: #c8d5da;
  font-size: 13px;
}

.castle-war-row > header {
  padding: 16px 18px;
  background: #091e2a;
}

.castle-war-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.castle-war-row > header .castle-war-heading > span {
  grid-column: auto;
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid rgba(225, 181, 89, 0.34);
  border-radius: 3px;
  background: rgba(106, 73, 16, 0.24);
  color: #e6c173;
  font-size: 10px;
  line-height: 1.2;
}

.castle-war-title-line {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 10px;
}

.castle-war-row > header .castle-war-title-line strong {
  color: #f4f7f8;
  font-size: 22px;
  line-height: 1.3;
}

.castle-war-row > header .castle-war-title-line small {
  color: #9aadb7;
  font-size: 13px;
}

.castle-war-row > header > b {
  padding: 5px 9px;
  border: 1px solid rgba(225, 181, 89, 0.32);
  border-radius: 4px;
  background: rgba(92, 64, 15, 0.18);
  color: #efca78;
  font-size: 13px;
  line-height: 1.3;
}

.castle-war-primary {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  border-bottom: 1px solid rgba(91, 155, 173, 0.14);
}

.castle-war-owner,
.castle-war-timeline {
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  gap: 5px;
  min-height: 94px;
  padding: 15px 18px;
  border-bottom: 0;
}

.castle-war-timeline {
  border-left: 1px solid rgba(91, 155, 173, 0.14);
}

.castle-war-owner span,
.castle-war-timeline > span {
  color: #8fa5b0;
  font-size: 12px;
  font-weight: 800;
}

.castle-war-owner strong {
  color: #eef4f5;
  font-size: 18px;
  line-height: 1.35;
}

.castle-war-time-copy {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.castle-war-timeline strong {
  flex: 0 0 auto;
  color: #f2cb76;
  font-size: 24px;
  line-height: 1.2;
}

.castle-war-timeline small {
  color: #94a9b3;
  font-size: 12px;
  line-height: 1.4;
}

.castle-war-metrics {
  min-height: 78px;
}

.castle-war-metrics > div {
  align-content: center;
  gap: 4px 9px;
  padding: 13px 18px;
}

.castle-war-metrics span {
  color: #8099a5;
  font-size: 12px;
}

.castle-war-metrics strong {
  color: #e7eef0;
  font-size: 22px;
}

.castle-war-metrics small {
  font-size: 11px;
}

.castle-war-leaders {
  padding: 13px 18px 16px;
}

.castle-war-leaders > span {
  font-size: 11px;
}

.castle-war-leaders > div {
  min-height: 34px;
  font-size: 12px;
}

.guild-war-history-row {
  grid-template-columns: 180px minmax(0, 1fr) minmax(220px, auto);
  gap: 18px;
  padding: 16px 18px;
}

.guild-war-history-row > time {
  color: #94a9b4;
  font-size: 12px;
  line-height: 1.45;
}

.guild-war-history-match strong {
  color: #e7eef0;
  font-size: 14px;
}

.guild-war-history-match b {
  font-size: 18px;
}

.guild-war-history-meta {
  gap: 9px;
  color: #91a6b0;
  font-size: 11px;
}

.guild-war-history-meta span {
  padding-left: 9px;
}

.guild-war-inline-empty,
.guild-war-empty {
  color: #91a7b2;
  font-size: 14px;
}

.guild-war-empty strong {
  font-size: 19px;
}

.guild-war-empty span {
  font-size: 14px;
}

@media (max-width: 880px) {
  .boss-browser-dialog,
  .guild-war-dialog {
    height: 95vh;
    height: 95dvh;
  }

  .boss-browser-toolbar,
  .boss-browser-summary {
    gap: 10px;
  }

  .boss-room-grid {
    grid-template-columns: 1fr;
  }

  .guild-war-history-row {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .guild-war-history-meta {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .design-modern-command-center .boss-tracker-panel .panel-head h2 {
    font-size: 17px;
  }

  .design-modern-command-center .boss-panel-health {
    font-size: 12px;
  }

  .design-modern-command-center .boss-overview {
    margin: 9px 10px 8px;
  }

  .design-modern-command-center .boss-metric b {
    font-size: 22px;
  }

  .design-modern-command-center .boss-metric small {
    font-size: 11px;
  }

  .design-modern-command-center .boss-filter-row {
    margin-right: 10px;
    margin-left: 10px;
  }

  .design-modern-command-center .boss-filter-row button,
  .boss-browser-filters button {
    min-height: 40px;
    font-size: 12px;
  }

  .design-modern-command-center .boss-row {
    min-height: 104px;
    grid-template-columns: 9px minmax(0, 1fr);
    gap: 11px;
    padding: 13px 11px;
  }

  .design-modern-command-center .boss-row-state {
    grid-column: 2;
    align-items: flex-start;
    margin-top: 5px;
    text-align: left;
  }

  .design-modern-command-center .boss-row-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .design-modern-command-center .boss-row-main .boss-row-heading > strong {
    font-size: 15px;
  }

  .boss-browser-modal,
  .guild-war-modal {
    padding: 8px;
  }

  .boss-browser-head,
  .guild-war-head {
    padding: 16px;
  }

  .boss-browser-head h2,
  .guild-war-head h2 {
    font-size: 25px;
  }

  .boss-browser-head p,
  .guild-war-head p {
    font-size: 13px;
  }

  .boss-browser-head .market-detail-close,
  .guild-war-head .market-detail-close {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  .boss-browser-toolbar,
  .boss-browser-summary {
    padding-right: 12px;
    padding-left: 12px;
  }

  .boss-browser-toolbar {
    padding-top: 11px;
    padding-bottom: 11px;
  }

  .boss-browser-search {
    width: 100%;
  }

  .boss-browser-summary {
    font-size: 12px;
  }

  .boss-browser-summary strong {
    font-size: 14px;
  }

  .boss-browser-list {
    padding: 10px;
  }

  .boss-browser-row-head {
    grid-template-columns: 9px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .boss-browser-name-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .boss-browser-name-line > strong {
    font-size: 18px;
    white-space: normal;
  }

  .boss-browser-row-head .boss-browser-status {
    grid-column: 2;
    justify-items: start;
    text-align: left;
  }

  .boss-context {
    padding: 14px;
  }

  .boss-context > header {
    gap: 8px;
  }

  .boss-context > header .boss-context-status {
    justify-items: start;
    text-align: left;
  }

  .boss-room {
    min-height: 0;
  }

  .guild-war-nav {
    gap: 6px;
    padding: 10px 12px;
  }

  .guild-war-nav button {
    min-width: 126px;
    min-height: 42px;
    padding: 8px 11px;
    font-size: 13px;
  }

  .guild-war-summary {
    min-height: 0;
  }

  .guild-war-summary > div {
    min-height: 66px;
    padding: 10px 8px;
  }

  .guild-war-summary span {
    font-size: 11px;
  }

  .guild-war-summary strong {
    font-size: 22px;
  }

  .guild-war-summary small {
    font-size: 10px;
  }

  .guild-war-content {
    padding: 10px;
  }

  .guild-war-battle-row > header {
    grid-template-columns: 9px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 12px;
  }

  .guild-war-battle-row > header .guild-war-battle-status strong {
    font-size: 13px;
  }

  .guild-war-battle-row > header .guild-war-battle-status small {
    display: block;
    font-size: 11px;
  }

  .guild-war-battle-row > header .guild-war-countdown time {
    font-size: 16px;
  }

  .guild-war-versus {
    grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr);
    gap: 6px;
    padding: 16px 12px;
  }

  .guild-war-team {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }

  .guild-war-team > span {
    font-size: 10px;
  }

  .guild-war-team > strong {
    font-size: 15px;
    white-space: normal;
  }

  .guild-war-team > b {
    font-size: 22px;
  }

  .guild-war-team.is-opponent > strong,
  .guild-war-team.is-opponent > b {
    order: initial;
  }

  .guild-war-battle-row > footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 11px 12px 13px;
  }

  .castle-war-row > header {
    align-items: flex-start;
    padding: 14px;
  }

  .castle-war-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .castle-war-title-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .castle-war-row > header .castle-war-title-line strong {
    font-size: 20px;
  }

  .castle-war-row > header .castle-war-title-line small {
    font-size: 12px;
  }

  .castle-war-row > header > b {
    font-size: 12px;
  }

  .castle-war-primary {
    grid-template-columns: 1fr;
  }

  .castle-war-owner,
  .castle-war-timeline {
    min-height: 84px;
    padding: 13px 14px;
  }

  .castle-war-timeline {
    border-top: 1px solid rgba(91, 155, 173, 0.14);
    border-left: 0;
  }

  .castle-war-owner strong {
    font-size: 17px;
  }

  .castle-war-time-copy {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .castle-war-timeline strong {
    font-size: 22px;
  }

  .castle-war-timeline small {
    text-align: left;
  }

  .castle-war-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 76px;
  }

  .castle-war-metrics > div {
    border-right: 1px solid rgba(91, 155, 173, 0.12);
    border-bottom: 0;
    padding: 11px 8px;
  }

  .castle-war-metrics > div:last-child {
    border-right: 0;
  }

  .castle-war-metrics span {
    font-size: 10px;
  }

  .castle-war-metrics strong {
    font-size: 19px;
  }

  .castle-war-metrics small {
    font-size: 9px;
  }

  .guild-war-history-row {
    padding: 14px;
  }
}

.design-modern-command-center .event-card[data-event-key="guildwar"] .event-body > strong {
  display: -webkit-box;
  overflow: hidden;
  color: #f1f5f7;
  font-size: 15px;
  line-height: 1.28;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (max-width: 1360px) {
  .design-modern-command-center .event-card[data-event-key="guildwar"] .event-body > strong {
    font-size: 14px;
  }
}

/* Web Points + Reborn Identity Shop R1 */
.design-modern-command-center .profile-stat-row.is-actionable {
  position: relative;
  grid-template-columns: minmax(0, 1fr) auto 10px;
  column-gap: 8px;
  cursor: pointer;
  isolation: isolate;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.design-modern-command-center .profile-stat-row.is-actionable::after {
  width: 7px;
  height: 7px;
  justify-self: end;
  margin-left: 0;
  border-top: 1px solid rgba(116, 225, 247, 0.88);
  border-right: 1px solid rgba(116, 225, 247, 0.88);
  content: "";
  transform: rotate(45deg);
}

.design-modern-command-center .profile-stat-row.is-actionable:hover,
.design-modern-command-center .profile-stat-row.is-actionable:focus-visible {
  border-color: rgba(91, 215, 238, 0.3);
  outline: 0;
  background: linear-gradient(90deg, rgba(25, 90, 112, 0.2), rgba(17, 39, 54, 0.32));
  transform: translateX(2px);
}

.design-modern-command-center .profile-stat-row dd {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  flex-direction: column;
}

.design-modern-command-center .profile-stat-row dd strong {
  max-width: 100%;
  overflow: hidden;
  color: inherit;
  font: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.design-modern-command-center .profile-stat-row dd small {
  color: #69d8e8;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.design-modern-command-center .identity-profile-theme-royal.profile-window {
  border-color: rgba(236, 193, 97, 0.42);
  background:
    radial-gradient(circle at 18% 3%, rgba(237, 185, 74, 0.14), transparent 32%),
    radial-gradient(circle at 92% 28%, rgba(50, 166, 210, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(8, 21, 32, 0.98), rgba(3, 11, 18, 0.98));
  box-shadow:
    0 0 0 1px rgba(64, 180, 216, 0.12),
    0 24px 70px rgba(0, 0, 0, 0.48),
    0 0 32px rgba(228, 178, 68, 0.09);
}

.design-modern-command-center .identity-profile-theme-royal .profile-portrait {
  border-color: rgba(242, 203, 111, 0.58);
  box-shadow:
    0 0 0 3px rgba(25, 103, 138, 0.25),
    0 0 28px rgba(238, 190, 84, 0.22);
}

.design-modern-command-center .identity-profile-theme-royal .panel-crown strong,
.design-modern-command-center .identity-profile-theme-royal .profile-head h2 {
  text-shadow: 0 0 14px rgba(245, 199, 98, 0.42);
}

.design-modern-command-center .identity-name-mark-aurora {
  filter: drop-shadow(0 0 4px rgba(73, 220, 240, 0.52));
  text-shadow:
    0 0 5px rgba(92, 231, 245, 0.75),
    0 0 12px rgba(112, 94, 230, 0.38);
  animation: identity-aurora-pulse 3.6s ease-in-out infinite;
}

@keyframes identity-aurora-pulse {
  0%,
  100% { filter: drop-shadow(0 0 3px rgba(73, 220, 240, 0.42)); }
  50% { filter: drop-shadow(0 0 7px rgba(155, 105, 239, 0.58)); }
}

.design-modern-command-center.identity-shop-modal-open {
  overflow: hidden;
}

.design-modern-command-center .identity-shop-modal {
  position: fixed;
  z-index: 520;
  inset: 0;
  display: grid;
  visibility: hidden;
  padding: 24px;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.design-modern-command-center .identity-shop-modal.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.design-modern-command-center .identity-shop-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 48% 14%, rgba(22, 97, 125, 0.26), transparent 44%),
    rgba(0, 4, 8, 0.86);
  backdrop-filter: blur(15px) saturate(0.82);
}

.design-modern-command-center .identity-shop-dialog {
  --identity-line: rgba(120, 190, 218, 0.18);
  --identity-line-strong: rgba(127, 213, 232, 0.34);
  position: relative;
  display: flex;
  width: min(1240px, 96vw);
  max-height: min(900px, 94vh);
  overflow: hidden;
  border: 1px solid rgba(130, 205, 230, 0.32);
  border-radius: 18px;
  outline: 0;
  flex-direction: column;
  color: #ecf5f7;
  background:
    linear-gradient(135deg, rgba(15, 39, 53, 0.32), transparent 34%),
    radial-gradient(circle at 78% 0, rgba(92, 59, 151, 0.18), transparent 34%),
    linear-gradient(180deg, #07131d, #030a10 82%);
  box-shadow:
    0 42px 120px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 213, 126, 0.07) inset,
    0 0 70px rgba(33, 130, 162, 0.12);
  transform: translateY(18px) scale(0.985);
  transition: transform 220ms cubic-bezier(0.22, 0.84, 0.32, 1);
}

.design-modern-command-center .identity-shop-modal.open .identity-shop-dialog {
  transform: translateY(0) scale(1);
}

.design-modern-command-center .identity-shop-dialog::before {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 80px;
  left: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(247, 207, 118, 0.8), rgba(88, 218, 239, 0.6), transparent);
  content: "";
  pointer-events: none;
}

.design-modern-command-center .identity-shop-head {
  position: relative;
  z-index: 4;
  display: flex;
  min-height: 102px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px 19px 28px;
  border-bottom: 1px solid var(--identity-line);
  background:
    linear-gradient(90deg, rgba(9, 27, 38, 0.96), rgba(8, 18, 29, 0.9)),
    rgba(5, 13, 20, 0.95);
}

.design-modern-command-center .identity-shop-title {
  min-width: 0;
}

.design-modern-command-center .identity-shop-title > span,
.design-modern-command-center .identity-section-label span,
.design-modern-command-center .identity-catalog-intro span,
.design-modern-command-center .identity-detail-copy > span,
.design-modern-command-center .identity-confirm-card > span,
.design-modern-command-center .identity-preview-kicker {
  display: block;
  color: #66d8e9;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  line-height: 1.25;
}

.design-modern-command-center .identity-shop-title h2 {
  margin: 4px 0 2px;
  color: #f7f4ed;
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.design-modern-command-center .identity-shop-title p {
  margin: 0;
  color: #a9bbc3;
  font-size: 14px;
  line-height: 1.5;
}

.design-modern-command-center .identity-shop-head-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.design-modern-command-center .identity-refresh,
.design-modern-command-center .identity-shop-close {
  border: 1px solid rgba(115, 179, 204, 0.24);
  color: #b8cbd4;
  background: rgba(12, 31, 43, 0.72);
  transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease;
}

.design-modern-command-center .identity-refresh {
  min-height: 34px;
  padding: 0 13px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
}

.design-modern-command-center .identity-shop-close {
  display: grid;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 25px;
  line-height: 1;
  place-items: center;
}

.design-modern-command-center .identity-refresh:hover:not(:disabled),
.design-modern-command-center .identity-shop-close:hover {
  border-color: rgba(99, 220, 239, 0.58);
  color: #f1fcff;
  background: rgba(22, 71, 87, 0.66);
}

.design-modern-command-center .identity-shop-body {
  display: grid;
  min-height: 0;
  overflow: hidden;
  grid-template-columns: 310px minmax(0, 1fr);
}

.design-modern-command-center .identity-wallet-column,
.design-modern-command-center .identity-catalog-column {
  min-height: 0;
  overflow-y: auto;
  scrollbar-color: rgba(85, 165, 188, 0.35) transparent;
  scrollbar-width: thin;
}

.design-modern-command-center .identity-wallet-column {
  display: flex;
  gap: 12px;
  padding: 18px;
  border-right: 1px solid var(--identity-line);
  flex-direction: column;
  background: rgba(3, 11, 17, 0.48);
}

.design-modern-command-center .identity-wallet-card,
.design-modern-command-center .identity-preview-card,
.design-modern-command-center .identity-history-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(121, 181, 207, 0.17);
  border-radius: 12px;
  flex-shrink: 0;
  background: linear-gradient(145deg, rgba(13, 35, 48, 0.88), rgba(5, 16, 24, 0.94));
}

.design-modern-command-center .identity-wallet-card {
  min-height: 196px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 17px 38px rgba(0, 0, 0, 0.25);
}

.design-modern-command-center .identity-wallet-card::before {
  position: absolute;
  inset: -42% -30% auto;
  height: 150px;
  background: radial-gradient(ellipse, rgba(60, 203, 228, 0.16), transparent 68%);
  content: "";
  pointer-events: none;
}

.design-modern-command-center .identity-wallet-sigil {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 9px;
  border: 1px solid rgba(113, 225, 239, 0.46);
  border-radius: 18px;
  background:
    radial-gradient(circle at 36% 32%, rgba(255, 255, 255, 0.8), transparent 8%),
    conic-gradient(from 210deg, #44d6ec, #7770dd, #e8b554, #44d6ec);
  box-shadow: 0 0 25px rgba(63, 208, 231, 0.25);
  place-items: center;
  transform: rotate(45deg);
}

.design-modern-command-center .identity-wallet-sigil span {
  width: 25px;
  height: 25px;
  border: 1px solid rgba(2, 17, 27, 0.65);
  border-radius: 7px;
  background: rgba(2, 16, 25, 0.88);
  box-shadow: 0 0 0 5px rgba(5, 33, 45, 0.36);
}

.design-modern-command-center .identity-wallet-label {
  display: block;
  color: #b3c8d0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.design-modern-command-center .identity-wallet-card > strong {
  display: block;
  margin-top: 2px;
  color: #fff6dc;
  font-size: 35px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.1;
  text-shadow: 0 0 16px rgba(235, 192, 92, 0.24);
}

.design-modern-command-center .identity-wallet-card > strong small {
  color: #e8bf67;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.design-modern-command-center .identity-wallet-card > p {
  margin: 7px 0 14px;
  color: #b7c8ce;
  font-size: 14px;
  line-height: 1.5;
}

.design-modern-command-center .identity-wallet-meta {
  display: grid;
  border-top: 1px solid rgba(119, 181, 203, 0.13);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.design-modern-command-center .identity-wallet-meta > span {
  display: flex;
  gap: 2px;
  padding-top: 10px;
  flex-direction: column;
}

.design-modern-command-center .identity-wallet-meta > span + span {
  border-left: 1px solid rgba(119, 181, 203, 0.13);
}

.design-modern-command-center .identity-wallet-meta small {
  color: #a9bec7;
  font-size: 12px;
}

.design-modern-command-center .identity-wallet-meta strong {
  color: #d8e6ea;
  font-size: 15px;
}

.design-modern-command-center .identity-preview-card {
  padding: 15px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.design-modern-command-center .identity-preview-card.identity-profile-theme-royal {
  border-color: rgba(237, 193, 94, 0.4);
  background:
    radial-gradient(circle at 95% 0, rgba(226, 174, 65, 0.2), transparent 40%),
    linear-gradient(145deg, rgba(13, 39, 56, 0.94), rgba(5, 15, 26, 0.98));
  box-shadow: inset 0 0 20px rgba(38, 145, 183, 0.1);
}

.design-modern-command-center .identity-preview-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 12px;
}

.design-modern-command-center .identity-preview-profile img {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(234, 194, 103, 0.52);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 13px rgba(61, 183, 213, 0.18);
}

.design-modern-command-center .identity-preview-profile > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.design-modern-command-center .identity-preview-profile small {
  color: #a9c0ca;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.design-modern-command-center .identity-preview-profile strong {
  overflow: hidden;
  color: #f1f5f6;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.design-modern-command-center .identity-preview-profile em {
  color: #e0be72;
  font-size: 12px;
  font-style: normal;
}

.design-modern-command-center .identity-preview-message {
  position: relative;
  padding: 10px 11px;
  border: 1px solid rgba(111, 167, 190, 0.16);
  border-radius: 8px;
  background: rgba(3, 13, 20, 0.74);
}

.design-modern-command-center .identity-preview-message strong {
  display: block;
  color: #f0c86e;
  font-size: 13px;
}

.design-modern-command-center .identity-preview-message p {
  margin: 3px 0 0;
  color: #d0dde1;
  font-size: 13px;
}

.design-modern-command-center .identity-preview-note {
  margin: 9px 0 0;
  color: #a9bdc5;
  font-size: 12px;
  line-height: 1.5;
}

.design-modern-command-center .identity-history-card {
  padding: 14px 15px;
}

.design-modern-command-center .identity-section-label {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.design-modern-command-center .identity-section-label strong {
  color: #dce8eb;
  font-size: 13px;
}

.design-modern-command-center .identity-history-list {
  margin-top: 8px;
}

.design-modern-command-center .identity-history-list > div {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid rgba(116, 173, 193, 0.1);
}

.design-modern-command-center .identity-history-list > div > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.design-modern-command-center .identity-history-list strong {
  overflow: hidden;
  color: #d2dee2;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.design-modern-command-center .identity-history-list small {
  color: #a6bbc4;
  font-size: 12px;
}

.design-modern-command-center .identity-history-list em {
  flex: 0 0 auto;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.design-modern-command-center .identity-history-list em.positive { color: #75daa7; }
.design-modern-command-center .identity-history-list em.negative { color: #e7ba67; }
.design-modern-command-center .identity-history-list > p {
  margin: 8px 0 0;
  color: #9fb1b9;
  font-size: 12px;
}

.design-modern-command-center .identity-catalog-column {
  display: flex;
  gap: 15px;
  padding: 20px 22px 18px;
  flex-direction: column;
}

.design-modern-command-center .identity-catalog-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.design-modern-command-center .identity-catalog-intro h3 {
  margin: 3px 0 0;
  color: #eef4f6;
  font-size: 22px;
  line-height: 1.2;
}

.design-modern-command-center .identity-catalog-intro p {
  max-width: 390px;
  margin: 0;
  color: #b7c8ce;
  font-size: 14px;
  line-height: 1.5;
  text-align: right;
}

.design-modern-command-center .identity-inline-alert {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 11px;
  border: 1px solid;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.design-modern-command-center .identity-inline-alert.error {
  border-color: rgba(224, 100, 91, 0.35);
  color: #f0b1a9;
  background: rgba(102, 32, 30, 0.2);
}

.design-modern-command-center .identity-inline-alert.success {
  border-color: rgba(89, 211, 151, 0.3);
  color: #a9e9ca;
  background: rgba(22, 93, 62, 0.19);
}

.design-modern-command-center .identity-inline-alert button {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid currentColor;
  border-radius: 5px;
  color: inherit;
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.design-modern-command-center .identity-product-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.design-modern-command-center .identity-product-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 190px;
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(115, 178, 204, 0.17);
  border-radius: 11px;
  color: inherit;
  background:
    radial-gradient(circle at 75% 10%, rgba(70, 179, 207, 0.12), transparent 38%),
    linear-gradient(145deg, rgba(13, 32, 44, 0.9), rgba(4, 14, 21, 0.96));
  grid-template-rows: 62px minmax(0, 1fr) auto;
  text-align: left;
  transition: border-color 170ms ease, transform 170ms ease, box-shadow 170ms ease;
}

.design-modern-command-center .identity-product-card:hover:not(:disabled),
.design-modern-command-center .identity-product-card:focus-visible {
  border-color: rgba(91, 215, 235, 0.48);
  outline: 0;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

.design-modern-command-center .identity-product-card.selected {
  border-color: rgba(235, 194, 98, 0.52);
  box-shadow:
    0 0 0 1px rgba(235, 194, 98, 0.1) inset,
    0 14px 28px rgba(0, 0, 0, 0.25),
    0 0 22px rgba(221, 174, 70, 0.08);
}

.design-modern-command-center .identity-product-card:disabled {
  cursor: wait;
}

.design-modern-command-center .identity-product-visual {
  position: relative;
  display: grid;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(105, 205, 224, 0.34);
  border-radius: 16px;
  background: conic-gradient(from 180deg, rgba(71, 213, 229, 0.85), rgba(100, 85, 208, 0.72), rgba(228, 181, 77, 0.74), rgba(71, 213, 229, 0.85));
  box-shadow: 0 0 20px rgba(65, 189, 215, 0.16);
  place-items: center;
  transform: rotate(45deg);
}

.design-modern-command-center .identity-product-royal .identity-product-visual {
  border-color: rgba(235, 192, 91, 0.48);
  background: conic-gradient(from 180deg, #d89d3f, #f2d58d, #2f8aa8, #d89d3f);
}

.design-modern-command-center .identity-product-visual i {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(3, 21, 31, 0.84);
  border-radius: 50%;
  background: rgba(4, 24, 34, 0.76);
  box-shadow: 0 0 0 5px rgba(2, 22, 31, 0.23);
}

.design-modern-command-center .identity-product-visual[data-kind="chat_name"] i::before,
.design-modern-command-center .identity-product-visual[data-kind="profile_theme"] i::before {
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(226, 246, 248, 0.84);
  content: "";
}

.design-modern-command-center .identity-product-visual[data-kind="chat_name"] i::before {
  border-width: 1px 0;
}

.design-modern-command-center .identity-product-visual[data-kind="profile_theme"] i::before {
  border-radius: 50%;
}

.design-modern-command-center .identity-product-copy {
  display: flex;
  min-width: 0;
  margin-top: 9px;
  flex-direction: column;
}

.design-modern-command-center .identity-product-copy small {
  color: #abc1c9;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.design-modern-command-center .identity-product-copy strong {
  margin-top: 2px;
  overflow: hidden;
  color: #ecf3f5;
  font-size: 16px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.design-modern-command-center .identity-product-copy em {
  margin-top: 3px;
  color: #b1c3ca;
  font-size: 13px;
  font-style: normal;
}

.design-modern-command-center .identity-product-state {
  position: absolute;
  top: 13px;
  right: 12px;
  max-width: 98px;
  overflow: hidden;
  padding: 4px 7px;
  border: 1px solid rgba(121, 178, 199, 0.19);
  border-radius: 20px;
  color: #a0b3bb;
  background: rgba(4, 15, 22, 0.68);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.design-modern-command-center .identity-product-state.state-active {
  border-color: rgba(80, 211, 154, 0.28);
  color: #8be2b8;
}

.design-modern-command-center .identity-product-state.state-grace {
  border-color: rgba(232, 182, 80, 0.3);
  color: #e5bd6e;
}

.design-modern-command-center .identity-product-price {
  justify-self: end;
  color: #b8c9cf;
  font-size: 12px;
  font-weight: 800;
}

.design-modern-command-center .identity-product-price strong {
  color: #f1c96f;
  font-size: 19px;
}

.design-modern-command-center .identity-product-detail {
  display: grid;
  min-height: 170px;
  align-items: center;
  gap: 16px;
  padding: 17px 18px;
  border: 1px solid rgba(119, 184, 208, 0.19);
  border-radius: 12px;
  background:
    radial-gradient(circle at 0 100%, rgba(53, 179, 208, 0.11), transparent 38%),
    linear-gradient(105deg, rgba(11, 31, 43, 0.92), rgba(5, 16, 24, 0.92));
  grid-template-columns: minmax(220px, 1fr) 150px 90px 180px;
}

.design-modern-command-center .identity-detail-royal {
  border-color: rgba(227, 184, 89, 0.28);
  background:
    radial-gradient(circle at 100% 0, rgba(224, 171, 56, 0.13), transparent 36%),
    radial-gradient(circle at 0 100%, rgba(53, 179, 208, 0.12), transparent 38%),
    linear-gradient(105deg, rgba(11, 31, 43, 0.94), rgba(5, 16, 24, 0.94));
}

.design-modern-command-center .identity-detail-copy {
  min-width: 0;
}

.design-modern-command-center .identity-detail-copy h3 {
  margin: 3px 0 4px;
  color: #f1f5f6;
  font-size: 20px;
  line-height: 1.2;
}

.design-modern-command-center .identity-detail-copy p {
  max-width: 470px;
  margin: 0;
  color: #bdccd1;
  font-size: 14px;
  line-height: 1.55;
}

.design-modern-command-center .identity-detail-tags {
  display: flex;
  gap: 5px;
  margin-top: 9px;
  flex-wrap: wrap;
}

.design-modern-command-center .identity-detail-tags span {
  padding: 3px 7px;
  border: 1px solid rgba(111, 177, 199, 0.16);
  border-radius: 20px;
  color: #b6c7cd;
  background: rgba(3, 15, 22, 0.45);
  font-size: 12px;
  font-weight: 700;
}

.design-modern-command-center .identity-detail-status,
.design-modern-command-center .identity-detail-price {
  display: flex;
  min-width: 0;
  gap: 2px;
  padding-left: 14px;
  border-left: 1px solid rgba(112, 175, 198, 0.14);
  flex-direction: column;
}

.design-modern-command-center .identity-detail-status small,
.design-modern-command-center .identity-detail-price small {
  color: #a9bdc5;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.design-modern-command-center .identity-detail-status strong {
  overflow: hidden;
  color: #d5e2e6;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.design-modern-command-center .identity-detail-status.state-active strong { color: #87deb3; }
.design-modern-command-center .identity-detail-status.state-grace strong { color: #e6bd6d; }

.design-modern-command-center .identity-detail-status > span {
  color: #b2c4cb;
  font-size: 13px;
}

.design-modern-command-center .identity-detail-price > strong {
  color: #f1c970;
  font-size: 24px;
  line-height: 1.1;
}

.design-modern-command-center .identity-detail-price > strong span {
  font-size: 12px;
}

.design-modern-command-center .identity-detail-actions {
  display: flex;
  gap: 7px;
  flex-direction: column;
}

.design-modern-command-center .identity-action-primary,
.design-modern-command-center .identity-action-secondary {
  min-height: 44px;
  padding: 7px 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 900;
  transition: filter 150ms ease, transform 150ms ease, border-color 150ms ease;
}

.design-modern-command-center .identity-action-primary {
  border: 1px solid rgba(248, 216, 145, 0.74);
  color: #1b1408;
  background: linear-gradient(180deg, #f4d58e, #c9913e);
  box-shadow: 0 8px 17px rgba(126, 79, 19, 0.2);
}

.design-modern-command-center .identity-action-secondary {
  border: 1px solid rgba(94, 205, 225, 0.34);
  color: #a9dce5;
  background: rgba(16, 60, 74, 0.42);
}

.design-modern-command-center .identity-action-primary:hover:not(:disabled),
.design-modern-command-center .identity-action-secondary:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.design-modern-command-center .identity-action-primary:disabled,
.design-modern-command-center .identity-action-secondary:disabled {
  cursor: not-allowed;
  filter: grayscale(0.35);
  opacity: 0.52;
}

.design-modern-command-center .identity-shop-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 1px;
}

.design-modern-command-center .identity-shop-foot span {
  flex: 0 0 auto;
  color: #d2aa58;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.design-modern-command-center .identity-shop-foot p {
  margin: 0;
  color: #abc0c8;
  font-size: 13px;
  line-height: 1.5;
}

.design-modern-command-center .identity-confirm-layer {
  position: absolute;
  z-index: 30;
  inset: 0;
  display: grid;
  padding: 20px;
  background: rgba(0, 7, 12, 0.76);
  backdrop-filter: blur(9px);
  place-items: center;
}

.design-modern-command-center .identity-confirm-card {
  width: min(450px, 94%);
  padding: 26px;
  border: 1px solid rgba(236, 194, 97, 0.44);
  border-radius: 15px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0, rgba(220, 170, 58, 0.13), transparent 44%),
    linear-gradient(180deg, #0c202c, #061018);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.58);
}

.design-modern-command-center .identity-confirm-card h3 {
  margin: 6px 0 7px;
  color: #f3f1e9;
  font-size: 23px;
}

.design-modern-command-center .identity-confirm-card p {
  margin: 0;
  color: #b5c5cc;
  font-size: 14px;
  line-height: 1.6;
}

.design-modern-command-center .identity-confirm-card p strong {
  color: #ebc66f;
}

.design-modern-command-center .identity-confirm-card > div {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.design-modern-command-center .identity-confirm-card button,
.design-modern-command-center .identity-error-actions button {
  min-height: 44px;
  border: 1px solid rgba(104, 179, 204, 0.3);
  border-radius: 7px;
  color: #b9cbd2;
  background: rgba(15, 45, 58, 0.7);
  font-size: 13px;
  font-weight: 900;
}

.design-modern-command-center .identity-confirm-card button:last-child {
  border-color: rgba(246, 214, 140, 0.68);
  color: #1a1307;
  background: linear-gradient(180deg, #f3d38a, #c58d39);
}

.design-modern-command-center .identity-loading,
.design-modern-command-center .identity-empty {
  display: flex;
  min-height: min(620px, 82vh);
  align-items: center;
  justify-content: center;
  padding: 36px;
  flex-direction: column;
  text-align: center;
}

.design-modern-command-center .identity-loading-sigil {
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border: 1px solid rgba(98, 219, 237, 0.45);
  border-radius: 17px;
  background: conic-gradient(from 0deg, #54d9eb, #7566d8, #e0ae4d, #54d9eb);
  box-shadow: 0 0 26px rgba(63, 200, 224, 0.2);
  animation: identity-loading-spin 2.8s linear infinite;
}

.design-modern-command-center .identity-loading strong,
.design-modern-command-center .identity-empty strong {
  color: #edf4f5;
  font-size: 21px;
}

.design-modern-command-center .identity-loading p,
.design-modern-command-center .identity-empty p {
  max-width: 420px;
  margin: 7px 0 0;
  color: #a8bbc4;
  font-size: 14px;
  line-height: 1.6;
}

.design-modern-command-center .identity-load-error .identity-loading-sigil {
  border-color: rgba(226, 107, 96, 0.42);
  filter: grayscale(0.55);
  animation: none;
}

.design-modern-command-center .identity-error-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.design-modern-command-center .identity-error-actions button {
  min-width: 110px;
}

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

@media (max-width: 1080px) {
  .design-modern-command-center .identity-shop-dialog {
    width: min(940px, 96vw);
  }

  .design-modern-command-center .identity-shop-body {
    grid-template-columns: 270px minmax(0, 1fr);
  }

  .design-modern-command-center .identity-product-grid {
    grid-template-columns: 1fr;
  }

  .design-modern-command-center .identity-product-card {
    min-height: 116px;
    grid-template-columns: 66px minmax(0, 1fr) auto;
    grid-template-rows: 1fr auto;
  }

  .design-modern-command-center .identity-product-visual {
    grid-row: 1 / 3;
  }

  .design-modern-command-center .identity-product-copy {
    align-self: center;
    margin-top: 0;
  }

  .design-modern-command-center .identity-product-price {
    align-self: end;
    grid-column: 3;
    grid-row: 2;
  }

  .design-modern-command-center .identity-product-detail {
    grid-template-columns: minmax(220px, 1fr) 140px 90px;
  }

  .design-modern-command-center .identity-detail-actions {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .design-modern-command-center .identity-shop-modal {
    padding: 0;
    place-items: stretch;
  }

  .design-modern-command-center .identity-shop-dialog {
    width: 100%;
    max-height: 100dvh;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .design-modern-command-center .identity-shop-head {
    min-height: 88px;
    align-items: flex-start;
    padding: 16px 14px 13px;
  }

  .design-modern-command-center .identity-shop-title > span {
    font-size: 12px;
  }

  .design-modern-command-center .identity-shop-title h2 {
    max-width: 250px;
    font-size: 22px;
  }

  .design-modern-command-center .identity-shop-title p {
    display: none;
  }

  .design-modern-command-center .identity-refresh {
    display: none;
  }

  .design-modern-command-center .identity-shop-body {
    display: block;
    overflow-y: auto;
  }

  .design-modern-command-center .identity-wallet-column,
  .design-modern-command-center .identity-catalog-column {
    overflow: visible;
  }

  .design-modern-command-center .identity-wallet-column {
    display: grid;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--identity-line);
    grid-template-columns: 1fr 1fr;
  }

  .design-modern-command-center .identity-wallet-card {
    min-height: 176px;
    padding: 15px 12px;
  }

  .design-modern-command-center .identity-wallet-sigil {
    width: 46px;
    height: 46px;
    border-radius: 13px;
  }

  .design-modern-command-center .identity-wallet-card > strong {
    font-size: 32px;
  }

  .design-modern-command-center .identity-preview-card {
    min-height: 176px;
    padding: 12px;
  }

  .design-modern-command-center .identity-preview-profile {
    margin: 8px 0;
  }

  .design-modern-command-center .identity-preview-profile img {
    width: 36px;
    height: 36px;
  }

  .design-modern-command-center .identity-preview-profile em,
  .design-modern-command-center .identity-preview-note {
    display: none;
  }

  .design-modern-command-center .identity-history-card {
    display: none;
  }

  .design-modern-command-center .identity-catalog-column {
    padding: 15px 12px 22px;
  }

  .design-modern-command-center .identity-catalog-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .design-modern-command-center .identity-catalog-intro h3 {
    font-size: 20px;
  }

  .design-modern-command-center .identity-catalog-intro p {
    max-width: none;
    text-align: left;
  }

  .design-modern-command-center .identity-product-card {
    min-height: 112px;
    padding: 12px;
    grid-template-columns: 58px minmax(0, 1fr) auto;
  }

  .design-modern-command-center .identity-product-visual {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .design-modern-command-center .identity-product-state {
    top: 9px;
    right: 9px;
  }

  .design-modern-command-center .identity-product-detail {
    align-items: stretch;
    padding: 15px;
    grid-template-columns: minmax(0, 1fr) 90px;
  }

  .design-modern-command-center .identity-detail-copy {
    grid-column: 1 / -1;
  }

  .design-modern-command-center .identity-detail-status {
    padding-left: 0;
    border-left: 0;
  }

  .design-modern-command-center .identity-detail-price {
    align-items: flex-end;
  }

  .design-modern-command-center .identity-detail-actions {
    grid-template-columns: 1fr;
  }

  .design-modern-command-center .identity-shop-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .design-modern-command-center .identity-confirm-card {
    padding: 22px 18px;
  }
}

@media (max-width: 430px) {
  .design-modern-command-center .identity-wallet-column {
    grid-template-columns: 1fr;
  }

  .design-modern-command-center .identity-wallet-card {
    min-height: 156px;
  }

  .design-modern-command-center .identity-preview-card {
    min-height: 0;
  }

  .design-modern-command-center .identity-detail-status,
  .design-modern-command-center .identity-detail-price {
    min-height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .design-modern-command-center .identity-name-mark-aurora,
  .design-modern-command-center .identity-loading-sigil {
    animation: none;
  }

  .design-modern-command-center .identity-shop-dialog,
  .design-modern-command-center .identity-product-card,
  .design-modern-command-center .profile-stat-row.is-actionable {
    transition: none;
  }
}
/* Community World R3 — premium living-world gateway and modal */
.design-modern-command-center .community-gateway {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid rgba(86, 211, 239, 0.28);
  border-radius: 12px;
  background: #03131d;
  isolation: isolate;
  box-shadow:
    0 22px 46px rgba(0, 0, 0, 0.34),
    inset 0 1px rgba(255, 255, 255, 0.04);
}

.design-modern-command-center .community-gateway::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 13, 21, 0.96) 0%, rgba(2, 13, 21, 0.72) 42%, rgba(2, 13, 21, 0.08) 76%),
    linear-gradient(0deg, rgba(2, 13, 21, 0.78), transparent 58%);
}

.design-modern-command-center .community-gateway-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 43%;
  transform: scale(1.02);
}

.design-modern-command-center .community-gateway-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.48);
}

.design-modern-command-center .community-gateway-copy {
  position: relative;
  z-index: 2;
  width: min(620px, 61%);
  padding: 34px 36px 32px;
}

.design-modern-command-center .community-gateway-kicker,
.design-modern-command-center .community-world-brand > div > span,
.design-modern-command-center .community-card-head span,
.design-modern-command-center .community-project-copy > span,
.design-modern-command-center .guild-hall-banner > div > span,
.design-modern-command-center .community-party-head > div > span,
.design-modern-command-center .companion-adoption-head > span {
  display: block;
  color: #79e8fb;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.design-modern-command-center .community-gateway-copy h2 {
  margin: 8px 0 6px;
  color: #f8fbff;
  font-size: clamp(27px, 2.5vw, 40px);
  line-height: 1.12;
  text-shadow: 0 2px 26px rgba(48, 210, 245, 0.24);
}

.design-modern-command-center .community-gateway-copy p {
  max-width: 590px;
  margin: 0 0 20px;
  color: #bad0d9;
  font-size: 15px;
  line-height: 1.65;
}

.design-modern-command-center .community-gateway-copy button,
.design-modern-command-center .community-project-options button,
.design-modern-command-center .community-world-empty button,
.design-modern-command-center .community-privacy-card button,
.design-modern-command-center .companion-adopt-form button,
.design-modern-command-center [data-companion-greet],
.design-modern-command-center .community-party-head button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(104, 232, 255, 0.45);
  border-radius: 7px;
  background: linear-gradient(135deg, #0a8cab, #1dd1d2);
  color: #031018;
  padding: 0 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 178, 214, 0.2);
  transition: transform 160ms ease, filter 160ms ease, border-color 160ms ease;
}

.design-modern-command-center .community-gateway-copy button:hover,
.design-modern-command-center .community-project-options button:hover,
.design-modern-command-center .community-privacy-card button:hover,
.design-modern-command-center .companion-adopt-form button:hover,
.design-modern-command-center [data-companion-greet]:hover,
.design-modern-command-center .community-party-head button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.design-modern-command-center .community-gateway-copy button .ui-glyph,
.design-modern-command-center .community-party-head button .ui-glyph {
  width: 19px;
  height: 19px;
  background-color: currentColor;
}

.design-modern-command-center .community-gateway-pulse {
  position: absolute;
  z-index: 3;
  right: 20px;
  bottom: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(86px, 1fr));
  gap: 7px;
  width: min(360px, 38%);
}

.design-modern-command-center .community-gateway-pulse > div {
  display: flex;
  min-height: 66px;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(101, 220, 244, 0.22);
  border-radius: 8px;
  background: rgba(2, 15, 24, 0.82);
  padding: 8px 12px;
  backdrop-filter: blur(10px);
}

.design-modern-command-center .community-gateway-pulse small {
  color: #8da8b3;
  font-size: 13px;
}

.design-modern-command-center .community-gateway-pulse strong {
  color: #f6d88c;
  font-size: 22px;
  line-height: 1.05;
}

.design-modern-command-center.community-world-open {
  overflow: hidden;
}

.design-modern-command-center .community-world-modal {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: grid;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.design-modern-command-center .party-modal {
  z-index: 2600;
}

.design-modern-command-center .community-world-modal.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.design-modern-command-center .community-world-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 7, 12, 0.88);
  backdrop-filter: blur(12px);
}

.design-modern-command-center .community-world-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(1420px, calc(100vw - 42px));
  height: min(920px, calc(100vh - 34px));
  overflow: hidden;
  border: 1px solid rgba(103, 224, 246, 0.34);
  border-radius: 15px;
  background:
    radial-gradient(circle at 54% -16%, rgba(28, 137, 161, 0.18), transparent 38%),
    #03121b;
  color: #eef8fb;
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.68),
    0 0 0 1px rgba(240, 201, 116, 0.06) inset;
}

.design-modern-command-center .community-world-head {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(81, 174, 197, 0.18);
  padding: 13px 18px 12px 22px;
  background: rgba(2, 12, 19, 0.88);
}

.design-modern-command-center .community-world-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 13px;
}

.design-modern-command-center .community-world-brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(91, 226, 250, 0.4);
  border-radius: 11px;
  background:
    radial-gradient(circle, rgba(66, 222, 242, 0.22), transparent 64%),
    #071d29;
  box-shadow: inset 0 0 20px rgba(57, 204, 230, 0.08);
}

.design-modern-command-center .community-world-brand-icon {
  width: 25px;
  height: 25px;
  background-color: #75e7f8;
}

.design-modern-command-center .community-world-brand h2 {
  margin: 0;
  font-size: 22px;
}

.design-modern-command-center .community-world-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 10px;
  margin-top: 3px;
}

.design-modern-command-center .community-world-trial-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 1px solid rgba(246, 205, 115, 0.34);
  border-radius: 999px;
  background: rgba(105, 72, 18, 0.3);
  color: #f6d88c;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.design-modern-command-center .community-world-trial-note {
  margin: 2px 0 0;
  color: #91aeb8;
  font-size: 11px;
  line-height: 1.25;
}

.design-modern-command-center .community-world-head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.design-modern-command-center .community-world-live {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(84, 215, 164, 0.3);
  border-radius: 999px;
  background: rgba(11, 60, 47, 0.28);
  color: #a4eccd;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
}

.design-modern-command-center .community-world-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #51e6a3;
  box-shadow: 0 0 12px #51e6a3;
}

.design-modern-command-center .community-world-close {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(112, 202, 221, 0.25);
  border-radius: 8px;
  background: #081e29;
  color: #d7edf3;
  font-size: 25px;
  cursor: pointer;
}

.design-modern-command-center .community-world-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  border-bottom: 1px solid rgba(82, 175, 198, 0.2);
  background: rgba(42, 116, 134, 0.12);
}

.design-modern-command-center .community-world-tabs button {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: rgba(2, 15, 23, 0.88);
  color: #819da7;
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.design-modern-command-center .community-world-tabs button:hover {
  color: #cae9f0;
  background: rgba(9, 42, 54, 0.92);
}

.design-modern-command-center .community-world-tabs button.active {
  border-bottom-color: #f0c46f;
  background:
    linear-gradient(180deg, rgba(22, 97, 115, 0.44), rgba(5, 27, 37, 0.92));
  color: #f4d48e;
  box-shadow: inset 0 -10px 24px rgba(227, 178, 84, 0.05);
}

.design-modern-command-center .community-world-tab-icon {
  width: 20px;
  height: 20px;
  background-color: currentColor;
}

.design-modern-command-center .community-world-content {
  min-height: 0;
  overflow: auto;
  padding: 16px;
  scrollbar-color: #1b6d82 #04141d;
}

.design-modern-command-center .community-world-loading,
.design-modern-command-center .community-world-empty {
  display: flex;
  min-height: 420px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.design-modern-command-center .community-world-loading.compact {
  min-height: 300px;
}

.design-modern-command-center .community-world-loading > span {
  width: 46px;
  height: 46px;
  border: 3px solid rgba(87, 215, 241, 0.18);
  border-top-color: #66def3;
  border-radius: 50%;
  animation: community-world-spin 900ms linear infinite;
}

.design-modern-command-center .community-world-loading strong,
.design-modern-command-center .community-world-empty h3 {
  margin: 0;
  color: #f4f9fb;
  font-size: 20px;
}

.design-modern-command-center .community-world-loading p,
.design-modern-command-center .community-world-empty p {
  max-width: 520px;
  margin: 0;
  color: #8fa8b1;
  font-size: 14px;
  line-height: 1.65;
}

.design-modern-command-center .community-world-empty-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid rgba(94, 218, 241, 0.32);
  border-radius: 15px;
  background: rgba(11, 48, 61, 0.62);
}

.design-modern-command-center .community-world-empty-icon .ui-glyph {
  width: 28px;
  height: 28px;
  background-color: #74e2f3;
}

.design-modern-command-center .community-world-notice,
.design-modern-command-center .community-world-error {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(82, 219, 160, 0.3);
  border-radius: 7px;
  background: rgba(15, 77, 58, 0.28);
  color: #b9efd5;
  margin-bottom: 12px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
}

.design-modern-command-center .community-world-error {
  border-color: rgba(239, 111, 111, 0.35);
  background: rgba(112, 31, 37, 0.28);
  color: #ffd1d3;
}

.design-modern-command-center .community-world-error button {
  border: 0;
  background: transparent;
  color: #fff0b9;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

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

.design-modern-command-center .community-square-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 348px;
  gap: 14px;
  min-height: 100%;
}

.design-modern-command-center .community-square-scene {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid rgba(96, 213, 238, 0.26);
  border-radius: 11px;
  background: #04100d;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.3);
}

.design-modern-command-center .community-square-scene-art {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 50%;
  pointer-events: none;
  user-select: none;
}

.design-modern-command-center .community-square-scene-art-radiant {
  opacity: var(--community-tree-energy, 0);
  transition: opacity 800ms ease;
}

.design-modern-command-center .community-tree-complete .community-square-scene-art-radiant {
  animation: community-tree-radiance 4.8s ease-in-out infinite;
}

@keyframes community-tree-radiance {
  0%,
  100% {
    opacity: 0.9;
    filter: brightness(0.98);
  }
  50% {
    opacity: 1;
    filter: brightness(1.06);
  }
}

.design-modern-command-center .community-square-scene-wash {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(1, 10, 12, 0.5), transparent 30%, transparent 66%, rgba(1, 10, 10, 0.68)),
    radial-gradient(circle at 58% 38%, transparent 26%, rgba(0, 8, 8, 0.14) 76%);
}

.design-modern-command-center .community-square-scene-title {
  position: absolute;
  z-index: 3;
  top: 19px;
  left: 21px;
  max-width: 420px;
  text-shadow: 0 2px 20px #000;
}

.design-modern-command-center .community-square-scene-title > span {
  color: #6be0f4;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.design-modern-command-center .community-square-scene-title h3 {
  margin: 4px 0 2px;
  font-size: clamp(25px, 2.4vw, 38px);
}

.design-modern-command-center .community-square-scene-title p {
  margin: 0;
  color: #b7ced6;
  font-size: 14px;
}

.design-modern-command-center .community-square-legend {
  position: absolute;
  z-index: 4;
  right: 16px;
  bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.design-modern-command-center .community-square-legend span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(109, 214, 234, 0.2);
  border-radius: 999px;
  background: rgba(2, 14, 22, 0.8);
  color: #bed1d7;
  padding: 0 10px;
  font-size: 13px;
  backdrop-filter: blur(8px);
}

.design-modern-command-center .community-square-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #65dcf2;
  box-shadow: 0 0 9px currentColor;
}

.design-modern-command-center .community-square-legend .game i {
  background: #f0bf64;
}

.design-modern-command-center .community-square-legend .both i {
  background: linear-gradient(135deg, #66def1 45%, #f0bf64 55%);
}

.design-modern-command-center .community-presence-markers {
  position: absolute;
  z-index: 2;
  inset: 0;
}

.design-modern-command-center .community-presence-marker {
  position: absolute;
  display: grid;
  min-width: 86px;
  justify-items: center;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.66));
}

.design-modern-command-center .community-presence-spirit {
  position: relative;
  display: block;
  width: 48px;
  height: 78px;
  transform-origin: 50% 92%;
  animation: community-presence-spirit-drift 3.4s ease-in-out infinite;
  animation-delay: var(--presence-delay, 0s);
}

.design-modern-command-center .community-presence-figure {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.design-modern-command-center .community-presence-marker.web .community-presence-figure {
  filter:
    drop-shadow(0 0 7px rgba(74, 225, 255, 0.9))
    drop-shadow(0 0 16px rgba(48, 185, 255, 0.52));
}

.design-modern-command-center .community-presence-marker.game .community-presence-figure {
  filter:
    drop-shadow(0 0 7px rgba(255, 213, 116, 0.95))
    drop-shadow(0 0 18px rgba(244, 168, 56, 0.58));
}

.design-modern-command-center .community-presence-marker.both .community-presence-figure {
  filter:
    drop-shadow(-2px 0 7px rgba(82, 230, 255, 0.78))
    drop-shadow(2px 0 7px rgba(255, 207, 105, 0.75))
    drop-shadow(0 0 17px rgba(234, 221, 166, 0.32));
}

@keyframes community-presence-spirit-drift {
  0%,
  100% {
    transform: translate3d(-1px, 1px, 0) scale(0.98);
    filter: brightness(0.92);
  }
  45% {
    transform: translate3d(2px, -5px, 0) scale(1.035);
    filter: brightness(1.12);
  }
  70% {
    transform: translate3d(-2px, -2px, 0) scale(1.01);
    filter: brightness(1.02);
  }
}

.design-modern-command-center .community-presence-marker strong {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 8px #000, 0 1px 3px #000;
}

.design-modern-command-center .community-presence-marker strong {
  margin-top: 2px;
  color: #effcff;
  font-size: 13px;
}

.design-modern-command-center .community-presence-marker.p1 { left: 28%; top: 67%; }
.design-modern-command-center .community-presence-marker.p2 { left: 45%; top: 62%; }
.design-modern-command-center .community-presence-marker.p3 { left: 58%; top: 71%; }
.design-modern-command-center .community-presence-marker.p4 { left: 18%; top: 55%; }
.design-modern-command-center .community-presence-marker.p5 { left: 70%; top: 66%; }
.design-modern-command-center .community-presence-marker.p6 { left: 35%; top: 78%; }
.design-modern-command-center .community-presence-marker.p7 { left: 49%; top: 82%; }
.design-modern-command-center .community-presence-marker.p8 { left: 22%; top: 82%; }
.design-modern-command-center .community-presence-marker.p9 { left: 76%; top: 78%; }
.design-modern-command-center .community-presence-marker.p10 { left: 34%; top: 50%; }
.design-modern-command-center .community-presence-marker.p11 { left: 56%; top: 53%; }
.design-modern-command-center .community-presence-marker.p12 { left: 79%; top: 58%; }
.design-modern-command-center .community-presence-marker.p13 { left: 12%; top: 68%; }
.design-modern-command-center .community-presence-marker.p14 { left: 40%; top: 90%; }
.design-modern-command-center .community-presence-marker.p15 { left: 67%; top: 88%; }
.design-modern-command-center .community-presence-marker.p16 { left: 51%; top: 44%; }

.design-modern-command-center .community-square-side {
  display: grid;
  align-content: start;
  gap: 12px;
}

.design-modern-command-center .community-presence-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.design-modern-command-center .community-presence-summary > div {
  min-width: 0;
  border: 1px solid rgba(87, 194, 216, 0.2);
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(9, 39, 51, 0.92), rgba(3, 19, 28, 0.94));
  padding: 12px 10px;
}

.design-modern-command-center .community-presence-summary small,
.design-modern-command-center .community-presence-summary span {
  display: block;
  color: #77929c;
  font-size: 13px;
  line-height: 1.35;
}

.design-modern-command-center .community-presence-summary strong {
  display: block;
  color: #f0cc7e;
  font-size: 24px;
  line-height: 1.1;
  margin: 4px 0 3px;
}

.design-modern-command-center .community-privacy-card,
.design-modern-command-center .community-activity-card,
.design-modern-command-center .community-project-progress-card,
.design-modern-command-center .community-project-action-card,
.design-modern-command-center .guild-hall-announcements,
.design-modern-command-center .guild-hall-events,
.design-modern-command-center .community-party-board,
.design-modern-command-center .companion-bond-card,
.design-modern-command-center .companion-moments-card {
  border: 1px solid rgba(86, 192, 214, 0.2);
  border-radius: 10px;
  background:
    linear-gradient(160deg, rgba(7, 32, 43, 0.95), rgba(3, 18, 27, 0.96));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.design-modern-command-center .community-privacy-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
}

.design-modern-command-center .community-privacy-card span {
  color: #72ddf0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.design-modern-command-center .community-privacy-card strong {
  display: block;
  margin: 2px 0;
  color: #eef8fb;
  font-size: 15px;
}

.design-modern-command-center .community-privacy-card p {
  margin: 0;
  color: #8ca5ae;
  font-size: 13px;
  line-height: 1.5;
}

.design-modern-command-center .community-privacy-card button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 13px;
  font-size: 13px;
}

.design-modern-command-center .community-activity-card {
  padding: 14px;
}

.design-modern-command-center .community-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.design-modern-command-center .community-card-head h3 {
  margin: 3px 0 0;
  color: #f0f7f9;
  font-size: 17px;
}

.design-modern-command-center .community-card-head > small {
  border: 1px solid rgba(86, 215, 165, 0.25);
  border-radius: 999px;
  color: #8edebc;
  padding: 4px 8px;
  font-size: 12px;
}

.design-modern-command-center .community-activity-list {
  display: grid;
  gap: 6px;
}

.design-modern-command-center .community-activity-list article {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border-top: 1px solid rgba(94, 175, 191, 0.12);
  padding: 10px 0 4px;
}

.design-modern-command-center .community-activity-icon {
  width: 20px;
  height: 20px;
  background-color: #69dcee;
}

.design-modern-command-center .community-activity-list strong {
  display: block;
  color: #dcecf0;
  font-size: 13px;
}

.design-modern-command-center .community-activity-list p,
.design-modern-command-center .community-activity-list time,
.design-modern-command-center .community-activity-empty {
  margin: 1px 0 0;
  color: #77929b;
  font-size: 13px;
}

.design-modern-command-center .community-project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: 14px;
}

.design-modern-command-center .community-project-hero {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) minmax(260px, 0.48fr);
  align-items: center;
  gap: 20px;
  overflow: hidden;
  border: 1px solid rgba(211, 170, 85, 0.3);
  border-radius: 12px;
  background:
    radial-gradient(circle at 12% 50%, rgba(34, 209, 220, 0.16), transparent 24%),
    radial-gradient(circle at 88% 30%, rgba(224, 170, 74, 0.12), transparent 34%),
    linear-gradient(140deg, #092a35, #081b25 55%, #171b20);
  padding: 23px 26px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.22);
}

.design-modern-command-center .community-project-orb {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 1px solid rgba(104, 228, 244, 0.48);
  border-radius: 23px;
  background:
    radial-gradient(circle, rgba(97, 227, 242, 0.28), transparent 56%),
    #092331;
  transform: rotate(45deg);
  box-shadow:
    0 0 34px rgba(61, 205, 226, 0.22),
    inset 0 0 24px rgba(69, 204, 225, 0.12);
}

.design-modern-command-center .community-project-orb-icon {
  width: 36px;
  height: 36px;
  background-color: #f0c86f;
  transform: rotate(-45deg);
}

.design-modern-command-center .community-project-copy h3 {
  margin: 5px 0 5px;
  color: #f8fbfc;
  font-size: 27px;
}

.design-modern-command-center .community-project-copy p {
  margin: 0;
  color: #a8c0c8;
  font-size: 15px;
  line-height: 1.6;
}

.design-modern-command-center .community-project-period {
  margin-top: 10px;
  color: #e5c57e;
  font-size: 13px;
  font-weight: 700;
}

.design-modern-command-center .community-project-reward {
  border-left: 1px solid rgba(222, 185, 107, 0.22);
  padding-left: 22px;
}

.design-modern-command-center .community-project-reward small {
  color: #d0a956;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.design-modern-command-center .community-project-reward strong {
  display: block;
  margin-top: 5px;
  color: #f1deb1;
  font-size: 15px;
  line-height: 1.55;
}

.design-modern-command-center .community-project-progress-card,
.design-modern-command-center .community-project-action-card {
  padding: 21px;
}

.design-modern-command-center .community-project-progress-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.design-modern-command-center .community-project-progress-head span,
.design-modern-command-center .community-project-action-head span {
  color: #70dcee;
  font-size: 13px;
  font-weight: 800;
}

.design-modern-command-center .community-project-progress-head strong {
  display: block;
  color: #f1d18a;
  font-size: 21px;
}

.design-modern-command-center .community-project-progress {
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(81, 189, 210, 0.24);
  border-radius: 999px;
  background: #04141d;
  margin: 15px 0;
  padding: 2px;
}

.design-modern-command-center .community-project-progress i,
.design-modern-command-center .companion-bond-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #21aecd, #57e1d0 62%, #e5bd65);
  box-shadow: 0 0 16px rgba(61, 210, 224, 0.4);
}

.design-modern-command-center .community-project-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.design-modern-command-center .community-project-metrics span {
  border: 1px solid rgba(88, 180, 199, 0.15);
  border-radius: 7px;
  background: rgba(2, 15, 23, 0.55);
  padding: 11px;
}

.design-modern-command-center .community-project-metrics small {
  display: block;
  color: #718b95;
  font-size: 12px;
}

.design-modern-command-center .community-project-metrics strong {
  color: #dcecf0;
  font-size: 14px;
}

.design-modern-command-center .community-project-action-card .community-world-empty {
  min-height: 210px;
}

.design-modern-command-center .community-project-action-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.design-modern-command-center .community-project-action-head h3 {
  margin: 3px 0 0;
  font-size: 20px;
}

.design-modern-command-center .community-project-action-head > div:last-child {
  text-align: right;
}

.design-modern-command-center .community-project-action-head small {
  display: block;
  color: #78939d;
  font-size: 12px;
}

.design-modern-command-center .community-project-action-head strong {
  color: #f0cf83;
  font-size: 18px;
}

.design-modern-command-center .community-project-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 17px;
}

.design-modern-command-center .community-project-options button {
  min-height: 72px;
  flex-direction: column;
  border-color: rgba(221, 182, 99, 0.36);
  background: linear-gradient(155deg, #123b47, #0b2732);
  color: #f1d58e;
}

.design-modern-command-center .community-project-options button strong {
  font-size: 18px;
}

.design-modern-command-center .community-project-options button small {
  color: #93adb5;
  font-size: 12px;
}

.design-modern-command-center .community-project-options > p,
.design-modern-command-center .community-project-guard {
  grid-column: 1 / -1;
  color: #829ba4;
  font-size: 13px;
  line-height: 1.55;
}

.design-modern-command-center .community-project-guard {
  margin: 12px 0 0;
}

.design-modern-command-center .community-project-complete {
  display: flex;
  min-height: 210px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #dfeef1;
}

.design-modern-command-center .community-project-complete > .ui-glyph {
  width: 34px;
  height: 34px;
  background-color: #f0c86f;
}

.design-modern-command-center .community-project-complete strong {
  font-size: 19px;
}

.design-modern-command-center .community-project-complete p {
  margin: 3px 0 0;
  color: #8da5ad;
  font-size: 14px;
}

.design-modern-command-center .guild-hall-layout {
  display: grid;
  gap: 14px;
}

.design-modern-command-center .guild-hall-banner {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(222, 181, 91, 0.3);
  border-radius: 11px;
  background:
    radial-gradient(circle at 8% 50%, rgba(50, 203, 224, 0.15), transparent 25%),
    linear-gradient(130deg, #092834, #091923 60%, #181918);
  padding: 20px 24px;
}

.design-modern-command-center .guild-hall-crest {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 1px solid rgba(234, 196, 115, 0.42);
  border-radius: 18px;
  background: rgba(20, 58, 67, 0.72);
  transform: rotate(45deg);
}

.design-modern-command-center .guild-hall-crest .ui-glyph {
  width: 31px;
  height: 31px;
  background-color: #f0cb7c;
  transform: rotate(-45deg);
}

.design-modern-command-center .guild-hall-banner h3 {
  margin: 5px 0 3px;
  color: #f7f9f9;
  font-size: 27px;
}

.design-modern-command-center .guild-hall-banner p {
  margin: 0;
  color: #95adb5;
  font-size: 14px;
}

.design-modern-command-center .guild-hall-role {
  min-width: 190px;
  border-left: 1px solid rgba(216, 178, 100, 0.22);
  padding-left: 20px;
  text-align: right;
}

.design-modern-command-center .guild-hall-role small {
  display: block;
  color: #8ca7b0;
  font-size: 13px;
}

.design-modern-command-center .guild-hall-role strong {
  color: #efcf88;
  font-size: 16px;
}

.design-modern-command-center .guild-hall-columns {
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr);
  gap: 14px;
}

.design-modern-command-center .guild-hall-announcements,
.design-modern-command-center .guild-hall-events {
  min-width: 0;
  padding: 17px;
}

.design-modern-command-center .guild-hall-form {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(83, 186, 206, 0.16);
  border-radius: 8px;
  background: rgba(2, 15, 23, 0.55);
  margin-bottom: 12px;
  padding: 10px;
}

.design-modern-command-center .guild-hall-form.event {
  grid-template-columns: 1fr 0.75fr;
}

.design-modern-command-center .guild-hall-form textarea,
.design-modern-command-center .guild-hall-form.event button {
  grid-column: 1 / -1;
}

.design-modern-command-center .guild-hall-form input,
.design-modern-command-center .guild-hall-form textarea,
.design-modern-command-center .companion-adopt-form input {
  width: 100%;
  border: 1px solid rgba(87, 183, 202, 0.25);
  border-radius: 6px;
  outline: 0;
  background: #041720;
  color: #e8f3f5;
  padding: 10px 11px;
  font: inherit;
  font-size: 14px;
}

.design-modern-command-center .guild-hall-form input:focus,
.design-modern-command-center .guild-hall-form textarea:focus,
.design-modern-command-center .companion-adopt-form input:focus {
  border-color: #58cce1;
  box-shadow: 0 0 0 3px rgba(79, 201, 224, 0.1);
}

.design-modern-command-center .guild-hall-form button {
  min-height: 39px;
  border: 1px solid rgba(224, 184, 99, 0.35);
  border-radius: 6px;
  background: linear-gradient(135deg, #6e5624, #ba8e38);
  color: #fff4cf;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.design-modern-command-center .guild-hall-announcement-list,
.design-modern-command-center .guild-hall-event-list {
  display: grid;
  gap: 8px;
  max-height: 455px;
  overflow: auto;
  padding-right: 3px;
}

.design-modern-command-center .guild-hall-announcement-list article {
  border: 1px solid rgba(84, 171, 190, 0.14);
  border-radius: 7px;
  background: rgba(2, 14, 21, 0.5);
  padding: 11px;
}

.design-modern-command-center .guild-hall-announcement-list article > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.design-modern-command-center .guild-hall-announcement-list strong {
  color: #ecf5f7;
  font-size: 14px;
}

.design-modern-command-center .guild-hall-announcement-list time,
.design-modern-command-center .guild-hall-announcement-list small {
  color: #77919a;
  font-size: 12px;
}

.design-modern-command-center .guild-hall-announcement-list p {
  margin: 7px 0;
  color: #a6bac1;
  font-size: 14px;
  line-height: 1.55;
}

.design-modern-command-center .guild-hall-event {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid rgba(85, 178, 197, 0.16);
  border-radius: 8px;
  background: rgba(2, 15, 23, 0.52);
  padding: 12px;
}

.design-modern-command-center .guild-hall-event.canceled {
  opacity: 0.65;
}

.design-modern-command-center .guild-hall-event-time span,
.design-modern-command-center .guild-hall-event-time small {
  display: block;
}

.design-modern-command-center .guild-hall-event-time span {
  color: #f0cc82;
  font-size: 14px;
  font-weight: 800;
}

.design-modern-command-center .guild-hall-event-time small {
  color: #78939c;
  font-size: 12px;
}

.design-modern-command-center .guild-hall-event-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.design-modern-command-center .guild-hall-event-title h4 {
  margin: 0;
  color: #ecf5f7;
  font-size: 15px;
}

.design-modern-command-center .guild-hall-event-title p {
  margin: 3px 0 0;
  color: #8fa7af;
  font-size: 13px;
}

.design-modern-command-center .guild-hall-canceled {
  color: #e99c9c;
  font-size: 12px;
  font-weight: 800;
}

.design-modern-command-center .guild-hall-rsvp {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
}

.design-modern-command-center .guild-hall-rsvp button {
  min-height: 30px;
  border: 1px solid rgba(89, 190, 210, 0.22);
  border-radius: 5px;
  background: #06202b;
  color: #9bb4bc;
  padding: 0 9px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.design-modern-command-center .guild-hall-rsvp button.active {
  border-color: rgba(85, 222, 177, 0.4);
  background: rgba(19, 94, 70, 0.52);
  color: #baf0d6;
}

.design-modern-command-center .guild-hall-rsvp > span {
  color: #78939d;
  font-size: 12px;
}

.design-modern-command-center .guild-hall-rsvp .guild-hall-cancel-button {
  margin-left: auto;
  border-color: rgba(226, 103, 103, 0.25);
  color: #eeb4b4;
}

.design-modern-command-center .guild-hall-empty-copy,
.design-modern-command-center .guild-hall-cancel-reason {
  color: #829ca5;
  font-size: 13px;
}

.design-modern-command-center .guild-hall-privacy-note,
.design-modern-command-center .community-party-honesty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  color: #7f9aa3;
  font-size: 13px;
}

.design-modern-command-center .guild-hall-privacy-note .ui-glyph {
  width: 15px;
  height: 15px;
  background-color: #6acfe1;
}

.design-modern-command-center .community-party-layout {
  display: grid;
  gap: 14px;
}

.design-modern-command-center .community-party-head {
  position: relative;
  display: flex;
  min-height: 126px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  border: 1px solid rgba(86, 209, 233, 0.25);
  border-radius: 11px;
  background:
    linear-gradient(90deg, rgba(3, 25, 36, 0.98), rgba(5, 31, 42, 0.84)),
    radial-gradient(circle at 83% 38%, rgba(225, 179, 88, 0.22), transparent 28%);
  padding: 22px 24px;
}

.design-modern-command-center .community-party-head::before {
  content: "";
  position: absolute;
  inset: auto -60px -95px auto;
  width: 280px;
  height: 210px;
  border: 1px solid rgba(85, 214, 236, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 35px rgba(76, 196, 219, 0.035),
    0 0 0 70px rgba(76, 196, 219, 0.025);
  pointer-events: none;
}

.design-modern-command-center .community-party-head > * {
  position: relative;
  z-index: 1;
}

.design-modern-command-center .community-party-head h3 {
  margin: 5px 0 4px;
  color: #f5fafb;
  font-size: clamp(24px, 2.5vw, 34px);
}

.design-modern-command-center .community-party-head p {
  margin: 0;
  color: #9db5bd;
  font-size: 15px;
}

.design-modern-command-center .community-party-head button:disabled,
.design-modern-command-center .community-project-options button:disabled,
.design-modern-command-center .companion-adopt-form button:disabled,
.design-modern-command-center [data-companion-greet]:disabled,
.design-modern-command-center .guild-hall-form button:disabled,
.design-modern-command-center .community-party-action:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  filter: saturate(0.55);
  transform: none;
}

.design-modern-command-center .community-party-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 10px;
  min-height: 420px;
  padding: 14px;
}

.design-modern-command-center .community-party-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 250px;
  flex-direction: column;
  border: 1px solid rgba(90, 190, 211, 0.18);
  border-radius: 9px;
  background:
    linear-gradient(155deg, rgba(8, 42, 54, 0.76), rgba(2, 15, 23, 0.92));
  padding: 15px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.design-modern-command-center .community-party-card.owner {
  border-color: rgba(232, 192, 109, 0.34);
  background:
    linear-gradient(155deg, rgba(70, 57, 25, 0.35), rgba(2, 17, 24, 0.94));
}

.design-modern-command-center .community-party-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 11px;
}

.design-modern-command-center .community-party-card-top span {
  overflow: hidden;
  color: #73dff1;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.design-modern-command-center .community-party-card.owner .community-party-card-top span {
  color: #f0ce84;
}

.design-modern-command-center .community-party-card-top small {
  flex: 0 0 auto;
  color: #748f99;
  font-size: 12px;
}

.design-modern-command-center .community-party-card h4 {
  margin: 0 0 4px;
  color: #f2f8fa;
  font-size: 18px;
  line-height: 1.35;
}

.design-modern-command-center .community-party-card > p {
  margin: 0 0 11px;
  color: #91a9b1;
  font-size: 13px;
  line-height: 1.5;
}

.design-modern-command-center .community-party-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.design-modern-command-center .community-party-tags span {
  min-height: 27px;
  border: 1px solid rgba(83, 190, 211, 0.17);
  border-radius: 999px;
  background: rgba(8, 43, 55, 0.64);
  color: #b4cad1;
  padding: 4px 9px;
  font-size: 12px;
  line-height: 17px;
}

.design-modern-command-center .community-party-note {
  border-left: 2px solid rgba(235, 193, 105, 0.45);
  color: #b9a986 !important;
  padding-left: 9px;
}

.design-modern-command-center .community-party-card .party-requests {
  display: grid;
  gap: 6px;
  margin: 2px 0 11px;
}

.design-modern-command-center .community-party-card .party-request {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(85, 189, 209, 0.14);
  border-radius: 6px;
  background: rgba(2, 14, 21, 0.52);
  padding: 7px;
}

.design-modern-command-center .community-party-card .party-request-main {
  min-width: 0;
}

.design-modern-command-center .community-party-card .party-request-main strong,
.design-modern-command-center .community-party-card .party-request-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.design-modern-command-center .community-party-card .party-request-main strong {
  color: #dbecef;
  font-size: 12px;
}

.design-modern-command-center .community-party-card .party-request-main small,
.design-modern-command-center .community-party-card .party-request-status {
  color: #718d96;
  font-size: 11px;
}

.design-modern-command-center .community-party-card .party-request button {
  min-height: 28px;
  border: 1px solid rgba(84, 204, 167, 0.28);
  border-radius: 5px;
  background: rgba(19, 83, 65, 0.55);
  color: #b6edd6;
  padding: 0 7px;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.design-modern-command-center .community-party-card .party-request button[data-party-request-action="reject"] {
  border-color: rgba(222, 102, 102, 0.25);
  background: rgba(89, 30, 34, 0.48);
  color: #ecb9b9;
}

.design-modern-command-center .community-party-action {
  min-height: 38px;
  border: 1px solid rgba(89, 211, 233, 0.32);
  border-radius: 6px;
  background: rgba(10, 92, 110, 0.64);
  color: #c9f5fb;
  margin-top: auto;
  padding: 0 13px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.design-modern-command-center .community-party-card.owner .community-party-action {
  border-color: rgba(235, 189, 94, 0.34);
  background: rgba(99, 68, 20, 0.55);
  color: #f4d799;
}

.design-modern-command-center .community-party-empty {
  grid-column: 1 / -1;
  display: flex;
  min-height: 380px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.design-modern-command-center .community-party-empty .ui-glyph {
  width: 42px;
  height: 42px;
  background-color: #64d9ed;
  margin-bottom: 13px;
}

.design-modern-command-center .community-party-empty strong {
  color: #e8f4f6;
  font-size: 18px;
}

.design-modern-command-center .community-party-empty p {
  margin: 4px 0 0;
  color: #819aa3;
  font-size: 14px;
}

.design-modern-command-center .companion-adoption-layout {
  display: grid;
  gap: 16px;
}

.design-modern-command-center .companion-adoption-head {
  max-width: 760px;
  margin: 10px auto 2px;
  text-align: center;
}

.design-modern-command-center .companion-adoption-head h3 {
  margin: 6px 0 5px;
  color: #f6fafb;
  font-size: clamp(26px, 3vw, 38px);
}

.design-modern-command-center .companion-adoption-head p {
  margin: 0;
  color: #9db4bc;
  font-size: 15px;
  line-height: 1.6;
}

.design-modern-command-center .companion-species-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.design-modern-command-center .companion-species-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(90, 193, 214, 0.2);
  border-radius: 11px;
  outline: 0;
  background:
    linear-gradient(160deg, rgba(8, 37, 48, 0.96), rgba(2, 15, 22, 0.98));
  color: inherit;
  padding: 0 0 16px;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.design-modern-command-center .companion-species-card:hover,
.design-modern-command-center .companion-species-card.active {
  transform: translateY(-2px);
  border-color: rgba(237, 194, 105, 0.55);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(237, 194, 105, 0.08) inset;
}

.design-modern-command-center .companion-species-card.active::after {
  content: "เลือกแล้ว";
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 27px;
  border: 1px solid rgba(248, 213, 140, 0.42);
  border-radius: 999px;
  background: rgba(74, 52, 15, 0.82);
  color: #f6d994;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  line-height: 17px;
  backdrop-filter: blur(8px);
}

.design-modern-command-center .companion-species-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 44%;
  border-bottom: 1px solid rgba(93, 190, 210, 0.16);
}

.design-modern-command-center .companion-species-card > span,
.design-modern-command-center .companion-species-card > strong,
.design-modern-command-center .companion-species-card > p {
  display: block;
  margin-right: 16px;
  margin-left: 16px;
}

.design-modern-command-center .companion-species-card > span {
  margin-top: 13px;
  color: #73dff1;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.design-modern-command-center .companion-species-card > strong {
  margin-top: 3px;
  color: #f3f8fa;
  font-size: 18px;
}

.design-modern-command-center .companion-species-card > p {
  margin-top: 5px;
  margin-bottom: 0;
  color: #8ca6ae;
  font-size: 13px;
  line-height: 1.55;
}

.design-modern-command-center .companion-adopt-form {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1fr) auto;
  align-items: end;
  gap: 12px;
  border: 1px solid rgba(93, 199, 219, 0.2);
  border-radius: 10px;
  background: rgba(4, 24, 33, 0.86);
  padding: 15px;
}

.design-modern-command-center .companion-adopt-form small,
.design-modern-command-center .companion-adopt-form label > span {
  display: block;
  color: #7d99a2;
  font-size: 12px;
  font-weight: 700;
}

.design-modern-command-center .companion-adopt-form strong {
  display: block;
  margin-top: 4px;
  color: #efcf8a;
  font-size: 15px;
}

.design-modern-command-center .companion-adopt-form label {
  display: block;
}

.design-modern-command-center .companion-adopt-form input {
  margin-top: 5px;
}

.design-modern-command-center .companion-permanent-note {
  margin: -5px 0 0;
  color: #78949d;
  font-size: 13px;
  text-align: center;
}

.design-modern-command-center .companion-home-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.8fr) minmax(380px, 1fr);
  grid-template-rows: auto auto;
  gap: 14px;
}

.design-modern-command-center .companion-portrait-card {
  position: relative;
  grid-row: 1 / 3;
  min-height: 660px;
  overflow: hidden;
  border: 1px solid rgba(97, 213, 235, 0.29);
  border-radius: 12px;
  background: #041720;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.36),
    inset 0 1px rgba(255, 255, 255, 0.04);
}

.design-modern-command-center .companion-portrait-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 42%, rgba(2, 12, 18, 0.28) 58%, rgba(2, 12, 18, 0.97) 91%),
    radial-gradient(circle at 50% 30%, transparent 28%, rgba(0, 8, 12, 0.22) 78%);
}

.design-modern-command-center .companion-portrait-card.gold {
  border-color: rgba(234, 191, 98, 0.38);
}

.design-modern-command-center .companion-portrait-card.rose {
  border-color: rgba(225, 134, 146, 0.34);
}

.design-modern-command-center .companion-portrait-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 41%;
}

.design-modern-command-center .companion-portrait-copy {
  position: absolute;
  z-index: 2;
  right: 25px;
  bottom: 24px;
  left: 25px;
}

.design-modern-command-center .companion-portrait-copy span {
  color: #73e0f2;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.design-modern-command-center .companion-portrait-card.gold .companion-portrait-copy span {
  color: #f0cc7e;
}

.design-modern-command-center .companion-portrait-card.rose .companion-portrait-copy span {
  color: #f0aeb7;
}

.design-modern-command-center .companion-portrait-copy h3 {
  margin: 5px 0 5px;
  color: #fff;
  font-size: clamp(30px, 4vw, 46px);
  text-shadow: 0 2px 24px #000;
}

.design-modern-command-center .companion-portrait-copy p {
  max-width: 530px;
  margin: 0;
  color: #b7cbd1;
  font-size: 14px;
  line-height: 1.6;
}

.design-modern-command-center .companion-bond-card,
.design-modern-command-center .companion-moments-card {
  padding: 20px;
}

.design-modern-command-center .companion-stage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.design-modern-command-center .companion-stage-head span {
  color: #9db2b8;
  font-size: 14px;
}

.design-modern-command-center .companion-stage-head h3 {
  margin: 3px 0 0;
  color: #f4f9fa;
  font-size: 24px;
}

.design-modern-command-center .companion-stage-head > strong {
  color: #efcc7f;
  font-size: 18px;
}

.design-modern-command-center .companion-bond-progress {
  height: 10px;
  overflow: hidden;
  border: 1px solid rgba(92, 200, 220, 0.17);
  border-radius: 999px;
  background: #021019;
  margin: 18px 0 9px;
}

.design-modern-command-center .companion-bond-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #18a9c0, #68e4e8, #e5be68);
  box-shadow: 0 0 16px rgba(62, 218, 233, 0.45);
  transition: width 400ms ease;
}

.design-modern-command-center .companion-bond-card > p {
  margin: 0 0 16px;
  color: #8ba4ac;
  font-size: 14px;
}

.design-modern-command-center [data-companion-greet] {
  width: 100%;
}

.design-modern-command-center .companion-no-decay {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-top: 1px solid rgba(92, 182, 201, 0.12);
  color: #9db4bb;
  margin-top: 15px;
  padding-top: 13px;
  font-size: 14px;
}

.design-modern-command-center .companion-no-decay .ui-glyph {
  width: 15px;
  height: 15px;
  background-color: #66d7e9;
}

.design-modern-command-center .companion-moments-list {
  display: grid;
  gap: 6px;
}

.design-modern-command-center .companion-moments-list article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(91, 180, 198, 0.12);
  padding: 11px 0 5px;
}

.design-modern-command-center .companion-moments-list article > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: rgba(16, 76, 91, 0.55);
}

.design-modern-command-center .companion-moments-list .ui-glyph {
  width: 16px;
  height: 16px;
  background-color: #6bdceb;
}

.design-modern-command-center .companion-moments-list strong,
.design-modern-command-center .companion-moments-list small {
  display: block;
}

.design-modern-command-center .companion-moments-list strong {
  color: #dbecef;
  font-size: 14px;
}

.design-modern-command-center .companion-moments-list small,
.design-modern-command-center .companion-moments-list > p {
  color: #91aab2;
  font-size: 13px;
}

.design-modern-command-center .companion-moments-list b {
  color: #efca7c;
  font-size: 14px;
}

.design-modern-command-center .community-world-dialog button:focus-visible,
.design-modern-command-center .community-gateway button:focus-visible,
.design-modern-command-center .community-world-dialog input:focus-visible,
.design-modern-command-center .community-world-dialog textarea:focus-visible {
  outline: 2px solid #8fe8f5;
  outline-offset: 2px;
}

@media (max-width: 1100px) {
  .design-modern-command-center .community-gateway-copy {
    width: 66%;
  }

  .design-modern-command-center .community-gateway-pulse {
    width: min(330px, 42%);
  }

  .design-modern-command-center .community-world-dialog {
    width: calc(100vw - 24px);
    height: calc(100vh - 20px);
  }

  .design-modern-command-center .community-square-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .design-modern-command-center .community-square-scene {
    min-height: 560px;
  }

  .design-modern-command-center .community-project-layout {
    grid-template-columns: 1fr;
  }

  .design-modern-command-center .community-project-progress-card,
  .design-modern-command-center .community-project-action-card {
    min-height: 0;
  }

  .design-modern-command-center .guild-hall-columns {
    grid-template-columns: 1fr;
  }

  .design-modern-command-center .community-party-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .design-modern-command-center .companion-home-layout {
    grid-template-columns: minmax(330px, 0.8fr) minmax(330px, 1fr);
  }
}

@media (max-width: 760px) {
  .design-modern-command-center .community-gateway {
    min-height: 430px;
  }

  .design-modern-command-center .community-gateway::after {
    background:
      linear-gradient(0deg, rgba(2, 13, 21, 0.98) 0%, rgba(2, 13, 21, 0.72) 55%, rgba(2, 13, 21, 0.18) 100%);
  }

  .design-modern-command-center .community-gateway-art {
    height: 72%;
    object-position: 59% 38%;
  }

  .design-modern-command-center .community-gateway-copy {
    position: absolute;
    right: 0;
    bottom: 78px;
    left: 0;
    width: auto;
    padding: 20px;
  }

  .design-modern-command-center .community-gateway-copy h2 {
    font-size: 29px;
  }

  .design-modern-command-center .community-gateway-copy p {
    max-width: none;
    font-size: 14px;
  }

  .design-modern-command-center .community-gateway-pulse {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
  }

  .design-modern-command-center .community-gateway-pulse > div {
    min-height: 57px;
    padding: 7px 9px;
  }

  .design-modern-command-center .community-gateway-pulse strong {
    font-size: 19px;
  }

  .design-modern-command-center .community-world-dialog {
    width: 100vw;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .design-modern-command-center .community-world-head {
    min-height: 66px;
    padding: 9px 10px 9px 13px;
  }

  .design-modern-command-center .community-world-brand {
    gap: 9px;
  }

  .design-modern-command-center .community-world-brand-mark {
    width: 41px;
    height: 41px;
  }

  .design-modern-command-center .community-world-brand > div > span {
    font-size: 11px;
  }

  .design-modern-command-center .community-world-brand h2 {
    font-size: 17px;
  }

  .design-modern-command-center .community-world-title-row {
    gap: 5px 7px;
  }

  .design-modern-command-center .community-world-trial-badge {
    min-height: 20px;
    padding: 2px 7px;
    font-size: 9px;
  }

  .design-modern-command-center .community-world-trial-note {
    font-size: 10px;
  }

  .design-modern-command-center .community-world-live {
    display: none;
  }

  .design-modern-command-center .community-world-tabs {
    overflow-x: auto;
    grid-template-columns: repeat(5, minmax(72px, 1fr));
    scrollbar-width: none;
  }

  .design-modern-command-center .community-world-tabs::-webkit-scrollbar {
    display: none;
  }

  .design-modern-command-center .community-world-tabs button {
    min-height: 58px;
    flex-direction: column;
    gap: 3px;
    padding: 5px 7px;
    font-size: 12px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .design-modern-command-center .community-world-tab-icon {
    width: 19px;
    height: 19px;
  }

  .design-modern-command-center .community-world-content {
    padding: 10px;
  }

  .design-modern-command-center .community-square-layout {
    grid-template-columns: 1fr;
  }

  .design-modern-command-center .community-square-scene {
    min-height: 330px;
  }

  .design-modern-command-center .community-square-scene-art {
    object-position: 58% 50%;
  }

  .design-modern-command-center .community-square-scene-title {
    top: 13px;
    left: 14px;
  }

  .design-modern-command-center .community-square-scene-title h3 {
    font-size: 25px;
  }

  .design-modern-command-center .community-square-scene-title p {
    max-width: 290px;
    font-size: 13px;
  }

  .design-modern-command-center .community-square-legend {
    right: 9px;
    bottom: 8px;
    left: 9px;
    justify-content: center;
  }

  .design-modern-command-center .community-square-legend span {
    min-height: 26px;
    padding: 0 8px;
    font-size: 12px;
  }

  .design-modern-command-center .community-presence-spirit {
    width: 35px;
    height: 58px;
  }

  .design-modern-command-center .community-presence-marker strong {
    font-size: 12px;
  }

  .design-modern-command-center .community-presence-summary small,
  .design-modern-command-center .community-presence-summary span {
    font-size: 12px;
  }

  .design-modern-command-center .community-presence-summary strong {
    font-size: 20px;
  }

  .design-modern-command-center .community-project-hero {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .design-modern-command-center .community-project-orb {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  .design-modern-command-center .community-project-orb-icon {
    width: 27px;
    height: 27px;
  }

  .design-modern-command-center .community-project-hero > :last-child {
    grid-column: 1 / -1;
  }

  .design-modern-command-center .community-project-copy h3 {
    font-size: 23px;
  }

  .design-modern-command-center .community-project-progress-card,
  .design-modern-command-center .community-project-action-card {
    padding: 16px;
  }

  .design-modern-command-center .community-project-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .design-modern-command-center .guild-hall-banner {
    grid-template-columns: 55px minmax(0, 1fr);
    gap: 13px;
    padding: 16px;
  }

  .design-modern-command-center .guild-hall-crest {
    width: 51px;
    height: 51px;
    border-radius: 14px;
  }

  .design-modern-command-center .guild-hall-banner h3 {
    font-size: 22px;
  }

  .design-modern-command-center .guild-hall-role {
    grid-column: 1 / -1;
    min-width: 0;
    border-top: 1px solid rgba(216, 178, 100, 0.18);
    border-left: 0;
    padding-top: 10px;
    padding-left: 0;
    text-align: left;
  }

  .design-modern-command-center .guild-hall-form.event {
    grid-template-columns: 1fr;
  }

  .design-modern-command-center .guild-hall-form.event > * {
    grid-column: auto;
  }

  .design-modern-command-center .guild-hall-event {
    grid-template-columns: 1fr;
  }

  .design-modern-command-center .community-party-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    padding: 18px;
  }

  .design-modern-command-center .community-party-head button {
    width: 100%;
  }

  .design-modern-command-center .community-party-board {
    grid-template-columns: 1fr;
    min-height: 330px;
    padding: 10px;
  }

  .design-modern-command-center .community-party-card {
    min-height: 230px;
  }

  .design-modern-command-center .companion-species-grid {
    grid-template-columns: 1fr;
  }

  .design-modern-command-center .companion-species-card {
    display: grid;
    grid-template-columns: 125px minmax(0, 1fr);
    min-height: 150px;
    padding: 0;
  }

  .design-modern-command-center .companion-species-card img {
    grid-row: 1 / 5;
    width: 125px;
    height: 100%;
    min-height: 150px;
    aspect-ratio: auto;
    border-right: 1px solid rgba(93, 190, 210, 0.16);
    border-bottom: 0;
  }

  .design-modern-command-center .companion-species-card > span,
  .design-modern-command-center .companion-species-card > strong,
  .design-modern-command-center .companion-species-card > p {
    margin-right: 13px;
    margin-left: 13px;
  }

  .design-modern-command-center .companion-species-card > span {
    margin-top: 17px;
  }

  .design-modern-command-center .companion-species-card > p {
    margin-top: 4px;
    margin-bottom: 13px;
  }

  .design-modern-command-center .companion-adopt-form {
    grid-template-columns: 1fr;
  }

  .design-modern-command-center .companion-home-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .design-modern-command-center .companion-portrait-card {
    grid-row: auto;
    min-height: 430px;
  }

  .design-modern-command-center .companion-bond-card,
  .design-modern-command-center .companion-moments-card {
    padding: 16px;
  }
}

@media (max-width: 430px) {
  .design-modern-command-center .community-gateway-copy {
    bottom: 73px;
    padding: 16px;
  }

  .design-modern-command-center .community-gateway-copy h2 {
    font-size: 26px;
  }

  .design-modern-command-center .community-gateway-copy p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .design-modern-command-center .community-gateway-pulse {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .design-modern-command-center .community-gateway-pulse small {
    font-size: 11px;
  }

  .design-modern-command-center .community-gateway-pulse strong {
    font-size: 17px;
  }

  .design-modern-command-center .community-world-brand-mark {
    display: none;
  }

  .design-modern-command-center .community-world-tabs {
    grid-template-columns: repeat(5, minmax(68px, 1fr));
  }

  .design-modern-command-center .community-world-tabs button {
    font-size: 11px;
  }

  .design-modern-command-center .community-square-scene {
    min-height: 300px;
  }

  .design-modern-command-center .community-square-scene-art {
    object-position: 60% 50%;
  }

  .design-modern-command-center .community-presence-summary {
    gap: 5px;
  }

  .design-modern-command-center .community-presence-summary > div {
    padding: 10px 7px;
  }

  .design-modern-command-center .community-privacy-card {
    align-items: stretch;
    flex-direction: column;
  }

  .design-modern-command-center .community-privacy-card button {
    width: 100%;
  }

  .design-modern-command-center .community-project-options {
    grid-template-columns: 1fr;
  }

  .design-modern-command-center .community-project-options button {
    min-height: 42px;
  }

  .design-modern-command-center .guild-hall-announcements,
  .design-modern-command-center .guild-hall-events {
    padding: 12px;
  }

  .design-modern-command-center .guild-hall-rsvp .guild-hall-cancel-button {
    width: 100%;
    margin-left: 0;
  }

  .design-modern-command-center .community-party-card .party-request {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .design-modern-command-center .community-party-card .party-request button {
    min-height: 31px;
  }

  .design-modern-command-center .companion-species-card {
    grid-template-columns: 106px minmax(0, 1fr);
  }

  .design-modern-command-center .companion-species-card img {
    width: 106px;
  }

  .design-modern-command-center .companion-species-card > p {
    font-size: 12px;
  }

  .design-modern-command-center .companion-portrait-card {
    min-height: 380px;
  }

  .design-modern-command-center .companion-portrait-copy {
    right: 18px;
    bottom: 18px;
    left: 18px;
  }

  .design-modern-command-center .companion-portrait-copy h3 {
    font-size: 32px;
  }

  .design-modern-command-center .companion-stage-head {
    flex-direction: column;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .design-modern-command-center .community-world-modal,
  .design-modern-command-center .community-gateway-copy button,
  .design-modern-command-center .community-project-options button,
  .design-modern-command-center .companion-species-card,
  .design-modern-command-center .companion-bond-progress i {
    transition: none;
  }

  .design-modern-command-center .community-world-loading > span {
    animation: none;
  }

  .design-modern-command-center .community-square-scene-art-radiant,
  .design-modern-command-center .community-presence-spirit {
    animation: none !important;
  }
}

/* Companion viewport: one locked screen with a smaller, grounded character. */
.design-modern-command-center
  .community-world-modal[data-community-world-active-tab="companion"]
  .community-world-content {
  overflow: hidden;
}

.design-modern-command-center
  .community-world-modal[data-community-world-active-tab="companion"]
  .companion-home-layout {
  height: 100%;
  min-height: 0;
  grid-template-columns: minmax(340px, 0.64fr) minmax(600px, 1.36fr);
  grid-template-rows: minmax(0, 1.75fr) minmax(150px, 0.75fr);
  gap: 12px;
}

.design-modern-command-center
  .community-world-modal[data-community-world-active-tab="companion"]
  .companion-play-stage {
  height: 100%;
  min-height: 0;
}

.design-modern-command-center
  .community-world-modal[data-community-world-active-tab="companion"]
  .companion-pixel-viewport {
  inset: 4% 4% 5%;
}

.design-modern-command-center
  .community-world-modal[data-community-world-active-tab="companion"]
  .companion-pixel-sprite,
.design-modern-command-center
  .community-world-modal[data-community-world-active-tab="companion"]
  .companion-character-fallback {
  width: min(78%, 360px);
  height: auto;
  max-width: none;
  aspect-ratio: 544 / 800;
}

.design-modern-command-center
  .community-world-modal[data-community-world-active-tab="companion"]
  .companion-play-identity {
  top: 20px;
  right: 20px;
  bottom: auto;
  left: 20px;
}

.design-modern-command-center
  .community-world-modal[data-community-world-active-tab="companion"]
  .companion-play-identity h3 {
  font-size: clamp(30px, 3vw, 40px);
}

.design-modern-command-center
  .community-world-modal[data-community-world-active-tab="companion"]
  .companion-care-card,
.design-modern-command-center
  .community-world-modal[data-community-world-active-tab="companion"]
  .companion-moments-card {
  min-width: 0;
  min-height: 0;
  padding: 15px 16px;
}

.design-modern-command-center
  .community-world-modal[data-community-world-active-tab="companion"]
  .companion-stage-head h3 {
  font-size: 22px;
}

.design-modern-command-center
  .community-world-modal[data-community-world-active-tab="companion"]
  .companion-stage-tools {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 8px;
}

.design-modern-command-center
  .community-world-modal[data-community-world-active-tab="companion"]
  .companion-gm-test-toggle {
  min-width: 88px;
  border: 1px solid rgba(94, 211, 231, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(17, 81, 94, 0.52), rgba(7, 31, 40, 0.74));
  padding: 6px 9px;
  color: #d9f8fc;
  text-align: left;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.05),
    0 8px 24px rgba(0, 0, 0, 0.14);
}

.design-modern-command-center
  .community-world-modal[data-community-world-active-tab="companion"]
  .companion-gm-test-toggle small,
.design-modern-command-center
  .community-world-modal[data-community-world-active-tab="companion"]
  .companion-gm-test-toggle strong {
  display: block;
}

.design-modern-command-center
  .community-world-modal[data-community-world-active-tab="companion"]
  .companion-gm-test-toggle small {
  color: #79deed;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.design-modern-command-center
  .community-world-modal[data-community-world-active-tab="companion"]
  .companion-gm-test-toggle strong {
  margin-top: 2px;
  font-size: 12px;
}

.design-modern-command-center
  .community-world-modal[data-community-world-active-tab="companion"]
  .companion-gm-test-toggle.active {
  border-color: rgba(238, 202, 120, 0.58);
  background:
    linear-gradient(145deg, rgba(101, 74, 24, 0.7), rgba(22, 53, 56, 0.82));
  color: #ffe6a7;
}

.design-modern-command-center
  .community-world-modal[data-community-world-active-tab="companion"]
  .companion-play-stage.test-lab-active {
  box-shadow:
    inset 0 0 0 1px rgba(238, 202, 120, 0.34),
    inset 0 -90px 120px rgba(7, 49, 60, 0.22);
}

.design-modern-command-center
  .community-world-modal[data-community-world-active-tab="companion"]
  .companion-gm-testbar {
  display: grid;
  grid-template-columns: minmax(142px, 0.55fr) minmax(260px, 1fr);
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(238, 202, 120, 0.2);
  margin-top: 10px;
  padding-top: 9px;
}

.design-modern-command-center
  .community-world-modal[data-community-world-active-tab="companion"]
  .companion-gm-testbar-copy span,
.design-modern-command-center
  .community-world-modal[data-community-world-active-tab="companion"]
  .companion-gm-testbar-copy strong {
  display: block;
}

.design-modern-command-center
  .community-world-modal[data-community-world-active-tab="companion"]
  .companion-gm-testbar-copy span {
  color: #79deed;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.design-modern-command-center
  .community-world-modal[data-community-world-active-tab="companion"]
  .companion-gm-testbar-copy strong {
  margin-top: 2px;
  color: #c8d9dc;
  font-size: 12px;
  font-weight: 600;
}

.design-modern-command-center
  .community-world-modal[data-community-world-active-tab="companion"]
  .companion-gm-test-stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.design-modern-command-center
  .community-world-modal[data-community-world-active-tab="companion"]
  .companion-gm-test-stages button {
  min-height: 34px;
  border: 1px solid rgba(91, 190, 207, 0.22);
  border-radius: 7px;
  background: rgba(8, 39, 49, 0.72);
  padding: 6px 8px;
  color: #9dc4cb;
  font-size: 12px;
  font-weight: 700;
}

.design-modern-command-center
  .community-world-modal[data-community-world-active-tab="companion"]
  .companion-gm-test-stages button.active {
  border-color: rgba(238, 202, 120, 0.62);
  background:
    linear-gradient(145deg, rgba(102, 75, 23, 0.66), rgba(13, 64, 73, 0.78));
  color: #ffe5a3;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
}

.design-modern-command-center
  .community-world-modal[data-community-world-active-tab="companion"]
  .companion-bond-row {
  margin-top: 11px;
}

.design-modern-command-center
  .community-world-modal[data-community-world-active-tab="companion"]
  .companion-bond-progress {
  margin: 10px 0 7px;
}

.design-modern-command-center
  .community-world-modal[data-community-world-active-tab="companion"]
  .companion-care-card > p {
  margin-bottom: 10px;
}

.design-modern-command-center
  .community-world-modal[data-community-world-active-tab="companion"]
  .companion-care-action {
  min-height: 72px;
  padding: 9px 11px;
}

.design-modern-command-center
  .community-world-modal[data-community-world-active-tab="companion"]
  .companion-care-action > span {
  width: 34px;
  height: 34px;
}

.design-modern-command-center
  .community-world-modal[data-community-world-active-tab="companion"]
  .companion-care-daily {
  margin-top: 10px;
  padding-top: 9px;
}

.design-modern-command-center
  .community-world-modal[data-community-world-active-tab="companion"]
  .companion-care-daily p {
  line-height: 1.4;
}

.design-modern-command-center
  .community-world-modal[data-community-world-active-tab="companion"]
  .companion-no-decay {
  margin-top: 9px;
  padding-top: 8px;
  font-size: 13px;
}

.design-modern-command-center
  .community-world-modal[data-community-world-active-tab="companion"]
  .companion-moments-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.design-modern-command-center
  .community-world-modal[data-community-world-active-tab="companion"]
  .companion-moments-list {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.design-modern-command-center
  .community-world-modal[data-community-world-active-tab="companion"]
  .companion-moments-list::-webkit-scrollbar {
  display: none;
}

.design-modern-command-center
  .community-world-modal[data-community-world-active-tab="companion"]
  .companion-moments-list article {
  padding: 8px 0 4px;
}

@media (max-height: 780px) and (min-width: 761px) {
  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-home-layout {
    grid-template-rows: minmax(0, 1fr) minmax(128px, 0.34fr);
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-care-card,
  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-moments-card {
    padding: 11px 13px;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-care-action {
    min-height: 62px;
    padding: 7px 9px;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-care-daily {
    margin-top: 7px;
    padding-top: 6px;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-no-decay {
    margin-top: 6px;
    padding-top: 6px;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-gm-test-toggle {
    min-width: 78px;
    padding: 4px 7px;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-gm-testbar {
    grid-template-columns: minmax(128px, 0.48fr) minmax(240px, 1fr);
    margin-top: 7px;
    padding-top: 6px;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-gm-test-stages button {
    min-height: 30px;
    padding: 4px 6px;
  }
}

@media (max-width: 760px) {
  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .community-world-content {
    padding: 8px;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-home-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows:
      minmax(210px, 0.72fr)
      minmax(300px, 1fr)
      minmax(86px, 0.32fr);
    gap: 8px;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-play-stage {
    grid-row: auto;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-pixel-viewport {
    inset: 5% 1% 1%;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-pixel-sprite,
  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-character-fallback {
    width: min(48%, 176px);
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-play-identity {
    top: 12px;
    right: 14px;
    left: 14px;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-play-identity span {
    font-size: 11px;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-play-identity h3 {
    margin-top: 2px;
    font-size: 25px;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-play-identity p {
    font-size: 12px;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-care-card,
  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-moments-card {
    padding: 9px 10px;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-stage-head {
    flex-direction: row;
    gap: 8px;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-stage-head span {
    font-size: 12px;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-stage-head h3 {
    font-size: 18px;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-wallet-chip {
    min-width: 82px;
    padding: 5px 7px;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-wallet-chip small {
    font-size: 11px;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-wallet-chip strong {
    font-size: 14px;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-stage-tools {
    gap: 4px;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-gm-test-toggle {
    min-width: 78px;
    padding: 4px 6px;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-gm-test-toggle small {
    font-size: 11px;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-gm-test-toggle strong {
    margin-top: 1px;
    font-size: 11px;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-bond-row {
    margin-top: 6px;
    font-size: 12px;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-bond-progress {
    height: 7px;
    margin: 5px 0 4px;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-care-card > p {
    margin-bottom: 5px;
    font-size: 12px;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-care-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-care-action {
    min-height: 61px;
    grid-template-columns: 29px minmax(0, 1fr);
    gap: 0 7px;
    padding: 6px 7px;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-care-action > span {
    width: 29px;
    height: 29px;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-care-action strong {
    font-size: 13px;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-care-action small,
  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-care-action em {
    font-size: 11px;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-care-daily {
    margin-top: 5px;
    padding-top: 4px;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-care-daily span,
  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-care-daily p {
    font-size: 11px;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-care-daily p {
    margin-top: 2px;
    line-height: 1.25;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-no-decay {
    margin-top: 4px;
    padding-top: 4px;
    font-size: 11px;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-gm-testbar {
    grid-template-columns: minmax(91px, 0.38fr) minmax(0, 1fr);
    gap: 6px;
    margin-top: 5px;
    padding-top: 4px;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-gm-testbar-copy span {
    font-size: 11px;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-gm-testbar-copy strong {
    margin-top: 1px;
    font-size: 11px;
    line-height: 1.25;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-gm-test-stages {
    gap: 3px;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-gm-test-stages button {
    min-height: 29px;
    padding: 4px 2px;
    font-size: 11px;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-moments-card .community-card-head {
    margin-bottom: 1px;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-moments-card .community-card-head span {
    display: none;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-moments-card .community-card-head h3 {
    font-size: 15px;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-moments-list article {
    grid-template-columns: 26px minmax(0, 1fr) auto;
    gap: 7px;
    padding: 5px 0 2px;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-moments-list article > span {
    width: 25px;
    height: 25px;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-moments-list strong,
  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-moments-list b {
    font-size: 12px;
  }

  .design-modern-command-center
    .community-world-modal[data-community-world-active-tab="companion"]
    .companion-moments-list small {
    font-size: 11px;
  }
}

/* Companion QA Studio continuous art publication and motion review. */
.design-modern-command-center .companion-qa-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.design-modern-command-center .companion-qa-summary article.candidate {
  border-color: rgba(160, 126, 232, 0.28);
  background: rgba(43, 29, 70, 0.34);
}

.design-modern-command-center .companion-qa-art-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  border: 1px solid rgba(95, 205, 225, 0.16);
  border-radius: 11px;
  padding: 10px 13px;
  background: rgba(4, 25, 34, 0.5);
}

.design-modern-command-center .companion-qa-art-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9db4bc;
  font-size: 11px;
  font-weight: 700;
}

.design-modern-command-center .companion-qa-art-legend i {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border: 1px solid rgba(117, 153, 163, 0.35);
  border-radius: 3px;
  background: rgba(76, 91, 96, 0.35);
}

.design-modern-command-center .companion-qa-art-legend i.ready {
  border-color: rgba(74, 224, 165, 0.55);
  background: #4bdca5;
  box-shadow: 0 0 8px rgba(75, 220, 165, 0.35);
}

.design-modern-command-center .companion-qa-art-legend i.accepted {
  border-color: rgba(95, 223, 215, 0.46);
  background: rgba(24, 113, 106, 0.9);
}

.design-modern-command-center .companion-qa-art-legend i.candidate {
  border-color: rgba(245, 202, 103, 0.58);
  background: #eec15f;
  box-shadow: 0 0 8px rgba(238, 193, 95, 0.28);
}

.design-modern-command-center .companion-qa-art-legend i.browser-pending {
  border-color: rgba(184, 141, 244, 0.46);
  background: rgba(100, 66, 155, 0.9);
}

.design-modern-command-center .companion-qa-species-card header em.accepted,
.design-modern-command-center .companion-qa-action-matrix i.accepted {
  border-color: rgba(95, 223, 215, 0.46);
  background: rgba(24, 113, 106, 0.46);
  color: #b7f2ed;
}

.design-modern-command-center
  .companion-qa-species-card
  header
  em.browser-pending,
.design-modern-command-center
  .companion-qa-action-matrix
  i.browser-pending {
  border-color: rgba(184, 141, 244, 0.46);
  background: rgba(100, 66, 155, 0.48);
  color: #dfcbff;
}

.design-modern-command-center .companion-qa-species-card > footer > div {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.design-modern-command-center
  .companion-qa-species-card
  footer
  button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.design-modern-command-center .companion-qa-motion {
  display: grid;
  gap: 13px;
}

.design-modern-command-center .companion-qa-motion-head {
  display: flex;
  min-height: 108px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid rgba(95, 205, 225, 0.27);
  border-radius: 14px;
  padding: 18px 21px;
  background:
    radial-gradient(circle at 88% 18%, rgba(172, 120, 240, 0.17), transparent 33%),
    linear-gradient(115deg, rgba(14, 88, 106, 0.44), rgba(6, 28, 38, 0.82));
}

.design-modern-command-center .companion-qa-motion-head > div {
  min-width: 0;
}

.design-modern-command-center .companion-qa-motion-head span {
  color: #74ddec;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.design-modern-command-center .companion-qa-motion-head h3 {
  margin: 4px 0 0;
  color: #f5fafb;
  font-size: 21px;
  line-height: 1.22;
}

.design-modern-command-center .companion-qa-motion-head p {
  max-width: 820px;
  margin: 6px 0 0;
  color: #91aab3;
  font-size: 13px;
  line-height: 1.55;
}

.design-modern-command-center .companion-qa-motion-head > strong {
  flex: 0 0 auto;
  border: 1px solid rgba(90, 225, 169, 0.33);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(9, 73, 52, 0.42);
  color: #b6f0d1;
  font-size: 13px;
}

.design-modern-command-center .companion-qa-motion-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(440px, 1.28fr);
  gap: 13px;
}

.design-modern-command-center .companion-qa-motion-controls,
.design-modern-command-center .companion-qa-motion-review {
  min-width: 0;
  border: 1px solid rgba(94, 188, 207, 0.23);
  border-radius: 15px;
  background: rgba(4, 24, 34, 0.84);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.2),
    inset 0 1px rgba(255, 255, 255, 0.025);
}

.design-modern-command-center .companion-qa-motion-controls {
  align-self: start;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.design-modern-command-center .companion-qa-motion-controls label {
  display: grid;
  gap: 6px;
}

.design-modern-command-center .companion-qa-motion-controls label > span,
.design-modern-command-center .companion-qa-motion-actions > span {
  color: #9fb4bb;
  font-size: 12px;
  font-weight: 800;
}

.design-modern-command-center .companion-qa-motion-controls select {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(91, 177, 196, 0.28);
  border-radius: 9px;
  outline: 0;
  background: rgba(2, 16, 24, 0.9);
  padding: 0 11px;
  color: #edf8fa;
  font: inherit;
  font-size: 13px;
}

.design-modern-command-center .companion-qa-motion-controls select:focus {
  border-color: rgba(105, 222, 239, 0.64);
  box-shadow: 0 0 0 3px rgba(76, 202, 223, 0.08);
}

.design-modern-command-center .companion-qa-motion-actions {
  display: grid;
  gap: 7px;
  border-top: 1px solid rgba(91, 177, 196, 0.14);
  margin-top: 2px;
  padding-top: 12px;
}

.design-modern-command-center .companion-qa-motion-actions button {
  display: flex;
  min-height: 47px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(91, 177, 196, 0.2);
  border-radius: 9px;
  background: rgba(5, 35, 46, 0.68);
  padding: 8px 10px;
  color: #dbecef;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.design-modern-command-center .companion-qa-motion-actions button:hover,
.design-modern-command-center .companion-qa-motion-actions button.active {
  border-color: rgba(94, 221, 239, 0.6);
  background: rgba(12, 78, 91, 0.7);
  box-shadow: 0 0 22px rgba(68, 203, 224, 0.09);
}

.design-modern-command-center .companion-qa-motion-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.design-modern-command-center .companion-qa-motion-actions strong {
  font-size: 13px;
}

.design-modern-command-center .companion-qa-motion-actions small {
  color: #8ea6ae;
  font-size: 12px;
  text-align: right;
}

.design-modern-command-center .companion-qa-motion-review {
  position: relative;
  overflow: hidden;
  padding: 16px;
  background:
    radial-gradient(circle at 50% 35%, rgba(42, 169, 193, 0.16), transparent 40%),
    radial-gradient(circle at 90% 4%, rgba(206, 160, 247, 0.11), transparent 30%),
    rgba(3, 22, 31, 0.92);
}

.design-modern-command-center .companion-qa-motion-review > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(95, 184, 202, 0.14);
  padding-bottom: 11px;
}

.design-modern-command-center .companion-qa-motion-review header span {
  color: #77deed;
  font-size: 12px;
  font-weight: 850;
}

.design-modern-command-center .companion-qa-motion-review header h3 {
  margin: 2px 0 0;
  color: #f3f9fb;
  font-size: 19px;
}

.design-modern-command-center .companion-qa-motion-review header p {
  margin: 2px 0 0;
  color: #89a1aa;
  font-size: 12px;
}

.design-modern-command-center .companion-qa-motion-review header em {
  border: 1px solid rgba(95, 198, 217, 0.25);
  border-radius: 999px;
  padding: 5px 9px;
  color: #bdebf2;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.design-modern-command-center
  .companion-qa-motion-review
  header
  em.accepted {
  border-color: rgba(95, 223, 215, 0.4);
  background: rgba(24, 113, 106, 0.36);
  color: #b7f2ed;
}

.design-modern-command-center
  .companion-qa-motion-review
  header
  em.candidate {
  border-color: rgba(230, 184, 76, 0.36);
  background: rgba(75, 55, 13, 0.32);
  color: #f3d68d;
}

.design-modern-command-center
  .companion-qa-motion-review
  header
  em.browser-pending {
  border-color: rgba(184, 141, 244, 0.4);
  background: rgba(100, 66, 155, 0.35);
  color: #dfcbff;
}

.design-modern-command-center .companion-qa-motion-stage {
  position: relative;
  display: block;
  height: 800px;
  min-height: 0;
  overflow: auto;
  border-radius: 13px;
  margin-top: 12px;
  padding: 18px;
  background:
    linear-gradient(rgba(96, 213, 232, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 213, 232, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 72%, rgba(69, 198, 219, 0.1), transparent 33%);
  background-size: 28px 28px, 28px 28px, auto;
}

.design-modern-command-center .companion-qa-motion-canvas-shell {
  --companion-qa-motion-width: 544px;
  --companion-qa-motion-height: 600px;
  display: grid;
  width: max(100%, var(--companion-qa-motion-width));
  min-height: max(764px, var(--companion-qa-motion-height));
  place-items: center;
}

.design-modern-command-center .companion-qa-motion-canvas {
  position: relative;
  width: var(--companion-qa-motion-width);
  max-width: none;
  aspect-ratio: 544 / 600;
}

.design-modern-command-center .companion-qa-motion-sprite {
  /*
   * Legacy strips remain logically 544x600 after the audited empty-band crop.
   * High-density grid assets use the same logical composition while retaining
   * additional source pixels for 150/200% QA inspection.
   */
  width: 100%;
  height: 100%;
  aspect-ratio: 544 / 600;
  background-repeat: no-repeat;
  /*
   * Generated companion art is antialiased raster artwork. The 544x800
   * frames are displayed at non-integer responsive sizes, so forcing
   * `pixelated` here magnifies nearest-neighbour build pixels and then
   * aliases them again during browser downscaling.
   */
  image-rendering: auto;
  filter: drop-shadow(0 20px 20px rgba(0, 0, 0, 0.35));
}

.design-modern-command-center .companion-qa-motion-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  color: #d7e9ed;
  text-align: center;
}

.design-modern-command-center .companion-qa-motion-fallback > span {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(106, 217, 235, 0.18);
  border-top-color: #67d9ec;
  border-radius: 50%;
  animation: companion-qa-spin 0.85s linear infinite;
}

.design-modern-command-center .companion-qa-motion-fallback strong {
  font-size: 13px;
}

.design-modern-command-center .companion-qa-motion-fallback small {
  color: #7f9aa3;
  font-size: 12px;
}

.design-modern-command-center .companion-qa-motion-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 11px;
}

.design-modern-command-center .companion-qa-motion-toolbar > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.design-modern-command-center .companion-qa-motion-toolbar button {
  min-height: 38px;
  border: 1px solid rgba(95, 201, 221, 0.32);
  border-radius: 8px;
  background: rgba(9, 53, 65, 0.72);
  padding: 7px 12px;
  color: #c5edf3;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.design-modern-command-center .companion-qa-motion-toolbar button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.design-modern-command-center .companion-qa-motion-zoom {
  display: inline-flex;
  gap: 4px;
  border-left: 1px solid rgba(95, 201, 221, 0.2);
  padding-left: 8px;
}

.design-modern-command-center
  .companion-qa-motion-zoom
  button {
  min-height: 34px;
  padding: 5px 8px;
}

.design-modern-command-center
  .companion-qa-motion-zoom
  button.active {
  border-color: rgba(95, 226, 190, 0.58);
  background: rgba(16, 89, 72, 0.72);
  color: #c4f3df;
}

.design-modern-command-center .companion-qa-motion-toolbar span {
  color: #829ba4;
  font-size: 12px;
}

.design-modern-command-center .companion-qa-motion-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.design-modern-command-center .companion-qa-motion-proof span {
  border: 1px solid rgba(92, 184, 202, 0.2);
  border-radius: 999px;
  background: rgba(5, 39, 50, 0.64);
  padding: 5px 8px;
  color: #9fc0c8;
  font-size: 12px;
  font-weight: 750;
}

.design-modern-command-center .companion-qa-motion-boundary {
  margin: 9px 0 0;
  color: #8099a2;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-height: 760px) and (min-width: 761px) {
  .design-modern-command-center .companion-qa-studio-dialog {
    height: calc(100vh - 8px);
    min-height: 0;
  }

  .design-modern-command-center .companion-qa-studio-head {
    min-height: 64px;
    padding-block: 7px;
  }

  .design-modern-command-center .companion-qa-studio-brand-mark {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 12px;
  }

  .design-modern-command-center .companion-qa-studio-brand p {
    display: none;
  }

  .design-modern-command-center .companion-qa-studio-tabs button {
    min-height: 44px;
  }

  .design-modern-command-center .companion-qa-motion-stage {
    height: min(600px, calc(100vh - 120px));
  }

  .design-modern-command-center .companion-qa-motion-canvas-shell {
    min-height: var(--companion-qa-motion-height);
  }
}

.design-modern-command-center .companion-qa-motion-empty {
  display: grid;
  min-height: 520px;
  place-content: center;
  text-align: center;
}

.design-modern-command-center .companion-qa-motion-empty h3 {
  margin: 0;
  color: #edf7f9;
  font-size: 19px;
}

.design-modern-command-center .companion-qa-motion-empty p {
  max-width: 520px;
  margin: 7px auto 0;
  color: #839ca5;
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 1120px) {
  .design-modern-command-center .companion-qa-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .design-modern-command-center .companion-qa-motion-layout {
    grid-template-columns: minmax(220px, 0.66fr) minmax(380px, 1.34fr);
  }

  .design-modern-command-center .companion-qa-motion-stage {
    height: 480px;
    min-height: 0;
  }

  .design-modern-command-center .companion-qa-motion-canvas-shell {
    min-height: max(444px, var(--companion-qa-motion-height));
  }
}

@media (max-width: 760px) {
  .design-modern-command-center .companion-qa-summary,
  .design-modern-command-center .companion-qa-motion-layout {
    grid-template-columns: 1fr;
  }

  .design-modern-command-center .companion-qa-motion-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .design-modern-command-center .companion-qa-motion-head h3 {
    font-size: 18px;
  }

  .design-modern-command-center .companion-qa-motion-stage {
    height: 430px;
    min-height: 0;
  }

  .design-modern-command-center .companion-qa-motion-canvas-shell {
    min-height: max(394px, var(--companion-qa-motion-height));
  }

  .design-modern-command-center .companion-qa-motion-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .design-modern-command-center .companion-qa-species-card > footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .design-modern-command-center
    .companion-qa-species-card
    > footer
    > div {
    width: 100%;
  }

  .design-modern-command-center
    .companion-qa-species-card
    footer
    button {
    flex: 1 1 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .design-modern-command-center
    .companion-qa-motion-fallback
    > span {
    animation: none;
  }
}

/* Community layout cohesion V1 — desktop-first information architecture */

.layout-cohesive-v1 {
  --cohesive-gap: 12px;
  --cohesive-title: 15px;
  --cohesive-body: 13px;
  --cohesive-caption: 11px;
}

.layout-cohesive-v1 .dashboard {
  align-items: start;
}

.layout-cohesive-v1 .main-stack,
.layout-cohesive-v1 .right-stack,
.layout-cohesive-v1 .content-grid {
  gap: var(--cohesive-gap);
}

.layout-cohesive-v1 .launch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(310px, 0.78fr);
  gap: var(--cohesive-gap);
  min-width: 0;
}

.layout-cohesive-v1 .launch-grid > .hero,
.layout-cohesive-v1 .launch-grid > .community-gateway {
  width: 100%;
  height: 300px;
  min-height: 300px;
  margin: 0;
}

.layout-cohesive-v1 .launch-grid > .hero {
  border: 1px solid rgba(126, 174, 205, 0.16);
  border-radius: var(--modern-radius);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

.layout-cohesive-v1 .hero-copy {
  width: 64%;
  padding: 30px 30px 42px;
}

.layout-cohesive-v1 .hero h1 {
  max-width: 480px;
  font-size: clamp(29px, 2vw, 35px);
  line-height: 1.13;
}

.layout-cohesive-v1 .hero-copy > p:not(.hero-kicker) {
  max-width: 430px;
  font-size: 14px;
}

.layout-cohesive-v1 .hero-actions {
  margin-top: 17px;
}

.layout-cohesive-v1 .hero-dots {
  left: 30px;
  bottom: 16px;
}

.layout-cohesive-v1 .community-gateway-art {
  object-position: 58% center;
}

.layout-cohesive-v1 .community-gateway-shade {
  background:
    linear-gradient(180deg, rgba(2, 8, 13, 0.18), rgba(2, 8, 13, 0.92) 78%),
    linear-gradient(90deg, rgba(2, 8, 13, 0.72), rgba(2, 8, 13, 0.12));
}

.layout-cohesive-v1 .community-gateway-copy {
  position: relative;
  top: 20px;
  right: 20px;
  bottom: auto;
  left: 20px;
  width: calc(100% - 40px);
  max-width: none;
  padding: 0;
}

.layout-cohesive-v1 .community-gateway-copy h2 {
  max-width: 280px;
  margin-top: 5px;
  font-size: 24px;
  line-height: 1.12;
}

.layout-cohesive-v1 .community-gateway-copy p {
  display: -webkit-box;
  max-width: 300px;
  margin: 7px 0 10px;
  overflow: hidden;
  font-size: var(--cohesive-body);
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.layout-cohesive-v1 .community-gateway-copy button {
  min-height: 38px;
  margin-top: 0;
  padding: 7px 12px;
  font-size: 12px;
}

.layout-cohesive-v1 .community-gateway-pulse {
  right: 14px;
  bottom: 14px;
  left: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: auto;
}

.layout-cohesive-v1 .community-gateway-pulse > div {
  min-height: 54px;
  padding: 8px 9px;
}

.layout-cohesive-v1 .community-gateway-pulse small {
  font-size: 10px;
}

.layout-cohesive-v1 .community-gateway-pulse strong {
  font-size: 18px;
}

.layout-cohesive-v1 .content-grid {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "chat"
    "market"
    "feed";
}

.layout-cohesive-v1 .panel {
  padding: 12px;
}

.layout-cohesive-v1 .panel-head {
  min-height: 38px;
  margin-bottom: 9px;
  padding-bottom: 9px;
}

.layout-cohesive-v1 .panel-head h2,
.layout-cohesive-v1 .mission-journey-head h2 {
  color: var(--modern-text);
  font-family: var(--font-display);
  font-size: var(--cohesive-title);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.layout-cohesive-v1 .panel-head h2::after,
.layout-cohesive-v1 .mission-journey-head h2::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  margin-top: 7px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--modern-gold), rgba(244, 200, 111, 0));
}

.layout-cohesive-v1 .chat-panel {
  height: 680px;
  min-height: 680px;
}

.layout-cohesive-v1 .chat-list {
  padding: 18px;
}

.layout-cohesive-v1 .chat-ai-note {
  margin: 0 2px 8px;
  font-size: var(--cohesive-caption);
  line-height: 1.45;
}

.layout-cohesive-v1 .market-panel {
  min-height: 0;
}

.layout-cohesive-v1 .market-list {
  min-height: 126px;
}

.layout-cohesive-v1 .market-list:has(.empty-state),
.layout-cohesive-v1 .market-list:has(.market-empty) {
  min-height: 126px;
}

.layout-cohesive-v1 .right-stack .event-grid {
  height: 300px;
  min-height: 300px;
}

.layout-cohesive-v1 .right-stack {
  grid-template-columns: minmax(0, 1fr);
}

.layout-cohesive-v1 .right-stack > * {
  grid-column: 1;
}

.layout-cohesive-v1 .right-stack .mission-panel {
  grid-area: auto;
}

.layout-cohesive-v1 .right-stack .event-card {
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.layout-cohesive-v1 .right-stack .event-card > .event-icon {
  align-self: center;
  justify-self: center;
  width: 34px;
  height: 34px;
}

.layout-cohesive-v1 .right-stack .event-card .event-body {
  align-self: center;
  display: grid;
  align-content: center;
  gap: 2px;
  min-width: 0;
}

.layout-cohesive-v1 .right-stack .event-card h2,
.layout-cohesive-v1 .right-stack .event-card strong,
.layout-cohesive-v1 .right-stack .event-card p,
.layout-cohesive-v1 .right-stack .event-card small {
  margin: 0;
}

.layout-cohesive-v1 .right-stack .event-card h2 {
  line-height: 1.25;
}

.layout-cohesive-v1 .right-stack .event-card strong {
  font-size: 14px;
  line-height: 1.25;
}

.layout-cohesive-v1 .right-stack .event-card p {
  line-height: 1.35;
}

.layout-cohesive-v1 .right-stack .event-card small {
  line-height: 1.35;
}

.layout-cohesive-v1 .right-stack .event-card .event-meter {
  margin-top: 7px;
}

.layout-cohesive-v1 .right-stack .mission-panel {
  max-height: 560px;
  overflow: hidden;
}

.layout-cohesive-v1 .right-stack .mission-journey-head {
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.layout-cohesive-v1 .right-stack .mission-journey-kicker {
  margin-bottom: 3px;
  font-size: 10px;
  letter-spacing: 0.14em;
}

.layout-cohesive-v1 .right-stack .mission-journey-copy {
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.35;
}

.layout-cohesive-v1 .right-stack .mission-reset-card {
  min-width: 100px;
  padding: 7px 9px;
  border-radius: 8px;
}

.layout-cohesive-v1 .right-stack .mission-reset-card span,
.layout-cohesive-v1 .right-stack .mission-reset-card small {
  font-size: 10px;
}

.layout-cohesive-v1 .right-stack .mission-reset-card strong {
  font-size: 14px;
}

.layout-cohesive-v1 .right-stack .mission-mode-banner {
  gap: 8px;
  margin-bottom: 8px;
  padding: 8px 9px;
  border-radius: 8px;
}

.layout-cohesive-v1 .right-stack .mission-mode-glyph {
  width: 22px;
  height: 22px;
}

.layout-cohesive-v1 .right-stack .mission-mode-banner strong {
  font-size: 12px;
}

.layout-cohesive-v1 .right-stack .mission-mode-banner p {
  font-size: 10px;
}

.layout-cohesive-v1 .right-stack .mission-economy-card {
  margin-bottom: 8px;
  padding: 9px;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 9px;
  border-radius: 9px;
}

.layout-cohesive-v1 .right-stack .mission-economy-orb {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}

.layout-cohesive-v1 .right-stack .mission-economy-copy > span {
  font-size: 10px;
}

.layout-cohesive-v1 .right-stack .mission-economy-copy strong {
  font-size: 12px;
}

.layout-cohesive-v1 .right-stack .mission-economy-copy p {
  display: none;
}

.layout-cohesive-v1 .right-stack .mission-economy-balance {
  padding-top: 7px;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 8px;
}

.layout-cohesive-v1 .right-stack .mission-economy-balance small {
  font-size: 10px;
}

.layout-cohesive-v1 .right-stack .mission-economy-balance > strong {
  font-size: 13px;
}

.layout-cohesive-v1 .right-stack .mission-economy-balance button {
  min-width: 112px;
  min-height: 29px;
  padding: 4px 7px;
  font-size: 10px;
}

.layout-cohesive-v1 .right-stack .mission-list {
  max-height: 218px;
  padding-right: 3px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(98, 216, 238, 0.3) transparent;
  scrollbar-width: thin;
}

.layout-cohesive-v1 .right-stack .mission-list-inner {
  gap: 6px;
}

.layout-cohesive-v1 .right-stack .mission-row {
  min-height: 74px;
  padding: 8px;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  border-radius: 8px;
}

.layout-cohesive-v1 .right-stack .mission-icon,
.layout-cohesive-v1 .right-stack .mission-glyph {
  width: 34px;
  height: 34px;
}

.layout-cohesive-v1 .right-stack .mission-view-all {
  min-height: 34px;
  margin-top: 8px;
}

.layout-cohesive-v1 .right-stack .ranking-list,
.layout-cohesive-v1 .right-stack .guild-list,
.layout-cohesive-v1 .right-stack .party-list {
  font-size: var(--cohesive-body);
}

.layout-cohesive-v1 .mobile-profile-close {
  display: none;
}

@media (max-width: 1540px) and (min-width: 1361px) {
  .layout-cohesive-v1 .launch-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.72fr);
  }

  .layout-cohesive-v1 .hero-copy {
    width: 68%;
    padding-right: 24px;
    padding-left: 24px;
  }

  .layout-cohesive-v1 .hero h1 {
    font-size: 30px;
  }

  .layout-cohesive-v1 .community-gateway-copy h2 {
    font-size: 21px;
  }
}

@media (max-width: 1360px) and (min-width: 921px) {
  .layout-cohesive-v1 .dashboard {
    grid-template-columns: minmax(250px, 290px) minmax(0, 1fr);
  }

  .layout-cohesive-v1 .right-stack {
    display: grid;
    grid-column: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .layout-cohesive-v1 .right-stack > * {
    grid-column: auto;
  }

  .layout-cohesive-v1 .right-stack .event-grid,
  .layout-cohesive-v1 .right-stack .mission-panel {
    min-height: 0;
    height: 100%;
    max-height: 560px;
  }

  .layout-cohesive-v1 .right-stack .party-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1100px) and (min-width: 921px) {
  .layout-cohesive-v1 .launch-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.75fr);
  }

  .layout-cohesive-v1 .hero-copy {
    width: 72%;
    padding: 24px 22px 40px;
  }

  .layout-cohesive-v1 .hero h1 {
    font-size: 28px;
  }

  .layout-cohesive-v1 .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 174px;
    gap: 6px;
  }

  .layout-cohesive-v1 .primary-action,
  .layout-cohesive-v1 .secondary-action {
    height: 38px;
  }
}

@media (max-width: 920px) {
  .layout-cohesive-v1 .app-shell {
    padding-bottom: 86px;
  }

  .layout-cohesive-v1 .dashboard {
    display: block;
  }

  .layout-cohesive-v1 .launch-grid,
  .layout-cohesive-v1 .boss-tracker-panel,
  .layout-cohesive-v1 .right-stack .event-grid,
  .layout-cohesive-v1 .right-stack .mission-panel,
  .layout-cohesive-v1 .right-stack .guild-panel,
  .layout-cohesive-v1 .right-stack .party-panel,
  .layout-cohesive-v1 .footer {
    display: none;
  }

  .layout-cohesive-v1 .main-stack,
  .layout-cohesive-v1 .content-grid,
  .layout-cohesive-v1 .right-stack {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .layout-cohesive-v1 .content-grid {
    grid-template-areas:
      "chat"
      "market";
  }

  .layout-cohesive-v1 .right-stack {
    margin-top: 10px;
  }

  .layout-cohesive-v1 .profile-window {
    position: fixed;
    z-index: 90;
    inset: 70px 10px 78px;
    display: none;
    width: auto;
    max-height: none;
    margin: 0;
    padding: 46px 12px 14px;
    overflow-y: auto;
    border-color: rgba(98, 216, 238, 0.32);
    background: rgba(3, 13, 21, 0.985);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.72);
  }

  .layout-cohesive-v1.mobile-profile-open {
    overflow: hidden;
  }

  .layout-cohesive-v1.mobile-profile-open .profile-window {
    display: block;
  }

  .layout-cohesive-v1 .mobile-profile-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    min-width: 58px;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(126, 174, 205, 0.24);
    border-radius: 6px;
    color: #d7e6eb;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    background: rgba(8, 26, 37, 0.92);
  }

  .layout-cohesive-v1 .chat-panel {
    height: min(680px, calc(100svh - 154px));
    min-height: 560px;
  }

  .layout-cohesive-v1 .chat-list {
    padding: 12px;
  }

  .layout-cohesive-v1 .market-panel,
  .layout-cohesive-v1 .ranking-panel {
    min-height: 260px;
  }

  .layout-cohesive-v1 .mobile-bottom [data-action="mobile-market"]::before {
    background-image: url("/assets/icons-modern/scale.svg");
  }

  .layout-cohesive-v1 .mobile-bottom [data-action="mobile-ranking"]::before {
    background-image: url("/assets/icons-modern/trophy.svg");
  }

  .layout-cohesive-v1 .mobile-bottom .mobile-primary-tab {
    color: var(--modern-gold);
    background: linear-gradient(180deg, rgba(244, 200, 111, 0.11), transparent);
  }

  .layout-cohesive-v1 .mobile-bottom .mobile-primary-tab::before {
    filter: saturate(1.08) brightness(1.12) drop-shadow(0 0 7px rgba(244, 200, 111, 0.22));
  }
}

@media (max-width: 560px) {
  .layout-cohesive-v1 .server-strip {
    min-height: 62px;
    margin-bottom: 8px;
  }

  .layout-cohesive-v1 .ticker-window {
    display: none;
  }

  .layout-cohesive-v1 .chat-panel {
    height: calc(100svh - 216px);
    min-height: 420px;
    max-height: 680px;
    padding: 10px;
  }

  .layout-cohesive-v1 .chat-panel .panel-head {
    min-height: 34px;
    margin-bottom: 7px;
    padding-bottom: 7px;
  }

  .layout-cohesive-v1 .chat-panel .tab-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .layout-cohesive-v1 .chat-ai-note {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .layout-cohesive-v1 .chat-list {
    padding: 10px;
  }

  .layout-cohesive-v1 .market-head-actions {
    gap: 5px;
  }

  .layout-cohesive-v1 .market-mini-pager {
    display: none;
  }
}
