:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --panel-soft: #f1f5f9;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --text: #0f172a;
  --muted: #64748b;
  --blue: #2563eb;
  --blue-2: #3b82f6;
  --emerald: #10b981;
  --emerald-soft: #ecfdf5;
  --amber: #d97706;
  --amber-soft: #fffbeb;
  --red: #dc2626;
  --red-soft: #fef2f2;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}

button,
a {
  color: inherit;
  font: inherit;
}

.shell {
  width: min(1280px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 16px 0 42px;
  overflow-x: clip;
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 62px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  padding: 10px 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding-left: 4px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  border: 1px solid #bbf7d0;
  border-radius: 9px;
  background: #dcfce7;
  color: #065f46;
  font-size: 13px;
  font-weight: 800;
  place-items: center;
}

.brand strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.brand small {
  display: block;
  max-width: 34vw;
  overflow: hidden;
  color: var(--muted);
  font-family: "SF Mono", Monaco, Consolas, monospace;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav {
  justify-self: center;
  display: flex;
  gap: 4px;
  border-radius: 12px;
  background: #f1f5f9;
  padding: 4px;
}

.nav a,
.refresh-box button,
.segmented button,
.lookup-search button {
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
}

.nav a {
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  font-weight: 700;
  font-size: 14px;
}

.nav a.active,
.nav a:hover {
  border-color: var(--line);
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.refresh-box {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}

.refresh-box button {
  padding: 0 12px;
  background: #f8fafc;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--muted);
}

.dot.ok {
  background: var(--emerald);
}

.dot.bad {
  background: var(--red);
}

.dot.pending {
  background: var(--amber);
}

main {
  display: grid;
  gap: 12px;
}

main > *,
.overview-grid > *,
.accounts-grid > *,
.split > * {
  min-width: 0;
}

.address-lookup {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #274ee8);
  color: #ffffff;
  box-shadow: var(--shadow);
  padding: 16px 18px;
}

.lookup-icon {
  display: grid;
  width: 44px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  place-items: center;
}

.address-lookup h1 {
  margin: 0;
  font-size: 22px;
}

.address-lookup p {
  margin: 2px 0 0;
  color: #dbeafe;
  font-size: 14px;
}

.lookup-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 330px;
}

.lookup-search span {
  flex: 1;
  min-height: 38px;
  overflow: hidden;
  border-radius: 9px;
  background: #ffffff;
  color: #334155;
  font-family: "SF Mono", Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 38px;
  padding: 0 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lookup-search button {
  border-color: #dbeafe;
  background: #ffffff;
  color: var(--blue);
  font-weight: 800;
  padding: 0 18px;
}

.pearl-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
}

.pf-card,
.section,
.profit-panel,
.tx-panel,
.metric,
.quote-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.pf-card {
  padding: 18px;
}

.pf-card-title,
.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
}

.address-text {
  margin: 28px 0 16px;
  overflow-wrap: anywhere;
  color: var(--blue);
  font-family: "SF Mono", Monaco, Consolas, monospace;
  font-weight: 700;
}

.balance-box,
.pending-box {
  border-radius: 13px;
  padding: 18px;
}

.balance-box {
  background: var(--emerald-soft);
}

.pending-box {
  margin-top: 16px;
  background: var(--amber-soft);
}

.balance-box span,
.pending-box span {
  display: block;
  color: #059669;
  font-size: 13px;
  font-weight: 800;
}

.pending-box span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--amber);
}

.pending-box em {
  color: #c0841a;
  font-style: normal;
  white-space: nowrap;
}

.balance-box strong,
.pending-box strong {
  display: block;
  margin-top: 8px;
  font-family: "SF Mono", Monaco, Consolas, monospace;
  font-size: 34px;
  letter-spacing: 0.02em;
}

.balance-box strong {
  color: #047857;
}

.pending-box strong {
  color: #b45309;
}

.hashrate-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 280px;
}

