@media(max-width:650px){
  body.rcai-shell-applied .hero{padding:24px 0 20px!important}
  body.rcai-shell-applied .hero h1{font-size:28px!important;line-height:1.03!important;letter-spacing:-1px!important;max-width:330px}
  body.rcai-shell-applied .hero p{font-size:12px!important;line-height:1.5!important;margin-top:10px!important}
  body.rcai-shell-applied .stats{display:grid!important;grid-template-columns:repeat(3,1fr);gap:8px!important;margin-top:16px!important;overflow:visible!important}
  body.rcai-shell-applied .stat{min-width:0!important;background:#fff;border:1px solid #e4e4e7;border-radius:8px;padding:10px}
  body.rcai-shell-applied .stat strong{font-size:19px!important}
  body.rcai-shell-applied .stat span{font-size:7px!important}
  body.rcai-shell-applied .page{padding-top:12px!important}
  body.rcai-shell-applied .toolbar{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;padding:10px!important;margin-bottom:10px!important}
  body.rcai-shell-applied .toolbar .search{grid-column:1/-1!important}
  body.rcai-shell-applied .toolbar .field{min-width:0;width:100%;height:38px;font-size:11px;padding:0 9px}
  body.rcai-shell-applied .toolbar>div[style*="grid-column"]{grid-column:1/-1!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;justify-content:stretch!important;padding-top:0!important}
  body.rcai-shell-applied .toolbar>div[style*="grid-column"] .field{font-size:10px!important;padding:0 7px!important}
  body.rcai-shell-applied .layout{display:block!important}
  body.rcai-shell-applied .panel{border:0!important;background:transparent!important;overflow:visible!important}
  body.rcai-shell-applied .panel-head{background:#fff;border:1px solid #e4e4e7;border-radius:9px;margin-bottom:8px;padding:11px 12px!important}
  body.rcai-shell-applied .table-wrap{overflow:visible!important}
  body.rcai-shell-applied .table{display:block!important;min-width:0!important;width:100%!important;border-collapse:separate!important}
  body.rcai-shell-applied .table thead{display:none!important}
  body.rcai-shell-applied .table tbody{display:grid!important;gap:8px!important}
  body.rcai-shell-applied .table tbody tr{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:5px 10px!important;background:#fff;border:1px solid #e4e4e7;border-radius:10px;padding:12px!important;box-shadow:0 1px 0 rgba(0,0,0,.02)}
  body.rcai-shell-applied .table tbody tr:hover{background:#fff!important}
  body.rcai-shell-applied .table tbody td{display:block!important;border:0!important;padding:0!important;font-size:10px!important;min-width:0!important}
  body.rcai-shell-applied .table tbody td:nth-child(1){grid-column:1/-1}
  body.rcai-shell-applied .table tbody td:nth-child(2){grid-column:1/2;margin-left:52px;margin-top:-3px}
  body.rcai-shell-applied .table tbody td:nth-child(3){grid-column:2/3;grid-row:2/3;text-align:right;color:#52525b;max-width:125px}
  body.rcai-shell-applied .table tbody td:nth-child(4),body.rcai-shell-applied .table tbody td:nth-child(5),body.rcai-shell-applied .table tbody td:nth-child(8),body.rcai-shell-applied .table tbody td:nth-child(9),body.rcai-shell-applied .table tbody td:nth-child(10),body.rcai-shell-applied .table tbody td:nth-child(11),body.rcai-shell-applied .table tbody td:nth-child(12){display:none!important}
  body.rcai-shell-applied.pro-mode .table tbody td:nth-child(6){display:block!important;grid-column:1/2;margin-left:52px;color:#52525b;padding-top:5px!important;border-top:1px solid #f1f1f2!important}
  body.rcai-shell-applied.pro-mode .table tbody td:nth-child(6)::before{content:'Funding  ';font-weight:800;color:#a1a1aa;text-transform:uppercase;font-size:7px;letter-spacing:.5px}
  body.rcai-shell-applied.pro-mode .table tbody td:nth-child(7){display:block!important;grid-column:2/3;text-align:right;padding-top:5px!important;border-top:1px solid #f1f1f2!important}
  body.rcai-shell-applied.pro-mode .table tbody td:nth-child(7)::before{content:'Matrix  ';font-weight:800;color:#a1a1aa;text-transform:uppercase;font-size:7px;letter-spacing:.5px}
  body.rcai-shell-applied .table tbody td:nth-child(13){grid-column:2/3;grid-row:1/2;align-self:center;text-align:right}
  body.rcai-shell-applied .co{gap:8px!important;padding-right:72px}
  body.rcai-shell-applied .mark{width:38px!important;height:38px!important;border-radius:8px!important}
  body.rcai-shell-applied .co strong{font-size:12px!important;line-height:1.2}
  body.rcai-shell-applied .co small{font-size:8px!important;line-height:1.3;margin-top:2px;display:block}
  body.rcai-shell-applied .pill{font-size:8px!important;padding:3px 6px!important}
  body.rcai-shell-applied .open{display:inline-flex!important;align-items:center;justify-content:center;border:1px solid #e4e4e7;border-radius:6px;padding:6px 8px!important;background:#fff;color:#1d4ed8!important;font-size:8px!important}
  body.rcai-shell-applied .ci-watch{font-size:15px!important;margin-right:4px!important}
  body.rcai-shell-applied .ci-select{width:15px;height:15px;margin-right:5px!important}
  body.rcai-shell-applied .sidebar{display:none!important}
  body.rcai-shell-applied .rcai-table-pro-note{grid-column:1/-1!important}
}


/* RCAI_COMPANY_CARD_MOBILE_V2
   Keep desktop intelligence columns readable when the directory becomes cards. */
@media(max-width:650px){
  body.rcai-shell-applied{overflow-x:hidden}
  body.rcai-shell-applied .table tbody tr{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:0!important;
    padding:13px!important;
    position:relative!important;
  }
  body.rcai-shell-applied .table tbody td:nth-child(1){
    grid-column:1!important;
    grid-row:auto!important;
    padding-bottom:5px!important;
  }
  body.rcai-shell-applied .table tbody td:nth-child(2){
    grid-column:1!important;
    grid-row:auto!important;
    margin:-2px 76px 2px 46px!important;
  }
  body.rcai-shell-applied .table tbody td:nth-child(3),
  body.rcai-shell-applied.pro-mode .table tbody td:nth-child(6),
  body.rcai-shell-applied.pro-mode .table tbody td:nth-child(7){
    grid-column:1!important;
    grid-row:auto!important;
    display:grid!important;
    grid-template-columns:70px minmax(0,1fr)!important;
    gap:8px!important;
    align-items:start!important;
    margin:7px 0 0!important;
    padding:8px 0 0!important;
    border-top:1px solid #f1f1f2!important;
    max-width:none!important;
    min-width:0!important;
    text-align:left!important;
    color:#3f3f46!important;
    line-height:1.45!important;
    overflow-wrap:anywhere!important;
  }
  body.rcai-shell-applied .table tbody td:nth-child(3)::before,
  body.rcai-shell-applied.pro-mode .table tbody td:nth-child(6)::before,
  body.rcai-shell-applied.pro-mode .table tbody td:nth-child(7)::before{
    display:block!important;
    font-size:7px!important;
    font-weight:800!important;
    line-height:1.5!important;
    letter-spacing:.5px!important;
    text-transform:uppercase!important;
    color:#a1a1aa!important;
  }
  body.rcai-shell-applied .table tbody td:nth-child(3)::before{content:'Ownership'!important}
  body.rcai-shell-applied.pro-mode .table tbody td:nth-child(6)::before{content:'Funding'!important}
  body.rcai-shell-applied.pro-mode .table tbody td:nth-child(7)::before{content:'Market Matrix'!important}
  body.rcai-shell-applied .table tbody td:nth-child(13){
    grid-column:1!important;
    grid-row:auto!important;
    position:absolute!important;
    top:12px!important;
    right:12px!important;
    text-align:right!important;
  }
  body.rcai-shell-applied .co{padding-right:76px!important;align-items:flex-start!important}
  body.rcai-shell-applied .co>div:last-child{min-width:0!important}
  body.rcai-shell-applied .co strong,
  body.rcai-shell-applied .co small{overflow-wrap:anywhere!important}
  body.rcai-shell-applied .open{white-space:nowrap!important}
}
