/* Tailwind overrides + product polish */
:root {
  --brand: #7c3aed;
  --brand-deep: #6d28d9;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 18px 40px rgba(15, 23, 42, 0.12);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.hidden {
  display: none !important;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.field-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
}

.field-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.875rem;
  background: #fff;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.field-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 0.875rem;
  padding: 0.875rem 1.25rem;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.primary-button:hover:not(:disabled) {
  background: var(--brand-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  border-radius: 0.875rem;
  padding: 0.75rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.secondary-button:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #fecaca;
  background: #fff1f2;
  color: #be123c;
  border-radius: 0.875rem;
  padding: 0.75rem 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.danger-button:hover {
  background: #ffe4e6;
  border-color: #fda4af;
}

.small-button {
  padding: 0.625rem 0.9rem;
  font-size: 0.875rem;
}

.auth-card,
.panel-card {
  background: #fff;
  border-radius: 1.5rem;
  border: 1px solid #eef2f7;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-fast);
}

.auth-card:hover,
.panel-card:hover {
  box-shadow: var(--shadow-hover);
}

.dashboard-header {
  padding: 0.25rem 0;
}

.identity-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-soft);
}

.avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), #8b5cf6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.tabs {
  display: inline-flex;
  gap: 0.5rem;
  padding: 0.375rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #e2e8f0;
}

.tab {
  padding: 0.75rem 1.25rem;
  border: 0;
  background: transparent;
  color: #64748b;
  font-weight: 700;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.tab:hover {
  color: #334155;
  background: #f8fafc;
}

.tab.active {
  color: white;
  background: var(--brand);
  box-shadow: var(--shadow-soft);
}

.tab-panel.hidden {
  display: none;
}

.panel-card {
  padding: 1.35rem;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
}

.section-subtitle {
  color: #64748b;
  font-size: 0.94rem;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.dashboard-summary {
  margin-bottom: 0.9rem;
}

.stat-card {
  border: 1px solid #edf2f7;
  background: #fff;
  border-radius: 1.15rem;
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.security-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #fcd34d;
  border-radius: 1.15rem;
  background: #fffbeb;
  box-shadow: var(--shadow-soft);
}

.security-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}

.security-hint {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #b45309;
}

.lockout-hint {
  color: #be123c;
}

.stat-card:hover,
.stat-card:focus {
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-value {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.7rem;
  line-height: 1;
  font-weight: 800;
  color: #0f172a;
}

.stat-caption {
  display: block;
  margin-top: 0.35rem;
  color: #94a3b8;
  font-size: 0.83rem;
}

.todo-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.todo-filter,
.todo-scope,
.quick-templates button {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  border-radius: 999px;
  padding: 0.47rem 0.85rem;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.todo-filter:hover,
.todo-scope:hover,
.quick-templates button:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.todo-filter.active,
.todo-scope.active {
  background: #ede9fe;
  color: #6d28d9;
  border-color: #ddd6fe;
}

.todo-scope.active {
  background: var(--brand);
  color: white;
}

.filter-divider {
  width: 1px;
  min-height: 1.8rem;
  background: #e2e8f0;
}

.quick-templates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.quick-templates button {
  padding: 0.42rem 0.75rem;
  font-size: 0.8rem;
}

.todo-composer-hint {
  margin-top: 0.85rem;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.45;
}

.quest-template-panel {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1rem;
  background: #ffffff;
}

.quest-template-list {
  display: grid;
  gap: 0.6rem;
}

.quest-template-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid #edf2f7;
  border-radius: 0.65rem;
  padding: 0.75rem;
  background: #f8fafc;
}

.quest-template-copy {
  display: grid;
  gap: 0.3rem;
}

.todo-item,
.note-item,
.user-row {
  border: 1px solid #edf2f7;
  background: #fff;
  border-radius: 1rem;
  transition: var(--transition-fast);
}

.todo-item:hover,
.note-item:hover,
.user-row:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.todo-item.todo-highlight {
  border-color: #c4b5fd;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.todo-item.todo-overdue {
  border-color: #fecaca;
  background: #fff7f7;
}

.todo-item.todo-due-soon {
  border-color: #fde68a;
  background: #fffbeb;
}

.todo-item {
  padding: 0.95rem 1rem;
}

.todo-main {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  width: 100%;
}

.todo-checkbox {
  margin-top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--brand);
  flex: 0 0 auto;
}

.todo-copy {
  min-width: 0;
  flex: 1;
}

.todo-delete,
.note-delete {
  border: 0;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 0.25rem 0.3rem;
  border-radius: 0.5rem;
  flex: 0 0 auto;
}

.todo-delete:hover,
.note-delete:hover {
  color: #ef4444;
  background: #fef2f2;
}

.todo-title {
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

.todo-title.is-done {
  text-decoration: line-through;
  color: #94a3b8;
}

.todo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.todo-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
}

.badge-overdue {
  background: #fee2e2;
  color: #991b1b;
}

.badge-due-soon {
  background: #fef3c7;
  color: #92400e;
}

.badge-household {
  background: #e0f2fe;
  color: #075985;
}

.badge-xp {
  background: #ede9fe;
  color: #5b21b6;
}

.badge-earned {
  background: #dcfce7;
  color: #166534;
}

.badge-pending {
  background: #ffedd5;
  color: #9a3412;
}

.badge-neutral {
  background: #ede9fe;
  color: #6d28d9;
}

.note-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.9rem 0.95rem;
}

.note-item.note-pinned {
  border-color: #c4b5fd;
  background: #faf5ff;
}

.note-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.35rem;
  color: #64748b;
  font-size: 0.73rem;
  font-weight: 700;
}

.note-category,
.note-pin {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  background: #f1f5f9;
  color: #475569;
}

.note-pin {
  background: #ede9fe;
  color: #6d28d9;
}

.pin-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3.2rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.875rem;
  color: #475569;
  font-weight: 700;
}

.log-list {
  display: grid;
  gap: 0.75rem;
}

.log-toolbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 0.7rem;
  padding: 0.75rem;
  border-radius: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.log-row {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.95rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
}

.log-row.log-resolved {
  opacity: 0.62;
  background: #f8fafc;
}

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

.log-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  color: #0f172a;
}

.log-title strong {
  overflow-wrap: anywhere;
}

.log-meta {
  margin-top: 0.35rem;
  color: #64748b;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.log-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.16rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.log-error {
  background: #fee2e2;
  color: #991b1b;
}

.log-warn {
  background: #fef3c7;
  color: #92400e;
}

.note-mark {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  margin-top: 0.42rem;
  background: linear-gradient(135deg, var(--brand), #8b5cf6);
  flex: 0 0 auto;
}

.note-copy {
  min-width: 0;
  flex: 1;
}

.note-text {
  font-weight: 600;
  color: #0f172a;
  line-height: 1.42;
}

.note-time {
  margin-top: 0.3rem;
  font-size: 0.76rem;
  color: #94a3b8;
}

.todo-delete,
.note-delete {
  opacity: 0;
}

.todo-item:hover .todo-delete,
.todo-item:focus-within .todo-delete,
.note-item:hover .note-delete,
.note-item:focus-within .note-delete {
  opacity: 1;
}

.user-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 0.95rem;
}

@media (hover: none) {
  .todo-delete,
  .note-delete {
    opacity: 1;
  }
}

.user-cell {
  min-width: 0;
}

.user-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.row-feedback {
  font-size: 0.875rem;
  color: #059669;
  font-weight: 700;
}

.user-row.saved-flash {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #64748b;
}

.toast {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 1000;
  max-width: 20rem;
  padding: 0.95rem 1rem;
  border-radius: 0.9rem;
  color: white;
  font-weight: 600;
  transform: translateX(120%);
  transition: transform 0.25s ease;
  box-shadow: var(--shadow-hover);
}

.toast.show {
  transform: translateX(0);
}

.toast-success {
  background: #10b981;
}

.toast-error {
  background: #ef4444;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.todo-item,
.note-item,
.user-row,
.stat-card {
  animation: slideIn 0.16s ease-out;
}

@media (min-width: 768px) {
  .user-row {
    grid-template-columns: 1.3fr 0.8fr 1fr auto;
    align-items: center;
  }

  .security-panel {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.8fr);
    align-items: center;
  }

  .security-actions {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .log-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Family Portal home-base redesign */
:root {
  --brand: #7c3aed;
  --brand-deep: #5b21b6;
  --sun: #f97316;
  --mint: #10b981;
  --sky: #0ea5e9;
  --rose: #f43f5e;
  --ink: #172033;
}

.portal-body {
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.86), rgba(8, 13, 31, 0.78) 38%, rgba(2, 6, 23, 0.93)),
    radial-gradient(circle at 14% 10%, rgba(251, 191, 36, 0.28), transparent 22rem),
    radial-gradient(circle at 86% 14%, rgba(34, 211, 238, 0.20), transparent 24rem),
    radial-gradient(circle at 76% 84%, rgba(168, 85, 247, 0.24), transparent 24rem),
    url('assets/hero-base-command-room.png') center top / cover fixed no-repeat,
    linear-gradient(135deg, #020617 0%, #111827 52%, #2e1065 100%);
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.86), rgba(8, 13, 31, 0.78) 38%, rgba(2, 6, 23, 0.93)),
    radial-gradient(circle at 14% 10%, rgba(251, 191, 36, 0.28), transparent 22rem),
    radial-gradient(circle at 86% 14%, rgba(34, 211, 238, 0.20), transparent 24rem),
    radial-gradient(circle at 76% 84%, rgba(168, 85, 247, 0.24), transparent 24rem),
    image-set(
      url('assets/hero-base-command-room.webp') type('image/webp'),
      url('assets/hero-base-command-room.png') type('image/png')
    ) center top / cover fixed no-repeat,
    linear-gradient(135deg, #020617 0%, #111827 52%, #2e1065 100%);
  color: var(--ink);
}

.page-shell {
  position: relative;
}

.page-shell::before,
.page-shell::after {
  content: '';
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(1px);
  opacity: 0.65;
}

.page-shell::before {
  width: 13rem;
  height: 13rem;
  left: -4rem;
  top: 12rem;
  background: repeating-linear-gradient(45deg, rgba(251, 191, 36, 0.12) 0 10px, transparent 10px 20px);
}

.page-shell::after {
  width: 10rem;
  height: 10rem;
  right: -3rem;
  bottom: 6rem;
  background: repeating-linear-gradient(-45deg, rgba(34, 211, 238, 0.10) 0 9px, transparent 9px 18px);
}

.auth-card,
.panel-card,
.identity-chip,
.tabs,
.hero-card,
.lounge-panel {
  backdrop-filter: blur(16px);
}

.auth-card,
.panel-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.78);
}

.base-auth-card {
  position: relative;
  overflow: hidden;
  margin-top: clamp(1.5rem, 8vh, 5rem);
  padding: 1.5rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.88)),
    linear-gradient(135deg, rgba(124, 58, 237, 0.16), rgba(14, 165, 233, 0.12));
}

.base-auth-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-top: 0.35rem solid rgba(251, 191, 36, 0.9);
  pointer-events: none;
}

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

.auth-role-strip {
  display: grid;
  gap: 0.45rem;
}

.auth-role-strip span {
  display: flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0.42rem 0.65rem;
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.7);
  color: #475569;
  font-size: 0.84rem;
  font-weight: 800;
}

.dashboard-header {
  padding: 1rem;
  border-radius: 1.75rem;
  background:
    linear-gradient(135deg, rgba(8, 13, 31, 0.90), rgba(15, 23, 42, 0.76)),
    radial-gradient(circle at 12% 0%, rgba(34, 211, 238, 0.18), transparent 18rem),
    radial-gradient(circle at 86% 0%, rgba(251, 191, 36, 0.18), transparent 18rem);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.identity-chip {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.24);
  color: #f8fafc;
}

.dashboard-header .text-slate-900 {
  color: #f8fafc;
}

.dashboard-header #role-badge {
  background: rgba(251, 191, 36, 0.16);
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.24);
}

.dashboard-header .secondary-button {
  background: rgba(15, 23, 42, 0.74);
  border-color: rgba(148, 163, 184, 0.26);
  color: #e2e8f0;
}

.dashboard-header .secondary-button:hover {
  background: rgba(30, 41, 59, 0.92);
  border-color: rgba(34, 211, 238, 0.35);
  color: #fff;
}

.avatar {
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.25);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  background: rgba(2, 6, 23, 0.46);
  border-color: rgba(148, 163, 184, 0.20);
}

.tab {
  color: #cbd5e1;
}

.tab:hover {
  color: #f8fafc;
  background: rgba(30, 41, 59, 0.86);
}

.tab.active {
  color: #020617;
  background: linear-gradient(135deg, #fbbf24, #22d3ee);
  box-shadow: 0 14px 32px rgba(34, 211, 238, 0.22);
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  background: rgba(124, 58, 237, 0.10);
  color: #6d28d9;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  overflow: hidden;
  position: relative;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(255,255,255,0.62)),
    radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.5), transparent 16rem),
    radial-gradient(circle at 15% 85%, rgba(14, 165, 233, 0.22), transparent 14rem);
  box-shadow: 0 24px 70px rgba(30, 41, 59, 0.12);
}

.hero-title {
  margin-top: 0.7rem;
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: -0.055em;
  color: #111827;
}

.hero-copy {
  margin-top: 1rem;
  max-width: 46rem;
  color: #475569;
  font-size: 1.04rem;
  line-height: 1.65;
}

.hero-orb {
  display: grid;
  place-items: center;
  justify-self: start;
  width: 7rem;
  height: 7rem;
  border-radius: 2rem;
  background: linear-gradient(135deg, #fef3c7, #f9a8d4);
  box-shadow: 0 22px 46px rgba(236, 72, 153, 0.24);
  font-size: 3.6rem;
  transform: rotate(4deg);
}

.space-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.space-card {
  display: flex;
  min-height: 13rem;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.55rem;
  position: relative;
  overflow: hidden;
  padding: 1.2rem;
  border: 0;
  border-radius: 1.6rem;
  text-align: left;
  color: #172033;
  cursor: pointer;
  box-shadow: 0 18px 42px rgba(30, 41, 59, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.space-card::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 0.45rem;
  background: rgba(255, 255, 255, 0.42);
}

.space-card:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: 0 28px 58px rgba(30, 41, 59, 0.18);
}

.space-icon {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.58);
  font-size: 2rem;
}

.space-kicker {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.72;
}

.space-card strong {
  font-size: 1.35rem;
  line-height: 1.1;
  font-weight: 950;
}

.space-card > span:not(.space-icon):not(.space-kicker) {
  color: rgba(23, 32, 51, 0.76);
  line-height: 1.45;
}

.family-space {
  background:
    linear-gradient(145deg, rgba(31, 41, 55, 0.92), rgba(88, 28, 135, 0.82)),
    linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
}

.kids-space {
  background:
    linear-gradient(145deg, rgba(30, 64, 175, 0.92), rgba(14, 116, 144, 0.82)),
    linear-gradient(90deg, rgba(15, 23, 42, 0.07) 1px, transparent 1px);
}

.rewards-space {
  background:
    linear-gradient(145deg, rgba(146, 64, 14, 0.92), rgba(88, 28, 135, 0.82)),
    linear-gradient(90deg, rgba(15, 23, 42, 0.06) 1px, transparent 1px);
}

.parents-space {
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(14, 116, 144, 0.78)),
    linear-gradient(90deg, rgba(15, 23, 42, 0.06) 1px, transparent 1px);
}

.arcade-space {
  background:
    linear-gradient(145deg, rgba(88, 28, 135, 0.92), rgba(190, 24, 93, 0.78)),
    linear-gradient(90deg, rgba(15, 23, 42, 0.06) 1px, transparent 1px);
}

.control-space {
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(30, 64, 175, 0.78)),
    linear-gradient(90deg, rgba(15, 23, 42, 0.07) 1px, transparent 1px);
}

.hero-hall-space {
  background:
    linear-gradient(145deg, rgba(49, 46, 129, 0.92), rgba(88, 28, 135, 0.82)),
    linear-gradient(90deg, rgba(15, 23, 42, 0.06) 1px, transparent 1px);
}

.hero-base-shell {
  display: grid;
  grid-template-columns: minmax(14rem, 0.68fr) minmax(0, 2.2fr) minmax(15rem, 0.82fr);
  gap: 1rem;
  align-items: start;
}

.base-profile-rail,
.base-center-deck,
.base-today-panel {
  min-width: 0;
  max-width: 100%;
}

.base-profile-rail,
.base-today-panel,
.base-map-panel,
.base-hero-card {
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 1.35rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.base-profile-rail,
.base-today-panel {
  display: grid;
  gap: 0.85rem;
  padding: 0.85rem;
  background:
    linear-gradient(180deg, rgba(9, 20, 38, 0.96), rgba(15, 23, 42, 0.92)),
    linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(251, 191, 36, 0.14));
  color: #f8fafc;
}

.base-center-deck {
  display: grid;
  gap: 1rem;
}

.base-portrait-card {
  display: grid;
  gap: 0.65rem;
  padding: 0.75rem;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 1.1rem;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.74));
}

.base-portrait-scene {
  position: relative;
  min-height: 12rem;
  overflow: hidden;
  border-radius: 1rem;
  background:
    linear-gradient(transparent 0 72%, rgba(14, 116, 144, 0.55) 72% 100%),
    linear-gradient(90deg, rgba(125, 211, 252, 0.2) 1px, transparent 1px),
    linear-gradient(rgba(125, 211, 252, 0.18) 1px, transparent 1px),
    radial-gradient(circle at 50% 18%, rgba(34, 211, 238, 0.62), transparent 5.5rem),
    linear-gradient(135deg, #172554, #312e81 55%, #581c87);
  background-size: auto, 2.2rem 2.2rem, 2.2rem 2.2rem, auto, auto;
}

.base-portrait-scene::before,
.base-portrait-scene::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
}

.base-portrait-scene::before {
  bottom: 1.05rem;
  width: 7.2rem;
  height: 1.35rem;
  background: rgba(34, 211, 238, 0.34);
  filter: blur(1px);
}

.base-portrait-scene::after {
  top: 1.1rem;
  width: 8.8rem;
  height: 0.34rem;
  background: rgba(125, 211, 252, 0.75);
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.65);
}

.base-portrait-face,
.base-coach-avatar {
  display: grid;
  place-items: center;
  font-weight: 950;
}

.base-portrait-face {
  position: absolute;
  left: 50%;
  bottom: 2.25rem;
  width: 7rem;
  height: 7rem;
  transform: translateX(-50%);
  border: 4px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 34%, #fde68a 0 1.4rem, transparent 1.45rem),
    radial-gradient(circle at 38% 58%, #0f172a 0 0.22rem, transparent 0.24rem),
    radial-gradient(circle at 62% 58%, #0f172a 0 0.22rem, transparent 0.24rem),
    linear-gradient(135deg, #38bdf8, #a78bfa 54%, #f59e0b);
  color: #172033;
  font-size: 3rem;
  box-shadow: 0 18px 40px rgba(14, 165, 233, 0.34);
}

.base-level-shield {
  position: absolute;
  right: 0.7rem;
  top: 0.7rem;
  display: grid;
  place-items: center;
  width: 4.3rem;
  height: 5.1rem;
  clip-path: polygon(50% 0, 94% 18%, 82% 82%, 50% 100%, 18% 82%, 6% 18%);
  background: linear-gradient(180deg, #fbbf24, #7c3aed);
  color: #fff;
  text-shadow: 0 2px 8px rgba(15, 23, 42, 0.34);
}

.base-level-shield span,
.base-status-kicker,
.base-stat-grid span,
.base-xp-label span,
.base-map-status,
.base-mission-row small,
.base-reward-grid span,
.base-reward-preview span,
.base-unlock-strip span {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.base-level-shield strong {
  font-size: 1.8rem;
  line-height: 1;
}

.base-status-kicker,
.base-stat-grid span,
.base-xp-label span,
.base-reward-preview span {
  color: rgba(248, 250, 252, 0.72);
}

.base-portrait-card > strong,
.base-reward-preview strong,
.base-coach-card strong {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 950;
}

.base-portrait-card > small {
  color: rgba(248, 250, 252, 0.72);
  font-weight: 800;
}

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

.base-stat-grid div,
.base-reward-preview,
.base-mission-row,
.base-rewards-summary,
.base-coach-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.08);
}

.base-stat-grid div {
  display: grid;
  gap: 0.25rem;
  padding: 0.62rem;
  text-align: center;
}

.base-stat-grid strong {
  color: #f8fafc;
  font-size: 1.25rem;
  font-weight: 950;
}

.base-reward-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5.5rem;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
}

.base-chest-art {
  position: relative;
  height: 4.4rem;
  border-radius: 0.7rem;
  background:
    linear-gradient(90deg, transparent 0 42%, rgba(56, 189, 248, 0.78) 42% 58%, transparent 58%),
    linear-gradient(180deg, #fbbf24 0 43%, #92400e 43% 100%);
  box-shadow: 0 16px 30px rgba(251, 191, 36, 0.22);
}

.base-chest-art::before,
.base-chest-art::after {
  content: '';
  position: absolute;
  inset: 0.7rem;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-radius: 0.45rem;
}

.base-chest-art::after {
  inset: 1.55rem 2.1rem 1.25rem;
  background: #fde68a;
}

.base-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(14rem, 0.92fr);
  gap: 1rem;
  overflow: hidden;
  position: relative;
  min-width: 0;
  max-width: 100%;
  min-height: 16rem;
  padding: 1.2rem;
  background:
    linear-gradient(90deg, rgba(9, 20, 38, 0.82), rgba(46, 16, 101, 0.42) 48%, rgba(15, 23, 42, 0.10)),
    url('assets/hero-base-command-room.png') center right / cover no-repeat,
    linear-gradient(135deg, #0f172a, #4c1d95);
  background:
    linear-gradient(90deg, rgba(9, 20, 38, 0.82), rgba(46, 16, 101, 0.42) 48%, rgba(15, 23, 42, 0.10)),
    image-set(
      url('assets/hero-base-command-room.webp') type('image/webp'),
      url('assets/hero-base-command-room.png') type('image/png')
    ) center right / cover no-repeat,
    linear-gradient(135deg, #0f172a, #4c1d95);
  color: #fff;
}

.base-hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(125, 211, 252, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(125, 211, 252, 0.1) 1px, transparent 1px);
  background-size: 3.4rem 3.4rem;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.base-hero-copy,
.base-room-preview {
  position: relative;
  z-index: 1;
}

.base-hero-copy {
  display: grid;
  align-content: center;
  gap: 1rem;
  min-width: 0;
  padding: 0.4rem;
}

.base-hero-card .eyebrow {
  background: rgba(251, 191, 36, 0.18);
  color: #fde68a;
}

.base-hero-card .hero-title {
  margin: 0;
  color: #f8fafc;
  font-size: 4.3rem;
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow: 0 12px 34px rgba(15, 23, 42, 0.32);
}

.base-hero-card .hero-copy {
  margin: 0;
  max-width: 38rem;
  color: rgba(248, 250, 252, 0.82);
}

.base-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.base-hero-actions .primary-button {
  background: #fbbf24;
  color: #1e1b4b;
}

.base-hero-actions .secondary-button {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
}

.base-room-preview {
  min-height: 13rem;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.36)),
    url('assets/hero-base-command-room.png') center right / cover no-repeat,
    linear-gradient(135deg, #1e3a8a, #581c87);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.36)),
    image-set(
      url('assets/hero-base-command-room.webp') type('image/webp'),
      url('assets/hero-base-command-room.png') type('image/png')
    ) center right / cover no-repeat,
    linear-gradient(135deg, #1e3a8a, #581c87);
}

@media (max-width: 1100px) {
  .base-hero-card {
    grid-template-columns: 1fr;
  }

  .base-hero-card .hero-title {
    font-size: 3.7rem;
  }

  .base-room-preview {
    display: none;
  }
}

.base-window,
.base-command-table,
.base-light-ring {
  position: absolute;
}

.base-window {
  right: 1rem;
  top: 1rem;
  width: 7.5rem;
  height: 5.2rem;
  border: 0.28rem solid rgba(255, 255, 255, 0.3);
  border-radius: 1rem;
  background: linear-gradient(135deg, #bae6fd, #fef3c7);
}

.base-command-table {
  left: 50%;
  bottom: 2rem;
  width: 10rem;
  height: 2.5rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.24), rgba(251, 191, 36, 0.24));
  box-shadow: 0 0 34px rgba(34, 211, 238, 0.34);
}

.base-light-ring {
  left: 50%;
  top: 1.05rem;
  width: 8rem;
  height: 0.55rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.76);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.62);
}

.base-map-panel {
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(8, 13, 31, 0.94), rgba(15, 23, 42, 0.86)),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 18rem),
    radial-gradient(circle at 12% 0%, rgba(251, 191, 36, 0.14), transparent 15rem);
}

