/* Homepage production remediation — 2026-09-04 */

/* 1) Keep all assistant cards equal; the labor card must not span two rows. */
.ta-assistants-grid{align-items:stretch}
.ta-assistant-featured{grid-row:auto!important}
.ta-assistant-card{height:100%;min-height:0}

/* 2) Keep the smart assistant compact on desktop without hiding content. */
@media (min-width:701px){
  .ta-welcome{
    display:flex;
    flex-direction:column;
    max-height:min(560px,calc(100dvh - 120px));
    overflow:hidden;
  }
  .ta-welcome.ta-hidden{display:none!important}
  .ta-welcome .ta-head,.ta-welcome .ta-foot{flex:0 0 auto}
  .ta-welcome .ta-body{
    flex:1 1 auto;
    min-height:0;
    max-height:430px;
    overflow-y:auto;
    overscroll-behavior:contain;
    padding:14px;
  }
  .ta-welcome .ta-bubble{padding:13px}
  .ta-welcome .ta-options{gap:7px;margin-top:11px}
  .ta-welcome .ta-options button,.ta-welcome .ta-options a{padding:10px 11px;min-height:42px}
}

/* 3) Compact mobile smart assistant: short card with internal scroll, never a full-height overlay. */
@media (max-width:700px){
  .ta-welcome{
    right:10px!important;
    left:auto!important;
    bottom:74px!important;
    width:min(88vw,360px)!important;
    max-width:calc(100vw - 20px)!important;
    height:auto!important;
    max-height:min(54dvh,430px)!important;
    display:flex;
    flex-direction:column;
    overflow:hidden!important;
    border-radius:18px!important;
  }
  .ta-welcome.ta-hidden{display:none!important}
  .ta-welcome .ta-head,.ta-welcome .ta-foot{flex:0 0 auto}
  .ta-welcome .ta-head{padding:10px 12px}
  .ta-welcome .ta-logo-slot{width:118px;max-width:42vw}
  .ta-welcome .ta-close{min-width:38px;min-height:38px;font-size:22px}
  .ta-welcome .ta-body{
    flex:1 1 auto;
    min-height:0;
    max-height:300px;
    overflow-y:auto!important;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    padding:10px!important;
  }
  .ta-welcome .ta-bubble{padding:10px 11px}
  .ta-welcome .ta-bubble b{font-size:12px}
  .ta-welcome .ta-bubble p{font-size:10px;line-height:1.7;margin-top:4px}
  .ta-welcome .ta-options{gap:6px;margin-top:9px}
  .ta-welcome .ta-options button,.ta-welcome .ta-options a{
    min-height:38px;
    padding:8px 10px;
    font-size:10px;
    line-height:1.45;
  }
  .ta-welcome .ta-foot{padding:7px;font-size:8px}
  .ta-assistant-card{height:auto}
}

@media (max-width:390px){
  .ta-welcome{
    width:calc(100vw - 20px)!important;
    max-height:min(50dvh,390px)!important;
  }
  .ta-welcome .ta-body{max-height:265px}
}
