/* Theo Properties RC1.0.15.105 — Mobile Tenant Dashboard Composition Lock
   Scope: authenticated tenant dashboard, production-empty/no-active-tenancy state only.
   Phone <=700px. No tablet, laptop, desktop, routing, auth, data or workflow changes. */

@media (max-width:700px){
  /* Keep the tenant landing page contained and clear of the fixed workspace dock. */
  body.signed-mode #tenant[data-production-empty="true"]{
    min-width:0!important;
    overflow:visible!important;
    padding-bottom:22px!important;
  }

  body.signed-mode #tenant[data-production-empty="true"] .tenant-empty-grid{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:12px!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
  }

  /* Preserve the successful primary no-tenancy card, only tighten its mobile rhythm. */
  body.signed-mode #tenant[data-production-empty="true"] .tenant-empty-primary{
    min-width:0!important;
    padding:22px 19px 20px!important;
    border-radius:14px!important;
  }
  body.signed-mode #tenant[data-production-empty="true"] .tenant-empty-kicker{
    margin-bottom:8px!important;
    font-size:10.5px!important;
    line-height:1.2!important;
    letter-spacing:.12em!important;
  }
  body.signed-mode #tenant[data-production-empty="true"] .tenant-empty-primary h2{
    margin:0 0 10px!important;
    max-width:100%!important;
    font-size:clamp(25px,7vw,30px)!important;
    line-height:1.06!important;
    letter-spacing:-.04em!important;
    white-space:normal!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    text-wrap:balance!important;
  }
  body.signed-mode #tenant[data-production-empty="true"] .tenant-empty-primary>p{
    margin:0!important;
    max-width:100%!important;
    font-size:14px!important;
    line-height:1.48!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
  }
  body.signed-mode #tenant[data-production-empty="true"] .tenant-empty-actions{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:8px!important;
    margin-top:18px!important;
  }
  body.signed-mode #tenant[data-production-empty="true"] .tenant-empty-actions .button{
    width:100%!important;
    min-width:0!important;
    min-height:46px!important;
    margin:0!important;
    padding:0 10px!important;
    border-radius:9px!important;
    font-size:13px!important;
    line-height:1.15!important;
    text-align:center!important;
    white-space:nowrap!important;
  }

  /*
     Critical fix: the legacy mobile sheet forced this journey into three tiny columns.
     Mobile now owns a single vertical reading flow with one complete step per row.
  */
  body.signed-mode #tenant[data-production-empty="true"] .tenant-empty-grid>.panel:not(.tenant-empty-primary){
    min-width:0!important;
    padding:18px 18px 16px!important;
    border-radius:14px!important;
    overflow:hidden!important;
  }
  body.signed-mode #tenant[data-production-empty="true"] .tenant-empty-grid>.panel:not(.tenant-empty-primary)>h2{
    margin:0!important;
    padding:0 0 13px!important;
    border-bottom:1px solid #dfe7eb!important;
    color:#123047!important;
    font-size:19px!important;
    line-height:1.14!important;
    letter-spacing:-.03em!important;
    white-space:normal!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
  }

  body.signed-mode #tenant[data-production-empty="true"] .tenant-journey-list{
    counter-reset:tenant-journey!important;
    position:relative!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    grid-auto-flow:row!important;
    gap:0!important;
    width:100%!important;
    min-width:0!important;
    margin:5px 0 0!important;
    padding:0!important;
    border:0!important;
  }
  body.signed-mode #tenant[data-production-empty="true"] .tenant-journey-list::before{
    content:"";
    position:absolute;
    top:31px;
    bottom:31px;
    left:17px;
    width:1px;
    background:#eadfce;
    pointer-events:none;
  }
  body.signed-mode #tenant[data-production-empty="true"] .tenant-journey-list>div{
    counter-increment:tenant-journey!important;
    position:relative!important;
    display:block!important;
    width:100%!important;
    min-width:0!important;
    min-height:0!important;
    margin:0!important;
    padding:15px 0 15px 50px!important;
    border:0!important;
    border-bottom:1px solid #e8edef!important;
    border-radius:0!important;
    background:transparent!important;
    align-content:initial!important;
    overflow:visible!important;
  }
  body.signed-mode #tenant[data-production-empty="true"] .tenant-journey-list>div:last-child{
    padding-bottom:12px!important;
    border-bottom:0!important;
  }
  body.signed-mode #tenant[data-production-empty="true"] .tenant-journey-list>div::before{
    content:"0" counter(tenant-journey)!important;
    position:absolute!important;
    top:14px!important;
    left:0!important;
    z-index:1!important;
    display:grid!important;
    place-items:center!important;
    width:35px!important;
    height:35px!important;
    border-radius:9px!important;
    color:#8d622a!important;
    background:#fbf3e8!important;
    font:800 10.5px/1 Inter,system-ui,sans-serif!important;
    letter-spacing:.04em!important;
  }
  body.signed-mode #tenant[data-production-empty="true"] .tenant-journey-list strong{
    display:block!important;
    margin:0!important;
    color:#123047!important;
    font-size:15px!important;
    line-height:1.25!important;
    font-weight:800!important;
    letter-spacing:-.015em!important;
    white-space:normal!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
  }
  body.signed-mode #tenant[data-production-empty="true"] .tenant-journey-list span{
    display:block!important;
    margin-top:4px!important;
    color:#687d8b!important;
    font-size:13px!important;
    line-height:1.45!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    hyphens:none!important;
  }
}

@media (max-width:360px){
  /* Only genuinely narrow phones stack the two primary actions. */
  body.signed-mode #tenant[data-production-empty="true"] .tenant-empty-actions{
    grid-template-columns:1fr!important;
  }
}