.base-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.base-section-header h2 {
  margin: 0.45rem 0 0;
  color: #f8fafc;
  font-size: 1.6rem;
  font-weight: 950;
}

.base-map-status {
  color: rgba(226, 232, 240, 0.78);
  white-space: nowrap;
}

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

.base-room-card {
  justify-content: space-between;
  min-height: 12.8rem;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 1.15rem;
  color: #fff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
  isolation: isolate;
  z-index: 0;
}

.base-room-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('assets/hero-base-room-atlas.png');
  background-image: image-set(
    url('assets/hero-base-room-atlas.webp') type('image/webp'),
    url('assets/hero-base-room-atlas.png') type('image/png')
  );
  background-size: 300% 300%;
  background-position: 0% 0%;
  transform: scale(1.02);
  transition: transform 0.22s ease, filter 0.22s ease;
}

.base-room-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  height: auto;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.52) 58%, rgba(2, 6, 23, 0.86)),
    linear-gradient(90deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.28) 56%, rgba(2, 6, 23, 0.10)),
    linear-gradient(90deg, rgba(125, 211, 252, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(125, 211, 252, 0.10) 1px, transparent 1px);
  background-size: auto, auto, 2.4rem 2.4rem, 2.4rem 2.4rem;
}

.base-room-card:hover::before {
  filter: saturate(1.12) brightness(1.08);
  transform: scale(1.08);
}

.base-room-card > * {
  position: relative;
  z-index: 2;
}

.base-room-card .space-icon {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.base-room-card .space-kicker {
  color: rgba(248, 250, 252, 0.76);
  opacity: 1;
}

.base-room-card strong {
  color: #fff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.38);
}

.base-room-card > span:not(.space-icon):not(.space-kicker) {
  color: rgba(248, 250, 252, 0.86);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.base-room-meta {
  display: inline-flex;
  align-items: center;
  min-height: 1.65rem;
  margin-top: auto;
  padding: 0.24rem 0.58rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(248, 250, 252, 0.88);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.base-room-card.featured-room {
  outline: 3px solid rgba(251, 191, 36, 0.46);
  box-shadow: 0 24px 52px rgba(124, 58, 237, 0.22);
}

.base-room-card.locked-room {
  cursor: default;
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  color: #f8fafc;
  filter: saturate(0.78);
}

.base-room-card.locked-room:hover {
  transform: none;
}

.family-space::before { background-position: 0% 0%; }
.kids-space::before { background-position: 50% 0%; }
.hero-hall-space::before { background-position: 100% 0%; }
.rewards-space::before { background-position: 0% 50%; }
.arcade-space::before { background-position: 50% 50%; }
.parents-space::before { background-position: 100% 50%; }
.splinterlands-space::before { background-position: 0% 100%; }
.control-space::before { background-position: 50% 100%; }
.locked-room::before { background-position: 100% 100%; }

.base-today-panel {
  display: grid;
  gap: 0.85rem;
}

.base-mission-header,
.base-mission-row,
.base-coach-card {
  display: flex;
  align-items: center;
}

.base-mission-header {
  justify-content: space-between;
  gap: 0.75rem;
}

.base-mission-header .eyebrow,
.base-rewards-summary .eyebrow {
  background: rgba(255, 255, 255, 0.1);
  color: #e0f2fe;
}

.tiny-pill-button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.38rem 0.68rem;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(248, 250, 252, 0.86);
  font-size: 0.74rem;
  font-weight: 900;
  cursor: pointer;
}

.base-mission-list {
  display: grid;
  gap: 0.62rem;
}

.base-mission-row {
  width: 100%;
  gap: 0.62rem;
  padding: 0.72rem;
  color: #f8fafc;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-fast);
}

.base-mission-row:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.13);
}

.base-mission-row span:nth-child(2) {
  display: grid;
  flex: 1;
  min-width: 0;
}

.base-mission-row strong {
  font-size: 0.92rem;
  font-weight: 950;
}

.base-mission-row small {
  color: rgba(203, 213, 225, 0.82);
  letter-spacing: 0;
  text-transform: none;
}

.base-mission-row b {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.16);
  color: #fde68a;
  font-size: 0.95rem;
}

.mission-dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  box-shadow: 0 0 0 0.35rem rgba(255, 255, 255, 0.08);
}

.mission-dot.green { background: #22c55e; }
.mission-dot.amber { background: #f59e0b; }
.mission-dot.blue { background: #38bdf8; }

.base-rewards-summary {
  display: grid;
  gap: 0.75rem;
  padding: 0.8rem;
}

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

.base-reward-grid div {
  display: grid;
  gap: 0.25rem;
  padding: 0.65rem 0.45rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
}

.base-reward-grid strong {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 950;
}

.base-coach-card {
  gap: 0.72rem;
  padding: 0.75rem;
}

.base-coach-card p {
  margin: 0.25rem 0 0;
  color: rgba(203, 213, 225, 0.82);
  font-size: 0.86rem;
  line-height: 1.45;
}

.base-coach-avatar {
  flex: 0 0 auto;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #38bdf8, #fbbf24);
  color: #172033;
  font-size: 1.45rem;
}

.base-unlock-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(7rem, 12rem) auto;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
  padding: 0.8rem;
  border: 1px solid rgba(14, 165, 233, 0.22);
  border-radius: 1rem;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(14, 116, 144, 0.66));
  color: #f8fafc;
}

.base-unlock-strip span {
  color: #fde68a;
}

.base-unlock-strip strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1.3;
}

.base-unlock-lock,
.base-cube-art {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.12);
}

.base-unlock-progress {
  height: 0.48rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.base-unlock-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fbbf24, #22d3ee);
}

.base-cube-art {
  border: 1px solid rgba(125, 211, 252, 0.42);
  color: #e0f2fe;
  font-weight: 950;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.24);
}

.lounge-panel {
  padding: clamp(1.4rem, 4vw, 2.2rem);
  border-radius: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-soft);
}

.kids-lounge-panel {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(34, 211, 238, 0.16)), rgba(255,255,255,0.84);
}

.arcade-lounge-panel {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(59, 130, 246, 0.16)), rgba(255,255,255,0.86);
}

.rewards-lounge-panel {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(244, 63, 94, 0.12)), rgba(255,255,255,0.86);
}

.parents-lounge-panel {
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.20), rgba(255, 255, 255, 0.86));
}

.preview-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}

.preview-card {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255,255,255,0.86);
}

.kids-section-tab {
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-fast);
}

.kids-section-tab:hover,
.kids-section-tab.active {
  transform: translateY(-2px);
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow: var(--shadow-soft);
}

.kids-section-tab.active {
  background: rgba(255, 255, 255, 0.94);
}

.preview-card strong {
  font-weight: 900;
  color: #0f172a;
}

.preview-card span {
  color: #64748b;
  font-size: 0.9rem;
}

.kids-mini-panel {
  display: grid;
  gap: 1rem;
  padding: 1.15rem;
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.kids-mini-panel h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 950;
  color: #0f172a;
}

.kids-mini-panel p {
  margin: 0.25rem 0 0;
  color: #64748b;
}

.quest-list,
.badge-row,
.arcade-shelf {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

.quest-card,
.badge-card,
.arcade-game-card {
  display: grid;
  gap: 0.28rem;
  padding: 0.9rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.9);
  color: #0f172a;
}

.mission-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.mission-card-waiting {
  border-color: rgba(249, 115, 22, 0.3);
  background: rgba(255, 247, 237, 0.82);
}

.mission-card-main {
  display: grid;
  gap: 0.25rem;
}

.mission-rejected {
  color: #991b1b;
  font-size: 0.82rem;
  font-weight: 800;
}

.mission-empty {
  border-style: dashed;
}

.approval-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.mission-card .small-button,
.approval-actions .small-button {
  min-height: 2.25rem;
  padding: 0.45rem 0.7rem;
}

.arcade-shelf {
  padding: 0 1.25rem 1rem;
}

.arcade-game-card {
  text-align: left;
  cursor: pointer;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}

.arcade-game-card span {
  font-size: 1.65rem;
}

.arcade-game-card small {
  color: rgba(248, 250, 252, 0.68);
}

.arcade-game-card.active {
  border-color: rgba(251, 191, 36, 0.65);
  background: rgba(124, 58, 237, 0.34);
}

.arcade-game-card.coming-soon {
  opacity: 0.58;
  cursor: not-allowed;
}

.xp-bar {
  overflow: hidden;
  height: 0.5rem;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: #e2e8f0;
}

.xp-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7c3aed, #22d3ee);
}

.hero-system-panel {
  display: grid;
  gap: 1rem;
}

.xp-panel > .badge-row {
  display: none;
}

.hero-loading {
  padding: 1rem;
  border: 1px dashed rgba(100, 116, 139, 0.35);
  border-radius: 0.9rem;
  color: #475569;
  background: rgba(248, 250, 252, 0.72);
}

.hero-profile-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(124, 58, 237, 0.16);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(240, 253, 250, 0.88));
}

.hero-avatar {
  display: grid;
  place-items: center;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 1.1rem;
  background: #0f172a;
  color: #f8fafc;
  font-size: 2rem;
  font-weight: 950;
}

.hero-profile-copy h4 {
  margin: 0.15rem 0 0.15rem;
  font-size: 1.2rem;
  font-weight: 950;
  color: #0f172a;
}

.hero-profile-copy p,
.hero-total-xp span,
.hero-xp-label {
  color: #64748b;
}

.hero-total-xp {
  text-align: right;
}

.hero-total-xp strong {
  display: block;
  color: #0f172a;
  font-size: 1.55rem;
  line-height: 1;
}

.hero-xp-track,
.hero-abilities {
  padding: 0.9rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.hero-xp-label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  font-weight: 800;
}

.hero-xp-label strong {
  color: #334155;
  text-align: right;
}

.hero-abilities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-abilities span {
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}

.hero-class-card {
  display: grid;
  gap: 0.28rem;
  min-height: 6.25rem;
  padding: 0.85rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.76);
  color: #0f172a;
  text-align: left;
  cursor: pointer;
}

.hero-class-card:hover,
.hero-class-card.active {
  border-color: rgba(124, 58, 237, 0.45);
  background: rgba(237, 233, 254, 0.82);
}

.hero-class-card strong {
  font-weight: 950;
}

.hero-class-card span {
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.35;
}

.arcade-cabinet {
  overflow: hidden;
  border-radius: 1.65rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background:
    radial-gradient(circle at 18% 12%, rgba(59, 130, 246, 0.4), transparent 23rem),
    radial-gradient(circle at 86% 18%, rgba(239, 68, 68, 0.28), transparent 20rem),
    linear-gradient(135deg, #17143f, #28104f 52%, #101827);
  color: #f8fafc;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.26);
}

.arcade-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
}

.arcade-kicker {
  display: inline-flex;
  margin-bottom: 0.2rem;
  color: #fbbf24;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.arcade-header h3 {
  margin: 0;
  font-size: clamp(1.45rem, 4vw, 2.25rem);
  font-weight: 950;
}

.arcade-header p {
  margin: 0.2rem 0 0;
  color: rgba(248, 250, 252, 0.76);
}

.arcade-scoreboard {
  min-width: 5.6rem;
  padding: 0.75rem 0.9rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-align: center;
}

.arcade-scoreboard span {
  display: block;
  color: #c4b5fd;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.arcade-scoreboard strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
}

.arcade-stage-meta {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 1.25rem 1rem;
}

.arcade-stage-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.34);
  padding: 0.95rem 1rem;
}

.arcade-stage-card strong,
.arcade-stage-card small {
  display: block;
}

.arcade-stage-card strong {
  color: #f8fafc;
  font-size: 1.05rem;
  font-weight: 900;
}

.arcade-stage-card small {
  color: rgba(248, 250, 252, 0.76);
  margin-top: 0.35rem;
}

.game-frame {
  position: relative;
  margin: 0 1rem;
  border: 0.5rem solid rgba(15, 23, 42, 0.72);
  border-radius: 1.3rem;
  background: #050816;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 16px 42px rgba(0, 0, 0, 0.25);
}

.game-frame:fullscreen,
.game-frame.game-frame-expanded {
  margin: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
  border-width: 0;
  border-radius: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 18% 12%, rgba(59, 130, 246, 0.34), transparent 22rem),
    radial-gradient(circle at 86% 18%, rgba(239, 68, 68, 0.24), transparent 19rem),
    #050816;
  box-shadow: none;
  overflow: hidden;
  z-index: 80;
}

.game-frame.game-frame-expanded {
  position: fixed;
  inset: 0;
}

.game-stage-hud {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.game-status-chip {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.74);
  color: #f8fafc;
  font-size: 0.82rem;
  font-weight: 850;
  min-height: 2.2rem;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
}

.game-utility-controls {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 4;
  display: none;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.game-frame:fullscreen .game-utility-controls,
.game-frame.game-frame-expanded .game-utility-controls {
  display: flex;
}

.game-utility-button {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #f8fafc;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  min-height: 2.4rem;
  padding: 0.45rem 0.8rem;
}

#factory-flyer {
  display: block;
  width: 100%;
  max-height: min(58vh, 34rem);
  aspect-ratio: 9 / 5;
  border-radius: 0.8rem;
  cursor: pointer;
  touch-action: manipulation;
}

.game-frame:fullscreen #factory-flyer,
.game-frame.game-frame-expanded #factory-flyer {
  width: min(100vw - 1.5rem, calc((100vh - 1.5rem) * 1.8));
  max-width: 100%;
  max-height: calc(100vh - 1.5rem);
  border-radius: 1rem;
}

.game-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.85rem;
  padding: 4.25rem 1.5rem 1.5rem;
  border-radius: 0.8rem;
  background: linear-gradient(180deg, rgba(10, 8, 30, 0.28), rgba(10, 8, 30, 0.76));
  text-align: center;
}

.game-frame:fullscreen .game-overlay,
.game-frame.game-frame-expanded .game-overlay {
  border-radius: 1rem;
  padding: 6.25rem 1.25rem 1.5rem;
}

.game-overlay strong {
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  font-weight: 950;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.game-title-art {
  width: min(82%, 28rem);
  max-height: 12rem;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.45));
}

.game-overlay span {
  max-width: 24rem;
  color: rgba(248, 250, 252, 0.82);
}

.game-frame .primary-button,
.game-frame .secondary-button,
.game-utility-button {
  touch-action: manipulation;
}

.arcade-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 1.25rem 1.25rem;
}

.arcade-controls span {
  color: rgba(248, 250, 252, 0.72);
  font-size: 0.92rem;
}

#factory-flyer-fullscreen {
  white-space: nowrap;
}

.score-save-state {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.score-save-state.saved { color: #86efac; }
.score-save-state.saving { color: #fef08a; }
.score-save-state.failed { color: #fca5a5; }

.leaderboard-card {
  margin: 0 1.25rem 1.25rem;
  padding: 1rem;
  border-radius: 1.2rem;
  background: rgba(15, 23, 42, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.leaderboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.leaderboard-header h4 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 950;
}

.leaderboard-personal {
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.32);
  color: rgba(248, 250, 252, 0.86);
  white-space: nowrap;
}

.leaderboard-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.leaderboard-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(248, 250, 252, 0.9);
}

.leaderboard-list strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-rank {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.22);
  font-weight: 950;
}

.leaderboard-score {
  font-weight: 950;
  color: #fef08a;
}

body.factory-flyer-immersive {
  overflow: hidden;
}

body.factory-flyer-touch-lock {
  overscroll-behavior: none;
}

.game-frame.game-frame-touch-lock,
.game-frame.game-frame-touch-lock #factory-flyer,
.game-frame.game-frame-touch-lock .game-overlay,
.game-frame.game-frame-touch-lock .game-utility-controls {
  touch-action: none;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

@media (max-width: 760px) {
  .arcade-header,
  .leaderboard-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .arcade-stage-meta {
    grid-template-columns: 1fr;
    padding: 0 1rem 0.9rem;
  }

  .arcade-scoreboard,
  .leaderboard-personal {
    align-self: stretch;
  }

  .arcade-shelf {
    grid-template-columns: 1fr;
    padding: 0 1rem 0.9rem;
  }

  .game-frame {
    margin: 0 1rem;
    border-width: 0.35rem;
    border-radius: 1rem;
  }

  .game-utility-controls {
    left: 0.75rem;
    right: 0.75rem;
    top: 0.75rem;
  }

  .game-stage-hud {
    left: 0.75rem;
    right: 0.75rem;
    top: 0.75rem;
    padding-right: 7rem;
  }

  .game-utility-button {
    flex: 1 1 6.5rem;
  }

  .game-overlay {
    gap: 0.7rem;
    padding: 5rem 1rem 1rem;
  }

  .game-frame:fullscreen .game-overlay,
  .game-frame.game-frame-expanded .game-overlay {
    padding: 6.75rem 1rem 1.25rem;
  }

  .game-overlay strong {
    font-size: clamp(1.55rem, 8vw, 2.3rem);
  }

  .game-overlay span {
    font-size: 0.94rem;
  }

  .game-title-art {
    width: min(92%, 18rem);
    max-height: 7rem;
  }

  .arcade-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    padding: 0.9rem 1rem 1rem;
  }

  .arcade-controls button {
    min-height: 3rem;
    width: 100%;
  }

  .arcade-controls .score-save-state,
  .arcade-controls span {
    grid-column: 1 / -1;
  }

  .arcade-controls span:last-child {
    font-size: 0.84rem;
  }

  .leaderboard-card {
    margin: 0 1rem 1rem;
    padding: 0.9rem;
  }
}

@media (max-width: 560px) {
  .game-stage-hud {
    padding-right: 0;
    top: 3.8rem;
  }

  .game-status-chip {
    flex: 1 1 100%;
    justify-content: center;
  }

  .arcade-controls {
    grid-template-columns: 1fr;
  }

  .game-frame:fullscreen #factory-flyer,
  .game-frame.game-frame-expanded #factory-flyer {
    width: 100%;
  }
}

@media (min-width: 860px) {
  .hero-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .hero-orb {
    justify-self: end;
    width: 9rem;
    height: 9rem;
    font-size: 4.7rem;
  }
}

@media (max-width: 1180px) {
  .hero-base-shell {
    grid-template-columns: minmax(13rem, 0.72fr) minmax(0, 1.28fr);
  }

  .base-today-panel {
    grid-column: 1 / -1;
  }

  .base-profile-rail {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .base-hero-card {
    grid-template-columns: minmax(0, 1fr) minmax(12rem, 18rem);
  }

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

  .base-today-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .base-mission-header,
  .base-rewards-summary,
  .base-coach-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .hero-base-shell {
    grid-template-columns: 1fr;
  }

  .base-center-deck {
    order: 1;
  }

  .base-profile-rail {
    order: 2;
  }

  .base-today-panel {
    order: 3;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .dashboard-header {
    border-radius: 1.15rem;
    padding: 0.8rem;
  }

  .base-auth-card {
    padding: 1.25rem;
  }

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

  .base-center-deck {
    order: 1;
  }

  .base-profile-rail {
    order: 2;
  }

  .base-today-panel {
    order: 3;
  }

  .auth-role-strip span {
    font-size: 0.8rem;
  }

  .tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }

  .tab {
    flex: 0 0 auto;
    min-height: 2.75rem;
    padding: 0.65rem 0.9rem;
    white-space: nowrap;
  }

  .base-hero-card,
  .base-profile-rail,
  .base-map-panel,
  .base-today-panel {
    border-radius: 1.15rem;
  }

  .base-profile-rail,
  .base-today-panel {
    padding: 0.75rem;
  }

  .base-profile-rail {
    grid-template-columns: 1fr;
  }

  .base-portrait-scene {
    min-height: 10rem;
  }

  .base-portrait-face {
    width: 6rem;
    height: 6rem;
    font-size: 2.4rem;
  }

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

  .base-hero-card {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .base-room-preview {
    min-height: 9rem;
    order: -1;
  }

  .base-hero-card .hero-title {
    font-size: 3rem;
    line-height: 1;
  }

  .base-hero-card .hero-copy {
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .base-hero-actions,
  .base-hero-actions .primary-button,
  .base-hero-actions .secondary-button {
    width: 100%;
  }

  .base-today-panel,
  .base-room-grid {
    grid-template-columns: 1fr;
  }

  .base-section-header {
    display: grid;
    gap: 0.5rem;
  }

  .base-map-status {
    white-space: normal;
  }

  .base-room-card {
    min-height: 11.5rem;
    padding: 1rem;
  }

  .base-unlock-strip {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .base-unlock-progress {
    grid-column: 1 / -1;
  }

  .base-xp-label {
    display: grid;
    gap: 0.25rem;
  }

  .base-xp-label strong {
    text-align: left;
  }
}

@media (max-width: 390px) {
  .page-shell {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .identity-chip {
    width: 100%;
  }

  .base-auth-card {
    padding: 1rem;
  }

  .base-auth-card h1 {
    font-size: 2.35rem;
  }

  .base-hero-card .hero-title {
    font-size: 2.55rem;
  }

  .base-stat-grid,
  .base-reward-grid {
    grid-template-columns: 1fr;
  }

  .base-portrait-scene {
    min-height: 8.8rem;
  }

  .base-level-shield {
    width: 3.8rem;
    height: 4.5rem;
  }

  .space-icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.7rem;
  }

  .base-room-card strong {
    font-size: 1.2rem;
  }
}

.splinterlands-space {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(88, 28, 135, 0.9));
  color: #fff;
}

.splinterlands-panel {
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 32%), linear-gradient(135deg, #0f172a, #1e1b4b);
  color: #f8fafc;
}

.splinterlands-panel .section-title,
.splinterlands-panel .section-subtitle,
.splinterlands-panel .eyebrow {
  color: inherit;
}

.splinterlands-command-center-shell {
  background:
    linear-gradient(135deg, rgba(2, 6, 23, 0.84), rgba(15, 23, 42, 0.64)),
    radial-gradient(circle at 88% 8%, rgba(34, 211, 238, 0.14), transparent 30%),
    radial-gradient(circle at 12% 28%, rgba(251, 191, 36, 0.13), transparent 32%);
  border-color: rgba(251, 191, 36, 0.34);
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.splinterlands-command-header {
  align-items: start;
  border-bottom: 1px solid rgba(251, 191, 36, 0.18);
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.95fr);
  padding-bottom: 1rem;
}

.splinterlands-command-header .section-title {
  letter-spacing: 0;
}

.splinterlands-command-header-actions {
  align-items: stretch;
  display: grid;
  gap: 0.75rem;
  justify-items: end;
  min-width: 0;
}

.splinterlands-command-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
  min-width: 0;
}

.splinterlands-command-chip {
  align-items: center;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  color: #dbeafe;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.2;
  min-height: 2rem;
  padding: 0.38rem 0.62rem;
  white-space: normal;
}

.splinterlands-command-chip-account {
  background: rgba(251, 191, 36, 0.16);
  border-color: rgba(251, 191, 36, 0.48);
  color: #fde68a;
}

.secondary-button.splinterlands-command-refresh {
  background:
    linear-gradient(135deg, rgba(251, 191, 36, 0.24), rgba(14, 165, 233, 0.14)),
    rgba(15, 23, 42, 0.78);
  border-color: rgba(251, 191, 36, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
  color: #fde68a;
  min-width: 8rem;
}

.secondary-button.splinterlands-command-refresh:hover,
.secondary-button.splinterlands-command-refresh:focus-visible {
  background:
    linear-gradient(135deg, rgba(251, 191, 36, 0.34), rgba(14, 165, 233, 0.18)),
    rgba(15, 23, 42, 0.88);
  border-color: rgba(251, 191, 36, 0.7);
  color: #fff7ed;
}

.splinterlands-overview-command {
  background:
    linear-gradient(135deg, rgba(2, 6, 23, 0.78), rgba(15, 23, 42, 0.58)),
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.12), transparent 36%);
  border-color: rgba(251, 191, 36, 0.26);
  border-radius: 8px;
  padding: 1rem;
}

.splinterlands-overview-toolbar {
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  padding-bottom: 0.85rem;
}

.splinterlands-overview-toolbar h3 {
  letter-spacing: 0;
}

.splinterlands-overview-command-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: minmax(0, 1.55fr) minmax(18rem, 0.75fr);
}

.splinterlands-overview-command-grid > * {
  min-width: 0;
}

.splinterlands-command-kpi-card,
.splinterlands-command-main-panel,
.splinterlands-command-side-panel,
.splinterlands-overview-coverage-strip article {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.58));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  min-width: 0;
}