.hashrate-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.hashrate-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.hashrate-stats strong {
  color: var(--blue);
  font-family: "SF Mono", Monaco, Consolas, monospace;
}

.chart-surface {
  min-height: 250px;
  margin-top: 16px;
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.trend-svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 250px;
}

.grid-line {
  stroke: #e2e8f0;
  stroke-width: 1;
  pointer-events: none;
}

.axis-label {
  fill: #94a3b8;
  font-size: 12px;
  font-family: "SF Mono", Monaco, Consolas, monospace;
  pointer-events: none;
}

.chart-bar {
  stroke-width: 1;
  cursor: crosshair;
}

.chart-bar.credited {
  fill: rgba(16, 185, 129, 0.34);
  stroke: rgba(16, 185, 129, 0.72);
}

.chart-bar.pending {
  fill: rgba(251, 191, 36, 0.42);
  stroke: rgba(217, 119, 6, 0.55);
}

.hash-area {
  fill: rgba(37, 99, 235, 0.07);
  pointer-events: none;
}

.hash-line {
  fill: none;
  stroke: #2563eb;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  pointer-events: none;
}

.chart-dot {
  fill: #2563eb;
  stroke: #ffffff;
  stroke-width: 2;
  cursor: crosshair;
  opacity: 0;
}

.chart-dot:hover {
  opacity: 1;
}

.chart-legend {
  pointer-events: none;
}

.chart-tooltip {
  position: fixed;
  z-index: 50;
  max-width: 240px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.94);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.22);
  color: #ffffff;
  font-family: "SF Mono", Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  padding: 10px 12px;
  pointer-events: none;
}

.tx-panel {
  overflow: hidden;
}

.tx-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
}

.tx-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
}

.tx-head span {
  color: var(--muted);
  font-size: 12px;
}

.tx-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.tx-chips span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: #94a3b8;
  font-size: 12px;
  padding: 0 10px;
}

.tx-chips strong {
  color: var(--text);
}

.tx-list {
  display: grid;
  gap: 0;
  padding: 2px 18px 14px;
}

.tx-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.25fr) minmax(128px, 0.7fr) minmax(210px, 1fr) minmax(150px, 0.7fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  border-bottom: 1px solid #edf2f7;
  padding: 13px 0;
}

.tx-row:last-child {
  border-bottom: 0;
}

.tx-main,
.tx-amount,
.tx-confirm,
.tx-eta {
  min-width: 0;
}

.tx-main span,
.tx-amount span,
.tx-eta span {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tx-hash {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  color: var(--blue);
  font-family: "SF Mono", Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
}

.tx-hash:hover {
  text-decoration: underline;
}

.tx-amount strong,
.tx-confirm-line strong,
.tx-eta strong {
  color: var(--text);
  font-family: "SF Mono", Monaco, Consolas, monospace;
  font-size: 15px;
}

.tx-confirm-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.tx-status {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 11px;
  font-weight: 800;
  padding: 0 8px;
  white-space: nowrap;
}

.tx-status.done {
  background: var(--emerald-soft);
  color: #047857;
}

.tx-status.unknown {
  background: #f1f5f9;
  color: var(--muted);
}

.tx-progress {
  height: 8px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.tx-fill {
  width: var(--w, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #60a5fa, #34d399);
}

.tx-fill.done {
  background: linear-gradient(90deg, #10b981, #059669);
}

.tx-empty {
  padding: 16px 0 2px;
  color: var(--muted);
  font-size: 13px;
}

.tab-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 8px;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border-radius: 11px;
  color: var(--muted);
  font-weight: 800;
  padding: 0 14px;
}

.tab.active {
  border: 1px solid #a7f3d0;
  background: var(--emerald-soft);
  color: #047857;
}

.tab strong {
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 12px;
  padding: 2px 8px;
}

.profit-panel {
  overflow: hidden;
}

.profit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
}

.profit-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
}

.profit-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.profit-chips span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: #94a3b8;
  font-size: 12px;
  padding: 0 10px;
}

.profit-chips strong {
  color: var(--text);
}

