/* Keep the restored mining screen on the same 390px mobile artboard as the suite. */
html[data-ftst-route="mining"] .forge-page{
  width:390px!important;
  max-width:390px!important;
  min-height:100vh!important;
  margin:0 auto!important;
  overflow:hidden!important;
  box-shadow:0 0 80px rgba(61,42,105,.14)!important;
}
html[data-ftst-route="mining"] .forge-page .forge-body{
  width:390px!important;
  max-width:390px!important;
  margin:0 auto!important;
  padding:0 13px 88px!important;
}
html[data-ftst-route="mining"] uni-tabbar{
  left:calc(50% - 195px)!important;
  right:auto!important;
  width:390px!important;
  max-width:390px!important;
  transform:none!important;
}
html[data-ftst-route="mining"] uni-tabbar .uni-tabbar{
  left:calc(50% - 195px)!important;
  right:auto!important;
  width:390px!important;
  max-width:390px!important;
  transform:none!important;
}

/* Compact phone-native mining layout. Keep the animated chamber as the focus. */
html[data-ftst-route="mining"] .forge-page .forge-body{
  box-sizing:border-box!important;
  min-height:100vh!important;
  padding:0 13px 76px!important;
}
html[data-ftst-route="mining"] .forge-page .forge-header{
  display:none!important;
  box-sizing:border-box!important;
  width:364px!important;
  min-height:0!important;
  height:0!important;
  margin:0!important;
  padding:0!important;
}
html[data-ftst-route="mining"] .forge-page .forge-logo{font-size:18px!important;letter-spacing:.14em!important}
html[data-ftst-route="mining"] .forge-page .forge-logo:before{width:34px!important;height:34px!important;border-width:4px!important;border-radius:12px!important}
html[data-ftst-route="mining"] .forge-page .wallet-pill{min-width:122px!important;height:38px!important;padding:0 12px!important}
html[data-ftst-route="mining"] .forge-page .scene-running{gap:9px!important}

html[data-ftst-route="mining"] .forge-page .hash-forge.running{
  box-sizing:border-box!important;
  width:364px!important;
  height:342px!important;
  margin:0!important;
  border:1px solid rgba(124,82,190,.10)!important;
  border-radius:28px!important;
  background-size:285px auto,auto!important;
  background-position:50% -7px,center!important;
  box-shadow:0 18px 45px rgba(82,55,137,.10),inset 0 1px 0 rgba(255,255,255,.92)!important;
}
html[data-ftst-route="mining"] .forge-page .hash-forge.running:before{bottom:36px!important;width:76%!important;height:46px!important}
html[data-ftst-route="mining"] .forge-page .ftst-live-core{top:45.4%!important;width:150px!important;height:150px!important}
html[data-ftst-route="mining"] .forge-page .ftst-base-pulse{bottom:36px!important;width:166px!important;height:29px!important}
html[data-ftst-route="mining"] .forge-page .ftst-chamber-state{bottom:7px!important;gap:4px!important}
html[data-ftst-route="mining"] .forge-page .ftst-chamber-state span{gap:6px!important;font-size:8px!important}
html[data-ftst-route="mining"] .forge-page .ftst-chamber-state span i{width:6px!important;height:6px!important}
html[data-ftst-route="mining"] .forge-page .ftst-chamber-state b:after{font-size:14px!important;letter-spacing:.04em!important}
html[data-ftst-route="mining"] .forge-page .ftst-chamber-state small{width:36px!important;height:2px!important}

