/* Ifycoin v1.9.8 — mobile header readability + compact mining dashboard.
   Shared across every installed theme. */

@media (max-width:900px){
  /* Make the logo and live wallet balance useful at phone/tablet sizes. */
  .ify-unified-header .ify-header-row{
    min-height:66px!important;
    gap:8px!important;
  }
  .ify-unified-header .ify-unified-brand{
    max-width:34%!important;
    min-width:46px!important;
    flex:0 1 auto!important;
  }
  .ify-unified-header .ify-unified-brand .site-logo{
    width:auto!important;
    height:64px!important;
    max-width:132px!important;
    object-fit:contain!important;
  }
  .ify-unified-header .ify-unified-mark{
    width:46px!important;
    height:46px!important;
    min-width:46px!important;
    font-size:13px!important;
  }
  .ify-unified-header .ify-header-balance{
    min-height:44px!important;
    padding:6px 9px!important;
    border-radius:11px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    white-space:nowrap!important;
  }
  .ify-unified-header .ify-header-balance small{display:none!important}
  .ify-unified-header .ify-header-balance b{
    font-size:11px!important;
    line-height:1!important;
    letter-spacing:-.15px!important;
  }
  .ify-unified-header .ify-header-balance #headerBalance{
    font-size:12px!important;
    font-weight:800!important;
  }
  .ify-unified-header .ify-user-trigger,
  .ify-unified-header .ify-mobile-menu-toggle{
    width:44px!important;
    height:44px!important;
    min-width:44px!important;
    min-height:44px!important;
  }
  .ify-unified-header .ify-user-avatar{
    width:34px!important;
    height:34px!important;
  }

  /* Dashboard intro should introduce the miner, not push it below the fold. */
  body.page-dashboard .site-main{
    padding-top:14px!important;
  }
  body.page-dashboard :is(
    .nebula-dashboard-head,
    .horizon-page-head,
    .electric-dash-head,
    .arctic-dashboard-head,
    .rgb-dash-head,
    .prime-dash-head,
    .forge-dashboard-title,
    .mono-dash-head,
    .block-dash-head
  ){
    display:block!important;
    min-height:0!important;
    margin:0 0 14px!important;
    padding:10px 0 0!important;
    gap:0!important;
  }
  body.page-dashboard :is(
    .nebula-dashboard-head,
    .horizon-page-head,
    .electric-dash-head,
    .arctic-dashboard-head,
    .rgb-dash-head,
    .prime-dash-head,
    .forge-dashboard-title,
    .mono-dash-head,
    .block-dash-head
  ) > div{
    width:100%!important;
    max-width:none!important;
  }
  body.page-dashboard :is(
    .nebula-dashboard-head,
    .horizon-page-head,
    .electric-dash-head,
    .arctic-dashboard-head,
    .rgb-dash-head,
    .prime-dash-head,
    .forge-dashboard-title,
    .mono-dash-head,
    .block-dash-head
  ) h1{
    margin:6px 0 7px!important;
    font-size:clamp(30px,8.5vw,38px)!important;
    line-height:1.04!important;
    letter-spacing:-.7px!important;
  }
  body.page-dashboard :is(
    .nebula-dashboard-head,
    .horizon-page-head,
    .electric-dash-head,
    .arctic-dashboard-head,
    .rgb-dash-head,
    .prime-dash-head,
    .forge-dashboard-title,
    .mono-dash-head,
    .block-dash-head
  ) p{
    margin:0!important;
    max-width:42rem!important;
    font-size:13.5px!important;
    line-height:1.42!important;
  }
  body.page-dashboard :is(
    .nebula-dashboard-head .eyebrow,
    .horizon-page-head .eyebrow,
    .electric-dash-head > div > span,
    .arctic-dashboard-head .terminal-tag,
    .rgb-dash-head > div > span,
    .prime-dash-head .prime-kicker,
    .forge-dashboard-title > div > span,
    .mono-dash-head > div > span,
    .block-dash-head > div > span
  ){
    font-size:11px!important;
    line-height:1.2!important;
    margin:0!important;
  }
}

@media (max-width:520px){
  .ify-unified-header .ify-header-row{gap:6px!important}
  .ify-unified-header .ify-unified-brand{max-width:25%!important}
  .ify-unified-header .ify-unified-brand .site-logo{
    height:64px!important;
    max-width:104px!important;
  }
  .ify-unified-header .ify-header-balance{
    padding:6px 7px!important;
    min-height:42px!important;
  }
  .ify-unified-header .ify-header-balance b{font-size:18px!important}
  .ify-unified-header .ify-header-balance #headerBalance{font-size:18px!important}
  body.page-dashboard .site-main{padding-top:10px!important}
}

@media (max-width:380px){
  .ify-unified-header .ify-unified-brand{max-width:22%!important}
  .ify-unified-header .ify-unified-brand .site-logo{height:64px!important;max-width:82px!important}
  .ify-unified-header .ify-header-balance{padding:5px 6px!important}
  .ify-unified-header .ify-header-balance b{font-size:9px!important}
  .ify-unified-header .ify-header-balance #headerBalance{font-size:10px!important}
}
