:root {
  color-scheme: dark;
  --bg: #0c0f13;
  --surface: #13171d;
  --surface-raised: #181d24;
  --surface-hover: #1b2028;
  --text: #e3e6eb;
  --muted: #87909c;
  --subtle: #68727f;
  --border: #222830;
  --border-strong: #343c47;
  --accent: #e8a35c;
  --lime: #e8a35c;
  --positive: #3ee88b;
  --negative: #dc8c88;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 280px; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); }
button, input, select { font: inherit; color: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; outline-offset: 4px; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .4; }
:focus-visible { outline: 2px solid var(--accent); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
input, select { min-height: 36px; padding: 8px 11px; border: 1px solid var(--border-strong); border-radius: 5px; background: var(--surface); }
input::placeholder { color: var(--subtle); }
input:focus, select:focus { border-color: var(--accent); }
input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
input::-webkit-inner-spin-button, input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="checkbox"] { width: 14px; height: 14px; min-height: 0; padding: 0; margin: 0; accent-color: var(--accent); cursor: pointer; }
svg { display: block; max-width: 100%; }
button svg, a svg { flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.25; }
h1 { font-size: 28px; letter-spacing: -.7px; }
h2 { font-size: 18px; letter-spacing: -.25px; }
h3 { font-size: 15px; letter-spacing: -.1px; }
strong, b { font-weight: 550; }
.muted, .heading-copy, .source-caption { color: var(--muted); }
.mono, .numeric { font-variant-numeric: tabular-nums; }
.numeric, .align-right { text-align: right !important; }
.positive { color: var(--positive); }
.negative { color: var(--negative); }
.profit-value { font-weight: 700; font-variant-numeric: tabular-nums; }
.net-cell .profit-value { font-size: 14px; font-weight: 700; letter-spacing: -.1px; }
.hero-result > .profit-value, .result-card .profit-value, .chart-panel .split-heading > .profit-value { font-weight: 700; }
.full-width { width: 100%; }
.mobile-only { display: none; }
.skip { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 10px 16px; border-radius: 4px; background: var(--accent); color: var(--bg); }
.skip:focus { top: 12px; }
.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; }

