:root {
  color-scheme: dark;
  --bg: #0c0f13;
  --bg-soft: #11161c;
  --panel: #151b22;
  --panel-2: #1a222b;
  --panel-3: #202832;
  --line: rgba(164, 178, 193, .14);
  --line-strong: rgba(178, 192, 207, .24);
  --text: #f4f6f8;
  --muted: #9ba5b1;
  --muted-2: #7f8a95;
  --accent: #f5c842;
  --accent-soft: #ffe18a;
  --green: #36c78a;
  --warning: #f0a348;
  --danger: #e66b6b;
  --shadow: 0 26px 70px rgba(0, 0, 0, .3);
  --shadow-soft: 0 12px 34px rgba(0, 0, 0, .2);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* { scrollbar-width: thin; scrollbar-color: #35404b #11161c; }
html { background: var(--bg); }
body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 83% -8%, rgba(245, 200, 66, .095), transparent 34rem),
    radial-gradient(circle at 8% 30%, rgba(72, 99, 123, .08), transparent 30rem),
    linear-gradient(180deg, #0c0f13 0%, #0a0d11 100%);
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  font-feature-settings: "tnum" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(245, 200, 66, .28); color: #fff; }
:where(a, button, input, select):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button:disabled { cursor: not-allowed; opacity: .42; }
.skip-link { position: fixed; top: 8px; left: 12px; z-index: 1000; padding: 10px 14px; border-radius: 8px; background: var(--accent); color: #111820; font-size: 12px; font-weight: 850; transform: translateY(-160%); transition: transform 140ms ease; }
.skip-link:focus { transform: translateY(0); }
.shell { width: min(1240px, calc(100% - 48px)); }
.noise { opacity: .018; }

/* Shared navigation */
.site-header.multi-header {
  top: 12px;
  width: min(1280px, calc(100% - 32px));
  min-height: 66px;
  margin-top: 12px;
  padding: 7px 8px 7px 14px;
  border-color: rgba(170, 184, 199, .17);
  border-radius: 16px;
  background: rgba(12, 15, 19, .82);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .22), inset 0 1px rgba(255, 255, 255, .025);
  backdrop-filter: blur(22px) saturate(130%);
}
.site-header.multi-header::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 28px;
  width: 84px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.brand { gap: 11px; font-size: 19px; letter-spacing: -.045em; }
.brand-mark { width: 44px; height: 44px; }
.platform-nav { display: flex; align-items: center; gap: 3px; margin-left: auto; }
.platform-nav a {
  position: relative;
  padding: 11px 13px;
  border-radius: 9px;
  color: #8d98a4;
  font-size: 12px;
  font-weight: 650;
  transition: color 180ms ease, background 180ms ease;
}
.platform-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .045); }
.platform-nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, .055); }
.platform-nav a[aria-current="page"]::after { content: ""; position: absolute; right: 13px; bottom: 5px; left: 13px; height: 1px; background: var(--accent); }
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  margin-left: 8px;
  padding: 0 15px;
  border: 1px solid rgba(245, 200, 66, .34);
  border-radius: 10px;
  background: rgba(245, 200, 66, .1);
  color: var(--accent-soft);
  font-size: 11px;
  font-weight: 800;
  transition: background 180ms ease, transform 180ms ease;
}
.header-cta::before { content: "+"; font-size: 16px; font-weight: 500; }
.header-cta:hover { background: rgba(245, 200, 66, .16); transform: translateY(-1px); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); cursor: pointer; }
.menu-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; border-radius: 2px; background: #cbd2d9; transition: 180ms ease; }
.menu-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Foundation */
.page-main { min-height: calc(100vh - 190px); animation: page-enter 360ms ease both; }
.page-hero { position: relative; padding-block: 90px 50px; }
.page-hero.compact { padding-bottom: 38px; }
.page-hero::after { content: ""; position: absolute; right: 0; bottom: 24px; left: 0; height: 1px; background: linear-gradient(90deg, var(--line), transparent 72%); }
.page-hero h1 { max-width: 950px; margin: 20px 0 0; font-size: clamp(44px, 5.6vw, 74px); font-weight: 650; letter-spacing: -.06em; line-height: .98; }
.page-hero h1 em { color: var(--accent); font-style: normal; }
.page-hero > p { max-width: 740px; margin: 22px 0 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; color: #68737e; font-size: 11px; }
.breadcrumbs a { transition: color 160ms ease; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs b { color: #aab3bc; font-weight: 600; }
.breadcrumbs span { color: #3e4852; }
.eyebrow { color: #a6b0ba; font-size: 10px; letter-spacing: .17em; }
.eyebrow span { border-radius: 1px; box-shadow: none; }
.content-section { padding-bottom: 110px; }
.tool-label { color: #7f8a95; font-size: 9px; letter-spacing: .15em; }
.button { min-height: 46px; gap: 10px; padding-inline: 18px; border-radius: 10px; font-size: 12px; letter-spacing: -.01em; transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--accent); color: #17150e; box-shadow: 0 10px 28px rgba(245, 200, 66, .12), inset 0 1px rgba(255, 255, 255, .28); }
.button-primary:hover { background: #ffd354; box-shadow: 0 14px 34px rgba(245, 200, 66, .18); }
.button-secondary { border-color: var(--line-strong); background: rgba(255, 255, 255, .025); color: #d7dce1; }
.button-secondary:hover { border-color: rgba(206, 216, 226, .34); background: rgba(255, 255, 255, .045); }
input, select { color-scheme: dark; }
input::placeholder { color: #7b8792; }

/* Homepage */
.home-hero { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(500px, 1.05fr); gap: 70px; align-items: center; min-height: 720px; padding-block: 82px 66px; }
.home-hero::before { content: "DUCKMINE / ANALYTICS"; position: absolute; right: 0; top: 54px; color: rgba(255, 255, 255, .04); font-size: 11px; font-weight: 800; letter-spacing: .24em; writing-mode: vertical-rl; }
.home-copy h1 { margin: 20px 0 0; max-width: 720px; font-size: clamp(52px, 6vw, 80px); font-weight: 650; line-height: .96; letter-spacing: -.065em; }
.home-copy h1 em { color: var(--accent); font-style: normal; }
.home-copy > p { max-width: 640px; margin: 27px 0 0; color: #a5afb9; font-size: 17px; line-height: 1.7; }
.home-copy .page-actions .button:first-child::after { content: "→"; }
.home-demo-link { margin-top: 18px; color: #8c97a2; font-size: 11px; }
.home-demo-link span { border-color: rgba(245, 200, 66, .3); background: rgba(245, 200, 66, .075); font-size: 8px; letter-spacing: .08em; }
.home-preview { position: relative; min-height: 520px; }
.preview-grid { position: absolute; inset: -25px -20px; border-radius: 32px; background: linear-gradient(rgba(148, 164, 180, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 164, 180, .09) 1px, transparent 1px); background-size: 36px 36px; mask-image: radial-gradient(ellipse at center, #000 28%, transparent 72%); opacity: .58; }
.preview-panel { position: absolute; inset: 38px 10px 38px 24px; padding: 22px; border: 1px solid var(--line-strong); border-radius: 22px; background: linear-gradient(160deg, rgba(28, 36, 45, .98), rgba(14, 18, 23, .98) 72%); box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, .035); overflow: hidden; }
.preview-panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, var(--accent), rgba(245, 200, 66, 0) 52%); }
.preview-panel::after { content: ""; position: absolute; right: -80px; bottom: -100px; width: 280px; height: 280px; border-radius: 50%; background: rgba(245, 200, 66, .08); filter: blur(70px); }
.preview-panel-head { position: relative; z-index: 1; align-items: center; color: #788490; font-size: 9px; letter-spacing: .12em; }
.preview-panel-head span:first-child::before { content: "DM-01  /  "; color: var(--accent); }
.preview-panel-head b { display: inline-flex; align-items: center; gap: 7px; color: var(--green); }
.preview-panel-head b::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.preview-overview { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px; margin-top: 34px; }
.preview-primary small { display: block; color: #7f8a95; font-size: 10px; }
.preview-power { margin-top: 8px; color: var(--text); font-size: 58px; font-weight: 650; line-height: 1; }
.preview-power small { color: #88939e; font-size: 16px; font-weight: 600; }
.preview-cost { margin-top: 16px; color: #7f8a95; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.preview-cost b { display: block; margin-top: 5px; color: var(--accent); font-size: 18px; letter-spacing: -.04em; text-transform: none; }
.preview-chart { position: relative; min-height: 160px; border-left: 1px solid var(--line); }
.preview-chart svg { position: absolute; inset: 4px -6px 0 12px; width: calc(100% - 6px); height: 145px; overflow: visible; }
.preview-chart .grid { stroke: rgba(150, 167, 184, .13); stroke-width: 1; }
.preview-chart .area { fill: url(#previewArea); }
.preview-chart .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.preview-chart .dot { fill: var(--accent); stroke: #202832; stroke-width: 5; }
.preview-chart-label { position: absolute; top: -8px; right: 0; color: #7f8a95; font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.preview-metrics { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 26px; border: 1px solid var(--line); border-radius: 12px; background: var(--line); overflow: hidden; }
.preview-metrics span { min-width: 0; padding: 13px; background: rgba(14, 18, 23, .94); }
.preview-metrics small { color: #6f7a85; font-size: 8px; letter-spacing: .08em; }
.preview-metrics b { margin-top: 3px; color: #dce1e6; font-size: 12px; white-space: nowrap; }
.preview-foot { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; margin-top: 18px; color: #68737e; font-size: 8px; }
.preview-foot span:last-child { color: #aeb7c0; }
.home-features { padding-block: 72px 118px; border-top: 1px solid var(--line); }
.section-intro { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 60px; align-items: end; margin-bottom: 32px; }
.section-intro h2 { margin: 10px 0 0; font-size: clamp(34px, 4vw, 50px); font-weight: 650; letter-spacing: -.055em; line-height: 1; }
.section-intro > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.feature-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.feature-card { position: relative; grid-column: span 2; display: flex; min-height: 255px; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(150deg, rgba(25, 32, 40, .92), rgba(15, 20, 26, .92)); overflow: hidden; transition: transform 190ms ease, border-color 190ms ease, background 190ms ease; }
.feature-card:nth-child(1), .feature-card:nth-child(2) { grid-column: span 3; }
.feature-card:hover { transform: translateY(-3px); border-color: rgba(176, 191, 206, .26); background: linear-gradient(150deg, rgba(29, 37, 46, .98), rgba(16, 21, 27, .98)); }
.feature-card::after { content: ""; position: absolute; right: -30px; bottom: -58px; width: 150px; height: 150px; border: 1px solid rgba(245, 200, 66, .12); border-radius: 50%; }
.feature-card > span { color: var(--accent); font-size: 9px; letter-spacing: .14em; }
.feature-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-top: 24px; border: 1px solid var(--line-strong); border-radius: 11px; background: rgba(255, 255, 255, .025); color: var(--accent); font-size: 17px; }
.feature-card h2 { margin: auto 0 10px; font-size: 20px; letter-spacing: -.035em; }
.feature-card p { max-width: 390px; color: #89949f; font-size: 11px; line-height: 1.7; }
.feature-card a { margin-top: 18px; color: #d3d9df; font-size: 10px; letter-spacing: .02em; }
.feature-card a:hover { color: var(--accent); }
.principles { margin-top: 12px; border-color: var(--line); border-radius: 16px; }
.principles div { padding: 20px 22px; border-color: var(--line); background: rgba(16, 21, 27, .82); }
.principles b { font-size: 12px; }
.principles span { margin-top: 4px; color: #737f8b; font-size: 9px; }

/* Shared tool surfaces */
.tool-shell, .calculator-panel, .results-panel, .power-analysis, .saved-configurations, .asic-spec-card, .asic-actions-card, .chart-card, .tco-inputs { border-color: var(--line); background: linear-gradient(155deg, rgba(24, 31, 39, .96), rgba(15, 20, 26, .96)); box-shadow: inset 0 1px rgba(255, 255, 255, .025); }
.tool-shell { position: relative; padding: 22px; border-radius: var(--radius-xl); }
.tool-shell::before, .calculator-panel::before, .asic-spec-card::before { content: ""; position: absolute; top: -1px; left: 24px; width: 72px; height: 1px; background: var(--accent); opacity: .72; }
.tool-head { margin-bottom: 26px; }
.tool-head h2, .tool-head h3 { font-size: 26px; }
.tool-head > p { color: var(--muted); font-size: 12px; }
.empty-state { padding: 54px 24px; border-color: var(--line-strong); border-radius: 17px; background: rgba(12, 16, 21, .42); }
.empty-state h2, .empty-state h3 { font-size: 24px; }
.empty-state p { color: var(--muted); font-size: 12px; }

/* Catalog */
.catalog-layout { position: relative; }
.catalog-insights { display: grid; grid-template-columns: repeat(3, auto); gap: 28px; width: max-content; margin: -82px 0 38px auto; }
.catalog-insights div { padding-left: 14px; border-left: 1px solid var(--line-strong); }
.catalog-insights small { display: block; color: #6f7a85; font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.catalog-insights b { display: block; margin-top: 4px; font-size: 13px; }
.catalog-tools { display: grid; grid-template-columns: minmax(260px, 1fr) auto; gap: 14px; align-items: center; margin-bottom: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(18, 24, 31, .85); }
.search-box { width: 100%; min-height: 46px; padding: 0 14px; border-color: var(--line-strong); border-radius: 10px; background: #0f141a; }
.search-box span { color: #6e7a86; font-size: 19px; }
.search-box input { font-size: 12px; }
.filter-pills { justify-content: flex-end; gap: 6px; }
.filter-pill { min-height: 36px; padding: 7px 12px; border-color: var(--line); color: #8d98a4; font-size: 10px; }
.filter-pill.active, .filter-pill:hover { border-color: rgba(245, 200, 66, .35); background: rgba(245, 200, 66, .09); color: var(--accent-soft); }
.catalog-selects { gap: 10px; margin: 0 0 18px; }
.catalog-selects label { min-height: 48px; padding: 9px 13px; border-color: var(--line); border-radius: 11px; background: rgba(15, 20, 26, .86); }
.catalog-selects span { color: #6f7a85; font-size: 8px; }
.catalog-selects select { color: #dce1e6; font-size: 11px; }
.catalog-selects option { background: var(--panel); }
.catalog-summary { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; margin: 18px 2px 22px; color: #77838e; font-size: 10px; }
.catalog-summary span:first-child { color: #d7dde3; font-weight: 800; }
.catalog-summary span:nth-child(2) { justify-self: end; }
.filter-reset { padding: 0; border: 0; background: transparent; color: #8d98a4; cursor: pointer; font-size: 10px; font-weight: 700; }
.filter-reset:hover { color: var(--accent); }
.catalog-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
.catalog-grid .miner-card { min-height: 510px; padding: 20px; border-color: var(--line); border-radius: 18px; background: linear-gradient(155deg, #181f27, #10151b 74%); box-shadow: inset 0 1px rgba(255, 255, 255, .025); }
.miner-card:hover { transform: translateY(-4px); border-color: rgba(178, 194, 209, .28); box-shadow: var(--shadow-soft); }
.miner-card::after { top: 40px; right: -4px; color: rgba(255, 255, 255, .025); font-size: 128px; }
.miner-card-head { align-items: center; }
.miner-card-brand { color: #85919d; font-size: 9px; }
.algo-badge { border-color: rgba(245, 200, 66, .24); background: rgba(245, 200, 66, .07); color: var(--accent-soft); font-size: 8px; }
.miner-visual { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: end; min-height: 86px; margin: 18px 0 0; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(rgba(143, 160, 177, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(143, 160, 177, .07) 1px, transparent 1px), rgba(10, 14, 18, .55); background-size: 18px 18px; overflow: hidden; }
.miner-visual::after { content: ""; position: absolute; right: 22px; top: 17px; width: 42px; height: 28px; border: 1px solid rgba(245, 200, 66, .22); box-shadow: 8px 8px 0 -4px rgba(245, 200, 66, .1); }
.miner-visual strong { color: var(--accent); font-size: 24px; letter-spacing: -.05em; }
.miner-visual span { color: #66727e; font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.miner-card h2 { max-width: 92%; margin-top: 18px; font-size: 20px; }
.data-status { margin-top: 10px; color: #8d98a4; font-size: 9px; }
.miner-specs { gap: 15px 10px; padding-top: 22px; }
.miner-specs small { color: #6e7a86; font-size: 8px; letter-spacing: .04em; }
.miner-specs b { color: #e0e5ea; font-size: 11px; font-weight: 700; }
.miner-source { margin-top: 18px; padding-top: 13px; border-color: var(--line); font-size: 8px; }
.miner-card-actions { grid-template-columns: 1fr 1fr 1fr; gap: 7px; }
.card-detail, .miner-card-actions button { min-height: 38px; padding: 8px; border-radius: 9px; font-size: 9px; }
.card-detail { background: #e8edf1; color: #12171d; }
.miner-card-actions .add-farm-card { border-color: var(--line-strong); background: transparent; color: #d8dee4; }
.catalog-tray { border-color: var(--line-strong); background: rgba(20, 27, 34, .94); }

/* ASIC details */
.asic-layout { grid-template-columns: minmax(0, 1fr) 350px; gap: 18px; }
.asic-spec-card, .asic-actions-card { border-radius: 20px; }
.asic-spec-card { position: relative; padding: 28px; overflow: hidden; }
.asic-actions-card { top: 94px; padding: 23px; box-shadow: var(--shadow-soft); }
.asic-identity { padding-bottom: 26px; border-color: var(--line); }
.asic-identity h1 { font-size: clamp(35px, 5vw, 58px); }
.asic-monogram { width: 84px; border-color: rgba(245, 200, 66, .3); border-radius: 16px; background: rgba(245, 200, 66, .075); font-size: 31px; }
.spec-list { margin-top: 26px; }
.spec-list > div { padding: 16px 12px; border-color: var(--line); }
.spec-list dt { color: #74808b; font-size: 9px; }
.spec-list dd { margin-top: 7px; color: #e1e6eb; font-size: 12px; }
.source-panel { margin-top: 24px; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: rgba(11, 15, 20, .64); }
.source-panel p { color: #87929d; font-size: 10px; }
.asic-actions-card h2 { font-size: 20px; }
.asic-actions-card p { color: #8b96a1; font-size: 11px; }
.asic-back { color: #85909b; font-size: 10px; }

/* Compare */
.compare-workspace-head { display: flex; justify-content: space-between; align-items: end; gap: 22px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.compare-workspace-head h2 { margin: 5px 0 0; font-size: 23px; letter-spacing: -.04em; }
.compare-workspace-head > div:last-child { display: flex; align-items: baseline; gap: 8px; color: #727e89; font-size: 9px; }
.compare-workspace-head > div:last-child b { color: var(--accent); font-size: 18px; }
.compare-controls { grid-template-columns: minmax(0, 1fr) auto auto; gap: 9px; margin-bottom: 20px; }
.compare-controls select { min-height: 46px; padding: 0 14px; border-color: var(--line-strong); border-radius: 10px; background: #0f141a; font-size: 12px; }
.compare-page-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 15px; background: #0e1318; }
.compare-page-table .compare-table { min-width: 780px; }
.compare-table th, .compare-table td { padding: 16px 14px; border-color: var(--line); font-size: 11px; }
.compare-page-table .compare-table th { top: 0; background: #182029; color: #e7ebef; }
.compare-brand { display: block; margin-bottom: 6px; color: #75818c; font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.compare-page-table .compare-table th:first-child, .compare-page-table .compare-table td:first-child { background: #121820; color: #7f8b96; font-size: 9px; }
.compare-table tr:hover td:not(:first-child) { background-color: rgba(255, 255, 255, .018); }
.compare-table .best-value { color: #64dca4; background: rgba(54, 199, 138, .055); }
.best-mark { border-color: rgba(54, 199, 138, .22); background: rgba(54, 199, 138, .08); color: var(--green); }
.compare-remove { color: #78838e; font-size: 9px; }
.comparison-warning { padding: 13px 15px; border-color: rgba(240, 163, 72, .25); background: rgba(240, 163, 72, .055); color: #c6a979; font-size: 10px; }
.compare-scroll-hint { display: none; margin: 0 0 10px; color: #6e7a85; font-size: 9px; }

/* Calculator workspace */
.workspace-grid { grid-template-columns: minmax(0, 1fr) 390px; gap: 18px; }
.calculator-panel { position: relative; padding: 25px; border-radius: 22px; overflow: hidden; }
.results-panel { top: 94px; padding: 23px; border-color: rgba(245, 200, 66, .2); border-radius: 22px; background: linear-gradient(155deg, #1c242d 0%, #10151b 72%); box-shadow: var(--shadow); }
.calc-toolbar h2, .calc-toolbar h3 { margin-top: 5px; font-size: 22px; }
.icon-button, .result-topline button { color: #8d98a4; font-size: 10px; }
.icon-button:hover, .result-topline button:hover { color: var(--accent); }
.demo-badge { margin-top: 16px; border-color: rgba(245, 200, 66, .25); background: rgba(245, 200, 66, .07); font-size: 8px; }
.workspace-subhead { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 25px; }
.workspace-subhead b { font-size: 12px; }
.workspace-subhead span { color: #6f7b86; font-size: 9px; }
.workspace-subhead.operation-subhead { margin-bottom: -10px; }
.settings-grid { gap: 9px; margin-top: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: rgba(11, 15, 20, .66); }
.settings-grid span { color: #7e8a95; font-size: 9px; }
.settings-grid input, .settings-grid select { min-height: 39px; padding: 9px; border-color: var(--line); border-radius: 8px; background: #171e26; font-size: 11px; }
.settings-grid input:focus, .farm-row input:focus { border-color: rgba(245, 200, 66, .52); }
.infrastructure-note { margin: 10px 2px 22px; color: #6f7b86; font-size: 9px; }
.farm-table-head { margin-top: 12px; color: #65717c; font-size: 8px; }
.farm-row { padding: 11px; border-color: var(--line); border-radius: 12px; background: rgba(12, 17, 22, .72); }
.farm-field { display: block; min-width: 0; }
.farm-field > span, .row-power-field > span { display: none; }
.row-power-field { min-width: 0; text-align: right; }
.farm-row select { font-size: 11px; }
.farm-row select option { background: var(--panel); }
.farm-row input { min-height: 38px; border-color: var(--line); background: #171e26; font-size: 11px; }
.row-power { color: var(--accent-soft); font-size: 11px; }
.farm-row.dependency-blocked { border-color: rgba(240, 163, 72, .5); background: rgba(70, 45, 20, .18); }
.row-dependency-warning { grid-column: 1 / -1; margin: 0; color: #e7bc78; font-size: 10px; line-height: 1.5; }
.row-dependency-warning button { margin-left: 8px; border: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; font-weight: 850; text-decoration: underline; text-underline-offset: 3px; }
.calculation-blocker { margin-top: 14px; padding: 12px 14px; border: 1px solid rgba(240, 163, 72, .42); border-radius: 8px; background: rgba(240, 163, 72, .08); }
.calculation-blocker[hidden] { display: none; }
.calculation-blocker b { color: #ffd493; font-size: 11px; }
.calculation-blocker p { margin: 4px 0 0; color: #bfaa8a; font-size: 10px; }
.remove-row:hover { background: rgba(230, 107, 107, .09); color: var(--danger); }
.add-row { min-height: 46px; border-color: var(--line-strong); border-radius: 11px; color: #919ca7; font-size: 11px; }
.add-row:hover { border-color: rgba(245, 200, 66, .45); color: var(--accent); }
.empty-farm { padding: 34px 20px; border-color: var(--line-strong); background: rgba(12, 16, 21, .4); }
.empty-farm b { font-size: 13px; }
.empty-farm span { color: #78838e; font-size: 10px; }
.operations-grid { gap: 9px; border-color: var(--line); }
.operations-grid label, .tco-inputs label, .tco-inputs .tco-period-control { min-height: 66px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(11, 15, 20, .62); }
.operations-grid span, .tco-inputs span, .tco-period-control > span { display: block; color: #7d8994; font-size: 9px; }
.operations-grid input, .tco-inputs input, .tco-inputs select { font-size: 12px; }
.operations-grid small, .tco-inputs small { color: #6d7883; font-size: 8px; }
.calculator-actions { gap: 8px; margin-top: 20px; }
.calculator-actions .button { min-height: 43px; font-size: 10px; }
.result-topline { color: #7f8b96; font-size: 9px; }
.calculation-live { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; color: var(--green); }
.calculation-live::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.main-result { margin-top: 29px; padding-bottom: 25px; border-color: var(--line); }
.main-result small { color: #8c97a2; font-size: 11px; }
.main-result strong { margin-top: 7px; color: var(--text); font-size: 49px; font-weight: 650; }
.main-result strong span { color: var(--accent); font-size: 15px; }
.main-result p { color: #6e7984; font-size: 9px; }
.result-grid { gap: 1px; margin: 18px 0; background: var(--line); }
.result-grid div { padding: 13px; background: #151c23; }
.result-grid small { color: #6f7b86; font-size: 8px; }
.result-grid strong { font-size: 12px; }
.cost-block { padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: #0d1217; }
.cost-block span { color: #818c97; font-size: 10px; }
.cost-block strong { font-size: 12px; }
.cost-block .cost-total { border-color: var(--line); }
.cost-block .cost-total strong { color: var(--accent); font-size: 15px; }
.algo-line { padding: 9px 10px; border-color: var(--line); font-size: 10px; }
.heat-note { border-color: var(--line); }
.heat-note > span { background: rgba(245, 200, 66, .08); color: var(--accent); }
.heat-note p { color: #727e89; font-size: 9px; }
.heat-note b { color: #b6bec6; font-size: 10px; }
.results-panel .next-tool-link { padding: 13px; border-color: rgba(245, 200, 66, .21); border-radius: 10px; background: rgba(245, 200, 66, .045); font-size: 10px; }
.power-analysis { margin: 18px 0 110px; padding: 25px; border-radius: 22px; }
.power-analysis-head h2, .power-analysis-head h3 { font-size: 23px; }
.power-analysis-head > span { color: var(--accent-soft); font-size: 10px; }
.power-analysis-grid { gap: 9px; }
.power-analysis-grid > div { padding: 15px; border-color: var(--line); border-radius: 11px; background: #151c23; }
.power-analysis-grid small { color: #707c87; font-size: 8px; }
.power-analysis-grid strong { font-size: 15px; }
.power-analysis-grid .power-accent { border-color: rgba(245, 200, 66, .25); background: rgba(245, 200, 66, .055); }
.power-disclaimer { color: #747f8a; font-size: 10px; }

/* TCO */
.income-notice { padding: 16px 18px; border-color: rgba(240, 163, 72, .22); border-radius: 13px; background: rgba(240, 163, 72, .045); }
.income-notice[hidden] { display: none; }
.income-notice > span { background: var(--warning); color: #1b140b; font-size: 8px; }
.income-notice p { color: #919ca7; font-size: 11px; }
.tco-workspace { gap: 15px; }
.tco-inputs { grid-template-columns: 1.25fr 1fr 1fr auto; gap: 9px; padding: 14px; border-radius: 17px; }
.tco-inputs .button { min-height: 66px; font-size: 10px; }
.period-switch { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; grid-column: 1 / -1; margin-top: 8px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: #0d1217; }
.period-switch button { min-height: 33px; padding: 0 9px; border: 0; border-radius: 6px; background: transparent; color: #7f8a95; cursor: pointer; font-size: 9px; font-weight: 750; white-space: nowrap; }
.period-switch button:hover { color: var(--text); }
.period-switch button.active { background: var(--panel-3); color: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(245, 200, 66, .13); }
.visually-hidden-select { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tco-formula { padding: 0 2px; color: #717d88; font-size: 10px; }
.tco-kpis { grid-template-columns: repeat(5, 1fr); gap: 9px; }
.tco-kpis > div { min-height: 126px; padding: 18px; border-color: var(--line); border-radius: 14px; background: #151c23; }
.tco-kpis small { color: #74808b; font-size: 8px; }
.tco-kpis strong { margin-top: auto; font-size: 17px; }
.tco-kpis span { color: #68747f; font-size: 8px; }
.tco-kpis .tco-total { border-color: rgba(245, 200, 66, .28); background: linear-gradient(145deg, rgba(245, 200, 66, .1), rgba(245, 200, 66, .035)); }
.tco-kpis .tco-total strong { color: var(--accent); font-size: 21px; }
.charts-grid { gap: 12px; }
.chart-card { min-height: 320px; padding: 22px; border-radius: 18px; }
.chart-head h3 { margin-top: 5px; font-size: 18px; }
.chart-head > span { color: #8e99a4; font-size: 10px; }
.cost-chart-layout { grid-template-columns: 180px 1fr; min-height: 235px; }
.dynamic-donut { width: 168px; box-shadow: 0 0 0 1px var(--line); }
.dynamic-donut::after { width: 108px; background: #131a21; }
.dynamic-donut b { font-size: 14px; }
.dynamic-donut small { color: #6e7a85; font-size: 8px; }
.legend-row { padding-block: 8px; border-color: var(--line); font-size: 10px; }
.energy-bars span { font-size: 10px; }
.energy-bars i { height: 18px; background: #202933; }
.energy-bars em { background: linear-gradient(90deg, #c79d27, var(--accent)); }
.energy-bars > div:last-child em { background: linear-gradient(90deg, #4e6070, #7f92a3); }
.cumulative-chart { min-height: 260px; }
.cumulative-chart svg { height: 260px; }
.chart-grid-line { stroke: rgba(149, 166, 182, .13); }
.chart-area { fill: rgba(245, 200, 66, .06); }
.chart-line { stroke: var(--accent); stroke-width: 2.4; }
.chart-dot { fill: var(--accent); stroke: #182029; stroke-width: 4; }
.chart-hit { fill: transparent; cursor: help; }
.chart-axis-label { fill: #7f8a95; font-size: 9px; }
.saved-configurations { padding: 22px; border-radius: 18px; }
.saved-head h2, .saved-head h3 { font-size: 18px; }
.saved-grid { gap: 9px; }
.saved-card { padding: 15px; border-color: var(--line); border-radius: 11px; background: #171e26; }
.saved-card h4 { font-size: 11px; }
.saved-card time { color: #6d7883; font-size: 8px; }
.saved-card dl div { font-size: 9px; }
.config-bar { font-size: 9px; }
.config-bar i { background: #202933; }
.config-bar em { background: linear-gradient(90deg, #c69d2e, var(--accent)); }

/* Feedback and footer */
.toast { right: 22px; bottom: 22px; padding: 13px 17px; border-color: var(--line-strong); border-radius: 11px; background: #202a34; font-size: 11px; }
.value-updated { animation: value-flash 480ms ease; }
.platform-footer { display: grid; grid-template-columns: auto 1fr auto; margin-top: 0; padding-block: 31px 42px; border-color: var(--line); font-size: 9px; }
.platform-footer p { justify-self: center; }
.platform-footer > span { color: #697580; letter-spacing: .08em; text-transform: uppercase; }
.not-found strong { font-size: 86px; }
.not-found h1 { font-size: 36px; }
.not-found p { color: #85909b; font-size: 12px; }
.hero-note, .preview-foot, .feature-card p, .principles span, .catalog-summary,
.data-status, .miner-source span, .asic-back, .compare-remove, .compare-scroll-hint,
.infrastructure-note, .farm-table-head, .main-result p, .heat-note p,
.power-disclaimer, .tco-formula, .tco-kpis span, .saved-card time {
  color: #7f8a95;
}

@keyframes page-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes value-flash { 0% { color: var(--accent); transform: translateY(1px); } 100% { color: inherit; transform: translateY(0); } }

@media (max-width: 1120px) {
  .home-hero { grid-template-columns: minmax(0, .9fr) minmax(460px, 1.1fr); gap: 35px; }
  .catalog-insights { margin: 0 0 28px; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .tco-kpis { grid-template-columns: repeat(3, 1fr); }
  .tco-kpis .tco-total { grid-column: span 2; }
  .power-analysis-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .header-cta { display: none; }
  .home-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 74px; }
  .home-copy { max-width: 780px; }
  .home-preview { min-height: 500px; }
  .feature-card, .feature-card:nth-child(1), .feature-card:nth-child(2) { grid-column: span 3; }
  .asic-layout, .workspace-grid { grid-template-columns: 1fr; }
  .asic-actions-card, .results-panel { position: static; }
  .settings-grid { grid-template-columns: repeat(3, 1fr); }
  .tco-inputs { grid-template-columns: 1fr 1fr; }
  .tco-inputs .button { min-height: 48px; }
  .charts-grid { grid-template-columns: 1fr; }
  .cumulative-card { grid-column: auto; }
}
@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 1240px); }
  .site-header.multi-header { z-index: 70; width: calc(100% - 20px); min-height: 60px; margin-top: 10px; padding: 6px 7px 6px 10px; }
  .brand { font-size: 17px; }
  .brand-mark { width: 40px; height: 40px; }
  .menu-toggle { display: block; }
  .platform-nav { position: absolute; top: calc(100% + 8px); left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; padding: 9px; border: 1px solid var(--line-strong); border-radius: 13px; background: rgba(15, 20, 26, .98); box-shadow: var(--shadow); }
  .platform-nav.open { display: flex; }
  .platform-nav a { padding: 13px; font-size: 13px; }
  .platform-nav a[aria-current="page"]::after { display: none; }
  .home-hero { gap: 22px; padding-block: 64px 42px; }
  .home-hero::before { display: none; }
  .home-copy h1, .page-hero h1 { font-size: clamp(40px, 13vw, 54px); }
  .home-copy > p { font-size: 14px; }
  .page-actions { flex-direction: column; }
  .page-actions .button { width: 100%; }
  .home-preview { min-height: 430px; }
  .preview-panel { inset: 24px 0 32px; padding: 18px; }
  .preview-overview { grid-template-columns: 1fr; margin-top: 25px; }
  .preview-primary { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; }
  .preview-primary > small { grid-column: 1 / -1; }
  .preview-power { font-size: 47px; }
  .preview-cost { margin: 0; text-align: right; }
  .preview-chart { min-height: 112px; border-left: 0; border-top: 1px solid var(--line); }
  .preview-chart svg { inset: 12px 0 0; height: 100px; width: 100%; }
  .preview-chart-label { top: 7px; }
  .preview-metrics { margin-top: 18px; }
  .preview-metrics span { padding: 10px; }
  .preview-metrics b { font-size: 10px; }
  .preview-foot { display: none; }
  .section-intro { grid-template-columns: 1fr; gap: 16px; }
  .feature-card, .feature-card:nth-child(1), .feature-card:nth-child(2) { grid-column: span 6; min-height: 230px; }
  .principles { grid-template-columns: 1fr; }
  .principles div { border-right: 0; border-bottom: 1px solid var(--line); }
  .principles div:last-child { border-bottom: 0; }
  .page-hero { padding-block: 70px 36px; }
  .page-hero::after { bottom: 18px; }
  .tool-head { align-items: flex-start; flex-direction: column; }
  .catalog-insights { grid-template-columns: repeat(3, 1fr); width: 100%; gap: 8px; }
  .catalog-insights div { padding-left: 10px; }
  .catalog-tools { grid-template-columns: 1fr; }
  .filter-pills { justify-content: flex-start; }
  .catalog-selects, .catalog-grid { grid-template-columns: 1fr; }
  .catalog-grid .miner-card { min-height: 480px; }
  .miner-card-actions { grid-template-columns: 1fr; }
  .asic-layout { gap: 10px; }
  .asic-spec-card { padding: 19px; }
  .asic-identity { align-items: flex-start; flex-direction: column-reverse; }
  .spec-list { grid-template-columns: 1fr; }
  .compare-controls { grid-template-columns: 1fr; }
  .compare-controls .button { width: 100%; }
  .compare-workspace-head { align-items: flex-start; flex-direction: column; }
  .compare-scroll-hint { display: block; }
  .settings-grid, .operations-grid, .tco-inputs { grid-template-columns: 1fr; }
  .farm-table-head { display: none; }
  .farm-row { grid-template-columns: 72px minmax(90px, 1fr) 88px 30px; }
  .miner-select-wrap { grid-column: 1 / -1; }
  .row-power-field { text-align: left; }
  .calculator-panel, .results-panel, .power-analysis { padding: 18px; }
  .calculator-actions { flex-direction: column; }
  .calculator-actions .button { width: 100%; }
  .power-analysis-head { align-items: flex-start; flex-direction: column; }
  .power-analysis-grid { grid-template-columns: 1fr 1fr; }
  .tco-kpis { grid-template-columns: 1fr; }
  .tco-kpis .tco-total { grid-column: auto; }
  .cost-chart-layout { grid-template-columns: 1fr; justify-items: center; }
  .catalog-tray { gap: 9px; }
  .catalog-tray > span { font-size: 8px; }
  .platform-footer { grid-template-columns: 1fr; justify-items: start; gap: 10px; }
  .platform-footer p { justify-self: start; }
}
@media (max-width: 430px) {
  .home-copy h1, .page-hero h1 { font-size: 40px; }
  .home-preview { min-height: 410px; }
  .preview-panel { padding: 16px; }
  .preview-power { font-size: 40px; }
  .preview-cost b { font-size: 14px; }
  .preview-metrics small { font-size: 7px; }
  .preview-metrics b { font-size: 9px; }
  .catalog-insights { grid-template-columns: 1fr; }
  .catalog-insights div { padding: 7px 0 7px 12px; }
  .catalog-summary { grid-template-columns: 1fr; gap: 5px; }
  .catalog-summary span:nth-child(2) { justify-self: start; }
  .farm-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 32px; grid-template-areas: "model model remove" "quantity price price" "power power power"; gap: 8px 6px; align-items: end; }
  .miner-select-wrap { grid-area: model; min-width: 0; }
  .quantity-field { grid-area: quantity; }
  .price-field { grid-area: price; }
  .row-power-field { grid-area: power; display: flex; justify-content: space-between; align-items: center; min-height: 34px; padding: 6px 8px; border-top: 1px solid var(--line); text-align: right; }
  .remove-row { grid-area: remove; align-self: center; }
  .farm-field > span, .row-power-field > span { display: block; margin-bottom: 5px; color: #87929c; font-size: 10px; }
  .row-power-field > span { margin: 0; }
  .row-dependency-warning { grid-area: auto / 1 / auto / -1; font-size: 10px; }
  .main-result strong { font-size: 42px; }
  .power-analysis-grid { grid-template-columns: 1fr; }
  .period-switch { grid-template-columns: 1fr 1fr; }
  .chart-card { padding: 17px; }
  .income-notice { align-items: flex-start; grid-template-columns: 1fr; }
}

/* Stage 3.2 — simpler decision flow and transparent market benchmark */
body[data-page="home"] .home-copy .page-actions {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 8px;
}
body[data-page="home"] .home-copy .page-actions .button { min-width: 0; }
.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.journey-grid article {
  position: relative;
  min-height: 260px;
  padding: 28px;
  border: 1px solid rgba(13, 23, 32, .1);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 15px 38px rgba(31, 49, 60, .06);
  overflow: hidden;
}
.journey-grid article::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 28px;
  width: 52px;
  height: 3px;
  background: var(--accent);
}
.journey-grid article > span {
  color: #8a9ba4;
  font: 700 10px/1 "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: .12em;
}
.journey-grid h3 { margin: 54px 0 12px; color: var(--ink); font-size: 25px; letter-spacing: -.04em; }
.journey-grid p { max-width: 36ch; margin: 0; color: #637681; font-size: 12px; line-height: 1.65; }
.journey-grid a { position: absolute; right: 28px; bottom: 26px; left: 28px; color: #243b48; font-size: 11px; font-weight: 800; }

.market-status {
  margin: 9px 0 0;
  padding: 9px 12px;
  border: 1px solid rgba(13, 23, 32, .09);
  border-radius: 9px;
  background: rgba(245, 200, 66, .1);
  color: #536975;
  font-size: 9px;
  line-height: 1.5;
}
.market-status b { color: var(--ink); }
.simple-settings-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.advanced-settings,
.advanced-tool {
  margin-top: 20px;
  border: 1px solid rgba(13, 23, 32, .1);
  border-radius: 13px;
  background: rgba(255, 255, 255, .66);
  overflow: hidden;
}
.advanced-settings > summary,
.advanced-tool > summary,
.advanced-filters > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 15px 17px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.advanced-settings > summary::-webkit-details-marker,
.advanced-tool > summary::-webkit-details-marker,
.advanced-filters > summary::-webkit-details-marker { display: none; }
.advanced-settings > summary span,
.advanced-tool > summary span { display: grid; gap: 4px; }
.advanced-settings > summary b,
.advanced-tool > summary b { font-size: 11px; }
.advanced-settings > summary small,
.advanced-tool > summary small { color: #71838d; font-size: 9px; font-weight: 500; }
.advanced-settings > summary i,
.advanced-tool > summary i,
.advanced-filters > summary i { color: #7e8f98; font-size: 18px; font-style: normal; transition: transform 180ms ease; }
.advanced-settings[open] > summary i,
.advanced-tool[open] > summary i,
.advanced-filters[open] > summary i { transform: rotate(45deg); }
.advanced-settings-body { padding: 0 16px 18px; border-top: 1px solid rgba(13, 23, 32, .08); }
.advanced-settings-body .settings-grid { grid-template-columns: repeat(3, 1fr); }
.advanced-tool { margin-top: 28px; background: #fff; }
.advanced-tool > summary { min-height: 76px; padding-inline: 24px; }
.advanced-tool .power-analysis { margin-top: 0; border-top: 1px solid rgba(13, 23, 32, .08); border-radius: 0; }
.advanced-tool .farm-check { margin-bottom: 0; border-radius: 0; }

.profitability-result {
  margin-top: 14px;
  padding: 15px;
  border: 1px solid rgba(13, 23, 32, .1);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245, 200, 66, .12), rgba(255, 255, 255, .92));
}
.profitability-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.profitability-head span { color: var(--ink); font-size: 10px; font-weight: 800; }
.profitability-head a,
.profitability-head .profitability-source { color: #657985; font-size: 8px; font-weight: 750; }
.profitability-grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: 12px; border: 1px solid rgba(13, 23, 32, .08); border-radius: 9px; overflow: hidden; }
.profitability-grid > div { display: grid; gap: 5px; min-width: 0; padding: 11px; border-right: 1px solid rgba(13, 23, 32, .08); border-bottom: 1px solid rgba(13, 23, 32, .08); }
.profitability-grid > div:nth-child(2n) { border-right: 0; }
.profitability-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
.profitability-grid small { color: #6c7f89; font-size: 8px; line-height: 1.3; }
.profitability-grid strong { color: var(--ink); font: 720 14px/1.25 "IBM Plex Mono", ui-monospace, monospace; }
.profitability-grid strong.is-negative { color: #a94f43; }
.profitability-result > p { margin: 11px 0 0; color: #647984; font-size: 8px; line-height: 1.55; }

.advanced-filters { margin-top: 4px; border-top: 1px solid rgba(13, 23, 32, .09); }
.advanced-filters > summary { padding: 14px 0 8px; color: #425966; font-size: 10px; font-weight: 800; }
.advanced-filters > div { display: grid; gap: 12px; padding-top: 8px; }

.miner-record {
  grid-template-columns: 132px minmax(180px, .9fr) minmax(280px, 1.25fr);
  grid-template-areas: "hardware identity metrics" "profit profit actions" "evidence evidence evidence";
}
.record-profit {
  grid-area: profit;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  align-items: center;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid rgba(13, 23, 32, .075);
  border-radius: 9px;
  background: rgba(245, 200, 66, .09);
  color: #607681;
  font-size: 9px;
}
.record-profit b { margin-left: 5px; color: var(--ink); font: 700 11px/1.3 "IBM Plex Mono", ui-monospace, monospace; }
.record-profit em { color: #4c665d; font-size: 9px; font-style: normal; font-weight: 700; }
.record-profit small { width: 100%; color: #7d8d95; font: 650 7px/1.35 "IBM Plex Mono", ui-monospace, monospace; }
.catalog-view-cards .miner-record { grid-template-areas: "hardware hardware" "identity identity" "metrics metrics" "profit profit" "evidence evidence" "actions actions"; }
.compare-market-status { margin: 10px 0 16px; }

.asic-profitability-card {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(13, 23, 32, .1);
}
.asic-profitability-card h2 { margin: 7px 0 8px; font-size: 23px; letter-spacing: -.04em; }
.asic-profitability-card h2 small { color: #748690; font-size: 10px; font-weight: 600; }
.asic-profitability-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 13px 0; }
.asic-profitability-card dl > div { display: grid; min-width: 0; gap: 4px; padding: 9px; border: 1px solid rgba(13, 23, 32, .08); border-radius: 8px; background: #f3f6f7; }
.asic-profitability-card dt { color: #75868f; font-size: 8px; }
.asic-profitability-card dd { margin: 0; color: var(--ink); font: 700 10px/1.3 "IBM Plex Mono", ui-monospace, monospace; }
.asic-profitability-card p { color: #687b85; font-size: 9px; line-height: 1.55; }

@media (max-width: 1050px) {
  body[data-page="home"] .home-copy .page-actions { grid-template-columns: repeat(2, max-content); }
  .simple-settings-grid { grid-template-columns: repeat(2, 1fr); }
  .miner-record { grid-template-columns: 112px minmax(160px, 1fr); grid-template-areas: "hardware identity" "metrics metrics" "profit profit" "evidence evidence" "actions actions"; }
}

@media (max-width: 760px) {
  body[data-page="home"] .home-copy .page-actions { grid-template-columns: 1fr 1fr; }
  body[data-page="home"] .home-copy .page-actions .button:last-child { grid-column: 1 / -1; }
  .journey-grid { grid-template-columns: 1fr; }
  .journey-grid article { min-height: 220px; }
  .advanced-tool > summary { padding-inline: 17px; }
}

@media (max-width: 560px) {
  body[data-page="home"] .home-copy .page-actions { grid-template-columns: 1fr; }
  body[data-page="home"] .home-copy .page-actions .button:last-child { grid-column: auto; }
  .simple-settings-grid,
  .advanced-settings-body .settings-grid,
  .profitability-grid { grid-template-columns: 1fr; }
  .profitability-grid > div { border-right: 0; }
  .profitability-grid > div:nth-last-child(2) { border-bottom: 1px solid rgba(13, 23, 32, .08); }
  .miner-record { grid-template-columns: 1fr; grid-template-areas: "hardware" "identity" "metrics" "profit" "evidence" "actions"; }
  .record-profit { align-items: flex-start; flex-direction: column; }
  .asic-profitability-card dl { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Stage 2.3 — Luxury Hardware Brand */
:root {
  --bg: #080a0c;
  --bg-soft: #0d1013;
  --panel: #12171b;
  --panel-2: #181e23;
  --panel-3: #222a30;
  --line: rgba(191, 200, 207, .14);
  --line-strong: rgba(207, 216, 223, .26);
  --accent: #f3c64b;
  --accent-soft: #ffe59a;
  --metal: #aab3ba;
  --metal-bright: #e5e9ec;
}
body {
  background:
    radial-gradient(circle at 72% -10%, rgba(243, 198, 75, .12), transparent 31rem),
    radial-gradient(circle at -10% 38%, rgba(139, 153, 166, .08), transparent 34rem),
    linear-gradient(135deg, rgba(255, 255, 255, .016) 0 1px, transparent 1px 14px),
    #080a0c;
  background-size: auto, auto, 14px 14px, auto;
}
.noise { opacity: .03; mix-blend-mode: soft-light; }
.site-header.multi-header {
  border-color: rgba(202, 211, 219, .2);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(18, 22, 26, .93), rgba(9, 12, 14, .88));
  box-shadow: 0 18px 55px rgba(0, 0, 0, .36), inset 0 1px rgba(255, 255, 255, .04);
}
.site-header.multi-header::before { left: 0; width: 190px; background: linear-gradient(90deg, var(--accent), transparent); }
.site-header.multi-header::after { content: ""; position: absolute; right: 8px; bottom: -1px; width: 52px; height: 1px; background: var(--metal); opacity: .4; }
.brand { font-weight: 750; }
.platform-nav a { border-radius: 5px; letter-spacing: -.01em; }
.platform-nav a[aria-current="page"] { background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)); }
.header-cta { border-radius: 5px; background: linear-gradient(135deg, rgba(243, 198, 75, .18), rgba(243, 198, 75, .06)); }
.button { border-radius: 5px; }
.button-primary { background: linear-gradient(135deg, #ffe082 0%, #f3c64b 42%, #c8941d 100%); box-shadow: 0 14px 34px rgba(212, 159, 30, .16), inset 0 1px rgba(255, 255, 255, .48); }
.button-primary:hover { background: linear-gradient(135deg, #ffea9e, #f5cd5b 44%, #d3a028); }
.button-secondary { background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)); }

/* Hardware-first hero */
.hardware-hero {
  grid-template-columns: minmax(0, .82fr) minmax(560px, 1.18fr);
  gap: 18px;
  min-height: 790px;
  padding-block: 80px 54px;
}
.hardware-hero::before { content: "DM / INDUSTRIAL INTELLIGENCE"; right: -4px; top: 50px; color: rgba(223, 229, 234, .055); }
.hardware-hero::after { content: ""; position: absolute; left: 0; bottom: 26px; width: 100%; height: 1px; background: linear-gradient(90deg, var(--accent), rgba(243, 198, 75, .08) 28%, transparent 75%); }
.hardware-hero .home-copy { position: relative; z-index: 4; padding-top: 18px; }
.hardware-hero .home-copy::before { content: ""; position: absolute; left: -24px; top: 18px; bottom: 12px; width: 1px; background: linear-gradient(var(--accent), transparent 70%); }
.hardware-hero .home-copy h1 { max-width: 680px; margin-top: 24px; font-size: clamp(55px, 6vw, 86px); line-height: .91; }
.hardware-hero .home-copy h1 span, .hardware-hero .home-copy h1 em { display: block; }
.hardware-hero .home-copy h1 em {
  margin-top: 9px;
  background: linear-gradient(115deg, #fff0ad 0%, #f3c64b 38%, #b17c0f 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 18px 60px rgba(243, 198, 75, .1);
}
.hardware-hero .home-copy > p { max-width: 540px; margin-top: 30px; color: #aab2b9; font-size: 16px; }
.hardware-hero .page-actions { margin-top: 35px; }
.hardware-hero .page-actions .button { min-height: 50px; padding-inline: 21px; }
.hero-proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; max-width: 610px; margin-top: 34px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--line); }
.hero-proof span { display: flex; min-height: 66px; flex-direction: column; justify-content: center; padding: 10px 13px; background: rgba(8, 10, 12, .95); color: #7f8a93; font-size: 8px; line-height: 1.45; text-transform: uppercase; letter-spacing: .055em; }
.hero-proof b { color: var(--metal-bright); font-size: 17px; letter-spacing: -.04em; }
.home-demo-link { color: #a2abb3; }

.hardware-stage { position: relative; min-height: 640px; overflow: clip; isolation: isolate; }
.hardware-stage::before { content: ""; position: absolute; inset: 44px 2px 20px 20px; z-index: -2; border: 1px solid rgba(199, 210, 219, .12); background: radial-gradient(circle at 52% 48%, rgba(243, 198, 75, .09), transparent 43%), linear-gradient(rgba(174, 187, 198, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(174, 187, 198, .055) 1px, transparent 1px), rgba(8, 11, 13, .45); background-size: auto, 35px 35px, 35px 35px, auto; clip-path: polygon(0 0, calc(100% - 36px) 0, 100% 36px, 100% 100%, 30px 100%, 0 calc(100% - 30px)); }
.hardware-stage::after { content: ""; position: absolute; inset: 55% -5% -2% 9%; z-index: -1; background: radial-gradient(ellipse, rgba(243, 198, 75, .13), transparent 63%); filter: blur(26px); }
.hardware-product { position: absolute; z-index: 1; left: -5%; top: 6%; width: 113%; height: 88%; object-fit: contain; filter: saturate(.9) contrast(1.05); }
.stage-index { position: absolute; z-index: 4; top: 65px; left: 41px; display: grid; grid-template-columns: auto 74px auto; gap: 9px; align-items: center; color: #6f7981; font-size: 8px; letter-spacing: .15em; }
.stage-index i { height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }
.stage-metric { position: absolute; z-index: 5; padding: 14px 16px; border: 1px solid rgba(207, 216, 223, .23); background: linear-gradient(135deg, rgba(23, 29, 34, .94), rgba(10, 13, 16, .91)); box-shadow: 0 20px 42px rgba(0, 0, 0, .34), inset 0 1px rgba(255, 255, 255, .045); backdrop-filter: blur(12px); }
.stage-metric::before { content: ""; position: absolute; top: -1px; left: -1px; width: 38px; height: 1px; background: var(--accent); }
.stage-metric span { display: block; color: #828c94; font-size: 8px; text-transform: uppercase; letter-spacing: .09em; }
.stage-metric strong { display: block; margin-top: 5px; color: #f1f3f4; font-size: 24px; letter-spacing: -.055em; }
.stage-metric strong small { color: var(--accent); font-size: 10px; letter-spacing: 0; }
.stage-metric em { display: block; margin-top: 6px; color: #68737b; font-size: 7px; font-style: normal; text-transform: uppercase; }
.stage-metric-power { left: 0; top: 37%; min-width: 185px; }
.stage-metric-cost { right: -8px; bottom: 25%; min-width: 215px; }
.stage-metric-cost i { display: block; width: 100%; height: 21px; margin-top: 8px; background: linear-gradient(165deg, transparent 0 46%, rgba(243, 198, 75, .8) 47% 50%, transparent 51%), linear-gradient(190deg, transparent 0 54%, rgba(243, 198, 75, .25) 55% 58%, transparent 59%); }
.stage-metric-status { top: 17%; right: 6%; display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: center; min-width: 170px; }
.stage-metric-status::before { background: var(--green); }
.stage-metric-status b { grid-row: span 2; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 15px rgba(54, 199, 138, .7); }
.stage-metric-status span { color: #d8dde1; font-size: 8px; }
.stage-metric-status small { color: #707a82; font-size: 7px; }
.stage-caption { position: absolute; z-index: 4; left: 42px; right: 25px; bottom: 38px; display: flex; justify-content: space-between; gap: 24px; color: #69747c; font-size: 7px; letter-spacing: .05em; }
.stage-caption span { color: #a98d45; letter-spacing: .14em; white-space: nowrap; }

/* Editorial storytelling */
.brand-manifesto { position: relative; display: grid; grid-template-columns: 190px 1fr 250px; gap: 35px; align-items: center; min-height: 265px; margin-top: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.manifesto-mark { color: rgba(255, 255, 255, .035); font-size: 175px; font-weight: 800; letter-spacing: -.12em; line-height: 1; transform: translateX(-22px); }
.brand-manifesto > p { margin: 0; color: #8f9aa2; font-size: clamp(24px, 3vw, 40px); font-weight: 500; line-height: 1.18; letter-spacing: -.045em; }
.brand-manifesto > p strong { color: #eef1f3; font-weight: 650; }
.manifesto-meta { display: grid; gap: 12px; padding-left: 24px; border-left: 1px solid var(--line); color: #7d8891; font-size: 8px; text-transform: uppercase; letter-spacing: .11em; }
.manifesto-meta span::before { content: ""; display: inline-block; width: 20px; height: 1px; margin-right: 9px; vertical-align: middle; background: var(--accent); opacity: .65; }
.capabilities { padding-block: 118px; }
.capabilities .section-intro { margin-bottom: 42px; }
.capabilities .section-intro h2 { max-width: 720px; font-size: clamp(42px, 5.4vw, 68px); }
.capability-layout { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.capability-layout > article { position: relative; min-width: 0; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(21, 27, 32, .96), rgba(9, 12, 14, .98)); overflow: hidden; }
.capability-layout > article::before { content: ""; position: absolute; top: -1px; left: 0; width: 82px; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }
.capability-layout article > span, .capability-copy > span, .capability-tco > div > span { color: #a88c42; font-size: 8px; font-weight: 750; letter-spacing: .14em; }
.capability-layout h3 { margin: 14px 0 0; color: #edf0f2; font-size: 24px; line-height: 1.12; letter-spacing: -.045em; }
.capability-layout p { margin: 13px 0 0; color: #87929a; font-size: 11px; line-height: 1.72; }
.capability-layout a { display: inline-flex; gap: 15px; align-items: center; margin-top: 22px; color: #d7dde1; font-size: 10px; font-weight: 750; }
.capability-layout a:hover { color: var(--accent); }
.capability-catalog { grid-column: span 8; display: grid; grid-template-columns: .85fr 1.15fr; min-height: 385px; }
.capability-copy { padding: 32px; }
.hardware-rack { position: relative; display: flex; gap: 11px; align-items: center; justify-content: center; min-height: 100%; border-left: 1px solid var(--line); background: radial-gradient(circle at 50% 55%, rgba(243, 198, 75, .1), transparent 45%), linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: auto, 24px 24px, 24px 24px; perspective: 600px; }
.hardware-rack i { position: relative; width: 92px; height: 190px; border: 1px solid #59636b; background: linear-gradient(100deg, #3a4249, #151a1e 26%, #080b0d 75%, #2c3339); box-shadow: 10px 18px 25px rgba(0, 0, 0, .42); transform: rotateY(-8deg); }
.hardware-rack i:nth-child(2) { height: 220px; transform: translateY(-5px); }
.hardware-rack i::before { content: ""; position: absolute; left: 13px; right: 13px; top: 25px; aspect-ratio: 1; border: 5px solid #0a0d0f; border-radius: 50%; background: repeating-conic-gradient(#495159 0 12deg, #101417 12deg 43deg); box-shadow: inset 0 0 0 4px #31383e, 0 0 0 1px #68727a; }
.hardware-rack i::after { content: ""; position: absolute; left: 19px; right: 19px; bottom: 26px; height: 42px; background: repeating-linear-gradient(90deg, #59636b 0 2px, transparent 2px 7px); opacity: .5; }
.hardware-rack span { position: absolute; right: 18px; bottom: 16px; color: #6f7a82; font-size: 7px; letter-spacing: .14em; }
.capability-compare { grid-column: span 4; min-height: 385px; padding: 32px; background: radial-gradient(circle at 70% 25%, rgba(243, 198, 75, .09), transparent 42%), #101519 !important; }
.capability-compare strong { display: block; margin-top: 42px; color: var(--accent); font-size: 110px; font-weight: 600; letter-spacing: -.1em; line-height: .8; text-shadow: 0 20px 50px rgba(243, 198, 75, .14); }
.capability-power { grid-column: span 4; min-height: 340px; padding: 30px; }
.energy-wave { display: flex; gap: 7px; align-items: end; height: 82px; margin: 36px 0 20px; border-bottom: 1px solid var(--line); }
.energy-wave i { flex: 1; height: var(--wave, 55%); background: linear-gradient(to top, rgba(243, 198, 75, .05), rgba(243, 198, 75, .78)); box-shadow: 0 -8px 22px rgba(243, 198, 75, .08); }
.energy-wave i:nth-child(1) { --wave: 28%; }.energy-wave i:nth-child(2) { --wave: 62%; }.energy-wave i:nth-child(3) { --wave: 44%; }.energy-wave i:nth-child(4) { --wave: 88%; }.energy-wave i:nth-child(5) { --wave: 55%; }.energy-wave i:nth-child(6) { --wave: 72%; }.energy-wave i:nth-child(7) { --wave: 98%; }
.capability-tco { grid-column: span 8; display: grid; grid-template-columns: .9fr 1.1fr; min-height: 340px; }
.capability-tco > div:first-child { padding: 32px; }
.tco-signal { position: relative; min-height: 100%; border-left: 1px solid var(--line); background: radial-gradient(circle at 55% 45%, rgba(243, 198, 75, .09), transparent 48%), linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px); background-size: auto, 100% 32px; overflow: hidden; }
.tco-signal b { position: absolute; right: 28px; top: 22px; color: rgba(255, 255, 255, .07); font-size: 94px; font-weight: 500; }
.tco-signal svg { position: absolute; right: 0; bottom: 40px; left: 0; width: 100%; height: 150px; overflow: visible; }
.tco-signal path:first-child { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.tco-signal-fill { fill: rgba(243, 198, 75, .07); stroke: none; }
.capabilities .principles { margin-top: 12px; border-radius: 0; }

/* Inner pages: stronger product framing */
body:not([data-page="home"]) .page-hero { min-height: 325px; padding-top: 92px; }
body:not([data-page="home"]) .page-hero h1 { background: linear-gradient(110deg, #f4f6f7, #aeb8bf 74%); background-clip: text; -webkit-background-clip: text; color: transparent; }
body:not([data-page="home"]) .page-hero h1 em { background: linear-gradient(110deg, #ffe69b, #c99524); background-clip: text; -webkit-background-clip: text; color: transparent; }
body:not([data-page="home"]) .page-hero::before { content: ""; position: absolute; right: 0; top: 72px; width: 360px; height: 190px; border: 1px solid rgba(201, 212, 220, .08); background: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(90deg, transparent, #000); }
.tool-shell, .calculator-panel, .results-panel, .power-analysis, .saved-configurations, .asic-spec-card, .asic-actions-card, .chart-card, .tco-inputs { border-color: rgba(203, 213, 221, .17); border-radius: 4px; background: linear-gradient(145deg, rgba(22, 28, 33, .97), rgba(9, 12, 14, .98)); box-shadow: 0 24px 65px rgba(0, 0, 0, .22), inset 0 1px rgba(255, 255, 255, .035); }
.tool-shell::before, .calculator-panel::before, .asic-spec-card::before { width: 150px; background: linear-gradient(90deg, var(--accent), transparent); }
.tool-shell::after, .calculator-panel::after, .asic-spec-card::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 34px; height: 34px; border-right: 1px solid rgba(243, 198, 75, .5); border-bottom: 1px solid rgba(243, 198, 75, .5); pointer-events: none; }

/* Equipment catalogue */
.catalog-tools { border-radius: 3px; background: linear-gradient(180deg, rgba(24, 30, 35, .94), rgba(12, 15, 18, .96)); }
.search-box, .catalog-selects label { border-radius: 3px; }
.catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
.catalog-grid .miner-card { display: grid; grid-template-columns: .96fr 1.04fr; grid-template-rows: auto auto auto auto 1fr auto auto; column-gap: 24px; min-height: 530px; padding: 23px; border-radius: 3px; background: linear-gradient(135deg, rgba(31, 38, 44, .98), rgba(10, 13, 15, .98) 74%); }
.catalog-grid .miner-card:nth-child(4n + 2), .catalog-grid .miner-card:nth-child(4n + 3) { background: linear-gradient(145deg, rgba(18, 23, 27, .98), rgba(7, 9, 11, .98)); }
.miner-card::before { content: ""; position: absolute; top: -1px; left: 0; width: 86px; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }
.miner-card-head { grid-column: 1 / -1; grid-row: 1; }
.miner-visual { grid-column: 1; grid-row: 2 / 6; align-self: stretch; display: flex; min-height: 275px; flex-direction: column; justify-content: center; align-items: center; gap: 25px; margin-top: 20px; padding: 20px; border-radius: 2px; background: radial-gradient(circle at 48% 42%, rgba(243, 198, 75, .1), transparent 44%), linear-gradient(rgba(183, 195, 204, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(183, 195, 204, .055) 1px, transparent 1px), #090c0e; background-size: auto, 19px 19px, 19px 19px, auto; }
.miner-visual::after { display: none; }
.mini-chassis { position: relative; width: min(100%, 220px); height: 112px; border: 1px solid #6d767d; background: linear-gradient(115deg, #4a535a, #161b1f 21%, #080b0d 73%, #343c42); box-shadow: 16px 20px 28px rgba(0, 0, 0, .48), inset 0 1px rgba(255, 255, 255, .16); transform: perspective(500px) rotateY(-7deg) rotateX(2deg); }
.mini-chassis::before { content: ""; position: absolute; top: -13px; left: 14px; right: -11px; height: 12px; background: linear-gradient(100deg, #68727a, #272e33 35%, #111518); clip-path: polygon(8% 0, 100% 0, 94% 100%, 0 100%); }
.mini-chassis i { position: absolute; top: 22px; width: 62px; aspect-ratio: 1; border: 5px solid #0a0d0f; border-radius: 50%; background: repeating-conic-gradient(#465058 0 12deg, #111518 12deg 45deg); box-shadow: inset 0 0 0 4px #30383e, 0 0 0 1px #69737b; }
.mini-chassis i::after { content: ""; position: absolute; inset: 23px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(243, 198, 75, .3); }
.mini-chassis i:nth-child(1) { left: 13px; }.mini-chassis i:nth-child(2) { left: calc(50% - 31px); }.mini-chassis i:nth-child(3) { right: 13px; }
.mini-chassis b { position: absolute; right: 7px; bottom: 4px; color: #c9d0d5; font-size: 7px; letter-spacing: .14em; }
.miner-visual-readout { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; width: 100%; }
.miner-visual-readout span { color: #e1e5e8; font-size: 13px; font-weight: 750; }
.miner-visual-readout strong { color: var(--accent); font-size: 13px; text-align: right; }
.miner-visual-readout small { grid-column: 1 / -1; color: #6f7981; font-size: 6px; letter-spacing: .14em; }
.catalog-grid .miner-card h2 { grid-column: 2; grid-row: 2; align-self: end; margin-top: 25px; font-size: 23px; }
.catalog-grid .miner-card .data-status { grid-column: 2; grid-row: 3; }
.catalog-grid .miner-card .dependency-warning { grid-column: 2; grid-row: 4; }
.catalog-grid .miner-card .miner-specs { grid-column: 2; grid-row: 5; align-self: start; margin-top: 8px; }
.catalog-grid .miner-card .miner-source { grid-column: 1 / -1; grid-row: 6; }
.catalog-grid .miner-card .miner-card-actions { grid-column: 1 / -1; grid-row: 7; }
.dependency-warning, .dependency-panel { padding: 11px 12px; border: 1px solid rgba(240, 163, 72, .35); background: rgba(240, 163, 72, .07); }
.dependency-warning { margin-top: 8px; }
.dependency-warning b, .dependency-warning span { display: block; }
.dependency-warning b { color: #ffd493; font-size: 9px; }
.dependency-warning span { margin-top: 3px; color: #aa9678; font-size: 9px; line-height: 1.45; }
.dependency-panel { margin-top: 18px; }
.dependency-panel h2 { margin: 7px 0 0; font-size: 18px; }
.dependency-panel p { margin: 7px 0 0; color: #aab2b9; font-size: 11px; }
.miner-card-actions button:disabled, .asic-actions-card button:disabled { cursor: not-allowed; opacity: .58; }
.card-detail, .miner-card-actions button { border-radius: 2px; }

/* Product detail */
.asic-layout { grid-template-columns: minmax(0, 1fr) 365px; }
.asic-identity { align-items: center; }
.asic-monogram { width: 94px; border-radius: 2px; background: linear-gradient(145deg, rgba(243, 198, 75, .15), rgba(243, 198, 75, .03)); }
.asic-showcase { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(220px, .65fr); min-height: 330px; margin-top: 25px; border: 1px solid var(--line); background: #090c0e; }
.asic-showcase-machine { position: relative; display: grid; place-items: center; padding: 42px 30px 54px; background: radial-gradient(circle at 50% 45%, rgba(243, 198, 75, .12), transparent 43%), linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: auto, 22px 22px, 22px 22px; }
.asic-showcase-machine > span { position: absolute; left: 18px; bottom: 14px; color: #68737b; font-size: 6px; letter-spacing: .12em; text-transform: uppercase; }
.showcase-chassis { position: relative; width: min(100%, 430px); height: 190px; border: 1px solid #737d84; background: linear-gradient(115deg, #586169, #20262b 19%, #090c0e 72%, #394147); box-shadow: 22px 30px 48px rgba(0, 0, 0, .5), inset 0 1px rgba(255, 255, 255, .2); transform: perspective(700px) rotateY(-7deg) rotateX(2deg); }
.showcase-chassis::before { content: ""; position: absolute; left: 20px; right: -17px; top: -23px; height: 22px; background: linear-gradient(100deg, #737d85, #2d343a 36%, #121619); clip-path: polygon(7% 0, 100% 0, 95% 100%, 0 100%); }
.showcase-chassis i { position: absolute; top: 38px; width: 112px; aspect-ratio: 1; border: 8px solid #080b0d; border-radius: 50%; background: repeating-conic-gradient(#4c565e 0 12deg, #111518 12deg 44deg); box-shadow: inset 0 0 0 7px #30383e, 0 0 0 1px #7a848c; }
.showcase-chassis i::after { content: ""; position: absolute; inset: 42px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px rgba(243, 198, 75, .35); }
.showcase-chassis i:nth-child(1) { left: 20px; }.showcase-chassis i:nth-child(2) { left: calc(50% - 56px); }.showcase-chassis i:nth-child(3) { right: 20px; }
.showcase-chassis b { position: absolute; right: 12px; bottom: 8px; color: #d4dade; font-size: 9px; letter-spacing: .15em; }
.asic-showcase-data { display: flex; flex-direction: column; justify-content: center; padding: 26px; border-left: 1px solid var(--line); background: linear-gradient(145deg, #171d21, #0d1114); }
.asic-showcase-data > span { margin-bottom: 9px; color: #9a8243; font-size: 7px; font-weight: 750; text-transform: uppercase; letter-spacing: .14em; }
.asic-showcase-data > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.asic-showcase-data > div:last-child { border: 0; }
.asic-showcase-data small { display: block; color: #748089; font-size: 8px; text-transform: uppercase; }
.asic-showcase-data strong { display: block; margin-top: 5px; color: #edf0f2; font-size: 18px; letter-spacing: -.04em; }
.spec-list { grid-template-columns: repeat(2, 1fr); }
.asic-actions-card { background: radial-gradient(circle at 50% 0, rgba(243, 198, 75, .1), transparent 45%), linear-gradient(155deg, #181e22, #0a0d0f); }

/* Comparison rack */
.compare-hardware-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 18px; border: 1px solid var(--line); background: #090c0e; }
.compare-hardware-strip[hidden] { display: none; }
.compare-hardware-strip article { min-width: 0; padding: 15px; border-right: 1px solid var(--line); }
.compare-hardware-strip article:last-child { border-right: 0; }
.strip-machine { position: relative; width: 100%; height: 76px; margin-bottom: 13px; border: 1px solid #4d575f; background: linear-gradient(115deg, #343c42, #101417 30%, #080a0c 75%, #262d32); }
.strip-machine i { position: absolute; top: 14px; width: 46px; aspect-ratio: 1; border: 4px solid #080b0d; border-radius: 50%; background: repeating-conic-gradient(#424b52 0 12deg, #101417 12deg 45deg); box-shadow: inset 0 0 0 3px #30373d; }
.strip-machine i:nth-child(1) { left: calc(50% - 50px); }.strip-machine i:nth-child(2) { right: calc(50% - 50px); }
.strip-machine b { position: absolute; right: 6px; bottom: 3px; color: var(--accent); font-size: 7px; }
.compare-hardware-strip small { display: block; color: #727d85; font-size: 7px; text-transform: uppercase; letter-spacing: .07em; }
.compare-hardware-strip strong { display: block; margin-top: 5px; overflow: hidden; color: #dde2e5; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.compare-hardware-strip span { display: block; margin-top: 4px; color: #9b8350; font-size: 8px; }
.compare-page-table { border-radius: 2px; }

/* Premium power workspace */
.workspace-grid { grid-template-columns: minmax(0, 1fr) 420px; }
.calculator-panel { border-left-color: rgba(243, 198, 75, .25); }
.settings-grid, .farm-row, .operations-grid label, .tco-inputs label, .tco-inputs .tco-period-control { border-radius: 2px; }
.results-panel { border-color: rgba(243, 198, 75, .25); background: radial-gradient(circle at 50% 22%, rgba(243, 198, 75, .11), transparent 32%), linear-gradient(155deg, #1b2227, #090c0e 73%); }
.power-core { position: relative; display: grid; place-items: center; min-height: 270px; margin: 15px 0 20px; overflow: hidden; }
.power-core::before { content: ""; position: absolute; width: 236px; aspect-ratio: 1; border: 1px solid rgba(243, 198, 75, .24); border-radius: 50%; box-shadow: inset 0 0 50px rgba(243, 198, 75, .035), 0 0 44px rgba(243, 198, 75, .04); }
.power-core::after { content: ""; position: absolute; width: 192px; aspect-ratio: 1; border: 7px solid rgba(243, 198, 75, .065); border-top-color: var(--accent); border-right-color: rgba(243, 198, 75, .32); border-radius: 50%; transform: rotate(28deg); }
.power-core-orbit { position: absolute; inset: 0; animation: hardware-orbit 18s linear infinite; }
.power-core-orbit i { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(243, 198, 75, .6); transform-origin: 0 0; }
.power-core-orbit i:nth-child(1) { transform: rotate(15deg) translateX(118px); }.power-core-orbit i:nth-child(2) { transform: rotate(142deg) translateX(118px); }.power-core-orbit i:nth-child(3) { transform: rotate(264deg) translateX(118px); }
.power-core .main-result { position: relative; z-index: 2; margin: 0; padding: 0; border: 0; text-align: center; }
.power-core .main-result strong { font-size: 47px; }
.power-core .main-result p { max-width: 150px; margin-inline: auto; }
.result-grid { border: 1px solid var(--line); }
.result-grid div { background: rgba(15, 19, 22, .78); }
.power-analysis { background: radial-gradient(circle at 82% 12%, rgba(243, 198, 75, .07), transparent 27%), linear-gradient(145deg, #171d21, #090c0e); }

/* TCO hierarchy */
.tco-kpis { display: grid; grid-template-columns: 1.28fr 1fr 1fr; grid-template-areas: "total equipment infrastructure" "total electricity operations"; gap: 10px; }
.tco-kpis > div { min-height: 132px; border-radius: 2px; background: linear-gradient(145deg, #171d21, #0c0f12); }
.tco-kpis > div:nth-child(1) { grid-area: equipment; }.tco-kpis > div:nth-child(2) { grid-area: infrastructure; }.tco-kpis > div:nth-child(3) { grid-area: electricity; }.tco-kpis > div:nth-child(4) { grid-area: operations; }
.tco-kpis .tco-total { grid-area: total; min-height: 274px; justify-content: flex-end; padding: 26px; background: radial-gradient(circle at 50% 34%, rgba(243, 198, 75, .14), transparent 38%), linear-gradient(145deg, #24261e, #0d100f); }
.tco-kpis .tco-total::before { content: "TCO"; position: absolute; right: 20px; top: 8px; color: rgba(255, 255, 255, .035); font-size: 78px; font-weight: 800; letter-spacing: -.08em; }
.tco-kpis .tco-total strong { font-size: 31px; }
.chart-card { border-radius: 2px; }
.dynamic-donut::after { background: #111619; }
.period-switch { border-radius: 2px; }
.period-switch button { border-radius: 1px; }

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

@media (max-width: 1120px) {
  .hardware-hero { grid-template-columns: .9fr 1.1fr; }
  .hardware-stage { transform: scale(.94); transform-origin: center; }
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-grid .miner-card { min-height: 500px; }
  .compare-hardware-strip { grid-template-columns: repeat(2, 1fr); }
  .compare-hardware-strip article:nth-child(2) { border-right: 0; }
  .compare-hardware-strip article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 980px) {
  .hardware-hero { grid-template-columns: 1fr; min-height: 0; }
  .hardware-hero .home-copy { max-width: 730px; }
  .hardware-stage { min-height: 610px; transform: none; }
  .brand-manifesto { grid-template-columns: 140px 1fr; }
  .manifesto-mark { font-size: 130px; }
  .manifesto-meta { grid-column: 2; padding: 0 0 24px; border-left: 0; }
  .capability-catalog, .capability-compare, .capability-power, .capability-tco { grid-column: span 12; }
  .workspace-grid { grid-template-columns: 1fr; }
  .tco-kpis { grid-template-columns: 1fr 1fr; grid-template-areas: "total total" "equipment infrastructure" "electricity operations"; }
  .tco-kpis .tco-total { min-height: 230px; }
}

@media (max-width: 760px) {
  .hardware-hero .home-copy::before { display: none; }
  .hardware-hero .home-copy h1 { font-size: clamp(45px, 14vw, 62px); }
  .hero-proof { grid-template-columns: 1fr; }
  .hero-proof span { min-height: 54px; }
  .hardware-stage { min-height: 500px; margin-inline: -7px; }
  .hardware-stage::before { inset: 28px 0 16px; }
  .hardware-product { left: -14%; top: 8%; width: 128%; height: 78%; }
  .stage-index { top: 44px; left: 18px; }
  .stage-metric-power { left: 4px; top: 40%; min-width: 150px; }
  .stage-metric-cost { right: 0; bottom: 22%; min-width: 170px; }
  .stage-metric-status { top: 16%; right: 5px; min-width: 145px; }
  .stage-metric strong { font-size: 19px; }
  .stage-caption { left: 18px; right: 18px; bottom: 26px; }
  .stage-caption { justify-content: flex-start; }
  .stage-caption:not(span) { font-size: 0; }
  .stage-caption span { font-size: 7px; }
  .brand-manifesto { grid-template-columns: 1fr; gap: 10px; min-height: 0; padding-block: 55px; }
  .manifesto-mark { position: absolute; right: 0; top: 20px; font-size: 120px; }
  .brand-manifesto > p { position: relative; z-index: 1; font-size: 29px; }
  .manifesto-meta { grid-column: 1; padding: 20px 0 0; border-top: 1px solid var(--line); }
  .capabilities { padding-block: 85px; }
  .capabilities .section-intro h2 { font-size: 43px; }
  .capability-catalog, .capability-tco { grid-template-columns: 1fr; }
  .hardware-rack, .tco-signal { min-height: 280px; border-top: 1px solid var(--line); border-left: 0; }
  .capability-layout > article { min-height: 0; }
  .capability-compare, .capability-power, .capability-copy, .capability-tco > div:first-child { padding: 25px; }
  body:not([data-page="home"]) .page-hero { min-height: 0; }
  .catalog-grid .miner-card { display: flex; min-height: 0; padding: 19px; }
  .miner-visual { min-height: 230px; }
  .miner-card-actions { grid-template-columns: 1fr; }
  .asic-showcase { grid-template-columns: 1fr; }
  .asic-showcase-machine { min-height: 260px; padding-inline: 14px; }
  .showcase-chassis { height: 145px; }
  .showcase-chassis i { top: 29px; width: 84px; }
  .showcase-chassis i::after { inset: 31px; }
  .showcase-chassis i:nth-child(1) { left: 13px; }.showcase-chassis i:nth-child(2) { left: calc(50% - 42px); }.showcase-chassis i:nth-child(3) { right: 13px; }
  .asic-showcase-data { border-top: 1px solid var(--line); border-left: 0; }
  .compare-hardware-strip { grid-template-columns: 1fr; }
  .compare-hardware-strip article { border-right: 0; border-bottom: 1px solid var(--line); }
  .compare-hardware-strip article:last-child { border-bottom: 0; }
  .power-core { min-height: 245px; }
  .tco-kpis { grid-template-columns: 1fr; grid-template-areas: "total" "equipment" "infrastructure" "electricity" "operations"; }
  .tco-kpis .tco-total { min-height: 220px; }
}

@media (max-width: 430px) {
  .hardware-hero .home-copy h1 { font-size: 43px; }
  .hardware-stage { min-height: 455px; }
  .hardware-product { left: -19%; top: 11%; width: 138%; }
  .stage-metric { padding: 11px; }
  .stage-metric-status { display: none; }
  .stage-metric-power { top: 37%; }
  .stage-metric-cost { bottom: 19%; }
  .capabilities .section-intro h2 { font-size: 37px; }
  .hardware-rack i { width: 75px; height: 160px; }
  .hardware-rack i:nth-child(2) { height: 185px; }
  .showcase-chassis { height: 116px; }
  .showcase-chassis i { top: 22px; width: 69px; border-width: 5px; }
  .showcase-chassis i::after { inset: 25px; }
  .showcase-chassis i:nth-child(1) { left: 8px; }.showcase-chassis i:nth-child(2) { left: calc(50% - 34px); }.showcase-chassis i:nth-child(3) { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .power-core-orbit { animation: none; }
}

/* Stage 2.4.2 — Concept C / Modern Technology Lab */
:root {
  color-scheme: light;
  --bg: #f3f5f6;
  --bg-soft: #e8edf0;
  --panel: #ffffff;
  --panel-2: #edf1f3;
  --panel-3: #dfe6e9;
  --line: rgba(13, 23, 32, .12);
  --line-strong: rgba(13, 23, 32, .22);
  --text: #111b24;
  --muted: #687782;
  --muted-2: #84919a;
  --accent: #f5c842;
  --accent-soft: #ffeaa5;
  --green: #2f9e73;
  --warning: #c47b26;
  --danger: #c95c4a;
  --brand-dark: #0d1720;
  --dark-raised: #16232e;
  --dark-elevated: #1e2e3a;
  --workspace: #f3f5f6;
  --surface: #ffffff;
  --surface-subtle: #e8edf0;
  --ink: #111b24;
  --shadow: 0 28px 70px rgba(28, 45, 57, .14);
  --shadow-soft: 0 14px 36px rgba(28, 45, 57, .1);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 10px;
}

html { background: var(--workspace); }
body {
  overflow-x: clip;
  background:
    radial-gradient(circle at 82% 5%, rgba(245, 200, 66, .13), transparent 25rem),
    linear-gradient(180deg, #f8f9f9 0, var(--workspace) 36rem, #eef2f3 100%);
  color: var(--ink);
}
* { scrollbar-color: #aab6bd #e8edef; }
::selection { background: rgba(245, 200, 66, .48); color: var(--brand-dark); }
.noise { opacity: .012; mix-blend-mode: multiply; }
.shell { width: min(1280px, calc(100% - 56px)); }

/* Dark brand bar, light application canvas */
.site-header.multi-header {
  top: 10px;
  width: min(1320px, calc(100% - 28px));
  min-height: 68px;
  margin-top: 10px;
  padding: 7px 8px 7px 14px;
  border: 1px solid rgba(207, 221, 229, .15);
  border-radius: 14px;
  background: rgba(13, 23, 32, .96);
  box-shadow: 0 18px 45px rgba(15, 28, 38, .19);
  backdrop-filter: blur(18px) saturate(120%);
}
.site-header.multi-header::before {
  left: 14px;
  width: 112px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.site-header.multi-header::after { display: none; }
.brand { color: #f4f7f8; font-weight: 750; }
.brand > span:last-child > span { color: var(--accent); }
.brand-mark { width: 46px; height: 46px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.platform-nav a { border-radius: 8px; color: #94a3ad; font-size: 11px; }
.platform-nav a:hover { color: #fff; background: rgba(255, 255, 255, .055); }
.platform-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .075); }
.platform-nav a[aria-current="page"]::after { height: 2px; border-radius: 2px; }
.header-cta {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--brand-dark);
  box-shadow: none;
}
.header-cta:hover { background: #ffda63; }
.menu-toggle { border-color: rgba(255, 255, 255, .13); background: var(--dark-raised); }

/* Type and controls */
.eyebrow { color: #536773; font-weight: 750; }
.eyebrow span { background: var(--accent); box-shadow: none; }
.breadcrumbs { color: #7b8992; }
.breadcrumbs b { color: var(--ink); }
.breadcrumbs span { color: #b0bbc1; }
.page-hero { padding-block: 102px 46px; }
.page-hero::after { bottom: 17px; background: linear-gradient(90deg, rgba(13, 23, 32, .2), transparent 76%); }
.page-hero h1,
body:not([data-page="home"]) .page-hero h1 {
  max-width: 980px;
  background: none;
  color: var(--ink);
  font-size: clamp(48px, 5.7vw, 76px);
  font-weight: 700;
  letter-spacing: -.065em;
}
.page-hero h1 em,
body:not([data-page="home"]) .page-hero h1 em { background: none; color: #ad7c08; }
.page-hero > p { color: var(--muted); font-size: 14px; }
body:not([data-page="home"]) .page-hero { min-height: 322px; padding-top: 104px; }
body:not([data-page="home"]) .page-hero::before {
  top: 83px;
  width: 390px;
  height: 185px;
  border: 1px solid rgba(13, 23, 32, .075);
  background: linear-gradient(rgba(13, 23, 32, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(13, 23, 32, .035) 1px, transparent 1px);
  background-size: 24px 24px;
}
.button { min-height: 48px; border-radius: 8px; font-weight: 800; }
.button-primary,
.button-primary:hover {
  background: var(--brand-dark);
  color: #fff;
  box-shadow: 0 12px 26px rgba(13, 23, 32, .16);
}
.button-primary::after { color: var(--accent); }
.button-primary:hover { background: #162733; }
.button-secondary {
  border-color: rgba(13, 23, 32, .18);
  background: rgba(255, 255, 255, .72);
  color: var(--ink);
}
.button-secondary:hover { border-color: rgba(13, 23, 32, .34); background: #fff; }
input, select { color-scheme: light; }
input::placeholder { color: #98a4ab; }

/* Homepage: product story meets analytical workspace */
.hardware-hero {
  grid-template-columns: minmax(0, .93fr) minmax(560px, 1.07fr);
  gap: 48px;
  min-height: 800px;
  padding-block: 92px 58px;
}
.hardware-hero::before { content: "DM / MODERN TECHNOLOGY LAB"; color: rgba(13, 23, 32, .18); }
.hardware-hero::after { background: linear-gradient(90deg, var(--accent), rgba(13, 23, 32, .11) 30%, transparent 78%); }
.hardware-hero .home-copy::before { background: linear-gradient(var(--accent), transparent 76%); }
.hardware-hero .home-copy h1 { color: var(--ink); font-size: clamp(56px, 6.1vw, 88px); line-height: .91; }
.hardware-hero .home-copy h1 em {
  position: relative;
  width: fit-content;
  margin-top: 10px;
  background: none;
  color: var(--ink);
  text-shadow: none;
}
.hardware-hero .home-copy h1 em::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -.12em;
  left: 0;
  z-index: -1;
  height: .16em;
  background: var(--accent);
}
.hardware-hero .home-copy > p { color: #566a76; font-size: 16px; }
.home-demo-link { color: #536773; }
.home-demo-link span { color: #805c09; }
.hero-proof { border-color: rgba(13, 23, 32, .13); background: rgba(13, 23, 32, .1); }
.hero-proof span { background: rgba(255, 255, 255, .74); color: #687782; }
.hero-proof b { color: var(--ink); }

.hardware-stage { min-height: 650px; border-radius: 24px; }
.hardware-stage::before {
  inset: 18px 0 18px;
  border: 1px solid rgba(209, 224, 232, .13);
  border-radius: 24px;
  background:
    radial-gradient(circle at 52% 48%, rgba(245, 200, 66, .15), transparent 42%),
    linear-gradient(rgba(188, 205, 214, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(188, 205, 214, .06) 1px, transparent 1px),
    var(--brand-dark);
  background-size: auto, 34px 34px, 34px 34px, auto;
  clip-path: none;
  box-shadow: 0 38px 70px rgba(15, 28, 38, .2);
}
.hardware-stage::after { inset: 58% 0 1% 5%; }
.hardware-product { left: -4%; top: 6%; width: 111%; height: 87%; }
.stage-index { top: 48px; left: 28px; color: #788b97; }
.stage-metric {
  border-color: rgba(218, 231, 237, .16);
  border-radius: 10px;
  background: rgba(22, 35, 46, .92);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .25);
}
.stage-metric span { color: #91a2ac; }
.stage-metric strong { color: #f4f7f8; }
.stage-caption { left: 28px; right: 28px; color: #7e909a; }

.brand-manifesto {
  grid-template-columns: 180px 1fr 260px;
  min-height: 270px;
  padding-inline: 34px;
  border: 0;
  border-radius: 22px;
  background: var(--brand-dark);
  box-shadow: 0 24px 55px rgba(15, 28, 38, .12);
}
.manifesto-mark { color: rgba(255, 255, 255, .035); }
.brand-manifesto > p { color: #93a4ae; }
.brand-manifesto > p strong { color: #f3f6f7; }
.manifesto-meta { border-color: rgba(216, 229, 236, .14); color: #82949f; }
.capabilities { padding-block: 112px; }
.capabilities .section-intro h2 { color: var(--ink); }
.capabilities .section-intro > p { color: var(--muted); }
.capability-layout > article {
  border-color: rgba(13, 23, 32, .11);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(31, 49, 60, .08);
}
.capability-layout h3 { color: var(--ink); }
.capability-layout p { color: var(--muted); }
.capability-layout a { color: var(--ink); }
.capability-catalog { background: #fff !important; }
.capability-copy > span,
.capability-layout article > span,
.capability-tco > div > span { color: #9d7412; }
.hardware-rack {
  border-color: rgba(215, 228, 235, .12);
  border-radius: 0 18px 18px 0;
  background: radial-gradient(circle at 50% 55%, rgba(245, 200, 66, .12), transparent 45%), linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px), var(--brand-dark);
  background-size: auto, 24px 24px, 24px 24px, auto;
}
.capability-compare {
  background: radial-gradient(circle at 70% 25%, rgba(245, 200, 66, .13), transparent 42%), var(--brand-dark) !important;
}
.capability-compare h3 { color: #f2f5f6; }
.capability-compare p { color: #8fa1ab; }
.capability-compare a { color: #e8eef1; }
.capability-power { background: #eef2f4 !important; }
.energy-wave { border-color: rgba(13, 23, 32, .12); }
.capability-tco { background: #fff !important; }
.tco-signal {
  border-color: rgba(214, 227, 234, .12);
  border-radius: 0 18px 18px 0;
  background: radial-gradient(circle at 55% 45%, rgba(245, 200, 66, .1), transparent 48%), linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), var(--brand-dark);
  background-size: auto, 100% 32px, auto;
}
.capabilities .principles { border-color: rgba(13, 23, 32, .12); border-radius: 14px; background: #fff; }
.capabilities .principles div { border-color: rgba(13, 23, 32, .1); background: transparent; }
.principles b { color: var(--ink); }
.principles span { color: var(--muted); }

/* Shared application surfaces */
.tool-shell,
.calculator-panel,
.saved-configurations,
.asic-spec-card,
.chart-card,
.tco-inputs {
  border: 1px solid rgba(13, 23, 32, .1);
  border-radius: 18px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 48px rgba(31, 49, 60, .08);
}
.tool-shell::before,
.calculator-panel::before,
.asic-spec-card::before { width: 94px; background: linear-gradient(90deg, var(--accent), transparent); }
.tool-shell::after,
.calculator-panel::after,
.asic-spec-card::after { display: none; }
.tool-label { color: #73838d; }
.tool-head h2, .tool-head h3, .calc-toolbar h2, .calc-toolbar h3, .saved-head h2, .saved-head h3 { color: var(--ink); }
.tool-head > p { color: var(--muted); }
.empty-state { border-color: rgba(13, 23, 32, .15); background: #f7f9f9; }
.empty-state h2, .empty-state h3 { color: var(--ink); }

/* Catalogue: light records with a dedicated hardware bay */
.catalog-insights div { border-color: rgba(13, 23, 32, .18); }
.catalog-insights small { color: #73838d; }
.catalog-insights b { color: var(--ink); }
.catalog-tools {
  border-color: rgba(13, 23, 32, .1);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(31, 49, 60, .06);
}
.search-box { border-color: rgba(13, 23, 32, .13); border-radius: 8px; background: #f2f5f6; }
.search-box input { color: var(--ink); }
.filter-pill { border-color: rgba(13, 23, 32, .13); color: #60727e; }
.filter-pill.active, .filter-pill:hover { border-color: #c99a20; background: #fff7d7; color: #73520a; }
.catalog-selects label { border-color: rgba(13, 23, 32, .1); border-radius: 9px; background: #fff; }
.catalog-selects span { color: #73838d; }
.catalog-selects select { color: var(--ink); }
.catalog-selects option { background: #fff; }
.catalog-summary { color: var(--muted); }
.catalog-summary span:first-child { color: var(--ink); }
.filter-reset { color: #5f717d; }
.catalog-grid .miner-card,
.catalog-grid .miner-card:nth-child(4n + 2),
.catalog-grid .miner-card:nth-child(4n + 3) {
  border-color: rgba(13, 23, 32, .1);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 42px rgba(31, 49, 60, .07);
}
.miner-card:hover { border-color: rgba(13, 23, 32, .2); box-shadow: 0 22px 48px rgba(31, 49, 60, .12); }
.miner-card::after { color: rgba(13, 23, 32, .03); }
.miner-card-brand { color: #73838d; }
.algo-badge { border-color: #ead27d; background: #fff7d7; color: #74560d; }
.miner-visual {
  border-color: rgba(214, 228, 235, .14);
  border-radius: 10px;
  background: radial-gradient(circle at 48% 42%, rgba(245, 200, 66, .12), transparent 44%), linear-gradient(rgba(183, 199, 208, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(183, 199, 208, .06) 1px, transparent 1px), var(--brand-dark);
  background-size: auto, 19px 19px, 19px 19px, auto;
}
.catalog-grid .miner-card h2 { color: var(--ink); }
.data-status { color: #647782; }
.miner-specs small { color: #7b8992; }
.miner-specs b { color: var(--ink); }
.miner-source { border-color: rgba(13, 23, 32, .1); }
.card-detail { background: var(--brand-dark); color: #fff; }
.miner-card-actions .add-farm-card { border-color: rgba(13, 23, 32, .16); color: var(--ink); }
.catalog-tray { border-color: rgba(218, 231, 237, .16); background: rgba(13, 23, 32, .96); color: #fff; }
.dependency-warning, .dependency-panel { border-color: rgba(196, 123, 38, .35); background: #fff8ea; }
.dependency-warning b { color: #8d5717; }
.dependency-warning span, .dependency-panel p { color: #836e52; }

/* ASIC detail: specifications on paper, product/action bay in graphite */
.asic-spec-card { overflow: hidden; }
.asic-actions-card {
  border: 1px solid rgba(216, 229, 236, .12);
  border-radius: 18px;
  background: radial-gradient(circle at 50% 0, rgba(245, 200, 66, .13), transparent 44%), var(--brand-dark);
  box-shadow: 0 22px 50px rgba(15, 28, 38, .16);
}
.asic-identity { border-color: rgba(13, 23, 32, .1); }
.asic-identity h1 { color: var(--ink); }
.asic-monogram { border-color: #ead27d; border-radius: 12px; background: #fff7d7; color: #74560d; }
.asic-showcase { border-color: rgba(214, 228, 235, .12); border-radius: 14px; background: var(--brand-dark); overflow: hidden; }
.asic-showcase-machine { background: radial-gradient(circle at 50% 45%, rgba(245, 200, 66, .14), transparent 43%), linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px), var(--brand-dark); background-size: auto, 22px 22px, 22px 22px, auto; }
.asic-showcase-data { border-color: rgba(214, 228, 235, .12); background: #16232e; }
.spec-list > div { border-color: rgba(13, 23, 32, .1); }
.spec-list dt { color: #72828c; }
.spec-list dd { color: var(--ink); }
.source-panel { border-color: rgba(13, 23, 32, .1); background: #f3f6f7; }
.source-panel p { color: var(--muted); }
.asic-actions-card h2 { color: #f4f7f8; }
.asic-actions-card p { color: #93a4ae; }
.asic-actions-card .button-primary { background: var(--accent); color: var(--brand-dark); }
.asic-actions-card .button-secondary { border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: #eef3f5; }
.asic-back { color: #617480; }

/* Comparison matrix */
.compare-workspace-head { border-color: rgba(13, 23, 32, .1); }
.compare-workspace-head h2 { color: var(--ink); }
.compare-workspace-head > div:last-child { color: #71818b; }
.compare-controls select { border-color: rgba(13, 23, 32, .13); background: #f2f5f6; color: var(--ink); }
.compare-hardware-strip { border-color: rgba(214, 228, 235, .12); border-radius: 12px; background: var(--brand-dark); overflow: hidden; }
.compare-hardware-strip article { border-color: rgba(214, 228, 235, .11); }
.compare-page-table { border-color: rgba(13, 23, 32, .1); border-radius: 12px; background: #fff; }
.compare-table th, .compare-table td { border-color: rgba(13, 23, 32, .09); color: var(--ink); }
.compare-page-table .compare-table th { background: var(--brand-dark); color: #f4f7f8; }
.compare-page-table .compare-table th:first-child { background: #16232e; color: #a9b6bd; }
.compare-page-table .compare-table td:first-child { background: #eef2f4; color: #60727d; }
.compare-table tr:hover td:not(:first-child) { background: #f6f8f8; }
.compare-table .best-value { color: #237d59; background: #ecf7f2; }
.compare-remove { color: #8fa0aa; }
.comparison-warning { border-color: #ead27d; background: #fff7d7; color: #6c5518; }

/* Farm calculator: white editing desk + dark live result */
.workspace-grid { grid-template-columns: minmax(0, 1fr) 420px; gap: 18px; }
.calculator-panel { border-left-color: rgba(13, 23, 32, .1); }
.icon-button, .add-row { border-color: rgba(13, 23, 32, .13); background: #f2f5f6; color: var(--ink); }
.settings-grid { border-color: rgba(13, 23, 32, .1); border-radius: 12px; background: #f3f6f7; }
.settings-grid span { color: #667984; }
.settings-grid input,
.farm-row input { border-color: rgba(13, 23, 32, .13); background: #fff; color: var(--ink); }
.farm-row { border-color: rgba(13, 23, 32, .1); border-radius: 10px; background: #f8fafa; }
.farm-row select { color: var(--ink); }
.farm-row select option { background: #fff; }
.farm-table-head { color: #71818b; }
.operations-grid { border-color: rgba(13, 23, 32, .1); }
.operations-grid label,
.tco-inputs label,
.tco-inputs .tco-period-control { border-color: rgba(13, 23, 32, .1); border-radius: 10px; background: #f4f7f8; }
.operations-grid span, .tco-inputs span, .tco-period-control > span { color: #667984; }
.operations-grid input, .tco-inputs input, .tco-inputs select { color: var(--ink); }
.infrastructure-note { color: #667984; }
.saved-card { border-color: rgba(13, 23, 32, .1); border-radius: 10px; background: #f3f6f7; }
.saved-card h4, .saved-card dl { color: var(--ink); }
.results-panel {
  border: 1px solid rgba(214, 228, 235, .13);
  border-radius: 18px;
  background: radial-gradient(circle at 50% 23%, rgba(245, 200, 66, .14), transparent 32%), var(--brand-dark);
  box-shadow: 0 28px 62px rgba(15, 28, 38, .18);
}
.result-topline { color: #92a4ae; }
.power-core::before { border-color: rgba(245, 200, 66, .24); }
.power-core .main-result small, .main-result p { color: #8fa1ab; }
.power-core .main-result strong { color: #f3f7f8; }
.result-grid { border-color: rgba(214, 228, 235, .12); }
.result-grid div { background: rgba(22, 35, 46, .82); }
.result-grid small { color: #81949f; }
.result-grid strong { color: #f0f5f7; }
.cost-block > div { border-color: rgba(214, 228, 235, .11); }
.cost-block span { color: #8fa1ab; }
.cost-block strong { color: #f2f6f8; }
.cost-block .cost-total strong { color: var(--accent); }
.algo-summary { border-color: rgba(214, 228, 235, .12); }
.algo-summary > div { color: #f0f5f7; }
.heat-note { border-color: rgba(245, 200, 66, .18); background: rgba(245, 200, 66, .055); }
.results-panel .next-tool-link { border-color: rgba(245, 200, 66, .22); background: rgba(245, 200, 66, .07); color: #f3f6f7; }
.power-analysis {
  border: 1px solid rgba(13, 23, 32, .1);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(31, 49, 60, .08);
}
.power-analysis-head h2, .power-analysis-head h3 { color: var(--ink); }
.power-analysis-head > span { color: #85620c; }
.power-analysis-grid > div { border-color: rgba(13, 23, 32, .1); border-radius: 10px; background: #f2f5f6; }
.power-analysis-grid small { color: #70808b; }
.power-analysis-grid strong { color: var(--ink); }
.power-analysis-grid .power-accent { border-color: var(--brand-dark); background: var(--brand-dark); }
.power-analysis-grid .power-accent small { color: #9aabb5; }
.power-analysis-grid .power-accent strong { color: var(--accent); }
.power-disclaimer { color: #637681; }

/* TCO: financial analysis with deliberate light/dark hierarchy */
.tco-inputs { border-radius: 14px; }
.period-switch { border-color: rgba(13, 23, 32, .11); border-radius: 8px; background: #edf2f4; }
.period-switch button { border-radius: 7px; color: #5f717d; }
.period-switch button.active { background: var(--brand-dark); color: #fff; }
.tco-formula { color: #60737e; }
.tco-kpis > div {
  border-color: rgba(13, 23, 32, .1);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(31, 49, 60, .06);
}
.tco-kpis small { color: #71818b; }
.tco-kpis strong { color: var(--ink); }
.tco-kpis span { color: #83919a; }
.tco-kpis .tco-total {
  border-color: rgba(214, 228, 235, .12);
  border-radius: 14px;
  background: radial-gradient(circle at 50% 34%, rgba(245, 200, 66, .15), transparent 38%), var(--brand-dark);
}
.tco-kpis .tco-total small, .tco-kpis .tco-total span { color: #8fa1ab; }
.tco-kpis .tco-total strong { color: var(--accent); }
.chart-card { border-radius: 16px; }
.chart-head h3 { color: var(--ink); }
.chart-head span { color: #6c7e89; }
.dynamic-donut::after { background: #fff; }
.chart-grid-line { stroke: rgba(13, 23, 32, .1); }
.chart-axis-label { fill: #71818b; }
.chart-dot { stroke: #fff; }
.income-notice { border-color: #ead27d; background: #fff7d7; color: #6c5518; }
.dependency-notice { border-color: rgba(196, 123, 38, .32); background: #fff8ea; }

/* Feedback and footer */
.toast { border-color: rgba(214, 228, 235, .15); background: var(--brand-dark); color: #fff; box-shadow: var(--shadow); }
.platform-footer {
  width: min(1320px, calc(100% - 28px));
  margin: 0 auto 14px;
  padding: 28px;
  border: 0;
  border-radius: 16px;
  background: var(--brand-dark);
  color: #8fa1ab;
}
.platform-footer > span { color: #728691; }

@media (max-width: 1120px) {
  .hardware-hero { grid-template-columns: .9fr 1.1fr; gap: 24px; }
  .catalog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .shell { width: min(100% - 40px, 1280px); }
  .hardware-hero { grid-template-columns: 1fr; min-height: 0; }
  .hardware-stage { min-height: 610px; }
  .brand-manifesto { grid-template-columns: 150px 1fr; }
  .manifesto-meta { grid-column: 2; }
  .workspace-grid { grid-template-columns: 1fr; }
  .results-panel { position: static; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 1280px); }
  .site-header.multi-header { width: calc(100% - 20px); min-height: 60px; margin-top: 8px; }
  .platform-nav { border-color: rgba(216, 229, 236, .14); background: rgba(13, 23, 32, .99); }
  .platform-nav a { color: #a5b2ba; }
  .page-hero, body:not([data-page="home"]) .page-hero { padding-block: 80px 34px; }
  body:not([data-page="home"]) .page-hero { min-height: 0; }
  .home-hero { padding-block: 73px 42px; }
  .hardware-hero .home-copy h1, .page-hero h1 { font-size: clamp(42px, 13vw, 58px); }
  .hardware-stage { min-height: 520px; }
  .hardware-stage::before { inset: 12px 0; }
  .hardware-product { left: -14%; top: 8%; width: 128%; height: 78%; }
  .stage-index { top: 34px; left: 18px; }
  .stage-caption { left: 18px; right: 18px; bottom: 22px; }
  .brand-manifesto { grid-template-columns: 1fr; padding: 40px 24px; }
  .manifesto-meta { grid-column: 1; }
  .capability-layout > article { border-radius: 14px; }
  .hardware-rack, .tco-signal { border-radius: 0 0 14px 14px; }
  .catalog-grid .miner-card { border-radius: 14px; }
  .asic-showcase { border-radius: 10px; }
  .compare-page-table { border-radius: 10px; }
  .calculator-panel, .results-panel, .power-analysis { border-radius: 14px; }
  .platform-footer { width: calc(100% - 20px); padding: 22px; }
}

@media (max-width: 430px) {
  .shell { width: calc(100% - 24px); }
  .hardware-hero .home-copy h1, .page-hero h1 { font-size: 42px; }
  .hardware-stage { min-height: 470px; }
  .hero-proof span { padding-inline: 10px; }
  .stage-metric-power { left: 0; }
  .stage-metric-cost { right: 0; }
  .brand-manifesto { padding: 34px 20px; }
  .capabilities { padding-block: 82px; }
  .capability-copy, .capability-compare, .capability-power, .capability-tco > div:first-child { padding: 22px; }
  .catalog-tools, .tool-shell, .asic-spec-card, .calculator-panel, .results-panel, .power-analysis, .chart-card, .tco-inputs { padding: 16px; }
  .farm-row { min-width: 0; }
  .farm-row input, .farm-row select { min-width: 0; width: 100%; }
  .tco-kpis .tco-total { min-height: 205px; }
}

/* Stage 2.5 — ASIC Catalog, Farm Builder & Farm Check */
.catalog-commandbar {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 160px 210px;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid rgba(13, 23, 32, .1);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(31, 49, 60, .065);
}
.catalog-commandbar .search-box { min-height: 50px; }
.catalog-tariff { display: grid; min-width: 0; min-height: 50px; align-content: center; gap: 3px; padding: 6px 10px; border: 1px solid rgba(189, 144, 25, .25); border-radius: 9px; background: #fff9e8; }
.catalog-tariff > span:first-child { color: #796321; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.catalog-tariff-value { display: flex; min-width: 0; align-items: baseline; gap: 5px; }
.catalog-tariff-value input { width: 55px; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: 800 16px/1.1 "Manrope", sans-serif; font-feature-settings: "tnum"; }
.catalog-tariff-value input:focus { color: #8b6814; }
.catalog-tariff-value b { color: #6f7d84; font-size: 8px; white-space: nowrap; }
.catalog-tariff small { overflow: hidden; color: #8a7b52; font-size: 7px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.catalog-sort { display: flex; min-height: 50px; flex-direction: column; justify-content: center; padding: 7px 12px; border: 1px solid rgba(13, 23, 32, .11); border-radius: 9px; background: #f2f5f6; }
.catalog-sort span, .catalog-density { color: #6f808a; font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.catalog-sort select, .catalog-density select { border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 11px; font-weight: 700; }
.catalog-profit-order { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; min-width: 0; margin: 0; padding: 10px 0 0; border: 0; border-top: 1px solid #e1e7ea; }
.catalog-profit-order > span { color: #425864; font-size: .875rem; font-weight: 700; }
.catalog-profit-options { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 10px; background: #f2f5f6; }
.catalog-profit-options label { position: relative; cursor: pointer; }
.catalog-profit-options input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.catalog-profit-options label > span { display: flex; align-items: center; min-height: 36px; padding: 4px 10px; border-radius: 7px; color: #344954; font-size: .875rem; font-weight: 750; }
.catalog-profit-options label:hover > span { color: var(--ink); background: #e5ecef; }
.catalog-profit-options input:checked + span { color: #fff; background: #263741; }
.catalog-profit-options input:focus-visible + span { outline: 2px solid #8c6b1f; outline-offset: 2px; }
.mobile-filter-toggle { display: none; }

.catalog-workspace { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 16px; align-items: start; }
.catalog-filter-panel { position: sticky; top: 94px; display: grid; align-content: start; gap: 10px; max-height: calc(100vh - 108px); max-height: calc(100dvh - 108px); min-width: 0; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: #bdcbd1 transparent; scrollbar-gutter: stable; padding: 18px; border: 1px solid rgba(13, 23, 32, .1); border-radius: 16px; background: #fff; box-shadow: 0 14px 38px rgba(31, 49, 60, .065); }
.catalog-filter-panel:focus-visible { outline: 2px solid rgba(201, 151, 34, .55); outline-offset: 2px; }
.catalog-filter-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding-bottom: 13px; border-bottom: 1px solid rgba(13, 23, 32, .09); }
.catalog-filter-head h2 { margin: 5px 0 0; color: var(--ink); font-size: 17px; letter-spacing: -.035em; }
.catalog-filter-panel > label, .catalog-range-group { display: grid; gap: 7px; padding: 11px; border: 1px solid rgba(13, 23, 32, .085); border-radius: 10px; background: #f5f7f8; }
.catalog-filter-panel > label > span, .catalog-range-group > span, .catalog-filter-group > span { color: #6a7c87; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.catalog-filter-panel select, .catalog-filter-panel input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 11px; }
.catalog-range-group > div { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.catalog-range-group input { padding: 8px; border: 1px solid rgba(13, 23, 32, .11); border-radius: 7px; background: #fff; }
.catalog-range-group small { color: #82919a; font-size: 10px; line-height: 1.45; }
.catalog-filter-group { display: grid; gap: 9px; }
.catalog-filter-panel .filter-pills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.catalog-filter-panel .filter-pill { display: grid; width: 100%; min-height: 36px; place-items: center; padding: 6px 5px; font-size: 10px; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
.catalog-results { min-width: 0; }
.catalog-summary { min-height: 44px; align-items: center; margin: 0 2px 14px; }
.catalog-summary #catalogCompatibilityNote { justify-self: start; }
.catalog-density { display: flex; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; }

.catalog-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.miner-record { position: relative; display: grid; grid-template-columns: 132px minmax(180px, 1.05fr) minmax(280px, 1.45fr); grid-template-areas: "hardware identity metrics" "evidence evidence actions"; gap: 16px 20px; min-width: 0; padding: 18px; border: 1px solid rgba(13, 23, 32, .1); border-radius: 15px; background: #fff; box-shadow: 0 12px 34px rgba(31, 49, 60, .055); transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease; }
.miner-record:hover { transform: translateY(-2px); border-color: rgba(13, 23, 32, .2); box-shadow: 0 18px 42px rgba(31, 49, 60, .095); }
.miner-record::before { content: ""; position: absolute; top: -1px; left: 18px; width: 68px; height: 2px; border-radius: 2px; background: var(--accent); }
.miner-record.has-dependency::before { background: var(--danger); }
.record-hardware { grid-area: hardware; display: grid; place-items: center; min-height: 118px; border-radius: 11px; background: radial-gradient(circle at 50% 50%, rgba(245, 200, 66, .13), transparent 46%), linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px), var(--brand-dark); background-size: auto, 18px 18px, 18px 18px, auto; overflow: hidden; }
.record-hardware .mini-chassis { width: 106px; height: 58px; transform: perspective(400px) rotateY(-7deg) rotateX(2deg) scale(.88); }
.record-hardware .mini-chassis::before { top: -8px; height: 7px; }
.record-hardware .mini-chassis i { top: 10px; width: 33px; border-width: 3px; }
.record-hardware .mini-chassis i::after { inset: 12px; }
.record-hardware .mini-chassis i:nth-child(1) { left: 5px; }.record-hardware .mini-chassis i:nth-child(2) { left: calc(50% - 16px); }.record-hardware .mini-chassis i:nth-child(3) { right: 5px; }
.record-identity { grid-area: identity; min-width: 0; align-self: center; }
.record-identity h2 { margin: 12px 0 4px; color: var(--ink); font-size: 20px; line-height: 1.15; letter-spacing: -.04em; }
.record-identity p { margin: 0; color: #84929a; font: 10px/1.5 "IBM Plex Mono", ui-monospace, monospace; text-transform: uppercase; letter-spacing: .04em; }
.record-identity .data-status { margin-top: 11px; }
.record-metrics { grid-area: metrics; display: grid; grid-template-columns: repeat(2, 1fr); align-self: stretch; border: 1px solid rgba(13, 23, 32, .085); border-radius: 10px; background: #f3f6f7; overflow: hidden; }
.record-metrics span { display: flex; min-width: 0; flex-direction: column; justify-content: center; gap: 4px; padding: 10px 12px; border-right: 1px solid rgba(13, 23, 32, .075); border-bottom: 1px solid rgba(13, 23, 32, .075); }
.record-metrics span:nth-child(2n) { border-right: 0; }.record-metrics span:nth-last-child(-n+2) { border-bottom: 0; }
.record-metrics small { color: #75858e; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.record-metrics b { color: var(--ink); font: 700 12px/1.25 "IBM Plex Mono", ui-monospace, monospace; }
.record-evidence { grid-area: evidence; display: flex; flex-wrap: wrap; gap: 7px 14px; align-items: center; min-width: 0; color: #71818b; font-size: 10px; }
.record-evidence a { color: #3f5663; font-weight: 800; }
.record-evidence b { width: 100%; color: #9a551f; font-weight: 650; line-height: 1.45; }
.miner-record .miner-card-actions { grid-area: actions; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; align-self: end; }
.miner-record .card-detail, .miner-record .miner-card-actions button { min-height: 38px; border-radius: 8px; }
body[data-page="catalog"] .miner-record .miner-card-actions > a,
body[data-page="catalog"] .miner-record .miner-card-actions > button { min-height: 42px; box-sizing: border-box; }
body[data-page="catalog"] .miner-record .card-detail {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid #101e28;
  border-radius: 8px;
  background: #101e28;
  color: #fff;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
  text-align: center;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
body[data-page="catalog"] .miner-record .card-detail:hover { border-color: #263f50; background: #263f50; box-shadow: 0 4px 12px rgba(16, 30, 40, .16); }
body[data-page="catalog"] .miner-record .card-detail:focus-visible { outline: 2px solid #b88810; outline-offset: 3px; }

.catalog-view-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.catalog-view-cards .miner-record { grid-template-columns: 1fr 1fr; grid-template-areas: "hardware hardware" "identity identity" "metrics metrics" "evidence evidence" "actions actions"; gap: 15px; }
.catalog-view-cards .record-hardware { min-height: 190px; }
.catalog-view-cards .record-hardware .mini-chassis { width: 190px; height: 100px; transform: perspective(500px) rotateY(-7deg) rotateX(2deg); }
.catalog-view-cards .record-hardware .mini-chassis::before { top: -12px; height: 11px; }
.catalog-view-cards .record-hardware .mini-chassis i { top: 20px; width: 56px; border-width: 5px; }
.catalog-view-cards .record-hardware .mini-chassis i::after { inset: 21px; }
.catalog-view-cards .record-hardware .mini-chassis i:nth-child(1) { left: 10px; }.catalog-view-cards .record-hardware .mini-chassis i:nth-child(2) { left: calc(50% - 28px); }.catalog-view-cards .record-hardware .mini-chassis i:nth-child(3) { right: 10px; }
.density-compact .miner-record { padding: 12px; gap: 10px 14px; }
.density-compact .record-hardware { min-height: 92px; }
.density-compact .record-identity h2 { margin-top: 8px; font-size: 17px; }
.density-compact .record-metrics span { padding: 7px 9px; }
.empty-catalog { grid-column: 1 / -1; display: flex; min-height: 230px; flex-direction: column; justify-content: center; align-items: center; gap: 8px; padding: 28px; border: 1px dashed rgba(13, 23, 32, .2); border-radius: 14px; background: #fff; color: #6d7e88; text-align: center; }
.empty-catalog b { color: var(--ink); font-size: 18px; }.empty-catalog span { font-size: 11px; }.empty-catalog button { margin-top: 8px; border: 0; background: transparent; color: #8a650e; cursor: pointer; font-size: 10px; font-weight: 800; }

/* Stage 2.8 — Catalog UX & Hardware Discovery */
.catalog-commandbar .search-box { position: relative; }
.catalog-commandbar .search-box input { min-width: 0; padding-right: 30px; }
.catalog-commandbar #catalogSearch::-webkit-search-cancel-button { display: none; -webkit-appearance: none; }
.catalog-commandbar .search-box button {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: #dfe6e9;
  color: #536873;
  cursor: pointer;
  font-size: 17px;
}
.catalog-commandbar .search-box button[hidden] { display: none; }
.mobile-filter-toggle b { display: grid; min-width: 20px; height: 20px; place-items: center; border-radius: 10px; background: var(--accent); color: #1a1b17; font: 800 9px "IBM Plex Mono", ui-monospace, monospace; }
.mobile-filter-toggle b[hidden] { display: none; }
.catalog-filter-panel input:disabled { cursor: not-allowed; opacity: .42; }
.catalog-active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 2px 14px; }
.catalog-active-filters[hidden] { display: none; }
.catalog-active-filters button { min-height: 30px; padding: 5px 8px; border: 1px solid rgba(13, 23, 32, .12); border-radius: 8px; background: #fff; color: #526672; cursor: pointer; font: 700 9px "IBM Plex Mono", ui-monospace, monospace; }
.catalog-active-filters button span { color: #8b6814; }
.catalog-active-filters button b { margin-left: 4px; color: #8a969c; }
.record-classifiers { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.record-classifiers span, .catalog-query-match { width: max-content; max-width: 100%; padding: 4px 6px; border-radius: 5px; background: #edf2f4; color: #607681; font: 750 8px/1.3 "IBM Plex Mono", ui-monospace, monospace; text-transform: none; letter-spacing: .02em; }
.catalog-query-match { display: block; margin-top: 7px; background: #fff1b8; color: #66500d; }
.record-evidence em { padding: 4px 6px; border-radius: 5px; background: #fff1e3; color: #955b26; font-style: normal; font-weight: 750; }
.record-evidence em.complete { background: #e9f5f0; color: #2d7e61; }

/* Dedicated equipment picker */
body.picker-open { overflow: hidden; }
.asic-picker[hidden] { display: none; }
.dependency-editor[hidden] { display: none; }
.asic-picker { position: fixed; inset: 0; z-index: 120; display: grid; grid-template-rows: minmax(0, 1fr); justify-items: end; overflow: hidden; }
.asic-picker-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(7, 14, 20, .64); backdrop-filter: blur(7px); cursor: default; }
.asic-picker-panel { position: relative; z-index: 1; display: flex; width: min(780px, calc(100% - 40px)); height: 100dvh; max-height: 100dvh; min-height: 0; flex-direction: column; overflow: hidden; padding: 26px; background: #f3f5f6; box-shadow: -32px 0 80px rgba(6, 14, 20, .26); animation: picker-enter 240ms ease both; }
.asic-picker-head { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid rgba(13, 23, 32, .11); }
.asic-picker-head h2 { margin: 6px 0 0; color: var(--ink); font-size: 36px; line-height: 1; letter-spacing: -.055em; }
.asic-picker-head p { margin: 9px 0 0; color: var(--muted); font-size: 11px; }
.asic-picker-close { width: 42px; height: 42px; flex: 0 0 auto; border: 1px solid rgba(13, 23, 32, .12); border-radius: 9px; background: #fff; color: var(--ink); cursor: pointer; font-size: 23px; }
.asic-picker-tools { display: grid; grid-template-columns: minmax(220px, 1fr) 145px 135px 165px; gap: 8px; margin-top: 18px; }
.asic-picker-tools select { min-width: 0; border: 1px solid rgba(13, 23, 32, .11); border-radius: 9px; background: #fff; color: var(--ink); padding: 0 11px; font-size: 10px; }
.asic-picker-result { display: flex; justify-content: space-between; align-items: center; padding: 13px 2px; color: #697b86; font-size: 11px; }
.asic-picker-result button { border: 0; background: transparent; color: #805e0c; cursor: pointer; font-size: 10px; font-weight: 800; }
.asic-picker-list { display: grid; flex: 1 1 0; gap: 8px; height: 0; min-height: 0; padding-right: 4px; overflow-y: auto; overscroll-behavior: contain; }
.asic-picker-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 13px; align-items: center; padding: 15px; border: 1px solid rgba(13, 23, 32, .1); border-radius: 12px; background: #fff; }
.asic-picker-row.dependency-blocked { border-color: rgba(201, 92, 74, .28); background: #fff8f5; }
.asic-picker-row span { color: #74858f; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.asic-picker-row h3 { margin: 5px 0 3px; color: var(--ink); font-size: 15px; letter-spacing: -.025em; }
.asic-picker-row small { color: #687a85; font: 10px "IBM Plex Mono", ui-monospace, monospace; }
.asic-picker-row p { margin: 7px 0 0; color: #8d4c3e; font-size: 10px; line-height: 1.45; }
.asic-picker-row > a { color: #657985; font-size: 10px; font-weight: 750; }
.asic-picker-row > button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--brand-dark); color: #fff; cursor: pointer; font-size: 10px; font-weight: 800; }

/* Dependency resolution */
.dependency-editor { position: fixed; z-index: 125; inset: 0; display: grid; justify-items: end; }
.dependency-editor-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(7, 14, 20, .68); backdrop-filter: blur(7px); }
.dependency-editor-panel { position: relative; z-index: 1; display: flex; width: min(860px, calc(100% - 40px)); height: 100dvh; max-height: 100dvh; flex-direction: column; overflow: hidden; padding: 26px; background: #f3f5f6; box-shadow: -32px 0 80px rgba(6, 14, 20, .28); animation: picker-enter 240ms ease both; }
.dependency-editor-head { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 18px; border-bottom: 1px solid rgba(13, 23, 32, .11); }
.dependency-editor-head h2 { margin: 6px 0 0; color: var(--ink); font-size: 32px; line-height: 1; letter-spacing: -.05em; }
.dependency-editor-head p { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.dependency-mode-wrap { margin-top: 14px; padding: 14px; border: 1px solid rgba(13, 23, 32, .1); border-radius: 11px; background: #fff; }
.dependency-mode-wrap label { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 12px; align-items: center; color: #526671; font-size: 11px; font-weight: 750; }
.dependency-mode-wrap select, .dependency-field select, .dependency-field input { min-width: 0; min-height: 42px; border: 1px solid rgba(13, 23, 32, .12); border-radius: 8px; background: #fff; color: var(--ink); padding: 0 10px; font-size: 11px; }
.dependency-editor-list { display: grid; flex: 1 1 0; gap: 12px; height: 0; min-height: 0; margin-top: 14px; padding-right: 4px; overflow-y: auto; overscroll-behavior: contain; }
.dependency-config-card { padding: 17px; border: 1px solid rgba(13, 23, 32, .11); border-radius: 13px; background: #fff; }
.dependency-config-head { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start; }
.dependency-config-head span { color: #86630f; font: 800 9px "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .07em; }
.dependency-config-head h3 { margin: 5px 0 0; color: var(--ink); font-size: 17px; }
.dependency-config-head p { margin: 7px 0 0; color: #657985; font-size: 10px; line-height: 1.55; }
.dependency-config-head a { color: #5c7280; font-size: 10px; font-weight: 800; }
.dependency-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.dependency-field { display: grid; gap: 6px; min-width: 0; }
.dependency-field > span { color: #687b86; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.dependency-field-wide { grid-column: span 2; }
.dependency-field-full { grid-column: 1 / -1; }
.dependency-user-note { grid-column: 1 / -1; margin: 2px 0 0; color: #8b6b20; font-size: 10px; line-height: 1.45; }
.dependency-editor-actions { display: grid; flex: 0 0 auto; grid-template-columns: minmax(0, 1fr) auto auto; gap: 9px; align-items: center; margin-top: 14px; padding-top: 15px; border-top: 1px solid rgba(13, 23, 32, .11); }
.dependency-editor-actions p { margin: 0; color: #687b86; font-size: 10px; line-height: 1.45; }
.dependency-summary { display: inline-flex; align-items: center; gap: 6px; margin-left: 7px; padding: 3px 6px; border-radius: 5px; background: rgba(255, 255, 255, .08); color: #d5bd80; font: 800 8px "IBM Plex Mono", ui-monospace, monospace; text-transform: uppercase; }

/* Builder rows */
.farm-model-picker { display: flex; width: 100%; min-width: 0; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 9px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer; text-align: left; }
.farm-model-picker > span { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.farm-model-picker small { color: #75858f; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.farm-model-picker b { overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.farm-model-picker em { overflow: hidden; color: #74848d; font: 9px "IBM Plex Mono", ui-monospace, monospace; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.farm-model-picker > i { color: #8a650e; font-size: 10px; font-style: normal; font-weight: 800; }
.farm-model-picker:hover { background: #edf2f4; }
.empty-farm { align-items: center; padding: 44px 20px; background: #f7f9f9; }
.empty-farm .button { width: max-content; margin-top: 12px; }
.empty-farm .button .button-plus { color: var(--accent); font-size: 20px; font-weight: 700; line-height: 1; }
.farm-check-compact { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 15px; padding: 13px; border: 1px solid rgba(245, 200, 66, .22); border-radius: 10px; background: rgba(245, 200, 66, .065); color: #eef4f6; }
.farm-check-compact > span { display: flex; flex-direction: column; }.farm-check-compact small { color: #8fa1ab; font-size: 9px; text-transform: uppercase; letter-spacing: .09em; }.farm-check-compact b { margin-top: 3px; font-size: 11px; }.farm-check-compact em { color: var(--accent); font-size: 10px; font-style: normal; }

/* Farm Check */
.farm-check { margin: 18px 0 110px; padding: 25px; border: 1px solid rgba(13, 23, 32, .1); border-radius: 18px; background: #fff; box-shadow: 0 18px 48px rgba(31, 49, 60, .08); scroll-margin-top: 100px; }
.farm-check-head { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 28px; align-items: end; }
.farm-check-head h2, .farm-check-head h3 { margin: 6px 0 0; color: var(--ink); font-size: 25px; letter-spacing: -.045em; }
.farm-check-head p { max-width: 760px; margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.farm-check-overall { padding: 16px; border: 1px solid rgba(13, 23, 32, .1); border-radius: 11px; background: #f3f6f7; }
.farm-check-overall span { display: block; color: #71818b; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }.farm-check-overall strong { display: block; margin-top: 5px; color: var(--ink); font-size: 14px; }
.farm-check-overall.status-FAIL { border-color: rgba(201, 92, 74, .3); background: #fff0ec; }.farm-check-overall.status-RISK { border-color: rgba(196, 123, 38, .3); background: #fff7e9; }.farm-check-overall.status-PASS { border-color: rgba(47, 158, 115, .28); background: #eef8f4; }
.farm-check-inputs { display: grid; grid-template-columns: 1fr 1fr auto; gap: 9px; margin-top: 22px; padding: 13px; border: 1px solid rgba(13, 23, 32, .09); border-radius: 12px; background: #f3f6f7; }
.farm-check-inputs > label { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; padding: 10px; border: 1px solid rgba(13, 23, 32, .09); border-radius: 9px; background: #fff; }
.farm-check-inputs label span { grid-column: 1 / -1; color: #6d7e88; font-size: 10px; }.farm-check-inputs input { min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; font-weight: 700; }.farm-check-inputs small { align-self: center; color: #87959d; font-size: 9px; }
.farm-check-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 11px; align-content: center; padding: 8px 12px; }
.farm-check-legend span { display: flex; align-items: center; gap: 6px; color: #667984; font: 10px "IBM Plex Mono", ui-monospace, monospace; }.farm-check-legend i { width: 7px; height: 7px; border-radius: 50%; background: #8999a3; }.farm-check-legend i.status-PASS { background: var(--green); }.farm-check-legend i.status-FAIL { background: var(--danger); }.farm-check-legend i.status-RISK { background: var(--warning); }
.farm-check-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.farm-check-kpi { display: grid; grid-template-columns: 1fr auto; gap: 4px; padding: 13px; border: 1px solid rgba(13, 23, 32, .09); border-radius: 10px; background: #f8fafa; }.farm-check-kpi small { color: #6e7f89; font: 10px "IBM Plex Mono", ui-monospace, monospace; }.farm-check-kpi strong { grid-row: span 2; align-self: center; color: var(--ink); font-size: 24px; }.farm-check-kpi span { color: #82919a; font-size: 10px; }.farm-check-kpi.status-FAIL strong { color: var(--danger); }.farm-check-kpi.status-RISK strong { color: var(--warning); }.farm-check-kpi.status-PASS strong { color: var(--green); }
.farm-check-list { display: grid; gap: 8px; margin-top: 13px; }
.farm-check-item { display: grid; grid-template-columns: 145px minmax(0, 1fr); border: 1px solid rgba(13, 23, 32, .09); border-radius: 11px; overflow: hidden; }
.check-status { display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 15px; background: #edf2f4; }.check-status span { width: max-content; padding: 4px 7px; border-radius: 5px; background: #7d8e98; color: #fff; font: 800 10px "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .06em; }.check-status small { color: #667983; font-size: 10px; }
.farm-check-item.status-PASS .check-status span { background: var(--green); }.farm-check-item.status-FAIL .check-status span { background: var(--danger); }.farm-check-item.status-RISK .check-status span { background: var(--warning); }.farm-check-item.status-FAIL { border-color: rgba(201, 92, 74, .22); }.farm-check-item.status-RISK { border-color: rgba(196, 123, 38, .22); }
.check-copy { padding: 15px 17px; }.check-copy h3, .check-copy h4 { margin: 0; color: var(--ink); font-size: 13px; letter-spacing: -.02em; }.check-copy p { margin: 7px 0 0; color: #5f727e; font-size: 10px; line-height: 1.55; }.check-copy ul { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0 0; padding: 0; list-style: none; }.check-copy li { padding: 5px 7px; border-radius: 6px; background: #edf2f4; color: #667984; font: 9px "IBM Plex Mono", ui-monospace, monospace; }.check-copy > div { display: flex; justify-content: space-between; gap: 14px; margin-top: 11px; color: #82919a; font-size: 10px; }.check-copy a { color: #586e7b; font-weight: 800; }.check-copy b { color: #89630d; }

.asic-evidence-panel { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; margin-top: 24px; padding: 20px; border: 1px solid rgba(13, 23, 32, .1); border-radius: 13px; background: #f2f5f6; }
.asic-evidence-panel h2 { margin: 6px 0 0; color: var(--ink); font-size: 20px; letter-spacing: -.035em; }.asic-evidence-panel p { margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }.asic-evidence-panel dl { margin: 0; }.asic-evidence-panel dl > div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(13, 23, 32, .09); }.asic-evidence-panel dl > div:last-child { border-bottom: 0; }.asic-evidence-panel dt { color: #74858f; font-size: 10px; }.asic-evidence-panel dd { margin: 0; color: var(--ink); font-size: 10px; }
.power-supply-panel { margin-top: 14px; padding: 16px 18px; border: 1px solid rgba(13, 23, 32, .11); border-left: 3px solid var(--accent); border-radius: 11px; background: #f8fafb; }
.power-supply-panel h2 { margin: 6px 0 0; color: var(--ink); font-size: 17px; letter-spacing: -.025em; }
.power-supply-panel p { margin: 7px 0 0; max-width: 780px; color: #60727d; font-size: 10px; line-height: 1.6; }

.tco-farm-check { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 10px 0 14px; padding: 18px 20px; border: 1px solid rgba(13, 23, 32, .1); border-left: 4px solid #8797a0; border-radius: 12px; background: #fff; }.tco-farm-check.status-FAIL { border-left-color: var(--danger); }.tco-farm-check.status-RISK { border-left-color: var(--warning); }.tco-farm-check.status-PASS { border-left-color: var(--green); }.tco-farm-check h2 { margin: 4px 0 0; color: var(--ink); font-size: 17px; }.tco-farm-check p { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.tco-farm-check[hidden] { display: none; }

@keyframes picker-enter { from { opacity: 0; transform: translateX(34px); } to { opacity: 1; transform: translateX(0); } }

@media (max-width: 1120px) {
  .catalog-commandbar { grid-template-columns: minmax(250px, 1fr) 150px 180px; }
  .catalog-workspace { grid-template-columns: 240px minmax(0, 1fr); }
  .miner-record { grid-template-columns: 112px minmax(160px, 1fr); grid-template-areas: "hardware identity" "metrics metrics" "evidence evidence" "actions actions"; }
}

@media (max-width: 980px) {
  .catalog-commandbar { grid-template-columns: minmax(220px, 1fr) auto 160px; }
  .catalog-commandbar .search-box { grid-column: 1; }
  .mobile-filter-toggle { grid-column: 2; }
  .catalog-tariff { grid-column: 3; }
  .catalog-sort { grid-column: 1 / 3; }
  .mobile-filter-toggle { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 15px; border: 1px solid rgba(13, 23, 32, .12); border-radius: 9px; background: #f2f5f6; color: var(--ink); font-size: 10px; font-weight: 800; }
  .catalog-workspace { grid-template-columns: 1fr; }
  .catalog-filter-panel { position: static; display: none; max-height: none; overflow: visible; overscroll-behavior-y: auto; scrollbar-gutter: auto; }
  .catalog-filter-panel.open { display: grid; }
  .catalog-view-cards { grid-template-columns: 1fr 1fr; }
  .asic-picker-panel { width: min(720px, calc(100% - 24px)); }
  .dependency-editor-panel { width: min(760px, calc(100% - 24px)); }
}

@media (max-width: 760px) {
  .catalog-commandbar { grid-template-columns: 1fr 1fr; }
  .catalog-commandbar .search-box { grid-column: 1 / -1; }
  .mobile-filter-toggle { grid-column: 1; }
  .catalog-tariff { grid-column: 2; }
  .catalog-sort { min-width: 0; }
  .catalog-sort { grid-column: 1; }
  .catalog-sort { grid-column: 1 / -1; }
  .catalog-summary { grid-template-columns: 1fr; gap: 6px; }
  .catalog-summary #catalogCompatibilityNote { justify-self: start; }
  .catalog-view-cards { grid-template-columns: 1fr; }
  .miner-record { grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .record-hardware { min-height: 104px; }
  .miner-record .miner-card-actions { grid-template-columns: 1fr 1fr; }
  .miner-record .miner-card-actions .compare-toggle { grid-column: 1 / -1; }
  .asic-picker-panel { width: 100%; padding: 18px 14px; }
  .dependency-editor-panel { width: 100%; padding: 18px 14px; }
  .dependency-fields { grid-template-columns: 1fr 1fr; }
  .dependency-field-full { grid-column: 1 / -1; }
  .dependency-editor-actions { grid-template-columns: 1fr 1fr; }
  .dependency-editor-actions p { grid-column: 1 / -1; }
  .asic-picker-tools { grid-template-columns: 1fr 1fr; }
  .asic-picker-tools .search-box { grid-column: 1 / -1; }
  .asic-picker-row { grid-template-columns: minmax(0, 1fr) auto; }
  .asic-picker-row > a { display: none; }
  .farm-check { padding: 18px; }
  .farm-check-head { grid-template-columns: 1fr; }
  .farm-check-inputs { grid-template-columns: 1fr; }
  .farm-check-summary { grid-template-columns: 1fr 1fr; }
  .farm-check-item { grid-template-columns: 1fr; }
  .check-status { flex-direction: row; justify-content: flex-start; align-items: center; }
  .asic-evidence-panel { grid-template-columns: 1fr; }
  .tco-farm-check { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 430px) {
  .catalog-commandbar { padding: 9px; }
  .catalog-commandbar .search-box,
  .catalog-commandbar .mobile-filter-toggle,
  .catalog-commandbar .catalog-tariff,
  .catalog-commandbar .catalog-sort { grid-column: 1 / -1; }
  .catalog-filter-panel { padding: 14px; }
  .miner-record { grid-template-columns: 1fr; grid-template-areas: "hardware" "identity" "metrics" "evidence" "actions"; }
  .record-hardware { min-height: 145px; }
  .record-identity h2 { font-size: 19px; }
  .record-metrics { grid-template-columns: 1fr 1fr; }
  .miner-record .miner-card-actions { grid-template-columns: 1fr; }
  .miner-record .miner-card-actions .compare-toggle { grid-column: auto; }
  .catalog-active-filters { flex-wrap: nowrap; padding-bottom: 4px; overflow-x: auto; }
  .catalog-active-filters button { flex: 0 0 auto; }
  .asic-picker-head h2 { font-size: 30px; }
  .asic-picker-tools { grid-template-columns: 1fr; }
  .asic-picker-tools .search-box { grid-column: 1; }
  .asic-picker-tools select { min-height: 42px; }
  .asic-picker-row { grid-template-columns: 1fr; align-items: start; }
  .asic-picker-row > button { width: 100%; }
  .dependency-editor-head h2 { font-size: 28px; }
  .dependency-mode-wrap label { grid-template-columns: 1fr; }
  .dependency-fields { grid-template-columns: 1fr; }
  .dependency-field-wide, .dependency-field-full { grid-column: 1; }
  .dependency-editor-actions { grid-template-columns: 1fr; }
  .dependency-editor-actions .button { width: 100%; }
  .farm-row .miner-select-wrap { min-width: 0; }
  .farm-model-picker { padding-inline: 5px; }
  .farm-model-picker > i { flex: 0 0 auto; }
  .farm-check-summary { grid-template-columns: 1fr 1fr; }
  .check-copy > div { flex-direction: column; }
  .asic-evidence-panel dl > div { grid-template-columns: 1fr; gap: 3px; }
}

/* Stage 2.6 — verified ASIC media pipeline */
.catalog-media,
.compare-media,
.asic-approved-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #0d1720;
}
.catalog-media img,
.compare-media img,
.asic-approved-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.record-hardware {
  position: relative;
  padding: 5px;
}
.catalog-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
}
.catalog-view-cards .catalog-media {
  width: min(100%, 270px);
}
.strip-media {
  position: relative;
  min-height: 0;
  margin-bottom: 13px;
  border: 1px solid #4d575f;
  background: #0d1720;
}
.compare-media {
  width: 100%;
  aspect-ratio: 4 / 3;
}
.strip-media > b,
.strip-media > span {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  background: rgba(13, 23, 32, .88);
  color: var(--accent);
  font: 800 7px "IBM Plex Mono", ui-monospace, monospace;
}
.strip-media > b { right: 5px; bottom: 4px; min-width: 22px; height: 18px; }
.strip-media > span { left: 5px; top: 5px; width: 20px; height: 20px; border: 1px solid rgba(245, 200, 66, .35); border-radius: 50%; }
.asic-approved-media {
  display: grid;
  min-width: 0;
  min-height: 330px;
  place-items: center;
  background: radial-gradient(circle at 50% 45%, rgba(245, 200, 66, .12), transparent 43%), var(--brand-dark);
}
.asic-approved-media img {
  min-height: 330px;
  aspect-ratio: 4 / 3;
}
.asic-approved-media figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  padding: 7px 9px;
  border: 1px solid rgba(218, 231, 237, .12);
  background: rgba(13, 23, 32, .88);
  color: #93a4ae;
  font: 650 8px/1.4 "IBM Plex Mono", ui-monospace, monospace;
}
.asic-approved-media figcaption b { color: var(--accent); }

@media (max-width: 760px) {
  .asic-approved-media,
  .asic-approved-media img { min-height: 260px; }
}

.saved-actions [data-delete] { min-width: 42px; min-height: 42px; }

/* Stage 2.9 — Farm Builder & Farm Check */
.farm-row .miner-select-wrap::after { display: none; }
.row-mode-control { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: center; margin: 4px 5px 0; }
.row-mode-control > span { color: #6f818b; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.row-mode-control select { min-width: 0; min-height: 34px; padding: 0 24px 0 8px; border: 1px solid rgba(13, 23, 32, .12); border-radius: 7px; background: #fff; color: var(--ink); font-size: 9px; }
.row-duplicate { min-height: 32px; margin: 5px 5px 0; padding: 0; border: 0; background: transparent; color: #6c7e88; cursor: pointer; font-size: 9px; font-weight: 750; }
.row-duplicate:hover, .row-duplicate:focus-visible { color: #79590c; text-decoration: underline; text-underline-offset: 3px; }
.farm-check-overall.status-UNKNOWN { border-color: rgba(94, 120, 136, .28); background: #edf3f6; }
.farm-check-kpi.status-UNKNOWN strong { color: #637e8d; }
.farm-check-item.status-UNKNOWN { border-color: rgba(94, 120, 136, .22); }
.farm-check-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 12px; padding: 9px 10px; border: 1px solid rgba(13, 23, 32, .09); border-radius: 10px; background: #f3f6f7; }
.farm-check-toolbar p { margin: 0; color: #60747f; font: 700 9px/1.45 "IBM Plex Mono", ui-monospace, monospace; }
.farm-check-toolbar > div { display: flex; gap: 5px; }
.farm-check-toolbar button { min-height: 36px; padding: 0 10px; border: 1px solid rgba(13, 23, 32, .12); border-radius: 7px; background: #fff; color: #60747f; cursor: pointer; font-size: 9px; font-weight: 800; }
.farm-check-toolbar button[aria-pressed="true"] { border-color: var(--brand-dark); background: var(--brand-dark); color: #fff; }
.check-action-button { min-height: 36px; padding: 0 10px; border: 1px solid rgba(13, 23, 32, .12); border-radius: 7px; background: #fff6d8; color: #72520b; cursor: pointer; font-size: 9px; font-weight: 850; }
.check-action-button:hover, .check-action-button:focus-visible { border-color: #9b7417; }
.farm-check-empty { padding: 28px; border: 1px dashed rgba(13, 23, 32, .16); border-radius: 11px; color: #6e808a; text-align: center; font-size: 11px; }

@media (max-width: 760px) {
  .row-mode-control { grid-template-columns: 1fr; }
  .farm-check-toolbar { align-items: stretch; flex-direction: column; }
  .farm-check-toolbar > div { display: grid; grid-template-columns: 1fr 1fr; }
  .farm-check-toolbar button { min-height: 42px; }
}

@media (max-width: 430px) {
  .row-mode-control { margin-inline: 0; }
  .row-duplicate { min-height: 38px; margin-inline: 0; text-align: left; }
  .farm-check-toolbar > div { grid-template-columns: 1fr; }
}

/* Stage 3.1 — refined homepage composition */
body[data-page="home"] {
  background:
    radial-gradient(circle at 82% 7%, rgba(245, 200, 66, .105), transparent 26rem),
    linear-gradient(180deg, #fafbfb 0, #f3f6f7 56rem, #edf1f3 100%);
}

body[data-page="home"] .hardware-hero {
  grid-template-columns: minmax(0, .88fr) minmax(560px, 1.12fr);
  gap: clamp(38px, 4vw, 70px);
  min-height: 720px;
  padding-block: 94px 66px;
}
body[data-page="home"] .hardware-hero::before {
  content: "DUCKMINE / ENGINEERING INTELLIGENCE";
  top: 56px;
  color: rgba(13, 23, 32, .12);
}
body[data-page="home"] .hardware-hero::after { bottom: 30px; }
body[data-page="home"] .hardware-hero .home-copy {
  align-self: center;
  padding: 0;
}
body[data-page="home"] .hardware-hero .home-copy::before {
  top: 0;
  bottom: 0;
  left: -22px;
  opacity: .55;
}
body[data-page="home"] .hardware-hero .home-copy h1 {
  max-width: 680px;
  margin-top: 24px;
  font-size: clamp(54px, 5vw, 74px);
  font-weight: 720;
  line-height: .98;
  letter-spacing: -.06em;
}
body[data-page="home"] .hardware-hero .home-copy h1 span,
body[data-page="home"] .hardware-hero .home-copy h1 em { display: block; }
body[data-page="home"] .hardware-hero .home-copy h1 em {
  width: auto;
  margin-top: 8px;
}
body[data-page="home"] .hardware-hero .home-copy h1 em::after { display: none; }
body[data-page="home"] .hardware-hero .home-copy h1 b {
  position: relative;
  z-index: 0;
  font-weight: inherit;
  white-space: nowrap;
}
body[data-page="home"] .hardware-hero .home-copy h1 b::after {
  content: "";
  position: absolute;
  right: .02em;
  bottom: .02em;
  left: .02em;
  z-index: -1;
  height: .12em;
  border-radius: 999px;
  background: var(--accent);
}
body[data-page="home"] .hardware-hero .home-copy > p {
  max-width: 610px;
  margin-top: 26px;
  color: #576a75;
  font-size: 16px;
  line-height: 1.7;
}
body[data-page="home"] .hardware-hero .page-actions { margin-top: 30px; }
body[data-page="home"] .hardware-hero .page-actions .button {
  min-height: 50px;
  padding-inline: 22px;
}
body[data-page="home"] .home-demo-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 15px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #60737e;
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
}
body[data-page="home"] .home-demo-link:hover { color: var(--ink); }
body[data-page="home"] .home-demo-link span {
  padding: 4px 7px;
  border: 1px solid rgba(132, 97, 14, .24);
  border-radius: 999px;
  background: rgba(245, 200, 66, .14);
  color: #74540b;
  font-size: 7px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body[data-page="home"] .hero-proof {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 640px;
  margin-top: 31px;
  border: 1px solid rgba(13, 23, 32, .1);
  border-radius: 12px;
  background: rgba(255, 255, 255, .78);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(28, 45, 57, .055);
}
body[data-page="home"] .hero-proof span {
  min-height: 67px;
  padding: 12px 15px;
  border-right: 1px solid rgba(13, 23, 32, .085);
  background: transparent;
  color: #657782;
  font-size: 8px;
  letter-spacing: .035em;
}
body[data-page="home"] .hero-proof span:last-child { border-right: 0; }
body[data-page="home"] .hero-proof b {
  color: var(--ink);
  font: 750 18px/1 "IBM Plex Mono", ui-monospace, monospace;
}

body[data-page="home"] .hardware-stage {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 560px;
  padding: 26px;
  border: 1px solid rgba(216, 229, 236, .14);
  border-radius: 22px;
  background:
    radial-gradient(circle at 52% 38%, rgba(245, 200, 66, .13), transparent 39%),
    linear-gradient(rgba(188, 205, 214, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(188, 205, 214, .055) 1px, transparent 1px),
    var(--brand-dark);
  background-size: auto, 32px 32px, 32px 32px, auto;
  box-shadow: 0 34px 70px rgba(15, 28, 38, .18);
  overflow: hidden;
}
body[data-page="home"] .hardware-stage::before,
body[data-page="home"] .hardware-stage::after { display: none; }
body[data-page="home"] .stage-index {
  position: static;
  grid-template-columns: auto minmax(42px, 82px) auto;
  width: fit-content;
  color: #82949f;
}
body[data-page="home"] .stage-product {
  position: relative;
  min-height: 322px;
  overflow: hidden;
}
body[data-page="home"] .hardware-product {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(112%, 720px);
  height: auto;
  max-height: 390px;
  object-fit: contain;
  filter: saturate(.82) contrast(1.04) drop-shadow(0 30px 28px rgba(0, 0, 0, .32));
  transform: translate(-50%, -48%);
}
body[data-page="home"] .stage-caption {
  position: absolute;
  right: 0;
  bottom: 10px;
  left: 0;
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(216, 229, 236, .09);
  color: #748691;
  font-size: 7px;
  letter-spacing: .045em;
}
body[data-page="home"] .stage-caption span { color: #b3923c; }
body[data-page="home"] .stage-metrics {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 8px;
  margin-top: 18px;
}
body[data-page="home"] .stage-metric {
  position: static;
  min-width: 0;
  min-height: 105px;
  padding: 15px;
  border: 1px solid rgba(218, 231, 237, .13);
  border-radius: 10px;
  background: rgba(22, 35, 46, .9);
  box-shadow: none;
  backdrop-filter: blur(12px);
}
body[data-page="home"] .stage-metric::before {
  top: -1px;
  left: 14px;
  width: 30px;
}
body[data-page="home"] .stage-metric strong {
  margin-top: 9px;
  font: 720 19px/1.15 "IBM Plex Mono", ui-monospace, monospace;
}
body[data-page="home"] .stage-metric em { margin-top: 8px; }
body[data-page="home"] .stage-metric-cost i { display: none; }
body[data-page="home"] .stage-metric-status {
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  gap: 5px 9px;
}
body[data-page="home"] .stage-metric-status b { grid-row: 1 / 3; }
body[data-page="home"] .stage-metric-status span { color: #dfe5e8; }
body[data-page="home"] .stage-metric-status small { color: #81919a; }

body[data-page="home"] .brand-manifesto {
  grid-template-columns: 92px minmax(0, 1fr) minmax(235px, .72fr);
  gap: 30px;
  min-height: 220px;
  margin-top: 22px;
  padding: 32px 38px;
  border-radius: 18px;
  box-shadow: 0 22px 50px rgba(15, 28, 38, .11);
}
body[data-page="home"] .manifesto-mark {
  color: var(--accent);
  font: 700 42px/1 "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: -.08em;
  opacity: .9;
  transform: none;
}
body[data-page="home"] .brand-manifesto > p {
  font-size: clamp(24px, 2.5vw, 35px);
  line-height: 1.2;
}
body[data-page="home"] .brand-manifesto > p small {
  display: block;
  margin-bottom: 13px;
  color: #7f929d;
  font: 700 8px/1.2 "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: .13em;
  text-transform: uppercase;
}
body[data-page="home"] .manifesto-meta {
  gap: 14px;
  color: #91a1aa;
  line-height: 1.5;
}
body[data-page="home"] .capabilities { padding-block: 100px 112px; }
body[data-page="home"] .capabilities .section-intro { margin-bottom: 38px; }
body[data-page="home"] .capabilities .section-intro h2 {
  max-width: 760px;
  font-size: clamp(40px, 4.6vw, 60px);
  line-height: 1.02;
}
body[data-page="home"] .capability-layout { gap: 14px; }
body[data-page="home"] .capability-layout > article {
  border-radius: 15px;
  box-shadow: 0 14px 36px rgba(31, 49, 60, .065);
}
body[data-page="home"] .capability-layout h3 { font-size: 23px; }
body[data-page="home"] .capability-layout p { font-size: 11px; }
body[data-page="home"] .capabilities .principles { margin-top: 14px; }

@media (max-width: 1120px) {
  body[data-page="home"] .hardware-hero {
    grid-template-columns: minmax(0, .9fr) minmax(500px, 1.1fr);
    gap: 28px;
  }
  body[data-page="home"] .hardware-hero .home-copy h1 { font-size: clamp(50px, 5.6vw, 66px); }
}

@media (max-width: 980px) {
  body[data-page="home"] .hardware-hero {
    grid-template-columns: 1fr;
    gap: 38px;
    min-height: 0;
    padding-top: 86px;
  }
  body[data-page="home"] .hardware-hero .home-copy { max-width: 760px; }
  body[data-page="home"] .hardware-stage { min-height: 540px; }
  body[data-page="home"] .brand-manifesto { grid-template-columns: 72px 1fr; }
  body[data-page="home"] .manifesto-meta { grid-column: 2; }
}

@media (max-width: 760px) {
  body[data-page="home"] .hardware-hero { gap: 30px; padding-block: 76px 46px; }
  body[data-page="home"] .hardware-hero .home-copy::before,
  body[data-page="home"] .hardware-hero::before { display: none; }
  body[data-page="home"] .hardware-hero .home-copy h1 {
    max-width: 540px;
    font-size: clamp(42px, 11.8vw, 58px);
    line-height: 1;
  }
  body[data-page="home"] .hardware-hero .home-copy h1 b { white-space: normal; }
  body[data-page="home"] .hero-proof span { min-height: 62px; padding-inline: 11px; }
  body[data-page="home"] .hardware-stage { min-height: 0; padding: 20px; }
  body[data-page="home"] .stage-product { min-height: 295px; }
  body[data-page="home"] .hardware-product { width: min(128%, 650px); }
  body[data-page="home"] .stage-metrics { grid-template-columns: 1fr 1fr; }
  body[data-page="home"] .stage-metric-status { grid-column: 1 / -1; min-height: 82px; }
  body[data-page="home"] .brand-manifesto {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 32px 25px;
  }
  body[data-page="home"] .manifesto-mark { font-size: 30px; }
  body[data-page="home"] .manifesto-meta { grid-column: 1; padding: 20px 0 0; border-top: 1px solid rgba(216, 229, 236, .14); border-left: 0; }
}

@media (max-width: 430px) {
  body[data-page="home"] .hardware-hero { padding-top: 70px; }
  body[data-page="home"] .hardware-hero .home-copy h1 { font-size: clamp(39px, 11.5vw, 47px); }
  body[data-page="home"] .hardware-hero .home-copy > p { font-size: 14px; }
  body[data-page="home"] .hero-proof { grid-template-columns: 1fr; }
  body[data-page="home"] .hero-proof span {
    min-height: 54px;
    border-right: 0;
    border-bottom: 1px solid rgba(13, 23, 32, .085);
  }
  body[data-page="home"] .hero-proof span:last-child { border-bottom: 0; }
  body[data-page="home"] .stage-product { min-height: 230px; }
  body[data-page="home"] .stage-index { grid-template-columns: auto 34px auto; font-size: 7px; }
  body[data-page="home"] .stage-caption { display: none; }
  body[data-page="home"] .stage-metrics { grid-template-columns: 1fr; }
  body[data-page="home"] .stage-metric,
  body[data-page="home"] .stage-metric-status { grid-column: auto; min-height: 82px; }
  body[data-page="home"] .brand-manifesto > p { font-size: 27px; }
  body[data-page="home"] .capabilities { padding-block: 78px 90px; }
  body[data-page="home"] .capabilities .section-intro h2 { font-size: 37px; }
}

/* Keep the simplified catalog layout above legacy view rules. */
body[data-page="catalog"] .miner-record {
  grid-template-columns: 132px minmax(180px, .9fr) minmax(280px, 1.25fr);
  grid-template-areas: "hardware identity metrics" "profit profit actions" "evidence evidence evidence";
}

/* Stage 2.13 — explicit ASIC → algorithm → coin relationships */
.catalog-filter-panel > label > small {
  color: #7b8b94;
  font-size: 9px;
  line-height: 1.4;
}
.coin-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}
.coin-links > button,
.coin-links > span,
.coin-links > i {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid rgba(151, 108, 9, .18);
  border-radius: 999px;
  background: #fff8df;
  color: #71530c;
  font: 800 9px/1 "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.coin-links > button { cursor: pointer; }
.coin-links > button:hover,
.coin-links > button:focus-visible { border-color: #b78819; background: #f8e9ae; outline: 0; }
.asic-picker-row .coin-links { margin-top: 8px; }
.asic-picker-row .coin-links i { font-style: normal; }
.compare-coin-links { margin-top: 0; }
.asic-coin-panel {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(390px, 1.28fr);
  gap: 28px;
  align-items: start;
  margin: 22px 0;
  padding: 24px;
  border: 1px solid rgba(13, 23, 32, .1);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  background: #f4f7f8;
}
.asic-coin-panel h2 { margin: 5px 0 0; color: var(--ink); font-size: 22px; letter-spacing: -.035em; }
.asic-coin-panel p { max-width: 620px; margin: 8px 0 0; color: #607580; font-size: 10px; line-height: 1.55; }
.asic-coin-panel .coin-links { justify-content: flex-end; margin-top: 0; }
.asic-coin-panel .coin-links > span { min-height: 30px; padding-inline: 11px; background: #fff; font-size: 10px; }
.asic-coin-market { min-width: 0; }
.asic-coin-panel .asic-coin-rates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.asic-coin-rate {
  display: grid;
  min-width: 0;
  min-height: 76px;
  align-content: center;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(13, 23, 32, .1);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(31, 49, 60, .04);
}
.asic-coin-rate strong { color: #6e520e; font: 850 9px/1 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .08em; }
.asic-coin-rate > span { overflow: hidden; color: var(--ink); font: 800 13px/1.15 "IBM Plex Mono", ui-monospace, monospace; text-overflow: ellipsis; white-space: nowrap; }
.asic-coin-rate small { color: #71838d; font: 650 7px/1.25 "IBM Plex Mono", ui-monospace, monospace; }
.asic-coin-rate small.is-positive { color: #2c7a61; }
.asic-coin-rate small.is-negative { color: #a25245; }
.asic-coin-rate.is-loading > span { color: #758791; font-size: 9px; }
.asic-coin-rate.is-unavailable { background: #f8fafb; box-shadow: none; }
.asic-coin-rate.is-unavailable > span { color: #687a84; font-size: 9px; white-space: normal; }
.asic-coin-market-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 12px; margin-top: 10px !important; color: #6e808a !important; font: 650 8px/1.45 "IBM Plex Mono", ui-monospace, monospace !important; }
.asic-coin-market-meta a { color: #77580e; font-weight: 800; text-decoration: none; }
.asic-coin-market-meta a:hover, .asic-coin-market-meta a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .asic-picker-tools { grid-template-columns: 1fr 1fr 1fr; }
  .asic-picker-tools .search-box { grid-column: 1 / -1; }
  .asic-coin-panel { grid-template-columns: 1fr; }
  .asic-coin-panel .coin-links { justify-content: flex-start; }
  .asic-coin-panel .asic-coin-rates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 430px) {
  .asic-picker-tools { grid-template-columns: 1fr; }
  .asic-picker-tools .search-box { grid-column: 1; }
  .asic-coin-panel { padding: 17px; }
  .asic-coin-panel .asic-coin-rates { grid-template-columns: 1fr; }
  .asic-coin-rate { min-height: 68px; }
}

/* Stage 2.14 — live coin market references */
body[data-page="catalog"] .catalog-summary {
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  column-gap: 22px;
  row-gap: 6px;
}
body[data-page="catalog"] .catalog-summary .coin-market-status {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: start;
}
body[data-page="catalog"] .catalog-summary .catalog-density {
  grid-column: 3;
  grid-row: 1;
}
.coin-market-status {
  color: #657984;
  font: 700 8px/1.4 "IBM Plex Mono", ui-monospace, monospace;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.coin-market-status:hover,
.coin-market-status:focus-visible { color: #77580e; text-decoration: underline; text-underline-offset: 3px; }
.catalog-coin-links > button {
  min-height: 38px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  padding: 5px 8px;
  border-radius: 8px;
}
.catalog-coin-links > button > span {
  color: #71530c;
  font: 850 9px/1 "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: .035em;
}
.catalog-coin-links > button > small {
  color: #63747d;
  font: 700 7px/1.1 "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0;
  text-transform: none;
}
.density-compact .catalog-coin-links > button { min-height: 23px; flex-direction: row; align-items: center; }
.density-compact .catalog-coin-links > button > small { display: none; }
@media (max-width: 560px) {
  body[data-page="catalog"] .catalog-summary { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
  body[data-page="catalog"] .catalog-summary .coin-market-status,
  body[data-page="catalog"] .catalog-summary .catalog-density { grid-column: 1; grid-row: auto; justify-self: start; }
}

/* Stage 2.15 — consistent compact page starts */
body:not([data-page="home"]) .page-hero.compact {
  min-height: 0;
  padding-top: 44px;
}
body[data-page="home"] .hardware-hero {
  min-height: 0;
  align-items: start;
  padding-top: 44px;
}
body[data-page="home"] .hardware-hero .home-copy { align-self: start; }
@media (max-width: 760px) {
  body:not([data-page="home"]) .page-hero.compact,
  body[data-page="home"] .hardware-hero { padding-top: 28px; }
}

/* Stage 2.16 — compact ASIC records and product presentation */
body[data-page="catalog"] .miner-record {
  grid-template-columns: 110px minmax(180px, 1.05fr) minmax(260px, 1.45fr);
  gap: 12px 16px;
  padding: 14px;
}
body[data-page="catalog"] .record-hardware { min-height: 96px; }
body[data-page="catalog"] .record-identity h2 {
  margin-top: 9px;
  font-size: 18px;
}
body[data-page="catalog"] .record-identity .data-status { margin-top: 8px; }
body[data-page="catalog"] .record-metrics span { padding: 8px 10px; }
body[data-page="catalog"] .catalog-view-cards .miner-record {
  gap: 12px;
  padding: 15px;
}
body[data-page="catalog"] .catalog-view-cards .record-hardware { min-height: 152px; }
body[data-page="catalog"] .catalog-view-cards .catalog-media { width: min(100%, 220px); }

body[data-page="asic"] .asic-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  align-items: start;
}
body[data-page="asic"] .asic-spec-card { padding: 22px; }
body[data-page="asic"] .asic-identity {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding-bottom: 18px;
}
body[data-page="asic"] .asic-identity h1 {
  margin: 13px 0 0;
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1;
}
body[data-page="asic"] .asic-identity .data-status { margin-top: 10px; }
body[data-page="asic"] .asic-showcase {
  grid-template-columns: minmax(0, 1.5fr) minmax(190px, .5fr);
  min-height: 0;
  margin-top: 18px;
}
body[data-page="asic"] .asic-approved-media {
  min-height: 0;
  height: 272px;
}
body[data-page="asic"] .asic-approved-media img {
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
}
body[data-page="asic"] .asic-approved-media figcaption {
  left: 12px;
  right: 12px;
  bottom: 10px;
  padding: 6px 8px;
}
body[data-page="asic"] .asic-showcase-data { padding: 18px; }
body[data-page="asic"] .asic-showcase-data > div { padding: 12px 0; }
body[data-page="asic"] .asic-showcase-data strong { font-size: 16px; }
body[data-page="asic"] .spec-list { margin-top: 18px; }
body[data-page="asic"] .spec-list > div { padding: 11px 10px; }
body[data-page="asic"] .spec-list dd { margin-top: 5px; }
body[data-page="asic"] .asic-evidence-panel {
  gap: 18px;
  margin-top: 18px;
  padding: 17px;
}
body[data-page="asic"] .asic-evidence-panel dl > div { padding: 7px 0; }
body[data-page="asic"] .source-panel {
  margin-top: 18px;
  padding: 14px;
}
body[data-page="asic"] .asic-actions-card { padding: 19px; }

@media (max-width: 1120px) {
  body[data-page="catalog"] .miner-record {
    grid-template-columns: 100px minmax(160px, 1fr);
  }
}

@media (max-width: 980px) {
  body[data-page="asic"] .asic-layout { grid-template-columns: 1fr; }
  body[data-page="asic"] .asic-showcase {
    grid-template-columns: minmax(0, 1.55fr) minmax(185px, .45fr);
  }
}

@media (max-width: 760px) {
  body[data-page="catalog"] .miner-record {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px 12px;
    padding: 12px;
  }
  body[data-page="catalog"] .record-hardware { min-height: 82px; }
  body[data-page="catalog"] .catalog-view-cards .record-hardware { min-height: 138px; }
  body[data-page="catalog"] .catalog-view-cards .catalog-media { width: min(100%, 196px); }
  body[data-page="asic"] .asic-spec-card { padding: 16px; }
  body[data-page="asic"] .asic-identity {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 15px;
  }
  body[data-page="asic"] .asic-identity h1 {
    margin-top: 10px;
    font-size: clamp(28px, 8vw, 38px);
  }
  body[data-page="asic"] .asic-showcase {
    grid-template-columns: 1fr;
    margin-top: 14px;
  }
  body[data-page="asic"] .asic-approved-media { height: 220px; }
  body[data-page="asic"] .asic-showcase-data {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0;
  }
  body[data-page="asic"] .asic-showcase-data > span {
    grid-column: 1 / -1;
    margin: 0;
    padding: 11px 12px;
    border-bottom: 1px solid rgba(214, 228, 235, .12);
  }
  body[data-page="asic"] .asic-showcase-data > div {
    min-width: 0;
    padding: 11px 10px;
    border-right: 1px solid rgba(214, 228, 235, .12);
    border-bottom: 0;
  }
  body[data-page="asic"] .asic-showcase-data > div:last-child { border-right: 0; }
  body[data-page="asic"] .asic-showcase-data small { font-size: 7px; }
  body[data-page="asic"] .asic-showcase-data strong {
    font-size: 13px;
    white-space: nowrap;
  }
}

@media (max-width: 430px) {
  body[data-page="catalog"] .miner-record {
    grid-template-columns: 1fr;
    grid-template-areas: "hardware" "identity" "metrics" "evidence" "actions";
  }
  body[data-page="catalog"] .record-hardware,
  body[data-page="catalog"] .catalog-view-cards .record-hardware { min-height: 132px; }
  body[data-page="asic"] .asic-identity { grid-template-columns: 1fr; }
  body[data-page="asic"] .asic-approved-media { height: 195px; }
  body[data-page="asic"] .asic-approved-media figcaption {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body[data-page="asic"] .asic-showcase-data > div { padding-inline: 7px; }
  body[data-page="asic"] .asic-showcase-data strong { font-size: 12px; }
  body[data-page="asic"] .spec-list { grid-template-columns: 1fr; }
}

body[data-page="catalog"] .catalog-view-cards .miner-record {
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "hardware hardware" "identity identity" "metrics metrics" "profit profit" "evidence evidence" "actions actions";
}
@media (max-width: 1050px) {
  body[data-page="catalog"] .miner-record {
    grid-template-columns: 112px minmax(160px, 1fr);
    grid-template-areas: "hardware identity" "metrics metrics" "profit profit" "evidence evidence" "actions actions";
  }
}
@media (max-width: 560px) {
  body[data-page="catalog"] .miner-record {
    grid-template-columns: 1fr;
    grid-template-areas: "hardware" "identity" "metrics" "profit" "evidence" "actions";
  }
}

/* Stage 3.3 — simple ASIC economics calculator */
body[data-page="calculator"] .settings-grid select {
  width: 100%;
  border: 1px solid rgba(13, 23, 32, .13);
  background: #fff;
  color: var(--ink);
}
body[data-page="calculator"] .calculator-explanation {
  margin: -7px 2px 23px;
  color: #667984;
  font-size: 10px;
  line-height: 1.6;
}
body[data-page="calculator"] .simple-calculator-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
body[data-page="calculator"] .calculator-result-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
body[data-page="calculator"] .algorithm-income {
  display: grid;
  gap: 1px;
  margin-top: 12px;
  border: 1px solid rgba(214, 228, 235, .12);
  border-radius: 9px;
  overflow: hidden;
  background: rgba(214, 228, 235, .12);
}
body[data-page="calculator"] .algorithm-income:empty { display: none; }
body[data-page="calculator"] .algorithm-income > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 10px 11px;
  background: #121a20;
}
body[data-page="calculator"] .algorithm-income span {
  display: grid;
  min-width: 0;
  gap: 2px;
}
body[data-page="calculator"] .algorithm-income b {
  color: #edf3f5;
  font-size: 10px;
}
body[data-page="calculator"] .algorithm-income small {
  overflow: hidden;
  color: #748791;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body[data-page="calculator"] .algorithm-income strong {
  flex: 0 0 auto;
  color: var(--accent);
  font: 700 11px/1.2 "IBM Plex Mono", ui-monospace, monospace;
}
body[data-page="calculator"] .profitability-result > p {
  margin-top: 11px;
}

@media (max-width: 560px) {
  body[data-page="calculator"] .simple-calculator-actions,
  body[data-page="calculator"] .calculator-result-grid {
    grid-template-columns: 1fr;
  }
  body[data-page="calculator"] .algorithm-income > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

/* Stage 3.4 — calculator layout repair and visual hierarchy */
body[data-page="calculator"] .calculator-hero {
  padding-block: 62px 27px;
}
body[data-page="calculator"] .calculator-hero::after { bottom: 10px; }
body[data-page="calculator"] .calculator-hero h1 {
  margin-top: 15px;
  font-size: clamp(46px, 5vw, 68px);
}
body[data-page="calculator"] .calculator-hero > p {
  max-width: 700px;
  margin-top: 17px;
  font-size: 14px;
}
body[data-page="calculator"] .content-section { padding-bottom: 72px; }
body[data-page="calculator"] .simple-calculator-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 410px);
  gap: 20px;
  align-items: start;
}
body[data-page="calculator"] .calculator-panel {
  padding: 28px;
  border-radius: 18px;
  overflow: visible;
}
body[data-page="calculator"] .calc-toolbar {
  align-items: flex-start;
  gap: 18px;
}
body[data-page="calculator"] .calc-toolbar h2 {
  margin: 6px 0 0;
  font-size: 24px;
}
body[data-page="calculator"] .toolbar-actions {
  flex: 0 0 auto;
  gap: 7px;
}
body[data-page="calculator"] .toolbar-actions .icon-button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(13, 23, 32, .12);
  border-radius: 8px;
  background: #f2f5f6;
  color: #526773;
  font-size: 10px;
  font-weight: 750;
}
body[data-page="calculator"] .toolbar-actions .icon-button:hover {
  border-color: rgba(13, 23, 32, .24);
  background: #e8edef;
  color: var(--ink);
}
body[data-page="calculator"] .workspace-subhead {
  margin-top: 28px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(13, 23, 32, .09);
}
body[data-page="calculator"] .workspace-subhead b { font-size: 13px; }
body[data-page="calculator"] .workspace-subhead span { font-size: 9px; }
body[data-page="calculator"] .simple-settings-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
  padding: 9px;
  border-radius: 13px;
}
body[data-page="calculator"] .setting-control {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 7px;
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(13, 23, 32, .085);
  border-radius: 9px;
  background: #fff;
}
body[data-page="calculator"] .setting-control > span {
  overflow: hidden;
  color: #526873;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body[data-page="calculator"] .setting-control input,
body[data-page="calculator"] .setting-control select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid rgba(13, 23, 32, .14);
  border-radius: 8px;
  background: #f7f9fa;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  outline: none;
}
body[data-page="calculator"] .setting-control input:focus,
body[data-page="calculator"] .setting-control select:focus {
  border-color: #c69411;
  box-shadow: 0 0 0 3px rgba(245, 200, 66, .17);
}
body[data-page="calculator"] .setting-control > small {
  overflow: hidden;
  color: #82919a;
  font-size: 8px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body[data-page="calculator"] .market-status {
  margin-top: 11px;
  padding: 11px 13px;
  border-color: rgba(189, 144, 25, .2);
  background: #fff9e8;
  color: #566a73;
  font-size: 9px;
}
body[data-page="calculator"] .calculator-explanation {
  margin: 6px 2px 21px;
  font-size: 9px;
}
body[data-page="calculator"] .calculator-quick-summary {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 24px;
  border: 1px solid rgba(214, 228, 235, .12);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(214, 228, 235, .12);
}
body[data-page="calculator"] .calculator-quick-summary > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 13px;
  background: var(--brand-dark);
}
body[data-page="calculator"] .calculator-quick-summary small {
  color: #8799a3;
  font-size: 8px;
}
body[data-page="calculator"] .calculator-quick-summary strong {
  overflow: hidden;
  color: #f4f7f8;
  font: 720 13px/1.3 "IBM Plex Mono", ui-monospace, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body[data-page="calculator"] .calculator-quick-summary > div:first-child strong { color: var(--accent); }
body[data-page="calculator"] .farm-table-head,
body[data-page="calculator"] .farm-row {
  grid-template-columns: minmax(250px, 1fr) 92px 128px 92px 32px;
  gap: 10px;
}
body[data-page="calculator"] .farm-table-head {
  display: grid;
  align-items: end;
  margin-top: 13px;
  padding: 0 13px 7px;
  color: #73858f;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.3;
  text-transform: uppercase;
}
body[data-page="calculator"] .farm-row {
  align-items: center;
  min-width: 0;
  padding: 12px;
  border-radius: 11px;
  background: #f7f9fa;
}
body[data-page="calculator"] .farm-model-picker { padding: 5px 7px; }
body[data-page="calculator"] .farm-model-picker b { font-size: 12px; }
body[data-page="calculator"] .farm-model-picker em { font-size: 8px; }
body[data-page="calculator"] .farm-model-picker > i { flex: 0 0 auto; }
body[data-page="calculator"] .farm-row input {
  min-width: 0;
  min-height: 42px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
}
body[data-page="calculator"] .farm-row input::placeholder { color: #a1adb4; }
body[data-page="calculator"] .row-power-field { text-align: right; }
body[data-page="calculator"] .row-power { color: #b98706; font-size: 11px; }
body[data-page="calculator"] .remove-row {
  color: #82919a;
  font-size: 17px;
}
body[data-page="calculator"] .add-row {
  min-height: 50px;
  margin-top: 10px;
  padding-inline: 15px;
  border-radius: 10px;
  background: #f2f5f6;
  color: #435965;
}
body[data-page="calculator"] .simple-calculator-actions {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: start;
  margin-top: 22px;
}
body[data-page="calculator"] .simple-calculator-actions .button { width: auto; }
body[data-page="calculator"] .results-panel {
  position: sticky;
  top: 96px;
  border-radius: 18px;
}
body[data-page="calculator"] .power-core { min-height: 225px; }
body[data-page="calculator"] .main-result { margin-top: 22px; padding-bottom: 20px; }

@media (max-width: 1200px) {
  body[data-page="calculator"] .simple-settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-page="calculator"] .farm-table-head,
  body[data-page="calculator"] .farm-row {
    grid-template-columns: minmax(220px, 1fr) 78px 112px 82px 30px;
    gap: 8px;
  }
}

@media (max-width: 1040px) {
  body[data-page="calculator"] .simple-calculator-workspace { grid-template-columns: 1fr; }
  body[data-page="calculator"] .calculator-quick-summary { display: grid; }
  body[data-page="calculator"] .results-panel { position: static; }
  body[data-page="calculator"] .simple-settings-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body[data-page="calculator"] .calculator-hero { padding-block: 48px 22px; }
  body[data-page="calculator"] .calculator-hero > p { font-size: 12px; line-height: 1.65; }
  body[data-page="calculator"] .calculator-panel { padding: 18px; }
  body[data-page="calculator"] .simple-settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-page="calculator"] .farm-table-head { display: none; }
  body[data-page="calculator"] .farm-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 32px;
    grid-template-areas: "model model remove" "quantity price price" "power power power";
    gap: 10px 8px;
    align-items: end;
  }
  body[data-page="calculator"] .miner-select-wrap { grid-area: model; }
  body[data-page="calculator"] .quantity-field { grid-area: quantity; }
  body[data-page="calculator"] .price-field { grid-area: price; }
  body[data-page="calculator"] .row-power-field {
    grid-area: power;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 36px;
    padding: 8px 4px 0;
    border-top: 1px solid rgba(13, 23, 32, .09);
  }
  body[data-page="calculator"] .remove-row { grid-area: remove; }
  body[data-page="calculator"] .farm-field > span,
  body[data-page="calculator"] .row-power-field > span {
    display: block;
    margin-bottom: 5px;
    color: #72848e;
    font-size: 9px;
    font-weight: 750;
  }
  body[data-page="calculator"] .row-power-field > span { margin: 0; }
}

@media (max-width: 560px) {
  body[data-page="calculator"] .calculator-hero h1 { font-size: 39px; }
  body[data-page="calculator"] .calc-toolbar { flex-direction: column; }
  body[data-page="calculator"] .toolbar-actions { width: 100%; }
  body[data-page="calculator"] .toolbar-actions .icon-button { flex: 1; }
  body[data-page="calculator"] .workspace-subhead { align-items: flex-start; flex-direction: column; gap: 4px; }
  body[data-page="calculator"] .simple-settings-grid { grid-template-columns: 1fr; }
  body[data-page="calculator"] .setting-control > span,
  body[data-page="calculator"] .setting-control > small { white-space: normal; }
  body[data-page="calculator"] .calculator-quick-summary { grid-template-columns: 1fr 1fr; }
  body[data-page="calculator"] .calculator-quick-summary > div:last-child { grid-column: 1 / -1; }
  body[data-page="calculator"] .farm-row {
    grid-template-columns: 1fr 32px;
    grid-template-areas: "model remove" "quantity quantity" "price price" "power power";
  }
  body[data-page="calculator"] .simple-calculator-actions { grid-template-columns: 1fr; }
  body[data-page="calculator"] .simple-calculator-actions .button { width: 100%; }
}

/* Stage 3.5 — legible profitability summary */
body[data-page="calculator"] .profitability-result {
  position: relative;
  margin-top: 16px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(243, 198, 75, .25);
  border-radius: 14px;
  background:
    radial-gradient(circle at 92% -8%, rgba(243, 198, 75, .12), transparent 190px),
    linear-gradient(145deg, #151d22 0%, #0c1115 78%);
  box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 16px 35px rgba(0, 0, 0, .2);
}
body[data-page="calculator"] .profitability-result::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(var(--accent), rgba(243, 198, 75, .12));
}
body[data-page="calculator"] .profitability-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
body[data-page="calculator"] .profitability-title {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}
body[data-page="calculator"] .profitability-title > i {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(243, 198, 75, .3);
  border-radius: 8px;
  background: rgba(243, 198, 75, .1);
  color: var(--accent);
  font: 750 15px/1 "IBM Plex Mono", ui-monospace, monospace;
}
body[data-page="calculator"] .profitability-title > span { display: grid; gap: 3px; min-width: 0; }
body[data-page="calculator"] .profitability-title small,
body[data-page="calculator"] .profitability-head > a small,
body[data-page="calculator"] .profitability-head > .profitability-source small {
  color: #8297a2;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .11em;
  line-height: 1.2;
  text-transform: uppercase;
}
body[data-page="calculator"] .profitability-title b {
  color: #f4f7f8;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
}
body[data-page="calculator"] .profitability-head > a,
body[data-page="calculator"] .profitability-head > .profitability-source {
  display: grid;
  gap: 3px;
  flex: 0 0 auto;
  padding: 7px 9px;
  border: 1px solid rgba(214, 228, 235, .11);
  border-radius: 8px;
  background: rgba(214, 228, 235, .045);
  text-align: right;
  transition: border-color 160ms ease, background 160ms ease;
}
body[data-page="calculator"] .profitability-head > a b,
body[data-page="calculator"] .profitability-head > .profitability-source b {
  color: #dce5e9;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.2;
}
body[data-page="calculator"] .profitability-head > .profitability-source b a {
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(220, 229, 233, .32);
  text-underline-offset: 2px;
}
body[data-page="calculator"] .profitability-head > a:hover {
  border-color: rgba(243, 198, 75, .32);
  background: rgba(243, 198, 75, .08);
}
body[data-page="calculator"] .profitability-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 15px;
  overflow: hidden;
  border: 1px solid rgba(214, 228, 235, .12);
  border-radius: 10px;
  background: rgba(214, 228, 235, .12);
}
body[data-page="calculator"] .profitability-grid > div {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
  min-height: 78px;
  padding: 13px;
  border: 0;
  background: rgba(10, 15, 19, .94);
}
body[data-page="calculator"] .profitability-grid > div.is-gross { background: rgba(243, 198, 75, .07); }
body[data-page="calculator"] .profitability-grid small {
  color: #93a5ae;
  font-size: 9px;
  font-weight: 650;
  line-height: 1.4;
}
body[data-page="calculator"] .profitability-grid small span { color: #6f828c; white-space: nowrap; }
body[data-page="calculator"] .profitability-grid strong {
  align-self: end;
  color: #f3f7f8;
  font: 720 16px/1.2 "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
body[data-page="calculator"] .profitability-grid .is-gross strong { color: var(--accent); }
body[data-page="calculator"] .profitability-grid strong.is-negative { color: #ff8a7a; }
body[data-page="calculator"] .profitability-grid strong.is-positive { color: #63d5a1; }
body[data-page="calculator"] .algorithm-income {
  gap: 0;
  margin-top: 12px;
  border-color: rgba(214, 228, 235, .12);
  border-radius: 10px;
  background: transparent;
}
body[data-page="calculator"] .algorithm-income > div {
  min-height: 52px;
  padding: 11px 12px;
  border-bottom: 1px solid rgba(214, 228, 235, .1);
  background: rgba(21, 29, 34, .72);
}
body[data-page="calculator"] .algorithm-income > div:last-child { border-bottom: 0; }
body[data-page="calculator"] .algorithm-income b { color: #eef4f6; font-size: 10px; }
body[data-page="calculator"] .algorithm-income small { color: #8a9da7; font-size: 8.5px; }
body[data-page="calculator"] .algorithm-income strong { color: var(--accent); font-size: 12px; }
body[data-page="calculator"] .profitability-result > p {
  margin: 13px 1px 0;
  padding-top: 12px;
  border-top: 1px solid rgba(214, 228, 235, .09);
  color: #91a2aa;
  font-size: 9px;
  line-height: 1.65;
}
body[data-page="calculator"] .profitability-result > p b { color: #cbd6da; font-weight: 750; }

@media (max-width: 560px) {
  body[data-page="calculator"] .profitability-result { padding: 15px; }
  body[data-page="calculator"] .profitability-head { align-items: flex-start; flex-direction: column; }
  body[data-page="calculator"] .profitability-head > a,
  body[data-page="calculator"] .profitability-head > .profitability-source { width: 100%; text-align: left; }
  body[data-page="calculator"] .profitability-grid { grid-template-columns: 1fr; }
  body[data-page="calculator"] .profitability-grid > div { min-height: 72px; }
  body[data-page="calculator"] .profitability-grid strong { font-size: 17px; }
}

/* Stage 3.6 — stable TCO controls and responsive financial layout */
body[data-page="tco"] .tco-workspace {
  display: grid;
  gap: 16px;
}
body[data-page="tco"] .tco-workspace[hidden],
#customOwnershipWrap[hidden],
#farmComponents[hidden] { display: none; }
body[data-page="tco"] .tco-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  overflow: hidden;
}
body[data-page="tco"] .tco-inputs-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  padding: 1px 2px 2px;
}
body[data-page="tco"] .tco-inputs-head > div { display: grid; gap: 5px; }
body[data-page="tco"] .tco-inputs-head strong {
  color: var(--ink);
  font-size: 17px;
  letter-spacing: -.025em;
}
body[data-page="tco"] .tco-inputs-head p {
  margin: 0;
  color: #73858f;
  font-size: 9px;
  line-height: 1.45;
  text-align: right;
}
body[data-page="tco"] .tco-period-control {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(13, 23, 32, .1);
  border-radius: 11px;
  background: #f4f7f8;
}
body[data-page="tco"] .tco-period-control > span {
  color: #667984;
  font-size: 9px;
  font-weight: 750;
}
body[data-page="tco"] .period-switch {
  width: 100%;
  margin-top: 9px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
body[data-page="tco"] .period-switch button {
  min-width: 0;
  min-height: 38px;
  font-size: 9px;
}
body[data-page="tco"] .tco-fields-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  min-width: 0;
}
body[data-page="tco"] .tco-fields-row > label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr;
  gap: 7px 8px;
  align-items: end;
  min-width: 0;
  min-height: 72px;
  padding: 12px;
  border: 1px solid rgba(13, 23, 32, .1);
  border-radius: 10px;
  background: #f4f7f8;
}
body[data-page="tco"] .tco-fields-row > label[hidden] { display: none; }
body[data-page="tco"] .tco-fields-row > label > span {
  grid-column: 1 / -1;
  color: #667984;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.35;
}
body[data-page="tco"] .tco-fields-row input {
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 720 14px/1.3 "IBM Plex Mono", ui-monospace, monospace;
}
body[data-page="tco"] .tco-fields-row input:focus-visible { color: #956e0b; }
body[data-page="tco"] .tco-fields-row small {
  color: #7f9099;
  font-size: 9px;
  line-height: 1.3;
}
body[data-page="tco"] .tco-fields-row .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 72px;
  padding-inline: 18px;
  border-radius: 10px;
  white-space: nowrap;
}
body[data-page="tco"] .tco-formula {
  margin: -2px 2px 0;
  font-size: 9px;
  line-height: 1.65;
}
body[data-page="tco"] .tco-source-summary {
  display: grid;
  gap: 15px;
  padding: 18px;
  border: 1px solid rgba(13, 23, 32, .1);
  border-radius: 14px;
  background: #f7f9fa;
}
body[data-page="tco"] .tco-source-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}
body[data-page="tco"] .tco-source-head > div { display: grid; gap: 5px; }
body[data-page="tco"] .tco-source-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  letter-spacing: -.025em;
}
body[data-page="tco"] .tco-source-head p {
  margin: 0;
  color: #667984;
  font-size: 11px;
  line-height: 1.45;
  text-align: right;
}
body[data-page="tco"] .tco-source-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid rgba(13, 23, 32, .09);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
body[data-page="tco"] .tco-source-grid > div {
  display: grid;
  align-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 76px;
  padding: 12px;
  border-right: 1px solid rgba(13, 23, 32, .09);
}
body[data-page="tco"] .tco-source-grid > div:last-child { border-right: 0; }
body[data-page="tco"] .tco-source-grid span {
  color: #657984;
  font-size: 10px;
  line-height: 1.35;
}
body[data-page="tco"] .tco-source-grid strong {
  color: var(--ink);
  font: 720 14px/1.35 "IBM Plex Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
body[data-page="tco"] .tco-kpis {
  grid-template-columns: 1.28fr 1fr 1fr;
  grid-template-areas: "total equipment infrastructure" "total electricity operations";
}
body[data-page="tco"] .cumulative-chart svg { max-width: 100%; }
.tco-chart-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: #405762;
  font-size: 13px;
}
.tco-chart-totals li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tco-chart-totals strong { color: var(--ink); white-space: nowrap; }
.tco-chart-key { width: 18px; border-top: 3px solid; }
.tco-expenses-key { color: #946708; }
.tco-income-key { color: #157253; }
.tco-expenses-line, .tco-income-line { vector-effect: non-scaling-stroke; }
.tco-expenses-line { stroke: #946708; }
.tco-income-line { stroke: #157253; }
.tco-income-line.is-historical { stroke-dasharray: 6 4; }
.tco-income-key.is-historical { border-top-style: dashed; }
body[data-page="tco"] .cumulative-chart { min-height: 0; margin-top: 12px; }
body[data-page="tco"] .cumulative-chart svg { height: auto; max-height: 300px; }
.tco-chart-note, .tco-history-toggle { color: #405762; font-size: 13px; line-height: 1.5; }
.tco-chart-note { margin: 8px 0 0; }
.tco-history-toggle { display: flex; align-items: center; gap: 8px; width: fit-content; margin-top: 8px; cursor: pointer; }
.tco-history-toggle[hidden] { display: none; }
.tco-history-toggle input { width: 17px; height: 17px; margin: 0; accent-color: #157253; }
body[data-page="tco"] .tco-operations-breakdown {
  display: grid;
  gap: 7px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(13, 23, 32, .1);
}
body[data-page="tco"] .tco-operations-breakdown p {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
}
body[data-page="tco"] .tco-operations-breakdown span,
body[data-page="tco"] .tco-operations-breakdown b {
  font-size: 10px;
  line-height: 1.35;
}
body[data-page="tco"] .tco-operations-breakdown b {
  color: var(--ink);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

@media (max-width: 900px) {
  body[data-page="tco"] .tco-source-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body[data-page="tco"] .tco-source-grid > div:nth-child(3) { border-right: 0; }
  body[data-page="tco"] .tco-source-grid > div:nth-child(-n + 3) { border-bottom: 1px solid rgba(13, 23, 32, .09); }
  body[data-page="tco"] .tco-kpis {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "total total" "equipment infrastructure" "electricity operations";
  }
  body[data-page="tco"] .tco-kpis .tco-total { min-height: 190px; }
}

@media (max-width: 560px) {
  body[data-page="tco"] .tco-inputs { padding: 15px; }
  body[data-page="tco"] .cumulative-chart .chart-axis-label { font-size: 16px; }
  body[data-page="tco"] .tco-inputs-head { align-items: flex-start; flex-direction: column; gap: 7px; }
  body[data-page="tco"] .tco-inputs-head p { text-align: left; }
  body[data-page="tco"] .period-switch { grid-template-columns: 1fr 1fr; }
  body[data-page="tco"] .tco-fields-row { grid-template-columns: 1fr; }
  body[data-page="tco"] .tco-fields-row .button { width: 100%; min-height: 50px; }
  body[data-page="tco"] .tco-source-summary { padding: 15px; }
  body[data-page="tco"] .tco-source-head { align-items: flex-start; flex-direction: column; gap: 7px; }
  body[data-page="tco"] .tco-source-head p { text-align: left; }
  body[data-page="tco"] .tco-source-grid { grid-template-columns: 1fr 1fr; }
  body[data-page="tco"] .tco-source-grid > div { min-height: 72px; }
  body[data-page="tco"] .tco-source-grid > div:nth-child(3) { border-right: 1px solid rgba(13, 23, 32, .09); }
  body[data-page="tco"] .tco-source-grid > div:nth-child(even) { border-right: 0; }
  body[data-page="tco"] .tco-source-grid > div:nth-child(-n + 4) { border-bottom: 1px solid rgba(13, 23, 32, .09); }
  body[data-page="tco"] .tco-kpis {
    grid-template-columns: 1fr;
    grid-template-areas: "total" "equipment" "infrastructure" "electricity" "operations";
  }
  body[data-page="tco"] .tco-kpis .tco-total { min-height: 205px; }
  body[data-page="tco"] .chart-head { align-items: flex-start; flex-direction: column; gap: 8px; }
}

/* Stage 2.17 — real ASIC photography */
.catalog-media,
.compare-media,
.asic-approved-media {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .98), rgba(233, 239, 242, .94) 68%, rgba(219, 227, 231, .96)),
    #eef2f4;
}
.catalog-media img,
.compare-media img,
.asic-approved-media img {
  padding: 6px;
  object-fit: contain;
  filter: saturate(.94) contrast(1.02);
}
.catalog-media img { padding: 4px; }
.strip-media > span {
  left: 6px;
  top: 6px;
  width: auto;
  min-width: 31px;
  height: 18px;
  padding: 0 5px;
  border-color: rgba(13, 23, 32, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: #31434e;
  box-shadow: 0 3px 10px rgba(13, 23, 32, .1);
  font-size: 6px;
  letter-spacing: .05em;
}
.asic-approved-media {
  background: radial-gradient(circle at 50% 42%, #fff 0, #eef3f5 70%, #dfe7ea 100%);
}
.asic-approved-media img { padding: 18px 20px 44px; }
.asic-approved-media figcaption {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  border-color: rgba(255, 255, 255, .1);
  background: rgba(13, 23, 32, .91);
  backdrop-filter: blur(10px);
}
.asic-approved-media figcaption strong {
  color: var(--accent);
  font-weight: 800;
  white-space: nowrap;
}
.asic-approved-media figcaption span {
  min-width: 0;
  overflow: hidden;
  color: #bdc8ce;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.asic-approved-media figcaption a {
  color: #f2f5f6;
  font-weight: 750;
  white-space: nowrap;
}
.asic-approved-media figcaption a:hover,
.asic-approved-media figcaption a:focus-visible { color: var(--accent); }
body[data-page="home"] .hardware-product {
  width: min(72%, 470px);
  max-height: 360px;
  filter: saturate(.92) contrast(1.04) drop-shadow(0 30px 32px rgba(0, 0, 0, .34));
}
body[data-page="home"] .stage-caption a {
  color: #92a2ab;
  text-decoration: none;
}
body[data-page="home"] .stage-caption a:hover,
body[data-page="home"] .stage-caption a:focus-visible { color: var(--accent); }

@media (max-width: 760px) {
  .asic-approved-media figcaption { grid-template-columns: auto minmax(0, 1fr); }
  .asic-approved-media figcaption span { display: none; }
  .asic-approved-media figcaption a { justify-self: end; }
  body[data-page="home"] .hardware-product { width: min(76%, 420px); }
}

/* Stage 2.18 — normalized ASIC photography */
body[data-page="catalog"] .miner-record {
  grid-template-columns: 148px minmax(180px, 1.05fr) minmax(260px, 1.45fr);
}
body[data-page="catalog"] .record-hardware,
body[data-page="catalog"] .catalog-view-cards .record-hardware {
  min-height: 112px;
  padding: 0;
  border-radius: 0;
  background: #fff;
  overflow: visible;
}
.catalog-media,
.compare-media {
  border: 0;
  border-radius: 0;
  background: #fff;
  overflow: visible;
}
.catalog-media img,
.compare-media img,
.asic-approved-media img {
  padding: 0;
  object-fit: contain;
}
.catalog-media {
  width: 100%;
  max-width: 148px;
  aspect-ratio: 4 / 3;
}
.catalog-view-cards .catalog-media {
  width: min(100%, 248px);
  max-width: 248px;
}
.catalog-view-cards .record-hardware {
  min-height: 176px;
}
.strip-media {
  border: 0;
  background: #fff;
}
.asic-approved-media {
  background: #fff;
}
.asic-approved-media img {
  padding-bottom: 34px;
}
body[data-page="home"] .hardware-product {
  width: min(78%, 520px);
  max-height: 390px;
}

@media (max-width: 1120px) {
  body[data-page="catalog"] .miner-record {
    grid-template-columns: 124px minmax(160px, 1fr);
  }
  .catalog-media { max-width: 124px; }
}

@media (max-width: 760px) {
  body[data-page="catalog"] .miner-record {
    grid-template-columns: 104px minmax(0, 1fr);
  }
  body[data-page="catalog"] .record-hardware { min-height: 84px; }
  .catalog-media { max-width: 104px; }
  body[data-page="catalog"] .catalog-view-cards .record-hardware { min-height: 154px; }
  body[data-page="catalog"] .catalog-view-cards .catalog-media { width: min(100%, 216px); max-width: 216px; }
  body[data-page="home"] .hardware-product { width: min(84%, 440px); }
}

@media (max-width: 430px) {
  body[data-page="catalog"] .record-hardware,
  body[data-page="catalog"] .catalog-view-cards .record-hardware { min-height: 150px; }
  body[data-page="catalog"] .catalog-media,
  body[data-page="catalog"] .catalog-view-cards .catalog-media { width: min(100%, 220px); max-width: 220px; }
}

/* Stage 3.8 — readability, compact catalog and complete comparison workspace */
.tool-label {
  font-size: 10px;
  letter-spacing: .11em;
}

/* Catalog: honest loading state and a faster scan path. */
.catalog-loading {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding: 8px 0 18px;
}
.catalog-loading > span {
  display: block;
  min-height: 138px;
  border: 1px solid rgba(13, 23, 32, .08);
  border-radius: 15px;
  background: linear-gradient(100deg, #f3f6f7 20%, #fff 38%, #f3f6f7 56%);
  background-size: 220% 100%;
  animation: catalog-loading-sheen 1.2s ease-in-out infinite;
}
.catalog-loading > b {
  color: #657984;
  font-size: 12px;
  font-weight: 650;
  text-align: center;
}
@keyframes catalog-loading-sheen { to { background-position: -120% 0; } }

body[data-page="catalog"] .record-metrics small { font-size: 10px; }
body[data-page="catalog"] .record-metrics b { font-size: 13px; }
body[data-page="catalog"] .record-profit {
  min-height: 68px;
  padding: 12px 14px;
  border: 1px solid rgba(181, 137, 28, .18);
  border-radius: 10px;
  background: #fffaf0;
}
body[data-page="catalog"] .record-profit .record-profit-primary {
  color: #566a74;
  font-size: 11px;
}
body[data-page="catalog"] .record-profit b {
  color: var(--ink);
  font-size: 13px;
}
body[data-page="catalog"] .record-profit em {
  color: #566a74;
  font-size: 11px;
  line-height: 1.45;
}
body[data-page="catalog"] .record-profit .record-profit-net {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px 7px;
  align-items: center;
}
body[data-page="catalog"] .record-profit .record-profit-status,
.asic-profitability-card dd.profit-status {
  display: inline-flex;
  width: fit-content;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 800;
}
body[data-page="catalog"] .record-profit .record-profit-status.is-positive,
.asic-profitability-card dd.profit-status.is-positive {
  border-color: #abd9c7;
  background: #dff4eb;
  color: #176247;
}
body[data-page="catalog"] .record-profit .record-profit-status.is-negative,
.asic-profitability-card dd.profit-status.is-negative {
  border-color: #efb9b2;
  background: #fde5e2;
  color: #9b3028;
}
body[data-page="catalog"] .record-profit .record-profit-status.is-historical,
.asic-profitability-card dd.profit-status.is-historical {
  border-color: #bdcbd3;
  background: #e9f0f3;
  color: #354b58;
}
body[data-page="calculator"] #profitabilityNote.is-historical {
  padding: 10px 12px;
  border: 1px solid rgba(243, 198, 75, .34);
  border-radius: 8px;
  background: rgba(243, 198, 75, .1);
  color: #f0ddb0;
}
body[data-page="catalog"] .record-profit small {
  color: #748690;
  font-size: 9.5px;
}
body[data-page="catalog"] .record-profit small.record-profit-scope {
  padding: 7px 9px;
  border-left: 3px solid #d29a2e;
  border-radius: 5px;
  background: #fff3d7;
  color: #785d24;
  font-family: Manrope, sans-serif;
  font-weight: 700;
  line-height: 1.45;
}
.asic-profitability-card p.profit-scope {
  margin: 0 0 10px;
  padding: 9px 10px;
  border-left: 3px solid #d29a2e;
  border-radius: 6px;
  background: #fff3d7;
  color: #785d24;
  font-size: 9.5px;
}
.asic-profitability-card p.profit-scope b { color: #684c16; }

/* Keep the restored calculation readable inside the dark ASIC action bay. */
body[data-page="asic"] .asic-profitability-card h2 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  color: #f4f7f8;
  line-height: 1.2;
}
body[data-page="asic"] .asic-profitability-card h2 small {
  color: #b8c8d0;
  font-size: 11px;
  letter-spacing: 0;
}
body[data-page="asic"] .asic-profitability-card p:not(.profit-scope) {
  color: #c3cfd5;
  font-size: 11px;
}
body[data-page="asic"] .asic-actions-card .asic-back {
  display: block;
  margin-top: 14px;
  color: #c3cfd5;
  font-size: 11px;
}
body[data-page="catalog"] .record-evidence { font-size: 11px; }
body[data-page="catalog"] .record-evidence b { font-size: 10.5px; }
body[data-page="catalog"] .miner-card-actions a,
body[data-page="catalog"] .miner-card-actions button { font-size: 11px; }
.catalog-filter-panel > label > small,
.coin-market-status { font-size: 10px; }
.catalog-coin-links > button {
  min-height: 34px;
  padding: 5px 8px;
}
.catalog-coin-links > button > small { font-size: 8.5px; }
.coin-links > .coin-more {
  min-width: 34px;
  min-height: 34px;
  justify-content: center;
  border-style: dashed;
  background: #f4f7f8;
  color: #607580;
  font-size: 9px;
}

/* Comparison: the picker and the selected set are visually distinct. */
body[data-page="compare"] .compare-controls {
  display: grid;
  grid-template-columns: minmax(190px, .75fr) minmax(280px, 1.25fr) auto auto;
  gap: 9px;
  align-items: end;
}
body[data-page="compare"] .compare-search,
body[data-page="compare"] .compare-picker {
  display: grid;
  gap: 6px;
  min-width: 0;
}
body[data-page="compare"] .compare-search > span,
body[data-page="compare"] .compare-picker > span {
  color: #667a85;
  font-size: 10px;
  font-weight: 800;
}
body[data-page="compare"] .compare-search input,
body[data-page="compare"] .compare-picker select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(13, 23, 32, .13);
  border-radius: 9px;
  background: #f2f5f6;
  color: var(--ink);
  font-size: 12px;
  outline: none;
}
body[data-page="compare"] .compare-search input:focus,
body[data-page="compare"] .compare-picker select:focus {
  border-color: #b8860d;
  box-shadow: 0 0 0 3px rgba(245, 200, 66, .16);
}
body[data-page="compare"] .compare-controls .button { min-height: 46px; }
.compare-hardware-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
.compare-hardware-strip article {
  position: relative;
  min-height: 246px;
  padding: 14px;
}
.compare-hardware-strip .compare-device-slot small {
  color: #9aacb5;
  font-size: 9px;
}
.compare-hardware-strip .compare-device-slot strong {
  margin-top: 7px;
  color: #f2f6f7;
  font-size: 14px;
}
.compare-hardware-strip .compare-device-slot > span {
  color: #d7b34e;
  font-size: 10px;
  line-height: 1.45;
}
.compare-slot-remove {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9aabb4;
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
}
.compare-slot-remove:hover,
.compare-slot-remove:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.compare-empty-slot {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 7px;
  min-height: 246px;
  background: rgba(255, 255, 255, .018);
  color: #71838d;
  text-align: center;
}
.compare-empty-slot > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin: 0;
  border: 1px dashed rgba(214, 228, 235, .2);
  border-radius: 50%;
  color: #8b9ba4;
  font: 750 10px "IBM Plex Mono", ui-monospace, monospace;
}
.compare-empty-slot > b { color: #a8b5bc; font-size: 11px; }
.compare-empty-slot > small { color: #657781; font-size: 9.5px; text-transform: none; letter-spacing: 0; }
.compare-table th,
.compare-table td { font-size: 12px; }
.compare-table th a { font-size: 13px; }

/* Calculator: prioritise figures instead of decorative instrumentation. */
body[data-page="calculator"] .simple-calculator-workspace {
  grid-template-columns: minmax(0, 1fr) minmax(400px, 440px);
}
body[data-page="calculator"] .setting-control > span { font-size: 10.5px; }
body[data-page="calculator"] .setting-control > small { font-size: 9.5px; }
body[data-page="calculator"] .market-status { font-size: 10.5px; line-height: 1.55; }
body[data-page="calculator"] .calculator-explanation { font-size: 10.5px; }
body[data-page="calculator"] .workspace-subhead b { font-size: 14px; }
body[data-page="calculator"] .workspace-subhead span { font-size: 10.5px; }
body[data-page="calculator"] .farm-table-head { font-size: 9px; }
body[data-page="calculator"] .farm-model-picker b { font-size: 13px; }
body[data-page="calculator"] .farm-model-picker em { font-size: 10px; }
body[data-page="calculator"] .farm-row input { font-size: 12px; }
body[data-page="calculator"] .row-power { font-size: 12px; }
body[data-page="calculator"] .results-panel { padding: 24px; }
body[data-page="calculator"] .result-topline { font-size: 10.5px; }
body[data-page="calculator"] .power-core {
  display: block;
  min-height: 0;
  margin: 16px 0 14px;
  padding: 23px;
  border: 1px solid rgba(214, 228, 235, .12);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(245, 200, 66, .09), rgba(255, 255, 255, .025));
}
body[data-page="calculator"] .power-core::before,
body[data-page="calculator"] .power-core::after,
body[data-page="calculator"] .power-core-orbit { display: none; }
body[data-page="calculator"] .power-core .main-result {
  margin: 0;
  padding: 0;
  text-align: left;
}
body[data-page="calculator"] .power-core .main-result small { font-size: 11px; }
body[data-page="calculator"] .power-core .main-result strong {
  margin-top: 7px;
  color: #fff;
  font-size: 42px;
}
body[data-page="calculator"] .power-core .main-result strong span { color: var(--accent); font-size: 18px; }
body[data-page="calculator"] .power-core .main-result p {
  max-width: none;
  margin: 6px 0 0;
  font-size: 10.5px;
}
body[data-page="calculator"] .result-grid small { font-size: 10.5px; line-height: 1.4; }
body[data-page="calculator"] .result-grid strong { font-size: 15px; }
body[data-page="calculator"] .cost-block span { font-size: 11px; }
body[data-page="calculator"] .cost-block strong { font-size: 17px; }
body[data-page="calculator"] .cost-block .cost-total strong { font-size: 20px; }
body[data-page="calculator"] .profitability-title small,
body[data-page="calculator"] .profitability-head > a small,
body[data-page="calculator"] .profitability-head > .profitability-source small { font-size: 9.5px; }
body[data-page="calculator"] .profitability-title b { font-size: 15px; }
body[data-page="calculator"] .profitability-head > a b,
body[data-page="calculator"] .profitability-head > .profitability-source b { font-size: 10.5px; }
body[data-page="calculator"] .profitability-grid small { font-size: 10.5px; }
body[data-page="calculator"] .profitability-grid strong { font-size: 19px; }
body[data-page="calculator"] .algorithm-income b { font-size: 11.5px; }
body[data-page="calculator"] .algorithm-income small { font-size: 10px; }
body[data-page="calculator"] .algorithm-income strong { font-size: 14px; }
body[data-page="calculator"] .profitability-result > p { font-size: 10.5px; }
body[data-page="calculator"] .algo-summary .tool-label { font-size: 10px; }
body[data-page="calculator"] .algo-line span,
body[data-page="calculator"] .algo-line b { font-size: 11.5px; }
body[data-page="calculator"] .calculator-quick-summary small { font-size: 10px; }
body[data-page="calculator"] .calculator-quick-summary strong { font-size: 15px; }

/* Product and TCO: remove internal media taxonomy and lift supporting copy. */
body[data-page="asic"] .asic-approved-media img { padding-bottom: 0; }
body[data-page="asic"] .asic-showcase-data small { font-size: 9.5px; }
body[data-page="asic"] .asic-coin-panel p { font-size: 11px; }
body[data-page="asic"] .asic-coin-rate small,
body[data-page="asic"] .asic-coin-market-meta { font-size: 9.5px; }
body[data-page="tco"] .income-notice p { font-size: 12px; line-height: 1.55; }
body[data-page="tco"] .tco-inputs-head p,
body[data-page="tco"] .tco-formula { font-size: 10.5px; line-height: 1.55; }
body[data-page="tco"] .tco-fields-row label > span,
body[data-page="tco"] .tco-period-control > span { font-size: 10.5px; }

@media (max-width: 1120px) {
  body[data-page="compare"] .compare-controls {
    grid-template-columns: 1fr 1.4fr auto auto;
  }
  .compare-hardware-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare-hardware-strip article { border-bottom: 1px solid rgba(214, 228, 235, .11); }
  body[data-page="calculator"] .simple-calculator-workspace { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body[data-page="compare"] .compare-controls {
    grid-template-columns: 1fr 1fr;
  }
  body[data-page="compare"] .compare-search,
  body[data-page="compare"] .compare-picker { grid-column: 1 / -1; }
  .compare-hardware-strip article { min-height: 220px; }
  body[data-page="calculator"] .results-panel { padding: 19px; }
  body[data-page="calculator"] .power-core .main-result strong { font-size: 38px; }
  body[data-page="calculator"] .farm-field > span,
  body[data-page="calculator"] .row-power-field > span { font-size: 10px; }
  body[data-page="asic"] .asic-showcase-data small { font-size: 9px; }
  body[data-page="asic"] .asic-showcase-data strong { font-size: 14px; }
}

@media (max-width: 560px) {
  body[data-page="compare"] .compare-controls { grid-template-columns: 1fr; }
  body[data-page="compare"] .compare-search,
  body[data-page="compare"] .compare-picker { grid-column: 1; }
  body[data-page="compare"] .compare-controls .button { width: 100%; }
  .compare-hardware-strip { grid-template-columns: 1fr; }
  .compare-hardware-strip article { min-height: 0; border-right: 0; }
  .compare-empty-slot { min-height: 125px !important; }
  body[data-page="calculator"] .profitability-grid strong { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-loading > span { animation: none; }
}

/* Calculator source links sit below the figures instead of competing with the title. */
body[data-page="calculator"] .profitability-head { display: block; }
body[data-page="calculator"] .profitability-source {
  min-width: 0;
  margin-top: 13px;
  border: 1px solid rgba(214, 228, 235, .13);
  border-radius: 9px;
  background: rgba(214, 228, 235, .035);
}
body[data-page="calculator"] .profitability-source summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  color: #cbd8de;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
  list-style: none;
}
body[data-page="calculator"] .profitability-source summary::-webkit-details-marker { display: none; }
body[data-page="calculator"] .profitability-source summary::after {
  content: "+";
  color: var(--accent);
  font: 750 17px/1 "IBM Plex Mono", ui-monospace, monospace;
}
body[data-page="calculator"] .profitability-source[open] summary::after { content: "−"; }
body[data-page="calculator"] .profitability-source summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
body[data-page="calculator"] .profitability-source > div {
  padding: 11px 13px 13px;
  border-top: 1px solid rgba(214, 228, 235, .1);
  color: #9fb2bc;
  font-size: 11px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
body[data-page="calculator"] .profitability-source a {
  color: #e2e9ed;
  text-underline-offset: 3px;
}

/* Readable labels on financial and source-critical controls. */
body[data-page="calculator"] .setting-control > span,
body[data-page="calculator"] .workspace-subhead span,
body[data-page="calculator"] .result-grid small,
body[data-page="calculator"] .profitability-grid small,
body[data-page="calculator"] .profitability-result > p,
body[data-page="calculator"] .market-status,
body[data-page="calculator"] .calculator-explanation,
body[data-page="calculator"] .power-core .main-result p { font-size: 12px; line-height: 1.5; }
body[data-page="calculator"] .setting-control > small,
body[data-page="calculator"] .algorithm-income small { font-size: 11.5px; line-height: 1.4; }
body[data-page="calculator"] .calculator-hero > p { font-size: 14px; }
body[data-page="tco"] .tco-inputs-head p,
body[data-page="tco"] .tco-formula,
body[data-page="tco"] .tco-fields-row label > span,
body[data-page="tco"] .tco-period-control > span,
body[data-page="tco"] .tco-fields-row small { font-size: 12px; line-height: 1.5; }
body[data-page="tco"] #tcoPriceWarning a { color: #765700; font-weight: 750; text-underline-offset: 3px; }
body[data-page="asic"] .asic-showcase-data small,
body[data-page="asic"] .asic-coin-rate small,
body[data-page="asic"] .asic-coin-market-meta { font-size: 11.5px; }
body[data-page="calculator"] .setting-control > span,
body[data-page="calculator"] .setting-control > small {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
body[data-page="calculator"] .setting-control > span { min-height: 2.7em; }
body[data-page="calculator"] .setting-control > small { min-height: 2.8em; }
/* A shared title row keeps every input in a row on the same baseline. */
body[data-page="calculator"] .simple-settings-grid .setting-control {
  grid-template-rows: 36px 42px minmax(0, 1fr);
  align-content: start;
}
body[data-page="calculator"] .simple-settings-grid .setting-control > span {
  min-height: 0;
}
body[data-page="calculator"] .simple-settings-grid .setting-control > small {
  min-height: 0;
  align-self: start;
}
@media (max-width: 560px) {
  body[data-page="calculator"] .simple-settings-grid .setting-control {
    grid-template-rows: auto 42px auto;
  }
}
body[data-page="calculator"] .demo-badge {
  border-color: #d8bc5d;
  background: #fff0bb;
  color: #584300;
  font-size: 11px;
  font-weight: 800;
}
body[data-page="calculator"] .result-grid small,
body[data-page="calculator"] .power-core .main-result small,
body[data-page="calculator"] .power-core .main-result p,
body[data-page="calculator"] .cost-block span { color: #b5c5cf; }
body[data-page="tco"] .income-notice p { color: #473c1d; font-size: 13px; line-height: 1.55; }
body[data-page="tco"] .tco-inputs-head p,
body[data-page="tco"] .tco-formula { color: #526671; font-size: 12px; }
body[data-page="tco"] .period-switch button { font-size: 12px; font-weight: 750; }
body[data-page="tco"] .tco-fields-row label > span,
body[data-page="tco"] .tco-fields-row small { color: #526671; }
body[data-page="tco"] .tco-fields-row .button { font-size: 13px; }

/* The catalogue has one responsive presentation: rows on larger screens, cards on phones. */
@media (max-width: 600px) {
  body[data-page="catalog"] .catalog-grid { grid-template-columns: minmax(0, 1fr); }
  body[data-page="catalog"] .miner-record {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "hardware" "identity" "metrics" "profit" "evidence" "actions";
    gap: 12px;
    padding: 14px;
  }
  body[data-page="catalog"] .record-hardware { min-height: 150px; }
  body[data-page="catalog"] .catalog-media { width: min(100%, 220px); max-width: 220px; }
  body[data-page="catalog"] .miner-record .miner-card-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-page="catalog"] .miner-record .miner-card-actions .compare-toggle { grid-column: 1 / -1; }
}

/* Stage 4.1 — independent design audit refinements */
:root {
  --muted: #596d79;
  --muted-2: #687c87;
  --green: #197451;
  --warning: #92520d;
  --danger: #a43830;
}

body {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
}
.page-main { flex: 1 0 auto; }
#siteFooter { margin-top: auto; }
.platform-nav a { font-size: 12.5px; }
.header-cta { font-size: 12.5px; }
.breadcrumbs { font-size: 12px; line-height: 1.5; }
.eyebrow { font-size: 11px; }
.tool-label { font-size: 10.5px; line-height: 1.35; }
.data-status { font-size: 11px; }

/* Tool pages begin with a compact orientation band, not a second landing hero. */
body:not([data-page="home"]) .page-hero.compact {
  min-height: 0;
  padding-top: 34px;
  padding-bottom: 27px;
}
body:not([data-page="home"]) .page-hero.compact h1 {
  max-width: 920px;
  font-size: clamp(40px, 4.4vw, 58px);
  line-height: .98;
  letter-spacing: -.055em;
}
body:not([data-page="home"]) .page-hero.compact > p {
  max-width: 760px;
  font-size: 14px;
  line-height: 1.65;
}
body[data-page="asic"] .page-hero.compact { padding-bottom: 12px; }
body[data-page="asic"] .page-hero.compact::after { content: none; }

/* One catalogue presentation: rows on desktop, cards on phones. */
body[data-page="catalog"] .catalog-density { display: none !important; }
body[data-page="catalog"] .catalog-summary {
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 7px 20px;
  align-items: center;
  color: #596e79;
  font-size: 12px;
}
body[data-page="catalog"] .catalog-summary .coin-market-status {
  grid-column: 1 / -1;
  grid-row: 2;
}
.coin-market-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid rgba(13, 23, 32, .1);
  border-radius: 7px;
  background: #eef3f5;
  color: #435b67;
  font: 700 11.5px/1.4 Manrope, sans-serif;
}
body[data-page="catalog"] .catalog-insights small,
body[data-page="catalog"] .record-metrics small,
body[data-page="catalog"] .catalog-tariff > span,
body[data-page="catalog"] .catalog-sort > span { color: #596e79; font-size: 11px; }
body[data-page="catalog"] .catalog-insights b { font-size: 14px; }
body[data-page="catalog"] .catalog-sort select,
body[data-page="catalog"] .catalog-tariff input { font-size: 13px; }
.catalog-filter-panel > label > span,
.catalog-range-group > span,
.catalog-filter-group > span { color: #526873; font-size: 11px; }
.catalog-filter-panel select,
.catalog-filter-panel input { font-size: 13px; }
.catalog-filter-panel > label > small,
.catalog-range-group small { color: #617681; font-size: 11px; line-height: 1.45; }
.catalog-filter-panel .filter-pill { min-height: 38px; font-size: 11.5px; }
body[data-page="catalog"] .record-identity h2 { font-size: 19px; line-height: 1.2; }
body[data-page="catalog"] .record-metrics b { font-size: 13px; }
body[data-page="catalog"] .record-profit {
  gap: 8px;
  align-content: start;
}
body[data-page="catalog"] .record-profit-primary { color: #425964; font-size: 12px; }
body[data-page="catalog"] .record-profit-primary b {
  color: var(--ink);
  font-family: Manrope, sans-serif;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
body[data-page="catalog"] .record-income-state {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 25px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.2;
}
body[data-page="catalog"] .record-income-state.is-current {
  border-color: #a9d8c6;
  background: #e0f4ec;
  color: #176247;
}
body[data-page="catalog"] .record-income-state.is-historical {
  border-color: #c4d0d6;
  background: #eaf0f3;
  color: #344d59;
}
body[data-page="catalog"] .record-profit em,
body[data-page="catalog"] .record-profit small,
body[data-page="catalog"] .record-evidence { font-size: 11.5px; line-height: 1.5; }
body[data-page="catalog"] .record-evidence b { font-size: 11px; }
body[data-page="catalog"] .record-profit .record-profit-status {
  font-family: Manrope, sans-serif;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
body[data-page="catalog"] .catalog-coin-links > button > small { font-size: 10px; }
body[data-page="catalog"] .miner-card-actions a,
body[data-page="catalog"] .miner-card-actions button { min-height: 42px; font-size: 12px; }

/* Product detail: compact specifications and human-readable evidence. */
body[data-page="asic"] .spec-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
body[data-page="asic"] .spec-list > div {
  min-width: 0;
  min-height: 76px;
  padding: 12px;
  border: 1px solid rgba(13, 23, 32, .09);
  border-radius: 9px;
  background: #f6f8f9;
}
body[data-page="asic"] .spec-list dt { color: #5d717c; font-size: 10.5px; line-height: 1.35; }
body[data-page="asic"] .spec-list dd {
  color: var(--ink);
  font-family: Manrope, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
body[data-page="asic"] .asic-evidence-panel p,
body[data-page="asic"] .asic-evidence-panel dt,
body[data-page="asic"] .asic-evidence-panel dd,
body[data-page="asic"] .source-panel p { font-size: 12px; line-height: 1.55; }
body[data-page="asic"] .asic-actions-card p,
body[data-page="asic"] .asic-profitability-card p:not(.profit-scope),
body[data-page="asic"] .asic-actions-card .asic-back { color: #b8c8d0; font-size: 12px; line-height: 1.55; }
body[data-page="asic"] .asic-profitability-card dt { color: #9fb1ba; font-size: 11px; }
body[data-page="asic"] .asic-profitability-card dd {
  font-family: Manrope, sans-serif;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
body[data-page="asic"] .asic-actions-card.is-inline-mobile {
  width: 100%;
  margin: 18px 0;
  position: static;
}

/* Comparison uses one joined model selector and a compact mobile selected set. */
body[data-page="compare"] .compare-controls {
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
}
body[data-page="compare"] .compare-model-control {
  display: grid;
  grid-template-columns: minmax(180px, .72fr) minmax(260px, 1.28fr);
  min-width: 0;
  gap: 8px;
}
body[data-page="compare"] .compare-search > span,
body[data-page="compare"] .compare-picker > span { color: #536a76; font-size: 11px; }
body[data-page="compare"] .compare-search input,
body[data-page="compare"] .compare-picker select { font-size: 13px; }
body[data-page="compare"] .compare-market-status,
body[data-page="compare"] .compare-scroll-hint,
body[data-page="compare"] .comparison-warning { font-size: 12px; line-height: 1.5; }
.compare-hardware-strip .compare-device-slot small { font-size: 10.5px; }
.compare-hardware-strip .compare-device-slot strong { font-size: 15px; }
.compare-hardware-strip .compare-device-slot > span { font-size: 11.5px; }
.compare-empty-slot > b { font-size: 12px; }
.compare-empty-slot > small { font-size: 11px; }
.compare-empty-slot > span { font-family: Manrope, sans-serif; font-variant-numeric: tabular-nums; }
.compare-table th,
.compare-table td { font-size: 12.5px; line-height: 1.5; }
.compare-table th a { font-size: 14px; }

/* Calculator: equal controls, readable results and no duplicated empty action. */
body[data-page="calculator"].calculator-empty #addMiner { display: none; }
body[data-page="calculator"] .empty-farm { min-height: 220px; }
body[data-page="calculator"] .empty-farm b { font-size: 18px; }
body[data-page="calculator"] .empty-farm span:not(.button-plus) { color: #5d717c; font-size: 13px; }
body[data-page="calculator"] .empty-farm .button-plus {
  color: currentColor;
  font-size: 18px;
  line-height: 1;
}
body[data-page="calculator"] .result-grid strong,
body[data-page="calculator"] .cost-block strong,
body[data-page="calculator"] .profitability-grid strong,
body[data-page="calculator"] .algorithm-income strong {
  font-family: Manrope, sans-serif;
  font-variant-numeric: tabular-nums;
}
body[data-page="calculator"] .result-grid strong {
  white-space: normal;
  overflow-wrap: anywhere;
}
body[data-page="calculator"] .profitability-grid {
  grid-template-columns: minmax(0, 1fr);
}
body[data-page="calculator"] .profitability-grid > div {
  grid-template-columns: minmax(0, 1fr) minmax(120px, auto);
  gap: 14px;
  align-items: center;
  min-height: 68px;
}
body[data-page="calculator"] .profitability-grid small,
body[data-page="calculator"] .profitability-grid small span {
  min-width: 0;
  color: #aebdc5;
  white-space: normal;
}
body[data-page="calculator"] .profitability-grid strong {
  justify-self: end;
  max-width: 180px;
  color: #f3f7f8;
  font-size: 17px;
  line-height: 1.3;
  text-align: right;
  overflow-wrap: anywhere;
}
body[data-page="calculator"] .profitability-grid strong.is-positive,
body[data-page="calculator"] .profitability-grid strong.is-negative {
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
}
body[data-page="calculator"] .profitability-grid strong.is-positive {
  border-color: rgba(99, 213, 161, .32);
  background: rgba(54, 161, 113, .17);
  color: #8be5bb;
}
body[data-page="calculator"] .profitability-grid strong.is-negative {
  border-color: rgba(255, 138, 122, .32);
  background: rgba(201, 69, 56, .17);
  color: #ff9e92;
}
body[data-page="calculator"] .algorithm-income b { font-size: 12px; }
body[data-page="calculator"] .algorithm-income small { color: #a4b5bd; font-size: 11.5px; }
body[data-page="calculator"] .algorithm-income strong { font-size: 14px; }

/* TCO: stronger chart labelling and clearly separated cost categories. */
body[data-page="tco"] .tco-kpis small { color: #596e79; font-size: 11px; line-height: 1.4; }
body[data-page="tco"] .tco-kpis strong {
  font-family: Manrope, sans-serif;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}
body[data-page="tco"] .tco-kpis span { color: #637782; font-size: 11px; line-height: 1.4; }
body[data-page="tco"] .tco-operations-breakdown span { color: #637782; font-size: 10px; }
body[data-page="tco"] .tco-kpis .tco-total small,
body[data-page="tco"] .tco-kpis .tco-total span { color: #b0c0c8; }
body[data-page="tco"] .tco-kpis .tco-total strong { font-size: 31px; }
body[data-page="tco"] .chart-head > span { color: #536975; font-size: 12px; }
body[data-page="tco"] .legend-row { gap: 10px; font-size: 12px; }
body[data-page="tco"] .legend-row i { width: 10px; height: 10px; }
body[data-page="tco"] .legend-row span { color: #4e6470; }
body[data-page="tco"] .legend-row b {
  color: var(--ink);
  font-family: Manrope, sans-serif;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
body[data-page="tco"] .energy-bars span { color: #405762; font-size: 12px; }
body[data-page="tco"] .energy-bars small { color: #596f7a; font-size: 11.5px; }
body[data-page="tco"] .chart-axis-label { fill: #506671; font: 11px Manrope, sans-serif; }

/* Useful footer navigation and a true bottom-aligned 404. */
.platform-footer { font-size: 12px; }
.platform-footer p { color: #a6b5bd; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 15px;
}
.footer-links a { color: #b5c4cb; font-size: 11.5px; text-decoration: none; }
.footer-links a:hover,
.footer-links a:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
body[data-page="404"] .not-found {
  display: grid;
  min-height: calc(100dvh - 190px);
  place-items: center;
  padding-block: 56px;
}
body[data-page="404"] .not-found p { color: #5d717c; font-size: 14px; line-height: 1.6; }

@media (max-width: 980px) {
  body[data-page="asic"] .spec-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-page="asic"] .asic-actions-card.is-inline-mobile { margin: 18px 0 8px; }
}

@media (max-width: 760px) {
  body:not([data-page="home"]) .page-hero.compact { padding-top: 24px; padding-bottom: 20px; }
  body:not([data-page="home"]) .page-hero.compact h1 { font-size: clamp(34px, 10vw, 44px); }
  body[data-page="compare"] .compare-controls { grid-template-columns: 1fr 1fr; }
  body[data-page="compare"] .compare-model-control {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }
  body[data-page="compare"] .compare-search,
  body[data-page="compare"] .compare-picker { grid-column: auto; }
  .platform-footer { align-items: start; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 600px) {
  body[data-page="catalog"] .catalog-summary { grid-template-columns: 1fr; }
  body[data-page="catalog"] .catalog-summary .coin-market-status { grid-column: 1; grid-row: auto; }
  body[data-page="catalog"] .record-profit-primary b { display: block; margin-top: 3px; }
}

@media (max-width: 560px) {
  body[data-page="asic"] .spec-list { grid-template-columns: minmax(0, 1fr); }
  body[data-page="compare"] .compare-controls { grid-template-columns: 1fr; }
  body[data-page="compare"] .compare-model-control { grid-column: 1; }
  body[data-page="compare"] .compare-empty-slot ~ .compare-empty-slot { display: none; }
  body[data-page="compare"] .compare-empty-slot { min-height: 88px !important; }
  body[data-page="calculator"] .profitability-grid > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
  }
  body[data-page="calculator"] .profitability-grid strong {
    justify-self: start;
    max-width: none;
    text-align: left;
  }
  body[data-page="tco"] .tco-kpis .tco-total strong { font-size: 27px; }
}

@media (max-width: 430px) {
  .shell { width: calc(100% - 20px); }
  body:not([data-page="home"]) .page-hero.compact h1 { font-size: 34px; }
  body:not([data-page="home"]) .page-hero.compact > p { font-size: 13px; }
  body[data-page="asic"] .asic-actions-card.is-inline-mobile { margin-inline: 0; }
  body[data-page="calculator"] .power-core .main-result strong { font-size: 34px; }
}

/* Stage 4.2 — refined technical specification tiles. */
body[data-page="asic"] .spec-list {
  gap: 10px;
}
body[data-page="asic"] .spec-list > div {
  --spec-accent: #708591;
  --spec-icon-bg: #e9eef1;
  --spec-icon-color: #3e5966;
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-content: center;
  align-items: start;
  min-height: 82px;
  padding: 13px 15px;
  border: 1px solid #dce3e6;
  border-radius: 11px;
  background: linear-gradient(145deg, #fff 0%, #f7f9fa 100%);
  box-shadow: 0 3px 12px rgba(28, 48, 58, .035), inset 0 1px #fff;
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
}
body[data-page="asic"] .spec-list > div::before {
  display: none;
}
body[data-page="asic"] .spec-list > div:hover {
  border-color: color-mix(in srgb, var(--spec-accent) 35%, #d8e0e4);
  box-shadow: 0 7px 18px rgba(28, 48, 58, .065), inset 0 1px #fff;
}
body[data-page="asic"] .spec-list .spec-icon {
  grid-column: 1;
  grid-row: 1 / 3;
  display: grid;
  align-self: center;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--spec-accent) 20%, transparent);
  border-radius: 9px;
  background: var(--spec-icon-bg);
  color: var(--spec-icon-color);
}
body[data-page="asic"] .spec-list .spec-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body[data-page="asic"] .spec-list dt {
  grid-column: 2;
  margin: 0;
  color: #667b86;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .015em;
}
body[data-page="asic"] .spec-list dd {
  grid-column: 2;
  align-self: start;
  margin: 5px 0 0;
  color: #17242c;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.35;
  text-align: left;
}
body[data-page="asic"] .spec-list [data-spec-tone="performance"] {
  --spec-accent: #e8b924;
  --spec-icon-bg: #fff4c8;
  --spec-icon-color: #73570c;
}
body[data-page="asic"] .spec-list [data-spec-tone="hardware"] {
  --spec-accent: #5d8296;
  --spec-icon-bg: #e4eef3;
  --spec-icon-color: #335c70;
}
body[data-page="asic"] .spec-list [data-spec-tone="trust"] {
  --spec-accent: #43a47b;
  --spec-icon-bg: #e0f3eb;
  --spec-icon-color: #1b6a4c;
}
body[data-page="asic"] .spec-list [data-spec-tone="note"] {
  --spec-accent: #c99821;
  --spec-icon-bg: #fff3c8;
  --spec-icon-color: #73570c;
  grid-column: 1 / -1;
  grid-template-columns: 34px minmax(170px, 230px) minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: center;
  min-height: 64px;
  border-color: #e7dec4;
  background: linear-gradient(100deg, #fffbf2 0%, #f8faf9 72%);
  box-shadow: inset 3px 0 #d3a62a;
}
body[data-page="asic"] .spec-list [data-spec-tone="note"] .spec-icon {
  grid-row: 1;
}
body[data-page="asic"] .spec-list [data-spec-tone="note"] dt {
  grid-column: 2;
}
body[data-page="asic"] .spec-list [data-spec-tone="note"] dd {
  grid-column: 3;
  align-self: center;
  margin: 0;
  color: #425761;
  font-size: 12.5px;
  font-weight: 550;
}
body[data-page="asic"] .spec-list [data-spec-key="status"] dd {
  width: fit-content;
  padding: 3px 7px;
  border: 1px solid #b7decf;
  border-radius: 999px;
  background: #e8f6f0;
  color: #176348;
  font-size: 11px;
  font-weight: 800;
}
body[data-page="asic"] .spec-list [data-spec-key="hashrate"],
body[data-page="asic"] .spec-list [data-spec-key="power"],
body[data-page="asic"] .spec-list [data-spec-key="efficiency"] {
  background: linear-gradient(145deg, #fff 0%, #f8faf9 100%);
}

@media (max-width: 760px) {
  body[data-page="asic"] .spec-list > div {
    min-height: 78px;
    padding: 13px;
  }
  body[data-page="asic"] .spec-list [data-spec-tone="note"] {
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: start;
  }
  body[data-page="asic"] .spec-list [data-spec-tone="note"] .spec-icon { grid-row: 1 / 3; }
  body[data-page="asic"] .spec-list [data-spec-tone="note"] dt { grid-column: 2; }
  body[data-page="asic"] .spec-list [data-spec-tone="note"] dd {
    grid-column: 2;
    margin-top: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="asic"] .spec-list > div { transition: none; }
}

/* Stage 4.3 — compact, transparent ASIC forecast summary. */
body[data-page="asic"] .asic-profitability-card dl {
  margin-bottom: 11px;
}
body[data-page="asic"] .profit-scope-brief {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 8px;
  align-items: baseline;
  margin: 0 0 11px;
  padding: 9px 10px;
  border: 1px solid rgba(243, 198, 75, .34);
  border-left-width: 3px;
  border-radius: 8px;
  background: rgba(243, 198, 75, .1);
}
body[data-page="asic"] .profit-scope-brief b {
  color: #f2d77d;
  font-size: 11px;
  line-height: 1.35;
}
body[data-page="asic"] .profit-scope-brief span {
  color: #c2cdd2;
  font-size: 10.5px;
  line-height: 1.35;
}
body[data-page="asic"] .profit-source-brief {
  display: flex;
  gap: 9px;
  align-items: center;
  min-width: 0;
  margin-top: 2px;
}
body[data-page="asic"] .profit-source-brief > i {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #56c892;
  box-shadow: 0 0 0 4px rgba(86, 200, 146, .1);
}
body[data-page="asic"] .profit-source-brief.is-historical > i {
  background: #d6ad3e;
  box-shadow: 0 0 0 4px rgba(214, 173, 62, .1);
}
body[data-page="asic"] .profit-source-brief > span {
  display: grid;
  min-width: 0;
  gap: 1px;
}
body[data-page="asic"] .profit-source-brief b {
  color: #eef4f6;
  font-size: 11.5px;
  line-height: 1.35;
}
body[data-page="asic"] .profit-source-brief small {
  color: #91a4ad;
  font-size: 10px;
  line-height: 1.4;
}
body[data-page="asic"] .profit-method {
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
  overflow: hidden;
}
body[data-page="asic"] .profit-method summary {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
  color: #b8c8d0;
  cursor: pointer;
  font-size: 10.5px;
  font-weight: 750;
  line-height: 1.35;
  list-style: none;
}
body[data-page="asic"] .profit-method summary::-webkit-details-marker { display: none; }
body[data-page="asic"] .profit-method summary::after {
  content: "+";
  color: #f3c64b;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
}
body[data-page="asic"] .profit-method[open] summary::after { content: "−"; }
body[data-page="asic"] .profit-method summary:focus-visible {
  outline: 2px solid #f3c64b;
  outline-offset: -2px;
}
body[data-page="asic"] .profit-method > div {
  padding: 10px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
body[data-page="asic"] .profit-method p,
body[data-page="asic"] .asic-profitability-card .profit-method p:not(.profit-scope) {
  margin: 0;
  color: #adbec6;
  font-size: 10.5px;
  line-height: 1.55;
}
body[data-page="asic"] .profit-method p + p { margin-top: 8px; }
body[data-page="asic"] .profit-method p b { color: #dbe4e8; }

@media (max-width: 430px) {
  body[data-page="asic"] .profit-scope-brief {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Stage 4.4 — one site header, matching the homepage on every route. */
.site-header.multi-header {
  top: 0;
  width: 100%;
  min-height: 76px;
  margin: 0;
  padding: 9px max(28px, calc((100vw - 1320px) / 2));
  border: 0;
  border-radius: 0;
  background: #1b2228;
  box-shadow: 0 1px 0 rgba(16, 26, 32, .12);
  backdrop-filter: none;
}
.site-header.multi-header::before,
.site-header.multi-header::after { display: none; }
.site-header.multi-header .brand {
  gap: 11px;
  color: #f4f7f8;
  font-size: 21px;
  font-weight: 750;
}
.site-header.multi-header .brand-mark {
  width: 49px;
  height: 49px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.site-header.multi-header .platform-nav a {
  border-radius: 8px;
  color: #d1d7d9;
  font-size: 12px;
}
.site-header.multi-header .platform-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .055);
}
.site-header.multi-header .platform-nav a[aria-current="page"] {
  background: transparent;
  color: #fff;
}
.site-header.multi-header .platform-nav a[aria-current="page"]::after {
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: #f5c842;
}

@media (max-width: 760px) {
  .site-header.multi-header {
    width: 100%;
    min-height: 76px;
    margin: 0;
    padding: 9px 18px;
  }
  .site-header.multi-header .brand { font-size: 21px; }
  .site-header.multi-header .brand-mark { width: 49px; height: 49px; }
  .site-header.multi-header .platform-nav {
    top: 100%;
    border-color: rgba(216, 229, 236, .14);
    border-radius: 0 0 13px 13px;
    background: rgba(13, 23, 32, .99);
  }
  .site-header.multi-header .platform-nav a { color: #a5b2ba; }
}

@media (max-width: 600px) {
  .site-header.multi-header {
    min-height: 64px;
    padding: 7px 16px;
  }
  .site-header.multi-header .brand { font-size: 19px; }
  .site-header.multi-header .brand-mark { width: 43px; height: 43px; }
}


.farm-components { scroll-margin-top: 100px; display: grid; gap: 10px; margin: 18px 0; }
.farm-components h3, .farm-components h4, .farm-components p { margin: 0; }
.farm-components details { padding: 12px 14px; border: 1px solid #cad5da; border-radius: 12px; background: #fafcfd; color: #132630; }
.farm-components summary { cursor: pointer; font-weight: 750; }
.component-config { display: grid; gap: 10px; padding-block: 14px 6px; border-top: 1px solid #dce4e8; margin-top: 12px; }
.component-config p { color: #405660; font-size: .875rem; }
.component-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 156px), 1fr)); gap: 10px; }
.component-fields label { display: grid; gap: 5px; font-size: .875rem; align-content: end; }
.component-fields :is(input, select) { min-width: 0; min-height: 36px; width: 100%; padding: 5px 8px; border: 1px solid #cad5da; border-radius: 6px; background: white; color: #132630; }
.component-fields input:disabled { opacity: .45; }
.component-confirm { display: flex; align-items: baseline; gap: 7px; font-size: .875rem; }
.component-config > button { justify-self: start; }
#demoEconomics { margin-inline-start: 8px; text-decoration: underline; }

.historical-income { width: 100%; }
.historical-income[hidden] { display: none; }
.historical-income > summary { cursor: pointer; font-weight: 750; }
.historical-income[open] > summary { margin-bottom: 8px; }
.historical-income > div { display: grid; gap: 6px; }
.comparison-history { margin-top: 12px; padding: 14px; border: 1px solid #cad5da; border-radius: 12px; }
.comparison-history p { display: grid; gap: 4px; margin: 0; padding-block: 6px; }
.market-source-dates { overflow-wrap: anywhere; }
#farmHistory { display: block; margin-block: 12px; }
#farmHistory[hidden], #currentIncomeNotice[hidden] { display: none; }

/* Monthly costs and the operating result lead the calculation. */
body:is([data-page="calculator"], [data-page="catalog"], [data-page="tco"]) .page-main { animation: none; }
body[data-page="calculator"] .calculator-basic-settings {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}
body[data-page="calculator"] .calculator-basic-settings .setting-control {
  grid-template-rows: minmax(2.3em, auto) 44px auto;
  padding: 9px 10px;
}
body[data-page="calculator"] .calculator-basic-settings .setting-control > span { font-size: .8125rem; }
body[data-page="calculator"] .calculator-basic-settings .setting-control :is(input, select) { font-size: 1rem; }
body[data-page="calculator"] .calc-toolbar #addMiner { min-height: 44px; padding: 0 14px; }
body[data-page="calculator"] .calc-toolbar #addMiner[hidden] { display: none; }
body[data-page="calculator"] #farmComponents { scroll-margin-top: 95px; }
body[data-page="calculator"] .calculator-extra { margin-top: 16px; border: 1px solid #d3dce1; border-radius: 10px; background: #f7f9fa; }
body[data-page="calculator"] .calculator-extra > summary {
  display: list-item;
  min-height: 46px;
  padding: 12px 14px;
  color: var(--ink);
  cursor: pointer;
  font-size: .875rem;
  font-weight: 750;
}
body[data-page="calculator"] .calculator-extra > summary strong { margin-left: 12px; color: #455e68; white-space: nowrap; }
body[data-page="calculator"] .calculator-extra > .settings-grid { margin: 0 9px 9px; }
body[data-page="calculator"] .calculator-key-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 15px 0 10px;
}
body[data-page="calculator"] .calculator-key-results > div {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  padding: 13px;
  border-radius: 9px;
  border: 1px solid rgba(214, 228, 235, .14);
  background: #18242d;
}
body[data-page="calculator"] .calculator-key-results small { color: #c4d0d8; font-size: .8125rem; line-height: 1.3; }
body[data-page="calculator"] .calculator-key-results small:first-child { min-height: 2.6em; }
body[data-page="calculator"] .calculator-key-results small[hidden] { display: none; }
body[data-page="calculator"] .calculator-key-results strong {
  color: #fff;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
body[data-page="calculator"] .calculator-key-results > div:first-child strong { color: var(--accent); }
body[data-page="calculator"] .calculator-key-results .is-positive,
body[data-page="calculator"] .calculator-quick-summary .is-positive { color: #9be3bd; }
body[data-page="calculator"] .calculator-key-results .is-negative,
body[data-page="calculator"] .calculator-quick-summary .is-negative { color: #ffb6ab; }
body[data-page="calculator"] .calculator-quick-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body[data-page="calculator"] .calculator-quick-summary > div:last-child { grid-column: auto; }
body[data-page="calculator"] .calculator-quick-summary strong { overflow-wrap: anywhere; }
body[data-page="calculator"] .power-core { margin: 10px 0 12px; padding: 12px 14px; border-left-width: 1px; }
body[data-page="calculator"] .power-core .main-result strong { margin-top: 3px; font-size: 23px; }
body[data-page="calculator"] .power-core .main-result strong span { font-size: 14px; }
body[data-page="calculator"] .profitability-source .setting-control { margin-top: 10px; }
body[data-page="calculator"] .profitability-source .setting-control > :is(span, small) { min-height: 0; }
@media (max-width: 600px) {
  body[data-page="calculator"] .calculator-hero { padding-block: 28px 17px; }
  body[data-page="calculator"] .calculator-basic-settings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-page="calculator"] .calc-toolbar { align-items: flex-start; gap: 10px; }
}
@media (max-width: 360px) {
  body[data-page="calculator"] .calculator-extra > summary strong { display: block; margin-left: 0; }
}

/* Keep the monthly operating result in the same place in every catalog entry. */
body[data-page="catalog"] .record-profit { display: grid; gap: 6px; justify-items: start; }
body[data-page="catalog"] .record-profit .record-profit-net {
  display: grid;
  width: 100%;
  gap: 4px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(181, 137, 28, .18);
  color: #425964;
  font-size: .875rem;
}
body[data-page="catalog"] .record-profit .record-profit-net .record-profit-status {
  padding: 0;
  border: 0;
  background: none;
  font-size: clamp(1.1875rem, 2.1vw, 1.5rem);
  line-height: 1.25;
}
body[data-page="catalog"] .record-profit-secondary { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 9px; }
body[data-page="catalog"] .record-profit small.record-profit-source { color: #536976; font-family: Manrope, sans-serif; }

/* Blocked ownership calculations identify the components that need attention. */
body[data-page="tco"] .tco-dependency-card {
  max-width: 850px;
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid #e6c976;
  border-radius: 14px;
  background: #fffaf0;
  color: var(--ink);
}
body[data-page="tco"] .tco-dependency-card[hidden] { display: none; }
body[data-page="tco"] .tco-dependency-card h2 { margin: 0; font-size: clamp(1.25rem, 3vw, 1.5rem); line-height: 1.25; }
body[data-page="tco"] .tco-dependency-card p { margin: 9px 0 16px; color: #536976; font-size: .9375rem; }
body[data-page="tco"] #tcoDependencyReason { display: grid; gap: 12px; margin: 0 0 20px; list-style: none; padding: 0; }
body[data-page="tco"] #tcoDependencyReason > li { padding: 11px 14px; border-left: 2px solid #d5ad46; background: #fff; }
body[data-page="tco"] #tcoDependencyReason ul { margin: 5px 0 0; padding-left: 1.15em; font-size: .875rem; }
body[data-page="tco"] #tcoDependencyReason ul li + li { margin-top: 3px; }
body[data-page="tco"] .tco-dependency-card .button { min-height: 44px; }