/* A single compact control console: metrics, context, actions, then records. */
html[data-ftst-route="mining"] .forge-page .command-deck{margin:0!important}
html[data-ftst-route="mining"] .forge-page .deck-content{gap:8px!important}
html[data-ftst-route="mining"] .forge-page .deck-hero{padding:13px 6px 12px!important;border-radius:21px!important;box-shadow:0 13px 32px rgba(81,53,137,.08),inset 0 1px 0 #fff!important}
html[data-ftst-route="mining"] .forge-page .hero-cell{padding:0 7px!important}
html[data-ftst-route="mining"] .forge-page .hero-cell:before{width:20px!important;height:20px!important;margin-bottom:6px!important;font-size:14px!important}
html[data-ftst-route="mining"] .forge-page .hero-num{font-size:19px!important;line-height:1.05!important}
html[data-ftst-route="mining"] .forge-page .hero-label{margin-top:5px!important;font-size:8px!important}
html[data-ftst-route="mining"] .forge-page .deck-meta{display:flex!important;min-height:24px!important;align-items:center!important;justify-content:center!important;padding:0 3px!important;font-size:8px!important;line-height:1.25!important;white-space:nowrap!important}
html[data-ftst-route="mining"] .forge-page .deck-cost-tip{display:none!important}
html[data-ftst-route="mining"] .forge-page .deck-actions{gap:9px!important}
html[data-ftst-route="mining"] .forge-page .deck-btn{min-height:50px!important;border-radius:16px!important}
html[data-ftst-route="mining"] .forge-page .deck-btn .deck-btn-text{font-size:14px!important}
html[data-ftst-route="mining"] .forge-page .deck-btn .deck-btn-sub{font-size:7px!important}
html[data-ftst-route="mining"] .forge-page .deck-rule-row{min-height:22px!important}
html[data-ftst-route="mining"] .forge-page .deck-rule-row .deck-btn{min-height:22px!important;height:22px!important;padding:2px 10px!important}
html[data-ftst-route="mining"] .forge-page .deck-rule-row .deck-btn .deck-btn-text{font-size:8px!important}
html[data-ftst-route="mining"] .forge-page .deck-footer{display:flex!important;min-height:34px!important;margin:0!important;padding:5px 8px!important;align-items:center!important;justify-content:space-between!important;border-top:1px solid rgba(119,82,178,.08)!important}
html[data-ftst-route="mining"] .forge-page .deck-footer .deck-rule-row{order:0!important;margin:0!important}
html[data-ftst-route="mining"] .forge-page .deck-footer .deck-links{display:flex!important;align-items:center!important;gap:7px!important}
html[data-ftst-route="mining"] .forge-page .deck-footer .deck-links,
html[data-ftst-route="mining"] .forge-page .deck-footer .link-item{font-size:9px!important}

@media (min-width:521px){
  html[data-ftst-route="mining"] .forge-page .forge-header{min-height:70px!important;height:70px!important;padding:10px 4px!important}
  html[data-ftst-route="mining"] .forge-page .forge-logo{font-size:19px!important}
  html[data-ftst-route="mining"] .forge-page .forge-logo:before{width:36px!important;height:36px!important;border-width:4px!important;border-radius:13px!important}
  html[data-ftst-route="mining"] .forge-page .wallet-pill{min-width:124px!important;height:40px!important;padding:0 13px!important}
  html[data-ftst-route="mining"] .forge-page .wallet-pill:before{margin-right:6px!important;font-size:14px!important}
  html[data-ftst-route="mining"] .forge-page .pill-amount{font-size:15px!important}
  html[data-ftst-route="mining"] .forge-page .scene-running{gap:9px!important}
  html[data-ftst-route="mining"] .forge-page .hash-forge.running{
    width:364px!important;
    height:342px!important;
    margin-top:0!important;
    background-size:285px auto,auto!important;
    background-position:50% -7px,center!important;
  }
  html[data-ftst-route="mining"] .forge-page .hash-forge.running:before{bottom:36px!important;width:76%!important}
  html[data-ftst-route="mining"] .forge-page .ftst-live-core{top:45.4%!important;width:150px!important;height:150px!important}
  html[data-ftst-route="mining"] .forge-page .ftst-base-pulse{bottom:36px!important;width:166px!important}
  html[data-ftst-route="mining"] .forge-page .ftst-chamber-state{bottom:7px!important;gap:4px!important}
  html[data-ftst-route="mining"] .forge-page .ftst-chamber-state span{font-size:8px!important}
  html[data-ftst-route="mining"] .forge-page .ftst-chamber-state b:after{font-size:14px!important}
  html[data-ftst-route="mining"] .forge-page .command-deck{margin-top:0!important}
  html[data-ftst-route="mining"] .forge-page .deck-hero{padding:13px 6px 12px!important;border-radius:21px!important}
  html[data-ftst-route="mining"] .forge-page .hero-cell{padding:0 7px!important}
  html[data-ftst-route="mining"] .forge-page .hero-cell:before{width:20px!important;height:20px!important;margin-bottom:6px!important;font-size:14px!important}
  html[data-ftst-route="mining"] .forge-page .hero-num{font-size:19px!important}
  html[data-ftst-route="mining"] .forge-page .hero-label{font-size:8px!important}
  html[data-ftst-route="mining"] .forge-page .deck-actions{gap:9px!important}
  html[data-ftst-route="mining"] .forge-page .deck-btn{min-height:50px!important;border-radius:16px!important}
}

/* Figma unified cockpit: one fixed 390 x 844 mining console, no page scroll. */
html[data-ftst-route="mining"],
html[data-ftst-route="mining"] body,
html[data-ftst-route="mining"] uni-app,
html[data-ftst-route="mining"] #app,
html[data-ftst-route="mining"] uni-page,
html[data-ftst-route="mining"] uni-page-wrapper,
html[data-ftst-route="mining"] uni-page-body{
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
  overscroll-behavior:none!important;
}
html[data-ftst-route="mining"] .forge-page{
  height:100vh!important;
  min-height:0!important;
  padding:0!important;
  overflow:hidden!important;
}
html[data-ftst-route="mining"] .forge-page .forge-body{
  position:relative!important;
  width:390px!important;
  height:calc(100vh - 66px)!important;
  min-height:0!important;
  padding:0 18px!important;
  overflow:hidden!important;
}
html[data-ftst-route="mining"] .forge-page .status_bar{display:none!important}
html[data-ftst-route="mining"] .forge-page .scene-running,
html[data-ftst-route="mining"] .forge-page .scene-ignite,
html[data-ftst-route="mining"] .forge-page .scene-offline{
  position:relative!important;
  box-sizing:border-box!important;
  display:block;
  width:354px!important;
  height:692px!important;
  min-height:0!important;
  margin:14px 0 0!important;
  padding:0!important;
  overflow:hidden!important;
  border:1px solid rgba(255,255,255,.88)!important;
  border-radius:30px!important;
  background:linear-gradient(165deg,rgba(255,255,255,.62),rgba(248,244,255,.48))!important;
  box-shadow:0 18px 42px rgba(72,45,124,.12),inset 0 1px 0 rgba(255,255,255,.95)!important;
}
html[data-ftst-route="mining"] .forge-page .forge-chamber{
  position:absolute!important;
  z-index:1!important;
  top:0!important;
  left:16px!important;
  width:322px!important;
  height:420px!important;
  overflow:hidden!important;
  border-radius:26px 26px 22px 22px!important;
}
html[data-ftst-route="mining"] .forge-page .hash-forge.running,
html[data-ftst-route="mining"] .forge-page .hash-forge.dormant,
html[data-ftst-route="mining"] .forge-page .hash-forge.static,
html[data-ftst-route="mining"] .forge-page .hash-forge.offline{
  width:322px!important;
  height:420px!important;
  border:0!important;
  border-radius:26px 26px 22px 22px!important;
  background-size:322px auto,auto!important;
  background-position:50% -5px,center!important;
}
html[data-ftst-route="mining"] .forge-page .ftst-live-core{top:45.4%!important;width:166px!important;height:166px!important}
html[data-ftst-route="mining"] .forge-page .ftst-base-pulse{bottom:48px!important;width:180px!important}
html[data-ftst-route="mining"] .forge-page .ftst-chamber-state{display:none!important}
html[data-ftst-route="mining"] .forge-page .command-deck{
  position:absolute!important;
  box-sizing:border-box!important;
  z-index:6!important;
  left:16px!important;
  top:360px!important;
  width:322px!important;
  height:332px!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  border:1px solid rgba(226,219,244,.74)!important;
  border-radius:24px!important;
  background:linear-gradient(160deg,rgba(255,255,255,.95),rgba(247,243,255,.91))!important;
  box-shadow:0 -8px 28px rgba(75,48,130,.10),0 16px 34px rgba(80,52,136,.08),inset 0 1px 0 #fff!important;
}
html[data-ftst-route="mining"] .forge-page .command-deck:before{
  content:""!important;
  position:absolute!important;
  z-index:3!important;
  left:56px!important;
  top:0!important;
  width:210px!important;
  height:3px!important;
  border-radius:3px!important;
  background:linear-gradient(90deg,transparent,#7a3dd4 50%,transparent)!important;
}
html[data-ftst-route="mining"] .forge-page .deck-bg-img{display:none!important}
html[data-ftst-route="mining"] .forge-page .deck-content{
  position:relative!important;
  display:flex!important;
  box-sizing:border-box!important;
  width:100%!important;
  height:100%!important;
  padding:54px 16px 14px!important;
  flex-direction:column!important;
  gap:8px!important;
}
html[data-ftst-route="mining"] .forge-page .deck-status{
  position:absolute!important;
  left:16px!important;
  top:13px!important;
  display:flex!important;
  width:290px!important;
  height:28px!important;
  padding:0!important;
  align-items:center!important;
  border:0!important;
  background:transparent!important;
}
html[data-ftst-route="mining"] .forge-page .deck-status .status-text{color:#2b2537!important;font-size:10px!important;font-weight:700!important}
html[data-ftst-route="mining"] .forge-page .deck-status .status-id{display:none!important}
html[data-ftst-route="mining"] .forge-page .deck-hero{
  box-sizing:border-box!important;
  width:290px!important;
  height:80px!important;
  min-height:80px!important;
  padding:8px 4px!important;
  border:1px solid rgba(226,219,244,.68)!important;
  border-radius:20px!important;
  background:rgba(255,255,255,.56)!important;
  box-shadow:none!important;
}
html[data-ftst-route="mining"] .forge-page .hero-cell{padding:0 4px!important}
html[data-ftst-route="mining"] .forge-page .hero-cell:before{display:none!important}
html[data-ftst-route="mining"] .forge-page .hero-num{font-size:20px!important}
html[data-ftst-route="mining"] .forge-page .hero-label{margin-top:5px!important;font-size:8px!important}
html[data-ftst-route="mining"] .forge-page .deck-meta{
  width:290px!important;
  height:20px!important;
  min-height:20px!important;
  padding:0!important;
  justify-content:center!important;
  font-size:7px!important;
}
html[data-ftst-route="mining"] .forge-page .deck-actions{
  display:grid!important;
  width:290px!important;
  height:56px!important;
  min-height:56px!important;
  grid-template-columns:1fr 1fr!important;
  gap:12px!important;
}
html[data-ftst-route="mining"] .forge-page .deck-btn{min-height:56px!important;height:56px!important;border-radius:18px!important}
html[data-ftst-route="mining"] .forge-page .deck-actions .deck-btn:first-child{
  border:0!important;
  background:linear-gradient(135deg,#a45bed,#6f38d1)!important;
  box-shadow:0 11px 25px rgba(111,56,202,.19)!important;
}
html[data-ftst-route="mining"] .forge-page .deck-actions .deck-btn:first-child .deck-btn-text{color:#fff!important;-webkit-text-fill-color:#fff!important}
html[data-ftst-route="mining"] .forge-page .deck-actions .deck-btn:nth-child(2){border:1.5px solid #8650da!important;background:rgba(255,255,255,.62)!important}
html[data-ftst-route="mining"] .forge-page .deck-btn .deck-btn-text{font-size:14px!important}
html[data-ftst-route="mining"] .forge-page .deck-btn .deck-btn-sub{font-size:7px!important}
html[data-ftst-route="mining"] .forge-page .deck-footer{
  display:flex!important;
  box-sizing:border-box!important;
  width:290px!important;
  height:54px!important;
  min-height:54px!important;
  margin:0!important;
  padding:0!important;
  align-items:center!important;
  justify-content:space-between!important;
  border-top:0!important;
}
html[data-ftst-route="mining"] .forge-page .deck-rule-row{width:100%!important;height:54px!important;min-height:54px!important}
html[data-ftst-route="mining"] .forge-page .deck-rule-row .deck-btn{display:flex!important;width:100%!important;height:54px!important;min-height:54px!important;padding:0 18px!important;align-items:center!important;justify-content:flex-start!important;border:1px solid rgba(122,61,212,.3)!important;border-radius:18px!important;background:linear-gradient(135deg,#f7efff,#ebdcff)!important}
html[data-ftst-route="mining"] .forge-page .deck-rule-row .deck-btn:before{display:grid;width:30px;height:30px;margin-right:10px;place-items:center;border-radius:11px;background:#7a3dd4;content:"↗";font:800 16px/1 Inter;color:#fff}
html[data-ftst-route="mining"] .forge-page .deck-rule-row .deck-btn:after{margin-left:auto;content:"›";font:800 19px/1 Inter;color:#7a3dd4}
html[data-ftst-route="mining"] .forge-page .deck-rule-row .deck-btn .deck-btn-text{font-size:14px!important;font-weight:800!important;color:#533075!important;-webkit-text-fill-color:#533075!important}
html[data-ftst-route="mining"] .forge-page .deck-footer .deck-links,
html[data-ftst-route="mining"] .forge-page .deck-footer .link-item{display:none!important}
html[data-ftst-route="mining"] uni-tabbar,
html[data-ftst-route="mining"] uni-tabbar .uni-tabbar{
  bottom:0!important;
  top:auto!important;
  height:66px!important;
}
@media(max-height:780px){
  html[data-ftst-route="mining"] .forge-page .scene-running,
  html[data-ftst-route="mining"] .forge-page .scene-ignite,
  html[data-ftst-route="mining"] .forge-page .scene-offline{margin-top:5px!important;transform:scale(.90)!important;transform-origin:top center!important}
}
