/* Theo Properties RC1.0.15.110 — Mobile Tenant Command Centre Premium Cleanup Lock
   Scope: authenticated Tenant dashboard on phones <=700px only.
   Presentation only. No dashboard authority, routing, auth, data, tenancy-state or workflow changes. */

@media (max-width:700px){
  /* Preserve generous mobile gutters but reduce dead vertical space. */
  body.signed-mode #tenant.ws30-tenant-enhanced{
    min-width:0!important;
    padding-bottom:calc(156px + env(safe-area-inset-bottom))!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard{
    gap:8px!important;
    margin:0!important;
    min-width:0!important;
  }

  /* One compact, premium dashboard masthead. Status shares the kicker line. */
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-heading{
    position:relative!important;
    display:block!important;
    min-width:0!important;
    padding:0 1px 1px!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-heading>div:first-child{
    max-width:none!important;
    min-width:0!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-heading>div>span{
    margin:0 0 6px!important;
    padding-right:94px!important;
    font-size:9.5px!important;
    line-height:1.15!important;
    letter-spacing:.105em!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-heading h2{
    margin:0!important;
    max-width:100%!important;
    font-size:clamp(25px,7vw,30px)!important;
    line-height:1.035!important;
    letter-spacing:-.043em!important;
    text-wrap:balance!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-heading p{
    margin:7px 0 0!important;
    max-width:36rem!important;
    font-size:12.5px!important;
    line-height:1.42!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-status{
    position:absolute!important;
    top:-1px!important;
    right:0!important;
    min-height:28px!important;
    padding:5px 9px!important;
    border-radius:8px!important;
    font-size:10px!important;
    line-height:1!important;
  }

  /* 2 x 2 overview stays intact, but cards become lighter and less tall. */
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-kpi{
    min-height:84px!important;
    padding:11px 11px 10px!important;
    border-radius:11px!important;
    box-shadow:0 7px 18px rgba(19,45,67,.03)!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-kpi>span{
    font-size:8.8px!important;
    line-height:1.18!important;
    letter-spacing:.055em!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-kpi strong{
    margin-top:5px!important;
    font-size:18.5px!important;
    line-height:1.02!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-kpi small{
    margin-top:4px!important;
    font-size:9.2px!important;
    line-height:1.28!important;
  }

  /* One panel per row, with cleaner section spacing. */
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-exec-grid{
    grid-template-columns:1fr!important;
    gap:8px!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-panel{
    min-width:0!important;
    border-radius:12px!important;
    box-shadow:0 7px 20px rgba(19,45,67,.03)!important;
    scroll-margin-bottom:calc(96px + env(safe-area-inset-bottom))!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-panel-head{
    padding:12px 13px 9px!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-panel-head h3{
    font-size:14px!important;
    line-height:1.18!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-panel-head span{
    margin-top:3px!important;
    font-size:9.7px!important;
    line-height:1.3!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-panel-body{
    padding:9px 13px 12px!important;
  }

  /* Keep the primary search action prominent without oversized mobile rows. */
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-actions{
    gap:6px!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-actions>button,
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-actions>a{
    gap:2px!important;
    min-height:0!important;
    padding:9px 11px!important;
    border-radius:8px!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-actions strong{
    font-size:12px!important;
    line-height:1.2!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-actions small{
    font-size:9.5px!important;
    line-height:1.25!important;
  }

  /* Rental Journey remains a contained five-stage strip. */
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-journey{
    padding:1px 0 0!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-stage{
    gap:4px!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-stage b{
    width:25px!important;
    height:25px!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-stage span{
    font-size:8.7px!important;
  }

  /* Fixed dock safety: the final dashboard sections can always clear the dock. */
  body.signed-mode .content{
    padding-bottom:calc(164px + env(safe-area-inset-bottom))!important;
    scroll-padding-bottom:calc(112px + env(safe-area-inset-bottom))!important;
  }
}

@media (max-width:350px){
  /* Very narrow phones: status returns to normal flow rather than squeezing the kicker. */
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-heading{
    display:grid!important;
    gap:7px!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-heading>div>span{padding-right:0!important}
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-status{
    position:static!important;
    justify-self:start!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-kpis{grid-template-columns:1fr!important}
}
