/* Radar Cash R8 compact staking: only two main cards, preserve original finance handlers. */
body[data-account-page="staking"] .rach-staking-legacy-gate{display:none!important}
body[data-account-page="staking"] .rach-staking-compact-panel{margin-bottom:12px;padding:17px 19px}
body[data-account-page="staking"] .rach-staking-compact-panel .panel-head{margin-bottom:12px}
body[data-account-page="staking"] .rach-flex-panel>.grid{gap:9px}
body[data-account-page="staking"] .rach-flex-panel>.grid .metric{min-height:72px;padding:11px 13px}
body[data-account-page="staking"] .rach-flex-panel>.grid .metric strong{font-size:17px;margin-top:4px}
body[data-account-page="staking"] .rach-flex-workspace,
body[data-account-page="staking"] .rach-fixed-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);gap:13px;align-items:stretch;margin-top:13px}
body[data-account-page="staking"] .rach-staking-compact-panel .staking-entry-card{min-height:0;padding:14px;border-radius:15px;height:100%;box-sizing:border-box}
body[data-account-page="staking"] .rach-staking-compact-panel .staking-entry-card h3{font-size:16px;margin:4px 0 10px}
body[data-account-page="staking"] .rach-staking-compact-panel .staking-entry-card label{margin:8px 0 5px}
body[data-account-page="staking"] .rach-staking-compact-panel .staking-entry-card .field{min-height:42px;border-radius:10px}
body[data-account-page="staking"] .rach-staking-compact-panel .staking-entry-card .btn{margin-top:11px;min-height:43px}
body[data-account-page="staking"] .rach-staking-compact-panel .staking-entry-card>small:empty{display:none}
body[data-account-page="staking"] .rach-flex-panel .staking-entry-note{padding:9px 12px;font-size:11px;line-height:1.5;margin:12px 0 0}
body[data-account-page="staking"] .rach-flex-actions-slot,
body[data-account-page="staking"] .rach-fixed-manage-slot{min-width:0;border:1px solid rgba(255,255,255,.085);border-radius:15px;background:rgba(18,7,13,.46);padding:14px}
body[data-account-page="staking"] .rach-slot-heading{margin:0 0 11px;font-size:16px;color:#f7e7ec}
body[data-account-page="staking"] .rach-inline-readouts{display:grid;grid-template-columns:1fr 1fr;gap:9px}
body[data-account-page="staking"] .rach-overview-item{min-width:0;padding:9px 10px;border-radius:11px;border:1px solid rgba(255,255,255,.075);background:rgba(255,255,255,.025);display:flex;flex-direction:column;gap:5px}
body[data-account-page="staking"] .rach-overview-label{font-size:11px;color:#c9b0bb}
body[data-account-page="staking"] .rach-overview-value{font-size:14px;color:#f6e3eb;overflow-wrap:anywhere}
body[data-account-page="staking"] .rach-flex-exit-box{margin-top:9px;padding-top:8px;gap:7px;border-top:1px solid rgba(255,255,255,.075)}
body[data-account-page="staking"] .rach-flex-exit-hint{font-size:11px;line-height:1.5}
body[data-account-page="staking"] .rach-flex-exit-actions{margin:5px 0;gap:8px}
body[data-account-page="staking"] .rach-fixed-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:0}
body[data-account-page="staking"] .rach-fixed-summary-grid .rach-overview-item{background:linear-gradient(145deg,rgba(131,38,77,.13),rgba(255,255,255,.02));padding:11px}
body[data-account-page="staking"] .rach-fixed-manage-slot .rach-fixed-exit-panel{margin:0;padding:0;background:none;border:0}
body[data-account-page="staking"] .rach-fixed-manage-slot .rach-fixed-exit-panel>h3,
body[data-account-page="staking"] .rach-fixed-manage-slot .rach-fixed-exit-panel>p:not(#rachFixedExitNotice){display:none}
body[data-account-page="staking"] .rach-fixed-manage-hint{margin:0 0 10px;font-size:11px;line-height:1.6;color:#bfaab4}
body[data-account-page="staking"] .rach-fixed-exit-card{padding:9px 0;border-top:1px solid rgba(255,255,255,.075)}
body[data-account-page="staking"] .rach-fixed-exit-actions{gap:8px;margin:8px 0}
body[data-account-page="staking"] .rach-fixed-exit-card .rach-fixed-exit-details{font-size:12px;margin:4px 0}
body[data-account-page="staking"] .rach-position-details,
body[data-account-page="staking"] .rach-operation-details{margin-top:10px;border-top:1px solid rgba(255,255,255,.08);padding-top:9px}
body[data-account-page="staking"] .rach-position-details summary,
body[data-account-page="staking"] .rach-operation-details summary{font-size:12px;font-weight:650;color:#d7acbd;cursor:pointer;padding:5px 0}
body[data-account-page="staking"] .rach-position-details .empty{padding:9px 10px;border:0;background:rgba(255,255,255,.02)}
body[data-account-page="staking"] .rach-operation-details .btn{float:right;min-height:32px;font-size:11px}
body[data-account-page="staking"] .rach-operation-details .account-log{margin-top:8px;min-height:0;font-size:11px}
@media(max-width:750px){
 body[data-account-page="staking"] .rach-flex-workspace,
 body[data-account-page="staking"] .rach-fixed-workspace{grid-template-columns:minmax(0,1fr)}
 body[data-account-page="staking"] .rach-fixed-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:480px){
 body[data-account-page="staking"] .rach-staking-compact-panel{padding:14px}
 body[data-account-page="staking"] .rach-flex-panel>.grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-account-page="staking"] .rach-flex-panel>.grid .metric{min-height:70px}
 body[data-account-page="staking"] .rach-inline-readouts{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 body[data-account-page="staking"] .rach-fixed-summary-grid .rach-overview-value{font-size:13px}
}
@media(max-width:360px){
 body[data-account-page="staking"] .rach-inline-readouts{grid-template-columns:minmax(0,1fr)}
}


body[data-account-page="staking"] .rach-fixed-referral-note{margin:11px 0 0;padding:9px 12px;font-size:11px;line-height:1.5}
body[data-account-page="staking"] .rach-fixed-summary-grid{margin-top:2px}
body[data-account-page="staking"] .rach-fixed-summary-grid .rach-overview-label{font-size:11px}
body[data-account-page="staking"] .rach-fixed-manage-slot .rach-fixed-exit-card:first-child{border-top:0;padding-top:0}
body[data-account-page="staking"] .rach-fixed-empty-card .rach-fixed-exit-details{margin-bottom:8px}
body[data-account-page="staking"] .rach-fixed-exit-card strong{display:block;font-size:14px;color:#f5e5eb}
body[data-account-page="staking"] .rach-fixed-exit-card .rach-fixed-exit-details{color:#ccb6c0;line-height:1.7}
body[data-account-page="staking"] .rach-fixed-exit-card .rach-fixed-exit-action.rach-fixed-claim:disabled{background:rgba(255,255,255,.06)!important;border:1px solid rgba(255,255,255,.08)!important;color:#d6c0c8!important}
body[data-account-page="staking"] .rach-fixed-manage-slot #rachFixedExitNotice{min-height:18px;font-size:11px;line-height:1.5;color:#d8bdc8;margin:0 0 8px}

/* RACH current: user-facing fixed maturity and elapsed / remaining days. */
body[data-account-page="staking"] .rach-fixed-timeline[hidden]{display:none!important}
body[data-account-page="staking"] .rach-fixed-timeline{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr) minmax(0,1fr);gap:7px;margin:6px 0 13px}
body[data-account-page="staking"] .rach-fixed-timeline .rach-overview-item{padding:10px;min-height:60px}
body[data-account-page="staking"] .rach-fixed-timeline .rach-overview-value{font-size:13px;line-height:1.5}
/* On desktop all three financial action buttons share the same bottom baseline. */
@media(min-width:751px){
 body[data-account-page="staking"] .rach-flex-deposit-slot,
 body[data-account-page="staking"] .rach-fixed-form-slot{display:flex;flex-direction:column;min-width:0}
 body[data-account-page="staking"] .rach-flex-deposit-slot>.staking-entry-card,
 body[data-account-page="staking"] .rach-fixed-form-slot>.staking-entry-card{display:flex;flex-direction:column;flex:1;min-width:0}
 body[data-account-page="staking"] .rach-flex-deposit-slot #flexDepositBtn,
 body[data-account-page="staking"] .rach-fixed-form-slot #fixedStakeBtn{margin-top:auto!important}
 body[data-account-page="staking"] .rach-flex-actions-slot,
 body[data-account-page="staking"] .rach-fixed-manage-slot{display:flex;flex-direction:column;min-width:0}
 body[data-account-page="staking"] .rach-flex-actions-slot>.rach-flex-exit-box{margin-top:auto;display:flex;flex-direction:column;align-items:stretch;padding-top:0;border-top:0}
 body[data-account-page="staking"] .rach-flex-exit-box .rach-flex-exit-status{order:1}
 body[data-account-page="staking"] .rach-flex-exit-box .rach-flex-exit-actions{order:2;margin-top:auto;margin-bottom:0}
 body[data-account-page="staking"] .rach-fixed-manage-slot>.rach-fixed-exit-panel{display:flex;flex-direction:column;flex:1}
 body[data-account-page="staking"] .rach-fixed-manage-slot #rachFixedExitPositions{display:flex;flex-direction:column;flex:1}
 body[data-account-page="staking"] .rach-fixed-manage-slot .rach-fixed-exit-card{display:flex;flex-direction:column;flex:1}
 body[data-account-page="staking"] .rach-fixed-manage-slot .rach-fixed-exit-actions{margin-top:auto;margin-bottom:0}
 body[data-account-page="staking"] .rach-staking-compact-panel .rach-fixed-form-slot .staking-entry-card>small{margin-bottom:9px}
 body[data-account-page="staking"] .rach-staking-compact-panel .rach-flex-deposit-slot .staking-entry-card>small:empty{display:none}
}
@media(max-width:980px){
 body[data-account-page="staking"] .rach-fixed-timeline{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 body[data-account-page="staking"] .rach-fixed-timeline .rach-overview-item:first-child{grid-column:1/-1}
}
@media(max-width:750px){
 body[data-account-page="staking"] .rach-fixed-timeline{grid-template-columns:minmax(0,1.4fr) repeat(2,minmax(0,1fr))}
 body[data-account-page="staking"] .rach-fixed-timeline .rach-overview-item:first-child{grid-column:auto}
}
@media(max-width:440px){
 body[data-account-page="staking"] .rach-fixed-timeline{grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-account-page="staking"] .rach-fixed-timeline .rach-overview-item:first-child{grid-column:1/-1}
}
@media(min-width:751px){
 body[data-account-page="staking"] .rach-fixed-manage-slot .rach-fixed-exit-card{padding-bottom:0}
}

/* One-line interest explanations. No new panels or UI controls. */
body[data-account-page="staking"] .rach-staking-rate-note{
  margin:9px 0 0;
  font-size:11px;
  line-height:1.65;
  color:#c7acb8;
}