.splinterlands-command-kpi-card {
  display: block;
  padding: 1rem;
  text-align: left;
}

button.splinterlands-command-kpi-card {
  color: inherit;
  cursor: pointer;
  font: inherit;
}

button.splinterlands-command-kpi-card:hover,
button.splinterlands-command-kpi-card:focus-visible,
.splinterlands-overview-wallet-grid .splinterlands-balance-card:hover,
.splinterlands-overview-wallet-grid .splinterlands-balance-card:focus-visible {
  border-color: rgba(251, 191, 36, 0.58);
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  outline: none;
}

.splinterlands-command-kpi-primary {
  border-color: rgba(251, 191, 36, 0.38);
  grid-column: 1 / 2;
}

.splinterlands-command-kpi-gold {
  border-color: rgba(251, 191, 36, 0.32);
}

.splinterlands-command-kpi-green {
  border-color: rgba(34, 197, 94, 0.32);
}

.splinterlands-command-kpi-cyan {
  border-color: rgba(34, 211, 238, 0.32);
}

.splinterlands-command-kpi-card span,
.splinterlands-command-kpi-card small,
.splinterlands-overview-coverage-strip span,
.splinterlands-overview-coverage-strip small,
.splinterlands-overview-decision-card small {
  color: rgba(248, 250, 252, 0.72);
  display: block;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.35;
}

.splinterlands-command-kpi-card span,
.splinterlands-overview-coverage-strip span {
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.splinterlands-command-kpi-card strong,
.splinterlands-overview-coverage-strip strong,
.splinterlands-overview-decision-card strong,
.splinterlands-command-section-header strong {
  color: #f8fafc;
  display: block;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.15;
}

.splinterlands-command-kpi-card strong {
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  margin-top: 0.35rem;
}

.splinterlands-command-kpi-card small {
  margin-top: 0.35rem;
}

.splinterlands-overview-command .splinterlands-portfolio-card strong {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
}

.splinterlands-command-main-panel {
  grid-column: 1 / 2;
  padding: 1rem;
}

.splinterlands-command-side-panel {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  padding: 1rem;
}

.splinterlands-command-section-header {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.splinterlands-command-section-header strong {
  font-size: 1.05rem;
  margin-top: 0.18rem;
}

.splinterlands-overview-chart-panel.splinterlands-overview-market-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.splinterlands-overview-chart-panel .splinterlands-overview-market-card,
.splinterlands-overview-wallet-grid .splinterlands-balance-card {
  border-radius: 8px;
}

.splinterlands-overview-wallet-grid {
  grid-column: 1 / 2;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.splinterlands-overview-wallet-grid .splinterlands-balance-card {
  background: rgba(15, 23, 42, 0.66);
}

.splinterlands-overview-decision-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.85rem;
}

.splinterlands-overview-decision-card {
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.58);
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 2.1rem minmax(0, 1fr);
  padding: 0.72rem;
}

.splinterlands-overview-decision-card > span {
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 950;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.splinterlands-overview-decision-review { border-color: rgba(251, 191, 36, 0.32); }
.splinterlands-overview-decision-review > span { color: #fbbf24; }
.splinterlands-overview-decision-watch { border-color: rgba(56, 189, 248, 0.3); }
.splinterlands-overview-decision-watch > span { color: #38bdf8; }
.splinterlands-overview-decision-ready { border-color: rgba(34, 197, 94, 0.32); }
.splinterlands-overview-decision-ready > span { color: #4ade80; }
.splinterlands-overview-decision-safe { border-color: rgba(168, 85, 247, 0.3); }
.splinterlands-overview-decision-safe > span { color: #c084fc; }

.splinterlands-overview-coverage-strip {
  display: grid;
  gap: 0.65rem;
  grid-column: 1 / -1;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.splinterlands-overview-coverage-strip article {
  padding: 0.78rem;
}

.splinterlands-overview-coverage-strip article:nth-child(1),
.splinterlands-overview-coverage-strip article:nth-child(2),
.splinterlands-overview-coverage-strip article:nth-child(3) {
  border-color: rgba(34, 197, 94, 0.26);
}

.splinterlands-overview-coverage-strip article:nth-child(4),
.splinterlands-overview-coverage-strip article:nth-child(6) {
  border-color: rgba(251, 191, 36, 0.28);
}

.splinterlands-overview-coverage-strip article:nth-child(5) {
  border-color: rgba(56, 189, 248, 0.28);
}

.splinterlands-overview-coverage-strip strong {
  font-size: 0.95rem;
  margin-top: 0.18rem;
}

@media (max-width: 900px) {
  .splinterlands-command-header,
  .splinterlands-overview-command-grid,
  .splinterlands-overview-chart-panel.splinterlands-overview-market-grid {
    grid-template-columns: 1fr;
  }

  .splinterlands-command-side-panel,
  .splinterlands-command-main-panel {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .splinterlands-command-header-actions,
  .splinterlands-command-status-strip {
    justify-content: flex-start;
    justify-items: stretch;
  }

  .splinterlands-overview-wallet-grid,
  .splinterlands-overview-coverage-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .splinterlands-command-header {
    gap: 0.85rem;
  }

  .splinterlands-command-status-strip {
    display: grid;
    grid-template-columns: 1fr;
  }

  .splinterlands-command-kpi-grid,
  .splinterlands-overview-wallet-grid,
  .splinterlands-overview-coverage-strip {
    grid-template-columns: 1fr;
  }
}

.splinterlands-account-card {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.5rem;
  background: rgba(15, 23, 42, 0.62);
  padding: 1.25rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.26);
}

.splinterlands-account-card.splinterlands-overview-command {
  background:
    linear-gradient(135deg, rgba(2, 6, 23, 0.78), rgba(15, 23, 42, 0.58)),
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.12), transparent 36%);
  border-color: rgba(251, 191, 36, 0.26);
  border-radius: 8px;
  padding: 1rem;
}

.splinterlands-account-header {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.splinterlands-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.splinterlands-save-button {
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-weight: 800;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
}

.splinterlands-save-button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.26);
}

.splinterlands-save-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.splinterlands-account-header h3 {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0.15rem 0 0;
}

.eye-of-sauron-header {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.eye-of-sauron-access-pill {
  align-items: center;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: #334155;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 0.45rem 0.7rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.eye-of-sauron-note {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.04);
  color: #475569;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 1rem;
}

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

.splinterlands-balance-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 1rem;
}

.splinterlands-balance-card span {
  color: rgba(248, 250, 252, 0.74);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.splinterlands-balance-card strong {
  display: block;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 950;
  letter-spacing: -0.04em;
  margin-top: 0.35rem;
}

.splinterlands-portfolio-card {
  border: 1px solid rgba(251, 191, 36, 0.36);
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.22), rgba(14, 165, 233, 0.14));
  padding: 1.15rem;
}

.splinterlands-overview-command .splinterlands-portfolio-card.splinterlands-command-kpi-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.58));
  border-color: rgba(251, 191, 36, 0.38);
  border-radius: 8px;
  padding: 1rem;
}

.splinterlands-portfolio-card span,
.splinterlands-portfolio-card small,
.splinterlands-balance-card small {
  color: rgba(248, 250, 252, 0.72);
  display: block;
  font-weight: 800;
}

.splinterlands-portfolio-card span {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.splinterlands-portfolio-card strong {
  display: block;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 950;
  letter-spacing: -0.06em;
  line-height: 1;
  margin-top: 0.45rem;
}

.splinterlands-portfolio-card small,
.splinterlands-balance-card small {
  font-size: 0.82rem;
  margin-top: 0.35rem;
}

.splinterlands-overview-market-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.splinterlands-overview-market-card {
  border: 1px solid rgba(56, 189, 248, 0.26);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.42);
  padding: 1rem;
}

.splinterlands-market-card-header {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.splinterlands-overview-market-card span,
.splinterlands-overview-market-card small {
  color: rgba(248, 250, 252, 0.72);
  display: block;
  font-weight: 800;
}

.splinterlands-overview-market-card span {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.splinterlands-overview-market-card strong {
  color: #f8fafc;
  display: block;
  font-size: clamp(1.1rem, 2.5vw, 1.65rem);
  font-weight: 950;
  line-height: 1.1;
  margin-top: 0.35rem;
}

.splinterlands-market-movement {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  min-width: 5.6rem;
  padding-left: 0.85rem;
  text-align: right;
}

.splinterlands-market-movement strong {
  font-size: 0.92rem;
}

.splinterlands-market-legend {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: right;
}

.splinterlands-market-legend span {
  border-radius: 999px;
  color: #0f172a;
  font-size: 0.68rem;
  letter-spacing: 0;
  padding: 0.18rem 0.45rem;
}

.splinterlands-market-legend-sps {
  background: #fbbf24;
}

.splinterlands-market-legend-dec {
  background: #38bdf8;
}

.splinterlands-market-legend-hive {
  background: #34d399;
}

.splinterlands-overview-mini-chart {
  display: block;
  height: auto;
  margin: 0.85rem 0 0.45rem;
  max-width: 100%;
  min-height: 110px;
  overflow: visible;
  width: 100%;
}

.splinterlands-token-chart-grid {
  display: grid;
  gap: 0.65rem;
  margin: 0.85rem 0 0.5rem;
}

.splinterlands-token-chart-window {
  background: rgba(2, 6, 23, 0.30);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 0.85rem;
  min-height: 8.8rem;
  overflow: hidden;
  padding: 0.55rem 0.65rem 0.5rem;
}

.splinterlands-token-chart-label {
  align-items: center;
  display: flex;
  justify-content: space-between;
  line-height: 1;
}

.splinterlands-token-chart-label span {
  border-radius: 999px;
  color: #0f172a;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0;
  padding: 0.18rem 0.45rem;
}

.splinterlands-token-chart-window-sps .splinterlands-token-chart-label span {
  background: #fbbf24;
}

.splinterlands-token-chart-window-dec .splinterlands-token-chart-label span {
  background: #38bdf8;
}

.splinterlands-token-chart-window-hive .splinterlands-token-chart-label span {
  background: #34d399;
}

.splinterlands-overview-token-mini-chart {
  display: block;
  height: auto;
  margin-top: 0.45rem;
  max-width: 100%;
  min-height: 6.2rem;
  overflow: visible;
  width: 100%;
}

.splinterlands-trend-panel {
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.36);
  padding: 1rem;
}

.splinterlands-coverage-panel {
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.34);
  padding: 1rem;
}

.splinterlands-land-panel {
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.34);
  padding: 1rem;
}

.splinterlands-land-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
  padding-bottom: 0.65rem;
}

.splinterlands-land-tab {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.68);
  color: #cbd5e1;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  padding: 0.55rem 0.8rem;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.splinterlands-land-tab:hover,
.splinterlands-land-tab:focus-visible,
.splinterlands-land-tab.active {
  background: rgba(250, 204, 21, 0.16);
  border-color: rgba(250, 204, 21, 0.55);
  color: #facc15;
  outline: none;
}

.splinterlands-land-section {
  min-width: 0;
}

.splinterlands-coverage-pill {
  border: 1px solid rgba(251, 191, 36, 0.42);
  border-radius: 999px;
  color: #fde68a;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0.35rem 0.65rem;
}

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

.splinterlands-coverage-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  padding: 0.9rem;
}

.splinterlands-coverage-card span {
  color: #f8fafc;
  display: block;
  font-size: 0.82rem;
  font-weight: 900;
  margin-bottom: 0.65rem;
}

.splinterlands-coverage-card ul {
  display: grid;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.splinterlands-coverage-card li {
  color: rgba(248, 250, 252, 0.76);
  font-size: 0.84rem;
  font-weight: 750;
}

.splinterlands-coverage-covered {
  border-color: rgba(34, 197, 94, 0.32);
}

.splinterlands-coverage-next {
  border-color: rgba(251, 191, 36, 0.32);
}

.splinterlands-coverage-missing {
  border-color: rgba(148, 163, 184, 0.28);
}

.splinterlands-land-region-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.splinterlands-land-region-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  padding: 0.95rem;
  transition: var(--transition-fast);
  width: 100%;
}

.splinterlands-land-region-card:hover,
.splinterlands-land-region-card:focus-visible {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(251, 191, 36, 0.42);
  outline: none;
}

.splinterlands-land-region-card.active {
  border-color: rgba(34, 197, 94, 0.52);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.16);
}

.splinterlands-land-region-card header,
.splinterlands-land-region-stats {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.splinterlands-land-region-card span,
.splinterlands-land-region-card small {
  color: rgba(248, 250, 252, 0.74);
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
}

.splinterlands-land-region-card strong {
  color: #f8fafc;
  display: block;
  font-size: 1rem;
  font-weight: 950;
  margin-top: 0.25rem;
}

.splinterlands-land-region-card > small {
  margin-top: 0.75rem;
}

.splinterlands-land-region-stats {
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 0.85rem;
}

.splinterlands-land-region-stats span {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.3rem 0.55rem;
}

.splinterlands-land-region-detail {
  border: 1px solid rgba(34, 197, 94, 0.24);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.28);
  padding: 1rem;
}

.splinterlands-land-detail-header {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.splinterlands-land-detail-header h3 {
  color: #f8fafc;
  font-size: 1.15rem;
  font-weight: 950;
  margin: 0.2rem 0 0;
}

.splinterlands-land-detail-header small {
  color: rgba(248, 250, 252, 0.74);
  display: block;
  font-weight: 800;
  margin-top: 0.25rem;
}

.splinterlands-land-detail-columns {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.splinterlands-land-resource-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.75rem;
}

.splinterlands-land-production-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.75rem;
}

.splinterlands-land-production-grid small,
.splinterlands-land-plot-row small {
  color: rgba(248, 250, 252, 0.68);
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  margin-top: 0.25rem;
}

.splinterlands-land-production-table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

.splinterlands-land-production-table th,
.splinterlands-land-production-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(248, 250, 252, 0.84);
  font-size: 0.8rem;
  font-weight: 850;
  padding: 0.7rem 0.65rem;
  text-align: right;
  white-space: nowrap;
}

.splinterlands-land-production-table th {
  color: rgba(248, 250, 252, 0.68);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.splinterlands-land-production-table th:first-child,
.splinterlands-land-production-table td:first-child {
  text-align: left;
}

.splinterlands-land-production-table strong {
  color: #f8fafc;
}

.splinterlands-land-production-table tr.splinterlands-selected-row td {
  background: rgba(34, 197, 94, 0.1);
}

.splinterlands-land-production-table small {
  color: rgba(248, 250, 252, 0.6);
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  margin-top: 0.18rem;
  max-width: 22rem;
  white-space: normal;
}

.splinterlands-card-rental-identity {
  align-items: center;
  display: flex;
  gap: 0.7rem;
  min-width: 220px;
}

.splinterlands-card-rental-thumb {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 6px;
  flex: 0 0 auto;
  height: 64px;
  object-fit: cover;
  object-position: top center;
  width: 46px;
}

.splinterlands-card-rental-thumb-missing {
  display: inline-block;
}

.splinterlands-card-rental-workbench {
  align-items: stretch;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.76)),
    url("images/splinterlands-card-rental-desk.png") center / cover no-repeat,
    radial-gradient(circle at 18% 22%, rgba(245, 158, 11, 0.2), transparent 32%),
    radial-gradient(circle at 82% 35%, rgba(34, 197, 94, 0.16), transparent 30%);
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 8px;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  overflow: hidden;
  padding: 1rem;
  position: relative;
}

.splinterlands-card-rental-workbench::after {
  background:
    linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.08)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 12px);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.splinterlands-card-rental-workbench > * {
  position: relative;
  z-index: 1;
}

.splinterlands-card-rental-workbench span,
.splinterlands-card-rental-panels small,
.splinterlands-card-rental-decision-strip span {
  color: rgba(248, 250, 252, 0.62);
  display: block;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.splinterlands-card-rental-workbench strong {
  color: #f8fafc;
  display: block;
  font-size: 1.35rem;
  letter-spacing: 0;
  margin-top: 0.18rem;
}

.splinterlands-card-rental-workbench small {
  color: rgba(248, 250, 252, 0.72);
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.45;
  margin-top: 0.35rem;
  max-width: 46rem;
}

.splinterlands-card-rental-decision-strip {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.splinterlands-card-rental-decision-strip div {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 8px;
  padding: 0.72rem;
}

.splinterlands-card-rental-decision-strip strong {
  font-size: 1.05rem;
}

.splinterlands-card-rental-panels {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.18rem;
}

.splinterlands-card-rental-panels button {
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #f8fafc;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.4rem;
  min-height: 0;
  padding: 0.62rem 0.86rem;
  text-align: center;
}

.splinterlands-card-rental-panels button.active {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.48);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.16);
}

.splinterlands-card-rental-panels strong {
  color: #f8fafc;
  display: inline;
  font-size: 0.92rem;
}

.splinterlands-card-rental-panels span {
  color: #fbbf24;
  display: inline;
  font-size: 0.92rem;
  font-weight: 900;
  margin: 0;
}

.splinterlands-card-rental-table {
  min-width: 1120px;
}

.splinterlands-card-rental-source-strip {
  background: rgba(15, 23, 42, 0.66);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  color: rgba(248, 250, 252, 0.76);
  padding: 0.72rem 0.86rem;
}

.splinterlands-card-rental-source-strip summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 0.7rem;
  justify-content: space-between;
  list-style: none;
}

.splinterlands-card-rental-source-strip summary::-webkit-details-marker {
  display: none;
}

.splinterlands-card-rental-source-strip summary strong {
  color: #f8fafc;
  font-size: 0.82rem;
}

.splinterlands-card-rental-source-strip summary span,
.splinterlands-card-rental-source-strip div span {
  color: rgba(248, 250, 252, 0.64);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
}

.splinterlands-card-rental-source-strip div {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0.72rem;
}

.splinterlands-card-rental-source-strip div span {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  display: block;
  padding: 0.58rem;
}

.splinterlands-card-rental-source-strip div strong {
  color: rgba(248, 250, 252, 0.92);
  display: block;
  font-size: 0.68rem;
  margin-bottom: 0.18rem;
  text-transform: uppercase;
}

.splinterlands-card-rental-decision-list {
  display: grid;
  gap: 0.8rem;
}

.splinterlands-card-rental-queue-head {
  align-items: center;
  background: rgba(15, 23, 42, 0.52);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.72rem 0.86rem;
}

.splinterlands-card-rental-queue-head strong,
.splinterlands-card-rental-queue-head span,
.splinterlands-card-rental-queue-head small {
  display: block;
  line-height: 1.35;
}

.splinterlands-card-rental-queue-head strong {
  color: #f8fafc;
  font-size: 0.9rem;
}

.splinterlands-card-rental-queue-head span,
.splinterlands-card-rental-queue-head small {
  color: rgba(248, 250, 252, 0.66);
  font-size: 0.74rem;
  font-weight: 800;
}

.splinterlands-card-rental-decision-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.84), rgba(2, 6, 23, 0.74));
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: minmax(300px, 0.95fr) minmax(520px, 1.65fr);
  padding: 0.85rem;
}

.splinterlands-card-rental-decision-card-main {
  align-items: center;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: minmax(0, 1fr) minmax(112px, 0.34fr);
}

.splinterlands-card-rental-decision-card .splinterlands-card-rental-thumb {
  height: 96px;
  width: 68px;
}

.splinterlands-card-rental-decision-card .splinterlands-card-rental-identity strong {
  color: #f8fafc;
  font-size: 0.95rem;
}

.splinterlands-card-rental-decision-result {
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.22);
  border-radius: 8px;
  padding: 0.62rem;
  text-align: center;
}

.splinterlands-card-rental-decision-result strong {
  color: #f8fafc;
  display: block;
  font-size: 1.18rem;
  margin-top: 0.35rem;
}

.splinterlands-card-rental-decision-result small,
.splinterlands-card-rental-decision-card p,
.splinterlands-card-rental-decision-metrics small {
  color: rgba(248, 250, 252, 0.64);
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
}

.splinterlands-card-rental-decision-metrics {
  display: grid;
  gap: 0.62rem;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.splinterlands-card-rental-decision-metrics div {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 8px;
  padding: 0.62rem;
}

.splinterlands-card-rental-decision-metrics span {
  color: rgba(248, 250, 252, 0.56);
  display: block;
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.splinterlands-card-rental-decision-metrics strong {
  color: #fbbf24;
  display: block;
  font-size: 0.9rem;
  margin: 0.2rem 0;
}

.splinterlands-card-rental-decision-card p {
  grid-column: 1 / -1;
  margin: 0;
}

.splinterlands-card-rental-owned-market-section h4 {
  color: #f8fafc;
  font-size: 0.95rem;
  font-weight: 900;
  margin: 0 0 0.65rem;
}

.splinterlands-card-rental-market-card {
  border-color: rgba(245, 158, 11, 0.24);
}

.splinterlands-card-rental-execution-preview {
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 8px;
  min-width: 280px;
  padding: 0.68rem;
  text-align: left;
  white-space: normal;
}

.splinterlands-card-rental-execution-preview > strong {
  color: #f8fafc;
  display: block;
  font-size: 0.82rem;
}

.splinterlands-card-rental-execution-preview > span,
.splinterlands-card-rental-execution-preview > small,
.splinterlands-card-rental-execution-preview li small {
  color: rgba(248, 250, 252, 0.64);
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
  margin-top: 0.2rem;
}

.splinterlands-card-rental-execution-preview ol {
  display: grid;
  gap: 0.3rem;
  list-style: decimal;
  margin: 0.55rem 0 0.45rem 1rem;
  padding: 0;
}

.splinterlands-card-rental-execution-preview li strong {
  color: rgba(248, 250, 252, 0.9);
  display: block;
  font-size: 0.76rem;
}

.splinterlands-card-rental-buy-check-button {
  margin-bottom: 0.45rem;
  white-space: nowrap;
}

.splinterlands-card-rental-buy-check-result {
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  min-width: 220px;
  padding: 0.6rem;
  text-align: left;
  white-space: normal;
}

.splinterlands-card-rental-buy-check-result strong,
.splinterlands-card-rental-buy-check-result small,
.splinterlands-card-rental-buy-check-error {
  display: block;
  line-height: 1.35;
}

.splinterlands-card-rental-buy-check-result strong {
  color: #f8fafc;
  font-size: 0.8rem;
}

.splinterlands-card-rental-buy-check-result small,
.splinterlands-card-rental-buy-check-error {
  color: rgba(248, 250, 252, 0.66);
  font-size: 0.72rem;
  font-weight: 800;
  margin-top: 0.24rem;
}

.splinterlands-card-rental-buy-check-error {
  color: #fecaca;
}

.splinterlands-card-rental-operator-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.splinterlands-card-rental-operator-card {
  background: rgba(2, 6, 23, 0.48);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 8px;
  padding: 0.9rem;
}

.splinterlands-card-rental-operator-head,
.splinterlands-card-rental-operator-evidence {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(160px, 0.75fr));
}

.splinterlands-card-rental-operator-head {
  align-items: center;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 0.72fr);
}

