/* RISE product upgrade: shared semantic tokens for light Simple Mode and
   dark-grey Advanced Mode. Scoped reusable surfaces, never unscoped button
   overrides. All action logic remains in existing JavaScript modules. */
:root{
 --rise-surface:#fff;--rise-surface-muted:#f2faff;--rise-surface-active:#e5f6ff;
 --rise-border:#d9ebf8;--rise-body-ink:#173f68;--rise-secondary-text:#6684a3;
 --rise-control:#0b4383;--rise-control-hover:#155f9d;--rise-highlight:#159ee9;
 --rise-card-shadow:0 12px 33px rgba(4,67,143,.10);
}
body.rise-advanced-on{
 --rise-surface:#202934;--rise-surface-muted:#172634;--rise-surface-active:#294659;
 --rise-border:#40576d;--rise-body-ink:#edf8ff;--rise-secondary-text:#a9c5d9;
 --rise-control:#1d567d;--rise-control-hover:#2b7198;--rise-highlight:#82d1ff;
 --rise-card-shadow:0 12px 33px rgba(0,0,0,.12)
}
.rise-pair-availability-filter{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0 5px}
.rise-pair-availability-filter button{
 border:1px solid var(--rise-border);border-radius:10px;background:var(--rise-surface-muted);
 color:var(--rise-secondary-text);padding:9px 11px;min-height:38px;font-weight:800;font-size:11px;
}
.rise-pair-availability-filter button:hover,.rise-pair-availability-filter button.active{
 background:var(--rise-surface-active);color:var(--rise-body-ink);border-color:var(--rise-highlight)
}
.rise-pair-availability-filter button.active{box-shadow:0 0 0 1px var(--rise-highlight)}
.rise-pair-audit-note{
 color:var(--rise-secondary-text);font-size:10.7px;line-height:1.6;margin:4px 0 18px
}
.rise-pending-launch-box,.rise-quick-draft-preview{
 display:flex;gap:14px;align-items:center;padding:17px;
 margin:0 0 18px;background:var(--rise-surface);border:1px solid var(--rise-border);
 border-radius:15px;box-shadow:var(--rise-card-shadow);color:var(--rise-body-ink)
}
.rise-pending-launch-box>div,.rise-quick-draft-preview>div{min-width:0;flex:1}
.rise-pending-launch-box strong,.rise-quick-draft-preview strong{display:block;font-size:14px}
.rise-pending-launch-box p,.rise-quick-draft-preview p{color:var(--rise-secondary-text);font-size:11px;line-height:1.6;margin:6px 0 0}
.rise-quick-draft-preview small{
 color:var(--rise-secondary-text);display:block;font-size:10.5px;overflow-wrap:anywhere;margin:5px 0
}
.rise-quick-draft-preview img{
 width:72px;height:72px;object-fit:cover;border:1px solid var(--rise-border);
 background:var(--rise-surface-muted);border-radius:13px;flex:none
}
.rise-pending-launch-box button,.rise-quick-draft-preview button{
 flex:none;border:1px solid var(--rise-control);color:#fff;background:var(--rise-control);
 padding:11px 13px;min-height:40px;border-radius:10px;font-size:11px;font-weight:850
}
.rise-pending-launch-box button:hover,.rise-quick-draft-preview button:hover{background:var(--rise-control-hover)}
.rise-pending-launch-box #risePendingLaunchForget{
 background:transparent;color:var(--rise-secondary-text);border-color:var(--rise-border)
}
.rise-pending-launch-box #risePendingLaunchForget:hover{color:var(--rise-body-ink);background:var(--rise-surface-muted)}
.rise-token-trade-quote-details{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;
 padding:13px;border:1px solid var(--rise-border);border-radius:12px;
 background:var(--rise-surface-muted);margin:10px 0;color:var(--rise-body-ink)
}
.rise-token-trade-quote-details>div{
 display:flex;flex-direction:column;align-items:flex-start;min-width:0;gap:4px;
 border-bottom:1px solid var(--rise-border);padding:8px 4px
}
.rise-token-trade-quote-details span{font-size:10px;color:var(--rise-secondary-text)}
.rise-token-trade-quote-details strong{font-size:11px;overflow-wrap:anywhere;line-height:1.45}
.rise-curve-progress,.rise-reward-transparency,.rise-portfolio-rewards{
 padding:23px;border:1px solid var(--rise-border);border-radius:18px;
 background:var(--rise-surface);color:var(--rise-body-ink);box-shadow:var(--rise-card-shadow);
 margin:18px 0
}
.rise-transparency-head{display:flex;align-items:center;justify-content:space-between;gap:15px}
.rise-transparency-eyebrow{display:block;color:var(--rise-highlight);letter-spacing:.11em;font-weight:850;font-size:10px;margin-bottom:6px}
.rise-transparency-head h2,.rise-curve-progress h2,.rise-portfolio-rewards h3{
 font-size:20px;color:var(--rise-body-ink);margin:0;letter-spacing:-.035em
}
.rise-transparency-head>strong{font-size:25px;color:var(--rise-highlight)}
.rise-curve-progress-track{height:13px;background:var(--rise-surface-muted);
 border:1px solid var(--rise-border);border-radius:99px;overflow:hidden;margin-top:17px
}
.rise-curve-progress-track>span{display:block;height:100%;border-radius:99px;
 background:linear-gradient(90deg,#1396e2,#6ed0ff);transition:width .35s
}
.rise-curve-progress>p,.rise-reward-transparency-note,
.rise-reward-empty,.rise-portfolio-rewards-head p{
 color:var(--rise-secondary-text);font-size:11.5px;line-height:1.65;margin:12px 0 0
}
.rise-curve-progress a{display:inline-block;margin-top:9px;font-weight:800;font-size:11px;color:var(--rise-highlight)}
.rise-reward-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:17px}
.rise-reward-metrics>div{padding:14px 13px;min-width:0;border:1px solid var(--rise-border);
 border-radius:12px;background:var(--rise-surface-muted);display:flex;flex-direction:column;gap:7px}
