/* Results-view polish: chart tools live on the segment bar, confidence pill
   redesign, thumbs feedback, and tighter product lists so card heights stay
   consistent across chart types. */

/* ---- Sort / show controls: inline on the pill row ---- */
.ap-seg .ap-tools{align-items:center;gap:6px;margin:0;opacity:1}
.ap-seg .ap-tool{height:24px;padding:0 8px;gap:5px;font-size:11px;border-radius:900px}
.ap-seg .ap-tool i{font-size:13px}
.ap-seg .ap-drop__val{font-weight:600}
.ap-seg .ap-drop__chev{font-size:12px;opacity:.55}

/* ---- Confidence pill + thumbs cluster ---- */
.ap-claimacts{flex-direction:row;align-items:center;gap:8px}
.ap-confbadge{height:24px;padding:0 11px;gap:5px;border-radius:900px;font-size:11.5px;font-weight:600;letter-spacing:.01em;border:1px solid transparent;box-shadow:none;transition:transform .14s cubic-bezier(.2,.8,.3,1),box-shadow .14s ease,background .14s ease}
.ap-confbadge__ic{display:none}
.ap-confbadge:hover{filter:none;transform:translateY(-1px)}
.ap-confbadge--high{background:linear-gradient(180deg,#eaf6e2,#dcefd0);border-color:#bcdda6;color:#2b6418}
.ap-confbadge--high:hover{box-shadow:0 3px 10px -4px rgba(58,133,24,.45)}
.ap-confbadge--mid{background:linear-gradient(180deg,#eef4fb,#e0eaf6);border-color:#c3d5e8;color:#37536f}
.ap-confbadge--mid:hover{box-shadow:0 3px 10px -4px rgba(55,83,111,.35)}
.ap-confbadge--low{background:linear-gradient(180deg,#fdf3e2,#f8e7c9);border-color:#e9d3a5;color:#8a5b18}
.ap-confbadge--low:hover{box-shadow:0 3px 10px -4px rgba(138,91,24,.35)}

/* The stacked pill + thumbs cluster shouldn't set the header row's height —
   float it out of flow so the gap under "Key takeaways" is just the label's. */
.ap-takeaways__head{position:relative;align-items:flex-start;margin-bottom:10px}
.ap-takeaways__head .ap-claimacts{position:absolute;top:-1px;right:0}
.ap-takeaways__head .ap-takeaways__label{max-width:calc(100% - 200px)}
.ap-argcard__head .ap-argcard__claim{padding-right:16px}

/* Sort / filter controls are off the insight tabs. */
.ap-seg .ap-tools{display:none}

.ap-fbthumbs{display:flex;align-items:center;gap:2px}
.ap-fbthumb{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:none;border-radius:7px;background:none;color:#8b95a1;cursor:pointer;transition:background .12s ease,color .12s ease}
.ap-fbthumb i{font-size:15px}
.ap-fbthumb:hover{background:#eef1f5;color:#050301}
.ap-fbthumb.is-on{background:#eef6e9;color:#2b6418}

/* ---- Tighter product lists ---- */
.ap-tiles{grid-template-columns:repeat(auto-fill,minmax(62px,1fr));gap:9px 8px}
.ap-tile__name{margin-top:4px;font-size:10px;-webkit-line-clamp:1}
.le-foot__thumb{width:40px;height:40px;border-radius:8px}
.le-foot{padding-top:9px;gap:4px}
.ap-heat__thumb{width:38px;height:38px}
.ap-heat__prod{min-width:80px;padding:8px 6px 7px;gap:4px}
.ap-heat__pname{font-size:10.5px;max-width:84px}
