/* Theo Properties RC1.0.15.118 — Mobile Tenant SaaS Card Visual Polish
   Visual-only overlay for the authenticated Tenant dashboard at <=700px.
   RC1.0.15.110 remains the mobile composition authority; RC1.0.15.117 remains
   the tablet SaaS visual authority. No HTML structure, JavaScript, routing,
   Supabase, data, workflow or dashboard rendering authority changes. */

@media (max-width:700px){
  /* ---------- KPI summary cards ---------- */
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-kpi{
    --card-accent:#5f83ad;
    --card-accent-rgb:95,131,173;
    position:relative!important;
    isolation:isolate!important;
    overflow:hidden!important;
    border:1px solid rgba(var(--card-accent-rgb),.24)!important;
    background:linear-gradient(145deg,rgba(var(--card-accent-rgb),.105) 0%,rgba(255,255,255,.985) 58%,#fff 100%)!important;
    box-shadow:0 10px 24px rgba(19,45,67,.055),0 2px 6px rgba(19,45,67,.022)!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-kpi:nth-child(1){
    --card-accent:#4f80b8;
    --card-accent-rgb:79,128,184;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-kpi:nth-child(2){
    --card-accent:#b9812f;
    --card-accent-rgb:185,129,47;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-kpi:nth-child(3){
    --card-accent:#3c8d7b;
    --card-accent-rgb:60,141,123;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-kpi:nth-child(4){
    --card-accent:#756daf;
    --card-accent-rgb:117,109,175;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-kpi::before{
    content:""!important;
    position:absolute!important;
    z-index:0!important;
    inset:0 auto 0 0!important;
    width:3px!important;
    background:linear-gradient(180deg,var(--card-accent),rgba(var(--card-accent-rgb),.40))!important;
    border-radius:11px 0 0 11px!important;
    pointer-events:none!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-kpi::after{
    content:""!important;
    position:absolute!important;
    z-index:0!important;
    width:66px!important;
    height:66px!important;
    top:-31px!important;
    right:-18px!important;
    border-radius:50%!important;
    background:radial-gradient(circle,rgba(var(--card-accent-rgb),.18) 0%,rgba(var(--card-accent-rgb),.065) 49%,transparent 72%)!important;
    pointer-events:none!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-kpi>span,
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-kpi>strong,
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-kpi>small{
    position:relative!important;
    z-index:1!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-kpi>span{
    color:var(--card-accent)!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-kpi strong{
    color:#14334a!important;
    text-shadow:0 1px 0 rgba(255,255,255,.72)!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-kpi small{
    color:#738795!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-kpi.attention{
    --card-accent:#b5762a!important;
    --card-accent-rgb:181,118,42!important;
  }

  /* ---------- Principal dashboard panels ---------- */
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-panel{
    --panel-accent:#547ca4;
    --panel-accent-rgb:84,124,164;
    position:relative!important;
    isolation:isolate!important;
    border:1px solid rgba(var(--panel-accent-rgb),.19)!important;
    background:linear-gradient(180deg,rgba(var(--panel-accent-rgb),.055) 0%,#fff 31%,#fff 100%)!important;
    box-shadow:0 11px 27px rgba(19,45,67,.052),0 2px 6px rgba(19,45,67,.02)!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-exec-grid>.ws30-panel:nth-child(1){
    --panel-accent:#4d7eae;
    --panel-accent-rgb:77,126,174;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-exec-grid>.ws30-panel:nth-child(2){
    --panel-accent:#b48135;
    --panel-accent-rgb:180,129,53;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-exec-grid>.ws30-panel:nth-child(3){
    --panel-accent:#438a7b;
    --panel-accent-rgb:67,138,123;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-panel::before{
    content:""!important;
    position:absolute!important;
    z-index:2!important;
    top:0!important;
    left:13px!important;
    right:13px!important;
    height:2px!important;
    border-radius:0 0 999px 999px!important;
    background:linear-gradient(90deg,var(--panel-accent),rgba(var(--panel-accent-rgb),.18))!important;
    pointer-events:none!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-panel-head{
    position:relative!important;
    z-index:1!important;
    border-bottom:1px solid rgba(var(--panel-accent-rgb),.13)!important;
    background:linear-gradient(180deg,rgba(var(--panel-accent-rgb),.065),rgba(255,255,255,.18))!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-panel-head h3{
    display:flex!important;
    align-items:center!important;
    gap:7px!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-panel-head h3::before{
    content:""!important;
    flex:0 0 auto!important;
    width:6px!important;
    height:6px!important;
    border-radius:50%!important;
    background:var(--panel-accent)!important;
    box-shadow:0 0 0 3px rgba(var(--panel-accent-rgb),.10)!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-panel-head span{
    color:#7a8d99!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-panel-body{
    position:relative!important;
    z-index:1!important;
  }

  /* ---------- SaaS-style mobile action cards ---------- */
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-actions>button,
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-actions>a{
    --action-accent:#597e9d;
    --action-accent-rgb:89,126,157;
    position:relative!important;
    overflow:hidden!important;
    border:1px solid rgba(var(--action-accent-rgb),.22)!important;
    background:linear-gradient(135deg,rgba(var(--action-accent-rgb),.10),rgba(255,255,255,.985) 64%)!important;
    color:#17364d!important;
    box-shadow:0 6px 15px rgba(19,45,67,.035)!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-actions>button:nth-child(1){
    --action-accent:#274e70;
    --action-accent-rgb:39,78,112;
    border-color:#274e70!important;
    background:linear-gradient(135deg,#17364d 0%,#244d6a 72%,#315f7f 100%)!important;
    color:#fff!important;
    box-shadow:0 8px 19px rgba(23,54,77,.14)!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-actions>button:nth-child(2){
    --action-accent:#b17e34;
    --action-accent-rgb:177,126,52;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-actions>a:nth-child(3),
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-actions>a:last-child{
    --action-accent:#448679;
    --action-accent-rgb:68,134,121;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-actions>button::before,
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-actions>a::before{
    content:""!important;
    position:absolute!important;
    top:8px!important;
    right:9px!important;
    width:6px!important;
    height:6px!important;
    border-radius:50%!important;
    background:var(--action-accent)!important;
    box-shadow:0 0 0 3px rgba(var(--action-accent-rgb),.10)!important;
    pointer-events:none!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-actions>button:nth-child(1)::before{
    background:#d4a65d!important;
    box-shadow:0 0 0 3px rgba(212,166,93,.14)!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-actions>button small,
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-actions>a small{
    color:#7d8f9b!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-actions>button:nth-child(1) small{
    color:rgba(255,255,255,.74)!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-active-actions>button:first-child{
    border-color:rgba(79,128,184,.24)!important;
    background:linear-gradient(135deg,rgba(79,128,184,.10),rgba(255,255,255,.985) 64%)!important;
    color:#17364d!important;
    box-shadow:0 6px 15px rgba(19,45,67,.035)!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-active-actions>button:first-child::before{
    background:#4f80b8!important;
    box-shadow:0 0 0 3px rgba(79,128,184,.10)!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-active-actions>button:first-child small{
    color:#7d8f9b!important;
  }

  /* ---------- Rental journey ---------- */
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-stage b{
    border-color:#dbe4e8!important;
    background:linear-gradient(180deg,#fff,#f8fafb)!important;
    box-shadow:0 3px 8px rgba(19,45,67,.032)!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-stage.done b{
    border-color:#dec18e!important;
    background:linear-gradient(180deg,#fffaf1,#fff5e5)!important;
    color:#9b6925!important;
    box-shadow:0 4px 10px rgba(180,129,53,.08)!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-stage.current b{
    box-shadow:0 0 0 3px rgba(180,129,53,.10),0 4px 10px rgba(180,129,53,.075)!important;
  }

  /* ---------- Today's context / current tenancy cells ---------- */
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-search-context,
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-home-context{
    border-color:#e1e9ec!important;
    background:#fff!important;
    box-shadow:0 6px 15px rgba(19,45,67,.022)!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-search-context>div,
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-home-context>div{
    position:relative!important;
    background:linear-gradient(145deg,rgba(79,128,184,.06),#fff 64%)!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-search-context>div:nth-child(2),
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-home-context>div:nth-child(2){
    background:linear-gradient(145deg,rgba(60,141,123,.06),#fff 64%)!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-home-context>div:nth-child(3){
    background:linear-gradient(145deg,rgba(185,129,47,.06),#fff 64%)!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-home-context>div:nth-child(4){
    background:linear-gradient(145deg,rgba(117,109,175,.056),#fff 64%)!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-search-context>div::before,
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-home-context>div::before{
    content:""!important;
    position:absolute!important;
    top:10px!important;
    right:10px!important;
    width:5px!important;
    height:5px!important;
    border-radius:50%!important;
    background:#5b84aa!important;
    opacity:.74!important;
  }
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-search-context>div:nth-child(2)::before,
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-home-context>div:nth-child(2)::before{background:#438a7b!important}
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-home-context>div:nth-child(3)::before{background:#b48135!important}
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-home-context>div:nth-child(4)::before{background:#756daf!important}

  /* Slightly more dimensional state badge without changing its placement. */
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-status{
    box-shadow:0 5px 14px rgba(19,45,67,.04)!important;
    backdrop-filter:saturate(115%) blur(4px)!important;
    -webkit-backdrop-filter:saturate(115%) blur(4px)!important;
  }
}

/* Very narrow phones retain the one-column rules from RC1.0.15.110/107. */
@media (max-width:350px){
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-kpi::after{
    width:58px!important;
    height:58px!important;
    top:-28px!important;
    right:-16px!important;
  }
}

@media (max-width:700px) and (prefers-reduced-motion:reduce){
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-kpi,
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-panel,
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-actions>button,
  body.signed-mode #tenant #ws30-tenant-dashboard .ws30-tenant-actions>a{transition:none!important}
}
