/* Shared profile, portfolio and catalogue analytics surfaces. */
.workspace-nav{display:flex;gap:6px;border-bottom:1px solid var(--line);margin:24px 0 28px;padding:0 0 10px;overflow-x:auto}
.workspace-nav a{white-space:nowrap;padding:10px 15px;border-radius:8px;text-decoration:none;font-size:calc(14px * var(--ui-scale));color:var(--muted)}
.workspace-nav a[aria-current=page]{color:var(--selection-fg);background:var(--selection-bg)}
.workspace-nav a:hover{color:var(--ink);background:var(--soft)}
.workspace-nav a[aria-current=page]:hover{color:var(--selection-fg);background:var(--selection-bg)}
.statistics-view>.page-heading{margin-bottom:0}.statistics-intro{font-size:calc(14px * var(--ui-scale));color:var(--muted);max-width:70ch}
.stat-metrics{gap:0;margin:24px 0 32px;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--white)}
.stat-metrics>div{border:0;border-right:1px solid var(--line);padding:20px 24px}.stat-metrics>div:last-child{border-right:0}
.stat-metrics dd{font-size:calc(36px * var(--ui-scale));margin:6px 0 0}.stat-metrics dt{font-size:calc(13px * var(--ui-scale))}
.stat-chart-grid{gap:24px;align-items:start}.stat-chart{border:1px solid var(--line);border-radius:12px;padding:24px;margin:0 0 24px;background:var(--white)}
.stat-chart h3{font-size:calc(18px * var(--ui-scale));margin-bottom:20px}.stat-chart .quiet-note{font-size:calc(12px * var(--ui-scale));line-height:1.6;margin-bottom:0}
.chart-visual{position:relative;width:100%;max-width:100%;margin:8px 0 16px}.chart-visual[hidden]{display:none}.chart-data-details summary{font-size:calc(13px * var(--ui-scale));color:var(--muted);cursor:pointer;padding:8px 0}
.chart-data{width:100%;border-collapse:collapse;font-size:calc(13px * var(--ui-scale));text-align:left}.chart-data caption{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}.chart-data th,.chart-data td{padding:9px 0;border-bottom:1px solid var(--line);font-weight:400}.chart-data td,.chart-data thead th:last-child{text-align:right;font-variant-numeric:tabular-nums}.chart-data thead{color:var(--muted)}
.profile-hub{grid-template-columns:300px minmax(0,1fr);gap:48px;margin-top:0}.profile-aside{min-width:0}.profile-hub .profile-summary{position:static;padding:24px;border:1px solid var(--line);border-radius:12px;background:var(--soft)}
.profile-hub .profile-summary h2{font-size:calc(23px * var(--ui-scale))}.profile-hub .profile-avatar{width:52px;height:52px;font-size:22px}.profile-hub .profile-summary .quiet-note{font-size:calc(12px * var(--ui-scale));line-height:1.65;margin-bottom:0}.profile-hub .profile-stat{margin:20px 0}
.profile-aside .auth-box{padding:22px 0;margin:0;border:0;border-radius:0}.profile-aside .auth-box h2{font-size:calc(17px * var(--ui-scale));margin:0 0 14px}.profile-aside #auth-status{font-size:calc(13px * var(--ui-scale));line-height:1.6;color:var(--muted)}
.profile-main .profile-form{max-width:none}.profile-main h2{font-size:calc(23px * var(--ui-scale));margin-top:0}.profile-main .profile-radar-settings{margin-top:36px;padding-top:28px;border-top:1px solid var(--line)}
.participant-overview{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,42%);gap:48px;align-items:center;margin:28px 0}.participant-intro .participant-heading{margin:0}.participant-intro h1{font-size:calc(48px * var(--ui-scale));line-height:1.1;letter-spacing:-1.5px}.participant-intro .participant-areas{margin-bottom:0}
.participant-cover{min-width:0}.participant-cover figure{margin:0}.participant-cover img{display:block;width:100%;height:260px;object-fit:cover;border-radius:10px}.participant-cover figcaption{font-size:calc(11px * var(--ui-scale));line-height:1.5;margin-top:6px;color:var(--muted)}
@media(max-width:760px){.workspace-nav{margin:18px 0 22px;gap:2px}.workspace-nav a{padding:9px 12px}.stat-metrics{grid-template-columns:repeat(2,minmax(0,1fr));margin:22px 0}.stat-metrics>div{padding:16px 18px}.stat-metrics>div:nth-child(2){border-right:0}.stat-metrics>div:nth-child(n+3){border-top:1px solid var(--line)}.stat-metrics dd{font-size:calc(30px * var(--ui-scale))}.stat-chart-grid{grid-template-columns:1fr;gap:0}.stat-chart{padding:18px;margin-bottom:18px}.profile-hub{grid-template-columns:1fr;gap:18px}.profile-hub .profile-summary{padding:18px;display:grid;grid-template-columns:52px 1fr;column-gap:14px}.profile-hub .profile-summary .profile-stat,.profile-hub .profile-summary .quiet-note{grid-column:1/-1}.profile-hub .profile-stat{margin:14px 0}.profile-aside .auth-box{padding:20px 0;border-bottom:1px solid var(--line)}.participant-overview{grid-template-columns:1fr;gap:20px;margin:20px 0}.participant-intro h1{font-size:calc(36px * var(--ui-scale))}.participant-cover img{height:210px}.profile-main .profile-radar-settings{margin-top:28px}}
@media(prefers-reduced-motion:reduce){.workspace-nav a{transition:none}}

:root[data-theme=dark] .workspace-nav a[aria-current=page]{background:#111;color:#fff;box-shadow:inset 0 0 0 1px #72796f}

.portfolio-charts>summary{padding:14px 0;font-size:calc(15px * var(--ui-scale));cursor:pointer}.portfolio-charts[open]>summary{margin-bottom:16px}.participant-overview+.content-section{margin-top:24px}.participant-overview+.content-section .stat-metrics{margin-bottom:8px}
