/* Staking layout overrides — visual/placement only. */

/* Fail closed from the very first browser paint. The stylesheet is loaded in
   <head>, so wallet-derived UI cannot flash stale/backend inventory before the
   runtime has had a chance to install its canonical verification gates. */
body:not(.steak-runtime-ready) #nftGrid,
body:not(.steak-runtime-ready) #workerProfiles,
body:not(.steak-runtime-ready) #workerSelectList,
body:not(.steak-runtime-ready) #activeJob,
body:not(.steak-runtime-ready) #shiftNft,
body:not(.steak-runtime-ready) #statsPanel,
body:not(.steak-runtime-ready) #claimPanel,
body.steak-runtime-booting #nftGrid,
body.steak-runtime-booting #workerProfiles,
body.steak-runtime-booting #workerSelectList,
body.steak-runtime-booting #activeJob,
body.steak-runtime-booting #shiftNft,
body.steak-canonical-pending #nftGrid,
body.steak-canonical-pending #workerProfiles,
body.steak-canonical-pending #workerSelectList,
body.steak-canonical-pending #activeJob,
body.steak-canonical-pending #shiftNft,
body.steak-canonical-pending #statsPanel,
body.steak-canonical-pending #claimPanel{
  visibility:hidden!important;
  pointer-events:none!important;
}

/* Restore hero headline to the earlier non-inverted treatment. */
.hero h1{
  width:auto!important;
  max-width:760px!important;
  padding:0!important;
  background:transparent!important;
  color:var(--text)!important;
  text-shadow:none!important;
}
.hero p{margin-top:0!important}

/* Sidebar is static now. Hide any stale collapse artifacts if an older build leaks them. */
.sidebar-toggle{display:none!important}
.shell{grid-template-columns:286px minmax(0,1fr)!important}
.shell.sidebar-collapsed{grid-template-columns:286px minmax(0,1fr)!important;min-height:initial!important}
.shell.sidebar-collapsed .left-sidebar-content{display:block!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:none!important}

/* The H00 earning note is information, not a control. */
.staking-info-note{
  display:flex;
  align-items:center;
  gap:9px;
  margin:-5px 0 14px;
  padding:9px 0 11px;
  border-bottom:1px solid rgba(214,254,80,.08);
  color:#8f9e82;
  font-size:10px;
  line-height:1.45;
  letter-spacing:.15px;
}
.staking-info-dot{
  width:6px;
  height:6px;
  flex:0 0 6px;
  background:var(--lime);
  box-shadow:0 0 12px rgba(214,254,80,.18);
}

/* The old hardcoded rate badge is stale; keep it out of the staking UI. */
#tab-staking .panel.toolbar > .pill.lime{
  display:none!important;
}

/* Clean toolbar: actions left, selected count right. */
.staking-toolbar-clean{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  padding:14px 0!important;
  border-top:1px solid rgba(214,254,80,.09)!important;
  border-bottom:1px solid rgba(214,254,80,.09)!important;
}
.staking-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.staking-selected-count{
  margin-left:auto!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:var(--lime)!important;
  font-family:var(--pixel);
  font-size:8px!important;
  letter-spacing:.65px!important;
  white-space:nowrap;
}

/* All staking toolbar actions share one footprint. */
.staking-actions button{
  width:148px!important;
  min-width:148px!important;
  height:40px!important;
  min-height:40px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 12px!important;
  font-size:10px!important;
  line-height:1!important;
  white-space:nowrap!important;
  box-shadow:none!important;
  transform:none!important;
  transition:border-color .14s ease,color .14s ease,background-color .08s ease!important;
}
.staking-actions .btn-primary,
.staking-actions .btn-secondary{
  border:1px solid rgba(214,254,80,.28)!important;
  background:transparent!important;
  color:#a8b69a!important;
}
.staking-actions .btn-danger{
  border:1px solid rgba(255,93,93,.5)!important;
  background:transparent!important;
  color:#ff7777!important;
}
.staking-actions .btn-primary:not(:disabled):hover,
.staking-actions .btn-secondary:not(:disabled):hover{
  background:transparent!important;
  color:#d4e4c7!important;
  border-color:rgba(214,254,80,.42)!important;
}
.staking-actions .btn-danger:not(:disabled):hover{
  background:rgba(255,93,93,.06)!important;
  color:#ff9696!important;
  border-color:rgba(255,93,93,.72)!important;
}
.staking-actions .btn-primary:not(:disabled):active,
.staking-actions .btn-secondary:not(:disabled):active{
  background:var(--lime)!important;
  color:#050805!important;
  border-color:var(--lime)!important;
  transform:translateY(1px)!important;
}
.staking-actions .btn-danger:not(:disabled):active{
  background:var(--red)!important;
  color:#050805!important;
  border-color:var(--red)!important;
  transform:translateY(1px)!important;
}
.staking-actions button:disabled{
  opacity:.34!important;
  cursor:not-allowed!important;
}

/* NFT card actions align cleanly regardless of label length. */
.nft .actions{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:7px!important;
}
.nft .actions button{
  width:100%!important;
  min-width:0!important;
  min-height:36px!important;
  padding:8px 8px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  line-height:1.15!important;
}
.nft .actions button:only-child{grid-column:1/-1}

/* Main job action gets a stable full-width target. */
#startJobBtn{
  width:100%!important;
  min-height:40px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}

/* START JOB already uses the native disabled state; make that state visually obvious. */
#startJobBtn:disabled{
  background:#11150f!important;
  color:#515b4a!important;
  border:1px solid #26301f!important;
  box-shadow:none!important;
  text-shadow:none!important;
  opacity:.52!important;
  filter:grayscale(1) saturate(.2)!important;
  cursor:not-allowed!important;
  pointer-events:none!important;
}

@media(max-width:1050px){
  .shell,.shell.sidebar-collapsed{grid-template-columns:248px minmax(0,1fr)!important}
  .staking-actions button{width:138px!important;min-width:138px!important}
}

@media(max-width:800px){
  .shell,.shell.sidebar-collapsed{display:block!important}
  .staking-toolbar-clean{align-items:flex-start!important;flex-direction:column!important}
  .staking-selected-count{margin-left:0!important;align-self:flex-end}
  .staking-actions{width:100%}
  .staking-actions button{width:100%!important;min-width:0!important}
}

@media(max-width:480px){
  .nft .actions{grid-template-columns:1fr!important}
}
