.activity-overview{background:#fff;border:1px solid #d7e2e9;border-radius:10px;overflow:hidden;margin-bottom:25px}
.activity-cover-map{position:relative;background:#09273b;overflow:hidden}
.activity-cover-map>.feed-map{margin:0;border:0;border-radius:0}
.activity-cover-map .feed-map svg{width:100%;height:360px;min-height:0;display:block}
.activity-cover-map .map-label{left:auto;right:16px;top:16px}
.activity-cover-map .map-disclaimer{bottom:24px;right:15px}
.activity-return{position:absolute;z-index:2;left:16px;top:16px;border:1px solid #6f93a8;background:#09273bea;color:#fff;padding:9px 14px;display:flex;align-items:center;gap:10px;font-size:23px;min-height:44px}
.activity-return span{font-size:13px}.activity-return:hover{background:#1c475f;color:white}
.activity-play{position:absolute;right:22px;bottom:34px;z-index:2;border:2px solid #b1d0df;background:#071d2deb;color:#fff;width:60px;height:60px;border-radius:50%;font-size:24px;padding:0}
.activity-play:hover{background:#234c62;color:#d4ff64}
.activity-info{position:relative;margin-top:-12px;border-radius:16px 16px 0 0;padding:27px 30px;background:#fff}
.activity-person{display:flex;align-items:center;gap:12px;font-size:14px;margin:0 0 25px}
.activity-person>.avatar{width:43px;height:43px;background:#e4edf3;color:#28506a;flex-shrink:0}
.activity-person>div>strong,.activity-person>div>span{display:block}
.activity-person>div>span{font-size:12px;color:#506b7e;line-height:1.65;margin-top:4px}
.privacy-pill{margin-left:auto;white-space:nowrap;font-size:11px;color:#4a6679;background:#eff4f7;border:1px solid #d9e4eb;border-radius:20px;padding:5px 9px;font-weight:400}
.activity-info h1{font-size:32px;line-height:1.2;letter-spacing:-.8px;font-weight:700;margin:0 0 24px}
.activity-metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 20px;margin:20px 0 25px}
.activity-metric-grid>div{min-width:0}.activity-metric-grid span{display:block;font-size:12px;color:#4c687b;line-height:1.6}
.activity-metric-grid strong{display:block;color:#102d42;font-size:23px;line-height:1.4;font-weight:700;margin-top:3px;font-variant-numeric:tabular-nums}
.activity-metric-grid.metrics-full{grid-template-columns:repeat(2,minmax(0,1fr));max-width:650px;gap:24px 40px}
.metrics-full strong{font-size:27px}.activity-reference{font-size:12px;color:#506b7e;line-height:1.7;margin:0 0 20px}
.activity-group-line{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:17px 0;border-top:1px solid #d6e2eb;border-bottom:1px solid #d6e2eb;font-size:13px;color:#486579}
.activity-main-actions{display:flex;gap:12px;margin:24px 0 0}.activity-main-actions>button{font-size:14px;min-height:44px;flex:1}
.activity-workspace[hidden]{display:none!important}.activity-workspace>.stats{display:none}
.activity-workspace{scroll-margin-top:95px;min-width:0;width:100%;max-width:100%}.activity-workspace>.heading{margin-bottom:18px}
.activity-workspace .table-wrap{max-width:100%;overflow-x:auto}
.activity-workspace>.heading .eyebrow{display:none}
.activity-workspace>.heading p{font-size:13px}
.activity-map-button{display:block;width:100%;padding:0;text-align:left;border:0;background:transparent;border-radius:0;overflow:hidden}
.activity-map-button .feed-map{margin:0;border-radius:0;position:relative}
.activity-map-button .feed-map svg{min-height:240px}
.personal-activity,.activity-post{padding:22px 24px 15px;overflow:hidden}
.personal-activity .activity-map-button,.activity-post .activity-map-button{width:calc(100% + 48px);margin-left:-24px}
.personal-activity .feed-training-title,.activity-post .feed-training-title{font-size:25px;line-height:1.3;letter-spacing:-.6px;margin-top:23px;font-weight:700}
.personal-activity .activity-metric-grid,.activity-post .activity-metric-grid{margin-top:18px;margin-bottom:22px}
.personal-activity-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-top:14px;font-size:11px;color:#4d687b}
.personal-activity-footer button{border:0;background:none;padding:5px 0;font-size:12px;color:#264e68}
.personal-feed-heading{padding-top:0;margin-bottom:15px}.personal-feed-heading h2{font-size:18px;margin:0}
.appearance-field{margin:28px 0 0;padding-top:20px;border-top:1px solid #d3e0e8}
.post .training-link{margin-top:15px}.activity-post .metric-owner{font-size:11px;margin:10px 0}
@media(max-width:760px){.activity-overview{margin-left:calc((100% - 100vw)/2);margin-right:calc((100% - 100vw)/2);border-radius:0;border-left:0;border-right:0}.activity-cover-map .feed-map svg{height:330px}.activity-info{padding:24px 23px}.activity-info h1{font-size:27px;margin-bottom:25px}.activity-person{gap:10px;font-size:13px;align-items:flex-start}.activity-person>div>span{font-size:11px}.activity-person>.avatar{width:37px;height:37px}.activity-person .privacy-pill{font-size:10px;padding:4px 7px}.activity-metric-grid{gap:14px 10px}.activity-metric-grid span{font-size:11px}.activity-metric-grid strong{font-size:20px}.activity-metric-grid.metrics-full{gap:22px 24px}.metrics-full strong{font-size:23px}.activity-main-actions{flex-wrap:wrap}.activity-main-actions>button{flex:1 0 100%;font-size:13px}.activity-play{width:56px;height:56px;right:18px}.personal-activity,.activity-post{padding:19px 17px 15px}.personal-activity .activity-map-button,.activity-post .activity-map-button{width:calc(100% + 34px);margin-left:-17px}.personal-activity .feed-training-title,.activity-post .feed-training-title{font-size:23px}.activity-map-button .feed-map svg{min-height:240px}.activity-workspace{scroll-margin-top:80px}}
/* Optional dark appearance: the same hierarchy and data, with legible surfaces. */
html[data-theme=dark]{background:#0d0f10;color:#f1f4f6;--ink:#f1f4f6;--paper:#0d0f10;--muted:#b1bdc7;--line:#3b454d}
html[data-theme=dark] body{background:#0d0f10;color:#f1f4f6}
html[data-theme=dark] .lineup-header,html[data-theme=dark] .lineup-bottom{background:#121719;border-color:#38434c}
html[data-theme=dark] .layout,html[data-theme=dark] .shell{background:#0d0f10}
html[data-theme=dark] .panel,html[data-theme=dark] .post,html[data-theme=dark] .activity-overview,html[data-theme=dark] .activity-info,html[data-theme=dark] .device-card,html[data-theme=dark] .first-activity,html[data-theme=dark] .auth-form,html[data-theme=dark] .dialog,html[data-theme=dark] .group-card,html[data-theme=dark] .session-card,html[data-theme=dark] .stat,html[data-theme=dark] .basic-report,html[data-theme=dark] .medal-card{background:#171b1e;border-color:#3a454d;color:#f1f4f6;box-shadow:none}
html[data-theme=dark] h1,html[data-theme=dark] h2,html[data-theme=dark] h3,html[data-theme=dark] .feed-training-title,html[data-theme=dark] .activity-metric-grid strong,html[data-theme=dark] .feed-metrics strong,html[data-theme=dark] .athlete-card h2{color:#f4f6f8}
html[data-theme=dark] .muted,html[data-theme=dark] .topbar,html[data-theme=dark] .topbar>span:last-child,html[data-theme=dark] .activity-person>div>span,html[data-theme=dark] .activity-metric-grid span,html[data-theme=dark] .activity-reference,html[data-theme=dark] .activity-group-line,html[data-theme=dark] .personal-activity-footer,html[data-theme=dark] .metric-owner,html[data-theme=dark] .activity-caption,html[data-theme=dark] .post header small,html[data-theme=dark] .feed-filter,html[data-theme=dark] .feed-filter span,html[data-theme=dark] .feed-heading .live-label,html[data-theme=dark] .sidebar-bottom,html[data-theme=dark] .integration-intro,html[data-theme=dark] .device-card p,html[data-theme=dark] .device-card small,html[data-theme=dark] .integration-provider-heading>div>span,html[data-theme=dark] .device-job-status,html[data-theme=dark] .device-job-status p,html[data-theme=dark] .auth-connection-hint,html[data-theme=dark] .basic-report>ul,html[data-theme=dark] .basic-report>header p:not(.eyebrow){color:#b8c5ce}
html[data-theme=dark] input,html[data-theme=dark] select,html[data-theme=dark] textarea{background:#111618;color:#f2f5f7;border-color:#576670}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#aebcc7;opacity:1}
html[data-theme=dark] button:not(.primary):not(.activity-return):not(.activity-play),html[data-theme=dark] .training-link,html[data-theme=dark] .provider-access button{background:#222a2f;color:#e4edf3;border-color:#53616c}
html[data-theme=dark] button.primary{background:#d4ff64;color:#102b38;border-color:#d4ff64}
html[data-theme=dark] button.primary:hover{background:#e5ffa0}
html[data-theme=dark] .sidebar .nav button{background:transparent;color:#c4d1da}
html[data-theme=dark] .sidebar .nav button.active{background:#23343c;color:#d4ff64}
html[data-theme=dark] .header-nav button,html[data-theme=dark] .lineup-bottom button,html[data-theme=dark] .brand-home,html[data-theme=dark] .personal-activity-footer button,html[data-theme=dark] .post-actions button{background:transparent!important}
html[data-theme=dark] .header-nav button.active,html[data-theme=dark] .lineup-bottom button.active,html[data-theme=dark] .post-actions button.reacted{color:#d4ff64}
html[data-theme=dark] .athlete-card,html[data-theme=dark] .weekly-medal,html[data-theme=dark] .feed-composer,html[data-theme=dark] .comments p,html[data-theme=dark] .replay-annotation,html[data-theme=dark] .report-empty,html[data-theme=dark] .privacy-pill,html[data-theme=dark] .notice,html[data-theme=dark] .medal-art{background:#21282d;border-color:#49565f;color:#d5e0e8}
html[data-theme=dark] .athlete-card p,html[data-theme=dark] .athlete-mini,html[data-theme=dark] .athlete-card .ghost,html[data-theme=dark] .weekly-medal p,html[data-theme=dark] .weekly-medal>span,html[data-theme=dark] .annotation-meta>span,html[data-theme=dark] .annotation-actions>span,html[data-theme=dark] .report-manifest,html[data-theme=dark] .eyebrow{color:#b9c9d4}
html[data-theme=dark] .activity-person>.avatar,html[data-theme=dark] .post .avatar,html[data-theme=dark] .feed-composer .avatar{background:#344a58;color:#e2f0f8}
html[data-theme=dark] .sport-chip{color:#d6e3eb;border-color:#53616c}
html[data-theme=dark] .annotation-task{background:#252e22;border-left-color:#a8c768}
html[data-theme=dark] .annotation-meta{color:#e1ebf2}
html[data-theme=dark] .pro-rail{background:#222d20!important;border-color:#4d6040}
html[data-theme=dark] .pro-rail p,html[data-theme=dark] .pro-rail button{color:#d3e7be}
html[data-theme=dark] td,html[data-theme=dark] th,html[data-theme=dark] .quality-item,html[data-theme=dark] .tabs,html[data-theme=dark] .activity-group-line,html[data-theme=dark] .appearance-field{border-color:#46535c}
html[data-theme=dark] th{background:#202a30;color:#c6d5df}
html[data-theme=dark] .report-manifest pre{background:#10171b;color:#c6d5df}
html[data-theme=dark] .report-download{background:#d4ff64;color:#102b38}
html[data-theme=dark] .report-downloads>a:not(.report-download){color:#b9def4}
html[data-theme=dark] .first-activity>p,html[data-theme=dark] .first-activity small{color:#c0ced7}
html[data-theme=dark] .feed-training-title,html[data-theme=dark] .activity-map-button{background:transparent!important;border-color:transparent}
html[data-theme=dark] .brand-home{border-color:transparent}