.calc-controls {
  display: grid;
  grid-template-columns: 1.3fr 1.3fr 1fr 1fr;
  gap: 0;
  margin: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.calc-controls div {
  min-width: 0;
  padding: 14px;
}

.calc-controls div + div {
  border-left: 1px solid var(--line);
}

.calc-controls span,
.section-heading span,
th {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.calc-controls strong {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
  color: var(--text);
  font-family: "SF Mono", Monaco, Consolas, monospace;
  font-size: 18px;
  line-height: 1.15;
}

.calc-controls small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.period-wrap {
  margin: 0 18px 18px;
  overflow-x: auto;
}

.period-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.period-table th,
.period-table td {
  padding: 12px 0;
  border-bottom: 1px solid #edf2f7;
  text-align: right;
}

.period-table th:first-child,
.period-table td:first-child {
  text-align: left;
}

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

.balance-runway {
  overflow: hidden;
}

.balance-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.balance-summary-item {
  min-width: 0;
  padding: 14px;
}

.balance-summary-item + .balance-summary-item {
  border-left: 1px solid var(--line);
}

.balance-summary-item span,
.balance-card-main span {
  display: block;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.balance-summary-item strong {
  display: block;
  margin-top: 7px;
  color: var(--text);
  font-family: "SF Mono", Monaco, Consolas, monospace;
  font-size: 20px;
  line-height: 1.1;
}

.balance-summary-item small {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.balance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.balance-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  padding: 13px;
}

.balance-card.healthy {
  border-color: #bbf7d0;
}

.balance-card.low {
  border-color: #fde68a;
  background: #fffbeb;
}

.balance-card.critical {
  border-color: #fecaca;
  background: #fef2f2;
}

.balance-card.muted {
  background: #f8fafc;
}

.balance-card header,
.balance-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.balance-card h3 {
  margin: 0;
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.balance-card-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.balance-card-main strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: var(--text);
  font-family: "SF Mono", Monaco, Consolas, monospace;
  font-size: 15px;
  line-height: 1.2;
}

.balance-card-foot {
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
}

.balance-card-foot span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.balance-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.balance-empty {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
  padding: 4px 0;
}

.history-panel {
  overflow: hidden;
}

.history-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.history-chart {
  min-height: 280px;
  margin-top: 12px;
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.history-svg {
  display: block;
  width: 100%;
  min-height: 280px;
}

.history-cost-bar {
  fill: rgba(217, 119, 6, 0.24);
  stroke: rgba(217, 119, 6, 0.5);
  stroke-width: 1;
  cursor: crosshair;
}

.history-revenue-line,
.history-profit-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
  pointer-events: none;
}

.history-revenue-line {
  stroke: #2563eb;
}

.history-profit-line {
  stroke: #10b981;
}

.history-dot {
  fill: #10b981;
  stroke: #ffffff;
  stroke-width: 2;
  cursor: crosshair;
}

.history-dot.loss {
  fill: #dc2626;
}

.history-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 14px;
  align-items: start;
  margin-top: 12px;
}

.history-table-wrap {
  max-height: 560px;
  overflow: auto;
}

.history-table {
  min-width: 760px;
}

.history-row {
  cursor: pointer;
}

.history-row:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: -2px;
}

.history-row.selected {
  background: #ecfdf5;
}

.history-subheading {
  margin-bottom: 10px;
}

.history-slot-item .compact-line + .compact-line {
  margin-top: 7px;
}

.positive-value {
  color: #059669 !important;
}

.cost-value {
  color: var(--amber) !important;
}

.negative-value {
  color: var(--red) !important;
}

.section {
  padding: 16px;
}

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

.accounts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.account-card,
.gpu-item,
.curve-row,
.compact-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  padding: 13px;
}

.account-card header,
.gpu-line,
.curve-line,
.compact-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.account-card h3 {
  margin: 0;
  font-size: 15px;
}

.account-card.balance-only {
  border-color: #bfdbfe;
  background: #f8fbff;
}

