/* Small presentation fixes; existing theme, layout and chart styles remain. */
[hidden] { display: none !important; }
.profile-name, .profile-value { min-width: 0; }
.profile-name strong { display: block; overflow-wrap: anywhere; }
.profile-value strong { overflow-wrap: anywhere; }
[data-profile-list] .profile-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
[data-profile-list] .profile-name { grid-column: 1 / -1; }
.pool-table-details > div { max-width: 30rem; white-space: normal; }
.pool-table-details p { line-height: 1.5; }
[data-native-account-notice] { padding: 1rem; border: 1px solid #7a5b2a; border-radius: 12px; color: #f0c779; }

/* R2: keep pagination and nested calculation cards usable on narrow screens. */
@media (max-width: 760px) {
  #panel-miners .merge-block-summary { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .stats-card-table tbody td > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
  .stats-card-table .pool-table-details { width: 100%; }
  .stats-card-table .pool-table-details > div { max-width: 100%; }
  .stats-card-table .pool-finder-address { white-space: normal; overflow-wrap: anywhere; }
  [data-miner-mode-button], .h2-period-control button { min-height: 44px; }
}
@media (max-width: 600px) {
  .stats-table-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stats-table-pager > span { grid-column: 1 / -1; order: -1; overflow-wrap: anywhere; }
  .stats-table-pager button { min-height: 44px; width: 100%; }
}
@media (max-width: 390px) {
  #panel-miners .merge-block-summary { grid-template-columns: 1fr !important; }
}
.merged-update-notice{margin:12px 0;padding:12px 16px;border:1px solid #715c32;border-radius:12px;background:#211b12;color:#e9cb98;font-size:13px;line-height:1.5}
.merged-update-notice[hidden]{display:none}

/* R4: the same positive status color for native and merged profiles. */
.profile-value strong.profile-online,[data-merge-status-short].profile-online{color:#42d69a}
.profile-value strong.profile-delayed,[data-merge-status-short].profile-delayed{color:#e9bd65}
.merged-snapshot-age{grid-column:1/-1;flex-basis:100%;margin:8px 0 0;color:#e9cb98;font-size:12px;line-height:1.5}
[data-merge-state="delayed"] [data-merge-status]{color:#e9bd65;border-color:#715c32;background:#211b12}
[data-merge-state="delayed"] [data-merge-status] i{background:#e9bd65;box-shadow:none}

/* R5: recent merged results are independently labeled for each chain. */
.latest-merged-streams{display:grid;grid-template-columns:1fr;gap:22px}
.latest-merged-streams h4{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 8px;font-size:16px}
.latest-merged-streams h4 button{background:none;border:0;color:var(--accent,#f33e49);font:inherit;font-size:13px;cursor:pointer;min-height:44px}
.latest-merged-list{list-style:none;margin:0;padding:0}
.latest-merged-list li{padding:13px 0;border-bottom:1px solid rgba(255,255,255,.10)}
.latest-merged-list li:last-child{border-bottom:0}
.latest-merged-block{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.latest-merged-list time{display:block;margin-top:7px;color:#939baa;font-size:12px;line-height:1.5}
.latest-merged-list .badge{font-size:10px;white-space:nowrap}
[data-latest-merged-note]{margin:14px 0 0;font-size:12px;line-height:1.6;color:#939baa}

/* Stacked rows leave room for words and numbers at narrow mobile widths. */
@media(max-width:480px){
  #panel-miners .h3-rates{grid-template-columns:minmax(0,1fr);gap:8px}
  #panel-miners .h3-rates .h3-rate{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:12px}
  #panel-miners .h3-rates .h3-rate small{min-height:0;margin:0;font-size:11px;line-height:1.4;overflow-wrap:normal}
  #panel-miners .h3-rates .h3-rate strong{font-size:20px!important;white-space:nowrap;overflow-wrap:normal;word-break:normal}
  #panel-miners .h3-rates .h3-rate strong.stats-value-unavailable{font-size:16px!important}
}
@media(max-width:359px){
  #panel-miners .h3-rates .h3-rate{grid-template-columns:minmax(0,1fr)}
}