.splinterlands-card-rental-operator-head span,
.splinterlands-card-rental-operator-evidence span,
.splinterlands-card-rental-operator-final-gate span {
  color: rgba(248, 250, 252, 0.72);
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.35;
}

.splinterlands-card-rental-operator-head strong,
.splinterlands-card-rental-operator-evidence strong,
.splinterlands-card-rental-operator-final-gate strong {
  color: #f8fafc;
  display: block;
  font-size: 0.86rem;
}

.splinterlands-card-rental-operator-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  margin-top: 0.85rem;
}

.splinterlands-card-rental-operator-panel,
.splinterlands-card-rental-operator-stage,
.splinterlands-card-rental-operator-evidence > div,
.splinterlands-card-rental-operator-final-gate {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  padding: 0.68rem;
  text-align: left;
}

.splinterlands-card-rental-operator-panel > strong,
.splinterlands-card-rental-operator-stage > strong {
  color: #f8fafc;
  display: block;
  font-size: 0.78rem;
  margin-bottom: 0.25rem;
}

.splinterlands-card-rental-operator-stage > span {
  color: #fbbf24;
  display: block;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 0.2rem;
}

.splinterlands-card-rental-operator-panel small,
.splinterlands-card-rental-operator-stage small,
.splinterlands-card-rental-operator-evidence small {
  color: rgba(248, 250, 252, 0.64);
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
  margin-top: 0.24rem;
}

.splinterlands-card-rental-operator-stage-ready {
  border-color: rgba(34, 197, 94, 0.34);
}

.splinterlands-card-rental-operator-stage-blocked {
  border-color: rgba(248, 113, 113, 0.28);
}

.splinterlands-card-rental-operator-stage ul {
  display: grid;
  gap: 0.22rem;
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.splinterlands-card-rental-operator-stage li {
  align-items: center;
  display: flex;
  gap: 0.35rem;
  justify-content: space-between;
}

.splinterlands-card-rental-operator-stage li strong,
.splinterlands-card-rental-operator-stage li span {
  color: rgba(248, 250, 252, 0.66);
  font-size: 0.68rem;
  line-height: 1.25;
}

.splinterlands-card-rental-operator-evidence {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.75rem;
}

.splinterlands-card-rental-operator-final-gate {
  border-color: rgba(245, 158, 11, 0.28);
  margin-top: 0.75rem;
}

.splinterlands-card-rental-action-progress {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.splinterlands-card-rental-action-progress > div {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.splinterlands-card-rental-action-progress span {
  background: rgba(2, 6, 23, 0.36);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 0.12rem;
  min-height: 58px;
  padding: 0.48rem;
}

.splinterlands-card-rental-action-progress span.is-complete {
  border-color: rgba(34, 197, 94, 0.42);
}

.splinterlands-card-rental-action-progress b {
  color: #f8fafc;
  font-size: 0.72rem;
  line-height: 1.2;
}

.splinterlands-card-rental-action-progress small {
  color: rgba(248, 250, 252, 0.62);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.25;
}

.splinterlands-card-rental-final-actions {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.75rem;
}

.splinterlands-card-rental-final-action {
  border-color: rgba(248, 113, 113, 0.42);
  color: #fecaca;
  margin-bottom: 0.45rem;
  white-space: normal;
}

@media (max-width: 980px) {
  .splinterlands-card-rental-workbench {
    grid-template-columns: 1fr;
  }

  .splinterlands-card-rental-panels,
  .splinterlands-card-rental-decision-strip,
  .splinterlands-card-rental-source-strip div,
  .splinterlands-card-rental-decision-card,
  .splinterlands-card-rental-decision-metrics,
  .splinterlands-card-rental-operator-grid,
  .splinterlands-card-rental-operator-evidence,
  .splinterlands-card-rental-action-progress > div,
  .splinterlands-card-rental-final-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .splinterlands-card-rental-operator-head {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .splinterlands-card-rental-workbench {
    padding: 0.85rem;
  }

  .splinterlands-card-rental-panels,
  .splinterlands-card-rental-decision-strip,
  .splinterlands-card-rental-source-strip div,
  .splinterlands-card-rental-decision-card,
  .splinterlands-card-rental-decision-card-main,
  .splinterlands-card-rental-decision-metrics,
  .splinterlands-card-rental-operator-grid,
  .splinterlands-card-rental-operator-evidence,
  .splinterlands-card-rental-action-progress > div,
  .splinterlands-card-rental-final-actions {
    grid-template-columns: 1fr;
  }

  .splinterlands-card-rental-queue-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

.splinterlands-land-plot-valuation-table {
  min-width: 900px;
}

.splinterlands-harvest-preview-table {
  min-width: 980px;
}

.splinterlands-harvest-preview-table code {
  color: rgba(248, 250, 252, 0.78);
  display: block;
  font-size: 0.72rem;
  max-width: 34rem;
  white-space: normal;
  word-break: break-word;
}

.splinterlands-decision-panel,
.splinterlands-harvest-action,
.splinterlands-ops-details {
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.42);
}

.splinterlands-decision-panel {
  padding: 1rem;
}

.splinterlands-decision-header,
.splinterlands-harvest-action {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.splinterlands-decision-header h3 {
  color: #f8fafc;
  font-size: 1.25rem;
  margin: 0.25rem 0;
}

.splinterlands-decision-header p {
  color: rgba(248, 250, 252, 0.74);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
  max-width: 52rem;
}

.splinterlands-decision-cards {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1rem;
}

.splinterlands-decision-cards div {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.75rem;
}

.splinterlands-decision-cards span,
.splinterlands-harvest-action span {
  color: rgba(248, 250, 252, 0.68);
  display: block;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.splinterlands-decision-cards strong,
.splinterlands-harvest-action strong {
  color: #f8fafc;
  display: block;
  font-weight: 950;
  margin-top: 0.2rem;
}

.splinterlands-primary-action {
  border: 1px solid rgba(251, 191, 36, 0.46);
  border-radius: 8px;
  background: rgba(251, 191, 36, 0.16);
  color: #fde68a;
  cursor: pointer;
  font: inherit;
  font-weight: 950;
  min-width: 11rem;
  padding: 0.7rem 0.9rem;
  text-align: left;
}

.splinterlands-primary-action strong {
  color: inherit;
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.splinterlands-primary-action:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.splinterlands-resource-sell-panel {
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.42);
  padding: 1rem;
}

.splinterlands-auto-sell-panel {
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.42);
  padding: 1rem;
}

.splinterlands-command-strip {
  min-width: 0;
}

.splinterlands-command-shell {
  border: 1px solid rgba(251, 191, 36, 0.24);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.42);
  display: grid;
  gap: 0.85rem;
  min-width: 0;
  padding: 1rem;
}

.splinterlands-command-shell > * {
  min-width: 0;
}

.splinterlands-command-hero {
  align-items: center;
  border: 1px solid rgba(34, 197, 94, 0.26);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(22, 101, 52, 0.24), rgba(15, 23, 42, 0.78));
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 1rem;
}

.splinterlands-command-hero h3 {
  color: #f8fafc;
  font-size: 1.45rem;
  line-height: 1.12;
  margin: 0.18rem 0;
}

.splinterlands-command-hero p {
  color: rgba(248, 250, 252, 0.78);
  font-size: 0.92rem;
  font-weight: 800;
  margin: 0;
}

.splinterlands-command-actions {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.splinterlands-command-actions .splinterlands-primary-action,
.splinterlands-command-actions .splinterlands-secondary-action {
  margin: 0;
}

.splinterlands-command-metrics,
.splinterlands-command-card-grid,
.splinterlands-command-queue {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
}

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

.splinterlands-command-card-grid,
.splinterlands-command-queue {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.splinterlands-command-metrics > div,
.splinterlands-command-card,
.splinterlands-command-queue-item {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.5);
  color: #f8fafc;
  min-width: 0;
  padding: 0.78rem;
  text-align: left;
}

.splinterlands-command-queue-item {
  cursor: pointer;
  font: inherit;
}

.splinterlands-command-queue-item:hover,
.splinterlands-command-queue-item:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  outline: 2px solid rgba(251, 191, 36, 0.42);
  outline-offset: 2px;
}

.splinterlands-command-metrics span,
.splinterlands-command-card span,
.splinterlands-command-card small,
.splinterlands-command-queue-item span,
.splinterlands-command-queue-item small {
  color: rgba(248, 250, 252, 0.72);
  display: block;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.35;
}

.splinterlands-command-metrics strong,
.splinterlands-command-card strong,
.splinterlands-command-queue-item strong {
  color: #f8fafc;
  display: block;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.18;
  margin: 0.18rem 0;
}

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

  .splinterlands-command-actions {
    justify-content: stretch;
  }

  .splinterlands-command-actions .splinterlands-primary-action,
  .splinterlands-command-actions .splinterlands-secondary-action {
    flex: 1 1 100%;
    text-align: center;
  }
}

.splinterlands-harvest-console {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.38);
  display: grid;
  gap: 1rem;
  min-width: 0;
  padding: 1rem;
}

.splinterlands-harvest-console > * {
  min-width: 0;
}

.splinterlands-module-status-rail {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.splinterlands-module-status-card,
.splinterlands-data-trust-banner {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.52);
  min-width: 0;
  padding: 0.75rem;
}

.splinterlands-module-status-card {
  align-items: flex-start;
  display: flex;
  gap: 0.55rem;
  justify-content: space-between;
}

.splinterlands-module-status-card span,
.splinterlands-module-status-card small,
.splinterlands-data-trust-banner small,
.splinterlands-data-trust-meta span {
  color: rgba(248, 250, 252, 0.72);
  display: block;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.35;
}

.splinterlands-module-status-card strong,
.splinterlands-data-trust-banner strong {
  color: #f8fafc;
  display: block;
  font-size: 0.95rem;
  font-weight: 950;
  line-height: 1.2;
  margin: 0.12rem 0;
}

.splinterlands-module-ok {
  border-color: rgba(34, 197, 94, 0.34);
}

.splinterlands-module-loading,
.splinterlands-module-partial,
.splinterlands-module-stale,
.splinterlands-module-cached {
  border-color: rgba(251, 191, 36, 0.34);
}

.splinterlands-module-error {
  border-color: rgba(248, 113, 113, 0.4);
}

.splinterlands-module-retry {
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 8px;
  background: rgba(251, 191, 36, 0.14);
  color: #fde68a;
  cursor: pointer;
  flex: 0 0 auto;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0.35rem 0.5rem;
}

.splinterlands-data-trust-banner {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.splinterlands-data-trust-meta {
  display: grid;
  gap: 0.4rem;
  grid-template-columns: repeat(4, minmax(0, auto));
}

.splinterlands-data-trust-meta span {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  padding: 0.28rem 0.45rem;
  white-space: nowrap;
}

.splinterlands-decision-banner {
  align-items: center;
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(22, 101, 52, 0.28), rgba(15, 23, 42, 0.78));
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  max-width: 100%;
  min-width: 0;
  padding: 1rem;
}

.splinterlands-decision-banner > div {
  flex: 1 1 auto;
  min-width: 0;
}

.splinterlands-decision-banner .splinterlands-primary-action {
  flex: 0 1 11rem;
  text-align: center;
}

.splinterlands-decision-banner h3 {
  color: #f8fafc;
  font-size: 1.45rem;
  margin: 0.15rem 0;
}

.splinterlands-decision-banner p {
  color: rgba(248, 250, 252, 0.78);
  font-size: 0.92rem;
  font-weight: 800;
  margin: 0;
  max-width: 58rem;
}

.splinterlands-workflow-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
}

.splinterlands-harvest-summary-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: 0;
}

.splinterlands-workflow-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 0.45rem;
  min-height: 8.8rem;
  padding: 0.85rem;
}

