/* 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}
