/* Mining page — extends site/style.css (sticker bathroom). */
.small { font-size: 13px; }
.state-banner { display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px; margin-bottom: 20px; background: var(--water-soft); border-color: transparent; box-shadow: none; }
.state-banner p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.state-mark { width: 12px; height: 12px; margin-top: 5px; border-radius: 50%; border: 2px solid var(--ink); background: var(--water); flex: none; }
.state-banner[data-kind="error"] { background: #ffe0dc; }
.state-banner[data-kind="error"] .state-mark { background: var(--plunger); }
.state-banner[data-kind="warning"] { background: #fff0b8; }
.state-banner[data-kind="warning"] .state-mark { background: var(--bronze); }
.state-banner[data-kind="success"] { background: #e2fbcf; }
.state-banner[data-kind="success"] .state-mark { background: var(--good); }
.state-banner[data-kind="working"] .state-mark { animation: live 1.6s infinite; }

.miner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px; }
.miner-left, .miner-right { padding: 18px; min-width: 0; }
.miner-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 12px; font-size: 14px; }
.miner-head span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.miner-viewer { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--tile-3); }
.miner-viewer iframe { width: 100%; height: 100%; border: 0; }
.digest { margin: 12px 0 0; padding: 10px 12px; border-radius: 9px; border: 2px dashed var(--line); background: var(--tile-2); font-size: 12px; color: var(--muted); word-break: break-all; }
.target { margin-top: 16px; }
.target-row { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; }
.target-row b { color: var(--text); font-size: 20px; }
.target-bar { display: grid; grid-template-columns: repeat(40, 1fr); gap: 2px; margin-top: 8px; }
.target-bar i { height: 16px; border-radius: 3px; background: var(--tile-3); }
.target-bar i.on { background: var(--ink); }
.target-bar i.best { background: var(--lime); box-shadow: inset 0 0 0 2px var(--ink); }

.machine { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--tile-2); border: 2px solid var(--ink); }
.engine-button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; font-weight: 700; font-size: 14px; }
.engine-button.selected { background: var(--lime); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.engine-button:disabled { cursor: not-allowed; }
.cores { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-top: 14px; }
.cores input { accent-color: var(--ink); width: 100%; }
.miner-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 16px 0; }
.miner-stats .stat strong { font-size: 19px; }
.btn-big { min-height: 54px; font-size: 17px; }
.work-actions { display: grid; gap: 8px; }
.action-note { color: var(--faint); font-size: 13px; }
.work-status { margin-top: 16px; padding-top: 14px; border-top: 2px dashed var(--line); font-size: 14px; }
.work-heading, .work-data { display: flex; justify-content: space-between; gap: 10px; }
.work-heading span:first-child { font-weight: 600; }
.work-data { color: var(--muted); margin-top: 4px; }
.hash-value { margin-top: 10px; padding: 9px 11px; border-radius: 9px; border: 2px dashed var(--line); background: var(--tile-2); font-size: 12px; color: var(--muted); word-break: break-all; }
.live-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; color: var(--muted); font-size: 13px; }
.live-facts b { color: var(--text); font-weight: 500; }
.live-facts a { color: var(--water); }

.miner-lower { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; }
.miner-lower h3 { margin-bottom: 4px; }
.near-list, .latest-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 1px; background: var(--hair); border: 1.5px solid var(--hair); border-radius: 12px; overflow: hidden; }
.near-list li, .latest-list li { display: grid; grid-template-columns: 90px 1fr auto; gap: 12px; align-items: center; padding: 9px 12px; background: var(--tile-2); font-size: 14px; }
.near-list li.muted, .latest-list li.muted { display: block; color: var(--muted); }
.near-list b { color: var(--text); font-family: var(--mono); font-weight: 700; }
.near-list code, .latest-list code { color: var(--muted); font: 12px var(--mono); }
.near-list span { color: var(--faint); font-size: 12px; }
.latest-list a { color: var(--water); font-family: var(--mono); font-weight: 700; text-decoration: none; }
.latest-list span { font-family: var(--mono); font-size: 13px; }
.histogram { width: 100%; height: auto; margin-top: 12px; }
.histogram .hbar { fill: var(--tile-3); }
.histogram .hbar { stroke: var(--ink); stroke-width: 1.5; }
.histogram .hbar.hit { fill: var(--lime); }
.histogram .htick { fill: var(--faint); font: 500 11px var(--mono); }
.histogram .htick.need { fill: var(--text); font-weight: 700; }
.netlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin: 14px 0; }
.netlist dt { color: var(--muted); font-size: 13px; }
.netlist dd { margin: 2px 0 0; font-weight: 600; }

.collection-section { padding: 56px 0 72px; }
.collection-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.collection-head h2 { font-size: 34px; }
.collection-balance span { display: block; color: var(--muted); font-size: 13px; }
.collection-balance strong { font: 600 18px var(--mono); }
.collection-section > p a { color: var(--water); }
.collection-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 16px; }
.empty-state { grid-column: 1 / -1; color: var(--muted); }
.token-card { padding: 16px; border-radius: 18px; background: var(--tile); border: 1.5px solid var(--hair); box-shadow: var(--soft-shadow); }
.token-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.token-head h3 { font-size: 18px; margin-right: auto; }
.token-condition { color: var(--muted); font-size: 13px; }
.token-bond { margin: 8px 0 12px; color: var(--bronze); font-size: 14px; }
.token-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.token-controls select { min-height: 38px; padding: 0 8px; border-radius: 10px; border: 2px solid var(--ink); background: var(--tile); }
.token-controls .button { min-height: 38px; padding: 0 12px; border-radius: 10px; border: 2px solid var(--ink); background: var(--tile); cursor: pointer; font-weight: 700; font-size: 14px; }
.token-controls .button-dark { background: var(--lime); }
.load-more { min-height: 40px; border-radius: 10px; border: 2px solid var(--ink); background: var(--tile); cursor: pointer; font-weight: 700; }
#connect-wallet.connected { font-family: var(--mono); font-weight: 600; background: var(--water-soft); }

@media (max-width: 900px) {
  .miner, .miner-lower { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .miner-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .near-list li, .latest-list li { grid-template-columns: 70px 1fr auto; }
  .target-bar i { height: 10px; }
}
.netlist a { color: var(--water); font-weight: 700; text-decoration: none; }
