:root {
  color-scheme: dark;
  --bg: #0d1116;
  --panel: #131920;
  --panel-2: #1a222b;
  --panel-3: #222c37;
  --line: rgba(255, 255, 255, .11);
  --line-strong: rgba(255, 255, 255, .2);
  --text: #f5f7fa;
  --muted: #94a2b2;
  --cyan: #51e6ff;
  --lime: #72f17d;
  --gold: #ffd35a;
  --orange: #ff8d5b;
  --pink: #ff62c7;
  --purple: #c87cff;
  --danger: #ff6b6b;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
}

button,
input,
select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

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

.mine-nav {
  position: relative;
  z-index: 30;
  height: 68px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(13, 17, 22, .98);
}

.mine-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.mine-brand img:first-child {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.mine-wordmark {
  width: 130px;
  max-height: 28px;
  object-fit: contain;
}

.mine-nav-links {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.mine-nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.mine-nav-links a:hover,
.mine-nav-links a.active {
  color: var(--text);
  background: #202832;
}

.mine-mode {
  margin-left: auto;
  border: 1px solid rgba(114, 241, 125, .35);
  color: var(--lime);
  padding: 7px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.mine-app {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
}

.mine-stage {
  position: relative;
  min-height: calc(100vh - 68px);
  overflow: hidden;
  background: #10161c;
}

.mine-scene,
.mine-scene canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.mine-scene canvas { touch-action: none; }
.mine-scene canvas.is-looking { cursor: grabbing; }

.mine-scene-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 10, 14, .72), transparent 24%),
    linear-gradient(0deg, rgba(7, 10, 14, .92), transparent 28%);
}

.mine-stage-head {
  position: absolute;
  z-index: 4;
  top: 20px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.mine-stage-head span,
.mine-panel-head span,
.mine-balance span,
.mine-production-strip span,
.mine-referral-code span,
.mine-treasury span,
.machine-inspector > span,
.mine-modal section > span,
.mine-explore-hud > span,
.mine-panel-summary span,
.mine-boost-summary span,
.machine-upgrade-cost > span {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.4px;
}

.mine-stage-head h1 {
  margin: 4px 0 0;
  font-family: "Audiowide", sans-serif;
  font-size: clamp(21px, 2.2vw, 33px);
  letter-spacing: 0;
}

.mine-scene-tools {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.mine-scene-tools button,
.machine-inspector > button,
.mine-modal-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(20, 26, 33, .92);
  color: var(--text);
  font-size: 19px;
}

.mine-scene-tools button:hover { border-color: rgba(81, 230, 255, .55); color: var(--cyan); }

.mine-production-strip {
  position: absolute;
  z-index: 4;
  top: 100px;
  left: 24px;
  display: flex;
  gap: 8px;
}

.mine-production-strip > div {
  min-width: 112px;
  padding: 9px 11px;
  border-left: 3px solid var(--cyan);
  background: rgba(17, 23, 30, .88);
  backdrop-filter: blur(10px);
}

.mine-production-strip > div.boost { border-left-color: var(--pink); }
.mine-production-strip > div.boost span { color: var(--pink); }
.mine-production-strip strong { display: block; margin-top: 3px; font-size: 13px; }

.mine-explore-hud {
  position: absolute;
  z-index: 4;
  left: 24px;
  bottom: 116px;
  width: 250px;
  padding: 11px 13px;
  border-left: 3px solid var(--gold);
  background: rgba(17, 23, 30, .9);
  pointer-events: none;
}

.mine-explore-hud > span { color: var(--gold); }
.mine-explore-hud strong { display: block; margin-top: 2px; font-size: 16px; }
.mine-explore-hud small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }

.mine-power-badge {
  position: absolute;
  z-index: 5;
  top: 100px;
  right: 24px;
  min-width: 188px;
  min-height: 55px;
  padding: 9px 10px 8px 38px;
  border: 1px solid rgba(114, 241, 125, .26);
  background: rgba(17, 23, 30, .9);
  backdrop-filter: blur(10px);
}

.mine-power-badge > i {
  position: absolute;
  left: 12px;
  top: 15px;
  width: 14px;
  height: 22px;
  background: var(--lime);
  clip-path: polygon(48% 0, 100% 0, 65% 42%, 96% 42%, 30% 100%, 43% 57%, 9% 57%);
  filter: drop-shadow(0 0 7px rgba(114, 241, 125, .7));
}

.mine-power-badge span { color: var(--lime); font-size: 8px; font-weight: 900; letter-spacing: 1px; }
.mine-power-badge strong { display: block; margin-top: 1px; font-size: 12px; }
.mine-power-badge small { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }
.mine-power-badge.grace { border-color: rgba(255, 211, 90, .45); }
.mine-power-badge.grace > i { background: var(--gold); filter: drop-shadow(0 0 7px rgba(255, 211, 90, .75)); }
.mine-power-badge.offline { border-color: rgba(255, 107, 107, .5); }
.mine-power-badge.offline > i { background: var(--danger); filter: drop-shadow(0 0 7px rgba(255, 107, 107, .75)); }

.mine-controls-legend {
  position: absolute;
  z-index: 4;
  right: 24px;
  bottom: 119px;
  display: grid;
  grid-template-columns: auto auto;
  gap: 3px 7px;
  color: var(--muted);
  font-size: 9px;
  pointer-events: none;
}

.mine-controls-legend::before {
  content: "";
  position: absolute;
  inset: -8px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, .07);
  background: rgba(12, 17, 22, .62);
}

.mine-controls-legend b {
  min-width: 39px;
  color: var(--text);
  text-align: center;
  border: 1px solid var(--line-strong);
  background: rgba(18, 24, 31, .9);
  padding: 3px 5px;
}

.mine-controls-legend span { align-self: center; font-weight: 800; }

.mine-mobile-pad {
  display: none;
  position: absolute;
  z-index: 7;
  left: 14px;
  bottom: 118px;
  grid-template-columns: repeat(3, 38px);
  grid-template-rows: repeat(3, 38px);
  gap: 3px;
}

.mine-mobile-pad button {
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 5px;
  background: rgba(20, 27, 35, .9);
  color: var(--text);
  touch-action: none;
}

#moveUp { grid-column: 2; }
#moveLeft { grid-column: 1; grid-row: 2; }
#moveAction { grid-column: 2; grid-row: 2; color: var(--gold); font-weight: 900; }
#moveRight { grid-column: 3; grid-row: 2; }
#moveDown { grid-column: 2; grid-row: 3; }

.mine-command-dock {
  position: absolute;
  z-index: 5;
  left: 24px;
  right: 24px;
  bottom: 20px;
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(16, 21, 27, .94);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  gap: 11px;
}

.mine-balance {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.mine-claim-readout { min-width: 0; }

.mine-claim-readout > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mine-balance img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.mine-balance strong {
  display: block;
  margin-top: 2px;
  font-size: 20px;
}

.mine-claim-progress {
  width: 100%;
  height: 3px;
  margin-top: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, .1);
}

.mine-claim-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(255, 201, 40, .55);
  transition: width .3s ease;
}

.mine-command-dock.claim-ready .mine-claim-progress i {
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(81, 230, 255, .7);
}

.mine-command {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  color: #071014;
  background: var(--cyan);
  font-weight: 900;
}

.mine-command:hover { filter: brightness(1.08); }
.mine-command:disabled { opacity: .42; cursor: not-allowed; }
.mine-command.secondary { color: var(--text); background: #293440; }
.mine-command.streak { color: #161007; background: var(--gold); }

.machine-inspector {
  position: absolute;
  z-index: 8;
  right: 24px;
  bottom: 162px;
  width: 320px;
  padding: 18px;
  border: 1px solid rgba(81, 230, 255, .34);
  border-radius: 7px;
  background: rgba(16, 21, 27, .96);
  backdrop-filter: blur(14px);
}

.machine-inspector > button:first-child {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
}

.machine-inspector h2 { margin: 5px 0 4px; font-size: 21px; }
.machine-inspector > p { margin: 0 28px 13px 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.machine-inspector .mine-command { width: 100%; margin-top: 12px; }

.machine-inspector-grid,
.mine-network-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.machine-inspector-grid div,
.mine-network-stats div {
  padding: 9px;
  background: #202832;
}

.machine-inspector-grid span,
.mine-network-stats span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.machine-inspector-grid strong,
.mine-network-stats strong { display: block; margin-top: 4px; }

.machine-upgrade-cost {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.machine-upgrade-cost > strong {
  display: block;
  margin-top: 3px;
  color: var(--gold);
  font-size: 13px;
}

#inspectorRequirements {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

#inspectorRequirements i {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 6px;
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
}

#inspectorRequirements i.ready { color: var(--lime); border-color: rgba(114, 241, 125, .3); }
#inspectorRequirements i.missing { color: var(--danger); border-color: rgba(255, 107, 107, .3); }

.mine-control {
  min-width: 0;
  border-left: 1px solid var(--line);
  background: #12171d;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 68px);
}

.mine-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(58px, 1fr));
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}

.mine-tabs button,
.mine-shop-filter button,
.mine-payment-toggle button {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  min-height: 48px;
  font-weight: 800;
  font-size: 11px;
}

.mine-tabs button.active {
  color: var(--cyan);
  box-shadow: inset 0 -2px var(--cyan);
}

.mine-panel {
  display: none;
  min-height: 0;
  flex: 1;
  padding: 17px;
  overflow-y: auto;
}

.mine-panel.active { display: block; }

.mine-panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.mine-panel-head h2 { margin: 3px 0 0; font-size: 20px; }
.mine-panel-head > strong { color: var(--gold); font-size: 13px; }

.mine-panel-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

.mine-panel-summary > div { padding: 10px 4px; }
.mine-panel-summary > div + div { border-left: 1px solid var(--line); padding-left: 13px; }
.mine-panel-summary strong { display: block; margin-top: 3px; font-size: 15px; }
.mine-panel-summary > div:last-child strong { color: var(--lime); }

.mine-printer-output,
.mine-wallet-balances {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 11px;
  background: var(--line);
}

.mine-printer-output > div,
.mine-wallet-balances > div {
  min-width: 0;
  padding: 11px;
  background: #191f27;
}

.mine-printer-output span,
.mine-wallet-balances span,
.mine-wallet-capacity span,
.mine-section-title span,
.mine-power-copy span,
.mine-funding-console label > span {
  display: block;
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .8px;
}

.mine-printer-output strong,
.mine-wallet-balances strong {
  display: block;
  margin-top: 4px;
  color: var(--gold);
  font-size: 17px;
  overflow-wrap: anywhere;
}

.mine-printer-output > div:last-child strong { color: var(--purple); }
.mine-wallet-balances { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mine-wallet-balances > div:nth-child(2) strong { color: var(--purple); }
.mine-wallet-balances > div:nth-child(3) strong { color: var(--cyan); }

.mine-printer-actions,
.mine-inline-actions {
  display: flex;
  gap: 7px;
  margin-bottom: 12px;
}

.mine-printer-actions .mine-command { flex: 1; padding-inline: 8px; font-size: 10px; }

.mine-printer-slots {
  display: grid;
  gap: 8px;
}

.mine-printer-slot {
  --slot-color: var(--muted);
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--slot-color);
  border-radius: 6px;
  background: #191f27;
}

.mine-printer-slot.active { --slot-color: var(--purple); }
.mine-printer-slot.full { --slot-color: var(--lime); }
.mine-printer-slot.charging { --slot-color: var(--gold); }

.mine-printer-cell {
  width: 48px;
  height: 58px;
  position: relative;
  border: 4px solid #46525e;
  background: #0f151a;
  overflow: hidden;
}

.mine-printer-cell i {
  position: absolute;
  inset: auto 3px 3px;
  height: var(--fill);
  max-height: calc(100% - 6px);
  background: var(--slot-color);
  box-shadow: 0 0 13px color-mix(in srgb, var(--slot-color) 78%, transparent);
}

.mine-printer-cell::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: -7px;
  height: 7px;
  background: #586572;
}

.mine-printer-slot-copy { min-width: 0; }
.mine-printer-slot-copy strong { display: block; font-size: 12px; }
.mine-printer-slot-copy span { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.mine-printer-slot-copy b { color: var(--purple); font-size: 10px; }

.mine-printer-slot button,
.mine-inline-actions button,
.mine-icon-command {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 9px;
  color: var(--text);
  background: #28333e;
  font-size: 9px;
  font-weight: 900;
}

.mine-printer-slot button:disabled,
.mine-inline-actions button:disabled { opacity: .42; cursor: not-allowed; }

.mine-icon-command {
  width: 34px;
  padding: 0;
  font-size: 17px;
}

.mine-address-line {
  width: 100%;
  margin-bottom: 10px;
  border: 0;
  border-left: 3px solid var(--cyan);
  padding: 9px 10px;
  color: var(--cyan);
  background: #181f27;
  text-align: left;
  font: 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow-wrap: anywhere;
}

.mine-wallet-capacity {
  margin: 4px 0 14px;
}

.mine-wallet-capacity > div:first-child,
.mine-section-title,
.mine-power-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mine-wallet-capacity strong,
.mine-section-title strong,
.mine-power-copy strong {
  color: var(--gold);
  font-size: 10px;
}

.mine-wallet-capacity .mine-progress { margin-bottom: 0; }
.mine-wallet-capacity .mine-progress i { background: var(--cyan); }

.mine-funding-console,
.mine-power-console {
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.mine-section-title { margin-bottom: 10px; }
.mine-section-title span { color: var(--cyan); }

.mine-funding-console label {
  display: block;
  margin-bottom: 9px;
}

.mine-funding-console select,
.mine-funding-console input,
#printerDestination {
  width: 100%;
  min-height: 39px;
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 8px 10px;
  color: var(--text);
  background: #0f1419;
}

.mine-inline-actions button {
  flex: 1;
  min-height: 38px;
  border: 0;
  color: #081015;
  background: var(--cyan);
}

.mine-inline-actions button:last-child { background: var(--lime); }

.mine-route-quote {
  min-height: 36px;
  color: var(--muted);
  font-size: 9px;
}

.mine-route-quote .mine-quote-row { font-size: 10px; }

.mine-preview-notice {
  padding: 9px 10px;
  border-left: 3px solid var(--gold);
  color: var(--muted);
  background: #191f27;
  font-size: 9px;
  line-height: 1.45;
}

.mine-power-console {
  --power-accent: var(--lime);
  --power-glow: rgba(114, 241, 125, .3);
  position: relative;
  isolation: isolate;
}

.mine-power-console.preview {
  --power-accent: var(--cyan);
  --power-glow: rgba(81, 230, 255, .3);
}

.mine-power-console.grace {
  --power-accent: var(--gold);
  --power-glow: rgba(255, 211, 90, .3);
}

.mine-power-console.offline {
  --power-accent: var(--danger);
  --power-glow: rgba(255, 107, 107, .3);
}

.mine-power-console.unavailable {
  --power-accent: #7f8b95;
  --power-glow: rgba(127, 139, 149, .18);
}

.mine-power-console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.mine-power-console-head > div:first-child { min-width: 0; }
.mine-power-console-head > div:first-child span,
.mine-power-console-head > div:first-child strong {
  display: block;
  letter-spacing: 0;
}

.mine-power-console-head > div:first-child span {
  color: var(--power-accent);
  font: 800 8px/1.2 "Space Grotesk", sans-serif;
}

.mine-power-console-head > div:first-child strong {
  margin-top: 4px;
  color: #f5f7fa;
  font: 700 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.mine-power-state {
  min-width: 82px;
  min-height: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid color-mix(in srgb, var(--power-accent) 42%, transparent);
  border-radius: 4px;
  padding: 0 8px;
  color: var(--power-accent);
  background: color-mix(in srgb, var(--power-accent) 7%, #0b1014);
  font: 900 8px/1 "Space Grotesk", sans-serif;
}

.mine-power-state i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--power-accent);
  box-shadow: 0 0 10px var(--power-glow);
  animation: mine-power-pulse 1.8s ease-in-out infinite;
}

.mine-power-console.offline .mine-power-state i,
.mine-power-console.unavailable .mine-power-state i { animation: none; }

.mine-battery-shell {
  padding: 9px 10px 8px;
  border: 1px solid #3b4650;
  border-radius: 5px;
  background: #0a0f13;
  box-shadow: inset 0 0 0 3px #11181e, 0 8px 18px rgba(0, 0, 0, .22);
}

.mine-battery-display {
  min-height: 104px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  margin-bottom: 10px;
  border: 1px solid color-mix(in srgb, var(--power-accent) 26%, #26323a);
  border-radius: 3px;
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, .018) 3px 4px),
    #07100d;
  box-shadow: inset 0 0 24px color-mix(in srgb, var(--power-accent) 8%, transparent);
  overflow: hidden;
}

.mine-battery-display > div {
  min-width: 0;
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mine-battery-display > div + div {
  border-left: 1px solid color-mix(in srgb, var(--power-accent) 18%, #26323a);
  align-items: flex-end;
  text-align: right;
}

.mine-battery-display span {
  color: color-mix(in srgb, var(--power-accent) 78%, #9ca8aa);
  font: 900 7px/1.2 "Space Grotesk", sans-serif;
  letter-spacing: 0;
}

#powerDigitalPercent {
  margin-top: 2px;
  color: var(--power-accent);
  font: 400 43px/.95 "Audiowide", ui-monospace, monospace;
  letter-spacing: 0;
  text-shadow: 0 0 16px var(--power-glow);
  white-space: nowrap;
}

#powerTimeValue {
  margin-top: 10px;
  color: #f1f7f6;
  font: 700 15px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0;
  white-space: nowrap;
}

.mine-battery-body {
  height: 49px;
  width: calc(100% - 10px);
  position: relative;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 4px;
  border: 4px solid #596570;
  border-radius: 4px;
  padding: 5px;
  background: #090d11;
  box-shadow: inset 0 0 0 1px #161f26;
}

.mine-battery-body::after {
  content: "";
  width: 8px;
  height: 23px;
  position: absolute;
  left: calc(100% + 4px);
  top: 9px;
  border-radius: 0 3px 3px 0;
  background: #596570;
}

.mine-battery-body > i {
  min-width: 0;
  border-radius: 2px;
  background: #182128;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .16);
  opacity: .7;
  transition: background .25s ease, box-shadow .25s ease, opacity .25s ease;
}

.mine-battery-body > i.active {
  background: var(--cell-color, var(--lime));
  box-shadow: 0 0 9px color-mix(in srgb, var(--cell-color, var(--lime)) 62%, transparent), inset 0 -6px 0 rgba(0, 0, 0, .12);
  opacity: 1;
}

.mine-battery-body > i:nth-child(1),
.mine-battery-body > i:nth-child(2) { --cell-color: #ff746f; }
.mine-battery-body > i:nth-child(3),
.mine-battery-body > i:nth-child(4),
.mine-battery-body > i:nth-child(5) { --cell-color: var(--gold); }

.mine-battery-scale {
  display: flex;
  justify-content: space-between;
  margin: 7px 11px 0 0;
  color: #687681;
  font: 800 6px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.mine-power-telemetry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 11px 0 0;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 4px;
  background: #10171c;
}

.mine-power-telemetry > div {
  min-width: 0;
  padding: 8px 9px;
}

.mine-power-telemetry > div + div { border-left: 1px solid rgba(255, 255, 255, .08); }
.mine-power-telemetry span,
.mine-power-telemetry strong { display: block; letter-spacing: 0; }
.mine-power-telemetry span { color: #71808b; font-size: 6px; font-weight: 900; }
.mine-power-telemetry strong {
  margin-top: 4px;
  color: #dce5e8;
  font: 700 10px/1.1 ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow-wrap: anywhere;
}
.mine-power-telemetry > div:last-child strong { color: var(--power-accent); }

.mine-power-copy {
  min-height: 45px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin: 9px 0 10px;
  border-left: 3px solid var(--power-accent);
  padding: 7px 9px;
  background: #10171c;
}

.mine-power-copy span {
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}

.mine-power-copy strong {
  max-width: 140px;
  color: var(--power-accent);
  line-height: 1.3;
  text-align: right;
}

.mine-power-console .mine-command {
  width: 100%;
  min-height: 43px;
  border: 1px solid color-mix(in srgb, var(--power-accent) 55%, transparent);
  color: #07100d;
  background: var(--power-accent);
  box-shadow: 0 7px 18px color-mix(in srgb, var(--power-accent) 14%, transparent);
}

.mine-power-console .mine-command:disabled {
  border-color: rgba(255, 255, 255, .09);
  color: #7d8991;
  background: #202930;
  box-shadow: none;
}

@keyframes mine-power-pulse {
  0%, 100% { opacity: .55; transform: scale(.85); }
  50% { opacity: 1; transform: scale(1); }
}

.mine-orders-title { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.mine-order-list { display: grid; gap: 7px; }

.mine-order-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 9px;
  padding: 9px;
  border-left: 3px solid var(--cyan);
  background: #191f27;
}

.mine-order-row.completed { border-left-color: var(--lime); }
.mine-order-row.failed,
.mine-order-row.manual_review { border-left-color: var(--danger); }
.mine-order-row strong { font-size: 11px; }
.mine-order-row b { color: var(--gold); font-size: 9px; text-transform: uppercase; }
.mine-order-row span { grid-column: 1 / -1; color: var(--muted); font-size: 9px; }

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

.mine-list-item {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px;
  background: #191f27;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
}

.mine-list-item.selected {
  border-color: rgba(81, 230, 255, .58);
  box-shadow: inset 3px 0 var(--cyan);
}

.mine-list-item .mini-rig {
  width: 52px;
  height: 52px;
  position: relative;
  border: 1px solid var(--line-strong);
  background: #10151b;
  overflow: hidden;
}

.mini-rig::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 7px;
  height: 28px;
  border: 4px solid #3d4a57;
  background: color-mix(in srgb, var(--item-color) 24%, #182029);
}

.mini-rig::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  top: 19px;
  height: 7px;
  background: var(--item-color);
  box-shadow: 0 0 10px var(--item-color);
}

.mine-item-copy { min-width: 0; }
.mine-item-copy strong { display: block; font-size: 14px; }
.mine-item-copy span { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }

.mine-item-actions {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.mine-item-actions b { color: var(--gold); font-size: 12px; }
.mine-item-actions button,
.mine-referral-code button,
.mine-referral-form button {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 7px 9px;
  background: #27313c;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
}

.mine-shop-filter,
.mine-payment-toggle {
  display: flex;
  gap: 5px;
  margin-bottom: 11px;
  overflow-x: auto;
}

.mine-shopkeeper {
  min-height: 108px;
  margin: -2px 0 12px;
  padding: 12px 12px 12px 112px;
  position: relative;
  border-top: 1px solid rgba(255, 211, 90, .3);
  border-bottom: 1px solid rgba(255, 211, 90, .3);
  background: #171e25;
  overflow: hidden;
}

.mine-shopkeeper::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 7px;
  background: #3d4853;
  box-shadow: inset 0 2px rgba(255, 211, 90, .35);
}

.mine-shopkeeper > div:last-child {
  position: relative;
  z-index: 2;
}

.mine-shopkeeper span {
  color: var(--gold);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.1px;
}

.mine-shopkeeper strong {
  display: block;
  margin-top: 5px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 17px;
}

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

.mine-shopkeeper-portrait {
  position: absolute;
  left: 12px;
  bottom: 7px;
  width: 86px;
  height: 96px;
  border-left: 1px solid rgba(255, 211, 90, .35);
  border-right: 1px solid rgba(255, 211, 90, .35);
  background: #10161c;
  overflow: hidden;
}

.mine-shopkeeper-portrait .keeper-head {
  position: absolute;
  left: 27px;
  top: 16px;
  width: 34px;
  height: 38px;
  border-radius: 44% 44% 48% 48%;
  background: #d29b76;
}

.mine-shopkeeper-portrait .keeper-hair {
  position: absolute;
  z-index: 2;
  left: 23px;
  top: 10px;
  width: 42px;
  height: 22px;
  border-radius: 50% 50% 28% 28%;
  background: #20262c;
  transform: rotate(-5deg);
}

.mine-shopkeeper-portrait .keeper-visor {
  position: absolute;
  z-index: 3;
  left: 30px;
  top: 30px;
  width: 28px;
  height: 9px;
  border: 2px solid #46535f;
  background: var(--cyan);
  box-shadow: 0 0 9px rgba(81, 230, 255, .7);
}

.mine-shopkeeper-portrait .keeper-body {
  position: absolute;
  left: 16px;
  bottom: -18px;
  width: 56px;
  height: 62px;
  border-radius: 18px 18px 0 0;
  background: #364553;
}

.mine-shopkeeper-portrait .keeper-apron {
  position: absolute;
  left: 30px;
  bottom: -7px;
  width: 30px;
  height: 45px;
  background: #d9ad36;
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
}

.mine-shop-filter button,
.mine-payment-toggle button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  white-space: nowrap;
}

.mine-shop-filter button.active,
.mine-payment-toggle button.active {
  color: var(--cyan);
  border-color: rgba(81, 230, 255, .45);
  background: rgba(81, 230, 255, .08);
}

.mine-price-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  padding: 8px 10px;
  border-left: 3px solid var(--gold);
  background: #1a2028;
  font-size: 10px;
}

