/* captions-r12 (owner rule, 24.09.2026 night): explanatory captions and status text must NEVER move a button or the
   layout. Explanations live in (i) tooltips; status/value text sits in reserved, fixed boxes. Cross-page fixes found
   by the button-geometry audit (sheet 23-ПОДПИСИ-КНОПКИ); the same class names serve the preview and the live pages.
   The Account page carries its own rules (account-r12.css). */

/* ---------------------------------------------------------------- Mine: status | Accepted | Hash rate | Start/Stop
   "Ready" -> "● Running" pushed both metrics ~30px and the button took the width of its label ("Start preview" 173px,
   "Stop Mining" 160px), so it slid sideways. The status takes the free space (one line, ellipsis), every other box is
   fixed; the button keeps one box whatever its label (a long label wraps inside it). */
#app .mining-controls>:first-child:not(.metric):not(.btn){flex:1 1 0;min-width:0;height:1.5em;line-height:1.5em;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#app .mining-controls>:first-child:not(.metric):not(.btn) .status-dot{vertical-align:middle}
#app .mining-controls>.metric{flex:0 0 auto;white-space:nowrap}
#app .mining-controls>.metric [data-miner-accepted]{display:inline-block;min-width:4ch;font-variant-numeric:tabular-nums}
#app .mining-controls>.btn[data-action="toggle-mining"]{flex:0 0 auto;width:11.6em;max-width:48%;justify-content:center;white-space:normal;line-height:1.05;text-align:center}
@media (min-width:701px) and (max-width:1150px){#app .mining-controls>.btn[data-action="toggle-mining"]{width:10.4em}}
@media (max-width:700px){
  /* phone: the button owns its row; the status never wraps into a second line */
  #app .mining-controls>.btn[data-action="toggle-mining"]{width:auto;max-width:none;flex:1 0 100%}
  /* CPU <-> GPU: the threads row is reserved, so switching the device never moves Start / Claim below it */
  #app .device-tabs{grid-template-rows:39px 44px;align-content:start}
}

/* ---------------------------------------------------------------- Trait Hunt: n / m EQUIPPED | Submit Set | status
   The row is centred: "Ready to submit" -> "Submitted" shrank the pill and moved Submit Set 15px. The pill is a fixed
   slot (its text centred, ellipsis for the rare long state), the counter keeps its width. */
#app.ui15 .hunt16 .hunt-foot16>.status-pill{flex:0 0 auto;box-sizing:border-box;width:10.2em;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}
#app.ui15 .hunt16 .hunt-foot16>.weekly-progress{flex:0 0 auto;min-width:6.6em;justify-content:flex-end}

/* ---------------------------------------------------------------- My Fox · Rewards & Return
   "Claimable now · total" beside Collect all: the total took its text width, so a longer amount shrank the button;
   a long exact return (0.0011000000000000001 ETH) ran out of the Burn & Return tile and cut its button. The total is a
   fixed column and every sum shrinks inside its own box (--chars = its length, set by the page markup). */
@media (min-width:701px){
  #app.ui15 .rewards17 .claimable-foot17>.claimable-total16{flex:0 0 clamp(150px,34%,230px);min-width:0}
  #app.ui15 .rewards17 .claimable-foot17>.btn{flex:1 1 0;min-width:0}
}
#app.ui15 .rewards17 .claimable-foot17>.claimable-total16{container-type:inline-size}
#app.ui15 .rewards17 .claimable-foot17>.claimable-total16>strong[style*="--chars"]{font-size:clamp(13px,calc(100cqi / (var(--chars) * .6)),24px);white-space:nowrap}
#app.ui15 .rewards17 .claim-half17{container-type:inline-size}
#app.ui15 .rewards17 .claim-half17>.money15[style*="--chars"]{font-size:clamp(16px,calc(56cqi / (var(--chars) * .6)),44px)!important}
#app.ui15 .rewards17 .return-value15>div{min-width:0;max-width:100%;container-type:inline-size;width:100%}
#app.ui15 .rewards17 .return-value15 [data-burn-total][style*="--chars"]{font-size:clamp(16px,calc(100cqi / (var(--chars) * .6)),44px)!important;white-space:nowrap}
/* a breakdown value shrinks to its chip; an extreme exact value (1.100000000000000001 ETH in a 78 px chip) wraps inside
   the chip instead of running over the next one (the chip grows downward, the Burn button above stays) */
#app.ui15 .rewards17 .chip17 strong[style*="--chars"]{font-size:clamp(9px,calc(100cqi / (var(--chars) * .62)),17px);white-space:normal;overflow-wrap:anywhere;line-height:1.15}
#app.ui15 .rewards17 .chip17>div{container-type:inline-size;min-width:0;flex:1 1 0}
