@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("assets/fonts/dm-sans-variable.ttf") format("truetype");
}
:root {
  font-family: "DM Sans", system-ui, sans-serif;
  color: #192e2b;
  background: #f5f8f7;
  font-synthesis: none;
  --page: #f5f8f7;
  --surface: #fff;
  --ink: #192e2b;
  --muted: #53675e;
  --green: #087f67;
  --mint: #e4f5ed;
  --line: #dce6e0;
  --error: #a3352b;
  --warning: #865500;
  --warning-bg: #fff4db;
  --radius: 18px;
  --nav-height: 82px;
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
summary {
  -webkit-tap-highlight-color: #087f6718;
  touch-action: manipulation;
  scroll-margin-block: 100px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  background: #e7ece9;
  color: #53675e;
}
a {
  color: inherit;
  text-decoration: none;
}
:focus-visible {
  outline: 3px solid #087f67;
  outline-offset: 4px;
}
main:focus {
  outline: none;
}
svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  vertical-align: middle;
}
button svg {
  pointer-events: none;
}
img {
  display: block;
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
body.app-booting .shell, body.app-booting .bottom-nav { display: none; }

h1 {
  font-size: 1.875rem;
  line-height: 1.2;
  letter-spacing: -0.8px;
  font-weight: 650;
  margin: 0px;
  text-wrap: balance;
}
h2 {
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.35px;
  font-weight: 650;
  margin-bottom: 0;
}
h3 {
  font-size: 1rem;
  line-height: 1.35;
  letter-spacing: -0.2px;
  font-weight: 650;
  margin-bottom: 0;
}
p {
  margin-bottom: 12px;
}
small,
.small {
  font-size: 0.8125rem;
}
.muted,
.small,
.note {
  color: var(--muted);
}
.note {
  font-size: 0.8125rem;
  line-height: 1.55;
  margin: 12px 0 0;
}
.positive {
  color: var(--green);
}
.numeric,
.amount,
.metric strong,
.summary-row strong {
  font-variant-numeric: tabular-nums;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -100px;
  z-index: 20;
  background: var(--green);
  color: white;
  padding: 12px 18px;
  border-radius: 10px;
}
.skip-link:focus {
  top: 12px;
}
.shell {
  --sidebar-width: 256px;
  width: 100%;
  margin: auto;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  padding: 28px 16px 16px;
  border-right: 1px solid #e5e9e8;
  background: #fff;
  height: 100dvh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 1.5625rem;
  font-weight: 700;
  letter-spacing: -1px;
  min-height: 44px;
}
.brand svg, .brand .brand-logo {
  color: #139879;
  width: 34px;
  height: 34px;
}
.brand-dot {
  color: var(--green);
}
.sidebar-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.sidebar-brand { min-width: 0; flex: 1; gap: 8px; }
.sidebar-brand svg, .sidebar-brand .brand-logo { width: 42px; height: 42px; flex: none; }
.sidebar-brand-copy { display: grid; gap: 0; min-width: 0; font-size: 1.125rem; line-height: 1.2; letter-spacing: -.65px; }
.side-caption { font-size: .8125rem; color: #65716f; font-weight: 400; letter-spacing: 0; line-height: 1.3; }
.sidebar nav {
  display: grid;
  gap: 4px;
  align-content: start;
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 5px;
  margin: -5px;
  scrollbar-width: thin;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  min-height: 48px;
}
.nav-item:hover {
  background: #eef4f0;
}
.nav-item.active {
  color: var(--green);
  background: var(--mint);
  font-weight: 650;
}
.sidebar-nav-item {
  padding: 6px 10px;
  gap: 12px;
  min-height: 48px;
  border-radius: 12px;
  color: #263530;
  font-size: 1rem;
  font-weight: 500;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
}
.sidebar-nav-icon {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: var(--nav-icon-color);
  background: var(--nav-icon-bg);
}
.sidebar-nav-icon svg { width: 21px; height: 21px; stroke-width: 1.8; }
.sidebar-nav-item .nav-label { min-width: 0; overflow-wrap: anywhere; }
.nav-tone-home { --nav-icon-color: #00846b; --nav-icon-bg: #e3f9f1; }
.nav-tone-miners { --nav-icon-color: #198371; --nav-icon-bg: #e8f4f0; }
.nav-tone-invest { --nav-icon-color: #7c3aed; --nav-icon-bg: #f0eaff; }
.nav-tone-wallet { --nav-icon-color: #1764d8; --nav-icon-bg: #e8f1ff; }
.nav-tone-profile { --nav-icon-color: #52606a; --nav-icon-bg: #eef0f2; }
.nav-tone-notifications { --nav-icon-color: #c4520b; --nav-icon-bg: #fff0e5; }
.nav-tone-levels { --nav-icon-color: #a36c09; --nav-icon-bg: #fff6dc; }
.nav-tone-invite { --nav-icon-color: #bc2877; --nav-icon-bg: #fcebf5; }
.nav-tone-news { --nav-icon-color: #008c80; --nav-icon-bg: #e0faf6; }
.nav-tone-settings, .nav-tone-help { --nav-icon-color: #53606b; --nav-icon-bg: #f0f1f3; }
.sidebar-menu-chevron { width: 16px; height: 16px; margin-left: auto; }
[data-miner-menu-toggle][aria-expanded="false"] .sidebar-menu-chevron { transform: rotate(-90deg); }
.sidebar-submenu { display: grid; gap: 2px; margin: 4px 0 6px 26px; padding-left: 12px; border-left: 1px solid #e0e5e3; }
.sidebar-sub-link { display: flex; align-items: center; min-height: 44px; padding: 7px 10px; font-size: .875rem; line-height: 1.35; color: #53615c; border-radius: 8px; }
.sidebar-sub-link:hover { background: #f6f8f7; color: #263530; }
.sidebar-sub-link.active { background: #f0f2f1; color: #263530; font-weight: 650; }
.sidebar-utilities { display: grid; gap: 4px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #e5e9e8; }
.sidebar-nav-item:hover { background: #f3f7f5; }
.sidebar-nav-item.active { background: #087f67; color: #fff; font-weight: 650; }
.sidebar-nav-item.active .sidebar-nav-icon { color: #fff; background: transparent; }
.sidebar-nav-item.active:hover { background: #076e5a; }
.sidebar-nav-item:focus-visible { outline-offset: 2px; }
.sidebar-foot {
  margin-top: auto;
  flex-shrink: 0;
}
.sidebar-account { display: flex; align-items: center; gap: 2px; padding: 6px; background: #f1f3f3; border-radius: 12px; }
.sidebar-account-link { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; min-height: 48px; padding: 4px; border-radius: 8px; }
.sidebar-account-avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; overflow: hidden; background: #53616a; color: #fff; font-size: .8125rem; font-weight: 650; }
.sidebar-account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-account-avatar svg { width: 18px; height: 18px; }
.sidebar-account-copy { display: grid; min-width: 0; gap: 0px; }
.sidebar-account-copy strong { font-size: .875rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-account-copy small { color: #68716f; font-size: .8125rem; }
.sidebar-account-link[aria-current="page"] { background: transparent; }
.sidebar-signout { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 8px; border: 0; border-radius: 8px; color: #69746f; background: transparent; }
.sidebar-signout:hover { background: #e2e9e5; color: #263530; }
.sidebar-signout svg { width: 20px; height: 20px; }

.demo-tag {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #4f6459;
  background: #e9eeeb;
  border-radius: 6px;
  padding: 5px 8px;
}
.demo-control-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.demo-control-actions .account-button { min-height: 44px; padding: 8px 12px; font-size: .8125rem; }
.demo-miner-controls { margin-top: 20px; }
.demo-miner-controls .demo-control-actions { margin-top: 12px; }
@media (max-width: 540px) {
  .demo-control-actions { width: 100%; }
  .demo-control-actions .account-button { flex: 1 1 auto; }
  .referral-row:has([data-demo-action]) { flex-wrap: wrap; }
}
.workspace {
  padding: 0 40px 96px 40px;
  min-width: 0;
}
.topbar {
  height: 90px;
  display: none;
  justify-content: space-between;
  align-items: center;
}
.header-actions {
  display: flex;
  margin-left: auto;
  gap: 12px;
  align-items: center;
}
.header-actions[hidden] { display: none; }
.header-actions .header-notifications { width: 36px; height: 36px; color: var(--ink); }
.header-notifications svg { width: 21px; height: 21px; }
.header-notifications.icon-button i { width: 11px; height: 11px; top: 3px; right: 3px; background: #e53935; border: 2px solid #fff; }
.header-level { display: inline-grid; place-items: center; width: 36px; height: 40px; flex-shrink: 0; border-radius: 8px; }
.header-level .level-badge { --badge-size: 36px; }
.header-level:focus-visible, .header-notifications:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: white;
  position: relative;
  flex-shrink: 0;
}
.icon-button:hover {
  background: var(--mint);
}
.icon-button i {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  border: 1px solid white;
}
.avatar {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #e9e5da;
  color: #635742;
  font-size: 0.875rem;
  font-weight: 600;
  flex-shrink: 0;
}
.mobile-brand,
.bottom-nav {
  display: none;
}
main {
  padding: 30px 0 0;
}
.page-head {
  margin-bottom: 24px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}
.page-head p {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0;
}
.date {
  font-size: 0.8125rem;
  color: var(--muted);
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  min-width: 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 22px 0 10px;
}
.section-head:first-child {
  margin-top: 0;
}
.text-link {
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  font-size: 0.875rem;
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
}
.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.text-link svg {
  width: 16px;
  height: 16px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--green);
  color: white;
  text-align: center;
}
.button:hover:not(:disabled) {
  background: #066852;
}
.button.secondary {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}
.button.secondary:hover {
  background: #edf5f0;
  border-color: #aecaba;
}
.button.soft {
  color: var(--green);
  background: var(--mint);
}
.button.soft:hover {
  background: #cfeadc;
}
.button.full {
  width: 100%;
}
.button svg {
  width: 18px;
  height: 18px;
}
.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--muted);
}
.balance {
  background: #e6f3ec;
  border-color: #cfe3d6;
}
.balance .icon-button {
  background: transparent;
  border: none;
}
.balance .amount {
  font-size: 2.5rem;
  letter-spacing: -1.4px;
  font-weight: 650;
  line-height: 1.15;
  margin: 6px 0 22px;
  overflow-wrap: anywhere;
}
.balance .button-row .button {
  flex: 1;
}
.home-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
}
.home-grid .section-head {
  margin-top: 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  min-width: 0;
}
.metric span {
  color: var(--muted);
  font-size: 0.8125rem;
  display: block;
}
.metric strong {
  font-size: 1.4375rem;
  letter-spacing: -0.5px;
  font-weight: 650;
  display: block;
  margin: 5px 0 1px;
  overflow-wrap: anywhere;
}
.metric small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}
.active-list {
  display: grid;
  gap: 10px;
}
.active-miner {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  min-width: 0;
}
.active-miner:hover {
  border-color: #89b8a5;
}
.product-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.product-image img {
  object-fit: contain;
  height: 100%;
  width: 100%;
}
.product-scene img {
  border-radius: 12px;
}
.product-hero:has(.product-scene) {
  background: #f3f6f8;
}
.research-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  max-width: 640px;
}
.research-summary span { display: block; color: var(--muted); font-size: .875rem; margin-top: 4px; }
.research-tag { display: inline-block; font-size: .75rem; line-height: 1.4; font-weight: 500; color: #506c66; }
.market-values { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0 12px; }
.market-values strong { display: block; font-size: clamp(1.25rem, 3vw, 1.75rem); color: var(--green); }
.market-values span { font-size: .875rem; color: var(--muted); }
.market-details { margin-top: 18px; }
.market-details .notice { margin-top: 14px; }
.market-breakdown { margin: 14px 0; }
.market-breakdown > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.market-breakdown dd { margin: 0; font-weight: 600; }
.research-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: .875rem; }
.product-image img[src$="z15k.jpg"] { max-width: 200px; max-height: 242px; }
.product-image.thumb {
  width: 62px;
  height: 66px;
  flex-shrink: 0;
}
.image-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.8125rem;
  background: #edf3ef;
  padding: 8px;
}
.image-fallback svg {
  margin: auto;
  display: block;
}
.miner-info {
  flex: 1;
  min-width: 0;
}
.miner-info h3 {
  overflow-wrap: anywhere;
}
.miner-info .small {
  margin-top: 5px;
  display: block;
}
.row-chevron {
  color: #678475;
  width: 17px;
  height: 17px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #087457;
  background: #e6f5ed;
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
}
.status:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.status.offline,
.status.failed {
  color: #a3352b;
  background: #fff0ee;
}
.status.stale,
.status.paused,
.status.maintenance,
.status.pending,
.status.starting {
  color: var(--warning);
  background: var(--warning-bg);
}
.status.expired,
.status.neutral {
  color: var(--muted);
  background: #edf1ef;
}
.catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
#catalog-results, .catalog:has(> .offer-card) {
  grid-template-columns: minmax(0, 1fr);
  max-width: 640px;
  gap: 24px;
}
@media (min-width: 1081px) {
  #catalog-results, .catalog:has(> .offer-card) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }
}
.offer-card {
  min-width: 0;
  padding: clamp(12px, 2vw, 12px);
  border: 1px solid #d5e3df;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 8px 28px #143c2f05;
}
.offer-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 7 / 6;
  min-height: 320px;
  padding: 12px;
  background:
    linear-gradient(125deg, #fff0 20%, #ffffffb3 25%, #fff0 31%, #fff0 66%, #ffffffb3 72%, #fff0 79%),
    linear-gradient(180deg, #f1f5f8, #e8edf1 64%, #f9fafb 67%, #e9eef3);
  border-radius: 20px;
}
.offer-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  position: relative;
  z-index: 1;
  padding: 8px 8px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
}
.offer-title-copy { flex: 1; min-width: 0; }
.offer-title-copy h2 { overflow-wrap: anywhere; }
.offer-availability {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #d6ede4;
  border-radius: 999px;
  background: #ffffffd9;
  color: #087f67;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.offer-availability::before {
  content: "";
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #0aaf70;
}
.offer-availability.is-unavailable { color: var(--muted); border-color: var(--line); }
.offer-availability.is-unavailable::before { background: #82908b; }
.offer-availability:not(.is-unavailable)::before {
  animation: availability-pulse 2s var(--ease-in-out) infinite;
}
.offer-availability:not(.is-unavailable)::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0aaf70;
  pointer-events: none;
  animation: availability-ripple 2s var(--ease-in-out) infinite;
}
@keyframes availability-ripple {
  0% { transform: translateY(-50%) scale(1); opacity: .45; }
  75%, 100% { transform: translateY(-50%) scale(2.8); opacity: 0; }
}
@keyframes availability-pulse {
  0%, 100% { transform: scale(.9); opacity: .55; }
  50% { transform: scale(1.2); opacity: 1; }
}
.count-up {
  display: inline-grid;
  font-variant-numeric: tabular-nums;
}
/* Reserve the final width throughout the count without announcing each frame. */
.count-up::after {
  content: attr(data-count-final);
  visibility: hidden;
  grid-area: 1 / 1;
  white-space: nowrap;
}
.count-up-value { grid-area: 1 / 1; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .offer-availability:not(.is-unavailable)::before { animation: none; }
  .offer-availability:not(.is-unavailable)::after { animation: none; opacity: 0; }
}
.offer-title h2 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.5px;
  color: #102723;
}
.offer-title p {
  margin: 0px;
  color: #58716b;
  font-size: 12px;
}
.offer-hero .offer-image {
  width: 74%;
  height: 100%;
  min-height: 0;
  max-width: none;
  margin: 0 auto;
  padding: 8px 0 36px;
  background: transparent;
  mix-blend-mode: multiply;
}
.offer-hero .offer-image.product-scene { width: 100%; padding: 0; }
.offer-hero .offer-image img { border-radius: 0; }
.offer-hero.offer-hero--showcase {
  overflow: hidden;
  background: #f2f5f8;
}
.offer-hero--showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, #f5f8fbed 0%, #f5f8fb94 20%, #f5f8fb00 46%);
}
.offer-hero.offer-hero--showcase .offer-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  mix-blend-mode: normal;
}
.offer-hero--showcase .offer-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.offer-financials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 0;
}
.offer-financials > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 12px 16px 8px 16px;
  border: 1px solid #dce8e9;
  border-radius: 14px;
}
.offer-financials dt, .offer-cost dd > span {
  font-size: 0.875rem;
  line-height: 1.4;
  color: #56706a;
}
.offer-financials dd {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0;
}
.offer-financials dt:not(.sr-only), .offer-financials dd > strong, .offer-financials dd > span {
  position: relative;
  z-index: 1;
}
.offer-financials dd > strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: #102723;
}
.offer-cost {
  background: #f5f8fa;
}
.offer-cost dd > span { display: block; }
.offer-financials .offer-earnings { background: #edfbf5; border-color: #d6eee3; }
.offer-earnings dt { order: 1; }
.offer-earnings dd > strong { color: #087f67; }
.offer-financials > div::before {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -24px;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: #e9f1f3;
}
.offer-financials .offer-earnings::before { background: #e0f7ed; }
.offer-watermark {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  color: #bdcfd3;
  opacity: .62;
  pointer-events: none;
}
.offer-earnings .offer-watermark { color: #a8dec9; }
.offer-action {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 24px;
  width: 100%;
  min-height: 64px;
  margin-top: 12px;
  border-radius: 14px;
  font-size: 1.0625rem;
  font-weight: 650;
}
.offer-action > span { grid-column: 2; text-align: center; }
.offer-action svg { grid-column: 3; }
.offer-action.offer-rent-action {
  grid-template-columns: minmax(0, 1fr) 32px;
  gap: 16px;
  padding-inline: 24px;
  font-size: 1.25rem;
  font-weight: 700;
}
.offer-rent-action > span { grid-column: 1; text-align: left; }
.offer-rent-action svg { grid-column: 2; width: 32px; height: 32px; stroke-width: 2; }
.offer-note {
  text-align: center;
  font-size: 0.8125rem;
  color: #5a726c;
  margin: 13px 0 1px;
}
@media (max-width: 540px) {
  .offer-hero {
    min-height: 0;
    padding: 8px;
    border-radius: 16px;
  }
  .offer-availability { font-size: .75rem; padding: 5px 8px; }
  .offer-availability:not(.is-unavailable)::after { left: 8px; }
  .offer-hero .offer-image { padding-bottom: 24px; }
  .offer-financials { gap: 8px; margin-top: 10px; }
  .offer-financials > div { padding: 12px 12px 8px; border-radius: 12px; }
  .offer-financials dt, .offer-cost dd > span { font-size: 0.8125rem; }
  .offer-financials dd > strong { font-size: 1.5rem; letter-spacing: -0.6px; }
  .offer-financials > div::before { width: 82px; height: 82px; right: -32px; }
  .offer-watermark { width: 36px; height: 36px; right: 4px; opacity: .4; }
  .offer-action { min-height: 60px; font-size: 1.0625rem; border-radius: 12px; margin-top: 10px; }
  .offer-action.offer-rent-action { font-size: 1.125rem; padding-inline: 20px; }
  .offer-note { font-size: 0.75rem; margin-top: 11px; }
}
@media (max-width: 340px) {
  .offer-financials > div { padding-inline: 10px; }
  .offer-watermark { right: -9px; opacity: .24; }
}
.miner-card {
  display: block;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.miner-card:hover {
  border-color: #76b19a;
}
.miner-card:focus-visible {
  outline-offset: 3px;
}
.card-photo {
  height: 180px;
  padding: 24px;
  background: #edf3ef;
  position: relative;
}
.card-photo .product-image {
  height: 100%;
}
.coin {
  position: absolute;
  left: 14px;
  top: 12px;
  border-radius: 50%;
  background: #fff7e9;
  color: #a66a14;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  font-weight: 600;
}
.card-body {
  padding: 18px;
}
.card-body .small {
  margin-top: 7px;
  display: block;
}
.card-price {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  align-items: baseline;
  font-size: 1.375rem;
  font-weight: 650;
  margin: 16px 0 3px;
  letter-spacing: -0.5px;
}
.card-price small {
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: 0;
  font-weight: 400;
}
.card-action {
  margin-top: 16px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--green);
  font-weight: 600;
  font-size: 0.875rem;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.card-action svg {
  width: 17px;
}
.invest-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  background: #eaf2ed;
  border: 1px solid #d7e5db;
  padding: 20px;
  border-radius: 14px;
}
.invest-banner > svg {
  color: var(--green);
}
.invest-banner > div {
  flex: 1;
  min-width: 0;
}
.invest-banner p {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 4px 0 0;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  background: #e9efeb;
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 20px;
}
.tabs a {
  flex: 1;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px;
  font-size: 0.875rem;
  color: var(--muted);
  border-radius: 9px;
}
.tabs a.active {
  background: white;
  color: var(--green);
  box-shadow: 0 1px 3px #12312310;
  font-weight: 600;
}
.search {
  display: flex;
  gap: 10px;
  align-items: center;
  background: white;
  border: 1px solid #b6c9bd;
  border-radius: 12px;
  padding: 2px 12px;
  margin-bottom: 8px;
}
.search:focus-within {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}
.search input {
  border: none;
  min-width: 0;
  width: 100%;
  background: transparent;
  padding: 12px 0;
  outline: none;
}
.search input:focus-visible {
  outline: none;
}
.search .icon-button {
  border: none;
}
.result-count {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 10px 0 16px;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: -10px 0 10px;
  color: var(--muted);
  font-size: 0.875rem;
}
.back:hover {
  color: var(--green);
}
.back svg {
  width: 18px;
}
.detail-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.detail-heading > div {
  min-width: 0;
}
.detail-heading p {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 5px 0 0;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.product-hero {
  background: #eaf1ec;
  border-radius: 18px;
  padding: 28px;
}
.product-hero .product-image {
  height: 230px;
}
.product-hero .small {
  margin: 13px 0 0;
  text-align: center;
}
.rental-form .price {
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -1px;
}
.price small {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
}
.included {
  color: var(--green);
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 7px 0 16px;
}
.included svg {
  width: 16px;
}
fieldset {
  padding: 0;
  margin: 16px 0;
  border: none;
  min-width: 0;
}
legend,
.field-label {
  font-size: 0.875rem;
  font-weight: 600;
  display: block;
}
.term-options,
.presets,
.period-options {
  display: flex;
  gap: 8px;
}
.term-options label {
  flex: 1;
  position: relative;
}
.term-options input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.term-options span,
.presets button,
.period-options button {
  min-height: 44px;
  border: 1px solid #b6c9bd;
  background: white;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  font-size: 0.875rem;
}
.term-options input:checked + span,
.presets button[aria-pressed="true"],
.period-options button[aria-pressed="true"] {
  border-color: var(--green);
  background: var(--mint);
  color: var(--green);
  font-weight: 600;
}
.term-options input:focus-visible + span {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}
.term-options span {
  cursor: pointer;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 9px 0;
  font-size: 0.875rem;
}
.summary-row > span:first-child {
  color: var(--muted);
}
.summary-row strong {
  text-align: right;
  overflow-wrap: anywhere;
}
.summary-row.total {
  border-top: 1px solid var(--line);
  margin: 12px 0;
  padding-top: 16px;
  font-size: 1rem;
}
.summary-row.total strong {
  font-size: 1.4rem;
}
.rental-summary {
  margin: 16px 0;
}
.rental-dates {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 8px 0 0;
}
.disclosure {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  padding: 0 20px;
  margin-top: 16px;
}
summary {
  cursor: pointer;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
summary:after {
  content: "+";
  color: var(--green);
  font-size: 1.2rem;
}
details[open] > summary:after {
  content: "−";
}
.disclosure > div {
  padding: 0 0 16px;
}
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.spec span {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 5px;
}
.spec strong {
  font-weight: 600;
}
.notice {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--warning-bg);
  color: #744b05;
  font-size: 0.875rem;
  margin: 14px 0;
}
.notice.neutral {
  background: #edf3ef;
  color: var(--muted);
}
.notice p {
  margin-bottom: 8px;
}
.notice p:last-child {
  margin: 0;
}
.telemetry-top {
  display: flex;
  gap: 20px;
  align-items: center;
}
.telemetry-top .product-image {
  width: 110px;
  height: 110px;
  background: #edf3ef;
  border-radius: 14px;
  padding: 10px;
}
.telemetry-top > div:last-child {
  flex: 1;
  min-width: 0;
}
.telemetry-value {
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -0.8px;
}
.telemetry-value small {
  font-size: 0.875rem;
  letter-spacing: 0;
  font-weight: 400;
  margin-left: 4px;
}
.telemetry-panel .metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.telemetry-panel .metric {
  padding: 14px;
  border-radius: 12px;
  background: #f8faf8;
}
.full-span {
  grid-column: 1/-1;
}
.chart-head {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 15px;
}
.chart-head .small {
  margin-top: 5px;
}
.period-options button {
  padding: 9px 10px;
  min-width: 44px;
}
.chart {
  width: 100%;
  height: 180px;
  display: block;
}
.chart text {
  font-family: inherit;
  font-size: 12px;
  fill: var(--muted);
}
.chart-foot {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin: 12px 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}
.data-table th,
.data-table td {
  padding: 8px 0;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.data-table td:last-child,
.data-table th:last-child {
  text-align: right;
}
.pool-summary {
  background: #e7f2eb;
  border: 1px solid #d0e4d8;
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 22px;
}
.pool-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.pool-top .product-image {
  width: 70px;
  height: 62px;
}
.pool-top > div:nth-child(2) {
  flex: 1;
}
.pool-top p {
  margin: 5px 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}
.pool-capacity {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 0.8125rem;
  margin: 16px 0 8px;
}
progress {
  appearance: none;
  border: none;
  width: 100%;
  height: 7px;
  border-radius: 6px;
  display: block;
  overflow: hidden;
  background: #ccdfd3;
}
progress::-webkit-progress-bar {
  background: #ccdfd3;
}
progress::-webkit-progress-value {
  background: #168b6c;
  border-radius: 6px;
}
progress::-moz-progress-bar {
  background: #168b6c;
}
.amount-field {
  position: relative;
}
.amount-field > span {
  position: absolute;
  left: 16px;
  top: 16px;
  color: var(--muted);
  font-size: 1.375rem;
}
.amount-input {
  background: #fafcfb;
  border: 1px solid #a4bbac;
  border-radius: 11px;
  padding: 14px 16px 14px 38px;
  width: 100%;
  min-width: 0;
  font-size: 1.625rem;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
.amount-input[aria-invalid="true"] {
  border-color: var(--error);
}
.presets {
  margin: 12px 0 18px;
}
.presets button {
  flex: 1;
  padding-inline: 8px;
}
.field-help {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 8px 0;
}
.checkbox-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-height: 44px;
  padding: 8px 0;
  margin: 14px 0;
  font-size: 0.875rem;
  cursor: pointer;
}
.checkbox-row input {
  accent-color: var(--green);
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  margin: 1px 0 0;
}
.form-error {
  color: var(--error);
  font-size: 0.875rem;
  margin: 10px 0;
}
.form-error:empty {
  display: none;
}
.stack {
  display: grid;
  gap: 18px;
}
.allocation {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
}
.allocation .product-image {
  width: 56px;
  height: 54px;
}
.allocation > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.allocation .small {
  display: block;
  margin-top: 4px;
}
.position-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.position-card:last-child {
  border: none;
  padding-bottom: 0;
}
.position-card > div {
  flex: 1;
}
.position-card .small {
  margin-top: 5px;
  display: block;
}
.position-card strong {
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}
.wallet-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 24px;
}
.transaction {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 13px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  min-width: 0;
}
.transaction:last-child {
  border: none;
}
.transaction:hover h3 {
  color: var(--green);
}
.transaction-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: #eaf3ee;
  border-radius: 12px;
  color: var(--green);
  flex-shrink: 0;
}
.transaction > div {
  flex: 1;
  min-width: 0;
}
.transaction h3 {
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}
.transaction .small {
  display: block;
  margin-top: 4px;
}
.transaction-amount {
  text-align: right;
  flex-shrink: 0;
}
.transaction-amount strong {
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}
.transaction-amount .small {
  font-size: 0.75rem;
}
.profile-card {
  display: flex;
  align-items: center;
  gap: 18px;
}
.profile-card .avatar {
  width: 64px;
  height: 64px;
  font-size: 1.25rem;
}
.profile-card p {
  color: var(--muted);
  margin: 5px 0 0;
  font-size: 0.875rem;
}
.profile-row {
  display: flex;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 64px;
  padding: 14px 0;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.profile-row:last-child {
  border-bottom: none;
}
.profile-row > span {
  flex: 1;
}
.profile-row .small {
  display: block;
  margin-top: 4px;
}
.profile-row svg {
  color: var(--green);
}
.empty {
  text-align: center;
  padding: 30px 20px;
  border: 1px dashed #b5cbbd;
  border-radius: 16px;
  background: #f9fbfa;
}
.empty > svg {
  width: 32px;
  height: 32px;
  color: var(--green);
  margin-bottom: 12px;
}
.empty p {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 9px auto 16px;
  max-width: 32ch;
}
.empty .button {
  width: auto;
}
.loading {
  background: linear-gradient(90deg, #edf2ee, #f9fbfa, #edf2ee);
  border-radius: 14px;
  min-height: 160px;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.app-footer {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
  padding: 30px 0;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 22px;
  width: min(460px, calc(100% - 24px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 26px;
  color: var(--ink);
  box-shadow: 0 25px 80px #173e3033;
}
dialog::backdrop {
  background: #163a3066;
  backdrop-filter: blur(4px);
}
body:has(dialog[open]) {
  overflow: hidden;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.modal-header h2 {
  font-size: 1.35rem;
}
.modal-header .icon-button {
  border: none;
  background: #eff4f0;
}
.success-mark {
  color: var(--green);
  width: 56px;
  height: 56px;
  background: var(--mint);
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin: 0 auto 18px;
}
.success-body {
  text-align: center;
}
.success-body p {
  font-size: 0.9375rem;
  color: var(--muted);
}
.notification {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.notification p {
  margin: 5px 0;
  font-size: 0.875rem;
  color: var(--muted);
}
.notification:hover h3 {
  color: var(--green);
}
#toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: #173d30;
  color: white;
  padding: 14px 20px;
  border-radius: 12px;
  z-index: 20;
  max-width: min(90%, 480px);
  font-size: 0.875rem;
  transition:
    opacity 0.16s,
    transform 0.16s;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (max-width: 1080px) {
  .shell {
    --sidebar-width: 240px;
  }
  .sidebar {
    padding: 24px 12px 12px;
  }
  .workspace {
    padding-inline: 28px;
  }
  .home-grid {
    grid-template-columns: 1fr;
  }
  .product-hero .product-image {
    height: 190px;
  }
}
@media (max-width: 780px) {
  .shell {
    display: block;
    max-width: 100%;
  }
  .sidebar,
  .header-actions .avatar,
  .date {
    display: none;
  }
  .workspace {
    padding-inline: 20px;
  }
  .topbar {
    display: flex;
    height: 78px;
    border: none;
  }
  .mobile-brand {
    display: inline-flex;
  }
  .brand {
    font-size: 1.4rem;
  }
  .brand svg, .brand .brand-logo {
    width: 30px;
    height: 30px;
  }
  .header-actions {
    gap: 9px;
  }
  main {
    padding-top: 8px;
  }
  h1 {
    font-size: 1.65rem;
  }
  .page-head {
    margin-bottom: 18px;
  }
  .page-head p {
    font-size: 0.875rem;
  }
  .panel {
    padding: 20px;
  }
  .balance {
    padding: 17px 20px 20px;
  }
  .balance .amount {
    font-size: 2.125rem;
    margin: 4px 0 18px;
  }
  .metrics {
    margin-top: 12px;
    gap: 10px;
  }
  .metric {
    padding: 15px;
  }
  .metric strong {
    font-size: 1.375rem;
  }
  .home-grid {
    gap: 18px;
  }
  .section-head {
    margin-top: 20px;
  }
  .active-miner {
    padding: 13px 12px;
    gap: 12px;
  }
  .product-image.thumb {
    width: 54px;
    height: 58px;
  }
  .miner-info h3 {
    font-size: 0.9375rem;
  }
  .miner-info .small {
    font-size: 0.75rem;
  }
  .active-miner .status {
    font-size: 0.75rem;
    padding: 4px 7px;
  }
  .active-miner .row-chevron {
    display: none;
  }
  .catalog {
    gap: 12px;
  }
  .card-photo {
    height: 138px;
    padding: 21px 15px 12px;
  }
  .card-body {
    padding: 14px;
  }
  .card-body h3 {
    font-size: 0.9375rem;
  }
  .card-body .small {
    font-size: 0.75rem;
  }
  .card-price {
    font-size: 1.1875rem;
    margin-top: 12px;
  }
  .card-action {
    font-size: 0.8125rem;
  }
  .invest-banner {
    padding: 17px;
  }
  .invest-banner > svg:first-child {
    display: none;
  }
  .detail-heading {
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 8px;
  }
  .detail-heading h1 {
    font-size: 1.5rem;
  }
  .detail-heading .status {
    font-size: 0.75rem;
    margin-top: 4px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .rental-grid {
    gap: 14px;
  }
  .product-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
  }
  .product-hero .product-image {
    height: 116px;
    width: 135px;
    flex-shrink: 0;
  }
  .product-hero .small {
    text-align: left;
    margin: 0;
    font-size: 0.875rem;
  }
  .product-hero .small strong {
    display: block;
    color: var(--ink);
    font-size: 1.15rem;
    margin-bottom: 4px;
  }
  .rental-form {
    padding: 18px 20px;
  }
  .rental-form .price {
    font-size: 1.75rem;
  }
  .rental-form fieldset {
    margin: 12px 0;
  }
  .rental-form .included {
    margin: 5px 0 10px;
  }
  .rental-summary {
    margin: 10px 0;
  }
  .rental-summary .summary-row.total {
    margin: 0 0 8px;
    padding-top: 10px;
  }
  .rental-dates {
    font-size: 0.75rem;
  }
  .rental-extra {
    grid-row: 3;
  }
  .rental-visual > .disclosure {
    display: none;
  }
  .pool-summary {
    padding: 18px;
    margin-bottom: 18px;
  }
  .pool-top {
    gap: 10px;
  }
  .pool-top .product-image {
    width: 53px;
    height: 54px;
  }
  .pool-top h2 {
    font-size: 1.0625rem;
  }
  .pool-top .status {
    font-size: 0.75rem;
  }
  .pool-capacity {
    font-size: 0.75rem;
  }
  .telemetry-top {
    gap: 15px;
  }
  .telemetry-top .product-image {
    width: 87px;
    height: 100px;
  }
  .telemetry-value {
    font-size: 1.875rem;
  }
  .chart-head {
    gap: 10px;
  }
  .chart-head h2 {
    font-size: 1.1rem;
  }
  .period-options {
    gap: 5px;
  }
  .period-options button {
    padding-inline: 8px;
  }
  .chart-foot {
    flex-wrap: wrap;
  }
  .transaction {
    gap: 10px;
  }
  .transaction-icon {
    width: 38px;
    height: 40px;
  }
  .transaction-amount strong {
    font-size: 0.875rem;
  }
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: calc(28px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 72px);
    max-width: 740px;
    justify-content: space-around;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 50px;
    background: #ffffff00;
    box-shadow: 0 8px 24px #244b4210;
    backdrop-filter: blur(16px);
    z-index: 5;
  }
  .bottom-nav .nav-item {
    flex: 1;
    display: grid;
    place-items: center;
    gap: 0;
    padding: 0 4px;
    min-width: 0;
    min-height: 44px;
    height: 44px;
    color: #627a72;
    font-size: 0.75rem;
    background: none;
    border-radius: 50px;
    position: relative;
  }
  .bottom-nav .nav-item svg {
    display: block;
    width: 24px;
    height: 24px;
    stroke-width: 1.8;
  }
  .bottom-nav .nav-item[href="#/miners?tab=running"] svg {
    width: 32px;
    height: 32px;
  }
  .bottom-nav .fan-rotor {
    animation: rental-fan-spin 1.2s linear infinite;
  }
  .bottom-nav.fan-motion-paused .fan-rotor {
    animation-play-state: paused;
  }
  .bottom-nav .nav-item.active {
    background: #087f67;
    color: #fff;
  }
  .bottom-nav .nav-item.active svg {
    color: #fff;
  }
  .app-footer {
    padding-bottom: calc(
      var(--nav-height) + env(safe-area-inset-bottom) + 44px
    );
  }
  #toast {
    bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 32px);
  }
  dialog {
    padding: 20px;
  }
}
@media (min-width: 781px) {
  .rental-extra {
    display: none;
  }
}
@media (max-width: 359px) {
  .workspace {
    padding-inline: 16px;
  }
  .brand {
    font-size: 1.25rem;
  }
  .brand svg, .brand .brand-logo {
    width: 27px;
    height: 27px;
  }
  .header-actions {
    gap: 6px;
  }
  .balance .amount {
    font-size: 2rem;
  }
  .active-miner {
    gap: 9px;
    flex-wrap: wrap;
  }
  .active-miner .status {
    margin-left: 63px;
    margin-top: -5px;
  }
  .catalog {
    grid-template-columns: 1fr;
  }
  .miner-card {
    display: grid;
    grid-template-columns: 100px 1fr;
  }
  .card-photo {
    height: 100%;
    padding: 28px 8px 14px;
  }
  .card-body {
    padding: 14px;
  }
  .card-action {
    margin-top: 8px;
  }
  .product-hero {
    gap: 10px;
    padding-inline: 12px;
  }
  .product-hero .product-image {
    width: 110px;
  }
  .detail-heading {
    flex-wrap: wrap;
  }
  .transaction {
    flex-wrap: wrap;
  }
  .transaction-amount {
    margin-left: 48px;
    text-align: left;
  }
  .transaction-amount .small {
    display: inline;
    margin-left: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.metric .metric-denominator {
  display: inline;
  margin-left: 5px;
}
.field-label-spaced,
.action-spaced {
  margin-top: 20px;
}
.transaction-value {
  margin: 16px 0;
}

/* Owned miners share the catalogue's single-card layout. */
.mining-activity-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 24px;
}
.mining-activity-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.mining-activity-heading h2 { margin: 0; font-size: 1.125rem; }
.mining-activity-heading p { margin: 4px 0 0; color: var(--muted); font-size: .875rem; }
.mining-activity-icon, .mining-activity-empty-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--green);
  background: #e9f7f3;
  border-radius: 12px;
  width: 42px;
  height: 42px;
}
.mining-activity-icon svg { width: 23px; height: 23px; }
.mining-activity-body { padding: 24px; }
.mining-activity-empty { display: flex; align-items: center; gap: 20px; padding: 16px 0; }
.mining-activity-empty-icon { width: 68px; height: 68px; border-radius: 18px; }
.mining-activity-empty-icon svg { width: 36px; height: 36px; }
.mining-activity-empty h3 { margin: 0 0 6px; font-size: 1.125rem; }
.mining-activity-empty p { margin: 0; max-width: 47ch; color: var(--muted); font-size: .875rem; line-height: 1.6; }
.mining-activity-empty .button { margin-left: auto; flex-shrink: 0; gap: 12px; }
@media (max-width: 760px) {
  .mining-activity-heading { padding: 18px; align-items: flex-start; }
  .mining-activity-body { padding: 20px 18px; }
  .mining-activity-empty { flex-direction: column; text-align: center; gap: 16px; padding: 4px 0; }
  .mining-activity-empty .button { margin: 0; width: 100%; }
}
.completed-mining-section { margin-top: 32px; }
.running-miners-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 640px;
  gap: 24px;
}
.rental-list-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  max-width: 640px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: .8125rem;
}
.fan-motion-toggle { min-height: 44px; font-size: .8125rem; }
.rental-card-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 280px;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  background: radial-gradient(ellipse at 50% 70%, #fff 10%, #edf4f4 90%);
}
.rental-card-hero .rental-product {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 104px 28px 24px;
}
.rental-card-hero .rental-product img { width: 100%; height: 100%; object-fit: contain; }
.rental-card-hero.has-scene .rental-product { padding: 0; }
.rental-card-hero.has-scene .rental-product img { object-fit: cover; }
.rental-card-hero.has-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, #f5f8fbfa 0%, #f5f8fbd9 17%, #f5f8fb00 50%);
}
.rental-card-heading {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 20px;
}
.rental-card-heading > div { min-width: 0; }
.rental-card-heading h2 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -.4px; overflow-wrap: anywhere; }
.rental-card-heading p { margin: 5px 0 0; font-size: .875rem; color: var(--muted); }
.rental-card-heading small { display: block; margin-top: 5px; color: var(--muted); font-size: .75rem; }
.rental-card-heading .status { margin-top: 2px; }
.rental-card-heading .status.ended, .rental-card-heading .status.cancelled { color: var(--muted); background: #edf1ef; }
.rental-card-heading .status.reserved, .rental-card-heading .status.provisioning { color: var(--warning); background: var(--warning-bg); }
.rental-photo-fallback { display: grid; place-content: center; justify-items: center; gap: 8px; position: absolute; inset: 105px 0 0; color: var(--muted); font-size: .875rem; }
.rental-photo-fallback svg { width: 64px; height: 64px; }
.rental-cooling {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.rental-fan {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #f0f4f3;
  color: var(--muted);
  flex: 0 0 auto;
}
.rental-fan .fan-spinner { display:grid; place-items:center; width:48px; height:48px; transform-origin:center; }
.rental-fan .fan-spinner > svg { width:100%; height:100%; }
[data-fan-running="true"] .rental-fan { color: var(--green); background: #e6f7ef; }
.rental-cooling-label { margin-right: auto; }
.rental-cooling-label strong { display: block; font-size: .875rem; font-weight: 600; }
.rental-cooling-label small { display: block; margin-top: 2px; font-size: .75rem; color: var(--muted); }
.rental-readings { display: flex; align-items: center; gap: 16px; }
.rental-readings > span { display: flex; align-items: center; gap: 4px; }
.rental-readings > span + span { border-left: 1px solid var(--line); padding-left: 16px; }
.rental-readings svg { width: 19px; height: 19px; color: var(--muted); }
.rental-readings strong { font-size: 1rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rental-readings small { margin-left: 4px; font-size: .75rem; font-weight: 400; color: var(--muted); }
.fan-rotor { transform-box: view-box; transform-origin: 50% 50%; }
/* A slow, constant rotation indicates activity; it does not mimic physical RPM. */
[data-fan-running="true"] .fan-rotor { animation: rental-fan-spin 1.2s linear infinite; }
.fan-motion-paused [data-fan-running="true"] .fan-rotor { animation-play-state: paused; }
@keyframes rental-fan-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.rental-timeline { padding: 16px 0; }
.rental-timeline > div { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.rental-timeline strong { font-size: .9375rem; }
.rental-timeline span { color: var(--muted); font-size: .8125rem; }
.rental-timeline progress { display: block; width: 100%; height: 7px; margin-top: 10px; }
.rental-financials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.rental-money {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid #dce8e9;
  border-radius: 14px;
  background: #f5f8fa;
}
.rental-money dt { order: 1; font-size: .8125rem; margin-top: 3px; color: var(--muted); }
.rental-money dd { margin: 0; font-size: clamp(1.375rem, 3vw, 1.625rem); font-weight: 700; line-height: 1.2; letter-spacing: -.5px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.rental-money small { order: 2; color: var(--muted); font-size: .6875rem; margin-top: 3px; }
.rental-money > :not(svg) { position: relative; z-index: 1; }
.rental-watermark { position: absolute; z-index: -1; right: 10px; bottom: 15px; width: 50px; height: 50px; color: #dce7eb; pointer-events: none; }
.rental-electricity { background: #fffaf0; border-color: #f0e7d0; }
.rental-electricity .rental-watermark { color: #f1e8cc; }
.rental-hosting { background: #f6f5fc; border-color: #e7e3f0; }
.rental-hosting .rental-watermark { color: #e5e1f2; }
.rental-profit { background: #edfbf5; border-color: #d6eee3; }
.rental-profit dd { color: var(--green); }
.rental-profit .rental-watermark { color: #cfede1; }
.rental-profit.is-negative dd { color: var(--error); }
.rental-cost-note { margin: 12px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.6; }
.rental-cost-note summary { text-align: center; cursor: pointer; padding: 6px 4px; }
.rental-cost-note p { margin: 8px 4px 0; }
.running-miner-card .offer-action { min-height: 58px; }
@media (max-width: 540px) {
  .rental-card-hero { min-height: 0; aspect-ratio: 7 / 6; border-radius: 14px; }
  .rental-card-heading { padding: 16px 14px; gap: 6px; }
  .rental-card-heading h2 { font-size: 1.125rem; }
  .rental-card-heading p { font-size: .8125rem; }
  .rental-card-heading .status { font-size: .6875rem; padding: 5px 7px; }
  .rental-card-hero .rental-product { padding: 110px 16px 16px; }
  .rental-cooling { gap: 8px; padding: 12px 0; }
  .rental-readings { gap: 8px; }
  .rental-readings > span + span { padding-left: 8px; }
  .rental-readings strong { font-size: .875rem; }
  .rental-fan { width: 54px; height: 54px; border-radius: 15px; }
  .rental-fan .fan-spinner { width:40px; height:40px; }
  .rental-money { padding: 12px; min-height: 72px; }
  .rental-watermark { width: 42px; height: 42px; right: 6px; }
}
@media (max-width: 390px) {
  .rental-readings { width: 100%; justify-content: flex-end; padding-top: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .bottom-nav .fan-rotor { animation: none; }
  [data-fan-running="true"] .fan-rotor { animation: none; }
  .fan-motion-enabled [data-fan-running="true"] .fan-rotor { animation: rental-fan-spin 1.2s linear infinite; }
}

.brand-logo { display: block; object-fit: contain; flex: none; }

/* Shared loading motion matches the active miner propeller. */
.app-loader { display: none; }
body.app-booting .app-loader { position: fixed; inset: 0; display: grid; place-items: center; background: var(--page); z-index: 100; }
.loading-propeller { display: grid; place-items: center; width: 48px; height: 48px; color: var(--green); }
.loading-propeller > svg { display: block; width: 100%; height: 100%; }
.loading-propeller .fan-rotor { animation: rental-fan-spin 1.2s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  .loading-propeller .fan-rotor { animation-duration: 2.4s; }
}
