/* Company profile v2 — cleaner hierarchy and desktop spacing */
body.rcai-company-profile .wrap{max-width:1180px!important;padding-top:24px!important}
body.rcai-company-profile .hero{grid-template-columns:minmax(0,1fr) 380px!important;gap:44px!important;padding:0 0 22px!important;align-items:start!important}
body.rcai-company-profile .identity{gap:18px!important;max-width:748px}
body.rcai-company-profile .hero h1{font-size:40px!important;line-height:1.02!important;margin:3px 0 8px!important}
body.rcai-company-profile .desc{font-size:15px!important;line-height:1.55!important;max-width:690px!important}
body.rcai-company-profile .tags{margin-top:11px!important;gap:6px!important}
body.rcai-company-profile .actions{margin-top:14px!important;gap:8px!important;align-items:center}
body.rcai-company-profile .actions .watch,body.rcai-company-profile .actions .ghost,body.rcai-company-profile .actions .solid{padding:9px 12px!important}
body.rcai-company-profile .actions #watch{display:none!important}

/* Header rail: Watch + vendor claim/verified */
body.rcai-company-profile .rcai-header-rail{display:grid;gap:11px;align-content:start;min-width:0;width:100%;justify-self:end}
body.rcai-company-profile .rcai-header-watch{display:flex!important;justify-content:flex-end!important;align-items:center!important;width:100%;min-height:38px;text-align:right}
body.rcai-company-profile .rcai-header-watch .watch{margin-left:auto!important;min-width:112px;padding:9px 14px!important;background:#fff;border:1px solid var(--rc-border);font-size:11px;font-weight:800}
body.rcai-company-profile .rcai-vendor-card{margin:0!important;max-width:none!important;border:1px solid #bfdbfe!important;border-radius:10px!important;background:#eff6ff!important;padding:15px 16px!important;box-shadow:none!important}
body.rcai-company-profile .rcai-vendor-kicker{font-size:9px;text-transform:uppercase;letter-spacing:.75px;color:#1d4ed8;font-weight:800;margin-bottom:5px}
body.rcai-company-profile .rcai-vendor-copy{font-size:10.5px!important;line-height:1.5!important;color:#475569!important;margin:0 0 11px!important}
body.rcai-company-profile .rcai-vendor-actions{display:grid;grid-template-columns:1fr 1.18fr;gap:8px}
body.rcai-company-profile .rcai-vendor-actions a{display:flex!important;justify-content:center!important;align-items:center!important;text-align:center!important;padding:9px 10px!important;font-size:10px!important}
body.rcai-company-profile .rcai-vendor-note{font-size:8.5px!important;line-height:1.45!important;color:#64748b!important;margin:9px 0 0!important}

/* Decision snapshot now lives in the body right rail */
body.rcai-company-profile .main{grid-template-columns:minmax(0,1.72fr) minmax(300px,.78fr)!important;gap:22px!important;margin-top:18px!important}
body.rcai-company-profile .content,body.rcai-company-profile .side{gap:11px!important}
body.rcai-company-profile .rcai-decision-card{order:-10}
body.rcai-company-profile .rcai-decision-card .quick{grid-template-columns:1fr 1fr!important;gap:8px!important}
body.rcai-company-profile .rcai-decision-card .q{min-height:68px!important;padding:12px 13px!important;background:#fff!important}
body.rcai-company-profile .rcai-decision-card .q strong{font-size:13px!important}

/* Research actions: links + real export buttons */
body.rcai-company-profile .rcai-workflow-bar{max-width:1180px!important;margin:0 auto!important;padding:12px 0!important;border-bottom:1px solid var(--rc-border)!important;display:flex!important;gap:20px!important;align-items:center!important;min-height:50px}
body.rcai-company-profile .rcai-workflow-bar>span{color:#a1a1aa!important;min-width:max-content;font-size:9px!important;text-transform:uppercase;letter-spacing:.7px;font-weight:800}
body.rcai-company-profile .rcai-workflow-bar a.rcai-workflow-link{color:#1d4ed8!important;text-decoration:none!important;font:800 10.5px Inter,Arial,sans-serif!important;white-space:nowrap}
body.rcai-company-profile .rcai-workflow-bar a.rcai-workflow-link:hover{text-decoration:underline!important;text-underline-offset:3px}
body.rcai-company-profile .rcai-workflow-bar button.rcai-export-csv,body.rcai-company-profile .rcai-workflow-bar button.rcai-export-pdf{appearance:none!important;border:1px solid #cbd5e1!important;background:#fff!important;color:#1d4ed8!important;border-radius:7px!important;padding:7px 10px!important;font:800 10px Inter,Arial,sans-serif!important;line-height:1!important;cursor:pointer!important;white-space:nowrap!important;box-shadow:none!important;margin-left:-5px}
body.rcai-company-profile .rcai-workflow-bar button.rcai-export-csv:hover,body.rcai-company-profile .rcai-workflow-bar button.rcai-export-pdf:hover{background:#eff6ff!important;border-color:#93c5fd!important}
body.rcai-company-profile .rcai-workflow-bar button.rcai-export-pdf{margin-left:-12px}

body.rcai-company-profile .card{box-shadow:none!important}
body.rcai-company-profile .ch{padding:11px 14px!important}
body.rcai-company-profile .pad{padding:14px!important}
body.rcai-company-profile .fact{padding:9px 0!important}
body.rcai-company-profile .rcai-score-card .pad>div:first-child{gap:7px!important}
body.rcai-company-profile .rcai-score-card .pad>div:first-child>a{padding:8px!important}
body.rcai-company-profile .rcai-view-matrix{padding:7px 9px;border:1px solid #bfdbfe;border-radius:7px;background:#eff6ff}

@media(min-width:861px){body.rcai-company-profile .hero>.identity{padding-top:2px}}

@media(max-width:860px){
 body.rcai-company-profile .wrap{padding:16px 14px 48px!important}
 body.rcai-company-profile .hero{grid-template-columns:1fr!important;gap:14px!important;padding-bottom:14px!important}
 body.rcai-company-profile .identity{gap:12px!important;max-width:none!important}
 body.rcai-company-profile .logo{width:58px!important;height:58px!important;flex:0 0 58px!important}
 body.rcai-company-profile .hero h1{font-size:31px!important;line-height:1.05!important;margin-bottom:6px!important}
 body.rcai-company-profile .desc{font-size:13px!important;line-height:1.48!important}
 body.rcai-company-profile .tags{margin-top:9px!important}
 body.rcai-company-profile .tag{font-size:9px!important;padding:4px 7px!important}
 body.rcai-company-profile .actions{margin-top:10px!important}
 body.rcai-company-profile .actions .solid,body.rcai-company-profile .actions .ghost{padding:8px 10px!important;font-size:10px!important}

 body.rcai-company-profile .rcai-header-rail{gap:8px!important}
 body.rcai-company-profile .rcai-header-watch{justify-content:flex-end!important;min-height:auto}
 body.rcai-company-profile .rcai-header-watch .watch{min-width:auto!important;padding:7px 10px!important;font-size:10px!important}
 body.rcai-company-profile .rcai-vendor-card{padding:12px!important}
 body.rcai-company-profile .rcai-vendor-copy{font-size:10px!important;margin-bottom:9px!important}
 body.rcai-company-profile .rcai-vendor-actions{grid-template-columns:1fr 1fr!important}
 body.rcai-company-profile .rcai-vendor-actions a{padding:8px 7px!important;font-size:9.5px!important}
 body.rcai-company-profile .rcai-vendor-note{display:none!important}

 body.rcai-company-profile .rcai-workflow-bar{margin:0!important;padding:9px 0 10px!important;gap:10px!important;overflow-x:auto!important;scrollbar-width:none;min-height:auto!important}
 body.rcai-company-profile .rcai-workflow-bar::-webkit-scrollbar{display:none}
 body.rcai-company-profile .rcai-workflow-bar>span{font-size:8px!important}
 body.rcai-company-profile .rcai-workflow-bar a.rcai-workflow-link{font-size:10px!important}
 body.rcai-company-profile .rcai-workflow-bar button.rcai-export-csv,body.rcai-company-profile .rcai-workflow-bar button.rcai-export-pdf{margin-left:0!important;padding:6px 8px!important;font-size:9.5px!important}

 body.rcai-company-profile .main{display:block!important;margin-top:12px!important}
 body.rcai-company-profile .content,body.rcai-company-profile .side{display:grid!important;gap:9px!important}
 body.rcai-company-profile .side{margin-top:9px!important}
 body.rcai-company-profile .card{border-radius:9px!important}
 body.rcai-company-profile .ch{padding:10px 12px!important}
 body.rcai-company-profile .ch h2{font-size:13px!important}
 body.rcai-company-profile .ch span{font-size:7.5px!important}
 body.rcai-company-profile .pad{padding:12px!important}
 body.rcai-company-profile .rcai-decision-card .quick{grid-template-columns:1fr 1fr!important;gap:7px!important}
 body.rcai-company-profile .rcai-decision-card .q{min-height:58px!important;padding:10px!important}
 body.rcai-company-profile .rcai-decision-card .q label{font-size:7.5px!important}
 body.rcai-company-profile .rcai-decision-card .q strong{font-size:12px!important}
 body.rcai-company-profile .finding,body.rcai-company-profile .fund{padding:9px 0!important}
 body.rcai-company-profile .brief{font-size:12px!important;line-height:1.55!important}
 body.rcai-company-profile .fact{padding:8px 0!important}
 body.rcai-company-profile .fact label{font-size:8px!important}
 body.rcai-company-profile .fact strong{font-size:10.5px!important;max-width:62%!important}
 body.rcai-company-profile .prolink{padding:9px 10px!important}
 body.rcai-company-profile .rcai-score-grid{grid-template-columns:1fr!important;gap:7px!important}
 body.rcai-company-profile .rcai-score-grid>a{padding:9px!important}
 body.rcai-company-profile .rcai-score-grid>a p{display:none!important}
 body.rcai-company-profile .rcai-matrix-summary{margin-top:10px!important;padding-top:10px!important}
 body.rcai-company-profile .rcai-matrix-axes{grid-template-columns:1fr!important;gap:7px!important}
 body.rcai-company-profile .rcai-matrix-axes>a{padding:9px!important}
 body.rcai-company-profile .rcai-matrix-axes small{font-size:9px!important}
 body.rcai-company-profile .rcai-view-matrix{display:flex!important;justify-content:center!important;width:100%;margin-top:8px!important;padding:8px!important}
 body.rcai-company-profile .rcai-expand-detail{padding:8px!important}
}

@media(max-width:480px){
 body.rcai-company-profile .hero h1{font-size:28px!important}
 body.rcai-company-profile .logo{width:52px!important;height:52px!important;flex-basis:52px!important}
 body.rcai-company-profile .identity{gap:10px!important}
 body.rcai-company-profile .rcai-vendor-actions{grid-template-columns:1fr!important}
 body.rcai-company-profile .rcai-decision-card .quick{grid-template-columns:1fr 1fr!important}
}