.splinterlands-workflow-card span,
.splinterlands-workflow-card small {
  color: rgba(248, 250, 252, 0.72);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.splinterlands-workflow-card strong {
  color: #f8fafc;
  font-size: 1.2rem;
  font-weight: 950;
  line-height: 1.14;
}

.splinterlands-workflow-card p {
  color: rgba(248, 250, 252, 0.78);
  font-size: 0.84rem;
  font-weight: 750;
  margin: 0;
}

.splinterlands-resource-sell-header {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.splinterlands-resource-sell-header h3 {
  color: #f8fafc;
  font-size: 1.35rem;
  margin: 0.18rem 0;
}

.splinterlands-resource-sell-header p {
  color: rgba(248, 250, 252, 0.76);
  font-size: 0.88rem;
  font-weight: 750;
  margin: 0;
  max-width: 56rem;
}

.splinterlands-resource-sell-summary {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.splinterlands-v2-production-advisor,
.splinterlands-v2-deployment-advisor {
  overflow-x: auto;
}

.splinterlands-v2-deployment-gap {
  align-items: center;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 8px;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.8rem;
  background: rgba(251, 191, 36, 0.08);
}

.splinterlands-v2-deployment-gap span {
  color: #fde68a;
  font-weight: 850;
  text-align: right;
}

.splinterlands-v2-deployment-checks {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.splinterlands-v2-deployment-check {
  border: 1px solid rgba(99, 233, 255, 0.16);
  border-radius: 8px;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.025);
}

.splinterlands-v2-deployment-check span,
.splinterlands-v2-deployment-check small {
  color: #92a9b3;
  display: block;
  font-size: 0.76rem;
  margin-top: 0.25rem;
}

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

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

.splinterlands-resource-price-card {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.28);
  box-shadow: inset 0 0.28rem 0 rgba(255, 255, 255, 0.14);
  min-height: 12rem;
  padding: 0.9rem;
}

.splinterlands-resource-price-grain { box-shadow: inset 0 0.28rem 0 #eab308; }
.splinterlands-resource-price-wood { box-shadow: inset 0 0.28rem 0 #a16207; }
.splinterlands-resource-price-stone { box-shadow: inset 0 0.28rem 0 #94a3b8; }
.splinterlands-resource-price-iron { box-shadow: inset 0 0.28rem 0 #64748b; }

.splinterlands-resource-price-card span,
.splinterlands-resource-price-card small,
.splinterlands-resource-price-card dt,
.splinterlands-resource-price-card dd {
  color: rgba(248, 250, 252, 0.74);
  font-size: 0.76rem;
  font-weight: 850;
}

.splinterlands-resource-price-card strong {
  color: #f8fafc;
  display: block;
  font-size: 1.25rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0.25rem 0;
}

.splinterlands-resource-price-card dl {
  display: grid;
  gap: 0.45rem;
  margin: 0.85rem 0;
}

.splinterlands-resource-price-card dl div {
  align-items: baseline;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 0.7rem;
  justify-content: space-between;
  padding-top: 0.45rem;
}

.splinterlands-resource-price-card dt,
.splinterlands-resource-price-card dd {
  margin: 0;
}

.splinterlands-resource-price-card dd {
  color: #f8fafc;
  text-align: right;
}

.splinterlands-placement-panel {
  border-color: rgba(45, 212, 191, 0.2);
}

.splinterlands-placement-header {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.splinterlands-placement-header small,
.splinterlands-placement-guardrail {
  color: rgba(248, 250, 252, 0.74);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.splinterlands-placement-guardrail {
  border: 1px solid rgba(45, 212, 191, 0.18);
  border-radius: 8px;
  background: rgba(45, 212, 191, 0.08);
  padding: 0.7rem 0.85rem;
}

.splinterlands-placement-table td {
  vertical-align: top;
}

.splinterlands-placement-table td:nth-child(6) small,
.splinterlands-placement-table td:nth-child(7) small {
  display: block;
  line-height: 1.35;
  min-width: 13rem;
  white-space: normal;
}

.splinterlands-placement-table tr.splinterlands-placement-row-move td {
  background: rgba(20, 184, 166, 0.08);
}

.splinterlands-placement-table tr.splinterlands-placement-row-review td {
  background: rgba(251, 191, 36, 0.06);
}

.splinterlands-placement-table tr.splinterlands-placement-row-needs-data td {
  background: rgba(96, 165, 250, 0.06);
}

.splinterlands-placement-pill {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 950;
  padding: 0.28rem 0.55rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.splinterlands-placement-confidence {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.66rem;
  font-weight: 900;
  margin-top: 0.35rem;
  padding: 0.22rem 0.48rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.splinterlands-placement-confidence-high {
  border-color: rgba(45, 212, 191, 0.42);
  color: #99f6e4;
}

.splinterlands-placement-confidence-medium {
  border-color: rgba(251, 191, 36, 0.42);
  color: #fde68a;
}

.splinterlands-placement-confidence-low,
.splinterlands-placement-confidence-unknown {
  border-color: rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
}

.splinterlands-placement-move_now {
  border-color: rgba(45, 212, 191, 0.5);
  color: #99f6e4;
}

.splinterlands-placement-review {
  border-color: rgba(251, 191, 36, 0.5);
  color: #fde68a;
}

.splinterlands-placement-needs_data {
  border-color: rgba(96, 165, 250, 0.5);
  color: #bfdbfe;
}

.splinterlands-placement-wait {
  border-color: rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
}

.splinterlands-placement-reason-codes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.45rem;
}

.splinterlands-placement-reason-codes span {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: rgba(226, 232, 240, 0.82);
  font-size: 0.64rem;
  font-weight: 850;
  line-height: 1;
  padding: 0.25rem 0.42rem;
  text-transform: uppercase;
}

.splinterlands-clear-preview {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: grid;
  gap: 0.24rem;
  min-width: 10rem;
  padding: 0.5rem;
}

.splinterlands-clear-preview-workers_only {
  background: rgba(20, 184, 166, 0.06);
  border-color: rgba(20, 184, 166, 0.22);
}

.splinterlands-clear-preview-manual_review {
  background: rgba(251, 191, 36, 0.06);
  border-color: rgba(251, 191, 36, 0.24);
}

.splinterlands-clear-preview strong,
.splinterlands-clear-preview small,
.splinterlands-clear-preview em,
.splinterlands-clear-preview code {
  display: block;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.splinterlands-clear-preview strong {
  color: #f8fafc;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.splinterlands-clear-preview small {
  color: rgba(226, 232, 240, 0.78);
  font-size: 0.68rem;
  font-weight: 800;
}

.splinterlands-clear-preview em {
  color: #fde68a;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 850;
}

.splinterlands-clear-preview code {
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 5px;
  color: #bfdbfe;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.16rem 0.22rem;
  white-space: normal;
}

.splinterlands-placement-target-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0.75rem;
}

.splinterlands-placement-target {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.28);
  min-width: 0;
  padding: 0.8rem;
}

.splinterlands-placement-target strong,
.splinterlands-placement-target span,
.splinterlands-placement-target small {
  display: block;
  line-height: 1.35;
}

.splinterlands-placement-target strong {
  color: #f8fafc;
  font-size: 0.88rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.splinterlands-placement-target span,
.splinterlands-placement-target small {
  color: rgba(248, 250, 252, 0.74);
  font-size: 0.76rem;
  font-weight: 800;
  margin-top: 0.25rem;
}

.splinterlands-resource-sell-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.splinterlands-resource-sell-band {
  height: 0.35rem;
}

.splinterlands-resource-grain .splinterlands-resource-sell-band { background: #eab308; }
.splinterlands-resource-wood .splinterlands-resource-sell-band { background: #a16207; }
.splinterlands-resource-stone .splinterlands-resource-sell-band { background: #94a3b8; }
.splinterlands-resource-iron .splinterlands-resource-sell-band { background: #64748b; }

.splinterlands-resource-sell-card-body {
  padding: 0.85rem;
}

.splinterlands-resource-sell-card header,
.splinterlands-resource-sell-value {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
}

.splinterlands-resource-sell-card header span,
.splinterlands-resource-sell-card header em,
.splinterlands-resource-sell-value span,
.splinterlands-resource-sell-card small {
  color: rgba(248, 250, 252, 0.72);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 850;
}

.splinterlands-resource-sell-card header strong {
  color: #f8fafc;
  display: block;
  font-size: 1.45rem;
  font-weight: 950;
  letter-spacing: 0;
  margin-top: 0.08rem;
}

.splinterlands-resource-sell-value {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
}

.splinterlands-resource-sell-value strong {
  color: #fde68a;
  font-size: 1rem;
  font-weight: 950;
  text-align: right;
}

.splinterlands-resource-sell-card dl {
  display: grid;
  gap: 0.45rem;
  margin: 0.8rem 0;
}

.splinterlands-resource-sell-card dl div {
  align-items: baseline;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  padding-top: 0.45rem;
}

.splinterlands-resource-sell-card dt,
.splinterlands-resource-sell-card dd {
  color: rgba(248, 250, 252, 0.74);
  font-size: 0.76rem;
  font-weight: 850;
  margin: 0;
}

.splinterlands-resource-sell-card dd {
  color: #f8fafc;
  text-align: right;
}

.splinterlands-auto-sell-controls {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 10% 8%, rgba(125, 211, 252, 0.08), transparent 28%),
    linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(8, 17, 31, 0.92));
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0.85rem;
  padding: 0.85rem;
}

.splinterlands-auto-sell-policy-fields {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(17, 28, 48, 0.68);
  display: grid;
  gap: 0.65rem;
  grid-column: span 3;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0.75rem;
}

.splinterlands-auto-sell-mode-card {
  border: 1px solid rgba(40, 112, 143, 0.7);
  border-radius: 8px;
  background: rgba(15, 41, 55, 0.72);
  display: grid;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.75rem;
}

.splinterlands-auto-sell-mode-card .splinterlands-secondary-action {
  width: 100%;
}

.splinterlands-auto-sell-mode-card .splinterlands-production-baseline-note {
  color: rgba(215, 243, 255, 0.76);
  font-size: 0.72rem;
  line-height: 1.35;
}

.splinterlands-auto-sell-controls label,
.splinterlands-auto-sell-resource-control label {
  color: rgba(248, 250, 252, 0.74);
  display: grid;
  font-size: 0.74rem;
  font-weight: 900;
  gap: 0.25rem;
  text-transform: uppercase;
}

.splinterlands-auto-sell-controls input,
.splinterlands-auto-sell-controls select {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.76);
  color: #f8fafc;
  font: inherit;
  font-weight: 850;
  min-width: 0;
  padding: 0.55rem 0.65rem;
}

.splinterlands-secondary-action {
  align-self: end;
  border: 1px solid rgba(125, 211, 252, 0.32);
  border-radius: 8px;
  background: rgba(14, 116, 144, 0.18);
  color: #bae6fd;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 0.65rem 0.75rem;
}

.splinterlands-auto-sell-resource-controls {
  display: grid;
  gap: 0.75rem;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.splinterlands-auto-sell-resource-control {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(18, 27, 43, 0.82);
  display: grid;
  gap: 0.55rem;
  padding: 0.65rem;
}

.splinterlands-auto-sell-resource-heading {
  align-items: center;
  display: flex;
  gap: 0.65rem;
  min-width: 0;
}

.splinterlands-auto-sell-resource-heading img {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  display: block;
  flex: 0 0 3.35rem;
  height: 3.35rem;
  object-fit: cover;
  width: 3.35rem;
}

.splinterlands-auto-sell-resource-field-grid {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.splinterlands-auto-sell-resource-control strong {
  color: #f8fafc;
  font-size: 0.82rem;
  font-weight: 950;
}

.splinterlands-auto-sell-resource-grain .splinterlands-auto-sell-resource-heading img {
  border-color: rgba(250, 204, 21, 0.42);
}

.splinterlands-auto-sell-resource-wood .splinterlands-auto-sell-resource-heading img {
  border-color: rgba(34, 197, 94, 0.38);
}

.splinterlands-auto-sell-resource-stone .splinterlands-auto-sell-resource-heading img {
  border-color: rgba(148, 163, 184, 0.4);
}

.splinterlands-auto-sell-resource-iron .splinterlands-auto-sell-resource-heading img {
  border-color: rgba(96, 165, 250, 0.42);
}

.splinterlands-auto-sell-resource-grain strong {
  color: #fde68a;
}

.splinterlands-auto-sell-resource-wood strong {
  color: #bbf7d0;
}

.splinterlands-auto-sell-resource-stone strong {
  color: #e2e8f0;
}

.splinterlands-auto-sell-resource-iron strong {
  color: #bfdbfe;
}

.splinterlands-autopilot-card {
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.42);
  padding: 0.9rem;
}

.splinterlands-autopilot-hero {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.splinterlands-autopilot-hero strong {
  color: #f8fafc;
  display: block;
  font-size: 1.35rem;
  font-weight: 950;
  margin-top: 0.15rem;
}

.splinterlands-autopilot-hero small {
  color: rgba(248, 250, 252, 0.72);
  display: block;
  font-weight: 800;
  margin-top: 0.25rem;
}

.splinterlands-autopilot-controls {
  align-items: end;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(210px, 1fr) minmax(190px, 0.9fr) minmax(170px, 0.75fr) max-content;
  padding: 0.75rem;
}

.splinterlands-autopilot-controls .splinterlands-coverage-pill {
  align-self: center;
  justify-self: end;
  white-space: nowrap;
}

.splinterlands-autopilot-row-detail {
  color: rgba(248, 250, 252, 0.72);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  grid-column: 1 / -1;
  line-height: 1.35;
}

.splinterlands-autopilot-controls label {
  color: rgba(248, 250, 252, 0.74);
  display: grid;
  font-size: 0.74rem;
  font-weight: 900;
  gap: 0.25rem;
  text-transform: uppercase;
}

.splinterlands-autopilot-controls select {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.76);
  color: #f8fafc;
  font: inherit;
  font-weight: 850;
  min-width: 0;
  padding: 0.58rem 0.65rem;
}

.splinterlands-autopilot-bridge {
  display: flex;
  justify-content: flex-end;
}

.splinterlands-autopilot-last-result {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.65rem 0.75rem;
}

.splinterlands-autopilot-last-result strong,
.splinterlands-autopilot-last-result span,
.splinterlands-autopilot-last-result small {
  color: rgba(248, 250, 252, 0.78);
  font-size: 0.78rem;
  font-weight: 850;
}

.splinterlands-autopilot-last-result span {
  color: #f8fafc;
  font-size: 0.95rem;
  font-weight: 950;
}

.splinterlands-autopilot-next-action {
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.56);
  padding: 1rem;
}

.splinterlands-autopilot-next-action h3 {
  color: #f8fafc;
  font-size: 1.3rem;
  line-height: 1.18;
  margin: 0.2rem 0;
}

.splinterlands-autopilot-next-action p {
  color: rgba(248, 250, 252, 0.78);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.45;
  margin: 0;
}

.splinterlands-autopilot-next-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.9rem;
}

.splinterlands-autopilot-next-grid div {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  min-width: 0;
  padding: 0.75rem;
}

.splinterlands-autopilot-next-grid span {
  color: rgba(248, 250, 252, 0.68);
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.splinterlands-autopilot-next-grid strong {
  color: #f8fafc;
  display: block;
  font-size: 0.96rem;
  font-weight: 950;
  line-height: 1.2;
  margin-top: 0.22rem;
  overflow-wrap: anywhere;
}

.splinterlands-toggle-control {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  display: flex !important;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.6rem 0.7rem;
}

.splinterlands-toggle-control input {
  accent-color: #facc15;
  height: 1.05rem;
  width: 1.05rem;
}

.splinterlands-toggle-control span {
  color: #f8fafc;
  font-size: 0.82rem;
  line-height: 1.2;
}

.splinterlands-policy-settings {
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.42);
  padding: 0.75rem;
}

.splinterlands-secondary-signals {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.32);
  padding: 0.75rem;
}

.splinterlands-policy-settings > summary,
.splinterlands-secondary-signals > summary {
  color: #bae6fd;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 950;
  list-style-position: inside;
}

.splinterlands-auto-sell-decision-board {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 0.6rem;
  padding: 0.85rem;
}

.splinterlands-auto-sell-decision-row {
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.68);
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 0.9fr 1fr 1.7fr 1fr 0.9fr;
  padding: 0.75rem;
}

.splinterlands-auto-sell-decision-row > div {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
}

.splinterlands-auto-sell-decision-row span,
.splinterlands-auto-sell-decision-row small,
.splinterlands-muted-action {
  color: rgba(248, 250, 252, 0.66);
  font-size: 0.72rem;
  font-weight: 850;
}

.splinterlands-auto-sell-decision-row span {
  text-transform: uppercase;
}

.splinterlands-auto-sell-decision-row strong {
  color: #f8fafc;
  font-size: 0.93rem;
  font-weight: 950;
  line-height: 1.25;
}

.splinterlands-auto-sell-why strong {
  color: rgba(248, 250, 252, 0.9);
  font-size: 0.85rem;
}

.splinterlands-auto-sell-action {
  align-content: center;
}

.splinterlands-harvest-action {
  padding: 0.85rem;
}

.splinterlands-ops-details {
  padding: 0.85rem;
}

.splinterlands-ops-details > summary {
  color: #fde68a;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 950;
  list-style-position: inside;
}

.splinterlands-filter-pills,
.splinterlands-section-heading-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
}

.splinterlands-filter-pills {
  justify-content: flex-start;
}

.splinterlands-plot-inspector {
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.22);
  padding: 0.9rem;
}

.splinterlands-production-baseline-note {
  color: rgba(248, 250, 252, 0.68);
  display: block;
  font-size: 0.75rem;
  font-weight: 850;
  margin-top: 0.4rem;
}

.splinterlands-land-plot-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.splinterlands-land-plot-row {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.8rem;
}

.splinterlands-land-plot-row span {
  color: rgba(248, 250, 252, 0.68);
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.splinterlands-land-plot-row strong {
  color: #f8fafc;
  display: block;
  font-weight: 950;
}

.splinterlands-plot-ops-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.splinterlands-plot-ops-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.85rem;
}

.splinterlands-plot-ops-header {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.splinterlands-plot-ops-header span,
.splinterlands-plot-ops-card dt,
.splinterlands-plot-ops-card small {
  color: rgba(248, 250, 252, 0.66);
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.splinterlands-plot-ops-header strong,
.splinterlands-plot-ops-card dd {
  color: #f8fafc;
  font-weight: 900;
}

.splinterlands-plot-ops-header em {
  color: rgba(248, 250, 252, 0.72);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.splinterlands-plot-ops-card dl {
  display: grid;
  gap: 0.6rem;
  margin: 0.75rem 0;
}

.splinterlands-plot-ops-card dd {
  font-size: 0.82rem;
  line-height: 1.35;
  margin: 0.1rem 0 0;
}

.splinterlands-prep-ready {
  border-color: rgba(34, 197, 94, 0.24);
  background: rgba(34, 197, 94, 0.08);
}

.splinterlands-prep-blocked {
  border-color: rgba(248, 113, 113, 0.28);
  background: rgba(127, 29, 29, 0.16);
}

.splinterlands-prep-watch {
  border-color: rgba(251, 191, 36, 0.28);
  background: rgba(120, 53, 15, 0.14);
}

.splinterlands-prep-waiting {
  border-color: rgba(125, 211, 252, 0.24);
  background: rgba(14, 116, 144, 0.12);
}

.splinterlands-action-queue {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.splinterlands-action-item {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0.9rem;
  text-align: left;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.splinterlands-action-item:disabled {
  cursor: default;
}

.splinterlands-action-item:not(:disabled):hover,
.splinterlands-action-item:not(:disabled):focus-visible {
  border-color: rgba(255, 213, 79, 0.58);
  outline: none;
  transform: translateY(-1px);
}

.splinterlands-action-item span,
.splinterlands-action-item small {
  color: rgba(248, 250, 252, 0.72);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
}

.splinterlands-action-item strong {
  color: #f8fafc;
  display: block;
  font-size: 1.08rem;
  line-height: 1.3;
  margin: 0.28rem 0;
}

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

.splinterlands-mover-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  padding: 0.85rem;
}

button.splinterlands-mover-card {
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

button.splinterlands-mover-card:hover {
  border-color: rgba(255, 213, 79, 0.55);
  transform: translateY(-1px);
}

.splinterlands-mover-card span,
.splinterlands-mover-card small {
  color: rgba(248, 250, 252, 0.72);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
}

.splinterlands-mover-card strong {
  color: #f8fafc;
  display: block;
  font-size: 1.25rem;
  margin: 0.35rem 0;
}

@media (max-width: 1320px) {
  .splinterlands-workflow-grid,
  .splinterlands-harvest-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .splinterlands-module-status-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .splinterlands-balance-grid,
  .splinterlands-action-queue,
  .splinterlands-mover-grid,
  .splinterlands-coverage-grid,
  .splinterlands-land-region-grid,
  .splinterlands-land-detail-columns,
  .splinterlands-land-resource-grid,
  .splinterlands-land-production-grid,
  .splinterlands-decision-cards,
  .splinterlands-command-metrics,
  .splinterlands-command-card-grid,
  .splinterlands-command-queue,
  .splinterlands-workflow-grid,
  .splinterlands-harvest-summary-grid,
  .splinterlands-resource-price-grid,
  .splinterlands-placement-target-grid,
  .splinterlands-resource-sell-grid,
  .splinterlands-resource-sell-summary,
  .splinterlands-autopilot-next-grid,
  .splinterlands-auto-sell-controls,
  .splinterlands-auto-sell-policy-fields,
  .splinterlands-auto-sell-resource-controls,
  .splinterlands-plot-ops-grid,
  .splinterlands-module-status-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .splinterlands-auto-sell-policy-fields,
  .splinterlands-auto-sell-mode-card {
    grid-column: 1 / -1;
  }
  .splinterlands-ops-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .splinterlands-auto-sell-decision-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .splinterlands-account-header {
    display: block;
  }
  .splinterlands-balance-grid,
  .splinterlands-action-queue,
  .splinterlands-mover-grid,
  .splinterlands-coverage-grid,
  .splinterlands-land-region-grid,
  .splinterlands-land-detail-columns,
  .splinterlands-land-resource-grid,
  .splinterlands-land-production-grid,
  .splinterlands-decision-cards,
  .splinterlands-command-metrics,
  .splinterlands-command-card-grid,
  .splinterlands-command-queue,
  .splinterlands-workflow-grid,
  .splinterlands-harvest-summary-grid,
  .splinterlands-resource-price-grid,
  .splinterlands-placement-target-grid,
  .splinterlands-resource-sell-grid,
  .splinterlands-resource-sell-summary,
  .splinterlands-autopilot-next-grid,
  .splinterlands-auto-sell-controls,
  .splinterlands-auto-sell-policy-fields,
  .splinterlands-auto-sell-resource-controls,
  .splinterlands-auto-sell-resource-field-grid,
  .splinterlands-plot-ops-grid,
  .splinterlands-module-status-rail,
  .splinterlands-data-trust-meta {
    grid-template-columns: 1fr;
  }
  .splinterlands-decision-header,
  .splinterlands-command-hero,
  .splinterlands-decision-banner,
  .splinterlands-data-trust-banner,
  .splinterlands-harvest-action {
    align-items: stretch;
    flex-direction: column;
  }
  .splinterlands-decision-banner,
  .splinterlands-command-hero,
  .splinterlands-auto-sell-decision-row {
    display: grid;
    grid-template-columns: 1fr;
  }
  .splinterlands-primary-action {
    width: 100%;
  }
  .splinterlands-land-detail-header {
    display: block;
  }
  .splinterlands-ledger-detail-grid {
    grid-template-columns: 1fr;
  }
}

.splinterlands-subtabs,
.splinterlands-range-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.splinterlands-ops-panel {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 1rem;
}

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

.splinterlands-ops-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.22);
  padding: 0.85rem;
}

.splinterlands-ops-card span,
.splinterlands-ops-card small {
  color: rgba(248, 250, 252, 0.76);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
}

.splinterlands-ops-card strong {
  color: #f8fafc;
  display: block;
  font-size: 1.15rem;
  font-weight: 900;
  margin-top: 0.2rem;
}

.splinterlands-subtab,
.splinterlands-range-button {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(248, 250, 252, 0.78);
  cursor: pointer;
  font-weight: 850;
  padding: 0.62rem 1rem;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.splinterlands-subtab:hover,
.splinterlands-range-button:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.splinterlands-subtab.active,
.splinterlands-range-button.active {
  background: #fbbf24;
  border-color: rgba(251, 191, 36, 0.9);
  color: #1e1b4b;
  box-shadow: 0 12px 28px rgba(251, 191, 36, 0.22);
}

.splinterlands-swap-pools-view {
  border-color: rgba(251, 191, 36, 0.2);
}

.splinterlands-swap-pool-tabs {
  align-items: center;
  background: rgba(2, 6, 23, 0.48);
  border: 1px solid rgba(251, 191, 36, 0.18);
  border-radius: 8px;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.55rem;
  scrollbar-width: thin;
}

.splinterlands-swap-pool-tab {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.78);
  color: rgba(248, 250, 252, 0.82);
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 900;
  min-height: 2.75rem;
  padding: 0.72rem 1rem;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.splinterlands-swap-pool-tab:hover,
.splinterlands-swap-pool-tab:focus-visible {
  background: rgba(251, 191, 36, 0.16);
  border-color: rgba(251, 191, 36, 0.46);
  color: #fff7ed;
  outline: none;
}

.splinterlands-swap-pool-tab.active {
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.92), rgba(180, 83, 9, 0.88));
  border-color: rgba(253, 224, 71, 0.95);
  box-shadow: 0 12px 26px rgba(251, 191, 36, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  color: #fff7ed;
}

.splinterlands-swap-pool-tab-muted {
  color: rgba(248, 250, 252, 0.46);
  cursor: not-allowed;
}

.splinterlands-swap-pool-panel {
  border: 1px solid rgba(251, 191, 36, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.42);
  padding: 1rem;
}

.splinterlands-swap-pool-panel-header {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.splinterlands-swap-pool-panel-header h3 {
  color: #f8fafc;
  font-size: clamp(1.35rem, 2vw, 1.95rem);
  font-weight: 950;
  letter-spacing: 0;
  margin: 0.2rem 0 0;
}

.splinterlands-swap-pool-panel-header small {
  color: rgba(248, 250, 252, 0.72);
  display: block;
  font-weight: 760;
  margin-top: 0.25rem;
}

.splinterlands-arb-watch-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
}

.splinterlands-arb-watch-card {
  border: 1px solid rgba(251, 191, 36, 0.16);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.34);
  padding: 1rem;
}

.splinterlands-arb-watch-routes {
  grid-row: span 2;
}

.splinterlands-arb-token-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.splinterlands-arb-token-controls .splinterlands-range-button {
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
}

.splinterlands-arb-amount-control {
  display: grid;
  gap: 0.45rem;
}

.splinterlands-arb-amount-control span {
  color: rgba(248, 250, 252, 0.76);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.splinterlands-arb-amount-control input {
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.78);
  color: #f8fafc;
  font-weight: 900;
  min-height: 2.55rem;
  padding: 0.55rem 0.7rem;
  width: 100%;
}

.splinterlands-arb-route-table td:first-child {
  min-width: 16rem;
}

.splinterlands-history-summary {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.splinterlands-chart-card,
.splinterlands-empty-state {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 1rem;
}

.splinterlands-empty-state {
  color: rgba(248, 250, 252, 0.82);
  font-weight: 750;
  text-align: center;
}
.splinterlands-empty-state strong,
.splinterlands-empty-state span {
  display: block;
}
.splinterlands-empty-state strong {
  color: #f8fafc;
}
.splinterlands-empty-state span {
  margin-top: 0.35rem;
}
.splinterlands-empty-action {
  border: 1px solid rgba(251, 191, 36, 0.42);
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.16);
  color: #fde68a;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  margin-top: 0.75rem;
  padding: 0.48rem 0.85rem;
}
.splinterlands-empty-action:hover,
.splinterlands-empty-action:focus-visible {
  background: rgba(251, 191, 36, 0.24);
  outline: 2px solid rgba(251, 191, 36, 0.45);
  outline-offset: 2px;
}

.splinterlands-chart-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.splinterlands-chart-header span,
.splinterlands-chart-header small {
  color: rgba(248, 250, 252, 0.78);
  font-weight: 850;
}

.splinterlands-chart-header span {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

#splinterlands-history-chart {
  display: block;
  height: auto;
  max-width: 100%;
  min-height: 180px;
  overflow: visible;
  width: 100%;
}

/* Splinterlands command-center visual parity pass. Keep these overrides late so
   the staging surface visibly follows the approved command-board mockups. */
body.splinterlands-focus-mode {
  background: #020617;
  overflow-x: hidden;
}

body.splinterlands-focus-mode .page-shell {
  max-width: none;
  min-height: 100vh;
  padding: 0;
  width: 100%;
}

body.splinterlands-focus-mode .dashboard-header {
  display: none;
}

body.splinterlands-focus-mode main {
  min-height: 100vh;
  width: 100%;
}

body.splinterlands-focus-mode #splinterlands-panel {
  min-height: 100vh;
}

.splinterlands-command-center-shell {
  border: 1px solid rgba(251, 191, 36, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(7, 13, 25, 0.88) 48%, rgba(2, 6, 23, 0.96)),
    radial-gradient(circle at 82% 0%, rgba(14, 165, 233, 0.18), transparent 34%),
    radial-gradient(circle at 8% 12%, rgba(251, 191, 36, 0.18), transparent 28%);
  box-shadow: 0 28px 90px rgba(2, 6, 23, 0.66), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  padding: 0;
}

body.splinterlands-focus-mode .splinterlands-command-center-shell {
  border-color: rgba(251, 191, 36, 0.3);
  border-radius: 0;
  display: grid;
  grid-template-areas:
    "rail header"
    "rail content"
    "rail footer";
  grid-template-columns: 15.75rem minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  transform: none;
  width: 100%;
}

@media (min-width: 1120px) {
  body:not(.splinterlands-focus-mode) .splinterlands-command-center-shell {
    margin-left: 50%;
    transform: translateX(-50%);
    width: min(calc(100vw - 2rem), 92rem);
  }
}

.splinterlands-command-center-shell::before {
  background:
    linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.28), transparent),
    repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.08) 0 1px, transparent 1px 84px);
  content: "";
  display: block;
  height: 1px;
}

.splinterlands-command-center-shell > .splinterlands-command-header {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.72)),
    radial-gradient(circle at left top, rgba(251, 191, 36, 0.16), transparent 34%);
  border-bottom: 1px solid rgba(251, 191, 36, 0.26);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(24rem, 0.9fr);
  gap: 1.25rem;
  padding: 1.15rem 1.35rem;
}

body.splinterlands-focus-mode .splinterlands-command-center-shell > .splinterlands-command-header {
  grid-area: header;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 4.8rem;
  padding: 0.7rem 1rem;
}

.splinterlands-command-title-lockup {
  align-items: center;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: auto minmax(0, 1fr);
}

.splinterlands-command-badge {
  filter: drop-shadow(0 0 16px rgba(251, 191, 36, 0.35));
  height: 3.4rem;
  width: 3.4rem;
}

body.splinterlands-focus-mode .splinterlands-command-badge {
  height: 3rem;
  width: 3rem;
}

.splinterlands-command-header .eyebrow {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.28);
  color: #fbbf24;
  display: inline-flex;
  margin-bottom: 0.55rem;
  padding: 0.24rem 0.55rem;
}

.splinterlands-command-header .section-title {
  color: #fbbf24;
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  letter-spacing: 0;
  line-height: 1;
  text-shadow: 0 0 24px rgba(251, 191, 36, 0.24);
}

body.splinterlands-focus-mode .splinterlands-command-header .section-title {
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  white-space: nowrap;
}

.splinterlands-command-header .section-subtitle {
  color: rgba(226, 232, 240, 0.86);
  max-width: 52rem;
}

body.splinterlands-focus-mode .splinterlands-command-header .section-subtitle {
  display: none;
}

.splinterlands-command-header-actions {
  gap: 0.7rem;
  justify-items: end;
}

.splinterlands-command-top-actions {
  display: flex;
  gap: 0.65rem;
  justify-content: end;
}

.splinterlands-portal-return {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  color: rgba(226, 232, 240, 0.88);
  cursor: pointer;
  font-weight: 900;
  min-height: 2.8rem;
  padding: 0 0.9rem;
}

.splinterlands-command-status-strip {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, 42rem);
}

body.splinterlands-focus-mode .splinterlands-command-status-strip {
  gap: 0.5rem;
  width: min(100%, 38rem);
}

.splinterlands-command-chip {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.86));
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: 8px;
  color: #dbeafe;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.55rem 0.7rem;
  text-align: center;
}

body.splinterlands-focus-mode .splinterlands-command-chip {
  font-size: 0.77rem;
  min-height: 2.25rem;
  padding: 0.35rem 0.58rem;
}

body.splinterlands-focus-mode .splinterlands-command-top-actions .splinterlands-command-refresh,
body.splinterlands-focus-mode .splinterlands-portal-return {
  min-height: 2.35rem;
}

.splinterlands-command-chip-account {
  border-color: rgba(251, 191, 36, 0.48);
  color: #fde68a;
}

.secondary-button.splinterlands-command-refresh {
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.42), rgba(120, 53, 15, 0.86));
  border-color: rgba(251, 191, 36, 0.72);
  border-radius: 8px;
  color: #fff7ed;
  min-height: 2.8rem;
  width: min(100%, 13rem);
}

.splinterlands-command-workbench {
  display: grid;
  gap: 1rem;
  grid-template-columns: 14.5rem minmax(0, 1fr);
  padding: 1rem;
}

body.splinterlands-focus-mode .splinterlands-command-workbench {
  display: contents;
  padding: 0;
}

.splinterlands-command-rail {
  align-self: start;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.72));
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 0.85rem;
  padding: 0.75rem;
}

body.splinterlands-focus-mode .splinterlands-command-rail {
  align-self: stretch;
  border-color: rgba(148, 163, 184, 0.24);
  border-radius: 0;
  border-width: 0 1px 0 0;
  grid-area: rail;
  max-height: 100vh;
  overflow: auto;
  padding: 0.85rem;
}