.rise-reward-metrics small,.rise-reward-metrics span{font-size:10px;color:var(--rise-secondary-text)}
.rise-reward-metrics strong{font-size:19px;color:var(--rise-body-ink);overflow-wrap:anywhere}
.rise-proof-tag{font-size:9.5px;color:var(--rise-highlight);border:1px solid var(--rise-border);
 background:var(--rise-surface-muted);padding:7px 9px;border-radius:20px;font-weight:800
}
.rise-reward-history h3{font-size:13px;margin:21px 0 8px;color:var(--rise-body-ink)}
.rise-reward-history ul{list-style:none;margin:0 0 9px;padding:0}
.rise-reward-history li{display:flex;gap:10px;align-items:center;justify-content:space-between;
 padding:11px 2px;border-bottom:1px solid var(--rise-border);font-size:11px}
.rise-reward-history li>a{color:var(--rise-highlight);font-weight:800;white-space:nowrap}
.rise-reward-history li>span{color:var(--rise-secondary-text)}
.rise-reward-history>small{color:var(--rise-secondary-text);font-size:10px}
.rise-portfolio-rewards-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:15px}
.rise-portfolio-rewards-head button,.rise-explore-pagination button{padding:10px 14px;border-radius:10px;min-height:40px;
 background:var(--rise-control);color:#fff;border:1px solid var(--rise-control);font-size:11px;font-weight:850
}
.rise-portfolio-rewards-head button:hover,.rise-explore-pagination button:hover{background:var(--rise-control-hover)}
.rise-portfolio-rewards .rise-portfolio-item{background:var(--rise-surface-muted);border-color:var(--rise-border)}
.rise-portfolio-rewards .rise-portfolio-item strong,.rise-portfolio-rewards .rise-portfolio-item b{color:var(--rise-body-ink)}
.rise-portfolio-rewards .rise-portfolio-item small{color:var(--rise-secondary-text)}
.rise-explore-pagination{display:flex;flex-direction:column;align-items:center;gap:10px;margin:23px auto 38px}
.rise-explore-pagination span{font-size:10.5px;color:rgba(255,255,255,.86);text-align:center}
body.rise-advanced-on #riseQuickEmergencyLock{background:#3b2932;border-color:#986a79;color:#f7dce4}
body.rise-advanced-on #riseQuickEmergencyLock:hover{background:#593441}
body.rise-advanced-on .rise-vault-buttons #riseVaultLock{border-color:#80b3d0;color:#e6f7ff}
@media(max-width:820px){
 .rise-reward-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 .rise-pending-launch-box,.rise-quick-draft-preview{flex-wrap:wrap}
 .rise-quick-draft-preview>div{flex:1 1 calc(100% - 100px)}
 .rise-quick-draft-preview button{width:100%}
}
@media(max-width:520px){
 .rise-pending-launch-box>div{flex:1 1 100%}
 .rise-pending-launch-box button{flex:1}
 .rise-curve-progress,.rise-reward-transparency,.rise-portfolio-rewards{padding:17px}
 .rise-transparency-head{flex-wrap:wrap}
 .rise-token-trade-quote-details{grid-template-columns:minmax(0,1fr)}
 .rise-reward-history li{align-items:flex-start;flex-direction:column;gap:6px}
 .rise-portfolio-rewards-head{align-items:flex-start;flex-direction:column}
 .rise-portfolio-rewards-head button{width:100%}
}
@media(prefers-reduced-motion:reduce){
 .rise-curve-progress-track>span{transition:none}
}
