/* HappyStock v15.32.47 Company profiles (independent of Guru styles). */
.hs-company{color:#1f3529;min-width:0}
.hs-company-heading{margin:10px 0 18px}
.hs-company-heading-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.hs-company-heading h1{font-size:clamp(24px,3vw,34px);color:#18352a;margin:0}
.hs-company-intro{color:#60776a;line-height:1.65;font-size:13px}
.hs-company-primary{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:10px;background:#127b50;color:#fff!important;text-decoration:none;font-weight:750;font-size:13px;padding:11px 15px;cursor:pointer;min-height:42px}
.hs-company-primary:disabled{opacity:.55;cursor:not-allowed}
.hs-company-outline,.hs-company-back{display:inline-block;color:#147b50;text-decoration:none;font-size:13px;font-weight:700;margin:8px 0 12px}
.hs-company-outline{border:1px solid #a0c9b1;background:#fff;border-radius:9px;padding:8px 12px}
.hs-company-notice{background:#f2f7f3;border-radius:9px;padding:11px 14px;color:#546b5e;font-size:12px;line-height:1.65;margin:12px 0}
.hs-company-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:16px 0}
.hs-company-card{display:block;overflow:hidden;border-radius:15px;border:1px solid #dce8e0;background:#fff;color:#253e31;text-decoration:none;box-shadow:0 5px 18px #102b1a08;min-width:0;transition:transform .15s,box-shadow .15s}
.hs-company-card:hover,.hs-company-card:focus-visible{transform:translateY(-2px);box-shadow:0 8px 24px #133b211b}
.hs-company-photo{display:flex;position:relative;align-items:center;justify-content:center;background:linear-gradient(140deg,#d7eadf,#a6cabc);overflow:hidden;isolation:isolate;min-width:0}
.hs-company-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#fff;z-index:1}
.hs-company-photo-empty{font-size:clamp(16px,3vw,30px);font-weight:800;color:#407357;text-align:center;overflow-wrap:anywhere;padding:14px}
.hs-company-card-photo{height:clamp(125px,17vw,195px)}
.hs-company-card-line{display:flex;gap:7px;align-items:center;justify-content:space-between;padding:12px 13px;min-width:0;min-height:49px;font-size:14px}
.hs-company-card-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:760}
.hs-company-card-preference{flex:none;font-weight:800;color:#127b50;font-size:14px;font-variant-numeric:tabular-nums}
.hs-company-hero{display:grid;grid-template-columns:minmax(155px,32%) minmax(0,1fr);gap:20px;align-items:center;border:1px solid #e0ebe3;border-radius:17px;padding:16px;background:#fff;min-width:0}
.hs-company-large-photo{aspect-ratio:4/5;border-radius:12px}
.hs-company-hero-info{min-width:0;overflow-wrap:anywhere}
.hs-company-hero-info h2{margin:0 0 14px;font-size:clamp(22px,2.8vw,34px);line-height:1.4}
.hs-company-hero-percent{font-size:clamp(16px,2vw,21px);font-weight:750;color:#15764b;margin:0 0 12px;font-variant-numeric:tabular-nums}
.hs-company-source{margin:7px 0;color:#7a867f;font-size:11px}
.hs-company-source a{color:inherit}
.hs-company-section-title{font-size:20px;margin:24px 0 13px}
.hs-company-stats-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;gap:16px;min-width:0}
.hs-company-radar,.hs-company-stat-notes{background:#fff;border:1px solid #e0ebe4;border-radius:14px;min-width:0;min-height:0}
.hs-company-radar{aspect-ratio:1/1;padding:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}
.hs-company-radar svg{display:block;width:100%;max-height:calc(100% - 27px);overflow:visible}
.hs-company-legend{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:9px 13px;color:#577064;font-size:10px}
.hs-company-legend>span{display:inline-flex;align-items:center;gap:5px}
.hs-company-legend-line{display:inline-block;width:18px;border-top:3px solid #df3940}
.hs-company-legend-line.blue{border-top-style:dashed;border-color:#387bda}
.hs-company-stat-notes{padding:11px 15px;display:grid;align-content:start;gap:0;max-height:min(720px,76vw);overflow:auto}
.hs-company-stat-row{padding:10px 0;border-bottom:1px solid #eaf1ec}
.hs-company-stat-row:last-child{border-bottom:0}
.hs-company-stat-top{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px}
.hs-company-stat-top strong{font-size:12px;line-height:1.35;color:#315441}
.hs-company-stat-row p{font-size:12px;color:#566c5f;line-height:1.55;margin:5px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.hs-company-stars{display:inline-flex;gap:0;font-size:14px;white-space:nowrap;line-height:1.1}
.hs-company-star{display:inline-block;position:relative;color:#d7dce0;vertical-align:middle}
.hs-company-star-empty{color:#b6c3bb}
.hs-company-star-fill{position:absolute;inset:0 auto 0 0;overflow:hidden;color:#e5ad22;white-space:nowrap}
.hs-company-guide{font-size:13px;color:#4e695a;line-height:1.6}
.hs-company-preference-form{background:#fff;border:1px solid #deece3;border-radius:14px;padding:17px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;min-width:0}
.hs-company-preference-row{min-width:0;padding:3px 0;display:block}
.hs-company-preference-label{display:flex;justify-content:space-between;align-items:center;gap:10px;color:#264a37;font-size:13px;margin-bottom:11px}
.hs-company-preference-label>span{overflow-wrap:anywhere}
.hs-company-preference-label output{font-weight:800;font-size:16px;font-variant-numeric:tabular-nums}
.hs-company-range{width:100%;accent-color:#137b4e;cursor:pointer}
.hs-company-budget{grid-column:1/-1;background:#eff8f2;border-radius:9px;padding:12px 14px;color:#225d3c}
.hs-company-form-message{color:#3a6c4d;font-size:12px;line-height:1.55;grid-column:1/-1;margin:0;min-height:17px}
.hs-company-preference-form>.hs-company-primary{grid-column:1/-1;justify-self:start}
.hs-company-match-results{scroll-margin-top:25px;margin-top:23px}
.hs-company-admin{margin:26px 0 16px;border:1px solid #c9ddcf;background:#fafdfa;border-radius:14px;padding:15px}
.hs-company-admin>summary{color:#176c43;cursor:pointer;font-size:14px;font-weight:750}
.hs-company-admin-select{max-width:100%;margin-top:14px;width:100%;padding:9px;border:1px solid #c8dad0;border-radius:8px;background:#fff}
.hs-company-admin-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.hs-company-admin-intro{grid-column:1/-1;color:#567363;font-size:12px;line-height:1.6;margin:0}
.hs-company-admin-field{display:grid;gap:6px;font-size:12px;font-weight:700;min-width:0}
.hs-company-admin input:not([type=checkbox]),.hs-company-admin textarea,.hs-company-admin select{width:100%;box-sizing:border-box;padding:9px;border:1px solid #c6d9ce;border-radius:8px;color:#274334;font:inherit;background:#fff;min-width:0}
.hs-company-admin input[readonly]{background:#e9eeea}
.hs-company-admin-stat{grid-column:1/-1;min-width:0;background:#fff;border:1px solid #d9e6dc;border-radius:10px;padding:11px}
.hs-company-admin-stat legend{color:#315b43;font-size:12px;font-weight:760;padding:0 5px}
.hs-company-admin-note-grid{display:grid;grid-template-columns:105px minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:start}
.hs-company-admin-note-grid label{display:grid;gap:5px;min-width:0;font-size:11px}
.hs-company-admin-note-grid textarea{resize:vertical;min-height:60px}
.hs-company-public-label{grid-column:1/-1;display:flex;align-items:center;gap:9px;font-size:13px;font-weight:700}
.hs-company-public-label input{width:auto}
.hs-company-admin-form>.hs-company-primary{grid-column:1/-1;justify-self:start}
@media(max-width:900px){.hs-company-stats-layout{grid-template-columns:1fr}.hs-company-radar{width:min(100%,450px);margin:0 auto}.hs-company-stat-notes{max-height:none;overflow:visible}}
@media(max-width:760px){.hs-company-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.hs-company-card-photo{height:clamp(110px,25vw,185px)}.hs-company-admin-note-grid{grid-template-columns:1fr 1fr}.hs-company-admin-note-grid label:first-child{grid-column:1/-1}}
@media(max-width:500px){.hs-company-grid{grid-template-columns:1fr}.hs-company-card{display:flex;align-items:stretch}.hs-company-card-photo{height:auto;min-height:80px;flex:0 0 34%}.hs-company-card-line{flex:1;padding:12px 10px;font-size:13px}.hs-company-card-preference{font-size:13px}.hs-company-hero{grid-template-columns:118px minmax(0,1fr);gap:12px;padding:10px}.hs-company-hero-info h2{font-size:18px}.hs-company-radar{padding:4px}.hs-company-preference-form,.hs-company-admin-form{grid-template-columns:1fr}.hs-company-admin-field,.hs-company-admin-form>.hs-company-primary,.hs-company-admin-intro,.hs-company-admin-stat,.hs-company-form-message,.hs-company-public-label{grid-column:1}.hs-company-admin-note-grid{grid-template-columns:1fr}.hs-company-admin-note-grid label:first-child{grid-column:1}}


/* v15.32.48: criterion tooltips, revenue breakdown, and safe JSON edit tools */
.hs-company-help-button{display:inline-flex;flex:none;align-items:center;justify-content:center;
  width:22px;height:22px;min-width:22px;padding:0;border:1px solid #91a9a0;background:#f6faf8;
  color:#335e49;border-radius:5px;font-size:13px;font-weight:750;line-height:1;cursor:help}
.hs-company-help-button:hover,.hs-company-help-button:focus-visible,.hs-company-help-button[aria-expanded=true]{
  background:#e2f0e7;border-color:#337e56;outline-offset:2px}
.hs-company-preference-label>span:first-child{flex:0 1 auto;min-width:0}
.hs-company-preference-label output{margin-left:auto}
.hs-company-help-popup{position:fixed;z-index:2147483000;box-sizing:border-box;
  max-width:min(340px,calc(100vw - 20px));width:max-content;min-width:180px;padding:12px 14px;
  background:#fff;color:#243c30;border:1px solid #b8d6c4;border-radius:9px;
  box-shadow:0 8px 22px #0c321f2d;pointer-events:none;font-size:12px;line-height:1.6;text-align:left}
.hs-company-help-popup[hidden]{display:none!important}
.hs-company-help-popup strong{display:block;font-size:13px}
.hs-company-help-popup p{margin:5px 0 0}
.hs-company-business-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:stretch}
.hs-company-business-panel{border:1px solid #dce9df;border-radius:14px;padding:16px;background:#fff;min-width:0}
.hs-company-business-panel>h3{font-size:14px;margin:0 0 16px;color:#254d37}
.hs-company-business-chart{max-width:100%;min-width:0;margin:4px auto 0;overflow:hidden}
.hs-company-business-graphic{display:block;width:100%;height:auto;overflow:visible}
.hs-company-business-graphic-mobile{display:none}
@media(max-width:620px){.hs-company-business-graphic-desktop{display:none}.hs-company-business-graphic-mobile{display:block}}
.hs-company-normalization-note{font-size:12px;line-height:1.55;color:#556d5d;background:#f3f8f4;
  border:1px solid #dceadf;border-radius:9px;padding:9px 12px;margin:8px 0 15px}
.hs-company-business-description{padding:10px 0;border-bottom:1px solid #eaf1eb;font-size:12px;overflow-wrap:anywhere}
.hs-company-business-description:last-child{border-bottom:0}
.hs-company-business-description-title{display:flex;gap:12px;justify-content:space-between;align-items:baseline}
.hs-company-business-description-title strong{color:#244c36;font-size:13px}
.hs-company-business-description-title span{font-weight:800;color:#367a51;flex:none;font-variant-numeric:tabular-nums}
.hs-company-business-description p{white-space:pre-wrap;color:#5a6e61;line-height:1.6;margin:8px 0 0}
.hs-company-admin-business{display:grid;gap:9px}
.hs-company-admin-segments{display:grid;gap:14px}
.hs-company-admin-segment{display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) 105px;gap:10px;
  padding:12px;border:1px solid #dae7de;border-radius:10px;background:#f9fcfa;min-width:0}
.hs-company-admin-segment>label{display:grid;gap:5px;font-size:11px;min-width:0}
.hs-company-admin-segment>label:nth-child(4),.hs-company-admin-segment>label:nth-child(5){grid-column:span 1}
.hs-company-admin-segment .hs-company-remove{grid-column:1/-1;justify-self:end}
.hs-company-admin-json{grid-column:1/-1;border:1px dashed #b5d8c2;border-radius:9px;padding:12px;
  display:flex;flex-wrap:wrap;gap:11px;align-items:center}
.hs-company-admin-json>label{min-width:min(100%,250px);display:grid;gap:6px;font-size:12px;font-weight:700}
.hs-company-admin-json>p{width:100%;font-size:11px;color:#50705a;line-height:1.55;margin:0}
.hs-company-admin .hs-company-outline{border:1px solid #b4d5c0;color:#245f3e;border-radius:8px;
  background:#fff;padding:9px 12px;cursor:pointer;font-size:12px;font-weight:700}
.hs-company-admin .hs-company-outline:hover{background:#edf8f1}
@media(max-width:900px){.hs-company-business-layout{grid-template-columns:1fr}}
@media(max-width:600px){.hs-company-admin-segment{grid-template-columns:1fr 1fr}
  .hs-company-admin-segment>label:nth-child(3){grid-column:1/-1}}
@media(max-width:390px){.hs-company-admin-segment{grid-template-columns:1fr}}

/* v15.32.51 — raw eight-stat averages, score colors, list sorting and compact revenue chart. */
.hs-company-card-line{gap:6px}
.hs-company-card-name{flex:1 1 auto;min-width:0}
.hs-company-card-stat{display:inline-flex;align-items:center;gap:4px;flex:none;white-space:nowrap;
  font-size:11px;color:#63766a;font-weight:720}
.hs-company-stat-value{display:inline-block;min-width:2.5ch;padding:3px 5px;
  border:1px solid #dae6dd;border-radius:6px;font-weight:850;line-height:1.35;
  font-variant-numeric:tabular-nums;text-align:center}
.hs-company-hero-average{font-size:clamp(15px,1.7vw,19px);font-weight:700;color:#476555;
  line-height:1.5;margin:0 0 10px}
.hs-company-hero-average-text{display:inline-flex;align-items:center;gap:7px}
.hs-company-hero-average .hs-company-stat-value{padding:2px 9px}
.hs-company-sort-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;
  margin:8px 0 10px;min-width:0}
.hs-company-sort-radios{display:inline-flex;align-items:center;flex-wrap:wrap;gap:5px;
  padding:4px;background:#eff6f0;border:1px solid #d7e7db;border-radius:10px}
.hs-company-sort-option{display:inline-flex;align-items:center;position:relative;cursor:pointer;
  color:#466252;font-weight:720;font-size:12px;border-radius:7px;user-select:none}
.hs-company-sort-option input{position:absolute;width:100%;height:100%;margin:0;opacity:0;cursor:inherit}
.hs-company-sort-option>span{display:inline-flex;padding:8px 12px;border-radius:7px;min-height:20px;
  align-items:center;justify-content:center;white-space:nowrap}
.hs-company-sort-option input:checked+span{background:#147b50;color:#fff;box-shadow:0 1px 5px #245b3630}
.hs-company-sort-option input:focus-visible+span{outline:3px solid #e0ae30;outline-offset:1px}
.hs-company-sort-option input:disabled{cursor:not-allowed}
.hs-company-sort-option input:disabled+span{opacity:.46;cursor:not-allowed}
.hs-company-sort-hint{text-align:right;font-size:11px;color:#6a8073;margin:0 0 8px;line-height:1.4}
/* Make the business distribution take the available panel space instead of
   having the old 16px all-around inset and a top-aligned chart. */
.hs-company-business-layout{gap:12px}
.hs-company-business-panel:first-child{padding:9px 7px 7px;display:flex;flex-direction:column}
.hs-company-business-panel:first-child>h3{margin:3px 8px 6px}
.hs-company-business-panel:first-child .hs-company-business-chart{width:100%;margin:0;
  flex:1;display:flex;align-items:center;justify-content:center;min-width:0}
.hs-company-business-panel:first-child .hs-company-business-graphic{width:100%;max-width:100%}
@media(max-width:500px){
 .hs-company-card-line{gap:4px}
 .hs-company-card-stat{font-size:10px;gap:3px}
 .hs-company-card-stat .hs-company-stat-value{padding:2px 4px}
 .hs-company-card-preference{font-size:12px}
 .hs-company-sort-controls{justify-content:center}
 .hs-company-sort-option>span{padding:8px 10px}
 .hs-company-sort-hint{text-align:center}
}

/* v15.32.52: three balanced columns, centering the bare stat score between name and preference. */
.hs-company-card-line{display:grid;grid-template-columns:minmax(0,1fr) max-content minmax(0,1fr)}
.hs-company-card-name{justify-self:start;max-width:100%}
.hs-company-card-stat{justify-self:center;justify-content:center;text-align:center}
.hs-company-card-preference{justify-self:end}


/* v15.32.54: square, equally sized radar and description panels without grid overlap. */
.hs-company-stats-layout{
  grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;min-width:0
}
.hs-company-stats-layout>.hs-company-radar,
.hs-company-stats-layout>.hs-company-stat-notes{
  box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:0;
  aspect-ratio:1 / 1;max-height:none;overflow:hidden
}
.hs-company-stats-layout>.hs-company-radar{display:flex;flex-direction:column;justify-content:center}
.hs-company-stats-layout>.hs-company-radar svg{
  display:block;flex:1 1 auto;min-width:0;min-height:0;width:100%;height:100%;
  max-width:100%;max-height:calc(100% - 30px);object-fit:contain;overflow:visible
}
.hs-company-stats-layout>.hs-company-stat-notes{
  display:grid;align-content:start;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;
  scrollbar-width:thin
}
.hs-company-stats-layout>.hs-company-stat-notes:focus-visible{outline:2px solid #147b50;outline-offset:2px}
/* Place JSON import and Save at the very top, before editable company fields. */
.hs-company-admin-actions{
  grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;
  align-items:start;gap:10px;min-width:0
}
.hs-company-admin-actions>.hs-company-admin-json{grid-column:auto;min-width:0}
.hs-company-admin-actions>.hs-company-primary{align-self:start;white-space:nowrap;margin:0}
.hs-company-admin-actions>.hs-company-form-message{grid-column:1/-1}
@media(max-width:900px){
 .hs-company-stats-layout{grid-template-columns:minmax(0,1fr)}
 .hs-company-stats-layout>.hs-company-radar,
 .hs-company-stats-layout>.hs-company-stat-notes{
   width:min(100%,450px);max-width:450px;aspect-ratio:1 / 1;
   margin-left:auto;margin-right:auto;max-height:none
 }
 .hs-company-stats-layout>.hs-company-stat-notes{overflow-x:hidden;overflow-y:auto}
}
@media(max-width:700px){
 .hs-company-admin-actions{grid-template-columns:minmax(0,1fr)}
 .hs-company-admin-actions>.hs-company-primary{justify-self:start}
}

/* HappyStock v15.32.58 -- focused interface refinements */

.hs-company-market-tabs{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:12px 0 0}
.hs-company-market-tab{display:inline-flex;align-items:center;justify-content:center;padding:8px 14px;border:1px solid #c4dbc9;border-radius:99px;color:#20553b;text-decoration:none;font-size:13px;font-weight:750;background:#fff}
.hs-company-market-tab[aria-current="page"]{background:#157e50;color:#fff;border-color:#157e50}
.hs-company-market-tab:focus-visible{outline:2px solid #0d7044;outline-offset:2px}
.hs-company-shared-notice{margin:9px 0 16px;padding:9px 12px;border:1px solid #d8e8dc;background:#f3faf5;border-radius:10px;color:#345d42;font-size:13px;line-height:1.55}
.hs-company-budget.is-over strong{color:#ac3838}
.hs-company-budget-hint{margin:4px 0 0;font-size:12px;line-height:1.5;color:#506953}
.hs-company-budget-hint.is-over{color:#a22d2d;font-weight:650}



/* v15.32.61: a profile needing a complete six-stat review or older than 100 days
   has muted image/name sections only. Other stats and click functionality remain intact. */
.hs-company-card.hs-company-card-needs-review .hs-company-card-photo {
  filter: grayscale(1); opacity: .54; background: #e6e9e7;
}
.hs-company-card.hs-company-card-needs-review .hs-company-card-line {
  background: #eef0ef;
}
.hs-company-card.hs-company-card-needs-review .hs-company-card-name {
  color: #778079;
}
.hs-company-card.hs-company-card-needs-review:hover .hs-company-card-photo,
.hs-company-card.hs-company-card-needs-review:focus-visible .hs-company-card-photo {
  opacity: .7;
}