.splinterlands-command-rail-brand {
  align-items: center;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  display: grid;
  gap: 0.7rem;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 0.25rem 0.35rem 0.85rem;
}

.splinterlands-command-rail-badge {
  filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.35));
  height: 2.65rem;
  width: 2.65rem;
}

.splinterlands-command-rail-brand span,
.splinterlands-command-rail-footer span {
  color: rgba(203, 213, 225, 0.68);
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.splinterlands-command-rail-brand strong,
.splinterlands-command-rail-footer strong {
  color: #f8fafc;
  display: block;
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: 0;
  margin-top: 0.22rem;
}

.splinterlands-command-rail .splinterlands-subtabs {
  display: grid;
  gap: 0.35rem;
}

.splinterlands-command-rail .splinterlands-subtab {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(226, 232, 240, 0.82);
  display: grid;
  font-size: 0.94rem;
  font-weight: 850;
  gap: 0.7rem;
  grid-template-columns: 1.55rem minmax(0, 1fr);
  justify-content: start;
  min-height: 2.55rem;
  padding: 0.48rem 0.62rem;
  text-align: left;
  width: 100%;
}

.splinterlands-command-rail .splinterlands-subtab::before {
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 6px;
  color: rgba(203, 213, 225, 0.86);
  content: attr(data-splinterlands-view);
  display: inline-flex;
  font-size: 0.58rem;
  font-weight: 950;
  height: 1.45rem;
  justify-content: center;
  line-height: 1;
  overflow: hidden;
  text-transform: uppercase;
  width: 1.45rem;
}

.splinterlands-nav-icon {
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.22));
  height: 1.55rem;
  object-fit: contain;
  width: 1.55rem;
}

body.splinterlands-focus-mode .splinterlands-command-rail .splinterlands-subtab::before {
  display: none;
}

.splinterlands-command-rail .splinterlands-subtab.active,
.splinterlands-command-rail .splinterlands-subtab:hover,
.splinterlands-command-rail .splinterlands-subtab:focus-visible {
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.38), rgba(120, 53, 15, 0.72));
  border-color: rgba(251, 191, 36, 0.68);
  color: #fff7ed;
  outline: none;
}

.splinterlands-command-rail .splinterlands-subtab.active::before,
.splinterlands-command-rail .splinterlands-subtab:hover::before,
.splinterlands-command-rail .splinterlands-subtab:focus-visible::before {
  border-color: rgba(253, 230, 138, 0.8);
  color: #fff7ed;
}

.splinterlands-command-rail-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  display: grid;
  gap: 0.6rem;
  padding: 0.9rem 0.35rem 0.2rem;
}

.splinterlands-command-rail-refresh,
.splinterlands-command-footer-ticker button {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.36);
  border-radius: 8px;
  color: #fde68a;
  cursor: pointer;
  font-weight: 900;
  min-height: 2.4rem;
}

.splinterlands-command-content {
  min-width: 0;
}

body.splinterlands-focus-mode .splinterlands-command-content {
  grid-area: content;
  overflow: auto;
  padding: 0.85rem 0.85rem 0 0.85rem;
}

.splinterlands-command-content > .splinterlands-view {
  margin-top: 0;
}

.splinterlands-command-content .splinterlands-account-card,
.splinterlands-command-content .splinterlands-v2-shell {
  background: rgba(2, 6, 23, 0.58);
  border-color: rgba(251, 191, 36, 0.22);
  border-radius: 8px;
}

.splinterlands-account-card.splinterlands-overview-command {
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.68), rgba(15, 23, 42, 0.56));
  border-color: rgba(251, 191, 36, 0.26);
  padding: 0.8rem;
}

body.splinterlands-focus-mode .splinterlands-account-card.splinterlands-overview-command {
  border: 0;
  padding: 0;
}

.splinterlands-overview-toolbar {
  align-items: center;
  background: rgba(2, 6, 23, 0.38);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0.8rem 0.95rem;
}

body.splinterlands-focus-mode .splinterlands-overview-toolbar,
body.splinterlands-focus-mode #splinterlands-save-status {
  display: none;
}

.splinterlands-overview-toolbar .arcade-kicker,
.splinterlands-reconciliation-title {
  color: #fbbf24;
}

.splinterlands-overview-toolbar h3 {
  color: #f8fafc;
  font-size: clamp(1.65rem, 2.6vw, 2.25rem);
}

.splinterlands-overview-command-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-areas:
    "portfolio wallet decisions"
    "markets markets decisions"
    "coverage coverage coverage";
  grid-template-columns: minmax(18rem, 0.86fr) minmax(0, 1.58fr) minmax(19rem, 0.9fr);
}

body.splinterlands-focus-mode .splinterlands-overview-command-grid {
  gap: 0.65rem;
  grid-template-areas:
    "portfolio wallet wallet wallet decisions"
    "markets markets markets markets decisions"
    "coverage coverage coverage coverage coverage";
  grid-template-columns: minmax(13rem, 0.92fr) repeat(3, minmax(0, 1fr)) minmax(20rem, 1.06fr);
  margin-top: 0 !important;
}

.splinterlands-command-kpi-primary {
  grid-area: portfolio;
}

.splinterlands-overview-wallet-grid {
  display: grid;
  gap: 0.75rem;
  grid-area: wallet;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.splinterlands-focus-mode .splinterlands-overview-wallet-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.splinterlands-overview-chart-panel.splinterlands-overview-market-grid {
  display: grid;
  gap: 0.75rem;
  grid-area: markets;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  padding: 0.75rem;
}

body.splinterlands-focus-mode .splinterlands-overview-primary-chart,
body.splinterlands-focus-mode .splinterlands-overview-chart-panel.splinterlands-overview-market-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr);
  padding: 0.65rem;
}

.splinterlands-overview-decision-panel {
  grid-area: decisions;
  min-height: 100%;
}

.splinterlands-overview-coverage-strip {
  grid-area: coverage;
}

.splinterlands-command-kpi-card,
.splinterlands-overview-wallet-grid .splinterlands-balance-card,
.splinterlands-overview-market-card,
.splinterlands-overview-decision-panel,
.splinterlands-overview-coverage-card {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.78)),
    radial-gradient(circle at right top, rgba(56, 189, 248, 0.08), transparent 42%);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 36px rgba(2, 6, 23, 0.22);
  overflow: hidden;
  position: relative;
}

.splinterlands-visual-art {
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.45));
  height: 4.8rem;
  object-fit: contain;
  opacity: 0.9;
  pointer-events: none;
  position: absolute;
  right: 0.55rem;
  top: 0.55rem;
  width: 4.8rem;
}

.splinterlands-visual-art-land {
  height: 5.8rem;
  width: 5.8rem;
}

.splinterlands-visual-art-gold,
.splinterlands-visual-art-token {
  height: 5.3rem;
  width: 5.3rem;
}

.splinterlands-command-kpi-card > span,
.splinterlands-command-kpi-card > strong,
.splinterlands-command-kpi-card > small,
.splinterlands-overview-wallet-grid .splinterlands-balance-card > span,
.splinterlands-overview-wallet-grid .splinterlands-balance-card > strong,
.splinterlands-overview-wallet-grid .splinterlands-balance-card > small,
.splinterlands-overview-market-card > :not(.splinterlands-visual-art) {
  position: relative;
  z-index: 1;
}

.splinterlands-overview-command .splinterlands-portfolio-card.splinterlands-command-kpi-card {
  background:
    linear-gradient(180deg, rgba(39, 30, 12, 0.78), rgba(2, 6, 23, 0.82)),
    radial-gradient(circle at 86% 42%, rgba(251, 191, 36, 0.28), transparent 38%);
  border-color: rgba(251, 191, 36, 0.5);
  min-height: 9rem;
}

body.splinterlands-focus-mode .splinterlands-overview-command .splinterlands-portfolio-card.splinterlands-command-kpi-card,
body.splinterlands-focus-mode .splinterlands-overview-wallet-grid .splinterlands-balance-card {
  min-height: 8.25rem;
}

.splinterlands-command-kpi-card strong,
.splinterlands-overview-wallet-grid .splinterlands-balance-card strong {
  color: #f8fafc;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  letter-spacing: 0;
}

.splinterlands-overview-wallet-grid .splinterlands-balance-card strong {
  font-size: clamp(1.15rem, 1.45vw, 1.55rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

body.splinterlands-focus-mode .splinterlands-overview-wallet-grid .splinterlands-balance-card strong {
  font-size: clamp(1.12rem, 1.2vw, 1.55rem);
  max-width: none;
  overflow-wrap: normal;
  word-break: normal;
}

.splinterlands-overview-command .splinterlands-portfolio-card strong {
  color: #fff7ed;
  font-size: clamp(2.1rem, 3.5vw, 3.25rem);
  text-shadow: 0 0 28px rgba(251, 191, 36, 0.18);
}

body.splinterlands-focus-mode .splinterlands-overview-command .splinterlands-portfolio-card strong {
  font-size: clamp(1.7rem, 2.25vw, 2.35rem);
}

body.splinterlands-focus-mode #splinterlands-price-note {
  display: none;
}

.splinterlands-overview-wallet-grid .splinterlands-balance-card {
  cursor: pointer;
  min-height: 9rem;
  padding: 0.9rem;
}

.splinterlands-overview-wallet-grid .splinterlands-balance-card strong {
  max-width: calc(100% - 3.3rem);
}

body.splinterlands-focus-mode .splinterlands-overview-wallet-grid .splinterlands-balance-card strong {
  max-width: none;
}

.splinterlands-asset-card-sps {
  background:
    radial-gradient(circle at calc(100% - 2.6rem) 2.3rem, rgba(34, 211, 238, 0.24), transparent 32%),
    linear-gradient(145deg, rgba(46, 25, 105, 0.94), rgba(5, 11, 30, 0.9) 56%, rgba(8, 47, 73, 0.78)),
    linear-gradient(180deg, rgba(40, 22, 89, 0.88), rgba(2, 6, 23, 0.78));
  border-color: rgba(192, 132, 252, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 18px 36px rgba(2, 6, 23, 0.26), 0 0 28px rgba(124, 58, 237, 0.12);
}

.splinterlands-asset-card-sps::before {
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 34%);
  border-radius: 6px;
  content: "";
  inset: 0.65rem;
  opacity: 0.5;
  pointer-events: none;
  position: absolute;
}

.splinterlands-asset-card-sps span {
  color: #e0f2fe;
}

.splinterlands-overview-wallet-grid .splinterlands-asset-card-sps strong {
  display: inline-block;
  font-size: clamp(1.35rem, 1.72vw, 1.9rem);
  max-width: calc(100% - 4.8rem);
  text-shadow: 0 0 18px rgba(167, 139, 250, 0.35);
  width: fit-content;
}

.splinterlands-overview-wallet-grid .splinterlands-asset-card-sps small {
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 6px;
  color: rgba(240, 249, 255, 0.78);
  display: inline-flex;
  margin-top: 0.52rem;
  max-width: calc(100% - 4.8rem);
  padding: 0.22rem 0.38rem;
  overflow-wrap: anywhere;
  width: max-content;
}

.splinterlands-visual-art-sps-token {
  filter: drop-shadow(0 0 18px rgba(167, 139, 250, 0.5)) drop-shadow(0 14px 16px rgba(0, 0, 0, 0.5));
  height: 5.25rem;
  opacity: 1;
  right: 0.25rem;
  top: 0.22rem;
  width: 5.25rem;
}

.splinterlands-asset-card-staked {
  background:
    linear-gradient(180deg, rgba(30, 41, 92, 0.88), rgba(2, 6, 23, 0.78)),
    radial-gradient(circle at 86% 25%, rgba(99, 102, 241, 0.34), transparent 42%);
  padding-right: 6.85rem;
}

.splinterlands-overview-wallet-grid .splinterlands-asset-card-staked strong,
.splinterlands-overview-wallet-grid .splinterlands-asset-card-staked small {
  max-width: calc(100% - 5.9rem);
}

.splinterlands-visual-art-staked-sps {
  filter: drop-shadow(0 0 16px rgba(167, 139, 250, 0.54)) drop-shadow(0 12px 14px rgba(0, 0, 0, 0.46));
  height: 4.65rem;
  object-fit: contain;
  opacity: 1;
  right: 0.85rem;
  top: 0.55rem;
  width: 4.65rem;
}

.splinterlands-asset-card-dec {
  background:
    linear-gradient(180deg, rgba(82, 52, 12, 0.9), rgba(2, 6, 23, 0.78)),
    radial-gradient(circle at 88% 28%, rgba(245, 158, 11, 0.38), transparent 42%);
}

.splinterlands-asset-card-voucher {
  background:
    linear-gradient(180deg, rgba(71, 30, 12, 0.9), rgba(2, 6, 23, 0.78)),
    radial-gradient(circle at 88% 28%, rgba(251, 191, 36, 0.34), transparent 42%);
}

.splinterlands-overview-wallet-grid .splinterlands-balance-card:nth-child(1) { border-color: rgba(168, 85, 247, 0.38); }
.splinterlands-overview-wallet-grid .splinterlands-balance-card:nth-child(2) { border-color: rgba(129, 140, 248, 0.38); }
.splinterlands-overview-wallet-grid .splinterlands-balance-card:nth-child(3) { border-color: rgba(251, 191, 36, 0.4); }
.splinterlands-overview-wallet-grid .splinterlands-balance-card:nth-child(4) { border-color: rgba(245, 158, 11, 0.4); }

.splinterlands-overview-wallet-grid .splinterlands-balance-card span,
.splinterlands-command-kpi-card span {
  color: rgba(226, 232, 240, 0.78);
}

.splinterlands-overview-market-card {
  padding: 0.95rem;
}

body.splinterlands-focus-mode .splinterlands-overview-market-card {
  min-height: 13rem;
  padding: 0.85rem;
}

body.splinterlands-focus-mode .splinterlands-overview-mini-chart {
  min-height: 7.2rem;
}

body.splinterlands-focus-mode .splinterlands-token-chart-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0.65rem 0 0.35rem;
}

body.splinterlands-focus-mode .splinterlands-token-chart-window {
  min-height: 5.7rem;
  padding: 0.45rem;
}

body.splinterlands-focus-mode .splinterlands-overview-token-mini-chart {
  min-height: 3.55rem;
}

.splinterlands-overview-mini-chart,
.splinterlands-overview-token-mini-chart {
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.34), rgba(15, 23, 42, 0.18)),
    repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.12) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, rgba(148, 163, 184, 0.08) 0 1px, transparent 1px 34px);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  margin-top: 0.85rem;
}

.splinterlands-overview-decision-panel {
  padding: 0.85rem;
}

.splinterlands-overview-decision-list {
  gap: 0.55rem;
}

.splinterlands-overview-decision-card {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(2, 6, 23, 0.72));
  border-radius: 8px;
  grid-template-columns: 2.4rem 3.05rem minmax(0, 1fr) auto;
  min-height: 4.35rem;
}

.splinterlands-overview-decision-card > span {
  background: rgba(2, 6, 23, 0.5);
  height: 2.15rem;
  width: 2.15rem;
}

.splinterlands-overview-decision-card img {
  height: 2.7rem;
  object-fit: contain;
  width: 2.7rem;
}

.splinterlands-overview-decision-card em {
  align-self: center;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 950;
  padding: 0.25rem 0.42rem;
}

.splinterlands-overview-decision-review em,
.splinterlands-overview-decision-watch em { color: #22c55e; }
.splinterlands-overview-decision-ready em { color: #fbbf24; }
.splinterlands-overview-decision-safe em { color: #38bdf8; }

.splinterlands-overview-coverage-strip {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.splinterlands-overview-coverage-card {
  overflow: hidden;
  padding: 0.85rem;
  position: relative;
}

.splinterlands-overview-coverage-card img {
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.42));
  float: left;
  height: 3.1rem;
  margin: 0 0.75rem 0.5rem 0;
  object-fit: contain;
  width: 3.1rem;
}

.splinterlands-overview-coverage-card:nth-child(1) { border-color: rgba(34, 197, 94, 0.32); }
.splinterlands-overview-coverage-card:nth-child(2) { border-color: rgba(251, 191, 36, 0.34); }
.splinterlands-overview-coverage-card:nth-child(3) { border-color: rgba(245, 158, 11, 0.34); }
.splinterlands-overview-coverage-card:nth-child(4) { border-color: rgba(56, 189, 248, 0.34); }
.splinterlands-overview-coverage-card:nth-child(5) { border-color: rgba(96, 165, 250, 0.34); }
.splinterlands-overview-coverage-card:nth-child(6) { border-color: rgba(168, 85, 247, 0.34); }

.splinterlands-overview-coverage-card::after {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.95), rgba(56, 189, 248, 0.7));
  border-radius: 999px;
  bottom: 0.65rem;
  content: "";
  display: block;
  height: 0.24rem;
  left: 0.85rem;
  position: absolute;
  right: 0.85rem;
}

.splinterlands-command-footer-ticker {
  align-items: center;
  background: rgba(2, 6, 23, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  color: rgba(226, 232, 240, 0.8);
  display: grid;
  gap: 0.75rem;
  grid-column: 1 / -1;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  min-height: 3rem;
  padding: 0.5rem 0.75rem;
}

body.splinterlands-focus-mode .splinterlands-command-footer-ticker {
  border-radius: 8px 0 0 0;
  grid-area: footer;
  margin: 0 0 0 0.85rem;
}

.splinterlands-command-footer-ticker span {
  font-size: 0.8rem;
  font-weight: 800;
}

.splinterlands-command-footer-ticker span + span {
  border-left: 1px solid rgba(148, 163, 184, 0.22);
  padding-left: 0.75rem;
}

@media (max-width: 1180px) {
  .splinterlands-command-workbench {
    grid-template-columns: 1fr;
  }

  .splinterlands-command-rail .splinterlands-subtabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.splinterlands-focus-mode .splinterlands-command-rail .splinterlands-subtabs {
    grid-template-columns: 1fr;
  }

  .splinterlands-command-rail-footer {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .splinterlands-command-rail-footer strong {
    margin-top: 0;
  }

  .splinterlands-overview-command-grid {
    grid-template-areas:
      "portfolio portfolio"
      "wallet wallet"
      "markets decisions"
      "coverage coverage";
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.8fr);
  }
}

@media (max-width: 820px) {
  body.splinterlands-focus-mode .splinterlands-command-center-shell {
    display: block;
    overflow: visible;
  }

  body.splinterlands-focus-mode .splinterlands-command-center-shell > .splinterlands-command-header {
    gap: 0.75rem;
    grid-template-columns: 1fr;
    padding: 0.85rem;
  }

  body.splinterlands-focus-mode .splinterlands-command-header .section-title {
    font-size: 1.65rem;
    white-space: normal;
  }

  body.splinterlands-focus-mode .splinterlands-command-header-actions {
    justify-items: stretch;
    width: 100%;
  }

  body.splinterlands-focus-mode .splinterlands-command-top-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  body.splinterlands-focus-mode .splinterlands-command-rail {
    border-width: 0 0 1px;
    max-height: none;
    overflow: visible;
  }

  body.splinterlands-focus-mode .splinterlands-command-content {
    overflow: visible;
    padding: 0.75rem;
  }

  body.splinterlands-focus-mode .splinterlands-overview-command-grid {
    grid-template-areas:
      "portfolio"
      "wallet"
      "markets"
      "decisions"
      "coverage";
    grid-template-columns: 1fr;
  }

  body.splinterlands-focus-mode .splinterlands-visual-art {
    height: 3.8rem;
    width: 3.8rem;
  }

  .splinterlands-command-center-shell > .splinterlands-command-header,
  .splinterlands-command-status-strip,
  .splinterlands-overview-toolbar,
  .splinterlands-overview-command-grid,
  .splinterlands-overview-chart-panel.splinterlands-overview-market-grid,
  .splinterlands-command-footer-ticker {
    grid-template-columns: 1fr;
  }

  .splinterlands-overview-command-grid {
    grid-template-areas:
      "portfolio"
      "wallet"
      "markets"
      "decisions"
      "coverage";
  }

  .splinterlands-overview-wallet-grid,
  .splinterlands-overview-coverage-strip,
  .splinterlands-command-rail .splinterlands-subtabs,
  body.splinterlands-focus-mode .splinterlands-overview-wallet-grid,
  body.splinterlands-focus-mode .splinterlands-overview-coverage-strip,
  body.splinterlands-focus-mode .splinterlands-overview-chart-panel.splinterlands-overview-market-grid,
  body.splinterlands-focus-mode .splinterlands-token-chart-grid {
    grid-template-columns: 1fr;
  }

  .splinterlands-swap-pool-tabs {
    margin-left: -0.2rem;
    margin-right: -0.2rem;
  }

  .splinterlands-swap-pool-tab {
    min-width: 10rem;
  }

  .splinterlands-swap-pool-panel {
    padding: 0.85rem;
  }

  .splinterlands-swap-pool-panel-header {
    display: grid;
    grid-template-columns: 1fr;
  }

  .splinterlands-arb-watch-grid {
    grid-template-columns: 1fr;
  }

  .splinterlands-arb-watch-routes {
    grid-row: auto;
  }

  body.splinterlands-focus-mode .splinterlands-overview-decision-card {
    grid-template-columns: 2.25rem 2.6rem minmax(0, 1fr);
  }

  body.splinterlands-focus-mode .splinterlands-overview-decision-card em {
    grid-column: 2 / 4;
    justify-self: start;
    margin-top: 0.3rem;
  }

  .splinterlands-command-footer-ticker span + span {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 700px) {
  .splinterlands-overview-market-grid {
    grid-template-columns: 1fr;
  }

  .splinterlands-market-card-header {
    display: block;
  }

  .splinterlands-market-movement,
  .splinterlands-market-legend {
    border-left: 0;
    flex-direction: row;
    margin-top: 0.75rem;
    padding-left: 0;
    text-align: left;
  }

  .splinterlands-history-summary {
    grid-template-columns: 1fr;
  }

  .splinterlands-ops-grid,
  .splinterlands-analytics-grid,
  .splinterlands-card-set-grid,
  .splinterlands-reconciliation-grid {
    grid-template-columns: 1fr;
  }

  .splinterlands-chart-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .splinterlands-ledger-header {
    display: block;
  }
  .splinterlands-ledger-pager {
    margin-top: 0.75rem;
  }
  .splinterlands-ledger-detail-header {
    display: block;
  }
  .splinterlands-ledger-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.splinterlands-asset-card {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.splinterlands-asset-card:hover,
.splinterlands-asset-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(251, 191, 36, 0.55);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.28);
  outline: none;
}
.splinterlands-asset-detail {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.28);
  padding: 1rem;
}
.splinterlands-analytics-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.splinterlands-card-set-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.splinterlands-card-set-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.28);
  padding: 1rem;
}
.splinterlands-card-set-card-header,
.splinterlands-card-set-foot {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}
.splinterlands-card-set-card-header strong {
  color: #f8fafc;
  display: block;
  font-size: 1.35rem;
  font-weight: 950;
  margin-top: 0.25rem;
}
.splinterlands-card-set-card-header small,
.splinterlands-card-set-card-header > span,
.splinterlands-card-set-foot,
.splinterlands-card-rarity-row {
  color: rgba(248, 250, 252, 0.76);
  font-size: 0.8rem;
  font-weight: 850;
}
.splinterlands-card-set-card-header > span {
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.12);
  color: #fde68a;
  flex: 0 0 auto;
  padding: 0.3rem 0.55rem;
  white-space: nowrap;
}
.splinterlands-card-rarity-row {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  margin: 0.85rem 0;
  padding: 0.65rem;
}
.splinterlands-card-set-foot {
  flex-wrap: wrap;
}
@media (max-width: 700px) {
  #splinterlands-card-collection-summary,
  .splinterlands-card-set-grid {
    grid-template-columns: 1fr;
  }
  .splinterlands-card-set-card-header {
    flex-direction: column;
  }
  .splinterlands-card-set-card-header > span {
    white-space: normal;
  }
}
.splinterlands-resource-flow-panel {
  grid-column: 1 / -1;
}