.site-header { width: 100%; border-bottom: 1px solid var(--border); background: #101419; }
.header-inner { max-width: 1440px; min-height: 65px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; gap: 37px; }
.brand { display: inline-flex; align-items: center; gap: 0; flex-shrink: 0; font-size: 22px; font-weight: 650; line-height: 1; letter-spacing: -.8px; color: #f0f1f3; }
.brand:hover { color: #fff; }
.brand-mark { width: 21px; height: 24px; display: inline-flex; align-items: center; gap: 3px; color: var(--accent); }
.brand-mark i { width: 4px; height: 20px; display: block; background: currentColor; transform: skew(-13deg); }
.brand-mark i:nth-child(2) { height: 14px; }
.brand-mark i:nth-child(3) { height: 8px; }
.brand-monogram { color: var(--accent); font-size: 21px; letter-spacing: -2px; }
.brand-dot { color: var(--accent); }
.brand-period { color: var(--accent); margin-left: 1px; }
.header-nav { display: flex; align-items: stretch; gap: 22px; align-self: stretch; }
.nav-link { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 64px; color: #929ba7; white-space: nowrap; font-size: 12px; font-weight: 500; }
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); }
.nav-link.active::after { content: ''; position: absolute; height: 2px; left: 0; right: 0; bottom: -1px; background: var(--accent); }
.nav-count { min-width: 17px; padding: 0 4px; border-radius: 3px; color: var(--muted); background: #242a33; font-size: 10px; text-align: center; }
.nav-icon, .nav-section, .nav-separator { display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.power-control { display: flex; align-items: center; gap: 10px; }
.power-control > label { color: var(--muted); font-size: 11px; white-space: nowrap; }
.power-input { display: flex; align-items: center; gap: 6px; min-height: 33px; padding: 0 9px; border: 1px solid var(--border-strong); border-radius: 4px; color: var(--muted); background: var(--bg); font-size: 11px; }
.power-input:focus-within { border-color: var(--accent); }
.power-input input { width: 42px; min-height: 30px; border: 0; background: transparent; padding: 0; color: var(--text); font-size: 12px; font-weight: 550; }
.power-input input:focus { outline: none; }
.power-input > span:last-child { font-size: 10px; }
.currency { color: #aeb6c1; font-size: 11px; }
.market-strip { border-bottom: 1px solid var(--border); color: var(--muted); font-size: 11px; }
.market-strip > div { max-width: 1440px; padding: 8px 32px; margin: 0 auto; display: flex; gap: 24px; align-items: center; }
main { width: 100%; min-width: 0; max-width: 1440px; min-height: calc(100vh - 145px); margin: 0 auto; padding: 24px 32px 42px; }
.catalog-heading, .page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 10px; }
.heading-main p, .heading-copy { margin-top: 8px; font-size: 12px; line-height: 1.65; color: var(--muted); max-width: 700px; }
.catalog-actions, .heading-actions { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.eyebrow { display: none; }
.dataset-line { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: 11px; margin: 0 0 12px; line-height: 1.7; }
.status-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-right: 2px; flex-shrink: 0; }
.data-note { display: inline-flex; align-items: center; gap: 5px; color: #adb4bf; margin-left: 11px; }
.separator { color: #4b5562; margin: 0 7px; }
.help-mark { display: inline-flex; align-items: center; justify-content: center; width: 13px; height: 13px; margin-left: 1px; border: 1px solid #4e5865; border-radius: 50%; color: var(--muted); font-size: 9px; line-height: 1; }
.dataset-line .source-link { padding: 0; margin-left: 4px; font-size: 11px; }
.source-link { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-size: 11px; padding-top: 14px; }
.source-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.btn, .icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: 5px; background: var(--surface); color: #c8ced7; line-height: 1.2; font-size: 11px; font-weight: 500; transition: background .15s, border-color .15s; }
.btn svg { width: 14px; height: 14px; }
.btn:hover, .icon-btn:hover { background: var(--surface-hover); border-color: #59616e; color: var(--text); }
.btn.primary { color: #21170e; border-color: var(--accent); background: var(--accent); font-weight: 600; }
.btn.primary:hover { background: #edb67e; border-color: #edb67e; color: #21170e; }
.btn.secondary { background: transparent; }
.btn.small { min-height: 30px; padding: 6px 10px; font-size: 11px; }
.icon-btn { width: 32px; min-height: 32px; padding: 6px; }
.preview-badge, .status-badge, .scenario-tag { display: inline-flex; align-items: center; padding: 3px 6px; color: var(--muted); border: 1px solid var(--border-strong); border-radius: 3px; font-size: 10px; font-weight: 400; letter-spacing: 0; white-space: nowrap; }
.preview-badge i { width: 4px; height: 4px; display: inline-block; border-radius: 50%; margin-right: 5px; background: var(--accent); }

.catalog-main, .catalog-shell { min-width: 0; width: 100%; }
.catalog-tabs { border-bottom: 1px solid var(--border); }
.coin-tabs { display: flex; align-items: stretch; gap: 27px; overflow-x: auto; scrollbar-width: none; }
.coin-tabs::-webkit-scrollbar { display: none; }
.coin-tab { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 8px 0 10px; border: 0; background: transparent; color: #919aa5; font-size: 12px; font-weight: 500; white-space: nowrap; }
.coin-tab:hover { color: var(--text); }
.coin-tab.active { color: var(--text); }
.coin-tab.active::after { content: ''; position: absolute; height: 2px; bottom: 0; left: 0; right: 0; background: var(--accent); }
.coin-dot { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: #2a2d32; color: #b8bfc9; font-size: 10px; font-weight: 600; }
.coin-dot.btc { color: #e8aa6e; background: #382a1e; }
.coin-dot.zec { color: #d8bb80; background: #342d20; }
.coin-dot.ltc { color: #aebdd2; background: #26303e; }
.coin-dot.kas { color: #9cb6b4; background: #233332; }
.coin-dot.alph { color: #b7aacb; background: #2c2936; }
.coin-dot.etc { color: #a7b9a7; background: #29312c; }
.tab-count, .coin-tab small { color: var(--subtle); font-size: 10px; font-weight: 400; }
.coin-tab.active .tab-count { color: var(--muted); }
.catalog-toolbar, .toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 12px 0 8px; }
.search-wrap { display: flex; align-items: center; position: relative; flex: 1; min-width: 220px; max-width: 420px; }
.search-wrap > svg, .search-wrap > span:first-child { position: absolute; width: 15px; left: 11px; color: #6f7986; pointer-events: none; }
.search-wrap input { width: 100%; min-height: 35px; padding-left: 34px; background: #101419; font-size: 12px; }
.search-key { position: absolute; right: 10px; border: 1px solid var(--border-strong); border-radius: 3px; padding: 0 4px; color: var(--subtle); font-size: 10px; }
.filter-select { min-height: 35px; max-width: 190px; padding: 7px 26px 7px 10px; background: #101419; font-size: 11px; color: #b8c0cb; }
.filter-reset { min-height: 32px; padding: 6px 8px; color: var(--muted); background: transparent; border: 0; font-size: 11px; }
.filter-reset:hover { color: var(--accent); }
.column-controls { margin-left: auto; position: relative; color: var(--muted); font-size: 11px; }
.column-controls summary { display: flex; align-items: center; gap: 7px; cursor: pointer; min-height: 33px; padding: 6px 9px; border: 1px solid var(--border); border-radius: 4px; list-style: none; }
.column-controls summary::-webkit-details-marker { display: none; }
.column-controls summary::after { content: '⌄'; color: var(--subtle); }
.column-controls > div, .column-menu { position: absolute; z-index: 15; top: calc(100% + 6px); right: 0; min-width: 190px; padding: 12px; border: 1px solid var(--border-strong); border-radius: 5px; background: #191e26; box-shadow: 0 8px 24px #0006; }
.column-controls label { display: flex; align-items: center; gap: 9px; min-height: 29px; color: #bac2cc; }
.table-meta, .table-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 28px; margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.table-meta > div, .table-heading > div { display: flex; align-items: center; gap: 17px; }
.table-meta strong, .table-heading strong { color: #bdc5cf; font-weight: 500; }
.applied-assumptions { color: #727e8c; font-size: 10px; }
.applied-assumptions span { padding: 0 4px; color: #4c5866; }
.active-filter-summary { color: var(--muted); }
.toggle-label { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; white-space: nowrap; cursor: pointer; }
.sort-select { min-height: 27px; max-width: 155px; padding: 3px 3px 3px 0; border: 0; background: transparent; font-size: 11px; color: #c2cad4; }
.table-scroll, .table-wrap { width: 100%; max-width: 100%; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #3b434f transparent; }
.miner-table { width: 100%; min-width: 1070px; border-collapse: separate; border-spacing: 0; text-align: left; white-space: nowrap; font-size: 13px; }
.miner-table th { height: 38px; padding: 9px 12px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #11151b; color: #8e98a5; font-size: 10px; font-weight: 500; letter-spacing: .1px; }
.miner-table td { height: 84px; padding: 9px 12px; border-bottom: 1px solid #20262f; background: var(--bg); vertical-align: middle; }
.miner-table th:first-child, .miner-table td:first-child { width: 31px; padding-left: 8px; padding-right: 8px; }
.miner-table th:last-child, .miner-table td:last-child { width: 33px; padding-right: 5px; }
.miner-table tbody tr:hover td { background: #13181f; }
.miner-table tbody tr.selected-row td { background: #14191f; }
.miner-table tbody tr.selected-row td:first-child { box-shadow: inset 2px 0 #76604b; }
.miner-table .sorted-column { background: #10151a; }
.miner-table tbody tr:hover .sorted-column { background: #171d24; }
.sort-header { width: 100%; display: inline-flex; align-items: center; justify-content: inherit; gap: 5px; padding: 0; border: 0; background: transparent; color: inherit; font-size: inherit; font-weight: inherit; text-align: inherit; white-space: nowrap; }
.numeric .sort-header, .align-right .sort-header { justify-content: flex-end; }
.sort-header:hover, .sort-header.sort-active, .sort-active { color: #d5dbe3; }
.sort-indicator { color: var(--accent); font-size: 12px; }
.model-cell { display: flex; align-items: center; gap: 11px; min-width: 205px; padding: 0; border: 0; text-align: left; background: transparent; color: inherit; }
.model-cell:hover .model-name { color: var(--accent); }
.model-mark { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid #303741; background: #191e25; color: #aeb7c3; border-radius: 4px; font-size: 10px; font-weight: 600; flex-shrink: 0; letter-spacing: -.2px; }
.model-text { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.brand-name { display: block; color: var(--muted); font-size: 11px; line-height: 1.3; margin-bottom: 3px; font-weight: 400; }
.model-text .brand-name { margin-bottom: 0; }
.model-name { color: #dce1e8; font-size: 14px; font-weight: 550; line-height: 1.35; background: transparent; border: 0; padding: 0; text-align: left; }
.model-cooling { display: none; }
.subvalue { display: block; color: #788391; font-size: 10px; font-weight: 400; margin-top: 4px; line-height: 1.35; }
.subvalue.inline { display: inline; margin: 0; }
.coin-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; padding: 2px 5px; border: 1px solid #303741; border-radius: 3px; background: #1c222a; color: #b6bfcc; font-size: 9px; line-height: 1.4; font-weight: 500; }
.algorithm-label { display: block; color: #b2bdca; font-size: 11px; }
.coin-label { font-size: 10px; }
.unit { color: var(--muted); font-size: 11px; }
.net-cell strong { font-size: 13px; font-weight: 550; }
.price-cell, .payback-cell, .rate-cell, .power-cell { color: #c9d0da; }
.compare-check { width: 13px !important; height: 13px !important; }
.watch-button { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 6px; border: 0; border-radius: 4px; background: transparent; color: #505c6b; }
.watch-button svg { width: 16px; height: 16px; }
.watch-button:hover { background: #242a32; color: #aeb7c3; }
.watch-button.saved { color: var(--accent); }
.watch-button.saved svg { fill: #e8a35c20; }
.table-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 1px 0; color: #727e8d; font-size: 10px; line-height: 1.7; }
.table-foot a { color: #a1aab7; }
.empty-state { padding: 70px 24px; border: 1px solid var(--border); text-align: center; color: var(--muted); }
.empty-state > svg { width: 25px; height: 25px; margin: 0 auto 17px; color: var(--muted); }
.empty-state h2, .empty-state h3 { margin-bottom: 9px; color: var(--text); font-size: 18px; }
.empty-state p { max-width: 430px; margin: 0 auto 18px; line-height: 1.75; font-size: 12px; }

.scenario-note { display: flex; gap: 9px; padding: 11px 0; margin-bottom: 20px; color: var(--muted); font-size: 11px; line-height: 1.8; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.scenario-note strong { color: #b9c1cc; font-weight: 500; }
.scenario-note a { color: #aab4c1; text-decoration: underline; text-underline-offset: 3px; }
.note-icon { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; margin-top: 3px; border: 1px solid #627080; border-radius: 50%; flex-shrink: 0; font-family: Georgia, serif; font-size: 10px; font-style: italic; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.section-heading > span, .section-heading small { color: var(--muted); font-size: 11px; }
.split-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 20px 0; }
.compare-note { margin: 5px 0 20px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.compare-card { position: relative; min-width: 0; padding: 23px 20px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); }
.compare-card h2 { min-height: 46px; margin: 6px 0 15px; font-size: 19px; }
.compare-card > .brand-name { margin-top: 12px; }
.compare-card .btn { margin-top: 20px; }
.remove-card { position: absolute; right: 13px; top: 13px; width: 25px; min-height: 25px; background: transparent; }
.remove-card svg { width: 12px; height: 12px; }
.compare-art { display: flex; align-items: center; height: 100px; margin-bottom: 14px; }
.compare-art .miner-art { width: 132px; height: 100px; filter: grayscale(1); }
.metric-row, .metric-pair { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
.metric-row > span:first-child, .metric-pair > span:first-child { color: var(--muted); }
.metric-row strong, .metric-pair strong, .metric-pair b { font-weight: 500; text-align: right; }
.tool-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; align-items: start; }
.tool-card { min-width: 0; padding: 24px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); }
.tool-card h2 { font-size: 18px; margin-bottom: 8px; }
.tool-card > p { margin-bottom: 18px; color: var(--muted); font-size: 12px; line-height: 1.85; }
.tool-card > p:last-child { margin-bottom: 0; }
.tool-card > p.muted { margin-top: 16px; }
.tool-card > .section-heading { justify-content: flex-start; margin-bottom: 23px; }
.tool-card > .section-heading h2 { flex: 1; margin: 0; }
.step-number { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1px solid var(--border-strong); border-radius: 4px; color: var(--muted); font-size: 10px; }
.field { display: flex; flex-direction: column; min-width: 0; gap: 7px; margin-bottom: 18px; }
.field > span, .field > label { color: #abb4c0; font-size: 11px; }
.field input, .field select { width: 100%; min-height: 39px; font-size: 12px; background: var(--bg); }
.field small { color: var(--subtle); font-size: 10px; line-height: 1.6; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.input-group { min-width: 0; display: flex; align-items: center; min-height: 39px; padding: 0 11px; border: 1px solid var(--border-strong); border-radius: 5px; background: var(--bg); }
.input-group input { min-width: 0; width: 100%; min-height: 37px; padding: 7px 0; border: 0; background: transparent; }
.input-group input:focus { outline: none; }
.input-group span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.input-group > span:first-child { margin-right: 7px; }
.input-group > span:last-child { margin-left: 6px; }
.input-group:focus-within { border-color: var(--accent); }
.advanced-settings { margin-top: 3px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.advanced-settings summary { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; color: #b2bcc9; font-size: 11px; cursor: pointer; list-style: none; }
.advanced-settings summary::-webkit-details-marker { display: none; }
.advanced-settings summary span { color: var(--muted); }
.advanced-settings[open] summary { padding-bottom: 20px; }
.source-caption { font-size: 11px; line-height: 1.8; margin: 15px 0; }
.validation-message { margin: 12px 0; padding: 10px 12px; border: 1px solid #6c5235; border-radius: 4px; background: #2a2118; color: #e6b67f; font-size: 11px; line-height: 1.7; }
.hero-result { padding: 1px 0 22px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.hero-result > span { display: block; color: #9faab8; font-size: 12px; margin-bottom: 9px; }
.hero-result > strong { font-size: 43px; font-weight: 500; line-height: 1.2; letter-spacing: -1px; }
.hero-result p { margin-top: 8px; color: var(--muted); font-size: 10px; }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 20px 0; background: var(--border); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.result-card { min-width: 0; padding: 16px; background: var(--surface); }
.result-card > span, .result-card .label { display: block; color: var(--muted); font-size: 11px; margin-bottom: 8px; }
.result-card strong { display: block; font-size: 23px; font-weight: 500; line-height: 1.3; letter-spacing: -.5px; }
.result-card small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.result-summary .result-grid { margin-top: 0; }
.result-summary .result-card strong { font-size: 20px; }
.result-summary .result-card small { display: inline; }
.result-summary .metric-row:last-child { padding-bottom: 0; border: 0; }
.chart-panel { margin-top: 22px; }
.chart-panel .split-heading { align-items: flex-start; margin: 0 0 19px; }
.chart-panel h3 { margin-top: 5px; color: #b5bfcc; font-size: 12px; font-weight: 400; }
.chart-panel .split-heading > strong { font-size: 20px; font-weight: 500; }
.panel-label { color: var(--muted); font-size: 10px; font-weight: 400; letter-spacing: .15px; }
.chart-svg { width: 100%; height: auto; overflow: visible; }
.chart-svg polyline { stroke: var(--accent); }
.chart-svg circle { fill: var(--accent); }
.chart-svg path { stroke: #414b59; }
.chart-svg text { fill: var(--muted); font-family: inherit; font-size: 10px; }
.chart-axis { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--subtle); font-size: 10px; margin-top: 8px; }
.chart-caption { color: var(--muted); font-size: 10px; margin-top: 10px; }
.conversion-result, .converter-result { margin-top: 12px; padding: 20px 0 5px; border-top: 1px solid var(--border); }
.conversion-result > span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 9px; }
.conversion-result > strong { display: block; color: var(--text); font-size: 31px; line-height: 1.3; font-weight: 500; letter-spacing: -.7px; overflow-wrap: anywhere; }
.conversion-result small { font-size: 17px; color: var(--muted); letter-spacing: 0; }
.formula { margin: 23px 0; padding: 17px; border: 1px solid var(--border); border-radius: 4px; background: var(--bg); color: var(--muted); font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; line-height: 2; overflow-wrap: anywhere; }
.formula strong { font-weight: 400; color: #c0cad7; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th, .data-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; }
.data-table th { color: var(--muted); font-size: 11px; font-weight: 500; }
.sources-card { margin-top: 24px; }
.source-list { margin-top: 12px; }
.source-item { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 0; border-top: 1px solid var(--border); }
.source-item strong, .source-item h3 { color: #c7cfda; font-size: 12px; font-weight: 500; }
.source-item small, .source-item p { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.source-item > span:last-child { color: var(--subtle); }
.source-item:hover strong, .source-item:hover > span:last-child { color: var(--accent); }
.methodology { max-width: 840px; }
.methodology h2 { margin-top: 27px; margin-bottom: 12px; }
.methodology p, .methodology li { color: var(--muted); font-size: 12px; line-height: 1.9; }
.methodology ul { padding-left: 20px; }

.compare-tray-inner { position: fixed; z-index: 30; bottom: 20px; left: 24px; right: 24px; max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 15px; padding: 13px 16px; border: 1px solid #485360; border-radius: 6px; background: #1a2028; box-shadow: 0 10px 32px #0008; }
.tray-count { display: flex; align-items: center; gap: 8px; color: #c7d0dc; font-size: 11px; white-space: nowrap; }
.tray-count svg { width: 17px; height: 17px; color: var(--muted); }
.tray-count > strong { font-size: 16px; font-weight: 500; }
.tray-count strong span { color: var(--muted); font-size: 12px; font-weight: 400; }
.tray-models { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; flex: 1; }
.tray-chip { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border: 1px solid #343d49; border-radius: 4px; color: #bac4d1; background: #121820; font-size: 10px; text-align: left; }
.tray-chip span { color: var(--muted); font-size: 13px; }
.compare-tray-inner > .btn:last-child { margin-left: auto; }
.has-tray .page-footer { padding-bottom: 105px; }
dialog { width: min(640px, 100%); height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; padding: 0; color: var(--text); background: var(--surface); border: 0; border-left: 1px solid var(--border-strong); border-radius: 0; overflow-y: auto; box-shadow: -12px 0 60px #0005; }
dialog::backdrop { background: #06090ccc; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 25px; border-bottom: 1px solid var(--border); }
.dialog-header .eyebrow { display: block; color: var(--muted); font-size: 11px; }
.profile-label { color: #a5afbc; font-size: 11px; }
.dialog-header h2 { font-size: 25px; letter-spacing: -.5px; }
.dialog-close { align-self: flex-start; flex-shrink: 0; color: var(--muted); background: transparent; }
.dialog-body { padding: 25px; }
.dialog-profile { margin-bottom: 25px; }
.dialog-profile h2 { font-size: 26px; letter-spacing: -.5px; margin: 5px 0 8px; }
.dialog-profile .brand-name { margin-top: 12px; }
.dialog-profile > p.muted { font-size: 12px; }
.dialog-profile > p.muted > span { padding: 0 5px; color: #4c5866; }
.detail-art { width: 148px; flex-shrink: 0; }
.detail-art .miner-art { width: 148px; height: 115px; filter: grayscale(1); }
.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.spec-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
.spec-item > span:first-child { color: var(--muted); }
.spec-item strong { font-weight: 500; text-align: right; }
.dialog-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 24px 0; border: 1px solid var(--border); border-radius: 5px; }
.dialog-metrics > div { min-width: 0; padding: 17px 15px; border-right: 1px solid var(--border); }
.dialog-metrics > div:last-child { border-right: 0; }
.dialog-metrics span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 10px; }
.dialog-metrics strong { font-size: 21px; font-weight: 500; letter-spacing: -.4px; }
.dialog-metrics small { font-size: 10px; color: var(--muted); }
.dialog-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 7px 0; }
.dialog-actions a { font-size: 11px; }
.detail-tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--border); margin-top: 20px; }
.detail-tabs button { padding: 12px 0; color: var(--muted); background: transparent; border: 0; border-bottom: 2px solid transparent; font-size: 12px; }
.detail-tabs button[aria-selected="true"], .detail-tabs button.active { color: var(--text); border-bottom-color: var(--accent); }
.profile-economics { margin-top: 30px; overflow-x: auto; }
.profile-economics h3 { font-size: 15px; font-weight: 550; }
.profile-economics > .source-caption { margin: 8px 0 19px; font-size: 10px; }
.economics-table { width: 100%; min-width: 320px; border-collapse: collapse; font-size: 12px; }
.economics-table th, .economics-table td { padding: 12px 9px; text-align: right; border-bottom: 1px solid var(--border); white-space: nowrap; }
.economics-table th:first-child { text-align: left; padding-left: 0; }
.economics-table td:last-child, .economics-table th:last-child { padding-right: 0; }
.economics-table thead th { padding-top: 7px; color: var(--muted); font-weight: 400; font-size: 10px; border-top: 1px solid var(--border); }
.economics-table tbody th { color: #9da8b6; font-weight: 400; font-size: 11px; }
.economics-table tbody td { color: #c6cfdb; }
.economics-table .total-row th, .economics-table .total-row td { padding-top: 16px; padding-bottom: 16px; font-weight: 550; border-bottom-color: var(--border-strong); }
.economics-table .total-row th { color: var(--text); }
.economics-table .total-row .profit-value { font-weight: 700; }
.economics-table .positive { color: var(--positive); }
.economics-table .negative { color: var(--negative); }

.profile-payback { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 23px 0 27px; }
.profile-payback > span { display: flex; flex-direction: column; gap: 8px; font-size: 11px; color: var(--muted); }
.profile-payback strong { color: #d4dce7; font-size: 17px; font-weight: 500; }
.profile-source { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 26px; padding-top: 19px; border-top: 1px solid var(--border); }
.profile-source .source-link { padding-top: 0; }
.profile-source > span { color: var(--subtle); font-size: 10px; }
.page-footer { max-width: 1440px; width: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 32px 26px; border-top: 1px solid var(--border); color: var(--subtle); font-size: 10px; line-height: 1.8; }
.page-footer > span:first-child { display: flex; align-items: center; gap: 8px; }
.page-footer a { color: #9aa5b3; margin-left: 14px; }
.page-footer > div { display: flex; align-items: center; gap: 23px; }
.page-footer > div a { margin-left: 0; }
.footer-mark { display: none; }
.toast { position: fixed; z-index: 60; bottom: 26px; left: 50%; transform: translate(-50%, 10px); max-width: calc(100% - 32px); padding: 11px 17px; border: 1px solid #4c5969; border-radius: 5px; background: #232c37; color: #dbe3ed; font-size: 12px; box-shadow: 0 7px 26px #0007; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.has-tray .toast { bottom: 105px; }

@media (min-width: 1600px) {
  .header-inner { gap: 42px; }
  .header-nav { gap: 25px; }
}
@media (max-width: 1160px) {
  .header-inner { gap: 27px; padding: 0 24px; }
  .header-nav { gap: 17px; }
  .power-control > label { display: none; }
  .header-actions { gap: 11px; }
  main { padding-left: 24px; padding-right: 24px; }
  .page-footer { padding-left: 24px; padding-right: 24px; }
  .coin-tabs { gap: 23px; }
  .column-controls { display: none; }
  .tool-grid { gap: 18px; }
}
@media (max-width: 960px) {
  .header-inner { flex-wrap: wrap; gap: 0; min-height: 0; padding-top: 18px; }
  .brand { margin-bottom: 17px; }
  .header-actions { margin-left: auto; margin-bottom: 17px; }
  .power-control > label { display: inline; }
  .header-nav { order: 3; width: 100%; overflow-x: auto; gap: 25px; scrollbar-width: none; }
  .header-nav::-webkit-scrollbar { display: none; }
  .nav-link { min-height: 43px; }
  .tool-grid { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .table-foot { align-items: flex-start; }
  .page-footer { align-items: flex-start; }
  .page-footer > span:last-child { text-align: right; }
}
@media (max-width: 760px) {
  .header-inner { padding: 10px 16px 0; }
  .brand { font-size: 21px; margin-bottom: 10px; }
  .header-nav { gap: 23px; margin: 0 -16px; padding: 0 16px; width: calc(100% + 32px); }
  .nav-link { min-height: 36px; font-size: 12px; }
  .header-actions { gap: 10px; margin-bottom: 10px; }
  .power-control { gap: 7px; }
  .power-control > label { font-size: 10px; }
  .currency { font-size: 10px; }
  main { padding: 20px 16px 30px; min-height: calc(100vh - 200px); }
  h1 { font-size: 24px; }
  .catalog-heading, .page-heading { gap: 15px; align-items: flex-start; margin-bottom: 10px; }
  .heading-main p, .heading-copy { margin-top: 7px; font-size: 11px; line-height: 1.75; }
  .catalog-heading .heading-main p { display: none; }
  .catalog-actions .btn, .heading-actions .btn { min-height: 31px; padding: 7px 9px; font-size: 10px; }
  .catalog-actions .btn svg { display: none; }
  .dataset-line { gap: 3px 5px; font-size: 10px; margin-bottom: 10px; line-height: 1.6; }
  .dataset-line .source-link { font-size: 10px; }
  .data-note { margin-left: 0; }
  .coin-tabs { gap: 22px; }
  .coin-tab { min-height: 38px; padding-top: 7px; padding-bottom: 9px; font-size: 11px; }
  .catalog-toolbar, .toolbar { gap: 7px; padding: 10px 0 8px; }
  .search-wrap { flex-basis: 100%; min-width: 0; max-width: none; }
  .search-wrap input { min-height: 34px; }
  .filter-select { flex: 1; max-width: none; min-width: 0; min-height: 31px; padding: 5px 15px 5px 8px; font-size: 10px; }
  .filter-reset { min-height: 30px; padding: 5px 3px; margin-left: auto; font-size: 10px; }
  .table-meta, .table-heading { gap: 10px; min-height: 29px; margin-bottom: 3px; font-size: 10px; }
  .table-meta > div, .table-heading > div { gap: 10px; }
  .applied-assumptions { display: none; }
  .toggle-label { font-size: 10px; }
  .sort-select { flex: 0 1 auto; min-width: 0; max-width: 122px; font-size: 10px; }
  .table-scroll, .table-wrap { width: 100%; max-width: 100%; padding-right: 0; }
  .miner-table { width: 100%; min-width: 0; table-layout: fixed; }
  .miner-table th, .miner-table td { padding-left: 6px; padding-right: 6px; }
  .miner-table th { height: 35px; font-size: 9px; }
  .miner-table td { height: 82px; font-size: 11px; }
  .miner-table th:nth-child(3), .miner-table td:nth-child(3),
  .miner-table th:nth-child(4), .miner-table td:nth-child(4),
  .miner-table th:nth-child(6), .miner-table td:nth-child(6),
  .miner-table th:nth-child(7), .miner-table td:nth-child(7) { display: none; }
  .miner-table th:first-child, .miner-table td:first-child { width: 28px; padding-left: 4px; padding-right: 7px; }
  .miner-table th:last-child, .miner-table td:last-child { width: 28px; padding-left: 1px; padding-right: 0; }
  .miner-table th:nth-child(5), .miner-table td:nth-child(5) { width: 64px; }
  .miner-table th:nth-child(8), .miner-table td:nth-child(8) { width: 88px; }
  .miner-table th:nth-child(2), .miner-table td:nth-child(2) { position: static; box-shadow: none; }
  .model-cell { width: 100%; min-width: 0; gap: 8px; }
  .model-text { width: 100%; min-width: 0; }
  .model-mark { width: 27px; height: 29px; font-size: 9px; }
  .model-name { width: 100%; max-width: 100%; overflow: hidden; white-space: normal; font-size: 13px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .model-text .brand-name { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
  .net-cell strong { font-size: 12px; }
  .net-cell .profit-value { font-size: 13px; }
  .net-cell .subvalue { font-size: 9px; }
  .watch-button { width: 27px; padding: 5px; }
  .table-foot { flex-direction: column; gap: 4px; font-size: 10px; }
  .compare-tray-inner { left: 12px; right: 12px; bottom: 12px; gap: 10px; padding: 11px 12px; }
  .tray-models { display: none; }
  .tray-count > span { display: none; }
  .compare-tray-inner > .btn:last-child { margin-left: 0; }
  .compare-tray-inner > .btn.secondary { margin-left: auto; }
  .page-footer { padding: 18px 16px 25px; font-size: 10px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .page-footer > span:last-child { text-align: left; }
  .page-footer a { margin-left: 8px; }
  .mobile-only { display: inline-flex; }
  .tool-card { padding: 20px; }
  .tool-card .section-heading { gap: 8px; }
  .scenario-tag { font-size: 9px; }
  dialog { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; }
  .dialog-header { padding: 17px 19px; }
  .dialog-body { padding: 20px; }
  .dialog-profile { gap: 17px; }
  .dialog-profile h2 { font-size: 23px; }
  .detail-art { width: 115px; }
  .detail-art .miner-art { width: 115px; height: 95px; }
  .dialog-metrics strong { font-size: 18px; }
}
@media (max-width: 440px) {
  .power-control > label { display: none; }
  .header-actions { gap: 8px; }
  .power-input { padding: 0 7px; gap: 4px; }
  .catalog-actions .btn { padding: 7px 8px; }
  .catalog-heading .heading-main p { max-width: 240px; }
  .table-meta > div, .table-heading > div { gap: 8px; }
  .sort-select { max-width: 110px; }
  .compare-grid { grid-template-columns: 1fr; }
  .field-grid { gap: 0 12px; }
  .tool-card { padding: 18px; }
  .hero-result > strong { font-size: 38px; }
  .result-card { padding: 13px; }
  .result-card strong, .result-summary .result-card strong { font-size: 18px; }
  .chart-panel .split-heading > strong { font-size: 17px; }
  .formula { padding: 12px; font-size: 10px; }
  .source-item small { overflow-wrap: anywhere; }
  .dialog-profile { gap: 12px; }
  .detail-art { width: 90px; }
  .detail-art .miner-art { width: 90px; height: 80px; }
  .dialog-profile h2 { font-size: 21px; }
  .spec-grid { grid-template-columns: 1fr; }
  .dialog-metrics { margin: 22px 0; }
  .dialog-metrics > div { padding: 13px 10px; }
  .dialog-metrics strong { font-size: 17px; }
  .economics-table { font-size: 11px; }
  .economics-table th, .economics-table td { padding: 12px 6px; }
  .economics-table tbody th { font-size: 10px; }
  .profile-source { flex-wrap: wrap; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Keep the power setting reachable while scanning longer lists. */
.site-header { position: sticky; top: 0; z-index: 30; }
main { scroll-margin-top: 85px; }
.economics-scroll { width: 100%; overflow-x: auto; }
.mobile-power { display: none; }

/* Explicit schemes keep the catalog's density and hierarchy identical. */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 7px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  color: var(--muted);
  background: transparent;
}
.theme-toggle:hover { color: var(--text); background: var(--surface-hover); }
.theme-toggle svg { width: 16px; height: 16px; }
.merged-mining-note { margin-top: 16px; padding: 2px 0 2px 12px; border-left: 2px solid var(--border-strong); color: var(--muted); font-size: 11px; line-height: 1.7; }
.merged-mining-note > strong { display: block; margin-bottom: 4px; color: var(--text); font-size: 11px; font-weight: 500; }
.merged-mining-note p { margin: 0; }
.merged-mining-note a { display: inline-flex; margin-top: 6px; color: var(--accent); font-size: 10px; }
.merged-mining-note a:hover { text-decoration: underline; text-underline-offset: 3px; }
.coin-label .merged-tag { display: inline-flex; margin-left: 4px; padding: 0 4px; border: 1px solid var(--border-strong); border-radius: 3px; color: var(--muted); font-size: 9px; line-height: 1.5; vertical-align: middle; }

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-raised: #f0f3f6;
  --surface-hover: #edf1f5;
  --text: #242a32;
  --muted: #596675;
  --subtle: #637080;
  --border: #dbe0e6;
  --border-strong: #bbc4ce;
  --accent: #985a25;
  --lime: #985a25;
  --positive: #087443;
  --negative: #b34739;
}
html[data-theme="light"] .site-header { background: var(--surface); }
html[data-theme="light"] .brand { color: var(--text); }
html[data-theme="light"] .brand:hover { color: #111820; }
html[data-theme="light"] .nav-link,
html[data-theme="light"] .coin-tab { color: var(--muted); }
html[data-theme="light"] .nav-link:hover,
html[data-theme="light"] .nav-link.active,
html[data-theme="light"] .coin-tab:hover,
html[data-theme="light"] .coin-tab.active { color: var(--text); }
html[data-theme="light"] .nav-count { background: var(--surface-raised); }
html[data-theme="light"] .currency,
html[data-theme="light"] .data-note,
html[data-theme="light"] .column-controls label,
html[data-theme="light"] .table-meta strong,
html[data-theme="light"] .table-heading strong,
html[data-theme="light"] .sort-select,
html[data-theme="light"] .algorithm-label,
html[data-theme="light"] .price-cell,
html[data-theme="light"] .payback-cell,
html[data-theme="light"] .rate-cell,
html[data-theme="light"] .power-cell { color: var(--text); }
html[data-theme="light"] .separator,
html[data-theme="light"] .applied-assumptions span,
html[data-theme="light"] .dialog-profile > p.muted > span { color: #8994a2; }
html[data-theme="light"] .help-mark,
html[data-theme="light"] .note-icon { border-color: #8c98a6; }
html[data-theme="light"] .btn,
html[data-theme="light"] .icon-btn { color: var(--text); }
html[data-theme="light"] .btn:hover,
html[data-theme="light"] .icon-btn:hover { border-color: #8c98a6; }
html[data-theme="light"] .btn.primary { color: #fff; }
html[data-theme="light"] .btn.primary:hover { color: #fff; background: #7e481d; border-color: #7e481d; }
html[data-theme="light"] .skip { color: #fff; }
html[data-theme="light"] .coin-dot { color: #596675; background: #e5e9ee; }
html[data-theme="light"] .coin-dot.btc { color: #88511f; background: #f4e6d8; }
html[data-theme="light"] .coin-dot.zec { color: #7b5b20; background: #eee7d6; }
html[data-theme="light"] .coin-dot.ltc { color: #465d7c; background: #e1e8f1; }
html[data-theme="light"] .coin-dot.kas { color: #35645c; background: #dfeee9; }
html[data-theme="light"] .coin-dot.alph { color: #65527d; background: #eae3f2; }
html[data-theme="light"] .coin-dot.etc { color: #476d47; background: #e1ecdf; }
html[data-theme="light"] .search-wrap input,
html[data-theme="light"] .filter-select { background: var(--surface); color: var(--text); }
html[data-theme="light"] .search-wrap > svg,
html[data-theme="light"] .search-wrap > span:first-child { color: var(--subtle); }
html[data-theme="light"] .column-controls > div,
html[data-theme="light"] .column-menu { background: var(--surface); box-shadow: 0 8px 24px #24314415; }
html[data-theme="light"] .applied-assumptions,
html[data-theme="light"] .subvalue,
html[data-theme="light"] .table-foot { color: var(--muted); }
html[data-theme="light"] .table-scroll,
html[data-theme="light"] .table-wrap { scrollbar-color: #bbc4ce transparent; }
html[data-theme="light"] .miner-table th { background: #edf0f4; color: var(--muted); }
html[data-theme="light"] .miner-table td { border-bottom-color: var(--border); }
html[data-theme="light"] .miner-table tbody tr:hover td { background: #eef2f6; }
html[data-theme="light"] .miner-table tbody tr.selected-row td { background: #f3ece4; }
html[data-theme="light"] .miner-table tbody tr.selected-row td:first-child { box-shadow: inset 2px 0 var(--accent); }
html[data-theme="light"] .miner-table .sorted-column { background: #f0f3f6; }
html[data-theme="light"] .miner-table tbody tr:hover .sorted-column { background: #e8edf2; }
html[data-theme="light"] .sort-header:hover,
html[data-theme="light"] .sort-header.sort-active,
html[data-theme="light"] .sort-active { color: var(--text); }
html[data-theme="light"] .model-mark { border-color: #cfd6df; background: #e9edf2; color: #526071; }
html[data-theme="light"] .model-name { color: var(--text); }
html[data-theme="light"] .model-cell:hover .model-name { color: var(--accent); }
html[data-theme="light"] .coin-badge { border-color: #cfd6df; background: #e9edf2; color: #526071; }
html[data-theme="light"] .watch-button { color: #798697; }
html[data-theme="light"] .watch-button:hover { background: #e4e9ef; color: #465565; }
html[data-theme="light"] .watch-button.saved { color: var(--accent); }
html[data-theme="light"] .watch-button.saved svg { fill: #985a2518; }
html[data-theme="light"] .table-foot a,
html[data-theme="light"] .scenario-note a,
html[data-theme="light"] .page-footer a { color: #4a596b; }
html[data-theme="light"] .scenario-note strong,
html[data-theme="light"] .field > span,
html[data-theme="light"] .field > label,
html[data-theme="light"] .advanced-settings summary,
html[data-theme="light"] .hero-result > span,
html[data-theme="light"] .chart-panel h3,
html[data-theme="light"] .formula strong,
html[data-theme="light"] .source-item strong,
html[data-theme="light"] .source-item h3 { color: var(--text); }
html[data-theme="light"] .validation-message { border-color: #d8ba93; background: #fbf1e4; color: #82531f; }
html[data-theme="light"] .chart-svg path { stroke: #cbd3dc; }
html[data-theme="light"] .compare-tray-inner { border-color: #bbc4ce; background: var(--surface); box-shadow: 0 10px 32px #24314420; }
html[data-theme="light"] .tray-count { color: var(--text); }
html[data-theme="light"] .tray-chip { border-color: var(--border); background: var(--bg); color: var(--text); }
html[data-theme="light"] dialog { box-shadow: -12px 0 60px #24314422; }
html[data-theme="light"] dialog::backdrop { background: #26314266; }
html[data-theme="light"] .profile-label,
html[data-theme="light"] .economics-table tbody th { color: var(--muted); }
html[data-theme="light"] .economics-table tbody td,
html[data-theme="light"] .profile-payback strong { color: var(--text); }
html[data-theme="light"] .economics-table .positive { color: var(--positive); }
html[data-theme="light"] .economics-table .negative { color: var(--negative); }

html[data-theme="light"] .source-item:hover strong,
html[data-theme="light"] .source-item:hover > span:last-child { color: var(--accent); }
html[data-theme="light"] .toast { border-color: var(--border-strong); background: var(--surface); color: var(--text); box-shadow: 0 7px 26px #24314422; }

@media (max-width: 440px) {
  .header-actions .currency { display: none; }
}
@media (max-width: 380px) {
  .miner-table th:nth-child(5), .miner-table td:nth-child(5) { display: none; }
  .manufacturer-meta { display: none; }
  .mobile-power { display: inline; }
  .model-name { white-space: normal; overflow: visible; text-overflow: clip; }
}


/* Real hardware and coin identities are the catalog's visual landmarks. */
.model-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 64px;
  width: 64px;
  height: 60px;
  padding: 3px;
  overflow: hidden;
  background: #f8f9fa;
  border: 1px solid #dce1e7;
  border-radius: 3px;
}
.model-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.model-image.image-banner { object-fit: cover; object-position: 50% 55%; }
.profile-product-image.image-banner, .calculator-product-image.image-banner { object-fit: cover; object-position: 50% 55%; }
.compare-product-image.image-banner { width: 190px; height: 130px; object-fit: cover; object-position: 50% 55%; }
.image-missing { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #7c8795; font-size: 16px; }
.catalog-pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; color: var(--muted); font-size: 11px; border-bottom: 1px solid var(--border); }
.catalog-pagination:empty { display: none; }
.lifecycle-label { padding: 2px 5px; margin-left: 4px; border: 1px solid var(--border-strong); border-radius: 2px; color: var(--muted); font-size: 9px; white-space: nowrap; }
.coin-unknown { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 22px; width: 22px; height: 22px; border: 1px solid var(--border-strong); border-radius: 50%; font-size: 6px; color: var(--muted); }
.coverage-gaps { padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.image-credit { font-size: 10px; }
.network-note { border-left: 2px solid var(--accent); padding: 9px 12px; margin: 20px 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.network-note a { color: var(--accent); }
.estimate-link { color: var(--muted); font-size: 11px; text-underline-offset: 3px; }
.estimate-link:hover { color: var(--text); }
.model-cell { min-width: 256px; gap: 13px; }
.model-cell:hover .model-image-wrap { border-color: #b1bac5; }
.model-text { min-width: 0; }
.model-text .brand-name { line-height: 1.5; }
.manufacturer-meta > span { padding: 0 3px; color: var(--subtle); }
.coin-identity { display: flex; align-items: center; gap: 7px; margin-top: 6px; min-height: 22px; }
.coin-logo-group, .tab-coin-logos { display: inline-flex; align-items: center; flex-shrink: 0; }
.coin-logo { display: block; width: 22px; height: 22px; object-fit: contain; border-radius: 50%; flex-shrink: 0; }
.coin-logo.coin-logo-wec { border-radius: 0; transform: scale(1.2); }
.coin-logo-group .coin-logo + .coin-logo, .tab-coin-logos .coin-logo + .coin-logo { margin-left: -4px; box-shadow: 0 0 0 2px var(--bg); }
.coin-logo-group .coin-logo.coin-logo-wec, .tab-coin-logos .coin-logo.coin-logo-wec { margin-left: 0; box-shadow: none; }
.coin-identity .coin-label { color: var(--muted); font-size: 10px; line-height: 1.4; }
.coin-tab { gap: 8px; min-height: 46px; }
.tab-coin-logos .coin-logo { width: 20px; height: 20px; }
.coin-tab .tab-count { margin-left: 1px; }
.coin-badge:has(.coin-logo) { justify-content: flex-start; gap: 7px; padding: 0; border: 0; background: transparent; font-size: 10px; }
.mobile-coins { display: none; }
.mobile-lifecycle { display: none; }
.dialog-profile { display: flex; align-items: center; gap: 23px; margin-bottom: 25px; }
.profile-product-art {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 190px;
  width: 190px;
  height: 150px;
  padding: 10px;
  background: #f8f9fa;
  border: 1px solid #dce1e7;
  border-radius: 3px;
}
.profile-product-image { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.dialog-profile-copy { min-width: 0; }
.dialog-profile-copy .brand-name { margin-top: 0; margin-bottom: 6px; font-size: 12px; }
.dialog-profile-copy h2 { font-size: 25px; margin: 4px 0 10px; }
.dialog-profile-copy > p.muted { font-size: 11px; line-height: 1.6; }
.dialog-profile-copy > p.muted > span { color: var(--subtle); padding: 0 4px; }
.dialog-profile-copy .coin-identity { margin-top: 13px; }
.dialog-profile-copy .coin-label { font-size: 11px; }
.compare-art { display: flex; align-items: center; justify-content: center; height: 152px; padding: 10px; margin: 0 0 20px; background: #f8f9fa; border: 1px solid #dce1e7; border-radius: 3px; }
.compare-product-image { display: block; max-width: 100%; height: 130px; object-fit: contain; mix-blend-mode: multiply; }
.compare-card .coin-identity { margin-bottom: 10px; }
.compare-card .remove-card { background: var(--surface); color: var(--text); }
.compare-card .coin-logo-group .coin-logo + .coin-logo { box-shadow: 0 0 0 2px var(--surface); }
.compare-card .coin-logo-group .coin-logo.coin-logo-wec { box-shadow: none; }
.calculator-miner-visual { display: flex; align-items: center; gap: 17px; margin: 0 0 22px; padding-bottom: 21px; border-bottom: 1px solid var(--border); }
.calculator-product-art { display: flex; align-items: center; justify-content: center; flex: 0 0 96px; width: 96px; height: 80px; padding: 5px; background: #f8f9fa; border: 1px solid #dce1e7; border-radius: 3px; }
.calculator-product-art img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.calculator-miner-visual > div:last-child { min-width: 0; }
.calculator-miner-visual .brand-name { margin-bottom: 5px; }
.calculator-miner-visual .model-name { font-size: 16px; }
.calculator-miner-visual .coin-logo-group .coin-logo + .coin-logo { box-shadow: 0 0 0 2px var(--surface); }
.calculator-miner-visual .coin-logo-group .coin-logo.coin-logo-wec { box-shadow: none; }
html[data-theme="light"] .model-image-wrap,
html[data-theme="light"] .profile-product-art,
html[data-theme="light"] .compare-art,
html[data-theme="light"] .calculator-product-art { background: #fff; border-color: #dde2e8; }
html[data-theme="light"] .model-cell:hover .model-image-wrap { border-color: #9aa7b6; }
html[data-theme="light"] .coin-badge:has(.coin-logo) { background: transparent; border: 0; }

@media (max-width: 760px) {
  .model-image-wrap { flex-basis: 48px; width: 48px; height: 46px; padding: 2px; }
  .model-cell { width: 100%; min-width: 0; gap: 10px; }
  .model-text .brand-name { font-size: 10px; }
  .miner-table td { height: 82px; }
  .coin-tab { min-height: 44px; }
  .tab-coin-logos .coin-logo { width: 19px; height: 19px; }
  .mobile-coins { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; color: var(--muted); font-size: 9px; line-height: 14px; }
  .mobile-rate, .mobile-lifecycle { white-space: nowrap; }
  .mobile-coins .coin-logo { width: 14px; height: 14px; }
  .mobile-coins .coin-logo + .coin-logo { margin-left: -3px; box-shadow: 0 0 0 1px var(--bg); }
  .mobile-coins .coin-logo.coin-logo-wec { margin-left: 0; box-shadow: none; }
  .dialog-profile { gap: 18px; }
  .profile-product-art { flex-basis: 150px; width: 150px; height: 130px; padding: 8px; }
  .dialog-profile-copy h2 { font-size: 22px; }
}
@media (max-width: 480px) {
  .mobile-coin-label { display: none; }
  .mobile-lifecycle { display: inline; }
  .miner-table th:nth-child(5), .miner-table td:nth-child(5) { display: none; }
  .miner-table th:nth-child(8), .miner-table td:nth-child(8) { width: 80px; }
  .miner-table th:first-child, .miner-table td:first-child { width: 25px; padding-left: 2px; padding-right: 5px; }
  .miner-table th:last-child, .miner-table td:last-child { width: 24px; }
  .model-cell { gap: 9px; }
  .model-name { font-size: 12px; line-height: 1.4; overflow: hidden; }
  .manufacturer-meta { display: none; }
  .mobile-power { display: inline; color: var(--muted); font-size: 9px; white-space: nowrap; }
  .net-cell strong { font-size: 12px; }
  .net-cell .profit-value { font-size: 13px; }
  .net-cell .subvalue { font-size: 9px; }
  .watch-button { width: 24px; padding: 5px; }
  .dialog-body { padding: 20px 17px; }
  .profile-product-art { flex-basis: 124px; width: 124px; height: 118px; padding: 6px; }
  .dialog-profile { gap: 15px; }
  .dialog-profile-copy h2 { font-size: 20px; }
  .dialog-profile-copy .brand-name { font-size: 11px; }
  .dialog-profile-copy > p.muted { font-size: 10px; }
  .dialog-profile-copy .coin-label { font-size: 10px; }
  .dialog-profile-copy .coin-logo { width: 19px; height: 19px; }
  .calculator-miner-visual { gap: 13px; }
}
@media (max-width: 360px) {
  .model-image-wrap { flex-basis: 42px; width: 42px; height: 44px; padding: 2px; }
  .model-cell { gap: 8px; }
  .miner-table th:nth-child(8), .miner-table td:nth-child(8) { width: 78px; }
  .miner-table th:first-child, .miner-table td:first-child { width: 23px; }
  .model-name { font-size: 11px; }
  .mobile-power { font-size: 8px; }
  .profile-product-art { flex-basis: 106px; width: 106px; height: 108px; }
  .dialog-profile-copy h2 { font-size: 18px; }
  .dialog-profile { gap: 13px; }
}

.revenue-status { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 11px 0 0; color: var(--muted); font-size: 10px; }
.revenue-status .status-dot { background: var(--positive); }
.revenue-status a { margin-left: auto; }
.revenue-missing { display: block; max-width: 95px; margin-top: 3px; font-size: 9px; line-height: 1.3; color: var(--muted); }
.revenue-source { margin-top: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.revenue-source p, .revenue-source small { display: block; margin: 6px 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.revenue-source .source-link { display: inline-block; margin-top: 5px; font-size: 10px; }
