/* Bitcoin orange and Bricolage on smoked glass. The homepage keeps its espresso theme. */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/bricolage-grotesque-latin.woff2') format('woff2');
}
:root {
  color-scheme: dark;
  --bg: #10151c;
  --paper: #10151c;
  --surface: rgb(32 40 51 / .68);
  --surface-raised: rgb(220 232 248 / .065);
  --ink: #f3f6fb;
  --muted: #b5bfce;
  --line: rgb(221 233 249 / .18);
  --glass-edge: rgb(241 247 255 / .29);
  --glass-reflection: rgb(235 245 255 / .075);
  --glass-shadow: rgb(0 5 13 / .24);
  --glass-filter: blur(20px) saturate(135%);
  --ambient-orange: rgb(255 138 61 / .12);
  --ambient-silver: rgb(153 188 233 / .14);
  --orange: #ff792f;
  --orange-text: #ffb27b;
  --dark-orange: #ffb27b;
  --orange-soft: rgb(255 138 61 / .13);
  --cream: rgb(220 232 248 / .065);
  --green: #a5d5a3;
  --success-soft: rgb(115 173 111 / .14);
  --danger: #ffb3a6;
  --warning: #ffbd80;
}
html[data-theme=light] {
  color-scheme: light;
  --bg: #edf1f6;
  --paper: #edf1f6;
  --surface: rgb(255 255 255 / .7);
  --surface-raised: rgb(96 122 155 / .07);
  --ink: #192430;
  --muted: #526171;
  --line: rgb(75 100 129 / .26);
  --glass-edge: rgb(255 255 255 / .95);
  --glass-reflection: rgb(255 255 255 / .6);
  --glass-shadow: rgb(40 65 96 / .08);
  --ambient-orange: rgb(255 155 83 / .15);
  --ambient-silver: rgb(123 169 225 / .18);
  --orange-text: #943b0e;
  --dark-orange: #943b0e;
  --orange-soft: rgb(255 138 61 / .15);
  --cream: rgb(96 122 155 / .07);
  --green: #285f37;
  --success-soft: #e1efde;
  --danger: #a12b24;
  --warning: #a34811;
}
html body { background: radial-gradient(ellipse at 8% 16%,var(--ambient-orange),transparent 48%),radial-gradient(ellipse at 96% 38%,var(--ambient-silver),transparent 60%),var(--bg); background-attachment: fixed; color: var(--ink); font-family: 'Bricolage Grotesque', sans-serif; font-size: 18px; font-weight: 400; font-optical-sizing: auto; }
html ::selection { background: var(--orange); color: #211109; }
html :is(h1,h2,h3,h4) { color: var(--ink); font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; }
html h1 { font-weight: 800; letter-spacing: -.045em; }
html :is(p,.muted,.nav-caption,.topline,.profile small,footer,.page-intro,.metric-label,dt) { color: var(--muted); }
html :is(button,a,input,select,textarea,summary):focus-visible { outline: 2px solid var(--orange-text); outline-offset: 4px; }
html :is(.eyebrow,.text-link,.section-heading a,.text-button,.instrument-bottom) { color: var(--orange-text); }
html .sidebar { background: var(--surface); border-color: var(--line); }
html .brand { color: var(--ink); font-weight: 800; letter-spacing: -.045em; }
html .brand .muted { color: var(--orange); }
html .nav { color: var(--muted); }
html .nav:hover { color: var(--ink); background: var(--surface-raised); }
html .nav.active, html .nav.active:hover { background: var(--orange-soft); color: var(--ink); box-shadow: inset 3px 0 var(--orange); }
html .nav-divider { color: var(--orange-text); border-color: var(--line); }
html .avatar { background: var(--orange-soft); color: var(--orange-text); }
html .profile { color: var(--ink); border-color: var(--line); }
html .preview { background: var(--surface-raised); border-color: var(--line); }
html .preview :is(span,b,label,select) { color: var(--ink); }
html .header-actions :is(a,button) { color: var(--ink); border-color: var(--line); background: var(--surface); }
html .header-actions :is(a,button):hover { background: var(--orange-soft); }
html .language-switch { background: var(--surface-raised); border-color: var(--line); }
html .language-switch button { color: var(--muted); }
html .language-switch button[aria-pressed=true] { background: var(--orange-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
html .primary { background: var(--orange); color: #211109; border-color: var(--orange); box-shadow: none; font-weight: 750; }
html .primary:hover { background: #ff984f; border-color: #ff984f; }
html .outline { background: transparent; color: var(--ink); border-color: var(--line); }
html .outline:hover { background: var(--surface-raised); }
html :is(.card,.device-card,.stats article,.instrument,.account-grid .card,.dashboard-news) { background: var(--surface); border-color: var(--line); box-shadow: none; }
html .welcome p, html .care p { color: var(--muted); font-weight: 400; }
html .notice { background: var(--orange-soft); border-color: var(--line); color: var(--ink); }
html :is(.empty,.community-row,dl>div,.event,.care,footer) { border-color: var(--line); }
html .device-top { color: var(--green); }
html .device-num { background: var(--surface-raised); color: var(--orange-text); }
html .device-foot, html .device-card>p { color: var(--muted); }
html .device-foot span:last-child { color: var(--orange-text); }
html .event-icon { background: var(--success-soft); color: var(--green); }
html .segmented { background: var(--surface-raised); }
html .segmented button { background: transparent; color: var(--muted); }
html .segmented button[aria-pressed=true] { background: var(--orange-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
html .performance #chart text { fill: var(--muted); font-family: 'Bricolage Grotesque', sans-serif; }
html .community-activity { margin-top: 36px; }
html .community-activity .page-intro { margin: 12px 0 24px; }

/* The photographic hardware stays recognisable inside the glass cockpit. */
html .mining-theater { background: var(--surface); border-color: var(--line); box-shadow: none; }
html .mining-theater .hero-copy { background: transparent; }
html .mining-theater .hero-copy h2 { font-weight: 800; letter-spacing: -.045em; }
html .mining-theater .hero-copy>p { color: var(--muted); font-weight: 400; }
html .membership-allocation { color: var(--muted); }
html .theater-toolbar .status-pill { color: var(--green); }
html .hash-speed>span:first-child { color: var(--orange-text); }
html .hash-speed>span:last-child, html .hash-speed b { color: var(--muted); }
html .mining-theater .hero-bottom span, html .mining-theater .hero-copy .speed-caption { color: var(--muted); }
html .mining-theater .hero-bottom b { color: var(--ink); }
html .speed-bar { background: var(--surface-raised); }
html .speed-bar>span { background: var(--orange); }
html .scene-wrap, html .hardware-photo { background: rgb(7 13 22 / .48); }
html .digital-twin { background: rgb(18 26 37 / .36); }
html .digital-twin .scene-label, html .digital-twin .scene-top-label,
html .digital-twin .hash-readout>div, html .digital-twin #hash-readout-state { color: #c5cfdd!important; }
html .digital-twin .hash-matrix span { color: #b5bfce!important; }
html .digital-twin .hash-matrix .hash-highlight { background: rgb(255 138 61 / .1)!important; color: #ffd0ab!important; }
html .digital-twin .hash-readout { background: rgb(231 242 255 / .035); border-color: rgb(224 236 252 / .18); }
html .scene-controls button { background: rgb(226 238 255 / .065); color: #f3f6fb; border-color: rgb(224 236 252 / .25); }
html .scene-controls button:hover { background: rgb(226 238 255 / .14); }
html .digital-twin .scene-fallback { color: #c5cfdd; background: radial-gradient(ellipse,rgb(168 199 237 / .1),transparent 70%); }
html .digital-twin .fallback-cube { background: rgb(226 238 255 / .08); color: #ffb27b; }
html .rig-dock, html .rig-choice { background: var(--surface); border-color: var(--line); }
html .rig-choice[aria-pressed=true] { background: var(--orange-soft); border-color: var(--orange); box-shadow: inset 3px 0 var(--orange); }
html .rig-choice-id { color: var(--orange-text); border-color: var(--line); }
html .rig-choice small, html .rig-empty, html .theater-caption { color: var(--muted); }
html .plan-switch { background: var(--surface-raised); border-color: var(--line); }
html .plan-switch button { color: var(--muted); }
html .plan-switch button[aria-pressed=true] { background: var(--orange-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }

/* Orange carries the numbers. Green and red continue to carry status meanings. */
html .mining-instruments .instrument { background: var(--surface); border-color: var(--line); border-top: 3px solid var(--line); box-shadow: none; }
html .mining-instruments .ticket-instrument { background: radial-gradient(ellipse at 100% 25%,var(--orange-soft),transparent 70%),var(--surface); border-top-color: var(--orange); }
html .ticket-instrument .eyebrow { color: var(--orange-text); }
html .ticket-instrument h2 { color: var(--ink); }
html .ticket-instrument .work-rate>strong { color: var(--orange-text); text-shadow: none; }
html .ticket-instrument .work-rate>span { color: var(--muted); }
html .ticket-instrument .work-indicator { background: var(--success-soft); color: var(--green); border-color: var(--green); }
html .work-totals>div, html .work-totals>div:last-child { background: var(--surface-raised); color: var(--ink); border-color: var(--line); }
html .work-totals strong, html .work-totals>div:last-child strong { color: var(--orange-text); }
html .work-totals span, html .work-totals>div:last-child span { color: var(--muted); }
html .mining-instruments .ticket-instrument>p { color: var(--muted); }
html .ticket-instrument .instrument-bottom, html .network-instrument .instrument-bottom { color: var(--muted); border-color: var(--line); }
html .work-lane rect { fill: var(--surface-raised); stroke: var(--line); }
html .work-lane text { fill: var(--muted); }
html .work-lane.active rect { fill: var(--orange-soft); stroke: var(--orange-text); }
html .work-lane.active text { fill: var(--ink); }
html .work-lane path { stroke: var(--line); }
html .work-lane.active path { stroke: url(#work-line); }
html .network-instrument .eyebrow { color: var(--orange-text); }
html .network-clock .clock-track { stroke: var(--line); }
html .network-clock .clock-elapsed { stroke: var(--orange-text); }
html .network-clock strong { color: var(--orange-text)!important; }
html .network-clock>div>span { color: var(--muted); }
html #simulate-network-block { background: var(--surface-raised); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
html .network-cadence { border-color: var(--line); }
html .network-cadence>div { background: var(--surface-raised); }
html .network-cadence b { color: var(--ink); }
html .network-cadence span { color: var(--muted); }
html .reward-caption b { color: var(--orange-text); }
html .reward-caption>span { color: var(--muted); }
html .mining-instruments .chance-number { background: var(--orange-soft); color: var(--orange-text); border-color: var(--line); }
html .mining-instruments .chance-percent, html .mining-instruments #chance-context { color: var(--muted); }
html .chance-horizons { background: var(--surface-raised); }
html .chance-horizons button { color: var(--muted); }
html .chance-horizons button[aria-pressed=true] { background: var(--orange-soft); color: var(--ink); box-shadow: none; }
html #overview>.stats>article { background: var(--surface); border-top-color: var(--line); }
html #overview>.stats>article>strong { color: var(--orange-text); }
html #overview>.stats>article>strong small { color: var(--muted); }
html .block-fund-card { background: var(--surface); border-color: var(--line); color: var(--ink); }
html .block-fund-card small { color: var(--muted); }
html .block-fund-icon { color: var(--orange-text); }
html .block-fund-card.has-block-find { background: var(--orange-soft); color: var(--ink); border-color: var(--orange); }
html .block-fund-card.has-block-find .eyebrow, html .block-fund-card.has-block-find button { color: var(--orange-text); }

html .news-change.positive { color: var(--green); }
html .news-change.negative { color: var(--danger); }
html .news-chart path { stroke: var(--orange-text); }
html .news-category { color: var(--orange-text); }
html .news-controls button { color: var(--ink); border-color: var(--line); background: var(--surface-raised); }
html .news-health button { color: var(--orange-text); }
html .account-tabs button { color: var(--muted); background: var(--surface); border-color: var(--line); }
html .account-tabs button[aria-pressed=true] { color: var(--ink); background: var(--orange-soft); border-color: var(--orange); }
html :is(.account-section,.service-form) :is(input,select,textarea),
html :is(#account-dialog,#live-account-dialog) :is(input,select),
html .knowledge-search input, html .preview select { background: var(--surface-raised); color: var(--ink); border-color: var(--line); font: inherit; }
html input::placeholder, html textarea::placeholder { color: var(--muted); opacity: 1; }
html .check-row input { accent-color: var(--orange); }
html .danger { color: var(--danger)!important; border-color: var(--danger)!important; }
html :is(.dialog-error,#account-unsaved,#live-account-feedback.error) { color: var(--danger); }
html :is(.session-row,.invoice-row,.service-draft,.account-legal-links) { border-color: var(--line); }
html .release-list details, html .history-list details { background: var(--surface); border-color: var(--line); }
html .release-list time, html .history-list time { color: var(--orange-text); }
html .legal-page .legal-source-note, html .explain-figure { background: var(--surface-raised); border-color: var(--line); }
html .explain-figure svg { fill: var(--surface); stroke: var(--orange-text); }
html .figure-labels, html .explain-figure figcaption { color: var(--muted); }
html .reward-numbers, html .lesson-number, html .knowledge-sources a { color: var(--orange-text); }
html .faq-group details { background: var(--surface); border-color: var(--line); }
html .faq-group details[open] { background: var(--surface-raised); border-color: var(--orange-text); }
html .site-footer, html .site-footer a { color: var(--muted)!important; border-color: var(--line); }
html dialog, html #live-account-dialog, html .block-fund-dialog { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: 0 24px 100px #00081580; -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter); }
html dialog::backdrop, html #live-account-dialog::backdrop { background: #000814b3; }
html .block-fund-dialog::backdrop { background: #000814b3; }
html .block-fund-dialog a { color: var(--orange-text); }
html .block-fund-dialog button { background: var(--orange); color: #211109; border-color: var(--orange); }
html .plan-option, html .math-formula { background: var(--surface-raised); border-color: var(--line); }
html .close { color: var(--ink); }
html #toast { background: var(--orange-soft); color: var(--ink); border: 1px solid var(--line); }
html .skip { background: var(--surface-raised); color: var(--ink); }
html :is(.dot,.profile-dot,.network-beacon,.working .rig-led) { background: var(--green); }
html .warning { color: var(--warning)!important; }
html .warning .dot { background: var(--warning); }
html body[data-state=stale] .status-pill, html body[data-state=offline] .status-pill { color: var(--warning); }

/* Blur only the main surfaces. The smaller controls inherit depth without nested filters. */
html .sidebar,
html .mining-theater,
html :is(.card,.device-card,.dashboard-news),
html .mining-instruments .instrument,
html #overview>.stats>article,
html .block-fund-card {
  background: linear-gradient(135deg,var(--glass-reflection),transparent 48%),var(--surface);
  border-color: var(--line);
  border-top-color: var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-reflection),0 18px 44px var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-filter);
  backdrop-filter: var(--glass-filter);
}
html .mining-theater { border-radius: 26px; }
html .mining-instruments .instrument { border-top-width: 1px; }
html .mining-instruments .ticket-instrument { border-top-color: #ffb27b66; }
html .nav.active, html .nav.active:hover { background: linear-gradient(115deg,rgb(255 169 105 / .2),var(--orange-soft)); box-shadow: inset 0 1px 0 #ffe0c333,inset 3px 0 var(--orange); }
html :is(.language-switch,.segmented,.chance-horizons,.account-tabs button,.header-actions a,.header-actions button) { box-shadow: inset 0 1px 0 var(--glass-reflection); }
html :is(.language-switch button,.segmented button,.chance-horizons button)[aria-pressed=true] { box-shadow: inset 0 1px 0 var(--glass-edge),0 2px 8px var(--glass-shadow); }
html .block-fund-card.has-block-find { border-color: var(--orange); background: linear-gradient(120deg,var(--orange-soft),var(--surface)); }
html .photo-caption { background: rgb(18 26 37 / .58); border: 1px solid rgb(235 245 255 / .25); border-radius: 30px; padding: 7px 11px; -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --surface: #202833; --glass-filter: none; }
  html[data-theme=light] { --surface: #fff; }
}
@media (prefers-reduced-transparency: reduce) {
  :root { --surface: #202833; --glass-filter: none; }
  html[data-theme=light] { --surface: #fff; }
  html .photo-caption { background: #172230; }
}
@media (max-width:600px) { html body { font-size: 18px; } }