.splinterlands-auto-sell-policy-panel {
  border: 1px solid rgba(125, 211, 252, 0.16);
  border-radius: 8px;
  background: rgba(9, 17, 31, 0.28);
  padding: 0.8rem;
}

.splinterlands-auto-sell-policy-heading {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(13, 22, 40, 0.68);
  margin-bottom: 0.75rem;
  padding: 0.75rem;
}

.splinterlands-auto-sell-policy-title {
  align-items: center;
  display: flex;
  gap: 0.65rem;
  min-width: 0;
}

.splinterlands-auto-sell-policy-title img {
  border: 1px solid rgba(250, 204, 21, 0.42);
  border-radius: 8px;
  display: block;
  flex: 0 0 2.4rem;
  height: 2.4rem;
  object-fit: cover;
  width: 2.4rem;
}

.splinterlands-metric-card,
.splinterlands-reconciliation-preview,
.splinterlands-unexplained-panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.85rem;
}
.splinterlands-metric-card span,
.splinterlands-reconciliation-preview span,
.splinterlands-reconciliation-preview small,
.splinterlands-unexplained-panel span,
.splinterlands-unexplained-panel small {
  color: rgba(248, 250, 252, 0.76);
  font-size: 0.78rem;
  font-weight: 800;
}
.splinterlands-metric-card strong,
.splinterlands-reconciliation-preview strong,
.splinterlands-unexplained-panel strong {
  color: #f8fafc;
  display: block;
  font-size: 1.25rem;
  font-weight: 900;
  margin-top: 0.2rem;
}
.splinterlands-reconciliation-title {
  color: #fde68a;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.splinterlands-reconciliation-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0.75rem 0;
}
.splinterlands-unexplained-header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}
.splinterlands-unexplained-header strong {
  font-size: 1rem;
  margin-top: 0;
}
.splinterlands-unexplained-summary {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0.75rem;
}
.splinterlands-unexplained-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.22);
  padding: 0.75rem;
}
.splinterlands-unexplained-card strong {
  font-size: 1rem;
}
.splinterlands-unexplained-list {
  display: grid;
  gap: 0.75rem;
}
.splinterlands-unexplained-row {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.22);
  padding: 0.75rem;
}
.splinterlands-unexplained-row header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}
.splinterlands-unexplained-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.55rem;
}
.splinterlands-unexplained-meta code {
  color: #fde68a;
  font-size: 0.82rem;
  word-break: break-all;
}
.splinterlands-unexplained-empty {
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 0.85rem;
  color: rgba(248, 250, 252, 0.82);
}
.splinterlands-table-wrap { overflow-x: auto; }

.splinterlands-investment-allocation-card-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.splinterlands-investment-allocation-summary-band {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 0.9rem;
}

.splinterlands-investment-allocation-summary-band > div {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(34, 211, 238, 0.08)),
    rgba(15, 23, 42, 0.2);
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.22rem;
}

.splinterlands-investment-allocation-summary-band span {
  color: #94a3b8;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.splinterlands-investment-allocation-summary-band strong {
  color: #f8fafc;
  font-size: 0.95rem;
  line-height: 1.35;
}

.splinterlands-investment-allocation-resource-mix {
  display: grid;
  gap: 0.8rem;
}

.splinterlands-investment-allocation-resource-row {
  display: grid;
  align-items: center;
  gap: 0.85rem;
  grid-template-columns: minmax(7rem, 0.55fr) minmax(0, 1fr) auto;
}

.splinterlands-investment-allocation-resource-copy {
  display: grid;
  gap: 0.1rem;
}

.splinterlands-investment-allocation-resource-copy strong {
  font-size: 0.96rem;
  font-weight: 800;
}

.splinterlands-investment-allocation-resource-copy span,
.splinterlands-investment-allocation-resource-row small,
.splinterlands-investment-allocation-footnote {
  color: #94a3b8;
  font-size: 0.82rem;
}

.splinterlands-investment-allocation-resource-bar {
  height: 0.72rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.26);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.14);
}

.splinterlands-investment-allocation-resource-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.95), rgba(34, 211, 238, 0.95));
}

.splinterlands-investment-allocation-footnote {
  font-weight: 700;
}

.splinterlands-investment-allocation-empty {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  padding: 1.2rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  background:
    radial-gradient(circle at top, rgba(251, 191, 36, 0.08), transparent 42%),
    rgba(15, 23, 42, 0.28);
  text-align: center;
}

.splinterlands-investment-allocation-empty strong {
  color: #f8fafc;
}

.splinterlands-investment-allocation-empty span {
  color: #cbd5e1;
}

.splinterlands-investment-allocation-coverage-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.4rem;
}

.splinterlands-investment-allocation-coverage-chips small {
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.42);
  color: #f8fafc;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.28rem 0.6rem;
}

.splinterlands-investment-allocation-table-empty {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.9rem;
}

.splinterlands-investment-allocation-table-empty strong {
  color: #f8fafc;
}

.splinterlands-investment-allocation-table-empty span {
  color: #94a3b8;
}
.splinterlands-ledger-panel {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.24);
  padding: 1rem;
}
.splinterlands-ledger-header {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.splinterlands-ledger-header strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 900;
}
.splinterlands-ledger-header small {
  color: rgba(248, 250, 252, 0.78);
  display: block;
  font-weight: 800;
  margin-top: 0.2rem;
}
.splinterlands-ledger-pager,
.splinterlands-ledger-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.splinterlands-ledger-controls label {
  color: rgba(248, 250, 252, 0.78);
  display: grid;
  font-size: 0.78rem;
  font-weight: 850;
  gap: 0.25rem;
  min-width: 10rem;
  text-transform: uppercase;
}
.splinterlands-ledger-controls select {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.72);
  color: #f8fafc;
  font-weight: 800;
  padding: 0.58rem 0.75rem;
}
.splinterlands-ledger-table code {
  color: #fde68a;
  font-size: 0.78rem;
  word-break: break-all;
}
.splinterlands-detail-button {
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.14);
  color: #fde68a;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0.45rem 0.65rem;
}
.splinterlands-detail-button:hover,
.splinterlands-detail-button:focus-visible {
  background: rgba(251, 191, 36, 0.22);
  outline: 2px solid rgba(251, 191, 36, 0.45);
  outline-offset: 2px;
}
.splinterlands-detail-button.active {
  background: #fbbf24;
  border-color: #fbbf24;
  color: #111827;
}
.splinterlands-detail-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}
.splinterlands-ledger-quick-views {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.splinterlands-current-view {
  color: rgba(248, 250, 252, 0.82);
  font-size: 0.86rem;
  font-weight: 800;
}
.splinterlands-ledger-detail {
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.42);
  padding: 1rem;
}
.splinterlands-ledger-detail-header {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}
.splinterlands-ledger-detail-header strong {
  color: #f8fafc;
  display: block;
  font-size: 1.08rem;
  font-weight: 950;
}
.splinterlands-ledger-detail-header small {
  color: rgba(248, 250, 252, 0.76);
  display: block;
  font-weight: 800;
}
.splinterlands-ledger-detail-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.splinterlands-ledger-detail-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.72rem;
}
.splinterlands-ledger-detail-item span,
.splinterlands-ledger-evidence span {
  color: rgba(248, 250, 252, 0.68);
  display: block;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}
.splinterlands-ledger-detail-item strong {
  color: #f8fafc;
  display: block;
  font-size: 0.9rem;
  font-weight: 850;
  margin-top: 0.2rem;
  overflow-wrap: anywhere;
}
.splinterlands-ledger-detail-item code {
  color: #fde68a;
  font-size: 0.78rem;
  white-space: normal;
}
.splinterlands-ledger-review {
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.08);
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
}
.splinterlands-ledger-review strong,
.splinterlands-ledger-review label span {
  color: #f8fafc;
  display: block;
  font-weight: 900;
}
.splinterlands-ledger-review label span {
  color: rgba(248, 250, 252, 0.7);
  font-size: 0.74rem;
  text-transform: uppercase;
}
.splinterlands-ledger-review textarea {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.52);
  color: #f8fafc;
  font: inherit;
  font-size: 0.88rem;
  margin-top: 0.35rem;
  min-height: 5.25rem;
  padding: 0.65rem;
  resize: vertical;
  width: 100%;
}
.splinterlands-ledger-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.splinterlands-training-grid,
.splinterlands-rules-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.splinterlands-training-card,
.splinterlands-rule-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.9rem;
}
.splinterlands-rule-card {
  display: grid;
  gap: 0.7rem;
}
.splinterlands-rule-card-disabled {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.28);
}
.splinterlands-rule-card p,
.splinterlands-rule-card small {
  color: rgba(248, 250, 252, 0.74);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.45;
  margin: 0;
}
.splinterlands-rule-impact {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.splinterlands-rule-impact span,
.splinterlands-classifier-activity-list li {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.28);
  color: rgba(248, 250, 252, 0.78);
  font-size: 0.76rem;
  font-weight: 800;
  overflow-wrap: anywhere;
  padding: 0.45rem 0.55rem;
}
.splinterlands-rule-impact strong {
  color: #f8fafc;
  font-size: 0.95rem;
}
.splinterlands-classifier-activity {
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.08);
  display: grid;
  gap: 0.8rem;
  padding: 0.9rem;
}
.splinterlands-classifier-activity-list {
  display: grid;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.splinterlands-classifier-activity-list strong,
.splinterlands-classifier-activity-list span,
.splinterlands-classifier-activity-list small {
  display: block;
}
.splinterlands-classifier-activity-list strong {
  color: #f8fafc;
  font-size: 0.86rem;
}
.splinterlands-classifier-activity-list p {
  color: rgba(248, 250, 252, 0.74);
  font-size: 0.78rem;
  font-weight: 800;
  margin: 0.25rem 0 0;
}
.splinterlands-training-card-header {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}
.splinterlands-training-card-header strong {
  color: #f8fafc;
  display: block;
  font-size: 1rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}
.splinterlands-training-meta,
.splinterlands-training-window {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.75rem;
}
.splinterlands-training-meta span,
.splinterlands-training-window span {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.28);
  color: rgba(248, 250, 252, 0.78);
  font-size: 0.76rem;
  font-weight: 800;
  overflow-wrap: anywhere;
  padding: 0.45rem 0.55rem;
}
.splinterlands-training-examples {
  display: grid;
  gap: 0.35rem;
  list-style: none;
  margin: 0.75rem 0;
  padding: 0;
}
.splinterlands-training-examples li {
  align-items: center;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto;
}
.splinterlands-training-examples span,
.splinterlands-training-examples strong,
.splinterlands-training-examples code {
  color: rgba(248, 250, 252, 0.78);
  font-size: 0.76rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}
.splinterlands-training-examples code {
  color: #fde68a;
}
.splinterlands-rule-suggestion {
  border: 1px solid rgba(251, 191, 36, 0.38);
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.08);
  display: grid;
  gap: 0.45rem;
  margin: 0.75rem 0;
  padding: 0.7rem;
}
.splinterlands-rule-suggestion > div {
  align-items: center;
  display: flex;
  gap: 0.6rem;
  justify-content: space-between;
}
.splinterlands-rule-suggestion strong {
  color: #f8fafc;
  display: block;
  font-size: 1rem;
  font-weight: 950;
  text-transform: capitalize;
}
.splinterlands-rule-suggestion p,
.splinterlands-rule-suggestion small {
  color: rgba(248, 250, 252, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.45;
  margin: 0;
}
.splinterlands-rule-suggestion-muted {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.24);
}
.splinterlands-approve-rule-button,
.splinterlands-disable-rule-button {
  justify-self: start;
  margin-top: 0.15rem;
}
.splinterlands-ledger-evidence pre {
  max-height: 24rem;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.72);
  color: #dbeafe;
  font-size: 0.78rem;
  margin: 0.45rem 0 0;
  padding: 0.85rem;
  white-space: pre-wrap;
  word-break: break-word;
}
.splinterlands-history-table {
  width: 100%;
  border-collapse: collapse;
  color: #f8fafc;
  font-size: 0.9rem;
}
.splinterlands-history-table th,
.splinterlands-history-table td {
  padding: 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  vertical-align: top;
}
.splinterlands-history-table th {
  color: #fde68a;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.splinterlands-history-row-unknown {
  background: rgba(148, 163, 184, 0.08);
}
.splinterlands-classification-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.24);
  color: #bae6fd;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}
.splinterlands-classification-unknown {
  background: rgba(148, 163, 184, 0.14);
  border-color: rgba(148, 163, 184, 0.25);
  color: #cbd5e1;
}
.splinterlands-status-classified {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.25);
  color: #bbf7d0;
}
.splinterlands-status-partial,
.splinterlands-status-needs_review {
  background: rgba(251, 191, 36, 0.16);
  border-color: rgba(251, 191, 36, 0.3);
  color: #fde68a;
}
.splinterlands-status-reviewed {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.32);
  color: #bbf7d0;
}
.splinterlands-status-ready,
.splinterlands-status-safe {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.3);
  color: #bbf7d0;
}
.splinterlands-status-watch,
.splinterlands-status-wait {
  background: rgba(251, 191, 36, 0.16);
  border-color: rgba(251, 191, 36, 0.32);
  color: #fde68a;
}
.splinterlands-status-blocked {
  background: rgba(244, 63, 94, 0.16);
  border-color: rgba(244, 63, 94, 0.32);
  color: #fecdd3;
}

.splinterlands-v2-shell {
  border: 1px solid rgba(99, 233, 255, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 18%, rgba(99, 233, 255, 0.14), transparent 30%),
    radial-gradient(circle at 82% 14%, rgba(101, 255, 174, 0.1), transparent 25%),
    linear-gradient(135deg, #05070b 0%, #071018 48%, #030509 100%);
  color: #eafcff;
  padding: 1.25rem;
}

.splinterlands-v2-shell-inner {
  display: grid;
  gap: 1rem;
}

.splinterlands-v2-panel,
.splinterlands-v2-lane {
  border: 1px solid rgba(99, 233, 255, 0.22);
  border-radius: 8px;
  background: rgba(8, 15, 26, 0.86);
  box-shadow: 0 0 40px rgba(99, 233, 255, 0.07), inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.splinterlands-v2-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 1rem;
}

.splinterlands-v2-primary-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  align-items: center;
  gap: 1rem;
  min-height: 230px;
  padding: 1rem;
  background:
    linear-gradient(rgba(99, 233, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 233, 255, 0.045) 1px, transparent 1px),
    rgba(8, 15, 26, 0.86);
  background-size: 38px 38px;
}

.splinterlands-v2-primary-command h3,
.splinterlands-v2-unavailable h3 {
  color: #eafcff;
  margin: 0.25rem 0 0;
}

.splinterlands-v2-command-copy p,
.splinterlands-v2-manual-controls p,
.splinterlands-v2-unavailable p {
  color: #bdd4dc;
  margin-bottom: 0.75rem;
}

.splinterlands-v2-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.splinterlands-v2-chip {
  border: 1px solid rgba(99, 233, 255, 0.22);
  border-radius: 999px;
  padding: 0.4rem 0.65rem;
  color: #eafcff;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.78rem;
}

.splinterlands-v2-chip-running,
.splinterlands-v2-status-armed .splinterlands-v2-action-score,
.splinterlands-v2-lane-armed h4 {
  color: #65ffae;
  border-color: rgba(101, 255, 174, 0.55);
}

.splinterlands-v2-degraded {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
  color: #fde68a;
  font-size: 0.78rem;
}

.splinterlands-v2-degraded span {
  border: 1px solid rgba(253, 230, 138, 0.28);
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
  background: rgba(253, 230, 138, 0.08);
}

.splinterlands-v2-command-actions,
.splinterlands-v2-support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.splinterlands-v2-confidence-ring {
  --splinterlands-v2-confidence: 0;
  display: grid;
  place-items: center;
  justify-self: center;
  width: 128px;
  height: 128px;
  border: 8px solid rgba(99, 233, 255, 0.18);
  border-top-color: #65ffae;
  border-right-color: #63e9ff;
  border-radius: 50%;
  text-align: center;
}

.splinterlands-v2-confidence-ring strong {
  display: block;
  color: #65ffae;
  font-size: 1.7rem;
  line-height: 1;
}

.splinterlands-v2-confidence-ring span {
  color: #92a9b3;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.splinterlands-v2-action-stack,
.splinterlands-v2-map,
.splinterlands-v2-manual-controls,
.splinterlands-v2-source-health,
.splinterlands-v2-timeline,
.splinterlands-v2-unavailable {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
}

.splinterlands-v2-decision-board {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-color: rgba(101, 255, 174, 0.34);
  background:
    linear-gradient(rgba(101, 255, 174, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 233, 255, 0.035) 1px, transparent 1px),
    rgba(8, 15, 26, 0.9);
  background-size: 42px 42px;
}

.splinterlands-v2-decision-board h3 {
  color: #eafcff;
  margin: 0.25rem 0 0.35rem;
}

.splinterlands-v2-decision-board p {
  color: #bdd4dc;
  margin: 0;
}

.splinterlands-v2-decision-impact {
  min-width: 190px;
  display: grid;
  gap: 0.5rem;
  justify-items: end;
  text-align: right;
}

.splinterlands-v2-decision-impact span,
.splinterlands-v2-decision-row span,
.splinterlands-v2-decision-row small,
.splinterlands-v2-decision-summary small {
  color: #92a9b3;
}

.splinterlands-v2-decision-impact strong {
  color: #65ffae;
  font-size: 1.8rem;
  line-height: 1;
}

.splinterlands-v2-decision-summary,
.splinterlands-v2-decision-grid {
  display: grid;
  gap: 0.75rem;
}

.splinterlands-v2-decision-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.splinterlands-v2-decision-summary article,
.splinterlands-v2-decision-grid > article,
.splinterlands-v2-decision-row {
  border: 1px solid rgba(99, 233, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.splinterlands-v2-decision-summary article {
  min-height: 96px;
  padding: 0.85rem;
}

.splinterlands-v2-decision-summary strong {
  display: block;
  color: #eafcff;
  font-size: 1.45rem;
  margin: 0.35rem 0 0.15rem;
}

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

.splinterlands-v2-decision-grid > article {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  padding: 0.85rem;
}

.splinterlands-v2-decision-row {
  display: grid;
  gap: 0.25rem;
  min-height: 112px;
  padding: 0.75rem;
}

.splinterlands-v2-decision-row strong {
  color: #eafcff;
}

.splinterlands-v2-decision-evidence {
  border-top: 1px solid rgba(99, 233, 255, 0.14);
  margin-top: 0.35rem;
  padding-top: 0.35rem;
}

.splinterlands-v2-decision-evidence summary {
  color: #65ffae;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
}

.splinterlands-v2-decision-evidence-body {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.5rem;
  text-align: left;
}

.splinterlands-v2-decision-evidence-body > div {
  display: grid;
  gap: 0.2rem;
}

.splinterlands-v2-decision-evidence-body strong {
  color: #facc15;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.splinterlands-v2-decision-evidence-body span,
.splinterlands-v2-decision-evidence-body small,
.splinterlands-v2-decision-evidence-body li {
  color: #a9bdc6;
  font-size: 0.78rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.splinterlands-v2-decision-evidence-body ul {
  display: grid;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.splinterlands-v2-decision-evidence-body li {
  border-left: 2px solid rgba(101, 255, 174, 0.25);
  display: grid;
  gap: 0.1rem;
  padding-left: 0.45rem;
}

.splinterlands-v2-decision-evidence-body b {
  color: #eafcff;
  font-size: 0.8rem;
  font-weight: 800;
}

.splinterlands-v2-production-run strong,
.splinterlands-v2-status-armed strong {
  color: #65ffae;
}

.splinterlands-v2-production-pause strong {
  color: #ff9db1;
}

.splinterlands-v2-production-need-data strong,
.splinterlands-v2-status-blocked strong {
  color: #fde68a;
}

.splinterlands-v2-source-health h4 {
  margin: 0;
  color: #f8fdff;
  font-size: 1rem;
}

.splinterlands-v2-source-health small {
  color: #c5d9df;
}

.splinterlands-v2-action-tile {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) minmax(86px, 112px);
  gap: 0.75rem;
  align-items: center;
  border: 1px solid rgba(99, 233, 255, 0.2);
  border-radius: 8px;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.035);
}

.splinterlands-v2-action-symbol,
.splinterlands-v2-action-score {
  min-width: 46px;
  min-height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(99, 233, 255, 0.25);
  border-radius: 8px;
  background: radial-gradient(circle, rgba(99, 233, 255, 0.18), rgba(255, 255, 255, 0.04));
  color: #63e9ff;
  font-weight: 900;
}

.splinterlands-v2-action-side {
  display: grid;
  gap: 0.45rem;
  justify-items: stretch;
}

.splinterlands-v2-mini-action,
.splinterlands-v2-support-actions button {
  border: 1px solid rgba(99, 233, 255, 0.22);
  border-radius: 8px;
  background: rgba(99, 233, 255, 0.08);
  color: #eafcff;
  padding: 0.45rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 900;
}

.splinterlands-v2-action-tile h4 {
  color: #eafcff;
  margin: 0 0 0.25rem;
}

.splinterlands-v2-action-tile p,
.splinterlands-v2-action-tile small,
.splinterlands-v2-empty {
  color: #92a9b3;
  margin: 0;
}

.splinterlands-v2-action-tile small {
  display: block;
  margin-top: 0.25rem;
}

.splinterlands-v2-lanes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}

.splinterlands-v2-lane {
  min-height: 120px;
  padding: 0.85rem;
}

.splinterlands-v2-lane h4 {
  color: #eafcff;
  margin: 0.4rem 0;
}

.splinterlands-v2-lane p {
  color: #92a9b3;
  margin: 0;
}

.splinterlands-v2-lower {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 1rem;
}

.splinterlands-v2-map-stage {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  border: 1px solid rgba(99, 233, 255, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, rgba(99, 233, 255, 0.1), transparent 38%),
    linear-gradient(rgba(99, 233, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 233, 255, 0.05) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
}

.splinterlands-v2-map-node {
  position: absolute;
  min-width: 120px;
  max-width: 180px;
  border: 1px solid rgba(101, 255, 174, 0.52);
  border-radius: 8px;
  padding: 0.65rem;
  background: rgba(5, 25, 28, 0.86);
  color: #eafcff;
}

.splinterlands-v2-map-node span {
  display: block;
  color: #92a9b3;
  font-size: 0.72rem;
}

.splinterlands-v2-map-node-region-51 {
  left: 8%;
  top: 24%;
}

.splinterlands-v2-map-node-region-54 {
  right: 10%;
  top: 18%;
}

.splinterlands-v2-map-node-production-advisor {
  left: 8%;
  bottom: 16%;
  border-color: rgba(251, 191, 36, 0.56);
}

.splinterlands-v2-map-node-deployment-advisor {
  left: 42%;
  top: 42%;
  border-color: rgba(101, 255, 174, 0.56);
}

.splinterlands-v2-map-node-sps-market {
  right: 12%;
  bottom: 20%;
  border-color: rgba(99, 233, 255, 0.55);
}

.splinterlands-v2-map-node-market {
  left: 38%;
  bottom: 18%;
  border-color: rgba(99, 233, 255, 0.55);
}

.splinterlands-v2-route {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, #63e9ff, transparent);
  opacity: 0.85;
}

.splinterlands-v2-route-1 {
  width: 260px;
  left: 20%;
  top: 38%;
  transform: rotate(10deg);
}

.splinterlands-v2-route-2 {
  width: 260px;
  left: 47%;
  top: 40%;
  transform: rotate(-12deg);
}

.splinterlands-v2-route-3 {
  width: 190px;
  left: 38%;
  top: 68%;
  transform: rotate(30deg);
  background: linear-gradient(90deg, transparent, #65ffae, transparent);
}

.splinterlands-v2-route-4 {
  width: 180px;
  left: 18%;
  top: 70%;
  transform: rotate(-24deg);
}

.splinterlands-v2-route-5 {
  width: 170px;
  right: 18%;
  top: 65%;
  transform: rotate(24deg);
}

.splinterlands-v2-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.splinterlands-v2-control {
  border: 1px solid rgba(99, 233, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: #eafcff;
  padding: 0.85rem;
  font-weight: 900;
}

.splinterlands-v2-control:disabled {
  color: #64748b;
  cursor: not-allowed;
  opacity: 0.62;
}

.splinterlands-v2-control-primary {
  color: #65ffae;
  border-color: rgba(101, 255, 174, 0.55);
}

.splinterlands-v2-control-danger {
  color: #ff697b;
  border-color: rgba(255, 105, 123, 0.55);
}

.splinterlands-v2-timeline-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.splinterlands-v2-timeline-steps article,
.splinterlands-v2-evidence-list div {
  border: 1px solid rgba(99, 233, 255, 0.16);
  border-radius: 8px;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.025);
}

.splinterlands-v2-timeline-steps span,
.splinterlands-v2-evidence-list span {
  display: block;
  color: #92a9b3;
  font-size: 0.78rem;
  margin-top: 0.3rem;
}

.splinterlands-v2-evidence {
  color: #eafcff;
}

.splinterlands-v2-evidence-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

@media (max-width: 980px) {
  .splinterlands-v2-hero,
  .splinterlands-v2-primary-command,
  .splinterlands-v2-lower {
    grid-template-columns: 1fr;
  }

  .splinterlands-v2-lanes,
  .splinterlands-v2-decision-summary,
  .splinterlands-v2-decision-grid,
  .splinterlands-v2-deployment-checks,
  .splinterlands-v2-timeline-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .splinterlands-v2-lanes,
  .splinterlands-v2-decision-summary,
  .splinterlands-v2-decision-grid,
  .splinterlands-v2-deployment-checks,
  .splinterlands-v2-timeline-steps,
  .splinterlands-v2-control-grid,
  .splinterlands-v2-action-tile {
    grid-template-columns: 1fr;
  }

  .splinterlands-v2-action-side {
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
  }

  .splinterlands-v2-map-stage {
    min-height: 520px;
  }

  .splinterlands-v2-map-node {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }

  .splinterlands-v2-map-node-region-51 {
    top: 3rem;
  }

  .splinterlands-v2-map-node-region-54 {
    top: 11rem;
  }

  .splinterlands-v2-map-node-deployment-advisor {
    top: 19rem;
  }

  .splinterlands-v2-map-node-sps-market,
  .splinterlands-v2-map-node-market {
    top: 27rem;
    bottom: auto;
  }

  .splinterlands-v2-route {
    display: none;
  }
}

@media (max-width: 700px) {
  .splinterlands-autopilot-hero {
    align-items: stretch;
    flex-direction: column;
  }
  .splinterlands-autopilot-controls {
    grid-template-columns: 1fr;
  }
  .splinterlands-autopilot-last-result {
    align-items: flex-start;
    flex-direction: column;
  }
  .splinterlands-ledger-header,
  .splinterlands-ledger-detail-header {
    display: block;
  }
  .splinterlands-ledger-pager {
    margin-top: 0.75rem;
  }
  .splinterlands-ledger-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .splinterlands-training-grid,
  .splinterlands-rules-grid,
  .splinterlands-rule-impact,
  .splinterlands-training-meta,
  .splinterlands-training-window {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .splinterlands-ledger-detail-grid {
    grid-template-columns: 1fr;
  }
  .splinterlands-training-examples li {
    grid-template-columns: 1fr;
  }
}

/* Splinterlands visual parity contract: late overrides for the approved
   command-center mockup style. */
.splinterlands-visual-parity-contract {
  --spl-contract: mockup-is-the-contract;
}

body.splinterlands-focus-mode {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.28) 16%, rgba(2, 6, 23, 0.28) 84%, rgba(2, 6, 23, 0.9)),
    url("assets/splinterlands-command/command-bg.svg") center / cover fixed no-repeat,
    #020617;
}

body.splinterlands-focus-mode .splinterlands-command-center-shell {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.9), rgba(2, 8, 18, 0.74) 18%, rgba(2, 8, 18, 0.72) 82%, rgba(2, 6, 23, 0.92)),
    url("assets/splinterlands-command/command-bg.svg") center / cover no-repeat;
  border: 0;
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.16);
  grid-template-columns: 16rem minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) 3rem;
  position: relative;
}

