/* Clarity R2: compact empty history, explicit optional competing records. */
.badge.competing{color:#bbc7d8;background:#18212d;border-color:#3a475a;white-space:normal;line-height:1.35;text-align:center;max-width:100%;overflow-wrap:anywhere}
.badge.competing::before{background:#91a2b8}
.competing-note{color:#b8c2d2;font-size:13px;line-height:1.5}
.pool-competing-filter{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-height:44px;margin:0 0 18px;color:#d9e1ed;font-size:14px;cursor:pointer}
.pool-competing-filter input{width:20px;height:20px;min-width:20px;margin:0;accent-color:#89b5ed}
.pool-competing-filter input:focus-visible{outline:2px solid #89b5ed;outline-offset:4px}
.pool-competing-count{padding:3px 9px;border-radius:999px;background:#202935;font-variant-numeric:tabular-nums}
.pool-history.history-empty-compact{padding:18px 20px}
.history-empty-compact .pool-history-summary-label,.history-empty-compact .pool-history-reading,.history-empty-compact .pool-history-coverage,.history-empty-compact .pool-history-profile-coverage,.history-empty-compact .pool-history-latest,.history-empty-compact .pool-history-inspection,.history-empty-compact .pool-history-scale,.history-empty-compact .pool-history-plot svg,.history-empty-compact .pool-history-times,.history-empty-compact .pool-history-note{display:none}
.history-empty-compact .pool-history-chart{display:block;height:auto}
.history-empty-compact .pool-history-plot{height:auto;min-height:0}
.history-empty-compact .pool-history-empty{position:static;align-items:flex-start;text-align:left;padding:0;gap:5px}
.history-empty-compact .pool-history-empty span{max-width:none}
.history-empty-compact .pool-history-head{margin-bottom:12px}
@media(max-width:520px){.pool-competing-filter{font-size:13px;gap:8px}.pool-history.history-empty-compact{padding:16px 14px}}

/* Appearance control; a single 44px target fits beside the existing menu. */
.pool-appearance{position:relative;flex:0 0 auto;color:#f4f6fa}
.pool-appearance>summary{display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:1px solid #414754;border-radius:12px;background:#11141b;cursor:pointer;list-style:none}
.pool-appearance>summary::-webkit-details-marker{display:none}
.pool-appearance>summary:focus-visible,.pool-theme-choices button:focus-visible{outline:2px solid #f2c04a;outline-offset:3px}
.pool-appearance-panel{position:absolute;right:0;top:calc(100% + 12px);width:min(296px,calc(100vw - 36px));padding:18px;border:1px solid #505662;border-radius:16px;background:#11141b;box-shadow:0 12px 40px #0008;z-index:100}
.pool-appearance-panel>strong{display:block;font-size:16px;margin-bottom:14px}
.pool-theme-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.pool-theme-choices button{display:flex;gap:8px;align-items:center;justify-content:center;min-height:46px;padding:8px;border:1px solid #505662;border-radius:10px;background:#1c2029;color:#fff;font:inherit;font-size:14px;font-weight:600;line-height:1.3;cursor:pointer}
.pool-theme-choices button[aria-pressed=true]{border-color:#f2c04a;box-shadow:inset 0 0 0 1px #f2c04a}
.pool-theme-swatch{display:inline-block;width:18px;height:18px;flex:0 0 18px;border:1px solid #ddd7;border-radius:50%}
.pool-theme-swatch--black{background:#07080b}
.pool-theme-swatch--gold{background:linear-gradient(125deg,#704003,#f2c04a,#93600a)}
.pool-theme-motion{display:flex;align-items:center;gap:10px;min-height:44px;margin-top:12px;font-size:14px}
.pool-theme-motion[hidden],.pool-appearance-panel p[hidden]{display:none}
.pool-theme-motion input{width:20px;height:20px;margin:0;accent-color:#f2c04a;flex:0 0 20px}
.pool-appearance-panel p{font-size:12px;line-height:1.5;margin:10px 0 0}
@media(max-width:1360px){html[data-pool-language] .pool-global-nav,html[data-pool-language] .pool-language-switch--desktop{display:none}html[data-pool-language] .pool-mobile-menu{display:block;margin-left:auto}html[data-pool-language] .pool-live{margin-left:0}}
@media(max-width:480px){html[data-pool-language] .pool-header-inner{gap:10px}.pool-appearance-panel{position:fixed;top:78px;right:18px}}

/* Wallet 1.0.3 palette: brightest text-bearing gold #9c6c0a; white text. */
html[data-pool-theme=gold]{--bg:#93600a;--bg-soft:#704003;--panel:#855303;--panel-2:#704003;--text:#fff;--muted:#fff;--line:#f2c04a66;--line-strong:#f2c04a99;--shadow:0 20px 60px #55310066;--history-accent:#fff;--blue:#fff;--red-soft:#f2c04a22;--gold-surface:linear-gradient(115deg,#704003 0%,#93600a 22%,#9c6c0a 38%,#704003 50%,#986709 72%,#704003 100%);color-scheme:dark}
html[data-pool-theme=gold] body.pool-body{position:relative;isolation:isolate;background:#93600a!important;color:#fff}
html[data-pool-theme=gold] body.pool-body::before{content:"";position:fixed;inset:-35%;z-index:-1;pointer-events:none;background:var(--gold-surface);animation:pool-gold-drift 10.8s ease-in-out infinite alternate;animation-play-state:paused}
html[data-pool-theme=gold] body.pool-body :is(h1,h2,h3,h4,h5,p,span,small,strong,a,button,label,input,select,textarea,th,td,dt,dd,summary,time,caption,code,div){color:#fff!important;text-shadow:0 1px 1px #53310066}
html[data-pool-theme=gold] body.pool-body :is(th,td)::before{color:#fff!important}
html[data-pool-theme=gold] body.pool-body :is(input,textarea)::placeholder{color:#fff;opacity:1}
html[data-pool-theme=gold] body.pool-body :is(.pool-header,.dashboard-tabs,.pool-mobile-menu nav,.rub-market,.pool-appearance-panel){background:#704003!important;border-color:transparent!important}
html[data-pool-theme=gold] body.pool-body :is(.pool-panel,.pool-metric,.pool-tip,.profile-row,.data-table-wrap,.miner-search,.miner-account-head,.miner-live-card,.miner-profile-card,.miner-financial-strip,.connect-card,.merge-overview-band,.merge-overview-copy,.merge-overview-metrics,.merge-callout,.merge-status-banner,.reward-stream,.merged-connect-strip,.miner-merge-card,.asset-balance,.connection-builder,.builder-copy,.neutral-callout,.stats-v2-panel,.stats-v2-metric,.pool-history,.native-profile-card,.native-policy,.network-difficulty-card,.cabinet-section,.cabinet-policy,.cabinet-estimates,.personal-rewards,.maturity-callout){background:var(--gold-surface)!important;background-size:200% 200%!important;border-color:transparent!important}
html[data-pool-theme=gold] body.pool-body :is(.pool-panel-head,.data-table th,.stats-card-table tbody tr,.connect-line,.miner-financial-strip>div,.miner-profile-values>div,.merge-overview-metrics>div,.miner-merge-stats>div,.builder-output>div,.asset-balance dl>div,.h3-rate,.integrity-item){background:#855303!important;border-color:transparent!important}
html[data-pool-theme=gold] body.pool-body :is(input,select,textarea,.copy-button,.miner-search button,.btc-account-search button,.native-connection button,.builder-output button,.stats-table-pager button,.dashboard-tab-mobile-controls button,.mining-mode-tabs button,.pool-history-modes button,.pool-history-ranges,.filter-chip,.pool-language-switch,.pool-mobile-menu summary,.pool-appearance>summary,.pool-theme-choices button,.rub-market__pause){background:#704003!important;border-color:transparent!important}
html[data-pool-theme=gold] body.pool-body :is(.dashboard-tab.active,.dashboard-tab:hover,.filter-chip.active,.pool-history-ranges button[aria-pressed=true],.pool-history-modes button[aria-pressed=true],.mining-mode-tabs button[aria-selected=true],.pool-language-option[aria-pressed=true],.pool-theme-choices button[aria-pressed=true]){background:#93600a!important;border-color:transparent!important;box-shadow:none}
html[data-pool-theme=gold] body.pool-body :is(.badge,.tab-count,.asset-badge,.pool-competing-count,.pool-history-badge,.mode-pill,.stats-v2-availability,.stats-context-badges>span,.rub-market__change,.merge-state-pill,.pool-live){background:#704003!important;border-color:transparent!important}
html[data-pool-theme=gold] body.pool-body :is(.progress-track,.maturity-wide-progress,.activation-track){background:#704003!important}
html[data-pool-theme=gold] body.pool-body :is(.progress-track,.maturity-wide-progress,.activation-track)>i{background:#ffdf84!important}
html[data-pool-theme=gold] .pool-history{--history-accent:#fff}
html[data-pool-theme=gold] body.pool-body :is(.hash-link,.pool-panel-head a,.pool-global-nav a){text-decoration:underline;text-underline-offset:3px}
html[data-pool-theme=gold] body.pool-body :is(button,input,select,textarea,a,summary):focus-visible{outline:2px solid #fff;outline-offset:3px}
html[data-pool-theme=gold] body.pool-body .pool-theme-swatch--black{background:#07080b}
html[data-pool-theme=gold] body.pool-body .pool-theme-swatch--gold{background:linear-gradient(125deg,#704003,#f2c04a,#93600a)}
html[data-pool-theme=gold] :is(.pool-metric.emphasis,.pool-history,.asset-balance){animation:pool-gold-surface 8.1s ease-in-out infinite alternate;animation-play-state:paused}
html[data-pool-theme=gold][data-pool-motion=running] body.pool-body::before,html[data-pool-theme=gold][data-pool-motion=running] :is(.pool-metric.emphasis,.pool-history,.asset-balance){animation-play-state:running}
@keyframes pool-gold-drift{from{transform:translate3d(-8%,-3%,0)}to{transform:translate3d(8%,3%,0)}}
@keyframes pool-gold-surface{from{background-position:0% 25%}to{background-position:100% 75%}}
@media(prefers-reduced-motion:reduce){html[data-pool-theme=gold] body.pool-body::before,html[data-pool-theme=gold] :is(.pool-metric.emphasis,.pool-history,.asset-balance){animation:none!important}}
@media(forced-colors:active){.pool-appearance>summary,.pool-appearance-panel,.pool-theme-choices button{border-color:ButtonText}html[data-pool-theme=gold] body.pool-body::before{display:none}}
html[data-pool-theme=gold] body.pool-body :is(.h2-personal-overview,.h2-worker-section,.h2-reward-stream){background:var(--gold-surface)!important;border-color:transparent!important}
html[data-pool-theme=gold] body.pool-body :is(.h2-live-metric,.h2-period-metric,.h2-window-guide>div,.h2-period-control,.h2-personal-status){background:#855303!important;border-color:transparent!important}
html[data-pool-theme=gold] body.pool-body :is([data-miner-mode-button],.h2-period-control button){background:#704003!important;border-color:transparent!important}
html[data-pool-theme=gold] body.pool-body :is([data-miner-mode-button][aria-pressed=true],.h2-period-control button[aria-pressed=true]){background:#93600a!important;border-color:transparent!important;box-shadow:none}

/* Gold FIX1: retain semantic colors from the black theme.
   These selectors deliberately follow the gold base-text rule above. No data,
   status derivation, theme preference, or black-theme rule is changed. */
html[data-pool-theme=gold] body.pool-body :is(.profile-online,.integrity-ok){color:var(--green,#42d69a)!important}
html[data-pool-theme=gold] body.pool-body :is(.pool-live.live,[data-merge-state="live"] .merge-state-pill){color:#b7f2d7!important}
html[data-pool-theme=gold] body.pool-body .mode-pill.active{color:#a8ecd0!important}
html[data-pool-theme=gold] body.pool-body .pool-history-badge.recording{color:#66d6a4!important}
html[data-pool-theme=gold] body.pool-body :is(.stats-metric-note.is-live,.stats-v2-availability.is-live,.stats-context-badges>.is-live){color:#75d7ad!important}
html[data-pool-theme=gold] body.pool-body .h2-personal-status.is-live{color:#76ddb3!important}
html[data-pool-theme=gold] body.pool-body [data-telemetry="live"] .native-telemetry-state{color:#54d6a5!important}
html[data-pool-theme=gold] body.pool-body .rub-market__change[data-direction="up"]{color:#66e4ae!important}
html[data-pool-theme=gold] body.pool-body :is(.pool-intro h1 span,.pool-panel-head a,.pool-panel-head button,.merge-hero-copy small,.merge-kicker,.merge-overview-copy button,.text-button,.merged-connect-strip small){color:var(--red,#ef3f47)!important}
html[data-pool-theme=gold] body.pool-body .latest-block-streams h4 button{color:var(--accent,#f33e49)!important}
html[data-pool-theme=gold] body.pool-body .native-connection button[data-go]{color:#ff717c!important}
html[data-pool-theme=gold] body.pool-body .mode-pill.offline{color:#c99397!important}
html[data-pool-theme=gold] body.pool-body [data-merge-state="unknown"] .merge-state-pill{color:#d99b9f!important}
html[data-pool-theme=gold] body.pool-body .error-state{color:#ff9fa5!important}
html[data-pool-theme=gold] body.pool-body .h2-period-metric.is-reject strong{color:#ffbdc4!important}
html[data-pool-theme=gold] body.pool-body .rub-market__change[data-direction="down"]{color:#ff8791!important}
/* Nested translated labels inherit the semantic label's color, not base white. */
html[data-pool-theme=gold] body.pool-body :is(.profile-online,.integrity-ok,.pool-live.live,[data-merge-state="live"] .merge-state-pill,.mode-pill.active,.pool-history-badge.recording,.stats-metric-note.is-live,.stats-v2-availability.is-live,.stats-context-badges>.is-live,.h2-personal-status.is-live,[data-telemetry="live"] .native-telemetry-state,.rub-market__change[data-direction="up"],.pool-intro h1 span,.pool-panel-head a,.pool-panel-head button,.merge-hero-copy small,.merge-kicker,.merge-overview-copy button,.text-button,.merged-connect-strip small,.latest-block-streams h4 button,.native-connection button[data-go],.mode-pill.offline,[data-merge-state="unknown"] .merge-state-pill,.error-state,.h2-period-metric.is-reject strong,.rub-market__change[data-direction="down"]) :is(span,strong,small,a,button,label,code){color:inherit!important}

/* Gold FIX1: remove decorative frames while preserving border dimensions,
   chart strokes, status dots, and functional focus-visible outlines. The
   border-image reset removes the native/merged cabinet's braided SVG frame. */
html[data-pool-theme=gold] body.pool-body,
html[data-pool-theme=gold] body.pool-body *,
html[data-pool-theme=gold] body.pool-body *::before,
html[data-pool-theme=gold] body.pool-body *::after{border-color:transparent!important;border-image:none!important;box-shadow:none!important}
html[data-pool-theme=gold] body.pool-body .merge-profile-row::before{display:none}
/* Active choices remain distinguishable by their gold fill; outlines appear
   only during keyboard navigation, including focusable charts and tables. */
html[data-pool-theme=gold] body.pool-body :focus-visible{outline:2px solid #fff!important;outline-offset:3px}