.mine-price-note b { color: var(--gold); white-space: nowrap; }
.mine-price-note span { color: var(--muted); }

.mine-shop-grid {
  display: grid;
  gap: 14px;
  padding-bottom: 6px;
}

.mine-shop-card {
  --item-color: var(--cyan);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #181f27;
  overflow: hidden;
  box-shadow: 0 5px 0 #303b46;
}

.mine-shop-card.locked { opacity: 1; }
.mine-shop-card.locked .mine-item-art,
.mine-shop-card.locked .mine-shop-card-foot button { opacity: .58; }
.mine-shop-card.owned { border-color: rgba(114, 241, 125, .34); }

.mine-shop-card-head {
  min-height: 28px;
  padding: 5px 9px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.mine-shop-card-head .rarity { color: var(--item-color); }
.mine-shop-card-head .owned { color: var(--lime); }
.mine-shop-card-head .locked { color: var(--danger); }

.mine-shop-card-body {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 12px;
  padding: 11px;
}

.mine-shop-copy h3 {
  margin: 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 17px;
}

.mine-shop-copy p {
  margin: 4px 0 9px;
  min-height: 30px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.42;
}

.mine-item-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.mine-item-stats span {
  padding: 4px 6px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.mine-shop-card-foot {
  min-height: 46px;
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mine-shop-price span { display: block; color: var(--muted); font-size: 8px; font-weight: 800; }
.mine-shop-price strong { display: block; color: var(--gold); font-size: 16px; }

.mine-shop-card-foot button {
  min-width: 94px;
  min-height: 32px;
  border: 0;
  border-radius: 5px;
  color: #081015;
  background: var(--item-color);
  font-weight: 900;
  font-size: 11px;
}

.mine-shop-card-foot button:disabled {
  color: var(--muted);
  background: #29313b;
  cursor: not-allowed;
}

.mine-item-art {
  --item-color: var(--cyan);
  width: 105px;
  height: 92px;
  position: relative;
  border: 1px solid var(--line-strong);
  background: #10161c;
  overflow: hidden;
}

.mine-item-art::before {
  content: "";
  position: absolute;
  inset: auto 8px 8px;
  height: 5px;
  background: color-mix(in srgb, var(--item-color) 40%, #29333e);
}

.art-machine .art-body {
  position: absolute;
  left: 23px;
  right: 23px;
  bottom: 16px;
  height: 49px;
  border: 6px solid #3b4855;
  background: color-mix(in srgb, var(--item-color) 22%, #18212a);
}

.art-machine .art-core {
  position: absolute;
  left: 34px;
  right: 34px;
  top: 43px;
  height: 11px;
  background: var(--item-color);
  box-shadow: 0 0 16px color-mix(in srgb, var(--item-color) 74%, transparent);
}

.art-machine .art-fan {
  position: absolute;
  width: 25px;
  height: 25px;
  left: 40px;
  top: 12px;
  border: 5px solid #4b5b69;
  border-top-color: var(--item-color);
  border-radius: 50%;
}

.art-machine .art-pipe {
  position: absolute;
  width: 8px;
  height: 41px;
  top: 26px;
  left: 15px;
  border: 3px solid #52616e;
  border-right: 0;
}

.art-machine .art-pipe:last-child { left: auto; right: 15px; transform: scaleX(-1); }

.art-part .part-shape {
  position: absolute;
  left: 26px;
  top: 17px;
  width: 53px;
  height: 53px;
  border: 7px solid #465461;
  background: color-mix(in srgb, var(--item-color) 32%, #18212a);
  clip-path: polygon(25% 0, 75% 0, 100% 25%, 100% 75%, 75% 100%, 25% 100%, 0 75%, 0 25%);
}

.art-part .part-core {
  position: absolute;
  left: 43px;
  top: 34px;
  width: 19px;
  height: 19px;
  background: var(--item-color);
  box-shadow: 0 0 15px var(--item-color);
}

.art-part .part-pin {
  position: absolute;
  top: 10px;
  left: 19px;
  width: 4px;
  height: 67px;
  background: #60707e;
  box-shadow: 63px 0 #60707e;
}

.art-multiplier .boost-ring {
  position: absolute;
  border: 4px solid color-mix(in srgb, var(--item-color) 75%, #ffffff);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--item-color);
}

.art-multiplier .boost-ring.one { width: 66px; height: 66px; left: 19px; top: 12px; }
.art-multiplier .boost-ring.two { width: 42px; height: 42px; left: 31px; top: 24px; border-style: dashed; }
.art-multiplier .boost-gem {
  position: absolute;
  width: 20px;
  height: 28px;
  left: 42px;
  top: 31px;
  background: var(--item-color);
  clip-path: polygon(50% 0, 100% 35%, 78% 100%, 22% 100%, 0 35%);
}

.art-expansion .bay-grid {
  position: absolute;
  inset: 15px 18px 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.art-expansion .bay-grid i {
  border: 2px solid #4a5865;
  background: #222c35;
}

.art-expansion .bay-grid i:nth-child(-n+3) {
  border-color: var(--item-color);
  background: color-mix(in srgb, var(--item-color) 30%, #222c35);
}

.mine-inventory-key {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 0 0 10px;
  color: var(--muted);
  font-size: 9px;
}

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

.mine-inventory-item {
  --item-color: var(--cyan);
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px;
  background: #191f27;
}

.mine-inventory-item .mine-item-art {
  width: 100%;
  height: 90px;
}

.mine-inventory-item strong {
  display: block;
  margin-top: 8px;
  font-size: 12px;
}

.mine-inventory-item small { color: var(--muted); font-size: 9px; }
.mine-inventory-item b {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  min-width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #081015;
  background: var(--item-color);
  font-size: 11px;
}

.mine-inventory-item button {
  width: 100%;
  margin-top: 8px;
  min-height: 31px;
  border: 0;
  border-radius: 5px;
  color: #081015;
  background: var(--item-color);
  font-weight: 900;
  font-size: 10px;
}

.mine-boost-summary {
  margin-bottom: 15px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.mine-boost-summary strong {
  display: block;
  margin-top: 2px;
  font-family: "Audiowide", sans-serif;
  color: var(--pink);
  font-size: 32px;
}

.mine-boost-summary small { color: var(--muted); font-size: 10px; }

.mine-boost-track {
  display: grid;
  gap: 10px;
}

.mine-boost-node {
  --item-color: var(--cyan);
  position: relative;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 11px 11px 96px;
  background: #181f27;
}

.mine-boost-node::before {
  content: "";
  position: absolute;
  left: 42px;
  top: -11px;
  width: 2px;
  height: 10px;
  background: var(--line-strong);
}

.mine-boost-node:first-child::before { display: none; }
.mine-boost-node.owned { border-color: rgba(114, 241, 125, .32); }
.mine-boost-node.available { border-color: color-mix(in srgb, var(--item-color) 48%, transparent); }
.mine-boost-node.locked { opacity: 1; }
.mine-boost-node.locked .mine-boost-icon,
.mine-boost-node.locked footer { opacity: .58; }

.mine-boost-node .mine-item-art {
  position: absolute;
  left: 10px;
  top: 10px;
  width: 74px;
  height: 74px;
}

.mine-boost-node .art-multiplier .boost-ring.one { width: 52px; height: 52px; left: 10px; top: 8px; }
.mine-boost-node .art-multiplier .boost-ring.two { width: 32px; height: 32px; left: 20px; top: 18px; }
.mine-boost-node .art-multiplier .boost-gem { left: 27px; top: 24px; width: 18px; height: 25px; }

.mine-boost-node h3 { margin: 0; font-size: 14px; }
.mine-boost-node p { margin: 3px 0 8px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.mine-boost-node footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mine-boost-node footer strong { color: var(--item-color); font-size: 15px; }
.mine-boost-node footer span { color: var(--gold); font-size: 11px; font-weight: 900; }
.mine-boost-node footer button {
  min-height: 29px;
  border: 0;
  border-radius: 4px;
  padding: 0 9px;
  color: #081015;
  background: var(--item-color);
  font-size: 9px;
  font-weight: 900;
}
.mine-boost-node footer button:disabled { color: var(--muted); background: #2a333d; cursor: not-allowed; }

.mine-referral-code {
  padding: 14px;
  border: 1px solid rgba(81, 230, 255, .25);
  background: #191f27;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 10px;
}

.mine-referral-code span { grid-column: 1 / -1; }
.mine-referral-code strong { font-family: "Audiowide", sans-serif; font-size: 17px; }

.mine-referral-form {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.mine-referral-form label { flex: 1; }
.mine-referral-form label span { display: block; color: var(--muted); font-size: 10px; margin-bottom: 4px; }
.mine-referral-form input,
.mine-quantity input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #0f1419;
  color: var(--text);
  padding: 10px;
}

.mine-treasury {
  border-top: 1px solid var(--line);
  padding: 14px 17px 17px;
}

.mine-treasury-head,
.mine-treasury-numbers {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.mine-treasury-head strong { color: var(--lime); }
.mine-progress { height: 7px; margin: 9px 0; background: #27313c; overflow: hidden; }
.mine-progress i { display: block; height: 100%; width: 100%; background: var(--lime); }
.mine-treasury-numbers { color: var(--muted); font-size: 10px; }

.mine-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  padding: 20px;
  background: rgba(4, 7, 10, .8);
  display: grid;
  place-items: center;
}

.mine-modal > section {
  width: min(470px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #171d24;
  padding: 22px;
  position: relative;
}

.mine-modal-art {
  float: left;
  width: 112px;
  margin: 0 15px 12px 0;
}

.mine-modal-art .mine-item-art { width: 112px; height: 100px; }
.mine-modal h2 { margin: 4px 38px 3px 0; font-size: 25px; }
.mine-modal section > p { min-height: 40px; margin: 0 0 14px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.mine-modal-close { position: absolute; right: 13px; top: 13px; }
.mine-payment-toggle { clear: both; }
.mine-quantity { display: block; margin-bottom: 14px; }
.mine-quantity span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 5px; }

.mine-quote {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  margin: 12px 0;
}

.mine-quote-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  color: var(--muted);
  font-size: 12px;
}

.mine-quote-row b { color: var(--text); text-align: right; }
.mine-modal .mine-command { width: 100%; }
.mine-status { min-height: 20px; color: var(--muted); font-size: 12px; }
.mine-status.bad { color: var(--danger); }

.mine-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  max-width: 340px;
  padding: 11px 14px;
  border-radius: 6px;
  background: #202832;
  color: var(--text);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: .2s ease;
}

.mine-toast.show { opacity: 1; transform: translateY(0); }

.mine-stage.power-offline .mine-scene-shade {
  background:
    radial-gradient(circle at 50% 62%, transparent 0 13%, rgba(0, 0, 0, .28) 31%, rgba(0, 0, 0, .84) 82%),
    rgba(0, 0, 0, .12);
}

.mine-stage.power-offline .mine-stage-head,
.mine-stage.power-offline .mine-production-strip,
.mine-stage.power-offline .mine-command-dock {
  filter: saturate(.45) brightness(.72);
}

.mine-stage.power-offline .mine-explore-hud {
  border-left-color: var(--danger);
}

.mine-gate {
  min-height: calc(100vh - 68px);
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.mine-gate img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; }
.mine-gate h1 { font-family: "Audiowide", sans-serif; margin: 18px 0 4px; }
.mine-gate p { color: var(--muted); }
.mine-gate a { color: #071014; background: var(--cyan); padding: 11px 18px; border-radius: 6px; text-decoration: none; font-weight: 900; }

@media (max-width: 1120px) {
  .mine-app { grid-template-columns: minmax(0, 1fr) 390px; }
  .mine-production-strip > div { min-width: 98px; }
}

@media (max-width: 980px) {
  .mine-nav { padding: 0 12px; }
  .mine-brand { min-width: auto; }
  .mine-wordmark { display: none; }
  .mine-mode { display: none; }
  .mine-app { display: block; }
  .mine-stage { min-height: 70vh; }
  .mine-control { max-height: none; border-left: 0; border-top: 1px solid var(--line); min-height: 470px; }
  .mine-panel { min-height: 410px; }
}

@media (max-width: 640px) {
  .mine-nav { height: 58px; gap: 8px; }
  .mine-brand img:first-child { width: 32px; height: 32px; }
  .mine-nav-links a { padding: 8px 8px; font-size: 12px; }
  .mine-stage { min-height: 76vh; }
  .mine-stage-head { top: 12px; left: 12px; right: 12px; }
  .mine-stage-head h1 { font-size: 18px; }
  .mine-scene-tools button { width: 33px; height: 33px; }
  .mine-production-strip { top: 70px; left: 12px; right: 12px; display: grid; grid-template-columns: repeat(4, 1fr); }
  .mine-production-strip > div { min-width: 0; padding: 7px; }
  .mine-production-strip span { font-size: 7px; letter-spacing: .7px; }
  .mine-production-strip strong { font-size: 9px; }
  .mine-power-badge { top: 118px; right: 12px; min-width: 142px; padding-left: 34px; }
  .mine-power-badge small { max-width: 100px; }
  .mine-explore-hud { left: 12px; bottom: 117px; width: 178px; padding: 8px 10px; }
  .mine-explore-hud strong { font-size: 12px; }
  .mine-explore-hud small { font-size: 8px; }
  .mine-controls-legend { display: none; }
  .mine-mobile-pad { display: grid; left: auto; right: 12px; bottom: 113px; }
  .mine-command-dock { left: 8px; right: 8px; bottom: 8px; padding: 8px; flex-wrap: wrap; }
  .mine-balance { width: 100%; }
  .mine-balance img { width: 35px; height: 35px; }
  .mine-balance strong { font-size: 15px; }
  .mine-command-dock .mine-command { flex: 1; min-height: 36px; font-size: 10px; padding: 0 8px; }
  .machine-inspector { left: 8px; right: 8px; bottom: 195px; width: auto; max-height: 310px; overflow-y: auto; }
  .mine-tabs { position: sticky; top: 0; z-index: 3; background: #12171d; }
  .mine-tabs button { min-height: 44px; font-size: 10px; }
  .mine-panel { padding: 14px; }
  .mine-shop-card-body { grid-template-columns: 92px minmax(0, 1fr); }
  .mine-shopkeeper { min-height: 102px; padding-left: 104px; }
  .mine-shopkeeper-portrait { width: 80px; }
  .mine-item-art { width: 92px; }
  .mine-inventory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mine-wallet-balances { grid-template-columns: 1fr; }
  .mine-printer-slot { grid-template-columns: 42px minmax(0, 1fr) auto; }
  .mine-printer-cell { width: 42px; height: 52px; }
  .mine-modal > section { padding: 17px; max-height: calc(100vh - 24px); overflow-y: auto; }
  .mine-modal-art { width: 88px; }
  .mine-modal-art .mine-item-art { width: 88px; height: 88px; }
  .mine-modal h2 { font-size: 21px; }
}

@media (pointer: coarse), (hover: none) {
  .mine-mobile-pad { display: grid; }
  .mine-mobile-pad button { min-width: 44px; min-height: 44px; }
  .mine-controls-legend { display: none; }
}

@media (max-width: 390px) {
  .mine-nav-links a { padding-inline: 7px; }
  .mine-shop-card-body { grid-template-columns: 82px minmax(0, 1fr); gap: 9px; }
  .mine-item-art { width: 82px; }
  .mine-shop-copy h3 { font-size: 15px; }
}

/* Genesis BLOCK Foundry */
:root {
  --bg: #080a0e;
  --panel: #11171e;
  --panel-2: #19232d;
  --panel-3: #293744;
  --line: rgba(213, 228, 237, .13);
  --line-strong: rgba(213, 228, 237, .25);
  --text: #f3f5f6;
  --muted: #a7b2ba;
  --cyan: #3fe1f4;
  --lime: #58df86;
  --gold: #ffc928;
  --orange: #ff8954;
  --pink: #ef5dbd;
  --purple: #a96cff;
  --danger: #ff5f6d;
}

.mine-page * { letter-spacing: 0 !important; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.mine-nav {
  background: rgba(8, 10, 14, .97);
  box-shadow: 0 1px 0 rgba(255, 201, 40, .12);
}

.mine-app {
  position: relative;
  display: block;
  min-height: calc(100vh - 68px);
}

.mine-stage {
  min-height: calc(100vh - 68px);
  background: #080c10;
}

.mine-scene-shade {
  background:
    linear-gradient(180deg, rgba(5, 7, 9, .46), transparent 17%),
    radial-gradient(circle at 50% 55%, transparent 30%, rgba(3, 5, 7, .3) 86%),
    linear-gradient(0deg, rgba(4, 6, 8, .84), transparent 24%);
}

.mine-stage-head {
  top: 18px;
  z-index: 4;
  align-items: flex-start;
}

.mine-app.terminal-open .mine-scene-tools {
  opacity: 0;
  pointer-events: none;
}

.mine-stage-head > div:first-child {
  padding: 10px 13px 11px;
  border-left: 3px solid var(--gold);
  background: rgba(10, 14, 18, .76);
  backdrop-filter: blur(10px);
}

.mine-stage-head span { color: var(--gold); }
.mine-stage-head h1 { font-size: 26px; text-shadow: 0 2px 12px #000; }

.mine-scene-tools {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mine-scene-tools button,
.mine-terminal-head button,
.mine-map-panel header button {
  border-color: rgba(255, 255, 255, .16);
  background: rgba(15, 21, 27, .9);
  box-shadow: inset 0 1px rgba(255, 255, 255, .04), 0 6px 16px rgba(0, 0, 0, .22);
}

.mine-scene-tools .mine-tool-label {
  width: auto;
  min-width: 64px;
  padding: 0 11px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
}

.mine-production-strip {
  top: 95px;
  left: 50%;
  transform: translateX(-50%);
  gap: 2px;
}

.mine-production-strip > div {
  min-width: 120px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-left: 2px solid var(--cyan);
  background: rgba(12, 17, 22, .8);
}

.mine-production-strip > div:first-child {
  border-left-color: var(--gold);
}

.mine-production-strip > div:first-child span,
.mine-production-strip > div:first-child strong { color: var(--gold); }

.mine-power-badge {
  top: 95px;
  right: 24px;
  border-radius: 5px;
  background: rgba(12, 17, 22, .84);
}

.mine-explore-hud {
  bottom: 112px;
  width: 280px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-left: 3px solid var(--gold);
  background: rgba(10, 14, 18, .82);
  backdrop-filter: blur(10px);
}

.mine-explore-hud strong { font-size: 15px; }
.mine-explore-hud small { font-size: 11px; }

.mine-waypoint {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  color: var(--cyan);
  font-size: 11px;
}

.mine-waypoint i {
  width: 8px;
  height: 8px;
  border: 2px solid var(--cyan);
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(63, 225, 244, .7);
}

.mine-command-dock {
  right: auto;
  bottom: 16px;
  width: min(720px, calc(100% - 48px));
  min-height: 72px;
  border-color: rgba(255, 201, 40, .2);
  border-radius: 6px;
  background: rgba(11, 15, 20, .91);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .28);
}

@media (min-width: 641px) {
  .mine-command-dock > .mine-command { flex: 0 0 auto; white-space: nowrap; }
  .mine-command-dock > .mine-command.streak { min-width: 132px; padding-inline: 11px; }
  .mine-command-dock .mine-balance { min-width: 0; }
  .mine-command-dock .mine-balance strong { white-space: nowrap; }
}

.mine-balance strong { color: var(--gold); }

.mine-command {
  background: var(--gold);
  color: #111008;
  box-shadow: inset 0 1px rgba(255, 255, 255, .35), 0 5px 15px rgba(255, 201, 40, .12);
}

.mine-command.secondary { box-shadow: none; }

.mine-control {
  position: fixed;
  z-index: 26;
  top: 82px;
  right: 14px;
  bottom: 14px;
  width: min(440px, calc(100vw - 28px));
  max-height: none;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 7px;
  background: rgba(13, 18, 24, .98);
  box-shadow: -18px 22px 55px rgba(0, 0, 0, .46);
  transform: translateX(calc(100% + 28px));
  opacity: 0;
  pointer-events: none;
  transition: transform .24s ease, opacity .2s ease;
  overflow: hidden;
}

.mine-app.terminal-open .mine-control {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.mine-terminal-head {
  min-height: 62px;
  padding: 11px 12px 10px 15px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(255, 201, 40, .1), transparent 56%);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mine-terminal-head span {
  display: block;
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
}

.mine-terminal-head strong {
  display: block;
  margin-top: 2px;
  font-family: "Audiowide", sans-serif;
  font-size: 16px;
}

.mine-terminal-head button,
.mine-map-panel header button {
  width: 38px;
  height: 38px;
  border-radius: 5px;
  color: var(--text);
  font-size: 20px;
}

.mine-tabs {
  grid-template-columns: repeat(7, minmax(62px, 1fr));
  background: #0c1116;
}

.mine-tabs button { min-height: 46px; font-size: 11px; }
.mine-tabs button.active { color: var(--gold); box-shadow: inset 0 -2px var(--gold); }

.mine-panel { padding: 18px; }
.mine-panel-head span { color: var(--gold); }
.mine-panel-head h2 { font-size: 21px; }

.mine-printer-output span,
.mine-wallet-balances span,
.mine-wallet-capacity span,
.mine-section-title span,
.mine-power-copy span,
.mine-funding-console label > span { font-size: 10px; }

.mine-list-item,
.mine-shop-card,
.mine-inventory-item,
.mine-printer-slot,
.mine-order-row,
.mine-boost-node {
  background: #151d25;
  border-color: rgba(255, 255, 255, .1);
}

.mine-shop-card-foot button,
.mine-boost-node footer button {
  background: var(--gold);
  color: #111008;
}

.mine-map-panel {
  position: absolute;
  z-index: 18;
  top: 82px;
  right: 24px;
  width: 370px;
  padding: 12px;
  border: 1px solid rgba(63, 225, 244, .28);
  border-radius: 7px;
  background: rgba(10, 15, 20, .96);
  box-shadow: 0 20px 55px rgba(0, 0, 0, .45);
}

.mine-map-panel header,
.mine-map-panel footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mine-map-panel header span {
  display: block;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 900;
}

.mine-map-panel header strong { display: block; margin-top: 2px; }

.mine-map {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 84 / 62;
  margin: 12px 0 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  background:
    linear-gradient(rgba(63, 225, 244, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 225, 244, .05) 1px, transparent 1px),
    #0d141a;
  background-size: 24px 24px;
}

.mine-map::before {
  content: "";
  position: absolute;
  inset: 9% 8%;
  border: 9px solid #1b2730;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 0 0 1px rgba(0, 0, 0, .8);
}

.mine-map-route {
  position: absolute;
  z-index: 1;
  border: 2px solid rgba(63, 225, 244, .18);
  pointer-events: none;
}

.mine-map-route.loop-a { inset: 20% 14%; }
.mine-map-route.loop-b { left: 49.5%; top: 18%; bottom: 18%; width: 1px; }
.mine-map-route.spine { left: 12%; right: 12%; top: 49.5%; height: 1px; }

.mine-map-station {
  position: absolute;
  z-index: 3;
  width: 62px;
  min-height: 34px;
  padding: 5px;
  border: 1px solid var(--station-color);
  border-radius: 4px;
  background: color-mix(in srgb, var(--station-color) 14%, #111820);
  color: var(--text);
  transform: translate(-50%, -50%);
  font-size: 9px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  box-shadow: 0 0 14px color-mix(in srgb, var(--station-color) 22%, transparent);
}

.mine-map-station.waypoint { outline: 2px solid var(--gold); outline-offset: 2px; }

.mine-map-player {
  position: absolute;
  z-index: 5;
  width: 12px;
  height: 12px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(255, 201, 40, .2), 0 0 15px rgba(255, 201, 40, .7);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.mine-map-panel footer {
  color: var(--muted);
  font-size: 10px;
}

.mine-map-panel footer b { color: var(--cyan); }

.mine-referral-code { border-color: rgba(255, 201, 40, .28); }
.mine-referral-code span { color: var(--gold); }
.mine-referral-code > div { display: flex; gap: 6px; }
.mine-referral-code button,
.mine-referral-form button {
  min-height: 36px;
  border: 0;
  border-radius: 4px;
  padding: 0 11px;
  color: #111008;
  background: var(--gold);
  font-weight: 900;
}

.mine-network-stats { margin-top: 12px; }
.mine-network-stats div { background: #18212a; }

.mine-crew-pipeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 12px 0;
}

.mine-crew-pipeline::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 14%;
  right: 14%;
  top: 16px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  opacity: .42;
}

.mine-crew-pipeline > div {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 9px 5px;
  text-align: center;
  background: #151e26;
}

.mine-crew-pipeline i {
  display: block;
  width: 15px;
  height: 15px;
  margin: 0 auto 6px;
  border: 3px solid #25333e;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(63, 225, 244, .45);
}

.mine-crew-pipeline > div:last-child i { background: var(--gold); box-shadow: 0 0 10px rgba(255, 201, 40, .45); }
.mine-crew-pipeline span { display: block; color: var(--muted); font-size: 9px; font-weight: 900; }
.mine-crew-pipeline strong { display: block; margin-top: 4px; font-size: 18px; }

.mine-crew-rewards {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.mine-crew-rewards > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px;
  background: #151e26;
}

.mine-crew-rewards span { color: var(--muted); font-size: 10px; font-weight: 900; }
.mine-crew-rewards strong { color: var(--gold); font-size: 13px; text-align: right; }

@media (max-width: 980px) {
  .mine-app { display: block; }
  .mine-stage { min-height: calc(100svh - 58px); }
  .mine-control {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: min(72svh, 680px);
    border-width: 1px 0 0;
    border-radius: 7px 7px 0 0;
    transform: translateY(calc(100% + 12px));
    box-shadow: 0 -18px 50px rgba(0, 0, 0, .55);
  }
  .mine-app.terminal-open .mine-control { transform: translateY(0); }
  .mine-terminal-head { min-height: 56px; }
  .mine-panel { min-height: 0; }
}

@media (max-width: 640px) {
  .mine-stage { min-height: calc(100svh - 58px); }
  .mine-stage-head { top: 8px; left: 8px; right: 8px; }
  .mine-stage-head > div:first-child {
    max-width: calc(100% - 128px);
    padding: 7px 9px;
  }
  .mine-stage-head h1 { font-size: 17px; }
  .mine-stage-head span { font-size: 8px; }
  .mine-scene-tools { max-width: 172px; gap: 4px; }
  .mine-scene-tools button { width: 44px; height: 44px; }
  .mine-scene-tools .mine-tool-label { min-width: 55px; padding: 0 7px; font-size: 8px; }
  .mine-production-strip {
    top: 76px;
    left: 8px;
    right: 8px;
    transform: none;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .mine-production-strip > div { min-width: 0; padding: 6px; }
  .mine-production-strip span { font-size: 8px; }
  .mine-production-strip strong { font-size: 10px; overflow-wrap: anywhere; }
  .mine-power-badge { top: 130px; right: 8px; min-width: 145px; }
  .mine-explore-hud { left: 8px; bottom: 119px; width: min(190px, calc(100% - 152px)); padding: 8px 9px; }
  .mine-explore-hud strong { font-size: 12px; }
  .mine-explore-hud small { display: none; }
  .mine-mobile-pad { right: 8px; bottom: 112px; grid-template-columns: repeat(3, 44px); grid-template-rows: repeat(3, 44px); }
  .mine-command-dock { left: 8px; right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); width: auto; min-height: 96px; }
  .mine-command-dock .mine-command { min-height: 40px; }
  .mine-balance strong { font-size: 14px; }
  .mine-map-panel { top: 104px; left: 8px; right: 8px; bottom: 112px; width: auto; }
  .mine-map { height: calc(100% - 82px); min-height: 250px; }
  .mine-map-station { width: 58px; min-height: 44px; font-size: 8px; }
  .mine-tabs button { min-height: 48px; }
  .mine-panel { padding: 14px; }
  .mine-network-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mine-network-stats div { padding: 8px 5px; }
  .mine-network-stats span { font-size: 8px; }
}

@media (max-height: 680px) and (min-width: 641px) {
  .mine-production-strip { top: 76px; }
  .mine-power-badge { top: 76px; }
  .mine-explore-hud { bottom: 96px; }
  .mine-command-dock { min-height: 62px; bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Factory wallet terminal */
.mine-wallet-panel {
  --wallet-cyan: #44dbea;
  --wallet-gold: #f2bd35;
  --wallet-green: #64d989;
  --wallet-red: #ff746f;
  padding-top: 0;
}

.mine-wallet-hero {
  margin: 0 -18px;
  padding: 17px 18px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: #10171d;
}

.mine-wallet-hero-head,
.mine-wallet-tools,
.mine-funding-heading,
.mine-deposit-card > header,
.mine-deposit-network,
.mine-deposit-card > footer {
  display: flex;
  align-items: center;
}

.mine-wallet-hero-head,
.mine-funding-heading,
.mine-deposit-card > header,
.mine-deposit-card > footer {
  justify-content: space-between;
  gap: 12px;
}

.mine-wallet-hero-head span,
.mine-funding-heading span,
.mine-deposit-network small {
  display: block;
  color: var(--wallet-gold);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0;
}

.mine-wallet-hero-head h2 {
  margin: 3px 0 0;
  font-size: 20px;
}

.mine-wallet-tools { gap: 6px; }
.mine-wallet-tools > span {
  margin-right: 3px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0;
}

.mine-wallet-hero .mine-address-line {
  margin: 12px 0 10px;
  border: 1px solid rgba(68, 219, 234, .22);
  border-left: 3px solid var(--wallet-cyan);
  border-radius: 4px;
  background: #0b1116;
}

.mine-wallet-hero .mine-wallet-balances {
  grid-template-columns: 1.25fr .85fr .65fr;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .08);
}

.mine-wallet-hero .mine-wallet-balances > div {
  min-height: 73px;
  padding: 11px 10px;
  background: #172027;
}

.mine-wallet-hero .mine-wallet-balances > div.primary {
  border-left: 3px solid var(--wallet-gold);
  background: #1c2224;
}

.mine-wallet-hero .mine-wallet-balances strong {
  font-size: 18px;
  line-height: 1.1;
}

.mine-wallet-hero .mine-wallet-balances small {
  display: block;
  margin-top: 5px;
  color: #73818b;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0;
}

.mine-wallet-hero .mine-wallet-capacity { margin-bottom: 0; }

.mine-wallet-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 14px 0 0;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 5px;
  background: #0d1318;
  overflow: hidden;
}

.mine-wallet-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
  font-weight: 900;
}

.mine-wallet-tabs button + button { border-left: 1px solid rgba(255, 255, 255, .08); }
.mine-wallet-tabs button.active {
  color: #071014;
  background: var(--wallet-gold);
}

.mine-wallet-subpanel { padding-top: 14px; }
.mine-wallet-subpanel:not(.active) { display: none; }

.mine-wallet-panel .mine-funding-console,
.mine-wallet-panel .mine-power-console {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.mine-funding-heading { margin-bottom: 12px; }
.mine-funding-heading strong {
  display: block;
  margin-top: 2px;
  font-family: "Audiowide", sans-serif;
  font-size: 15px;
}

.mine-funding-heading > i {
  width: 42px;
  height: 22px;
  position: relative;
  border: 1px solid rgba(68, 219, 234, .35);
  border-radius: 3px;
  background: #0b171a;
}

.mine-funding-heading > i::before,
.mine-funding-heading > i::after {
  content: "";
  position: absolute;
  top: 5px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--wallet-cyan);
  border-radius: 50%;
}

.mine-funding-heading > i::before { left: 7px; }
.mine-funding-heading > i::after { right: 7px; border-color: var(--wallet-gold); }

.mine-chain-picker {
  display: block;
  margin: 0 0 10px;
}

.mine-chain-picker > span,
.mine-funding-exact label > span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0;
}

.mine-chain-picker > div {
  min-height: 62px;
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(68, 219, 234, .25);
  border-left: 3px solid var(--wallet-cyan);
  border-radius: 5px;
  padding: 9px 12px 9px 10px;
  background: #111a20;
}

.mine-chain-picker > div::after {
  content: "\25BE";
  color: var(--wallet-cyan);
  font-size: 14px;
  text-align: right;
}

.mine-chain-picker img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
}

.mine-chain-picker strong,
.mine-chain-picker small { display: block; }
.mine-chain-picker strong { font-size: 13px; }
.mine-chain-picker small { margin-top: 3px; color: var(--muted); font-size: 8px; }

.mine-chain-picker select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.mine-funding-exact {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 8px;
  margin-bottom: 10px;
}

.mine-funding-exact label { min-width: 0; margin: 0; }
.mine-funding-exact input {
  min-height: 42px;
  margin: 0;
  border-color: rgba(242, 189, 53, .26);
  background: #0b1116;
}

.mine-funding-minimum {
  min-height: 51px;
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  margin: 10px 0;
  padding: 8px 10px;
  border: 1px solid rgba(242, 189, 53, .2);
  border-radius: 5px;
  background: #1b1a13;
}

.mine-funding-minimum > i {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 2px solid var(--wallet-gold);
  border-radius: 50%;
  color: var(--wallet-gold);
  font: 900 13px/1 "Space Grotesk", sans-serif;
}

.mine-funding-minimum strong,
.mine-funding-minimum span { display: block; }
.mine-funding-minimum strong { color: var(--wallet-gold); font-size: 10px; }
.mine-funding-minimum span { margin-top: 2px; color: var(--muted); font-size: 8px; line-height: 1.35; }

.mine-funding-create { width: 100%; min-height: 44px; }
.mine-funding-status {
  min-height: 18px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}
.mine-funding-status.bad { color: var(--wallet-red); }

.mine-deposit-card {
  margin-top: 13px;
  border: 1px solid rgba(68, 219, 234, .28);
  border-radius: 7px;
  background: #0d151a;
  overflow: hidden;
}

.mine-deposit-card > header,
.mine-deposit-card > footer {
  min-height: 49px;
  padding: 8px 10px;
  background: #131d23;
}

.mine-deposit-card > header { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.mine-deposit-card > footer { border-top: 1px solid rgba(255, 255, 255, .08); }
.mine-deposit-network { gap: 9px; }
.mine-deposit-network img { width: 30px; height: 30px; border-radius: 50%; object-fit: contain; background: #fff; }
.mine-deposit-network strong { display: block; margin-top: 2px; font-size: 11px; }

.mine-route-phase {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--wallet-gold);
  font-size: 8px;
  font-weight: 900;
}
.mine-route-phase i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 9px currentColor; }
.mine-route-phase.processing { color: var(--wallet-cyan); }
.mine-route-phase.complete { color: var(--wallet-green); }
.mine-route-phase.attention { color: var(--wallet-red); }
.mine-route-phase.closed { color: var(--muted); }

.mine-deposit-body {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
}
.mine-deposit-card.terminal .mine-deposit-body { grid-template-columns: 1fr; }
.mine-deposit-card.terminal .mine-deposit-instructions { padding: 3px 2px; }

.mine-deposit-qr {
  width: 92px;
  aspect-ratio: 1;
  padding: 6px;
  border-radius: 4px;
  background: #f4fbf7;
}
.mine-deposit-qr img { display: block; width: 100%; height: 100%; object-fit: contain; }
.mine-deposit-instructions span { color: var(--wallet-cyan); font-size: 9px; font-weight: 900; }
.mine-deposit-instructions strong { display: block; margin-top: 4px; color: var(--wallet-gold); font-size: 15px; line-height: 1.2; }
.mine-deposit-instructions p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.4; }

.mine-deposit-address {
  width: calc(100% - 24px);
  min-height: 43px;
  margin: 0 12px 9px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(68, 219, 234, .24);
  border-radius: 4px;
  padding: 8px 9px;
  color: var(--wallet-cyan);
  background: #090f13;
  text-align: left;
}
.mine-deposit-address span { min-width: 0; font: 9px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.mine-deposit-address b { color: var(--wallet-gold); font-size: 8px; }

.mine-route-warning {
  margin: 0 12px 11px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}

.mine-route-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 12px 9px 10px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.mine-route-progress > div { position: relative; display: grid; justify-items: center; gap: 5px; color: #6f7c84; font-size: 7px; font-weight: 900; }
.mine-route-progress > div::before { content: ""; position: absolute; z-index: 0; top: 6px; right: 50%; width: 100%; height: 2px; background: #29343b; }
.mine-route-progress > div:first-child::before { display: none; }
.mine-route-progress i { width: 14px; height: 14px; z-index: 1; border: 3px solid #29343b; border-radius: 50%; background: #0d151a; }
.mine-route-progress > div.done { color: var(--wallet-green); }
.mine-route-progress > div.done::before { background: var(--wallet-green); }
.mine-route-progress > div.done i { border-color: var(--wallet-green); background: var(--wallet-green); }
.mine-route-progress > div.current { color: var(--wallet-cyan); }
.mine-route-progress > div.current i { border-color: var(--wallet-cyan); box-shadow: 0 0 10px rgba(68, 219, 234, .55); }

.mine-allocation-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, .07);
  background: #11191f;
}
.mine-allocation-strip span { min-width: 0; padding: 8px 4px; color: var(--muted); font-size: 6px; font-weight: 900; text-align: center; }
.mine-allocation-strip span + span { border-left: 1px solid rgba(255, 255, 255, .07); }
.mine-allocation-strip b { display: block; margin-bottom: 2px; color: var(--wallet-gold); font-size: 10px; }
.mine-allocation-strip span:first-child b { color: var(--wallet-green); }

.mine-deposit-card > footer span { color: var(--muted); font-size: 8px; }
.mine-deposit-card > footer button {
  min-height: 29px;
  border: 1px solid rgba(255, 116, 111, .28);
  border-radius: 4px;
  padding: 0 8px;
  color: #ffaaa6;
  background: transparent;
  font-size: 8px;
  font-weight: 900;
}
.mine-deposit-card > footer button:disabled { display: none; }

.mine-wallet-subpanel .mine-power-console {
  padding: 15px;
  border: 1px solid color-mix(in srgb, var(--power-accent) 28%, #303b43);
  border-radius: 6px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--power-accent) 5%, #141a1e), #11171c 58%),
    #141a1e;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 14px 28px rgba(0, 0, 0, .18);
}

.mine-wallet-subpanel .mine-orders-title {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.mine-wallet-subpanel .mine-order-row {
  min-height: 62px;
  align-content: center;
  border: 1px solid rgba(255, 255, 255, .08);
  border-left: 3px solid var(--wallet-cyan);
  border-radius: 4px;
  background: #121a20;
}
.mine-order-row a { color: var(--wallet-cyan); font-weight: 900; text-decoration: none; }
.mine-wallet-tools .working { animation: mine-wallet-spin .8s linear infinite; }

@keyframes mine-wallet-spin { to { transform: rotate(360deg); } }
.mine-order-row.complete,
.mine-order-row.completed { border-left-color: var(--wallet-green); }
.mine-order-row.attention,
.mine-order-row.failed,
.mine-order-row.manual_review { border-left-color: var(--wallet-red); }

@media (max-width: 640px) {
  .mine-wallet-hero { margin-inline: -14px; padding-inline: 14px; }
  .mine-wallet-hero .mine-wallet-balances { grid-template-columns: 1.25fr .85fr .7fr; }
  .mine-wallet-hero .mine-wallet-balances > div { min-height: 67px; padding: 9px 7px; }
  .mine-wallet-hero .mine-wallet-balances strong { font-size: 14px; }
  .mine-wallet-tools > span { display: none; }
  .mine-funding-exact { grid-template-columns: 1fr; }
  .mine-deposit-body { grid-template-columns: 78px minmax(0, 1fr); gap: 9px; padding: 10px; }
  .mine-deposit-qr { width: 78px; }
  .mine-deposit-instructions strong { font-size: 13px; }
  .mine-allocation-strip span { font-size: 5px; }
  .mine-allocation-strip b { font-size: 9px; }
  .mine-wallet-subpanel .mine-power-console { padding: 12px; }
  .mine-power-console-head { gap: 8px; }
  .mine-power-console-head > div:first-child strong { font-size: 9px; }
  .mine-power-state { min-width: 72px; padding-inline: 6px; }
  .mine-battery-display { min-height: 94px; grid-template-columns: 1.08fr .92fr; }
  .mine-battery-display > div { padding: 9px; }
  #powerDigitalPercent { font-size: 36px; }
  #powerTimeValue { font-size: 12px; }
  .mine-battery-body { height: 45px; gap: 3px; }
  .mine-battery-body::after { height: 21px; top: 8px; }
  .mine-power-telemetry > div { padding-inline: 6px; }
  .mine-power-telemetry strong { font-size: 9px; }
  .mine-power-copy { grid-template-columns: minmax(0, 1fr); }
  .mine-power-copy strong { max-width: none; text-align: left; }
}

/* Foundry responsive corrections */
@media (max-width: 980px) {
  .mine-control { min-height: 0; }
}

#mineStreakButton {
  color: var(--gold);
  border: 1px solid rgba(255, 201, 40, .42);
  background: rgba(255, 201, 40, .06);
  box-shadow: none;
}

.mine-production-strip strong,
.mine-balance strong,
.mine-power-badge strong,
.mine-wallet-balances strong { font-variant-numeric: tabular-nums; }

@media (min-width: 641px) and (max-width: 910px) {
  .mine-production-strip {
    left: 24px;
    right: 224px;
    transform: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .mine-production-strip > div { min-width: 0; }
}

@media (max-width: 980px) and (min-width: 641px) {
  .mine-stage { min-height: calc(100svh - 68px); }
  .mine-control { min-height: 0; }
}

@media (max-width: 640px) {
  .mine-stage {
    --dock-h: 105px;
    --hud-gap: 12px;
    --bottom-inset: max(8px, env(safe-area-inset-bottom));
  }
  .mine-scene-tools { flex-wrap: nowrap; }
  #mineCameraLeft,
  #mineCameraRight { display: none; }
  .mine-power-badge { top: 130px; min-height: 44px; }
  .mine-power-badge small { display: none; }
  .mine-explore-hud {
    bottom: calc(var(--bottom-inset) + var(--dock-h) + var(--hud-gap));
    width: min(190px, calc(100% - 162px));
  }
  .mine-mobile-pad {
    left: auto;
    right: 8px;
    bottom: calc(var(--bottom-inset) + var(--dock-h) + var(--hud-gap));
  }
  .mine-command-dock {
    bottom: var(--bottom-inset);
    height: var(--dock-h);
    min-height: var(--dock-h);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 43px 40px;
    gap: 6px;
  }
  .mine-command-dock .mine-balance { width: auto; min-width: 0; }
  .mine-command-dock .mine-balance img { width: 35px; height: 35px; }
  .mine-command-dock .mine-balance strong { font-size: 15px; }
  .mine-command-dock .mine-claim-readout > span { font-size: 8px; }
  #mineStreakButton { grid-column: 2; grid-row: 1; }
  #mineClaimButton { grid-column: 1 / -1; grid-row: 2; }
  .mine-map-panel {
    bottom: calc(var(--bottom-inset) + var(--dock-h) + var(--hud-gap));
    display: flex;
    flex-direction: column;
  }
  .mine-map { height: auto; min-height: 0; flex: none; }
  .machine-inspector {
    bottom: calc(var(--bottom-inset) + var(--dock-h) + var(--hud-gap));
    max-height: calc(100svh - var(--dock-h) - 150px);
  }
  .mine-app.inspector-open .mine-mobile-pad,
  .mine-app.inspector-open .mine-explore-hud {
    opacity: 0;
    pointer-events: none;
  }
}

@media (pointer: coarse), (hover: none) {
  .mine-mobile-pad { display: grid; left: auto; right: 24px; }
  .mine-mobile-pad button { min-width: 44px; min-height: 44px; }
  .mine-scene-tools button,
  .mine-terminal-head button,
  .mine-map-panel header button,
  .machine-inspector > button:first-child,
  .mine-modal-close { min-width: 44px; min-height: 44px; }
  .mine-controls-legend { display: none; }
}

@media (pointer: coarse) and (max-width: 640px), (hover: none) and (max-width: 640px) {
  .mine-mobile-pad { right: 8px; }
}

@media (max-width: 360px) {
  .mine-stage-head span { display: none; }
  .mine-stage-head h1 { font-size: 15px; }
  .mine-scene-tools .mine-tool-label { min-width: 49px; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .mine-control {
    top: 6px;
    right: 6px;
    bottom: 6px;
    width: min(460px, calc(100vw - 12px));
    height: auto;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 7px;
    transform: translateX(calc(100% + 18px));
  }
  .mine-app.terminal-open .mine-control { transform: translateX(0); }
  .mine-map-panel {
    top: 8px;
    right: 8px;
    bottom: 76px;
    left: auto;
    width: min(430px, calc(100vw - 16px));
    display: flex;
    flex-direction: column;
  }
  .mine-map { height: auto; min-height: 0; flex: none; }
  .mine-modal { padding: 12px; }
  .mine-modal > section {
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .machine-inspector {
    top: 8px;
    right: 8px;
    bottom: 76px;
    left: auto;
    width: min(360px, calc(100vw - 16px));
    max-height: none;
    overflow-y: auto;
  }
}

/* Premium Foundry asset system */
@media (min-width: 981px) {
  .mine-control { width: min(500px, calc(100vw - 28px)); }
}

.mine-shop-grid { gap: 12px; }

.mine-shop-card {
  position: relative;
  border-color: rgba(255, 255, 255, .12);
  background: #131b22;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .2), inset 0 1px rgba(255, 255, 255, .025);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.mine-shop-card::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 28px;
  bottom: 46px;
  left: 0;
  width: 2px;
  background: var(--item-color);
  box-shadow: 0 0 12px color-mix(in srgb, var(--item-color) 55%, transparent);
}

.mine-shop-card:hover:not(.locked) {
  border-color: color-mix(in srgb, var(--item-color) 45%, rgba(255, 255, 255, .16));
  transform: translateY(-1px);
  box-shadow: 0 11px 24px rgba(0, 0, 0, .26), inset 0 1px rgba(255, 255, 255, .04);
}

.mine-shop-card-head {
  background: #10171e;
  box-shadow: inset 0 -1px rgba(255, 255, 255, .025);
}

.mine-shop-card-head .rarity {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mine-shop-card-head .rarity::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--item-color);
  transform: rotate(45deg);
  box-shadow: 0 0 7px var(--item-color);
}

.mine-shop-card-body {
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
}

.mine-shop-copy h3 { font-size: 18px; }
.mine-shop-copy p { min-height: 42px; }
.mine-shop-card-foot { background: #10171e; }
.mine-shop-price strong { font-size: 17px; }

.mine-item-art {
  --item-color: var(--cyan);
  position: relative;
  isolation: isolate;
  width: 132px;
  height: 112px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--item-color) 30%, #36444f);
  border-radius: 4px;
  background: #0a1117;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025), inset 0 -24px 38px rgba(0, 0, 0, .38);
  perspective: 260px;
}

.mine-item-art::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  height: auto;
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: .72;
}

.mine-item-art::after {
  content: "";
  position: absolute;
  z-index: 8;
  top: 0;
  bottom: 0;
  left: -42%;
  width: 22%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
  animation: assetSweep 7s ease-in-out infinite;
}

.mine-item-art .art-grid {
  position: absolute;
  z-index: 1;
  left: 12px;
  right: 12px;
  bottom: 18px;
  height: 46px;
  border: 1px solid color-mix(in srgb, var(--item-color) 25%, #263641);
  transform: rotateX(68deg);
  background:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 9px 9px;
}

.mine-item-art .art-stage {
  position: absolute;
  z-index: 2;
  left: 19px;
  right: 19px;
  bottom: 13px;
  height: 8px;
  border: 1px solid #44525e;
  border-top-color: color-mix(in srgb, var(--item-color) 55%, #687782);
  background: #1b252d;
  box-shadow: 0 3px 0 #070b0f, 0 0 13px color-mix(in srgb, var(--item-color) 18%, transparent);
  transform: skewX(-15deg);
}

.machine-shadow,
.part-shadow {
  position: absolute;
  z-index: 2;
  left: 30px;
  right: 30px;
  bottom: 15px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .7);
  filter: blur(3px);
}

.machine-chassis {
  position: absolute;
  z-index: 3;
  left: 36px;
  bottom: 20px;
  width: 60px;
  height: 58px;
  border: 2px solid #52616c;
  clip-path: polygon(12% 0, 88% 0, 100% 13%, 96% 100%, 4% 100%, 0 13%);
  background: #28343d;
  box-shadow: inset 0 0 0 4px #151e25, inset 0 -13px color-mix(in srgb, var(--item-color) 16%, #172129);
}

.machine-chassis::before,
.machine-chassis::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  width: 4px;
  background: #65737d;
}

.machine-chassis::before { left: 7px; }
.machine-chassis::after { right: 7px; }

.machine-tower {
  position: absolute;
  z-index: 4;
  bottom: 24px;
  width: 17px;
  height: 45px;
  border: 2px solid #5a6872;
  background: #1b252d;
  box-shadow: inset 0 7px var(--item-color), inset 0 -8px #10171c;
}

.machine-tower.left { left: 25px; }
.machine-tower.right { right: 25px; }

.machine-reactor {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 39px;
  width: 29px;
  height: 29px;
  border: 5px solid #687681;
  border-top-color: var(--item-color);
  border-radius: 50%;
  background: color-mix(in srgb, var(--item-color) 34%, #111920);
  box-shadow: 0 0 15px color-mix(in srgb, var(--item-color) 62%, transparent), inset 0 0 8px rgba(0, 0, 0, .7);
  transform: translateX(-50%);
}

.machine-reactor::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px solid color-mix(in srgb, var(--item-color) 75%, white);
  border-radius: 50%;
}

.machine-ring {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 33px;
  border: 2px solid color-mix(in srgb, var(--item-color) 75%, #dfeeff);
  border-left-color: transparent;
  border-radius: 50%;
  transform: translateX(-50%);
}

.machine-ring.outer { width: 42px; height: 42px; opacity: .35; }
.machine-ring.inner { top: 38px; width: 32px; height: 32px; animation: assetSpin 5s linear infinite; }

.machine-vent {
  position: absolute;
  z-index: 5;
  left: 49px;
  bottom: 25px;
  width: 34px;
  height: 9px;
  border-top: 2px solid #70808a;
  border-bottom: 2px solid #70808a;
  background: repeating-linear-gradient(90deg, #11181e 0 4px, #4c5a64 4px 6px);
}

.machine-cable {
  position: absolute;
  z-index: 3;
  top: 27px;
  width: 13px;
  height: 38px;
  border: 3px solid #566570;
  border-bottom: 0;
}

.machine-cable.left { left: 17px; border-right: 0; }
.machine-cable.right { right: 17px; border-left: 0; }

.machine-spine,
.machine-pylon,
.machine-beacon {
  position: absolute;
  z-index: 5;
}

.machine-spine {
  display: none;
  left: 62px;
  top: 15px;
  width: 8px;
  height: 25px;
  border: 2px solid #64737e;
  background: #172129;
  box-shadow: inset 0 7px var(--item-color);
}

.machine-pylon {
  display: none;
  top: 20px;
  width: 8px;
  height: 45px;
  border: 2px solid #6b7983;
  background: #1a242c;
}

.machine-pylon.left { left: 15px; transform: rotate(-8deg); }
.machine-pylon.right { right: 15px; transform: rotate(8deg); }

.machine-beacon {
  display: none;
  left: 59px;
  top: 7px;
  width: 14px;
  height: 14px;
  border: 3px solid #677681;
  border-radius: 50%;
  background: var(--item-color);
  box-shadow: 0 0 14px color-mix(in srgb, var(--item-color) 70%, transparent);
}

.machine-tier-mark,
.part-mark,
.bay-mark,
.boost-mark {
  position: absolute;
  z-index: 9;
  right: 5px;
  bottom: 4px;
  color: color-mix(in srgb, var(--item-color) 78%, white);
  font-family: "Space Grotesk", sans-serif;
  font-size: 8px;
  font-weight: 900;
}

.art-tier-1 .machine-tower.right,
.art-tier-1 .machine-ring.outer { display: none; }
.art-tier-1 .machine-tower.left { left: 27px; height: 34px; }
.art-tier-1 .machine-chassis { left: 39px; width: 54px; height: 51px; }
.art-tier-1 .machine-cable.right { display: none; }

.art-tier-2 .machine-chassis { left: 32px; width: 68px; }
.art-tier-2 .machine-tower { height: 52px; }
.art-tier-2 .machine-reactor { border-color: #63736e; border-top-color: var(--item-color); }
.art-tier-2 .machine-spine { display: block; height: 20px; }

.art-tier-3 .machine-chassis { left: 29px; width: 74px; height: 62px; }
.art-tier-3 .machine-tower { bottom: 25px; width: 20px; height: 58px; }
.art-tier-3 .machine-tower.left { left: 20px; }
.art-tier-3 .machine-tower.right { right: 20px; }
.art-tier-3 .machine-reactor { width: 34px; height: 34px; top: 35px; }
.art-tier-3 .machine-spine,
.art-tier-3 .machine-pylon { display: block; }
.art-tier-3 .machine-pylon { top: 32px; height: 35px; }

.art-tier-4 .machine-chassis { left: 27px; width: 78px; height: 64px; border-color: #7a645d; }
.art-tier-4 .machine-tower { width: 22px; height: 62px; border-color: #84685f; }
.art-tier-4 .machine-tower.left { left: 17px; }
.art-tier-4 .machine-tower.right { right: 17px; }
.art-tier-4 .machine-ring.outer { width: 50px; height: 50px; top: 28px; opacity: .75; }
.art-tier-4 .machine-spine,
.art-tier-4 .machine-pylon,
.art-tier-4 .machine-beacon { display: block; }
.art-tier-4 .machine-pylon { border-color: color-mix(in srgb, var(--item-color) 48%, #6b7983); }

.art-tier-5 .machine-chassis { left: 23px; width: 86px; height: 68px; border-color: color-mix(in srgb, var(--item-color) 60%, #a5b3bd); }
.art-tier-5 .machine-tower { width: 24px; height: 68px; border-color: color-mix(in srgb, var(--item-color) 48%, #74838d); }
.art-tier-5 .machine-tower.left { left: 12px; }
.art-tier-5 .machine-tower.right { right: 12px; }
.art-tier-5 .machine-reactor { top: 30px; width: 41px; height: 41px; border-width: 6px; }
.art-tier-5 .machine-ring.outer { top: 21px; width: 61px; height: 61px; opacity: .72; }
.art-tier-5 .machine-ring.inner { top: 28px; width: 47px; height: 47px; }
.art-tier-5 .machine-spine,
.art-tier-5 .machine-pylon,
.art-tier-5 .machine-beacon { display: block; }
.art-tier-5 .machine-spine { top: 10px; height: 29px; border-color: var(--item-color); }
.art-tier-5 .machine-pylon { top: 15px; height: 56px; border-color: var(--item-color); box-shadow: 0 0 9px color-mix(in srgb, var(--item-color) 34%, transparent); }
.art-tier-5 .machine-beacon { top: 1px; animation: assetPulse 1.8s ease-in-out infinite; }

.art-part .part-frame,
.art-part .part-shell,
.art-part .part-detail,
.art-part .part-energy {
  position: absolute;
  z-index: 4;
}

.part-alloy .part-frame {
  left: 28px;
  top: 23px;
  width: 76px;
  height: 63px;
  border: 8px solid #6d7b85;
  clip-path: polygon(12% 0, 88% 0, 100% 14%, 100% 86%, 88% 100%, 12% 100%, 0 86%, 0 14%);
  box-shadow: inset 0 0 0 3px #202a32;
}

.part-alloy .part-shell {
  left: 60px;
  top: 25px;
  width: 12px;
  height: 58px;
  background: #87949d;
  box-shadow: -27px 24px 0 -3px #87949d, 27px 24px 0 -3px #87949d;
}

.part-alloy .part-detail.one,
.part-alloy .part-detail.two {
  top: 34px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--item-color);
}
.part-alloy .part-detail.one { left: 36px; }
.part-alloy .part-detail.two { right: 36px; }

.part-circuit .part-frame {
  left: 31px;
  top: 22px;
  width: 70px;
  height: 62px;
  border: 4px solid #4e6570;
  background: #12303a;
  transform: skewY(-4deg);
  box-shadow: inset 0 0 0 3px #081b22;
}

.part-circuit .part-shell {
  left: 50px;
  top: 35px;
  width: 32px;
  height: 29px;
  border: 3px solid #89a1ab;
  background: #172229;
}

.part-circuit .part-detail.one,
.part-circuit .part-detail.two {
  width: 50px;
  height: 4px;
  border-left: 3px solid var(--item-color);
  border-right: 3px solid var(--item-color);
  background: var(--item-color);
  box-shadow: 0 13px var(--item-color), 0 26px var(--item-color);
}
.part-circuit .part-detail.one { left: 19px; top: 29px; }
.part-circuit .part-detail.two { right: 19px; top: 35px; transform: rotate(90deg); }
.part-circuit .part-energy { left: 60px; top: 45px; width: 12px; height: 12px; background: var(--item-color); box-shadow: 0 0 14px var(--item-color); }

.part-coolant .part-frame {
  left: 43px;
  top: 17px;
  width: 46px;
  height: 72px;
  border: 6px solid #667580;
  border-radius: 20px 20px 12px 12px;
  background: #15242a;
  box-shadow: inset 0 -34px color-mix(in srgb, var(--item-color) 50%, #16313a);
}
.part-coolant .part-shell { left: 49px; top: 26px; width: 34px; height: 9px; border-top: 3px solid #9daab2; border-bottom: 3px solid #9daab2; }
.part-coolant .part-detail.one { left: 57px; top: 9px; width: 18px; height: 13px; border: 4px solid #65737e; background: #11191f; }
.part-coolant .part-detail.two { left: 54px; top: 59px; width: 24px; height: 5px; background: rgba(255, 255, 255, .62); transform: rotate(-15deg); }
.part-coolant .part-energy { left: 59px; top: 67px; width: 14px; height: 14px; border-radius: 50%; background: var(--item-color); box-shadow: 0 0 15px var(--item-color); }

.part-core .part-frame {
  left: 35px;
  top: 18px;
  width: 62px;
  height: 62px;
  border: 5px solid #596874;
  border-left-color: var(--item-color);
  border-radius: 50%;
  animation: assetSpinFlat 7s linear infinite;
}
.part-core .part-shell { left: 51px; top: 27px; width: 30px; height: 48px; background: var(--item-color); clip-path: polygon(50% 0, 100% 30%, 78% 100%, 22% 100%, 0 30%); filter: drop-shadow(0 0 10px var(--item-color)); }
.part-core .part-detail.one,
.part-core .part-detail.two { top: 44px; width: 17px; height: 4px; background: #9aa8b2; }
.part-core .part-detail.one { left: 25px; }
.part-core .part-detail.two { right: 25px; }
.part-core .part-energy { left: 61px; top: 41px; width: 10px; height: 18px; background: white; opacity: .72; clip-path: polygon(50% 0, 100% 35%, 70% 100%, 30% 100%, 0 35%); }

.part-booster .part-frame {
  left: 27px;
  top: 26px;
  width: 78px;
  height: 55px;
  border: 5px solid #596773;
  background: #202a32;
  clip-path: polygon(8% 0, 92% 0, 100% 17%, 100% 83%, 92% 100%, 8% 100%, 0 83%, 0 17%);
}
.part-booster .part-shell { left: 44px; top: 36px; width: 44px; height: 35px; border: 4px solid var(--item-color); background: #11191f; box-shadow: 0 0 13px color-mix(in srgb, var(--item-color) 50%, transparent); }
.part-booster .part-detail.one,
.part-booster .part-detail.two { top: 34px; width: 7px; height: 39px; background: repeating-linear-gradient(0deg, #687783 0 4px, #1b242b 4px 7px); }
.part-booster .part-detail.one { left: 20px; }
.part-booster .part-detail.two { right: 20px; }
.part-booster .part-energy { left: 58px; top: 46px; width: 16px; height: 16px; border-radius: 50%; background: var(--item-color); box-shadow: 0 0 16px var(--item-color); }

.art-multiplier .boost-halo {
  position: absolute;
  z-index: 2;
  left: 30px;
  top: 17px;
  width: 72px;
  height: 72px;
  border: 1px solid color-mix(in srgb, var(--item-color) 35%, transparent);
  transform: rotate(45deg);
}

.art-multiplier .boost-ring { z-index: 4; }
.art-multiplier .boost-ring.one { width: 70px; height: 70px; left: 29px; top: 14px; border-width: 3px; }
.art-multiplier .boost-ring.two { width: 45px; height: 45px; left: 42px; top: 27px; border-width: 3px; animation: assetSpinReverse 5s linear infinite; }
.art-multiplier .boost-gem { z-index: 6; left: 55px; top: 34px; filter: drop-shadow(0 0 9px var(--item-color)); }
.art-multiplier .boost-coil { position: absolute; z-index: 5; top: 40px; width: 14px; height: 25px; border: 3px solid #667682; border-radius: 50%; }
.art-multiplier .boost-coil.left { left: 15px; }
.art-multiplier .boost-coil.right { right: 15px; }

.art-expansion .bay-grid {
  z-index: 3;
  inset: 31px 28px 23px;
  transform: rotateX(58deg);
}
.art-expansion .bay-grid i { border-color: #4d5c67; background: #1b252d; }
.art-expansion .bay-grid i:nth-child(-n+3) { border-color: var(--item-color); background: color-mix(in srgb, var(--item-color) 24%, #1b252d); }
.art-expansion.bay-3 .bay-grid i:nth-child(-n+6),
.art-expansion.bay-4 .bay-grid i { border-color: var(--item-color); background: color-mix(in srgb, var(--item-color) 24%, #1b252d); }
.bay-frame { position: absolute; z-index: 4; top: 21px; width: 6px; height: 64px; background: #697782; box-shadow: inset 0 0 0 1px #9aa6ae; }
.bay-frame.left { left: 25px; }
.bay-frame.right { right: 25px; }
.bay-crane { position: absolute; z-index: 4; left: 25px; right: 25px; top: 21px; height: 6px; background: var(--item-color); box-shadow: 0 0 10px color-mix(in srgb, var(--item-color) 45%, transparent); }
.bay-crane::after { content: ""; position: absolute; left: 54%; top: 5px; width: 3px; height: 23px; background: #7a8891; box-shadow: 0 20px 0 2px #252f36; }

.machine-inspector-visual {
  float: left;
  width: 132px;
  margin: 2px 13px 11px 0;
}
.machine-inspector-visual .mine-item-art { width: 132px; height: 112px; }
.machine-inspector-grid { clear: both; }

.mine-list-item .mini-rig {
  border-color: color-mix(in srgb, var(--item-color) 35%, #40505c);
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
    #0d141a;
  background-size: 9px 9px;
}
.mini-rig::before {
  left: 9px;
  right: 9px;
  bottom: 7px;
  height: 30px;
  border: 3px solid #53626e;
  clip-path: polygon(12% 0, 88% 0, 100% 14%, 96% 100%, 4% 100%, 0 14%);
  background: #222e37;
  box-shadow: inset 0 -9px color-mix(in srgb, var(--item-color) 20%, #172129);
}
.mini-rig::after {
  left: 18px;
  right: 18px;
  top: 18px;
  height: 12px;
  border: 3px solid #65747f;
  border-top-color: var(--item-color);
  border-radius: 50%;
  background: color-mix(in srgb, var(--item-color) 35%, #11191f);
}
.mini-rig i { position: absolute; z-index: 3; left: 5px; bottom: 5px; width: 8px; height: 28px; border: 2px solid #55636e; box-shadow: 32px 0 0 -2px #55636e; }
.mini-rig b { position: absolute; z-index: 4; right: 3px; bottom: 2px; color: var(--item-color); font-size: 7px; }
.mini-rig-tier-1 i { display: none; }
.mini-rig-tier-4::after,
.mini-rig-tier-5::after { box-shadow: 0 0 10px var(--item-color); }

.mine-inventory-item {
  background: #131b22;
  box-shadow: inset 0 1px rgba(255, 255, 255, .025), 0 6px 14px rgba(0, 0, 0, .16);
}
.mine-inventory-item .mine-item-art { height: 104px; }
.mine-inventory-item b { border-radius: 4px; box-shadow: 0 4px 10px rgba(0, 0, 0, .35); }

.mine-modal-art { width: 132px; }
.mine-modal-art .mine-item-art { width: 132px; height: 112px; }

/* Premium crew, terminal, and interaction finish */
.mine-shopkeeper {
  min-height: 118px;
  padding: 15px 14px 15px 126px;
  border-color: rgba(255, 201, 40, .42);
  background:
    linear-gradient(105deg, rgba(255, 201, 40, .08), transparent 47%),
    #151d24;
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
}

.mine-shopkeeper::before {
  content: "DEPOT 01";
  position: absolute;
  z-index: 1;
  right: 11px;
  top: 9px;
  color: rgba(255, 255, 255, .11);
  font-family: "Audiowide", sans-serif;
  font-size: 9px;
}

.mine-shopkeeper-portrait {
  left: 12px;
  bottom: 7px;
  width: 100px;
  height: 108px;
  border-color: rgba(255, 201, 40, .45);
  background: #0b1218;
  box-shadow: inset 0 0 24px rgba(63, 225, 244, .07);
}

.mine-shopkeeper-portrait .keeper-grid {
  position: absolute;
  inset: 0;
  opacity: .34;
  background:
    linear-gradient(rgba(81, 230, 255, .13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(81, 230, 255, .13) 1px, transparent 1px);
  background-size: 10px 10px;
}

.mine-shopkeeper-portrait .keeper-head {
  z-index: 3;
  left: 32px;
  top: 20px;
  width: 37px;
  height: 41px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: #d6a17d;
  box-shadow: inset -6px -3px rgba(102, 52, 34, .1);
}

.mine-shopkeeper-portrait .keeper-hair {
  z-index: 4;
  left: 26px;
  top: 10px;
  width: 49px;
  height: 28px;
  border: 2px solid #35414a;
  border-radius: 48% 48% 31% 31%;
  background: #192127;
  clip-path: polygon(4% 0, 96% 0, 100% 72%, 76% 57%, 62% 88%, 42% 62%, 23% 89%, 0 65%);
}

.mine-shopkeeper-portrait .keeper-bun {
  position: absolute;
  z-index: 3;
  left: 18px;
  top: 14px;
  width: 20px;
  height: 20px;
  border: 2px solid #35414a;
  border-radius: 50%;
  background: #192127;
}

.mine-shopkeeper-portrait .keeper-ear {
  position: absolute;
  z-index: 5;
  top: 34px;
  width: 9px;
  height: 13px;
  border: 2px solid #8b6d2c;
  border-radius: 3px;
  background: #e0ae27;
}
.mine-shopkeeper-portrait .keeper-ear.left { left: 26px; }
.mine-shopkeeper-portrait .keeper-ear.right { right: 25px; }

.mine-shopkeeper-portrait .keeper-visor {
  z-index: 6;
  left: 34px;
  top: 35px;
  width: 33px;
  height: 10px;
  border: 2px solid #71818c;
  border-radius: 4px;
  background: #43d8ef;
  box-shadow: 0 0 12px rgba(81, 230, 255, .72), inset 0 2px rgba(255, 255, 255, .5);
}

.mine-shopkeeper-portrait .keeper-body {
  z-index: 2;
  left: 17px;
  bottom: -20px;
  width: 67px;
  height: 68px;
  border: 2px solid #536673;
  border-radius: 22px 22px 0 0;
  background: #38566b;
  box-shadow: inset -10px 0 rgba(11, 18, 24, .18);
}

.mine-shopkeeper-portrait .keeper-collar {
  position: absolute;
  z-index: 4;
  left: 33px;
  top: 56px;
  width: 35px;
  height: 12px;
  border: 3px solid #7b8992;
  border-top: 0;
  border-radius: 0 0 12px 12px;
}

.mine-shopkeeper-portrait .keeper-apron {
  z-index: 4;
  left: 32px;
  bottom: -7px;
  width: 38px;
  height: 50px;
  border-top: 4px solid #f4ce5d;
  background: #d9a929;
}

.mine-shopkeeper-portrait .keeper-badge {
  position: absolute;
  z-index: 6;
  left: 61px;
  top: 73px;
  width: 9px;
  height: 9px;
  border: 2px solid #a98725;
  background: #51e6ff;
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(81, 230, 255, .7);
}

.machine-inspector {
  border-top-color: rgba(255, 201, 40, .7);
  background: rgba(10, 15, 20, .97);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .48), inset 0 1px rgba(255, 255, 255, .04);
}

.machine-inspector-visual {
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .09);
  background: #0b1116;
  box-shadow: inset 0 0 18px rgba(63, 225, 244, .05);
}

.mine-panel.active .mine-shop-card,
.mine-panel.active .mine-boost-node,
.mine-panel.active .mine-inventory-item {
  animation: terminalItemIn .26s ease both;
}

.mine-panel.active > :nth-child(2) { animation-delay: .025s; }
.mine-panel.active > :nth-child(3) { animation-delay: .05s; }

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

@keyframes assetSpin {
  to { transform: translateX(-50%) rotate(360deg); }
}

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

@keyframes assetSpinFlat {
  to { transform: rotate(360deg); }
}

@keyframes assetPulse {
  0%, 100% { opacity: .62; transform: scale(.88); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes assetSweep {
  0%, 62% { left: -42%; opacity: 0; }
  70% { opacity: .55; }
  88%, 100% { left: 124%; opacity: 0; }
}

@media (max-width: 640px) {
  .mine-shopkeeper { min-height: 106px; padding: 12px 10px 12px 105px; }
  .mine-shopkeeper-portrait { transform: scale(.86); transform-origin: left bottom; }
  .mine-shop-card-body { grid-template-columns: 112px minmax(0, 1fr); gap: 10px; padding: 10px; }
  .mine-shop-card-body > .mine-item-art { width: 112px; height: 102px; }
  .mine-shop-copy h3 { font-size: 16px; }
  .mine-shop-copy p { min-height: 36px; }
  .machine-inspector-visual { width: 112px; }
  .machine-inspector-visual .mine-item-art { width: 112px; height: 102px; }
  .mine-modal-art { width: 104px; }
  .mine-modal-art .mine-item-art { width: 104px; height: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  .mine-panel.active .mine-shop-card,
  .mine-panel.active .mine-boost-node,
  .mine-panel.active .mine-inventory-item,
  .mine-item-art::after,
  .machine-ring.inner,
  .part-core .part-frame,
  .art-multiplier .boost-ring.two,
  .art-tier-5 .machine-beacon { animation: none !important; }
}

/* Foundry account and access console */
.mine-nav-links {
  min-width: 0;
  flex: 1;
}

.mine-session-actions {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
}

.mine-auth-button,
.mine-account-button {
  min-height: 40px;
  border: 1px solid rgba(63, 225, 244, .42);
  border-radius: 5px;
  color: var(--text);
  background: #111920;
  font-weight: 800;
}

.mine-auth-button {
  min-width: 88px;
  padding: 0 15px;
  color: #071014;
  background: var(--cyan);
}

.mine-auth-button:hover { background: #8af0fb; }

.mine-account-button {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 190px;
  padding: 4px 10px 4px 5px;
  text-align: left;
}

.mine-account-button:hover,
.mine-account-button[aria-expanded="true"] {
  border-color: var(--cyan);
  background: #18242c;
}

#mineAccountAvatar,
#mineAccountPanelAvatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(255, 201, 40, .62);
  border-radius: 4px;
  color: #151108;
  background: var(--gold);
  font-family: "Audiowide", sans-serif;
  font-size: 13px;
}

.mine-account-button-copy {
  min-width: 0;
  display: grid;
}

.mine-account-button-copy strong,
.mine-account-button-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mine-account-button-copy strong { font-size: 12px; }
.mine-account-button-copy small { color: var(--muted); font-size: 9px; }

.mine-account-panel {
  position: fixed;
  z-index: 72;
  top: 76px;
  right: 14px;
  width: min(372px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-top-color: rgba(63, 225, 244, .68);
  border-radius: 7px;
  background: #10171d;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .58);
}

.mine-account-panel > header,
.mine-account-panel > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: #172129;
}

.mine-account-panel > header div { display: grid; gap: 2px; }
.mine-account-panel > header span,
.mine-account-addresses span,
.mine-wallet-approval span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.mine-account-panel > header strong { font-family: "Audiowide", sans-serif; font-size: 12px; }
.mine-account-panel > header button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  background: #0d141a;
  font-size: 22px;
}

.mine-account-identity {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

#mineAccountPanelAvatar { width: 42px; height: 42px; }
.mine-account-identity div { min-width: 0; display: grid; gap: 2px; }
.mine-account-identity strong,
.mine-account-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mine-account-identity small { color: var(--muted); font-size: 11px; }

.mine-account-addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 1px 0;
  background: var(--line);
}

.mine-account-addresses button {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 0;
  border-radius: 0;
  text-align: left;
  color: var(--text);
  background: #111920;
}

.mine-account-addresses button:hover:not(:disabled) { background: #19242c; }
.mine-account-addresses strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; }

.mine-wallet-approval { padding: 14px; }
.mine-wallet-approval > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#mineWalletLockState { color: var(--orange); font-size: 12px; }
#mineWalletLockState.ready { color: var(--lime); }

.mine-unlock-form { margin-top: 12px; }
.mine-unlock-form label,
.mine-auth-form label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.mine-unlock-form > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.mine-unlock-form input,
.mine-auth-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 4px;
  padding: 0 11px;
  color: var(--text);
  background: #080e13;
}

.mine-unlock-form button,
.mine-auth-form > button {
  min-height: 42px;
  border: 1px solid #d9a910;
  border-radius: 4px;
  padding: 0 14px;
  color: #141008;
  background: var(--gold);
  font-weight: 900;
}

.mine-auth-status {
  min-height: 17px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.mine-auth-status.bad { color: var(--danger); }

.mine-account-panel > footer a,
.mine-account-panel > footer button {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 0 13px;
  color: var(--text);
  background: #0d141a;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  line-height: 36px;
}

.mine-account-panel > footer button { color: #ff9099; border-color: rgba(255, 95, 109, .32); line-height: normal; }

.mine-gate {
  position: relative;
  min-height: calc(100svh - 68px);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 28px;
  background: #080c10;
}

.mine-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(63, 225, 244, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 225, 244, .035) 1px, transparent 1px);
  background-size: 42px 42px;
  transform: perspective(520px) rotateX(61deg) scale(1.35) translateY(23%);
  transform-origin: bottom;
}

.mine-gate-world { position: absolute; inset: 0; opacity: .72; pointer-events: none; }
.mine-gate-world::before,
.mine-gate-world::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, .1);
  box-shadow: 0 10px rgba(255, 255, 255, .035), 0 92px rgba(255, 255, 255, .045);
}
.mine-gate-world::before { top: 16%; }
.mine-gate-world::after { bottom: 17%; }
.mine-gate-crane {
  position: absolute;
  top: 8%;
  left: 6%;
  width: 33%;
  height: 10px;
  border: 2px solid #52616a;
  background: #242f36;
  box-shadow: 0 8px 0 #10171c;
}
.mine-gate-crane::before,
.mine-gate-crane::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 8px;
  height: 42vh;
  background: #263139;
}
.mine-gate-crane::before { left: 5%; }
.mine-gate-crane::after { right: 5%; }
.mine-gate-stack {
  position: absolute;
  bottom: 8%;
  width: 88px;
  height: 140px;
  border: 5px solid #263139;
  background: repeating-linear-gradient(0deg, #111920 0 27px, #34414a 28px 31px);
}
.mine-gate-stack.stack-a { left: 3%; }
.mine-gate-stack.stack-b { right: 4%; height: 190px; }
.mine-gate-belt {
  position: absolute;
  right: 7%;
  bottom: 19%;
  width: 27%;
  height: 22px;
  border: 4px solid #2e3b44;
  background: repeating-linear-gradient(90deg, #162027 0 18px, #53626b 19px 21px);
  transform: skewX(-12deg);
}

.mine-gate-shell {
  position: relative;
  z-index: 2;
  width: min(980px, 100%);
  min-height: 570px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-top: 3px solid var(--gold);
  border-radius: 7px;
  overflow: hidden;
  background: rgba(11, 16, 21, .96);
  box-shadow: 0 32px 90px rgba(0, 0, 0, .64);
}

.mine-gate-identity {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 58px;
  overflow: hidden;
  background: #111920;
}

.mine-gate-identity::after {
  content: "";
  position: absolute;
  right: -45px;
  bottom: -45px;
  width: 250px;
  height: 250px;
  border: 38px solid rgba(63, 225, 244, .05);
  border-radius: 50%;
  box-shadow: 0 0 0 20px rgba(255, 201, 40, .025);
}

.mine-gate-emblem {
  position: relative;
  width: 132px;
  height: 132px;
  margin-bottom: 26px;
}

.mine-gate .mine-gate-emblem img {
  position: relative;
  z-index: 2;
  width: 118px;
  height: 118px;
  border: 2px solid rgba(255, 201, 40, .62);
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 14px 14px 0 #0a1116, 14px 14px 0 1px rgba(63, 225, 244, .28);
}

.mine-gate-emblem i {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  width: 22px;
  height: 22px;
  border: 4px solid #111920;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 14px rgba(88, 223, 134, .65);
}

.mine-gate-identity > span { color: var(--cyan); font-size: 11px; font-weight: 900; }
.mine-gate .mine-gate-identity h1 {
  max-width: 430px;
  margin: 10px 0 24px;
  font-family: "Audiowide", sans-serif;
  font-size: 46px;
  line-height: 1.08;
  text-align: left;
}

.mine-gate-wallets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.mine-gate-wallets b,
.mine-gate-wallets span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 0 9px;
  color: var(--muted);
  background: #0b1217;
  font-size: 9px;
  font-weight: 800;
}
.mine-gate-wallets b { color: var(--gold); border-color: rgba(255, 201, 40, .32); }

.mine-auth-console {
  min-width: 0;
  padding: 34px;
  border-left: 1px solid rgba(255, 255, 255, .12);
  background: #0c1217;
}
.mine-auth-console > header { display: grid; gap: 4px; margin-bottom: 22px; }
.mine-auth-console > header span { color: var(--gold); font-size: 9px; font-weight: 900; }
.mine-auth-console > header strong { font-family: "Audiowide", sans-serif; font-size: 17px; }

.mine-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.mine-auth-tabs button {
  min-height: 42px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}
.mine-auth-tabs button.active { color: var(--text); border-bottom-color: var(--cyan); }

.mine-auth-form { display: none; }
.mine-auth-form.active { display: block; }
.mine-auth-form input { margin-bottom: 14px; }
.mine-auth-form > button { width: 100%; margin-top: 4px; }
.mine-gate .mine-auth-form > a {
  display: block;
  width: max-content;
  margin: 14px auto 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
  font-size: 10px;
  font-weight: 700;
}
.mine-auth-form button:disabled,
.mine-unlock-form button:disabled { opacity: .55; cursor: wait; }

#mineClaimButton:disabled { color: #77838b; background: #263139; box-shadow: none; cursor: default; }

@media (max-width: 1180px) {
  .mine-wordmark { display: none; }
  .mine-brand { min-width: auto; }
  .mine-nav { gap: 12px; }
  .mine-mode { display: none; }
}

@media (max-width: 760px) {
  .mine-nav { padding-inline: 10px; }
  .mine-account-button { width: 42px; padding: 4px; }
  .mine-account-button-copy { display: none; }
  .mine-auth-button { min-width: 72px; padding-inline: 10px; font-size: 11px; }
  .mine-gate { padding: 16px; }
  .mine-gate-shell { min-height: 0; grid-template-columns: 1fr; }
  .mine-gate-identity { min-height: 205px; padding: 24px 28px; }
  .mine-gate-emblem { width: 78px; height: 78px; margin-bottom: 12px; }
  .mine-gate .mine-gate-emblem img { width: 68px; height: 68px; box-shadow: 8px 8px 0 #0a1116, 8px 8px 0 1px rgba(63, 225, 244, .28); }
  .mine-gate-emblem i { width: 17px; height: 17px; border-width: 3px; }
  .mine-gate .mine-gate-identity h1 { margin: 6px 0 13px; font-size: 27px; }
  .mine-auth-console { padding: 24px 28px 28px; border-top: 1px solid var(--line); border-left: 0; }
  .mine-auth-console > header { display: none; }
  .mine-gate-stack,
  .mine-gate-belt { opacity: .35; }
}

@media (max-width: 500px) {
  .mine-brand { display: none; }
  .mine-nav-links a { padding-inline: 7px; font-size: 11px; }
  .mine-gate { min-height: calc(100svh - 58px); padding: 24px 9px 9px; place-content: start center; place-items: start center; overflow-y: auto; }
  .mine-gate-shell { width: 100%; }
  .mine-gate-identity { min-height: 174px; padding: 18px 20px; }
  .mine-gate-identity::after { width: 170px; height: 170px; }
  .mine-gate-emblem { width: 58px; height: 58px; margin-bottom: 8px; }
  .mine-gate .mine-gate-emblem img { width: 52px; height: 52px; }
  .mine-gate-emblem i { width: 14px; height: 14px; }
  .mine-gate .mine-gate-identity h1 { margin: 4px 0 9px; font-size: 22px; }
  .mine-gate-wallets b,
  .mine-gate-wallets span { min-height: 24px; padding-inline: 7px; font-size: 8px; }
  .mine-auth-console { padding: 18px 20px 22px; }
  .mine-auth-tabs { margin-bottom: 17px; }
  .mine-auth-form input { min-height: 40px; margin-bottom: 10px; }
  .mine-account-panel { top: 64px; right: 7px; width: calc(100vw - 14px); }
}

@media (max-width: 360px) {
  .mine-auth-button { min-width: 62px; padding-inline: 7px; }
  .mine-account-addresses { grid-template-columns: 1fr; }
}

/* Harbor City MMO layer */
.mmo-status-bar {
  position: absolute;
  z-index: 7;
  top: 18px;
  left: 50%;
  min-width: 260px;
  min-height: 36px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-top: 2px solid var(--cyan);
  padding: 0 12px;
  color: #eef8f6;
  background: rgba(9, 15, 19, .9);
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
  pointer-events: none;
}

.mmo-status-bar > div { display: flex; align-items: center; gap: 6px; }
.mmo-status-bar > div i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px rgba(88, 223, 134, .75); }
.mmo-status-bar span { color: #a8b7bb; font-size: 8px; font-weight: 900; }
.mmo-status-bar strong { font-family: "Audiowide", sans-serif; font-size: 10px; }
.mmo-status-bar > span:last-child { text-align: right; }

.mmo-mission-tracker {
  position: absolute;
  z-index: 7;
  top: 171px;
  left: 24px;
  width: 310px;
  border: 1px solid rgba(255, 201, 40, .3);
  border-left: 4px solid var(--gold);
  padding: 13px 14px 12px;
  color: #f2f6f4;
  background: rgba(9, 15, 19, .92);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .24);
  backdrop-filter: blur(12px);
}

.mmo-mission-tracker header,
.mmo-mission-tracker footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mmo-mission-tracker header span { color: var(--gold); font-size: 9px; font-weight: 900; }
.mmo-mission-tracker header b { color: #9eb0b5; font-size: 9px; }
.mmo-mission-tracker h2 { margin: 7px 0 4px; font-size: 17px; letter-spacing: 0; }
.mmo-mission-tracker p { min-height: 30px; margin: 0; color: #aab8bc; font-size: 10px; line-height: 1.45; }
.mmo-mission-meter { height: 4px; margin: 10px 0; overflow: hidden; background: #293338; }
.mmo-mission-meter i { display: block; width: 0; height: 100%; background: var(--gold); box-shadow: 0 0 8px rgba(255, 201, 40, .55); transition: width .25s ease; }
.mmo-mission-tracker footer { justify-content: flex-start; }
.mmo-mission-tracker footer button {
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 4px;
  padding: 0 12px;
  color: #edf6f4;
  background: #28343a;
  font-size: 9px;
  font-weight: 900;
}
.mmo-mission-tracker footer button:first-child { color: #171108; border-color: var(--gold); background: var(--gold); }

.mmo-action-rail {
  position: absolute;
  z-index: 9;
  top: 50%;
  right: 20px;
  display: grid;
  gap: 6px;
  transform: translateY(-50%);
}
.mmo-action-rail button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 5px;
  color: #eaf5f4;
  background: rgba(12, 19, 23, .92);
  font-family: "Audiowide", sans-serif;
  font-size: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}
.mmo-action-rail button:hover { color: #0b1518; border-color: var(--cyan); background: var(--cyan); }

.mmo-panel {
  position: absolute;
  z-index: 12;
  top: 68px;
  right: 72px;
  bottom: 105px;
  width: min(390px, calc(100% - 96px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid rgba(63, 225, 244, .3);
  border-top: 3px solid var(--cyan);
  color: #edf6f4;
  background: rgba(8, 14, 18, .97);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .48);
  backdrop-filter: blur(18px);
}
.mmo-panel > header { min-height: 58px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255, 255, 255, .1); padding: 10px 14px; }
.mmo-panel > header span { display: block; color: var(--cyan); font-size: 8px; font-weight: 900; }
.mmo-panel > header strong { display: block; margin-top: 3px; font-family: "Audiowide", sans-serif; font-size: 15px; }
.mmo-panel > header button { width: 32px; height: 32px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 4px; color: #eef6f4; background: #202a30; font-size: 18px; }
.mmo-panel-body { min-height: 0; overflow-y: auto; padding: 12px; scrollbar-color: #53636b #10171b; }

.mmo-active-brief,
.mmo-work-order,
.mmo-dailies,
.mmo-lot-card,
.mmo-party-card,
.mmo-trade-card,
.mmo-avatar-editor,
.mmo-lot-settings,
.mmo-furniture,
.mmo-skip-quote {
  margin-bottom: 11px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 5px;
  padding: 13px;
  background: #121b20;
}
.mmo-active-brief { border-left: 3px solid var(--gold); background: #1b1d1a; }
.mmo-active-brief > span,
.mmo-work-order > span,
.mmo-dailies > span,
.mmo-lot-card > span,
.mmo-party-card > span,
.mmo-trade-card > span,
.mmo-lot-settings > span,
.mmo-furniture > span,
.mmo-social-list > span,
.mmo-skip-quote > span { color: var(--gold); font-size: 8px; font-weight: 900; }
.mmo-active-brief h3,
.mmo-work-order h3 { margin: 5px 0; font-size: 16px; }
.mmo-active-brief p,
.mmo-lot-card p,
.mmo-skip-quote p { margin: 3px 0 11px; color: #9eafb4; font-size: 10px; line-height: 1.45; }
.mmo-panel-body button,
.mmo-panel-body select,
.mmo-panel-body input { min-height: 34px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 4px; color: #edf5f3; background: #263239; font-size: 10px; }
.mmo-panel-body button { padding: 0 11px; font-weight: 900; }
.mmo-panel-body button:hover:not(:disabled) { border-color: var(--cyan); color: var(--cyan); }
.mmo-panel-body button:disabled { opacity: .45; cursor: not-allowed; }

.mmo-story-list { display: grid; gap: 5px; }
.mmo-story-row { min-height: 48px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 9px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 4px; padding: 6px 9px; background: #10181d; }
.mmo-story-row > i { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #3d4a50; border-radius: 50%; color: #8fa0a5; font-size: 8px; font-style: normal; font-weight: 900; }
.mmo-story-row div { min-width: 0; }
.mmo-story-row div span { display: block; color: #75878c; font-size: 7px; font-weight: 900; }
.mmo-story-row div strong { display: block; overflow: hidden; margin-top: 2px; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.mmo-story-row > b { color: #829399; font-size: 8px; text-transform: uppercase; }
.mmo-story-row.completed > i { color: #07130b; border-color: var(--lime); background: var(--lime); }
.mmo-story-row.available,
.mmo-story-row.active { border-color: rgba(255, 201, 40, .35); background: #1c1c18; }
.mmo-story-row.available > i,
.mmo-story-row.active > i { color: #181106; border-color: var(--gold); background: var(--gold); }
.mmo-story-row.skipped { opacity: .68; }

.mmo-recipe { display: flex; gap: 6px; margin: 9px 0; }
.mmo-recipe b { flex: 1; border: 1px solid #344248; padding: 7px; color: #a8bbc0; font-size: 8px; text-align: center; }
.mmo-dailies { display: grid; gap: 6px; margin-top: 11px; }
.mmo-dailies div,
.mmo-party-card div { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 7px; font-size: 10px; }
.mmo-dailies div b { color: var(--lime); }

.mmo-lot-card strong { display: block; margin-top: 6px; color: var(--gold); font-family: "Audiowide", sans-serif; font-size: 19px; }
.mmo-destination-list { display: grid; gap: 6px; }
.mmo-destination-list > button { min-height: 54px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; padding: 8px 11px; text-align: left; }
.mmo-destination-list span { color: #7f9298; font-size: 8px; }
.mmo-destination-list strong { grid-column: 1; font-size: 12px; }
.mmo-destination-list i { grid-column: 2; grid-row: 1 / 3; color: var(--gold); font-size: 16px; font-style: normal; }

.mmo-friend-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; margin-bottom: 11px; }
.mmo-friend-search input { width: 100%; padding: 0 10px; }
.mmo-social-list { display: grid; gap: 6px; margin-bottom: 12px; }
.mmo-social-list article,
.mmo-furniture article { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 7px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 4px; padding: 7px 8px; background: #111a1f; }
.mmo-social-list article strong,
.mmo-social-list article span,
.mmo-furniture article strong,
.mmo-furniture article span { display: block; }
.mmo-social-list article strong,
.mmo-furniture article strong { font-size: 11px; }
.mmo-social-list article span,
.mmo-furniture article span { margin-top: 2px; color: #7e9197; font-size: 8px; }
.mmo-row-actions { display: flex; gap: 4px; }
.mmo-row-actions button { min-width: 34px; padding-inline: 7px; }
.mmo-wide-command { width: 100%; margin-bottom: 11px; }
.mmo-empty { margin: 5px 0; color: #7f9196; font-size: 10px; }
.mmo-trade-card > strong { display: block; overflow: hidden; margin: 5px 0 8px; color: #93a4a9; font-size: 8px; text-overflow: ellipsis; }
.mmo-trade-card select { width: 100%; margin-bottom: 8px; padding: 0 8px; }
.mmo-trade-card > div { display: flex; gap: 5px; }
.mmo-trade-card p { color: #85969b; font-size: 8px; }

.mmo-avatar-editor { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 9px 12px; }
.mmo-avatar-swatch { grid-row: 1 / 5; position: relative; min-height: 174px; overflow: hidden; border: 1px solid #3a494f; border-radius: 4px; background: #0d1519; }
.mmo-avatar-swatch i { position: absolute; top: 34px; left: 26px; width: 40px; height: 46px; border: 7px solid var(--accent); border-radius: 16px 16px 8px 8px; background: var(--body); }
.mmo-avatar-swatch b { position: absolute; top: 78px; left: 18px; width: 56px; height: 66px; border: 8px solid var(--accent); border-radius: 11px; background: var(--body); }
.mmo-avatar-editor label { color: #8fa0a5; font-size: 8px; font-weight: 800; }
.mmo-avatar-editor input,
.mmo-avatar-editor select { display: block; width: 100%; margin-top: 4px; padding: 2px 7px; }
.mmo-lot-settings { display: grid; grid-template-columns: 1fr 140px; align-items: center; gap: 8px; }
.mmo-lot-settings select { width: 100%; padding: 0 8px; }
.mmo-furniture { display: grid; gap: 6px; }

.mmo-leader-tabs { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 10px; padding-bottom: 3px; }
.mmo-leader-tabs button { flex: 0 0 auto; }
.mmo-leader-tabs button.active { color: #101619; border-color: var(--gold); background: var(--gold); }
.mmo-leader-list { display: grid; gap: 5px; }
.mmo-leader-list article { min-height: 52px; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 8px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 4px; padding: 7px 9px; background: #111a1e; }
.mmo-leader-list article > b { color: var(--gold); font-family: "Audiowide", sans-serif; font-size: 15px; }
.mmo-leader-list article strong,
.mmo-leader-list article span { display: block; }
.mmo-leader-list article strong { font-size: 11px; }
.mmo-leader-list article span { margin-top: 2px; color: #809299; font-size: 8px; }
.mmo-leader-list article em { color: var(--cyan); font-size: 10px; font-style: normal; font-weight: 900; }

.mmo-chat {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: 107px;
  width: min(430px, calc(100% - 670px));
  min-width: 330px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-bottom: 2px solid var(--cyan);
  background: rgba(8, 14, 18, .88);
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}
.mmo-chat header { min-height: 28px; display: flex; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, .08); padding: 0 4px; }
.mmo-chat header button { min-height: 24px; border: 0; border-radius: 3px; padding: 0 8px; color: #82949a; background: transparent; font-size: 8px; font-weight: 900; }
.mmo-chat header button.active { color: var(--cyan); background: #1b2930; }
.mmo-chat header #mmoChatToggle { margin-left: auto; font-size: 14px; }
.mmo-chat-messages { height: 90px; overflow-y: auto; padding: 7px 9px; }
.mmo-chat-messages p { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 6px; margin: 0 0 3px; font-size: 9px; line-height: 1.35; }
.mmo-chat-messages b { overflow: hidden; color: var(--gold); text-overflow: ellipsis; white-space: nowrap; }
.mmo-chat-messages span { color: #d0dcda; overflow-wrap: anywhere; }
.mmo-chat form { display: grid; grid-template-columns: minmax(0, 1fr) 36px; border-top: 1px solid rgba(255, 255, 255, .08); }
.mmo-chat form input { min-width: 0; height: 32px; border: 0; padding: 0 9px; color: #eef5f3; background: #10191e; outline: 0; }
.mmo-chat form button { border: 0; color: #101719; background: var(--cyan); font-size: 16px; }
.mmo-chat.collapsed .mmo-chat-messages,
.mmo-chat.collapsed form { display: none; }

.mmo-world-curtain {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-content: center;
  justify-items: center;
  color: #edf7f5;
  background: rgba(5, 9, 12, .96);
  transition: opacity .25s ease;
}
.mmo-world-curtain img { width: 88px; height: 88px; margin-bottom: 16px; border: 2px solid var(--gold); border-radius: 4px; object-fit: cover; box-shadow: 10px 10px 0 #162027; }
.mmo-world-curtain strong { font-family: "Audiowide", sans-serif; font-size: 22px; }
.mmo-world-curtain span { margin-top: 7px; color: #8fa1a6; font-size: 10px; }

body.mmo-city .mine-power-badge,
body.mmo-city .mine-controls-legend,
body.mmo-city #mineTerminalToggle { display: none; }
body.mmo-city .mine-scene-shade { background: rgba(6, 13, 17, .08); }
body.mmo-city .mine-stage-head { right: 76px; }
body.mmo-city .mine-explore-hud { bottom: 112px; }
body.mmo-interior .mmo-status-bar { border-top-color: var(--gold); }
body.mmo-guest .mine-production-strip,
body.mmo-guest .mine-power-badge,
body.mmo-guest .mine-command-dock,
body.mmo-guest #mineTerminalToggle { display: none; }
body.mmo-guest .mine-explore-hud { bottom: 24px; }
body.mmo-guest .mmo-chat { bottom: 20px; }

@media (max-width: 1180px) {
  .mmo-mission-tracker { width: 270px; }
  .mmo-chat { width: 360px; min-width: 280px; }
}

@media (max-width: 900px) {
  .mmo-status-bar { top: 58px; min-width: 220px; }
  .mmo-mission-tracker { top: 178px; left: 12px; width: 250px; }
  .mmo-action-rail { right: 10px; }
  .mmo-panel { top: 104px; right: 60px; bottom: 108px; width: min(380px, calc(100% - 72px)); }
  .mmo-chat { left: 275px; width: 300px; min-width: 260px; transform: none; }
}

@media (max-width: 650px) {
  .mmo-status-bar { top: 58px; min-width: 190px; min-height: 30px; gap: 6px; padding-inline: 8px; }
  .mmo-status-bar strong { font-size: 8px; }
  .mmo-status-bar span { font-size: 7px; }
  .mmo-mission-tracker { top: 145px; left: 8px; width: min(230px, calc(100% - 66px)); padding: 9px 10px; }
  .mmo-mission-tracker h2 { font-size: 13px; }
  .mmo-mission-tracker p { display: none; }
  .mmo-mission-tracker footer button { min-height: 28px; }
  .mmo-action-rail { top: 55%; right: 7px; gap: 4px; }
  .mmo-action-rail button { width: 38px; height: 38px; }
  .mmo-panel { inset: 96px 52px 104px 7px; width: auto; }
  .mmo-chat { left: 8px; bottom: 116px; width: min(270px, calc(100% - 64px)); min-width: 0; transform: none; }
  .mmo-chat-messages { height: 64px; }
  .mmo-chat:not(:focus-within) .mmo-chat-messages { display: none; }
  body.mmo-city .mine-production-strip { top: 94px; }
  body.mmo-city .mine-explore-hud { display: none; }
  .mmo-world-curtain strong { font-size: 16px; }
}

@media (max-width: 390px) {
  .mmo-status-bar { left: 8px; right: 52px; min-width: 0; transform: none; }
  .mmo-status-bar > div { display: none; }
  .mmo-status-bar { grid-template-columns: 1fr auto; }
  .mmo-mission-tracker { top: 134px; }
  .mmo-panel { top: 92px; }
  .mmo-avatar-editor { grid-template-columns: 72px minmax(0, 1fr); }
  .mmo-avatar-swatch { min-height: 150px; }
}

/* Player guidance and overlay clarity */
.mine-controls-legend { display: none !important; }

.mmo-status-bar,
.mmo-mission-tracker,
.mmo-action-rail,
.mmo-panel,
.mmo-chat,
.mmo-briefing,
.mmo-briefing * { letter-spacing: 0; }

.mmo-status-bar {
  top: 16px;
  min-width: 280px;
  min-height: 38px;
  border-radius: 5px;
  border-top-width: 1px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .24);
}
.mmo-status-bar > div i { flex: 0 0 auto; }
.mmo-status-bar span { font-size: 9px; }
.mmo-status-bar strong { font-size: 11px; }

.mine-production-strip {
  top: 82px;
  left: 50%;
  width: min(560px, calc(100% - 620px));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 6px;
  background: rgba(10, 16, 20, .91);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}
.mine-production-strip > div,
.mine-production-strip > div.boost {
  min-width: 0;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, .1);
  padding: 9px 12px;
  background: transparent;
}
.mine-production-strip > div:last-child { border-right: 0; }
.mine-production-strip span { font-size: 8px; letter-spacing: 0; }
.mine-production-strip strong {
  overflow: hidden;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.mmo-city .mine-production-strip { top: 64px; }
body.mmo-city .mine-stage-head { justify-content: flex-end; }
body.mmo-city .mine-stage-head > div:first-child { display: none; }

.mmo-mission-tracker {
  top: 152px;
  left: 24px;
  width: 360px;
  border: 1px solid rgba(255, 201, 40, .34);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  padding: 15px 16px 14px;
  background: rgba(8, 14, 18, .95);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .34);
}
body.mmo-city .mmo-mission-tracker { top: 64px; }
.mmo-mission-tracker header span,
.mmo-mission-tracker header b { font-size: 9px; }
.mmo-mission-tracker h2 {
  margin: 8px 0 5px;
  color: #f6f8f7;
  font-size: 18px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.mmo-mission-tracker > p {
  min-height: 0;
  margin: 0;
  color: #adbdc1;
  font-size: 11px;
  line-height: 1.45;
}
.mmo-mission-details {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 12px;
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 10px;
}
.mmo-mission-details > div { min-width: 0; }
.mmo-mission-details span {
  display: block;
  color: #7f9298;
  font-size: 8px;
  font-weight: 900;
}
.mmo-mission-details strong {
  display: block;
  margin-top: 3px;
  color: #edf5f3;
  font-size: 10px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.mmo-mission-details > div:last-child strong { color: var(--gold); }
.mmo-mission-tracker > .mmo-mission-hint {
  margin-top: 10px;
  border-left: 2px solid var(--cyan);
  padding-left: 9px;
  color: #d4e1df;
}
.mmo-mission-meter { height: 5px; margin: 12px 0; border-radius: 3px; }
.mmo-mission-meter i { border-radius: inherit; }
.mmo-mission-tracker footer { gap: 7px; }
.mmo-mission-tracker footer button {
  min-height: 34px;
  max-width: 100%;
  padding: 0 12px;
  font-size: 9px;
  white-space: normal;
}
.mmo-mission-tracker footer button:first-child { flex: 1 1 auto; }

.mmo-action-rail {
  top: 152px;
  right: 20px;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 6px;
  padding: 5px;
  background: rgba(8, 14, 18, .78);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .25);
  transform: none;
  backdrop-filter: blur(10px);
}
body.mmo-city .mmo-action-rail { top: 64px; }
.mmo-action-rail button {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  box-shadow: none;
}
.mmo-action-rail button:first-child { color: var(--gold); border-color: rgba(255, 201, 40, .4); }
.mmo-action-rail button[data-mmo-briefing] { color: var(--cyan); border-color: rgba(63, 225, 244, .38); }

.mmo-panel {
  top: 70px;
  right: 82px;
  bottom: 104px;
  width: min(440px, calc(100% - 106px));
  border-radius: 6px;
  border-top-width: 1px;
}
.mmo-panel > header {
  min-height: 66px;
  padding: 12px 16px;
  background: #10191e;
}
.mmo-panel > header span { font-size: 9px; }
.mmo-panel > header strong { font-size: 16px; line-height: 1.2; }
.mmo-panel-body { padding: 16px; }
.mmo-panel-body button,
.mmo-panel-body select,
.mmo-panel-body input { font-size: 11px; }

.mmo-story-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .11);
  padding: 2px 2px 14px;
}
.mmo-story-summary div span,
.mmo-story-summary div strong { display: block; }
.mmo-story-summary div span { color: var(--cyan); font-size: 8px; font-weight: 900; }
.mmo-story-summary div strong { margin-top: 4px; font-size: 13px; }
.mmo-story-summary > b { align-self: end; color: var(--gold); font-family: "Audiowide", sans-serif; font-size: 18px; }
.mmo-story-summary > i { grid-column: 1 / -1; height: 5px; overflow: hidden; border-radius: 3px; background: #27333a; }
.mmo-story-summary > i em { display: block; height: 100%; border-radius: inherit; background: var(--gold); }

.mmo-active-brief,
.mmo-work-order,
.mmo-dailies,
.mmo-lot-card,
.mmo-party-card,
.mmo-trade-card,
.mmo-avatar-editor,
.mmo-lot-settings,
.mmo-furniture,
.mmo-skip-quote {
  border-radius: 6px;
  padding: 15px;
}
.mmo-active-brief {
  border-color: rgba(255, 201, 40, .26);
  border-left: 4px solid var(--gold);
  background: #181b1a;
}
.mmo-active-brief.complete { border-left-color: var(--lime); }
.mmo-active-brief h3 { margin: 6px 0; font-size: 18px; line-height: 1.25; }
.mmo-active-brief .mmo-active-description { margin: 0 0 13px; color: #aab9bd; font-size: 11px; line-height: 1.5; }
.mmo-active-place,
.mmo-active-reward {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 9px 0;
}
.mmo-active-place span,
.mmo-active-reward span { color: #7f9298; font-size: 8px; font-weight: 900; }
.mmo-active-place strong { font-size: 11px; }
.mmo-active-reward strong { color: var(--gold); font-size: 11px; }
.mmo-active-next,
.mmo-active-outcome {
  margin: 10px 0 0;
  color: #d8e3e1;
  font-size: 11px;
  line-height: 1.48;
}
.mmo-active-next b,
.mmo-active-outcome b { display: block; margin-bottom: 3px; color: var(--cyan); font-size: 8px; }
.mmo-active-outcome { color: #9fb0b4; }
.mmo-active-outcome b { color: #7f9298; }
.mmo-active-brief > button { width: 100%; margin-top: 12px; color: #171108; border-color: var(--gold); background: var(--gold); }
.mmo-story-heading { margin: 17px 1px 8px; color: #8fa0a5; font-size: 9px; }
.mmo-story-row {
  min-height: 56px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  padding: 8px 10px;
}
.mmo-story-row div strong {
  overflow: visible;
  font-size: 11px;
  line-height: 1.3;
  text-overflow: clip;
  white-space: normal;
}
.mmo-story-row > b { max-width: 82px; font-size: 8px; line-height: 1.25; text-align: right; }
.mmo-dailies > p { margin: 4px 0 9px; color: #8fa1a6; font-size: 10px; line-height: 1.4; }
.mmo-dailies div b { white-space: nowrap; }

.mmo-chat {
  bottom: 104px;
  width: min(430px, calc(100% - 760px));
  min-width: 330px;
  border-radius: 5px 5px 0 0;
  transition: opacity .16s ease;
}
.mmo-chat.collapsed { width: 220px; min-width: 220px; }
.mmo-chat header { min-height: 32px; }
.mmo-chat header button { min-height: 27px; font-size: 9px; }
.mmo-chat-messages { height: 108px; }
.mmo-chat-messages p { font-size: 10px; }
body.mmo-panel-open .mmo-chat,
body.mmo-panel-open .mmo-mission-tracker { opacity: 0; pointer-events: none; }
body.mmo-panel-open .mine-toast { opacity: 0 !important; transform: translateY(12px); }
.mine-app.inspector-open .mmo-action-rail,
.mine-app.inspector-open .mmo-mission-tracker,
.mine-app.inspector-open .mmo-chat { opacity: 0; pointer-events: none; }

.mmo-briefing {
  position: absolute;
  inset: 0;
  z-index: 42;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 24px;
  color: #eef6f4;
  background: rgba(4, 8, 11, .91);
  backdrop-filter: blur(12px);
}
.mmo-briefing-shell {
  width: min(960px, 100%);
  max-height: min(680px, calc(100% - 8px));
  min-height: 560px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .17);
  border-top: 4px solid var(--gold);
  border-radius: 7px;
  background: #0b1217;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .62);
  outline: 0;
}
.mmo-briefing-head {
  min-height: 102px;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .11);
  padding: 16px 20px;
  background: #10191e;
}
.mmo-briefing-mark {
  position: relative;
  width: 66px;
  height: 66px;
  border: 1px solid rgba(255, 201, 40, .45);
  border-radius: 5px;
  background: #070c10;
}
.mmo-briefing-mark img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.mmo-briefing-mark span {
  position: absolute;
  right: -7px;
  bottom: -7px;
  min-width: 25px;
  min-height: 25px;
  display: grid;
  place-items: center;
  border: 2px solid #10191e;
  border-radius: 4px;
  color: #171108;
  background: var(--gold);
  font-size: 9px;
  font-weight: 900;
}
.mmo-briefing-head > div:nth-child(2) > span { color: var(--gold); font-size: 9px; font-weight: 900; }
.mmo-briefing-head h2 { margin: 6px 0 0; font-family: "Audiowide", sans-serif; font-size: 25px; line-height: 1.2; overflow-wrap: anywhere; }
.mmo-briefing-head > button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 5px;
  color: #eff6f4;
  background: #243139;
  font-size: 22px;
}
.mmo-briefing-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(310px, .85fr);
  overflow: hidden;
}
.mmo-briefing-overview {
  min-width: 0;
  overflow-y: auto;
  padding: 24px 26px;
}
.mmo-briefing-overview > p { max-width: 610px; margin: 0; color: #bdcac8; font-size: 13px; line-height: 1.55; }
.mmo-briefing-steps { margin-top: 20px; }
.mmo-briefing-steps article {
  min-height: 67px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 13px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 13px 0;
}
.mmo-briefing-steps article > b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(63, 225, 244, .4);
  border-radius: 4px;
  color: var(--cyan);
  background: #111d22;
  font-size: 9px;
}
.mmo-briefing-steps strong,
.mmo-briefing-steps span { display: block; }
.mmo-briefing-steps strong { font-size: 13px; }
.mmo-briefing-steps span { margin-top: 4px; color: #8fa1a6; font-size: 11px; line-height: 1.4; }
.mmo-briefing-overview > .mmo-briefing-economy {
  margin-top: 7px;
  border-left: 3px solid var(--lime);
  padding-left: 12px;
  color: #9fb0ad;
  font-size: 11px;
}
.mmo-briefing-economy strong { display: block; margin-bottom: 3px; color: #dce7e4; }
.mmo-briefing-job {
  min-width: 0;
  overflow-y: auto;
  border-left: 1px solid rgba(255, 255, 255, .11);
  padding: 27px 25px;
  background: #10181d;
}
.mmo-briefing-job > span { color: var(--gold); font-size: 9px; font-weight: 900; }
.mmo-briefing-job h3 { margin: 8px 0 18px; font-size: 22px; line-height: 1.25; overflow-wrap: anywhere; }
.mmo-briefing-destination,
.mmo-briefing-reward {
  border-top: 1px solid rgba(255, 255, 255, .11);
  padding: 13px 0;
}
.mmo-briefing-destination span,
.mmo-briefing-reward span { display: block; color: #7f9298; font-size: 8px; font-weight: 900; }
.mmo-briefing-destination strong,
.mmo-briefing-reward strong { display: block; margin-top: 4px; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.mmo-briefing-destination strong { color: var(--cyan); }
.mmo-briefing-reward strong { color: var(--gold); }
.mmo-briefing-job > p { margin: 4px 0 16px; color: #d0dcda; font-size: 12px; line-height: 1.55; }
.mmo-briefing-actions {
  min-height: 72px;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid rgba(255, 255, 255, .11);
  padding: 14px 20px;
  background: #0e171c;
}
.mmo-briefing-actions button {
  min-height: 43px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 5px;
  padding: 0 18px;
  color: #eef6f4;
  background: #26333a;
  font-size: 11px;
  font-weight: 900;
}
.mmo-briefing-actions button:last-child { min-width: 190px; color: #171108; border-color: var(--gold); background: var(--gold); }

body.mmo-briefing-open .mmo-status-bar,
body.mmo-briefing-open .mmo-mission-tracker,
body.mmo-briefing-open .mmo-action-rail,
body.mmo-briefing-open .mmo-chat,
body.mmo-briefing-open .mine-production-strip,
body.mmo-briefing-open .mine-power-badge,
body.mmo-briefing-open .mine-stage-head,
body.mmo-briefing-open .mine-mobile-pad,
body.mmo-briefing-open .mine-explore-hud,
body.mmo-briefing-open .mine-command-dock { pointer-events: none; }
body.mmo-briefing-open .mine-toast { opacity: 0 !important; transform: translateY(12px); }

@media (min-width: 901px) and (max-width: 1180px) {
  .mine-production-strip {
    left: 320px;
    right: 80px;
    width: auto;
    transform: none;
  }
  .mmo-mission-tracker { left: 18px; width: 290px; }
  .mmo-panel { right: 76px; }
}

@media (max-width: 900px) {
  .mmo-status-bar {
    top: 10px;
    left: 12px;
    right: 132px;
    min-width: 0;
    transform: none;
  }
  body.mmo-city .mine-production-strip,
  .mine-production-strip {
    top: 56px;
    left: 12px;
    right: 64px;
    width: auto;
    transform: none;
  }
  .mine-production-strip > div,
  .mine-production-strip > div.boost { padding: 8px; }
  body.mmo-city .mmo-mission-tracker,
  .mmo-mission-tracker {
    top: 108px;
    left: 12px;
    width: min(340px, calc(100% - 76px));
  }
  body.mmo-city .mmo-action-rail,
  .mmo-action-rail { top: 108px; right: 9px; }
  .mmo-panel { top: 10px; right: 64px; bottom: 112px; width: min(430px, calc(100% - 76px)); }
  .mmo-chat { left: 12px; width: 300px; min-width: 260px; transform: none; }
  .mmo-chat.collapsed { width: 210px; min-width: 210px; }
}

@media (max-width: 650px) {
  body.mmo-city .mine-stage-head { top: 8px; }
  body.mmo-city .mmo-status-bar {
    top: 8px;
    left: 8px;
    right: 122px;
    min-height: 36px;
  }
  body.mmo-interior .mmo-status-bar { display: none; }
  body.mmo-city .mine-production-strip {
    top: 52px;
    left: 8px;
    right: 8px;
  }
  body.mmo-interior .mine-production-strip {
    top: 72px;
    left: 8px;
    right: 8px;
  }
  .mine-production-strip > div,
  .mine-production-strip > div.boost { padding: 7px 5px; text-align: center; }
  .mine-production-strip span { font-size: 7px; }
  .mine-production-strip strong { font-size: 9px; }
  body.mmo-interior .mine-power-badge { top: 136px; right: 8px; min-height: 44px; }
  body.mmo-city .mmo-mission-tracker {
    top: 110px;
    left: 8px;
    right: 58px;
    width: auto;
  }
  body.mmo-interior .mmo-mission-tracker {
    top: 196px;
    left: 8px;
    right: 58px;
    width: auto;
  }
  .mmo-mission-tracker { padding: 11px 12px; }
  .mmo-mission-tracker h2 { margin-top: 6px; font-size: 15px; }
  .mmo-mission-tracker > p { display: block; font-size: 10px; }
  .mmo-mission-details { gap: 8px; margin-top: 9px; padding-top: 8px; }
  .mmo-mission-details strong { font-size: 9px; }
  .mmo-mission-tracker > .mmo-mission-hint { margin-top: 8px; font-size: 10px; }
  .mmo-mission-meter { margin: 9px 0; }
  .mmo-mission-tracker footer button { min-height: 31px; padding-inline: 8px; font-size: 8px; }
  body.mmo-city .mmo-action-rail { top: 110px; }
  body.mmo-interior .mmo-action-rail { top: 196px; }
  .mmo-action-rail { right: 7px; gap: 4px; padding: 4px; }
  .mmo-action-rail button { width: 38px; height: 38px; flex-basis: 38px; }
  .mmo-panel {
    inset: 8px 60px calc(var(--bottom-inset, 8px) + var(--dock-h, 105px) + 12px) 8px;
    width: auto;
  }
  .mmo-panel > header { min-height: 58px; padding: 9px 11px; }
  .mmo-panel > header strong { font-size: 14px; }
  .mmo-panel-body { padding: 11px; }
  .mmo-active-brief,
  .mmo-work-order,
  .mmo-dailies,
  .mmo-lot-card,
  .mmo-party-card,
  .mmo-trade-card,
  .mmo-avatar-editor,
  .mmo-lot-settings,
  .mmo-furniture,
  .mmo-skip-quote { padding: 12px; }
  .mmo-active-place,
  .mmo-active-reward { grid-template-columns: 78px minmax(0, 1fr); }
  .mmo-story-row { grid-template-columns: 30px minmax(0, 1fr); gap: 7px; }
  .mmo-story-row > b { grid-column: 2; max-width: none; text-align: left; }
  .mmo-chat {
    left: 8px;
    right: 58px;
    bottom: calc(var(--bottom-inset, 8px) + var(--dock-h, 105px) + 12px);
    width: auto;
    min-width: 0;
    transform: none;
  }
  .mmo-chat.collapsed { right: auto; width: 158px; min-width: 158px; }
  .mmo-chat header button { padding-inline: 6px; font-size: 8px; }
  .mmo-chat-messages { height: 92px; }
  body.mmo-chat-open .mmo-mission-tracker,
  body.mmo-chat-open .mine-mobile-pad,
  body.mmo-chat-open .mine-explore-hud { opacity: 0; pointer-events: none; }
  body.mmo-panel-open .mmo-status-bar,
  body.mmo-panel-open .mmo-mission-tracker,
  body.mmo-panel-open .mine-production-strip,
  body.mmo-panel-open .mine-power-badge,
  body.mmo-panel-open .mine-stage-head,
  body.mmo-panel-open .mine-mobile-pad,
  body.mmo-panel-open .mine-explore-hud { opacity: 0; pointer-events: none; }

  .mmo-briefing { align-items: stretch; padding: 8px; }
  .mmo-briefing-shell {
    width: 100%;
    min-height: 0;
    max-height: 100%;
    border-top-width: 3px;
  }
  .mmo-briefing-head {
    min-height: 76px;
    grid-template-columns: 50px minmax(0, 1fr) 40px;
    gap: 10px;
    padding: 10px 11px;
  }
  .mmo-briefing-mark { width: 48px; height: 48px; }
  .mmo-briefing-mark span { right: -4px; bottom: -4px; min-width: 20px; min-height: 20px; font-size: 7px; }
  .mmo-briefing-head > div:nth-child(2) > span { font-size: 7px; }
  .mmo-briefing-head h2 { margin-top: 4px; font-size: 18px; }
  .mmo-briefing-head > button { width: 40px; height: 40px; }
  .mmo-briefing-body { display: block; overflow-y: auto; }
  .mmo-briefing-overview { overflow: visible; padding: 17px 16px; }
  .mmo-briefing-overview > p { font-size: 11px; }
  .mmo-briefing-steps { margin-top: 13px; }
  .mmo-briefing-steps article { min-height: 58px; padding: 10px 0; }
  .mmo-briefing-steps strong { font-size: 12px; }
  .mmo-briefing-steps span { font-size: 10px; }
  .mmo-briefing-job { overflow: visible; border-top: 1px solid rgba(255, 255, 255, .11); border-left: 0; padding: 17px 16px 20px; }
  .mmo-briefing-job h3 { margin-bottom: 12px; font-size: 18px; }
  .mmo-briefing-actions { min-height: 64px; padding: 10px 11px; }
  .mmo-briefing-actions button { min-height: 42px; flex: 1 1 0; padding-inline: 8px; font-size: 9px; }
  .mmo-briefing-actions button:last-child { min-width: 0; }
}

@media (max-width: 390px) {
  body.mmo-city .mmo-status-bar { grid-template-columns: 1fr auto; }
  body.mmo-city .mmo-status-bar > div { display: none; }
  .mmo-mission-details { grid-template-columns: 1fr; gap: 7px; }
  .mmo-mission-details > div:last-child { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 6px; }
  .mmo-briefing-head { grid-template-columns: minmax(0, 1fr) 40px; }
  .mmo-briefing-mark { display: none; }
}

@media (max-width: 650px) and (max-height: 740px) {
  body.mmo-city .mmo-mission-tracker { max-height: 215px; overflow-y: auto; }
  body.mmo-interior .mmo-mission-tracker { top: 196px; max-height: 145px; overflow-y: auto; }
  body.mmo-city .mmo-action-rail { top: 110px; }
  body.mmo-city .mmo-action-rail button { width: 34px; height: 34px; flex-basis: 34px; }
  body.mmo-interior .mmo-action-rail {
    top: 136px;
    right: auto;
    left: 8px;
    grid-template-columns: repeat(6, 30px);
    grid-template-rows: 30px;
    gap: 3px;
  }
  body.mmo-interior .mmo-action-rail button { width: 30px; height: 30px; flex-basis: 30px; font-size: 12px; }
}

/* Friendly game type scale: readable labels, instructions, and controls on every HUD surface. */
#mineApp *,
#mineGate *,
.mine-nav *,
#mineAccountPanel * {
  letter-spacing: 0;
}

#mineApp :is(button, input, select, textarea),
#mineGate :is(button, input, select, textarea),
#mineAccountPanel :is(button, input, select, textarea) {
  font-size: 13px;
  line-height: 1.25;
}

#mineApp :is(
  .mine-stage-head span,
  .mine-panel-head span,
  .mine-balance span,
  .mine-production-strip span,
  .mine-referral-code span,
  .mine-treasury span,
  .machine-inspector > span,
  .mine-modal section > span,
  .mine-explore-hud > span,
  .mine-panel-summary span,
  .mine-boost-summary span,
  .machine-upgrade-cost > span,
  .mine-printer-output span,
  .mine-wallet-balances span,
  .mine-wallet-capacity span,
  .mine-section-title span,
  .mine-power-copy span,
  .mine-funding-console label > span,
  .mine-shop-price span,
  .mine-referral-form label span,
  .mine-treasury-numbers,
  .mine-account-addresses span,
  .mine-wallet-approval span
) {
  font-size: 11px;
  line-height: 1.35;
}

#mineApp :is(
  .mine-explore-hud small,
  .machine-inspector > p,
  .mine-printer-slot-copy span,
  .mine-printer-slot-copy b,
  .mine-route-quote,
  .mine-route-quote .mine-quote-row,
  .mine-preview-notice,
  .mine-order-row strong,
  .mine-order-row b,
  .mine-order-row span,
  .mine-item-copy span,
  .mine-inventory-item small,
  .mine-boost-summary small,
  .mine-boost-node p,
  .mine-boost-node footer span,
  .mine-modal section > p,
  .mine-quantity span,
  .mine-status,
  .mine-quote
) {
  font-size: 12px;
  line-height: 1.45;
}

#mineApp .mine-tabs button,
#mineApp .mine-shop-filter button,
#mineApp .mine-payment-toggle button,
#mineApp .mine-wallet-tabs button {
  min-height: 46px;
  font-size: 13px;
}

#mineApp .mine-command,
#mineApp .mine-printer-actions .mine-command,
#mineApp .mine-printer-slot button,
#mineApp .mine-inline-actions button,
#mineApp .mine-deposit-card > footer button {
  min-height: 40px;
  font-size: 12px;
}

#mineApp .mine-command-dock .mine-command { font-size: 13px; }
#mineApp .mine-icon-command { font-size: 18px; }
#mineApp .mine-explore-hud strong { font-size: 18px; }
#mineApp .mine-production-strip span { font-size: 10px; }
#mineApp .mine-production-strip strong { font-size: 13px; }
#mineApp .mine-power-badge { min-width: 210px; min-height: 62px; padding-top: 10px; }
#mineApp .mine-power-badge span { font-size: 10px; }
#mineApp .mine-power-badge strong { font-size: 14px; }
#mineApp .mine-power-badge small { font-size: 11px; line-height: 1.25; }
#mineApp .mine-waypoint b { font-size: 12px; }

#mineApp .machine-inspector-grid span,
#mineApp .mine-network-stats span,
#mineApp #inspectorRequirements i {
  font-size: 11px;
  line-height: 1.3;
}

#mineApp .mine-printer-slot-copy strong { font-size: 14px; }
#mineApp .mine-wallet-capacity strong,
#mineApp .mine-section-title strong,
#mineApp .mine-power-copy strong { font-size: 12px; }
#mineApp .mine-address-line { font-size: 11px; line-height: 1.45; }
#mineApp .mine-battery-scale { font-size: 10px; }
#mineApp .mine-power-telemetry span { font-size: 10px; line-height: 1.25; }
#mineApp .mine-power-telemetry strong { font-size: 12px; line-height: 1.25; }

#mineApp :is(
  .mine-wallet-hero-head span,
  .mine-funding-heading span,
  .mine-chain-picker > span,
  .mine-chain-picker small,
  .mine-funding-minimum span,
  .mine-deposit-network span,
  .mine-deposit-instructions span,
  .mine-route-warning,
  .mine-deposit-card > footer span
) {
  font-size: 11px;
  line-height: 1.4;
}

#mineApp .mine-funding-minimum strong,
#mineApp .mine-deposit-network strong,
#mineApp .mine-chain-picker strong { font-size: 13px; }
#mineApp .mine-funding-status { font-size: 12px; line-height: 1.4; }
#mineApp .mine-deposit-instructions p { font-size: 12px; line-height: 1.5; }
#mineApp .mine-deposit-address span { font-size: 11px; line-height: 1.4; }
#mineApp .mine-deposit-address b { font-size: 11px; }
#mineApp .mine-route-phase { min-height: 30px; font-size: 11px; }
#mineApp .mine-route-progress > div {
  min-width: 0;
  font-size: 10px;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}
#mineApp .mine-allocation-strip span {
  min-height: 52px;
  display: grid;
  align-content: center;
  font-size: 10px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
#mineApp .mine-allocation-strip b { font-size: 12px; }

#mineApp .mine-map-panel header span { font-size: 11px; }
#mineApp .mine-map-panel header strong { font-size: 15px; }
#mineApp .mine-map-panel footer { font-size: 11px; line-height: 1.3; }
#mineApp .mine-map-station {
  min-height: 46px;
  font-size: 10px;
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: anywhere;
}

#mineApp .mmo-status-bar span { font-size: 10px; }
#mineApp .mmo-status-bar strong { font-size: 13px; }
#mineApp .mmo-mission-tracker header span,
#mineApp .mmo-mission-tracker header b { font-size: 11px; }
#mineApp .mmo-mission-tracker h2 { font-size: 19px; }
#mineApp .mmo-mission-tracker > p { font-size: 13px; line-height: 1.48; }
#mineApp .mmo-mission-details span { font-size: 10px; }
#mineApp .mmo-mission-details strong { font-size: 12px; line-height: 1.3; }
#mineApp .mmo-mission-tracker > .mmo-mission-hint { font-size: 12px; line-height: 1.45; }
#mineApp .mmo-mission-tracker footer button { min-height: 38px; font-size: 12px; }
#mineApp .mmo-action-rail button { font-size: 18px; }

#mineApp .mmo-panel > header span { font-size: 11px; }
#mineApp .mmo-panel > header strong { font-size: 18px; }
#mineApp .mmo-panel-body { font-size: 13px; line-height: 1.45; }
#mineApp .mmo-panel-body :is(button, select, input) { min-height: 40px; font-size: 12px; }
#mineApp .mmo-skip-quote > span,
#mineApp .mmo-story-summary div span,
#mineApp .mmo-active-place span,
#mineApp .mmo-active-reward span,
#mineApp .mmo-active-next b,
#mineApp .mmo-active-outcome b,
#mineApp .mmo-story-heading,
#mineApp .mmo-story-row div span,
#mineApp .mmo-story-row > b,
#mineApp .mmo-destination-list span,
#mineApp .mmo-social-list article span,
#mineApp .mmo-furniture article span,
#mineApp .mmo-avatar-editor label,
#mineApp .mmo-leader-list article span {
  font-size: 10px;
  line-height: 1.35;
}

#mineApp :is(
  .mmo-work-order p,
  .mmo-skip-quote p,
  .mmo-active-brief .mmo-active-description,
  .mmo-active-next,
  .mmo-active-outcome,
  .mmo-dailies > p,
  .mmo-empty,
  .mmo-trade-card p
) {
  font-size: 12px;
  line-height: 1.5;
}

#mineApp .mmo-story-row { min-height: 64px; }
#mineApp .mmo-story-row > i { width: 34px; height: 34px; font-size: 11px; }
#mineApp .mmo-story-row div strong,
#mineApp .mmo-active-place strong,
#mineApp .mmo-active-reward strong,
#mineApp .mmo-destination-list strong,
#mineApp .mmo-social-list article strong,
#mineApp .mmo-furniture article strong,
#mineApp .mmo-leader-list article strong { font-size: 13px; line-height: 1.35; }
#mineApp .mmo-recipe b { font-size: 11px; line-height: 1.3; }
#mineApp .mmo-dailies div,
#mineApp .mmo-party-card div { font-size: 12px; }
#mineApp .mmo-trade-card > strong { font-size: 11px; line-height: 1.35; }
#mineApp .mmo-leader-list article em { font-size: 12px; }

#mineApp .mmo-chat header { min-height: 36px; }
#mineApp .mmo-chat header button { min-height: 32px; font-size: 11px; }
#mineApp .mmo-chat-messages p {
  grid-template-columns: 96px minmax(0, 1fr);
  font-size: 11px;
  line-height: 1.45;
}
#mineApp .mmo-chat form input { height: 40px; font-size: 12px; }
#mineApp .mmo-chat form button,
#mineApp #mmoChatToggle { font-size: 18px; }
#mineApp .mmo-world-curtain span { font-size: 12px; }

#mineApp .mmo-briefing-mark span,
#mineApp .mmo-briefing-head > div:nth-child(2) > span,
#mineApp .mmo-briefing-steps article > b,
#mineApp .mmo-briefing-job > span,
#mineApp .mmo-briefing-destination span,
#mineApp .mmo-briefing-reward span {
  font-size: 11px;
}
#mineApp .mmo-briefing-overview > p { font-size: 14px; line-height: 1.6; }
#mineApp .mmo-briefing-steps strong { font-size: 14px; }
#mineApp .mmo-briefing-steps span { font-size: 12px; line-height: 1.5; }
#mineApp .mmo-briefing-overview > .mmo-briefing-economy { font-size: 12px; }
#mineApp .mmo-briefing-destination strong,
#mineApp .mmo-briefing-reward strong { font-size: 13px; }
#mineApp .mmo-briefing-job > p { font-size: 13px; }
#mineApp .mmo-briefing-actions button { min-height: 46px; font-size: 13px; }

#mineApp :is(
  #mineMapClose,
  #mmoPanelClose,
  #mmoBriefingClose,
  .machine-inspector > button:first-child
),
#mineAccountPanel > header button {
  font-size: 22px;
}

.mine-nav-links a,
.mine-auth-button,
#mineAccountPanel :is(a, button) { font-size: 13px; }
.mine-mode { font-size: 12px; }
.mine-account-button-copy small,
#mineAccountPanel :is(header span, .mine-account-addresses span, .mine-wallet-approval span) { font-size: 11px; }
.mine-account-button-copy strong,
#mineAccountPanel :is(header strong, .mine-account-addresses strong) { font-size: 13px; }
#mineAccountPanel .mine-account-identity small,
#mineAccountPanel .mine-auth-status { font-size: 12px; }
#mineAccountPanel .mine-unlock-form label { font-size: 12px; }

#mineGate .mine-gate-identity > span,
#mineGate .mine-auth-console > header span { font-size: 12px; }
#mineGate .mine-gate-wallets :is(b, span) { min-height: 31px; font-size: 11px; }
#mineGate .mine-auth-tabs button { min-height: 46px; font-size: 14px; }
#mineGate .mine-auth-form label { font-size: 12px; }
#mineGate .mine-auth-form input { min-height: 46px; font-size: 14px; }
#mineGate .mine-auth-form > button { min-height: 46px; font-size: 14px; }
#mineGate .mine-auth-form > a { font-size: 12px; }
#mineGate .mine-auth-status { font-size: 12px; }

@media (max-width: 650px) {
  #mineApp .mine-production-strip > div,
  #mineApp .mine-production-strip > div.boost { min-width: 0; padding: 8px 4px; }
  #mineApp .mine-production-strip span { font-size: 9px; }
  #mineApp .mine-production-strip strong { font-size: 11px; line-height: 1.2; overflow-wrap: anywhere; }
  #mineApp .mine-power-badge { min-width: 196px; }
  #mineApp .mmo-mission-tracker { max-height: min(320px, calc(100svh - 230px)); overflow-y: auto; }
  #mineApp .mmo-mission-tracker h2 { font-size: 17px; }
  #mineApp .mmo-mission-tracker > p,
  #mineApp .mmo-mission-tracker > .mmo-mission-hint { font-size: 12px; }
  #mineApp .mmo-mission-tracker footer button { min-height: 38px; font-size: 11px; }
  #mineApp .mmo-panel > header strong { font-size: 16px; }
  #mineApp .mmo-chat.collapsed { width: 190px; min-width: 190px; }
  #mineApp .mmo-chat header button { padding-inline: 8px; font-size: 11px; }
  #mineApp .mmo-briefing-overview > p { font-size: 13px; }
  #mineApp .mmo-briefing-steps strong { font-size: 13px; }
  #mineApp .mmo-briefing-steps span { font-size: 12px; }
  #mineApp .mmo-briefing-actions button { min-height: 44px; font-size: 12px; }
  #mineApp .mine-map-station { width: 62px; min-height: 46px; font-size: 10px; }
  #mineApp .mine-route-progress > div,
  #mineApp .mine-allocation-strip span { font-size: 9px; }
  body.mmo-interior #mineApp .mine-production-strip { top: 100px; }
  body.mmo-interior #mineApp .mine-power-badge { top: 164px; }
  body.mmo-interior #mineApp .mmo-mission-tracker,
  body.mmo-interior #mineApp .mmo-action-rail { top: 234px; }
  body.mmo-interior #mineApp .mmo-mission-tracker { max-height: 270px; }
}

@media (max-width: 500px) {
  .mine-nav { gap: 6px; }
  .mine-nav-links { min-width: 0; gap: 0; overflow-x: auto; scrollbar-width: none; }
  .mine-nav-links::-webkit-scrollbar { display: none; }
  .mine-nav-links a { padding-inline: 5px; font-size: 12px; }
  .mine-auth-button { min-width: 70px; padding-inline: 8px; font-size: 12px; }
}

/* Harbor City world interface: district-specific, readable game menus. */
#mineApp .mmo-mission-tracker {
  overflow: hidden;
  border-color: rgba(255, 201, 40, .52);
  border-left-width: 5px;
  background: rgba(7, 14, 18, .96);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .4), inset 0 1px rgba(255, 255, 255, .05);
}

#mineApp .mmo-mission-tracker::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 72px;
  height: 4px;
  content: "";
  background: var(--cyan);
  box-shadow: -76px 0 0 var(--gold);
}

#mineApp .mmo-mission-tracker header {
  min-height: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  padding-bottom: 7px;
}

#mineApp .mmo-mission-tracker h2 { margin-top: 11px; }
#mineApp .mmo-mission-details { background: #0d191e; padding: 10px; }
#mineApp .mmo-mission-tracker > .mmo-mission-hint { border-left-width: 3px; }

#mineApp .mmo-action-rail {
  width: 112px;
  gap: 5px;
  border-color: rgba(63, 225, 244, .22);
  padding: 6px;
  background: rgba(7, 14, 18, .93);
}

#mineApp .mmo-action-rail button {
  width: 98px;
  height: 46px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  border-left: 3px solid #44535a;
  padding: 0 9px 0 6px;
  text-align: left;
}

#mineApp .mmo-action-rail button span {
  display: grid;
  place-items: center;
  color: inherit;
  font-family: "Audiowide", sans-serif;
  font-size: 18px;
}

#mineApp .mmo-action-rail button b {
  overflow: hidden;
  font-size: 12px;
  line-height: 1;
  text-overflow: ellipsis;
}

#mineApp .mmo-action-rail button[data-mmo-panel="story"] { border-left-color: var(--gold); }
#mineApp .mmo-action-rail button[data-mmo-panel="city"] { border-left-color: var(--cyan); }
#mineApp .mmo-action-rail button[data-mmo-panel="crew"] { border-left-color: var(--lime); }
#mineApp .mmo-action-rail button[data-mmo-panel="avatar"] { border-left-color: #d878e2; }
#mineApp .mmo-action-rail button[data-mmo-panel="leaders"] { border-left-color: #ff7967; }
#mineApp .mmo-action-rail button[data-mmo-briefing] { border-left-color: #8bd9ff; }

#mineApp .mmo-panel {
  --panel-accent: var(--cyan);
  right: 142px;
  width: min(486px, calc(100% - 510px));
  min-width: 420px;
  border-color: rgba(63, 225, 244, .42);
  border-top: 4px solid var(--panel-accent);
  background: rgba(6, 12, 16, .98);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .56), inset 0 1px rgba(255, 255, 255, .04);
}

#mineApp .mmo-panel[data-panel="story"] { --panel-accent: var(--gold); border-color: rgba(255, 201, 40, .42); }
#mineApp .mmo-panel[data-panel="city"] { --panel-accent: var(--cyan); }
#mineApp .mmo-panel[data-panel="crew"] { --panel-accent: var(--lime); border-color: rgba(88, 223, 134, .42); }
#mineApp .mmo-panel[data-panel="avatar"] { --panel-accent: #d878e2; border-color: rgba(216, 120, 226, .42); }
#mineApp .mmo-panel[data-panel="leaders"] { --panel-accent: #ff7967; border-color: rgba(255, 121, 103, .42); }

#mineApp .mmo-panel > header {
  min-height: 76px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 40px;
  gap: 12px;
  padding: 12px 14px;
  background: #0d181d;
}

#mineApp .mmo-panel > header::before {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--panel-accent);
  border-radius: 5px;
  color: #071116;
  background: var(--panel-accent);
  content: "H";
  font-family: "Audiowide", sans-serif;
  font-size: 19px;
  box-shadow: 5px 5px 0 #1c292f;
}

#mineApp .mmo-panel[data-panel="story"] > header::before { content: "!"; }
#mineApp .mmo-panel[data-panel="city"] > header::before { content: "H"; }
#mineApp .mmo-panel[data-panel="crew"] > header::before { content: "C"; }
#mineApp .mmo-panel[data-panel="avatar"] > header::before { content: "A"; }
#mineApp .mmo-panel[data-panel="leaders"] > header::before { content: "1"; }
#mineApp .mmo-panel > header > div { min-width: 0; }
#mineApp .mmo-panel > header span { color: var(--panel-accent); font-size: 11px; }
#mineApp .mmo-panel > header strong { overflow-wrap: anywhere; }
#mineApp .mmo-panel > header button { align-self: center; }
#mineApp .mmo-panel-body { padding: 0 16px 18px; }

#mineApp .mmo-panel-intro {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 -16px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  padding: 16px;
  background: #101b20;
}

#mineApp .mmo-panel-intro > i {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--panel-accent);
  border-radius: 5px;
  color: var(--panel-accent);
  background: #071116;
  font-family: "Audiowide", sans-serif;
  font-size: 16px;
  font-style: normal;
}

#mineApp .mmo-panel-intro div { min-width: 0; }
#mineApp .mmo-panel-intro span,
#mineApp .mmo-panel-intro strong,
#mineApp .mmo-panel-intro p { display: block; }
#mineApp .mmo-panel-intro span { color: var(--panel-accent); font-size: 11px; font-weight: 900; }
#mineApp .mmo-panel-intro strong { margin-top: 3px; font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
#mineApp .mmo-panel-intro p { margin: 4px 0 0; color: #9eb0b5; font-size: 12px; line-height: 1.45; }
#mineApp .mmo-panel-intro > b {
  align-self: start;
  border: 1px solid var(--panel-accent);
  border-radius: 4px;
  padding: 4px 6px;
  color: var(--panel-accent);
  font-size: 10px;
}

#mineApp .mmo-story-summary { padding-inline: 0; }
#mineApp .mmo-story-summary div strong { font-size: 14px; }
#mineApp .mmo-active-brief { border-radius: 5px; padding: 17px; }
#mineApp .mmo-active-brief > span,
#mineApp .mmo-work-order > span,
#mineApp .mmo-dailies > span,
#mineApp .mmo-party-card > span,
#mineApp .mmo-trade-card > span,
#mineApp .mmo-lot-settings > span,
#mineApp .mmo-furniture > span,
#mineApp .mmo-social-list > span { font-size: 11px; }
#mineApp .mmo-story-heading { margin-top: 20px; font-size: 11px; }
#mineApp .mmo-story-row { border-left: 3px solid #3b494f; }
#mineApp .mmo-story-row.completed { border-left-color: var(--lime); }
#mineApp .mmo-story-row.active,
#mineApp .mmo-story-row.available { border-left-color: var(--gold); }

#mineApp .mmo-city-pass {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 -16px;
  border: 0;
  border-bottom: 1px solid rgba(63, 225, 244, .25);
  border-radius: 0;
  padding: 17px 16px;
  background: #0e1c21;
}

#mineApp .mmo-city-pass > i {
  width: 54px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 2px solid var(--cyan);
  border-radius: 5px;
  color: #071216;
  background: var(--cyan);
  font-family: "Audiowide", sans-serif;
  font-size: 23px;
  font-style: normal;
  box-shadow: 5px 5px 0 #203038;
}

#mineApp .mmo-city-pass > div { min-width: 0; }
#mineApp .mmo-city-pass span { color: var(--cyan); font-size: 11px; }
#mineApp .mmo-city-pass strong { margin-top: 4px; color: #f7d34e; font-size: 18px; line-height: 1.2; overflow-wrap: anywhere; }
#mineApp .mmo-city-pass p { margin: 5px 0 0; color: #9eb0b5; font-size: 12px; }
#mineApp .mmo-city-pass > b { align-self: start; color: var(--lime); font-size: 10px; }
#mineApp .mmo-city-pass > button { grid-column: 2 / -1; min-height: 43px; color: #071216; border-color: var(--gold); background: var(--gold); font-size: 13px; }

#mineApp .mmo-city-vitals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 16px 0;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 5px;
  background: #0c171c;
}

#mineApp .mmo-city-vitals div { min-width: 0; border-right: 1px solid rgba(255, 255, 255, .09); padding: 11px 9px; }
#mineApp .mmo-city-vitals div:last-child { border-right: 0; }
#mineApp .mmo-city-vitals span,
#mineApp .mmo-city-vitals strong { display: block; overflow-wrap: anywhere; }
#mineApp .mmo-city-vitals span { color: #81949a; font-size: 10px; }
#mineApp .mmo-city-vitals strong { margin-top: 4px; color: #dfeae7; font-size: 13px; }
#mineApp .mmo-city-vitals div:first-child strong { color: var(--lime); }

#mineApp .mmo-panel-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 18px 0 9px;
  font-size: 11px;
}
#mineApp .mmo-panel-section-title span { color: #dfe8e6; }
#mineApp .mmo-panel-section-title b { color: #71858b; font-size: 10px; text-align: right; }

#mineApp .mmo-destination-list { gap: 8px; }
#mineApp .mmo-destination-list > .mmo-destination {
  --destination-accent: var(--cyan);
  min-height: 82px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  grid-template-rows: auto;
  gap: 11px;
  border-left: 4px solid var(--destination-accent);
  padding: 10px 11px;
  background: #101b20;
}
#mineApp .mmo-destination[data-tone="gold"] { --destination-accent: var(--gold); }
#mineApp .mmo-destination[data-tone="coral"] { --destination-accent: #ff7967; }
#mineApp .mmo-destination[data-tone="lime"] { --destination-accent: var(--lime); }
#mineApp .mmo-destination[data-tone="violet"] { --destination-accent: #d878e2; }
#mineApp .mmo-destination > i {
  grid-column: 1;
  grid-row: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--destination-accent);
  border-radius: 4px;
  color: var(--destination-accent);
  background: #071116;
  font-size: 11px;
  font-style: normal;
}
#mineApp .mmo-destination > div { min-width: 0; }
#mineApp .mmo-destination span,
#mineApp .mmo-destination strong,
#mineApp .mmo-destination small { display: block; }
#mineApp .mmo-destination span { color: var(--destination-accent); font-size: 10px; font-weight: 900; }
#mineApp .mmo-destination strong { margin-top: 2px; font-size: 14px; overflow-wrap: anywhere; }
#mineApp .mmo-destination small { margin-top: 3px; color: #92a4a9; font-size: 11px; line-height: 1.35; }
#mineApp .mmo-destination > b { align-self: center; color: var(--destination-accent); font-size: 10px; text-align: right; }

#mineApp .mmo-friend-search {
  margin: 0 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  padding-bottom: 16px;
}
#mineApp .mmo-friend-search input { background: #101c21; }
#mineApp .mmo-friend-search button { color: #08130c; border-color: var(--lime); background: var(--lime); }
#mineApp .mmo-social-list { gap: 8px; }
#mineApp .mmo-social-list > span { margin: 5px 1px 0; color: var(--lime); }
#mineApp .mmo-social-list article,
#mineApp .mmo-furniture article {
  min-height: 64px;
  border-left: 3px solid rgba(88, 223, 134, .62);
  padding: 9px 10px;
  background: #0f1a1f;
}
#mineApp .mmo-row-actions { flex-wrap: wrap; justify-content: flex-end; }
#mineApp .mmo-row-actions button { min-height: 34px; }
#mineApp .mmo-party-card { border-left: 4px solid var(--lime); background: #101c19; }

#mineApp .mmo-avatar-editor {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 15px;
  border-color: rgba(216, 120, 226, .3);
  border-left: 4px solid #d878e2;
  background: #151820;
}
#mineApp .mmo-avatar-stage {
  min-height: 238px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border: 1px solid rgba(216, 120, 226, .34);
  border-radius: 5px;
  padding: 9px;
  background: #091116;
}
#mineApp .mmo-avatar-stage > span,
#mineApp .mmo-avatar-stage > em { color: #d878e2; font-size: 10px; font-style: normal; font-weight: 900; text-align: center; }
#mineApp .mmo-avatar-swatch {
  grid-row: auto;
  width: 100%;
  min-height: 178px;
  border: 0;
  background: #0e1c22;
  box-shadow: inset 0 -28px #16242a;
}
#mineApp .mmo-avatar-swatch::before,
#mineApp .mmo-avatar-swatch::after {
  position: absolute;
  bottom: 22px;
  width: 56px;
  height: 2px;
  content: "";
  background: rgba(216, 120, 226, .6);
}
#mineApp .mmo-avatar-swatch::before { left: 4px; transform: rotate(-24deg); }
#mineApp .mmo-avatar-swatch::after { right: 4px; transform: rotate(24deg); }
#mineApp .mmo-avatar-swatch i { top: 34px; left: calc(50% - 20px); }
#mineApp .mmo-avatar-swatch b { top: 78px; left: calc(50% - 28px); }
#mineApp .mmo-avatar-fields { min-width: 0; display: grid; align-content: start; gap: 11px; }
#mineApp .mmo-avatar-fields label { color: #c7b2ca; font-size: 12px; font-weight: 800; }
#mineApp .mmo-avatar-fields :is(input, select) { display: block; width: 100%; margin-top: 5px; padding: 4px 8px; }
#mineApp .mmo-avatar-fields input[type="color"] { height: 43px; padding: 4px; }
#mineApp .mmo-lot-settings { border-left: 4px solid var(--cyan); }
#mineApp .mmo-furniture { border-left: 4px solid var(--gold); }

#mineApp .mmo-leader-tabs {
  gap: 6px;
  margin: 0 -2px 13px;
  padding: 0 2px 5px;
}
#mineApp .mmo-leader-tabs button { min-height: 40px; border-color: rgba(255, 121, 103, .25); }
#mineApp .mmo-leader-tabs button.active { color: #190c0a; border-color: #ff7967; background: #ff7967; }
#mineApp .mmo-leader-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 14px;
}
#mineApp .mmo-leader-podium article {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 121, 103, .28);
  border-bottom: 4px solid #ff7967;
  border-radius: 5px;
  padding: 12px 6px 10px;
  background: #131a1e;
  text-align: center;
}
#mineApp .mmo-leader-podium article[data-place="1"] { border-bottom-color: var(--gold); }
#mineApp .mmo-leader-podium article > i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #120e07; background: var(--gold); font-size: 12px; font-style: normal; font-weight: 900; }
#mineApp .mmo-leader-podium strong { width: 100%; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
#mineApp .mmo-leader-podium span { color: #ffad9f; font-size: 11px; overflow-wrap: anywhere; }
#mineApp .mmo-leader-list article { min-height: 64px; border-left: 3px solid rgba(255, 121, 103, .58); }
#mineApp .mmo-leader-list article > b { font-size: 18px; }

#mineApp .mmo-chat {
  overflow: hidden;
  border-color: rgba(63, 225, 244, .32);
  border-bottom: 3px solid var(--cyan);
  background: rgba(6, 13, 17, .95);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .36);
}
#mineApp .mmo-chat header { padding: 3px 5px; background: #0e191e; }
#mineApp .mmo-chat header button { border-radius: 4px; }
#mineApp .mmo-chat header button.active { color: #071216; background: var(--cyan); }
#mineApp .mmo-chat-messages { padding: 9px 11px; }
#mineApp .mmo-chat-messages p { border-bottom: 1px solid rgba(255, 255, 255, .05); padding-bottom: 4px; }

@media (min-width: 901px) and (max-width: 1180px) {
  #mineApp .mmo-panel { right: 136px; width: min(460px, calc(100% - 460px)); min-width: 400px; }
}

@media (max-width: 900px) {
  #mineApp .mmo-action-rail { width: 50px; }
  #mineApp .mmo-action-rail button { width: 36px; grid-template-columns: 1fr; padding: 0; text-align: center; }
  #mineApp .mmo-action-rail button b { display: none; }
  #mineApp .mmo-panel { right: 64px; width: min(486px, calc(100% - 76px)); min-width: 0; }
}

@media (max-width: 650px) {
  #mineApp .mmo-action-rail { width: 48px; padding: 4px; }
  #mineApp .mmo-action-rail button { width: 38px; height: 40px; }
  #mineApp .mmo-panel { inset: 8px 60px calc(var(--bottom-inset, 8px) + var(--dock-h, 105px) + 12px) 8px; width: auto; }
  #mineApp .mmo-panel > header { min-height: 68px; grid-template-columns: 40px minmax(0, 1fr) 38px; gap: 9px; padding: 10px; }
  #mineApp .mmo-panel > header::before { width: 38px; height: 38px; font-size: 15px; box-shadow: 3px 3px 0 #1c292f; }
  #mineApp .mmo-panel-body { padding: 0 11px 14px; }
  #mineApp .mmo-panel-intro { grid-template-columns: 45px minmax(0, 1fr); gap: 9px; margin-inline: -11px; padding: 13px 11px; }
  #mineApp .mmo-panel-intro > i { width: 43px; height: 43px; font-size: 13px; }
  #mineApp .mmo-panel-intro > b { grid-column: 2; justify-self: start; }
  #mineApp .mmo-panel-intro strong { font-size: 15px; }
  #mineApp .mmo-panel-intro p { font-size: 12px; }
  #mineApp .mmo-city-pass { grid-template-columns: 46px minmax(0, 1fr); gap: 9px; margin-inline: -11px; padding: 14px 11px; }
  #mineApp .mmo-city-pass > i { width: 44px; height: 54px; font-size: 18px; }
  #mineApp .mmo-city-pass > b { grid-column: 2; justify-self: start; }
  #mineApp .mmo-city-pass > button { grid-column: 1 / -1; }
  #mineApp .mmo-city-pass strong { font-size: 16px; }
  #mineApp .mmo-city-vitals { grid-template-columns: 1fr; }
  #mineApp .mmo-city-vitals div { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .09); }
  #mineApp .mmo-city-vitals div:last-child { border-bottom: 0; }
  #mineApp .mmo-panel-section-title { display: block; }
  #mineApp .mmo-panel-section-title b { display: block; margin-top: 3px; text-align: left; }
  #mineApp .mmo-destination-list > .mmo-destination { min-height: 90px; grid-template-columns: 42px minmax(0, 1fr); gap: 8px; padding: 9px; }
  #mineApp .mmo-destination > i { width: 38px; height: 38px; }
  #mineApp .mmo-destination > b { grid-column: 2; justify-self: start; }
  #mineApp .mmo-destination small { font-size: 11px; }
  #mineApp .mmo-friend-search { grid-template-columns: 1fr; }
  #mineApp .mmo-row-actions { width: 100%; justify-content: flex-start; }
  #mineApp .mmo-social-list article { align-items: flex-start; flex-wrap: wrap; }
  #mineApp .mmo-avatar-editor { grid-template-columns: 1fr; }
  #mineApp .mmo-avatar-stage { min-height: 214px; }
  #mineApp .mmo-lot-settings { grid-template-columns: 1fr; }
  #mineApp .mmo-leader-podium { grid-template-columns: 1fr; }
  #mineApp .mmo-leader-podium article { grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; justify-items: start; text-align: left; }
  #mineApp .mmo-leader-podium strong { font-size: 13px; }
}

/* Multi-city property network */
#mineApp .mmo-property-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  position: sticky;
  top: 0;
  z-index: 4;
  margin: 0 -2px 14px;
  padding: 7px 2px;
  background: rgba(8, 16, 20, .97);
}
#mineApp .mmo-property-tabs button {
  min-width: 0;
  min-height: 42px;
  border: 1px solid rgba(120, 218, 225, .25);
  border-radius: 5px;
  color: #c5d9dc;
  background: #132127;
  font-size: 12px;
  font-weight: 900;
}
#mineApp .mmo-property-tabs button.active {
  border-color: var(--gold);
  color: #151006;
  background: var(--gold);
}
#mineApp .mmo-property-heading {
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
  border-left: 4px solid var(--cyan);
  padding: 12px 13px;
  background: #101c21;
}
#mineApp .mmo-property-heading > span { color: var(--cyan); font-size: 11px; font-weight: 900; }
#mineApp .mmo-property-heading > strong { color: #f5fbfc; font-size: 17px; line-height: 1.2; }
#mineApp .mmo-property-heading > p { margin: 0; color: #aebfc2; font-size: 13px; line-height: 1.45; }
#mineApp .mmo-property-heading > label { display: flex; align-items: center; gap: 9px; margin-top: 5px; color: #ffdc65; font-size: 11px; font-weight: 900; }
#mineApp .mmo-property-heading select { min-height: 38px; border-color: rgba(255, 201, 40, .4); color: #fff1b3; background: #202119; font-size: 13px; }
#mineApp .mmo-city-grid,
#mineApp .mmo-deed-list,
#mineApp .mmo-market-list,
#mineApp .mmo-vacant-list { display: grid; gap: 9px; }
#mineApp .mmo-city-grid article,
#mineApp .mmo-deed-card,
#mineApp .mmo-market-deed,
#mineApp .mmo-vacant-lot {
  min-width: 0;
  border: 1px solid rgba(129, 180, 187, .24);
  border-left: 4px solid #5f9ba5;
  border-radius: 6px;
  padding: 12px;
  background: #111b20;
}
#mineApp .mmo-city-grid article[data-theme="genesis-harbor"] { border-left-color: #3fe1f4; }
#mineApp .mmo-city-grid article[data-theme="red-mesa"] { border-left-color: #ff795f; }
#mineApp .mmo-city-grid article[data-theme="ironpeak"] { border-left-color: #7ee0b0; }
#mineApp .mmo-city-grid article[data-theme="frostline"] { border-left-color: #8ecbff; }
#mineApp .mmo-city-grid article[data-theme="greenfield-county"] { border-left-color: #d9dc68; }
#mineApp .mmo-city-grid article > div:first-child,
#mineApp .mmo-deed-card > header,
#mineApp .mmo-market-deed > header { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 9px; }
#mineApp .mmo-city-grid article i,
#mineApp .mmo-deed-card header i {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 201, 40, .42);
  border-radius: 5px;
  color: #171006;
  background: var(--gold);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}
#mineApp .mmo-city-grid article span,
#mineApp .mmo-deed-card header span,
#mineApp .mmo-market-deed header span { display: block; color: #76c8d1; font-size: 10px; font-weight: 900; }
#mineApp .mmo-city-grid article strong,
#mineApp .mmo-deed-card header strong,
#mineApp .mmo-market-deed header strong { display: block; color: #f4fafb; font-size: 15px; overflow-wrap: anywhere; }
#mineApp .mmo-city-grid article p,
#mineApp .mmo-market-deed p { margin: 9px 0; color: #afc0c3; font-size: 13px; line-height: 1.4; }
#mineApp .mmo-city-grid article small { display: block; margin-bottom: 9px; color: #d2dedf; font-size: 12px; }
#mineApp .mmo-city-grid article > button,
#mineApp .mmo-setup-command { width: 100%; min-height: 40px; border: 1px solid rgba(63, 225, 244, .42); border-radius: 5px; color: #dffbff; background: #16323a; font-size: 12px; font-weight: 900; }
#mineApp .mmo-city-grid article > button:disabled { color: #102026; background: #60d7e4; opacity: 1; }
#mineApp .mmo-deed-card.active { border-color: rgba(255, 201, 40, .45); border-left-color: var(--gold); box-shadow: inset 0 0 0 1px rgba(255, 201, 40, .08); }
#mineApp .mmo-deed-card header > b { color: #ffda61; font-size: 10px; }
#mineApp .mmo-deed-stats,
#mineApp .mmo-market-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 10px 0; }
#mineApp .mmo-deed-stats span,
#mineApp .mmo-market-metrics span { min-width: 0; border: 1px solid rgba(255,255,255,.07); padding: 7px 4px; color: #c6d6d8; background: #0d161a; font-size: 10px; font-weight: 800; text-align: center; overflow-wrap: anywhere; }
#mineApp .mmo-setup-command { margin-top: 9px; border-color: rgba(126, 224, 176, .45); color: #dbffed; background: #17352a; }
#mineApp .mmo-listing-form { display: grid; grid-template-columns: minmax(0, 1fr) 92px 58px; gap: 6px; margin-top: 9px; }
#mineApp .mmo-listing-form :is(select, input, button) { width: 100%; min-height: 39px; font-size: 12px; }
#mineApp .mmo-listing-form label { display: grid; grid-template-columns: 18px 1fr; align-items: center; color: #ffda61; font-size: 13px; font-weight: 900; }
#mineApp .mmo-listed-note { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 9px 0 0; color: #ffda61; font-size: 12px; }
#mineApp .mmo-listed-note button { min-height: 34px; }
#mineApp .mmo-vacant-lot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; }
#mineApp .mmo-vacant-lot span { display: block; color: #7ee0b0; font-size: 10px; font-weight: 900; }
#mineApp .mmo-vacant-lot strong { color: #f3f8f9; font-size: 14px; }
#mineApp .mmo-market-deed header { grid-template-columns: minmax(0, 1fr) auto; }
#mineApp .mmo-market-deed header > b { color: #ffda61; font-size: 18px; }
#mineApp .mmo-market-buy { display: grid; grid-template-columns: 112px 1fr; gap: 7px; }
#mineApp .mmo-market-buy :is(select, button) { min-height: 42px; font-size: 13px; font-weight: 900; }

@media (max-width: 650px) {
  #mineApp .mmo-property-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #mineApp .mmo-property-tabs button { min-height: 40px; font-size: 12px; }
  #mineApp .mmo-city-grid article > div:first-child,
  #mineApp .mmo-deed-card > header { grid-template-columns: 42px minmax(0, 1fr); }
  #mineApp .mmo-deed-card header > b { grid-column: 2; justify-self: start; }
  #mineApp .mmo-deed-stats,
  #mineApp .mmo-market-metrics { grid-template-columns: 1fr; }
  #mineApp .mmo-listing-form { grid-template-columns: 1fr; }
  #mineApp .mmo-vacant-lot { align-items: flex-start; flex-direction: column; }
  #mineApp .mmo-market-buy { grid-template-columns: 1fr; }
}
