/* Profile identity and Premium analytics: one compact hierarchy. */
.profile-layout .profile-identity{display:grid;grid-template-columns:88px minmax(180px,1fr) 260px;gap:24px;align-items:center;padding:24px 58px 24px 24px;min-height:170px}
.profile-identity .avatar-wrap{margin:0;align-self:center}.profile-identity .identity-copy{min-width:0}.profile-identity .identity-copy h1{font-size:42px;line-height:1.12;margin:0 0 7px}.profile-identity .identity-tools{position:absolute;right:12px;top:12px;margin:0;align-self:initial}
.profile-identity .profile-refresh{display:grid;place-items:center;width:34px;height:34px;min-width:34px;min-height:34px;padding:7px;border:1px solid var(--line);background:var(--soft);color:var(--muted);border-radius:5px}.profile-identity .profile-refresh:hover{color:var(--fg);border-color:var(--fg)}.profile-identity .profile-refresh svg{width:17px;height:17px}
.profile-identity .profile-impact{padding:0 0 0 24px;border:0;border-left:1px solid var(--line);background:transparent;min-width:0;margin:0}.profile-impact .panel-heading{padding:0;margin:0 0 7px}.profile-impact .panel-heading h2{font:500 12px/1.3 var(--reading-font);letter-spacing:.04em;color:var(--muted)}.profile-impact .overall-impact-value{padding:0;gap:10px;display:flex;align-items:center;flex-wrap:nowrap}.profile-impact .overall-impact-value>strong{font:600 48px/1 var(--font-display)}.profile-impact .overall-impact-value>strong small{font-size:14px;color:var(--muted);margin-left:4px}.profile-impact .overall-impact-value>span:last-child{font:13px/1.4 var(--reading-font);max-width:105px}.profile-impact .overall-impact-value .oi-sign{width:27px;height:27px}.profile-impact>.oi-scale{margin:12px 0 0;max-width:220px;height:5px}
.profile-layout .profile-tabs{display:flex;align-items:stretch;gap:0;overflow-x:auto;scrollbar-width:thin;border-radius:6px;isolation:isolate}.profile-layout .profile-tabs>button{display:flex;align-items:center;justify-content:center;flex:1 0 auto;gap:0;min-height:48px;padding:12px 15px;margin:0;white-space:nowrap;text-align:center;font:600 14px/1.3 var(--reading-font);border-top:0;border-bottom:0;border-left:0;border-right:1px solid var(--line);border-radius:0;background:transparent;color:var(--muted)}.profile-layout .profile-tabs>button:last-child{border-right:0}.profile-layout .profile-tabs>button[aria-selected=true]{background:var(--soft);color:var(--fg);box-shadow:inset 0 -2px var(--fg)}.profile-layout .profile-tabs>#profile-tab-premium:before{content:none;margin:0}.profile-layout .profile-tabs>.profile-premium-tab{color:var(--premium-gold,#e2be75)!important}.profile-layout .profile-tabs>.profile-premium-tab[aria-selected=true]{box-shadow:inset 0 -2px #e2be75;background:#c8a35513}
.pd-root .pd-heading{background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:2px 0 18px}.pd-root .pd-heading h2{font-size:30px}.pd-root .pd-pool{font-size:12px;max-width:75ch;line-height:1.5;margin-bottom:22px}
.pd-root .pd-workspace{display:grid;grid-template-columns:1fr;gap:18px;align-items:start}.pd-root .pd-side{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(260px,.7fr);gap:18px;align-items:start}.pd-root .pd-panel{padding:22px;border-radius:8px;background:var(--panel);border-color:var(--line)}
.pd-selected-hero{display:flex;align-items:center;gap:12px;min-width:0}.pd-selected-hero .pd-portrait{width:44px;height:52px;background:transparent;object-fit:contain;align-self:center}.pd-selected-hero h2{font-size:25px}.pd-selected-hero .pd-caption{margin-top:5px;font-size:12px}.pd-sample{font-size:12px;color:var(--muted);text-align:right}.pd-root .pd-comparison-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-top:20px}.pd-stat{min-width:0;background:var(--soft);border:1px solid var(--line);border-radius:6px;padding:16px 14px}.pd-stat-top{display:flex;gap:8px;justify-content:space-between;align-items:flex-start;min-height:38px}.pd-root .pd-stat h3{font:500 12px/1.5 var(--reading-font);color:var(--muted);max-width:100px}.pd-delta{font-size:11px;line-height:1.5;border-radius:4px;padding:2px 4px;white-space:nowrap}.pd-delta.is-better{color:#8fd3a6;background:#76c69115}.pd-delta.is-lower{color:#e3a293;background:#d8887712}.pd-stat-values{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0 15px}.pd-stat-values>div{display:grid;gap:5px;min-width:0}.pd-stat-values>div:last-child{text-align:right}.pd-stat-values strong{font:600 24px/1.2 var(--font-display);overflow-wrap:anywhere}.pd-stat-values>div:last-child strong{color:var(--muted);font-size:21px}.pd-stat-values small{font-size:10px;color:var(--muted);line-height:1.4}.pd-stat-bars{display:grid;gap:5px}.pd-stat-bars>span{display:block;min-height:5px;background:var(--accent,#b5d4c3);border-radius:2px}.pd-stat-bars>.pd-peer-bar{background:var(--muted);opacity:.48}.pd-empty-comparison{padding:24px 0 10px}.pd-empty-comparison p{color:var(--muted);font-size:12px;margin-top:8px}
.pd-root .pd-progress-head{gap:16px;align-items:center}.pd-root .pd-progress-head h2,.pd-root .pd-insight-panel>h2{font-size:23px}.pd-root .pd-progress-head select{font-size:12px;min-height:36px;padding:7px 10px;max-width:170px;border-radius:5px}.pd-root .pd-chart{margin-top:22px}.pd-root .pd-chart .pd-trend-chart{display:block;width:100%;height:auto;min-height:0;overflow:visible}.pd-trend-chart polyline{fill:none;stroke:var(--pd-gold);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}.pd-trend-chart circle{fill:var(--panel);stroke:var(--pd-gold);stroke-width:2;transition:r .12s}.pd-trend-chart a:hover circle,.pd-trend-chart a:focus circle{r:7;fill:var(--pd-gold)}.pd-trend-grid line{stroke:var(--line);stroke-dasharray:3 5}.pd-trend-chart text{fill:var(--muted);font:11px var(--reading-font)}.pd-root .pd-trend{border-top:1px solid var(--line);padding-top:14px;margin-top:12px!important;color:var(--muted);font-size:12px}
.pd-root .pd-insights{display:grid;grid-template-columns:1fr;margin-top:18px;gap:16px}.pd-root .pd-insight{padding:0 0 0 13px;border-top:0;border-left:2px solid var(--pd-gold)}.pd-root .pd-insight small{font-size:10px;letter-spacing:.06em}.pd-root .pd-insight h3{font-size:16px;margin:6px 0}.pd-root .pd-insight p{font-size:13px;line-height:1.6;max-width:50ch}.pd-root .pd-hero{border-radius:8px;transition:border-color .15s,background .15s;min-height:168px}.pd-root .pd-ranking{font-size:23px}.pd-root .pd-portrait{background:transparent}
@media(max-width:1000px){.pd-root .pd-comparison-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.profile-layout .profile-identity{grid-template-columns:72px minmax(150px,1fr) 225px;gap:18px;padding-left:20px}.profile-identity .identity-copy h1{font-size:36px}.profile-layout .profile-tabs>button{font-size:13px;padding-inline:13px}}
@media(max-width:700px){.profile-layout .profile-identity{grid-template-columns:64px minmax(0,1fr);gap:16px;padding:20px;min-height:0}.profile-identity .identity-copy{padding-right:22px}.profile-identity .identity-copy h1{font-size:32px}.profile-identity .profile-impact{grid-column:1/-1;border-left:0;border-top:1px solid var(--line);padding:16px 0 0;display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:20px}.profile-impact .panel-heading{margin:0}.profile-impact .overall-impact-value{grid-column:2;grid-row:1/3}.profile-impact .overall-impact-value>strong{font-size:38px}.profile-impact>.oi-scale{max-width:100%;margin-top:10px}.profile-layout .profile-tabs>button{flex:0 0 auto;min-width:84px;padding:12px 17px;min-height:46px}.pd-root .pd-side{grid-template-columns:1fr}.pd-root .pd-comparison-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pd-root .pd-panel{padding:18px}.pd-root .pd-stat{padding:14px 12px}.pd-root .pd-section-head{align-items:center;gap:10px}.pd-root .pd-hero{min-height:150px}.pd-root .pd-heading h2{font-size:27px}.pd-sample{max-width:110px}}
@media(prefers-reduced-motion:reduce){.pd-root .pd-hero,.pd-trend-chart circle{transition:none}}
/* Override the earlier mobile rule that placed tools in a separate grid row. */
.profile-layout .profile-identity .identity-tools{position:absolute!important;top:12px;right:12px;width:auto;grid-column:auto;justify-content:center;gap:0}
@media(max-width:700px){.pd-trend-chart text{font-size:11px}.pd-trend-chart circle{r:7}}

@media(max-width:700px){.pd-root .pd-herogrid{display:flex;overflow-x:auto;scroll-snap-type:x proximity;gap:12px;padding:2px 1px 10px;scrollbar-width:thin}.pd-root .pd-herogrid .pd-hero{flex:0 0 88%;scroll-snap-align:start;min-height:152px}.pd-root .pd-herogrid .pd-portrait{height:125px}.pd-root .pd-trend-chart{min-height:180px}}

.pd-stat-values strong{white-space:nowrap;overflow-wrap:normal}.pd-stat-values strong.pd-number-wide{font-size:21px}.pd-stat-values>div:last-child strong.pd-number-wide{font-size:19px}@media(max-width:700px){.pd-stat-values strong.pd-number-wide{font-size:19px}.pd-stat-values>div:last-child strong.pd-number-wide{font-size:18px}}