.splinterlands-command-backdrop-art {
  height: 100%;
  inset: 0;
  object-fit: cover;
  opacity: 0.24;
  pointer-events: none;
  position: absolute;
  width: 100%;
  z-index: 0;
}

body.splinterlands-focus-mode .splinterlands-command-center-shell > .splinterlands-command-header,
body.splinterlands-focus-mode .splinterlands-command-rail,
body.splinterlands-focus-mode .splinterlands-command-content,
body.splinterlands-focus-mode .splinterlands-command-footer-ticker {
  position: relative;
  z-index: 1;
}

body.splinterlands-focus-mode .splinterlands-command-center-shell > .splinterlands-command-header {
  backdrop-filter: blur(16px);
  background: rgba(2, 6, 23, 0.68);
  border-bottom: 1px solid rgba(251, 191, 36, 0.2);
  box-shadow: inset 0 -1px 0 rgba(148, 163, 184, 0.1);
  min-height: 4.55rem;
  padding: 0.7rem 1rem 0.65rem 1.25rem;
}

body.splinterlands-focus-mode .splinterlands-command-header .eyebrow {
  background: transparent;
  border: 0;
  color: #fbbf24;
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  margin: 0 0 0.18rem;
  padding: 0;
}

body.splinterlands-focus-mode .splinterlands-command-header .section-title {
  color: #fbbf24;
  font-size: 1.9rem;
  line-height: 1;
  text-shadow: 0 0 18px rgba(251, 191, 36, 0.3);
}

body.splinterlands-focus-mode .splinterlands-command-status-strip {
  display: grid;
  grid-template-columns: 8rem 8.5rem 9.5rem 9.5rem;
}

body.splinterlands-focus-mode .splinterlands-command-header-actions {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.65rem;
  justify-content: flex-end;
  justify-items: end;
  min-width: 0;
}

body.splinterlands-focus-mode .splinterlands-command-top-actions {
  align-items: stretch;
  display: flex;
  flex: 0 0 auto;
  gap: 0.5rem;
  justify-content: flex-end;
  white-space: nowrap;
}

body.splinterlands-focus-mode .splinterlands-command-chip {
  align-items: center;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.72));
  border-color: rgba(148, 163, 184, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: rgba(226, 232, 240, 0.9);
  display: inline-flex;
  gap: 0.35rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.splinterlands-focus-mode .splinterlands-command-top-actions .splinterlands-command-refresh {
  min-width: 7.25rem;
  width: auto;
}

body.splinterlands-focus-mode .splinterlands-portal-return {
  min-width: 6.4rem;
}

body.splinterlands-focus-mode .splinterlands-command-chip:nth-child(2),
body.splinterlands-focus-mode .splinterlands-command-chip:nth-child(3) {
  border-color: rgba(34, 197, 94, 0.36);
  color: #86efac;
}

@media (max-width: 1680px) {
  body.splinterlands-focus-mode .splinterlands-command-center-shell > .splinterlands-command-header {
    align-items: start;
    grid-template-columns: 1fr;
  }

  body.splinterlands-focus-mode .splinterlands-command-header-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
  }

  body.splinterlands-focus-mode .splinterlands-command-status-strip {
    flex: 1 1 34rem;
    grid-template-columns: repeat(4, minmax(7rem, 1fr));
    width: auto;
  }
}

@media (max-width: 820px) {
  body.splinterlands-focus-mode .splinterlands-command-top-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    white-space: normal;
  }
}

body.splinterlands-focus-mode .splinterlands-command-rail {
  backdrop-filter: blur(18px);
  background: rgba(2, 6, 23, 0.72);
  border-right: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: inset -1px 0 0 rgba(251, 191, 36, 0.06);
  padding: 1rem 0.75rem;
}

body.splinterlands-focus-mode .splinterlands-command-rail-brand {
  border-bottom-color: rgba(251, 191, 36, 0.22);
  padding-bottom: 1rem;
}

body.splinterlands-focus-mode .splinterlands-command-rail .splinterlands-subtabs {
  gap: 0.42rem;
}

body.splinterlands-focus-mode .splinterlands-command-rail .splinterlands-subtab {
  border-color: transparent;
  border-radius: 7px;
  color: rgba(226, 232, 240, 0.86);
  min-height: 3.02rem;
  padding: 0.55rem 0.62rem;
}

body.splinterlands-focus-mode .splinterlands-command-rail .splinterlands-subtab.active,
body.splinterlands-focus-mode .splinterlands-command-rail .splinterlands-subtab:hover,
body.splinterlands-focus-mode .splinterlands-command-rail .splinterlands-subtab:focus-visible {
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.78), rgba(146, 64, 14, 0.72));
  border-color: rgba(251, 191, 36, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 20px rgba(251, 191, 36, 0.14);
  color: #fff7ed;
}

body.splinterlands-focus-mode .splinterlands-nav-icon {
  height: 1.6rem;
  width: 1.6rem;
}

body.splinterlands-focus-mode .splinterlands-command-rail-footer {
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.34), rgba(15, 23, 42, 0.56));
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  margin-top: auto;
  padding: 0.9rem 0.8rem;
}

body.splinterlands-focus-mode .splinterlands-command-content {
  padding: 0.8rem;
}

body.splinterlands-focus-mode .splinterlands-command-content > .splinterlands-view {
  margin-top: 0 !important;
}

body.splinterlands-focus-mode .splinterlands-overview-command {
  background: transparent;
}

body.splinterlands-focus-mode .splinterlands-overview-command-board {
  display: grid;
  gap: 0.7rem;
  grid-template-areas:
    "portfolio kpis kpis decisions"
    "chart chart chart decisions"
    "coverage coverage coverage coverage";
  grid-template-columns: minmax(16rem, 0.92fr) repeat(2, minmax(0, 1fr)) minmax(22rem, 0.86fr);
  grid-template-rows: 12.3rem minmax(22.5rem, 1fr) 10rem;
  height: calc(100vh - 9.4rem);
  min-height: 44rem;
}

body.splinterlands-focus-mode .splinterlands-command-board-frame {
  margin-top: 0 !important;
}

body.splinterlands-focus-mode .splinterlands-overview-kpi-strip {
  display: grid;
  gap: 0.7rem;
  grid-area: kpis;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.splinterlands-focus-mode .splinterlands-overview-kpi-strip > * {
  min-height: 0;
}

body.splinterlands-focus-mode .splinterlands-command-kpi-card,
body.splinterlands-focus-mode .splinterlands-overview-wallet-grid .splinterlands-balance-card,
body.splinterlands-focus-mode .splinterlands-overview-market-card,
body.splinterlands-focus-mode .splinterlands-overview-decision-panel,
body.splinterlands-focus-mode .splinterlands-overview-coverage-card,
body.splinterlands-focus-mode .splinterlands-command-content .splinterlands-account-card,
body.splinterlands-focus-mode .splinterlands-command-content .splinterlands-v2-shell,
body.splinterlands-focus-mode .splinterlands-resource-flow-panel,
body.splinterlands-focus-mode .splinterlands-land-panel,
body.splinterlands-focus-mode .splinterlands-ledger-panel,
body.splinterlands-focus-mode .splinterlands-coverage-panel,
body.splinterlands-focus-mode .splinterlands-trend-panel,
body.splinterlands-focus-mode .splinterlands-card-set-card,
body.splinterlands-focus-mode .splinterlands-metric-card,
body.splinterlands-focus-mode .splinterlands-empty-state {
  backdrop-filter: blur(12px);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(2, 6, 23, 0.72)),
    linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(56, 189, 248, 0.03));
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 22px 46px rgba(0, 0, 0, 0.24);
  color: #f8fafc;
}

body.splinterlands-focus-mode .splinterlands-command-kpi-primary {
  background:
    linear-gradient(180deg, rgba(45, 32, 8, 0.88), rgba(2, 6, 23, 0.78)),
    linear-gradient(135deg, rgba(251, 191, 36, 0.18), rgba(251, 191, 36, 0.02));
  border-color: rgba(251, 191, 36, 0.52);
}

body.splinterlands-focus-mode .splinterlands-top-kpi-land {
  background:
    linear-gradient(180deg, rgba(9, 44, 34, 0.82), rgba(2, 6, 23, 0.78)),
    linear-gradient(135deg, rgba(34, 197, 94, 0.14), rgba(251, 191, 36, 0.04));
  border-color: rgba(34, 197, 94, 0.34);
}

body.splinterlands-focus-mode .splinterlands-top-kpi-sps,
body.splinterlands-focus-mode .splinterlands-asset-card-staked {
  background:
    linear-gradient(180deg, rgba(45, 28, 92, 0.86), rgba(2, 6, 23, 0.78)),
    linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(56, 189, 248, 0.04));
  border-color: rgba(168, 85, 247, 0.42);
}

body.splinterlands-focus-mode .splinterlands-top-kpi-sps {
  background:
    radial-gradient(circle at calc(100% - 2.7rem) 2.2rem, rgba(34, 211, 238, 0.23), transparent 34%),
    linear-gradient(145deg, rgba(47, 24, 111, 0.9), rgba(2, 6, 23, 0.78) 58%, rgba(8, 47, 73, 0.72));
  border-color: rgba(192, 132, 252, 0.52);
}

body.splinterlands-focus-mode .splinterlands-top-kpi-dec,
body.splinterlands-focus-mode .splinterlands-asset-card-voucher {
  background:
    linear-gradient(180deg, rgba(76, 45, 8, 0.88), rgba(2, 6, 23, 0.78)),
    linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(251, 191, 36, 0.04));
  border-color: rgba(245, 158, 11, 0.48);
}

body.splinterlands-focus-mode .splinterlands-command-kpi-card,
body.splinterlands-focus-mode .splinterlands-overview-wallet-grid .splinterlands-balance-card {
  min-height: 0;
  padding: 1.05rem 1rem;
}

body.splinterlands-focus-mode .splinterlands-command-kpi-card span,
body.splinterlands-focus-mode .splinterlands-overview-wallet-grid .splinterlands-balance-card span,
body.splinterlands-focus-mode .splinterlands-overview-market-card span {
  color: rgba(226, 232, 240, 0.88);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

body.splinterlands-focus-mode .splinterlands-command-kpi-card strong,
body.splinterlands-focus-mode .splinterlands-overview-wallet-grid .splinterlands-balance-card strong {
  color: #f8fafc;
  display: block;
  font-size: clamp(1.55rem, 1.75vw, 2.05rem);
  line-height: 1.06;
  margin-top: 0.52rem;
  max-width: calc(100% - 4.6rem);
}

body.splinterlands-focus-mode .splinterlands-overview-command .splinterlands-portfolio-card strong {
  font-size: clamp(1.85rem, 2.1vw, 2.55rem);
}

body.splinterlands-focus-mode .splinterlands-visual-art {
  height: 5.6rem;
  opacity: 0.96;
  right: 0.75rem;
  top: 0.85rem;
  width: 5.6rem;
}

body.splinterlands-focus-mode .splinterlands-visual-art-sps-token {
  height: 5.7rem;
  right: 0.55rem;
  top: 0.45rem;
  width: 5.7rem;
}

body.splinterlands-focus-mode .splinterlands-asset-card-staked {
  padding-right: 7.35rem;
}

body.splinterlands-focus-mode .splinterlands-overview-wallet-grid .splinterlands-asset-card-staked strong,
body.splinterlands-focus-mode .splinterlands-overview-wallet-grid .splinterlands-asset-card-staked small {
  max-width: calc(100% - 6.4rem);
}

body.splinterlands-focus-mode .splinterlands-visual-art-staked-sps {
  height: 4.95rem;
  right: 0.95rem;
  top: 0.65rem;
  width: 4.95rem;
}

body.splinterlands-focus-mode .splinterlands-overview-chart-panel.splinterlands-overview-market-grid {
  display: grid;
  gap: 0.7rem;
  grid-area: chart;
  grid-template-columns: minmax(0, 1.24fr) minmax(22rem, 0.9fr);
  min-height: 0;
  padding: 0;
}

body.splinterlands-focus-mode .splinterlands-overview-market-card {
  display: grid;
  min-height: 0;
  padding: 1rem;
}

body.splinterlands-focus-mode .splinterlands-overview-market-card:first-child {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

body.splinterlands-focus-mode .splinterlands-overview-mini-chart {
  min-height: 13.5rem;
}

body.splinterlands-focus-mode .splinterlands-token-chart-grid,
body.splinterlands-focus-mode .splinterlands-overview-token-dock {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr;
  margin: 0.75rem 0 0.35rem;
}

body.splinterlands-focus-mode .splinterlands-token-chart-window {
  display: grid;
  grid-template-columns: 2.7rem minmax(0, 1fr) minmax(8rem, 0.82fr);
  min-height: 6.45rem;
  padding: 0.65rem;
}

body.splinterlands-focus-mode .splinterlands-token-chart-window img {
  align-self: center;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.42));
  height: 2.25rem;
  width: 2.25rem;
}

body.splinterlands-focus-mode .splinterlands-overview-token-mini-chart {
  margin: 0;
  min-height: 4.4rem;
}

body.splinterlands-focus-mode .splinterlands-overview-decision-panel {
  display: grid;
  grid-area: decisions;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  padding: 0.85rem;
}

body.splinterlands-focus-mode .splinterlands-command-section-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

body.splinterlands-focus-mode .splinterlands-command-section-header button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 7px;
  color: #f8fafc;
  cursor: pointer;
  font-weight: 900;
  padding: 0.45rem 0.72rem;
}

body.splinterlands-focus-mode .splinterlands-overview-decision-list {
  align-content: start;
  display: grid;
  gap: 0.5rem;
  overflow: hidden;
}

body.splinterlands-focus-mode .splinterlands-overview-decision-card {
  border: 1px solid rgba(148, 163, 184, 0.22);
  min-height: 4.8rem;
  padding: 0.62rem;
}

body.splinterlands-focus-mode .splinterlands-overview-coverage-strip {
  display: grid;
  gap: 0.65rem;
  grid-area: coverage;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  min-height: 0;
}

body.splinterlands-focus-mode .splinterlands-overview-coverage-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  padding: 0.9rem;
}

body.splinterlands-focus-mode .splinterlands-overview-coverage-card img {
  float: none;
  grid-row: 1 / 4;
  height: 3.35rem;
  margin: 0 0.75rem 0 0;
  width: 3.35rem;
}

body.splinterlands-focus-mode .splinterlands-command-content .splinterlands-account-card:not(.splinterlands-overview-command),
body.splinterlands-focus-mode .splinterlands-command-content .splinterlands-v2-shell {
  min-height: calc(100vh - 9.7rem);
  padding: 1rem;
}

body.splinterlands-focus-mode .splinterlands-ledger-header,
body.splinterlands-focus-mode .splinterlands-account-header {
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.58), rgba(15, 23, 42, 0.42));
  border: 1px solid rgba(251, 191, 36, 0.18);
  border-radius: 8px;
  padding: 0.85rem;
}

body.splinterlands-focus-mode .splinterlands-ledger-header h3,
body.splinterlands-focus-mode .splinterlands-account-header h3 {
  color: #f8fafc;
  font-size: 1.55rem;
}

body.splinterlands-focus-mode .splinterlands-resource-flow-panel {
  padding: 1rem;
}

body.splinterlands-focus-mode .splinterlands-resource-price-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.splinterlands-focus-mode .splinterlands-resource-price-card {
  min-height: 13rem;
  overflow: hidden;
  padding: 1rem;
  position: relative;
}

body.splinterlands-focus-mode .splinterlands-resource-price-card img {
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.44));
  height: 4.7rem;
  position: absolute;
  right: 0.9rem;
  top: 0.9rem;
  width: 4.7rem;
}

body.splinterlands-focus-mode .splinterlands-resource-price-card span,
body.splinterlands-focus-mode .splinterlands-resource-price-card strong,
body.splinterlands-focus-mode .splinterlands-resource-price-card small,
body.splinterlands-focus-mode .splinterlands-resource-price-card dl {
  position: relative;
  z-index: 1;
}

body.splinterlands-focus-mode .splinterlands-resource-price-grain {
  background: linear-gradient(180deg, rgba(83, 61, 7, 0.92), rgba(2, 6, 23, 0.76));
  border-color: rgba(234, 179, 8, 0.48);
  box-shadow: inset 0 0.28rem 0 #eab308;
}

body.splinterlands-focus-mode .splinterlands-resource-price-wood {
  background: linear-gradient(180deg, rgba(69, 26, 3, 0.92), rgba(2, 6, 23, 0.76));
  border-color: rgba(161, 98, 7, 0.56);
  box-shadow: inset 0 0.28rem 0 #a16207;
}

body.splinterlands-focus-mode .splinterlands-resource-price-stone {
  background: linear-gradient(180deg, rgba(51, 65, 85, 0.88), rgba(2, 6, 23, 0.76));
  border-color: rgba(148, 163, 184, 0.52);
  box-shadow: inset 0 0.28rem 0 #94a3b8;
}

body.splinterlands-focus-mode .splinterlands-resource-price-iron {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.94), rgba(2, 6, 23, 0.76));
  border-color: rgba(100, 116, 139, 0.62);
  box-shadow: inset 0 0.28rem 0 #64748b;
}

body.splinterlands-focus-mode .splinterlands-command-footer-ticker {
  backdrop-filter: blur(16px);
  background: rgba(2, 6, 23, 0.72);
  border-color: rgba(148, 163, 184, 0.2);
  border-radius: 0;
  min-height: 3rem;
}

@media (max-width: 1360px) {
  body.splinterlands-focus-mode .splinterlands-overview-command-board {
    grid-template-areas:
      "portfolio"
      "kpis"
      "chart"
      "decisions"
      "coverage";
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    height: auto;
    min-height: 0;
  }

  body.splinterlands-focus-mode .splinterlands-overview-kpi-strip,
  body.splinterlands-focus-mode .splinterlands-overview-coverage-strip,
  body.splinterlands-focus-mode .splinterlands-resource-price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  body.splinterlands-focus-mode .splinterlands-command-center-shell {
    display: block;
    overflow: visible;
  }

  body.splinterlands-focus-mode .splinterlands-command-status-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.splinterlands-focus-mode .splinterlands-command-rail {
    max-height: none;
  }

  body.splinterlands-focus-mode .splinterlands-overview-chart-panel.splinterlands-overview-market-grid,
  body.splinterlands-focus-mode .splinterlands-overview-kpi-strip,
  body.splinterlands-focus-mode .splinterlands-overview-coverage-strip,
  body.splinterlands-focus-mode .splinterlands-resource-price-grid {
    grid-template-columns: 1fr;
  }

  body.splinterlands-focus-mode .splinterlands-token-chart-window {
    grid-template-columns: 2.7rem minmax(0, 1fr);
  }
}