.account-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  padding: 0 8px;
}

.pill.good {
  background: var(--emerald-soft);
  color: #047857;
}

.pill.warn {
  background: var(--amber-soft);
  color: var(--amber);
}

.pill.danger {
  background: var(--red-soft);
  color: var(--red);
}

.account-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.account-metrics span {
  display: block;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.account-metrics strong {
  display: block;
  margin-top: 5px;
  font-family: "SF Mono", Monaco, Consolas, monospace;
  font-size: 14px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.gpu-mix,
.profit-curve,
.compact-list {
  display: grid;
  gap: 10px;
}

.gpu-line strong,
.curve-line strong,
.compact-line strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track {
  height: 7px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.bar-fill {
  width: var(--w, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #34d399, #2dd4bf);
}

.bar-fill.loss {
  background: linear-gradient(90deg, #fb7185, #fbbf24);
}

.table-heading {
  align-items: flex-start;
}

.segmented {
  display: inline-grid;
  grid-template-columns: repeat(4, minmax(74px, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}

.segmented button {
  padding: 0 10px;
  font-size: 11px;
  font-weight: 800;
}

.segmented button.active {
  border-color: #a7f3d0;
  background: var(--emerald-soft);
  color: #047857;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  background: #ffffff;
}

th,
td {
  border-bottom: 1px solid #edf2f7;
  padding: 12px 14px;
  text-align: right;
  white-space: nowrap;
}

th:first-child,
td:first-child,
th:nth-child(2),
td:nth-child(2),
th:nth-child(3),
td:nth-child(3),
th:nth-child(4),
td:nth-child(4) {
  text-align: left;
}

tbody tr:hover {
  background: #f8fafc;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.slot-name {
  display: block;
  max-width: 220px;
  overflow: hidden;
  color: var(--text);
  font-family: "SF Mono", Monaco, Consolas, monospace;
  font-weight: 800;
  text-overflow: ellipsis;
}

.slot-sub {
  display: block;
  max-width: 220px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 6px;
  background: #eff6ff;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  padding: 0 7px;
}

.status-tag.loss {
  background: var(--red-soft);
  color: var(--red);
}

.status-tag.wait {
  background: var(--amber-soft);
  color: var(--amber);
}

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

.error-item {
  border-left: 3px solid var(--red);
  padding: 10px 12px;
  background: var(--red-soft);
  color: #991b1b;
}

.hidden,
[hidden] {
  display: none;
}

@media (max-width: 1180px) {
  .topbar,
  .overview-grid,
  .pearl-layout {
    grid-template-columns: 1fr;
  }

  .nav {
    justify-self: stretch;
    overflow-x: auto;
  }

  .refresh-box {
    justify-content: flex-start;
  }

  .quote-panel,
  .accounts-grid,
  .balance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .history-detail-grid {
    grid-template-columns: 1fr;
  }

  .quote-panel {
    grid-column: auto;
  }
}

@media (max-width: 820px) {
  .shell {
    width: min(100vw - 20px, 720px);
    padding-top: 10px;
  }

  .brand small {
    max-width: 70vw;
  }

  .address-lookup,
  .split,
  .accounts-grid,
  .balance-summary,
  .history-summary,
  .history-detail-grid,
  .balance-grid,
  .quote-panel {
    grid-template-columns: 1fr;
  }

  .balance-summary-item + .balance-summary-item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .lookup-search {
    min-width: 0;
    width: 100%;
  }

  .quote-panel > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .hashrate-head,
  .section-heading,
  .table-heading,
  .tx-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .tx-chips {
    justify-content: flex-start;
  }

  .tx-list {
    padding-inline: 14px;
  }

  .tx-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }

  .tx-main span,
  .tx-amount span,
  .tx-eta span {
    white-space: normal;
  }

  .hashrate-stats {
    justify-content: flex-start;
  }

  .chart-surface {
    min-height: 170px;
    padding-inline: 12px;
  }

  .hash-bar {
    width: 58px;
  }

  .segmented {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
